diff --git a/CHANGELOG.md b/CHANGELOG.md index f15cf92b..c98292d8 100755 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,54 @@ # Changelog +## [v1.0.0-beta.16](https://github.com/fastly/fastly-go/releases/tag/v1.0.0-beta.16) (2023-07-06) + +Substantial changes were made to the underlying OpenAPI specification that produces this API client. These changes have resulted in multiple new endpoints being supported as well as multiple breaking type changes and so we're publishing these changes as a new major release. + +**Enhancements:** + +- feat(apex_redirect): support all endpoints. +- feat(contact): support 'create' endpoint. +- feat(director): support 'update' endpoint. +- feat(domain_inspector): support all endpoints. +- feat(iam_roles): support 'add permissions' endpoint. +- feat(iam_roles): support 'create role' endpoint. +- feat(iam_roles): support 'delete permissions' endpoint. +- feat(iam_roles): support 'update role' endpoint. +- feat(iam_services): support 'add services' endpoint. +- feat(iam_services): support 'create service group' endpoint. +- feat(iam_services): support 'remove services' endpoint. +- feat(iam_services): support 'update service group' endpoint. +- feat(iam_users): support 'add members' endpoint. +- feat(iam_users): support 'add roles' endpoint. +- feat(iam_users): support 'add service groups' endpoint. +- feat(iam_users): support 'create user group' endpoint. +- feat(iam_users): support 'remove members' endpoint. +- feat(iam_users): support 'remove roles' endpoint. +- feat(iam_users): support 'remove service groups' endpoint. +- feat(iam_users): support 'update user group' endpoint. +- feat(legacy_waf): support all endpoints. +- feat(logging_kafka): support 'update' endpoint. +- feat(logging_kinesis): support 'update' endpoint. +- feat(origin_inspector): support all endpoints. +- feat(request_settings): support 'create' endpoint. +- feat(response_object): support 'create' endpoint. +- feat(response_object): support 'update' endpoint. +- feat(secret_store): support all endpoints. +- feat(service_authorizations): support 'delete' endpoint. +- feat(service_authorizations): support 'update' endpoint. +- feat(snippet): support 'update versioned snippet' endpoint. +- feat(sudo): support 'request sudo access' endpoint. +- feat(tokens): support 'revoke multiple tokens' endpoint. +- feat(tokens): support 'create token' endpoint. +- feat(waf_active_rules): support 'delete' endpoint. + +**Bug fixes:** + +- fix(content): update request/response types. +- fix(events): update metadata type. +- fix(realtime_entry): update recorded/aggregated type. +- fix(realtime_measurements): update miss_histogram type. + ## [v1.0.0-beta.15](https://github.com/fastly/fastly-go/releases/tag/v1.0.0-beta.15) (2023-07-05) **Enhancements:** diff --git a/README.md b/README.md index 3569b62d..ba822ce6 100644 --- a/README.md +++ b/README.md @@ -12,7 +12,7 @@ Add the following to your project's `go.mod`: ```go.mod require ( - github.com/fastly/fastly-go v1.0.0-beta.15 + github.com/fastly/fastly-go v1.0.0-beta.16 ) ``` @@ -69,6 +69,7 @@ Class | Method | HTTP request | Description *ACLEntryAPI* | [**GetACLEntry**](docs/AclEntryAPI.md#getaclentry) | **GET** `/service/{service_id}/acl/{acl_id}/entry/{acl_entry_id}` | Describe an ACL entry *ACLEntryAPI* | [**ListACLEntries**](docs/AclEntryAPI.md#listaclentries) | **GET** `/service/{service_id}/acl/{acl_id}/entries` | List ACL entries *ACLEntryAPI* | [**UpdateACLEntry**](docs/AclEntryAPI.md#updateaclentry) | **PATCH** `/service/{service_id}/acl/{acl_id}/entry/{acl_entry_id}` | Update an ACL entry +*ApexRedirectAPI* | [**CreateApexRedirect**](docs/ApexRedirectAPI.md#createapexredirect) | **POST** `/service/{service_id}/version/{version_id}/apex-redirects` | Create an apex redirect *ApexRedirectAPI* | [**DeleteApexRedirect**](docs/ApexRedirectAPI.md#deleteapexredirect) | **DELETE** `/apex-redirects/{apex_redirect_id}` | Delete an apex redirect *ApexRedirectAPI* | [**GetApexRedirect**](docs/ApexRedirectAPI.md#getapexredirect) | **GET** `/apex-redirects/{apex_redirect_id}` | Get an apex redirect *ApexRedirectAPI* | [**ListApexRedirects**](docs/ApexRedirectAPI.md#listapexredirects) | **GET** `/service/{service_id}/version/{version_id}/apex-redirects` | List apex redirects @@ -114,6 +115,7 @@ Class | Method | HTTP request | Description *ConfigStoreItemAPI* | [**ListConfigStoreItems**](docs/ConfigStoreItemAPI.md#listconfigstoreitems) | **GET** `/resources/stores/config/{config_store_id}/items` | List items in a config store *ConfigStoreItemAPI* | [**UpdateConfigStoreItem**](docs/ConfigStoreItemAPI.md#updateconfigstoreitem) | **PATCH** `/resources/stores/config/{config_store_id}/item/{config_store_item_key}` | Update an entry in a config store *ConfigStoreItemAPI* | [**UpsertConfigStoreItem**](docs/ConfigStoreItemAPI.md#upsertconfigstoreitem) | **PUT** `/resources/stores/config/{config_store_id}/item/{config_store_item_key}` | Insert or update an entry in a config store +*ContactAPI* | [**CreateContacts**](docs/ContactAPI.md#createcontacts) | **POST** `/customer/{customer_id}/contacts` | Add a new customer contact *ContactAPI* | [**DeleteContact**](docs/ContactAPI.md#deletecontact) | **DELETE** `/customer/{customer_id}/contact/{contact_id}` | Delete a contact *ContactAPI* | [**ListContacts**](docs/ContactAPI.md#listcontacts) | **GET** `/customer/{customer_id}/contacts` | List contacts *ContentAPI* | [**ContentCheck**](docs/ContentAPI.md#contentcheck) | **GET** `/content/edge_check` | Check status of content in each POP's cache @@ -140,6 +142,7 @@ Class | Method | HTTP request | Description *DirectorAPI* | [**DeleteDirector**](docs/DirectorAPI.md#deletedirector) | **DELETE** `/service/{service_id}/version/{version_id}/director/{director_name}` | Delete a director *DirectorAPI* | [**GetDirector**](docs/DirectorAPI.md#getdirector) | **GET** `/service/{service_id}/version/{version_id}/director/{director_name}` | Get a director *DirectorAPI* | [**ListDirectors**](docs/DirectorAPI.md#listdirectors) | **GET** `/service/{service_id}/version/{version_id}/director` | List directors +*DirectorAPI* | [**UpdateDirector**](docs/DirectorAPI.md#updatedirector) | **PUT** `/service/{service_id}/version/{version_id}/director/{director_name}` | Update a director *DirectorBackendAPI* | [**CreateDirectorBackend**](docs/DirectorBackendAPI.md#createdirectorbackend) | **POST** `/service/{service_id}/version/{version_id}/director/{director_name}/backend/{backend_name}` | Create a director-backend relationship *DirectorBackendAPI* | [**DeleteDirectorBackend**](docs/DirectorBackendAPI.md#deletedirectorbackend) | **DELETE** `/service/{service_id}/version/{version_id}/director/{director_name}/backend/{backend_name}` | Delete a director-backend relationship *DirectorBackendAPI* | [**GetDirectorBackend**](docs/DirectorBackendAPI.md#getdirectorbackend) | **GET** `/service/{service_id}/version/{version_id}/director/{director_name}/backend/{backend_name}` | Get a director-backend relationship @@ -150,6 +153,10 @@ Class | Method | HTTP request | Description *DomainAPI* | [**GetDomain**](docs/DomainAPI.md#getdomain) | **GET** `/service/{service_id}/version/{version_id}/domain/{domain_name}` | Describe a domain *DomainAPI* | [**ListDomains**](docs/DomainAPI.md#listdomains) | **GET** `/service/{service_id}/version/{version_id}/domain` | List domains *DomainAPI* | [**UpdateDomain**](docs/DomainAPI.md#updatedomain) | **PUT** `/service/{service_id}/version/{version_id}/domain/{domain_name}` | Update a domain +*DomainInspectorHistoricalAPI* | [**GetDomainInspectorHistorical**](docs/DomainInspectorHistoricalAPI.md#getdomaininspectorhistorical) | **GET** `/metrics/domains/services/{service_id}` | Get historical domain data for a service +*DomainInspectorRealtimeAPI* | [**GetDomainInspectorLast120Seconds**](docs/DomainInspectorRealtimeAPI.md#getdomaininspectorlast120seconds) | **GET** `/v1/domains/{service_id}/ts/h` | Get real-time domain data for the last 120 seconds +*DomainInspectorRealtimeAPI* | [**GetDomainInspectorLastMaxEntries**](docs/DomainInspectorRealtimeAPI.md#getdomaininspectorlastmaxentries) | **GET** `/v1/domains/{service_id}/ts/h/limit/{max_entries}` | Get a limited number of real-time domain data entries +*DomainInspectorRealtimeAPI* | [**GetDomainInspectorLastSecond**](docs/DomainInspectorRealtimeAPI.md#getdomaininspectorlastsecond) | **GET** `/v1/domains/{service_id}/ts/{start_timestamp}` | Get real-time domain data from a specified time *DomainOwnershipsAPI* | [**ListDomainOwnerships**](docs/DomainOwnershipsAPI.md#listdomainownerships) | **GET** `/domain-ownerships` | List domain-ownerships *EnabledProductsAPI* | [**DisableProduct**](docs/EnabledProductsAPI.md#disableproduct) | **DELETE** `/enabled-products/{product_id}/services/{service_id}` | Disable a product *EnabledProductsAPI* | [**EnableProduct**](docs/EnabledProductsAPI.md#enableproduct) | **PUT** `/enabled-products/{product_id}/services/{service_id}` | Enable a product @@ -184,20 +191,36 @@ Class | Method | HTTP request | Description *HTTP3API* | [**DeleteHTTP3**](docs/Http3API.md#deletehttp3) | **DELETE** `/service/{service_id}/version/{version_id}/http3` | Disable support for HTTP/3 *HTTP3API* | [**GetHTTP3**](docs/Http3API.md#gethttp3) | **GET** `/service/{service_id}/version/{version_id}/http3` | Get HTTP/3 status *IamPermissionsAPI* | [**ListPermissions**](docs/IamPermissionsAPI.md#listpermissions) | **GET** `/permissions` | List permissions +*IamRolesAPI* | [**AddRolePermissions**](docs/IamRolesAPI.md#addrolepermissions) | **POST** `/roles/{role_id}/permissions` | Add permissions to a role +*IamRolesAPI* | [**CreateARole**](docs/IamRolesAPI.md#createarole) | **POST** `/roles` | Create a role *IamRolesAPI* | [**DeleteARole**](docs/IamRolesAPI.md#deletearole) | **DELETE** `/roles/{role_id}` | Delete a role *IamRolesAPI* | [**GetARole**](docs/IamRolesAPI.md#getarole) | **GET** `/roles/{role_id}` | Get a role *IamRolesAPI* | [**ListRolePermissions**](docs/IamRolesAPI.md#listrolepermissions) | **GET** `/roles/{role_id}/permissions` | List permissions in a role *IamRolesAPI* | [**ListRoles**](docs/IamRolesAPI.md#listroles) | **GET** `/roles` | List roles +*IamRolesAPI* | [**RemoveRolePermissions**](docs/IamRolesAPI.md#removerolepermissions) | **DELETE** `/roles/{role_id}/permissions` | Remove permissions from a role +*IamRolesAPI* | [**UpdateARole**](docs/IamRolesAPI.md#updatearole) | **PATCH** `/roles/{role_id}` | Update a role +*IamServiceGroupsAPI* | [**AddServiceGroupServices**](docs/IamServiceGroupsAPI.md#addservicegroupservices) | **POST** `/service-groups/{service_group_id}/services` | Add services in a service group +*IamServiceGroupsAPI* | [**CreateAServiceGroup**](docs/IamServiceGroupsAPI.md#createaservicegroup) | **POST** `/service-groups` | Create a service group *IamServiceGroupsAPI* | [**DeleteAServiceGroup**](docs/IamServiceGroupsAPI.md#deleteaservicegroup) | **DELETE** `/service-groups/{service_group_id}` | Delete a service group *IamServiceGroupsAPI* | [**GetAServiceGroup**](docs/IamServiceGroupsAPI.md#getaservicegroup) | **GET** `/service-groups/{service_group_id}` | Get a service group *IamServiceGroupsAPI* | [**ListServiceGroupServices**](docs/IamServiceGroupsAPI.md#listservicegroupservices) | **GET** `/service-groups/{service_group_id}/services` | List services to a service group *IamServiceGroupsAPI* | [**ListServiceGroups**](docs/IamServiceGroupsAPI.md#listservicegroups) | **GET** `/service-groups` | List service groups +*IamServiceGroupsAPI* | [**RemoveServiceGroupServices**](docs/IamServiceGroupsAPI.md#removeservicegroupservices) | **DELETE** `/service-groups/{service_group_id}/services` | Remove services from a service group +*IamServiceGroupsAPI* | [**UpdateAServiceGroup**](docs/IamServiceGroupsAPI.md#updateaservicegroup) | **PATCH** `/service-groups/{service_group_id}` | Update a service group +*IamUserGroupsAPI* | [**AddUserGroupMembers**](docs/IamUserGroupsAPI.md#addusergroupmembers) | **POST** `/user-groups/{user_group_id}/members` | Add members to a user group +*IamUserGroupsAPI* | [**AddUserGroupRoles**](docs/IamUserGroupsAPI.md#addusergrouproles) | **POST** `/user-groups/{user_group_id}/roles` | Add roles to a user group +*IamUserGroupsAPI* | [**AddUserGroupServiceGroups**](docs/IamUserGroupsAPI.md#addusergroupservicegroups) | **POST** `/user-groups/{user_group_id}/service-groups` | Add service groups to a user group +*IamUserGroupsAPI* | [**CreateAUserGroup**](docs/IamUserGroupsAPI.md#createausergroup) | **POST** `/user-groups` | Create a user group *IamUserGroupsAPI* | [**DeleteAUserGroup**](docs/IamUserGroupsAPI.md#deleteausergroup) | **DELETE** `/user-groups/{user_group_id}` | Delete a user group *IamUserGroupsAPI* | [**GetAUserGroup**](docs/IamUserGroupsAPI.md#getausergroup) | **GET** `/user-groups/{user_group_id}` | Get a user group *IamUserGroupsAPI* | [**ListUserGroupMembers**](docs/IamUserGroupsAPI.md#listusergroupmembers) | **GET** `/user-groups/{user_group_id}/members` | List members of a user group *IamUserGroupsAPI* | [**ListUserGroupRoles**](docs/IamUserGroupsAPI.md#listusergrouproles) | **GET** `/user-groups/{user_group_id}/roles` | List roles in a user group *IamUserGroupsAPI* | [**ListUserGroupServiceGroups**](docs/IamUserGroupsAPI.md#listusergroupservicegroups) | **GET** `/user-groups/{user_group_id}/service-groups` | List service groups in a user group *IamUserGroupsAPI* | [**ListUserGroups**](docs/IamUserGroupsAPI.md#listusergroups) | **GET** `/user-groups` | List user groups +*IamUserGroupsAPI* | [**RemoveUserGroupMembers**](docs/IamUserGroupsAPI.md#removeusergroupmembers) | **DELETE** `/user-groups/{user_group_id}/members` | Remove members of a user group +*IamUserGroupsAPI* | [**RemoveUserGroupRoles**](docs/IamUserGroupsAPI.md#removeusergrouproles) | **DELETE** `/user-groups/{user_group_id}/roles` | Remove roles from a user group +*IamUserGroupsAPI* | [**RemoveUserGroupServiceGroups**](docs/IamUserGroupsAPI.md#removeusergroupservicegroups) | **DELETE** `/user-groups/{user_group_id}/service-groups` | Remove service groups from a user group +*IamUserGroupsAPI* | [**UpdateAUserGroup**](docs/IamUserGroupsAPI.md#updateausergroup) | **PATCH** `/user-groups/{user_group_id}` | Update a user group *InvitationsAPI* | [**CreateInvitation**](docs/InvitationsAPI.md#createinvitation) | **POST** `/invitations` | Create an invitation *InvitationsAPI* | [**DeleteInvitation**](docs/InvitationsAPI.md#deleteinvitation) | **DELETE** `/invitations/{invitation_id}` | Delete an invitation *InvitationsAPI* | [**ListInvitations**](docs/InvitationsAPI.md#listinvitations) | **GET** `/invitations` | List invitations @@ -209,6 +232,34 @@ Class | Method | HTTP request | Description *KvStoreItemAPI* | [**GetKeys**](docs/KvStoreItemAPI.md#getkeys) | **GET** `/resources/stores/kv/{store_id}/keys` | List kv store keys. *KvStoreItemAPI* | [**GetValueForKey**](docs/KvStoreItemAPI.md#getvalueforkey) | **GET** `/resources/stores/kv/{store_id}/keys/{key_name}` | Get the value of an kv store item *KvStoreItemAPI* | [**SetValueForKey**](docs/KvStoreItemAPI.md#setvalueforkey) | **PUT** `/resources/stores/kv/{store_id}/keys/{key_name}` | Insert an item into an kv store +*LegacyWafConfigurationSetsAPI* | [**ListWafConfigSets**](docs/LegacyWafConfigurationSetsAPI.md#listwafconfigsets) | **GET** `/wafs/configuration_sets` | List configuration sets +*LegacyWafConfigurationSetsAPI* | [**ListWafsConfigSet**](docs/LegacyWafConfigurationSetsAPI.md#listwafsconfigset) | **GET** `/wafs/configuration_sets/{configuration_set_id}/relationships/wafs` | List WAFs currently using a configuration set +*LegacyWafConfigurationSetsAPI* | [**UseWafConfigSet**](docs/LegacyWafConfigurationSetsAPI.md#usewafconfigset) | **PATCH** `/wafs/configuration_sets/{configuration_set_id}/relationships/wafs` | Apply a configuration set to a WAF +*LegacyWafFirewallAPI* | [**CreateLegacyWafFirewallService**](docs/LegacyWafFirewallAPI.md#createlegacywaffirewallservice) | **POST** `/service/{service_id}/version/{version_id}/wafs` | Create a firewall +*LegacyWafFirewallAPI* | [**DisableLegacyWafFirewall**](docs/LegacyWafFirewallAPI.md#disablelegacywaffirewall) | **PATCH** `/wafs/{firewall_id}/disable` | Disable a firewall +*LegacyWafFirewallAPI* | [**EnableLegacyWafFirewall**](docs/LegacyWafFirewallAPI.md#enablelegacywaffirewall) | **PATCH** `/wafs/{firewall_id}/enable` | Enable a firewall +*LegacyWafFirewallAPI* | [**GetLegacyWafFirewall**](docs/LegacyWafFirewallAPI.md#getlegacywaffirewall) | **GET** `/wafs/{firewall_id}` | Get a firewall object +*LegacyWafFirewallAPI* | [**GetLegacyWafFirewallService**](docs/LegacyWafFirewallAPI.md#getlegacywaffirewallservice) | **GET** `/service/{service_id}/version/{version_id}/wafs/{firewall_id}` | Get a firewall +*LegacyWafFirewallAPI* | [**ListLegacyWafFirewalls**](docs/LegacyWafFirewallAPI.md#listlegacywaffirewalls) | **GET** `/wafs` | List active firewalls +*LegacyWafFirewallAPI* | [**ListLegacyWafFirewallsService**](docs/LegacyWafFirewallAPI.md#listlegacywaffirewallsservice) | **GET** `/service/{service_id}/version/{version_id}/wafs` | List firewalls +*LegacyWafFirewallAPI* | [**UpdateLegacyWafFirewallService**](docs/LegacyWafFirewallAPI.md#updatelegacywaffirewallservice) | **PATCH** `/service/{service_id}/version/{version_id}/wafs/{firewall_id}` | Update a firewall +*LegacyWafOwaspAPI* | [**CreateOwaspSettings**](docs/LegacyWafOwaspAPI.md#createowaspsettings) | **POST** `/service/{service_id}/wafs/{firewall_id}/owasp` | Create an OWASP settings object +*LegacyWafOwaspAPI* | [**GetOwaspSettings**](docs/LegacyWafOwaspAPI.md#getowaspsettings) | **GET** `/service/{service_id}/wafs/{firewall_id}/owasp` | Get the OWASP settings object +*LegacyWafOwaspAPI* | [**UpdateOwaspSettings**](docs/LegacyWafOwaspAPI.md#updateowaspsettings) | **PATCH** `/service/{service_id}/wafs/{firewall_id}/owasp` | Update the OWASP settings object +*LegacyWafRuleAPI* | [**GetLegacyWafFirewallRuleVcl**](docs/LegacyWafRuleAPI.md#getlegacywaffirewallrulevcl) | **GET** `/wafs/{firewall_id}/rules/{waf_rule_id}/vcl` | Get VCL for a rule associated with a firewall +*LegacyWafRuleAPI* | [**GetLegacyWafRule**](docs/LegacyWafRuleAPI.md#getlegacywafrule) | **GET** `/wafs/rules/{waf_rule_id}` | Get a rule +*LegacyWafRuleAPI* | [**GetLegacyWafRuleVcl**](docs/LegacyWafRuleAPI.md#getlegacywafrulevcl) | **GET** `/wafs/rules/{waf_rule_id}/vcl` | Get VCL for a rule +*LegacyWafRuleAPI* | [**ListLegacyWafRules**](docs/LegacyWafRuleAPI.md#listlegacywafrules) | **GET** `/wafs/rules` | List rules in the latest configuration set +*LegacyWafRuleStatusAPI* | [**GetWafFirewallRuleStatus**](docs/LegacyWafRuleStatusAPI.md#getwaffirewallrulestatus) | **GET** `/service/{service_id}/wafs/{firewall_id}/rules/{waf_rule_id}/rule_status` | Get the status of a rule on a firewall +*LegacyWafRuleStatusAPI* | [**ListWafFirewallRuleStatuses**](docs/LegacyWafRuleStatusAPI.md#listwaffirewallrulestatuses) | **GET** `/service/{service_id}/wafs/{firewall_id}/rule_statuses` | List rule statuses +*LegacyWafRuleStatusAPI* | [**UpdateWafFirewallRuleStatus**](docs/LegacyWafRuleStatusAPI.md#updatewaffirewallrulestatus) | **PATCH** `/service/{service_id}/wafs/{firewall_id}/rules/{waf_rule_id}/rule_status` | Update the status of a rule +*LegacyWafRuleStatusAPI* | [**UpdateWafFirewallRuleStatusesTag**](docs/LegacyWafRuleStatusAPI.md#updatewaffirewallrulestatusestag) | **POST** `/service/{service_id}/wafs/{firewall_id}/rule_statuses` | Create or update status of a tagged group of rules +*LegacyWafRulesetAPI* | [**GetWafRuleset**](docs/LegacyWafRulesetAPI.md#getwafruleset) | **GET** `/service/{service_id}/wafs/{firewall_id}/ruleset` | Get a WAF ruleset +*LegacyWafRulesetAPI* | [**GetWafRulesetVcl**](docs/LegacyWafRulesetAPI.md#getwafrulesetvcl) | **GET** `/service/{service_id}/wafs/{firewall_id}/ruleset/preview` | Generate WAF ruleset VCL +*LegacyWafRulesetAPI* | [**UpdateWafRuleset**](docs/LegacyWafRulesetAPI.md#updatewafruleset) | **PATCH** `/service/{service_id}/wafs/{firewall_id}/ruleset` | Update a WAF ruleset +*LegacyWafTagAPI* | [**ListLegacyWafTags**](docs/LegacyWafTagAPI.md#listlegacywaftags) | **GET** `/wafs/tags` | List WAF tags +*LegacyWafUpdateStatusAPI* | [**GetWafUpdateStatus**](docs/LegacyWafUpdateStatusAPI.md#getwafupdatestatus) | **GET** `/service/{service_id}/wafs/{firewall_id}/update_statuses/{update_status_id}` | Get the status of a WAF update +*LegacyWafUpdateStatusAPI* | [**ListWafUpdateStatuses**](docs/LegacyWafUpdateStatusAPI.md#listwafupdatestatuses) | **GET** `/service/{service_id}/wafs/{firewall_id}/update_statuses` | List update statuses *LoggingAzureblobAPI* | [**CreateLogAzure**](docs/LoggingAzureblobAPI.md#createlogazure) | **POST** `/service/{service_id}/version/{version_id}/logging/azureblob` | Create an Azure Blob Storage log endpoint *LoggingAzureblobAPI* | [**DeleteLogAzure**](docs/LoggingAzureblobAPI.md#deletelogazure) | **DELETE** `/service/{service_id}/version/{version_id}/logging/azureblob/{logging_azureblob_name}` | Delete the Azure Blob Storage log endpoint *LoggingAzureblobAPI* | [**GetLogAzure**](docs/LoggingAzureblobAPI.md#getlogazure) | **GET** `/service/{service_id}/version/{version_id}/logging/azureblob/{logging_azureblob_name}` | Get an Azure Blob Storage log endpoint @@ -268,10 +319,12 @@ Class | Method | HTTP request | Description *LoggingKafkaAPI* | [**DeleteLogKafka**](docs/LoggingKafkaAPI.md#deletelogkafka) | **DELETE** `/service/{service_id}/version/{version_id}/logging/kafka/{logging_kafka_name}` | Delete the Kafka log endpoint *LoggingKafkaAPI* | [**GetLogKafka**](docs/LoggingKafkaAPI.md#getlogkafka) | **GET** `/service/{service_id}/version/{version_id}/logging/kafka/{logging_kafka_name}` | Get a Kafka log endpoint *LoggingKafkaAPI* | [**ListLogKafka**](docs/LoggingKafkaAPI.md#listlogkafka) | **GET** `/service/{service_id}/version/{version_id}/logging/kafka` | List Kafka log endpoints +*LoggingKafkaAPI* | [**UpdateLogKafka**](docs/LoggingKafkaAPI.md#updatelogkafka) | **PUT** `/service/{service_id}/version/{version_id}/logging/kafka/{logging_kafka_name}` | Update the Kafka log endpoint *LoggingKinesisAPI* | [**CreateLogKinesis**](docs/LoggingKinesisAPI.md#createlogkinesis) | **POST** `/service/{service_id}/version/{version_id}/logging/kinesis` | Create an Amazon Kinesis log endpoint *LoggingKinesisAPI* | [**DeleteLogKinesis**](docs/LoggingKinesisAPI.md#deletelogkinesis) | **DELETE** `/service/{service_id}/version/{version_id}/logging/kinesis/{logging_kinesis_name}` | Delete the Amazon Kinesis log endpoint *LoggingKinesisAPI* | [**GetLogKinesis**](docs/LoggingKinesisAPI.md#getlogkinesis) | **GET** `/service/{service_id}/version/{version_id}/logging/kinesis/{logging_kinesis_name}` | Get an Amazon Kinesis log endpoint *LoggingKinesisAPI* | [**ListLogKinesis**](docs/LoggingKinesisAPI.md#listlogkinesis) | **GET** `/service/{service_id}/version/{version_id}/logging/kinesis` | List Amazon Kinesis log endpoints +*LoggingKinesisAPI* | [**UpdateLogKinesis**](docs/LoggingKinesisAPI.md#updatelogkinesis) | **PUT** `/service/{service_id}/version/{version_id}/logging/kinesis/{logging_kinesis_name}` | Update the Amazon Kinesis log endpoint *LoggingLogentriesAPI* | [**CreateLogLogentries**](docs/LoggingLogentriesAPI.md#createloglogentries) | **POST** `/service/{service_id}/version/{version_id}/logging/logentries` | Create a Logentries log endpoint *LoggingLogentriesAPI* | [**DeleteLogLogentries**](docs/LoggingLogentriesAPI.md#deleteloglogentries) | **DELETE** `/service/{service_id}/version/{version_id}/logging/logentries/{logging_logentries_name}` | Delete a Logentries log endpoint *LoggingLogentriesAPI* | [**GetLogLogentries**](docs/LoggingLogentriesAPI.md#getloglogentries) | **GET** `/service/{service_id}/version/{version_id}/logging/logentries/{logging_logentries_name}` | Get a Logentries log endpoint @@ -342,6 +395,10 @@ Class | Method | HTTP request | Description *MutualAuthenticationAPI* | [**GetMutualAuthentication**](docs/MutualAuthenticationAPI.md#getmutualauthentication) | **GET** `/tls/mutual_authentications/{mutual_authentication_id}` | Get a Mutual Authentication *MutualAuthenticationAPI* | [**ListMutualAuthentications**](docs/MutualAuthenticationAPI.md#listmutualauthentications) | **GET** `/tls/mutual_authentications` | List Mutual Authentications *MutualAuthenticationAPI* | [**PatchMutualAuthentication**](docs/MutualAuthenticationAPI.md#patchmutualauthentication) | **PATCH** `/tls/mutual_authentications/{mutual_authentication_id}` | Update a Mutual Authentication +*OriginInspectorHistoricalAPI* | [**GetOriginInspectorHistorical**](docs/OriginInspectorHistoricalAPI.md#getorigininspectorhistorical) | **GET** `/metrics/origins/services/{service_id}` | Get historical origin data for a service +*OriginInspectorRealtimeAPI* | [**GetOriginInspectorLast120Seconds**](docs/OriginInspectorRealtimeAPI.md#getorigininspectorlast120seconds) | **GET** `/v1/origins/{service_id}/ts/h` | Get real-time origin data for the last 120 seconds +*OriginInspectorRealtimeAPI* | [**GetOriginInspectorLastMaxEntries**](docs/OriginInspectorRealtimeAPI.md#getorigininspectorlastmaxentries) | **GET** `/v1/origins/{service_id}/ts/h/limit/{max_entries}` | Get a limited number of real-time origin data entries +*OriginInspectorRealtimeAPI* | [**GetOriginInspectorLastSecond**](docs/OriginInspectorRealtimeAPI.md#getorigininspectorlastsecond) | **GET** `/v1/origins/{service_id}/ts/{start_timestamp}` | Get real-time origin data from specific time. *PackageAPI* | [**GetPackage**](docs/PackageAPI.md#getpackage) | **GET** `/service/{service_id}/version/{version_id}/package` | Get details of the service's Compute@Edge package. *PackageAPI* | [**PutPackage**](docs/PackageAPI.md#putpackage) | **PUT** `/service/{service_id}/version/{version_id}/package` | Upload a Compute@Edge package. *PoolAPI* | [**CreateServerPool**](docs/PoolAPI.md#createserverpool) | **POST** `/service/{service_id}/version/{version_id}/pool` | Create a server pool @@ -364,6 +421,7 @@ Class | Method | HTTP request | Description *RealtimeAPI* | [**GetStatsLast120Seconds**](docs/RealtimeAPI.md#getstatslast120seconds) | **GET** `/v1/channel/{service_id}/ts/h` | Get real-time data for the last 120 seconds *RealtimeAPI* | [**GetStatsLast120SecondsLimitEntries**](docs/RealtimeAPI.md#getstatslast120secondslimitentries) | **GET** `/v1/channel/{service_id}/ts/h/limit/{max_entries}` | Get a limited number of real-time data entries *RealtimeAPI* | [**GetStatsLastSecond**](docs/RealtimeAPI.md#getstatslastsecond) | **GET** `/v1/channel/{service_id}/ts/{timestamp_in_seconds}` | Get real-time data from specified time +*RequestSettingsAPI* | [**CreateRequestSettings**](docs/RequestSettingsAPI.md#createrequestsettings) | **POST** `/service/{service_id}/version/{version_id}/request_settings` | Create a Request Settings object *RequestSettingsAPI* | [**DeleteRequestSettings**](docs/RequestSettingsAPI.md#deleterequestsettings) | **DELETE** `/service/{service_id}/version/{version_id}/request_settings/{request_settings_name}` | Delete a Request Settings object *RequestSettingsAPI* | [**GetRequestSettings**](docs/RequestSettingsAPI.md#getrequestsettings) | **GET** `/service/{service_id}/version/{version_id}/request_settings/{request_settings_name}` | Get a Request Settings object *RequestSettingsAPI* | [**ListRequestSettings**](docs/RequestSettingsAPI.md#listrequestsettings) | **GET** `/service/{service_id}/version/{version_id}/request_settings` | List Request Settings objects @@ -373,9 +431,23 @@ Class | Method | HTTP request | Description *ResourceAPI* | [**GetResource**](docs/ResourceAPI.md#getresource) | **GET** `/service/{service_id}/version/{version_id}/resource/{id}` | Display a resource link *ResourceAPI* | [**ListResources**](docs/ResourceAPI.md#listresources) | **GET** `/service/{service_id}/version/{version_id}/resource` | List resource links *ResourceAPI* | [**UpdateResource**](docs/ResourceAPI.md#updateresource) | **PUT** `/service/{service_id}/version/{version_id}/resource/{id}` | Update a resource link +*ResponseObjectAPI* | [**CreateResponseObject**](docs/ResponseObjectAPI.md#createresponseobject) | **POST** `/service/{service_id}/version/{version_id}/response_object` | Create a Response object *ResponseObjectAPI* | [**DeleteResponseObject**](docs/ResponseObjectAPI.md#deleteresponseobject) | **DELETE** `/service/{service_id}/version/{version_id}/response_object/{response_object_name}` | Delete a Response Object *ResponseObjectAPI* | [**GetResponseObject**](docs/ResponseObjectAPI.md#getresponseobject) | **GET** `/service/{service_id}/version/{version_id}/response_object/{response_object_name}` | Get a Response object *ResponseObjectAPI* | [**ListResponseObjects**](docs/ResponseObjectAPI.md#listresponseobjects) | **GET** `/service/{service_id}/version/{version_id}/response_object` | List Response objects +*ResponseObjectAPI* | [**UpdateResponseObject**](docs/ResponseObjectAPI.md#updateresponseobject) | **PUT** `/service/{service_id}/version/{version_id}/response_object/{response_object_name}` | Update a Response object +*SecretStoreAPI* | [**ClientKey**](docs/SecretStoreAPI.md#clientkey) | **POST** `/resources/stores/secret/client-key` | Create new client key +*SecretStoreAPI* | [**CreateSecretStore**](docs/SecretStoreAPI.md#createsecretstore) | **POST** `/resources/stores/secret` | Create new secret store +*SecretStoreAPI* | [**DeleteSecretStore**](docs/SecretStoreAPI.md#deletesecretstore) | **DELETE** `/resources/stores/secret/{store_id}` | Delete secret store +*SecretStoreAPI* | [**GetSecretStore**](docs/SecretStoreAPI.md#getsecretstore) | **GET** `/resources/stores/secret/{store_id}` | Create secret store by ID +*SecretStoreAPI* | [**GetSecretStores**](docs/SecretStoreAPI.md#getsecretstores) | **GET** `/resources/stores/secret` | Get all secret stores +*SecretStoreAPI* | [**SigningKey**](docs/SecretStoreAPI.md#signingkey) | **GET** `/resources/stores/secret/signing-key` | Get public key +*SecretStoreItemAPI* | [**CreateSecret**](docs/SecretStoreItemAPI.md#createsecret) | **POST** `/resources/stores/secret/{store_id}/secrets` | Create a new secret in a store. +*SecretStoreItemAPI* | [**DeleteSecret**](docs/SecretStoreItemAPI.md#deletesecret) | **DELETE** `/resources/stores/secret/{store_id}/secrets/{secret_name}` | Delete a secret from a store. +*SecretStoreItemAPI* | [**GetSecret**](docs/SecretStoreItemAPI.md#getsecret) | **GET** `/resources/stores/secret/{store_id}/secrets/{secret_name}` | Get secret metadata. +*SecretStoreItemAPI* | [**GetSecrets**](docs/SecretStoreItemAPI.md#getsecrets) | **GET** `/resources/stores/secret/{store_id}/secrets` | List secrets within a store. +*SecretStoreItemAPI* | [**MustRecreateSecret**](docs/SecretStoreItemAPI.md#mustrecreatesecret) | **PATCH** `/resources/stores/secret/{store_id}/secrets` | Recreate a secret in a store. +*SecretStoreItemAPI* | [**RecreateSecret**](docs/SecretStoreItemAPI.md#recreatesecret) | **PUT** `/resources/stores/secret/{store_id}/secrets` | Create or recreate a secret in a store. *ServerAPI* | [**CreatePoolServer**](docs/ServerAPI.md#createpoolserver) | **POST** `/service/{service_id}/pool/{pool_id}/server` | Add a server to a pool *ServerAPI* | [**DeletePoolServer**](docs/ServerAPI.md#deletepoolserver) | **DELETE** `/service/{service_id}/pool/{pool_id}/server/{server_id}` | Delete a server from a pool *ServerAPI* | [**GetPoolServer**](docs/ServerAPI.md#getpoolserver) | **GET** `/service/{service_id}/pool/{pool_id}/server/{server_id}` | Get a pool server @@ -391,9 +463,11 @@ Class | Method | HTTP request | Description *ServiceAPI* | [**UpdateService**](docs/ServiceAPI.md#updateservice) | **PUT** `/service/{service_id}` | Update a service *ServiceAuthorizationsAPI* | [**CreateServiceAuthorization**](docs/ServiceAuthorizationsAPI.md#createserviceauthorization) | **POST** `/service-authorizations` | Create service authorization *ServiceAuthorizationsAPI* | [**DeleteServiceAuthorization**](docs/ServiceAuthorizationsAPI.md#deleteserviceauthorization) | **DELETE** `/service-authorizations/{service_authorization_id}` | Delete service authorization +*ServiceAuthorizationsAPI* | [**DeleteServiceAuthorization2**](docs/ServiceAuthorizationsAPI.md#deleteserviceauthorization2) | **DELETE** `/service-authorizations` | Delete service authorizations *ServiceAuthorizationsAPI* | [**ListServiceAuthorization**](docs/ServiceAuthorizationsAPI.md#listserviceauthorization) | **GET** `/service-authorizations` | List service authorizations *ServiceAuthorizationsAPI* | [**ShowServiceAuthorization**](docs/ServiceAuthorizationsAPI.md#showserviceauthorization) | **GET** `/service-authorizations/{service_authorization_id}` | Show service authorization *ServiceAuthorizationsAPI* | [**UpdateServiceAuthorization**](docs/ServiceAuthorizationsAPI.md#updateserviceauthorization) | **PATCH** `/service-authorizations/{service_authorization_id}` | Update service authorization +*ServiceAuthorizationsAPI* | [**UpdateServiceAuthorization2**](docs/ServiceAuthorizationsAPI.md#updateserviceauthorization2) | **PATCH** `/service-authorizations` | Update service authorizations *SettingsAPI* | [**GetServiceSettings**](docs/SettingsAPI.md#getservicesettings) | **GET** `/service/{service_id}/version/{version_id}/settings` | Get service settings *SettingsAPI* | [**UpdateServiceSettings**](docs/SettingsAPI.md#updateservicesettings) | **PUT** `/service/{service_id}/version/{version_id}/settings` | Update service settings *SnippetAPI* | [**CreateSnippet**](docs/SnippetAPI.md#createsnippet) | **POST** `/service/{service_id}/version/{version_id}/snippet` | Create a snippet @@ -401,12 +475,14 @@ Class | Method | HTTP request | Description *SnippetAPI* | [**GetSnippet**](docs/SnippetAPI.md#getsnippet) | **GET** `/service/{service_id}/version/{version_id}/snippet/{snippet_name}` | Get a versioned snippet *SnippetAPI* | [**GetSnippetDynamic**](docs/SnippetAPI.md#getsnippetdynamic) | **GET** `/service/{service_id}/snippet/{snippet_id}` | Get a dynamic snippet *SnippetAPI* | [**ListSnippets**](docs/SnippetAPI.md#listsnippets) | **GET** `/service/{service_id}/version/{version_id}/snippet` | List snippets +*SnippetAPI* | [**UpdateSnippet**](docs/SnippetAPI.md#updatesnippet) | **PUT** `/service/{service_id}/version/{version_id}/snippet/{snippet_name}` | Update a versioned snippet *SnippetAPI* | [**UpdateSnippetDynamic**](docs/SnippetAPI.md#updatesnippetdynamic) | **PUT** `/service/{service_id}/snippet/{snippet_id}` | Update a dynamic snippet *StarAPI* | [**CreateServiceStar**](docs/StarAPI.md#createservicestar) | **POST** `/stars` | Create a star *StarAPI* | [**DeleteServiceStar**](docs/StarAPI.md#deleteservicestar) | **DELETE** `/stars/{star_id}` | Delete a star *StarAPI* | [**GetServiceStar**](docs/StarAPI.md#getservicestar) | **GET** `/stars/{star_id}` | Get a star *StarAPI* | [**ListServiceStars**](docs/StarAPI.md#listservicestars) | **GET** `/stars` | List stars *StatsAPI* | [**GetServiceStats**](docs/StatsAPI.md#getservicestats) | **GET** `/service/{service_id}/stats/summary` | Get stats for a service +*SudoAPI* | [**RequestSudoAccess**](docs/SudoAPI.md#requestsudoaccess) | **POST** `/sudo` | Request Sudo access *TLSActivationsAPI* | [**CreateTLSActivation**](docs/TlsActivationsAPI.md#createtlsactivation) | **POST** `/tls/activations` | Enable TLS for a domain using a custom certificate *TLSActivationsAPI* | [**DeleteTLSActivation**](docs/TlsActivationsAPI.md#deletetlsactivation) | **DELETE** `/tls/activations/{tls_activation_id}` | Disable TLS on a domain *TLSActivationsAPI* | [**GetTLSActivation**](docs/TlsActivationsAPI.md#gettlsactivation) | **GET** `/tls/activations/{tls_activation_id}` | Get a TLS activation @@ -437,6 +513,8 @@ Class | Method | HTTP request | Description *TLSSubscriptionsAPI* | [**GetTLSSub**](docs/TlsSubscriptionsAPI.md#gettlssub) | **GET** `/tls/subscriptions/{tls_subscription_id}` | Get a TLS subscription *TLSSubscriptionsAPI* | [**ListTLSSubs**](docs/TlsSubscriptionsAPI.md#listtlssubs) | **GET** `/tls/subscriptions` | List TLS subscriptions *TLSSubscriptionsAPI* | [**PatchTLSSub**](docs/TlsSubscriptionsAPI.md#patchtlssub) | **PATCH** `/tls/subscriptions/{tls_subscription_id}` | Update a TLS subscription +*TokensAPI* | [**BulkRevokeTokens**](docs/TokensAPI.md#bulkrevoketokens) | **DELETE** `/tokens` | Revoke multiple tokens +*TokensAPI* | [**CreateToken**](docs/TokensAPI.md#createtoken) | **POST** `/tokens` | Create a token *TokensAPI* | [**GetToken**](docs/TokensAPI.md#gettoken) | **GET** `/tokens/{token_id}` | Get a token *TokensAPI* | [**GetTokenCurrent**](docs/TokensAPI.md#gettokencurrent) | **GET** `/tokens/self` | Get the current token *TokensAPI* | [**ListTokensCustomer**](docs/TokensAPI.md#listtokenscustomer) | **GET** `/customer/{customer_id}/tokens` | List tokens for a customer @@ -473,6 +551,7 @@ Class | Method | HTTP request | Description *VersionAPI* | [**LockServiceVersion**](docs/VersionAPI.md#lockserviceversion) | **PUT** `/service/{service_id}/version/{version_id}/lock` | Lock a service version *VersionAPI* | [**UpdateServiceVersion**](docs/VersionAPI.md#updateserviceversion) | **PUT** `/service/{service_id}/version/{version_id}` | Update a service version *VersionAPI* | [**ValidateServiceVersion**](docs/VersionAPI.md#validateserviceversion) | **GET** `/service/{service_id}/version/{version_id}/validate` | Validate a service version +*WafActiveRulesAPI* | [**BulkDeleteWafActiveRules**](docs/WafActiveRulesAPI.md#bulkdeletewafactiverules) | **DELETE** `/waf/firewalls/{firewall_id}/versions/{version_id}/active-rules` | Delete multiple active rules from a WAF *WafActiveRulesAPI* | [**BulkUpdateWafActiveRules**](docs/WafActiveRulesAPI.md#bulkupdatewafactiverules) | **PATCH** `/waf/firewalls/{firewall_id}/versions/{version_id}/active-rules/bulk` | Update multiple active rules *WafActiveRulesAPI* | [**CreateWafActiveRule**](docs/WafActiveRulesAPI.md#createwafactiverule) | **POST** `/waf/firewalls/{firewall_id}/versions/{version_id}/active-rules` | Add a rule to a WAF as an active rule *WafActiveRulesAPI* | [**CreateWafActiveRulesTag**](docs/WafActiveRulesAPI.md#createwafactiverulestag) | **POST** `/waf/firewalls/{firewall_id}/versions/{version_id}/tags/{waf_tag_name}/active-rules` | Create active rules by tag @@ -523,70 +602,12 @@ Each of these functions takes a value of the given basic type and returns a poin The fastly-go API client currently does not support the following endpoints: -- [`/customer/{customer_id}/contacts`](https://developer.fastly.com/reference/api/account/contact) (POST) -- [`/metrics/domains/services/{service_id}`](https://developer.fastly.com/reference/api/metrics-stats/domain-inspector/historical) (GET) -- [`/metrics/origins/services/{service_id}`](https://developer.fastly.com/reference/api/metrics-stats/origin-inspector/historical) (GET) - [`/resources/stores/kv/{store_id}/batch`](https://developer.fastly.com/reference/api/services/resources/kv-store-item) (PUT) -- [`/resources/stores/secret/client-key`](https://developer.fastly.com/reference/api/services/resources/secret-store) (POST) -- [`/resources/stores/secret/signing-key`](https://developer.fastly.com/reference/api/services/resources/secret-store) (GET) -- [`/resources/stores/secret/{store_id}/secrets/{secret_name}`](https://developer.fastly.com/reference/api/services/resources/secret) (DELETE, GET) -- [`/resources/stores/secret/{store_id}/secrets`](https://developer.fastly.com/reference/api/services/resources/secret) (GET, PATCH, POST, PUT) -- [`/resources/stores/secret/{store_id}`](https://developer.fastly.com/reference/api/services/resources/secret-store) (DELETE, GET) -- [`/resources/stores/secret`](https://developer.fastly.com/reference/api/services/resources/secret-store) (GET, POST) -- [`/roles/{role_id}/permissions`](https://developer.fastly.com/reference/api/account/roles) (DELETE, POST) -- [`/roles/{role_id}`](https://developer.fastly.com/reference/api/account/roles) (PATCH) -- [`/roles`](https://developer.fastly.com/reference/api/account/roles) (POST) -- [`/service-authorizations`](https://developer.fastly.com/reference/api/account/service-authorization) (DELETE, PATCH) -- [`/service-groups/{service_group_id}/services`](https://developer.fastly.com/reference/api/account/service-groups) (DELETE, POST) -- [`/service-groups/{service_group_id}`](https://developer.fastly.com/reference/api/account/service-groups) (PATCH) -- [`/service-groups`](https://developer.fastly.com/reference/api/account/service-groups) (POST) -- [`/service/{service_id}/version/{version_id}/apex-redirects`](https://developer.fastly.com/reference/api/vcl-services/apex-redirect) (POST) -- [`/service/{service_id}/version/{version_id}/director/{director_name}`](https://developer.fastly.com/reference/api/load-balancing/directors/director) (PUT) -- [`/service/{service_id}/version/{version_id}/logging/kafka/{logging_kafka_name}`](https://developer.fastly.com/reference/api/logging/kafka) (PUT) -- [`/service/{service_id}/version/{version_id}/logging/kinesis/{logging_kinesis_name}`](https://developer.fastly.com/reference/api/logging/kinesis) (PUT) -- [`/service/{service_id}/version/{version_id}/request_settings`](https://developer.fastly.com/reference/api/vcl-services/request-settings) (POST) -- [`/service/{service_id}/version/{version_id}/response_object/{response_object_name}`](https://developer.fastly.com/reference/api/vcl-services/response-object) (PUT) -- [`/service/{service_id}/version/{version_id}/response_object`](https://developer.fastly.com/reference/api/vcl-services/response-object) (POST) -- [`/service/{service_id}/version/{version_id}/snippet/{snippet_name}`](https://developer.fastly.com/reference/api/vcl-services/snippet) (PUT) -- [`/service/{service_id}/version/{version_id}/wafs/{firewall_id}`](https://developer.fastly.com/reference/api/legacy-waf/firewall) (GET, PATCH) -- [`/service/{service_id}/version/{version_id}/wafs`](https://developer.fastly.com/reference/api/legacy-waf/firewall) (GET, POST) -- [`/service/{service_id}/wafs/{firewall_id}/owasp`](https://developer.fastly.com/reference/api/legacy-waf/owasp) (GET, PATCH, POST) -- [`/service/{service_id}/wafs/{firewall_id}/rule_statuses`](https://developer.fastly.com/reference/api/legacy-waf/rule-status) (GET, POST) -- [`/service/{service_id}/wafs/{firewall_id}/rules/{waf_rule_id}/rule_status`](https://developer.fastly.com/reference/api/legacy-waf/rule-status) (GET, PATCH) -- [`/service/{service_id}/wafs/{firewall_id}/ruleset/preview`](https://developer.fastly.com/reference/api/legacy-waf/ruleset) (GET) -- [`/service/{service_id}/wafs/{firewall_id}/ruleset`](https://developer.fastly.com/reference/api/legacy-waf/ruleset) (GET, PATCH) -- [`/service/{service_id}/wafs/{firewall_id}/update_statuses/{update_status_id}`](https://developer.fastly.com/reference/api/legacy-waf/update-status) (GET) -- [`/service/{service_id}/wafs/{firewall_id}/update_statuses`](https://developer.fastly.com/reference/api/legacy-waf/update-status) (GET) -- [`/sudo`](https://developer.fastly.com/reference/api/utils/sudo) (POST) - [`/tls/activations/{tls_activation_id}`](https://developer.fastly.com/reference/api/tls/mutual-tls/activations) (GET, PATCH) - [`/tls/activations`](https://developer.fastly.com/reference/api/tls/mutual-tls/activations) (GET) -- [`/tokens`](https://developer.fastly.com/reference/api/auth-tokens/user) (DELETE, POST) -- [`/user-groups/{user_group_id}/members`](https://developer.fastly.com/reference/api/account/user-groups) (DELETE, POST) -- [`/user-groups/{user_group_id}/roles`](https://developer.fastly.com/reference/api/account/user-groups) (DELETE, POST) -- [`/user-groups/{user_group_id}/service-groups`](https://developer.fastly.com/reference/api/account/user-groups) (DELETE, POST) -- [`/user-groups/{user_group_id}`](https://developer.fastly.com/reference/api/account/user-groups) (PATCH) -- [`/user-groups`](https://developer.fastly.com/reference/api/account/user-groups) (POST) - [`/v1/channel/{service_id}/ts/h/limit/{max_entries}`](https://developer.fastly.com/reference/api/metrics-stats/origin-insights) (GET) - [`/v1/channel/{service_id}/ts/h`](https://developer.fastly.com/reference/api/metrics-stats/origin-insights) (GET) - [`/v1/channel/{service_id}/ts/{start_timestamp}`](https://developer.fastly.com/reference/api/metrics-stats/origin-insights) (GET) -- [`/v1/domains/{service_id}/ts/h/limit/{max_entries}`](https://developer.fastly.com/reference/api/metrics-stats/domain-inspector/real-time) (GET) -- [`/v1/domains/{service_id}/ts/h`](https://developer.fastly.com/reference/api/metrics-stats/domain-inspector/real-time) (GET) -- [`/v1/domains/{service_id}/ts/{start_timestamp}`](https://developer.fastly.com/reference/api/metrics-stats/domain-inspector/real-time) (GET) -- [`/v1/origins/{service_id}/ts/h/limit/{max_entries}`](https://developer.fastly.com/reference/api/metrics-stats/origin-inspector/real-time) (GET) -- [`/v1/origins/{service_id}/ts/h`](https://developer.fastly.com/reference/api/metrics-stats/origin-inspector/real-time) (GET) -- [`/v1/origins/{service_id}/ts/{start_timestamp}`](https://developer.fastly.com/reference/api/metrics-stats/origin-inspector/real-time) (GET) -- [`/waf/firewalls/{firewall_id}/versions/{version_id}/active-rules`](https://developer.fastly.com/reference/api/waf/rules/active) (DELETE) -- [`/wafs/configuration_sets/{configuration_set_id}/relationships/wafs`](https://developer.fastly.com/reference/api/legacy-waf/configuration-set) (GET, PATCH) -- [`/wafs/configuration_sets`](https://developer.fastly.com/reference/api/legacy-waf/configuration-set) (GET) -- [`/wafs/rules/{waf_rule_id}/vcl`](https://developer.fastly.com/reference/api/legacy-waf/rule) (GET) -- [`/wafs/rules/{waf_rule_id}`](https://developer.fastly.com/reference/api/legacy-waf/rule) (GET) -- [`/wafs/rules`](https://developer.fastly.com/reference/api/legacy-waf/rule) (GET) -- [`/wafs/tags`](https://developer.fastly.com/reference/api/legacy-waf/tag) (GET) -- [`/wafs/{firewall_id}/disable`](https://developer.fastly.com/reference/api/legacy-waf/firewall) (PATCH) -- [`/wafs/{firewall_id}/enable`](https://developer.fastly.com/reference/api/legacy-waf/firewall) (PATCH) -- [`/wafs/{firewall_id}/rules/{waf_rule_id}/vcl`](https://developer.fastly.com/reference/api/legacy-waf/rule) (GET) -- [`/wafs/{firewall_id}`](https://developer.fastly.com/reference/api/legacy-waf/firewall) (GET) -- [`/wafs`](https://developer.fastly.com/reference/api/legacy-waf/firewall) (GET) If you encounter any non-security-related bug or unexpected behavior, please [file an issue][bug] diff --git a/docs/ApexRedirectAPI.md b/docs/ApexRedirectAPI.md index 49f3b91d..b8d42b08 100644 --- a/docs/ApexRedirectAPI.md +++ b/docs/ApexRedirectAPI.md @@ -4,6 +4,7 @@ All URIs are relative to *https://api.fastly.com* Method | HTTP request | Description ------------- | ------------- | ------------- +[**CreateApexRedirect**](ApexRedirectAPI.md#CreateApexRedirect) | **POST** `/service/{service_id}/version/{version_id}/apex-redirects` | Create an apex redirect [**DeleteApexRedirect**](ApexRedirectAPI.md#DeleteApexRedirect) | **DELETE** `/apex-redirects/{apex_redirect_id}` | Delete an apex redirect [**GetApexRedirect**](ApexRedirectAPI.md#GetApexRedirect) | **GET** `/apex-redirects/{apex_redirect_id}` | Get an apex redirect [**ListApexRedirects**](ApexRedirectAPI.md#ListApexRedirects) | **GET** `/service/{service_id}/version/{version_id}/apex-redirects` | List apex redirects @@ -11,6 +12,84 @@ Method | HTTP request | Description +## CreateApexRedirect + +Create an apex redirect + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + "time" + "github.com/fastly/fastly-go/fastly" +) + +func main() { + serviceID := "serviceId_example" // string | Alphanumeric string identifying the service. + versionID := int32(56) // int32 | Integer identifying a service version. + serviceID2 := "serviceId_example" // string | (optional) + version := int32(56) // int32 | (optional) + createdAt := time.Now() // time.Time | Date and time in ISO 8601 format. (optional) + deletedAt := time.Now() // time.Time | Date and time in ISO 8601 format. (optional) + updatedAt := time.Now() // time.Time | Date and time in ISO 8601 format. (optional) + statusCode := int32(56) // int32 | HTTP status code used to redirect the client. (optional) + domains := []string{"Inner_example"} // []string | Array of apex domains that should redirect to their WWW subdomain. (optional) + featureRevision := int32(56) // int32 | Revision number of the apex redirect feature implementation. Defaults to the most recent revision. (optional) + + cfg := fastly.NewConfiguration() + apiClient := fastly.NewAPIClient(cfg) + ctx := fastly.NewAPIKeyContextFromEnv("FASTLY_API_TOKEN") + resp, r, err := apiClient.ApexRedirectAPI.CreateApexRedirect(ctx, serviceID, versionID).ServiceID2(serviceID2).Version(version).CreatedAt(createdAt).DeletedAt(deletedAt).UpdatedAt(updatedAt).StatusCode(statusCode).Domains(domains).FeatureRevision(featureRevision).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ApexRedirectAPI.CreateApexRedirect`: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateApexRedirect`: ApexRedirect + fmt.Fprintf(os.Stdout, "Response from `ApexRedirectAPI.CreateApexRedirect`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceID** | **string** | Alphanumeric string identifying the service. | +**versionID** | **int32** | Integer identifying a service version. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiCreateApexRedirectRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **serviceID2** | **string** | | **version** | **int32** | | **createdAt** | **time.Time** | Date and time in ISO 8601 format. | **deletedAt** | **time.Time** | Date and time in ISO 8601 format. | **updatedAt** | **time.Time** | Date and time in ISO 8601 format. | **statusCode** | **int32** | HTTP status code used to redirect the client. | **domains** | **[]string** | Array of apex domains that should redirect to their WWW subdomain. | **featureRevision** | **int32** | Revision number of the apex redirect feature implementation. Defaults to the most recent revision. | + +### Return type + +[**ApexRedirect**](ApexRedirect.md) + +### Authorization + +[API Token](https://developer.fastly.com/reference/api/#authentication) + +### HTTP request headers + +- **Content-Type**: application/x-www-form-urlencoded +- **Accept**: application/json + +[Back to top](#) | [Back to API list](../README.md#documentation-for-api-endpoints) | [Back to README](../README.md) + + ## DeleteApexRedirect Delete an apex redirect diff --git a/docs/ClientKey.md b/docs/ClientKey.md new file mode 100644 index 00000000..8defe4f5 --- /dev/null +++ b/docs/ClientKey.md @@ -0,0 +1,116 @@ +# ClientKey + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ClientKey** | Pointer to **string** | A Base64-encoded X25519 public key that can be used with a [libsodium-compatible sealed box](https://libsodium.gitbook.io/doc/public-key_cryptography/sealed_boxes) to encrypt secrets before upload. | [optional] +**Signature** | Pointer to **string** | A Base64-encoded signature of the client key. The signature is generated using the signing key and must be verified before using the client key. | [optional] +**ExpiresAt** | Pointer to **NullableTime** | Date and time in ISO 8601 format. | [optional] [readonly] + +## Methods + +### NewClientKey + +`func NewClientKey() *ClientKey` + +NewClientKey instantiates a new ClientKey object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewClientKeyWithDefaults + +`func NewClientKeyWithDefaults() *ClientKey` + +NewClientKeyWithDefaults instantiates a new ClientKey object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetClientKey + +`func (o *ClientKey) GetClientKey() string` + +GetClientKey returns the ClientKey field if non-nil, zero value otherwise. + +### GetClientKeyOk + +`func (o *ClientKey) GetClientKeyOk() (*string, bool)` + +GetClientKeyOk returns a tuple with the ClientKey field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetClientKey + +`func (o *ClientKey) SetClientKey(v string)` + +SetClientKey sets ClientKey field to given value. + +### HasClientKey + +`func (o *ClientKey) HasClientKey() bool` + +HasClientKey returns a boolean if a field has been set. + +### GetSignature + +`func (o *ClientKey) GetSignature() string` + +GetSignature returns the Signature field if non-nil, zero value otherwise. + +### GetSignatureOk + +`func (o *ClientKey) GetSignatureOk() (*string, bool)` + +GetSignatureOk returns a tuple with the Signature field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSignature + +`func (o *ClientKey) SetSignature(v string)` + +SetSignature sets Signature field to given value. + +### HasSignature + +`func (o *ClientKey) HasSignature() bool` + +HasSignature returns a boolean if a field has been set. + +### GetExpiresAt + +`func (o *ClientKey) GetExpiresAt() time.Time` + +GetExpiresAt returns the ExpiresAt field if non-nil, zero value otherwise. + +### GetExpiresAtOk + +`func (o *ClientKey) GetExpiresAtOk() (*time.Time, bool)` + +GetExpiresAtOk returns a tuple with the ExpiresAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExpiresAt + +`func (o *ClientKey) SetExpiresAt(v time.Time)` + +SetExpiresAt sets ExpiresAt field to given value. + +### HasExpiresAt + +`func (o *ClientKey) HasExpiresAt() bool` + +HasExpiresAt returns a boolean if a field has been set. + +### SetExpiresAtNil + +`func (o *ClientKey) SetExpiresAtNil(b bool)` + + SetExpiresAtNil sets the value for ExpiresAt to be an explicit nil + +### UnsetExpiresAt +`func (o *ClientKey) UnsetExpiresAt()` + +UnsetExpiresAt ensures that no value is present for ExpiresAt, not even an explicit nil + +[Back to API list](../README.md#documentation-for-api-endpoints) | [Back to README](../README.md) diff --git a/docs/ContactAPI.md b/docs/ContactAPI.md index c9bbb3dc..5a6d0dd2 100644 --- a/docs/ContactAPI.md +++ b/docs/ContactAPI.md @@ -4,11 +4,85 @@ All URIs are relative to *https://api.fastly.com* Method | HTTP request | Description ------------- | ------------- | ------------- +[**CreateContacts**](ContactAPI.md#CreateContacts) | **POST** `/customer/{customer_id}/contacts` | Add a new customer contact [**DeleteContact**](ContactAPI.md#DeleteContact) | **DELETE** `/customer/{customer_id}/contact/{contact_id}` | Delete a contact [**ListContacts**](ContactAPI.md#ListContacts) | **GET** `/customer/{customer_id}/contacts` | List contacts +## CreateContacts + +Add a new customer contact + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + "github.com/fastly/fastly-go/fastly" +) + +func main() { + customerID := "customerId_example" // string | Alphanumeric string identifying the customer. + userID := "userId_example" // string | The alphanumeric string representing the user for this customer contact. (optional) + contactType := "contactType_example" // string | The type of contact. (optional) + name := "name_example" // string | The name of this contact, when user_id is not provided. (optional) + email := "email_example" // string | The email of this contact, when a user_id is not provided. (optional) + phone := "phone_example" // string | The phone number for this contact. Required for primary, technical, and security contact types. (optional) + customerID2 := "customerId_example" // string | The alphanumeric string representing the customer for this customer contact. (optional) + + cfg := fastly.NewConfiguration() + apiClient := fastly.NewAPIClient(cfg) + ctx := fastly.NewAPIKeyContextFromEnv("FASTLY_API_TOKEN") + resp, r, err := apiClient.ContactAPI.CreateContacts(ctx, customerID).UserID(userID).ContactType(contactType).Name(name).Email(email).Phone(phone).CustomerID2(customerID2).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ContactAPI.CreateContacts`: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateContacts`: ContactResponse + fmt.Fprintf(os.Stdout, "Response from `ContactAPI.CreateContacts`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**customerID** | **string** | Alphanumeric string identifying the customer. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiCreateContactsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **userID** | **string** | The alphanumeric string representing the user for this customer contact. | **contactType** | **string** | The type of contact. | **name** | **string** | The name of this contact, when user_id is not provided. | **email** | **string** | The email of this contact, when a user_id is not provided. | **phone** | **string** | The phone number for this contact. Required for primary, technical, and security contact types. | **customerID2** | **string** | The alphanumeric string representing the customer for this customer contact. | + +### Return type + +[**ContactResponse**](ContactResponse.md) + +### Authorization + +[API Token](https://developer.fastly.com/reference/api/#authentication) + +### HTTP request headers + +- **Content-Type**: application/x-www-form-urlencoded +- **Accept**: application/json + +[Back to top](#) | [Back to API list](../README.md#documentation-for-api-endpoints) | [Back to README](../README.md) + + ## DeleteContact Delete a contact diff --git a/docs/Content.md b/docs/Content.md index b67f5264..2138fa52 100644 --- a/docs/Content.md +++ b/docs/Content.md @@ -5,8 +5,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Hash** | Pointer to **string** | | [optional] -**Request** | Pointer to **map[string]any** | | [optional] -**Response** | Pointer to **map[string]any** | | [optional] +**Request** | Pointer to **map[string]map[string]any** | | [optional] +**Response** | Pointer to **map[string]map[string]any** | | [optional] **ResponseTime** | Pointer to **float32** | | [optional] **Server** | Pointer to **string** | | [optional] **Pop** | Pointer to **string** | | [optional] @@ -57,20 +57,20 @@ HasHash returns a boolean if a field has been set. ### GetRequest -`func (o *Content) GetRequest() map[string]any` +`func (o *Content) GetRequest() map[string]map[string]any` GetRequest returns the Request field if non-nil, zero value otherwise. ### GetRequestOk -`func (o *Content) GetRequestOk() (*map[string]any, bool)` +`func (o *Content) GetRequestOk() (*map[string]map[string]any, bool)` GetRequestOk returns a tuple with the Request field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRequest -`func (o *Content) SetRequest(v map[string]any)` +`func (o *Content) SetRequest(v map[string]map[string]any)` SetRequest sets Request field to given value. @@ -82,20 +82,20 @@ HasRequest returns a boolean if a field has been set. ### GetResponse -`func (o *Content) GetResponse() map[string]any` +`func (o *Content) GetResponse() map[string]map[string]any` GetResponse returns the Response field if non-nil, zero value otherwise. ### GetResponseOk -`func (o *Content) GetResponseOk() (*map[string]any, bool)` +`func (o *Content) GetResponseOk() (*map[string]map[string]any, bool)` GetResponseOk returns a tuple with the Response field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetResponse -`func (o *Content) SetResponse(v map[string]any)` +`func (o *Content) SetResponse(v map[string]map[string]any)` SetResponse sets Response field to given value. diff --git a/docs/DirectorAPI.md b/docs/DirectorAPI.md index 79dda8f5..5a08a8f2 100644 --- a/docs/DirectorAPI.md +++ b/docs/DirectorAPI.md @@ -8,6 +8,7 @@ Method | HTTP request | Description [**DeleteDirector**](DirectorAPI.md#DeleteDirector) | **DELETE** `/service/{service_id}/version/{version_id}/director/{director_name}` | Delete a director [**GetDirector**](DirectorAPI.md#GetDirector) | **GET** `/service/{service_id}/version/{version_id}/director/{director_name}` | Get a director [**ListDirectors**](DirectorAPI.md#ListDirectors) | **GET** `/service/{service_id}/version/{version_id}/director` | List directors +[**UpdateDirector**](DirectorAPI.md#UpdateDirector) | **PUT** `/service/{service_id}/version/{version_id}/director/{director_name}` | Update a director @@ -297,3 +298,74 @@ Name | Type | Description | Notes - **Accept**: application/json [Back to top](#) | [Back to API list](../README.md#documentation-for-api-endpoints) | [Back to README](../README.md) + + +## UpdateDirector + +Update a director + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + "github.com/fastly/fastly-go/fastly" +) + +func main() { + serviceID := "serviceId_example" // string | Alphanumeric string identifying the service. + versionID := int32(56) // int32 | Integer identifying a service version. + directorName := "directorName_example" // string | Name for the Director. + + cfg := fastly.NewConfiguration() + apiClient := fastly.NewAPIClient(cfg) + ctx := fastly.NewAPIKeyContextFromEnv("FASTLY_API_TOKEN") + resp, r, err := apiClient.DirectorAPI.UpdateDirector(ctx, serviceID, versionID, directorName).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DirectorAPI.UpdateDirector`: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `UpdateDirector`: DirectorResponse + fmt.Fprintf(os.Stdout, "Response from `DirectorAPI.UpdateDirector`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceID** | **string** | Alphanumeric string identifying the service. | +**versionID** | **int32** | Integer identifying a service version. | +**directorName** | **string** | Name for the Director. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiUpdateDirectorRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + +[**DirectorResponse**](DirectorResponse.md) + +### Authorization + +[API Token](https://developer.fastly.com/reference/api/#authentication) + +### HTTP request headers + +- **Content-Type**: application/x-www-form-urlencoded +- **Accept**: application/json + +[Back to top](#) | [Back to API list](../README.md#documentation-for-api-endpoints) | [Back to README](../README.md) diff --git a/docs/DomainInspector.md b/docs/DomainInspector.md new file mode 100644 index 00000000..66c65727 --- /dev/null +++ b/docs/DomainInspector.md @@ -0,0 +1,106 @@ +# DomainInspector + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Timestamp** | Pointer to [**SubsequentRequestTimestamp**](SubsequentRequestTimestamp.md) | | [optional] +**AggregateDelay** | Pointer to **int32** | Offset of entry timestamps from the current time due to processing time. | [optional] +**Data** | Pointer to [**[]DomainInspectorRealtimeEntry**](DomainInspectorRealtimeEntry.md) | A list of report [entries](#entry-data-model), each representing one second of time. | [optional] + +## Methods + +### NewDomainInspector + +`func NewDomainInspector() *DomainInspector` + +NewDomainInspector instantiates a new DomainInspector object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewDomainInspectorWithDefaults + +`func NewDomainInspectorWithDefaults() *DomainInspector` + +NewDomainInspectorWithDefaults instantiates a new DomainInspector object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetTimestamp + +`func (o *DomainInspector) GetTimestamp() SubsequentRequestTimestamp` + +GetTimestamp returns the Timestamp field if non-nil, zero value otherwise. + +### GetTimestampOk + +`func (o *DomainInspector) GetTimestampOk() (*SubsequentRequestTimestamp, bool)` + +GetTimestampOk returns a tuple with the Timestamp field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTimestamp + +`func (o *DomainInspector) SetTimestamp(v SubsequentRequestTimestamp)` + +SetTimestamp sets Timestamp field to given value. + +### HasTimestamp + +`func (o *DomainInspector) HasTimestamp() bool` + +HasTimestamp returns a boolean if a field has been set. + +### GetAggregateDelay + +`func (o *DomainInspector) GetAggregateDelay() int32` + +GetAggregateDelay returns the AggregateDelay field if non-nil, zero value otherwise. + +### GetAggregateDelayOk + +`func (o *DomainInspector) GetAggregateDelayOk() (*int32, bool)` + +GetAggregateDelayOk returns a tuple with the AggregateDelay field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAggregateDelay + +`func (o *DomainInspector) SetAggregateDelay(v int32)` + +SetAggregateDelay sets AggregateDelay field to given value. + +### HasAggregateDelay + +`func (o *DomainInspector) HasAggregateDelay() bool` + +HasAggregateDelay returns a boolean if a field has been set. + +### GetData + +`func (o *DomainInspector) GetData() []DomainInspectorRealtimeEntry` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *DomainInspector) GetDataOk() (*[]DomainInspectorRealtimeEntry, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *DomainInspector) SetData(v []DomainInspectorRealtimeEntry)` + +SetData sets Data field to given value. + +### HasData + +`func (o *DomainInspector) HasData() bool` + +HasData returns a boolean if a field has been set. + + +[Back to API list](../README.md#documentation-for-api-endpoints) | [Back to README](../README.md) diff --git a/docs/DomainInspectorEntry.md b/docs/DomainInspectorEntry.md new file mode 100644 index 00000000..d6594de0 --- /dev/null +++ b/docs/DomainInspectorEntry.md @@ -0,0 +1,80 @@ +# DomainInspectorEntry + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Dimensions** | Pointer to [**DomainInspectorEntryDimensions**](DomainInspectorEntryDimensions.md) | | [optional] +**Values** | Pointer to [**[]Values**](Values.md) | An array of values representing the metric values at each point in time. Note that this dataset is sparse: only the keys with non-zero values will be included in the record. | [optional] + +## Methods + +### NewDomainInspectorEntry + +`func NewDomainInspectorEntry() *DomainInspectorEntry` + +NewDomainInspectorEntry instantiates a new DomainInspectorEntry object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewDomainInspectorEntryWithDefaults + +`func NewDomainInspectorEntryWithDefaults() *DomainInspectorEntry` + +NewDomainInspectorEntryWithDefaults instantiates a new DomainInspectorEntry object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetDimensions + +`func (o *DomainInspectorEntry) GetDimensions() DomainInspectorEntryDimensions` + +GetDimensions returns the Dimensions field if non-nil, zero value otherwise. + +### GetDimensionsOk + +`func (o *DomainInspectorEntry) GetDimensionsOk() (*DomainInspectorEntryDimensions, bool)` + +GetDimensionsOk returns a tuple with the Dimensions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDimensions + +`func (o *DomainInspectorEntry) SetDimensions(v DomainInspectorEntryDimensions)` + +SetDimensions sets Dimensions field to given value. + +### HasDimensions + +`func (o *DomainInspectorEntry) HasDimensions() bool` + +HasDimensions returns a boolean if a field has been set. + +### GetValues + +`func (o *DomainInspectorEntry) GetValues() []Values` + +GetValues returns the Values field if non-nil, zero value otherwise. + +### GetValuesOk + +`func (o *DomainInspectorEntry) GetValuesOk() (*[]Values, bool)` + +GetValuesOk returns a tuple with the Values field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetValues + +`func (o *DomainInspectorEntry) SetValues(v []Values)` + +SetValues sets Values field to given value. + +### HasValues + +`func (o *DomainInspectorEntry) HasValues() bool` + +HasValues returns a boolean if a field has been set. + + +[Back to API list](../README.md#documentation-for-api-endpoints) | [Back to README](../README.md) diff --git a/docs/DomainInspectorEntryDimensions.md b/docs/DomainInspectorEntryDimensions.md new file mode 100644 index 00000000..3d48d1c3 --- /dev/null +++ b/docs/DomainInspectorEntryDimensions.md @@ -0,0 +1,106 @@ +# DomainInspectorEntryDimensions + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Region** | Pointer to **string** | The geographic region from which the edge responses in this data entry were delivered. If unspecified, results are aggregated across regions. | [optional] +**Datacenter** | Pointer to **string** | The POP from which the edge responses in this data entry were delivered. If unspecified, results are aggregated across POPs. | [optional] +**Domain** | Pointer to **string** | The domain from which the edge responses in this data entry were delivered. If unspecified, results are aggregated across domains. | [optional] + +## Methods + +### NewDomainInspectorEntryDimensions + +`func NewDomainInspectorEntryDimensions() *DomainInspectorEntryDimensions` + +NewDomainInspectorEntryDimensions instantiates a new DomainInspectorEntryDimensions object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewDomainInspectorEntryDimensionsWithDefaults + +`func NewDomainInspectorEntryDimensionsWithDefaults() *DomainInspectorEntryDimensions` + +NewDomainInspectorEntryDimensionsWithDefaults instantiates a new DomainInspectorEntryDimensions object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetRegion + +`func (o *DomainInspectorEntryDimensions) GetRegion() string` + +GetRegion returns the Region field if non-nil, zero value otherwise. + +### GetRegionOk + +`func (o *DomainInspectorEntryDimensions) GetRegionOk() (*string, bool)` + +GetRegionOk returns a tuple with the Region field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRegion + +`func (o *DomainInspectorEntryDimensions) SetRegion(v string)` + +SetRegion sets Region field to given value. + +### HasRegion + +`func (o *DomainInspectorEntryDimensions) HasRegion() bool` + +HasRegion returns a boolean if a field has been set. + +### GetDatacenter + +`func (o *DomainInspectorEntryDimensions) GetDatacenter() string` + +GetDatacenter returns the Datacenter field if non-nil, zero value otherwise. + +### GetDatacenterOk + +`func (o *DomainInspectorEntryDimensions) GetDatacenterOk() (*string, bool)` + +GetDatacenterOk returns a tuple with the Datacenter field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDatacenter + +`func (o *DomainInspectorEntryDimensions) SetDatacenter(v string)` + +SetDatacenter sets Datacenter field to given value. + +### HasDatacenter + +`func (o *DomainInspectorEntryDimensions) HasDatacenter() bool` + +HasDatacenter returns a boolean if a field has been set. + +### GetDomain + +`func (o *DomainInspectorEntryDimensions) GetDomain() string` + +GetDomain returns the Domain field if non-nil, zero value otherwise. + +### GetDomainOk + +`func (o *DomainInspectorEntryDimensions) GetDomainOk() (*string, bool)` + +GetDomainOk returns a tuple with the Domain field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDomain + +`func (o *DomainInspectorEntryDimensions) SetDomain(v string)` + +SetDomain sets Domain field to given value. + +### HasDomain + +`func (o *DomainInspectorEntryDimensions) HasDomain() bool` + +HasDomain returns a boolean if a field has been set. + + +[Back to API list](../README.md#documentation-for-api-endpoints) | [Back to README](../README.md) diff --git a/docs/DomainInspectorHistoricalAPI.md b/docs/DomainInspectorHistoricalAPI.md new file mode 100644 index 00000000..b5a64379 --- /dev/null +++ b/docs/DomainInspectorHistoricalAPI.md @@ -0,0 +1,85 @@ +# DomainInspectorHistoricalAPI + +All URIs are relative to *https://api.fastly.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**GetDomainInspectorHistorical**](DomainInspectorHistoricalAPI.md#GetDomainInspectorHistorical) | **GET** `/metrics/domains/services/{service_id}` | Get historical domain data for a service + + + +## GetDomainInspectorHistorical + +Get historical domain data for a service + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + "github.com/fastly/fastly-go/fastly" +) + +func main() { + serviceID := "serviceId_example" // string | Alphanumeric string identifying the service. + start := "2021-08-01T00:00:00.000Z" // string | A valid ISO-8601-formatted date and time, or UNIX timestamp, indicating the inclusive start of the query time range. If not provided, a default is chosen based on the provided `downsample` value. (optional) + end := "2020-08-02T00:00:00.000Z" // string | A valid ISO-8601-formatted date and time, or UNIX timestamp, indicating the exclusive end of the query time range. If not provided, a default is chosen based on the provided `downsample` value. (optional) + downsample := "hour" // string | Duration of sample windows. (optional) (default to "hour") + metric := "resp_body_bytes,status_2xx" // string | The metric to retrieve. Up to ten comma-separated metrics are accepted. (optional) (default to "edge_requests") + groupBy := "domain" // string | Dimensions to return in the query. Multiple dimensions may be separated by commas. For example, `group_by=domain` will return one timeseries for every domain, as a total across all datacenters (POPs). (optional) + limit := "limit_example" // string | Number of results per page. The maximum is 200. (optional) (default to "100") + cursor := "cursor_example" // string | Cursor value from a previous response to retrieve the next page. To request the first page, this should be empty. (optional) + region := "usa" // string | Limit query to one or more specific geographic regions. Values should be comma-separated. (optional) + datacenter := "SJC,STP" // string | Limit query to one or more specific POPs. Values should be comma-separated. (optional) + domain := "domain_1.com,domain_2.com" // string | Limit query to one or more specific domains. Values should be comma-separated. (optional) + + cfg := fastly.NewConfiguration() + apiClient := fastly.NewAPIClient(cfg) + ctx := fastly.NewAPIKeyContextFromEnv("FASTLY_API_TOKEN") + resp, r, err := apiClient.DomainInspectorHistoricalAPI.GetDomainInspectorHistorical(ctx, serviceID).Start(start).End(end).Downsample(downsample).Metric(metric).GroupBy(groupBy).Limit(limit).Cursor(cursor).Region(region).Datacenter(datacenter).Domain(domain).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DomainInspectorHistoricalAPI.GetDomainInspectorHistorical`: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetDomainInspectorHistorical`: HistoricalDomainsResponse + fmt.Fprintf(os.Stdout, "Response from `DomainInspectorHistoricalAPI.GetDomainInspectorHistorical`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceID** | **string** | Alphanumeric string identifying the service. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetDomainInspectorHistoricalRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **start** | **string** | A valid ISO-8601-formatted date and time, or UNIX timestamp, indicating the inclusive start of the query time range. If not provided, a default is chosen based on the provided `downsample` value. | **end** | **string** | A valid ISO-8601-formatted date and time, or UNIX timestamp, indicating the exclusive end of the query time range. If not provided, a default is chosen based on the provided `downsample` value. | **downsample** | **string** | Duration of sample windows. | [default to "hour"] **metric** | **string** | The metric to retrieve. Up to ten comma-separated metrics are accepted. | [default to "edge_requests"] **groupBy** | **string** | Dimensions to return in the query. Multiple dimensions may be separated by commas. For example, `group_by=domain` will return one timeseries for every domain, as a total across all datacenters (POPs). | **limit** | **string** | Number of results per page. The maximum is 200. | [default to "100"] **cursor** | **string** | Cursor value from a previous response to retrieve the next page. To request the first page, this should be empty. | **region** | **string** | Limit query to one or more specific geographic regions. Values should be comma-separated. | **datacenter** | **string** | Limit query to one or more specific POPs. Values should be comma-separated. | **domain** | **string** | Limit query to one or more specific domains. Values should be comma-separated. | + +### Return type + +[**HistoricalDomainsResponse**](HistoricalDomainsResponse.md) + +### Authorization + +[API Token](https://developer.fastly.com/reference/api/#authentication) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[Back to top](#) | [Back to API list](../README.md#documentation-for-api-endpoints) | [Back to README](../README.md) diff --git a/docs/DomainInspectorMeasurements.md b/docs/DomainInspectorMeasurements.md new file mode 100644 index 00000000..811832f5 --- /dev/null +++ b/docs/DomainInspectorMeasurements.md @@ -0,0 +1,1640 @@ +# DomainInspectorMeasurements + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**EdgeRequests** | Pointer to **int32** | Number of requests sent by end users to Fastly. | [optional] +**EdgeRespHeaderBytes** | Pointer to **int32** | Total header bytes delivered from Fastly to the end user. | [optional] +**EdgeRespBodyBytes** | Pointer to **int32** | Total body bytes delivered from Fastly to the end user. | [optional] +**Status1xx** | Pointer to **int32** | Number of 1xx \"Informational\" category status codes delivered. | [optional] +**Status2xx** | Pointer to **int32** | Number of 2xx \"Success\" status codes delivered. | [optional] +**Status3xx** | Pointer to **int32** | Number of 3xx \"Redirection\" codes delivered. | [optional] +**Status4xx** | Pointer to **int32** | Number of 4xx \"Client Error\" codes delivered. | [optional] +**Status5xx** | Pointer to **int32** | Number of 5xx \"Server Error\" codes delivered. | [optional] +**Status200** | Pointer to **int32** | Number of responses delivered with status code 200 (Success). | [optional] +**Status204** | Pointer to **int32** | Number of responses delivered with status code 204 (No Content). | [optional] +**Status206** | Pointer to **int32** | Number of responses delivered with status code 206 (Partial Content). | [optional] +**Status301** | Pointer to **int32** | Number of responses delivered with status code 301 (Moved Permanently). | [optional] +**Status302** | Pointer to **int32** | Number of responses delivered with status code 302 (Found). | [optional] +**Status304** | Pointer to **int32** | Number of responses delivered with status code 304 (Not Modified). | [optional] +**Status400** | Pointer to **int32** | Number of responses delivered with status code 400 (Bad Request). | [optional] +**Status401** | Pointer to **int32** | Number of responses delivered with status code 401 (Unauthorized). | [optional] +**Status403** | Pointer to **int32** | Number of responses delivered with status code 403 (Forbidden). | [optional] +**Status404** | Pointer to **int32** | Number of responses delivered with status code 404 (Not Found). | [optional] +**Status416** | Pointer to **int32** | Number of responses delivered with status code 416 (Range Not Satisfiable). | [optional] +**Status429** | Pointer to **int32** | Number of responses delivered with status code 429 (Too Many Requests). | [optional] +**Status500** | Pointer to **int32** | Number of responses delivered with status code 500 (Internal Server Error). | [optional] +**Status501** | Pointer to **int32** | Number of responses delivered with status code 501 (Not Implemented). | [optional] +**Status502** | Pointer to **int32** | Number of responses delivered with status code 502 (Bad Gateway). | [optional] +**Status503** | Pointer to **int32** | Number of responses delivered with status code 503 (Service Unavailable). | [optional] +**Status504** | Pointer to **int32** | Number of responses delivered with status code 504 (Gateway Timeout). | [optional] +**Status505** | Pointer to **int32** | Number of responses delivered with status code 505 (HTTP Version Not Supported). | [optional] +**Requests** | Pointer to **int32** | Number of requests processed. | [optional] +**RespHeaderBytes** | Pointer to **int32** | Total header bytes delivered. | [optional] +**RespBodyBytes** | Pointer to **int32** | Total body bytes delivered. | [optional] +**BereqHeaderBytes** | Pointer to **int32** | Total header bytes sent to origin. | [optional] +**BereqBodyBytes** | Pointer to **int32** | Total body bytes sent to origin. | [optional] +**EdgeHitRequests** | Pointer to **int32** | Number of requests sent by end users to Fastly that resulted in a hit at the edge. | [optional] +**EdgeMissRequests** | Pointer to **int32** | Number of requests sent by end users to Fastly that resulted in a miss at the edge. | [optional] +**OriginFetches** | Pointer to **int32** | Number of requests sent to origin. | [optional] +**OriginFetchRespHeaderBytes** | Pointer to **int32** | Total header bytes received from origin. | [optional] +**OriginFetchRespBodyBytes** | Pointer to **int32** | Total body bytes received from origin. | [optional] +**Bandwidth** | Pointer to **int32** | Total bytes delivered (`resp_header_bytes` + `resp_body_bytes` + `bereq_header_bytes` + `bereq_body_bytes`). | [optional] +**EdgeHitRatio** | Pointer to **float32** | Ratio of cache hits to cache misses at the edge, between 0 and 1 (`edge_hit_requests` / (`edge_hit_requests` + `edge_miss_requests`)). | [optional] +**OriginOffload** | Pointer to **float32** | Ratio of response bytes delivered from the edge compared to what is delivered from origin, between 0 and 1. (`edge_resp_body_bytes` + `edge_resp_header_bytes`) / (`origin_fetch_resp_body_bytes` + `origin_fetch_resp_header_bytes` + `edge_resp_body_bytes` + `edge_resp_header_bytes`). | [optional] +**OriginStatus200** | Pointer to **int32** | Number of responses received from origin with status code 200 (Success). | [optional] +**OriginStatus204** | Pointer to **int32** | Number of responses received from origin with status code 204 (No Content). | [optional] +**OriginStatus206** | Pointer to **int32** | Number of responses received from origin with status code 206 (Partial Content). | [optional] +**OriginStatus301** | Pointer to **int32** | Number of responses received from origin with status code 301 (Moved Permanently). | [optional] +**OriginStatus302** | Pointer to **int32** | Number of responses received from origin with status code 302 (Found). | [optional] +**OriginStatus304** | Pointer to **int32** | Number of responses received from origin with status code 304 (Not Modified). | [optional] +**OriginStatus400** | Pointer to **int32** | Number of responses received from origin with status code 400 (Bad Request). | [optional] +**OriginStatus401** | Pointer to **int32** | Number of responses received from origin with status code 401 (Unauthorized). | [optional] +**OriginStatus403** | Pointer to **int32** | Number of responses received from origin with status code 403 (Forbidden). | [optional] +**OriginStatus404** | Pointer to **int32** | Number of responses received from origin with status code 404 (Not Found). | [optional] +**OriginStatus416** | Pointer to **int32** | Number of responses received from origin with status code 416 (Range Not Satisfiable). | [optional] +**OriginStatus429** | Pointer to **int32** | Number of responses received from origin with status code 429 (Too Many Requests). | [optional] +**OriginStatus500** | Pointer to **int32** | Number of responses received from origin with status code 500 (Internal Server Error). | [optional] +**OriginStatus501** | Pointer to **int32** | Number of responses received from origin with status code 501 (Not Implemented). | [optional] +**OriginStatus502** | Pointer to **int32** | Number of responses received from origin with status code 502 (Bad Gateway). | [optional] +**OriginStatus503** | Pointer to **int32** | Number of responses received from origin with status code 503 (Service Unavailable). | [optional] +**OriginStatus504** | Pointer to **int32** | Number of responses received from origin with status code 504 (Gateway Timeout). | [optional] +**OriginStatus505** | Pointer to **int32** | Number of responses received from origin with status code 505 (HTTP Version Not Supported). | [optional] +**OriginStatus1xx** | Pointer to **int32** | Number of \"Informational\" category status codes received from origin. | [optional] +**OriginStatus2xx** | Pointer to **int32** | Number of \"Success\" status codes received from origin. | [optional] +**OriginStatus3xx** | Pointer to **int32** | Number of \"Redirection\" codes received from origin. | [optional] +**OriginStatus4xx** | Pointer to **int32** | Number of \"Client Error\" codes received from origin. | [optional] +**OriginStatus5xx** | Pointer to **int32** | Number of \"Server Error\" codes received from origin. | [optional] + +## Methods + +### NewDomainInspectorMeasurements + +`func NewDomainInspectorMeasurements() *DomainInspectorMeasurements` + +NewDomainInspectorMeasurements instantiates a new DomainInspectorMeasurements object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewDomainInspectorMeasurementsWithDefaults + +`func NewDomainInspectorMeasurementsWithDefaults() *DomainInspectorMeasurements` + +NewDomainInspectorMeasurementsWithDefaults instantiates a new DomainInspectorMeasurements object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetEdgeRequests + +`func (o *DomainInspectorMeasurements) GetEdgeRequests() int32` + +GetEdgeRequests returns the EdgeRequests field if non-nil, zero value otherwise. + +### GetEdgeRequestsOk + +`func (o *DomainInspectorMeasurements) GetEdgeRequestsOk() (*int32, bool)` + +GetEdgeRequestsOk returns a tuple with the EdgeRequests field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEdgeRequests + +`func (o *DomainInspectorMeasurements) SetEdgeRequests(v int32)` + +SetEdgeRequests sets EdgeRequests field to given value. + +### HasEdgeRequests + +`func (o *DomainInspectorMeasurements) HasEdgeRequests() bool` + +HasEdgeRequests returns a boolean if a field has been set. + +### GetEdgeRespHeaderBytes + +`func (o *DomainInspectorMeasurements) GetEdgeRespHeaderBytes() int32` + +GetEdgeRespHeaderBytes returns the EdgeRespHeaderBytes field if non-nil, zero value otherwise. + +### GetEdgeRespHeaderBytesOk + +`func (o *DomainInspectorMeasurements) GetEdgeRespHeaderBytesOk() (*int32, bool)` + +GetEdgeRespHeaderBytesOk returns a tuple with the EdgeRespHeaderBytes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEdgeRespHeaderBytes + +`func (o *DomainInspectorMeasurements) SetEdgeRespHeaderBytes(v int32)` + +SetEdgeRespHeaderBytes sets EdgeRespHeaderBytes field to given value. + +### HasEdgeRespHeaderBytes + +`func (o *DomainInspectorMeasurements) HasEdgeRespHeaderBytes() bool` + +HasEdgeRespHeaderBytes returns a boolean if a field has been set. + +### GetEdgeRespBodyBytes + +`func (o *DomainInspectorMeasurements) GetEdgeRespBodyBytes() int32` + +GetEdgeRespBodyBytes returns the EdgeRespBodyBytes field if non-nil, zero value otherwise. + +### GetEdgeRespBodyBytesOk + +`func (o *DomainInspectorMeasurements) GetEdgeRespBodyBytesOk() (*int32, bool)` + +GetEdgeRespBodyBytesOk returns a tuple with the EdgeRespBodyBytes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEdgeRespBodyBytes + +`func (o *DomainInspectorMeasurements) SetEdgeRespBodyBytes(v int32)` + +SetEdgeRespBodyBytes sets EdgeRespBodyBytes field to given value. + +### HasEdgeRespBodyBytes + +`func (o *DomainInspectorMeasurements) HasEdgeRespBodyBytes() bool` + +HasEdgeRespBodyBytes returns a boolean if a field has been set. + +### GetStatus1xx + +`func (o *DomainInspectorMeasurements) GetStatus1xx() int32` + +GetStatus1xx returns the Status1xx field if non-nil, zero value otherwise. + +### GetStatus1xxOk + +`func (o *DomainInspectorMeasurements) GetStatus1xxOk() (*int32, bool)` + +GetStatus1xxOk returns a tuple with the Status1xx field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus1xx + +`func (o *DomainInspectorMeasurements) SetStatus1xx(v int32)` + +SetStatus1xx sets Status1xx field to given value. + +### HasStatus1xx + +`func (o *DomainInspectorMeasurements) HasStatus1xx() bool` + +HasStatus1xx returns a boolean if a field has been set. + +### GetStatus2xx + +`func (o *DomainInspectorMeasurements) GetStatus2xx() int32` + +GetStatus2xx returns the Status2xx field if non-nil, zero value otherwise. + +### GetStatus2xxOk + +`func (o *DomainInspectorMeasurements) GetStatus2xxOk() (*int32, bool)` + +GetStatus2xxOk returns a tuple with the Status2xx field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus2xx + +`func (o *DomainInspectorMeasurements) SetStatus2xx(v int32)` + +SetStatus2xx sets Status2xx field to given value. + +### HasStatus2xx + +`func (o *DomainInspectorMeasurements) HasStatus2xx() bool` + +HasStatus2xx returns a boolean if a field has been set. + +### GetStatus3xx + +`func (o *DomainInspectorMeasurements) GetStatus3xx() int32` + +GetStatus3xx returns the Status3xx field if non-nil, zero value otherwise. + +### GetStatus3xxOk + +`func (o *DomainInspectorMeasurements) GetStatus3xxOk() (*int32, bool)` + +GetStatus3xxOk returns a tuple with the Status3xx field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus3xx + +`func (o *DomainInspectorMeasurements) SetStatus3xx(v int32)` + +SetStatus3xx sets Status3xx field to given value. + +### HasStatus3xx + +`func (o *DomainInspectorMeasurements) HasStatus3xx() bool` + +HasStatus3xx returns a boolean if a field has been set. + +### GetStatus4xx + +`func (o *DomainInspectorMeasurements) GetStatus4xx() int32` + +GetStatus4xx returns the Status4xx field if non-nil, zero value otherwise. + +### GetStatus4xxOk + +`func (o *DomainInspectorMeasurements) GetStatus4xxOk() (*int32, bool)` + +GetStatus4xxOk returns a tuple with the Status4xx field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus4xx + +`func (o *DomainInspectorMeasurements) SetStatus4xx(v int32)` + +SetStatus4xx sets Status4xx field to given value. + +### HasStatus4xx + +`func (o *DomainInspectorMeasurements) HasStatus4xx() bool` + +HasStatus4xx returns a boolean if a field has been set. + +### GetStatus5xx + +`func (o *DomainInspectorMeasurements) GetStatus5xx() int32` + +GetStatus5xx returns the Status5xx field if non-nil, zero value otherwise. + +### GetStatus5xxOk + +`func (o *DomainInspectorMeasurements) GetStatus5xxOk() (*int32, bool)` + +GetStatus5xxOk returns a tuple with the Status5xx field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus5xx + +`func (o *DomainInspectorMeasurements) SetStatus5xx(v int32)` + +SetStatus5xx sets Status5xx field to given value. + +### HasStatus5xx + +`func (o *DomainInspectorMeasurements) HasStatus5xx() bool` + +HasStatus5xx returns a boolean if a field has been set. + +### GetStatus200 + +`func (o *DomainInspectorMeasurements) GetStatus200() int32` + +GetStatus200 returns the Status200 field if non-nil, zero value otherwise. + +### GetStatus200Ok + +`func (o *DomainInspectorMeasurements) GetStatus200Ok() (*int32, bool)` + +GetStatus200Ok returns a tuple with the Status200 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus200 + +`func (o *DomainInspectorMeasurements) SetStatus200(v int32)` + +SetStatus200 sets Status200 field to given value. + +### HasStatus200 + +`func (o *DomainInspectorMeasurements) HasStatus200() bool` + +HasStatus200 returns a boolean if a field has been set. + +### GetStatus204 + +`func (o *DomainInspectorMeasurements) GetStatus204() int32` + +GetStatus204 returns the Status204 field if non-nil, zero value otherwise. + +### GetStatus204Ok + +`func (o *DomainInspectorMeasurements) GetStatus204Ok() (*int32, bool)` + +GetStatus204Ok returns a tuple with the Status204 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus204 + +`func (o *DomainInspectorMeasurements) SetStatus204(v int32)` + +SetStatus204 sets Status204 field to given value. + +### HasStatus204 + +`func (o *DomainInspectorMeasurements) HasStatus204() bool` + +HasStatus204 returns a boolean if a field has been set. + +### GetStatus206 + +`func (o *DomainInspectorMeasurements) GetStatus206() int32` + +GetStatus206 returns the Status206 field if non-nil, zero value otherwise. + +### GetStatus206Ok + +`func (o *DomainInspectorMeasurements) GetStatus206Ok() (*int32, bool)` + +GetStatus206Ok returns a tuple with the Status206 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus206 + +`func (o *DomainInspectorMeasurements) SetStatus206(v int32)` + +SetStatus206 sets Status206 field to given value. + +### HasStatus206 + +`func (o *DomainInspectorMeasurements) HasStatus206() bool` + +HasStatus206 returns a boolean if a field has been set. + +### GetStatus301 + +`func (o *DomainInspectorMeasurements) GetStatus301() int32` + +GetStatus301 returns the Status301 field if non-nil, zero value otherwise. + +### GetStatus301Ok + +`func (o *DomainInspectorMeasurements) GetStatus301Ok() (*int32, bool)` + +GetStatus301Ok returns a tuple with the Status301 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus301 + +`func (o *DomainInspectorMeasurements) SetStatus301(v int32)` + +SetStatus301 sets Status301 field to given value. + +### HasStatus301 + +`func (o *DomainInspectorMeasurements) HasStatus301() bool` + +HasStatus301 returns a boolean if a field has been set. + +### GetStatus302 + +`func (o *DomainInspectorMeasurements) GetStatus302() int32` + +GetStatus302 returns the Status302 field if non-nil, zero value otherwise. + +### GetStatus302Ok + +`func (o *DomainInspectorMeasurements) GetStatus302Ok() (*int32, bool)` + +GetStatus302Ok returns a tuple with the Status302 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus302 + +`func (o *DomainInspectorMeasurements) SetStatus302(v int32)` + +SetStatus302 sets Status302 field to given value. + +### HasStatus302 + +`func (o *DomainInspectorMeasurements) HasStatus302() bool` + +HasStatus302 returns a boolean if a field has been set. + +### GetStatus304 + +`func (o *DomainInspectorMeasurements) GetStatus304() int32` + +GetStatus304 returns the Status304 field if non-nil, zero value otherwise. + +### GetStatus304Ok + +`func (o *DomainInspectorMeasurements) GetStatus304Ok() (*int32, bool)` + +GetStatus304Ok returns a tuple with the Status304 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus304 + +`func (o *DomainInspectorMeasurements) SetStatus304(v int32)` + +SetStatus304 sets Status304 field to given value. + +### HasStatus304 + +`func (o *DomainInspectorMeasurements) HasStatus304() bool` + +HasStatus304 returns a boolean if a field has been set. + +### GetStatus400 + +`func (o *DomainInspectorMeasurements) GetStatus400() int32` + +GetStatus400 returns the Status400 field if non-nil, zero value otherwise. + +### GetStatus400Ok + +`func (o *DomainInspectorMeasurements) GetStatus400Ok() (*int32, bool)` + +GetStatus400Ok returns a tuple with the Status400 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus400 + +`func (o *DomainInspectorMeasurements) SetStatus400(v int32)` + +SetStatus400 sets Status400 field to given value. + +### HasStatus400 + +`func (o *DomainInspectorMeasurements) HasStatus400() bool` + +HasStatus400 returns a boolean if a field has been set. + +### GetStatus401 + +`func (o *DomainInspectorMeasurements) GetStatus401() int32` + +GetStatus401 returns the Status401 field if non-nil, zero value otherwise. + +### GetStatus401Ok + +`func (o *DomainInspectorMeasurements) GetStatus401Ok() (*int32, bool)` + +GetStatus401Ok returns a tuple with the Status401 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus401 + +`func (o *DomainInspectorMeasurements) SetStatus401(v int32)` + +SetStatus401 sets Status401 field to given value. + +### HasStatus401 + +`func (o *DomainInspectorMeasurements) HasStatus401() bool` + +HasStatus401 returns a boolean if a field has been set. + +### GetStatus403 + +`func (o *DomainInspectorMeasurements) GetStatus403() int32` + +GetStatus403 returns the Status403 field if non-nil, zero value otherwise. + +### GetStatus403Ok + +`func (o *DomainInspectorMeasurements) GetStatus403Ok() (*int32, bool)` + +GetStatus403Ok returns a tuple with the Status403 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus403 + +`func (o *DomainInspectorMeasurements) SetStatus403(v int32)` + +SetStatus403 sets Status403 field to given value. + +### HasStatus403 + +`func (o *DomainInspectorMeasurements) HasStatus403() bool` + +HasStatus403 returns a boolean if a field has been set. + +### GetStatus404 + +`func (o *DomainInspectorMeasurements) GetStatus404() int32` + +GetStatus404 returns the Status404 field if non-nil, zero value otherwise. + +### GetStatus404Ok + +`func (o *DomainInspectorMeasurements) GetStatus404Ok() (*int32, bool)` + +GetStatus404Ok returns a tuple with the Status404 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus404 + +`func (o *DomainInspectorMeasurements) SetStatus404(v int32)` + +SetStatus404 sets Status404 field to given value. + +### HasStatus404 + +`func (o *DomainInspectorMeasurements) HasStatus404() bool` + +HasStatus404 returns a boolean if a field has been set. + +### GetStatus416 + +`func (o *DomainInspectorMeasurements) GetStatus416() int32` + +GetStatus416 returns the Status416 field if non-nil, zero value otherwise. + +### GetStatus416Ok + +`func (o *DomainInspectorMeasurements) GetStatus416Ok() (*int32, bool)` + +GetStatus416Ok returns a tuple with the Status416 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus416 + +`func (o *DomainInspectorMeasurements) SetStatus416(v int32)` + +SetStatus416 sets Status416 field to given value. + +### HasStatus416 + +`func (o *DomainInspectorMeasurements) HasStatus416() bool` + +HasStatus416 returns a boolean if a field has been set. + +### GetStatus429 + +`func (o *DomainInspectorMeasurements) GetStatus429() int32` + +GetStatus429 returns the Status429 field if non-nil, zero value otherwise. + +### GetStatus429Ok + +`func (o *DomainInspectorMeasurements) GetStatus429Ok() (*int32, bool)` + +GetStatus429Ok returns a tuple with the Status429 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus429 + +`func (o *DomainInspectorMeasurements) SetStatus429(v int32)` + +SetStatus429 sets Status429 field to given value. + +### HasStatus429 + +`func (o *DomainInspectorMeasurements) HasStatus429() bool` + +HasStatus429 returns a boolean if a field has been set. + +### GetStatus500 + +`func (o *DomainInspectorMeasurements) GetStatus500() int32` + +GetStatus500 returns the Status500 field if non-nil, zero value otherwise. + +### GetStatus500Ok + +`func (o *DomainInspectorMeasurements) GetStatus500Ok() (*int32, bool)` + +GetStatus500Ok returns a tuple with the Status500 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus500 + +`func (o *DomainInspectorMeasurements) SetStatus500(v int32)` + +SetStatus500 sets Status500 field to given value. + +### HasStatus500 + +`func (o *DomainInspectorMeasurements) HasStatus500() bool` + +HasStatus500 returns a boolean if a field has been set. + +### GetStatus501 + +`func (o *DomainInspectorMeasurements) GetStatus501() int32` + +GetStatus501 returns the Status501 field if non-nil, zero value otherwise. + +### GetStatus501Ok + +`func (o *DomainInspectorMeasurements) GetStatus501Ok() (*int32, bool)` + +GetStatus501Ok returns a tuple with the Status501 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus501 + +`func (o *DomainInspectorMeasurements) SetStatus501(v int32)` + +SetStatus501 sets Status501 field to given value. + +### HasStatus501 + +`func (o *DomainInspectorMeasurements) HasStatus501() bool` + +HasStatus501 returns a boolean if a field has been set. + +### GetStatus502 + +`func (o *DomainInspectorMeasurements) GetStatus502() int32` + +GetStatus502 returns the Status502 field if non-nil, zero value otherwise. + +### GetStatus502Ok + +`func (o *DomainInspectorMeasurements) GetStatus502Ok() (*int32, bool)` + +GetStatus502Ok returns a tuple with the Status502 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus502 + +`func (o *DomainInspectorMeasurements) SetStatus502(v int32)` + +SetStatus502 sets Status502 field to given value. + +### HasStatus502 + +`func (o *DomainInspectorMeasurements) HasStatus502() bool` + +HasStatus502 returns a boolean if a field has been set. + +### GetStatus503 + +`func (o *DomainInspectorMeasurements) GetStatus503() int32` + +GetStatus503 returns the Status503 field if non-nil, zero value otherwise. + +### GetStatus503Ok + +`func (o *DomainInspectorMeasurements) GetStatus503Ok() (*int32, bool)` + +GetStatus503Ok returns a tuple with the Status503 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus503 + +`func (o *DomainInspectorMeasurements) SetStatus503(v int32)` + +SetStatus503 sets Status503 field to given value. + +### HasStatus503 + +`func (o *DomainInspectorMeasurements) HasStatus503() bool` + +HasStatus503 returns a boolean if a field has been set. + +### GetStatus504 + +`func (o *DomainInspectorMeasurements) GetStatus504() int32` + +GetStatus504 returns the Status504 field if non-nil, zero value otherwise. + +### GetStatus504Ok + +`func (o *DomainInspectorMeasurements) GetStatus504Ok() (*int32, bool)` + +GetStatus504Ok returns a tuple with the Status504 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus504 + +`func (o *DomainInspectorMeasurements) SetStatus504(v int32)` + +SetStatus504 sets Status504 field to given value. + +### HasStatus504 + +`func (o *DomainInspectorMeasurements) HasStatus504() bool` + +HasStatus504 returns a boolean if a field has been set. + +### GetStatus505 + +`func (o *DomainInspectorMeasurements) GetStatus505() int32` + +GetStatus505 returns the Status505 field if non-nil, zero value otherwise. + +### GetStatus505Ok + +`func (o *DomainInspectorMeasurements) GetStatus505Ok() (*int32, bool)` + +GetStatus505Ok returns a tuple with the Status505 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus505 + +`func (o *DomainInspectorMeasurements) SetStatus505(v int32)` + +SetStatus505 sets Status505 field to given value. + +### HasStatus505 + +`func (o *DomainInspectorMeasurements) HasStatus505() bool` + +HasStatus505 returns a boolean if a field has been set. + +### GetRequests + +`func (o *DomainInspectorMeasurements) GetRequests() int32` + +GetRequests returns the Requests field if non-nil, zero value otherwise. + +### GetRequestsOk + +`func (o *DomainInspectorMeasurements) GetRequestsOk() (*int32, bool)` + +GetRequestsOk returns a tuple with the Requests field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRequests + +`func (o *DomainInspectorMeasurements) SetRequests(v int32)` + +SetRequests sets Requests field to given value. + +### HasRequests + +`func (o *DomainInspectorMeasurements) HasRequests() bool` + +HasRequests returns a boolean if a field has been set. + +### GetRespHeaderBytes + +`func (o *DomainInspectorMeasurements) GetRespHeaderBytes() int32` + +GetRespHeaderBytes returns the RespHeaderBytes field if non-nil, zero value otherwise. + +### GetRespHeaderBytesOk + +`func (o *DomainInspectorMeasurements) GetRespHeaderBytesOk() (*int32, bool)` + +GetRespHeaderBytesOk returns a tuple with the RespHeaderBytes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRespHeaderBytes + +`func (o *DomainInspectorMeasurements) SetRespHeaderBytes(v int32)` + +SetRespHeaderBytes sets RespHeaderBytes field to given value. + +### HasRespHeaderBytes + +`func (o *DomainInspectorMeasurements) HasRespHeaderBytes() bool` + +HasRespHeaderBytes returns a boolean if a field has been set. + +### GetRespBodyBytes + +`func (o *DomainInspectorMeasurements) GetRespBodyBytes() int32` + +GetRespBodyBytes returns the RespBodyBytes field if non-nil, zero value otherwise. + +### GetRespBodyBytesOk + +`func (o *DomainInspectorMeasurements) GetRespBodyBytesOk() (*int32, bool)` + +GetRespBodyBytesOk returns a tuple with the RespBodyBytes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRespBodyBytes + +`func (o *DomainInspectorMeasurements) SetRespBodyBytes(v int32)` + +SetRespBodyBytes sets RespBodyBytes field to given value. + +### HasRespBodyBytes + +`func (o *DomainInspectorMeasurements) HasRespBodyBytes() bool` + +HasRespBodyBytes returns a boolean if a field has been set. + +### GetBereqHeaderBytes + +`func (o *DomainInspectorMeasurements) GetBereqHeaderBytes() int32` + +GetBereqHeaderBytes returns the BereqHeaderBytes field if non-nil, zero value otherwise. + +### GetBereqHeaderBytesOk + +`func (o *DomainInspectorMeasurements) GetBereqHeaderBytesOk() (*int32, bool)` + +GetBereqHeaderBytesOk returns a tuple with the BereqHeaderBytes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBereqHeaderBytes + +`func (o *DomainInspectorMeasurements) SetBereqHeaderBytes(v int32)` + +SetBereqHeaderBytes sets BereqHeaderBytes field to given value. + +### HasBereqHeaderBytes + +`func (o *DomainInspectorMeasurements) HasBereqHeaderBytes() bool` + +HasBereqHeaderBytes returns a boolean if a field has been set. + +### GetBereqBodyBytes + +`func (o *DomainInspectorMeasurements) GetBereqBodyBytes() int32` + +GetBereqBodyBytes returns the BereqBodyBytes field if non-nil, zero value otherwise. + +### GetBereqBodyBytesOk + +`func (o *DomainInspectorMeasurements) GetBereqBodyBytesOk() (*int32, bool)` + +GetBereqBodyBytesOk returns a tuple with the BereqBodyBytes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBereqBodyBytes + +`func (o *DomainInspectorMeasurements) SetBereqBodyBytes(v int32)` + +SetBereqBodyBytes sets BereqBodyBytes field to given value. + +### HasBereqBodyBytes + +`func (o *DomainInspectorMeasurements) HasBereqBodyBytes() bool` + +HasBereqBodyBytes returns a boolean if a field has been set. + +### GetEdgeHitRequests + +`func (o *DomainInspectorMeasurements) GetEdgeHitRequests() int32` + +GetEdgeHitRequests returns the EdgeHitRequests field if non-nil, zero value otherwise. + +### GetEdgeHitRequestsOk + +`func (o *DomainInspectorMeasurements) GetEdgeHitRequestsOk() (*int32, bool)` + +GetEdgeHitRequestsOk returns a tuple with the EdgeHitRequests field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEdgeHitRequests + +`func (o *DomainInspectorMeasurements) SetEdgeHitRequests(v int32)` + +SetEdgeHitRequests sets EdgeHitRequests field to given value. + +### HasEdgeHitRequests + +`func (o *DomainInspectorMeasurements) HasEdgeHitRequests() bool` + +HasEdgeHitRequests returns a boolean if a field has been set. + +### GetEdgeMissRequests + +`func (o *DomainInspectorMeasurements) GetEdgeMissRequests() int32` + +GetEdgeMissRequests returns the EdgeMissRequests field if non-nil, zero value otherwise. + +### GetEdgeMissRequestsOk + +`func (o *DomainInspectorMeasurements) GetEdgeMissRequestsOk() (*int32, bool)` + +GetEdgeMissRequestsOk returns a tuple with the EdgeMissRequests field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEdgeMissRequests + +`func (o *DomainInspectorMeasurements) SetEdgeMissRequests(v int32)` + +SetEdgeMissRequests sets EdgeMissRequests field to given value. + +### HasEdgeMissRequests + +`func (o *DomainInspectorMeasurements) HasEdgeMissRequests() bool` + +HasEdgeMissRequests returns a boolean if a field has been set. + +### GetOriginFetches + +`func (o *DomainInspectorMeasurements) GetOriginFetches() int32` + +GetOriginFetches returns the OriginFetches field if non-nil, zero value otherwise. + +### GetOriginFetchesOk + +`func (o *DomainInspectorMeasurements) GetOriginFetchesOk() (*int32, bool)` + +GetOriginFetchesOk returns a tuple with the OriginFetches field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOriginFetches + +`func (o *DomainInspectorMeasurements) SetOriginFetches(v int32)` + +SetOriginFetches sets OriginFetches field to given value. + +### HasOriginFetches + +`func (o *DomainInspectorMeasurements) HasOriginFetches() bool` + +HasOriginFetches returns a boolean if a field has been set. + +### GetOriginFetchRespHeaderBytes + +`func (o *DomainInspectorMeasurements) GetOriginFetchRespHeaderBytes() int32` + +GetOriginFetchRespHeaderBytes returns the OriginFetchRespHeaderBytes field if non-nil, zero value otherwise. + +### GetOriginFetchRespHeaderBytesOk + +`func (o *DomainInspectorMeasurements) GetOriginFetchRespHeaderBytesOk() (*int32, bool)` + +GetOriginFetchRespHeaderBytesOk returns a tuple with the OriginFetchRespHeaderBytes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOriginFetchRespHeaderBytes + +`func (o *DomainInspectorMeasurements) SetOriginFetchRespHeaderBytes(v int32)` + +SetOriginFetchRespHeaderBytes sets OriginFetchRespHeaderBytes field to given value. + +### HasOriginFetchRespHeaderBytes + +`func (o *DomainInspectorMeasurements) HasOriginFetchRespHeaderBytes() bool` + +HasOriginFetchRespHeaderBytes returns a boolean if a field has been set. + +### GetOriginFetchRespBodyBytes + +`func (o *DomainInspectorMeasurements) GetOriginFetchRespBodyBytes() int32` + +GetOriginFetchRespBodyBytes returns the OriginFetchRespBodyBytes field if non-nil, zero value otherwise. + +### GetOriginFetchRespBodyBytesOk + +`func (o *DomainInspectorMeasurements) GetOriginFetchRespBodyBytesOk() (*int32, bool)` + +GetOriginFetchRespBodyBytesOk returns a tuple with the OriginFetchRespBodyBytes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOriginFetchRespBodyBytes + +`func (o *DomainInspectorMeasurements) SetOriginFetchRespBodyBytes(v int32)` + +SetOriginFetchRespBodyBytes sets OriginFetchRespBodyBytes field to given value. + +### HasOriginFetchRespBodyBytes + +`func (o *DomainInspectorMeasurements) HasOriginFetchRespBodyBytes() bool` + +HasOriginFetchRespBodyBytes returns a boolean if a field has been set. + +### GetBandwidth + +`func (o *DomainInspectorMeasurements) GetBandwidth() int32` + +GetBandwidth returns the Bandwidth field if non-nil, zero value otherwise. + +### GetBandwidthOk + +`func (o *DomainInspectorMeasurements) GetBandwidthOk() (*int32, bool)` + +GetBandwidthOk returns a tuple with the Bandwidth field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBandwidth + +`func (o *DomainInspectorMeasurements) SetBandwidth(v int32)` + +SetBandwidth sets Bandwidth field to given value. + +### HasBandwidth + +`func (o *DomainInspectorMeasurements) HasBandwidth() bool` + +HasBandwidth returns a boolean if a field has been set. + +### GetEdgeHitRatio + +`func (o *DomainInspectorMeasurements) GetEdgeHitRatio() float32` + +GetEdgeHitRatio returns the EdgeHitRatio field if non-nil, zero value otherwise. + +### GetEdgeHitRatioOk + +`func (o *DomainInspectorMeasurements) GetEdgeHitRatioOk() (*float32, bool)` + +GetEdgeHitRatioOk returns a tuple with the EdgeHitRatio field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEdgeHitRatio + +`func (o *DomainInspectorMeasurements) SetEdgeHitRatio(v float32)` + +SetEdgeHitRatio sets EdgeHitRatio field to given value. + +### HasEdgeHitRatio + +`func (o *DomainInspectorMeasurements) HasEdgeHitRatio() bool` + +HasEdgeHitRatio returns a boolean if a field has been set. + +### GetOriginOffload + +`func (o *DomainInspectorMeasurements) GetOriginOffload() float32` + +GetOriginOffload returns the OriginOffload field if non-nil, zero value otherwise. + +### GetOriginOffloadOk + +`func (o *DomainInspectorMeasurements) GetOriginOffloadOk() (*float32, bool)` + +GetOriginOffloadOk returns a tuple with the OriginOffload field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOriginOffload + +`func (o *DomainInspectorMeasurements) SetOriginOffload(v float32)` + +SetOriginOffload sets OriginOffload field to given value. + +### HasOriginOffload + +`func (o *DomainInspectorMeasurements) HasOriginOffload() bool` + +HasOriginOffload returns a boolean if a field has been set. + +### GetOriginStatus200 + +`func (o *DomainInspectorMeasurements) GetOriginStatus200() int32` + +GetOriginStatus200 returns the OriginStatus200 field if non-nil, zero value otherwise. + +### GetOriginStatus200Ok + +`func (o *DomainInspectorMeasurements) GetOriginStatus200Ok() (*int32, bool)` + +GetOriginStatus200Ok returns a tuple with the OriginStatus200 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOriginStatus200 + +`func (o *DomainInspectorMeasurements) SetOriginStatus200(v int32)` + +SetOriginStatus200 sets OriginStatus200 field to given value. + +### HasOriginStatus200 + +`func (o *DomainInspectorMeasurements) HasOriginStatus200() bool` + +HasOriginStatus200 returns a boolean if a field has been set. + +### GetOriginStatus204 + +`func (o *DomainInspectorMeasurements) GetOriginStatus204() int32` + +GetOriginStatus204 returns the OriginStatus204 field if non-nil, zero value otherwise. + +### GetOriginStatus204Ok + +`func (o *DomainInspectorMeasurements) GetOriginStatus204Ok() (*int32, bool)` + +GetOriginStatus204Ok returns a tuple with the OriginStatus204 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOriginStatus204 + +`func (o *DomainInspectorMeasurements) SetOriginStatus204(v int32)` + +SetOriginStatus204 sets OriginStatus204 field to given value. + +### HasOriginStatus204 + +`func (o *DomainInspectorMeasurements) HasOriginStatus204() bool` + +HasOriginStatus204 returns a boolean if a field has been set. + +### GetOriginStatus206 + +`func (o *DomainInspectorMeasurements) GetOriginStatus206() int32` + +GetOriginStatus206 returns the OriginStatus206 field if non-nil, zero value otherwise. + +### GetOriginStatus206Ok + +`func (o *DomainInspectorMeasurements) GetOriginStatus206Ok() (*int32, bool)` + +GetOriginStatus206Ok returns a tuple with the OriginStatus206 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOriginStatus206 + +`func (o *DomainInspectorMeasurements) SetOriginStatus206(v int32)` + +SetOriginStatus206 sets OriginStatus206 field to given value. + +### HasOriginStatus206 + +`func (o *DomainInspectorMeasurements) HasOriginStatus206() bool` + +HasOriginStatus206 returns a boolean if a field has been set. + +### GetOriginStatus301 + +`func (o *DomainInspectorMeasurements) GetOriginStatus301() int32` + +GetOriginStatus301 returns the OriginStatus301 field if non-nil, zero value otherwise. + +### GetOriginStatus301Ok + +`func (o *DomainInspectorMeasurements) GetOriginStatus301Ok() (*int32, bool)` + +GetOriginStatus301Ok returns a tuple with the OriginStatus301 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOriginStatus301 + +`func (o *DomainInspectorMeasurements) SetOriginStatus301(v int32)` + +SetOriginStatus301 sets OriginStatus301 field to given value. + +### HasOriginStatus301 + +`func (o *DomainInspectorMeasurements) HasOriginStatus301() bool` + +HasOriginStatus301 returns a boolean if a field has been set. + +### GetOriginStatus302 + +`func (o *DomainInspectorMeasurements) GetOriginStatus302() int32` + +GetOriginStatus302 returns the OriginStatus302 field if non-nil, zero value otherwise. + +### GetOriginStatus302Ok + +`func (o *DomainInspectorMeasurements) GetOriginStatus302Ok() (*int32, bool)` + +GetOriginStatus302Ok returns a tuple with the OriginStatus302 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOriginStatus302 + +`func (o *DomainInspectorMeasurements) SetOriginStatus302(v int32)` + +SetOriginStatus302 sets OriginStatus302 field to given value. + +### HasOriginStatus302 + +`func (o *DomainInspectorMeasurements) HasOriginStatus302() bool` + +HasOriginStatus302 returns a boolean if a field has been set. + +### GetOriginStatus304 + +`func (o *DomainInspectorMeasurements) GetOriginStatus304() int32` + +GetOriginStatus304 returns the OriginStatus304 field if non-nil, zero value otherwise. + +### GetOriginStatus304Ok + +`func (o *DomainInspectorMeasurements) GetOriginStatus304Ok() (*int32, bool)` + +GetOriginStatus304Ok returns a tuple with the OriginStatus304 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOriginStatus304 + +`func (o *DomainInspectorMeasurements) SetOriginStatus304(v int32)` + +SetOriginStatus304 sets OriginStatus304 field to given value. + +### HasOriginStatus304 + +`func (o *DomainInspectorMeasurements) HasOriginStatus304() bool` + +HasOriginStatus304 returns a boolean if a field has been set. + +### GetOriginStatus400 + +`func (o *DomainInspectorMeasurements) GetOriginStatus400() int32` + +GetOriginStatus400 returns the OriginStatus400 field if non-nil, zero value otherwise. + +### GetOriginStatus400Ok + +`func (o *DomainInspectorMeasurements) GetOriginStatus400Ok() (*int32, bool)` + +GetOriginStatus400Ok returns a tuple with the OriginStatus400 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOriginStatus400 + +`func (o *DomainInspectorMeasurements) SetOriginStatus400(v int32)` + +SetOriginStatus400 sets OriginStatus400 field to given value. + +### HasOriginStatus400 + +`func (o *DomainInspectorMeasurements) HasOriginStatus400() bool` + +HasOriginStatus400 returns a boolean if a field has been set. + +### GetOriginStatus401 + +`func (o *DomainInspectorMeasurements) GetOriginStatus401() int32` + +GetOriginStatus401 returns the OriginStatus401 field if non-nil, zero value otherwise. + +### GetOriginStatus401Ok + +`func (o *DomainInspectorMeasurements) GetOriginStatus401Ok() (*int32, bool)` + +GetOriginStatus401Ok returns a tuple with the OriginStatus401 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOriginStatus401 + +`func (o *DomainInspectorMeasurements) SetOriginStatus401(v int32)` + +SetOriginStatus401 sets OriginStatus401 field to given value. + +### HasOriginStatus401 + +`func (o *DomainInspectorMeasurements) HasOriginStatus401() bool` + +HasOriginStatus401 returns a boolean if a field has been set. + +### GetOriginStatus403 + +`func (o *DomainInspectorMeasurements) GetOriginStatus403() int32` + +GetOriginStatus403 returns the OriginStatus403 field if non-nil, zero value otherwise. + +### GetOriginStatus403Ok + +`func (o *DomainInspectorMeasurements) GetOriginStatus403Ok() (*int32, bool)` + +GetOriginStatus403Ok returns a tuple with the OriginStatus403 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOriginStatus403 + +`func (o *DomainInspectorMeasurements) SetOriginStatus403(v int32)` + +SetOriginStatus403 sets OriginStatus403 field to given value. + +### HasOriginStatus403 + +`func (o *DomainInspectorMeasurements) HasOriginStatus403() bool` + +HasOriginStatus403 returns a boolean if a field has been set. + +### GetOriginStatus404 + +`func (o *DomainInspectorMeasurements) GetOriginStatus404() int32` + +GetOriginStatus404 returns the OriginStatus404 field if non-nil, zero value otherwise. + +### GetOriginStatus404Ok + +`func (o *DomainInspectorMeasurements) GetOriginStatus404Ok() (*int32, bool)` + +GetOriginStatus404Ok returns a tuple with the OriginStatus404 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOriginStatus404 + +`func (o *DomainInspectorMeasurements) SetOriginStatus404(v int32)` + +SetOriginStatus404 sets OriginStatus404 field to given value. + +### HasOriginStatus404 + +`func (o *DomainInspectorMeasurements) HasOriginStatus404() bool` + +HasOriginStatus404 returns a boolean if a field has been set. + +### GetOriginStatus416 + +`func (o *DomainInspectorMeasurements) GetOriginStatus416() int32` + +GetOriginStatus416 returns the OriginStatus416 field if non-nil, zero value otherwise. + +### GetOriginStatus416Ok + +`func (o *DomainInspectorMeasurements) GetOriginStatus416Ok() (*int32, bool)` + +GetOriginStatus416Ok returns a tuple with the OriginStatus416 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOriginStatus416 + +`func (o *DomainInspectorMeasurements) SetOriginStatus416(v int32)` + +SetOriginStatus416 sets OriginStatus416 field to given value. + +### HasOriginStatus416 + +`func (o *DomainInspectorMeasurements) HasOriginStatus416() bool` + +HasOriginStatus416 returns a boolean if a field has been set. + +### GetOriginStatus429 + +`func (o *DomainInspectorMeasurements) GetOriginStatus429() int32` + +GetOriginStatus429 returns the OriginStatus429 field if non-nil, zero value otherwise. + +### GetOriginStatus429Ok + +`func (o *DomainInspectorMeasurements) GetOriginStatus429Ok() (*int32, bool)` + +GetOriginStatus429Ok returns a tuple with the OriginStatus429 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOriginStatus429 + +`func (o *DomainInspectorMeasurements) SetOriginStatus429(v int32)` + +SetOriginStatus429 sets OriginStatus429 field to given value. + +### HasOriginStatus429 + +`func (o *DomainInspectorMeasurements) HasOriginStatus429() bool` + +HasOriginStatus429 returns a boolean if a field has been set. + +### GetOriginStatus500 + +`func (o *DomainInspectorMeasurements) GetOriginStatus500() int32` + +GetOriginStatus500 returns the OriginStatus500 field if non-nil, zero value otherwise. + +### GetOriginStatus500Ok + +`func (o *DomainInspectorMeasurements) GetOriginStatus500Ok() (*int32, bool)` + +GetOriginStatus500Ok returns a tuple with the OriginStatus500 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOriginStatus500 + +`func (o *DomainInspectorMeasurements) SetOriginStatus500(v int32)` + +SetOriginStatus500 sets OriginStatus500 field to given value. + +### HasOriginStatus500 + +`func (o *DomainInspectorMeasurements) HasOriginStatus500() bool` + +HasOriginStatus500 returns a boolean if a field has been set. + +### GetOriginStatus501 + +`func (o *DomainInspectorMeasurements) GetOriginStatus501() int32` + +GetOriginStatus501 returns the OriginStatus501 field if non-nil, zero value otherwise. + +### GetOriginStatus501Ok + +`func (o *DomainInspectorMeasurements) GetOriginStatus501Ok() (*int32, bool)` + +GetOriginStatus501Ok returns a tuple with the OriginStatus501 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOriginStatus501 + +`func (o *DomainInspectorMeasurements) SetOriginStatus501(v int32)` + +SetOriginStatus501 sets OriginStatus501 field to given value. + +### HasOriginStatus501 + +`func (o *DomainInspectorMeasurements) HasOriginStatus501() bool` + +HasOriginStatus501 returns a boolean if a field has been set. + +### GetOriginStatus502 + +`func (o *DomainInspectorMeasurements) GetOriginStatus502() int32` + +GetOriginStatus502 returns the OriginStatus502 field if non-nil, zero value otherwise. + +### GetOriginStatus502Ok + +`func (o *DomainInspectorMeasurements) GetOriginStatus502Ok() (*int32, bool)` + +GetOriginStatus502Ok returns a tuple with the OriginStatus502 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOriginStatus502 + +`func (o *DomainInspectorMeasurements) SetOriginStatus502(v int32)` + +SetOriginStatus502 sets OriginStatus502 field to given value. + +### HasOriginStatus502 + +`func (o *DomainInspectorMeasurements) HasOriginStatus502() bool` + +HasOriginStatus502 returns a boolean if a field has been set. + +### GetOriginStatus503 + +`func (o *DomainInspectorMeasurements) GetOriginStatus503() int32` + +GetOriginStatus503 returns the OriginStatus503 field if non-nil, zero value otherwise. + +### GetOriginStatus503Ok + +`func (o *DomainInspectorMeasurements) GetOriginStatus503Ok() (*int32, bool)` + +GetOriginStatus503Ok returns a tuple with the OriginStatus503 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOriginStatus503 + +`func (o *DomainInspectorMeasurements) SetOriginStatus503(v int32)` + +SetOriginStatus503 sets OriginStatus503 field to given value. + +### HasOriginStatus503 + +`func (o *DomainInspectorMeasurements) HasOriginStatus503() bool` + +HasOriginStatus503 returns a boolean if a field has been set. + +### GetOriginStatus504 + +`func (o *DomainInspectorMeasurements) GetOriginStatus504() int32` + +GetOriginStatus504 returns the OriginStatus504 field if non-nil, zero value otherwise. + +### GetOriginStatus504Ok + +`func (o *DomainInspectorMeasurements) GetOriginStatus504Ok() (*int32, bool)` + +GetOriginStatus504Ok returns a tuple with the OriginStatus504 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOriginStatus504 + +`func (o *DomainInspectorMeasurements) SetOriginStatus504(v int32)` + +SetOriginStatus504 sets OriginStatus504 field to given value. + +### HasOriginStatus504 + +`func (o *DomainInspectorMeasurements) HasOriginStatus504() bool` + +HasOriginStatus504 returns a boolean if a field has been set. + +### GetOriginStatus505 + +`func (o *DomainInspectorMeasurements) GetOriginStatus505() int32` + +GetOriginStatus505 returns the OriginStatus505 field if non-nil, zero value otherwise. + +### GetOriginStatus505Ok + +`func (o *DomainInspectorMeasurements) GetOriginStatus505Ok() (*int32, bool)` + +GetOriginStatus505Ok returns a tuple with the OriginStatus505 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOriginStatus505 + +`func (o *DomainInspectorMeasurements) SetOriginStatus505(v int32)` + +SetOriginStatus505 sets OriginStatus505 field to given value. + +### HasOriginStatus505 + +`func (o *DomainInspectorMeasurements) HasOriginStatus505() bool` + +HasOriginStatus505 returns a boolean if a field has been set. + +### GetOriginStatus1xx + +`func (o *DomainInspectorMeasurements) GetOriginStatus1xx() int32` + +GetOriginStatus1xx returns the OriginStatus1xx field if non-nil, zero value otherwise. + +### GetOriginStatus1xxOk + +`func (o *DomainInspectorMeasurements) GetOriginStatus1xxOk() (*int32, bool)` + +GetOriginStatus1xxOk returns a tuple with the OriginStatus1xx field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOriginStatus1xx + +`func (o *DomainInspectorMeasurements) SetOriginStatus1xx(v int32)` + +SetOriginStatus1xx sets OriginStatus1xx field to given value. + +### HasOriginStatus1xx + +`func (o *DomainInspectorMeasurements) HasOriginStatus1xx() bool` + +HasOriginStatus1xx returns a boolean if a field has been set. + +### GetOriginStatus2xx + +`func (o *DomainInspectorMeasurements) GetOriginStatus2xx() int32` + +GetOriginStatus2xx returns the OriginStatus2xx field if non-nil, zero value otherwise. + +### GetOriginStatus2xxOk + +`func (o *DomainInspectorMeasurements) GetOriginStatus2xxOk() (*int32, bool)` + +GetOriginStatus2xxOk returns a tuple with the OriginStatus2xx field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOriginStatus2xx + +`func (o *DomainInspectorMeasurements) SetOriginStatus2xx(v int32)` + +SetOriginStatus2xx sets OriginStatus2xx field to given value. + +### HasOriginStatus2xx + +`func (o *DomainInspectorMeasurements) HasOriginStatus2xx() bool` + +HasOriginStatus2xx returns a boolean if a field has been set. + +### GetOriginStatus3xx + +`func (o *DomainInspectorMeasurements) GetOriginStatus3xx() int32` + +GetOriginStatus3xx returns the OriginStatus3xx field if non-nil, zero value otherwise. + +### GetOriginStatus3xxOk + +`func (o *DomainInspectorMeasurements) GetOriginStatus3xxOk() (*int32, bool)` + +GetOriginStatus3xxOk returns a tuple with the OriginStatus3xx field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOriginStatus3xx + +`func (o *DomainInspectorMeasurements) SetOriginStatus3xx(v int32)` + +SetOriginStatus3xx sets OriginStatus3xx field to given value. + +### HasOriginStatus3xx + +`func (o *DomainInspectorMeasurements) HasOriginStatus3xx() bool` + +HasOriginStatus3xx returns a boolean if a field has been set. + +### GetOriginStatus4xx + +`func (o *DomainInspectorMeasurements) GetOriginStatus4xx() int32` + +GetOriginStatus4xx returns the OriginStatus4xx field if non-nil, zero value otherwise. + +### GetOriginStatus4xxOk + +`func (o *DomainInspectorMeasurements) GetOriginStatus4xxOk() (*int32, bool)` + +GetOriginStatus4xxOk returns a tuple with the OriginStatus4xx field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOriginStatus4xx + +`func (o *DomainInspectorMeasurements) SetOriginStatus4xx(v int32)` + +SetOriginStatus4xx sets OriginStatus4xx field to given value. + +### HasOriginStatus4xx + +`func (o *DomainInspectorMeasurements) HasOriginStatus4xx() bool` + +HasOriginStatus4xx returns a boolean if a field has been set. + +### GetOriginStatus5xx + +`func (o *DomainInspectorMeasurements) GetOriginStatus5xx() int32` + +GetOriginStatus5xx returns the OriginStatus5xx field if non-nil, zero value otherwise. + +### GetOriginStatus5xxOk + +`func (o *DomainInspectorMeasurements) GetOriginStatus5xxOk() (*int32, bool)` + +GetOriginStatus5xxOk returns a tuple with the OriginStatus5xx field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOriginStatus5xx + +`func (o *DomainInspectorMeasurements) SetOriginStatus5xx(v int32)` + +SetOriginStatus5xx sets OriginStatus5xx field to given value. + +### HasOriginStatus5xx + +`func (o *DomainInspectorMeasurements) HasOriginStatus5xx() bool` + +HasOriginStatus5xx returns a boolean if a field has been set. + + +[Back to API list](../README.md#documentation-for-api-endpoints) | [Back to README](../README.md) diff --git a/docs/DomainInspectorRealtimeAPI.md b/docs/DomainInspectorRealtimeAPI.md new file mode 100644 index 00000000..c28f3410 --- /dev/null +++ b/docs/DomainInspectorRealtimeAPI.md @@ -0,0 +1,215 @@ +# DomainInspectorRealtimeAPI + +All URIs are relative to *https://api.fastly.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**GetDomainInspectorLast120Seconds**](DomainInspectorRealtimeAPI.md#GetDomainInspectorLast120Seconds) | **GET** `/v1/domains/{service_id}/ts/h` | Get real-time domain data for the last 120 seconds +[**GetDomainInspectorLastMaxEntries**](DomainInspectorRealtimeAPI.md#GetDomainInspectorLastMaxEntries) | **GET** `/v1/domains/{service_id}/ts/h/limit/{max_entries}` | Get a limited number of real-time domain data entries +[**GetDomainInspectorLastSecond**](DomainInspectorRealtimeAPI.md#GetDomainInspectorLastSecond) | **GET** `/v1/domains/{service_id}/ts/{start_timestamp}` | Get real-time domain data from a specified time + + + +## GetDomainInspectorLast120Seconds + +Get real-time domain data for the last 120 seconds + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + "github.com/fastly/fastly-go/fastly" +) + +func main() { + serviceID := "serviceId_example" // string | Alphanumeric string identifying the service. + + cfg := fastly.NewConfiguration() + apiClient := fastly.NewAPIClient(cfg) + ctx := fastly.NewAPIKeyContextFromEnv("FASTLY_API_TOKEN") + resp, r, err := apiClient.DomainInspectorRealtimeAPI.GetDomainInspectorLast120Seconds(ctx, serviceID).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DomainInspectorRealtimeAPI.GetDomainInspectorLast120Seconds`: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetDomainInspectorLast120Seconds`: DomainInspector + fmt.Fprintf(os.Stdout, "Response from `DomainInspectorRealtimeAPI.GetDomainInspectorLast120Seconds`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceID** | **string** | Alphanumeric string identifying the service. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetDomainInspectorLast120SecondsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + +[**DomainInspector**](DomainInspector.md) + +### Authorization + +[API Token](https://developer.fastly.com/reference/api/#authentication) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[Back to top](#) | [Back to API list](../README.md#documentation-for-api-endpoints) | [Back to README](../README.md) + + +## GetDomainInspectorLastMaxEntries + +Get a limited number of real-time domain data entries + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + "github.com/fastly/fastly-go/fastly" +) + +func main() { + serviceID := "serviceId_example" // string | Alphanumeric string identifying the service. + maxEntries := int32(1) // int32 | Maximum number of results to show. + + cfg := fastly.NewConfiguration() + apiClient := fastly.NewAPIClient(cfg) + ctx := fastly.NewAPIKeyContextFromEnv("FASTLY_API_TOKEN") + resp, r, err := apiClient.DomainInspectorRealtimeAPI.GetDomainInspectorLastMaxEntries(ctx, serviceID, maxEntries).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DomainInspectorRealtimeAPI.GetDomainInspectorLastMaxEntries`: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetDomainInspectorLastMaxEntries`: DomainInspector + fmt.Fprintf(os.Stdout, "Response from `DomainInspectorRealtimeAPI.GetDomainInspectorLastMaxEntries`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceID** | **string** | Alphanumeric string identifying the service. | +**maxEntries** | **int32** | Maximum number of results to show. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetDomainInspectorLastMaxEntriesRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + +[**DomainInspector**](DomainInspector.md) + +### Authorization + +[API Token](https://developer.fastly.com/reference/api/#authentication) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[Back to top](#) | [Back to API list](../README.md#documentation-for-api-endpoints) | [Back to README](../README.md) + + +## GetDomainInspectorLastSecond + +Get real-time domain data from a specified time + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + "github.com/fastly/fastly-go/fastly" +) + +func main() { + serviceID := "serviceId_example" // string | Alphanumeric string identifying the service. + startTimestamp := int32(56) // int32 | Timestamp in seconds (Unix epoch time). + + cfg := fastly.NewConfiguration() + apiClient := fastly.NewAPIClient(cfg) + ctx := fastly.NewAPIKeyContextFromEnv("FASTLY_API_TOKEN") + resp, r, err := apiClient.DomainInspectorRealtimeAPI.GetDomainInspectorLastSecond(ctx, serviceID, startTimestamp).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DomainInspectorRealtimeAPI.GetDomainInspectorLastSecond`: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetDomainInspectorLastSecond`: DomainInspector + fmt.Fprintf(os.Stdout, "Response from `DomainInspectorRealtimeAPI.GetDomainInspectorLastSecond`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceID** | **string** | Alphanumeric string identifying the service. | +**startTimestamp** | **int32** | Timestamp in seconds (Unix epoch time). | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetDomainInspectorLastSecondRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + +[**DomainInspector**](DomainInspector.md) + +### Authorization + +[API Token](https://developer.fastly.com/reference/api/#authentication) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[Back to top](#) | [Back to API list](../README.md#documentation-for-api-endpoints) | [Back to README](../README.md) diff --git a/docs/DomainInspectorRealtimeEntry.md b/docs/DomainInspectorRealtimeEntry.md new file mode 100644 index 00000000..dd9e3467 --- /dev/null +++ b/docs/DomainInspectorRealtimeEntry.md @@ -0,0 +1,106 @@ +# DomainInspectorRealtimeEntry + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Recorded** | Pointer to [**RecordedTimestamp**](RecordedTimestamp.md) | | [optional] +**Aggregated** | Pointer to [**map[string]DomainInspectorMeasurements**](domain_inspector_measurements.md) | Groups [measurements](#measurements-data-model) by backend name and then by IP address. | [optional] +**Datacenter** | Pointer to [**map[string]map[string]DomainInspectorMeasurements**](map.md) | Groups [measurements](#measurements-data-model) by POP, then backend name, and then IP address. See the [POPs API](/reference/api/utils/pops/) for details about POP identifiers. | [optional] + +## Methods + +### NewDomainInspectorRealtimeEntry + +`func NewDomainInspectorRealtimeEntry() *DomainInspectorRealtimeEntry` + +NewDomainInspectorRealtimeEntry instantiates a new DomainInspectorRealtimeEntry object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewDomainInspectorRealtimeEntryWithDefaults + +`func NewDomainInspectorRealtimeEntryWithDefaults() *DomainInspectorRealtimeEntry` + +NewDomainInspectorRealtimeEntryWithDefaults instantiates a new DomainInspectorRealtimeEntry object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetRecorded + +`func (o *DomainInspectorRealtimeEntry) GetRecorded() RecordedTimestamp` + +GetRecorded returns the Recorded field if non-nil, zero value otherwise. + +### GetRecordedOk + +`func (o *DomainInspectorRealtimeEntry) GetRecordedOk() (*RecordedTimestamp, bool)` + +GetRecordedOk returns a tuple with the Recorded field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRecorded + +`func (o *DomainInspectorRealtimeEntry) SetRecorded(v RecordedTimestamp)` + +SetRecorded sets Recorded field to given value. + +### HasRecorded + +`func (o *DomainInspectorRealtimeEntry) HasRecorded() bool` + +HasRecorded returns a boolean if a field has been set. + +### GetAggregated + +`func (o *DomainInspectorRealtimeEntry) GetAggregated() map[string]DomainInspectorMeasurements` + +GetAggregated returns the Aggregated field if non-nil, zero value otherwise. + +### GetAggregatedOk + +`func (o *DomainInspectorRealtimeEntry) GetAggregatedOk() (*map[string]DomainInspectorMeasurements, bool)` + +GetAggregatedOk returns a tuple with the Aggregated field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAggregated + +`func (o *DomainInspectorRealtimeEntry) SetAggregated(v map[string]DomainInspectorMeasurements)` + +SetAggregated sets Aggregated field to given value. + +### HasAggregated + +`func (o *DomainInspectorRealtimeEntry) HasAggregated() bool` + +HasAggregated returns a boolean if a field has been set. + +### GetDatacenter + +`func (o *DomainInspectorRealtimeEntry) GetDatacenter() map[string]map[string]DomainInspectorMeasurements` + +GetDatacenter returns the Datacenter field if non-nil, zero value otherwise. + +### GetDatacenterOk + +`func (o *DomainInspectorRealtimeEntry) GetDatacenterOk() (*map[string]map[string]DomainInspectorMeasurements, bool)` + +GetDatacenterOk returns a tuple with the Datacenter field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDatacenter + +`func (o *DomainInspectorRealtimeEntry) SetDatacenter(v map[string]map[string]DomainInspectorMeasurements)` + +SetDatacenter sets Datacenter field to given value. + +### HasDatacenter + +`func (o *DomainInspectorRealtimeEntry) HasDatacenter() bool` + +HasDatacenter returns a boolean if a field has been set. + + +[Back to API list](../README.md#documentation-for-api-endpoints) | [Back to README](../README.md) diff --git a/docs/EventAttributes.md b/docs/EventAttributes.md index 4dd8c8b5..1c7b9ecb 100644 --- a/docs/EventAttributes.md +++ b/docs/EventAttributes.md @@ -10,7 +10,7 @@ Name | Type | Description | Notes **Description** | Pointer to **string** | Description of the event. | [optional] **EventType** | Pointer to **string** | Type of event. Can be used with `filter[event_type]` | [optional] **IP** | Pointer to **string** | IP addresses that the event was requested from. | [optional] -**Metadata** | Pointer to **map[string]any** | Hash of key value pairs of additional information. | [optional] +**Metadata** | Pointer to **map[string]map[string]any** | Hash of key value pairs of additional information. | [optional] **ServiceID** | Pointer to **string** | | [optional] [readonly] **UserID** | Pointer to **string** | | [optional] [readonly] **TokenID** | Pointer to **string** | | [optional] [readonly] @@ -196,20 +196,20 @@ HasIP returns a boolean if a field has been set. ### GetMetadata -`func (o *EventAttributes) GetMetadata() map[string]any` +`func (o *EventAttributes) GetMetadata() map[string]map[string]any` GetMetadata returns the Metadata field if non-nil, zero value otherwise. ### GetMetadataOk -`func (o *EventAttributes) GetMetadataOk() (*map[string]any, bool)` +`func (o *EventAttributes) GetMetadataOk() (*map[string]map[string]any, bool)` GetMetadataOk returns a tuple with the Metadata field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetMetadata -`func (o *EventAttributes) SetMetadata(v map[string]any)` +`func (o *EventAttributes) SetMetadata(v map[string]map[string]any)` SetMetadata sets Metadata field to given value. diff --git a/docs/EventsResponseAllOf.md b/docs/EventData.md similarity index 64% rename from docs/EventsResponseAllOf.md rename to docs/EventData.md index 27aa1460..0ecf303f 100644 --- a/docs/EventsResponseAllOf.md +++ b/docs/EventData.md @@ -1,4 +1,4 @@ -# EventsResponseAllOf +# EventData ## Properties @@ -8,45 +8,45 @@ Name | Type | Description | Notes ## Methods -### NewEventsResponseAllOf +### NewEventData -`func NewEventsResponseAllOf() *EventsResponseAllOf` +`func NewEventData() *EventData` -NewEventsResponseAllOf instantiates a new EventsResponseAllOf object +NewEventData instantiates a new EventData object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed -### NewEventsResponseAllOfWithDefaults +### NewEventDataWithDefaults -`func NewEventsResponseAllOfWithDefaults() *EventsResponseAllOf` +`func NewEventDataWithDefaults() *EventData` -NewEventsResponseAllOfWithDefaults instantiates a new EventsResponseAllOf object +NewEventDataWithDefaults instantiates a new EventData object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set ### GetData -`func (o *EventsResponseAllOf) GetData() []Event` +`func (o *EventData) GetData() []Event` GetData returns the Data field if non-nil, zero value otherwise. ### GetDataOk -`func (o *EventsResponseAllOf) GetDataOk() (*[]Event, bool)` +`func (o *EventData) GetDataOk() (*[]Event, bool)` GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetData -`func (o *EventsResponseAllOf) SetData(v []Event)` +`func (o *EventData) SetData(v []Event)` SetData sets Data field to given value. ### HasData -`func (o *EventsResponseAllOf) HasData() bool` +`func (o *EventData) HasData() bool` HasData returns a boolean if a field has been set. diff --git a/docs/HistoricalDomains.md b/docs/HistoricalDomains.md new file mode 100644 index 00000000..3130d074 --- /dev/null +++ b/docs/HistoricalDomains.md @@ -0,0 +1,142 @@ +# HistoricalDomains + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Status** | Pointer to **string** | Whether or not we were able to successfully execute the query. | [optional] +**Meta** | Pointer to [**HistoricalDomainsMeta**](HistoricalDomainsMeta.md) | | [optional] +**Msg** | Pointer to **NullableString** | If the query was not successful, this will provide a string that explains why. | [optional] +**Data** | Pointer to [**[]HistoricalDomainsData**](HistoricalDomainsData.md) | A list of [entries](#entry-data-model), each representing one unique combination of dimensions, such as domain, region, or POP. | [optional] + +## Methods + +### NewHistoricalDomains + +`func NewHistoricalDomains() *HistoricalDomains` + +NewHistoricalDomains instantiates a new HistoricalDomains object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewHistoricalDomainsWithDefaults + +`func NewHistoricalDomainsWithDefaults() *HistoricalDomains` + +NewHistoricalDomainsWithDefaults instantiates a new HistoricalDomains object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetStatus + +`func (o *HistoricalDomains) GetStatus() string` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *HistoricalDomains) 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 *HistoricalDomains) SetStatus(v string)` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *HistoricalDomains) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + +### GetMeta + +`func (o *HistoricalDomains) GetMeta() HistoricalDomainsMeta` + +GetMeta returns the Meta field if non-nil, zero value otherwise. + +### GetMetaOk + +`func (o *HistoricalDomains) GetMetaOk() (*HistoricalDomainsMeta, bool)` + +GetMetaOk returns a tuple with the Meta field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMeta + +`func (o *HistoricalDomains) SetMeta(v HistoricalDomainsMeta)` + +SetMeta sets Meta field to given value. + +### HasMeta + +`func (o *HistoricalDomains) HasMeta() bool` + +HasMeta returns a boolean if a field has been set. + +### GetMsg + +`func (o *HistoricalDomains) GetMsg() string` + +GetMsg returns the Msg field if non-nil, zero value otherwise. + +### GetMsgOk + +`func (o *HistoricalDomains) GetMsgOk() (*string, bool)` + +GetMsgOk returns a tuple with the Msg field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMsg + +`func (o *HistoricalDomains) SetMsg(v string)` + +SetMsg sets Msg field to given value. + +### HasMsg + +`func (o *HistoricalDomains) HasMsg() bool` + +HasMsg returns a boolean if a field has been set. + +### SetMsgNil + +`func (o *HistoricalDomains) SetMsgNil(b bool)` + + SetMsgNil sets the value for Msg to be an explicit nil + +### UnsetMsg +`func (o *HistoricalDomains) UnsetMsg()` + +UnsetMsg ensures that no value is present for Msg, not even an explicit nil +### GetData + +`func (o *HistoricalDomains) GetData() []HistoricalDomainsData` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *HistoricalDomains) GetDataOk() (*[]HistoricalDomainsData, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *HistoricalDomains) SetData(v []HistoricalDomainsData)` + +SetData sets Data field to given value. + +### HasData + +`func (o *HistoricalDomains) HasData() bool` + +HasData returns a boolean if a field has been set. + + +[Back to API list](../README.md#documentation-for-api-endpoints) | [Back to README](../README.md) diff --git a/docs/HistoricalDomainsData.md b/docs/HistoricalDomainsData.md new file mode 100644 index 00000000..ad876956 --- /dev/null +++ b/docs/HistoricalDomainsData.md @@ -0,0 +1,80 @@ +# HistoricalDomainsData + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Dimensions** | Pointer to [**DomainInspectorEntryDimensions**](DomainInspectorEntryDimensions.md) | | [optional] +**Values** | Pointer to [**[]Values**](Values.md) | An array of values representing the metric values at each point in time. Note that this dataset is sparse: only the keys with non-zero values will be included in the record. | [optional] + +## Methods + +### NewHistoricalDomainsData + +`func NewHistoricalDomainsData() *HistoricalDomainsData` + +NewHistoricalDomainsData instantiates a new HistoricalDomainsData object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewHistoricalDomainsDataWithDefaults + +`func NewHistoricalDomainsDataWithDefaults() *HistoricalDomainsData` + +NewHistoricalDomainsDataWithDefaults instantiates a new HistoricalDomainsData object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetDimensions + +`func (o *HistoricalDomainsData) GetDimensions() DomainInspectorEntryDimensions` + +GetDimensions returns the Dimensions field if non-nil, zero value otherwise. + +### GetDimensionsOk + +`func (o *HistoricalDomainsData) GetDimensionsOk() (*DomainInspectorEntryDimensions, bool)` + +GetDimensionsOk returns a tuple with the Dimensions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDimensions + +`func (o *HistoricalDomainsData) SetDimensions(v DomainInspectorEntryDimensions)` + +SetDimensions sets Dimensions field to given value. + +### HasDimensions + +`func (o *HistoricalDomainsData) HasDimensions() bool` + +HasDimensions returns a boolean if a field has been set. + +### GetValues + +`func (o *HistoricalDomainsData) GetValues() []Values` + +GetValues returns the Values field if non-nil, zero value otherwise. + +### GetValuesOk + +`func (o *HistoricalDomainsData) GetValuesOk() (*[]Values, bool)` + +GetValuesOk returns a tuple with the Values field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetValues + +`func (o *HistoricalDomainsData) SetValues(v []Values)` + +SetValues sets Values field to given value. + +### HasValues + +`func (o *HistoricalDomainsData) HasValues() bool` + +HasValues returns a boolean if a field has been set. + + +[Back to API list](../README.md#documentation-for-api-endpoints) | [Back to README](../README.md) diff --git a/docs/HistoricalDomainsMeta.md b/docs/HistoricalDomainsMeta.md new file mode 100644 index 00000000..d79302cc --- /dev/null +++ b/docs/HistoricalDomainsMeta.md @@ -0,0 +1,262 @@ +# HistoricalDomainsMeta + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Start** | Pointer to **string** | Start time that was used to perform the query as an ISO-8601-formatted date and time. | [optional] +**End** | Pointer to **string** | End time that was used to perform the query as an ISO-8601-formatted date and time. | [optional] +**Downsample** | Pointer to **string** | Downsample that was used to perform the query. One of `minute`, `hour`, or `day`. | [optional] +**Metrics** | Pointer to **string** | A comma-separated list of the metrics that were requested. | [optional] +**Limit** | Pointer to **float32** | The maximum number of results shown per page. | [optional] +**NextCursor** | Pointer to **string** | A string that can be used to request the next page of results, if any. | [optional] +**Sort** | Pointer to **string** | A comma-separated list of keys the results are sorted by. | [optional] +**GroupBy** | Pointer to **string** | A comma-separated list of dimensions being summed over in the query. | [optional] +**Filters** | Pointer to [**HistoricalDomainsMetaFilters**](HistoricalDomainsMetaFilters.md) | | [optional] + +## Methods + +### NewHistoricalDomainsMeta + +`func NewHistoricalDomainsMeta() *HistoricalDomainsMeta` + +NewHistoricalDomainsMeta instantiates a new HistoricalDomainsMeta object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewHistoricalDomainsMetaWithDefaults + +`func NewHistoricalDomainsMetaWithDefaults() *HistoricalDomainsMeta` + +NewHistoricalDomainsMetaWithDefaults instantiates a new HistoricalDomainsMeta object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetStart + +`func (o *HistoricalDomainsMeta) GetStart() string` + +GetStart returns the Start field if non-nil, zero value otherwise. + +### GetStartOk + +`func (o *HistoricalDomainsMeta) GetStartOk() (*string, bool)` + +GetStartOk returns a tuple with the Start field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStart + +`func (o *HistoricalDomainsMeta) SetStart(v string)` + +SetStart sets Start field to given value. + +### HasStart + +`func (o *HistoricalDomainsMeta) HasStart() bool` + +HasStart returns a boolean if a field has been set. + +### GetEnd + +`func (o *HistoricalDomainsMeta) GetEnd() string` + +GetEnd returns the End field if non-nil, zero value otherwise. + +### GetEndOk + +`func (o *HistoricalDomainsMeta) GetEndOk() (*string, bool)` + +GetEndOk returns a tuple with the End field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEnd + +`func (o *HistoricalDomainsMeta) SetEnd(v string)` + +SetEnd sets End field to given value. + +### HasEnd + +`func (o *HistoricalDomainsMeta) HasEnd() bool` + +HasEnd returns a boolean if a field has been set. + +### GetDownsample + +`func (o *HistoricalDomainsMeta) GetDownsample() string` + +GetDownsample returns the Downsample field if non-nil, zero value otherwise. + +### GetDownsampleOk + +`func (o *HistoricalDomainsMeta) GetDownsampleOk() (*string, bool)` + +GetDownsampleOk returns a tuple with the Downsample field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDownsample + +`func (o *HistoricalDomainsMeta) SetDownsample(v string)` + +SetDownsample sets Downsample field to given value. + +### HasDownsample + +`func (o *HistoricalDomainsMeta) HasDownsample() bool` + +HasDownsample returns a boolean if a field has been set. + +### GetMetrics + +`func (o *HistoricalDomainsMeta) GetMetrics() string` + +GetMetrics returns the Metrics field if non-nil, zero value otherwise. + +### GetMetricsOk + +`func (o *HistoricalDomainsMeta) GetMetricsOk() (*string, bool)` + +GetMetricsOk returns a tuple with the Metrics field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetrics + +`func (o *HistoricalDomainsMeta) SetMetrics(v string)` + +SetMetrics sets Metrics field to given value. + +### HasMetrics + +`func (o *HistoricalDomainsMeta) HasMetrics() bool` + +HasMetrics returns a boolean if a field has been set. + +### GetLimit + +`func (o *HistoricalDomainsMeta) GetLimit() float32` + +GetLimit returns the Limit field if non-nil, zero value otherwise. + +### GetLimitOk + +`func (o *HistoricalDomainsMeta) GetLimitOk() (*float32, bool)` + +GetLimitOk returns a tuple with the Limit field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLimit + +`func (o *HistoricalDomainsMeta) SetLimit(v float32)` + +SetLimit sets Limit field to given value. + +### HasLimit + +`func (o *HistoricalDomainsMeta) HasLimit() bool` + +HasLimit returns a boolean if a field has been set. + +### GetNextCursor + +`func (o *HistoricalDomainsMeta) GetNextCursor() string` + +GetNextCursor returns the NextCursor field if non-nil, zero value otherwise. + +### GetNextCursorOk + +`func (o *HistoricalDomainsMeta) GetNextCursorOk() (*string, bool)` + +GetNextCursorOk returns a tuple with the NextCursor field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNextCursor + +`func (o *HistoricalDomainsMeta) SetNextCursor(v string)` + +SetNextCursor sets NextCursor field to given value. + +### HasNextCursor + +`func (o *HistoricalDomainsMeta) HasNextCursor() bool` + +HasNextCursor returns a boolean if a field has been set. + +### GetSort + +`func (o *HistoricalDomainsMeta) GetSort() string` + +GetSort returns the Sort field if non-nil, zero value otherwise. + +### GetSortOk + +`func (o *HistoricalDomainsMeta) GetSortOk() (*string, bool)` + +GetSortOk returns a tuple with the Sort field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSort + +`func (o *HistoricalDomainsMeta) SetSort(v string)` + +SetSort sets Sort field to given value. + +### HasSort + +`func (o *HistoricalDomainsMeta) HasSort() bool` + +HasSort returns a boolean if a field has been set. + +### GetGroupBy + +`func (o *HistoricalDomainsMeta) GetGroupBy() string` + +GetGroupBy returns the GroupBy field if non-nil, zero value otherwise. + +### GetGroupByOk + +`func (o *HistoricalDomainsMeta) GetGroupByOk() (*string, bool)` + +GetGroupByOk returns a tuple with the GroupBy field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGroupBy + +`func (o *HistoricalDomainsMeta) SetGroupBy(v string)` + +SetGroupBy sets GroupBy field to given value. + +### HasGroupBy + +`func (o *HistoricalDomainsMeta) HasGroupBy() bool` + +HasGroupBy returns a boolean if a field has been set. + +### GetFilters + +`func (o *HistoricalDomainsMeta) GetFilters() HistoricalDomainsMetaFilters` + +GetFilters returns the Filters field if non-nil, zero value otherwise. + +### GetFiltersOk + +`func (o *HistoricalDomainsMeta) GetFiltersOk() (*HistoricalDomainsMetaFilters, bool)` + +GetFiltersOk returns a tuple with the Filters field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFilters + +`func (o *HistoricalDomainsMeta) SetFilters(v HistoricalDomainsMetaFilters)` + +SetFilters sets Filters field to given value. + +### HasFilters + +`func (o *HistoricalDomainsMeta) HasFilters() bool` + +HasFilters returns a boolean if a field has been set. + + +[Back to API list](../README.md#documentation-for-api-endpoints) | [Back to README](../README.md) diff --git a/docs/HistoricalDomainsMetaFilters.md b/docs/HistoricalDomainsMetaFilters.md new file mode 100644 index 00000000..5d3eb136 --- /dev/null +++ b/docs/HistoricalDomainsMetaFilters.md @@ -0,0 +1,106 @@ +# HistoricalDomainsMetaFilters + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Region** | Pointer to **string** | | [optional] +**Datacenter** | Pointer to **string** | | [optional] +**Domain** | Pointer to **string** | | [optional] + +## Methods + +### NewHistoricalDomainsMetaFilters + +`func NewHistoricalDomainsMetaFilters() *HistoricalDomainsMetaFilters` + +NewHistoricalDomainsMetaFilters instantiates a new HistoricalDomainsMetaFilters object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewHistoricalDomainsMetaFiltersWithDefaults + +`func NewHistoricalDomainsMetaFiltersWithDefaults() *HistoricalDomainsMetaFilters` + +NewHistoricalDomainsMetaFiltersWithDefaults instantiates a new HistoricalDomainsMetaFilters object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetRegion + +`func (o *HistoricalDomainsMetaFilters) GetRegion() string` + +GetRegion returns the Region field if non-nil, zero value otherwise. + +### GetRegionOk + +`func (o *HistoricalDomainsMetaFilters) GetRegionOk() (*string, bool)` + +GetRegionOk returns a tuple with the Region field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRegion + +`func (o *HistoricalDomainsMetaFilters) SetRegion(v string)` + +SetRegion sets Region field to given value. + +### HasRegion + +`func (o *HistoricalDomainsMetaFilters) HasRegion() bool` + +HasRegion returns a boolean if a field has been set. + +### GetDatacenter + +`func (o *HistoricalDomainsMetaFilters) GetDatacenter() string` + +GetDatacenter returns the Datacenter field if non-nil, zero value otherwise. + +### GetDatacenterOk + +`func (o *HistoricalDomainsMetaFilters) GetDatacenterOk() (*string, bool)` + +GetDatacenterOk returns a tuple with the Datacenter field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDatacenter + +`func (o *HistoricalDomainsMetaFilters) SetDatacenter(v string)` + +SetDatacenter sets Datacenter field to given value. + +### HasDatacenter + +`func (o *HistoricalDomainsMetaFilters) HasDatacenter() bool` + +HasDatacenter returns a boolean if a field has been set. + +### GetDomain + +`func (o *HistoricalDomainsMetaFilters) GetDomain() string` + +GetDomain returns the Domain field if non-nil, zero value otherwise. + +### GetDomainOk + +`func (o *HistoricalDomainsMetaFilters) GetDomainOk() (*string, bool)` + +GetDomainOk returns a tuple with the Domain field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDomain + +`func (o *HistoricalDomainsMetaFilters) SetDomain(v string)` + +SetDomain sets Domain field to given value. + +### HasDomain + +`func (o *HistoricalDomainsMetaFilters) HasDomain() bool` + +HasDomain returns a boolean if a field has been set. + + +[Back to API list](../README.md#documentation-for-api-endpoints) | [Back to README](../README.md) diff --git a/docs/HistoricalDomainsResponse.md b/docs/HistoricalDomainsResponse.md new file mode 100644 index 00000000..9185beba --- /dev/null +++ b/docs/HistoricalDomainsResponse.md @@ -0,0 +1,142 @@ +# HistoricalDomainsResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Status** | Pointer to **string** | Whether or not we were able to successfully execute the query. | [optional] +**Meta** | Pointer to [**HistoricalDomainsMeta**](HistoricalDomainsMeta.md) | | [optional] +**Msg** | Pointer to **NullableString** | If the query was not successful, this will provide a string that explains why. | [optional] +**Data** | Pointer to [**[]DomainInspectorEntry**](DomainInspectorEntry.md) | A list of timeseries. Each individual timeseries represents a unique combination of dimensions, such as domain, region or POP. | [optional] + +## Methods + +### NewHistoricalDomainsResponse + +`func NewHistoricalDomainsResponse() *HistoricalDomainsResponse` + +NewHistoricalDomainsResponse instantiates a new HistoricalDomainsResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewHistoricalDomainsResponseWithDefaults + +`func NewHistoricalDomainsResponseWithDefaults() *HistoricalDomainsResponse` + +NewHistoricalDomainsResponseWithDefaults instantiates a new HistoricalDomainsResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetStatus + +`func (o *HistoricalDomainsResponse) GetStatus() string` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *HistoricalDomainsResponse) 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 *HistoricalDomainsResponse) SetStatus(v string)` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *HistoricalDomainsResponse) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + +### GetMeta + +`func (o *HistoricalDomainsResponse) GetMeta() HistoricalDomainsMeta` + +GetMeta returns the Meta field if non-nil, zero value otherwise. + +### GetMetaOk + +`func (o *HistoricalDomainsResponse) GetMetaOk() (*HistoricalDomainsMeta, bool)` + +GetMetaOk returns a tuple with the Meta field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMeta + +`func (o *HistoricalDomainsResponse) SetMeta(v HistoricalDomainsMeta)` + +SetMeta sets Meta field to given value. + +### HasMeta + +`func (o *HistoricalDomainsResponse) HasMeta() bool` + +HasMeta returns a boolean if a field has been set. + +### GetMsg + +`func (o *HistoricalDomainsResponse) GetMsg() string` + +GetMsg returns the Msg field if non-nil, zero value otherwise. + +### GetMsgOk + +`func (o *HistoricalDomainsResponse) GetMsgOk() (*string, bool)` + +GetMsgOk returns a tuple with the Msg field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMsg + +`func (o *HistoricalDomainsResponse) SetMsg(v string)` + +SetMsg sets Msg field to given value. + +### HasMsg + +`func (o *HistoricalDomainsResponse) HasMsg() bool` + +HasMsg returns a boolean if a field has been set. + +### SetMsgNil + +`func (o *HistoricalDomainsResponse) SetMsgNil(b bool)` + + SetMsgNil sets the value for Msg to be an explicit nil + +### UnsetMsg +`func (o *HistoricalDomainsResponse) UnsetMsg()` + +UnsetMsg ensures that no value is present for Msg, not even an explicit nil +### GetData + +`func (o *HistoricalDomainsResponse) GetData() []DomainInspectorEntry` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *HistoricalDomainsResponse) GetDataOk() (*[]DomainInspectorEntry, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *HistoricalDomainsResponse) SetData(v []DomainInspectorEntry)` + +SetData sets Data field to given value. + +### HasData + +`func (o *HistoricalDomainsResponse) HasData() bool` + +HasData returns a boolean if a field has been set. + + +[Back to API list](../README.md#documentation-for-api-endpoints) | [Back to README](../README.md) diff --git a/docs/HistoricalDomainsResponseAllOf.md b/docs/HistoricalDomainsResponseAllOf.md new file mode 100644 index 00000000..8a52115b --- /dev/null +++ b/docs/HistoricalDomainsResponseAllOf.md @@ -0,0 +1,54 @@ +# HistoricalDomainsResponseAllOf + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | Pointer to [**[]DomainInspectorEntry**](DomainInspectorEntry.md) | A list of timeseries. Each individual timeseries represents a unique combination of dimensions, such as domain, region or POP. | [optional] + +## Methods + +### NewHistoricalDomainsResponseAllOf + +`func NewHistoricalDomainsResponseAllOf() *HistoricalDomainsResponseAllOf` + +NewHistoricalDomainsResponseAllOf instantiates a new HistoricalDomainsResponseAllOf object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewHistoricalDomainsResponseAllOfWithDefaults + +`func NewHistoricalDomainsResponseAllOfWithDefaults() *HistoricalDomainsResponseAllOf` + +NewHistoricalDomainsResponseAllOfWithDefaults instantiates a new HistoricalDomainsResponseAllOf object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetData + +`func (o *HistoricalDomainsResponseAllOf) GetData() []DomainInspectorEntry` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *HistoricalDomainsResponseAllOf) GetDataOk() (*[]DomainInspectorEntry, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *HistoricalDomainsResponseAllOf) SetData(v []DomainInspectorEntry)` + +SetData sets Data field to given value. + +### HasData + +`func (o *HistoricalDomainsResponseAllOf) HasData() bool` + +HasData returns a boolean if a field has been set. + + +[Back to API list](../README.md#documentation-for-api-endpoints) | [Back to README](../README.md) diff --git a/docs/HistoricalFieldResultsAttributesAllOf.md b/docs/HistoricalFieldResultsAttributesAdditional.md similarity index 54% rename from docs/HistoricalFieldResultsAttributesAllOf.md rename to docs/HistoricalFieldResultsAttributesAdditional.md index 8642f35c..0f21ac70 100644 --- a/docs/HistoricalFieldResultsAttributesAllOf.md +++ b/docs/HistoricalFieldResultsAttributesAdditional.md @@ -1,4 +1,4 @@ -# HistoricalFieldResultsAttributesAllOf +# HistoricalFieldResultsAttributesAdditional ## Properties @@ -9,70 +9,70 @@ Name | Type | Description | Notes ## Methods -### NewHistoricalFieldResultsAttributesAllOf +### NewHistoricalFieldResultsAttributesAdditional -`func NewHistoricalFieldResultsAttributesAllOf() *HistoricalFieldResultsAttributesAllOf` +`func NewHistoricalFieldResultsAttributesAdditional() *HistoricalFieldResultsAttributesAdditional` -NewHistoricalFieldResultsAttributesAllOf instantiates a new HistoricalFieldResultsAttributesAllOf object +NewHistoricalFieldResultsAttributesAdditional instantiates a new HistoricalFieldResultsAttributesAdditional object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed -### NewHistoricalFieldResultsAttributesAllOfWithDefaults +### NewHistoricalFieldResultsAttributesAdditionalWithDefaults -`func NewHistoricalFieldResultsAttributesAllOfWithDefaults() *HistoricalFieldResultsAttributesAllOf` +`func NewHistoricalFieldResultsAttributesAdditionalWithDefaults() *HistoricalFieldResultsAttributesAdditional` -NewHistoricalFieldResultsAttributesAllOfWithDefaults instantiates a new HistoricalFieldResultsAttributesAllOf object +NewHistoricalFieldResultsAttributesAdditionalWithDefaults instantiates a new HistoricalFieldResultsAttributesAdditional object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set ### GetServiceID -`func (o *HistoricalFieldResultsAttributesAllOf) GetServiceID() ReadOnlyIDService` +`func (o *HistoricalFieldResultsAttributesAdditional) GetServiceID() ReadOnlyIDService` GetServiceID returns the ServiceID field if non-nil, zero value otherwise. ### GetServiceIDOk -`func (o *HistoricalFieldResultsAttributesAllOf) GetServiceIDOk() (*ReadOnlyIDService, bool)` +`func (o *HistoricalFieldResultsAttributesAdditional) GetServiceIDOk() (*ReadOnlyIDService, bool)` GetServiceIDOk returns a tuple with the ServiceID field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetServiceID -`func (o *HistoricalFieldResultsAttributesAllOf) SetServiceID(v ReadOnlyIDService)` +`func (o *HistoricalFieldResultsAttributesAdditional) SetServiceID(v ReadOnlyIDService)` SetServiceID sets ServiceID field to given value. ### HasServiceID -`func (o *HistoricalFieldResultsAttributesAllOf) HasServiceID() bool` +`func (o *HistoricalFieldResultsAttributesAdditional) HasServiceID() bool` HasServiceID returns a boolean if a field has been set. ### GetStartTime -`func (o *HistoricalFieldResultsAttributesAllOf) GetStartTime() int32` +`func (o *HistoricalFieldResultsAttributesAdditional) GetStartTime() int32` GetStartTime returns the StartTime field if non-nil, zero value otherwise. ### GetStartTimeOk -`func (o *HistoricalFieldResultsAttributesAllOf) GetStartTimeOk() (*int32, bool)` +`func (o *HistoricalFieldResultsAttributesAdditional) GetStartTimeOk() (*int32, bool)` GetStartTimeOk returns a tuple with the StartTime field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetStartTime -`func (o *HistoricalFieldResultsAttributesAllOf) SetStartTime(v int32)` +`func (o *HistoricalFieldResultsAttributesAdditional) SetStartTime(v int32)` SetStartTime sets StartTime field to given value. ### HasStartTime -`func (o *HistoricalFieldResultsAttributesAllOf) HasStartTime() bool` +`func (o *HistoricalFieldResultsAttributesAdditional) HasStartTime() bool` HasStartTime returns a boolean if a field has been set. diff --git a/docs/HistoricalOriginsResponse.md b/docs/HistoricalOriginsResponse.md new file mode 100644 index 00000000..8553c4b0 --- /dev/null +++ b/docs/HistoricalOriginsResponse.md @@ -0,0 +1,142 @@ +# HistoricalOriginsResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Status** | Pointer to **string** | Whether or not we were able to successfully execute the query. | [optional] +**Meta** | Pointer to [**OriginInspectorHistoricalMeta**](OriginInspectorHistoricalMeta.md) | | [optional] +**Msg** | Pointer to **NullableString** | If the query was not successful, this will provide a string that explains why. | [optional] +**Data** | Pointer to [**[]OriginInspectorEntry**](OriginInspectorEntry.md) | A list of timeseries. Each individual timeseries represents a unique combination of dimensions, such as origin host, region or POP. | [optional] + +## Methods + +### NewHistoricalOriginsResponse + +`func NewHistoricalOriginsResponse() *HistoricalOriginsResponse` + +NewHistoricalOriginsResponse instantiates a new HistoricalOriginsResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewHistoricalOriginsResponseWithDefaults + +`func NewHistoricalOriginsResponseWithDefaults() *HistoricalOriginsResponse` + +NewHistoricalOriginsResponseWithDefaults instantiates a new HistoricalOriginsResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetStatus + +`func (o *HistoricalOriginsResponse) GetStatus() string` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *HistoricalOriginsResponse) 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 *HistoricalOriginsResponse) SetStatus(v string)` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *HistoricalOriginsResponse) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + +### GetMeta + +`func (o *HistoricalOriginsResponse) GetMeta() OriginInspectorHistoricalMeta` + +GetMeta returns the Meta field if non-nil, zero value otherwise. + +### GetMetaOk + +`func (o *HistoricalOriginsResponse) GetMetaOk() (*OriginInspectorHistoricalMeta, bool)` + +GetMetaOk returns a tuple with the Meta field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMeta + +`func (o *HistoricalOriginsResponse) SetMeta(v OriginInspectorHistoricalMeta)` + +SetMeta sets Meta field to given value. + +### HasMeta + +`func (o *HistoricalOriginsResponse) HasMeta() bool` + +HasMeta returns a boolean if a field has been set. + +### GetMsg + +`func (o *HistoricalOriginsResponse) GetMsg() string` + +GetMsg returns the Msg field if non-nil, zero value otherwise. + +### GetMsgOk + +`func (o *HistoricalOriginsResponse) GetMsgOk() (*string, bool)` + +GetMsgOk returns a tuple with the Msg field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMsg + +`func (o *HistoricalOriginsResponse) SetMsg(v string)` + +SetMsg sets Msg field to given value. + +### HasMsg + +`func (o *HistoricalOriginsResponse) HasMsg() bool` + +HasMsg returns a boolean if a field has been set. + +### SetMsgNil + +`func (o *HistoricalOriginsResponse) SetMsgNil(b bool)` + + SetMsgNil sets the value for Msg to be an explicit nil + +### UnsetMsg +`func (o *HistoricalOriginsResponse) UnsetMsg()` + +UnsetMsg ensures that no value is present for Msg, not even an explicit nil +### GetData + +`func (o *HistoricalOriginsResponse) GetData() []OriginInspectorEntry` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *HistoricalOriginsResponse) GetDataOk() (*[]OriginInspectorEntry, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *HistoricalOriginsResponse) SetData(v []OriginInspectorEntry)` + +SetData sets Data field to given value. + +### HasData + +`func (o *HistoricalOriginsResponse) HasData() bool` + +HasData returns a boolean if a field has been set. + + +[Back to API list](../README.md#documentation-for-api-endpoints) | [Back to README](../README.md) diff --git a/docs/HistoricalOriginsResponseAllOf.md b/docs/HistoricalOriginsResponseAllOf.md new file mode 100644 index 00000000..c4bd70b7 --- /dev/null +++ b/docs/HistoricalOriginsResponseAllOf.md @@ -0,0 +1,54 @@ +# HistoricalOriginsResponseAllOf + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | Pointer to [**[]OriginInspectorEntry**](OriginInspectorEntry.md) | A list of timeseries. Each individual timeseries represents a unique combination of dimensions, such as origin host, region or POP. | [optional] + +## Methods + +### NewHistoricalOriginsResponseAllOf + +`func NewHistoricalOriginsResponseAllOf() *HistoricalOriginsResponseAllOf` + +NewHistoricalOriginsResponseAllOf instantiates a new HistoricalOriginsResponseAllOf object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewHistoricalOriginsResponseAllOfWithDefaults + +`func NewHistoricalOriginsResponseAllOfWithDefaults() *HistoricalOriginsResponseAllOf` + +NewHistoricalOriginsResponseAllOfWithDefaults instantiates a new HistoricalOriginsResponseAllOf object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetData + +`func (o *HistoricalOriginsResponseAllOf) GetData() []OriginInspectorEntry` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *HistoricalOriginsResponseAllOf) GetDataOk() (*[]OriginInspectorEntry, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *HistoricalOriginsResponseAllOf) SetData(v []OriginInspectorEntry)` + +SetData sets Data field to given value. + +### HasData + +`func (o *HistoricalOriginsResponseAllOf) HasData() bool` + +HasData returns a boolean if a field has been set. + + +[Back to API list](../README.md#documentation-for-api-endpoints) | [Back to README](../README.md) diff --git a/docs/IamRolesAPI.md b/docs/IamRolesAPI.md index ae506a47..1db1ed8a 100644 --- a/docs/IamRolesAPI.md +++ b/docs/IamRolesAPI.md @@ -4,13 +4,148 @@ All URIs are relative to *https://api.fastly.com* Method | HTTP request | Description ------------- | ------------- | ------------- +[**AddRolePermissions**](IamRolesAPI.md#AddRolePermissions) | **POST** `/roles/{role_id}/permissions` | Add permissions to a role +[**CreateARole**](IamRolesAPI.md#CreateARole) | **POST** `/roles` | Create a role [**DeleteARole**](IamRolesAPI.md#DeleteARole) | **DELETE** `/roles/{role_id}` | Delete a role [**GetARole**](IamRolesAPI.md#GetARole) | **GET** `/roles/{role_id}` | Get a role [**ListRolePermissions**](IamRolesAPI.md#ListRolePermissions) | **GET** `/roles/{role_id}/permissions` | List permissions in a role [**ListRoles**](IamRolesAPI.md#ListRoles) | **GET** `/roles` | List roles +[**RemoveRolePermissions**](IamRolesAPI.md#RemoveRolePermissions) | **DELETE** `/roles/{role_id}/permissions` | Remove permissions from a role +[**UpdateARole**](IamRolesAPI.md#UpdateARole) | **PATCH** `/roles/{role_id}` | Update a role +## AddRolePermissions + +Add permissions to a role + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + "github.com/fastly/fastly-go/fastly" +) + +func main() { + roleID := "roleId_example" // string | Alphanumeric string identifying the role. + requestBody := map[string]map[string]any{"key": map[string]any(123)} // map[string]map[string]any | (optional) + + cfg := fastly.NewConfiguration() + apiClient := fastly.NewAPIClient(cfg) + ctx := fastly.NewAPIKeyContextFromEnv("FASTLY_API_TOKEN") + resp, r, err := apiClient.IamRolesAPI.AddRolePermissions(ctx, roleID).RequestBody(requestBody).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IamRolesAPI.AddRolePermissions`: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AddRolePermissions`: map[string]any + fmt.Fprintf(os.Stdout, "Response from `IamRolesAPI.AddRolePermissions`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**roleID** | **string** | Alphanumeric string identifying the role. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAddRolePermissionsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **requestBody** | **map[string]map[string]any** | | + +### Return type + +**map[string]any** + +### Authorization + +[API Token](https://developer.fastly.com/reference/api/#authentication) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[Back to top](#) | [Back to API list](../README.md#documentation-for-api-endpoints) | [Back to README](../README.md) + + +## CreateARole + +Create a role + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + "github.com/fastly/fastly-go/fastly" +) + +func main() { + requestBody := map[string]map[string]any{"key": map[string]any(123)} // map[string]map[string]any | (optional) + + cfg := fastly.NewConfiguration() + apiClient := fastly.NewAPIClient(cfg) + ctx := fastly.NewAPIKeyContextFromEnv("FASTLY_API_TOKEN") + resp, r, err := apiClient.IamRolesAPI.CreateARole(ctx).RequestBody(requestBody).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IamRolesAPI.CreateARole`: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateARole`: map[string]any + fmt.Fprintf(os.Stdout, "Response from `IamRolesAPI.CreateARole`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiCreateARoleRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **requestBody** | **map[string]map[string]any** | | + +### Return type + +**map[string]any** + +### Authorization + +[API Token](https://developer.fastly.com/reference/api/#authentication) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[Back to top](#) | [Back to API list](../README.md#documentation-for-api-endpoints) | [Back to README](../README.md) + + ## DeleteARole Delete a role @@ -272,3 +407,137 @@ Name | Type | Description | Notes - **Accept**: application/json [Back to top](#) | [Back to API list](../README.md#documentation-for-api-endpoints) | [Back to README](../README.md) + + +## RemoveRolePermissions + +Remove permissions from a role + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + "github.com/fastly/fastly-go/fastly" +) + +func main() { + roleID := "roleId_example" // string | Alphanumeric string identifying the role. + requestBody := map[string]map[string]any{"key": map[string]any(123)} // map[string]map[string]any | (optional) + + cfg := fastly.NewConfiguration() + apiClient := fastly.NewAPIClient(cfg) + ctx := fastly.NewAPIKeyContextFromEnv("FASTLY_API_TOKEN") + resp, r, err := apiClient.IamRolesAPI.RemoveRolePermissions(ctx, roleID).RequestBody(requestBody).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IamRolesAPI.RemoveRolePermissions`: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**roleID** | **string** | Alphanumeric string identifying the role. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiRemoveRolePermissionsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **requestBody** | **map[string]map[string]any** | | + +### Return type + + (empty response body) + +### Authorization + +[API Token](https://developer.fastly.com/reference/api/#authentication) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: Not defined + +[Back to top](#) | [Back to API list](../README.md#documentation-for-api-endpoints) | [Back to README](../README.md) + + +## UpdateARole + +Update a role + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + "github.com/fastly/fastly-go/fastly" +) + +func main() { + roleID := "roleId_example" // string | Alphanumeric string identifying the role. + requestBody := map[string]map[string]any{"key": map[string]any(123)} // map[string]map[string]any | (optional) + + cfg := fastly.NewConfiguration() + apiClient := fastly.NewAPIClient(cfg) + ctx := fastly.NewAPIKeyContextFromEnv("FASTLY_API_TOKEN") + resp, r, err := apiClient.IamRolesAPI.UpdateARole(ctx, roleID).RequestBody(requestBody).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IamRolesAPI.UpdateARole`: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `UpdateARole`: map[string]any + fmt.Fprintf(os.Stdout, "Response from `IamRolesAPI.UpdateARole`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**roleID** | **string** | Alphanumeric string identifying the role. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiUpdateARoleRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **requestBody** | **map[string]map[string]any** | | + +### Return type + +**map[string]any** + +### Authorization + +[API Token](https://developer.fastly.com/reference/api/#authentication) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[Back to top](#) | [Back to API list](../README.md#documentation-for-api-endpoints) | [Back to README](../README.md) diff --git a/docs/IamServiceGroupsAPI.md b/docs/IamServiceGroupsAPI.md index d19b4fea..011697ae 100644 --- a/docs/IamServiceGroupsAPI.md +++ b/docs/IamServiceGroupsAPI.md @@ -4,13 +4,148 @@ All URIs are relative to *https://api.fastly.com* Method | HTTP request | Description ------------- | ------------- | ------------- +[**AddServiceGroupServices**](IamServiceGroupsAPI.md#AddServiceGroupServices) | **POST** `/service-groups/{service_group_id}/services` | Add services in a service group +[**CreateAServiceGroup**](IamServiceGroupsAPI.md#CreateAServiceGroup) | **POST** `/service-groups` | Create a service group [**DeleteAServiceGroup**](IamServiceGroupsAPI.md#DeleteAServiceGroup) | **DELETE** `/service-groups/{service_group_id}` | Delete a service group [**GetAServiceGroup**](IamServiceGroupsAPI.md#GetAServiceGroup) | **GET** `/service-groups/{service_group_id}` | Get a service group [**ListServiceGroupServices**](IamServiceGroupsAPI.md#ListServiceGroupServices) | **GET** `/service-groups/{service_group_id}/services` | List services to a service group [**ListServiceGroups**](IamServiceGroupsAPI.md#ListServiceGroups) | **GET** `/service-groups` | List service groups +[**RemoveServiceGroupServices**](IamServiceGroupsAPI.md#RemoveServiceGroupServices) | **DELETE** `/service-groups/{service_group_id}/services` | Remove services from a service group +[**UpdateAServiceGroup**](IamServiceGroupsAPI.md#UpdateAServiceGroup) | **PATCH** `/service-groups/{service_group_id}` | Update a service group +## AddServiceGroupServices + +Add services in a service group + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + "github.com/fastly/fastly-go/fastly" +) + +func main() { + serviceGroupID := "serviceGroupId_example" // string | Alphanumeric string identifying the service group. + requestBody := map[string]map[string]any{"key": map[string]any(123)} // map[string]map[string]any | (optional) + + cfg := fastly.NewConfiguration() + apiClient := fastly.NewAPIClient(cfg) + ctx := fastly.NewAPIKeyContextFromEnv("FASTLY_API_TOKEN") + resp, r, err := apiClient.IamServiceGroupsAPI.AddServiceGroupServices(ctx, serviceGroupID).RequestBody(requestBody).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IamServiceGroupsAPI.AddServiceGroupServices`: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AddServiceGroupServices`: map[string]any + fmt.Fprintf(os.Stdout, "Response from `IamServiceGroupsAPI.AddServiceGroupServices`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceGroupID** | **string** | Alphanumeric string identifying the service group. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAddServiceGroupServicesRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **requestBody** | **map[string]map[string]any** | | + +### Return type + +**map[string]any** + +### Authorization + +[API Token](https://developer.fastly.com/reference/api/#authentication) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[Back to top](#) | [Back to API list](../README.md#documentation-for-api-endpoints) | [Back to README](../README.md) + + +## CreateAServiceGroup + +Create a service group + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + "github.com/fastly/fastly-go/fastly" +) + +func main() { + requestBody := map[string]map[string]any{"key": map[string]any(123)} // map[string]map[string]any | (optional) + + cfg := fastly.NewConfiguration() + apiClient := fastly.NewAPIClient(cfg) + ctx := fastly.NewAPIKeyContextFromEnv("FASTLY_API_TOKEN") + resp, r, err := apiClient.IamServiceGroupsAPI.CreateAServiceGroup(ctx).RequestBody(requestBody).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IamServiceGroupsAPI.CreateAServiceGroup`: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateAServiceGroup`: map[string]any + fmt.Fprintf(os.Stdout, "Response from `IamServiceGroupsAPI.CreateAServiceGroup`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiCreateAServiceGroupRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **requestBody** | **map[string]map[string]any** | | + +### Return type + +**map[string]any** + +### Authorization + +[API Token](https://developer.fastly.com/reference/api/#authentication) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[Back to top](#) | [Back to API list](../README.md#documentation-for-api-endpoints) | [Back to README](../README.md) + + ## DeleteAServiceGroup Delete a service group @@ -274,3 +409,137 @@ Name | Type | Description | Notes - **Accept**: application/json [Back to top](#) | [Back to API list](../README.md#documentation-for-api-endpoints) | [Back to README](../README.md) + + +## RemoveServiceGroupServices + +Remove services from a service group + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + "github.com/fastly/fastly-go/fastly" +) + +func main() { + serviceGroupID := "serviceGroupId_example" // string | Alphanumeric string identifying the service group. + requestBody := map[string]map[string]any{"key": map[string]any(123)} // map[string]map[string]any | (optional) + + cfg := fastly.NewConfiguration() + apiClient := fastly.NewAPIClient(cfg) + ctx := fastly.NewAPIKeyContextFromEnv("FASTLY_API_TOKEN") + resp, r, err := apiClient.IamServiceGroupsAPI.RemoveServiceGroupServices(ctx, serviceGroupID).RequestBody(requestBody).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IamServiceGroupsAPI.RemoveServiceGroupServices`: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceGroupID** | **string** | Alphanumeric string identifying the service group. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiRemoveServiceGroupServicesRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **requestBody** | **map[string]map[string]any** | | + +### Return type + + (empty response body) + +### Authorization + +[API Token](https://developer.fastly.com/reference/api/#authentication) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: Not defined + +[Back to top](#) | [Back to API list](../README.md#documentation-for-api-endpoints) | [Back to README](../README.md) + + +## UpdateAServiceGroup + +Update a service group + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + "github.com/fastly/fastly-go/fastly" +) + +func main() { + serviceGroupID := "serviceGroupId_example" // string | Alphanumeric string identifying the service group. + requestBody := map[string]map[string]any{"key": map[string]any(123)} // map[string]map[string]any | (optional) + + cfg := fastly.NewConfiguration() + apiClient := fastly.NewAPIClient(cfg) + ctx := fastly.NewAPIKeyContextFromEnv("FASTLY_API_TOKEN") + resp, r, err := apiClient.IamServiceGroupsAPI.UpdateAServiceGroup(ctx, serviceGroupID).RequestBody(requestBody).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IamServiceGroupsAPI.UpdateAServiceGroup`: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `UpdateAServiceGroup`: map[string]any + fmt.Fprintf(os.Stdout, "Response from `IamServiceGroupsAPI.UpdateAServiceGroup`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceGroupID** | **string** | Alphanumeric string identifying the service group. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiUpdateAServiceGroupRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **requestBody** | **map[string]map[string]any** | | + +### Return type + +**map[string]any** + +### Authorization + +[API Token](https://developer.fastly.com/reference/api/#authentication) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[Back to top](#) | [Back to API list](../README.md#documentation-for-api-endpoints) | [Back to README](../README.md) diff --git a/docs/IamUserGroupsAPI.md b/docs/IamUserGroupsAPI.md index 945b3e1d..29737e66 100644 --- a/docs/IamUserGroupsAPI.md +++ b/docs/IamUserGroupsAPI.md @@ -4,15 +4,290 @@ All URIs are relative to *https://api.fastly.com* Method | HTTP request | Description ------------- | ------------- | ------------- +[**AddUserGroupMembers**](IamUserGroupsAPI.md#AddUserGroupMembers) | **POST** `/user-groups/{user_group_id}/members` | Add members to a user group +[**AddUserGroupRoles**](IamUserGroupsAPI.md#AddUserGroupRoles) | **POST** `/user-groups/{user_group_id}/roles` | Add roles to a user group +[**AddUserGroupServiceGroups**](IamUserGroupsAPI.md#AddUserGroupServiceGroups) | **POST** `/user-groups/{user_group_id}/service-groups` | Add service groups to a user group +[**CreateAUserGroup**](IamUserGroupsAPI.md#CreateAUserGroup) | **POST** `/user-groups` | Create a user group [**DeleteAUserGroup**](IamUserGroupsAPI.md#DeleteAUserGroup) | **DELETE** `/user-groups/{user_group_id}` | Delete a user group [**GetAUserGroup**](IamUserGroupsAPI.md#GetAUserGroup) | **GET** `/user-groups/{user_group_id}` | Get a user group [**ListUserGroupMembers**](IamUserGroupsAPI.md#ListUserGroupMembers) | **GET** `/user-groups/{user_group_id}/members` | List members of a user group [**ListUserGroupRoles**](IamUserGroupsAPI.md#ListUserGroupRoles) | **GET** `/user-groups/{user_group_id}/roles` | List roles in a user group [**ListUserGroupServiceGroups**](IamUserGroupsAPI.md#ListUserGroupServiceGroups) | **GET** `/user-groups/{user_group_id}/service-groups` | List service groups in a user group [**ListUserGroups**](IamUserGroupsAPI.md#ListUserGroups) | **GET** `/user-groups` | List user groups +[**RemoveUserGroupMembers**](IamUserGroupsAPI.md#RemoveUserGroupMembers) | **DELETE** `/user-groups/{user_group_id}/members` | Remove members of a user group +[**RemoveUserGroupRoles**](IamUserGroupsAPI.md#RemoveUserGroupRoles) | **DELETE** `/user-groups/{user_group_id}/roles` | Remove roles from a user group +[**RemoveUserGroupServiceGroups**](IamUserGroupsAPI.md#RemoveUserGroupServiceGroups) | **DELETE** `/user-groups/{user_group_id}/service-groups` | Remove service groups from a user group +[**UpdateAUserGroup**](IamUserGroupsAPI.md#UpdateAUserGroup) | **PATCH** `/user-groups/{user_group_id}` | Update a user group +## AddUserGroupMembers + +Add members to a user group + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + "github.com/fastly/fastly-go/fastly" +) + +func main() { + userGroupID := "userGroupId_example" // string | Alphanumeric string identifying the user group. + requestBody := map[string]map[string]any{"key": map[string]any(123)} // map[string]map[string]any | (optional) + + cfg := fastly.NewConfiguration() + apiClient := fastly.NewAPIClient(cfg) + ctx := fastly.NewAPIKeyContextFromEnv("FASTLY_API_TOKEN") + resp, r, err := apiClient.IamUserGroupsAPI.AddUserGroupMembers(ctx, userGroupID).RequestBody(requestBody).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IamUserGroupsAPI.AddUserGroupMembers`: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AddUserGroupMembers`: map[string]any + fmt.Fprintf(os.Stdout, "Response from `IamUserGroupsAPI.AddUserGroupMembers`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**userGroupID** | **string** | Alphanumeric string identifying the user group. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAddUserGroupMembersRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **requestBody** | **map[string]map[string]any** | | + +### Return type + +**map[string]any** + +### Authorization + +[API Token](https://developer.fastly.com/reference/api/#authentication) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[Back to top](#) | [Back to API list](../README.md#documentation-for-api-endpoints) | [Back to README](../README.md) + + +## AddUserGroupRoles + +Add roles to a user group + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + "github.com/fastly/fastly-go/fastly" +) + +func main() { + userGroupID := "userGroupId_example" // string | Alphanumeric string identifying the user group. + requestBody := map[string]map[string]any{"key": map[string]any(123)} // map[string]map[string]any | (optional) + + cfg := fastly.NewConfiguration() + apiClient := fastly.NewAPIClient(cfg) + ctx := fastly.NewAPIKeyContextFromEnv("FASTLY_API_TOKEN") + resp, r, err := apiClient.IamUserGroupsAPI.AddUserGroupRoles(ctx, userGroupID).RequestBody(requestBody).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IamUserGroupsAPI.AddUserGroupRoles`: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AddUserGroupRoles`: map[string]any + fmt.Fprintf(os.Stdout, "Response from `IamUserGroupsAPI.AddUserGroupRoles`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**userGroupID** | **string** | Alphanumeric string identifying the user group. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAddUserGroupRolesRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **requestBody** | **map[string]map[string]any** | | + +### Return type + +**map[string]any** + +### Authorization + +[API Token](https://developer.fastly.com/reference/api/#authentication) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[Back to top](#) | [Back to API list](../README.md#documentation-for-api-endpoints) | [Back to README](../README.md) + + +## AddUserGroupServiceGroups + +Add service groups to a user group + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + "github.com/fastly/fastly-go/fastly" +) + +func main() { + userGroupID := "userGroupId_example" // string | Alphanumeric string identifying the user group. + requestBody := map[string]map[string]any{"key": map[string]any(123)} // map[string]map[string]any | (optional) + + cfg := fastly.NewConfiguration() + apiClient := fastly.NewAPIClient(cfg) + ctx := fastly.NewAPIKeyContextFromEnv("FASTLY_API_TOKEN") + resp, r, err := apiClient.IamUserGroupsAPI.AddUserGroupServiceGroups(ctx, userGroupID).RequestBody(requestBody).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IamUserGroupsAPI.AddUserGroupServiceGroups`: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AddUserGroupServiceGroups`: map[string]any + fmt.Fprintf(os.Stdout, "Response from `IamUserGroupsAPI.AddUserGroupServiceGroups`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**userGroupID** | **string** | Alphanumeric string identifying the user group. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAddUserGroupServiceGroupsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **requestBody** | **map[string]map[string]any** | | + +### Return type + +**map[string]any** + +### Authorization + +[API Token](https://developer.fastly.com/reference/api/#authentication) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[Back to top](#) | [Back to API list](../README.md#documentation-for-api-endpoints) | [Back to README](../README.md) + + +## CreateAUserGroup + +Create a user group + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + "github.com/fastly/fastly-go/fastly" +) + +func main() { + requestBody := map[string]map[string]any{"key": map[string]any(123)} // map[string]map[string]any | (optional) + + cfg := fastly.NewConfiguration() + apiClient := fastly.NewAPIClient(cfg) + ctx := fastly.NewAPIKeyContextFromEnv("FASTLY_API_TOKEN") + resp, r, err := apiClient.IamUserGroupsAPI.CreateAUserGroup(ctx).RequestBody(requestBody).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IamUserGroupsAPI.CreateAUserGroup`: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateAUserGroup`: map[string]any + fmt.Fprintf(os.Stdout, "Response from `IamUserGroupsAPI.CreateAUserGroup`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiCreateAUserGroupRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **requestBody** | **map[string]map[string]any** | | + +### Return type + +**map[string]any** + +### Authorization + +[API Token](https://developer.fastly.com/reference/api/#authentication) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[Back to top](#) | [Back to API list](../README.md#documentation-for-api-endpoints) | [Back to README](../README.md) + + ## DeleteAUserGroup Delete a user group @@ -414,3 +689,269 @@ Name | Type | Description | Notes - **Accept**: application/json [Back to top](#) | [Back to API list](../README.md#documentation-for-api-endpoints) | [Back to README](../README.md) + + +## RemoveUserGroupMembers + +Remove members of a user group + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + "github.com/fastly/fastly-go/fastly" +) + +func main() { + userGroupID := "userGroupId_example" // string | Alphanumeric string identifying the user group. + requestBody := map[string]map[string]any{"key": map[string]any(123)} // map[string]map[string]any | (optional) + + cfg := fastly.NewConfiguration() + apiClient := fastly.NewAPIClient(cfg) + ctx := fastly.NewAPIKeyContextFromEnv("FASTLY_API_TOKEN") + resp, r, err := apiClient.IamUserGroupsAPI.RemoveUserGroupMembers(ctx, userGroupID).RequestBody(requestBody).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IamUserGroupsAPI.RemoveUserGroupMembers`: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**userGroupID** | **string** | Alphanumeric string identifying the user group. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiRemoveUserGroupMembersRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **requestBody** | **map[string]map[string]any** | | + +### Return type + + (empty response body) + +### Authorization + +[API Token](https://developer.fastly.com/reference/api/#authentication) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: Not defined + +[Back to top](#) | [Back to API list](../README.md#documentation-for-api-endpoints) | [Back to README](../README.md) + + +## RemoveUserGroupRoles + +Remove roles from a user group + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + "github.com/fastly/fastly-go/fastly" +) + +func main() { + userGroupID := "userGroupId_example" // string | Alphanumeric string identifying the user group. + requestBody := map[string]map[string]any{"key": map[string]any(123)} // map[string]map[string]any | (optional) + + cfg := fastly.NewConfiguration() + apiClient := fastly.NewAPIClient(cfg) + ctx := fastly.NewAPIKeyContextFromEnv("FASTLY_API_TOKEN") + resp, r, err := apiClient.IamUserGroupsAPI.RemoveUserGroupRoles(ctx, userGroupID).RequestBody(requestBody).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IamUserGroupsAPI.RemoveUserGroupRoles`: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**userGroupID** | **string** | Alphanumeric string identifying the user group. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiRemoveUserGroupRolesRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **requestBody** | **map[string]map[string]any** | | + +### Return type + + (empty response body) + +### Authorization + +[API Token](https://developer.fastly.com/reference/api/#authentication) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: Not defined + +[Back to top](#) | [Back to API list](../README.md#documentation-for-api-endpoints) | [Back to README](../README.md) + + +## RemoveUserGroupServiceGroups + +Remove service groups from a user group + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + "github.com/fastly/fastly-go/fastly" +) + +func main() { + userGroupID := "userGroupId_example" // string | Alphanumeric string identifying the user group. + requestBody := map[string]map[string]any{"key": map[string]any(123)} // map[string]map[string]any | (optional) + + cfg := fastly.NewConfiguration() + apiClient := fastly.NewAPIClient(cfg) + ctx := fastly.NewAPIKeyContextFromEnv("FASTLY_API_TOKEN") + resp, r, err := apiClient.IamUserGroupsAPI.RemoveUserGroupServiceGroups(ctx, userGroupID).RequestBody(requestBody).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IamUserGroupsAPI.RemoveUserGroupServiceGroups`: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**userGroupID** | **string** | Alphanumeric string identifying the user group. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiRemoveUserGroupServiceGroupsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **requestBody** | **map[string]map[string]any** | | + +### Return type + + (empty response body) + +### Authorization + +[API Token](https://developer.fastly.com/reference/api/#authentication) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: Not defined + +[Back to top](#) | [Back to API list](../README.md#documentation-for-api-endpoints) | [Back to README](../README.md) + + +## UpdateAUserGroup + +Update a user group + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + "github.com/fastly/fastly-go/fastly" +) + +func main() { + userGroupID := "userGroupId_example" // string | Alphanumeric string identifying the user group. + requestBody := map[string]map[string]any{"key": map[string]any(123)} // map[string]map[string]any | (optional) + + cfg := fastly.NewConfiguration() + apiClient := fastly.NewAPIClient(cfg) + ctx := fastly.NewAPIKeyContextFromEnv("FASTLY_API_TOKEN") + resp, r, err := apiClient.IamUserGroupsAPI.UpdateAUserGroup(ctx, userGroupID).RequestBody(requestBody).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IamUserGroupsAPI.UpdateAUserGroup`: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `UpdateAUserGroup`: map[string]any + fmt.Fprintf(os.Stdout, "Response from `IamUserGroupsAPI.UpdateAUserGroup`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**userGroupID** | **string** | Alphanumeric string identifying the user group. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiUpdateAUserGroupRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **requestBody** | **map[string]map[string]any** | | + +### Return type + +**map[string]any** + +### Authorization + +[API Token](https://developer.fastly.com/reference/api/#authentication) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[Back to top](#) | [Back to API list](../README.md#documentation-for-api-endpoints) | [Back to README](../README.md) diff --git a/docs/InlineResponse2005.md b/docs/InlineResponse2005.md new file mode 100644 index 00000000..f6f68ddc --- /dev/null +++ b/docs/InlineResponse2005.md @@ -0,0 +1,80 @@ +# InlineResponse2005 + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | Pointer to [**[]SecretStoreResponse**](SecretStoreResponse.md) | | [optional] +**Meta** | Pointer to [**PaginationCursorMeta**](PaginationCursorMeta.md) | | [optional] + +## Methods + +### NewInlineResponse2005 + +`func NewInlineResponse2005() *InlineResponse2005` + +NewInlineResponse2005 instantiates a new InlineResponse2005 object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewInlineResponse2005WithDefaults + +`func NewInlineResponse2005WithDefaults() *InlineResponse2005` + +NewInlineResponse2005WithDefaults instantiates a new InlineResponse2005 object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetData + +`func (o *InlineResponse2005) GetData() []SecretStoreResponse` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *InlineResponse2005) GetDataOk() (*[]SecretStoreResponse, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *InlineResponse2005) SetData(v []SecretStoreResponse)` + +SetData sets Data field to given value. + +### HasData + +`func (o *InlineResponse2005) HasData() bool` + +HasData returns a boolean if a field has been set. + +### GetMeta + +`func (o *InlineResponse2005) GetMeta() PaginationCursorMeta` + +GetMeta returns the Meta field if non-nil, zero value otherwise. + +### GetMetaOk + +`func (o *InlineResponse2005) GetMetaOk() (*PaginationCursorMeta, bool)` + +GetMetaOk returns a tuple with the Meta field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMeta + +`func (o *InlineResponse2005) SetMeta(v PaginationCursorMeta)` + +SetMeta sets Meta field to given value. + +### HasMeta + +`func (o *InlineResponse2005) HasMeta() bool` + +HasMeta returns a boolean if a field has been set. + + +[Back to API list](../README.md#documentation-for-api-endpoints) | [Back to README](../README.md) diff --git a/docs/InlineResponse2006.md b/docs/InlineResponse2006.md new file mode 100644 index 00000000..0668ebd3 --- /dev/null +++ b/docs/InlineResponse2006.md @@ -0,0 +1,80 @@ +# InlineResponse2006 + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | Pointer to [**[]SecretResponse**](SecretResponse.md) | | [optional] +**Meta** | Pointer to [**PaginationCursorMeta**](PaginationCursorMeta.md) | | [optional] + +## Methods + +### NewInlineResponse2006 + +`func NewInlineResponse2006() *InlineResponse2006` + +NewInlineResponse2006 instantiates a new InlineResponse2006 object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewInlineResponse2006WithDefaults + +`func NewInlineResponse2006WithDefaults() *InlineResponse2006` + +NewInlineResponse2006WithDefaults instantiates a new InlineResponse2006 object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetData + +`func (o *InlineResponse2006) GetData() []SecretResponse` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *InlineResponse2006) GetDataOk() (*[]SecretResponse, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *InlineResponse2006) SetData(v []SecretResponse)` + +SetData sets Data field to given value. + +### HasData + +`func (o *InlineResponse2006) HasData() bool` + +HasData returns a boolean if a field has been set. + +### GetMeta + +`func (o *InlineResponse2006) GetMeta() PaginationCursorMeta` + +GetMeta returns the Meta field if non-nil, zero value otherwise. + +### GetMetaOk + +`func (o *InlineResponse2006) GetMetaOk() (*PaginationCursorMeta, bool)` + +GetMetaOk returns a tuple with the Meta field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMeta + +`func (o *InlineResponse2006) SetMeta(v PaginationCursorMeta)` + +SetMeta sets Meta field to given value. + +### HasMeta + +`func (o *InlineResponse2006) HasMeta() bool` + +HasMeta returns a boolean if a field has been set. + + +[Back to API list](../README.md#documentation-for-api-endpoints) | [Back to README](../README.md) diff --git a/docs/InlineResponse2007.md b/docs/InlineResponse2007.md new file mode 100644 index 00000000..fa39dd78 --- /dev/null +++ b/docs/InlineResponse2007.md @@ -0,0 +1,54 @@ +# InlineResponse2007 + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | Pointer to [**[]ServiceAuthorizationResponseData**](ServiceAuthorizationResponseData.md) | | [optional] + +## Methods + +### NewInlineResponse2007 + +`func NewInlineResponse2007() *InlineResponse2007` + +NewInlineResponse2007 instantiates a new InlineResponse2007 object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewInlineResponse2007WithDefaults + +`func NewInlineResponse2007WithDefaults() *InlineResponse2007` + +NewInlineResponse2007WithDefaults instantiates a new InlineResponse2007 object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetData + +`func (o *InlineResponse2007) GetData() []ServiceAuthorizationResponseData` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *InlineResponse2007) GetDataOk() (*[]ServiceAuthorizationResponseData, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *InlineResponse2007) SetData(v []ServiceAuthorizationResponseData)` + +SetData sets Data field to given value. + +### HasData + +`func (o *InlineResponse2007) HasData() bool` + +HasData returns a boolean if a field has been set. + + +[Back to API list](../README.md#documentation-for-api-endpoints) | [Back to README](../README.md) diff --git a/docs/InlineResponse400.md b/docs/InlineResponse400.md new file mode 100644 index 00000000..f34c39a8 --- /dev/null +++ b/docs/InlineResponse400.md @@ -0,0 +1,54 @@ +# InlineResponse400 + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Code** | Pointer to **string** | | [optional] + +## Methods + +### NewInlineResponse400 + +`func NewInlineResponse400() *InlineResponse400` + +NewInlineResponse400 instantiates a new InlineResponse400 object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewInlineResponse400WithDefaults + +`func NewInlineResponse400WithDefaults() *InlineResponse400` + +NewInlineResponse400WithDefaults instantiates a new InlineResponse400 object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetCode + +`func (o *InlineResponse400) GetCode() string` + +GetCode returns the Code field if non-nil, zero value otherwise. + +### GetCodeOk + +`func (o *InlineResponse400) 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 *InlineResponse400) SetCode(v string)` + +SetCode sets Code field to given value. + +### HasCode + +`func (o *InlineResponse400) HasCode() bool` + +HasCode returns a boolean if a field has been set. + + +[Back to API list](../README.md#documentation-for-api-endpoints) | [Back to README](../README.md) diff --git a/docs/LegacyWafConfigurationSet.md b/docs/LegacyWafConfigurationSet.md new file mode 100644 index 00000000..bace5c85 --- /dev/null +++ b/docs/LegacyWafConfigurationSet.md @@ -0,0 +1,80 @@ +# LegacyWafConfigurationSet + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Active** | Pointer to **bool** | The active configuration set is the default configuration set when creating a new WAF. When Fastly adds configuration sets, the new versions become the default (active). | [optional] +**Name** | Pointer to **string** | The name of the configuration set. | [optional] + +## Methods + +### NewLegacyWafConfigurationSet + +`func NewLegacyWafConfigurationSet() *LegacyWafConfigurationSet` + +NewLegacyWafConfigurationSet instantiates a new LegacyWafConfigurationSet object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewLegacyWafConfigurationSetWithDefaults + +`func NewLegacyWafConfigurationSetWithDefaults() *LegacyWafConfigurationSet` + +NewLegacyWafConfigurationSetWithDefaults instantiates a new LegacyWafConfigurationSet object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetActive + +`func (o *LegacyWafConfigurationSet) GetActive() bool` + +GetActive returns the Active field if non-nil, zero value otherwise. + +### GetActiveOk + +`func (o *LegacyWafConfigurationSet) GetActiveOk() (*bool, bool)` + +GetActiveOk returns a tuple with the Active field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetActive + +`func (o *LegacyWafConfigurationSet) SetActive(v bool)` + +SetActive sets Active field to given value. + +### HasActive + +`func (o *LegacyWafConfigurationSet) HasActive() bool` + +HasActive returns a boolean if a field has been set. + +### GetName + +`func (o *LegacyWafConfigurationSet) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *LegacyWafConfigurationSet) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *LegacyWafConfigurationSet) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *LegacyWafConfigurationSet) HasName() bool` + +HasName returns a boolean if a field has been set. + + +[Back to API list](../README.md#documentation-for-api-endpoints) | [Back to README](../README.md) diff --git a/docs/LegacyWafConfigurationSetsAPI.md b/docs/LegacyWafConfigurationSetsAPI.md new file mode 100644 index 00000000..683d6c2c --- /dev/null +++ b/docs/LegacyWafConfigurationSetsAPI.md @@ -0,0 +1,204 @@ +# LegacyWafConfigurationSetsAPI + +All URIs are relative to *https://api.fastly.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**ListWafConfigSets**](LegacyWafConfigurationSetsAPI.md#ListWafConfigSets) | **GET** `/wafs/configuration_sets` | List configuration sets +[**ListWafsConfigSet**](LegacyWafConfigurationSetsAPI.md#ListWafsConfigSet) | **GET** `/wafs/configuration_sets/{configuration_set_id}/relationships/wafs` | List WAFs currently using a configuration set +[**UseWafConfigSet**](LegacyWafConfigurationSetsAPI.md#UseWafConfigSet) | **PATCH** `/wafs/configuration_sets/{configuration_set_id}/relationships/wafs` | Apply a configuration set to a WAF + + + +## ListWafConfigSets + +List configuration sets + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + "github.com/fastly/fastly-go/fastly" +) + +func main() { + + cfg := fastly.NewConfiguration() + apiClient := fastly.NewAPIClient(cfg) + ctx := fastly.NewAPIKeyContextFromEnv("FASTLY_API_TOKEN") + resp, r, err := apiClient.LegacyWafConfigurationSetsAPI.ListWafConfigSets(ctx).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `LegacyWafConfigurationSetsAPI.ListWafConfigSets`: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListWafConfigSets`: map[string]any + fmt.Fprintf(os.Stdout, "Response from `LegacyWafConfigurationSetsAPI.ListWafConfigSets`: %v\n", resp) +} +``` + +### Path Parameters + +This endpoint does not need any parameter. + +### Other Parameters + +Other parameters are passed through a pointer to a apiListWafConfigSetsRequest struct via the builder pattern + + + +### Return type + +**map[string]any** + +### Authorization + +[API Token](https://developer.fastly.com/reference/api/#authentication) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/vnd.api+json + +[Back to top](#) | [Back to API list](../README.md#documentation-for-api-endpoints) | [Back to README](../README.md) + + +## ListWafsConfigSet + +List WAFs currently using a configuration set + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + "github.com/fastly/fastly-go/fastly" +) + +func main() { + configurationSetID := "configurationSetId_example" // string | Alphanumeric string identifying a WAF configuration set. + + cfg := fastly.NewConfiguration() + apiClient := fastly.NewAPIClient(cfg) + ctx := fastly.NewAPIKeyContextFromEnv("FASTLY_API_TOKEN") + resp, r, err := apiClient.LegacyWafConfigurationSetsAPI.ListWafsConfigSet(ctx, configurationSetID).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `LegacyWafConfigurationSetsAPI.ListWafsConfigSet`: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListWafsConfigSet`: map[string]any + fmt.Fprintf(os.Stdout, "Response from `LegacyWafConfigurationSetsAPI.ListWafsConfigSet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**configurationSetID** | **string** | Alphanumeric string identifying a WAF configuration set. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiListWafsConfigSetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + +**map[string]any** + +### Authorization + +[API Token](https://developer.fastly.com/reference/api/#authentication) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/vnd.api+json + +[Back to top](#) | [Back to API list](../README.md#documentation-for-api-endpoints) | [Back to README](../README.md) + + +## UseWafConfigSet + +Apply a configuration set to a WAF + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + "github.com/fastly/fastly-go/fastly" +) + +func main() { + configurationSetID := "configurationSetId_example" // string | Alphanumeric string identifying a WAF configuration set. + requestBody := map[string]map[string]any{"key": map[string]any(123)} // map[string]map[string]any | (optional) + + cfg := fastly.NewConfiguration() + apiClient := fastly.NewAPIClient(cfg) + ctx := fastly.NewAPIKeyContextFromEnv("FASTLY_API_TOKEN") + resp, r, err := apiClient.LegacyWafConfigurationSetsAPI.UseWafConfigSet(ctx, configurationSetID).RequestBody(requestBody).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `LegacyWafConfigurationSetsAPI.UseWafConfigSet`: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `UseWafConfigSet`: map[string]any + fmt.Fprintf(os.Stdout, "Response from `LegacyWafConfigurationSetsAPI.UseWafConfigSet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**configurationSetID** | **string** | Alphanumeric string identifying a WAF configuration set. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiUseWafConfigSetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **requestBody** | **map[string]map[string]any** | | + +### Return type + +**map[string]any** + +### Authorization + +[API Token](https://developer.fastly.com/reference/api/#authentication) + +### HTTP request headers + +- **Content-Type**: application/vnd.api+json +- **Accept**: application/vnd.api+json + +[Back to top](#) | [Back to API list](../README.md#documentation-for-api-endpoints) | [Back to README](../README.md) diff --git a/docs/LegacyWafFirewall.md b/docs/LegacyWafFirewall.md new file mode 100644 index 00000000..f53724f5 --- /dev/null +++ b/docs/LegacyWafFirewall.md @@ -0,0 +1,262 @@ +# LegacyWafFirewall + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**LastPush** | Pointer to **string** | Date and time that VCL was last pushed to cache nodes. | [optional] +**PrefetchCondition** | Pointer to **string** | Name of the corresponding condition object. | [optional] +**Response** | Pointer to **string** | Name of the corresponding response object. | [optional] +**Version** | Pointer to [**ReadOnlyVersion**](ReadOnlyVersion.md) | | [optional] +**ServiceID** | Pointer to [**ReadOnlyServiceID**](ReadOnlyServiceID.md) | | [optional] +**Disabled** | Pointer to **bool** | The status of the firewall. | [optional] [default to false] +**RuleStatusesLogCount** | Pointer to **int32** | The number of rule statuses set to log. | [optional] +**RuleStatusesBlockCount** | Pointer to **int32** | The number of rule statuses set to block. | [optional] +**RuleStatusesDisabledCount** | Pointer to **int32** | The number of rule statuses set to disabled. | [optional] + +## Methods + +### NewLegacyWafFirewall + +`func NewLegacyWafFirewall() *LegacyWafFirewall` + +NewLegacyWafFirewall instantiates a new LegacyWafFirewall object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewLegacyWafFirewallWithDefaults + +`func NewLegacyWafFirewallWithDefaults() *LegacyWafFirewall` + +NewLegacyWafFirewallWithDefaults instantiates a new LegacyWafFirewall object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetLastPush + +`func (o *LegacyWafFirewall) GetLastPush() string` + +GetLastPush returns the LastPush field if non-nil, zero value otherwise. + +### GetLastPushOk + +`func (o *LegacyWafFirewall) GetLastPushOk() (*string, bool)` + +GetLastPushOk returns a tuple with the LastPush field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLastPush + +`func (o *LegacyWafFirewall) SetLastPush(v string)` + +SetLastPush sets LastPush field to given value. + +### HasLastPush + +`func (o *LegacyWafFirewall) HasLastPush() bool` + +HasLastPush returns a boolean if a field has been set. + +### GetPrefetchCondition + +`func (o *LegacyWafFirewall) GetPrefetchCondition() string` + +GetPrefetchCondition returns the PrefetchCondition field if non-nil, zero value otherwise. + +### GetPrefetchConditionOk + +`func (o *LegacyWafFirewall) GetPrefetchConditionOk() (*string, bool)` + +GetPrefetchConditionOk returns a tuple with the PrefetchCondition field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPrefetchCondition + +`func (o *LegacyWafFirewall) SetPrefetchCondition(v string)` + +SetPrefetchCondition sets PrefetchCondition field to given value. + +### HasPrefetchCondition + +`func (o *LegacyWafFirewall) HasPrefetchCondition() bool` + +HasPrefetchCondition returns a boolean if a field has been set. + +### GetResponse + +`func (o *LegacyWafFirewall) GetResponse() string` + +GetResponse returns the Response field if non-nil, zero value otherwise. + +### GetResponseOk + +`func (o *LegacyWafFirewall) GetResponseOk() (*string, bool)` + +GetResponseOk returns a tuple with the Response field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetResponse + +`func (o *LegacyWafFirewall) SetResponse(v string)` + +SetResponse sets Response field to given value. + +### HasResponse + +`func (o *LegacyWafFirewall) HasResponse() bool` + +HasResponse returns a boolean if a field has been set. + +### GetVersion + +`func (o *LegacyWafFirewall) GetVersion() ReadOnlyVersion` + +GetVersion returns the Version field if non-nil, zero value otherwise. + +### GetVersionOk + +`func (o *LegacyWafFirewall) GetVersionOk() (*ReadOnlyVersion, bool)` + +GetVersionOk returns a tuple with the Version field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVersion + +`func (o *LegacyWafFirewall) SetVersion(v ReadOnlyVersion)` + +SetVersion sets Version field to given value. + +### HasVersion + +`func (o *LegacyWafFirewall) HasVersion() bool` + +HasVersion returns a boolean if a field has been set. + +### GetServiceID + +`func (o *LegacyWafFirewall) GetServiceID() ReadOnlyServiceID` + +GetServiceID returns the ServiceID field if non-nil, zero value otherwise. + +### GetServiceIDOk + +`func (o *LegacyWafFirewall) GetServiceIDOk() (*ReadOnlyServiceID, bool)` + +GetServiceIDOk returns a tuple with the ServiceID field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetServiceID + +`func (o *LegacyWafFirewall) SetServiceID(v ReadOnlyServiceID)` + +SetServiceID sets ServiceID field to given value. + +### HasServiceID + +`func (o *LegacyWafFirewall) HasServiceID() bool` + +HasServiceID returns a boolean if a field has been set. + +### GetDisabled + +`func (o *LegacyWafFirewall) GetDisabled() bool` + +GetDisabled returns the Disabled field if non-nil, zero value otherwise. + +### GetDisabledOk + +`func (o *LegacyWafFirewall) GetDisabledOk() (*bool, bool)` + +GetDisabledOk returns a tuple with the Disabled field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisabled + +`func (o *LegacyWafFirewall) SetDisabled(v bool)` + +SetDisabled sets Disabled field to given value. + +### HasDisabled + +`func (o *LegacyWafFirewall) HasDisabled() bool` + +HasDisabled returns a boolean if a field has been set. + +### GetRuleStatusesLogCount + +`func (o *LegacyWafFirewall) GetRuleStatusesLogCount() int32` + +GetRuleStatusesLogCount returns the RuleStatusesLogCount field if non-nil, zero value otherwise. + +### GetRuleStatusesLogCountOk + +`func (o *LegacyWafFirewall) GetRuleStatusesLogCountOk() (*int32, bool)` + +GetRuleStatusesLogCountOk returns a tuple with the RuleStatusesLogCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRuleStatusesLogCount + +`func (o *LegacyWafFirewall) SetRuleStatusesLogCount(v int32)` + +SetRuleStatusesLogCount sets RuleStatusesLogCount field to given value. + +### HasRuleStatusesLogCount + +`func (o *LegacyWafFirewall) HasRuleStatusesLogCount() bool` + +HasRuleStatusesLogCount returns a boolean if a field has been set. + +### GetRuleStatusesBlockCount + +`func (o *LegacyWafFirewall) GetRuleStatusesBlockCount() int32` + +GetRuleStatusesBlockCount returns the RuleStatusesBlockCount field if non-nil, zero value otherwise. + +### GetRuleStatusesBlockCountOk + +`func (o *LegacyWafFirewall) GetRuleStatusesBlockCountOk() (*int32, bool)` + +GetRuleStatusesBlockCountOk returns a tuple with the RuleStatusesBlockCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRuleStatusesBlockCount + +`func (o *LegacyWafFirewall) SetRuleStatusesBlockCount(v int32)` + +SetRuleStatusesBlockCount sets RuleStatusesBlockCount field to given value. + +### HasRuleStatusesBlockCount + +`func (o *LegacyWafFirewall) HasRuleStatusesBlockCount() bool` + +HasRuleStatusesBlockCount returns a boolean if a field has been set. + +### GetRuleStatusesDisabledCount + +`func (o *LegacyWafFirewall) GetRuleStatusesDisabledCount() int32` + +GetRuleStatusesDisabledCount returns the RuleStatusesDisabledCount field if non-nil, zero value otherwise. + +### GetRuleStatusesDisabledCountOk + +`func (o *LegacyWafFirewall) GetRuleStatusesDisabledCountOk() (*int32, bool)` + +GetRuleStatusesDisabledCountOk returns a tuple with the RuleStatusesDisabledCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRuleStatusesDisabledCount + +`func (o *LegacyWafFirewall) SetRuleStatusesDisabledCount(v int32)` + +SetRuleStatusesDisabledCount sets RuleStatusesDisabledCount field to given value. + +### HasRuleStatusesDisabledCount + +`func (o *LegacyWafFirewall) HasRuleStatusesDisabledCount() bool` + +HasRuleStatusesDisabledCount returns a boolean if a field has been set. + + +[Back to API list](../README.md#documentation-for-api-endpoints) | [Back to README](../README.md) diff --git a/docs/LegacyWafFirewallAPI.md b/docs/LegacyWafFirewallAPI.md new file mode 100644 index 00000000..3a4440a3 --- /dev/null +++ b/docs/LegacyWafFirewallAPI.md @@ -0,0 +1,570 @@ +# LegacyWafFirewallAPI + +All URIs are relative to *https://api.fastly.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**CreateLegacyWafFirewallService**](LegacyWafFirewallAPI.md#CreateLegacyWafFirewallService) | **POST** `/service/{service_id}/version/{version_id}/wafs` | Create a firewall +[**DisableLegacyWafFirewall**](LegacyWafFirewallAPI.md#DisableLegacyWafFirewall) | **PATCH** `/wafs/{firewall_id}/disable` | Disable a firewall +[**EnableLegacyWafFirewall**](LegacyWafFirewallAPI.md#EnableLegacyWafFirewall) | **PATCH** `/wafs/{firewall_id}/enable` | Enable a firewall +[**GetLegacyWafFirewall**](LegacyWafFirewallAPI.md#GetLegacyWafFirewall) | **GET** `/wafs/{firewall_id}` | Get a firewall object +[**GetLegacyWafFirewallService**](LegacyWafFirewallAPI.md#GetLegacyWafFirewallService) | **GET** `/service/{service_id}/version/{version_id}/wafs/{firewall_id}` | Get a firewall +[**ListLegacyWafFirewalls**](LegacyWafFirewallAPI.md#ListLegacyWafFirewalls) | **GET** `/wafs` | List active firewalls +[**ListLegacyWafFirewallsService**](LegacyWafFirewallAPI.md#ListLegacyWafFirewallsService) | **GET** `/service/{service_id}/version/{version_id}/wafs` | List firewalls +[**UpdateLegacyWafFirewallService**](LegacyWafFirewallAPI.md#UpdateLegacyWafFirewallService) | **PATCH** `/service/{service_id}/version/{version_id}/wafs/{firewall_id}` | Update a firewall + + + +## CreateLegacyWafFirewallService + +Create a firewall + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + "github.com/fastly/fastly-go/fastly" +) + +func main() { + serviceID := "serviceId_example" // string | Alphanumeric string identifying the service. + versionID := int32(56) // int32 | Integer identifying a service version. + requestBody := map[string]map[string]any{"key": map[string]any(123)} // map[string]map[string]any | (optional) + + cfg := fastly.NewConfiguration() + apiClient := fastly.NewAPIClient(cfg) + ctx := fastly.NewAPIKeyContextFromEnv("FASTLY_API_TOKEN") + resp, r, err := apiClient.LegacyWafFirewallAPI.CreateLegacyWafFirewallService(ctx, serviceID, versionID).RequestBody(requestBody).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `LegacyWafFirewallAPI.CreateLegacyWafFirewallService`: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateLegacyWafFirewallService`: map[string]any + fmt.Fprintf(os.Stdout, "Response from `LegacyWafFirewallAPI.CreateLegacyWafFirewallService`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceID** | **string** | Alphanumeric string identifying the service. | +**versionID** | **int32** | Integer identifying a service version. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiCreateLegacyWafFirewallServiceRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **requestBody** | **map[string]map[string]any** | | + +### Return type + +**map[string]any** + +### Authorization + +[API Token](https://developer.fastly.com/reference/api/#authentication) + +### HTTP request headers + +- **Content-Type**: application/vnd.api+json +- **Accept**: application/vnd.api+json + +[Back to top](#) | [Back to API list](../README.md#documentation-for-api-endpoints) | [Back to README](../README.md) + + +## DisableLegacyWafFirewall + +Disable a firewall + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + "github.com/fastly/fastly-go/fastly" +) + +func main() { + firewallID := "firewallId_example" // string | Alphanumeric string identifying a Firewall. + requestBody := map[string]map[string]any{"key": map[string]any(123)} // map[string]map[string]any | (optional) + + cfg := fastly.NewConfiguration() + apiClient := fastly.NewAPIClient(cfg) + ctx := fastly.NewAPIKeyContextFromEnv("FASTLY_API_TOKEN") + resp, r, err := apiClient.LegacyWafFirewallAPI.DisableLegacyWafFirewall(ctx, firewallID).RequestBody(requestBody).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `LegacyWafFirewallAPI.DisableLegacyWafFirewall`: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `DisableLegacyWafFirewall`: map[string]any + fmt.Fprintf(os.Stdout, "Response from `LegacyWafFirewallAPI.DisableLegacyWafFirewall`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**firewallID** | **string** | Alphanumeric string identifying a Firewall. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiDisableLegacyWafFirewallRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **requestBody** | **map[string]map[string]any** | | + +### Return type + +**map[string]any** + +### Authorization + +[API Token](https://developer.fastly.com/reference/api/#authentication) + +### HTTP request headers + +- **Content-Type**: application/vnd.api+json +- **Accept**: application/vnd.api+json + +[Back to top](#) | [Back to API list](../README.md#documentation-for-api-endpoints) | [Back to README](../README.md) + + +## EnableLegacyWafFirewall + +Enable a firewall + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + "github.com/fastly/fastly-go/fastly" +) + +func main() { + firewallID := "firewallId_example" // string | Alphanumeric string identifying a Firewall. + requestBody := map[string]map[string]any{"key": map[string]any(123)} // map[string]map[string]any | (optional) + + cfg := fastly.NewConfiguration() + apiClient := fastly.NewAPIClient(cfg) + ctx := fastly.NewAPIKeyContextFromEnv("FASTLY_API_TOKEN") + resp, r, err := apiClient.LegacyWafFirewallAPI.EnableLegacyWafFirewall(ctx, firewallID).RequestBody(requestBody).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `LegacyWafFirewallAPI.EnableLegacyWafFirewall`: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `EnableLegacyWafFirewall`: map[string]any + fmt.Fprintf(os.Stdout, "Response from `LegacyWafFirewallAPI.EnableLegacyWafFirewall`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**firewallID** | **string** | Alphanumeric string identifying a Firewall. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiEnableLegacyWafFirewallRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **requestBody** | **map[string]map[string]any** | | + +### Return type + +**map[string]any** + +### Authorization + +[API Token](https://developer.fastly.com/reference/api/#authentication) + +### HTTP request headers + +- **Content-Type**: application/vnd.api+json +- **Accept**: application/vnd.api+json + +[Back to top](#) | [Back to API list](../README.md#documentation-for-api-endpoints) | [Back to README](../README.md) + + +## GetLegacyWafFirewall + +Get a firewall object + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + "github.com/fastly/fastly-go/fastly" +) + +func main() { + firewallID := "firewallId_example" // string | Alphanumeric string identifying a Firewall. + include := "configuration_set" // string | Include relationships. Optional, comma separated values. Permitted values: `configuration_set`, `owasp`, `rules`, `rule_statuses`. (optional) + + cfg := fastly.NewConfiguration() + apiClient := fastly.NewAPIClient(cfg) + ctx := fastly.NewAPIKeyContextFromEnv("FASTLY_API_TOKEN") + resp, r, err := apiClient.LegacyWafFirewallAPI.GetLegacyWafFirewall(ctx, firewallID).Include(include).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `LegacyWafFirewallAPI.GetLegacyWafFirewall`: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetLegacyWafFirewall`: map[string]any + fmt.Fprintf(os.Stdout, "Response from `LegacyWafFirewallAPI.GetLegacyWafFirewall`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**firewallID** | **string** | Alphanumeric string identifying a Firewall. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetLegacyWafFirewallRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **include** | **string** | Include relationships. Optional, comma separated values. Permitted values: `configuration_set`, `owasp`, `rules`, `rule_statuses`. | + +### Return type + +**map[string]any** + +### Authorization + +[API Token](https://developer.fastly.com/reference/api/#authentication) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/vnd.api+json + +[Back to top](#) | [Back to API list](../README.md#documentation-for-api-endpoints) | [Back to README](../README.md) + + +## GetLegacyWafFirewallService + +Get a firewall + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + "github.com/fastly/fastly-go/fastly" +) + +func main() { + serviceID := "serviceId_example" // string | Alphanumeric string identifying the service. + versionID := int32(56) // int32 | Integer identifying a service version. + firewallID := "firewallId_example" // string | Alphanumeric string identifying a Firewall. + + cfg := fastly.NewConfiguration() + apiClient := fastly.NewAPIClient(cfg) + ctx := fastly.NewAPIKeyContextFromEnv("FASTLY_API_TOKEN") + resp, r, err := apiClient.LegacyWafFirewallAPI.GetLegacyWafFirewallService(ctx, serviceID, versionID, firewallID).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `LegacyWafFirewallAPI.GetLegacyWafFirewallService`: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetLegacyWafFirewallService`: map[string]any + fmt.Fprintf(os.Stdout, "Response from `LegacyWafFirewallAPI.GetLegacyWafFirewallService`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceID** | **string** | Alphanumeric string identifying the service. | +**versionID** | **int32** | Integer identifying a service version. | +**firewallID** | **string** | Alphanumeric string identifying a Firewall. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetLegacyWafFirewallServiceRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + +**map[string]any** + +### Authorization + +[API Token](https://developer.fastly.com/reference/api/#authentication) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/vnd.api+json + +[Back to top](#) | [Back to API list](../README.md#documentation-for-api-endpoints) | [Back to README](../README.md) + + +## ListLegacyWafFirewalls + +List active firewalls + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + "github.com/fastly/fastly-go/fastly" +) + +func main() { + filterRulesRuleID := "filterRulesRuleId_example" // string | Limit the returned firewalls to a specific rule ID. (optional) + pageNumber := int32(1) // int32 | Current page. (optional) + pageSize := int32(20) // int32 | Number of records per page. (optional) (default to 20) + include := "configuration_set" // string | Include relationships. Optional, comma separated values. Permitted values: `configuration_set`, `owasp`. (optional) + + cfg := fastly.NewConfiguration() + apiClient := fastly.NewAPIClient(cfg) + ctx := fastly.NewAPIKeyContextFromEnv("FASTLY_API_TOKEN") + resp, r, err := apiClient.LegacyWafFirewallAPI.ListLegacyWafFirewalls(ctx).FilterRulesRuleID(filterRulesRuleID).PageNumber(pageNumber).PageSize(pageSize).Include(include).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `LegacyWafFirewallAPI.ListLegacyWafFirewalls`: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListLegacyWafFirewalls`: map[string]any + fmt.Fprintf(os.Stdout, "Response from `LegacyWafFirewallAPI.ListLegacyWafFirewalls`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiListLegacyWafFirewallsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **filterRulesRuleID** | **string** | Limit the returned firewalls to a specific rule ID. | **pageNumber** | **int32** | Current page. | **pageSize** | **int32** | Number of records per page. | [default to 20] **include** | **string** | Include relationships. Optional, comma separated values. Permitted values: `configuration_set`, `owasp`. | + +### Return type + +**map[string]any** + +### Authorization + +[API Token](https://developer.fastly.com/reference/api/#authentication) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/vnd.api+json + +[Back to top](#) | [Back to API list](../README.md#documentation-for-api-endpoints) | [Back to README](../README.md) + + +## ListLegacyWafFirewallsService + +List firewalls + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + "github.com/fastly/fastly-go/fastly" +) + +func main() { + serviceID := "serviceId_example" // string | Alphanumeric string identifying the service. + versionID := int32(56) // int32 | Integer identifying a service version. + pageNumber := int32(1) // int32 | Current page. (optional) + pageSize := int32(20) // int32 | Number of records per page. (optional) (default to 20) + include := "configuration_set" // string | Include relationships. Optional, comma separated values. Permitted values: `configuration_set`, `owasp`. (optional) + + cfg := fastly.NewConfiguration() + apiClient := fastly.NewAPIClient(cfg) + ctx := fastly.NewAPIKeyContextFromEnv("FASTLY_API_TOKEN") + resp, r, err := apiClient.LegacyWafFirewallAPI.ListLegacyWafFirewallsService(ctx, serviceID, versionID).PageNumber(pageNumber).PageSize(pageSize).Include(include).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `LegacyWafFirewallAPI.ListLegacyWafFirewallsService`: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListLegacyWafFirewallsService`: map[string]any + fmt.Fprintf(os.Stdout, "Response from `LegacyWafFirewallAPI.ListLegacyWafFirewallsService`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceID** | **string** | Alphanumeric string identifying the service. | +**versionID** | **int32** | Integer identifying a service version. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiListLegacyWafFirewallsServiceRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **pageNumber** | **int32** | Current page. | **pageSize** | **int32** | Number of records per page. | [default to 20] **include** | **string** | Include relationships. Optional, comma separated values. Permitted values: `configuration_set`, `owasp`. | + +### Return type + +**map[string]any** + +### Authorization + +[API Token](https://developer.fastly.com/reference/api/#authentication) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/vnd.api+json + +[Back to top](#) | [Back to API list](../README.md#documentation-for-api-endpoints) | [Back to README](../README.md) + + +## UpdateLegacyWafFirewallService + +Update a firewall + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + "github.com/fastly/fastly-go/fastly" +) + +func main() { + serviceID := "serviceId_example" // string | Alphanumeric string identifying the service. + versionID := int32(56) // int32 | Integer identifying a service version. + firewallID := "firewallId_example" // string | Alphanumeric string identifying a Firewall. + requestBody := map[string]map[string]any{"key": map[string]any(123)} // map[string]map[string]any | (optional) + + cfg := fastly.NewConfiguration() + apiClient := fastly.NewAPIClient(cfg) + ctx := fastly.NewAPIKeyContextFromEnv("FASTLY_API_TOKEN") + resp, r, err := apiClient.LegacyWafFirewallAPI.UpdateLegacyWafFirewallService(ctx, serviceID, versionID, firewallID).RequestBody(requestBody).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `LegacyWafFirewallAPI.UpdateLegacyWafFirewallService`: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `UpdateLegacyWafFirewallService`: map[string]any + fmt.Fprintf(os.Stdout, "Response from `LegacyWafFirewallAPI.UpdateLegacyWafFirewallService`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceID** | **string** | Alphanumeric string identifying the service. | +**versionID** | **int32** | Integer identifying a service version. | +**firewallID** | **string** | Alphanumeric string identifying a Firewall. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiUpdateLegacyWafFirewallServiceRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **requestBody** | **map[string]map[string]any** | | + +### Return type + +**map[string]any** + +### Authorization + +[API Token](https://developer.fastly.com/reference/api/#authentication) + +### HTTP request headers + +- **Content-Type**: application/vnd.api+json +- **Accept**: application/vnd.api+json + +[Back to top](#) | [Back to API list](../README.md#documentation-for-api-endpoints) | [Back to README](../README.md) diff --git a/docs/LegacyWafOwasp.md b/docs/LegacyWafOwasp.md new file mode 100644 index 00000000..e1803dfd --- /dev/null +++ b/docs/LegacyWafOwasp.md @@ -0,0 +1,782 @@ +# LegacyWafOwasp + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AllowedHTTPVersions** | Pointer to **string** | Allowed HTTP versions. | [optional] [default to "HTTP/1.0 HTTP/1.1 HTTP/2"] +**AllowedMethods** | Pointer to **string** | A space-separated list of HTTP method names. | [optional] [default to "GET HEAD POST OPTIONS PUT PATCH DELETE"] +**AllowedRequestContentType** | Pointer to **string** | Allowed request content types. | [optional] [default to "application/x-www-form-urlencoded|multipart/form-data|text/xml|application/xml|application/x-amf|application/json|text/plain"] +**ArgLength** | Pointer to **int32** | The maximum allowed length of an argument. | [optional] [default to 400] +**ArgNameLength** | Pointer to **int32** | The maximum allowed argument name length. | [optional] [default to 100] +**CombinedFileSizes** | Pointer to **int32** | The maximum allowed size of all files (in bytes). | [optional] [default to 10000000] +**CreatedAt** | Pointer to **string** | Date and time that the settings object was created. | [optional] +**CriticalAnomalyScore** | Pointer to **int32** | Score value to add for critical anomalies. | [optional] [default to 6] +**CrsValidateUtf8Encoding** | Pointer to **bool** | CRS validate UTF8 encoding. | [optional] +**ErrorAnomalyScore** | Pointer to **int32** | Score value to add for error anomalies. | [optional] [default to 5] +**HighRiskCountryCodes** | Pointer to **string** | A space-separated list of country codes in ISO 3166-1 (two-letter) format. | [optional] +**HTTPViolationScoreThreshold** | Pointer to **int32** | HTTP violation threshold. | [optional] +**InboundAnomalyScoreThreshold** | Pointer to **int32** | Inbound anomaly threshold. | [optional] +**LfiScoreThreshold** | Pointer to **int32** | Local file inclusion attack threshold. | [optional] +**MaxFileSize** | Pointer to **int32** | The maximum allowed file size (in bytes). | [optional] [default to 10000000] +**MaxNumArgs** | Pointer to **int32** | The maximum number of arguments allowed. | [optional] [default to 255] +**NoticeAnomalyScore** | Pointer to **int32** | Score value to add for notice anomalies. | [optional] [default to 4] +**ParanoiaLevel** | Pointer to **int32** | The configured paranoia level. | [optional] [default to 1] +**PhpInjectionScoreThreshold** | Pointer to **int32** | PHP injection threshold. | [optional] +**RceScoreThreshold** | Pointer to **int32** | Remote code execution threshold. | [optional] +**RestrictedExtensions** | Pointer to **string** | A space-separated list of disallowed file extensions. | [optional] [default to ".asa/ .asax/ .ascx/ .axd/ .backup/ .bak/ .bat/ .cdx/ .cer/ .cfg/ .cmd/ .com/ .config/ .conf/ .cs/ .csproj/ .csr/ .dat/ .db/ .dbf/ .dll/ .dos/ .htr/ .htw/ .ida/ .idc/ .idq/ .inc/ .ini/ .key/ .licx/ .lnk/ .log/ .mdb/ .old/ .pass/ .pdb/ .pol/ .printer/ .pwd/ .resources/ .resx/ .sql/ .sys/ .vb/ .vbs/ .vbproj/ .vsdisco/ .webinfo/ .xsd/ .xsx"] +**RestrictedHeaders** | Pointer to **string** | A space-separated list of disallowed header names. | [optional] [default to "/proxy/ /lock-token/ /content-range/ /translate/ /if/"] +**RfiScoreThreshold** | Pointer to **int32** | Remote file inclusion attack threshold. | [optional] +**SessionFixationScoreThreshold** | Pointer to **int32** | Session fixation attack threshold. | [optional] +**SQLInjectionScoreThreshold** | Pointer to **int32** | SQL injection attack threshold. | [optional] +**TotalArgLength** | Pointer to **int32** | The maximum size of argument names and values. | [optional] [default to 6400] +**UpdatedAt** | Pointer to **string** | Date and time that the settings object was last updated. | [optional] +**WarningAnomalyScore** | Pointer to **int32** | Score value to add for warning anomalies. | [optional] +**XSSScoreThreshold** | Pointer to **int32** | XSS attack threshold. | [optional] + +## Methods + +### NewLegacyWafOwasp + +`func NewLegacyWafOwasp() *LegacyWafOwasp` + +NewLegacyWafOwasp instantiates a new LegacyWafOwasp object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewLegacyWafOwaspWithDefaults + +`func NewLegacyWafOwaspWithDefaults() *LegacyWafOwasp` + +NewLegacyWafOwaspWithDefaults instantiates a new LegacyWafOwasp object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetAllowedHTTPVersions + +`func (o *LegacyWafOwasp) GetAllowedHTTPVersions() string` + +GetAllowedHTTPVersions returns the AllowedHTTPVersions field if non-nil, zero value otherwise. + +### GetAllowedHTTPVersionsOk + +`func (o *LegacyWafOwasp) GetAllowedHTTPVersionsOk() (*string, bool)` + +GetAllowedHTTPVersionsOk returns a tuple with the AllowedHTTPVersions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAllowedHTTPVersions + +`func (o *LegacyWafOwasp) SetAllowedHTTPVersions(v string)` + +SetAllowedHTTPVersions sets AllowedHTTPVersions field to given value. + +### HasAllowedHTTPVersions + +`func (o *LegacyWafOwasp) HasAllowedHTTPVersions() bool` + +HasAllowedHTTPVersions returns a boolean if a field has been set. + +### GetAllowedMethods + +`func (o *LegacyWafOwasp) GetAllowedMethods() string` + +GetAllowedMethods returns the AllowedMethods field if non-nil, zero value otherwise. + +### GetAllowedMethodsOk + +`func (o *LegacyWafOwasp) GetAllowedMethodsOk() (*string, bool)` + +GetAllowedMethodsOk returns a tuple with the AllowedMethods field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAllowedMethods + +`func (o *LegacyWafOwasp) SetAllowedMethods(v string)` + +SetAllowedMethods sets AllowedMethods field to given value. + +### HasAllowedMethods + +`func (o *LegacyWafOwasp) HasAllowedMethods() bool` + +HasAllowedMethods returns a boolean if a field has been set. + +### GetAllowedRequestContentType + +`func (o *LegacyWafOwasp) GetAllowedRequestContentType() string` + +GetAllowedRequestContentType returns the AllowedRequestContentType field if non-nil, zero value otherwise. + +### GetAllowedRequestContentTypeOk + +`func (o *LegacyWafOwasp) GetAllowedRequestContentTypeOk() (*string, bool)` + +GetAllowedRequestContentTypeOk returns a tuple with the AllowedRequestContentType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAllowedRequestContentType + +`func (o *LegacyWafOwasp) SetAllowedRequestContentType(v string)` + +SetAllowedRequestContentType sets AllowedRequestContentType field to given value. + +### HasAllowedRequestContentType + +`func (o *LegacyWafOwasp) HasAllowedRequestContentType() bool` + +HasAllowedRequestContentType returns a boolean if a field has been set. + +### GetArgLength + +`func (o *LegacyWafOwasp) GetArgLength() int32` + +GetArgLength returns the ArgLength field if non-nil, zero value otherwise. + +### GetArgLengthOk + +`func (o *LegacyWafOwasp) GetArgLengthOk() (*int32, bool)` + +GetArgLengthOk returns a tuple with the ArgLength field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetArgLength + +`func (o *LegacyWafOwasp) SetArgLength(v int32)` + +SetArgLength sets ArgLength field to given value. + +### HasArgLength + +`func (o *LegacyWafOwasp) HasArgLength() bool` + +HasArgLength returns a boolean if a field has been set. + +### GetArgNameLength + +`func (o *LegacyWafOwasp) GetArgNameLength() int32` + +GetArgNameLength returns the ArgNameLength field if non-nil, zero value otherwise. + +### GetArgNameLengthOk + +`func (o *LegacyWafOwasp) GetArgNameLengthOk() (*int32, bool)` + +GetArgNameLengthOk returns a tuple with the ArgNameLength field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetArgNameLength + +`func (o *LegacyWafOwasp) SetArgNameLength(v int32)` + +SetArgNameLength sets ArgNameLength field to given value. + +### HasArgNameLength + +`func (o *LegacyWafOwasp) HasArgNameLength() bool` + +HasArgNameLength returns a boolean if a field has been set. + +### GetCombinedFileSizes + +`func (o *LegacyWafOwasp) GetCombinedFileSizes() int32` + +GetCombinedFileSizes returns the CombinedFileSizes field if non-nil, zero value otherwise. + +### GetCombinedFileSizesOk + +`func (o *LegacyWafOwasp) GetCombinedFileSizesOk() (*int32, bool)` + +GetCombinedFileSizesOk returns a tuple with the CombinedFileSizes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCombinedFileSizes + +`func (o *LegacyWafOwasp) SetCombinedFileSizes(v int32)` + +SetCombinedFileSizes sets CombinedFileSizes field to given value. + +### HasCombinedFileSizes + +`func (o *LegacyWafOwasp) HasCombinedFileSizes() bool` + +HasCombinedFileSizes returns a boolean if a field has been set. + +### GetCreatedAt + +`func (o *LegacyWafOwasp) GetCreatedAt() string` + +GetCreatedAt returns the CreatedAt field if non-nil, zero value otherwise. + +### GetCreatedAtOk + +`func (o *LegacyWafOwasp) GetCreatedAtOk() (*string, bool)` + +GetCreatedAtOk returns a tuple with the CreatedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreatedAt + +`func (o *LegacyWafOwasp) SetCreatedAt(v string)` + +SetCreatedAt sets CreatedAt field to given value. + +### HasCreatedAt + +`func (o *LegacyWafOwasp) HasCreatedAt() bool` + +HasCreatedAt returns a boolean if a field has been set. + +### GetCriticalAnomalyScore + +`func (o *LegacyWafOwasp) GetCriticalAnomalyScore() int32` + +GetCriticalAnomalyScore returns the CriticalAnomalyScore field if non-nil, zero value otherwise. + +### GetCriticalAnomalyScoreOk + +`func (o *LegacyWafOwasp) GetCriticalAnomalyScoreOk() (*int32, bool)` + +GetCriticalAnomalyScoreOk returns a tuple with the CriticalAnomalyScore field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCriticalAnomalyScore + +`func (o *LegacyWafOwasp) SetCriticalAnomalyScore(v int32)` + +SetCriticalAnomalyScore sets CriticalAnomalyScore field to given value. + +### HasCriticalAnomalyScore + +`func (o *LegacyWafOwasp) HasCriticalAnomalyScore() bool` + +HasCriticalAnomalyScore returns a boolean if a field has been set. + +### GetCrsValidateUtf8Encoding + +`func (o *LegacyWafOwasp) GetCrsValidateUtf8Encoding() bool` + +GetCrsValidateUtf8Encoding returns the CrsValidateUtf8Encoding field if non-nil, zero value otherwise. + +### GetCrsValidateUtf8EncodingOk + +`func (o *LegacyWafOwasp) GetCrsValidateUtf8EncodingOk() (*bool, bool)` + +GetCrsValidateUtf8EncodingOk returns a tuple with the CrsValidateUtf8Encoding field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCrsValidateUtf8Encoding + +`func (o *LegacyWafOwasp) SetCrsValidateUtf8Encoding(v bool)` + +SetCrsValidateUtf8Encoding sets CrsValidateUtf8Encoding field to given value. + +### HasCrsValidateUtf8Encoding + +`func (o *LegacyWafOwasp) HasCrsValidateUtf8Encoding() bool` + +HasCrsValidateUtf8Encoding returns a boolean if a field has been set. + +### GetErrorAnomalyScore + +`func (o *LegacyWafOwasp) GetErrorAnomalyScore() int32` + +GetErrorAnomalyScore returns the ErrorAnomalyScore field if non-nil, zero value otherwise. + +### GetErrorAnomalyScoreOk + +`func (o *LegacyWafOwasp) GetErrorAnomalyScoreOk() (*int32, bool)` + +GetErrorAnomalyScoreOk returns a tuple with the ErrorAnomalyScore field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetErrorAnomalyScore + +`func (o *LegacyWafOwasp) SetErrorAnomalyScore(v int32)` + +SetErrorAnomalyScore sets ErrorAnomalyScore field to given value. + +### HasErrorAnomalyScore + +`func (o *LegacyWafOwasp) HasErrorAnomalyScore() bool` + +HasErrorAnomalyScore returns a boolean if a field has been set. + +### GetHighRiskCountryCodes + +`func (o *LegacyWafOwasp) GetHighRiskCountryCodes() string` + +GetHighRiskCountryCodes returns the HighRiskCountryCodes field if non-nil, zero value otherwise. + +### GetHighRiskCountryCodesOk + +`func (o *LegacyWafOwasp) GetHighRiskCountryCodesOk() (*string, bool)` + +GetHighRiskCountryCodesOk returns a tuple with the HighRiskCountryCodes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHighRiskCountryCodes + +`func (o *LegacyWafOwasp) SetHighRiskCountryCodes(v string)` + +SetHighRiskCountryCodes sets HighRiskCountryCodes field to given value. + +### HasHighRiskCountryCodes + +`func (o *LegacyWafOwasp) HasHighRiskCountryCodes() bool` + +HasHighRiskCountryCodes returns a boolean if a field has been set. + +### GetHTTPViolationScoreThreshold + +`func (o *LegacyWafOwasp) GetHTTPViolationScoreThreshold() int32` + +GetHTTPViolationScoreThreshold returns the HTTPViolationScoreThreshold field if non-nil, zero value otherwise. + +### GetHTTPViolationScoreThresholdOk + +`func (o *LegacyWafOwasp) GetHTTPViolationScoreThresholdOk() (*int32, bool)` + +GetHTTPViolationScoreThresholdOk returns a tuple with the HTTPViolationScoreThreshold field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHTTPViolationScoreThreshold + +`func (o *LegacyWafOwasp) SetHTTPViolationScoreThreshold(v int32)` + +SetHTTPViolationScoreThreshold sets HTTPViolationScoreThreshold field to given value. + +### HasHTTPViolationScoreThreshold + +`func (o *LegacyWafOwasp) HasHTTPViolationScoreThreshold() bool` + +HasHTTPViolationScoreThreshold returns a boolean if a field has been set. + +### GetInboundAnomalyScoreThreshold + +`func (o *LegacyWafOwasp) GetInboundAnomalyScoreThreshold() int32` + +GetInboundAnomalyScoreThreshold returns the InboundAnomalyScoreThreshold field if non-nil, zero value otherwise. + +### GetInboundAnomalyScoreThresholdOk + +`func (o *LegacyWafOwasp) GetInboundAnomalyScoreThresholdOk() (*int32, bool)` + +GetInboundAnomalyScoreThresholdOk returns a tuple with the InboundAnomalyScoreThreshold field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInboundAnomalyScoreThreshold + +`func (o *LegacyWafOwasp) SetInboundAnomalyScoreThreshold(v int32)` + +SetInboundAnomalyScoreThreshold sets InboundAnomalyScoreThreshold field to given value. + +### HasInboundAnomalyScoreThreshold + +`func (o *LegacyWafOwasp) HasInboundAnomalyScoreThreshold() bool` + +HasInboundAnomalyScoreThreshold returns a boolean if a field has been set. + +### GetLfiScoreThreshold + +`func (o *LegacyWafOwasp) GetLfiScoreThreshold() int32` + +GetLfiScoreThreshold returns the LfiScoreThreshold field if non-nil, zero value otherwise. + +### GetLfiScoreThresholdOk + +`func (o *LegacyWafOwasp) GetLfiScoreThresholdOk() (*int32, bool)` + +GetLfiScoreThresholdOk returns a tuple with the LfiScoreThreshold field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLfiScoreThreshold + +`func (o *LegacyWafOwasp) SetLfiScoreThreshold(v int32)` + +SetLfiScoreThreshold sets LfiScoreThreshold field to given value. + +### HasLfiScoreThreshold + +`func (o *LegacyWafOwasp) HasLfiScoreThreshold() bool` + +HasLfiScoreThreshold returns a boolean if a field has been set. + +### GetMaxFileSize + +`func (o *LegacyWafOwasp) GetMaxFileSize() int32` + +GetMaxFileSize returns the MaxFileSize field if non-nil, zero value otherwise. + +### GetMaxFileSizeOk + +`func (o *LegacyWafOwasp) GetMaxFileSizeOk() (*int32, bool)` + +GetMaxFileSizeOk returns a tuple with the MaxFileSize field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMaxFileSize + +`func (o *LegacyWafOwasp) SetMaxFileSize(v int32)` + +SetMaxFileSize sets MaxFileSize field to given value. + +### HasMaxFileSize + +`func (o *LegacyWafOwasp) HasMaxFileSize() bool` + +HasMaxFileSize returns a boolean if a field has been set. + +### GetMaxNumArgs + +`func (o *LegacyWafOwasp) GetMaxNumArgs() int32` + +GetMaxNumArgs returns the MaxNumArgs field if non-nil, zero value otherwise. + +### GetMaxNumArgsOk + +`func (o *LegacyWafOwasp) GetMaxNumArgsOk() (*int32, bool)` + +GetMaxNumArgsOk returns a tuple with the MaxNumArgs field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMaxNumArgs + +`func (o *LegacyWafOwasp) SetMaxNumArgs(v int32)` + +SetMaxNumArgs sets MaxNumArgs field to given value. + +### HasMaxNumArgs + +`func (o *LegacyWafOwasp) HasMaxNumArgs() bool` + +HasMaxNumArgs returns a boolean if a field has been set. + +### GetNoticeAnomalyScore + +`func (o *LegacyWafOwasp) GetNoticeAnomalyScore() int32` + +GetNoticeAnomalyScore returns the NoticeAnomalyScore field if non-nil, zero value otherwise. + +### GetNoticeAnomalyScoreOk + +`func (o *LegacyWafOwasp) GetNoticeAnomalyScoreOk() (*int32, bool)` + +GetNoticeAnomalyScoreOk returns a tuple with the NoticeAnomalyScore field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNoticeAnomalyScore + +`func (o *LegacyWafOwasp) SetNoticeAnomalyScore(v int32)` + +SetNoticeAnomalyScore sets NoticeAnomalyScore field to given value. + +### HasNoticeAnomalyScore + +`func (o *LegacyWafOwasp) HasNoticeAnomalyScore() bool` + +HasNoticeAnomalyScore returns a boolean if a field has been set. + +### GetParanoiaLevel + +`func (o *LegacyWafOwasp) GetParanoiaLevel() int32` + +GetParanoiaLevel returns the ParanoiaLevel field if non-nil, zero value otherwise. + +### GetParanoiaLevelOk + +`func (o *LegacyWafOwasp) GetParanoiaLevelOk() (*int32, bool)` + +GetParanoiaLevelOk returns a tuple with the ParanoiaLevel field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetParanoiaLevel + +`func (o *LegacyWafOwasp) SetParanoiaLevel(v int32)` + +SetParanoiaLevel sets ParanoiaLevel field to given value. + +### HasParanoiaLevel + +`func (o *LegacyWafOwasp) HasParanoiaLevel() bool` + +HasParanoiaLevel returns a boolean if a field has been set. + +### GetPhpInjectionScoreThreshold + +`func (o *LegacyWafOwasp) GetPhpInjectionScoreThreshold() int32` + +GetPhpInjectionScoreThreshold returns the PhpInjectionScoreThreshold field if non-nil, zero value otherwise. + +### GetPhpInjectionScoreThresholdOk + +`func (o *LegacyWafOwasp) GetPhpInjectionScoreThresholdOk() (*int32, bool)` + +GetPhpInjectionScoreThresholdOk returns a tuple with the PhpInjectionScoreThreshold field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPhpInjectionScoreThreshold + +`func (o *LegacyWafOwasp) SetPhpInjectionScoreThreshold(v int32)` + +SetPhpInjectionScoreThreshold sets PhpInjectionScoreThreshold field to given value. + +### HasPhpInjectionScoreThreshold + +`func (o *LegacyWafOwasp) HasPhpInjectionScoreThreshold() bool` + +HasPhpInjectionScoreThreshold returns a boolean if a field has been set. + +### GetRceScoreThreshold + +`func (o *LegacyWafOwasp) GetRceScoreThreshold() int32` + +GetRceScoreThreshold returns the RceScoreThreshold field if non-nil, zero value otherwise. + +### GetRceScoreThresholdOk + +`func (o *LegacyWafOwasp) GetRceScoreThresholdOk() (*int32, bool)` + +GetRceScoreThresholdOk returns a tuple with the RceScoreThreshold field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRceScoreThreshold + +`func (o *LegacyWafOwasp) SetRceScoreThreshold(v int32)` + +SetRceScoreThreshold sets RceScoreThreshold field to given value. + +### HasRceScoreThreshold + +`func (o *LegacyWafOwasp) HasRceScoreThreshold() bool` + +HasRceScoreThreshold returns a boolean if a field has been set. + +### GetRestrictedExtensions + +`func (o *LegacyWafOwasp) GetRestrictedExtensions() string` + +GetRestrictedExtensions returns the RestrictedExtensions field if non-nil, zero value otherwise. + +### GetRestrictedExtensionsOk + +`func (o *LegacyWafOwasp) GetRestrictedExtensionsOk() (*string, bool)` + +GetRestrictedExtensionsOk returns a tuple with the RestrictedExtensions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRestrictedExtensions + +`func (o *LegacyWafOwasp) SetRestrictedExtensions(v string)` + +SetRestrictedExtensions sets RestrictedExtensions field to given value. + +### HasRestrictedExtensions + +`func (o *LegacyWafOwasp) HasRestrictedExtensions() bool` + +HasRestrictedExtensions returns a boolean if a field has been set. + +### GetRestrictedHeaders + +`func (o *LegacyWafOwasp) GetRestrictedHeaders() string` + +GetRestrictedHeaders returns the RestrictedHeaders field if non-nil, zero value otherwise. + +### GetRestrictedHeadersOk + +`func (o *LegacyWafOwasp) GetRestrictedHeadersOk() (*string, bool)` + +GetRestrictedHeadersOk returns a tuple with the RestrictedHeaders field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRestrictedHeaders + +`func (o *LegacyWafOwasp) SetRestrictedHeaders(v string)` + +SetRestrictedHeaders sets RestrictedHeaders field to given value. + +### HasRestrictedHeaders + +`func (o *LegacyWafOwasp) HasRestrictedHeaders() bool` + +HasRestrictedHeaders returns a boolean if a field has been set. + +### GetRfiScoreThreshold + +`func (o *LegacyWafOwasp) GetRfiScoreThreshold() int32` + +GetRfiScoreThreshold returns the RfiScoreThreshold field if non-nil, zero value otherwise. + +### GetRfiScoreThresholdOk + +`func (o *LegacyWafOwasp) GetRfiScoreThresholdOk() (*int32, bool)` + +GetRfiScoreThresholdOk returns a tuple with the RfiScoreThreshold field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRfiScoreThreshold + +`func (o *LegacyWafOwasp) SetRfiScoreThreshold(v int32)` + +SetRfiScoreThreshold sets RfiScoreThreshold field to given value. + +### HasRfiScoreThreshold + +`func (o *LegacyWafOwasp) HasRfiScoreThreshold() bool` + +HasRfiScoreThreshold returns a boolean if a field has been set. + +### GetSessionFixationScoreThreshold + +`func (o *LegacyWafOwasp) GetSessionFixationScoreThreshold() int32` + +GetSessionFixationScoreThreshold returns the SessionFixationScoreThreshold field if non-nil, zero value otherwise. + +### GetSessionFixationScoreThresholdOk + +`func (o *LegacyWafOwasp) GetSessionFixationScoreThresholdOk() (*int32, bool)` + +GetSessionFixationScoreThresholdOk returns a tuple with the SessionFixationScoreThreshold field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSessionFixationScoreThreshold + +`func (o *LegacyWafOwasp) SetSessionFixationScoreThreshold(v int32)` + +SetSessionFixationScoreThreshold sets SessionFixationScoreThreshold field to given value. + +### HasSessionFixationScoreThreshold + +`func (o *LegacyWafOwasp) HasSessionFixationScoreThreshold() bool` + +HasSessionFixationScoreThreshold returns a boolean if a field has been set. + +### GetSQLInjectionScoreThreshold + +`func (o *LegacyWafOwasp) GetSQLInjectionScoreThreshold() int32` + +GetSQLInjectionScoreThreshold returns the SQLInjectionScoreThreshold field if non-nil, zero value otherwise. + +### GetSQLInjectionScoreThresholdOk + +`func (o *LegacyWafOwasp) GetSQLInjectionScoreThresholdOk() (*int32, bool)` + +GetSQLInjectionScoreThresholdOk returns a tuple with the SQLInjectionScoreThreshold field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSQLInjectionScoreThreshold + +`func (o *LegacyWafOwasp) SetSQLInjectionScoreThreshold(v int32)` + +SetSQLInjectionScoreThreshold sets SQLInjectionScoreThreshold field to given value. + +### HasSQLInjectionScoreThreshold + +`func (o *LegacyWafOwasp) HasSQLInjectionScoreThreshold() bool` + +HasSQLInjectionScoreThreshold returns a boolean if a field has been set. + +### GetTotalArgLength + +`func (o *LegacyWafOwasp) GetTotalArgLength() int32` + +GetTotalArgLength returns the TotalArgLength field if non-nil, zero value otherwise. + +### GetTotalArgLengthOk + +`func (o *LegacyWafOwasp) GetTotalArgLengthOk() (*int32, bool)` + +GetTotalArgLengthOk returns a tuple with the TotalArgLength field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTotalArgLength + +`func (o *LegacyWafOwasp) SetTotalArgLength(v int32)` + +SetTotalArgLength sets TotalArgLength field to given value. + +### HasTotalArgLength + +`func (o *LegacyWafOwasp) HasTotalArgLength() bool` + +HasTotalArgLength returns a boolean if a field has been set. + +### GetUpdatedAt + +`func (o *LegacyWafOwasp) GetUpdatedAt() string` + +GetUpdatedAt returns the UpdatedAt field if non-nil, zero value otherwise. + +### GetUpdatedAtOk + +`func (o *LegacyWafOwasp) GetUpdatedAtOk() (*string, bool)` + +GetUpdatedAtOk returns a tuple with the UpdatedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUpdatedAt + +`func (o *LegacyWafOwasp) SetUpdatedAt(v string)` + +SetUpdatedAt sets UpdatedAt field to given value. + +### HasUpdatedAt + +`func (o *LegacyWafOwasp) HasUpdatedAt() bool` + +HasUpdatedAt returns a boolean if a field has been set. + +### GetWarningAnomalyScore + +`func (o *LegacyWafOwasp) GetWarningAnomalyScore() int32` + +GetWarningAnomalyScore returns the WarningAnomalyScore field if non-nil, zero value otherwise. + +### GetWarningAnomalyScoreOk + +`func (o *LegacyWafOwasp) GetWarningAnomalyScoreOk() (*int32, bool)` + +GetWarningAnomalyScoreOk returns a tuple with the WarningAnomalyScore field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWarningAnomalyScore + +`func (o *LegacyWafOwasp) SetWarningAnomalyScore(v int32)` + +SetWarningAnomalyScore sets WarningAnomalyScore field to given value. + +### HasWarningAnomalyScore + +`func (o *LegacyWafOwasp) HasWarningAnomalyScore() bool` + +HasWarningAnomalyScore returns a boolean if a field has been set. + +### GetXSSScoreThreshold + +`func (o *LegacyWafOwasp) GetXSSScoreThreshold() int32` + +GetXSSScoreThreshold returns the XSSScoreThreshold field if non-nil, zero value otherwise. + +### GetXSSScoreThresholdOk + +`func (o *LegacyWafOwasp) GetXSSScoreThresholdOk() (*int32, bool)` + +GetXSSScoreThresholdOk returns a tuple with the XSSScoreThreshold field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetXSSScoreThreshold + +`func (o *LegacyWafOwasp) SetXSSScoreThreshold(v int32)` + +SetXSSScoreThreshold sets XSSScoreThreshold field to given value. + +### HasXSSScoreThreshold + +`func (o *LegacyWafOwasp) HasXSSScoreThreshold() bool` + +HasXSSScoreThreshold returns a boolean if a field has been set. + + +[Back to API list](../README.md#documentation-for-api-endpoints) | [Back to README](../README.md) diff --git a/docs/LegacyWafOwaspAPI.md b/docs/LegacyWafOwaspAPI.md new file mode 100644 index 00000000..4238b024 --- /dev/null +++ b/docs/LegacyWafOwaspAPI.md @@ -0,0 +1,219 @@ +# LegacyWafOwaspAPI + +All URIs are relative to *https://api.fastly.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**CreateOwaspSettings**](LegacyWafOwaspAPI.md#CreateOwaspSettings) | **POST** `/service/{service_id}/wafs/{firewall_id}/owasp` | Create an OWASP settings object +[**GetOwaspSettings**](LegacyWafOwaspAPI.md#GetOwaspSettings) | **GET** `/service/{service_id}/wafs/{firewall_id}/owasp` | Get the OWASP settings object +[**UpdateOwaspSettings**](LegacyWafOwaspAPI.md#UpdateOwaspSettings) | **PATCH** `/service/{service_id}/wafs/{firewall_id}/owasp` | Update the OWASP settings object + + + +## CreateOwaspSettings + +Create an OWASP settings object + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + "github.com/fastly/fastly-go/fastly" +) + +func main() { + serviceID := "serviceId_example" // string | Alphanumeric string identifying the service. + firewallID := "firewallId_example" // string | Alphanumeric string identifying a Firewall. + requestBody := map[string]map[string]any{"key": map[string]any(123)} // map[string]map[string]any | (optional) + + cfg := fastly.NewConfiguration() + apiClient := fastly.NewAPIClient(cfg) + ctx := fastly.NewAPIKeyContextFromEnv("FASTLY_API_TOKEN") + resp, r, err := apiClient.LegacyWafOwaspAPI.CreateOwaspSettings(ctx, serviceID, firewallID).RequestBody(requestBody).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `LegacyWafOwaspAPI.CreateOwaspSettings`: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateOwaspSettings`: map[string]any + fmt.Fprintf(os.Stdout, "Response from `LegacyWafOwaspAPI.CreateOwaspSettings`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceID** | **string** | Alphanumeric string identifying the service. | +**firewallID** | **string** | Alphanumeric string identifying a Firewall. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiCreateOwaspSettingsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **requestBody** | **map[string]map[string]any** | | + +### Return type + +**map[string]any** + +### Authorization + +[API Token](https://developer.fastly.com/reference/api/#authentication) + +### HTTP request headers + +- **Content-Type**: application/vnd.api+json +- **Accept**: application/vnd.api+json + +[Back to top](#) | [Back to API list](../README.md#documentation-for-api-endpoints) | [Back to README](../README.md) + + +## GetOwaspSettings + +Get the OWASP settings object + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + "github.com/fastly/fastly-go/fastly" +) + +func main() { + serviceID := "serviceId_example" // string | Alphanumeric string identifying the service. + firewallID := "firewallId_example" // string | Alphanumeric string identifying a Firewall. + + cfg := fastly.NewConfiguration() + apiClient := fastly.NewAPIClient(cfg) + ctx := fastly.NewAPIKeyContextFromEnv("FASTLY_API_TOKEN") + resp, r, err := apiClient.LegacyWafOwaspAPI.GetOwaspSettings(ctx, serviceID, firewallID).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `LegacyWafOwaspAPI.GetOwaspSettings`: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetOwaspSettings`: map[string]any + fmt.Fprintf(os.Stdout, "Response from `LegacyWafOwaspAPI.GetOwaspSettings`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceID** | **string** | Alphanumeric string identifying the service. | +**firewallID** | **string** | Alphanumeric string identifying a Firewall. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetOwaspSettingsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + +**map[string]any** + +### Authorization + +[API Token](https://developer.fastly.com/reference/api/#authentication) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/vnd.api+json + +[Back to top](#) | [Back to API list](../README.md#documentation-for-api-endpoints) | [Back to README](../README.md) + + +## UpdateOwaspSettings + +Update the OWASP settings object + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + "github.com/fastly/fastly-go/fastly" +) + +func main() { + serviceID := "serviceId_example" // string | Alphanumeric string identifying the service. + firewallID := "firewallId_example" // string | Alphanumeric string identifying a Firewall. + requestBody := map[string]map[string]any{"key": map[string]any(123)} // map[string]map[string]any | (optional) + + cfg := fastly.NewConfiguration() + apiClient := fastly.NewAPIClient(cfg) + ctx := fastly.NewAPIKeyContextFromEnv("FASTLY_API_TOKEN") + resp, r, err := apiClient.LegacyWafOwaspAPI.UpdateOwaspSettings(ctx, serviceID, firewallID).RequestBody(requestBody).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `LegacyWafOwaspAPI.UpdateOwaspSettings`: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `UpdateOwaspSettings`: map[string]any + fmt.Fprintf(os.Stdout, "Response from `LegacyWafOwaspAPI.UpdateOwaspSettings`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceID** | **string** | Alphanumeric string identifying the service. | +**firewallID** | **string** | Alphanumeric string identifying a Firewall. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiUpdateOwaspSettingsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **requestBody** | **map[string]map[string]any** | | + +### Return type + +**map[string]any** + +### Authorization + +[API Token](https://developer.fastly.com/reference/api/#authentication) + +### HTTP request headers + +- **Content-Type**: application/vnd.api+json +- **Accept**: application/vnd.api+json + +[Back to top](#) | [Back to API list](../README.md#documentation-for-api-endpoints) | [Back to README](../README.md) diff --git a/docs/LegacyWafRule.md b/docs/LegacyWafRule.md new file mode 100644 index 00000000..93319e7f --- /dev/null +++ b/docs/LegacyWafRule.md @@ -0,0 +1,158 @@ +# LegacyWafRule + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Message** | Pointer to **string** | Message metadata for the rule. | [optional] +**RuleID** | Pointer to **string** | Corresponding ModSecurity rule ID. | [optional] +**Severity** | Pointer to **int32** | Severity metadata for the rule. | [optional] +**Source** | Pointer to **string** | The ModSecurity rule logic. | [optional] +**Vcl** | Pointer to **string** | The VCL representation of the rule logic. | [optional] + +## Methods + +### NewLegacyWafRule + +`func NewLegacyWafRule() *LegacyWafRule` + +NewLegacyWafRule instantiates a new LegacyWafRule object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewLegacyWafRuleWithDefaults + +`func NewLegacyWafRuleWithDefaults() *LegacyWafRule` + +NewLegacyWafRuleWithDefaults instantiates a new LegacyWafRule object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetMessage + +`func (o *LegacyWafRule) GetMessage() string` + +GetMessage returns the Message field if non-nil, zero value otherwise. + +### GetMessageOk + +`func (o *LegacyWafRule) 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 *LegacyWafRule) SetMessage(v string)` + +SetMessage sets Message field to given value. + +### HasMessage + +`func (o *LegacyWafRule) HasMessage() bool` + +HasMessage returns a boolean if a field has been set. + +### GetRuleID + +`func (o *LegacyWafRule) GetRuleID() string` + +GetRuleID returns the RuleID field if non-nil, zero value otherwise. + +### GetRuleIDOk + +`func (o *LegacyWafRule) GetRuleIDOk() (*string, bool)` + +GetRuleIDOk returns a tuple with the RuleID field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRuleID + +`func (o *LegacyWafRule) SetRuleID(v string)` + +SetRuleID sets RuleID field to given value. + +### HasRuleID + +`func (o *LegacyWafRule) HasRuleID() bool` + +HasRuleID returns a boolean if a field has been set. + +### GetSeverity + +`func (o *LegacyWafRule) GetSeverity() int32` + +GetSeverity returns the Severity field if non-nil, zero value otherwise. + +### GetSeverityOk + +`func (o *LegacyWafRule) GetSeverityOk() (*int32, bool)` + +GetSeverityOk returns a tuple with the Severity field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSeverity + +`func (o *LegacyWafRule) SetSeverity(v int32)` + +SetSeverity sets Severity field to given value. + +### HasSeverity + +`func (o *LegacyWafRule) HasSeverity() bool` + +HasSeverity returns a boolean if a field has been set. + +### GetSource + +`func (o *LegacyWafRule) GetSource() string` + +GetSource returns the Source field if non-nil, zero value otherwise. + +### GetSourceOk + +`func (o *LegacyWafRule) GetSourceOk() (*string, bool)` + +GetSourceOk returns a tuple with the Source field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSource + +`func (o *LegacyWafRule) SetSource(v string)` + +SetSource sets Source field to given value. + +### HasSource + +`func (o *LegacyWafRule) HasSource() bool` + +HasSource returns a boolean if a field has been set. + +### GetVcl + +`func (o *LegacyWafRule) GetVcl() string` + +GetVcl returns the Vcl field if non-nil, zero value otherwise. + +### GetVclOk + +`func (o *LegacyWafRule) GetVclOk() (*string, bool)` + +GetVclOk returns a tuple with the Vcl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVcl + +`func (o *LegacyWafRule) SetVcl(v string)` + +SetVcl sets Vcl field to given value. + +### HasVcl + +`func (o *LegacyWafRule) HasVcl() bool` + +HasVcl returns a boolean if a field has been set. + + +[Back to API list](../README.md#documentation-for-api-endpoints) | [Back to README](../README.md) diff --git a/docs/LegacyWafRuleAPI.md b/docs/LegacyWafRuleAPI.md new file mode 100644 index 00000000..7a4dc9ea --- /dev/null +++ b/docs/LegacyWafRuleAPI.md @@ -0,0 +1,285 @@ +# LegacyWafRuleAPI + +All URIs are relative to *https://api.fastly.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**GetLegacyWafFirewallRuleVcl**](LegacyWafRuleAPI.md#GetLegacyWafFirewallRuleVcl) | **GET** `/wafs/{firewall_id}/rules/{waf_rule_id}/vcl` | Get VCL for a rule associated with a firewall +[**GetLegacyWafRule**](LegacyWafRuleAPI.md#GetLegacyWafRule) | **GET** `/wafs/rules/{waf_rule_id}` | Get a rule +[**GetLegacyWafRuleVcl**](LegacyWafRuleAPI.md#GetLegacyWafRuleVcl) | **GET** `/wafs/rules/{waf_rule_id}/vcl` | Get VCL for a rule +[**ListLegacyWafRules**](LegacyWafRuleAPI.md#ListLegacyWafRules) | **GET** `/wafs/rules` | List rules in the latest configuration set + + + +## GetLegacyWafFirewallRuleVcl + +Get VCL for a rule associated with a firewall + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + "github.com/fastly/fastly-go/fastly" +) + +func main() { + firewallID := "firewallId_example" // string | Alphanumeric string identifying a Firewall. + wafRuleID := "wafRuleId_example" // string | Alphanumeric string identifying a WAF rule. + + cfg := fastly.NewConfiguration() + apiClient := fastly.NewAPIClient(cfg) + ctx := fastly.NewAPIKeyContextFromEnv("FASTLY_API_TOKEN") + resp, r, err := apiClient.LegacyWafRuleAPI.GetLegacyWafFirewallRuleVcl(ctx, firewallID, wafRuleID).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `LegacyWafRuleAPI.GetLegacyWafFirewallRuleVcl`: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetLegacyWafFirewallRuleVcl`: map[string]any + fmt.Fprintf(os.Stdout, "Response from `LegacyWafRuleAPI.GetLegacyWafFirewallRuleVcl`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**firewallID** | **string** | Alphanumeric string identifying a Firewall. | +**wafRuleID** | **string** | Alphanumeric string identifying a WAF rule. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetLegacyWafFirewallRuleVclRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + +**map[string]any** + +### Authorization + +[API Token](https://developer.fastly.com/reference/api/#authentication) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/vnd.api+json + +[Back to top](#) | [Back to API list](../README.md#documentation-for-api-endpoints) | [Back to README](../README.md) + + +## GetLegacyWafRule + +Get a rule + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + "github.com/fastly/fastly-go/fastly" +) + +func main() { + wafRuleID := "wafRuleId_example" // string | Alphanumeric string identifying a WAF rule. + filterConfigurationSetID := "filterConfigurationSetId_example" // string | Optional. Limit rule to a specific configuration set or pass \"all\" to search all configuration sets, including stale ones. (optional) + include := "tags" // string | Include relationships. Optional. Comma separated values. Permitted values: `tags`, `rule_statuses`, `source`, and `vcl`. (optional) + + cfg := fastly.NewConfiguration() + apiClient := fastly.NewAPIClient(cfg) + ctx := fastly.NewAPIKeyContextFromEnv("FASTLY_API_TOKEN") + resp, r, err := apiClient.LegacyWafRuleAPI.GetLegacyWafRule(ctx, wafRuleID).FilterConfigurationSetID(filterConfigurationSetID).Include(include).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `LegacyWafRuleAPI.GetLegacyWafRule`: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetLegacyWafRule`: map[string]any + fmt.Fprintf(os.Stdout, "Response from `LegacyWafRuleAPI.GetLegacyWafRule`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**wafRuleID** | **string** | Alphanumeric string identifying a WAF rule. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetLegacyWafRuleRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **filterConfigurationSetID** | **string** | Optional. Limit rule to a specific configuration set or pass \"all\" to search all configuration sets, including stale ones. | **include** | **string** | Include relationships. Optional. Comma separated values. Permitted values: `tags`, `rule_statuses`, `source`, and `vcl`. | + +### Return type + +**map[string]any** + +### Authorization + +[API Token](https://developer.fastly.com/reference/api/#authentication) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/vnd.api+json + +[Back to top](#) | [Back to API list](../README.md#documentation-for-api-endpoints) | [Back to README](../README.md) + + +## GetLegacyWafRuleVcl + +Get VCL for a rule + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + "github.com/fastly/fastly-go/fastly" +) + +func main() { + wafRuleID := "wafRuleId_example" // string | Alphanumeric string identifying a WAF rule. + + cfg := fastly.NewConfiguration() + apiClient := fastly.NewAPIClient(cfg) + ctx := fastly.NewAPIKeyContextFromEnv("FASTLY_API_TOKEN") + resp, r, err := apiClient.LegacyWafRuleAPI.GetLegacyWafRuleVcl(ctx, wafRuleID).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `LegacyWafRuleAPI.GetLegacyWafRuleVcl`: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetLegacyWafRuleVcl`: map[string]any + fmt.Fprintf(os.Stdout, "Response from `LegacyWafRuleAPI.GetLegacyWafRuleVcl`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**wafRuleID** | **string** | Alphanumeric string identifying a WAF rule. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetLegacyWafRuleVclRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + +**map[string]any** + +### Authorization + +[API Token](https://developer.fastly.com/reference/api/#authentication) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/vnd.api+json + +[Back to top](#) | [Back to API list](../README.md#documentation-for-api-endpoints) | [Back to README](../README.md) + + +## ListLegacyWafRules + +List rules in the latest configuration set + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + "github.com/fastly/fastly-go/fastly" +) + +func main() { + filterRuleID := "filterRuleId_example" // string | Limit the returned rules to a specific rule ID. (optional) + filterSeverity := "filterSeverity_example" // string | Limit the returned rules to a specific severity. (optional) + filterTagsName := "filterTagsName_example" // string | Limit the returned rules to a set linked to a tag by name. (optional) + filterConfigurationSetID := "filterConfigurationSetId_example" // string | Optional. Limit rules to specific configuration set or pass \"all\" to search all configuration sets, including stale ones. (optional) + pageNumber := int32(1) // int32 | Current page. (optional) + pageSize := int32(20) // int32 | Number of records per page. (optional) (default to 20) + include := "include_example" // string | Include relationships. Optional. Comma separated values. Permitted values: `tags`, `rule_statuses`, and `source`. (optional) + + cfg := fastly.NewConfiguration() + apiClient := fastly.NewAPIClient(cfg) + ctx := fastly.NewAPIKeyContextFromEnv("FASTLY_API_TOKEN") + resp, r, err := apiClient.LegacyWafRuleAPI.ListLegacyWafRules(ctx).FilterRuleID(filterRuleID).FilterSeverity(filterSeverity).FilterTagsName(filterTagsName).FilterConfigurationSetID(filterConfigurationSetID).PageNumber(pageNumber).PageSize(pageSize).Include(include).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `LegacyWafRuleAPI.ListLegacyWafRules`: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListLegacyWafRules`: []map[string]any + fmt.Fprintf(os.Stdout, "Response from `LegacyWafRuleAPI.ListLegacyWafRules`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiListLegacyWafRulesRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **filterRuleID** | **string** | Limit the returned rules to a specific rule ID. | **filterSeverity** | **string** | Limit the returned rules to a specific severity. | **filterTagsName** | **string** | Limit the returned rules to a set linked to a tag by name. | **filterConfigurationSetID** | **string** | Optional. Limit rules to specific configuration set or pass \"all\" to search all configuration sets, including stale ones. | **pageNumber** | **int32** | Current page. | **pageSize** | **int32** | Number of records per page. | [default to 20] **include** | **string** | Include relationships. Optional. Comma separated values. Permitted values: `tags`, `rule_statuses`, and `source`. | + +### Return type + +**[]map[string]any** + +### Authorization + +[API Token](https://developer.fastly.com/reference/api/#authentication) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/vnd.api+json + +[Back to top](#) | [Back to API list](../README.md#documentation-for-api-endpoints) | [Back to README](../README.md) diff --git a/docs/LegacyWafRuleStatus.md b/docs/LegacyWafRuleStatus.md new file mode 100644 index 00000000..e8bb2458 --- /dev/null +++ b/docs/LegacyWafRuleStatus.md @@ -0,0 +1,106 @@ +# LegacyWafRuleStatus + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Status** | Pointer to **string** | Describes the behavior for the particular rule within this firewall. Permitted values: `log`, `block`, and `disabled`. | [optional] +**ModsecRuleID** | Pointer to **string** | The ModSecurity rule ID. | [optional] +**UniqueRuleID** | Pointer to **string** | The Rule ID. | [optional] + +## Methods + +### NewLegacyWafRuleStatus + +`func NewLegacyWafRuleStatus() *LegacyWafRuleStatus` + +NewLegacyWafRuleStatus instantiates a new LegacyWafRuleStatus object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewLegacyWafRuleStatusWithDefaults + +`func NewLegacyWafRuleStatusWithDefaults() *LegacyWafRuleStatus` + +NewLegacyWafRuleStatusWithDefaults instantiates a new LegacyWafRuleStatus object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetStatus + +`func (o *LegacyWafRuleStatus) GetStatus() string` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *LegacyWafRuleStatus) 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 *LegacyWafRuleStatus) SetStatus(v string)` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *LegacyWafRuleStatus) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + +### GetModsecRuleID + +`func (o *LegacyWafRuleStatus) GetModsecRuleID() string` + +GetModsecRuleID returns the ModsecRuleID field if non-nil, zero value otherwise. + +### GetModsecRuleIDOk + +`func (o *LegacyWafRuleStatus) GetModsecRuleIDOk() (*string, bool)` + +GetModsecRuleIDOk returns a tuple with the ModsecRuleID field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetModsecRuleID + +`func (o *LegacyWafRuleStatus) SetModsecRuleID(v string)` + +SetModsecRuleID sets ModsecRuleID field to given value. + +### HasModsecRuleID + +`func (o *LegacyWafRuleStatus) HasModsecRuleID() bool` + +HasModsecRuleID returns a boolean if a field has been set. + +### GetUniqueRuleID + +`func (o *LegacyWafRuleStatus) GetUniqueRuleID() string` + +GetUniqueRuleID returns the UniqueRuleID field if non-nil, zero value otherwise. + +### GetUniqueRuleIDOk + +`func (o *LegacyWafRuleStatus) GetUniqueRuleIDOk() (*string, bool)` + +GetUniqueRuleIDOk returns a tuple with the UniqueRuleID field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUniqueRuleID + +`func (o *LegacyWafRuleStatus) SetUniqueRuleID(v string)` + +SetUniqueRuleID sets UniqueRuleID field to given value. + +### HasUniqueRuleID + +`func (o *LegacyWafRuleStatus) HasUniqueRuleID() bool` + +HasUniqueRuleID returns a boolean if a field has been set. + + +[Back to API list](../README.md#documentation-for-api-endpoints) | [Back to README](../README.md) diff --git a/docs/LegacyWafRuleStatusAPI.md b/docs/LegacyWafRuleStatusAPI.md new file mode 100644 index 00000000..75836d3e --- /dev/null +++ b/docs/LegacyWafRuleStatusAPI.md @@ -0,0 +1,303 @@ +# LegacyWafRuleStatusAPI + +All URIs are relative to *https://api.fastly.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**GetWafFirewallRuleStatus**](LegacyWafRuleStatusAPI.md#GetWafFirewallRuleStatus) | **GET** `/service/{service_id}/wafs/{firewall_id}/rules/{waf_rule_id}/rule_status` | Get the status of a rule on a firewall +[**ListWafFirewallRuleStatuses**](LegacyWafRuleStatusAPI.md#ListWafFirewallRuleStatuses) | **GET** `/service/{service_id}/wafs/{firewall_id}/rule_statuses` | List rule statuses +[**UpdateWafFirewallRuleStatus**](LegacyWafRuleStatusAPI.md#UpdateWafFirewallRuleStatus) | **PATCH** `/service/{service_id}/wafs/{firewall_id}/rules/{waf_rule_id}/rule_status` | Update the status of a rule +[**UpdateWafFirewallRuleStatusesTag**](LegacyWafRuleStatusAPI.md#UpdateWafFirewallRuleStatusesTag) | **POST** `/service/{service_id}/wafs/{firewall_id}/rule_statuses` | Create or update status of a tagged group of rules + + + +## GetWafFirewallRuleStatus + +Get the status of a rule on a firewall + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + "github.com/fastly/fastly-go/fastly" +) + +func main() { + serviceID := "serviceId_example" // string | Alphanumeric string identifying the service. + firewallID := "firewallId_example" // string | Alphanumeric string identifying a Firewall. + wafRuleID := "wafRuleId_example" // string | Alphanumeric string identifying a WAF rule. + + cfg := fastly.NewConfiguration() + apiClient := fastly.NewAPIClient(cfg) + ctx := fastly.NewAPIKeyContextFromEnv("FASTLY_API_TOKEN") + resp, r, err := apiClient.LegacyWafRuleStatusAPI.GetWafFirewallRuleStatus(ctx, serviceID, firewallID, wafRuleID).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `LegacyWafRuleStatusAPI.GetWafFirewallRuleStatus`: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetWafFirewallRuleStatus`: map[string]any + fmt.Fprintf(os.Stdout, "Response from `LegacyWafRuleStatusAPI.GetWafFirewallRuleStatus`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceID** | **string** | Alphanumeric string identifying the service. | +**firewallID** | **string** | Alphanumeric string identifying a Firewall. | +**wafRuleID** | **string** | Alphanumeric string identifying a WAF rule. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetWafFirewallRuleStatusRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + +**map[string]any** + +### Authorization + +[API Token](https://developer.fastly.com/reference/api/#authentication) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/vnd.api+json + +[Back to top](#) | [Back to API list](../README.md#documentation-for-api-endpoints) | [Back to README](../README.md) + + +## ListWafFirewallRuleStatuses + +List rule statuses + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + "github.com/fastly/fastly-go/fastly" +) + +func main() { + serviceID := "serviceId_example" // string | Alphanumeric string identifying the service. + firewallID := "firewallId_example" // string | Alphanumeric string identifying a Firewall. + filterStatus := "filterStatus_example" // string | Limit results to rule statuses with the specified status. (optional) + filterRuleMessage := "filterRuleMessage_example" // string | Limit results to rule statuses whose rules have the specified message. (optional) + filterRuleRuleID := "filterRuleRuleId_example" // string | Limit results to rule statuses whose rules represent the specified ModSecurity rule_id. (optional) + filterRuleTags := "filterRuleTags_example" // string | Limit results to rule statuses whose rules relate to the specified tag IDs. (optional) + filterRuleTagsName := "application-FBC Market" // string | Limit results to rule statuses whose rules related to the named tags. (optional) + include := "include_example" // string | Include relationships. Optional, comma separated values. Permitted values: `tags`. (optional) + pageNumber := int32(1) // int32 | Current page. (optional) + pageSize := int32(20) // int32 | Number of records per page. (optional) (default to 20) + + cfg := fastly.NewConfiguration() + apiClient := fastly.NewAPIClient(cfg) + ctx := fastly.NewAPIKeyContextFromEnv("FASTLY_API_TOKEN") + resp, r, err := apiClient.LegacyWafRuleStatusAPI.ListWafFirewallRuleStatuses(ctx, serviceID, firewallID).FilterStatus(filterStatus).FilterRuleMessage(filterRuleMessage).FilterRuleRuleID(filterRuleRuleID).FilterRuleTags(filterRuleTags).FilterRuleTagsName(filterRuleTagsName).Include(include).PageNumber(pageNumber).PageSize(pageSize).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `LegacyWafRuleStatusAPI.ListWafFirewallRuleStatuses`: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListWafFirewallRuleStatuses`: map[string]any + fmt.Fprintf(os.Stdout, "Response from `LegacyWafRuleStatusAPI.ListWafFirewallRuleStatuses`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceID** | **string** | Alphanumeric string identifying the service. | +**firewallID** | **string** | Alphanumeric string identifying a Firewall. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiListWafFirewallRuleStatusesRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **filterStatus** | **string** | Limit results to rule statuses with the specified status. | **filterRuleMessage** | **string** | Limit results to rule statuses whose rules have the specified message. | **filterRuleRuleID** | **string** | Limit results to rule statuses whose rules represent the specified ModSecurity rule_id. | **filterRuleTags** | **string** | Limit results to rule statuses whose rules relate to the specified tag IDs. | **filterRuleTagsName** | **string** | Limit results to rule statuses whose rules related to the named tags. | **include** | **string** | Include relationships. Optional, comma separated values. Permitted values: `tags`. | **pageNumber** | **int32** | Current page. | **pageSize** | **int32** | Number of records per page. | [default to 20] + +### Return type + +**map[string]any** + +### Authorization + +[API Token](https://developer.fastly.com/reference/api/#authentication) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/vnd.api+json + +[Back to top](#) | [Back to API list](../README.md#documentation-for-api-endpoints) | [Back to README](../README.md) + + +## UpdateWafFirewallRuleStatus + +Update the status of a rule + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + "github.com/fastly/fastly-go/fastly" +) + +func main() { + serviceID := "serviceId_example" // string | Alphanumeric string identifying the service. + firewallID := "firewallId_example" // string | Alphanumeric string identifying a Firewall. + wafRuleID := "wafRuleId_example" // string | Alphanumeric string identifying a WAF rule. + requestBody := map[string]map[string]any{"key": map[string]any(123)} // map[string]map[string]any | (optional) + + cfg := fastly.NewConfiguration() + apiClient := fastly.NewAPIClient(cfg) + ctx := fastly.NewAPIKeyContextFromEnv("FASTLY_API_TOKEN") + resp, r, err := apiClient.LegacyWafRuleStatusAPI.UpdateWafFirewallRuleStatus(ctx, serviceID, firewallID, wafRuleID).RequestBody(requestBody).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `LegacyWafRuleStatusAPI.UpdateWafFirewallRuleStatus`: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `UpdateWafFirewallRuleStatus`: map[string]any + fmt.Fprintf(os.Stdout, "Response from `LegacyWafRuleStatusAPI.UpdateWafFirewallRuleStatus`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceID** | **string** | Alphanumeric string identifying the service. | +**firewallID** | **string** | Alphanumeric string identifying a Firewall. | +**wafRuleID** | **string** | Alphanumeric string identifying a WAF rule. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiUpdateWafFirewallRuleStatusRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **requestBody** | **map[string]map[string]any** | | + +### Return type + +**map[string]any** + +### Authorization + +[API Token](https://developer.fastly.com/reference/api/#authentication) + +### HTTP request headers + +- **Content-Type**: application/vnd.api+json +- **Accept**: application/vnd.api+json + +[Back to top](#) | [Back to API list](../README.md#documentation-for-api-endpoints) | [Back to README](../README.md) + + +## UpdateWafFirewallRuleStatusesTag + +Create or update status of a tagged group of rules + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + "github.com/fastly/fastly-go/fastly" +) + +func main() { + serviceID := "serviceId_example" // string | Alphanumeric string identifying the service. + firewallID := "firewallId_example" // string | Alphanumeric string identifying a Firewall. + name := "name_example" // string | The tag name to use to determine the set of rules to update. For example, OWASP or language-php. (optional) + force := "force_example" // string | Whether or not to update rule statuses for disabled rules. Optional. (optional) + requestBody := map[string]map[string]any{"key": map[string]any(123)} // map[string]map[string]any | (optional) + + cfg := fastly.NewConfiguration() + apiClient := fastly.NewAPIClient(cfg) + ctx := fastly.NewAPIKeyContextFromEnv("FASTLY_API_TOKEN") + resp, r, err := apiClient.LegacyWafRuleStatusAPI.UpdateWafFirewallRuleStatusesTag(ctx, serviceID, firewallID).Name(name).Force(force).RequestBody(requestBody).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `LegacyWafRuleStatusAPI.UpdateWafFirewallRuleStatusesTag`: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `UpdateWafFirewallRuleStatusesTag`: map[string]any + fmt.Fprintf(os.Stdout, "Response from `LegacyWafRuleStatusAPI.UpdateWafFirewallRuleStatusesTag`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceID** | **string** | Alphanumeric string identifying the service. | +**firewallID** | **string** | Alphanumeric string identifying a Firewall. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiUpdateWafFirewallRuleStatusesTagRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **string** | The tag name to use to determine the set of rules to update. For example, OWASP or language-php. | **force** | **string** | Whether or not to update rule statuses for disabled rules. Optional. | **requestBody** | **map[string]map[string]any** | | + +### Return type + +**map[string]any** + +### Authorization + +[API Token](https://developer.fastly.com/reference/api/#authentication) + +### HTTP request headers + +- **Content-Type**: application/vnd.api+json +- **Accept**: application/vnd.api+json + +[Back to top](#) | [Back to API list](../README.md#documentation-for-api-endpoints) | [Back to README](../README.md) diff --git a/docs/LegacyWafRuleset.md b/docs/LegacyWafRuleset.md new file mode 100644 index 00000000..945c7dfa --- /dev/null +++ b/docs/LegacyWafRuleset.md @@ -0,0 +1,80 @@ +# LegacyWafRuleset + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**LastPush** | Pointer to **string** | Date and time WAF ruleset VCL was last deployed. | [optional] +**Vcl** | Pointer to **string** | The WAF ruleset VCL currently deployed. | [optional] + +## Methods + +### NewLegacyWafRuleset + +`func NewLegacyWafRuleset() *LegacyWafRuleset` + +NewLegacyWafRuleset instantiates a new LegacyWafRuleset object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewLegacyWafRulesetWithDefaults + +`func NewLegacyWafRulesetWithDefaults() *LegacyWafRuleset` + +NewLegacyWafRulesetWithDefaults instantiates a new LegacyWafRuleset object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetLastPush + +`func (o *LegacyWafRuleset) GetLastPush() string` + +GetLastPush returns the LastPush field if non-nil, zero value otherwise. + +### GetLastPushOk + +`func (o *LegacyWafRuleset) GetLastPushOk() (*string, bool)` + +GetLastPushOk returns a tuple with the LastPush field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLastPush + +`func (o *LegacyWafRuleset) SetLastPush(v string)` + +SetLastPush sets LastPush field to given value. + +### HasLastPush + +`func (o *LegacyWafRuleset) HasLastPush() bool` + +HasLastPush returns a boolean if a field has been set. + +### GetVcl + +`func (o *LegacyWafRuleset) GetVcl() string` + +GetVcl returns the Vcl field if non-nil, zero value otherwise. + +### GetVclOk + +`func (o *LegacyWafRuleset) GetVclOk() (*string, bool)` + +GetVclOk returns a tuple with the Vcl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVcl + +`func (o *LegacyWafRuleset) SetVcl(v string)` + +SetVcl sets Vcl field to given value. + +### HasVcl + +`func (o *LegacyWafRuleset) HasVcl() bool` + +HasVcl returns a boolean if a field has been set. + + +[Back to API list](../README.md#documentation-for-api-endpoints) | [Back to README](../README.md) diff --git a/docs/LegacyWafRulesetAPI.md b/docs/LegacyWafRulesetAPI.md new file mode 100644 index 00000000..df3a165c --- /dev/null +++ b/docs/LegacyWafRulesetAPI.md @@ -0,0 +1,218 @@ +# LegacyWafRulesetAPI + +All URIs are relative to *https://api.fastly.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**GetWafRuleset**](LegacyWafRulesetAPI.md#GetWafRuleset) | **GET** `/service/{service_id}/wafs/{firewall_id}/ruleset` | Get a WAF ruleset +[**GetWafRulesetVcl**](LegacyWafRulesetAPI.md#GetWafRulesetVcl) | **GET** `/service/{service_id}/wafs/{firewall_id}/ruleset/preview` | Generate WAF ruleset VCL +[**UpdateWafRuleset**](LegacyWafRulesetAPI.md#UpdateWafRuleset) | **PATCH** `/service/{service_id}/wafs/{firewall_id}/ruleset` | Update a WAF ruleset + + + +## GetWafRuleset + +Get a WAF ruleset + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + "github.com/fastly/fastly-go/fastly" +) + +func main() { + serviceID := "serviceId_example" // string | Alphanumeric string identifying the service. + firewallID := "firewallId_example" // string | Alphanumeric string identifying a Firewall. + + cfg := fastly.NewConfiguration() + apiClient := fastly.NewAPIClient(cfg) + ctx := fastly.NewAPIKeyContextFromEnv("FASTLY_API_TOKEN") + resp, r, err := apiClient.LegacyWafRulesetAPI.GetWafRuleset(ctx, serviceID, firewallID).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `LegacyWafRulesetAPI.GetWafRuleset`: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetWafRuleset`: map[string]any + fmt.Fprintf(os.Stdout, "Response from `LegacyWafRulesetAPI.GetWafRuleset`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceID** | **string** | Alphanumeric string identifying the service. | +**firewallID** | **string** | Alphanumeric string identifying a Firewall. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetWafRulesetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + +**map[string]any** + +### Authorization + +[API Token](https://developer.fastly.com/reference/api/#authentication) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/vnd.api+json + +[Back to top](#) | [Back to API list](../README.md#documentation-for-api-endpoints) | [Back to README](../README.md) + + +## GetWafRulesetVcl + +Generate WAF ruleset VCL + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + "github.com/fastly/fastly-go/fastly" +) + +func main() { + serviceID := "serviceId_example" // string | Alphanumeric string identifying the service. + firewallID := "firewallId_example" // string | Alphanumeric string identifying a Firewall. + + cfg := fastly.NewConfiguration() + apiClient := fastly.NewAPIClient(cfg) + ctx := fastly.NewAPIKeyContextFromEnv("FASTLY_API_TOKEN") + resp, r, err := apiClient.LegacyWafRulesetAPI.GetWafRulesetVcl(ctx, serviceID, firewallID).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `LegacyWafRulesetAPI.GetWafRulesetVcl`: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetWafRulesetVcl`: map[string]any + fmt.Fprintf(os.Stdout, "Response from `LegacyWafRulesetAPI.GetWafRulesetVcl`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceID** | **string** | Alphanumeric string identifying the service. | +**firewallID** | **string** | Alphanumeric string identifying a Firewall. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetWafRulesetVclRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + +**map[string]any** + +### Authorization + +[API Token](https://developer.fastly.com/reference/api/#authentication) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/vnd.api+json + +[Back to top](#) | [Back to API list](../README.md#documentation-for-api-endpoints) | [Back to README](../README.md) + + +## UpdateWafRuleset + +Update a WAF ruleset + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + "github.com/fastly/fastly-go/fastly" +) + +func main() { + serviceID := "serviceId_example" // string | Alphanumeric string identifying the service. + firewallID := "firewallId_example" // string | Alphanumeric string identifying a Firewall. + requestBody := map[string]map[string]any{"key": map[string]any(123)} // map[string]map[string]any | (optional) + + cfg := fastly.NewConfiguration() + apiClient := fastly.NewAPIClient(cfg) + ctx := fastly.NewAPIKeyContextFromEnv("FASTLY_API_TOKEN") + resp, r, err := apiClient.LegacyWafRulesetAPI.UpdateWafRuleset(ctx, serviceID, firewallID).RequestBody(requestBody).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `LegacyWafRulesetAPI.UpdateWafRuleset`: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `UpdateWafRuleset`: map[string]any + fmt.Fprintf(os.Stdout, "Response from `LegacyWafRulesetAPI.UpdateWafRuleset`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceID** | **string** | Alphanumeric string identifying the service. | +**firewallID** | **string** | Alphanumeric string identifying a Firewall. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiUpdateWafRulesetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **requestBody** | **map[string]map[string]any** | | + +### Return type + +**map[string]any** + +### Authorization + +[API Token](https://developer.fastly.com/reference/api/#authentication) + +### HTTP request headers + +- **Content-Type**: application/vnd.api+json +- **Accept**: application/vnd.api+json + +[Back to top](#) | [Back to API list](../README.md#documentation-for-api-endpoints) | [Back to README](../README.md) diff --git a/docs/LegacyWafTag.md b/docs/LegacyWafTag.md new file mode 100644 index 00000000..98f6f70b --- /dev/null +++ b/docs/LegacyWafTag.md @@ -0,0 +1,54 @@ +# LegacyWafTag + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | Pointer to **string** | Name of the tag. | [optional] + +## Methods + +### NewLegacyWafTag + +`func NewLegacyWafTag() *LegacyWafTag` + +NewLegacyWafTag instantiates a new LegacyWafTag object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewLegacyWafTagWithDefaults + +`func NewLegacyWafTagWithDefaults() *LegacyWafTag` + +NewLegacyWafTagWithDefaults instantiates a new LegacyWafTag object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetName + +`func (o *LegacyWafTag) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *LegacyWafTag) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *LegacyWafTag) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *LegacyWafTag) HasName() bool` + +HasName returns a boolean if a field has been set. + + +[Back to API list](../README.md#documentation-for-api-endpoints) | [Back to README](../README.md) diff --git a/docs/LegacyWafTagAPI.md b/docs/LegacyWafTagAPI.md new file mode 100644 index 00000000..80a7b335 --- /dev/null +++ b/docs/LegacyWafTagAPI.md @@ -0,0 +1,74 @@ +# LegacyWafTagAPI + +All URIs are relative to *https://api.fastly.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**ListLegacyWafTags**](LegacyWafTagAPI.md#ListLegacyWafTags) | **GET** `/wafs/tags` | List WAF tags + + + +## ListLegacyWafTags + +List WAF tags + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + "github.com/fastly/fastly-go/fastly" +) + +func main() { + filterName := "filterName_example" // string | Limit the returned tags to a specific name. (optional) + pageNumber := int32(1) // int32 | Current page. (optional) + pageSize := int32(20) // int32 | Number of records per page. (optional) (default to 20) + include := "rules" // string | Include relationships. Optional, comma separated values. Permitted values: `rules`. (optional) + + cfg := fastly.NewConfiguration() + apiClient := fastly.NewAPIClient(cfg) + ctx := fastly.NewAPIKeyContextFromEnv("FASTLY_API_TOKEN") + resp, r, err := apiClient.LegacyWafTagAPI.ListLegacyWafTags(ctx).FilterName(filterName).PageNumber(pageNumber).PageSize(pageSize).Include(include).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `LegacyWafTagAPI.ListLegacyWafTags`: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListLegacyWafTags`: map[string]any + fmt.Fprintf(os.Stdout, "Response from `LegacyWafTagAPI.ListLegacyWafTags`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiListLegacyWafTagsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **filterName** | **string** | Limit the returned tags to a specific name. | **pageNumber** | **int32** | Current page. | **pageSize** | **int32** | Number of records per page. | [default to 20] **include** | **string** | Include relationships. Optional, comma separated values. Permitted values: `rules`. | + +### Return type + +**map[string]any** + +### Authorization + +[API Token](https://developer.fastly.com/reference/api/#authentication) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/vnd.api+json + +[Back to top](#) | [Back to API list](../README.md#documentation-for-api-endpoints) | [Back to README](../README.md) diff --git a/docs/LegacyWafUpdateStatus.md b/docs/LegacyWafUpdateStatus.md new file mode 100644 index 00000000..774b60b0 --- /dev/null +++ b/docs/LegacyWafUpdateStatus.md @@ -0,0 +1,184 @@ +# LegacyWafUpdateStatus + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CompletedAt** | Pointer to **string** | Date and time that job was completed. | [optional] +**CreatedAt** | Pointer to **string** | Date and time that job was created. | [optional] +**Data** | Pointer to **string** | This field can contain data passed to the background worker as well as output from the background job. | [optional] +**Message** | Pointer to **string** | Message with information about the status of the update. | [optional] +**Status** | Pointer to **string** | Current status of the update. | [optional] +**UpdatedAt** | Pointer to **string** | Date and time that job was last updated. | [optional] + +## Methods + +### NewLegacyWafUpdateStatus + +`func NewLegacyWafUpdateStatus() *LegacyWafUpdateStatus` + +NewLegacyWafUpdateStatus instantiates a new LegacyWafUpdateStatus object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewLegacyWafUpdateStatusWithDefaults + +`func NewLegacyWafUpdateStatusWithDefaults() *LegacyWafUpdateStatus` + +NewLegacyWafUpdateStatusWithDefaults instantiates a new LegacyWafUpdateStatus object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetCompletedAt + +`func (o *LegacyWafUpdateStatus) GetCompletedAt() string` + +GetCompletedAt returns the CompletedAt field if non-nil, zero value otherwise. + +### GetCompletedAtOk + +`func (o *LegacyWafUpdateStatus) GetCompletedAtOk() (*string, bool)` + +GetCompletedAtOk returns a tuple with the CompletedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCompletedAt + +`func (o *LegacyWafUpdateStatus) SetCompletedAt(v string)` + +SetCompletedAt sets CompletedAt field to given value. + +### HasCompletedAt + +`func (o *LegacyWafUpdateStatus) HasCompletedAt() bool` + +HasCompletedAt returns a boolean if a field has been set. + +### GetCreatedAt + +`func (o *LegacyWafUpdateStatus) GetCreatedAt() string` + +GetCreatedAt returns the CreatedAt field if non-nil, zero value otherwise. + +### GetCreatedAtOk + +`func (o *LegacyWafUpdateStatus) GetCreatedAtOk() (*string, bool)` + +GetCreatedAtOk returns a tuple with the CreatedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreatedAt + +`func (o *LegacyWafUpdateStatus) SetCreatedAt(v string)` + +SetCreatedAt sets CreatedAt field to given value. + +### HasCreatedAt + +`func (o *LegacyWafUpdateStatus) HasCreatedAt() bool` + +HasCreatedAt returns a boolean if a field has been set. + +### GetData + +`func (o *LegacyWafUpdateStatus) GetData() string` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *LegacyWafUpdateStatus) GetDataOk() (*string, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *LegacyWafUpdateStatus) SetData(v string)` + +SetData sets Data field to given value. + +### HasData + +`func (o *LegacyWafUpdateStatus) HasData() bool` + +HasData returns a boolean if a field has been set. + +### GetMessage + +`func (o *LegacyWafUpdateStatus) GetMessage() string` + +GetMessage returns the Message field if non-nil, zero value otherwise. + +### GetMessageOk + +`func (o *LegacyWafUpdateStatus) 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 *LegacyWafUpdateStatus) SetMessage(v string)` + +SetMessage sets Message field to given value. + +### HasMessage + +`func (o *LegacyWafUpdateStatus) HasMessage() bool` + +HasMessage returns a boolean if a field has been set. + +### GetStatus + +`func (o *LegacyWafUpdateStatus) GetStatus() string` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *LegacyWafUpdateStatus) 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 *LegacyWafUpdateStatus) SetStatus(v string)` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *LegacyWafUpdateStatus) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + +### GetUpdatedAt + +`func (o *LegacyWafUpdateStatus) GetUpdatedAt() string` + +GetUpdatedAt returns the UpdatedAt field if non-nil, zero value otherwise. + +### GetUpdatedAtOk + +`func (o *LegacyWafUpdateStatus) GetUpdatedAtOk() (*string, bool)` + +GetUpdatedAtOk returns a tuple with the UpdatedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUpdatedAt + +`func (o *LegacyWafUpdateStatus) SetUpdatedAt(v string)` + +SetUpdatedAt sets UpdatedAt field to given value. + +### HasUpdatedAt + +`func (o *LegacyWafUpdateStatus) HasUpdatedAt() bool` + +HasUpdatedAt returns a boolean if a field has been set. + + +[Back to API list](../README.md#documentation-for-api-endpoints) | [Back to README](../README.md) diff --git a/docs/LegacyWafUpdateStatusAPI.md b/docs/LegacyWafUpdateStatusAPI.md new file mode 100644 index 00000000..669ad022 --- /dev/null +++ b/docs/LegacyWafUpdateStatusAPI.md @@ -0,0 +1,152 @@ +# LegacyWafUpdateStatusAPI + +All URIs are relative to *https://api.fastly.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**GetWafUpdateStatus**](LegacyWafUpdateStatusAPI.md#GetWafUpdateStatus) | **GET** `/service/{service_id}/wafs/{firewall_id}/update_statuses/{update_status_id}` | Get the status of a WAF update +[**ListWafUpdateStatuses**](LegacyWafUpdateStatusAPI.md#ListWafUpdateStatuses) | **GET** `/service/{service_id}/wafs/{firewall_id}/update_statuses` | List update statuses + + + +## GetWafUpdateStatus + +Get the status of a WAF update + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + "github.com/fastly/fastly-go/fastly" +) + +func main() { + serviceID := "serviceId_example" // string | Alphanumeric string identifying the service. + firewallID := "firewallId_example" // string | Alphanumeric string identifying a Firewall. + updateStatusID := "updateStatusId_example" // string | Alphanumeric string identifying a WAF update status. + + cfg := fastly.NewConfiguration() + apiClient := fastly.NewAPIClient(cfg) + ctx := fastly.NewAPIKeyContextFromEnv("FASTLY_API_TOKEN") + resp, r, err := apiClient.LegacyWafUpdateStatusAPI.GetWafUpdateStatus(ctx, serviceID, firewallID, updateStatusID).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `LegacyWafUpdateStatusAPI.GetWafUpdateStatus`: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetWafUpdateStatus`: map[string]any + fmt.Fprintf(os.Stdout, "Response from `LegacyWafUpdateStatusAPI.GetWafUpdateStatus`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceID** | **string** | Alphanumeric string identifying the service. | +**firewallID** | **string** | Alphanumeric string identifying a Firewall. | +**updateStatusID** | **string** | Alphanumeric string identifying a WAF update status. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetWafUpdateStatusRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + +**map[string]any** + +### Authorization + +[API Token](https://developer.fastly.com/reference/api/#authentication) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/vnd.api+json + +[Back to top](#) | [Back to API list](../README.md#documentation-for-api-endpoints) | [Back to README](../README.md) + + +## ListWafUpdateStatuses + +List update statuses + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + "github.com/fastly/fastly-go/fastly" +) + +func main() { + serviceID := "serviceId_example" // string | Alphanumeric string identifying the service. + firewallID := "firewallId_example" // string | Alphanumeric string identifying a Firewall. + pageNumber := int32(1) // int32 | Current page. (optional) + pageSize := int32(20) // int32 | Number of records per page. (optional) (default to 20) + include := "waf" // string | Include relationships. Optional, comma separated values. Permitted values: `waf`. (optional) + + cfg := fastly.NewConfiguration() + apiClient := fastly.NewAPIClient(cfg) + ctx := fastly.NewAPIKeyContextFromEnv("FASTLY_API_TOKEN") + resp, r, err := apiClient.LegacyWafUpdateStatusAPI.ListWafUpdateStatuses(ctx, serviceID, firewallID).PageNumber(pageNumber).PageSize(pageSize).Include(include).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `LegacyWafUpdateStatusAPI.ListWafUpdateStatuses`: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListWafUpdateStatuses`: map[string]any + fmt.Fprintf(os.Stdout, "Response from `LegacyWafUpdateStatusAPI.ListWafUpdateStatuses`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceID** | **string** | Alphanumeric string identifying the service. | +**firewallID** | **string** | Alphanumeric string identifying a Firewall. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiListWafUpdateStatusesRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **pageNumber** | **int32** | Current page. | **pageSize** | **int32** | Number of records per page. | [default to 20] **include** | **string** | Include relationships. Optional, comma separated values. Permitted values: `waf`. | + +### Return type + +**map[string]any** + +### Authorization + +[API Token](https://developer.fastly.com/reference/api/#authentication) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/vnd.api+json + +[Back to top](#) | [Back to API list](../README.md#documentation-for-api-endpoints) | [Back to README](../README.md) diff --git a/docs/LoggingKafkaAPI.md b/docs/LoggingKafkaAPI.md index 87d34054..6fc407a0 100644 --- a/docs/LoggingKafkaAPI.md +++ b/docs/LoggingKafkaAPI.md @@ -8,6 +8,7 @@ Method | HTTP request | Description [**DeleteLogKafka**](LoggingKafkaAPI.md#DeleteLogKafka) | **DELETE** `/service/{service_id}/version/{version_id}/logging/kafka/{logging_kafka_name}` | Delete the Kafka log endpoint [**GetLogKafka**](LoggingKafkaAPI.md#GetLogKafka) | **GET** `/service/{service_id}/version/{version_id}/logging/kafka/{logging_kafka_name}` | Get a Kafka log endpoint [**ListLogKafka**](LoggingKafkaAPI.md#ListLogKafka) | **GET** `/service/{service_id}/version/{version_id}/logging/kafka` | List Kafka log endpoints +[**UpdateLogKafka**](LoggingKafkaAPI.md#UpdateLogKafka) | **PUT** `/service/{service_id}/version/{version_id}/logging/kafka/{logging_kafka_name}` | Update the Kafka log endpoint @@ -308,3 +309,74 @@ Name | Type | Description | Notes - **Accept**: application/json [Back to top](#) | [Back to API list](../README.md#documentation-for-api-endpoints) | [Back to README](../README.md) + + +## UpdateLogKafka + +Update the Kafka log endpoint + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + "github.com/fastly/fastly-go/fastly" +) + +func main() { + serviceID := "serviceId_example" // string | Alphanumeric string identifying the service. + versionID := int32(56) // int32 | Integer identifying a service version. + loggingKafkaName := "loggingKafkaName_example" // string | The name for the real-time logging configuration. + + cfg := fastly.NewConfiguration() + apiClient := fastly.NewAPIClient(cfg) + ctx := fastly.NewAPIKeyContextFromEnv("FASTLY_API_TOKEN") + resp, r, err := apiClient.LoggingKafkaAPI.UpdateLogKafka(ctx, serviceID, versionID, loggingKafkaName).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `LoggingKafkaAPI.UpdateLogKafka`: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `UpdateLogKafka`: LoggingKafkaResponse + fmt.Fprintf(os.Stdout, "Response from `LoggingKafkaAPI.UpdateLogKafka`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceID** | **string** | Alphanumeric string identifying the service. | +**versionID** | **int32** | Integer identifying a service version. | +**loggingKafkaName** | **string** | The name for the real-time logging configuration. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiUpdateLogKafkaRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + +[**LoggingKafkaResponse**](LoggingKafkaResponse.md) + +### Authorization + +[API Token](https://developer.fastly.com/reference/api/#authentication) + +### HTTP request headers + +- **Content-Type**: application/x-www-form-urlencoded +- **Accept**: application/json + +[Back to top](#) | [Back to API list](../README.md#documentation-for-api-endpoints) | [Back to README](../README.md) diff --git a/docs/LoggingKinesisAPI.md b/docs/LoggingKinesisAPI.md index ab2872bb..d1381e0e 100644 --- a/docs/LoggingKinesisAPI.md +++ b/docs/LoggingKinesisAPI.md @@ -8,6 +8,7 @@ Method | HTTP request | Description [**DeleteLogKinesis**](LoggingKinesisAPI.md#DeleteLogKinesis) | **DELETE** `/service/{service_id}/version/{version_id}/logging/kinesis/{logging_kinesis_name}` | Delete the Amazon Kinesis log endpoint [**GetLogKinesis**](LoggingKinesisAPI.md#GetLogKinesis) | **GET** `/service/{service_id}/version/{version_id}/logging/kinesis/{logging_kinesis_name}` | Get an Amazon Kinesis log endpoint [**ListLogKinesis**](LoggingKinesisAPI.md#ListLogKinesis) | **GET** `/service/{service_id}/version/{version_id}/logging/kinesis` | List Amazon Kinesis log endpoints +[**UpdateLogKinesis**](LoggingKinesisAPI.md#UpdateLogKinesis) | **PUT** `/service/{service_id}/version/{version_id}/logging/kinesis/{logging_kinesis_name}` | Update the Amazon Kinesis log endpoint @@ -298,3 +299,74 @@ Name | Type | Description | Notes - **Accept**: application/json [Back to top](#) | [Back to API list](../README.md#documentation-for-api-endpoints) | [Back to README](../README.md) + + +## UpdateLogKinesis + +Update the Amazon Kinesis log endpoint + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + "github.com/fastly/fastly-go/fastly" +) + +func main() { + serviceID := "serviceId_example" // string | Alphanumeric string identifying the service. + versionID := int32(56) // int32 | Integer identifying a service version. + loggingKinesisName := "loggingKinesisName_example" // string | The name for the real-time logging configuration. + + cfg := fastly.NewConfiguration() + apiClient := fastly.NewAPIClient(cfg) + ctx := fastly.NewAPIKeyContextFromEnv("FASTLY_API_TOKEN") + resp, r, err := apiClient.LoggingKinesisAPI.UpdateLogKinesis(ctx, serviceID, versionID, loggingKinesisName).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `LoggingKinesisAPI.UpdateLogKinesis`: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `UpdateLogKinesis`: LoggingKinesisResponse + fmt.Fprintf(os.Stdout, "Response from `LoggingKinesisAPI.UpdateLogKinesis`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceID** | **string** | Alphanumeric string identifying the service. | +**versionID** | **int32** | Integer identifying a service version. | +**loggingKinesisName** | **string** | The name for the real-time logging configuration. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiUpdateLogKinesisRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + +[**LoggingKinesisResponse**](LoggingKinesisResponse.md) + +### Authorization + +[API Token](https://developer.fastly.com/reference/api/#authentication) + +### HTTP request headers + +- **Content-Type**: application/x-www-form-urlencoded +- **Accept**: application/json + +[Back to top](#) | [Back to API list](../README.md#documentation-for-api-endpoints) | [Back to README](../README.md) diff --git a/docs/OriginInspector.md b/docs/OriginInspector.md new file mode 100644 index 00000000..94670ab2 --- /dev/null +++ b/docs/OriginInspector.md @@ -0,0 +1,106 @@ +# OriginInspector + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Timestamp** | Pointer to [**OriginInspectorSubsequentRequestTimestamp**](OriginInspectorSubsequentRequestTimestamp.md) | | [optional] +**AggregateDelay** | Pointer to **int32** | Offset of entry timestamps from the current time due to processing time. | [optional] +**Data** | Pointer to [**[]OriginInspectorRealtimeEntry**](OriginInspectorRealtimeEntry.md) | A list of report [entries](#entry-data-model), each representing one second of time. | [optional] + +## Methods + +### NewOriginInspector + +`func NewOriginInspector() *OriginInspector` + +NewOriginInspector instantiates a new OriginInspector object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewOriginInspectorWithDefaults + +`func NewOriginInspectorWithDefaults() *OriginInspector` + +NewOriginInspectorWithDefaults instantiates a new OriginInspector object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetTimestamp + +`func (o *OriginInspector) GetTimestamp() OriginInspectorSubsequentRequestTimestamp` + +GetTimestamp returns the Timestamp field if non-nil, zero value otherwise. + +### GetTimestampOk + +`func (o *OriginInspector) GetTimestampOk() (*OriginInspectorSubsequentRequestTimestamp, bool)` + +GetTimestampOk returns a tuple with the Timestamp field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTimestamp + +`func (o *OriginInspector) SetTimestamp(v OriginInspectorSubsequentRequestTimestamp)` + +SetTimestamp sets Timestamp field to given value. + +### HasTimestamp + +`func (o *OriginInspector) HasTimestamp() bool` + +HasTimestamp returns a boolean if a field has been set. + +### GetAggregateDelay + +`func (o *OriginInspector) GetAggregateDelay() int32` + +GetAggregateDelay returns the AggregateDelay field if non-nil, zero value otherwise. + +### GetAggregateDelayOk + +`func (o *OriginInspector) GetAggregateDelayOk() (*int32, bool)` + +GetAggregateDelayOk returns a tuple with the AggregateDelay field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAggregateDelay + +`func (o *OriginInspector) SetAggregateDelay(v int32)` + +SetAggregateDelay sets AggregateDelay field to given value. + +### HasAggregateDelay + +`func (o *OriginInspector) HasAggregateDelay() bool` + +HasAggregateDelay returns a boolean if a field has been set. + +### GetData + +`func (o *OriginInspector) GetData() []OriginInspectorRealtimeEntry` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *OriginInspector) GetDataOk() (*[]OriginInspectorRealtimeEntry, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *OriginInspector) SetData(v []OriginInspectorRealtimeEntry)` + +SetData sets Data field to given value. + +### HasData + +`func (o *OriginInspector) HasData() bool` + +HasData returns a boolean if a field has been set. + + +[Back to API list](../README.md#documentation-for-api-endpoints) | [Back to README](../README.md) diff --git a/docs/OriginInspectorDimensions.md b/docs/OriginInspectorDimensions.md new file mode 100644 index 00000000..8cbb7bdd --- /dev/null +++ b/docs/OriginInspectorDimensions.md @@ -0,0 +1,106 @@ +# OriginInspectorDimensions + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Region** | Pointer to **string** | The geographic region from which the edge responses in this data entry were delivered. If unspecified, results are aggregated across regions. | [optional] +**Datacenter** | Pointer to **string** | The POP from which the edge responses in this data entry were delivered. If unspecified, results are aggregated across POPs. | [optional] +**Host** | Pointer to **string** | The origin host from which the edge responses in this data entry were delivered. If unspecified, results are aggregated across origin hosts. | [optional] + +## Methods + +### NewOriginInspectorDimensions + +`func NewOriginInspectorDimensions() *OriginInspectorDimensions` + +NewOriginInspectorDimensions instantiates a new OriginInspectorDimensions object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewOriginInspectorDimensionsWithDefaults + +`func NewOriginInspectorDimensionsWithDefaults() *OriginInspectorDimensions` + +NewOriginInspectorDimensionsWithDefaults instantiates a new OriginInspectorDimensions object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetRegion + +`func (o *OriginInspectorDimensions) GetRegion() string` + +GetRegion returns the Region field if non-nil, zero value otherwise. + +### GetRegionOk + +`func (o *OriginInspectorDimensions) GetRegionOk() (*string, bool)` + +GetRegionOk returns a tuple with the Region field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRegion + +`func (o *OriginInspectorDimensions) SetRegion(v string)` + +SetRegion sets Region field to given value. + +### HasRegion + +`func (o *OriginInspectorDimensions) HasRegion() bool` + +HasRegion returns a boolean if a field has been set. + +### GetDatacenter + +`func (o *OriginInspectorDimensions) GetDatacenter() string` + +GetDatacenter returns the Datacenter field if non-nil, zero value otherwise. + +### GetDatacenterOk + +`func (o *OriginInspectorDimensions) GetDatacenterOk() (*string, bool)` + +GetDatacenterOk returns a tuple with the Datacenter field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDatacenter + +`func (o *OriginInspectorDimensions) SetDatacenter(v string)` + +SetDatacenter sets Datacenter field to given value. + +### HasDatacenter + +`func (o *OriginInspectorDimensions) HasDatacenter() bool` + +HasDatacenter returns a boolean if a field has been set. + +### GetHost + +`func (o *OriginInspectorDimensions) GetHost() string` + +GetHost returns the Host field if non-nil, zero value otherwise. + +### GetHostOk + +`func (o *OriginInspectorDimensions) GetHostOk() (*string, bool)` + +GetHostOk returns a tuple with the Host field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHost + +`func (o *OriginInspectorDimensions) SetHost(v string)` + +SetHost sets Host field to given value. + +### HasHost + +`func (o *OriginInspectorDimensions) HasHost() bool` + +HasHost returns a boolean if a field has been set. + + +[Back to API list](../README.md#documentation-for-api-endpoints) | [Back to README](../README.md) diff --git a/docs/OriginInspectorEntry.md b/docs/OriginInspectorEntry.md new file mode 100644 index 00000000..66c61271 --- /dev/null +++ b/docs/OriginInspectorEntry.md @@ -0,0 +1,80 @@ +# OriginInspectorEntry + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Dimensions** | Pointer to [**OriginInspectorDimensions**](OriginInspectorDimensions.md) | | [optional] +**Values** | Pointer to [**[]OriginInspectorValues**](OriginInspectorValues.md) | An array of values representing the metric values at each point in time. Note that this dataset is sparse: only the keys with non-zero values will be included in the record. | [optional] + +## Methods + +### NewOriginInspectorEntry + +`func NewOriginInspectorEntry() *OriginInspectorEntry` + +NewOriginInspectorEntry instantiates a new OriginInspectorEntry object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewOriginInspectorEntryWithDefaults + +`func NewOriginInspectorEntryWithDefaults() *OriginInspectorEntry` + +NewOriginInspectorEntryWithDefaults instantiates a new OriginInspectorEntry object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetDimensions + +`func (o *OriginInspectorEntry) GetDimensions() OriginInspectorDimensions` + +GetDimensions returns the Dimensions field if non-nil, zero value otherwise. + +### GetDimensionsOk + +`func (o *OriginInspectorEntry) GetDimensionsOk() (*OriginInspectorDimensions, bool)` + +GetDimensionsOk returns a tuple with the Dimensions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDimensions + +`func (o *OriginInspectorEntry) SetDimensions(v OriginInspectorDimensions)` + +SetDimensions sets Dimensions field to given value. + +### HasDimensions + +`func (o *OriginInspectorEntry) HasDimensions() bool` + +HasDimensions returns a boolean if a field has been set. + +### GetValues + +`func (o *OriginInspectorEntry) GetValues() []OriginInspectorValues` + +GetValues returns the Values field if non-nil, zero value otherwise. + +### GetValuesOk + +`func (o *OriginInspectorEntry) GetValuesOk() (*[]OriginInspectorValues, bool)` + +GetValuesOk returns a tuple with the Values field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetValues + +`func (o *OriginInspectorEntry) SetValues(v []OriginInspectorValues)` + +SetValues sets Values field to given value. + +### HasValues + +`func (o *OriginInspectorEntry) HasValues() bool` + +HasValues returns a boolean if a field has been set. + + +[Back to API list](../README.md#documentation-for-api-endpoints) | [Back to README](../README.md) diff --git a/docs/OriginInspectorHistorical.md b/docs/OriginInspectorHistorical.md new file mode 100644 index 00000000..fc3610ae --- /dev/null +++ b/docs/OriginInspectorHistorical.md @@ -0,0 +1,142 @@ +# OriginInspectorHistorical + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Status** | Pointer to **string** | Whether or not we were able to successfully execute the query. | [optional] +**Meta** | Pointer to [**OriginInspectorHistoricalMeta**](OriginInspectorHistoricalMeta.md) | | [optional] +**Msg** | Pointer to **NullableString** | If the query was not successful, this will provide a string that explains why. | [optional] +**Data** | Pointer to [**[]OriginInspectorHistoricalData**](OriginInspectorHistoricalData.md) | A list of [entries](#entry-data-model), each representing one unique combination of dimensions, such as origin host, region or POP. | [optional] + +## Methods + +### NewOriginInspectorHistorical + +`func NewOriginInspectorHistorical() *OriginInspectorHistorical` + +NewOriginInspectorHistorical instantiates a new OriginInspectorHistorical object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewOriginInspectorHistoricalWithDefaults + +`func NewOriginInspectorHistoricalWithDefaults() *OriginInspectorHistorical` + +NewOriginInspectorHistoricalWithDefaults instantiates a new OriginInspectorHistorical object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetStatus + +`func (o *OriginInspectorHistorical) GetStatus() string` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *OriginInspectorHistorical) 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 *OriginInspectorHistorical) SetStatus(v string)` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *OriginInspectorHistorical) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + +### GetMeta + +`func (o *OriginInspectorHistorical) GetMeta() OriginInspectorHistoricalMeta` + +GetMeta returns the Meta field if non-nil, zero value otherwise. + +### GetMetaOk + +`func (o *OriginInspectorHistorical) GetMetaOk() (*OriginInspectorHistoricalMeta, bool)` + +GetMetaOk returns a tuple with the Meta field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMeta + +`func (o *OriginInspectorHistorical) SetMeta(v OriginInspectorHistoricalMeta)` + +SetMeta sets Meta field to given value. + +### HasMeta + +`func (o *OriginInspectorHistorical) HasMeta() bool` + +HasMeta returns a boolean if a field has been set. + +### GetMsg + +`func (o *OriginInspectorHistorical) GetMsg() string` + +GetMsg returns the Msg field if non-nil, zero value otherwise. + +### GetMsgOk + +`func (o *OriginInspectorHistorical) GetMsgOk() (*string, bool)` + +GetMsgOk returns a tuple with the Msg field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMsg + +`func (o *OriginInspectorHistorical) SetMsg(v string)` + +SetMsg sets Msg field to given value. + +### HasMsg + +`func (o *OriginInspectorHistorical) HasMsg() bool` + +HasMsg returns a boolean if a field has been set. + +### SetMsgNil + +`func (o *OriginInspectorHistorical) SetMsgNil(b bool)` + + SetMsgNil sets the value for Msg to be an explicit nil + +### UnsetMsg +`func (o *OriginInspectorHistorical) UnsetMsg()` + +UnsetMsg ensures that no value is present for Msg, not even an explicit nil +### GetData + +`func (o *OriginInspectorHistorical) GetData() []OriginInspectorHistoricalData` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *OriginInspectorHistorical) GetDataOk() (*[]OriginInspectorHistoricalData, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *OriginInspectorHistorical) SetData(v []OriginInspectorHistoricalData)` + +SetData sets Data field to given value. + +### HasData + +`func (o *OriginInspectorHistorical) HasData() bool` + +HasData returns a boolean if a field has been set. + + +[Back to API list](../README.md#documentation-for-api-endpoints) | [Back to README](../README.md) diff --git a/docs/OriginInspectorHistoricalAPI.md b/docs/OriginInspectorHistoricalAPI.md new file mode 100644 index 00000000..3d0ab6a7 --- /dev/null +++ b/docs/OriginInspectorHistoricalAPI.md @@ -0,0 +1,85 @@ +# OriginInspectorHistoricalAPI + +All URIs are relative to *https://api.fastly.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**GetOriginInspectorHistorical**](OriginInspectorHistoricalAPI.md#GetOriginInspectorHistorical) | **GET** `/metrics/origins/services/{service_id}` | Get historical origin data for a service + + + +## GetOriginInspectorHistorical + +Get historical origin data for a service + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + "github.com/fastly/fastly-go/fastly" +) + +func main() { + serviceID := "serviceId_example" // string | Alphanumeric string identifying the service. + start := "2021-08-01T00:00:00.000Z" // string | A valid ISO-8601-formatted date and time, or UNIX timestamp, indicating the inclusive start of the query time range. If not provided, a default is chosen based on the provided `downsample` value. (optional) + end := "2020-08-02T00:00:00.000Z" // string | A valid ISO-8601-formatted date and time, or UNIX timestamp, indicating the exclusive end of the query time range. If not provided, a default is chosen based on the provided `downsample` value. (optional) + downsample := "hour" // string | Duration of sample windows. (optional) (default to "hour") + metric := "resp_body_bytes,status_2xx" // string | The metric to retrieve. Up to ten comma-separated metrics are accepted. (optional) (default to "responses") + groupBy := "host" // string | Dimensions to return in the query. Multiple dimensions may be separated by commas. For example, `group_by=host` will return one timeseries for every origin host, as a total across all POPs. (optional) + limit := "limit_example" // string | Number of results per page. The maximum is 200. (optional) (default to "100") + cursor := "cursor_example" // string | Cursor value from a previous response to retrieve the next page. To request the first page, this should be empty. (optional) + region := "usa" // string | Limit query to one or more specific geographic regions. Values should be comma-separated. (optional) + datacenter := "SJC,STP" // string | Limit query to one or more specific POPs. Values should be comma-separated. (optional) + host := "origin_1,origin_2" // string | Limit query to one or more specific origin hosts. Values should be comma-separated. (optional) + + cfg := fastly.NewConfiguration() + apiClient := fastly.NewAPIClient(cfg) + ctx := fastly.NewAPIKeyContextFromEnv("FASTLY_API_TOKEN") + resp, r, err := apiClient.OriginInspectorHistoricalAPI.GetOriginInspectorHistorical(ctx, serviceID).Start(start).End(end).Downsample(downsample).Metric(metric).GroupBy(groupBy).Limit(limit).Cursor(cursor).Region(region).Datacenter(datacenter).Host(host).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `OriginInspectorHistoricalAPI.GetOriginInspectorHistorical`: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetOriginInspectorHistorical`: HistoricalOriginsResponse + fmt.Fprintf(os.Stdout, "Response from `OriginInspectorHistoricalAPI.GetOriginInspectorHistorical`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceID** | **string** | Alphanumeric string identifying the service. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetOriginInspectorHistoricalRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **start** | **string** | A valid ISO-8601-formatted date and time, or UNIX timestamp, indicating the inclusive start of the query time range. If not provided, a default is chosen based on the provided `downsample` value. | **end** | **string** | A valid ISO-8601-formatted date and time, or UNIX timestamp, indicating the exclusive end of the query time range. If not provided, a default is chosen based on the provided `downsample` value. | **downsample** | **string** | Duration of sample windows. | [default to "hour"] **metric** | **string** | The metric to retrieve. Up to ten comma-separated metrics are accepted. | [default to "responses"] **groupBy** | **string** | Dimensions to return in the query. Multiple dimensions may be separated by commas. For example, `group_by=host` will return one timeseries for every origin host, as a total across all POPs. | **limit** | **string** | Number of results per page. The maximum is 200. | [default to "100"] **cursor** | **string** | Cursor value from a previous response to retrieve the next page. To request the first page, this should be empty. | **region** | **string** | Limit query to one or more specific geographic regions. Values should be comma-separated. | **datacenter** | **string** | Limit query to one or more specific POPs. Values should be comma-separated. | **host** | **string** | Limit query to one or more specific origin hosts. Values should be comma-separated. | + +### Return type + +[**HistoricalOriginsResponse**](HistoricalOriginsResponse.md) + +### Authorization + +[API Token](https://developer.fastly.com/reference/api/#authentication) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[Back to top](#) | [Back to API list](../README.md#documentation-for-api-endpoints) | [Back to README](../README.md) diff --git a/docs/OriginInspectorHistoricalData.md b/docs/OriginInspectorHistoricalData.md new file mode 100644 index 00000000..6e37fd72 --- /dev/null +++ b/docs/OriginInspectorHistoricalData.md @@ -0,0 +1,80 @@ +# OriginInspectorHistoricalData + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Dimensions** | Pointer to [**OriginInspectorDimensions**](OriginInspectorDimensions.md) | | [optional] +**Values** | Pointer to [**Values**](Values.md) | | [optional] + +## Methods + +### NewOriginInspectorHistoricalData + +`func NewOriginInspectorHistoricalData() *OriginInspectorHistoricalData` + +NewOriginInspectorHistoricalData instantiates a new OriginInspectorHistoricalData object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewOriginInspectorHistoricalDataWithDefaults + +`func NewOriginInspectorHistoricalDataWithDefaults() *OriginInspectorHistoricalData` + +NewOriginInspectorHistoricalDataWithDefaults instantiates a new OriginInspectorHistoricalData object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetDimensions + +`func (o *OriginInspectorHistoricalData) GetDimensions() OriginInspectorDimensions` + +GetDimensions returns the Dimensions field if non-nil, zero value otherwise. + +### GetDimensionsOk + +`func (o *OriginInspectorHistoricalData) GetDimensionsOk() (*OriginInspectorDimensions, bool)` + +GetDimensionsOk returns a tuple with the Dimensions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDimensions + +`func (o *OriginInspectorHistoricalData) SetDimensions(v OriginInspectorDimensions)` + +SetDimensions sets Dimensions field to given value. + +### HasDimensions + +`func (o *OriginInspectorHistoricalData) HasDimensions() bool` + +HasDimensions returns a boolean if a field has been set. + +### GetValues + +`func (o *OriginInspectorHistoricalData) GetValues() Values` + +GetValues returns the Values field if non-nil, zero value otherwise. + +### GetValuesOk + +`func (o *OriginInspectorHistoricalData) GetValuesOk() (*Values, bool)` + +GetValuesOk returns a tuple with the Values field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetValues + +`func (o *OriginInspectorHistoricalData) SetValues(v Values)` + +SetValues sets Values field to given value. + +### HasValues + +`func (o *OriginInspectorHistoricalData) HasValues() bool` + +HasValues returns a boolean if a field has been set. + + +[Back to API list](../README.md#documentation-for-api-endpoints) | [Back to README](../README.md) diff --git a/docs/OriginInspectorHistoricalMeta.md b/docs/OriginInspectorHistoricalMeta.md new file mode 100644 index 00000000..a985c4de --- /dev/null +++ b/docs/OriginInspectorHistoricalMeta.md @@ -0,0 +1,262 @@ +# OriginInspectorHistoricalMeta + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Start** | Pointer to **string** | Start time that was used to perform the query as an ISO-8601-formatted date and time. | [optional] +**End** | Pointer to **string** | End time that was used to perform the query as an ISO-8601-formatted date and time. | [optional] +**Downsample** | Pointer to **string** | Downsample that was used to perform the query. One of `minute`, `hour` or `day`. | [optional] +**Metrics** | Pointer to **string** | A comma-separated list of the metrics that were requested. | [optional] +**Limit** | Pointer to **float32** | The maximum number of results shown per page. | [optional] +**NextCursor** | Pointer to **string** | A string that can be used to request the next page of results, if any. | [optional] +**Sort** | Pointer to **string** | A comma-separated list of keys the results are sorted by. | [optional] +**GroupBy** | Pointer to **string** | A comma-separated list of dimensions being summed over in the query. | [optional] +**Filters** | Pointer to [**OriginInspectorHistoricalMetaFilters**](OriginInspectorHistoricalMetaFilters.md) | | [optional] + +## Methods + +### NewOriginInspectorHistoricalMeta + +`func NewOriginInspectorHistoricalMeta() *OriginInspectorHistoricalMeta` + +NewOriginInspectorHistoricalMeta instantiates a new OriginInspectorHistoricalMeta object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewOriginInspectorHistoricalMetaWithDefaults + +`func NewOriginInspectorHistoricalMetaWithDefaults() *OriginInspectorHistoricalMeta` + +NewOriginInspectorHistoricalMetaWithDefaults instantiates a new OriginInspectorHistoricalMeta object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetStart + +`func (o *OriginInspectorHistoricalMeta) GetStart() string` + +GetStart returns the Start field if non-nil, zero value otherwise. + +### GetStartOk + +`func (o *OriginInspectorHistoricalMeta) GetStartOk() (*string, bool)` + +GetStartOk returns a tuple with the Start field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStart + +`func (o *OriginInspectorHistoricalMeta) SetStart(v string)` + +SetStart sets Start field to given value. + +### HasStart + +`func (o *OriginInspectorHistoricalMeta) HasStart() bool` + +HasStart returns a boolean if a field has been set. + +### GetEnd + +`func (o *OriginInspectorHistoricalMeta) GetEnd() string` + +GetEnd returns the End field if non-nil, zero value otherwise. + +### GetEndOk + +`func (o *OriginInspectorHistoricalMeta) GetEndOk() (*string, bool)` + +GetEndOk returns a tuple with the End field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEnd + +`func (o *OriginInspectorHistoricalMeta) SetEnd(v string)` + +SetEnd sets End field to given value. + +### HasEnd + +`func (o *OriginInspectorHistoricalMeta) HasEnd() bool` + +HasEnd returns a boolean if a field has been set. + +### GetDownsample + +`func (o *OriginInspectorHistoricalMeta) GetDownsample() string` + +GetDownsample returns the Downsample field if non-nil, zero value otherwise. + +### GetDownsampleOk + +`func (o *OriginInspectorHistoricalMeta) GetDownsampleOk() (*string, bool)` + +GetDownsampleOk returns a tuple with the Downsample field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDownsample + +`func (o *OriginInspectorHistoricalMeta) SetDownsample(v string)` + +SetDownsample sets Downsample field to given value. + +### HasDownsample + +`func (o *OriginInspectorHistoricalMeta) HasDownsample() bool` + +HasDownsample returns a boolean if a field has been set. + +### GetMetrics + +`func (o *OriginInspectorHistoricalMeta) GetMetrics() string` + +GetMetrics returns the Metrics field if non-nil, zero value otherwise. + +### GetMetricsOk + +`func (o *OriginInspectorHistoricalMeta) GetMetricsOk() (*string, bool)` + +GetMetricsOk returns a tuple with the Metrics field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetrics + +`func (o *OriginInspectorHistoricalMeta) SetMetrics(v string)` + +SetMetrics sets Metrics field to given value. + +### HasMetrics + +`func (o *OriginInspectorHistoricalMeta) HasMetrics() bool` + +HasMetrics returns a boolean if a field has been set. + +### GetLimit + +`func (o *OriginInspectorHistoricalMeta) GetLimit() float32` + +GetLimit returns the Limit field if non-nil, zero value otherwise. + +### GetLimitOk + +`func (o *OriginInspectorHistoricalMeta) GetLimitOk() (*float32, bool)` + +GetLimitOk returns a tuple with the Limit field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLimit + +`func (o *OriginInspectorHistoricalMeta) SetLimit(v float32)` + +SetLimit sets Limit field to given value. + +### HasLimit + +`func (o *OriginInspectorHistoricalMeta) HasLimit() bool` + +HasLimit returns a boolean if a field has been set. + +### GetNextCursor + +`func (o *OriginInspectorHistoricalMeta) GetNextCursor() string` + +GetNextCursor returns the NextCursor field if non-nil, zero value otherwise. + +### GetNextCursorOk + +`func (o *OriginInspectorHistoricalMeta) GetNextCursorOk() (*string, bool)` + +GetNextCursorOk returns a tuple with the NextCursor field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNextCursor + +`func (o *OriginInspectorHistoricalMeta) SetNextCursor(v string)` + +SetNextCursor sets NextCursor field to given value. + +### HasNextCursor + +`func (o *OriginInspectorHistoricalMeta) HasNextCursor() bool` + +HasNextCursor returns a boolean if a field has been set. + +### GetSort + +`func (o *OriginInspectorHistoricalMeta) GetSort() string` + +GetSort returns the Sort field if non-nil, zero value otherwise. + +### GetSortOk + +`func (o *OriginInspectorHistoricalMeta) GetSortOk() (*string, bool)` + +GetSortOk returns a tuple with the Sort field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSort + +`func (o *OriginInspectorHistoricalMeta) SetSort(v string)` + +SetSort sets Sort field to given value. + +### HasSort + +`func (o *OriginInspectorHistoricalMeta) HasSort() bool` + +HasSort returns a boolean if a field has been set. + +### GetGroupBy + +`func (o *OriginInspectorHistoricalMeta) GetGroupBy() string` + +GetGroupBy returns the GroupBy field if non-nil, zero value otherwise. + +### GetGroupByOk + +`func (o *OriginInspectorHistoricalMeta) GetGroupByOk() (*string, bool)` + +GetGroupByOk returns a tuple with the GroupBy field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGroupBy + +`func (o *OriginInspectorHistoricalMeta) SetGroupBy(v string)` + +SetGroupBy sets GroupBy field to given value. + +### HasGroupBy + +`func (o *OriginInspectorHistoricalMeta) HasGroupBy() bool` + +HasGroupBy returns a boolean if a field has been set. + +### GetFilters + +`func (o *OriginInspectorHistoricalMeta) GetFilters() OriginInspectorHistoricalMetaFilters` + +GetFilters returns the Filters field if non-nil, zero value otherwise. + +### GetFiltersOk + +`func (o *OriginInspectorHistoricalMeta) GetFiltersOk() (*OriginInspectorHistoricalMetaFilters, bool)` + +GetFiltersOk returns a tuple with the Filters field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFilters + +`func (o *OriginInspectorHistoricalMeta) SetFilters(v OriginInspectorHistoricalMetaFilters)` + +SetFilters sets Filters field to given value. + +### HasFilters + +`func (o *OriginInspectorHistoricalMeta) HasFilters() bool` + +HasFilters returns a boolean if a field has been set. + + +[Back to API list](../README.md#documentation-for-api-endpoints) | [Back to README](../README.md) diff --git a/docs/OriginInspectorHistoricalMetaFilters.md b/docs/OriginInspectorHistoricalMetaFilters.md new file mode 100644 index 00000000..b8b56ad8 --- /dev/null +++ b/docs/OriginInspectorHistoricalMetaFilters.md @@ -0,0 +1,106 @@ +# OriginInspectorHistoricalMetaFilters + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Region** | Pointer to **string** | | [optional] +**Datacenter** | Pointer to **string** | | [optional] +**Host** | Pointer to **string** | | [optional] + +## Methods + +### NewOriginInspectorHistoricalMetaFilters + +`func NewOriginInspectorHistoricalMetaFilters() *OriginInspectorHistoricalMetaFilters` + +NewOriginInspectorHistoricalMetaFilters instantiates a new OriginInspectorHistoricalMetaFilters object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewOriginInspectorHistoricalMetaFiltersWithDefaults + +`func NewOriginInspectorHistoricalMetaFiltersWithDefaults() *OriginInspectorHistoricalMetaFilters` + +NewOriginInspectorHistoricalMetaFiltersWithDefaults instantiates a new OriginInspectorHistoricalMetaFilters object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetRegion + +`func (o *OriginInspectorHistoricalMetaFilters) GetRegion() string` + +GetRegion returns the Region field if non-nil, zero value otherwise. + +### GetRegionOk + +`func (o *OriginInspectorHistoricalMetaFilters) GetRegionOk() (*string, bool)` + +GetRegionOk returns a tuple with the Region field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRegion + +`func (o *OriginInspectorHistoricalMetaFilters) SetRegion(v string)` + +SetRegion sets Region field to given value. + +### HasRegion + +`func (o *OriginInspectorHistoricalMetaFilters) HasRegion() bool` + +HasRegion returns a boolean if a field has been set. + +### GetDatacenter + +`func (o *OriginInspectorHistoricalMetaFilters) GetDatacenter() string` + +GetDatacenter returns the Datacenter field if non-nil, zero value otherwise. + +### GetDatacenterOk + +`func (o *OriginInspectorHistoricalMetaFilters) GetDatacenterOk() (*string, bool)` + +GetDatacenterOk returns a tuple with the Datacenter field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDatacenter + +`func (o *OriginInspectorHistoricalMetaFilters) SetDatacenter(v string)` + +SetDatacenter sets Datacenter field to given value. + +### HasDatacenter + +`func (o *OriginInspectorHistoricalMetaFilters) HasDatacenter() bool` + +HasDatacenter returns a boolean if a field has been set. + +### GetHost + +`func (o *OriginInspectorHistoricalMetaFilters) GetHost() string` + +GetHost returns the Host field if non-nil, zero value otherwise. + +### GetHostOk + +`func (o *OriginInspectorHistoricalMetaFilters) GetHostOk() (*string, bool)` + +GetHostOk returns a tuple with the Host field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHost + +`func (o *OriginInspectorHistoricalMetaFilters) SetHost(v string)` + +SetHost sets Host field to given value. + +### HasHost + +`func (o *OriginInspectorHistoricalMetaFilters) HasHost() bool` + +HasHost returns a boolean if a field has been set. + + +[Back to API list](../README.md#documentation-for-api-endpoints) | [Back to README](../README.md) diff --git a/docs/OriginInspectorMeasurements.md b/docs/OriginInspectorMeasurements.md new file mode 100644 index 00000000..3d19a5bf --- /dev/null +++ b/docs/OriginInspectorMeasurements.md @@ -0,0 +1,3980 @@ +# OriginInspectorMeasurements + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Responses** | Pointer to **int32** | Number of responses from origin. | [optional] +**RespHeaderBytes** | Pointer to **int32** | Number of header bytes from origin. | [optional] +**RespBodyBytes** | Pointer to **int32** | Number of body bytes from origin. | [optional] +**Status1xx** | Pointer to **int32** | Number of 1xx \"Informational\" status codes delivered from origin. | [optional] +**Status2xx** | Pointer to **int32** | Number of 2xx \"Success\" status codes delivered from origin. | [optional] +**Status3xx** | Pointer to **int32** | Number of 3xx \"Redirection\" codes delivered from origin. | [optional] +**Status4xx** | Pointer to **int32** | Number of 4xx \"Client Error\" codes delivered from origin. | [optional] +**Status5xx** | Pointer to **int32** | Number of 5xx \"Server Error\" codes delivered from origin. | [optional] +**Status200** | Pointer to **int32** | Number of responses received with status code 200 (Success) from origin. | [optional] +**Status204** | Pointer to **int32** | Number of responses received with status code 204 (No Content) from origin. | [optional] +**Status206** | Pointer to **int32** | Number of responses received with status code 206 (Partial Content) from origin. | [optional] +**Status301** | Pointer to **int32** | Number of responses received with status code 301 (Moved Permanently) from origin. | [optional] +**Status302** | Pointer to **int32** | Number of responses received with status code 302 (Found) from origin. | [optional] +**Status304** | Pointer to **int32** | Number of responses received with status code 304 (Not Modified) from origin. | [optional] +**Status400** | Pointer to **int32** | Number of responses received with status code 400 (Bad Request) from origin. | [optional] +**Status401** | Pointer to **int32** | Number of responses received with status code 401 (Unauthorized) from origin. | [optional] +**Status403** | Pointer to **int32** | Number of responses received with status code 403 (Forbidden) from origin. | [optional] +**Status404** | Pointer to **int32** | Number of responses received with status code 404 (Not Found) from origin. | [optional] +**Status416** | Pointer to **int32** | Number of responses received with status code 416 (Range Not Satisfiable) from origin. | [optional] +**Status429** | Pointer to **int32** | Number of responses received with status code 429 (Too Many Requests) from origin. | [optional] +**Status500** | Pointer to **int32** | Number of responses received with status code 500 (Internal Server Error) from origin. | [optional] +**Status501** | Pointer to **int32** | Number of responses received with status code 501 (Not Implemented) from origin. | [optional] +**Status502** | Pointer to **int32** | Number of responses received with status code 502 (Bad Gateway) from origin. | [optional] +**Status503** | Pointer to **int32** | Number of responses received with status code 503 (Service Unavailable) from origin. | [optional] +**Status504** | Pointer to **int32** | Number of responses received with status code 504 (Gateway Timeout) from origin. | [optional] +**Status505** | Pointer to **int32** | Number of responses received with status code 505 (HTTP Version Not Supported) from origin. | [optional] +**Latency0To1ms** | Pointer to **int32** | Number of responses from origin with latency between 0 and 1 millisecond. | [optional] +**Latency1To5ms** | Pointer to **int32** | Number of responses from origin with latency between 1 and 5 milliseconds. | [optional] +**Latency5To10ms** | Pointer to **int32** | Number of responses from origin with latency between 5 and 10 milliseconds. | [optional] +**Latency10To50ms** | Pointer to **int32** | Number of responses from origin with latency between 10 and 50 milliseconds. | [optional] +**Latency50To100ms** | Pointer to **int32** | Number of responses from origin with latency between 50 and 100 milliseconds. | [optional] +**Latency100To250ms** | Pointer to **int32** | Number of responses from origin with latency between 100 and 250 milliseconds. | [optional] +**Latency250To500ms** | Pointer to **int32** | Number of responses from origin with latency between 250 and 500 milliseconds. | [optional] +**Latency500To1000ms** | Pointer to **int32** | Number of responses from origin with latency between 500 and 1,000 milliseconds. | [optional] +**Latency1000To5000ms** | Pointer to **int32** | Number of responses from origin with latency between 1,000 and 5,000 milliseconds. | [optional] +**Latency5000To10000ms** | Pointer to **int32** | Number of responses from origin with latency between 5,000 and 10,000 milliseconds. | [optional] +**Latency10000To60000ms** | Pointer to **int32** | Number of responses from origin with latency between 10,000 and 60,000 milliseconds. | [optional] +**Latency60000ms** | Pointer to **int32** | Number of responses from origin with latency of 60,000 milliseconds and above. | [optional] +**WafResponses** | Pointer to **int32** | Number of responses received for origin requests made by the Fastly WAF. | [optional] +**WafRespHeaderBytes** | Pointer to **int32** | Number of header bytes received for origin requests made by the Fastly WAF. | [optional] +**WafRespBodyBytes** | Pointer to **int32** | Number of body bytes received for origin requests made by the Fastly WAF. | [optional] +**WafStatus1xx** | Pointer to **int32** | Number of 1xx \"Informational\" status codes received for origin requests made by the Fastly WAF. | [optional] +**WafStatus2xx** | Pointer to **int32** | Number of 2xx \"Success\" status codes received for origin requests made by the Fastly WAF. | [optional] +**WafStatus3xx** | Pointer to **int32** | Number of 3xx \"Redirection\" codes received for origin requests made by the Fastly WAF. | [optional] +**WafStatus4xx** | Pointer to **int32** | Number of 4xx \"Client Error\" codes received for origin requests made by the Fastly WAF. | [optional] +**WafStatus5xx** | Pointer to **int32** | Number of 5xx \"Server Error\" codes received for origin requests made by the Fastly WAF. | [optional] +**WafStatus200** | Pointer to **int32** | Number of responses received with status code 200 (Success) received for origin requests made by the Fastly WAF. | [optional] +**WafStatus204** | Pointer to **int32** | Number of responses received with status code 204 (No Content) received for origin requests made by the Fastly WAF. | [optional] +**WafStatus206** | Pointer to **int32** | Number of responses received with status code 206 (Partial Content) received for origin requests made by the Fastly WAF. | [optional] +**WafStatus301** | Pointer to **int32** | Number of responses received with status code 301 (Moved Permanently) received for origin requests made by the Fastly WAF. | [optional] +**WafStatus302** | Pointer to **int32** | Number of responses received with status code 302 (Found) received for origin requests made by the Fastly WAF. | [optional] +**WafStatus304** | Pointer to **int32** | Number of responses received with status code 304 (Not Modified) received for origin requests made by the Fastly WAF. | [optional] +**WafStatus400** | Pointer to **int32** | Number of responses received with status code 400 (Bad Request) received for origin requests made by the Fastly WAF. | [optional] +**WafStatus401** | Pointer to **int32** | Number of responses received with status code 401 (Unauthorized) received for origin requests made by the Fastly WAF. | [optional] +**WafStatus403** | Pointer to **int32** | Number of responses received with status code 403 (Forbidden) received for origin requests made by the Fastly WAF. | [optional] +**WafStatus404** | Pointer to **int32** | Number of responses received with status code 404 (Not Found) received for origin requests made by the Fastly WAF. | [optional] +**WafStatus416** | Pointer to **int32** | Number of responses received with status code 416 (Range Not Satisfiable) received for origin requests made by the Fastly WAF. | [optional] +**WafStatus429** | Pointer to **int32** | Number of responses received with status code 429 (Too Many Requests) received for origin requests made by the Fastly WAF. | [optional] +**WafStatus500** | Pointer to **int32** | Number of responses received with status code 500 (Internal Server Error) received for origin requests made by the Fastly WAF. | [optional] +**WafStatus501** | Pointer to **int32** | Number of responses received with status code 501 (Not Implemented) received for origin requests made by the Fastly WAF. | [optional] +**WafStatus502** | Pointer to **int32** | Number of responses received with status code 502 (Bad Gateway) received for origin requests made by the Fastly WAF. | [optional] +**WafStatus503** | Pointer to **int32** | Number of responses received with status code 503 (Service Unavailable) received for origin requests made by the Fastly WAF. | [optional] +**WafStatus504** | Pointer to **int32** | Number of responses received with status code 504 (Gateway Timeout) received for origin requests made by the Fastly WAF. | [optional] +**WafStatus505** | Pointer to **int32** | Number of responses received with status code 505 (HTTP Version Not Supported) received for origin requests made by the Fastly WAF. | [optional] +**WafLatency0To1ms** | Pointer to **int32** | Number of responses with latency between 0 and 1 millisecond received for origin requests made by the Fastly WAF. | [optional] +**WafLatency1To5ms** | Pointer to **int32** | Number of responses with latency between 1 and 5 milliseconds received for origin requests made by the Fastly WAF. | [optional] +**WafLatency5To10ms** | Pointer to **int32** | Number of responses with latency between 5 and 10 milliseconds received for origin requests made by the Fastly WAF. | [optional] +**WafLatency10To50ms** | Pointer to **int32** | Number of responses with latency between 10 and 50 milliseconds received for origin requests made by the Fastly WAF. | [optional] +**WafLatency50To100ms** | Pointer to **int32** | Number of responses with latency between 50 and 100 milliseconds received for origin requests made by the Fastly WAF. | [optional] +**WafLatency100To250ms** | Pointer to **int32** | Number of responses with latency between 100 and 250 milliseconds received for origin requests made by the Fastly WAF. | [optional] +**WafLatency250To500ms** | Pointer to **int32** | Number of responses with latency between 250 and 500 milliseconds received for origin requests made by the Fastly WAF. | [optional] +**WafLatency500To1000ms** | Pointer to **int32** | Number of responses with latency between 500 and 1,000 milliseconds received for origin requests made by the Fastly WAF. | [optional] +**WafLatency1000To5000ms** | Pointer to **int32** | Number of responses with latency between 1,000 and 5,000 milliseconds received for origin requests made by the Fastly WAF. | [optional] +**WafLatency5000To10000ms** | Pointer to **int32** | Number of responses with latency between 5,000 and 10,000 milliseconds received for origin requests made by the Fastly WAF. | [optional] +**WafLatency10000To60000ms** | Pointer to **int32** | Number of responses with latency between 10,000 and 60,000 milliseconds received for origin requests made by the Fastly WAF. | [optional] +**WafLatency60000ms** | Pointer to **int32** | Number of responses with latency of 60,000 milliseconds and above received for origin requests made by the Fastly WAF. | [optional] +**ComputeResponses** | Pointer to **int32** | Number of responses for origin received by Compute@Edge. | [optional] +**ComputeRespHeaderBytes** | Pointer to **int32** | Number of header bytes for origin received by Compute@Edge. | [optional] +**ComputeRespBodyBytes** | Pointer to **int32** | Number of body bytes for origin received by Compute@Edge. | [optional] +**ComputeStatus1xx** | Pointer to **int32** | Number of 1xx \"Informational\" status codes for origin received by Compute@Edge. | [optional] +**ComputeStatus2xx** | Pointer to **int32** | Number of 2xx \"Success\" status codes for origin received by Compute@Edge. | [optional] +**ComputeStatus3xx** | Pointer to **int32** | Number of 3xx \"Redirection\" codes for origin received by Compute@Edge. | [optional] +**ComputeStatus4xx** | Pointer to **int32** | Number of 4xx \"Client Error\" codes for origin received by Compute@Edge. | [optional] +**ComputeStatus5xx** | Pointer to **int32** | Number of 5xx \"Server Error\" codes for origin received by Compute@Edge. | [optional] +**ComputeStatus200** | Pointer to **int32** | Number of responses received with status code 200 (Success) for origin received by Compute@Edge. | [optional] +**ComputeStatus204** | Pointer to **int32** | Number of responses received with status code 204 (No Content) for origin received by Compute@Edge. | [optional] +**ComputeStatus206** | Pointer to **int32** | Number of responses received with status code 206 (Partial Content) for origin received by Compute@Edge. | [optional] +**ComputeStatus301** | Pointer to **int32** | Number of responses received with status code 301 (Moved Permanently) for origin received by Compute@Edge. | [optional] +**ComputeStatus302** | Pointer to **int32** | Number of responses received with status code 302 (Found) for origin received by Compute@Edge. | [optional] +**ComputeStatus304** | Pointer to **int32** | Number of responses received with status code 304 (Not Modified) for origin received by Compute@Edge. | [optional] +**ComputeStatus400** | Pointer to **int32** | Number of responses received with status code 400 (Bad Request) for origin received by Compute@Edge. | [optional] +**ComputeStatus401** | Pointer to **int32** | Number of responses received with status code 401 (Unauthorized) for origin received by Compute@Edge. | [optional] +**ComputeStatus403** | Pointer to **int32** | Number of responses received with status code 403 (Forbidden) for origin received by Compute@Edge. | [optional] +**ComputeStatus404** | Pointer to **int32** | Number of responses received with status code 404 (Not Found) for origin received by Compute@Edge. | [optional] +**ComputeStatus416** | Pointer to **int32** | Number of responses received with status code 416 (Range Not Satisfiable) for origin received by Compute@Edge. | [optional] +**ComputeStatus429** | Pointer to **int32** | Number of responses received with status code 429 (Too Many Requests) for origin received by Compute@Edge. | [optional] +**ComputeStatus500** | Pointer to **int32** | Number of responses received with status code 500 (Internal Server Error) for origin received by Compute@Edge. | [optional] +**ComputeStatus501** | Pointer to **int32** | Number of responses received with status code 501 (Not Implemented) for origin received by Compute@Edge. | [optional] +**ComputeStatus502** | Pointer to **int32** | Number of responses received with status code 502 (Bad Gateway) for origin received by Compute@Edge. | [optional] +**ComputeStatus503** | Pointer to **int32** | Number of responses received with status code 503 (Service Unavailable) for origin received by Compute@Edge. | [optional] +**ComputeStatus504** | Pointer to **int32** | Number of responses received with status code 504 (Gateway Timeout) for origin received by Compute@Edge. | [optional] +**ComputeStatus505** | Pointer to **int32** | Number of responses received with status code 505 (HTTP Version Not Supported) for origin received by Compute@Edge. | [optional] +**ComputeLatency0To1ms** | Pointer to **int32** | Number of responses with latency between 0 and 1 millisecond for origin received by Compute@Edge. | [optional] +**ComputeLatency1To5ms** | Pointer to **int32** | Number of responses with latency between 1 and 5 milliseconds for origin received by Compute@Edge. | [optional] +**ComputeLatency5To10ms** | Pointer to **int32** | Number of responses with latency between 5 and 10 milliseconds for origin received by Compute@Edge. | [optional] +**ComputeLatency10To50ms** | Pointer to **int32** | Number of responses with latency between 10 and 50 milliseconds for origin received by Compute@Edge. | [optional] +**ComputeLatency50To100ms** | Pointer to **int32** | Number of responses with latency between 50 and 100 milliseconds for origin received by Compute@Edge. | [optional] +**ComputeLatency100To250ms** | Pointer to **int32** | Number of responses with latency between 100 and 250 milliseconds for origin received by Compute@Edge. | [optional] +**ComputeLatency250To500ms** | Pointer to **int32** | Number of responses with latency between 250 and 500 milliseconds for origin received by Compute@Edge. | [optional] +**ComputeLatency500To1000ms** | Pointer to **int32** | Number of responses with latency between 500 and 1,000 milliseconds for origin received by Compute@Edge. | [optional] +**ComputeLatency1000To5000ms** | Pointer to **int32** | Number of responses with latency between 1,000 and 5,000 milliseconds for origin received by Compute@Edge. | [optional] +**ComputeLatency5000To10000ms** | Pointer to **int32** | Number of responses with latency between 5,000 and 10,000 milliseconds for origin received by Compute@Edge. | [optional] +**ComputeLatency10000To60000ms** | Pointer to **int32** | Number of responses with latency between 10,000 and 60,000 milliseconds for origin received by Compute@Edge. | [optional] +**ComputeLatency60000ms** | Pointer to **int32** | Number of responses with latency of 60,000 milliseconds and above for origin received by Compute@Edge. | [optional] +**AllResponses** | Pointer to **int32** | Number of responses received for origin requests made by all sources. | [optional] +**AllRespHeaderBytes** | Pointer to **int32** | Number of header bytes received for origin requests made by all sources. | [optional] +**AllRespBodyBytes** | Pointer to **int32** | Number of body bytes received for origin requests made by all sources. | [optional] +**AllStatus1xx** | Pointer to **int32** | Number of 1xx \"Informational\" category status codes delivered received for origin requests made by all sources. | [optional] +**AllStatus2xx** | Pointer to **int32** | Number of 2xx \"Success\" status codes received for origin requests made by all sources. | [optional] +**AllStatus3xx** | Pointer to **int32** | Number of 3xx \"Redirection\" codes received for origin requests made by all sources. | [optional] +**AllStatus4xx** | Pointer to **int32** | Number of 4xx \"Client Error\" codes received for origin requests made by all sources. | [optional] +**AllStatus5xx** | Pointer to **int32** | Number of 5xx \"Server Error\" codes received for origin requests made by all sources. | [optional] +**AllStatus200** | Pointer to **int32** | Number of responses received with status code 200 (Success) received for origin requests made by all sources. | [optional] +**AllStatus204** | Pointer to **int32** | Number of responses received with status code 204 (No Content) received for origin requests made by all sources. | [optional] +**AllStatus206** | Pointer to **int32** | Number of responses received with status code 206 (Partial Content) received for origin requests made by all sources. | [optional] +**AllStatus301** | Pointer to **int32** | Number of responses received with status code 301 (Moved Permanently) received for origin requests made by all sources. | [optional] +**AllStatus302** | Pointer to **int32** | Number of responses received with status code 302 (Found) received for origin requests made by all sources. | [optional] +**AllStatus304** | Pointer to **int32** | Number of responses received with status code 304 (Not Modified) received for origin requests made by all sources. | [optional] +**AllStatus400** | Pointer to **int32** | Number of responses received with status code 400 (Bad Request) received for origin requests made by all sources. | [optional] +**AllStatus401** | Pointer to **int32** | Number of responses received with status code 401 (Unauthorized) received for origin requests made by all sources. | [optional] +**AllStatus403** | Pointer to **int32** | Number of responses received with status code 403 (Forbidden) received for origin requests made by all sources. | [optional] +**AllStatus404** | Pointer to **int32** | Number of responses received with status code 404 (Not Found) received for origin requests made by all sources. | [optional] +**AllStatus416** | Pointer to **int32** | Number of responses received with status code 416 (Range Not Satisfiable) received for origin requests made by all sources. | [optional] +**AllStatus429** | Pointer to **int32** | Number of responses received with status code 429 (Too Many Requests) received for origin requests made by all sources. | [optional] +**AllStatus500** | Pointer to **int32** | Number of responses received with status code 500 (Internal Server Error) received for origin requests made by all sources. | [optional] +**AllStatus501** | Pointer to **int32** | Number of responses received with status code 501 (Not Implemented) received for origin requests made by all sources. | [optional] +**AllStatus502** | Pointer to **int32** | Number of responses received with status code 502 (Bad Gateway) received for origin requests made by all sources. | [optional] +**AllStatus503** | Pointer to **int32** | Number of responses received with status code 503 (Service Unavailable) received for origin requests made by all sources. | [optional] +**AllStatus504** | Pointer to **int32** | Number of responses received with status code 504 (Gateway Timeout) received for origin requests made by all sources. | [optional] +**AllStatus505** | Pointer to **int32** | Number of responses received with status code 505 (HTTP Version Not Supported) received for origin requests made by all sources. | [optional] +**AllLatency0To1ms** | Pointer to **int32** | Number of responses with latency between 0 and 1 millisecond received for origin requests made by all sources. | [optional] +**AllLatency1To5ms** | Pointer to **int32** | Number of responses with latency between 1 and 5 milliseconds received for origin requests made by all sources. | [optional] +**AllLatency5To10ms** | Pointer to **int32** | Number of responses with latency between 5 and 10 milliseconds received for origin requests made by all sources. | [optional] +**AllLatency10To50ms** | Pointer to **int32** | Number of responses with latency between 10 and 50 milliseconds received for origin requests made by all sources. | [optional] +**AllLatency50To100ms** | Pointer to **int32** | Number of responses with latency between 50 and 100 milliseconds received for origin requests made by all sources. | [optional] +**AllLatency100To250ms** | Pointer to **int32** | Number of responses with latency between 100 and 250 milliseconds received for origin requests made by all sources. | [optional] +**AllLatency250To500ms** | Pointer to **int32** | Number of responses with latency between 250 and 500 milliseconds received for origin requests made by all sources. | [optional] +**AllLatency500To1000ms** | Pointer to **int32** | Number of responses with latency between 500 and 1,000 milliseconds received for origin requests made by all sources. | [optional] +**AllLatency1000To5000ms** | Pointer to **int32** | Number of responses with latency between 1,000 and 5,000 milliseconds received for origin requests made by all sources. | [optional] +**AllLatency5000To10000ms** | Pointer to **int32** | Number of responses with latency between 5,000 and 10,000 milliseconds received for origin requests made by all sources. | [optional] +**AllLatency10000To60000ms** | Pointer to **int32** | Number of responses with latency between 10,000 and 60,000 milliseconds received for origin requests made by all sources. | [optional] +**AllLatency60000ms** | Pointer to **int32** | Number of responses with latency of 60,000 milliseconds and above received for origin requests made by all sources. | [optional] + +## Methods + +### NewOriginInspectorMeasurements + +`func NewOriginInspectorMeasurements() *OriginInspectorMeasurements` + +NewOriginInspectorMeasurements instantiates a new OriginInspectorMeasurements object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewOriginInspectorMeasurementsWithDefaults + +`func NewOriginInspectorMeasurementsWithDefaults() *OriginInspectorMeasurements` + +NewOriginInspectorMeasurementsWithDefaults instantiates a new OriginInspectorMeasurements object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetResponses + +`func (o *OriginInspectorMeasurements) GetResponses() int32` + +GetResponses returns the Responses field if non-nil, zero value otherwise. + +### GetResponsesOk + +`func (o *OriginInspectorMeasurements) GetResponsesOk() (*int32, bool)` + +GetResponsesOk returns a tuple with the Responses field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetResponses + +`func (o *OriginInspectorMeasurements) SetResponses(v int32)` + +SetResponses sets Responses field to given value. + +### HasResponses + +`func (o *OriginInspectorMeasurements) HasResponses() bool` + +HasResponses returns a boolean if a field has been set. + +### GetRespHeaderBytes + +`func (o *OriginInspectorMeasurements) GetRespHeaderBytes() int32` + +GetRespHeaderBytes returns the RespHeaderBytes field if non-nil, zero value otherwise. + +### GetRespHeaderBytesOk + +`func (o *OriginInspectorMeasurements) GetRespHeaderBytesOk() (*int32, bool)` + +GetRespHeaderBytesOk returns a tuple with the RespHeaderBytes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRespHeaderBytes + +`func (o *OriginInspectorMeasurements) SetRespHeaderBytes(v int32)` + +SetRespHeaderBytes sets RespHeaderBytes field to given value. + +### HasRespHeaderBytes + +`func (o *OriginInspectorMeasurements) HasRespHeaderBytes() bool` + +HasRespHeaderBytes returns a boolean if a field has been set. + +### GetRespBodyBytes + +`func (o *OriginInspectorMeasurements) GetRespBodyBytes() int32` + +GetRespBodyBytes returns the RespBodyBytes field if non-nil, zero value otherwise. + +### GetRespBodyBytesOk + +`func (o *OriginInspectorMeasurements) GetRespBodyBytesOk() (*int32, bool)` + +GetRespBodyBytesOk returns a tuple with the RespBodyBytes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRespBodyBytes + +`func (o *OriginInspectorMeasurements) SetRespBodyBytes(v int32)` + +SetRespBodyBytes sets RespBodyBytes field to given value. + +### HasRespBodyBytes + +`func (o *OriginInspectorMeasurements) HasRespBodyBytes() bool` + +HasRespBodyBytes returns a boolean if a field has been set. + +### GetStatus1xx + +`func (o *OriginInspectorMeasurements) GetStatus1xx() int32` + +GetStatus1xx returns the Status1xx field if non-nil, zero value otherwise. + +### GetStatus1xxOk + +`func (o *OriginInspectorMeasurements) GetStatus1xxOk() (*int32, bool)` + +GetStatus1xxOk returns a tuple with the Status1xx field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus1xx + +`func (o *OriginInspectorMeasurements) SetStatus1xx(v int32)` + +SetStatus1xx sets Status1xx field to given value. + +### HasStatus1xx + +`func (o *OriginInspectorMeasurements) HasStatus1xx() bool` + +HasStatus1xx returns a boolean if a field has been set. + +### GetStatus2xx + +`func (o *OriginInspectorMeasurements) GetStatus2xx() int32` + +GetStatus2xx returns the Status2xx field if non-nil, zero value otherwise. + +### GetStatus2xxOk + +`func (o *OriginInspectorMeasurements) GetStatus2xxOk() (*int32, bool)` + +GetStatus2xxOk returns a tuple with the Status2xx field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus2xx + +`func (o *OriginInspectorMeasurements) SetStatus2xx(v int32)` + +SetStatus2xx sets Status2xx field to given value. + +### HasStatus2xx + +`func (o *OriginInspectorMeasurements) HasStatus2xx() bool` + +HasStatus2xx returns a boolean if a field has been set. + +### GetStatus3xx + +`func (o *OriginInspectorMeasurements) GetStatus3xx() int32` + +GetStatus3xx returns the Status3xx field if non-nil, zero value otherwise. + +### GetStatus3xxOk + +`func (o *OriginInspectorMeasurements) GetStatus3xxOk() (*int32, bool)` + +GetStatus3xxOk returns a tuple with the Status3xx field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus3xx + +`func (o *OriginInspectorMeasurements) SetStatus3xx(v int32)` + +SetStatus3xx sets Status3xx field to given value. + +### HasStatus3xx + +`func (o *OriginInspectorMeasurements) HasStatus3xx() bool` + +HasStatus3xx returns a boolean if a field has been set. + +### GetStatus4xx + +`func (o *OriginInspectorMeasurements) GetStatus4xx() int32` + +GetStatus4xx returns the Status4xx field if non-nil, zero value otherwise. + +### GetStatus4xxOk + +`func (o *OriginInspectorMeasurements) GetStatus4xxOk() (*int32, bool)` + +GetStatus4xxOk returns a tuple with the Status4xx field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus4xx + +`func (o *OriginInspectorMeasurements) SetStatus4xx(v int32)` + +SetStatus4xx sets Status4xx field to given value. + +### HasStatus4xx + +`func (o *OriginInspectorMeasurements) HasStatus4xx() bool` + +HasStatus4xx returns a boolean if a field has been set. + +### GetStatus5xx + +`func (o *OriginInspectorMeasurements) GetStatus5xx() int32` + +GetStatus5xx returns the Status5xx field if non-nil, zero value otherwise. + +### GetStatus5xxOk + +`func (o *OriginInspectorMeasurements) GetStatus5xxOk() (*int32, bool)` + +GetStatus5xxOk returns a tuple with the Status5xx field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus5xx + +`func (o *OriginInspectorMeasurements) SetStatus5xx(v int32)` + +SetStatus5xx sets Status5xx field to given value. + +### HasStatus5xx + +`func (o *OriginInspectorMeasurements) HasStatus5xx() bool` + +HasStatus5xx returns a boolean if a field has been set. + +### GetStatus200 + +`func (o *OriginInspectorMeasurements) GetStatus200() int32` + +GetStatus200 returns the Status200 field if non-nil, zero value otherwise. + +### GetStatus200Ok + +`func (o *OriginInspectorMeasurements) GetStatus200Ok() (*int32, bool)` + +GetStatus200Ok returns a tuple with the Status200 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus200 + +`func (o *OriginInspectorMeasurements) SetStatus200(v int32)` + +SetStatus200 sets Status200 field to given value. + +### HasStatus200 + +`func (o *OriginInspectorMeasurements) HasStatus200() bool` + +HasStatus200 returns a boolean if a field has been set. + +### GetStatus204 + +`func (o *OriginInspectorMeasurements) GetStatus204() int32` + +GetStatus204 returns the Status204 field if non-nil, zero value otherwise. + +### GetStatus204Ok + +`func (o *OriginInspectorMeasurements) GetStatus204Ok() (*int32, bool)` + +GetStatus204Ok returns a tuple with the Status204 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus204 + +`func (o *OriginInspectorMeasurements) SetStatus204(v int32)` + +SetStatus204 sets Status204 field to given value. + +### HasStatus204 + +`func (o *OriginInspectorMeasurements) HasStatus204() bool` + +HasStatus204 returns a boolean if a field has been set. + +### GetStatus206 + +`func (o *OriginInspectorMeasurements) GetStatus206() int32` + +GetStatus206 returns the Status206 field if non-nil, zero value otherwise. + +### GetStatus206Ok + +`func (o *OriginInspectorMeasurements) GetStatus206Ok() (*int32, bool)` + +GetStatus206Ok returns a tuple with the Status206 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus206 + +`func (o *OriginInspectorMeasurements) SetStatus206(v int32)` + +SetStatus206 sets Status206 field to given value. + +### HasStatus206 + +`func (o *OriginInspectorMeasurements) HasStatus206() bool` + +HasStatus206 returns a boolean if a field has been set. + +### GetStatus301 + +`func (o *OriginInspectorMeasurements) GetStatus301() int32` + +GetStatus301 returns the Status301 field if non-nil, zero value otherwise. + +### GetStatus301Ok + +`func (o *OriginInspectorMeasurements) GetStatus301Ok() (*int32, bool)` + +GetStatus301Ok returns a tuple with the Status301 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus301 + +`func (o *OriginInspectorMeasurements) SetStatus301(v int32)` + +SetStatus301 sets Status301 field to given value. + +### HasStatus301 + +`func (o *OriginInspectorMeasurements) HasStatus301() bool` + +HasStatus301 returns a boolean if a field has been set. + +### GetStatus302 + +`func (o *OriginInspectorMeasurements) GetStatus302() int32` + +GetStatus302 returns the Status302 field if non-nil, zero value otherwise. + +### GetStatus302Ok + +`func (o *OriginInspectorMeasurements) GetStatus302Ok() (*int32, bool)` + +GetStatus302Ok returns a tuple with the Status302 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus302 + +`func (o *OriginInspectorMeasurements) SetStatus302(v int32)` + +SetStatus302 sets Status302 field to given value. + +### HasStatus302 + +`func (o *OriginInspectorMeasurements) HasStatus302() bool` + +HasStatus302 returns a boolean if a field has been set. + +### GetStatus304 + +`func (o *OriginInspectorMeasurements) GetStatus304() int32` + +GetStatus304 returns the Status304 field if non-nil, zero value otherwise. + +### GetStatus304Ok + +`func (o *OriginInspectorMeasurements) GetStatus304Ok() (*int32, bool)` + +GetStatus304Ok returns a tuple with the Status304 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus304 + +`func (o *OriginInspectorMeasurements) SetStatus304(v int32)` + +SetStatus304 sets Status304 field to given value. + +### HasStatus304 + +`func (o *OriginInspectorMeasurements) HasStatus304() bool` + +HasStatus304 returns a boolean if a field has been set. + +### GetStatus400 + +`func (o *OriginInspectorMeasurements) GetStatus400() int32` + +GetStatus400 returns the Status400 field if non-nil, zero value otherwise. + +### GetStatus400Ok + +`func (o *OriginInspectorMeasurements) GetStatus400Ok() (*int32, bool)` + +GetStatus400Ok returns a tuple with the Status400 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus400 + +`func (o *OriginInspectorMeasurements) SetStatus400(v int32)` + +SetStatus400 sets Status400 field to given value. + +### HasStatus400 + +`func (o *OriginInspectorMeasurements) HasStatus400() bool` + +HasStatus400 returns a boolean if a field has been set. + +### GetStatus401 + +`func (o *OriginInspectorMeasurements) GetStatus401() int32` + +GetStatus401 returns the Status401 field if non-nil, zero value otherwise. + +### GetStatus401Ok + +`func (o *OriginInspectorMeasurements) GetStatus401Ok() (*int32, bool)` + +GetStatus401Ok returns a tuple with the Status401 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus401 + +`func (o *OriginInspectorMeasurements) SetStatus401(v int32)` + +SetStatus401 sets Status401 field to given value. + +### HasStatus401 + +`func (o *OriginInspectorMeasurements) HasStatus401() bool` + +HasStatus401 returns a boolean if a field has been set. + +### GetStatus403 + +`func (o *OriginInspectorMeasurements) GetStatus403() int32` + +GetStatus403 returns the Status403 field if non-nil, zero value otherwise. + +### GetStatus403Ok + +`func (o *OriginInspectorMeasurements) GetStatus403Ok() (*int32, bool)` + +GetStatus403Ok returns a tuple with the Status403 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus403 + +`func (o *OriginInspectorMeasurements) SetStatus403(v int32)` + +SetStatus403 sets Status403 field to given value. + +### HasStatus403 + +`func (o *OriginInspectorMeasurements) HasStatus403() bool` + +HasStatus403 returns a boolean if a field has been set. + +### GetStatus404 + +`func (o *OriginInspectorMeasurements) GetStatus404() int32` + +GetStatus404 returns the Status404 field if non-nil, zero value otherwise. + +### GetStatus404Ok + +`func (o *OriginInspectorMeasurements) GetStatus404Ok() (*int32, bool)` + +GetStatus404Ok returns a tuple with the Status404 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus404 + +`func (o *OriginInspectorMeasurements) SetStatus404(v int32)` + +SetStatus404 sets Status404 field to given value. + +### HasStatus404 + +`func (o *OriginInspectorMeasurements) HasStatus404() bool` + +HasStatus404 returns a boolean if a field has been set. + +### GetStatus416 + +`func (o *OriginInspectorMeasurements) GetStatus416() int32` + +GetStatus416 returns the Status416 field if non-nil, zero value otherwise. + +### GetStatus416Ok + +`func (o *OriginInspectorMeasurements) GetStatus416Ok() (*int32, bool)` + +GetStatus416Ok returns a tuple with the Status416 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus416 + +`func (o *OriginInspectorMeasurements) SetStatus416(v int32)` + +SetStatus416 sets Status416 field to given value. + +### HasStatus416 + +`func (o *OriginInspectorMeasurements) HasStatus416() bool` + +HasStatus416 returns a boolean if a field has been set. + +### GetStatus429 + +`func (o *OriginInspectorMeasurements) GetStatus429() int32` + +GetStatus429 returns the Status429 field if non-nil, zero value otherwise. + +### GetStatus429Ok + +`func (o *OriginInspectorMeasurements) GetStatus429Ok() (*int32, bool)` + +GetStatus429Ok returns a tuple with the Status429 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus429 + +`func (o *OriginInspectorMeasurements) SetStatus429(v int32)` + +SetStatus429 sets Status429 field to given value. + +### HasStatus429 + +`func (o *OriginInspectorMeasurements) HasStatus429() bool` + +HasStatus429 returns a boolean if a field has been set. + +### GetStatus500 + +`func (o *OriginInspectorMeasurements) GetStatus500() int32` + +GetStatus500 returns the Status500 field if non-nil, zero value otherwise. + +### GetStatus500Ok + +`func (o *OriginInspectorMeasurements) GetStatus500Ok() (*int32, bool)` + +GetStatus500Ok returns a tuple with the Status500 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus500 + +`func (o *OriginInspectorMeasurements) SetStatus500(v int32)` + +SetStatus500 sets Status500 field to given value. + +### HasStatus500 + +`func (o *OriginInspectorMeasurements) HasStatus500() bool` + +HasStatus500 returns a boolean if a field has been set. + +### GetStatus501 + +`func (o *OriginInspectorMeasurements) GetStatus501() int32` + +GetStatus501 returns the Status501 field if non-nil, zero value otherwise. + +### GetStatus501Ok + +`func (o *OriginInspectorMeasurements) GetStatus501Ok() (*int32, bool)` + +GetStatus501Ok returns a tuple with the Status501 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus501 + +`func (o *OriginInspectorMeasurements) SetStatus501(v int32)` + +SetStatus501 sets Status501 field to given value. + +### HasStatus501 + +`func (o *OriginInspectorMeasurements) HasStatus501() bool` + +HasStatus501 returns a boolean if a field has been set. + +### GetStatus502 + +`func (o *OriginInspectorMeasurements) GetStatus502() int32` + +GetStatus502 returns the Status502 field if non-nil, zero value otherwise. + +### GetStatus502Ok + +`func (o *OriginInspectorMeasurements) GetStatus502Ok() (*int32, bool)` + +GetStatus502Ok returns a tuple with the Status502 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus502 + +`func (o *OriginInspectorMeasurements) SetStatus502(v int32)` + +SetStatus502 sets Status502 field to given value. + +### HasStatus502 + +`func (o *OriginInspectorMeasurements) HasStatus502() bool` + +HasStatus502 returns a boolean if a field has been set. + +### GetStatus503 + +`func (o *OriginInspectorMeasurements) GetStatus503() int32` + +GetStatus503 returns the Status503 field if non-nil, zero value otherwise. + +### GetStatus503Ok + +`func (o *OriginInspectorMeasurements) GetStatus503Ok() (*int32, bool)` + +GetStatus503Ok returns a tuple with the Status503 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus503 + +`func (o *OriginInspectorMeasurements) SetStatus503(v int32)` + +SetStatus503 sets Status503 field to given value. + +### HasStatus503 + +`func (o *OriginInspectorMeasurements) HasStatus503() bool` + +HasStatus503 returns a boolean if a field has been set. + +### GetStatus504 + +`func (o *OriginInspectorMeasurements) GetStatus504() int32` + +GetStatus504 returns the Status504 field if non-nil, zero value otherwise. + +### GetStatus504Ok + +`func (o *OriginInspectorMeasurements) GetStatus504Ok() (*int32, bool)` + +GetStatus504Ok returns a tuple with the Status504 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus504 + +`func (o *OriginInspectorMeasurements) SetStatus504(v int32)` + +SetStatus504 sets Status504 field to given value. + +### HasStatus504 + +`func (o *OriginInspectorMeasurements) HasStatus504() bool` + +HasStatus504 returns a boolean if a field has been set. + +### GetStatus505 + +`func (o *OriginInspectorMeasurements) GetStatus505() int32` + +GetStatus505 returns the Status505 field if non-nil, zero value otherwise. + +### GetStatus505Ok + +`func (o *OriginInspectorMeasurements) GetStatus505Ok() (*int32, bool)` + +GetStatus505Ok returns a tuple with the Status505 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus505 + +`func (o *OriginInspectorMeasurements) SetStatus505(v int32)` + +SetStatus505 sets Status505 field to given value. + +### HasStatus505 + +`func (o *OriginInspectorMeasurements) HasStatus505() bool` + +HasStatus505 returns a boolean if a field has been set. + +### GetLatency0To1ms + +`func (o *OriginInspectorMeasurements) GetLatency0To1ms() int32` + +GetLatency0To1ms returns the Latency0To1ms field if non-nil, zero value otherwise. + +### GetLatency0To1msOk + +`func (o *OriginInspectorMeasurements) GetLatency0To1msOk() (*int32, bool)` + +GetLatency0To1msOk returns a tuple with the Latency0To1ms field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLatency0To1ms + +`func (o *OriginInspectorMeasurements) SetLatency0To1ms(v int32)` + +SetLatency0To1ms sets Latency0To1ms field to given value. + +### HasLatency0To1ms + +`func (o *OriginInspectorMeasurements) HasLatency0To1ms() bool` + +HasLatency0To1ms returns a boolean if a field has been set. + +### GetLatency1To5ms + +`func (o *OriginInspectorMeasurements) GetLatency1To5ms() int32` + +GetLatency1To5ms returns the Latency1To5ms field if non-nil, zero value otherwise. + +### GetLatency1To5msOk + +`func (o *OriginInspectorMeasurements) GetLatency1To5msOk() (*int32, bool)` + +GetLatency1To5msOk returns a tuple with the Latency1To5ms field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLatency1To5ms + +`func (o *OriginInspectorMeasurements) SetLatency1To5ms(v int32)` + +SetLatency1To5ms sets Latency1To5ms field to given value. + +### HasLatency1To5ms + +`func (o *OriginInspectorMeasurements) HasLatency1To5ms() bool` + +HasLatency1To5ms returns a boolean if a field has been set. + +### GetLatency5To10ms + +`func (o *OriginInspectorMeasurements) GetLatency5To10ms() int32` + +GetLatency5To10ms returns the Latency5To10ms field if non-nil, zero value otherwise. + +### GetLatency5To10msOk + +`func (o *OriginInspectorMeasurements) GetLatency5To10msOk() (*int32, bool)` + +GetLatency5To10msOk returns a tuple with the Latency5To10ms field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLatency5To10ms + +`func (o *OriginInspectorMeasurements) SetLatency5To10ms(v int32)` + +SetLatency5To10ms sets Latency5To10ms field to given value. + +### HasLatency5To10ms + +`func (o *OriginInspectorMeasurements) HasLatency5To10ms() bool` + +HasLatency5To10ms returns a boolean if a field has been set. + +### GetLatency10To50ms + +`func (o *OriginInspectorMeasurements) GetLatency10To50ms() int32` + +GetLatency10To50ms returns the Latency10To50ms field if non-nil, zero value otherwise. + +### GetLatency10To50msOk + +`func (o *OriginInspectorMeasurements) GetLatency10To50msOk() (*int32, bool)` + +GetLatency10To50msOk returns a tuple with the Latency10To50ms field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLatency10To50ms + +`func (o *OriginInspectorMeasurements) SetLatency10To50ms(v int32)` + +SetLatency10To50ms sets Latency10To50ms field to given value. + +### HasLatency10To50ms + +`func (o *OriginInspectorMeasurements) HasLatency10To50ms() bool` + +HasLatency10To50ms returns a boolean if a field has been set. + +### GetLatency50To100ms + +`func (o *OriginInspectorMeasurements) GetLatency50To100ms() int32` + +GetLatency50To100ms returns the Latency50To100ms field if non-nil, zero value otherwise. + +### GetLatency50To100msOk + +`func (o *OriginInspectorMeasurements) GetLatency50To100msOk() (*int32, bool)` + +GetLatency50To100msOk returns a tuple with the Latency50To100ms field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLatency50To100ms + +`func (o *OriginInspectorMeasurements) SetLatency50To100ms(v int32)` + +SetLatency50To100ms sets Latency50To100ms field to given value. + +### HasLatency50To100ms + +`func (o *OriginInspectorMeasurements) HasLatency50To100ms() bool` + +HasLatency50To100ms returns a boolean if a field has been set. + +### GetLatency100To250ms + +`func (o *OriginInspectorMeasurements) GetLatency100To250ms() int32` + +GetLatency100To250ms returns the Latency100To250ms field if non-nil, zero value otherwise. + +### GetLatency100To250msOk + +`func (o *OriginInspectorMeasurements) GetLatency100To250msOk() (*int32, bool)` + +GetLatency100To250msOk returns a tuple with the Latency100To250ms field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLatency100To250ms + +`func (o *OriginInspectorMeasurements) SetLatency100To250ms(v int32)` + +SetLatency100To250ms sets Latency100To250ms field to given value. + +### HasLatency100To250ms + +`func (o *OriginInspectorMeasurements) HasLatency100To250ms() bool` + +HasLatency100To250ms returns a boolean if a field has been set. + +### GetLatency250To500ms + +`func (o *OriginInspectorMeasurements) GetLatency250To500ms() int32` + +GetLatency250To500ms returns the Latency250To500ms field if non-nil, zero value otherwise. + +### GetLatency250To500msOk + +`func (o *OriginInspectorMeasurements) GetLatency250To500msOk() (*int32, bool)` + +GetLatency250To500msOk returns a tuple with the Latency250To500ms field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLatency250To500ms + +`func (o *OriginInspectorMeasurements) SetLatency250To500ms(v int32)` + +SetLatency250To500ms sets Latency250To500ms field to given value. + +### HasLatency250To500ms + +`func (o *OriginInspectorMeasurements) HasLatency250To500ms() bool` + +HasLatency250To500ms returns a boolean if a field has been set. + +### GetLatency500To1000ms + +`func (o *OriginInspectorMeasurements) GetLatency500To1000ms() int32` + +GetLatency500To1000ms returns the Latency500To1000ms field if non-nil, zero value otherwise. + +### GetLatency500To1000msOk + +`func (o *OriginInspectorMeasurements) GetLatency500To1000msOk() (*int32, bool)` + +GetLatency500To1000msOk returns a tuple with the Latency500To1000ms field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLatency500To1000ms + +`func (o *OriginInspectorMeasurements) SetLatency500To1000ms(v int32)` + +SetLatency500To1000ms sets Latency500To1000ms field to given value. + +### HasLatency500To1000ms + +`func (o *OriginInspectorMeasurements) HasLatency500To1000ms() bool` + +HasLatency500To1000ms returns a boolean if a field has been set. + +### GetLatency1000To5000ms + +`func (o *OriginInspectorMeasurements) GetLatency1000To5000ms() int32` + +GetLatency1000To5000ms returns the Latency1000To5000ms field if non-nil, zero value otherwise. + +### GetLatency1000To5000msOk + +`func (o *OriginInspectorMeasurements) GetLatency1000To5000msOk() (*int32, bool)` + +GetLatency1000To5000msOk returns a tuple with the Latency1000To5000ms field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLatency1000To5000ms + +`func (o *OriginInspectorMeasurements) SetLatency1000To5000ms(v int32)` + +SetLatency1000To5000ms sets Latency1000To5000ms field to given value. + +### HasLatency1000To5000ms + +`func (o *OriginInspectorMeasurements) HasLatency1000To5000ms() bool` + +HasLatency1000To5000ms returns a boolean if a field has been set. + +### GetLatency5000To10000ms + +`func (o *OriginInspectorMeasurements) GetLatency5000To10000ms() int32` + +GetLatency5000To10000ms returns the Latency5000To10000ms field if non-nil, zero value otherwise. + +### GetLatency5000To10000msOk + +`func (o *OriginInspectorMeasurements) GetLatency5000To10000msOk() (*int32, bool)` + +GetLatency5000To10000msOk returns a tuple with the Latency5000To10000ms field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLatency5000To10000ms + +`func (o *OriginInspectorMeasurements) SetLatency5000To10000ms(v int32)` + +SetLatency5000To10000ms sets Latency5000To10000ms field to given value. + +### HasLatency5000To10000ms + +`func (o *OriginInspectorMeasurements) HasLatency5000To10000ms() bool` + +HasLatency5000To10000ms returns a boolean if a field has been set. + +### GetLatency10000To60000ms + +`func (o *OriginInspectorMeasurements) GetLatency10000To60000ms() int32` + +GetLatency10000To60000ms returns the Latency10000To60000ms field if non-nil, zero value otherwise. + +### GetLatency10000To60000msOk + +`func (o *OriginInspectorMeasurements) GetLatency10000To60000msOk() (*int32, bool)` + +GetLatency10000To60000msOk returns a tuple with the Latency10000To60000ms field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLatency10000To60000ms + +`func (o *OriginInspectorMeasurements) SetLatency10000To60000ms(v int32)` + +SetLatency10000To60000ms sets Latency10000To60000ms field to given value. + +### HasLatency10000To60000ms + +`func (o *OriginInspectorMeasurements) HasLatency10000To60000ms() bool` + +HasLatency10000To60000ms returns a boolean if a field has been set. + +### GetLatency60000ms + +`func (o *OriginInspectorMeasurements) GetLatency60000ms() int32` + +GetLatency60000ms returns the Latency60000ms field if non-nil, zero value otherwise. + +### GetLatency60000msOk + +`func (o *OriginInspectorMeasurements) GetLatency60000msOk() (*int32, bool)` + +GetLatency60000msOk returns a tuple with the Latency60000ms field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLatency60000ms + +`func (o *OriginInspectorMeasurements) SetLatency60000ms(v int32)` + +SetLatency60000ms sets Latency60000ms field to given value. + +### HasLatency60000ms + +`func (o *OriginInspectorMeasurements) HasLatency60000ms() bool` + +HasLatency60000ms returns a boolean if a field has been set. + +### GetWafResponses + +`func (o *OriginInspectorMeasurements) GetWafResponses() int32` + +GetWafResponses returns the WafResponses field if non-nil, zero value otherwise. + +### GetWafResponsesOk + +`func (o *OriginInspectorMeasurements) GetWafResponsesOk() (*int32, bool)` + +GetWafResponsesOk returns a tuple with the WafResponses field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWafResponses + +`func (o *OriginInspectorMeasurements) SetWafResponses(v int32)` + +SetWafResponses sets WafResponses field to given value. + +### HasWafResponses + +`func (o *OriginInspectorMeasurements) HasWafResponses() bool` + +HasWafResponses returns a boolean if a field has been set. + +### GetWafRespHeaderBytes + +`func (o *OriginInspectorMeasurements) GetWafRespHeaderBytes() int32` + +GetWafRespHeaderBytes returns the WafRespHeaderBytes field if non-nil, zero value otherwise. + +### GetWafRespHeaderBytesOk + +`func (o *OriginInspectorMeasurements) GetWafRespHeaderBytesOk() (*int32, bool)` + +GetWafRespHeaderBytesOk returns a tuple with the WafRespHeaderBytes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWafRespHeaderBytes + +`func (o *OriginInspectorMeasurements) SetWafRespHeaderBytes(v int32)` + +SetWafRespHeaderBytes sets WafRespHeaderBytes field to given value. + +### HasWafRespHeaderBytes + +`func (o *OriginInspectorMeasurements) HasWafRespHeaderBytes() bool` + +HasWafRespHeaderBytes returns a boolean if a field has been set. + +### GetWafRespBodyBytes + +`func (o *OriginInspectorMeasurements) GetWafRespBodyBytes() int32` + +GetWafRespBodyBytes returns the WafRespBodyBytes field if non-nil, zero value otherwise. + +### GetWafRespBodyBytesOk + +`func (o *OriginInspectorMeasurements) GetWafRespBodyBytesOk() (*int32, bool)` + +GetWafRespBodyBytesOk returns a tuple with the WafRespBodyBytes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWafRespBodyBytes + +`func (o *OriginInspectorMeasurements) SetWafRespBodyBytes(v int32)` + +SetWafRespBodyBytes sets WafRespBodyBytes field to given value. + +### HasWafRespBodyBytes + +`func (o *OriginInspectorMeasurements) HasWafRespBodyBytes() bool` + +HasWafRespBodyBytes returns a boolean if a field has been set. + +### GetWafStatus1xx + +`func (o *OriginInspectorMeasurements) GetWafStatus1xx() int32` + +GetWafStatus1xx returns the WafStatus1xx field if non-nil, zero value otherwise. + +### GetWafStatus1xxOk + +`func (o *OriginInspectorMeasurements) GetWafStatus1xxOk() (*int32, bool)` + +GetWafStatus1xxOk returns a tuple with the WafStatus1xx field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWafStatus1xx + +`func (o *OriginInspectorMeasurements) SetWafStatus1xx(v int32)` + +SetWafStatus1xx sets WafStatus1xx field to given value. + +### HasWafStatus1xx + +`func (o *OriginInspectorMeasurements) HasWafStatus1xx() bool` + +HasWafStatus1xx returns a boolean if a field has been set. + +### GetWafStatus2xx + +`func (o *OriginInspectorMeasurements) GetWafStatus2xx() int32` + +GetWafStatus2xx returns the WafStatus2xx field if non-nil, zero value otherwise. + +### GetWafStatus2xxOk + +`func (o *OriginInspectorMeasurements) GetWafStatus2xxOk() (*int32, bool)` + +GetWafStatus2xxOk returns a tuple with the WafStatus2xx field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWafStatus2xx + +`func (o *OriginInspectorMeasurements) SetWafStatus2xx(v int32)` + +SetWafStatus2xx sets WafStatus2xx field to given value. + +### HasWafStatus2xx + +`func (o *OriginInspectorMeasurements) HasWafStatus2xx() bool` + +HasWafStatus2xx returns a boolean if a field has been set. + +### GetWafStatus3xx + +`func (o *OriginInspectorMeasurements) GetWafStatus3xx() int32` + +GetWafStatus3xx returns the WafStatus3xx field if non-nil, zero value otherwise. + +### GetWafStatus3xxOk + +`func (o *OriginInspectorMeasurements) GetWafStatus3xxOk() (*int32, bool)` + +GetWafStatus3xxOk returns a tuple with the WafStatus3xx field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWafStatus3xx + +`func (o *OriginInspectorMeasurements) SetWafStatus3xx(v int32)` + +SetWafStatus3xx sets WafStatus3xx field to given value. + +### HasWafStatus3xx + +`func (o *OriginInspectorMeasurements) HasWafStatus3xx() bool` + +HasWafStatus3xx returns a boolean if a field has been set. + +### GetWafStatus4xx + +`func (o *OriginInspectorMeasurements) GetWafStatus4xx() int32` + +GetWafStatus4xx returns the WafStatus4xx field if non-nil, zero value otherwise. + +### GetWafStatus4xxOk + +`func (o *OriginInspectorMeasurements) GetWafStatus4xxOk() (*int32, bool)` + +GetWafStatus4xxOk returns a tuple with the WafStatus4xx field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWafStatus4xx + +`func (o *OriginInspectorMeasurements) SetWafStatus4xx(v int32)` + +SetWafStatus4xx sets WafStatus4xx field to given value. + +### HasWafStatus4xx + +`func (o *OriginInspectorMeasurements) HasWafStatus4xx() bool` + +HasWafStatus4xx returns a boolean if a field has been set. + +### GetWafStatus5xx + +`func (o *OriginInspectorMeasurements) GetWafStatus5xx() int32` + +GetWafStatus5xx returns the WafStatus5xx field if non-nil, zero value otherwise. + +### GetWafStatus5xxOk + +`func (o *OriginInspectorMeasurements) GetWafStatus5xxOk() (*int32, bool)` + +GetWafStatus5xxOk returns a tuple with the WafStatus5xx field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWafStatus5xx + +`func (o *OriginInspectorMeasurements) SetWafStatus5xx(v int32)` + +SetWafStatus5xx sets WafStatus5xx field to given value. + +### HasWafStatus5xx + +`func (o *OriginInspectorMeasurements) HasWafStatus5xx() bool` + +HasWafStatus5xx returns a boolean if a field has been set. + +### GetWafStatus200 + +`func (o *OriginInspectorMeasurements) GetWafStatus200() int32` + +GetWafStatus200 returns the WafStatus200 field if non-nil, zero value otherwise. + +### GetWafStatus200Ok + +`func (o *OriginInspectorMeasurements) GetWafStatus200Ok() (*int32, bool)` + +GetWafStatus200Ok returns a tuple with the WafStatus200 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWafStatus200 + +`func (o *OriginInspectorMeasurements) SetWafStatus200(v int32)` + +SetWafStatus200 sets WafStatus200 field to given value. + +### HasWafStatus200 + +`func (o *OriginInspectorMeasurements) HasWafStatus200() bool` + +HasWafStatus200 returns a boolean if a field has been set. + +### GetWafStatus204 + +`func (o *OriginInspectorMeasurements) GetWafStatus204() int32` + +GetWafStatus204 returns the WafStatus204 field if non-nil, zero value otherwise. + +### GetWafStatus204Ok + +`func (o *OriginInspectorMeasurements) GetWafStatus204Ok() (*int32, bool)` + +GetWafStatus204Ok returns a tuple with the WafStatus204 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWafStatus204 + +`func (o *OriginInspectorMeasurements) SetWafStatus204(v int32)` + +SetWafStatus204 sets WafStatus204 field to given value. + +### HasWafStatus204 + +`func (o *OriginInspectorMeasurements) HasWafStatus204() bool` + +HasWafStatus204 returns a boolean if a field has been set. + +### GetWafStatus206 + +`func (o *OriginInspectorMeasurements) GetWafStatus206() int32` + +GetWafStatus206 returns the WafStatus206 field if non-nil, zero value otherwise. + +### GetWafStatus206Ok + +`func (o *OriginInspectorMeasurements) GetWafStatus206Ok() (*int32, bool)` + +GetWafStatus206Ok returns a tuple with the WafStatus206 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWafStatus206 + +`func (o *OriginInspectorMeasurements) SetWafStatus206(v int32)` + +SetWafStatus206 sets WafStatus206 field to given value. + +### HasWafStatus206 + +`func (o *OriginInspectorMeasurements) HasWafStatus206() bool` + +HasWafStatus206 returns a boolean if a field has been set. + +### GetWafStatus301 + +`func (o *OriginInspectorMeasurements) GetWafStatus301() int32` + +GetWafStatus301 returns the WafStatus301 field if non-nil, zero value otherwise. + +### GetWafStatus301Ok + +`func (o *OriginInspectorMeasurements) GetWafStatus301Ok() (*int32, bool)` + +GetWafStatus301Ok returns a tuple with the WafStatus301 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWafStatus301 + +`func (o *OriginInspectorMeasurements) SetWafStatus301(v int32)` + +SetWafStatus301 sets WafStatus301 field to given value. + +### HasWafStatus301 + +`func (o *OriginInspectorMeasurements) HasWafStatus301() bool` + +HasWafStatus301 returns a boolean if a field has been set. + +### GetWafStatus302 + +`func (o *OriginInspectorMeasurements) GetWafStatus302() int32` + +GetWafStatus302 returns the WafStatus302 field if non-nil, zero value otherwise. + +### GetWafStatus302Ok + +`func (o *OriginInspectorMeasurements) GetWafStatus302Ok() (*int32, bool)` + +GetWafStatus302Ok returns a tuple with the WafStatus302 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWafStatus302 + +`func (o *OriginInspectorMeasurements) SetWafStatus302(v int32)` + +SetWafStatus302 sets WafStatus302 field to given value. + +### HasWafStatus302 + +`func (o *OriginInspectorMeasurements) HasWafStatus302() bool` + +HasWafStatus302 returns a boolean if a field has been set. + +### GetWafStatus304 + +`func (o *OriginInspectorMeasurements) GetWafStatus304() int32` + +GetWafStatus304 returns the WafStatus304 field if non-nil, zero value otherwise. + +### GetWafStatus304Ok + +`func (o *OriginInspectorMeasurements) GetWafStatus304Ok() (*int32, bool)` + +GetWafStatus304Ok returns a tuple with the WafStatus304 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWafStatus304 + +`func (o *OriginInspectorMeasurements) SetWafStatus304(v int32)` + +SetWafStatus304 sets WafStatus304 field to given value. + +### HasWafStatus304 + +`func (o *OriginInspectorMeasurements) HasWafStatus304() bool` + +HasWafStatus304 returns a boolean if a field has been set. + +### GetWafStatus400 + +`func (o *OriginInspectorMeasurements) GetWafStatus400() int32` + +GetWafStatus400 returns the WafStatus400 field if non-nil, zero value otherwise. + +### GetWafStatus400Ok + +`func (o *OriginInspectorMeasurements) GetWafStatus400Ok() (*int32, bool)` + +GetWafStatus400Ok returns a tuple with the WafStatus400 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWafStatus400 + +`func (o *OriginInspectorMeasurements) SetWafStatus400(v int32)` + +SetWafStatus400 sets WafStatus400 field to given value. + +### HasWafStatus400 + +`func (o *OriginInspectorMeasurements) HasWafStatus400() bool` + +HasWafStatus400 returns a boolean if a field has been set. + +### GetWafStatus401 + +`func (o *OriginInspectorMeasurements) GetWafStatus401() int32` + +GetWafStatus401 returns the WafStatus401 field if non-nil, zero value otherwise. + +### GetWafStatus401Ok + +`func (o *OriginInspectorMeasurements) GetWafStatus401Ok() (*int32, bool)` + +GetWafStatus401Ok returns a tuple with the WafStatus401 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWafStatus401 + +`func (o *OriginInspectorMeasurements) SetWafStatus401(v int32)` + +SetWafStatus401 sets WafStatus401 field to given value. + +### HasWafStatus401 + +`func (o *OriginInspectorMeasurements) HasWafStatus401() bool` + +HasWafStatus401 returns a boolean if a field has been set. + +### GetWafStatus403 + +`func (o *OriginInspectorMeasurements) GetWafStatus403() int32` + +GetWafStatus403 returns the WafStatus403 field if non-nil, zero value otherwise. + +### GetWafStatus403Ok + +`func (o *OriginInspectorMeasurements) GetWafStatus403Ok() (*int32, bool)` + +GetWafStatus403Ok returns a tuple with the WafStatus403 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWafStatus403 + +`func (o *OriginInspectorMeasurements) SetWafStatus403(v int32)` + +SetWafStatus403 sets WafStatus403 field to given value. + +### HasWafStatus403 + +`func (o *OriginInspectorMeasurements) HasWafStatus403() bool` + +HasWafStatus403 returns a boolean if a field has been set. + +### GetWafStatus404 + +`func (o *OriginInspectorMeasurements) GetWafStatus404() int32` + +GetWafStatus404 returns the WafStatus404 field if non-nil, zero value otherwise. + +### GetWafStatus404Ok + +`func (o *OriginInspectorMeasurements) GetWafStatus404Ok() (*int32, bool)` + +GetWafStatus404Ok returns a tuple with the WafStatus404 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWafStatus404 + +`func (o *OriginInspectorMeasurements) SetWafStatus404(v int32)` + +SetWafStatus404 sets WafStatus404 field to given value. + +### HasWafStatus404 + +`func (o *OriginInspectorMeasurements) HasWafStatus404() bool` + +HasWafStatus404 returns a boolean if a field has been set. + +### GetWafStatus416 + +`func (o *OriginInspectorMeasurements) GetWafStatus416() int32` + +GetWafStatus416 returns the WafStatus416 field if non-nil, zero value otherwise. + +### GetWafStatus416Ok + +`func (o *OriginInspectorMeasurements) GetWafStatus416Ok() (*int32, bool)` + +GetWafStatus416Ok returns a tuple with the WafStatus416 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWafStatus416 + +`func (o *OriginInspectorMeasurements) SetWafStatus416(v int32)` + +SetWafStatus416 sets WafStatus416 field to given value. + +### HasWafStatus416 + +`func (o *OriginInspectorMeasurements) HasWafStatus416() bool` + +HasWafStatus416 returns a boolean if a field has been set. + +### GetWafStatus429 + +`func (o *OriginInspectorMeasurements) GetWafStatus429() int32` + +GetWafStatus429 returns the WafStatus429 field if non-nil, zero value otherwise. + +### GetWafStatus429Ok + +`func (o *OriginInspectorMeasurements) GetWafStatus429Ok() (*int32, bool)` + +GetWafStatus429Ok returns a tuple with the WafStatus429 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWafStatus429 + +`func (o *OriginInspectorMeasurements) SetWafStatus429(v int32)` + +SetWafStatus429 sets WafStatus429 field to given value. + +### HasWafStatus429 + +`func (o *OriginInspectorMeasurements) HasWafStatus429() bool` + +HasWafStatus429 returns a boolean if a field has been set. + +### GetWafStatus500 + +`func (o *OriginInspectorMeasurements) GetWafStatus500() int32` + +GetWafStatus500 returns the WafStatus500 field if non-nil, zero value otherwise. + +### GetWafStatus500Ok + +`func (o *OriginInspectorMeasurements) GetWafStatus500Ok() (*int32, bool)` + +GetWafStatus500Ok returns a tuple with the WafStatus500 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWafStatus500 + +`func (o *OriginInspectorMeasurements) SetWafStatus500(v int32)` + +SetWafStatus500 sets WafStatus500 field to given value. + +### HasWafStatus500 + +`func (o *OriginInspectorMeasurements) HasWafStatus500() bool` + +HasWafStatus500 returns a boolean if a field has been set. + +### GetWafStatus501 + +`func (o *OriginInspectorMeasurements) GetWafStatus501() int32` + +GetWafStatus501 returns the WafStatus501 field if non-nil, zero value otherwise. + +### GetWafStatus501Ok + +`func (o *OriginInspectorMeasurements) GetWafStatus501Ok() (*int32, bool)` + +GetWafStatus501Ok returns a tuple with the WafStatus501 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWafStatus501 + +`func (o *OriginInspectorMeasurements) SetWafStatus501(v int32)` + +SetWafStatus501 sets WafStatus501 field to given value. + +### HasWafStatus501 + +`func (o *OriginInspectorMeasurements) HasWafStatus501() bool` + +HasWafStatus501 returns a boolean if a field has been set. + +### GetWafStatus502 + +`func (o *OriginInspectorMeasurements) GetWafStatus502() int32` + +GetWafStatus502 returns the WafStatus502 field if non-nil, zero value otherwise. + +### GetWafStatus502Ok + +`func (o *OriginInspectorMeasurements) GetWafStatus502Ok() (*int32, bool)` + +GetWafStatus502Ok returns a tuple with the WafStatus502 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWafStatus502 + +`func (o *OriginInspectorMeasurements) SetWafStatus502(v int32)` + +SetWafStatus502 sets WafStatus502 field to given value. + +### HasWafStatus502 + +`func (o *OriginInspectorMeasurements) HasWafStatus502() bool` + +HasWafStatus502 returns a boolean if a field has been set. + +### GetWafStatus503 + +`func (o *OriginInspectorMeasurements) GetWafStatus503() int32` + +GetWafStatus503 returns the WafStatus503 field if non-nil, zero value otherwise. + +### GetWafStatus503Ok + +`func (o *OriginInspectorMeasurements) GetWafStatus503Ok() (*int32, bool)` + +GetWafStatus503Ok returns a tuple with the WafStatus503 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWafStatus503 + +`func (o *OriginInspectorMeasurements) SetWafStatus503(v int32)` + +SetWafStatus503 sets WafStatus503 field to given value. + +### HasWafStatus503 + +`func (o *OriginInspectorMeasurements) HasWafStatus503() bool` + +HasWafStatus503 returns a boolean if a field has been set. + +### GetWafStatus504 + +`func (o *OriginInspectorMeasurements) GetWafStatus504() int32` + +GetWafStatus504 returns the WafStatus504 field if non-nil, zero value otherwise. + +### GetWafStatus504Ok + +`func (o *OriginInspectorMeasurements) GetWafStatus504Ok() (*int32, bool)` + +GetWafStatus504Ok returns a tuple with the WafStatus504 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWafStatus504 + +`func (o *OriginInspectorMeasurements) SetWafStatus504(v int32)` + +SetWafStatus504 sets WafStatus504 field to given value. + +### HasWafStatus504 + +`func (o *OriginInspectorMeasurements) HasWafStatus504() bool` + +HasWafStatus504 returns a boolean if a field has been set. + +### GetWafStatus505 + +`func (o *OriginInspectorMeasurements) GetWafStatus505() int32` + +GetWafStatus505 returns the WafStatus505 field if non-nil, zero value otherwise. + +### GetWafStatus505Ok + +`func (o *OriginInspectorMeasurements) GetWafStatus505Ok() (*int32, bool)` + +GetWafStatus505Ok returns a tuple with the WafStatus505 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWafStatus505 + +`func (o *OriginInspectorMeasurements) SetWafStatus505(v int32)` + +SetWafStatus505 sets WafStatus505 field to given value. + +### HasWafStatus505 + +`func (o *OriginInspectorMeasurements) HasWafStatus505() bool` + +HasWafStatus505 returns a boolean if a field has been set. + +### GetWafLatency0To1ms + +`func (o *OriginInspectorMeasurements) GetWafLatency0To1ms() int32` + +GetWafLatency0To1ms returns the WafLatency0To1ms field if non-nil, zero value otherwise. + +### GetWafLatency0To1msOk + +`func (o *OriginInspectorMeasurements) GetWafLatency0To1msOk() (*int32, bool)` + +GetWafLatency0To1msOk returns a tuple with the WafLatency0To1ms field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWafLatency0To1ms + +`func (o *OriginInspectorMeasurements) SetWafLatency0To1ms(v int32)` + +SetWafLatency0To1ms sets WafLatency0To1ms field to given value. + +### HasWafLatency0To1ms + +`func (o *OriginInspectorMeasurements) HasWafLatency0To1ms() bool` + +HasWafLatency0To1ms returns a boolean if a field has been set. + +### GetWafLatency1To5ms + +`func (o *OriginInspectorMeasurements) GetWafLatency1To5ms() int32` + +GetWafLatency1To5ms returns the WafLatency1To5ms field if non-nil, zero value otherwise. + +### GetWafLatency1To5msOk + +`func (o *OriginInspectorMeasurements) GetWafLatency1To5msOk() (*int32, bool)` + +GetWafLatency1To5msOk returns a tuple with the WafLatency1To5ms field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWafLatency1To5ms + +`func (o *OriginInspectorMeasurements) SetWafLatency1To5ms(v int32)` + +SetWafLatency1To5ms sets WafLatency1To5ms field to given value. + +### HasWafLatency1To5ms + +`func (o *OriginInspectorMeasurements) HasWafLatency1To5ms() bool` + +HasWafLatency1To5ms returns a boolean if a field has been set. + +### GetWafLatency5To10ms + +`func (o *OriginInspectorMeasurements) GetWafLatency5To10ms() int32` + +GetWafLatency5To10ms returns the WafLatency5To10ms field if non-nil, zero value otherwise. + +### GetWafLatency5To10msOk + +`func (o *OriginInspectorMeasurements) GetWafLatency5To10msOk() (*int32, bool)` + +GetWafLatency5To10msOk returns a tuple with the WafLatency5To10ms field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWafLatency5To10ms + +`func (o *OriginInspectorMeasurements) SetWafLatency5To10ms(v int32)` + +SetWafLatency5To10ms sets WafLatency5To10ms field to given value. + +### HasWafLatency5To10ms + +`func (o *OriginInspectorMeasurements) HasWafLatency5To10ms() bool` + +HasWafLatency5To10ms returns a boolean if a field has been set. + +### GetWafLatency10To50ms + +`func (o *OriginInspectorMeasurements) GetWafLatency10To50ms() int32` + +GetWafLatency10To50ms returns the WafLatency10To50ms field if non-nil, zero value otherwise. + +### GetWafLatency10To50msOk + +`func (o *OriginInspectorMeasurements) GetWafLatency10To50msOk() (*int32, bool)` + +GetWafLatency10To50msOk returns a tuple with the WafLatency10To50ms field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWafLatency10To50ms + +`func (o *OriginInspectorMeasurements) SetWafLatency10To50ms(v int32)` + +SetWafLatency10To50ms sets WafLatency10To50ms field to given value. + +### HasWafLatency10To50ms + +`func (o *OriginInspectorMeasurements) HasWafLatency10To50ms() bool` + +HasWafLatency10To50ms returns a boolean if a field has been set. + +### GetWafLatency50To100ms + +`func (o *OriginInspectorMeasurements) GetWafLatency50To100ms() int32` + +GetWafLatency50To100ms returns the WafLatency50To100ms field if non-nil, zero value otherwise. + +### GetWafLatency50To100msOk + +`func (o *OriginInspectorMeasurements) GetWafLatency50To100msOk() (*int32, bool)` + +GetWafLatency50To100msOk returns a tuple with the WafLatency50To100ms field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWafLatency50To100ms + +`func (o *OriginInspectorMeasurements) SetWafLatency50To100ms(v int32)` + +SetWafLatency50To100ms sets WafLatency50To100ms field to given value. + +### HasWafLatency50To100ms + +`func (o *OriginInspectorMeasurements) HasWafLatency50To100ms() bool` + +HasWafLatency50To100ms returns a boolean if a field has been set. + +### GetWafLatency100To250ms + +`func (o *OriginInspectorMeasurements) GetWafLatency100To250ms() int32` + +GetWafLatency100To250ms returns the WafLatency100To250ms field if non-nil, zero value otherwise. + +### GetWafLatency100To250msOk + +`func (o *OriginInspectorMeasurements) GetWafLatency100To250msOk() (*int32, bool)` + +GetWafLatency100To250msOk returns a tuple with the WafLatency100To250ms field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWafLatency100To250ms + +`func (o *OriginInspectorMeasurements) SetWafLatency100To250ms(v int32)` + +SetWafLatency100To250ms sets WafLatency100To250ms field to given value. + +### HasWafLatency100To250ms + +`func (o *OriginInspectorMeasurements) HasWafLatency100To250ms() bool` + +HasWafLatency100To250ms returns a boolean if a field has been set. + +### GetWafLatency250To500ms + +`func (o *OriginInspectorMeasurements) GetWafLatency250To500ms() int32` + +GetWafLatency250To500ms returns the WafLatency250To500ms field if non-nil, zero value otherwise. + +### GetWafLatency250To500msOk + +`func (o *OriginInspectorMeasurements) GetWafLatency250To500msOk() (*int32, bool)` + +GetWafLatency250To500msOk returns a tuple with the WafLatency250To500ms field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWafLatency250To500ms + +`func (o *OriginInspectorMeasurements) SetWafLatency250To500ms(v int32)` + +SetWafLatency250To500ms sets WafLatency250To500ms field to given value. + +### HasWafLatency250To500ms + +`func (o *OriginInspectorMeasurements) HasWafLatency250To500ms() bool` + +HasWafLatency250To500ms returns a boolean if a field has been set. + +### GetWafLatency500To1000ms + +`func (o *OriginInspectorMeasurements) GetWafLatency500To1000ms() int32` + +GetWafLatency500To1000ms returns the WafLatency500To1000ms field if non-nil, zero value otherwise. + +### GetWafLatency500To1000msOk + +`func (o *OriginInspectorMeasurements) GetWafLatency500To1000msOk() (*int32, bool)` + +GetWafLatency500To1000msOk returns a tuple with the WafLatency500To1000ms field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWafLatency500To1000ms + +`func (o *OriginInspectorMeasurements) SetWafLatency500To1000ms(v int32)` + +SetWafLatency500To1000ms sets WafLatency500To1000ms field to given value. + +### HasWafLatency500To1000ms + +`func (o *OriginInspectorMeasurements) HasWafLatency500To1000ms() bool` + +HasWafLatency500To1000ms returns a boolean if a field has been set. + +### GetWafLatency1000To5000ms + +`func (o *OriginInspectorMeasurements) GetWafLatency1000To5000ms() int32` + +GetWafLatency1000To5000ms returns the WafLatency1000To5000ms field if non-nil, zero value otherwise. + +### GetWafLatency1000To5000msOk + +`func (o *OriginInspectorMeasurements) GetWafLatency1000To5000msOk() (*int32, bool)` + +GetWafLatency1000To5000msOk returns a tuple with the WafLatency1000To5000ms field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWafLatency1000To5000ms + +`func (o *OriginInspectorMeasurements) SetWafLatency1000To5000ms(v int32)` + +SetWafLatency1000To5000ms sets WafLatency1000To5000ms field to given value. + +### HasWafLatency1000To5000ms + +`func (o *OriginInspectorMeasurements) HasWafLatency1000To5000ms() bool` + +HasWafLatency1000To5000ms returns a boolean if a field has been set. + +### GetWafLatency5000To10000ms + +`func (o *OriginInspectorMeasurements) GetWafLatency5000To10000ms() int32` + +GetWafLatency5000To10000ms returns the WafLatency5000To10000ms field if non-nil, zero value otherwise. + +### GetWafLatency5000To10000msOk + +`func (o *OriginInspectorMeasurements) GetWafLatency5000To10000msOk() (*int32, bool)` + +GetWafLatency5000To10000msOk returns a tuple with the WafLatency5000To10000ms field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWafLatency5000To10000ms + +`func (o *OriginInspectorMeasurements) SetWafLatency5000To10000ms(v int32)` + +SetWafLatency5000To10000ms sets WafLatency5000To10000ms field to given value. + +### HasWafLatency5000To10000ms + +`func (o *OriginInspectorMeasurements) HasWafLatency5000To10000ms() bool` + +HasWafLatency5000To10000ms returns a boolean if a field has been set. + +### GetWafLatency10000To60000ms + +`func (o *OriginInspectorMeasurements) GetWafLatency10000To60000ms() int32` + +GetWafLatency10000To60000ms returns the WafLatency10000To60000ms field if non-nil, zero value otherwise. + +### GetWafLatency10000To60000msOk + +`func (o *OriginInspectorMeasurements) GetWafLatency10000To60000msOk() (*int32, bool)` + +GetWafLatency10000To60000msOk returns a tuple with the WafLatency10000To60000ms field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWafLatency10000To60000ms + +`func (o *OriginInspectorMeasurements) SetWafLatency10000To60000ms(v int32)` + +SetWafLatency10000To60000ms sets WafLatency10000To60000ms field to given value. + +### HasWafLatency10000To60000ms + +`func (o *OriginInspectorMeasurements) HasWafLatency10000To60000ms() bool` + +HasWafLatency10000To60000ms returns a boolean if a field has been set. + +### GetWafLatency60000ms + +`func (o *OriginInspectorMeasurements) GetWafLatency60000ms() int32` + +GetWafLatency60000ms returns the WafLatency60000ms field if non-nil, zero value otherwise. + +### GetWafLatency60000msOk + +`func (o *OriginInspectorMeasurements) GetWafLatency60000msOk() (*int32, bool)` + +GetWafLatency60000msOk returns a tuple with the WafLatency60000ms field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWafLatency60000ms + +`func (o *OriginInspectorMeasurements) SetWafLatency60000ms(v int32)` + +SetWafLatency60000ms sets WafLatency60000ms field to given value. + +### HasWafLatency60000ms + +`func (o *OriginInspectorMeasurements) HasWafLatency60000ms() bool` + +HasWafLatency60000ms returns a boolean if a field has been set. + +### GetComputeResponses + +`func (o *OriginInspectorMeasurements) GetComputeResponses() int32` + +GetComputeResponses returns the ComputeResponses field if non-nil, zero value otherwise. + +### GetComputeResponsesOk + +`func (o *OriginInspectorMeasurements) GetComputeResponsesOk() (*int32, bool)` + +GetComputeResponsesOk returns a tuple with the ComputeResponses field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComputeResponses + +`func (o *OriginInspectorMeasurements) SetComputeResponses(v int32)` + +SetComputeResponses sets ComputeResponses field to given value. + +### HasComputeResponses + +`func (o *OriginInspectorMeasurements) HasComputeResponses() bool` + +HasComputeResponses returns a boolean if a field has been set. + +### GetComputeRespHeaderBytes + +`func (o *OriginInspectorMeasurements) GetComputeRespHeaderBytes() int32` + +GetComputeRespHeaderBytes returns the ComputeRespHeaderBytes field if non-nil, zero value otherwise. + +### GetComputeRespHeaderBytesOk + +`func (o *OriginInspectorMeasurements) GetComputeRespHeaderBytesOk() (*int32, bool)` + +GetComputeRespHeaderBytesOk returns a tuple with the ComputeRespHeaderBytes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComputeRespHeaderBytes + +`func (o *OriginInspectorMeasurements) SetComputeRespHeaderBytes(v int32)` + +SetComputeRespHeaderBytes sets ComputeRespHeaderBytes field to given value. + +### HasComputeRespHeaderBytes + +`func (o *OriginInspectorMeasurements) HasComputeRespHeaderBytes() bool` + +HasComputeRespHeaderBytes returns a boolean if a field has been set. + +### GetComputeRespBodyBytes + +`func (o *OriginInspectorMeasurements) GetComputeRespBodyBytes() int32` + +GetComputeRespBodyBytes returns the ComputeRespBodyBytes field if non-nil, zero value otherwise. + +### GetComputeRespBodyBytesOk + +`func (o *OriginInspectorMeasurements) GetComputeRespBodyBytesOk() (*int32, bool)` + +GetComputeRespBodyBytesOk returns a tuple with the ComputeRespBodyBytes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComputeRespBodyBytes + +`func (o *OriginInspectorMeasurements) SetComputeRespBodyBytes(v int32)` + +SetComputeRespBodyBytes sets ComputeRespBodyBytes field to given value. + +### HasComputeRespBodyBytes + +`func (o *OriginInspectorMeasurements) HasComputeRespBodyBytes() bool` + +HasComputeRespBodyBytes returns a boolean if a field has been set. + +### GetComputeStatus1xx + +`func (o *OriginInspectorMeasurements) GetComputeStatus1xx() int32` + +GetComputeStatus1xx returns the ComputeStatus1xx field if non-nil, zero value otherwise. + +### GetComputeStatus1xxOk + +`func (o *OriginInspectorMeasurements) GetComputeStatus1xxOk() (*int32, bool)` + +GetComputeStatus1xxOk returns a tuple with the ComputeStatus1xx field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComputeStatus1xx + +`func (o *OriginInspectorMeasurements) SetComputeStatus1xx(v int32)` + +SetComputeStatus1xx sets ComputeStatus1xx field to given value. + +### HasComputeStatus1xx + +`func (o *OriginInspectorMeasurements) HasComputeStatus1xx() bool` + +HasComputeStatus1xx returns a boolean if a field has been set. + +### GetComputeStatus2xx + +`func (o *OriginInspectorMeasurements) GetComputeStatus2xx() int32` + +GetComputeStatus2xx returns the ComputeStatus2xx field if non-nil, zero value otherwise. + +### GetComputeStatus2xxOk + +`func (o *OriginInspectorMeasurements) GetComputeStatus2xxOk() (*int32, bool)` + +GetComputeStatus2xxOk returns a tuple with the ComputeStatus2xx field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComputeStatus2xx + +`func (o *OriginInspectorMeasurements) SetComputeStatus2xx(v int32)` + +SetComputeStatus2xx sets ComputeStatus2xx field to given value. + +### HasComputeStatus2xx + +`func (o *OriginInspectorMeasurements) HasComputeStatus2xx() bool` + +HasComputeStatus2xx returns a boolean if a field has been set. + +### GetComputeStatus3xx + +`func (o *OriginInspectorMeasurements) GetComputeStatus3xx() int32` + +GetComputeStatus3xx returns the ComputeStatus3xx field if non-nil, zero value otherwise. + +### GetComputeStatus3xxOk + +`func (o *OriginInspectorMeasurements) GetComputeStatus3xxOk() (*int32, bool)` + +GetComputeStatus3xxOk returns a tuple with the ComputeStatus3xx field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComputeStatus3xx + +`func (o *OriginInspectorMeasurements) SetComputeStatus3xx(v int32)` + +SetComputeStatus3xx sets ComputeStatus3xx field to given value. + +### HasComputeStatus3xx + +`func (o *OriginInspectorMeasurements) HasComputeStatus3xx() bool` + +HasComputeStatus3xx returns a boolean if a field has been set. + +### GetComputeStatus4xx + +`func (o *OriginInspectorMeasurements) GetComputeStatus4xx() int32` + +GetComputeStatus4xx returns the ComputeStatus4xx field if non-nil, zero value otherwise. + +### GetComputeStatus4xxOk + +`func (o *OriginInspectorMeasurements) GetComputeStatus4xxOk() (*int32, bool)` + +GetComputeStatus4xxOk returns a tuple with the ComputeStatus4xx field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComputeStatus4xx + +`func (o *OriginInspectorMeasurements) SetComputeStatus4xx(v int32)` + +SetComputeStatus4xx sets ComputeStatus4xx field to given value. + +### HasComputeStatus4xx + +`func (o *OriginInspectorMeasurements) HasComputeStatus4xx() bool` + +HasComputeStatus4xx returns a boolean if a field has been set. + +### GetComputeStatus5xx + +`func (o *OriginInspectorMeasurements) GetComputeStatus5xx() int32` + +GetComputeStatus5xx returns the ComputeStatus5xx field if non-nil, zero value otherwise. + +### GetComputeStatus5xxOk + +`func (o *OriginInspectorMeasurements) GetComputeStatus5xxOk() (*int32, bool)` + +GetComputeStatus5xxOk returns a tuple with the ComputeStatus5xx field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComputeStatus5xx + +`func (o *OriginInspectorMeasurements) SetComputeStatus5xx(v int32)` + +SetComputeStatus5xx sets ComputeStatus5xx field to given value. + +### HasComputeStatus5xx + +`func (o *OriginInspectorMeasurements) HasComputeStatus5xx() bool` + +HasComputeStatus5xx returns a boolean if a field has been set. + +### GetComputeStatus200 + +`func (o *OriginInspectorMeasurements) GetComputeStatus200() int32` + +GetComputeStatus200 returns the ComputeStatus200 field if non-nil, zero value otherwise. + +### GetComputeStatus200Ok + +`func (o *OriginInspectorMeasurements) GetComputeStatus200Ok() (*int32, bool)` + +GetComputeStatus200Ok returns a tuple with the ComputeStatus200 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComputeStatus200 + +`func (o *OriginInspectorMeasurements) SetComputeStatus200(v int32)` + +SetComputeStatus200 sets ComputeStatus200 field to given value. + +### HasComputeStatus200 + +`func (o *OriginInspectorMeasurements) HasComputeStatus200() bool` + +HasComputeStatus200 returns a boolean if a field has been set. + +### GetComputeStatus204 + +`func (o *OriginInspectorMeasurements) GetComputeStatus204() int32` + +GetComputeStatus204 returns the ComputeStatus204 field if non-nil, zero value otherwise. + +### GetComputeStatus204Ok + +`func (o *OriginInspectorMeasurements) GetComputeStatus204Ok() (*int32, bool)` + +GetComputeStatus204Ok returns a tuple with the ComputeStatus204 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComputeStatus204 + +`func (o *OriginInspectorMeasurements) SetComputeStatus204(v int32)` + +SetComputeStatus204 sets ComputeStatus204 field to given value. + +### HasComputeStatus204 + +`func (o *OriginInspectorMeasurements) HasComputeStatus204() bool` + +HasComputeStatus204 returns a boolean if a field has been set. + +### GetComputeStatus206 + +`func (o *OriginInspectorMeasurements) GetComputeStatus206() int32` + +GetComputeStatus206 returns the ComputeStatus206 field if non-nil, zero value otherwise. + +### GetComputeStatus206Ok + +`func (o *OriginInspectorMeasurements) GetComputeStatus206Ok() (*int32, bool)` + +GetComputeStatus206Ok returns a tuple with the ComputeStatus206 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComputeStatus206 + +`func (o *OriginInspectorMeasurements) SetComputeStatus206(v int32)` + +SetComputeStatus206 sets ComputeStatus206 field to given value. + +### HasComputeStatus206 + +`func (o *OriginInspectorMeasurements) HasComputeStatus206() bool` + +HasComputeStatus206 returns a boolean if a field has been set. + +### GetComputeStatus301 + +`func (o *OriginInspectorMeasurements) GetComputeStatus301() int32` + +GetComputeStatus301 returns the ComputeStatus301 field if non-nil, zero value otherwise. + +### GetComputeStatus301Ok + +`func (o *OriginInspectorMeasurements) GetComputeStatus301Ok() (*int32, bool)` + +GetComputeStatus301Ok returns a tuple with the ComputeStatus301 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComputeStatus301 + +`func (o *OriginInspectorMeasurements) SetComputeStatus301(v int32)` + +SetComputeStatus301 sets ComputeStatus301 field to given value. + +### HasComputeStatus301 + +`func (o *OriginInspectorMeasurements) HasComputeStatus301() bool` + +HasComputeStatus301 returns a boolean if a field has been set. + +### GetComputeStatus302 + +`func (o *OriginInspectorMeasurements) GetComputeStatus302() int32` + +GetComputeStatus302 returns the ComputeStatus302 field if non-nil, zero value otherwise. + +### GetComputeStatus302Ok + +`func (o *OriginInspectorMeasurements) GetComputeStatus302Ok() (*int32, bool)` + +GetComputeStatus302Ok returns a tuple with the ComputeStatus302 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComputeStatus302 + +`func (o *OriginInspectorMeasurements) SetComputeStatus302(v int32)` + +SetComputeStatus302 sets ComputeStatus302 field to given value. + +### HasComputeStatus302 + +`func (o *OriginInspectorMeasurements) HasComputeStatus302() bool` + +HasComputeStatus302 returns a boolean if a field has been set. + +### GetComputeStatus304 + +`func (o *OriginInspectorMeasurements) GetComputeStatus304() int32` + +GetComputeStatus304 returns the ComputeStatus304 field if non-nil, zero value otherwise. + +### GetComputeStatus304Ok + +`func (o *OriginInspectorMeasurements) GetComputeStatus304Ok() (*int32, bool)` + +GetComputeStatus304Ok returns a tuple with the ComputeStatus304 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComputeStatus304 + +`func (o *OriginInspectorMeasurements) SetComputeStatus304(v int32)` + +SetComputeStatus304 sets ComputeStatus304 field to given value. + +### HasComputeStatus304 + +`func (o *OriginInspectorMeasurements) HasComputeStatus304() bool` + +HasComputeStatus304 returns a boolean if a field has been set. + +### GetComputeStatus400 + +`func (o *OriginInspectorMeasurements) GetComputeStatus400() int32` + +GetComputeStatus400 returns the ComputeStatus400 field if non-nil, zero value otherwise. + +### GetComputeStatus400Ok + +`func (o *OriginInspectorMeasurements) GetComputeStatus400Ok() (*int32, bool)` + +GetComputeStatus400Ok returns a tuple with the ComputeStatus400 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComputeStatus400 + +`func (o *OriginInspectorMeasurements) SetComputeStatus400(v int32)` + +SetComputeStatus400 sets ComputeStatus400 field to given value. + +### HasComputeStatus400 + +`func (o *OriginInspectorMeasurements) HasComputeStatus400() bool` + +HasComputeStatus400 returns a boolean if a field has been set. + +### GetComputeStatus401 + +`func (o *OriginInspectorMeasurements) GetComputeStatus401() int32` + +GetComputeStatus401 returns the ComputeStatus401 field if non-nil, zero value otherwise. + +### GetComputeStatus401Ok + +`func (o *OriginInspectorMeasurements) GetComputeStatus401Ok() (*int32, bool)` + +GetComputeStatus401Ok returns a tuple with the ComputeStatus401 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComputeStatus401 + +`func (o *OriginInspectorMeasurements) SetComputeStatus401(v int32)` + +SetComputeStatus401 sets ComputeStatus401 field to given value. + +### HasComputeStatus401 + +`func (o *OriginInspectorMeasurements) HasComputeStatus401() bool` + +HasComputeStatus401 returns a boolean if a field has been set. + +### GetComputeStatus403 + +`func (o *OriginInspectorMeasurements) GetComputeStatus403() int32` + +GetComputeStatus403 returns the ComputeStatus403 field if non-nil, zero value otherwise. + +### GetComputeStatus403Ok + +`func (o *OriginInspectorMeasurements) GetComputeStatus403Ok() (*int32, bool)` + +GetComputeStatus403Ok returns a tuple with the ComputeStatus403 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComputeStatus403 + +`func (o *OriginInspectorMeasurements) SetComputeStatus403(v int32)` + +SetComputeStatus403 sets ComputeStatus403 field to given value. + +### HasComputeStatus403 + +`func (o *OriginInspectorMeasurements) HasComputeStatus403() bool` + +HasComputeStatus403 returns a boolean if a field has been set. + +### GetComputeStatus404 + +`func (o *OriginInspectorMeasurements) GetComputeStatus404() int32` + +GetComputeStatus404 returns the ComputeStatus404 field if non-nil, zero value otherwise. + +### GetComputeStatus404Ok + +`func (o *OriginInspectorMeasurements) GetComputeStatus404Ok() (*int32, bool)` + +GetComputeStatus404Ok returns a tuple with the ComputeStatus404 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComputeStatus404 + +`func (o *OriginInspectorMeasurements) SetComputeStatus404(v int32)` + +SetComputeStatus404 sets ComputeStatus404 field to given value. + +### HasComputeStatus404 + +`func (o *OriginInspectorMeasurements) HasComputeStatus404() bool` + +HasComputeStatus404 returns a boolean if a field has been set. + +### GetComputeStatus416 + +`func (o *OriginInspectorMeasurements) GetComputeStatus416() int32` + +GetComputeStatus416 returns the ComputeStatus416 field if non-nil, zero value otherwise. + +### GetComputeStatus416Ok + +`func (o *OriginInspectorMeasurements) GetComputeStatus416Ok() (*int32, bool)` + +GetComputeStatus416Ok returns a tuple with the ComputeStatus416 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComputeStatus416 + +`func (o *OriginInspectorMeasurements) SetComputeStatus416(v int32)` + +SetComputeStatus416 sets ComputeStatus416 field to given value. + +### HasComputeStatus416 + +`func (o *OriginInspectorMeasurements) HasComputeStatus416() bool` + +HasComputeStatus416 returns a boolean if a field has been set. + +### GetComputeStatus429 + +`func (o *OriginInspectorMeasurements) GetComputeStatus429() int32` + +GetComputeStatus429 returns the ComputeStatus429 field if non-nil, zero value otherwise. + +### GetComputeStatus429Ok + +`func (o *OriginInspectorMeasurements) GetComputeStatus429Ok() (*int32, bool)` + +GetComputeStatus429Ok returns a tuple with the ComputeStatus429 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComputeStatus429 + +`func (o *OriginInspectorMeasurements) SetComputeStatus429(v int32)` + +SetComputeStatus429 sets ComputeStatus429 field to given value. + +### HasComputeStatus429 + +`func (o *OriginInspectorMeasurements) HasComputeStatus429() bool` + +HasComputeStatus429 returns a boolean if a field has been set. + +### GetComputeStatus500 + +`func (o *OriginInspectorMeasurements) GetComputeStatus500() int32` + +GetComputeStatus500 returns the ComputeStatus500 field if non-nil, zero value otherwise. + +### GetComputeStatus500Ok + +`func (o *OriginInspectorMeasurements) GetComputeStatus500Ok() (*int32, bool)` + +GetComputeStatus500Ok returns a tuple with the ComputeStatus500 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComputeStatus500 + +`func (o *OriginInspectorMeasurements) SetComputeStatus500(v int32)` + +SetComputeStatus500 sets ComputeStatus500 field to given value. + +### HasComputeStatus500 + +`func (o *OriginInspectorMeasurements) HasComputeStatus500() bool` + +HasComputeStatus500 returns a boolean if a field has been set. + +### GetComputeStatus501 + +`func (o *OriginInspectorMeasurements) GetComputeStatus501() int32` + +GetComputeStatus501 returns the ComputeStatus501 field if non-nil, zero value otherwise. + +### GetComputeStatus501Ok + +`func (o *OriginInspectorMeasurements) GetComputeStatus501Ok() (*int32, bool)` + +GetComputeStatus501Ok returns a tuple with the ComputeStatus501 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComputeStatus501 + +`func (o *OriginInspectorMeasurements) SetComputeStatus501(v int32)` + +SetComputeStatus501 sets ComputeStatus501 field to given value. + +### HasComputeStatus501 + +`func (o *OriginInspectorMeasurements) HasComputeStatus501() bool` + +HasComputeStatus501 returns a boolean if a field has been set. + +### GetComputeStatus502 + +`func (o *OriginInspectorMeasurements) GetComputeStatus502() int32` + +GetComputeStatus502 returns the ComputeStatus502 field if non-nil, zero value otherwise. + +### GetComputeStatus502Ok + +`func (o *OriginInspectorMeasurements) GetComputeStatus502Ok() (*int32, bool)` + +GetComputeStatus502Ok returns a tuple with the ComputeStatus502 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComputeStatus502 + +`func (o *OriginInspectorMeasurements) SetComputeStatus502(v int32)` + +SetComputeStatus502 sets ComputeStatus502 field to given value. + +### HasComputeStatus502 + +`func (o *OriginInspectorMeasurements) HasComputeStatus502() bool` + +HasComputeStatus502 returns a boolean if a field has been set. + +### GetComputeStatus503 + +`func (o *OriginInspectorMeasurements) GetComputeStatus503() int32` + +GetComputeStatus503 returns the ComputeStatus503 field if non-nil, zero value otherwise. + +### GetComputeStatus503Ok + +`func (o *OriginInspectorMeasurements) GetComputeStatus503Ok() (*int32, bool)` + +GetComputeStatus503Ok returns a tuple with the ComputeStatus503 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComputeStatus503 + +`func (o *OriginInspectorMeasurements) SetComputeStatus503(v int32)` + +SetComputeStatus503 sets ComputeStatus503 field to given value. + +### HasComputeStatus503 + +`func (o *OriginInspectorMeasurements) HasComputeStatus503() bool` + +HasComputeStatus503 returns a boolean if a field has been set. + +### GetComputeStatus504 + +`func (o *OriginInspectorMeasurements) GetComputeStatus504() int32` + +GetComputeStatus504 returns the ComputeStatus504 field if non-nil, zero value otherwise. + +### GetComputeStatus504Ok + +`func (o *OriginInspectorMeasurements) GetComputeStatus504Ok() (*int32, bool)` + +GetComputeStatus504Ok returns a tuple with the ComputeStatus504 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComputeStatus504 + +`func (o *OriginInspectorMeasurements) SetComputeStatus504(v int32)` + +SetComputeStatus504 sets ComputeStatus504 field to given value. + +### HasComputeStatus504 + +`func (o *OriginInspectorMeasurements) HasComputeStatus504() bool` + +HasComputeStatus504 returns a boolean if a field has been set. + +### GetComputeStatus505 + +`func (o *OriginInspectorMeasurements) GetComputeStatus505() int32` + +GetComputeStatus505 returns the ComputeStatus505 field if non-nil, zero value otherwise. + +### GetComputeStatus505Ok + +`func (o *OriginInspectorMeasurements) GetComputeStatus505Ok() (*int32, bool)` + +GetComputeStatus505Ok returns a tuple with the ComputeStatus505 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComputeStatus505 + +`func (o *OriginInspectorMeasurements) SetComputeStatus505(v int32)` + +SetComputeStatus505 sets ComputeStatus505 field to given value. + +### HasComputeStatus505 + +`func (o *OriginInspectorMeasurements) HasComputeStatus505() bool` + +HasComputeStatus505 returns a boolean if a field has been set. + +### GetComputeLatency0To1ms + +`func (o *OriginInspectorMeasurements) GetComputeLatency0To1ms() int32` + +GetComputeLatency0To1ms returns the ComputeLatency0To1ms field if non-nil, zero value otherwise. + +### GetComputeLatency0To1msOk + +`func (o *OriginInspectorMeasurements) GetComputeLatency0To1msOk() (*int32, bool)` + +GetComputeLatency0To1msOk returns a tuple with the ComputeLatency0To1ms field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComputeLatency0To1ms + +`func (o *OriginInspectorMeasurements) SetComputeLatency0To1ms(v int32)` + +SetComputeLatency0To1ms sets ComputeLatency0To1ms field to given value. + +### HasComputeLatency0To1ms + +`func (o *OriginInspectorMeasurements) HasComputeLatency0To1ms() bool` + +HasComputeLatency0To1ms returns a boolean if a field has been set. + +### GetComputeLatency1To5ms + +`func (o *OriginInspectorMeasurements) GetComputeLatency1To5ms() int32` + +GetComputeLatency1To5ms returns the ComputeLatency1To5ms field if non-nil, zero value otherwise. + +### GetComputeLatency1To5msOk + +`func (o *OriginInspectorMeasurements) GetComputeLatency1To5msOk() (*int32, bool)` + +GetComputeLatency1To5msOk returns a tuple with the ComputeLatency1To5ms field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComputeLatency1To5ms + +`func (o *OriginInspectorMeasurements) SetComputeLatency1To5ms(v int32)` + +SetComputeLatency1To5ms sets ComputeLatency1To5ms field to given value. + +### HasComputeLatency1To5ms + +`func (o *OriginInspectorMeasurements) HasComputeLatency1To5ms() bool` + +HasComputeLatency1To5ms returns a boolean if a field has been set. + +### GetComputeLatency5To10ms + +`func (o *OriginInspectorMeasurements) GetComputeLatency5To10ms() int32` + +GetComputeLatency5To10ms returns the ComputeLatency5To10ms field if non-nil, zero value otherwise. + +### GetComputeLatency5To10msOk + +`func (o *OriginInspectorMeasurements) GetComputeLatency5To10msOk() (*int32, bool)` + +GetComputeLatency5To10msOk returns a tuple with the ComputeLatency5To10ms field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComputeLatency5To10ms + +`func (o *OriginInspectorMeasurements) SetComputeLatency5To10ms(v int32)` + +SetComputeLatency5To10ms sets ComputeLatency5To10ms field to given value. + +### HasComputeLatency5To10ms + +`func (o *OriginInspectorMeasurements) HasComputeLatency5To10ms() bool` + +HasComputeLatency5To10ms returns a boolean if a field has been set. + +### GetComputeLatency10To50ms + +`func (o *OriginInspectorMeasurements) GetComputeLatency10To50ms() int32` + +GetComputeLatency10To50ms returns the ComputeLatency10To50ms field if non-nil, zero value otherwise. + +### GetComputeLatency10To50msOk + +`func (o *OriginInspectorMeasurements) GetComputeLatency10To50msOk() (*int32, bool)` + +GetComputeLatency10To50msOk returns a tuple with the ComputeLatency10To50ms field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComputeLatency10To50ms + +`func (o *OriginInspectorMeasurements) SetComputeLatency10To50ms(v int32)` + +SetComputeLatency10To50ms sets ComputeLatency10To50ms field to given value. + +### HasComputeLatency10To50ms + +`func (o *OriginInspectorMeasurements) HasComputeLatency10To50ms() bool` + +HasComputeLatency10To50ms returns a boolean if a field has been set. + +### GetComputeLatency50To100ms + +`func (o *OriginInspectorMeasurements) GetComputeLatency50To100ms() int32` + +GetComputeLatency50To100ms returns the ComputeLatency50To100ms field if non-nil, zero value otherwise. + +### GetComputeLatency50To100msOk + +`func (o *OriginInspectorMeasurements) GetComputeLatency50To100msOk() (*int32, bool)` + +GetComputeLatency50To100msOk returns a tuple with the ComputeLatency50To100ms field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComputeLatency50To100ms + +`func (o *OriginInspectorMeasurements) SetComputeLatency50To100ms(v int32)` + +SetComputeLatency50To100ms sets ComputeLatency50To100ms field to given value. + +### HasComputeLatency50To100ms + +`func (o *OriginInspectorMeasurements) HasComputeLatency50To100ms() bool` + +HasComputeLatency50To100ms returns a boolean if a field has been set. + +### GetComputeLatency100To250ms + +`func (o *OriginInspectorMeasurements) GetComputeLatency100To250ms() int32` + +GetComputeLatency100To250ms returns the ComputeLatency100To250ms field if non-nil, zero value otherwise. + +### GetComputeLatency100To250msOk + +`func (o *OriginInspectorMeasurements) GetComputeLatency100To250msOk() (*int32, bool)` + +GetComputeLatency100To250msOk returns a tuple with the ComputeLatency100To250ms field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComputeLatency100To250ms + +`func (o *OriginInspectorMeasurements) SetComputeLatency100To250ms(v int32)` + +SetComputeLatency100To250ms sets ComputeLatency100To250ms field to given value. + +### HasComputeLatency100To250ms + +`func (o *OriginInspectorMeasurements) HasComputeLatency100To250ms() bool` + +HasComputeLatency100To250ms returns a boolean if a field has been set. + +### GetComputeLatency250To500ms + +`func (o *OriginInspectorMeasurements) GetComputeLatency250To500ms() int32` + +GetComputeLatency250To500ms returns the ComputeLatency250To500ms field if non-nil, zero value otherwise. + +### GetComputeLatency250To500msOk + +`func (o *OriginInspectorMeasurements) GetComputeLatency250To500msOk() (*int32, bool)` + +GetComputeLatency250To500msOk returns a tuple with the ComputeLatency250To500ms field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComputeLatency250To500ms + +`func (o *OriginInspectorMeasurements) SetComputeLatency250To500ms(v int32)` + +SetComputeLatency250To500ms sets ComputeLatency250To500ms field to given value. + +### HasComputeLatency250To500ms + +`func (o *OriginInspectorMeasurements) HasComputeLatency250To500ms() bool` + +HasComputeLatency250To500ms returns a boolean if a field has been set. + +### GetComputeLatency500To1000ms + +`func (o *OriginInspectorMeasurements) GetComputeLatency500To1000ms() int32` + +GetComputeLatency500To1000ms returns the ComputeLatency500To1000ms field if non-nil, zero value otherwise. + +### GetComputeLatency500To1000msOk + +`func (o *OriginInspectorMeasurements) GetComputeLatency500To1000msOk() (*int32, bool)` + +GetComputeLatency500To1000msOk returns a tuple with the ComputeLatency500To1000ms field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComputeLatency500To1000ms + +`func (o *OriginInspectorMeasurements) SetComputeLatency500To1000ms(v int32)` + +SetComputeLatency500To1000ms sets ComputeLatency500To1000ms field to given value. + +### HasComputeLatency500To1000ms + +`func (o *OriginInspectorMeasurements) HasComputeLatency500To1000ms() bool` + +HasComputeLatency500To1000ms returns a boolean if a field has been set. + +### GetComputeLatency1000To5000ms + +`func (o *OriginInspectorMeasurements) GetComputeLatency1000To5000ms() int32` + +GetComputeLatency1000To5000ms returns the ComputeLatency1000To5000ms field if non-nil, zero value otherwise. + +### GetComputeLatency1000To5000msOk + +`func (o *OriginInspectorMeasurements) GetComputeLatency1000To5000msOk() (*int32, bool)` + +GetComputeLatency1000To5000msOk returns a tuple with the ComputeLatency1000To5000ms field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComputeLatency1000To5000ms + +`func (o *OriginInspectorMeasurements) SetComputeLatency1000To5000ms(v int32)` + +SetComputeLatency1000To5000ms sets ComputeLatency1000To5000ms field to given value. + +### HasComputeLatency1000To5000ms + +`func (o *OriginInspectorMeasurements) HasComputeLatency1000To5000ms() bool` + +HasComputeLatency1000To5000ms returns a boolean if a field has been set. + +### GetComputeLatency5000To10000ms + +`func (o *OriginInspectorMeasurements) GetComputeLatency5000To10000ms() int32` + +GetComputeLatency5000To10000ms returns the ComputeLatency5000To10000ms field if non-nil, zero value otherwise. + +### GetComputeLatency5000To10000msOk + +`func (o *OriginInspectorMeasurements) GetComputeLatency5000To10000msOk() (*int32, bool)` + +GetComputeLatency5000To10000msOk returns a tuple with the ComputeLatency5000To10000ms field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComputeLatency5000To10000ms + +`func (o *OriginInspectorMeasurements) SetComputeLatency5000To10000ms(v int32)` + +SetComputeLatency5000To10000ms sets ComputeLatency5000To10000ms field to given value. + +### HasComputeLatency5000To10000ms + +`func (o *OriginInspectorMeasurements) HasComputeLatency5000To10000ms() bool` + +HasComputeLatency5000To10000ms returns a boolean if a field has been set. + +### GetComputeLatency10000To60000ms + +`func (o *OriginInspectorMeasurements) GetComputeLatency10000To60000ms() int32` + +GetComputeLatency10000To60000ms returns the ComputeLatency10000To60000ms field if non-nil, zero value otherwise. + +### GetComputeLatency10000To60000msOk + +`func (o *OriginInspectorMeasurements) GetComputeLatency10000To60000msOk() (*int32, bool)` + +GetComputeLatency10000To60000msOk returns a tuple with the ComputeLatency10000To60000ms field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComputeLatency10000To60000ms + +`func (o *OriginInspectorMeasurements) SetComputeLatency10000To60000ms(v int32)` + +SetComputeLatency10000To60000ms sets ComputeLatency10000To60000ms field to given value. + +### HasComputeLatency10000To60000ms + +`func (o *OriginInspectorMeasurements) HasComputeLatency10000To60000ms() bool` + +HasComputeLatency10000To60000ms returns a boolean if a field has been set. + +### GetComputeLatency60000ms + +`func (o *OriginInspectorMeasurements) GetComputeLatency60000ms() int32` + +GetComputeLatency60000ms returns the ComputeLatency60000ms field if non-nil, zero value otherwise. + +### GetComputeLatency60000msOk + +`func (o *OriginInspectorMeasurements) GetComputeLatency60000msOk() (*int32, bool)` + +GetComputeLatency60000msOk returns a tuple with the ComputeLatency60000ms field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComputeLatency60000ms + +`func (o *OriginInspectorMeasurements) SetComputeLatency60000ms(v int32)` + +SetComputeLatency60000ms sets ComputeLatency60000ms field to given value. + +### HasComputeLatency60000ms + +`func (o *OriginInspectorMeasurements) HasComputeLatency60000ms() bool` + +HasComputeLatency60000ms returns a boolean if a field has been set. + +### GetAllResponses + +`func (o *OriginInspectorMeasurements) GetAllResponses() int32` + +GetAllResponses returns the AllResponses field if non-nil, zero value otherwise. + +### GetAllResponsesOk + +`func (o *OriginInspectorMeasurements) GetAllResponsesOk() (*int32, bool)` + +GetAllResponsesOk returns a tuple with the AllResponses field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAllResponses + +`func (o *OriginInspectorMeasurements) SetAllResponses(v int32)` + +SetAllResponses sets AllResponses field to given value. + +### HasAllResponses + +`func (o *OriginInspectorMeasurements) HasAllResponses() bool` + +HasAllResponses returns a boolean if a field has been set. + +### GetAllRespHeaderBytes + +`func (o *OriginInspectorMeasurements) GetAllRespHeaderBytes() int32` + +GetAllRespHeaderBytes returns the AllRespHeaderBytes field if non-nil, zero value otherwise. + +### GetAllRespHeaderBytesOk + +`func (o *OriginInspectorMeasurements) GetAllRespHeaderBytesOk() (*int32, bool)` + +GetAllRespHeaderBytesOk returns a tuple with the AllRespHeaderBytes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAllRespHeaderBytes + +`func (o *OriginInspectorMeasurements) SetAllRespHeaderBytes(v int32)` + +SetAllRespHeaderBytes sets AllRespHeaderBytes field to given value. + +### HasAllRespHeaderBytes + +`func (o *OriginInspectorMeasurements) HasAllRespHeaderBytes() bool` + +HasAllRespHeaderBytes returns a boolean if a field has been set. + +### GetAllRespBodyBytes + +`func (o *OriginInspectorMeasurements) GetAllRespBodyBytes() int32` + +GetAllRespBodyBytes returns the AllRespBodyBytes field if non-nil, zero value otherwise. + +### GetAllRespBodyBytesOk + +`func (o *OriginInspectorMeasurements) GetAllRespBodyBytesOk() (*int32, bool)` + +GetAllRespBodyBytesOk returns a tuple with the AllRespBodyBytes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAllRespBodyBytes + +`func (o *OriginInspectorMeasurements) SetAllRespBodyBytes(v int32)` + +SetAllRespBodyBytes sets AllRespBodyBytes field to given value. + +### HasAllRespBodyBytes + +`func (o *OriginInspectorMeasurements) HasAllRespBodyBytes() bool` + +HasAllRespBodyBytes returns a boolean if a field has been set. + +### GetAllStatus1xx + +`func (o *OriginInspectorMeasurements) GetAllStatus1xx() int32` + +GetAllStatus1xx returns the AllStatus1xx field if non-nil, zero value otherwise. + +### GetAllStatus1xxOk + +`func (o *OriginInspectorMeasurements) GetAllStatus1xxOk() (*int32, bool)` + +GetAllStatus1xxOk returns a tuple with the AllStatus1xx field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAllStatus1xx + +`func (o *OriginInspectorMeasurements) SetAllStatus1xx(v int32)` + +SetAllStatus1xx sets AllStatus1xx field to given value. + +### HasAllStatus1xx + +`func (o *OriginInspectorMeasurements) HasAllStatus1xx() bool` + +HasAllStatus1xx returns a boolean if a field has been set. + +### GetAllStatus2xx + +`func (o *OriginInspectorMeasurements) GetAllStatus2xx() int32` + +GetAllStatus2xx returns the AllStatus2xx field if non-nil, zero value otherwise. + +### GetAllStatus2xxOk + +`func (o *OriginInspectorMeasurements) GetAllStatus2xxOk() (*int32, bool)` + +GetAllStatus2xxOk returns a tuple with the AllStatus2xx field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAllStatus2xx + +`func (o *OriginInspectorMeasurements) SetAllStatus2xx(v int32)` + +SetAllStatus2xx sets AllStatus2xx field to given value. + +### HasAllStatus2xx + +`func (o *OriginInspectorMeasurements) HasAllStatus2xx() bool` + +HasAllStatus2xx returns a boolean if a field has been set. + +### GetAllStatus3xx + +`func (o *OriginInspectorMeasurements) GetAllStatus3xx() int32` + +GetAllStatus3xx returns the AllStatus3xx field if non-nil, zero value otherwise. + +### GetAllStatus3xxOk + +`func (o *OriginInspectorMeasurements) GetAllStatus3xxOk() (*int32, bool)` + +GetAllStatus3xxOk returns a tuple with the AllStatus3xx field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAllStatus3xx + +`func (o *OriginInspectorMeasurements) SetAllStatus3xx(v int32)` + +SetAllStatus3xx sets AllStatus3xx field to given value. + +### HasAllStatus3xx + +`func (o *OriginInspectorMeasurements) HasAllStatus3xx() bool` + +HasAllStatus3xx returns a boolean if a field has been set. + +### GetAllStatus4xx + +`func (o *OriginInspectorMeasurements) GetAllStatus4xx() int32` + +GetAllStatus4xx returns the AllStatus4xx field if non-nil, zero value otherwise. + +### GetAllStatus4xxOk + +`func (o *OriginInspectorMeasurements) GetAllStatus4xxOk() (*int32, bool)` + +GetAllStatus4xxOk returns a tuple with the AllStatus4xx field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAllStatus4xx + +`func (o *OriginInspectorMeasurements) SetAllStatus4xx(v int32)` + +SetAllStatus4xx sets AllStatus4xx field to given value. + +### HasAllStatus4xx + +`func (o *OriginInspectorMeasurements) HasAllStatus4xx() bool` + +HasAllStatus4xx returns a boolean if a field has been set. + +### GetAllStatus5xx + +`func (o *OriginInspectorMeasurements) GetAllStatus5xx() int32` + +GetAllStatus5xx returns the AllStatus5xx field if non-nil, zero value otherwise. + +### GetAllStatus5xxOk + +`func (o *OriginInspectorMeasurements) GetAllStatus5xxOk() (*int32, bool)` + +GetAllStatus5xxOk returns a tuple with the AllStatus5xx field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAllStatus5xx + +`func (o *OriginInspectorMeasurements) SetAllStatus5xx(v int32)` + +SetAllStatus5xx sets AllStatus5xx field to given value. + +### HasAllStatus5xx + +`func (o *OriginInspectorMeasurements) HasAllStatus5xx() bool` + +HasAllStatus5xx returns a boolean if a field has been set. + +### GetAllStatus200 + +`func (o *OriginInspectorMeasurements) GetAllStatus200() int32` + +GetAllStatus200 returns the AllStatus200 field if non-nil, zero value otherwise. + +### GetAllStatus200Ok + +`func (o *OriginInspectorMeasurements) GetAllStatus200Ok() (*int32, bool)` + +GetAllStatus200Ok returns a tuple with the AllStatus200 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAllStatus200 + +`func (o *OriginInspectorMeasurements) SetAllStatus200(v int32)` + +SetAllStatus200 sets AllStatus200 field to given value. + +### HasAllStatus200 + +`func (o *OriginInspectorMeasurements) HasAllStatus200() bool` + +HasAllStatus200 returns a boolean if a field has been set. + +### GetAllStatus204 + +`func (o *OriginInspectorMeasurements) GetAllStatus204() int32` + +GetAllStatus204 returns the AllStatus204 field if non-nil, zero value otherwise. + +### GetAllStatus204Ok + +`func (o *OriginInspectorMeasurements) GetAllStatus204Ok() (*int32, bool)` + +GetAllStatus204Ok returns a tuple with the AllStatus204 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAllStatus204 + +`func (o *OriginInspectorMeasurements) SetAllStatus204(v int32)` + +SetAllStatus204 sets AllStatus204 field to given value. + +### HasAllStatus204 + +`func (o *OriginInspectorMeasurements) HasAllStatus204() bool` + +HasAllStatus204 returns a boolean if a field has been set. + +### GetAllStatus206 + +`func (o *OriginInspectorMeasurements) GetAllStatus206() int32` + +GetAllStatus206 returns the AllStatus206 field if non-nil, zero value otherwise. + +### GetAllStatus206Ok + +`func (o *OriginInspectorMeasurements) GetAllStatus206Ok() (*int32, bool)` + +GetAllStatus206Ok returns a tuple with the AllStatus206 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAllStatus206 + +`func (o *OriginInspectorMeasurements) SetAllStatus206(v int32)` + +SetAllStatus206 sets AllStatus206 field to given value. + +### HasAllStatus206 + +`func (o *OriginInspectorMeasurements) HasAllStatus206() bool` + +HasAllStatus206 returns a boolean if a field has been set. + +### GetAllStatus301 + +`func (o *OriginInspectorMeasurements) GetAllStatus301() int32` + +GetAllStatus301 returns the AllStatus301 field if non-nil, zero value otherwise. + +### GetAllStatus301Ok + +`func (o *OriginInspectorMeasurements) GetAllStatus301Ok() (*int32, bool)` + +GetAllStatus301Ok returns a tuple with the AllStatus301 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAllStatus301 + +`func (o *OriginInspectorMeasurements) SetAllStatus301(v int32)` + +SetAllStatus301 sets AllStatus301 field to given value. + +### HasAllStatus301 + +`func (o *OriginInspectorMeasurements) HasAllStatus301() bool` + +HasAllStatus301 returns a boolean if a field has been set. + +### GetAllStatus302 + +`func (o *OriginInspectorMeasurements) GetAllStatus302() int32` + +GetAllStatus302 returns the AllStatus302 field if non-nil, zero value otherwise. + +### GetAllStatus302Ok + +`func (o *OriginInspectorMeasurements) GetAllStatus302Ok() (*int32, bool)` + +GetAllStatus302Ok returns a tuple with the AllStatus302 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAllStatus302 + +`func (o *OriginInspectorMeasurements) SetAllStatus302(v int32)` + +SetAllStatus302 sets AllStatus302 field to given value. + +### HasAllStatus302 + +`func (o *OriginInspectorMeasurements) HasAllStatus302() bool` + +HasAllStatus302 returns a boolean if a field has been set. + +### GetAllStatus304 + +`func (o *OriginInspectorMeasurements) GetAllStatus304() int32` + +GetAllStatus304 returns the AllStatus304 field if non-nil, zero value otherwise. + +### GetAllStatus304Ok + +`func (o *OriginInspectorMeasurements) GetAllStatus304Ok() (*int32, bool)` + +GetAllStatus304Ok returns a tuple with the AllStatus304 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAllStatus304 + +`func (o *OriginInspectorMeasurements) SetAllStatus304(v int32)` + +SetAllStatus304 sets AllStatus304 field to given value. + +### HasAllStatus304 + +`func (o *OriginInspectorMeasurements) HasAllStatus304() bool` + +HasAllStatus304 returns a boolean if a field has been set. + +### GetAllStatus400 + +`func (o *OriginInspectorMeasurements) GetAllStatus400() int32` + +GetAllStatus400 returns the AllStatus400 field if non-nil, zero value otherwise. + +### GetAllStatus400Ok + +`func (o *OriginInspectorMeasurements) GetAllStatus400Ok() (*int32, bool)` + +GetAllStatus400Ok returns a tuple with the AllStatus400 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAllStatus400 + +`func (o *OriginInspectorMeasurements) SetAllStatus400(v int32)` + +SetAllStatus400 sets AllStatus400 field to given value. + +### HasAllStatus400 + +`func (o *OriginInspectorMeasurements) HasAllStatus400() bool` + +HasAllStatus400 returns a boolean if a field has been set. + +### GetAllStatus401 + +`func (o *OriginInspectorMeasurements) GetAllStatus401() int32` + +GetAllStatus401 returns the AllStatus401 field if non-nil, zero value otherwise. + +### GetAllStatus401Ok + +`func (o *OriginInspectorMeasurements) GetAllStatus401Ok() (*int32, bool)` + +GetAllStatus401Ok returns a tuple with the AllStatus401 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAllStatus401 + +`func (o *OriginInspectorMeasurements) SetAllStatus401(v int32)` + +SetAllStatus401 sets AllStatus401 field to given value. + +### HasAllStatus401 + +`func (o *OriginInspectorMeasurements) HasAllStatus401() bool` + +HasAllStatus401 returns a boolean if a field has been set. + +### GetAllStatus403 + +`func (o *OriginInspectorMeasurements) GetAllStatus403() int32` + +GetAllStatus403 returns the AllStatus403 field if non-nil, zero value otherwise. + +### GetAllStatus403Ok + +`func (o *OriginInspectorMeasurements) GetAllStatus403Ok() (*int32, bool)` + +GetAllStatus403Ok returns a tuple with the AllStatus403 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAllStatus403 + +`func (o *OriginInspectorMeasurements) SetAllStatus403(v int32)` + +SetAllStatus403 sets AllStatus403 field to given value. + +### HasAllStatus403 + +`func (o *OriginInspectorMeasurements) HasAllStatus403() bool` + +HasAllStatus403 returns a boolean if a field has been set. + +### GetAllStatus404 + +`func (o *OriginInspectorMeasurements) GetAllStatus404() int32` + +GetAllStatus404 returns the AllStatus404 field if non-nil, zero value otherwise. + +### GetAllStatus404Ok + +`func (o *OriginInspectorMeasurements) GetAllStatus404Ok() (*int32, bool)` + +GetAllStatus404Ok returns a tuple with the AllStatus404 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAllStatus404 + +`func (o *OriginInspectorMeasurements) SetAllStatus404(v int32)` + +SetAllStatus404 sets AllStatus404 field to given value. + +### HasAllStatus404 + +`func (o *OriginInspectorMeasurements) HasAllStatus404() bool` + +HasAllStatus404 returns a boolean if a field has been set. + +### GetAllStatus416 + +`func (o *OriginInspectorMeasurements) GetAllStatus416() int32` + +GetAllStatus416 returns the AllStatus416 field if non-nil, zero value otherwise. + +### GetAllStatus416Ok + +`func (o *OriginInspectorMeasurements) GetAllStatus416Ok() (*int32, bool)` + +GetAllStatus416Ok returns a tuple with the AllStatus416 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAllStatus416 + +`func (o *OriginInspectorMeasurements) SetAllStatus416(v int32)` + +SetAllStatus416 sets AllStatus416 field to given value. + +### HasAllStatus416 + +`func (o *OriginInspectorMeasurements) HasAllStatus416() bool` + +HasAllStatus416 returns a boolean if a field has been set. + +### GetAllStatus429 + +`func (o *OriginInspectorMeasurements) GetAllStatus429() int32` + +GetAllStatus429 returns the AllStatus429 field if non-nil, zero value otherwise. + +### GetAllStatus429Ok + +`func (o *OriginInspectorMeasurements) GetAllStatus429Ok() (*int32, bool)` + +GetAllStatus429Ok returns a tuple with the AllStatus429 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAllStatus429 + +`func (o *OriginInspectorMeasurements) SetAllStatus429(v int32)` + +SetAllStatus429 sets AllStatus429 field to given value. + +### HasAllStatus429 + +`func (o *OriginInspectorMeasurements) HasAllStatus429() bool` + +HasAllStatus429 returns a boolean if a field has been set. + +### GetAllStatus500 + +`func (o *OriginInspectorMeasurements) GetAllStatus500() int32` + +GetAllStatus500 returns the AllStatus500 field if non-nil, zero value otherwise. + +### GetAllStatus500Ok + +`func (o *OriginInspectorMeasurements) GetAllStatus500Ok() (*int32, bool)` + +GetAllStatus500Ok returns a tuple with the AllStatus500 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAllStatus500 + +`func (o *OriginInspectorMeasurements) SetAllStatus500(v int32)` + +SetAllStatus500 sets AllStatus500 field to given value. + +### HasAllStatus500 + +`func (o *OriginInspectorMeasurements) HasAllStatus500() bool` + +HasAllStatus500 returns a boolean if a field has been set. + +### GetAllStatus501 + +`func (o *OriginInspectorMeasurements) GetAllStatus501() int32` + +GetAllStatus501 returns the AllStatus501 field if non-nil, zero value otherwise. + +### GetAllStatus501Ok + +`func (o *OriginInspectorMeasurements) GetAllStatus501Ok() (*int32, bool)` + +GetAllStatus501Ok returns a tuple with the AllStatus501 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAllStatus501 + +`func (o *OriginInspectorMeasurements) SetAllStatus501(v int32)` + +SetAllStatus501 sets AllStatus501 field to given value. + +### HasAllStatus501 + +`func (o *OriginInspectorMeasurements) HasAllStatus501() bool` + +HasAllStatus501 returns a boolean if a field has been set. + +### GetAllStatus502 + +`func (o *OriginInspectorMeasurements) GetAllStatus502() int32` + +GetAllStatus502 returns the AllStatus502 field if non-nil, zero value otherwise. + +### GetAllStatus502Ok + +`func (o *OriginInspectorMeasurements) GetAllStatus502Ok() (*int32, bool)` + +GetAllStatus502Ok returns a tuple with the AllStatus502 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAllStatus502 + +`func (o *OriginInspectorMeasurements) SetAllStatus502(v int32)` + +SetAllStatus502 sets AllStatus502 field to given value. + +### HasAllStatus502 + +`func (o *OriginInspectorMeasurements) HasAllStatus502() bool` + +HasAllStatus502 returns a boolean if a field has been set. + +### GetAllStatus503 + +`func (o *OriginInspectorMeasurements) GetAllStatus503() int32` + +GetAllStatus503 returns the AllStatus503 field if non-nil, zero value otherwise. + +### GetAllStatus503Ok + +`func (o *OriginInspectorMeasurements) GetAllStatus503Ok() (*int32, bool)` + +GetAllStatus503Ok returns a tuple with the AllStatus503 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAllStatus503 + +`func (o *OriginInspectorMeasurements) SetAllStatus503(v int32)` + +SetAllStatus503 sets AllStatus503 field to given value. + +### HasAllStatus503 + +`func (o *OriginInspectorMeasurements) HasAllStatus503() bool` + +HasAllStatus503 returns a boolean if a field has been set. + +### GetAllStatus504 + +`func (o *OriginInspectorMeasurements) GetAllStatus504() int32` + +GetAllStatus504 returns the AllStatus504 field if non-nil, zero value otherwise. + +### GetAllStatus504Ok + +`func (o *OriginInspectorMeasurements) GetAllStatus504Ok() (*int32, bool)` + +GetAllStatus504Ok returns a tuple with the AllStatus504 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAllStatus504 + +`func (o *OriginInspectorMeasurements) SetAllStatus504(v int32)` + +SetAllStatus504 sets AllStatus504 field to given value. + +### HasAllStatus504 + +`func (o *OriginInspectorMeasurements) HasAllStatus504() bool` + +HasAllStatus504 returns a boolean if a field has been set. + +### GetAllStatus505 + +`func (o *OriginInspectorMeasurements) GetAllStatus505() int32` + +GetAllStatus505 returns the AllStatus505 field if non-nil, zero value otherwise. + +### GetAllStatus505Ok + +`func (o *OriginInspectorMeasurements) GetAllStatus505Ok() (*int32, bool)` + +GetAllStatus505Ok returns a tuple with the AllStatus505 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAllStatus505 + +`func (o *OriginInspectorMeasurements) SetAllStatus505(v int32)` + +SetAllStatus505 sets AllStatus505 field to given value. + +### HasAllStatus505 + +`func (o *OriginInspectorMeasurements) HasAllStatus505() bool` + +HasAllStatus505 returns a boolean if a field has been set. + +### GetAllLatency0To1ms + +`func (o *OriginInspectorMeasurements) GetAllLatency0To1ms() int32` + +GetAllLatency0To1ms returns the AllLatency0To1ms field if non-nil, zero value otherwise. + +### GetAllLatency0To1msOk + +`func (o *OriginInspectorMeasurements) GetAllLatency0To1msOk() (*int32, bool)` + +GetAllLatency0To1msOk returns a tuple with the AllLatency0To1ms field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAllLatency0To1ms + +`func (o *OriginInspectorMeasurements) SetAllLatency0To1ms(v int32)` + +SetAllLatency0To1ms sets AllLatency0To1ms field to given value. + +### HasAllLatency0To1ms + +`func (o *OriginInspectorMeasurements) HasAllLatency0To1ms() bool` + +HasAllLatency0To1ms returns a boolean if a field has been set. + +### GetAllLatency1To5ms + +`func (o *OriginInspectorMeasurements) GetAllLatency1To5ms() int32` + +GetAllLatency1To5ms returns the AllLatency1To5ms field if non-nil, zero value otherwise. + +### GetAllLatency1To5msOk + +`func (o *OriginInspectorMeasurements) GetAllLatency1To5msOk() (*int32, bool)` + +GetAllLatency1To5msOk returns a tuple with the AllLatency1To5ms field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAllLatency1To5ms + +`func (o *OriginInspectorMeasurements) SetAllLatency1To5ms(v int32)` + +SetAllLatency1To5ms sets AllLatency1To5ms field to given value. + +### HasAllLatency1To5ms + +`func (o *OriginInspectorMeasurements) HasAllLatency1To5ms() bool` + +HasAllLatency1To5ms returns a boolean if a field has been set. + +### GetAllLatency5To10ms + +`func (o *OriginInspectorMeasurements) GetAllLatency5To10ms() int32` + +GetAllLatency5To10ms returns the AllLatency5To10ms field if non-nil, zero value otherwise. + +### GetAllLatency5To10msOk + +`func (o *OriginInspectorMeasurements) GetAllLatency5To10msOk() (*int32, bool)` + +GetAllLatency5To10msOk returns a tuple with the AllLatency5To10ms field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAllLatency5To10ms + +`func (o *OriginInspectorMeasurements) SetAllLatency5To10ms(v int32)` + +SetAllLatency5To10ms sets AllLatency5To10ms field to given value. + +### HasAllLatency5To10ms + +`func (o *OriginInspectorMeasurements) HasAllLatency5To10ms() bool` + +HasAllLatency5To10ms returns a boolean if a field has been set. + +### GetAllLatency10To50ms + +`func (o *OriginInspectorMeasurements) GetAllLatency10To50ms() int32` + +GetAllLatency10To50ms returns the AllLatency10To50ms field if non-nil, zero value otherwise. + +### GetAllLatency10To50msOk + +`func (o *OriginInspectorMeasurements) GetAllLatency10To50msOk() (*int32, bool)` + +GetAllLatency10To50msOk returns a tuple with the AllLatency10To50ms field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAllLatency10To50ms + +`func (o *OriginInspectorMeasurements) SetAllLatency10To50ms(v int32)` + +SetAllLatency10To50ms sets AllLatency10To50ms field to given value. + +### HasAllLatency10To50ms + +`func (o *OriginInspectorMeasurements) HasAllLatency10To50ms() bool` + +HasAllLatency10To50ms returns a boolean if a field has been set. + +### GetAllLatency50To100ms + +`func (o *OriginInspectorMeasurements) GetAllLatency50To100ms() int32` + +GetAllLatency50To100ms returns the AllLatency50To100ms field if non-nil, zero value otherwise. + +### GetAllLatency50To100msOk + +`func (o *OriginInspectorMeasurements) GetAllLatency50To100msOk() (*int32, bool)` + +GetAllLatency50To100msOk returns a tuple with the AllLatency50To100ms field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAllLatency50To100ms + +`func (o *OriginInspectorMeasurements) SetAllLatency50To100ms(v int32)` + +SetAllLatency50To100ms sets AllLatency50To100ms field to given value. + +### HasAllLatency50To100ms + +`func (o *OriginInspectorMeasurements) HasAllLatency50To100ms() bool` + +HasAllLatency50To100ms returns a boolean if a field has been set. + +### GetAllLatency100To250ms + +`func (o *OriginInspectorMeasurements) GetAllLatency100To250ms() int32` + +GetAllLatency100To250ms returns the AllLatency100To250ms field if non-nil, zero value otherwise. + +### GetAllLatency100To250msOk + +`func (o *OriginInspectorMeasurements) GetAllLatency100To250msOk() (*int32, bool)` + +GetAllLatency100To250msOk returns a tuple with the AllLatency100To250ms field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAllLatency100To250ms + +`func (o *OriginInspectorMeasurements) SetAllLatency100To250ms(v int32)` + +SetAllLatency100To250ms sets AllLatency100To250ms field to given value. + +### HasAllLatency100To250ms + +`func (o *OriginInspectorMeasurements) HasAllLatency100To250ms() bool` + +HasAllLatency100To250ms returns a boolean if a field has been set. + +### GetAllLatency250To500ms + +`func (o *OriginInspectorMeasurements) GetAllLatency250To500ms() int32` + +GetAllLatency250To500ms returns the AllLatency250To500ms field if non-nil, zero value otherwise. + +### GetAllLatency250To500msOk + +`func (o *OriginInspectorMeasurements) GetAllLatency250To500msOk() (*int32, bool)` + +GetAllLatency250To500msOk returns a tuple with the AllLatency250To500ms field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAllLatency250To500ms + +`func (o *OriginInspectorMeasurements) SetAllLatency250To500ms(v int32)` + +SetAllLatency250To500ms sets AllLatency250To500ms field to given value. + +### HasAllLatency250To500ms + +`func (o *OriginInspectorMeasurements) HasAllLatency250To500ms() bool` + +HasAllLatency250To500ms returns a boolean if a field has been set. + +### GetAllLatency500To1000ms + +`func (o *OriginInspectorMeasurements) GetAllLatency500To1000ms() int32` + +GetAllLatency500To1000ms returns the AllLatency500To1000ms field if non-nil, zero value otherwise. + +### GetAllLatency500To1000msOk + +`func (o *OriginInspectorMeasurements) GetAllLatency500To1000msOk() (*int32, bool)` + +GetAllLatency500To1000msOk returns a tuple with the AllLatency500To1000ms field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAllLatency500To1000ms + +`func (o *OriginInspectorMeasurements) SetAllLatency500To1000ms(v int32)` + +SetAllLatency500To1000ms sets AllLatency500To1000ms field to given value. + +### HasAllLatency500To1000ms + +`func (o *OriginInspectorMeasurements) HasAllLatency500To1000ms() bool` + +HasAllLatency500To1000ms returns a boolean if a field has been set. + +### GetAllLatency1000To5000ms + +`func (o *OriginInspectorMeasurements) GetAllLatency1000To5000ms() int32` + +GetAllLatency1000To5000ms returns the AllLatency1000To5000ms field if non-nil, zero value otherwise. + +### GetAllLatency1000To5000msOk + +`func (o *OriginInspectorMeasurements) GetAllLatency1000To5000msOk() (*int32, bool)` + +GetAllLatency1000To5000msOk returns a tuple with the AllLatency1000To5000ms field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAllLatency1000To5000ms + +`func (o *OriginInspectorMeasurements) SetAllLatency1000To5000ms(v int32)` + +SetAllLatency1000To5000ms sets AllLatency1000To5000ms field to given value. + +### HasAllLatency1000To5000ms + +`func (o *OriginInspectorMeasurements) HasAllLatency1000To5000ms() bool` + +HasAllLatency1000To5000ms returns a boolean if a field has been set. + +### GetAllLatency5000To10000ms + +`func (o *OriginInspectorMeasurements) GetAllLatency5000To10000ms() int32` + +GetAllLatency5000To10000ms returns the AllLatency5000To10000ms field if non-nil, zero value otherwise. + +### GetAllLatency5000To10000msOk + +`func (o *OriginInspectorMeasurements) GetAllLatency5000To10000msOk() (*int32, bool)` + +GetAllLatency5000To10000msOk returns a tuple with the AllLatency5000To10000ms field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAllLatency5000To10000ms + +`func (o *OriginInspectorMeasurements) SetAllLatency5000To10000ms(v int32)` + +SetAllLatency5000To10000ms sets AllLatency5000To10000ms field to given value. + +### HasAllLatency5000To10000ms + +`func (o *OriginInspectorMeasurements) HasAllLatency5000To10000ms() bool` + +HasAllLatency5000To10000ms returns a boolean if a field has been set. + +### GetAllLatency10000To60000ms + +`func (o *OriginInspectorMeasurements) GetAllLatency10000To60000ms() int32` + +GetAllLatency10000To60000ms returns the AllLatency10000To60000ms field if non-nil, zero value otherwise. + +### GetAllLatency10000To60000msOk + +`func (o *OriginInspectorMeasurements) GetAllLatency10000To60000msOk() (*int32, bool)` + +GetAllLatency10000To60000msOk returns a tuple with the AllLatency10000To60000ms field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAllLatency10000To60000ms + +`func (o *OriginInspectorMeasurements) SetAllLatency10000To60000ms(v int32)` + +SetAllLatency10000To60000ms sets AllLatency10000To60000ms field to given value. + +### HasAllLatency10000To60000ms + +`func (o *OriginInspectorMeasurements) HasAllLatency10000To60000ms() bool` + +HasAllLatency10000To60000ms returns a boolean if a field has been set. + +### GetAllLatency60000ms + +`func (o *OriginInspectorMeasurements) GetAllLatency60000ms() int32` + +GetAllLatency60000ms returns the AllLatency60000ms field if non-nil, zero value otherwise. + +### GetAllLatency60000msOk + +`func (o *OriginInspectorMeasurements) GetAllLatency60000msOk() (*int32, bool)` + +GetAllLatency60000msOk returns a tuple with the AllLatency60000ms field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAllLatency60000ms + +`func (o *OriginInspectorMeasurements) SetAllLatency60000ms(v int32)` + +SetAllLatency60000ms sets AllLatency60000ms field to given value. + +### HasAllLatency60000ms + +`func (o *OriginInspectorMeasurements) HasAllLatency60000ms() bool` + +HasAllLatency60000ms returns a boolean if a field has been set. + + +[Back to API list](../README.md#documentation-for-api-endpoints) | [Back to README](../README.md) diff --git a/docs/OriginInspectorRealtimeAPI.md b/docs/OriginInspectorRealtimeAPI.md new file mode 100644 index 00000000..d555c9af --- /dev/null +++ b/docs/OriginInspectorRealtimeAPI.md @@ -0,0 +1,215 @@ +# OriginInspectorRealtimeAPI + +All URIs are relative to *https://api.fastly.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**GetOriginInspectorLast120Seconds**](OriginInspectorRealtimeAPI.md#GetOriginInspectorLast120Seconds) | **GET** `/v1/origins/{service_id}/ts/h` | Get real-time origin data for the last 120 seconds +[**GetOriginInspectorLastMaxEntries**](OriginInspectorRealtimeAPI.md#GetOriginInspectorLastMaxEntries) | **GET** `/v1/origins/{service_id}/ts/h/limit/{max_entries}` | Get a limited number of real-time origin data entries +[**GetOriginInspectorLastSecond**](OriginInspectorRealtimeAPI.md#GetOriginInspectorLastSecond) | **GET** `/v1/origins/{service_id}/ts/{start_timestamp}` | Get real-time origin data from specific time. + + + +## GetOriginInspectorLast120Seconds + +Get real-time origin data for the last 120 seconds + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + "github.com/fastly/fastly-go/fastly" +) + +func main() { + serviceID := "serviceId_example" // string | Alphanumeric string identifying the service. + + cfg := fastly.NewConfiguration() + apiClient := fastly.NewAPIClient(cfg) + ctx := fastly.NewAPIKeyContextFromEnv("FASTLY_API_TOKEN") + resp, r, err := apiClient.OriginInspectorRealtimeAPI.GetOriginInspectorLast120Seconds(ctx, serviceID).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `OriginInspectorRealtimeAPI.GetOriginInspectorLast120Seconds`: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetOriginInspectorLast120Seconds`: OriginInspector + fmt.Fprintf(os.Stdout, "Response from `OriginInspectorRealtimeAPI.GetOriginInspectorLast120Seconds`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceID** | **string** | Alphanumeric string identifying the service. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetOriginInspectorLast120SecondsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + +[**OriginInspector**](OriginInspector.md) + +### Authorization + +[API Token](https://developer.fastly.com/reference/api/#authentication) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[Back to top](#) | [Back to API list](../README.md#documentation-for-api-endpoints) | [Back to README](../README.md) + + +## GetOriginInspectorLastMaxEntries + +Get a limited number of real-time origin data entries + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + "github.com/fastly/fastly-go/fastly" +) + +func main() { + serviceID := "serviceId_example" // string | Alphanumeric string identifying the service. + maxEntries := int32(1) // int32 | Maximum number of results to display. + + cfg := fastly.NewConfiguration() + apiClient := fastly.NewAPIClient(cfg) + ctx := fastly.NewAPIKeyContextFromEnv("FASTLY_API_TOKEN") + resp, r, err := apiClient.OriginInspectorRealtimeAPI.GetOriginInspectorLastMaxEntries(ctx, serviceID, maxEntries).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `OriginInspectorRealtimeAPI.GetOriginInspectorLastMaxEntries`: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetOriginInspectorLastMaxEntries`: OriginInspector + fmt.Fprintf(os.Stdout, "Response from `OriginInspectorRealtimeAPI.GetOriginInspectorLastMaxEntries`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceID** | **string** | Alphanumeric string identifying the service. | +**maxEntries** | **int32** | Maximum number of results to display. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetOriginInspectorLastMaxEntriesRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + +[**OriginInspector**](OriginInspector.md) + +### Authorization + +[API Token](https://developer.fastly.com/reference/api/#authentication) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[Back to top](#) | [Back to API list](../README.md#documentation-for-api-endpoints) | [Back to README](../README.md) + + +## GetOriginInspectorLastSecond + +Get real-time origin data from specific time. + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + "github.com/fastly/fastly-go/fastly" +) + +func main() { + serviceID := "serviceId_example" // string | Alphanumeric string identifying the service. + startTimestamp := int32(56) // int32 | Timestamp in seconds (Unix epoch time). + + cfg := fastly.NewConfiguration() + apiClient := fastly.NewAPIClient(cfg) + ctx := fastly.NewAPIKeyContextFromEnv("FASTLY_API_TOKEN") + resp, r, err := apiClient.OriginInspectorRealtimeAPI.GetOriginInspectorLastSecond(ctx, serviceID, startTimestamp).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `OriginInspectorRealtimeAPI.GetOriginInspectorLastSecond`: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetOriginInspectorLastSecond`: OriginInspector + fmt.Fprintf(os.Stdout, "Response from `OriginInspectorRealtimeAPI.GetOriginInspectorLastSecond`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceID** | **string** | Alphanumeric string identifying the service. | +**startTimestamp** | **int32** | Timestamp in seconds (Unix epoch time). | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetOriginInspectorLastSecondRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + +[**OriginInspector**](OriginInspector.md) + +### Authorization + +[API Token](https://developer.fastly.com/reference/api/#authentication) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[Back to top](#) | [Back to API list](../README.md#documentation-for-api-endpoints) | [Back to README](../README.md) diff --git a/docs/OriginInspectorRealtimeEntry.md b/docs/OriginInspectorRealtimeEntry.md new file mode 100644 index 00000000..f8168074 --- /dev/null +++ b/docs/OriginInspectorRealtimeEntry.md @@ -0,0 +1,106 @@ +# OriginInspectorRealtimeEntry + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Recorded** | Pointer to [**OriginInspectorRealtimeEntryRecorded**](OriginInspectorRealtimeEntryRecorded.md) | | [optional] +**Aggregated** | Pointer to [**map[string]OriginInspectorMeasurements**](OriginInspectorMeasurements.md) | Groups [measurements](#measurements-data-model) by backend name. | [optional] +**Datacenter** | Pointer to [**map[string]map[string]OriginInspectorMeasurements**](map.md) | Groups [measurements](#measurements-data-model) by POP, then backend name. See the [POPs API](/reference/api/utils/pops/) for details about POP identifiers. | [optional] + +## Methods + +### NewOriginInspectorRealtimeEntry + +`func NewOriginInspectorRealtimeEntry() *OriginInspectorRealtimeEntry` + +NewOriginInspectorRealtimeEntry instantiates a new OriginInspectorRealtimeEntry object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewOriginInspectorRealtimeEntryWithDefaults + +`func NewOriginInspectorRealtimeEntryWithDefaults() *OriginInspectorRealtimeEntry` + +NewOriginInspectorRealtimeEntryWithDefaults instantiates a new OriginInspectorRealtimeEntry object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetRecorded + +`func (o *OriginInspectorRealtimeEntry) GetRecorded() OriginInspectorRealtimeEntryRecorded` + +GetRecorded returns the Recorded field if non-nil, zero value otherwise. + +### GetRecordedOk + +`func (o *OriginInspectorRealtimeEntry) GetRecordedOk() (*OriginInspectorRealtimeEntryRecorded, bool)` + +GetRecordedOk returns a tuple with the Recorded field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRecorded + +`func (o *OriginInspectorRealtimeEntry) SetRecorded(v OriginInspectorRealtimeEntryRecorded)` + +SetRecorded sets Recorded field to given value. + +### HasRecorded + +`func (o *OriginInspectorRealtimeEntry) HasRecorded() bool` + +HasRecorded returns a boolean if a field has been set. + +### GetAggregated + +`func (o *OriginInspectorRealtimeEntry) GetAggregated() map[string]OriginInspectorMeasurements` + +GetAggregated returns the Aggregated field if non-nil, zero value otherwise. + +### GetAggregatedOk + +`func (o *OriginInspectorRealtimeEntry) GetAggregatedOk() (*map[string]OriginInspectorMeasurements, bool)` + +GetAggregatedOk returns a tuple with the Aggregated field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAggregated + +`func (o *OriginInspectorRealtimeEntry) SetAggregated(v map[string]OriginInspectorMeasurements)` + +SetAggregated sets Aggregated field to given value. + +### HasAggregated + +`func (o *OriginInspectorRealtimeEntry) HasAggregated() bool` + +HasAggregated returns a boolean if a field has been set. + +### GetDatacenter + +`func (o *OriginInspectorRealtimeEntry) GetDatacenter() map[string]map[string]OriginInspectorMeasurements` + +GetDatacenter returns the Datacenter field if non-nil, zero value otherwise. + +### GetDatacenterOk + +`func (o *OriginInspectorRealtimeEntry) GetDatacenterOk() (*map[string]map[string]OriginInspectorMeasurements, bool)` + +GetDatacenterOk returns a tuple with the Datacenter field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDatacenter + +`func (o *OriginInspectorRealtimeEntry) SetDatacenter(v map[string]map[string]OriginInspectorMeasurements)` + +SetDatacenter sets Datacenter field to given value. + +### HasDatacenter + +`func (o *OriginInspectorRealtimeEntry) HasDatacenter() bool` + +HasDatacenter returns a boolean if a field has been set. + + +[Back to API list](../README.md#documentation-for-api-endpoints) | [Back to README](../README.md) diff --git a/docs/OriginInspectorRealtimeEntryRecorded.md b/docs/OriginInspectorRealtimeEntryRecorded.md new file mode 100644 index 00000000..acc72599 --- /dev/null +++ b/docs/OriginInspectorRealtimeEntryRecorded.md @@ -0,0 +1,28 @@ +# OriginInspectorRealtimeEntryRecorded + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +## Methods + +### NewOriginInspectorRealtimeEntryRecorded + +`func NewOriginInspectorRealtimeEntryRecorded() *OriginInspectorRealtimeEntryRecorded` + +NewOriginInspectorRealtimeEntryRecorded instantiates a new OriginInspectorRealtimeEntryRecorded object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewOriginInspectorRealtimeEntryRecordedWithDefaults + +`func NewOriginInspectorRealtimeEntryRecordedWithDefaults() *OriginInspectorRealtimeEntryRecorded` + +NewOriginInspectorRealtimeEntryRecordedWithDefaults instantiates a new OriginInspectorRealtimeEntryRecorded object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + + +[Back to API list](../README.md#documentation-for-api-endpoints) | [Back to README](../README.md) diff --git a/docs/OriginInspectorSubsequentRequestTimestamp.md b/docs/OriginInspectorSubsequentRequestTimestamp.md new file mode 100644 index 00000000..adda4e72 --- /dev/null +++ b/docs/OriginInspectorSubsequentRequestTimestamp.md @@ -0,0 +1,28 @@ +# OriginInspectorSubsequentRequestTimestamp + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +## Methods + +### NewOriginInspectorSubsequentRequestTimestamp + +`func NewOriginInspectorSubsequentRequestTimestamp() *OriginInspectorSubsequentRequestTimestamp` + +NewOriginInspectorSubsequentRequestTimestamp instantiates a new OriginInspectorSubsequentRequestTimestamp object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewOriginInspectorSubsequentRequestTimestampWithDefaults + +`func NewOriginInspectorSubsequentRequestTimestampWithDefaults() *OriginInspectorSubsequentRequestTimestamp` + +NewOriginInspectorSubsequentRequestTimestampWithDefaults instantiates a new OriginInspectorSubsequentRequestTimestamp object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + + +[Back to API list](../README.md#documentation-for-api-endpoints) | [Back to README](../README.md) diff --git a/docs/OriginInspectorValues.md b/docs/OriginInspectorValues.md new file mode 100644 index 00000000..91854dfc --- /dev/null +++ b/docs/OriginInspectorValues.md @@ -0,0 +1,3980 @@ +# OriginInspectorValues + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Responses** | Pointer to **int32** | Number of responses from origin. | [optional] +**RespHeaderBytes** | Pointer to **int32** | Number of header bytes from origin. | [optional] +**RespBodyBytes** | Pointer to **int32** | Number of body bytes from origin. | [optional] +**Status1xx** | Pointer to **int32** | Number of 1xx \"Informational\" status codes delivered from origin. | [optional] +**Status2xx** | Pointer to **int32** | Number of 2xx \"Success\" status codes delivered from origin. | [optional] +**Status3xx** | Pointer to **int32** | Number of 3xx \"Redirection\" codes delivered from origin. | [optional] +**Status4xx** | Pointer to **int32** | Number of 4xx \"Client Error\" codes delivered from origin. | [optional] +**Status5xx** | Pointer to **int32** | Number of 5xx \"Server Error\" codes delivered from origin. | [optional] +**Status200** | Pointer to **int32** | Number of responses received with status code 200 (Success) from origin. | [optional] +**Status204** | Pointer to **int32** | Number of responses received with status code 204 (No Content) from origin. | [optional] +**Status206** | Pointer to **int32** | Number of responses received with status code 206 (Partial Content) from origin. | [optional] +**Status301** | Pointer to **int32** | Number of responses received with status code 301 (Moved Permanently) from origin. | [optional] +**Status302** | Pointer to **int32** | Number of responses received with status code 302 (Found) from origin. | [optional] +**Status304** | Pointer to **int32** | Number of responses received with status code 304 (Not Modified) from origin. | [optional] +**Status400** | Pointer to **int32** | Number of responses received with status code 400 (Bad Request) from origin. | [optional] +**Status401** | Pointer to **int32** | Number of responses received with status code 401 (Unauthorized) from origin. | [optional] +**Status403** | Pointer to **int32** | Number of responses received with status code 403 (Forbidden) from origin. | [optional] +**Status404** | Pointer to **int32** | Number of responses received with status code 404 (Not Found) from origin. | [optional] +**Status416** | Pointer to **int32** | Number of responses received with status code 416 (Range Not Satisfiable) from origin. | [optional] +**Status429** | Pointer to **int32** | Number of responses received with status code 429 (Too Many Requests) from origin. | [optional] +**Status500** | Pointer to **int32** | Number of responses received with status code 500 (Internal Server Error) from origin. | [optional] +**Status501** | Pointer to **int32** | Number of responses received with status code 501 (Not Implemented) from origin. | [optional] +**Status502** | Pointer to **int32** | Number of responses received with status code 502 (Bad Gateway) from origin. | [optional] +**Status503** | Pointer to **int32** | Number of responses received with status code 503 (Service Unavailable) from origin. | [optional] +**Status504** | Pointer to **int32** | Number of responses received with status code 504 (Gateway Timeout) from origin. | [optional] +**Status505** | Pointer to **int32** | Number of responses received with status code 505 (HTTP Version Not Supported) from origin. | [optional] +**Latency0To1ms** | Pointer to **int32** | Number of responses from origin with latency between 0 and 1 millisecond. | [optional] +**Latency1To5ms** | Pointer to **int32** | Number of responses from origin with latency between 1 and 5 milliseconds. | [optional] +**Latency5To10ms** | Pointer to **int32** | Number of responses from origin with latency between 5 and 10 milliseconds. | [optional] +**Latency10To50ms** | Pointer to **int32** | Number of responses from origin with latency between 10 and 50 milliseconds. | [optional] +**Latency50To100ms** | Pointer to **int32** | Number of responses from origin with latency between 50 and 100 milliseconds. | [optional] +**Latency100To250ms** | Pointer to **int32** | Number of responses from origin with latency between 100 and 250 milliseconds. | [optional] +**Latency250To500ms** | Pointer to **int32** | Number of responses from origin with latency between 250 and 500 milliseconds. | [optional] +**Latency500To1000ms** | Pointer to **int32** | Number of responses from origin with latency between 500 and 1,000 milliseconds. | [optional] +**Latency1000To5000ms** | Pointer to **int32** | Number of responses from origin with latency between 1,000 and 5,000 milliseconds. | [optional] +**Latency5000To10000ms** | Pointer to **int32** | Number of responses from origin with latency between 5,000 and 10,000 milliseconds. | [optional] +**Latency10000To60000ms** | Pointer to **int32** | Number of responses from origin with latency between 10,000 and 60,000 milliseconds. | [optional] +**Latency60000ms** | Pointer to **int32** | Number of responses from origin with latency of 60,000 milliseconds and above. | [optional] +**WafResponses** | Pointer to **int32** | Number of responses received for origin requests made by the Fastly WAF. | [optional] +**WafRespHeaderBytes** | Pointer to **int32** | Number of header bytes received for origin requests made by the Fastly WAF. | [optional] +**WafRespBodyBytes** | Pointer to **int32** | Number of body bytes received for origin requests made by the Fastly WAF. | [optional] +**WafStatus1xx** | Pointer to **int32** | Number of 1xx \"Informational\" status codes received for origin requests made by the Fastly WAF. | [optional] +**WafStatus2xx** | Pointer to **int32** | Number of 2xx \"Success\" status codes received for origin requests made by the Fastly WAF. | [optional] +**WafStatus3xx** | Pointer to **int32** | Number of 3xx \"Redirection\" codes received for origin requests made by the Fastly WAF. | [optional] +**WafStatus4xx** | Pointer to **int32** | Number of 4xx \"Client Error\" codes received for origin requests made by the Fastly WAF. | [optional] +**WafStatus5xx** | Pointer to **int32** | Number of 5xx \"Server Error\" codes received for origin requests made by the Fastly WAF. | [optional] +**WafStatus200** | Pointer to **int32** | Number of responses received with status code 200 (Success) received for origin requests made by the Fastly WAF. | [optional] +**WafStatus204** | Pointer to **int32** | Number of responses received with status code 204 (No Content) received for origin requests made by the Fastly WAF. | [optional] +**WafStatus206** | Pointer to **int32** | Number of responses received with status code 206 (Partial Content) received for origin requests made by the Fastly WAF. | [optional] +**WafStatus301** | Pointer to **int32** | Number of responses received with status code 301 (Moved Permanently) received for origin requests made by the Fastly WAF. | [optional] +**WafStatus302** | Pointer to **int32** | Number of responses received with status code 302 (Found) received for origin requests made by the Fastly WAF. | [optional] +**WafStatus304** | Pointer to **int32** | Number of responses received with status code 304 (Not Modified) received for origin requests made by the Fastly WAF. | [optional] +**WafStatus400** | Pointer to **int32** | Number of responses received with status code 400 (Bad Request) received for origin requests made by the Fastly WAF. | [optional] +**WafStatus401** | Pointer to **int32** | Number of responses received with status code 401 (Unauthorized) received for origin requests made by the Fastly WAF. | [optional] +**WafStatus403** | Pointer to **int32** | Number of responses received with status code 403 (Forbidden) received for origin requests made by the Fastly WAF. | [optional] +**WafStatus404** | Pointer to **int32** | Number of responses received with status code 404 (Not Found) received for origin requests made by the Fastly WAF. | [optional] +**WafStatus416** | Pointer to **int32** | Number of responses received with status code 416 (Range Not Satisfiable) received for origin requests made by the Fastly WAF. | [optional] +**WafStatus429** | Pointer to **int32** | Number of responses received with status code 429 (Too Many Requests) received for origin requests made by the Fastly WAF. | [optional] +**WafStatus500** | Pointer to **int32** | Number of responses received with status code 500 (Internal Server Error) received for origin requests made by the Fastly WAF. | [optional] +**WafStatus501** | Pointer to **int32** | Number of responses received with status code 501 (Not Implemented) received for origin requests made by the Fastly WAF. | [optional] +**WafStatus502** | Pointer to **int32** | Number of responses received with status code 502 (Bad Gateway) received for origin requests made by the Fastly WAF. | [optional] +**WafStatus503** | Pointer to **int32** | Number of responses received with status code 503 (Service Unavailable) received for origin requests made by the Fastly WAF. | [optional] +**WafStatus504** | Pointer to **int32** | Number of responses received with status code 504 (Gateway Timeout) received for origin requests made by the Fastly WAF. | [optional] +**WafStatus505** | Pointer to **int32** | Number of responses received with status code 505 (HTTP Version Not Supported) received for origin requests made by the Fastly WAF. | [optional] +**WafLatency0To1ms** | Pointer to **int32** | Number of responses with latency between 0 and 1 millisecond received for origin requests made by the Fastly WAF. | [optional] +**WafLatency1To5ms** | Pointer to **int32** | Number of responses with latency between 1 and 5 milliseconds received for origin requests made by the Fastly WAF. | [optional] +**WafLatency5To10ms** | Pointer to **int32** | Number of responses with latency between 5 and 10 milliseconds received for origin requests made by the Fastly WAF. | [optional] +**WafLatency10To50ms** | Pointer to **int32** | Number of responses with latency between 10 and 50 milliseconds received for origin requests made by the Fastly WAF. | [optional] +**WafLatency50To100ms** | Pointer to **int32** | Number of responses with latency between 50 and 100 milliseconds received for origin requests made by the Fastly WAF. | [optional] +**WafLatency100To250ms** | Pointer to **int32** | Number of responses with latency between 100 and 250 milliseconds received for origin requests made by the Fastly WAF. | [optional] +**WafLatency250To500ms** | Pointer to **int32** | Number of responses with latency between 250 and 500 milliseconds received for origin requests made by the Fastly WAF. | [optional] +**WafLatency500To1000ms** | Pointer to **int32** | Number of responses with latency between 500 and 1,000 milliseconds received for origin requests made by the Fastly WAF. | [optional] +**WafLatency1000To5000ms** | Pointer to **int32** | Number of responses with latency between 1,000 and 5,000 milliseconds received for origin requests made by the Fastly WAF. | [optional] +**WafLatency5000To10000ms** | Pointer to **int32** | Number of responses with latency between 5,000 and 10,000 milliseconds received for origin requests made by the Fastly WAF. | [optional] +**WafLatency10000To60000ms** | Pointer to **int32** | Number of responses with latency between 10,000 and 60,000 milliseconds received for origin requests made by the Fastly WAF. | [optional] +**WafLatency60000ms** | Pointer to **int32** | Number of responses with latency of 60,000 milliseconds and above received for origin requests made by the Fastly WAF. | [optional] +**ComputeResponses** | Pointer to **int32** | Number of responses for origin received by Compute@Edge. | [optional] +**ComputeRespHeaderBytes** | Pointer to **int32** | Number of header bytes for origin received by Compute@Edge. | [optional] +**ComputeRespBodyBytes** | Pointer to **int32** | Number of body bytes for origin received by Compute@Edge. | [optional] +**ComputeStatus1xx** | Pointer to **int32** | Number of 1xx \"Informational\" status codes for origin received by Compute@Edge. | [optional] +**ComputeStatus2xx** | Pointer to **int32** | Number of 2xx \"Success\" status codes for origin received by Compute@Edge. | [optional] +**ComputeStatus3xx** | Pointer to **int32** | Number of 3xx \"Redirection\" codes for origin received by Compute@Edge. | [optional] +**ComputeStatus4xx** | Pointer to **int32** | Number of 4xx \"Client Error\" codes for origin received by Compute@Edge. | [optional] +**ComputeStatus5xx** | Pointer to **int32** | Number of 5xx \"Server Error\" codes for origin received by Compute@Edge. | [optional] +**ComputeStatus200** | Pointer to **int32** | Number of responses received with status code 200 (Success) for origin received by Compute@Edge. | [optional] +**ComputeStatus204** | Pointer to **int32** | Number of responses received with status code 204 (No Content) for origin received by Compute@Edge. | [optional] +**ComputeStatus206** | Pointer to **int32** | Number of responses received with status code 206 (Partial Content) for origin received by Compute@Edge. | [optional] +**ComputeStatus301** | Pointer to **int32** | Number of responses received with status code 301 (Moved Permanently) for origin received by Compute@Edge. | [optional] +**ComputeStatus302** | Pointer to **int32** | Number of responses received with status code 302 (Found) for origin received by Compute@Edge. | [optional] +**ComputeStatus304** | Pointer to **int32** | Number of responses received with status code 304 (Not Modified) for origin received by Compute@Edge. | [optional] +**ComputeStatus400** | Pointer to **int32** | Number of responses received with status code 400 (Bad Request) for origin received by Compute@Edge. | [optional] +**ComputeStatus401** | Pointer to **int32** | Number of responses received with status code 401 (Unauthorized) for origin received by Compute@Edge. | [optional] +**ComputeStatus403** | Pointer to **int32** | Number of responses received with status code 403 (Forbidden) for origin received by Compute@Edge. | [optional] +**ComputeStatus404** | Pointer to **int32** | Number of responses received with status code 404 (Not Found) for origin received by Compute@Edge. | [optional] +**ComputeStatus416** | Pointer to **int32** | Number of responses received with status code 416 (Range Not Satisfiable) for origin received by Compute@Edge. | [optional] +**ComputeStatus429** | Pointer to **int32** | Number of responses received with status code 429 (Too Many Requests) for origin received by Compute@Edge. | [optional] +**ComputeStatus500** | Pointer to **int32** | Number of responses received with status code 500 (Internal Server Error) for origin received by Compute@Edge. | [optional] +**ComputeStatus501** | Pointer to **int32** | Number of responses received with status code 501 (Not Implemented) for origin received by Compute@Edge. | [optional] +**ComputeStatus502** | Pointer to **int32** | Number of responses received with status code 502 (Bad Gateway) for origin received by Compute@Edge. | [optional] +**ComputeStatus503** | Pointer to **int32** | Number of responses received with status code 503 (Service Unavailable) for origin received by Compute@Edge. | [optional] +**ComputeStatus504** | Pointer to **int32** | Number of responses received with status code 504 (Gateway Timeout) for origin received by Compute@Edge. | [optional] +**ComputeStatus505** | Pointer to **int32** | Number of responses received with status code 505 (HTTP Version Not Supported) for origin received by Compute@Edge. | [optional] +**ComputeLatency0To1ms** | Pointer to **int32** | Number of responses with latency between 0 and 1 millisecond for origin received by Compute@Edge. | [optional] +**ComputeLatency1To5ms** | Pointer to **int32** | Number of responses with latency between 1 and 5 milliseconds for origin received by Compute@Edge. | [optional] +**ComputeLatency5To10ms** | Pointer to **int32** | Number of responses with latency between 5 and 10 milliseconds for origin received by Compute@Edge. | [optional] +**ComputeLatency10To50ms** | Pointer to **int32** | Number of responses with latency between 10 and 50 milliseconds for origin received by Compute@Edge. | [optional] +**ComputeLatency50To100ms** | Pointer to **int32** | Number of responses with latency between 50 and 100 milliseconds for origin received by Compute@Edge. | [optional] +**ComputeLatency100To250ms** | Pointer to **int32** | Number of responses with latency between 100 and 250 milliseconds for origin received by Compute@Edge. | [optional] +**ComputeLatency250To500ms** | Pointer to **int32** | Number of responses with latency between 250 and 500 milliseconds for origin received by Compute@Edge. | [optional] +**ComputeLatency500To1000ms** | Pointer to **int32** | Number of responses with latency between 500 and 1,000 milliseconds for origin received by Compute@Edge. | [optional] +**ComputeLatency1000To5000ms** | Pointer to **int32** | Number of responses with latency between 1,000 and 5,000 milliseconds for origin received by Compute@Edge. | [optional] +**ComputeLatency5000To10000ms** | Pointer to **int32** | Number of responses with latency between 5,000 and 10,000 milliseconds for origin received by Compute@Edge. | [optional] +**ComputeLatency10000To60000ms** | Pointer to **int32** | Number of responses with latency between 10,000 and 60,000 milliseconds for origin received by Compute@Edge. | [optional] +**ComputeLatency60000ms** | Pointer to **int32** | Number of responses with latency of 60,000 milliseconds and above for origin received by Compute@Edge. | [optional] +**AllResponses** | Pointer to **int32** | Number of responses received for origin requests made by all sources. | [optional] +**AllRespHeaderBytes** | Pointer to **int32** | Number of header bytes received for origin requests made by all sources. | [optional] +**AllRespBodyBytes** | Pointer to **int32** | Number of body bytes received for origin requests made by all sources. | [optional] +**AllStatus1xx** | Pointer to **int32** | Number of 1xx \"Informational\" category status codes delivered received for origin requests made by all sources. | [optional] +**AllStatus2xx** | Pointer to **int32** | Number of 2xx \"Success\" status codes received for origin requests made by all sources. | [optional] +**AllStatus3xx** | Pointer to **int32** | Number of 3xx \"Redirection\" codes received for origin requests made by all sources. | [optional] +**AllStatus4xx** | Pointer to **int32** | Number of 4xx \"Client Error\" codes received for origin requests made by all sources. | [optional] +**AllStatus5xx** | Pointer to **int32** | Number of 5xx \"Server Error\" codes received for origin requests made by all sources. | [optional] +**AllStatus200** | Pointer to **int32** | Number of responses received with status code 200 (Success) received for origin requests made by all sources. | [optional] +**AllStatus204** | Pointer to **int32** | Number of responses received with status code 204 (No Content) received for origin requests made by all sources. | [optional] +**AllStatus206** | Pointer to **int32** | Number of responses received with status code 206 (Partial Content) received for origin requests made by all sources. | [optional] +**AllStatus301** | Pointer to **int32** | Number of responses received with status code 301 (Moved Permanently) received for origin requests made by all sources. | [optional] +**AllStatus302** | Pointer to **int32** | Number of responses received with status code 302 (Found) received for origin requests made by all sources. | [optional] +**AllStatus304** | Pointer to **int32** | Number of responses received with status code 304 (Not Modified) received for origin requests made by all sources. | [optional] +**AllStatus400** | Pointer to **int32** | Number of responses received with status code 400 (Bad Request) received for origin requests made by all sources. | [optional] +**AllStatus401** | Pointer to **int32** | Number of responses received with status code 401 (Unauthorized) received for origin requests made by all sources. | [optional] +**AllStatus403** | Pointer to **int32** | Number of responses received with status code 403 (Forbidden) received for origin requests made by all sources. | [optional] +**AllStatus404** | Pointer to **int32** | Number of responses received with status code 404 (Not Found) received for origin requests made by all sources. | [optional] +**AllStatus416** | Pointer to **int32** | Number of responses received with status code 416 (Range Not Satisfiable) received for origin requests made by all sources. | [optional] +**AllStatus429** | Pointer to **int32** | Number of responses received with status code 429 (Too Many Requests) received for origin requests made by all sources. | [optional] +**AllStatus500** | Pointer to **int32** | Number of responses received with status code 500 (Internal Server Error) received for origin requests made by all sources. | [optional] +**AllStatus501** | Pointer to **int32** | Number of responses received with status code 501 (Not Implemented) received for origin requests made by all sources. | [optional] +**AllStatus502** | Pointer to **int32** | Number of responses received with status code 502 (Bad Gateway) received for origin requests made by all sources. | [optional] +**AllStatus503** | Pointer to **int32** | Number of responses received with status code 503 (Service Unavailable) received for origin requests made by all sources. | [optional] +**AllStatus504** | Pointer to **int32** | Number of responses received with status code 504 (Gateway Timeout) received for origin requests made by all sources. | [optional] +**AllStatus505** | Pointer to **int32** | Number of responses received with status code 505 (HTTP Version Not Supported) received for origin requests made by all sources. | [optional] +**AllLatency0To1ms** | Pointer to **int32** | Number of responses with latency between 0 and 1 millisecond received for origin requests made by all sources. | [optional] +**AllLatency1To5ms** | Pointer to **int32** | Number of responses with latency between 1 and 5 milliseconds received for origin requests made by all sources. | [optional] +**AllLatency5To10ms** | Pointer to **int32** | Number of responses with latency between 5 and 10 milliseconds received for origin requests made by all sources. | [optional] +**AllLatency10To50ms** | Pointer to **int32** | Number of responses with latency between 10 and 50 milliseconds received for origin requests made by all sources. | [optional] +**AllLatency50To100ms** | Pointer to **int32** | Number of responses with latency between 50 and 100 milliseconds received for origin requests made by all sources. | [optional] +**AllLatency100To250ms** | Pointer to **int32** | Number of responses with latency between 100 and 250 milliseconds received for origin requests made by all sources. | [optional] +**AllLatency250To500ms** | Pointer to **int32** | Number of responses with latency between 250 and 500 milliseconds received for origin requests made by all sources. | [optional] +**AllLatency500To1000ms** | Pointer to **int32** | Number of responses with latency between 500 and 1,000 milliseconds received for origin requests made by all sources. | [optional] +**AllLatency1000To5000ms** | Pointer to **int32** | Number of responses with latency between 1,000 and 5,000 milliseconds received for origin requests made by all sources. | [optional] +**AllLatency5000To10000ms** | Pointer to **int32** | Number of responses with latency between 5,000 and 10,000 milliseconds received for origin requests made by all sources. | [optional] +**AllLatency10000To60000ms** | Pointer to **int32** | Number of responses with latency between 10,000 and 60,000 milliseconds received for origin requests made by all sources. | [optional] +**AllLatency60000ms** | Pointer to **int32** | Number of responses with latency of 60,000 milliseconds and above received for origin requests made by all sources. | [optional] + +## Methods + +### NewOriginInspectorValues + +`func NewOriginInspectorValues() *OriginInspectorValues` + +NewOriginInspectorValues instantiates a new OriginInspectorValues object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewOriginInspectorValuesWithDefaults + +`func NewOriginInspectorValuesWithDefaults() *OriginInspectorValues` + +NewOriginInspectorValuesWithDefaults instantiates a new OriginInspectorValues object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetResponses + +`func (o *OriginInspectorValues) GetResponses() int32` + +GetResponses returns the Responses field if non-nil, zero value otherwise. + +### GetResponsesOk + +`func (o *OriginInspectorValues) GetResponsesOk() (*int32, bool)` + +GetResponsesOk returns a tuple with the Responses field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetResponses + +`func (o *OriginInspectorValues) SetResponses(v int32)` + +SetResponses sets Responses field to given value. + +### HasResponses + +`func (o *OriginInspectorValues) HasResponses() bool` + +HasResponses returns a boolean if a field has been set. + +### GetRespHeaderBytes + +`func (o *OriginInspectorValues) GetRespHeaderBytes() int32` + +GetRespHeaderBytes returns the RespHeaderBytes field if non-nil, zero value otherwise. + +### GetRespHeaderBytesOk + +`func (o *OriginInspectorValues) GetRespHeaderBytesOk() (*int32, bool)` + +GetRespHeaderBytesOk returns a tuple with the RespHeaderBytes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRespHeaderBytes + +`func (o *OriginInspectorValues) SetRespHeaderBytes(v int32)` + +SetRespHeaderBytes sets RespHeaderBytes field to given value. + +### HasRespHeaderBytes + +`func (o *OriginInspectorValues) HasRespHeaderBytes() bool` + +HasRespHeaderBytes returns a boolean if a field has been set. + +### GetRespBodyBytes + +`func (o *OriginInspectorValues) GetRespBodyBytes() int32` + +GetRespBodyBytes returns the RespBodyBytes field if non-nil, zero value otherwise. + +### GetRespBodyBytesOk + +`func (o *OriginInspectorValues) GetRespBodyBytesOk() (*int32, bool)` + +GetRespBodyBytesOk returns a tuple with the RespBodyBytes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRespBodyBytes + +`func (o *OriginInspectorValues) SetRespBodyBytes(v int32)` + +SetRespBodyBytes sets RespBodyBytes field to given value. + +### HasRespBodyBytes + +`func (o *OriginInspectorValues) HasRespBodyBytes() bool` + +HasRespBodyBytes returns a boolean if a field has been set. + +### GetStatus1xx + +`func (o *OriginInspectorValues) GetStatus1xx() int32` + +GetStatus1xx returns the Status1xx field if non-nil, zero value otherwise. + +### GetStatus1xxOk + +`func (o *OriginInspectorValues) GetStatus1xxOk() (*int32, bool)` + +GetStatus1xxOk returns a tuple with the Status1xx field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus1xx + +`func (o *OriginInspectorValues) SetStatus1xx(v int32)` + +SetStatus1xx sets Status1xx field to given value. + +### HasStatus1xx + +`func (o *OriginInspectorValues) HasStatus1xx() bool` + +HasStatus1xx returns a boolean if a field has been set. + +### GetStatus2xx + +`func (o *OriginInspectorValues) GetStatus2xx() int32` + +GetStatus2xx returns the Status2xx field if non-nil, zero value otherwise. + +### GetStatus2xxOk + +`func (o *OriginInspectorValues) GetStatus2xxOk() (*int32, bool)` + +GetStatus2xxOk returns a tuple with the Status2xx field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus2xx + +`func (o *OriginInspectorValues) SetStatus2xx(v int32)` + +SetStatus2xx sets Status2xx field to given value. + +### HasStatus2xx + +`func (o *OriginInspectorValues) HasStatus2xx() bool` + +HasStatus2xx returns a boolean if a field has been set. + +### GetStatus3xx + +`func (o *OriginInspectorValues) GetStatus3xx() int32` + +GetStatus3xx returns the Status3xx field if non-nil, zero value otherwise. + +### GetStatus3xxOk + +`func (o *OriginInspectorValues) GetStatus3xxOk() (*int32, bool)` + +GetStatus3xxOk returns a tuple with the Status3xx field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus3xx + +`func (o *OriginInspectorValues) SetStatus3xx(v int32)` + +SetStatus3xx sets Status3xx field to given value. + +### HasStatus3xx + +`func (o *OriginInspectorValues) HasStatus3xx() bool` + +HasStatus3xx returns a boolean if a field has been set. + +### GetStatus4xx + +`func (o *OriginInspectorValues) GetStatus4xx() int32` + +GetStatus4xx returns the Status4xx field if non-nil, zero value otherwise. + +### GetStatus4xxOk + +`func (o *OriginInspectorValues) GetStatus4xxOk() (*int32, bool)` + +GetStatus4xxOk returns a tuple with the Status4xx field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus4xx + +`func (o *OriginInspectorValues) SetStatus4xx(v int32)` + +SetStatus4xx sets Status4xx field to given value. + +### HasStatus4xx + +`func (o *OriginInspectorValues) HasStatus4xx() bool` + +HasStatus4xx returns a boolean if a field has been set. + +### GetStatus5xx + +`func (o *OriginInspectorValues) GetStatus5xx() int32` + +GetStatus5xx returns the Status5xx field if non-nil, zero value otherwise. + +### GetStatus5xxOk + +`func (o *OriginInspectorValues) GetStatus5xxOk() (*int32, bool)` + +GetStatus5xxOk returns a tuple with the Status5xx field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus5xx + +`func (o *OriginInspectorValues) SetStatus5xx(v int32)` + +SetStatus5xx sets Status5xx field to given value. + +### HasStatus5xx + +`func (o *OriginInspectorValues) HasStatus5xx() bool` + +HasStatus5xx returns a boolean if a field has been set. + +### GetStatus200 + +`func (o *OriginInspectorValues) GetStatus200() int32` + +GetStatus200 returns the Status200 field if non-nil, zero value otherwise. + +### GetStatus200Ok + +`func (o *OriginInspectorValues) GetStatus200Ok() (*int32, bool)` + +GetStatus200Ok returns a tuple with the Status200 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus200 + +`func (o *OriginInspectorValues) SetStatus200(v int32)` + +SetStatus200 sets Status200 field to given value. + +### HasStatus200 + +`func (o *OriginInspectorValues) HasStatus200() bool` + +HasStatus200 returns a boolean if a field has been set. + +### GetStatus204 + +`func (o *OriginInspectorValues) GetStatus204() int32` + +GetStatus204 returns the Status204 field if non-nil, zero value otherwise. + +### GetStatus204Ok + +`func (o *OriginInspectorValues) GetStatus204Ok() (*int32, bool)` + +GetStatus204Ok returns a tuple with the Status204 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus204 + +`func (o *OriginInspectorValues) SetStatus204(v int32)` + +SetStatus204 sets Status204 field to given value. + +### HasStatus204 + +`func (o *OriginInspectorValues) HasStatus204() bool` + +HasStatus204 returns a boolean if a field has been set. + +### GetStatus206 + +`func (o *OriginInspectorValues) GetStatus206() int32` + +GetStatus206 returns the Status206 field if non-nil, zero value otherwise. + +### GetStatus206Ok + +`func (o *OriginInspectorValues) GetStatus206Ok() (*int32, bool)` + +GetStatus206Ok returns a tuple with the Status206 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus206 + +`func (o *OriginInspectorValues) SetStatus206(v int32)` + +SetStatus206 sets Status206 field to given value. + +### HasStatus206 + +`func (o *OriginInspectorValues) HasStatus206() bool` + +HasStatus206 returns a boolean if a field has been set. + +### GetStatus301 + +`func (o *OriginInspectorValues) GetStatus301() int32` + +GetStatus301 returns the Status301 field if non-nil, zero value otherwise. + +### GetStatus301Ok + +`func (o *OriginInspectorValues) GetStatus301Ok() (*int32, bool)` + +GetStatus301Ok returns a tuple with the Status301 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus301 + +`func (o *OriginInspectorValues) SetStatus301(v int32)` + +SetStatus301 sets Status301 field to given value. + +### HasStatus301 + +`func (o *OriginInspectorValues) HasStatus301() bool` + +HasStatus301 returns a boolean if a field has been set. + +### GetStatus302 + +`func (o *OriginInspectorValues) GetStatus302() int32` + +GetStatus302 returns the Status302 field if non-nil, zero value otherwise. + +### GetStatus302Ok + +`func (o *OriginInspectorValues) GetStatus302Ok() (*int32, bool)` + +GetStatus302Ok returns a tuple with the Status302 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus302 + +`func (o *OriginInspectorValues) SetStatus302(v int32)` + +SetStatus302 sets Status302 field to given value. + +### HasStatus302 + +`func (o *OriginInspectorValues) HasStatus302() bool` + +HasStatus302 returns a boolean if a field has been set. + +### GetStatus304 + +`func (o *OriginInspectorValues) GetStatus304() int32` + +GetStatus304 returns the Status304 field if non-nil, zero value otherwise. + +### GetStatus304Ok + +`func (o *OriginInspectorValues) GetStatus304Ok() (*int32, bool)` + +GetStatus304Ok returns a tuple with the Status304 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus304 + +`func (o *OriginInspectorValues) SetStatus304(v int32)` + +SetStatus304 sets Status304 field to given value. + +### HasStatus304 + +`func (o *OriginInspectorValues) HasStatus304() bool` + +HasStatus304 returns a boolean if a field has been set. + +### GetStatus400 + +`func (o *OriginInspectorValues) GetStatus400() int32` + +GetStatus400 returns the Status400 field if non-nil, zero value otherwise. + +### GetStatus400Ok + +`func (o *OriginInspectorValues) GetStatus400Ok() (*int32, bool)` + +GetStatus400Ok returns a tuple with the Status400 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus400 + +`func (o *OriginInspectorValues) SetStatus400(v int32)` + +SetStatus400 sets Status400 field to given value. + +### HasStatus400 + +`func (o *OriginInspectorValues) HasStatus400() bool` + +HasStatus400 returns a boolean if a field has been set. + +### GetStatus401 + +`func (o *OriginInspectorValues) GetStatus401() int32` + +GetStatus401 returns the Status401 field if non-nil, zero value otherwise. + +### GetStatus401Ok + +`func (o *OriginInspectorValues) GetStatus401Ok() (*int32, bool)` + +GetStatus401Ok returns a tuple with the Status401 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus401 + +`func (o *OriginInspectorValues) SetStatus401(v int32)` + +SetStatus401 sets Status401 field to given value. + +### HasStatus401 + +`func (o *OriginInspectorValues) HasStatus401() bool` + +HasStatus401 returns a boolean if a field has been set. + +### GetStatus403 + +`func (o *OriginInspectorValues) GetStatus403() int32` + +GetStatus403 returns the Status403 field if non-nil, zero value otherwise. + +### GetStatus403Ok + +`func (o *OriginInspectorValues) GetStatus403Ok() (*int32, bool)` + +GetStatus403Ok returns a tuple with the Status403 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus403 + +`func (o *OriginInspectorValues) SetStatus403(v int32)` + +SetStatus403 sets Status403 field to given value. + +### HasStatus403 + +`func (o *OriginInspectorValues) HasStatus403() bool` + +HasStatus403 returns a boolean if a field has been set. + +### GetStatus404 + +`func (o *OriginInspectorValues) GetStatus404() int32` + +GetStatus404 returns the Status404 field if non-nil, zero value otherwise. + +### GetStatus404Ok + +`func (o *OriginInspectorValues) GetStatus404Ok() (*int32, bool)` + +GetStatus404Ok returns a tuple with the Status404 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus404 + +`func (o *OriginInspectorValues) SetStatus404(v int32)` + +SetStatus404 sets Status404 field to given value. + +### HasStatus404 + +`func (o *OriginInspectorValues) HasStatus404() bool` + +HasStatus404 returns a boolean if a field has been set. + +### GetStatus416 + +`func (o *OriginInspectorValues) GetStatus416() int32` + +GetStatus416 returns the Status416 field if non-nil, zero value otherwise. + +### GetStatus416Ok + +`func (o *OriginInspectorValues) GetStatus416Ok() (*int32, bool)` + +GetStatus416Ok returns a tuple with the Status416 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus416 + +`func (o *OriginInspectorValues) SetStatus416(v int32)` + +SetStatus416 sets Status416 field to given value. + +### HasStatus416 + +`func (o *OriginInspectorValues) HasStatus416() bool` + +HasStatus416 returns a boolean if a field has been set. + +### GetStatus429 + +`func (o *OriginInspectorValues) GetStatus429() int32` + +GetStatus429 returns the Status429 field if non-nil, zero value otherwise. + +### GetStatus429Ok + +`func (o *OriginInspectorValues) GetStatus429Ok() (*int32, bool)` + +GetStatus429Ok returns a tuple with the Status429 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus429 + +`func (o *OriginInspectorValues) SetStatus429(v int32)` + +SetStatus429 sets Status429 field to given value. + +### HasStatus429 + +`func (o *OriginInspectorValues) HasStatus429() bool` + +HasStatus429 returns a boolean if a field has been set. + +### GetStatus500 + +`func (o *OriginInspectorValues) GetStatus500() int32` + +GetStatus500 returns the Status500 field if non-nil, zero value otherwise. + +### GetStatus500Ok + +`func (o *OriginInspectorValues) GetStatus500Ok() (*int32, bool)` + +GetStatus500Ok returns a tuple with the Status500 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus500 + +`func (o *OriginInspectorValues) SetStatus500(v int32)` + +SetStatus500 sets Status500 field to given value. + +### HasStatus500 + +`func (o *OriginInspectorValues) HasStatus500() bool` + +HasStatus500 returns a boolean if a field has been set. + +### GetStatus501 + +`func (o *OriginInspectorValues) GetStatus501() int32` + +GetStatus501 returns the Status501 field if non-nil, zero value otherwise. + +### GetStatus501Ok + +`func (o *OriginInspectorValues) GetStatus501Ok() (*int32, bool)` + +GetStatus501Ok returns a tuple with the Status501 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus501 + +`func (o *OriginInspectorValues) SetStatus501(v int32)` + +SetStatus501 sets Status501 field to given value. + +### HasStatus501 + +`func (o *OriginInspectorValues) HasStatus501() bool` + +HasStatus501 returns a boolean if a field has been set. + +### GetStatus502 + +`func (o *OriginInspectorValues) GetStatus502() int32` + +GetStatus502 returns the Status502 field if non-nil, zero value otherwise. + +### GetStatus502Ok + +`func (o *OriginInspectorValues) GetStatus502Ok() (*int32, bool)` + +GetStatus502Ok returns a tuple with the Status502 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus502 + +`func (o *OriginInspectorValues) SetStatus502(v int32)` + +SetStatus502 sets Status502 field to given value. + +### HasStatus502 + +`func (o *OriginInspectorValues) HasStatus502() bool` + +HasStatus502 returns a boolean if a field has been set. + +### GetStatus503 + +`func (o *OriginInspectorValues) GetStatus503() int32` + +GetStatus503 returns the Status503 field if non-nil, zero value otherwise. + +### GetStatus503Ok + +`func (o *OriginInspectorValues) GetStatus503Ok() (*int32, bool)` + +GetStatus503Ok returns a tuple with the Status503 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus503 + +`func (o *OriginInspectorValues) SetStatus503(v int32)` + +SetStatus503 sets Status503 field to given value. + +### HasStatus503 + +`func (o *OriginInspectorValues) HasStatus503() bool` + +HasStatus503 returns a boolean if a field has been set. + +### GetStatus504 + +`func (o *OriginInspectorValues) GetStatus504() int32` + +GetStatus504 returns the Status504 field if non-nil, zero value otherwise. + +### GetStatus504Ok + +`func (o *OriginInspectorValues) GetStatus504Ok() (*int32, bool)` + +GetStatus504Ok returns a tuple with the Status504 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus504 + +`func (o *OriginInspectorValues) SetStatus504(v int32)` + +SetStatus504 sets Status504 field to given value. + +### HasStatus504 + +`func (o *OriginInspectorValues) HasStatus504() bool` + +HasStatus504 returns a boolean if a field has been set. + +### GetStatus505 + +`func (o *OriginInspectorValues) GetStatus505() int32` + +GetStatus505 returns the Status505 field if non-nil, zero value otherwise. + +### GetStatus505Ok + +`func (o *OriginInspectorValues) GetStatus505Ok() (*int32, bool)` + +GetStatus505Ok returns a tuple with the Status505 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus505 + +`func (o *OriginInspectorValues) SetStatus505(v int32)` + +SetStatus505 sets Status505 field to given value. + +### HasStatus505 + +`func (o *OriginInspectorValues) HasStatus505() bool` + +HasStatus505 returns a boolean if a field has been set. + +### GetLatency0To1ms + +`func (o *OriginInspectorValues) GetLatency0To1ms() int32` + +GetLatency0To1ms returns the Latency0To1ms field if non-nil, zero value otherwise. + +### GetLatency0To1msOk + +`func (o *OriginInspectorValues) GetLatency0To1msOk() (*int32, bool)` + +GetLatency0To1msOk returns a tuple with the Latency0To1ms field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLatency0To1ms + +`func (o *OriginInspectorValues) SetLatency0To1ms(v int32)` + +SetLatency0To1ms sets Latency0To1ms field to given value. + +### HasLatency0To1ms + +`func (o *OriginInspectorValues) HasLatency0To1ms() bool` + +HasLatency0To1ms returns a boolean if a field has been set. + +### GetLatency1To5ms + +`func (o *OriginInspectorValues) GetLatency1To5ms() int32` + +GetLatency1To5ms returns the Latency1To5ms field if non-nil, zero value otherwise. + +### GetLatency1To5msOk + +`func (o *OriginInspectorValues) GetLatency1To5msOk() (*int32, bool)` + +GetLatency1To5msOk returns a tuple with the Latency1To5ms field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLatency1To5ms + +`func (o *OriginInspectorValues) SetLatency1To5ms(v int32)` + +SetLatency1To5ms sets Latency1To5ms field to given value. + +### HasLatency1To5ms + +`func (o *OriginInspectorValues) HasLatency1To5ms() bool` + +HasLatency1To5ms returns a boolean if a field has been set. + +### GetLatency5To10ms + +`func (o *OriginInspectorValues) GetLatency5To10ms() int32` + +GetLatency5To10ms returns the Latency5To10ms field if non-nil, zero value otherwise. + +### GetLatency5To10msOk + +`func (o *OriginInspectorValues) GetLatency5To10msOk() (*int32, bool)` + +GetLatency5To10msOk returns a tuple with the Latency5To10ms field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLatency5To10ms + +`func (o *OriginInspectorValues) SetLatency5To10ms(v int32)` + +SetLatency5To10ms sets Latency5To10ms field to given value. + +### HasLatency5To10ms + +`func (o *OriginInspectorValues) HasLatency5To10ms() bool` + +HasLatency5To10ms returns a boolean if a field has been set. + +### GetLatency10To50ms + +`func (o *OriginInspectorValues) GetLatency10To50ms() int32` + +GetLatency10To50ms returns the Latency10To50ms field if non-nil, zero value otherwise. + +### GetLatency10To50msOk + +`func (o *OriginInspectorValues) GetLatency10To50msOk() (*int32, bool)` + +GetLatency10To50msOk returns a tuple with the Latency10To50ms field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLatency10To50ms + +`func (o *OriginInspectorValues) SetLatency10To50ms(v int32)` + +SetLatency10To50ms sets Latency10To50ms field to given value. + +### HasLatency10To50ms + +`func (o *OriginInspectorValues) HasLatency10To50ms() bool` + +HasLatency10To50ms returns a boolean if a field has been set. + +### GetLatency50To100ms + +`func (o *OriginInspectorValues) GetLatency50To100ms() int32` + +GetLatency50To100ms returns the Latency50To100ms field if non-nil, zero value otherwise. + +### GetLatency50To100msOk + +`func (o *OriginInspectorValues) GetLatency50To100msOk() (*int32, bool)` + +GetLatency50To100msOk returns a tuple with the Latency50To100ms field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLatency50To100ms + +`func (o *OriginInspectorValues) SetLatency50To100ms(v int32)` + +SetLatency50To100ms sets Latency50To100ms field to given value. + +### HasLatency50To100ms + +`func (o *OriginInspectorValues) HasLatency50To100ms() bool` + +HasLatency50To100ms returns a boolean if a field has been set. + +### GetLatency100To250ms + +`func (o *OriginInspectorValues) GetLatency100To250ms() int32` + +GetLatency100To250ms returns the Latency100To250ms field if non-nil, zero value otherwise. + +### GetLatency100To250msOk + +`func (o *OriginInspectorValues) GetLatency100To250msOk() (*int32, bool)` + +GetLatency100To250msOk returns a tuple with the Latency100To250ms field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLatency100To250ms + +`func (o *OriginInspectorValues) SetLatency100To250ms(v int32)` + +SetLatency100To250ms sets Latency100To250ms field to given value. + +### HasLatency100To250ms + +`func (o *OriginInspectorValues) HasLatency100To250ms() bool` + +HasLatency100To250ms returns a boolean if a field has been set. + +### GetLatency250To500ms + +`func (o *OriginInspectorValues) GetLatency250To500ms() int32` + +GetLatency250To500ms returns the Latency250To500ms field if non-nil, zero value otherwise. + +### GetLatency250To500msOk + +`func (o *OriginInspectorValues) GetLatency250To500msOk() (*int32, bool)` + +GetLatency250To500msOk returns a tuple with the Latency250To500ms field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLatency250To500ms + +`func (o *OriginInspectorValues) SetLatency250To500ms(v int32)` + +SetLatency250To500ms sets Latency250To500ms field to given value. + +### HasLatency250To500ms + +`func (o *OriginInspectorValues) HasLatency250To500ms() bool` + +HasLatency250To500ms returns a boolean if a field has been set. + +### GetLatency500To1000ms + +`func (o *OriginInspectorValues) GetLatency500To1000ms() int32` + +GetLatency500To1000ms returns the Latency500To1000ms field if non-nil, zero value otherwise. + +### GetLatency500To1000msOk + +`func (o *OriginInspectorValues) GetLatency500To1000msOk() (*int32, bool)` + +GetLatency500To1000msOk returns a tuple with the Latency500To1000ms field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLatency500To1000ms + +`func (o *OriginInspectorValues) SetLatency500To1000ms(v int32)` + +SetLatency500To1000ms sets Latency500To1000ms field to given value. + +### HasLatency500To1000ms + +`func (o *OriginInspectorValues) HasLatency500To1000ms() bool` + +HasLatency500To1000ms returns a boolean if a field has been set. + +### GetLatency1000To5000ms + +`func (o *OriginInspectorValues) GetLatency1000To5000ms() int32` + +GetLatency1000To5000ms returns the Latency1000To5000ms field if non-nil, zero value otherwise. + +### GetLatency1000To5000msOk + +`func (o *OriginInspectorValues) GetLatency1000To5000msOk() (*int32, bool)` + +GetLatency1000To5000msOk returns a tuple with the Latency1000To5000ms field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLatency1000To5000ms + +`func (o *OriginInspectorValues) SetLatency1000To5000ms(v int32)` + +SetLatency1000To5000ms sets Latency1000To5000ms field to given value. + +### HasLatency1000To5000ms + +`func (o *OriginInspectorValues) HasLatency1000To5000ms() bool` + +HasLatency1000To5000ms returns a boolean if a field has been set. + +### GetLatency5000To10000ms + +`func (o *OriginInspectorValues) GetLatency5000To10000ms() int32` + +GetLatency5000To10000ms returns the Latency5000To10000ms field if non-nil, zero value otherwise. + +### GetLatency5000To10000msOk + +`func (o *OriginInspectorValues) GetLatency5000To10000msOk() (*int32, bool)` + +GetLatency5000To10000msOk returns a tuple with the Latency5000To10000ms field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLatency5000To10000ms + +`func (o *OriginInspectorValues) SetLatency5000To10000ms(v int32)` + +SetLatency5000To10000ms sets Latency5000To10000ms field to given value. + +### HasLatency5000To10000ms + +`func (o *OriginInspectorValues) HasLatency5000To10000ms() bool` + +HasLatency5000To10000ms returns a boolean if a field has been set. + +### GetLatency10000To60000ms + +`func (o *OriginInspectorValues) GetLatency10000To60000ms() int32` + +GetLatency10000To60000ms returns the Latency10000To60000ms field if non-nil, zero value otherwise. + +### GetLatency10000To60000msOk + +`func (o *OriginInspectorValues) GetLatency10000To60000msOk() (*int32, bool)` + +GetLatency10000To60000msOk returns a tuple with the Latency10000To60000ms field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLatency10000To60000ms + +`func (o *OriginInspectorValues) SetLatency10000To60000ms(v int32)` + +SetLatency10000To60000ms sets Latency10000To60000ms field to given value. + +### HasLatency10000To60000ms + +`func (o *OriginInspectorValues) HasLatency10000To60000ms() bool` + +HasLatency10000To60000ms returns a boolean if a field has been set. + +### GetLatency60000ms + +`func (o *OriginInspectorValues) GetLatency60000ms() int32` + +GetLatency60000ms returns the Latency60000ms field if non-nil, zero value otherwise. + +### GetLatency60000msOk + +`func (o *OriginInspectorValues) GetLatency60000msOk() (*int32, bool)` + +GetLatency60000msOk returns a tuple with the Latency60000ms field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLatency60000ms + +`func (o *OriginInspectorValues) SetLatency60000ms(v int32)` + +SetLatency60000ms sets Latency60000ms field to given value. + +### HasLatency60000ms + +`func (o *OriginInspectorValues) HasLatency60000ms() bool` + +HasLatency60000ms returns a boolean if a field has been set. + +### GetWafResponses + +`func (o *OriginInspectorValues) GetWafResponses() int32` + +GetWafResponses returns the WafResponses field if non-nil, zero value otherwise. + +### GetWafResponsesOk + +`func (o *OriginInspectorValues) GetWafResponsesOk() (*int32, bool)` + +GetWafResponsesOk returns a tuple with the WafResponses field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWafResponses + +`func (o *OriginInspectorValues) SetWafResponses(v int32)` + +SetWafResponses sets WafResponses field to given value. + +### HasWafResponses + +`func (o *OriginInspectorValues) HasWafResponses() bool` + +HasWafResponses returns a boolean if a field has been set. + +### GetWafRespHeaderBytes + +`func (o *OriginInspectorValues) GetWafRespHeaderBytes() int32` + +GetWafRespHeaderBytes returns the WafRespHeaderBytes field if non-nil, zero value otherwise. + +### GetWafRespHeaderBytesOk + +`func (o *OriginInspectorValues) GetWafRespHeaderBytesOk() (*int32, bool)` + +GetWafRespHeaderBytesOk returns a tuple with the WafRespHeaderBytes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWafRespHeaderBytes + +`func (o *OriginInspectorValues) SetWafRespHeaderBytes(v int32)` + +SetWafRespHeaderBytes sets WafRespHeaderBytes field to given value. + +### HasWafRespHeaderBytes + +`func (o *OriginInspectorValues) HasWafRespHeaderBytes() bool` + +HasWafRespHeaderBytes returns a boolean if a field has been set. + +### GetWafRespBodyBytes + +`func (o *OriginInspectorValues) GetWafRespBodyBytes() int32` + +GetWafRespBodyBytes returns the WafRespBodyBytes field if non-nil, zero value otherwise. + +### GetWafRespBodyBytesOk + +`func (o *OriginInspectorValues) GetWafRespBodyBytesOk() (*int32, bool)` + +GetWafRespBodyBytesOk returns a tuple with the WafRespBodyBytes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWafRespBodyBytes + +`func (o *OriginInspectorValues) SetWafRespBodyBytes(v int32)` + +SetWafRespBodyBytes sets WafRespBodyBytes field to given value. + +### HasWafRespBodyBytes + +`func (o *OriginInspectorValues) HasWafRespBodyBytes() bool` + +HasWafRespBodyBytes returns a boolean if a field has been set. + +### GetWafStatus1xx + +`func (o *OriginInspectorValues) GetWafStatus1xx() int32` + +GetWafStatus1xx returns the WafStatus1xx field if non-nil, zero value otherwise. + +### GetWafStatus1xxOk + +`func (o *OriginInspectorValues) GetWafStatus1xxOk() (*int32, bool)` + +GetWafStatus1xxOk returns a tuple with the WafStatus1xx field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWafStatus1xx + +`func (o *OriginInspectorValues) SetWafStatus1xx(v int32)` + +SetWafStatus1xx sets WafStatus1xx field to given value. + +### HasWafStatus1xx + +`func (o *OriginInspectorValues) HasWafStatus1xx() bool` + +HasWafStatus1xx returns a boolean if a field has been set. + +### GetWafStatus2xx + +`func (o *OriginInspectorValues) GetWafStatus2xx() int32` + +GetWafStatus2xx returns the WafStatus2xx field if non-nil, zero value otherwise. + +### GetWafStatus2xxOk + +`func (o *OriginInspectorValues) GetWafStatus2xxOk() (*int32, bool)` + +GetWafStatus2xxOk returns a tuple with the WafStatus2xx field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWafStatus2xx + +`func (o *OriginInspectorValues) SetWafStatus2xx(v int32)` + +SetWafStatus2xx sets WafStatus2xx field to given value. + +### HasWafStatus2xx + +`func (o *OriginInspectorValues) HasWafStatus2xx() bool` + +HasWafStatus2xx returns a boolean if a field has been set. + +### GetWafStatus3xx + +`func (o *OriginInspectorValues) GetWafStatus3xx() int32` + +GetWafStatus3xx returns the WafStatus3xx field if non-nil, zero value otherwise. + +### GetWafStatus3xxOk + +`func (o *OriginInspectorValues) GetWafStatus3xxOk() (*int32, bool)` + +GetWafStatus3xxOk returns a tuple with the WafStatus3xx field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWafStatus3xx + +`func (o *OriginInspectorValues) SetWafStatus3xx(v int32)` + +SetWafStatus3xx sets WafStatus3xx field to given value. + +### HasWafStatus3xx + +`func (o *OriginInspectorValues) HasWafStatus3xx() bool` + +HasWafStatus3xx returns a boolean if a field has been set. + +### GetWafStatus4xx + +`func (o *OriginInspectorValues) GetWafStatus4xx() int32` + +GetWafStatus4xx returns the WafStatus4xx field if non-nil, zero value otherwise. + +### GetWafStatus4xxOk + +`func (o *OriginInspectorValues) GetWafStatus4xxOk() (*int32, bool)` + +GetWafStatus4xxOk returns a tuple with the WafStatus4xx field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWafStatus4xx + +`func (o *OriginInspectorValues) SetWafStatus4xx(v int32)` + +SetWafStatus4xx sets WafStatus4xx field to given value. + +### HasWafStatus4xx + +`func (o *OriginInspectorValues) HasWafStatus4xx() bool` + +HasWafStatus4xx returns a boolean if a field has been set. + +### GetWafStatus5xx + +`func (o *OriginInspectorValues) GetWafStatus5xx() int32` + +GetWafStatus5xx returns the WafStatus5xx field if non-nil, zero value otherwise. + +### GetWafStatus5xxOk + +`func (o *OriginInspectorValues) GetWafStatus5xxOk() (*int32, bool)` + +GetWafStatus5xxOk returns a tuple with the WafStatus5xx field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWafStatus5xx + +`func (o *OriginInspectorValues) SetWafStatus5xx(v int32)` + +SetWafStatus5xx sets WafStatus5xx field to given value. + +### HasWafStatus5xx + +`func (o *OriginInspectorValues) HasWafStatus5xx() bool` + +HasWafStatus5xx returns a boolean if a field has been set. + +### GetWafStatus200 + +`func (o *OriginInspectorValues) GetWafStatus200() int32` + +GetWafStatus200 returns the WafStatus200 field if non-nil, zero value otherwise. + +### GetWafStatus200Ok + +`func (o *OriginInspectorValues) GetWafStatus200Ok() (*int32, bool)` + +GetWafStatus200Ok returns a tuple with the WafStatus200 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWafStatus200 + +`func (o *OriginInspectorValues) SetWafStatus200(v int32)` + +SetWafStatus200 sets WafStatus200 field to given value. + +### HasWafStatus200 + +`func (o *OriginInspectorValues) HasWafStatus200() bool` + +HasWafStatus200 returns a boolean if a field has been set. + +### GetWafStatus204 + +`func (o *OriginInspectorValues) GetWafStatus204() int32` + +GetWafStatus204 returns the WafStatus204 field if non-nil, zero value otherwise. + +### GetWafStatus204Ok + +`func (o *OriginInspectorValues) GetWafStatus204Ok() (*int32, bool)` + +GetWafStatus204Ok returns a tuple with the WafStatus204 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWafStatus204 + +`func (o *OriginInspectorValues) SetWafStatus204(v int32)` + +SetWafStatus204 sets WafStatus204 field to given value. + +### HasWafStatus204 + +`func (o *OriginInspectorValues) HasWafStatus204() bool` + +HasWafStatus204 returns a boolean if a field has been set. + +### GetWafStatus206 + +`func (o *OriginInspectorValues) GetWafStatus206() int32` + +GetWafStatus206 returns the WafStatus206 field if non-nil, zero value otherwise. + +### GetWafStatus206Ok + +`func (o *OriginInspectorValues) GetWafStatus206Ok() (*int32, bool)` + +GetWafStatus206Ok returns a tuple with the WafStatus206 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWafStatus206 + +`func (o *OriginInspectorValues) SetWafStatus206(v int32)` + +SetWafStatus206 sets WafStatus206 field to given value. + +### HasWafStatus206 + +`func (o *OriginInspectorValues) HasWafStatus206() bool` + +HasWafStatus206 returns a boolean if a field has been set. + +### GetWafStatus301 + +`func (o *OriginInspectorValues) GetWafStatus301() int32` + +GetWafStatus301 returns the WafStatus301 field if non-nil, zero value otherwise. + +### GetWafStatus301Ok + +`func (o *OriginInspectorValues) GetWafStatus301Ok() (*int32, bool)` + +GetWafStatus301Ok returns a tuple with the WafStatus301 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWafStatus301 + +`func (o *OriginInspectorValues) SetWafStatus301(v int32)` + +SetWafStatus301 sets WafStatus301 field to given value. + +### HasWafStatus301 + +`func (o *OriginInspectorValues) HasWafStatus301() bool` + +HasWafStatus301 returns a boolean if a field has been set. + +### GetWafStatus302 + +`func (o *OriginInspectorValues) GetWafStatus302() int32` + +GetWafStatus302 returns the WafStatus302 field if non-nil, zero value otherwise. + +### GetWafStatus302Ok + +`func (o *OriginInspectorValues) GetWafStatus302Ok() (*int32, bool)` + +GetWafStatus302Ok returns a tuple with the WafStatus302 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWafStatus302 + +`func (o *OriginInspectorValues) SetWafStatus302(v int32)` + +SetWafStatus302 sets WafStatus302 field to given value. + +### HasWafStatus302 + +`func (o *OriginInspectorValues) HasWafStatus302() bool` + +HasWafStatus302 returns a boolean if a field has been set. + +### GetWafStatus304 + +`func (o *OriginInspectorValues) GetWafStatus304() int32` + +GetWafStatus304 returns the WafStatus304 field if non-nil, zero value otherwise. + +### GetWafStatus304Ok + +`func (o *OriginInspectorValues) GetWafStatus304Ok() (*int32, bool)` + +GetWafStatus304Ok returns a tuple with the WafStatus304 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWafStatus304 + +`func (o *OriginInspectorValues) SetWafStatus304(v int32)` + +SetWafStatus304 sets WafStatus304 field to given value. + +### HasWafStatus304 + +`func (o *OriginInspectorValues) HasWafStatus304() bool` + +HasWafStatus304 returns a boolean if a field has been set. + +### GetWafStatus400 + +`func (o *OriginInspectorValues) GetWafStatus400() int32` + +GetWafStatus400 returns the WafStatus400 field if non-nil, zero value otherwise. + +### GetWafStatus400Ok + +`func (o *OriginInspectorValues) GetWafStatus400Ok() (*int32, bool)` + +GetWafStatus400Ok returns a tuple with the WafStatus400 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWafStatus400 + +`func (o *OriginInspectorValues) SetWafStatus400(v int32)` + +SetWafStatus400 sets WafStatus400 field to given value. + +### HasWafStatus400 + +`func (o *OriginInspectorValues) HasWafStatus400() bool` + +HasWafStatus400 returns a boolean if a field has been set. + +### GetWafStatus401 + +`func (o *OriginInspectorValues) GetWafStatus401() int32` + +GetWafStatus401 returns the WafStatus401 field if non-nil, zero value otherwise. + +### GetWafStatus401Ok + +`func (o *OriginInspectorValues) GetWafStatus401Ok() (*int32, bool)` + +GetWafStatus401Ok returns a tuple with the WafStatus401 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWafStatus401 + +`func (o *OriginInspectorValues) SetWafStatus401(v int32)` + +SetWafStatus401 sets WafStatus401 field to given value. + +### HasWafStatus401 + +`func (o *OriginInspectorValues) HasWafStatus401() bool` + +HasWafStatus401 returns a boolean if a field has been set. + +### GetWafStatus403 + +`func (o *OriginInspectorValues) GetWafStatus403() int32` + +GetWafStatus403 returns the WafStatus403 field if non-nil, zero value otherwise. + +### GetWafStatus403Ok + +`func (o *OriginInspectorValues) GetWafStatus403Ok() (*int32, bool)` + +GetWafStatus403Ok returns a tuple with the WafStatus403 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWafStatus403 + +`func (o *OriginInspectorValues) SetWafStatus403(v int32)` + +SetWafStatus403 sets WafStatus403 field to given value. + +### HasWafStatus403 + +`func (o *OriginInspectorValues) HasWafStatus403() bool` + +HasWafStatus403 returns a boolean if a field has been set. + +### GetWafStatus404 + +`func (o *OriginInspectorValues) GetWafStatus404() int32` + +GetWafStatus404 returns the WafStatus404 field if non-nil, zero value otherwise. + +### GetWafStatus404Ok + +`func (o *OriginInspectorValues) GetWafStatus404Ok() (*int32, bool)` + +GetWafStatus404Ok returns a tuple with the WafStatus404 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWafStatus404 + +`func (o *OriginInspectorValues) SetWafStatus404(v int32)` + +SetWafStatus404 sets WafStatus404 field to given value. + +### HasWafStatus404 + +`func (o *OriginInspectorValues) HasWafStatus404() bool` + +HasWafStatus404 returns a boolean if a field has been set. + +### GetWafStatus416 + +`func (o *OriginInspectorValues) GetWafStatus416() int32` + +GetWafStatus416 returns the WafStatus416 field if non-nil, zero value otherwise. + +### GetWafStatus416Ok + +`func (o *OriginInspectorValues) GetWafStatus416Ok() (*int32, bool)` + +GetWafStatus416Ok returns a tuple with the WafStatus416 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWafStatus416 + +`func (o *OriginInspectorValues) SetWafStatus416(v int32)` + +SetWafStatus416 sets WafStatus416 field to given value. + +### HasWafStatus416 + +`func (o *OriginInspectorValues) HasWafStatus416() bool` + +HasWafStatus416 returns a boolean if a field has been set. + +### GetWafStatus429 + +`func (o *OriginInspectorValues) GetWafStatus429() int32` + +GetWafStatus429 returns the WafStatus429 field if non-nil, zero value otherwise. + +### GetWafStatus429Ok + +`func (o *OriginInspectorValues) GetWafStatus429Ok() (*int32, bool)` + +GetWafStatus429Ok returns a tuple with the WafStatus429 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWafStatus429 + +`func (o *OriginInspectorValues) SetWafStatus429(v int32)` + +SetWafStatus429 sets WafStatus429 field to given value. + +### HasWafStatus429 + +`func (o *OriginInspectorValues) HasWafStatus429() bool` + +HasWafStatus429 returns a boolean if a field has been set. + +### GetWafStatus500 + +`func (o *OriginInspectorValues) GetWafStatus500() int32` + +GetWafStatus500 returns the WafStatus500 field if non-nil, zero value otherwise. + +### GetWafStatus500Ok + +`func (o *OriginInspectorValues) GetWafStatus500Ok() (*int32, bool)` + +GetWafStatus500Ok returns a tuple with the WafStatus500 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWafStatus500 + +`func (o *OriginInspectorValues) SetWafStatus500(v int32)` + +SetWafStatus500 sets WafStatus500 field to given value. + +### HasWafStatus500 + +`func (o *OriginInspectorValues) HasWafStatus500() bool` + +HasWafStatus500 returns a boolean if a field has been set. + +### GetWafStatus501 + +`func (o *OriginInspectorValues) GetWafStatus501() int32` + +GetWafStatus501 returns the WafStatus501 field if non-nil, zero value otherwise. + +### GetWafStatus501Ok + +`func (o *OriginInspectorValues) GetWafStatus501Ok() (*int32, bool)` + +GetWafStatus501Ok returns a tuple with the WafStatus501 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWafStatus501 + +`func (o *OriginInspectorValues) SetWafStatus501(v int32)` + +SetWafStatus501 sets WafStatus501 field to given value. + +### HasWafStatus501 + +`func (o *OriginInspectorValues) HasWafStatus501() bool` + +HasWafStatus501 returns a boolean if a field has been set. + +### GetWafStatus502 + +`func (o *OriginInspectorValues) GetWafStatus502() int32` + +GetWafStatus502 returns the WafStatus502 field if non-nil, zero value otherwise. + +### GetWafStatus502Ok + +`func (o *OriginInspectorValues) GetWafStatus502Ok() (*int32, bool)` + +GetWafStatus502Ok returns a tuple with the WafStatus502 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWafStatus502 + +`func (o *OriginInspectorValues) SetWafStatus502(v int32)` + +SetWafStatus502 sets WafStatus502 field to given value. + +### HasWafStatus502 + +`func (o *OriginInspectorValues) HasWafStatus502() bool` + +HasWafStatus502 returns a boolean if a field has been set. + +### GetWafStatus503 + +`func (o *OriginInspectorValues) GetWafStatus503() int32` + +GetWafStatus503 returns the WafStatus503 field if non-nil, zero value otherwise. + +### GetWafStatus503Ok + +`func (o *OriginInspectorValues) GetWafStatus503Ok() (*int32, bool)` + +GetWafStatus503Ok returns a tuple with the WafStatus503 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWafStatus503 + +`func (o *OriginInspectorValues) SetWafStatus503(v int32)` + +SetWafStatus503 sets WafStatus503 field to given value. + +### HasWafStatus503 + +`func (o *OriginInspectorValues) HasWafStatus503() bool` + +HasWafStatus503 returns a boolean if a field has been set. + +### GetWafStatus504 + +`func (o *OriginInspectorValues) GetWafStatus504() int32` + +GetWafStatus504 returns the WafStatus504 field if non-nil, zero value otherwise. + +### GetWafStatus504Ok + +`func (o *OriginInspectorValues) GetWafStatus504Ok() (*int32, bool)` + +GetWafStatus504Ok returns a tuple with the WafStatus504 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWafStatus504 + +`func (o *OriginInspectorValues) SetWafStatus504(v int32)` + +SetWafStatus504 sets WafStatus504 field to given value. + +### HasWafStatus504 + +`func (o *OriginInspectorValues) HasWafStatus504() bool` + +HasWafStatus504 returns a boolean if a field has been set. + +### GetWafStatus505 + +`func (o *OriginInspectorValues) GetWafStatus505() int32` + +GetWafStatus505 returns the WafStatus505 field if non-nil, zero value otherwise. + +### GetWafStatus505Ok + +`func (o *OriginInspectorValues) GetWafStatus505Ok() (*int32, bool)` + +GetWafStatus505Ok returns a tuple with the WafStatus505 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWafStatus505 + +`func (o *OriginInspectorValues) SetWafStatus505(v int32)` + +SetWafStatus505 sets WafStatus505 field to given value. + +### HasWafStatus505 + +`func (o *OriginInspectorValues) HasWafStatus505() bool` + +HasWafStatus505 returns a boolean if a field has been set. + +### GetWafLatency0To1ms + +`func (o *OriginInspectorValues) GetWafLatency0To1ms() int32` + +GetWafLatency0To1ms returns the WafLatency0To1ms field if non-nil, zero value otherwise. + +### GetWafLatency0To1msOk + +`func (o *OriginInspectorValues) GetWafLatency0To1msOk() (*int32, bool)` + +GetWafLatency0To1msOk returns a tuple with the WafLatency0To1ms field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWafLatency0To1ms + +`func (o *OriginInspectorValues) SetWafLatency0To1ms(v int32)` + +SetWafLatency0To1ms sets WafLatency0To1ms field to given value. + +### HasWafLatency0To1ms + +`func (o *OriginInspectorValues) HasWafLatency0To1ms() bool` + +HasWafLatency0To1ms returns a boolean if a field has been set. + +### GetWafLatency1To5ms + +`func (o *OriginInspectorValues) GetWafLatency1To5ms() int32` + +GetWafLatency1To5ms returns the WafLatency1To5ms field if non-nil, zero value otherwise. + +### GetWafLatency1To5msOk + +`func (o *OriginInspectorValues) GetWafLatency1To5msOk() (*int32, bool)` + +GetWafLatency1To5msOk returns a tuple with the WafLatency1To5ms field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWafLatency1To5ms + +`func (o *OriginInspectorValues) SetWafLatency1To5ms(v int32)` + +SetWafLatency1To5ms sets WafLatency1To5ms field to given value. + +### HasWafLatency1To5ms + +`func (o *OriginInspectorValues) HasWafLatency1To5ms() bool` + +HasWafLatency1To5ms returns a boolean if a field has been set. + +### GetWafLatency5To10ms + +`func (o *OriginInspectorValues) GetWafLatency5To10ms() int32` + +GetWafLatency5To10ms returns the WafLatency5To10ms field if non-nil, zero value otherwise. + +### GetWafLatency5To10msOk + +`func (o *OriginInspectorValues) GetWafLatency5To10msOk() (*int32, bool)` + +GetWafLatency5To10msOk returns a tuple with the WafLatency5To10ms field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWafLatency5To10ms + +`func (o *OriginInspectorValues) SetWafLatency5To10ms(v int32)` + +SetWafLatency5To10ms sets WafLatency5To10ms field to given value. + +### HasWafLatency5To10ms + +`func (o *OriginInspectorValues) HasWafLatency5To10ms() bool` + +HasWafLatency5To10ms returns a boolean if a field has been set. + +### GetWafLatency10To50ms + +`func (o *OriginInspectorValues) GetWafLatency10To50ms() int32` + +GetWafLatency10To50ms returns the WafLatency10To50ms field if non-nil, zero value otherwise. + +### GetWafLatency10To50msOk + +`func (o *OriginInspectorValues) GetWafLatency10To50msOk() (*int32, bool)` + +GetWafLatency10To50msOk returns a tuple with the WafLatency10To50ms field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWafLatency10To50ms + +`func (o *OriginInspectorValues) SetWafLatency10To50ms(v int32)` + +SetWafLatency10To50ms sets WafLatency10To50ms field to given value. + +### HasWafLatency10To50ms + +`func (o *OriginInspectorValues) HasWafLatency10To50ms() bool` + +HasWafLatency10To50ms returns a boolean if a field has been set. + +### GetWafLatency50To100ms + +`func (o *OriginInspectorValues) GetWafLatency50To100ms() int32` + +GetWafLatency50To100ms returns the WafLatency50To100ms field if non-nil, zero value otherwise. + +### GetWafLatency50To100msOk + +`func (o *OriginInspectorValues) GetWafLatency50To100msOk() (*int32, bool)` + +GetWafLatency50To100msOk returns a tuple with the WafLatency50To100ms field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWafLatency50To100ms + +`func (o *OriginInspectorValues) SetWafLatency50To100ms(v int32)` + +SetWafLatency50To100ms sets WafLatency50To100ms field to given value. + +### HasWafLatency50To100ms + +`func (o *OriginInspectorValues) HasWafLatency50To100ms() bool` + +HasWafLatency50To100ms returns a boolean if a field has been set. + +### GetWafLatency100To250ms + +`func (o *OriginInspectorValues) GetWafLatency100To250ms() int32` + +GetWafLatency100To250ms returns the WafLatency100To250ms field if non-nil, zero value otherwise. + +### GetWafLatency100To250msOk + +`func (o *OriginInspectorValues) GetWafLatency100To250msOk() (*int32, bool)` + +GetWafLatency100To250msOk returns a tuple with the WafLatency100To250ms field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWafLatency100To250ms + +`func (o *OriginInspectorValues) SetWafLatency100To250ms(v int32)` + +SetWafLatency100To250ms sets WafLatency100To250ms field to given value. + +### HasWafLatency100To250ms + +`func (o *OriginInspectorValues) HasWafLatency100To250ms() bool` + +HasWafLatency100To250ms returns a boolean if a field has been set. + +### GetWafLatency250To500ms + +`func (o *OriginInspectorValues) GetWafLatency250To500ms() int32` + +GetWafLatency250To500ms returns the WafLatency250To500ms field if non-nil, zero value otherwise. + +### GetWafLatency250To500msOk + +`func (o *OriginInspectorValues) GetWafLatency250To500msOk() (*int32, bool)` + +GetWafLatency250To500msOk returns a tuple with the WafLatency250To500ms field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWafLatency250To500ms + +`func (o *OriginInspectorValues) SetWafLatency250To500ms(v int32)` + +SetWafLatency250To500ms sets WafLatency250To500ms field to given value. + +### HasWafLatency250To500ms + +`func (o *OriginInspectorValues) HasWafLatency250To500ms() bool` + +HasWafLatency250To500ms returns a boolean if a field has been set. + +### GetWafLatency500To1000ms + +`func (o *OriginInspectorValues) GetWafLatency500To1000ms() int32` + +GetWafLatency500To1000ms returns the WafLatency500To1000ms field if non-nil, zero value otherwise. + +### GetWafLatency500To1000msOk + +`func (o *OriginInspectorValues) GetWafLatency500To1000msOk() (*int32, bool)` + +GetWafLatency500To1000msOk returns a tuple with the WafLatency500To1000ms field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWafLatency500To1000ms + +`func (o *OriginInspectorValues) SetWafLatency500To1000ms(v int32)` + +SetWafLatency500To1000ms sets WafLatency500To1000ms field to given value. + +### HasWafLatency500To1000ms + +`func (o *OriginInspectorValues) HasWafLatency500To1000ms() bool` + +HasWafLatency500To1000ms returns a boolean if a field has been set. + +### GetWafLatency1000To5000ms + +`func (o *OriginInspectorValues) GetWafLatency1000To5000ms() int32` + +GetWafLatency1000To5000ms returns the WafLatency1000To5000ms field if non-nil, zero value otherwise. + +### GetWafLatency1000To5000msOk + +`func (o *OriginInspectorValues) GetWafLatency1000To5000msOk() (*int32, bool)` + +GetWafLatency1000To5000msOk returns a tuple with the WafLatency1000To5000ms field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWafLatency1000To5000ms + +`func (o *OriginInspectorValues) SetWafLatency1000To5000ms(v int32)` + +SetWafLatency1000To5000ms sets WafLatency1000To5000ms field to given value. + +### HasWafLatency1000To5000ms + +`func (o *OriginInspectorValues) HasWafLatency1000To5000ms() bool` + +HasWafLatency1000To5000ms returns a boolean if a field has been set. + +### GetWafLatency5000To10000ms + +`func (o *OriginInspectorValues) GetWafLatency5000To10000ms() int32` + +GetWafLatency5000To10000ms returns the WafLatency5000To10000ms field if non-nil, zero value otherwise. + +### GetWafLatency5000To10000msOk + +`func (o *OriginInspectorValues) GetWafLatency5000To10000msOk() (*int32, bool)` + +GetWafLatency5000To10000msOk returns a tuple with the WafLatency5000To10000ms field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWafLatency5000To10000ms + +`func (o *OriginInspectorValues) SetWafLatency5000To10000ms(v int32)` + +SetWafLatency5000To10000ms sets WafLatency5000To10000ms field to given value. + +### HasWafLatency5000To10000ms + +`func (o *OriginInspectorValues) HasWafLatency5000To10000ms() bool` + +HasWafLatency5000To10000ms returns a boolean if a field has been set. + +### GetWafLatency10000To60000ms + +`func (o *OriginInspectorValues) GetWafLatency10000To60000ms() int32` + +GetWafLatency10000To60000ms returns the WafLatency10000To60000ms field if non-nil, zero value otherwise. + +### GetWafLatency10000To60000msOk + +`func (o *OriginInspectorValues) GetWafLatency10000To60000msOk() (*int32, bool)` + +GetWafLatency10000To60000msOk returns a tuple with the WafLatency10000To60000ms field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWafLatency10000To60000ms + +`func (o *OriginInspectorValues) SetWafLatency10000To60000ms(v int32)` + +SetWafLatency10000To60000ms sets WafLatency10000To60000ms field to given value. + +### HasWafLatency10000To60000ms + +`func (o *OriginInspectorValues) HasWafLatency10000To60000ms() bool` + +HasWafLatency10000To60000ms returns a boolean if a field has been set. + +### GetWafLatency60000ms + +`func (o *OriginInspectorValues) GetWafLatency60000ms() int32` + +GetWafLatency60000ms returns the WafLatency60000ms field if non-nil, zero value otherwise. + +### GetWafLatency60000msOk + +`func (o *OriginInspectorValues) GetWafLatency60000msOk() (*int32, bool)` + +GetWafLatency60000msOk returns a tuple with the WafLatency60000ms field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWafLatency60000ms + +`func (o *OriginInspectorValues) SetWafLatency60000ms(v int32)` + +SetWafLatency60000ms sets WafLatency60000ms field to given value. + +### HasWafLatency60000ms + +`func (o *OriginInspectorValues) HasWafLatency60000ms() bool` + +HasWafLatency60000ms returns a boolean if a field has been set. + +### GetComputeResponses + +`func (o *OriginInspectorValues) GetComputeResponses() int32` + +GetComputeResponses returns the ComputeResponses field if non-nil, zero value otherwise. + +### GetComputeResponsesOk + +`func (o *OriginInspectorValues) GetComputeResponsesOk() (*int32, bool)` + +GetComputeResponsesOk returns a tuple with the ComputeResponses field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComputeResponses + +`func (o *OriginInspectorValues) SetComputeResponses(v int32)` + +SetComputeResponses sets ComputeResponses field to given value. + +### HasComputeResponses + +`func (o *OriginInspectorValues) HasComputeResponses() bool` + +HasComputeResponses returns a boolean if a field has been set. + +### GetComputeRespHeaderBytes + +`func (o *OriginInspectorValues) GetComputeRespHeaderBytes() int32` + +GetComputeRespHeaderBytes returns the ComputeRespHeaderBytes field if non-nil, zero value otherwise. + +### GetComputeRespHeaderBytesOk + +`func (o *OriginInspectorValues) GetComputeRespHeaderBytesOk() (*int32, bool)` + +GetComputeRespHeaderBytesOk returns a tuple with the ComputeRespHeaderBytes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComputeRespHeaderBytes + +`func (o *OriginInspectorValues) SetComputeRespHeaderBytes(v int32)` + +SetComputeRespHeaderBytes sets ComputeRespHeaderBytes field to given value. + +### HasComputeRespHeaderBytes + +`func (o *OriginInspectorValues) HasComputeRespHeaderBytes() bool` + +HasComputeRespHeaderBytes returns a boolean if a field has been set. + +### GetComputeRespBodyBytes + +`func (o *OriginInspectorValues) GetComputeRespBodyBytes() int32` + +GetComputeRespBodyBytes returns the ComputeRespBodyBytes field if non-nil, zero value otherwise. + +### GetComputeRespBodyBytesOk + +`func (o *OriginInspectorValues) GetComputeRespBodyBytesOk() (*int32, bool)` + +GetComputeRespBodyBytesOk returns a tuple with the ComputeRespBodyBytes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComputeRespBodyBytes + +`func (o *OriginInspectorValues) SetComputeRespBodyBytes(v int32)` + +SetComputeRespBodyBytes sets ComputeRespBodyBytes field to given value. + +### HasComputeRespBodyBytes + +`func (o *OriginInspectorValues) HasComputeRespBodyBytes() bool` + +HasComputeRespBodyBytes returns a boolean if a field has been set. + +### GetComputeStatus1xx + +`func (o *OriginInspectorValues) GetComputeStatus1xx() int32` + +GetComputeStatus1xx returns the ComputeStatus1xx field if non-nil, zero value otherwise. + +### GetComputeStatus1xxOk + +`func (o *OriginInspectorValues) GetComputeStatus1xxOk() (*int32, bool)` + +GetComputeStatus1xxOk returns a tuple with the ComputeStatus1xx field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComputeStatus1xx + +`func (o *OriginInspectorValues) SetComputeStatus1xx(v int32)` + +SetComputeStatus1xx sets ComputeStatus1xx field to given value. + +### HasComputeStatus1xx + +`func (o *OriginInspectorValues) HasComputeStatus1xx() bool` + +HasComputeStatus1xx returns a boolean if a field has been set. + +### GetComputeStatus2xx + +`func (o *OriginInspectorValues) GetComputeStatus2xx() int32` + +GetComputeStatus2xx returns the ComputeStatus2xx field if non-nil, zero value otherwise. + +### GetComputeStatus2xxOk + +`func (o *OriginInspectorValues) GetComputeStatus2xxOk() (*int32, bool)` + +GetComputeStatus2xxOk returns a tuple with the ComputeStatus2xx field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComputeStatus2xx + +`func (o *OriginInspectorValues) SetComputeStatus2xx(v int32)` + +SetComputeStatus2xx sets ComputeStatus2xx field to given value. + +### HasComputeStatus2xx + +`func (o *OriginInspectorValues) HasComputeStatus2xx() bool` + +HasComputeStatus2xx returns a boolean if a field has been set. + +### GetComputeStatus3xx + +`func (o *OriginInspectorValues) GetComputeStatus3xx() int32` + +GetComputeStatus3xx returns the ComputeStatus3xx field if non-nil, zero value otherwise. + +### GetComputeStatus3xxOk + +`func (o *OriginInspectorValues) GetComputeStatus3xxOk() (*int32, bool)` + +GetComputeStatus3xxOk returns a tuple with the ComputeStatus3xx field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComputeStatus3xx + +`func (o *OriginInspectorValues) SetComputeStatus3xx(v int32)` + +SetComputeStatus3xx sets ComputeStatus3xx field to given value. + +### HasComputeStatus3xx + +`func (o *OriginInspectorValues) HasComputeStatus3xx() bool` + +HasComputeStatus3xx returns a boolean if a field has been set. + +### GetComputeStatus4xx + +`func (o *OriginInspectorValues) GetComputeStatus4xx() int32` + +GetComputeStatus4xx returns the ComputeStatus4xx field if non-nil, zero value otherwise. + +### GetComputeStatus4xxOk + +`func (o *OriginInspectorValues) GetComputeStatus4xxOk() (*int32, bool)` + +GetComputeStatus4xxOk returns a tuple with the ComputeStatus4xx field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComputeStatus4xx + +`func (o *OriginInspectorValues) SetComputeStatus4xx(v int32)` + +SetComputeStatus4xx sets ComputeStatus4xx field to given value. + +### HasComputeStatus4xx + +`func (o *OriginInspectorValues) HasComputeStatus4xx() bool` + +HasComputeStatus4xx returns a boolean if a field has been set. + +### GetComputeStatus5xx + +`func (o *OriginInspectorValues) GetComputeStatus5xx() int32` + +GetComputeStatus5xx returns the ComputeStatus5xx field if non-nil, zero value otherwise. + +### GetComputeStatus5xxOk + +`func (o *OriginInspectorValues) GetComputeStatus5xxOk() (*int32, bool)` + +GetComputeStatus5xxOk returns a tuple with the ComputeStatus5xx field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComputeStatus5xx + +`func (o *OriginInspectorValues) SetComputeStatus5xx(v int32)` + +SetComputeStatus5xx sets ComputeStatus5xx field to given value. + +### HasComputeStatus5xx + +`func (o *OriginInspectorValues) HasComputeStatus5xx() bool` + +HasComputeStatus5xx returns a boolean if a field has been set. + +### GetComputeStatus200 + +`func (o *OriginInspectorValues) GetComputeStatus200() int32` + +GetComputeStatus200 returns the ComputeStatus200 field if non-nil, zero value otherwise. + +### GetComputeStatus200Ok + +`func (o *OriginInspectorValues) GetComputeStatus200Ok() (*int32, bool)` + +GetComputeStatus200Ok returns a tuple with the ComputeStatus200 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComputeStatus200 + +`func (o *OriginInspectorValues) SetComputeStatus200(v int32)` + +SetComputeStatus200 sets ComputeStatus200 field to given value. + +### HasComputeStatus200 + +`func (o *OriginInspectorValues) HasComputeStatus200() bool` + +HasComputeStatus200 returns a boolean if a field has been set. + +### GetComputeStatus204 + +`func (o *OriginInspectorValues) GetComputeStatus204() int32` + +GetComputeStatus204 returns the ComputeStatus204 field if non-nil, zero value otherwise. + +### GetComputeStatus204Ok + +`func (o *OriginInspectorValues) GetComputeStatus204Ok() (*int32, bool)` + +GetComputeStatus204Ok returns a tuple with the ComputeStatus204 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComputeStatus204 + +`func (o *OriginInspectorValues) SetComputeStatus204(v int32)` + +SetComputeStatus204 sets ComputeStatus204 field to given value. + +### HasComputeStatus204 + +`func (o *OriginInspectorValues) HasComputeStatus204() bool` + +HasComputeStatus204 returns a boolean if a field has been set. + +### GetComputeStatus206 + +`func (o *OriginInspectorValues) GetComputeStatus206() int32` + +GetComputeStatus206 returns the ComputeStatus206 field if non-nil, zero value otherwise. + +### GetComputeStatus206Ok + +`func (o *OriginInspectorValues) GetComputeStatus206Ok() (*int32, bool)` + +GetComputeStatus206Ok returns a tuple with the ComputeStatus206 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComputeStatus206 + +`func (o *OriginInspectorValues) SetComputeStatus206(v int32)` + +SetComputeStatus206 sets ComputeStatus206 field to given value. + +### HasComputeStatus206 + +`func (o *OriginInspectorValues) HasComputeStatus206() bool` + +HasComputeStatus206 returns a boolean if a field has been set. + +### GetComputeStatus301 + +`func (o *OriginInspectorValues) GetComputeStatus301() int32` + +GetComputeStatus301 returns the ComputeStatus301 field if non-nil, zero value otherwise. + +### GetComputeStatus301Ok + +`func (o *OriginInspectorValues) GetComputeStatus301Ok() (*int32, bool)` + +GetComputeStatus301Ok returns a tuple with the ComputeStatus301 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComputeStatus301 + +`func (o *OriginInspectorValues) SetComputeStatus301(v int32)` + +SetComputeStatus301 sets ComputeStatus301 field to given value. + +### HasComputeStatus301 + +`func (o *OriginInspectorValues) HasComputeStatus301() bool` + +HasComputeStatus301 returns a boolean if a field has been set. + +### GetComputeStatus302 + +`func (o *OriginInspectorValues) GetComputeStatus302() int32` + +GetComputeStatus302 returns the ComputeStatus302 field if non-nil, zero value otherwise. + +### GetComputeStatus302Ok + +`func (o *OriginInspectorValues) GetComputeStatus302Ok() (*int32, bool)` + +GetComputeStatus302Ok returns a tuple with the ComputeStatus302 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComputeStatus302 + +`func (o *OriginInspectorValues) SetComputeStatus302(v int32)` + +SetComputeStatus302 sets ComputeStatus302 field to given value. + +### HasComputeStatus302 + +`func (o *OriginInspectorValues) HasComputeStatus302() bool` + +HasComputeStatus302 returns a boolean if a field has been set. + +### GetComputeStatus304 + +`func (o *OriginInspectorValues) GetComputeStatus304() int32` + +GetComputeStatus304 returns the ComputeStatus304 field if non-nil, zero value otherwise. + +### GetComputeStatus304Ok + +`func (o *OriginInspectorValues) GetComputeStatus304Ok() (*int32, bool)` + +GetComputeStatus304Ok returns a tuple with the ComputeStatus304 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComputeStatus304 + +`func (o *OriginInspectorValues) SetComputeStatus304(v int32)` + +SetComputeStatus304 sets ComputeStatus304 field to given value. + +### HasComputeStatus304 + +`func (o *OriginInspectorValues) HasComputeStatus304() bool` + +HasComputeStatus304 returns a boolean if a field has been set. + +### GetComputeStatus400 + +`func (o *OriginInspectorValues) GetComputeStatus400() int32` + +GetComputeStatus400 returns the ComputeStatus400 field if non-nil, zero value otherwise. + +### GetComputeStatus400Ok + +`func (o *OriginInspectorValues) GetComputeStatus400Ok() (*int32, bool)` + +GetComputeStatus400Ok returns a tuple with the ComputeStatus400 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComputeStatus400 + +`func (o *OriginInspectorValues) SetComputeStatus400(v int32)` + +SetComputeStatus400 sets ComputeStatus400 field to given value. + +### HasComputeStatus400 + +`func (o *OriginInspectorValues) HasComputeStatus400() bool` + +HasComputeStatus400 returns a boolean if a field has been set. + +### GetComputeStatus401 + +`func (o *OriginInspectorValues) GetComputeStatus401() int32` + +GetComputeStatus401 returns the ComputeStatus401 field if non-nil, zero value otherwise. + +### GetComputeStatus401Ok + +`func (o *OriginInspectorValues) GetComputeStatus401Ok() (*int32, bool)` + +GetComputeStatus401Ok returns a tuple with the ComputeStatus401 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComputeStatus401 + +`func (o *OriginInspectorValues) SetComputeStatus401(v int32)` + +SetComputeStatus401 sets ComputeStatus401 field to given value. + +### HasComputeStatus401 + +`func (o *OriginInspectorValues) HasComputeStatus401() bool` + +HasComputeStatus401 returns a boolean if a field has been set. + +### GetComputeStatus403 + +`func (o *OriginInspectorValues) GetComputeStatus403() int32` + +GetComputeStatus403 returns the ComputeStatus403 field if non-nil, zero value otherwise. + +### GetComputeStatus403Ok + +`func (o *OriginInspectorValues) GetComputeStatus403Ok() (*int32, bool)` + +GetComputeStatus403Ok returns a tuple with the ComputeStatus403 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComputeStatus403 + +`func (o *OriginInspectorValues) SetComputeStatus403(v int32)` + +SetComputeStatus403 sets ComputeStatus403 field to given value. + +### HasComputeStatus403 + +`func (o *OriginInspectorValues) HasComputeStatus403() bool` + +HasComputeStatus403 returns a boolean if a field has been set. + +### GetComputeStatus404 + +`func (o *OriginInspectorValues) GetComputeStatus404() int32` + +GetComputeStatus404 returns the ComputeStatus404 field if non-nil, zero value otherwise. + +### GetComputeStatus404Ok + +`func (o *OriginInspectorValues) GetComputeStatus404Ok() (*int32, bool)` + +GetComputeStatus404Ok returns a tuple with the ComputeStatus404 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComputeStatus404 + +`func (o *OriginInspectorValues) SetComputeStatus404(v int32)` + +SetComputeStatus404 sets ComputeStatus404 field to given value. + +### HasComputeStatus404 + +`func (o *OriginInspectorValues) HasComputeStatus404() bool` + +HasComputeStatus404 returns a boolean if a field has been set. + +### GetComputeStatus416 + +`func (o *OriginInspectorValues) GetComputeStatus416() int32` + +GetComputeStatus416 returns the ComputeStatus416 field if non-nil, zero value otherwise. + +### GetComputeStatus416Ok + +`func (o *OriginInspectorValues) GetComputeStatus416Ok() (*int32, bool)` + +GetComputeStatus416Ok returns a tuple with the ComputeStatus416 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComputeStatus416 + +`func (o *OriginInspectorValues) SetComputeStatus416(v int32)` + +SetComputeStatus416 sets ComputeStatus416 field to given value. + +### HasComputeStatus416 + +`func (o *OriginInspectorValues) HasComputeStatus416() bool` + +HasComputeStatus416 returns a boolean if a field has been set. + +### GetComputeStatus429 + +`func (o *OriginInspectorValues) GetComputeStatus429() int32` + +GetComputeStatus429 returns the ComputeStatus429 field if non-nil, zero value otherwise. + +### GetComputeStatus429Ok + +`func (o *OriginInspectorValues) GetComputeStatus429Ok() (*int32, bool)` + +GetComputeStatus429Ok returns a tuple with the ComputeStatus429 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComputeStatus429 + +`func (o *OriginInspectorValues) SetComputeStatus429(v int32)` + +SetComputeStatus429 sets ComputeStatus429 field to given value. + +### HasComputeStatus429 + +`func (o *OriginInspectorValues) HasComputeStatus429() bool` + +HasComputeStatus429 returns a boolean if a field has been set. + +### GetComputeStatus500 + +`func (o *OriginInspectorValues) GetComputeStatus500() int32` + +GetComputeStatus500 returns the ComputeStatus500 field if non-nil, zero value otherwise. + +### GetComputeStatus500Ok + +`func (o *OriginInspectorValues) GetComputeStatus500Ok() (*int32, bool)` + +GetComputeStatus500Ok returns a tuple with the ComputeStatus500 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComputeStatus500 + +`func (o *OriginInspectorValues) SetComputeStatus500(v int32)` + +SetComputeStatus500 sets ComputeStatus500 field to given value. + +### HasComputeStatus500 + +`func (o *OriginInspectorValues) HasComputeStatus500() bool` + +HasComputeStatus500 returns a boolean if a field has been set. + +### GetComputeStatus501 + +`func (o *OriginInspectorValues) GetComputeStatus501() int32` + +GetComputeStatus501 returns the ComputeStatus501 field if non-nil, zero value otherwise. + +### GetComputeStatus501Ok + +`func (o *OriginInspectorValues) GetComputeStatus501Ok() (*int32, bool)` + +GetComputeStatus501Ok returns a tuple with the ComputeStatus501 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComputeStatus501 + +`func (o *OriginInspectorValues) SetComputeStatus501(v int32)` + +SetComputeStatus501 sets ComputeStatus501 field to given value. + +### HasComputeStatus501 + +`func (o *OriginInspectorValues) HasComputeStatus501() bool` + +HasComputeStatus501 returns a boolean if a field has been set. + +### GetComputeStatus502 + +`func (o *OriginInspectorValues) GetComputeStatus502() int32` + +GetComputeStatus502 returns the ComputeStatus502 field if non-nil, zero value otherwise. + +### GetComputeStatus502Ok + +`func (o *OriginInspectorValues) GetComputeStatus502Ok() (*int32, bool)` + +GetComputeStatus502Ok returns a tuple with the ComputeStatus502 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComputeStatus502 + +`func (o *OriginInspectorValues) SetComputeStatus502(v int32)` + +SetComputeStatus502 sets ComputeStatus502 field to given value. + +### HasComputeStatus502 + +`func (o *OriginInspectorValues) HasComputeStatus502() bool` + +HasComputeStatus502 returns a boolean if a field has been set. + +### GetComputeStatus503 + +`func (o *OriginInspectorValues) GetComputeStatus503() int32` + +GetComputeStatus503 returns the ComputeStatus503 field if non-nil, zero value otherwise. + +### GetComputeStatus503Ok + +`func (o *OriginInspectorValues) GetComputeStatus503Ok() (*int32, bool)` + +GetComputeStatus503Ok returns a tuple with the ComputeStatus503 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComputeStatus503 + +`func (o *OriginInspectorValues) SetComputeStatus503(v int32)` + +SetComputeStatus503 sets ComputeStatus503 field to given value. + +### HasComputeStatus503 + +`func (o *OriginInspectorValues) HasComputeStatus503() bool` + +HasComputeStatus503 returns a boolean if a field has been set. + +### GetComputeStatus504 + +`func (o *OriginInspectorValues) GetComputeStatus504() int32` + +GetComputeStatus504 returns the ComputeStatus504 field if non-nil, zero value otherwise. + +### GetComputeStatus504Ok + +`func (o *OriginInspectorValues) GetComputeStatus504Ok() (*int32, bool)` + +GetComputeStatus504Ok returns a tuple with the ComputeStatus504 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComputeStatus504 + +`func (o *OriginInspectorValues) SetComputeStatus504(v int32)` + +SetComputeStatus504 sets ComputeStatus504 field to given value. + +### HasComputeStatus504 + +`func (o *OriginInspectorValues) HasComputeStatus504() bool` + +HasComputeStatus504 returns a boolean if a field has been set. + +### GetComputeStatus505 + +`func (o *OriginInspectorValues) GetComputeStatus505() int32` + +GetComputeStatus505 returns the ComputeStatus505 field if non-nil, zero value otherwise. + +### GetComputeStatus505Ok + +`func (o *OriginInspectorValues) GetComputeStatus505Ok() (*int32, bool)` + +GetComputeStatus505Ok returns a tuple with the ComputeStatus505 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComputeStatus505 + +`func (o *OriginInspectorValues) SetComputeStatus505(v int32)` + +SetComputeStatus505 sets ComputeStatus505 field to given value. + +### HasComputeStatus505 + +`func (o *OriginInspectorValues) HasComputeStatus505() bool` + +HasComputeStatus505 returns a boolean if a field has been set. + +### GetComputeLatency0To1ms + +`func (o *OriginInspectorValues) GetComputeLatency0To1ms() int32` + +GetComputeLatency0To1ms returns the ComputeLatency0To1ms field if non-nil, zero value otherwise. + +### GetComputeLatency0To1msOk + +`func (o *OriginInspectorValues) GetComputeLatency0To1msOk() (*int32, bool)` + +GetComputeLatency0To1msOk returns a tuple with the ComputeLatency0To1ms field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComputeLatency0To1ms + +`func (o *OriginInspectorValues) SetComputeLatency0To1ms(v int32)` + +SetComputeLatency0To1ms sets ComputeLatency0To1ms field to given value. + +### HasComputeLatency0To1ms + +`func (o *OriginInspectorValues) HasComputeLatency0To1ms() bool` + +HasComputeLatency0To1ms returns a boolean if a field has been set. + +### GetComputeLatency1To5ms + +`func (o *OriginInspectorValues) GetComputeLatency1To5ms() int32` + +GetComputeLatency1To5ms returns the ComputeLatency1To5ms field if non-nil, zero value otherwise. + +### GetComputeLatency1To5msOk + +`func (o *OriginInspectorValues) GetComputeLatency1To5msOk() (*int32, bool)` + +GetComputeLatency1To5msOk returns a tuple with the ComputeLatency1To5ms field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComputeLatency1To5ms + +`func (o *OriginInspectorValues) SetComputeLatency1To5ms(v int32)` + +SetComputeLatency1To5ms sets ComputeLatency1To5ms field to given value. + +### HasComputeLatency1To5ms + +`func (o *OriginInspectorValues) HasComputeLatency1To5ms() bool` + +HasComputeLatency1To5ms returns a boolean if a field has been set. + +### GetComputeLatency5To10ms + +`func (o *OriginInspectorValues) GetComputeLatency5To10ms() int32` + +GetComputeLatency5To10ms returns the ComputeLatency5To10ms field if non-nil, zero value otherwise. + +### GetComputeLatency5To10msOk + +`func (o *OriginInspectorValues) GetComputeLatency5To10msOk() (*int32, bool)` + +GetComputeLatency5To10msOk returns a tuple with the ComputeLatency5To10ms field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComputeLatency5To10ms + +`func (o *OriginInspectorValues) SetComputeLatency5To10ms(v int32)` + +SetComputeLatency5To10ms sets ComputeLatency5To10ms field to given value. + +### HasComputeLatency5To10ms + +`func (o *OriginInspectorValues) HasComputeLatency5To10ms() bool` + +HasComputeLatency5To10ms returns a boolean if a field has been set. + +### GetComputeLatency10To50ms + +`func (o *OriginInspectorValues) GetComputeLatency10To50ms() int32` + +GetComputeLatency10To50ms returns the ComputeLatency10To50ms field if non-nil, zero value otherwise. + +### GetComputeLatency10To50msOk + +`func (o *OriginInspectorValues) GetComputeLatency10To50msOk() (*int32, bool)` + +GetComputeLatency10To50msOk returns a tuple with the ComputeLatency10To50ms field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComputeLatency10To50ms + +`func (o *OriginInspectorValues) SetComputeLatency10To50ms(v int32)` + +SetComputeLatency10To50ms sets ComputeLatency10To50ms field to given value. + +### HasComputeLatency10To50ms + +`func (o *OriginInspectorValues) HasComputeLatency10To50ms() bool` + +HasComputeLatency10To50ms returns a boolean if a field has been set. + +### GetComputeLatency50To100ms + +`func (o *OriginInspectorValues) GetComputeLatency50To100ms() int32` + +GetComputeLatency50To100ms returns the ComputeLatency50To100ms field if non-nil, zero value otherwise. + +### GetComputeLatency50To100msOk + +`func (o *OriginInspectorValues) GetComputeLatency50To100msOk() (*int32, bool)` + +GetComputeLatency50To100msOk returns a tuple with the ComputeLatency50To100ms field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComputeLatency50To100ms + +`func (o *OriginInspectorValues) SetComputeLatency50To100ms(v int32)` + +SetComputeLatency50To100ms sets ComputeLatency50To100ms field to given value. + +### HasComputeLatency50To100ms + +`func (o *OriginInspectorValues) HasComputeLatency50To100ms() bool` + +HasComputeLatency50To100ms returns a boolean if a field has been set. + +### GetComputeLatency100To250ms + +`func (o *OriginInspectorValues) GetComputeLatency100To250ms() int32` + +GetComputeLatency100To250ms returns the ComputeLatency100To250ms field if non-nil, zero value otherwise. + +### GetComputeLatency100To250msOk + +`func (o *OriginInspectorValues) GetComputeLatency100To250msOk() (*int32, bool)` + +GetComputeLatency100To250msOk returns a tuple with the ComputeLatency100To250ms field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComputeLatency100To250ms + +`func (o *OriginInspectorValues) SetComputeLatency100To250ms(v int32)` + +SetComputeLatency100To250ms sets ComputeLatency100To250ms field to given value. + +### HasComputeLatency100To250ms + +`func (o *OriginInspectorValues) HasComputeLatency100To250ms() bool` + +HasComputeLatency100To250ms returns a boolean if a field has been set. + +### GetComputeLatency250To500ms + +`func (o *OriginInspectorValues) GetComputeLatency250To500ms() int32` + +GetComputeLatency250To500ms returns the ComputeLatency250To500ms field if non-nil, zero value otherwise. + +### GetComputeLatency250To500msOk + +`func (o *OriginInspectorValues) GetComputeLatency250To500msOk() (*int32, bool)` + +GetComputeLatency250To500msOk returns a tuple with the ComputeLatency250To500ms field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComputeLatency250To500ms + +`func (o *OriginInspectorValues) SetComputeLatency250To500ms(v int32)` + +SetComputeLatency250To500ms sets ComputeLatency250To500ms field to given value. + +### HasComputeLatency250To500ms + +`func (o *OriginInspectorValues) HasComputeLatency250To500ms() bool` + +HasComputeLatency250To500ms returns a boolean if a field has been set. + +### GetComputeLatency500To1000ms + +`func (o *OriginInspectorValues) GetComputeLatency500To1000ms() int32` + +GetComputeLatency500To1000ms returns the ComputeLatency500To1000ms field if non-nil, zero value otherwise. + +### GetComputeLatency500To1000msOk + +`func (o *OriginInspectorValues) GetComputeLatency500To1000msOk() (*int32, bool)` + +GetComputeLatency500To1000msOk returns a tuple with the ComputeLatency500To1000ms field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComputeLatency500To1000ms + +`func (o *OriginInspectorValues) SetComputeLatency500To1000ms(v int32)` + +SetComputeLatency500To1000ms sets ComputeLatency500To1000ms field to given value. + +### HasComputeLatency500To1000ms + +`func (o *OriginInspectorValues) HasComputeLatency500To1000ms() bool` + +HasComputeLatency500To1000ms returns a boolean if a field has been set. + +### GetComputeLatency1000To5000ms + +`func (o *OriginInspectorValues) GetComputeLatency1000To5000ms() int32` + +GetComputeLatency1000To5000ms returns the ComputeLatency1000To5000ms field if non-nil, zero value otherwise. + +### GetComputeLatency1000To5000msOk + +`func (o *OriginInspectorValues) GetComputeLatency1000To5000msOk() (*int32, bool)` + +GetComputeLatency1000To5000msOk returns a tuple with the ComputeLatency1000To5000ms field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComputeLatency1000To5000ms + +`func (o *OriginInspectorValues) SetComputeLatency1000To5000ms(v int32)` + +SetComputeLatency1000To5000ms sets ComputeLatency1000To5000ms field to given value. + +### HasComputeLatency1000To5000ms + +`func (o *OriginInspectorValues) HasComputeLatency1000To5000ms() bool` + +HasComputeLatency1000To5000ms returns a boolean if a field has been set. + +### GetComputeLatency5000To10000ms + +`func (o *OriginInspectorValues) GetComputeLatency5000To10000ms() int32` + +GetComputeLatency5000To10000ms returns the ComputeLatency5000To10000ms field if non-nil, zero value otherwise. + +### GetComputeLatency5000To10000msOk + +`func (o *OriginInspectorValues) GetComputeLatency5000To10000msOk() (*int32, bool)` + +GetComputeLatency5000To10000msOk returns a tuple with the ComputeLatency5000To10000ms field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComputeLatency5000To10000ms + +`func (o *OriginInspectorValues) SetComputeLatency5000To10000ms(v int32)` + +SetComputeLatency5000To10000ms sets ComputeLatency5000To10000ms field to given value. + +### HasComputeLatency5000To10000ms + +`func (o *OriginInspectorValues) HasComputeLatency5000To10000ms() bool` + +HasComputeLatency5000To10000ms returns a boolean if a field has been set. + +### GetComputeLatency10000To60000ms + +`func (o *OriginInspectorValues) GetComputeLatency10000To60000ms() int32` + +GetComputeLatency10000To60000ms returns the ComputeLatency10000To60000ms field if non-nil, zero value otherwise. + +### GetComputeLatency10000To60000msOk + +`func (o *OriginInspectorValues) GetComputeLatency10000To60000msOk() (*int32, bool)` + +GetComputeLatency10000To60000msOk returns a tuple with the ComputeLatency10000To60000ms field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComputeLatency10000To60000ms + +`func (o *OriginInspectorValues) SetComputeLatency10000To60000ms(v int32)` + +SetComputeLatency10000To60000ms sets ComputeLatency10000To60000ms field to given value. + +### HasComputeLatency10000To60000ms + +`func (o *OriginInspectorValues) HasComputeLatency10000To60000ms() bool` + +HasComputeLatency10000To60000ms returns a boolean if a field has been set. + +### GetComputeLatency60000ms + +`func (o *OriginInspectorValues) GetComputeLatency60000ms() int32` + +GetComputeLatency60000ms returns the ComputeLatency60000ms field if non-nil, zero value otherwise. + +### GetComputeLatency60000msOk + +`func (o *OriginInspectorValues) GetComputeLatency60000msOk() (*int32, bool)` + +GetComputeLatency60000msOk returns a tuple with the ComputeLatency60000ms field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComputeLatency60000ms + +`func (o *OriginInspectorValues) SetComputeLatency60000ms(v int32)` + +SetComputeLatency60000ms sets ComputeLatency60000ms field to given value. + +### HasComputeLatency60000ms + +`func (o *OriginInspectorValues) HasComputeLatency60000ms() bool` + +HasComputeLatency60000ms returns a boolean if a field has been set. + +### GetAllResponses + +`func (o *OriginInspectorValues) GetAllResponses() int32` + +GetAllResponses returns the AllResponses field if non-nil, zero value otherwise. + +### GetAllResponsesOk + +`func (o *OriginInspectorValues) GetAllResponsesOk() (*int32, bool)` + +GetAllResponsesOk returns a tuple with the AllResponses field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAllResponses + +`func (o *OriginInspectorValues) SetAllResponses(v int32)` + +SetAllResponses sets AllResponses field to given value. + +### HasAllResponses + +`func (o *OriginInspectorValues) HasAllResponses() bool` + +HasAllResponses returns a boolean if a field has been set. + +### GetAllRespHeaderBytes + +`func (o *OriginInspectorValues) GetAllRespHeaderBytes() int32` + +GetAllRespHeaderBytes returns the AllRespHeaderBytes field if non-nil, zero value otherwise. + +### GetAllRespHeaderBytesOk + +`func (o *OriginInspectorValues) GetAllRespHeaderBytesOk() (*int32, bool)` + +GetAllRespHeaderBytesOk returns a tuple with the AllRespHeaderBytes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAllRespHeaderBytes + +`func (o *OriginInspectorValues) SetAllRespHeaderBytes(v int32)` + +SetAllRespHeaderBytes sets AllRespHeaderBytes field to given value. + +### HasAllRespHeaderBytes + +`func (o *OriginInspectorValues) HasAllRespHeaderBytes() bool` + +HasAllRespHeaderBytes returns a boolean if a field has been set. + +### GetAllRespBodyBytes + +`func (o *OriginInspectorValues) GetAllRespBodyBytes() int32` + +GetAllRespBodyBytes returns the AllRespBodyBytes field if non-nil, zero value otherwise. + +### GetAllRespBodyBytesOk + +`func (o *OriginInspectorValues) GetAllRespBodyBytesOk() (*int32, bool)` + +GetAllRespBodyBytesOk returns a tuple with the AllRespBodyBytes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAllRespBodyBytes + +`func (o *OriginInspectorValues) SetAllRespBodyBytes(v int32)` + +SetAllRespBodyBytes sets AllRespBodyBytes field to given value. + +### HasAllRespBodyBytes + +`func (o *OriginInspectorValues) HasAllRespBodyBytes() bool` + +HasAllRespBodyBytes returns a boolean if a field has been set. + +### GetAllStatus1xx + +`func (o *OriginInspectorValues) GetAllStatus1xx() int32` + +GetAllStatus1xx returns the AllStatus1xx field if non-nil, zero value otherwise. + +### GetAllStatus1xxOk + +`func (o *OriginInspectorValues) GetAllStatus1xxOk() (*int32, bool)` + +GetAllStatus1xxOk returns a tuple with the AllStatus1xx field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAllStatus1xx + +`func (o *OriginInspectorValues) SetAllStatus1xx(v int32)` + +SetAllStatus1xx sets AllStatus1xx field to given value. + +### HasAllStatus1xx + +`func (o *OriginInspectorValues) HasAllStatus1xx() bool` + +HasAllStatus1xx returns a boolean if a field has been set. + +### GetAllStatus2xx + +`func (o *OriginInspectorValues) GetAllStatus2xx() int32` + +GetAllStatus2xx returns the AllStatus2xx field if non-nil, zero value otherwise. + +### GetAllStatus2xxOk + +`func (o *OriginInspectorValues) GetAllStatus2xxOk() (*int32, bool)` + +GetAllStatus2xxOk returns a tuple with the AllStatus2xx field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAllStatus2xx + +`func (o *OriginInspectorValues) SetAllStatus2xx(v int32)` + +SetAllStatus2xx sets AllStatus2xx field to given value. + +### HasAllStatus2xx + +`func (o *OriginInspectorValues) HasAllStatus2xx() bool` + +HasAllStatus2xx returns a boolean if a field has been set. + +### GetAllStatus3xx + +`func (o *OriginInspectorValues) GetAllStatus3xx() int32` + +GetAllStatus3xx returns the AllStatus3xx field if non-nil, zero value otherwise. + +### GetAllStatus3xxOk + +`func (o *OriginInspectorValues) GetAllStatus3xxOk() (*int32, bool)` + +GetAllStatus3xxOk returns a tuple with the AllStatus3xx field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAllStatus3xx + +`func (o *OriginInspectorValues) SetAllStatus3xx(v int32)` + +SetAllStatus3xx sets AllStatus3xx field to given value. + +### HasAllStatus3xx + +`func (o *OriginInspectorValues) HasAllStatus3xx() bool` + +HasAllStatus3xx returns a boolean if a field has been set. + +### GetAllStatus4xx + +`func (o *OriginInspectorValues) GetAllStatus4xx() int32` + +GetAllStatus4xx returns the AllStatus4xx field if non-nil, zero value otherwise. + +### GetAllStatus4xxOk + +`func (o *OriginInspectorValues) GetAllStatus4xxOk() (*int32, bool)` + +GetAllStatus4xxOk returns a tuple with the AllStatus4xx field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAllStatus4xx + +`func (o *OriginInspectorValues) SetAllStatus4xx(v int32)` + +SetAllStatus4xx sets AllStatus4xx field to given value. + +### HasAllStatus4xx + +`func (o *OriginInspectorValues) HasAllStatus4xx() bool` + +HasAllStatus4xx returns a boolean if a field has been set. + +### GetAllStatus5xx + +`func (o *OriginInspectorValues) GetAllStatus5xx() int32` + +GetAllStatus5xx returns the AllStatus5xx field if non-nil, zero value otherwise. + +### GetAllStatus5xxOk + +`func (o *OriginInspectorValues) GetAllStatus5xxOk() (*int32, bool)` + +GetAllStatus5xxOk returns a tuple with the AllStatus5xx field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAllStatus5xx + +`func (o *OriginInspectorValues) SetAllStatus5xx(v int32)` + +SetAllStatus5xx sets AllStatus5xx field to given value. + +### HasAllStatus5xx + +`func (o *OriginInspectorValues) HasAllStatus5xx() bool` + +HasAllStatus5xx returns a boolean if a field has been set. + +### GetAllStatus200 + +`func (o *OriginInspectorValues) GetAllStatus200() int32` + +GetAllStatus200 returns the AllStatus200 field if non-nil, zero value otherwise. + +### GetAllStatus200Ok + +`func (o *OriginInspectorValues) GetAllStatus200Ok() (*int32, bool)` + +GetAllStatus200Ok returns a tuple with the AllStatus200 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAllStatus200 + +`func (o *OriginInspectorValues) SetAllStatus200(v int32)` + +SetAllStatus200 sets AllStatus200 field to given value. + +### HasAllStatus200 + +`func (o *OriginInspectorValues) HasAllStatus200() bool` + +HasAllStatus200 returns a boolean if a field has been set. + +### GetAllStatus204 + +`func (o *OriginInspectorValues) GetAllStatus204() int32` + +GetAllStatus204 returns the AllStatus204 field if non-nil, zero value otherwise. + +### GetAllStatus204Ok + +`func (o *OriginInspectorValues) GetAllStatus204Ok() (*int32, bool)` + +GetAllStatus204Ok returns a tuple with the AllStatus204 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAllStatus204 + +`func (o *OriginInspectorValues) SetAllStatus204(v int32)` + +SetAllStatus204 sets AllStatus204 field to given value. + +### HasAllStatus204 + +`func (o *OriginInspectorValues) HasAllStatus204() bool` + +HasAllStatus204 returns a boolean if a field has been set. + +### GetAllStatus206 + +`func (o *OriginInspectorValues) GetAllStatus206() int32` + +GetAllStatus206 returns the AllStatus206 field if non-nil, zero value otherwise. + +### GetAllStatus206Ok + +`func (o *OriginInspectorValues) GetAllStatus206Ok() (*int32, bool)` + +GetAllStatus206Ok returns a tuple with the AllStatus206 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAllStatus206 + +`func (o *OriginInspectorValues) SetAllStatus206(v int32)` + +SetAllStatus206 sets AllStatus206 field to given value. + +### HasAllStatus206 + +`func (o *OriginInspectorValues) HasAllStatus206() bool` + +HasAllStatus206 returns a boolean if a field has been set. + +### GetAllStatus301 + +`func (o *OriginInspectorValues) GetAllStatus301() int32` + +GetAllStatus301 returns the AllStatus301 field if non-nil, zero value otherwise. + +### GetAllStatus301Ok + +`func (o *OriginInspectorValues) GetAllStatus301Ok() (*int32, bool)` + +GetAllStatus301Ok returns a tuple with the AllStatus301 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAllStatus301 + +`func (o *OriginInspectorValues) SetAllStatus301(v int32)` + +SetAllStatus301 sets AllStatus301 field to given value. + +### HasAllStatus301 + +`func (o *OriginInspectorValues) HasAllStatus301() bool` + +HasAllStatus301 returns a boolean if a field has been set. + +### GetAllStatus302 + +`func (o *OriginInspectorValues) GetAllStatus302() int32` + +GetAllStatus302 returns the AllStatus302 field if non-nil, zero value otherwise. + +### GetAllStatus302Ok + +`func (o *OriginInspectorValues) GetAllStatus302Ok() (*int32, bool)` + +GetAllStatus302Ok returns a tuple with the AllStatus302 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAllStatus302 + +`func (o *OriginInspectorValues) SetAllStatus302(v int32)` + +SetAllStatus302 sets AllStatus302 field to given value. + +### HasAllStatus302 + +`func (o *OriginInspectorValues) HasAllStatus302() bool` + +HasAllStatus302 returns a boolean if a field has been set. + +### GetAllStatus304 + +`func (o *OriginInspectorValues) GetAllStatus304() int32` + +GetAllStatus304 returns the AllStatus304 field if non-nil, zero value otherwise. + +### GetAllStatus304Ok + +`func (o *OriginInspectorValues) GetAllStatus304Ok() (*int32, bool)` + +GetAllStatus304Ok returns a tuple with the AllStatus304 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAllStatus304 + +`func (o *OriginInspectorValues) SetAllStatus304(v int32)` + +SetAllStatus304 sets AllStatus304 field to given value. + +### HasAllStatus304 + +`func (o *OriginInspectorValues) HasAllStatus304() bool` + +HasAllStatus304 returns a boolean if a field has been set. + +### GetAllStatus400 + +`func (o *OriginInspectorValues) GetAllStatus400() int32` + +GetAllStatus400 returns the AllStatus400 field if non-nil, zero value otherwise. + +### GetAllStatus400Ok + +`func (o *OriginInspectorValues) GetAllStatus400Ok() (*int32, bool)` + +GetAllStatus400Ok returns a tuple with the AllStatus400 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAllStatus400 + +`func (o *OriginInspectorValues) SetAllStatus400(v int32)` + +SetAllStatus400 sets AllStatus400 field to given value. + +### HasAllStatus400 + +`func (o *OriginInspectorValues) HasAllStatus400() bool` + +HasAllStatus400 returns a boolean if a field has been set. + +### GetAllStatus401 + +`func (o *OriginInspectorValues) GetAllStatus401() int32` + +GetAllStatus401 returns the AllStatus401 field if non-nil, zero value otherwise. + +### GetAllStatus401Ok + +`func (o *OriginInspectorValues) GetAllStatus401Ok() (*int32, bool)` + +GetAllStatus401Ok returns a tuple with the AllStatus401 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAllStatus401 + +`func (o *OriginInspectorValues) SetAllStatus401(v int32)` + +SetAllStatus401 sets AllStatus401 field to given value. + +### HasAllStatus401 + +`func (o *OriginInspectorValues) HasAllStatus401() bool` + +HasAllStatus401 returns a boolean if a field has been set. + +### GetAllStatus403 + +`func (o *OriginInspectorValues) GetAllStatus403() int32` + +GetAllStatus403 returns the AllStatus403 field if non-nil, zero value otherwise. + +### GetAllStatus403Ok + +`func (o *OriginInspectorValues) GetAllStatus403Ok() (*int32, bool)` + +GetAllStatus403Ok returns a tuple with the AllStatus403 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAllStatus403 + +`func (o *OriginInspectorValues) SetAllStatus403(v int32)` + +SetAllStatus403 sets AllStatus403 field to given value. + +### HasAllStatus403 + +`func (o *OriginInspectorValues) HasAllStatus403() bool` + +HasAllStatus403 returns a boolean if a field has been set. + +### GetAllStatus404 + +`func (o *OriginInspectorValues) GetAllStatus404() int32` + +GetAllStatus404 returns the AllStatus404 field if non-nil, zero value otherwise. + +### GetAllStatus404Ok + +`func (o *OriginInspectorValues) GetAllStatus404Ok() (*int32, bool)` + +GetAllStatus404Ok returns a tuple with the AllStatus404 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAllStatus404 + +`func (o *OriginInspectorValues) SetAllStatus404(v int32)` + +SetAllStatus404 sets AllStatus404 field to given value. + +### HasAllStatus404 + +`func (o *OriginInspectorValues) HasAllStatus404() bool` + +HasAllStatus404 returns a boolean if a field has been set. + +### GetAllStatus416 + +`func (o *OriginInspectorValues) GetAllStatus416() int32` + +GetAllStatus416 returns the AllStatus416 field if non-nil, zero value otherwise. + +### GetAllStatus416Ok + +`func (o *OriginInspectorValues) GetAllStatus416Ok() (*int32, bool)` + +GetAllStatus416Ok returns a tuple with the AllStatus416 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAllStatus416 + +`func (o *OriginInspectorValues) SetAllStatus416(v int32)` + +SetAllStatus416 sets AllStatus416 field to given value. + +### HasAllStatus416 + +`func (o *OriginInspectorValues) HasAllStatus416() bool` + +HasAllStatus416 returns a boolean if a field has been set. + +### GetAllStatus429 + +`func (o *OriginInspectorValues) GetAllStatus429() int32` + +GetAllStatus429 returns the AllStatus429 field if non-nil, zero value otherwise. + +### GetAllStatus429Ok + +`func (o *OriginInspectorValues) GetAllStatus429Ok() (*int32, bool)` + +GetAllStatus429Ok returns a tuple with the AllStatus429 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAllStatus429 + +`func (o *OriginInspectorValues) SetAllStatus429(v int32)` + +SetAllStatus429 sets AllStatus429 field to given value. + +### HasAllStatus429 + +`func (o *OriginInspectorValues) HasAllStatus429() bool` + +HasAllStatus429 returns a boolean if a field has been set. + +### GetAllStatus500 + +`func (o *OriginInspectorValues) GetAllStatus500() int32` + +GetAllStatus500 returns the AllStatus500 field if non-nil, zero value otherwise. + +### GetAllStatus500Ok + +`func (o *OriginInspectorValues) GetAllStatus500Ok() (*int32, bool)` + +GetAllStatus500Ok returns a tuple with the AllStatus500 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAllStatus500 + +`func (o *OriginInspectorValues) SetAllStatus500(v int32)` + +SetAllStatus500 sets AllStatus500 field to given value. + +### HasAllStatus500 + +`func (o *OriginInspectorValues) HasAllStatus500() bool` + +HasAllStatus500 returns a boolean if a field has been set. + +### GetAllStatus501 + +`func (o *OriginInspectorValues) GetAllStatus501() int32` + +GetAllStatus501 returns the AllStatus501 field if non-nil, zero value otherwise. + +### GetAllStatus501Ok + +`func (o *OriginInspectorValues) GetAllStatus501Ok() (*int32, bool)` + +GetAllStatus501Ok returns a tuple with the AllStatus501 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAllStatus501 + +`func (o *OriginInspectorValues) SetAllStatus501(v int32)` + +SetAllStatus501 sets AllStatus501 field to given value. + +### HasAllStatus501 + +`func (o *OriginInspectorValues) HasAllStatus501() bool` + +HasAllStatus501 returns a boolean if a field has been set. + +### GetAllStatus502 + +`func (o *OriginInspectorValues) GetAllStatus502() int32` + +GetAllStatus502 returns the AllStatus502 field if non-nil, zero value otherwise. + +### GetAllStatus502Ok + +`func (o *OriginInspectorValues) GetAllStatus502Ok() (*int32, bool)` + +GetAllStatus502Ok returns a tuple with the AllStatus502 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAllStatus502 + +`func (o *OriginInspectorValues) SetAllStatus502(v int32)` + +SetAllStatus502 sets AllStatus502 field to given value. + +### HasAllStatus502 + +`func (o *OriginInspectorValues) HasAllStatus502() bool` + +HasAllStatus502 returns a boolean if a field has been set. + +### GetAllStatus503 + +`func (o *OriginInspectorValues) GetAllStatus503() int32` + +GetAllStatus503 returns the AllStatus503 field if non-nil, zero value otherwise. + +### GetAllStatus503Ok + +`func (o *OriginInspectorValues) GetAllStatus503Ok() (*int32, bool)` + +GetAllStatus503Ok returns a tuple with the AllStatus503 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAllStatus503 + +`func (o *OriginInspectorValues) SetAllStatus503(v int32)` + +SetAllStatus503 sets AllStatus503 field to given value. + +### HasAllStatus503 + +`func (o *OriginInspectorValues) HasAllStatus503() bool` + +HasAllStatus503 returns a boolean if a field has been set. + +### GetAllStatus504 + +`func (o *OriginInspectorValues) GetAllStatus504() int32` + +GetAllStatus504 returns the AllStatus504 field if non-nil, zero value otherwise. + +### GetAllStatus504Ok + +`func (o *OriginInspectorValues) GetAllStatus504Ok() (*int32, bool)` + +GetAllStatus504Ok returns a tuple with the AllStatus504 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAllStatus504 + +`func (o *OriginInspectorValues) SetAllStatus504(v int32)` + +SetAllStatus504 sets AllStatus504 field to given value. + +### HasAllStatus504 + +`func (o *OriginInspectorValues) HasAllStatus504() bool` + +HasAllStatus504 returns a boolean if a field has been set. + +### GetAllStatus505 + +`func (o *OriginInspectorValues) GetAllStatus505() int32` + +GetAllStatus505 returns the AllStatus505 field if non-nil, zero value otherwise. + +### GetAllStatus505Ok + +`func (o *OriginInspectorValues) GetAllStatus505Ok() (*int32, bool)` + +GetAllStatus505Ok returns a tuple with the AllStatus505 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAllStatus505 + +`func (o *OriginInspectorValues) SetAllStatus505(v int32)` + +SetAllStatus505 sets AllStatus505 field to given value. + +### HasAllStatus505 + +`func (o *OriginInspectorValues) HasAllStatus505() bool` + +HasAllStatus505 returns a boolean if a field has been set. + +### GetAllLatency0To1ms + +`func (o *OriginInspectorValues) GetAllLatency0To1ms() int32` + +GetAllLatency0To1ms returns the AllLatency0To1ms field if non-nil, zero value otherwise. + +### GetAllLatency0To1msOk + +`func (o *OriginInspectorValues) GetAllLatency0To1msOk() (*int32, bool)` + +GetAllLatency0To1msOk returns a tuple with the AllLatency0To1ms field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAllLatency0To1ms + +`func (o *OriginInspectorValues) SetAllLatency0To1ms(v int32)` + +SetAllLatency0To1ms sets AllLatency0To1ms field to given value. + +### HasAllLatency0To1ms + +`func (o *OriginInspectorValues) HasAllLatency0To1ms() bool` + +HasAllLatency0To1ms returns a boolean if a field has been set. + +### GetAllLatency1To5ms + +`func (o *OriginInspectorValues) GetAllLatency1To5ms() int32` + +GetAllLatency1To5ms returns the AllLatency1To5ms field if non-nil, zero value otherwise. + +### GetAllLatency1To5msOk + +`func (o *OriginInspectorValues) GetAllLatency1To5msOk() (*int32, bool)` + +GetAllLatency1To5msOk returns a tuple with the AllLatency1To5ms field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAllLatency1To5ms + +`func (o *OriginInspectorValues) SetAllLatency1To5ms(v int32)` + +SetAllLatency1To5ms sets AllLatency1To5ms field to given value. + +### HasAllLatency1To5ms + +`func (o *OriginInspectorValues) HasAllLatency1To5ms() bool` + +HasAllLatency1To5ms returns a boolean if a field has been set. + +### GetAllLatency5To10ms + +`func (o *OriginInspectorValues) GetAllLatency5To10ms() int32` + +GetAllLatency5To10ms returns the AllLatency5To10ms field if non-nil, zero value otherwise. + +### GetAllLatency5To10msOk + +`func (o *OriginInspectorValues) GetAllLatency5To10msOk() (*int32, bool)` + +GetAllLatency5To10msOk returns a tuple with the AllLatency5To10ms field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAllLatency5To10ms + +`func (o *OriginInspectorValues) SetAllLatency5To10ms(v int32)` + +SetAllLatency5To10ms sets AllLatency5To10ms field to given value. + +### HasAllLatency5To10ms + +`func (o *OriginInspectorValues) HasAllLatency5To10ms() bool` + +HasAllLatency5To10ms returns a boolean if a field has been set. + +### GetAllLatency10To50ms + +`func (o *OriginInspectorValues) GetAllLatency10To50ms() int32` + +GetAllLatency10To50ms returns the AllLatency10To50ms field if non-nil, zero value otherwise. + +### GetAllLatency10To50msOk + +`func (o *OriginInspectorValues) GetAllLatency10To50msOk() (*int32, bool)` + +GetAllLatency10To50msOk returns a tuple with the AllLatency10To50ms field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAllLatency10To50ms + +`func (o *OriginInspectorValues) SetAllLatency10To50ms(v int32)` + +SetAllLatency10To50ms sets AllLatency10To50ms field to given value. + +### HasAllLatency10To50ms + +`func (o *OriginInspectorValues) HasAllLatency10To50ms() bool` + +HasAllLatency10To50ms returns a boolean if a field has been set. + +### GetAllLatency50To100ms + +`func (o *OriginInspectorValues) GetAllLatency50To100ms() int32` + +GetAllLatency50To100ms returns the AllLatency50To100ms field if non-nil, zero value otherwise. + +### GetAllLatency50To100msOk + +`func (o *OriginInspectorValues) GetAllLatency50To100msOk() (*int32, bool)` + +GetAllLatency50To100msOk returns a tuple with the AllLatency50To100ms field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAllLatency50To100ms + +`func (o *OriginInspectorValues) SetAllLatency50To100ms(v int32)` + +SetAllLatency50To100ms sets AllLatency50To100ms field to given value. + +### HasAllLatency50To100ms + +`func (o *OriginInspectorValues) HasAllLatency50To100ms() bool` + +HasAllLatency50To100ms returns a boolean if a field has been set. + +### GetAllLatency100To250ms + +`func (o *OriginInspectorValues) GetAllLatency100To250ms() int32` + +GetAllLatency100To250ms returns the AllLatency100To250ms field if non-nil, zero value otherwise. + +### GetAllLatency100To250msOk + +`func (o *OriginInspectorValues) GetAllLatency100To250msOk() (*int32, bool)` + +GetAllLatency100To250msOk returns a tuple with the AllLatency100To250ms field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAllLatency100To250ms + +`func (o *OriginInspectorValues) SetAllLatency100To250ms(v int32)` + +SetAllLatency100To250ms sets AllLatency100To250ms field to given value. + +### HasAllLatency100To250ms + +`func (o *OriginInspectorValues) HasAllLatency100To250ms() bool` + +HasAllLatency100To250ms returns a boolean if a field has been set. + +### GetAllLatency250To500ms + +`func (o *OriginInspectorValues) GetAllLatency250To500ms() int32` + +GetAllLatency250To500ms returns the AllLatency250To500ms field if non-nil, zero value otherwise. + +### GetAllLatency250To500msOk + +`func (o *OriginInspectorValues) GetAllLatency250To500msOk() (*int32, bool)` + +GetAllLatency250To500msOk returns a tuple with the AllLatency250To500ms field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAllLatency250To500ms + +`func (o *OriginInspectorValues) SetAllLatency250To500ms(v int32)` + +SetAllLatency250To500ms sets AllLatency250To500ms field to given value. + +### HasAllLatency250To500ms + +`func (o *OriginInspectorValues) HasAllLatency250To500ms() bool` + +HasAllLatency250To500ms returns a boolean if a field has been set. + +### GetAllLatency500To1000ms + +`func (o *OriginInspectorValues) GetAllLatency500To1000ms() int32` + +GetAllLatency500To1000ms returns the AllLatency500To1000ms field if non-nil, zero value otherwise. + +### GetAllLatency500To1000msOk + +`func (o *OriginInspectorValues) GetAllLatency500To1000msOk() (*int32, bool)` + +GetAllLatency500To1000msOk returns a tuple with the AllLatency500To1000ms field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAllLatency500To1000ms + +`func (o *OriginInspectorValues) SetAllLatency500To1000ms(v int32)` + +SetAllLatency500To1000ms sets AllLatency500To1000ms field to given value. + +### HasAllLatency500To1000ms + +`func (o *OriginInspectorValues) HasAllLatency500To1000ms() bool` + +HasAllLatency500To1000ms returns a boolean if a field has been set. + +### GetAllLatency1000To5000ms + +`func (o *OriginInspectorValues) GetAllLatency1000To5000ms() int32` + +GetAllLatency1000To5000ms returns the AllLatency1000To5000ms field if non-nil, zero value otherwise. + +### GetAllLatency1000To5000msOk + +`func (o *OriginInspectorValues) GetAllLatency1000To5000msOk() (*int32, bool)` + +GetAllLatency1000To5000msOk returns a tuple with the AllLatency1000To5000ms field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAllLatency1000To5000ms + +`func (o *OriginInspectorValues) SetAllLatency1000To5000ms(v int32)` + +SetAllLatency1000To5000ms sets AllLatency1000To5000ms field to given value. + +### HasAllLatency1000To5000ms + +`func (o *OriginInspectorValues) HasAllLatency1000To5000ms() bool` + +HasAllLatency1000To5000ms returns a boolean if a field has been set. + +### GetAllLatency5000To10000ms + +`func (o *OriginInspectorValues) GetAllLatency5000To10000ms() int32` + +GetAllLatency5000To10000ms returns the AllLatency5000To10000ms field if non-nil, zero value otherwise. + +### GetAllLatency5000To10000msOk + +`func (o *OriginInspectorValues) GetAllLatency5000To10000msOk() (*int32, bool)` + +GetAllLatency5000To10000msOk returns a tuple with the AllLatency5000To10000ms field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAllLatency5000To10000ms + +`func (o *OriginInspectorValues) SetAllLatency5000To10000ms(v int32)` + +SetAllLatency5000To10000ms sets AllLatency5000To10000ms field to given value. + +### HasAllLatency5000To10000ms + +`func (o *OriginInspectorValues) HasAllLatency5000To10000ms() bool` + +HasAllLatency5000To10000ms returns a boolean if a field has been set. + +### GetAllLatency10000To60000ms + +`func (o *OriginInspectorValues) GetAllLatency10000To60000ms() int32` + +GetAllLatency10000To60000ms returns the AllLatency10000To60000ms field if non-nil, zero value otherwise. + +### GetAllLatency10000To60000msOk + +`func (o *OriginInspectorValues) GetAllLatency10000To60000msOk() (*int32, bool)` + +GetAllLatency10000To60000msOk returns a tuple with the AllLatency10000To60000ms field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAllLatency10000To60000ms + +`func (o *OriginInspectorValues) SetAllLatency10000To60000ms(v int32)` + +SetAllLatency10000To60000ms sets AllLatency10000To60000ms field to given value. + +### HasAllLatency10000To60000ms + +`func (o *OriginInspectorValues) HasAllLatency10000To60000ms() bool` + +HasAllLatency10000To60000ms returns a boolean if a field has been set. + +### GetAllLatency60000ms + +`func (o *OriginInspectorValues) GetAllLatency60000ms() int32` + +GetAllLatency60000ms returns the AllLatency60000ms field if non-nil, zero value otherwise. + +### GetAllLatency60000msOk + +`func (o *OriginInspectorValues) GetAllLatency60000msOk() (*int32, bool)` + +GetAllLatency60000msOk returns a tuple with the AllLatency60000ms field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAllLatency60000ms + +`func (o *OriginInspectorValues) SetAllLatency60000ms(v int32)` + +SetAllLatency60000ms sets AllLatency60000ms field to given value. + +### HasAllLatency60000ms + +`func (o *OriginInspectorValues) HasAllLatency60000ms() bool` + +HasAllLatency60000ms returns a boolean if a field has been set. + + +[Back to API list](../README.md#documentation-for-api-endpoints) | [Back to README](../README.md) diff --git a/docs/PaginationCursorMeta.md b/docs/PaginationCursorMeta.md new file mode 100644 index 00000000..3441fed2 --- /dev/null +++ b/docs/PaginationCursorMeta.md @@ -0,0 +1,80 @@ +# PaginationCursorMeta + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**NextCursor** | Pointer to **string** | Cursor for the next page. | [optional] +**Limit** | Pointer to **int32** | Maximum number of results returned. | [optional] + +## Methods + +### NewPaginationCursorMeta + +`func NewPaginationCursorMeta() *PaginationCursorMeta` + +NewPaginationCursorMeta instantiates a new PaginationCursorMeta object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPaginationCursorMetaWithDefaults + +`func NewPaginationCursorMetaWithDefaults() *PaginationCursorMeta` + +NewPaginationCursorMetaWithDefaults instantiates a new PaginationCursorMeta object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetNextCursor + +`func (o *PaginationCursorMeta) GetNextCursor() string` + +GetNextCursor returns the NextCursor field if non-nil, zero value otherwise. + +### GetNextCursorOk + +`func (o *PaginationCursorMeta) GetNextCursorOk() (*string, bool)` + +GetNextCursorOk returns a tuple with the NextCursor field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNextCursor + +`func (o *PaginationCursorMeta) SetNextCursor(v string)` + +SetNextCursor sets NextCursor field to given value. + +### HasNextCursor + +`func (o *PaginationCursorMeta) HasNextCursor() bool` + +HasNextCursor returns a boolean if a field has been set. + +### GetLimit + +`func (o *PaginationCursorMeta) GetLimit() int32` + +GetLimit returns the Limit field if non-nil, zero value otherwise. + +### GetLimitOk + +`func (o *PaginationCursorMeta) GetLimitOk() (*int32, bool)` + +GetLimitOk returns a tuple with the Limit field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLimit + +`func (o *PaginationCursorMeta) SetLimit(v int32)` + +SetLimit sets Limit field to given value. + +### HasLimit + +`func (o *PaginationCursorMeta) HasLimit() bool` + +HasLimit returns a boolean if a field has been set. + + +[Back to API list](../README.md#documentation-for-api-endpoints) | [Back to README](../README.md) diff --git a/docs/ReadOnlyServiceId.md b/docs/ReadOnlyServiceId.md new file mode 100644 index 00000000..c2337a06 --- /dev/null +++ b/docs/ReadOnlyServiceId.md @@ -0,0 +1,28 @@ +# ReadOnlyServiceID + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +## Methods + +### NewReadOnlyServiceID + +`func NewReadOnlyServiceID() *ReadOnlyServiceID` + +NewReadOnlyServiceID instantiates a new ReadOnlyServiceID object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewReadOnlyServiceIDWithDefaults + +`func NewReadOnlyServiceIDWithDefaults() *ReadOnlyServiceID` + +NewReadOnlyServiceIDWithDefaults instantiates a new ReadOnlyServiceID object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + + +[Back to API list](../README.md#documentation-for-api-endpoints) | [Back to README](../README.md) diff --git a/docs/ReadOnlyVersion.md b/docs/ReadOnlyVersion.md new file mode 100644 index 00000000..725ed8a0 --- /dev/null +++ b/docs/ReadOnlyVersion.md @@ -0,0 +1,28 @@ +# ReadOnlyVersion + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +## Methods + +### NewReadOnlyVersion + +`func NewReadOnlyVersion() *ReadOnlyVersion` + +NewReadOnlyVersion instantiates a new ReadOnlyVersion object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewReadOnlyVersionWithDefaults + +`func NewReadOnlyVersionWithDefaults() *ReadOnlyVersion` + +NewReadOnlyVersionWithDefaults instantiates a new ReadOnlyVersion object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + + +[Back to API list](../README.md#documentation-for-api-endpoints) | [Back to README](../README.md) diff --git a/docs/RealtimeEntry.md b/docs/RealtimeEntry.md index 3458dcb0..533f7ef0 100644 --- a/docs/RealtimeEntry.md +++ b/docs/RealtimeEntry.md @@ -4,8 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Recorded** | Pointer to **int32** | The Unix timestamp at which this record's data was generated. | [optional] -**Aggregated** | Pointer to [**RealtimeMeasurements**](realtime_measurements.md) | Aggregates [measurements](#measurements-data-model) across all Fastly POPs. | [optional] +**Recorded** | Pointer to [**RealtimeEntryRecorded**](RealtimeEntryRecorded.md) | | [optional] +**Aggregated** | Pointer to [**RealtimeEntryAggregated**](RealtimeEntryAggregated.md) | | [optional] **Datacenter** | Pointer to [**map[string]RealtimeMeasurements**](RealtimeMeasurements.md) | Groups [measurements](#measurements-data-model) by POP. See the [POPs API](/reference/api/utils/pops/) for details of POP identifiers. | [optional] ## Methods @@ -29,20 +29,20 @@ but it doesn't guarantee that properties required by API are set ### GetRecorded -`func (o *RealtimeEntry) GetRecorded() int32` +`func (o *RealtimeEntry) GetRecorded() RealtimeEntryRecorded` GetRecorded returns the Recorded field if non-nil, zero value otherwise. ### GetRecordedOk -`func (o *RealtimeEntry) GetRecordedOk() (*int32, bool)` +`func (o *RealtimeEntry) GetRecordedOk() (*RealtimeEntryRecorded, bool)` GetRecordedOk returns a tuple with the Recorded field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRecorded -`func (o *RealtimeEntry) SetRecorded(v int32)` +`func (o *RealtimeEntry) SetRecorded(v RealtimeEntryRecorded)` SetRecorded sets Recorded field to given value. @@ -54,20 +54,20 @@ HasRecorded returns a boolean if a field has been set. ### GetAggregated -`func (o *RealtimeEntry) GetAggregated() RealtimeMeasurements` +`func (o *RealtimeEntry) GetAggregated() RealtimeEntryAggregated` GetAggregated returns the Aggregated field if non-nil, zero value otherwise. ### GetAggregatedOk -`func (o *RealtimeEntry) GetAggregatedOk() (*RealtimeMeasurements, bool)` +`func (o *RealtimeEntry) GetAggregatedOk() (*RealtimeEntryAggregated, bool)` GetAggregatedOk returns a tuple with the Aggregated field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetAggregated -`func (o *RealtimeEntry) SetAggregated(v RealtimeMeasurements)` +`func (o *RealtimeEntry) SetAggregated(v RealtimeEntryAggregated)` SetAggregated sets Aggregated field to given value. diff --git a/docs/RealtimeEntryAggregated.md b/docs/RealtimeEntryAggregated.md new file mode 100644 index 00000000..709c240b --- /dev/null +++ b/docs/RealtimeEntryAggregated.md @@ -0,0 +1,5696 @@ +# RealtimeEntryAggregated + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Requests** | Pointer to **int32** | Number of requests processed. | [optional] +**Logging** | Pointer to **int32** | Number of log lines sent (alias for `log`). | [optional] +**Log** | Pointer to **int32** | Number of log lines sent. | [optional] +**RespHeaderBytes** | Pointer to **int32** | Total header bytes delivered (edge_resp_header_bytes + shield_resp_header_bytes). | [optional] +**HeaderSize** | Pointer to **int32** | Total header bytes delivered (alias for resp_header_bytes). | [optional] +**RespBodyBytes** | Pointer to **int32** | Total body bytes delivered (edge_resp_body_bytes + shield_resp_body_bytes). | [optional] +**BodySize** | Pointer to **int32** | Total body bytes delivered (alias for resp_body_bytes). | [optional] +**Hits** | Pointer to **int32** | Number of cache hits. | [optional] +**Miss** | Pointer to **int32** | Number of cache misses. | [optional] +**Pass** | Pointer to **int32** | Number of requests that passed through the CDN without being cached. | [optional] +**Synth** | Pointer to **int32** | Number of requests that returned a synthetic response (i.e., response objects created with the `synthetic` VCL statement). | [optional] +**Errors** | Pointer to **int32** | Number of cache errors. | [optional] +**HitsTime** | Pointer to **float32** | Total amount of time spent processing cache hits (in seconds). | [optional] +**MissTime** | Pointer to **float32** | Total amount of time spent processing cache misses (in seconds). | [optional] +**MissHistogram** | Pointer to **map[string]map[string]any** | A histogram. Each key represents the upper bound of a span of 10 milliseconds and the values represent the number of requests to origin during that 10ms period. Any origin request that takes more than 60 seconds to return will be in the 60000 bucket. | [optional] +**ComputeRequests** | Pointer to **int32** | The total number of requests that were received for your service by Fastly. | [optional] +**ComputeExecutionTimeMs** | Pointer to **float32** | The amount of active CPU time used to process your requests (in milliseconds). | [optional] +**ComputeRAMUsed** | Pointer to **int32** | The amount of RAM used for your service by Fastly (in bytes). | [optional] +**ComputeRequestTimeMs** | Pointer to **float32** | The total, actual amount of time used to process your requests, including active CPU time (in milliseconds). | [optional] +**ComputeRequestTimeBilledMs** | Pointer to **float32** | The total amount of request processing time you will be billed for, measured in 50 millisecond increments. | [optional] +**Shield** | Pointer to **int32** | Number of requests from edge to the shield POP. | [optional] +**Ipv6** | Pointer to **int32** | Number of requests that were received over IPv6. | [optional] +**Imgopto** | Pointer to **int32** | Number of responses that came from the Fastly Image Optimizer service. If the service receives 10 requests for an image, this stat will be 10 regardless of how many times the image was transformed. | [optional] +**ImgoptoShield** | Pointer to **int32** | Number of responses that came from the Fastly Image Optimizer service via a shield. | [optional] +**ImgoptoTransforms** | Pointer to **int32** | Number of transforms performed by the Fastly Image Optimizer service. | [optional] +**Otfp** | Pointer to **int32** | Number of responses that came from the Fastly On-the-Fly Packaging service for video-on-demand. | [optional] +**OtfpShield** | Pointer to **int32** | Number of responses that came from the Fastly On-the-Fly Packaging service for video-on-demand via a shield. | [optional] +**OtfpManifests** | Pointer to **int32** | Number of responses that were manifest files from the Fastly On-the-Fly Packaging service for video-on-demand. | [optional] +**Video** | Pointer to **int32** | Number of responses with the video segment or video manifest MIME type (i.e., application/x-mpegurl, application/vnd.apple.mpegurl, application/f4m, application/dash+xml, application/vnd.ms-sstr+xml, ideo/mp2t, audio/aac, video/f4f, video/x-flv, video/mp4, audio/mp4). | [optional] +**Pci** | Pointer to **int32** | Number of responses with the PCI flag turned on. | [optional] +**HTTP2** | Pointer to **int32** | Number of requests received over HTTP/2. | [optional] +**HTTP3** | Pointer to **int32** | Number of requests received over HTTP/3. | [optional] +**Restarts** | Pointer to **int32** | Number of restarts performed. | [optional] +**ReqHeaderBytes** | Pointer to **int32** | Total header bytes received. | [optional] +**ReqBodyBytes** | Pointer to **int32** | Total body bytes received. | [optional] +**BereqHeaderBytes** | Pointer to **int32** | Total header bytes sent to origin. | [optional] +**BereqBodyBytes** | Pointer to **int32** | Total body bytes sent to origin. | [optional] +**WafBlocked** | Pointer to **int32** | Number of requests that triggered a WAF rule and were blocked. | [optional] +**WafLogged** | Pointer to **int32** | Number of requests that triggered a WAF rule and were logged. | [optional] +**WafPassed** | Pointer to **int32** | Number of requests that triggered a WAF rule and were passed. | [optional] +**AttackReqHeaderBytes** | Pointer to **int32** | Total header bytes received from requests that triggered a WAF rule. | [optional] +**AttackReqBodyBytes** | Pointer to **int32** | Total body bytes received from requests that triggered a WAF rule. | [optional] +**AttackRespSynthBytes** | Pointer to **int32** | Total bytes delivered for requests that triggered a WAF rule and returned a synthetic response. | [optional] +**AttackLoggedReqHeaderBytes** | Pointer to **int32** | Total header bytes received from requests that triggered a WAF rule that was logged. | [optional] +**AttackLoggedReqBodyBytes** | Pointer to **int32** | Total body bytes received from requests that triggered a WAF rule that was logged. | [optional] +**AttackBlockedReqHeaderBytes** | Pointer to **int32** | Total header bytes received from requests that triggered a WAF rule that was blocked. | [optional] +**AttackBlockedReqBodyBytes** | Pointer to **int32** | Total body bytes received from requests that triggered a WAF rule that was blocked. | [optional] +**AttackPassedReqHeaderBytes** | Pointer to **int32** | Total header bytes received from requests that triggered a WAF rule that was passed. | [optional] +**AttackPassedReqBodyBytes** | Pointer to **int32** | Total body bytes received from requests that triggered a WAF rule that was passed. | [optional] +**ShieldRespHeaderBytes** | Pointer to **int32** | Total header bytes delivered via a shield. | [optional] +**ShieldRespBodyBytes** | Pointer to **int32** | Total body bytes delivered via a shield. | [optional] +**OtfpRespHeaderBytes** | Pointer to **int32** | Total header bytes delivered from the Fastly On-the-Fly Packaging service for video-on-demand. | [optional] +**OtfpRespBodyBytes** | Pointer to **int32** | Total body bytes delivered from the Fastly On-the-Fly Packaging service for video-on-demand. | [optional] +**OtfpShieldRespHeaderBytes** | Pointer to **int32** | Total header bytes delivered via a shield for the Fastly On-the-Fly Packaging service for video-on-demand. | [optional] +**OtfpShieldRespBodyBytes** | Pointer to **int32** | Total body bytes delivered via a shield for the Fastly On-the-Fly Packaging service for video-on-demand. | [optional] +**OtfpShieldTime** | Pointer to **float32** | Total amount of time spent delivering a response via a shield from the Fastly On-the-Fly Packaging service for video-on-demand (in seconds). | [optional] +**OtfpDeliverTime** | Pointer to **float32** | Total amount of time spent delivering a response from the Fastly On-the-Fly Packaging service for video-on-demand (in seconds). | [optional] +**ImgoptoRespHeaderBytes** | Pointer to **int32** | Total header bytes delivered from the Fastly Image Optimizer service, including shield traffic. | [optional] +**ImgoptoRespBodyBytes** | Pointer to **int32** | Total body bytes delivered from the Fastly Image Optimizer service, including shield traffic. | [optional] +**ImgoptoShieldRespHeaderBytes** | Pointer to **int32** | Total header bytes delivered via a shield from the Fastly Image Optimizer service. | [optional] +**ImgoptoShieldRespBodyBytes** | Pointer to **int32** | Total body bytes delivered via a shield from the Fastly Image Optimizer service. | [optional] +**Status1xx** | Pointer to **int32** | Number of \"Informational\" category status codes delivered. | [optional] +**Status2xx** | Pointer to **int32** | Number of \"Success\" status codes delivered. | [optional] +**Status3xx** | Pointer to **int32** | Number of \"Redirection\" codes delivered. | [optional] +**Status4xx** | Pointer to **int32** | Number of \"Client Error\" codes delivered. | [optional] +**Status5xx** | Pointer to **int32** | Number of \"Server Error\" codes delivered. | [optional] +**Status200** | Pointer to **int32** | Number of responses sent with status code 200 (Success). | [optional] +**Status204** | Pointer to **int32** | Number of responses sent with status code 204 (No Content). | [optional] +**Status206** | Pointer to **int32** | Number of responses sent with status code 206 (Partial Content). | [optional] +**Status301** | Pointer to **int32** | Number of responses sent with status code 301 (Moved Permanently). | [optional] +**Status302** | Pointer to **int32** | Number of responses sent with status code 302 (Found). | [optional] +**Status304** | Pointer to **int32** | Number of responses sent with status code 304 (Not Modified). | [optional] +**Status400** | Pointer to **int32** | Number of responses sent with status code 400 (Bad Request). | [optional] +**Status401** | Pointer to **int32** | Number of responses sent with status code 401 (Unauthorized). | [optional] +**Status403** | Pointer to **int32** | Number of responses sent with status code 403 (Forbidden). | [optional] +**Status404** | Pointer to **int32** | Number of responses sent with status code 404 (Not Found). | [optional] +**Status406** | Pointer to **int32** | Number of responses sent with status code 406 (Not Acceptable). | [optional] +**Status416** | Pointer to **int32** | Number of responses sent with status code 416 (Range Not Satisfiable). | [optional] +**Status429** | Pointer to **int32** | Number of responses sent with status code 429 (Too Many Requests). | [optional] +**Status500** | Pointer to **int32** | Number of responses sent with status code 500 (Internal Server Error). | [optional] +**Status501** | Pointer to **int32** | Number of responses sent with status code 501 (Not Implemented). | [optional] +**Status502** | Pointer to **int32** | Number of responses sent with status code 502 (Bad Gateway). | [optional] +**Status503** | Pointer to **int32** | Number of responses sent with status code 503 (Service Unavailable). | [optional] +**Status504** | Pointer to **int32** | Number of responses sent with status code 504 (Gateway Timeout). | [optional] +**Status505** | Pointer to **int32** | Number of responses sent with status code 505 (HTTP Version Not Supported). | [optional] +**Uncacheable** | Pointer to **int32** | Number of requests that were designated uncachable. | [optional] +**PassTime** | Pointer to **float32** | Total amount of time spent processing cache passes (in seconds). | [optional] +**TLS** | Pointer to **int32** | Number of requests that were received over TLS. | [optional] +**TLSV10** | Pointer to **int32** | Number of requests received over TLS 1.0. | [optional] +**TLSV11** | Pointer to **int32** | Number of requests received over TLS 1.1. | [optional] +**TLSV12** | Pointer to **int32** | Number of requests received over TLS 1.2. | [optional] +**TLSV13** | Pointer to **int32** | Number of requests received over TLS 1.3. | [optional] +**ObjectSize1k** | Pointer to **int32** | Number of objects served that were under 1KB in size. | [optional] +**ObjectSize10k** | Pointer to **int32** | Number of objects served that were between 1KB and 10KB in size. | [optional] +**ObjectSize100k** | Pointer to **int32** | Number of objects served that were between 10KB and 100KB in size. | [optional] +**ObjectSize1m** | Pointer to **int32** | Number of objects served that were between 100KB and 1MB in size. | [optional] +**ObjectSize10m** | Pointer to **int32** | Number of objects served that were between 1MB and 10MB in size. | [optional] +**ObjectSize100m** | Pointer to **int32** | Number of objects served that were between 10MB and 100MB in size. | [optional] +**ObjectSize1g** | Pointer to **int32** | Number of objects served that were between 100MB and 1GB in size. | [optional] +**ObjectSizeOther** | Pointer to **int32** | Number of objects served that were larger than 1GB in size. | [optional] +**RecvSubTime** | Pointer to **float32** | Time spent inside the `vcl_recv` Varnish subroutine (in nanoseconds). | [optional] +**RecvSubCount** | Pointer to **int32** | Number of executions of the `vcl_recv` Varnish subroutine. | [optional] +**HashSubTime** | Pointer to **float32** | Time spent inside the `vcl_hash` Varnish subroutine (in nanoseconds). | [optional] +**HashSubCount** | Pointer to **int32** | Number of executions of the `vcl_hash` Varnish subroutine. | [optional] +**MissSubTime** | Pointer to **float32** | Time spent inside the `vcl_miss` Varnish subroutine (in nanoseconds). | [optional] +**MissSubCount** | Pointer to **int32** | Number of executions of the `vcl_miss` Varnish subroutine. | [optional] +**FetchSubTime** | Pointer to **float32** | Time spent inside the `vcl_fetch` Varnish subroutine (in nanoseconds). | [optional] +**FetchSubCount** | Pointer to **int32** | Number of executions of the `vcl_fetch` Varnish subroutine. | [optional] +**PassSubTime** | Pointer to **float32** | Time spent inside the `vcl_pass` Varnish subroutine (in nanoseconds). | [optional] +**PassSubCount** | Pointer to **int32** | Number of executions of the `vcl_pass` Varnish subroutine. | [optional] +**PipeSubTime** | Pointer to **float32** | Time spent inside the `vcl_pipe` Varnish subroutine (in nanoseconds). | [optional] +**PipeSubCount** | Pointer to **int32** | Number of executions of the `vcl_pipe` Varnish subroutine. | [optional] +**DeliverSubTime** | Pointer to **float32** | Time spent inside the `vcl_deliver` Varnish subroutine (in nanoseconds). | [optional] +**DeliverSubCount** | Pointer to **int32** | Number of executions of the `vcl_deliver` Varnish subroutine. | [optional] +**ErrorSubTime** | Pointer to **float32** | Time spent inside the `vcl_error` Varnish subroutine (in nanoseconds). | [optional] +**ErrorSubCount** | Pointer to **int32** | Number of executions of the `vcl_error` Varnish subroutine. | [optional] +**HitSubTime** | Pointer to **float32** | Time spent inside the `vcl_hit` Varnish subroutine (in nanoseconds). | [optional] +**HitSubCount** | Pointer to **int32** | Number of executions of the `vcl_hit` Varnish subroutine. | [optional] +**PrehashSubTime** | Pointer to **float32** | Time spent inside the `vcl_prehash` Varnish subroutine (in nanoseconds). | [optional] +**PrehashSubCount** | Pointer to **int32** | Number of executions of the `vcl_prehash` Varnish subroutine. | [optional] +**PredeliverSubTime** | Pointer to **float32** | Time spent inside the `vcl_predeliver` Varnish subroutine (in nanoseconds). | [optional] +**PredeliverSubCount** | Pointer to **int32** | Number of executions of the `vcl_predeliver` Varnish subroutine. | [optional] +**HitRespBodyBytes** | Pointer to **int32** | Total body bytes delivered for cache hits. | [optional] +**MissRespBodyBytes** | Pointer to **int32** | Total body bytes delivered for cache misses. | [optional] +**PassRespBodyBytes** | Pointer to **int32** | Total body bytes delivered for cache passes. | [optional] +**ComputeReqHeaderBytes** | Pointer to **int32** | Total header bytes received by Compute@Edge. | [optional] +**ComputeReqBodyBytes** | Pointer to **int32** | Total body bytes received by Compute@Edge. | [optional] +**ComputeRespHeaderBytes** | Pointer to **int32** | Total header bytes sent from Compute@Edge to end user. | [optional] +**ComputeRespBodyBytes** | Pointer to **int32** | Total body bytes sent from Compute@Edge to end user. | [optional] +**Imgvideo** | Pointer to **int32** | Number of video responses that came from the Fastly Image Optimizer service. | [optional] +**ImgvideoFrames** | Pointer to **int32** | Number of video frames that came from the Fastly Image Optimizer service. A video frame is an individual image within a sequence of video. | [optional] +**ImgvideoRespHeaderBytes** | Pointer to **int32** | Total header bytes of video delivered from the Fastly Image Optimizer service. | [optional] +**ImgvideoRespBodyBytes** | Pointer to **int32** | Total body bytes of video delivered from the Fastly Image Optimizer service. | [optional] +**ImgvideoShield** | Pointer to **int32** | Number of video responses delivered via a shield that came from the Fastly Image Optimizer service. | [optional] +**ImgvideoShieldFrames** | Pointer to **int32** | Number of video frames delivered via a shield that came from the Fastly Image Optimizer service. A video frame is an individual image within a sequence of video. | [optional] +**ImgvideoShieldRespHeaderBytes** | Pointer to **int32** | Total header bytes of video delivered via a shield from the Fastly Image Optimizer service. | [optional] +**ImgvideoShieldRespBodyBytes** | Pointer to **int32** | Total body bytes of video delivered via a shield from the Fastly Image Optimizer service. | [optional] +**LogBytes** | Pointer to **int32** | Total log bytes sent. | [optional] +**EdgeRequests** | Pointer to **int32** | Number of requests sent by end users to Fastly. | [optional] +**EdgeRespHeaderBytes** | Pointer to **int32** | Total header bytes delivered from Fastly to the end user. | [optional] +**EdgeRespBodyBytes** | Pointer to **int32** | Total body bytes delivered from Fastly to the end user. | [optional] +**OriginRevalidations** | Pointer to **int32** | Number of responses received from origin with a `304` status code in response to an `If-Modified-Since` or `If-None-Match` request. Under regular scenarios, a revalidation will imply a cache hit. However, if using Fastly Image Optimizer or segmented caching this may result in a cache miss. | [optional] +**OriginFetches** | Pointer to **int32** | Number of requests sent to origin. | [optional] +**OriginFetchHeaderBytes** | Pointer to **int32** | Total request header bytes sent to origin. | [optional] +**OriginFetchBodyBytes** | Pointer to **int32** | Total request body bytes sent to origin. | [optional] +**OriginFetchRespHeaderBytes** | Pointer to **int32** | Total header bytes received from origin. | [optional] +**OriginFetchRespBodyBytes** | Pointer to **int32** | Total body bytes received from origin. | [optional] +**ShieldRevalidations** | Pointer to **int32** | Number of responses received from origin with a `304` status code, in response to an `If-Modified-Since` or `If-None-Match` request to a shield. Under regular scenarios, a revalidation will imply a cache hit. However, if using segmented caching this may result in a cache miss. | [optional] +**ShieldFetches** | Pointer to **int32** | Number of requests made from one Fastly POP to another, as part of shielding. | [optional] +**ShieldFetchHeaderBytes** | Pointer to **int32** | Total request header bytes sent to a shield. | [optional] +**ShieldFetchBodyBytes** | Pointer to **int32** | Total request body bytes sent to a shield. | [optional] +**ShieldFetchRespHeaderBytes** | Pointer to **int32** | Total response header bytes sent from a shield to the edge. | [optional] +**ShieldFetchRespBodyBytes** | Pointer to **int32** | Total response body bytes sent from a shield to the edge. | [optional] +**SegblockOriginFetches** | Pointer to **int32** | Number of `Range` requests to origin for segments of resources when using segmented caching. | [optional] +**SegblockShieldFetches** | Pointer to **int32** | Number of `Range` requests to a shield for segments of resources when using segmented caching. | [optional] +**ComputeRespStatus1xx** | Pointer to **int32** | Number of \"Informational\" category status codes delivered by Compute@Edge. | [optional] +**ComputeRespStatus2xx** | Pointer to **int32** | Number of \"Success\" category status codes delivered by Compute@Edge. | [optional] +**ComputeRespStatus3xx** | Pointer to **int32** | Number of \"Redirection\" category status codes delivered by Compute@Edge. | [optional] +**ComputeRespStatus4xx** | Pointer to **int32** | Number of \"Client Error\" category status codes delivered by Compute@Edge. | [optional] +**ComputeRespStatus5xx** | Pointer to **int32** | Number of \"Server Error\" category status codes delivered by Compute@Edge. | [optional] +**EdgeHitRequests** | Pointer to **int32** | Number of requests sent by end users to Fastly that resulted in a hit at the edge. | [optional] +**EdgeMissRequests** | Pointer to **int32** | Number of requests sent by end users to Fastly that resulted in a miss at the edge. | [optional] +**ComputeBereqHeaderBytes** | Pointer to **int32** | Total header bytes sent to backends (origins) by Compute@Edge. | [optional] +**ComputeBereqBodyBytes** | Pointer to **int32** | Total body bytes sent to backends (origins) by Compute@Edge. | [optional] +**ComputeBerespHeaderBytes** | Pointer to **int32** | Total header bytes received from backends (origins) by Compute@Edge. | [optional] +**ComputeBerespBodyBytes** | Pointer to **int32** | Total body bytes received from backends (origins) by Compute@Edge. | [optional] +**OriginCacheFetches** | Pointer to **int32** | The total number of completed requests made to backends (origins) that returned cacheable content. | [optional] +**ShieldCacheFetches** | Pointer to **int32** | The total number of completed requests made to shields that returned cacheable content. | [optional] +**ComputeBereqs** | Pointer to **int32** | Number of backend requests started. | [optional] +**ComputeBereqErrors** | Pointer to **int32** | Number of backend request errors, including timeouts. | [optional] +**ComputeResourceLimitExceeded** | Pointer to **int32** | Number of times a guest exceeded its resource limit, includes heap, stack, globals, and code execution timeout. | [optional] +**ComputeHeapLimitExceeded** | Pointer to **int32** | Number of times a guest exceeded its heap limit. | [optional] +**ComputeStackLimitExceeded** | Pointer to **int32** | Number of times a guest exceeded its stack limit. | [optional] +**ComputeGlobalsLimitExceeded** | Pointer to **int32** | Number of times a guest exceeded its globals limit. | [optional] +**ComputeGuestErrors** | Pointer to **int32** | Number of times a service experienced a guest code error. | [optional] +**ComputeRuntimeErrors** | Pointer to **int32** | Number of times a service experienced a guest runtime error. | [optional] +**EdgeHitRespBodyBytes** | Pointer to **int32** | Body bytes delivered for edge hits. | [optional] +**EdgeHitRespHeaderBytes** | Pointer to **int32** | Header bytes delivered for edge hits. | [optional] +**EdgeMissRespBodyBytes** | Pointer to **int32** | Body bytes delivered for edge misses. | [optional] +**EdgeMissRespHeaderBytes** | Pointer to **int32** | Header bytes delivered for edge misses. | [optional] +**OriginCacheFetchRespBodyBytes** | Pointer to **int32** | Body bytes received from origin for cacheable content. | [optional] +**OriginCacheFetchRespHeaderBytes** | Pointer to **int32** | Header bytes received from an origin for cacheable content. | [optional] +**ShieldHitRequests** | Pointer to **int32** | Number of requests that resulted in a hit at a shield. | [optional] +**ShieldMissRequests** | Pointer to **int32** | Number of requests that resulted in a miss at a shield. | [optional] +**ShieldHitRespHeaderBytes** | Pointer to **int32** | Header bytes delivered for shield hits. | [optional] +**ShieldHitRespBodyBytes** | Pointer to **int32** | Body bytes delivered for shield hits. | [optional] +**ShieldMissRespHeaderBytes** | Pointer to **int32** | Header bytes delivered for shield misses. | [optional] +**ShieldMissRespBodyBytes** | Pointer to **int32** | Body bytes delivered for shield misses. | [optional] +**WebsocketReqHeaderBytes** | Pointer to **int32** | Total header bytes received from end users over passthrough WebSocket connections. | [optional] +**WebsocketReqBodyBytes** | Pointer to **int32** | Total message content bytes received from end users over passthrough WebSocket connections. | [optional] +**WebsocketRespHeaderBytes** | Pointer to **int32** | Total header bytes sent to end users over passthrough WebSocket connections. | [optional] +**WebsocketBereqHeaderBytes** | Pointer to **int32** | Total header bytes sent to backends over passthrough WebSocket connections. | [optional] +**WebsocketBereqBodyBytes** | Pointer to **int32** | Total message content bytes sent to backends over passthrough WebSocket connections. | [optional] +**WebsocketBerespHeaderBytes** | Pointer to **int32** | Total header bytes received from backends over passthrough WebSocket connections. | [optional] +**WebsocketBerespBodyBytes** | Pointer to **int32** | Total message content bytes received from backends over passthrough WebSocket connections. | [optional] +**WebsocketConnTimeMs** | Pointer to **int32** | Total duration of passthrough WebSocket connections with end users. | [optional] +**WebsocketRespBodyBytes** | Pointer to **int32** | Total message content bytes sent to end users over passthrough WebSocket connections. | [optional] +**FanoutRecvPublishes** | Pointer to **int32** | Total published messages received from the publish API endpoint. | [optional] +**FanoutSendPublishes** | Pointer to **int32** | Total published messages sent to end users. | [optional] +**KvStoreClassAOperations** | Pointer to **int32** | The total number of class a operations for the KV store. | [optional] +**KvStoreClassBOperations** | Pointer to **int32** | The total number of class b operations for the KV store. | [optional] +**ObjectStoreClassAOperations** | Pointer to **int32** | Use kv_store_class_a_operations. | [optional] +**ObjectStoreClassBOperations** | Pointer to **int32** | Use kv_store_class_b_operations. | [optional] +**FanoutReqHeaderBytes** | Pointer to **int32** | Total header bytes received from end users over Fanout connections. | [optional] +**FanoutReqBodyBytes** | Pointer to **int32** | Total body or message content bytes received from end users over Fanout connections. | [optional] +**FanoutRespHeaderBytes** | Pointer to **int32** | Total header bytes sent to end users over Fanout connections. | [optional] +**FanoutRespBodyBytes** | Pointer to **int32** | Total body or message content bytes sent to end users over Fanout connections, excluding published message content. | [optional] +**FanoutBereqHeaderBytes** | Pointer to **int32** | Total header bytes sent to backends over Fanout connections. | [optional] +**FanoutBereqBodyBytes** | Pointer to **int32** | Total body or message content bytes sent to backends over Fanout connections. | [optional] +**FanoutBerespHeaderBytes** | Pointer to **int32** | Total header bytes received from backends over Fanout connections. | [optional] +**FanoutBerespBodyBytes** | Pointer to **int32** | Total body or message content bytes received from backends over Fanout connections. | [optional] +**FanoutConnTimeMs** | Pointer to **int32** | Total duration of Fanout connections with end users. | [optional] +**DdosActionLimitStreamsConnections** | Pointer to **int32** | For HTTP/2, the number of connections the limit-streams action was applied to. The limit-streams action caps the allowed number of concurrent streams in a connection. | [optional] +**DdosActionLimitStreamsRequests** | Pointer to **int32** | For HTTP/2, the number of requests made on a connection for which the limit-streams action was taken. The limit-streams action caps the allowed number of concurrent streams in a connection. | [optional] +**DdosActionTarpitAccept** | Pointer to **int32** | The number of times the tarpit-accept action was taken. The tarpit-accept action adds a delay when accepting future connections. | [optional] +**DdosActionTarpit** | Pointer to **int32** | The number of times the tarpit action was taken. The tarpit action delays writing the response to the client. | [optional] +**DdosActionClose** | Pointer to **int32** | The number of times the close action was taken. The close action aborts the connection as soon as possible. The close action takes effect either right after accept, right after the client hello, or right after the response was sent. | [optional] +**DdosActionBlackhole** | Pointer to **int32** | The number of times the blackhole action was taken. The blackhole action quietly closes a TCP connection without sending a reset. The blackhole action quietly closes a TCP connection without notifying its peer (all TCP state is dropped). | [optional] + +## Methods + +### NewRealtimeEntryAggregated + +`func NewRealtimeEntryAggregated() *RealtimeEntryAggregated` + +NewRealtimeEntryAggregated instantiates a new RealtimeEntryAggregated object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewRealtimeEntryAggregatedWithDefaults + +`func NewRealtimeEntryAggregatedWithDefaults() *RealtimeEntryAggregated` + +NewRealtimeEntryAggregatedWithDefaults instantiates a new RealtimeEntryAggregated object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetRequests + +`func (o *RealtimeEntryAggregated) GetRequests() int32` + +GetRequests returns the Requests field if non-nil, zero value otherwise. + +### GetRequestsOk + +`func (o *RealtimeEntryAggregated) GetRequestsOk() (*int32, bool)` + +GetRequestsOk returns a tuple with the Requests field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRequests + +`func (o *RealtimeEntryAggregated) SetRequests(v int32)` + +SetRequests sets Requests field to given value. + +### HasRequests + +`func (o *RealtimeEntryAggregated) HasRequests() bool` + +HasRequests returns a boolean if a field has been set. + +### GetLogging + +`func (o *RealtimeEntryAggregated) GetLogging() int32` + +GetLogging returns the Logging field if non-nil, zero value otherwise. + +### GetLoggingOk + +`func (o *RealtimeEntryAggregated) GetLoggingOk() (*int32, bool)` + +GetLoggingOk returns a tuple with the Logging field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLogging + +`func (o *RealtimeEntryAggregated) SetLogging(v int32)` + +SetLogging sets Logging field to given value. + +### HasLogging + +`func (o *RealtimeEntryAggregated) HasLogging() bool` + +HasLogging returns a boolean if a field has been set. + +### GetLog + +`func (o *RealtimeEntryAggregated) GetLog() int32` + +GetLog returns the Log field if non-nil, zero value otherwise. + +### GetLogOk + +`func (o *RealtimeEntryAggregated) GetLogOk() (*int32, bool)` + +GetLogOk returns a tuple with the Log field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLog + +`func (o *RealtimeEntryAggregated) SetLog(v int32)` + +SetLog sets Log field to given value. + +### HasLog + +`func (o *RealtimeEntryAggregated) HasLog() bool` + +HasLog returns a boolean if a field has been set. + +### GetRespHeaderBytes + +`func (o *RealtimeEntryAggregated) GetRespHeaderBytes() int32` + +GetRespHeaderBytes returns the RespHeaderBytes field if non-nil, zero value otherwise. + +### GetRespHeaderBytesOk + +`func (o *RealtimeEntryAggregated) GetRespHeaderBytesOk() (*int32, bool)` + +GetRespHeaderBytesOk returns a tuple with the RespHeaderBytes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRespHeaderBytes + +`func (o *RealtimeEntryAggregated) SetRespHeaderBytes(v int32)` + +SetRespHeaderBytes sets RespHeaderBytes field to given value. + +### HasRespHeaderBytes + +`func (o *RealtimeEntryAggregated) HasRespHeaderBytes() bool` + +HasRespHeaderBytes returns a boolean if a field has been set. + +### GetHeaderSize + +`func (o *RealtimeEntryAggregated) GetHeaderSize() int32` + +GetHeaderSize returns the HeaderSize field if non-nil, zero value otherwise. + +### GetHeaderSizeOk + +`func (o *RealtimeEntryAggregated) GetHeaderSizeOk() (*int32, bool)` + +GetHeaderSizeOk returns a tuple with the HeaderSize field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHeaderSize + +`func (o *RealtimeEntryAggregated) SetHeaderSize(v int32)` + +SetHeaderSize sets HeaderSize field to given value. + +### HasHeaderSize + +`func (o *RealtimeEntryAggregated) HasHeaderSize() bool` + +HasHeaderSize returns a boolean if a field has been set. + +### GetRespBodyBytes + +`func (o *RealtimeEntryAggregated) GetRespBodyBytes() int32` + +GetRespBodyBytes returns the RespBodyBytes field if non-nil, zero value otherwise. + +### GetRespBodyBytesOk + +`func (o *RealtimeEntryAggregated) GetRespBodyBytesOk() (*int32, bool)` + +GetRespBodyBytesOk returns a tuple with the RespBodyBytes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRespBodyBytes + +`func (o *RealtimeEntryAggregated) SetRespBodyBytes(v int32)` + +SetRespBodyBytes sets RespBodyBytes field to given value. + +### HasRespBodyBytes + +`func (o *RealtimeEntryAggregated) HasRespBodyBytes() bool` + +HasRespBodyBytes returns a boolean if a field has been set. + +### GetBodySize + +`func (o *RealtimeEntryAggregated) GetBodySize() int32` + +GetBodySize returns the BodySize field if non-nil, zero value otherwise. + +### GetBodySizeOk + +`func (o *RealtimeEntryAggregated) GetBodySizeOk() (*int32, bool)` + +GetBodySizeOk returns a tuple with the BodySize field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBodySize + +`func (o *RealtimeEntryAggregated) SetBodySize(v int32)` + +SetBodySize sets BodySize field to given value. + +### HasBodySize + +`func (o *RealtimeEntryAggregated) HasBodySize() bool` + +HasBodySize returns a boolean if a field has been set. + +### GetHits + +`func (o *RealtimeEntryAggregated) GetHits() int32` + +GetHits returns the Hits field if non-nil, zero value otherwise. + +### GetHitsOk + +`func (o *RealtimeEntryAggregated) GetHitsOk() (*int32, bool)` + +GetHitsOk returns a tuple with the Hits field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHits + +`func (o *RealtimeEntryAggregated) SetHits(v int32)` + +SetHits sets Hits field to given value. + +### HasHits + +`func (o *RealtimeEntryAggregated) HasHits() bool` + +HasHits returns a boolean if a field has been set. + +### GetMiss + +`func (o *RealtimeEntryAggregated) GetMiss() int32` + +GetMiss returns the Miss field if non-nil, zero value otherwise. + +### GetMissOk + +`func (o *RealtimeEntryAggregated) GetMissOk() (*int32, bool)` + +GetMissOk returns a tuple with the Miss field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMiss + +`func (o *RealtimeEntryAggregated) SetMiss(v int32)` + +SetMiss sets Miss field to given value. + +### HasMiss + +`func (o *RealtimeEntryAggregated) HasMiss() bool` + +HasMiss returns a boolean if a field has been set. + +### GetPass + +`func (o *RealtimeEntryAggregated) GetPass() int32` + +GetPass returns the Pass field if non-nil, zero value otherwise. + +### GetPassOk + +`func (o *RealtimeEntryAggregated) GetPassOk() (*int32, bool)` + +GetPassOk returns a tuple with the Pass field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPass + +`func (o *RealtimeEntryAggregated) SetPass(v int32)` + +SetPass sets Pass field to given value. + +### HasPass + +`func (o *RealtimeEntryAggregated) HasPass() bool` + +HasPass returns a boolean if a field has been set. + +### GetSynth + +`func (o *RealtimeEntryAggregated) GetSynth() int32` + +GetSynth returns the Synth field if non-nil, zero value otherwise. + +### GetSynthOk + +`func (o *RealtimeEntryAggregated) GetSynthOk() (*int32, bool)` + +GetSynthOk returns a tuple with the Synth field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSynth + +`func (o *RealtimeEntryAggregated) SetSynth(v int32)` + +SetSynth sets Synth field to given value. + +### HasSynth + +`func (o *RealtimeEntryAggregated) HasSynth() bool` + +HasSynth returns a boolean if a field has been set. + +### GetErrors + +`func (o *RealtimeEntryAggregated) GetErrors() int32` + +GetErrors returns the Errors field if non-nil, zero value otherwise. + +### GetErrorsOk + +`func (o *RealtimeEntryAggregated) GetErrorsOk() (*int32, bool)` + +GetErrorsOk returns a tuple with the Errors field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetErrors + +`func (o *RealtimeEntryAggregated) SetErrors(v int32)` + +SetErrors sets Errors field to given value. + +### HasErrors + +`func (o *RealtimeEntryAggregated) HasErrors() bool` + +HasErrors returns a boolean if a field has been set. + +### GetHitsTime + +`func (o *RealtimeEntryAggregated) GetHitsTime() float32` + +GetHitsTime returns the HitsTime field if non-nil, zero value otherwise. + +### GetHitsTimeOk + +`func (o *RealtimeEntryAggregated) GetHitsTimeOk() (*float32, bool)` + +GetHitsTimeOk returns a tuple with the HitsTime field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHitsTime + +`func (o *RealtimeEntryAggregated) SetHitsTime(v float32)` + +SetHitsTime sets HitsTime field to given value. + +### HasHitsTime + +`func (o *RealtimeEntryAggregated) HasHitsTime() bool` + +HasHitsTime returns a boolean if a field has been set. + +### GetMissTime + +`func (o *RealtimeEntryAggregated) GetMissTime() float32` + +GetMissTime returns the MissTime field if non-nil, zero value otherwise. + +### GetMissTimeOk + +`func (o *RealtimeEntryAggregated) GetMissTimeOk() (*float32, bool)` + +GetMissTimeOk returns a tuple with the MissTime field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMissTime + +`func (o *RealtimeEntryAggregated) SetMissTime(v float32)` + +SetMissTime sets MissTime field to given value. + +### HasMissTime + +`func (o *RealtimeEntryAggregated) HasMissTime() bool` + +HasMissTime returns a boolean if a field has been set. + +### GetMissHistogram + +`func (o *RealtimeEntryAggregated) GetMissHistogram() map[string]map[string]any` + +GetMissHistogram returns the MissHistogram field if non-nil, zero value otherwise. + +### GetMissHistogramOk + +`func (o *RealtimeEntryAggregated) GetMissHistogramOk() (*map[string]map[string]any, bool)` + +GetMissHistogramOk returns a tuple with the MissHistogram field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMissHistogram + +`func (o *RealtimeEntryAggregated) SetMissHistogram(v map[string]map[string]any)` + +SetMissHistogram sets MissHistogram field to given value. + +### HasMissHistogram + +`func (o *RealtimeEntryAggregated) HasMissHistogram() bool` + +HasMissHistogram returns a boolean if a field has been set. + +### GetComputeRequests + +`func (o *RealtimeEntryAggregated) GetComputeRequests() int32` + +GetComputeRequests returns the ComputeRequests field if non-nil, zero value otherwise. + +### GetComputeRequestsOk + +`func (o *RealtimeEntryAggregated) GetComputeRequestsOk() (*int32, bool)` + +GetComputeRequestsOk returns a tuple with the ComputeRequests field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComputeRequests + +`func (o *RealtimeEntryAggregated) SetComputeRequests(v int32)` + +SetComputeRequests sets ComputeRequests field to given value. + +### HasComputeRequests + +`func (o *RealtimeEntryAggregated) HasComputeRequests() bool` + +HasComputeRequests returns a boolean if a field has been set. + +### GetComputeExecutionTimeMs + +`func (o *RealtimeEntryAggregated) GetComputeExecutionTimeMs() float32` + +GetComputeExecutionTimeMs returns the ComputeExecutionTimeMs field if non-nil, zero value otherwise. + +### GetComputeExecutionTimeMsOk + +`func (o *RealtimeEntryAggregated) GetComputeExecutionTimeMsOk() (*float32, bool)` + +GetComputeExecutionTimeMsOk returns a tuple with the ComputeExecutionTimeMs field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComputeExecutionTimeMs + +`func (o *RealtimeEntryAggregated) SetComputeExecutionTimeMs(v float32)` + +SetComputeExecutionTimeMs sets ComputeExecutionTimeMs field to given value. + +### HasComputeExecutionTimeMs + +`func (o *RealtimeEntryAggregated) HasComputeExecutionTimeMs() bool` + +HasComputeExecutionTimeMs returns a boolean if a field has been set. + +### GetComputeRAMUsed + +`func (o *RealtimeEntryAggregated) GetComputeRAMUsed() int32` + +GetComputeRAMUsed returns the ComputeRAMUsed field if non-nil, zero value otherwise. + +### GetComputeRAMUsedOk + +`func (o *RealtimeEntryAggregated) GetComputeRAMUsedOk() (*int32, bool)` + +GetComputeRAMUsedOk returns a tuple with the ComputeRAMUsed field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComputeRAMUsed + +`func (o *RealtimeEntryAggregated) SetComputeRAMUsed(v int32)` + +SetComputeRAMUsed sets ComputeRAMUsed field to given value. + +### HasComputeRAMUsed + +`func (o *RealtimeEntryAggregated) HasComputeRAMUsed() bool` + +HasComputeRAMUsed returns a boolean if a field has been set. + +### GetComputeRequestTimeMs + +`func (o *RealtimeEntryAggregated) GetComputeRequestTimeMs() float32` + +GetComputeRequestTimeMs returns the ComputeRequestTimeMs field if non-nil, zero value otherwise. + +### GetComputeRequestTimeMsOk + +`func (o *RealtimeEntryAggregated) GetComputeRequestTimeMsOk() (*float32, bool)` + +GetComputeRequestTimeMsOk returns a tuple with the ComputeRequestTimeMs field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComputeRequestTimeMs + +`func (o *RealtimeEntryAggregated) SetComputeRequestTimeMs(v float32)` + +SetComputeRequestTimeMs sets ComputeRequestTimeMs field to given value. + +### HasComputeRequestTimeMs + +`func (o *RealtimeEntryAggregated) HasComputeRequestTimeMs() bool` + +HasComputeRequestTimeMs returns a boolean if a field has been set. + +### GetComputeRequestTimeBilledMs + +`func (o *RealtimeEntryAggregated) GetComputeRequestTimeBilledMs() float32` + +GetComputeRequestTimeBilledMs returns the ComputeRequestTimeBilledMs field if non-nil, zero value otherwise. + +### GetComputeRequestTimeBilledMsOk + +`func (o *RealtimeEntryAggregated) GetComputeRequestTimeBilledMsOk() (*float32, bool)` + +GetComputeRequestTimeBilledMsOk returns a tuple with the ComputeRequestTimeBilledMs field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComputeRequestTimeBilledMs + +`func (o *RealtimeEntryAggregated) SetComputeRequestTimeBilledMs(v float32)` + +SetComputeRequestTimeBilledMs sets ComputeRequestTimeBilledMs field to given value. + +### HasComputeRequestTimeBilledMs + +`func (o *RealtimeEntryAggregated) HasComputeRequestTimeBilledMs() bool` + +HasComputeRequestTimeBilledMs returns a boolean if a field has been set. + +### GetShield + +`func (o *RealtimeEntryAggregated) GetShield() int32` + +GetShield returns the Shield field if non-nil, zero value otherwise. + +### GetShieldOk + +`func (o *RealtimeEntryAggregated) GetShieldOk() (*int32, bool)` + +GetShieldOk returns a tuple with the Shield field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetShield + +`func (o *RealtimeEntryAggregated) SetShield(v int32)` + +SetShield sets Shield field to given value. + +### HasShield + +`func (o *RealtimeEntryAggregated) HasShield() bool` + +HasShield returns a boolean if a field has been set. + +### GetIpv6 + +`func (o *RealtimeEntryAggregated) GetIpv6() int32` + +GetIpv6 returns the Ipv6 field if non-nil, zero value otherwise. + +### GetIpv6Ok + +`func (o *RealtimeEntryAggregated) GetIpv6Ok() (*int32, bool)` + +GetIpv6Ok returns a tuple with the Ipv6 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIpv6 + +`func (o *RealtimeEntryAggregated) SetIpv6(v int32)` + +SetIpv6 sets Ipv6 field to given value. + +### HasIpv6 + +`func (o *RealtimeEntryAggregated) HasIpv6() bool` + +HasIpv6 returns a boolean if a field has been set. + +### GetImgopto + +`func (o *RealtimeEntryAggregated) GetImgopto() int32` + +GetImgopto returns the Imgopto field if non-nil, zero value otherwise. + +### GetImgoptoOk + +`func (o *RealtimeEntryAggregated) GetImgoptoOk() (*int32, bool)` + +GetImgoptoOk returns a tuple with the Imgopto field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetImgopto + +`func (o *RealtimeEntryAggregated) SetImgopto(v int32)` + +SetImgopto sets Imgopto field to given value. + +### HasImgopto + +`func (o *RealtimeEntryAggregated) HasImgopto() bool` + +HasImgopto returns a boolean if a field has been set. + +### GetImgoptoShield + +`func (o *RealtimeEntryAggregated) GetImgoptoShield() int32` + +GetImgoptoShield returns the ImgoptoShield field if non-nil, zero value otherwise. + +### GetImgoptoShieldOk + +`func (o *RealtimeEntryAggregated) GetImgoptoShieldOk() (*int32, bool)` + +GetImgoptoShieldOk returns a tuple with the ImgoptoShield field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetImgoptoShield + +`func (o *RealtimeEntryAggregated) SetImgoptoShield(v int32)` + +SetImgoptoShield sets ImgoptoShield field to given value. + +### HasImgoptoShield + +`func (o *RealtimeEntryAggregated) HasImgoptoShield() bool` + +HasImgoptoShield returns a boolean if a field has been set. + +### GetImgoptoTransforms + +`func (o *RealtimeEntryAggregated) GetImgoptoTransforms() int32` + +GetImgoptoTransforms returns the ImgoptoTransforms field if non-nil, zero value otherwise. + +### GetImgoptoTransformsOk + +`func (o *RealtimeEntryAggregated) GetImgoptoTransformsOk() (*int32, bool)` + +GetImgoptoTransformsOk returns a tuple with the ImgoptoTransforms field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetImgoptoTransforms + +`func (o *RealtimeEntryAggregated) SetImgoptoTransforms(v int32)` + +SetImgoptoTransforms sets ImgoptoTransforms field to given value. + +### HasImgoptoTransforms + +`func (o *RealtimeEntryAggregated) HasImgoptoTransforms() bool` + +HasImgoptoTransforms returns a boolean if a field has been set. + +### GetOtfp + +`func (o *RealtimeEntryAggregated) GetOtfp() int32` + +GetOtfp returns the Otfp field if non-nil, zero value otherwise. + +### GetOtfpOk + +`func (o *RealtimeEntryAggregated) GetOtfpOk() (*int32, bool)` + +GetOtfpOk returns a tuple with the Otfp field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOtfp + +`func (o *RealtimeEntryAggregated) SetOtfp(v int32)` + +SetOtfp sets Otfp field to given value. + +### HasOtfp + +`func (o *RealtimeEntryAggregated) HasOtfp() bool` + +HasOtfp returns a boolean if a field has been set. + +### GetOtfpShield + +`func (o *RealtimeEntryAggregated) GetOtfpShield() int32` + +GetOtfpShield returns the OtfpShield field if non-nil, zero value otherwise. + +### GetOtfpShieldOk + +`func (o *RealtimeEntryAggregated) GetOtfpShieldOk() (*int32, bool)` + +GetOtfpShieldOk returns a tuple with the OtfpShield field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOtfpShield + +`func (o *RealtimeEntryAggregated) SetOtfpShield(v int32)` + +SetOtfpShield sets OtfpShield field to given value. + +### HasOtfpShield + +`func (o *RealtimeEntryAggregated) HasOtfpShield() bool` + +HasOtfpShield returns a boolean if a field has been set. + +### GetOtfpManifests + +`func (o *RealtimeEntryAggregated) GetOtfpManifests() int32` + +GetOtfpManifests returns the OtfpManifests field if non-nil, zero value otherwise. + +### GetOtfpManifestsOk + +`func (o *RealtimeEntryAggregated) GetOtfpManifestsOk() (*int32, bool)` + +GetOtfpManifestsOk returns a tuple with the OtfpManifests field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOtfpManifests + +`func (o *RealtimeEntryAggregated) SetOtfpManifests(v int32)` + +SetOtfpManifests sets OtfpManifests field to given value. + +### HasOtfpManifests + +`func (o *RealtimeEntryAggregated) HasOtfpManifests() bool` + +HasOtfpManifests returns a boolean if a field has been set. + +### GetVideo + +`func (o *RealtimeEntryAggregated) GetVideo() int32` + +GetVideo returns the Video field if non-nil, zero value otherwise. + +### GetVideoOk + +`func (o *RealtimeEntryAggregated) GetVideoOk() (*int32, bool)` + +GetVideoOk returns a tuple with the Video field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVideo + +`func (o *RealtimeEntryAggregated) SetVideo(v int32)` + +SetVideo sets Video field to given value. + +### HasVideo + +`func (o *RealtimeEntryAggregated) HasVideo() bool` + +HasVideo returns a boolean if a field has been set. + +### GetPci + +`func (o *RealtimeEntryAggregated) GetPci() int32` + +GetPci returns the Pci field if non-nil, zero value otherwise. + +### GetPciOk + +`func (o *RealtimeEntryAggregated) GetPciOk() (*int32, bool)` + +GetPciOk returns a tuple with the Pci field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPci + +`func (o *RealtimeEntryAggregated) SetPci(v int32)` + +SetPci sets Pci field to given value. + +### HasPci + +`func (o *RealtimeEntryAggregated) HasPci() bool` + +HasPci returns a boolean if a field has been set. + +### GetHTTP2 + +`func (o *RealtimeEntryAggregated) GetHTTP2() int32` + +GetHTTP2 returns the HTTP2 field if non-nil, zero value otherwise. + +### GetHTTP2Ok + +`func (o *RealtimeEntryAggregated) GetHTTP2Ok() (*int32, bool)` + +GetHTTP2Ok returns a tuple with the HTTP2 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHTTP2 + +`func (o *RealtimeEntryAggregated) SetHTTP2(v int32)` + +SetHTTP2 sets HTTP2 field to given value. + +### HasHTTP2 + +`func (o *RealtimeEntryAggregated) HasHTTP2() bool` + +HasHTTP2 returns a boolean if a field has been set. + +### GetHTTP3 + +`func (o *RealtimeEntryAggregated) GetHTTP3() int32` + +GetHTTP3 returns the HTTP3 field if non-nil, zero value otherwise. + +### GetHTTP3Ok + +`func (o *RealtimeEntryAggregated) GetHTTP3Ok() (*int32, bool)` + +GetHTTP3Ok returns a tuple with the HTTP3 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHTTP3 + +`func (o *RealtimeEntryAggregated) SetHTTP3(v int32)` + +SetHTTP3 sets HTTP3 field to given value. + +### HasHTTP3 + +`func (o *RealtimeEntryAggregated) HasHTTP3() bool` + +HasHTTP3 returns a boolean if a field has been set. + +### GetRestarts + +`func (o *RealtimeEntryAggregated) GetRestarts() int32` + +GetRestarts returns the Restarts field if non-nil, zero value otherwise. + +### GetRestartsOk + +`func (o *RealtimeEntryAggregated) GetRestartsOk() (*int32, bool)` + +GetRestartsOk returns a tuple with the Restarts field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRestarts + +`func (o *RealtimeEntryAggregated) SetRestarts(v int32)` + +SetRestarts sets Restarts field to given value. + +### HasRestarts + +`func (o *RealtimeEntryAggregated) HasRestarts() bool` + +HasRestarts returns a boolean if a field has been set. + +### GetReqHeaderBytes + +`func (o *RealtimeEntryAggregated) GetReqHeaderBytes() int32` + +GetReqHeaderBytes returns the ReqHeaderBytes field if non-nil, zero value otherwise. + +### GetReqHeaderBytesOk + +`func (o *RealtimeEntryAggregated) GetReqHeaderBytesOk() (*int32, bool)` + +GetReqHeaderBytesOk returns a tuple with the ReqHeaderBytes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReqHeaderBytes + +`func (o *RealtimeEntryAggregated) SetReqHeaderBytes(v int32)` + +SetReqHeaderBytes sets ReqHeaderBytes field to given value. + +### HasReqHeaderBytes + +`func (o *RealtimeEntryAggregated) HasReqHeaderBytes() bool` + +HasReqHeaderBytes returns a boolean if a field has been set. + +### GetReqBodyBytes + +`func (o *RealtimeEntryAggregated) GetReqBodyBytes() int32` + +GetReqBodyBytes returns the ReqBodyBytes field if non-nil, zero value otherwise. + +### GetReqBodyBytesOk + +`func (o *RealtimeEntryAggregated) GetReqBodyBytesOk() (*int32, bool)` + +GetReqBodyBytesOk returns a tuple with the ReqBodyBytes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReqBodyBytes + +`func (o *RealtimeEntryAggregated) SetReqBodyBytes(v int32)` + +SetReqBodyBytes sets ReqBodyBytes field to given value. + +### HasReqBodyBytes + +`func (o *RealtimeEntryAggregated) HasReqBodyBytes() bool` + +HasReqBodyBytes returns a boolean if a field has been set. + +### GetBereqHeaderBytes + +`func (o *RealtimeEntryAggregated) GetBereqHeaderBytes() int32` + +GetBereqHeaderBytes returns the BereqHeaderBytes field if non-nil, zero value otherwise. + +### GetBereqHeaderBytesOk + +`func (o *RealtimeEntryAggregated) GetBereqHeaderBytesOk() (*int32, bool)` + +GetBereqHeaderBytesOk returns a tuple with the BereqHeaderBytes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBereqHeaderBytes + +`func (o *RealtimeEntryAggregated) SetBereqHeaderBytes(v int32)` + +SetBereqHeaderBytes sets BereqHeaderBytes field to given value. + +### HasBereqHeaderBytes + +`func (o *RealtimeEntryAggregated) HasBereqHeaderBytes() bool` + +HasBereqHeaderBytes returns a boolean if a field has been set. + +### GetBereqBodyBytes + +`func (o *RealtimeEntryAggregated) GetBereqBodyBytes() int32` + +GetBereqBodyBytes returns the BereqBodyBytes field if non-nil, zero value otherwise. + +### GetBereqBodyBytesOk + +`func (o *RealtimeEntryAggregated) GetBereqBodyBytesOk() (*int32, bool)` + +GetBereqBodyBytesOk returns a tuple with the BereqBodyBytes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBereqBodyBytes + +`func (o *RealtimeEntryAggregated) SetBereqBodyBytes(v int32)` + +SetBereqBodyBytes sets BereqBodyBytes field to given value. + +### HasBereqBodyBytes + +`func (o *RealtimeEntryAggregated) HasBereqBodyBytes() bool` + +HasBereqBodyBytes returns a boolean if a field has been set. + +### GetWafBlocked + +`func (o *RealtimeEntryAggregated) GetWafBlocked() int32` + +GetWafBlocked returns the WafBlocked field if non-nil, zero value otherwise. + +### GetWafBlockedOk + +`func (o *RealtimeEntryAggregated) GetWafBlockedOk() (*int32, bool)` + +GetWafBlockedOk returns a tuple with the WafBlocked field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWafBlocked + +`func (o *RealtimeEntryAggregated) SetWafBlocked(v int32)` + +SetWafBlocked sets WafBlocked field to given value. + +### HasWafBlocked + +`func (o *RealtimeEntryAggregated) HasWafBlocked() bool` + +HasWafBlocked returns a boolean if a field has been set. + +### GetWafLogged + +`func (o *RealtimeEntryAggregated) GetWafLogged() int32` + +GetWafLogged returns the WafLogged field if non-nil, zero value otherwise. + +### GetWafLoggedOk + +`func (o *RealtimeEntryAggregated) GetWafLoggedOk() (*int32, bool)` + +GetWafLoggedOk returns a tuple with the WafLogged field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWafLogged + +`func (o *RealtimeEntryAggregated) SetWafLogged(v int32)` + +SetWafLogged sets WafLogged field to given value. + +### HasWafLogged + +`func (o *RealtimeEntryAggregated) HasWafLogged() bool` + +HasWafLogged returns a boolean if a field has been set. + +### GetWafPassed + +`func (o *RealtimeEntryAggregated) GetWafPassed() int32` + +GetWafPassed returns the WafPassed field if non-nil, zero value otherwise. + +### GetWafPassedOk + +`func (o *RealtimeEntryAggregated) GetWafPassedOk() (*int32, bool)` + +GetWafPassedOk returns a tuple with the WafPassed field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWafPassed + +`func (o *RealtimeEntryAggregated) SetWafPassed(v int32)` + +SetWafPassed sets WafPassed field to given value. + +### HasWafPassed + +`func (o *RealtimeEntryAggregated) HasWafPassed() bool` + +HasWafPassed returns a boolean if a field has been set. + +### GetAttackReqHeaderBytes + +`func (o *RealtimeEntryAggregated) GetAttackReqHeaderBytes() int32` + +GetAttackReqHeaderBytes returns the AttackReqHeaderBytes field if non-nil, zero value otherwise. + +### GetAttackReqHeaderBytesOk + +`func (o *RealtimeEntryAggregated) GetAttackReqHeaderBytesOk() (*int32, bool)` + +GetAttackReqHeaderBytesOk returns a tuple with the AttackReqHeaderBytes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAttackReqHeaderBytes + +`func (o *RealtimeEntryAggregated) SetAttackReqHeaderBytes(v int32)` + +SetAttackReqHeaderBytes sets AttackReqHeaderBytes field to given value. + +### HasAttackReqHeaderBytes + +`func (o *RealtimeEntryAggregated) HasAttackReqHeaderBytes() bool` + +HasAttackReqHeaderBytes returns a boolean if a field has been set. + +### GetAttackReqBodyBytes + +`func (o *RealtimeEntryAggregated) GetAttackReqBodyBytes() int32` + +GetAttackReqBodyBytes returns the AttackReqBodyBytes field if non-nil, zero value otherwise. + +### GetAttackReqBodyBytesOk + +`func (o *RealtimeEntryAggregated) GetAttackReqBodyBytesOk() (*int32, bool)` + +GetAttackReqBodyBytesOk returns a tuple with the AttackReqBodyBytes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAttackReqBodyBytes + +`func (o *RealtimeEntryAggregated) SetAttackReqBodyBytes(v int32)` + +SetAttackReqBodyBytes sets AttackReqBodyBytes field to given value. + +### HasAttackReqBodyBytes + +`func (o *RealtimeEntryAggregated) HasAttackReqBodyBytes() bool` + +HasAttackReqBodyBytes returns a boolean if a field has been set. + +### GetAttackRespSynthBytes + +`func (o *RealtimeEntryAggregated) GetAttackRespSynthBytes() int32` + +GetAttackRespSynthBytes returns the AttackRespSynthBytes field if non-nil, zero value otherwise. + +### GetAttackRespSynthBytesOk + +`func (o *RealtimeEntryAggregated) GetAttackRespSynthBytesOk() (*int32, bool)` + +GetAttackRespSynthBytesOk returns a tuple with the AttackRespSynthBytes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAttackRespSynthBytes + +`func (o *RealtimeEntryAggregated) SetAttackRespSynthBytes(v int32)` + +SetAttackRespSynthBytes sets AttackRespSynthBytes field to given value. + +### HasAttackRespSynthBytes + +`func (o *RealtimeEntryAggregated) HasAttackRespSynthBytes() bool` + +HasAttackRespSynthBytes returns a boolean if a field has been set. + +### GetAttackLoggedReqHeaderBytes + +`func (o *RealtimeEntryAggregated) GetAttackLoggedReqHeaderBytes() int32` + +GetAttackLoggedReqHeaderBytes returns the AttackLoggedReqHeaderBytes field if non-nil, zero value otherwise. + +### GetAttackLoggedReqHeaderBytesOk + +`func (o *RealtimeEntryAggregated) GetAttackLoggedReqHeaderBytesOk() (*int32, bool)` + +GetAttackLoggedReqHeaderBytesOk returns a tuple with the AttackLoggedReqHeaderBytes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAttackLoggedReqHeaderBytes + +`func (o *RealtimeEntryAggregated) SetAttackLoggedReqHeaderBytes(v int32)` + +SetAttackLoggedReqHeaderBytes sets AttackLoggedReqHeaderBytes field to given value. + +### HasAttackLoggedReqHeaderBytes + +`func (o *RealtimeEntryAggregated) HasAttackLoggedReqHeaderBytes() bool` + +HasAttackLoggedReqHeaderBytes returns a boolean if a field has been set. + +### GetAttackLoggedReqBodyBytes + +`func (o *RealtimeEntryAggregated) GetAttackLoggedReqBodyBytes() int32` + +GetAttackLoggedReqBodyBytes returns the AttackLoggedReqBodyBytes field if non-nil, zero value otherwise. + +### GetAttackLoggedReqBodyBytesOk + +`func (o *RealtimeEntryAggregated) GetAttackLoggedReqBodyBytesOk() (*int32, bool)` + +GetAttackLoggedReqBodyBytesOk returns a tuple with the AttackLoggedReqBodyBytes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAttackLoggedReqBodyBytes + +`func (o *RealtimeEntryAggregated) SetAttackLoggedReqBodyBytes(v int32)` + +SetAttackLoggedReqBodyBytes sets AttackLoggedReqBodyBytes field to given value. + +### HasAttackLoggedReqBodyBytes + +`func (o *RealtimeEntryAggregated) HasAttackLoggedReqBodyBytes() bool` + +HasAttackLoggedReqBodyBytes returns a boolean if a field has been set. + +### GetAttackBlockedReqHeaderBytes + +`func (o *RealtimeEntryAggregated) GetAttackBlockedReqHeaderBytes() int32` + +GetAttackBlockedReqHeaderBytes returns the AttackBlockedReqHeaderBytes field if non-nil, zero value otherwise. + +### GetAttackBlockedReqHeaderBytesOk + +`func (o *RealtimeEntryAggregated) GetAttackBlockedReqHeaderBytesOk() (*int32, bool)` + +GetAttackBlockedReqHeaderBytesOk returns a tuple with the AttackBlockedReqHeaderBytes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAttackBlockedReqHeaderBytes + +`func (o *RealtimeEntryAggregated) SetAttackBlockedReqHeaderBytes(v int32)` + +SetAttackBlockedReqHeaderBytes sets AttackBlockedReqHeaderBytes field to given value. + +### HasAttackBlockedReqHeaderBytes + +`func (o *RealtimeEntryAggregated) HasAttackBlockedReqHeaderBytes() bool` + +HasAttackBlockedReqHeaderBytes returns a boolean if a field has been set. + +### GetAttackBlockedReqBodyBytes + +`func (o *RealtimeEntryAggregated) GetAttackBlockedReqBodyBytes() int32` + +GetAttackBlockedReqBodyBytes returns the AttackBlockedReqBodyBytes field if non-nil, zero value otherwise. + +### GetAttackBlockedReqBodyBytesOk + +`func (o *RealtimeEntryAggregated) GetAttackBlockedReqBodyBytesOk() (*int32, bool)` + +GetAttackBlockedReqBodyBytesOk returns a tuple with the AttackBlockedReqBodyBytes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAttackBlockedReqBodyBytes + +`func (o *RealtimeEntryAggregated) SetAttackBlockedReqBodyBytes(v int32)` + +SetAttackBlockedReqBodyBytes sets AttackBlockedReqBodyBytes field to given value. + +### HasAttackBlockedReqBodyBytes + +`func (o *RealtimeEntryAggregated) HasAttackBlockedReqBodyBytes() bool` + +HasAttackBlockedReqBodyBytes returns a boolean if a field has been set. + +### GetAttackPassedReqHeaderBytes + +`func (o *RealtimeEntryAggregated) GetAttackPassedReqHeaderBytes() int32` + +GetAttackPassedReqHeaderBytes returns the AttackPassedReqHeaderBytes field if non-nil, zero value otherwise. + +### GetAttackPassedReqHeaderBytesOk + +`func (o *RealtimeEntryAggregated) GetAttackPassedReqHeaderBytesOk() (*int32, bool)` + +GetAttackPassedReqHeaderBytesOk returns a tuple with the AttackPassedReqHeaderBytes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAttackPassedReqHeaderBytes + +`func (o *RealtimeEntryAggregated) SetAttackPassedReqHeaderBytes(v int32)` + +SetAttackPassedReqHeaderBytes sets AttackPassedReqHeaderBytes field to given value. + +### HasAttackPassedReqHeaderBytes + +`func (o *RealtimeEntryAggregated) HasAttackPassedReqHeaderBytes() bool` + +HasAttackPassedReqHeaderBytes returns a boolean if a field has been set. + +### GetAttackPassedReqBodyBytes + +`func (o *RealtimeEntryAggregated) GetAttackPassedReqBodyBytes() int32` + +GetAttackPassedReqBodyBytes returns the AttackPassedReqBodyBytes field if non-nil, zero value otherwise. + +### GetAttackPassedReqBodyBytesOk + +`func (o *RealtimeEntryAggregated) GetAttackPassedReqBodyBytesOk() (*int32, bool)` + +GetAttackPassedReqBodyBytesOk returns a tuple with the AttackPassedReqBodyBytes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAttackPassedReqBodyBytes + +`func (o *RealtimeEntryAggregated) SetAttackPassedReqBodyBytes(v int32)` + +SetAttackPassedReqBodyBytes sets AttackPassedReqBodyBytes field to given value. + +### HasAttackPassedReqBodyBytes + +`func (o *RealtimeEntryAggregated) HasAttackPassedReqBodyBytes() bool` + +HasAttackPassedReqBodyBytes returns a boolean if a field has been set. + +### GetShieldRespHeaderBytes + +`func (o *RealtimeEntryAggregated) GetShieldRespHeaderBytes() int32` + +GetShieldRespHeaderBytes returns the ShieldRespHeaderBytes field if non-nil, zero value otherwise. + +### GetShieldRespHeaderBytesOk + +`func (o *RealtimeEntryAggregated) GetShieldRespHeaderBytesOk() (*int32, bool)` + +GetShieldRespHeaderBytesOk returns a tuple with the ShieldRespHeaderBytes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetShieldRespHeaderBytes + +`func (o *RealtimeEntryAggregated) SetShieldRespHeaderBytes(v int32)` + +SetShieldRespHeaderBytes sets ShieldRespHeaderBytes field to given value. + +### HasShieldRespHeaderBytes + +`func (o *RealtimeEntryAggregated) HasShieldRespHeaderBytes() bool` + +HasShieldRespHeaderBytes returns a boolean if a field has been set. + +### GetShieldRespBodyBytes + +`func (o *RealtimeEntryAggregated) GetShieldRespBodyBytes() int32` + +GetShieldRespBodyBytes returns the ShieldRespBodyBytes field if non-nil, zero value otherwise. + +### GetShieldRespBodyBytesOk + +`func (o *RealtimeEntryAggregated) GetShieldRespBodyBytesOk() (*int32, bool)` + +GetShieldRespBodyBytesOk returns a tuple with the ShieldRespBodyBytes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetShieldRespBodyBytes + +`func (o *RealtimeEntryAggregated) SetShieldRespBodyBytes(v int32)` + +SetShieldRespBodyBytes sets ShieldRespBodyBytes field to given value. + +### HasShieldRespBodyBytes + +`func (o *RealtimeEntryAggregated) HasShieldRespBodyBytes() bool` + +HasShieldRespBodyBytes returns a boolean if a field has been set. + +### GetOtfpRespHeaderBytes + +`func (o *RealtimeEntryAggregated) GetOtfpRespHeaderBytes() int32` + +GetOtfpRespHeaderBytes returns the OtfpRespHeaderBytes field if non-nil, zero value otherwise. + +### GetOtfpRespHeaderBytesOk + +`func (o *RealtimeEntryAggregated) GetOtfpRespHeaderBytesOk() (*int32, bool)` + +GetOtfpRespHeaderBytesOk returns a tuple with the OtfpRespHeaderBytes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOtfpRespHeaderBytes + +`func (o *RealtimeEntryAggregated) SetOtfpRespHeaderBytes(v int32)` + +SetOtfpRespHeaderBytes sets OtfpRespHeaderBytes field to given value. + +### HasOtfpRespHeaderBytes + +`func (o *RealtimeEntryAggregated) HasOtfpRespHeaderBytes() bool` + +HasOtfpRespHeaderBytes returns a boolean if a field has been set. + +### GetOtfpRespBodyBytes + +`func (o *RealtimeEntryAggregated) GetOtfpRespBodyBytes() int32` + +GetOtfpRespBodyBytes returns the OtfpRespBodyBytes field if non-nil, zero value otherwise. + +### GetOtfpRespBodyBytesOk + +`func (o *RealtimeEntryAggregated) GetOtfpRespBodyBytesOk() (*int32, bool)` + +GetOtfpRespBodyBytesOk returns a tuple with the OtfpRespBodyBytes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOtfpRespBodyBytes + +`func (o *RealtimeEntryAggregated) SetOtfpRespBodyBytes(v int32)` + +SetOtfpRespBodyBytes sets OtfpRespBodyBytes field to given value. + +### HasOtfpRespBodyBytes + +`func (o *RealtimeEntryAggregated) HasOtfpRespBodyBytes() bool` + +HasOtfpRespBodyBytes returns a boolean if a field has been set. + +### GetOtfpShieldRespHeaderBytes + +`func (o *RealtimeEntryAggregated) GetOtfpShieldRespHeaderBytes() int32` + +GetOtfpShieldRespHeaderBytes returns the OtfpShieldRespHeaderBytes field if non-nil, zero value otherwise. + +### GetOtfpShieldRespHeaderBytesOk + +`func (o *RealtimeEntryAggregated) GetOtfpShieldRespHeaderBytesOk() (*int32, bool)` + +GetOtfpShieldRespHeaderBytesOk returns a tuple with the OtfpShieldRespHeaderBytes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOtfpShieldRespHeaderBytes + +`func (o *RealtimeEntryAggregated) SetOtfpShieldRespHeaderBytes(v int32)` + +SetOtfpShieldRespHeaderBytes sets OtfpShieldRespHeaderBytes field to given value. + +### HasOtfpShieldRespHeaderBytes + +`func (o *RealtimeEntryAggregated) HasOtfpShieldRespHeaderBytes() bool` + +HasOtfpShieldRespHeaderBytes returns a boolean if a field has been set. + +### GetOtfpShieldRespBodyBytes + +`func (o *RealtimeEntryAggregated) GetOtfpShieldRespBodyBytes() int32` + +GetOtfpShieldRespBodyBytes returns the OtfpShieldRespBodyBytes field if non-nil, zero value otherwise. + +### GetOtfpShieldRespBodyBytesOk + +`func (o *RealtimeEntryAggregated) GetOtfpShieldRespBodyBytesOk() (*int32, bool)` + +GetOtfpShieldRespBodyBytesOk returns a tuple with the OtfpShieldRespBodyBytes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOtfpShieldRespBodyBytes + +`func (o *RealtimeEntryAggregated) SetOtfpShieldRespBodyBytes(v int32)` + +SetOtfpShieldRespBodyBytes sets OtfpShieldRespBodyBytes field to given value. + +### HasOtfpShieldRespBodyBytes + +`func (o *RealtimeEntryAggregated) HasOtfpShieldRespBodyBytes() bool` + +HasOtfpShieldRespBodyBytes returns a boolean if a field has been set. + +### GetOtfpShieldTime + +`func (o *RealtimeEntryAggregated) GetOtfpShieldTime() float32` + +GetOtfpShieldTime returns the OtfpShieldTime field if non-nil, zero value otherwise. + +### GetOtfpShieldTimeOk + +`func (o *RealtimeEntryAggregated) GetOtfpShieldTimeOk() (*float32, bool)` + +GetOtfpShieldTimeOk returns a tuple with the OtfpShieldTime field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOtfpShieldTime + +`func (o *RealtimeEntryAggregated) SetOtfpShieldTime(v float32)` + +SetOtfpShieldTime sets OtfpShieldTime field to given value. + +### HasOtfpShieldTime + +`func (o *RealtimeEntryAggregated) HasOtfpShieldTime() bool` + +HasOtfpShieldTime returns a boolean if a field has been set. + +### GetOtfpDeliverTime + +`func (o *RealtimeEntryAggregated) GetOtfpDeliverTime() float32` + +GetOtfpDeliverTime returns the OtfpDeliverTime field if non-nil, zero value otherwise. + +### GetOtfpDeliverTimeOk + +`func (o *RealtimeEntryAggregated) GetOtfpDeliverTimeOk() (*float32, bool)` + +GetOtfpDeliverTimeOk returns a tuple with the OtfpDeliverTime field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOtfpDeliverTime + +`func (o *RealtimeEntryAggregated) SetOtfpDeliverTime(v float32)` + +SetOtfpDeliverTime sets OtfpDeliverTime field to given value. + +### HasOtfpDeliverTime + +`func (o *RealtimeEntryAggregated) HasOtfpDeliverTime() bool` + +HasOtfpDeliverTime returns a boolean if a field has been set. + +### GetImgoptoRespHeaderBytes + +`func (o *RealtimeEntryAggregated) GetImgoptoRespHeaderBytes() int32` + +GetImgoptoRespHeaderBytes returns the ImgoptoRespHeaderBytes field if non-nil, zero value otherwise. + +### GetImgoptoRespHeaderBytesOk + +`func (o *RealtimeEntryAggregated) GetImgoptoRespHeaderBytesOk() (*int32, bool)` + +GetImgoptoRespHeaderBytesOk returns a tuple with the ImgoptoRespHeaderBytes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetImgoptoRespHeaderBytes + +`func (o *RealtimeEntryAggregated) SetImgoptoRespHeaderBytes(v int32)` + +SetImgoptoRespHeaderBytes sets ImgoptoRespHeaderBytes field to given value. + +### HasImgoptoRespHeaderBytes + +`func (o *RealtimeEntryAggregated) HasImgoptoRespHeaderBytes() bool` + +HasImgoptoRespHeaderBytes returns a boolean if a field has been set. + +### GetImgoptoRespBodyBytes + +`func (o *RealtimeEntryAggregated) GetImgoptoRespBodyBytes() int32` + +GetImgoptoRespBodyBytes returns the ImgoptoRespBodyBytes field if non-nil, zero value otherwise. + +### GetImgoptoRespBodyBytesOk + +`func (o *RealtimeEntryAggregated) GetImgoptoRespBodyBytesOk() (*int32, bool)` + +GetImgoptoRespBodyBytesOk returns a tuple with the ImgoptoRespBodyBytes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetImgoptoRespBodyBytes + +`func (o *RealtimeEntryAggregated) SetImgoptoRespBodyBytes(v int32)` + +SetImgoptoRespBodyBytes sets ImgoptoRespBodyBytes field to given value. + +### HasImgoptoRespBodyBytes + +`func (o *RealtimeEntryAggregated) HasImgoptoRespBodyBytes() bool` + +HasImgoptoRespBodyBytes returns a boolean if a field has been set. + +### GetImgoptoShieldRespHeaderBytes + +`func (o *RealtimeEntryAggregated) GetImgoptoShieldRespHeaderBytes() int32` + +GetImgoptoShieldRespHeaderBytes returns the ImgoptoShieldRespHeaderBytes field if non-nil, zero value otherwise. + +### GetImgoptoShieldRespHeaderBytesOk + +`func (o *RealtimeEntryAggregated) GetImgoptoShieldRespHeaderBytesOk() (*int32, bool)` + +GetImgoptoShieldRespHeaderBytesOk returns a tuple with the ImgoptoShieldRespHeaderBytes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetImgoptoShieldRespHeaderBytes + +`func (o *RealtimeEntryAggregated) SetImgoptoShieldRespHeaderBytes(v int32)` + +SetImgoptoShieldRespHeaderBytes sets ImgoptoShieldRespHeaderBytes field to given value. + +### HasImgoptoShieldRespHeaderBytes + +`func (o *RealtimeEntryAggregated) HasImgoptoShieldRespHeaderBytes() bool` + +HasImgoptoShieldRespHeaderBytes returns a boolean if a field has been set. + +### GetImgoptoShieldRespBodyBytes + +`func (o *RealtimeEntryAggregated) GetImgoptoShieldRespBodyBytes() int32` + +GetImgoptoShieldRespBodyBytes returns the ImgoptoShieldRespBodyBytes field if non-nil, zero value otherwise. + +### GetImgoptoShieldRespBodyBytesOk + +`func (o *RealtimeEntryAggregated) GetImgoptoShieldRespBodyBytesOk() (*int32, bool)` + +GetImgoptoShieldRespBodyBytesOk returns a tuple with the ImgoptoShieldRespBodyBytes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetImgoptoShieldRespBodyBytes + +`func (o *RealtimeEntryAggregated) SetImgoptoShieldRespBodyBytes(v int32)` + +SetImgoptoShieldRespBodyBytes sets ImgoptoShieldRespBodyBytes field to given value. + +### HasImgoptoShieldRespBodyBytes + +`func (o *RealtimeEntryAggregated) HasImgoptoShieldRespBodyBytes() bool` + +HasImgoptoShieldRespBodyBytes returns a boolean if a field has been set. + +### GetStatus1xx + +`func (o *RealtimeEntryAggregated) GetStatus1xx() int32` + +GetStatus1xx returns the Status1xx field if non-nil, zero value otherwise. + +### GetStatus1xxOk + +`func (o *RealtimeEntryAggregated) GetStatus1xxOk() (*int32, bool)` + +GetStatus1xxOk returns a tuple with the Status1xx field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus1xx + +`func (o *RealtimeEntryAggregated) SetStatus1xx(v int32)` + +SetStatus1xx sets Status1xx field to given value. + +### HasStatus1xx + +`func (o *RealtimeEntryAggregated) HasStatus1xx() bool` + +HasStatus1xx returns a boolean if a field has been set. + +### GetStatus2xx + +`func (o *RealtimeEntryAggregated) GetStatus2xx() int32` + +GetStatus2xx returns the Status2xx field if non-nil, zero value otherwise. + +### GetStatus2xxOk + +`func (o *RealtimeEntryAggregated) GetStatus2xxOk() (*int32, bool)` + +GetStatus2xxOk returns a tuple with the Status2xx field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus2xx + +`func (o *RealtimeEntryAggregated) SetStatus2xx(v int32)` + +SetStatus2xx sets Status2xx field to given value. + +### HasStatus2xx + +`func (o *RealtimeEntryAggregated) HasStatus2xx() bool` + +HasStatus2xx returns a boolean if a field has been set. + +### GetStatus3xx + +`func (o *RealtimeEntryAggregated) GetStatus3xx() int32` + +GetStatus3xx returns the Status3xx field if non-nil, zero value otherwise. + +### GetStatus3xxOk + +`func (o *RealtimeEntryAggregated) GetStatus3xxOk() (*int32, bool)` + +GetStatus3xxOk returns a tuple with the Status3xx field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus3xx + +`func (o *RealtimeEntryAggregated) SetStatus3xx(v int32)` + +SetStatus3xx sets Status3xx field to given value. + +### HasStatus3xx + +`func (o *RealtimeEntryAggregated) HasStatus3xx() bool` + +HasStatus3xx returns a boolean if a field has been set. + +### GetStatus4xx + +`func (o *RealtimeEntryAggregated) GetStatus4xx() int32` + +GetStatus4xx returns the Status4xx field if non-nil, zero value otherwise. + +### GetStatus4xxOk + +`func (o *RealtimeEntryAggregated) GetStatus4xxOk() (*int32, bool)` + +GetStatus4xxOk returns a tuple with the Status4xx field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus4xx + +`func (o *RealtimeEntryAggregated) SetStatus4xx(v int32)` + +SetStatus4xx sets Status4xx field to given value. + +### HasStatus4xx + +`func (o *RealtimeEntryAggregated) HasStatus4xx() bool` + +HasStatus4xx returns a boolean if a field has been set. + +### GetStatus5xx + +`func (o *RealtimeEntryAggregated) GetStatus5xx() int32` + +GetStatus5xx returns the Status5xx field if non-nil, zero value otherwise. + +### GetStatus5xxOk + +`func (o *RealtimeEntryAggregated) GetStatus5xxOk() (*int32, bool)` + +GetStatus5xxOk returns a tuple with the Status5xx field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus5xx + +`func (o *RealtimeEntryAggregated) SetStatus5xx(v int32)` + +SetStatus5xx sets Status5xx field to given value. + +### HasStatus5xx + +`func (o *RealtimeEntryAggregated) HasStatus5xx() bool` + +HasStatus5xx returns a boolean if a field has been set. + +### GetStatus200 + +`func (o *RealtimeEntryAggregated) GetStatus200() int32` + +GetStatus200 returns the Status200 field if non-nil, zero value otherwise. + +### GetStatus200Ok + +`func (o *RealtimeEntryAggregated) GetStatus200Ok() (*int32, bool)` + +GetStatus200Ok returns a tuple with the Status200 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus200 + +`func (o *RealtimeEntryAggregated) SetStatus200(v int32)` + +SetStatus200 sets Status200 field to given value. + +### HasStatus200 + +`func (o *RealtimeEntryAggregated) HasStatus200() bool` + +HasStatus200 returns a boolean if a field has been set. + +### GetStatus204 + +`func (o *RealtimeEntryAggregated) GetStatus204() int32` + +GetStatus204 returns the Status204 field if non-nil, zero value otherwise. + +### GetStatus204Ok + +`func (o *RealtimeEntryAggregated) GetStatus204Ok() (*int32, bool)` + +GetStatus204Ok returns a tuple with the Status204 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus204 + +`func (o *RealtimeEntryAggregated) SetStatus204(v int32)` + +SetStatus204 sets Status204 field to given value. + +### HasStatus204 + +`func (o *RealtimeEntryAggregated) HasStatus204() bool` + +HasStatus204 returns a boolean if a field has been set. + +### GetStatus206 + +`func (o *RealtimeEntryAggregated) GetStatus206() int32` + +GetStatus206 returns the Status206 field if non-nil, zero value otherwise. + +### GetStatus206Ok + +`func (o *RealtimeEntryAggregated) GetStatus206Ok() (*int32, bool)` + +GetStatus206Ok returns a tuple with the Status206 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus206 + +`func (o *RealtimeEntryAggregated) SetStatus206(v int32)` + +SetStatus206 sets Status206 field to given value. + +### HasStatus206 + +`func (o *RealtimeEntryAggregated) HasStatus206() bool` + +HasStatus206 returns a boolean if a field has been set. + +### GetStatus301 + +`func (o *RealtimeEntryAggregated) GetStatus301() int32` + +GetStatus301 returns the Status301 field if non-nil, zero value otherwise. + +### GetStatus301Ok + +`func (o *RealtimeEntryAggregated) GetStatus301Ok() (*int32, bool)` + +GetStatus301Ok returns a tuple with the Status301 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus301 + +`func (o *RealtimeEntryAggregated) SetStatus301(v int32)` + +SetStatus301 sets Status301 field to given value. + +### HasStatus301 + +`func (o *RealtimeEntryAggregated) HasStatus301() bool` + +HasStatus301 returns a boolean if a field has been set. + +### GetStatus302 + +`func (o *RealtimeEntryAggregated) GetStatus302() int32` + +GetStatus302 returns the Status302 field if non-nil, zero value otherwise. + +### GetStatus302Ok + +`func (o *RealtimeEntryAggregated) GetStatus302Ok() (*int32, bool)` + +GetStatus302Ok returns a tuple with the Status302 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus302 + +`func (o *RealtimeEntryAggregated) SetStatus302(v int32)` + +SetStatus302 sets Status302 field to given value. + +### HasStatus302 + +`func (o *RealtimeEntryAggregated) HasStatus302() bool` + +HasStatus302 returns a boolean if a field has been set. + +### GetStatus304 + +`func (o *RealtimeEntryAggregated) GetStatus304() int32` + +GetStatus304 returns the Status304 field if non-nil, zero value otherwise. + +### GetStatus304Ok + +`func (o *RealtimeEntryAggregated) GetStatus304Ok() (*int32, bool)` + +GetStatus304Ok returns a tuple with the Status304 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus304 + +`func (o *RealtimeEntryAggregated) SetStatus304(v int32)` + +SetStatus304 sets Status304 field to given value. + +### HasStatus304 + +`func (o *RealtimeEntryAggregated) HasStatus304() bool` + +HasStatus304 returns a boolean if a field has been set. + +### GetStatus400 + +`func (o *RealtimeEntryAggregated) GetStatus400() int32` + +GetStatus400 returns the Status400 field if non-nil, zero value otherwise. + +### GetStatus400Ok + +`func (o *RealtimeEntryAggregated) GetStatus400Ok() (*int32, bool)` + +GetStatus400Ok returns a tuple with the Status400 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus400 + +`func (o *RealtimeEntryAggregated) SetStatus400(v int32)` + +SetStatus400 sets Status400 field to given value. + +### HasStatus400 + +`func (o *RealtimeEntryAggregated) HasStatus400() bool` + +HasStatus400 returns a boolean if a field has been set. + +### GetStatus401 + +`func (o *RealtimeEntryAggregated) GetStatus401() int32` + +GetStatus401 returns the Status401 field if non-nil, zero value otherwise. + +### GetStatus401Ok + +`func (o *RealtimeEntryAggregated) GetStatus401Ok() (*int32, bool)` + +GetStatus401Ok returns a tuple with the Status401 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus401 + +`func (o *RealtimeEntryAggregated) SetStatus401(v int32)` + +SetStatus401 sets Status401 field to given value. + +### HasStatus401 + +`func (o *RealtimeEntryAggregated) HasStatus401() bool` + +HasStatus401 returns a boolean if a field has been set. + +### GetStatus403 + +`func (o *RealtimeEntryAggregated) GetStatus403() int32` + +GetStatus403 returns the Status403 field if non-nil, zero value otherwise. + +### GetStatus403Ok + +`func (o *RealtimeEntryAggregated) GetStatus403Ok() (*int32, bool)` + +GetStatus403Ok returns a tuple with the Status403 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus403 + +`func (o *RealtimeEntryAggregated) SetStatus403(v int32)` + +SetStatus403 sets Status403 field to given value. + +### HasStatus403 + +`func (o *RealtimeEntryAggregated) HasStatus403() bool` + +HasStatus403 returns a boolean if a field has been set. + +### GetStatus404 + +`func (o *RealtimeEntryAggregated) GetStatus404() int32` + +GetStatus404 returns the Status404 field if non-nil, zero value otherwise. + +### GetStatus404Ok + +`func (o *RealtimeEntryAggregated) GetStatus404Ok() (*int32, bool)` + +GetStatus404Ok returns a tuple with the Status404 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus404 + +`func (o *RealtimeEntryAggregated) SetStatus404(v int32)` + +SetStatus404 sets Status404 field to given value. + +### HasStatus404 + +`func (o *RealtimeEntryAggregated) HasStatus404() bool` + +HasStatus404 returns a boolean if a field has been set. + +### GetStatus406 + +`func (o *RealtimeEntryAggregated) GetStatus406() int32` + +GetStatus406 returns the Status406 field if non-nil, zero value otherwise. + +### GetStatus406Ok + +`func (o *RealtimeEntryAggregated) GetStatus406Ok() (*int32, bool)` + +GetStatus406Ok returns a tuple with the Status406 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus406 + +`func (o *RealtimeEntryAggregated) SetStatus406(v int32)` + +SetStatus406 sets Status406 field to given value. + +### HasStatus406 + +`func (o *RealtimeEntryAggregated) HasStatus406() bool` + +HasStatus406 returns a boolean if a field has been set. + +### GetStatus416 + +`func (o *RealtimeEntryAggregated) GetStatus416() int32` + +GetStatus416 returns the Status416 field if non-nil, zero value otherwise. + +### GetStatus416Ok + +`func (o *RealtimeEntryAggregated) GetStatus416Ok() (*int32, bool)` + +GetStatus416Ok returns a tuple with the Status416 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus416 + +`func (o *RealtimeEntryAggregated) SetStatus416(v int32)` + +SetStatus416 sets Status416 field to given value. + +### HasStatus416 + +`func (o *RealtimeEntryAggregated) HasStatus416() bool` + +HasStatus416 returns a boolean if a field has been set. + +### GetStatus429 + +`func (o *RealtimeEntryAggregated) GetStatus429() int32` + +GetStatus429 returns the Status429 field if non-nil, zero value otherwise. + +### GetStatus429Ok + +`func (o *RealtimeEntryAggregated) GetStatus429Ok() (*int32, bool)` + +GetStatus429Ok returns a tuple with the Status429 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus429 + +`func (o *RealtimeEntryAggregated) SetStatus429(v int32)` + +SetStatus429 sets Status429 field to given value. + +### HasStatus429 + +`func (o *RealtimeEntryAggregated) HasStatus429() bool` + +HasStatus429 returns a boolean if a field has been set. + +### GetStatus500 + +`func (o *RealtimeEntryAggregated) GetStatus500() int32` + +GetStatus500 returns the Status500 field if non-nil, zero value otherwise. + +### GetStatus500Ok + +`func (o *RealtimeEntryAggregated) GetStatus500Ok() (*int32, bool)` + +GetStatus500Ok returns a tuple with the Status500 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus500 + +`func (o *RealtimeEntryAggregated) SetStatus500(v int32)` + +SetStatus500 sets Status500 field to given value. + +### HasStatus500 + +`func (o *RealtimeEntryAggregated) HasStatus500() bool` + +HasStatus500 returns a boolean if a field has been set. + +### GetStatus501 + +`func (o *RealtimeEntryAggregated) GetStatus501() int32` + +GetStatus501 returns the Status501 field if non-nil, zero value otherwise. + +### GetStatus501Ok + +`func (o *RealtimeEntryAggregated) GetStatus501Ok() (*int32, bool)` + +GetStatus501Ok returns a tuple with the Status501 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus501 + +`func (o *RealtimeEntryAggregated) SetStatus501(v int32)` + +SetStatus501 sets Status501 field to given value. + +### HasStatus501 + +`func (o *RealtimeEntryAggregated) HasStatus501() bool` + +HasStatus501 returns a boolean if a field has been set. + +### GetStatus502 + +`func (o *RealtimeEntryAggregated) GetStatus502() int32` + +GetStatus502 returns the Status502 field if non-nil, zero value otherwise. + +### GetStatus502Ok + +`func (o *RealtimeEntryAggregated) GetStatus502Ok() (*int32, bool)` + +GetStatus502Ok returns a tuple with the Status502 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus502 + +`func (o *RealtimeEntryAggregated) SetStatus502(v int32)` + +SetStatus502 sets Status502 field to given value. + +### HasStatus502 + +`func (o *RealtimeEntryAggregated) HasStatus502() bool` + +HasStatus502 returns a boolean if a field has been set. + +### GetStatus503 + +`func (o *RealtimeEntryAggregated) GetStatus503() int32` + +GetStatus503 returns the Status503 field if non-nil, zero value otherwise. + +### GetStatus503Ok + +`func (o *RealtimeEntryAggregated) GetStatus503Ok() (*int32, bool)` + +GetStatus503Ok returns a tuple with the Status503 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus503 + +`func (o *RealtimeEntryAggregated) SetStatus503(v int32)` + +SetStatus503 sets Status503 field to given value. + +### HasStatus503 + +`func (o *RealtimeEntryAggregated) HasStatus503() bool` + +HasStatus503 returns a boolean if a field has been set. + +### GetStatus504 + +`func (o *RealtimeEntryAggregated) GetStatus504() int32` + +GetStatus504 returns the Status504 field if non-nil, zero value otherwise. + +### GetStatus504Ok + +`func (o *RealtimeEntryAggregated) GetStatus504Ok() (*int32, bool)` + +GetStatus504Ok returns a tuple with the Status504 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus504 + +`func (o *RealtimeEntryAggregated) SetStatus504(v int32)` + +SetStatus504 sets Status504 field to given value. + +### HasStatus504 + +`func (o *RealtimeEntryAggregated) HasStatus504() bool` + +HasStatus504 returns a boolean if a field has been set. + +### GetStatus505 + +`func (o *RealtimeEntryAggregated) GetStatus505() int32` + +GetStatus505 returns the Status505 field if non-nil, zero value otherwise. + +### GetStatus505Ok + +`func (o *RealtimeEntryAggregated) GetStatus505Ok() (*int32, bool)` + +GetStatus505Ok returns a tuple with the Status505 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus505 + +`func (o *RealtimeEntryAggregated) SetStatus505(v int32)` + +SetStatus505 sets Status505 field to given value. + +### HasStatus505 + +`func (o *RealtimeEntryAggregated) HasStatus505() bool` + +HasStatus505 returns a boolean if a field has been set. + +### GetUncacheable + +`func (o *RealtimeEntryAggregated) GetUncacheable() int32` + +GetUncacheable returns the Uncacheable field if non-nil, zero value otherwise. + +### GetUncacheableOk + +`func (o *RealtimeEntryAggregated) GetUncacheableOk() (*int32, bool)` + +GetUncacheableOk returns a tuple with the Uncacheable field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUncacheable + +`func (o *RealtimeEntryAggregated) SetUncacheable(v int32)` + +SetUncacheable sets Uncacheable field to given value. + +### HasUncacheable + +`func (o *RealtimeEntryAggregated) HasUncacheable() bool` + +HasUncacheable returns a boolean if a field has been set. + +### GetPassTime + +`func (o *RealtimeEntryAggregated) GetPassTime() float32` + +GetPassTime returns the PassTime field if non-nil, zero value otherwise. + +### GetPassTimeOk + +`func (o *RealtimeEntryAggregated) GetPassTimeOk() (*float32, bool)` + +GetPassTimeOk returns a tuple with the PassTime field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPassTime + +`func (o *RealtimeEntryAggregated) SetPassTime(v float32)` + +SetPassTime sets PassTime field to given value. + +### HasPassTime + +`func (o *RealtimeEntryAggregated) HasPassTime() bool` + +HasPassTime returns a boolean if a field has been set. + +### GetTLS + +`func (o *RealtimeEntryAggregated) GetTLS() int32` + +GetTLS returns the TLS field if non-nil, zero value otherwise. + +### GetTLSOk + +`func (o *RealtimeEntryAggregated) GetTLSOk() (*int32, bool)` + +GetTLSOk returns a tuple with the TLS field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTLS + +`func (o *RealtimeEntryAggregated) SetTLS(v int32)` + +SetTLS sets TLS field to given value. + +### HasTLS + +`func (o *RealtimeEntryAggregated) HasTLS() bool` + +HasTLS returns a boolean if a field has been set. + +### GetTLSV10 + +`func (o *RealtimeEntryAggregated) GetTLSV10() int32` + +GetTLSV10 returns the TLSV10 field if non-nil, zero value otherwise. + +### GetTLSV10Ok + +`func (o *RealtimeEntryAggregated) GetTLSV10Ok() (*int32, bool)` + +GetTLSV10Ok returns a tuple with the TLSV10 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTLSV10 + +`func (o *RealtimeEntryAggregated) SetTLSV10(v int32)` + +SetTLSV10 sets TLSV10 field to given value. + +### HasTLSV10 + +`func (o *RealtimeEntryAggregated) HasTLSV10() bool` + +HasTLSV10 returns a boolean if a field has been set. + +### GetTLSV11 + +`func (o *RealtimeEntryAggregated) GetTLSV11() int32` + +GetTLSV11 returns the TLSV11 field if non-nil, zero value otherwise. + +### GetTLSV11Ok + +`func (o *RealtimeEntryAggregated) GetTLSV11Ok() (*int32, bool)` + +GetTLSV11Ok returns a tuple with the TLSV11 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTLSV11 + +`func (o *RealtimeEntryAggregated) SetTLSV11(v int32)` + +SetTLSV11 sets TLSV11 field to given value. + +### HasTLSV11 + +`func (o *RealtimeEntryAggregated) HasTLSV11() bool` + +HasTLSV11 returns a boolean if a field has been set. + +### GetTLSV12 + +`func (o *RealtimeEntryAggregated) GetTLSV12() int32` + +GetTLSV12 returns the TLSV12 field if non-nil, zero value otherwise. + +### GetTLSV12Ok + +`func (o *RealtimeEntryAggregated) GetTLSV12Ok() (*int32, bool)` + +GetTLSV12Ok returns a tuple with the TLSV12 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTLSV12 + +`func (o *RealtimeEntryAggregated) SetTLSV12(v int32)` + +SetTLSV12 sets TLSV12 field to given value. + +### HasTLSV12 + +`func (o *RealtimeEntryAggregated) HasTLSV12() bool` + +HasTLSV12 returns a boolean if a field has been set. + +### GetTLSV13 + +`func (o *RealtimeEntryAggregated) GetTLSV13() int32` + +GetTLSV13 returns the TLSV13 field if non-nil, zero value otherwise. + +### GetTLSV13Ok + +`func (o *RealtimeEntryAggregated) GetTLSV13Ok() (*int32, bool)` + +GetTLSV13Ok returns a tuple with the TLSV13 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTLSV13 + +`func (o *RealtimeEntryAggregated) SetTLSV13(v int32)` + +SetTLSV13 sets TLSV13 field to given value. + +### HasTLSV13 + +`func (o *RealtimeEntryAggregated) HasTLSV13() bool` + +HasTLSV13 returns a boolean if a field has been set. + +### GetObjectSize1k + +`func (o *RealtimeEntryAggregated) GetObjectSize1k() int32` + +GetObjectSize1k returns the ObjectSize1k field if non-nil, zero value otherwise. + +### GetObjectSize1kOk + +`func (o *RealtimeEntryAggregated) GetObjectSize1kOk() (*int32, bool)` + +GetObjectSize1kOk returns a tuple with the ObjectSize1k field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetObjectSize1k + +`func (o *RealtimeEntryAggregated) SetObjectSize1k(v int32)` + +SetObjectSize1k sets ObjectSize1k field to given value. + +### HasObjectSize1k + +`func (o *RealtimeEntryAggregated) HasObjectSize1k() bool` + +HasObjectSize1k returns a boolean if a field has been set. + +### GetObjectSize10k + +`func (o *RealtimeEntryAggregated) GetObjectSize10k() int32` + +GetObjectSize10k returns the ObjectSize10k field if non-nil, zero value otherwise. + +### GetObjectSize10kOk + +`func (o *RealtimeEntryAggregated) GetObjectSize10kOk() (*int32, bool)` + +GetObjectSize10kOk returns a tuple with the ObjectSize10k field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetObjectSize10k + +`func (o *RealtimeEntryAggregated) SetObjectSize10k(v int32)` + +SetObjectSize10k sets ObjectSize10k field to given value. + +### HasObjectSize10k + +`func (o *RealtimeEntryAggregated) HasObjectSize10k() bool` + +HasObjectSize10k returns a boolean if a field has been set. + +### GetObjectSize100k + +`func (o *RealtimeEntryAggregated) GetObjectSize100k() int32` + +GetObjectSize100k returns the ObjectSize100k field if non-nil, zero value otherwise. + +### GetObjectSize100kOk + +`func (o *RealtimeEntryAggregated) GetObjectSize100kOk() (*int32, bool)` + +GetObjectSize100kOk returns a tuple with the ObjectSize100k field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetObjectSize100k + +`func (o *RealtimeEntryAggregated) SetObjectSize100k(v int32)` + +SetObjectSize100k sets ObjectSize100k field to given value. + +### HasObjectSize100k + +`func (o *RealtimeEntryAggregated) HasObjectSize100k() bool` + +HasObjectSize100k returns a boolean if a field has been set. + +### GetObjectSize1m + +`func (o *RealtimeEntryAggregated) GetObjectSize1m() int32` + +GetObjectSize1m returns the ObjectSize1m field if non-nil, zero value otherwise. + +### GetObjectSize1mOk + +`func (o *RealtimeEntryAggregated) GetObjectSize1mOk() (*int32, bool)` + +GetObjectSize1mOk returns a tuple with the ObjectSize1m field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetObjectSize1m + +`func (o *RealtimeEntryAggregated) SetObjectSize1m(v int32)` + +SetObjectSize1m sets ObjectSize1m field to given value. + +### HasObjectSize1m + +`func (o *RealtimeEntryAggregated) HasObjectSize1m() bool` + +HasObjectSize1m returns a boolean if a field has been set. + +### GetObjectSize10m + +`func (o *RealtimeEntryAggregated) GetObjectSize10m() int32` + +GetObjectSize10m returns the ObjectSize10m field if non-nil, zero value otherwise. + +### GetObjectSize10mOk + +`func (o *RealtimeEntryAggregated) GetObjectSize10mOk() (*int32, bool)` + +GetObjectSize10mOk returns a tuple with the ObjectSize10m field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetObjectSize10m + +`func (o *RealtimeEntryAggregated) SetObjectSize10m(v int32)` + +SetObjectSize10m sets ObjectSize10m field to given value. + +### HasObjectSize10m + +`func (o *RealtimeEntryAggregated) HasObjectSize10m() bool` + +HasObjectSize10m returns a boolean if a field has been set. + +### GetObjectSize100m + +`func (o *RealtimeEntryAggregated) GetObjectSize100m() int32` + +GetObjectSize100m returns the ObjectSize100m field if non-nil, zero value otherwise. + +### GetObjectSize100mOk + +`func (o *RealtimeEntryAggregated) GetObjectSize100mOk() (*int32, bool)` + +GetObjectSize100mOk returns a tuple with the ObjectSize100m field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetObjectSize100m + +`func (o *RealtimeEntryAggregated) SetObjectSize100m(v int32)` + +SetObjectSize100m sets ObjectSize100m field to given value. + +### HasObjectSize100m + +`func (o *RealtimeEntryAggregated) HasObjectSize100m() bool` + +HasObjectSize100m returns a boolean if a field has been set. + +### GetObjectSize1g + +`func (o *RealtimeEntryAggregated) GetObjectSize1g() int32` + +GetObjectSize1g returns the ObjectSize1g field if non-nil, zero value otherwise. + +### GetObjectSize1gOk + +`func (o *RealtimeEntryAggregated) GetObjectSize1gOk() (*int32, bool)` + +GetObjectSize1gOk returns a tuple with the ObjectSize1g field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetObjectSize1g + +`func (o *RealtimeEntryAggregated) SetObjectSize1g(v int32)` + +SetObjectSize1g sets ObjectSize1g field to given value. + +### HasObjectSize1g + +`func (o *RealtimeEntryAggregated) HasObjectSize1g() bool` + +HasObjectSize1g returns a boolean if a field has been set. + +### GetObjectSizeOther + +`func (o *RealtimeEntryAggregated) GetObjectSizeOther() int32` + +GetObjectSizeOther returns the ObjectSizeOther field if non-nil, zero value otherwise. + +### GetObjectSizeOtherOk + +`func (o *RealtimeEntryAggregated) GetObjectSizeOtherOk() (*int32, bool)` + +GetObjectSizeOtherOk returns a tuple with the ObjectSizeOther field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetObjectSizeOther + +`func (o *RealtimeEntryAggregated) SetObjectSizeOther(v int32)` + +SetObjectSizeOther sets ObjectSizeOther field to given value. + +### HasObjectSizeOther + +`func (o *RealtimeEntryAggregated) HasObjectSizeOther() bool` + +HasObjectSizeOther returns a boolean if a field has been set. + +### GetRecvSubTime + +`func (o *RealtimeEntryAggregated) GetRecvSubTime() float32` + +GetRecvSubTime returns the RecvSubTime field if non-nil, zero value otherwise. + +### GetRecvSubTimeOk + +`func (o *RealtimeEntryAggregated) GetRecvSubTimeOk() (*float32, bool)` + +GetRecvSubTimeOk returns a tuple with the RecvSubTime field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRecvSubTime + +`func (o *RealtimeEntryAggregated) SetRecvSubTime(v float32)` + +SetRecvSubTime sets RecvSubTime field to given value. + +### HasRecvSubTime + +`func (o *RealtimeEntryAggregated) HasRecvSubTime() bool` + +HasRecvSubTime returns a boolean if a field has been set. + +### GetRecvSubCount + +`func (o *RealtimeEntryAggregated) GetRecvSubCount() int32` + +GetRecvSubCount returns the RecvSubCount field if non-nil, zero value otherwise. + +### GetRecvSubCountOk + +`func (o *RealtimeEntryAggregated) GetRecvSubCountOk() (*int32, bool)` + +GetRecvSubCountOk returns a tuple with the RecvSubCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRecvSubCount + +`func (o *RealtimeEntryAggregated) SetRecvSubCount(v int32)` + +SetRecvSubCount sets RecvSubCount field to given value. + +### HasRecvSubCount + +`func (o *RealtimeEntryAggregated) HasRecvSubCount() bool` + +HasRecvSubCount returns a boolean if a field has been set. + +### GetHashSubTime + +`func (o *RealtimeEntryAggregated) GetHashSubTime() float32` + +GetHashSubTime returns the HashSubTime field if non-nil, zero value otherwise. + +### GetHashSubTimeOk + +`func (o *RealtimeEntryAggregated) GetHashSubTimeOk() (*float32, bool)` + +GetHashSubTimeOk returns a tuple with the HashSubTime field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHashSubTime + +`func (o *RealtimeEntryAggregated) SetHashSubTime(v float32)` + +SetHashSubTime sets HashSubTime field to given value. + +### HasHashSubTime + +`func (o *RealtimeEntryAggregated) HasHashSubTime() bool` + +HasHashSubTime returns a boolean if a field has been set. + +### GetHashSubCount + +`func (o *RealtimeEntryAggregated) GetHashSubCount() int32` + +GetHashSubCount returns the HashSubCount field if non-nil, zero value otherwise. + +### GetHashSubCountOk + +`func (o *RealtimeEntryAggregated) GetHashSubCountOk() (*int32, bool)` + +GetHashSubCountOk returns a tuple with the HashSubCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHashSubCount + +`func (o *RealtimeEntryAggregated) SetHashSubCount(v int32)` + +SetHashSubCount sets HashSubCount field to given value. + +### HasHashSubCount + +`func (o *RealtimeEntryAggregated) HasHashSubCount() bool` + +HasHashSubCount returns a boolean if a field has been set. + +### GetMissSubTime + +`func (o *RealtimeEntryAggregated) GetMissSubTime() float32` + +GetMissSubTime returns the MissSubTime field if non-nil, zero value otherwise. + +### GetMissSubTimeOk + +`func (o *RealtimeEntryAggregated) GetMissSubTimeOk() (*float32, bool)` + +GetMissSubTimeOk returns a tuple with the MissSubTime field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMissSubTime + +`func (o *RealtimeEntryAggregated) SetMissSubTime(v float32)` + +SetMissSubTime sets MissSubTime field to given value. + +### HasMissSubTime + +`func (o *RealtimeEntryAggregated) HasMissSubTime() bool` + +HasMissSubTime returns a boolean if a field has been set. + +### GetMissSubCount + +`func (o *RealtimeEntryAggregated) GetMissSubCount() int32` + +GetMissSubCount returns the MissSubCount field if non-nil, zero value otherwise. + +### GetMissSubCountOk + +`func (o *RealtimeEntryAggregated) GetMissSubCountOk() (*int32, bool)` + +GetMissSubCountOk returns a tuple with the MissSubCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMissSubCount + +`func (o *RealtimeEntryAggregated) SetMissSubCount(v int32)` + +SetMissSubCount sets MissSubCount field to given value. + +### HasMissSubCount + +`func (o *RealtimeEntryAggregated) HasMissSubCount() bool` + +HasMissSubCount returns a boolean if a field has been set. + +### GetFetchSubTime + +`func (o *RealtimeEntryAggregated) GetFetchSubTime() float32` + +GetFetchSubTime returns the FetchSubTime field if non-nil, zero value otherwise. + +### GetFetchSubTimeOk + +`func (o *RealtimeEntryAggregated) GetFetchSubTimeOk() (*float32, bool)` + +GetFetchSubTimeOk returns a tuple with the FetchSubTime field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFetchSubTime + +`func (o *RealtimeEntryAggregated) SetFetchSubTime(v float32)` + +SetFetchSubTime sets FetchSubTime field to given value. + +### HasFetchSubTime + +`func (o *RealtimeEntryAggregated) HasFetchSubTime() bool` + +HasFetchSubTime returns a boolean if a field has been set. + +### GetFetchSubCount + +`func (o *RealtimeEntryAggregated) GetFetchSubCount() int32` + +GetFetchSubCount returns the FetchSubCount field if non-nil, zero value otherwise. + +### GetFetchSubCountOk + +`func (o *RealtimeEntryAggregated) GetFetchSubCountOk() (*int32, bool)` + +GetFetchSubCountOk returns a tuple with the FetchSubCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFetchSubCount + +`func (o *RealtimeEntryAggregated) SetFetchSubCount(v int32)` + +SetFetchSubCount sets FetchSubCount field to given value. + +### HasFetchSubCount + +`func (o *RealtimeEntryAggregated) HasFetchSubCount() bool` + +HasFetchSubCount returns a boolean if a field has been set. + +### GetPassSubTime + +`func (o *RealtimeEntryAggregated) GetPassSubTime() float32` + +GetPassSubTime returns the PassSubTime field if non-nil, zero value otherwise. + +### GetPassSubTimeOk + +`func (o *RealtimeEntryAggregated) GetPassSubTimeOk() (*float32, bool)` + +GetPassSubTimeOk returns a tuple with the PassSubTime field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPassSubTime + +`func (o *RealtimeEntryAggregated) SetPassSubTime(v float32)` + +SetPassSubTime sets PassSubTime field to given value. + +### HasPassSubTime + +`func (o *RealtimeEntryAggregated) HasPassSubTime() bool` + +HasPassSubTime returns a boolean if a field has been set. + +### GetPassSubCount + +`func (o *RealtimeEntryAggregated) GetPassSubCount() int32` + +GetPassSubCount returns the PassSubCount field if non-nil, zero value otherwise. + +### GetPassSubCountOk + +`func (o *RealtimeEntryAggregated) GetPassSubCountOk() (*int32, bool)` + +GetPassSubCountOk returns a tuple with the PassSubCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPassSubCount + +`func (o *RealtimeEntryAggregated) SetPassSubCount(v int32)` + +SetPassSubCount sets PassSubCount field to given value. + +### HasPassSubCount + +`func (o *RealtimeEntryAggregated) HasPassSubCount() bool` + +HasPassSubCount returns a boolean if a field has been set. + +### GetPipeSubTime + +`func (o *RealtimeEntryAggregated) GetPipeSubTime() float32` + +GetPipeSubTime returns the PipeSubTime field if non-nil, zero value otherwise. + +### GetPipeSubTimeOk + +`func (o *RealtimeEntryAggregated) GetPipeSubTimeOk() (*float32, bool)` + +GetPipeSubTimeOk returns a tuple with the PipeSubTime field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPipeSubTime + +`func (o *RealtimeEntryAggregated) SetPipeSubTime(v float32)` + +SetPipeSubTime sets PipeSubTime field to given value. + +### HasPipeSubTime + +`func (o *RealtimeEntryAggregated) HasPipeSubTime() bool` + +HasPipeSubTime returns a boolean if a field has been set. + +### GetPipeSubCount + +`func (o *RealtimeEntryAggregated) GetPipeSubCount() int32` + +GetPipeSubCount returns the PipeSubCount field if non-nil, zero value otherwise. + +### GetPipeSubCountOk + +`func (o *RealtimeEntryAggregated) GetPipeSubCountOk() (*int32, bool)` + +GetPipeSubCountOk returns a tuple with the PipeSubCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPipeSubCount + +`func (o *RealtimeEntryAggregated) SetPipeSubCount(v int32)` + +SetPipeSubCount sets PipeSubCount field to given value. + +### HasPipeSubCount + +`func (o *RealtimeEntryAggregated) HasPipeSubCount() bool` + +HasPipeSubCount returns a boolean if a field has been set. + +### GetDeliverSubTime + +`func (o *RealtimeEntryAggregated) GetDeliverSubTime() float32` + +GetDeliverSubTime returns the DeliverSubTime field if non-nil, zero value otherwise. + +### GetDeliverSubTimeOk + +`func (o *RealtimeEntryAggregated) GetDeliverSubTimeOk() (*float32, bool)` + +GetDeliverSubTimeOk returns a tuple with the DeliverSubTime field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDeliverSubTime + +`func (o *RealtimeEntryAggregated) SetDeliverSubTime(v float32)` + +SetDeliverSubTime sets DeliverSubTime field to given value. + +### HasDeliverSubTime + +`func (o *RealtimeEntryAggregated) HasDeliverSubTime() bool` + +HasDeliverSubTime returns a boolean if a field has been set. + +### GetDeliverSubCount + +`func (o *RealtimeEntryAggregated) GetDeliverSubCount() int32` + +GetDeliverSubCount returns the DeliverSubCount field if non-nil, zero value otherwise. + +### GetDeliverSubCountOk + +`func (o *RealtimeEntryAggregated) GetDeliverSubCountOk() (*int32, bool)` + +GetDeliverSubCountOk returns a tuple with the DeliverSubCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDeliverSubCount + +`func (o *RealtimeEntryAggregated) SetDeliverSubCount(v int32)` + +SetDeliverSubCount sets DeliverSubCount field to given value. + +### HasDeliverSubCount + +`func (o *RealtimeEntryAggregated) HasDeliverSubCount() bool` + +HasDeliverSubCount returns a boolean if a field has been set. + +### GetErrorSubTime + +`func (o *RealtimeEntryAggregated) GetErrorSubTime() float32` + +GetErrorSubTime returns the ErrorSubTime field if non-nil, zero value otherwise. + +### GetErrorSubTimeOk + +`func (o *RealtimeEntryAggregated) GetErrorSubTimeOk() (*float32, bool)` + +GetErrorSubTimeOk returns a tuple with the ErrorSubTime field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetErrorSubTime + +`func (o *RealtimeEntryAggregated) SetErrorSubTime(v float32)` + +SetErrorSubTime sets ErrorSubTime field to given value. + +### HasErrorSubTime + +`func (o *RealtimeEntryAggregated) HasErrorSubTime() bool` + +HasErrorSubTime returns a boolean if a field has been set. + +### GetErrorSubCount + +`func (o *RealtimeEntryAggregated) GetErrorSubCount() int32` + +GetErrorSubCount returns the ErrorSubCount field if non-nil, zero value otherwise. + +### GetErrorSubCountOk + +`func (o *RealtimeEntryAggregated) GetErrorSubCountOk() (*int32, bool)` + +GetErrorSubCountOk returns a tuple with the ErrorSubCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetErrorSubCount + +`func (o *RealtimeEntryAggregated) SetErrorSubCount(v int32)` + +SetErrorSubCount sets ErrorSubCount field to given value. + +### HasErrorSubCount + +`func (o *RealtimeEntryAggregated) HasErrorSubCount() bool` + +HasErrorSubCount returns a boolean if a field has been set. + +### GetHitSubTime + +`func (o *RealtimeEntryAggregated) GetHitSubTime() float32` + +GetHitSubTime returns the HitSubTime field if non-nil, zero value otherwise. + +### GetHitSubTimeOk + +`func (o *RealtimeEntryAggregated) GetHitSubTimeOk() (*float32, bool)` + +GetHitSubTimeOk returns a tuple with the HitSubTime field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHitSubTime + +`func (o *RealtimeEntryAggregated) SetHitSubTime(v float32)` + +SetHitSubTime sets HitSubTime field to given value. + +### HasHitSubTime + +`func (o *RealtimeEntryAggregated) HasHitSubTime() bool` + +HasHitSubTime returns a boolean if a field has been set. + +### GetHitSubCount + +`func (o *RealtimeEntryAggregated) GetHitSubCount() int32` + +GetHitSubCount returns the HitSubCount field if non-nil, zero value otherwise. + +### GetHitSubCountOk + +`func (o *RealtimeEntryAggregated) GetHitSubCountOk() (*int32, bool)` + +GetHitSubCountOk returns a tuple with the HitSubCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHitSubCount + +`func (o *RealtimeEntryAggregated) SetHitSubCount(v int32)` + +SetHitSubCount sets HitSubCount field to given value. + +### HasHitSubCount + +`func (o *RealtimeEntryAggregated) HasHitSubCount() bool` + +HasHitSubCount returns a boolean if a field has been set. + +### GetPrehashSubTime + +`func (o *RealtimeEntryAggregated) GetPrehashSubTime() float32` + +GetPrehashSubTime returns the PrehashSubTime field if non-nil, zero value otherwise. + +### GetPrehashSubTimeOk + +`func (o *RealtimeEntryAggregated) GetPrehashSubTimeOk() (*float32, bool)` + +GetPrehashSubTimeOk returns a tuple with the PrehashSubTime field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPrehashSubTime + +`func (o *RealtimeEntryAggregated) SetPrehashSubTime(v float32)` + +SetPrehashSubTime sets PrehashSubTime field to given value. + +### HasPrehashSubTime + +`func (o *RealtimeEntryAggregated) HasPrehashSubTime() bool` + +HasPrehashSubTime returns a boolean if a field has been set. + +### GetPrehashSubCount + +`func (o *RealtimeEntryAggregated) GetPrehashSubCount() int32` + +GetPrehashSubCount returns the PrehashSubCount field if non-nil, zero value otherwise. + +### GetPrehashSubCountOk + +`func (o *RealtimeEntryAggregated) GetPrehashSubCountOk() (*int32, bool)` + +GetPrehashSubCountOk returns a tuple with the PrehashSubCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPrehashSubCount + +`func (o *RealtimeEntryAggregated) SetPrehashSubCount(v int32)` + +SetPrehashSubCount sets PrehashSubCount field to given value. + +### HasPrehashSubCount + +`func (o *RealtimeEntryAggregated) HasPrehashSubCount() bool` + +HasPrehashSubCount returns a boolean if a field has been set. + +### GetPredeliverSubTime + +`func (o *RealtimeEntryAggregated) GetPredeliverSubTime() float32` + +GetPredeliverSubTime returns the PredeliverSubTime field if non-nil, zero value otherwise. + +### GetPredeliverSubTimeOk + +`func (o *RealtimeEntryAggregated) GetPredeliverSubTimeOk() (*float32, bool)` + +GetPredeliverSubTimeOk returns a tuple with the PredeliverSubTime field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPredeliverSubTime + +`func (o *RealtimeEntryAggregated) SetPredeliverSubTime(v float32)` + +SetPredeliverSubTime sets PredeliverSubTime field to given value. + +### HasPredeliverSubTime + +`func (o *RealtimeEntryAggregated) HasPredeliverSubTime() bool` + +HasPredeliverSubTime returns a boolean if a field has been set. + +### GetPredeliverSubCount + +`func (o *RealtimeEntryAggregated) GetPredeliverSubCount() int32` + +GetPredeliverSubCount returns the PredeliverSubCount field if non-nil, zero value otherwise. + +### GetPredeliverSubCountOk + +`func (o *RealtimeEntryAggregated) GetPredeliverSubCountOk() (*int32, bool)` + +GetPredeliverSubCountOk returns a tuple with the PredeliverSubCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPredeliverSubCount + +`func (o *RealtimeEntryAggregated) SetPredeliverSubCount(v int32)` + +SetPredeliverSubCount sets PredeliverSubCount field to given value. + +### HasPredeliverSubCount + +`func (o *RealtimeEntryAggregated) HasPredeliverSubCount() bool` + +HasPredeliverSubCount returns a boolean if a field has been set. + +### GetHitRespBodyBytes + +`func (o *RealtimeEntryAggregated) GetHitRespBodyBytes() int32` + +GetHitRespBodyBytes returns the HitRespBodyBytes field if non-nil, zero value otherwise. + +### GetHitRespBodyBytesOk + +`func (o *RealtimeEntryAggregated) GetHitRespBodyBytesOk() (*int32, bool)` + +GetHitRespBodyBytesOk returns a tuple with the HitRespBodyBytes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHitRespBodyBytes + +`func (o *RealtimeEntryAggregated) SetHitRespBodyBytes(v int32)` + +SetHitRespBodyBytes sets HitRespBodyBytes field to given value. + +### HasHitRespBodyBytes + +`func (o *RealtimeEntryAggregated) HasHitRespBodyBytes() bool` + +HasHitRespBodyBytes returns a boolean if a field has been set. + +### GetMissRespBodyBytes + +`func (o *RealtimeEntryAggregated) GetMissRespBodyBytes() int32` + +GetMissRespBodyBytes returns the MissRespBodyBytes field if non-nil, zero value otherwise. + +### GetMissRespBodyBytesOk + +`func (o *RealtimeEntryAggregated) GetMissRespBodyBytesOk() (*int32, bool)` + +GetMissRespBodyBytesOk returns a tuple with the MissRespBodyBytes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMissRespBodyBytes + +`func (o *RealtimeEntryAggregated) SetMissRespBodyBytes(v int32)` + +SetMissRespBodyBytes sets MissRespBodyBytes field to given value. + +### HasMissRespBodyBytes + +`func (o *RealtimeEntryAggregated) HasMissRespBodyBytes() bool` + +HasMissRespBodyBytes returns a boolean if a field has been set. + +### GetPassRespBodyBytes + +`func (o *RealtimeEntryAggregated) GetPassRespBodyBytes() int32` + +GetPassRespBodyBytes returns the PassRespBodyBytes field if non-nil, zero value otherwise. + +### GetPassRespBodyBytesOk + +`func (o *RealtimeEntryAggregated) GetPassRespBodyBytesOk() (*int32, bool)` + +GetPassRespBodyBytesOk returns a tuple with the PassRespBodyBytes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPassRespBodyBytes + +`func (o *RealtimeEntryAggregated) SetPassRespBodyBytes(v int32)` + +SetPassRespBodyBytes sets PassRespBodyBytes field to given value. + +### HasPassRespBodyBytes + +`func (o *RealtimeEntryAggregated) HasPassRespBodyBytes() bool` + +HasPassRespBodyBytes returns a boolean if a field has been set. + +### GetComputeReqHeaderBytes + +`func (o *RealtimeEntryAggregated) GetComputeReqHeaderBytes() int32` + +GetComputeReqHeaderBytes returns the ComputeReqHeaderBytes field if non-nil, zero value otherwise. + +### GetComputeReqHeaderBytesOk + +`func (o *RealtimeEntryAggregated) GetComputeReqHeaderBytesOk() (*int32, bool)` + +GetComputeReqHeaderBytesOk returns a tuple with the ComputeReqHeaderBytes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComputeReqHeaderBytes + +`func (o *RealtimeEntryAggregated) SetComputeReqHeaderBytes(v int32)` + +SetComputeReqHeaderBytes sets ComputeReqHeaderBytes field to given value. + +### HasComputeReqHeaderBytes + +`func (o *RealtimeEntryAggregated) HasComputeReqHeaderBytes() bool` + +HasComputeReqHeaderBytes returns a boolean if a field has been set. + +### GetComputeReqBodyBytes + +`func (o *RealtimeEntryAggregated) GetComputeReqBodyBytes() int32` + +GetComputeReqBodyBytes returns the ComputeReqBodyBytes field if non-nil, zero value otherwise. + +### GetComputeReqBodyBytesOk + +`func (o *RealtimeEntryAggregated) GetComputeReqBodyBytesOk() (*int32, bool)` + +GetComputeReqBodyBytesOk returns a tuple with the ComputeReqBodyBytes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComputeReqBodyBytes + +`func (o *RealtimeEntryAggregated) SetComputeReqBodyBytes(v int32)` + +SetComputeReqBodyBytes sets ComputeReqBodyBytes field to given value. + +### HasComputeReqBodyBytes + +`func (o *RealtimeEntryAggregated) HasComputeReqBodyBytes() bool` + +HasComputeReqBodyBytes returns a boolean if a field has been set. + +### GetComputeRespHeaderBytes + +`func (o *RealtimeEntryAggregated) GetComputeRespHeaderBytes() int32` + +GetComputeRespHeaderBytes returns the ComputeRespHeaderBytes field if non-nil, zero value otherwise. + +### GetComputeRespHeaderBytesOk + +`func (o *RealtimeEntryAggregated) GetComputeRespHeaderBytesOk() (*int32, bool)` + +GetComputeRespHeaderBytesOk returns a tuple with the ComputeRespHeaderBytes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComputeRespHeaderBytes + +`func (o *RealtimeEntryAggregated) SetComputeRespHeaderBytes(v int32)` + +SetComputeRespHeaderBytes sets ComputeRespHeaderBytes field to given value. + +### HasComputeRespHeaderBytes + +`func (o *RealtimeEntryAggregated) HasComputeRespHeaderBytes() bool` + +HasComputeRespHeaderBytes returns a boolean if a field has been set. + +### GetComputeRespBodyBytes + +`func (o *RealtimeEntryAggregated) GetComputeRespBodyBytes() int32` + +GetComputeRespBodyBytes returns the ComputeRespBodyBytes field if non-nil, zero value otherwise. + +### GetComputeRespBodyBytesOk + +`func (o *RealtimeEntryAggregated) GetComputeRespBodyBytesOk() (*int32, bool)` + +GetComputeRespBodyBytesOk returns a tuple with the ComputeRespBodyBytes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComputeRespBodyBytes + +`func (o *RealtimeEntryAggregated) SetComputeRespBodyBytes(v int32)` + +SetComputeRespBodyBytes sets ComputeRespBodyBytes field to given value. + +### HasComputeRespBodyBytes + +`func (o *RealtimeEntryAggregated) HasComputeRespBodyBytes() bool` + +HasComputeRespBodyBytes returns a boolean if a field has been set. + +### GetImgvideo + +`func (o *RealtimeEntryAggregated) GetImgvideo() int32` + +GetImgvideo returns the Imgvideo field if non-nil, zero value otherwise. + +### GetImgvideoOk + +`func (o *RealtimeEntryAggregated) GetImgvideoOk() (*int32, bool)` + +GetImgvideoOk returns a tuple with the Imgvideo field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetImgvideo + +`func (o *RealtimeEntryAggregated) SetImgvideo(v int32)` + +SetImgvideo sets Imgvideo field to given value. + +### HasImgvideo + +`func (o *RealtimeEntryAggregated) HasImgvideo() bool` + +HasImgvideo returns a boolean if a field has been set. + +### GetImgvideoFrames + +`func (o *RealtimeEntryAggregated) GetImgvideoFrames() int32` + +GetImgvideoFrames returns the ImgvideoFrames field if non-nil, zero value otherwise. + +### GetImgvideoFramesOk + +`func (o *RealtimeEntryAggregated) GetImgvideoFramesOk() (*int32, bool)` + +GetImgvideoFramesOk returns a tuple with the ImgvideoFrames field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetImgvideoFrames + +`func (o *RealtimeEntryAggregated) SetImgvideoFrames(v int32)` + +SetImgvideoFrames sets ImgvideoFrames field to given value. + +### HasImgvideoFrames + +`func (o *RealtimeEntryAggregated) HasImgvideoFrames() bool` + +HasImgvideoFrames returns a boolean if a field has been set. + +### GetImgvideoRespHeaderBytes + +`func (o *RealtimeEntryAggregated) GetImgvideoRespHeaderBytes() int32` + +GetImgvideoRespHeaderBytes returns the ImgvideoRespHeaderBytes field if non-nil, zero value otherwise. + +### GetImgvideoRespHeaderBytesOk + +`func (o *RealtimeEntryAggregated) GetImgvideoRespHeaderBytesOk() (*int32, bool)` + +GetImgvideoRespHeaderBytesOk returns a tuple with the ImgvideoRespHeaderBytes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetImgvideoRespHeaderBytes + +`func (o *RealtimeEntryAggregated) SetImgvideoRespHeaderBytes(v int32)` + +SetImgvideoRespHeaderBytes sets ImgvideoRespHeaderBytes field to given value. + +### HasImgvideoRespHeaderBytes + +`func (o *RealtimeEntryAggregated) HasImgvideoRespHeaderBytes() bool` + +HasImgvideoRespHeaderBytes returns a boolean if a field has been set. + +### GetImgvideoRespBodyBytes + +`func (o *RealtimeEntryAggregated) GetImgvideoRespBodyBytes() int32` + +GetImgvideoRespBodyBytes returns the ImgvideoRespBodyBytes field if non-nil, zero value otherwise. + +### GetImgvideoRespBodyBytesOk + +`func (o *RealtimeEntryAggregated) GetImgvideoRespBodyBytesOk() (*int32, bool)` + +GetImgvideoRespBodyBytesOk returns a tuple with the ImgvideoRespBodyBytes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetImgvideoRespBodyBytes + +`func (o *RealtimeEntryAggregated) SetImgvideoRespBodyBytes(v int32)` + +SetImgvideoRespBodyBytes sets ImgvideoRespBodyBytes field to given value. + +### HasImgvideoRespBodyBytes + +`func (o *RealtimeEntryAggregated) HasImgvideoRespBodyBytes() bool` + +HasImgvideoRespBodyBytes returns a boolean if a field has been set. + +### GetImgvideoShield + +`func (o *RealtimeEntryAggregated) GetImgvideoShield() int32` + +GetImgvideoShield returns the ImgvideoShield field if non-nil, zero value otherwise. + +### GetImgvideoShieldOk + +`func (o *RealtimeEntryAggregated) GetImgvideoShieldOk() (*int32, bool)` + +GetImgvideoShieldOk returns a tuple with the ImgvideoShield field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetImgvideoShield + +`func (o *RealtimeEntryAggregated) SetImgvideoShield(v int32)` + +SetImgvideoShield sets ImgvideoShield field to given value. + +### HasImgvideoShield + +`func (o *RealtimeEntryAggregated) HasImgvideoShield() bool` + +HasImgvideoShield returns a boolean if a field has been set. + +### GetImgvideoShieldFrames + +`func (o *RealtimeEntryAggregated) GetImgvideoShieldFrames() int32` + +GetImgvideoShieldFrames returns the ImgvideoShieldFrames field if non-nil, zero value otherwise. + +### GetImgvideoShieldFramesOk + +`func (o *RealtimeEntryAggregated) GetImgvideoShieldFramesOk() (*int32, bool)` + +GetImgvideoShieldFramesOk returns a tuple with the ImgvideoShieldFrames field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetImgvideoShieldFrames + +`func (o *RealtimeEntryAggregated) SetImgvideoShieldFrames(v int32)` + +SetImgvideoShieldFrames sets ImgvideoShieldFrames field to given value. + +### HasImgvideoShieldFrames + +`func (o *RealtimeEntryAggregated) HasImgvideoShieldFrames() bool` + +HasImgvideoShieldFrames returns a boolean if a field has been set. + +### GetImgvideoShieldRespHeaderBytes + +`func (o *RealtimeEntryAggregated) GetImgvideoShieldRespHeaderBytes() int32` + +GetImgvideoShieldRespHeaderBytes returns the ImgvideoShieldRespHeaderBytes field if non-nil, zero value otherwise. + +### GetImgvideoShieldRespHeaderBytesOk + +`func (o *RealtimeEntryAggregated) GetImgvideoShieldRespHeaderBytesOk() (*int32, bool)` + +GetImgvideoShieldRespHeaderBytesOk returns a tuple with the ImgvideoShieldRespHeaderBytes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetImgvideoShieldRespHeaderBytes + +`func (o *RealtimeEntryAggregated) SetImgvideoShieldRespHeaderBytes(v int32)` + +SetImgvideoShieldRespHeaderBytes sets ImgvideoShieldRespHeaderBytes field to given value. + +### HasImgvideoShieldRespHeaderBytes + +`func (o *RealtimeEntryAggregated) HasImgvideoShieldRespHeaderBytes() bool` + +HasImgvideoShieldRespHeaderBytes returns a boolean if a field has been set. + +### GetImgvideoShieldRespBodyBytes + +`func (o *RealtimeEntryAggregated) GetImgvideoShieldRespBodyBytes() int32` + +GetImgvideoShieldRespBodyBytes returns the ImgvideoShieldRespBodyBytes field if non-nil, zero value otherwise. + +### GetImgvideoShieldRespBodyBytesOk + +`func (o *RealtimeEntryAggregated) GetImgvideoShieldRespBodyBytesOk() (*int32, bool)` + +GetImgvideoShieldRespBodyBytesOk returns a tuple with the ImgvideoShieldRespBodyBytes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetImgvideoShieldRespBodyBytes + +`func (o *RealtimeEntryAggregated) SetImgvideoShieldRespBodyBytes(v int32)` + +SetImgvideoShieldRespBodyBytes sets ImgvideoShieldRespBodyBytes field to given value. + +### HasImgvideoShieldRespBodyBytes + +`func (o *RealtimeEntryAggregated) HasImgvideoShieldRespBodyBytes() bool` + +HasImgvideoShieldRespBodyBytes returns a boolean if a field has been set. + +### GetLogBytes + +`func (o *RealtimeEntryAggregated) GetLogBytes() int32` + +GetLogBytes returns the LogBytes field if non-nil, zero value otherwise. + +### GetLogBytesOk + +`func (o *RealtimeEntryAggregated) GetLogBytesOk() (*int32, bool)` + +GetLogBytesOk returns a tuple with the LogBytes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLogBytes + +`func (o *RealtimeEntryAggregated) SetLogBytes(v int32)` + +SetLogBytes sets LogBytes field to given value. + +### HasLogBytes + +`func (o *RealtimeEntryAggregated) HasLogBytes() bool` + +HasLogBytes returns a boolean if a field has been set. + +### GetEdgeRequests + +`func (o *RealtimeEntryAggregated) GetEdgeRequests() int32` + +GetEdgeRequests returns the EdgeRequests field if non-nil, zero value otherwise. + +### GetEdgeRequestsOk + +`func (o *RealtimeEntryAggregated) GetEdgeRequestsOk() (*int32, bool)` + +GetEdgeRequestsOk returns a tuple with the EdgeRequests field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEdgeRequests + +`func (o *RealtimeEntryAggregated) SetEdgeRequests(v int32)` + +SetEdgeRequests sets EdgeRequests field to given value. + +### HasEdgeRequests + +`func (o *RealtimeEntryAggregated) HasEdgeRequests() bool` + +HasEdgeRequests returns a boolean if a field has been set. + +### GetEdgeRespHeaderBytes + +`func (o *RealtimeEntryAggregated) GetEdgeRespHeaderBytes() int32` + +GetEdgeRespHeaderBytes returns the EdgeRespHeaderBytes field if non-nil, zero value otherwise. + +### GetEdgeRespHeaderBytesOk + +`func (o *RealtimeEntryAggregated) GetEdgeRespHeaderBytesOk() (*int32, bool)` + +GetEdgeRespHeaderBytesOk returns a tuple with the EdgeRespHeaderBytes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEdgeRespHeaderBytes + +`func (o *RealtimeEntryAggregated) SetEdgeRespHeaderBytes(v int32)` + +SetEdgeRespHeaderBytes sets EdgeRespHeaderBytes field to given value. + +### HasEdgeRespHeaderBytes + +`func (o *RealtimeEntryAggregated) HasEdgeRespHeaderBytes() bool` + +HasEdgeRespHeaderBytes returns a boolean if a field has been set. + +### GetEdgeRespBodyBytes + +`func (o *RealtimeEntryAggregated) GetEdgeRespBodyBytes() int32` + +GetEdgeRespBodyBytes returns the EdgeRespBodyBytes field if non-nil, zero value otherwise. + +### GetEdgeRespBodyBytesOk + +`func (o *RealtimeEntryAggregated) GetEdgeRespBodyBytesOk() (*int32, bool)` + +GetEdgeRespBodyBytesOk returns a tuple with the EdgeRespBodyBytes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEdgeRespBodyBytes + +`func (o *RealtimeEntryAggregated) SetEdgeRespBodyBytes(v int32)` + +SetEdgeRespBodyBytes sets EdgeRespBodyBytes field to given value. + +### HasEdgeRespBodyBytes + +`func (o *RealtimeEntryAggregated) HasEdgeRespBodyBytes() bool` + +HasEdgeRespBodyBytes returns a boolean if a field has been set. + +### GetOriginRevalidations + +`func (o *RealtimeEntryAggregated) GetOriginRevalidations() int32` + +GetOriginRevalidations returns the OriginRevalidations field if non-nil, zero value otherwise. + +### GetOriginRevalidationsOk + +`func (o *RealtimeEntryAggregated) GetOriginRevalidationsOk() (*int32, bool)` + +GetOriginRevalidationsOk returns a tuple with the OriginRevalidations field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOriginRevalidations + +`func (o *RealtimeEntryAggregated) SetOriginRevalidations(v int32)` + +SetOriginRevalidations sets OriginRevalidations field to given value. + +### HasOriginRevalidations + +`func (o *RealtimeEntryAggregated) HasOriginRevalidations() bool` + +HasOriginRevalidations returns a boolean if a field has been set. + +### GetOriginFetches + +`func (o *RealtimeEntryAggregated) GetOriginFetches() int32` + +GetOriginFetches returns the OriginFetches field if non-nil, zero value otherwise. + +### GetOriginFetchesOk + +`func (o *RealtimeEntryAggregated) GetOriginFetchesOk() (*int32, bool)` + +GetOriginFetchesOk returns a tuple with the OriginFetches field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOriginFetches + +`func (o *RealtimeEntryAggregated) SetOriginFetches(v int32)` + +SetOriginFetches sets OriginFetches field to given value. + +### HasOriginFetches + +`func (o *RealtimeEntryAggregated) HasOriginFetches() bool` + +HasOriginFetches returns a boolean if a field has been set. + +### GetOriginFetchHeaderBytes + +`func (o *RealtimeEntryAggregated) GetOriginFetchHeaderBytes() int32` + +GetOriginFetchHeaderBytes returns the OriginFetchHeaderBytes field if non-nil, zero value otherwise. + +### GetOriginFetchHeaderBytesOk + +`func (o *RealtimeEntryAggregated) GetOriginFetchHeaderBytesOk() (*int32, bool)` + +GetOriginFetchHeaderBytesOk returns a tuple with the OriginFetchHeaderBytes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOriginFetchHeaderBytes + +`func (o *RealtimeEntryAggregated) SetOriginFetchHeaderBytes(v int32)` + +SetOriginFetchHeaderBytes sets OriginFetchHeaderBytes field to given value. + +### HasOriginFetchHeaderBytes + +`func (o *RealtimeEntryAggregated) HasOriginFetchHeaderBytes() bool` + +HasOriginFetchHeaderBytes returns a boolean if a field has been set. + +### GetOriginFetchBodyBytes + +`func (o *RealtimeEntryAggregated) GetOriginFetchBodyBytes() int32` + +GetOriginFetchBodyBytes returns the OriginFetchBodyBytes field if non-nil, zero value otherwise. + +### GetOriginFetchBodyBytesOk + +`func (o *RealtimeEntryAggregated) GetOriginFetchBodyBytesOk() (*int32, bool)` + +GetOriginFetchBodyBytesOk returns a tuple with the OriginFetchBodyBytes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOriginFetchBodyBytes + +`func (o *RealtimeEntryAggregated) SetOriginFetchBodyBytes(v int32)` + +SetOriginFetchBodyBytes sets OriginFetchBodyBytes field to given value. + +### HasOriginFetchBodyBytes + +`func (o *RealtimeEntryAggregated) HasOriginFetchBodyBytes() bool` + +HasOriginFetchBodyBytes returns a boolean if a field has been set. + +### GetOriginFetchRespHeaderBytes + +`func (o *RealtimeEntryAggregated) GetOriginFetchRespHeaderBytes() int32` + +GetOriginFetchRespHeaderBytes returns the OriginFetchRespHeaderBytes field if non-nil, zero value otherwise. + +### GetOriginFetchRespHeaderBytesOk + +`func (o *RealtimeEntryAggregated) GetOriginFetchRespHeaderBytesOk() (*int32, bool)` + +GetOriginFetchRespHeaderBytesOk returns a tuple with the OriginFetchRespHeaderBytes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOriginFetchRespHeaderBytes + +`func (o *RealtimeEntryAggregated) SetOriginFetchRespHeaderBytes(v int32)` + +SetOriginFetchRespHeaderBytes sets OriginFetchRespHeaderBytes field to given value. + +### HasOriginFetchRespHeaderBytes + +`func (o *RealtimeEntryAggregated) HasOriginFetchRespHeaderBytes() bool` + +HasOriginFetchRespHeaderBytes returns a boolean if a field has been set. + +### GetOriginFetchRespBodyBytes + +`func (o *RealtimeEntryAggregated) GetOriginFetchRespBodyBytes() int32` + +GetOriginFetchRespBodyBytes returns the OriginFetchRespBodyBytes field if non-nil, zero value otherwise. + +### GetOriginFetchRespBodyBytesOk + +`func (o *RealtimeEntryAggregated) GetOriginFetchRespBodyBytesOk() (*int32, bool)` + +GetOriginFetchRespBodyBytesOk returns a tuple with the OriginFetchRespBodyBytes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOriginFetchRespBodyBytes + +`func (o *RealtimeEntryAggregated) SetOriginFetchRespBodyBytes(v int32)` + +SetOriginFetchRespBodyBytes sets OriginFetchRespBodyBytes field to given value. + +### HasOriginFetchRespBodyBytes + +`func (o *RealtimeEntryAggregated) HasOriginFetchRespBodyBytes() bool` + +HasOriginFetchRespBodyBytes returns a boolean if a field has been set. + +### GetShieldRevalidations + +`func (o *RealtimeEntryAggregated) GetShieldRevalidations() int32` + +GetShieldRevalidations returns the ShieldRevalidations field if non-nil, zero value otherwise. + +### GetShieldRevalidationsOk + +`func (o *RealtimeEntryAggregated) GetShieldRevalidationsOk() (*int32, bool)` + +GetShieldRevalidationsOk returns a tuple with the ShieldRevalidations field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetShieldRevalidations + +`func (o *RealtimeEntryAggregated) SetShieldRevalidations(v int32)` + +SetShieldRevalidations sets ShieldRevalidations field to given value. + +### HasShieldRevalidations + +`func (o *RealtimeEntryAggregated) HasShieldRevalidations() bool` + +HasShieldRevalidations returns a boolean if a field has been set. + +### GetShieldFetches + +`func (o *RealtimeEntryAggregated) GetShieldFetches() int32` + +GetShieldFetches returns the ShieldFetches field if non-nil, zero value otherwise. + +### GetShieldFetchesOk + +`func (o *RealtimeEntryAggregated) GetShieldFetchesOk() (*int32, bool)` + +GetShieldFetchesOk returns a tuple with the ShieldFetches field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetShieldFetches + +`func (o *RealtimeEntryAggregated) SetShieldFetches(v int32)` + +SetShieldFetches sets ShieldFetches field to given value. + +### HasShieldFetches + +`func (o *RealtimeEntryAggregated) HasShieldFetches() bool` + +HasShieldFetches returns a boolean if a field has been set. + +### GetShieldFetchHeaderBytes + +`func (o *RealtimeEntryAggregated) GetShieldFetchHeaderBytes() int32` + +GetShieldFetchHeaderBytes returns the ShieldFetchHeaderBytes field if non-nil, zero value otherwise. + +### GetShieldFetchHeaderBytesOk + +`func (o *RealtimeEntryAggregated) GetShieldFetchHeaderBytesOk() (*int32, bool)` + +GetShieldFetchHeaderBytesOk returns a tuple with the ShieldFetchHeaderBytes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetShieldFetchHeaderBytes + +`func (o *RealtimeEntryAggregated) SetShieldFetchHeaderBytes(v int32)` + +SetShieldFetchHeaderBytes sets ShieldFetchHeaderBytes field to given value. + +### HasShieldFetchHeaderBytes + +`func (o *RealtimeEntryAggregated) HasShieldFetchHeaderBytes() bool` + +HasShieldFetchHeaderBytes returns a boolean if a field has been set. + +### GetShieldFetchBodyBytes + +`func (o *RealtimeEntryAggregated) GetShieldFetchBodyBytes() int32` + +GetShieldFetchBodyBytes returns the ShieldFetchBodyBytes field if non-nil, zero value otherwise. + +### GetShieldFetchBodyBytesOk + +`func (o *RealtimeEntryAggregated) GetShieldFetchBodyBytesOk() (*int32, bool)` + +GetShieldFetchBodyBytesOk returns a tuple with the ShieldFetchBodyBytes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetShieldFetchBodyBytes + +`func (o *RealtimeEntryAggregated) SetShieldFetchBodyBytes(v int32)` + +SetShieldFetchBodyBytes sets ShieldFetchBodyBytes field to given value. + +### HasShieldFetchBodyBytes + +`func (o *RealtimeEntryAggregated) HasShieldFetchBodyBytes() bool` + +HasShieldFetchBodyBytes returns a boolean if a field has been set. + +### GetShieldFetchRespHeaderBytes + +`func (o *RealtimeEntryAggregated) GetShieldFetchRespHeaderBytes() int32` + +GetShieldFetchRespHeaderBytes returns the ShieldFetchRespHeaderBytes field if non-nil, zero value otherwise. + +### GetShieldFetchRespHeaderBytesOk + +`func (o *RealtimeEntryAggregated) GetShieldFetchRespHeaderBytesOk() (*int32, bool)` + +GetShieldFetchRespHeaderBytesOk returns a tuple with the ShieldFetchRespHeaderBytes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetShieldFetchRespHeaderBytes + +`func (o *RealtimeEntryAggregated) SetShieldFetchRespHeaderBytes(v int32)` + +SetShieldFetchRespHeaderBytes sets ShieldFetchRespHeaderBytes field to given value. + +### HasShieldFetchRespHeaderBytes + +`func (o *RealtimeEntryAggregated) HasShieldFetchRespHeaderBytes() bool` + +HasShieldFetchRespHeaderBytes returns a boolean if a field has been set. + +### GetShieldFetchRespBodyBytes + +`func (o *RealtimeEntryAggregated) GetShieldFetchRespBodyBytes() int32` + +GetShieldFetchRespBodyBytes returns the ShieldFetchRespBodyBytes field if non-nil, zero value otherwise. + +### GetShieldFetchRespBodyBytesOk + +`func (o *RealtimeEntryAggregated) GetShieldFetchRespBodyBytesOk() (*int32, bool)` + +GetShieldFetchRespBodyBytesOk returns a tuple with the ShieldFetchRespBodyBytes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetShieldFetchRespBodyBytes + +`func (o *RealtimeEntryAggregated) SetShieldFetchRespBodyBytes(v int32)` + +SetShieldFetchRespBodyBytes sets ShieldFetchRespBodyBytes field to given value. + +### HasShieldFetchRespBodyBytes + +`func (o *RealtimeEntryAggregated) HasShieldFetchRespBodyBytes() bool` + +HasShieldFetchRespBodyBytes returns a boolean if a field has been set. + +### GetSegblockOriginFetches + +`func (o *RealtimeEntryAggregated) GetSegblockOriginFetches() int32` + +GetSegblockOriginFetches returns the SegblockOriginFetches field if non-nil, zero value otherwise. + +### GetSegblockOriginFetchesOk + +`func (o *RealtimeEntryAggregated) GetSegblockOriginFetchesOk() (*int32, bool)` + +GetSegblockOriginFetchesOk returns a tuple with the SegblockOriginFetches field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSegblockOriginFetches + +`func (o *RealtimeEntryAggregated) SetSegblockOriginFetches(v int32)` + +SetSegblockOriginFetches sets SegblockOriginFetches field to given value. + +### HasSegblockOriginFetches + +`func (o *RealtimeEntryAggregated) HasSegblockOriginFetches() bool` + +HasSegblockOriginFetches returns a boolean if a field has been set. + +### GetSegblockShieldFetches + +`func (o *RealtimeEntryAggregated) GetSegblockShieldFetches() int32` + +GetSegblockShieldFetches returns the SegblockShieldFetches field if non-nil, zero value otherwise. + +### GetSegblockShieldFetchesOk + +`func (o *RealtimeEntryAggregated) GetSegblockShieldFetchesOk() (*int32, bool)` + +GetSegblockShieldFetchesOk returns a tuple with the SegblockShieldFetches field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSegblockShieldFetches + +`func (o *RealtimeEntryAggregated) SetSegblockShieldFetches(v int32)` + +SetSegblockShieldFetches sets SegblockShieldFetches field to given value. + +### HasSegblockShieldFetches + +`func (o *RealtimeEntryAggregated) HasSegblockShieldFetches() bool` + +HasSegblockShieldFetches returns a boolean if a field has been set. + +### GetComputeRespStatus1xx + +`func (o *RealtimeEntryAggregated) GetComputeRespStatus1xx() int32` + +GetComputeRespStatus1xx returns the ComputeRespStatus1xx field if non-nil, zero value otherwise. + +### GetComputeRespStatus1xxOk + +`func (o *RealtimeEntryAggregated) GetComputeRespStatus1xxOk() (*int32, bool)` + +GetComputeRespStatus1xxOk returns a tuple with the ComputeRespStatus1xx field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComputeRespStatus1xx + +`func (o *RealtimeEntryAggregated) SetComputeRespStatus1xx(v int32)` + +SetComputeRespStatus1xx sets ComputeRespStatus1xx field to given value. + +### HasComputeRespStatus1xx + +`func (o *RealtimeEntryAggregated) HasComputeRespStatus1xx() bool` + +HasComputeRespStatus1xx returns a boolean if a field has been set. + +### GetComputeRespStatus2xx + +`func (o *RealtimeEntryAggregated) GetComputeRespStatus2xx() int32` + +GetComputeRespStatus2xx returns the ComputeRespStatus2xx field if non-nil, zero value otherwise. + +### GetComputeRespStatus2xxOk + +`func (o *RealtimeEntryAggregated) GetComputeRespStatus2xxOk() (*int32, bool)` + +GetComputeRespStatus2xxOk returns a tuple with the ComputeRespStatus2xx field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComputeRespStatus2xx + +`func (o *RealtimeEntryAggregated) SetComputeRespStatus2xx(v int32)` + +SetComputeRespStatus2xx sets ComputeRespStatus2xx field to given value. + +### HasComputeRespStatus2xx + +`func (o *RealtimeEntryAggregated) HasComputeRespStatus2xx() bool` + +HasComputeRespStatus2xx returns a boolean if a field has been set. + +### GetComputeRespStatus3xx + +`func (o *RealtimeEntryAggregated) GetComputeRespStatus3xx() int32` + +GetComputeRespStatus3xx returns the ComputeRespStatus3xx field if non-nil, zero value otherwise. + +### GetComputeRespStatus3xxOk + +`func (o *RealtimeEntryAggregated) GetComputeRespStatus3xxOk() (*int32, bool)` + +GetComputeRespStatus3xxOk returns a tuple with the ComputeRespStatus3xx field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComputeRespStatus3xx + +`func (o *RealtimeEntryAggregated) SetComputeRespStatus3xx(v int32)` + +SetComputeRespStatus3xx sets ComputeRespStatus3xx field to given value. + +### HasComputeRespStatus3xx + +`func (o *RealtimeEntryAggregated) HasComputeRespStatus3xx() bool` + +HasComputeRespStatus3xx returns a boolean if a field has been set. + +### GetComputeRespStatus4xx + +`func (o *RealtimeEntryAggregated) GetComputeRespStatus4xx() int32` + +GetComputeRespStatus4xx returns the ComputeRespStatus4xx field if non-nil, zero value otherwise. + +### GetComputeRespStatus4xxOk + +`func (o *RealtimeEntryAggregated) GetComputeRespStatus4xxOk() (*int32, bool)` + +GetComputeRespStatus4xxOk returns a tuple with the ComputeRespStatus4xx field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComputeRespStatus4xx + +`func (o *RealtimeEntryAggregated) SetComputeRespStatus4xx(v int32)` + +SetComputeRespStatus4xx sets ComputeRespStatus4xx field to given value. + +### HasComputeRespStatus4xx + +`func (o *RealtimeEntryAggregated) HasComputeRespStatus4xx() bool` + +HasComputeRespStatus4xx returns a boolean if a field has been set. + +### GetComputeRespStatus5xx + +`func (o *RealtimeEntryAggregated) GetComputeRespStatus5xx() int32` + +GetComputeRespStatus5xx returns the ComputeRespStatus5xx field if non-nil, zero value otherwise. + +### GetComputeRespStatus5xxOk + +`func (o *RealtimeEntryAggregated) GetComputeRespStatus5xxOk() (*int32, bool)` + +GetComputeRespStatus5xxOk returns a tuple with the ComputeRespStatus5xx field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComputeRespStatus5xx + +`func (o *RealtimeEntryAggregated) SetComputeRespStatus5xx(v int32)` + +SetComputeRespStatus5xx sets ComputeRespStatus5xx field to given value. + +### HasComputeRespStatus5xx + +`func (o *RealtimeEntryAggregated) HasComputeRespStatus5xx() bool` + +HasComputeRespStatus5xx returns a boolean if a field has been set. + +### GetEdgeHitRequests + +`func (o *RealtimeEntryAggregated) GetEdgeHitRequests() int32` + +GetEdgeHitRequests returns the EdgeHitRequests field if non-nil, zero value otherwise. + +### GetEdgeHitRequestsOk + +`func (o *RealtimeEntryAggregated) GetEdgeHitRequestsOk() (*int32, bool)` + +GetEdgeHitRequestsOk returns a tuple with the EdgeHitRequests field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEdgeHitRequests + +`func (o *RealtimeEntryAggregated) SetEdgeHitRequests(v int32)` + +SetEdgeHitRequests sets EdgeHitRequests field to given value. + +### HasEdgeHitRequests + +`func (o *RealtimeEntryAggregated) HasEdgeHitRequests() bool` + +HasEdgeHitRequests returns a boolean if a field has been set. + +### GetEdgeMissRequests + +`func (o *RealtimeEntryAggregated) GetEdgeMissRequests() int32` + +GetEdgeMissRequests returns the EdgeMissRequests field if non-nil, zero value otherwise. + +### GetEdgeMissRequestsOk + +`func (o *RealtimeEntryAggregated) GetEdgeMissRequestsOk() (*int32, bool)` + +GetEdgeMissRequestsOk returns a tuple with the EdgeMissRequests field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEdgeMissRequests + +`func (o *RealtimeEntryAggregated) SetEdgeMissRequests(v int32)` + +SetEdgeMissRequests sets EdgeMissRequests field to given value. + +### HasEdgeMissRequests + +`func (o *RealtimeEntryAggregated) HasEdgeMissRequests() bool` + +HasEdgeMissRequests returns a boolean if a field has been set. + +### GetComputeBereqHeaderBytes + +`func (o *RealtimeEntryAggregated) GetComputeBereqHeaderBytes() int32` + +GetComputeBereqHeaderBytes returns the ComputeBereqHeaderBytes field if non-nil, zero value otherwise. + +### GetComputeBereqHeaderBytesOk + +`func (o *RealtimeEntryAggregated) GetComputeBereqHeaderBytesOk() (*int32, bool)` + +GetComputeBereqHeaderBytesOk returns a tuple with the ComputeBereqHeaderBytes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComputeBereqHeaderBytes + +`func (o *RealtimeEntryAggregated) SetComputeBereqHeaderBytes(v int32)` + +SetComputeBereqHeaderBytes sets ComputeBereqHeaderBytes field to given value. + +### HasComputeBereqHeaderBytes + +`func (o *RealtimeEntryAggregated) HasComputeBereqHeaderBytes() bool` + +HasComputeBereqHeaderBytes returns a boolean if a field has been set. + +### GetComputeBereqBodyBytes + +`func (o *RealtimeEntryAggregated) GetComputeBereqBodyBytes() int32` + +GetComputeBereqBodyBytes returns the ComputeBereqBodyBytes field if non-nil, zero value otherwise. + +### GetComputeBereqBodyBytesOk + +`func (o *RealtimeEntryAggregated) GetComputeBereqBodyBytesOk() (*int32, bool)` + +GetComputeBereqBodyBytesOk returns a tuple with the ComputeBereqBodyBytes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComputeBereqBodyBytes + +`func (o *RealtimeEntryAggregated) SetComputeBereqBodyBytes(v int32)` + +SetComputeBereqBodyBytes sets ComputeBereqBodyBytes field to given value. + +### HasComputeBereqBodyBytes + +`func (o *RealtimeEntryAggregated) HasComputeBereqBodyBytes() bool` + +HasComputeBereqBodyBytes returns a boolean if a field has been set. + +### GetComputeBerespHeaderBytes + +`func (o *RealtimeEntryAggregated) GetComputeBerespHeaderBytes() int32` + +GetComputeBerespHeaderBytes returns the ComputeBerespHeaderBytes field if non-nil, zero value otherwise. + +### GetComputeBerespHeaderBytesOk + +`func (o *RealtimeEntryAggregated) GetComputeBerespHeaderBytesOk() (*int32, bool)` + +GetComputeBerespHeaderBytesOk returns a tuple with the ComputeBerespHeaderBytes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComputeBerespHeaderBytes + +`func (o *RealtimeEntryAggregated) SetComputeBerespHeaderBytes(v int32)` + +SetComputeBerespHeaderBytes sets ComputeBerespHeaderBytes field to given value. + +### HasComputeBerespHeaderBytes + +`func (o *RealtimeEntryAggregated) HasComputeBerespHeaderBytes() bool` + +HasComputeBerespHeaderBytes returns a boolean if a field has been set. + +### GetComputeBerespBodyBytes + +`func (o *RealtimeEntryAggregated) GetComputeBerespBodyBytes() int32` + +GetComputeBerespBodyBytes returns the ComputeBerespBodyBytes field if non-nil, zero value otherwise. + +### GetComputeBerespBodyBytesOk + +`func (o *RealtimeEntryAggregated) GetComputeBerespBodyBytesOk() (*int32, bool)` + +GetComputeBerespBodyBytesOk returns a tuple with the ComputeBerespBodyBytes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComputeBerespBodyBytes + +`func (o *RealtimeEntryAggregated) SetComputeBerespBodyBytes(v int32)` + +SetComputeBerespBodyBytes sets ComputeBerespBodyBytes field to given value. + +### HasComputeBerespBodyBytes + +`func (o *RealtimeEntryAggregated) HasComputeBerespBodyBytes() bool` + +HasComputeBerespBodyBytes returns a boolean if a field has been set. + +### GetOriginCacheFetches + +`func (o *RealtimeEntryAggregated) GetOriginCacheFetches() int32` + +GetOriginCacheFetches returns the OriginCacheFetches field if non-nil, zero value otherwise. + +### GetOriginCacheFetchesOk + +`func (o *RealtimeEntryAggregated) GetOriginCacheFetchesOk() (*int32, bool)` + +GetOriginCacheFetchesOk returns a tuple with the OriginCacheFetches field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOriginCacheFetches + +`func (o *RealtimeEntryAggregated) SetOriginCacheFetches(v int32)` + +SetOriginCacheFetches sets OriginCacheFetches field to given value. + +### HasOriginCacheFetches + +`func (o *RealtimeEntryAggregated) HasOriginCacheFetches() bool` + +HasOriginCacheFetches returns a boolean if a field has been set. + +### GetShieldCacheFetches + +`func (o *RealtimeEntryAggregated) GetShieldCacheFetches() int32` + +GetShieldCacheFetches returns the ShieldCacheFetches field if non-nil, zero value otherwise. + +### GetShieldCacheFetchesOk + +`func (o *RealtimeEntryAggregated) GetShieldCacheFetchesOk() (*int32, bool)` + +GetShieldCacheFetchesOk returns a tuple with the ShieldCacheFetches field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetShieldCacheFetches + +`func (o *RealtimeEntryAggregated) SetShieldCacheFetches(v int32)` + +SetShieldCacheFetches sets ShieldCacheFetches field to given value. + +### HasShieldCacheFetches + +`func (o *RealtimeEntryAggregated) HasShieldCacheFetches() bool` + +HasShieldCacheFetches returns a boolean if a field has been set. + +### GetComputeBereqs + +`func (o *RealtimeEntryAggregated) GetComputeBereqs() int32` + +GetComputeBereqs returns the ComputeBereqs field if non-nil, zero value otherwise. + +### GetComputeBereqsOk + +`func (o *RealtimeEntryAggregated) GetComputeBereqsOk() (*int32, bool)` + +GetComputeBereqsOk returns a tuple with the ComputeBereqs field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComputeBereqs + +`func (o *RealtimeEntryAggregated) SetComputeBereqs(v int32)` + +SetComputeBereqs sets ComputeBereqs field to given value. + +### HasComputeBereqs + +`func (o *RealtimeEntryAggregated) HasComputeBereqs() bool` + +HasComputeBereqs returns a boolean if a field has been set. + +### GetComputeBereqErrors + +`func (o *RealtimeEntryAggregated) GetComputeBereqErrors() int32` + +GetComputeBereqErrors returns the ComputeBereqErrors field if non-nil, zero value otherwise. + +### GetComputeBereqErrorsOk + +`func (o *RealtimeEntryAggregated) GetComputeBereqErrorsOk() (*int32, bool)` + +GetComputeBereqErrorsOk returns a tuple with the ComputeBereqErrors field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComputeBereqErrors + +`func (o *RealtimeEntryAggregated) SetComputeBereqErrors(v int32)` + +SetComputeBereqErrors sets ComputeBereqErrors field to given value. + +### HasComputeBereqErrors + +`func (o *RealtimeEntryAggregated) HasComputeBereqErrors() bool` + +HasComputeBereqErrors returns a boolean if a field has been set. + +### GetComputeResourceLimitExceeded + +`func (o *RealtimeEntryAggregated) GetComputeResourceLimitExceeded() int32` + +GetComputeResourceLimitExceeded returns the ComputeResourceLimitExceeded field if non-nil, zero value otherwise. + +### GetComputeResourceLimitExceededOk + +`func (o *RealtimeEntryAggregated) GetComputeResourceLimitExceededOk() (*int32, bool)` + +GetComputeResourceLimitExceededOk returns a tuple with the ComputeResourceLimitExceeded field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComputeResourceLimitExceeded + +`func (o *RealtimeEntryAggregated) SetComputeResourceLimitExceeded(v int32)` + +SetComputeResourceLimitExceeded sets ComputeResourceLimitExceeded field to given value. + +### HasComputeResourceLimitExceeded + +`func (o *RealtimeEntryAggregated) HasComputeResourceLimitExceeded() bool` + +HasComputeResourceLimitExceeded returns a boolean if a field has been set. + +### GetComputeHeapLimitExceeded + +`func (o *RealtimeEntryAggregated) GetComputeHeapLimitExceeded() int32` + +GetComputeHeapLimitExceeded returns the ComputeHeapLimitExceeded field if non-nil, zero value otherwise. + +### GetComputeHeapLimitExceededOk + +`func (o *RealtimeEntryAggregated) GetComputeHeapLimitExceededOk() (*int32, bool)` + +GetComputeHeapLimitExceededOk returns a tuple with the ComputeHeapLimitExceeded field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComputeHeapLimitExceeded + +`func (o *RealtimeEntryAggregated) SetComputeHeapLimitExceeded(v int32)` + +SetComputeHeapLimitExceeded sets ComputeHeapLimitExceeded field to given value. + +### HasComputeHeapLimitExceeded + +`func (o *RealtimeEntryAggregated) HasComputeHeapLimitExceeded() bool` + +HasComputeHeapLimitExceeded returns a boolean if a field has been set. + +### GetComputeStackLimitExceeded + +`func (o *RealtimeEntryAggregated) GetComputeStackLimitExceeded() int32` + +GetComputeStackLimitExceeded returns the ComputeStackLimitExceeded field if non-nil, zero value otherwise. + +### GetComputeStackLimitExceededOk + +`func (o *RealtimeEntryAggregated) GetComputeStackLimitExceededOk() (*int32, bool)` + +GetComputeStackLimitExceededOk returns a tuple with the ComputeStackLimitExceeded field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComputeStackLimitExceeded + +`func (o *RealtimeEntryAggregated) SetComputeStackLimitExceeded(v int32)` + +SetComputeStackLimitExceeded sets ComputeStackLimitExceeded field to given value. + +### HasComputeStackLimitExceeded + +`func (o *RealtimeEntryAggregated) HasComputeStackLimitExceeded() bool` + +HasComputeStackLimitExceeded returns a boolean if a field has been set. + +### GetComputeGlobalsLimitExceeded + +`func (o *RealtimeEntryAggregated) GetComputeGlobalsLimitExceeded() int32` + +GetComputeGlobalsLimitExceeded returns the ComputeGlobalsLimitExceeded field if non-nil, zero value otherwise. + +### GetComputeGlobalsLimitExceededOk + +`func (o *RealtimeEntryAggregated) GetComputeGlobalsLimitExceededOk() (*int32, bool)` + +GetComputeGlobalsLimitExceededOk returns a tuple with the ComputeGlobalsLimitExceeded field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComputeGlobalsLimitExceeded + +`func (o *RealtimeEntryAggregated) SetComputeGlobalsLimitExceeded(v int32)` + +SetComputeGlobalsLimitExceeded sets ComputeGlobalsLimitExceeded field to given value. + +### HasComputeGlobalsLimitExceeded + +`func (o *RealtimeEntryAggregated) HasComputeGlobalsLimitExceeded() bool` + +HasComputeGlobalsLimitExceeded returns a boolean if a field has been set. + +### GetComputeGuestErrors + +`func (o *RealtimeEntryAggregated) GetComputeGuestErrors() int32` + +GetComputeGuestErrors returns the ComputeGuestErrors field if non-nil, zero value otherwise. + +### GetComputeGuestErrorsOk + +`func (o *RealtimeEntryAggregated) GetComputeGuestErrorsOk() (*int32, bool)` + +GetComputeGuestErrorsOk returns a tuple with the ComputeGuestErrors field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComputeGuestErrors + +`func (o *RealtimeEntryAggregated) SetComputeGuestErrors(v int32)` + +SetComputeGuestErrors sets ComputeGuestErrors field to given value. + +### HasComputeGuestErrors + +`func (o *RealtimeEntryAggregated) HasComputeGuestErrors() bool` + +HasComputeGuestErrors returns a boolean if a field has been set. + +### GetComputeRuntimeErrors + +`func (o *RealtimeEntryAggregated) GetComputeRuntimeErrors() int32` + +GetComputeRuntimeErrors returns the ComputeRuntimeErrors field if non-nil, zero value otherwise. + +### GetComputeRuntimeErrorsOk + +`func (o *RealtimeEntryAggregated) GetComputeRuntimeErrorsOk() (*int32, bool)` + +GetComputeRuntimeErrorsOk returns a tuple with the ComputeRuntimeErrors field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComputeRuntimeErrors + +`func (o *RealtimeEntryAggregated) SetComputeRuntimeErrors(v int32)` + +SetComputeRuntimeErrors sets ComputeRuntimeErrors field to given value. + +### HasComputeRuntimeErrors + +`func (o *RealtimeEntryAggregated) HasComputeRuntimeErrors() bool` + +HasComputeRuntimeErrors returns a boolean if a field has been set. + +### GetEdgeHitRespBodyBytes + +`func (o *RealtimeEntryAggregated) GetEdgeHitRespBodyBytes() int32` + +GetEdgeHitRespBodyBytes returns the EdgeHitRespBodyBytes field if non-nil, zero value otherwise. + +### GetEdgeHitRespBodyBytesOk + +`func (o *RealtimeEntryAggregated) GetEdgeHitRespBodyBytesOk() (*int32, bool)` + +GetEdgeHitRespBodyBytesOk returns a tuple with the EdgeHitRespBodyBytes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEdgeHitRespBodyBytes + +`func (o *RealtimeEntryAggregated) SetEdgeHitRespBodyBytes(v int32)` + +SetEdgeHitRespBodyBytes sets EdgeHitRespBodyBytes field to given value. + +### HasEdgeHitRespBodyBytes + +`func (o *RealtimeEntryAggregated) HasEdgeHitRespBodyBytes() bool` + +HasEdgeHitRespBodyBytes returns a boolean if a field has been set. + +### GetEdgeHitRespHeaderBytes + +`func (o *RealtimeEntryAggregated) GetEdgeHitRespHeaderBytes() int32` + +GetEdgeHitRespHeaderBytes returns the EdgeHitRespHeaderBytes field if non-nil, zero value otherwise. + +### GetEdgeHitRespHeaderBytesOk + +`func (o *RealtimeEntryAggregated) GetEdgeHitRespHeaderBytesOk() (*int32, bool)` + +GetEdgeHitRespHeaderBytesOk returns a tuple with the EdgeHitRespHeaderBytes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEdgeHitRespHeaderBytes + +`func (o *RealtimeEntryAggregated) SetEdgeHitRespHeaderBytes(v int32)` + +SetEdgeHitRespHeaderBytes sets EdgeHitRespHeaderBytes field to given value. + +### HasEdgeHitRespHeaderBytes + +`func (o *RealtimeEntryAggregated) HasEdgeHitRespHeaderBytes() bool` + +HasEdgeHitRespHeaderBytes returns a boolean if a field has been set. + +### GetEdgeMissRespBodyBytes + +`func (o *RealtimeEntryAggregated) GetEdgeMissRespBodyBytes() int32` + +GetEdgeMissRespBodyBytes returns the EdgeMissRespBodyBytes field if non-nil, zero value otherwise. + +### GetEdgeMissRespBodyBytesOk + +`func (o *RealtimeEntryAggregated) GetEdgeMissRespBodyBytesOk() (*int32, bool)` + +GetEdgeMissRespBodyBytesOk returns a tuple with the EdgeMissRespBodyBytes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEdgeMissRespBodyBytes + +`func (o *RealtimeEntryAggregated) SetEdgeMissRespBodyBytes(v int32)` + +SetEdgeMissRespBodyBytes sets EdgeMissRespBodyBytes field to given value. + +### HasEdgeMissRespBodyBytes + +`func (o *RealtimeEntryAggregated) HasEdgeMissRespBodyBytes() bool` + +HasEdgeMissRespBodyBytes returns a boolean if a field has been set. + +### GetEdgeMissRespHeaderBytes + +`func (o *RealtimeEntryAggregated) GetEdgeMissRespHeaderBytes() int32` + +GetEdgeMissRespHeaderBytes returns the EdgeMissRespHeaderBytes field if non-nil, zero value otherwise. + +### GetEdgeMissRespHeaderBytesOk + +`func (o *RealtimeEntryAggregated) GetEdgeMissRespHeaderBytesOk() (*int32, bool)` + +GetEdgeMissRespHeaderBytesOk returns a tuple with the EdgeMissRespHeaderBytes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEdgeMissRespHeaderBytes + +`func (o *RealtimeEntryAggregated) SetEdgeMissRespHeaderBytes(v int32)` + +SetEdgeMissRespHeaderBytes sets EdgeMissRespHeaderBytes field to given value. + +### HasEdgeMissRespHeaderBytes + +`func (o *RealtimeEntryAggregated) HasEdgeMissRespHeaderBytes() bool` + +HasEdgeMissRespHeaderBytes returns a boolean if a field has been set. + +### GetOriginCacheFetchRespBodyBytes + +`func (o *RealtimeEntryAggregated) GetOriginCacheFetchRespBodyBytes() int32` + +GetOriginCacheFetchRespBodyBytes returns the OriginCacheFetchRespBodyBytes field if non-nil, zero value otherwise. + +### GetOriginCacheFetchRespBodyBytesOk + +`func (o *RealtimeEntryAggregated) GetOriginCacheFetchRespBodyBytesOk() (*int32, bool)` + +GetOriginCacheFetchRespBodyBytesOk returns a tuple with the OriginCacheFetchRespBodyBytes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOriginCacheFetchRespBodyBytes + +`func (o *RealtimeEntryAggregated) SetOriginCacheFetchRespBodyBytes(v int32)` + +SetOriginCacheFetchRespBodyBytes sets OriginCacheFetchRespBodyBytes field to given value. + +### HasOriginCacheFetchRespBodyBytes + +`func (o *RealtimeEntryAggregated) HasOriginCacheFetchRespBodyBytes() bool` + +HasOriginCacheFetchRespBodyBytes returns a boolean if a field has been set. + +### GetOriginCacheFetchRespHeaderBytes + +`func (o *RealtimeEntryAggregated) GetOriginCacheFetchRespHeaderBytes() int32` + +GetOriginCacheFetchRespHeaderBytes returns the OriginCacheFetchRespHeaderBytes field if non-nil, zero value otherwise. + +### GetOriginCacheFetchRespHeaderBytesOk + +`func (o *RealtimeEntryAggregated) GetOriginCacheFetchRespHeaderBytesOk() (*int32, bool)` + +GetOriginCacheFetchRespHeaderBytesOk returns a tuple with the OriginCacheFetchRespHeaderBytes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOriginCacheFetchRespHeaderBytes + +`func (o *RealtimeEntryAggregated) SetOriginCacheFetchRespHeaderBytes(v int32)` + +SetOriginCacheFetchRespHeaderBytes sets OriginCacheFetchRespHeaderBytes field to given value. + +### HasOriginCacheFetchRespHeaderBytes + +`func (o *RealtimeEntryAggregated) HasOriginCacheFetchRespHeaderBytes() bool` + +HasOriginCacheFetchRespHeaderBytes returns a boolean if a field has been set. + +### GetShieldHitRequests + +`func (o *RealtimeEntryAggregated) GetShieldHitRequests() int32` + +GetShieldHitRequests returns the ShieldHitRequests field if non-nil, zero value otherwise. + +### GetShieldHitRequestsOk + +`func (o *RealtimeEntryAggregated) GetShieldHitRequestsOk() (*int32, bool)` + +GetShieldHitRequestsOk returns a tuple with the ShieldHitRequests field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetShieldHitRequests + +`func (o *RealtimeEntryAggregated) SetShieldHitRequests(v int32)` + +SetShieldHitRequests sets ShieldHitRequests field to given value. + +### HasShieldHitRequests + +`func (o *RealtimeEntryAggregated) HasShieldHitRequests() bool` + +HasShieldHitRequests returns a boolean if a field has been set. + +### GetShieldMissRequests + +`func (o *RealtimeEntryAggregated) GetShieldMissRequests() int32` + +GetShieldMissRequests returns the ShieldMissRequests field if non-nil, zero value otherwise. + +### GetShieldMissRequestsOk + +`func (o *RealtimeEntryAggregated) GetShieldMissRequestsOk() (*int32, bool)` + +GetShieldMissRequestsOk returns a tuple with the ShieldMissRequests field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetShieldMissRequests + +`func (o *RealtimeEntryAggregated) SetShieldMissRequests(v int32)` + +SetShieldMissRequests sets ShieldMissRequests field to given value. + +### HasShieldMissRequests + +`func (o *RealtimeEntryAggregated) HasShieldMissRequests() bool` + +HasShieldMissRequests returns a boolean if a field has been set. + +### GetShieldHitRespHeaderBytes + +`func (o *RealtimeEntryAggregated) GetShieldHitRespHeaderBytes() int32` + +GetShieldHitRespHeaderBytes returns the ShieldHitRespHeaderBytes field if non-nil, zero value otherwise. + +### GetShieldHitRespHeaderBytesOk + +`func (o *RealtimeEntryAggregated) GetShieldHitRespHeaderBytesOk() (*int32, bool)` + +GetShieldHitRespHeaderBytesOk returns a tuple with the ShieldHitRespHeaderBytes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetShieldHitRespHeaderBytes + +`func (o *RealtimeEntryAggregated) SetShieldHitRespHeaderBytes(v int32)` + +SetShieldHitRespHeaderBytes sets ShieldHitRespHeaderBytes field to given value. + +### HasShieldHitRespHeaderBytes + +`func (o *RealtimeEntryAggregated) HasShieldHitRespHeaderBytes() bool` + +HasShieldHitRespHeaderBytes returns a boolean if a field has been set. + +### GetShieldHitRespBodyBytes + +`func (o *RealtimeEntryAggregated) GetShieldHitRespBodyBytes() int32` + +GetShieldHitRespBodyBytes returns the ShieldHitRespBodyBytes field if non-nil, zero value otherwise. + +### GetShieldHitRespBodyBytesOk + +`func (o *RealtimeEntryAggregated) GetShieldHitRespBodyBytesOk() (*int32, bool)` + +GetShieldHitRespBodyBytesOk returns a tuple with the ShieldHitRespBodyBytes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetShieldHitRespBodyBytes + +`func (o *RealtimeEntryAggregated) SetShieldHitRespBodyBytes(v int32)` + +SetShieldHitRespBodyBytes sets ShieldHitRespBodyBytes field to given value. + +### HasShieldHitRespBodyBytes + +`func (o *RealtimeEntryAggregated) HasShieldHitRespBodyBytes() bool` + +HasShieldHitRespBodyBytes returns a boolean if a field has been set. + +### GetShieldMissRespHeaderBytes + +`func (o *RealtimeEntryAggregated) GetShieldMissRespHeaderBytes() int32` + +GetShieldMissRespHeaderBytes returns the ShieldMissRespHeaderBytes field if non-nil, zero value otherwise. + +### GetShieldMissRespHeaderBytesOk + +`func (o *RealtimeEntryAggregated) GetShieldMissRespHeaderBytesOk() (*int32, bool)` + +GetShieldMissRespHeaderBytesOk returns a tuple with the ShieldMissRespHeaderBytes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetShieldMissRespHeaderBytes + +`func (o *RealtimeEntryAggregated) SetShieldMissRespHeaderBytes(v int32)` + +SetShieldMissRespHeaderBytes sets ShieldMissRespHeaderBytes field to given value. + +### HasShieldMissRespHeaderBytes + +`func (o *RealtimeEntryAggregated) HasShieldMissRespHeaderBytes() bool` + +HasShieldMissRespHeaderBytes returns a boolean if a field has been set. + +### GetShieldMissRespBodyBytes + +`func (o *RealtimeEntryAggregated) GetShieldMissRespBodyBytes() int32` + +GetShieldMissRespBodyBytes returns the ShieldMissRespBodyBytes field if non-nil, zero value otherwise. + +### GetShieldMissRespBodyBytesOk + +`func (o *RealtimeEntryAggregated) GetShieldMissRespBodyBytesOk() (*int32, bool)` + +GetShieldMissRespBodyBytesOk returns a tuple with the ShieldMissRespBodyBytes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetShieldMissRespBodyBytes + +`func (o *RealtimeEntryAggregated) SetShieldMissRespBodyBytes(v int32)` + +SetShieldMissRespBodyBytes sets ShieldMissRespBodyBytes field to given value. + +### HasShieldMissRespBodyBytes + +`func (o *RealtimeEntryAggregated) HasShieldMissRespBodyBytes() bool` + +HasShieldMissRespBodyBytes returns a boolean if a field has been set. + +### GetWebsocketReqHeaderBytes + +`func (o *RealtimeEntryAggregated) GetWebsocketReqHeaderBytes() int32` + +GetWebsocketReqHeaderBytes returns the WebsocketReqHeaderBytes field if non-nil, zero value otherwise. + +### GetWebsocketReqHeaderBytesOk + +`func (o *RealtimeEntryAggregated) GetWebsocketReqHeaderBytesOk() (*int32, bool)` + +GetWebsocketReqHeaderBytesOk returns a tuple with the WebsocketReqHeaderBytes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWebsocketReqHeaderBytes + +`func (o *RealtimeEntryAggregated) SetWebsocketReqHeaderBytes(v int32)` + +SetWebsocketReqHeaderBytes sets WebsocketReqHeaderBytes field to given value. + +### HasWebsocketReqHeaderBytes + +`func (o *RealtimeEntryAggregated) HasWebsocketReqHeaderBytes() bool` + +HasWebsocketReqHeaderBytes returns a boolean if a field has been set. + +### GetWebsocketReqBodyBytes + +`func (o *RealtimeEntryAggregated) GetWebsocketReqBodyBytes() int32` + +GetWebsocketReqBodyBytes returns the WebsocketReqBodyBytes field if non-nil, zero value otherwise. + +### GetWebsocketReqBodyBytesOk + +`func (o *RealtimeEntryAggregated) GetWebsocketReqBodyBytesOk() (*int32, bool)` + +GetWebsocketReqBodyBytesOk returns a tuple with the WebsocketReqBodyBytes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWebsocketReqBodyBytes + +`func (o *RealtimeEntryAggregated) SetWebsocketReqBodyBytes(v int32)` + +SetWebsocketReqBodyBytes sets WebsocketReqBodyBytes field to given value. + +### HasWebsocketReqBodyBytes + +`func (o *RealtimeEntryAggregated) HasWebsocketReqBodyBytes() bool` + +HasWebsocketReqBodyBytes returns a boolean if a field has been set. + +### GetWebsocketRespHeaderBytes + +`func (o *RealtimeEntryAggregated) GetWebsocketRespHeaderBytes() int32` + +GetWebsocketRespHeaderBytes returns the WebsocketRespHeaderBytes field if non-nil, zero value otherwise. + +### GetWebsocketRespHeaderBytesOk + +`func (o *RealtimeEntryAggregated) GetWebsocketRespHeaderBytesOk() (*int32, bool)` + +GetWebsocketRespHeaderBytesOk returns a tuple with the WebsocketRespHeaderBytes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWebsocketRespHeaderBytes + +`func (o *RealtimeEntryAggregated) SetWebsocketRespHeaderBytes(v int32)` + +SetWebsocketRespHeaderBytes sets WebsocketRespHeaderBytes field to given value. + +### HasWebsocketRespHeaderBytes + +`func (o *RealtimeEntryAggregated) HasWebsocketRespHeaderBytes() bool` + +HasWebsocketRespHeaderBytes returns a boolean if a field has been set. + +### GetWebsocketBereqHeaderBytes + +`func (o *RealtimeEntryAggregated) GetWebsocketBereqHeaderBytes() int32` + +GetWebsocketBereqHeaderBytes returns the WebsocketBereqHeaderBytes field if non-nil, zero value otherwise. + +### GetWebsocketBereqHeaderBytesOk + +`func (o *RealtimeEntryAggregated) GetWebsocketBereqHeaderBytesOk() (*int32, bool)` + +GetWebsocketBereqHeaderBytesOk returns a tuple with the WebsocketBereqHeaderBytes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWebsocketBereqHeaderBytes + +`func (o *RealtimeEntryAggregated) SetWebsocketBereqHeaderBytes(v int32)` + +SetWebsocketBereqHeaderBytes sets WebsocketBereqHeaderBytes field to given value. + +### HasWebsocketBereqHeaderBytes + +`func (o *RealtimeEntryAggregated) HasWebsocketBereqHeaderBytes() bool` + +HasWebsocketBereqHeaderBytes returns a boolean if a field has been set. + +### GetWebsocketBereqBodyBytes + +`func (o *RealtimeEntryAggregated) GetWebsocketBereqBodyBytes() int32` + +GetWebsocketBereqBodyBytes returns the WebsocketBereqBodyBytes field if non-nil, zero value otherwise. + +### GetWebsocketBereqBodyBytesOk + +`func (o *RealtimeEntryAggregated) GetWebsocketBereqBodyBytesOk() (*int32, bool)` + +GetWebsocketBereqBodyBytesOk returns a tuple with the WebsocketBereqBodyBytes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWebsocketBereqBodyBytes + +`func (o *RealtimeEntryAggregated) SetWebsocketBereqBodyBytes(v int32)` + +SetWebsocketBereqBodyBytes sets WebsocketBereqBodyBytes field to given value. + +### HasWebsocketBereqBodyBytes + +`func (o *RealtimeEntryAggregated) HasWebsocketBereqBodyBytes() bool` + +HasWebsocketBereqBodyBytes returns a boolean if a field has been set. + +### GetWebsocketBerespHeaderBytes + +`func (o *RealtimeEntryAggregated) GetWebsocketBerespHeaderBytes() int32` + +GetWebsocketBerespHeaderBytes returns the WebsocketBerespHeaderBytes field if non-nil, zero value otherwise. + +### GetWebsocketBerespHeaderBytesOk + +`func (o *RealtimeEntryAggregated) GetWebsocketBerespHeaderBytesOk() (*int32, bool)` + +GetWebsocketBerespHeaderBytesOk returns a tuple with the WebsocketBerespHeaderBytes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWebsocketBerespHeaderBytes + +`func (o *RealtimeEntryAggregated) SetWebsocketBerespHeaderBytes(v int32)` + +SetWebsocketBerespHeaderBytes sets WebsocketBerespHeaderBytes field to given value. + +### HasWebsocketBerespHeaderBytes + +`func (o *RealtimeEntryAggregated) HasWebsocketBerespHeaderBytes() bool` + +HasWebsocketBerespHeaderBytes returns a boolean if a field has been set. + +### GetWebsocketBerespBodyBytes + +`func (o *RealtimeEntryAggregated) GetWebsocketBerespBodyBytes() int32` + +GetWebsocketBerespBodyBytes returns the WebsocketBerespBodyBytes field if non-nil, zero value otherwise. + +### GetWebsocketBerespBodyBytesOk + +`func (o *RealtimeEntryAggregated) GetWebsocketBerespBodyBytesOk() (*int32, bool)` + +GetWebsocketBerespBodyBytesOk returns a tuple with the WebsocketBerespBodyBytes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWebsocketBerespBodyBytes + +`func (o *RealtimeEntryAggregated) SetWebsocketBerespBodyBytes(v int32)` + +SetWebsocketBerespBodyBytes sets WebsocketBerespBodyBytes field to given value. + +### HasWebsocketBerespBodyBytes + +`func (o *RealtimeEntryAggregated) HasWebsocketBerespBodyBytes() bool` + +HasWebsocketBerespBodyBytes returns a boolean if a field has been set. + +### GetWebsocketConnTimeMs + +`func (o *RealtimeEntryAggregated) GetWebsocketConnTimeMs() int32` + +GetWebsocketConnTimeMs returns the WebsocketConnTimeMs field if non-nil, zero value otherwise. + +### GetWebsocketConnTimeMsOk + +`func (o *RealtimeEntryAggregated) GetWebsocketConnTimeMsOk() (*int32, bool)` + +GetWebsocketConnTimeMsOk returns a tuple with the WebsocketConnTimeMs field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWebsocketConnTimeMs + +`func (o *RealtimeEntryAggregated) SetWebsocketConnTimeMs(v int32)` + +SetWebsocketConnTimeMs sets WebsocketConnTimeMs field to given value. + +### HasWebsocketConnTimeMs + +`func (o *RealtimeEntryAggregated) HasWebsocketConnTimeMs() bool` + +HasWebsocketConnTimeMs returns a boolean if a field has been set. + +### GetWebsocketRespBodyBytes + +`func (o *RealtimeEntryAggregated) GetWebsocketRespBodyBytes() int32` + +GetWebsocketRespBodyBytes returns the WebsocketRespBodyBytes field if non-nil, zero value otherwise. + +### GetWebsocketRespBodyBytesOk + +`func (o *RealtimeEntryAggregated) GetWebsocketRespBodyBytesOk() (*int32, bool)` + +GetWebsocketRespBodyBytesOk returns a tuple with the WebsocketRespBodyBytes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWebsocketRespBodyBytes + +`func (o *RealtimeEntryAggregated) SetWebsocketRespBodyBytes(v int32)` + +SetWebsocketRespBodyBytes sets WebsocketRespBodyBytes field to given value. + +### HasWebsocketRespBodyBytes + +`func (o *RealtimeEntryAggregated) HasWebsocketRespBodyBytes() bool` + +HasWebsocketRespBodyBytes returns a boolean if a field has been set. + +### GetFanoutRecvPublishes + +`func (o *RealtimeEntryAggregated) GetFanoutRecvPublishes() int32` + +GetFanoutRecvPublishes returns the FanoutRecvPublishes field if non-nil, zero value otherwise. + +### GetFanoutRecvPublishesOk + +`func (o *RealtimeEntryAggregated) GetFanoutRecvPublishesOk() (*int32, bool)` + +GetFanoutRecvPublishesOk returns a tuple with the FanoutRecvPublishes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFanoutRecvPublishes + +`func (o *RealtimeEntryAggregated) SetFanoutRecvPublishes(v int32)` + +SetFanoutRecvPublishes sets FanoutRecvPublishes field to given value. + +### HasFanoutRecvPublishes + +`func (o *RealtimeEntryAggregated) HasFanoutRecvPublishes() bool` + +HasFanoutRecvPublishes returns a boolean if a field has been set. + +### GetFanoutSendPublishes + +`func (o *RealtimeEntryAggregated) GetFanoutSendPublishes() int32` + +GetFanoutSendPublishes returns the FanoutSendPublishes field if non-nil, zero value otherwise. + +### GetFanoutSendPublishesOk + +`func (o *RealtimeEntryAggregated) GetFanoutSendPublishesOk() (*int32, bool)` + +GetFanoutSendPublishesOk returns a tuple with the FanoutSendPublishes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFanoutSendPublishes + +`func (o *RealtimeEntryAggregated) SetFanoutSendPublishes(v int32)` + +SetFanoutSendPublishes sets FanoutSendPublishes field to given value. + +### HasFanoutSendPublishes + +`func (o *RealtimeEntryAggregated) HasFanoutSendPublishes() bool` + +HasFanoutSendPublishes returns a boolean if a field has been set. + +### GetKvStoreClassAOperations + +`func (o *RealtimeEntryAggregated) GetKvStoreClassAOperations() int32` + +GetKvStoreClassAOperations returns the KvStoreClassAOperations field if non-nil, zero value otherwise. + +### GetKvStoreClassAOperationsOk + +`func (o *RealtimeEntryAggregated) GetKvStoreClassAOperationsOk() (*int32, bool)` + +GetKvStoreClassAOperationsOk returns a tuple with the KvStoreClassAOperations field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKvStoreClassAOperations + +`func (o *RealtimeEntryAggregated) SetKvStoreClassAOperations(v int32)` + +SetKvStoreClassAOperations sets KvStoreClassAOperations field to given value. + +### HasKvStoreClassAOperations + +`func (o *RealtimeEntryAggregated) HasKvStoreClassAOperations() bool` + +HasKvStoreClassAOperations returns a boolean if a field has been set. + +### GetKvStoreClassBOperations + +`func (o *RealtimeEntryAggregated) GetKvStoreClassBOperations() int32` + +GetKvStoreClassBOperations returns the KvStoreClassBOperations field if non-nil, zero value otherwise. + +### GetKvStoreClassBOperationsOk + +`func (o *RealtimeEntryAggregated) GetKvStoreClassBOperationsOk() (*int32, bool)` + +GetKvStoreClassBOperationsOk returns a tuple with the KvStoreClassBOperations field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKvStoreClassBOperations + +`func (o *RealtimeEntryAggregated) SetKvStoreClassBOperations(v int32)` + +SetKvStoreClassBOperations sets KvStoreClassBOperations field to given value. + +### HasKvStoreClassBOperations + +`func (o *RealtimeEntryAggregated) HasKvStoreClassBOperations() bool` + +HasKvStoreClassBOperations returns a boolean if a field has been set. + +### GetObjectStoreClassAOperations + +`func (o *RealtimeEntryAggregated) GetObjectStoreClassAOperations() int32` + +GetObjectStoreClassAOperations returns the ObjectStoreClassAOperations field if non-nil, zero value otherwise. + +### GetObjectStoreClassAOperationsOk + +`func (o *RealtimeEntryAggregated) GetObjectStoreClassAOperationsOk() (*int32, bool)` + +GetObjectStoreClassAOperationsOk returns a tuple with the ObjectStoreClassAOperations field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetObjectStoreClassAOperations + +`func (o *RealtimeEntryAggregated) SetObjectStoreClassAOperations(v int32)` + +SetObjectStoreClassAOperations sets ObjectStoreClassAOperations field to given value. + +### HasObjectStoreClassAOperations + +`func (o *RealtimeEntryAggregated) HasObjectStoreClassAOperations() bool` + +HasObjectStoreClassAOperations returns a boolean if a field has been set. + +### GetObjectStoreClassBOperations + +`func (o *RealtimeEntryAggregated) GetObjectStoreClassBOperations() int32` + +GetObjectStoreClassBOperations returns the ObjectStoreClassBOperations field if non-nil, zero value otherwise. + +### GetObjectStoreClassBOperationsOk + +`func (o *RealtimeEntryAggregated) GetObjectStoreClassBOperationsOk() (*int32, bool)` + +GetObjectStoreClassBOperationsOk returns a tuple with the ObjectStoreClassBOperations field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetObjectStoreClassBOperations + +`func (o *RealtimeEntryAggregated) SetObjectStoreClassBOperations(v int32)` + +SetObjectStoreClassBOperations sets ObjectStoreClassBOperations field to given value. + +### HasObjectStoreClassBOperations + +`func (o *RealtimeEntryAggregated) HasObjectStoreClassBOperations() bool` + +HasObjectStoreClassBOperations returns a boolean if a field has been set. + +### GetFanoutReqHeaderBytes + +`func (o *RealtimeEntryAggregated) GetFanoutReqHeaderBytes() int32` + +GetFanoutReqHeaderBytes returns the FanoutReqHeaderBytes field if non-nil, zero value otherwise. + +### GetFanoutReqHeaderBytesOk + +`func (o *RealtimeEntryAggregated) GetFanoutReqHeaderBytesOk() (*int32, bool)` + +GetFanoutReqHeaderBytesOk returns a tuple with the FanoutReqHeaderBytes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFanoutReqHeaderBytes + +`func (o *RealtimeEntryAggregated) SetFanoutReqHeaderBytes(v int32)` + +SetFanoutReqHeaderBytes sets FanoutReqHeaderBytes field to given value. + +### HasFanoutReqHeaderBytes + +`func (o *RealtimeEntryAggregated) HasFanoutReqHeaderBytes() bool` + +HasFanoutReqHeaderBytes returns a boolean if a field has been set. + +### GetFanoutReqBodyBytes + +`func (o *RealtimeEntryAggregated) GetFanoutReqBodyBytes() int32` + +GetFanoutReqBodyBytes returns the FanoutReqBodyBytes field if non-nil, zero value otherwise. + +### GetFanoutReqBodyBytesOk + +`func (o *RealtimeEntryAggregated) GetFanoutReqBodyBytesOk() (*int32, bool)` + +GetFanoutReqBodyBytesOk returns a tuple with the FanoutReqBodyBytes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFanoutReqBodyBytes + +`func (o *RealtimeEntryAggregated) SetFanoutReqBodyBytes(v int32)` + +SetFanoutReqBodyBytes sets FanoutReqBodyBytes field to given value. + +### HasFanoutReqBodyBytes + +`func (o *RealtimeEntryAggregated) HasFanoutReqBodyBytes() bool` + +HasFanoutReqBodyBytes returns a boolean if a field has been set. + +### GetFanoutRespHeaderBytes + +`func (o *RealtimeEntryAggregated) GetFanoutRespHeaderBytes() int32` + +GetFanoutRespHeaderBytes returns the FanoutRespHeaderBytes field if non-nil, zero value otherwise. + +### GetFanoutRespHeaderBytesOk + +`func (o *RealtimeEntryAggregated) GetFanoutRespHeaderBytesOk() (*int32, bool)` + +GetFanoutRespHeaderBytesOk returns a tuple with the FanoutRespHeaderBytes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFanoutRespHeaderBytes + +`func (o *RealtimeEntryAggregated) SetFanoutRespHeaderBytes(v int32)` + +SetFanoutRespHeaderBytes sets FanoutRespHeaderBytes field to given value. + +### HasFanoutRespHeaderBytes + +`func (o *RealtimeEntryAggregated) HasFanoutRespHeaderBytes() bool` + +HasFanoutRespHeaderBytes returns a boolean if a field has been set. + +### GetFanoutRespBodyBytes + +`func (o *RealtimeEntryAggregated) GetFanoutRespBodyBytes() int32` + +GetFanoutRespBodyBytes returns the FanoutRespBodyBytes field if non-nil, zero value otherwise. + +### GetFanoutRespBodyBytesOk + +`func (o *RealtimeEntryAggregated) GetFanoutRespBodyBytesOk() (*int32, bool)` + +GetFanoutRespBodyBytesOk returns a tuple with the FanoutRespBodyBytes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFanoutRespBodyBytes + +`func (o *RealtimeEntryAggregated) SetFanoutRespBodyBytes(v int32)` + +SetFanoutRespBodyBytes sets FanoutRespBodyBytes field to given value. + +### HasFanoutRespBodyBytes + +`func (o *RealtimeEntryAggregated) HasFanoutRespBodyBytes() bool` + +HasFanoutRespBodyBytes returns a boolean if a field has been set. + +### GetFanoutBereqHeaderBytes + +`func (o *RealtimeEntryAggregated) GetFanoutBereqHeaderBytes() int32` + +GetFanoutBereqHeaderBytes returns the FanoutBereqHeaderBytes field if non-nil, zero value otherwise. + +### GetFanoutBereqHeaderBytesOk + +`func (o *RealtimeEntryAggregated) GetFanoutBereqHeaderBytesOk() (*int32, bool)` + +GetFanoutBereqHeaderBytesOk returns a tuple with the FanoutBereqHeaderBytes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFanoutBereqHeaderBytes + +`func (o *RealtimeEntryAggregated) SetFanoutBereqHeaderBytes(v int32)` + +SetFanoutBereqHeaderBytes sets FanoutBereqHeaderBytes field to given value. + +### HasFanoutBereqHeaderBytes + +`func (o *RealtimeEntryAggregated) HasFanoutBereqHeaderBytes() bool` + +HasFanoutBereqHeaderBytes returns a boolean if a field has been set. + +### GetFanoutBereqBodyBytes + +`func (o *RealtimeEntryAggregated) GetFanoutBereqBodyBytes() int32` + +GetFanoutBereqBodyBytes returns the FanoutBereqBodyBytes field if non-nil, zero value otherwise. + +### GetFanoutBereqBodyBytesOk + +`func (o *RealtimeEntryAggregated) GetFanoutBereqBodyBytesOk() (*int32, bool)` + +GetFanoutBereqBodyBytesOk returns a tuple with the FanoutBereqBodyBytes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFanoutBereqBodyBytes + +`func (o *RealtimeEntryAggregated) SetFanoutBereqBodyBytes(v int32)` + +SetFanoutBereqBodyBytes sets FanoutBereqBodyBytes field to given value. + +### HasFanoutBereqBodyBytes + +`func (o *RealtimeEntryAggregated) HasFanoutBereqBodyBytes() bool` + +HasFanoutBereqBodyBytes returns a boolean if a field has been set. + +### GetFanoutBerespHeaderBytes + +`func (o *RealtimeEntryAggregated) GetFanoutBerespHeaderBytes() int32` + +GetFanoutBerespHeaderBytes returns the FanoutBerespHeaderBytes field if non-nil, zero value otherwise. + +### GetFanoutBerespHeaderBytesOk + +`func (o *RealtimeEntryAggregated) GetFanoutBerespHeaderBytesOk() (*int32, bool)` + +GetFanoutBerespHeaderBytesOk returns a tuple with the FanoutBerespHeaderBytes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFanoutBerespHeaderBytes + +`func (o *RealtimeEntryAggregated) SetFanoutBerespHeaderBytes(v int32)` + +SetFanoutBerespHeaderBytes sets FanoutBerespHeaderBytes field to given value. + +### HasFanoutBerespHeaderBytes + +`func (o *RealtimeEntryAggregated) HasFanoutBerespHeaderBytes() bool` + +HasFanoutBerespHeaderBytes returns a boolean if a field has been set. + +### GetFanoutBerespBodyBytes + +`func (o *RealtimeEntryAggregated) GetFanoutBerespBodyBytes() int32` + +GetFanoutBerespBodyBytes returns the FanoutBerespBodyBytes field if non-nil, zero value otherwise. + +### GetFanoutBerespBodyBytesOk + +`func (o *RealtimeEntryAggregated) GetFanoutBerespBodyBytesOk() (*int32, bool)` + +GetFanoutBerespBodyBytesOk returns a tuple with the FanoutBerespBodyBytes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFanoutBerespBodyBytes + +`func (o *RealtimeEntryAggregated) SetFanoutBerespBodyBytes(v int32)` + +SetFanoutBerespBodyBytes sets FanoutBerespBodyBytes field to given value. + +### HasFanoutBerespBodyBytes + +`func (o *RealtimeEntryAggregated) HasFanoutBerespBodyBytes() bool` + +HasFanoutBerespBodyBytes returns a boolean if a field has been set. + +### GetFanoutConnTimeMs + +`func (o *RealtimeEntryAggregated) GetFanoutConnTimeMs() int32` + +GetFanoutConnTimeMs returns the FanoutConnTimeMs field if non-nil, zero value otherwise. + +### GetFanoutConnTimeMsOk + +`func (o *RealtimeEntryAggregated) GetFanoutConnTimeMsOk() (*int32, bool)` + +GetFanoutConnTimeMsOk returns a tuple with the FanoutConnTimeMs field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFanoutConnTimeMs + +`func (o *RealtimeEntryAggregated) SetFanoutConnTimeMs(v int32)` + +SetFanoutConnTimeMs sets FanoutConnTimeMs field to given value. + +### HasFanoutConnTimeMs + +`func (o *RealtimeEntryAggregated) HasFanoutConnTimeMs() bool` + +HasFanoutConnTimeMs returns a boolean if a field has been set. + +### GetDdosActionLimitStreamsConnections + +`func (o *RealtimeEntryAggregated) GetDdosActionLimitStreamsConnections() int32` + +GetDdosActionLimitStreamsConnections returns the DdosActionLimitStreamsConnections field if non-nil, zero value otherwise. + +### GetDdosActionLimitStreamsConnectionsOk + +`func (o *RealtimeEntryAggregated) GetDdosActionLimitStreamsConnectionsOk() (*int32, bool)` + +GetDdosActionLimitStreamsConnectionsOk returns a tuple with the DdosActionLimitStreamsConnections field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDdosActionLimitStreamsConnections + +`func (o *RealtimeEntryAggregated) SetDdosActionLimitStreamsConnections(v int32)` + +SetDdosActionLimitStreamsConnections sets DdosActionLimitStreamsConnections field to given value. + +### HasDdosActionLimitStreamsConnections + +`func (o *RealtimeEntryAggregated) HasDdosActionLimitStreamsConnections() bool` + +HasDdosActionLimitStreamsConnections returns a boolean if a field has been set. + +### GetDdosActionLimitStreamsRequests + +`func (o *RealtimeEntryAggregated) GetDdosActionLimitStreamsRequests() int32` + +GetDdosActionLimitStreamsRequests returns the DdosActionLimitStreamsRequests field if non-nil, zero value otherwise. + +### GetDdosActionLimitStreamsRequestsOk + +`func (o *RealtimeEntryAggregated) GetDdosActionLimitStreamsRequestsOk() (*int32, bool)` + +GetDdosActionLimitStreamsRequestsOk returns a tuple with the DdosActionLimitStreamsRequests field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDdosActionLimitStreamsRequests + +`func (o *RealtimeEntryAggregated) SetDdosActionLimitStreamsRequests(v int32)` + +SetDdosActionLimitStreamsRequests sets DdosActionLimitStreamsRequests field to given value. + +### HasDdosActionLimitStreamsRequests + +`func (o *RealtimeEntryAggregated) HasDdosActionLimitStreamsRequests() bool` + +HasDdosActionLimitStreamsRequests returns a boolean if a field has been set. + +### GetDdosActionTarpitAccept + +`func (o *RealtimeEntryAggregated) GetDdosActionTarpitAccept() int32` + +GetDdosActionTarpitAccept returns the DdosActionTarpitAccept field if non-nil, zero value otherwise. + +### GetDdosActionTarpitAcceptOk + +`func (o *RealtimeEntryAggregated) GetDdosActionTarpitAcceptOk() (*int32, bool)` + +GetDdosActionTarpitAcceptOk returns a tuple with the DdosActionTarpitAccept field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDdosActionTarpitAccept + +`func (o *RealtimeEntryAggregated) SetDdosActionTarpitAccept(v int32)` + +SetDdosActionTarpitAccept sets DdosActionTarpitAccept field to given value. + +### HasDdosActionTarpitAccept + +`func (o *RealtimeEntryAggregated) HasDdosActionTarpitAccept() bool` + +HasDdosActionTarpitAccept returns a boolean if a field has been set. + +### GetDdosActionTarpit + +`func (o *RealtimeEntryAggregated) GetDdosActionTarpit() int32` + +GetDdosActionTarpit returns the DdosActionTarpit field if non-nil, zero value otherwise. + +### GetDdosActionTarpitOk + +`func (o *RealtimeEntryAggregated) GetDdosActionTarpitOk() (*int32, bool)` + +GetDdosActionTarpitOk returns a tuple with the DdosActionTarpit field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDdosActionTarpit + +`func (o *RealtimeEntryAggregated) SetDdosActionTarpit(v int32)` + +SetDdosActionTarpit sets DdosActionTarpit field to given value. + +### HasDdosActionTarpit + +`func (o *RealtimeEntryAggregated) HasDdosActionTarpit() bool` + +HasDdosActionTarpit returns a boolean if a field has been set. + +### GetDdosActionClose + +`func (o *RealtimeEntryAggregated) GetDdosActionClose() int32` + +GetDdosActionClose returns the DdosActionClose field if non-nil, zero value otherwise. + +### GetDdosActionCloseOk + +`func (o *RealtimeEntryAggregated) GetDdosActionCloseOk() (*int32, bool)` + +GetDdosActionCloseOk returns a tuple with the DdosActionClose field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDdosActionClose + +`func (o *RealtimeEntryAggregated) SetDdosActionClose(v int32)` + +SetDdosActionClose sets DdosActionClose field to given value. + +### HasDdosActionClose + +`func (o *RealtimeEntryAggregated) HasDdosActionClose() bool` + +HasDdosActionClose returns a boolean if a field has been set. + +### GetDdosActionBlackhole + +`func (o *RealtimeEntryAggregated) GetDdosActionBlackhole() int32` + +GetDdosActionBlackhole returns the DdosActionBlackhole field if non-nil, zero value otherwise. + +### GetDdosActionBlackholeOk + +`func (o *RealtimeEntryAggregated) GetDdosActionBlackholeOk() (*int32, bool)` + +GetDdosActionBlackholeOk returns a tuple with the DdosActionBlackhole field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDdosActionBlackhole + +`func (o *RealtimeEntryAggregated) SetDdosActionBlackhole(v int32)` + +SetDdosActionBlackhole sets DdosActionBlackhole field to given value. + +### HasDdosActionBlackhole + +`func (o *RealtimeEntryAggregated) HasDdosActionBlackhole() bool` + +HasDdosActionBlackhole returns a boolean if a field has been set. + + +[Back to API list](../README.md#documentation-for-api-endpoints) | [Back to README](../README.md) diff --git a/docs/RealtimeEntryRecorded.md b/docs/RealtimeEntryRecorded.md new file mode 100644 index 00000000..9f6d201d --- /dev/null +++ b/docs/RealtimeEntryRecorded.md @@ -0,0 +1,28 @@ +# RealtimeEntryRecorded + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +## Methods + +### NewRealtimeEntryRecorded + +`func NewRealtimeEntryRecorded() *RealtimeEntryRecorded` + +NewRealtimeEntryRecorded instantiates a new RealtimeEntryRecorded object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewRealtimeEntryRecordedWithDefaults + +`func NewRealtimeEntryRecordedWithDefaults() *RealtimeEntryRecorded` + +NewRealtimeEntryRecordedWithDefaults instantiates a new RealtimeEntryRecorded object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + + +[Back to API list](../README.md#documentation-for-api-endpoints) | [Back to README](../README.md) diff --git a/docs/RealtimeMeasurements.md b/docs/RealtimeMeasurements.md index 3945a4c2..c8bfc976 100644 --- a/docs/RealtimeMeasurements.md +++ b/docs/RealtimeMeasurements.md @@ -18,7 +18,7 @@ Name | Type | Description | Notes **Errors** | Pointer to **int32** | Number of cache errors. | [optional] **HitsTime** | Pointer to **float32** | Total amount of time spent processing cache hits (in seconds). | [optional] **MissTime** | Pointer to **float32** | Total amount of time spent processing cache misses (in seconds). | [optional] -**MissHistogram** | Pointer to **map[string]any** | A histogram. Each key represents the upper bound of a span of 10 milliseconds and the values represent the number of requests to origin during that 10ms period. Any origin request that takes more than 60 seconds to return will be in the 60000 bucket. | [optional] +**MissHistogram** | Pointer to **map[string]map[string]any** | A histogram. Each key represents the upper bound of a span of 10 milliseconds and the values represent the number of requests to origin during that 10ms period. Any origin request that takes more than 60 seconds to return will be in the 60000 bucket. | [optional] **ComputeRequests** | Pointer to **int32** | The total number of requests that were received for your service by Fastly. | [optional] **ComputeExecutionTimeMs** | Pointer to **float32** | The amount of active CPU time used to process your requests (in milliseconds). | [optional] **ComputeRAMUsed** | Pointer to **int32** | The amount of RAM used for your service by Fastly (in bytes). | [optional] @@ -594,20 +594,20 @@ HasMissTime returns a boolean if a field has been set. ### GetMissHistogram -`func (o *RealtimeMeasurements) GetMissHistogram() map[string]any` +`func (o *RealtimeMeasurements) GetMissHistogram() map[string]map[string]any` GetMissHistogram returns the MissHistogram field if non-nil, zero value otherwise. ### GetMissHistogramOk -`func (o *RealtimeMeasurements) GetMissHistogramOk() (*map[string]any, bool)` +`func (o *RealtimeMeasurements) GetMissHistogramOk() (*map[string]map[string]any, bool)` GetMissHistogramOk returns a tuple with the MissHistogram field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetMissHistogram -`func (o *RealtimeMeasurements) SetMissHistogram(v map[string]any)` +`func (o *RealtimeMeasurements) SetMissHistogram(v map[string]map[string]any)` SetMissHistogram sets MissHistogram field to given value. diff --git a/docs/RecordedTimestamp.md b/docs/RecordedTimestamp.md new file mode 100644 index 00000000..486222ad --- /dev/null +++ b/docs/RecordedTimestamp.md @@ -0,0 +1,28 @@ +# RecordedTimestamp + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +## Methods + +### NewRecordedTimestamp + +`func NewRecordedTimestamp() *RecordedTimestamp` + +NewRecordedTimestamp instantiates a new RecordedTimestamp object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewRecordedTimestampWithDefaults + +`func NewRecordedTimestampWithDefaults() *RecordedTimestamp` + +NewRecordedTimestampWithDefaults instantiates a new RecordedTimestamp object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + + +[Back to API list](../README.md#documentation-for-api-endpoints) | [Back to README](../README.md) diff --git a/docs/RequestSettingsAPI.md b/docs/RequestSettingsAPI.md index fc409941..f25a3622 100644 --- a/docs/RequestSettingsAPI.md +++ b/docs/RequestSettingsAPI.md @@ -4,6 +4,7 @@ All URIs are relative to *https://api.fastly.com* Method | HTTP request | Description ------------- | ------------- | ------------- +[**CreateRequestSettings**](RequestSettingsAPI.md#CreateRequestSettings) | **POST** `/service/{service_id}/version/{version_id}/request_settings` | Create a Request Settings object [**DeleteRequestSettings**](RequestSettingsAPI.md#DeleteRequestSettings) | **DELETE** `/service/{service_id}/version/{version_id}/request_settings/{request_settings_name}` | Delete a Request Settings object [**GetRequestSettings**](RequestSettingsAPI.md#GetRequestSettings) | **GET** `/service/{service_id}/version/{version_id}/request_settings/{request_settings_name}` | Get a Request Settings object [**ListRequestSettings**](RequestSettingsAPI.md#ListRequestSettings) | **GET** `/service/{service_id}/version/{version_id}/request_settings` | List Request Settings objects @@ -11,6 +12,75 @@ Method | HTTP request | Description +## CreateRequestSettings + +Create a Request Settings object + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + "github.com/fastly/fastly-go/fastly" +) + +func main() { + serviceID := "serviceId_example" // string | Alphanumeric string identifying the service. + versionID := int32(56) // int32 | Integer identifying a service version. + + cfg := fastly.NewConfiguration() + apiClient := fastly.NewAPIClient(cfg) + ctx := fastly.NewAPIKeyContextFromEnv("FASTLY_API_TOKEN") + resp, r, err := apiClient.RequestSettingsAPI.CreateRequestSettings(ctx, serviceID, versionID).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `RequestSettingsAPI.CreateRequestSettings`: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateRequestSettings`: RequestSettingsResponse + fmt.Fprintf(os.Stdout, "Response from `RequestSettingsAPI.CreateRequestSettings`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceID** | **string** | Alphanumeric string identifying the service. | +**versionID** | **int32** | Integer identifying a service version. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiCreateRequestSettingsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + +[**RequestSettingsResponse**](RequestSettingsResponse.md) + +### Authorization + +[API Token](https://developer.fastly.com/reference/api/#authentication) + +### HTTP request headers + +- **Content-Type**: application/x-www-form-urlencoded +- **Accept**: application/json + +[Back to top](#) | [Back to API list](../README.md#documentation-for-api-endpoints) | [Back to README](../README.md) + + ## DeleteRequestSettings Delete a Request Settings object diff --git a/docs/ResponseObjectAPI.md b/docs/ResponseObjectAPI.md index 1272398c..44621f1b 100644 --- a/docs/ResponseObjectAPI.md +++ b/docs/ResponseObjectAPI.md @@ -4,12 +4,83 @@ All URIs are relative to *https://api.fastly.com* Method | HTTP request | Description ------------- | ------------- | ------------- +[**CreateResponseObject**](ResponseObjectAPI.md#CreateResponseObject) | **POST** `/service/{service_id}/version/{version_id}/response_object` | Create a Response object [**DeleteResponseObject**](ResponseObjectAPI.md#DeleteResponseObject) | **DELETE** `/service/{service_id}/version/{version_id}/response_object/{response_object_name}` | Delete a Response Object [**GetResponseObject**](ResponseObjectAPI.md#GetResponseObject) | **GET** `/service/{service_id}/version/{version_id}/response_object/{response_object_name}` | Get a Response object [**ListResponseObjects**](ResponseObjectAPI.md#ListResponseObjects) | **GET** `/service/{service_id}/version/{version_id}/response_object` | List Response objects +[**UpdateResponseObject**](ResponseObjectAPI.md#UpdateResponseObject) | **PUT** `/service/{service_id}/version/{version_id}/response_object/{response_object_name}` | Update a Response object +## CreateResponseObject + +Create a Response object + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + "github.com/fastly/fastly-go/fastly" +) + +func main() { + serviceID := "serviceId_example" // string | Alphanumeric string identifying the service. + versionID := int32(56) // int32 | Integer identifying a service version. + + cfg := fastly.NewConfiguration() + apiClient := fastly.NewAPIClient(cfg) + ctx := fastly.NewAPIKeyContextFromEnv("FASTLY_API_TOKEN") + resp, r, err := apiClient.ResponseObjectAPI.CreateResponseObject(ctx, serviceID, versionID).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ResponseObjectAPI.CreateResponseObject`: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateResponseObject`: ResponseObjectResponse + fmt.Fprintf(os.Stdout, "Response from `ResponseObjectAPI.CreateResponseObject`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceID** | **string** | Alphanumeric string identifying the service. | +**versionID** | **int32** | Integer identifying a service version. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiCreateResponseObjectRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + +[**ResponseObjectResponse**](ResponseObjectResponse.md) + +### Authorization + +[API Token](https://developer.fastly.com/reference/api/#authentication) + +### HTTP request headers + +- **Content-Type**: application/x-www-form-urlencoded +- **Accept**: application/json + +[Back to top](#) | [Back to API list](../README.md#documentation-for-api-endpoints) | [Back to README](../README.md) + + ## DeleteResponseObject Delete a Response Object @@ -219,3 +290,74 @@ Name | Type | Description | Notes - **Accept**: application/json [Back to top](#) | [Back to API list](../README.md#documentation-for-api-endpoints) | [Back to README](../README.md) + + +## UpdateResponseObject + +Update a Response object + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + "github.com/fastly/fastly-go/fastly" +) + +func main() { + serviceID := "serviceId_example" // string | Alphanumeric string identifying the service. + versionID := int32(56) // int32 | Integer identifying a service version. + responseObjectName := "responseObjectName_example" // string | Name for the request settings. + + cfg := fastly.NewConfiguration() + apiClient := fastly.NewAPIClient(cfg) + ctx := fastly.NewAPIKeyContextFromEnv("FASTLY_API_TOKEN") + resp, r, err := apiClient.ResponseObjectAPI.UpdateResponseObject(ctx, serviceID, versionID, responseObjectName).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ResponseObjectAPI.UpdateResponseObject`: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `UpdateResponseObject`: ResponseObjectResponse + fmt.Fprintf(os.Stdout, "Response from `ResponseObjectAPI.UpdateResponseObject`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceID** | **string** | Alphanumeric string identifying the service. | +**versionID** | **int32** | Integer identifying a service version. | +**responseObjectName** | **string** | Name for the request settings. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiUpdateResponseObjectRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + +[**ResponseObjectResponse**](ResponseObjectResponse.md) + +### Authorization + +[API Token](https://developer.fastly.com/reference/api/#authentication) + +### HTTP request headers + +- **Content-Type**: application/x-www-form-urlencoded +- **Accept**: application/json + +[Back to top](#) | [Back to API list](../README.md#documentation-for-api-endpoints) | [Back to README](../README.md) diff --git a/docs/Secret.md b/docs/Secret.md new file mode 100644 index 00000000..503a7279 --- /dev/null +++ b/docs/Secret.md @@ -0,0 +1,116 @@ +# Secret + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | Pointer to **string** | A human-readable name for the secret. The value must contain only letters, numbers, dashes (`-`), underscores (`_`), and periods (`.`). | [optional] +**Secret** | Pointer to **string** | A Base64-encoded string containing either the secret or the encrypted secret (when using client_key). The maximum secret size (before Base64 encoding and optional local encryption) is 64KB. | [optional] +**ClientKey** | Pointer to **NullableString** | The Base64-encoded string containing the client key used to encrypt the secret, if applicable. | [optional] + +## Methods + +### NewSecret + +`func NewSecret() *Secret` + +NewSecret instantiates a new Secret object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewSecretWithDefaults + +`func NewSecretWithDefaults() *Secret` + +NewSecretWithDefaults instantiates a new Secret object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetName + +`func (o *Secret) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *Secret) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *Secret) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *Secret) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetSecret + +`func (o *Secret) GetSecret() string` + +GetSecret returns the Secret field if non-nil, zero value otherwise. + +### GetSecretOk + +`func (o *Secret) GetSecretOk() (*string, bool)` + +GetSecretOk returns a tuple with the Secret field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSecret + +`func (o *Secret) SetSecret(v string)` + +SetSecret sets Secret field to given value. + +### HasSecret + +`func (o *Secret) HasSecret() bool` + +HasSecret returns a boolean if a field has been set. + +### GetClientKey + +`func (o *Secret) GetClientKey() string` + +GetClientKey returns the ClientKey field if non-nil, zero value otherwise. + +### GetClientKeyOk + +`func (o *Secret) GetClientKeyOk() (*string, bool)` + +GetClientKeyOk returns a tuple with the ClientKey field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetClientKey + +`func (o *Secret) SetClientKey(v string)` + +SetClientKey sets ClientKey field to given value. + +### HasClientKey + +`func (o *Secret) HasClientKey() bool` + +HasClientKey returns a boolean if a field has been set. + +### SetClientKeyNil + +`func (o *Secret) SetClientKeyNil(b bool)` + + SetClientKeyNil sets the value for ClientKey to be an explicit nil + +### UnsetClientKey +`func (o *Secret) UnsetClientKey()` + +UnsetClientKey ensures that no value is present for ClientKey, not even an explicit nil + +[Back to API list](../README.md#documentation-for-api-endpoints) | [Back to README](../README.md) diff --git a/docs/SecretResponse.md b/docs/SecretResponse.md new file mode 100644 index 00000000..2fcf5122 --- /dev/null +++ b/docs/SecretResponse.md @@ -0,0 +1,152 @@ +# SecretResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | Pointer to **string** | Name of the secret. | [optional] +**Digest** | Pointer to **string** | An opaque identifier of the plaintext secret value. This can be used to determine if a secret value has changed. | [optional] [readonly] +**CreatedAt** | Pointer to **NullableTime** | Date and time in ISO 8601 format. | [optional] [readonly] +**Recreated** | Pointer to **NullableBool** | True if the secret replaced a secret with the same name. | [optional] + +## Methods + +### NewSecretResponse + +`func NewSecretResponse() *SecretResponse` + +NewSecretResponse instantiates a new SecretResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewSecretResponseWithDefaults + +`func NewSecretResponseWithDefaults() *SecretResponse` + +NewSecretResponseWithDefaults instantiates a new SecretResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetName + +`func (o *SecretResponse) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *SecretResponse) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *SecretResponse) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *SecretResponse) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetDigest + +`func (o *SecretResponse) GetDigest() string` + +GetDigest returns the Digest field if non-nil, zero value otherwise. + +### GetDigestOk + +`func (o *SecretResponse) GetDigestOk() (*string, bool)` + +GetDigestOk returns a tuple with the Digest field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDigest + +`func (o *SecretResponse) SetDigest(v string)` + +SetDigest sets Digest field to given value. + +### HasDigest + +`func (o *SecretResponse) HasDigest() bool` + +HasDigest returns a boolean if a field has been set. + +### GetCreatedAt + +`func (o *SecretResponse) GetCreatedAt() time.Time` + +GetCreatedAt returns the CreatedAt field if non-nil, zero value otherwise. + +### GetCreatedAtOk + +`func (o *SecretResponse) GetCreatedAtOk() (*time.Time, bool)` + +GetCreatedAtOk returns a tuple with the CreatedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreatedAt + +`func (o *SecretResponse) SetCreatedAt(v time.Time)` + +SetCreatedAt sets CreatedAt field to given value. + +### HasCreatedAt + +`func (o *SecretResponse) HasCreatedAt() bool` + +HasCreatedAt returns a boolean if a field has been set. + +### SetCreatedAtNil + +`func (o *SecretResponse) SetCreatedAtNil(b bool)` + + SetCreatedAtNil sets the value for CreatedAt to be an explicit nil + +### UnsetCreatedAt +`func (o *SecretResponse) UnsetCreatedAt()` + +UnsetCreatedAt ensures that no value is present for CreatedAt, not even an explicit nil +### GetRecreated + +`func (o *SecretResponse) GetRecreated() bool` + +GetRecreated returns the Recreated field if non-nil, zero value otherwise. + +### GetRecreatedOk + +`func (o *SecretResponse) GetRecreatedOk() (*bool, bool)` + +GetRecreatedOk returns a tuple with the Recreated field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRecreated + +`func (o *SecretResponse) SetRecreated(v bool)` + +SetRecreated sets Recreated field to given value. + +### HasRecreated + +`func (o *SecretResponse) HasRecreated() bool` + +HasRecreated returns a boolean if a field has been set. + +### SetRecreatedNil + +`func (o *SecretResponse) SetRecreatedNil(b bool)` + + SetRecreatedNil sets the value for Recreated to be an explicit nil + +### UnsetRecreated +`func (o *SecretResponse) UnsetRecreated()` + +UnsetRecreated ensures that no value is present for Recreated, not even an explicit nil + +[Back to API list](../README.md#documentation-for-api-endpoints) | [Back to README](../README.md) diff --git a/docs/SecretStore.md b/docs/SecretStore.md new file mode 100644 index 00000000..bc6faddf --- /dev/null +++ b/docs/SecretStore.md @@ -0,0 +1,54 @@ +# SecretStore + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | Pointer to **string** | A human-readable name for the store. The value must contain only letters, numbers, dashes (`-`), underscores (`_`), or periods (`.`). | [optional] + +## Methods + +### NewSecretStore + +`func NewSecretStore() *SecretStore` + +NewSecretStore instantiates a new SecretStore object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewSecretStoreWithDefaults + +`func NewSecretStoreWithDefaults() *SecretStore` + +NewSecretStoreWithDefaults instantiates a new SecretStore object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetName + +`func (o *SecretStore) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *SecretStore) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *SecretStore) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *SecretStore) HasName() bool` + +HasName returns a boolean if a field has been set. + + +[Back to API list](../README.md#documentation-for-api-endpoints) | [Back to README](../README.md) diff --git a/docs/SecretStoreAPI.md b/docs/SecretStoreAPI.md new file mode 100644 index 00000000..08ba5ac1 --- /dev/null +++ b/docs/SecretStoreAPI.md @@ -0,0 +1,390 @@ +# SecretStoreAPI + +All URIs are relative to *https://api.fastly.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**ClientKey**](SecretStoreAPI.md#ClientKey) | **POST** `/resources/stores/secret/client-key` | Create new client key +[**CreateSecretStore**](SecretStoreAPI.md#CreateSecretStore) | **POST** `/resources/stores/secret` | Create new secret store +[**DeleteSecretStore**](SecretStoreAPI.md#DeleteSecretStore) | **DELETE** `/resources/stores/secret/{store_id}` | Delete secret store +[**GetSecretStore**](SecretStoreAPI.md#GetSecretStore) | **GET** `/resources/stores/secret/{store_id}` | Create secret store by ID +[**GetSecretStores**](SecretStoreAPI.md#GetSecretStores) | **GET** `/resources/stores/secret` | Get all secret stores +[**SigningKey**](SecretStoreAPI.md#SigningKey) | **GET** `/resources/stores/secret/signing-key` | Get public key + + + +## ClientKey + +Create new client key + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + "github.com/fastly/fastly-go/fastly" +) + +func main() { + + cfg := fastly.NewConfiguration() + apiClient := fastly.NewAPIClient(cfg) + ctx := fastly.NewAPIKeyContextFromEnv("FASTLY_API_TOKEN") + resp, r, err := apiClient.SecretStoreAPI.ClientKey(ctx).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SecretStoreAPI.ClientKey`: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ClientKey`: ClientKey + fmt.Fprintf(os.Stdout, "Response from `SecretStoreAPI.ClientKey`: %v\n", resp) +} +``` + +### Path Parameters + +This endpoint does not need any parameter. + +### Other Parameters + +Other parameters are passed through a pointer to a apiClientKeyRequest struct via the builder pattern + + + +### Return type + +[**ClientKey**](ClientKey.md) + +### Authorization + +[API Token](https://developer.fastly.com/reference/api/#authentication) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[Back to top](#) | [Back to API list](../README.md#documentation-for-api-endpoints) | [Back to README](../README.md) + + +## CreateSecretStore + +Create new secret store + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + "github.com/fastly/fastly-go/fastly" +) + +func main() { + secretStore := *openapiclient.NewSecretStore() // SecretStore | (optional) + + cfg := fastly.NewConfiguration() + apiClient := fastly.NewAPIClient(cfg) + ctx := fastly.NewAPIKeyContextFromEnv("FASTLY_API_TOKEN") + resp, r, err := apiClient.SecretStoreAPI.CreateSecretStore(ctx).SecretStore(secretStore).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SecretStoreAPI.CreateSecretStore`: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateSecretStore`: SecretStoreResponse + fmt.Fprintf(os.Stdout, "Response from `SecretStoreAPI.CreateSecretStore`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiCreateSecretStoreRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **secretStore** | [**SecretStore**](SecretStore.md) | | + +### Return type + +[**SecretStoreResponse**](SecretStoreResponse.md) + +### Authorization + +[API Token](https://developer.fastly.com/reference/api/#authentication) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[Back to top](#) | [Back to API list](../README.md#documentation-for-api-endpoints) | [Back to README](../README.md) + + +## DeleteSecretStore + +Delete secret store + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + "github.com/fastly/fastly-go/fastly" +) + +func main() { + storeID := "storeId_example" // string | + + cfg := fastly.NewConfiguration() + apiClient := fastly.NewAPIClient(cfg) + ctx := fastly.NewAPIKeyContextFromEnv("FASTLY_API_TOKEN") + resp, r, err := apiClient.SecretStoreAPI.DeleteSecretStore(ctx, storeID).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SecretStoreAPI.DeleteSecretStore`: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**storeID** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiDeleteSecretStoreRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[API Token](https://developer.fastly.com/reference/api/#authentication) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[Back to top](#) | [Back to API list](../README.md#documentation-for-api-endpoints) | [Back to README](../README.md) + + +## GetSecretStore + +Create secret store by ID + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + "github.com/fastly/fastly-go/fastly" +) + +func main() { + storeID := "storeId_example" // string | + + cfg := fastly.NewConfiguration() + apiClient := fastly.NewAPIClient(cfg) + ctx := fastly.NewAPIKeyContextFromEnv("FASTLY_API_TOKEN") + resp, r, err := apiClient.SecretStoreAPI.GetSecretStore(ctx, storeID).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SecretStoreAPI.GetSecretStore`: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetSecretStore`: SecretStoreResponse + fmt.Fprintf(os.Stdout, "Response from `SecretStoreAPI.GetSecretStore`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**storeID** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetSecretStoreRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + +[**SecretStoreResponse**](SecretStoreResponse.md) + +### Authorization + +[API Token](https://developer.fastly.com/reference/api/#authentication) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[Back to top](#) | [Back to API list](../README.md#documentation-for-api-endpoints) | [Back to README](../README.md) + + +## GetSecretStores + +Get all secret stores + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + "github.com/fastly/fastly-go/fastly" +) + +func main() { + cursor := "cursor_example" // string | Cursor value from a previous response to retrieve the next page. To request the first page, this should be empty. (optional) + limit := "limit_example" // string | Number of results per page. The maximum is 200. (optional) (default to "100") + + cfg := fastly.NewConfiguration() + apiClient := fastly.NewAPIClient(cfg) + ctx := fastly.NewAPIKeyContextFromEnv("FASTLY_API_TOKEN") + resp, r, err := apiClient.SecretStoreAPI.GetSecretStores(ctx).Cursor(cursor).Limit(limit).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SecretStoreAPI.GetSecretStores`: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetSecretStores`: InlineResponse2005 + fmt.Fprintf(os.Stdout, "Response from `SecretStoreAPI.GetSecretStores`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetSecretStoresRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **cursor** | **string** | Cursor value from a previous response to retrieve the next page. To request the first page, this should be empty. | **limit** | **string** | Number of results per page. The maximum is 200. | [default to "100"] + +### Return type + +[**InlineResponse2005**](InlineResponse2005.md) + +### Authorization + +[API Token](https://developer.fastly.com/reference/api/#authentication) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[Back to top](#) | [Back to API list](../README.md#documentation-for-api-endpoints) | [Back to README](../README.md) + + +## SigningKey + +Get public key + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + "github.com/fastly/fastly-go/fastly" +) + +func main() { + + cfg := fastly.NewConfiguration() + apiClient := fastly.NewAPIClient(cfg) + ctx := fastly.NewAPIKeyContextFromEnv("FASTLY_API_TOKEN") + resp, r, err := apiClient.SecretStoreAPI.SigningKey(ctx).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SecretStoreAPI.SigningKey`: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `SigningKey`: SigningKey + fmt.Fprintf(os.Stdout, "Response from `SecretStoreAPI.SigningKey`: %v\n", resp) +} +``` + +### Path Parameters + +This endpoint does not need any parameter. + +### Other Parameters + +Other parameters are passed through a pointer to a apiSigningKeyRequest struct via the builder pattern + + + +### Return type + +[**SigningKey**](SigningKey.md) + +### Authorization + +[API Token](https://developer.fastly.com/reference/api/#authentication) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[Back to top](#) | [Back to API list](../README.md#documentation-for-api-endpoints) | [Back to README](../README.md) diff --git a/docs/SecretStoreItemAPI.md b/docs/SecretStoreItemAPI.md new file mode 100644 index 00000000..728d6ba9 --- /dev/null +++ b/docs/SecretStoreItemAPI.md @@ -0,0 +1,422 @@ +# SecretStoreItemAPI + +All URIs are relative to *https://api.fastly.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**CreateSecret**](SecretStoreItemAPI.md#CreateSecret) | **POST** `/resources/stores/secret/{store_id}/secrets` | Create a new secret in a store. +[**DeleteSecret**](SecretStoreItemAPI.md#DeleteSecret) | **DELETE** `/resources/stores/secret/{store_id}/secrets/{secret_name}` | Delete a secret from a store. +[**GetSecret**](SecretStoreItemAPI.md#GetSecret) | **GET** `/resources/stores/secret/{store_id}/secrets/{secret_name}` | Get secret metadata. +[**GetSecrets**](SecretStoreItemAPI.md#GetSecrets) | **GET** `/resources/stores/secret/{store_id}/secrets` | List secrets within a store. +[**MustRecreateSecret**](SecretStoreItemAPI.md#MustRecreateSecret) | **PATCH** `/resources/stores/secret/{store_id}/secrets` | Recreate a secret in a store. +[**RecreateSecret**](SecretStoreItemAPI.md#RecreateSecret) | **PUT** `/resources/stores/secret/{store_id}/secrets` | Create or recreate a secret in a store. + + + +## CreateSecret + +Create a new secret in a store. + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + "github.com/fastly/fastly-go/fastly" +) + +func main() { + storeID := "storeId_example" // string | + secret := *openapiclient.NewSecret() // Secret | (optional) + + cfg := fastly.NewConfiguration() + apiClient := fastly.NewAPIClient(cfg) + ctx := fastly.NewAPIKeyContextFromEnv("FASTLY_API_TOKEN") + resp, r, err := apiClient.SecretStoreItemAPI.CreateSecret(ctx, storeID).Secret(secret).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SecretStoreItemAPI.CreateSecret`: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateSecret`: SecretResponse + fmt.Fprintf(os.Stdout, "Response from `SecretStoreItemAPI.CreateSecret`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**storeID** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiCreateSecretRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **secret** | [**Secret**](Secret.md) | | + +### Return type + +[**SecretResponse**](SecretResponse.md) + +### Authorization + +[API Token](https://developer.fastly.com/reference/api/#authentication) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[Back to top](#) | [Back to API list](../README.md#documentation-for-api-endpoints) | [Back to README](../README.md) + + +## DeleteSecret + +Delete a secret from a store. + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + "github.com/fastly/fastly-go/fastly" +) + +func main() { + storeID := "storeId_example" // string | + secretName := "secretName_example" // string | + + cfg := fastly.NewConfiguration() + apiClient := fastly.NewAPIClient(cfg) + ctx := fastly.NewAPIKeyContextFromEnv("FASTLY_API_TOKEN") + resp, r, err := apiClient.SecretStoreItemAPI.DeleteSecret(ctx, storeID, secretName).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SecretStoreItemAPI.DeleteSecret`: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**storeID** | **string** | | +**secretName** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiDeleteSecretRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[API Token](https://developer.fastly.com/reference/api/#authentication) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[Back to top](#) | [Back to API list](../README.md#documentation-for-api-endpoints) | [Back to README](../README.md) + + +## GetSecret + +Get secret metadata. + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + "github.com/fastly/fastly-go/fastly" +) + +func main() { + storeID := "storeId_example" // string | + secretName := "secretName_example" // string | + + cfg := fastly.NewConfiguration() + apiClient := fastly.NewAPIClient(cfg) + ctx := fastly.NewAPIKeyContextFromEnv("FASTLY_API_TOKEN") + resp, r, err := apiClient.SecretStoreItemAPI.GetSecret(ctx, storeID, secretName).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SecretStoreItemAPI.GetSecret`: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetSecret`: SecretResponse + fmt.Fprintf(os.Stdout, "Response from `SecretStoreItemAPI.GetSecret`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**storeID** | **string** | | +**secretName** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetSecretRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + +[**SecretResponse**](SecretResponse.md) + +### Authorization + +[API Token](https://developer.fastly.com/reference/api/#authentication) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[Back to top](#) | [Back to API list](../README.md#documentation-for-api-endpoints) | [Back to README](../README.md) + + +## GetSecrets + +List secrets within a store. + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + "github.com/fastly/fastly-go/fastly" +) + +func main() { + storeID := "storeId_example" // string | + cursor := "cursor_example" // string | Cursor value from a previous response to retrieve the next page. To request the first page, this should be empty. (optional) + limit := "limit_example" // string | Number of results per page. The maximum is 200. (optional) (default to "100") + + cfg := fastly.NewConfiguration() + apiClient := fastly.NewAPIClient(cfg) + ctx := fastly.NewAPIKeyContextFromEnv("FASTLY_API_TOKEN") + resp, r, err := apiClient.SecretStoreItemAPI.GetSecrets(ctx, storeID).Cursor(cursor).Limit(limit).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SecretStoreItemAPI.GetSecrets`: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetSecrets`: InlineResponse2006 + fmt.Fprintf(os.Stdout, "Response from `SecretStoreItemAPI.GetSecrets`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**storeID** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetSecretsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **cursor** | **string** | Cursor value from a previous response to retrieve the next page. To request the first page, this should be empty. | **limit** | **string** | Number of results per page. The maximum is 200. | [default to "100"] + +### Return type + +[**InlineResponse2006**](InlineResponse2006.md) + +### Authorization + +[API Token](https://developer.fastly.com/reference/api/#authentication) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[Back to top](#) | [Back to API list](../README.md#documentation-for-api-endpoints) | [Back to README](../README.md) + + +## MustRecreateSecret + +Recreate a secret in a store. + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + "github.com/fastly/fastly-go/fastly" +) + +func main() { + storeID := "storeId_example" // string | + secret := *openapiclient.NewSecret() // Secret | (optional) + + cfg := fastly.NewConfiguration() + apiClient := fastly.NewAPIClient(cfg) + ctx := fastly.NewAPIKeyContextFromEnv("FASTLY_API_TOKEN") + resp, r, err := apiClient.SecretStoreItemAPI.MustRecreateSecret(ctx, storeID).Secret(secret).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SecretStoreItemAPI.MustRecreateSecret`: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `MustRecreateSecret`: SecretResponse + fmt.Fprintf(os.Stdout, "Response from `SecretStoreItemAPI.MustRecreateSecret`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**storeID** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiMustRecreateSecretRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **secret** | [**Secret**](Secret.md) | | + +### Return type + +[**SecretResponse**](SecretResponse.md) + +### Authorization + +[API Token](https://developer.fastly.com/reference/api/#authentication) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[Back to top](#) | [Back to API list](../README.md#documentation-for-api-endpoints) | [Back to README](../README.md) + + +## RecreateSecret + +Create or recreate a secret in a store. + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + "github.com/fastly/fastly-go/fastly" +) + +func main() { + storeID := "storeId_example" // string | + secret := *openapiclient.NewSecret() // Secret | (optional) + + cfg := fastly.NewConfiguration() + apiClient := fastly.NewAPIClient(cfg) + ctx := fastly.NewAPIKeyContextFromEnv("FASTLY_API_TOKEN") + resp, r, err := apiClient.SecretStoreItemAPI.RecreateSecret(ctx, storeID).Secret(secret).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SecretStoreItemAPI.RecreateSecret`: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `RecreateSecret`: SecretResponse + fmt.Fprintf(os.Stdout, "Response from `SecretStoreItemAPI.RecreateSecret`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**storeID** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiRecreateSecretRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **secret** | [**Secret**](Secret.md) | | + +### Return type + +[**SecretResponse**](SecretResponse.md) + +### Authorization + +[API Token](https://developer.fastly.com/reference/api/#authentication) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[Back to top](#) | [Back to API list](../README.md#documentation-for-api-endpoints) | [Back to README](../README.md) diff --git a/docs/SecretStoreResponse.md b/docs/SecretStoreResponse.md new file mode 100644 index 00000000..f3c12fc9 --- /dev/null +++ b/docs/SecretStoreResponse.md @@ -0,0 +1,116 @@ +# SecretStoreResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ID** | Pointer to **string** | ID of the store. | [optional] +**Name** | Pointer to **string** | A human-readable name for the store. | [optional] +**CreatedAt** | Pointer to **NullableTime** | Date and time in ISO 8601 format. | [optional] [readonly] + +## Methods + +### NewSecretStoreResponse + +`func NewSecretStoreResponse() *SecretStoreResponse` + +NewSecretStoreResponse instantiates a new SecretStoreResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewSecretStoreResponseWithDefaults + +`func NewSecretStoreResponseWithDefaults() *SecretStoreResponse` + +NewSecretStoreResponseWithDefaults instantiates a new SecretStoreResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetID + +`func (o *SecretStoreResponse) GetID() string` + +GetID returns the ID field if non-nil, zero value otherwise. + +### GetIDOk + +`func (o *SecretStoreResponse) GetIDOk() (*string, bool)` + +GetIDOk returns a tuple with the ID field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetID + +`func (o *SecretStoreResponse) SetID(v string)` + +SetID sets ID field to given value. + +### HasID + +`func (o *SecretStoreResponse) HasID() bool` + +HasID returns a boolean if a field has been set. + +### GetName + +`func (o *SecretStoreResponse) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *SecretStoreResponse) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *SecretStoreResponse) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *SecretStoreResponse) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetCreatedAt + +`func (o *SecretStoreResponse) GetCreatedAt() time.Time` + +GetCreatedAt returns the CreatedAt field if non-nil, zero value otherwise. + +### GetCreatedAtOk + +`func (o *SecretStoreResponse) GetCreatedAtOk() (*time.Time, bool)` + +GetCreatedAtOk returns a tuple with the CreatedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreatedAt + +`func (o *SecretStoreResponse) SetCreatedAt(v time.Time)` + +SetCreatedAt sets CreatedAt field to given value. + +### HasCreatedAt + +`func (o *SecretStoreResponse) HasCreatedAt() bool` + +HasCreatedAt returns a boolean if a field has been set. + +### SetCreatedAtNil + +`func (o *SecretStoreResponse) SetCreatedAtNil(b bool)` + + SetCreatedAtNil sets the value for CreatedAt to be an explicit nil + +### UnsetCreatedAt +`func (o *SecretStoreResponse) UnsetCreatedAt()` + +UnsetCreatedAt ensures that no value is present for CreatedAt, not even an explicit nil + +[Back to API list](../README.md#documentation-for-api-endpoints) | [Back to README](../README.md) diff --git a/docs/ServiceAuthorizationsAPI.md b/docs/ServiceAuthorizationsAPI.md index ad83310b..b6df8c0a 100644 --- a/docs/ServiceAuthorizationsAPI.md +++ b/docs/ServiceAuthorizationsAPI.md @@ -6,9 +6,11 @@ Method | HTTP request | Description ------------- | ------------- | ------------- [**CreateServiceAuthorization**](ServiceAuthorizationsAPI.md#CreateServiceAuthorization) | **POST** `/service-authorizations` | Create service authorization [**DeleteServiceAuthorization**](ServiceAuthorizationsAPI.md#DeleteServiceAuthorization) | **DELETE** `/service-authorizations/{service_authorization_id}` | Delete service authorization +[**DeleteServiceAuthorization2**](ServiceAuthorizationsAPI.md#DeleteServiceAuthorization2) | **DELETE** `/service-authorizations` | Delete service authorizations [**ListServiceAuthorization**](ServiceAuthorizationsAPI.md#ListServiceAuthorization) | **GET** `/service-authorizations` | List service authorizations [**ShowServiceAuthorization**](ServiceAuthorizationsAPI.md#ShowServiceAuthorization) | **GET** `/service-authorizations/{service_authorization_id}` | Show service authorization [**UpdateServiceAuthorization**](ServiceAuthorizationsAPI.md#UpdateServiceAuthorization) | **PATCH** `/service-authorizations/{service_authorization_id}` | Update service authorization +[**UpdateServiceAuthorization2**](ServiceAuthorizationsAPI.md#UpdateServiceAuthorization2) | **PATCH** `/service-authorizations` | Update service authorizations @@ -140,6 +142,69 @@ Name | Type | Description | Notes [Back to top](#) | [Back to API list](../README.md#documentation-for-api-endpoints) | [Back to README](../README.md) +## DeleteServiceAuthorization2 + +Delete service authorizations + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + "github.com/fastly/fastly-go/fastly" +) + +func main() { + requestBody := map[string]map[string]any{"key": map[string]any(123)} // map[string]map[string]any | (optional) + + cfg := fastly.NewConfiguration() + apiClient := fastly.NewAPIClient(cfg) + ctx := fastly.NewAPIKeyContextFromEnv("FASTLY_API_TOKEN") + resp, r, err := apiClient.ServiceAuthorizationsAPI.DeleteServiceAuthorization2(ctx).RequestBody(requestBody).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ServiceAuthorizationsAPI.DeleteServiceAuthorization2`: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `DeleteServiceAuthorization2`: InlineResponse2007 + fmt.Fprintf(os.Stdout, "Response from `ServiceAuthorizationsAPI.DeleteServiceAuthorization2`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiDeleteServiceAuthorization2Request struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **requestBody** | **map[string]map[string]any** | | + +### Return type + +[**InlineResponse2007**](InlineResponse2007.md) + +### Authorization + +[API Token](https://developer.fastly.com/reference/api/#authentication) + +### HTTP request headers + +- **Content-Type**: application/vnd.api+json; ext=bulk +- **Accept**: application/vnd.api+json; ext=bulk + +[Back to top](#) | [Back to API list](../README.md#documentation-for-api-endpoints) | [Back to README](../README.md) + + ## ListServiceAuthorization List service authorizations @@ -337,3 +402,66 @@ Name | Type | Description | Notes - **Accept**: application/vnd.api+json [Back to top](#) | [Back to API list](../README.md#documentation-for-api-endpoints) | [Back to README](../README.md) + + +## UpdateServiceAuthorization2 + +Update service authorizations + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + "github.com/fastly/fastly-go/fastly" +) + +func main() { + requestBody := map[string]map[string]any{"key": map[string]any(123)} // map[string]map[string]any | (optional) + + cfg := fastly.NewConfiguration() + apiClient := fastly.NewAPIClient(cfg) + ctx := fastly.NewAPIKeyContextFromEnv("FASTLY_API_TOKEN") + resp, r, err := apiClient.ServiceAuthorizationsAPI.UpdateServiceAuthorization2(ctx).RequestBody(requestBody).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ServiceAuthorizationsAPI.UpdateServiceAuthorization2`: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `UpdateServiceAuthorization2`: ServiceAuthorizationsResponse + fmt.Fprintf(os.Stdout, "Response from `ServiceAuthorizationsAPI.UpdateServiceAuthorization2`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiUpdateServiceAuthorization2Request struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **requestBody** | **map[string]map[string]any** | | + +### Return type + +[**ServiceAuthorizationsResponse**](ServiceAuthorizationsResponse.md) + +### Authorization + +[API Token](https://developer.fastly.com/reference/api/#authentication) + +### HTTP request headers + +- **Content-Type**: application/vnd.api+json; ext=bulk +- **Accept**: application/vnd.api+json; ext=bulk + +[Back to top](#) | [Back to API list](../README.md#documentation-for-api-endpoints) | [Back to README](../README.md) diff --git a/docs/SigningKey.md b/docs/SigningKey.md new file mode 100644 index 00000000..12fae517 --- /dev/null +++ b/docs/SigningKey.md @@ -0,0 +1,54 @@ +# SigningKey + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**SigningKey** | Pointer to **string** | A Base64-encoded Ed25519 public key that can be used to verify signatures of client keys. | [optional] + +## Methods + +### NewSigningKey + +`func NewSigningKey() *SigningKey` + +NewSigningKey instantiates a new SigningKey object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewSigningKeyWithDefaults + +`func NewSigningKeyWithDefaults() *SigningKey` + +NewSigningKeyWithDefaults instantiates a new SigningKey object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetSigningKey + +`func (o *SigningKey) GetSigningKey() string` + +GetSigningKey returns the SigningKey field if non-nil, zero value otherwise. + +### GetSigningKeyOk + +`func (o *SigningKey) GetSigningKeyOk() (*string, bool)` + +GetSigningKeyOk returns a tuple with the SigningKey field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSigningKey + +`func (o *SigningKey) SetSigningKey(v string)` + +SetSigningKey sets SigningKey field to given value. + +### HasSigningKey + +`func (o *SigningKey) HasSigningKey() bool` + +HasSigningKey returns a boolean if a field has been set. + + +[Back to API list](../README.md#documentation-for-api-endpoints) | [Back to README](../README.md) diff --git a/docs/SnippetAPI.md b/docs/SnippetAPI.md index efb134ce..ec3656db 100644 --- a/docs/SnippetAPI.md +++ b/docs/SnippetAPI.md @@ -9,6 +9,7 @@ Method | HTTP request | Description [**GetSnippet**](SnippetAPI.md#GetSnippet) | **GET** `/service/{service_id}/version/{version_id}/snippet/{snippet_name}` | Get a versioned snippet [**GetSnippetDynamic**](SnippetAPI.md#GetSnippetDynamic) | **GET** `/service/{service_id}/snippet/{snippet_id}` | Get a dynamic snippet [**ListSnippets**](SnippetAPI.md#ListSnippets) | **GET** `/service/{service_id}/version/{version_id}/snippet` | List snippets +[**UpdateSnippet**](SnippetAPI.md#UpdateSnippet) | **PUT** `/service/{service_id}/version/{version_id}/snippet/{snippet_name}` | Update a versioned snippet [**UpdateSnippetDynamic**](SnippetAPI.md#UpdateSnippetDynamic) | **PUT** `/service/{service_id}/snippet/{snippet_id}` | Update a dynamic snippet @@ -367,6 +368,77 @@ Name | Type | Description | Notes [Back to top](#) | [Back to API list](../README.md#documentation-for-api-endpoints) | [Back to README](../README.md) +## UpdateSnippet + +Update a versioned snippet + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + "github.com/fastly/fastly-go/fastly" +) + +func main() { + serviceID := "serviceId_example" // string | Alphanumeric string identifying the service. + versionID := int32(56) // int32 | Integer identifying a service version. + snippetName := "snippetName_example" // string | The name for the snippet. + + cfg := fastly.NewConfiguration() + apiClient := fastly.NewAPIClient(cfg) + ctx := fastly.NewAPIKeyContextFromEnv("FASTLY_API_TOKEN") + resp, r, err := apiClient.SnippetAPI.UpdateSnippet(ctx, serviceID, versionID, snippetName).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SnippetAPI.UpdateSnippet`: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `UpdateSnippet`: SnippetResponse + fmt.Fprintf(os.Stdout, "Response from `SnippetAPI.UpdateSnippet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceID** | **string** | Alphanumeric string identifying the service. | +**versionID** | **int32** | Integer identifying a service version. | +**snippetName** | **string** | The name for the snippet. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiUpdateSnippetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + +[**SnippetResponse**](SnippetResponse.md) + +### Authorization + +[API Token](https://developer.fastly.com/reference/api/#authentication) + +### HTTP request headers + +- **Content-Type**: application/x-www-form-urlencoded +- **Accept**: application/json + +[Back to top](#) | [Back to API list](../README.md#documentation-for-api-endpoints) | [Back to README](../README.md) + + ## UpdateSnippetDynamic Update a dynamic snippet diff --git a/docs/SubsequentRequestTimestamp.md b/docs/SubsequentRequestTimestamp.md new file mode 100644 index 00000000..e2d3741a --- /dev/null +++ b/docs/SubsequentRequestTimestamp.md @@ -0,0 +1,28 @@ +# SubsequentRequestTimestamp + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +## Methods + +### NewSubsequentRequestTimestamp + +`func NewSubsequentRequestTimestamp() *SubsequentRequestTimestamp` + +NewSubsequentRequestTimestamp instantiates a new SubsequentRequestTimestamp object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewSubsequentRequestTimestampWithDefaults + +`func NewSubsequentRequestTimestampWithDefaults() *SubsequentRequestTimestamp` + +NewSubsequentRequestTimestampWithDefaults instantiates a new SubsequentRequestTimestamp object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + + +[Back to API list](../README.md#documentation-for-api-endpoints) | [Back to README](../README.md) diff --git a/docs/SudoAPI.md b/docs/SudoAPI.md new file mode 100644 index 00000000..f1d8550b --- /dev/null +++ b/docs/SudoAPI.md @@ -0,0 +1,71 @@ +# SudoAPI + +All URIs are relative to *https://api.fastly.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**RequestSudoAccess**](SudoAPI.md#RequestSudoAccess) | **POST** `/sudo` | Request Sudo access + + + +## RequestSudoAccess + +Request Sudo access + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + "github.com/fastly/fastly-go/fastly" +) + +func main() { + sudoRequest := *openapiclient.NewSudoRequest("Username_example", "Password_example") // SudoRequest | (optional) + + cfg := fastly.NewConfiguration() + apiClient := fastly.NewAPIClient(cfg) + ctx := fastly.NewAPIKeyContextFromEnv("FASTLY_API_TOKEN") + resp, r, err := apiClient.SudoAPI.RequestSudoAccess(ctx).SudoRequest(sudoRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SudoAPI.RequestSudoAccess`: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `RequestSudoAccess`: SudoResponse + fmt.Fprintf(os.Stdout, "Response from `SudoAPI.RequestSudoAccess`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiRequestSudoAccessRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **sudoRequest** | [**SudoRequest**](SudoRequest.md) | | + +### Return type + +[**SudoResponse**](SudoResponse.md) + +### Authorization + +[API Token](https://developer.fastly.com/reference/api/#authentication) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/vnd.api+json, application/problem+json + +[Back to top](#) | [Back to API list](../README.md#documentation-for-api-endpoints) | [Back to README](../README.md) diff --git a/docs/SudoGenericTokenError.md b/docs/SudoGenericTokenError.md new file mode 100644 index 00000000..10deebb9 --- /dev/null +++ b/docs/SudoGenericTokenError.md @@ -0,0 +1,54 @@ +# SudoGenericTokenError + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Msg** | Pointer to **string** | | [optional] + +## Methods + +### NewSudoGenericTokenError + +`func NewSudoGenericTokenError() *SudoGenericTokenError` + +NewSudoGenericTokenError instantiates a new SudoGenericTokenError object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewSudoGenericTokenErrorWithDefaults + +`func NewSudoGenericTokenErrorWithDefaults() *SudoGenericTokenError` + +NewSudoGenericTokenErrorWithDefaults instantiates a new SudoGenericTokenError object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetMsg + +`func (o *SudoGenericTokenError) GetMsg() string` + +GetMsg returns the Msg field if non-nil, zero value otherwise. + +### GetMsgOk + +`func (o *SudoGenericTokenError) GetMsgOk() (*string, bool)` + +GetMsgOk returns a tuple with the Msg field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMsg + +`func (o *SudoGenericTokenError) SetMsg(v string)` + +SetMsg sets Msg field to given value. + +### HasMsg + +`func (o *SudoGenericTokenError) HasMsg() bool` + +HasMsg returns a boolean if a field has been set. + + +[Back to API list](../README.md#documentation-for-api-endpoints) | [Back to README](../README.md) diff --git a/docs/SudoRequest.md b/docs/SudoRequest.md new file mode 100644 index 00000000..b407f715 --- /dev/null +++ b/docs/SudoRequest.md @@ -0,0 +1,96 @@ +# SudoRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Username** | **string** | | +**Password** | **string** | | +**ExpiryTime** | Pointer to **string** | | [optional] + +## Methods + +### NewSudoRequest + +`func NewSudoRequest(username string, password string, ) *SudoRequest` + +NewSudoRequest instantiates a new SudoRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewSudoRequestWithDefaults + +`func NewSudoRequestWithDefaults() *SudoRequest` + +NewSudoRequestWithDefaults instantiates a new SudoRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetUsername + +`func (o *SudoRequest) GetUsername() string` + +GetUsername returns the Username field if non-nil, zero value otherwise. + +### GetUsernameOk + +`func (o *SudoRequest) GetUsernameOk() (*string, bool)` + +GetUsernameOk returns a tuple with the Username field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUsername + +`func (o *SudoRequest) SetUsername(v string)` + +SetUsername sets Username field to given value. + + +### GetPassword + +`func (o *SudoRequest) GetPassword() string` + +GetPassword returns the Password field if non-nil, zero value otherwise. + +### GetPasswordOk + +`func (o *SudoRequest) GetPasswordOk() (*string, bool)` + +GetPasswordOk returns a tuple with the Password field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPassword + +`func (o *SudoRequest) SetPassword(v string)` + +SetPassword sets Password field to given value. + + +### GetExpiryTime + +`func (o *SudoRequest) GetExpiryTime() string` + +GetExpiryTime returns the ExpiryTime field if non-nil, zero value otherwise. + +### GetExpiryTimeOk + +`func (o *SudoRequest) GetExpiryTimeOk() (*string, bool)` + +GetExpiryTimeOk returns a tuple with the ExpiryTime field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExpiryTime + +`func (o *SudoRequest) SetExpiryTime(v string)` + +SetExpiryTime sets ExpiryTime field to given value. + +### HasExpiryTime + +`func (o *SudoRequest) HasExpiryTime() bool` + +HasExpiryTime returns a boolean if a field has been set. + + +[Back to API list](../README.md#documentation-for-api-endpoints) | [Back to README](../README.md) diff --git a/docs/SudoResponse.md b/docs/SudoResponse.md new file mode 100644 index 00000000..2634ef01 --- /dev/null +++ b/docs/SudoResponse.md @@ -0,0 +1,54 @@ +# SudoResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ExpiryTime** | Pointer to **time.Time** | A UTC time-stamp of when sudo access will expire. If blank, sudo access expires five minutes after the request. | [optional] + +## Methods + +### NewSudoResponse + +`func NewSudoResponse() *SudoResponse` + +NewSudoResponse instantiates a new SudoResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewSudoResponseWithDefaults + +`func NewSudoResponseWithDefaults() *SudoResponse` + +NewSudoResponseWithDefaults instantiates a new SudoResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetExpiryTime + +`func (o *SudoResponse) GetExpiryTime() time.Time` + +GetExpiryTime returns the ExpiryTime field if non-nil, zero value otherwise. + +### GetExpiryTimeOk + +`func (o *SudoResponse) GetExpiryTimeOk() (*time.Time, bool)` + +GetExpiryTimeOk returns a tuple with the ExpiryTime field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExpiryTime + +`func (o *SudoResponse) SetExpiryTime(v time.Time)` + +SetExpiryTime sets ExpiryTime field to given value. + +### HasExpiryTime + +`func (o *SudoResponse) HasExpiryTime() bool` + +HasExpiryTime returns a boolean if a field has been set. + + +[Back to API list](../README.md#documentation-for-api-endpoints) | [Back to README](../README.md) diff --git a/docs/TokensAPI.md b/docs/TokensAPI.md index c756a609..63136d77 100644 --- a/docs/TokensAPI.md +++ b/docs/TokensAPI.md @@ -4,6 +4,8 @@ All URIs are relative to *https://api.fastly.com* Method | HTTP request | Description ------------- | ------------- | ------------- +[**BulkRevokeTokens**](TokensAPI.md#BulkRevokeTokens) | **DELETE** `/tokens` | Revoke multiple tokens +[**CreateToken**](TokensAPI.md#CreateToken) | **POST** `/tokens` | Create a token [**GetToken**](TokensAPI.md#GetToken) | **GET** `/tokens/{token_id}` | Get a token [**GetTokenCurrent**](TokensAPI.md#GetTokenCurrent) | **GET** `/tokens/self` | Get the current token [**ListTokensCustomer**](TokensAPI.md#ListTokensCustomer) | **GET** `/customer/{customer_id}/tokens` | List tokens for a customer @@ -13,6 +15,126 @@ Method | HTTP request | Description +## BulkRevokeTokens + +Revoke multiple tokens + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + "github.com/fastly/fastly-go/fastly" +) + +func main() { + requestBody := map[string]map[string]any{"key": map[string]any(123)} // map[string]map[string]any | (optional) + + cfg := fastly.NewConfiguration() + apiClient := fastly.NewAPIClient(cfg) + ctx := fastly.NewAPIKeyContextFromEnv("FASTLY_API_TOKEN") + resp, r, err := apiClient.TokensAPI.BulkRevokeTokens(ctx).RequestBody(requestBody).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `TokensAPI.BulkRevokeTokens`: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiBulkRevokeTokensRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **requestBody** | **map[string]map[string]any** | | + +### Return type + + (empty response body) + +### Authorization + +[API Token](https://developer.fastly.com/reference/api/#authentication) + +### HTTP request headers + +- **Content-Type**: application/vnd.api+json; ext=bulk +- **Accept**: Not defined + +[Back to top](#) | [Back to API list](../README.md#documentation-for-api-endpoints) | [Back to README](../README.md) + + +## CreateToken + +Create a token + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + "github.com/fastly/fastly-go/fastly" +) + +func main() { + + cfg := fastly.NewConfiguration() + apiClient := fastly.NewAPIClient(cfg) + ctx := fastly.NewAPIKeyContextFromEnv("FASTLY_API_TOKEN") + resp, r, err := apiClient.TokensAPI.CreateToken(ctx).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `TokensAPI.CreateToken`: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateToken`: TokenCreatedResponse + fmt.Fprintf(os.Stdout, "Response from `TokensAPI.CreateToken`: %v\n", resp) +} +``` + +### Path Parameters + +This endpoint does not need any parameter. + +### Other Parameters + +Other parameters are passed through a pointer to a apiCreateTokenRequest struct via the builder pattern + + + +### Return type + +[**TokenCreatedResponse**](TokenCreatedResponse.md) + +### Authorization + +[API Token](https://developer.fastly.com/reference/api/#authentication)[API Token](https://developer.fastly.com/reference/api/#authentication) + +### HTTP request headers + +- **Content-Type**: application/x-www-form-urlencoded +- **Accept**: application/json + +[Back to top](#) | [Back to API list](../README.md#documentation-for-api-endpoints) | [Back to README](../README.md) + + ## GetToken Get a token diff --git a/docs/Values.md b/docs/Values.md new file mode 100644 index 00000000..b7564905 --- /dev/null +++ b/docs/Values.md @@ -0,0 +1,1640 @@ +# Values + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**EdgeRequests** | Pointer to **int32** | Number of requests sent by end users to Fastly. | [optional] +**EdgeRespHeaderBytes** | Pointer to **int32** | Total header bytes delivered from Fastly to the end user. | [optional] +**EdgeRespBodyBytes** | Pointer to **int32** | Total body bytes delivered from Fastly to the end user. | [optional] +**Status1xx** | Pointer to **int32** | Number of 1xx \"Informational\" category status codes delivered. | [optional] +**Status2xx** | Pointer to **int32** | Number of 2xx \"Success\" status codes delivered. | [optional] +**Status3xx** | Pointer to **int32** | Number of 3xx \"Redirection\" codes delivered. | [optional] +**Status4xx** | Pointer to **int32** | Number of 4xx \"Client Error\" codes delivered. | [optional] +**Status5xx** | Pointer to **int32** | Number of 5xx \"Server Error\" codes delivered. | [optional] +**Status200** | Pointer to **int32** | Number of responses delivered with status code 200 (Success). | [optional] +**Status204** | Pointer to **int32** | Number of responses delivered with status code 204 (No Content). | [optional] +**Status206** | Pointer to **int32** | Number of responses delivered with status code 206 (Partial Content). | [optional] +**Status301** | Pointer to **int32** | Number of responses delivered with status code 301 (Moved Permanently). | [optional] +**Status302** | Pointer to **int32** | Number of responses delivered with status code 302 (Found). | [optional] +**Status304** | Pointer to **int32** | Number of responses delivered with status code 304 (Not Modified). | [optional] +**Status400** | Pointer to **int32** | Number of responses delivered with status code 400 (Bad Request). | [optional] +**Status401** | Pointer to **int32** | Number of responses delivered with status code 401 (Unauthorized). | [optional] +**Status403** | Pointer to **int32** | Number of responses delivered with status code 403 (Forbidden). | [optional] +**Status404** | Pointer to **int32** | Number of responses delivered with status code 404 (Not Found). | [optional] +**Status416** | Pointer to **int32** | Number of responses delivered with status code 416 (Range Not Satisfiable). | [optional] +**Status429** | Pointer to **int32** | Number of responses delivered with status code 429 (Too Many Requests). | [optional] +**Status500** | Pointer to **int32** | Number of responses delivered with status code 500 (Internal Server Error). | [optional] +**Status501** | Pointer to **int32** | Number of responses delivered with status code 501 (Not Implemented). | [optional] +**Status502** | Pointer to **int32** | Number of responses delivered with status code 502 (Bad Gateway). | [optional] +**Status503** | Pointer to **int32** | Number of responses delivered with status code 503 (Service Unavailable). | [optional] +**Status504** | Pointer to **int32** | Number of responses delivered with status code 504 (Gateway Timeout). | [optional] +**Status505** | Pointer to **int32** | Number of responses delivered with status code 505 (HTTP Version Not Supported). | [optional] +**Requests** | Pointer to **int32** | Number of requests processed. | [optional] +**RespHeaderBytes** | Pointer to **int32** | Total header bytes delivered. | [optional] +**RespBodyBytes** | Pointer to **int32** | Total body bytes delivered. | [optional] +**BereqHeaderBytes** | Pointer to **int32** | Total header bytes sent to origin. | [optional] +**BereqBodyBytes** | Pointer to **int32** | Total body bytes sent to origin. | [optional] +**EdgeHitRequests** | Pointer to **int32** | Number of requests sent by end users to Fastly that resulted in a hit at the edge. | [optional] +**EdgeMissRequests** | Pointer to **int32** | Number of requests sent by end users to Fastly that resulted in a miss at the edge. | [optional] +**OriginFetches** | Pointer to **int32** | Number of requests sent to origin. | [optional] +**OriginFetchRespHeaderBytes** | Pointer to **int32** | Total header bytes received from origin. | [optional] +**OriginFetchRespBodyBytes** | Pointer to **int32** | Total body bytes received from origin. | [optional] +**Bandwidth** | Pointer to **int32** | Total bytes delivered (`resp_header_bytes` + `resp_body_bytes` + `bereq_header_bytes` + `bereq_body_bytes`). | [optional] +**EdgeHitRatio** | Pointer to **float32** | Ratio of cache hits to cache misses at the edge, between 0 and 1 (`edge_hit_requests` / (`edge_hit_requests` + `edge_miss_requests`)). | [optional] +**OriginOffload** | Pointer to **float32** | Ratio of response bytes delivered from the edge compared to what is delivered from origin, between 0 and 1. (`edge_resp_body_bytes` + `edge_resp_header_bytes`) / (`origin_fetch_resp_body_bytes` + `origin_fetch_resp_header_bytes` + `edge_resp_body_bytes` + `edge_resp_header_bytes`). | [optional] +**OriginStatus200** | Pointer to **int32** | Number of responses received from origin with status code 200 (Success). | [optional] +**OriginStatus204** | Pointer to **int32** | Number of responses received from origin with status code 204 (No Content). | [optional] +**OriginStatus206** | Pointer to **int32** | Number of responses received from origin with status code 206 (Partial Content). | [optional] +**OriginStatus301** | Pointer to **int32** | Number of responses received from origin with status code 301 (Moved Permanently). | [optional] +**OriginStatus302** | Pointer to **int32** | Number of responses received from origin with status code 302 (Found). | [optional] +**OriginStatus304** | Pointer to **int32** | Number of responses received from origin with status code 304 (Not Modified). | [optional] +**OriginStatus400** | Pointer to **int32** | Number of responses received from origin with status code 400 (Bad Request). | [optional] +**OriginStatus401** | Pointer to **int32** | Number of responses received from origin with status code 401 (Unauthorized). | [optional] +**OriginStatus403** | Pointer to **int32** | Number of responses received from origin with status code 403 (Forbidden). | [optional] +**OriginStatus404** | Pointer to **int32** | Number of responses received from origin with status code 404 (Not Found). | [optional] +**OriginStatus416** | Pointer to **int32** | Number of responses received from origin with status code 416 (Range Not Satisfiable). | [optional] +**OriginStatus429** | Pointer to **int32** | Number of responses received from origin with status code 429 (Too Many Requests). | [optional] +**OriginStatus500** | Pointer to **int32** | Number of responses received from origin with status code 500 (Internal Server Error). | [optional] +**OriginStatus501** | Pointer to **int32** | Number of responses received from origin with status code 501 (Not Implemented). | [optional] +**OriginStatus502** | Pointer to **int32** | Number of responses received from origin with status code 502 (Bad Gateway). | [optional] +**OriginStatus503** | Pointer to **int32** | Number of responses received from origin with status code 503 (Service Unavailable). | [optional] +**OriginStatus504** | Pointer to **int32** | Number of responses received from origin with status code 504 (Gateway Timeout). | [optional] +**OriginStatus505** | Pointer to **int32** | Number of responses received from origin with status code 505 (HTTP Version Not Supported). | [optional] +**OriginStatus1xx** | Pointer to **int32** | Number of \"Informational\" category status codes received from origin. | [optional] +**OriginStatus2xx** | Pointer to **int32** | Number of \"Success\" status codes received from origin. | [optional] +**OriginStatus3xx** | Pointer to **int32** | Number of \"Redirection\" codes received from origin. | [optional] +**OriginStatus4xx** | Pointer to **int32** | Number of \"Client Error\" codes received from origin. | [optional] +**OriginStatus5xx** | Pointer to **int32** | Number of \"Server Error\" codes received from origin. | [optional] + +## Methods + +### NewValues + +`func NewValues() *Values` + +NewValues instantiates a new Values object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewValuesWithDefaults + +`func NewValuesWithDefaults() *Values` + +NewValuesWithDefaults instantiates a new Values object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetEdgeRequests + +`func (o *Values) GetEdgeRequests() int32` + +GetEdgeRequests returns the EdgeRequests field if non-nil, zero value otherwise. + +### GetEdgeRequestsOk + +`func (o *Values) GetEdgeRequestsOk() (*int32, bool)` + +GetEdgeRequestsOk returns a tuple with the EdgeRequests field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEdgeRequests + +`func (o *Values) SetEdgeRequests(v int32)` + +SetEdgeRequests sets EdgeRequests field to given value. + +### HasEdgeRequests + +`func (o *Values) HasEdgeRequests() bool` + +HasEdgeRequests returns a boolean if a field has been set. + +### GetEdgeRespHeaderBytes + +`func (o *Values) GetEdgeRespHeaderBytes() int32` + +GetEdgeRespHeaderBytes returns the EdgeRespHeaderBytes field if non-nil, zero value otherwise. + +### GetEdgeRespHeaderBytesOk + +`func (o *Values) GetEdgeRespHeaderBytesOk() (*int32, bool)` + +GetEdgeRespHeaderBytesOk returns a tuple with the EdgeRespHeaderBytes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEdgeRespHeaderBytes + +`func (o *Values) SetEdgeRespHeaderBytes(v int32)` + +SetEdgeRespHeaderBytes sets EdgeRespHeaderBytes field to given value. + +### HasEdgeRespHeaderBytes + +`func (o *Values) HasEdgeRespHeaderBytes() bool` + +HasEdgeRespHeaderBytes returns a boolean if a field has been set. + +### GetEdgeRespBodyBytes + +`func (o *Values) GetEdgeRespBodyBytes() int32` + +GetEdgeRespBodyBytes returns the EdgeRespBodyBytes field if non-nil, zero value otherwise. + +### GetEdgeRespBodyBytesOk + +`func (o *Values) GetEdgeRespBodyBytesOk() (*int32, bool)` + +GetEdgeRespBodyBytesOk returns a tuple with the EdgeRespBodyBytes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEdgeRespBodyBytes + +`func (o *Values) SetEdgeRespBodyBytes(v int32)` + +SetEdgeRespBodyBytes sets EdgeRespBodyBytes field to given value. + +### HasEdgeRespBodyBytes + +`func (o *Values) HasEdgeRespBodyBytes() bool` + +HasEdgeRespBodyBytes returns a boolean if a field has been set. + +### GetStatus1xx + +`func (o *Values) GetStatus1xx() int32` + +GetStatus1xx returns the Status1xx field if non-nil, zero value otherwise. + +### GetStatus1xxOk + +`func (o *Values) GetStatus1xxOk() (*int32, bool)` + +GetStatus1xxOk returns a tuple with the Status1xx field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus1xx + +`func (o *Values) SetStatus1xx(v int32)` + +SetStatus1xx sets Status1xx field to given value. + +### HasStatus1xx + +`func (o *Values) HasStatus1xx() bool` + +HasStatus1xx returns a boolean if a field has been set. + +### GetStatus2xx + +`func (o *Values) GetStatus2xx() int32` + +GetStatus2xx returns the Status2xx field if non-nil, zero value otherwise. + +### GetStatus2xxOk + +`func (o *Values) GetStatus2xxOk() (*int32, bool)` + +GetStatus2xxOk returns a tuple with the Status2xx field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus2xx + +`func (o *Values) SetStatus2xx(v int32)` + +SetStatus2xx sets Status2xx field to given value. + +### HasStatus2xx + +`func (o *Values) HasStatus2xx() bool` + +HasStatus2xx returns a boolean if a field has been set. + +### GetStatus3xx + +`func (o *Values) GetStatus3xx() int32` + +GetStatus3xx returns the Status3xx field if non-nil, zero value otherwise. + +### GetStatus3xxOk + +`func (o *Values) GetStatus3xxOk() (*int32, bool)` + +GetStatus3xxOk returns a tuple with the Status3xx field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus3xx + +`func (o *Values) SetStatus3xx(v int32)` + +SetStatus3xx sets Status3xx field to given value. + +### HasStatus3xx + +`func (o *Values) HasStatus3xx() bool` + +HasStatus3xx returns a boolean if a field has been set. + +### GetStatus4xx + +`func (o *Values) GetStatus4xx() int32` + +GetStatus4xx returns the Status4xx field if non-nil, zero value otherwise. + +### GetStatus4xxOk + +`func (o *Values) GetStatus4xxOk() (*int32, bool)` + +GetStatus4xxOk returns a tuple with the Status4xx field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus4xx + +`func (o *Values) SetStatus4xx(v int32)` + +SetStatus4xx sets Status4xx field to given value. + +### HasStatus4xx + +`func (o *Values) HasStatus4xx() bool` + +HasStatus4xx returns a boolean if a field has been set. + +### GetStatus5xx + +`func (o *Values) GetStatus5xx() int32` + +GetStatus5xx returns the Status5xx field if non-nil, zero value otherwise. + +### GetStatus5xxOk + +`func (o *Values) GetStatus5xxOk() (*int32, bool)` + +GetStatus5xxOk returns a tuple with the Status5xx field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus5xx + +`func (o *Values) SetStatus5xx(v int32)` + +SetStatus5xx sets Status5xx field to given value. + +### HasStatus5xx + +`func (o *Values) HasStatus5xx() bool` + +HasStatus5xx returns a boolean if a field has been set. + +### GetStatus200 + +`func (o *Values) GetStatus200() int32` + +GetStatus200 returns the Status200 field if non-nil, zero value otherwise. + +### GetStatus200Ok + +`func (o *Values) GetStatus200Ok() (*int32, bool)` + +GetStatus200Ok returns a tuple with the Status200 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus200 + +`func (o *Values) SetStatus200(v int32)` + +SetStatus200 sets Status200 field to given value. + +### HasStatus200 + +`func (o *Values) HasStatus200() bool` + +HasStatus200 returns a boolean if a field has been set. + +### GetStatus204 + +`func (o *Values) GetStatus204() int32` + +GetStatus204 returns the Status204 field if non-nil, zero value otherwise. + +### GetStatus204Ok + +`func (o *Values) GetStatus204Ok() (*int32, bool)` + +GetStatus204Ok returns a tuple with the Status204 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus204 + +`func (o *Values) SetStatus204(v int32)` + +SetStatus204 sets Status204 field to given value. + +### HasStatus204 + +`func (o *Values) HasStatus204() bool` + +HasStatus204 returns a boolean if a field has been set. + +### GetStatus206 + +`func (o *Values) GetStatus206() int32` + +GetStatus206 returns the Status206 field if non-nil, zero value otherwise. + +### GetStatus206Ok + +`func (o *Values) GetStatus206Ok() (*int32, bool)` + +GetStatus206Ok returns a tuple with the Status206 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus206 + +`func (o *Values) SetStatus206(v int32)` + +SetStatus206 sets Status206 field to given value. + +### HasStatus206 + +`func (o *Values) HasStatus206() bool` + +HasStatus206 returns a boolean if a field has been set. + +### GetStatus301 + +`func (o *Values) GetStatus301() int32` + +GetStatus301 returns the Status301 field if non-nil, zero value otherwise. + +### GetStatus301Ok + +`func (o *Values) GetStatus301Ok() (*int32, bool)` + +GetStatus301Ok returns a tuple with the Status301 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus301 + +`func (o *Values) SetStatus301(v int32)` + +SetStatus301 sets Status301 field to given value. + +### HasStatus301 + +`func (o *Values) HasStatus301() bool` + +HasStatus301 returns a boolean if a field has been set. + +### GetStatus302 + +`func (o *Values) GetStatus302() int32` + +GetStatus302 returns the Status302 field if non-nil, zero value otherwise. + +### GetStatus302Ok + +`func (o *Values) GetStatus302Ok() (*int32, bool)` + +GetStatus302Ok returns a tuple with the Status302 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus302 + +`func (o *Values) SetStatus302(v int32)` + +SetStatus302 sets Status302 field to given value. + +### HasStatus302 + +`func (o *Values) HasStatus302() bool` + +HasStatus302 returns a boolean if a field has been set. + +### GetStatus304 + +`func (o *Values) GetStatus304() int32` + +GetStatus304 returns the Status304 field if non-nil, zero value otherwise. + +### GetStatus304Ok + +`func (o *Values) GetStatus304Ok() (*int32, bool)` + +GetStatus304Ok returns a tuple with the Status304 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus304 + +`func (o *Values) SetStatus304(v int32)` + +SetStatus304 sets Status304 field to given value. + +### HasStatus304 + +`func (o *Values) HasStatus304() bool` + +HasStatus304 returns a boolean if a field has been set. + +### GetStatus400 + +`func (o *Values) GetStatus400() int32` + +GetStatus400 returns the Status400 field if non-nil, zero value otherwise. + +### GetStatus400Ok + +`func (o *Values) GetStatus400Ok() (*int32, bool)` + +GetStatus400Ok returns a tuple with the Status400 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus400 + +`func (o *Values) SetStatus400(v int32)` + +SetStatus400 sets Status400 field to given value. + +### HasStatus400 + +`func (o *Values) HasStatus400() bool` + +HasStatus400 returns a boolean if a field has been set. + +### GetStatus401 + +`func (o *Values) GetStatus401() int32` + +GetStatus401 returns the Status401 field if non-nil, zero value otherwise. + +### GetStatus401Ok + +`func (o *Values) GetStatus401Ok() (*int32, bool)` + +GetStatus401Ok returns a tuple with the Status401 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus401 + +`func (o *Values) SetStatus401(v int32)` + +SetStatus401 sets Status401 field to given value. + +### HasStatus401 + +`func (o *Values) HasStatus401() bool` + +HasStatus401 returns a boolean if a field has been set. + +### GetStatus403 + +`func (o *Values) GetStatus403() int32` + +GetStatus403 returns the Status403 field if non-nil, zero value otherwise. + +### GetStatus403Ok + +`func (o *Values) GetStatus403Ok() (*int32, bool)` + +GetStatus403Ok returns a tuple with the Status403 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus403 + +`func (o *Values) SetStatus403(v int32)` + +SetStatus403 sets Status403 field to given value. + +### HasStatus403 + +`func (o *Values) HasStatus403() bool` + +HasStatus403 returns a boolean if a field has been set. + +### GetStatus404 + +`func (o *Values) GetStatus404() int32` + +GetStatus404 returns the Status404 field if non-nil, zero value otherwise. + +### GetStatus404Ok + +`func (o *Values) GetStatus404Ok() (*int32, bool)` + +GetStatus404Ok returns a tuple with the Status404 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus404 + +`func (o *Values) SetStatus404(v int32)` + +SetStatus404 sets Status404 field to given value. + +### HasStatus404 + +`func (o *Values) HasStatus404() bool` + +HasStatus404 returns a boolean if a field has been set. + +### GetStatus416 + +`func (o *Values) GetStatus416() int32` + +GetStatus416 returns the Status416 field if non-nil, zero value otherwise. + +### GetStatus416Ok + +`func (o *Values) GetStatus416Ok() (*int32, bool)` + +GetStatus416Ok returns a tuple with the Status416 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus416 + +`func (o *Values) SetStatus416(v int32)` + +SetStatus416 sets Status416 field to given value. + +### HasStatus416 + +`func (o *Values) HasStatus416() bool` + +HasStatus416 returns a boolean if a field has been set. + +### GetStatus429 + +`func (o *Values) GetStatus429() int32` + +GetStatus429 returns the Status429 field if non-nil, zero value otherwise. + +### GetStatus429Ok + +`func (o *Values) GetStatus429Ok() (*int32, bool)` + +GetStatus429Ok returns a tuple with the Status429 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus429 + +`func (o *Values) SetStatus429(v int32)` + +SetStatus429 sets Status429 field to given value. + +### HasStatus429 + +`func (o *Values) HasStatus429() bool` + +HasStatus429 returns a boolean if a field has been set. + +### GetStatus500 + +`func (o *Values) GetStatus500() int32` + +GetStatus500 returns the Status500 field if non-nil, zero value otherwise. + +### GetStatus500Ok + +`func (o *Values) GetStatus500Ok() (*int32, bool)` + +GetStatus500Ok returns a tuple with the Status500 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus500 + +`func (o *Values) SetStatus500(v int32)` + +SetStatus500 sets Status500 field to given value. + +### HasStatus500 + +`func (o *Values) HasStatus500() bool` + +HasStatus500 returns a boolean if a field has been set. + +### GetStatus501 + +`func (o *Values) GetStatus501() int32` + +GetStatus501 returns the Status501 field if non-nil, zero value otherwise. + +### GetStatus501Ok + +`func (o *Values) GetStatus501Ok() (*int32, bool)` + +GetStatus501Ok returns a tuple with the Status501 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus501 + +`func (o *Values) SetStatus501(v int32)` + +SetStatus501 sets Status501 field to given value. + +### HasStatus501 + +`func (o *Values) HasStatus501() bool` + +HasStatus501 returns a boolean if a field has been set. + +### GetStatus502 + +`func (o *Values) GetStatus502() int32` + +GetStatus502 returns the Status502 field if non-nil, zero value otherwise. + +### GetStatus502Ok + +`func (o *Values) GetStatus502Ok() (*int32, bool)` + +GetStatus502Ok returns a tuple with the Status502 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus502 + +`func (o *Values) SetStatus502(v int32)` + +SetStatus502 sets Status502 field to given value. + +### HasStatus502 + +`func (o *Values) HasStatus502() bool` + +HasStatus502 returns a boolean if a field has been set. + +### GetStatus503 + +`func (o *Values) GetStatus503() int32` + +GetStatus503 returns the Status503 field if non-nil, zero value otherwise. + +### GetStatus503Ok + +`func (o *Values) GetStatus503Ok() (*int32, bool)` + +GetStatus503Ok returns a tuple with the Status503 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus503 + +`func (o *Values) SetStatus503(v int32)` + +SetStatus503 sets Status503 field to given value. + +### HasStatus503 + +`func (o *Values) HasStatus503() bool` + +HasStatus503 returns a boolean if a field has been set. + +### GetStatus504 + +`func (o *Values) GetStatus504() int32` + +GetStatus504 returns the Status504 field if non-nil, zero value otherwise. + +### GetStatus504Ok + +`func (o *Values) GetStatus504Ok() (*int32, bool)` + +GetStatus504Ok returns a tuple with the Status504 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus504 + +`func (o *Values) SetStatus504(v int32)` + +SetStatus504 sets Status504 field to given value. + +### HasStatus504 + +`func (o *Values) HasStatus504() bool` + +HasStatus504 returns a boolean if a field has been set. + +### GetStatus505 + +`func (o *Values) GetStatus505() int32` + +GetStatus505 returns the Status505 field if non-nil, zero value otherwise. + +### GetStatus505Ok + +`func (o *Values) GetStatus505Ok() (*int32, bool)` + +GetStatus505Ok returns a tuple with the Status505 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus505 + +`func (o *Values) SetStatus505(v int32)` + +SetStatus505 sets Status505 field to given value. + +### HasStatus505 + +`func (o *Values) HasStatus505() bool` + +HasStatus505 returns a boolean if a field has been set. + +### GetRequests + +`func (o *Values) GetRequests() int32` + +GetRequests returns the Requests field if non-nil, zero value otherwise. + +### GetRequestsOk + +`func (o *Values) GetRequestsOk() (*int32, bool)` + +GetRequestsOk returns a tuple with the Requests field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRequests + +`func (o *Values) SetRequests(v int32)` + +SetRequests sets Requests field to given value. + +### HasRequests + +`func (o *Values) HasRequests() bool` + +HasRequests returns a boolean if a field has been set. + +### GetRespHeaderBytes + +`func (o *Values) GetRespHeaderBytes() int32` + +GetRespHeaderBytes returns the RespHeaderBytes field if non-nil, zero value otherwise. + +### GetRespHeaderBytesOk + +`func (o *Values) GetRespHeaderBytesOk() (*int32, bool)` + +GetRespHeaderBytesOk returns a tuple with the RespHeaderBytes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRespHeaderBytes + +`func (o *Values) SetRespHeaderBytes(v int32)` + +SetRespHeaderBytes sets RespHeaderBytes field to given value. + +### HasRespHeaderBytes + +`func (o *Values) HasRespHeaderBytes() bool` + +HasRespHeaderBytes returns a boolean if a field has been set. + +### GetRespBodyBytes + +`func (o *Values) GetRespBodyBytes() int32` + +GetRespBodyBytes returns the RespBodyBytes field if non-nil, zero value otherwise. + +### GetRespBodyBytesOk + +`func (o *Values) GetRespBodyBytesOk() (*int32, bool)` + +GetRespBodyBytesOk returns a tuple with the RespBodyBytes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRespBodyBytes + +`func (o *Values) SetRespBodyBytes(v int32)` + +SetRespBodyBytes sets RespBodyBytes field to given value. + +### HasRespBodyBytes + +`func (o *Values) HasRespBodyBytes() bool` + +HasRespBodyBytes returns a boolean if a field has been set. + +### GetBereqHeaderBytes + +`func (o *Values) GetBereqHeaderBytes() int32` + +GetBereqHeaderBytes returns the BereqHeaderBytes field if non-nil, zero value otherwise. + +### GetBereqHeaderBytesOk + +`func (o *Values) GetBereqHeaderBytesOk() (*int32, bool)` + +GetBereqHeaderBytesOk returns a tuple with the BereqHeaderBytes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBereqHeaderBytes + +`func (o *Values) SetBereqHeaderBytes(v int32)` + +SetBereqHeaderBytes sets BereqHeaderBytes field to given value. + +### HasBereqHeaderBytes + +`func (o *Values) HasBereqHeaderBytes() bool` + +HasBereqHeaderBytes returns a boolean if a field has been set. + +### GetBereqBodyBytes + +`func (o *Values) GetBereqBodyBytes() int32` + +GetBereqBodyBytes returns the BereqBodyBytes field if non-nil, zero value otherwise. + +### GetBereqBodyBytesOk + +`func (o *Values) GetBereqBodyBytesOk() (*int32, bool)` + +GetBereqBodyBytesOk returns a tuple with the BereqBodyBytes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBereqBodyBytes + +`func (o *Values) SetBereqBodyBytes(v int32)` + +SetBereqBodyBytes sets BereqBodyBytes field to given value. + +### HasBereqBodyBytes + +`func (o *Values) HasBereqBodyBytes() bool` + +HasBereqBodyBytes returns a boolean if a field has been set. + +### GetEdgeHitRequests + +`func (o *Values) GetEdgeHitRequests() int32` + +GetEdgeHitRequests returns the EdgeHitRequests field if non-nil, zero value otherwise. + +### GetEdgeHitRequestsOk + +`func (o *Values) GetEdgeHitRequestsOk() (*int32, bool)` + +GetEdgeHitRequestsOk returns a tuple with the EdgeHitRequests field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEdgeHitRequests + +`func (o *Values) SetEdgeHitRequests(v int32)` + +SetEdgeHitRequests sets EdgeHitRequests field to given value. + +### HasEdgeHitRequests + +`func (o *Values) HasEdgeHitRequests() bool` + +HasEdgeHitRequests returns a boolean if a field has been set. + +### GetEdgeMissRequests + +`func (o *Values) GetEdgeMissRequests() int32` + +GetEdgeMissRequests returns the EdgeMissRequests field if non-nil, zero value otherwise. + +### GetEdgeMissRequestsOk + +`func (o *Values) GetEdgeMissRequestsOk() (*int32, bool)` + +GetEdgeMissRequestsOk returns a tuple with the EdgeMissRequests field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEdgeMissRequests + +`func (o *Values) SetEdgeMissRequests(v int32)` + +SetEdgeMissRequests sets EdgeMissRequests field to given value. + +### HasEdgeMissRequests + +`func (o *Values) HasEdgeMissRequests() bool` + +HasEdgeMissRequests returns a boolean if a field has been set. + +### GetOriginFetches + +`func (o *Values) GetOriginFetches() int32` + +GetOriginFetches returns the OriginFetches field if non-nil, zero value otherwise. + +### GetOriginFetchesOk + +`func (o *Values) GetOriginFetchesOk() (*int32, bool)` + +GetOriginFetchesOk returns a tuple with the OriginFetches field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOriginFetches + +`func (o *Values) SetOriginFetches(v int32)` + +SetOriginFetches sets OriginFetches field to given value. + +### HasOriginFetches + +`func (o *Values) HasOriginFetches() bool` + +HasOriginFetches returns a boolean if a field has been set. + +### GetOriginFetchRespHeaderBytes + +`func (o *Values) GetOriginFetchRespHeaderBytes() int32` + +GetOriginFetchRespHeaderBytes returns the OriginFetchRespHeaderBytes field if non-nil, zero value otherwise. + +### GetOriginFetchRespHeaderBytesOk + +`func (o *Values) GetOriginFetchRespHeaderBytesOk() (*int32, bool)` + +GetOriginFetchRespHeaderBytesOk returns a tuple with the OriginFetchRespHeaderBytes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOriginFetchRespHeaderBytes + +`func (o *Values) SetOriginFetchRespHeaderBytes(v int32)` + +SetOriginFetchRespHeaderBytes sets OriginFetchRespHeaderBytes field to given value. + +### HasOriginFetchRespHeaderBytes + +`func (o *Values) HasOriginFetchRespHeaderBytes() bool` + +HasOriginFetchRespHeaderBytes returns a boolean if a field has been set. + +### GetOriginFetchRespBodyBytes + +`func (o *Values) GetOriginFetchRespBodyBytes() int32` + +GetOriginFetchRespBodyBytes returns the OriginFetchRespBodyBytes field if non-nil, zero value otherwise. + +### GetOriginFetchRespBodyBytesOk + +`func (o *Values) GetOriginFetchRespBodyBytesOk() (*int32, bool)` + +GetOriginFetchRespBodyBytesOk returns a tuple with the OriginFetchRespBodyBytes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOriginFetchRespBodyBytes + +`func (o *Values) SetOriginFetchRespBodyBytes(v int32)` + +SetOriginFetchRespBodyBytes sets OriginFetchRespBodyBytes field to given value. + +### HasOriginFetchRespBodyBytes + +`func (o *Values) HasOriginFetchRespBodyBytes() bool` + +HasOriginFetchRespBodyBytes returns a boolean if a field has been set. + +### GetBandwidth + +`func (o *Values) GetBandwidth() int32` + +GetBandwidth returns the Bandwidth field if non-nil, zero value otherwise. + +### GetBandwidthOk + +`func (o *Values) GetBandwidthOk() (*int32, bool)` + +GetBandwidthOk returns a tuple with the Bandwidth field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBandwidth + +`func (o *Values) SetBandwidth(v int32)` + +SetBandwidth sets Bandwidth field to given value. + +### HasBandwidth + +`func (o *Values) HasBandwidth() bool` + +HasBandwidth returns a boolean if a field has been set. + +### GetEdgeHitRatio + +`func (o *Values) GetEdgeHitRatio() float32` + +GetEdgeHitRatio returns the EdgeHitRatio field if non-nil, zero value otherwise. + +### GetEdgeHitRatioOk + +`func (o *Values) GetEdgeHitRatioOk() (*float32, bool)` + +GetEdgeHitRatioOk returns a tuple with the EdgeHitRatio field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEdgeHitRatio + +`func (o *Values) SetEdgeHitRatio(v float32)` + +SetEdgeHitRatio sets EdgeHitRatio field to given value. + +### HasEdgeHitRatio + +`func (o *Values) HasEdgeHitRatio() bool` + +HasEdgeHitRatio returns a boolean if a field has been set. + +### GetOriginOffload + +`func (o *Values) GetOriginOffload() float32` + +GetOriginOffload returns the OriginOffload field if non-nil, zero value otherwise. + +### GetOriginOffloadOk + +`func (o *Values) GetOriginOffloadOk() (*float32, bool)` + +GetOriginOffloadOk returns a tuple with the OriginOffload field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOriginOffload + +`func (o *Values) SetOriginOffload(v float32)` + +SetOriginOffload sets OriginOffload field to given value. + +### HasOriginOffload + +`func (o *Values) HasOriginOffload() bool` + +HasOriginOffload returns a boolean if a field has been set. + +### GetOriginStatus200 + +`func (o *Values) GetOriginStatus200() int32` + +GetOriginStatus200 returns the OriginStatus200 field if non-nil, zero value otherwise. + +### GetOriginStatus200Ok + +`func (o *Values) GetOriginStatus200Ok() (*int32, bool)` + +GetOriginStatus200Ok returns a tuple with the OriginStatus200 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOriginStatus200 + +`func (o *Values) SetOriginStatus200(v int32)` + +SetOriginStatus200 sets OriginStatus200 field to given value. + +### HasOriginStatus200 + +`func (o *Values) HasOriginStatus200() bool` + +HasOriginStatus200 returns a boolean if a field has been set. + +### GetOriginStatus204 + +`func (o *Values) GetOriginStatus204() int32` + +GetOriginStatus204 returns the OriginStatus204 field if non-nil, zero value otherwise. + +### GetOriginStatus204Ok + +`func (o *Values) GetOriginStatus204Ok() (*int32, bool)` + +GetOriginStatus204Ok returns a tuple with the OriginStatus204 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOriginStatus204 + +`func (o *Values) SetOriginStatus204(v int32)` + +SetOriginStatus204 sets OriginStatus204 field to given value. + +### HasOriginStatus204 + +`func (o *Values) HasOriginStatus204() bool` + +HasOriginStatus204 returns a boolean if a field has been set. + +### GetOriginStatus206 + +`func (o *Values) GetOriginStatus206() int32` + +GetOriginStatus206 returns the OriginStatus206 field if non-nil, zero value otherwise. + +### GetOriginStatus206Ok + +`func (o *Values) GetOriginStatus206Ok() (*int32, bool)` + +GetOriginStatus206Ok returns a tuple with the OriginStatus206 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOriginStatus206 + +`func (o *Values) SetOriginStatus206(v int32)` + +SetOriginStatus206 sets OriginStatus206 field to given value. + +### HasOriginStatus206 + +`func (o *Values) HasOriginStatus206() bool` + +HasOriginStatus206 returns a boolean if a field has been set. + +### GetOriginStatus301 + +`func (o *Values) GetOriginStatus301() int32` + +GetOriginStatus301 returns the OriginStatus301 field if non-nil, zero value otherwise. + +### GetOriginStatus301Ok + +`func (o *Values) GetOriginStatus301Ok() (*int32, bool)` + +GetOriginStatus301Ok returns a tuple with the OriginStatus301 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOriginStatus301 + +`func (o *Values) SetOriginStatus301(v int32)` + +SetOriginStatus301 sets OriginStatus301 field to given value. + +### HasOriginStatus301 + +`func (o *Values) HasOriginStatus301() bool` + +HasOriginStatus301 returns a boolean if a field has been set. + +### GetOriginStatus302 + +`func (o *Values) GetOriginStatus302() int32` + +GetOriginStatus302 returns the OriginStatus302 field if non-nil, zero value otherwise. + +### GetOriginStatus302Ok + +`func (o *Values) GetOriginStatus302Ok() (*int32, bool)` + +GetOriginStatus302Ok returns a tuple with the OriginStatus302 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOriginStatus302 + +`func (o *Values) SetOriginStatus302(v int32)` + +SetOriginStatus302 sets OriginStatus302 field to given value. + +### HasOriginStatus302 + +`func (o *Values) HasOriginStatus302() bool` + +HasOriginStatus302 returns a boolean if a field has been set. + +### GetOriginStatus304 + +`func (o *Values) GetOriginStatus304() int32` + +GetOriginStatus304 returns the OriginStatus304 field if non-nil, zero value otherwise. + +### GetOriginStatus304Ok + +`func (o *Values) GetOriginStatus304Ok() (*int32, bool)` + +GetOriginStatus304Ok returns a tuple with the OriginStatus304 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOriginStatus304 + +`func (o *Values) SetOriginStatus304(v int32)` + +SetOriginStatus304 sets OriginStatus304 field to given value. + +### HasOriginStatus304 + +`func (o *Values) HasOriginStatus304() bool` + +HasOriginStatus304 returns a boolean if a field has been set. + +### GetOriginStatus400 + +`func (o *Values) GetOriginStatus400() int32` + +GetOriginStatus400 returns the OriginStatus400 field if non-nil, zero value otherwise. + +### GetOriginStatus400Ok + +`func (o *Values) GetOriginStatus400Ok() (*int32, bool)` + +GetOriginStatus400Ok returns a tuple with the OriginStatus400 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOriginStatus400 + +`func (o *Values) SetOriginStatus400(v int32)` + +SetOriginStatus400 sets OriginStatus400 field to given value. + +### HasOriginStatus400 + +`func (o *Values) HasOriginStatus400() bool` + +HasOriginStatus400 returns a boolean if a field has been set. + +### GetOriginStatus401 + +`func (o *Values) GetOriginStatus401() int32` + +GetOriginStatus401 returns the OriginStatus401 field if non-nil, zero value otherwise. + +### GetOriginStatus401Ok + +`func (o *Values) GetOriginStatus401Ok() (*int32, bool)` + +GetOriginStatus401Ok returns a tuple with the OriginStatus401 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOriginStatus401 + +`func (o *Values) SetOriginStatus401(v int32)` + +SetOriginStatus401 sets OriginStatus401 field to given value. + +### HasOriginStatus401 + +`func (o *Values) HasOriginStatus401() bool` + +HasOriginStatus401 returns a boolean if a field has been set. + +### GetOriginStatus403 + +`func (o *Values) GetOriginStatus403() int32` + +GetOriginStatus403 returns the OriginStatus403 field if non-nil, zero value otherwise. + +### GetOriginStatus403Ok + +`func (o *Values) GetOriginStatus403Ok() (*int32, bool)` + +GetOriginStatus403Ok returns a tuple with the OriginStatus403 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOriginStatus403 + +`func (o *Values) SetOriginStatus403(v int32)` + +SetOriginStatus403 sets OriginStatus403 field to given value. + +### HasOriginStatus403 + +`func (o *Values) HasOriginStatus403() bool` + +HasOriginStatus403 returns a boolean if a field has been set. + +### GetOriginStatus404 + +`func (o *Values) GetOriginStatus404() int32` + +GetOriginStatus404 returns the OriginStatus404 field if non-nil, zero value otherwise. + +### GetOriginStatus404Ok + +`func (o *Values) GetOriginStatus404Ok() (*int32, bool)` + +GetOriginStatus404Ok returns a tuple with the OriginStatus404 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOriginStatus404 + +`func (o *Values) SetOriginStatus404(v int32)` + +SetOriginStatus404 sets OriginStatus404 field to given value. + +### HasOriginStatus404 + +`func (o *Values) HasOriginStatus404() bool` + +HasOriginStatus404 returns a boolean if a field has been set. + +### GetOriginStatus416 + +`func (o *Values) GetOriginStatus416() int32` + +GetOriginStatus416 returns the OriginStatus416 field if non-nil, zero value otherwise. + +### GetOriginStatus416Ok + +`func (o *Values) GetOriginStatus416Ok() (*int32, bool)` + +GetOriginStatus416Ok returns a tuple with the OriginStatus416 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOriginStatus416 + +`func (o *Values) SetOriginStatus416(v int32)` + +SetOriginStatus416 sets OriginStatus416 field to given value. + +### HasOriginStatus416 + +`func (o *Values) HasOriginStatus416() bool` + +HasOriginStatus416 returns a boolean if a field has been set. + +### GetOriginStatus429 + +`func (o *Values) GetOriginStatus429() int32` + +GetOriginStatus429 returns the OriginStatus429 field if non-nil, zero value otherwise. + +### GetOriginStatus429Ok + +`func (o *Values) GetOriginStatus429Ok() (*int32, bool)` + +GetOriginStatus429Ok returns a tuple with the OriginStatus429 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOriginStatus429 + +`func (o *Values) SetOriginStatus429(v int32)` + +SetOriginStatus429 sets OriginStatus429 field to given value. + +### HasOriginStatus429 + +`func (o *Values) HasOriginStatus429() bool` + +HasOriginStatus429 returns a boolean if a field has been set. + +### GetOriginStatus500 + +`func (o *Values) GetOriginStatus500() int32` + +GetOriginStatus500 returns the OriginStatus500 field if non-nil, zero value otherwise. + +### GetOriginStatus500Ok + +`func (o *Values) GetOriginStatus500Ok() (*int32, bool)` + +GetOriginStatus500Ok returns a tuple with the OriginStatus500 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOriginStatus500 + +`func (o *Values) SetOriginStatus500(v int32)` + +SetOriginStatus500 sets OriginStatus500 field to given value. + +### HasOriginStatus500 + +`func (o *Values) HasOriginStatus500() bool` + +HasOriginStatus500 returns a boolean if a field has been set. + +### GetOriginStatus501 + +`func (o *Values) GetOriginStatus501() int32` + +GetOriginStatus501 returns the OriginStatus501 field if non-nil, zero value otherwise. + +### GetOriginStatus501Ok + +`func (o *Values) GetOriginStatus501Ok() (*int32, bool)` + +GetOriginStatus501Ok returns a tuple with the OriginStatus501 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOriginStatus501 + +`func (o *Values) SetOriginStatus501(v int32)` + +SetOriginStatus501 sets OriginStatus501 field to given value. + +### HasOriginStatus501 + +`func (o *Values) HasOriginStatus501() bool` + +HasOriginStatus501 returns a boolean if a field has been set. + +### GetOriginStatus502 + +`func (o *Values) GetOriginStatus502() int32` + +GetOriginStatus502 returns the OriginStatus502 field if non-nil, zero value otherwise. + +### GetOriginStatus502Ok + +`func (o *Values) GetOriginStatus502Ok() (*int32, bool)` + +GetOriginStatus502Ok returns a tuple with the OriginStatus502 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOriginStatus502 + +`func (o *Values) SetOriginStatus502(v int32)` + +SetOriginStatus502 sets OriginStatus502 field to given value. + +### HasOriginStatus502 + +`func (o *Values) HasOriginStatus502() bool` + +HasOriginStatus502 returns a boolean if a field has been set. + +### GetOriginStatus503 + +`func (o *Values) GetOriginStatus503() int32` + +GetOriginStatus503 returns the OriginStatus503 field if non-nil, zero value otherwise. + +### GetOriginStatus503Ok + +`func (o *Values) GetOriginStatus503Ok() (*int32, bool)` + +GetOriginStatus503Ok returns a tuple with the OriginStatus503 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOriginStatus503 + +`func (o *Values) SetOriginStatus503(v int32)` + +SetOriginStatus503 sets OriginStatus503 field to given value. + +### HasOriginStatus503 + +`func (o *Values) HasOriginStatus503() bool` + +HasOriginStatus503 returns a boolean if a field has been set. + +### GetOriginStatus504 + +`func (o *Values) GetOriginStatus504() int32` + +GetOriginStatus504 returns the OriginStatus504 field if non-nil, zero value otherwise. + +### GetOriginStatus504Ok + +`func (o *Values) GetOriginStatus504Ok() (*int32, bool)` + +GetOriginStatus504Ok returns a tuple with the OriginStatus504 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOriginStatus504 + +`func (o *Values) SetOriginStatus504(v int32)` + +SetOriginStatus504 sets OriginStatus504 field to given value. + +### HasOriginStatus504 + +`func (o *Values) HasOriginStatus504() bool` + +HasOriginStatus504 returns a boolean if a field has been set. + +### GetOriginStatus505 + +`func (o *Values) GetOriginStatus505() int32` + +GetOriginStatus505 returns the OriginStatus505 field if non-nil, zero value otherwise. + +### GetOriginStatus505Ok + +`func (o *Values) GetOriginStatus505Ok() (*int32, bool)` + +GetOriginStatus505Ok returns a tuple with the OriginStatus505 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOriginStatus505 + +`func (o *Values) SetOriginStatus505(v int32)` + +SetOriginStatus505 sets OriginStatus505 field to given value. + +### HasOriginStatus505 + +`func (o *Values) HasOriginStatus505() bool` + +HasOriginStatus505 returns a boolean if a field has been set. + +### GetOriginStatus1xx + +`func (o *Values) GetOriginStatus1xx() int32` + +GetOriginStatus1xx returns the OriginStatus1xx field if non-nil, zero value otherwise. + +### GetOriginStatus1xxOk + +`func (o *Values) GetOriginStatus1xxOk() (*int32, bool)` + +GetOriginStatus1xxOk returns a tuple with the OriginStatus1xx field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOriginStatus1xx + +`func (o *Values) SetOriginStatus1xx(v int32)` + +SetOriginStatus1xx sets OriginStatus1xx field to given value. + +### HasOriginStatus1xx + +`func (o *Values) HasOriginStatus1xx() bool` + +HasOriginStatus1xx returns a boolean if a field has been set. + +### GetOriginStatus2xx + +`func (o *Values) GetOriginStatus2xx() int32` + +GetOriginStatus2xx returns the OriginStatus2xx field if non-nil, zero value otherwise. + +### GetOriginStatus2xxOk + +`func (o *Values) GetOriginStatus2xxOk() (*int32, bool)` + +GetOriginStatus2xxOk returns a tuple with the OriginStatus2xx field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOriginStatus2xx + +`func (o *Values) SetOriginStatus2xx(v int32)` + +SetOriginStatus2xx sets OriginStatus2xx field to given value. + +### HasOriginStatus2xx + +`func (o *Values) HasOriginStatus2xx() bool` + +HasOriginStatus2xx returns a boolean if a field has been set. + +### GetOriginStatus3xx + +`func (o *Values) GetOriginStatus3xx() int32` + +GetOriginStatus3xx returns the OriginStatus3xx field if non-nil, zero value otherwise. + +### GetOriginStatus3xxOk + +`func (o *Values) GetOriginStatus3xxOk() (*int32, bool)` + +GetOriginStatus3xxOk returns a tuple with the OriginStatus3xx field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOriginStatus3xx + +`func (o *Values) SetOriginStatus3xx(v int32)` + +SetOriginStatus3xx sets OriginStatus3xx field to given value. + +### HasOriginStatus3xx + +`func (o *Values) HasOriginStatus3xx() bool` + +HasOriginStatus3xx returns a boolean if a field has been set. + +### GetOriginStatus4xx + +`func (o *Values) GetOriginStatus4xx() int32` + +GetOriginStatus4xx returns the OriginStatus4xx field if non-nil, zero value otherwise. + +### GetOriginStatus4xxOk + +`func (o *Values) GetOriginStatus4xxOk() (*int32, bool)` + +GetOriginStatus4xxOk returns a tuple with the OriginStatus4xx field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOriginStatus4xx + +`func (o *Values) SetOriginStatus4xx(v int32)` + +SetOriginStatus4xx sets OriginStatus4xx field to given value. + +### HasOriginStatus4xx + +`func (o *Values) HasOriginStatus4xx() bool` + +HasOriginStatus4xx returns a boolean if a field has been set. + +### GetOriginStatus5xx + +`func (o *Values) GetOriginStatus5xx() int32` + +GetOriginStatus5xx returns the OriginStatus5xx field if non-nil, zero value otherwise. + +### GetOriginStatus5xxOk + +`func (o *Values) GetOriginStatus5xxOk() (*int32, bool)` + +GetOriginStatus5xxOk returns a tuple with the OriginStatus5xx field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOriginStatus5xx + +`func (o *Values) SetOriginStatus5xx(v int32)` + +SetOriginStatus5xx sets OriginStatus5xx field to given value. + +### HasOriginStatus5xx + +`func (o *Values) HasOriginStatus5xx() bool` + +HasOriginStatus5xx returns a boolean if a field has been set. + + +[Back to API list](../README.md#documentation-for-api-endpoints) | [Back to README](../README.md) diff --git a/docs/WafActiveRulesAPI.md b/docs/WafActiveRulesAPI.md index 68e04b1c..65d1aa72 100644 --- a/docs/WafActiveRulesAPI.md +++ b/docs/WafActiveRulesAPI.md @@ -4,6 +4,7 @@ All URIs are relative to *https://api.fastly.com* Method | HTTP request | Description ------------- | ------------- | ------------- +[**BulkDeleteWafActiveRules**](WafActiveRulesAPI.md#BulkDeleteWafActiveRules) | **DELETE** `/waf/firewalls/{firewall_id}/versions/{version_id}/active-rules` | Delete multiple active rules from a WAF [**BulkUpdateWafActiveRules**](WafActiveRulesAPI.md#BulkUpdateWafActiveRules) | **PATCH** `/waf/firewalls/{firewall_id}/versions/{version_id}/active-rules/bulk` | Update multiple active rules [**CreateWafActiveRule**](WafActiveRulesAPI.md#CreateWafActiveRule) | **POST** `/waf/firewalls/{firewall_id}/versions/{version_id}/active-rules` | Add a rule to a WAF as an active rule [**CreateWafActiveRulesTag**](WafActiveRulesAPI.md#CreateWafActiveRulesTag) | **POST** `/waf/firewalls/{firewall_id}/versions/{version_id}/tags/{waf_tag_name}/active-rules` | Create active rules by tag @@ -14,6 +15,74 @@ Method | HTTP request | Description +## BulkDeleteWafActiveRules + +Delete multiple active rules from a WAF + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + "github.com/fastly/fastly-go/fastly" +) + +func main() { + firewallID := "firewallId_example" // string | Alphanumeric string identifying a WAF Firewall. + versionID := int32(56) // int32 | Integer identifying a service version. + requestBody := map[string]map[string]any{"key": map[string]any(123)} // map[string]map[string]any | (optional) + + cfg := fastly.NewConfiguration() + apiClient := fastly.NewAPIClient(cfg) + ctx := fastly.NewAPIKeyContextFromEnv("FASTLY_API_TOKEN") + resp, r, err := apiClient.WafActiveRulesAPI.BulkDeleteWafActiveRules(ctx, firewallID, versionID).RequestBody(requestBody).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `WafActiveRulesAPI.BulkDeleteWafActiveRules`: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**firewallID** | **string** | Alphanumeric string identifying a WAF Firewall. | +**versionID** | **int32** | Integer identifying a service version. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiBulkDeleteWafActiveRulesRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **requestBody** | **map[string]map[string]any** | | + +### Return type + + (empty response body) + +### Authorization + +[API Token](https://developer.fastly.com/reference/api/#authentication) + +### HTTP request headers + +- **Content-Type**: application/vnd.api+json; ext=bulk +- **Accept**: Not defined + +[Back to top](#) | [Back to API list](../README.md#documentation-for-api-endpoints) | [Back to README](../README.md) + + ## BulkUpdateWafActiveRules Update multiple active rules diff --git a/fastly/api_apex_redirect.go b/fastly/api_apex_redirect.go index cd947be4..f60be92e 100644 --- a/fastly/api_apex_redirect.go +++ b/fastly/api_apex_redirect.go @@ -32,6 +32,22 @@ var ( // ApexRedirectAPI defines an interface for interacting with the resource. type ApexRedirectAPI interface { + /* + CreateApexRedirect Create an apex redirect + + Create an apex redirect for a particular service and version. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param versionID Integer identifying a service version. + @return APICreateApexRedirectRequest + */ + CreateApexRedirect(ctx context.Context, serviceID string, versionID int32) APICreateApexRedirectRequest + + // CreateApexRedirectExecute executes the request + // @return ApexRedirect + CreateApexRedirectExecute(r APICreateApexRedirectRequest) (*ApexRedirect, *http.Response, error) + /* DeleteApexRedirect Delete an apex redirect @@ -97,6 +113,224 @@ type ApexRedirectAPI interface { // ApexRedirectAPIService ApexRedirectAPI service type ApexRedirectAPIService service +// APICreateApexRedirectRequest represents a request for the resource. +type APICreateApexRedirectRequest struct { + ctx context.Context + APIService ApexRedirectAPI + serviceID string + versionID int32 + serviceID2 *string + version *int32 + createdAt *time.Time + deletedAt *time.Time + updatedAt *time.Time + statusCode *int32 + domains *[]string + featureRevision *int32 +} + +// ServiceID2 returns a pointer to a request. +func (r *APICreateApexRedirectRequest) ServiceID2(serviceID2 string) *APICreateApexRedirectRequest { + r.serviceID2 = &serviceID2 + return r +} +// Version returns a pointer to a request. +func (r *APICreateApexRedirectRequest) Version(version int32) *APICreateApexRedirectRequest { + r.version = &version + return r +} +// CreatedAt Date and time in ISO 8601 format. +func (r *APICreateApexRedirectRequest) CreatedAt(createdAt time.Time) *APICreateApexRedirectRequest { + r.createdAt = &createdAt + return r +} +// DeletedAt Date and time in ISO 8601 format. +func (r *APICreateApexRedirectRequest) DeletedAt(deletedAt time.Time) *APICreateApexRedirectRequest { + r.deletedAt = &deletedAt + return r +} +// UpdatedAt Date and time in ISO 8601 format. +func (r *APICreateApexRedirectRequest) UpdatedAt(updatedAt time.Time) *APICreateApexRedirectRequest { + r.updatedAt = &updatedAt + return r +} +// StatusCode HTTP status code used to redirect the client. +func (r *APICreateApexRedirectRequest) StatusCode(statusCode int32) *APICreateApexRedirectRequest { + r.statusCode = &statusCode + return r +} +// Domains Array of apex domains that should redirect to their WWW subdomain. +func (r *APICreateApexRedirectRequest) Domains(domains []string) *APICreateApexRedirectRequest { + r.domains = &domains + return r +} +// FeatureRevision Revision number of the apex redirect feature implementation. Defaults to the most recent revision. +func (r *APICreateApexRedirectRequest) FeatureRevision(featureRevision int32) *APICreateApexRedirectRequest { + r.featureRevision = &featureRevision + return r +} + +// Execute calls the API using the request data configured. +func (r APICreateApexRedirectRequest) Execute() (*ApexRedirect, *http.Response, error) { + return r.APIService.CreateApexRedirectExecute(r) +} + +/* +CreateApexRedirect Create an apex redirect + +Create an apex redirect for a particular service and version. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param versionID Integer identifying a service version. + @return APICreateApexRedirectRequest +*/ +func (a *ApexRedirectAPIService) CreateApexRedirect(ctx context.Context, serviceID string, versionID int32) APICreateApexRedirectRequest { + return APICreateApexRedirectRequest{ + APIService: a, + ctx: ctx, + serviceID: serviceID, + versionID: versionID, + } +} + +// CreateApexRedirectExecute executes the request +// @return ApexRedirect +func (a *ApexRedirectAPIService) CreateApexRedirectExecute(r APICreateApexRedirectRequest) (*ApexRedirect, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody any + formFiles []formFile + localVarReturnValue *ApexRedirect + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ApexRedirectAPIService.CreateApexRedirect") + if err != nil { + return localVarReturnValue, nil, &GenericAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/service/{service_id}/version/{version_id}/apex-redirects" + localVarPath = strings.ReplaceAll(localVarPath, "{"+"service_id"+"}", gourl.PathEscape(parameterToString(r.serviceID, ""))) + localVarPath = strings.ReplaceAll(localVarPath, "{"+"version_id"+"}", gourl.PathEscape(parameterToString(r.versionID, ""))) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := gourl.Values{} + localVarFormParams := gourl.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/x-www-form-urlencoded"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.serviceID2 != nil { + paramJSON, err := parameterToJSON(*r.serviceID2) + if err != nil { + return localVarReturnValue, nil, err + } + localVarFormParams.Add("service_id", paramJSON) + } + if r.version != nil { + paramJSON, err := parameterToJSON(*r.version) + if err != nil { + return localVarReturnValue, nil, err + } + localVarFormParams.Add("version", paramJSON) + } + if r.createdAt != nil { + localVarFormParams.Add("created_at", parameterToString(*r.createdAt, "")) + } + if r.deletedAt != nil { + localVarFormParams.Add("deleted_at", parameterToString(*r.deletedAt, "")) + } + if r.updatedAt != nil { + localVarFormParams.Add("updated_at", parameterToString(*r.updatedAt, "")) + } + if r.statusCode != nil { + localVarFormParams.Add("status_code", parameterToString(*r.statusCode, "")) + } + if r.domains != nil { + localVarFormParams.Add("domains", parameterToString(*r.domains, "csv")) + } + if r.featureRevision != nil { + localVarFormParams.Add("feature_revision", parameterToString(*r.featureRevision, "")) + } + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["token"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Fastly-Key"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + _ = localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + + if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { + if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { + if i, err := strconv.Atoi(remaining); err == nil { + a.client.RateLimitRemaining = i + } + } + if reset := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Reset"); reset != "" { + if i, err := strconv.Atoi(reset); err == nil { + a.client.RateLimitReset = i + } + } + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + // APIDeleteApexRedirectRequest represents a request for the resource. type APIDeleteApexRedirectRequest struct { ctx context.Context diff --git a/fastly/api_contact.go b/fastly/api_contact.go index a8227b5a..6c5354f3 100644 --- a/fastly/api_contact.go +++ b/fastly/api_contact.go @@ -31,6 +31,21 @@ var ( // ContactAPI defines an interface for interacting with the resource. type ContactAPI interface { + /* + CreateContacts Add a new customer contact + + Create a contact. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param customerID Alphanumeric string identifying the customer. + @return APICreateContactsRequest + */ + CreateContacts(ctx context.Context, customerID string) APICreateContactsRequest + + // CreateContactsExecute executes the request + // @return ContactResponse + CreateContactsExecute(r APICreateContactsRequest) (*ContactResponse, *http.Response, error) + /* DeleteContact Delete a contact @@ -66,6 +81,194 @@ type ContactAPI interface { // ContactAPIService ContactAPI service type ContactAPIService service +// APICreateContactsRequest represents a request for the resource. +type APICreateContactsRequest struct { + ctx context.Context + APIService ContactAPI + customerID string + userID *string + contactType *string + name *string + email *string + phone *string + customerID2 *string +} + +// UserID The alphanumeric string representing the user for this customer contact. +func (r *APICreateContactsRequest) UserID(userID string) *APICreateContactsRequest { + r.userID = &userID + return r +} +// ContactType The type of contact. +func (r *APICreateContactsRequest) ContactType(contactType string) *APICreateContactsRequest { + r.contactType = &contactType + return r +} +// Name The name of this contact, when user_id is not provided. +func (r *APICreateContactsRequest) Name(name string) *APICreateContactsRequest { + r.name = &name + return r +} +// Email The email of this contact, when a user_id is not provided. +func (r *APICreateContactsRequest) Email(email string) *APICreateContactsRequest { + r.email = &email + return r +} +// Phone The phone number for this contact. Required for primary, technical, and security contact types. +func (r *APICreateContactsRequest) Phone(phone string) *APICreateContactsRequest { + r.phone = &phone + return r +} +// CustomerID2 The alphanumeric string representing the customer for this customer contact. +func (r *APICreateContactsRequest) CustomerID2(customerID2 string) *APICreateContactsRequest { + r.customerID2 = &customerID2 + return r +} + +// Execute calls the API using the request data configured. +func (r APICreateContactsRequest) Execute() (*ContactResponse, *http.Response, error) { + return r.APIService.CreateContactsExecute(r) +} + +/* +CreateContacts Add a new customer contact + +Create a contact. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param customerID Alphanumeric string identifying the customer. + @return APICreateContactsRequest +*/ +func (a *ContactAPIService) CreateContacts(ctx context.Context, customerID string) APICreateContactsRequest { + return APICreateContactsRequest{ + APIService: a, + ctx: ctx, + customerID: customerID, + } +} + +// CreateContactsExecute executes the request +// @return ContactResponse +func (a *ContactAPIService) CreateContactsExecute(r APICreateContactsRequest) (*ContactResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody any + formFiles []formFile + localVarReturnValue *ContactResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ContactAPIService.CreateContacts") + if err != nil { + return localVarReturnValue, nil, &GenericAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/customer/{customer_id}/contacts" + localVarPath = strings.ReplaceAll(localVarPath, "{"+"customer_id"+"}", gourl.PathEscape(parameterToString(r.customerID, ""))) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := gourl.Values{} + localVarFormParams := gourl.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/x-www-form-urlencoded"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.userID != nil { + localVarFormParams.Add("user_id", parameterToString(*r.userID, "")) + } + if r.contactType != nil { + localVarFormParams.Add("contact_type", parameterToString(*r.contactType, "")) + } + if r.name != nil { + localVarFormParams.Add("name", parameterToString(*r.name, "")) + } + if r.email != nil { + localVarFormParams.Add("email", parameterToString(*r.email, "")) + } + if r.phone != nil { + localVarFormParams.Add("phone", parameterToString(*r.phone, "")) + } + if r.customerID2 != nil { + localVarFormParams.Add("customer_id", parameterToString(*r.customerID2, "")) + } + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["token"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Fastly-Key"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + _ = localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + + if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { + if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { + if i, err := strconv.Atoi(remaining); err == nil { + a.client.RateLimitRemaining = i + } + } + if reset := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Reset"); reset != "" { + if i, err := strconv.Atoi(reset); err == nil { + a.client.RateLimitReset = i + } + } + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + // APIDeleteContactRequest represents a request for the resource. type APIDeleteContactRequest struct { ctx context.Context diff --git a/fastly/api_director.go b/fastly/api_director.go index a6665a7b..ede60d4c 100644 --- a/fastly/api_director.go +++ b/fastly/api_director.go @@ -96,6 +96,23 @@ type DirectorAPI interface { // ListDirectorsExecute executes the request // @return []DirectorResponse ListDirectorsExecute(r APIListDirectorsRequest) ([]DirectorResponse, *http.Response, error) + + /* + UpdateDirector Update a director + + Update the director for a particular service and version. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param versionID Integer identifying a service version. + @param directorName Name for the Director. + @return APIUpdateDirectorRequest + */ + UpdateDirector(ctx context.Context, serviceID string, versionID int32, directorName string) APIUpdateDirectorRequest + + // UpdateDirectorExecute executes the request + // @return DirectorResponse + UpdateDirectorExecute(r APIUpdateDirectorRequest) (*DirectorResponse, *http.Response, error) } // DirectorAPIService DirectorAPI service @@ -717,6 +734,148 @@ func (a *DirectorAPIService) ListDirectorsExecute(r APIListDirectorsRequest) ([] } + if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { + if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { + if i, err := strconv.Atoi(remaining); err == nil { + a.client.RateLimitRemaining = i + } + } + if reset := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Reset"); reset != "" { + if i, err := strconv.Atoi(reset); err == nil { + a.client.RateLimitReset = i + } + } + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// APIUpdateDirectorRequest represents a request for the resource. +type APIUpdateDirectorRequest struct { + ctx context.Context + APIService DirectorAPI + serviceID string + versionID int32 + directorName string +} + + +// Execute calls the API using the request data configured. +func (r APIUpdateDirectorRequest) Execute() (*DirectorResponse, *http.Response, error) { + return r.APIService.UpdateDirectorExecute(r) +} + +/* +UpdateDirector Update a director + +Update the director for a particular service and version. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param versionID Integer identifying a service version. + @param directorName Name for the Director. + @return APIUpdateDirectorRequest +*/ +func (a *DirectorAPIService) UpdateDirector(ctx context.Context, serviceID string, versionID int32, directorName string) APIUpdateDirectorRequest { + return APIUpdateDirectorRequest{ + APIService: a, + ctx: ctx, + serviceID: serviceID, + versionID: versionID, + directorName: directorName, + } +} + +// UpdateDirectorExecute executes the request +// @return DirectorResponse +func (a *DirectorAPIService) UpdateDirectorExecute(r APIUpdateDirectorRequest) (*DirectorResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody any + formFiles []formFile + localVarReturnValue *DirectorResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DirectorAPIService.UpdateDirector") + if err != nil { + return localVarReturnValue, nil, &GenericAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/service/{service_id}/version/{version_id}/director/{director_name}" + localVarPath = strings.ReplaceAll(localVarPath, "{"+"service_id"+"}", gourl.PathEscape(parameterToString(r.serviceID, ""))) + localVarPath = strings.ReplaceAll(localVarPath, "{"+"version_id"+"}", gourl.PathEscape(parameterToString(r.versionID, ""))) + localVarPath = strings.ReplaceAll(localVarPath, "{"+"director_name"+"}", gourl.PathEscape(parameterToString(r.directorName, ""))) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := gourl.Values{} + localVarFormParams := gourl.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/x-www-form-urlencoded"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["token"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Fastly-Key"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + _ = localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { diff --git a/fastly/api_domain_inspector_historical.go b/fastly/api_domain_inspector_historical.go new file mode 100644 index 00000000..e1c2116f --- /dev/null +++ b/fastly/api_domain_inspector_historical.go @@ -0,0 +1,277 @@ +// Package fastly is an API client library for interacting with most facets of the Fastly API. +package fastly + +/* +Fastly API + +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://developer.fastly.com/reference/api/) + +API version: 1.0.0 +Contact: oss@fastly.com +*/ + +// This code is auto-generated; DO NOT EDIT. + + +import ( + "bytes" + "context" + "io/ioutil" + "net/http" + gourl "net/url" + "strconv" + "strings" +) + +// Linger please +var ( + _ context.Context +) + +// DomainInspectorHistoricalAPI defines an interface for interacting with the resource. +type DomainInspectorHistoricalAPI interface { + + /* + GetDomainInspectorHistorical Get historical domain data for a service + + Fetches historical domain metrics for a given Fastly service, optionally filtering and grouping the results by domain, region, or POP. + + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @return APIGetDomainInspectorHistoricalRequest + */ + GetDomainInspectorHistorical(ctx context.Context, serviceID string) APIGetDomainInspectorHistoricalRequest + + // GetDomainInspectorHistoricalExecute executes the request + // @return HistoricalDomainsResponse + GetDomainInspectorHistoricalExecute(r APIGetDomainInspectorHistoricalRequest) (*HistoricalDomainsResponse, *http.Response, error) +} + +// DomainInspectorHistoricalAPIService DomainInspectorHistoricalAPI service +type DomainInspectorHistoricalAPIService service + +// APIGetDomainInspectorHistoricalRequest represents a request for the resource. +type APIGetDomainInspectorHistoricalRequest struct { + ctx context.Context + APIService DomainInspectorHistoricalAPI + serviceID string + start *string + end *string + downsample *string + metric *string + groupBy *string + limit *string + cursor *string + region *string + datacenter *string + domain *string +} + +// Start A valid ISO-8601-formatted date and time, or UNIX timestamp, indicating the inclusive start of the query time range. If not provided, a default is chosen based on the provided `downsample` value. +func (r *APIGetDomainInspectorHistoricalRequest) Start(start string) *APIGetDomainInspectorHistoricalRequest { + r.start = &start + return r +} +// End A valid ISO-8601-formatted date and time, or UNIX timestamp, indicating the exclusive end of the query time range. If not provided, a default is chosen based on the provided `downsample` value. +func (r *APIGetDomainInspectorHistoricalRequest) End(end string) *APIGetDomainInspectorHistoricalRequest { + r.end = &end + return r +} +// Downsample Duration of sample windows. +func (r *APIGetDomainInspectorHistoricalRequest) Downsample(downsample string) *APIGetDomainInspectorHistoricalRequest { + r.downsample = &downsample + return r +} +// Metric The metric to retrieve. Up to ten comma-separated metrics are accepted. +func (r *APIGetDomainInspectorHistoricalRequest) Metric(metric string) *APIGetDomainInspectorHistoricalRequest { + r.metric = &metric + return r +} +// GroupBy Dimensions to return in the query. Multiple dimensions may be separated by commas. For example, `group_by=domain` will return one timeseries for every domain, as a total across all datacenters (POPs). +func (r *APIGetDomainInspectorHistoricalRequest) GroupBy(groupBy string) *APIGetDomainInspectorHistoricalRequest { + r.groupBy = &groupBy + return r +} +// Limit Number of results per page. The maximum is 200. +func (r *APIGetDomainInspectorHistoricalRequest) Limit(limit string) *APIGetDomainInspectorHistoricalRequest { + r.limit = &limit + return r +} +// Cursor Cursor value from a previous response to retrieve the next page. To request the first page, this should be empty. +func (r *APIGetDomainInspectorHistoricalRequest) Cursor(cursor string) *APIGetDomainInspectorHistoricalRequest { + r.cursor = &cursor + return r +} +// Region Limit query to one or more specific geographic regions. Values should be comma-separated. +func (r *APIGetDomainInspectorHistoricalRequest) Region(region string) *APIGetDomainInspectorHistoricalRequest { + r.region = ®ion + return r +} +// Datacenter Limit query to one or more specific POPs. Values should be comma-separated. +func (r *APIGetDomainInspectorHistoricalRequest) Datacenter(datacenter string) *APIGetDomainInspectorHistoricalRequest { + r.datacenter = &datacenter + return r +} +// Domain Limit query to one or more specific domains. Values should be comma-separated. +func (r *APIGetDomainInspectorHistoricalRequest) Domain(domain string) *APIGetDomainInspectorHistoricalRequest { + r.domain = &domain + return r +} + +// Execute calls the API using the request data configured. +func (r APIGetDomainInspectorHistoricalRequest) Execute() (*HistoricalDomainsResponse, *http.Response, error) { + return r.APIService.GetDomainInspectorHistoricalExecute(r) +} + +/* +GetDomainInspectorHistorical Get historical domain data for a service + +Fetches historical domain metrics for a given Fastly service, optionally filtering and grouping the results by domain, region, or POP. + + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @return APIGetDomainInspectorHistoricalRequest +*/ +func (a *DomainInspectorHistoricalAPIService) GetDomainInspectorHistorical(ctx context.Context, serviceID string) APIGetDomainInspectorHistoricalRequest { + return APIGetDomainInspectorHistoricalRequest{ + APIService: a, + ctx: ctx, + serviceID: serviceID, + } +} + +// GetDomainInspectorHistoricalExecute executes the request +// @return HistoricalDomainsResponse +func (a *DomainInspectorHistoricalAPIService) GetDomainInspectorHistoricalExecute(r APIGetDomainInspectorHistoricalRequest) (*HistoricalDomainsResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody any + formFiles []formFile + localVarReturnValue *HistoricalDomainsResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DomainInspectorHistoricalAPIService.GetDomainInspectorHistorical") + if err != nil { + return localVarReturnValue, nil, &GenericAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/metrics/domains/services/{service_id}" + localVarPath = strings.ReplaceAll(localVarPath, "{"+"service_id"+"}", gourl.PathEscape(parameterToString(r.serviceID, ""))) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := gourl.Values{} + localVarFormParams := gourl.Values{} + + if r.start != nil { + localVarQueryParams.Add("start", parameterToString(*r.start, "")) + } + if r.end != nil { + localVarQueryParams.Add("end", parameterToString(*r.end, "")) + } + if r.downsample != nil { + localVarQueryParams.Add("downsample", parameterToString(*r.downsample, "")) + } + if r.metric != nil { + localVarQueryParams.Add("metric", parameterToString(*r.metric, "")) + } + if r.groupBy != nil { + localVarQueryParams.Add("group_by", parameterToString(*r.groupBy, "")) + } + if r.limit != nil { + localVarQueryParams.Add("limit", parameterToString(*r.limit, "")) + } + if r.cursor != nil { + localVarQueryParams.Add("cursor", parameterToString(*r.cursor, "")) + } + if r.region != nil { + localVarQueryParams.Add("region", parameterToString(*r.region, "")) + } + if r.datacenter != nil { + localVarQueryParams.Add("datacenter", parameterToString(*r.datacenter, "")) + } + if r.domain != nil { + localVarQueryParams.Add("domain", parameterToString(*r.domain, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["token"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Fastly-Key"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + _ = localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + + if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { + if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { + if i, err := strconv.Atoi(remaining); err == nil { + a.client.RateLimitRemaining = i + } + } + if reset := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Reset"); reset != "" { + if i, err := strconv.Atoi(reset); err == nil { + a.client.RateLimitReset = i + } + } + } + + return localVarReturnValue, localVarHTTPResponse, nil +} diff --git a/fastly/api_domain_inspector_realtime.go b/fastly/api_domain_inspector_realtime.go new file mode 100644 index 00000000..94de98a9 --- /dev/null +++ b/fastly/api_domain_inspector_realtime.go @@ -0,0 +1,497 @@ +// Package fastly is an API client library for interacting with most facets of the Fastly API. +package fastly + +/* +Fastly API + +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://developer.fastly.com/reference/api/) + +API version: 1.0.0 +Contact: oss@fastly.com +*/ + +// This code is auto-generated; DO NOT EDIT. + + +import ( + "bytes" + "context" + "io/ioutil" + "net/http" + gourl "net/url" + "strconv" + "strings" +) + +// Linger please +var ( + _ context.Context +) + +// DomainInspectorRealtimeAPI defines an interface for interacting with the resource. +type DomainInspectorRealtimeAPI interface { + + /* + GetDomainInspectorLast120Seconds Get real-time domain data for the last 120 seconds + + Get data for the 120 seconds preceding the latest timestamp available for a service. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @return APIGetDomainInspectorLast120SecondsRequest + */ + GetDomainInspectorLast120Seconds(ctx context.Context, serviceID string) APIGetDomainInspectorLast120SecondsRequest + + // GetDomainInspectorLast120SecondsExecute executes the request + // @return DomainInspector + GetDomainInspectorLast120SecondsExecute(r APIGetDomainInspectorLast120SecondsRequest) (*DomainInspector, *http.Response, error) + + /* + GetDomainInspectorLastMaxEntries Get a limited number of real-time domain data entries + + Get data for the `max_entries` seconds preceding the latest timestamp available for a service, up to a maximum of 120 entries. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param maxEntries Maximum number of results to show. + @return APIGetDomainInspectorLastMaxEntriesRequest + */ + GetDomainInspectorLastMaxEntries(ctx context.Context, serviceID string, maxEntries int32) APIGetDomainInspectorLastMaxEntriesRequest + + // GetDomainInspectorLastMaxEntriesExecute executes the request + // @return DomainInspector + GetDomainInspectorLastMaxEntriesExecute(r APIGetDomainInspectorLastMaxEntriesRequest) (*DomainInspector, *http.Response, error) + + /* + GetDomainInspectorLastSecond Get real-time domain data from a specified time + + Get real-time domain data for the specified reporting period. Specify `0` to get a single entry for the last complete second. The `Timestamp` field included in the response provides the time index of the latest entry in the dataset and can be provided as the `start_timestamp` of the next request for a seamless continuation of the dataset from one request to the next. +Due to processing latency, the earliest entry in the response dataset may be earlier than `start_timestamp` by the value of `AggregateDelay`. + + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param startTimestamp Timestamp in seconds (Unix epoch time). + @return APIGetDomainInspectorLastSecondRequest + */ + GetDomainInspectorLastSecond(ctx context.Context, serviceID string, startTimestamp int32) APIGetDomainInspectorLastSecondRequest + + // GetDomainInspectorLastSecondExecute executes the request + // @return DomainInspector + GetDomainInspectorLastSecondExecute(r APIGetDomainInspectorLastSecondRequest) (*DomainInspector, *http.Response, error) +} + +// DomainInspectorRealtimeAPIService DomainInspectorRealtimeAPI service +type DomainInspectorRealtimeAPIService service + +// APIGetDomainInspectorLast120SecondsRequest represents a request for the resource. +type APIGetDomainInspectorLast120SecondsRequest struct { + ctx context.Context + APIService DomainInspectorRealtimeAPI + serviceID string +} + + +// Execute calls the API using the request data configured. +func (r APIGetDomainInspectorLast120SecondsRequest) Execute() (*DomainInspector, *http.Response, error) { + return r.APIService.GetDomainInspectorLast120SecondsExecute(r) +} + +/* +GetDomainInspectorLast120Seconds Get real-time domain data for the last 120 seconds + +Get data for the 120 seconds preceding the latest timestamp available for a service. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @return APIGetDomainInspectorLast120SecondsRequest +*/ +func (a *DomainInspectorRealtimeAPIService) GetDomainInspectorLast120Seconds(ctx context.Context, serviceID string) APIGetDomainInspectorLast120SecondsRequest { + return APIGetDomainInspectorLast120SecondsRequest{ + APIService: a, + ctx: ctx, + serviceID: serviceID, + } +} + +// GetDomainInspectorLast120SecondsExecute executes the request +// @return DomainInspector +func (a *DomainInspectorRealtimeAPIService) GetDomainInspectorLast120SecondsExecute(r APIGetDomainInspectorLast120SecondsRequest) (*DomainInspector, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody any + formFiles []formFile + localVarReturnValue *DomainInspector + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DomainInspectorRealtimeAPIService.GetDomainInspectorLast120Seconds") + if err != nil { + return localVarReturnValue, nil, &GenericAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v1/domains/{service_id}/ts/h" + localVarPath = strings.ReplaceAll(localVarPath, "{"+"service_id"+"}", gourl.PathEscape(parameterToString(r.serviceID, ""))) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := gourl.Values{} + localVarFormParams := gourl.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["token"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Fastly-Key"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + _ = localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + + if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { + if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { + if i, err := strconv.Atoi(remaining); err == nil { + a.client.RateLimitRemaining = i + } + } + if reset := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Reset"); reset != "" { + if i, err := strconv.Atoi(reset); err == nil { + a.client.RateLimitReset = i + } + } + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// APIGetDomainInspectorLastMaxEntriesRequest represents a request for the resource. +type APIGetDomainInspectorLastMaxEntriesRequest struct { + ctx context.Context + APIService DomainInspectorRealtimeAPI + serviceID string + maxEntries int32 +} + + +// Execute calls the API using the request data configured. +func (r APIGetDomainInspectorLastMaxEntriesRequest) Execute() (*DomainInspector, *http.Response, error) { + return r.APIService.GetDomainInspectorLastMaxEntriesExecute(r) +} + +/* +GetDomainInspectorLastMaxEntries Get a limited number of real-time domain data entries + +Get data for the `max_entries` seconds preceding the latest timestamp available for a service, up to a maximum of 120 entries. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param maxEntries Maximum number of results to show. + @return APIGetDomainInspectorLastMaxEntriesRequest +*/ +func (a *DomainInspectorRealtimeAPIService) GetDomainInspectorLastMaxEntries(ctx context.Context, serviceID string, maxEntries int32) APIGetDomainInspectorLastMaxEntriesRequest { + return APIGetDomainInspectorLastMaxEntriesRequest{ + APIService: a, + ctx: ctx, + serviceID: serviceID, + maxEntries: maxEntries, + } +} + +// GetDomainInspectorLastMaxEntriesExecute executes the request +// @return DomainInspector +func (a *DomainInspectorRealtimeAPIService) GetDomainInspectorLastMaxEntriesExecute(r APIGetDomainInspectorLastMaxEntriesRequest) (*DomainInspector, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody any + formFiles []formFile + localVarReturnValue *DomainInspector + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DomainInspectorRealtimeAPIService.GetDomainInspectorLastMaxEntries") + if err != nil { + return localVarReturnValue, nil, &GenericAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v1/domains/{service_id}/ts/h/limit/{max_entries}" + localVarPath = strings.ReplaceAll(localVarPath, "{"+"service_id"+"}", gourl.PathEscape(parameterToString(r.serviceID, ""))) + localVarPath = strings.ReplaceAll(localVarPath, "{"+"max_entries"+"}", gourl.PathEscape(parameterToString(r.maxEntries, ""))) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := gourl.Values{} + localVarFormParams := gourl.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["token"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Fastly-Key"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + _ = localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + + if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { + if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { + if i, err := strconv.Atoi(remaining); err == nil { + a.client.RateLimitRemaining = i + } + } + if reset := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Reset"); reset != "" { + if i, err := strconv.Atoi(reset); err == nil { + a.client.RateLimitReset = i + } + } + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// APIGetDomainInspectorLastSecondRequest represents a request for the resource. +type APIGetDomainInspectorLastSecondRequest struct { + ctx context.Context + APIService DomainInspectorRealtimeAPI + serviceID string + startTimestamp int32 +} + + +// Execute calls the API using the request data configured. +func (r APIGetDomainInspectorLastSecondRequest) Execute() (*DomainInspector, *http.Response, error) { + return r.APIService.GetDomainInspectorLastSecondExecute(r) +} + +/* +GetDomainInspectorLastSecond Get real-time domain data from a specified time + +Get real-time domain data for the specified reporting period. Specify `0` to get a single entry for the last complete second. The `Timestamp` field included in the response provides the time index of the latest entry in the dataset and can be provided as the `start_timestamp` of the next request for a seamless continuation of the dataset from one request to the next. +Due to processing latency, the earliest entry in the response dataset may be earlier than `start_timestamp` by the value of `AggregateDelay`. + + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param startTimestamp Timestamp in seconds (Unix epoch time). + @return APIGetDomainInspectorLastSecondRequest +*/ +func (a *DomainInspectorRealtimeAPIService) GetDomainInspectorLastSecond(ctx context.Context, serviceID string, startTimestamp int32) APIGetDomainInspectorLastSecondRequest { + return APIGetDomainInspectorLastSecondRequest{ + APIService: a, + ctx: ctx, + serviceID: serviceID, + startTimestamp: startTimestamp, + } +} + +// GetDomainInspectorLastSecondExecute executes the request +// @return DomainInspector +func (a *DomainInspectorRealtimeAPIService) GetDomainInspectorLastSecondExecute(r APIGetDomainInspectorLastSecondRequest) (*DomainInspector, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody any + formFiles []formFile + localVarReturnValue *DomainInspector + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DomainInspectorRealtimeAPIService.GetDomainInspectorLastSecond") + if err != nil { + return localVarReturnValue, nil, &GenericAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v1/domains/{service_id}/ts/{start_timestamp}" + localVarPath = strings.ReplaceAll(localVarPath, "{"+"service_id"+"}", gourl.PathEscape(parameterToString(r.serviceID, ""))) + localVarPath = strings.ReplaceAll(localVarPath, "{"+"start_timestamp"+"}", gourl.PathEscape(parameterToString(r.startTimestamp, ""))) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := gourl.Values{} + localVarFormParams := gourl.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["token"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Fastly-Key"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + _ = localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + + if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { + if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { + if i, err := strconv.Atoi(remaining); err == nil { + a.client.RateLimitRemaining = i + } + } + if reset := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Reset"); reset != "" { + if i, err := strconv.Atoi(reset); err == nil { + a.client.RateLimitReset = i + } + } + } + + return localVarReturnValue, localVarHTTPResponse, nil +} diff --git a/fastly/api_iam_roles.go b/fastly/api_iam_roles.go index 35384a37..44355614 100644 --- a/fastly/api_iam_roles.go +++ b/fastly/api_iam_roles.go @@ -31,6 +31,35 @@ var ( // IamRolesAPI defines an interface for interacting with the resource. type IamRolesAPI interface { + /* + AddRolePermissions Add permissions to a role + + Add permissions to a role. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param roleID Alphanumeric string identifying the role. + @return APIAddRolePermissionsRequest + */ + AddRolePermissions(ctx context.Context, roleID string) APIAddRolePermissionsRequest + + // AddRolePermissionsExecute executes the request + // @return map[string]any + AddRolePermissionsExecute(r APIAddRolePermissionsRequest) (map[string]any, *http.Response, error) + + /* + CreateARole Create a role + + Create a role. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return APICreateARoleRequest + */ + CreateARole(ctx context.Context) APICreateARoleRequest + + // CreateARoleExecute executes the request + // @return map[string]any + CreateARoleExecute(r APICreateARoleRequest) (map[string]any, *http.Response, error) + /* DeleteARole Delete a role @@ -88,11 +117,320 @@ type IamRolesAPI interface { // ListRolesExecute executes the request // @return map[string]any ListRolesExecute(r APIListRolesRequest) (map[string]any, *http.Response, error) + + /* + RemoveRolePermissions Remove permissions from a role + + Remove permissions from a role. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param roleID Alphanumeric string identifying the role. + @return APIRemoveRolePermissionsRequest + */ + RemoveRolePermissions(ctx context.Context, roleID string) APIRemoveRolePermissionsRequest + + // RemoveRolePermissionsExecute executes the request + RemoveRolePermissionsExecute(r APIRemoveRolePermissionsRequest) (*http.Response, error) + + /* + UpdateARole Update a role + + Update a role. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param roleID Alphanumeric string identifying the role. + @return APIUpdateARoleRequest + */ + UpdateARole(ctx context.Context, roleID string) APIUpdateARoleRequest + + // UpdateARoleExecute executes the request + // @return map[string]any + UpdateARoleExecute(r APIUpdateARoleRequest) (map[string]any, *http.Response, error) } // IamRolesAPIService IamRolesAPI service type IamRolesAPIService service +// APIAddRolePermissionsRequest represents a request for the resource. +type APIAddRolePermissionsRequest struct { + ctx context.Context + APIService IamRolesAPI + roleID string + requestBody *map[string]map[string]any +} + +// RequestBody returns a pointer to a request. +func (r *APIAddRolePermissionsRequest) RequestBody(requestBody map[string]map[string]any) *APIAddRolePermissionsRequest { + r.requestBody = &requestBody + return r +} + +// Execute calls the API using the request data configured. +func (r APIAddRolePermissionsRequest) Execute() (map[string]any, *http.Response, error) { + return r.APIService.AddRolePermissionsExecute(r) +} + +/* +AddRolePermissions Add permissions to a role + +Add permissions to a role. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param roleID Alphanumeric string identifying the role. + @return APIAddRolePermissionsRequest +*/ +func (a *IamRolesAPIService) AddRolePermissions(ctx context.Context, roleID string) APIAddRolePermissionsRequest { + return APIAddRolePermissionsRequest{ + APIService: a, + ctx: ctx, + roleID: roleID, + } +} + +// AddRolePermissionsExecute executes the request +// @return map[string]any +func (a *IamRolesAPIService) AddRolePermissionsExecute(r APIAddRolePermissionsRequest) (map[string]any, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody any + formFiles []formFile + localVarReturnValue map[string]any + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IamRolesAPIService.AddRolePermissions") + if err != nil { + return localVarReturnValue, nil, &GenericAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/roles/{role_id}/permissions" + localVarPath = strings.ReplaceAll(localVarPath, "{"+"role_id"+"}", gourl.PathEscape(parameterToString(r.roleID, ""))) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := gourl.Values{} + localVarFormParams := gourl.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.requestBody + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["token"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Fastly-Key"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + _ = localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + + if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { + if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { + if i, err := strconv.Atoi(remaining); err == nil { + a.client.RateLimitRemaining = i + } + } + if reset := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Reset"); reset != "" { + if i, err := strconv.Atoi(reset); err == nil { + a.client.RateLimitReset = i + } + } + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// APICreateARoleRequest represents a request for the resource. +type APICreateARoleRequest struct { + ctx context.Context + APIService IamRolesAPI + requestBody *map[string]map[string]any +} + +// RequestBody returns a pointer to a request. +func (r *APICreateARoleRequest) RequestBody(requestBody map[string]map[string]any) *APICreateARoleRequest { + r.requestBody = &requestBody + return r +} + +// Execute calls the API using the request data configured. +func (r APICreateARoleRequest) Execute() (map[string]any, *http.Response, error) { + return r.APIService.CreateARoleExecute(r) +} + +/* +CreateARole Create a role + +Create a role. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return APICreateARoleRequest +*/ +func (a *IamRolesAPIService) CreateARole(ctx context.Context) APICreateARoleRequest { + return APICreateARoleRequest{ + APIService: a, + ctx: ctx, + } +} + +// CreateARoleExecute executes the request +// @return map[string]any +func (a *IamRolesAPIService) CreateARoleExecute(r APICreateARoleRequest) (map[string]any, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody any + formFiles []formFile + localVarReturnValue map[string]any + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IamRolesAPIService.CreateARole") + if err != nil { + return localVarReturnValue, nil, &GenericAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/roles" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := gourl.Values{} + localVarFormParams := gourl.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.requestBody + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["token"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Fastly-Key"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + _ = localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + + if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { + if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { + if i, err := strconv.Atoi(remaining); err == nil { + a.client.RateLimitRemaining = i + } + } + if reset := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Reset"); reset != "" { + if i, err := strconv.Atoi(reset); err == nil { + a.client.RateLimitReset = i + } + } + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + // APIDeleteARoleRequest represents a request for the resource. type APIDeleteARoleRequest struct { ctx context.Context @@ -616,6 +954,279 @@ func (a *IamRolesAPIService) ListRolesExecute(r APIListRolesRequest) (map[string } + if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { + if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { + if i, err := strconv.Atoi(remaining); err == nil { + a.client.RateLimitRemaining = i + } + } + if reset := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Reset"); reset != "" { + if i, err := strconv.Atoi(reset); err == nil { + a.client.RateLimitReset = i + } + } + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// APIRemoveRolePermissionsRequest represents a request for the resource. +type APIRemoveRolePermissionsRequest struct { + ctx context.Context + APIService IamRolesAPI + roleID string + requestBody *map[string]map[string]any +} + +// RequestBody returns a pointer to a request. +func (r *APIRemoveRolePermissionsRequest) RequestBody(requestBody map[string]map[string]any) *APIRemoveRolePermissionsRequest { + r.requestBody = &requestBody + return r +} + +// Execute calls the API using the request data configured. +func (r APIRemoveRolePermissionsRequest) Execute() (*http.Response, error) { + return r.APIService.RemoveRolePermissionsExecute(r) +} + +/* +RemoveRolePermissions Remove permissions from a role + +Remove permissions from a role. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param roleID Alphanumeric string identifying the role. + @return APIRemoveRolePermissionsRequest +*/ +func (a *IamRolesAPIService) RemoveRolePermissions(ctx context.Context, roleID string) APIRemoveRolePermissionsRequest { + return APIRemoveRolePermissionsRequest{ + APIService: a, + ctx: ctx, + roleID: roleID, + } +} + +// RemoveRolePermissionsExecute executes the request +func (a *IamRolesAPIService) RemoveRolePermissionsExecute(r APIRemoveRolePermissionsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody any + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IamRolesAPIService.RemoveRolePermissions") + if err != nil { + return nil, &GenericAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/roles/{role_id}/permissions" + localVarPath = strings.ReplaceAll(localVarPath, "{"+"role_id"+"}", gourl.PathEscape(parameterToString(r.roleID, ""))) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := gourl.Values{} + localVarFormParams := gourl.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.requestBody + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["token"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Fastly-Key"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + _ = localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + + if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { + if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { + if i, err := strconv.Atoi(remaining); err == nil { + a.client.RateLimitRemaining = i + } + } + if reset := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Reset"); reset != "" { + if i, err := strconv.Atoi(reset); err == nil { + a.client.RateLimitReset = i + } + } + } + + return localVarHTTPResponse, nil +} + +// APIUpdateARoleRequest represents a request for the resource. +type APIUpdateARoleRequest struct { + ctx context.Context + APIService IamRolesAPI + roleID string + requestBody *map[string]map[string]any +} + +// RequestBody returns a pointer to a request. +func (r *APIUpdateARoleRequest) RequestBody(requestBody map[string]map[string]any) *APIUpdateARoleRequest { + r.requestBody = &requestBody + return r +} + +// Execute calls the API using the request data configured. +func (r APIUpdateARoleRequest) Execute() (map[string]any, *http.Response, error) { + return r.APIService.UpdateARoleExecute(r) +} + +/* +UpdateARole Update a role + +Update a role. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param roleID Alphanumeric string identifying the role. + @return APIUpdateARoleRequest +*/ +func (a *IamRolesAPIService) UpdateARole(ctx context.Context, roleID string) APIUpdateARoleRequest { + return APIUpdateARoleRequest{ + APIService: a, + ctx: ctx, + roleID: roleID, + } +} + +// UpdateARoleExecute executes the request +// @return map[string]any +func (a *IamRolesAPIService) UpdateARoleExecute(r APIUpdateARoleRequest) (map[string]any, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody any + formFiles []formFile + localVarReturnValue map[string]any + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IamRolesAPIService.UpdateARole") + if err != nil { + return localVarReturnValue, nil, &GenericAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/roles/{role_id}" + localVarPath = strings.ReplaceAll(localVarPath, "{"+"role_id"+"}", gourl.PathEscape(parameterToString(r.roleID, ""))) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := gourl.Values{} + localVarFormParams := gourl.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.requestBody + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["token"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Fastly-Key"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + _ = localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { diff --git a/fastly/api_iam_service_groups.go b/fastly/api_iam_service_groups.go index ec721451..9b7eb2af 100644 --- a/fastly/api_iam_service_groups.go +++ b/fastly/api_iam_service_groups.go @@ -31,6 +31,35 @@ var ( // IamServiceGroupsAPI defines an interface for interacting with the resource. type IamServiceGroupsAPI interface { + /* + AddServiceGroupServices Add services in a service group + + Add services in a service group. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceGroupID Alphanumeric string identifying the service group. + @return APIAddServiceGroupServicesRequest + */ + AddServiceGroupServices(ctx context.Context, serviceGroupID string) APIAddServiceGroupServicesRequest + + // AddServiceGroupServicesExecute executes the request + // @return map[string]any + AddServiceGroupServicesExecute(r APIAddServiceGroupServicesRequest) (map[string]any, *http.Response, error) + + /* + CreateAServiceGroup Create a service group + + Create a service group. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return APICreateAServiceGroupRequest + */ + CreateAServiceGroup(ctx context.Context) APICreateAServiceGroupRequest + + // CreateAServiceGroupExecute executes the request + // @return map[string]any + CreateAServiceGroupExecute(r APICreateAServiceGroupRequest) (map[string]any, *http.Response, error) + /* DeleteAServiceGroup Delete a service group @@ -88,11 +117,320 @@ type IamServiceGroupsAPI interface { // ListServiceGroupsExecute executes the request // @return map[string]any ListServiceGroupsExecute(r APIListServiceGroupsRequest) (map[string]any, *http.Response, error) + + /* + RemoveServiceGroupServices Remove services from a service group + + Remove services from a service group. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceGroupID Alphanumeric string identifying the service group. + @return APIRemoveServiceGroupServicesRequest + */ + RemoveServiceGroupServices(ctx context.Context, serviceGroupID string) APIRemoveServiceGroupServicesRequest + + // RemoveServiceGroupServicesExecute executes the request + RemoveServiceGroupServicesExecute(r APIRemoveServiceGroupServicesRequest) (*http.Response, error) + + /* + UpdateAServiceGroup Update a service group + + Update a service group. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceGroupID Alphanumeric string identifying the service group. + @return APIUpdateAServiceGroupRequest + */ + UpdateAServiceGroup(ctx context.Context, serviceGroupID string) APIUpdateAServiceGroupRequest + + // UpdateAServiceGroupExecute executes the request + // @return map[string]any + UpdateAServiceGroupExecute(r APIUpdateAServiceGroupRequest) (map[string]any, *http.Response, error) } // IamServiceGroupsAPIService IamServiceGroupsAPI service type IamServiceGroupsAPIService service +// APIAddServiceGroupServicesRequest represents a request for the resource. +type APIAddServiceGroupServicesRequest struct { + ctx context.Context + APIService IamServiceGroupsAPI + serviceGroupID string + requestBody *map[string]map[string]any +} + +// RequestBody returns a pointer to a request. +func (r *APIAddServiceGroupServicesRequest) RequestBody(requestBody map[string]map[string]any) *APIAddServiceGroupServicesRequest { + r.requestBody = &requestBody + return r +} + +// Execute calls the API using the request data configured. +func (r APIAddServiceGroupServicesRequest) Execute() (map[string]any, *http.Response, error) { + return r.APIService.AddServiceGroupServicesExecute(r) +} + +/* +AddServiceGroupServices Add services in a service group + +Add services in a service group. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceGroupID Alphanumeric string identifying the service group. + @return APIAddServiceGroupServicesRequest +*/ +func (a *IamServiceGroupsAPIService) AddServiceGroupServices(ctx context.Context, serviceGroupID string) APIAddServiceGroupServicesRequest { + return APIAddServiceGroupServicesRequest{ + APIService: a, + ctx: ctx, + serviceGroupID: serviceGroupID, + } +} + +// AddServiceGroupServicesExecute executes the request +// @return map[string]any +func (a *IamServiceGroupsAPIService) AddServiceGroupServicesExecute(r APIAddServiceGroupServicesRequest) (map[string]any, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody any + formFiles []formFile + localVarReturnValue map[string]any + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IamServiceGroupsAPIService.AddServiceGroupServices") + if err != nil { + return localVarReturnValue, nil, &GenericAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/service-groups/{service_group_id}/services" + localVarPath = strings.ReplaceAll(localVarPath, "{"+"service_group_id"+"}", gourl.PathEscape(parameterToString(r.serviceGroupID, ""))) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := gourl.Values{} + localVarFormParams := gourl.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.requestBody + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["token"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Fastly-Key"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + _ = localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + + if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { + if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { + if i, err := strconv.Atoi(remaining); err == nil { + a.client.RateLimitRemaining = i + } + } + if reset := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Reset"); reset != "" { + if i, err := strconv.Atoi(reset); err == nil { + a.client.RateLimitReset = i + } + } + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// APICreateAServiceGroupRequest represents a request for the resource. +type APICreateAServiceGroupRequest struct { + ctx context.Context + APIService IamServiceGroupsAPI + requestBody *map[string]map[string]any +} + +// RequestBody returns a pointer to a request. +func (r *APICreateAServiceGroupRequest) RequestBody(requestBody map[string]map[string]any) *APICreateAServiceGroupRequest { + r.requestBody = &requestBody + return r +} + +// Execute calls the API using the request data configured. +func (r APICreateAServiceGroupRequest) Execute() (map[string]any, *http.Response, error) { + return r.APIService.CreateAServiceGroupExecute(r) +} + +/* +CreateAServiceGroup Create a service group + +Create a service group. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return APICreateAServiceGroupRequest +*/ +func (a *IamServiceGroupsAPIService) CreateAServiceGroup(ctx context.Context) APICreateAServiceGroupRequest { + return APICreateAServiceGroupRequest{ + APIService: a, + ctx: ctx, + } +} + +// CreateAServiceGroupExecute executes the request +// @return map[string]any +func (a *IamServiceGroupsAPIService) CreateAServiceGroupExecute(r APICreateAServiceGroupRequest) (map[string]any, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody any + formFiles []formFile + localVarReturnValue map[string]any + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IamServiceGroupsAPIService.CreateAServiceGroup") + if err != nil { + return localVarReturnValue, nil, &GenericAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/service-groups" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := gourl.Values{} + localVarFormParams := gourl.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.requestBody + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["token"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Fastly-Key"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + _ = localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + + if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { + if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { + if i, err := strconv.Atoi(remaining); err == nil { + a.client.RateLimitRemaining = i + } + } + if reset := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Reset"); reset != "" { + if i, err := strconv.Atoi(reset); err == nil { + a.client.RateLimitReset = i + } + } + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + // APIDeleteAServiceGroupRequest represents a request for the resource. type APIDeleteAServiceGroupRequest struct { ctx context.Context @@ -634,6 +972,279 @@ func (a *IamServiceGroupsAPIService) ListServiceGroupsExecute(r APIListServiceGr } + if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { + if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { + if i, err := strconv.Atoi(remaining); err == nil { + a.client.RateLimitRemaining = i + } + } + if reset := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Reset"); reset != "" { + if i, err := strconv.Atoi(reset); err == nil { + a.client.RateLimitReset = i + } + } + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// APIRemoveServiceGroupServicesRequest represents a request for the resource. +type APIRemoveServiceGroupServicesRequest struct { + ctx context.Context + APIService IamServiceGroupsAPI + serviceGroupID string + requestBody *map[string]map[string]any +} + +// RequestBody returns a pointer to a request. +func (r *APIRemoveServiceGroupServicesRequest) RequestBody(requestBody map[string]map[string]any) *APIRemoveServiceGroupServicesRequest { + r.requestBody = &requestBody + return r +} + +// Execute calls the API using the request data configured. +func (r APIRemoveServiceGroupServicesRequest) Execute() (*http.Response, error) { + return r.APIService.RemoveServiceGroupServicesExecute(r) +} + +/* +RemoveServiceGroupServices Remove services from a service group + +Remove services from a service group. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceGroupID Alphanumeric string identifying the service group. + @return APIRemoveServiceGroupServicesRequest +*/ +func (a *IamServiceGroupsAPIService) RemoveServiceGroupServices(ctx context.Context, serviceGroupID string) APIRemoveServiceGroupServicesRequest { + return APIRemoveServiceGroupServicesRequest{ + APIService: a, + ctx: ctx, + serviceGroupID: serviceGroupID, + } +} + +// RemoveServiceGroupServicesExecute executes the request +func (a *IamServiceGroupsAPIService) RemoveServiceGroupServicesExecute(r APIRemoveServiceGroupServicesRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody any + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IamServiceGroupsAPIService.RemoveServiceGroupServices") + if err != nil { + return nil, &GenericAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/service-groups/{service_group_id}/services" + localVarPath = strings.ReplaceAll(localVarPath, "{"+"service_group_id"+"}", gourl.PathEscape(parameterToString(r.serviceGroupID, ""))) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := gourl.Values{} + localVarFormParams := gourl.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.requestBody + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["token"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Fastly-Key"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + _ = localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + + if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { + if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { + if i, err := strconv.Atoi(remaining); err == nil { + a.client.RateLimitRemaining = i + } + } + if reset := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Reset"); reset != "" { + if i, err := strconv.Atoi(reset); err == nil { + a.client.RateLimitReset = i + } + } + } + + return localVarHTTPResponse, nil +} + +// APIUpdateAServiceGroupRequest represents a request for the resource. +type APIUpdateAServiceGroupRequest struct { + ctx context.Context + APIService IamServiceGroupsAPI + serviceGroupID string + requestBody *map[string]map[string]any +} + +// RequestBody returns a pointer to a request. +func (r *APIUpdateAServiceGroupRequest) RequestBody(requestBody map[string]map[string]any) *APIUpdateAServiceGroupRequest { + r.requestBody = &requestBody + return r +} + +// Execute calls the API using the request data configured. +func (r APIUpdateAServiceGroupRequest) Execute() (map[string]any, *http.Response, error) { + return r.APIService.UpdateAServiceGroupExecute(r) +} + +/* +UpdateAServiceGroup Update a service group + +Update a service group. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceGroupID Alphanumeric string identifying the service group. + @return APIUpdateAServiceGroupRequest +*/ +func (a *IamServiceGroupsAPIService) UpdateAServiceGroup(ctx context.Context, serviceGroupID string) APIUpdateAServiceGroupRequest { + return APIUpdateAServiceGroupRequest{ + APIService: a, + ctx: ctx, + serviceGroupID: serviceGroupID, + } +} + +// UpdateAServiceGroupExecute executes the request +// @return map[string]any +func (a *IamServiceGroupsAPIService) UpdateAServiceGroupExecute(r APIUpdateAServiceGroupRequest) (map[string]any, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody any + formFiles []formFile + localVarReturnValue map[string]any + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IamServiceGroupsAPIService.UpdateAServiceGroup") + if err != nil { + return localVarReturnValue, nil, &GenericAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/service-groups/{service_group_id}" + localVarPath = strings.ReplaceAll(localVarPath, "{"+"service_group_id"+"}", gourl.PathEscape(parameterToString(r.serviceGroupID, ""))) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := gourl.Values{} + localVarFormParams := gourl.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.requestBody + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["token"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Fastly-Key"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + _ = localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { diff --git a/fastly/api_iam_user_groups.go b/fastly/api_iam_user_groups.go index 72df5c0e..bcadcabb 100644 --- a/fastly/api_iam_user_groups.go +++ b/fastly/api_iam_user_groups.go @@ -31,6 +31,65 @@ var ( // IamUserGroupsAPI defines an interface for interacting with the resource. type IamUserGroupsAPI interface { + /* + AddUserGroupMembers Add members to a user group + + Add members to a user group. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param userGroupID Alphanumeric string identifying the user group. + @return APIAddUserGroupMembersRequest + */ + AddUserGroupMembers(ctx context.Context, userGroupID string) APIAddUserGroupMembersRequest + + // AddUserGroupMembersExecute executes the request + // @return map[string]any + AddUserGroupMembersExecute(r APIAddUserGroupMembersRequest) (map[string]any, *http.Response, error) + + /* + AddUserGroupRoles Add roles to a user group + + Add roles to a user group. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param userGroupID Alphanumeric string identifying the user group. + @return APIAddUserGroupRolesRequest + */ + AddUserGroupRoles(ctx context.Context, userGroupID string) APIAddUserGroupRolesRequest + + // AddUserGroupRolesExecute executes the request + // @return map[string]any + AddUserGroupRolesExecute(r APIAddUserGroupRolesRequest) (map[string]any, *http.Response, error) + + /* + AddUserGroupServiceGroups Add service groups to a user group + + Add service groups to a user group. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param userGroupID Alphanumeric string identifying the user group. + @return APIAddUserGroupServiceGroupsRequest + */ + AddUserGroupServiceGroups(ctx context.Context, userGroupID string) APIAddUserGroupServiceGroupsRequest + + // AddUserGroupServiceGroupsExecute executes the request + // @return map[string]any + AddUserGroupServiceGroupsExecute(r APIAddUserGroupServiceGroupsRequest) (map[string]any, *http.Response, error) + + /* + CreateAUserGroup Create a user group + + Create a user group. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return APICreateAUserGroupRequest + */ + CreateAUserGroup(ctx context.Context) APICreateAUserGroupRequest + + // CreateAUserGroupExecute executes the request + // @return map[string]any + CreateAUserGroupExecute(r APICreateAUserGroupRequest) (map[string]any, *http.Response, error) + /* DeleteAUserGroup Delete a user group @@ -118,55 +177,120 @@ type IamUserGroupsAPI interface { // ListUserGroupsExecute executes the request // @return map[string]any ListUserGroupsExecute(r APIListUserGroupsRequest) (map[string]any, *http.Response, error) + + /* + RemoveUserGroupMembers Remove members of a user group + + Remove members of a user group + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param userGroupID Alphanumeric string identifying the user group. + @return APIRemoveUserGroupMembersRequest + */ + RemoveUserGroupMembers(ctx context.Context, userGroupID string) APIRemoveUserGroupMembersRequest + + // RemoveUserGroupMembersExecute executes the request + RemoveUserGroupMembersExecute(r APIRemoveUserGroupMembersRequest) (*http.Response, error) + + /* + RemoveUserGroupRoles Remove roles from a user group + + Remove roles from a user group. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param userGroupID Alphanumeric string identifying the user group. + @return APIRemoveUserGroupRolesRequest + */ + RemoveUserGroupRoles(ctx context.Context, userGroupID string) APIRemoveUserGroupRolesRequest + + // RemoveUserGroupRolesExecute executes the request + RemoveUserGroupRolesExecute(r APIRemoveUserGroupRolesRequest) (*http.Response, error) + + /* + RemoveUserGroupServiceGroups Remove service groups from a user group + + Remove service groups from a user group. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param userGroupID Alphanumeric string identifying the user group. + @return APIRemoveUserGroupServiceGroupsRequest + */ + RemoveUserGroupServiceGroups(ctx context.Context, userGroupID string) APIRemoveUserGroupServiceGroupsRequest + + // RemoveUserGroupServiceGroupsExecute executes the request + RemoveUserGroupServiceGroupsExecute(r APIRemoveUserGroupServiceGroupsRequest) (*http.Response, error) + + /* + UpdateAUserGroup Update a user group + + Update a user group. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param userGroupID Alphanumeric string identifying the user group. + @return APIUpdateAUserGroupRequest + */ + UpdateAUserGroup(ctx context.Context, userGroupID string) APIUpdateAUserGroupRequest + + // UpdateAUserGroupExecute executes the request + // @return map[string]any + UpdateAUserGroupExecute(r APIUpdateAUserGroupRequest) (map[string]any, *http.Response, error) } // IamUserGroupsAPIService IamUserGroupsAPI service type IamUserGroupsAPIService service -// APIDeleteAUserGroupRequest represents a request for the resource. -type APIDeleteAUserGroupRequest struct { +// APIAddUserGroupMembersRequest represents a request for the resource. +type APIAddUserGroupMembersRequest struct { ctx context.Context APIService IamUserGroupsAPI userGroupID string + requestBody *map[string]map[string]any } +// RequestBody returns a pointer to a request. +func (r *APIAddUserGroupMembersRequest) RequestBody(requestBody map[string]map[string]any) *APIAddUserGroupMembersRequest { + r.requestBody = &requestBody + return r +} // Execute calls the API using the request data configured. -func (r APIDeleteAUserGroupRequest) Execute() (*http.Response, error) { - return r.APIService.DeleteAUserGroupExecute(r) +func (r APIAddUserGroupMembersRequest) Execute() (map[string]any, *http.Response, error) { + return r.APIService.AddUserGroupMembersExecute(r) } /* -DeleteAUserGroup Delete a user group +AddUserGroupMembers Add members to a user group -Delete a user group. +Add members to a user group. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param userGroupID Alphanumeric string identifying the user group. - @return APIDeleteAUserGroupRequest + @return APIAddUserGroupMembersRequest */ -func (a *IamUserGroupsAPIService) DeleteAUserGroup(ctx context.Context, userGroupID string) APIDeleteAUserGroupRequest { - return APIDeleteAUserGroupRequest{ +func (a *IamUserGroupsAPIService) AddUserGroupMembers(ctx context.Context, userGroupID string) APIAddUserGroupMembersRequest { + return APIAddUserGroupMembersRequest{ APIService: a, ctx: ctx, userGroupID: userGroupID, } } -// DeleteAUserGroupExecute executes the request -func (a *IamUserGroupsAPIService) DeleteAUserGroupExecute(r APIDeleteAUserGroupRequest) (*http.Response, error) { +// AddUserGroupMembersExecute executes the request +// @return map[string]any +func (a *IamUserGroupsAPIService) AddUserGroupMembersExecute(r APIAddUserGroupMembersRequest) (map[string]any, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete + localVarHTTPMethod = http.MethodPost localVarPostBody any formFiles []formFile + localVarReturnValue map[string]any ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IamUserGroupsAPIService.DeleteAUserGroup") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IamUserGroupsAPIService.AddUserGroupMembers") if err != nil { - return nil, &GenericAPIError{error: err.Error()} + return localVarReturnValue, nil, &GenericAPIError{error: err.Error()} } - localVarPath := localBasePath + "/user-groups/{user_group_id}" + localVarPath := localBasePath + "/user-groups/{user_group_id}/members" localVarPath = strings.ReplaceAll(localVarPath, "{"+"user_group_id"+"}", gourl.PathEscape(parameterToString(r.userGroupID, ""))) localVarHeaderParams := make(map[string]string) @@ -174,7 +298,7 @@ func (a *IamUserGroupsAPIService) DeleteAUserGroupExecute(r APIDeleteAUserGroupR localVarFormParams := gourl.Values{} // to determine the Content-Type header - localVarHTTPContentTypes := []string{} + localVarHTTPContentTypes := []string{"application/json"} // set Content-Type header localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) @@ -183,13 +307,15 @@ func (a *IamUserGroupsAPIService) DeleteAUserGroupExecute(r APIDeleteAUserGroupR } // to determine the Accept header - localVarHTTPHeaderAccepts := []string{} + localVarHTTPHeaderAccepts := []string{"application/json"} // set Accept header localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } + // body params + localVarPostBody = r.requestBody if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -206,19 +332,19 @@ func (a *IamUserGroupsAPIService) DeleteAUserGroupExecute(r APIDeleteAUserGroupR } req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { - return nil, err + return localVarReturnValue, nil, err } localVarHTTPResponse, err := a.client.callAPI(req) if err != nil || localVarHTTPResponse == nil { - return localVarHTTPResponse, err + return localVarReturnValue, localVarHTTPResponse, err } localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) _ = localVarHTTPResponse.Body.Close() localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { - return localVarHTTPResponse, err + return localVarReturnValue, localVarHTTPResponse, err } if localVarHTTPResponse.StatusCode >= 300 { @@ -226,7 +352,16 @@ func (a *IamUserGroupsAPIService) DeleteAUserGroupExecute(r APIDeleteAUserGroupR body: localVarBody, error: localVarHTTPResponse.Status, } - return localVarHTTPResponse, newErr + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr } @@ -243,55 +378,61 @@ func (a *IamUserGroupsAPIService) DeleteAUserGroupExecute(r APIDeleteAUserGroupR } } - return localVarHTTPResponse, nil + return localVarReturnValue, localVarHTTPResponse, nil } -// APIGetAUserGroupRequest represents a request for the resource. -type APIGetAUserGroupRequest struct { +// APIAddUserGroupRolesRequest represents a request for the resource. +type APIAddUserGroupRolesRequest struct { ctx context.Context APIService IamUserGroupsAPI userGroupID string + requestBody *map[string]map[string]any } +// RequestBody returns a pointer to a request. +func (r *APIAddUserGroupRolesRequest) RequestBody(requestBody map[string]map[string]any) *APIAddUserGroupRolesRequest { + r.requestBody = &requestBody + return r +} // Execute calls the API using the request data configured. -func (r APIGetAUserGroupRequest) Execute() (map[string]any, *http.Response, error) { - return r.APIService.GetAUserGroupExecute(r) +func (r APIAddUserGroupRolesRequest) Execute() (map[string]any, *http.Response, error) { + return r.APIService.AddUserGroupRolesExecute(r) } /* -GetAUserGroup Get a user group +AddUserGroupRoles Add roles to a user group -Get a user group. +Add roles to a user group. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param userGroupID Alphanumeric string identifying the user group. - @return APIGetAUserGroupRequest + @return APIAddUserGroupRolesRequest */ -func (a *IamUserGroupsAPIService) GetAUserGroup(ctx context.Context, userGroupID string) APIGetAUserGroupRequest { - return APIGetAUserGroupRequest{ +func (a *IamUserGroupsAPIService) AddUserGroupRoles(ctx context.Context, userGroupID string) APIAddUserGroupRolesRequest { + return APIAddUserGroupRolesRequest{ APIService: a, ctx: ctx, userGroupID: userGroupID, } } -// GetAUserGroupExecute executes the request +// AddUserGroupRolesExecute executes the request // @return map[string]any -func (a *IamUserGroupsAPIService) GetAUserGroupExecute(r APIGetAUserGroupRequest) (map[string]any, *http.Response, error) { +func (a *IamUserGroupsAPIService) AddUserGroupRolesExecute(r APIAddUserGroupRolesRequest) (map[string]any, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet + localVarHTTPMethod = http.MethodPost localVarPostBody any formFiles []formFile localVarReturnValue map[string]any ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IamUserGroupsAPIService.GetAUserGroup") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IamUserGroupsAPIService.AddUserGroupRoles") if err != nil { return localVarReturnValue, nil, &GenericAPIError{error: err.Error()} } - localVarPath := localBasePath + "/user-groups/{user_group_id}" + localVarPath := localBasePath + "/user-groups/{user_group_id}/roles" localVarPath = strings.ReplaceAll(localVarPath, "{"+"user_group_id"+"}", gourl.PathEscape(parameterToString(r.userGroupID, ""))) localVarHeaderParams := make(map[string]string) @@ -299,7 +440,7 @@ func (a *IamUserGroupsAPIService) GetAUserGroupExecute(r APIGetAUserGroupRequest localVarFormParams := gourl.Values{} // to determine the Content-Type header - localVarHTTPContentTypes := []string{} + localVarHTTPContentTypes := []string{"application/json"} // set Content-Type header localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) @@ -315,6 +456,8 @@ func (a *IamUserGroupsAPIService) GetAUserGroupExecute(r APIGetAUserGroupRequest if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } + // body params + localVarPostBody = r.requestBody if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -380,78 +523,66 @@ func (a *IamUserGroupsAPIService) GetAUserGroupExecute(r APIGetAUserGroupRequest return localVarReturnValue, localVarHTTPResponse, nil } -// APIListUserGroupMembersRequest represents a request for the resource. -type APIListUserGroupMembersRequest struct { +// APIAddUserGroupServiceGroupsRequest represents a request for the resource. +type APIAddUserGroupServiceGroupsRequest struct { ctx context.Context APIService IamUserGroupsAPI userGroupID string - perPage *int32 - page *int32 + requestBody *map[string]map[string]any } -// PerPage Number of records per page. -func (r *APIListUserGroupMembersRequest) PerPage(perPage int32) *APIListUserGroupMembersRequest { - r.perPage = &perPage - return r -} -// Page Current page. -func (r *APIListUserGroupMembersRequest) Page(page int32) *APIListUserGroupMembersRequest { - r.page = &page +// RequestBody returns a pointer to a request. +func (r *APIAddUserGroupServiceGroupsRequest) RequestBody(requestBody map[string]map[string]any) *APIAddUserGroupServiceGroupsRequest { + r.requestBody = &requestBody return r } // Execute calls the API using the request data configured. -func (r APIListUserGroupMembersRequest) Execute() (map[string]any, *http.Response, error) { - return r.APIService.ListUserGroupMembersExecute(r) +func (r APIAddUserGroupServiceGroupsRequest) Execute() (map[string]any, *http.Response, error) { + return r.APIService.AddUserGroupServiceGroupsExecute(r) } /* -ListUserGroupMembers List members of a user group +AddUserGroupServiceGroups Add service groups to a user group -List members of a user group. +Add service groups to a user group. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param userGroupID Alphanumeric string identifying the user group. - @return APIListUserGroupMembersRequest + @return APIAddUserGroupServiceGroupsRequest */ -func (a *IamUserGroupsAPIService) ListUserGroupMembers(ctx context.Context, userGroupID string) APIListUserGroupMembersRequest { - return APIListUserGroupMembersRequest{ +func (a *IamUserGroupsAPIService) AddUserGroupServiceGroups(ctx context.Context, userGroupID string) APIAddUserGroupServiceGroupsRequest { + return APIAddUserGroupServiceGroupsRequest{ APIService: a, ctx: ctx, userGroupID: userGroupID, } } -// ListUserGroupMembersExecute executes the request +// AddUserGroupServiceGroupsExecute executes the request // @return map[string]any -func (a *IamUserGroupsAPIService) ListUserGroupMembersExecute(r APIListUserGroupMembersRequest) (map[string]any, *http.Response, error) { +func (a *IamUserGroupsAPIService) AddUserGroupServiceGroupsExecute(r APIAddUserGroupServiceGroupsRequest) (map[string]any, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet + localVarHTTPMethod = http.MethodPost localVarPostBody any formFiles []formFile localVarReturnValue map[string]any ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IamUserGroupsAPIService.ListUserGroupMembers") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IamUserGroupsAPIService.AddUserGroupServiceGroups") if err != nil { return localVarReturnValue, nil, &GenericAPIError{error: err.Error()} } - localVarPath := localBasePath + "/user-groups/{user_group_id}/members" + localVarPath := localBasePath + "/user-groups/{user_group_id}/service-groups" localVarPath = strings.ReplaceAll(localVarPath, "{"+"user_group_id"+"}", gourl.PathEscape(parameterToString(r.userGroupID, ""))) localVarHeaderParams := make(map[string]string) localVarQueryParams := gourl.Values{} localVarFormParams := gourl.Values{} - if r.perPage != nil { - localVarQueryParams.Add("per_page", parameterToString(*r.perPage, "")) - } - if r.page != nil { - localVarQueryParams.Add("page", parameterToString(*r.page, "")) - } // to determine the Content-Type header - localVarHTTPContentTypes := []string{} + localVarHTTPContentTypes := []string{"application/json"} // set Content-Type header localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) @@ -467,6 +598,8 @@ func (a *IamUserGroupsAPIService) ListUserGroupMembersExecute(r APIListUserGroup if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } + // body params + localVarPostBody = r.requestBody if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -532,78 +665,62 @@ func (a *IamUserGroupsAPIService) ListUserGroupMembersExecute(r APIListUserGroup return localVarReturnValue, localVarHTTPResponse, nil } -// APIListUserGroupRolesRequest represents a request for the resource. -type APIListUserGroupRolesRequest struct { +// APICreateAUserGroupRequest represents a request for the resource. +type APICreateAUserGroupRequest struct { ctx context.Context APIService IamUserGroupsAPI - userGroupID string - perPage *int32 - page *int32 + requestBody *map[string]map[string]any } -// PerPage Number of records per page. -func (r *APIListUserGroupRolesRequest) PerPage(perPage int32) *APIListUserGroupRolesRequest { - r.perPage = &perPage - return r -} -// Page Current page. -func (r *APIListUserGroupRolesRequest) Page(page int32) *APIListUserGroupRolesRequest { - r.page = &page +// RequestBody returns a pointer to a request. +func (r *APICreateAUserGroupRequest) RequestBody(requestBody map[string]map[string]any) *APICreateAUserGroupRequest { + r.requestBody = &requestBody return r } // Execute calls the API using the request data configured. -func (r APIListUserGroupRolesRequest) Execute() (map[string]any, *http.Response, error) { - return r.APIService.ListUserGroupRolesExecute(r) +func (r APICreateAUserGroupRequest) Execute() (map[string]any, *http.Response, error) { + return r.APIService.CreateAUserGroupExecute(r) } /* -ListUserGroupRoles List roles in a user group +CreateAUserGroup Create a user group -List roles in a user group. +Create a user group. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param userGroupID Alphanumeric string identifying the user group. - @return APIListUserGroupRolesRequest + @return APICreateAUserGroupRequest */ -func (a *IamUserGroupsAPIService) ListUserGroupRoles(ctx context.Context, userGroupID string) APIListUserGroupRolesRequest { - return APIListUserGroupRolesRequest{ +func (a *IamUserGroupsAPIService) CreateAUserGroup(ctx context.Context) APICreateAUserGroupRequest { + return APICreateAUserGroupRequest{ APIService: a, ctx: ctx, - userGroupID: userGroupID, } } -// ListUserGroupRolesExecute executes the request +// CreateAUserGroupExecute executes the request // @return map[string]any -func (a *IamUserGroupsAPIService) ListUserGroupRolesExecute(r APIListUserGroupRolesRequest) (map[string]any, *http.Response, error) { +func (a *IamUserGroupsAPIService) CreateAUserGroupExecute(r APICreateAUserGroupRequest) (map[string]any, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet + localVarHTTPMethod = http.MethodPost localVarPostBody any formFiles []formFile localVarReturnValue map[string]any ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IamUserGroupsAPIService.ListUserGroupRoles") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IamUserGroupsAPIService.CreateAUserGroup") if err != nil { return localVarReturnValue, nil, &GenericAPIError{error: err.Error()} } - localVarPath := localBasePath + "/user-groups/{user_group_id}/roles" - localVarPath = strings.ReplaceAll(localVarPath, "{"+"user_group_id"+"}", gourl.PathEscape(parameterToString(r.userGroupID, ""))) + localVarPath := localBasePath + "/user-groups" localVarHeaderParams := make(map[string]string) localVarQueryParams := gourl.Values{} localVarFormParams := gourl.Values{} - if r.perPage != nil { - localVarQueryParams.Add("per_page", parameterToString(*r.perPage, "")) - } - if r.page != nil { - localVarQueryParams.Add("page", parameterToString(*r.page, "")) - } // to determine the Content-Type header - localVarHTTPContentTypes := []string{} + localVarHTTPContentTypes := []string{"application/json"} // set Content-Type header localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) @@ -619,6 +736,8 @@ func (a *IamUserGroupsAPIService) ListUserGroupRolesExecute(r APIListUserGroupRo if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } + // body params + localVarPostBody = r.requestBody if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -684,76 +803,56 @@ func (a *IamUserGroupsAPIService) ListUserGroupRolesExecute(r APIListUserGroupRo return localVarReturnValue, localVarHTTPResponse, nil } -// APIListUserGroupServiceGroupsRequest represents a request for the resource. -type APIListUserGroupServiceGroupsRequest struct { +// APIDeleteAUserGroupRequest represents a request for the resource. +type APIDeleteAUserGroupRequest struct { ctx context.Context APIService IamUserGroupsAPI userGroupID string - perPage *int32 - page *int32 } -// PerPage Number of records per page. -func (r *APIListUserGroupServiceGroupsRequest) PerPage(perPage int32) *APIListUserGroupServiceGroupsRequest { - r.perPage = &perPage - return r -} -// Page Current page. -func (r *APIListUserGroupServiceGroupsRequest) Page(page int32) *APIListUserGroupServiceGroupsRequest { - r.page = &page - return r -} // Execute calls the API using the request data configured. -func (r APIListUserGroupServiceGroupsRequest) Execute() (map[string]any, *http.Response, error) { - return r.APIService.ListUserGroupServiceGroupsExecute(r) +func (r APIDeleteAUserGroupRequest) Execute() (*http.Response, error) { + return r.APIService.DeleteAUserGroupExecute(r) } /* -ListUserGroupServiceGroups List service groups in a user group +DeleteAUserGroup Delete a user group -List service groups in a user group. +Delete a user group. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param userGroupID Alphanumeric string identifying the user group. - @return APIListUserGroupServiceGroupsRequest + @return APIDeleteAUserGroupRequest */ -func (a *IamUserGroupsAPIService) ListUserGroupServiceGroups(ctx context.Context, userGroupID string) APIListUserGroupServiceGroupsRequest { - return APIListUserGroupServiceGroupsRequest{ +func (a *IamUserGroupsAPIService) DeleteAUserGroup(ctx context.Context, userGroupID string) APIDeleteAUserGroupRequest { + return APIDeleteAUserGroupRequest{ APIService: a, ctx: ctx, userGroupID: userGroupID, } } -// ListUserGroupServiceGroupsExecute executes the request -// @return map[string]any -func (a *IamUserGroupsAPIService) ListUserGroupServiceGroupsExecute(r APIListUserGroupServiceGroupsRequest) (map[string]any, *http.Response, error) { +// DeleteAUserGroupExecute executes the request +func (a *IamUserGroupsAPIService) DeleteAUserGroupExecute(r APIDeleteAUserGroupRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet + localVarHTTPMethod = http.MethodDelete localVarPostBody any formFiles []formFile - localVarReturnValue map[string]any ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IamUserGroupsAPIService.ListUserGroupServiceGroups") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IamUserGroupsAPIService.DeleteAUserGroup") if err != nil { - return localVarReturnValue, nil, &GenericAPIError{error: err.Error()} + return nil, &GenericAPIError{error: err.Error()} } - localVarPath := localBasePath + "/user-groups/{user_group_id}/service-groups" + localVarPath := localBasePath + "/user-groups/{user_group_id}" localVarPath = strings.ReplaceAll(localVarPath, "{"+"user_group_id"+"}", gourl.PathEscape(parameterToString(r.userGroupID, ""))) localVarHeaderParams := make(map[string]string) localVarQueryParams := gourl.Values{} localVarFormParams := gourl.Values{} - if r.perPage != nil { - localVarQueryParams.Add("per_page", parameterToString(*r.perPage, "")) - } - if r.page != nil { - localVarQueryParams.Add("page", parameterToString(*r.page, "")) - } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -764,7 +863,7 @@ func (a *IamUserGroupsAPIService) ListUserGroupServiceGroupsExecute(r APIListUse } // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} + localVarHTTPHeaderAccepts := []string{} // set Accept header localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) @@ -787,19 +886,19 @@ func (a *IamUserGroupsAPIService) ListUserGroupServiceGroupsExecute(r APIListUse } req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { - return localVarReturnValue, nil, err + return nil, err } localVarHTTPResponse, err := a.client.callAPI(req) if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err + return localVarHTTPResponse, err } localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) _ = localVarHTTPResponse.Body.Close() localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { - return localVarReturnValue, localVarHTTPResponse, err + return localVarHTTPResponse, err } if localVarHTTPResponse.StatusCode >= 300 { @@ -807,7 +906,132 @@ func (a *IamUserGroupsAPIService) ListUserGroupServiceGroupsExecute(r APIListUse body: localVarBody, error: localVarHTTPResponse.Status, } - return localVarReturnValue, localVarHTTPResponse, newErr + return localVarHTTPResponse, newErr + } + + + if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { + if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { + if i, err := strconv.Atoi(remaining); err == nil { + a.client.RateLimitRemaining = i + } + } + if reset := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Reset"); reset != "" { + if i, err := strconv.Atoi(reset); err == nil { + a.client.RateLimitReset = i + } + } + } + + return localVarHTTPResponse, nil +} + +// APIGetAUserGroupRequest represents a request for the resource. +type APIGetAUserGroupRequest struct { + ctx context.Context + APIService IamUserGroupsAPI + userGroupID string +} + + +// Execute calls the API using the request data configured. +func (r APIGetAUserGroupRequest) Execute() (map[string]any, *http.Response, error) { + return r.APIService.GetAUserGroupExecute(r) +} + +/* +GetAUserGroup Get a user group + +Get a user group. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param userGroupID Alphanumeric string identifying the user group. + @return APIGetAUserGroupRequest +*/ +func (a *IamUserGroupsAPIService) GetAUserGroup(ctx context.Context, userGroupID string) APIGetAUserGroupRequest { + return APIGetAUserGroupRequest{ + APIService: a, + ctx: ctx, + userGroupID: userGroupID, + } +} + +// GetAUserGroupExecute executes the request +// @return map[string]any +func (a *IamUserGroupsAPIService) GetAUserGroupExecute(r APIGetAUserGroupRequest) (map[string]any, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody any + formFiles []formFile + localVarReturnValue map[string]any + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IamUserGroupsAPIService.GetAUserGroup") + if err != nil { + return localVarReturnValue, nil, &GenericAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/user-groups/{user_group_id}" + localVarPath = strings.ReplaceAll(localVarPath, "{"+"user_group_id"+"}", gourl.PathEscape(parameterToString(r.userGroupID, ""))) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := gourl.Values{} + localVarFormParams := gourl.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["token"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Fastly-Key"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + _ = localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr } err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) @@ -836,48 +1060,51 @@ func (a *IamUserGroupsAPIService) ListUserGroupServiceGroupsExecute(r APIListUse return localVarReturnValue, localVarHTTPResponse, nil } -// APIListUserGroupsRequest represents a request for the resource. -type APIListUserGroupsRequest struct { +// APIListUserGroupMembersRequest represents a request for the resource. +type APIListUserGroupMembersRequest struct { ctx context.Context APIService IamUserGroupsAPI + userGroupID string perPage *int32 page *int32 } // PerPage Number of records per page. -func (r *APIListUserGroupsRequest) PerPage(perPage int32) *APIListUserGroupsRequest { +func (r *APIListUserGroupMembersRequest) PerPage(perPage int32) *APIListUserGroupMembersRequest { r.perPage = &perPage return r } // Page Current page. -func (r *APIListUserGroupsRequest) Page(page int32) *APIListUserGroupsRequest { +func (r *APIListUserGroupMembersRequest) Page(page int32) *APIListUserGroupMembersRequest { r.page = &page return r } // Execute calls the API using the request data configured. -func (r APIListUserGroupsRequest) Execute() (map[string]any, *http.Response, error) { - return r.APIService.ListUserGroupsExecute(r) +func (r APIListUserGroupMembersRequest) Execute() (map[string]any, *http.Response, error) { + return r.APIService.ListUserGroupMembersExecute(r) } /* -ListUserGroups List user groups +ListUserGroupMembers List members of a user group -List all user groups. +List members of a user group. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return APIListUserGroupsRequest + @param userGroupID Alphanumeric string identifying the user group. + @return APIListUserGroupMembersRequest */ -func (a *IamUserGroupsAPIService) ListUserGroups(ctx context.Context) APIListUserGroupsRequest { - return APIListUserGroupsRequest{ +func (a *IamUserGroupsAPIService) ListUserGroupMembers(ctx context.Context, userGroupID string) APIListUserGroupMembersRequest { + return APIListUserGroupMembersRequest{ APIService: a, ctx: ctx, + userGroupID: userGroupID, } } -// ListUserGroupsExecute executes the request +// ListUserGroupMembersExecute executes the request // @return map[string]any -func (a *IamUserGroupsAPIService) ListUserGroupsExecute(r APIListUserGroupsRequest) (map[string]any, *http.Response, error) { +func (a *IamUserGroupsAPIService) ListUserGroupMembersExecute(r APIListUserGroupMembersRequest) (map[string]any, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody any @@ -885,12 +1112,13 @@ func (a *IamUserGroupsAPIService) ListUserGroupsExecute(r APIListUserGroupsReque localVarReturnValue map[string]any ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IamUserGroupsAPIService.ListUserGroups") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IamUserGroupsAPIService.ListUserGroupMembers") if err != nil { return localVarReturnValue, nil, &GenericAPIError{error: err.Error()} } - localVarPath := localBasePath + "/user-groups" + localVarPath := localBasePath + "/user-groups/{user_group_id}/members" + localVarPath = strings.ReplaceAll(localVarPath, "{"+"user_group_id"+"}", gourl.PathEscape(parameterToString(r.userGroupID, ""))) localVarHeaderParams := make(map[string]string) localVarQueryParams := gourl.Values{} @@ -968,6 +1196,993 @@ func (a *IamUserGroupsAPIService) ListUserGroupsExecute(r APIListUserGroupsReque } + if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { + if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { + if i, err := strconv.Atoi(remaining); err == nil { + a.client.RateLimitRemaining = i + } + } + if reset := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Reset"); reset != "" { + if i, err := strconv.Atoi(reset); err == nil { + a.client.RateLimitReset = i + } + } + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// APIListUserGroupRolesRequest represents a request for the resource. +type APIListUserGroupRolesRequest struct { + ctx context.Context + APIService IamUserGroupsAPI + userGroupID string + perPage *int32 + page *int32 +} + +// PerPage Number of records per page. +func (r *APIListUserGroupRolesRequest) PerPage(perPage int32) *APIListUserGroupRolesRequest { + r.perPage = &perPage + return r +} +// Page Current page. +func (r *APIListUserGroupRolesRequest) Page(page int32) *APIListUserGroupRolesRequest { + r.page = &page + return r +} + +// Execute calls the API using the request data configured. +func (r APIListUserGroupRolesRequest) Execute() (map[string]any, *http.Response, error) { + return r.APIService.ListUserGroupRolesExecute(r) +} + +/* +ListUserGroupRoles List roles in a user group + +List roles in a user group. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param userGroupID Alphanumeric string identifying the user group. + @return APIListUserGroupRolesRequest +*/ +func (a *IamUserGroupsAPIService) ListUserGroupRoles(ctx context.Context, userGroupID string) APIListUserGroupRolesRequest { + return APIListUserGroupRolesRequest{ + APIService: a, + ctx: ctx, + userGroupID: userGroupID, + } +} + +// ListUserGroupRolesExecute executes the request +// @return map[string]any +func (a *IamUserGroupsAPIService) ListUserGroupRolesExecute(r APIListUserGroupRolesRequest) (map[string]any, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody any + formFiles []formFile + localVarReturnValue map[string]any + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IamUserGroupsAPIService.ListUserGroupRoles") + if err != nil { + return localVarReturnValue, nil, &GenericAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/user-groups/{user_group_id}/roles" + localVarPath = strings.ReplaceAll(localVarPath, "{"+"user_group_id"+"}", gourl.PathEscape(parameterToString(r.userGroupID, ""))) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := gourl.Values{} + localVarFormParams := gourl.Values{} + + if r.perPage != nil { + localVarQueryParams.Add("per_page", parameterToString(*r.perPage, "")) + } + if r.page != nil { + localVarQueryParams.Add("page", parameterToString(*r.page, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["token"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Fastly-Key"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + _ = localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + + if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { + if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { + if i, err := strconv.Atoi(remaining); err == nil { + a.client.RateLimitRemaining = i + } + } + if reset := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Reset"); reset != "" { + if i, err := strconv.Atoi(reset); err == nil { + a.client.RateLimitReset = i + } + } + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// APIListUserGroupServiceGroupsRequest represents a request for the resource. +type APIListUserGroupServiceGroupsRequest struct { + ctx context.Context + APIService IamUserGroupsAPI + userGroupID string + perPage *int32 + page *int32 +} + +// PerPage Number of records per page. +func (r *APIListUserGroupServiceGroupsRequest) PerPage(perPage int32) *APIListUserGroupServiceGroupsRequest { + r.perPage = &perPage + return r +} +// Page Current page. +func (r *APIListUserGroupServiceGroupsRequest) Page(page int32) *APIListUserGroupServiceGroupsRequest { + r.page = &page + return r +} + +// Execute calls the API using the request data configured. +func (r APIListUserGroupServiceGroupsRequest) Execute() (map[string]any, *http.Response, error) { + return r.APIService.ListUserGroupServiceGroupsExecute(r) +} + +/* +ListUserGroupServiceGroups List service groups in a user group + +List service groups in a user group. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param userGroupID Alphanumeric string identifying the user group. + @return APIListUserGroupServiceGroupsRequest +*/ +func (a *IamUserGroupsAPIService) ListUserGroupServiceGroups(ctx context.Context, userGroupID string) APIListUserGroupServiceGroupsRequest { + return APIListUserGroupServiceGroupsRequest{ + APIService: a, + ctx: ctx, + userGroupID: userGroupID, + } +} + +// ListUserGroupServiceGroupsExecute executes the request +// @return map[string]any +func (a *IamUserGroupsAPIService) ListUserGroupServiceGroupsExecute(r APIListUserGroupServiceGroupsRequest) (map[string]any, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody any + formFiles []formFile + localVarReturnValue map[string]any + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IamUserGroupsAPIService.ListUserGroupServiceGroups") + if err != nil { + return localVarReturnValue, nil, &GenericAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/user-groups/{user_group_id}/service-groups" + localVarPath = strings.ReplaceAll(localVarPath, "{"+"user_group_id"+"}", gourl.PathEscape(parameterToString(r.userGroupID, ""))) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := gourl.Values{} + localVarFormParams := gourl.Values{} + + if r.perPage != nil { + localVarQueryParams.Add("per_page", parameterToString(*r.perPage, "")) + } + if r.page != nil { + localVarQueryParams.Add("page", parameterToString(*r.page, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["token"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Fastly-Key"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + _ = localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + + if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { + if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { + if i, err := strconv.Atoi(remaining); err == nil { + a.client.RateLimitRemaining = i + } + } + if reset := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Reset"); reset != "" { + if i, err := strconv.Atoi(reset); err == nil { + a.client.RateLimitReset = i + } + } + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// APIListUserGroupsRequest represents a request for the resource. +type APIListUserGroupsRequest struct { + ctx context.Context + APIService IamUserGroupsAPI + perPage *int32 + page *int32 +} + +// PerPage Number of records per page. +func (r *APIListUserGroupsRequest) PerPage(perPage int32) *APIListUserGroupsRequest { + r.perPage = &perPage + return r +} +// Page Current page. +func (r *APIListUserGroupsRequest) Page(page int32) *APIListUserGroupsRequest { + r.page = &page + return r +} + +// Execute calls the API using the request data configured. +func (r APIListUserGroupsRequest) Execute() (map[string]any, *http.Response, error) { + return r.APIService.ListUserGroupsExecute(r) +} + +/* +ListUserGroups List user groups + +List all user groups. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return APIListUserGroupsRequest +*/ +func (a *IamUserGroupsAPIService) ListUserGroups(ctx context.Context) APIListUserGroupsRequest { + return APIListUserGroupsRequest{ + APIService: a, + ctx: ctx, + } +} + +// ListUserGroupsExecute executes the request +// @return map[string]any +func (a *IamUserGroupsAPIService) ListUserGroupsExecute(r APIListUserGroupsRequest) (map[string]any, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody any + formFiles []formFile + localVarReturnValue map[string]any + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IamUserGroupsAPIService.ListUserGroups") + if err != nil { + return localVarReturnValue, nil, &GenericAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/user-groups" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := gourl.Values{} + localVarFormParams := gourl.Values{} + + if r.perPage != nil { + localVarQueryParams.Add("per_page", parameterToString(*r.perPage, "")) + } + if r.page != nil { + localVarQueryParams.Add("page", parameterToString(*r.page, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["token"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Fastly-Key"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + _ = localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + + if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { + if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { + if i, err := strconv.Atoi(remaining); err == nil { + a.client.RateLimitRemaining = i + } + } + if reset := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Reset"); reset != "" { + if i, err := strconv.Atoi(reset); err == nil { + a.client.RateLimitReset = i + } + } + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// APIRemoveUserGroupMembersRequest represents a request for the resource. +type APIRemoveUserGroupMembersRequest struct { + ctx context.Context + APIService IamUserGroupsAPI + userGroupID string + requestBody *map[string]map[string]any +} + +// RequestBody returns a pointer to a request. +func (r *APIRemoveUserGroupMembersRequest) RequestBody(requestBody map[string]map[string]any) *APIRemoveUserGroupMembersRequest { + r.requestBody = &requestBody + return r +} + +// Execute calls the API using the request data configured. +func (r APIRemoveUserGroupMembersRequest) Execute() (*http.Response, error) { + return r.APIService.RemoveUserGroupMembersExecute(r) +} + +/* +RemoveUserGroupMembers Remove members of a user group + +Remove members of a user group + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param userGroupID Alphanumeric string identifying the user group. + @return APIRemoveUserGroupMembersRequest +*/ +func (a *IamUserGroupsAPIService) RemoveUserGroupMembers(ctx context.Context, userGroupID string) APIRemoveUserGroupMembersRequest { + return APIRemoveUserGroupMembersRequest{ + APIService: a, + ctx: ctx, + userGroupID: userGroupID, + } +} + +// RemoveUserGroupMembersExecute executes the request +func (a *IamUserGroupsAPIService) RemoveUserGroupMembersExecute(r APIRemoveUserGroupMembersRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody any + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IamUserGroupsAPIService.RemoveUserGroupMembers") + if err != nil { + return nil, &GenericAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/user-groups/{user_group_id}/members" + localVarPath = strings.ReplaceAll(localVarPath, "{"+"user_group_id"+"}", gourl.PathEscape(parameterToString(r.userGroupID, ""))) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := gourl.Values{} + localVarFormParams := gourl.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.requestBody + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["token"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Fastly-Key"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + _ = localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + + if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { + if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { + if i, err := strconv.Atoi(remaining); err == nil { + a.client.RateLimitRemaining = i + } + } + if reset := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Reset"); reset != "" { + if i, err := strconv.Atoi(reset); err == nil { + a.client.RateLimitReset = i + } + } + } + + return localVarHTTPResponse, nil +} + +// APIRemoveUserGroupRolesRequest represents a request for the resource. +type APIRemoveUserGroupRolesRequest struct { + ctx context.Context + APIService IamUserGroupsAPI + userGroupID string + requestBody *map[string]map[string]any +} + +// RequestBody returns a pointer to a request. +func (r *APIRemoveUserGroupRolesRequest) RequestBody(requestBody map[string]map[string]any) *APIRemoveUserGroupRolesRequest { + r.requestBody = &requestBody + return r +} + +// Execute calls the API using the request data configured. +func (r APIRemoveUserGroupRolesRequest) Execute() (*http.Response, error) { + return r.APIService.RemoveUserGroupRolesExecute(r) +} + +/* +RemoveUserGroupRoles Remove roles from a user group + +Remove roles from a user group. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param userGroupID Alphanumeric string identifying the user group. + @return APIRemoveUserGroupRolesRequest +*/ +func (a *IamUserGroupsAPIService) RemoveUserGroupRoles(ctx context.Context, userGroupID string) APIRemoveUserGroupRolesRequest { + return APIRemoveUserGroupRolesRequest{ + APIService: a, + ctx: ctx, + userGroupID: userGroupID, + } +} + +// RemoveUserGroupRolesExecute executes the request +func (a *IamUserGroupsAPIService) RemoveUserGroupRolesExecute(r APIRemoveUserGroupRolesRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody any + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IamUserGroupsAPIService.RemoveUserGroupRoles") + if err != nil { + return nil, &GenericAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/user-groups/{user_group_id}/roles" + localVarPath = strings.ReplaceAll(localVarPath, "{"+"user_group_id"+"}", gourl.PathEscape(parameterToString(r.userGroupID, ""))) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := gourl.Values{} + localVarFormParams := gourl.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.requestBody + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["token"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Fastly-Key"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + _ = localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + + if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { + if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { + if i, err := strconv.Atoi(remaining); err == nil { + a.client.RateLimitRemaining = i + } + } + if reset := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Reset"); reset != "" { + if i, err := strconv.Atoi(reset); err == nil { + a.client.RateLimitReset = i + } + } + } + + return localVarHTTPResponse, nil +} + +// APIRemoveUserGroupServiceGroupsRequest represents a request for the resource. +type APIRemoveUserGroupServiceGroupsRequest struct { + ctx context.Context + APIService IamUserGroupsAPI + userGroupID string + requestBody *map[string]map[string]any +} + +// RequestBody returns a pointer to a request. +func (r *APIRemoveUserGroupServiceGroupsRequest) RequestBody(requestBody map[string]map[string]any) *APIRemoveUserGroupServiceGroupsRequest { + r.requestBody = &requestBody + return r +} + +// Execute calls the API using the request data configured. +func (r APIRemoveUserGroupServiceGroupsRequest) Execute() (*http.Response, error) { + return r.APIService.RemoveUserGroupServiceGroupsExecute(r) +} + +/* +RemoveUserGroupServiceGroups Remove service groups from a user group + +Remove service groups from a user group. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param userGroupID Alphanumeric string identifying the user group. + @return APIRemoveUserGroupServiceGroupsRequest +*/ +func (a *IamUserGroupsAPIService) RemoveUserGroupServiceGroups(ctx context.Context, userGroupID string) APIRemoveUserGroupServiceGroupsRequest { + return APIRemoveUserGroupServiceGroupsRequest{ + APIService: a, + ctx: ctx, + userGroupID: userGroupID, + } +} + +// RemoveUserGroupServiceGroupsExecute executes the request +func (a *IamUserGroupsAPIService) RemoveUserGroupServiceGroupsExecute(r APIRemoveUserGroupServiceGroupsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody any + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IamUserGroupsAPIService.RemoveUserGroupServiceGroups") + if err != nil { + return nil, &GenericAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/user-groups/{user_group_id}/service-groups" + localVarPath = strings.ReplaceAll(localVarPath, "{"+"user_group_id"+"}", gourl.PathEscape(parameterToString(r.userGroupID, ""))) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := gourl.Values{} + localVarFormParams := gourl.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.requestBody + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["token"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Fastly-Key"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + _ = localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + + if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { + if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { + if i, err := strconv.Atoi(remaining); err == nil { + a.client.RateLimitRemaining = i + } + } + if reset := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Reset"); reset != "" { + if i, err := strconv.Atoi(reset); err == nil { + a.client.RateLimitReset = i + } + } + } + + return localVarHTTPResponse, nil +} + +// APIUpdateAUserGroupRequest represents a request for the resource. +type APIUpdateAUserGroupRequest struct { + ctx context.Context + APIService IamUserGroupsAPI + userGroupID string + requestBody *map[string]map[string]any +} + +// RequestBody returns a pointer to a request. +func (r *APIUpdateAUserGroupRequest) RequestBody(requestBody map[string]map[string]any) *APIUpdateAUserGroupRequest { + r.requestBody = &requestBody + return r +} + +// Execute calls the API using the request data configured. +func (r APIUpdateAUserGroupRequest) Execute() (map[string]any, *http.Response, error) { + return r.APIService.UpdateAUserGroupExecute(r) +} + +/* +UpdateAUserGroup Update a user group + +Update a user group. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param userGroupID Alphanumeric string identifying the user group. + @return APIUpdateAUserGroupRequest +*/ +func (a *IamUserGroupsAPIService) UpdateAUserGroup(ctx context.Context, userGroupID string) APIUpdateAUserGroupRequest { + return APIUpdateAUserGroupRequest{ + APIService: a, + ctx: ctx, + userGroupID: userGroupID, + } +} + +// UpdateAUserGroupExecute executes the request +// @return map[string]any +func (a *IamUserGroupsAPIService) UpdateAUserGroupExecute(r APIUpdateAUserGroupRequest) (map[string]any, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody any + formFiles []formFile + localVarReturnValue map[string]any + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IamUserGroupsAPIService.UpdateAUserGroup") + if err != nil { + return localVarReturnValue, nil, &GenericAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/user-groups/{user_group_id}" + localVarPath = strings.ReplaceAll(localVarPath, "{"+"user_group_id"+"}", gourl.PathEscape(parameterToString(r.userGroupID, ""))) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := gourl.Values{} + localVarFormParams := gourl.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.requestBody + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["token"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Fastly-Key"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + _ = localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { diff --git a/fastly/api_legacy_waf_configuration_sets.go b/fastly/api_legacy_waf_configuration_sets.go new file mode 100644 index 00000000..cc0986c8 --- /dev/null +++ b/fastly/api_legacy_waf_configuration_sets.go @@ -0,0 +1,504 @@ +// Package fastly is an API client library for interacting with most facets of the Fastly API. +package fastly + +/* +Fastly API + +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://developer.fastly.com/reference/api/) + +API version: 1.0.0 +Contact: oss@fastly.com +*/ + +// This code is auto-generated; DO NOT EDIT. + + +import ( + "bytes" + "context" + "io/ioutil" + "net/http" + gourl "net/url" + "strconv" + "strings" +) + +// Linger please +var ( + _ context.Context +) + +// LegacyWafConfigurationSetsAPI defines an interface for interacting with the resource. +type LegacyWafConfigurationSetsAPI interface { + + /* + ListWafConfigSets List configuration sets + + List all Configuration sets. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return APIListWafConfigSetsRequest + + Deprecated + */ + ListWafConfigSets(ctx context.Context) APIListWafConfigSetsRequest + + // ListWafConfigSetsExecute executes the request + // @return map[string]any + // Deprecated + ListWafConfigSetsExecute(r APIListWafConfigSetsRequest) (map[string]any, *http.Response, error) + + /* + ListWafsConfigSet List WAFs currently using a configuration set + + List the WAF objects currently using the specified configuration set. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param configurationSetID Alphanumeric string identifying a WAF configuration set. + @return APIListWafsConfigSetRequest + + Deprecated + */ + ListWafsConfigSet(ctx context.Context, configurationSetID string) APIListWafsConfigSetRequest + + // ListWafsConfigSetExecute executes the request + // @return map[string]any + // Deprecated + ListWafsConfigSetExecute(r APIListWafsConfigSetRequest) (map[string]any, *http.Response, error) + + /* + UseWafConfigSet Apply a configuration set to a WAF + + Update one or more WAF objects to use the specified configuration set. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param configurationSetID Alphanumeric string identifying a WAF configuration set. + @return APIUseWafConfigSetRequest + + Deprecated + */ + UseWafConfigSet(ctx context.Context, configurationSetID string) APIUseWafConfigSetRequest + + // UseWafConfigSetExecute executes the request + // @return map[string]any + // Deprecated + UseWafConfigSetExecute(r APIUseWafConfigSetRequest) (map[string]any, *http.Response, error) +} + +// LegacyWafConfigurationSetsAPIService LegacyWafConfigurationSetsAPI service +type LegacyWafConfigurationSetsAPIService service + +// APIListWafConfigSetsRequest represents a request for the resource. +type APIListWafConfigSetsRequest struct { + ctx context.Context + APIService LegacyWafConfigurationSetsAPI +} + + +// Execute calls the API using the request data configured. +func (r APIListWafConfigSetsRequest) Execute() (map[string]any, *http.Response, error) { + return r.APIService.ListWafConfigSetsExecute(r) +} + +/* +ListWafConfigSets List configuration sets + +List all Configuration sets. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return APIListWafConfigSetsRequest + +Deprecated +*/ +func (a *LegacyWafConfigurationSetsAPIService) ListWafConfigSets(ctx context.Context) APIListWafConfigSetsRequest { + return APIListWafConfigSetsRequest{ + APIService: a, + ctx: ctx, + } +} + +// ListWafConfigSetsExecute executes the request +// @return map[string]any +// Deprecated +func (a *LegacyWafConfigurationSetsAPIService) ListWafConfigSetsExecute(r APIListWafConfigSetsRequest) (map[string]any, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody any + formFiles []formFile + localVarReturnValue map[string]any + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "LegacyWafConfigurationSetsAPIService.ListWafConfigSets") + if err != nil { + return localVarReturnValue, nil, &GenericAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/wafs/configuration_sets" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := gourl.Values{} + localVarFormParams := gourl.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/vnd.api+json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["token"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Fastly-Key"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + _ = localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + + if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { + if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { + if i, err := strconv.Atoi(remaining); err == nil { + a.client.RateLimitRemaining = i + } + } + if reset := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Reset"); reset != "" { + if i, err := strconv.Atoi(reset); err == nil { + a.client.RateLimitReset = i + } + } + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// APIListWafsConfigSetRequest represents a request for the resource. +type APIListWafsConfigSetRequest struct { + ctx context.Context + APIService LegacyWafConfigurationSetsAPI + configurationSetID string +} + + +// Execute calls the API using the request data configured. +func (r APIListWafsConfigSetRequest) Execute() (map[string]any, *http.Response, error) { + return r.APIService.ListWafsConfigSetExecute(r) +} + +/* +ListWafsConfigSet List WAFs currently using a configuration set + +List the WAF objects currently using the specified configuration set. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param configurationSetID Alphanumeric string identifying a WAF configuration set. + @return APIListWafsConfigSetRequest + +Deprecated +*/ +func (a *LegacyWafConfigurationSetsAPIService) ListWafsConfigSet(ctx context.Context, configurationSetID string) APIListWafsConfigSetRequest { + return APIListWafsConfigSetRequest{ + APIService: a, + ctx: ctx, + configurationSetID: configurationSetID, + } +} + +// ListWafsConfigSetExecute executes the request +// @return map[string]any +// Deprecated +func (a *LegacyWafConfigurationSetsAPIService) ListWafsConfigSetExecute(r APIListWafsConfigSetRequest) (map[string]any, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody any + formFiles []formFile + localVarReturnValue map[string]any + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "LegacyWafConfigurationSetsAPIService.ListWafsConfigSet") + if err != nil { + return localVarReturnValue, nil, &GenericAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/wafs/configuration_sets/{configuration_set_id}/relationships/wafs" + localVarPath = strings.ReplaceAll(localVarPath, "{"+"configuration_set_id"+"}", gourl.PathEscape(parameterToString(r.configurationSetID, ""))) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := gourl.Values{} + localVarFormParams := gourl.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/vnd.api+json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["token"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Fastly-Key"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + _ = localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + + if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { + if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { + if i, err := strconv.Atoi(remaining); err == nil { + a.client.RateLimitRemaining = i + } + } + if reset := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Reset"); reset != "" { + if i, err := strconv.Atoi(reset); err == nil { + a.client.RateLimitReset = i + } + } + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// APIUseWafConfigSetRequest represents a request for the resource. +type APIUseWafConfigSetRequest struct { + ctx context.Context + APIService LegacyWafConfigurationSetsAPI + configurationSetID string + requestBody *map[string]map[string]any +} + +// RequestBody returns a pointer to a request. +func (r *APIUseWafConfigSetRequest) RequestBody(requestBody map[string]map[string]any) *APIUseWafConfigSetRequest { + r.requestBody = &requestBody + return r +} + +// Execute calls the API using the request data configured. +func (r APIUseWafConfigSetRequest) Execute() (map[string]any, *http.Response, error) { + return r.APIService.UseWafConfigSetExecute(r) +} + +/* +UseWafConfigSet Apply a configuration set to a WAF + +Update one or more WAF objects to use the specified configuration set. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param configurationSetID Alphanumeric string identifying a WAF configuration set. + @return APIUseWafConfigSetRequest + +Deprecated +*/ +func (a *LegacyWafConfigurationSetsAPIService) UseWafConfigSet(ctx context.Context, configurationSetID string) APIUseWafConfigSetRequest { + return APIUseWafConfigSetRequest{ + APIService: a, + ctx: ctx, + configurationSetID: configurationSetID, + } +} + +// UseWafConfigSetExecute executes the request +// @return map[string]any +// Deprecated +func (a *LegacyWafConfigurationSetsAPIService) UseWafConfigSetExecute(r APIUseWafConfigSetRequest) (map[string]any, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody any + formFiles []formFile + localVarReturnValue map[string]any + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "LegacyWafConfigurationSetsAPIService.UseWafConfigSet") + if err != nil { + return localVarReturnValue, nil, &GenericAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/wafs/configuration_sets/{configuration_set_id}/relationships/wafs" + localVarPath = strings.ReplaceAll(localVarPath, "{"+"configuration_set_id"+"}", gourl.PathEscape(parameterToString(r.configurationSetID, ""))) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := gourl.Values{} + localVarFormParams := gourl.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/vnd.api+json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/vnd.api+json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.requestBody + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["token"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Fastly-Key"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + _ = localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + + if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { + if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { + if i, err := strconv.Atoi(remaining); err == nil { + a.client.RateLimitRemaining = i + } + } + if reset := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Reset"); reset != "" { + if i, err := strconv.Atoi(reset); err == nil { + a.client.RateLimitReset = i + } + } + } + + return localVarReturnValue, localVarHTTPResponse, nil +} diff --git a/fastly/api_legacy_waf_firewall.go b/fastly/api_legacy_waf_firewall.go new file mode 100644 index 00000000..5e7ddc3b --- /dev/null +++ b/fastly/api_legacy_waf_firewall.go @@ -0,0 +1,1407 @@ +// Package fastly is an API client library for interacting with most facets of the Fastly API. +package fastly + +/* +Fastly API + +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://developer.fastly.com/reference/api/) + +API version: 1.0.0 +Contact: oss@fastly.com +*/ + +// This code is auto-generated; DO NOT EDIT. + + +import ( + "bytes" + "context" + "io/ioutil" + "net/http" + gourl "net/url" + "strconv" + "strings" +) + +// Linger please +var ( + _ context.Context +) + +// LegacyWafFirewallAPI defines an interface for interacting with the resource. +type LegacyWafFirewallAPI interface { + + /* + CreateLegacyWafFirewallService Create a firewall + + Create a firewall object for a particular service and version. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param versionID Integer identifying a service version. + @return APICreateLegacyWafFirewallServiceRequest + + Deprecated + */ + CreateLegacyWafFirewallService(ctx context.Context, serviceID string, versionID int32) APICreateLegacyWafFirewallServiceRequest + + // CreateLegacyWafFirewallServiceExecute executes the request + // @return map[string]any + // Deprecated + CreateLegacyWafFirewallServiceExecute(r APICreateLegacyWafFirewallServiceRequest) (map[string]any, *http.Response, error) + + /* + DisableLegacyWafFirewall Disable a firewall + + Disable a firewall for a particular service and version. This endpoint is intended to be used in an emergency. Disabling a firewall object for a specific service and version replaces your existing WAF ruleset with an empty ruleset. While disabled, your WAF ruleset will not be applied to your origin traffic. This endpoint is only available to users assigned the role of superuser or above. This is an asynchronous action. To check on the completion of this action, use the related link returned in the response to check on the Update Status of the action. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param firewallID Alphanumeric string identifying a Firewall. + @return APIDisableLegacyWafFirewallRequest + + Deprecated + */ + DisableLegacyWafFirewall(ctx context.Context, firewallID string) APIDisableLegacyWafFirewallRequest + + // DisableLegacyWafFirewallExecute executes the request + // @return map[string]any + // Deprecated + DisableLegacyWafFirewallExecute(r APIDisableLegacyWafFirewallRequest) (map[string]any, *http.Response, error) + + /* + EnableLegacyWafFirewall Enable a firewall + + Re-enable a firewall object for a particular service and version after it has been disabled. This endpoint is intended to be used in an emergency. When a firewall object is re-enabled, a newly generated WAF ruleset VCL based on the current WAF configuration is used to replace the empty ruleset. This endpoint is only available to users assigned the role of superuser or above. This is an asynchronous action. To check on the completion of this action, use the related link returned in the response to check on the Update Status of the action. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param firewallID Alphanumeric string identifying a Firewall. + @return APIEnableLegacyWafFirewallRequest + + Deprecated + */ + EnableLegacyWafFirewall(ctx context.Context, firewallID string) APIEnableLegacyWafFirewallRequest + + // EnableLegacyWafFirewallExecute executes the request + // @return map[string]any + // Deprecated + EnableLegacyWafFirewallExecute(r APIEnableLegacyWafFirewallRequest) (map[string]any, *http.Response, error) + + /* + GetLegacyWafFirewall Get a firewall object + + Get a specific firewall object. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param firewallID Alphanumeric string identifying a Firewall. + @return APIGetLegacyWafFirewallRequest + + Deprecated + */ + GetLegacyWafFirewall(ctx context.Context, firewallID string) APIGetLegacyWafFirewallRequest + + // GetLegacyWafFirewallExecute executes the request + // @return map[string]any + // Deprecated + GetLegacyWafFirewallExecute(r APIGetLegacyWafFirewallRequest) (map[string]any, *http.Response, error) + + /* + GetLegacyWafFirewallService Get a firewall + + Get a specific firewall object. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param versionID Integer identifying a service version. + @param firewallID Alphanumeric string identifying a Firewall. + @return APIGetLegacyWafFirewallServiceRequest + + Deprecated + */ + GetLegacyWafFirewallService(ctx context.Context, serviceID string, versionID int32, firewallID string) APIGetLegacyWafFirewallServiceRequest + + // GetLegacyWafFirewallServiceExecute executes the request + // @return map[string]any + // Deprecated + GetLegacyWafFirewallServiceExecute(r APIGetLegacyWafFirewallServiceRequest) (map[string]any, *http.Response, error) + + /* + ListLegacyWafFirewalls List active firewalls + + List all active firewall objects. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return APIListLegacyWafFirewallsRequest + + Deprecated + */ + ListLegacyWafFirewalls(ctx context.Context) APIListLegacyWafFirewallsRequest + + // ListLegacyWafFirewallsExecute executes the request + // @return map[string]any + // Deprecated + ListLegacyWafFirewallsExecute(r APIListLegacyWafFirewallsRequest) (map[string]any, *http.Response, error) + + /* + ListLegacyWafFirewallsService List firewalls + + List all firewall objects for a particular service and version. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param versionID Integer identifying a service version. + @return APIListLegacyWafFirewallsServiceRequest + + Deprecated + */ + ListLegacyWafFirewallsService(ctx context.Context, serviceID string, versionID int32) APIListLegacyWafFirewallsServiceRequest + + // ListLegacyWafFirewallsServiceExecute executes the request + // @return map[string]any + // Deprecated + ListLegacyWafFirewallsServiceExecute(r APIListLegacyWafFirewallsServiceRequest) (map[string]any, *http.Response, error) + + /* + UpdateLegacyWafFirewallService Update a firewall + + Update a firewall object for a particular service and version. + + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param versionID Integer identifying a service version. + @param firewallID Alphanumeric string identifying a Firewall. + @return APIUpdateLegacyWafFirewallServiceRequest + + Deprecated + */ + UpdateLegacyWafFirewallService(ctx context.Context, serviceID string, versionID int32, firewallID string) APIUpdateLegacyWafFirewallServiceRequest + + // UpdateLegacyWafFirewallServiceExecute executes the request + // @return map[string]any + // Deprecated + UpdateLegacyWafFirewallServiceExecute(r APIUpdateLegacyWafFirewallServiceRequest) (map[string]any, *http.Response, error) +} + +// LegacyWafFirewallAPIService LegacyWafFirewallAPI service +type LegacyWafFirewallAPIService service + +// APICreateLegacyWafFirewallServiceRequest represents a request for the resource. +type APICreateLegacyWafFirewallServiceRequest struct { + ctx context.Context + APIService LegacyWafFirewallAPI + serviceID string + versionID int32 + requestBody *map[string]map[string]any +} + +// RequestBody returns a pointer to a request. +func (r *APICreateLegacyWafFirewallServiceRequest) RequestBody(requestBody map[string]map[string]any) *APICreateLegacyWafFirewallServiceRequest { + r.requestBody = &requestBody + return r +} + +// Execute calls the API using the request data configured. +func (r APICreateLegacyWafFirewallServiceRequest) Execute() (map[string]any, *http.Response, error) { + return r.APIService.CreateLegacyWafFirewallServiceExecute(r) +} + +/* +CreateLegacyWafFirewallService Create a firewall + +Create a firewall object for a particular service and version. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param versionID Integer identifying a service version. + @return APICreateLegacyWafFirewallServiceRequest + +Deprecated +*/ +func (a *LegacyWafFirewallAPIService) CreateLegacyWafFirewallService(ctx context.Context, serviceID string, versionID int32) APICreateLegacyWafFirewallServiceRequest { + return APICreateLegacyWafFirewallServiceRequest{ + APIService: a, + ctx: ctx, + serviceID: serviceID, + versionID: versionID, + } +} + +// CreateLegacyWafFirewallServiceExecute executes the request +// @return map[string]any +// Deprecated +func (a *LegacyWafFirewallAPIService) CreateLegacyWafFirewallServiceExecute(r APICreateLegacyWafFirewallServiceRequest) (map[string]any, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody any + formFiles []formFile + localVarReturnValue map[string]any + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "LegacyWafFirewallAPIService.CreateLegacyWafFirewallService") + if err != nil { + return localVarReturnValue, nil, &GenericAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/service/{service_id}/version/{version_id}/wafs" + localVarPath = strings.ReplaceAll(localVarPath, "{"+"service_id"+"}", gourl.PathEscape(parameterToString(r.serviceID, ""))) + localVarPath = strings.ReplaceAll(localVarPath, "{"+"version_id"+"}", gourl.PathEscape(parameterToString(r.versionID, ""))) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := gourl.Values{} + localVarFormParams := gourl.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/vnd.api+json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/vnd.api+json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.requestBody + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["token"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Fastly-Key"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + _ = localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + + if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { + if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { + if i, err := strconv.Atoi(remaining); err == nil { + a.client.RateLimitRemaining = i + } + } + if reset := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Reset"); reset != "" { + if i, err := strconv.Atoi(reset); err == nil { + a.client.RateLimitReset = i + } + } + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// APIDisableLegacyWafFirewallRequest represents a request for the resource. +type APIDisableLegacyWafFirewallRequest struct { + ctx context.Context + APIService LegacyWafFirewallAPI + firewallID string + requestBody *map[string]map[string]any +} + +// RequestBody returns a pointer to a request. +func (r *APIDisableLegacyWafFirewallRequest) RequestBody(requestBody map[string]map[string]any) *APIDisableLegacyWafFirewallRequest { + r.requestBody = &requestBody + return r +} + +// Execute calls the API using the request data configured. +func (r APIDisableLegacyWafFirewallRequest) Execute() (map[string]any, *http.Response, error) { + return r.APIService.DisableLegacyWafFirewallExecute(r) +} + +/* +DisableLegacyWafFirewall Disable a firewall + +Disable a firewall for a particular service and version. This endpoint is intended to be used in an emergency. Disabling a firewall object for a specific service and version replaces your existing WAF ruleset with an empty ruleset. While disabled, your WAF ruleset will not be applied to your origin traffic. This endpoint is only available to users assigned the role of superuser or above. This is an asynchronous action. To check on the completion of this action, use the related link returned in the response to check on the Update Status of the action. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param firewallID Alphanumeric string identifying a Firewall. + @return APIDisableLegacyWafFirewallRequest + +Deprecated +*/ +func (a *LegacyWafFirewallAPIService) DisableLegacyWafFirewall(ctx context.Context, firewallID string) APIDisableLegacyWafFirewallRequest { + return APIDisableLegacyWafFirewallRequest{ + APIService: a, + ctx: ctx, + firewallID: firewallID, + } +} + +// DisableLegacyWafFirewallExecute executes the request +// @return map[string]any +// Deprecated +func (a *LegacyWafFirewallAPIService) DisableLegacyWafFirewallExecute(r APIDisableLegacyWafFirewallRequest) (map[string]any, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody any + formFiles []formFile + localVarReturnValue map[string]any + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "LegacyWafFirewallAPIService.DisableLegacyWafFirewall") + if err != nil { + return localVarReturnValue, nil, &GenericAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/wafs/{firewall_id}/disable" + localVarPath = strings.ReplaceAll(localVarPath, "{"+"firewall_id"+"}", gourl.PathEscape(parameterToString(r.firewallID, ""))) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := gourl.Values{} + localVarFormParams := gourl.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/vnd.api+json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/vnd.api+json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.requestBody + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["token"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Fastly-Key"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + _ = localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + + if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { + if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { + if i, err := strconv.Atoi(remaining); err == nil { + a.client.RateLimitRemaining = i + } + } + if reset := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Reset"); reset != "" { + if i, err := strconv.Atoi(reset); err == nil { + a.client.RateLimitReset = i + } + } + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// APIEnableLegacyWafFirewallRequest represents a request for the resource. +type APIEnableLegacyWafFirewallRequest struct { + ctx context.Context + APIService LegacyWafFirewallAPI + firewallID string + requestBody *map[string]map[string]any +} + +// RequestBody returns a pointer to a request. +func (r *APIEnableLegacyWafFirewallRequest) RequestBody(requestBody map[string]map[string]any) *APIEnableLegacyWafFirewallRequest { + r.requestBody = &requestBody + return r +} + +// Execute calls the API using the request data configured. +func (r APIEnableLegacyWafFirewallRequest) Execute() (map[string]any, *http.Response, error) { + return r.APIService.EnableLegacyWafFirewallExecute(r) +} + +/* +EnableLegacyWafFirewall Enable a firewall + +Re-enable a firewall object for a particular service and version after it has been disabled. This endpoint is intended to be used in an emergency. When a firewall object is re-enabled, a newly generated WAF ruleset VCL based on the current WAF configuration is used to replace the empty ruleset. This endpoint is only available to users assigned the role of superuser or above. This is an asynchronous action. To check on the completion of this action, use the related link returned in the response to check on the Update Status of the action. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param firewallID Alphanumeric string identifying a Firewall. + @return APIEnableLegacyWafFirewallRequest + +Deprecated +*/ +func (a *LegacyWafFirewallAPIService) EnableLegacyWafFirewall(ctx context.Context, firewallID string) APIEnableLegacyWafFirewallRequest { + return APIEnableLegacyWafFirewallRequest{ + APIService: a, + ctx: ctx, + firewallID: firewallID, + } +} + +// EnableLegacyWafFirewallExecute executes the request +// @return map[string]any +// Deprecated +func (a *LegacyWafFirewallAPIService) EnableLegacyWafFirewallExecute(r APIEnableLegacyWafFirewallRequest) (map[string]any, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody any + formFiles []formFile + localVarReturnValue map[string]any + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "LegacyWafFirewallAPIService.EnableLegacyWafFirewall") + if err != nil { + return localVarReturnValue, nil, &GenericAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/wafs/{firewall_id}/enable" + localVarPath = strings.ReplaceAll(localVarPath, "{"+"firewall_id"+"}", gourl.PathEscape(parameterToString(r.firewallID, ""))) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := gourl.Values{} + localVarFormParams := gourl.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/vnd.api+json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/vnd.api+json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.requestBody + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["token"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Fastly-Key"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + _ = localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + + if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { + if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { + if i, err := strconv.Atoi(remaining); err == nil { + a.client.RateLimitRemaining = i + } + } + if reset := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Reset"); reset != "" { + if i, err := strconv.Atoi(reset); err == nil { + a.client.RateLimitReset = i + } + } + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// APIGetLegacyWafFirewallRequest represents a request for the resource. +type APIGetLegacyWafFirewallRequest struct { + ctx context.Context + APIService LegacyWafFirewallAPI + firewallID string + include *string +} + +// Include Include relationships. Optional, comma separated values. Permitted values: `configuration_set`, `owasp`, `rules`, `rule_statuses`. +func (r *APIGetLegacyWafFirewallRequest) Include(include string) *APIGetLegacyWafFirewallRequest { + r.include = &include + return r +} + +// Execute calls the API using the request data configured. +func (r APIGetLegacyWafFirewallRequest) Execute() (map[string]any, *http.Response, error) { + return r.APIService.GetLegacyWafFirewallExecute(r) +} + +/* +GetLegacyWafFirewall Get a firewall object + +Get a specific firewall object. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param firewallID Alphanumeric string identifying a Firewall. + @return APIGetLegacyWafFirewallRequest + +Deprecated +*/ +func (a *LegacyWafFirewallAPIService) GetLegacyWafFirewall(ctx context.Context, firewallID string) APIGetLegacyWafFirewallRequest { + return APIGetLegacyWafFirewallRequest{ + APIService: a, + ctx: ctx, + firewallID: firewallID, + } +} + +// GetLegacyWafFirewallExecute executes the request +// @return map[string]any +// Deprecated +func (a *LegacyWafFirewallAPIService) GetLegacyWafFirewallExecute(r APIGetLegacyWafFirewallRequest) (map[string]any, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody any + formFiles []formFile + localVarReturnValue map[string]any + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "LegacyWafFirewallAPIService.GetLegacyWafFirewall") + if err != nil { + return localVarReturnValue, nil, &GenericAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/wafs/{firewall_id}" + localVarPath = strings.ReplaceAll(localVarPath, "{"+"firewall_id"+"}", gourl.PathEscape(parameterToString(r.firewallID, ""))) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := gourl.Values{} + localVarFormParams := gourl.Values{} + + if r.include != nil { + localVarQueryParams.Add("include", parameterToString(*r.include, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/vnd.api+json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["token"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Fastly-Key"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + _ = localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + + if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { + if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { + if i, err := strconv.Atoi(remaining); err == nil { + a.client.RateLimitRemaining = i + } + } + if reset := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Reset"); reset != "" { + if i, err := strconv.Atoi(reset); err == nil { + a.client.RateLimitReset = i + } + } + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// APIGetLegacyWafFirewallServiceRequest represents a request for the resource. +type APIGetLegacyWafFirewallServiceRequest struct { + ctx context.Context + APIService LegacyWafFirewallAPI + serviceID string + versionID int32 + firewallID string +} + + +// Execute calls the API using the request data configured. +func (r APIGetLegacyWafFirewallServiceRequest) Execute() (map[string]any, *http.Response, error) { + return r.APIService.GetLegacyWafFirewallServiceExecute(r) +} + +/* +GetLegacyWafFirewallService Get a firewall + +Get a specific firewall object. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param versionID Integer identifying a service version. + @param firewallID Alphanumeric string identifying a Firewall. + @return APIGetLegacyWafFirewallServiceRequest + +Deprecated +*/ +func (a *LegacyWafFirewallAPIService) GetLegacyWafFirewallService(ctx context.Context, serviceID string, versionID int32, firewallID string) APIGetLegacyWafFirewallServiceRequest { + return APIGetLegacyWafFirewallServiceRequest{ + APIService: a, + ctx: ctx, + serviceID: serviceID, + versionID: versionID, + firewallID: firewallID, + } +} + +// GetLegacyWafFirewallServiceExecute executes the request +// @return map[string]any +// Deprecated +func (a *LegacyWafFirewallAPIService) GetLegacyWafFirewallServiceExecute(r APIGetLegacyWafFirewallServiceRequest) (map[string]any, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody any + formFiles []formFile + localVarReturnValue map[string]any + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "LegacyWafFirewallAPIService.GetLegacyWafFirewallService") + if err != nil { + return localVarReturnValue, nil, &GenericAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/service/{service_id}/version/{version_id}/wafs/{firewall_id}" + localVarPath = strings.ReplaceAll(localVarPath, "{"+"service_id"+"}", gourl.PathEscape(parameterToString(r.serviceID, ""))) + localVarPath = strings.ReplaceAll(localVarPath, "{"+"version_id"+"}", gourl.PathEscape(parameterToString(r.versionID, ""))) + localVarPath = strings.ReplaceAll(localVarPath, "{"+"firewall_id"+"}", gourl.PathEscape(parameterToString(r.firewallID, ""))) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := gourl.Values{} + localVarFormParams := gourl.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/vnd.api+json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["token"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Fastly-Key"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + _ = localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + + if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { + if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { + if i, err := strconv.Atoi(remaining); err == nil { + a.client.RateLimitRemaining = i + } + } + if reset := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Reset"); reset != "" { + if i, err := strconv.Atoi(reset); err == nil { + a.client.RateLimitReset = i + } + } + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// APIListLegacyWafFirewallsRequest represents a request for the resource. +type APIListLegacyWafFirewallsRequest struct { + ctx context.Context + APIService LegacyWafFirewallAPI + filterRulesRuleID *string + pageNumber *int32 + pageSize *int32 + include *string +} + +// FilterRulesRuleID Limit the returned firewalls to a specific rule ID. +func (r *APIListLegacyWafFirewallsRequest) FilterRulesRuleID(filterRulesRuleID string) *APIListLegacyWafFirewallsRequest { + r.filterRulesRuleID = &filterRulesRuleID + return r +} +// PageNumber Current page. +func (r *APIListLegacyWafFirewallsRequest) PageNumber(pageNumber int32) *APIListLegacyWafFirewallsRequest { + r.pageNumber = &pageNumber + return r +} +// PageSize Number of records per page. +func (r *APIListLegacyWafFirewallsRequest) PageSize(pageSize int32) *APIListLegacyWafFirewallsRequest { + r.pageSize = &pageSize + return r +} +// Include Include relationships. Optional, comma separated values. Permitted values: `configuration_set`, `owasp`. +func (r *APIListLegacyWafFirewallsRequest) Include(include string) *APIListLegacyWafFirewallsRequest { + r.include = &include + return r +} + +// Execute calls the API using the request data configured. +func (r APIListLegacyWafFirewallsRequest) Execute() (map[string]any, *http.Response, error) { + return r.APIService.ListLegacyWafFirewallsExecute(r) +} + +/* +ListLegacyWafFirewalls List active firewalls + +List all active firewall objects. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return APIListLegacyWafFirewallsRequest + +Deprecated +*/ +func (a *LegacyWafFirewallAPIService) ListLegacyWafFirewalls(ctx context.Context) APIListLegacyWafFirewallsRequest { + return APIListLegacyWafFirewallsRequest{ + APIService: a, + ctx: ctx, + } +} + +// ListLegacyWafFirewallsExecute executes the request +// @return map[string]any +// Deprecated +func (a *LegacyWafFirewallAPIService) ListLegacyWafFirewallsExecute(r APIListLegacyWafFirewallsRequest) (map[string]any, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody any + formFiles []formFile + localVarReturnValue map[string]any + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "LegacyWafFirewallAPIService.ListLegacyWafFirewalls") + if err != nil { + return localVarReturnValue, nil, &GenericAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/wafs" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := gourl.Values{} + localVarFormParams := gourl.Values{} + + if r.filterRulesRuleID != nil { + localVarQueryParams.Add("filter[rules][rule_id]", parameterToString(*r.filterRulesRuleID, "")) + } + if r.pageNumber != nil { + localVarQueryParams.Add("page[number]", parameterToString(*r.pageNumber, "")) + } + if r.pageSize != nil { + localVarQueryParams.Add("page[size]", parameterToString(*r.pageSize, "")) + } + if r.include != nil { + localVarQueryParams.Add("include", parameterToString(*r.include, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/vnd.api+json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["token"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Fastly-Key"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + _ = localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + + if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { + if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { + if i, err := strconv.Atoi(remaining); err == nil { + a.client.RateLimitRemaining = i + } + } + if reset := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Reset"); reset != "" { + if i, err := strconv.Atoi(reset); err == nil { + a.client.RateLimitReset = i + } + } + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// APIListLegacyWafFirewallsServiceRequest represents a request for the resource. +type APIListLegacyWafFirewallsServiceRequest struct { + ctx context.Context + APIService LegacyWafFirewallAPI + serviceID string + versionID int32 + pageNumber *int32 + pageSize *int32 + include *string +} + +// PageNumber Current page. +func (r *APIListLegacyWafFirewallsServiceRequest) PageNumber(pageNumber int32) *APIListLegacyWafFirewallsServiceRequest { + r.pageNumber = &pageNumber + return r +} +// PageSize Number of records per page. +func (r *APIListLegacyWafFirewallsServiceRequest) PageSize(pageSize int32) *APIListLegacyWafFirewallsServiceRequest { + r.pageSize = &pageSize + return r +} +// Include Include relationships. Optional, comma separated values. Permitted values: `configuration_set`, `owasp`. +func (r *APIListLegacyWafFirewallsServiceRequest) Include(include string) *APIListLegacyWafFirewallsServiceRequest { + r.include = &include + return r +} + +// Execute calls the API using the request data configured. +func (r APIListLegacyWafFirewallsServiceRequest) Execute() (map[string]any, *http.Response, error) { + return r.APIService.ListLegacyWafFirewallsServiceExecute(r) +} + +/* +ListLegacyWafFirewallsService List firewalls + +List all firewall objects for a particular service and version. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param versionID Integer identifying a service version. + @return APIListLegacyWafFirewallsServiceRequest + +Deprecated +*/ +func (a *LegacyWafFirewallAPIService) ListLegacyWafFirewallsService(ctx context.Context, serviceID string, versionID int32) APIListLegacyWafFirewallsServiceRequest { + return APIListLegacyWafFirewallsServiceRequest{ + APIService: a, + ctx: ctx, + serviceID: serviceID, + versionID: versionID, + } +} + +// ListLegacyWafFirewallsServiceExecute executes the request +// @return map[string]any +// Deprecated +func (a *LegacyWafFirewallAPIService) ListLegacyWafFirewallsServiceExecute(r APIListLegacyWafFirewallsServiceRequest) (map[string]any, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody any + formFiles []formFile + localVarReturnValue map[string]any + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "LegacyWafFirewallAPIService.ListLegacyWafFirewallsService") + if err != nil { + return localVarReturnValue, nil, &GenericAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/service/{service_id}/version/{version_id}/wafs" + localVarPath = strings.ReplaceAll(localVarPath, "{"+"service_id"+"}", gourl.PathEscape(parameterToString(r.serviceID, ""))) + localVarPath = strings.ReplaceAll(localVarPath, "{"+"version_id"+"}", gourl.PathEscape(parameterToString(r.versionID, ""))) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := gourl.Values{} + localVarFormParams := gourl.Values{} + + if r.pageNumber != nil { + localVarQueryParams.Add("page[number]", parameterToString(*r.pageNumber, "")) + } + if r.pageSize != nil { + localVarQueryParams.Add("page[size]", parameterToString(*r.pageSize, "")) + } + if r.include != nil { + localVarQueryParams.Add("include", parameterToString(*r.include, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/vnd.api+json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["token"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Fastly-Key"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + _ = localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + + if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { + if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { + if i, err := strconv.Atoi(remaining); err == nil { + a.client.RateLimitRemaining = i + } + } + if reset := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Reset"); reset != "" { + if i, err := strconv.Atoi(reset); err == nil { + a.client.RateLimitReset = i + } + } + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// APIUpdateLegacyWafFirewallServiceRequest represents a request for the resource. +type APIUpdateLegacyWafFirewallServiceRequest struct { + ctx context.Context + APIService LegacyWafFirewallAPI + serviceID string + versionID int32 + firewallID string + requestBody *map[string]map[string]any +} + +// RequestBody returns a pointer to a request. +func (r *APIUpdateLegacyWafFirewallServiceRequest) RequestBody(requestBody map[string]map[string]any) *APIUpdateLegacyWafFirewallServiceRequest { + r.requestBody = &requestBody + return r +} + +// Execute calls the API using the request data configured. +func (r APIUpdateLegacyWafFirewallServiceRequest) Execute() (map[string]any, *http.Response, error) { + return r.APIService.UpdateLegacyWafFirewallServiceExecute(r) +} + +/* +UpdateLegacyWafFirewallService Update a firewall + +Update a firewall object for a particular service and version. + + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param versionID Integer identifying a service version. + @param firewallID Alphanumeric string identifying a Firewall. + @return APIUpdateLegacyWafFirewallServiceRequest + +Deprecated +*/ +func (a *LegacyWafFirewallAPIService) UpdateLegacyWafFirewallService(ctx context.Context, serviceID string, versionID int32, firewallID string) APIUpdateLegacyWafFirewallServiceRequest { + return APIUpdateLegacyWafFirewallServiceRequest{ + APIService: a, + ctx: ctx, + serviceID: serviceID, + versionID: versionID, + firewallID: firewallID, + } +} + +// UpdateLegacyWafFirewallServiceExecute executes the request +// @return map[string]any +// Deprecated +func (a *LegacyWafFirewallAPIService) UpdateLegacyWafFirewallServiceExecute(r APIUpdateLegacyWafFirewallServiceRequest) (map[string]any, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody any + formFiles []formFile + localVarReturnValue map[string]any + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "LegacyWafFirewallAPIService.UpdateLegacyWafFirewallService") + if err != nil { + return localVarReturnValue, nil, &GenericAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/service/{service_id}/version/{version_id}/wafs/{firewall_id}" + localVarPath = strings.ReplaceAll(localVarPath, "{"+"service_id"+"}", gourl.PathEscape(parameterToString(r.serviceID, ""))) + localVarPath = strings.ReplaceAll(localVarPath, "{"+"version_id"+"}", gourl.PathEscape(parameterToString(r.versionID, ""))) + localVarPath = strings.ReplaceAll(localVarPath, "{"+"firewall_id"+"}", gourl.PathEscape(parameterToString(r.firewallID, ""))) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := gourl.Values{} + localVarFormParams := gourl.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/vnd.api+json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/vnd.api+json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.requestBody + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["token"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Fastly-Key"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + _ = localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + + if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { + if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { + if i, err := strconv.Atoi(remaining); err == nil { + a.client.RateLimitRemaining = i + } + } + if reset := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Reset"); reset != "" { + if i, err := strconv.Atoi(reset); err == nil { + a.client.RateLimitReset = i + } + } + } + + return localVarReturnValue, localVarHTTPResponse, nil +} diff --git a/fastly/api_legacy_waf_owasp.go b/fastly/api_legacy_waf_owasp.go new file mode 100644 index 00000000..ee9cc900 --- /dev/null +++ b/fastly/api_legacy_waf_owasp.go @@ -0,0 +1,532 @@ +// Package fastly is an API client library for interacting with most facets of the Fastly API. +package fastly + +/* +Fastly API + +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://developer.fastly.com/reference/api/) + +API version: 1.0.0 +Contact: oss@fastly.com +*/ + +// This code is auto-generated; DO NOT EDIT. + + +import ( + "bytes" + "context" + "io/ioutil" + "net/http" + gourl "net/url" + "strconv" + "strings" +) + +// Linger please +var ( + _ context.Context +) + +// LegacyWafOwaspAPI defines an interface for interacting with the resource. +type LegacyWafOwaspAPI interface { + + /* + CreateOwaspSettings Create an OWASP settings object + + Create an OWASP settings object for a particular service and firewall. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param firewallID Alphanumeric string identifying a Firewall. + @return APICreateOwaspSettingsRequest + + Deprecated + */ + CreateOwaspSettings(ctx context.Context, serviceID string, firewallID string) APICreateOwaspSettingsRequest + + // CreateOwaspSettingsExecute executes the request + // @return map[string]any + // Deprecated + CreateOwaspSettingsExecute(r APICreateOwaspSettingsRequest) (map[string]any, *http.Response, error) + + /* + GetOwaspSettings Get the OWASP settings object + + Get the OWASP settings object for a particular service and firewall. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param firewallID Alphanumeric string identifying a Firewall. + @return APIGetOwaspSettingsRequest + + Deprecated + */ + GetOwaspSettings(ctx context.Context, serviceID string, firewallID string) APIGetOwaspSettingsRequest + + // GetOwaspSettingsExecute executes the request + // @return map[string]any + // Deprecated + GetOwaspSettingsExecute(r APIGetOwaspSettingsRequest) (map[string]any, *http.Response, error) + + /* + UpdateOwaspSettings Update the OWASP settings object + + Update the OWASP settings object for a particular service and firewall. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param firewallID Alphanumeric string identifying a Firewall. + @return APIUpdateOwaspSettingsRequest + + Deprecated + */ + UpdateOwaspSettings(ctx context.Context, serviceID string, firewallID string) APIUpdateOwaspSettingsRequest + + // UpdateOwaspSettingsExecute executes the request + // @return map[string]any + // Deprecated + UpdateOwaspSettingsExecute(r APIUpdateOwaspSettingsRequest) (map[string]any, *http.Response, error) +} + +// LegacyWafOwaspAPIService LegacyWafOwaspAPI service +type LegacyWafOwaspAPIService service + +// APICreateOwaspSettingsRequest represents a request for the resource. +type APICreateOwaspSettingsRequest struct { + ctx context.Context + APIService LegacyWafOwaspAPI + serviceID string + firewallID string + requestBody *map[string]map[string]any +} + +// RequestBody returns a pointer to a request. +func (r *APICreateOwaspSettingsRequest) RequestBody(requestBody map[string]map[string]any) *APICreateOwaspSettingsRequest { + r.requestBody = &requestBody + return r +} + +// Execute calls the API using the request data configured. +func (r APICreateOwaspSettingsRequest) Execute() (map[string]any, *http.Response, error) { + return r.APIService.CreateOwaspSettingsExecute(r) +} + +/* +CreateOwaspSettings Create an OWASP settings object + +Create an OWASP settings object for a particular service and firewall. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param firewallID Alphanumeric string identifying a Firewall. + @return APICreateOwaspSettingsRequest + +Deprecated +*/ +func (a *LegacyWafOwaspAPIService) CreateOwaspSettings(ctx context.Context, serviceID string, firewallID string) APICreateOwaspSettingsRequest { + return APICreateOwaspSettingsRequest{ + APIService: a, + ctx: ctx, + serviceID: serviceID, + firewallID: firewallID, + } +} + +// CreateOwaspSettingsExecute executes the request +// @return map[string]any +// Deprecated +func (a *LegacyWafOwaspAPIService) CreateOwaspSettingsExecute(r APICreateOwaspSettingsRequest) (map[string]any, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody any + formFiles []formFile + localVarReturnValue map[string]any + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "LegacyWafOwaspAPIService.CreateOwaspSettings") + if err != nil { + return localVarReturnValue, nil, &GenericAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/service/{service_id}/wafs/{firewall_id}/owasp" + localVarPath = strings.ReplaceAll(localVarPath, "{"+"service_id"+"}", gourl.PathEscape(parameterToString(r.serviceID, ""))) + localVarPath = strings.ReplaceAll(localVarPath, "{"+"firewall_id"+"}", gourl.PathEscape(parameterToString(r.firewallID, ""))) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := gourl.Values{} + localVarFormParams := gourl.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/vnd.api+json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/vnd.api+json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.requestBody + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["token"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Fastly-Key"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + _ = localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + + if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { + if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { + if i, err := strconv.Atoi(remaining); err == nil { + a.client.RateLimitRemaining = i + } + } + if reset := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Reset"); reset != "" { + if i, err := strconv.Atoi(reset); err == nil { + a.client.RateLimitReset = i + } + } + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// APIGetOwaspSettingsRequest represents a request for the resource. +type APIGetOwaspSettingsRequest struct { + ctx context.Context + APIService LegacyWafOwaspAPI + serviceID string + firewallID string +} + + +// Execute calls the API using the request data configured. +func (r APIGetOwaspSettingsRequest) Execute() (map[string]any, *http.Response, error) { + return r.APIService.GetOwaspSettingsExecute(r) +} + +/* +GetOwaspSettings Get the OWASP settings object + +Get the OWASP settings object for a particular service and firewall. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param firewallID Alphanumeric string identifying a Firewall. + @return APIGetOwaspSettingsRequest + +Deprecated +*/ +func (a *LegacyWafOwaspAPIService) GetOwaspSettings(ctx context.Context, serviceID string, firewallID string) APIGetOwaspSettingsRequest { + return APIGetOwaspSettingsRequest{ + APIService: a, + ctx: ctx, + serviceID: serviceID, + firewallID: firewallID, + } +} + +// GetOwaspSettingsExecute executes the request +// @return map[string]any +// Deprecated +func (a *LegacyWafOwaspAPIService) GetOwaspSettingsExecute(r APIGetOwaspSettingsRequest) (map[string]any, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody any + formFiles []formFile + localVarReturnValue map[string]any + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "LegacyWafOwaspAPIService.GetOwaspSettings") + if err != nil { + return localVarReturnValue, nil, &GenericAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/service/{service_id}/wafs/{firewall_id}/owasp" + localVarPath = strings.ReplaceAll(localVarPath, "{"+"service_id"+"}", gourl.PathEscape(parameterToString(r.serviceID, ""))) + localVarPath = strings.ReplaceAll(localVarPath, "{"+"firewall_id"+"}", gourl.PathEscape(parameterToString(r.firewallID, ""))) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := gourl.Values{} + localVarFormParams := gourl.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/vnd.api+json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["token"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Fastly-Key"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + _ = localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + + if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { + if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { + if i, err := strconv.Atoi(remaining); err == nil { + a.client.RateLimitRemaining = i + } + } + if reset := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Reset"); reset != "" { + if i, err := strconv.Atoi(reset); err == nil { + a.client.RateLimitReset = i + } + } + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// APIUpdateOwaspSettingsRequest represents a request for the resource. +type APIUpdateOwaspSettingsRequest struct { + ctx context.Context + APIService LegacyWafOwaspAPI + serviceID string + firewallID string + requestBody *map[string]map[string]any +} + +// RequestBody returns a pointer to a request. +func (r *APIUpdateOwaspSettingsRequest) RequestBody(requestBody map[string]map[string]any) *APIUpdateOwaspSettingsRequest { + r.requestBody = &requestBody + return r +} + +// Execute calls the API using the request data configured. +func (r APIUpdateOwaspSettingsRequest) Execute() (map[string]any, *http.Response, error) { + return r.APIService.UpdateOwaspSettingsExecute(r) +} + +/* +UpdateOwaspSettings Update the OWASP settings object + +Update the OWASP settings object for a particular service and firewall. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param firewallID Alphanumeric string identifying a Firewall. + @return APIUpdateOwaspSettingsRequest + +Deprecated +*/ +func (a *LegacyWafOwaspAPIService) UpdateOwaspSettings(ctx context.Context, serviceID string, firewallID string) APIUpdateOwaspSettingsRequest { + return APIUpdateOwaspSettingsRequest{ + APIService: a, + ctx: ctx, + serviceID: serviceID, + firewallID: firewallID, + } +} + +// UpdateOwaspSettingsExecute executes the request +// @return map[string]any +// Deprecated +func (a *LegacyWafOwaspAPIService) UpdateOwaspSettingsExecute(r APIUpdateOwaspSettingsRequest) (map[string]any, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody any + formFiles []formFile + localVarReturnValue map[string]any + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "LegacyWafOwaspAPIService.UpdateOwaspSettings") + if err != nil { + return localVarReturnValue, nil, &GenericAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/service/{service_id}/wafs/{firewall_id}/owasp" + localVarPath = strings.ReplaceAll(localVarPath, "{"+"service_id"+"}", gourl.PathEscape(parameterToString(r.serviceID, ""))) + localVarPath = strings.ReplaceAll(localVarPath, "{"+"firewall_id"+"}", gourl.PathEscape(parameterToString(r.firewallID, ""))) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := gourl.Values{} + localVarFormParams := gourl.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/vnd.api+json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/vnd.api+json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.requestBody + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["token"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Fastly-Key"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + _ = localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + + if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { + if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { + if i, err := strconv.Atoi(remaining); err == nil { + a.client.RateLimitRemaining = i + } + } + if reset := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Reset"); reset != "" { + if i, err := strconv.Atoi(reset); err == nil { + a.client.RateLimitReset = i + } + } + } + + return localVarReturnValue, localVarHTTPResponse, nil +} diff --git a/fastly/api_legacy_waf_rule.go b/fastly/api_legacy_waf_rule.go new file mode 100644 index 00000000..ef8fe70a --- /dev/null +++ b/fastly/api_legacy_waf_rule.go @@ -0,0 +1,737 @@ +// Package fastly is an API client library for interacting with most facets of the Fastly API. +package fastly + +/* +Fastly API + +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://developer.fastly.com/reference/api/) + +API version: 1.0.0 +Contact: oss@fastly.com +*/ + +// This code is auto-generated; DO NOT EDIT. + + +import ( + "bytes" + "context" + "io/ioutil" + "net/http" + gourl "net/url" + "strconv" + "strings" +) + +// Linger please +var ( + _ context.Context +) + +// LegacyWafRuleAPI defines an interface for interacting with the resource. +type LegacyWafRuleAPI interface { + + /* + GetLegacyWafFirewallRuleVcl Get VCL for a rule associated with a firewall + + Get associated VCL for a specific rule associated with a specific firewall. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param firewallID Alphanumeric string identifying a Firewall. + @param wafRuleID Alphanumeric string identifying a WAF rule. + @return APIGetLegacyWafFirewallRuleVclRequest + + Deprecated + */ + GetLegacyWafFirewallRuleVcl(ctx context.Context, firewallID string, wafRuleID string) APIGetLegacyWafFirewallRuleVclRequest + + // GetLegacyWafFirewallRuleVclExecute executes the request + // @return map[string]any + // Deprecated + GetLegacyWafFirewallRuleVclExecute(r APIGetLegacyWafFirewallRuleVclRequest) (map[string]any, *http.Response, error) + + /* + GetLegacyWafRule Get a rule + + Get a specific rule. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param wafRuleID Alphanumeric string identifying a WAF rule. + @return APIGetLegacyWafRuleRequest + + Deprecated + */ + GetLegacyWafRule(ctx context.Context, wafRuleID string) APIGetLegacyWafRuleRequest + + // GetLegacyWafRuleExecute executes the request + // @return map[string]any + // Deprecated + GetLegacyWafRuleExecute(r APIGetLegacyWafRuleRequest) (map[string]any, *http.Response, error) + + /* + GetLegacyWafRuleVcl Get VCL for a rule + + Get associated VCL for a specific rule. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param wafRuleID Alphanumeric string identifying a WAF rule. + @return APIGetLegacyWafRuleVclRequest + + Deprecated + */ + GetLegacyWafRuleVcl(ctx context.Context, wafRuleID string) APIGetLegacyWafRuleVclRequest + + // GetLegacyWafRuleVclExecute executes the request + // @return map[string]any + // Deprecated + GetLegacyWafRuleVclExecute(r APIGetLegacyWafRuleVclRequest) (map[string]any, *http.Response, error) + + /* + ListLegacyWafRules List rules in the latest configuration set + + List all rules in the latest configuration set. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return APIListLegacyWafRulesRequest + + Deprecated + */ + ListLegacyWafRules(ctx context.Context) APIListLegacyWafRulesRequest + + // ListLegacyWafRulesExecute executes the request + // @return []map[string]any + // Deprecated + ListLegacyWafRulesExecute(r APIListLegacyWafRulesRequest) ([]map[string]any, *http.Response, error) +} + +// LegacyWafRuleAPIService LegacyWafRuleAPI service +type LegacyWafRuleAPIService service + +// APIGetLegacyWafFirewallRuleVclRequest represents a request for the resource. +type APIGetLegacyWafFirewallRuleVclRequest struct { + ctx context.Context + APIService LegacyWafRuleAPI + firewallID string + wafRuleID string +} + + +// Execute calls the API using the request data configured. +func (r APIGetLegacyWafFirewallRuleVclRequest) Execute() (map[string]any, *http.Response, error) { + return r.APIService.GetLegacyWafFirewallRuleVclExecute(r) +} + +/* +GetLegacyWafFirewallRuleVcl Get VCL for a rule associated with a firewall + +Get associated VCL for a specific rule associated with a specific firewall. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param firewallID Alphanumeric string identifying a Firewall. + @param wafRuleID Alphanumeric string identifying a WAF rule. + @return APIGetLegacyWafFirewallRuleVclRequest + +Deprecated +*/ +func (a *LegacyWafRuleAPIService) GetLegacyWafFirewallRuleVcl(ctx context.Context, firewallID string, wafRuleID string) APIGetLegacyWafFirewallRuleVclRequest { + return APIGetLegacyWafFirewallRuleVclRequest{ + APIService: a, + ctx: ctx, + firewallID: firewallID, + wafRuleID: wafRuleID, + } +} + +// GetLegacyWafFirewallRuleVclExecute executes the request +// @return map[string]any +// Deprecated +func (a *LegacyWafRuleAPIService) GetLegacyWafFirewallRuleVclExecute(r APIGetLegacyWafFirewallRuleVclRequest) (map[string]any, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody any + formFiles []formFile + localVarReturnValue map[string]any + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "LegacyWafRuleAPIService.GetLegacyWafFirewallRuleVcl") + if err != nil { + return localVarReturnValue, nil, &GenericAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/wafs/{firewall_id}/rules/{waf_rule_id}/vcl" + localVarPath = strings.ReplaceAll(localVarPath, "{"+"firewall_id"+"}", gourl.PathEscape(parameterToString(r.firewallID, ""))) + localVarPath = strings.ReplaceAll(localVarPath, "{"+"waf_rule_id"+"}", gourl.PathEscape(parameterToString(r.wafRuleID, ""))) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := gourl.Values{} + localVarFormParams := gourl.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/vnd.api+json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["token"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Fastly-Key"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + _ = localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + + if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { + if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { + if i, err := strconv.Atoi(remaining); err == nil { + a.client.RateLimitRemaining = i + } + } + if reset := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Reset"); reset != "" { + if i, err := strconv.Atoi(reset); err == nil { + a.client.RateLimitReset = i + } + } + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// APIGetLegacyWafRuleRequest represents a request for the resource. +type APIGetLegacyWafRuleRequest struct { + ctx context.Context + APIService LegacyWafRuleAPI + wafRuleID string + filterConfigurationSetID *string + include *string +} + +// FilterConfigurationSetID Optional. Limit rule to a specific configuration set or pass \"all\" to search all configuration sets, including stale ones. +func (r *APIGetLegacyWafRuleRequest) FilterConfigurationSetID(filterConfigurationSetID string) *APIGetLegacyWafRuleRequest { + r.filterConfigurationSetID = &filterConfigurationSetID + return r +} +// Include Include relationships. Optional. Comma separated values. Permitted values: `tags`, `rule_statuses`, `source`, and `vcl`. +func (r *APIGetLegacyWafRuleRequest) Include(include string) *APIGetLegacyWafRuleRequest { + r.include = &include + return r +} + +// Execute calls the API using the request data configured. +func (r APIGetLegacyWafRuleRequest) Execute() (map[string]any, *http.Response, error) { + return r.APIService.GetLegacyWafRuleExecute(r) +} + +/* +GetLegacyWafRule Get a rule + +Get a specific rule. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param wafRuleID Alphanumeric string identifying a WAF rule. + @return APIGetLegacyWafRuleRequest + +Deprecated +*/ +func (a *LegacyWafRuleAPIService) GetLegacyWafRule(ctx context.Context, wafRuleID string) APIGetLegacyWafRuleRequest { + return APIGetLegacyWafRuleRequest{ + APIService: a, + ctx: ctx, + wafRuleID: wafRuleID, + } +} + +// GetLegacyWafRuleExecute executes the request +// @return map[string]any +// Deprecated +func (a *LegacyWafRuleAPIService) GetLegacyWafRuleExecute(r APIGetLegacyWafRuleRequest) (map[string]any, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody any + formFiles []formFile + localVarReturnValue map[string]any + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "LegacyWafRuleAPIService.GetLegacyWafRule") + if err != nil { + return localVarReturnValue, nil, &GenericAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/wafs/rules/{waf_rule_id}" + localVarPath = strings.ReplaceAll(localVarPath, "{"+"waf_rule_id"+"}", gourl.PathEscape(parameterToString(r.wafRuleID, ""))) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := gourl.Values{} + localVarFormParams := gourl.Values{} + + if r.filterConfigurationSetID != nil { + localVarQueryParams.Add("filter[configuration_set_id]", parameterToString(*r.filterConfigurationSetID, "")) + } + if r.include != nil { + localVarQueryParams.Add("include", parameterToString(*r.include, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/vnd.api+json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["token"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Fastly-Key"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + _ = localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + + if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { + if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { + if i, err := strconv.Atoi(remaining); err == nil { + a.client.RateLimitRemaining = i + } + } + if reset := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Reset"); reset != "" { + if i, err := strconv.Atoi(reset); err == nil { + a.client.RateLimitReset = i + } + } + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// APIGetLegacyWafRuleVclRequest represents a request for the resource. +type APIGetLegacyWafRuleVclRequest struct { + ctx context.Context + APIService LegacyWafRuleAPI + wafRuleID string +} + + +// Execute calls the API using the request data configured. +func (r APIGetLegacyWafRuleVclRequest) Execute() (map[string]any, *http.Response, error) { + return r.APIService.GetLegacyWafRuleVclExecute(r) +} + +/* +GetLegacyWafRuleVcl Get VCL for a rule + +Get associated VCL for a specific rule. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param wafRuleID Alphanumeric string identifying a WAF rule. + @return APIGetLegacyWafRuleVclRequest + +Deprecated +*/ +func (a *LegacyWafRuleAPIService) GetLegacyWafRuleVcl(ctx context.Context, wafRuleID string) APIGetLegacyWafRuleVclRequest { + return APIGetLegacyWafRuleVclRequest{ + APIService: a, + ctx: ctx, + wafRuleID: wafRuleID, + } +} + +// GetLegacyWafRuleVclExecute executes the request +// @return map[string]any +// Deprecated +func (a *LegacyWafRuleAPIService) GetLegacyWafRuleVclExecute(r APIGetLegacyWafRuleVclRequest) (map[string]any, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody any + formFiles []formFile + localVarReturnValue map[string]any + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "LegacyWafRuleAPIService.GetLegacyWafRuleVcl") + if err != nil { + return localVarReturnValue, nil, &GenericAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/wafs/rules/{waf_rule_id}/vcl" + localVarPath = strings.ReplaceAll(localVarPath, "{"+"waf_rule_id"+"}", gourl.PathEscape(parameterToString(r.wafRuleID, ""))) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := gourl.Values{} + localVarFormParams := gourl.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/vnd.api+json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["token"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Fastly-Key"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + _ = localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + + if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { + if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { + if i, err := strconv.Atoi(remaining); err == nil { + a.client.RateLimitRemaining = i + } + } + if reset := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Reset"); reset != "" { + if i, err := strconv.Atoi(reset); err == nil { + a.client.RateLimitReset = i + } + } + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// APIListLegacyWafRulesRequest represents a request for the resource. +type APIListLegacyWafRulesRequest struct { + ctx context.Context + APIService LegacyWafRuleAPI + filterRuleID *string + filterSeverity *string + filterTagsName *string + filterConfigurationSetID *string + pageNumber *int32 + pageSize *int32 + include *string +} + +// FilterRuleID Limit the returned rules to a specific rule ID. +func (r *APIListLegacyWafRulesRequest) FilterRuleID(filterRuleID string) *APIListLegacyWafRulesRequest { + r.filterRuleID = &filterRuleID + return r +} +// FilterSeverity Limit the returned rules to a specific severity. +func (r *APIListLegacyWafRulesRequest) FilterSeverity(filterSeverity string) *APIListLegacyWafRulesRequest { + r.filterSeverity = &filterSeverity + return r +} +// FilterTagsName Limit the returned rules to a set linked to a tag by name. +func (r *APIListLegacyWafRulesRequest) FilterTagsName(filterTagsName string) *APIListLegacyWafRulesRequest { + r.filterTagsName = &filterTagsName + return r +} +// FilterConfigurationSetID Optional. Limit rules to specific configuration set or pass \"all\" to search all configuration sets, including stale ones. +func (r *APIListLegacyWafRulesRequest) FilterConfigurationSetID(filterConfigurationSetID string) *APIListLegacyWafRulesRequest { + r.filterConfigurationSetID = &filterConfigurationSetID + return r +} +// PageNumber Current page. +func (r *APIListLegacyWafRulesRequest) PageNumber(pageNumber int32) *APIListLegacyWafRulesRequest { + r.pageNumber = &pageNumber + return r +} +// PageSize Number of records per page. +func (r *APIListLegacyWafRulesRequest) PageSize(pageSize int32) *APIListLegacyWafRulesRequest { + r.pageSize = &pageSize + return r +} +// Include Include relationships. Optional. Comma separated values. Permitted values: `tags`, `rule_statuses`, and `source`. +func (r *APIListLegacyWafRulesRequest) Include(include string) *APIListLegacyWafRulesRequest { + r.include = &include + return r +} + +// Execute calls the API using the request data configured. +func (r APIListLegacyWafRulesRequest) Execute() ([]map[string]any, *http.Response, error) { + return r.APIService.ListLegacyWafRulesExecute(r) +} + +/* +ListLegacyWafRules List rules in the latest configuration set + +List all rules in the latest configuration set. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return APIListLegacyWafRulesRequest + +Deprecated +*/ +func (a *LegacyWafRuleAPIService) ListLegacyWafRules(ctx context.Context) APIListLegacyWafRulesRequest { + return APIListLegacyWafRulesRequest{ + APIService: a, + ctx: ctx, + } +} + +// ListLegacyWafRulesExecute executes the request +// @return []map[string]any +// Deprecated +func (a *LegacyWafRuleAPIService) ListLegacyWafRulesExecute(r APIListLegacyWafRulesRequest) ([]map[string]any, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody any + formFiles []formFile + localVarReturnValue []map[string]any + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "LegacyWafRuleAPIService.ListLegacyWafRules") + if err != nil { + return localVarReturnValue, nil, &GenericAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/wafs/rules" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := gourl.Values{} + localVarFormParams := gourl.Values{} + + if r.filterRuleID != nil { + localVarQueryParams.Add("filter[rule_id]", parameterToString(*r.filterRuleID, "")) + } + if r.filterSeverity != nil { + localVarQueryParams.Add("filter[severity]", parameterToString(*r.filterSeverity, "")) + } + if r.filterTagsName != nil { + localVarQueryParams.Add("filter[tags][name]", parameterToString(*r.filterTagsName, "")) + } + if r.filterConfigurationSetID != nil { + localVarQueryParams.Add("filter[configuration_set_id]", parameterToString(*r.filterConfigurationSetID, "")) + } + if r.pageNumber != nil { + localVarQueryParams.Add("page[number]", parameterToString(*r.pageNumber, "")) + } + if r.pageSize != nil { + localVarQueryParams.Add("page[size]", parameterToString(*r.pageSize, "")) + } + if r.include != nil { + localVarQueryParams.Add("include", parameterToString(*r.include, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/vnd.api+json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["token"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Fastly-Key"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + _ = localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + + if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { + if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { + if i, err := strconv.Atoi(remaining); err == nil { + a.client.RateLimitRemaining = i + } + } + if reset := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Reset"); reset != "" { + if i, err := strconv.Atoi(reset); err == nil { + a.client.RateLimitReset = i + } + } + } + + return localVarReturnValue, localVarHTTPResponse, nil +} diff --git a/fastly/api_legacy_waf_rule_status.go b/fastly/api_legacy_waf_rule_status.go new file mode 100644 index 00000000..50519000 --- /dev/null +++ b/fastly/api_legacy_waf_rule_status.go @@ -0,0 +1,792 @@ +// Package fastly is an API client library for interacting with most facets of the Fastly API. +package fastly + +/* +Fastly API + +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://developer.fastly.com/reference/api/) + +API version: 1.0.0 +Contact: oss@fastly.com +*/ + +// This code is auto-generated; DO NOT EDIT. + + +import ( + "bytes" + "context" + "io/ioutil" + "net/http" + gourl "net/url" + "strconv" + "strings" +) + +// Linger please +var ( + _ context.Context +) + +// LegacyWafRuleStatusAPI defines an interface for interacting with the resource. +type LegacyWafRuleStatusAPI interface { + + /* + GetWafFirewallRuleStatus Get the status of a rule on a firewall + + Get a specific rule status object for a particular service, firewall, and rule. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param firewallID Alphanumeric string identifying a Firewall. + @param wafRuleID Alphanumeric string identifying a WAF rule. + @return APIGetWafFirewallRuleStatusRequest + + Deprecated + */ + GetWafFirewallRuleStatus(ctx context.Context, serviceID string, firewallID string, wafRuleID string) APIGetWafFirewallRuleStatusRequest + + // GetWafFirewallRuleStatusExecute executes the request + // @return map[string]any + // Deprecated + GetWafFirewallRuleStatusExecute(r APIGetWafFirewallRuleStatusRequest) (map[string]any, *http.Response, error) + + /* + ListWafFirewallRuleStatuses List rule statuses + + List all rule statuses for a particular service and firewall. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param firewallID Alphanumeric string identifying a Firewall. + @return APIListWafFirewallRuleStatusesRequest + + Deprecated + */ + ListWafFirewallRuleStatuses(ctx context.Context, serviceID string, firewallID string) APIListWafFirewallRuleStatusesRequest + + // ListWafFirewallRuleStatusesExecute executes the request + // @return map[string]any + // Deprecated + ListWafFirewallRuleStatusesExecute(r APIListWafFirewallRuleStatusesRequest) (map[string]any, *http.Response, error) + + /* + UpdateWafFirewallRuleStatus Update the status of a rule + + Update a rule status for a particular service, firewall, and rule. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param firewallID Alphanumeric string identifying a Firewall. + @param wafRuleID Alphanumeric string identifying a WAF rule. + @return APIUpdateWafFirewallRuleStatusRequest + + Deprecated + */ + UpdateWafFirewallRuleStatus(ctx context.Context, serviceID string, firewallID string, wafRuleID string) APIUpdateWafFirewallRuleStatusRequest + + // UpdateWafFirewallRuleStatusExecute executes the request + // @return map[string]any + // Deprecated + UpdateWafFirewallRuleStatusExecute(r APIUpdateWafFirewallRuleStatusRequest) (map[string]any, *http.Response, error) + + /* + UpdateWafFirewallRuleStatusesTag Create or update status of a tagged group of rules + + Create or update all rule statuses for a particular service and firewall, based on tag name. By default, only rule status for enabled rules (with status log or block) will be updated. To update rule statuses for disabled rules under the specified tag, use the force attribute. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param firewallID Alphanumeric string identifying a Firewall. + @return APIUpdateWafFirewallRuleStatusesTagRequest + + Deprecated + */ + UpdateWafFirewallRuleStatusesTag(ctx context.Context, serviceID string, firewallID string) APIUpdateWafFirewallRuleStatusesTagRequest + + // UpdateWafFirewallRuleStatusesTagExecute executes the request + // @return map[string]any + // Deprecated + UpdateWafFirewallRuleStatusesTagExecute(r APIUpdateWafFirewallRuleStatusesTagRequest) (map[string]any, *http.Response, error) +} + +// LegacyWafRuleStatusAPIService LegacyWafRuleStatusAPI service +type LegacyWafRuleStatusAPIService service + +// APIGetWafFirewallRuleStatusRequest represents a request for the resource. +type APIGetWafFirewallRuleStatusRequest struct { + ctx context.Context + APIService LegacyWafRuleStatusAPI + serviceID string + firewallID string + wafRuleID string +} + + +// Execute calls the API using the request data configured. +func (r APIGetWafFirewallRuleStatusRequest) Execute() (map[string]any, *http.Response, error) { + return r.APIService.GetWafFirewallRuleStatusExecute(r) +} + +/* +GetWafFirewallRuleStatus Get the status of a rule on a firewall + +Get a specific rule status object for a particular service, firewall, and rule. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param firewallID Alphanumeric string identifying a Firewall. + @param wafRuleID Alphanumeric string identifying a WAF rule. + @return APIGetWafFirewallRuleStatusRequest + +Deprecated +*/ +func (a *LegacyWafRuleStatusAPIService) GetWafFirewallRuleStatus(ctx context.Context, serviceID string, firewallID string, wafRuleID string) APIGetWafFirewallRuleStatusRequest { + return APIGetWafFirewallRuleStatusRequest{ + APIService: a, + ctx: ctx, + serviceID: serviceID, + firewallID: firewallID, + wafRuleID: wafRuleID, + } +} + +// GetWafFirewallRuleStatusExecute executes the request +// @return map[string]any +// Deprecated +func (a *LegacyWafRuleStatusAPIService) GetWafFirewallRuleStatusExecute(r APIGetWafFirewallRuleStatusRequest) (map[string]any, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody any + formFiles []formFile + localVarReturnValue map[string]any + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "LegacyWafRuleStatusAPIService.GetWafFirewallRuleStatus") + if err != nil { + return localVarReturnValue, nil, &GenericAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/service/{service_id}/wafs/{firewall_id}/rules/{waf_rule_id}/rule_status" + localVarPath = strings.ReplaceAll(localVarPath, "{"+"service_id"+"}", gourl.PathEscape(parameterToString(r.serviceID, ""))) + localVarPath = strings.ReplaceAll(localVarPath, "{"+"firewall_id"+"}", gourl.PathEscape(parameterToString(r.firewallID, ""))) + localVarPath = strings.ReplaceAll(localVarPath, "{"+"waf_rule_id"+"}", gourl.PathEscape(parameterToString(r.wafRuleID, ""))) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := gourl.Values{} + localVarFormParams := gourl.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/vnd.api+json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["token"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Fastly-Key"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + _ = localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + + if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { + if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { + if i, err := strconv.Atoi(remaining); err == nil { + a.client.RateLimitRemaining = i + } + } + if reset := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Reset"); reset != "" { + if i, err := strconv.Atoi(reset); err == nil { + a.client.RateLimitReset = i + } + } + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// APIListWafFirewallRuleStatusesRequest represents a request for the resource. +type APIListWafFirewallRuleStatusesRequest struct { + ctx context.Context + APIService LegacyWafRuleStatusAPI + serviceID string + firewallID string + filterStatus *string + filterRuleMessage *string + filterRuleRuleID *string + filterRuleTags *string + filterRuleTagsName *string + include *string + pageNumber *int32 + pageSize *int32 +} + +// FilterStatus Limit results to rule statuses with the specified status. +func (r *APIListWafFirewallRuleStatusesRequest) FilterStatus(filterStatus string) *APIListWafFirewallRuleStatusesRequest { + r.filterStatus = &filterStatus + return r +} +// FilterRuleMessage Limit results to rule statuses whose rules have the specified message. +func (r *APIListWafFirewallRuleStatusesRequest) FilterRuleMessage(filterRuleMessage string) *APIListWafFirewallRuleStatusesRequest { + r.filterRuleMessage = &filterRuleMessage + return r +} +// FilterRuleRuleID Limit results to rule statuses whose rules represent the specified ModSecurity rule_id. +func (r *APIListWafFirewallRuleStatusesRequest) FilterRuleRuleID(filterRuleRuleID string) *APIListWafFirewallRuleStatusesRequest { + r.filterRuleRuleID = &filterRuleRuleID + return r +} +// FilterRuleTags Limit results to rule statuses whose rules relate to the specified tag IDs. +func (r *APIListWafFirewallRuleStatusesRequest) FilterRuleTags(filterRuleTags string) *APIListWafFirewallRuleStatusesRequest { + r.filterRuleTags = &filterRuleTags + return r +} +// FilterRuleTagsName Limit results to rule statuses whose rules related to the named tags. +func (r *APIListWafFirewallRuleStatusesRequest) FilterRuleTagsName(filterRuleTagsName string) *APIListWafFirewallRuleStatusesRequest { + r.filterRuleTagsName = &filterRuleTagsName + return r +} +// Include Include relationships. Optional, comma separated values. Permitted values: `tags`. +func (r *APIListWafFirewallRuleStatusesRequest) Include(include string) *APIListWafFirewallRuleStatusesRequest { + r.include = &include + return r +} +// PageNumber Current page. +func (r *APIListWafFirewallRuleStatusesRequest) PageNumber(pageNumber int32) *APIListWafFirewallRuleStatusesRequest { + r.pageNumber = &pageNumber + return r +} +// PageSize Number of records per page. +func (r *APIListWafFirewallRuleStatusesRequest) PageSize(pageSize int32) *APIListWafFirewallRuleStatusesRequest { + r.pageSize = &pageSize + return r +} + +// Execute calls the API using the request data configured. +func (r APIListWafFirewallRuleStatusesRequest) Execute() (map[string]any, *http.Response, error) { + return r.APIService.ListWafFirewallRuleStatusesExecute(r) +} + +/* +ListWafFirewallRuleStatuses List rule statuses + +List all rule statuses for a particular service and firewall. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param firewallID Alphanumeric string identifying a Firewall. + @return APIListWafFirewallRuleStatusesRequest + +Deprecated +*/ +func (a *LegacyWafRuleStatusAPIService) ListWafFirewallRuleStatuses(ctx context.Context, serviceID string, firewallID string) APIListWafFirewallRuleStatusesRequest { + return APIListWafFirewallRuleStatusesRequest{ + APIService: a, + ctx: ctx, + serviceID: serviceID, + firewallID: firewallID, + } +} + +// ListWafFirewallRuleStatusesExecute executes the request +// @return map[string]any +// Deprecated +func (a *LegacyWafRuleStatusAPIService) ListWafFirewallRuleStatusesExecute(r APIListWafFirewallRuleStatusesRequest) (map[string]any, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody any + formFiles []formFile + localVarReturnValue map[string]any + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "LegacyWafRuleStatusAPIService.ListWafFirewallRuleStatuses") + if err != nil { + return localVarReturnValue, nil, &GenericAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/service/{service_id}/wafs/{firewall_id}/rule_statuses" + localVarPath = strings.ReplaceAll(localVarPath, "{"+"service_id"+"}", gourl.PathEscape(parameterToString(r.serviceID, ""))) + localVarPath = strings.ReplaceAll(localVarPath, "{"+"firewall_id"+"}", gourl.PathEscape(parameterToString(r.firewallID, ""))) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := gourl.Values{} + localVarFormParams := gourl.Values{} + + if r.filterStatus != nil { + localVarQueryParams.Add("filter[status]", parameterToString(*r.filterStatus, "")) + } + if r.filterRuleMessage != nil { + localVarQueryParams.Add("filter[rule][message]", parameterToString(*r.filterRuleMessage, "")) + } + if r.filterRuleRuleID != nil { + localVarQueryParams.Add("filter[rule][rule_id]", parameterToString(*r.filterRuleRuleID, "")) + } + if r.filterRuleTags != nil { + localVarQueryParams.Add("filter[rule][tags]", parameterToString(*r.filterRuleTags, "")) + } + if r.filterRuleTagsName != nil { + localVarQueryParams.Add("filter[rule][tags][name]", parameterToString(*r.filterRuleTagsName, "")) + } + if r.include != nil { + localVarQueryParams.Add("include", parameterToString(*r.include, "")) + } + if r.pageNumber != nil { + localVarQueryParams.Add("page[number]", parameterToString(*r.pageNumber, "")) + } + if r.pageSize != nil { + localVarQueryParams.Add("page[size]", parameterToString(*r.pageSize, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/vnd.api+json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["token"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Fastly-Key"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + _ = localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + + if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { + if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { + if i, err := strconv.Atoi(remaining); err == nil { + a.client.RateLimitRemaining = i + } + } + if reset := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Reset"); reset != "" { + if i, err := strconv.Atoi(reset); err == nil { + a.client.RateLimitReset = i + } + } + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// APIUpdateWafFirewallRuleStatusRequest represents a request for the resource. +type APIUpdateWafFirewallRuleStatusRequest struct { + ctx context.Context + APIService LegacyWafRuleStatusAPI + serviceID string + firewallID string + wafRuleID string + requestBody *map[string]map[string]any +} + +// RequestBody returns a pointer to a request. +func (r *APIUpdateWafFirewallRuleStatusRequest) RequestBody(requestBody map[string]map[string]any) *APIUpdateWafFirewallRuleStatusRequest { + r.requestBody = &requestBody + return r +} + +// Execute calls the API using the request data configured. +func (r APIUpdateWafFirewallRuleStatusRequest) Execute() (map[string]any, *http.Response, error) { + return r.APIService.UpdateWafFirewallRuleStatusExecute(r) +} + +/* +UpdateWafFirewallRuleStatus Update the status of a rule + +Update a rule status for a particular service, firewall, and rule. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param firewallID Alphanumeric string identifying a Firewall. + @param wafRuleID Alphanumeric string identifying a WAF rule. + @return APIUpdateWafFirewallRuleStatusRequest + +Deprecated +*/ +func (a *LegacyWafRuleStatusAPIService) UpdateWafFirewallRuleStatus(ctx context.Context, serviceID string, firewallID string, wafRuleID string) APIUpdateWafFirewallRuleStatusRequest { + return APIUpdateWafFirewallRuleStatusRequest{ + APIService: a, + ctx: ctx, + serviceID: serviceID, + firewallID: firewallID, + wafRuleID: wafRuleID, + } +} + +// UpdateWafFirewallRuleStatusExecute executes the request +// @return map[string]any +// Deprecated +func (a *LegacyWafRuleStatusAPIService) UpdateWafFirewallRuleStatusExecute(r APIUpdateWafFirewallRuleStatusRequest) (map[string]any, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody any + formFiles []formFile + localVarReturnValue map[string]any + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "LegacyWafRuleStatusAPIService.UpdateWafFirewallRuleStatus") + if err != nil { + return localVarReturnValue, nil, &GenericAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/service/{service_id}/wafs/{firewall_id}/rules/{waf_rule_id}/rule_status" + localVarPath = strings.ReplaceAll(localVarPath, "{"+"service_id"+"}", gourl.PathEscape(parameterToString(r.serviceID, ""))) + localVarPath = strings.ReplaceAll(localVarPath, "{"+"firewall_id"+"}", gourl.PathEscape(parameterToString(r.firewallID, ""))) + localVarPath = strings.ReplaceAll(localVarPath, "{"+"waf_rule_id"+"}", gourl.PathEscape(parameterToString(r.wafRuleID, ""))) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := gourl.Values{} + localVarFormParams := gourl.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/vnd.api+json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/vnd.api+json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.requestBody + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["token"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Fastly-Key"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + _ = localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + + if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { + if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { + if i, err := strconv.Atoi(remaining); err == nil { + a.client.RateLimitRemaining = i + } + } + if reset := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Reset"); reset != "" { + if i, err := strconv.Atoi(reset); err == nil { + a.client.RateLimitReset = i + } + } + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// APIUpdateWafFirewallRuleStatusesTagRequest represents a request for the resource. +type APIUpdateWafFirewallRuleStatusesTagRequest struct { + ctx context.Context + APIService LegacyWafRuleStatusAPI + serviceID string + firewallID string + name *string + force *string + requestBody *map[string]map[string]any +} + +// Name The tag name to use to determine the set of rules to update. For example, OWASP or language-php. +func (r *APIUpdateWafFirewallRuleStatusesTagRequest) Name(name string) *APIUpdateWafFirewallRuleStatusesTagRequest { + r.name = &name + return r +} +// Force Whether or not to update rule statuses for disabled rules. Optional. +func (r *APIUpdateWafFirewallRuleStatusesTagRequest) Force(force string) *APIUpdateWafFirewallRuleStatusesTagRequest { + r.force = &force + return r +} +// RequestBody returns a pointer to a request. +func (r *APIUpdateWafFirewallRuleStatusesTagRequest) RequestBody(requestBody map[string]map[string]any) *APIUpdateWafFirewallRuleStatusesTagRequest { + r.requestBody = &requestBody + return r +} + +// Execute calls the API using the request data configured. +func (r APIUpdateWafFirewallRuleStatusesTagRequest) Execute() (map[string]any, *http.Response, error) { + return r.APIService.UpdateWafFirewallRuleStatusesTagExecute(r) +} + +/* +UpdateWafFirewallRuleStatusesTag Create or update status of a tagged group of rules + +Create or update all rule statuses for a particular service and firewall, based on tag name. By default, only rule status for enabled rules (with status log or block) will be updated. To update rule statuses for disabled rules under the specified tag, use the force attribute. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param firewallID Alphanumeric string identifying a Firewall. + @return APIUpdateWafFirewallRuleStatusesTagRequest + +Deprecated +*/ +func (a *LegacyWafRuleStatusAPIService) UpdateWafFirewallRuleStatusesTag(ctx context.Context, serviceID string, firewallID string) APIUpdateWafFirewallRuleStatusesTagRequest { + return APIUpdateWafFirewallRuleStatusesTagRequest{ + APIService: a, + ctx: ctx, + serviceID: serviceID, + firewallID: firewallID, + } +} + +// UpdateWafFirewallRuleStatusesTagExecute executes the request +// @return map[string]any +// Deprecated +func (a *LegacyWafRuleStatusAPIService) UpdateWafFirewallRuleStatusesTagExecute(r APIUpdateWafFirewallRuleStatusesTagRequest) (map[string]any, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody any + formFiles []formFile + localVarReturnValue map[string]any + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "LegacyWafRuleStatusAPIService.UpdateWafFirewallRuleStatusesTag") + if err != nil { + return localVarReturnValue, nil, &GenericAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/service/{service_id}/wafs/{firewall_id}/rule_statuses" + localVarPath = strings.ReplaceAll(localVarPath, "{"+"service_id"+"}", gourl.PathEscape(parameterToString(r.serviceID, ""))) + localVarPath = strings.ReplaceAll(localVarPath, "{"+"firewall_id"+"}", gourl.PathEscape(parameterToString(r.firewallID, ""))) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := gourl.Values{} + localVarFormParams := gourl.Values{} + + if r.name != nil { + localVarQueryParams.Add("name", parameterToString(*r.name, "")) + } + if r.force != nil { + localVarQueryParams.Add("force", parameterToString(*r.force, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/vnd.api+json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/vnd.api+json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.requestBody + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["token"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Fastly-Key"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + _ = localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + + if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { + if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { + if i, err := strconv.Atoi(remaining); err == nil { + a.client.RateLimitRemaining = i + } + } + if reset := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Reset"); reset != "" { + if i, err := strconv.Atoi(reset); err == nil { + a.client.RateLimitReset = i + } + } + } + + return localVarReturnValue, localVarHTTPResponse, nil +} diff --git a/fastly/api_legacy_waf_ruleset.go b/fastly/api_legacy_waf_ruleset.go new file mode 100644 index 00000000..ca381bd0 --- /dev/null +++ b/fastly/api_legacy_waf_ruleset.go @@ -0,0 +1,524 @@ +// Package fastly is an API client library for interacting with most facets of the Fastly API. +package fastly + +/* +Fastly API + +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://developer.fastly.com/reference/api/) + +API version: 1.0.0 +Contact: oss@fastly.com +*/ + +// This code is auto-generated; DO NOT EDIT. + + +import ( + "bytes" + "context" + "io/ioutil" + "net/http" + gourl "net/url" + "strconv" + "strings" +) + +// Linger please +var ( + _ context.Context +) + +// LegacyWafRulesetAPI defines an interface for interacting with the resource. +type LegacyWafRulesetAPI interface { + + /* + GetWafRuleset Get a WAF ruleset + + Get a WAF ruleset for a particular service and firewall object. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param firewallID Alphanumeric string identifying a Firewall. + @return APIGetWafRulesetRequest + + Deprecated + */ + GetWafRuleset(ctx context.Context, serviceID string, firewallID string) APIGetWafRulesetRequest + + // GetWafRulesetExecute executes the request + // @return map[string]any + // Deprecated + GetWafRulesetExecute(r APIGetWafRulesetRequest) (map[string]any, *http.Response, error) + + /* + GetWafRulesetVcl Generate WAF ruleset VCL + + Get a preview of the WAF ruleset VCL for a particular service and firewall object based on changes to WAF configuration before deploying the ruleset. The response will include a link to status of the background VCL generation job. Once the background job is completed, the preview WAF ruleset VCL can be retrieved from the status response. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param firewallID Alphanumeric string identifying a Firewall. + @return APIGetWafRulesetVclRequest + + Deprecated + */ + GetWafRulesetVcl(ctx context.Context, serviceID string, firewallID string) APIGetWafRulesetVclRequest + + // GetWafRulesetVclExecute executes the request + // @return map[string]any + // Deprecated + GetWafRulesetVclExecute(r APIGetWafRulesetVclRequest) (map[string]any, *http.Response, error) + + /* + UpdateWafRuleset Update a WAF ruleset + + Update the WAF ruleset for a particular service and firewall object. Use the URL in the response to view the WAF ruleset deploy status. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param firewallID Alphanumeric string identifying a Firewall. + @return APIUpdateWafRulesetRequest + + Deprecated + */ + UpdateWafRuleset(ctx context.Context, serviceID string, firewallID string) APIUpdateWafRulesetRequest + + // UpdateWafRulesetExecute executes the request + // @return map[string]any + // Deprecated + UpdateWafRulesetExecute(r APIUpdateWafRulesetRequest) (map[string]any, *http.Response, error) +} + +// LegacyWafRulesetAPIService LegacyWafRulesetAPI service +type LegacyWafRulesetAPIService service + +// APIGetWafRulesetRequest represents a request for the resource. +type APIGetWafRulesetRequest struct { + ctx context.Context + APIService LegacyWafRulesetAPI + serviceID string + firewallID string +} + + +// Execute calls the API using the request data configured. +func (r APIGetWafRulesetRequest) Execute() (map[string]any, *http.Response, error) { + return r.APIService.GetWafRulesetExecute(r) +} + +/* +GetWafRuleset Get a WAF ruleset + +Get a WAF ruleset for a particular service and firewall object. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param firewallID Alphanumeric string identifying a Firewall. + @return APIGetWafRulesetRequest + +Deprecated +*/ +func (a *LegacyWafRulesetAPIService) GetWafRuleset(ctx context.Context, serviceID string, firewallID string) APIGetWafRulesetRequest { + return APIGetWafRulesetRequest{ + APIService: a, + ctx: ctx, + serviceID: serviceID, + firewallID: firewallID, + } +} + +// GetWafRulesetExecute executes the request +// @return map[string]any +// Deprecated +func (a *LegacyWafRulesetAPIService) GetWafRulesetExecute(r APIGetWafRulesetRequest) (map[string]any, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody any + formFiles []formFile + localVarReturnValue map[string]any + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "LegacyWafRulesetAPIService.GetWafRuleset") + if err != nil { + return localVarReturnValue, nil, &GenericAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/service/{service_id}/wafs/{firewall_id}/ruleset" + localVarPath = strings.ReplaceAll(localVarPath, "{"+"service_id"+"}", gourl.PathEscape(parameterToString(r.serviceID, ""))) + localVarPath = strings.ReplaceAll(localVarPath, "{"+"firewall_id"+"}", gourl.PathEscape(parameterToString(r.firewallID, ""))) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := gourl.Values{} + localVarFormParams := gourl.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/vnd.api+json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["token"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Fastly-Key"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + _ = localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + + if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { + if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { + if i, err := strconv.Atoi(remaining); err == nil { + a.client.RateLimitRemaining = i + } + } + if reset := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Reset"); reset != "" { + if i, err := strconv.Atoi(reset); err == nil { + a.client.RateLimitReset = i + } + } + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// APIGetWafRulesetVclRequest represents a request for the resource. +type APIGetWafRulesetVclRequest struct { + ctx context.Context + APIService LegacyWafRulesetAPI + serviceID string + firewallID string +} + + +// Execute calls the API using the request data configured. +func (r APIGetWafRulesetVclRequest) Execute() (map[string]any, *http.Response, error) { + return r.APIService.GetWafRulesetVclExecute(r) +} + +/* +GetWafRulesetVcl Generate WAF ruleset VCL + +Get a preview of the WAF ruleset VCL for a particular service and firewall object based on changes to WAF configuration before deploying the ruleset. The response will include a link to status of the background VCL generation job. Once the background job is completed, the preview WAF ruleset VCL can be retrieved from the status response. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param firewallID Alphanumeric string identifying a Firewall. + @return APIGetWafRulesetVclRequest + +Deprecated +*/ +func (a *LegacyWafRulesetAPIService) GetWafRulesetVcl(ctx context.Context, serviceID string, firewallID string) APIGetWafRulesetVclRequest { + return APIGetWafRulesetVclRequest{ + APIService: a, + ctx: ctx, + serviceID: serviceID, + firewallID: firewallID, + } +} + +// GetWafRulesetVclExecute executes the request +// @return map[string]any +// Deprecated +func (a *LegacyWafRulesetAPIService) GetWafRulesetVclExecute(r APIGetWafRulesetVclRequest) (map[string]any, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody any + formFiles []formFile + localVarReturnValue map[string]any + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "LegacyWafRulesetAPIService.GetWafRulesetVcl") + if err != nil { + return localVarReturnValue, nil, &GenericAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/service/{service_id}/wafs/{firewall_id}/ruleset/preview" + localVarPath = strings.ReplaceAll(localVarPath, "{"+"service_id"+"}", gourl.PathEscape(parameterToString(r.serviceID, ""))) + localVarPath = strings.ReplaceAll(localVarPath, "{"+"firewall_id"+"}", gourl.PathEscape(parameterToString(r.firewallID, ""))) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := gourl.Values{} + localVarFormParams := gourl.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/vnd.api+json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["token"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Fastly-Key"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + _ = localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + + if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { + if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { + if i, err := strconv.Atoi(remaining); err == nil { + a.client.RateLimitRemaining = i + } + } + if reset := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Reset"); reset != "" { + if i, err := strconv.Atoi(reset); err == nil { + a.client.RateLimitReset = i + } + } + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// APIUpdateWafRulesetRequest represents a request for the resource. +type APIUpdateWafRulesetRequest struct { + ctx context.Context + APIService LegacyWafRulesetAPI + serviceID string + firewallID string + requestBody *map[string]map[string]any +} + +// RequestBody returns a pointer to a request. +func (r *APIUpdateWafRulesetRequest) RequestBody(requestBody map[string]map[string]any) *APIUpdateWafRulesetRequest { + r.requestBody = &requestBody + return r +} + +// Execute calls the API using the request data configured. +func (r APIUpdateWafRulesetRequest) Execute() (map[string]any, *http.Response, error) { + return r.APIService.UpdateWafRulesetExecute(r) +} + +/* +UpdateWafRuleset Update a WAF ruleset + +Update the WAF ruleset for a particular service and firewall object. Use the URL in the response to view the WAF ruleset deploy status. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param firewallID Alphanumeric string identifying a Firewall. + @return APIUpdateWafRulesetRequest + +Deprecated +*/ +func (a *LegacyWafRulesetAPIService) UpdateWafRuleset(ctx context.Context, serviceID string, firewallID string) APIUpdateWafRulesetRequest { + return APIUpdateWafRulesetRequest{ + APIService: a, + ctx: ctx, + serviceID: serviceID, + firewallID: firewallID, + } +} + +// UpdateWafRulesetExecute executes the request +// @return map[string]any +// Deprecated +func (a *LegacyWafRulesetAPIService) UpdateWafRulesetExecute(r APIUpdateWafRulesetRequest) (map[string]any, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody any + formFiles []formFile + localVarReturnValue map[string]any + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "LegacyWafRulesetAPIService.UpdateWafRuleset") + if err != nil { + return localVarReturnValue, nil, &GenericAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/service/{service_id}/wafs/{firewall_id}/ruleset" + localVarPath = strings.ReplaceAll(localVarPath, "{"+"service_id"+"}", gourl.PathEscape(parameterToString(r.serviceID, ""))) + localVarPath = strings.ReplaceAll(localVarPath, "{"+"firewall_id"+"}", gourl.PathEscape(parameterToString(r.firewallID, ""))) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := gourl.Values{} + localVarFormParams := gourl.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/vnd.api+json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/vnd.api+json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.requestBody + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["token"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Fastly-Key"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + _ = localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + + if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { + if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { + if i, err := strconv.Atoi(remaining); err == nil { + a.client.RateLimitRemaining = i + } + } + if reset := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Reset"); reset != "" { + if i, err := strconv.Atoi(reset); err == nil { + a.client.RateLimitReset = i + } + } + } + + return localVarReturnValue, localVarHTTPResponse, nil +} diff --git a/fastly/api_legacy_waf_tag.go b/fastly/api_legacy_waf_tag.go new file mode 100644 index 00000000..60b8798f --- /dev/null +++ b/fastly/api_legacy_waf_tag.go @@ -0,0 +1,221 @@ +// Package fastly is an API client library for interacting with most facets of the Fastly API. +package fastly + +/* +Fastly API + +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://developer.fastly.com/reference/api/) + +API version: 1.0.0 +Contact: oss@fastly.com +*/ + +// This code is auto-generated; DO NOT EDIT. + + +import ( + "bytes" + "context" + "io/ioutil" + "net/http" + gourl "net/url" + "strconv" +) + +// Linger please +var ( + _ context.Context +) + +// LegacyWafTagAPI defines an interface for interacting with the resource. +type LegacyWafTagAPI interface { + + /* + ListLegacyWafTags List WAF tags + + List all tags. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return APIListLegacyWafTagsRequest + + Deprecated + */ + ListLegacyWafTags(ctx context.Context) APIListLegacyWafTagsRequest + + // ListLegacyWafTagsExecute executes the request + // @return map[string]any + // Deprecated + ListLegacyWafTagsExecute(r APIListLegacyWafTagsRequest) (map[string]any, *http.Response, error) +} + +// LegacyWafTagAPIService LegacyWafTagAPI service +type LegacyWafTagAPIService service + +// APIListLegacyWafTagsRequest represents a request for the resource. +type APIListLegacyWafTagsRequest struct { + ctx context.Context + APIService LegacyWafTagAPI + filterName *string + pageNumber *int32 + pageSize *int32 + include *string +} + +// FilterName Limit the returned tags to a specific name. +func (r *APIListLegacyWafTagsRequest) FilterName(filterName string) *APIListLegacyWafTagsRequest { + r.filterName = &filterName + return r +} +// PageNumber Current page. +func (r *APIListLegacyWafTagsRequest) PageNumber(pageNumber int32) *APIListLegacyWafTagsRequest { + r.pageNumber = &pageNumber + return r +} +// PageSize Number of records per page. +func (r *APIListLegacyWafTagsRequest) PageSize(pageSize int32) *APIListLegacyWafTagsRequest { + r.pageSize = &pageSize + return r +} +// Include Include relationships. Optional, comma separated values. Permitted values: `rules`. +func (r *APIListLegacyWafTagsRequest) Include(include string) *APIListLegacyWafTagsRequest { + r.include = &include + return r +} + +// Execute calls the API using the request data configured. +func (r APIListLegacyWafTagsRequest) Execute() (map[string]any, *http.Response, error) { + return r.APIService.ListLegacyWafTagsExecute(r) +} + +/* +ListLegacyWafTags List WAF tags + +List all tags. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return APIListLegacyWafTagsRequest + +Deprecated +*/ +func (a *LegacyWafTagAPIService) ListLegacyWafTags(ctx context.Context) APIListLegacyWafTagsRequest { + return APIListLegacyWafTagsRequest{ + APIService: a, + ctx: ctx, + } +} + +// ListLegacyWafTagsExecute executes the request +// @return map[string]any +// Deprecated +func (a *LegacyWafTagAPIService) ListLegacyWafTagsExecute(r APIListLegacyWafTagsRequest) (map[string]any, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody any + formFiles []formFile + localVarReturnValue map[string]any + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "LegacyWafTagAPIService.ListLegacyWafTags") + if err != nil { + return localVarReturnValue, nil, &GenericAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/wafs/tags" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := gourl.Values{} + localVarFormParams := gourl.Values{} + + if r.filterName != nil { + localVarQueryParams.Add("filter[name]", parameterToString(*r.filterName, "")) + } + if r.pageNumber != nil { + localVarQueryParams.Add("page[number]", parameterToString(*r.pageNumber, "")) + } + if r.pageSize != nil { + localVarQueryParams.Add("page[size]", parameterToString(*r.pageSize, "")) + } + if r.include != nil { + localVarQueryParams.Add("include", parameterToString(*r.include, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/vnd.api+json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["token"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Fastly-Key"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + _ = localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + + if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { + if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { + if i, err := strconv.Atoi(remaining); err == nil { + a.client.RateLimitRemaining = i + } + } + if reset := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Reset"); reset != "" { + if i, err := strconv.Atoi(reset); err == nil { + a.client.RateLimitReset = i + } + } + } + + return localVarReturnValue, localVarHTTPResponse, nil +} diff --git a/fastly/api_legacy_waf_update_status.go b/fastly/api_legacy_waf_update_status.go new file mode 100644 index 00000000..0afd85af --- /dev/null +++ b/fastly/api_legacy_waf_update_status.go @@ -0,0 +1,388 @@ +// Package fastly is an API client library for interacting with most facets of the Fastly API. +package fastly + +/* +Fastly API + +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://developer.fastly.com/reference/api/) + +API version: 1.0.0 +Contact: oss@fastly.com +*/ + +// This code is auto-generated; DO NOT EDIT. + + +import ( + "bytes" + "context" + "io/ioutil" + "net/http" + gourl "net/url" + "strconv" + "strings" +) + +// Linger please +var ( + _ context.Context +) + +// LegacyWafUpdateStatusAPI defines an interface for interacting with the resource. +type LegacyWafUpdateStatusAPI interface { + + /* + GetWafUpdateStatus Get the status of a WAF update + + Get a specific update status object for a particular service and firewall object. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param firewallID Alphanumeric string identifying a Firewall. + @param updateStatusID Alphanumeric string identifying a WAF update status. + @return APIGetWafUpdateStatusRequest + + Deprecated + */ + GetWafUpdateStatus(ctx context.Context, serviceID string, firewallID string, updateStatusID string) APIGetWafUpdateStatusRequest + + // GetWafUpdateStatusExecute executes the request + // @return map[string]any + // Deprecated + GetWafUpdateStatusExecute(r APIGetWafUpdateStatusRequest) (map[string]any, *http.Response, error) + + /* + ListWafUpdateStatuses List update statuses + + List all update statuses for a particular service and firewall object. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param firewallID Alphanumeric string identifying a Firewall. + @return APIListWafUpdateStatusesRequest + + Deprecated + */ + ListWafUpdateStatuses(ctx context.Context, serviceID string, firewallID string) APIListWafUpdateStatusesRequest + + // ListWafUpdateStatusesExecute executes the request + // @return map[string]any + // Deprecated + ListWafUpdateStatusesExecute(r APIListWafUpdateStatusesRequest) (map[string]any, *http.Response, error) +} + +// LegacyWafUpdateStatusAPIService LegacyWafUpdateStatusAPI service +type LegacyWafUpdateStatusAPIService service + +// APIGetWafUpdateStatusRequest represents a request for the resource. +type APIGetWafUpdateStatusRequest struct { + ctx context.Context + APIService LegacyWafUpdateStatusAPI + serviceID string + firewallID string + updateStatusID string +} + + +// Execute calls the API using the request data configured. +func (r APIGetWafUpdateStatusRequest) Execute() (map[string]any, *http.Response, error) { + return r.APIService.GetWafUpdateStatusExecute(r) +} + +/* +GetWafUpdateStatus Get the status of a WAF update + +Get a specific update status object for a particular service and firewall object. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param firewallID Alphanumeric string identifying a Firewall. + @param updateStatusID Alphanumeric string identifying a WAF update status. + @return APIGetWafUpdateStatusRequest + +Deprecated +*/ +func (a *LegacyWafUpdateStatusAPIService) GetWafUpdateStatus(ctx context.Context, serviceID string, firewallID string, updateStatusID string) APIGetWafUpdateStatusRequest { + return APIGetWafUpdateStatusRequest{ + APIService: a, + ctx: ctx, + serviceID: serviceID, + firewallID: firewallID, + updateStatusID: updateStatusID, + } +} + +// GetWafUpdateStatusExecute executes the request +// @return map[string]any +// Deprecated +func (a *LegacyWafUpdateStatusAPIService) GetWafUpdateStatusExecute(r APIGetWafUpdateStatusRequest) (map[string]any, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody any + formFiles []formFile + localVarReturnValue map[string]any + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "LegacyWafUpdateStatusAPIService.GetWafUpdateStatus") + if err != nil { + return localVarReturnValue, nil, &GenericAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/service/{service_id}/wafs/{firewall_id}/update_statuses/{update_status_id}" + localVarPath = strings.ReplaceAll(localVarPath, "{"+"service_id"+"}", gourl.PathEscape(parameterToString(r.serviceID, ""))) + localVarPath = strings.ReplaceAll(localVarPath, "{"+"firewall_id"+"}", gourl.PathEscape(parameterToString(r.firewallID, ""))) + localVarPath = strings.ReplaceAll(localVarPath, "{"+"update_status_id"+"}", gourl.PathEscape(parameterToString(r.updateStatusID, ""))) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := gourl.Values{} + localVarFormParams := gourl.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/vnd.api+json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["token"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Fastly-Key"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + _ = localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + + if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { + if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { + if i, err := strconv.Atoi(remaining); err == nil { + a.client.RateLimitRemaining = i + } + } + if reset := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Reset"); reset != "" { + if i, err := strconv.Atoi(reset); err == nil { + a.client.RateLimitReset = i + } + } + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// APIListWafUpdateStatusesRequest represents a request for the resource. +type APIListWafUpdateStatusesRequest struct { + ctx context.Context + APIService LegacyWafUpdateStatusAPI + serviceID string + firewallID string + pageNumber *int32 + pageSize *int32 + include *string +} + +// PageNumber Current page. +func (r *APIListWafUpdateStatusesRequest) PageNumber(pageNumber int32) *APIListWafUpdateStatusesRequest { + r.pageNumber = &pageNumber + return r +} +// PageSize Number of records per page. +func (r *APIListWafUpdateStatusesRequest) PageSize(pageSize int32) *APIListWafUpdateStatusesRequest { + r.pageSize = &pageSize + return r +} +// Include Include relationships. Optional, comma separated values. Permitted values: `waf`. +func (r *APIListWafUpdateStatusesRequest) Include(include string) *APIListWafUpdateStatusesRequest { + r.include = &include + return r +} + +// Execute calls the API using the request data configured. +func (r APIListWafUpdateStatusesRequest) Execute() (map[string]any, *http.Response, error) { + return r.APIService.ListWafUpdateStatusesExecute(r) +} + +/* +ListWafUpdateStatuses List update statuses + +List all update statuses for a particular service and firewall object. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param firewallID Alphanumeric string identifying a Firewall. + @return APIListWafUpdateStatusesRequest + +Deprecated +*/ +func (a *LegacyWafUpdateStatusAPIService) ListWafUpdateStatuses(ctx context.Context, serviceID string, firewallID string) APIListWafUpdateStatusesRequest { + return APIListWafUpdateStatusesRequest{ + APIService: a, + ctx: ctx, + serviceID: serviceID, + firewallID: firewallID, + } +} + +// ListWafUpdateStatusesExecute executes the request +// @return map[string]any +// Deprecated +func (a *LegacyWafUpdateStatusAPIService) ListWafUpdateStatusesExecute(r APIListWafUpdateStatusesRequest) (map[string]any, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody any + formFiles []formFile + localVarReturnValue map[string]any + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "LegacyWafUpdateStatusAPIService.ListWafUpdateStatuses") + if err != nil { + return localVarReturnValue, nil, &GenericAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/service/{service_id}/wafs/{firewall_id}/update_statuses" + localVarPath = strings.ReplaceAll(localVarPath, "{"+"service_id"+"}", gourl.PathEscape(parameterToString(r.serviceID, ""))) + localVarPath = strings.ReplaceAll(localVarPath, "{"+"firewall_id"+"}", gourl.PathEscape(parameterToString(r.firewallID, ""))) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := gourl.Values{} + localVarFormParams := gourl.Values{} + + if r.pageNumber != nil { + localVarQueryParams.Add("page[number]", parameterToString(*r.pageNumber, "")) + } + if r.pageSize != nil { + localVarQueryParams.Add("page[size]", parameterToString(*r.pageSize, "")) + } + if r.include != nil { + localVarQueryParams.Add("include", parameterToString(*r.include, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/vnd.api+json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["token"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Fastly-Key"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + _ = localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + + if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { + if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { + if i, err := strconv.Atoi(remaining); err == nil { + a.client.RateLimitRemaining = i + } + } + if reset := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Reset"); reset != "" { + if i, err := strconv.Atoi(reset); err == nil { + a.client.RateLimitReset = i + } + } + } + + return localVarReturnValue, localVarHTTPResponse, nil +} diff --git a/fastly/api_logging_kafka.go b/fastly/api_logging_kafka.go index 0de4a86a..6f92d672 100644 --- a/fastly/api_logging_kafka.go +++ b/fastly/api_logging_kafka.go @@ -96,6 +96,23 @@ type LoggingKafkaAPI interface { // ListLogKafkaExecute executes the request // @return []LoggingKafkaResponse ListLogKafkaExecute(r APIListLogKafkaRequest) ([]LoggingKafkaResponse, *http.Response, error) + + /* + UpdateLogKafka Update the Kafka log endpoint + + Update the Kafka logging endpoint for a particular service and version. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param versionID Integer identifying a service version. + @param loggingKafkaName The name for the real-time logging configuration. + @return APIUpdateLogKafkaRequest + */ + UpdateLogKafka(ctx context.Context, serviceID string, versionID int32, loggingKafkaName string) APIUpdateLogKafkaRequest + + // UpdateLogKafkaExecute executes the request + // @return LoggingKafkaResponse + UpdateLogKafkaExecute(r APIUpdateLogKafkaRequest) (*LoggingKafkaResponse, *http.Response, error) } // LoggingKafkaAPIService LoggingKafkaAPI service @@ -816,6 +833,148 @@ func (a *LoggingKafkaAPIService) ListLogKafkaExecute(r APIListLogKafkaRequest) ( } + if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { + if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { + if i, err := strconv.Atoi(remaining); err == nil { + a.client.RateLimitRemaining = i + } + } + if reset := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Reset"); reset != "" { + if i, err := strconv.Atoi(reset); err == nil { + a.client.RateLimitReset = i + } + } + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// APIUpdateLogKafkaRequest represents a request for the resource. +type APIUpdateLogKafkaRequest struct { + ctx context.Context + APIService LoggingKafkaAPI + serviceID string + versionID int32 + loggingKafkaName string +} + + +// Execute calls the API using the request data configured. +func (r APIUpdateLogKafkaRequest) Execute() (*LoggingKafkaResponse, *http.Response, error) { + return r.APIService.UpdateLogKafkaExecute(r) +} + +/* +UpdateLogKafka Update the Kafka log endpoint + +Update the Kafka logging endpoint for a particular service and version. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param versionID Integer identifying a service version. + @param loggingKafkaName The name for the real-time logging configuration. + @return APIUpdateLogKafkaRequest +*/ +func (a *LoggingKafkaAPIService) UpdateLogKafka(ctx context.Context, serviceID string, versionID int32, loggingKafkaName string) APIUpdateLogKafkaRequest { + return APIUpdateLogKafkaRequest{ + APIService: a, + ctx: ctx, + serviceID: serviceID, + versionID: versionID, + loggingKafkaName: loggingKafkaName, + } +} + +// UpdateLogKafkaExecute executes the request +// @return LoggingKafkaResponse +func (a *LoggingKafkaAPIService) UpdateLogKafkaExecute(r APIUpdateLogKafkaRequest) (*LoggingKafkaResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody any + formFiles []formFile + localVarReturnValue *LoggingKafkaResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "LoggingKafkaAPIService.UpdateLogKafka") + if err != nil { + return localVarReturnValue, nil, &GenericAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/service/{service_id}/version/{version_id}/logging/kafka/{logging_kafka_name}" + localVarPath = strings.ReplaceAll(localVarPath, "{"+"service_id"+"}", gourl.PathEscape(parameterToString(r.serviceID, ""))) + localVarPath = strings.ReplaceAll(localVarPath, "{"+"version_id"+"}", gourl.PathEscape(parameterToString(r.versionID, ""))) + localVarPath = strings.ReplaceAll(localVarPath, "{"+"logging_kafka_name"+"}", gourl.PathEscape(parameterToString(r.loggingKafkaName, ""))) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := gourl.Values{} + localVarFormParams := gourl.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/x-www-form-urlencoded"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["token"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Fastly-Key"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + _ = localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { diff --git a/fastly/api_logging_kinesis.go b/fastly/api_logging_kinesis.go index 1eb9c177..c6e8eebd 100644 --- a/fastly/api_logging_kinesis.go +++ b/fastly/api_logging_kinesis.go @@ -96,6 +96,23 @@ type LoggingKinesisAPI interface { // ListLogKinesisExecute executes the request // @return []LoggingKinesisResponse ListLogKinesisExecute(r APIListLogKinesisRequest) ([]LoggingKinesisResponse, *http.Response, error) + + /* + UpdateLogKinesis Update the Amazon Kinesis log endpoint + + Update an Amazon Kinesis Data Streams logging object for a particular service and version. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param versionID Integer identifying a service version. + @param loggingKinesisName The name for the real-time logging configuration. + @return APIUpdateLogKinesisRequest + */ + UpdateLogKinesis(ctx context.Context, serviceID string, versionID int32, loggingKinesisName string) APIUpdateLogKinesisRequest + + // UpdateLogKinesisExecute executes the request + // @return LoggingKinesisResponse + UpdateLogKinesisExecute(r APIUpdateLogKinesisRequest) (*LoggingKinesisResponse, *http.Response, error) } // LoggingKinesisAPIService LoggingKinesisAPI service @@ -726,6 +743,148 @@ func (a *LoggingKinesisAPIService) ListLogKinesisExecute(r APIListLogKinesisRequ } + if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { + if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { + if i, err := strconv.Atoi(remaining); err == nil { + a.client.RateLimitRemaining = i + } + } + if reset := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Reset"); reset != "" { + if i, err := strconv.Atoi(reset); err == nil { + a.client.RateLimitReset = i + } + } + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// APIUpdateLogKinesisRequest represents a request for the resource. +type APIUpdateLogKinesisRequest struct { + ctx context.Context + APIService LoggingKinesisAPI + serviceID string + versionID int32 + loggingKinesisName string +} + + +// Execute calls the API using the request data configured. +func (r APIUpdateLogKinesisRequest) Execute() (*LoggingKinesisResponse, *http.Response, error) { + return r.APIService.UpdateLogKinesisExecute(r) +} + +/* +UpdateLogKinesis Update the Amazon Kinesis log endpoint + +Update an Amazon Kinesis Data Streams logging object for a particular service and version. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param versionID Integer identifying a service version. + @param loggingKinesisName The name for the real-time logging configuration. + @return APIUpdateLogKinesisRequest +*/ +func (a *LoggingKinesisAPIService) UpdateLogKinesis(ctx context.Context, serviceID string, versionID int32, loggingKinesisName string) APIUpdateLogKinesisRequest { + return APIUpdateLogKinesisRequest{ + APIService: a, + ctx: ctx, + serviceID: serviceID, + versionID: versionID, + loggingKinesisName: loggingKinesisName, + } +} + +// UpdateLogKinesisExecute executes the request +// @return LoggingKinesisResponse +func (a *LoggingKinesisAPIService) UpdateLogKinesisExecute(r APIUpdateLogKinesisRequest) (*LoggingKinesisResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody any + formFiles []formFile + localVarReturnValue *LoggingKinesisResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "LoggingKinesisAPIService.UpdateLogKinesis") + if err != nil { + return localVarReturnValue, nil, &GenericAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/service/{service_id}/version/{version_id}/logging/kinesis/{logging_kinesis_name}" + localVarPath = strings.ReplaceAll(localVarPath, "{"+"service_id"+"}", gourl.PathEscape(parameterToString(r.serviceID, ""))) + localVarPath = strings.ReplaceAll(localVarPath, "{"+"version_id"+"}", gourl.PathEscape(parameterToString(r.versionID, ""))) + localVarPath = strings.ReplaceAll(localVarPath, "{"+"logging_kinesis_name"+"}", gourl.PathEscape(parameterToString(r.loggingKinesisName, ""))) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := gourl.Values{} + localVarFormParams := gourl.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/x-www-form-urlencoded"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["token"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Fastly-Key"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + _ = localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { diff --git a/fastly/api_origin_inspector_historical.go b/fastly/api_origin_inspector_historical.go new file mode 100644 index 00000000..e8961ecf --- /dev/null +++ b/fastly/api_origin_inspector_historical.go @@ -0,0 +1,277 @@ +// Package fastly is an API client library for interacting with most facets of the Fastly API. +package fastly + +/* +Fastly API + +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://developer.fastly.com/reference/api/) + +API version: 1.0.0 +Contact: oss@fastly.com +*/ + +// This code is auto-generated; DO NOT EDIT. + + +import ( + "bytes" + "context" + "io/ioutil" + "net/http" + gourl "net/url" + "strconv" + "strings" +) + +// Linger please +var ( + _ context.Context +) + +// OriginInspectorHistoricalAPI defines an interface for interacting with the resource. +type OriginInspectorHistoricalAPI interface { + + /* + GetOriginInspectorHistorical Get historical origin data for a service + + Fetches historical origin metrics for a given Fastly service, optionally filtering and grouping the results by origin host, region, or POP. + + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @return APIGetOriginInspectorHistoricalRequest + */ + GetOriginInspectorHistorical(ctx context.Context, serviceID string) APIGetOriginInspectorHistoricalRequest + + // GetOriginInspectorHistoricalExecute executes the request + // @return HistoricalOriginsResponse + GetOriginInspectorHistoricalExecute(r APIGetOriginInspectorHistoricalRequest) (*HistoricalOriginsResponse, *http.Response, error) +} + +// OriginInspectorHistoricalAPIService OriginInspectorHistoricalAPI service +type OriginInspectorHistoricalAPIService service + +// APIGetOriginInspectorHistoricalRequest represents a request for the resource. +type APIGetOriginInspectorHistoricalRequest struct { + ctx context.Context + APIService OriginInspectorHistoricalAPI + serviceID string + start *string + end *string + downsample *string + metric *string + groupBy *string + limit *string + cursor *string + region *string + datacenter *string + host *string +} + +// Start A valid ISO-8601-formatted date and time, or UNIX timestamp, indicating the inclusive start of the query time range. If not provided, a default is chosen based on the provided `downsample` value. +func (r *APIGetOriginInspectorHistoricalRequest) Start(start string) *APIGetOriginInspectorHistoricalRequest { + r.start = &start + return r +} +// End A valid ISO-8601-formatted date and time, or UNIX timestamp, indicating the exclusive end of the query time range. If not provided, a default is chosen based on the provided `downsample` value. +func (r *APIGetOriginInspectorHistoricalRequest) End(end string) *APIGetOriginInspectorHistoricalRequest { + r.end = &end + return r +} +// Downsample Duration of sample windows. +func (r *APIGetOriginInspectorHistoricalRequest) Downsample(downsample string) *APIGetOriginInspectorHistoricalRequest { + r.downsample = &downsample + return r +} +// Metric The metric to retrieve. Up to ten comma-separated metrics are accepted. +func (r *APIGetOriginInspectorHistoricalRequest) Metric(metric string) *APIGetOriginInspectorHistoricalRequest { + r.metric = &metric + return r +} +// GroupBy Dimensions to return in the query. Multiple dimensions may be separated by commas. For example, `group_by=host` will return one timeseries for every origin host, as a total across all POPs. +func (r *APIGetOriginInspectorHistoricalRequest) GroupBy(groupBy string) *APIGetOriginInspectorHistoricalRequest { + r.groupBy = &groupBy + return r +} +// Limit Number of results per page. The maximum is 200. +func (r *APIGetOriginInspectorHistoricalRequest) Limit(limit string) *APIGetOriginInspectorHistoricalRequest { + r.limit = &limit + return r +} +// Cursor Cursor value from a previous response to retrieve the next page. To request the first page, this should be empty. +func (r *APIGetOriginInspectorHistoricalRequest) Cursor(cursor string) *APIGetOriginInspectorHistoricalRequest { + r.cursor = &cursor + return r +} +// Region Limit query to one or more specific geographic regions. Values should be comma-separated. +func (r *APIGetOriginInspectorHistoricalRequest) Region(region string) *APIGetOriginInspectorHistoricalRequest { + r.region = ®ion + return r +} +// Datacenter Limit query to one or more specific POPs. Values should be comma-separated. +func (r *APIGetOriginInspectorHistoricalRequest) Datacenter(datacenter string) *APIGetOriginInspectorHistoricalRequest { + r.datacenter = &datacenter + return r +} +// Host Limit query to one or more specific origin hosts. Values should be comma-separated. +func (r *APIGetOriginInspectorHistoricalRequest) Host(host string) *APIGetOriginInspectorHistoricalRequest { + r.host = &host + return r +} + +// Execute calls the API using the request data configured. +func (r APIGetOriginInspectorHistoricalRequest) Execute() (*HistoricalOriginsResponse, *http.Response, error) { + return r.APIService.GetOriginInspectorHistoricalExecute(r) +} + +/* +GetOriginInspectorHistorical Get historical origin data for a service + +Fetches historical origin metrics for a given Fastly service, optionally filtering and grouping the results by origin host, region, or POP. + + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @return APIGetOriginInspectorHistoricalRequest +*/ +func (a *OriginInspectorHistoricalAPIService) GetOriginInspectorHistorical(ctx context.Context, serviceID string) APIGetOriginInspectorHistoricalRequest { + return APIGetOriginInspectorHistoricalRequest{ + APIService: a, + ctx: ctx, + serviceID: serviceID, + } +} + +// GetOriginInspectorHistoricalExecute executes the request +// @return HistoricalOriginsResponse +func (a *OriginInspectorHistoricalAPIService) GetOriginInspectorHistoricalExecute(r APIGetOriginInspectorHistoricalRequest) (*HistoricalOriginsResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody any + formFiles []formFile + localVarReturnValue *HistoricalOriginsResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "OriginInspectorHistoricalAPIService.GetOriginInspectorHistorical") + if err != nil { + return localVarReturnValue, nil, &GenericAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/metrics/origins/services/{service_id}" + localVarPath = strings.ReplaceAll(localVarPath, "{"+"service_id"+"}", gourl.PathEscape(parameterToString(r.serviceID, ""))) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := gourl.Values{} + localVarFormParams := gourl.Values{} + + if r.start != nil { + localVarQueryParams.Add("start", parameterToString(*r.start, "")) + } + if r.end != nil { + localVarQueryParams.Add("end", parameterToString(*r.end, "")) + } + if r.downsample != nil { + localVarQueryParams.Add("downsample", parameterToString(*r.downsample, "")) + } + if r.metric != nil { + localVarQueryParams.Add("metric", parameterToString(*r.metric, "")) + } + if r.groupBy != nil { + localVarQueryParams.Add("group_by", parameterToString(*r.groupBy, "")) + } + if r.limit != nil { + localVarQueryParams.Add("limit", parameterToString(*r.limit, "")) + } + if r.cursor != nil { + localVarQueryParams.Add("cursor", parameterToString(*r.cursor, "")) + } + if r.region != nil { + localVarQueryParams.Add("region", parameterToString(*r.region, "")) + } + if r.datacenter != nil { + localVarQueryParams.Add("datacenter", parameterToString(*r.datacenter, "")) + } + if r.host != nil { + localVarQueryParams.Add("host", parameterToString(*r.host, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["token"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Fastly-Key"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + _ = localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + + if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { + if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { + if i, err := strconv.Atoi(remaining); err == nil { + a.client.RateLimitRemaining = i + } + } + if reset := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Reset"); reset != "" { + if i, err := strconv.Atoi(reset); err == nil { + a.client.RateLimitReset = i + } + } + } + + return localVarReturnValue, localVarHTTPResponse, nil +} diff --git a/fastly/api_origin_inspector_realtime.go b/fastly/api_origin_inspector_realtime.go new file mode 100644 index 00000000..24542a92 --- /dev/null +++ b/fastly/api_origin_inspector_realtime.go @@ -0,0 +1,497 @@ +// Package fastly is an API client library for interacting with most facets of the Fastly API. +package fastly + +/* +Fastly API + +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://developer.fastly.com/reference/api/) + +API version: 1.0.0 +Contact: oss@fastly.com +*/ + +// This code is auto-generated; DO NOT EDIT. + + +import ( + "bytes" + "context" + "io/ioutil" + "net/http" + gourl "net/url" + "strconv" + "strings" +) + +// Linger please +var ( + _ context.Context +) + +// OriginInspectorRealtimeAPI defines an interface for interacting with the resource. +type OriginInspectorRealtimeAPI interface { + + /* + GetOriginInspectorLast120Seconds Get real-time origin data for the last 120 seconds + + Get data for the 120 seconds preceding the latest timestamp available for a service. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @return APIGetOriginInspectorLast120SecondsRequest + */ + GetOriginInspectorLast120Seconds(ctx context.Context, serviceID string) APIGetOriginInspectorLast120SecondsRequest + + // GetOriginInspectorLast120SecondsExecute executes the request + // @return OriginInspector + GetOriginInspectorLast120SecondsExecute(r APIGetOriginInspectorLast120SecondsRequest) (*OriginInspector, *http.Response, error) + + /* + GetOriginInspectorLastMaxEntries Get a limited number of real-time origin data entries + + Get data for the `max_entries` seconds preceding the latest timestamp available for a service, up to a maximum of 120 entries. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param maxEntries Maximum number of results to display. + @return APIGetOriginInspectorLastMaxEntriesRequest + */ + GetOriginInspectorLastMaxEntries(ctx context.Context, serviceID string, maxEntries int32) APIGetOriginInspectorLastMaxEntriesRequest + + // GetOriginInspectorLastMaxEntriesExecute executes the request + // @return OriginInspector + GetOriginInspectorLastMaxEntriesExecute(r APIGetOriginInspectorLastMaxEntriesRequest) (*OriginInspector, *http.Response, error) + + /* + GetOriginInspectorLastSecond Get real-time origin data from specific time. + + Get real-time origin data for the specified reporting period. Specify `0` to get a single entry for the last complete second. The `Timestamp` field included in the response provides the time index of the latest entry in the dataset and can be provided as the `start_timestamp` of the next request for a seamless continuation of the dataset from one request to the next. +Due to processing latency, the earliest entry in the response dataset may be earlier than `start_timestamp` by the value of `AggregateDelay`. + + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param startTimestamp Timestamp in seconds (Unix epoch time). + @return APIGetOriginInspectorLastSecondRequest + */ + GetOriginInspectorLastSecond(ctx context.Context, serviceID string, startTimestamp int32) APIGetOriginInspectorLastSecondRequest + + // GetOriginInspectorLastSecondExecute executes the request + // @return OriginInspector + GetOriginInspectorLastSecondExecute(r APIGetOriginInspectorLastSecondRequest) (*OriginInspector, *http.Response, error) +} + +// OriginInspectorRealtimeAPIService OriginInspectorRealtimeAPI service +type OriginInspectorRealtimeAPIService service + +// APIGetOriginInspectorLast120SecondsRequest represents a request for the resource. +type APIGetOriginInspectorLast120SecondsRequest struct { + ctx context.Context + APIService OriginInspectorRealtimeAPI + serviceID string +} + + +// Execute calls the API using the request data configured. +func (r APIGetOriginInspectorLast120SecondsRequest) Execute() (*OriginInspector, *http.Response, error) { + return r.APIService.GetOriginInspectorLast120SecondsExecute(r) +} + +/* +GetOriginInspectorLast120Seconds Get real-time origin data for the last 120 seconds + +Get data for the 120 seconds preceding the latest timestamp available for a service. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @return APIGetOriginInspectorLast120SecondsRequest +*/ +func (a *OriginInspectorRealtimeAPIService) GetOriginInspectorLast120Seconds(ctx context.Context, serviceID string) APIGetOriginInspectorLast120SecondsRequest { + return APIGetOriginInspectorLast120SecondsRequest{ + APIService: a, + ctx: ctx, + serviceID: serviceID, + } +} + +// GetOriginInspectorLast120SecondsExecute executes the request +// @return OriginInspector +func (a *OriginInspectorRealtimeAPIService) GetOriginInspectorLast120SecondsExecute(r APIGetOriginInspectorLast120SecondsRequest) (*OriginInspector, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody any + formFiles []formFile + localVarReturnValue *OriginInspector + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "OriginInspectorRealtimeAPIService.GetOriginInspectorLast120Seconds") + if err != nil { + return localVarReturnValue, nil, &GenericAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v1/origins/{service_id}/ts/h" + localVarPath = strings.ReplaceAll(localVarPath, "{"+"service_id"+"}", gourl.PathEscape(parameterToString(r.serviceID, ""))) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := gourl.Values{} + localVarFormParams := gourl.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["token"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Fastly-Key"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + _ = localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + + if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { + if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { + if i, err := strconv.Atoi(remaining); err == nil { + a.client.RateLimitRemaining = i + } + } + if reset := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Reset"); reset != "" { + if i, err := strconv.Atoi(reset); err == nil { + a.client.RateLimitReset = i + } + } + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// APIGetOriginInspectorLastMaxEntriesRequest represents a request for the resource. +type APIGetOriginInspectorLastMaxEntriesRequest struct { + ctx context.Context + APIService OriginInspectorRealtimeAPI + serviceID string + maxEntries int32 +} + + +// Execute calls the API using the request data configured. +func (r APIGetOriginInspectorLastMaxEntriesRequest) Execute() (*OriginInspector, *http.Response, error) { + return r.APIService.GetOriginInspectorLastMaxEntriesExecute(r) +} + +/* +GetOriginInspectorLastMaxEntries Get a limited number of real-time origin data entries + +Get data for the `max_entries` seconds preceding the latest timestamp available for a service, up to a maximum of 120 entries. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param maxEntries Maximum number of results to display. + @return APIGetOriginInspectorLastMaxEntriesRequest +*/ +func (a *OriginInspectorRealtimeAPIService) GetOriginInspectorLastMaxEntries(ctx context.Context, serviceID string, maxEntries int32) APIGetOriginInspectorLastMaxEntriesRequest { + return APIGetOriginInspectorLastMaxEntriesRequest{ + APIService: a, + ctx: ctx, + serviceID: serviceID, + maxEntries: maxEntries, + } +} + +// GetOriginInspectorLastMaxEntriesExecute executes the request +// @return OriginInspector +func (a *OriginInspectorRealtimeAPIService) GetOriginInspectorLastMaxEntriesExecute(r APIGetOriginInspectorLastMaxEntriesRequest) (*OriginInspector, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody any + formFiles []formFile + localVarReturnValue *OriginInspector + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "OriginInspectorRealtimeAPIService.GetOriginInspectorLastMaxEntries") + if err != nil { + return localVarReturnValue, nil, &GenericAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v1/origins/{service_id}/ts/h/limit/{max_entries}" + localVarPath = strings.ReplaceAll(localVarPath, "{"+"service_id"+"}", gourl.PathEscape(parameterToString(r.serviceID, ""))) + localVarPath = strings.ReplaceAll(localVarPath, "{"+"max_entries"+"}", gourl.PathEscape(parameterToString(r.maxEntries, ""))) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := gourl.Values{} + localVarFormParams := gourl.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["token"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Fastly-Key"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + _ = localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + + if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { + if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { + if i, err := strconv.Atoi(remaining); err == nil { + a.client.RateLimitRemaining = i + } + } + if reset := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Reset"); reset != "" { + if i, err := strconv.Atoi(reset); err == nil { + a.client.RateLimitReset = i + } + } + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// APIGetOriginInspectorLastSecondRequest represents a request for the resource. +type APIGetOriginInspectorLastSecondRequest struct { + ctx context.Context + APIService OriginInspectorRealtimeAPI + serviceID string + startTimestamp int32 +} + + +// Execute calls the API using the request data configured. +func (r APIGetOriginInspectorLastSecondRequest) Execute() (*OriginInspector, *http.Response, error) { + return r.APIService.GetOriginInspectorLastSecondExecute(r) +} + +/* +GetOriginInspectorLastSecond Get real-time origin data from specific time. + +Get real-time origin data for the specified reporting period. Specify `0` to get a single entry for the last complete second. The `Timestamp` field included in the response provides the time index of the latest entry in the dataset and can be provided as the `start_timestamp` of the next request for a seamless continuation of the dataset from one request to the next. +Due to processing latency, the earliest entry in the response dataset may be earlier than `start_timestamp` by the value of `AggregateDelay`. + + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param startTimestamp Timestamp in seconds (Unix epoch time). + @return APIGetOriginInspectorLastSecondRequest +*/ +func (a *OriginInspectorRealtimeAPIService) GetOriginInspectorLastSecond(ctx context.Context, serviceID string, startTimestamp int32) APIGetOriginInspectorLastSecondRequest { + return APIGetOriginInspectorLastSecondRequest{ + APIService: a, + ctx: ctx, + serviceID: serviceID, + startTimestamp: startTimestamp, + } +} + +// GetOriginInspectorLastSecondExecute executes the request +// @return OriginInspector +func (a *OriginInspectorRealtimeAPIService) GetOriginInspectorLastSecondExecute(r APIGetOriginInspectorLastSecondRequest) (*OriginInspector, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody any + formFiles []formFile + localVarReturnValue *OriginInspector + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "OriginInspectorRealtimeAPIService.GetOriginInspectorLastSecond") + if err != nil { + return localVarReturnValue, nil, &GenericAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v1/origins/{service_id}/ts/{start_timestamp}" + localVarPath = strings.ReplaceAll(localVarPath, "{"+"service_id"+"}", gourl.PathEscape(parameterToString(r.serviceID, ""))) + localVarPath = strings.ReplaceAll(localVarPath, "{"+"start_timestamp"+"}", gourl.PathEscape(parameterToString(r.startTimestamp, ""))) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := gourl.Values{} + localVarFormParams := gourl.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["token"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Fastly-Key"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + _ = localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + + if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { + if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { + if i, err := strconv.Atoi(remaining); err == nil { + a.client.RateLimitRemaining = i + } + } + if reset := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Reset"); reset != "" { + if i, err := strconv.Atoi(reset); err == nil { + a.client.RateLimitReset = i + } + } + } + + return localVarReturnValue, localVarHTTPResponse, nil +} diff --git a/fastly/api_request_settings.go b/fastly/api_request_settings.go index 5db32518..f9a0cb66 100644 --- a/fastly/api_request_settings.go +++ b/fastly/api_request_settings.go @@ -31,6 +31,22 @@ var ( // RequestSettingsAPI defines an interface for interacting with the resource. type RequestSettingsAPI interface { + /* + CreateRequestSettings Create a Request Settings object + + Creates a new Request Settings object. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param versionID Integer identifying a service version. + @return APICreateRequestSettingsRequest + */ + CreateRequestSettings(ctx context.Context, serviceID string, versionID int32) APICreateRequestSettingsRequest + + // CreateRequestSettingsExecute executes the request + // @return RequestSettingsResponse + CreateRequestSettingsExecute(r APICreateRequestSettingsRequest) (*RequestSettingsResponse, *http.Response, error) + /* DeleteRequestSettings Delete a Request Settings object @@ -102,6 +118,144 @@ type RequestSettingsAPI interface { // RequestSettingsAPIService RequestSettingsAPI service type RequestSettingsAPIService service +// APICreateRequestSettingsRequest represents a request for the resource. +type APICreateRequestSettingsRequest struct { + ctx context.Context + APIService RequestSettingsAPI + serviceID string + versionID int32 +} + + +// Execute calls the API using the request data configured. +func (r APICreateRequestSettingsRequest) Execute() (*RequestSettingsResponse, *http.Response, error) { + return r.APIService.CreateRequestSettingsExecute(r) +} + +/* +CreateRequestSettings Create a Request Settings object + +Creates a new Request Settings object. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param versionID Integer identifying a service version. + @return APICreateRequestSettingsRequest +*/ +func (a *RequestSettingsAPIService) CreateRequestSettings(ctx context.Context, serviceID string, versionID int32) APICreateRequestSettingsRequest { + return APICreateRequestSettingsRequest{ + APIService: a, + ctx: ctx, + serviceID: serviceID, + versionID: versionID, + } +} + +// CreateRequestSettingsExecute executes the request +// @return RequestSettingsResponse +func (a *RequestSettingsAPIService) CreateRequestSettingsExecute(r APICreateRequestSettingsRequest) (*RequestSettingsResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody any + formFiles []formFile + localVarReturnValue *RequestSettingsResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "RequestSettingsAPIService.CreateRequestSettings") + if err != nil { + return localVarReturnValue, nil, &GenericAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/service/{service_id}/version/{version_id}/request_settings" + localVarPath = strings.ReplaceAll(localVarPath, "{"+"service_id"+"}", gourl.PathEscape(parameterToString(r.serviceID, ""))) + localVarPath = strings.ReplaceAll(localVarPath, "{"+"version_id"+"}", gourl.PathEscape(parameterToString(r.versionID, ""))) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := gourl.Values{} + localVarFormParams := gourl.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/x-www-form-urlencoded"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["token"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Fastly-Key"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + _ = localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + + if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { + if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { + if i, err := strconv.Atoi(remaining); err == nil { + a.client.RateLimitRemaining = i + } + } + if reset := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Reset"); reset != "" { + if i, err := strconv.Atoi(reset); err == nil { + a.client.RateLimitReset = i + } + } + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + // APIDeleteRequestSettingsRequest represents a request for the resource. type APIDeleteRequestSettingsRequest struct { ctx context.Context diff --git a/fastly/api_response_object.go b/fastly/api_response_object.go index a323fc98..1b239e29 100644 --- a/fastly/api_response_object.go +++ b/fastly/api_response_object.go @@ -31,6 +31,22 @@ var ( // ResponseObjectAPI defines an interface for interacting with the resource. type ResponseObjectAPI interface { + /* + CreateResponseObject Create a Response object + + Creates a new Response Object. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param versionID Integer identifying a service version. + @return APICreateResponseObjectRequest + */ + CreateResponseObject(ctx context.Context, serviceID string, versionID int32) APICreateResponseObjectRequest + + // CreateResponseObjectExecute executes the request + // @return ResponseObjectResponse + CreateResponseObjectExecute(r APICreateResponseObjectRequest) (*ResponseObjectResponse, *http.Response, error) + /* DeleteResponseObject Delete a Response Object @@ -80,11 +96,166 @@ type ResponseObjectAPI interface { // ListResponseObjectsExecute executes the request // @return []ResponseObjectResponse ListResponseObjectsExecute(r APIListResponseObjectsRequest) ([]ResponseObjectResponse, *http.Response, error) + + /* + UpdateResponseObject Update a Response object + + Updates the specified Response Object. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param versionID Integer identifying a service version. + @param responseObjectName Name for the request settings. + @return APIUpdateResponseObjectRequest + */ + UpdateResponseObject(ctx context.Context, serviceID string, versionID int32, responseObjectName string) APIUpdateResponseObjectRequest + + // UpdateResponseObjectExecute executes the request + // @return ResponseObjectResponse + UpdateResponseObjectExecute(r APIUpdateResponseObjectRequest) (*ResponseObjectResponse, *http.Response, error) } // ResponseObjectAPIService ResponseObjectAPI service type ResponseObjectAPIService service +// APICreateResponseObjectRequest represents a request for the resource. +type APICreateResponseObjectRequest struct { + ctx context.Context + APIService ResponseObjectAPI + serviceID string + versionID int32 +} + + +// Execute calls the API using the request data configured. +func (r APICreateResponseObjectRequest) Execute() (*ResponseObjectResponse, *http.Response, error) { + return r.APIService.CreateResponseObjectExecute(r) +} + +/* +CreateResponseObject Create a Response object + +Creates a new Response Object. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param versionID Integer identifying a service version. + @return APICreateResponseObjectRequest +*/ +func (a *ResponseObjectAPIService) CreateResponseObject(ctx context.Context, serviceID string, versionID int32) APICreateResponseObjectRequest { + return APICreateResponseObjectRequest{ + APIService: a, + ctx: ctx, + serviceID: serviceID, + versionID: versionID, + } +} + +// CreateResponseObjectExecute executes the request +// @return ResponseObjectResponse +func (a *ResponseObjectAPIService) CreateResponseObjectExecute(r APICreateResponseObjectRequest) (*ResponseObjectResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody any + formFiles []formFile + localVarReturnValue *ResponseObjectResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ResponseObjectAPIService.CreateResponseObject") + if err != nil { + return localVarReturnValue, nil, &GenericAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/service/{service_id}/version/{version_id}/response_object" + localVarPath = strings.ReplaceAll(localVarPath, "{"+"service_id"+"}", gourl.PathEscape(parameterToString(r.serviceID, ""))) + localVarPath = strings.ReplaceAll(localVarPath, "{"+"version_id"+"}", gourl.PathEscape(parameterToString(r.versionID, ""))) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := gourl.Values{} + localVarFormParams := gourl.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/x-www-form-urlencoded"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["token"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Fastly-Key"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + _ = localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + + if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { + if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { + if i, err := strconv.Atoi(remaining); err == nil { + a.client.RateLimitRemaining = i + } + } + if reset := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Reset"); reset != "" { + if i, err := strconv.Atoi(reset); err == nil { + a.client.RateLimitReset = i + } + } + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + // APIDeleteResponseObjectRequest represents a request for the resource. type APIDeleteResponseObjectRequest struct { ctx context.Context @@ -491,6 +662,148 @@ func (a *ResponseObjectAPIService) ListResponseObjectsExecute(r APIListResponseO } + if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { + if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { + if i, err := strconv.Atoi(remaining); err == nil { + a.client.RateLimitRemaining = i + } + } + if reset := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Reset"); reset != "" { + if i, err := strconv.Atoi(reset); err == nil { + a.client.RateLimitReset = i + } + } + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// APIUpdateResponseObjectRequest represents a request for the resource. +type APIUpdateResponseObjectRequest struct { + ctx context.Context + APIService ResponseObjectAPI + serviceID string + versionID int32 + responseObjectName string +} + + +// Execute calls the API using the request data configured. +func (r APIUpdateResponseObjectRequest) Execute() (*ResponseObjectResponse, *http.Response, error) { + return r.APIService.UpdateResponseObjectExecute(r) +} + +/* +UpdateResponseObject Update a Response object + +Updates the specified Response Object. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param versionID Integer identifying a service version. + @param responseObjectName Name for the request settings. + @return APIUpdateResponseObjectRequest +*/ +func (a *ResponseObjectAPIService) UpdateResponseObject(ctx context.Context, serviceID string, versionID int32, responseObjectName string) APIUpdateResponseObjectRequest { + return APIUpdateResponseObjectRequest{ + APIService: a, + ctx: ctx, + serviceID: serviceID, + versionID: versionID, + responseObjectName: responseObjectName, + } +} + +// UpdateResponseObjectExecute executes the request +// @return ResponseObjectResponse +func (a *ResponseObjectAPIService) UpdateResponseObjectExecute(r APIUpdateResponseObjectRequest) (*ResponseObjectResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody any + formFiles []formFile + localVarReturnValue *ResponseObjectResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ResponseObjectAPIService.UpdateResponseObject") + if err != nil { + return localVarReturnValue, nil, &GenericAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/service/{service_id}/version/{version_id}/response_object/{response_object_name}" + localVarPath = strings.ReplaceAll(localVarPath, "{"+"service_id"+"}", gourl.PathEscape(parameterToString(r.serviceID, ""))) + localVarPath = strings.ReplaceAll(localVarPath, "{"+"version_id"+"}", gourl.PathEscape(parameterToString(r.versionID, ""))) + localVarPath = strings.ReplaceAll(localVarPath, "{"+"response_object_name"+"}", gourl.PathEscape(parameterToString(r.responseObjectName, ""))) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := gourl.Values{} + localVarFormParams := gourl.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/x-www-form-urlencoded"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["token"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Fastly-Key"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + _ = localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { diff --git a/fastly/api_secret_store.go b/fastly/api_secret_store.go new file mode 100644 index 00000000..a6d23a09 --- /dev/null +++ b/fastly/api_secret_store.go @@ -0,0 +1,924 @@ +// Package fastly is an API client library for interacting with most facets of the Fastly API. +package fastly + +/* +Fastly API + +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://developer.fastly.com/reference/api/) + +API version: 1.0.0 +Contact: oss@fastly.com +*/ + +// This code is auto-generated; DO NOT EDIT. + + +import ( + "bytes" + "context" + "io/ioutil" + "net/http" + gourl "net/url" + "strconv" + "strings" +) + +// Linger please +var ( + _ context.Context +) + +// SecretStoreAPI defines an interface for interacting with the resource. +type SecretStoreAPI interface { + + /* + ClientKey Create new client key + + Create a new client key for encrypting secrets locally before uploading. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return APIClientKeyRequest + */ + ClientKey(ctx context.Context) APIClientKeyRequest + + // ClientKeyExecute executes the request + // @return ClientKey + ClientKeyExecute(r APIClientKeyRequest) (*ClientKey, *http.Response, error) + + /* + CreateSecretStore Create new secret store + + Create a new secret store. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return APICreateSecretStoreRequest + */ + CreateSecretStore(ctx context.Context) APICreateSecretStoreRequest + + // CreateSecretStoreExecute executes the request + // @return SecretStoreResponse + CreateSecretStoreExecute(r APICreateSecretStoreRequest) (*SecretStoreResponse, *http.Response, error) + + /* + DeleteSecretStore Delete secret store + + Delete a secret store and all of its contents. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param storeID + @return APIDeleteSecretStoreRequest + */ + DeleteSecretStore(ctx context.Context, storeID string) APIDeleteSecretStoreRequest + + // DeleteSecretStoreExecute executes the request + DeleteSecretStoreExecute(r APIDeleteSecretStoreRequest) (*http.Response, error) + + /* + GetSecretStore Create secret store by ID + + Get a secret store by ID. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param storeID + @return APIGetSecretStoreRequest + */ + GetSecretStore(ctx context.Context, storeID string) APIGetSecretStoreRequest + + // GetSecretStoreExecute executes the request + // @return SecretStoreResponse + GetSecretStoreExecute(r APIGetSecretStoreRequest) (*SecretStoreResponse, *http.Response, error) + + /* + GetSecretStores Get all secret stores + + Get all secret stores. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return APIGetSecretStoresRequest + */ + GetSecretStores(ctx context.Context) APIGetSecretStoresRequest + + // GetSecretStoresExecute executes the request + // @return InlineResponse2005 + GetSecretStoresExecute(r APIGetSecretStoresRequest) (*InlineResponse2005, *http.Response, error) + + /* + SigningKey Get public key + + Get the public key used for signing client keys. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return APISigningKeyRequest + */ + SigningKey(ctx context.Context) APISigningKeyRequest + + // SigningKeyExecute executes the request + // @return SigningKey + SigningKeyExecute(r APISigningKeyRequest) (*SigningKey, *http.Response, error) +} + +// SecretStoreAPIService SecretStoreAPI service +type SecretStoreAPIService service + +// APIClientKeyRequest represents a request for the resource. +type APIClientKeyRequest struct { + ctx context.Context + APIService SecretStoreAPI +} + + +// Execute calls the API using the request data configured. +func (r APIClientKeyRequest) Execute() (*ClientKey, *http.Response, error) { + return r.APIService.ClientKeyExecute(r) +} + +/* +ClientKey Create new client key + +Create a new client key for encrypting secrets locally before uploading. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return APIClientKeyRequest +*/ +func (a *SecretStoreAPIService) ClientKey(ctx context.Context) APIClientKeyRequest { + return APIClientKeyRequest{ + APIService: a, + ctx: ctx, + } +} + +// ClientKeyExecute executes the request +// @return ClientKey +func (a *SecretStoreAPIService) ClientKeyExecute(r APIClientKeyRequest) (*ClientKey, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody any + formFiles []formFile + localVarReturnValue *ClientKey + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "SecretStoreAPIService.ClientKey") + if err != nil { + return localVarReturnValue, nil, &GenericAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/resources/stores/secret/client-key" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := gourl.Values{} + localVarFormParams := gourl.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["token"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Fastly-Key"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + _ = localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + + if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { + if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { + if i, err := strconv.Atoi(remaining); err == nil { + a.client.RateLimitRemaining = i + } + } + if reset := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Reset"); reset != "" { + if i, err := strconv.Atoi(reset); err == nil { + a.client.RateLimitReset = i + } + } + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// APICreateSecretStoreRequest represents a request for the resource. +type APICreateSecretStoreRequest struct { + ctx context.Context + APIService SecretStoreAPI + secretStore *SecretStore +} + +// SecretStore returns a pointer to a request. +func (r *APICreateSecretStoreRequest) SecretStore(secretStore SecretStore) *APICreateSecretStoreRequest { + r.secretStore = &secretStore + return r +} + +// Execute calls the API using the request data configured. +func (r APICreateSecretStoreRequest) Execute() (*SecretStoreResponse, *http.Response, error) { + return r.APIService.CreateSecretStoreExecute(r) +} + +/* +CreateSecretStore Create new secret store + +Create a new secret store. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return APICreateSecretStoreRequest +*/ +func (a *SecretStoreAPIService) CreateSecretStore(ctx context.Context) APICreateSecretStoreRequest { + return APICreateSecretStoreRequest{ + APIService: a, + ctx: ctx, + } +} + +// CreateSecretStoreExecute executes the request +// @return SecretStoreResponse +func (a *SecretStoreAPIService) CreateSecretStoreExecute(r APICreateSecretStoreRequest) (*SecretStoreResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody any + formFiles []formFile + localVarReturnValue *SecretStoreResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "SecretStoreAPIService.CreateSecretStore") + if err != nil { + return localVarReturnValue, nil, &GenericAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/resources/stores/secret" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := gourl.Values{} + localVarFormParams := gourl.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.secretStore + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["token"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Fastly-Key"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + _ = localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + + if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { + if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { + if i, err := strconv.Atoi(remaining); err == nil { + a.client.RateLimitRemaining = i + } + } + if reset := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Reset"); reset != "" { + if i, err := strconv.Atoi(reset); err == nil { + a.client.RateLimitReset = i + } + } + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// APIDeleteSecretStoreRequest represents a request for the resource. +type APIDeleteSecretStoreRequest struct { + ctx context.Context + APIService SecretStoreAPI + storeID string +} + + +// Execute calls the API using the request data configured. +func (r APIDeleteSecretStoreRequest) Execute() (*http.Response, error) { + return r.APIService.DeleteSecretStoreExecute(r) +} + +/* +DeleteSecretStore Delete secret store + +Delete a secret store and all of its contents. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param storeID + @return APIDeleteSecretStoreRequest +*/ +func (a *SecretStoreAPIService) DeleteSecretStore(ctx context.Context, storeID string) APIDeleteSecretStoreRequest { + return APIDeleteSecretStoreRequest{ + APIService: a, + ctx: ctx, + storeID: storeID, + } +} + +// DeleteSecretStoreExecute executes the request +func (a *SecretStoreAPIService) DeleteSecretStoreExecute(r APIDeleteSecretStoreRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody any + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "SecretStoreAPIService.DeleteSecretStore") + if err != nil { + return nil, &GenericAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/resources/stores/secret/{store_id}" + localVarPath = strings.ReplaceAll(localVarPath, "{"+"store_id"+"}", gourl.PathEscape(parameterToString(r.storeID, ""))) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := gourl.Values{} + localVarFormParams := gourl.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["token"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Fastly-Key"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + _ = localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + + if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { + if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { + if i, err := strconv.Atoi(remaining); err == nil { + a.client.RateLimitRemaining = i + } + } + if reset := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Reset"); reset != "" { + if i, err := strconv.Atoi(reset); err == nil { + a.client.RateLimitReset = i + } + } + } + + return localVarHTTPResponse, nil +} + +// APIGetSecretStoreRequest represents a request for the resource. +type APIGetSecretStoreRequest struct { + ctx context.Context + APIService SecretStoreAPI + storeID string +} + + +// Execute calls the API using the request data configured. +func (r APIGetSecretStoreRequest) Execute() (*SecretStoreResponse, *http.Response, error) { + return r.APIService.GetSecretStoreExecute(r) +} + +/* +GetSecretStore Create secret store by ID + +Get a secret store by ID. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param storeID + @return APIGetSecretStoreRequest +*/ +func (a *SecretStoreAPIService) GetSecretStore(ctx context.Context, storeID string) APIGetSecretStoreRequest { + return APIGetSecretStoreRequest{ + APIService: a, + ctx: ctx, + storeID: storeID, + } +} + +// GetSecretStoreExecute executes the request +// @return SecretStoreResponse +func (a *SecretStoreAPIService) GetSecretStoreExecute(r APIGetSecretStoreRequest) (*SecretStoreResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody any + formFiles []formFile + localVarReturnValue *SecretStoreResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "SecretStoreAPIService.GetSecretStore") + if err != nil { + return localVarReturnValue, nil, &GenericAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/resources/stores/secret/{store_id}" + localVarPath = strings.ReplaceAll(localVarPath, "{"+"store_id"+"}", gourl.PathEscape(parameterToString(r.storeID, ""))) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := gourl.Values{} + localVarFormParams := gourl.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["token"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Fastly-Key"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + _ = localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + + if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { + if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { + if i, err := strconv.Atoi(remaining); err == nil { + a.client.RateLimitRemaining = i + } + } + if reset := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Reset"); reset != "" { + if i, err := strconv.Atoi(reset); err == nil { + a.client.RateLimitReset = i + } + } + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// APIGetSecretStoresRequest represents a request for the resource. +type APIGetSecretStoresRequest struct { + ctx context.Context + APIService SecretStoreAPI + cursor *string + limit *string +} + +// Cursor Cursor value from a previous response to retrieve the next page. To request the first page, this should be empty. +func (r *APIGetSecretStoresRequest) Cursor(cursor string) *APIGetSecretStoresRequest { + r.cursor = &cursor + return r +} +// Limit Number of results per page. The maximum is 200. +func (r *APIGetSecretStoresRequest) Limit(limit string) *APIGetSecretStoresRequest { + r.limit = &limit + return r +} + +// Execute calls the API using the request data configured. +func (r APIGetSecretStoresRequest) Execute() (*InlineResponse2005, *http.Response, error) { + return r.APIService.GetSecretStoresExecute(r) +} + +/* +GetSecretStores Get all secret stores + +Get all secret stores. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return APIGetSecretStoresRequest +*/ +func (a *SecretStoreAPIService) GetSecretStores(ctx context.Context) APIGetSecretStoresRequest { + return APIGetSecretStoresRequest{ + APIService: a, + ctx: ctx, + } +} + +// GetSecretStoresExecute executes the request +// @return InlineResponse2005 +func (a *SecretStoreAPIService) GetSecretStoresExecute(r APIGetSecretStoresRequest) (*InlineResponse2005, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody any + formFiles []formFile + localVarReturnValue *InlineResponse2005 + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "SecretStoreAPIService.GetSecretStores") + if err != nil { + return localVarReturnValue, nil, &GenericAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/resources/stores/secret" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := gourl.Values{} + localVarFormParams := gourl.Values{} + + if r.cursor != nil { + localVarQueryParams.Add("cursor", parameterToString(*r.cursor, "")) + } + if r.limit != nil { + localVarQueryParams.Add("limit", parameterToString(*r.limit, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["token"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Fastly-Key"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + _ = localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + + if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { + if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { + if i, err := strconv.Atoi(remaining); err == nil { + a.client.RateLimitRemaining = i + } + } + if reset := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Reset"); reset != "" { + if i, err := strconv.Atoi(reset); err == nil { + a.client.RateLimitReset = i + } + } + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// APISigningKeyRequest represents a request for the resource. +type APISigningKeyRequest struct { + ctx context.Context + APIService SecretStoreAPI +} + + +// Execute calls the API using the request data configured. +func (r APISigningKeyRequest) Execute() (*SigningKey, *http.Response, error) { + return r.APIService.SigningKeyExecute(r) +} + +/* +SigningKey Get public key + +Get the public key used for signing client keys. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return APISigningKeyRequest +*/ +func (a *SecretStoreAPIService) SigningKey(ctx context.Context) APISigningKeyRequest { + return APISigningKeyRequest{ + APIService: a, + ctx: ctx, + } +} + +// SigningKeyExecute executes the request +// @return SigningKey +func (a *SecretStoreAPIService) SigningKeyExecute(r APISigningKeyRequest) (*SigningKey, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody any + formFiles []formFile + localVarReturnValue *SigningKey + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "SecretStoreAPIService.SigningKey") + if err != nil { + return localVarReturnValue, nil, &GenericAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/resources/stores/secret/signing-key" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := gourl.Values{} + localVarFormParams := gourl.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["token"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Fastly-Key"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + _ = localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + + if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { + if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { + if i, err := strconv.Atoi(remaining); err == nil { + a.client.RateLimitRemaining = i + } + } + if reset := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Reset"); reset != "" { + if i, err := strconv.Atoi(reset); err == nil { + a.client.RateLimitReset = i + } + } + } + + return localVarReturnValue, localVarHTTPResponse, nil +} diff --git a/fastly/api_secret_store_item.go b/fastly/api_secret_store_item.go new file mode 100644 index 00000000..1d8a48c8 --- /dev/null +++ b/fastly/api_secret_store_item.go @@ -0,0 +1,1002 @@ +// Package fastly is an API client library for interacting with most facets of the Fastly API. +package fastly + +/* +Fastly API + +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://developer.fastly.com/reference/api/) + +API version: 1.0.0 +Contact: oss@fastly.com +*/ + +// This code is auto-generated; DO NOT EDIT. + + +import ( + "bytes" + "context" + "io/ioutil" + "net/http" + gourl "net/url" + "strconv" + "strings" +) + +// Linger please +var ( + _ context.Context +) + +// SecretStoreItemAPI defines an interface for interacting with the resource. +type SecretStoreItemAPI interface { + + /* + CreateSecret Create a new secret in a store. + + Create a new secret in a store. +Returns an error if a secret already exists with the same name. +See `PUT` and `PATCH` methods for ways to recreate an existing secret. + +The `secret` field must be Base64-encoded because a secret can contain binary data. +In the example below, the unencoded secret is "Hello, world!" + + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param storeID + @return APICreateSecretRequest + */ + CreateSecret(ctx context.Context, storeID string) APICreateSecretRequest + + // CreateSecretExecute executes the request + // @return SecretResponse + CreateSecretExecute(r APICreateSecretRequest) (*SecretResponse, *http.Response, error) + + /* + DeleteSecret Delete a secret from a store. + + Delete a secret from a store by name. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param storeID + @param secretName + @return APIDeleteSecretRequest + */ + DeleteSecret(ctx context.Context, storeID string, secretName string) APIDeleteSecretRequest + + // DeleteSecretExecute executes the request + DeleteSecretExecute(r APIDeleteSecretRequest) (*http.Response, error) + + /* + GetSecret Get secret metadata. + + Get metadata about a secret by name. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param storeID + @param secretName + @return APIGetSecretRequest + */ + GetSecret(ctx context.Context, storeID string, secretName string) APIGetSecretRequest + + // GetSecretExecute executes the request + // @return SecretResponse + GetSecretExecute(r APIGetSecretRequest) (*SecretResponse, *http.Response, error) + + /* + GetSecrets List secrets within a store. + + List all secrets within a store. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param storeID + @return APIGetSecretsRequest + */ + GetSecrets(ctx context.Context, storeID string) APIGetSecretsRequest + + // GetSecretsExecute executes the request + // @return InlineResponse2006 + GetSecretsExecute(r APIGetSecretsRequest) (*InlineResponse2006, *http.Response, error) + + /* + MustRecreateSecret Recreate a secret in a store. + + Recreate a secret based on the secret's name. +Returns an error if there is no existing secret with the same name. + +The `secret` field must be Base64-encoded because a secret can contain binary data. +In the example below, the unencoded secret is "Hello, world!" + + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param storeID + @return APIMustRecreateSecretRequest + */ + MustRecreateSecret(ctx context.Context, storeID string) APIMustRecreateSecretRequest + + // MustRecreateSecretExecute executes the request + // @return SecretResponse + MustRecreateSecretExecute(r APIMustRecreateSecretRequest) (*SecretResponse, *http.Response, error) + + /* + RecreateSecret Create or recreate a secret in a store. + + Create or recreate a secret based on the secret's name. +The response object's `recreated` field will be true if the secret was recreated. + +The `secret` field must be Base64-encoded because a secret can contain binary data. +In the example below, the unencoded secret is "Hello, world!" + + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param storeID + @return APIRecreateSecretRequest + */ + RecreateSecret(ctx context.Context, storeID string) APIRecreateSecretRequest + + // RecreateSecretExecute executes the request + // @return SecretResponse + RecreateSecretExecute(r APIRecreateSecretRequest) (*SecretResponse, *http.Response, error) +} + +// SecretStoreItemAPIService SecretStoreItemAPI service +type SecretStoreItemAPIService service + +// APICreateSecretRequest represents a request for the resource. +type APICreateSecretRequest struct { + ctx context.Context + APIService SecretStoreItemAPI + storeID string + secret *Secret +} + +// Secret returns a pointer to a request. +func (r *APICreateSecretRequest) Secret(secret Secret) *APICreateSecretRequest { + r.secret = &secret + return r +} + +// Execute calls the API using the request data configured. +func (r APICreateSecretRequest) Execute() (*SecretResponse, *http.Response, error) { + return r.APIService.CreateSecretExecute(r) +} + +/* +CreateSecret Create a new secret in a store. + +Create a new secret in a store. +Returns an error if a secret already exists with the same name. +See `PUT` and `PATCH` methods for ways to recreate an existing secret. + +The `secret` field must be Base64-encoded because a secret can contain binary data. +In the example below, the unencoded secret is "Hello, world!" + + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param storeID + @return APICreateSecretRequest +*/ +func (a *SecretStoreItemAPIService) CreateSecret(ctx context.Context, storeID string) APICreateSecretRequest { + return APICreateSecretRequest{ + APIService: a, + ctx: ctx, + storeID: storeID, + } +} + +// CreateSecretExecute executes the request +// @return SecretResponse +func (a *SecretStoreItemAPIService) CreateSecretExecute(r APICreateSecretRequest) (*SecretResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody any + formFiles []formFile + localVarReturnValue *SecretResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "SecretStoreItemAPIService.CreateSecret") + if err != nil { + return localVarReturnValue, nil, &GenericAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/resources/stores/secret/{store_id}/secrets" + localVarPath = strings.ReplaceAll(localVarPath, "{"+"store_id"+"}", gourl.PathEscape(parameterToString(r.storeID, ""))) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := gourl.Values{} + localVarFormParams := gourl.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.secret + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["token"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Fastly-Key"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + _ = localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + + if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { + if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { + if i, err := strconv.Atoi(remaining); err == nil { + a.client.RateLimitRemaining = i + } + } + if reset := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Reset"); reset != "" { + if i, err := strconv.Atoi(reset); err == nil { + a.client.RateLimitReset = i + } + } + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// APIDeleteSecretRequest represents a request for the resource. +type APIDeleteSecretRequest struct { + ctx context.Context + APIService SecretStoreItemAPI + storeID string + secretName string +} + + +// Execute calls the API using the request data configured. +func (r APIDeleteSecretRequest) Execute() (*http.Response, error) { + return r.APIService.DeleteSecretExecute(r) +} + +/* +DeleteSecret Delete a secret from a store. + +Delete a secret from a store by name. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param storeID + @param secretName + @return APIDeleteSecretRequest +*/ +func (a *SecretStoreItemAPIService) DeleteSecret(ctx context.Context, storeID string, secretName string) APIDeleteSecretRequest { + return APIDeleteSecretRequest{ + APIService: a, + ctx: ctx, + storeID: storeID, + secretName: secretName, + } +} + +// DeleteSecretExecute executes the request +func (a *SecretStoreItemAPIService) DeleteSecretExecute(r APIDeleteSecretRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody any + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "SecretStoreItemAPIService.DeleteSecret") + if err != nil { + return nil, &GenericAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/resources/stores/secret/{store_id}/secrets/{secret_name}" + localVarPath = strings.ReplaceAll(localVarPath, "{"+"store_id"+"}", gourl.PathEscape(parameterToString(r.storeID, ""))) + localVarPath = strings.ReplaceAll(localVarPath, "{"+"secret_name"+"}", gourl.PathEscape(parameterToString(r.secretName, ""))) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := gourl.Values{} + localVarFormParams := gourl.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["token"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Fastly-Key"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + _ = localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + + if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { + if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { + if i, err := strconv.Atoi(remaining); err == nil { + a.client.RateLimitRemaining = i + } + } + if reset := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Reset"); reset != "" { + if i, err := strconv.Atoi(reset); err == nil { + a.client.RateLimitReset = i + } + } + } + + return localVarHTTPResponse, nil +} + +// APIGetSecretRequest represents a request for the resource. +type APIGetSecretRequest struct { + ctx context.Context + APIService SecretStoreItemAPI + storeID string + secretName string +} + + +// Execute calls the API using the request data configured. +func (r APIGetSecretRequest) Execute() (*SecretResponse, *http.Response, error) { + return r.APIService.GetSecretExecute(r) +} + +/* +GetSecret Get secret metadata. + +Get metadata about a secret by name. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param storeID + @param secretName + @return APIGetSecretRequest +*/ +func (a *SecretStoreItemAPIService) GetSecret(ctx context.Context, storeID string, secretName string) APIGetSecretRequest { + return APIGetSecretRequest{ + APIService: a, + ctx: ctx, + storeID: storeID, + secretName: secretName, + } +} + +// GetSecretExecute executes the request +// @return SecretResponse +func (a *SecretStoreItemAPIService) GetSecretExecute(r APIGetSecretRequest) (*SecretResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody any + formFiles []formFile + localVarReturnValue *SecretResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "SecretStoreItemAPIService.GetSecret") + if err != nil { + return localVarReturnValue, nil, &GenericAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/resources/stores/secret/{store_id}/secrets/{secret_name}" + localVarPath = strings.ReplaceAll(localVarPath, "{"+"store_id"+"}", gourl.PathEscape(parameterToString(r.storeID, ""))) + localVarPath = strings.ReplaceAll(localVarPath, "{"+"secret_name"+"}", gourl.PathEscape(parameterToString(r.secretName, ""))) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := gourl.Values{} + localVarFormParams := gourl.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["token"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Fastly-Key"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + _ = localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + + if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { + if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { + if i, err := strconv.Atoi(remaining); err == nil { + a.client.RateLimitRemaining = i + } + } + if reset := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Reset"); reset != "" { + if i, err := strconv.Atoi(reset); err == nil { + a.client.RateLimitReset = i + } + } + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// APIGetSecretsRequest represents a request for the resource. +type APIGetSecretsRequest struct { + ctx context.Context + APIService SecretStoreItemAPI + storeID string + cursor *string + limit *string +} + +// Cursor Cursor value from a previous response to retrieve the next page. To request the first page, this should be empty. +func (r *APIGetSecretsRequest) Cursor(cursor string) *APIGetSecretsRequest { + r.cursor = &cursor + return r +} +// Limit Number of results per page. The maximum is 200. +func (r *APIGetSecretsRequest) Limit(limit string) *APIGetSecretsRequest { + r.limit = &limit + return r +} + +// Execute calls the API using the request data configured. +func (r APIGetSecretsRequest) Execute() (*InlineResponse2006, *http.Response, error) { + return r.APIService.GetSecretsExecute(r) +} + +/* +GetSecrets List secrets within a store. + +List all secrets within a store. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param storeID + @return APIGetSecretsRequest +*/ +func (a *SecretStoreItemAPIService) GetSecrets(ctx context.Context, storeID string) APIGetSecretsRequest { + return APIGetSecretsRequest{ + APIService: a, + ctx: ctx, + storeID: storeID, + } +} + +// GetSecretsExecute executes the request +// @return InlineResponse2006 +func (a *SecretStoreItemAPIService) GetSecretsExecute(r APIGetSecretsRequest) (*InlineResponse2006, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody any + formFiles []formFile + localVarReturnValue *InlineResponse2006 + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "SecretStoreItemAPIService.GetSecrets") + if err != nil { + return localVarReturnValue, nil, &GenericAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/resources/stores/secret/{store_id}/secrets" + localVarPath = strings.ReplaceAll(localVarPath, "{"+"store_id"+"}", gourl.PathEscape(parameterToString(r.storeID, ""))) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := gourl.Values{} + localVarFormParams := gourl.Values{} + + if r.cursor != nil { + localVarQueryParams.Add("cursor", parameterToString(*r.cursor, "")) + } + if r.limit != nil { + localVarQueryParams.Add("limit", parameterToString(*r.limit, "")) + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["token"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Fastly-Key"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + _ = localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + + if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { + if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { + if i, err := strconv.Atoi(remaining); err == nil { + a.client.RateLimitRemaining = i + } + } + if reset := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Reset"); reset != "" { + if i, err := strconv.Atoi(reset); err == nil { + a.client.RateLimitReset = i + } + } + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// APIMustRecreateSecretRequest represents a request for the resource. +type APIMustRecreateSecretRequest struct { + ctx context.Context + APIService SecretStoreItemAPI + storeID string + secret *Secret +} + +// Secret returns a pointer to a request. +func (r *APIMustRecreateSecretRequest) Secret(secret Secret) *APIMustRecreateSecretRequest { + r.secret = &secret + return r +} + +// Execute calls the API using the request data configured. +func (r APIMustRecreateSecretRequest) Execute() (*SecretResponse, *http.Response, error) { + return r.APIService.MustRecreateSecretExecute(r) +} + +/* +MustRecreateSecret Recreate a secret in a store. + +Recreate a secret based on the secret's name. +Returns an error if there is no existing secret with the same name. + +The `secret` field must be Base64-encoded because a secret can contain binary data. +In the example below, the unencoded secret is "Hello, world!" + + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param storeID + @return APIMustRecreateSecretRequest +*/ +func (a *SecretStoreItemAPIService) MustRecreateSecret(ctx context.Context, storeID string) APIMustRecreateSecretRequest { + return APIMustRecreateSecretRequest{ + APIService: a, + ctx: ctx, + storeID: storeID, + } +} + +// MustRecreateSecretExecute executes the request +// @return SecretResponse +func (a *SecretStoreItemAPIService) MustRecreateSecretExecute(r APIMustRecreateSecretRequest) (*SecretResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody any + formFiles []formFile + localVarReturnValue *SecretResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "SecretStoreItemAPIService.MustRecreateSecret") + if err != nil { + return localVarReturnValue, nil, &GenericAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/resources/stores/secret/{store_id}/secrets" + localVarPath = strings.ReplaceAll(localVarPath, "{"+"store_id"+"}", gourl.PathEscape(parameterToString(r.storeID, ""))) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := gourl.Values{} + localVarFormParams := gourl.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.secret + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["token"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Fastly-Key"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + _ = localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + + if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { + if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { + if i, err := strconv.Atoi(remaining); err == nil { + a.client.RateLimitRemaining = i + } + } + if reset := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Reset"); reset != "" { + if i, err := strconv.Atoi(reset); err == nil { + a.client.RateLimitReset = i + } + } + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// APIRecreateSecretRequest represents a request for the resource. +type APIRecreateSecretRequest struct { + ctx context.Context + APIService SecretStoreItemAPI + storeID string + secret *Secret +} + +// Secret returns a pointer to a request. +func (r *APIRecreateSecretRequest) Secret(secret Secret) *APIRecreateSecretRequest { + r.secret = &secret + return r +} + +// Execute calls the API using the request data configured. +func (r APIRecreateSecretRequest) Execute() (*SecretResponse, *http.Response, error) { + return r.APIService.RecreateSecretExecute(r) +} + +/* +RecreateSecret Create or recreate a secret in a store. + +Create or recreate a secret based on the secret's name. +The response object's `recreated` field will be true if the secret was recreated. + +The `secret` field must be Base64-encoded because a secret can contain binary data. +In the example below, the unencoded secret is "Hello, world!" + + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param storeID + @return APIRecreateSecretRequest +*/ +func (a *SecretStoreItemAPIService) RecreateSecret(ctx context.Context, storeID string) APIRecreateSecretRequest { + return APIRecreateSecretRequest{ + APIService: a, + ctx: ctx, + storeID: storeID, + } +} + +// RecreateSecretExecute executes the request +// @return SecretResponse +func (a *SecretStoreItemAPIService) RecreateSecretExecute(r APIRecreateSecretRequest) (*SecretResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody any + formFiles []formFile + localVarReturnValue *SecretResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "SecretStoreItemAPIService.RecreateSecret") + if err != nil { + return localVarReturnValue, nil, &GenericAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/resources/stores/secret/{store_id}/secrets" + localVarPath = strings.ReplaceAll(localVarPath, "{"+"store_id"+"}", gourl.PathEscape(parameterToString(r.storeID, ""))) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := gourl.Values{} + localVarFormParams := gourl.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.secret + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["token"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Fastly-Key"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + _ = localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + + if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { + if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { + if i, err := strconv.Atoi(remaining); err == nil { + a.client.RateLimitRemaining = i + } + } + if reset := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Reset"); reset != "" { + if i, err := strconv.Atoi(reset); err == nil { + a.client.RateLimitReset = i + } + } + } + + return localVarReturnValue, localVarHTTPResponse, nil +} diff --git a/fastly/api_service_authorizations.go b/fastly/api_service_authorizations.go index 291514d3..358ba681 100644 --- a/fastly/api_service_authorizations.go +++ b/fastly/api_service_authorizations.go @@ -59,6 +59,20 @@ type ServiceAuthorizationsAPI interface { // DeleteServiceAuthorizationExecute executes the request DeleteServiceAuthorizationExecute(r APIDeleteServiceAuthorizationRequest) (*http.Response, error) + /* + DeleteServiceAuthorization2 Delete service authorizations + + Delete service authorizations. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return APIDeleteServiceAuthorization2Request + */ + DeleteServiceAuthorization2(ctx context.Context) APIDeleteServiceAuthorization2Request + + // DeleteServiceAuthorization2Execute executes the request + // @return InlineResponse2007 + DeleteServiceAuthorization2Execute(r APIDeleteServiceAuthorization2Request) (*InlineResponse2007, *http.Response, error) + /* ListServiceAuthorization List service authorizations @@ -102,6 +116,20 @@ type ServiceAuthorizationsAPI interface { // UpdateServiceAuthorizationExecute executes the request // @return ServiceAuthorizationResponse UpdateServiceAuthorizationExecute(r APIUpdateServiceAuthorizationRequest) (*ServiceAuthorizationResponse, *http.Response, error) + + /* + UpdateServiceAuthorization2 Update service authorizations + + Update service authorizations. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return APIUpdateServiceAuthorization2Request + */ + UpdateServiceAuthorization2(ctx context.Context) APIUpdateServiceAuthorization2Request + + // UpdateServiceAuthorization2Execute executes the request + // @return ServiceAuthorizationsResponse + UpdateServiceAuthorization2Execute(r APIUpdateServiceAuthorization2Request) (*ServiceAuthorizationsResponse, *http.Response, error) } // ServiceAuthorizationsAPIService ServiceAuthorizationsAPI service @@ -368,6 +396,144 @@ func (a *ServiceAuthorizationsAPIService) DeleteServiceAuthorizationExecute(r AP return localVarHTTPResponse, nil } +// APIDeleteServiceAuthorization2Request represents a request for the resource. +type APIDeleteServiceAuthorization2Request struct { + ctx context.Context + APIService ServiceAuthorizationsAPI + requestBody *map[string]map[string]any +} + +// RequestBody returns a pointer to a request. +func (r *APIDeleteServiceAuthorization2Request) RequestBody(requestBody map[string]map[string]any) *APIDeleteServiceAuthorization2Request { + r.requestBody = &requestBody + return r +} + +// Execute calls the API using the request data configured. +func (r APIDeleteServiceAuthorization2Request) Execute() (*InlineResponse2007, *http.Response, error) { + return r.APIService.DeleteServiceAuthorization2Execute(r) +} + +/* +DeleteServiceAuthorization2 Delete service authorizations + +Delete service authorizations. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return APIDeleteServiceAuthorization2Request +*/ +func (a *ServiceAuthorizationsAPIService) DeleteServiceAuthorization2(ctx context.Context) APIDeleteServiceAuthorization2Request { + return APIDeleteServiceAuthorization2Request{ + APIService: a, + ctx: ctx, + } +} + +// DeleteServiceAuthorization2Execute executes the request +// @return InlineResponse2007 +func (a *ServiceAuthorizationsAPIService) DeleteServiceAuthorization2Execute(r APIDeleteServiceAuthorization2Request) (*InlineResponse2007, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody any + formFiles []formFile + localVarReturnValue *InlineResponse2007 + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ServiceAuthorizationsAPIService.DeleteServiceAuthorization2") + if err != nil { + return localVarReturnValue, nil, &GenericAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/service-authorizations" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := gourl.Values{} + localVarFormParams := gourl.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/vnd.api+json; ext=bulk"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/vnd.api+json; ext=bulk"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.requestBody + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["token"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Fastly-Key"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + _ = localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + + if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { + if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { + if i, err := strconv.Atoi(remaining); err == nil { + a.client.RateLimitRemaining = i + } + } + if reset := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Reset"); reset != "" { + if i, err := strconv.Atoi(reset); err == nil { + a.client.RateLimitReset = i + } + } + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + // APIListServiceAuthorizationRequest represents a request for the resource. type APIListServiceAuthorizationRequest struct { ctx context.Context @@ -776,6 +942,144 @@ func (a *ServiceAuthorizationsAPIService) UpdateServiceAuthorizationExecute(r AP } + if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { + if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { + if i, err := strconv.Atoi(remaining); err == nil { + a.client.RateLimitRemaining = i + } + } + if reset := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Reset"); reset != "" { + if i, err := strconv.Atoi(reset); err == nil { + a.client.RateLimitReset = i + } + } + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// APIUpdateServiceAuthorization2Request represents a request for the resource. +type APIUpdateServiceAuthorization2Request struct { + ctx context.Context + APIService ServiceAuthorizationsAPI + requestBody *map[string]map[string]any +} + +// RequestBody returns a pointer to a request. +func (r *APIUpdateServiceAuthorization2Request) RequestBody(requestBody map[string]map[string]any) *APIUpdateServiceAuthorization2Request { + r.requestBody = &requestBody + return r +} + +// Execute calls the API using the request data configured. +func (r APIUpdateServiceAuthorization2Request) Execute() (*ServiceAuthorizationsResponse, *http.Response, error) { + return r.APIService.UpdateServiceAuthorization2Execute(r) +} + +/* +UpdateServiceAuthorization2 Update service authorizations + +Update service authorizations. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return APIUpdateServiceAuthorization2Request +*/ +func (a *ServiceAuthorizationsAPIService) UpdateServiceAuthorization2(ctx context.Context) APIUpdateServiceAuthorization2Request { + return APIUpdateServiceAuthorization2Request{ + APIService: a, + ctx: ctx, + } +} + +// UpdateServiceAuthorization2Execute executes the request +// @return ServiceAuthorizationsResponse +func (a *ServiceAuthorizationsAPIService) UpdateServiceAuthorization2Execute(r APIUpdateServiceAuthorization2Request) (*ServiceAuthorizationsResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody any + formFiles []formFile + localVarReturnValue *ServiceAuthorizationsResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ServiceAuthorizationsAPIService.UpdateServiceAuthorization2") + if err != nil { + return localVarReturnValue, nil, &GenericAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/service-authorizations" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := gourl.Values{} + localVarFormParams := gourl.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/vnd.api+json; ext=bulk"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/vnd.api+json; ext=bulk"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.requestBody + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["token"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Fastly-Key"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + _ = localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { if i, err := strconv.Atoi(remaining); err == nil { diff --git a/fastly/api_snippet.go b/fastly/api_snippet.go index a03b5563..386d0689 100644 --- a/fastly/api_snippet.go +++ b/fastly/api_snippet.go @@ -113,6 +113,23 @@ type SnippetAPI interface { // @return []SnippetResponse ListSnippetsExecute(r APIListSnippetsRequest) ([]SnippetResponse, *http.Response, error) + /* + UpdateSnippet Update a versioned snippet + + Update a specific snippet for a particular service and version. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param versionID Integer identifying a service version. + @param snippetName The name for the snippet. + @return APIUpdateSnippetRequest + */ + UpdateSnippet(ctx context.Context, serviceID string, versionID int32, snippetName string) APIUpdateSnippetRequest + + // UpdateSnippetExecute executes the request + // @return SnippetResponse + UpdateSnippetExecute(r APIUpdateSnippetRequest) (*SnippetResponse, *http.Response, error) + /* UpdateSnippetDynamic Update a dynamic snippet @@ -876,6 +893,148 @@ func (a *SnippetAPIService) ListSnippetsExecute(r APIListSnippetsRequest) ([]Sni return localVarReturnValue, localVarHTTPResponse, nil } +// APIUpdateSnippetRequest represents a request for the resource. +type APIUpdateSnippetRequest struct { + ctx context.Context + APIService SnippetAPI + serviceID string + versionID int32 + snippetName string +} + + +// Execute calls the API using the request data configured. +func (r APIUpdateSnippetRequest) Execute() (*SnippetResponse, *http.Response, error) { + return r.APIService.UpdateSnippetExecute(r) +} + +/* +UpdateSnippet Update a versioned snippet + +Update a specific snippet for a particular service and version. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param serviceID Alphanumeric string identifying the service. + @param versionID Integer identifying a service version. + @param snippetName The name for the snippet. + @return APIUpdateSnippetRequest +*/ +func (a *SnippetAPIService) UpdateSnippet(ctx context.Context, serviceID string, versionID int32, snippetName string) APIUpdateSnippetRequest { + return APIUpdateSnippetRequest{ + APIService: a, + ctx: ctx, + serviceID: serviceID, + versionID: versionID, + snippetName: snippetName, + } +} + +// UpdateSnippetExecute executes the request +// @return SnippetResponse +func (a *SnippetAPIService) UpdateSnippetExecute(r APIUpdateSnippetRequest) (*SnippetResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody any + formFiles []formFile + localVarReturnValue *SnippetResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "SnippetAPIService.UpdateSnippet") + if err != nil { + return localVarReturnValue, nil, &GenericAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/service/{service_id}/version/{version_id}/snippet/{snippet_name}" + localVarPath = strings.ReplaceAll(localVarPath, "{"+"service_id"+"}", gourl.PathEscape(parameterToString(r.serviceID, ""))) + localVarPath = strings.ReplaceAll(localVarPath, "{"+"version_id"+"}", gourl.PathEscape(parameterToString(r.versionID, ""))) + localVarPath = strings.ReplaceAll(localVarPath, "{"+"snippet_name"+"}", gourl.PathEscape(parameterToString(r.snippetName, ""))) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := gourl.Values{} + localVarFormParams := gourl.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/x-www-form-urlencoded"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["token"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Fastly-Key"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + _ = localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + + if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { + if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { + if i, err := strconv.Atoi(remaining); err == nil { + a.client.RateLimitRemaining = i + } + } + if reset := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Reset"); reset != "" { + if i, err := strconv.Atoi(reset); err == nil { + a.client.RateLimitReset = i + } + } + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + // APIUpdateSnippetDynamicRequest represents a request for the resource. type APIUpdateSnippetDynamicRequest struct { ctx context.Context diff --git a/fastly/api_sudo.go b/fastly/api_sudo.go new file mode 100644 index 00000000..573c7353 --- /dev/null +++ b/fastly/api_sudo.go @@ -0,0 +1,196 @@ +// Package fastly is an API client library for interacting with most facets of the Fastly API. +package fastly + +/* +Fastly API + +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://developer.fastly.com/reference/api/) + +API version: 1.0.0 +Contact: oss@fastly.com +*/ + +// This code is auto-generated; DO NOT EDIT. + + +import ( + "bytes" + "context" + "io/ioutil" + "net/http" + gourl "net/url" + "strconv" +) + +// Linger please +var ( + _ context.Context +) + +// SudoAPI defines an interface for interacting with the resource. +type SudoAPI interface { + + /* + RequestSudoAccess Request Sudo access + + Re-authenticate to allow the provided user to obtain sudo access. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return APIRequestSudoAccessRequest + */ + RequestSudoAccess(ctx context.Context) APIRequestSudoAccessRequest + + // RequestSudoAccessExecute executes the request + // @return SudoResponse + RequestSudoAccessExecute(r APIRequestSudoAccessRequest) (*SudoResponse, *http.Response, error) +} + +// SudoAPIService SudoAPI service +type SudoAPIService service + +// APIRequestSudoAccessRequest represents a request for the resource. +type APIRequestSudoAccessRequest struct { + ctx context.Context + APIService SudoAPI + sudoRequest *SudoRequest +} + +// SudoRequest returns a pointer to a request. +func (r *APIRequestSudoAccessRequest) SudoRequest(sudoRequest SudoRequest) *APIRequestSudoAccessRequest { + r.sudoRequest = &sudoRequest + return r +} + +// Execute calls the API using the request data configured. +func (r APIRequestSudoAccessRequest) Execute() (*SudoResponse, *http.Response, error) { + return r.APIService.RequestSudoAccessExecute(r) +} + +/* +RequestSudoAccess Request Sudo access + +Re-authenticate to allow the provided user to obtain sudo access. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return APIRequestSudoAccessRequest +*/ +func (a *SudoAPIService) RequestSudoAccess(ctx context.Context) APIRequestSudoAccessRequest { + return APIRequestSudoAccessRequest{ + APIService: a, + ctx: ctx, + } +} + +// RequestSudoAccessExecute executes the request +// @return SudoResponse +func (a *SudoAPIService) RequestSudoAccessExecute(r APIRequestSudoAccessRequest) (*SudoResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody any + formFiles []formFile + localVarReturnValue *SudoResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "SudoAPIService.RequestSudoAccess") + if err != nil { + return localVarReturnValue, nil, &GenericAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/sudo" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := gourl.Values{} + localVarFormParams := gourl.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/vnd.api+json", "application/problem+json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.sudoRequest + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["token"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Fastly-Key"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + _ = localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 403 { + var v SudoGenericTokenError + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + + if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { + if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { + if i, err := strconv.Atoi(remaining); err == nil { + a.client.RateLimitRemaining = i + } + } + if reset := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Reset"); reset != "" { + if i, err := strconv.Atoi(reset); err == nil { + a.client.RateLimitReset = i + } + } + } + + return localVarReturnValue, localVarHTTPResponse, nil +} diff --git a/fastly/api_tokens.go b/fastly/api_tokens.go index 7c2b90dc..91be23b9 100644 --- a/fastly/api_tokens.go +++ b/fastly/api_tokens.go @@ -31,6 +31,34 @@ var ( // TokensAPI defines an interface for interacting with the resource. type TokensAPI interface { + /* + BulkRevokeTokens Revoke multiple tokens + + Revoke Tokens in bulk format. Users may only revoke their own tokens. Superusers may revoke tokens of others. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return APIBulkRevokeTokensRequest + */ + BulkRevokeTokens(ctx context.Context) APIBulkRevokeTokensRequest + + // BulkRevokeTokensExecute executes the request + BulkRevokeTokensExecute(r APIBulkRevokeTokensRequest) (*http.Response, error) + + /* + CreateToken Create a token + + Create an API token. If two-factor authentication is enabled for your account, review [the instructions](/reference/api/auth-tokens/user/) for including a one-time password in the request. + + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return APICreateTokenRequest + */ + CreateToken(ctx context.Context) APICreateTokenRequest + + // CreateTokenExecute executes the request + // @return TokenCreatedResponse + CreateTokenExecute(r APICreateTokenRequest) (*TokenCreatedResponse, *http.Response, error) + /* GetToken Get a token @@ -120,6 +148,274 @@ type TokensAPI interface { // TokensAPIService TokensAPI service type TokensAPIService service +// APIBulkRevokeTokensRequest represents a request for the resource. +type APIBulkRevokeTokensRequest struct { + ctx context.Context + APIService TokensAPI + requestBody *map[string]map[string]any +} + +// RequestBody returns a pointer to a request. +func (r *APIBulkRevokeTokensRequest) RequestBody(requestBody map[string]map[string]any) *APIBulkRevokeTokensRequest { + r.requestBody = &requestBody + return r +} + +// Execute calls the API using the request data configured. +func (r APIBulkRevokeTokensRequest) Execute() (*http.Response, error) { + return r.APIService.BulkRevokeTokensExecute(r) +} + +/* +BulkRevokeTokens Revoke multiple tokens + +Revoke Tokens in bulk format. Users may only revoke their own tokens. Superusers may revoke tokens of others. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return APIBulkRevokeTokensRequest +*/ +func (a *TokensAPIService) BulkRevokeTokens(ctx context.Context) APIBulkRevokeTokensRequest { + return APIBulkRevokeTokensRequest{ + APIService: a, + ctx: ctx, + } +} + +// BulkRevokeTokensExecute executes the request +func (a *TokensAPIService) BulkRevokeTokensExecute(r APIBulkRevokeTokensRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody any + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TokensAPIService.BulkRevokeTokens") + if err != nil { + return nil, &GenericAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/tokens" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := gourl.Values{} + localVarFormParams := gourl.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/vnd.api+json; ext=bulk"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.requestBody + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["token"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Fastly-Key"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + _ = localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + + if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { + if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { + if i, err := strconv.Atoi(remaining); err == nil { + a.client.RateLimitRemaining = i + } + } + if reset := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Reset"); reset != "" { + if i, err := strconv.Atoi(reset); err == nil { + a.client.RateLimitReset = i + } + } + } + + return localVarHTTPResponse, nil +} + +// APICreateTokenRequest represents a request for the resource. +type APICreateTokenRequest struct { + ctx context.Context + APIService TokensAPI +} + + +// Execute calls the API using the request data configured. +func (r APICreateTokenRequest) Execute() (*TokenCreatedResponse, *http.Response, error) { + return r.APIService.CreateTokenExecute(r) +} + +/* +CreateToken Create a token + +Create an API token. If two-factor authentication is enabled for your account, review [the instructions](/reference/api/auth-tokens/user/) for including a one-time password in the request. + + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return APICreateTokenRequest +*/ +func (a *TokensAPIService) CreateToken(ctx context.Context) APICreateTokenRequest { + return APICreateTokenRequest{ + APIService: a, + ctx: ctx, + } +} + +// CreateTokenExecute executes the request +// @return TokenCreatedResponse +func (a *TokensAPIService) CreateTokenExecute(r APICreateTokenRequest) (*TokenCreatedResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody any + formFiles []formFile + localVarReturnValue *TokenCreatedResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TokensAPIService.CreateToken") + if err != nil { + return localVarReturnValue, nil, &GenericAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/tokens" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := gourl.Values{} + localVarFormParams := gourl.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/x-www-form-urlencoded"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["token"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Fastly-Key"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + _ = localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 400 { + var v InlineResponse400 + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + + if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { + if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { + if i, err := strconv.Atoi(remaining); err == nil { + a.client.RateLimitRemaining = i + } + } + if reset := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Reset"); reset != "" { + if i, err := strconv.Atoi(reset); err == nil { + a.client.RateLimitReset = i + } + } + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + // APIGetTokenRequest represents a request for the resource. type APIGetTokenRequest struct { ctx context.Context diff --git a/fastly/api_waf_active_rules.go b/fastly/api_waf_active_rules.go index a98449a3..883bb8ed 100644 --- a/fastly/api_waf_active_rules.go +++ b/fastly/api_waf_active_rules.go @@ -31,6 +31,24 @@ var ( // WafActiveRulesAPI defines an interface for interacting with the resource. type WafActiveRulesAPI interface { + /* + BulkDeleteWafActiveRules Delete multiple active rules from a WAF + + Delete many active rules on a particular firewall version using the active rule ID. Limited to 500 rules per request. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param firewallID Alphanumeric string identifying a WAF Firewall. + @param versionID Integer identifying a service version. + @return APIBulkDeleteWafActiveRulesRequest + + Deprecated + */ + BulkDeleteWafActiveRules(ctx context.Context, firewallID string, versionID int32) APIBulkDeleteWafActiveRulesRequest + + // BulkDeleteWafActiveRulesExecute executes the request + // Deprecated + BulkDeleteWafActiveRulesExecute(r APIBulkDeleteWafActiveRulesRequest) (*http.Response, error) + /* BulkUpdateWafActiveRules Update multiple active rules @@ -169,6 +187,144 @@ type WafActiveRulesAPI interface { // WafActiveRulesAPIService WafActiveRulesAPI service type WafActiveRulesAPIService service +// APIBulkDeleteWafActiveRulesRequest represents a request for the resource. +type APIBulkDeleteWafActiveRulesRequest struct { + ctx context.Context + APIService WafActiveRulesAPI + firewallID string + versionID int32 + requestBody *map[string]map[string]any +} + +// RequestBody returns a pointer to a request. +func (r *APIBulkDeleteWafActiveRulesRequest) RequestBody(requestBody map[string]map[string]any) *APIBulkDeleteWafActiveRulesRequest { + r.requestBody = &requestBody + return r +} + +// Execute calls the API using the request data configured. +func (r APIBulkDeleteWafActiveRulesRequest) Execute() (*http.Response, error) { + return r.APIService.BulkDeleteWafActiveRulesExecute(r) +} + +/* +BulkDeleteWafActiveRules Delete multiple active rules from a WAF + +Delete many active rules on a particular firewall version using the active rule ID. Limited to 500 rules per request. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param firewallID Alphanumeric string identifying a WAF Firewall. + @param versionID Integer identifying a service version. + @return APIBulkDeleteWafActiveRulesRequest + +Deprecated +*/ +func (a *WafActiveRulesAPIService) BulkDeleteWafActiveRules(ctx context.Context, firewallID string, versionID int32) APIBulkDeleteWafActiveRulesRequest { + return APIBulkDeleteWafActiveRulesRequest{ + APIService: a, + ctx: ctx, + firewallID: firewallID, + versionID: versionID, + } +} + +// BulkDeleteWafActiveRulesExecute executes the request +// Deprecated +func (a *WafActiveRulesAPIService) BulkDeleteWafActiveRulesExecute(r APIBulkDeleteWafActiveRulesRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody any + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "WafActiveRulesAPIService.BulkDeleteWafActiveRules") + if err != nil { + return nil, &GenericAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/waf/firewalls/{firewall_id}/versions/{version_id}/active-rules" + localVarPath = strings.ReplaceAll(localVarPath, "{"+"firewall_id"+"}", gourl.PathEscape(parameterToString(r.firewallID, ""))) + localVarPath = strings.ReplaceAll(localVarPath, "{"+"version_id"+"}", gourl.PathEscape(parameterToString(r.versionID, ""))) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := gourl.Values{} + localVarFormParams := gourl.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/vnd.api+json; ext=bulk"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.requestBody + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["token"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Fastly-Key"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + _ = localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + + if localVarHTTPResponse.Request.Method != http.MethodGet && localVarHTTPResponse.Request.Method != http.MethodHead { + if remaining := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Remaining"); remaining != "" { + if i, err := strconv.Atoi(remaining); err == nil { + a.client.RateLimitRemaining = i + } + } + if reset := localVarHTTPResponse.Header.Get("Fastly-RateLimit-Reset"); reset != "" { + if i, err := strconv.Atoi(reset); err == nil { + a.client.RateLimitReset = i + } + } + } + + return localVarHTTPResponse, nil +} + // APIBulkUpdateWafActiveRulesRequest represents a request for the resource. type APIBulkUpdateWafActiveRulesRequest struct { ctx context.Context diff --git a/fastly/client.go b/fastly/client.go index 016229c6..a3365d84 100644 --- a/fastly/client.go +++ b/fastly/client.go @@ -106,6 +106,10 @@ type APIClient struct { DomainAPI DomainAPI + DomainInspectorHistoricalAPI DomainInspectorHistoricalAPI + + DomainInspectorRealtimeAPI DomainInspectorRealtimeAPI + DomainOwnershipsAPI DomainOwnershipsAPI EnabledProductsAPI EnabledProductsAPI @@ -136,6 +140,22 @@ type APIClient struct { KvStoreItemAPI KvStoreItemAPI + LegacyWafConfigurationSetsAPI LegacyWafConfigurationSetsAPI + + LegacyWafFirewallAPI LegacyWafFirewallAPI + + LegacyWafOwaspAPI LegacyWafOwaspAPI + + LegacyWafRuleAPI LegacyWafRuleAPI + + LegacyWafRuleStatusAPI LegacyWafRuleStatusAPI + + LegacyWafRulesetAPI LegacyWafRulesetAPI + + LegacyWafTagAPI LegacyWafTagAPI + + LegacyWafUpdateStatusAPI LegacyWafUpdateStatusAPI + LoggingAzureblobAPI LoggingAzureblobAPI LoggingBigqueryAPI LoggingBigqueryAPI @@ -190,6 +210,10 @@ type APIClient struct { MutualAuthenticationAPI MutualAuthenticationAPI + OriginInspectorHistoricalAPI OriginInspectorHistoricalAPI + + OriginInspectorRealtimeAPI OriginInspectorRealtimeAPI + PackageAPI PackageAPI PoolAPI PoolAPI @@ -212,6 +236,10 @@ type APIClient struct { ResponseObjectAPI ResponseObjectAPI + SecretStoreAPI SecretStoreAPI + + SecretStoreItemAPI SecretStoreItemAPI + ServerAPI ServerAPI ServiceAPI ServiceAPI @@ -226,6 +254,8 @@ type APIClient struct { StatsAPI StatsAPI + SudoAPI SudoAPI + TLSActivationsAPI TLSActivationsAPI TLSBulkCertificatesAPI TLSBulkCertificatesAPI @@ -303,6 +333,8 @@ func NewAPIClient(cfg *Configuration) *APIClient { c.DirectorAPI = (*DirectorAPIService)(&c.common) c.DirectorBackendAPI = (*DirectorBackendAPIService)(&c.common) c.DomainAPI = (*DomainAPIService)(&c.common) + c.DomainInspectorHistoricalAPI = (*DomainInspectorHistoricalAPIService)(&c.common) + c.DomainInspectorRealtimeAPI = (*DomainInspectorRealtimeAPIService)(&c.common) c.DomainOwnershipsAPI = (*DomainOwnershipsAPIService)(&c.common) c.EnabledProductsAPI = (*EnabledProductsAPIService)(&c.common) c.EventsAPI = (*EventsAPIService)(&c.common) @@ -318,6 +350,14 @@ func NewAPIClient(cfg *Configuration) *APIClient { c.InvitationsAPI = (*InvitationsAPIService)(&c.common) c.KvStoreAPI = (*KvStoreAPIService)(&c.common) c.KvStoreItemAPI = (*KvStoreItemAPIService)(&c.common) + c.LegacyWafConfigurationSetsAPI = (*LegacyWafConfigurationSetsAPIService)(&c.common) + c.LegacyWafFirewallAPI = (*LegacyWafFirewallAPIService)(&c.common) + c.LegacyWafOwaspAPI = (*LegacyWafOwaspAPIService)(&c.common) + c.LegacyWafRuleAPI = (*LegacyWafRuleAPIService)(&c.common) + c.LegacyWafRuleStatusAPI = (*LegacyWafRuleStatusAPIService)(&c.common) + c.LegacyWafRulesetAPI = (*LegacyWafRulesetAPIService)(&c.common) + c.LegacyWafTagAPI = (*LegacyWafTagAPIService)(&c.common) + c.LegacyWafUpdateStatusAPI = (*LegacyWafUpdateStatusAPIService)(&c.common) c.LoggingAzureblobAPI = (*LoggingAzureblobAPIService)(&c.common) c.LoggingBigqueryAPI = (*LoggingBigqueryAPIService)(&c.common) c.LoggingCloudfilesAPI = (*LoggingCloudfilesAPIService)(&c.common) @@ -345,6 +385,8 @@ func NewAPIClient(cfg *Configuration) *APIClient { c.LoggingSumologicAPI = (*LoggingSumologicAPIService)(&c.common) c.LoggingSyslogAPI = (*LoggingSyslogAPIService)(&c.common) c.MutualAuthenticationAPI = (*MutualAuthenticationAPIService)(&c.common) + c.OriginInspectorHistoricalAPI = (*OriginInspectorHistoricalAPIService)(&c.common) + c.OriginInspectorRealtimeAPI = (*OriginInspectorRealtimeAPIService)(&c.common) c.PackageAPI = (*PackageAPIService)(&c.common) c.PoolAPI = (*PoolAPIService)(&c.common) c.PopAPI = (*PopAPIService)(&c.common) @@ -356,6 +398,8 @@ func NewAPIClient(cfg *Configuration) *APIClient { c.RequestSettingsAPI = (*RequestSettingsAPIService)(&c.common) c.ResourceAPI = (*ResourceAPIService)(&c.common) c.ResponseObjectAPI = (*ResponseObjectAPIService)(&c.common) + c.SecretStoreAPI = (*SecretStoreAPIService)(&c.common) + c.SecretStoreItemAPI = (*SecretStoreItemAPIService)(&c.common) c.ServerAPI = (*ServerAPIService)(&c.common) c.ServiceAPI = (*ServiceAPIService)(&c.common) c.ServiceAuthorizationsAPI = (*ServiceAuthorizationsAPIService)(&c.common) @@ -363,6 +407,7 @@ func NewAPIClient(cfg *Configuration) *APIClient { c.SnippetAPI = (*SnippetAPIService)(&c.common) c.StarAPI = (*StarAPIService)(&c.common) c.StatsAPI = (*StatsAPIService)(&c.common) + c.SudoAPI = (*SudoAPIService)(&c.common) c.TLSActivationsAPI = (*TLSActivationsAPIService)(&c.common) c.TLSBulkCertificatesAPI = (*TLSBulkCertificatesAPIService)(&c.common) c.TLSCertificatesAPI = (*TLSCertificatesAPIService)(&c.common) diff --git a/fastly/configuration.go b/fastly/configuration.go index 70b83e7e..6b4aeb95 100644 --- a/fastly/configuration.go +++ b/fastly/configuration.go @@ -105,7 +105,7 @@ type Configuration struct { func NewConfiguration() *Configuration { cfg := &Configuration{ DefaultHeader: make(map[string]string), - UserAgent: "fastly-go/v1.0.0-beta.15", + UserAgent: "fastly-go/v1.0.0-beta.16", Debug: false, Servers: ServerConfigurations{ { @@ -184,6 +184,12 @@ func NewConfiguration() *Configuration { Description: "No description provided", }, }, + "ApexRedirectAPIService.CreateApexRedirect": { + { + URL: "https://api.fastly.com", + Description: "No description provided", + }, + }, "ApexRedirectAPIService.DeleteApexRedirect": { { URL: "https://api.fastly.com", @@ -454,6 +460,12 @@ func NewConfiguration() *Configuration { Description: "No description provided", }, }, + "ContactAPIService.CreateContacts": { + { + URL: "https://api.fastly.com", + Description: "No description provided", + }, + }, "ContactAPIService.DeleteContact": { { URL: "https://api.fastly.com", @@ -610,6 +622,12 @@ func NewConfiguration() *Configuration { Description: "No description provided", }, }, + "DirectorAPIService.UpdateDirector": { + { + URL: "https://api.fastly.com", + Description: "No description provided", + }, + }, "DirectorBackendAPIService.CreateDirectorBackend": { { URL: "https://api.fastly.com", @@ -670,6 +688,30 @@ func NewConfiguration() *Configuration { Description: "No description provided", }, }, + "DomainInspectorHistoricalAPIService.GetDomainInspectorHistorical": { + { + URL: "https://api.fastly.com", + Description: "No description provided", + }, + }, + "DomainInspectorRealtimeAPIService.GetDomainInspectorLast120Seconds": { + { + URL: "https://rt.fastly.com", + Description: "No description provided", + }, + }, + "DomainInspectorRealtimeAPIService.GetDomainInspectorLastMaxEntries": { + { + URL: "https://rt.fastly.com", + Description: "No description provided", + }, + }, + "DomainInspectorRealtimeAPIService.GetDomainInspectorLastSecond": { + { + URL: "https://rt.fastly.com", + Description: "No description provided", + }, + }, "DomainOwnershipsAPIService.ListDomainOwnerships": { { URL: "https://api.fastly.com", @@ -874,6 +916,18 @@ func NewConfiguration() *Configuration { Description: "No description provided", }, }, + "IamRolesAPIService.AddRolePermissions": { + { + URL: "https://api.fastly.com", + Description: "No description provided", + }, + }, + "IamRolesAPIService.CreateARole": { + { + URL: "https://api.fastly.com", + Description: "No description provided", + }, + }, "IamRolesAPIService.DeleteARole": { { URL: "https://api.fastly.com", @@ -898,6 +952,30 @@ func NewConfiguration() *Configuration { Description: "No description provided", }, }, + "IamRolesAPIService.RemoveRolePermissions": { + { + URL: "https://api.fastly.com", + Description: "No description provided", + }, + }, + "IamRolesAPIService.UpdateARole": { + { + URL: "https://api.fastly.com", + Description: "No description provided", + }, + }, + "IamServiceGroupsAPIService.AddServiceGroupServices": { + { + URL: "https://api.fastly.com", + Description: "No description provided", + }, + }, + "IamServiceGroupsAPIService.CreateAServiceGroup": { + { + URL: "https://api.fastly.com", + Description: "No description provided", + }, + }, "IamServiceGroupsAPIService.DeleteAServiceGroup": { { URL: "https://api.fastly.com", @@ -922,6 +1000,42 @@ func NewConfiguration() *Configuration { Description: "No description provided", }, }, + "IamServiceGroupsAPIService.RemoveServiceGroupServices": { + { + URL: "https://api.fastly.com", + Description: "No description provided", + }, + }, + "IamServiceGroupsAPIService.UpdateAServiceGroup": { + { + URL: "https://api.fastly.com", + Description: "No description provided", + }, + }, + "IamUserGroupsAPIService.AddUserGroupMembers": { + { + URL: "https://api.fastly.com", + Description: "No description provided", + }, + }, + "IamUserGroupsAPIService.AddUserGroupRoles": { + { + URL: "https://api.fastly.com", + Description: "No description provided", + }, + }, + "IamUserGroupsAPIService.AddUserGroupServiceGroups": { + { + URL: "https://api.fastly.com", + Description: "No description provided", + }, + }, + "IamUserGroupsAPIService.CreateAUserGroup": { + { + URL: "https://api.fastly.com", + Description: "No description provided", + }, + }, "IamUserGroupsAPIService.DeleteAUserGroup": { { URL: "https://api.fastly.com", @@ -958,6 +1072,30 @@ func NewConfiguration() *Configuration { Description: "No description provided", }, }, + "IamUserGroupsAPIService.RemoveUserGroupMembers": { + { + URL: "https://api.fastly.com", + Description: "No description provided", + }, + }, + "IamUserGroupsAPIService.RemoveUserGroupRoles": { + { + URL: "https://api.fastly.com", + Description: "No description provided", + }, + }, + "IamUserGroupsAPIService.RemoveUserGroupServiceGroups": { + { + URL: "https://api.fastly.com", + Description: "No description provided", + }, + }, + "IamUserGroupsAPIService.UpdateAUserGroup": { + { + URL: "https://api.fastly.com", + Description: "No description provided", + }, + }, "InvitationsAPIService.CreateInvitation": { { URL: "https://api.fastly.com", @@ -1024,6 +1162,174 @@ func NewConfiguration() *Configuration { Description: "No description provided", }, }, + "LegacyWafConfigurationSetsAPIService.ListWafConfigSets": { + { + URL: "https://api.fastly.com", + Description: "No description provided", + }, + }, + "LegacyWafConfigurationSetsAPIService.ListWafsConfigSet": { + { + URL: "https://api.fastly.com", + Description: "No description provided", + }, + }, + "LegacyWafConfigurationSetsAPIService.UseWafConfigSet": { + { + URL: "https://api.fastly.com", + Description: "No description provided", + }, + }, + "LegacyWafFirewallAPIService.CreateLegacyWafFirewallService": { + { + URL: "https://api.fastly.com", + Description: "No description provided", + }, + }, + "LegacyWafFirewallAPIService.DisableLegacyWafFirewall": { + { + URL: "https://api.fastly.com", + Description: "No description provided", + }, + }, + "LegacyWafFirewallAPIService.EnableLegacyWafFirewall": { + { + URL: "https://api.fastly.com", + Description: "No description provided", + }, + }, + "LegacyWafFirewallAPIService.GetLegacyWafFirewall": { + { + URL: "https://api.fastly.com", + Description: "No description provided", + }, + }, + "LegacyWafFirewallAPIService.GetLegacyWafFirewallService": { + { + URL: "https://api.fastly.com", + Description: "No description provided", + }, + }, + "LegacyWafFirewallAPIService.ListLegacyWafFirewalls": { + { + URL: "https://api.fastly.com", + Description: "No description provided", + }, + }, + "LegacyWafFirewallAPIService.ListLegacyWafFirewallsService": { + { + URL: "https://api.fastly.com", + Description: "No description provided", + }, + }, + "LegacyWafFirewallAPIService.UpdateLegacyWafFirewallService": { + { + URL: "https://api.fastly.com", + Description: "No description provided", + }, + }, + "LegacyWafOwaspAPIService.CreateOwaspSettings": { + { + URL: "https://api.fastly.com", + Description: "No description provided", + }, + }, + "LegacyWafOwaspAPIService.GetOwaspSettings": { + { + URL: "https://api.fastly.com", + Description: "No description provided", + }, + }, + "LegacyWafOwaspAPIService.UpdateOwaspSettings": { + { + URL: "https://api.fastly.com", + Description: "No description provided", + }, + }, + "LegacyWafRuleAPIService.GetLegacyWafFirewallRuleVcl": { + { + URL: "https://api.fastly.com", + Description: "No description provided", + }, + }, + "LegacyWafRuleAPIService.GetLegacyWafRule": { + { + URL: "https://api.fastly.com", + Description: "No description provided", + }, + }, + "LegacyWafRuleAPIService.GetLegacyWafRuleVcl": { + { + URL: "https://api.fastly.com", + Description: "No description provided", + }, + }, + "LegacyWafRuleAPIService.ListLegacyWafRules": { + { + URL: "https://api.fastly.com", + Description: "No description provided", + }, + }, + "LegacyWafRuleStatusAPIService.GetWafFirewallRuleStatus": { + { + URL: "https://api.fastly.com", + Description: "No description provided", + }, + }, + "LegacyWafRuleStatusAPIService.ListWafFirewallRuleStatuses": { + { + URL: "https://api.fastly.com", + Description: "No description provided", + }, + }, + "LegacyWafRuleStatusAPIService.UpdateWafFirewallRuleStatus": { + { + URL: "https://api.fastly.com", + Description: "No description provided", + }, + }, + "LegacyWafRuleStatusAPIService.UpdateWafFirewallRuleStatusesTag": { + { + URL: "https://api.fastly.com", + Description: "No description provided", + }, + }, + "LegacyWafRulesetAPIService.GetWafRuleset": { + { + URL: "https://api.fastly.com", + Description: "No description provided", + }, + }, + "LegacyWafRulesetAPIService.GetWafRulesetVcl": { + { + URL: "https://api.fastly.com", + Description: "No description provided", + }, + }, + "LegacyWafRulesetAPIService.UpdateWafRuleset": { + { + URL: "https://api.fastly.com", + Description: "No description provided", + }, + }, + "LegacyWafTagAPIService.ListLegacyWafTags": { + { + URL: "https://api.fastly.com", + Description: "No description provided", + }, + }, + "LegacyWafUpdateStatusAPIService.GetWafUpdateStatus": { + { + URL: "https://api.fastly.com", + Description: "No description provided", + }, + }, + "LegacyWafUpdateStatusAPIService.ListWafUpdateStatuses": { + { + URL: "https://api.fastly.com", + Description: "No description provided", + }, + }, "LoggingAzureblobAPIService.CreateLogAzure": { { URL: "https://api.fastly.com", @@ -1378,6 +1684,12 @@ func NewConfiguration() *Configuration { Description: "No description provided", }, }, + "LoggingKafkaAPIService.UpdateLogKafka": { + { + URL: "https://api.fastly.com", + Description: "No description provided", + }, + }, "LoggingKinesisAPIService.CreateLogKinesis": { { URL: "https://api.fastly.com", @@ -1402,6 +1714,12 @@ func NewConfiguration() *Configuration { Description: "No description provided", }, }, + "LoggingKinesisAPIService.UpdateLogKinesis": { + { + URL: "https://api.fastly.com", + Description: "No description provided", + }, + }, "LoggingLogentriesAPIService.CreateLogLogentries": { { URL: "https://api.fastly.com", @@ -1822,6 +2140,30 @@ func NewConfiguration() *Configuration { Description: "No description provided", }, }, + "OriginInspectorHistoricalAPIService.GetOriginInspectorHistorical": { + { + URL: "https://api.fastly.com", + Description: "No description provided", + }, + }, + "OriginInspectorRealtimeAPIService.GetOriginInspectorLast120Seconds": { + { + URL: "https://rt.fastly.com", + Description: "No description provided", + }, + }, + "OriginInspectorRealtimeAPIService.GetOriginInspectorLastMaxEntries": { + { + URL: "https://rt.fastly.com", + Description: "No description provided", + }, + }, + "OriginInspectorRealtimeAPIService.GetOriginInspectorLastSecond": { + { + URL: "https://rt.fastly.com", + Description: "No description provided", + }, + }, "PackageAPIService.GetPackage": { { URL: "https://api.fastly.com", @@ -1954,6 +2296,12 @@ func NewConfiguration() *Configuration { Description: "No description provided", }, }, + "RequestSettingsAPIService.CreateRequestSettings": { + { + URL: "https://api.fastly.com", + Description: "No description provided", + }, + }, "RequestSettingsAPIService.DeleteRequestSettings": { { URL: "https://api.fastly.com", @@ -2008,6 +2356,12 @@ func NewConfiguration() *Configuration { Description: "No description provided", }, }, + "ResponseObjectAPIService.CreateResponseObject": { + { + URL: "https://api.fastly.com", + Description: "No description provided", + }, + }, "ResponseObjectAPIService.DeleteResponseObject": { { URL: "https://api.fastly.com", @@ -2026,6 +2380,84 @@ func NewConfiguration() *Configuration { Description: "No description provided", }, }, + "ResponseObjectAPIService.UpdateResponseObject": { + { + URL: "https://api.fastly.com", + Description: "No description provided", + }, + }, + "SecretStoreAPIService.ClientKey": { + { + URL: "https://api.fastly.com", + Description: "No description provided", + }, + }, + "SecretStoreAPIService.CreateSecretStore": { + { + URL: "https://api.fastly.com", + Description: "No description provided", + }, + }, + "SecretStoreAPIService.DeleteSecretStore": { + { + URL: "https://api.fastly.com", + Description: "No description provided", + }, + }, + "SecretStoreAPIService.GetSecretStore": { + { + URL: "https://api.fastly.com", + Description: "No description provided", + }, + }, + "SecretStoreAPIService.GetSecretStores": { + { + URL: "https://api.fastly.com", + Description: "No description provided", + }, + }, + "SecretStoreAPIService.SigningKey": { + { + URL: "https://api.fastly.com", + Description: "No description provided", + }, + }, + "SecretStoreItemAPIService.CreateSecret": { + { + URL: "https://api.fastly.com", + Description: "No description provided", + }, + }, + "SecretStoreItemAPIService.DeleteSecret": { + { + URL: "https://api.fastly.com", + Description: "No description provided", + }, + }, + "SecretStoreItemAPIService.GetSecret": { + { + URL: "https://api.fastly.com", + Description: "No description provided", + }, + }, + "SecretStoreItemAPIService.GetSecrets": { + { + URL: "https://api.fastly.com", + Description: "No description provided", + }, + }, + "SecretStoreItemAPIService.MustRecreateSecret": { + { + URL: "https://api.fastly.com", + Description: "No description provided", + }, + }, + "SecretStoreItemAPIService.RecreateSecret": { + { + URL: "https://api.fastly.com", + Description: "No description provided", + }, + }, "ServerAPIService.CreatePoolServer": { { URL: "https://api.fastly.com", @@ -2116,6 +2548,12 @@ func NewConfiguration() *Configuration { Description: "No description provided", }, }, + "ServiceAuthorizationsAPIService.DeleteServiceAuthorization2": { + { + URL: "https://api.fastly.com", + Description: "No description provided", + }, + }, "ServiceAuthorizationsAPIService.ListServiceAuthorization": { { URL: "https://api.fastly.com", @@ -2134,6 +2572,12 @@ func NewConfiguration() *Configuration { Description: "No description provided", }, }, + "ServiceAuthorizationsAPIService.UpdateServiceAuthorization2": { + { + URL: "https://api.fastly.com", + Description: "No description provided", + }, + }, "SettingsAPIService.GetServiceSettings": { { URL: "https://api.fastly.com", @@ -2176,6 +2620,12 @@ func NewConfiguration() *Configuration { Description: "No description provided", }, }, + "SnippetAPIService.UpdateSnippet": { + { + URL: "https://api.fastly.com", + Description: "No description provided", + }, + }, "SnippetAPIService.UpdateSnippetDynamic": { { URL: "https://api.fastly.com", @@ -2212,6 +2662,12 @@ func NewConfiguration() *Configuration { Description: "No description provided", }, }, + "SudoAPIService.RequestSudoAccess": { + { + URL: "https://api.fastly.com", + Description: "No description provided", + }, + }, "TLSActivationsAPIService.CreateTLSActivation": { { URL: "https://api.fastly.com", @@ -2392,6 +2848,18 @@ func NewConfiguration() *Configuration { Description: "No description provided", }, }, + "TokensAPIService.BulkRevokeTokens": { + { + URL: "https://api.fastly.com", + Description: "No description provided", + }, + }, + "TokensAPIService.CreateToken": { + { + URL: "https://api.fastly.com", + Description: "No description provided", + }, + }, "TokensAPIService.GetToken": { { URL: "https://api.fastly.com", @@ -2608,6 +3076,12 @@ func NewConfiguration() *Configuration { Description: "No description provided", }, }, + "WafActiveRulesAPIService.BulkDeleteWafActiveRules": { + { + URL: "https://api.fastly.com", + Description: "No description provided", + }, + }, "WafActiveRulesAPIService.BulkUpdateWafActiveRules": { { URL: "https://api.fastly.com", diff --git a/fastly/model_client_key.go b/fastly/model_client_key.go new file mode 100644 index 00000000..0d4cc1aa --- /dev/null +++ b/fastly/model_client_key.go @@ -0,0 +1,243 @@ +// Package fastly is an API client library for interacting with most facets of the Fastly API. +package fastly + +/* +Fastly API + +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://developer.fastly.com/reference/api/) + +API version: 1.0.0 +Contact: oss@fastly.com +*/ + +// This code is auto-generated; DO NOT EDIT. + + +import ( + "encoding/json" + "time" +) + +// ClientKey A Base64-encoded X25519 public key. +type ClientKey struct { + // A Base64-encoded X25519 public key that can be used with a [libsodium-compatible sealed box](https://libsodium.gitbook.io/doc/public-key_cryptography/sealed_boxes) to encrypt secrets before upload. + ClientKey *string `json:"client_key,omitempty"` + // A Base64-encoded signature of the client key. The signature is generated using the signing key and must be verified before using the client key. + Signature *string `json:"signature,omitempty"` + // Date and time in ISO 8601 format. + ExpiresAt NullableTime `json:"expires_at,omitempty"` + AdditionalProperties map[string]any +} + +type _ClientKey ClientKey + +// NewClientKey instantiates a new ClientKey object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewClientKey() *ClientKey { + this := ClientKey{} + return &this +} + +// NewClientKeyWithDefaults instantiates a new ClientKey object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewClientKeyWithDefaults() *ClientKey { + this := ClientKey{} + return &this +} + +// GetClientKey returns the ClientKey field value if set, zero value otherwise. +func (o *ClientKey) GetClientKey() string { + if o == nil || o.ClientKey == nil { + var ret string + return ret + } + return *o.ClientKey +} + +// GetClientKeyOk returns a tuple with the ClientKey field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ClientKey) GetClientKeyOk() (*string, bool) { + if o == nil || o.ClientKey == nil { + return nil, false + } + return o.ClientKey, true +} + +// HasClientKey returns a boolean if a field has been set. +func (o *ClientKey) HasClientKey() bool { + if o != nil && o.ClientKey != nil { + return true + } + + return false +} + +// SetClientKey gets a reference to the given string and assigns it to the ClientKey field. +func (o *ClientKey) SetClientKey(v string) { + o.ClientKey = &v +} + +// GetSignature returns the Signature field value if set, zero value otherwise. +func (o *ClientKey) GetSignature() string { + if o == nil || o.Signature == nil { + var ret string + return ret + } + return *o.Signature +} + +// GetSignatureOk returns a tuple with the Signature field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ClientKey) GetSignatureOk() (*string, bool) { + if o == nil || o.Signature == nil { + return nil, false + } + return o.Signature, true +} + +// HasSignature returns a boolean if a field has been set. +func (o *ClientKey) HasSignature() bool { + if o != nil && o.Signature != nil { + return true + } + + return false +} + +// SetSignature gets a reference to the given string and assigns it to the Signature field. +func (o *ClientKey) SetSignature(v string) { + o.Signature = &v +} + +// GetExpiresAt returns the ExpiresAt field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *ClientKey) GetExpiresAt() time.Time { + if o == nil || o.ExpiresAt.Get() == nil { + var ret time.Time + return ret + } + return *o.ExpiresAt.Get() +} + +// GetExpiresAtOk returns a tuple with the ExpiresAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *ClientKey) GetExpiresAtOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.ExpiresAt.Get(), o.ExpiresAt.IsSet() +} + +// HasExpiresAt returns a boolean if a field has been set. +func (o *ClientKey) HasExpiresAt() bool { + if o != nil && o.ExpiresAt.IsSet() { + return true + } + + return false +} + +// SetExpiresAt gets a reference to the given NullableTime and assigns it to the ExpiresAt field. +func (o *ClientKey) SetExpiresAt(v time.Time) { + o.ExpiresAt.Set(&v) +} +// SetExpiresAtNil sets the value for ExpiresAt to be an explicit nil +func (o *ClientKey) SetExpiresAtNil() { + o.ExpiresAt.Set(nil) +} + +// UnsetExpiresAt ensures that no value is present for ExpiresAt, not even an explicit nil +func (o *ClientKey) UnsetExpiresAt() { + o.ExpiresAt.Unset() +} + +// MarshalJSON implements the json.Marshaler interface. +// Marshaler is the interface implemented by types that can marshal themselves into valid JSON. +func (o ClientKey) MarshalJSON() ([]byte, error) { + toSerialize := map[string]any{} + if o.ClientKey != nil { + toSerialize["client_key"] = o.ClientKey + } + if o.Signature != nil { + toSerialize["signature"] = o.Signature + } + if o.ExpiresAt.IsSet() { + toSerialize["expires_at"] = o.ExpiresAt.Get() + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return json.Marshal(toSerialize) +} + +// UnmarshalJSON implements the Unmarshaler interface. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +func (o *ClientKey) UnmarshalJSON(bytes []byte) (err error) { + varClientKey := _ClientKey{} + + if err = json.Unmarshal(bytes, &varClientKey); err == nil { + *o = ClientKey(varClientKey) + } + + additionalProperties := make(map[string]any) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "client_key") + delete(additionalProperties, "signature") + delete(additionalProperties, "expires_at") + o.AdditionalProperties = additionalProperties + } + + return err +} + +// NullableClientKey is a helper abstraction for handling nullable clientkey types. +type NullableClientKey struct { + value *ClientKey + isSet bool +} + +// Get returns the value. +func (v NullableClientKey) Get() *ClientKey { + return v.value +} + +// Set modifies the value. +func (v *NullableClientKey) Set(val *ClientKey) { + v.value = val + v.isSet = true +} + +// IsSet indicates if the value was set. +func (v NullableClientKey) IsSet() bool { + return v.isSet +} + +// Unset removes the value. +func (v *NullableClientKey) Unset() { + v.value = nil + v.isSet = false +} + +// NewNullableClientKey returns a pointer to a new instance of NullableClientKey. +func NewNullableClientKey(val *ClientKey) *NullableClientKey { + return &NullableClientKey{value: val, isSet: true} +} + +// MarshalJSON implements the json.Marshaler interface. +// Marshaler is the interface implemented by types that can marshal themselves into valid JSON. +func (v NullableClientKey) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +// UnmarshalJSON implements the Unmarshaler interface. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +func (v *NullableClientKey) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/fastly/model_content.go b/fastly/model_content.go index 9cae1f58..58f0df1d 100644 --- a/fastly/model_content.go +++ b/fastly/model_content.go @@ -20,8 +20,8 @@ import ( // Content struct for Content type Content struct { Hash *string `json:"hash,omitempty"` - Request map[string]any `json:"request,omitempty"` - Response map[string]any `json:"response,omitempty"` + Request map[string]map[string]any `json:"request,omitempty"` + Response map[string]map[string]any `json:"response,omitempty"` ResponseTime *float32 `json:"response_time,omitempty"` Server *string `json:"server,omitempty"` Pop *string `json:"pop,omitempty"` @@ -80,9 +80,9 @@ func (o *Content) SetHash(v string) { } // GetRequest returns the Request field value if set, zero value otherwise. -func (o *Content) GetRequest() map[string]any { +func (o *Content) GetRequest() map[string]map[string]any { if o == nil || o.Request == nil { - var ret map[string]any + var ret map[string]map[string]any return ret } return o.Request @@ -90,7 +90,7 @@ func (o *Content) GetRequest() map[string]any { // GetRequestOk returns a tuple with the Request field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *Content) GetRequestOk() (map[string]any, bool) { +func (o *Content) GetRequestOk() (map[string]map[string]any, bool) { if o == nil || o.Request == nil { return nil, false } @@ -106,15 +106,15 @@ func (o *Content) HasRequest() bool { return false } -// SetRequest gets a reference to the given map[string]any and assigns it to the Request field. -func (o *Content) SetRequest(v map[string]any) { +// SetRequest gets a reference to the given map[string]map[string]any and assigns it to the Request field. +func (o *Content) SetRequest(v map[string]map[string]any) { o.Request = v } // GetResponse returns the Response field value if set, zero value otherwise. -func (o *Content) GetResponse() map[string]any { +func (o *Content) GetResponse() map[string]map[string]any { if o == nil || o.Response == nil { - var ret map[string]any + var ret map[string]map[string]any return ret } return o.Response @@ -122,7 +122,7 @@ func (o *Content) GetResponse() map[string]any { // GetResponseOk returns a tuple with the Response field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *Content) GetResponseOk() (map[string]any, bool) { +func (o *Content) GetResponseOk() (map[string]map[string]any, bool) { if o == nil || o.Response == nil { return nil, false } @@ -138,8 +138,8 @@ func (o *Content) HasResponse() bool { return false } -// SetResponse gets a reference to the given map[string]any and assigns it to the Response field. -func (o *Content) SetResponse(v map[string]any) { +// SetResponse gets a reference to the given map[string]map[string]any and assigns it to the Response field. +func (o *Content) SetResponse(v map[string]map[string]any) { o.Response = v } diff --git a/fastly/model_domain.go b/fastly/model_domain.go index 396c22f3..476c4867 100644 --- a/fastly/model_domain.go +++ b/fastly/model_domain.go @@ -17,7 +17,7 @@ import ( "encoding/json" ) -// Domain struct for Domain +// Domain Domain details type Domain struct { // A freeform descriptive note. Comment NullableString `json:"comment,omitempty"` diff --git a/fastly/model_domain_inspector.go b/fastly/model_domain_inspector.go new file mode 100644 index 00000000..fab1c837 --- /dev/null +++ b/fastly/model_domain_inspector.go @@ -0,0 +1,231 @@ +// Package fastly is an API client library for interacting with most facets of the Fastly API. +package fastly + +/* +Fastly API + +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://developer.fastly.com/reference/api/) + +API version: 1.0.0 +Contact: oss@fastly.com +*/ + +// This code is auto-generated; DO NOT EDIT. + + +import ( + "encoding/json" +) + +// DomainInspector struct for DomainInspector +type DomainInspector struct { + Timestamp *SubsequentRequestTimestamp `json:"Timestamp,omitempty"` + // Offset of entry timestamps from the current time due to processing time. + AggregateDelay *int32 `json:"AggregateDelay,omitempty"` + // A list of report [entries](#entry-data-model), each representing one second of time. + Data []DomainInspectorRealtimeEntry `json:"Data,omitempty"` + AdditionalProperties map[string]any +} + +type _DomainInspector DomainInspector + +// NewDomainInspector instantiates a new DomainInspector object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewDomainInspector() *DomainInspector { + this := DomainInspector{} + return &this +} + +// NewDomainInspectorWithDefaults instantiates a new DomainInspector object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewDomainInspectorWithDefaults() *DomainInspector { + this := DomainInspector{} + return &this +} + +// GetTimestamp returns the Timestamp field value if set, zero value otherwise. +func (o *DomainInspector) GetTimestamp() SubsequentRequestTimestamp { + if o == nil || o.Timestamp == nil { + var ret SubsequentRequestTimestamp + return ret + } + return *o.Timestamp +} + +// GetTimestampOk returns a tuple with the Timestamp field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DomainInspector) GetTimestampOk() (*SubsequentRequestTimestamp, bool) { + if o == nil || o.Timestamp == nil { + return nil, false + } + return o.Timestamp, true +} + +// HasTimestamp returns a boolean if a field has been set. +func (o *DomainInspector) HasTimestamp() bool { + if o != nil && o.Timestamp != nil { + return true + } + + return false +} + +// SetTimestamp gets a reference to the given SubsequentRequestTimestamp and assigns it to the Timestamp field. +func (o *DomainInspector) SetTimestamp(v SubsequentRequestTimestamp) { + o.Timestamp = &v +} + +// GetAggregateDelay returns the AggregateDelay field value if set, zero value otherwise. +func (o *DomainInspector) GetAggregateDelay() int32 { + if o == nil || o.AggregateDelay == nil { + var ret int32 + return ret + } + return *o.AggregateDelay +} + +// GetAggregateDelayOk returns a tuple with the AggregateDelay field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DomainInspector) GetAggregateDelayOk() (*int32, bool) { + if o == nil || o.AggregateDelay == nil { + return nil, false + } + return o.AggregateDelay, true +} + +// HasAggregateDelay returns a boolean if a field has been set. +func (o *DomainInspector) HasAggregateDelay() bool { + if o != nil && o.AggregateDelay != nil { + return true + } + + return false +} + +// SetAggregateDelay gets a reference to the given int32 and assigns it to the AggregateDelay field. +func (o *DomainInspector) SetAggregateDelay(v int32) { + o.AggregateDelay = &v +} + +// GetData returns the Data field value if set, zero value otherwise. +func (o *DomainInspector) GetData() []DomainInspectorRealtimeEntry { + if o == nil || o.Data == nil { + var ret []DomainInspectorRealtimeEntry + return ret + } + return o.Data +} + +// GetDataOk returns a tuple with the Data field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DomainInspector) GetDataOk() ([]DomainInspectorRealtimeEntry, bool) { + if o == nil || o.Data == nil { + return nil, false + } + return o.Data, true +} + +// HasData returns a boolean if a field has been set. +func (o *DomainInspector) HasData() bool { + if o != nil && o.Data != nil { + return true + } + + return false +} + +// SetData gets a reference to the given []DomainInspectorRealtimeEntry and assigns it to the Data field. +func (o *DomainInspector) SetData(v []DomainInspectorRealtimeEntry) { + o.Data = v +} + +// MarshalJSON implements the json.Marshaler interface. +// Marshaler is the interface implemented by types that can marshal themselves into valid JSON. +func (o DomainInspector) MarshalJSON() ([]byte, error) { + toSerialize := map[string]any{} + if o.Timestamp != nil { + toSerialize["Timestamp"] = o.Timestamp + } + if o.AggregateDelay != nil { + toSerialize["AggregateDelay"] = o.AggregateDelay + } + if o.Data != nil { + toSerialize["Data"] = o.Data + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return json.Marshal(toSerialize) +} + +// UnmarshalJSON implements the Unmarshaler interface. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +func (o *DomainInspector) UnmarshalJSON(bytes []byte) (err error) { + varDomainInspector := _DomainInspector{} + + if err = json.Unmarshal(bytes, &varDomainInspector); err == nil { + *o = DomainInspector(varDomainInspector) + } + + additionalProperties := make(map[string]any) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "Timestamp") + delete(additionalProperties, "AggregateDelay") + delete(additionalProperties, "Data") + o.AdditionalProperties = additionalProperties + } + + return err +} + +// NullableDomainInspector is a helper abstraction for handling nullable domaininspector types. +type NullableDomainInspector struct { + value *DomainInspector + isSet bool +} + +// Get returns the value. +func (v NullableDomainInspector) Get() *DomainInspector { + return v.value +} + +// Set modifies the value. +func (v *NullableDomainInspector) Set(val *DomainInspector) { + v.value = val + v.isSet = true +} + +// IsSet indicates if the value was set. +func (v NullableDomainInspector) IsSet() bool { + return v.isSet +} + +// Unset removes the value. +func (v *NullableDomainInspector) Unset() { + v.value = nil + v.isSet = false +} + +// NewNullableDomainInspector returns a pointer to a new instance of NullableDomainInspector. +func NewNullableDomainInspector(val *DomainInspector) *NullableDomainInspector { + return &NullableDomainInspector{value: val, isSet: true} +} + +// MarshalJSON implements the json.Marshaler interface. +// Marshaler is the interface implemented by types that can marshal themselves into valid JSON. +func (v NullableDomainInspector) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +// UnmarshalJSON implements the Unmarshaler interface. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +func (v *NullableDomainInspector) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/fastly/model_domain_inspector_entry.go b/fastly/model_domain_inspector_entry.go new file mode 100644 index 00000000..cd4cff69 --- /dev/null +++ b/fastly/model_domain_inspector_entry.go @@ -0,0 +1,193 @@ +// Package fastly is an API client library for interacting with most facets of the Fastly API. +package fastly + +/* +Fastly API + +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://developer.fastly.com/reference/api/) + +API version: 1.0.0 +Contact: oss@fastly.com +*/ + +// This code is auto-generated; DO NOT EDIT. + + +import ( + "encoding/json" +) + +// DomainInspectorEntry struct for DomainInspectorEntry +type DomainInspectorEntry struct { + Dimensions *DomainInspectorEntryDimensions `json:"dimensions,omitempty"` + // An array of values representing the metric values at each point in time. Note that this dataset is sparse: only the keys with non-zero values will be included in the record. + Values []Values `json:"values,omitempty"` + AdditionalProperties map[string]any +} + +type _DomainInspectorEntry DomainInspectorEntry + +// NewDomainInspectorEntry instantiates a new DomainInspectorEntry object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewDomainInspectorEntry() *DomainInspectorEntry { + this := DomainInspectorEntry{} + return &this +} + +// NewDomainInspectorEntryWithDefaults instantiates a new DomainInspectorEntry object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewDomainInspectorEntryWithDefaults() *DomainInspectorEntry { + this := DomainInspectorEntry{} + return &this +} + +// GetDimensions returns the Dimensions field value if set, zero value otherwise. +func (o *DomainInspectorEntry) GetDimensions() DomainInspectorEntryDimensions { + if o == nil || o.Dimensions == nil { + var ret DomainInspectorEntryDimensions + return ret + } + return *o.Dimensions +} + +// GetDimensionsOk returns a tuple with the Dimensions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DomainInspectorEntry) GetDimensionsOk() (*DomainInspectorEntryDimensions, bool) { + if o == nil || o.Dimensions == nil { + return nil, false + } + return o.Dimensions, true +} + +// HasDimensions returns a boolean if a field has been set. +func (o *DomainInspectorEntry) HasDimensions() bool { + if o != nil && o.Dimensions != nil { + return true + } + + return false +} + +// SetDimensions gets a reference to the given DomainInspectorEntryDimensions and assigns it to the Dimensions field. +func (o *DomainInspectorEntry) SetDimensions(v DomainInspectorEntryDimensions) { + o.Dimensions = &v +} + +// GetValues returns the Values field value if set, zero value otherwise. +func (o *DomainInspectorEntry) GetValues() []Values { + if o == nil || o.Values == nil { + var ret []Values + return ret + } + return o.Values +} + +// GetValuesOk returns a tuple with the Values field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DomainInspectorEntry) GetValuesOk() ([]Values, bool) { + if o == nil || o.Values == nil { + return nil, false + } + return o.Values, true +} + +// HasValues returns a boolean if a field has been set. +func (o *DomainInspectorEntry) HasValues() bool { + if o != nil && o.Values != nil { + return true + } + + return false +} + +// SetValues gets a reference to the given []Values and assigns it to the Values field. +func (o *DomainInspectorEntry) SetValues(v []Values) { + o.Values = v +} + +// MarshalJSON implements the json.Marshaler interface. +// Marshaler is the interface implemented by types that can marshal themselves into valid JSON. +func (o DomainInspectorEntry) MarshalJSON() ([]byte, error) { + toSerialize := map[string]any{} + if o.Dimensions != nil { + toSerialize["dimensions"] = o.Dimensions + } + if o.Values != nil { + toSerialize["values"] = o.Values + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return json.Marshal(toSerialize) +} + +// UnmarshalJSON implements the Unmarshaler interface. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +func (o *DomainInspectorEntry) UnmarshalJSON(bytes []byte) (err error) { + varDomainInspectorEntry := _DomainInspectorEntry{} + + if err = json.Unmarshal(bytes, &varDomainInspectorEntry); err == nil { + *o = DomainInspectorEntry(varDomainInspectorEntry) + } + + additionalProperties := make(map[string]any) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "dimensions") + delete(additionalProperties, "values") + o.AdditionalProperties = additionalProperties + } + + return err +} + +// NullableDomainInspectorEntry is a helper abstraction for handling nullable domaininspectorentry types. +type NullableDomainInspectorEntry struct { + value *DomainInspectorEntry + isSet bool +} + +// Get returns the value. +func (v NullableDomainInspectorEntry) Get() *DomainInspectorEntry { + return v.value +} + +// Set modifies the value. +func (v *NullableDomainInspectorEntry) Set(val *DomainInspectorEntry) { + v.value = val + v.isSet = true +} + +// IsSet indicates if the value was set. +func (v NullableDomainInspectorEntry) IsSet() bool { + return v.isSet +} + +// Unset removes the value. +func (v *NullableDomainInspectorEntry) Unset() { + v.value = nil + v.isSet = false +} + +// NewNullableDomainInspectorEntry returns a pointer to a new instance of NullableDomainInspectorEntry. +func NewNullableDomainInspectorEntry(val *DomainInspectorEntry) *NullableDomainInspectorEntry { + return &NullableDomainInspectorEntry{value: val, isSet: true} +} + +// MarshalJSON implements the json.Marshaler interface. +// Marshaler is the interface implemented by types that can marshal themselves into valid JSON. +func (v NullableDomainInspectorEntry) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +// UnmarshalJSON implements the Unmarshaler interface. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +func (v *NullableDomainInspectorEntry) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/fastly/model_domain_inspector_entry_dimensions.go b/fastly/model_domain_inspector_entry_dimensions.go new file mode 100644 index 00000000..8371d7b3 --- /dev/null +++ b/fastly/model_domain_inspector_entry_dimensions.go @@ -0,0 +1,232 @@ +// Package fastly is an API client library for interacting with most facets of the Fastly API. +package fastly + +/* +Fastly API + +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://developer.fastly.com/reference/api/) + +API version: 1.0.0 +Contact: oss@fastly.com +*/ + +// This code is auto-generated; DO NOT EDIT. + + +import ( + "encoding/json" +) + +// DomainInspectorEntryDimensions The unique combination of dimensions associated with this timeseries. +type DomainInspectorEntryDimensions struct { + // The geographic region from which the edge responses in this data entry were delivered. If unspecified, results are aggregated across regions. + Region *string `json:"region,omitempty"` + // The POP from which the edge responses in this data entry were delivered. If unspecified, results are aggregated across POPs. + Datacenter *string `json:"datacenter,omitempty"` + // The domain from which the edge responses in this data entry were delivered. If unspecified, results are aggregated across domains. + Domain *string `json:"domain,omitempty"` + AdditionalProperties map[string]any +} + +type _DomainInspectorEntryDimensions DomainInspectorEntryDimensions + +// NewDomainInspectorEntryDimensions instantiates a new DomainInspectorEntryDimensions object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewDomainInspectorEntryDimensions() *DomainInspectorEntryDimensions { + this := DomainInspectorEntryDimensions{} + return &this +} + +// NewDomainInspectorEntryDimensionsWithDefaults instantiates a new DomainInspectorEntryDimensions object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewDomainInspectorEntryDimensionsWithDefaults() *DomainInspectorEntryDimensions { + this := DomainInspectorEntryDimensions{} + return &this +} + +// GetRegion returns the Region field value if set, zero value otherwise. +func (o *DomainInspectorEntryDimensions) GetRegion() string { + if o == nil || o.Region == nil { + var ret string + return ret + } + return *o.Region +} + +// GetRegionOk returns a tuple with the Region field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DomainInspectorEntryDimensions) GetRegionOk() (*string, bool) { + if o == nil || o.Region == nil { + return nil, false + } + return o.Region, true +} + +// HasRegion returns a boolean if a field has been set. +func (o *DomainInspectorEntryDimensions) HasRegion() bool { + if o != nil && o.Region != nil { + return true + } + + return false +} + +// SetRegion gets a reference to the given string and assigns it to the Region field. +func (o *DomainInspectorEntryDimensions) SetRegion(v string) { + o.Region = &v +} + +// GetDatacenter returns the Datacenter field value if set, zero value otherwise. +func (o *DomainInspectorEntryDimensions) GetDatacenter() string { + if o == nil || o.Datacenter == nil { + var ret string + return ret + } + return *o.Datacenter +} + +// GetDatacenterOk returns a tuple with the Datacenter field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DomainInspectorEntryDimensions) GetDatacenterOk() (*string, bool) { + if o == nil || o.Datacenter == nil { + return nil, false + } + return o.Datacenter, true +} + +// HasDatacenter returns a boolean if a field has been set. +func (o *DomainInspectorEntryDimensions) HasDatacenter() bool { + if o != nil && o.Datacenter != nil { + return true + } + + return false +} + +// SetDatacenter gets a reference to the given string and assigns it to the Datacenter field. +func (o *DomainInspectorEntryDimensions) SetDatacenter(v string) { + o.Datacenter = &v +} + +// GetDomain returns the Domain field value if set, zero value otherwise. +func (o *DomainInspectorEntryDimensions) GetDomain() string { + if o == nil || o.Domain == nil { + var ret string + return ret + } + return *o.Domain +} + +// GetDomainOk returns a tuple with the Domain field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DomainInspectorEntryDimensions) GetDomainOk() (*string, bool) { + if o == nil || o.Domain == nil { + return nil, false + } + return o.Domain, true +} + +// HasDomain returns a boolean if a field has been set. +func (o *DomainInspectorEntryDimensions) HasDomain() bool { + if o != nil && o.Domain != nil { + return true + } + + return false +} + +// SetDomain gets a reference to the given string and assigns it to the Domain field. +func (o *DomainInspectorEntryDimensions) SetDomain(v string) { + o.Domain = &v +} + +// MarshalJSON implements the json.Marshaler interface. +// Marshaler is the interface implemented by types that can marshal themselves into valid JSON. +func (o DomainInspectorEntryDimensions) MarshalJSON() ([]byte, error) { + toSerialize := map[string]any{} + if o.Region != nil { + toSerialize["region"] = o.Region + } + if o.Datacenter != nil { + toSerialize["datacenter"] = o.Datacenter + } + if o.Domain != nil { + toSerialize["domain"] = o.Domain + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return json.Marshal(toSerialize) +} + +// UnmarshalJSON implements the Unmarshaler interface. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +func (o *DomainInspectorEntryDimensions) UnmarshalJSON(bytes []byte) (err error) { + varDomainInspectorEntryDimensions := _DomainInspectorEntryDimensions{} + + if err = json.Unmarshal(bytes, &varDomainInspectorEntryDimensions); err == nil { + *o = DomainInspectorEntryDimensions(varDomainInspectorEntryDimensions) + } + + additionalProperties := make(map[string]any) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "region") + delete(additionalProperties, "datacenter") + delete(additionalProperties, "domain") + o.AdditionalProperties = additionalProperties + } + + return err +} + +// NullableDomainInspectorEntryDimensions is a helper abstraction for handling nullable domaininspectorentrydimensions types. +type NullableDomainInspectorEntryDimensions struct { + value *DomainInspectorEntryDimensions + isSet bool +} + +// Get returns the value. +func (v NullableDomainInspectorEntryDimensions) Get() *DomainInspectorEntryDimensions { + return v.value +} + +// Set modifies the value. +func (v *NullableDomainInspectorEntryDimensions) Set(val *DomainInspectorEntryDimensions) { + v.value = val + v.isSet = true +} + +// IsSet indicates if the value was set. +func (v NullableDomainInspectorEntryDimensions) IsSet() bool { + return v.isSet +} + +// Unset removes the value. +func (v *NullableDomainInspectorEntryDimensions) Unset() { + v.value = nil + v.isSet = false +} + +// NewNullableDomainInspectorEntryDimensions returns a pointer to a new instance of NullableDomainInspectorEntryDimensions. +func NewNullableDomainInspectorEntryDimensions(val *DomainInspectorEntryDimensions) *NullableDomainInspectorEntryDimensions { + return &NullableDomainInspectorEntryDimensions{value: val, isSet: true} +} + +// MarshalJSON implements the json.Marshaler interface. +// Marshaler is the interface implemented by types that can marshal themselves into valid JSON. +func (v NullableDomainInspectorEntryDimensions) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +// UnmarshalJSON implements the Unmarshaler interface. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +func (v *NullableDomainInspectorEntryDimensions) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/fastly/model_domain_inspector_measurements.go b/fastly/model_domain_inspector_measurements.go new file mode 100644 index 00000000..40b4b7b0 --- /dev/null +++ b/fastly/model_domain_inspector_measurements.go @@ -0,0 +1,2474 @@ +// Package fastly is an API client library for interacting with most facets of the Fastly API. +package fastly + +/* +Fastly API + +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://developer.fastly.com/reference/api/) + +API version: 1.0.0 +Contact: oss@fastly.com +*/ + +// This code is auto-generated; DO NOT EDIT. + + +import ( + "encoding/json" +) + +// DomainInspectorMeasurements A measurements object provides a count of the total number of `requests` received by Fastly for your domain in the reported time period and for the relevant POP, as specified in the [entry](#entry-data-model). It also includes the number of responses for specific HTTP response status codes and for status code ranges. This dataset is sparse: only the keys with non-zero values will be included in the record. Where a specific status code does not have a field in this model (e.g., `429 Too Many Requests`), any responses with that code will be counted as part of the range count (`4xx` in this case) but will not be separately identified in the data. +type DomainInspectorMeasurements struct { + // Number of requests sent by end users to Fastly. + EdgeRequests *int32 `json:"edge_requests,omitempty"` + // Total header bytes delivered from Fastly to the end user. + EdgeRespHeaderBytes *int32 `json:"edge_resp_header_bytes,omitempty"` + // Total body bytes delivered from Fastly to the end user. + EdgeRespBodyBytes *int32 `json:"edge_resp_body_bytes,omitempty"` + // Number of 1xx \"Informational\" category status codes delivered. + Status1xx *int32 `json:"status_1xx,omitempty"` + // Number of 2xx \"Success\" status codes delivered. + Status2xx *int32 `json:"status_2xx,omitempty"` + // Number of 3xx \"Redirection\" codes delivered. + Status3xx *int32 `json:"status_3xx,omitempty"` + // Number of 4xx \"Client Error\" codes delivered. + Status4xx *int32 `json:"status_4xx,omitempty"` + // Number of 5xx \"Server Error\" codes delivered. + Status5xx *int32 `json:"status_5xx,omitempty"` + // Number of responses delivered with status code 200 (Success). + Status200 *int32 `json:"status_200,omitempty"` + // Number of responses delivered with status code 204 (No Content). + Status204 *int32 `json:"status_204,omitempty"` + // Number of responses delivered with status code 206 (Partial Content). + Status206 *int32 `json:"status_206,omitempty"` + // Number of responses delivered with status code 301 (Moved Permanently). + Status301 *int32 `json:"status_301,omitempty"` + // Number of responses delivered with status code 302 (Found). + Status302 *int32 `json:"status_302,omitempty"` + // Number of responses delivered with status code 304 (Not Modified). + Status304 *int32 `json:"status_304,omitempty"` + // Number of responses delivered with status code 400 (Bad Request). + Status400 *int32 `json:"status_400,omitempty"` + // Number of responses delivered with status code 401 (Unauthorized). + Status401 *int32 `json:"status_401,omitempty"` + // Number of responses delivered with status code 403 (Forbidden). + Status403 *int32 `json:"status_403,omitempty"` + // Number of responses delivered with status code 404 (Not Found). + Status404 *int32 `json:"status_404,omitempty"` + // Number of responses delivered with status code 416 (Range Not Satisfiable). + Status416 *int32 `json:"status_416,omitempty"` + // Number of responses delivered with status code 429 (Too Many Requests). + Status429 *int32 `json:"status_429,omitempty"` + // Number of responses delivered with status code 500 (Internal Server Error). + Status500 *int32 `json:"status_500,omitempty"` + // Number of responses delivered with status code 501 (Not Implemented). + Status501 *int32 `json:"status_501,omitempty"` + // Number of responses delivered with status code 502 (Bad Gateway). + Status502 *int32 `json:"status_502,omitempty"` + // Number of responses delivered with status code 503 (Service Unavailable). + Status503 *int32 `json:"status_503,omitempty"` + // Number of responses delivered with status code 504 (Gateway Timeout). + Status504 *int32 `json:"status_504,omitempty"` + // Number of responses delivered with status code 505 (HTTP Version Not Supported). + Status505 *int32 `json:"status_505,omitempty"` + // Number of requests processed. + Requests *int32 `json:"requests,omitempty"` + // Total header bytes delivered. + RespHeaderBytes *int32 `json:"resp_header_bytes,omitempty"` + // Total body bytes delivered. + RespBodyBytes *int32 `json:"resp_body_bytes,omitempty"` + // Total header bytes sent to origin. + BereqHeaderBytes *int32 `json:"bereq_header_bytes,omitempty"` + // Total body bytes sent to origin. + BereqBodyBytes *int32 `json:"bereq_body_bytes,omitempty"` + // Number of requests sent by end users to Fastly that resulted in a hit at the edge. + EdgeHitRequests *int32 `json:"edge_hit_requests,omitempty"` + // Number of requests sent by end users to Fastly that resulted in a miss at the edge. + EdgeMissRequests *int32 `json:"edge_miss_requests,omitempty"` + // Number of requests sent to origin. + OriginFetches *int32 `json:"origin_fetches,omitempty"` + // Total header bytes received from origin. + OriginFetchRespHeaderBytes *int32 `json:"origin_fetch_resp_header_bytes,omitempty"` + // Total body bytes received from origin. + OriginFetchRespBodyBytes *int32 `json:"origin_fetch_resp_body_bytes,omitempty"` + // Total bytes delivered (`resp_header_bytes` + `resp_body_bytes` + `bereq_header_bytes` + `bereq_body_bytes`). + Bandwidth *int32 `json:"bandwidth,omitempty"` + // Ratio of cache hits to cache misses at the edge, between 0 and 1 (`edge_hit_requests` / (`edge_hit_requests` + `edge_miss_requests`)). + EdgeHitRatio *float32 `json:"edge_hit_ratio,omitempty"` + // Ratio of response bytes delivered from the edge compared to what is delivered from origin, between 0 and 1. (`edge_resp_body_bytes` + `edge_resp_header_bytes`) / (`origin_fetch_resp_body_bytes` + `origin_fetch_resp_header_bytes` + `edge_resp_body_bytes` + `edge_resp_header_bytes`). + OriginOffload *float32 `json:"origin_offload,omitempty"` + // Number of responses received from origin with status code 200 (Success). + OriginStatus200 *int32 `json:"origin_status_200,omitempty"` + // Number of responses received from origin with status code 204 (No Content). + OriginStatus204 *int32 `json:"origin_status_204,omitempty"` + // Number of responses received from origin with status code 206 (Partial Content). + OriginStatus206 *int32 `json:"origin_status_206,omitempty"` + // Number of responses received from origin with status code 301 (Moved Permanently). + OriginStatus301 *int32 `json:"origin_status_301,omitempty"` + // Number of responses received from origin with status code 302 (Found). + OriginStatus302 *int32 `json:"origin_status_302,omitempty"` + // Number of responses received from origin with status code 304 (Not Modified). + OriginStatus304 *int32 `json:"origin_status_304,omitempty"` + // Number of responses received from origin with status code 400 (Bad Request). + OriginStatus400 *int32 `json:"origin_status_400,omitempty"` + // Number of responses received from origin with status code 401 (Unauthorized). + OriginStatus401 *int32 `json:"origin_status_401,omitempty"` + // Number of responses received from origin with status code 403 (Forbidden). + OriginStatus403 *int32 `json:"origin_status_403,omitempty"` + // Number of responses received from origin with status code 404 (Not Found). + OriginStatus404 *int32 `json:"origin_status_404,omitempty"` + // Number of responses received from origin with status code 416 (Range Not Satisfiable). + OriginStatus416 *int32 `json:"origin_status_416,omitempty"` + // Number of responses received from origin with status code 429 (Too Many Requests). + OriginStatus429 *int32 `json:"origin_status_429,omitempty"` + // Number of responses received from origin with status code 500 (Internal Server Error). + OriginStatus500 *int32 `json:"origin_status_500,omitempty"` + // Number of responses received from origin with status code 501 (Not Implemented). + OriginStatus501 *int32 `json:"origin_status_501,omitempty"` + // Number of responses received from origin with status code 502 (Bad Gateway). + OriginStatus502 *int32 `json:"origin_status_502,omitempty"` + // Number of responses received from origin with status code 503 (Service Unavailable). + OriginStatus503 *int32 `json:"origin_status_503,omitempty"` + // Number of responses received from origin with status code 504 (Gateway Timeout). + OriginStatus504 *int32 `json:"origin_status_504,omitempty"` + // Number of responses received from origin with status code 505 (HTTP Version Not Supported). + OriginStatus505 *int32 `json:"origin_status_505,omitempty"` + // Number of \"Informational\" category status codes received from origin. + OriginStatus1xx *int32 `json:"origin_status_1xx,omitempty"` + // Number of \"Success\" status codes received from origin. + OriginStatus2xx *int32 `json:"origin_status_2xx,omitempty"` + // Number of \"Redirection\" codes received from origin. + OriginStatus3xx *int32 `json:"origin_status_3xx,omitempty"` + // Number of \"Client Error\" codes received from origin. + OriginStatus4xx *int32 `json:"origin_status_4xx,omitempty"` + // Number of \"Server Error\" codes received from origin. + OriginStatus5xx *int32 `json:"origin_status_5xx,omitempty"` + AdditionalProperties map[string]any +} + +type _DomainInspectorMeasurements DomainInspectorMeasurements + +// NewDomainInspectorMeasurements instantiates a new DomainInspectorMeasurements object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewDomainInspectorMeasurements() *DomainInspectorMeasurements { + this := DomainInspectorMeasurements{} + return &this +} + +// NewDomainInspectorMeasurementsWithDefaults instantiates a new DomainInspectorMeasurements object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewDomainInspectorMeasurementsWithDefaults() *DomainInspectorMeasurements { + this := DomainInspectorMeasurements{} + return &this +} + +// GetEdgeRequests returns the EdgeRequests field value if set, zero value otherwise. +func (o *DomainInspectorMeasurements) GetEdgeRequests() int32 { + if o == nil || o.EdgeRequests == nil { + var ret int32 + return ret + } + return *o.EdgeRequests +} + +// GetEdgeRequestsOk returns a tuple with the EdgeRequests field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DomainInspectorMeasurements) GetEdgeRequestsOk() (*int32, bool) { + if o == nil || o.EdgeRequests == nil { + return nil, false + } + return o.EdgeRequests, true +} + +// HasEdgeRequests returns a boolean if a field has been set. +func (o *DomainInspectorMeasurements) HasEdgeRequests() bool { + if o != nil && o.EdgeRequests != nil { + return true + } + + return false +} + +// SetEdgeRequests gets a reference to the given int32 and assigns it to the EdgeRequests field. +func (o *DomainInspectorMeasurements) SetEdgeRequests(v int32) { + o.EdgeRequests = &v +} + +// GetEdgeRespHeaderBytes returns the EdgeRespHeaderBytes field value if set, zero value otherwise. +func (o *DomainInspectorMeasurements) GetEdgeRespHeaderBytes() int32 { + if o == nil || o.EdgeRespHeaderBytes == nil { + var ret int32 + return ret + } + return *o.EdgeRespHeaderBytes +} + +// GetEdgeRespHeaderBytesOk returns a tuple with the EdgeRespHeaderBytes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DomainInspectorMeasurements) GetEdgeRespHeaderBytesOk() (*int32, bool) { + if o == nil || o.EdgeRespHeaderBytes == nil { + return nil, false + } + return o.EdgeRespHeaderBytes, true +} + +// HasEdgeRespHeaderBytes returns a boolean if a field has been set. +func (o *DomainInspectorMeasurements) HasEdgeRespHeaderBytes() bool { + if o != nil && o.EdgeRespHeaderBytes != nil { + return true + } + + return false +} + +// SetEdgeRespHeaderBytes gets a reference to the given int32 and assigns it to the EdgeRespHeaderBytes field. +func (o *DomainInspectorMeasurements) SetEdgeRespHeaderBytes(v int32) { + o.EdgeRespHeaderBytes = &v +} + +// GetEdgeRespBodyBytes returns the EdgeRespBodyBytes field value if set, zero value otherwise. +func (o *DomainInspectorMeasurements) GetEdgeRespBodyBytes() int32 { + if o == nil || o.EdgeRespBodyBytes == nil { + var ret int32 + return ret + } + return *o.EdgeRespBodyBytes +} + +// GetEdgeRespBodyBytesOk returns a tuple with the EdgeRespBodyBytes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DomainInspectorMeasurements) GetEdgeRespBodyBytesOk() (*int32, bool) { + if o == nil || o.EdgeRespBodyBytes == nil { + return nil, false + } + return o.EdgeRespBodyBytes, true +} + +// HasEdgeRespBodyBytes returns a boolean if a field has been set. +func (o *DomainInspectorMeasurements) HasEdgeRespBodyBytes() bool { + if o != nil && o.EdgeRespBodyBytes != nil { + return true + } + + return false +} + +// SetEdgeRespBodyBytes gets a reference to the given int32 and assigns it to the EdgeRespBodyBytes field. +func (o *DomainInspectorMeasurements) SetEdgeRespBodyBytes(v int32) { + o.EdgeRespBodyBytes = &v +} + +// GetStatus1xx returns the Status1xx field value if set, zero value otherwise. +func (o *DomainInspectorMeasurements) GetStatus1xx() int32 { + if o == nil || o.Status1xx == nil { + var ret int32 + return ret + } + return *o.Status1xx +} + +// GetStatus1xxOk returns a tuple with the Status1xx field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DomainInspectorMeasurements) GetStatus1xxOk() (*int32, bool) { + if o == nil || o.Status1xx == nil { + return nil, false + } + return o.Status1xx, true +} + +// HasStatus1xx returns a boolean if a field has been set. +func (o *DomainInspectorMeasurements) HasStatus1xx() bool { + if o != nil && o.Status1xx != nil { + return true + } + + return false +} + +// SetStatus1xx gets a reference to the given int32 and assigns it to the Status1xx field. +func (o *DomainInspectorMeasurements) SetStatus1xx(v int32) { + o.Status1xx = &v +} + +// GetStatus2xx returns the Status2xx field value if set, zero value otherwise. +func (o *DomainInspectorMeasurements) GetStatus2xx() int32 { + if o == nil || o.Status2xx == nil { + var ret int32 + return ret + } + return *o.Status2xx +} + +// GetStatus2xxOk returns a tuple with the Status2xx field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DomainInspectorMeasurements) GetStatus2xxOk() (*int32, bool) { + if o == nil || o.Status2xx == nil { + return nil, false + } + return o.Status2xx, true +} + +// HasStatus2xx returns a boolean if a field has been set. +func (o *DomainInspectorMeasurements) HasStatus2xx() bool { + if o != nil && o.Status2xx != nil { + return true + } + + return false +} + +// SetStatus2xx gets a reference to the given int32 and assigns it to the Status2xx field. +func (o *DomainInspectorMeasurements) SetStatus2xx(v int32) { + o.Status2xx = &v +} + +// GetStatus3xx returns the Status3xx field value if set, zero value otherwise. +func (o *DomainInspectorMeasurements) GetStatus3xx() int32 { + if o == nil || o.Status3xx == nil { + var ret int32 + return ret + } + return *o.Status3xx +} + +// GetStatus3xxOk returns a tuple with the Status3xx field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DomainInspectorMeasurements) GetStatus3xxOk() (*int32, bool) { + if o == nil || o.Status3xx == nil { + return nil, false + } + return o.Status3xx, true +} + +// HasStatus3xx returns a boolean if a field has been set. +func (o *DomainInspectorMeasurements) HasStatus3xx() bool { + if o != nil && o.Status3xx != nil { + return true + } + + return false +} + +// SetStatus3xx gets a reference to the given int32 and assigns it to the Status3xx field. +func (o *DomainInspectorMeasurements) SetStatus3xx(v int32) { + o.Status3xx = &v +} + +// GetStatus4xx returns the Status4xx field value if set, zero value otherwise. +func (o *DomainInspectorMeasurements) GetStatus4xx() int32 { + if o == nil || o.Status4xx == nil { + var ret int32 + return ret + } + return *o.Status4xx +} + +// GetStatus4xxOk returns a tuple with the Status4xx field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DomainInspectorMeasurements) GetStatus4xxOk() (*int32, bool) { + if o == nil || o.Status4xx == nil { + return nil, false + } + return o.Status4xx, true +} + +// HasStatus4xx returns a boolean if a field has been set. +func (o *DomainInspectorMeasurements) HasStatus4xx() bool { + if o != nil && o.Status4xx != nil { + return true + } + + return false +} + +// SetStatus4xx gets a reference to the given int32 and assigns it to the Status4xx field. +func (o *DomainInspectorMeasurements) SetStatus4xx(v int32) { + o.Status4xx = &v +} + +// GetStatus5xx returns the Status5xx field value if set, zero value otherwise. +func (o *DomainInspectorMeasurements) GetStatus5xx() int32 { + if o == nil || o.Status5xx == nil { + var ret int32 + return ret + } + return *o.Status5xx +} + +// GetStatus5xxOk returns a tuple with the Status5xx field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DomainInspectorMeasurements) GetStatus5xxOk() (*int32, bool) { + if o == nil || o.Status5xx == nil { + return nil, false + } + return o.Status5xx, true +} + +// HasStatus5xx returns a boolean if a field has been set. +func (o *DomainInspectorMeasurements) HasStatus5xx() bool { + if o != nil && o.Status5xx != nil { + return true + } + + return false +} + +// SetStatus5xx gets a reference to the given int32 and assigns it to the Status5xx field. +func (o *DomainInspectorMeasurements) SetStatus5xx(v int32) { + o.Status5xx = &v +} + +// GetStatus200 returns the Status200 field value if set, zero value otherwise. +func (o *DomainInspectorMeasurements) GetStatus200() int32 { + if o == nil || o.Status200 == nil { + var ret int32 + return ret + } + return *o.Status200 +} + +// GetStatus200Ok returns a tuple with the Status200 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DomainInspectorMeasurements) GetStatus200Ok() (*int32, bool) { + if o == nil || o.Status200 == nil { + return nil, false + } + return o.Status200, true +} + +// HasStatus200 returns a boolean if a field has been set. +func (o *DomainInspectorMeasurements) HasStatus200() bool { + if o != nil && o.Status200 != nil { + return true + } + + return false +} + +// SetStatus200 gets a reference to the given int32 and assigns it to the Status200 field. +func (o *DomainInspectorMeasurements) SetStatus200(v int32) { + o.Status200 = &v +} + +// GetStatus204 returns the Status204 field value if set, zero value otherwise. +func (o *DomainInspectorMeasurements) GetStatus204() int32 { + if o == nil || o.Status204 == nil { + var ret int32 + return ret + } + return *o.Status204 +} + +// GetStatus204Ok returns a tuple with the Status204 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DomainInspectorMeasurements) GetStatus204Ok() (*int32, bool) { + if o == nil || o.Status204 == nil { + return nil, false + } + return o.Status204, true +} + +// HasStatus204 returns a boolean if a field has been set. +func (o *DomainInspectorMeasurements) HasStatus204() bool { + if o != nil && o.Status204 != nil { + return true + } + + return false +} + +// SetStatus204 gets a reference to the given int32 and assigns it to the Status204 field. +func (o *DomainInspectorMeasurements) SetStatus204(v int32) { + o.Status204 = &v +} + +// GetStatus206 returns the Status206 field value if set, zero value otherwise. +func (o *DomainInspectorMeasurements) GetStatus206() int32 { + if o == nil || o.Status206 == nil { + var ret int32 + return ret + } + return *o.Status206 +} + +// GetStatus206Ok returns a tuple with the Status206 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DomainInspectorMeasurements) GetStatus206Ok() (*int32, bool) { + if o == nil || o.Status206 == nil { + return nil, false + } + return o.Status206, true +} + +// HasStatus206 returns a boolean if a field has been set. +func (o *DomainInspectorMeasurements) HasStatus206() bool { + if o != nil && o.Status206 != nil { + return true + } + + return false +} + +// SetStatus206 gets a reference to the given int32 and assigns it to the Status206 field. +func (o *DomainInspectorMeasurements) SetStatus206(v int32) { + o.Status206 = &v +} + +// GetStatus301 returns the Status301 field value if set, zero value otherwise. +func (o *DomainInspectorMeasurements) GetStatus301() int32 { + if o == nil || o.Status301 == nil { + var ret int32 + return ret + } + return *o.Status301 +} + +// GetStatus301Ok returns a tuple with the Status301 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DomainInspectorMeasurements) GetStatus301Ok() (*int32, bool) { + if o == nil || o.Status301 == nil { + return nil, false + } + return o.Status301, true +} + +// HasStatus301 returns a boolean if a field has been set. +func (o *DomainInspectorMeasurements) HasStatus301() bool { + if o != nil && o.Status301 != nil { + return true + } + + return false +} + +// SetStatus301 gets a reference to the given int32 and assigns it to the Status301 field. +func (o *DomainInspectorMeasurements) SetStatus301(v int32) { + o.Status301 = &v +} + +// GetStatus302 returns the Status302 field value if set, zero value otherwise. +func (o *DomainInspectorMeasurements) GetStatus302() int32 { + if o == nil || o.Status302 == nil { + var ret int32 + return ret + } + return *o.Status302 +} + +// GetStatus302Ok returns a tuple with the Status302 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DomainInspectorMeasurements) GetStatus302Ok() (*int32, bool) { + if o == nil || o.Status302 == nil { + return nil, false + } + return o.Status302, true +} + +// HasStatus302 returns a boolean if a field has been set. +func (o *DomainInspectorMeasurements) HasStatus302() bool { + if o != nil && o.Status302 != nil { + return true + } + + return false +} + +// SetStatus302 gets a reference to the given int32 and assigns it to the Status302 field. +func (o *DomainInspectorMeasurements) SetStatus302(v int32) { + o.Status302 = &v +} + +// GetStatus304 returns the Status304 field value if set, zero value otherwise. +func (o *DomainInspectorMeasurements) GetStatus304() int32 { + if o == nil || o.Status304 == nil { + var ret int32 + return ret + } + return *o.Status304 +} + +// GetStatus304Ok returns a tuple with the Status304 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DomainInspectorMeasurements) GetStatus304Ok() (*int32, bool) { + if o == nil || o.Status304 == nil { + return nil, false + } + return o.Status304, true +} + +// HasStatus304 returns a boolean if a field has been set. +func (o *DomainInspectorMeasurements) HasStatus304() bool { + if o != nil && o.Status304 != nil { + return true + } + + return false +} + +// SetStatus304 gets a reference to the given int32 and assigns it to the Status304 field. +func (o *DomainInspectorMeasurements) SetStatus304(v int32) { + o.Status304 = &v +} + +// GetStatus400 returns the Status400 field value if set, zero value otherwise. +func (o *DomainInspectorMeasurements) GetStatus400() int32 { + if o == nil || o.Status400 == nil { + var ret int32 + return ret + } + return *o.Status400 +} + +// GetStatus400Ok returns a tuple with the Status400 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DomainInspectorMeasurements) GetStatus400Ok() (*int32, bool) { + if o == nil || o.Status400 == nil { + return nil, false + } + return o.Status400, true +} + +// HasStatus400 returns a boolean if a field has been set. +func (o *DomainInspectorMeasurements) HasStatus400() bool { + if o != nil && o.Status400 != nil { + return true + } + + return false +} + +// SetStatus400 gets a reference to the given int32 and assigns it to the Status400 field. +func (o *DomainInspectorMeasurements) SetStatus400(v int32) { + o.Status400 = &v +} + +// GetStatus401 returns the Status401 field value if set, zero value otherwise. +func (o *DomainInspectorMeasurements) GetStatus401() int32 { + if o == nil || o.Status401 == nil { + var ret int32 + return ret + } + return *o.Status401 +} + +// GetStatus401Ok returns a tuple with the Status401 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DomainInspectorMeasurements) GetStatus401Ok() (*int32, bool) { + if o == nil || o.Status401 == nil { + return nil, false + } + return o.Status401, true +} + +// HasStatus401 returns a boolean if a field has been set. +func (o *DomainInspectorMeasurements) HasStatus401() bool { + if o != nil && o.Status401 != nil { + return true + } + + return false +} + +// SetStatus401 gets a reference to the given int32 and assigns it to the Status401 field. +func (o *DomainInspectorMeasurements) SetStatus401(v int32) { + o.Status401 = &v +} + +// GetStatus403 returns the Status403 field value if set, zero value otherwise. +func (o *DomainInspectorMeasurements) GetStatus403() int32 { + if o == nil || o.Status403 == nil { + var ret int32 + return ret + } + return *o.Status403 +} + +// GetStatus403Ok returns a tuple with the Status403 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DomainInspectorMeasurements) GetStatus403Ok() (*int32, bool) { + if o == nil || o.Status403 == nil { + return nil, false + } + return o.Status403, true +} + +// HasStatus403 returns a boolean if a field has been set. +func (o *DomainInspectorMeasurements) HasStatus403() bool { + if o != nil && o.Status403 != nil { + return true + } + + return false +} + +// SetStatus403 gets a reference to the given int32 and assigns it to the Status403 field. +func (o *DomainInspectorMeasurements) SetStatus403(v int32) { + o.Status403 = &v +} + +// GetStatus404 returns the Status404 field value if set, zero value otherwise. +func (o *DomainInspectorMeasurements) GetStatus404() int32 { + if o == nil || o.Status404 == nil { + var ret int32 + return ret + } + return *o.Status404 +} + +// GetStatus404Ok returns a tuple with the Status404 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DomainInspectorMeasurements) GetStatus404Ok() (*int32, bool) { + if o == nil || o.Status404 == nil { + return nil, false + } + return o.Status404, true +} + +// HasStatus404 returns a boolean if a field has been set. +func (o *DomainInspectorMeasurements) HasStatus404() bool { + if o != nil && o.Status404 != nil { + return true + } + + return false +} + +// SetStatus404 gets a reference to the given int32 and assigns it to the Status404 field. +func (o *DomainInspectorMeasurements) SetStatus404(v int32) { + o.Status404 = &v +} + +// GetStatus416 returns the Status416 field value if set, zero value otherwise. +func (o *DomainInspectorMeasurements) GetStatus416() int32 { + if o == nil || o.Status416 == nil { + var ret int32 + return ret + } + return *o.Status416 +} + +// GetStatus416Ok returns a tuple with the Status416 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DomainInspectorMeasurements) GetStatus416Ok() (*int32, bool) { + if o == nil || o.Status416 == nil { + return nil, false + } + return o.Status416, true +} + +// HasStatus416 returns a boolean if a field has been set. +func (o *DomainInspectorMeasurements) HasStatus416() bool { + if o != nil && o.Status416 != nil { + return true + } + + return false +} + +// SetStatus416 gets a reference to the given int32 and assigns it to the Status416 field. +func (o *DomainInspectorMeasurements) SetStatus416(v int32) { + o.Status416 = &v +} + +// GetStatus429 returns the Status429 field value if set, zero value otherwise. +func (o *DomainInspectorMeasurements) GetStatus429() int32 { + if o == nil || o.Status429 == nil { + var ret int32 + return ret + } + return *o.Status429 +} + +// GetStatus429Ok returns a tuple with the Status429 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DomainInspectorMeasurements) GetStatus429Ok() (*int32, bool) { + if o == nil || o.Status429 == nil { + return nil, false + } + return o.Status429, true +} + +// HasStatus429 returns a boolean if a field has been set. +func (o *DomainInspectorMeasurements) HasStatus429() bool { + if o != nil && o.Status429 != nil { + return true + } + + return false +} + +// SetStatus429 gets a reference to the given int32 and assigns it to the Status429 field. +func (o *DomainInspectorMeasurements) SetStatus429(v int32) { + o.Status429 = &v +} + +// GetStatus500 returns the Status500 field value if set, zero value otherwise. +func (o *DomainInspectorMeasurements) GetStatus500() int32 { + if o == nil || o.Status500 == nil { + var ret int32 + return ret + } + return *o.Status500 +} + +// GetStatus500Ok returns a tuple with the Status500 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DomainInspectorMeasurements) GetStatus500Ok() (*int32, bool) { + if o == nil || o.Status500 == nil { + return nil, false + } + return o.Status500, true +} + +// HasStatus500 returns a boolean if a field has been set. +func (o *DomainInspectorMeasurements) HasStatus500() bool { + if o != nil && o.Status500 != nil { + return true + } + + return false +} + +// SetStatus500 gets a reference to the given int32 and assigns it to the Status500 field. +func (o *DomainInspectorMeasurements) SetStatus500(v int32) { + o.Status500 = &v +} + +// GetStatus501 returns the Status501 field value if set, zero value otherwise. +func (o *DomainInspectorMeasurements) GetStatus501() int32 { + if o == nil || o.Status501 == nil { + var ret int32 + return ret + } + return *o.Status501 +} + +// GetStatus501Ok returns a tuple with the Status501 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DomainInspectorMeasurements) GetStatus501Ok() (*int32, bool) { + if o == nil || o.Status501 == nil { + return nil, false + } + return o.Status501, true +} + +// HasStatus501 returns a boolean if a field has been set. +func (o *DomainInspectorMeasurements) HasStatus501() bool { + if o != nil && o.Status501 != nil { + return true + } + + return false +} + +// SetStatus501 gets a reference to the given int32 and assigns it to the Status501 field. +func (o *DomainInspectorMeasurements) SetStatus501(v int32) { + o.Status501 = &v +} + +// GetStatus502 returns the Status502 field value if set, zero value otherwise. +func (o *DomainInspectorMeasurements) GetStatus502() int32 { + if o == nil || o.Status502 == nil { + var ret int32 + return ret + } + return *o.Status502 +} + +// GetStatus502Ok returns a tuple with the Status502 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DomainInspectorMeasurements) GetStatus502Ok() (*int32, bool) { + if o == nil || o.Status502 == nil { + return nil, false + } + return o.Status502, true +} + +// HasStatus502 returns a boolean if a field has been set. +func (o *DomainInspectorMeasurements) HasStatus502() bool { + if o != nil && o.Status502 != nil { + return true + } + + return false +} + +// SetStatus502 gets a reference to the given int32 and assigns it to the Status502 field. +func (o *DomainInspectorMeasurements) SetStatus502(v int32) { + o.Status502 = &v +} + +// GetStatus503 returns the Status503 field value if set, zero value otherwise. +func (o *DomainInspectorMeasurements) GetStatus503() int32 { + if o == nil || o.Status503 == nil { + var ret int32 + return ret + } + return *o.Status503 +} + +// GetStatus503Ok returns a tuple with the Status503 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DomainInspectorMeasurements) GetStatus503Ok() (*int32, bool) { + if o == nil || o.Status503 == nil { + return nil, false + } + return o.Status503, true +} + +// HasStatus503 returns a boolean if a field has been set. +func (o *DomainInspectorMeasurements) HasStatus503() bool { + if o != nil && o.Status503 != nil { + return true + } + + return false +} + +// SetStatus503 gets a reference to the given int32 and assigns it to the Status503 field. +func (o *DomainInspectorMeasurements) SetStatus503(v int32) { + o.Status503 = &v +} + +// GetStatus504 returns the Status504 field value if set, zero value otherwise. +func (o *DomainInspectorMeasurements) GetStatus504() int32 { + if o == nil || o.Status504 == nil { + var ret int32 + return ret + } + return *o.Status504 +} + +// GetStatus504Ok returns a tuple with the Status504 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DomainInspectorMeasurements) GetStatus504Ok() (*int32, bool) { + if o == nil || o.Status504 == nil { + return nil, false + } + return o.Status504, true +} + +// HasStatus504 returns a boolean if a field has been set. +func (o *DomainInspectorMeasurements) HasStatus504() bool { + if o != nil && o.Status504 != nil { + return true + } + + return false +} + +// SetStatus504 gets a reference to the given int32 and assigns it to the Status504 field. +func (o *DomainInspectorMeasurements) SetStatus504(v int32) { + o.Status504 = &v +} + +// GetStatus505 returns the Status505 field value if set, zero value otherwise. +func (o *DomainInspectorMeasurements) GetStatus505() int32 { + if o == nil || o.Status505 == nil { + var ret int32 + return ret + } + return *o.Status505 +} + +// GetStatus505Ok returns a tuple with the Status505 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DomainInspectorMeasurements) GetStatus505Ok() (*int32, bool) { + if o == nil || o.Status505 == nil { + return nil, false + } + return o.Status505, true +} + +// HasStatus505 returns a boolean if a field has been set. +func (o *DomainInspectorMeasurements) HasStatus505() bool { + if o != nil && o.Status505 != nil { + return true + } + + return false +} + +// SetStatus505 gets a reference to the given int32 and assigns it to the Status505 field. +func (o *DomainInspectorMeasurements) SetStatus505(v int32) { + o.Status505 = &v +} + +// GetRequests returns the Requests field value if set, zero value otherwise. +func (o *DomainInspectorMeasurements) GetRequests() int32 { + if o == nil || o.Requests == nil { + var ret int32 + return ret + } + return *o.Requests +} + +// GetRequestsOk returns a tuple with the Requests field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DomainInspectorMeasurements) GetRequestsOk() (*int32, bool) { + if o == nil || o.Requests == nil { + return nil, false + } + return o.Requests, true +} + +// HasRequests returns a boolean if a field has been set. +func (o *DomainInspectorMeasurements) HasRequests() bool { + if o != nil && o.Requests != nil { + return true + } + + return false +} + +// SetRequests gets a reference to the given int32 and assigns it to the Requests field. +func (o *DomainInspectorMeasurements) SetRequests(v int32) { + o.Requests = &v +} + +// GetRespHeaderBytes returns the RespHeaderBytes field value if set, zero value otherwise. +func (o *DomainInspectorMeasurements) GetRespHeaderBytes() int32 { + if o == nil || o.RespHeaderBytes == nil { + var ret int32 + return ret + } + return *o.RespHeaderBytes +} + +// GetRespHeaderBytesOk returns a tuple with the RespHeaderBytes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DomainInspectorMeasurements) GetRespHeaderBytesOk() (*int32, bool) { + if o == nil || o.RespHeaderBytes == nil { + return nil, false + } + return o.RespHeaderBytes, true +} + +// HasRespHeaderBytes returns a boolean if a field has been set. +func (o *DomainInspectorMeasurements) HasRespHeaderBytes() bool { + if o != nil && o.RespHeaderBytes != nil { + return true + } + + return false +} + +// SetRespHeaderBytes gets a reference to the given int32 and assigns it to the RespHeaderBytes field. +func (o *DomainInspectorMeasurements) SetRespHeaderBytes(v int32) { + o.RespHeaderBytes = &v +} + +// GetRespBodyBytes returns the RespBodyBytes field value if set, zero value otherwise. +func (o *DomainInspectorMeasurements) GetRespBodyBytes() int32 { + if o == nil || o.RespBodyBytes == nil { + var ret int32 + return ret + } + return *o.RespBodyBytes +} + +// GetRespBodyBytesOk returns a tuple with the RespBodyBytes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DomainInspectorMeasurements) GetRespBodyBytesOk() (*int32, bool) { + if o == nil || o.RespBodyBytes == nil { + return nil, false + } + return o.RespBodyBytes, true +} + +// HasRespBodyBytes returns a boolean if a field has been set. +func (o *DomainInspectorMeasurements) HasRespBodyBytes() bool { + if o != nil && o.RespBodyBytes != nil { + return true + } + + return false +} + +// SetRespBodyBytes gets a reference to the given int32 and assigns it to the RespBodyBytes field. +func (o *DomainInspectorMeasurements) SetRespBodyBytes(v int32) { + o.RespBodyBytes = &v +} + +// GetBereqHeaderBytes returns the BereqHeaderBytes field value if set, zero value otherwise. +func (o *DomainInspectorMeasurements) GetBereqHeaderBytes() int32 { + if o == nil || o.BereqHeaderBytes == nil { + var ret int32 + return ret + } + return *o.BereqHeaderBytes +} + +// GetBereqHeaderBytesOk returns a tuple with the BereqHeaderBytes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DomainInspectorMeasurements) GetBereqHeaderBytesOk() (*int32, bool) { + if o == nil || o.BereqHeaderBytes == nil { + return nil, false + } + return o.BereqHeaderBytes, true +} + +// HasBereqHeaderBytes returns a boolean if a field has been set. +func (o *DomainInspectorMeasurements) HasBereqHeaderBytes() bool { + if o != nil && o.BereqHeaderBytes != nil { + return true + } + + return false +} + +// SetBereqHeaderBytes gets a reference to the given int32 and assigns it to the BereqHeaderBytes field. +func (o *DomainInspectorMeasurements) SetBereqHeaderBytes(v int32) { + o.BereqHeaderBytes = &v +} + +// GetBereqBodyBytes returns the BereqBodyBytes field value if set, zero value otherwise. +func (o *DomainInspectorMeasurements) GetBereqBodyBytes() int32 { + if o == nil || o.BereqBodyBytes == nil { + var ret int32 + return ret + } + return *o.BereqBodyBytes +} + +// GetBereqBodyBytesOk returns a tuple with the BereqBodyBytes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DomainInspectorMeasurements) GetBereqBodyBytesOk() (*int32, bool) { + if o == nil || o.BereqBodyBytes == nil { + return nil, false + } + return o.BereqBodyBytes, true +} + +// HasBereqBodyBytes returns a boolean if a field has been set. +func (o *DomainInspectorMeasurements) HasBereqBodyBytes() bool { + if o != nil && o.BereqBodyBytes != nil { + return true + } + + return false +} + +// SetBereqBodyBytes gets a reference to the given int32 and assigns it to the BereqBodyBytes field. +func (o *DomainInspectorMeasurements) SetBereqBodyBytes(v int32) { + o.BereqBodyBytes = &v +} + +// GetEdgeHitRequests returns the EdgeHitRequests field value if set, zero value otherwise. +func (o *DomainInspectorMeasurements) GetEdgeHitRequests() int32 { + if o == nil || o.EdgeHitRequests == nil { + var ret int32 + return ret + } + return *o.EdgeHitRequests +} + +// GetEdgeHitRequestsOk returns a tuple with the EdgeHitRequests field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DomainInspectorMeasurements) GetEdgeHitRequestsOk() (*int32, bool) { + if o == nil || o.EdgeHitRequests == nil { + return nil, false + } + return o.EdgeHitRequests, true +} + +// HasEdgeHitRequests returns a boolean if a field has been set. +func (o *DomainInspectorMeasurements) HasEdgeHitRequests() bool { + if o != nil && o.EdgeHitRequests != nil { + return true + } + + return false +} + +// SetEdgeHitRequests gets a reference to the given int32 and assigns it to the EdgeHitRequests field. +func (o *DomainInspectorMeasurements) SetEdgeHitRequests(v int32) { + o.EdgeHitRequests = &v +} + +// GetEdgeMissRequests returns the EdgeMissRequests field value if set, zero value otherwise. +func (o *DomainInspectorMeasurements) GetEdgeMissRequests() int32 { + if o == nil || o.EdgeMissRequests == nil { + var ret int32 + return ret + } + return *o.EdgeMissRequests +} + +// GetEdgeMissRequestsOk returns a tuple with the EdgeMissRequests field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DomainInspectorMeasurements) GetEdgeMissRequestsOk() (*int32, bool) { + if o == nil || o.EdgeMissRequests == nil { + return nil, false + } + return o.EdgeMissRequests, true +} + +// HasEdgeMissRequests returns a boolean if a field has been set. +func (o *DomainInspectorMeasurements) HasEdgeMissRequests() bool { + if o != nil && o.EdgeMissRequests != nil { + return true + } + + return false +} + +// SetEdgeMissRequests gets a reference to the given int32 and assigns it to the EdgeMissRequests field. +func (o *DomainInspectorMeasurements) SetEdgeMissRequests(v int32) { + o.EdgeMissRequests = &v +} + +// GetOriginFetches returns the OriginFetches field value if set, zero value otherwise. +func (o *DomainInspectorMeasurements) GetOriginFetches() int32 { + if o == nil || o.OriginFetches == nil { + var ret int32 + return ret + } + return *o.OriginFetches +} + +// GetOriginFetchesOk returns a tuple with the OriginFetches field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DomainInspectorMeasurements) GetOriginFetchesOk() (*int32, bool) { + if o == nil || o.OriginFetches == nil { + return nil, false + } + return o.OriginFetches, true +} + +// HasOriginFetches returns a boolean if a field has been set. +func (o *DomainInspectorMeasurements) HasOriginFetches() bool { + if o != nil && o.OriginFetches != nil { + return true + } + + return false +} + +// SetOriginFetches gets a reference to the given int32 and assigns it to the OriginFetches field. +func (o *DomainInspectorMeasurements) SetOriginFetches(v int32) { + o.OriginFetches = &v +} + +// GetOriginFetchRespHeaderBytes returns the OriginFetchRespHeaderBytes field value if set, zero value otherwise. +func (o *DomainInspectorMeasurements) GetOriginFetchRespHeaderBytes() int32 { + if o == nil || o.OriginFetchRespHeaderBytes == nil { + var ret int32 + return ret + } + return *o.OriginFetchRespHeaderBytes +} + +// GetOriginFetchRespHeaderBytesOk returns a tuple with the OriginFetchRespHeaderBytes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DomainInspectorMeasurements) GetOriginFetchRespHeaderBytesOk() (*int32, bool) { + if o == nil || o.OriginFetchRespHeaderBytes == nil { + return nil, false + } + return o.OriginFetchRespHeaderBytes, true +} + +// HasOriginFetchRespHeaderBytes returns a boolean if a field has been set. +func (o *DomainInspectorMeasurements) HasOriginFetchRespHeaderBytes() bool { + if o != nil && o.OriginFetchRespHeaderBytes != nil { + return true + } + + return false +} + +// SetOriginFetchRespHeaderBytes gets a reference to the given int32 and assigns it to the OriginFetchRespHeaderBytes field. +func (o *DomainInspectorMeasurements) SetOriginFetchRespHeaderBytes(v int32) { + o.OriginFetchRespHeaderBytes = &v +} + +// GetOriginFetchRespBodyBytes returns the OriginFetchRespBodyBytes field value if set, zero value otherwise. +func (o *DomainInspectorMeasurements) GetOriginFetchRespBodyBytes() int32 { + if o == nil || o.OriginFetchRespBodyBytes == nil { + var ret int32 + return ret + } + return *o.OriginFetchRespBodyBytes +} + +// GetOriginFetchRespBodyBytesOk returns a tuple with the OriginFetchRespBodyBytes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DomainInspectorMeasurements) GetOriginFetchRespBodyBytesOk() (*int32, bool) { + if o == nil || o.OriginFetchRespBodyBytes == nil { + return nil, false + } + return o.OriginFetchRespBodyBytes, true +} + +// HasOriginFetchRespBodyBytes returns a boolean if a field has been set. +func (o *DomainInspectorMeasurements) HasOriginFetchRespBodyBytes() bool { + if o != nil && o.OriginFetchRespBodyBytes != nil { + return true + } + + return false +} + +// SetOriginFetchRespBodyBytes gets a reference to the given int32 and assigns it to the OriginFetchRespBodyBytes field. +func (o *DomainInspectorMeasurements) SetOriginFetchRespBodyBytes(v int32) { + o.OriginFetchRespBodyBytes = &v +} + +// GetBandwidth returns the Bandwidth field value if set, zero value otherwise. +func (o *DomainInspectorMeasurements) GetBandwidth() int32 { + if o == nil || o.Bandwidth == nil { + var ret int32 + return ret + } + return *o.Bandwidth +} + +// GetBandwidthOk returns a tuple with the Bandwidth field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DomainInspectorMeasurements) GetBandwidthOk() (*int32, bool) { + if o == nil || o.Bandwidth == nil { + return nil, false + } + return o.Bandwidth, true +} + +// HasBandwidth returns a boolean if a field has been set. +func (o *DomainInspectorMeasurements) HasBandwidth() bool { + if o != nil && o.Bandwidth != nil { + return true + } + + return false +} + +// SetBandwidth gets a reference to the given int32 and assigns it to the Bandwidth field. +func (o *DomainInspectorMeasurements) SetBandwidth(v int32) { + o.Bandwidth = &v +} + +// GetEdgeHitRatio returns the EdgeHitRatio field value if set, zero value otherwise. +func (o *DomainInspectorMeasurements) GetEdgeHitRatio() float32 { + if o == nil || o.EdgeHitRatio == nil { + var ret float32 + return ret + } + return *o.EdgeHitRatio +} + +// GetEdgeHitRatioOk returns a tuple with the EdgeHitRatio field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DomainInspectorMeasurements) GetEdgeHitRatioOk() (*float32, bool) { + if o == nil || o.EdgeHitRatio == nil { + return nil, false + } + return o.EdgeHitRatio, true +} + +// HasEdgeHitRatio returns a boolean if a field has been set. +func (o *DomainInspectorMeasurements) HasEdgeHitRatio() bool { + if o != nil && o.EdgeHitRatio != nil { + return true + } + + return false +} + +// SetEdgeHitRatio gets a reference to the given float32 and assigns it to the EdgeHitRatio field. +func (o *DomainInspectorMeasurements) SetEdgeHitRatio(v float32) { + o.EdgeHitRatio = &v +} + +// GetOriginOffload returns the OriginOffload field value if set, zero value otherwise. +func (o *DomainInspectorMeasurements) GetOriginOffload() float32 { + if o == nil || o.OriginOffload == nil { + var ret float32 + return ret + } + return *o.OriginOffload +} + +// GetOriginOffloadOk returns a tuple with the OriginOffload field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DomainInspectorMeasurements) GetOriginOffloadOk() (*float32, bool) { + if o == nil || o.OriginOffload == nil { + return nil, false + } + return o.OriginOffload, true +} + +// HasOriginOffload returns a boolean if a field has been set. +func (o *DomainInspectorMeasurements) HasOriginOffload() bool { + if o != nil && o.OriginOffload != nil { + return true + } + + return false +} + +// SetOriginOffload gets a reference to the given float32 and assigns it to the OriginOffload field. +func (o *DomainInspectorMeasurements) SetOriginOffload(v float32) { + o.OriginOffload = &v +} + +// GetOriginStatus200 returns the OriginStatus200 field value if set, zero value otherwise. +func (o *DomainInspectorMeasurements) GetOriginStatus200() int32 { + if o == nil || o.OriginStatus200 == nil { + var ret int32 + return ret + } + return *o.OriginStatus200 +} + +// GetOriginStatus200Ok returns a tuple with the OriginStatus200 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DomainInspectorMeasurements) GetOriginStatus200Ok() (*int32, bool) { + if o == nil || o.OriginStatus200 == nil { + return nil, false + } + return o.OriginStatus200, true +} + +// HasOriginStatus200 returns a boolean if a field has been set. +func (o *DomainInspectorMeasurements) HasOriginStatus200() bool { + if o != nil && o.OriginStatus200 != nil { + return true + } + + return false +} + +// SetOriginStatus200 gets a reference to the given int32 and assigns it to the OriginStatus200 field. +func (o *DomainInspectorMeasurements) SetOriginStatus200(v int32) { + o.OriginStatus200 = &v +} + +// GetOriginStatus204 returns the OriginStatus204 field value if set, zero value otherwise. +func (o *DomainInspectorMeasurements) GetOriginStatus204() int32 { + if o == nil || o.OriginStatus204 == nil { + var ret int32 + return ret + } + return *o.OriginStatus204 +} + +// GetOriginStatus204Ok returns a tuple with the OriginStatus204 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DomainInspectorMeasurements) GetOriginStatus204Ok() (*int32, bool) { + if o == nil || o.OriginStatus204 == nil { + return nil, false + } + return o.OriginStatus204, true +} + +// HasOriginStatus204 returns a boolean if a field has been set. +func (o *DomainInspectorMeasurements) HasOriginStatus204() bool { + if o != nil && o.OriginStatus204 != nil { + return true + } + + return false +} + +// SetOriginStatus204 gets a reference to the given int32 and assigns it to the OriginStatus204 field. +func (o *DomainInspectorMeasurements) SetOriginStatus204(v int32) { + o.OriginStatus204 = &v +} + +// GetOriginStatus206 returns the OriginStatus206 field value if set, zero value otherwise. +func (o *DomainInspectorMeasurements) GetOriginStatus206() int32 { + if o == nil || o.OriginStatus206 == nil { + var ret int32 + return ret + } + return *o.OriginStatus206 +} + +// GetOriginStatus206Ok returns a tuple with the OriginStatus206 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DomainInspectorMeasurements) GetOriginStatus206Ok() (*int32, bool) { + if o == nil || o.OriginStatus206 == nil { + return nil, false + } + return o.OriginStatus206, true +} + +// HasOriginStatus206 returns a boolean if a field has been set. +func (o *DomainInspectorMeasurements) HasOriginStatus206() bool { + if o != nil && o.OriginStatus206 != nil { + return true + } + + return false +} + +// SetOriginStatus206 gets a reference to the given int32 and assigns it to the OriginStatus206 field. +func (o *DomainInspectorMeasurements) SetOriginStatus206(v int32) { + o.OriginStatus206 = &v +} + +// GetOriginStatus301 returns the OriginStatus301 field value if set, zero value otherwise. +func (o *DomainInspectorMeasurements) GetOriginStatus301() int32 { + if o == nil || o.OriginStatus301 == nil { + var ret int32 + return ret + } + return *o.OriginStatus301 +} + +// GetOriginStatus301Ok returns a tuple with the OriginStatus301 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DomainInspectorMeasurements) GetOriginStatus301Ok() (*int32, bool) { + if o == nil || o.OriginStatus301 == nil { + return nil, false + } + return o.OriginStatus301, true +} + +// HasOriginStatus301 returns a boolean if a field has been set. +func (o *DomainInspectorMeasurements) HasOriginStatus301() bool { + if o != nil && o.OriginStatus301 != nil { + return true + } + + return false +} + +// SetOriginStatus301 gets a reference to the given int32 and assigns it to the OriginStatus301 field. +func (o *DomainInspectorMeasurements) SetOriginStatus301(v int32) { + o.OriginStatus301 = &v +} + +// GetOriginStatus302 returns the OriginStatus302 field value if set, zero value otherwise. +func (o *DomainInspectorMeasurements) GetOriginStatus302() int32 { + if o == nil || o.OriginStatus302 == nil { + var ret int32 + return ret + } + return *o.OriginStatus302 +} + +// GetOriginStatus302Ok returns a tuple with the OriginStatus302 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DomainInspectorMeasurements) GetOriginStatus302Ok() (*int32, bool) { + if o == nil || o.OriginStatus302 == nil { + return nil, false + } + return o.OriginStatus302, true +} + +// HasOriginStatus302 returns a boolean if a field has been set. +func (o *DomainInspectorMeasurements) HasOriginStatus302() bool { + if o != nil && o.OriginStatus302 != nil { + return true + } + + return false +} + +// SetOriginStatus302 gets a reference to the given int32 and assigns it to the OriginStatus302 field. +func (o *DomainInspectorMeasurements) SetOriginStatus302(v int32) { + o.OriginStatus302 = &v +} + +// GetOriginStatus304 returns the OriginStatus304 field value if set, zero value otherwise. +func (o *DomainInspectorMeasurements) GetOriginStatus304() int32 { + if o == nil || o.OriginStatus304 == nil { + var ret int32 + return ret + } + return *o.OriginStatus304 +} + +// GetOriginStatus304Ok returns a tuple with the OriginStatus304 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DomainInspectorMeasurements) GetOriginStatus304Ok() (*int32, bool) { + if o == nil || o.OriginStatus304 == nil { + return nil, false + } + return o.OriginStatus304, true +} + +// HasOriginStatus304 returns a boolean if a field has been set. +func (o *DomainInspectorMeasurements) HasOriginStatus304() bool { + if o != nil && o.OriginStatus304 != nil { + return true + } + + return false +} + +// SetOriginStatus304 gets a reference to the given int32 and assigns it to the OriginStatus304 field. +func (o *DomainInspectorMeasurements) SetOriginStatus304(v int32) { + o.OriginStatus304 = &v +} + +// GetOriginStatus400 returns the OriginStatus400 field value if set, zero value otherwise. +func (o *DomainInspectorMeasurements) GetOriginStatus400() int32 { + if o == nil || o.OriginStatus400 == nil { + var ret int32 + return ret + } + return *o.OriginStatus400 +} + +// GetOriginStatus400Ok returns a tuple with the OriginStatus400 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DomainInspectorMeasurements) GetOriginStatus400Ok() (*int32, bool) { + if o == nil || o.OriginStatus400 == nil { + return nil, false + } + return o.OriginStatus400, true +} + +// HasOriginStatus400 returns a boolean if a field has been set. +func (o *DomainInspectorMeasurements) HasOriginStatus400() bool { + if o != nil && o.OriginStatus400 != nil { + return true + } + + return false +} + +// SetOriginStatus400 gets a reference to the given int32 and assigns it to the OriginStatus400 field. +func (o *DomainInspectorMeasurements) SetOriginStatus400(v int32) { + o.OriginStatus400 = &v +} + +// GetOriginStatus401 returns the OriginStatus401 field value if set, zero value otherwise. +func (o *DomainInspectorMeasurements) GetOriginStatus401() int32 { + if o == nil || o.OriginStatus401 == nil { + var ret int32 + return ret + } + return *o.OriginStatus401 +} + +// GetOriginStatus401Ok returns a tuple with the OriginStatus401 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DomainInspectorMeasurements) GetOriginStatus401Ok() (*int32, bool) { + if o == nil || o.OriginStatus401 == nil { + return nil, false + } + return o.OriginStatus401, true +} + +// HasOriginStatus401 returns a boolean if a field has been set. +func (o *DomainInspectorMeasurements) HasOriginStatus401() bool { + if o != nil && o.OriginStatus401 != nil { + return true + } + + return false +} + +// SetOriginStatus401 gets a reference to the given int32 and assigns it to the OriginStatus401 field. +func (o *DomainInspectorMeasurements) SetOriginStatus401(v int32) { + o.OriginStatus401 = &v +} + +// GetOriginStatus403 returns the OriginStatus403 field value if set, zero value otherwise. +func (o *DomainInspectorMeasurements) GetOriginStatus403() int32 { + if o == nil || o.OriginStatus403 == nil { + var ret int32 + return ret + } + return *o.OriginStatus403 +} + +// GetOriginStatus403Ok returns a tuple with the OriginStatus403 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DomainInspectorMeasurements) GetOriginStatus403Ok() (*int32, bool) { + if o == nil || o.OriginStatus403 == nil { + return nil, false + } + return o.OriginStatus403, true +} + +// HasOriginStatus403 returns a boolean if a field has been set. +func (o *DomainInspectorMeasurements) HasOriginStatus403() bool { + if o != nil && o.OriginStatus403 != nil { + return true + } + + return false +} + +// SetOriginStatus403 gets a reference to the given int32 and assigns it to the OriginStatus403 field. +func (o *DomainInspectorMeasurements) SetOriginStatus403(v int32) { + o.OriginStatus403 = &v +} + +// GetOriginStatus404 returns the OriginStatus404 field value if set, zero value otherwise. +func (o *DomainInspectorMeasurements) GetOriginStatus404() int32 { + if o == nil || o.OriginStatus404 == nil { + var ret int32 + return ret + } + return *o.OriginStatus404 +} + +// GetOriginStatus404Ok returns a tuple with the OriginStatus404 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DomainInspectorMeasurements) GetOriginStatus404Ok() (*int32, bool) { + if o == nil || o.OriginStatus404 == nil { + return nil, false + } + return o.OriginStatus404, true +} + +// HasOriginStatus404 returns a boolean if a field has been set. +func (o *DomainInspectorMeasurements) HasOriginStatus404() bool { + if o != nil && o.OriginStatus404 != nil { + return true + } + + return false +} + +// SetOriginStatus404 gets a reference to the given int32 and assigns it to the OriginStatus404 field. +func (o *DomainInspectorMeasurements) SetOriginStatus404(v int32) { + o.OriginStatus404 = &v +} + +// GetOriginStatus416 returns the OriginStatus416 field value if set, zero value otherwise. +func (o *DomainInspectorMeasurements) GetOriginStatus416() int32 { + if o == nil || o.OriginStatus416 == nil { + var ret int32 + return ret + } + return *o.OriginStatus416 +} + +// GetOriginStatus416Ok returns a tuple with the OriginStatus416 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DomainInspectorMeasurements) GetOriginStatus416Ok() (*int32, bool) { + if o == nil || o.OriginStatus416 == nil { + return nil, false + } + return o.OriginStatus416, true +} + +// HasOriginStatus416 returns a boolean if a field has been set. +func (o *DomainInspectorMeasurements) HasOriginStatus416() bool { + if o != nil && o.OriginStatus416 != nil { + return true + } + + return false +} + +// SetOriginStatus416 gets a reference to the given int32 and assigns it to the OriginStatus416 field. +func (o *DomainInspectorMeasurements) SetOriginStatus416(v int32) { + o.OriginStatus416 = &v +} + +// GetOriginStatus429 returns the OriginStatus429 field value if set, zero value otherwise. +func (o *DomainInspectorMeasurements) GetOriginStatus429() int32 { + if o == nil || o.OriginStatus429 == nil { + var ret int32 + return ret + } + return *o.OriginStatus429 +} + +// GetOriginStatus429Ok returns a tuple with the OriginStatus429 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DomainInspectorMeasurements) GetOriginStatus429Ok() (*int32, bool) { + if o == nil || o.OriginStatus429 == nil { + return nil, false + } + return o.OriginStatus429, true +} + +// HasOriginStatus429 returns a boolean if a field has been set. +func (o *DomainInspectorMeasurements) HasOriginStatus429() bool { + if o != nil && o.OriginStatus429 != nil { + return true + } + + return false +} + +// SetOriginStatus429 gets a reference to the given int32 and assigns it to the OriginStatus429 field. +func (o *DomainInspectorMeasurements) SetOriginStatus429(v int32) { + o.OriginStatus429 = &v +} + +// GetOriginStatus500 returns the OriginStatus500 field value if set, zero value otherwise. +func (o *DomainInspectorMeasurements) GetOriginStatus500() int32 { + if o == nil || o.OriginStatus500 == nil { + var ret int32 + return ret + } + return *o.OriginStatus500 +} + +// GetOriginStatus500Ok returns a tuple with the OriginStatus500 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DomainInspectorMeasurements) GetOriginStatus500Ok() (*int32, bool) { + if o == nil || o.OriginStatus500 == nil { + return nil, false + } + return o.OriginStatus500, true +} + +// HasOriginStatus500 returns a boolean if a field has been set. +func (o *DomainInspectorMeasurements) HasOriginStatus500() bool { + if o != nil && o.OriginStatus500 != nil { + return true + } + + return false +} + +// SetOriginStatus500 gets a reference to the given int32 and assigns it to the OriginStatus500 field. +func (o *DomainInspectorMeasurements) SetOriginStatus500(v int32) { + o.OriginStatus500 = &v +} + +// GetOriginStatus501 returns the OriginStatus501 field value if set, zero value otherwise. +func (o *DomainInspectorMeasurements) GetOriginStatus501() int32 { + if o == nil || o.OriginStatus501 == nil { + var ret int32 + return ret + } + return *o.OriginStatus501 +} + +// GetOriginStatus501Ok returns a tuple with the OriginStatus501 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DomainInspectorMeasurements) GetOriginStatus501Ok() (*int32, bool) { + if o == nil || o.OriginStatus501 == nil { + return nil, false + } + return o.OriginStatus501, true +} + +// HasOriginStatus501 returns a boolean if a field has been set. +func (o *DomainInspectorMeasurements) HasOriginStatus501() bool { + if o != nil && o.OriginStatus501 != nil { + return true + } + + return false +} + +// SetOriginStatus501 gets a reference to the given int32 and assigns it to the OriginStatus501 field. +func (o *DomainInspectorMeasurements) SetOriginStatus501(v int32) { + o.OriginStatus501 = &v +} + +// GetOriginStatus502 returns the OriginStatus502 field value if set, zero value otherwise. +func (o *DomainInspectorMeasurements) GetOriginStatus502() int32 { + if o == nil || o.OriginStatus502 == nil { + var ret int32 + return ret + } + return *o.OriginStatus502 +} + +// GetOriginStatus502Ok returns a tuple with the OriginStatus502 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DomainInspectorMeasurements) GetOriginStatus502Ok() (*int32, bool) { + if o == nil || o.OriginStatus502 == nil { + return nil, false + } + return o.OriginStatus502, true +} + +// HasOriginStatus502 returns a boolean if a field has been set. +func (o *DomainInspectorMeasurements) HasOriginStatus502() bool { + if o != nil && o.OriginStatus502 != nil { + return true + } + + return false +} + +// SetOriginStatus502 gets a reference to the given int32 and assigns it to the OriginStatus502 field. +func (o *DomainInspectorMeasurements) SetOriginStatus502(v int32) { + o.OriginStatus502 = &v +} + +// GetOriginStatus503 returns the OriginStatus503 field value if set, zero value otherwise. +func (o *DomainInspectorMeasurements) GetOriginStatus503() int32 { + if o == nil || o.OriginStatus503 == nil { + var ret int32 + return ret + } + return *o.OriginStatus503 +} + +// GetOriginStatus503Ok returns a tuple with the OriginStatus503 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DomainInspectorMeasurements) GetOriginStatus503Ok() (*int32, bool) { + if o == nil || o.OriginStatus503 == nil { + return nil, false + } + return o.OriginStatus503, true +} + +// HasOriginStatus503 returns a boolean if a field has been set. +func (o *DomainInspectorMeasurements) HasOriginStatus503() bool { + if o != nil && o.OriginStatus503 != nil { + return true + } + + return false +} + +// SetOriginStatus503 gets a reference to the given int32 and assigns it to the OriginStatus503 field. +func (o *DomainInspectorMeasurements) SetOriginStatus503(v int32) { + o.OriginStatus503 = &v +} + +// GetOriginStatus504 returns the OriginStatus504 field value if set, zero value otherwise. +func (o *DomainInspectorMeasurements) GetOriginStatus504() int32 { + if o == nil || o.OriginStatus504 == nil { + var ret int32 + return ret + } + return *o.OriginStatus504 +} + +// GetOriginStatus504Ok returns a tuple with the OriginStatus504 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DomainInspectorMeasurements) GetOriginStatus504Ok() (*int32, bool) { + if o == nil || o.OriginStatus504 == nil { + return nil, false + } + return o.OriginStatus504, true +} + +// HasOriginStatus504 returns a boolean if a field has been set. +func (o *DomainInspectorMeasurements) HasOriginStatus504() bool { + if o != nil && o.OriginStatus504 != nil { + return true + } + + return false +} + +// SetOriginStatus504 gets a reference to the given int32 and assigns it to the OriginStatus504 field. +func (o *DomainInspectorMeasurements) SetOriginStatus504(v int32) { + o.OriginStatus504 = &v +} + +// GetOriginStatus505 returns the OriginStatus505 field value if set, zero value otherwise. +func (o *DomainInspectorMeasurements) GetOriginStatus505() int32 { + if o == nil || o.OriginStatus505 == nil { + var ret int32 + return ret + } + return *o.OriginStatus505 +} + +// GetOriginStatus505Ok returns a tuple with the OriginStatus505 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DomainInspectorMeasurements) GetOriginStatus505Ok() (*int32, bool) { + if o == nil || o.OriginStatus505 == nil { + return nil, false + } + return o.OriginStatus505, true +} + +// HasOriginStatus505 returns a boolean if a field has been set. +func (o *DomainInspectorMeasurements) HasOriginStatus505() bool { + if o != nil && o.OriginStatus505 != nil { + return true + } + + return false +} + +// SetOriginStatus505 gets a reference to the given int32 and assigns it to the OriginStatus505 field. +func (o *DomainInspectorMeasurements) SetOriginStatus505(v int32) { + o.OriginStatus505 = &v +} + +// GetOriginStatus1xx returns the OriginStatus1xx field value if set, zero value otherwise. +func (o *DomainInspectorMeasurements) GetOriginStatus1xx() int32 { + if o == nil || o.OriginStatus1xx == nil { + var ret int32 + return ret + } + return *o.OriginStatus1xx +} + +// GetOriginStatus1xxOk returns a tuple with the OriginStatus1xx field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DomainInspectorMeasurements) GetOriginStatus1xxOk() (*int32, bool) { + if o == nil || o.OriginStatus1xx == nil { + return nil, false + } + return o.OriginStatus1xx, true +} + +// HasOriginStatus1xx returns a boolean if a field has been set. +func (o *DomainInspectorMeasurements) HasOriginStatus1xx() bool { + if o != nil && o.OriginStatus1xx != nil { + return true + } + + return false +} + +// SetOriginStatus1xx gets a reference to the given int32 and assigns it to the OriginStatus1xx field. +func (o *DomainInspectorMeasurements) SetOriginStatus1xx(v int32) { + o.OriginStatus1xx = &v +} + +// GetOriginStatus2xx returns the OriginStatus2xx field value if set, zero value otherwise. +func (o *DomainInspectorMeasurements) GetOriginStatus2xx() int32 { + if o == nil || o.OriginStatus2xx == nil { + var ret int32 + return ret + } + return *o.OriginStatus2xx +} + +// GetOriginStatus2xxOk returns a tuple with the OriginStatus2xx field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DomainInspectorMeasurements) GetOriginStatus2xxOk() (*int32, bool) { + if o == nil || o.OriginStatus2xx == nil { + return nil, false + } + return o.OriginStatus2xx, true +} + +// HasOriginStatus2xx returns a boolean if a field has been set. +func (o *DomainInspectorMeasurements) HasOriginStatus2xx() bool { + if o != nil && o.OriginStatus2xx != nil { + return true + } + + return false +} + +// SetOriginStatus2xx gets a reference to the given int32 and assigns it to the OriginStatus2xx field. +func (o *DomainInspectorMeasurements) SetOriginStatus2xx(v int32) { + o.OriginStatus2xx = &v +} + +// GetOriginStatus3xx returns the OriginStatus3xx field value if set, zero value otherwise. +func (o *DomainInspectorMeasurements) GetOriginStatus3xx() int32 { + if o == nil || o.OriginStatus3xx == nil { + var ret int32 + return ret + } + return *o.OriginStatus3xx +} + +// GetOriginStatus3xxOk returns a tuple with the OriginStatus3xx field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DomainInspectorMeasurements) GetOriginStatus3xxOk() (*int32, bool) { + if o == nil || o.OriginStatus3xx == nil { + return nil, false + } + return o.OriginStatus3xx, true +} + +// HasOriginStatus3xx returns a boolean if a field has been set. +func (o *DomainInspectorMeasurements) HasOriginStatus3xx() bool { + if o != nil && o.OriginStatus3xx != nil { + return true + } + + return false +} + +// SetOriginStatus3xx gets a reference to the given int32 and assigns it to the OriginStatus3xx field. +func (o *DomainInspectorMeasurements) SetOriginStatus3xx(v int32) { + o.OriginStatus3xx = &v +} + +// GetOriginStatus4xx returns the OriginStatus4xx field value if set, zero value otherwise. +func (o *DomainInspectorMeasurements) GetOriginStatus4xx() int32 { + if o == nil || o.OriginStatus4xx == nil { + var ret int32 + return ret + } + return *o.OriginStatus4xx +} + +// GetOriginStatus4xxOk returns a tuple with the OriginStatus4xx field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DomainInspectorMeasurements) GetOriginStatus4xxOk() (*int32, bool) { + if o == nil || o.OriginStatus4xx == nil { + return nil, false + } + return o.OriginStatus4xx, true +} + +// HasOriginStatus4xx returns a boolean if a field has been set. +func (o *DomainInspectorMeasurements) HasOriginStatus4xx() bool { + if o != nil && o.OriginStatus4xx != nil { + return true + } + + return false +} + +// SetOriginStatus4xx gets a reference to the given int32 and assigns it to the OriginStatus4xx field. +func (o *DomainInspectorMeasurements) SetOriginStatus4xx(v int32) { + o.OriginStatus4xx = &v +} + +// GetOriginStatus5xx returns the OriginStatus5xx field value if set, zero value otherwise. +func (o *DomainInspectorMeasurements) GetOriginStatus5xx() int32 { + if o == nil || o.OriginStatus5xx == nil { + var ret int32 + return ret + } + return *o.OriginStatus5xx +} + +// GetOriginStatus5xxOk returns a tuple with the OriginStatus5xx field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DomainInspectorMeasurements) GetOriginStatus5xxOk() (*int32, bool) { + if o == nil || o.OriginStatus5xx == nil { + return nil, false + } + return o.OriginStatus5xx, true +} + +// HasOriginStatus5xx returns a boolean if a field has been set. +func (o *DomainInspectorMeasurements) HasOriginStatus5xx() bool { + if o != nil && o.OriginStatus5xx != nil { + return true + } + + return false +} + +// SetOriginStatus5xx gets a reference to the given int32 and assigns it to the OriginStatus5xx field. +func (o *DomainInspectorMeasurements) SetOriginStatus5xx(v int32) { + o.OriginStatus5xx = &v +} + +// MarshalJSON implements the json.Marshaler interface. +// Marshaler is the interface implemented by types that can marshal themselves into valid JSON. +func (o DomainInspectorMeasurements) MarshalJSON() ([]byte, error) { + toSerialize := map[string]any{} + if o.EdgeRequests != nil { + toSerialize["edge_requests"] = o.EdgeRequests + } + if o.EdgeRespHeaderBytes != nil { + toSerialize["edge_resp_header_bytes"] = o.EdgeRespHeaderBytes + } + if o.EdgeRespBodyBytes != nil { + toSerialize["edge_resp_body_bytes"] = o.EdgeRespBodyBytes + } + if o.Status1xx != nil { + toSerialize["status_1xx"] = o.Status1xx + } + if o.Status2xx != nil { + toSerialize["status_2xx"] = o.Status2xx + } + if o.Status3xx != nil { + toSerialize["status_3xx"] = o.Status3xx + } + if o.Status4xx != nil { + toSerialize["status_4xx"] = o.Status4xx + } + if o.Status5xx != nil { + toSerialize["status_5xx"] = o.Status5xx + } + if o.Status200 != nil { + toSerialize["status_200"] = o.Status200 + } + if o.Status204 != nil { + toSerialize["status_204"] = o.Status204 + } + if o.Status206 != nil { + toSerialize["status_206"] = o.Status206 + } + if o.Status301 != nil { + toSerialize["status_301"] = o.Status301 + } + if o.Status302 != nil { + toSerialize["status_302"] = o.Status302 + } + if o.Status304 != nil { + toSerialize["status_304"] = o.Status304 + } + if o.Status400 != nil { + toSerialize["status_400"] = o.Status400 + } + if o.Status401 != nil { + toSerialize["status_401"] = o.Status401 + } + if o.Status403 != nil { + toSerialize["status_403"] = o.Status403 + } + if o.Status404 != nil { + toSerialize["status_404"] = o.Status404 + } + if o.Status416 != nil { + toSerialize["status_416"] = o.Status416 + } + if o.Status429 != nil { + toSerialize["status_429"] = o.Status429 + } + if o.Status500 != nil { + toSerialize["status_500"] = o.Status500 + } + if o.Status501 != nil { + toSerialize["status_501"] = o.Status501 + } + if o.Status502 != nil { + toSerialize["status_502"] = o.Status502 + } + if o.Status503 != nil { + toSerialize["status_503"] = o.Status503 + } + if o.Status504 != nil { + toSerialize["status_504"] = o.Status504 + } + if o.Status505 != nil { + toSerialize["status_505"] = o.Status505 + } + if o.Requests != nil { + toSerialize["requests"] = o.Requests + } + if o.RespHeaderBytes != nil { + toSerialize["resp_header_bytes"] = o.RespHeaderBytes + } + if o.RespBodyBytes != nil { + toSerialize["resp_body_bytes"] = o.RespBodyBytes + } + if o.BereqHeaderBytes != nil { + toSerialize["bereq_header_bytes"] = o.BereqHeaderBytes + } + if o.BereqBodyBytes != nil { + toSerialize["bereq_body_bytes"] = o.BereqBodyBytes + } + if o.EdgeHitRequests != nil { + toSerialize["edge_hit_requests"] = o.EdgeHitRequests + } + if o.EdgeMissRequests != nil { + toSerialize["edge_miss_requests"] = o.EdgeMissRequests + } + if o.OriginFetches != nil { + toSerialize["origin_fetches"] = o.OriginFetches + } + if o.OriginFetchRespHeaderBytes != nil { + toSerialize["origin_fetch_resp_header_bytes"] = o.OriginFetchRespHeaderBytes + } + if o.OriginFetchRespBodyBytes != nil { + toSerialize["origin_fetch_resp_body_bytes"] = o.OriginFetchRespBodyBytes + } + if o.Bandwidth != nil { + toSerialize["bandwidth"] = o.Bandwidth + } + if o.EdgeHitRatio != nil { + toSerialize["edge_hit_ratio"] = o.EdgeHitRatio + } + if o.OriginOffload != nil { + toSerialize["origin_offload"] = o.OriginOffload + } + if o.OriginStatus200 != nil { + toSerialize["origin_status_200"] = o.OriginStatus200 + } + if o.OriginStatus204 != nil { + toSerialize["origin_status_204"] = o.OriginStatus204 + } + if o.OriginStatus206 != nil { + toSerialize["origin_status_206"] = o.OriginStatus206 + } + if o.OriginStatus301 != nil { + toSerialize["origin_status_301"] = o.OriginStatus301 + } + if o.OriginStatus302 != nil { + toSerialize["origin_status_302"] = o.OriginStatus302 + } + if o.OriginStatus304 != nil { + toSerialize["origin_status_304"] = o.OriginStatus304 + } + if o.OriginStatus400 != nil { + toSerialize["origin_status_400"] = o.OriginStatus400 + } + if o.OriginStatus401 != nil { + toSerialize["origin_status_401"] = o.OriginStatus401 + } + if o.OriginStatus403 != nil { + toSerialize["origin_status_403"] = o.OriginStatus403 + } + if o.OriginStatus404 != nil { + toSerialize["origin_status_404"] = o.OriginStatus404 + } + if o.OriginStatus416 != nil { + toSerialize["origin_status_416"] = o.OriginStatus416 + } + if o.OriginStatus429 != nil { + toSerialize["origin_status_429"] = o.OriginStatus429 + } + if o.OriginStatus500 != nil { + toSerialize["origin_status_500"] = o.OriginStatus500 + } + if o.OriginStatus501 != nil { + toSerialize["origin_status_501"] = o.OriginStatus501 + } + if o.OriginStatus502 != nil { + toSerialize["origin_status_502"] = o.OriginStatus502 + } + if o.OriginStatus503 != nil { + toSerialize["origin_status_503"] = o.OriginStatus503 + } + if o.OriginStatus504 != nil { + toSerialize["origin_status_504"] = o.OriginStatus504 + } + if o.OriginStatus505 != nil { + toSerialize["origin_status_505"] = o.OriginStatus505 + } + if o.OriginStatus1xx != nil { + toSerialize["origin_status_1xx"] = o.OriginStatus1xx + } + if o.OriginStatus2xx != nil { + toSerialize["origin_status_2xx"] = o.OriginStatus2xx + } + if o.OriginStatus3xx != nil { + toSerialize["origin_status_3xx"] = o.OriginStatus3xx + } + if o.OriginStatus4xx != nil { + toSerialize["origin_status_4xx"] = o.OriginStatus4xx + } + if o.OriginStatus5xx != nil { + toSerialize["origin_status_5xx"] = o.OriginStatus5xx + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return json.Marshal(toSerialize) +} + +// UnmarshalJSON implements the Unmarshaler interface. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +func (o *DomainInspectorMeasurements) UnmarshalJSON(bytes []byte) (err error) { + varDomainInspectorMeasurements := _DomainInspectorMeasurements{} + + if err = json.Unmarshal(bytes, &varDomainInspectorMeasurements); err == nil { + *o = DomainInspectorMeasurements(varDomainInspectorMeasurements) + } + + additionalProperties := make(map[string]any) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "edge_requests") + delete(additionalProperties, "edge_resp_header_bytes") + delete(additionalProperties, "edge_resp_body_bytes") + delete(additionalProperties, "status_1xx") + delete(additionalProperties, "status_2xx") + delete(additionalProperties, "status_3xx") + delete(additionalProperties, "status_4xx") + delete(additionalProperties, "status_5xx") + delete(additionalProperties, "status_200") + delete(additionalProperties, "status_204") + delete(additionalProperties, "status_206") + delete(additionalProperties, "status_301") + delete(additionalProperties, "status_302") + delete(additionalProperties, "status_304") + delete(additionalProperties, "status_400") + delete(additionalProperties, "status_401") + delete(additionalProperties, "status_403") + delete(additionalProperties, "status_404") + delete(additionalProperties, "status_416") + delete(additionalProperties, "status_429") + delete(additionalProperties, "status_500") + delete(additionalProperties, "status_501") + delete(additionalProperties, "status_502") + delete(additionalProperties, "status_503") + delete(additionalProperties, "status_504") + delete(additionalProperties, "status_505") + delete(additionalProperties, "requests") + delete(additionalProperties, "resp_header_bytes") + delete(additionalProperties, "resp_body_bytes") + delete(additionalProperties, "bereq_header_bytes") + delete(additionalProperties, "bereq_body_bytes") + delete(additionalProperties, "edge_hit_requests") + delete(additionalProperties, "edge_miss_requests") + delete(additionalProperties, "origin_fetches") + delete(additionalProperties, "origin_fetch_resp_header_bytes") + delete(additionalProperties, "origin_fetch_resp_body_bytes") + delete(additionalProperties, "bandwidth") + delete(additionalProperties, "edge_hit_ratio") + delete(additionalProperties, "origin_offload") + delete(additionalProperties, "origin_status_200") + delete(additionalProperties, "origin_status_204") + delete(additionalProperties, "origin_status_206") + delete(additionalProperties, "origin_status_301") + delete(additionalProperties, "origin_status_302") + delete(additionalProperties, "origin_status_304") + delete(additionalProperties, "origin_status_400") + delete(additionalProperties, "origin_status_401") + delete(additionalProperties, "origin_status_403") + delete(additionalProperties, "origin_status_404") + delete(additionalProperties, "origin_status_416") + delete(additionalProperties, "origin_status_429") + delete(additionalProperties, "origin_status_500") + delete(additionalProperties, "origin_status_501") + delete(additionalProperties, "origin_status_502") + delete(additionalProperties, "origin_status_503") + delete(additionalProperties, "origin_status_504") + delete(additionalProperties, "origin_status_505") + delete(additionalProperties, "origin_status_1xx") + delete(additionalProperties, "origin_status_2xx") + delete(additionalProperties, "origin_status_3xx") + delete(additionalProperties, "origin_status_4xx") + delete(additionalProperties, "origin_status_5xx") + o.AdditionalProperties = additionalProperties + } + + return err +} + +// NullableDomainInspectorMeasurements is a helper abstraction for handling nullable domaininspectormeasurements types. +type NullableDomainInspectorMeasurements struct { + value *DomainInspectorMeasurements + isSet bool +} + +// Get returns the value. +func (v NullableDomainInspectorMeasurements) Get() *DomainInspectorMeasurements { + return v.value +} + +// Set modifies the value. +func (v *NullableDomainInspectorMeasurements) Set(val *DomainInspectorMeasurements) { + v.value = val + v.isSet = true +} + +// IsSet indicates if the value was set. +func (v NullableDomainInspectorMeasurements) IsSet() bool { + return v.isSet +} + +// Unset removes the value. +func (v *NullableDomainInspectorMeasurements) Unset() { + v.value = nil + v.isSet = false +} + +// NewNullableDomainInspectorMeasurements returns a pointer to a new instance of NullableDomainInspectorMeasurements. +func NewNullableDomainInspectorMeasurements(val *DomainInspectorMeasurements) *NullableDomainInspectorMeasurements { + return &NullableDomainInspectorMeasurements{value: val, isSet: true} +} + +// MarshalJSON implements the json.Marshaler interface. +// Marshaler is the interface implemented by types that can marshal themselves into valid JSON. +func (v NullableDomainInspectorMeasurements) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +// UnmarshalJSON implements the Unmarshaler interface. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +func (v *NullableDomainInspectorMeasurements) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/fastly/model_domain_inspector_realtime_entry.go b/fastly/model_domain_inspector_realtime_entry.go new file mode 100644 index 00000000..85ba0bbd --- /dev/null +++ b/fastly/model_domain_inspector_realtime_entry.go @@ -0,0 +1,231 @@ +// Package fastly is an API client library for interacting with most facets of the Fastly API. +package fastly + +/* +Fastly API + +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://developer.fastly.com/reference/api/) + +API version: 1.0.0 +Contact: oss@fastly.com +*/ + +// This code is auto-generated; DO NOT EDIT. + + +import ( + "encoding/json" +) + +// DomainInspectorRealtimeEntry Each reporting period is represented by an entry in the `Data` property of the top level response and provides access to [measurement data](#measurements-data-model) for that time period, grouped in various ways: by domain name, domain IP address, and optionally by POP. The `datacenter` property organizes the measurements by Fastly POP, while the `aggregated` property combines the measurements of all POPs (but still splits by backend name and IP). +type DomainInspectorRealtimeEntry struct { + Recorded *RecordedTimestamp `json:"recorded,omitempty"` + // Groups [measurements](#measurements-data-model) by backend name and then by IP address. + Aggregated map[string]DomainInspectorMeasurements `json:"aggregated,omitempty"` + // Groups [measurements](#measurements-data-model) by POP, then backend name, and then IP address. See the [POPs API](/reference/api/utils/pops/) for details about POP identifiers. + Datacenter *map[string]map[string]DomainInspectorMeasurements `json:"datacenter,omitempty"` + AdditionalProperties map[string]any +} + +type _DomainInspectorRealtimeEntry DomainInspectorRealtimeEntry + +// NewDomainInspectorRealtimeEntry instantiates a new DomainInspectorRealtimeEntry object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewDomainInspectorRealtimeEntry() *DomainInspectorRealtimeEntry { + this := DomainInspectorRealtimeEntry{} + return &this +} + +// NewDomainInspectorRealtimeEntryWithDefaults instantiates a new DomainInspectorRealtimeEntry object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewDomainInspectorRealtimeEntryWithDefaults() *DomainInspectorRealtimeEntry { + this := DomainInspectorRealtimeEntry{} + return &this +} + +// GetRecorded returns the Recorded field value if set, zero value otherwise. +func (o *DomainInspectorRealtimeEntry) GetRecorded() RecordedTimestamp { + if o == nil || o.Recorded == nil { + var ret RecordedTimestamp + return ret + } + return *o.Recorded +} + +// GetRecordedOk returns a tuple with the Recorded field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DomainInspectorRealtimeEntry) GetRecordedOk() (*RecordedTimestamp, bool) { + if o == nil || o.Recorded == nil { + return nil, false + } + return o.Recorded, true +} + +// HasRecorded returns a boolean if a field has been set. +func (o *DomainInspectorRealtimeEntry) HasRecorded() bool { + if o != nil && o.Recorded != nil { + return true + } + + return false +} + +// SetRecorded gets a reference to the given RecordedTimestamp and assigns it to the Recorded field. +func (o *DomainInspectorRealtimeEntry) SetRecorded(v RecordedTimestamp) { + o.Recorded = &v +} + +// GetAggregated returns the Aggregated field value if set, zero value otherwise. +func (o *DomainInspectorRealtimeEntry) GetAggregated() map[string]DomainInspectorMeasurements { + if o == nil || o.Aggregated == nil { + var ret map[string]DomainInspectorMeasurements + return ret + } + return o.Aggregated +} + +// GetAggregatedOk returns a tuple with the Aggregated field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DomainInspectorRealtimeEntry) GetAggregatedOk() (map[string]DomainInspectorMeasurements, bool) { + if o == nil || o.Aggregated == nil { + return nil, false + } + return o.Aggregated, true +} + +// HasAggregated returns a boolean if a field has been set. +func (o *DomainInspectorRealtimeEntry) HasAggregated() bool { + if o != nil && o.Aggregated != nil { + return true + } + + return false +} + +// SetAggregated gets a reference to the given map[string]DomainInspectorMeasurements and assigns it to the Aggregated field. +func (o *DomainInspectorRealtimeEntry) SetAggregated(v map[string]DomainInspectorMeasurements) { + o.Aggregated = v +} + +// GetDatacenter returns the Datacenter field value if set, zero value otherwise. +func (o *DomainInspectorRealtimeEntry) GetDatacenter() map[string]map[string]DomainInspectorMeasurements { + if o == nil || o.Datacenter == nil { + var ret map[string]map[string]DomainInspectorMeasurements + return ret + } + return *o.Datacenter +} + +// GetDatacenterOk returns a tuple with the Datacenter field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DomainInspectorRealtimeEntry) GetDatacenterOk() (*map[string]map[string]DomainInspectorMeasurements, bool) { + if o == nil || o.Datacenter == nil { + return nil, false + } + return o.Datacenter, true +} + +// HasDatacenter returns a boolean if a field has been set. +func (o *DomainInspectorRealtimeEntry) HasDatacenter() bool { + if o != nil && o.Datacenter != nil { + return true + } + + return false +} + +// SetDatacenter gets a reference to the given map[string]map[string]DomainInspectorMeasurements and assigns it to the Datacenter field. +func (o *DomainInspectorRealtimeEntry) SetDatacenter(v map[string]map[string]DomainInspectorMeasurements) { + o.Datacenter = &v +} + +// MarshalJSON implements the json.Marshaler interface. +// Marshaler is the interface implemented by types that can marshal themselves into valid JSON. +func (o DomainInspectorRealtimeEntry) MarshalJSON() ([]byte, error) { + toSerialize := map[string]any{} + if o.Recorded != nil { + toSerialize["recorded"] = o.Recorded + } + if o.Aggregated != nil { + toSerialize["aggregated"] = o.Aggregated + } + if o.Datacenter != nil { + toSerialize["datacenter"] = o.Datacenter + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return json.Marshal(toSerialize) +} + +// UnmarshalJSON implements the Unmarshaler interface. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +func (o *DomainInspectorRealtimeEntry) UnmarshalJSON(bytes []byte) (err error) { + varDomainInspectorRealtimeEntry := _DomainInspectorRealtimeEntry{} + + if err = json.Unmarshal(bytes, &varDomainInspectorRealtimeEntry); err == nil { + *o = DomainInspectorRealtimeEntry(varDomainInspectorRealtimeEntry) + } + + additionalProperties := make(map[string]any) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "recorded") + delete(additionalProperties, "aggregated") + delete(additionalProperties, "datacenter") + o.AdditionalProperties = additionalProperties + } + + return err +} + +// NullableDomainInspectorRealtimeEntry is a helper abstraction for handling nullable domaininspectorrealtimeentry types. +type NullableDomainInspectorRealtimeEntry struct { + value *DomainInspectorRealtimeEntry + isSet bool +} + +// Get returns the value. +func (v NullableDomainInspectorRealtimeEntry) Get() *DomainInspectorRealtimeEntry { + return v.value +} + +// Set modifies the value. +func (v *NullableDomainInspectorRealtimeEntry) Set(val *DomainInspectorRealtimeEntry) { + v.value = val + v.isSet = true +} + +// IsSet indicates if the value was set. +func (v NullableDomainInspectorRealtimeEntry) IsSet() bool { + return v.isSet +} + +// Unset removes the value. +func (v *NullableDomainInspectorRealtimeEntry) Unset() { + v.value = nil + v.isSet = false +} + +// NewNullableDomainInspectorRealtimeEntry returns a pointer to a new instance of NullableDomainInspectorRealtimeEntry. +func NewNullableDomainInspectorRealtimeEntry(val *DomainInspectorRealtimeEntry) *NullableDomainInspectorRealtimeEntry { + return &NullableDomainInspectorRealtimeEntry{value: val, isSet: true} +} + +// MarshalJSON implements the json.Marshaler interface. +// Marshaler is the interface implemented by types that can marshal themselves into valid JSON. +func (v NullableDomainInspectorRealtimeEntry) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +// UnmarshalJSON implements the Unmarshaler interface. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +func (v *NullableDomainInspectorRealtimeEntry) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/fastly/model_event_attributes.go b/fastly/model_event_attributes.go index a04a5fa0..298c118a 100644 --- a/fastly/model_event_attributes.go +++ b/fastly/model_event_attributes.go @@ -32,7 +32,7 @@ type EventAttributes struct { // IP addresses that the event was requested from. IP *string `json:"ip,omitempty"` // Hash of key value pairs of additional information. - Metadata map[string]any `json:"metadata,omitempty"` + Metadata map[string]map[string]any `json:"metadata,omitempty"` ServiceID *string `json:"service_id,omitempty"` UserID *string `json:"user_id,omitempty"` TokenID *string `json:"token_id,omitempty"` @@ -261,9 +261,9 @@ func (o *EventAttributes) SetIP(v string) { } // GetMetadata returns the Metadata field value if set, zero value otherwise. -func (o *EventAttributes) GetMetadata() map[string]any { +func (o *EventAttributes) GetMetadata() map[string]map[string]any { if o == nil || o.Metadata == nil { - var ret map[string]any + var ret map[string]map[string]any return ret } return o.Metadata @@ -271,7 +271,7 @@ func (o *EventAttributes) GetMetadata() map[string]any { // GetMetadataOk returns a tuple with the Metadata field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *EventAttributes) GetMetadataOk() (map[string]any, bool) { +func (o *EventAttributes) GetMetadataOk() (map[string]map[string]any, bool) { if o == nil || o.Metadata == nil { return nil, false } @@ -287,8 +287,8 @@ func (o *EventAttributes) HasMetadata() bool { return false } -// SetMetadata gets a reference to the given map[string]any and assigns it to the Metadata field. -func (o *EventAttributes) SetMetadata(v map[string]any) { +// SetMetadata gets a reference to the given map[string]map[string]any and assigns it to the Metadata field. +func (o *EventAttributes) SetMetadata(v map[string]map[string]any) { o.Metadata = v } diff --git a/fastly/model_events_response_all_of.go b/fastly/model_event_data.go similarity index 64% rename from fastly/model_events_response_all_of.go rename to fastly/model_event_data.go index 3e044215..dd8c72ce 100644 --- a/fastly/model_events_response_all_of.go +++ b/fastly/model_event_data.go @@ -17,33 +17,33 @@ import ( "encoding/json" ) -// EventsResponseAllOf struct for EventsResponseAllOf -type EventsResponseAllOf struct { +// EventData struct for EventData +type EventData struct { Data []Event `json:"data,omitempty"` AdditionalProperties map[string]any } -type _EventsResponseAllOf EventsResponseAllOf +type _EventData EventData -// NewEventsResponseAllOf instantiates a new EventsResponseAllOf object +// NewEventData instantiates a new EventData object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewEventsResponseAllOf() *EventsResponseAllOf { - this := EventsResponseAllOf{} +func NewEventData() *EventData { + this := EventData{} return &this } -// NewEventsResponseAllOfWithDefaults instantiates a new EventsResponseAllOf object +// NewEventDataWithDefaults instantiates a new EventData object // This constructor will only assign default values to properties that have it defined, // but it doesn't guarantee that properties required by API are set -func NewEventsResponseAllOfWithDefaults() *EventsResponseAllOf { - this := EventsResponseAllOf{} +func NewEventDataWithDefaults() *EventData { + this := EventData{} return &this } // GetData returns the Data field value if set, zero value otherwise. -func (o *EventsResponseAllOf) GetData() []Event { +func (o *EventData) GetData() []Event { if o == nil || o.Data == nil { var ret []Event return ret @@ -53,7 +53,7 @@ func (o *EventsResponseAllOf) GetData() []Event { // GetDataOk returns a tuple with the Data field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *EventsResponseAllOf) GetDataOk() ([]Event, bool) { +func (o *EventData) GetDataOk() ([]Event, bool) { if o == nil || o.Data == nil { return nil, false } @@ -61,7 +61,7 @@ func (o *EventsResponseAllOf) GetDataOk() ([]Event, bool) { } // HasData returns a boolean if a field has been set. -func (o *EventsResponseAllOf) HasData() bool { +func (o *EventData) HasData() bool { if o != nil && o.Data != nil { return true } @@ -70,13 +70,13 @@ func (o *EventsResponseAllOf) HasData() bool { } // SetData gets a reference to the given []Event and assigns it to the Data field. -func (o *EventsResponseAllOf) SetData(v []Event) { +func (o *EventData) SetData(v []Event) { o.Data = v } // MarshalJSON implements the json.Marshaler interface. // Marshaler is the interface implemented by types that can marshal themselves into valid JSON. -func (o EventsResponseAllOf) MarshalJSON() ([]byte, error) { +func (o EventData) MarshalJSON() ([]byte, error) { toSerialize := map[string]any{} if o.Data != nil { toSerialize["data"] = o.Data @@ -91,11 +91,11 @@ func (o EventsResponseAllOf) MarshalJSON() ([]byte, error) { // UnmarshalJSON implements the Unmarshaler interface. // Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. -func (o *EventsResponseAllOf) UnmarshalJSON(bytes []byte) (err error) { - varEventsResponseAllOf := _EventsResponseAllOf{} +func (o *EventData) UnmarshalJSON(bytes []byte) (err error) { + varEventData := _EventData{} - if err = json.Unmarshal(bytes, &varEventsResponseAllOf); err == nil { - *o = EventsResponseAllOf(varEventsResponseAllOf) + if err = json.Unmarshal(bytes, &varEventData); err == nil { + *o = EventData(varEventData) } additionalProperties := make(map[string]any) @@ -108,48 +108,48 @@ func (o *EventsResponseAllOf) UnmarshalJSON(bytes []byte) (err error) { return err } -// NullableEventsResponseAllOf is a helper abstraction for handling nullable eventsresponseallof types. -type NullableEventsResponseAllOf struct { - value *EventsResponseAllOf +// NullableEventData is a helper abstraction for handling nullable eventdata types. +type NullableEventData struct { + value *EventData isSet bool } // Get returns the value. -func (v NullableEventsResponseAllOf) Get() *EventsResponseAllOf { +func (v NullableEventData) Get() *EventData { return v.value } // Set modifies the value. -func (v *NullableEventsResponseAllOf) Set(val *EventsResponseAllOf) { +func (v *NullableEventData) Set(val *EventData) { v.value = val v.isSet = true } // IsSet indicates if the value was set. -func (v NullableEventsResponseAllOf) IsSet() bool { +func (v NullableEventData) IsSet() bool { return v.isSet } // Unset removes the value. -func (v *NullableEventsResponseAllOf) Unset() { +func (v *NullableEventData) Unset() { v.value = nil v.isSet = false } -// NewNullableEventsResponseAllOf returns a pointer to a new instance of NullableEventsResponseAllOf. -func NewNullableEventsResponseAllOf(val *EventsResponseAllOf) *NullableEventsResponseAllOf { - return &NullableEventsResponseAllOf{value: val, isSet: true} +// NewNullableEventData returns a pointer to a new instance of NullableEventData. +func NewNullableEventData(val *EventData) *NullableEventData { + return &NullableEventData{value: val, isSet: true} } // MarshalJSON implements the json.Marshaler interface. // Marshaler is the interface implemented by types that can marshal themselves into valid JSON. -func (v NullableEventsResponseAllOf) MarshalJSON() ([]byte, error) { +func (v NullableEventData) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } // UnmarshalJSON implements the Unmarshaler interface. // Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. -func (v *NullableEventsResponseAllOf) UnmarshalJSON(src []byte) error { +func (v *NullableEventData) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } diff --git a/fastly/model_historical_domains.go b/fastly/model_historical_domains.go new file mode 100644 index 00000000..341cb228 --- /dev/null +++ b/fastly/model_historical_domains.go @@ -0,0 +1,279 @@ +// Package fastly is an API client library for interacting with most facets of the Fastly API. +package fastly + +/* +Fastly API + +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://developer.fastly.com/reference/api/) + +API version: 1.0.0 +Contact: oss@fastly.com +*/ + +// This code is auto-generated; DO NOT EDIT. + + +import ( + "encoding/json" +) + +// HistoricalDomains struct for HistoricalDomains +type HistoricalDomains struct { + // Whether or not we were able to successfully execute the query. + Status *string `json:"status,omitempty"` + Meta *HistoricalDomainsMeta `json:"meta,omitempty"` + // If the query was not successful, this will provide a string that explains why. + Msg NullableString `json:"msg,omitempty"` + // A list of [entries](#entry-data-model), each representing one unique combination of dimensions, such as domain, region, or POP. + Data []HistoricalDomainsData `json:"data,omitempty"` + AdditionalProperties map[string]any +} + +type _HistoricalDomains HistoricalDomains + +// NewHistoricalDomains instantiates a new HistoricalDomains object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewHistoricalDomains() *HistoricalDomains { + this := HistoricalDomains{} + return &this +} + +// NewHistoricalDomainsWithDefaults instantiates a new HistoricalDomains object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewHistoricalDomainsWithDefaults() *HistoricalDomains { + this := HistoricalDomains{} + return &this +} + +// GetStatus returns the Status field value if set, zero value otherwise. +func (o *HistoricalDomains) GetStatus() string { + if o == nil || o.Status == nil { + var ret string + return ret + } + return *o.Status +} + +// GetStatusOk returns a tuple with the Status field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *HistoricalDomains) GetStatusOk() (*string, bool) { + if o == nil || o.Status == nil { + return nil, false + } + return o.Status, true +} + +// HasStatus returns a boolean if a field has been set. +func (o *HistoricalDomains) HasStatus() bool { + if o != nil && o.Status != nil { + return true + } + + return false +} + +// SetStatus gets a reference to the given string and assigns it to the Status field. +func (o *HistoricalDomains) SetStatus(v string) { + o.Status = &v +} + +// GetMeta returns the Meta field value if set, zero value otherwise. +func (o *HistoricalDomains) GetMeta() HistoricalDomainsMeta { + if o == nil || o.Meta == nil { + var ret HistoricalDomainsMeta + return ret + } + return *o.Meta +} + +// GetMetaOk returns a tuple with the Meta field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *HistoricalDomains) GetMetaOk() (*HistoricalDomainsMeta, bool) { + if o == nil || o.Meta == nil { + return nil, false + } + return o.Meta, true +} + +// HasMeta returns a boolean if a field has been set. +func (o *HistoricalDomains) HasMeta() bool { + if o != nil && o.Meta != nil { + return true + } + + return false +} + +// SetMeta gets a reference to the given HistoricalDomainsMeta and assigns it to the Meta field. +func (o *HistoricalDomains) SetMeta(v HistoricalDomainsMeta) { + o.Meta = &v +} + +// GetMsg returns the Msg field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *HistoricalDomains) GetMsg() string { + if o == nil || o.Msg.Get() == nil { + var ret string + return ret + } + return *o.Msg.Get() +} + +// GetMsgOk returns a tuple with the Msg field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *HistoricalDomains) GetMsgOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Msg.Get(), o.Msg.IsSet() +} + +// HasMsg returns a boolean if a field has been set. +func (o *HistoricalDomains) HasMsg() bool { + if o != nil && o.Msg.IsSet() { + return true + } + + return false +} + +// SetMsg gets a reference to the given NullableString and assigns it to the Msg field. +func (o *HistoricalDomains) SetMsg(v string) { + o.Msg.Set(&v) +} +// SetMsgNil sets the value for Msg to be an explicit nil +func (o *HistoricalDomains) SetMsgNil() { + o.Msg.Set(nil) +} + +// UnsetMsg ensures that no value is present for Msg, not even an explicit nil +func (o *HistoricalDomains) UnsetMsg() { + o.Msg.Unset() +} + +// GetData returns the Data field value if set, zero value otherwise. +func (o *HistoricalDomains) GetData() []HistoricalDomainsData { + if o == nil || o.Data == nil { + var ret []HistoricalDomainsData + return ret + } + return o.Data +} + +// GetDataOk returns a tuple with the Data field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *HistoricalDomains) GetDataOk() ([]HistoricalDomainsData, bool) { + if o == nil || o.Data == nil { + return nil, false + } + return o.Data, true +} + +// HasData returns a boolean if a field has been set. +func (o *HistoricalDomains) HasData() bool { + if o != nil && o.Data != nil { + return true + } + + return false +} + +// SetData gets a reference to the given []HistoricalDomainsData and assigns it to the Data field. +func (o *HistoricalDomains) SetData(v []HistoricalDomainsData) { + o.Data = v +} + +// MarshalJSON implements the json.Marshaler interface. +// Marshaler is the interface implemented by types that can marshal themselves into valid JSON. +func (o HistoricalDomains) MarshalJSON() ([]byte, error) { + toSerialize := map[string]any{} + if o.Status != nil { + toSerialize["status"] = o.Status + } + if o.Meta != nil { + toSerialize["meta"] = o.Meta + } + if o.Msg.IsSet() { + toSerialize["msg"] = o.Msg.Get() + } + if o.Data != nil { + toSerialize["data"] = o.Data + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return json.Marshal(toSerialize) +} + +// UnmarshalJSON implements the Unmarshaler interface. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +func (o *HistoricalDomains) UnmarshalJSON(bytes []byte) (err error) { + varHistoricalDomains := _HistoricalDomains{} + + if err = json.Unmarshal(bytes, &varHistoricalDomains); err == nil { + *o = HistoricalDomains(varHistoricalDomains) + } + + additionalProperties := make(map[string]any) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "status") + delete(additionalProperties, "meta") + delete(additionalProperties, "msg") + delete(additionalProperties, "data") + o.AdditionalProperties = additionalProperties + } + + return err +} + +// NullableHistoricalDomains is a helper abstraction for handling nullable historicaldomains types. +type NullableHistoricalDomains struct { + value *HistoricalDomains + isSet bool +} + +// Get returns the value. +func (v NullableHistoricalDomains) Get() *HistoricalDomains { + return v.value +} + +// Set modifies the value. +func (v *NullableHistoricalDomains) Set(val *HistoricalDomains) { + v.value = val + v.isSet = true +} + +// IsSet indicates if the value was set. +func (v NullableHistoricalDomains) IsSet() bool { + return v.isSet +} + +// Unset removes the value. +func (v *NullableHistoricalDomains) Unset() { + v.value = nil + v.isSet = false +} + +// NewNullableHistoricalDomains returns a pointer to a new instance of NullableHistoricalDomains. +func NewNullableHistoricalDomains(val *HistoricalDomains) *NullableHistoricalDomains { + return &NullableHistoricalDomains{value: val, isSet: true} +} + +// MarshalJSON implements the json.Marshaler interface. +// Marshaler is the interface implemented by types that can marshal themselves into valid JSON. +func (v NullableHistoricalDomains) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +// UnmarshalJSON implements the Unmarshaler interface. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +func (v *NullableHistoricalDomains) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/fastly/model_historical_domains_data.go b/fastly/model_historical_domains_data.go new file mode 100644 index 00000000..883609c7 --- /dev/null +++ b/fastly/model_historical_domains_data.go @@ -0,0 +1,193 @@ +// Package fastly is an API client library for interacting with most facets of the Fastly API. +package fastly + +/* +Fastly API + +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://developer.fastly.com/reference/api/) + +API version: 1.0.0 +Contact: oss@fastly.com +*/ + +// This code is auto-generated; DO NOT EDIT. + + +import ( + "encoding/json" +) + +// HistoricalDomainsData struct for HistoricalDomainsData +type HistoricalDomainsData struct { + Dimensions *DomainInspectorEntryDimensions `json:"dimensions,omitempty"` + // An array of values representing the metric values at each point in time. Note that this dataset is sparse: only the keys with non-zero values will be included in the record. + Values []Values `json:"values,omitempty"` + AdditionalProperties map[string]any +} + +type _HistoricalDomainsData HistoricalDomainsData + +// NewHistoricalDomainsData instantiates a new HistoricalDomainsData object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewHistoricalDomainsData() *HistoricalDomainsData { + this := HistoricalDomainsData{} + return &this +} + +// NewHistoricalDomainsDataWithDefaults instantiates a new HistoricalDomainsData object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewHistoricalDomainsDataWithDefaults() *HistoricalDomainsData { + this := HistoricalDomainsData{} + return &this +} + +// GetDimensions returns the Dimensions field value if set, zero value otherwise. +func (o *HistoricalDomainsData) GetDimensions() DomainInspectorEntryDimensions { + if o == nil || o.Dimensions == nil { + var ret DomainInspectorEntryDimensions + return ret + } + return *o.Dimensions +} + +// GetDimensionsOk returns a tuple with the Dimensions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *HistoricalDomainsData) GetDimensionsOk() (*DomainInspectorEntryDimensions, bool) { + if o == nil || o.Dimensions == nil { + return nil, false + } + return o.Dimensions, true +} + +// HasDimensions returns a boolean if a field has been set. +func (o *HistoricalDomainsData) HasDimensions() bool { + if o != nil && o.Dimensions != nil { + return true + } + + return false +} + +// SetDimensions gets a reference to the given DomainInspectorEntryDimensions and assigns it to the Dimensions field. +func (o *HistoricalDomainsData) SetDimensions(v DomainInspectorEntryDimensions) { + o.Dimensions = &v +} + +// GetValues returns the Values field value if set, zero value otherwise. +func (o *HistoricalDomainsData) GetValues() []Values { + if o == nil || o.Values == nil { + var ret []Values + return ret + } + return o.Values +} + +// GetValuesOk returns a tuple with the Values field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *HistoricalDomainsData) GetValuesOk() ([]Values, bool) { + if o == nil || o.Values == nil { + return nil, false + } + return o.Values, true +} + +// HasValues returns a boolean if a field has been set. +func (o *HistoricalDomainsData) HasValues() bool { + if o != nil && o.Values != nil { + return true + } + + return false +} + +// SetValues gets a reference to the given []Values and assigns it to the Values field. +func (o *HistoricalDomainsData) SetValues(v []Values) { + o.Values = v +} + +// MarshalJSON implements the json.Marshaler interface. +// Marshaler is the interface implemented by types that can marshal themselves into valid JSON. +func (o HistoricalDomainsData) MarshalJSON() ([]byte, error) { + toSerialize := map[string]any{} + if o.Dimensions != nil { + toSerialize["dimensions"] = o.Dimensions + } + if o.Values != nil { + toSerialize["values"] = o.Values + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return json.Marshal(toSerialize) +} + +// UnmarshalJSON implements the Unmarshaler interface. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +func (o *HistoricalDomainsData) UnmarshalJSON(bytes []byte) (err error) { + varHistoricalDomainsData := _HistoricalDomainsData{} + + if err = json.Unmarshal(bytes, &varHistoricalDomainsData); err == nil { + *o = HistoricalDomainsData(varHistoricalDomainsData) + } + + additionalProperties := make(map[string]any) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "dimensions") + delete(additionalProperties, "values") + o.AdditionalProperties = additionalProperties + } + + return err +} + +// NullableHistoricalDomainsData is a helper abstraction for handling nullable historicaldomainsdata types. +type NullableHistoricalDomainsData struct { + value *HistoricalDomainsData + isSet bool +} + +// Get returns the value. +func (v NullableHistoricalDomainsData) Get() *HistoricalDomainsData { + return v.value +} + +// Set modifies the value. +func (v *NullableHistoricalDomainsData) Set(val *HistoricalDomainsData) { + v.value = val + v.isSet = true +} + +// IsSet indicates if the value was set. +func (v NullableHistoricalDomainsData) IsSet() bool { + return v.isSet +} + +// Unset removes the value. +func (v *NullableHistoricalDomainsData) Unset() { + v.value = nil + v.isSet = false +} + +// NewNullableHistoricalDomainsData returns a pointer to a new instance of NullableHistoricalDomainsData. +func NewNullableHistoricalDomainsData(val *HistoricalDomainsData) *NullableHistoricalDomainsData { + return &NullableHistoricalDomainsData{value: val, isSet: true} +} + +// MarshalJSON implements the json.Marshaler interface. +// Marshaler is the interface implemented by types that can marshal themselves into valid JSON. +func (v NullableHistoricalDomainsData) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +// UnmarshalJSON implements the Unmarshaler interface. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +func (v *NullableHistoricalDomainsData) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/fastly/model_historical_domains_meta.go b/fastly/model_historical_domains_meta.go new file mode 100644 index 00000000..a943c1fe --- /dev/null +++ b/fastly/model_historical_domains_meta.go @@ -0,0 +1,459 @@ +// Package fastly is an API client library for interacting with most facets of the Fastly API. +package fastly + +/* +Fastly API + +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://developer.fastly.com/reference/api/) + +API version: 1.0.0 +Contact: oss@fastly.com +*/ + +// This code is auto-generated; DO NOT EDIT. + + +import ( + "encoding/json" +) + +// HistoricalDomainsMeta Meta information about the scope of the query in a human readable format. +type HistoricalDomainsMeta struct { + // Start time that was used to perform the query as an ISO-8601-formatted date and time. + Start *string `json:"start,omitempty"` + // End time that was used to perform the query as an ISO-8601-formatted date and time. + End *string `json:"end,omitempty"` + // Downsample that was used to perform the query. One of `minute`, `hour`, or `day`. + Downsample *string `json:"downsample,omitempty"` + // A comma-separated list of the metrics that were requested. + Metrics *string `json:"metrics,omitempty"` + // The maximum number of results shown per page. + Limit *float32 `json:"limit,omitempty"` + // A string that can be used to request the next page of results, if any. + NextCursor *string `json:"next_cursor,omitempty"` + // A comma-separated list of keys the results are sorted by. + Sort *string `json:"sort,omitempty"` + // A comma-separated list of dimensions being summed over in the query. + GroupBy *string `json:"group_by,omitempty"` + Filters *HistoricalDomainsMetaFilters `json:"filters,omitempty"` + AdditionalProperties map[string]any +} + +type _HistoricalDomainsMeta HistoricalDomainsMeta + +// NewHistoricalDomainsMeta instantiates a new HistoricalDomainsMeta object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewHistoricalDomainsMeta() *HistoricalDomainsMeta { + this := HistoricalDomainsMeta{} + return &this +} + +// NewHistoricalDomainsMetaWithDefaults instantiates a new HistoricalDomainsMeta object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewHistoricalDomainsMetaWithDefaults() *HistoricalDomainsMeta { + this := HistoricalDomainsMeta{} + return &this +} + +// GetStart returns the Start field value if set, zero value otherwise. +func (o *HistoricalDomainsMeta) GetStart() string { + if o == nil || o.Start == nil { + var ret string + return ret + } + return *o.Start +} + +// GetStartOk returns a tuple with the Start field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *HistoricalDomainsMeta) GetStartOk() (*string, bool) { + if o == nil || o.Start == nil { + return nil, false + } + return o.Start, true +} + +// HasStart returns a boolean if a field has been set. +func (o *HistoricalDomainsMeta) HasStart() bool { + if o != nil && o.Start != nil { + return true + } + + return false +} + +// SetStart gets a reference to the given string and assigns it to the Start field. +func (o *HistoricalDomainsMeta) SetStart(v string) { + o.Start = &v +} + +// GetEnd returns the End field value if set, zero value otherwise. +func (o *HistoricalDomainsMeta) GetEnd() string { + if o == nil || o.End == nil { + var ret string + return ret + } + return *o.End +} + +// GetEndOk returns a tuple with the End field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *HistoricalDomainsMeta) GetEndOk() (*string, bool) { + if o == nil || o.End == nil { + return nil, false + } + return o.End, true +} + +// HasEnd returns a boolean if a field has been set. +func (o *HistoricalDomainsMeta) HasEnd() bool { + if o != nil && o.End != nil { + return true + } + + return false +} + +// SetEnd gets a reference to the given string and assigns it to the End field. +func (o *HistoricalDomainsMeta) SetEnd(v string) { + o.End = &v +} + +// GetDownsample returns the Downsample field value if set, zero value otherwise. +func (o *HistoricalDomainsMeta) GetDownsample() string { + if o == nil || o.Downsample == nil { + var ret string + return ret + } + return *o.Downsample +} + +// GetDownsampleOk returns a tuple with the Downsample field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *HistoricalDomainsMeta) GetDownsampleOk() (*string, bool) { + if o == nil || o.Downsample == nil { + return nil, false + } + return o.Downsample, true +} + +// HasDownsample returns a boolean if a field has been set. +func (o *HistoricalDomainsMeta) HasDownsample() bool { + if o != nil && o.Downsample != nil { + return true + } + + return false +} + +// SetDownsample gets a reference to the given string and assigns it to the Downsample field. +func (o *HistoricalDomainsMeta) SetDownsample(v string) { + o.Downsample = &v +} + +// GetMetrics returns the Metrics field value if set, zero value otherwise. +func (o *HistoricalDomainsMeta) GetMetrics() string { + if o == nil || o.Metrics == nil { + var ret string + return ret + } + return *o.Metrics +} + +// GetMetricsOk returns a tuple with the Metrics field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *HistoricalDomainsMeta) GetMetricsOk() (*string, bool) { + if o == nil || o.Metrics == nil { + return nil, false + } + return o.Metrics, true +} + +// HasMetrics returns a boolean if a field has been set. +func (o *HistoricalDomainsMeta) HasMetrics() bool { + if o != nil && o.Metrics != nil { + return true + } + + return false +} + +// SetMetrics gets a reference to the given string and assigns it to the Metrics field. +func (o *HistoricalDomainsMeta) SetMetrics(v string) { + o.Metrics = &v +} + +// GetLimit returns the Limit field value if set, zero value otherwise. +func (o *HistoricalDomainsMeta) GetLimit() float32 { + if o == nil || o.Limit == nil { + var ret float32 + return ret + } + return *o.Limit +} + +// GetLimitOk returns a tuple with the Limit field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *HistoricalDomainsMeta) GetLimitOk() (*float32, bool) { + if o == nil || o.Limit == nil { + return nil, false + } + return o.Limit, true +} + +// HasLimit returns a boolean if a field has been set. +func (o *HistoricalDomainsMeta) HasLimit() bool { + if o != nil && o.Limit != nil { + return true + } + + return false +} + +// SetLimit gets a reference to the given float32 and assigns it to the Limit field. +func (o *HistoricalDomainsMeta) SetLimit(v float32) { + o.Limit = &v +} + +// GetNextCursor returns the NextCursor field value if set, zero value otherwise. +func (o *HistoricalDomainsMeta) GetNextCursor() string { + if o == nil || o.NextCursor == nil { + var ret string + return ret + } + return *o.NextCursor +} + +// GetNextCursorOk returns a tuple with the NextCursor field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *HistoricalDomainsMeta) GetNextCursorOk() (*string, bool) { + if o == nil || o.NextCursor == nil { + return nil, false + } + return o.NextCursor, true +} + +// HasNextCursor returns a boolean if a field has been set. +func (o *HistoricalDomainsMeta) HasNextCursor() bool { + if o != nil && o.NextCursor != nil { + return true + } + + return false +} + +// SetNextCursor gets a reference to the given string and assigns it to the NextCursor field. +func (o *HistoricalDomainsMeta) SetNextCursor(v string) { + o.NextCursor = &v +} + +// GetSort returns the Sort field value if set, zero value otherwise. +func (o *HistoricalDomainsMeta) GetSort() string { + if o == nil || o.Sort == nil { + var ret string + return ret + } + return *o.Sort +} + +// GetSortOk returns a tuple with the Sort field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *HistoricalDomainsMeta) GetSortOk() (*string, bool) { + if o == nil || o.Sort == nil { + return nil, false + } + return o.Sort, true +} + +// HasSort returns a boolean if a field has been set. +func (o *HistoricalDomainsMeta) HasSort() bool { + if o != nil && o.Sort != nil { + return true + } + + return false +} + +// SetSort gets a reference to the given string and assigns it to the Sort field. +func (o *HistoricalDomainsMeta) SetSort(v string) { + o.Sort = &v +} + +// GetGroupBy returns the GroupBy field value if set, zero value otherwise. +func (o *HistoricalDomainsMeta) GetGroupBy() string { + if o == nil || o.GroupBy == nil { + var ret string + return ret + } + return *o.GroupBy +} + +// GetGroupByOk returns a tuple with the GroupBy field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *HistoricalDomainsMeta) GetGroupByOk() (*string, bool) { + if o == nil || o.GroupBy == nil { + return nil, false + } + return o.GroupBy, true +} + +// HasGroupBy returns a boolean if a field has been set. +func (o *HistoricalDomainsMeta) HasGroupBy() bool { + if o != nil && o.GroupBy != nil { + return true + } + + return false +} + +// SetGroupBy gets a reference to the given string and assigns it to the GroupBy field. +func (o *HistoricalDomainsMeta) SetGroupBy(v string) { + o.GroupBy = &v +} + +// GetFilters returns the Filters field value if set, zero value otherwise. +func (o *HistoricalDomainsMeta) GetFilters() HistoricalDomainsMetaFilters { + if o == nil || o.Filters == nil { + var ret HistoricalDomainsMetaFilters + return ret + } + return *o.Filters +} + +// GetFiltersOk returns a tuple with the Filters field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *HistoricalDomainsMeta) GetFiltersOk() (*HistoricalDomainsMetaFilters, bool) { + if o == nil || o.Filters == nil { + return nil, false + } + return o.Filters, true +} + +// HasFilters returns a boolean if a field has been set. +func (o *HistoricalDomainsMeta) HasFilters() bool { + if o != nil && o.Filters != nil { + return true + } + + return false +} + +// SetFilters gets a reference to the given HistoricalDomainsMetaFilters and assigns it to the Filters field. +func (o *HistoricalDomainsMeta) SetFilters(v HistoricalDomainsMetaFilters) { + o.Filters = &v +} + +// MarshalJSON implements the json.Marshaler interface. +// Marshaler is the interface implemented by types that can marshal themselves into valid JSON. +func (o HistoricalDomainsMeta) MarshalJSON() ([]byte, error) { + toSerialize := map[string]any{} + if o.Start != nil { + toSerialize["start"] = o.Start + } + if o.End != nil { + toSerialize["end"] = o.End + } + if o.Downsample != nil { + toSerialize["downsample"] = o.Downsample + } + if o.Metrics != nil { + toSerialize["metrics"] = o.Metrics + } + if o.Limit != nil { + toSerialize["limit"] = o.Limit + } + if o.NextCursor != nil { + toSerialize["next_cursor"] = o.NextCursor + } + if o.Sort != nil { + toSerialize["sort"] = o.Sort + } + if o.GroupBy != nil { + toSerialize["group_by"] = o.GroupBy + } + if o.Filters != nil { + toSerialize["filters"] = o.Filters + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return json.Marshal(toSerialize) +} + +// UnmarshalJSON implements the Unmarshaler interface. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +func (o *HistoricalDomainsMeta) UnmarshalJSON(bytes []byte) (err error) { + varHistoricalDomainsMeta := _HistoricalDomainsMeta{} + + if err = json.Unmarshal(bytes, &varHistoricalDomainsMeta); err == nil { + *o = HistoricalDomainsMeta(varHistoricalDomainsMeta) + } + + additionalProperties := make(map[string]any) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "start") + delete(additionalProperties, "end") + delete(additionalProperties, "downsample") + delete(additionalProperties, "metrics") + delete(additionalProperties, "limit") + delete(additionalProperties, "next_cursor") + delete(additionalProperties, "sort") + delete(additionalProperties, "group_by") + delete(additionalProperties, "filters") + o.AdditionalProperties = additionalProperties + } + + return err +} + +// NullableHistoricalDomainsMeta is a helper abstraction for handling nullable historicaldomainsmeta types. +type NullableHistoricalDomainsMeta struct { + value *HistoricalDomainsMeta + isSet bool +} + +// Get returns the value. +func (v NullableHistoricalDomainsMeta) Get() *HistoricalDomainsMeta { + return v.value +} + +// Set modifies the value. +func (v *NullableHistoricalDomainsMeta) Set(val *HistoricalDomainsMeta) { + v.value = val + v.isSet = true +} + +// IsSet indicates if the value was set. +func (v NullableHistoricalDomainsMeta) IsSet() bool { + return v.isSet +} + +// Unset removes the value. +func (v *NullableHistoricalDomainsMeta) Unset() { + v.value = nil + v.isSet = false +} + +// NewNullableHistoricalDomainsMeta returns a pointer to a new instance of NullableHistoricalDomainsMeta. +func NewNullableHistoricalDomainsMeta(val *HistoricalDomainsMeta) *NullableHistoricalDomainsMeta { + return &NullableHistoricalDomainsMeta{value: val, isSet: true} +} + +// MarshalJSON implements the json.Marshaler interface. +// Marshaler is the interface implemented by types that can marshal themselves into valid JSON. +func (v NullableHistoricalDomainsMeta) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +// UnmarshalJSON implements the Unmarshaler interface. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +func (v *NullableHistoricalDomainsMeta) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/fastly/model_historical_domains_meta_filters.go b/fastly/model_historical_domains_meta_filters.go new file mode 100644 index 00000000..e4c28ff3 --- /dev/null +++ b/fastly/model_historical_domains_meta_filters.go @@ -0,0 +1,229 @@ +// Package fastly is an API client library for interacting with most facets of the Fastly API. +package fastly + +/* +Fastly API + +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://developer.fastly.com/reference/api/) + +API version: 1.0.0 +Contact: oss@fastly.com +*/ + +// This code is auto-generated; DO NOT EDIT. + + +import ( + "encoding/json" +) + +// HistoricalDomainsMetaFilters Filters that were applied when calculating the results for this query. +type HistoricalDomainsMetaFilters struct { + Region *string `json:"region,omitempty"` + Datacenter *string `json:"datacenter,omitempty"` + Domain *string `json:"domain,omitempty"` + AdditionalProperties map[string]any +} + +type _HistoricalDomainsMetaFilters HistoricalDomainsMetaFilters + +// NewHistoricalDomainsMetaFilters instantiates a new HistoricalDomainsMetaFilters object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewHistoricalDomainsMetaFilters() *HistoricalDomainsMetaFilters { + this := HistoricalDomainsMetaFilters{} + return &this +} + +// NewHistoricalDomainsMetaFiltersWithDefaults instantiates a new HistoricalDomainsMetaFilters object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewHistoricalDomainsMetaFiltersWithDefaults() *HistoricalDomainsMetaFilters { + this := HistoricalDomainsMetaFilters{} + return &this +} + +// GetRegion returns the Region field value if set, zero value otherwise. +func (o *HistoricalDomainsMetaFilters) GetRegion() string { + if o == nil || o.Region == nil { + var ret string + return ret + } + return *o.Region +} + +// GetRegionOk returns a tuple with the Region field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *HistoricalDomainsMetaFilters) GetRegionOk() (*string, bool) { + if o == nil || o.Region == nil { + return nil, false + } + return o.Region, true +} + +// HasRegion returns a boolean if a field has been set. +func (o *HistoricalDomainsMetaFilters) HasRegion() bool { + if o != nil && o.Region != nil { + return true + } + + return false +} + +// SetRegion gets a reference to the given string and assigns it to the Region field. +func (o *HistoricalDomainsMetaFilters) SetRegion(v string) { + o.Region = &v +} + +// GetDatacenter returns the Datacenter field value if set, zero value otherwise. +func (o *HistoricalDomainsMetaFilters) GetDatacenter() string { + if o == nil || o.Datacenter == nil { + var ret string + return ret + } + return *o.Datacenter +} + +// GetDatacenterOk returns a tuple with the Datacenter field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *HistoricalDomainsMetaFilters) GetDatacenterOk() (*string, bool) { + if o == nil || o.Datacenter == nil { + return nil, false + } + return o.Datacenter, true +} + +// HasDatacenter returns a boolean if a field has been set. +func (o *HistoricalDomainsMetaFilters) HasDatacenter() bool { + if o != nil && o.Datacenter != nil { + return true + } + + return false +} + +// SetDatacenter gets a reference to the given string and assigns it to the Datacenter field. +func (o *HistoricalDomainsMetaFilters) SetDatacenter(v string) { + o.Datacenter = &v +} + +// GetDomain returns the Domain field value if set, zero value otherwise. +func (o *HistoricalDomainsMetaFilters) GetDomain() string { + if o == nil || o.Domain == nil { + var ret string + return ret + } + return *o.Domain +} + +// GetDomainOk returns a tuple with the Domain field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *HistoricalDomainsMetaFilters) GetDomainOk() (*string, bool) { + if o == nil || o.Domain == nil { + return nil, false + } + return o.Domain, true +} + +// HasDomain returns a boolean if a field has been set. +func (o *HistoricalDomainsMetaFilters) HasDomain() bool { + if o != nil && o.Domain != nil { + return true + } + + return false +} + +// SetDomain gets a reference to the given string and assigns it to the Domain field. +func (o *HistoricalDomainsMetaFilters) SetDomain(v string) { + o.Domain = &v +} + +// MarshalJSON implements the json.Marshaler interface. +// Marshaler is the interface implemented by types that can marshal themselves into valid JSON. +func (o HistoricalDomainsMetaFilters) MarshalJSON() ([]byte, error) { + toSerialize := map[string]any{} + if o.Region != nil { + toSerialize["region"] = o.Region + } + if o.Datacenter != nil { + toSerialize["datacenter"] = o.Datacenter + } + if o.Domain != nil { + toSerialize["domain"] = o.Domain + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return json.Marshal(toSerialize) +} + +// UnmarshalJSON implements the Unmarshaler interface. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +func (o *HistoricalDomainsMetaFilters) UnmarshalJSON(bytes []byte) (err error) { + varHistoricalDomainsMetaFilters := _HistoricalDomainsMetaFilters{} + + if err = json.Unmarshal(bytes, &varHistoricalDomainsMetaFilters); err == nil { + *o = HistoricalDomainsMetaFilters(varHistoricalDomainsMetaFilters) + } + + additionalProperties := make(map[string]any) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "region") + delete(additionalProperties, "datacenter") + delete(additionalProperties, "domain") + o.AdditionalProperties = additionalProperties + } + + return err +} + +// NullableHistoricalDomainsMetaFilters is a helper abstraction for handling nullable historicaldomainsmetafilters types. +type NullableHistoricalDomainsMetaFilters struct { + value *HistoricalDomainsMetaFilters + isSet bool +} + +// Get returns the value. +func (v NullableHistoricalDomainsMetaFilters) Get() *HistoricalDomainsMetaFilters { + return v.value +} + +// Set modifies the value. +func (v *NullableHistoricalDomainsMetaFilters) Set(val *HistoricalDomainsMetaFilters) { + v.value = val + v.isSet = true +} + +// IsSet indicates if the value was set. +func (v NullableHistoricalDomainsMetaFilters) IsSet() bool { + return v.isSet +} + +// Unset removes the value. +func (v *NullableHistoricalDomainsMetaFilters) Unset() { + v.value = nil + v.isSet = false +} + +// NewNullableHistoricalDomainsMetaFilters returns a pointer to a new instance of NullableHistoricalDomainsMetaFilters. +func NewNullableHistoricalDomainsMetaFilters(val *HistoricalDomainsMetaFilters) *NullableHistoricalDomainsMetaFilters { + return &NullableHistoricalDomainsMetaFilters{value: val, isSet: true} +} + +// MarshalJSON implements the json.Marshaler interface. +// Marshaler is the interface implemented by types that can marshal themselves into valid JSON. +func (v NullableHistoricalDomainsMetaFilters) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +// UnmarshalJSON implements the Unmarshaler interface. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +func (v *NullableHistoricalDomainsMetaFilters) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/fastly/model_historical_domains_response.go b/fastly/model_historical_domains_response.go new file mode 100644 index 00000000..7ed02959 --- /dev/null +++ b/fastly/model_historical_domains_response.go @@ -0,0 +1,279 @@ +// Package fastly is an API client library for interacting with most facets of the Fastly API. +package fastly + +/* +Fastly API + +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://developer.fastly.com/reference/api/) + +API version: 1.0.0 +Contact: oss@fastly.com +*/ + +// This code is auto-generated; DO NOT EDIT. + + +import ( + "encoding/json" +) + +// HistoricalDomainsResponse struct for HistoricalDomainsResponse +type HistoricalDomainsResponse struct { + // Whether or not we were able to successfully execute the query. + Status *string `json:"status,omitempty"` + Meta *HistoricalDomainsMeta `json:"meta,omitempty"` + // If the query was not successful, this will provide a string that explains why. + Msg NullableString `json:"msg,omitempty"` + // A list of timeseries. Each individual timeseries represents a unique combination of dimensions, such as domain, region or POP. + Data []DomainInspectorEntry `json:"data,omitempty"` + AdditionalProperties map[string]any +} + +type _HistoricalDomainsResponse HistoricalDomainsResponse + +// NewHistoricalDomainsResponse instantiates a new HistoricalDomainsResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewHistoricalDomainsResponse() *HistoricalDomainsResponse { + this := HistoricalDomainsResponse{} + return &this +} + +// NewHistoricalDomainsResponseWithDefaults instantiates a new HistoricalDomainsResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewHistoricalDomainsResponseWithDefaults() *HistoricalDomainsResponse { + this := HistoricalDomainsResponse{} + return &this +} + +// GetStatus returns the Status field value if set, zero value otherwise. +func (o *HistoricalDomainsResponse) GetStatus() string { + if o == nil || o.Status == nil { + var ret string + return ret + } + return *o.Status +} + +// GetStatusOk returns a tuple with the Status field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *HistoricalDomainsResponse) GetStatusOk() (*string, bool) { + if o == nil || o.Status == nil { + return nil, false + } + return o.Status, true +} + +// HasStatus returns a boolean if a field has been set. +func (o *HistoricalDomainsResponse) HasStatus() bool { + if o != nil && o.Status != nil { + return true + } + + return false +} + +// SetStatus gets a reference to the given string and assigns it to the Status field. +func (o *HistoricalDomainsResponse) SetStatus(v string) { + o.Status = &v +} + +// GetMeta returns the Meta field value if set, zero value otherwise. +func (o *HistoricalDomainsResponse) GetMeta() HistoricalDomainsMeta { + if o == nil || o.Meta == nil { + var ret HistoricalDomainsMeta + return ret + } + return *o.Meta +} + +// GetMetaOk returns a tuple with the Meta field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *HistoricalDomainsResponse) GetMetaOk() (*HistoricalDomainsMeta, bool) { + if o == nil || o.Meta == nil { + return nil, false + } + return o.Meta, true +} + +// HasMeta returns a boolean if a field has been set. +func (o *HistoricalDomainsResponse) HasMeta() bool { + if o != nil && o.Meta != nil { + return true + } + + return false +} + +// SetMeta gets a reference to the given HistoricalDomainsMeta and assigns it to the Meta field. +func (o *HistoricalDomainsResponse) SetMeta(v HistoricalDomainsMeta) { + o.Meta = &v +} + +// GetMsg returns the Msg field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *HistoricalDomainsResponse) GetMsg() string { + if o == nil || o.Msg.Get() == nil { + var ret string + return ret + } + return *o.Msg.Get() +} + +// GetMsgOk returns a tuple with the Msg field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *HistoricalDomainsResponse) GetMsgOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Msg.Get(), o.Msg.IsSet() +} + +// HasMsg returns a boolean if a field has been set. +func (o *HistoricalDomainsResponse) HasMsg() bool { + if o != nil && o.Msg.IsSet() { + return true + } + + return false +} + +// SetMsg gets a reference to the given NullableString and assigns it to the Msg field. +func (o *HistoricalDomainsResponse) SetMsg(v string) { + o.Msg.Set(&v) +} +// SetMsgNil sets the value for Msg to be an explicit nil +func (o *HistoricalDomainsResponse) SetMsgNil() { + o.Msg.Set(nil) +} + +// UnsetMsg ensures that no value is present for Msg, not even an explicit nil +func (o *HistoricalDomainsResponse) UnsetMsg() { + o.Msg.Unset() +} + +// GetData returns the Data field value if set, zero value otherwise. +func (o *HistoricalDomainsResponse) GetData() []DomainInspectorEntry { + if o == nil || o.Data == nil { + var ret []DomainInspectorEntry + return ret + } + return o.Data +} + +// GetDataOk returns a tuple with the Data field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *HistoricalDomainsResponse) GetDataOk() ([]DomainInspectorEntry, bool) { + if o == nil || o.Data == nil { + return nil, false + } + return o.Data, true +} + +// HasData returns a boolean if a field has been set. +func (o *HistoricalDomainsResponse) HasData() bool { + if o != nil && o.Data != nil { + return true + } + + return false +} + +// SetData gets a reference to the given []DomainInspectorEntry and assigns it to the Data field. +func (o *HistoricalDomainsResponse) SetData(v []DomainInspectorEntry) { + o.Data = v +} + +// MarshalJSON implements the json.Marshaler interface. +// Marshaler is the interface implemented by types that can marshal themselves into valid JSON. +func (o HistoricalDomainsResponse) MarshalJSON() ([]byte, error) { + toSerialize := map[string]any{} + if o.Status != nil { + toSerialize["status"] = o.Status + } + if o.Meta != nil { + toSerialize["meta"] = o.Meta + } + if o.Msg.IsSet() { + toSerialize["msg"] = o.Msg.Get() + } + if o.Data != nil { + toSerialize["data"] = o.Data + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return json.Marshal(toSerialize) +} + +// UnmarshalJSON implements the Unmarshaler interface. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +func (o *HistoricalDomainsResponse) UnmarshalJSON(bytes []byte) (err error) { + varHistoricalDomainsResponse := _HistoricalDomainsResponse{} + + if err = json.Unmarshal(bytes, &varHistoricalDomainsResponse); err == nil { + *o = HistoricalDomainsResponse(varHistoricalDomainsResponse) + } + + additionalProperties := make(map[string]any) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "status") + delete(additionalProperties, "meta") + delete(additionalProperties, "msg") + delete(additionalProperties, "data") + o.AdditionalProperties = additionalProperties + } + + return err +} + +// NullableHistoricalDomainsResponse is a helper abstraction for handling nullable historicaldomainsresponse types. +type NullableHistoricalDomainsResponse struct { + value *HistoricalDomainsResponse + isSet bool +} + +// Get returns the value. +func (v NullableHistoricalDomainsResponse) Get() *HistoricalDomainsResponse { + return v.value +} + +// Set modifies the value. +func (v *NullableHistoricalDomainsResponse) Set(val *HistoricalDomainsResponse) { + v.value = val + v.isSet = true +} + +// IsSet indicates if the value was set. +func (v NullableHistoricalDomainsResponse) IsSet() bool { + return v.isSet +} + +// Unset removes the value. +func (v *NullableHistoricalDomainsResponse) Unset() { + v.value = nil + v.isSet = false +} + +// NewNullableHistoricalDomainsResponse returns a pointer to a new instance of NullableHistoricalDomainsResponse. +func NewNullableHistoricalDomainsResponse(val *HistoricalDomainsResponse) *NullableHistoricalDomainsResponse { + return &NullableHistoricalDomainsResponse{value: val, isSet: true} +} + +// MarshalJSON implements the json.Marshaler interface. +// Marshaler is the interface implemented by types that can marshal themselves into valid JSON. +func (v NullableHistoricalDomainsResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +// UnmarshalJSON implements the Unmarshaler interface. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +func (v *NullableHistoricalDomainsResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/fastly/model_historical_domains_response_all_of.go b/fastly/model_historical_domains_response_all_of.go new file mode 100644 index 00000000..5aeb534f --- /dev/null +++ b/fastly/model_historical_domains_response_all_of.go @@ -0,0 +1,156 @@ +// Package fastly is an API client library for interacting with most facets of the Fastly API. +package fastly + +/* +Fastly API + +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://developer.fastly.com/reference/api/) + +API version: 1.0.0 +Contact: oss@fastly.com +*/ + +// This code is auto-generated; DO NOT EDIT. + + +import ( + "encoding/json" +) + +// HistoricalDomainsResponseAllOf struct for HistoricalDomainsResponseAllOf +type HistoricalDomainsResponseAllOf struct { + // A list of timeseries. Each individual timeseries represents a unique combination of dimensions, such as domain, region or POP. + Data []DomainInspectorEntry `json:"data,omitempty"` + AdditionalProperties map[string]any +} + +type _HistoricalDomainsResponseAllOf HistoricalDomainsResponseAllOf + +// NewHistoricalDomainsResponseAllOf instantiates a new HistoricalDomainsResponseAllOf object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewHistoricalDomainsResponseAllOf() *HistoricalDomainsResponseAllOf { + this := HistoricalDomainsResponseAllOf{} + return &this +} + +// NewHistoricalDomainsResponseAllOfWithDefaults instantiates a new HistoricalDomainsResponseAllOf object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewHistoricalDomainsResponseAllOfWithDefaults() *HistoricalDomainsResponseAllOf { + this := HistoricalDomainsResponseAllOf{} + return &this +} + +// GetData returns the Data field value if set, zero value otherwise. +func (o *HistoricalDomainsResponseAllOf) GetData() []DomainInspectorEntry { + if o == nil || o.Data == nil { + var ret []DomainInspectorEntry + return ret + } + return o.Data +} + +// GetDataOk returns a tuple with the Data field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *HistoricalDomainsResponseAllOf) GetDataOk() ([]DomainInspectorEntry, bool) { + if o == nil || o.Data == nil { + return nil, false + } + return o.Data, true +} + +// HasData returns a boolean if a field has been set. +func (o *HistoricalDomainsResponseAllOf) HasData() bool { + if o != nil && o.Data != nil { + return true + } + + return false +} + +// SetData gets a reference to the given []DomainInspectorEntry and assigns it to the Data field. +func (o *HistoricalDomainsResponseAllOf) SetData(v []DomainInspectorEntry) { + o.Data = v +} + +// MarshalJSON implements the json.Marshaler interface. +// Marshaler is the interface implemented by types that can marshal themselves into valid JSON. +func (o HistoricalDomainsResponseAllOf) MarshalJSON() ([]byte, error) { + toSerialize := map[string]any{} + if o.Data != nil { + toSerialize["data"] = o.Data + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return json.Marshal(toSerialize) +} + +// UnmarshalJSON implements the Unmarshaler interface. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +func (o *HistoricalDomainsResponseAllOf) UnmarshalJSON(bytes []byte) (err error) { + varHistoricalDomainsResponseAllOf := _HistoricalDomainsResponseAllOf{} + + if err = json.Unmarshal(bytes, &varHistoricalDomainsResponseAllOf); err == nil { + *o = HistoricalDomainsResponseAllOf(varHistoricalDomainsResponseAllOf) + } + + additionalProperties := make(map[string]any) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "data") + o.AdditionalProperties = additionalProperties + } + + return err +} + +// NullableHistoricalDomainsResponseAllOf is a helper abstraction for handling nullable historicaldomainsresponseallof types. +type NullableHistoricalDomainsResponseAllOf struct { + value *HistoricalDomainsResponseAllOf + isSet bool +} + +// Get returns the value. +func (v NullableHistoricalDomainsResponseAllOf) Get() *HistoricalDomainsResponseAllOf { + return v.value +} + +// Set modifies the value. +func (v *NullableHistoricalDomainsResponseAllOf) Set(val *HistoricalDomainsResponseAllOf) { + v.value = val + v.isSet = true +} + +// IsSet indicates if the value was set. +func (v NullableHistoricalDomainsResponseAllOf) IsSet() bool { + return v.isSet +} + +// Unset removes the value. +func (v *NullableHistoricalDomainsResponseAllOf) Unset() { + v.value = nil + v.isSet = false +} + +// NewNullableHistoricalDomainsResponseAllOf returns a pointer to a new instance of NullableHistoricalDomainsResponseAllOf. +func NewNullableHistoricalDomainsResponseAllOf(val *HistoricalDomainsResponseAllOf) *NullableHistoricalDomainsResponseAllOf { + return &NullableHistoricalDomainsResponseAllOf{value: val, isSet: true} +} + +// MarshalJSON implements the json.Marshaler interface. +// Marshaler is the interface implemented by types that can marshal themselves into valid JSON. +func (v NullableHistoricalDomainsResponseAllOf) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +// UnmarshalJSON implements the Unmarshaler interface. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +func (v *NullableHistoricalDomainsResponseAllOf) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/fastly/model_historical_field_results_attributes_all_of.go b/fastly/model_historical_field_results_attributes_additional.go similarity index 57% rename from fastly/model_historical_field_results_attributes_all_of.go rename to fastly/model_historical_field_results_attributes_additional.go index 81ba5650..c24484c9 100644 --- a/fastly/model_historical_field_results_attributes_all_of.go +++ b/fastly/model_historical_field_results_attributes_additional.go @@ -17,34 +17,34 @@ import ( "encoding/json" ) -// HistoricalFieldResultsAttributesAllOf struct for HistoricalFieldResultsAttributesAllOf -type HistoricalFieldResultsAttributesAllOf struct { +// HistoricalFieldResultsAttributesAdditional struct for HistoricalFieldResultsAttributesAdditional +type HistoricalFieldResultsAttributesAdditional struct { ServiceID *ReadOnlyIDService `json:"service_id,omitempty"` StartTime *int32 `json:"start_time,omitempty"` AdditionalProperties map[string]any } -type _HistoricalFieldResultsAttributesAllOf HistoricalFieldResultsAttributesAllOf +type _HistoricalFieldResultsAttributesAdditional HistoricalFieldResultsAttributesAdditional -// NewHistoricalFieldResultsAttributesAllOf instantiates a new HistoricalFieldResultsAttributesAllOf object +// NewHistoricalFieldResultsAttributesAdditional instantiates a new HistoricalFieldResultsAttributesAdditional object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewHistoricalFieldResultsAttributesAllOf() *HistoricalFieldResultsAttributesAllOf { - this := HistoricalFieldResultsAttributesAllOf{} +func NewHistoricalFieldResultsAttributesAdditional() *HistoricalFieldResultsAttributesAdditional { + this := HistoricalFieldResultsAttributesAdditional{} return &this } -// NewHistoricalFieldResultsAttributesAllOfWithDefaults instantiates a new HistoricalFieldResultsAttributesAllOf object +// NewHistoricalFieldResultsAttributesAdditionalWithDefaults instantiates a new HistoricalFieldResultsAttributesAdditional object // This constructor will only assign default values to properties that have it defined, // but it doesn't guarantee that properties required by API are set -func NewHistoricalFieldResultsAttributesAllOfWithDefaults() *HistoricalFieldResultsAttributesAllOf { - this := HistoricalFieldResultsAttributesAllOf{} +func NewHistoricalFieldResultsAttributesAdditionalWithDefaults() *HistoricalFieldResultsAttributesAdditional { + this := HistoricalFieldResultsAttributesAdditional{} return &this } // GetServiceID returns the ServiceID field value if set, zero value otherwise. -func (o *HistoricalFieldResultsAttributesAllOf) GetServiceID() ReadOnlyIDService { +func (o *HistoricalFieldResultsAttributesAdditional) GetServiceID() ReadOnlyIDService { if o == nil || o.ServiceID == nil { var ret ReadOnlyIDService return ret @@ -54,7 +54,7 @@ func (o *HistoricalFieldResultsAttributesAllOf) GetServiceID() ReadOnlyIDService // GetServiceIDOk returns a tuple with the ServiceID field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *HistoricalFieldResultsAttributesAllOf) GetServiceIDOk() (*ReadOnlyIDService, bool) { +func (o *HistoricalFieldResultsAttributesAdditional) GetServiceIDOk() (*ReadOnlyIDService, bool) { if o == nil || o.ServiceID == nil { return nil, false } @@ -62,7 +62,7 @@ func (o *HistoricalFieldResultsAttributesAllOf) GetServiceIDOk() (*ReadOnlyIDSer } // HasServiceID returns a boolean if a field has been set. -func (o *HistoricalFieldResultsAttributesAllOf) HasServiceID() bool { +func (o *HistoricalFieldResultsAttributesAdditional) HasServiceID() bool { if o != nil && o.ServiceID != nil { return true } @@ -71,12 +71,12 @@ func (o *HistoricalFieldResultsAttributesAllOf) HasServiceID() bool { } // SetServiceID gets a reference to the given ReadOnlyIDService and assigns it to the ServiceID field. -func (o *HistoricalFieldResultsAttributesAllOf) SetServiceID(v ReadOnlyIDService) { +func (o *HistoricalFieldResultsAttributesAdditional) SetServiceID(v ReadOnlyIDService) { o.ServiceID = &v } // GetStartTime returns the StartTime field value if set, zero value otherwise. -func (o *HistoricalFieldResultsAttributesAllOf) GetStartTime() int32 { +func (o *HistoricalFieldResultsAttributesAdditional) GetStartTime() int32 { if o == nil || o.StartTime == nil { var ret int32 return ret @@ -86,7 +86,7 @@ func (o *HistoricalFieldResultsAttributesAllOf) GetStartTime() int32 { // GetStartTimeOk returns a tuple with the StartTime field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *HistoricalFieldResultsAttributesAllOf) GetStartTimeOk() (*int32, bool) { +func (o *HistoricalFieldResultsAttributesAdditional) GetStartTimeOk() (*int32, bool) { if o == nil || o.StartTime == nil { return nil, false } @@ -94,7 +94,7 @@ func (o *HistoricalFieldResultsAttributesAllOf) GetStartTimeOk() (*int32, bool) } // HasStartTime returns a boolean if a field has been set. -func (o *HistoricalFieldResultsAttributesAllOf) HasStartTime() bool { +func (o *HistoricalFieldResultsAttributesAdditional) HasStartTime() bool { if o != nil && o.StartTime != nil { return true } @@ -103,13 +103,13 @@ func (o *HistoricalFieldResultsAttributesAllOf) HasStartTime() bool { } // SetStartTime gets a reference to the given int32 and assigns it to the StartTime field. -func (o *HistoricalFieldResultsAttributesAllOf) SetStartTime(v int32) { +func (o *HistoricalFieldResultsAttributesAdditional) SetStartTime(v int32) { o.StartTime = &v } // MarshalJSON implements the json.Marshaler interface. // Marshaler is the interface implemented by types that can marshal themselves into valid JSON. -func (o HistoricalFieldResultsAttributesAllOf) MarshalJSON() ([]byte, error) { +func (o HistoricalFieldResultsAttributesAdditional) MarshalJSON() ([]byte, error) { toSerialize := map[string]any{} if o.ServiceID != nil { toSerialize["service_id"] = o.ServiceID @@ -127,11 +127,11 @@ func (o HistoricalFieldResultsAttributesAllOf) MarshalJSON() ([]byte, error) { // UnmarshalJSON implements the Unmarshaler interface. // Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. -func (o *HistoricalFieldResultsAttributesAllOf) UnmarshalJSON(bytes []byte) (err error) { - varHistoricalFieldResultsAttributesAllOf := _HistoricalFieldResultsAttributesAllOf{} +func (o *HistoricalFieldResultsAttributesAdditional) UnmarshalJSON(bytes []byte) (err error) { + varHistoricalFieldResultsAttributesAdditional := _HistoricalFieldResultsAttributesAdditional{} - if err = json.Unmarshal(bytes, &varHistoricalFieldResultsAttributesAllOf); err == nil { - *o = HistoricalFieldResultsAttributesAllOf(varHistoricalFieldResultsAttributesAllOf) + if err = json.Unmarshal(bytes, &varHistoricalFieldResultsAttributesAdditional); err == nil { + *o = HistoricalFieldResultsAttributesAdditional(varHistoricalFieldResultsAttributesAdditional) } additionalProperties := make(map[string]any) @@ -145,48 +145,48 @@ func (o *HistoricalFieldResultsAttributesAllOf) UnmarshalJSON(bytes []byte) (err return err } -// NullableHistoricalFieldResultsAttributesAllOf is a helper abstraction for handling nullable historicalfieldresultsattributesallof types. -type NullableHistoricalFieldResultsAttributesAllOf struct { - value *HistoricalFieldResultsAttributesAllOf +// NullableHistoricalFieldResultsAttributesAdditional is a helper abstraction for handling nullable historicalfieldresultsattributesadditional types. +type NullableHistoricalFieldResultsAttributesAdditional struct { + value *HistoricalFieldResultsAttributesAdditional isSet bool } // Get returns the value. -func (v NullableHistoricalFieldResultsAttributesAllOf) Get() *HistoricalFieldResultsAttributesAllOf { +func (v NullableHistoricalFieldResultsAttributesAdditional) Get() *HistoricalFieldResultsAttributesAdditional { return v.value } // Set modifies the value. -func (v *NullableHistoricalFieldResultsAttributesAllOf) Set(val *HistoricalFieldResultsAttributesAllOf) { +func (v *NullableHistoricalFieldResultsAttributesAdditional) Set(val *HistoricalFieldResultsAttributesAdditional) { v.value = val v.isSet = true } // IsSet indicates if the value was set. -func (v NullableHistoricalFieldResultsAttributesAllOf) IsSet() bool { +func (v NullableHistoricalFieldResultsAttributesAdditional) IsSet() bool { return v.isSet } // Unset removes the value. -func (v *NullableHistoricalFieldResultsAttributesAllOf) Unset() { +func (v *NullableHistoricalFieldResultsAttributesAdditional) Unset() { v.value = nil v.isSet = false } -// NewNullableHistoricalFieldResultsAttributesAllOf returns a pointer to a new instance of NullableHistoricalFieldResultsAttributesAllOf. -func NewNullableHistoricalFieldResultsAttributesAllOf(val *HistoricalFieldResultsAttributesAllOf) *NullableHistoricalFieldResultsAttributesAllOf { - return &NullableHistoricalFieldResultsAttributesAllOf{value: val, isSet: true} +// NewNullableHistoricalFieldResultsAttributesAdditional returns a pointer to a new instance of NullableHistoricalFieldResultsAttributesAdditional. +func NewNullableHistoricalFieldResultsAttributesAdditional(val *HistoricalFieldResultsAttributesAdditional) *NullableHistoricalFieldResultsAttributesAdditional { + return &NullableHistoricalFieldResultsAttributesAdditional{value: val, isSet: true} } // MarshalJSON implements the json.Marshaler interface. // Marshaler is the interface implemented by types that can marshal themselves into valid JSON. -func (v NullableHistoricalFieldResultsAttributesAllOf) MarshalJSON() ([]byte, error) { +func (v NullableHistoricalFieldResultsAttributesAdditional) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } // UnmarshalJSON implements the Unmarshaler interface. // Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. -func (v *NullableHistoricalFieldResultsAttributesAllOf) UnmarshalJSON(src []byte) error { +func (v *NullableHistoricalFieldResultsAttributesAdditional) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } diff --git a/fastly/model_historical_origins_response.go b/fastly/model_historical_origins_response.go new file mode 100644 index 00000000..7a6f4011 --- /dev/null +++ b/fastly/model_historical_origins_response.go @@ -0,0 +1,279 @@ +// Package fastly is an API client library for interacting with most facets of the Fastly API. +package fastly + +/* +Fastly API + +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://developer.fastly.com/reference/api/) + +API version: 1.0.0 +Contact: oss@fastly.com +*/ + +// This code is auto-generated; DO NOT EDIT. + + +import ( + "encoding/json" +) + +// HistoricalOriginsResponse struct for HistoricalOriginsResponse +type HistoricalOriginsResponse struct { + // Whether or not we were able to successfully execute the query. + Status *string `json:"status,omitempty"` + Meta *OriginInspectorHistoricalMeta `json:"meta,omitempty"` + // If the query was not successful, this will provide a string that explains why. + Msg NullableString `json:"msg,omitempty"` + // A list of timeseries. Each individual timeseries represents a unique combination of dimensions, such as origin host, region or POP. + Data []OriginInspectorEntry `json:"data,omitempty"` + AdditionalProperties map[string]any +} + +type _HistoricalOriginsResponse HistoricalOriginsResponse + +// NewHistoricalOriginsResponse instantiates a new HistoricalOriginsResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewHistoricalOriginsResponse() *HistoricalOriginsResponse { + this := HistoricalOriginsResponse{} + return &this +} + +// NewHistoricalOriginsResponseWithDefaults instantiates a new HistoricalOriginsResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewHistoricalOriginsResponseWithDefaults() *HistoricalOriginsResponse { + this := HistoricalOriginsResponse{} + return &this +} + +// GetStatus returns the Status field value if set, zero value otherwise. +func (o *HistoricalOriginsResponse) GetStatus() string { + if o == nil || o.Status == nil { + var ret string + return ret + } + return *o.Status +} + +// GetStatusOk returns a tuple with the Status field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *HistoricalOriginsResponse) GetStatusOk() (*string, bool) { + if o == nil || o.Status == nil { + return nil, false + } + return o.Status, true +} + +// HasStatus returns a boolean if a field has been set. +func (o *HistoricalOriginsResponse) HasStatus() bool { + if o != nil && o.Status != nil { + return true + } + + return false +} + +// SetStatus gets a reference to the given string and assigns it to the Status field. +func (o *HistoricalOriginsResponse) SetStatus(v string) { + o.Status = &v +} + +// GetMeta returns the Meta field value if set, zero value otherwise. +func (o *HistoricalOriginsResponse) GetMeta() OriginInspectorHistoricalMeta { + if o == nil || o.Meta == nil { + var ret OriginInspectorHistoricalMeta + return ret + } + return *o.Meta +} + +// GetMetaOk returns a tuple with the Meta field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *HistoricalOriginsResponse) GetMetaOk() (*OriginInspectorHistoricalMeta, bool) { + if o == nil || o.Meta == nil { + return nil, false + } + return o.Meta, true +} + +// HasMeta returns a boolean if a field has been set. +func (o *HistoricalOriginsResponse) HasMeta() bool { + if o != nil && o.Meta != nil { + return true + } + + return false +} + +// SetMeta gets a reference to the given OriginInspectorHistoricalMeta and assigns it to the Meta field. +func (o *HistoricalOriginsResponse) SetMeta(v OriginInspectorHistoricalMeta) { + o.Meta = &v +} + +// GetMsg returns the Msg field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *HistoricalOriginsResponse) GetMsg() string { + if o == nil || o.Msg.Get() == nil { + var ret string + return ret + } + return *o.Msg.Get() +} + +// GetMsgOk returns a tuple with the Msg field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *HistoricalOriginsResponse) GetMsgOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Msg.Get(), o.Msg.IsSet() +} + +// HasMsg returns a boolean if a field has been set. +func (o *HistoricalOriginsResponse) HasMsg() bool { + if o != nil && o.Msg.IsSet() { + return true + } + + return false +} + +// SetMsg gets a reference to the given NullableString and assigns it to the Msg field. +func (o *HistoricalOriginsResponse) SetMsg(v string) { + o.Msg.Set(&v) +} +// SetMsgNil sets the value for Msg to be an explicit nil +func (o *HistoricalOriginsResponse) SetMsgNil() { + o.Msg.Set(nil) +} + +// UnsetMsg ensures that no value is present for Msg, not even an explicit nil +func (o *HistoricalOriginsResponse) UnsetMsg() { + o.Msg.Unset() +} + +// GetData returns the Data field value if set, zero value otherwise. +func (o *HistoricalOriginsResponse) GetData() []OriginInspectorEntry { + if o == nil || o.Data == nil { + var ret []OriginInspectorEntry + return ret + } + return o.Data +} + +// GetDataOk returns a tuple with the Data field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *HistoricalOriginsResponse) GetDataOk() ([]OriginInspectorEntry, bool) { + if o == nil || o.Data == nil { + return nil, false + } + return o.Data, true +} + +// HasData returns a boolean if a field has been set. +func (o *HistoricalOriginsResponse) HasData() bool { + if o != nil && o.Data != nil { + return true + } + + return false +} + +// SetData gets a reference to the given []OriginInspectorEntry and assigns it to the Data field. +func (o *HistoricalOriginsResponse) SetData(v []OriginInspectorEntry) { + o.Data = v +} + +// MarshalJSON implements the json.Marshaler interface. +// Marshaler is the interface implemented by types that can marshal themselves into valid JSON. +func (o HistoricalOriginsResponse) MarshalJSON() ([]byte, error) { + toSerialize := map[string]any{} + if o.Status != nil { + toSerialize["status"] = o.Status + } + if o.Meta != nil { + toSerialize["meta"] = o.Meta + } + if o.Msg.IsSet() { + toSerialize["msg"] = o.Msg.Get() + } + if o.Data != nil { + toSerialize["data"] = o.Data + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return json.Marshal(toSerialize) +} + +// UnmarshalJSON implements the Unmarshaler interface. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +func (o *HistoricalOriginsResponse) UnmarshalJSON(bytes []byte) (err error) { + varHistoricalOriginsResponse := _HistoricalOriginsResponse{} + + if err = json.Unmarshal(bytes, &varHistoricalOriginsResponse); err == nil { + *o = HistoricalOriginsResponse(varHistoricalOriginsResponse) + } + + additionalProperties := make(map[string]any) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "status") + delete(additionalProperties, "meta") + delete(additionalProperties, "msg") + delete(additionalProperties, "data") + o.AdditionalProperties = additionalProperties + } + + return err +} + +// NullableHistoricalOriginsResponse is a helper abstraction for handling nullable historicaloriginsresponse types. +type NullableHistoricalOriginsResponse struct { + value *HistoricalOriginsResponse + isSet bool +} + +// Get returns the value. +func (v NullableHistoricalOriginsResponse) Get() *HistoricalOriginsResponse { + return v.value +} + +// Set modifies the value. +func (v *NullableHistoricalOriginsResponse) Set(val *HistoricalOriginsResponse) { + v.value = val + v.isSet = true +} + +// IsSet indicates if the value was set. +func (v NullableHistoricalOriginsResponse) IsSet() bool { + return v.isSet +} + +// Unset removes the value. +func (v *NullableHistoricalOriginsResponse) Unset() { + v.value = nil + v.isSet = false +} + +// NewNullableHistoricalOriginsResponse returns a pointer to a new instance of NullableHistoricalOriginsResponse. +func NewNullableHistoricalOriginsResponse(val *HistoricalOriginsResponse) *NullableHistoricalOriginsResponse { + return &NullableHistoricalOriginsResponse{value: val, isSet: true} +} + +// MarshalJSON implements the json.Marshaler interface. +// Marshaler is the interface implemented by types that can marshal themselves into valid JSON. +func (v NullableHistoricalOriginsResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +// UnmarshalJSON implements the Unmarshaler interface. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +func (v *NullableHistoricalOriginsResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/fastly/model_historical_origins_response_all_of.go b/fastly/model_historical_origins_response_all_of.go new file mode 100644 index 00000000..f61dac7c --- /dev/null +++ b/fastly/model_historical_origins_response_all_of.go @@ -0,0 +1,156 @@ +// Package fastly is an API client library for interacting with most facets of the Fastly API. +package fastly + +/* +Fastly API + +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://developer.fastly.com/reference/api/) + +API version: 1.0.0 +Contact: oss@fastly.com +*/ + +// This code is auto-generated; DO NOT EDIT. + + +import ( + "encoding/json" +) + +// HistoricalOriginsResponseAllOf struct for HistoricalOriginsResponseAllOf +type HistoricalOriginsResponseAllOf struct { + // A list of timeseries. Each individual timeseries represents a unique combination of dimensions, such as origin host, region or POP. + Data []OriginInspectorEntry `json:"data,omitempty"` + AdditionalProperties map[string]any +} + +type _HistoricalOriginsResponseAllOf HistoricalOriginsResponseAllOf + +// NewHistoricalOriginsResponseAllOf instantiates a new HistoricalOriginsResponseAllOf object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewHistoricalOriginsResponseAllOf() *HistoricalOriginsResponseAllOf { + this := HistoricalOriginsResponseAllOf{} + return &this +} + +// NewHistoricalOriginsResponseAllOfWithDefaults instantiates a new HistoricalOriginsResponseAllOf object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewHistoricalOriginsResponseAllOfWithDefaults() *HistoricalOriginsResponseAllOf { + this := HistoricalOriginsResponseAllOf{} + return &this +} + +// GetData returns the Data field value if set, zero value otherwise. +func (o *HistoricalOriginsResponseAllOf) GetData() []OriginInspectorEntry { + if o == nil || o.Data == nil { + var ret []OriginInspectorEntry + return ret + } + return o.Data +} + +// GetDataOk returns a tuple with the Data field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *HistoricalOriginsResponseAllOf) GetDataOk() ([]OriginInspectorEntry, bool) { + if o == nil || o.Data == nil { + return nil, false + } + return o.Data, true +} + +// HasData returns a boolean if a field has been set. +func (o *HistoricalOriginsResponseAllOf) HasData() bool { + if o != nil && o.Data != nil { + return true + } + + return false +} + +// SetData gets a reference to the given []OriginInspectorEntry and assigns it to the Data field. +func (o *HistoricalOriginsResponseAllOf) SetData(v []OriginInspectorEntry) { + o.Data = v +} + +// MarshalJSON implements the json.Marshaler interface. +// Marshaler is the interface implemented by types that can marshal themselves into valid JSON. +func (o HistoricalOriginsResponseAllOf) MarshalJSON() ([]byte, error) { + toSerialize := map[string]any{} + if o.Data != nil { + toSerialize["data"] = o.Data + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return json.Marshal(toSerialize) +} + +// UnmarshalJSON implements the Unmarshaler interface. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +func (o *HistoricalOriginsResponseAllOf) UnmarshalJSON(bytes []byte) (err error) { + varHistoricalOriginsResponseAllOf := _HistoricalOriginsResponseAllOf{} + + if err = json.Unmarshal(bytes, &varHistoricalOriginsResponseAllOf); err == nil { + *o = HistoricalOriginsResponseAllOf(varHistoricalOriginsResponseAllOf) + } + + additionalProperties := make(map[string]any) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "data") + o.AdditionalProperties = additionalProperties + } + + return err +} + +// NullableHistoricalOriginsResponseAllOf is a helper abstraction for handling nullable historicaloriginsresponseallof types. +type NullableHistoricalOriginsResponseAllOf struct { + value *HistoricalOriginsResponseAllOf + isSet bool +} + +// Get returns the value. +func (v NullableHistoricalOriginsResponseAllOf) Get() *HistoricalOriginsResponseAllOf { + return v.value +} + +// Set modifies the value. +func (v *NullableHistoricalOriginsResponseAllOf) Set(val *HistoricalOriginsResponseAllOf) { + v.value = val + v.isSet = true +} + +// IsSet indicates if the value was set. +func (v NullableHistoricalOriginsResponseAllOf) IsSet() bool { + return v.isSet +} + +// Unset removes the value. +func (v *NullableHistoricalOriginsResponseAllOf) Unset() { + v.value = nil + v.isSet = false +} + +// NewNullableHistoricalOriginsResponseAllOf returns a pointer to a new instance of NullableHistoricalOriginsResponseAllOf. +func NewNullableHistoricalOriginsResponseAllOf(val *HistoricalOriginsResponseAllOf) *NullableHistoricalOriginsResponseAllOf { + return &NullableHistoricalOriginsResponseAllOf{value: val, isSet: true} +} + +// MarshalJSON implements the json.Marshaler interface. +// Marshaler is the interface implemented by types that can marshal themselves into valid JSON. +func (v NullableHistoricalOriginsResponseAllOf) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +// UnmarshalJSON implements the Unmarshaler interface. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +func (v *NullableHistoricalOriginsResponseAllOf) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/fastly/model_inline_response_200_5.go b/fastly/model_inline_response_200_5.go new file mode 100644 index 00000000..2e3e863f --- /dev/null +++ b/fastly/model_inline_response_200_5.go @@ -0,0 +1,192 @@ +// Package fastly is an API client library for interacting with most facets of the Fastly API. +package fastly + +/* +Fastly API + +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://developer.fastly.com/reference/api/) + +API version: 1.0.0 +Contact: oss@fastly.com +*/ + +// This code is auto-generated; DO NOT EDIT. + + +import ( + "encoding/json" +) + +// InlineResponse2005 struct for InlineResponse2005 +type InlineResponse2005 struct { + Data []SecretStoreResponse `json:"data,omitempty"` + Meta *PaginationCursorMeta `json:"meta,omitempty"` + AdditionalProperties map[string]any +} + +type _InlineResponse2005 InlineResponse2005 + +// NewInlineResponse2005 instantiates a new InlineResponse2005 object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewInlineResponse2005() *InlineResponse2005 { + this := InlineResponse2005{} + return &this +} + +// NewInlineResponse2005WithDefaults instantiates a new InlineResponse2005 object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewInlineResponse2005WithDefaults() *InlineResponse2005 { + this := InlineResponse2005{} + return &this +} + +// GetData returns the Data field value if set, zero value otherwise. +func (o *InlineResponse2005) GetData() []SecretStoreResponse { + if o == nil || o.Data == nil { + var ret []SecretStoreResponse + return ret + } + return o.Data +} + +// GetDataOk returns a tuple with the Data field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *InlineResponse2005) GetDataOk() ([]SecretStoreResponse, bool) { + if o == nil || o.Data == nil { + return nil, false + } + return o.Data, true +} + +// HasData returns a boolean if a field has been set. +func (o *InlineResponse2005) HasData() bool { + if o != nil && o.Data != nil { + return true + } + + return false +} + +// SetData gets a reference to the given []SecretStoreResponse and assigns it to the Data field. +func (o *InlineResponse2005) SetData(v []SecretStoreResponse) { + o.Data = v +} + +// GetMeta returns the Meta field value if set, zero value otherwise. +func (o *InlineResponse2005) GetMeta() PaginationCursorMeta { + if o == nil || o.Meta == nil { + var ret PaginationCursorMeta + return ret + } + return *o.Meta +} + +// GetMetaOk returns a tuple with the Meta field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *InlineResponse2005) GetMetaOk() (*PaginationCursorMeta, bool) { + if o == nil || o.Meta == nil { + return nil, false + } + return o.Meta, true +} + +// HasMeta returns a boolean if a field has been set. +func (o *InlineResponse2005) HasMeta() bool { + if o != nil && o.Meta != nil { + return true + } + + return false +} + +// SetMeta gets a reference to the given PaginationCursorMeta and assigns it to the Meta field. +func (o *InlineResponse2005) SetMeta(v PaginationCursorMeta) { + o.Meta = &v +} + +// MarshalJSON implements the json.Marshaler interface. +// Marshaler is the interface implemented by types that can marshal themselves into valid JSON. +func (o InlineResponse2005) MarshalJSON() ([]byte, error) { + toSerialize := map[string]any{} + if o.Data != nil { + toSerialize["data"] = o.Data + } + if o.Meta != nil { + toSerialize["meta"] = o.Meta + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return json.Marshal(toSerialize) +} + +// UnmarshalJSON implements the Unmarshaler interface. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +func (o *InlineResponse2005) UnmarshalJSON(bytes []byte) (err error) { + varInlineResponse2005 := _InlineResponse2005{} + + if err = json.Unmarshal(bytes, &varInlineResponse2005); err == nil { + *o = InlineResponse2005(varInlineResponse2005) + } + + additionalProperties := make(map[string]any) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "data") + delete(additionalProperties, "meta") + o.AdditionalProperties = additionalProperties + } + + return err +} + +// NullableInlineResponse2005 is a helper abstraction for handling nullable inlineresponse2005 types. +type NullableInlineResponse2005 struct { + value *InlineResponse2005 + isSet bool +} + +// Get returns the value. +func (v NullableInlineResponse2005) Get() *InlineResponse2005 { + return v.value +} + +// Set modifies the value. +func (v *NullableInlineResponse2005) Set(val *InlineResponse2005) { + v.value = val + v.isSet = true +} + +// IsSet indicates if the value was set. +func (v NullableInlineResponse2005) IsSet() bool { + return v.isSet +} + +// Unset removes the value. +func (v *NullableInlineResponse2005) Unset() { + v.value = nil + v.isSet = false +} + +// NewNullableInlineResponse2005 returns a pointer to a new instance of NullableInlineResponse2005. +func NewNullableInlineResponse2005(val *InlineResponse2005) *NullableInlineResponse2005 { + return &NullableInlineResponse2005{value: val, isSet: true} +} + +// MarshalJSON implements the json.Marshaler interface. +// Marshaler is the interface implemented by types that can marshal themselves into valid JSON. +func (v NullableInlineResponse2005) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +// UnmarshalJSON implements the Unmarshaler interface. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +func (v *NullableInlineResponse2005) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/fastly/model_inline_response_200_6.go b/fastly/model_inline_response_200_6.go new file mode 100644 index 00000000..5a91c593 --- /dev/null +++ b/fastly/model_inline_response_200_6.go @@ -0,0 +1,192 @@ +// Package fastly is an API client library for interacting with most facets of the Fastly API. +package fastly + +/* +Fastly API + +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://developer.fastly.com/reference/api/) + +API version: 1.0.0 +Contact: oss@fastly.com +*/ + +// This code is auto-generated; DO NOT EDIT. + + +import ( + "encoding/json" +) + +// InlineResponse2006 struct for InlineResponse2006 +type InlineResponse2006 struct { + Data []SecretResponse `json:"data,omitempty"` + Meta *PaginationCursorMeta `json:"meta,omitempty"` + AdditionalProperties map[string]any +} + +type _InlineResponse2006 InlineResponse2006 + +// NewInlineResponse2006 instantiates a new InlineResponse2006 object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewInlineResponse2006() *InlineResponse2006 { + this := InlineResponse2006{} + return &this +} + +// NewInlineResponse2006WithDefaults instantiates a new InlineResponse2006 object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewInlineResponse2006WithDefaults() *InlineResponse2006 { + this := InlineResponse2006{} + return &this +} + +// GetData returns the Data field value if set, zero value otherwise. +func (o *InlineResponse2006) GetData() []SecretResponse { + if o == nil || o.Data == nil { + var ret []SecretResponse + return ret + } + return o.Data +} + +// GetDataOk returns a tuple with the Data field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *InlineResponse2006) GetDataOk() ([]SecretResponse, bool) { + if o == nil || o.Data == nil { + return nil, false + } + return o.Data, true +} + +// HasData returns a boolean if a field has been set. +func (o *InlineResponse2006) HasData() bool { + if o != nil && o.Data != nil { + return true + } + + return false +} + +// SetData gets a reference to the given []SecretResponse and assigns it to the Data field. +func (o *InlineResponse2006) SetData(v []SecretResponse) { + o.Data = v +} + +// GetMeta returns the Meta field value if set, zero value otherwise. +func (o *InlineResponse2006) GetMeta() PaginationCursorMeta { + if o == nil || o.Meta == nil { + var ret PaginationCursorMeta + return ret + } + return *o.Meta +} + +// GetMetaOk returns a tuple with the Meta field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *InlineResponse2006) GetMetaOk() (*PaginationCursorMeta, bool) { + if o == nil || o.Meta == nil { + return nil, false + } + return o.Meta, true +} + +// HasMeta returns a boolean if a field has been set. +func (o *InlineResponse2006) HasMeta() bool { + if o != nil && o.Meta != nil { + return true + } + + return false +} + +// SetMeta gets a reference to the given PaginationCursorMeta and assigns it to the Meta field. +func (o *InlineResponse2006) SetMeta(v PaginationCursorMeta) { + o.Meta = &v +} + +// MarshalJSON implements the json.Marshaler interface. +// Marshaler is the interface implemented by types that can marshal themselves into valid JSON. +func (o InlineResponse2006) MarshalJSON() ([]byte, error) { + toSerialize := map[string]any{} + if o.Data != nil { + toSerialize["data"] = o.Data + } + if o.Meta != nil { + toSerialize["meta"] = o.Meta + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return json.Marshal(toSerialize) +} + +// UnmarshalJSON implements the Unmarshaler interface. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +func (o *InlineResponse2006) UnmarshalJSON(bytes []byte) (err error) { + varInlineResponse2006 := _InlineResponse2006{} + + if err = json.Unmarshal(bytes, &varInlineResponse2006); err == nil { + *o = InlineResponse2006(varInlineResponse2006) + } + + additionalProperties := make(map[string]any) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "data") + delete(additionalProperties, "meta") + o.AdditionalProperties = additionalProperties + } + + return err +} + +// NullableInlineResponse2006 is a helper abstraction for handling nullable inlineresponse2006 types. +type NullableInlineResponse2006 struct { + value *InlineResponse2006 + isSet bool +} + +// Get returns the value. +func (v NullableInlineResponse2006) Get() *InlineResponse2006 { + return v.value +} + +// Set modifies the value. +func (v *NullableInlineResponse2006) Set(val *InlineResponse2006) { + v.value = val + v.isSet = true +} + +// IsSet indicates if the value was set. +func (v NullableInlineResponse2006) IsSet() bool { + return v.isSet +} + +// Unset removes the value. +func (v *NullableInlineResponse2006) Unset() { + v.value = nil + v.isSet = false +} + +// NewNullableInlineResponse2006 returns a pointer to a new instance of NullableInlineResponse2006. +func NewNullableInlineResponse2006(val *InlineResponse2006) *NullableInlineResponse2006 { + return &NullableInlineResponse2006{value: val, isSet: true} +} + +// MarshalJSON implements the json.Marshaler interface. +// Marshaler is the interface implemented by types that can marshal themselves into valid JSON. +func (v NullableInlineResponse2006) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +// UnmarshalJSON implements the Unmarshaler interface. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +func (v *NullableInlineResponse2006) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/fastly/model_inline_response_200_7.go b/fastly/model_inline_response_200_7.go new file mode 100644 index 00000000..fe274cd9 --- /dev/null +++ b/fastly/model_inline_response_200_7.go @@ -0,0 +1,155 @@ +// Package fastly is an API client library for interacting with most facets of the Fastly API. +package fastly + +/* +Fastly API + +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://developer.fastly.com/reference/api/) + +API version: 1.0.0 +Contact: oss@fastly.com +*/ + +// This code is auto-generated; DO NOT EDIT. + + +import ( + "encoding/json" +) + +// InlineResponse2007 struct for InlineResponse2007 +type InlineResponse2007 struct { + Data []ServiceAuthorizationResponseData `json:"data,omitempty"` + AdditionalProperties map[string]any +} + +type _InlineResponse2007 InlineResponse2007 + +// NewInlineResponse2007 instantiates a new InlineResponse2007 object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewInlineResponse2007() *InlineResponse2007 { + this := InlineResponse2007{} + return &this +} + +// NewInlineResponse2007WithDefaults instantiates a new InlineResponse2007 object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewInlineResponse2007WithDefaults() *InlineResponse2007 { + this := InlineResponse2007{} + return &this +} + +// GetData returns the Data field value if set, zero value otherwise. +func (o *InlineResponse2007) GetData() []ServiceAuthorizationResponseData { + if o == nil || o.Data == nil { + var ret []ServiceAuthorizationResponseData + return ret + } + return o.Data +} + +// GetDataOk returns a tuple with the Data field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *InlineResponse2007) GetDataOk() ([]ServiceAuthorizationResponseData, bool) { + if o == nil || o.Data == nil { + return nil, false + } + return o.Data, true +} + +// HasData returns a boolean if a field has been set. +func (o *InlineResponse2007) HasData() bool { + if o != nil && o.Data != nil { + return true + } + + return false +} + +// SetData gets a reference to the given []ServiceAuthorizationResponseData and assigns it to the Data field. +func (o *InlineResponse2007) SetData(v []ServiceAuthorizationResponseData) { + o.Data = v +} + +// MarshalJSON implements the json.Marshaler interface. +// Marshaler is the interface implemented by types that can marshal themselves into valid JSON. +func (o InlineResponse2007) MarshalJSON() ([]byte, error) { + toSerialize := map[string]any{} + if o.Data != nil { + toSerialize["data"] = o.Data + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return json.Marshal(toSerialize) +} + +// UnmarshalJSON implements the Unmarshaler interface. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +func (o *InlineResponse2007) UnmarshalJSON(bytes []byte) (err error) { + varInlineResponse2007 := _InlineResponse2007{} + + if err = json.Unmarshal(bytes, &varInlineResponse2007); err == nil { + *o = InlineResponse2007(varInlineResponse2007) + } + + additionalProperties := make(map[string]any) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "data") + o.AdditionalProperties = additionalProperties + } + + return err +} + +// NullableInlineResponse2007 is a helper abstraction for handling nullable inlineresponse2007 types. +type NullableInlineResponse2007 struct { + value *InlineResponse2007 + isSet bool +} + +// Get returns the value. +func (v NullableInlineResponse2007) Get() *InlineResponse2007 { + return v.value +} + +// Set modifies the value. +func (v *NullableInlineResponse2007) Set(val *InlineResponse2007) { + v.value = val + v.isSet = true +} + +// IsSet indicates if the value was set. +func (v NullableInlineResponse2007) IsSet() bool { + return v.isSet +} + +// Unset removes the value. +func (v *NullableInlineResponse2007) Unset() { + v.value = nil + v.isSet = false +} + +// NewNullableInlineResponse2007 returns a pointer to a new instance of NullableInlineResponse2007. +func NewNullableInlineResponse2007(val *InlineResponse2007) *NullableInlineResponse2007 { + return &NullableInlineResponse2007{value: val, isSet: true} +} + +// MarshalJSON implements the json.Marshaler interface. +// Marshaler is the interface implemented by types that can marshal themselves into valid JSON. +func (v NullableInlineResponse2007) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +// UnmarshalJSON implements the Unmarshaler interface. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +func (v *NullableInlineResponse2007) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/fastly/model_inline_response_400.go b/fastly/model_inline_response_400.go new file mode 100644 index 00000000..76b50e4f --- /dev/null +++ b/fastly/model_inline_response_400.go @@ -0,0 +1,155 @@ +// Package fastly is an API client library for interacting with most facets of the Fastly API. +package fastly + +/* +Fastly API + +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://developer.fastly.com/reference/api/) + +API version: 1.0.0 +Contact: oss@fastly.com +*/ + +// This code is auto-generated; DO NOT EDIT. + + +import ( + "encoding/json" +) + +// InlineResponse400 struct for InlineResponse400 +type InlineResponse400 struct { + Code *string `json:"code,omitempty"` + AdditionalProperties map[string]any +} + +type _InlineResponse400 InlineResponse400 + +// NewInlineResponse400 instantiates a new InlineResponse400 object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewInlineResponse400() *InlineResponse400 { + this := InlineResponse400{} + return &this +} + +// NewInlineResponse400WithDefaults instantiates a new InlineResponse400 object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewInlineResponse400WithDefaults() *InlineResponse400 { + this := InlineResponse400{} + return &this +} + +// GetCode returns the Code field value if set, zero value otherwise. +func (o *InlineResponse400) GetCode() string { + if o == nil || o.Code == nil { + var ret string + return ret + } + return *o.Code +} + +// 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 *InlineResponse400) GetCodeOk() (*string, bool) { + if o == nil || o.Code == nil { + return nil, false + } + return o.Code, true +} + +// HasCode returns a boolean if a field has been set. +func (o *InlineResponse400) HasCode() bool { + if o != nil && o.Code != nil { + return true + } + + return false +} + +// SetCode gets a reference to the given string and assigns it to the Code field. +func (o *InlineResponse400) SetCode(v string) { + o.Code = &v +} + +// MarshalJSON implements the json.Marshaler interface. +// Marshaler is the interface implemented by types that can marshal themselves into valid JSON. +func (o InlineResponse400) MarshalJSON() ([]byte, error) { + toSerialize := map[string]any{} + if o.Code != nil { + toSerialize["code"] = o.Code + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return json.Marshal(toSerialize) +} + +// UnmarshalJSON implements the Unmarshaler interface. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +func (o *InlineResponse400) UnmarshalJSON(bytes []byte) (err error) { + varInlineResponse400 := _InlineResponse400{} + + if err = json.Unmarshal(bytes, &varInlineResponse400); err == nil { + *o = InlineResponse400(varInlineResponse400) + } + + additionalProperties := make(map[string]any) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "code") + o.AdditionalProperties = additionalProperties + } + + return err +} + +// NullableInlineResponse400 is a helper abstraction for handling nullable inlineresponse400 types. +type NullableInlineResponse400 struct { + value *InlineResponse400 + isSet bool +} + +// Get returns the value. +func (v NullableInlineResponse400) Get() *InlineResponse400 { + return v.value +} + +// Set modifies the value. +func (v *NullableInlineResponse400) Set(val *InlineResponse400) { + v.value = val + v.isSet = true +} + +// IsSet indicates if the value was set. +func (v NullableInlineResponse400) IsSet() bool { + return v.isSet +} + +// Unset removes the value. +func (v *NullableInlineResponse400) Unset() { + v.value = nil + v.isSet = false +} + +// NewNullableInlineResponse400 returns a pointer to a new instance of NullableInlineResponse400. +func NewNullableInlineResponse400(val *InlineResponse400) *NullableInlineResponse400 { + return &NullableInlineResponse400{value: val, isSet: true} +} + +// MarshalJSON implements the json.Marshaler interface. +// Marshaler is the interface implemented by types that can marshal themselves into valid JSON. +func (v NullableInlineResponse400) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +// UnmarshalJSON implements the Unmarshaler interface. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +func (v *NullableInlineResponse400) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/fastly/model_legacy_waf_configuration_set.go b/fastly/model_legacy_waf_configuration_set.go new file mode 100644 index 00000000..0e3461e6 --- /dev/null +++ b/fastly/model_legacy_waf_configuration_set.go @@ -0,0 +1,194 @@ +// Package fastly is an API client library for interacting with most facets of the Fastly API. +package fastly + +/* +Fastly API + +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://developer.fastly.com/reference/api/) + +API version: 1.0.0 +Contact: oss@fastly.com +*/ + +// This code is auto-generated; DO NOT EDIT. + + +import ( + "encoding/json" +) + +// LegacyWafConfigurationSet struct for LegacyWafConfigurationSet +type LegacyWafConfigurationSet struct { + // The active configuration set is the default configuration set when creating a new WAF. When Fastly adds configuration sets, the new versions become the default (active). + Active *bool `json:"active,omitempty"` + // The name of the configuration set. + Name *string `json:"name,omitempty"` + AdditionalProperties map[string]any +} + +type _LegacyWafConfigurationSet LegacyWafConfigurationSet + +// NewLegacyWafConfigurationSet instantiates a new LegacyWafConfigurationSet object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewLegacyWafConfigurationSet() *LegacyWafConfigurationSet { + this := LegacyWafConfigurationSet{} + return &this +} + +// NewLegacyWafConfigurationSetWithDefaults instantiates a new LegacyWafConfigurationSet object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewLegacyWafConfigurationSetWithDefaults() *LegacyWafConfigurationSet { + this := LegacyWafConfigurationSet{} + return &this +} + +// GetActive returns the Active field value if set, zero value otherwise. +func (o *LegacyWafConfigurationSet) GetActive() bool { + if o == nil || o.Active == nil { + var ret bool + return ret + } + return *o.Active +} + +// GetActiveOk returns a tuple with the Active field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *LegacyWafConfigurationSet) GetActiveOk() (*bool, bool) { + if o == nil || o.Active == nil { + return nil, false + } + return o.Active, true +} + +// HasActive returns a boolean if a field has been set. +func (o *LegacyWafConfigurationSet) HasActive() bool { + if o != nil && o.Active != nil { + return true + } + + return false +} + +// SetActive gets a reference to the given bool and assigns it to the Active field. +func (o *LegacyWafConfigurationSet) SetActive(v bool) { + o.Active = &v +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *LegacyWafConfigurationSet) GetName() string { + if o == nil || o.Name == nil { + var ret string + return ret + } + return *o.Name +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *LegacyWafConfigurationSet) GetNameOk() (*string, bool) { + if o == nil || o.Name == nil { + return nil, false + } + return o.Name, true +} + +// HasName returns a boolean if a field has been set. +func (o *LegacyWafConfigurationSet) HasName() bool { + if o != nil && o.Name != nil { + return true + } + + return false +} + +// SetName gets a reference to the given string and assigns it to the Name field. +func (o *LegacyWafConfigurationSet) SetName(v string) { + o.Name = &v +} + +// MarshalJSON implements the json.Marshaler interface. +// Marshaler is the interface implemented by types that can marshal themselves into valid JSON. +func (o LegacyWafConfigurationSet) MarshalJSON() ([]byte, error) { + toSerialize := map[string]any{} + if o.Active != nil { + toSerialize["active"] = o.Active + } + if o.Name != nil { + toSerialize["name"] = o.Name + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return json.Marshal(toSerialize) +} + +// UnmarshalJSON implements the Unmarshaler interface. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +func (o *LegacyWafConfigurationSet) UnmarshalJSON(bytes []byte) (err error) { + varLegacyWafConfigurationSet := _LegacyWafConfigurationSet{} + + if err = json.Unmarshal(bytes, &varLegacyWafConfigurationSet); err == nil { + *o = LegacyWafConfigurationSet(varLegacyWafConfigurationSet) + } + + additionalProperties := make(map[string]any) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "active") + delete(additionalProperties, "name") + o.AdditionalProperties = additionalProperties + } + + return err +} + +// NullableLegacyWafConfigurationSet is a helper abstraction for handling nullable legacywafconfigurationset types. +type NullableLegacyWafConfigurationSet struct { + value *LegacyWafConfigurationSet + isSet bool +} + +// Get returns the value. +func (v NullableLegacyWafConfigurationSet) Get() *LegacyWafConfigurationSet { + return v.value +} + +// Set modifies the value. +func (v *NullableLegacyWafConfigurationSet) Set(val *LegacyWafConfigurationSet) { + v.value = val + v.isSet = true +} + +// IsSet indicates if the value was set. +func (v NullableLegacyWafConfigurationSet) IsSet() bool { + return v.isSet +} + +// Unset removes the value. +func (v *NullableLegacyWafConfigurationSet) Unset() { + v.value = nil + v.isSet = false +} + +// NewNullableLegacyWafConfigurationSet returns a pointer to a new instance of NullableLegacyWafConfigurationSet. +func NewNullableLegacyWafConfigurationSet(val *LegacyWafConfigurationSet) *NullableLegacyWafConfigurationSet { + return &NullableLegacyWafConfigurationSet{value: val, isSet: true} +} + +// MarshalJSON implements the json.Marshaler interface. +// Marshaler is the interface implemented by types that can marshal themselves into valid JSON. +func (v NullableLegacyWafConfigurationSet) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +// UnmarshalJSON implements the Unmarshaler interface. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +func (v *NullableLegacyWafConfigurationSet) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/fastly/model_legacy_waf_firewall.go b/fastly/model_legacy_waf_firewall.go new file mode 100644 index 00000000..31656ed9 --- /dev/null +++ b/fastly/model_legacy_waf_firewall.go @@ -0,0 +1,462 @@ +// Package fastly is an API client library for interacting with most facets of the Fastly API. +package fastly + +/* +Fastly API + +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://developer.fastly.com/reference/api/) + +API version: 1.0.0 +Contact: oss@fastly.com +*/ + +// This code is auto-generated; DO NOT EDIT. + + +import ( + "encoding/json" +) + +// LegacyWafFirewall struct for LegacyWafFirewall +type LegacyWafFirewall struct { + // Date and time that VCL was last pushed to cache nodes. + LastPush *string `json:"last_push,omitempty"` + // Name of the corresponding condition object. + PrefetchCondition *string `json:"prefetch_condition,omitempty"` + // Name of the corresponding response object. + Response *string `json:"response,omitempty"` + Version *ReadOnlyVersion `json:"version,omitempty"` + ServiceID *ReadOnlyServiceID `json:"service_id,omitempty"` + // The status of the firewall. + Disabled *bool `json:"disabled,omitempty"` + // The number of rule statuses set to log. + RuleStatusesLogCount *int32 `json:"rule_statuses_log_count,omitempty"` + // The number of rule statuses set to block. + RuleStatusesBlockCount *int32 `json:"rule_statuses_block_count,omitempty"` + // The number of rule statuses set to disabled. + RuleStatusesDisabledCount *int32 `json:"rule_statuses_disabled_count,omitempty"` + AdditionalProperties map[string]any +} + +type _LegacyWafFirewall LegacyWafFirewall + +// NewLegacyWafFirewall instantiates a new LegacyWafFirewall object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewLegacyWafFirewall() *LegacyWafFirewall { + this := LegacyWafFirewall{} + var disabled bool = false + this.Disabled = &disabled + return &this +} + +// NewLegacyWafFirewallWithDefaults instantiates a new LegacyWafFirewall object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewLegacyWafFirewallWithDefaults() *LegacyWafFirewall { + this := LegacyWafFirewall{} + var disabled bool = false + this.Disabled = &disabled + return &this +} + +// GetLastPush returns the LastPush field value if set, zero value otherwise. +func (o *LegacyWafFirewall) GetLastPush() string { + if o == nil || o.LastPush == nil { + var ret string + return ret + } + return *o.LastPush +} + +// GetLastPushOk returns a tuple with the LastPush field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *LegacyWafFirewall) GetLastPushOk() (*string, bool) { + if o == nil || o.LastPush == nil { + return nil, false + } + return o.LastPush, true +} + +// HasLastPush returns a boolean if a field has been set. +func (o *LegacyWafFirewall) HasLastPush() bool { + if o != nil && o.LastPush != nil { + return true + } + + return false +} + +// SetLastPush gets a reference to the given string and assigns it to the LastPush field. +func (o *LegacyWafFirewall) SetLastPush(v string) { + o.LastPush = &v +} + +// GetPrefetchCondition returns the PrefetchCondition field value if set, zero value otherwise. +func (o *LegacyWafFirewall) GetPrefetchCondition() string { + if o == nil || o.PrefetchCondition == nil { + var ret string + return ret + } + return *o.PrefetchCondition +} + +// GetPrefetchConditionOk returns a tuple with the PrefetchCondition field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *LegacyWafFirewall) GetPrefetchConditionOk() (*string, bool) { + if o == nil || o.PrefetchCondition == nil { + return nil, false + } + return o.PrefetchCondition, true +} + +// HasPrefetchCondition returns a boolean if a field has been set. +func (o *LegacyWafFirewall) HasPrefetchCondition() bool { + if o != nil && o.PrefetchCondition != nil { + return true + } + + return false +} + +// SetPrefetchCondition gets a reference to the given string and assigns it to the PrefetchCondition field. +func (o *LegacyWafFirewall) SetPrefetchCondition(v string) { + o.PrefetchCondition = &v +} + +// GetResponse returns the Response field value if set, zero value otherwise. +func (o *LegacyWafFirewall) GetResponse() string { + if o == nil || o.Response == nil { + var ret string + return ret + } + return *o.Response +} + +// GetResponseOk returns a tuple with the Response field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *LegacyWafFirewall) GetResponseOk() (*string, bool) { + if o == nil || o.Response == nil { + return nil, false + } + return o.Response, true +} + +// HasResponse returns a boolean if a field has been set. +func (o *LegacyWafFirewall) HasResponse() bool { + if o != nil && o.Response != nil { + return true + } + + return false +} + +// SetResponse gets a reference to the given string and assigns it to the Response field. +func (o *LegacyWafFirewall) SetResponse(v string) { + o.Response = &v +} + +// GetVersion returns the Version field value if set, zero value otherwise. +func (o *LegacyWafFirewall) GetVersion() ReadOnlyVersion { + if o == nil || o.Version == nil { + var ret ReadOnlyVersion + return ret + } + return *o.Version +} + +// GetVersionOk returns a tuple with the Version field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *LegacyWafFirewall) GetVersionOk() (*ReadOnlyVersion, bool) { + if o == nil || o.Version == nil { + return nil, false + } + return o.Version, true +} + +// HasVersion returns a boolean if a field has been set. +func (o *LegacyWafFirewall) HasVersion() bool { + if o != nil && o.Version != nil { + return true + } + + return false +} + +// SetVersion gets a reference to the given ReadOnlyVersion and assigns it to the Version field. +func (o *LegacyWafFirewall) SetVersion(v ReadOnlyVersion) { + o.Version = &v +} + +// GetServiceID returns the ServiceID field value if set, zero value otherwise. +func (o *LegacyWafFirewall) GetServiceID() ReadOnlyServiceID { + if o == nil || o.ServiceID == nil { + var ret ReadOnlyServiceID + return ret + } + return *o.ServiceID +} + +// GetServiceIDOk returns a tuple with the ServiceID field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *LegacyWafFirewall) GetServiceIDOk() (*ReadOnlyServiceID, bool) { + if o == nil || o.ServiceID == nil { + return nil, false + } + return o.ServiceID, true +} + +// HasServiceID returns a boolean if a field has been set. +func (o *LegacyWafFirewall) HasServiceID() bool { + if o != nil && o.ServiceID != nil { + return true + } + + return false +} + +// SetServiceID gets a reference to the given ReadOnlyServiceID and assigns it to the ServiceID field. +func (o *LegacyWafFirewall) SetServiceID(v ReadOnlyServiceID) { + o.ServiceID = &v +} + +// GetDisabled returns the Disabled field value if set, zero value otherwise. +func (o *LegacyWafFirewall) GetDisabled() bool { + if o == nil || o.Disabled == nil { + var ret bool + return ret + } + return *o.Disabled +} + +// GetDisabledOk returns a tuple with the Disabled field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *LegacyWafFirewall) GetDisabledOk() (*bool, bool) { + if o == nil || o.Disabled == nil { + return nil, false + } + return o.Disabled, true +} + +// HasDisabled returns a boolean if a field has been set. +func (o *LegacyWafFirewall) HasDisabled() bool { + if o != nil && o.Disabled != nil { + return true + } + + return false +} + +// SetDisabled gets a reference to the given bool and assigns it to the Disabled field. +func (o *LegacyWafFirewall) SetDisabled(v bool) { + o.Disabled = &v +} + +// GetRuleStatusesLogCount returns the RuleStatusesLogCount field value if set, zero value otherwise. +func (o *LegacyWafFirewall) GetRuleStatusesLogCount() int32 { + if o == nil || o.RuleStatusesLogCount == nil { + var ret int32 + return ret + } + return *o.RuleStatusesLogCount +} + +// GetRuleStatusesLogCountOk returns a tuple with the RuleStatusesLogCount field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *LegacyWafFirewall) GetRuleStatusesLogCountOk() (*int32, bool) { + if o == nil || o.RuleStatusesLogCount == nil { + return nil, false + } + return o.RuleStatusesLogCount, true +} + +// HasRuleStatusesLogCount returns a boolean if a field has been set. +func (o *LegacyWafFirewall) HasRuleStatusesLogCount() bool { + if o != nil && o.RuleStatusesLogCount != nil { + return true + } + + return false +} + +// SetRuleStatusesLogCount gets a reference to the given int32 and assigns it to the RuleStatusesLogCount field. +func (o *LegacyWafFirewall) SetRuleStatusesLogCount(v int32) { + o.RuleStatusesLogCount = &v +} + +// GetRuleStatusesBlockCount returns the RuleStatusesBlockCount field value if set, zero value otherwise. +func (o *LegacyWafFirewall) GetRuleStatusesBlockCount() int32 { + if o == nil || o.RuleStatusesBlockCount == nil { + var ret int32 + return ret + } + return *o.RuleStatusesBlockCount +} + +// GetRuleStatusesBlockCountOk returns a tuple with the RuleStatusesBlockCount field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *LegacyWafFirewall) GetRuleStatusesBlockCountOk() (*int32, bool) { + if o == nil || o.RuleStatusesBlockCount == nil { + return nil, false + } + return o.RuleStatusesBlockCount, true +} + +// HasRuleStatusesBlockCount returns a boolean if a field has been set. +func (o *LegacyWafFirewall) HasRuleStatusesBlockCount() bool { + if o != nil && o.RuleStatusesBlockCount != nil { + return true + } + + return false +} + +// SetRuleStatusesBlockCount gets a reference to the given int32 and assigns it to the RuleStatusesBlockCount field. +func (o *LegacyWafFirewall) SetRuleStatusesBlockCount(v int32) { + o.RuleStatusesBlockCount = &v +} + +// GetRuleStatusesDisabledCount returns the RuleStatusesDisabledCount field value if set, zero value otherwise. +func (o *LegacyWafFirewall) GetRuleStatusesDisabledCount() int32 { + if o == nil || o.RuleStatusesDisabledCount == nil { + var ret int32 + return ret + } + return *o.RuleStatusesDisabledCount +} + +// GetRuleStatusesDisabledCountOk returns a tuple with the RuleStatusesDisabledCount field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *LegacyWafFirewall) GetRuleStatusesDisabledCountOk() (*int32, bool) { + if o == nil || o.RuleStatusesDisabledCount == nil { + return nil, false + } + return o.RuleStatusesDisabledCount, true +} + +// HasRuleStatusesDisabledCount returns a boolean if a field has been set. +func (o *LegacyWafFirewall) HasRuleStatusesDisabledCount() bool { + if o != nil && o.RuleStatusesDisabledCount != nil { + return true + } + + return false +} + +// SetRuleStatusesDisabledCount gets a reference to the given int32 and assigns it to the RuleStatusesDisabledCount field. +func (o *LegacyWafFirewall) SetRuleStatusesDisabledCount(v int32) { + o.RuleStatusesDisabledCount = &v +} + +// MarshalJSON implements the json.Marshaler interface. +// Marshaler is the interface implemented by types that can marshal themselves into valid JSON. +func (o LegacyWafFirewall) MarshalJSON() ([]byte, error) { + toSerialize := map[string]any{} + if o.LastPush != nil { + toSerialize["last_push"] = o.LastPush + } + if o.PrefetchCondition != nil { + toSerialize["prefetch_condition"] = o.PrefetchCondition + } + if o.Response != nil { + toSerialize["response"] = o.Response + } + if o.Version != nil { + toSerialize["version"] = o.Version + } + if o.ServiceID != nil { + toSerialize["service_id"] = o.ServiceID + } + if o.Disabled != nil { + toSerialize["disabled"] = o.Disabled + } + if o.RuleStatusesLogCount != nil { + toSerialize["rule_statuses_log_count"] = o.RuleStatusesLogCount + } + if o.RuleStatusesBlockCount != nil { + toSerialize["rule_statuses_block_count"] = o.RuleStatusesBlockCount + } + if o.RuleStatusesDisabledCount != nil { + toSerialize["rule_statuses_disabled_count"] = o.RuleStatusesDisabledCount + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return json.Marshal(toSerialize) +} + +// UnmarshalJSON implements the Unmarshaler interface. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +func (o *LegacyWafFirewall) UnmarshalJSON(bytes []byte) (err error) { + varLegacyWafFirewall := _LegacyWafFirewall{} + + if err = json.Unmarshal(bytes, &varLegacyWafFirewall); err == nil { + *o = LegacyWafFirewall(varLegacyWafFirewall) + } + + additionalProperties := make(map[string]any) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "last_push") + delete(additionalProperties, "prefetch_condition") + delete(additionalProperties, "response") + delete(additionalProperties, "version") + delete(additionalProperties, "service_id") + delete(additionalProperties, "disabled") + delete(additionalProperties, "rule_statuses_log_count") + delete(additionalProperties, "rule_statuses_block_count") + delete(additionalProperties, "rule_statuses_disabled_count") + o.AdditionalProperties = additionalProperties + } + + return err +} + +// NullableLegacyWafFirewall is a helper abstraction for handling nullable legacywaffirewall types. +type NullableLegacyWafFirewall struct { + value *LegacyWafFirewall + isSet bool +} + +// Get returns the value. +func (v NullableLegacyWafFirewall) Get() *LegacyWafFirewall { + return v.value +} + +// Set modifies the value. +func (v *NullableLegacyWafFirewall) Set(val *LegacyWafFirewall) { + v.value = val + v.isSet = true +} + +// IsSet indicates if the value was set. +func (v NullableLegacyWafFirewall) IsSet() bool { + return v.isSet +} + +// Unset removes the value. +func (v *NullableLegacyWafFirewall) Unset() { + v.value = nil + v.isSet = false +} + +// NewNullableLegacyWafFirewall returns a pointer to a new instance of NullableLegacyWafFirewall. +func NewNullableLegacyWafFirewall(val *LegacyWafFirewall) *NullableLegacyWafFirewall { + return &NullableLegacyWafFirewall{value: val, isSet: true} +} + +// MarshalJSON implements the json.Marshaler interface. +// Marshaler is the interface implemented by types that can marshal themselves into valid JSON. +func (v NullableLegacyWafFirewall) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +// UnmarshalJSON implements the Unmarshaler interface. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +func (v *NullableLegacyWafFirewall) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/fastly/model_legacy_waf_owasp.go b/fastly/model_legacy_waf_owasp.go new file mode 100644 index 00000000..6685b0d9 --- /dev/null +++ b/fastly/model_legacy_waf_owasp.go @@ -0,0 +1,1280 @@ +// Package fastly is an API client library for interacting with most facets of the Fastly API. +package fastly + +/* +Fastly API + +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://developer.fastly.com/reference/api/) + +API version: 1.0.0 +Contact: oss@fastly.com +*/ + +// This code is auto-generated; DO NOT EDIT. + + +import ( + "encoding/json" +) + +// LegacyWafOwasp struct for LegacyWafOwasp +type LegacyWafOwasp struct { + // Allowed HTTP versions. + AllowedHTTPVersions *string `json:"allowed_http_versions,omitempty"` + // A space-separated list of HTTP method names. + AllowedMethods *string `json:"allowed_methods,omitempty"` + // Allowed request content types. + AllowedRequestContentType *string `json:"allowed_request_content_type,omitempty"` + // The maximum allowed length of an argument. + ArgLength *int32 `json:"arg_length,omitempty"` + // The maximum allowed argument name length. + ArgNameLength *int32 `json:"arg_name_length,omitempty"` + // The maximum allowed size of all files (in bytes). + CombinedFileSizes *int32 `json:"combined_file_sizes,omitempty"` + // Date and time that the settings object was created. + CreatedAt *string `json:"created_at,omitempty"` + // Score value to add for critical anomalies. + CriticalAnomalyScore *int32 `json:"critical_anomaly_score,omitempty"` + // CRS validate UTF8 encoding. + CrsValidateUtf8Encoding *bool `json:"crs_validate_utf8_encoding,omitempty"` + // Score value to add for error anomalies. + ErrorAnomalyScore *int32 `json:"error_anomaly_score,omitempty"` + // A space-separated list of country codes in ISO 3166-1 (two-letter) format. + HighRiskCountryCodes *string `json:"high_risk_country_codes,omitempty"` + // HTTP violation threshold. + HTTPViolationScoreThreshold *int32 `json:"http_violation_score_threshold,omitempty"` + // Inbound anomaly threshold. + InboundAnomalyScoreThreshold *int32 `json:"inbound_anomaly_score_threshold,omitempty"` + // Local file inclusion attack threshold. + LfiScoreThreshold *int32 `json:"lfi_score_threshold,omitempty"` + // The maximum allowed file size (in bytes). + MaxFileSize *int32 `json:"max_file_size,omitempty"` + // The maximum number of arguments allowed. + MaxNumArgs *int32 `json:"max_num_args,omitempty"` + // Score value to add for notice anomalies. + NoticeAnomalyScore *int32 `json:"notice_anomaly_score,omitempty"` + // The configured paranoia level. + ParanoiaLevel *int32 `json:"paranoia_level,omitempty"` + // PHP injection threshold. + PhpInjectionScoreThreshold *int32 `json:"php_injection_score_threshold,omitempty"` + // Remote code execution threshold. + RceScoreThreshold *int32 `json:"rce_score_threshold,omitempty"` + // A space-separated list of disallowed file extensions. + RestrictedExtensions *string `json:"restricted_extensions,omitempty"` + // A space-separated list of disallowed header names. + RestrictedHeaders *string `json:"restricted_headers,omitempty"` + // Remote file inclusion attack threshold. + RfiScoreThreshold *int32 `json:"rfi_score_threshold,omitempty"` + // Session fixation attack threshold. + SessionFixationScoreThreshold *int32 `json:"session_fixation_score_threshold,omitempty"` + // SQL injection attack threshold. + SQLInjectionScoreThreshold *int32 `json:"sql_injection_score_threshold,omitempty"` + // The maximum size of argument names and values. + TotalArgLength *int32 `json:"total_arg_length,omitempty"` + // Date and time that the settings object was last updated. + UpdatedAt *string `json:"updated_at,omitempty"` + // Score value to add for warning anomalies. + WarningAnomalyScore *int32 `json:"warning_anomaly_score,omitempty"` + // XSS attack threshold. + XSSScoreThreshold *int32 `json:"xss_score_threshold,omitempty"` + AdditionalProperties map[string]any +} + +type _LegacyWafOwasp LegacyWafOwasp + +// NewLegacyWafOwasp instantiates a new LegacyWafOwasp object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewLegacyWafOwasp() *LegacyWafOwasp { + this := LegacyWafOwasp{} + var allowedHTTPVersions string = "HTTP/1.0 HTTP/1.1 HTTP/2" + this.AllowedHTTPVersions = &allowedHTTPVersions + var allowedMethods string = "GET HEAD POST OPTIONS PUT PATCH DELETE" + this.AllowedMethods = &allowedMethods + var allowedRequestContentType string = "application/x-www-form-urlencoded|multipart/form-data|text/xml|application/xml|application/x-amf|application/json|text/plain" + this.AllowedRequestContentType = &allowedRequestContentType + var argLength int32 = 400 + this.ArgLength = &argLength + var argNameLength int32 = 100 + this.ArgNameLength = &argNameLength + var combinedFileSizes int32 = 10000000 + this.CombinedFileSizes = &combinedFileSizes + var criticalAnomalyScore int32 = 6 + this.CriticalAnomalyScore = &criticalAnomalyScore + var errorAnomalyScore int32 = 5 + this.ErrorAnomalyScore = &errorAnomalyScore + var maxFileSize int32 = 10000000 + this.MaxFileSize = &maxFileSize + var maxNumArgs int32 = 255 + this.MaxNumArgs = &maxNumArgs + var noticeAnomalyScore int32 = 4 + this.NoticeAnomalyScore = ¬iceAnomalyScore + var paranoiaLevel int32 = 1 + this.ParanoiaLevel = ¶noiaLevel + var restrictedExtensions string = ".asa/ .asax/ .ascx/ .axd/ .backup/ .bak/ .bat/ .cdx/ .cer/ .cfg/ .cmd/ .com/ .config/ .conf/ .cs/ .csproj/ .csr/ .dat/ .db/ .dbf/ .dll/ .dos/ .htr/ .htw/ .ida/ .idc/ .idq/ .inc/ .ini/ .key/ .licx/ .lnk/ .log/ .mdb/ .old/ .pass/ .pdb/ .pol/ .printer/ .pwd/ .resources/ .resx/ .sql/ .sys/ .vb/ .vbs/ .vbproj/ .vsdisco/ .webinfo/ .xsd/ .xsx" + this.RestrictedExtensions = &restrictedExtensions + var restrictedHeaders string = "/proxy/ /lock-token/ /content-range/ /translate/ /if/" + this.RestrictedHeaders = &restrictedHeaders + var totalArgLength int32 = 6400 + this.TotalArgLength = &totalArgLength + return &this +} + +// NewLegacyWafOwaspWithDefaults instantiates a new LegacyWafOwasp object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewLegacyWafOwaspWithDefaults() *LegacyWafOwasp { + this := LegacyWafOwasp{} + var allowedHTTPVersions string = "HTTP/1.0 HTTP/1.1 HTTP/2" + this.AllowedHTTPVersions = &allowedHTTPVersions + var allowedMethods string = "GET HEAD POST OPTIONS PUT PATCH DELETE" + this.AllowedMethods = &allowedMethods + var allowedRequestContentType string = "application/x-www-form-urlencoded|multipart/form-data|text/xml|application/xml|application/x-amf|application/json|text/plain" + this.AllowedRequestContentType = &allowedRequestContentType + var argLength int32 = 400 + this.ArgLength = &argLength + var argNameLength int32 = 100 + this.ArgNameLength = &argNameLength + var combinedFileSizes int32 = 10000000 + this.CombinedFileSizes = &combinedFileSizes + var criticalAnomalyScore int32 = 6 + this.CriticalAnomalyScore = &criticalAnomalyScore + var errorAnomalyScore int32 = 5 + this.ErrorAnomalyScore = &errorAnomalyScore + var maxFileSize int32 = 10000000 + this.MaxFileSize = &maxFileSize + var maxNumArgs int32 = 255 + this.MaxNumArgs = &maxNumArgs + var noticeAnomalyScore int32 = 4 + this.NoticeAnomalyScore = ¬iceAnomalyScore + var paranoiaLevel int32 = 1 + this.ParanoiaLevel = ¶noiaLevel + var restrictedExtensions string = ".asa/ .asax/ .ascx/ .axd/ .backup/ .bak/ .bat/ .cdx/ .cer/ .cfg/ .cmd/ .com/ .config/ .conf/ .cs/ .csproj/ .csr/ .dat/ .db/ .dbf/ .dll/ .dos/ .htr/ .htw/ .ida/ .idc/ .idq/ .inc/ .ini/ .key/ .licx/ .lnk/ .log/ .mdb/ .old/ .pass/ .pdb/ .pol/ .printer/ .pwd/ .resources/ .resx/ .sql/ .sys/ .vb/ .vbs/ .vbproj/ .vsdisco/ .webinfo/ .xsd/ .xsx" + this.RestrictedExtensions = &restrictedExtensions + var restrictedHeaders string = "/proxy/ /lock-token/ /content-range/ /translate/ /if/" + this.RestrictedHeaders = &restrictedHeaders + var totalArgLength int32 = 6400 + this.TotalArgLength = &totalArgLength + return &this +} + +// GetAllowedHTTPVersions returns the AllowedHTTPVersions field value if set, zero value otherwise. +func (o *LegacyWafOwasp) GetAllowedHTTPVersions() string { + if o == nil || o.AllowedHTTPVersions == nil { + var ret string + return ret + } + return *o.AllowedHTTPVersions +} + +// GetAllowedHTTPVersionsOk returns a tuple with the AllowedHTTPVersions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *LegacyWafOwasp) GetAllowedHTTPVersionsOk() (*string, bool) { + if o == nil || o.AllowedHTTPVersions == nil { + return nil, false + } + return o.AllowedHTTPVersions, true +} + +// HasAllowedHTTPVersions returns a boolean if a field has been set. +func (o *LegacyWafOwasp) HasAllowedHTTPVersions() bool { + if o != nil && o.AllowedHTTPVersions != nil { + return true + } + + return false +} + +// SetAllowedHTTPVersions gets a reference to the given string and assigns it to the AllowedHTTPVersions field. +func (o *LegacyWafOwasp) SetAllowedHTTPVersions(v string) { + o.AllowedHTTPVersions = &v +} + +// GetAllowedMethods returns the AllowedMethods field value if set, zero value otherwise. +func (o *LegacyWafOwasp) GetAllowedMethods() string { + if o == nil || o.AllowedMethods == nil { + var ret string + return ret + } + return *o.AllowedMethods +} + +// GetAllowedMethodsOk returns a tuple with the AllowedMethods field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *LegacyWafOwasp) GetAllowedMethodsOk() (*string, bool) { + if o == nil || o.AllowedMethods == nil { + return nil, false + } + return o.AllowedMethods, true +} + +// HasAllowedMethods returns a boolean if a field has been set. +func (o *LegacyWafOwasp) HasAllowedMethods() bool { + if o != nil && o.AllowedMethods != nil { + return true + } + + return false +} + +// SetAllowedMethods gets a reference to the given string and assigns it to the AllowedMethods field. +func (o *LegacyWafOwasp) SetAllowedMethods(v string) { + o.AllowedMethods = &v +} + +// GetAllowedRequestContentType returns the AllowedRequestContentType field value if set, zero value otherwise. +func (o *LegacyWafOwasp) GetAllowedRequestContentType() string { + if o == nil || o.AllowedRequestContentType == nil { + var ret string + return ret + } + return *o.AllowedRequestContentType +} + +// GetAllowedRequestContentTypeOk returns a tuple with the AllowedRequestContentType field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *LegacyWafOwasp) GetAllowedRequestContentTypeOk() (*string, bool) { + if o == nil || o.AllowedRequestContentType == nil { + return nil, false + } + return o.AllowedRequestContentType, true +} + +// HasAllowedRequestContentType returns a boolean if a field has been set. +func (o *LegacyWafOwasp) HasAllowedRequestContentType() bool { + if o != nil && o.AllowedRequestContentType != nil { + return true + } + + return false +} + +// SetAllowedRequestContentType gets a reference to the given string and assigns it to the AllowedRequestContentType field. +func (o *LegacyWafOwasp) SetAllowedRequestContentType(v string) { + o.AllowedRequestContentType = &v +} + +// GetArgLength returns the ArgLength field value if set, zero value otherwise. +func (o *LegacyWafOwasp) GetArgLength() int32 { + if o == nil || o.ArgLength == nil { + var ret int32 + return ret + } + return *o.ArgLength +} + +// GetArgLengthOk returns a tuple with the ArgLength field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *LegacyWafOwasp) GetArgLengthOk() (*int32, bool) { + if o == nil || o.ArgLength == nil { + return nil, false + } + return o.ArgLength, true +} + +// HasArgLength returns a boolean if a field has been set. +func (o *LegacyWafOwasp) HasArgLength() bool { + if o != nil && o.ArgLength != nil { + return true + } + + return false +} + +// SetArgLength gets a reference to the given int32 and assigns it to the ArgLength field. +func (o *LegacyWafOwasp) SetArgLength(v int32) { + o.ArgLength = &v +} + +// GetArgNameLength returns the ArgNameLength field value if set, zero value otherwise. +func (o *LegacyWafOwasp) GetArgNameLength() int32 { + if o == nil || o.ArgNameLength == nil { + var ret int32 + return ret + } + return *o.ArgNameLength +} + +// GetArgNameLengthOk returns a tuple with the ArgNameLength field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *LegacyWafOwasp) GetArgNameLengthOk() (*int32, bool) { + if o == nil || o.ArgNameLength == nil { + return nil, false + } + return o.ArgNameLength, true +} + +// HasArgNameLength returns a boolean if a field has been set. +func (o *LegacyWafOwasp) HasArgNameLength() bool { + if o != nil && o.ArgNameLength != nil { + return true + } + + return false +} + +// SetArgNameLength gets a reference to the given int32 and assigns it to the ArgNameLength field. +func (o *LegacyWafOwasp) SetArgNameLength(v int32) { + o.ArgNameLength = &v +} + +// GetCombinedFileSizes returns the CombinedFileSizes field value if set, zero value otherwise. +func (o *LegacyWafOwasp) GetCombinedFileSizes() int32 { + if o == nil || o.CombinedFileSizes == nil { + var ret int32 + return ret + } + return *o.CombinedFileSizes +} + +// GetCombinedFileSizesOk returns a tuple with the CombinedFileSizes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *LegacyWafOwasp) GetCombinedFileSizesOk() (*int32, bool) { + if o == nil || o.CombinedFileSizes == nil { + return nil, false + } + return o.CombinedFileSizes, true +} + +// HasCombinedFileSizes returns a boolean if a field has been set. +func (o *LegacyWafOwasp) HasCombinedFileSizes() bool { + if o != nil && o.CombinedFileSizes != nil { + return true + } + + return false +} + +// SetCombinedFileSizes gets a reference to the given int32 and assigns it to the CombinedFileSizes field. +func (o *LegacyWafOwasp) SetCombinedFileSizes(v int32) { + o.CombinedFileSizes = &v +} + +// GetCreatedAt returns the CreatedAt field value if set, zero value otherwise. +func (o *LegacyWafOwasp) GetCreatedAt() string { + if o == nil || o.CreatedAt == nil { + var ret string + return ret + } + return *o.CreatedAt +} + +// GetCreatedAtOk returns a tuple with the CreatedAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *LegacyWafOwasp) GetCreatedAtOk() (*string, bool) { + if o == nil || o.CreatedAt == nil { + return nil, false + } + return o.CreatedAt, true +} + +// HasCreatedAt returns a boolean if a field has been set. +func (o *LegacyWafOwasp) HasCreatedAt() bool { + if o != nil && o.CreatedAt != nil { + return true + } + + return false +} + +// SetCreatedAt gets a reference to the given string and assigns it to the CreatedAt field. +func (o *LegacyWafOwasp) SetCreatedAt(v string) { + o.CreatedAt = &v +} + +// GetCriticalAnomalyScore returns the CriticalAnomalyScore field value if set, zero value otherwise. +func (o *LegacyWafOwasp) GetCriticalAnomalyScore() int32 { + if o == nil || o.CriticalAnomalyScore == nil { + var ret int32 + return ret + } + return *o.CriticalAnomalyScore +} + +// GetCriticalAnomalyScoreOk returns a tuple with the CriticalAnomalyScore field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *LegacyWafOwasp) GetCriticalAnomalyScoreOk() (*int32, bool) { + if o == nil || o.CriticalAnomalyScore == nil { + return nil, false + } + return o.CriticalAnomalyScore, true +} + +// HasCriticalAnomalyScore returns a boolean if a field has been set. +func (o *LegacyWafOwasp) HasCriticalAnomalyScore() bool { + if o != nil && o.CriticalAnomalyScore != nil { + return true + } + + return false +} + +// SetCriticalAnomalyScore gets a reference to the given int32 and assigns it to the CriticalAnomalyScore field. +func (o *LegacyWafOwasp) SetCriticalAnomalyScore(v int32) { + o.CriticalAnomalyScore = &v +} + +// GetCrsValidateUtf8Encoding returns the CrsValidateUtf8Encoding field value if set, zero value otherwise. +func (o *LegacyWafOwasp) GetCrsValidateUtf8Encoding() bool { + if o == nil || o.CrsValidateUtf8Encoding == nil { + var ret bool + return ret + } + return *o.CrsValidateUtf8Encoding +} + +// GetCrsValidateUtf8EncodingOk returns a tuple with the CrsValidateUtf8Encoding field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *LegacyWafOwasp) GetCrsValidateUtf8EncodingOk() (*bool, bool) { + if o == nil || o.CrsValidateUtf8Encoding == nil { + return nil, false + } + return o.CrsValidateUtf8Encoding, true +} + +// HasCrsValidateUtf8Encoding returns a boolean if a field has been set. +func (o *LegacyWafOwasp) HasCrsValidateUtf8Encoding() bool { + if o != nil && o.CrsValidateUtf8Encoding != nil { + return true + } + + return false +} + +// SetCrsValidateUtf8Encoding gets a reference to the given bool and assigns it to the CrsValidateUtf8Encoding field. +func (o *LegacyWafOwasp) SetCrsValidateUtf8Encoding(v bool) { + o.CrsValidateUtf8Encoding = &v +} + +// GetErrorAnomalyScore returns the ErrorAnomalyScore field value if set, zero value otherwise. +func (o *LegacyWafOwasp) GetErrorAnomalyScore() int32 { + if o == nil || o.ErrorAnomalyScore == nil { + var ret int32 + return ret + } + return *o.ErrorAnomalyScore +} + +// GetErrorAnomalyScoreOk returns a tuple with the ErrorAnomalyScore field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *LegacyWafOwasp) GetErrorAnomalyScoreOk() (*int32, bool) { + if o == nil || o.ErrorAnomalyScore == nil { + return nil, false + } + return o.ErrorAnomalyScore, true +} + +// HasErrorAnomalyScore returns a boolean if a field has been set. +func (o *LegacyWafOwasp) HasErrorAnomalyScore() bool { + if o != nil && o.ErrorAnomalyScore != nil { + return true + } + + return false +} + +// SetErrorAnomalyScore gets a reference to the given int32 and assigns it to the ErrorAnomalyScore field. +func (o *LegacyWafOwasp) SetErrorAnomalyScore(v int32) { + o.ErrorAnomalyScore = &v +} + +// GetHighRiskCountryCodes returns the HighRiskCountryCodes field value if set, zero value otherwise. +func (o *LegacyWafOwasp) GetHighRiskCountryCodes() string { + if o == nil || o.HighRiskCountryCodes == nil { + var ret string + return ret + } + return *o.HighRiskCountryCodes +} + +// GetHighRiskCountryCodesOk returns a tuple with the HighRiskCountryCodes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *LegacyWafOwasp) GetHighRiskCountryCodesOk() (*string, bool) { + if o == nil || o.HighRiskCountryCodes == nil { + return nil, false + } + return o.HighRiskCountryCodes, true +} + +// HasHighRiskCountryCodes returns a boolean if a field has been set. +func (o *LegacyWafOwasp) HasHighRiskCountryCodes() bool { + if o != nil && o.HighRiskCountryCodes != nil { + return true + } + + return false +} + +// SetHighRiskCountryCodes gets a reference to the given string and assigns it to the HighRiskCountryCodes field. +func (o *LegacyWafOwasp) SetHighRiskCountryCodes(v string) { + o.HighRiskCountryCodes = &v +} + +// GetHTTPViolationScoreThreshold returns the HTTPViolationScoreThreshold field value if set, zero value otherwise. +func (o *LegacyWafOwasp) GetHTTPViolationScoreThreshold() int32 { + if o == nil || o.HTTPViolationScoreThreshold == nil { + var ret int32 + return ret + } + return *o.HTTPViolationScoreThreshold +} + +// GetHTTPViolationScoreThresholdOk returns a tuple with the HTTPViolationScoreThreshold field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *LegacyWafOwasp) GetHTTPViolationScoreThresholdOk() (*int32, bool) { + if o == nil || o.HTTPViolationScoreThreshold == nil { + return nil, false + } + return o.HTTPViolationScoreThreshold, true +} + +// HasHTTPViolationScoreThreshold returns a boolean if a field has been set. +func (o *LegacyWafOwasp) HasHTTPViolationScoreThreshold() bool { + if o != nil && o.HTTPViolationScoreThreshold != nil { + return true + } + + return false +} + +// SetHTTPViolationScoreThreshold gets a reference to the given int32 and assigns it to the HTTPViolationScoreThreshold field. +func (o *LegacyWafOwasp) SetHTTPViolationScoreThreshold(v int32) { + o.HTTPViolationScoreThreshold = &v +} + +// GetInboundAnomalyScoreThreshold returns the InboundAnomalyScoreThreshold field value if set, zero value otherwise. +func (o *LegacyWafOwasp) GetInboundAnomalyScoreThreshold() int32 { + if o == nil || o.InboundAnomalyScoreThreshold == nil { + var ret int32 + return ret + } + return *o.InboundAnomalyScoreThreshold +} + +// GetInboundAnomalyScoreThresholdOk returns a tuple with the InboundAnomalyScoreThreshold field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *LegacyWafOwasp) GetInboundAnomalyScoreThresholdOk() (*int32, bool) { + if o == nil || o.InboundAnomalyScoreThreshold == nil { + return nil, false + } + return o.InboundAnomalyScoreThreshold, true +} + +// HasInboundAnomalyScoreThreshold returns a boolean if a field has been set. +func (o *LegacyWafOwasp) HasInboundAnomalyScoreThreshold() bool { + if o != nil && o.InboundAnomalyScoreThreshold != nil { + return true + } + + return false +} + +// SetInboundAnomalyScoreThreshold gets a reference to the given int32 and assigns it to the InboundAnomalyScoreThreshold field. +func (o *LegacyWafOwasp) SetInboundAnomalyScoreThreshold(v int32) { + o.InboundAnomalyScoreThreshold = &v +} + +// GetLfiScoreThreshold returns the LfiScoreThreshold field value if set, zero value otherwise. +func (o *LegacyWafOwasp) GetLfiScoreThreshold() int32 { + if o == nil || o.LfiScoreThreshold == nil { + var ret int32 + return ret + } + return *o.LfiScoreThreshold +} + +// GetLfiScoreThresholdOk returns a tuple with the LfiScoreThreshold field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *LegacyWafOwasp) GetLfiScoreThresholdOk() (*int32, bool) { + if o == nil || o.LfiScoreThreshold == nil { + return nil, false + } + return o.LfiScoreThreshold, true +} + +// HasLfiScoreThreshold returns a boolean if a field has been set. +func (o *LegacyWafOwasp) HasLfiScoreThreshold() bool { + if o != nil && o.LfiScoreThreshold != nil { + return true + } + + return false +} + +// SetLfiScoreThreshold gets a reference to the given int32 and assigns it to the LfiScoreThreshold field. +func (o *LegacyWafOwasp) SetLfiScoreThreshold(v int32) { + o.LfiScoreThreshold = &v +} + +// GetMaxFileSize returns the MaxFileSize field value if set, zero value otherwise. +func (o *LegacyWafOwasp) GetMaxFileSize() int32 { + if o == nil || o.MaxFileSize == nil { + var ret int32 + return ret + } + return *o.MaxFileSize +} + +// GetMaxFileSizeOk returns a tuple with the MaxFileSize field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *LegacyWafOwasp) GetMaxFileSizeOk() (*int32, bool) { + if o == nil || o.MaxFileSize == nil { + return nil, false + } + return o.MaxFileSize, true +} + +// HasMaxFileSize returns a boolean if a field has been set. +func (o *LegacyWafOwasp) HasMaxFileSize() bool { + if o != nil && o.MaxFileSize != nil { + return true + } + + return false +} + +// SetMaxFileSize gets a reference to the given int32 and assigns it to the MaxFileSize field. +func (o *LegacyWafOwasp) SetMaxFileSize(v int32) { + o.MaxFileSize = &v +} + +// GetMaxNumArgs returns the MaxNumArgs field value if set, zero value otherwise. +func (o *LegacyWafOwasp) GetMaxNumArgs() int32 { + if o == nil || o.MaxNumArgs == nil { + var ret int32 + return ret + } + return *o.MaxNumArgs +} + +// GetMaxNumArgsOk returns a tuple with the MaxNumArgs field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *LegacyWafOwasp) GetMaxNumArgsOk() (*int32, bool) { + if o == nil || o.MaxNumArgs == nil { + return nil, false + } + return o.MaxNumArgs, true +} + +// HasMaxNumArgs returns a boolean if a field has been set. +func (o *LegacyWafOwasp) HasMaxNumArgs() bool { + if o != nil && o.MaxNumArgs != nil { + return true + } + + return false +} + +// SetMaxNumArgs gets a reference to the given int32 and assigns it to the MaxNumArgs field. +func (o *LegacyWafOwasp) SetMaxNumArgs(v int32) { + o.MaxNumArgs = &v +} + +// GetNoticeAnomalyScore returns the NoticeAnomalyScore field value if set, zero value otherwise. +func (o *LegacyWafOwasp) GetNoticeAnomalyScore() int32 { + if o == nil || o.NoticeAnomalyScore == nil { + var ret int32 + return ret + } + return *o.NoticeAnomalyScore +} + +// GetNoticeAnomalyScoreOk returns a tuple with the NoticeAnomalyScore field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *LegacyWafOwasp) GetNoticeAnomalyScoreOk() (*int32, bool) { + if o == nil || o.NoticeAnomalyScore == nil { + return nil, false + } + return o.NoticeAnomalyScore, true +} + +// HasNoticeAnomalyScore returns a boolean if a field has been set. +func (o *LegacyWafOwasp) HasNoticeAnomalyScore() bool { + if o != nil && o.NoticeAnomalyScore != nil { + return true + } + + return false +} + +// SetNoticeAnomalyScore gets a reference to the given int32 and assigns it to the NoticeAnomalyScore field. +func (o *LegacyWafOwasp) SetNoticeAnomalyScore(v int32) { + o.NoticeAnomalyScore = &v +} + +// GetParanoiaLevel returns the ParanoiaLevel field value if set, zero value otherwise. +func (o *LegacyWafOwasp) GetParanoiaLevel() int32 { + if o == nil || o.ParanoiaLevel == nil { + var ret int32 + return ret + } + return *o.ParanoiaLevel +} + +// GetParanoiaLevelOk returns a tuple with the ParanoiaLevel field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *LegacyWafOwasp) GetParanoiaLevelOk() (*int32, bool) { + if o == nil || o.ParanoiaLevel == nil { + return nil, false + } + return o.ParanoiaLevel, true +} + +// HasParanoiaLevel returns a boolean if a field has been set. +func (o *LegacyWafOwasp) HasParanoiaLevel() bool { + if o != nil && o.ParanoiaLevel != nil { + return true + } + + return false +} + +// SetParanoiaLevel gets a reference to the given int32 and assigns it to the ParanoiaLevel field. +func (o *LegacyWafOwasp) SetParanoiaLevel(v int32) { + o.ParanoiaLevel = &v +} + +// GetPhpInjectionScoreThreshold returns the PhpInjectionScoreThreshold field value if set, zero value otherwise. +func (o *LegacyWafOwasp) GetPhpInjectionScoreThreshold() int32 { + if o == nil || o.PhpInjectionScoreThreshold == nil { + var ret int32 + return ret + } + return *o.PhpInjectionScoreThreshold +} + +// GetPhpInjectionScoreThresholdOk returns a tuple with the PhpInjectionScoreThreshold field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *LegacyWafOwasp) GetPhpInjectionScoreThresholdOk() (*int32, bool) { + if o == nil || o.PhpInjectionScoreThreshold == nil { + return nil, false + } + return o.PhpInjectionScoreThreshold, true +} + +// HasPhpInjectionScoreThreshold returns a boolean if a field has been set. +func (o *LegacyWafOwasp) HasPhpInjectionScoreThreshold() bool { + if o != nil && o.PhpInjectionScoreThreshold != nil { + return true + } + + return false +} + +// SetPhpInjectionScoreThreshold gets a reference to the given int32 and assigns it to the PhpInjectionScoreThreshold field. +func (o *LegacyWafOwasp) SetPhpInjectionScoreThreshold(v int32) { + o.PhpInjectionScoreThreshold = &v +} + +// GetRceScoreThreshold returns the RceScoreThreshold field value if set, zero value otherwise. +func (o *LegacyWafOwasp) GetRceScoreThreshold() int32 { + if o == nil || o.RceScoreThreshold == nil { + var ret int32 + return ret + } + return *o.RceScoreThreshold +} + +// GetRceScoreThresholdOk returns a tuple with the RceScoreThreshold field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *LegacyWafOwasp) GetRceScoreThresholdOk() (*int32, bool) { + if o == nil || o.RceScoreThreshold == nil { + return nil, false + } + return o.RceScoreThreshold, true +} + +// HasRceScoreThreshold returns a boolean if a field has been set. +func (o *LegacyWafOwasp) HasRceScoreThreshold() bool { + if o != nil && o.RceScoreThreshold != nil { + return true + } + + return false +} + +// SetRceScoreThreshold gets a reference to the given int32 and assigns it to the RceScoreThreshold field. +func (o *LegacyWafOwasp) SetRceScoreThreshold(v int32) { + o.RceScoreThreshold = &v +} + +// GetRestrictedExtensions returns the RestrictedExtensions field value if set, zero value otherwise. +func (o *LegacyWafOwasp) GetRestrictedExtensions() string { + if o == nil || o.RestrictedExtensions == nil { + var ret string + return ret + } + return *o.RestrictedExtensions +} + +// GetRestrictedExtensionsOk returns a tuple with the RestrictedExtensions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *LegacyWafOwasp) GetRestrictedExtensionsOk() (*string, bool) { + if o == nil || o.RestrictedExtensions == nil { + return nil, false + } + return o.RestrictedExtensions, true +} + +// HasRestrictedExtensions returns a boolean if a field has been set. +func (o *LegacyWafOwasp) HasRestrictedExtensions() bool { + if o != nil && o.RestrictedExtensions != nil { + return true + } + + return false +} + +// SetRestrictedExtensions gets a reference to the given string and assigns it to the RestrictedExtensions field. +func (o *LegacyWafOwasp) SetRestrictedExtensions(v string) { + o.RestrictedExtensions = &v +} + +// GetRestrictedHeaders returns the RestrictedHeaders field value if set, zero value otherwise. +func (o *LegacyWafOwasp) GetRestrictedHeaders() string { + if o == nil || o.RestrictedHeaders == nil { + var ret string + return ret + } + return *o.RestrictedHeaders +} + +// GetRestrictedHeadersOk returns a tuple with the RestrictedHeaders field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *LegacyWafOwasp) GetRestrictedHeadersOk() (*string, bool) { + if o == nil || o.RestrictedHeaders == nil { + return nil, false + } + return o.RestrictedHeaders, true +} + +// HasRestrictedHeaders returns a boolean if a field has been set. +func (o *LegacyWafOwasp) HasRestrictedHeaders() bool { + if o != nil && o.RestrictedHeaders != nil { + return true + } + + return false +} + +// SetRestrictedHeaders gets a reference to the given string and assigns it to the RestrictedHeaders field. +func (o *LegacyWafOwasp) SetRestrictedHeaders(v string) { + o.RestrictedHeaders = &v +} + +// GetRfiScoreThreshold returns the RfiScoreThreshold field value if set, zero value otherwise. +func (o *LegacyWafOwasp) GetRfiScoreThreshold() int32 { + if o == nil || o.RfiScoreThreshold == nil { + var ret int32 + return ret + } + return *o.RfiScoreThreshold +} + +// GetRfiScoreThresholdOk returns a tuple with the RfiScoreThreshold field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *LegacyWafOwasp) GetRfiScoreThresholdOk() (*int32, bool) { + if o == nil || o.RfiScoreThreshold == nil { + return nil, false + } + return o.RfiScoreThreshold, true +} + +// HasRfiScoreThreshold returns a boolean if a field has been set. +func (o *LegacyWafOwasp) HasRfiScoreThreshold() bool { + if o != nil && o.RfiScoreThreshold != nil { + return true + } + + return false +} + +// SetRfiScoreThreshold gets a reference to the given int32 and assigns it to the RfiScoreThreshold field. +func (o *LegacyWafOwasp) SetRfiScoreThreshold(v int32) { + o.RfiScoreThreshold = &v +} + +// GetSessionFixationScoreThreshold returns the SessionFixationScoreThreshold field value if set, zero value otherwise. +func (o *LegacyWafOwasp) GetSessionFixationScoreThreshold() int32 { + if o == nil || o.SessionFixationScoreThreshold == nil { + var ret int32 + return ret + } + return *o.SessionFixationScoreThreshold +} + +// GetSessionFixationScoreThresholdOk returns a tuple with the SessionFixationScoreThreshold field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *LegacyWafOwasp) GetSessionFixationScoreThresholdOk() (*int32, bool) { + if o == nil || o.SessionFixationScoreThreshold == nil { + return nil, false + } + return o.SessionFixationScoreThreshold, true +} + +// HasSessionFixationScoreThreshold returns a boolean if a field has been set. +func (o *LegacyWafOwasp) HasSessionFixationScoreThreshold() bool { + if o != nil && o.SessionFixationScoreThreshold != nil { + return true + } + + return false +} + +// SetSessionFixationScoreThreshold gets a reference to the given int32 and assigns it to the SessionFixationScoreThreshold field. +func (o *LegacyWafOwasp) SetSessionFixationScoreThreshold(v int32) { + o.SessionFixationScoreThreshold = &v +} + +// GetSQLInjectionScoreThreshold returns the SQLInjectionScoreThreshold field value if set, zero value otherwise. +func (o *LegacyWafOwasp) GetSQLInjectionScoreThreshold() int32 { + if o == nil || o.SQLInjectionScoreThreshold == nil { + var ret int32 + return ret + } + return *o.SQLInjectionScoreThreshold +} + +// GetSQLInjectionScoreThresholdOk returns a tuple with the SQLInjectionScoreThreshold field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *LegacyWafOwasp) GetSQLInjectionScoreThresholdOk() (*int32, bool) { + if o == nil || o.SQLInjectionScoreThreshold == nil { + return nil, false + } + return o.SQLInjectionScoreThreshold, true +} + +// HasSQLInjectionScoreThreshold returns a boolean if a field has been set. +func (o *LegacyWafOwasp) HasSQLInjectionScoreThreshold() bool { + if o != nil && o.SQLInjectionScoreThreshold != nil { + return true + } + + return false +} + +// SetSQLInjectionScoreThreshold gets a reference to the given int32 and assigns it to the SQLInjectionScoreThreshold field. +func (o *LegacyWafOwasp) SetSQLInjectionScoreThreshold(v int32) { + o.SQLInjectionScoreThreshold = &v +} + +// GetTotalArgLength returns the TotalArgLength field value if set, zero value otherwise. +func (o *LegacyWafOwasp) GetTotalArgLength() int32 { + if o == nil || o.TotalArgLength == nil { + var ret int32 + return ret + } + return *o.TotalArgLength +} + +// GetTotalArgLengthOk returns a tuple with the TotalArgLength field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *LegacyWafOwasp) GetTotalArgLengthOk() (*int32, bool) { + if o == nil || o.TotalArgLength == nil { + return nil, false + } + return o.TotalArgLength, true +} + +// HasTotalArgLength returns a boolean if a field has been set. +func (o *LegacyWafOwasp) HasTotalArgLength() bool { + if o != nil && o.TotalArgLength != nil { + return true + } + + return false +} + +// SetTotalArgLength gets a reference to the given int32 and assigns it to the TotalArgLength field. +func (o *LegacyWafOwasp) SetTotalArgLength(v int32) { + o.TotalArgLength = &v +} + +// GetUpdatedAt returns the UpdatedAt field value if set, zero value otherwise. +func (o *LegacyWafOwasp) GetUpdatedAt() string { + if o == nil || o.UpdatedAt == nil { + var ret string + return ret + } + return *o.UpdatedAt +} + +// GetUpdatedAtOk returns a tuple with the UpdatedAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *LegacyWafOwasp) GetUpdatedAtOk() (*string, bool) { + if o == nil || o.UpdatedAt == nil { + return nil, false + } + return o.UpdatedAt, true +} + +// HasUpdatedAt returns a boolean if a field has been set. +func (o *LegacyWafOwasp) HasUpdatedAt() bool { + if o != nil && o.UpdatedAt != nil { + return true + } + + return false +} + +// SetUpdatedAt gets a reference to the given string and assigns it to the UpdatedAt field. +func (o *LegacyWafOwasp) SetUpdatedAt(v string) { + o.UpdatedAt = &v +} + +// GetWarningAnomalyScore returns the WarningAnomalyScore field value if set, zero value otherwise. +func (o *LegacyWafOwasp) GetWarningAnomalyScore() int32 { + if o == nil || o.WarningAnomalyScore == nil { + var ret int32 + return ret + } + return *o.WarningAnomalyScore +} + +// GetWarningAnomalyScoreOk returns a tuple with the WarningAnomalyScore field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *LegacyWafOwasp) GetWarningAnomalyScoreOk() (*int32, bool) { + if o == nil || o.WarningAnomalyScore == nil { + return nil, false + } + return o.WarningAnomalyScore, true +} + +// HasWarningAnomalyScore returns a boolean if a field has been set. +func (o *LegacyWafOwasp) HasWarningAnomalyScore() bool { + if o != nil && o.WarningAnomalyScore != nil { + return true + } + + return false +} + +// SetWarningAnomalyScore gets a reference to the given int32 and assigns it to the WarningAnomalyScore field. +func (o *LegacyWafOwasp) SetWarningAnomalyScore(v int32) { + o.WarningAnomalyScore = &v +} + +// GetXSSScoreThreshold returns the XSSScoreThreshold field value if set, zero value otherwise. +func (o *LegacyWafOwasp) GetXSSScoreThreshold() int32 { + if o == nil || o.XSSScoreThreshold == nil { + var ret int32 + return ret + } + return *o.XSSScoreThreshold +} + +// GetXSSScoreThresholdOk returns a tuple with the XSSScoreThreshold field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *LegacyWafOwasp) GetXSSScoreThresholdOk() (*int32, bool) { + if o == nil || o.XSSScoreThreshold == nil { + return nil, false + } + return o.XSSScoreThreshold, true +} + +// HasXSSScoreThreshold returns a boolean if a field has been set. +func (o *LegacyWafOwasp) HasXSSScoreThreshold() bool { + if o != nil && o.XSSScoreThreshold != nil { + return true + } + + return false +} + +// SetXSSScoreThreshold gets a reference to the given int32 and assigns it to the XSSScoreThreshold field. +func (o *LegacyWafOwasp) SetXSSScoreThreshold(v int32) { + o.XSSScoreThreshold = &v +} + +// MarshalJSON implements the json.Marshaler interface. +// Marshaler is the interface implemented by types that can marshal themselves into valid JSON. +func (o LegacyWafOwasp) MarshalJSON() ([]byte, error) { + toSerialize := map[string]any{} + if o.AllowedHTTPVersions != nil { + toSerialize["allowed_http_versions"] = o.AllowedHTTPVersions + } + if o.AllowedMethods != nil { + toSerialize["allowed_methods"] = o.AllowedMethods + } + if o.AllowedRequestContentType != nil { + toSerialize["allowed_request_content_type"] = o.AllowedRequestContentType + } + if o.ArgLength != nil { + toSerialize["arg_length"] = o.ArgLength + } + if o.ArgNameLength != nil { + toSerialize["arg_name_length"] = o.ArgNameLength + } + if o.CombinedFileSizes != nil { + toSerialize["combined_file_sizes"] = o.CombinedFileSizes + } + if o.CreatedAt != nil { + toSerialize["created_at"] = o.CreatedAt + } + if o.CriticalAnomalyScore != nil { + toSerialize["critical_anomaly_score"] = o.CriticalAnomalyScore + } + if o.CrsValidateUtf8Encoding != nil { + toSerialize["crs_validate_utf8_encoding"] = o.CrsValidateUtf8Encoding + } + if o.ErrorAnomalyScore != nil { + toSerialize["error_anomaly_score"] = o.ErrorAnomalyScore + } + if o.HighRiskCountryCodes != nil { + toSerialize["high_risk_country_codes"] = o.HighRiskCountryCodes + } + if o.HTTPViolationScoreThreshold != nil { + toSerialize["http_violation_score_threshold"] = o.HTTPViolationScoreThreshold + } + if o.InboundAnomalyScoreThreshold != nil { + toSerialize["inbound_anomaly_score_threshold"] = o.InboundAnomalyScoreThreshold + } + if o.LfiScoreThreshold != nil { + toSerialize["lfi_score_threshold"] = o.LfiScoreThreshold + } + if o.MaxFileSize != nil { + toSerialize["max_file_size"] = o.MaxFileSize + } + if o.MaxNumArgs != nil { + toSerialize["max_num_args"] = o.MaxNumArgs + } + if o.NoticeAnomalyScore != nil { + toSerialize["notice_anomaly_score"] = o.NoticeAnomalyScore + } + if o.ParanoiaLevel != nil { + toSerialize["paranoia_level"] = o.ParanoiaLevel + } + if o.PhpInjectionScoreThreshold != nil { + toSerialize["php_injection_score_threshold"] = o.PhpInjectionScoreThreshold + } + if o.RceScoreThreshold != nil { + toSerialize["rce_score_threshold"] = o.RceScoreThreshold + } + if o.RestrictedExtensions != nil { + toSerialize["restricted_extensions"] = o.RestrictedExtensions + } + if o.RestrictedHeaders != nil { + toSerialize["restricted_headers"] = o.RestrictedHeaders + } + if o.RfiScoreThreshold != nil { + toSerialize["rfi_score_threshold"] = o.RfiScoreThreshold + } + if o.SessionFixationScoreThreshold != nil { + toSerialize["session_fixation_score_threshold"] = o.SessionFixationScoreThreshold + } + if o.SQLInjectionScoreThreshold != nil { + toSerialize["sql_injection_score_threshold"] = o.SQLInjectionScoreThreshold + } + if o.TotalArgLength != nil { + toSerialize["total_arg_length"] = o.TotalArgLength + } + if o.UpdatedAt != nil { + toSerialize["updated_at"] = o.UpdatedAt + } + if o.WarningAnomalyScore != nil { + toSerialize["warning_anomaly_score"] = o.WarningAnomalyScore + } + if o.XSSScoreThreshold != nil { + toSerialize["xss_score_threshold"] = o.XSSScoreThreshold + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return json.Marshal(toSerialize) +} + +// UnmarshalJSON implements the Unmarshaler interface. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +func (o *LegacyWafOwasp) UnmarshalJSON(bytes []byte) (err error) { + varLegacyWafOwasp := _LegacyWafOwasp{} + + if err = json.Unmarshal(bytes, &varLegacyWafOwasp); err == nil { + *o = LegacyWafOwasp(varLegacyWafOwasp) + } + + additionalProperties := make(map[string]any) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "allowed_http_versions") + delete(additionalProperties, "allowed_methods") + delete(additionalProperties, "allowed_request_content_type") + delete(additionalProperties, "arg_length") + delete(additionalProperties, "arg_name_length") + delete(additionalProperties, "combined_file_sizes") + delete(additionalProperties, "created_at") + delete(additionalProperties, "critical_anomaly_score") + delete(additionalProperties, "crs_validate_utf8_encoding") + delete(additionalProperties, "error_anomaly_score") + delete(additionalProperties, "high_risk_country_codes") + delete(additionalProperties, "http_violation_score_threshold") + delete(additionalProperties, "inbound_anomaly_score_threshold") + delete(additionalProperties, "lfi_score_threshold") + delete(additionalProperties, "max_file_size") + delete(additionalProperties, "max_num_args") + delete(additionalProperties, "notice_anomaly_score") + delete(additionalProperties, "paranoia_level") + delete(additionalProperties, "php_injection_score_threshold") + delete(additionalProperties, "rce_score_threshold") + delete(additionalProperties, "restricted_extensions") + delete(additionalProperties, "restricted_headers") + delete(additionalProperties, "rfi_score_threshold") + delete(additionalProperties, "session_fixation_score_threshold") + delete(additionalProperties, "sql_injection_score_threshold") + delete(additionalProperties, "total_arg_length") + delete(additionalProperties, "updated_at") + delete(additionalProperties, "warning_anomaly_score") + delete(additionalProperties, "xss_score_threshold") + o.AdditionalProperties = additionalProperties + } + + return err +} + +// NullableLegacyWafOwasp is a helper abstraction for handling nullable legacywafowasp types. +type NullableLegacyWafOwasp struct { + value *LegacyWafOwasp + isSet bool +} + +// Get returns the value. +func (v NullableLegacyWafOwasp) Get() *LegacyWafOwasp { + return v.value +} + +// Set modifies the value. +func (v *NullableLegacyWafOwasp) Set(val *LegacyWafOwasp) { + v.value = val + v.isSet = true +} + +// IsSet indicates if the value was set. +func (v NullableLegacyWafOwasp) IsSet() bool { + return v.isSet +} + +// Unset removes the value. +func (v *NullableLegacyWafOwasp) Unset() { + v.value = nil + v.isSet = false +} + +// NewNullableLegacyWafOwasp returns a pointer to a new instance of NullableLegacyWafOwasp. +func NewNullableLegacyWafOwasp(val *LegacyWafOwasp) *NullableLegacyWafOwasp { + return &NullableLegacyWafOwasp{value: val, isSet: true} +} + +// MarshalJSON implements the json.Marshaler interface. +// Marshaler is the interface implemented by types that can marshal themselves into valid JSON. +func (v NullableLegacyWafOwasp) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +// UnmarshalJSON implements the Unmarshaler interface. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +func (v *NullableLegacyWafOwasp) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/fastly/model_legacy_waf_rule.go b/fastly/model_legacy_waf_rule.go new file mode 100644 index 00000000..99d8bb27 --- /dev/null +++ b/fastly/model_legacy_waf_rule.go @@ -0,0 +1,308 @@ +// Package fastly is an API client library for interacting with most facets of the Fastly API. +package fastly + +/* +Fastly API + +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://developer.fastly.com/reference/api/) + +API version: 1.0.0 +Contact: oss@fastly.com +*/ + +// This code is auto-generated; DO NOT EDIT. + + +import ( + "encoding/json" +) + +// LegacyWafRule struct for LegacyWafRule +type LegacyWafRule struct { + // Message metadata for the rule. + Message *string `json:"message,omitempty"` + // Corresponding ModSecurity rule ID. + RuleID *string `json:"rule_id,omitempty"` + // Severity metadata for the rule. + Severity *int32 `json:"severity,omitempty"` + // The ModSecurity rule logic. + Source *string `json:"source,omitempty"` + // The VCL representation of the rule logic. + Vcl *string `json:"vcl,omitempty"` + AdditionalProperties map[string]any +} + +type _LegacyWafRule LegacyWafRule + +// NewLegacyWafRule instantiates a new LegacyWafRule object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewLegacyWafRule() *LegacyWafRule { + this := LegacyWafRule{} + return &this +} + +// NewLegacyWafRuleWithDefaults instantiates a new LegacyWafRule object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewLegacyWafRuleWithDefaults() *LegacyWafRule { + this := LegacyWafRule{} + return &this +} + +// GetMessage returns the Message field value if set, zero value otherwise. +func (o *LegacyWafRule) GetMessage() string { + if o == nil || o.Message == nil { + var ret string + return ret + } + return *o.Message +} + +// GetMessageOk returns a tuple with the Message field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *LegacyWafRule) GetMessageOk() (*string, bool) { + if o == nil || o.Message == nil { + return nil, false + } + return o.Message, true +} + +// HasMessage returns a boolean if a field has been set. +func (o *LegacyWafRule) HasMessage() bool { + if o != nil && o.Message != nil { + return true + } + + return false +} + +// SetMessage gets a reference to the given string and assigns it to the Message field. +func (o *LegacyWafRule) SetMessage(v string) { + o.Message = &v +} + +// GetRuleID returns the RuleID field value if set, zero value otherwise. +func (o *LegacyWafRule) GetRuleID() string { + if o == nil || o.RuleID == nil { + var ret string + return ret + } + return *o.RuleID +} + +// GetRuleIDOk returns a tuple with the RuleID field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *LegacyWafRule) GetRuleIDOk() (*string, bool) { + if o == nil || o.RuleID == nil { + return nil, false + } + return o.RuleID, true +} + +// HasRuleID returns a boolean if a field has been set. +func (o *LegacyWafRule) HasRuleID() bool { + if o != nil && o.RuleID != nil { + return true + } + + return false +} + +// SetRuleID gets a reference to the given string and assigns it to the RuleID field. +func (o *LegacyWafRule) SetRuleID(v string) { + o.RuleID = &v +} + +// GetSeverity returns the Severity field value if set, zero value otherwise. +func (o *LegacyWafRule) GetSeverity() int32 { + if o == nil || o.Severity == nil { + var ret int32 + return ret + } + return *o.Severity +} + +// GetSeverityOk returns a tuple with the Severity field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *LegacyWafRule) GetSeverityOk() (*int32, bool) { + if o == nil || o.Severity == nil { + return nil, false + } + return o.Severity, true +} + +// HasSeverity returns a boolean if a field has been set. +func (o *LegacyWafRule) HasSeverity() bool { + if o != nil && o.Severity != nil { + return true + } + + return false +} + +// SetSeverity gets a reference to the given int32 and assigns it to the Severity field. +func (o *LegacyWafRule) SetSeverity(v int32) { + o.Severity = &v +} + +// GetSource returns the Source field value if set, zero value otherwise. +func (o *LegacyWafRule) GetSource() string { + if o == nil || o.Source == nil { + var ret string + return ret + } + return *o.Source +} + +// GetSourceOk returns a tuple with the Source field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *LegacyWafRule) GetSourceOk() (*string, bool) { + if o == nil || o.Source == nil { + return nil, false + } + return o.Source, true +} + +// HasSource returns a boolean if a field has been set. +func (o *LegacyWafRule) HasSource() bool { + if o != nil && o.Source != nil { + return true + } + + return false +} + +// SetSource gets a reference to the given string and assigns it to the Source field. +func (o *LegacyWafRule) SetSource(v string) { + o.Source = &v +} + +// GetVcl returns the Vcl field value if set, zero value otherwise. +func (o *LegacyWafRule) GetVcl() string { + if o == nil || o.Vcl == nil { + var ret string + return ret + } + return *o.Vcl +} + +// GetVclOk returns a tuple with the Vcl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *LegacyWafRule) GetVclOk() (*string, bool) { + if o == nil || o.Vcl == nil { + return nil, false + } + return o.Vcl, true +} + +// HasVcl returns a boolean if a field has been set. +func (o *LegacyWafRule) HasVcl() bool { + if o != nil && o.Vcl != nil { + return true + } + + return false +} + +// SetVcl gets a reference to the given string and assigns it to the Vcl field. +func (o *LegacyWafRule) SetVcl(v string) { + o.Vcl = &v +} + +// MarshalJSON implements the json.Marshaler interface. +// Marshaler is the interface implemented by types that can marshal themselves into valid JSON. +func (o LegacyWafRule) MarshalJSON() ([]byte, error) { + toSerialize := map[string]any{} + if o.Message != nil { + toSerialize["message"] = o.Message + } + if o.RuleID != nil { + toSerialize["rule_id"] = o.RuleID + } + if o.Severity != nil { + toSerialize["severity"] = o.Severity + } + if o.Source != nil { + toSerialize["source"] = o.Source + } + if o.Vcl != nil { + toSerialize["vcl"] = o.Vcl + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return json.Marshal(toSerialize) +} + +// UnmarshalJSON implements the Unmarshaler interface. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +func (o *LegacyWafRule) UnmarshalJSON(bytes []byte) (err error) { + varLegacyWafRule := _LegacyWafRule{} + + if err = json.Unmarshal(bytes, &varLegacyWafRule); err == nil { + *o = LegacyWafRule(varLegacyWafRule) + } + + additionalProperties := make(map[string]any) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "message") + delete(additionalProperties, "rule_id") + delete(additionalProperties, "severity") + delete(additionalProperties, "source") + delete(additionalProperties, "vcl") + o.AdditionalProperties = additionalProperties + } + + return err +} + +// NullableLegacyWafRule is a helper abstraction for handling nullable legacywafrule types. +type NullableLegacyWafRule struct { + value *LegacyWafRule + isSet bool +} + +// Get returns the value. +func (v NullableLegacyWafRule) Get() *LegacyWafRule { + return v.value +} + +// Set modifies the value. +func (v *NullableLegacyWafRule) Set(val *LegacyWafRule) { + v.value = val + v.isSet = true +} + +// IsSet indicates if the value was set. +func (v NullableLegacyWafRule) IsSet() bool { + return v.isSet +} + +// Unset removes the value. +func (v *NullableLegacyWafRule) Unset() { + v.value = nil + v.isSet = false +} + +// NewNullableLegacyWafRule returns a pointer to a new instance of NullableLegacyWafRule. +func NewNullableLegacyWafRule(val *LegacyWafRule) *NullableLegacyWafRule { + return &NullableLegacyWafRule{value: val, isSet: true} +} + +// MarshalJSON implements the json.Marshaler interface. +// Marshaler is the interface implemented by types that can marshal themselves into valid JSON. +func (v NullableLegacyWafRule) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +// UnmarshalJSON implements the Unmarshaler interface. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +func (v *NullableLegacyWafRule) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/fastly/model_legacy_waf_rule_status.go b/fastly/model_legacy_waf_rule_status.go new file mode 100644 index 00000000..784fcc6b --- /dev/null +++ b/fastly/model_legacy_waf_rule_status.go @@ -0,0 +1,232 @@ +// Package fastly is an API client library for interacting with most facets of the Fastly API. +package fastly + +/* +Fastly API + +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://developer.fastly.com/reference/api/) + +API version: 1.0.0 +Contact: oss@fastly.com +*/ + +// This code is auto-generated; DO NOT EDIT. + + +import ( + "encoding/json" +) + +// LegacyWafRuleStatus struct for LegacyWafRuleStatus +type LegacyWafRuleStatus struct { + // Describes the behavior for the particular rule within this firewall. Permitted values: `log`, `block`, and `disabled`. + Status *string `json:"status,omitempty"` + // The ModSecurity rule ID. + ModsecRuleID *string `json:"modsec_rule_id,omitempty"` + // The Rule ID. + UniqueRuleID *string `json:"unique_rule_id,omitempty"` + AdditionalProperties map[string]any +} + +type _LegacyWafRuleStatus LegacyWafRuleStatus + +// NewLegacyWafRuleStatus instantiates a new LegacyWafRuleStatus object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewLegacyWafRuleStatus() *LegacyWafRuleStatus { + this := LegacyWafRuleStatus{} + return &this +} + +// NewLegacyWafRuleStatusWithDefaults instantiates a new LegacyWafRuleStatus object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewLegacyWafRuleStatusWithDefaults() *LegacyWafRuleStatus { + this := LegacyWafRuleStatus{} + return &this +} + +// GetStatus returns the Status field value if set, zero value otherwise. +func (o *LegacyWafRuleStatus) GetStatus() string { + if o == nil || o.Status == nil { + var ret string + return ret + } + return *o.Status +} + +// GetStatusOk returns a tuple with the Status field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *LegacyWafRuleStatus) GetStatusOk() (*string, bool) { + if o == nil || o.Status == nil { + return nil, false + } + return o.Status, true +} + +// HasStatus returns a boolean if a field has been set. +func (o *LegacyWafRuleStatus) HasStatus() bool { + if o != nil && o.Status != nil { + return true + } + + return false +} + +// SetStatus gets a reference to the given string and assigns it to the Status field. +func (o *LegacyWafRuleStatus) SetStatus(v string) { + o.Status = &v +} + +// GetModsecRuleID returns the ModsecRuleID field value if set, zero value otherwise. +func (o *LegacyWafRuleStatus) GetModsecRuleID() string { + if o == nil || o.ModsecRuleID == nil { + var ret string + return ret + } + return *o.ModsecRuleID +} + +// GetModsecRuleIDOk returns a tuple with the ModsecRuleID field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *LegacyWafRuleStatus) GetModsecRuleIDOk() (*string, bool) { + if o == nil || o.ModsecRuleID == nil { + return nil, false + } + return o.ModsecRuleID, true +} + +// HasModsecRuleID returns a boolean if a field has been set. +func (o *LegacyWafRuleStatus) HasModsecRuleID() bool { + if o != nil && o.ModsecRuleID != nil { + return true + } + + return false +} + +// SetModsecRuleID gets a reference to the given string and assigns it to the ModsecRuleID field. +func (o *LegacyWafRuleStatus) SetModsecRuleID(v string) { + o.ModsecRuleID = &v +} + +// GetUniqueRuleID returns the UniqueRuleID field value if set, zero value otherwise. +func (o *LegacyWafRuleStatus) GetUniqueRuleID() string { + if o == nil || o.UniqueRuleID == nil { + var ret string + return ret + } + return *o.UniqueRuleID +} + +// GetUniqueRuleIDOk returns a tuple with the UniqueRuleID field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *LegacyWafRuleStatus) GetUniqueRuleIDOk() (*string, bool) { + if o == nil || o.UniqueRuleID == nil { + return nil, false + } + return o.UniqueRuleID, true +} + +// HasUniqueRuleID returns a boolean if a field has been set. +func (o *LegacyWafRuleStatus) HasUniqueRuleID() bool { + if o != nil && o.UniqueRuleID != nil { + return true + } + + return false +} + +// SetUniqueRuleID gets a reference to the given string and assigns it to the UniqueRuleID field. +func (o *LegacyWafRuleStatus) SetUniqueRuleID(v string) { + o.UniqueRuleID = &v +} + +// MarshalJSON implements the json.Marshaler interface. +// Marshaler is the interface implemented by types that can marshal themselves into valid JSON. +func (o LegacyWafRuleStatus) MarshalJSON() ([]byte, error) { + toSerialize := map[string]any{} + if o.Status != nil { + toSerialize["status"] = o.Status + } + if o.ModsecRuleID != nil { + toSerialize["modsec_rule_id"] = o.ModsecRuleID + } + if o.UniqueRuleID != nil { + toSerialize["unique_rule_id"] = o.UniqueRuleID + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return json.Marshal(toSerialize) +} + +// UnmarshalJSON implements the Unmarshaler interface. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +func (o *LegacyWafRuleStatus) UnmarshalJSON(bytes []byte) (err error) { + varLegacyWafRuleStatus := _LegacyWafRuleStatus{} + + if err = json.Unmarshal(bytes, &varLegacyWafRuleStatus); err == nil { + *o = LegacyWafRuleStatus(varLegacyWafRuleStatus) + } + + additionalProperties := make(map[string]any) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "status") + delete(additionalProperties, "modsec_rule_id") + delete(additionalProperties, "unique_rule_id") + o.AdditionalProperties = additionalProperties + } + + return err +} + +// NullableLegacyWafRuleStatus is a helper abstraction for handling nullable legacywafrulestatus types. +type NullableLegacyWafRuleStatus struct { + value *LegacyWafRuleStatus + isSet bool +} + +// Get returns the value. +func (v NullableLegacyWafRuleStatus) Get() *LegacyWafRuleStatus { + return v.value +} + +// Set modifies the value. +func (v *NullableLegacyWafRuleStatus) Set(val *LegacyWafRuleStatus) { + v.value = val + v.isSet = true +} + +// IsSet indicates if the value was set. +func (v NullableLegacyWafRuleStatus) IsSet() bool { + return v.isSet +} + +// Unset removes the value. +func (v *NullableLegacyWafRuleStatus) Unset() { + v.value = nil + v.isSet = false +} + +// NewNullableLegacyWafRuleStatus returns a pointer to a new instance of NullableLegacyWafRuleStatus. +func NewNullableLegacyWafRuleStatus(val *LegacyWafRuleStatus) *NullableLegacyWafRuleStatus { + return &NullableLegacyWafRuleStatus{value: val, isSet: true} +} + +// MarshalJSON implements the json.Marshaler interface. +// Marshaler is the interface implemented by types that can marshal themselves into valid JSON. +func (v NullableLegacyWafRuleStatus) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +// UnmarshalJSON implements the Unmarshaler interface. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +func (v *NullableLegacyWafRuleStatus) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/fastly/model_legacy_waf_ruleset.go b/fastly/model_legacy_waf_ruleset.go new file mode 100644 index 00000000..d799b0f2 --- /dev/null +++ b/fastly/model_legacy_waf_ruleset.go @@ -0,0 +1,194 @@ +// Package fastly is an API client library for interacting with most facets of the Fastly API. +package fastly + +/* +Fastly API + +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://developer.fastly.com/reference/api/) + +API version: 1.0.0 +Contact: oss@fastly.com +*/ + +// This code is auto-generated; DO NOT EDIT. + + +import ( + "encoding/json" +) + +// LegacyWafRuleset struct for LegacyWafRuleset +type LegacyWafRuleset struct { + // Date and time WAF ruleset VCL was last deployed. + LastPush *string `json:"last_push,omitempty"` + // The WAF ruleset VCL currently deployed. + Vcl *string `json:"vcl,omitempty"` + AdditionalProperties map[string]any +} + +type _LegacyWafRuleset LegacyWafRuleset + +// NewLegacyWafRuleset instantiates a new LegacyWafRuleset object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewLegacyWafRuleset() *LegacyWafRuleset { + this := LegacyWafRuleset{} + return &this +} + +// NewLegacyWafRulesetWithDefaults instantiates a new LegacyWafRuleset object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewLegacyWafRulesetWithDefaults() *LegacyWafRuleset { + this := LegacyWafRuleset{} + return &this +} + +// GetLastPush returns the LastPush field value if set, zero value otherwise. +func (o *LegacyWafRuleset) GetLastPush() string { + if o == nil || o.LastPush == nil { + var ret string + return ret + } + return *o.LastPush +} + +// GetLastPushOk returns a tuple with the LastPush field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *LegacyWafRuleset) GetLastPushOk() (*string, bool) { + if o == nil || o.LastPush == nil { + return nil, false + } + return o.LastPush, true +} + +// HasLastPush returns a boolean if a field has been set. +func (o *LegacyWafRuleset) HasLastPush() bool { + if o != nil && o.LastPush != nil { + return true + } + + return false +} + +// SetLastPush gets a reference to the given string and assigns it to the LastPush field. +func (o *LegacyWafRuleset) SetLastPush(v string) { + o.LastPush = &v +} + +// GetVcl returns the Vcl field value if set, zero value otherwise. +func (o *LegacyWafRuleset) GetVcl() string { + if o == nil || o.Vcl == nil { + var ret string + return ret + } + return *o.Vcl +} + +// GetVclOk returns a tuple with the Vcl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *LegacyWafRuleset) GetVclOk() (*string, bool) { + if o == nil || o.Vcl == nil { + return nil, false + } + return o.Vcl, true +} + +// HasVcl returns a boolean if a field has been set. +func (o *LegacyWafRuleset) HasVcl() bool { + if o != nil && o.Vcl != nil { + return true + } + + return false +} + +// SetVcl gets a reference to the given string and assigns it to the Vcl field. +func (o *LegacyWafRuleset) SetVcl(v string) { + o.Vcl = &v +} + +// MarshalJSON implements the json.Marshaler interface. +// Marshaler is the interface implemented by types that can marshal themselves into valid JSON. +func (o LegacyWafRuleset) MarshalJSON() ([]byte, error) { + toSerialize := map[string]any{} + if o.LastPush != nil { + toSerialize["last_push"] = o.LastPush + } + if o.Vcl != nil { + toSerialize["vcl"] = o.Vcl + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return json.Marshal(toSerialize) +} + +// UnmarshalJSON implements the Unmarshaler interface. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +func (o *LegacyWafRuleset) UnmarshalJSON(bytes []byte) (err error) { + varLegacyWafRuleset := _LegacyWafRuleset{} + + if err = json.Unmarshal(bytes, &varLegacyWafRuleset); err == nil { + *o = LegacyWafRuleset(varLegacyWafRuleset) + } + + additionalProperties := make(map[string]any) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "last_push") + delete(additionalProperties, "vcl") + o.AdditionalProperties = additionalProperties + } + + return err +} + +// NullableLegacyWafRuleset is a helper abstraction for handling nullable legacywafruleset types. +type NullableLegacyWafRuleset struct { + value *LegacyWafRuleset + isSet bool +} + +// Get returns the value. +func (v NullableLegacyWafRuleset) Get() *LegacyWafRuleset { + return v.value +} + +// Set modifies the value. +func (v *NullableLegacyWafRuleset) Set(val *LegacyWafRuleset) { + v.value = val + v.isSet = true +} + +// IsSet indicates if the value was set. +func (v NullableLegacyWafRuleset) IsSet() bool { + return v.isSet +} + +// Unset removes the value. +func (v *NullableLegacyWafRuleset) Unset() { + v.value = nil + v.isSet = false +} + +// NewNullableLegacyWafRuleset returns a pointer to a new instance of NullableLegacyWafRuleset. +func NewNullableLegacyWafRuleset(val *LegacyWafRuleset) *NullableLegacyWafRuleset { + return &NullableLegacyWafRuleset{value: val, isSet: true} +} + +// MarshalJSON implements the json.Marshaler interface. +// Marshaler is the interface implemented by types that can marshal themselves into valid JSON. +func (v NullableLegacyWafRuleset) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +// UnmarshalJSON implements the Unmarshaler interface. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +func (v *NullableLegacyWafRuleset) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/fastly/model_legacy_waf_tag.go b/fastly/model_legacy_waf_tag.go new file mode 100644 index 00000000..c29ccabf --- /dev/null +++ b/fastly/model_legacy_waf_tag.go @@ -0,0 +1,156 @@ +// Package fastly is an API client library for interacting with most facets of the Fastly API. +package fastly + +/* +Fastly API + +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://developer.fastly.com/reference/api/) + +API version: 1.0.0 +Contact: oss@fastly.com +*/ + +// This code is auto-generated; DO NOT EDIT. + + +import ( + "encoding/json" +) + +// LegacyWafTag struct for LegacyWafTag +type LegacyWafTag struct { + // Name of the tag. + Name *string `json:"name,omitempty"` + AdditionalProperties map[string]any +} + +type _LegacyWafTag LegacyWafTag + +// NewLegacyWafTag instantiates a new LegacyWafTag object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewLegacyWafTag() *LegacyWafTag { + this := LegacyWafTag{} + return &this +} + +// NewLegacyWafTagWithDefaults instantiates a new LegacyWafTag object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewLegacyWafTagWithDefaults() *LegacyWafTag { + this := LegacyWafTag{} + return &this +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *LegacyWafTag) GetName() string { + if o == nil || o.Name == nil { + var ret string + return ret + } + return *o.Name +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *LegacyWafTag) GetNameOk() (*string, bool) { + if o == nil || o.Name == nil { + return nil, false + } + return o.Name, true +} + +// HasName returns a boolean if a field has been set. +func (o *LegacyWafTag) HasName() bool { + if o != nil && o.Name != nil { + return true + } + + return false +} + +// SetName gets a reference to the given string and assigns it to the Name field. +func (o *LegacyWafTag) SetName(v string) { + o.Name = &v +} + +// MarshalJSON implements the json.Marshaler interface. +// Marshaler is the interface implemented by types that can marshal themselves into valid JSON. +func (o LegacyWafTag) MarshalJSON() ([]byte, error) { + toSerialize := map[string]any{} + if o.Name != nil { + toSerialize["name"] = o.Name + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return json.Marshal(toSerialize) +} + +// UnmarshalJSON implements the Unmarshaler interface. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +func (o *LegacyWafTag) UnmarshalJSON(bytes []byte) (err error) { + varLegacyWafTag := _LegacyWafTag{} + + if err = json.Unmarshal(bytes, &varLegacyWafTag); err == nil { + *o = LegacyWafTag(varLegacyWafTag) + } + + additionalProperties := make(map[string]any) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "name") + o.AdditionalProperties = additionalProperties + } + + return err +} + +// NullableLegacyWafTag is a helper abstraction for handling nullable legacywaftag types. +type NullableLegacyWafTag struct { + value *LegacyWafTag + isSet bool +} + +// Get returns the value. +func (v NullableLegacyWafTag) Get() *LegacyWafTag { + return v.value +} + +// Set modifies the value. +func (v *NullableLegacyWafTag) Set(val *LegacyWafTag) { + v.value = val + v.isSet = true +} + +// IsSet indicates if the value was set. +func (v NullableLegacyWafTag) IsSet() bool { + return v.isSet +} + +// Unset removes the value. +func (v *NullableLegacyWafTag) Unset() { + v.value = nil + v.isSet = false +} + +// NewNullableLegacyWafTag returns a pointer to a new instance of NullableLegacyWafTag. +func NewNullableLegacyWafTag(val *LegacyWafTag) *NullableLegacyWafTag { + return &NullableLegacyWafTag{value: val, isSet: true} +} + +// MarshalJSON implements the json.Marshaler interface. +// Marshaler is the interface implemented by types that can marshal themselves into valid JSON. +func (v NullableLegacyWafTag) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +// UnmarshalJSON implements the Unmarshaler interface. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +func (v *NullableLegacyWafTag) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/fastly/model_legacy_waf_update_status.go b/fastly/model_legacy_waf_update_status.go new file mode 100644 index 00000000..7ddcd799 --- /dev/null +++ b/fastly/model_legacy_waf_update_status.go @@ -0,0 +1,346 @@ +// Package fastly is an API client library for interacting with most facets of the Fastly API. +package fastly + +/* +Fastly API + +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://developer.fastly.com/reference/api/) + +API version: 1.0.0 +Contact: oss@fastly.com +*/ + +// This code is auto-generated; DO NOT EDIT. + + +import ( + "encoding/json" +) + +// LegacyWafUpdateStatus struct for LegacyWafUpdateStatus +type LegacyWafUpdateStatus struct { + // Date and time that job was completed. + CompletedAt *string `json:"completed_at,omitempty"` + // Date and time that job was created. + CreatedAt *string `json:"created_at,omitempty"` + // This field can contain data passed to the background worker as well as output from the background job. + Data *string `json:"data,omitempty"` + // Message with information about the status of the update. + Message *string `json:"message,omitempty"` + // Current status of the update. + Status *string `json:"status,omitempty"` + // Date and time that job was last updated. + UpdatedAt *string `json:"updated_at,omitempty"` + AdditionalProperties map[string]any +} + +type _LegacyWafUpdateStatus LegacyWafUpdateStatus + +// NewLegacyWafUpdateStatus instantiates a new LegacyWafUpdateStatus object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewLegacyWafUpdateStatus() *LegacyWafUpdateStatus { + this := LegacyWafUpdateStatus{} + return &this +} + +// NewLegacyWafUpdateStatusWithDefaults instantiates a new LegacyWafUpdateStatus object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewLegacyWafUpdateStatusWithDefaults() *LegacyWafUpdateStatus { + this := LegacyWafUpdateStatus{} + return &this +} + +// GetCompletedAt returns the CompletedAt field value if set, zero value otherwise. +func (o *LegacyWafUpdateStatus) GetCompletedAt() string { + if o == nil || o.CompletedAt == nil { + var ret string + return ret + } + return *o.CompletedAt +} + +// GetCompletedAtOk returns a tuple with the CompletedAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *LegacyWafUpdateStatus) GetCompletedAtOk() (*string, bool) { + if o == nil || o.CompletedAt == nil { + return nil, false + } + return o.CompletedAt, true +} + +// HasCompletedAt returns a boolean if a field has been set. +func (o *LegacyWafUpdateStatus) HasCompletedAt() bool { + if o != nil && o.CompletedAt != nil { + return true + } + + return false +} + +// SetCompletedAt gets a reference to the given string and assigns it to the CompletedAt field. +func (o *LegacyWafUpdateStatus) SetCompletedAt(v string) { + o.CompletedAt = &v +} + +// GetCreatedAt returns the CreatedAt field value if set, zero value otherwise. +func (o *LegacyWafUpdateStatus) GetCreatedAt() string { + if o == nil || o.CreatedAt == nil { + var ret string + return ret + } + return *o.CreatedAt +} + +// GetCreatedAtOk returns a tuple with the CreatedAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *LegacyWafUpdateStatus) GetCreatedAtOk() (*string, bool) { + if o == nil || o.CreatedAt == nil { + return nil, false + } + return o.CreatedAt, true +} + +// HasCreatedAt returns a boolean if a field has been set. +func (o *LegacyWafUpdateStatus) HasCreatedAt() bool { + if o != nil && o.CreatedAt != nil { + return true + } + + return false +} + +// SetCreatedAt gets a reference to the given string and assigns it to the CreatedAt field. +func (o *LegacyWafUpdateStatus) SetCreatedAt(v string) { + o.CreatedAt = &v +} + +// GetData returns the Data field value if set, zero value otherwise. +func (o *LegacyWafUpdateStatus) GetData() string { + if o == nil || o.Data == nil { + var ret string + return ret + } + return *o.Data +} + +// GetDataOk returns a tuple with the Data field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *LegacyWafUpdateStatus) GetDataOk() (*string, bool) { + if o == nil || o.Data == nil { + return nil, false + } + return o.Data, true +} + +// HasData returns a boolean if a field has been set. +func (o *LegacyWafUpdateStatus) HasData() bool { + if o != nil && o.Data != nil { + return true + } + + return false +} + +// SetData gets a reference to the given string and assigns it to the Data field. +func (o *LegacyWafUpdateStatus) SetData(v string) { + o.Data = &v +} + +// GetMessage returns the Message field value if set, zero value otherwise. +func (o *LegacyWafUpdateStatus) GetMessage() string { + if o == nil || o.Message == nil { + var ret string + return ret + } + return *o.Message +} + +// GetMessageOk returns a tuple with the Message field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *LegacyWafUpdateStatus) GetMessageOk() (*string, bool) { + if o == nil || o.Message == nil { + return nil, false + } + return o.Message, true +} + +// HasMessage returns a boolean if a field has been set. +func (o *LegacyWafUpdateStatus) HasMessage() bool { + if o != nil && o.Message != nil { + return true + } + + return false +} + +// SetMessage gets a reference to the given string and assigns it to the Message field. +func (o *LegacyWafUpdateStatus) SetMessage(v string) { + o.Message = &v +} + +// GetStatus returns the Status field value if set, zero value otherwise. +func (o *LegacyWafUpdateStatus) GetStatus() string { + if o == nil || o.Status == nil { + var ret string + return ret + } + return *o.Status +} + +// GetStatusOk returns a tuple with the Status field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *LegacyWafUpdateStatus) GetStatusOk() (*string, bool) { + if o == nil || o.Status == nil { + return nil, false + } + return o.Status, true +} + +// HasStatus returns a boolean if a field has been set. +func (o *LegacyWafUpdateStatus) HasStatus() bool { + if o != nil && o.Status != nil { + return true + } + + return false +} + +// SetStatus gets a reference to the given string and assigns it to the Status field. +func (o *LegacyWafUpdateStatus) SetStatus(v string) { + o.Status = &v +} + +// GetUpdatedAt returns the UpdatedAt field value if set, zero value otherwise. +func (o *LegacyWafUpdateStatus) GetUpdatedAt() string { + if o == nil || o.UpdatedAt == nil { + var ret string + return ret + } + return *o.UpdatedAt +} + +// GetUpdatedAtOk returns a tuple with the UpdatedAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *LegacyWafUpdateStatus) GetUpdatedAtOk() (*string, bool) { + if o == nil || o.UpdatedAt == nil { + return nil, false + } + return o.UpdatedAt, true +} + +// HasUpdatedAt returns a boolean if a field has been set. +func (o *LegacyWafUpdateStatus) HasUpdatedAt() bool { + if o != nil && o.UpdatedAt != nil { + return true + } + + return false +} + +// SetUpdatedAt gets a reference to the given string and assigns it to the UpdatedAt field. +func (o *LegacyWafUpdateStatus) SetUpdatedAt(v string) { + o.UpdatedAt = &v +} + +// MarshalJSON implements the json.Marshaler interface. +// Marshaler is the interface implemented by types that can marshal themselves into valid JSON. +func (o LegacyWafUpdateStatus) MarshalJSON() ([]byte, error) { + toSerialize := map[string]any{} + if o.CompletedAt != nil { + toSerialize["completed_at"] = o.CompletedAt + } + if o.CreatedAt != nil { + toSerialize["created_at"] = o.CreatedAt + } + if o.Data != nil { + toSerialize["data"] = o.Data + } + if o.Message != nil { + toSerialize["message"] = o.Message + } + if o.Status != nil { + toSerialize["status"] = o.Status + } + if o.UpdatedAt != nil { + toSerialize["updated_at"] = o.UpdatedAt + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return json.Marshal(toSerialize) +} + +// UnmarshalJSON implements the Unmarshaler interface. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +func (o *LegacyWafUpdateStatus) UnmarshalJSON(bytes []byte) (err error) { + varLegacyWafUpdateStatus := _LegacyWafUpdateStatus{} + + if err = json.Unmarshal(bytes, &varLegacyWafUpdateStatus); err == nil { + *o = LegacyWafUpdateStatus(varLegacyWafUpdateStatus) + } + + additionalProperties := make(map[string]any) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "completed_at") + delete(additionalProperties, "created_at") + delete(additionalProperties, "data") + delete(additionalProperties, "message") + delete(additionalProperties, "status") + delete(additionalProperties, "updated_at") + o.AdditionalProperties = additionalProperties + } + + return err +} + +// NullableLegacyWafUpdateStatus is a helper abstraction for handling nullable legacywafupdatestatus types. +type NullableLegacyWafUpdateStatus struct { + value *LegacyWafUpdateStatus + isSet bool +} + +// Get returns the value. +func (v NullableLegacyWafUpdateStatus) Get() *LegacyWafUpdateStatus { + return v.value +} + +// Set modifies the value. +func (v *NullableLegacyWafUpdateStatus) Set(val *LegacyWafUpdateStatus) { + v.value = val + v.isSet = true +} + +// IsSet indicates if the value was set. +func (v NullableLegacyWafUpdateStatus) IsSet() bool { + return v.isSet +} + +// Unset removes the value. +func (v *NullableLegacyWafUpdateStatus) Unset() { + v.value = nil + v.isSet = false +} + +// NewNullableLegacyWafUpdateStatus returns a pointer to a new instance of NullableLegacyWafUpdateStatus. +func NewNullableLegacyWafUpdateStatus(val *LegacyWafUpdateStatus) *NullableLegacyWafUpdateStatus { + return &NullableLegacyWafUpdateStatus{value: val, isSet: true} +} + +// MarshalJSON implements the json.Marshaler interface. +// Marshaler is the interface implemented by types that can marshal themselves into valid JSON. +func (v NullableLegacyWafUpdateStatus) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +// UnmarshalJSON implements the Unmarshaler interface. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +func (v *NullableLegacyWafUpdateStatus) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/fastly/model_origin_inspector.go b/fastly/model_origin_inspector.go new file mode 100644 index 00000000..22a1dd24 --- /dev/null +++ b/fastly/model_origin_inspector.go @@ -0,0 +1,231 @@ +// Package fastly is an API client library for interacting with most facets of the Fastly API. +package fastly + +/* +Fastly API + +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://developer.fastly.com/reference/api/) + +API version: 1.0.0 +Contact: oss@fastly.com +*/ + +// This code is auto-generated; DO NOT EDIT. + + +import ( + "encoding/json" +) + +// OriginInspector struct for OriginInspector +type OriginInspector struct { + Timestamp *OriginInspectorSubsequentRequestTimestamp `json:"Timestamp,omitempty"` + // Offset of entry timestamps from the current time due to processing time. + AggregateDelay *int32 `json:"AggregateDelay,omitempty"` + // A list of report [entries](#entry-data-model), each representing one second of time. + Data []OriginInspectorRealtimeEntry `json:"Data,omitempty"` + AdditionalProperties map[string]any +} + +type _OriginInspector OriginInspector + +// NewOriginInspector instantiates a new OriginInspector object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewOriginInspector() *OriginInspector { + this := OriginInspector{} + return &this +} + +// NewOriginInspectorWithDefaults instantiates a new OriginInspector object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewOriginInspectorWithDefaults() *OriginInspector { + this := OriginInspector{} + return &this +} + +// GetTimestamp returns the Timestamp field value if set, zero value otherwise. +func (o *OriginInspector) GetTimestamp() OriginInspectorSubsequentRequestTimestamp { + if o == nil || o.Timestamp == nil { + var ret OriginInspectorSubsequentRequestTimestamp + return ret + } + return *o.Timestamp +} + +// GetTimestampOk returns a tuple with the Timestamp field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspector) GetTimestampOk() (*OriginInspectorSubsequentRequestTimestamp, bool) { + if o == nil || o.Timestamp == nil { + return nil, false + } + return o.Timestamp, true +} + +// HasTimestamp returns a boolean if a field has been set. +func (o *OriginInspector) HasTimestamp() bool { + if o != nil && o.Timestamp != nil { + return true + } + + return false +} + +// SetTimestamp gets a reference to the given OriginInspectorSubsequentRequestTimestamp and assigns it to the Timestamp field. +func (o *OriginInspector) SetTimestamp(v OriginInspectorSubsequentRequestTimestamp) { + o.Timestamp = &v +} + +// GetAggregateDelay returns the AggregateDelay field value if set, zero value otherwise. +func (o *OriginInspector) GetAggregateDelay() int32 { + if o == nil || o.AggregateDelay == nil { + var ret int32 + return ret + } + return *o.AggregateDelay +} + +// GetAggregateDelayOk returns a tuple with the AggregateDelay field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspector) GetAggregateDelayOk() (*int32, bool) { + if o == nil || o.AggregateDelay == nil { + return nil, false + } + return o.AggregateDelay, true +} + +// HasAggregateDelay returns a boolean if a field has been set. +func (o *OriginInspector) HasAggregateDelay() bool { + if o != nil && o.AggregateDelay != nil { + return true + } + + return false +} + +// SetAggregateDelay gets a reference to the given int32 and assigns it to the AggregateDelay field. +func (o *OriginInspector) SetAggregateDelay(v int32) { + o.AggregateDelay = &v +} + +// GetData returns the Data field value if set, zero value otherwise. +func (o *OriginInspector) GetData() []OriginInspectorRealtimeEntry { + if o == nil || o.Data == nil { + var ret []OriginInspectorRealtimeEntry + return ret + } + return o.Data +} + +// GetDataOk returns a tuple with the Data field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspector) GetDataOk() ([]OriginInspectorRealtimeEntry, bool) { + if o == nil || o.Data == nil { + return nil, false + } + return o.Data, true +} + +// HasData returns a boolean if a field has been set. +func (o *OriginInspector) HasData() bool { + if o != nil && o.Data != nil { + return true + } + + return false +} + +// SetData gets a reference to the given []OriginInspectorRealtimeEntry and assigns it to the Data field. +func (o *OriginInspector) SetData(v []OriginInspectorRealtimeEntry) { + o.Data = v +} + +// MarshalJSON implements the json.Marshaler interface. +// Marshaler is the interface implemented by types that can marshal themselves into valid JSON. +func (o OriginInspector) MarshalJSON() ([]byte, error) { + toSerialize := map[string]any{} + if o.Timestamp != nil { + toSerialize["Timestamp"] = o.Timestamp + } + if o.AggregateDelay != nil { + toSerialize["AggregateDelay"] = o.AggregateDelay + } + if o.Data != nil { + toSerialize["Data"] = o.Data + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return json.Marshal(toSerialize) +} + +// UnmarshalJSON implements the Unmarshaler interface. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +func (o *OriginInspector) UnmarshalJSON(bytes []byte) (err error) { + varOriginInspector := _OriginInspector{} + + if err = json.Unmarshal(bytes, &varOriginInspector); err == nil { + *o = OriginInspector(varOriginInspector) + } + + additionalProperties := make(map[string]any) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "Timestamp") + delete(additionalProperties, "AggregateDelay") + delete(additionalProperties, "Data") + o.AdditionalProperties = additionalProperties + } + + return err +} + +// NullableOriginInspector is a helper abstraction for handling nullable origininspector types. +type NullableOriginInspector struct { + value *OriginInspector + isSet bool +} + +// Get returns the value. +func (v NullableOriginInspector) Get() *OriginInspector { + return v.value +} + +// Set modifies the value. +func (v *NullableOriginInspector) Set(val *OriginInspector) { + v.value = val + v.isSet = true +} + +// IsSet indicates if the value was set. +func (v NullableOriginInspector) IsSet() bool { + return v.isSet +} + +// Unset removes the value. +func (v *NullableOriginInspector) Unset() { + v.value = nil + v.isSet = false +} + +// NewNullableOriginInspector returns a pointer to a new instance of NullableOriginInspector. +func NewNullableOriginInspector(val *OriginInspector) *NullableOriginInspector { + return &NullableOriginInspector{value: val, isSet: true} +} + +// MarshalJSON implements the json.Marshaler interface. +// Marshaler is the interface implemented by types that can marshal themselves into valid JSON. +func (v NullableOriginInspector) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +// UnmarshalJSON implements the Unmarshaler interface. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +func (v *NullableOriginInspector) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/fastly/model_origin_inspector_dimensions.go b/fastly/model_origin_inspector_dimensions.go new file mode 100644 index 00000000..fb889e49 --- /dev/null +++ b/fastly/model_origin_inspector_dimensions.go @@ -0,0 +1,232 @@ +// Package fastly is an API client library for interacting with most facets of the Fastly API. +package fastly + +/* +Fastly API + +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://developer.fastly.com/reference/api/) + +API version: 1.0.0 +Contact: oss@fastly.com +*/ + +// This code is auto-generated; DO NOT EDIT. + + +import ( + "encoding/json" +) + +// OriginInspectorDimensions The unique combination of dimensions associated with this timeseries. +type OriginInspectorDimensions struct { + // The geographic region from which the edge responses in this data entry were delivered. If unspecified, results are aggregated across regions. + Region *string `json:"region,omitempty"` + // The POP from which the edge responses in this data entry were delivered. If unspecified, results are aggregated across POPs. + Datacenter *string `json:"datacenter,omitempty"` + // The origin host from which the edge responses in this data entry were delivered. If unspecified, results are aggregated across origin hosts. + Host *string `json:"host,omitempty"` + AdditionalProperties map[string]any +} + +type _OriginInspectorDimensions OriginInspectorDimensions + +// NewOriginInspectorDimensions instantiates a new OriginInspectorDimensions object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewOriginInspectorDimensions() *OriginInspectorDimensions { + this := OriginInspectorDimensions{} + return &this +} + +// NewOriginInspectorDimensionsWithDefaults instantiates a new OriginInspectorDimensions object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewOriginInspectorDimensionsWithDefaults() *OriginInspectorDimensions { + this := OriginInspectorDimensions{} + return &this +} + +// GetRegion returns the Region field value if set, zero value otherwise. +func (o *OriginInspectorDimensions) GetRegion() string { + if o == nil || o.Region == nil { + var ret string + return ret + } + return *o.Region +} + +// GetRegionOk returns a tuple with the Region field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorDimensions) GetRegionOk() (*string, bool) { + if o == nil || o.Region == nil { + return nil, false + } + return o.Region, true +} + +// HasRegion returns a boolean if a field has been set. +func (o *OriginInspectorDimensions) HasRegion() bool { + if o != nil && o.Region != nil { + return true + } + + return false +} + +// SetRegion gets a reference to the given string and assigns it to the Region field. +func (o *OriginInspectorDimensions) SetRegion(v string) { + o.Region = &v +} + +// GetDatacenter returns the Datacenter field value if set, zero value otherwise. +func (o *OriginInspectorDimensions) GetDatacenter() string { + if o == nil || o.Datacenter == nil { + var ret string + return ret + } + return *o.Datacenter +} + +// GetDatacenterOk returns a tuple with the Datacenter field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorDimensions) GetDatacenterOk() (*string, bool) { + if o == nil || o.Datacenter == nil { + return nil, false + } + return o.Datacenter, true +} + +// HasDatacenter returns a boolean if a field has been set. +func (o *OriginInspectorDimensions) HasDatacenter() bool { + if o != nil && o.Datacenter != nil { + return true + } + + return false +} + +// SetDatacenter gets a reference to the given string and assigns it to the Datacenter field. +func (o *OriginInspectorDimensions) SetDatacenter(v string) { + o.Datacenter = &v +} + +// GetHost returns the Host field value if set, zero value otherwise. +func (o *OriginInspectorDimensions) GetHost() string { + if o == nil || o.Host == nil { + var ret string + return ret + } + return *o.Host +} + +// GetHostOk returns a tuple with the Host field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorDimensions) GetHostOk() (*string, bool) { + if o == nil || o.Host == nil { + return nil, false + } + return o.Host, true +} + +// HasHost returns a boolean if a field has been set. +func (o *OriginInspectorDimensions) HasHost() bool { + if o != nil && o.Host != nil { + return true + } + + return false +} + +// SetHost gets a reference to the given string and assigns it to the Host field. +func (o *OriginInspectorDimensions) SetHost(v string) { + o.Host = &v +} + +// MarshalJSON implements the json.Marshaler interface. +// Marshaler is the interface implemented by types that can marshal themselves into valid JSON. +func (o OriginInspectorDimensions) MarshalJSON() ([]byte, error) { + toSerialize := map[string]any{} + if o.Region != nil { + toSerialize["region"] = o.Region + } + if o.Datacenter != nil { + toSerialize["datacenter"] = o.Datacenter + } + if o.Host != nil { + toSerialize["host"] = o.Host + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return json.Marshal(toSerialize) +} + +// UnmarshalJSON implements the Unmarshaler interface. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +func (o *OriginInspectorDimensions) UnmarshalJSON(bytes []byte) (err error) { + varOriginInspectorDimensions := _OriginInspectorDimensions{} + + if err = json.Unmarshal(bytes, &varOriginInspectorDimensions); err == nil { + *o = OriginInspectorDimensions(varOriginInspectorDimensions) + } + + additionalProperties := make(map[string]any) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "region") + delete(additionalProperties, "datacenter") + delete(additionalProperties, "host") + o.AdditionalProperties = additionalProperties + } + + return err +} + +// NullableOriginInspectorDimensions is a helper abstraction for handling nullable origininspectordimensions types. +type NullableOriginInspectorDimensions struct { + value *OriginInspectorDimensions + isSet bool +} + +// Get returns the value. +func (v NullableOriginInspectorDimensions) Get() *OriginInspectorDimensions { + return v.value +} + +// Set modifies the value. +func (v *NullableOriginInspectorDimensions) Set(val *OriginInspectorDimensions) { + v.value = val + v.isSet = true +} + +// IsSet indicates if the value was set. +func (v NullableOriginInspectorDimensions) IsSet() bool { + return v.isSet +} + +// Unset removes the value. +func (v *NullableOriginInspectorDimensions) Unset() { + v.value = nil + v.isSet = false +} + +// NewNullableOriginInspectorDimensions returns a pointer to a new instance of NullableOriginInspectorDimensions. +func NewNullableOriginInspectorDimensions(val *OriginInspectorDimensions) *NullableOriginInspectorDimensions { + return &NullableOriginInspectorDimensions{value: val, isSet: true} +} + +// MarshalJSON implements the json.Marshaler interface. +// Marshaler is the interface implemented by types that can marshal themselves into valid JSON. +func (v NullableOriginInspectorDimensions) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +// UnmarshalJSON implements the Unmarshaler interface. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +func (v *NullableOriginInspectorDimensions) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/fastly/model_origin_inspector_entry.go b/fastly/model_origin_inspector_entry.go new file mode 100644 index 00000000..efbbfdf3 --- /dev/null +++ b/fastly/model_origin_inspector_entry.go @@ -0,0 +1,193 @@ +// Package fastly is an API client library for interacting with most facets of the Fastly API. +package fastly + +/* +Fastly API + +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://developer.fastly.com/reference/api/) + +API version: 1.0.0 +Contact: oss@fastly.com +*/ + +// This code is auto-generated; DO NOT EDIT. + + +import ( + "encoding/json" +) + +// OriginInspectorEntry struct for OriginInspectorEntry +type OriginInspectorEntry struct { + Dimensions *OriginInspectorDimensions `json:"dimensions,omitempty"` + // An array of values representing the metric values at each point in time. Note that this dataset is sparse: only the keys with non-zero values will be included in the record. + Values []OriginInspectorValues `json:"values,omitempty"` + AdditionalProperties map[string]any +} + +type _OriginInspectorEntry OriginInspectorEntry + +// NewOriginInspectorEntry instantiates a new OriginInspectorEntry object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewOriginInspectorEntry() *OriginInspectorEntry { + this := OriginInspectorEntry{} + return &this +} + +// NewOriginInspectorEntryWithDefaults instantiates a new OriginInspectorEntry object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewOriginInspectorEntryWithDefaults() *OriginInspectorEntry { + this := OriginInspectorEntry{} + return &this +} + +// GetDimensions returns the Dimensions field value if set, zero value otherwise. +func (o *OriginInspectorEntry) GetDimensions() OriginInspectorDimensions { + if o == nil || o.Dimensions == nil { + var ret OriginInspectorDimensions + return ret + } + return *o.Dimensions +} + +// GetDimensionsOk returns a tuple with the Dimensions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorEntry) GetDimensionsOk() (*OriginInspectorDimensions, bool) { + if o == nil || o.Dimensions == nil { + return nil, false + } + return o.Dimensions, true +} + +// HasDimensions returns a boolean if a field has been set. +func (o *OriginInspectorEntry) HasDimensions() bool { + if o != nil && o.Dimensions != nil { + return true + } + + return false +} + +// SetDimensions gets a reference to the given OriginInspectorDimensions and assigns it to the Dimensions field. +func (o *OriginInspectorEntry) SetDimensions(v OriginInspectorDimensions) { + o.Dimensions = &v +} + +// GetValues returns the Values field value if set, zero value otherwise. +func (o *OriginInspectorEntry) GetValues() []OriginInspectorValues { + if o == nil || o.Values == nil { + var ret []OriginInspectorValues + return ret + } + return o.Values +} + +// GetValuesOk returns a tuple with the Values field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorEntry) GetValuesOk() ([]OriginInspectorValues, bool) { + if o == nil || o.Values == nil { + return nil, false + } + return o.Values, true +} + +// HasValues returns a boolean if a field has been set. +func (o *OriginInspectorEntry) HasValues() bool { + if o != nil && o.Values != nil { + return true + } + + return false +} + +// SetValues gets a reference to the given []OriginInspectorValues and assigns it to the Values field. +func (o *OriginInspectorEntry) SetValues(v []OriginInspectorValues) { + o.Values = v +} + +// MarshalJSON implements the json.Marshaler interface. +// Marshaler is the interface implemented by types that can marshal themselves into valid JSON. +func (o OriginInspectorEntry) MarshalJSON() ([]byte, error) { + toSerialize := map[string]any{} + if o.Dimensions != nil { + toSerialize["dimensions"] = o.Dimensions + } + if o.Values != nil { + toSerialize["values"] = o.Values + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return json.Marshal(toSerialize) +} + +// UnmarshalJSON implements the Unmarshaler interface. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +func (o *OriginInspectorEntry) UnmarshalJSON(bytes []byte) (err error) { + varOriginInspectorEntry := _OriginInspectorEntry{} + + if err = json.Unmarshal(bytes, &varOriginInspectorEntry); err == nil { + *o = OriginInspectorEntry(varOriginInspectorEntry) + } + + additionalProperties := make(map[string]any) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "dimensions") + delete(additionalProperties, "values") + o.AdditionalProperties = additionalProperties + } + + return err +} + +// NullableOriginInspectorEntry is a helper abstraction for handling nullable origininspectorentry types. +type NullableOriginInspectorEntry struct { + value *OriginInspectorEntry + isSet bool +} + +// Get returns the value. +func (v NullableOriginInspectorEntry) Get() *OriginInspectorEntry { + return v.value +} + +// Set modifies the value. +func (v *NullableOriginInspectorEntry) Set(val *OriginInspectorEntry) { + v.value = val + v.isSet = true +} + +// IsSet indicates if the value was set. +func (v NullableOriginInspectorEntry) IsSet() bool { + return v.isSet +} + +// Unset removes the value. +func (v *NullableOriginInspectorEntry) Unset() { + v.value = nil + v.isSet = false +} + +// NewNullableOriginInspectorEntry returns a pointer to a new instance of NullableOriginInspectorEntry. +func NewNullableOriginInspectorEntry(val *OriginInspectorEntry) *NullableOriginInspectorEntry { + return &NullableOriginInspectorEntry{value: val, isSet: true} +} + +// MarshalJSON implements the json.Marshaler interface. +// Marshaler is the interface implemented by types that can marshal themselves into valid JSON. +func (v NullableOriginInspectorEntry) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +// UnmarshalJSON implements the Unmarshaler interface. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +func (v *NullableOriginInspectorEntry) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/fastly/model_origin_inspector_historical.go b/fastly/model_origin_inspector_historical.go new file mode 100644 index 00000000..de0d7e78 --- /dev/null +++ b/fastly/model_origin_inspector_historical.go @@ -0,0 +1,279 @@ +// Package fastly is an API client library for interacting with most facets of the Fastly API. +package fastly + +/* +Fastly API + +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://developer.fastly.com/reference/api/) + +API version: 1.0.0 +Contact: oss@fastly.com +*/ + +// This code is auto-generated; DO NOT EDIT. + + +import ( + "encoding/json" +) + +// OriginInspectorHistorical struct for OriginInspectorHistorical +type OriginInspectorHistorical struct { + // Whether or not we were able to successfully execute the query. + Status *string `json:"status,omitempty"` + Meta *OriginInspectorHistoricalMeta `json:"meta,omitempty"` + // If the query was not successful, this will provide a string that explains why. + Msg NullableString `json:"msg,omitempty"` + // A list of [entries](#entry-data-model), each representing one unique combination of dimensions, such as origin host, region or POP. + Data []OriginInspectorHistoricalData `json:"data,omitempty"` + AdditionalProperties map[string]any +} + +type _OriginInspectorHistorical OriginInspectorHistorical + +// NewOriginInspectorHistorical instantiates a new OriginInspectorHistorical object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewOriginInspectorHistorical() *OriginInspectorHistorical { + this := OriginInspectorHistorical{} + return &this +} + +// NewOriginInspectorHistoricalWithDefaults instantiates a new OriginInspectorHistorical object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewOriginInspectorHistoricalWithDefaults() *OriginInspectorHistorical { + this := OriginInspectorHistorical{} + return &this +} + +// GetStatus returns the Status field value if set, zero value otherwise. +func (o *OriginInspectorHistorical) GetStatus() string { + if o == nil || o.Status == nil { + var ret string + return ret + } + return *o.Status +} + +// GetStatusOk returns a tuple with the Status field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorHistorical) GetStatusOk() (*string, bool) { + if o == nil || o.Status == nil { + return nil, false + } + return o.Status, true +} + +// HasStatus returns a boolean if a field has been set. +func (o *OriginInspectorHistorical) HasStatus() bool { + if o != nil && o.Status != nil { + return true + } + + return false +} + +// SetStatus gets a reference to the given string and assigns it to the Status field. +func (o *OriginInspectorHistorical) SetStatus(v string) { + o.Status = &v +} + +// GetMeta returns the Meta field value if set, zero value otherwise. +func (o *OriginInspectorHistorical) GetMeta() OriginInspectorHistoricalMeta { + if o == nil || o.Meta == nil { + var ret OriginInspectorHistoricalMeta + return ret + } + return *o.Meta +} + +// GetMetaOk returns a tuple with the Meta field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorHistorical) GetMetaOk() (*OriginInspectorHistoricalMeta, bool) { + if o == nil || o.Meta == nil { + return nil, false + } + return o.Meta, true +} + +// HasMeta returns a boolean if a field has been set. +func (o *OriginInspectorHistorical) HasMeta() bool { + if o != nil && o.Meta != nil { + return true + } + + return false +} + +// SetMeta gets a reference to the given OriginInspectorHistoricalMeta and assigns it to the Meta field. +func (o *OriginInspectorHistorical) SetMeta(v OriginInspectorHistoricalMeta) { + o.Meta = &v +} + +// GetMsg returns the Msg field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *OriginInspectorHistorical) GetMsg() string { + if o == nil || o.Msg.Get() == nil { + var ret string + return ret + } + return *o.Msg.Get() +} + +// GetMsgOk returns a tuple with the Msg field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *OriginInspectorHistorical) GetMsgOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Msg.Get(), o.Msg.IsSet() +} + +// HasMsg returns a boolean if a field has been set. +func (o *OriginInspectorHistorical) HasMsg() bool { + if o != nil && o.Msg.IsSet() { + return true + } + + return false +} + +// SetMsg gets a reference to the given NullableString and assigns it to the Msg field. +func (o *OriginInspectorHistorical) SetMsg(v string) { + o.Msg.Set(&v) +} +// SetMsgNil sets the value for Msg to be an explicit nil +func (o *OriginInspectorHistorical) SetMsgNil() { + o.Msg.Set(nil) +} + +// UnsetMsg ensures that no value is present for Msg, not even an explicit nil +func (o *OriginInspectorHistorical) UnsetMsg() { + o.Msg.Unset() +} + +// GetData returns the Data field value if set, zero value otherwise. +func (o *OriginInspectorHistorical) GetData() []OriginInspectorHistoricalData { + if o == nil || o.Data == nil { + var ret []OriginInspectorHistoricalData + return ret + } + return o.Data +} + +// GetDataOk returns a tuple with the Data field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorHistorical) GetDataOk() ([]OriginInspectorHistoricalData, bool) { + if o == nil || o.Data == nil { + return nil, false + } + return o.Data, true +} + +// HasData returns a boolean if a field has been set. +func (o *OriginInspectorHistorical) HasData() bool { + if o != nil && o.Data != nil { + return true + } + + return false +} + +// SetData gets a reference to the given []OriginInspectorHistoricalData and assigns it to the Data field. +func (o *OriginInspectorHistorical) SetData(v []OriginInspectorHistoricalData) { + o.Data = v +} + +// MarshalJSON implements the json.Marshaler interface. +// Marshaler is the interface implemented by types that can marshal themselves into valid JSON. +func (o OriginInspectorHistorical) MarshalJSON() ([]byte, error) { + toSerialize := map[string]any{} + if o.Status != nil { + toSerialize["status"] = o.Status + } + if o.Meta != nil { + toSerialize["meta"] = o.Meta + } + if o.Msg.IsSet() { + toSerialize["msg"] = o.Msg.Get() + } + if o.Data != nil { + toSerialize["data"] = o.Data + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return json.Marshal(toSerialize) +} + +// UnmarshalJSON implements the Unmarshaler interface. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +func (o *OriginInspectorHistorical) UnmarshalJSON(bytes []byte) (err error) { + varOriginInspectorHistorical := _OriginInspectorHistorical{} + + if err = json.Unmarshal(bytes, &varOriginInspectorHistorical); err == nil { + *o = OriginInspectorHistorical(varOriginInspectorHistorical) + } + + additionalProperties := make(map[string]any) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "status") + delete(additionalProperties, "meta") + delete(additionalProperties, "msg") + delete(additionalProperties, "data") + o.AdditionalProperties = additionalProperties + } + + return err +} + +// NullableOriginInspectorHistorical is a helper abstraction for handling nullable origininspectorhistorical types. +type NullableOriginInspectorHistorical struct { + value *OriginInspectorHistorical + isSet bool +} + +// Get returns the value. +func (v NullableOriginInspectorHistorical) Get() *OriginInspectorHistorical { + return v.value +} + +// Set modifies the value. +func (v *NullableOriginInspectorHistorical) Set(val *OriginInspectorHistorical) { + v.value = val + v.isSet = true +} + +// IsSet indicates if the value was set. +func (v NullableOriginInspectorHistorical) IsSet() bool { + return v.isSet +} + +// Unset removes the value. +func (v *NullableOriginInspectorHistorical) Unset() { + v.value = nil + v.isSet = false +} + +// NewNullableOriginInspectorHistorical returns a pointer to a new instance of NullableOriginInspectorHistorical. +func NewNullableOriginInspectorHistorical(val *OriginInspectorHistorical) *NullableOriginInspectorHistorical { + return &NullableOriginInspectorHistorical{value: val, isSet: true} +} + +// MarshalJSON implements the json.Marshaler interface. +// Marshaler is the interface implemented by types that can marshal themselves into valid JSON. +func (v NullableOriginInspectorHistorical) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +// UnmarshalJSON implements the Unmarshaler interface. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +func (v *NullableOriginInspectorHistorical) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/fastly/model_origin_inspector_historical_data.go b/fastly/model_origin_inspector_historical_data.go new file mode 100644 index 00000000..1442fd54 --- /dev/null +++ b/fastly/model_origin_inspector_historical_data.go @@ -0,0 +1,192 @@ +// Package fastly is an API client library for interacting with most facets of the Fastly API. +package fastly + +/* +Fastly API + +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://developer.fastly.com/reference/api/) + +API version: 1.0.0 +Contact: oss@fastly.com +*/ + +// This code is auto-generated; DO NOT EDIT. + + +import ( + "encoding/json" +) + +// OriginInspectorHistoricalData struct for OriginInspectorHistoricalData +type OriginInspectorHistoricalData struct { + Dimensions *OriginInspectorDimensions `json:"dimensions,omitempty"` + Values *Values `json:"values,omitempty"` + AdditionalProperties map[string]any +} + +type _OriginInspectorHistoricalData OriginInspectorHistoricalData + +// NewOriginInspectorHistoricalData instantiates a new OriginInspectorHistoricalData object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewOriginInspectorHistoricalData() *OriginInspectorHistoricalData { + this := OriginInspectorHistoricalData{} + return &this +} + +// NewOriginInspectorHistoricalDataWithDefaults instantiates a new OriginInspectorHistoricalData object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewOriginInspectorHistoricalDataWithDefaults() *OriginInspectorHistoricalData { + this := OriginInspectorHistoricalData{} + return &this +} + +// GetDimensions returns the Dimensions field value if set, zero value otherwise. +func (o *OriginInspectorHistoricalData) GetDimensions() OriginInspectorDimensions { + if o == nil || o.Dimensions == nil { + var ret OriginInspectorDimensions + return ret + } + return *o.Dimensions +} + +// GetDimensionsOk returns a tuple with the Dimensions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorHistoricalData) GetDimensionsOk() (*OriginInspectorDimensions, bool) { + if o == nil || o.Dimensions == nil { + return nil, false + } + return o.Dimensions, true +} + +// HasDimensions returns a boolean if a field has been set. +func (o *OriginInspectorHistoricalData) HasDimensions() bool { + if o != nil && o.Dimensions != nil { + return true + } + + return false +} + +// SetDimensions gets a reference to the given OriginInspectorDimensions and assigns it to the Dimensions field. +func (o *OriginInspectorHistoricalData) SetDimensions(v OriginInspectorDimensions) { + o.Dimensions = &v +} + +// GetValues returns the Values field value if set, zero value otherwise. +func (o *OriginInspectorHistoricalData) GetValues() Values { + if o == nil || o.Values == nil { + var ret Values + return ret + } + return *o.Values +} + +// GetValuesOk returns a tuple with the Values field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorHistoricalData) GetValuesOk() (*Values, bool) { + if o == nil || o.Values == nil { + return nil, false + } + return o.Values, true +} + +// HasValues returns a boolean if a field has been set. +func (o *OriginInspectorHistoricalData) HasValues() bool { + if o != nil && o.Values != nil { + return true + } + + return false +} + +// SetValues gets a reference to the given Values and assigns it to the Values field. +func (o *OriginInspectorHistoricalData) SetValues(v Values) { + o.Values = &v +} + +// MarshalJSON implements the json.Marshaler interface. +// Marshaler is the interface implemented by types that can marshal themselves into valid JSON. +func (o OriginInspectorHistoricalData) MarshalJSON() ([]byte, error) { + toSerialize := map[string]any{} + if o.Dimensions != nil { + toSerialize["dimensions"] = o.Dimensions + } + if o.Values != nil { + toSerialize["values"] = o.Values + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return json.Marshal(toSerialize) +} + +// UnmarshalJSON implements the Unmarshaler interface. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +func (o *OriginInspectorHistoricalData) UnmarshalJSON(bytes []byte) (err error) { + varOriginInspectorHistoricalData := _OriginInspectorHistoricalData{} + + if err = json.Unmarshal(bytes, &varOriginInspectorHistoricalData); err == nil { + *o = OriginInspectorHistoricalData(varOriginInspectorHistoricalData) + } + + additionalProperties := make(map[string]any) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "dimensions") + delete(additionalProperties, "values") + o.AdditionalProperties = additionalProperties + } + + return err +} + +// NullableOriginInspectorHistoricalData is a helper abstraction for handling nullable origininspectorhistoricaldata types. +type NullableOriginInspectorHistoricalData struct { + value *OriginInspectorHistoricalData + isSet bool +} + +// Get returns the value. +func (v NullableOriginInspectorHistoricalData) Get() *OriginInspectorHistoricalData { + return v.value +} + +// Set modifies the value. +func (v *NullableOriginInspectorHistoricalData) Set(val *OriginInspectorHistoricalData) { + v.value = val + v.isSet = true +} + +// IsSet indicates if the value was set. +func (v NullableOriginInspectorHistoricalData) IsSet() bool { + return v.isSet +} + +// Unset removes the value. +func (v *NullableOriginInspectorHistoricalData) Unset() { + v.value = nil + v.isSet = false +} + +// NewNullableOriginInspectorHistoricalData returns a pointer to a new instance of NullableOriginInspectorHistoricalData. +func NewNullableOriginInspectorHistoricalData(val *OriginInspectorHistoricalData) *NullableOriginInspectorHistoricalData { + return &NullableOriginInspectorHistoricalData{value: val, isSet: true} +} + +// MarshalJSON implements the json.Marshaler interface. +// Marshaler is the interface implemented by types that can marshal themselves into valid JSON. +func (v NullableOriginInspectorHistoricalData) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +// UnmarshalJSON implements the Unmarshaler interface. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +func (v *NullableOriginInspectorHistoricalData) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/fastly/model_origin_inspector_historical_meta.go b/fastly/model_origin_inspector_historical_meta.go new file mode 100644 index 00000000..fc08ca16 --- /dev/null +++ b/fastly/model_origin_inspector_historical_meta.go @@ -0,0 +1,459 @@ +// Package fastly is an API client library for interacting with most facets of the Fastly API. +package fastly + +/* +Fastly API + +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://developer.fastly.com/reference/api/) + +API version: 1.0.0 +Contact: oss@fastly.com +*/ + +// This code is auto-generated; DO NOT EDIT. + + +import ( + "encoding/json" +) + +// OriginInspectorHistoricalMeta Meta information about the scope of the query in a human readable format. +type OriginInspectorHistoricalMeta struct { + // Start time that was used to perform the query as an ISO-8601-formatted date and time. + Start *string `json:"start,omitempty"` + // End time that was used to perform the query as an ISO-8601-formatted date and time. + End *string `json:"end,omitempty"` + // Downsample that was used to perform the query. One of `minute`, `hour` or `day`. + Downsample *string `json:"downsample,omitempty"` + // A comma-separated list of the metrics that were requested. + Metrics *string `json:"metrics,omitempty"` + // The maximum number of results shown per page. + Limit *float32 `json:"limit,omitempty"` + // A string that can be used to request the next page of results, if any. + NextCursor *string `json:"next_cursor,omitempty"` + // A comma-separated list of keys the results are sorted by. + Sort *string `json:"sort,omitempty"` + // A comma-separated list of dimensions being summed over in the query. + GroupBy *string `json:"group_by,omitempty"` + Filters *OriginInspectorHistoricalMetaFilters `json:"filters,omitempty"` + AdditionalProperties map[string]any +} + +type _OriginInspectorHistoricalMeta OriginInspectorHistoricalMeta + +// NewOriginInspectorHistoricalMeta instantiates a new OriginInspectorHistoricalMeta object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewOriginInspectorHistoricalMeta() *OriginInspectorHistoricalMeta { + this := OriginInspectorHistoricalMeta{} + return &this +} + +// NewOriginInspectorHistoricalMetaWithDefaults instantiates a new OriginInspectorHistoricalMeta object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewOriginInspectorHistoricalMetaWithDefaults() *OriginInspectorHistoricalMeta { + this := OriginInspectorHistoricalMeta{} + return &this +} + +// GetStart returns the Start field value if set, zero value otherwise. +func (o *OriginInspectorHistoricalMeta) GetStart() string { + if o == nil || o.Start == nil { + var ret string + return ret + } + return *o.Start +} + +// GetStartOk returns a tuple with the Start field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorHistoricalMeta) GetStartOk() (*string, bool) { + if o == nil || o.Start == nil { + return nil, false + } + return o.Start, true +} + +// HasStart returns a boolean if a field has been set. +func (o *OriginInspectorHistoricalMeta) HasStart() bool { + if o != nil && o.Start != nil { + return true + } + + return false +} + +// SetStart gets a reference to the given string and assigns it to the Start field. +func (o *OriginInspectorHistoricalMeta) SetStart(v string) { + o.Start = &v +} + +// GetEnd returns the End field value if set, zero value otherwise. +func (o *OriginInspectorHistoricalMeta) GetEnd() string { + if o == nil || o.End == nil { + var ret string + return ret + } + return *o.End +} + +// GetEndOk returns a tuple with the End field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorHistoricalMeta) GetEndOk() (*string, bool) { + if o == nil || o.End == nil { + return nil, false + } + return o.End, true +} + +// HasEnd returns a boolean if a field has been set. +func (o *OriginInspectorHistoricalMeta) HasEnd() bool { + if o != nil && o.End != nil { + return true + } + + return false +} + +// SetEnd gets a reference to the given string and assigns it to the End field. +func (o *OriginInspectorHistoricalMeta) SetEnd(v string) { + o.End = &v +} + +// GetDownsample returns the Downsample field value if set, zero value otherwise. +func (o *OriginInspectorHistoricalMeta) GetDownsample() string { + if o == nil || o.Downsample == nil { + var ret string + return ret + } + return *o.Downsample +} + +// GetDownsampleOk returns a tuple with the Downsample field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorHistoricalMeta) GetDownsampleOk() (*string, bool) { + if o == nil || o.Downsample == nil { + return nil, false + } + return o.Downsample, true +} + +// HasDownsample returns a boolean if a field has been set. +func (o *OriginInspectorHistoricalMeta) HasDownsample() bool { + if o != nil && o.Downsample != nil { + return true + } + + return false +} + +// SetDownsample gets a reference to the given string and assigns it to the Downsample field. +func (o *OriginInspectorHistoricalMeta) SetDownsample(v string) { + o.Downsample = &v +} + +// GetMetrics returns the Metrics field value if set, zero value otherwise. +func (o *OriginInspectorHistoricalMeta) GetMetrics() string { + if o == nil || o.Metrics == nil { + var ret string + return ret + } + return *o.Metrics +} + +// GetMetricsOk returns a tuple with the Metrics field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorHistoricalMeta) GetMetricsOk() (*string, bool) { + if o == nil || o.Metrics == nil { + return nil, false + } + return o.Metrics, true +} + +// HasMetrics returns a boolean if a field has been set. +func (o *OriginInspectorHistoricalMeta) HasMetrics() bool { + if o != nil && o.Metrics != nil { + return true + } + + return false +} + +// SetMetrics gets a reference to the given string and assigns it to the Metrics field. +func (o *OriginInspectorHistoricalMeta) SetMetrics(v string) { + o.Metrics = &v +} + +// GetLimit returns the Limit field value if set, zero value otherwise. +func (o *OriginInspectorHistoricalMeta) GetLimit() float32 { + if o == nil || o.Limit == nil { + var ret float32 + return ret + } + return *o.Limit +} + +// GetLimitOk returns a tuple with the Limit field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorHistoricalMeta) GetLimitOk() (*float32, bool) { + if o == nil || o.Limit == nil { + return nil, false + } + return o.Limit, true +} + +// HasLimit returns a boolean if a field has been set. +func (o *OriginInspectorHistoricalMeta) HasLimit() bool { + if o != nil && o.Limit != nil { + return true + } + + return false +} + +// SetLimit gets a reference to the given float32 and assigns it to the Limit field. +func (o *OriginInspectorHistoricalMeta) SetLimit(v float32) { + o.Limit = &v +} + +// GetNextCursor returns the NextCursor field value if set, zero value otherwise. +func (o *OriginInspectorHistoricalMeta) GetNextCursor() string { + if o == nil || o.NextCursor == nil { + var ret string + return ret + } + return *o.NextCursor +} + +// GetNextCursorOk returns a tuple with the NextCursor field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorHistoricalMeta) GetNextCursorOk() (*string, bool) { + if o == nil || o.NextCursor == nil { + return nil, false + } + return o.NextCursor, true +} + +// HasNextCursor returns a boolean if a field has been set. +func (o *OriginInspectorHistoricalMeta) HasNextCursor() bool { + if o != nil && o.NextCursor != nil { + return true + } + + return false +} + +// SetNextCursor gets a reference to the given string and assigns it to the NextCursor field. +func (o *OriginInspectorHistoricalMeta) SetNextCursor(v string) { + o.NextCursor = &v +} + +// GetSort returns the Sort field value if set, zero value otherwise. +func (o *OriginInspectorHistoricalMeta) GetSort() string { + if o == nil || o.Sort == nil { + var ret string + return ret + } + return *o.Sort +} + +// GetSortOk returns a tuple with the Sort field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorHistoricalMeta) GetSortOk() (*string, bool) { + if o == nil || o.Sort == nil { + return nil, false + } + return o.Sort, true +} + +// HasSort returns a boolean if a field has been set. +func (o *OriginInspectorHistoricalMeta) HasSort() bool { + if o != nil && o.Sort != nil { + return true + } + + return false +} + +// SetSort gets a reference to the given string and assigns it to the Sort field. +func (o *OriginInspectorHistoricalMeta) SetSort(v string) { + o.Sort = &v +} + +// GetGroupBy returns the GroupBy field value if set, zero value otherwise. +func (o *OriginInspectorHistoricalMeta) GetGroupBy() string { + if o == nil || o.GroupBy == nil { + var ret string + return ret + } + return *o.GroupBy +} + +// GetGroupByOk returns a tuple with the GroupBy field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorHistoricalMeta) GetGroupByOk() (*string, bool) { + if o == nil || o.GroupBy == nil { + return nil, false + } + return o.GroupBy, true +} + +// HasGroupBy returns a boolean if a field has been set. +func (o *OriginInspectorHistoricalMeta) HasGroupBy() bool { + if o != nil && o.GroupBy != nil { + return true + } + + return false +} + +// SetGroupBy gets a reference to the given string and assigns it to the GroupBy field. +func (o *OriginInspectorHistoricalMeta) SetGroupBy(v string) { + o.GroupBy = &v +} + +// GetFilters returns the Filters field value if set, zero value otherwise. +func (o *OriginInspectorHistoricalMeta) GetFilters() OriginInspectorHistoricalMetaFilters { + if o == nil || o.Filters == nil { + var ret OriginInspectorHistoricalMetaFilters + return ret + } + return *o.Filters +} + +// GetFiltersOk returns a tuple with the Filters field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorHistoricalMeta) GetFiltersOk() (*OriginInspectorHistoricalMetaFilters, bool) { + if o == nil || o.Filters == nil { + return nil, false + } + return o.Filters, true +} + +// HasFilters returns a boolean if a field has been set. +func (o *OriginInspectorHistoricalMeta) HasFilters() bool { + if o != nil && o.Filters != nil { + return true + } + + return false +} + +// SetFilters gets a reference to the given OriginInspectorHistoricalMetaFilters and assigns it to the Filters field. +func (o *OriginInspectorHistoricalMeta) SetFilters(v OriginInspectorHistoricalMetaFilters) { + o.Filters = &v +} + +// MarshalJSON implements the json.Marshaler interface. +// Marshaler is the interface implemented by types that can marshal themselves into valid JSON. +func (o OriginInspectorHistoricalMeta) MarshalJSON() ([]byte, error) { + toSerialize := map[string]any{} + if o.Start != nil { + toSerialize["start"] = o.Start + } + if o.End != nil { + toSerialize["end"] = o.End + } + if o.Downsample != nil { + toSerialize["downsample"] = o.Downsample + } + if o.Metrics != nil { + toSerialize["metrics"] = o.Metrics + } + if o.Limit != nil { + toSerialize["limit"] = o.Limit + } + if o.NextCursor != nil { + toSerialize["next_cursor"] = o.NextCursor + } + if o.Sort != nil { + toSerialize["sort"] = o.Sort + } + if o.GroupBy != nil { + toSerialize["group_by"] = o.GroupBy + } + if o.Filters != nil { + toSerialize["filters"] = o.Filters + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return json.Marshal(toSerialize) +} + +// UnmarshalJSON implements the Unmarshaler interface. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +func (o *OriginInspectorHistoricalMeta) UnmarshalJSON(bytes []byte) (err error) { + varOriginInspectorHistoricalMeta := _OriginInspectorHistoricalMeta{} + + if err = json.Unmarshal(bytes, &varOriginInspectorHistoricalMeta); err == nil { + *o = OriginInspectorHistoricalMeta(varOriginInspectorHistoricalMeta) + } + + additionalProperties := make(map[string]any) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "start") + delete(additionalProperties, "end") + delete(additionalProperties, "downsample") + delete(additionalProperties, "metrics") + delete(additionalProperties, "limit") + delete(additionalProperties, "next_cursor") + delete(additionalProperties, "sort") + delete(additionalProperties, "group_by") + delete(additionalProperties, "filters") + o.AdditionalProperties = additionalProperties + } + + return err +} + +// NullableOriginInspectorHistoricalMeta is a helper abstraction for handling nullable origininspectorhistoricalmeta types. +type NullableOriginInspectorHistoricalMeta struct { + value *OriginInspectorHistoricalMeta + isSet bool +} + +// Get returns the value. +func (v NullableOriginInspectorHistoricalMeta) Get() *OriginInspectorHistoricalMeta { + return v.value +} + +// Set modifies the value. +func (v *NullableOriginInspectorHistoricalMeta) Set(val *OriginInspectorHistoricalMeta) { + v.value = val + v.isSet = true +} + +// IsSet indicates if the value was set. +func (v NullableOriginInspectorHistoricalMeta) IsSet() bool { + return v.isSet +} + +// Unset removes the value. +func (v *NullableOriginInspectorHistoricalMeta) Unset() { + v.value = nil + v.isSet = false +} + +// NewNullableOriginInspectorHistoricalMeta returns a pointer to a new instance of NullableOriginInspectorHistoricalMeta. +func NewNullableOriginInspectorHistoricalMeta(val *OriginInspectorHistoricalMeta) *NullableOriginInspectorHistoricalMeta { + return &NullableOriginInspectorHistoricalMeta{value: val, isSet: true} +} + +// MarshalJSON implements the json.Marshaler interface. +// Marshaler is the interface implemented by types that can marshal themselves into valid JSON. +func (v NullableOriginInspectorHistoricalMeta) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +// UnmarshalJSON implements the Unmarshaler interface. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +func (v *NullableOriginInspectorHistoricalMeta) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/fastly/model_origin_inspector_historical_meta_filters.go b/fastly/model_origin_inspector_historical_meta_filters.go new file mode 100644 index 00000000..040978a6 --- /dev/null +++ b/fastly/model_origin_inspector_historical_meta_filters.go @@ -0,0 +1,229 @@ +// Package fastly is an API client library for interacting with most facets of the Fastly API. +package fastly + +/* +Fastly API + +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://developer.fastly.com/reference/api/) + +API version: 1.0.0 +Contact: oss@fastly.com +*/ + +// This code is auto-generated; DO NOT EDIT. + + +import ( + "encoding/json" +) + +// OriginInspectorHistoricalMetaFilters Filters that were applied when calculating the results for this query. +type OriginInspectorHistoricalMetaFilters struct { + Region *string `json:"region,omitempty"` + Datacenter *string `json:"datacenter,omitempty"` + Host *string `json:"host,omitempty"` + AdditionalProperties map[string]any +} + +type _OriginInspectorHistoricalMetaFilters OriginInspectorHistoricalMetaFilters + +// NewOriginInspectorHistoricalMetaFilters instantiates a new OriginInspectorHistoricalMetaFilters object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewOriginInspectorHistoricalMetaFilters() *OriginInspectorHistoricalMetaFilters { + this := OriginInspectorHistoricalMetaFilters{} + return &this +} + +// NewOriginInspectorHistoricalMetaFiltersWithDefaults instantiates a new OriginInspectorHistoricalMetaFilters object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewOriginInspectorHistoricalMetaFiltersWithDefaults() *OriginInspectorHistoricalMetaFilters { + this := OriginInspectorHistoricalMetaFilters{} + return &this +} + +// GetRegion returns the Region field value if set, zero value otherwise. +func (o *OriginInspectorHistoricalMetaFilters) GetRegion() string { + if o == nil || o.Region == nil { + var ret string + return ret + } + return *o.Region +} + +// GetRegionOk returns a tuple with the Region field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorHistoricalMetaFilters) GetRegionOk() (*string, bool) { + if o == nil || o.Region == nil { + return nil, false + } + return o.Region, true +} + +// HasRegion returns a boolean if a field has been set. +func (o *OriginInspectorHistoricalMetaFilters) HasRegion() bool { + if o != nil && o.Region != nil { + return true + } + + return false +} + +// SetRegion gets a reference to the given string and assigns it to the Region field. +func (o *OriginInspectorHistoricalMetaFilters) SetRegion(v string) { + o.Region = &v +} + +// GetDatacenter returns the Datacenter field value if set, zero value otherwise. +func (o *OriginInspectorHistoricalMetaFilters) GetDatacenter() string { + if o == nil || o.Datacenter == nil { + var ret string + return ret + } + return *o.Datacenter +} + +// GetDatacenterOk returns a tuple with the Datacenter field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorHistoricalMetaFilters) GetDatacenterOk() (*string, bool) { + if o == nil || o.Datacenter == nil { + return nil, false + } + return o.Datacenter, true +} + +// HasDatacenter returns a boolean if a field has been set. +func (o *OriginInspectorHistoricalMetaFilters) HasDatacenter() bool { + if o != nil && o.Datacenter != nil { + return true + } + + return false +} + +// SetDatacenter gets a reference to the given string and assigns it to the Datacenter field. +func (o *OriginInspectorHistoricalMetaFilters) SetDatacenter(v string) { + o.Datacenter = &v +} + +// GetHost returns the Host field value if set, zero value otherwise. +func (o *OriginInspectorHistoricalMetaFilters) GetHost() string { + if o == nil || o.Host == nil { + var ret string + return ret + } + return *o.Host +} + +// GetHostOk returns a tuple with the Host field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorHistoricalMetaFilters) GetHostOk() (*string, bool) { + if o == nil || o.Host == nil { + return nil, false + } + return o.Host, true +} + +// HasHost returns a boolean if a field has been set. +func (o *OriginInspectorHistoricalMetaFilters) HasHost() bool { + if o != nil && o.Host != nil { + return true + } + + return false +} + +// SetHost gets a reference to the given string and assigns it to the Host field. +func (o *OriginInspectorHistoricalMetaFilters) SetHost(v string) { + o.Host = &v +} + +// MarshalJSON implements the json.Marshaler interface. +// Marshaler is the interface implemented by types that can marshal themselves into valid JSON. +func (o OriginInspectorHistoricalMetaFilters) MarshalJSON() ([]byte, error) { + toSerialize := map[string]any{} + if o.Region != nil { + toSerialize["region"] = o.Region + } + if o.Datacenter != nil { + toSerialize["datacenter"] = o.Datacenter + } + if o.Host != nil { + toSerialize["host"] = o.Host + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return json.Marshal(toSerialize) +} + +// UnmarshalJSON implements the Unmarshaler interface. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +func (o *OriginInspectorHistoricalMetaFilters) UnmarshalJSON(bytes []byte) (err error) { + varOriginInspectorHistoricalMetaFilters := _OriginInspectorHistoricalMetaFilters{} + + if err = json.Unmarshal(bytes, &varOriginInspectorHistoricalMetaFilters); err == nil { + *o = OriginInspectorHistoricalMetaFilters(varOriginInspectorHistoricalMetaFilters) + } + + additionalProperties := make(map[string]any) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "region") + delete(additionalProperties, "datacenter") + delete(additionalProperties, "host") + o.AdditionalProperties = additionalProperties + } + + return err +} + +// NullableOriginInspectorHistoricalMetaFilters is a helper abstraction for handling nullable origininspectorhistoricalmetafilters types. +type NullableOriginInspectorHistoricalMetaFilters struct { + value *OriginInspectorHistoricalMetaFilters + isSet bool +} + +// Get returns the value. +func (v NullableOriginInspectorHistoricalMetaFilters) Get() *OriginInspectorHistoricalMetaFilters { + return v.value +} + +// Set modifies the value. +func (v *NullableOriginInspectorHistoricalMetaFilters) Set(val *OriginInspectorHistoricalMetaFilters) { + v.value = val + v.isSet = true +} + +// IsSet indicates if the value was set. +func (v NullableOriginInspectorHistoricalMetaFilters) IsSet() bool { + return v.isSet +} + +// Unset removes the value. +func (v *NullableOriginInspectorHistoricalMetaFilters) Unset() { + v.value = nil + v.isSet = false +} + +// NewNullableOriginInspectorHistoricalMetaFilters returns a pointer to a new instance of NullableOriginInspectorHistoricalMetaFilters. +func NewNullableOriginInspectorHistoricalMetaFilters(val *OriginInspectorHistoricalMetaFilters) *NullableOriginInspectorHistoricalMetaFilters { + return &NullableOriginInspectorHistoricalMetaFilters{value: val, isSet: true} +} + +// MarshalJSON implements the json.Marshaler interface. +// Marshaler is the interface implemented by types that can marshal themselves into valid JSON. +func (v NullableOriginInspectorHistoricalMetaFilters) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +// UnmarshalJSON implements the Unmarshaler interface. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +func (v *NullableOriginInspectorHistoricalMetaFilters) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/fastly/model_origin_inspector_measurements.go b/fastly/model_origin_inspector_measurements.go new file mode 100644 index 00000000..32dda6ee --- /dev/null +++ b/fastly/model_origin_inspector_measurements.go @@ -0,0 +1,5894 @@ +// Package fastly is an API client library for interacting with most facets of the Fastly API. +package fastly + +/* +Fastly API + +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://developer.fastly.com/reference/api/) + +API version: 1.0.0 +Contact: oss@fastly.com +*/ + +// This code is auto-generated; DO NOT EDIT. + + +import ( + "encoding/json" +) + +// OriginInspectorMeasurements A measurements object provides a count of the total number of `responses` received by Fastly from your origin servers in the reported time period, for the relevant POP and backend name as specified in the [entry](#entry-data-model). It also includes the number of responses for specific HTTP response status codes and for status code ranges. This dataset is sparse: only the keys with non-zero values will be included in the record. Where a specific status code does not have a field in this model (e.g., `429 Too Many Requests`), any responses with that code will be counted as part of the range count (`4xx` in this case) but will not be separately identified in the data. +type OriginInspectorMeasurements struct { + // Number of responses from origin. + Responses *int32 `json:"responses,omitempty"` + // Number of header bytes from origin. + RespHeaderBytes *int32 `json:"resp_header_bytes,omitempty"` + // Number of body bytes from origin. + RespBodyBytes *int32 `json:"resp_body_bytes,omitempty"` + // Number of 1xx \"Informational\" status codes delivered from origin. + Status1xx *int32 `json:"status_1xx,omitempty"` + // Number of 2xx \"Success\" status codes delivered from origin. + Status2xx *int32 `json:"status_2xx,omitempty"` + // Number of 3xx \"Redirection\" codes delivered from origin. + Status3xx *int32 `json:"status_3xx,omitempty"` + // Number of 4xx \"Client Error\" codes delivered from origin. + Status4xx *int32 `json:"status_4xx,omitempty"` + // Number of 5xx \"Server Error\" codes delivered from origin. + Status5xx *int32 `json:"status_5xx,omitempty"` + // Number of responses received with status code 200 (Success) from origin. + Status200 *int32 `json:"status_200,omitempty"` + // Number of responses received with status code 204 (No Content) from origin. + Status204 *int32 `json:"status_204,omitempty"` + // Number of responses received with status code 206 (Partial Content) from origin. + Status206 *int32 `json:"status_206,omitempty"` + // Number of responses received with status code 301 (Moved Permanently) from origin. + Status301 *int32 `json:"status_301,omitempty"` + // Number of responses received with status code 302 (Found) from origin. + Status302 *int32 `json:"status_302,omitempty"` + // Number of responses received with status code 304 (Not Modified) from origin. + Status304 *int32 `json:"status_304,omitempty"` + // Number of responses received with status code 400 (Bad Request) from origin. + Status400 *int32 `json:"status_400,omitempty"` + // Number of responses received with status code 401 (Unauthorized) from origin. + Status401 *int32 `json:"status_401,omitempty"` + // Number of responses received with status code 403 (Forbidden) from origin. + Status403 *int32 `json:"status_403,omitempty"` + // Number of responses received with status code 404 (Not Found) from origin. + Status404 *int32 `json:"status_404,omitempty"` + // Number of responses received with status code 416 (Range Not Satisfiable) from origin. + Status416 *int32 `json:"status_416,omitempty"` + // Number of responses received with status code 429 (Too Many Requests) from origin. + Status429 *int32 `json:"status_429,omitempty"` + // Number of responses received with status code 500 (Internal Server Error) from origin. + Status500 *int32 `json:"status_500,omitempty"` + // Number of responses received with status code 501 (Not Implemented) from origin. + Status501 *int32 `json:"status_501,omitempty"` + // Number of responses received with status code 502 (Bad Gateway) from origin. + Status502 *int32 `json:"status_502,omitempty"` + // Number of responses received with status code 503 (Service Unavailable) from origin. + Status503 *int32 `json:"status_503,omitempty"` + // Number of responses received with status code 504 (Gateway Timeout) from origin. + Status504 *int32 `json:"status_504,omitempty"` + // Number of responses received with status code 505 (HTTP Version Not Supported) from origin. + Status505 *int32 `json:"status_505,omitempty"` + // Number of responses from origin with latency between 0 and 1 millisecond. + Latency0To1ms *int32 `json:"latency_0_to_1ms,omitempty"` + // Number of responses from origin with latency between 1 and 5 milliseconds. + Latency1To5ms *int32 `json:"latency_1_to_5ms,omitempty"` + // Number of responses from origin with latency between 5 and 10 milliseconds. + Latency5To10ms *int32 `json:"latency_5_to_10ms,omitempty"` + // Number of responses from origin with latency between 10 and 50 milliseconds. + Latency10To50ms *int32 `json:"latency_10_to_50ms,omitempty"` + // Number of responses from origin with latency between 50 and 100 milliseconds. + Latency50To100ms *int32 `json:"latency_50_to_100ms,omitempty"` + // Number of responses from origin with latency between 100 and 250 milliseconds. + Latency100To250ms *int32 `json:"latency_100_to_250ms,omitempty"` + // Number of responses from origin with latency between 250 and 500 milliseconds. + Latency250To500ms *int32 `json:"latency_250_to_500ms,omitempty"` + // Number of responses from origin with latency between 500 and 1,000 milliseconds. + Latency500To1000ms *int32 `json:"latency_500_to_1000ms,omitempty"` + // Number of responses from origin with latency between 1,000 and 5,000 milliseconds. + Latency1000To5000ms *int32 `json:"latency_1000_to_5000ms,omitempty"` + // Number of responses from origin with latency between 5,000 and 10,000 milliseconds. + Latency5000To10000ms *int32 `json:"latency_5000_to_10000ms,omitempty"` + // Number of responses from origin with latency between 10,000 and 60,000 milliseconds. + Latency10000To60000ms *int32 `json:"latency_10000_to_60000ms,omitempty"` + // Number of responses from origin with latency of 60,000 milliseconds and above. + Latency60000ms *int32 `json:"latency_60000ms,omitempty"` + // Number of responses received for origin requests made by the Fastly WAF. + WafResponses *int32 `json:"waf_responses,omitempty"` + // Number of header bytes received for origin requests made by the Fastly WAF. + WafRespHeaderBytes *int32 `json:"waf_resp_header_bytes,omitempty"` + // Number of body bytes received for origin requests made by the Fastly WAF. + WafRespBodyBytes *int32 `json:"waf_resp_body_bytes,omitempty"` + // Number of 1xx \"Informational\" status codes received for origin requests made by the Fastly WAF. + WafStatus1xx *int32 `json:"waf_status_1xx,omitempty"` + // Number of 2xx \"Success\" status codes received for origin requests made by the Fastly WAF. + WafStatus2xx *int32 `json:"waf_status_2xx,omitempty"` + // Number of 3xx \"Redirection\" codes received for origin requests made by the Fastly WAF. + WafStatus3xx *int32 `json:"waf_status_3xx,omitempty"` + // Number of 4xx \"Client Error\" codes received for origin requests made by the Fastly WAF. + WafStatus4xx *int32 `json:"waf_status_4xx,omitempty"` + // Number of 5xx \"Server Error\" codes received for origin requests made by the Fastly WAF. + WafStatus5xx *int32 `json:"waf_status_5xx,omitempty"` + // Number of responses received with status code 200 (Success) received for origin requests made by the Fastly WAF. + WafStatus200 *int32 `json:"waf_status_200,omitempty"` + // Number of responses received with status code 204 (No Content) received for origin requests made by the Fastly WAF. + WafStatus204 *int32 `json:"waf_status_204,omitempty"` + // Number of responses received with status code 206 (Partial Content) received for origin requests made by the Fastly WAF. + WafStatus206 *int32 `json:"waf_status_206,omitempty"` + // Number of responses received with status code 301 (Moved Permanently) received for origin requests made by the Fastly WAF. + WafStatus301 *int32 `json:"waf_status_301,omitempty"` + // Number of responses received with status code 302 (Found) received for origin requests made by the Fastly WAF. + WafStatus302 *int32 `json:"waf_status_302,omitempty"` + // Number of responses received with status code 304 (Not Modified) received for origin requests made by the Fastly WAF. + WafStatus304 *int32 `json:"waf_status_304,omitempty"` + // Number of responses received with status code 400 (Bad Request) received for origin requests made by the Fastly WAF. + WafStatus400 *int32 `json:"waf_status_400,omitempty"` + // Number of responses received with status code 401 (Unauthorized) received for origin requests made by the Fastly WAF. + WafStatus401 *int32 `json:"waf_status_401,omitempty"` + // Number of responses received with status code 403 (Forbidden) received for origin requests made by the Fastly WAF. + WafStatus403 *int32 `json:"waf_status_403,omitempty"` + // Number of responses received with status code 404 (Not Found) received for origin requests made by the Fastly WAF. + WafStatus404 *int32 `json:"waf_status_404,omitempty"` + // Number of responses received with status code 416 (Range Not Satisfiable) received for origin requests made by the Fastly WAF. + WafStatus416 *int32 `json:"waf_status_416,omitempty"` + // Number of responses received with status code 429 (Too Many Requests) received for origin requests made by the Fastly WAF. + WafStatus429 *int32 `json:"waf_status_429,omitempty"` + // Number of responses received with status code 500 (Internal Server Error) received for origin requests made by the Fastly WAF. + WafStatus500 *int32 `json:"waf_status_500,omitempty"` + // Number of responses received with status code 501 (Not Implemented) received for origin requests made by the Fastly WAF. + WafStatus501 *int32 `json:"waf_status_501,omitempty"` + // Number of responses received with status code 502 (Bad Gateway) received for origin requests made by the Fastly WAF. + WafStatus502 *int32 `json:"waf_status_502,omitempty"` + // Number of responses received with status code 503 (Service Unavailable) received for origin requests made by the Fastly WAF. + WafStatus503 *int32 `json:"waf_status_503,omitempty"` + // Number of responses received with status code 504 (Gateway Timeout) received for origin requests made by the Fastly WAF. + WafStatus504 *int32 `json:"waf_status_504,omitempty"` + // Number of responses received with status code 505 (HTTP Version Not Supported) received for origin requests made by the Fastly WAF. + WafStatus505 *int32 `json:"waf_status_505,omitempty"` + // Number of responses with latency between 0 and 1 millisecond received for origin requests made by the Fastly WAF. + WafLatency0To1ms *int32 `json:"waf_latency_0_to_1ms,omitempty"` + // Number of responses with latency between 1 and 5 milliseconds received for origin requests made by the Fastly WAF. + WafLatency1To5ms *int32 `json:"waf_latency_1_to_5ms,omitempty"` + // Number of responses with latency between 5 and 10 milliseconds received for origin requests made by the Fastly WAF. + WafLatency5To10ms *int32 `json:"waf_latency_5_to_10ms,omitempty"` + // Number of responses with latency between 10 and 50 milliseconds received for origin requests made by the Fastly WAF. + WafLatency10To50ms *int32 `json:"waf_latency_10_to_50ms,omitempty"` + // Number of responses with latency between 50 and 100 milliseconds received for origin requests made by the Fastly WAF. + WafLatency50To100ms *int32 `json:"waf_latency_50_to_100ms,omitempty"` + // Number of responses with latency between 100 and 250 milliseconds received for origin requests made by the Fastly WAF. + WafLatency100To250ms *int32 `json:"waf_latency_100_to_250ms,omitempty"` + // Number of responses with latency between 250 and 500 milliseconds received for origin requests made by the Fastly WAF. + WafLatency250To500ms *int32 `json:"waf_latency_250_to_500ms,omitempty"` + // Number of responses with latency between 500 and 1,000 milliseconds received for origin requests made by the Fastly WAF. + WafLatency500To1000ms *int32 `json:"waf_latency_500_to_1000ms,omitempty"` + // Number of responses with latency between 1,000 and 5,000 milliseconds received for origin requests made by the Fastly WAF. + WafLatency1000To5000ms *int32 `json:"waf_latency_1000_to_5000ms,omitempty"` + // Number of responses with latency between 5,000 and 10,000 milliseconds received for origin requests made by the Fastly WAF. + WafLatency5000To10000ms *int32 `json:"waf_latency_5000_to_10000ms,omitempty"` + // Number of responses with latency between 10,000 and 60,000 milliseconds received for origin requests made by the Fastly WAF. + WafLatency10000To60000ms *int32 `json:"waf_latency_10000_to_60000ms,omitempty"` + // Number of responses with latency of 60,000 milliseconds and above received for origin requests made by the Fastly WAF. + WafLatency60000ms *int32 `json:"waf_latency_60000ms,omitempty"` + // Number of responses for origin received by Compute@Edge. + ComputeResponses *int32 `json:"compute_responses,omitempty"` + // Number of header bytes for origin received by Compute@Edge. + ComputeRespHeaderBytes *int32 `json:"compute_resp_header_bytes,omitempty"` + // Number of body bytes for origin received by Compute@Edge. + ComputeRespBodyBytes *int32 `json:"compute_resp_body_bytes,omitempty"` + // Number of 1xx \"Informational\" status codes for origin received by Compute@Edge. + ComputeStatus1xx *int32 `json:"compute_status_1xx,omitempty"` + // Number of 2xx \"Success\" status codes for origin received by Compute@Edge. + ComputeStatus2xx *int32 `json:"compute_status_2xx,omitempty"` + // Number of 3xx \"Redirection\" codes for origin received by Compute@Edge. + ComputeStatus3xx *int32 `json:"compute_status_3xx,omitempty"` + // Number of 4xx \"Client Error\" codes for origin received by Compute@Edge. + ComputeStatus4xx *int32 `json:"compute_status_4xx,omitempty"` + // Number of 5xx \"Server Error\" codes for origin received by Compute@Edge. + ComputeStatus5xx *int32 `json:"compute_status_5xx,omitempty"` + // Number of responses received with status code 200 (Success) for origin received by Compute@Edge. + ComputeStatus200 *int32 `json:"compute_status_200,omitempty"` + // Number of responses received with status code 204 (No Content) for origin received by Compute@Edge. + ComputeStatus204 *int32 `json:"compute_status_204,omitempty"` + // Number of responses received with status code 206 (Partial Content) for origin received by Compute@Edge. + ComputeStatus206 *int32 `json:"compute_status_206,omitempty"` + // Number of responses received with status code 301 (Moved Permanently) for origin received by Compute@Edge. + ComputeStatus301 *int32 `json:"compute_status_301,omitempty"` + // Number of responses received with status code 302 (Found) for origin received by Compute@Edge. + ComputeStatus302 *int32 `json:"compute_status_302,omitempty"` + // Number of responses received with status code 304 (Not Modified) for origin received by Compute@Edge. + ComputeStatus304 *int32 `json:"compute_status_304,omitempty"` + // Number of responses received with status code 400 (Bad Request) for origin received by Compute@Edge. + ComputeStatus400 *int32 `json:"compute_status_400,omitempty"` + // Number of responses received with status code 401 (Unauthorized) for origin received by Compute@Edge. + ComputeStatus401 *int32 `json:"compute_status_401,omitempty"` + // Number of responses received with status code 403 (Forbidden) for origin received by Compute@Edge. + ComputeStatus403 *int32 `json:"compute_status_403,omitempty"` + // Number of responses received with status code 404 (Not Found) for origin received by Compute@Edge. + ComputeStatus404 *int32 `json:"compute_status_404,omitempty"` + // Number of responses received with status code 416 (Range Not Satisfiable) for origin received by Compute@Edge. + ComputeStatus416 *int32 `json:"compute_status_416,omitempty"` + // Number of responses received with status code 429 (Too Many Requests) for origin received by Compute@Edge. + ComputeStatus429 *int32 `json:"compute_status_429,omitempty"` + // Number of responses received with status code 500 (Internal Server Error) for origin received by Compute@Edge. + ComputeStatus500 *int32 `json:"compute_status_500,omitempty"` + // Number of responses received with status code 501 (Not Implemented) for origin received by Compute@Edge. + ComputeStatus501 *int32 `json:"compute_status_501,omitempty"` + // Number of responses received with status code 502 (Bad Gateway) for origin received by Compute@Edge. + ComputeStatus502 *int32 `json:"compute_status_502,omitempty"` + // Number of responses received with status code 503 (Service Unavailable) for origin received by Compute@Edge. + ComputeStatus503 *int32 `json:"compute_status_503,omitempty"` + // Number of responses received with status code 504 (Gateway Timeout) for origin received by Compute@Edge. + ComputeStatus504 *int32 `json:"compute_status_504,omitempty"` + // Number of responses received with status code 505 (HTTP Version Not Supported) for origin received by Compute@Edge. + ComputeStatus505 *int32 `json:"compute_status_505,omitempty"` + // Number of responses with latency between 0 and 1 millisecond for origin received by Compute@Edge. + ComputeLatency0To1ms *int32 `json:"compute_latency_0_to_1ms,omitempty"` + // Number of responses with latency between 1 and 5 milliseconds for origin received by Compute@Edge. + ComputeLatency1To5ms *int32 `json:"compute_latency_1_to_5ms,omitempty"` + // Number of responses with latency between 5 and 10 milliseconds for origin received by Compute@Edge. + ComputeLatency5To10ms *int32 `json:"compute_latency_5_to_10ms,omitempty"` + // Number of responses with latency between 10 and 50 milliseconds for origin received by Compute@Edge. + ComputeLatency10To50ms *int32 `json:"compute_latency_10_to_50ms,omitempty"` + // Number of responses with latency between 50 and 100 milliseconds for origin received by Compute@Edge. + ComputeLatency50To100ms *int32 `json:"compute_latency_50_to_100ms,omitempty"` + // Number of responses with latency between 100 and 250 milliseconds for origin received by Compute@Edge. + ComputeLatency100To250ms *int32 `json:"compute_latency_100_to_250ms,omitempty"` + // Number of responses with latency between 250 and 500 milliseconds for origin received by Compute@Edge. + ComputeLatency250To500ms *int32 `json:"compute_latency_250_to_500ms,omitempty"` + // Number of responses with latency between 500 and 1,000 milliseconds for origin received by Compute@Edge. + ComputeLatency500To1000ms *int32 `json:"compute_latency_500_to_1000ms,omitempty"` + // Number of responses with latency between 1,000 and 5,000 milliseconds for origin received by Compute@Edge. + ComputeLatency1000To5000ms *int32 `json:"compute_latency_1000_to_5000ms,omitempty"` + // Number of responses with latency between 5,000 and 10,000 milliseconds for origin received by Compute@Edge. + ComputeLatency5000To10000ms *int32 `json:"compute_latency_5000_to_10000ms,omitempty"` + // Number of responses with latency between 10,000 and 60,000 milliseconds for origin received by Compute@Edge. + ComputeLatency10000To60000ms *int32 `json:"compute_latency_10000_to_60000ms,omitempty"` + // Number of responses with latency of 60,000 milliseconds and above for origin received by Compute@Edge. + ComputeLatency60000ms *int32 `json:"compute_latency_60000ms,omitempty"` + // Number of responses received for origin requests made by all sources. + AllResponses *int32 `json:"all_responses,omitempty"` + // Number of header bytes received for origin requests made by all sources. + AllRespHeaderBytes *int32 `json:"all_resp_header_bytes,omitempty"` + // Number of body bytes received for origin requests made by all sources. + AllRespBodyBytes *int32 `json:"all_resp_body_bytes,omitempty"` + // Number of 1xx \"Informational\" category status codes delivered received for origin requests made by all sources. + AllStatus1xx *int32 `json:"all_status_1xx,omitempty"` + // Number of 2xx \"Success\" status codes received for origin requests made by all sources. + AllStatus2xx *int32 `json:"all_status_2xx,omitempty"` + // Number of 3xx \"Redirection\" codes received for origin requests made by all sources. + AllStatus3xx *int32 `json:"all_status_3xx,omitempty"` + // Number of 4xx \"Client Error\" codes received for origin requests made by all sources. + AllStatus4xx *int32 `json:"all_status_4xx,omitempty"` + // Number of 5xx \"Server Error\" codes received for origin requests made by all sources. + AllStatus5xx *int32 `json:"all_status_5xx,omitempty"` + // Number of responses received with status code 200 (Success) received for origin requests made by all sources. + AllStatus200 *int32 `json:"all_status_200,omitempty"` + // Number of responses received with status code 204 (No Content) received for origin requests made by all sources. + AllStatus204 *int32 `json:"all_status_204,omitempty"` + // Number of responses received with status code 206 (Partial Content) received for origin requests made by all sources. + AllStatus206 *int32 `json:"all_status_206,omitempty"` + // Number of responses received with status code 301 (Moved Permanently) received for origin requests made by all sources. + AllStatus301 *int32 `json:"all_status_301,omitempty"` + // Number of responses received with status code 302 (Found) received for origin requests made by all sources. + AllStatus302 *int32 `json:"all_status_302,omitempty"` + // Number of responses received with status code 304 (Not Modified) received for origin requests made by all sources. + AllStatus304 *int32 `json:"all_status_304,omitempty"` + // Number of responses received with status code 400 (Bad Request) received for origin requests made by all sources. + AllStatus400 *int32 `json:"all_status_400,omitempty"` + // Number of responses received with status code 401 (Unauthorized) received for origin requests made by all sources. + AllStatus401 *int32 `json:"all_status_401,omitempty"` + // Number of responses received with status code 403 (Forbidden) received for origin requests made by all sources. + AllStatus403 *int32 `json:"all_status_403,omitempty"` + // Number of responses received with status code 404 (Not Found) received for origin requests made by all sources. + AllStatus404 *int32 `json:"all_status_404,omitempty"` + // Number of responses received with status code 416 (Range Not Satisfiable) received for origin requests made by all sources. + AllStatus416 *int32 `json:"all_status_416,omitempty"` + // Number of responses received with status code 429 (Too Many Requests) received for origin requests made by all sources. + AllStatus429 *int32 `json:"all_status_429,omitempty"` + // Number of responses received with status code 500 (Internal Server Error) received for origin requests made by all sources. + AllStatus500 *int32 `json:"all_status_500,omitempty"` + // Number of responses received with status code 501 (Not Implemented) received for origin requests made by all sources. + AllStatus501 *int32 `json:"all_status_501,omitempty"` + // Number of responses received with status code 502 (Bad Gateway) received for origin requests made by all sources. + AllStatus502 *int32 `json:"all_status_502,omitempty"` + // Number of responses received with status code 503 (Service Unavailable) received for origin requests made by all sources. + AllStatus503 *int32 `json:"all_status_503,omitempty"` + // Number of responses received with status code 504 (Gateway Timeout) received for origin requests made by all sources. + AllStatus504 *int32 `json:"all_status_504,omitempty"` + // Number of responses received with status code 505 (HTTP Version Not Supported) received for origin requests made by all sources. + AllStatus505 *int32 `json:"all_status_505,omitempty"` + // Number of responses with latency between 0 and 1 millisecond received for origin requests made by all sources. + AllLatency0To1ms *int32 `json:"all_latency_0_to_1ms,omitempty"` + // Number of responses with latency between 1 and 5 milliseconds received for origin requests made by all sources. + AllLatency1To5ms *int32 `json:"all_latency_1_to_5ms,omitempty"` + // Number of responses with latency between 5 and 10 milliseconds received for origin requests made by all sources. + AllLatency5To10ms *int32 `json:"all_latency_5_to_10ms,omitempty"` + // Number of responses with latency between 10 and 50 milliseconds received for origin requests made by all sources. + AllLatency10To50ms *int32 `json:"all_latency_10_to_50ms,omitempty"` + // Number of responses with latency between 50 and 100 milliseconds received for origin requests made by all sources. + AllLatency50To100ms *int32 `json:"all_latency_50_to_100ms,omitempty"` + // Number of responses with latency between 100 and 250 milliseconds received for origin requests made by all sources. + AllLatency100To250ms *int32 `json:"all_latency_100_to_250ms,omitempty"` + // Number of responses with latency between 250 and 500 milliseconds received for origin requests made by all sources. + AllLatency250To500ms *int32 `json:"all_latency_250_to_500ms,omitempty"` + // Number of responses with latency between 500 and 1,000 milliseconds received for origin requests made by all sources. + AllLatency500To1000ms *int32 `json:"all_latency_500_to_1000ms,omitempty"` + // Number of responses with latency between 1,000 and 5,000 milliseconds received for origin requests made by all sources. + AllLatency1000To5000ms *int32 `json:"all_latency_1000_to_5000ms,omitempty"` + // Number of responses with latency between 5,000 and 10,000 milliseconds received for origin requests made by all sources. + AllLatency5000To10000ms *int32 `json:"all_latency_5000_to_10000ms,omitempty"` + // Number of responses with latency between 10,000 and 60,000 milliseconds received for origin requests made by all sources. + AllLatency10000To60000ms *int32 `json:"all_latency_10000_to_60000ms,omitempty"` + // Number of responses with latency of 60,000 milliseconds and above received for origin requests made by all sources. + AllLatency60000ms *int32 `json:"all_latency_60000ms,omitempty"` + AdditionalProperties map[string]any +} + +type _OriginInspectorMeasurements OriginInspectorMeasurements + +// NewOriginInspectorMeasurements instantiates a new OriginInspectorMeasurements object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewOriginInspectorMeasurements() *OriginInspectorMeasurements { + this := OriginInspectorMeasurements{} + return &this +} + +// NewOriginInspectorMeasurementsWithDefaults instantiates a new OriginInspectorMeasurements object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewOriginInspectorMeasurementsWithDefaults() *OriginInspectorMeasurements { + this := OriginInspectorMeasurements{} + return &this +} + +// GetResponses returns the Responses field value if set, zero value otherwise. +func (o *OriginInspectorMeasurements) GetResponses() int32 { + if o == nil || o.Responses == nil { + var ret int32 + return ret + } + return *o.Responses +} + +// GetResponsesOk returns a tuple with the Responses field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorMeasurements) GetResponsesOk() (*int32, bool) { + if o == nil || o.Responses == nil { + return nil, false + } + return o.Responses, true +} + +// HasResponses returns a boolean if a field has been set. +func (o *OriginInspectorMeasurements) HasResponses() bool { + if o != nil && o.Responses != nil { + return true + } + + return false +} + +// SetResponses gets a reference to the given int32 and assigns it to the Responses field. +func (o *OriginInspectorMeasurements) SetResponses(v int32) { + o.Responses = &v +} + +// GetRespHeaderBytes returns the RespHeaderBytes field value if set, zero value otherwise. +func (o *OriginInspectorMeasurements) GetRespHeaderBytes() int32 { + if o == nil || o.RespHeaderBytes == nil { + var ret int32 + return ret + } + return *o.RespHeaderBytes +} + +// GetRespHeaderBytesOk returns a tuple with the RespHeaderBytes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorMeasurements) GetRespHeaderBytesOk() (*int32, bool) { + if o == nil || o.RespHeaderBytes == nil { + return nil, false + } + return o.RespHeaderBytes, true +} + +// HasRespHeaderBytes returns a boolean if a field has been set. +func (o *OriginInspectorMeasurements) HasRespHeaderBytes() bool { + if o != nil && o.RespHeaderBytes != nil { + return true + } + + return false +} + +// SetRespHeaderBytes gets a reference to the given int32 and assigns it to the RespHeaderBytes field. +func (o *OriginInspectorMeasurements) SetRespHeaderBytes(v int32) { + o.RespHeaderBytes = &v +} + +// GetRespBodyBytes returns the RespBodyBytes field value if set, zero value otherwise. +func (o *OriginInspectorMeasurements) GetRespBodyBytes() int32 { + if o == nil || o.RespBodyBytes == nil { + var ret int32 + return ret + } + return *o.RespBodyBytes +} + +// GetRespBodyBytesOk returns a tuple with the RespBodyBytes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorMeasurements) GetRespBodyBytesOk() (*int32, bool) { + if o == nil || o.RespBodyBytes == nil { + return nil, false + } + return o.RespBodyBytes, true +} + +// HasRespBodyBytes returns a boolean if a field has been set. +func (o *OriginInspectorMeasurements) HasRespBodyBytes() bool { + if o != nil && o.RespBodyBytes != nil { + return true + } + + return false +} + +// SetRespBodyBytes gets a reference to the given int32 and assigns it to the RespBodyBytes field. +func (o *OriginInspectorMeasurements) SetRespBodyBytes(v int32) { + o.RespBodyBytes = &v +} + +// GetStatus1xx returns the Status1xx field value if set, zero value otherwise. +func (o *OriginInspectorMeasurements) GetStatus1xx() int32 { + if o == nil || o.Status1xx == nil { + var ret int32 + return ret + } + return *o.Status1xx +} + +// GetStatus1xxOk returns a tuple with the Status1xx field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorMeasurements) GetStatus1xxOk() (*int32, bool) { + if o == nil || o.Status1xx == nil { + return nil, false + } + return o.Status1xx, true +} + +// HasStatus1xx returns a boolean if a field has been set. +func (o *OriginInspectorMeasurements) HasStatus1xx() bool { + if o != nil && o.Status1xx != nil { + return true + } + + return false +} + +// SetStatus1xx gets a reference to the given int32 and assigns it to the Status1xx field. +func (o *OriginInspectorMeasurements) SetStatus1xx(v int32) { + o.Status1xx = &v +} + +// GetStatus2xx returns the Status2xx field value if set, zero value otherwise. +func (o *OriginInspectorMeasurements) GetStatus2xx() int32 { + if o == nil || o.Status2xx == nil { + var ret int32 + return ret + } + return *o.Status2xx +} + +// GetStatus2xxOk returns a tuple with the Status2xx field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorMeasurements) GetStatus2xxOk() (*int32, bool) { + if o == nil || o.Status2xx == nil { + return nil, false + } + return o.Status2xx, true +} + +// HasStatus2xx returns a boolean if a field has been set. +func (o *OriginInspectorMeasurements) HasStatus2xx() bool { + if o != nil && o.Status2xx != nil { + return true + } + + return false +} + +// SetStatus2xx gets a reference to the given int32 and assigns it to the Status2xx field. +func (o *OriginInspectorMeasurements) SetStatus2xx(v int32) { + o.Status2xx = &v +} + +// GetStatus3xx returns the Status3xx field value if set, zero value otherwise. +func (o *OriginInspectorMeasurements) GetStatus3xx() int32 { + if o == nil || o.Status3xx == nil { + var ret int32 + return ret + } + return *o.Status3xx +} + +// GetStatus3xxOk returns a tuple with the Status3xx field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorMeasurements) GetStatus3xxOk() (*int32, bool) { + if o == nil || o.Status3xx == nil { + return nil, false + } + return o.Status3xx, true +} + +// HasStatus3xx returns a boolean if a field has been set. +func (o *OriginInspectorMeasurements) HasStatus3xx() bool { + if o != nil && o.Status3xx != nil { + return true + } + + return false +} + +// SetStatus3xx gets a reference to the given int32 and assigns it to the Status3xx field. +func (o *OriginInspectorMeasurements) SetStatus3xx(v int32) { + o.Status3xx = &v +} + +// GetStatus4xx returns the Status4xx field value if set, zero value otherwise. +func (o *OriginInspectorMeasurements) GetStatus4xx() int32 { + if o == nil || o.Status4xx == nil { + var ret int32 + return ret + } + return *o.Status4xx +} + +// GetStatus4xxOk returns a tuple with the Status4xx field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorMeasurements) GetStatus4xxOk() (*int32, bool) { + if o == nil || o.Status4xx == nil { + return nil, false + } + return o.Status4xx, true +} + +// HasStatus4xx returns a boolean if a field has been set. +func (o *OriginInspectorMeasurements) HasStatus4xx() bool { + if o != nil && o.Status4xx != nil { + return true + } + + return false +} + +// SetStatus4xx gets a reference to the given int32 and assigns it to the Status4xx field. +func (o *OriginInspectorMeasurements) SetStatus4xx(v int32) { + o.Status4xx = &v +} + +// GetStatus5xx returns the Status5xx field value if set, zero value otherwise. +func (o *OriginInspectorMeasurements) GetStatus5xx() int32 { + if o == nil || o.Status5xx == nil { + var ret int32 + return ret + } + return *o.Status5xx +} + +// GetStatus5xxOk returns a tuple with the Status5xx field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorMeasurements) GetStatus5xxOk() (*int32, bool) { + if o == nil || o.Status5xx == nil { + return nil, false + } + return o.Status5xx, true +} + +// HasStatus5xx returns a boolean if a field has been set. +func (o *OriginInspectorMeasurements) HasStatus5xx() bool { + if o != nil && o.Status5xx != nil { + return true + } + + return false +} + +// SetStatus5xx gets a reference to the given int32 and assigns it to the Status5xx field. +func (o *OriginInspectorMeasurements) SetStatus5xx(v int32) { + o.Status5xx = &v +} + +// GetStatus200 returns the Status200 field value if set, zero value otherwise. +func (o *OriginInspectorMeasurements) GetStatus200() int32 { + if o == nil || o.Status200 == nil { + var ret int32 + return ret + } + return *o.Status200 +} + +// GetStatus200Ok returns a tuple with the Status200 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorMeasurements) GetStatus200Ok() (*int32, bool) { + if o == nil || o.Status200 == nil { + return nil, false + } + return o.Status200, true +} + +// HasStatus200 returns a boolean if a field has been set. +func (o *OriginInspectorMeasurements) HasStatus200() bool { + if o != nil && o.Status200 != nil { + return true + } + + return false +} + +// SetStatus200 gets a reference to the given int32 and assigns it to the Status200 field. +func (o *OriginInspectorMeasurements) SetStatus200(v int32) { + o.Status200 = &v +} + +// GetStatus204 returns the Status204 field value if set, zero value otherwise. +func (o *OriginInspectorMeasurements) GetStatus204() int32 { + if o == nil || o.Status204 == nil { + var ret int32 + return ret + } + return *o.Status204 +} + +// GetStatus204Ok returns a tuple with the Status204 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorMeasurements) GetStatus204Ok() (*int32, bool) { + if o == nil || o.Status204 == nil { + return nil, false + } + return o.Status204, true +} + +// HasStatus204 returns a boolean if a field has been set. +func (o *OriginInspectorMeasurements) HasStatus204() bool { + if o != nil && o.Status204 != nil { + return true + } + + return false +} + +// SetStatus204 gets a reference to the given int32 and assigns it to the Status204 field. +func (o *OriginInspectorMeasurements) SetStatus204(v int32) { + o.Status204 = &v +} + +// GetStatus206 returns the Status206 field value if set, zero value otherwise. +func (o *OriginInspectorMeasurements) GetStatus206() int32 { + if o == nil || o.Status206 == nil { + var ret int32 + return ret + } + return *o.Status206 +} + +// GetStatus206Ok returns a tuple with the Status206 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorMeasurements) GetStatus206Ok() (*int32, bool) { + if o == nil || o.Status206 == nil { + return nil, false + } + return o.Status206, true +} + +// HasStatus206 returns a boolean if a field has been set. +func (o *OriginInspectorMeasurements) HasStatus206() bool { + if o != nil && o.Status206 != nil { + return true + } + + return false +} + +// SetStatus206 gets a reference to the given int32 and assigns it to the Status206 field. +func (o *OriginInspectorMeasurements) SetStatus206(v int32) { + o.Status206 = &v +} + +// GetStatus301 returns the Status301 field value if set, zero value otherwise. +func (o *OriginInspectorMeasurements) GetStatus301() int32 { + if o == nil || o.Status301 == nil { + var ret int32 + return ret + } + return *o.Status301 +} + +// GetStatus301Ok returns a tuple with the Status301 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorMeasurements) GetStatus301Ok() (*int32, bool) { + if o == nil || o.Status301 == nil { + return nil, false + } + return o.Status301, true +} + +// HasStatus301 returns a boolean if a field has been set. +func (o *OriginInspectorMeasurements) HasStatus301() bool { + if o != nil && o.Status301 != nil { + return true + } + + return false +} + +// SetStatus301 gets a reference to the given int32 and assigns it to the Status301 field. +func (o *OriginInspectorMeasurements) SetStatus301(v int32) { + o.Status301 = &v +} + +// GetStatus302 returns the Status302 field value if set, zero value otherwise. +func (o *OriginInspectorMeasurements) GetStatus302() int32 { + if o == nil || o.Status302 == nil { + var ret int32 + return ret + } + return *o.Status302 +} + +// GetStatus302Ok returns a tuple with the Status302 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorMeasurements) GetStatus302Ok() (*int32, bool) { + if o == nil || o.Status302 == nil { + return nil, false + } + return o.Status302, true +} + +// HasStatus302 returns a boolean if a field has been set. +func (o *OriginInspectorMeasurements) HasStatus302() bool { + if o != nil && o.Status302 != nil { + return true + } + + return false +} + +// SetStatus302 gets a reference to the given int32 and assigns it to the Status302 field. +func (o *OriginInspectorMeasurements) SetStatus302(v int32) { + o.Status302 = &v +} + +// GetStatus304 returns the Status304 field value if set, zero value otherwise. +func (o *OriginInspectorMeasurements) GetStatus304() int32 { + if o == nil || o.Status304 == nil { + var ret int32 + return ret + } + return *o.Status304 +} + +// GetStatus304Ok returns a tuple with the Status304 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorMeasurements) GetStatus304Ok() (*int32, bool) { + if o == nil || o.Status304 == nil { + return nil, false + } + return o.Status304, true +} + +// HasStatus304 returns a boolean if a field has been set. +func (o *OriginInspectorMeasurements) HasStatus304() bool { + if o != nil && o.Status304 != nil { + return true + } + + return false +} + +// SetStatus304 gets a reference to the given int32 and assigns it to the Status304 field. +func (o *OriginInspectorMeasurements) SetStatus304(v int32) { + o.Status304 = &v +} + +// GetStatus400 returns the Status400 field value if set, zero value otherwise. +func (o *OriginInspectorMeasurements) GetStatus400() int32 { + if o == nil || o.Status400 == nil { + var ret int32 + return ret + } + return *o.Status400 +} + +// GetStatus400Ok returns a tuple with the Status400 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorMeasurements) GetStatus400Ok() (*int32, bool) { + if o == nil || o.Status400 == nil { + return nil, false + } + return o.Status400, true +} + +// HasStatus400 returns a boolean if a field has been set. +func (o *OriginInspectorMeasurements) HasStatus400() bool { + if o != nil && o.Status400 != nil { + return true + } + + return false +} + +// SetStatus400 gets a reference to the given int32 and assigns it to the Status400 field. +func (o *OriginInspectorMeasurements) SetStatus400(v int32) { + o.Status400 = &v +} + +// GetStatus401 returns the Status401 field value if set, zero value otherwise. +func (o *OriginInspectorMeasurements) GetStatus401() int32 { + if o == nil || o.Status401 == nil { + var ret int32 + return ret + } + return *o.Status401 +} + +// GetStatus401Ok returns a tuple with the Status401 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorMeasurements) GetStatus401Ok() (*int32, bool) { + if o == nil || o.Status401 == nil { + return nil, false + } + return o.Status401, true +} + +// HasStatus401 returns a boolean if a field has been set. +func (o *OriginInspectorMeasurements) HasStatus401() bool { + if o != nil && o.Status401 != nil { + return true + } + + return false +} + +// SetStatus401 gets a reference to the given int32 and assigns it to the Status401 field. +func (o *OriginInspectorMeasurements) SetStatus401(v int32) { + o.Status401 = &v +} + +// GetStatus403 returns the Status403 field value if set, zero value otherwise. +func (o *OriginInspectorMeasurements) GetStatus403() int32 { + if o == nil || o.Status403 == nil { + var ret int32 + return ret + } + return *o.Status403 +} + +// GetStatus403Ok returns a tuple with the Status403 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorMeasurements) GetStatus403Ok() (*int32, bool) { + if o == nil || o.Status403 == nil { + return nil, false + } + return o.Status403, true +} + +// HasStatus403 returns a boolean if a field has been set. +func (o *OriginInspectorMeasurements) HasStatus403() bool { + if o != nil && o.Status403 != nil { + return true + } + + return false +} + +// SetStatus403 gets a reference to the given int32 and assigns it to the Status403 field. +func (o *OriginInspectorMeasurements) SetStatus403(v int32) { + o.Status403 = &v +} + +// GetStatus404 returns the Status404 field value if set, zero value otherwise. +func (o *OriginInspectorMeasurements) GetStatus404() int32 { + if o == nil || o.Status404 == nil { + var ret int32 + return ret + } + return *o.Status404 +} + +// GetStatus404Ok returns a tuple with the Status404 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorMeasurements) GetStatus404Ok() (*int32, bool) { + if o == nil || o.Status404 == nil { + return nil, false + } + return o.Status404, true +} + +// HasStatus404 returns a boolean if a field has been set. +func (o *OriginInspectorMeasurements) HasStatus404() bool { + if o != nil && o.Status404 != nil { + return true + } + + return false +} + +// SetStatus404 gets a reference to the given int32 and assigns it to the Status404 field. +func (o *OriginInspectorMeasurements) SetStatus404(v int32) { + o.Status404 = &v +} + +// GetStatus416 returns the Status416 field value if set, zero value otherwise. +func (o *OriginInspectorMeasurements) GetStatus416() int32 { + if o == nil || o.Status416 == nil { + var ret int32 + return ret + } + return *o.Status416 +} + +// GetStatus416Ok returns a tuple with the Status416 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorMeasurements) GetStatus416Ok() (*int32, bool) { + if o == nil || o.Status416 == nil { + return nil, false + } + return o.Status416, true +} + +// HasStatus416 returns a boolean if a field has been set. +func (o *OriginInspectorMeasurements) HasStatus416() bool { + if o != nil && o.Status416 != nil { + return true + } + + return false +} + +// SetStatus416 gets a reference to the given int32 and assigns it to the Status416 field. +func (o *OriginInspectorMeasurements) SetStatus416(v int32) { + o.Status416 = &v +} + +// GetStatus429 returns the Status429 field value if set, zero value otherwise. +func (o *OriginInspectorMeasurements) GetStatus429() int32 { + if o == nil || o.Status429 == nil { + var ret int32 + return ret + } + return *o.Status429 +} + +// GetStatus429Ok returns a tuple with the Status429 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorMeasurements) GetStatus429Ok() (*int32, bool) { + if o == nil || o.Status429 == nil { + return nil, false + } + return o.Status429, true +} + +// HasStatus429 returns a boolean if a field has been set. +func (o *OriginInspectorMeasurements) HasStatus429() bool { + if o != nil && o.Status429 != nil { + return true + } + + return false +} + +// SetStatus429 gets a reference to the given int32 and assigns it to the Status429 field. +func (o *OriginInspectorMeasurements) SetStatus429(v int32) { + o.Status429 = &v +} + +// GetStatus500 returns the Status500 field value if set, zero value otherwise. +func (o *OriginInspectorMeasurements) GetStatus500() int32 { + if o == nil || o.Status500 == nil { + var ret int32 + return ret + } + return *o.Status500 +} + +// GetStatus500Ok returns a tuple with the Status500 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorMeasurements) GetStatus500Ok() (*int32, bool) { + if o == nil || o.Status500 == nil { + return nil, false + } + return o.Status500, true +} + +// HasStatus500 returns a boolean if a field has been set. +func (o *OriginInspectorMeasurements) HasStatus500() bool { + if o != nil && o.Status500 != nil { + return true + } + + return false +} + +// SetStatus500 gets a reference to the given int32 and assigns it to the Status500 field. +func (o *OriginInspectorMeasurements) SetStatus500(v int32) { + o.Status500 = &v +} + +// GetStatus501 returns the Status501 field value if set, zero value otherwise. +func (o *OriginInspectorMeasurements) GetStatus501() int32 { + if o == nil || o.Status501 == nil { + var ret int32 + return ret + } + return *o.Status501 +} + +// GetStatus501Ok returns a tuple with the Status501 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorMeasurements) GetStatus501Ok() (*int32, bool) { + if o == nil || o.Status501 == nil { + return nil, false + } + return o.Status501, true +} + +// HasStatus501 returns a boolean if a field has been set. +func (o *OriginInspectorMeasurements) HasStatus501() bool { + if o != nil && o.Status501 != nil { + return true + } + + return false +} + +// SetStatus501 gets a reference to the given int32 and assigns it to the Status501 field. +func (o *OriginInspectorMeasurements) SetStatus501(v int32) { + o.Status501 = &v +} + +// GetStatus502 returns the Status502 field value if set, zero value otherwise. +func (o *OriginInspectorMeasurements) GetStatus502() int32 { + if o == nil || o.Status502 == nil { + var ret int32 + return ret + } + return *o.Status502 +} + +// GetStatus502Ok returns a tuple with the Status502 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorMeasurements) GetStatus502Ok() (*int32, bool) { + if o == nil || o.Status502 == nil { + return nil, false + } + return o.Status502, true +} + +// HasStatus502 returns a boolean if a field has been set. +func (o *OriginInspectorMeasurements) HasStatus502() bool { + if o != nil && o.Status502 != nil { + return true + } + + return false +} + +// SetStatus502 gets a reference to the given int32 and assigns it to the Status502 field. +func (o *OriginInspectorMeasurements) SetStatus502(v int32) { + o.Status502 = &v +} + +// GetStatus503 returns the Status503 field value if set, zero value otherwise. +func (o *OriginInspectorMeasurements) GetStatus503() int32 { + if o == nil || o.Status503 == nil { + var ret int32 + return ret + } + return *o.Status503 +} + +// GetStatus503Ok returns a tuple with the Status503 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorMeasurements) GetStatus503Ok() (*int32, bool) { + if o == nil || o.Status503 == nil { + return nil, false + } + return o.Status503, true +} + +// HasStatus503 returns a boolean if a field has been set. +func (o *OriginInspectorMeasurements) HasStatus503() bool { + if o != nil && o.Status503 != nil { + return true + } + + return false +} + +// SetStatus503 gets a reference to the given int32 and assigns it to the Status503 field. +func (o *OriginInspectorMeasurements) SetStatus503(v int32) { + o.Status503 = &v +} + +// GetStatus504 returns the Status504 field value if set, zero value otherwise. +func (o *OriginInspectorMeasurements) GetStatus504() int32 { + if o == nil || o.Status504 == nil { + var ret int32 + return ret + } + return *o.Status504 +} + +// GetStatus504Ok returns a tuple with the Status504 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorMeasurements) GetStatus504Ok() (*int32, bool) { + if o == nil || o.Status504 == nil { + return nil, false + } + return o.Status504, true +} + +// HasStatus504 returns a boolean if a field has been set. +func (o *OriginInspectorMeasurements) HasStatus504() bool { + if o != nil && o.Status504 != nil { + return true + } + + return false +} + +// SetStatus504 gets a reference to the given int32 and assigns it to the Status504 field. +func (o *OriginInspectorMeasurements) SetStatus504(v int32) { + o.Status504 = &v +} + +// GetStatus505 returns the Status505 field value if set, zero value otherwise. +func (o *OriginInspectorMeasurements) GetStatus505() int32 { + if o == nil || o.Status505 == nil { + var ret int32 + return ret + } + return *o.Status505 +} + +// GetStatus505Ok returns a tuple with the Status505 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorMeasurements) GetStatus505Ok() (*int32, bool) { + if o == nil || o.Status505 == nil { + return nil, false + } + return o.Status505, true +} + +// HasStatus505 returns a boolean if a field has been set. +func (o *OriginInspectorMeasurements) HasStatus505() bool { + if o != nil && o.Status505 != nil { + return true + } + + return false +} + +// SetStatus505 gets a reference to the given int32 and assigns it to the Status505 field. +func (o *OriginInspectorMeasurements) SetStatus505(v int32) { + o.Status505 = &v +} + +// GetLatency0To1ms returns the Latency0To1ms field value if set, zero value otherwise. +func (o *OriginInspectorMeasurements) GetLatency0To1ms() int32 { + if o == nil || o.Latency0To1ms == nil { + var ret int32 + return ret + } + return *o.Latency0To1ms +} + +// GetLatency0To1msOk returns a tuple with the Latency0To1ms field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorMeasurements) GetLatency0To1msOk() (*int32, bool) { + if o == nil || o.Latency0To1ms == nil { + return nil, false + } + return o.Latency0To1ms, true +} + +// HasLatency0To1ms returns a boolean if a field has been set. +func (o *OriginInspectorMeasurements) HasLatency0To1ms() bool { + if o != nil && o.Latency0To1ms != nil { + return true + } + + return false +} + +// SetLatency0To1ms gets a reference to the given int32 and assigns it to the Latency0To1ms field. +func (o *OriginInspectorMeasurements) SetLatency0To1ms(v int32) { + o.Latency0To1ms = &v +} + +// GetLatency1To5ms returns the Latency1To5ms field value if set, zero value otherwise. +func (o *OriginInspectorMeasurements) GetLatency1To5ms() int32 { + if o == nil || o.Latency1To5ms == nil { + var ret int32 + return ret + } + return *o.Latency1To5ms +} + +// GetLatency1To5msOk returns a tuple with the Latency1To5ms field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorMeasurements) GetLatency1To5msOk() (*int32, bool) { + if o == nil || o.Latency1To5ms == nil { + return nil, false + } + return o.Latency1To5ms, true +} + +// HasLatency1To5ms returns a boolean if a field has been set. +func (o *OriginInspectorMeasurements) HasLatency1To5ms() bool { + if o != nil && o.Latency1To5ms != nil { + return true + } + + return false +} + +// SetLatency1To5ms gets a reference to the given int32 and assigns it to the Latency1To5ms field. +func (o *OriginInspectorMeasurements) SetLatency1To5ms(v int32) { + o.Latency1To5ms = &v +} + +// GetLatency5To10ms returns the Latency5To10ms field value if set, zero value otherwise. +func (o *OriginInspectorMeasurements) GetLatency5To10ms() int32 { + if o == nil || o.Latency5To10ms == nil { + var ret int32 + return ret + } + return *o.Latency5To10ms +} + +// GetLatency5To10msOk returns a tuple with the Latency5To10ms field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorMeasurements) GetLatency5To10msOk() (*int32, bool) { + if o == nil || o.Latency5To10ms == nil { + return nil, false + } + return o.Latency5To10ms, true +} + +// HasLatency5To10ms returns a boolean if a field has been set. +func (o *OriginInspectorMeasurements) HasLatency5To10ms() bool { + if o != nil && o.Latency5To10ms != nil { + return true + } + + return false +} + +// SetLatency5To10ms gets a reference to the given int32 and assigns it to the Latency5To10ms field. +func (o *OriginInspectorMeasurements) SetLatency5To10ms(v int32) { + o.Latency5To10ms = &v +} + +// GetLatency10To50ms returns the Latency10To50ms field value if set, zero value otherwise. +func (o *OriginInspectorMeasurements) GetLatency10To50ms() int32 { + if o == nil || o.Latency10To50ms == nil { + var ret int32 + return ret + } + return *o.Latency10To50ms +} + +// GetLatency10To50msOk returns a tuple with the Latency10To50ms field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorMeasurements) GetLatency10To50msOk() (*int32, bool) { + if o == nil || o.Latency10To50ms == nil { + return nil, false + } + return o.Latency10To50ms, true +} + +// HasLatency10To50ms returns a boolean if a field has been set. +func (o *OriginInspectorMeasurements) HasLatency10To50ms() bool { + if o != nil && o.Latency10To50ms != nil { + return true + } + + return false +} + +// SetLatency10To50ms gets a reference to the given int32 and assigns it to the Latency10To50ms field. +func (o *OriginInspectorMeasurements) SetLatency10To50ms(v int32) { + o.Latency10To50ms = &v +} + +// GetLatency50To100ms returns the Latency50To100ms field value if set, zero value otherwise. +func (o *OriginInspectorMeasurements) GetLatency50To100ms() int32 { + if o == nil || o.Latency50To100ms == nil { + var ret int32 + return ret + } + return *o.Latency50To100ms +} + +// GetLatency50To100msOk returns a tuple with the Latency50To100ms field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorMeasurements) GetLatency50To100msOk() (*int32, bool) { + if o == nil || o.Latency50To100ms == nil { + return nil, false + } + return o.Latency50To100ms, true +} + +// HasLatency50To100ms returns a boolean if a field has been set. +func (o *OriginInspectorMeasurements) HasLatency50To100ms() bool { + if o != nil && o.Latency50To100ms != nil { + return true + } + + return false +} + +// SetLatency50To100ms gets a reference to the given int32 and assigns it to the Latency50To100ms field. +func (o *OriginInspectorMeasurements) SetLatency50To100ms(v int32) { + o.Latency50To100ms = &v +} + +// GetLatency100To250ms returns the Latency100To250ms field value if set, zero value otherwise. +func (o *OriginInspectorMeasurements) GetLatency100To250ms() int32 { + if o == nil || o.Latency100To250ms == nil { + var ret int32 + return ret + } + return *o.Latency100To250ms +} + +// GetLatency100To250msOk returns a tuple with the Latency100To250ms field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorMeasurements) GetLatency100To250msOk() (*int32, bool) { + if o == nil || o.Latency100To250ms == nil { + return nil, false + } + return o.Latency100To250ms, true +} + +// HasLatency100To250ms returns a boolean if a field has been set. +func (o *OriginInspectorMeasurements) HasLatency100To250ms() bool { + if o != nil && o.Latency100To250ms != nil { + return true + } + + return false +} + +// SetLatency100To250ms gets a reference to the given int32 and assigns it to the Latency100To250ms field. +func (o *OriginInspectorMeasurements) SetLatency100To250ms(v int32) { + o.Latency100To250ms = &v +} + +// GetLatency250To500ms returns the Latency250To500ms field value if set, zero value otherwise. +func (o *OriginInspectorMeasurements) GetLatency250To500ms() int32 { + if o == nil || o.Latency250To500ms == nil { + var ret int32 + return ret + } + return *o.Latency250To500ms +} + +// GetLatency250To500msOk returns a tuple with the Latency250To500ms field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorMeasurements) GetLatency250To500msOk() (*int32, bool) { + if o == nil || o.Latency250To500ms == nil { + return nil, false + } + return o.Latency250To500ms, true +} + +// HasLatency250To500ms returns a boolean if a field has been set. +func (o *OriginInspectorMeasurements) HasLatency250To500ms() bool { + if o != nil && o.Latency250To500ms != nil { + return true + } + + return false +} + +// SetLatency250To500ms gets a reference to the given int32 and assigns it to the Latency250To500ms field. +func (o *OriginInspectorMeasurements) SetLatency250To500ms(v int32) { + o.Latency250To500ms = &v +} + +// GetLatency500To1000ms returns the Latency500To1000ms field value if set, zero value otherwise. +func (o *OriginInspectorMeasurements) GetLatency500To1000ms() int32 { + if o == nil || o.Latency500To1000ms == nil { + var ret int32 + return ret + } + return *o.Latency500To1000ms +} + +// GetLatency500To1000msOk returns a tuple with the Latency500To1000ms field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorMeasurements) GetLatency500To1000msOk() (*int32, bool) { + if o == nil || o.Latency500To1000ms == nil { + return nil, false + } + return o.Latency500To1000ms, true +} + +// HasLatency500To1000ms returns a boolean if a field has been set. +func (o *OriginInspectorMeasurements) HasLatency500To1000ms() bool { + if o != nil && o.Latency500To1000ms != nil { + return true + } + + return false +} + +// SetLatency500To1000ms gets a reference to the given int32 and assigns it to the Latency500To1000ms field. +func (o *OriginInspectorMeasurements) SetLatency500To1000ms(v int32) { + o.Latency500To1000ms = &v +} + +// GetLatency1000To5000ms returns the Latency1000To5000ms field value if set, zero value otherwise. +func (o *OriginInspectorMeasurements) GetLatency1000To5000ms() int32 { + if o == nil || o.Latency1000To5000ms == nil { + var ret int32 + return ret + } + return *o.Latency1000To5000ms +} + +// GetLatency1000To5000msOk returns a tuple with the Latency1000To5000ms field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorMeasurements) GetLatency1000To5000msOk() (*int32, bool) { + if o == nil || o.Latency1000To5000ms == nil { + return nil, false + } + return o.Latency1000To5000ms, true +} + +// HasLatency1000To5000ms returns a boolean if a field has been set. +func (o *OriginInspectorMeasurements) HasLatency1000To5000ms() bool { + if o != nil && o.Latency1000To5000ms != nil { + return true + } + + return false +} + +// SetLatency1000To5000ms gets a reference to the given int32 and assigns it to the Latency1000To5000ms field. +func (o *OriginInspectorMeasurements) SetLatency1000To5000ms(v int32) { + o.Latency1000To5000ms = &v +} + +// GetLatency5000To10000ms returns the Latency5000To10000ms field value if set, zero value otherwise. +func (o *OriginInspectorMeasurements) GetLatency5000To10000ms() int32 { + if o == nil || o.Latency5000To10000ms == nil { + var ret int32 + return ret + } + return *o.Latency5000To10000ms +} + +// GetLatency5000To10000msOk returns a tuple with the Latency5000To10000ms field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorMeasurements) GetLatency5000To10000msOk() (*int32, bool) { + if o == nil || o.Latency5000To10000ms == nil { + return nil, false + } + return o.Latency5000To10000ms, true +} + +// HasLatency5000To10000ms returns a boolean if a field has been set. +func (o *OriginInspectorMeasurements) HasLatency5000To10000ms() bool { + if o != nil && o.Latency5000To10000ms != nil { + return true + } + + return false +} + +// SetLatency5000To10000ms gets a reference to the given int32 and assigns it to the Latency5000To10000ms field. +func (o *OriginInspectorMeasurements) SetLatency5000To10000ms(v int32) { + o.Latency5000To10000ms = &v +} + +// GetLatency10000To60000ms returns the Latency10000To60000ms field value if set, zero value otherwise. +func (o *OriginInspectorMeasurements) GetLatency10000To60000ms() int32 { + if o == nil || o.Latency10000To60000ms == nil { + var ret int32 + return ret + } + return *o.Latency10000To60000ms +} + +// GetLatency10000To60000msOk returns a tuple with the Latency10000To60000ms field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorMeasurements) GetLatency10000To60000msOk() (*int32, bool) { + if o == nil || o.Latency10000To60000ms == nil { + return nil, false + } + return o.Latency10000To60000ms, true +} + +// HasLatency10000To60000ms returns a boolean if a field has been set. +func (o *OriginInspectorMeasurements) HasLatency10000To60000ms() bool { + if o != nil && o.Latency10000To60000ms != nil { + return true + } + + return false +} + +// SetLatency10000To60000ms gets a reference to the given int32 and assigns it to the Latency10000To60000ms field. +func (o *OriginInspectorMeasurements) SetLatency10000To60000ms(v int32) { + o.Latency10000To60000ms = &v +} + +// GetLatency60000ms returns the Latency60000ms field value if set, zero value otherwise. +func (o *OriginInspectorMeasurements) GetLatency60000ms() int32 { + if o == nil || o.Latency60000ms == nil { + var ret int32 + return ret + } + return *o.Latency60000ms +} + +// GetLatency60000msOk returns a tuple with the Latency60000ms field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorMeasurements) GetLatency60000msOk() (*int32, bool) { + if o == nil || o.Latency60000ms == nil { + return nil, false + } + return o.Latency60000ms, true +} + +// HasLatency60000ms returns a boolean if a field has been set. +func (o *OriginInspectorMeasurements) HasLatency60000ms() bool { + if o != nil && o.Latency60000ms != nil { + return true + } + + return false +} + +// SetLatency60000ms gets a reference to the given int32 and assigns it to the Latency60000ms field. +func (o *OriginInspectorMeasurements) SetLatency60000ms(v int32) { + o.Latency60000ms = &v +} + +// GetWafResponses returns the WafResponses field value if set, zero value otherwise. +func (o *OriginInspectorMeasurements) GetWafResponses() int32 { + if o == nil || o.WafResponses == nil { + var ret int32 + return ret + } + return *o.WafResponses +} + +// GetWafResponsesOk returns a tuple with the WafResponses field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorMeasurements) GetWafResponsesOk() (*int32, bool) { + if o == nil || o.WafResponses == nil { + return nil, false + } + return o.WafResponses, true +} + +// HasWafResponses returns a boolean if a field has been set. +func (o *OriginInspectorMeasurements) HasWafResponses() bool { + if o != nil && o.WafResponses != nil { + return true + } + + return false +} + +// SetWafResponses gets a reference to the given int32 and assigns it to the WafResponses field. +func (o *OriginInspectorMeasurements) SetWafResponses(v int32) { + o.WafResponses = &v +} + +// GetWafRespHeaderBytes returns the WafRespHeaderBytes field value if set, zero value otherwise. +func (o *OriginInspectorMeasurements) GetWafRespHeaderBytes() int32 { + if o == nil || o.WafRespHeaderBytes == nil { + var ret int32 + return ret + } + return *o.WafRespHeaderBytes +} + +// GetWafRespHeaderBytesOk returns a tuple with the WafRespHeaderBytes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorMeasurements) GetWafRespHeaderBytesOk() (*int32, bool) { + if o == nil || o.WafRespHeaderBytes == nil { + return nil, false + } + return o.WafRespHeaderBytes, true +} + +// HasWafRespHeaderBytes returns a boolean if a field has been set. +func (o *OriginInspectorMeasurements) HasWafRespHeaderBytes() bool { + if o != nil && o.WafRespHeaderBytes != nil { + return true + } + + return false +} + +// SetWafRespHeaderBytes gets a reference to the given int32 and assigns it to the WafRespHeaderBytes field. +func (o *OriginInspectorMeasurements) SetWafRespHeaderBytes(v int32) { + o.WafRespHeaderBytes = &v +} + +// GetWafRespBodyBytes returns the WafRespBodyBytes field value if set, zero value otherwise. +func (o *OriginInspectorMeasurements) GetWafRespBodyBytes() int32 { + if o == nil || o.WafRespBodyBytes == nil { + var ret int32 + return ret + } + return *o.WafRespBodyBytes +} + +// GetWafRespBodyBytesOk returns a tuple with the WafRespBodyBytes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorMeasurements) GetWafRespBodyBytesOk() (*int32, bool) { + if o == nil || o.WafRespBodyBytes == nil { + return nil, false + } + return o.WafRespBodyBytes, true +} + +// HasWafRespBodyBytes returns a boolean if a field has been set. +func (o *OriginInspectorMeasurements) HasWafRespBodyBytes() bool { + if o != nil && o.WafRespBodyBytes != nil { + return true + } + + return false +} + +// SetWafRespBodyBytes gets a reference to the given int32 and assigns it to the WafRespBodyBytes field. +func (o *OriginInspectorMeasurements) SetWafRespBodyBytes(v int32) { + o.WafRespBodyBytes = &v +} + +// GetWafStatus1xx returns the WafStatus1xx field value if set, zero value otherwise. +func (o *OriginInspectorMeasurements) GetWafStatus1xx() int32 { + if o == nil || o.WafStatus1xx == nil { + var ret int32 + return ret + } + return *o.WafStatus1xx +} + +// GetWafStatus1xxOk returns a tuple with the WafStatus1xx field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorMeasurements) GetWafStatus1xxOk() (*int32, bool) { + if o == nil || o.WafStatus1xx == nil { + return nil, false + } + return o.WafStatus1xx, true +} + +// HasWafStatus1xx returns a boolean if a field has been set. +func (o *OriginInspectorMeasurements) HasWafStatus1xx() bool { + if o != nil && o.WafStatus1xx != nil { + return true + } + + return false +} + +// SetWafStatus1xx gets a reference to the given int32 and assigns it to the WafStatus1xx field. +func (o *OriginInspectorMeasurements) SetWafStatus1xx(v int32) { + o.WafStatus1xx = &v +} + +// GetWafStatus2xx returns the WafStatus2xx field value if set, zero value otherwise. +func (o *OriginInspectorMeasurements) GetWafStatus2xx() int32 { + if o == nil || o.WafStatus2xx == nil { + var ret int32 + return ret + } + return *o.WafStatus2xx +} + +// GetWafStatus2xxOk returns a tuple with the WafStatus2xx field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorMeasurements) GetWafStatus2xxOk() (*int32, bool) { + if o == nil || o.WafStatus2xx == nil { + return nil, false + } + return o.WafStatus2xx, true +} + +// HasWafStatus2xx returns a boolean if a field has been set. +func (o *OriginInspectorMeasurements) HasWafStatus2xx() bool { + if o != nil && o.WafStatus2xx != nil { + return true + } + + return false +} + +// SetWafStatus2xx gets a reference to the given int32 and assigns it to the WafStatus2xx field. +func (o *OriginInspectorMeasurements) SetWafStatus2xx(v int32) { + o.WafStatus2xx = &v +} + +// GetWafStatus3xx returns the WafStatus3xx field value if set, zero value otherwise. +func (o *OriginInspectorMeasurements) GetWafStatus3xx() int32 { + if o == nil || o.WafStatus3xx == nil { + var ret int32 + return ret + } + return *o.WafStatus3xx +} + +// GetWafStatus3xxOk returns a tuple with the WafStatus3xx field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorMeasurements) GetWafStatus3xxOk() (*int32, bool) { + if o == nil || o.WafStatus3xx == nil { + return nil, false + } + return o.WafStatus3xx, true +} + +// HasWafStatus3xx returns a boolean if a field has been set. +func (o *OriginInspectorMeasurements) HasWafStatus3xx() bool { + if o != nil && o.WafStatus3xx != nil { + return true + } + + return false +} + +// SetWafStatus3xx gets a reference to the given int32 and assigns it to the WafStatus3xx field. +func (o *OriginInspectorMeasurements) SetWafStatus3xx(v int32) { + o.WafStatus3xx = &v +} + +// GetWafStatus4xx returns the WafStatus4xx field value if set, zero value otherwise. +func (o *OriginInspectorMeasurements) GetWafStatus4xx() int32 { + if o == nil || o.WafStatus4xx == nil { + var ret int32 + return ret + } + return *o.WafStatus4xx +} + +// GetWafStatus4xxOk returns a tuple with the WafStatus4xx field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorMeasurements) GetWafStatus4xxOk() (*int32, bool) { + if o == nil || o.WafStatus4xx == nil { + return nil, false + } + return o.WafStatus4xx, true +} + +// HasWafStatus4xx returns a boolean if a field has been set. +func (o *OriginInspectorMeasurements) HasWafStatus4xx() bool { + if o != nil && o.WafStatus4xx != nil { + return true + } + + return false +} + +// SetWafStatus4xx gets a reference to the given int32 and assigns it to the WafStatus4xx field. +func (o *OriginInspectorMeasurements) SetWafStatus4xx(v int32) { + o.WafStatus4xx = &v +} + +// GetWafStatus5xx returns the WafStatus5xx field value if set, zero value otherwise. +func (o *OriginInspectorMeasurements) GetWafStatus5xx() int32 { + if o == nil || o.WafStatus5xx == nil { + var ret int32 + return ret + } + return *o.WafStatus5xx +} + +// GetWafStatus5xxOk returns a tuple with the WafStatus5xx field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorMeasurements) GetWafStatus5xxOk() (*int32, bool) { + if o == nil || o.WafStatus5xx == nil { + return nil, false + } + return o.WafStatus5xx, true +} + +// HasWafStatus5xx returns a boolean if a field has been set. +func (o *OriginInspectorMeasurements) HasWafStatus5xx() bool { + if o != nil && o.WafStatus5xx != nil { + return true + } + + return false +} + +// SetWafStatus5xx gets a reference to the given int32 and assigns it to the WafStatus5xx field. +func (o *OriginInspectorMeasurements) SetWafStatus5xx(v int32) { + o.WafStatus5xx = &v +} + +// GetWafStatus200 returns the WafStatus200 field value if set, zero value otherwise. +func (o *OriginInspectorMeasurements) GetWafStatus200() int32 { + if o == nil || o.WafStatus200 == nil { + var ret int32 + return ret + } + return *o.WafStatus200 +} + +// GetWafStatus200Ok returns a tuple with the WafStatus200 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorMeasurements) GetWafStatus200Ok() (*int32, bool) { + if o == nil || o.WafStatus200 == nil { + return nil, false + } + return o.WafStatus200, true +} + +// HasWafStatus200 returns a boolean if a field has been set. +func (o *OriginInspectorMeasurements) HasWafStatus200() bool { + if o != nil && o.WafStatus200 != nil { + return true + } + + return false +} + +// SetWafStatus200 gets a reference to the given int32 and assigns it to the WafStatus200 field. +func (o *OriginInspectorMeasurements) SetWafStatus200(v int32) { + o.WafStatus200 = &v +} + +// GetWafStatus204 returns the WafStatus204 field value if set, zero value otherwise. +func (o *OriginInspectorMeasurements) GetWafStatus204() int32 { + if o == nil || o.WafStatus204 == nil { + var ret int32 + return ret + } + return *o.WafStatus204 +} + +// GetWafStatus204Ok returns a tuple with the WafStatus204 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorMeasurements) GetWafStatus204Ok() (*int32, bool) { + if o == nil || o.WafStatus204 == nil { + return nil, false + } + return o.WafStatus204, true +} + +// HasWafStatus204 returns a boolean if a field has been set. +func (o *OriginInspectorMeasurements) HasWafStatus204() bool { + if o != nil && o.WafStatus204 != nil { + return true + } + + return false +} + +// SetWafStatus204 gets a reference to the given int32 and assigns it to the WafStatus204 field. +func (o *OriginInspectorMeasurements) SetWafStatus204(v int32) { + o.WafStatus204 = &v +} + +// GetWafStatus206 returns the WafStatus206 field value if set, zero value otherwise. +func (o *OriginInspectorMeasurements) GetWafStatus206() int32 { + if o == nil || o.WafStatus206 == nil { + var ret int32 + return ret + } + return *o.WafStatus206 +} + +// GetWafStatus206Ok returns a tuple with the WafStatus206 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorMeasurements) GetWafStatus206Ok() (*int32, bool) { + if o == nil || o.WafStatus206 == nil { + return nil, false + } + return o.WafStatus206, true +} + +// HasWafStatus206 returns a boolean if a field has been set. +func (o *OriginInspectorMeasurements) HasWafStatus206() bool { + if o != nil && o.WafStatus206 != nil { + return true + } + + return false +} + +// SetWafStatus206 gets a reference to the given int32 and assigns it to the WafStatus206 field. +func (o *OriginInspectorMeasurements) SetWafStatus206(v int32) { + o.WafStatus206 = &v +} + +// GetWafStatus301 returns the WafStatus301 field value if set, zero value otherwise. +func (o *OriginInspectorMeasurements) GetWafStatus301() int32 { + if o == nil || o.WafStatus301 == nil { + var ret int32 + return ret + } + return *o.WafStatus301 +} + +// GetWafStatus301Ok returns a tuple with the WafStatus301 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorMeasurements) GetWafStatus301Ok() (*int32, bool) { + if o == nil || o.WafStatus301 == nil { + return nil, false + } + return o.WafStatus301, true +} + +// HasWafStatus301 returns a boolean if a field has been set. +func (o *OriginInspectorMeasurements) HasWafStatus301() bool { + if o != nil && o.WafStatus301 != nil { + return true + } + + return false +} + +// SetWafStatus301 gets a reference to the given int32 and assigns it to the WafStatus301 field. +func (o *OriginInspectorMeasurements) SetWafStatus301(v int32) { + o.WafStatus301 = &v +} + +// GetWafStatus302 returns the WafStatus302 field value if set, zero value otherwise. +func (o *OriginInspectorMeasurements) GetWafStatus302() int32 { + if o == nil || o.WafStatus302 == nil { + var ret int32 + return ret + } + return *o.WafStatus302 +} + +// GetWafStatus302Ok returns a tuple with the WafStatus302 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorMeasurements) GetWafStatus302Ok() (*int32, bool) { + if o == nil || o.WafStatus302 == nil { + return nil, false + } + return o.WafStatus302, true +} + +// HasWafStatus302 returns a boolean if a field has been set. +func (o *OriginInspectorMeasurements) HasWafStatus302() bool { + if o != nil && o.WafStatus302 != nil { + return true + } + + return false +} + +// SetWafStatus302 gets a reference to the given int32 and assigns it to the WafStatus302 field. +func (o *OriginInspectorMeasurements) SetWafStatus302(v int32) { + o.WafStatus302 = &v +} + +// GetWafStatus304 returns the WafStatus304 field value if set, zero value otherwise. +func (o *OriginInspectorMeasurements) GetWafStatus304() int32 { + if o == nil || o.WafStatus304 == nil { + var ret int32 + return ret + } + return *o.WafStatus304 +} + +// GetWafStatus304Ok returns a tuple with the WafStatus304 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorMeasurements) GetWafStatus304Ok() (*int32, bool) { + if o == nil || o.WafStatus304 == nil { + return nil, false + } + return o.WafStatus304, true +} + +// HasWafStatus304 returns a boolean if a field has been set. +func (o *OriginInspectorMeasurements) HasWafStatus304() bool { + if o != nil && o.WafStatus304 != nil { + return true + } + + return false +} + +// SetWafStatus304 gets a reference to the given int32 and assigns it to the WafStatus304 field. +func (o *OriginInspectorMeasurements) SetWafStatus304(v int32) { + o.WafStatus304 = &v +} + +// GetWafStatus400 returns the WafStatus400 field value if set, zero value otherwise. +func (o *OriginInspectorMeasurements) GetWafStatus400() int32 { + if o == nil || o.WafStatus400 == nil { + var ret int32 + return ret + } + return *o.WafStatus400 +} + +// GetWafStatus400Ok returns a tuple with the WafStatus400 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorMeasurements) GetWafStatus400Ok() (*int32, bool) { + if o == nil || o.WafStatus400 == nil { + return nil, false + } + return o.WafStatus400, true +} + +// HasWafStatus400 returns a boolean if a field has been set. +func (o *OriginInspectorMeasurements) HasWafStatus400() bool { + if o != nil && o.WafStatus400 != nil { + return true + } + + return false +} + +// SetWafStatus400 gets a reference to the given int32 and assigns it to the WafStatus400 field. +func (o *OriginInspectorMeasurements) SetWafStatus400(v int32) { + o.WafStatus400 = &v +} + +// GetWafStatus401 returns the WafStatus401 field value if set, zero value otherwise. +func (o *OriginInspectorMeasurements) GetWafStatus401() int32 { + if o == nil || o.WafStatus401 == nil { + var ret int32 + return ret + } + return *o.WafStatus401 +} + +// GetWafStatus401Ok returns a tuple with the WafStatus401 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorMeasurements) GetWafStatus401Ok() (*int32, bool) { + if o == nil || o.WafStatus401 == nil { + return nil, false + } + return o.WafStatus401, true +} + +// HasWafStatus401 returns a boolean if a field has been set. +func (o *OriginInspectorMeasurements) HasWafStatus401() bool { + if o != nil && o.WafStatus401 != nil { + return true + } + + return false +} + +// SetWafStatus401 gets a reference to the given int32 and assigns it to the WafStatus401 field. +func (o *OriginInspectorMeasurements) SetWafStatus401(v int32) { + o.WafStatus401 = &v +} + +// GetWafStatus403 returns the WafStatus403 field value if set, zero value otherwise. +func (o *OriginInspectorMeasurements) GetWafStatus403() int32 { + if o == nil || o.WafStatus403 == nil { + var ret int32 + return ret + } + return *o.WafStatus403 +} + +// GetWafStatus403Ok returns a tuple with the WafStatus403 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorMeasurements) GetWafStatus403Ok() (*int32, bool) { + if o == nil || o.WafStatus403 == nil { + return nil, false + } + return o.WafStatus403, true +} + +// HasWafStatus403 returns a boolean if a field has been set. +func (o *OriginInspectorMeasurements) HasWafStatus403() bool { + if o != nil && o.WafStatus403 != nil { + return true + } + + return false +} + +// SetWafStatus403 gets a reference to the given int32 and assigns it to the WafStatus403 field. +func (o *OriginInspectorMeasurements) SetWafStatus403(v int32) { + o.WafStatus403 = &v +} + +// GetWafStatus404 returns the WafStatus404 field value if set, zero value otherwise. +func (o *OriginInspectorMeasurements) GetWafStatus404() int32 { + if o == nil || o.WafStatus404 == nil { + var ret int32 + return ret + } + return *o.WafStatus404 +} + +// GetWafStatus404Ok returns a tuple with the WafStatus404 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorMeasurements) GetWafStatus404Ok() (*int32, bool) { + if o == nil || o.WafStatus404 == nil { + return nil, false + } + return o.WafStatus404, true +} + +// HasWafStatus404 returns a boolean if a field has been set. +func (o *OriginInspectorMeasurements) HasWafStatus404() bool { + if o != nil && o.WafStatus404 != nil { + return true + } + + return false +} + +// SetWafStatus404 gets a reference to the given int32 and assigns it to the WafStatus404 field. +func (o *OriginInspectorMeasurements) SetWafStatus404(v int32) { + o.WafStatus404 = &v +} + +// GetWafStatus416 returns the WafStatus416 field value if set, zero value otherwise. +func (o *OriginInspectorMeasurements) GetWafStatus416() int32 { + if o == nil || o.WafStatus416 == nil { + var ret int32 + return ret + } + return *o.WafStatus416 +} + +// GetWafStatus416Ok returns a tuple with the WafStatus416 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorMeasurements) GetWafStatus416Ok() (*int32, bool) { + if o == nil || o.WafStatus416 == nil { + return nil, false + } + return o.WafStatus416, true +} + +// HasWafStatus416 returns a boolean if a field has been set. +func (o *OriginInspectorMeasurements) HasWafStatus416() bool { + if o != nil && o.WafStatus416 != nil { + return true + } + + return false +} + +// SetWafStatus416 gets a reference to the given int32 and assigns it to the WafStatus416 field. +func (o *OriginInspectorMeasurements) SetWafStatus416(v int32) { + o.WafStatus416 = &v +} + +// GetWafStatus429 returns the WafStatus429 field value if set, zero value otherwise. +func (o *OriginInspectorMeasurements) GetWafStatus429() int32 { + if o == nil || o.WafStatus429 == nil { + var ret int32 + return ret + } + return *o.WafStatus429 +} + +// GetWafStatus429Ok returns a tuple with the WafStatus429 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorMeasurements) GetWafStatus429Ok() (*int32, bool) { + if o == nil || o.WafStatus429 == nil { + return nil, false + } + return o.WafStatus429, true +} + +// HasWafStatus429 returns a boolean if a field has been set. +func (o *OriginInspectorMeasurements) HasWafStatus429() bool { + if o != nil && o.WafStatus429 != nil { + return true + } + + return false +} + +// SetWafStatus429 gets a reference to the given int32 and assigns it to the WafStatus429 field. +func (o *OriginInspectorMeasurements) SetWafStatus429(v int32) { + o.WafStatus429 = &v +} + +// GetWafStatus500 returns the WafStatus500 field value if set, zero value otherwise. +func (o *OriginInspectorMeasurements) GetWafStatus500() int32 { + if o == nil || o.WafStatus500 == nil { + var ret int32 + return ret + } + return *o.WafStatus500 +} + +// GetWafStatus500Ok returns a tuple with the WafStatus500 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorMeasurements) GetWafStatus500Ok() (*int32, bool) { + if o == nil || o.WafStatus500 == nil { + return nil, false + } + return o.WafStatus500, true +} + +// HasWafStatus500 returns a boolean if a field has been set. +func (o *OriginInspectorMeasurements) HasWafStatus500() bool { + if o != nil && o.WafStatus500 != nil { + return true + } + + return false +} + +// SetWafStatus500 gets a reference to the given int32 and assigns it to the WafStatus500 field. +func (o *OriginInspectorMeasurements) SetWafStatus500(v int32) { + o.WafStatus500 = &v +} + +// GetWafStatus501 returns the WafStatus501 field value if set, zero value otherwise. +func (o *OriginInspectorMeasurements) GetWafStatus501() int32 { + if o == nil || o.WafStatus501 == nil { + var ret int32 + return ret + } + return *o.WafStatus501 +} + +// GetWafStatus501Ok returns a tuple with the WafStatus501 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorMeasurements) GetWafStatus501Ok() (*int32, bool) { + if o == nil || o.WafStatus501 == nil { + return nil, false + } + return o.WafStatus501, true +} + +// HasWafStatus501 returns a boolean if a field has been set. +func (o *OriginInspectorMeasurements) HasWafStatus501() bool { + if o != nil && o.WafStatus501 != nil { + return true + } + + return false +} + +// SetWafStatus501 gets a reference to the given int32 and assigns it to the WafStatus501 field. +func (o *OriginInspectorMeasurements) SetWafStatus501(v int32) { + o.WafStatus501 = &v +} + +// GetWafStatus502 returns the WafStatus502 field value if set, zero value otherwise. +func (o *OriginInspectorMeasurements) GetWafStatus502() int32 { + if o == nil || o.WafStatus502 == nil { + var ret int32 + return ret + } + return *o.WafStatus502 +} + +// GetWafStatus502Ok returns a tuple with the WafStatus502 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorMeasurements) GetWafStatus502Ok() (*int32, bool) { + if o == nil || o.WafStatus502 == nil { + return nil, false + } + return o.WafStatus502, true +} + +// HasWafStatus502 returns a boolean if a field has been set. +func (o *OriginInspectorMeasurements) HasWafStatus502() bool { + if o != nil && o.WafStatus502 != nil { + return true + } + + return false +} + +// SetWafStatus502 gets a reference to the given int32 and assigns it to the WafStatus502 field. +func (o *OriginInspectorMeasurements) SetWafStatus502(v int32) { + o.WafStatus502 = &v +} + +// GetWafStatus503 returns the WafStatus503 field value if set, zero value otherwise. +func (o *OriginInspectorMeasurements) GetWafStatus503() int32 { + if o == nil || o.WafStatus503 == nil { + var ret int32 + return ret + } + return *o.WafStatus503 +} + +// GetWafStatus503Ok returns a tuple with the WafStatus503 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorMeasurements) GetWafStatus503Ok() (*int32, bool) { + if o == nil || o.WafStatus503 == nil { + return nil, false + } + return o.WafStatus503, true +} + +// HasWafStatus503 returns a boolean if a field has been set. +func (o *OriginInspectorMeasurements) HasWafStatus503() bool { + if o != nil && o.WafStatus503 != nil { + return true + } + + return false +} + +// SetWafStatus503 gets a reference to the given int32 and assigns it to the WafStatus503 field. +func (o *OriginInspectorMeasurements) SetWafStatus503(v int32) { + o.WafStatus503 = &v +} + +// GetWafStatus504 returns the WafStatus504 field value if set, zero value otherwise. +func (o *OriginInspectorMeasurements) GetWafStatus504() int32 { + if o == nil || o.WafStatus504 == nil { + var ret int32 + return ret + } + return *o.WafStatus504 +} + +// GetWafStatus504Ok returns a tuple with the WafStatus504 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorMeasurements) GetWafStatus504Ok() (*int32, bool) { + if o == nil || o.WafStatus504 == nil { + return nil, false + } + return o.WafStatus504, true +} + +// HasWafStatus504 returns a boolean if a field has been set. +func (o *OriginInspectorMeasurements) HasWafStatus504() bool { + if o != nil && o.WafStatus504 != nil { + return true + } + + return false +} + +// SetWafStatus504 gets a reference to the given int32 and assigns it to the WafStatus504 field. +func (o *OriginInspectorMeasurements) SetWafStatus504(v int32) { + o.WafStatus504 = &v +} + +// GetWafStatus505 returns the WafStatus505 field value if set, zero value otherwise. +func (o *OriginInspectorMeasurements) GetWafStatus505() int32 { + if o == nil || o.WafStatus505 == nil { + var ret int32 + return ret + } + return *o.WafStatus505 +} + +// GetWafStatus505Ok returns a tuple with the WafStatus505 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorMeasurements) GetWafStatus505Ok() (*int32, bool) { + if o == nil || o.WafStatus505 == nil { + return nil, false + } + return o.WafStatus505, true +} + +// HasWafStatus505 returns a boolean if a field has been set. +func (o *OriginInspectorMeasurements) HasWafStatus505() bool { + if o != nil && o.WafStatus505 != nil { + return true + } + + return false +} + +// SetWafStatus505 gets a reference to the given int32 and assigns it to the WafStatus505 field. +func (o *OriginInspectorMeasurements) SetWafStatus505(v int32) { + o.WafStatus505 = &v +} + +// GetWafLatency0To1ms returns the WafLatency0To1ms field value if set, zero value otherwise. +func (o *OriginInspectorMeasurements) GetWafLatency0To1ms() int32 { + if o == nil || o.WafLatency0To1ms == nil { + var ret int32 + return ret + } + return *o.WafLatency0To1ms +} + +// GetWafLatency0To1msOk returns a tuple with the WafLatency0To1ms field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorMeasurements) GetWafLatency0To1msOk() (*int32, bool) { + if o == nil || o.WafLatency0To1ms == nil { + return nil, false + } + return o.WafLatency0To1ms, true +} + +// HasWafLatency0To1ms returns a boolean if a field has been set. +func (o *OriginInspectorMeasurements) HasWafLatency0To1ms() bool { + if o != nil && o.WafLatency0To1ms != nil { + return true + } + + return false +} + +// SetWafLatency0To1ms gets a reference to the given int32 and assigns it to the WafLatency0To1ms field. +func (o *OriginInspectorMeasurements) SetWafLatency0To1ms(v int32) { + o.WafLatency0To1ms = &v +} + +// GetWafLatency1To5ms returns the WafLatency1To5ms field value if set, zero value otherwise. +func (o *OriginInspectorMeasurements) GetWafLatency1To5ms() int32 { + if o == nil || o.WafLatency1To5ms == nil { + var ret int32 + return ret + } + return *o.WafLatency1To5ms +} + +// GetWafLatency1To5msOk returns a tuple with the WafLatency1To5ms field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorMeasurements) GetWafLatency1To5msOk() (*int32, bool) { + if o == nil || o.WafLatency1To5ms == nil { + return nil, false + } + return o.WafLatency1To5ms, true +} + +// HasWafLatency1To5ms returns a boolean if a field has been set. +func (o *OriginInspectorMeasurements) HasWafLatency1To5ms() bool { + if o != nil && o.WafLatency1To5ms != nil { + return true + } + + return false +} + +// SetWafLatency1To5ms gets a reference to the given int32 and assigns it to the WafLatency1To5ms field. +func (o *OriginInspectorMeasurements) SetWafLatency1To5ms(v int32) { + o.WafLatency1To5ms = &v +} + +// GetWafLatency5To10ms returns the WafLatency5To10ms field value if set, zero value otherwise. +func (o *OriginInspectorMeasurements) GetWafLatency5To10ms() int32 { + if o == nil || o.WafLatency5To10ms == nil { + var ret int32 + return ret + } + return *o.WafLatency5To10ms +} + +// GetWafLatency5To10msOk returns a tuple with the WafLatency5To10ms field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorMeasurements) GetWafLatency5To10msOk() (*int32, bool) { + if o == nil || o.WafLatency5To10ms == nil { + return nil, false + } + return o.WafLatency5To10ms, true +} + +// HasWafLatency5To10ms returns a boolean if a field has been set. +func (o *OriginInspectorMeasurements) HasWafLatency5To10ms() bool { + if o != nil && o.WafLatency5To10ms != nil { + return true + } + + return false +} + +// SetWafLatency5To10ms gets a reference to the given int32 and assigns it to the WafLatency5To10ms field. +func (o *OriginInspectorMeasurements) SetWafLatency5To10ms(v int32) { + o.WafLatency5To10ms = &v +} + +// GetWafLatency10To50ms returns the WafLatency10To50ms field value if set, zero value otherwise. +func (o *OriginInspectorMeasurements) GetWafLatency10To50ms() int32 { + if o == nil || o.WafLatency10To50ms == nil { + var ret int32 + return ret + } + return *o.WafLatency10To50ms +} + +// GetWafLatency10To50msOk returns a tuple with the WafLatency10To50ms field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorMeasurements) GetWafLatency10To50msOk() (*int32, bool) { + if o == nil || o.WafLatency10To50ms == nil { + return nil, false + } + return o.WafLatency10To50ms, true +} + +// HasWafLatency10To50ms returns a boolean if a field has been set. +func (o *OriginInspectorMeasurements) HasWafLatency10To50ms() bool { + if o != nil && o.WafLatency10To50ms != nil { + return true + } + + return false +} + +// SetWafLatency10To50ms gets a reference to the given int32 and assigns it to the WafLatency10To50ms field. +func (o *OriginInspectorMeasurements) SetWafLatency10To50ms(v int32) { + o.WafLatency10To50ms = &v +} + +// GetWafLatency50To100ms returns the WafLatency50To100ms field value if set, zero value otherwise. +func (o *OriginInspectorMeasurements) GetWafLatency50To100ms() int32 { + if o == nil || o.WafLatency50To100ms == nil { + var ret int32 + return ret + } + return *o.WafLatency50To100ms +} + +// GetWafLatency50To100msOk returns a tuple with the WafLatency50To100ms field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorMeasurements) GetWafLatency50To100msOk() (*int32, bool) { + if o == nil || o.WafLatency50To100ms == nil { + return nil, false + } + return o.WafLatency50To100ms, true +} + +// HasWafLatency50To100ms returns a boolean if a field has been set. +func (o *OriginInspectorMeasurements) HasWafLatency50To100ms() bool { + if o != nil && o.WafLatency50To100ms != nil { + return true + } + + return false +} + +// SetWafLatency50To100ms gets a reference to the given int32 and assigns it to the WafLatency50To100ms field. +func (o *OriginInspectorMeasurements) SetWafLatency50To100ms(v int32) { + o.WafLatency50To100ms = &v +} + +// GetWafLatency100To250ms returns the WafLatency100To250ms field value if set, zero value otherwise. +func (o *OriginInspectorMeasurements) GetWafLatency100To250ms() int32 { + if o == nil || o.WafLatency100To250ms == nil { + var ret int32 + return ret + } + return *o.WafLatency100To250ms +} + +// GetWafLatency100To250msOk returns a tuple with the WafLatency100To250ms field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorMeasurements) GetWafLatency100To250msOk() (*int32, bool) { + if o == nil || o.WafLatency100To250ms == nil { + return nil, false + } + return o.WafLatency100To250ms, true +} + +// HasWafLatency100To250ms returns a boolean if a field has been set. +func (o *OriginInspectorMeasurements) HasWafLatency100To250ms() bool { + if o != nil && o.WafLatency100To250ms != nil { + return true + } + + return false +} + +// SetWafLatency100To250ms gets a reference to the given int32 and assigns it to the WafLatency100To250ms field. +func (o *OriginInspectorMeasurements) SetWafLatency100To250ms(v int32) { + o.WafLatency100To250ms = &v +} + +// GetWafLatency250To500ms returns the WafLatency250To500ms field value if set, zero value otherwise. +func (o *OriginInspectorMeasurements) GetWafLatency250To500ms() int32 { + if o == nil || o.WafLatency250To500ms == nil { + var ret int32 + return ret + } + return *o.WafLatency250To500ms +} + +// GetWafLatency250To500msOk returns a tuple with the WafLatency250To500ms field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorMeasurements) GetWafLatency250To500msOk() (*int32, bool) { + if o == nil || o.WafLatency250To500ms == nil { + return nil, false + } + return o.WafLatency250To500ms, true +} + +// HasWafLatency250To500ms returns a boolean if a field has been set. +func (o *OriginInspectorMeasurements) HasWafLatency250To500ms() bool { + if o != nil && o.WafLatency250To500ms != nil { + return true + } + + return false +} + +// SetWafLatency250To500ms gets a reference to the given int32 and assigns it to the WafLatency250To500ms field. +func (o *OriginInspectorMeasurements) SetWafLatency250To500ms(v int32) { + o.WafLatency250To500ms = &v +} + +// GetWafLatency500To1000ms returns the WafLatency500To1000ms field value if set, zero value otherwise. +func (o *OriginInspectorMeasurements) GetWafLatency500To1000ms() int32 { + if o == nil || o.WafLatency500To1000ms == nil { + var ret int32 + return ret + } + return *o.WafLatency500To1000ms +} + +// GetWafLatency500To1000msOk returns a tuple with the WafLatency500To1000ms field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorMeasurements) GetWafLatency500To1000msOk() (*int32, bool) { + if o == nil || o.WafLatency500To1000ms == nil { + return nil, false + } + return o.WafLatency500To1000ms, true +} + +// HasWafLatency500To1000ms returns a boolean if a field has been set. +func (o *OriginInspectorMeasurements) HasWafLatency500To1000ms() bool { + if o != nil && o.WafLatency500To1000ms != nil { + return true + } + + return false +} + +// SetWafLatency500To1000ms gets a reference to the given int32 and assigns it to the WafLatency500To1000ms field. +func (o *OriginInspectorMeasurements) SetWafLatency500To1000ms(v int32) { + o.WafLatency500To1000ms = &v +} + +// GetWafLatency1000To5000ms returns the WafLatency1000To5000ms field value if set, zero value otherwise. +func (o *OriginInspectorMeasurements) GetWafLatency1000To5000ms() int32 { + if o == nil || o.WafLatency1000To5000ms == nil { + var ret int32 + return ret + } + return *o.WafLatency1000To5000ms +} + +// GetWafLatency1000To5000msOk returns a tuple with the WafLatency1000To5000ms field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorMeasurements) GetWafLatency1000To5000msOk() (*int32, bool) { + if o == nil || o.WafLatency1000To5000ms == nil { + return nil, false + } + return o.WafLatency1000To5000ms, true +} + +// HasWafLatency1000To5000ms returns a boolean if a field has been set. +func (o *OriginInspectorMeasurements) HasWafLatency1000To5000ms() bool { + if o != nil && o.WafLatency1000To5000ms != nil { + return true + } + + return false +} + +// SetWafLatency1000To5000ms gets a reference to the given int32 and assigns it to the WafLatency1000To5000ms field. +func (o *OriginInspectorMeasurements) SetWafLatency1000To5000ms(v int32) { + o.WafLatency1000To5000ms = &v +} + +// GetWafLatency5000To10000ms returns the WafLatency5000To10000ms field value if set, zero value otherwise. +func (o *OriginInspectorMeasurements) GetWafLatency5000To10000ms() int32 { + if o == nil || o.WafLatency5000To10000ms == nil { + var ret int32 + return ret + } + return *o.WafLatency5000To10000ms +} + +// GetWafLatency5000To10000msOk returns a tuple with the WafLatency5000To10000ms field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorMeasurements) GetWafLatency5000To10000msOk() (*int32, bool) { + if o == nil || o.WafLatency5000To10000ms == nil { + return nil, false + } + return o.WafLatency5000To10000ms, true +} + +// HasWafLatency5000To10000ms returns a boolean if a field has been set. +func (o *OriginInspectorMeasurements) HasWafLatency5000To10000ms() bool { + if o != nil && o.WafLatency5000To10000ms != nil { + return true + } + + return false +} + +// SetWafLatency5000To10000ms gets a reference to the given int32 and assigns it to the WafLatency5000To10000ms field. +func (o *OriginInspectorMeasurements) SetWafLatency5000To10000ms(v int32) { + o.WafLatency5000To10000ms = &v +} + +// GetWafLatency10000To60000ms returns the WafLatency10000To60000ms field value if set, zero value otherwise. +func (o *OriginInspectorMeasurements) GetWafLatency10000To60000ms() int32 { + if o == nil || o.WafLatency10000To60000ms == nil { + var ret int32 + return ret + } + return *o.WafLatency10000To60000ms +} + +// GetWafLatency10000To60000msOk returns a tuple with the WafLatency10000To60000ms field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorMeasurements) GetWafLatency10000To60000msOk() (*int32, bool) { + if o == nil || o.WafLatency10000To60000ms == nil { + return nil, false + } + return o.WafLatency10000To60000ms, true +} + +// HasWafLatency10000To60000ms returns a boolean if a field has been set. +func (o *OriginInspectorMeasurements) HasWafLatency10000To60000ms() bool { + if o != nil && o.WafLatency10000To60000ms != nil { + return true + } + + return false +} + +// SetWafLatency10000To60000ms gets a reference to the given int32 and assigns it to the WafLatency10000To60000ms field. +func (o *OriginInspectorMeasurements) SetWafLatency10000To60000ms(v int32) { + o.WafLatency10000To60000ms = &v +} + +// GetWafLatency60000ms returns the WafLatency60000ms field value if set, zero value otherwise. +func (o *OriginInspectorMeasurements) GetWafLatency60000ms() int32 { + if o == nil || o.WafLatency60000ms == nil { + var ret int32 + return ret + } + return *o.WafLatency60000ms +} + +// GetWafLatency60000msOk returns a tuple with the WafLatency60000ms field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorMeasurements) GetWafLatency60000msOk() (*int32, bool) { + if o == nil || o.WafLatency60000ms == nil { + return nil, false + } + return o.WafLatency60000ms, true +} + +// HasWafLatency60000ms returns a boolean if a field has been set. +func (o *OriginInspectorMeasurements) HasWafLatency60000ms() bool { + if o != nil && o.WafLatency60000ms != nil { + return true + } + + return false +} + +// SetWafLatency60000ms gets a reference to the given int32 and assigns it to the WafLatency60000ms field. +func (o *OriginInspectorMeasurements) SetWafLatency60000ms(v int32) { + o.WafLatency60000ms = &v +} + +// GetComputeResponses returns the ComputeResponses field value if set, zero value otherwise. +func (o *OriginInspectorMeasurements) GetComputeResponses() int32 { + if o == nil || o.ComputeResponses == nil { + var ret int32 + return ret + } + return *o.ComputeResponses +} + +// GetComputeResponsesOk returns a tuple with the ComputeResponses field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorMeasurements) GetComputeResponsesOk() (*int32, bool) { + if o == nil || o.ComputeResponses == nil { + return nil, false + } + return o.ComputeResponses, true +} + +// HasComputeResponses returns a boolean if a field has been set. +func (o *OriginInspectorMeasurements) HasComputeResponses() bool { + if o != nil && o.ComputeResponses != nil { + return true + } + + return false +} + +// SetComputeResponses gets a reference to the given int32 and assigns it to the ComputeResponses field. +func (o *OriginInspectorMeasurements) SetComputeResponses(v int32) { + o.ComputeResponses = &v +} + +// GetComputeRespHeaderBytes returns the ComputeRespHeaderBytes field value if set, zero value otherwise. +func (o *OriginInspectorMeasurements) GetComputeRespHeaderBytes() int32 { + if o == nil || o.ComputeRespHeaderBytes == nil { + var ret int32 + return ret + } + return *o.ComputeRespHeaderBytes +} + +// GetComputeRespHeaderBytesOk returns a tuple with the ComputeRespHeaderBytes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorMeasurements) GetComputeRespHeaderBytesOk() (*int32, bool) { + if o == nil || o.ComputeRespHeaderBytes == nil { + return nil, false + } + return o.ComputeRespHeaderBytes, true +} + +// HasComputeRespHeaderBytes returns a boolean if a field has been set. +func (o *OriginInspectorMeasurements) HasComputeRespHeaderBytes() bool { + if o != nil && o.ComputeRespHeaderBytes != nil { + return true + } + + return false +} + +// SetComputeRespHeaderBytes gets a reference to the given int32 and assigns it to the ComputeRespHeaderBytes field. +func (o *OriginInspectorMeasurements) SetComputeRespHeaderBytes(v int32) { + o.ComputeRespHeaderBytes = &v +} + +// GetComputeRespBodyBytes returns the ComputeRespBodyBytes field value if set, zero value otherwise. +func (o *OriginInspectorMeasurements) GetComputeRespBodyBytes() int32 { + if o == nil || o.ComputeRespBodyBytes == nil { + var ret int32 + return ret + } + return *o.ComputeRespBodyBytes +} + +// GetComputeRespBodyBytesOk returns a tuple with the ComputeRespBodyBytes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorMeasurements) GetComputeRespBodyBytesOk() (*int32, bool) { + if o == nil || o.ComputeRespBodyBytes == nil { + return nil, false + } + return o.ComputeRespBodyBytes, true +} + +// HasComputeRespBodyBytes returns a boolean if a field has been set. +func (o *OriginInspectorMeasurements) HasComputeRespBodyBytes() bool { + if o != nil && o.ComputeRespBodyBytes != nil { + return true + } + + return false +} + +// SetComputeRespBodyBytes gets a reference to the given int32 and assigns it to the ComputeRespBodyBytes field. +func (o *OriginInspectorMeasurements) SetComputeRespBodyBytes(v int32) { + o.ComputeRespBodyBytes = &v +} + +// GetComputeStatus1xx returns the ComputeStatus1xx field value if set, zero value otherwise. +func (o *OriginInspectorMeasurements) GetComputeStatus1xx() int32 { + if o == nil || o.ComputeStatus1xx == nil { + var ret int32 + return ret + } + return *o.ComputeStatus1xx +} + +// GetComputeStatus1xxOk returns a tuple with the ComputeStatus1xx field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorMeasurements) GetComputeStatus1xxOk() (*int32, bool) { + if o == nil || o.ComputeStatus1xx == nil { + return nil, false + } + return o.ComputeStatus1xx, true +} + +// HasComputeStatus1xx returns a boolean if a field has been set. +func (o *OriginInspectorMeasurements) HasComputeStatus1xx() bool { + if o != nil && o.ComputeStatus1xx != nil { + return true + } + + return false +} + +// SetComputeStatus1xx gets a reference to the given int32 and assigns it to the ComputeStatus1xx field. +func (o *OriginInspectorMeasurements) SetComputeStatus1xx(v int32) { + o.ComputeStatus1xx = &v +} + +// GetComputeStatus2xx returns the ComputeStatus2xx field value if set, zero value otherwise. +func (o *OriginInspectorMeasurements) GetComputeStatus2xx() int32 { + if o == nil || o.ComputeStatus2xx == nil { + var ret int32 + return ret + } + return *o.ComputeStatus2xx +} + +// GetComputeStatus2xxOk returns a tuple with the ComputeStatus2xx field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorMeasurements) GetComputeStatus2xxOk() (*int32, bool) { + if o == nil || o.ComputeStatus2xx == nil { + return nil, false + } + return o.ComputeStatus2xx, true +} + +// HasComputeStatus2xx returns a boolean if a field has been set. +func (o *OriginInspectorMeasurements) HasComputeStatus2xx() bool { + if o != nil && o.ComputeStatus2xx != nil { + return true + } + + return false +} + +// SetComputeStatus2xx gets a reference to the given int32 and assigns it to the ComputeStatus2xx field. +func (o *OriginInspectorMeasurements) SetComputeStatus2xx(v int32) { + o.ComputeStatus2xx = &v +} + +// GetComputeStatus3xx returns the ComputeStatus3xx field value if set, zero value otherwise. +func (o *OriginInspectorMeasurements) GetComputeStatus3xx() int32 { + if o == nil || o.ComputeStatus3xx == nil { + var ret int32 + return ret + } + return *o.ComputeStatus3xx +} + +// GetComputeStatus3xxOk returns a tuple with the ComputeStatus3xx field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorMeasurements) GetComputeStatus3xxOk() (*int32, bool) { + if o == nil || o.ComputeStatus3xx == nil { + return nil, false + } + return o.ComputeStatus3xx, true +} + +// HasComputeStatus3xx returns a boolean if a field has been set. +func (o *OriginInspectorMeasurements) HasComputeStatus3xx() bool { + if o != nil && o.ComputeStatus3xx != nil { + return true + } + + return false +} + +// SetComputeStatus3xx gets a reference to the given int32 and assigns it to the ComputeStatus3xx field. +func (o *OriginInspectorMeasurements) SetComputeStatus3xx(v int32) { + o.ComputeStatus3xx = &v +} + +// GetComputeStatus4xx returns the ComputeStatus4xx field value if set, zero value otherwise. +func (o *OriginInspectorMeasurements) GetComputeStatus4xx() int32 { + if o == nil || o.ComputeStatus4xx == nil { + var ret int32 + return ret + } + return *o.ComputeStatus4xx +} + +// GetComputeStatus4xxOk returns a tuple with the ComputeStatus4xx field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorMeasurements) GetComputeStatus4xxOk() (*int32, bool) { + if o == nil || o.ComputeStatus4xx == nil { + return nil, false + } + return o.ComputeStatus4xx, true +} + +// HasComputeStatus4xx returns a boolean if a field has been set. +func (o *OriginInspectorMeasurements) HasComputeStatus4xx() bool { + if o != nil && o.ComputeStatus4xx != nil { + return true + } + + return false +} + +// SetComputeStatus4xx gets a reference to the given int32 and assigns it to the ComputeStatus4xx field. +func (o *OriginInspectorMeasurements) SetComputeStatus4xx(v int32) { + o.ComputeStatus4xx = &v +} + +// GetComputeStatus5xx returns the ComputeStatus5xx field value if set, zero value otherwise. +func (o *OriginInspectorMeasurements) GetComputeStatus5xx() int32 { + if o == nil || o.ComputeStatus5xx == nil { + var ret int32 + return ret + } + return *o.ComputeStatus5xx +} + +// GetComputeStatus5xxOk returns a tuple with the ComputeStatus5xx field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorMeasurements) GetComputeStatus5xxOk() (*int32, bool) { + if o == nil || o.ComputeStatus5xx == nil { + return nil, false + } + return o.ComputeStatus5xx, true +} + +// HasComputeStatus5xx returns a boolean if a field has been set. +func (o *OriginInspectorMeasurements) HasComputeStatus5xx() bool { + if o != nil && o.ComputeStatus5xx != nil { + return true + } + + return false +} + +// SetComputeStatus5xx gets a reference to the given int32 and assigns it to the ComputeStatus5xx field. +func (o *OriginInspectorMeasurements) SetComputeStatus5xx(v int32) { + o.ComputeStatus5xx = &v +} + +// GetComputeStatus200 returns the ComputeStatus200 field value if set, zero value otherwise. +func (o *OriginInspectorMeasurements) GetComputeStatus200() int32 { + if o == nil || o.ComputeStatus200 == nil { + var ret int32 + return ret + } + return *o.ComputeStatus200 +} + +// GetComputeStatus200Ok returns a tuple with the ComputeStatus200 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorMeasurements) GetComputeStatus200Ok() (*int32, bool) { + if o == nil || o.ComputeStatus200 == nil { + return nil, false + } + return o.ComputeStatus200, true +} + +// HasComputeStatus200 returns a boolean if a field has been set. +func (o *OriginInspectorMeasurements) HasComputeStatus200() bool { + if o != nil && o.ComputeStatus200 != nil { + return true + } + + return false +} + +// SetComputeStatus200 gets a reference to the given int32 and assigns it to the ComputeStatus200 field. +func (o *OriginInspectorMeasurements) SetComputeStatus200(v int32) { + o.ComputeStatus200 = &v +} + +// GetComputeStatus204 returns the ComputeStatus204 field value if set, zero value otherwise. +func (o *OriginInspectorMeasurements) GetComputeStatus204() int32 { + if o == nil || o.ComputeStatus204 == nil { + var ret int32 + return ret + } + return *o.ComputeStatus204 +} + +// GetComputeStatus204Ok returns a tuple with the ComputeStatus204 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorMeasurements) GetComputeStatus204Ok() (*int32, bool) { + if o == nil || o.ComputeStatus204 == nil { + return nil, false + } + return o.ComputeStatus204, true +} + +// HasComputeStatus204 returns a boolean if a field has been set. +func (o *OriginInspectorMeasurements) HasComputeStatus204() bool { + if o != nil && o.ComputeStatus204 != nil { + return true + } + + return false +} + +// SetComputeStatus204 gets a reference to the given int32 and assigns it to the ComputeStatus204 field. +func (o *OriginInspectorMeasurements) SetComputeStatus204(v int32) { + o.ComputeStatus204 = &v +} + +// GetComputeStatus206 returns the ComputeStatus206 field value if set, zero value otherwise. +func (o *OriginInspectorMeasurements) GetComputeStatus206() int32 { + if o == nil || o.ComputeStatus206 == nil { + var ret int32 + return ret + } + return *o.ComputeStatus206 +} + +// GetComputeStatus206Ok returns a tuple with the ComputeStatus206 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorMeasurements) GetComputeStatus206Ok() (*int32, bool) { + if o == nil || o.ComputeStatus206 == nil { + return nil, false + } + return o.ComputeStatus206, true +} + +// HasComputeStatus206 returns a boolean if a field has been set. +func (o *OriginInspectorMeasurements) HasComputeStatus206() bool { + if o != nil && o.ComputeStatus206 != nil { + return true + } + + return false +} + +// SetComputeStatus206 gets a reference to the given int32 and assigns it to the ComputeStatus206 field. +func (o *OriginInspectorMeasurements) SetComputeStatus206(v int32) { + o.ComputeStatus206 = &v +} + +// GetComputeStatus301 returns the ComputeStatus301 field value if set, zero value otherwise. +func (o *OriginInspectorMeasurements) GetComputeStatus301() int32 { + if o == nil || o.ComputeStatus301 == nil { + var ret int32 + return ret + } + return *o.ComputeStatus301 +} + +// GetComputeStatus301Ok returns a tuple with the ComputeStatus301 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorMeasurements) GetComputeStatus301Ok() (*int32, bool) { + if o == nil || o.ComputeStatus301 == nil { + return nil, false + } + return o.ComputeStatus301, true +} + +// HasComputeStatus301 returns a boolean if a field has been set. +func (o *OriginInspectorMeasurements) HasComputeStatus301() bool { + if o != nil && o.ComputeStatus301 != nil { + return true + } + + return false +} + +// SetComputeStatus301 gets a reference to the given int32 and assigns it to the ComputeStatus301 field. +func (o *OriginInspectorMeasurements) SetComputeStatus301(v int32) { + o.ComputeStatus301 = &v +} + +// GetComputeStatus302 returns the ComputeStatus302 field value if set, zero value otherwise. +func (o *OriginInspectorMeasurements) GetComputeStatus302() int32 { + if o == nil || o.ComputeStatus302 == nil { + var ret int32 + return ret + } + return *o.ComputeStatus302 +} + +// GetComputeStatus302Ok returns a tuple with the ComputeStatus302 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorMeasurements) GetComputeStatus302Ok() (*int32, bool) { + if o == nil || o.ComputeStatus302 == nil { + return nil, false + } + return o.ComputeStatus302, true +} + +// HasComputeStatus302 returns a boolean if a field has been set. +func (o *OriginInspectorMeasurements) HasComputeStatus302() bool { + if o != nil && o.ComputeStatus302 != nil { + return true + } + + return false +} + +// SetComputeStatus302 gets a reference to the given int32 and assigns it to the ComputeStatus302 field. +func (o *OriginInspectorMeasurements) SetComputeStatus302(v int32) { + o.ComputeStatus302 = &v +} + +// GetComputeStatus304 returns the ComputeStatus304 field value if set, zero value otherwise. +func (o *OriginInspectorMeasurements) GetComputeStatus304() int32 { + if o == nil || o.ComputeStatus304 == nil { + var ret int32 + return ret + } + return *o.ComputeStatus304 +} + +// GetComputeStatus304Ok returns a tuple with the ComputeStatus304 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorMeasurements) GetComputeStatus304Ok() (*int32, bool) { + if o == nil || o.ComputeStatus304 == nil { + return nil, false + } + return o.ComputeStatus304, true +} + +// HasComputeStatus304 returns a boolean if a field has been set. +func (o *OriginInspectorMeasurements) HasComputeStatus304() bool { + if o != nil && o.ComputeStatus304 != nil { + return true + } + + return false +} + +// SetComputeStatus304 gets a reference to the given int32 and assigns it to the ComputeStatus304 field. +func (o *OriginInspectorMeasurements) SetComputeStatus304(v int32) { + o.ComputeStatus304 = &v +} + +// GetComputeStatus400 returns the ComputeStatus400 field value if set, zero value otherwise. +func (o *OriginInspectorMeasurements) GetComputeStatus400() int32 { + if o == nil || o.ComputeStatus400 == nil { + var ret int32 + return ret + } + return *o.ComputeStatus400 +} + +// GetComputeStatus400Ok returns a tuple with the ComputeStatus400 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorMeasurements) GetComputeStatus400Ok() (*int32, bool) { + if o == nil || o.ComputeStatus400 == nil { + return nil, false + } + return o.ComputeStatus400, true +} + +// HasComputeStatus400 returns a boolean if a field has been set. +func (o *OriginInspectorMeasurements) HasComputeStatus400() bool { + if o != nil && o.ComputeStatus400 != nil { + return true + } + + return false +} + +// SetComputeStatus400 gets a reference to the given int32 and assigns it to the ComputeStatus400 field. +func (o *OriginInspectorMeasurements) SetComputeStatus400(v int32) { + o.ComputeStatus400 = &v +} + +// GetComputeStatus401 returns the ComputeStatus401 field value if set, zero value otherwise. +func (o *OriginInspectorMeasurements) GetComputeStatus401() int32 { + if o == nil || o.ComputeStatus401 == nil { + var ret int32 + return ret + } + return *o.ComputeStatus401 +} + +// GetComputeStatus401Ok returns a tuple with the ComputeStatus401 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorMeasurements) GetComputeStatus401Ok() (*int32, bool) { + if o == nil || o.ComputeStatus401 == nil { + return nil, false + } + return o.ComputeStatus401, true +} + +// HasComputeStatus401 returns a boolean if a field has been set. +func (o *OriginInspectorMeasurements) HasComputeStatus401() bool { + if o != nil && o.ComputeStatus401 != nil { + return true + } + + return false +} + +// SetComputeStatus401 gets a reference to the given int32 and assigns it to the ComputeStatus401 field. +func (o *OriginInspectorMeasurements) SetComputeStatus401(v int32) { + o.ComputeStatus401 = &v +} + +// GetComputeStatus403 returns the ComputeStatus403 field value if set, zero value otherwise. +func (o *OriginInspectorMeasurements) GetComputeStatus403() int32 { + if o == nil || o.ComputeStatus403 == nil { + var ret int32 + return ret + } + return *o.ComputeStatus403 +} + +// GetComputeStatus403Ok returns a tuple with the ComputeStatus403 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorMeasurements) GetComputeStatus403Ok() (*int32, bool) { + if o == nil || o.ComputeStatus403 == nil { + return nil, false + } + return o.ComputeStatus403, true +} + +// HasComputeStatus403 returns a boolean if a field has been set. +func (o *OriginInspectorMeasurements) HasComputeStatus403() bool { + if o != nil && o.ComputeStatus403 != nil { + return true + } + + return false +} + +// SetComputeStatus403 gets a reference to the given int32 and assigns it to the ComputeStatus403 field. +func (o *OriginInspectorMeasurements) SetComputeStatus403(v int32) { + o.ComputeStatus403 = &v +} + +// GetComputeStatus404 returns the ComputeStatus404 field value if set, zero value otherwise. +func (o *OriginInspectorMeasurements) GetComputeStatus404() int32 { + if o == nil || o.ComputeStatus404 == nil { + var ret int32 + return ret + } + return *o.ComputeStatus404 +} + +// GetComputeStatus404Ok returns a tuple with the ComputeStatus404 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorMeasurements) GetComputeStatus404Ok() (*int32, bool) { + if o == nil || o.ComputeStatus404 == nil { + return nil, false + } + return o.ComputeStatus404, true +} + +// HasComputeStatus404 returns a boolean if a field has been set. +func (o *OriginInspectorMeasurements) HasComputeStatus404() bool { + if o != nil && o.ComputeStatus404 != nil { + return true + } + + return false +} + +// SetComputeStatus404 gets a reference to the given int32 and assigns it to the ComputeStatus404 field. +func (o *OriginInspectorMeasurements) SetComputeStatus404(v int32) { + o.ComputeStatus404 = &v +} + +// GetComputeStatus416 returns the ComputeStatus416 field value if set, zero value otherwise. +func (o *OriginInspectorMeasurements) GetComputeStatus416() int32 { + if o == nil || o.ComputeStatus416 == nil { + var ret int32 + return ret + } + return *o.ComputeStatus416 +} + +// GetComputeStatus416Ok returns a tuple with the ComputeStatus416 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorMeasurements) GetComputeStatus416Ok() (*int32, bool) { + if o == nil || o.ComputeStatus416 == nil { + return nil, false + } + return o.ComputeStatus416, true +} + +// HasComputeStatus416 returns a boolean if a field has been set. +func (o *OriginInspectorMeasurements) HasComputeStatus416() bool { + if o != nil && o.ComputeStatus416 != nil { + return true + } + + return false +} + +// SetComputeStatus416 gets a reference to the given int32 and assigns it to the ComputeStatus416 field. +func (o *OriginInspectorMeasurements) SetComputeStatus416(v int32) { + o.ComputeStatus416 = &v +} + +// GetComputeStatus429 returns the ComputeStatus429 field value if set, zero value otherwise. +func (o *OriginInspectorMeasurements) GetComputeStatus429() int32 { + if o == nil || o.ComputeStatus429 == nil { + var ret int32 + return ret + } + return *o.ComputeStatus429 +} + +// GetComputeStatus429Ok returns a tuple with the ComputeStatus429 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorMeasurements) GetComputeStatus429Ok() (*int32, bool) { + if o == nil || o.ComputeStatus429 == nil { + return nil, false + } + return o.ComputeStatus429, true +} + +// HasComputeStatus429 returns a boolean if a field has been set. +func (o *OriginInspectorMeasurements) HasComputeStatus429() bool { + if o != nil && o.ComputeStatus429 != nil { + return true + } + + return false +} + +// SetComputeStatus429 gets a reference to the given int32 and assigns it to the ComputeStatus429 field. +func (o *OriginInspectorMeasurements) SetComputeStatus429(v int32) { + o.ComputeStatus429 = &v +} + +// GetComputeStatus500 returns the ComputeStatus500 field value if set, zero value otherwise. +func (o *OriginInspectorMeasurements) GetComputeStatus500() int32 { + if o == nil || o.ComputeStatus500 == nil { + var ret int32 + return ret + } + return *o.ComputeStatus500 +} + +// GetComputeStatus500Ok returns a tuple with the ComputeStatus500 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorMeasurements) GetComputeStatus500Ok() (*int32, bool) { + if o == nil || o.ComputeStatus500 == nil { + return nil, false + } + return o.ComputeStatus500, true +} + +// HasComputeStatus500 returns a boolean if a field has been set. +func (o *OriginInspectorMeasurements) HasComputeStatus500() bool { + if o != nil && o.ComputeStatus500 != nil { + return true + } + + return false +} + +// SetComputeStatus500 gets a reference to the given int32 and assigns it to the ComputeStatus500 field. +func (o *OriginInspectorMeasurements) SetComputeStatus500(v int32) { + o.ComputeStatus500 = &v +} + +// GetComputeStatus501 returns the ComputeStatus501 field value if set, zero value otherwise. +func (o *OriginInspectorMeasurements) GetComputeStatus501() int32 { + if o == nil || o.ComputeStatus501 == nil { + var ret int32 + return ret + } + return *o.ComputeStatus501 +} + +// GetComputeStatus501Ok returns a tuple with the ComputeStatus501 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorMeasurements) GetComputeStatus501Ok() (*int32, bool) { + if o == nil || o.ComputeStatus501 == nil { + return nil, false + } + return o.ComputeStatus501, true +} + +// HasComputeStatus501 returns a boolean if a field has been set. +func (o *OriginInspectorMeasurements) HasComputeStatus501() bool { + if o != nil && o.ComputeStatus501 != nil { + return true + } + + return false +} + +// SetComputeStatus501 gets a reference to the given int32 and assigns it to the ComputeStatus501 field. +func (o *OriginInspectorMeasurements) SetComputeStatus501(v int32) { + o.ComputeStatus501 = &v +} + +// GetComputeStatus502 returns the ComputeStatus502 field value if set, zero value otherwise. +func (o *OriginInspectorMeasurements) GetComputeStatus502() int32 { + if o == nil || o.ComputeStatus502 == nil { + var ret int32 + return ret + } + return *o.ComputeStatus502 +} + +// GetComputeStatus502Ok returns a tuple with the ComputeStatus502 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorMeasurements) GetComputeStatus502Ok() (*int32, bool) { + if o == nil || o.ComputeStatus502 == nil { + return nil, false + } + return o.ComputeStatus502, true +} + +// HasComputeStatus502 returns a boolean if a field has been set. +func (o *OriginInspectorMeasurements) HasComputeStatus502() bool { + if o != nil && o.ComputeStatus502 != nil { + return true + } + + return false +} + +// SetComputeStatus502 gets a reference to the given int32 and assigns it to the ComputeStatus502 field. +func (o *OriginInspectorMeasurements) SetComputeStatus502(v int32) { + o.ComputeStatus502 = &v +} + +// GetComputeStatus503 returns the ComputeStatus503 field value if set, zero value otherwise. +func (o *OriginInspectorMeasurements) GetComputeStatus503() int32 { + if o == nil || o.ComputeStatus503 == nil { + var ret int32 + return ret + } + return *o.ComputeStatus503 +} + +// GetComputeStatus503Ok returns a tuple with the ComputeStatus503 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorMeasurements) GetComputeStatus503Ok() (*int32, bool) { + if o == nil || o.ComputeStatus503 == nil { + return nil, false + } + return o.ComputeStatus503, true +} + +// HasComputeStatus503 returns a boolean if a field has been set. +func (o *OriginInspectorMeasurements) HasComputeStatus503() bool { + if o != nil && o.ComputeStatus503 != nil { + return true + } + + return false +} + +// SetComputeStatus503 gets a reference to the given int32 and assigns it to the ComputeStatus503 field. +func (o *OriginInspectorMeasurements) SetComputeStatus503(v int32) { + o.ComputeStatus503 = &v +} + +// GetComputeStatus504 returns the ComputeStatus504 field value if set, zero value otherwise. +func (o *OriginInspectorMeasurements) GetComputeStatus504() int32 { + if o == nil || o.ComputeStatus504 == nil { + var ret int32 + return ret + } + return *o.ComputeStatus504 +} + +// GetComputeStatus504Ok returns a tuple with the ComputeStatus504 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorMeasurements) GetComputeStatus504Ok() (*int32, bool) { + if o == nil || o.ComputeStatus504 == nil { + return nil, false + } + return o.ComputeStatus504, true +} + +// HasComputeStatus504 returns a boolean if a field has been set. +func (o *OriginInspectorMeasurements) HasComputeStatus504() bool { + if o != nil && o.ComputeStatus504 != nil { + return true + } + + return false +} + +// SetComputeStatus504 gets a reference to the given int32 and assigns it to the ComputeStatus504 field. +func (o *OriginInspectorMeasurements) SetComputeStatus504(v int32) { + o.ComputeStatus504 = &v +} + +// GetComputeStatus505 returns the ComputeStatus505 field value if set, zero value otherwise. +func (o *OriginInspectorMeasurements) GetComputeStatus505() int32 { + if o == nil || o.ComputeStatus505 == nil { + var ret int32 + return ret + } + return *o.ComputeStatus505 +} + +// GetComputeStatus505Ok returns a tuple with the ComputeStatus505 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorMeasurements) GetComputeStatus505Ok() (*int32, bool) { + if o == nil || o.ComputeStatus505 == nil { + return nil, false + } + return o.ComputeStatus505, true +} + +// HasComputeStatus505 returns a boolean if a field has been set. +func (o *OriginInspectorMeasurements) HasComputeStatus505() bool { + if o != nil && o.ComputeStatus505 != nil { + return true + } + + return false +} + +// SetComputeStatus505 gets a reference to the given int32 and assigns it to the ComputeStatus505 field. +func (o *OriginInspectorMeasurements) SetComputeStatus505(v int32) { + o.ComputeStatus505 = &v +} + +// GetComputeLatency0To1ms returns the ComputeLatency0To1ms field value if set, zero value otherwise. +func (o *OriginInspectorMeasurements) GetComputeLatency0To1ms() int32 { + if o == nil || o.ComputeLatency0To1ms == nil { + var ret int32 + return ret + } + return *o.ComputeLatency0To1ms +} + +// GetComputeLatency0To1msOk returns a tuple with the ComputeLatency0To1ms field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorMeasurements) GetComputeLatency0To1msOk() (*int32, bool) { + if o == nil || o.ComputeLatency0To1ms == nil { + return nil, false + } + return o.ComputeLatency0To1ms, true +} + +// HasComputeLatency0To1ms returns a boolean if a field has been set. +func (o *OriginInspectorMeasurements) HasComputeLatency0To1ms() bool { + if o != nil && o.ComputeLatency0To1ms != nil { + return true + } + + return false +} + +// SetComputeLatency0To1ms gets a reference to the given int32 and assigns it to the ComputeLatency0To1ms field. +func (o *OriginInspectorMeasurements) SetComputeLatency0To1ms(v int32) { + o.ComputeLatency0To1ms = &v +} + +// GetComputeLatency1To5ms returns the ComputeLatency1To5ms field value if set, zero value otherwise. +func (o *OriginInspectorMeasurements) GetComputeLatency1To5ms() int32 { + if o == nil || o.ComputeLatency1To5ms == nil { + var ret int32 + return ret + } + return *o.ComputeLatency1To5ms +} + +// GetComputeLatency1To5msOk returns a tuple with the ComputeLatency1To5ms field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorMeasurements) GetComputeLatency1To5msOk() (*int32, bool) { + if o == nil || o.ComputeLatency1To5ms == nil { + return nil, false + } + return o.ComputeLatency1To5ms, true +} + +// HasComputeLatency1To5ms returns a boolean if a field has been set. +func (o *OriginInspectorMeasurements) HasComputeLatency1To5ms() bool { + if o != nil && o.ComputeLatency1To5ms != nil { + return true + } + + return false +} + +// SetComputeLatency1To5ms gets a reference to the given int32 and assigns it to the ComputeLatency1To5ms field. +func (o *OriginInspectorMeasurements) SetComputeLatency1To5ms(v int32) { + o.ComputeLatency1To5ms = &v +} + +// GetComputeLatency5To10ms returns the ComputeLatency5To10ms field value if set, zero value otherwise. +func (o *OriginInspectorMeasurements) GetComputeLatency5To10ms() int32 { + if o == nil || o.ComputeLatency5To10ms == nil { + var ret int32 + return ret + } + return *o.ComputeLatency5To10ms +} + +// GetComputeLatency5To10msOk returns a tuple with the ComputeLatency5To10ms field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorMeasurements) GetComputeLatency5To10msOk() (*int32, bool) { + if o == nil || o.ComputeLatency5To10ms == nil { + return nil, false + } + return o.ComputeLatency5To10ms, true +} + +// HasComputeLatency5To10ms returns a boolean if a field has been set. +func (o *OriginInspectorMeasurements) HasComputeLatency5To10ms() bool { + if o != nil && o.ComputeLatency5To10ms != nil { + return true + } + + return false +} + +// SetComputeLatency5To10ms gets a reference to the given int32 and assigns it to the ComputeLatency5To10ms field. +func (o *OriginInspectorMeasurements) SetComputeLatency5To10ms(v int32) { + o.ComputeLatency5To10ms = &v +} + +// GetComputeLatency10To50ms returns the ComputeLatency10To50ms field value if set, zero value otherwise. +func (o *OriginInspectorMeasurements) GetComputeLatency10To50ms() int32 { + if o == nil || o.ComputeLatency10To50ms == nil { + var ret int32 + return ret + } + return *o.ComputeLatency10To50ms +} + +// GetComputeLatency10To50msOk returns a tuple with the ComputeLatency10To50ms field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorMeasurements) GetComputeLatency10To50msOk() (*int32, bool) { + if o == nil || o.ComputeLatency10To50ms == nil { + return nil, false + } + return o.ComputeLatency10To50ms, true +} + +// HasComputeLatency10To50ms returns a boolean if a field has been set. +func (o *OriginInspectorMeasurements) HasComputeLatency10To50ms() bool { + if o != nil && o.ComputeLatency10To50ms != nil { + return true + } + + return false +} + +// SetComputeLatency10To50ms gets a reference to the given int32 and assigns it to the ComputeLatency10To50ms field. +func (o *OriginInspectorMeasurements) SetComputeLatency10To50ms(v int32) { + o.ComputeLatency10To50ms = &v +} + +// GetComputeLatency50To100ms returns the ComputeLatency50To100ms field value if set, zero value otherwise. +func (o *OriginInspectorMeasurements) GetComputeLatency50To100ms() int32 { + if o == nil || o.ComputeLatency50To100ms == nil { + var ret int32 + return ret + } + return *o.ComputeLatency50To100ms +} + +// GetComputeLatency50To100msOk returns a tuple with the ComputeLatency50To100ms field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorMeasurements) GetComputeLatency50To100msOk() (*int32, bool) { + if o == nil || o.ComputeLatency50To100ms == nil { + return nil, false + } + return o.ComputeLatency50To100ms, true +} + +// HasComputeLatency50To100ms returns a boolean if a field has been set. +func (o *OriginInspectorMeasurements) HasComputeLatency50To100ms() bool { + if o != nil && o.ComputeLatency50To100ms != nil { + return true + } + + return false +} + +// SetComputeLatency50To100ms gets a reference to the given int32 and assigns it to the ComputeLatency50To100ms field. +func (o *OriginInspectorMeasurements) SetComputeLatency50To100ms(v int32) { + o.ComputeLatency50To100ms = &v +} + +// GetComputeLatency100To250ms returns the ComputeLatency100To250ms field value if set, zero value otherwise. +func (o *OriginInspectorMeasurements) GetComputeLatency100To250ms() int32 { + if o == nil || o.ComputeLatency100To250ms == nil { + var ret int32 + return ret + } + return *o.ComputeLatency100To250ms +} + +// GetComputeLatency100To250msOk returns a tuple with the ComputeLatency100To250ms field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorMeasurements) GetComputeLatency100To250msOk() (*int32, bool) { + if o == nil || o.ComputeLatency100To250ms == nil { + return nil, false + } + return o.ComputeLatency100To250ms, true +} + +// HasComputeLatency100To250ms returns a boolean if a field has been set. +func (o *OriginInspectorMeasurements) HasComputeLatency100To250ms() bool { + if o != nil && o.ComputeLatency100To250ms != nil { + return true + } + + return false +} + +// SetComputeLatency100To250ms gets a reference to the given int32 and assigns it to the ComputeLatency100To250ms field. +func (o *OriginInspectorMeasurements) SetComputeLatency100To250ms(v int32) { + o.ComputeLatency100To250ms = &v +} + +// GetComputeLatency250To500ms returns the ComputeLatency250To500ms field value if set, zero value otherwise. +func (o *OriginInspectorMeasurements) GetComputeLatency250To500ms() int32 { + if o == nil || o.ComputeLatency250To500ms == nil { + var ret int32 + return ret + } + return *o.ComputeLatency250To500ms +} + +// GetComputeLatency250To500msOk returns a tuple with the ComputeLatency250To500ms field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorMeasurements) GetComputeLatency250To500msOk() (*int32, bool) { + if o == nil || o.ComputeLatency250To500ms == nil { + return nil, false + } + return o.ComputeLatency250To500ms, true +} + +// HasComputeLatency250To500ms returns a boolean if a field has been set. +func (o *OriginInspectorMeasurements) HasComputeLatency250To500ms() bool { + if o != nil && o.ComputeLatency250To500ms != nil { + return true + } + + return false +} + +// SetComputeLatency250To500ms gets a reference to the given int32 and assigns it to the ComputeLatency250To500ms field. +func (o *OriginInspectorMeasurements) SetComputeLatency250To500ms(v int32) { + o.ComputeLatency250To500ms = &v +} + +// GetComputeLatency500To1000ms returns the ComputeLatency500To1000ms field value if set, zero value otherwise. +func (o *OriginInspectorMeasurements) GetComputeLatency500To1000ms() int32 { + if o == nil || o.ComputeLatency500To1000ms == nil { + var ret int32 + return ret + } + return *o.ComputeLatency500To1000ms +} + +// GetComputeLatency500To1000msOk returns a tuple with the ComputeLatency500To1000ms field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorMeasurements) GetComputeLatency500To1000msOk() (*int32, bool) { + if o == nil || o.ComputeLatency500To1000ms == nil { + return nil, false + } + return o.ComputeLatency500To1000ms, true +} + +// HasComputeLatency500To1000ms returns a boolean if a field has been set. +func (o *OriginInspectorMeasurements) HasComputeLatency500To1000ms() bool { + if o != nil && o.ComputeLatency500To1000ms != nil { + return true + } + + return false +} + +// SetComputeLatency500To1000ms gets a reference to the given int32 and assigns it to the ComputeLatency500To1000ms field. +func (o *OriginInspectorMeasurements) SetComputeLatency500To1000ms(v int32) { + o.ComputeLatency500To1000ms = &v +} + +// GetComputeLatency1000To5000ms returns the ComputeLatency1000To5000ms field value if set, zero value otherwise. +func (o *OriginInspectorMeasurements) GetComputeLatency1000To5000ms() int32 { + if o == nil || o.ComputeLatency1000To5000ms == nil { + var ret int32 + return ret + } + return *o.ComputeLatency1000To5000ms +} + +// GetComputeLatency1000To5000msOk returns a tuple with the ComputeLatency1000To5000ms field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorMeasurements) GetComputeLatency1000To5000msOk() (*int32, bool) { + if o == nil || o.ComputeLatency1000To5000ms == nil { + return nil, false + } + return o.ComputeLatency1000To5000ms, true +} + +// HasComputeLatency1000To5000ms returns a boolean if a field has been set. +func (o *OriginInspectorMeasurements) HasComputeLatency1000To5000ms() bool { + if o != nil && o.ComputeLatency1000To5000ms != nil { + return true + } + + return false +} + +// SetComputeLatency1000To5000ms gets a reference to the given int32 and assigns it to the ComputeLatency1000To5000ms field. +func (o *OriginInspectorMeasurements) SetComputeLatency1000To5000ms(v int32) { + o.ComputeLatency1000To5000ms = &v +} + +// GetComputeLatency5000To10000ms returns the ComputeLatency5000To10000ms field value if set, zero value otherwise. +func (o *OriginInspectorMeasurements) GetComputeLatency5000To10000ms() int32 { + if o == nil || o.ComputeLatency5000To10000ms == nil { + var ret int32 + return ret + } + return *o.ComputeLatency5000To10000ms +} + +// GetComputeLatency5000To10000msOk returns a tuple with the ComputeLatency5000To10000ms field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorMeasurements) GetComputeLatency5000To10000msOk() (*int32, bool) { + if o == nil || o.ComputeLatency5000To10000ms == nil { + return nil, false + } + return o.ComputeLatency5000To10000ms, true +} + +// HasComputeLatency5000To10000ms returns a boolean if a field has been set. +func (o *OriginInspectorMeasurements) HasComputeLatency5000To10000ms() bool { + if o != nil && o.ComputeLatency5000To10000ms != nil { + return true + } + + return false +} + +// SetComputeLatency5000To10000ms gets a reference to the given int32 and assigns it to the ComputeLatency5000To10000ms field. +func (o *OriginInspectorMeasurements) SetComputeLatency5000To10000ms(v int32) { + o.ComputeLatency5000To10000ms = &v +} + +// GetComputeLatency10000To60000ms returns the ComputeLatency10000To60000ms field value if set, zero value otherwise. +func (o *OriginInspectorMeasurements) GetComputeLatency10000To60000ms() int32 { + if o == nil || o.ComputeLatency10000To60000ms == nil { + var ret int32 + return ret + } + return *o.ComputeLatency10000To60000ms +} + +// GetComputeLatency10000To60000msOk returns a tuple with the ComputeLatency10000To60000ms field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorMeasurements) GetComputeLatency10000To60000msOk() (*int32, bool) { + if o == nil || o.ComputeLatency10000To60000ms == nil { + return nil, false + } + return o.ComputeLatency10000To60000ms, true +} + +// HasComputeLatency10000To60000ms returns a boolean if a field has been set. +func (o *OriginInspectorMeasurements) HasComputeLatency10000To60000ms() bool { + if o != nil && o.ComputeLatency10000To60000ms != nil { + return true + } + + return false +} + +// SetComputeLatency10000To60000ms gets a reference to the given int32 and assigns it to the ComputeLatency10000To60000ms field. +func (o *OriginInspectorMeasurements) SetComputeLatency10000To60000ms(v int32) { + o.ComputeLatency10000To60000ms = &v +} + +// GetComputeLatency60000ms returns the ComputeLatency60000ms field value if set, zero value otherwise. +func (o *OriginInspectorMeasurements) GetComputeLatency60000ms() int32 { + if o == nil || o.ComputeLatency60000ms == nil { + var ret int32 + return ret + } + return *o.ComputeLatency60000ms +} + +// GetComputeLatency60000msOk returns a tuple with the ComputeLatency60000ms field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorMeasurements) GetComputeLatency60000msOk() (*int32, bool) { + if o == nil || o.ComputeLatency60000ms == nil { + return nil, false + } + return o.ComputeLatency60000ms, true +} + +// HasComputeLatency60000ms returns a boolean if a field has been set. +func (o *OriginInspectorMeasurements) HasComputeLatency60000ms() bool { + if o != nil && o.ComputeLatency60000ms != nil { + return true + } + + return false +} + +// SetComputeLatency60000ms gets a reference to the given int32 and assigns it to the ComputeLatency60000ms field. +func (o *OriginInspectorMeasurements) SetComputeLatency60000ms(v int32) { + o.ComputeLatency60000ms = &v +} + +// GetAllResponses returns the AllResponses field value if set, zero value otherwise. +func (o *OriginInspectorMeasurements) GetAllResponses() int32 { + if o == nil || o.AllResponses == nil { + var ret int32 + return ret + } + return *o.AllResponses +} + +// GetAllResponsesOk returns a tuple with the AllResponses field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorMeasurements) GetAllResponsesOk() (*int32, bool) { + if o == nil || o.AllResponses == nil { + return nil, false + } + return o.AllResponses, true +} + +// HasAllResponses returns a boolean if a field has been set. +func (o *OriginInspectorMeasurements) HasAllResponses() bool { + if o != nil && o.AllResponses != nil { + return true + } + + return false +} + +// SetAllResponses gets a reference to the given int32 and assigns it to the AllResponses field. +func (o *OriginInspectorMeasurements) SetAllResponses(v int32) { + o.AllResponses = &v +} + +// GetAllRespHeaderBytes returns the AllRespHeaderBytes field value if set, zero value otherwise. +func (o *OriginInspectorMeasurements) GetAllRespHeaderBytes() int32 { + if o == nil || o.AllRespHeaderBytes == nil { + var ret int32 + return ret + } + return *o.AllRespHeaderBytes +} + +// GetAllRespHeaderBytesOk returns a tuple with the AllRespHeaderBytes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorMeasurements) GetAllRespHeaderBytesOk() (*int32, bool) { + if o == nil || o.AllRespHeaderBytes == nil { + return nil, false + } + return o.AllRespHeaderBytes, true +} + +// HasAllRespHeaderBytes returns a boolean if a field has been set. +func (o *OriginInspectorMeasurements) HasAllRespHeaderBytes() bool { + if o != nil && o.AllRespHeaderBytes != nil { + return true + } + + return false +} + +// SetAllRespHeaderBytes gets a reference to the given int32 and assigns it to the AllRespHeaderBytes field. +func (o *OriginInspectorMeasurements) SetAllRespHeaderBytes(v int32) { + o.AllRespHeaderBytes = &v +} + +// GetAllRespBodyBytes returns the AllRespBodyBytes field value if set, zero value otherwise. +func (o *OriginInspectorMeasurements) GetAllRespBodyBytes() int32 { + if o == nil || o.AllRespBodyBytes == nil { + var ret int32 + return ret + } + return *o.AllRespBodyBytes +} + +// GetAllRespBodyBytesOk returns a tuple with the AllRespBodyBytes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorMeasurements) GetAllRespBodyBytesOk() (*int32, bool) { + if o == nil || o.AllRespBodyBytes == nil { + return nil, false + } + return o.AllRespBodyBytes, true +} + +// HasAllRespBodyBytes returns a boolean if a field has been set. +func (o *OriginInspectorMeasurements) HasAllRespBodyBytes() bool { + if o != nil && o.AllRespBodyBytes != nil { + return true + } + + return false +} + +// SetAllRespBodyBytes gets a reference to the given int32 and assigns it to the AllRespBodyBytes field. +func (o *OriginInspectorMeasurements) SetAllRespBodyBytes(v int32) { + o.AllRespBodyBytes = &v +} + +// GetAllStatus1xx returns the AllStatus1xx field value if set, zero value otherwise. +func (o *OriginInspectorMeasurements) GetAllStatus1xx() int32 { + if o == nil || o.AllStatus1xx == nil { + var ret int32 + return ret + } + return *o.AllStatus1xx +} + +// GetAllStatus1xxOk returns a tuple with the AllStatus1xx field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorMeasurements) GetAllStatus1xxOk() (*int32, bool) { + if o == nil || o.AllStatus1xx == nil { + return nil, false + } + return o.AllStatus1xx, true +} + +// HasAllStatus1xx returns a boolean if a field has been set. +func (o *OriginInspectorMeasurements) HasAllStatus1xx() bool { + if o != nil && o.AllStatus1xx != nil { + return true + } + + return false +} + +// SetAllStatus1xx gets a reference to the given int32 and assigns it to the AllStatus1xx field. +func (o *OriginInspectorMeasurements) SetAllStatus1xx(v int32) { + o.AllStatus1xx = &v +} + +// GetAllStatus2xx returns the AllStatus2xx field value if set, zero value otherwise. +func (o *OriginInspectorMeasurements) GetAllStatus2xx() int32 { + if o == nil || o.AllStatus2xx == nil { + var ret int32 + return ret + } + return *o.AllStatus2xx +} + +// GetAllStatus2xxOk returns a tuple with the AllStatus2xx field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorMeasurements) GetAllStatus2xxOk() (*int32, bool) { + if o == nil || o.AllStatus2xx == nil { + return nil, false + } + return o.AllStatus2xx, true +} + +// HasAllStatus2xx returns a boolean if a field has been set. +func (o *OriginInspectorMeasurements) HasAllStatus2xx() bool { + if o != nil && o.AllStatus2xx != nil { + return true + } + + return false +} + +// SetAllStatus2xx gets a reference to the given int32 and assigns it to the AllStatus2xx field. +func (o *OriginInspectorMeasurements) SetAllStatus2xx(v int32) { + o.AllStatus2xx = &v +} + +// GetAllStatus3xx returns the AllStatus3xx field value if set, zero value otherwise. +func (o *OriginInspectorMeasurements) GetAllStatus3xx() int32 { + if o == nil || o.AllStatus3xx == nil { + var ret int32 + return ret + } + return *o.AllStatus3xx +} + +// GetAllStatus3xxOk returns a tuple with the AllStatus3xx field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorMeasurements) GetAllStatus3xxOk() (*int32, bool) { + if o == nil || o.AllStatus3xx == nil { + return nil, false + } + return o.AllStatus3xx, true +} + +// HasAllStatus3xx returns a boolean if a field has been set. +func (o *OriginInspectorMeasurements) HasAllStatus3xx() bool { + if o != nil && o.AllStatus3xx != nil { + return true + } + + return false +} + +// SetAllStatus3xx gets a reference to the given int32 and assigns it to the AllStatus3xx field. +func (o *OriginInspectorMeasurements) SetAllStatus3xx(v int32) { + o.AllStatus3xx = &v +} + +// GetAllStatus4xx returns the AllStatus4xx field value if set, zero value otherwise. +func (o *OriginInspectorMeasurements) GetAllStatus4xx() int32 { + if o == nil || o.AllStatus4xx == nil { + var ret int32 + return ret + } + return *o.AllStatus4xx +} + +// GetAllStatus4xxOk returns a tuple with the AllStatus4xx field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorMeasurements) GetAllStatus4xxOk() (*int32, bool) { + if o == nil || o.AllStatus4xx == nil { + return nil, false + } + return o.AllStatus4xx, true +} + +// HasAllStatus4xx returns a boolean if a field has been set. +func (o *OriginInspectorMeasurements) HasAllStatus4xx() bool { + if o != nil && o.AllStatus4xx != nil { + return true + } + + return false +} + +// SetAllStatus4xx gets a reference to the given int32 and assigns it to the AllStatus4xx field. +func (o *OriginInspectorMeasurements) SetAllStatus4xx(v int32) { + o.AllStatus4xx = &v +} + +// GetAllStatus5xx returns the AllStatus5xx field value if set, zero value otherwise. +func (o *OriginInspectorMeasurements) GetAllStatus5xx() int32 { + if o == nil || o.AllStatus5xx == nil { + var ret int32 + return ret + } + return *o.AllStatus5xx +} + +// GetAllStatus5xxOk returns a tuple with the AllStatus5xx field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorMeasurements) GetAllStatus5xxOk() (*int32, bool) { + if o == nil || o.AllStatus5xx == nil { + return nil, false + } + return o.AllStatus5xx, true +} + +// HasAllStatus5xx returns a boolean if a field has been set. +func (o *OriginInspectorMeasurements) HasAllStatus5xx() bool { + if o != nil && o.AllStatus5xx != nil { + return true + } + + return false +} + +// SetAllStatus5xx gets a reference to the given int32 and assigns it to the AllStatus5xx field. +func (o *OriginInspectorMeasurements) SetAllStatus5xx(v int32) { + o.AllStatus5xx = &v +} + +// GetAllStatus200 returns the AllStatus200 field value if set, zero value otherwise. +func (o *OriginInspectorMeasurements) GetAllStatus200() int32 { + if o == nil || o.AllStatus200 == nil { + var ret int32 + return ret + } + return *o.AllStatus200 +} + +// GetAllStatus200Ok returns a tuple with the AllStatus200 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorMeasurements) GetAllStatus200Ok() (*int32, bool) { + if o == nil || o.AllStatus200 == nil { + return nil, false + } + return o.AllStatus200, true +} + +// HasAllStatus200 returns a boolean if a field has been set. +func (o *OriginInspectorMeasurements) HasAllStatus200() bool { + if o != nil && o.AllStatus200 != nil { + return true + } + + return false +} + +// SetAllStatus200 gets a reference to the given int32 and assigns it to the AllStatus200 field. +func (o *OriginInspectorMeasurements) SetAllStatus200(v int32) { + o.AllStatus200 = &v +} + +// GetAllStatus204 returns the AllStatus204 field value if set, zero value otherwise. +func (o *OriginInspectorMeasurements) GetAllStatus204() int32 { + if o == nil || o.AllStatus204 == nil { + var ret int32 + return ret + } + return *o.AllStatus204 +} + +// GetAllStatus204Ok returns a tuple with the AllStatus204 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorMeasurements) GetAllStatus204Ok() (*int32, bool) { + if o == nil || o.AllStatus204 == nil { + return nil, false + } + return o.AllStatus204, true +} + +// HasAllStatus204 returns a boolean if a field has been set. +func (o *OriginInspectorMeasurements) HasAllStatus204() bool { + if o != nil && o.AllStatus204 != nil { + return true + } + + return false +} + +// SetAllStatus204 gets a reference to the given int32 and assigns it to the AllStatus204 field. +func (o *OriginInspectorMeasurements) SetAllStatus204(v int32) { + o.AllStatus204 = &v +} + +// GetAllStatus206 returns the AllStatus206 field value if set, zero value otherwise. +func (o *OriginInspectorMeasurements) GetAllStatus206() int32 { + if o == nil || o.AllStatus206 == nil { + var ret int32 + return ret + } + return *o.AllStatus206 +} + +// GetAllStatus206Ok returns a tuple with the AllStatus206 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorMeasurements) GetAllStatus206Ok() (*int32, bool) { + if o == nil || o.AllStatus206 == nil { + return nil, false + } + return o.AllStatus206, true +} + +// HasAllStatus206 returns a boolean if a field has been set. +func (o *OriginInspectorMeasurements) HasAllStatus206() bool { + if o != nil && o.AllStatus206 != nil { + return true + } + + return false +} + +// SetAllStatus206 gets a reference to the given int32 and assigns it to the AllStatus206 field. +func (o *OriginInspectorMeasurements) SetAllStatus206(v int32) { + o.AllStatus206 = &v +} + +// GetAllStatus301 returns the AllStatus301 field value if set, zero value otherwise. +func (o *OriginInspectorMeasurements) GetAllStatus301() int32 { + if o == nil || o.AllStatus301 == nil { + var ret int32 + return ret + } + return *o.AllStatus301 +} + +// GetAllStatus301Ok returns a tuple with the AllStatus301 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorMeasurements) GetAllStatus301Ok() (*int32, bool) { + if o == nil || o.AllStatus301 == nil { + return nil, false + } + return o.AllStatus301, true +} + +// HasAllStatus301 returns a boolean if a field has been set. +func (o *OriginInspectorMeasurements) HasAllStatus301() bool { + if o != nil && o.AllStatus301 != nil { + return true + } + + return false +} + +// SetAllStatus301 gets a reference to the given int32 and assigns it to the AllStatus301 field. +func (o *OriginInspectorMeasurements) SetAllStatus301(v int32) { + o.AllStatus301 = &v +} + +// GetAllStatus302 returns the AllStatus302 field value if set, zero value otherwise. +func (o *OriginInspectorMeasurements) GetAllStatus302() int32 { + if o == nil || o.AllStatus302 == nil { + var ret int32 + return ret + } + return *o.AllStatus302 +} + +// GetAllStatus302Ok returns a tuple with the AllStatus302 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorMeasurements) GetAllStatus302Ok() (*int32, bool) { + if o == nil || o.AllStatus302 == nil { + return nil, false + } + return o.AllStatus302, true +} + +// HasAllStatus302 returns a boolean if a field has been set. +func (o *OriginInspectorMeasurements) HasAllStatus302() bool { + if o != nil && o.AllStatus302 != nil { + return true + } + + return false +} + +// SetAllStatus302 gets a reference to the given int32 and assigns it to the AllStatus302 field. +func (o *OriginInspectorMeasurements) SetAllStatus302(v int32) { + o.AllStatus302 = &v +} + +// GetAllStatus304 returns the AllStatus304 field value if set, zero value otherwise. +func (o *OriginInspectorMeasurements) GetAllStatus304() int32 { + if o == nil || o.AllStatus304 == nil { + var ret int32 + return ret + } + return *o.AllStatus304 +} + +// GetAllStatus304Ok returns a tuple with the AllStatus304 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorMeasurements) GetAllStatus304Ok() (*int32, bool) { + if o == nil || o.AllStatus304 == nil { + return nil, false + } + return o.AllStatus304, true +} + +// HasAllStatus304 returns a boolean if a field has been set. +func (o *OriginInspectorMeasurements) HasAllStatus304() bool { + if o != nil && o.AllStatus304 != nil { + return true + } + + return false +} + +// SetAllStatus304 gets a reference to the given int32 and assigns it to the AllStatus304 field. +func (o *OriginInspectorMeasurements) SetAllStatus304(v int32) { + o.AllStatus304 = &v +} + +// GetAllStatus400 returns the AllStatus400 field value if set, zero value otherwise. +func (o *OriginInspectorMeasurements) GetAllStatus400() int32 { + if o == nil || o.AllStatus400 == nil { + var ret int32 + return ret + } + return *o.AllStatus400 +} + +// GetAllStatus400Ok returns a tuple with the AllStatus400 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorMeasurements) GetAllStatus400Ok() (*int32, bool) { + if o == nil || o.AllStatus400 == nil { + return nil, false + } + return o.AllStatus400, true +} + +// HasAllStatus400 returns a boolean if a field has been set. +func (o *OriginInspectorMeasurements) HasAllStatus400() bool { + if o != nil && o.AllStatus400 != nil { + return true + } + + return false +} + +// SetAllStatus400 gets a reference to the given int32 and assigns it to the AllStatus400 field. +func (o *OriginInspectorMeasurements) SetAllStatus400(v int32) { + o.AllStatus400 = &v +} + +// GetAllStatus401 returns the AllStatus401 field value if set, zero value otherwise. +func (o *OriginInspectorMeasurements) GetAllStatus401() int32 { + if o == nil || o.AllStatus401 == nil { + var ret int32 + return ret + } + return *o.AllStatus401 +} + +// GetAllStatus401Ok returns a tuple with the AllStatus401 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorMeasurements) GetAllStatus401Ok() (*int32, bool) { + if o == nil || o.AllStatus401 == nil { + return nil, false + } + return o.AllStatus401, true +} + +// HasAllStatus401 returns a boolean if a field has been set. +func (o *OriginInspectorMeasurements) HasAllStatus401() bool { + if o != nil && o.AllStatus401 != nil { + return true + } + + return false +} + +// SetAllStatus401 gets a reference to the given int32 and assigns it to the AllStatus401 field. +func (o *OriginInspectorMeasurements) SetAllStatus401(v int32) { + o.AllStatus401 = &v +} + +// GetAllStatus403 returns the AllStatus403 field value if set, zero value otherwise. +func (o *OriginInspectorMeasurements) GetAllStatus403() int32 { + if o == nil || o.AllStatus403 == nil { + var ret int32 + return ret + } + return *o.AllStatus403 +} + +// GetAllStatus403Ok returns a tuple with the AllStatus403 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorMeasurements) GetAllStatus403Ok() (*int32, bool) { + if o == nil || o.AllStatus403 == nil { + return nil, false + } + return o.AllStatus403, true +} + +// HasAllStatus403 returns a boolean if a field has been set. +func (o *OriginInspectorMeasurements) HasAllStatus403() bool { + if o != nil && o.AllStatus403 != nil { + return true + } + + return false +} + +// SetAllStatus403 gets a reference to the given int32 and assigns it to the AllStatus403 field. +func (o *OriginInspectorMeasurements) SetAllStatus403(v int32) { + o.AllStatus403 = &v +} + +// GetAllStatus404 returns the AllStatus404 field value if set, zero value otherwise. +func (o *OriginInspectorMeasurements) GetAllStatus404() int32 { + if o == nil || o.AllStatus404 == nil { + var ret int32 + return ret + } + return *o.AllStatus404 +} + +// GetAllStatus404Ok returns a tuple with the AllStatus404 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorMeasurements) GetAllStatus404Ok() (*int32, bool) { + if o == nil || o.AllStatus404 == nil { + return nil, false + } + return o.AllStatus404, true +} + +// HasAllStatus404 returns a boolean if a field has been set. +func (o *OriginInspectorMeasurements) HasAllStatus404() bool { + if o != nil && o.AllStatus404 != nil { + return true + } + + return false +} + +// SetAllStatus404 gets a reference to the given int32 and assigns it to the AllStatus404 field. +func (o *OriginInspectorMeasurements) SetAllStatus404(v int32) { + o.AllStatus404 = &v +} + +// GetAllStatus416 returns the AllStatus416 field value if set, zero value otherwise. +func (o *OriginInspectorMeasurements) GetAllStatus416() int32 { + if o == nil || o.AllStatus416 == nil { + var ret int32 + return ret + } + return *o.AllStatus416 +} + +// GetAllStatus416Ok returns a tuple with the AllStatus416 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorMeasurements) GetAllStatus416Ok() (*int32, bool) { + if o == nil || o.AllStatus416 == nil { + return nil, false + } + return o.AllStatus416, true +} + +// HasAllStatus416 returns a boolean if a field has been set. +func (o *OriginInspectorMeasurements) HasAllStatus416() bool { + if o != nil && o.AllStatus416 != nil { + return true + } + + return false +} + +// SetAllStatus416 gets a reference to the given int32 and assigns it to the AllStatus416 field. +func (o *OriginInspectorMeasurements) SetAllStatus416(v int32) { + o.AllStatus416 = &v +} + +// GetAllStatus429 returns the AllStatus429 field value if set, zero value otherwise. +func (o *OriginInspectorMeasurements) GetAllStatus429() int32 { + if o == nil || o.AllStatus429 == nil { + var ret int32 + return ret + } + return *o.AllStatus429 +} + +// GetAllStatus429Ok returns a tuple with the AllStatus429 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorMeasurements) GetAllStatus429Ok() (*int32, bool) { + if o == nil || o.AllStatus429 == nil { + return nil, false + } + return o.AllStatus429, true +} + +// HasAllStatus429 returns a boolean if a field has been set. +func (o *OriginInspectorMeasurements) HasAllStatus429() bool { + if o != nil && o.AllStatus429 != nil { + return true + } + + return false +} + +// SetAllStatus429 gets a reference to the given int32 and assigns it to the AllStatus429 field. +func (o *OriginInspectorMeasurements) SetAllStatus429(v int32) { + o.AllStatus429 = &v +} + +// GetAllStatus500 returns the AllStatus500 field value if set, zero value otherwise. +func (o *OriginInspectorMeasurements) GetAllStatus500() int32 { + if o == nil || o.AllStatus500 == nil { + var ret int32 + return ret + } + return *o.AllStatus500 +} + +// GetAllStatus500Ok returns a tuple with the AllStatus500 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorMeasurements) GetAllStatus500Ok() (*int32, bool) { + if o == nil || o.AllStatus500 == nil { + return nil, false + } + return o.AllStatus500, true +} + +// HasAllStatus500 returns a boolean if a field has been set. +func (o *OriginInspectorMeasurements) HasAllStatus500() bool { + if o != nil && o.AllStatus500 != nil { + return true + } + + return false +} + +// SetAllStatus500 gets a reference to the given int32 and assigns it to the AllStatus500 field. +func (o *OriginInspectorMeasurements) SetAllStatus500(v int32) { + o.AllStatus500 = &v +} + +// GetAllStatus501 returns the AllStatus501 field value if set, zero value otherwise. +func (o *OriginInspectorMeasurements) GetAllStatus501() int32 { + if o == nil || o.AllStatus501 == nil { + var ret int32 + return ret + } + return *o.AllStatus501 +} + +// GetAllStatus501Ok returns a tuple with the AllStatus501 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorMeasurements) GetAllStatus501Ok() (*int32, bool) { + if o == nil || o.AllStatus501 == nil { + return nil, false + } + return o.AllStatus501, true +} + +// HasAllStatus501 returns a boolean if a field has been set. +func (o *OriginInspectorMeasurements) HasAllStatus501() bool { + if o != nil && o.AllStatus501 != nil { + return true + } + + return false +} + +// SetAllStatus501 gets a reference to the given int32 and assigns it to the AllStatus501 field. +func (o *OriginInspectorMeasurements) SetAllStatus501(v int32) { + o.AllStatus501 = &v +} + +// GetAllStatus502 returns the AllStatus502 field value if set, zero value otherwise. +func (o *OriginInspectorMeasurements) GetAllStatus502() int32 { + if o == nil || o.AllStatus502 == nil { + var ret int32 + return ret + } + return *o.AllStatus502 +} + +// GetAllStatus502Ok returns a tuple with the AllStatus502 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorMeasurements) GetAllStatus502Ok() (*int32, bool) { + if o == nil || o.AllStatus502 == nil { + return nil, false + } + return o.AllStatus502, true +} + +// HasAllStatus502 returns a boolean if a field has been set. +func (o *OriginInspectorMeasurements) HasAllStatus502() bool { + if o != nil && o.AllStatus502 != nil { + return true + } + + return false +} + +// SetAllStatus502 gets a reference to the given int32 and assigns it to the AllStatus502 field. +func (o *OriginInspectorMeasurements) SetAllStatus502(v int32) { + o.AllStatus502 = &v +} + +// GetAllStatus503 returns the AllStatus503 field value if set, zero value otherwise. +func (o *OriginInspectorMeasurements) GetAllStatus503() int32 { + if o == nil || o.AllStatus503 == nil { + var ret int32 + return ret + } + return *o.AllStatus503 +} + +// GetAllStatus503Ok returns a tuple with the AllStatus503 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorMeasurements) GetAllStatus503Ok() (*int32, bool) { + if o == nil || o.AllStatus503 == nil { + return nil, false + } + return o.AllStatus503, true +} + +// HasAllStatus503 returns a boolean if a field has been set. +func (o *OriginInspectorMeasurements) HasAllStatus503() bool { + if o != nil && o.AllStatus503 != nil { + return true + } + + return false +} + +// SetAllStatus503 gets a reference to the given int32 and assigns it to the AllStatus503 field. +func (o *OriginInspectorMeasurements) SetAllStatus503(v int32) { + o.AllStatus503 = &v +} + +// GetAllStatus504 returns the AllStatus504 field value if set, zero value otherwise. +func (o *OriginInspectorMeasurements) GetAllStatus504() int32 { + if o == nil || o.AllStatus504 == nil { + var ret int32 + return ret + } + return *o.AllStatus504 +} + +// GetAllStatus504Ok returns a tuple with the AllStatus504 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorMeasurements) GetAllStatus504Ok() (*int32, bool) { + if o == nil || o.AllStatus504 == nil { + return nil, false + } + return o.AllStatus504, true +} + +// HasAllStatus504 returns a boolean if a field has been set. +func (o *OriginInspectorMeasurements) HasAllStatus504() bool { + if o != nil && o.AllStatus504 != nil { + return true + } + + return false +} + +// SetAllStatus504 gets a reference to the given int32 and assigns it to the AllStatus504 field. +func (o *OriginInspectorMeasurements) SetAllStatus504(v int32) { + o.AllStatus504 = &v +} + +// GetAllStatus505 returns the AllStatus505 field value if set, zero value otherwise. +func (o *OriginInspectorMeasurements) GetAllStatus505() int32 { + if o == nil || o.AllStatus505 == nil { + var ret int32 + return ret + } + return *o.AllStatus505 +} + +// GetAllStatus505Ok returns a tuple with the AllStatus505 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorMeasurements) GetAllStatus505Ok() (*int32, bool) { + if o == nil || o.AllStatus505 == nil { + return nil, false + } + return o.AllStatus505, true +} + +// HasAllStatus505 returns a boolean if a field has been set. +func (o *OriginInspectorMeasurements) HasAllStatus505() bool { + if o != nil && o.AllStatus505 != nil { + return true + } + + return false +} + +// SetAllStatus505 gets a reference to the given int32 and assigns it to the AllStatus505 field. +func (o *OriginInspectorMeasurements) SetAllStatus505(v int32) { + o.AllStatus505 = &v +} + +// GetAllLatency0To1ms returns the AllLatency0To1ms field value if set, zero value otherwise. +func (o *OriginInspectorMeasurements) GetAllLatency0To1ms() int32 { + if o == nil || o.AllLatency0To1ms == nil { + var ret int32 + return ret + } + return *o.AllLatency0To1ms +} + +// GetAllLatency0To1msOk returns a tuple with the AllLatency0To1ms field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorMeasurements) GetAllLatency0To1msOk() (*int32, bool) { + if o == nil || o.AllLatency0To1ms == nil { + return nil, false + } + return o.AllLatency0To1ms, true +} + +// HasAllLatency0To1ms returns a boolean if a field has been set. +func (o *OriginInspectorMeasurements) HasAllLatency0To1ms() bool { + if o != nil && o.AllLatency0To1ms != nil { + return true + } + + return false +} + +// SetAllLatency0To1ms gets a reference to the given int32 and assigns it to the AllLatency0To1ms field. +func (o *OriginInspectorMeasurements) SetAllLatency0To1ms(v int32) { + o.AllLatency0To1ms = &v +} + +// GetAllLatency1To5ms returns the AllLatency1To5ms field value if set, zero value otherwise. +func (o *OriginInspectorMeasurements) GetAllLatency1To5ms() int32 { + if o == nil || o.AllLatency1To5ms == nil { + var ret int32 + return ret + } + return *o.AllLatency1To5ms +} + +// GetAllLatency1To5msOk returns a tuple with the AllLatency1To5ms field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorMeasurements) GetAllLatency1To5msOk() (*int32, bool) { + if o == nil || o.AllLatency1To5ms == nil { + return nil, false + } + return o.AllLatency1To5ms, true +} + +// HasAllLatency1To5ms returns a boolean if a field has been set. +func (o *OriginInspectorMeasurements) HasAllLatency1To5ms() bool { + if o != nil && o.AllLatency1To5ms != nil { + return true + } + + return false +} + +// SetAllLatency1To5ms gets a reference to the given int32 and assigns it to the AllLatency1To5ms field. +func (o *OriginInspectorMeasurements) SetAllLatency1To5ms(v int32) { + o.AllLatency1To5ms = &v +} + +// GetAllLatency5To10ms returns the AllLatency5To10ms field value if set, zero value otherwise. +func (o *OriginInspectorMeasurements) GetAllLatency5To10ms() int32 { + if o == nil || o.AllLatency5To10ms == nil { + var ret int32 + return ret + } + return *o.AllLatency5To10ms +} + +// GetAllLatency5To10msOk returns a tuple with the AllLatency5To10ms field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorMeasurements) GetAllLatency5To10msOk() (*int32, bool) { + if o == nil || o.AllLatency5To10ms == nil { + return nil, false + } + return o.AllLatency5To10ms, true +} + +// HasAllLatency5To10ms returns a boolean if a field has been set. +func (o *OriginInspectorMeasurements) HasAllLatency5To10ms() bool { + if o != nil && o.AllLatency5To10ms != nil { + return true + } + + return false +} + +// SetAllLatency5To10ms gets a reference to the given int32 and assigns it to the AllLatency5To10ms field. +func (o *OriginInspectorMeasurements) SetAllLatency5To10ms(v int32) { + o.AllLatency5To10ms = &v +} + +// GetAllLatency10To50ms returns the AllLatency10To50ms field value if set, zero value otherwise. +func (o *OriginInspectorMeasurements) GetAllLatency10To50ms() int32 { + if o == nil || o.AllLatency10To50ms == nil { + var ret int32 + return ret + } + return *o.AllLatency10To50ms +} + +// GetAllLatency10To50msOk returns a tuple with the AllLatency10To50ms field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorMeasurements) GetAllLatency10To50msOk() (*int32, bool) { + if o == nil || o.AllLatency10To50ms == nil { + return nil, false + } + return o.AllLatency10To50ms, true +} + +// HasAllLatency10To50ms returns a boolean if a field has been set. +func (o *OriginInspectorMeasurements) HasAllLatency10To50ms() bool { + if o != nil && o.AllLatency10To50ms != nil { + return true + } + + return false +} + +// SetAllLatency10To50ms gets a reference to the given int32 and assigns it to the AllLatency10To50ms field. +func (o *OriginInspectorMeasurements) SetAllLatency10To50ms(v int32) { + o.AllLatency10To50ms = &v +} + +// GetAllLatency50To100ms returns the AllLatency50To100ms field value if set, zero value otherwise. +func (o *OriginInspectorMeasurements) GetAllLatency50To100ms() int32 { + if o == nil || o.AllLatency50To100ms == nil { + var ret int32 + return ret + } + return *o.AllLatency50To100ms +} + +// GetAllLatency50To100msOk returns a tuple with the AllLatency50To100ms field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorMeasurements) GetAllLatency50To100msOk() (*int32, bool) { + if o == nil || o.AllLatency50To100ms == nil { + return nil, false + } + return o.AllLatency50To100ms, true +} + +// HasAllLatency50To100ms returns a boolean if a field has been set. +func (o *OriginInspectorMeasurements) HasAllLatency50To100ms() bool { + if o != nil && o.AllLatency50To100ms != nil { + return true + } + + return false +} + +// SetAllLatency50To100ms gets a reference to the given int32 and assigns it to the AllLatency50To100ms field. +func (o *OriginInspectorMeasurements) SetAllLatency50To100ms(v int32) { + o.AllLatency50To100ms = &v +} + +// GetAllLatency100To250ms returns the AllLatency100To250ms field value if set, zero value otherwise. +func (o *OriginInspectorMeasurements) GetAllLatency100To250ms() int32 { + if o == nil || o.AllLatency100To250ms == nil { + var ret int32 + return ret + } + return *o.AllLatency100To250ms +} + +// GetAllLatency100To250msOk returns a tuple with the AllLatency100To250ms field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorMeasurements) GetAllLatency100To250msOk() (*int32, bool) { + if o == nil || o.AllLatency100To250ms == nil { + return nil, false + } + return o.AllLatency100To250ms, true +} + +// HasAllLatency100To250ms returns a boolean if a field has been set. +func (o *OriginInspectorMeasurements) HasAllLatency100To250ms() bool { + if o != nil && o.AllLatency100To250ms != nil { + return true + } + + return false +} + +// SetAllLatency100To250ms gets a reference to the given int32 and assigns it to the AllLatency100To250ms field. +func (o *OriginInspectorMeasurements) SetAllLatency100To250ms(v int32) { + o.AllLatency100To250ms = &v +} + +// GetAllLatency250To500ms returns the AllLatency250To500ms field value if set, zero value otherwise. +func (o *OriginInspectorMeasurements) GetAllLatency250To500ms() int32 { + if o == nil || o.AllLatency250To500ms == nil { + var ret int32 + return ret + } + return *o.AllLatency250To500ms +} + +// GetAllLatency250To500msOk returns a tuple with the AllLatency250To500ms field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorMeasurements) GetAllLatency250To500msOk() (*int32, bool) { + if o == nil || o.AllLatency250To500ms == nil { + return nil, false + } + return o.AllLatency250To500ms, true +} + +// HasAllLatency250To500ms returns a boolean if a field has been set. +func (o *OriginInspectorMeasurements) HasAllLatency250To500ms() bool { + if o != nil && o.AllLatency250To500ms != nil { + return true + } + + return false +} + +// SetAllLatency250To500ms gets a reference to the given int32 and assigns it to the AllLatency250To500ms field. +func (o *OriginInspectorMeasurements) SetAllLatency250To500ms(v int32) { + o.AllLatency250To500ms = &v +} + +// GetAllLatency500To1000ms returns the AllLatency500To1000ms field value if set, zero value otherwise. +func (o *OriginInspectorMeasurements) GetAllLatency500To1000ms() int32 { + if o == nil || o.AllLatency500To1000ms == nil { + var ret int32 + return ret + } + return *o.AllLatency500To1000ms +} + +// GetAllLatency500To1000msOk returns a tuple with the AllLatency500To1000ms field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorMeasurements) GetAllLatency500To1000msOk() (*int32, bool) { + if o == nil || o.AllLatency500To1000ms == nil { + return nil, false + } + return o.AllLatency500To1000ms, true +} + +// HasAllLatency500To1000ms returns a boolean if a field has been set. +func (o *OriginInspectorMeasurements) HasAllLatency500To1000ms() bool { + if o != nil && o.AllLatency500To1000ms != nil { + return true + } + + return false +} + +// SetAllLatency500To1000ms gets a reference to the given int32 and assigns it to the AllLatency500To1000ms field. +func (o *OriginInspectorMeasurements) SetAllLatency500To1000ms(v int32) { + o.AllLatency500To1000ms = &v +} + +// GetAllLatency1000To5000ms returns the AllLatency1000To5000ms field value if set, zero value otherwise. +func (o *OriginInspectorMeasurements) GetAllLatency1000To5000ms() int32 { + if o == nil || o.AllLatency1000To5000ms == nil { + var ret int32 + return ret + } + return *o.AllLatency1000To5000ms +} + +// GetAllLatency1000To5000msOk returns a tuple with the AllLatency1000To5000ms field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorMeasurements) GetAllLatency1000To5000msOk() (*int32, bool) { + if o == nil || o.AllLatency1000To5000ms == nil { + return nil, false + } + return o.AllLatency1000To5000ms, true +} + +// HasAllLatency1000To5000ms returns a boolean if a field has been set. +func (o *OriginInspectorMeasurements) HasAllLatency1000To5000ms() bool { + if o != nil && o.AllLatency1000To5000ms != nil { + return true + } + + return false +} + +// SetAllLatency1000To5000ms gets a reference to the given int32 and assigns it to the AllLatency1000To5000ms field. +func (o *OriginInspectorMeasurements) SetAllLatency1000To5000ms(v int32) { + o.AllLatency1000To5000ms = &v +} + +// GetAllLatency5000To10000ms returns the AllLatency5000To10000ms field value if set, zero value otherwise. +func (o *OriginInspectorMeasurements) GetAllLatency5000To10000ms() int32 { + if o == nil || o.AllLatency5000To10000ms == nil { + var ret int32 + return ret + } + return *o.AllLatency5000To10000ms +} + +// GetAllLatency5000To10000msOk returns a tuple with the AllLatency5000To10000ms field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorMeasurements) GetAllLatency5000To10000msOk() (*int32, bool) { + if o == nil || o.AllLatency5000To10000ms == nil { + return nil, false + } + return o.AllLatency5000To10000ms, true +} + +// HasAllLatency5000To10000ms returns a boolean if a field has been set. +func (o *OriginInspectorMeasurements) HasAllLatency5000To10000ms() bool { + if o != nil && o.AllLatency5000To10000ms != nil { + return true + } + + return false +} + +// SetAllLatency5000To10000ms gets a reference to the given int32 and assigns it to the AllLatency5000To10000ms field. +func (o *OriginInspectorMeasurements) SetAllLatency5000To10000ms(v int32) { + o.AllLatency5000To10000ms = &v +} + +// GetAllLatency10000To60000ms returns the AllLatency10000To60000ms field value if set, zero value otherwise. +func (o *OriginInspectorMeasurements) GetAllLatency10000To60000ms() int32 { + if o == nil || o.AllLatency10000To60000ms == nil { + var ret int32 + return ret + } + return *o.AllLatency10000To60000ms +} + +// GetAllLatency10000To60000msOk returns a tuple with the AllLatency10000To60000ms field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorMeasurements) GetAllLatency10000To60000msOk() (*int32, bool) { + if o == nil || o.AllLatency10000To60000ms == nil { + return nil, false + } + return o.AllLatency10000To60000ms, true +} + +// HasAllLatency10000To60000ms returns a boolean if a field has been set. +func (o *OriginInspectorMeasurements) HasAllLatency10000To60000ms() bool { + if o != nil && o.AllLatency10000To60000ms != nil { + return true + } + + return false +} + +// SetAllLatency10000To60000ms gets a reference to the given int32 and assigns it to the AllLatency10000To60000ms field. +func (o *OriginInspectorMeasurements) SetAllLatency10000To60000ms(v int32) { + o.AllLatency10000To60000ms = &v +} + +// GetAllLatency60000ms returns the AllLatency60000ms field value if set, zero value otherwise. +func (o *OriginInspectorMeasurements) GetAllLatency60000ms() int32 { + if o == nil || o.AllLatency60000ms == nil { + var ret int32 + return ret + } + return *o.AllLatency60000ms +} + +// GetAllLatency60000msOk returns a tuple with the AllLatency60000ms field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorMeasurements) GetAllLatency60000msOk() (*int32, bool) { + if o == nil || o.AllLatency60000ms == nil { + return nil, false + } + return o.AllLatency60000ms, true +} + +// HasAllLatency60000ms returns a boolean if a field has been set. +func (o *OriginInspectorMeasurements) HasAllLatency60000ms() bool { + if o != nil && o.AllLatency60000ms != nil { + return true + } + + return false +} + +// SetAllLatency60000ms gets a reference to the given int32 and assigns it to the AllLatency60000ms field. +func (o *OriginInspectorMeasurements) SetAllLatency60000ms(v int32) { + o.AllLatency60000ms = &v +} + +// MarshalJSON implements the json.Marshaler interface. +// Marshaler is the interface implemented by types that can marshal themselves into valid JSON. +func (o OriginInspectorMeasurements) MarshalJSON() ([]byte, error) { + toSerialize := map[string]any{} + if o.Responses != nil { + toSerialize["responses"] = o.Responses + } + if o.RespHeaderBytes != nil { + toSerialize["resp_header_bytes"] = o.RespHeaderBytes + } + if o.RespBodyBytes != nil { + toSerialize["resp_body_bytes"] = o.RespBodyBytes + } + if o.Status1xx != nil { + toSerialize["status_1xx"] = o.Status1xx + } + if o.Status2xx != nil { + toSerialize["status_2xx"] = o.Status2xx + } + if o.Status3xx != nil { + toSerialize["status_3xx"] = o.Status3xx + } + if o.Status4xx != nil { + toSerialize["status_4xx"] = o.Status4xx + } + if o.Status5xx != nil { + toSerialize["status_5xx"] = o.Status5xx + } + if o.Status200 != nil { + toSerialize["status_200"] = o.Status200 + } + if o.Status204 != nil { + toSerialize["status_204"] = o.Status204 + } + if o.Status206 != nil { + toSerialize["status_206"] = o.Status206 + } + if o.Status301 != nil { + toSerialize["status_301"] = o.Status301 + } + if o.Status302 != nil { + toSerialize["status_302"] = o.Status302 + } + if o.Status304 != nil { + toSerialize["status_304"] = o.Status304 + } + if o.Status400 != nil { + toSerialize["status_400"] = o.Status400 + } + if o.Status401 != nil { + toSerialize["status_401"] = o.Status401 + } + if o.Status403 != nil { + toSerialize["status_403"] = o.Status403 + } + if o.Status404 != nil { + toSerialize["status_404"] = o.Status404 + } + if o.Status416 != nil { + toSerialize["status_416"] = o.Status416 + } + if o.Status429 != nil { + toSerialize["status_429"] = o.Status429 + } + if o.Status500 != nil { + toSerialize["status_500"] = o.Status500 + } + if o.Status501 != nil { + toSerialize["status_501"] = o.Status501 + } + if o.Status502 != nil { + toSerialize["status_502"] = o.Status502 + } + if o.Status503 != nil { + toSerialize["status_503"] = o.Status503 + } + if o.Status504 != nil { + toSerialize["status_504"] = o.Status504 + } + if o.Status505 != nil { + toSerialize["status_505"] = o.Status505 + } + if o.Latency0To1ms != nil { + toSerialize["latency_0_to_1ms"] = o.Latency0To1ms + } + if o.Latency1To5ms != nil { + toSerialize["latency_1_to_5ms"] = o.Latency1To5ms + } + if o.Latency5To10ms != nil { + toSerialize["latency_5_to_10ms"] = o.Latency5To10ms + } + if o.Latency10To50ms != nil { + toSerialize["latency_10_to_50ms"] = o.Latency10To50ms + } + if o.Latency50To100ms != nil { + toSerialize["latency_50_to_100ms"] = o.Latency50To100ms + } + if o.Latency100To250ms != nil { + toSerialize["latency_100_to_250ms"] = o.Latency100To250ms + } + if o.Latency250To500ms != nil { + toSerialize["latency_250_to_500ms"] = o.Latency250To500ms + } + if o.Latency500To1000ms != nil { + toSerialize["latency_500_to_1000ms"] = o.Latency500To1000ms + } + if o.Latency1000To5000ms != nil { + toSerialize["latency_1000_to_5000ms"] = o.Latency1000To5000ms + } + if o.Latency5000To10000ms != nil { + toSerialize["latency_5000_to_10000ms"] = o.Latency5000To10000ms + } + if o.Latency10000To60000ms != nil { + toSerialize["latency_10000_to_60000ms"] = o.Latency10000To60000ms + } + if o.Latency60000ms != nil { + toSerialize["latency_60000ms"] = o.Latency60000ms + } + if o.WafResponses != nil { + toSerialize["waf_responses"] = o.WafResponses + } + if o.WafRespHeaderBytes != nil { + toSerialize["waf_resp_header_bytes"] = o.WafRespHeaderBytes + } + if o.WafRespBodyBytes != nil { + toSerialize["waf_resp_body_bytes"] = o.WafRespBodyBytes + } + if o.WafStatus1xx != nil { + toSerialize["waf_status_1xx"] = o.WafStatus1xx + } + if o.WafStatus2xx != nil { + toSerialize["waf_status_2xx"] = o.WafStatus2xx + } + if o.WafStatus3xx != nil { + toSerialize["waf_status_3xx"] = o.WafStatus3xx + } + if o.WafStatus4xx != nil { + toSerialize["waf_status_4xx"] = o.WafStatus4xx + } + if o.WafStatus5xx != nil { + toSerialize["waf_status_5xx"] = o.WafStatus5xx + } + if o.WafStatus200 != nil { + toSerialize["waf_status_200"] = o.WafStatus200 + } + if o.WafStatus204 != nil { + toSerialize["waf_status_204"] = o.WafStatus204 + } + if o.WafStatus206 != nil { + toSerialize["waf_status_206"] = o.WafStatus206 + } + if o.WafStatus301 != nil { + toSerialize["waf_status_301"] = o.WafStatus301 + } + if o.WafStatus302 != nil { + toSerialize["waf_status_302"] = o.WafStatus302 + } + if o.WafStatus304 != nil { + toSerialize["waf_status_304"] = o.WafStatus304 + } + if o.WafStatus400 != nil { + toSerialize["waf_status_400"] = o.WafStatus400 + } + if o.WafStatus401 != nil { + toSerialize["waf_status_401"] = o.WafStatus401 + } + if o.WafStatus403 != nil { + toSerialize["waf_status_403"] = o.WafStatus403 + } + if o.WafStatus404 != nil { + toSerialize["waf_status_404"] = o.WafStatus404 + } + if o.WafStatus416 != nil { + toSerialize["waf_status_416"] = o.WafStatus416 + } + if o.WafStatus429 != nil { + toSerialize["waf_status_429"] = o.WafStatus429 + } + if o.WafStatus500 != nil { + toSerialize["waf_status_500"] = o.WafStatus500 + } + if o.WafStatus501 != nil { + toSerialize["waf_status_501"] = o.WafStatus501 + } + if o.WafStatus502 != nil { + toSerialize["waf_status_502"] = o.WafStatus502 + } + if o.WafStatus503 != nil { + toSerialize["waf_status_503"] = o.WafStatus503 + } + if o.WafStatus504 != nil { + toSerialize["waf_status_504"] = o.WafStatus504 + } + if o.WafStatus505 != nil { + toSerialize["waf_status_505"] = o.WafStatus505 + } + if o.WafLatency0To1ms != nil { + toSerialize["waf_latency_0_to_1ms"] = o.WafLatency0To1ms + } + if o.WafLatency1To5ms != nil { + toSerialize["waf_latency_1_to_5ms"] = o.WafLatency1To5ms + } + if o.WafLatency5To10ms != nil { + toSerialize["waf_latency_5_to_10ms"] = o.WafLatency5To10ms + } + if o.WafLatency10To50ms != nil { + toSerialize["waf_latency_10_to_50ms"] = o.WafLatency10To50ms + } + if o.WafLatency50To100ms != nil { + toSerialize["waf_latency_50_to_100ms"] = o.WafLatency50To100ms + } + if o.WafLatency100To250ms != nil { + toSerialize["waf_latency_100_to_250ms"] = o.WafLatency100To250ms + } + if o.WafLatency250To500ms != nil { + toSerialize["waf_latency_250_to_500ms"] = o.WafLatency250To500ms + } + if o.WafLatency500To1000ms != nil { + toSerialize["waf_latency_500_to_1000ms"] = o.WafLatency500To1000ms + } + if o.WafLatency1000To5000ms != nil { + toSerialize["waf_latency_1000_to_5000ms"] = o.WafLatency1000To5000ms + } + if o.WafLatency5000To10000ms != nil { + toSerialize["waf_latency_5000_to_10000ms"] = o.WafLatency5000To10000ms + } + if o.WafLatency10000To60000ms != nil { + toSerialize["waf_latency_10000_to_60000ms"] = o.WafLatency10000To60000ms + } + if o.WafLatency60000ms != nil { + toSerialize["waf_latency_60000ms"] = o.WafLatency60000ms + } + if o.ComputeResponses != nil { + toSerialize["compute_responses"] = o.ComputeResponses + } + if o.ComputeRespHeaderBytes != nil { + toSerialize["compute_resp_header_bytes"] = o.ComputeRespHeaderBytes + } + if o.ComputeRespBodyBytes != nil { + toSerialize["compute_resp_body_bytes"] = o.ComputeRespBodyBytes + } + if o.ComputeStatus1xx != nil { + toSerialize["compute_status_1xx"] = o.ComputeStatus1xx + } + if o.ComputeStatus2xx != nil { + toSerialize["compute_status_2xx"] = o.ComputeStatus2xx + } + if o.ComputeStatus3xx != nil { + toSerialize["compute_status_3xx"] = o.ComputeStatus3xx + } + if o.ComputeStatus4xx != nil { + toSerialize["compute_status_4xx"] = o.ComputeStatus4xx + } + if o.ComputeStatus5xx != nil { + toSerialize["compute_status_5xx"] = o.ComputeStatus5xx + } + if o.ComputeStatus200 != nil { + toSerialize["compute_status_200"] = o.ComputeStatus200 + } + if o.ComputeStatus204 != nil { + toSerialize["compute_status_204"] = o.ComputeStatus204 + } + if o.ComputeStatus206 != nil { + toSerialize["compute_status_206"] = o.ComputeStatus206 + } + if o.ComputeStatus301 != nil { + toSerialize["compute_status_301"] = o.ComputeStatus301 + } + if o.ComputeStatus302 != nil { + toSerialize["compute_status_302"] = o.ComputeStatus302 + } + if o.ComputeStatus304 != nil { + toSerialize["compute_status_304"] = o.ComputeStatus304 + } + if o.ComputeStatus400 != nil { + toSerialize["compute_status_400"] = o.ComputeStatus400 + } + if o.ComputeStatus401 != nil { + toSerialize["compute_status_401"] = o.ComputeStatus401 + } + if o.ComputeStatus403 != nil { + toSerialize["compute_status_403"] = o.ComputeStatus403 + } + if o.ComputeStatus404 != nil { + toSerialize["compute_status_404"] = o.ComputeStatus404 + } + if o.ComputeStatus416 != nil { + toSerialize["compute_status_416"] = o.ComputeStatus416 + } + if o.ComputeStatus429 != nil { + toSerialize["compute_status_429"] = o.ComputeStatus429 + } + if o.ComputeStatus500 != nil { + toSerialize["compute_status_500"] = o.ComputeStatus500 + } + if o.ComputeStatus501 != nil { + toSerialize["compute_status_501"] = o.ComputeStatus501 + } + if o.ComputeStatus502 != nil { + toSerialize["compute_status_502"] = o.ComputeStatus502 + } + if o.ComputeStatus503 != nil { + toSerialize["compute_status_503"] = o.ComputeStatus503 + } + if o.ComputeStatus504 != nil { + toSerialize["compute_status_504"] = o.ComputeStatus504 + } + if o.ComputeStatus505 != nil { + toSerialize["compute_status_505"] = o.ComputeStatus505 + } + if o.ComputeLatency0To1ms != nil { + toSerialize["compute_latency_0_to_1ms"] = o.ComputeLatency0To1ms + } + if o.ComputeLatency1To5ms != nil { + toSerialize["compute_latency_1_to_5ms"] = o.ComputeLatency1To5ms + } + if o.ComputeLatency5To10ms != nil { + toSerialize["compute_latency_5_to_10ms"] = o.ComputeLatency5To10ms + } + if o.ComputeLatency10To50ms != nil { + toSerialize["compute_latency_10_to_50ms"] = o.ComputeLatency10To50ms + } + if o.ComputeLatency50To100ms != nil { + toSerialize["compute_latency_50_to_100ms"] = o.ComputeLatency50To100ms + } + if o.ComputeLatency100To250ms != nil { + toSerialize["compute_latency_100_to_250ms"] = o.ComputeLatency100To250ms + } + if o.ComputeLatency250To500ms != nil { + toSerialize["compute_latency_250_to_500ms"] = o.ComputeLatency250To500ms + } + if o.ComputeLatency500To1000ms != nil { + toSerialize["compute_latency_500_to_1000ms"] = o.ComputeLatency500To1000ms + } + if o.ComputeLatency1000To5000ms != nil { + toSerialize["compute_latency_1000_to_5000ms"] = o.ComputeLatency1000To5000ms + } + if o.ComputeLatency5000To10000ms != nil { + toSerialize["compute_latency_5000_to_10000ms"] = o.ComputeLatency5000To10000ms + } + if o.ComputeLatency10000To60000ms != nil { + toSerialize["compute_latency_10000_to_60000ms"] = o.ComputeLatency10000To60000ms + } + if o.ComputeLatency60000ms != nil { + toSerialize["compute_latency_60000ms"] = o.ComputeLatency60000ms + } + if o.AllResponses != nil { + toSerialize["all_responses"] = o.AllResponses + } + if o.AllRespHeaderBytes != nil { + toSerialize["all_resp_header_bytes"] = o.AllRespHeaderBytes + } + if o.AllRespBodyBytes != nil { + toSerialize["all_resp_body_bytes"] = o.AllRespBodyBytes + } + if o.AllStatus1xx != nil { + toSerialize["all_status_1xx"] = o.AllStatus1xx + } + if o.AllStatus2xx != nil { + toSerialize["all_status_2xx"] = o.AllStatus2xx + } + if o.AllStatus3xx != nil { + toSerialize["all_status_3xx"] = o.AllStatus3xx + } + if o.AllStatus4xx != nil { + toSerialize["all_status_4xx"] = o.AllStatus4xx + } + if o.AllStatus5xx != nil { + toSerialize["all_status_5xx"] = o.AllStatus5xx + } + if o.AllStatus200 != nil { + toSerialize["all_status_200"] = o.AllStatus200 + } + if o.AllStatus204 != nil { + toSerialize["all_status_204"] = o.AllStatus204 + } + if o.AllStatus206 != nil { + toSerialize["all_status_206"] = o.AllStatus206 + } + if o.AllStatus301 != nil { + toSerialize["all_status_301"] = o.AllStatus301 + } + if o.AllStatus302 != nil { + toSerialize["all_status_302"] = o.AllStatus302 + } + if o.AllStatus304 != nil { + toSerialize["all_status_304"] = o.AllStatus304 + } + if o.AllStatus400 != nil { + toSerialize["all_status_400"] = o.AllStatus400 + } + if o.AllStatus401 != nil { + toSerialize["all_status_401"] = o.AllStatus401 + } + if o.AllStatus403 != nil { + toSerialize["all_status_403"] = o.AllStatus403 + } + if o.AllStatus404 != nil { + toSerialize["all_status_404"] = o.AllStatus404 + } + if o.AllStatus416 != nil { + toSerialize["all_status_416"] = o.AllStatus416 + } + if o.AllStatus429 != nil { + toSerialize["all_status_429"] = o.AllStatus429 + } + if o.AllStatus500 != nil { + toSerialize["all_status_500"] = o.AllStatus500 + } + if o.AllStatus501 != nil { + toSerialize["all_status_501"] = o.AllStatus501 + } + if o.AllStatus502 != nil { + toSerialize["all_status_502"] = o.AllStatus502 + } + if o.AllStatus503 != nil { + toSerialize["all_status_503"] = o.AllStatus503 + } + if o.AllStatus504 != nil { + toSerialize["all_status_504"] = o.AllStatus504 + } + if o.AllStatus505 != nil { + toSerialize["all_status_505"] = o.AllStatus505 + } + if o.AllLatency0To1ms != nil { + toSerialize["all_latency_0_to_1ms"] = o.AllLatency0To1ms + } + if o.AllLatency1To5ms != nil { + toSerialize["all_latency_1_to_5ms"] = o.AllLatency1To5ms + } + if o.AllLatency5To10ms != nil { + toSerialize["all_latency_5_to_10ms"] = o.AllLatency5To10ms + } + if o.AllLatency10To50ms != nil { + toSerialize["all_latency_10_to_50ms"] = o.AllLatency10To50ms + } + if o.AllLatency50To100ms != nil { + toSerialize["all_latency_50_to_100ms"] = o.AllLatency50To100ms + } + if o.AllLatency100To250ms != nil { + toSerialize["all_latency_100_to_250ms"] = o.AllLatency100To250ms + } + if o.AllLatency250To500ms != nil { + toSerialize["all_latency_250_to_500ms"] = o.AllLatency250To500ms + } + if o.AllLatency500To1000ms != nil { + toSerialize["all_latency_500_to_1000ms"] = o.AllLatency500To1000ms + } + if o.AllLatency1000To5000ms != nil { + toSerialize["all_latency_1000_to_5000ms"] = o.AllLatency1000To5000ms + } + if o.AllLatency5000To10000ms != nil { + toSerialize["all_latency_5000_to_10000ms"] = o.AllLatency5000To10000ms + } + if o.AllLatency10000To60000ms != nil { + toSerialize["all_latency_10000_to_60000ms"] = o.AllLatency10000To60000ms + } + if o.AllLatency60000ms != nil { + toSerialize["all_latency_60000ms"] = o.AllLatency60000ms + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return json.Marshal(toSerialize) +} + +// UnmarshalJSON implements the Unmarshaler interface. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +func (o *OriginInspectorMeasurements) UnmarshalJSON(bytes []byte) (err error) { + varOriginInspectorMeasurements := _OriginInspectorMeasurements{} + + if err = json.Unmarshal(bytes, &varOriginInspectorMeasurements); err == nil { + *o = OriginInspectorMeasurements(varOriginInspectorMeasurements) + } + + additionalProperties := make(map[string]any) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "responses") + delete(additionalProperties, "resp_header_bytes") + delete(additionalProperties, "resp_body_bytes") + delete(additionalProperties, "status_1xx") + delete(additionalProperties, "status_2xx") + delete(additionalProperties, "status_3xx") + delete(additionalProperties, "status_4xx") + delete(additionalProperties, "status_5xx") + delete(additionalProperties, "status_200") + delete(additionalProperties, "status_204") + delete(additionalProperties, "status_206") + delete(additionalProperties, "status_301") + delete(additionalProperties, "status_302") + delete(additionalProperties, "status_304") + delete(additionalProperties, "status_400") + delete(additionalProperties, "status_401") + delete(additionalProperties, "status_403") + delete(additionalProperties, "status_404") + delete(additionalProperties, "status_416") + delete(additionalProperties, "status_429") + delete(additionalProperties, "status_500") + delete(additionalProperties, "status_501") + delete(additionalProperties, "status_502") + delete(additionalProperties, "status_503") + delete(additionalProperties, "status_504") + delete(additionalProperties, "status_505") + delete(additionalProperties, "latency_0_to_1ms") + delete(additionalProperties, "latency_1_to_5ms") + delete(additionalProperties, "latency_5_to_10ms") + delete(additionalProperties, "latency_10_to_50ms") + delete(additionalProperties, "latency_50_to_100ms") + delete(additionalProperties, "latency_100_to_250ms") + delete(additionalProperties, "latency_250_to_500ms") + delete(additionalProperties, "latency_500_to_1000ms") + delete(additionalProperties, "latency_1000_to_5000ms") + delete(additionalProperties, "latency_5000_to_10000ms") + delete(additionalProperties, "latency_10000_to_60000ms") + delete(additionalProperties, "latency_60000ms") + delete(additionalProperties, "waf_responses") + delete(additionalProperties, "waf_resp_header_bytes") + delete(additionalProperties, "waf_resp_body_bytes") + delete(additionalProperties, "waf_status_1xx") + delete(additionalProperties, "waf_status_2xx") + delete(additionalProperties, "waf_status_3xx") + delete(additionalProperties, "waf_status_4xx") + delete(additionalProperties, "waf_status_5xx") + delete(additionalProperties, "waf_status_200") + delete(additionalProperties, "waf_status_204") + delete(additionalProperties, "waf_status_206") + delete(additionalProperties, "waf_status_301") + delete(additionalProperties, "waf_status_302") + delete(additionalProperties, "waf_status_304") + delete(additionalProperties, "waf_status_400") + delete(additionalProperties, "waf_status_401") + delete(additionalProperties, "waf_status_403") + delete(additionalProperties, "waf_status_404") + delete(additionalProperties, "waf_status_416") + delete(additionalProperties, "waf_status_429") + delete(additionalProperties, "waf_status_500") + delete(additionalProperties, "waf_status_501") + delete(additionalProperties, "waf_status_502") + delete(additionalProperties, "waf_status_503") + delete(additionalProperties, "waf_status_504") + delete(additionalProperties, "waf_status_505") + delete(additionalProperties, "waf_latency_0_to_1ms") + delete(additionalProperties, "waf_latency_1_to_5ms") + delete(additionalProperties, "waf_latency_5_to_10ms") + delete(additionalProperties, "waf_latency_10_to_50ms") + delete(additionalProperties, "waf_latency_50_to_100ms") + delete(additionalProperties, "waf_latency_100_to_250ms") + delete(additionalProperties, "waf_latency_250_to_500ms") + delete(additionalProperties, "waf_latency_500_to_1000ms") + delete(additionalProperties, "waf_latency_1000_to_5000ms") + delete(additionalProperties, "waf_latency_5000_to_10000ms") + delete(additionalProperties, "waf_latency_10000_to_60000ms") + delete(additionalProperties, "waf_latency_60000ms") + delete(additionalProperties, "compute_responses") + delete(additionalProperties, "compute_resp_header_bytes") + delete(additionalProperties, "compute_resp_body_bytes") + delete(additionalProperties, "compute_status_1xx") + delete(additionalProperties, "compute_status_2xx") + delete(additionalProperties, "compute_status_3xx") + delete(additionalProperties, "compute_status_4xx") + delete(additionalProperties, "compute_status_5xx") + delete(additionalProperties, "compute_status_200") + delete(additionalProperties, "compute_status_204") + delete(additionalProperties, "compute_status_206") + delete(additionalProperties, "compute_status_301") + delete(additionalProperties, "compute_status_302") + delete(additionalProperties, "compute_status_304") + delete(additionalProperties, "compute_status_400") + delete(additionalProperties, "compute_status_401") + delete(additionalProperties, "compute_status_403") + delete(additionalProperties, "compute_status_404") + delete(additionalProperties, "compute_status_416") + delete(additionalProperties, "compute_status_429") + delete(additionalProperties, "compute_status_500") + delete(additionalProperties, "compute_status_501") + delete(additionalProperties, "compute_status_502") + delete(additionalProperties, "compute_status_503") + delete(additionalProperties, "compute_status_504") + delete(additionalProperties, "compute_status_505") + delete(additionalProperties, "compute_latency_0_to_1ms") + delete(additionalProperties, "compute_latency_1_to_5ms") + delete(additionalProperties, "compute_latency_5_to_10ms") + delete(additionalProperties, "compute_latency_10_to_50ms") + delete(additionalProperties, "compute_latency_50_to_100ms") + delete(additionalProperties, "compute_latency_100_to_250ms") + delete(additionalProperties, "compute_latency_250_to_500ms") + delete(additionalProperties, "compute_latency_500_to_1000ms") + delete(additionalProperties, "compute_latency_1000_to_5000ms") + delete(additionalProperties, "compute_latency_5000_to_10000ms") + delete(additionalProperties, "compute_latency_10000_to_60000ms") + delete(additionalProperties, "compute_latency_60000ms") + delete(additionalProperties, "all_responses") + delete(additionalProperties, "all_resp_header_bytes") + delete(additionalProperties, "all_resp_body_bytes") + delete(additionalProperties, "all_status_1xx") + delete(additionalProperties, "all_status_2xx") + delete(additionalProperties, "all_status_3xx") + delete(additionalProperties, "all_status_4xx") + delete(additionalProperties, "all_status_5xx") + delete(additionalProperties, "all_status_200") + delete(additionalProperties, "all_status_204") + delete(additionalProperties, "all_status_206") + delete(additionalProperties, "all_status_301") + delete(additionalProperties, "all_status_302") + delete(additionalProperties, "all_status_304") + delete(additionalProperties, "all_status_400") + delete(additionalProperties, "all_status_401") + delete(additionalProperties, "all_status_403") + delete(additionalProperties, "all_status_404") + delete(additionalProperties, "all_status_416") + delete(additionalProperties, "all_status_429") + delete(additionalProperties, "all_status_500") + delete(additionalProperties, "all_status_501") + delete(additionalProperties, "all_status_502") + delete(additionalProperties, "all_status_503") + delete(additionalProperties, "all_status_504") + delete(additionalProperties, "all_status_505") + delete(additionalProperties, "all_latency_0_to_1ms") + delete(additionalProperties, "all_latency_1_to_5ms") + delete(additionalProperties, "all_latency_5_to_10ms") + delete(additionalProperties, "all_latency_10_to_50ms") + delete(additionalProperties, "all_latency_50_to_100ms") + delete(additionalProperties, "all_latency_100_to_250ms") + delete(additionalProperties, "all_latency_250_to_500ms") + delete(additionalProperties, "all_latency_500_to_1000ms") + delete(additionalProperties, "all_latency_1000_to_5000ms") + delete(additionalProperties, "all_latency_5000_to_10000ms") + delete(additionalProperties, "all_latency_10000_to_60000ms") + delete(additionalProperties, "all_latency_60000ms") + o.AdditionalProperties = additionalProperties + } + + return err +} + +// NullableOriginInspectorMeasurements is a helper abstraction for handling nullable origininspectormeasurements types. +type NullableOriginInspectorMeasurements struct { + value *OriginInspectorMeasurements + isSet bool +} + +// Get returns the value. +func (v NullableOriginInspectorMeasurements) Get() *OriginInspectorMeasurements { + return v.value +} + +// Set modifies the value. +func (v *NullableOriginInspectorMeasurements) Set(val *OriginInspectorMeasurements) { + v.value = val + v.isSet = true +} + +// IsSet indicates if the value was set. +func (v NullableOriginInspectorMeasurements) IsSet() bool { + return v.isSet +} + +// Unset removes the value. +func (v *NullableOriginInspectorMeasurements) Unset() { + v.value = nil + v.isSet = false +} + +// NewNullableOriginInspectorMeasurements returns a pointer to a new instance of NullableOriginInspectorMeasurements. +func NewNullableOriginInspectorMeasurements(val *OriginInspectorMeasurements) *NullableOriginInspectorMeasurements { + return &NullableOriginInspectorMeasurements{value: val, isSet: true} +} + +// MarshalJSON implements the json.Marshaler interface. +// Marshaler is the interface implemented by types that can marshal themselves into valid JSON. +func (v NullableOriginInspectorMeasurements) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +// UnmarshalJSON implements the Unmarshaler interface. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +func (v *NullableOriginInspectorMeasurements) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/fastly/model_origin_inspector_realtime_entry.go b/fastly/model_origin_inspector_realtime_entry.go new file mode 100644 index 00000000..9110ec8b --- /dev/null +++ b/fastly/model_origin_inspector_realtime_entry.go @@ -0,0 +1,231 @@ +// Package fastly is an API client library for interacting with most facets of the Fastly API. +package fastly + +/* +Fastly API + +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://developer.fastly.com/reference/api/) + +API version: 1.0.0 +Contact: oss@fastly.com +*/ + +// This code is auto-generated; DO NOT EDIT. + + +import ( + "encoding/json" +) + +// OriginInspectorRealtimeEntry Each reporting period is represented by an entry in the `Data` property of the top level response and provides access to [measurement data](#measurements-data-model) for that time period, grouped by origin name and optionally by POP. The `datacenter` property organizes the measurements by Fastly POP, while the `aggregated` property combines the measurements of all POPs. +type OriginInspectorRealtimeEntry struct { + Recorded *OriginInspectorRealtimeEntryRecorded `json:"recorded,omitempty"` + // Groups [measurements](#measurements-data-model) by backend name. + Aggregated *map[string]OriginInspectorMeasurements `json:"aggregated,omitempty"` + // Groups [measurements](#measurements-data-model) by POP, then backend name. See the [POPs API](/reference/api/utils/pops/) for details about POP identifiers. + Datacenter *map[string]map[string]OriginInspectorMeasurements `json:"datacenter,omitempty"` + AdditionalProperties map[string]any +} + +type _OriginInspectorRealtimeEntry OriginInspectorRealtimeEntry + +// NewOriginInspectorRealtimeEntry instantiates a new OriginInspectorRealtimeEntry object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewOriginInspectorRealtimeEntry() *OriginInspectorRealtimeEntry { + this := OriginInspectorRealtimeEntry{} + return &this +} + +// NewOriginInspectorRealtimeEntryWithDefaults instantiates a new OriginInspectorRealtimeEntry object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewOriginInspectorRealtimeEntryWithDefaults() *OriginInspectorRealtimeEntry { + this := OriginInspectorRealtimeEntry{} + return &this +} + +// GetRecorded returns the Recorded field value if set, zero value otherwise. +func (o *OriginInspectorRealtimeEntry) GetRecorded() OriginInspectorRealtimeEntryRecorded { + if o == nil || o.Recorded == nil { + var ret OriginInspectorRealtimeEntryRecorded + return ret + } + return *o.Recorded +} + +// GetRecordedOk returns a tuple with the Recorded field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorRealtimeEntry) GetRecordedOk() (*OriginInspectorRealtimeEntryRecorded, bool) { + if o == nil || o.Recorded == nil { + return nil, false + } + return o.Recorded, true +} + +// HasRecorded returns a boolean if a field has been set. +func (o *OriginInspectorRealtimeEntry) HasRecorded() bool { + if o != nil && o.Recorded != nil { + return true + } + + return false +} + +// SetRecorded gets a reference to the given OriginInspectorRealtimeEntryRecorded and assigns it to the Recorded field. +func (o *OriginInspectorRealtimeEntry) SetRecorded(v OriginInspectorRealtimeEntryRecorded) { + o.Recorded = &v +} + +// GetAggregated returns the Aggregated field value if set, zero value otherwise. +func (o *OriginInspectorRealtimeEntry) GetAggregated() map[string]OriginInspectorMeasurements { + if o == nil || o.Aggregated == nil { + var ret map[string]OriginInspectorMeasurements + return ret + } + return *o.Aggregated +} + +// GetAggregatedOk returns a tuple with the Aggregated field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorRealtimeEntry) GetAggregatedOk() (*map[string]OriginInspectorMeasurements, bool) { + if o == nil || o.Aggregated == nil { + return nil, false + } + return o.Aggregated, true +} + +// HasAggregated returns a boolean if a field has been set. +func (o *OriginInspectorRealtimeEntry) HasAggregated() bool { + if o != nil && o.Aggregated != nil { + return true + } + + return false +} + +// SetAggregated gets a reference to the given map[string]OriginInspectorMeasurements and assigns it to the Aggregated field. +func (o *OriginInspectorRealtimeEntry) SetAggregated(v map[string]OriginInspectorMeasurements) { + o.Aggregated = &v +} + +// GetDatacenter returns the Datacenter field value if set, zero value otherwise. +func (o *OriginInspectorRealtimeEntry) GetDatacenter() map[string]map[string]OriginInspectorMeasurements { + if o == nil || o.Datacenter == nil { + var ret map[string]map[string]OriginInspectorMeasurements + return ret + } + return *o.Datacenter +} + +// GetDatacenterOk returns a tuple with the Datacenter field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorRealtimeEntry) GetDatacenterOk() (*map[string]map[string]OriginInspectorMeasurements, bool) { + if o == nil || o.Datacenter == nil { + return nil, false + } + return o.Datacenter, true +} + +// HasDatacenter returns a boolean if a field has been set. +func (o *OriginInspectorRealtimeEntry) HasDatacenter() bool { + if o != nil && o.Datacenter != nil { + return true + } + + return false +} + +// SetDatacenter gets a reference to the given map[string]map[string]OriginInspectorMeasurements and assigns it to the Datacenter field. +func (o *OriginInspectorRealtimeEntry) SetDatacenter(v map[string]map[string]OriginInspectorMeasurements) { + o.Datacenter = &v +} + +// MarshalJSON implements the json.Marshaler interface. +// Marshaler is the interface implemented by types that can marshal themselves into valid JSON. +func (o OriginInspectorRealtimeEntry) MarshalJSON() ([]byte, error) { + toSerialize := map[string]any{} + if o.Recorded != nil { + toSerialize["recorded"] = o.Recorded + } + if o.Aggregated != nil { + toSerialize["aggregated"] = o.Aggregated + } + if o.Datacenter != nil { + toSerialize["datacenter"] = o.Datacenter + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return json.Marshal(toSerialize) +} + +// UnmarshalJSON implements the Unmarshaler interface. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +func (o *OriginInspectorRealtimeEntry) UnmarshalJSON(bytes []byte) (err error) { + varOriginInspectorRealtimeEntry := _OriginInspectorRealtimeEntry{} + + if err = json.Unmarshal(bytes, &varOriginInspectorRealtimeEntry); err == nil { + *o = OriginInspectorRealtimeEntry(varOriginInspectorRealtimeEntry) + } + + additionalProperties := make(map[string]any) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "recorded") + delete(additionalProperties, "aggregated") + delete(additionalProperties, "datacenter") + o.AdditionalProperties = additionalProperties + } + + return err +} + +// NullableOriginInspectorRealtimeEntry is a helper abstraction for handling nullable origininspectorrealtimeentry types. +type NullableOriginInspectorRealtimeEntry struct { + value *OriginInspectorRealtimeEntry + isSet bool +} + +// Get returns the value. +func (v NullableOriginInspectorRealtimeEntry) Get() *OriginInspectorRealtimeEntry { + return v.value +} + +// Set modifies the value. +func (v *NullableOriginInspectorRealtimeEntry) Set(val *OriginInspectorRealtimeEntry) { + v.value = val + v.isSet = true +} + +// IsSet indicates if the value was set. +func (v NullableOriginInspectorRealtimeEntry) IsSet() bool { + return v.isSet +} + +// Unset removes the value. +func (v *NullableOriginInspectorRealtimeEntry) Unset() { + v.value = nil + v.isSet = false +} + +// NewNullableOriginInspectorRealtimeEntry returns a pointer to a new instance of NullableOriginInspectorRealtimeEntry. +func NewNullableOriginInspectorRealtimeEntry(val *OriginInspectorRealtimeEntry) *NullableOriginInspectorRealtimeEntry { + return &NullableOriginInspectorRealtimeEntry{value: val, isSet: true} +} + +// MarshalJSON implements the json.Marshaler interface. +// Marshaler is the interface implemented by types that can marshal themselves into valid JSON. +func (v NullableOriginInspectorRealtimeEntry) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +// UnmarshalJSON implements the Unmarshaler interface. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +func (v *NullableOriginInspectorRealtimeEntry) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/fastly/model_origin_inspector_realtime_entry_recorded.go b/fastly/model_origin_inspector_realtime_entry_recorded.go new file mode 100644 index 00000000..0715d423 --- /dev/null +++ b/fastly/model_origin_inspector_realtime_entry_recorded.go @@ -0,0 +1,118 @@ +// Package fastly is an API client library for interacting with most facets of the Fastly API. +package fastly + +/* +Fastly API + +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://developer.fastly.com/reference/api/) + +API version: 1.0.0 +Contact: oss@fastly.com +*/ + +// This code is auto-generated; DO NOT EDIT. + + +import ( + "encoding/json" +) + +// OriginInspectorRealtimeEntryRecorded The Unix timestamp at which this record's data was generated. +type OriginInspectorRealtimeEntryRecorded struct { + AdditionalProperties map[string]any +} + +type _OriginInspectorRealtimeEntryRecorded OriginInspectorRealtimeEntryRecorded + +// NewOriginInspectorRealtimeEntryRecorded instantiates a new OriginInspectorRealtimeEntryRecorded object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewOriginInspectorRealtimeEntryRecorded() *OriginInspectorRealtimeEntryRecorded { + this := OriginInspectorRealtimeEntryRecorded{} + return &this +} + +// NewOriginInspectorRealtimeEntryRecordedWithDefaults instantiates a new OriginInspectorRealtimeEntryRecorded object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewOriginInspectorRealtimeEntryRecordedWithDefaults() *OriginInspectorRealtimeEntryRecorded { + this := OriginInspectorRealtimeEntryRecorded{} + return &this +} + +// MarshalJSON implements the json.Marshaler interface. +// Marshaler is the interface implemented by types that can marshal themselves into valid JSON. +func (o OriginInspectorRealtimeEntryRecorded) MarshalJSON() ([]byte, error) { + toSerialize := map[string]any{} + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return json.Marshal(toSerialize) +} + +// UnmarshalJSON implements the Unmarshaler interface. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +func (o *OriginInspectorRealtimeEntryRecorded) UnmarshalJSON(bytes []byte) (err error) { + varOriginInspectorRealtimeEntryRecorded := _OriginInspectorRealtimeEntryRecorded{} + + if err = json.Unmarshal(bytes, &varOriginInspectorRealtimeEntryRecorded); err == nil { + *o = OriginInspectorRealtimeEntryRecorded(varOriginInspectorRealtimeEntryRecorded) + } + + additionalProperties := make(map[string]any) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + o.AdditionalProperties = additionalProperties + } + + return err +} + +// NullableOriginInspectorRealtimeEntryRecorded is a helper abstraction for handling nullable origininspectorrealtimeentryrecorded types. +type NullableOriginInspectorRealtimeEntryRecorded struct { + value *OriginInspectorRealtimeEntryRecorded + isSet bool +} + +// Get returns the value. +func (v NullableOriginInspectorRealtimeEntryRecorded) Get() *OriginInspectorRealtimeEntryRecorded { + return v.value +} + +// Set modifies the value. +func (v *NullableOriginInspectorRealtimeEntryRecorded) Set(val *OriginInspectorRealtimeEntryRecorded) { + v.value = val + v.isSet = true +} + +// IsSet indicates if the value was set. +func (v NullableOriginInspectorRealtimeEntryRecorded) IsSet() bool { + return v.isSet +} + +// Unset removes the value. +func (v *NullableOriginInspectorRealtimeEntryRecorded) Unset() { + v.value = nil + v.isSet = false +} + +// NewNullableOriginInspectorRealtimeEntryRecorded returns a pointer to a new instance of NullableOriginInspectorRealtimeEntryRecorded. +func NewNullableOriginInspectorRealtimeEntryRecorded(val *OriginInspectorRealtimeEntryRecorded) *NullableOriginInspectorRealtimeEntryRecorded { + return &NullableOriginInspectorRealtimeEntryRecorded{value: val, isSet: true} +} + +// MarshalJSON implements the json.Marshaler interface. +// Marshaler is the interface implemented by types that can marshal themselves into valid JSON. +func (v NullableOriginInspectorRealtimeEntryRecorded) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +// UnmarshalJSON implements the Unmarshaler interface. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +func (v *NullableOriginInspectorRealtimeEntryRecorded) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/fastly/model_origin_inspector_subsequent_request_timestamp.go b/fastly/model_origin_inspector_subsequent_request_timestamp.go new file mode 100644 index 00000000..7f2877d1 --- /dev/null +++ b/fastly/model_origin_inspector_subsequent_request_timestamp.go @@ -0,0 +1,118 @@ +// Package fastly is an API client library for interacting with most facets of the Fastly API. +package fastly + +/* +Fastly API + +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://developer.fastly.com/reference/api/) + +API version: 1.0.0 +Contact: oss@fastly.com +*/ + +// This code is auto-generated; DO NOT EDIT. + + +import ( + "encoding/json" +) + +// OriginInspectorSubsequentRequestTimestamp Value to use for subsequent requests. +type OriginInspectorSubsequentRequestTimestamp struct { + AdditionalProperties map[string]any +} + +type _OriginInspectorSubsequentRequestTimestamp OriginInspectorSubsequentRequestTimestamp + +// NewOriginInspectorSubsequentRequestTimestamp instantiates a new OriginInspectorSubsequentRequestTimestamp object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewOriginInspectorSubsequentRequestTimestamp() *OriginInspectorSubsequentRequestTimestamp { + this := OriginInspectorSubsequentRequestTimestamp{} + return &this +} + +// NewOriginInspectorSubsequentRequestTimestampWithDefaults instantiates a new OriginInspectorSubsequentRequestTimestamp object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewOriginInspectorSubsequentRequestTimestampWithDefaults() *OriginInspectorSubsequentRequestTimestamp { + this := OriginInspectorSubsequentRequestTimestamp{} + return &this +} + +// MarshalJSON implements the json.Marshaler interface. +// Marshaler is the interface implemented by types that can marshal themselves into valid JSON. +func (o OriginInspectorSubsequentRequestTimestamp) MarshalJSON() ([]byte, error) { + toSerialize := map[string]any{} + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return json.Marshal(toSerialize) +} + +// UnmarshalJSON implements the Unmarshaler interface. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +func (o *OriginInspectorSubsequentRequestTimestamp) UnmarshalJSON(bytes []byte) (err error) { + varOriginInspectorSubsequentRequestTimestamp := _OriginInspectorSubsequentRequestTimestamp{} + + if err = json.Unmarshal(bytes, &varOriginInspectorSubsequentRequestTimestamp); err == nil { + *o = OriginInspectorSubsequentRequestTimestamp(varOriginInspectorSubsequentRequestTimestamp) + } + + additionalProperties := make(map[string]any) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + o.AdditionalProperties = additionalProperties + } + + return err +} + +// NullableOriginInspectorSubsequentRequestTimestamp is a helper abstraction for handling nullable origininspectorsubsequentrequesttimestamp types. +type NullableOriginInspectorSubsequentRequestTimestamp struct { + value *OriginInspectorSubsequentRequestTimestamp + isSet bool +} + +// Get returns the value. +func (v NullableOriginInspectorSubsequentRequestTimestamp) Get() *OriginInspectorSubsequentRequestTimestamp { + return v.value +} + +// Set modifies the value. +func (v *NullableOriginInspectorSubsequentRequestTimestamp) Set(val *OriginInspectorSubsequentRequestTimestamp) { + v.value = val + v.isSet = true +} + +// IsSet indicates if the value was set. +func (v NullableOriginInspectorSubsequentRequestTimestamp) IsSet() bool { + return v.isSet +} + +// Unset removes the value. +func (v *NullableOriginInspectorSubsequentRequestTimestamp) Unset() { + v.value = nil + v.isSet = false +} + +// NewNullableOriginInspectorSubsequentRequestTimestamp returns a pointer to a new instance of NullableOriginInspectorSubsequentRequestTimestamp. +func NewNullableOriginInspectorSubsequentRequestTimestamp(val *OriginInspectorSubsequentRequestTimestamp) *NullableOriginInspectorSubsequentRequestTimestamp { + return &NullableOriginInspectorSubsequentRequestTimestamp{value: val, isSet: true} +} + +// MarshalJSON implements the json.Marshaler interface. +// Marshaler is the interface implemented by types that can marshal themselves into valid JSON. +func (v NullableOriginInspectorSubsequentRequestTimestamp) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +// UnmarshalJSON implements the Unmarshaler interface. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +func (v *NullableOriginInspectorSubsequentRequestTimestamp) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/fastly/model_origin_inspector_values.go b/fastly/model_origin_inspector_values.go new file mode 100644 index 00000000..31b230f2 --- /dev/null +++ b/fastly/model_origin_inspector_values.go @@ -0,0 +1,5894 @@ +// Package fastly is an API client library for interacting with most facets of the Fastly API. +package fastly + +/* +Fastly API + +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://developer.fastly.com/reference/api/) + +API version: 1.0.0 +Contact: oss@fastly.com +*/ + +// This code is auto-generated; DO NOT EDIT. + + +import ( + "encoding/json" +) + +// OriginInspectorValues The results of the query, optionally filtered and grouped over the requested timespan. +type OriginInspectorValues struct { + // Number of responses from origin. + Responses *int32 `json:"responses,omitempty"` + // Number of header bytes from origin. + RespHeaderBytes *int32 `json:"resp_header_bytes,omitempty"` + // Number of body bytes from origin. + RespBodyBytes *int32 `json:"resp_body_bytes,omitempty"` + // Number of 1xx \"Informational\" status codes delivered from origin. + Status1xx *int32 `json:"status_1xx,omitempty"` + // Number of 2xx \"Success\" status codes delivered from origin. + Status2xx *int32 `json:"status_2xx,omitempty"` + // Number of 3xx \"Redirection\" codes delivered from origin. + Status3xx *int32 `json:"status_3xx,omitempty"` + // Number of 4xx \"Client Error\" codes delivered from origin. + Status4xx *int32 `json:"status_4xx,omitempty"` + // Number of 5xx \"Server Error\" codes delivered from origin. + Status5xx *int32 `json:"status_5xx,omitempty"` + // Number of responses received with status code 200 (Success) from origin. + Status200 *int32 `json:"status_200,omitempty"` + // Number of responses received with status code 204 (No Content) from origin. + Status204 *int32 `json:"status_204,omitempty"` + // Number of responses received with status code 206 (Partial Content) from origin. + Status206 *int32 `json:"status_206,omitempty"` + // Number of responses received with status code 301 (Moved Permanently) from origin. + Status301 *int32 `json:"status_301,omitempty"` + // Number of responses received with status code 302 (Found) from origin. + Status302 *int32 `json:"status_302,omitempty"` + // Number of responses received with status code 304 (Not Modified) from origin. + Status304 *int32 `json:"status_304,omitempty"` + // Number of responses received with status code 400 (Bad Request) from origin. + Status400 *int32 `json:"status_400,omitempty"` + // Number of responses received with status code 401 (Unauthorized) from origin. + Status401 *int32 `json:"status_401,omitempty"` + // Number of responses received with status code 403 (Forbidden) from origin. + Status403 *int32 `json:"status_403,omitempty"` + // Number of responses received with status code 404 (Not Found) from origin. + Status404 *int32 `json:"status_404,omitempty"` + // Number of responses received with status code 416 (Range Not Satisfiable) from origin. + Status416 *int32 `json:"status_416,omitempty"` + // Number of responses received with status code 429 (Too Many Requests) from origin. + Status429 *int32 `json:"status_429,omitempty"` + // Number of responses received with status code 500 (Internal Server Error) from origin. + Status500 *int32 `json:"status_500,omitempty"` + // Number of responses received with status code 501 (Not Implemented) from origin. + Status501 *int32 `json:"status_501,omitempty"` + // Number of responses received with status code 502 (Bad Gateway) from origin. + Status502 *int32 `json:"status_502,omitempty"` + // Number of responses received with status code 503 (Service Unavailable) from origin. + Status503 *int32 `json:"status_503,omitempty"` + // Number of responses received with status code 504 (Gateway Timeout) from origin. + Status504 *int32 `json:"status_504,omitempty"` + // Number of responses received with status code 505 (HTTP Version Not Supported) from origin. + Status505 *int32 `json:"status_505,omitempty"` + // Number of responses from origin with latency between 0 and 1 millisecond. + Latency0To1ms *int32 `json:"latency_0_to_1ms,omitempty"` + // Number of responses from origin with latency between 1 and 5 milliseconds. + Latency1To5ms *int32 `json:"latency_1_to_5ms,omitempty"` + // Number of responses from origin with latency between 5 and 10 milliseconds. + Latency5To10ms *int32 `json:"latency_5_to_10ms,omitempty"` + // Number of responses from origin with latency between 10 and 50 milliseconds. + Latency10To50ms *int32 `json:"latency_10_to_50ms,omitempty"` + // Number of responses from origin with latency between 50 and 100 milliseconds. + Latency50To100ms *int32 `json:"latency_50_to_100ms,omitempty"` + // Number of responses from origin with latency between 100 and 250 milliseconds. + Latency100To250ms *int32 `json:"latency_100_to_250ms,omitempty"` + // Number of responses from origin with latency between 250 and 500 milliseconds. + Latency250To500ms *int32 `json:"latency_250_to_500ms,omitempty"` + // Number of responses from origin with latency between 500 and 1,000 milliseconds. + Latency500To1000ms *int32 `json:"latency_500_to_1000ms,omitempty"` + // Number of responses from origin with latency between 1,000 and 5,000 milliseconds. + Latency1000To5000ms *int32 `json:"latency_1000_to_5000ms,omitempty"` + // Number of responses from origin with latency between 5,000 and 10,000 milliseconds. + Latency5000To10000ms *int32 `json:"latency_5000_to_10000ms,omitempty"` + // Number of responses from origin with latency between 10,000 and 60,000 milliseconds. + Latency10000To60000ms *int32 `json:"latency_10000_to_60000ms,omitempty"` + // Number of responses from origin with latency of 60,000 milliseconds and above. + Latency60000ms *int32 `json:"latency_60000ms,omitempty"` + // Number of responses received for origin requests made by the Fastly WAF. + WafResponses *int32 `json:"waf_responses,omitempty"` + // Number of header bytes received for origin requests made by the Fastly WAF. + WafRespHeaderBytes *int32 `json:"waf_resp_header_bytes,omitempty"` + // Number of body bytes received for origin requests made by the Fastly WAF. + WafRespBodyBytes *int32 `json:"waf_resp_body_bytes,omitempty"` + // Number of 1xx \"Informational\" status codes received for origin requests made by the Fastly WAF. + WafStatus1xx *int32 `json:"waf_status_1xx,omitempty"` + // Number of 2xx \"Success\" status codes received for origin requests made by the Fastly WAF. + WafStatus2xx *int32 `json:"waf_status_2xx,omitempty"` + // Number of 3xx \"Redirection\" codes received for origin requests made by the Fastly WAF. + WafStatus3xx *int32 `json:"waf_status_3xx,omitempty"` + // Number of 4xx \"Client Error\" codes received for origin requests made by the Fastly WAF. + WafStatus4xx *int32 `json:"waf_status_4xx,omitempty"` + // Number of 5xx \"Server Error\" codes received for origin requests made by the Fastly WAF. + WafStatus5xx *int32 `json:"waf_status_5xx,omitempty"` + // Number of responses received with status code 200 (Success) received for origin requests made by the Fastly WAF. + WafStatus200 *int32 `json:"waf_status_200,omitempty"` + // Number of responses received with status code 204 (No Content) received for origin requests made by the Fastly WAF. + WafStatus204 *int32 `json:"waf_status_204,omitempty"` + // Number of responses received with status code 206 (Partial Content) received for origin requests made by the Fastly WAF. + WafStatus206 *int32 `json:"waf_status_206,omitempty"` + // Number of responses received with status code 301 (Moved Permanently) received for origin requests made by the Fastly WAF. + WafStatus301 *int32 `json:"waf_status_301,omitempty"` + // Number of responses received with status code 302 (Found) received for origin requests made by the Fastly WAF. + WafStatus302 *int32 `json:"waf_status_302,omitempty"` + // Number of responses received with status code 304 (Not Modified) received for origin requests made by the Fastly WAF. + WafStatus304 *int32 `json:"waf_status_304,omitempty"` + // Number of responses received with status code 400 (Bad Request) received for origin requests made by the Fastly WAF. + WafStatus400 *int32 `json:"waf_status_400,omitempty"` + // Number of responses received with status code 401 (Unauthorized) received for origin requests made by the Fastly WAF. + WafStatus401 *int32 `json:"waf_status_401,omitempty"` + // Number of responses received with status code 403 (Forbidden) received for origin requests made by the Fastly WAF. + WafStatus403 *int32 `json:"waf_status_403,omitempty"` + // Number of responses received with status code 404 (Not Found) received for origin requests made by the Fastly WAF. + WafStatus404 *int32 `json:"waf_status_404,omitempty"` + // Number of responses received with status code 416 (Range Not Satisfiable) received for origin requests made by the Fastly WAF. + WafStatus416 *int32 `json:"waf_status_416,omitempty"` + // Number of responses received with status code 429 (Too Many Requests) received for origin requests made by the Fastly WAF. + WafStatus429 *int32 `json:"waf_status_429,omitempty"` + // Number of responses received with status code 500 (Internal Server Error) received for origin requests made by the Fastly WAF. + WafStatus500 *int32 `json:"waf_status_500,omitempty"` + // Number of responses received with status code 501 (Not Implemented) received for origin requests made by the Fastly WAF. + WafStatus501 *int32 `json:"waf_status_501,omitempty"` + // Number of responses received with status code 502 (Bad Gateway) received for origin requests made by the Fastly WAF. + WafStatus502 *int32 `json:"waf_status_502,omitempty"` + // Number of responses received with status code 503 (Service Unavailable) received for origin requests made by the Fastly WAF. + WafStatus503 *int32 `json:"waf_status_503,omitempty"` + // Number of responses received with status code 504 (Gateway Timeout) received for origin requests made by the Fastly WAF. + WafStatus504 *int32 `json:"waf_status_504,omitempty"` + // Number of responses received with status code 505 (HTTP Version Not Supported) received for origin requests made by the Fastly WAF. + WafStatus505 *int32 `json:"waf_status_505,omitempty"` + // Number of responses with latency between 0 and 1 millisecond received for origin requests made by the Fastly WAF. + WafLatency0To1ms *int32 `json:"waf_latency_0_to_1ms,omitempty"` + // Number of responses with latency between 1 and 5 milliseconds received for origin requests made by the Fastly WAF. + WafLatency1To5ms *int32 `json:"waf_latency_1_to_5ms,omitempty"` + // Number of responses with latency between 5 and 10 milliseconds received for origin requests made by the Fastly WAF. + WafLatency5To10ms *int32 `json:"waf_latency_5_to_10ms,omitempty"` + // Number of responses with latency between 10 and 50 milliseconds received for origin requests made by the Fastly WAF. + WafLatency10To50ms *int32 `json:"waf_latency_10_to_50ms,omitempty"` + // Number of responses with latency between 50 and 100 milliseconds received for origin requests made by the Fastly WAF. + WafLatency50To100ms *int32 `json:"waf_latency_50_to_100ms,omitempty"` + // Number of responses with latency between 100 and 250 milliseconds received for origin requests made by the Fastly WAF. + WafLatency100To250ms *int32 `json:"waf_latency_100_to_250ms,omitempty"` + // Number of responses with latency between 250 and 500 milliseconds received for origin requests made by the Fastly WAF. + WafLatency250To500ms *int32 `json:"waf_latency_250_to_500ms,omitempty"` + // Number of responses with latency between 500 and 1,000 milliseconds received for origin requests made by the Fastly WAF. + WafLatency500To1000ms *int32 `json:"waf_latency_500_to_1000ms,omitempty"` + // Number of responses with latency between 1,000 and 5,000 milliseconds received for origin requests made by the Fastly WAF. + WafLatency1000To5000ms *int32 `json:"waf_latency_1000_to_5000ms,omitempty"` + // Number of responses with latency between 5,000 and 10,000 milliseconds received for origin requests made by the Fastly WAF. + WafLatency5000To10000ms *int32 `json:"waf_latency_5000_to_10000ms,omitempty"` + // Number of responses with latency between 10,000 and 60,000 milliseconds received for origin requests made by the Fastly WAF. + WafLatency10000To60000ms *int32 `json:"waf_latency_10000_to_60000ms,omitempty"` + // Number of responses with latency of 60,000 milliseconds and above received for origin requests made by the Fastly WAF. + WafLatency60000ms *int32 `json:"waf_latency_60000ms,omitempty"` + // Number of responses for origin received by Compute@Edge. + ComputeResponses *int32 `json:"compute_responses,omitempty"` + // Number of header bytes for origin received by Compute@Edge. + ComputeRespHeaderBytes *int32 `json:"compute_resp_header_bytes,omitempty"` + // Number of body bytes for origin received by Compute@Edge. + ComputeRespBodyBytes *int32 `json:"compute_resp_body_bytes,omitempty"` + // Number of 1xx \"Informational\" status codes for origin received by Compute@Edge. + ComputeStatus1xx *int32 `json:"compute_status_1xx,omitempty"` + // Number of 2xx \"Success\" status codes for origin received by Compute@Edge. + ComputeStatus2xx *int32 `json:"compute_status_2xx,omitempty"` + // Number of 3xx \"Redirection\" codes for origin received by Compute@Edge. + ComputeStatus3xx *int32 `json:"compute_status_3xx,omitempty"` + // Number of 4xx \"Client Error\" codes for origin received by Compute@Edge. + ComputeStatus4xx *int32 `json:"compute_status_4xx,omitempty"` + // Number of 5xx \"Server Error\" codes for origin received by Compute@Edge. + ComputeStatus5xx *int32 `json:"compute_status_5xx,omitempty"` + // Number of responses received with status code 200 (Success) for origin received by Compute@Edge. + ComputeStatus200 *int32 `json:"compute_status_200,omitempty"` + // Number of responses received with status code 204 (No Content) for origin received by Compute@Edge. + ComputeStatus204 *int32 `json:"compute_status_204,omitempty"` + // Number of responses received with status code 206 (Partial Content) for origin received by Compute@Edge. + ComputeStatus206 *int32 `json:"compute_status_206,omitempty"` + // Number of responses received with status code 301 (Moved Permanently) for origin received by Compute@Edge. + ComputeStatus301 *int32 `json:"compute_status_301,omitempty"` + // Number of responses received with status code 302 (Found) for origin received by Compute@Edge. + ComputeStatus302 *int32 `json:"compute_status_302,omitempty"` + // Number of responses received with status code 304 (Not Modified) for origin received by Compute@Edge. + ComputeStatus304 *int32 `json:"compute_status_304,omitempty"` + // Number of responses received with status code 400 (Bad Request) for origin received by Compute@Edge. + ComputeStatus400 *int32 `json:"compute_status_400,omitempty"` + // Number of responses received with status code 401 (Unauthorized) for origin received by Compute@Edge. + ComputeStatus401 *int32 `json:"compute_status_401,omitempty"` + // Number of responses received with status code 403 (Forbidden) for origin received by Compute@Edge. + ComputeStatus403 *int32 `json:"compute_status_403,omitempty"` + // Number of responses received with status code 404 (Not Found) for origin received by Compute@Edge. + ComputeStatus404 *int32 `json:"compute_status_404,omitempty"` + // Number of responses received with status code 416 (Range Not Satisfiable) for origin received by Compute@Edge. + ComputeStatus416 *int32 `json:"compute_status_416,omitempty"` + // Number of responses received with status code 429 (Too Many Requests) for origin received by Compute@Edge. + ComputeStatus429 *int32 `json:"compute_status_429,omitempty"` + // Number of responses received with status code 500 (Internal Server Error) for origin received by Compute@Edge. + ComputeStatus500 *int32 `json:"compute_status_500,omitempty"` + // Number of responses received with status code 501 (Not Implemented) for origin received by Compute@Edge. + ComputeStatus501 *int32 `json:"compute_status_501,omitempty"` + // Number of responses received with status code 502 (Bad Gateway) for origin received by Compute@Edge. + ComputeStatus502 *int32 `json:"compute_status_502,omitempty"` + // Number of responses received with status code 503 (Service Unavailable) for origin received by Compute@Edge. + ComputeStatus503 *int32 `json:"compute_status_503,omitempty"` + // Number of responses received with status code 504 (Gateway Timeout) for origin received by Compute@Edge. + ComputeStatus504 *int32 `json:"compute_status_504,omitempty"` + // Number of responses received with status code 505 (HTTP Version Not Supported) for origin received by Compute@Edge. + ComputeStatus505 *int32 `json:"compute_status_505,omitempty"` + // Number of responses with latency between 0 and 1 millisecond for origin received by Compute@Edge. + ComputeLatency0To1ms *int32 `json:"compute_latency_0_to_1ms,omitempty"` + // Number of responses with latency between 1 and 5 milliseconds for origin received by Compute@Edge. + ComputeLatency1To5ms *int32 `json:"compute_latency_1_to_5ms,omitempty"` + // Number of responses with latency between 5 and 10 milliseconds for origin received by Compute@Edge. + ComputeLatency5To10ms *int32 `json:"compute_latency_5_to_10ms,omitempty"` + // Number of responses with latency between 10 and 50 milliseconds for origin received by Compute@Edge. + ComputeLatency10To50ms *int32 `json:"compute_latency_10_to_50ms,omitempty"` + // Number of responses with latency between 50 and 100 milliseconds for origin received by Compute@Edge. + ComputeLatency50To100ms *int32 `json:"compute_latency_50_to_100ms,omitempty"` + // Number of responses with latency between 100 and 250 milliseconds for origin received by Compute@Edge. + ComputeLatency100To250ms *int32 `json:"compute_latency_100_to_250ms,omitempty"` + // Number of responses with latency between 250 and 500 milliseconds for origin received by Compute@Edge. + ComputeLatency250To500ms *int32 `json:"compute_latency_250_to_500ms,omitempty"` + // Number of responses with latency between 500 and 1,000 milliseconds for origin received by Compute@Edge. + ComputeLatency500To1000ms *int32 `json:"compute_latency_500_to_1000ms,omitempty"` + // Number of responses with latency between 1,000 and 5,000 milliseconds for origin received by Compute@Edge. + ComputeLatency1000To5000ms *int32 `json:"compute_latency_1000_to_5000ms,omitempty"` + // Number of responses with latency between 5,000 and 10,000 milliseconds for origin received by Compute@Edge. + ComputeLatency5000To10000ms *int32 `json:"compute_latency_5000_to_10000ms,omitempty"` + // Number of responses with latency between 10,000 and 60,000 milliseconds for origin received by Compute@Edge. + ComputeLatency10000To60000ms *int32 `json:"compute_latency_10000_to_60000ms,omitempty"` + // Number of responses with latency of 60,000 milliseconds and above for origin received by Compute@Edge. + ComputeLatency60000ms *int32 `json:"compute_latency_60000ms,omitempty"` + // Number of responses received for origin requests made by all sources. + AllResponses *int32 `json:"all_responses,omitempty"` + // Number of header bytes received for origin requests made by all sources. + AllRespHeaderBytes *int32 `json:"all_resp_header_bytes,omitempty"` + // Number of body bytes received for origin requests made by all sources. + AllRespBodyBytes *int32 `json:"all_resp_body_bytes,omitempty"` + // Number of 1xx \"Informational\" category status codes delivered received for origin requests made by all sources. + AllStatus1xx *int32 `json:"all_status_1xx,omitempty"` + // Number of 2xx \"Success\" status codes received for origin requests made by all sources. + AllStatus2xx *int32 `json:"all_status_2xx,omitempty"` + // Number of 3xx \"Redirection\" codes received for origin requests made by all sources. + AllStatus3xx *int32 `json:"all_status_3xx,omitempty"` + // Number of 4xx \"Client Error\" codes received for origin requests made by all sources. + AllStatus4xx *int32 `json:"all_status_4xx,omitempty"` + // Number of 5xx \"Server Error\" codes received for origin requests made by all sources. + AllStatus5xx *int32 `json:"all_status_5xx,omitempty"` + // Number of responses received with status code 200 (Success) received for origin requests made by all sources. + AllStatus200 *int32 `json:"all_status_200,omitempty"` + // Number of responses received with status code 204 (No Content) received for origin requests made by all sources. + AllStatus204 *int32 `json:"all_status_204,omitempty"` + // Number of responses received with status code 206 (Partial Content) received for origin requests made by all sources. + AllStatus206 *int32 `json:"all_status_206,omitempty"` + // Number of responses received with status code 301 (Moved Permanently) received for origin requests made by all sources. + AllStatus301 *int32 `json:"all_status_301,omitempty"` + // Number of responses received with status code 302 (Found) received for origin requests made by all sources. + AllStatus302 *int32 `json:"all_status_302,omitempty"` + // Number of responses received with status code 304 (Not Modified) received for origin requests made by all sources. + AllStatus304 *int32 `json:"all_status_304,omitempty"` + // Number of responses received with status code 400 (Bad Request) received for origin requests made by all sources. + AllStatus400 *int32 `json:"all_status_400,omitempty"` + // Number of responses received with status code 401 (Unauthorized) received for origin requests made by all sources. + AllStatus401 *int32 `json:"all_status_401,omitempty"` + // Number of responses received with status code 403 (Forbidden) received for origin requests made by all sources. + AllStatus403 *int32 `json:"all_status_403,omitempty"` + // Number of responses received with status code 404 (Not Found) received for origin requests made by all sources. + AllStatus404 *int32 `json:"all_status_404,omitempty"` + // Number of responses received with status code 416 (Range Not Satisfiable) received for origin requests made by all sources. + AllStatus416 *int32 `json:"all_status_416,omitempty"` + // Number of responses received with status code 429 (Too Many Requests) received for origin requests made by all sources. + AllStatus429 *int32 `json:"all_status_429,omitempty"` + // Number of responses received with status code 500 (Internal Server Error) received for origin requests made by all sources. + AllStatus500 *int32 `json:"all_status_500,omitempty"` + // Number of responses received with status code 501 (Not Implemented) received for origin requests made by all sources. + AllStatus501 *int32 `json:"all_status_501,omitempty"` + // Number of responses received with status code 502 (Bad Gateway) received for origin requests made by all sources. + AllStatus502 *int32 `json:"all_status_502,omitempty"` + // Number of responses received with status code 503 (Service Unavailable) received for origin requests made by all sources. + AllStatus503 *int32 `json:"all_status_503,omitempty"` + // Number of responses received with status code 504 (Gateway Timeout) received for origin requests made by all sources. + AllStatus504 *int32 `json:"all_status_504,omitempty"` + // Number of responses received with status code 505 (HTTP Version Not Supported) received for origin requests made by all sources. + AllStatus505 *int32 `json:"all_status_505,omitempty"` + // Number of responses with latency between 0 and 1 millisecond received for origin requests made by all sources. + AllLatency0To1ms *int32 `json:"all_latency_0_to_1ms,omitempty"` + // Number of responses with latency between 1 and 5 milliseconds received for origin requests made by all sources. + AllLatency1To5ms *int32 `json:"all_latency_1_to_5ms,omitempty"` + // Number of responses with latency between 5 and 10 milliseconds received for origin requests made by all sources. + AllLatency5To10ms *int32 `json:"all_latency_5_to_10ms,omitempty"` + // Number of responses with latency between 10 and 50 milliseconds received for origin requests made by all sources. + AllLatency10To50ms *int32 `json:"all_latency_10_to_50ms,omitempty"` + // Number of responses with latency between 50 and 100 milliseconds received for origin requests made by all sources. + AllLatency50To100ms *int32 `json:"all_latency_50_to_100ms,omitempty"` + // Number of responses with latency between 100 and 250 milliseconds received for origin requests made by all sources. + AllLatency100To250ms *int32 `json:"all_latency_100_to_250ms,omitempty"` + // Number of responses with latency between 250 and 500 milliseconds received for origin requests made by all sources. + AllLatency250To500ms *int32 `json:"all_latency_250_to_500ms,omitempty"` + // Number of responses with latency between 500 and 1,000 milliseconds received for origin requests made by all sources. + AllLatency500To1000ms *int32 `json:"all_latency_500_to_1000ms,omitempty"` + // Number of responses with latency between 1,000 and 5,000 milliseconds received for origin requests made by all sources. + AllLatency1000To5000ms *int32 `json:"all_latency_1000_to_5000ms,omitempty"` + // Number of responses with latency between 5,000 and 10,000 milliseconds received for origin requests made by all sources. + AllLatency5000To10000ms *int32 `json:"all_latency_5000_to_10000ms,omitempty"` + // Number of responses with latency between 10,000 and 60,000 milliseconds received for origin requests made by all sources. + AllLatency10000To60000ms *int32 `json:"all_latency_10000_to_60000ms,omitempty"` + // Number of responses with latency of 60,000 milliseconds and above received for origin requests made by all sources. + AllLatency60000ms *int32 `json:"all_latency_60000ms,omitempty"` + AdditionalProperties map[string]any +} + +type _OriginInspectorValues OriginInspectorValues + +// NewOriginInspectorValues instantiates a new OriginInspectorValues object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewOriginInspectorValues() *OriginInspectorValues { + this := OriginInspectorValues{} + return &this +} + +// NewOriginInspectorValuesWithDefaults instantiates a new OriginInspectorValues object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewOriginInspectorValuesWithDefaults() *OriginInspectorValues { + this := OriginInspectorValues{} + return &this +} + +// GetResponses returns the Responses field value if set, zero value otherwise. +func (o *OriginInspectorValues) GetResponses() int32 { + if o == nil || o.Responses == nil { + var ret int32 + return ret + } + return *o.Responses +} + +// GetResponsesOk returns a tuple with the Responses field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorValues) GetResponsesOk() (*int32, bool) { + if o == nil || o.Responses == nil { + return nil, false + } + return o.Responses, true +} + +// HasResponses returns a boolean if a field has been set. +func (o *OriginInspectorValues) HasResponses() bool { + if o != nil && o.Responses != nil { + return true + } + + return false +} + +// SetResponses gets a reference to the given int32 and assigns it to the Responses field. +func (o *OriginInspectorValues) SetResponses(v int32) { + o.Responses = &v +} + +// GetRespHeaderBytes returns the RespHeaderBytes field value if set, zero value otherwise. +func (o *OriginInspectorValues) GetRespHeaderBytes() int32 { + if o == nil || o.RespHeaderBytes == nil { + var ret int32 + return ret + } + return *o.RespHeaderBytes +} + +// GetRespHeaderBytesOk returns a tuple with the RespHeaderBytes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorValues) GetRespHeaderBytesOk() (*int32, bool) { + if o == nil || o.RespHeaderBytes == nil { + return nil, false + } + return o.RespHeaderBytes, true +} + +// HasRespHeaderBytes returns a boolean if a field has been set. +func (o *OriginInspectorValues) HasRespHeaderBytes() bool { + if o != nil && o.RespHeaderBytes != nil { + return true + } + + return false +} + +// SetRespHeaderBytes gets a reference to the given int32 and assigns it to the RespHeaderBytes field. +func (o *OriginInspectorValues) SetRespHeaderBytes(v int32) { + o.RespHeaderBytes = &v +} + +// GetRespBodyBytes returns the RespBodyBytes field value if set, zero value otherwise. +func (o *OriginInspectorValues) GetRespBodyBytes() int32 { + if o == nil || o.RespBodyBytes == nil { + var ret int32 + return ret + } + return *o.RespBodyBytes +} + +// GetRespBodyBytesOk returns a tuple with the RespBodyBytes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorValues) GetRespBodyBytesOk() (*int32, bool) { + if o == nil || o.RespBodyBytes == nil { + return nil, false + } + return o.RespBodyBytes, true +} + +// HasRespBodyBytes returns a boolean if a field has been set. +func (o *OriginInspectorValues) HasRespBodyBytes() bool { + if o != nil && o.RespBodyBytes != nil { + return true + } + + return false +} + +// SetRespBodyBytes gets a reference to the given int32 and assigns it to the RespBodyBytes field. +func (o *OriginInspectorValues) SetRespBodyBytes(v int32) { + o.RespBodyBytes = &v +} + +// GetStatus1xx returns the Status1xx field value if set, zero value otherwise. +func (o *OriginInspectorValues) GetStatus1xx() int32 { + if o == nil || o.Status1xx == nil { + var ret int32 + return ret + } + return *o.Status1xx +} + +// GetStatus1xxOk returns a tuple with the Status1xx field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorValues) GetStatus1xxOk() (*int32, bool) { + if o == nil || o.Status1xx == nil { + return nil, false + } + return o.Status1xx, true +} + +// HasStatus1xx returns a boolean if a field has been set. +func (o *OriginInspectorValues) HasStatus1xx() bool { + if o != nil && o.Status1xx != nil { + return true + } + + return false +} + +// SetStatus1xx gets a reference to the given int32 and assigns it to the Status1xx field. +func (o *OriginInspectorValues) SetStatus1xx(v int32) { + o.Status1xx = &v +} + +// GetStatus2xx returns the Status2xx field value if set, zero value otherwise. +func (o *OriginInspectorValues) GetStatus2xx() int32 { + if o == nil || o.Status2xx == nil { + var ret int32 + return ret + } + return *o.Status2xx +} + +// GetStatus2xxOk returns a tuple with the Status2xx field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorValues) GetStatus2xxOk() (*int32, bool) { + if o == nil || o.Status2xx == nil { + return nil, false + } + return o.Status2xx, true +} + +// HasStatus2xx returns a boolean if a field has been set. +func (o *OriginInspectorValues) HasStatus2xx() bool { + if o != nil && o.Status2xx != nil { + return true + } + + return false +} + +// SetStatus2xx gets a reference to the given int32 and assigns it to the Status2xx field. +func (o *OriginInspectorValues) SetStatus2xx(v int32) { + o.Status2xx = &v +} + +// GetStatus3xx returns the Status3xx field value if set, zero value otherwise. +func (o *OriginInspectorValues) GetStatus3xx() int32 { + if o == nil || o.Status3xx == nil { + var ret int32 + return ret + } + return *o.Status3xx +} + +// GetStatus3xxOk returns a tuple with the Status3xx field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorValues) GetStatus3xxOk() (*int32, bool) { + if o == nil || o.Status3xx == nil { + return nil, false + } + return o.Status3xx, true +} + +// HasStatus3xx returns a boolean if a field has been set. +func (o *OriginInspectorValues) HasStatus3xx() bool { + if o != nil && o.Status3xx != nil { + return true + } + + return false +} + +// SetStatus3xx gets a reference to the given int32 and assigns it to the Status3xx field. +func (o *OriginInspectorValues) SetStatus3xx(v int32) { + o.Status3xx = &v +} + +// GetStatus4xx returns the Status4xx field value if set, zero value otherwise. +func (o *OriginInspectorValues) GetStatus4xx() int32 { + if o == nil || o.Status4xx == nil { + var ret int32 + return ret + } + return *o.Status4xx +} + +// GetStatus4xxOk returns a tuple with the Status4xx field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorValues) GetStatus4xxOk() (*int32, bool) { + if o == nil || o.Status4xx == nil { + return nil, false + } + return o.Status4xx, true +} + +// HasStatus4xx returns a boolean if a field has been set. +func (o *OriginInspectorValues) HasStatus4xx() bool { + if o != nil && o.Status4xx != nil { + return true + } + + return false +} + +// SetStatus4xx gets a reference to the given int32 and assigns it to the Status4xx field. +func (o *OriginInspectorValues) SetStatus4xx(v int32) { + o.Status4xx = &v +} + +// GetStatus5xx returns the Status5xx field value if set, zero value otherwise. +func (o *OriginInspectorValues) GetStatus5xx() int32 { + if o == nil || o.Status5xx == nil { + var ret int32 + return ret + } + return *o.Status5xx +} + +// GetStatus5xxOk returns a tuple with the Status5xx field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorValues) GetStatus5xxOk() (*int32, bool) { + if o == nil || o.Status5xx == nil { + return nil, false + } + return o.Status5xx, true +} + +// HasStatus5xx returns a boolean if a field has been set. +func (o *OriginInspectorValues) HasStatus5xx() bool { + if o != nil && o.Status5xx != nil { + return true + } + + return false +} + +// SetStatus5xx gets a reference to the given int32 and assigns it to the Status5xx field. +func (o *OriginInspectorValues) SetStatus5xx(v int32) { + o.Status5xx = &v +} + +// GetStatus200 returns the Status200 field value if set, zero value otherwise. +func (o *OriginInspectorValues) GetStatus200() int32 { + if o == nil || o.Status200 == nil { + var ret int32 + return ret + } + return *o.Status200 +} + +// GetStatus200Ok returns a tuple with the Status200 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorValues) GetStatus200Ok() (*int32, bool) { + if o == nil || o.Status200 == nil { + return nil, false + } + return o.Status200, true +} + +// HasStatus200 returns a boolean if a field has been set. +func (o *OriginInspectorValues) HasStatus200() bool { + if o != nil && o.Status200 != nil { + return true + } + + return false +} + +// SetStatus200 gets a reference to the given int32 and assigns it to the Status200 field. +func (o *OriginInspectorValues) SetStatus200(v int32) { + o.Status200 = &v +} + +// GetStatus204 returns the Status204 field value if set, zero value otherwise. +func (o *OriginInspectorValues) GetStatus204() int32 { + if o == nil || o.Status204 == nil { + var ret int32 + return ret + } + return *o.Status204 +} + +// GetStatus204Ok returns a tuple with the Status204 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorValues) GetStatus204Ok() (*int32, bool) { + if o == nil || o.Status204 == nil { + return nil, false + } + return o.Status204, true +} + +// HasStatus204 returns a boolean if a field has been set. +func (o *OriginInspectorValues) HasStatus204() bool { + if o != nil && o.Status204 != nil { + return true + } + + return false +} + +// SetStatus204 gets a reference to the given int32 and assigns it to the Status204 field. +func (o *OriginInspectorValues) SetStatus204(v int32) { + o.Status204 = &v +} + +// GetStatus206 returns the Status206 field value if set, zero value otherwise. +func (o *OriginInspectorValues) GetStatus206() int32 { + if o == nil || o.Status206 == nil { + var ret int32 + return ret + } + return *o.Status206 +} + +// GetStatus206Ok returns a tuple with the Status206 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorValues) GetStatus206Ok() (*int32, bool) { + if o == nil || o.Status206 == nil { + return nil, false + } + return o.Status206, true +} + +// HasStatus206 returns a boolean if a field has been set. +func (o *OriginInspectorValues) HasStatus206() bool { + if o != nil && o.Status206 != nil { + return true + } + + return false +} + +// SetStatus206 gets a reference to the given int32 and assigns it to the Status206 field. +func (o *OriginInspectorValues) SetStatus206(v int32) { + o.Status206 = &v +} + +// GetStatus301 returns the Status301 field value if set, zero value otherwise. +func (o *OriginInspectorValues) GetStatus301() int32 { + if o == nil || o.Status301 == nil { + var ret int32 + return ret + } + return *o.Status301 +} + +// GetStatus301Ok returns a tuple with the Status301 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorValues) GetStatus301Ok() (*int32, bool) { + if o == nil || o.Status301 == nil { + return nil, false + } + return o.Status301, true +} + +// HasStatus301 returns a boolean if a field has been set. +func (o *OriginInspectorValues) HasStatus301() bool { + if o != nil && o.Status301 != nil { + return true + } + + return false +} + +// SetStatus301 gets a reference to the given int32 and assigns it to the Status301 field. +func (o *OriginInspectorValues) SetStatus301(v int32) { + o.Status301 = &v +} + +// GetStatus302 returns the Status302 field value if set, zero value otherwise. +func (o *OriginInspectorValues) GetStatus302() int32 { + if o == nil || o.Status302 == nil { + var ret int32 + return ret + } + return *o.Status302 +} + +// GetStatus302Ok returns a tuple with the Status302 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorValues) GetStatus302Ok() (*int32, bool) { + if o == nil || o.Status302 == nil { + return nil, false + } + return o.Status302, true +} + +// HasStatus302 returns a boolean if a field has been set. +func (o *OriginInspectorValues) HasStatus302() bool { + if o != nil && o.Status302 != nil { + return true + } + + return false +} + +// SetStatus302 gets a reference to the given int32 and assigns it to the Status302 field. +func (o *OriginInspectorValues) SetStatus302(v int32) { + o.Status302 = &v +} + +// GetStatus304 returns the Status304 field value if set, zero value otherwise. +func (o *OriginInspectorValues) GetStatus304() int32 { + if o == nil || o.Status304 == nil { + var ret int32 + return ret + } + return *o.Status304 +} + +// GetStatus304Ok returns a tuple with the Status304 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorValues) GetStatus304Ok() (*int32, bool) { + if o == nil || o.Status304 == nil { + return nil, false + } + return o.Status304, true +} + +// HasStatus304 returns a boolean if a field has been set. +func (o *OriginInspectorValues) HasStatus304() bool { + if o != nil && o.Status304 != nil { + return true + } + + return false +} + +// SetStatus304 gets a reference to the given int32 and assigns it to the Status304 field. +func (o *OriginInspectorValues) SetStatus304(v int32) { + o.Status304 = &v +} + +// GetStatus400 returns the Status400 field value if set, zero value otherwise. +func (o *OriginInspectorValues) GetStatus400() int32 { + if o == nil || o.Status400 == nil { + var ret int32 + return ret + } + return *o.Status400 +} + +// GetStatus400Ok returns a tuple with the Status400 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorValues) GetStatus400Ok() (*int32, bool) { + if o == nil || o.Status400 == nil { + return nil, false + } + return o.Status400, true +} + +// HasStatus400 returns a boolean if a field has been set. +func (o *OriginInspectorValues) HasStatus400() bool { + if o != nil && o.Status400 != nil { + return true + } + + return false +} + +// SetStatus400 gets a reference to the given int32 and assigns it to the Status400 field. +func (o *OriginInspectorValues) SetStatus400(v int32) { + o.Status400 = &v +} + +// GetStatus401 returns the Status401 field value if set, zero value otherwise. +func (o *OriginInspectorValues) GetStatus401() int32 { + if o == nil || o.Status401 == nil { + var ret int32 + return ret + } + return *o.Status401 +} + +// GetStatus401Ok returns a tuple with the Status401 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorValues) GetStatus401Ok() (*int32, bool) { + if o == nil || o.Status401 == nil { + return nil, false + } + return o.Status401, true +} + +// HasStatus401 returns a boolean if a field has been set. +func (o *OriginInspectorValues) HasStatus401() bool { + if o != nil && o.Status401 != nil { + return true + } + + return false +} + +// SetStatus401 gets a reference to the given int32 and assigns it to the Status401 field. +func (o *OriginInspectorValues) SetStatus401(v int32) { + o.Status401 = &v +} + +// GetStatus403 returns the Status403 field value if set, zero value otherwise. +func (o *OriginInspectorValues) GetStatus403() int32 { + if o == nil || o.Status403 == nil { + var ret int32 + return ret + } + return *o.Status403 +} + +// GetStatus403Ok returns a tuple with the Status403 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorValues) GetStatus403Ok() (*int32, bool) { + if o == nil || o.Status403 == nil { + return nil, false + } + return o.Status403, true +} + +// HasStatus403 returns a boolean if a field has been set. +func (o *OriginInspectorValues) HasStatus403() bool { + if o != nil && o.Status403 != nil { + return true + } + + return false +} + +// SetStatus403 gets a reference to the given int32 and assigns it to the Status403 field. +func (o *OriginInspectorValues) SetStatus403(v int32) { + o.Status403 = &v +} + +// GetStatus404 returns the Status404 field value if set, zero value otherwise. +func (o *OriginInspectorValues) GetStatus404() int32 { + if o == nil || o.Status404 == nil { + var ret int32 + return ret + } + return *o.Status404 +} + +// GetStatus404Ok returns a tuple with the Status404 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorValues) GetStatus404Ok() (*int32, bool) { + if o == nil || o.Status404 == nil { + return nil, false + } + return o.Status404, true +} + +// HasStatus404 returns a boolean if a field has been set. +func (o *OriginInspectorValues) HasStatus404() bool { + if o != nil && o.Status404 != nil { + return true + } + + return false +} + +// SetStatus404 gets a reference to the given int32 and assigns it to the Status404 field. +func (o *OriginInspectorValues) SetStatus404(v int32) { + o.Status404 = &v +} + +// GetStatus416 returns the Status416 field value if set, zero value otherwise. +func (o *OriginInspectorValues) GetStatus416() int32 { + if o == nil || o.Status416 == nil { + var ret int32 + return ret + } + return *o.Status416 +} + +// GetStatus416Ok returns a tuple with the Status416 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorValues) GetStatus416Ok() (*int32, bool) { + if o == nil || o.Status416 == nil { + return nil, false + } + return o.Status416, true +} + +// HasStatus416 returns a boolean if a field has been set. +func (o *OriginInspectorValues) HasStatus416() bool { + if o != nil && o.Status416 != nil { + return true + } + + return false +} + +// SetStatus416 gets a reference to the given int32 and assigns it to the Status416 field. +func (o *OriginInspectorValues) SetStatus416(v int32) { + o.Status416 = &v +} + +// GetStatus429 returns the Status429 field value if set, zero value otherwise. +func (o *OriginInspectorValues) GetStatus429() int32 { + if o == nil || o.Status429 == nil { + var ret int32 + return ret + } + return *o.Status429 +} + +// GetStatus429Ok returns a tuple with the Status429 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorValues) GetStatus429Ok() (*int32, bool) { + if o == nil || o.Status429 == nil { + return nil, false + } + return o.Status429, true +} + +// HasStatus429 returns a boolean if a field has been set. +func (o *OriginInspectorValues) HasStatus429() bool { + if o != nil && o.Status429 != nil { + return true + } + + return false +} + +// SetStatus429 gets a reference to the given int32 and assigns it to the Status429 field. +func (o *OriginInspectorValues) SetStatus429(v int32) { + o.Status429 = &v +} + +// GetStatus500 returns the Status500 field value if set, zero value otherwise. +func (o *OriginInspectorValues) GetStatus500() int32 { + if o == nil || o.Status500 == nil { + var ret int32 + return ret + } + return *o.Status500 +} + +// GetStatus500Ok returns a tuple with the Status500 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorValues) GetStatus500Ok() (*int32, bool) { + if o == nil || o.Status500 == nil { + return nil, false + } + return o.Status500, true +} + +// HasStatus500 returns a boolean if a field has been set. +func (o *OriginInspectorValues) HasStatus500() bool { + if o != nil && o.Status500 != nil { + return true + } + + return false +} + +// SetStatus500 gets a reference to the given int32 and assigns it to the Status500 field. +func (o *OriginInspectorValues) SetStatus500(v int32) { + o.Status500 = &v +} + +// GetStatus501 returns the Status501 field value if set, zero value otherwise. +func (o *OriginInspectorValues) GetStatus501() int32 { + if o == nil || o.Status501 == nil { + var ret int32 + return ret + } + return *o.Status501 +} + +// GetStatus501Ok returns a tuple with the Status501 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorValues) GetStatus501Ok() (*int32, bool) { + if o == nil || o.Status501 == nil { + return nil, false + } + return o.Status501, true +} + +// HasStatus501 returns a boolean if a field has been set. +func (o *OriginInspectorValues) HasStatus501() bool { + if o != nil && o.Status501 != nil { + return true + } + + return false +} + +// SetStatus501 gets a reference to the given int32 and assigns it to the Status501 field. +func (o *OriginInspectorValues) SetStatus501(v int32) { + o.Status501 = &v +} + +// GetStatus502 returns the Status502 field value if set, zero value otherwise. +func (o *OriginInspectorValues) GetStatus502() int32 { + if o == nil || o.Status502 == nil { + var ret int32 + return ret + } + return *o.Status502 +} + +// GetStatus502Ok returns a tuple with the Status502 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorValues) GetStatus502Ok() (*int32, bool) { + if o == nil || o.Status502 == nil { + return nil, false + } + return o.Status502, true +} + +// HasStatus502 returns a boolean if a field has been set. +func (o *OriginInspectorValues) HasStatus502() bool { + if o != nil && o.Status502 != nil { + return true + } + + return false +} + +// SetStatus502 gets a reference to the given int32 and assigns it to the Status502 field. +func (o *OriginInspectorValues) SetStatus502(v int32) { + o.Status502 = &v +} + +// GetStatus503 returns the Status503 field value if set, zero value otherwise. +func (o *OriginInspectorValues) GetStatus503() int32 { + if o == nil || o.Status503 == nil { + var ret int32 + return ret + } + return *o.Status503 +} + +// GetStatus503Ok returns a tuple with the Status503 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorValues) GetStatus503Ok() (*int32, bool) { + if o == nil || o.Status503 == nil { + return nil, false + } + return o.Status503, true +} + +// HasStatus503 returns a boolean if a field has been set. +func (o *OriginInspectorValues) HasStatus503() bool { + if o != nil && o.Status503 != nil { + return true + } + + return false +} + +// SetStatus503 gets a reference to the given int32 and assigns it to the Status503 field. +func (o *OriginInspectorValues) SetStatus503(v int32) { + o.Status503 = &v +} + +// GetStatus504 returns the Status504 field value if set, zero value otherwise. +func (o *OriginInspectorValues) GetStatus504() int32 { + if o == nil || o.Status504 == nil { + var ret int32 + return ret + } + return *o.Status504 +} + +// GetStatus504Ok returns a tuple with the Status504 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorValues) GetStatus504Ok() (*int32, bool) { + if o == nil || o.Status504 == nil { + return nil, false + } + return o.Status504, true +} + +// HasStatus504 returns a boolean if a field has been set. +func (o *OriginInspectorValues) HasStatus504() bool { + if o != nil && o.Status504 != nil { + return true + } + + return false +} + +// SetStatus504 gets a reference to the given int32 and assigns it to the Status504 field. +func (o *OriginInspectorValues) SetStatus504(v int32) { + o.Status504 = &v +} + +// GetStatus505 returns the Status505 field value if set, zero value otherwise. +func (o *OriginInspectorValues) GetStatus505() int32 { + if o == nil || o.Status505 == nil { + var ret int32 + return ret + } + return *o.Status505 +} + +// GetStatus505Ok returns a tuple with the Status505 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorValues) GetStatus505Ok() (*int32, bool) { + if o == nil || o.Status505 == nil { + return nil, false + } + return o.Status505, true +} + +// HasStatus505 returns a boolean if a field has been set. +func (o *OriginInspectorValues) HasStatus505() bool { + if o != nil && o.Status505 != nil { + return true + } + + return false +} + +// SetStatus505 gets a reference to the given int32 and assigns it to the Status505 field. +func (o *OriginInspectorValues) SetStatus505(v int32) { + o.Status505 = &v +} + +// GetLatency0To1ms returns the Latency0To1ms field value if set, zero value otherwise. +func (o *OriginInspectorValues) GetLatency0To1ms() int32 { + if o == nil || o.Latency0To1ms == nil { + var ret int32 + return ret + } + return *o.Latency0To1ms +} + +// GetLatency0To1msOk returns a tuple with the Latency0To1ms field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorValues) GetLatency0To1msOk() (*int32, bool) { + if o == nil || o.Latency0To1ms == nil { + return nil, false + } + return o.Latency0To1ms, true +} + +// HasLatency0To1ms returns a boolean if a field has been set. +func (o *OriginInspectorValues) HasLatency0To1ms() bool { + if o != nil && o.Latency0To1ms != nil { + return true + } + + return false +} + +// SetLatency0To1ms gets a reference to the given int32 and assigns it to the Latency0To1ms field. +func (o *OriginInspectorValues) SetLatency0To1ms(v int32) { + o.Latency0To1ms = &v +} + +// GetLatency1To5ms returns the Latency1To5ms field value if set, zero value otherwise. +func (o *OriginInspectorValues) GetLatency1To5ms() int32 { + if o == nil || o.Latency1To5ms == nil { + var ret int32 + return ret + } + return *o.Latency1To5ms +} + +// GetLatency1To5msOk returns a tuple with the Latency1To5ms field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorValues) GetLatency1To5msOk() (*int32, bool) { + if o == nil || o.Latency1To5ms == nil { + return nil, false + } + return o.Latency1To5ms, true +} + +// HasLatency1To5ms returns a boolean if a field has been set. +func (o *OriginInspectorValues) HasLatency1To5ms() bool { + if o != nil && o.Latency1To5ms != nil { + return true + } + + return false +} + +// SetLatency1To5ms gets a reference to the given int32 and assigns it to the Latency1To5ms field. +func (o *OriginInspectorValues) SetLatency1To5ms(v int32) { + o.Latency1To5ms = &v +} + +// GetLatency5To10ms returns the Latency5To10ms field value if set, zero value otherwise. +func (o *OriginInspectorValues) GetLatency5To10ms() int32 { + if o == nil || o.Latency5To10ms == nil { + var ret int32 + return ret + } + return *o.Latency5To10ms +} + +// GetLatency5To10msOk returns a tuple with the Latency5To10ms field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorValues) GetLatency5To10msOk() (*int32, bool) { + if o == nil || o.Latency5To10ms == nil { + return nil, false + } + return o.Latency5To10ms, true +} + +// HasLatency5To10ms returns a boolean if a field has been set. +func (o *OriginInspectorValues) HasLatency5To10ms() bool { + if o != nil && o.Latency5To10ms != nil { + return true + } + + return false +} + +// SetLatency5To10ms gets a reference to the given int32 and assigns it to the Latency5To10ms field. +func (o *OriginInspectorValues) SetLatency5To10ms(v int32) { + o.Latency5To10ms = &v +} + +// GetLatency10To50ms returns the Latency10To50ms field value if set, zero value otherwise. +func (o *OriginInspectorValues) GetLatency10To50ms() int32 { + if o == nil || o.Latency10To50ms == nil { + var ret int32 + return ret + } + return *o.Latency10To50ms +} + +// GetLatency10To50msOk returns a tuple with the Latency10To50ms field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorValues) GetLatency10To50msOk() (*int32, bool) { + if o == nil || o.Latency10To50ms == nil { + return nil, false + } + return o.Latency10To50ms, true +} + +// HasLatency10To50ms returns a boolean if a field has been set. +func (o *OriginInspectorValues) HasLatency10To50ms() bool { + if o != nil && o.Latency10To50ms != nil { + return true + } + + return false +} + +// SetLatency10To50ms gets a reference to the given int32 and assigns it to the Latency10To50ms field. +func (o *OriginInspectorValues) SetLatency10To50ms(v int32) { + o.Latency10To50ms = &v +} + +// GetLatency50To100ms returns the Latency50To100ms field value if set, zero value otherwise. +func (o *OriginInspectorValues) GetLatency50To100ms() int32 { + if o == nil || o.Latency50To100ms == nil { + var ret int32 + return ret + } + return *o.Latency50To100ms +} + +// GetLatency50To100msOk returns a tuple with the Latency50To100ms field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorValues) GetLatency50To100msOk() (*int32, bool) { + if o == nil || o.Latency50To100ms == nil { + return nil, false + } + return o.Latency50To100ms, true +} + +// HasLatency50To100ms returns a boolean if a field has been set. +func (o *OriginInspectorValues) HasLatency50To100ms() bool { + if o != nil && o.Latency50To100ms != nil { + return true + } + + return false +} + +// SetLatency50To100ms gets a reference to the given int32 and assigns it to the Latency50To100ms field. +func (o *OriginInspectorValues) SetLatency50To100ms(v int32) { + o.Latency50To100ms = &v +} + +// GetLatency100To250ms returns the Latency100To250ms field value if set, zero value otherwise. +func (o *OriginInspectorValues) GetLatency100To250ms() int32 { + if o == nil || o.Latency100To250ms == nil { + var ret int32 + return ret + } + return *o.Latency100To250ms +} + +// GetLatency100To250msOk returns a tuple with the Latency100To250ms field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorValues) GetLatency100To250msOk() (*int32, bool) { + if o == nil || o.Latency100To250ms == nil { + return nil, false + } + return o.Latency100To250ms, true +} + +// HasLatency100To250ms returns a boolean if a field has been set. +func (o *OriginInspectorValues) HasLatency100To250ms() bool { + if o != nil && o.Latency100To250ms != nil { + return true + } + + return false +} + +// SetLatency100To250ms gets a reference to the given int32 and assigns it to the Latency100To250ms field. +func (o *OriginInspectorValues) SetLatency100To250ms(v int32) { + o.Latency100To250ms = &v +} + +// GetLatency250To500ms returns the Latency250To500ms field value if set, zero value otherwise. +func (o *OriginInspectorValues) GetLatency250To500ms() int32 { + if o == nil || o.Latency250To500ms == nil { + var ret int32 + return ret + } + return *o.Latency250To500ms +} + +// GetLatency250To500msOk returns a tuple with the Latency250To500ms field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorValues) GetLatency250To500msOk() (*int32, bool) { + if o == nil || o.Latency250To500ms == nil { + return nil, false + } + return o.Latency250To500ms, true +} + +// HasLatency250To500ms returns a boolean if a field has been set. +func (o *OriginInspectorValues) HasLatency250To500ms() bool { + if o != nil && o.Latency250To500ms != nil { + return true + } + + return false +} + +// SetLatency250To500ms gets a reference to the given int32 and assigns it to the Latency250To500ms field. +func (o *OriginInspectorValues) SetLatency250To500ms(v int32) { + o.Latency250To500ms = &v +} + +// GetLatency500To1000ms returns the Latency500To1000ms field value if set, zero value otherwise. +func (o *OriginInspectorValues) GetLatency500To1000ms() int32 { + if o == nil || o.Latency500To1000ms == nil { + var ret int32 + return ret + } + return *o.Latency500To1000ms +} + +// GetLatency500To1000msOk returns a tuple with the Latency500To1000ms field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorValues) GetLatency500To1000msOk() (*int32, bool) { + if o == nil || o.Latency500To1000ms == nil { + return nil, false + } + return o.Latency500To1000ms, true +} + +// HasLatency500To1000ms returns a boolean if a field has been set. +func (o *OriginInspectorValues) HasLatency500To1000ms() bool { + if o != nil && o.Latency500To1000ms != nil { + return true + } + + return false +} + +// SetLatency500To1000ms gets a reference to the given int32 and assigns it to the Latency500To1000ms field. +func (o *OriginInspectorValues) SetLatency500To1000ms(v int32) { + o.Latency500To1000ms = &v +} + +// GetLatency1000To5000ms returns the Latency1000To5000ms field value if set, zero value otherwise. +func (o *OriginInspectorValues) GetLatency1000To5000ms() int32 { + if o == nil || o.Latency1000To5000ms == nil { + var ret int32 + return ret + } + return *o.Latency1000To5000ms +} + +// GetLatency1000To5000msOk returns a tuple with the Latency1000To5000ms field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorValues) GetLatency1000To5000msOk() (*int32, bool) { + if o == nil || o.Latency1000To5000ms == nil { + return nil, false + } + return o.Latency1000To5000ms, true +} + +// HasLatency1000To5000ms returns a boolean if a field has been set. +func (o *OriginInspectorValues) HasLatency1000To5000ms() bool { + if o != nil && o.Latency1000To5000ms != nil { + return true + } + + return false +} + +// SetLatency1000To5000ms gets a reference to the given int32 and assigns it to the Latency1000To5000ms field. +func (o *OriginInspectorValues) SetLatency1000To5000ms(v int32) { + o.Latency1000To5000ms = &v +} + +// GetLatency5000To10000ms returns the Latency5000To10000ms field value if set, zero value otherwise. +func (o *OriginInspectorValues) GetLatency5000To10000ms() int32 { + if o == nil || o.Latency5000To10000ms == nil { + var ret int32 + return ret + } + return *o.Latency5000To10000ms +} + +// GetLatency5000To10000msOk returns a tuple with the Latency5000To10000ms field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorValues) GetLatency5000To10000msOk() (*int32, bool) { + if o == nil || o.Latency5000To10000ms == nil { + return nil, false + } + return o.Latency5000To10000ms, true +} + +// HasLatency5000To10000ms returns a boolean if a field has been set. +func (o *OriginInspectorValues) HasLatency5000To10000ms() bool { + if o != nil && o.Latency5000To10000ms != nil { + return true + } + + return false +} + +// SetLatency5000To10000ms gets a reference to the given int32 and assigns it to the Latency5000To10000ms field. +func (o *OriginInspectorValues) SetLatency5000To10000ms(v int32) { + o.Latency5000To10000ms = &v +} + +// GetLatency10000To60000ms returns the Latency10000To60000ms field value if set, zero value otherwise. +func (o *OriginInspectorValues) GetLatency10000To60000ms() int32 { + if o == nil || o.Latency10000To60000ms == nil { + var ret int32 + return ret + } + return *o.Latency10000To60000ms +} + +// GetLatency10000To60000msOk returns a tuple with the Latency10000To60000ms field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorValues) GetLatency10000To60000msOk() (*int32, bool) { + if o == nil || o.Latency10000To60000ms == nil { + return nil, false + } + return o.Latency10000To60000ms, true +} + +// HasLatency10000To60000ms returns a boolean if a field has been set. +func (o *OriginInspectorValues) HasLatency10000To60000ms() bool { + if o != nil && o.Latency10000To60000ms != nil { + return true + } + + return false +} + +// SetLatency10000To60000ms gets a reference to the given int32 and assigns it to the Latency10000To60000ms field. +func (o *OriginInspectorValues) SetLatency10000To60000ms(v int32) { + o.Latency10000To60000ms = &v +} + +// GetLatency60000ms returns the Latency60000ms field value if set, zero value otherwise. +func (o *OriginInspectorValues) GetLatency60000ms() int32 { + if o == nil || o.Latency60000ms == nil { + var ret int32 + return ret + } + return *o.Latency60000ms +} + +// GetLatency60000msOk returns a tuple with the Latency60000ms field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorValues) GetLatency60000msOk() (*int32, bool) { + if o == nil || o.Latency60000ms == nil { + return nil, false + } + return o.Latency60000ms, true +} + +// HasLatency60000ms returns a boolean if a field has been set. +func (o *OriginInspectorValues) HasLatency60000ms() bool { + if o != nil && o.Latency60000ms != nil { + return true + } + + return false +} + +// SetLatency60000ms gets a reference to the given int32 and assigns it to the Latency60000ms field. +func (o *OriginInspectorValues) SetLatency60000ms(v int32) { + o.Latency60000ms = &v +} + +// GetWafResponses returns the WafResponses field value if set, zero value otherwise. +func (o *OriginInspectorValues) GetWafResponses() int32 { + if o == nil || o.WafResponses == nil { + var ret int32 + return ret + } + return *o.WafResponses +} + +// GetWafResponsesOk returns a tuple with the WafResponses field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorValues) GetWafResponsesOk() (*int32, bool) { + if o == nil || o.WafResponses == nil { + return nil, false + } + return o.WafResponses, true +} + +// HasWafResponses returns a boolean if a field has been set. +func (o *OriginInspectorValues) HasWafResponses() bool { + if o != nil && o.WafResponses != nil { + return true + } + + return false +} + +// SetWafResponses gets a reference to the given int32 and assigns it to the WafResponses field. +func (o *OriginInspectorValues) SetWafResponses(v int32) { + o.WafResponses = &v +} + +// GetWafRespHeaderBytes returns the WafRespHeaderBytes field value if set, zero value otherwise. +func (o *OriginInspectorValues) GetWafRespHeaderBytes() int32 { + if o == nil || o.WafRespHeaderBytes == nil { + var ret int32 + return ret + } + return *o.WafRespHeaderBytes +} + +// GetWafRespHeaderBytesOk returns a tuple with the WafRespHeaderBytes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorValues) GetWafRespHeaderBytesOk() (*int32, bool) { + if o == nil || o.WafRespHeaderBytes == nil { + return nil, false + } + return o.WafRespHeaderBytes, true +} + +// HasWafRespHeaderBytes returns a boolean if a field has been set. +func (o *OriginInspectorValues) HasWafRespHeaderBytes() bool { + if o != nil && o.WafRespHeaderBytes != nil { + return true + } + + return false +} + +// SetWafRespHeaderBytes gets a reference to the given int32 and assigns it to the WafRespHeaderBytes field. +func (o *OriginInspectorValues) SetWafRespHeaderBytes(v int32) { + o.WafRespHeaderBytes = &v +} + +// GetWafRespBodyBytes returns the WafRespBodyBytes field value if set, zero value otherwise. +func (o *OriginInspectorValues) GetWafRespBodyBytes() int32 { + if o == nil || o.WafRespBodyBytes == nil { + var ret int32 + return ret + } + return *o.WafRespBodyBytes +} + +// GetWafRespBodyBytesOk returns a tuple with the WafRespBodyBytes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorValues) GetWafRespBodyBytesOk() (*int32, bool) { + if o == nil || o.WafRespBodyBytes == nil { + return nil, false + } + return o.WafRespBodyBytes, true +} + +// HasWafRespBodyBytes returns a boolean if a field has been set. +func (o *OriginInspectorValues) HasWafRespBodyBytes() bool { + if o != nil && o.WafRespBodyBytes != nil { + return true + } + + return false +} + +// SetWafRespBodyBytes gets a reference to the given int32 and assigns it to the WafRespBodyBytes field. +func (o *OriginInspectorValues) SetWafRespBodyBytes(v int32) { + o.WafRespBodyBytes = &v +} + +// GetWafStatus1xx returns the WafStatus1xx field value if set, zero value otherwise. +func (o *OriginInspectorValues) GetWafStatus1xx() int32 { + if o == nil || o.WafStatus1xx == nil { + var ret int32 + return ret + } + return *o.WafStatus1xx +} + +// GetWafStatus1xxOk returns a tuple with the WafStatus1xx field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorValues) GetWafStatus1xxOk() (*int32, bool) { + if o == nil || o.WafStatus1xx == nil { + return nil, false + } + return o.WafStatus1xx, true +} + +// HasWafStatus1xx returns a boolean if a field has been set. +func (o *OriginInspectorValues) HasWafStatus1xx() bool { + if o != nil && o.WafStatus1xx != nil { + return true + } + + return false +} + +// SetWafStatus1xx gets a reference to the given int32 and assigns it to the WafStatus1xx field. +func (o *OriginInspectorValues) SetWafStatus1xx(v int32) { + o.WafStatus1xx = &v +} + +// GetWafStatus2xx returns the WafStatus2xx field value if set, zero value otherwise. +func (o *OriginInspectorValues) GetWafStatus2xx() int32 { + if o == nil || o.WafStatus2xx == nil { + var ret int32 + return ret + } + return *o.WafStatus2xx +} + +// GetWafStatus2xxOk returns a tuple with the WafStatus2xx field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorValues) GetWafStatus2xxOk() (*int32, bool) { + if o == nil || o.WafStatus2xx == nil { + return nil, false + } + return o.WafStatus2xx, true +} + +// HasWafStatus2xx returns a boolean if a field has been set. +func (o *OriginInspectorValues) HasWafStatus2xx() bool { + if o != nil && o.WafStatus2xx != nil { + return true + } + + return false +} + +// SetWafStatus2xx gets a reference to the given int32 and assigns it to the WafStatus2xx field. +func (o *OriginInspectorValues) SetWafStatus2xx(v int32) { + o.WafStatus2xx = &v +} + +// GetWafStatus3xx returns the WafStatus3xx field value if set, zero value otherwise. +func (o *OriginInspectorValues) GetWafStatus3xx() int32 { + if o == nil || o.WafStatus3xx == nil { + var ret int32 + return ret + } + return *o.WafStatus3xx +} + +// GetWafStatus3xxOk returns a tuple with the WafStatus3xx field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorValues) GetWafStatus3xxOk() (*int32, bool) { + if o == nil || o.WafStatus3xx == nil { + return nil, false + } + return o.WafStatus3xx, true +} + +// HasWafStatus3xx returns a boolean if a field has been set. +func (o *OriginInspectorValues) HasWafStatus3xx() bool { + if o != nil && o.WafStatus3xx != nil { + return true + } + + return false +} + +// SetWafStatus3xx gets a reference to the given int32 and assigns it to the WafStatus3xx field. +func (o *OriginInspectorValues) SetWafStatus3xx(v int32) { + o.WafStatus3xx = &v +} + +// GetWafStatus4xx returns the WafStatus4xx field value if set, zero value otherwise. +func (o *OriginInspectorValues) GetWafStatus4xx() int32 { + if o == nil || o.WafStatus4xx == nil { + var ret int32 + return ret + } + return *o.WafStatus4xx +} + +// GetWafStatus4xxOk returns a tuple with the WafStatus4xx field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorValues) GetWafStatus4xxOk() (*int32, bool) { + if o == nil || o.WafStatus4xx == nil { + return nil, false + } + return o.WafStatus4xx, true +} + +// HasWafStatus4xx returns a boolean if a field has been set. +func (o *OriginInspectorValues) HasWafStatus4xx() bool { + if o != nil && o.WafStatus4xx != nil { + return true + } + + return false +} + +// SetWafStatus4xx gets a reference to the given int32 and assigns it to the WafStatus4xx field. +func (o *OriginInspectorValues) SetWafStatus4xx(v int32) { + o.WafStatus4xx = &v +} + +// GetWafStatus5xx returns the WafStatus5xx field value if set, zero value otherwise. +func (o *OriginInspectorValues) GetWafStatus5xx() int32 { + if o == nil || o.WafStatus5xx == nil { + var ret int32 + return ret + } + return *o.WafStatus5xx +} + +// GetWafStatus5xxOk returns a tuple with the WafStatus5xx field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorValues) GetWafStatus5xxOk() (*int32, bool) { + if o == nil || o.WafStatus5xx == nil { + return nil, false + } + return o.WafStatus5xx, true +} + +// HasWafStatus5xx returns a boolean if a field has been set. +func (o *OriginInspectorValues) HasWafStatus5xx() bool { + if o != nil && o.WafStatus5xx != nil { + return true + } + + return false +} + +// SetWafStatus5xx gets a reference to the given int32 and assigns it to the WafStatus5xx field. +func (o *OriginInspectorValues) SetWafStatus5xx(v int32) { + o.WafStatus5xx = &v +} + +// GetWafStatus200 returns the WafStatus200 field value if set, zero value otherwise. +func (o *OriginInspectorValues) GetWafStatus200() int32 { + if o == nil || o.WafStatus200 == nil { + var ret int32 + return ret + } + return *o.WafStatus200 +} + +// GetWafStatus200Ok returns a tuple with the WafStatus200 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorValues) GetWafStatus200Ok() (*int32, bool) { + if o == nil || o.WafStatus200 == nil { + return nil, false + } + return o.WafStatus200, true +} + +// HasWafStatus200 returns a boolean if a field has been set. +func (o *OriginInspectorValues) HasWafStatus200() bool { + if o != nil && o.WafStatus200 != nil { + return true + } + + return false +} + +// SetWafStatus200 gets a reference to the given int32 and assigns it to the WafStatus200 field. +func (o *OriginInspectorValues) SetWafStatus200(v int32) { + o.WafStatus200 = &v +} + +// GetWafStatus204 returns the WafStatus204 field value if set, zero value otherwise. +func (o *OriginInspectorValues) GetWafStatus204() int32 { + if o == nil || o.WafStatus204 == nil { + var ret int32 + return ret + } + return *o.WafStatus204 +} + +// GetWafStatus204Ok returns a tuple with the WafStatus204 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorValues) GetWafStatus204Ok() (*int32, bool) { + if o == nil || o.WafStatus204 == nil { + return nil, false + } + return o.WafStatus204, true +} + +// HasWafStatus204 returns a boolean if a field has been set. +func (o *OriginInspectorValues) HasWafStatus204() bool { + if o != nil && o.WafStatus204 != nil { + return true + } + + return false +} + +// SetWafStatus204 gets a reference to the given int32 and assigns it to the WafStatus204 field. +func (o *OriginInspectorValues) SetWafStatus204(v int32) { + o.WafStatus204 = &v +} + +// GetWafStatus206 returns the WafStatus206 field value if set, zero value otherwise. +func (o *OriginInspectorValues) GetWafStatus206() int32 { + if o == nil || o.WafStatus206 == nil { + var ret int32 + return ret + } + return *o.WafStatus206 +} + +// GetWafStatus206Ok returns a tuple with the WafStatus206 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorValues) GetWafStatus206Ok() (*int32, bool) { + if o == nil || o.WafStatus206 == nil { + return nil, false + } + return o.WafStatus206, true +} + +// HasWafStatus206 returns a boolean if a field has been set. +func (o *OriginInspectorValues) HasWafStatus206() bool { + if o != nil && o.WafStatus206 != nil { + return true + } + + return false +} + +// SetWafStatus206 gets a reference to the given int32 and assigns it to the WafStatus206 field. +func (o *OriginInspectorValues) SetWafStatus206(v int32) { + o.WafStatus206 = &v +} + +// GetWafStatus301 returns the WafStatus301 field value if set, zero value otherwise. +func (o *OriginInspectorValues) GetWafStatus301() int32 { + if o == nil || o.WafStatus301 == nil { + var ret int32 + return ret + } + return *o.WafStatus301 +} + +// GetWafStatus301Ok returns a tuple with the WafStatus301 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorValues) GetWafStatus301Ok() (*int32, bool) { + if o == nil || o.WafStatus301 == nil { + return nil, false + } + return o.WafStatus301, true +} + +// HasWafStatus301 returns a boolean if a field has been set. +func (o *OriginInspectorValues) HasWafStatus301() bool { + if o != nil && o.WafStatus301 != nil { + return true + } + + return false +} + +// SetWafStatus301 gets a reference to the given int32 and assigns it to the WafStatus301 field. +func (o *OriginInspectorValues) SetWafStatus301(v int32) { + o.WafStatus301 = &v +} + +// GetWafStatus302 returns the WafStatus302 field value if set, zero value otherwise. +func (o *OriginInspectorValues) GetWafStatus302() int32 { + if o == nil || o.WafStatus302 == nil { + var ret int32 + return ret + } + return *o.WafStatus302 +} + +// GetWafStatus302Ok returns a tuple with the WafStatus302 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorValues) GetWafStatus302Ok() (*int32, bool) { + if o == nil || o.WafStatus302 == nil { + return nil, false + } + return o.WafStatus302, true +} + +// HasWafStatus302 returns a boolean if a field has been set. +func (o *OriginInspectorValues) HasWafStatus302() bool { + if o != nil && o.WafStatus302 != nil { + return true + } + + return false +} + +// SetWafStatus302 gets a reference to the given int32 and assigns it to the WafStatus302 field. +func (o *OriginInspectorValues) SetWafStatus302(v int32) { + o.WafStatus302 = &v +} + +// GetWafStatus304 returns the WafStatus304 field value if set, zero value otherwise. +func (o *OriginInspectorValues) GetWafStatus304() int32 { + if o == nil || o.WafStatus304 == nil { + var ret int32 + return ret + } + return *o.WafStatus304 +} + +// GetWafStatus304Ok returns a tuple with the WafStatus304 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorValues) GetWafStatus304Ok() (*int32, bool) { + if o == nil || o.WafStatus304 == nil { + return nil, false + } + return o.WafStatus304, true +} + +// HasWafStatus304 returns a boolean if a field has been set. +func (o *OriginInspectorValues) HasWafStatus304() bool { + if o != nil && o.WafStatus304 != nil { + return true + } + + return false +} + +// SetWafStatus304 gets a reference to the given int32 and assigns it to the WafStatus304 field. +func (o *OriginInspectorValues) SetWafStatus304(v int32) { + o.WafStatus304 = &v +} + +// GetWafStatus400 returns the WafStatus400 field value if set, zero value otherwise. +func (o *OriginInspectorValues) GetWafStatus400() int32 { + if o == nil || o.WafStatus400 == nil { + var ret int32 + return ret + } + return *o.WafStatus400 +} + +// GetWafStatus400Ok returns a tuple with the WafStatus400 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorValues) GetWafStatus400Ok() (*int32, bool) { + if o == nil || o.WafStatus400 == nil { + return nil, false + } + return o.WafStatus400, true +} + +// HasWafStatus400 returns a boolean if a field has been set. +func (o *OriginInspectorValues) HasWafStatus400() bool { + if o != nil && o.WafStatus400 != nil { + return true + } + + return false +} + +// SetWafStatus400 gets a reference to the given int32 and assigns it to the WafStatus400 field. +func (o *OriginInspectorValues) SetWafStatus400(v int32) { + o.WafStatus400 = &v +} + +// GetWafStatus401 returns the WafStatus401 field value if set, zero value otherwise. +func (o *OriginInspectorValues) GetWafStatus401() int32 { + if o == nil || o.WafStatus401 == nil { + var ret int32 + return ret + } + return *o.WafStatus401 +} + +// GetWafStatus401Ok returns a tuple with the WafStatus401 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorValues) GetWafStatus401Ok() (*int32, bool) { + if o == nil || o.WafStatus401 == nil { + return nil, false + } + return o.WafStatus401, true +} + +// HasWafStatus401 returns a boolean if a field has been set. +func (o *OriginInspectorValues) HasWafStatus401() bool { + if o != nil && o.WafStatus401 != nil { + return true + } + + return false +} + +// SetWafStatus401 gets a reference to the given int32 and assigns it to the WafStatus401 field. +func (o *OriginInspectorValues) SetWafStatus401(v int32) { + o.WafStatus401 = &v +} + +// GetWafStatus403 returns the WafStatus403 field value if set, zero value otherwise. +func (o *OriginInspectorValues) GetWafStatus403() int32 { + if o == nil || o.WafStatus403 == nil { + var ret int32 + return ret + } + return *o.WafStatus403 +} + +// GetWafStatus403Ok returns a tuple with the WafStatus403 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorValues) GetWafStatus403Ok() (*int32, bool) { + if o == nil || o.WafStatus403 == nil { + return nil, false + } + return o.WafStatus403, true +} + +// HasWafStatus403 returns a boolean if a field has been set. +func (o *OriginInspectorValues) HasWafStatus403() bool { + if o != nil && o.WafStatus403 != nil { + return true + } + + return false +} + +// SetWafStatus403 gets a reference to the given int32 and assigns it to the WafStatus403 field. +func (o *OriginInspectorValues) SetWafStatus403(v int32) { + o.WafStatus403 = &v +} + +// GetWafStatus404 returns the WafStatus404 field value if set, zero value otherwise. +func (o *OriginInspectorValues) GetWafStatus404() int32 { + if o == nil || o.WafStatus404 == nil { + var ret int32 + return ret + } + return *o.WafStatus404 +} + +// GetWafStatus404Ok returns a tuple with the WafStatus404 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorValues) GetWafStatus404Ok() (*int32, bool) { + if o == nil || o.WafStatus404 == nil { + return nil, false + } + return o.WafStatus404, true +} + +// HasWafStatus404 returns a boolean if a field has been set. +func (o *OriginInspectorValues) HasWafStatus404() bool { + if o != nil && o.WafStatus404 != nil { + return true + } + + return false +} + +// SetWafStatus404 gets a reference to the given int32 and assigns it to the WafStatus404 field. +func (o *OriginInspectorValues) SetWafStatus404(v int32) { + o.WafStatus404 = &v +} + +// GetWafStatus416 returns the WafStatus416 field value if set, zero value otherwise. +func (o *OriginInspectorValues) GetWafStatus416() int32 { + if o == nil || o.WafStatus416 == nil { + var ret int32 + return ret + } + return *o.WafStatus416 +} + +// GetWafStatus416Ok returns a tuple with the WafStatus416 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorValues) GetWafStatus416Ok() (*int32, bool) { + if o == nil || o.WafStatus416 == nil { + return nil, false + } + return o.WafStatus416, true +} + +// HasWafStatus416 returns a boolean if a field has been set. +func (o *OriginInspectorValues) HasWafStatus416() bool { + if o != nil && o.WafStatus416 != nil { + return true + } + + return false +} + +// SetWafStatus416 gets a reference to the given int32 and assigns it to the WafStatus416 field. +func (o *OriginInspectorValues) SetWafStatus416(v int32) { + o.WafStatus416 = &v +} + +// GetWafStatus429 returns the WafStatus429 field value if set, zero value otherwise. +func (o *OriginInspectorValues) GetWafStatus429() int32 { + if o == nil || o.WafStatus429 == nil { + var ret int32 + return ret + } + return *o.WafStatus429 +} + +// GetWafStatus429Ok returns a tuple with the WafStatus429 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorValues) GetWafStatus429Ok() (*int32, bool) { + if o == nil || o.WafStatus429 == nil { + return nil, false + } + return o.WafStatus429, true +} + +// HasWafStatus429 returns a boolean if a field has been set. +func (o *OriginInspectorValues) HasWafStatus429() bool { + if o != nil && o.WafStatus429 != nil { + return true + } + + return false +} + +// SetWafStatus429 gets a reference to the given int32 and assigns it to the WafStatus429 field. +func (o *OriginInspectorValues) SetWafStatus429(v int32) { + o.WafStatus429 = &v +} + +// GetWafStatus500 returns the WafStatus500 field value if set, zero value otherwise. +func (o *OriginInspectorValues) GetWafStatus500() int32 { + if o == nil || o.WafStatus500 == nil { + var ret int32 + return ret + } + return *o.WafStatus500 +} + +// GetWafStatus500Ok returns a tuple with the WafStatus500 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorValues) GetWafStatus500Ok() (*int32, bool) { + if o == nil || o.WafStatus500 == nil { + return nil, false + } + return o.WafStatus500, true +} + +// HasWafStatus500 returns a boolean if a field has been set. +func (o *OriginInspectorValues) HasWafStatus500() bool { + if o != nil && o.WafStatus500 != nil { + return true + } + + return false +} + +// SetWafStatus500 gets a reference to the given int32 and assigns it to the WafStatus500 field. +func (o *OriginInspectorValues) SetWafStatus500(v int32) { + o.WafStatus500 = &v +} + +// GetWafStatus501 returns the WafStatus501 field value if set, zero value otherwise. +func (o *OriginInspectorValues) GetWafStatus501() int32 { + if o == nil || o.WafStatus501 == nil { + var ret int32 + return ret + } + return *o.WafStatus501 +} + +// GetWafStatus501Ok returns a tuple with the WafStatus501 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorValues) GetWafStatus501Ok() (*int32, bool) { + if o == nil || o.WafStatus501 == nil { + return nil, false + } + return o.WafStatus501, true +} + +// HasWafStatus501 returns a boolean if a field has been set. +func (o *OriginInspectorValues) HasWafStatus501() bool { + if o != nil && o.WafStatus501 != nil { + return true + } + + return false +} + +// SetWafStatus501 gets a reference to the given int32 and assigns it to the WafStatus501 field. +func (o *OriginInspectorValues) SetWafStatus501(v int32) { + o.WafStatus501 = &v +} + +// GetWafStatus502 returns the WafStatus502 field value if set, zero value otherwise. +func (o *OriginInspectorValues) GetWafStatus502() int32 { + if o == nil || o.WafStatus502 == nil { + var ret int32 + return ret + } + return *o.WafStatus502 +} + +// GetWafStatus502Ok returns a tuple with the WafStatus502 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorValues) GetWafStatus502Ok() (*int32, bool) { + if o == nil || o.WafStatus502 == nil { + return nil, false + } + return o.WafStatus502, true +} + +// HasWafStatus502 returns a boolean if a field has been set. +func (o *OriginInspectorValues) HasWafStatus502() bool { + if o != nil && o.WafStatus502 != nil { + return true + } + + return false +} + +// SetWafStatus502 gets a reference to the given int32 and assigns it to the WafStatus502 field. +func (o *OriginInspectorValues) SetWafStatus502(v int32) { + o.WafStatus502 = &v +} + +// GetWafStatus503 returns the WafStatus503 field value if set, zero value otherwise. +func (o *OriginInspectorValues) GetWafStatus503() int32 { + if o == nil || o.WafStatus503 == nil { + var ret int32 + return ret + } + return *o.WafStatus503 +} + +// GetWafStatus503Ok returns a tuple with the WafStatus503 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorValues) GetWafStatus503Ok() (*int32, bool) { + if o == nil || o.WafStatus503 == nil { + return nil, false + } + return o.WafStatus503, true +} + +// HasWafStatus503 returns a boolean if a field has been set. +func (o *OriginInspectorValues) HasWafStatus503() bool { + if o != nil && o.WafStatus503 != nil { + return true + } + + return false +} + +// SetWafStatus503 gets a reference to the given int32 and assigns it to the WafStatus503 field. +func (o *OriginInspectorValues) SetWafStatus503(v int32) { + o.WafStatus503 = &v +} + +// GetWafStatus504 returns the WafStatus504 field value if set, zero value otherwise. +func (o *OriginInspectorValues) GetWafStatus504() int32 { + if o == nil || o.WafStatus504 == nil { + var ret int32 + return ret + } + return *o.WafStatus504 +} + +// GetWafStatus504Ok returns a tuple with the WafStatus504 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorValues) GetWafStatus504Ok() (*int32, bool) { + if o == nil || o.WafStatus504 == nil { + return nil, false + } + return o.WafStatus504, true +} + +// HasWafStatus504 returns a boolean if a field has been set. +func (o *OriginInspectorValues) HasWafStatus504() bool { + if o != nil && o.WafStatus504 != nil { + return true + } + + return false +} + +// SetWafStatus504 gets a reference to the given int32 and assigns it to the WafStatus504 field. +func (o *OriginInspectorValues) SetWafStatus504(v int32) { + o.WafStatus504 = &v +} + +// GetWafStatus505 returns the WafStatus505 field value if set, zero value otherwise. +func (o *OriginInspectorValues) GetWafStatus505() int32 { + if o == nil || o.WafStatus505 == nil { + var ret int32 + return ret + } + return *o.WafStatus505 +} + +// GetWafStatus505Ok returns a tuple with the WafStatus505 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorValues) GetWafStatus505Ok() (*int32, bool) { + if o == nil || o.WafStatus505 == nil { + return nil, false + } + return o.WafStatus505, true +} + +// HasWafStatus505 returns a boolean if a field has been set. +func (o *OriginInspectorValues) HasWafStatus505() bool { + if o != nil && o.WafStatus505 != nil { + return true + } + + return false +} + +// SetWafStatus505 gets a reference to the given int32 and assigns it to the WafStatus505 field. +func (o *OriginInspectorValues) SetWafStatus505(v int32) { + o.WafStatus505 = &v +} + +// GetWafLatency0To1ms returns the WafLatency0To1ms field value if set, zero value otherwise. +func (o *OriginInspectorValues) GetWafLatency0To1ms() int32 { + if o == nil || o.WafLatency0To1ms == nil { + var ret int32 + return ret + } + return *o.WafLatency0To1ms +} + +// GetWafLatency0To1msOk returns a tuple with the WafLatency0To1ms field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorValues) GetWafLatency0To1msOk() (*int32, bool) { + if o == nil || o.WafLatency0To1ms == nil { + return nil, false + } + return o.WafLatency0To1ms, true +} + +// HasWafLatency0To1ms returns a boolean if a field has been set. +func (o *OriginInspectorValues) HasWafLatency0To1ms() bool { + if o != nil && o.WafLatency0To1ms != nil { + return true + } + + return false +} + +// SetWafLatency0To1ms gets a reference to the given int32 and assigns it to the WafLatency0To1ms field. +func (o *OriginInspectorValues) SetWafLatency0To1ms(v int32) { + o.WafLatency0To1ms = &v +} + +// GetWafLatency1To5ms returns the WafLatency1To5ms field value if set, zero value otherwise. +func (o *OriginInspectorValues) GetWafLatency1To5ms() int32 { + if o == nil || o.WafLatency1To5ms == nil { + var ret int32 + return ret + } + return *o.WafLatency1To5ms +} + +// GetWafLatency1To5msOk returns a tuple with the WafLatency1To5ms field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorValues) GetWafLatency1To5msOk() (*int32, bool) { + if o == nil || o.WafLatency1To5ms == nil { + return nil, false + } + return o.WafLatency1To5ms, true +} + +// HasWafLatency1To5ms returns a boolean if a field has been set. +func (o *OriginInspectorValues) HasWafLatency1To5ms() bool { + if o != nil && o.WafLatency1To5ms != nil { + return true + } + + return false +} + +// SetWafLatency1To5ms gets a reference to the given int32 and assigns it to the WafLatency1To5ms field. +func (o *OriginInspectorValues) SetWafLatency1To5ms(v int32) { + o.WafLatency1To5ms = &v +} + +// GetWafLatency5To10ms returns the WafLatency5To10ms field value if set, zero value otherwise. +func (o *OriginInspectorValues) GetWafLatency5To10ms() int32 { + if o == nil || o.WafLatency5To10ms == nil { + var ret int32 + return ret + } + return *o.WafLatency5To10ms +} + +// GetWafLatency5To10msOk returns a tuple with the WafLatency5To10ms field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorValues) GetWafLatency5To10msOk() (*int32, bool) { + if o == nil || o.WafLatency5To10ms == nil { + return nil, false + } + return o.WafLatency5To10ms, true +} + +// HasWafLatency5To10ms returns a boolean if a field has been set. +func (o *OriginInspectorValues) HasWafLatency5To10ms() bool { + if o != nil && o.WafLatency5To10ms != nil { + return true + } + + return false +} + +// SetWafLatency5To10ms gets a reference to the given int32 and assigns it to the WafLatency5To10ms field. +func (o *OriginInspectorValues) SetWafLatency5To10ms(v int32) { + o.WafLatency5To10ms = &v +} + +// GetWafLatency10To50ms returns the WafLatency10To50ms field value if set, zero value otherwise. +func (o *OriginInspectorValues) GetWafLatency10To50ms() int32 { + if o == nil || o.WafLatency10To50ms == nil { + var ret int32 + return ret + } + return *o.WafLatency10To50ms +} + +// GetWafLatency10To50msOk returns a tuple with the WafLatency10To50ms field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorValues) GetWafLatency10To50msOk() (*int32, bool) { + if o == nil || o.WafLatency10To50ms == nil { + return nil, false + } + return o.WafLatency10To50ms, true +} + +// HasWafLatency10To50ms returns a boolean if a field has been set. +func (o *OriginInspectorValues) HasWafLatency10To50ms() bool { + if o != nil && o.WafLatency10To50ms != nil { + return true + } + + return false +} + +// SetWafLatency10To50ms gets a reference to the given int32 and assigns it to the WafLatency10To50ms field. +func (o *OriginInspectorValues) SetWafLatency10To50ms(v int32) { + o.WafLatency10To50ms = &v +} + +// GetWafLatency50To100ms returns the WafLatency50To100ms field value if set, zero value otherwise. +func (o *OriginInspectorValues) GetWafLatency50To100ms() int32 { + if o == nil || o.WafLatency50To100ms == nil { + var ret int32 + return ret + } + return *o.WafLatency50To100ms +} + +// GetWafLatency50To100msOk returns a tuple with the WafLatency50To100ms field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorValues) GetWafLatency50To100msOk() (*int32, bool) { + if o == nil || o.WafLatency50To100ms == nil { + return nil, false + } + return o.WafLatency50To100ms, true +} + +// HasWafLatency50To100ms returns a boolean if a field has been set. +func (o *OriginInspectorValues) HasWafLatency50To100ms() bool { + if o != nil && o.WafLatency50To100ms != nil { + return true + } + + return false +} + +// SetWafLatency50To100ms gets a reference to the given int32 and assigns it to the WafLatency50To100ms field. +func (o *OriginInspectorValues) SetWafLatency50To100ms(v int32) { + o.WafLatency50To100ms = &v +} + +// GetWafLatency100To250ms returns the WafLatency100To250ms field value if set, zero value otherwise. +func (o *OriginInspectorValues) GetWafLatency100To250ms() int32 { + if o == nil || o.WafLatency100To250ms == nil { + var ret int32 + return ret + } + return *o.WafLatency100To250ms +} + +// GetWafLatency100To250msOk returns a tuple with the WafLatency100To250ms field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorValues) GetWafLatency100To250msOk() (*int32, bool) { + if o == nil || o.WafLatency100To250ms == nil { + return nil, false + } + return o.WafLatency100To250ms, true +} + +// HasWafLatency100To250ms returns a boolean if a field has been set. +func (o *OriginInspectorValues) HasWafLatency100To250ms() bool { + if o != nil && o.WafLatency100To250ms != nil { + return true + } + + return false +} + +// SetWafLatency100To250ms gets a reference to the given int32 and assigns it to the WafLatency100To250ms field. +func (o *OriginInspectorValues) SetWafLatency100To250ms(v int32) { + o.WafLatency100To250ms = &v +} + +// GetWafLatency250To500ms returns the WafLatency250To500ms field value if set, zero value otherwise. +func (o *OriginInspectorValues) GetWafLatency250To500ms() int32 { + if o == nil || o.WafLatency250To500ms == nil { + var ret int32 + return ret + } + return *o.WafLatency250To500ms +} + +// GetWafLatency250To500msOk returns a tuple with the WafLatency250To500ms field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorValues) GetWafLatency250To500msOk() (*int32, bool) { + if o == nil || o.WafLatency250To500ms == nil { + return nil, false + } + return o.WafLatency250To500ms, true +} + +// HasWafLatency250To500ms returns a boolean if a field has been set. +func (o *OriginInspectorValues) HasWafLatency250To500ms() bool { + if o != nil && o.WafLatency250To500ms != nil { + return true + } + + return false +} + +// SetWafLatency250To500ms gets a reference to the given int32 and assigns it to the WafLatency250To500ms field. +func (o *OriginInspectorValues) SetWafLatency250To500ms(v int32) { + o.WafLatency250To500ms = &v +} + +// GetWafLatency500To1000ms returns the WafLatency500To1000ms field value if set, zero value otherwise. +func (o *OriginInspectorValues) GetWafLatency500To1000ms() int32 { + if o == nil || o.WafLatency500To1000ms == nil { + var ret int32 + return ret + } + return *o.WafLatency500To1000ms +} + +// GetWafLatency500To1000msOk returns a tuple with the WafLatency500To1000ms field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorValues) GetWafLatency500To1000msOk() (*int32, bool) { + if o == nil || o.WafLatency500To1000ms == nil { + return nil, false + } + return o.WafLatency500To1000ms, true +} + +// HasWafLatency500To1000ms returns a boolean if a field has been set. +func (o *OriginInspectorValues) HasWafLatency500To1000ms() bool { + if o != nil && o.WafLatency500To1000ms != nil { + return true + } + + return false +} + +// SetWafLatency500To1000ms gets a reference to the given int32 and assigns it to the WafLatency500To1000ms field. +func (o *OriginInspectorValues) SetWafLatency500To1000ms(v int32) { + o.WafLatency500To1000ms = &v +} + +// GetWafLatency1000To5000ms returns the WafLatency1000To5000ms field value if set, zero value otherwise. +func (o *OriginInspectorValues) GetWafLatency1000To5000ms() int32 { + if o == nil || o.WafLatency1000To5000ms == nil { + var ret int32 + return ret + } + return *o.WafLatency1000To5000ms +} + +// GetWafLatency1000To5000msOk returns a tuple with the WafLatency1000To5000ms field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorValues) GetWafLatency1000To5000msOk() (*int32, bool) { + if o == nil || o.WafLatency1000To5000ms == nil { + return nil, false + } + return o.WafLatency1000To5000ms, true +} + +// HasWafLatency1000To5000ms returns a boolean if a field has been set. +func (o *OriginInspectorValues) HasWafLatency1000To5000ms() bool { + if o != nil && o.WafLatency1000To5000ms != nil { + return true + } + + return false +} + +// SetWafLatency1000To5000ms gets a reference to the given int32 and assigns it to the WafLatency1000To5000ms field. +func (o *OriginInspectorValues) SetWafLatency1000To5000ms(v int32) { + o.WafLatency1000To5000ms = &v +} + +// GetWafLatency5000To10000ms returns the WafLatency5000To10000ms field value if set, zero value otherwise. +func (o *OriginInspectorValues) GetWafLatency5000To10000ms() int32 { + if o == nil || o.WafLatency5000To10000ms == nil { + var ret int32 + return ret + } + return *o.WafLatency5000To10000ms +} + +// GetWafLatency5000To10000msOk returns a tuple with the WafLatency5000To10000ms field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorValues) GetWafLatency5000To10000msOk() (*int32, bool) { + if o == nil || o.WafLatency5000To10000ms == nil { + return nil, false + } + return o.WafLatency5000To10000ms, true +} + +// HasWafLatency5000To10000ms returns a boolean if a field has been set. +func (o *OriginInspectorValues) HasWafLatency5000To10000ms() bool { + if o != nil && o.WafLatency5000To10000ms != nil { + return true + } + + return false +} + +// SetWafLatency5000To10000ms gets a reference to the given int32 and assigns it to the WafLatency5000To10000ms field. +func (o *OriginInspectorValues) SetWafLatency5000To10000ms(v int32) { + o.WafLatency5000To10000ms = &v +} + +// GetWafLatency10000To60000ms returns the WafLatency10000To60000ms field value if set, zero value otherwise. +func (o *OriginInspectorValues) GetWafLatency10000To60000ms() int32 { + if o == nil || o.WafLatency10000To60000ms == nil { + var ret int32 + return ret + } + return *o.WafLatency10000To60000ms +} + +// GetWafLatency10000To60000msOk returns a tuple with the WafLatency10000To60000ms field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorValues) GetWafLatency10000To60000msOk() (*int32, bool) { + if o == nil || o.WafLatency10000To60000ms == nil { + return nil, false + } + return o.WafLatency10000To60000ms, true +} + +// HasWafLatency10000To60000ms returns a boolean if a field has been set. +func (o *OriginInspectorValues) HasWafLatency10000To60000ms() bool { + if o != nil && o.WafLatency10000To60000ms != nil { + return true + } + + return false +} + +// SetWafLatency10000To60000ms gets a reference to the given int32 and assigns it to the WafLatency10000To60000ms field. +func (o *OriginInspectorValues) SetWafLatency10000To60000ms(v int32) { + o.WafLatency10000To60000ms = &v +} + +// GetWafLatency60000ms returns the WafLatency60000ms field value if set, zero value otherwise. +func (o *OriginInspectorValues) GetWafLatency60000ms() int32 { + if o == nil || o.WafLatency60000ms == nil { + var ret int32 + return ret + } + return *o.WafLatency60000ms +} + +// GetWafLatency60000msOk returns a tuple with the WafLatency60000ms field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorValues) GetWafLatency60000msOk() (*int32, bool) { + if o == nil || o.WafLatency60000ms == nil { + return nil, false + } + return o.WafLatency60000ms, true +} + +// HasWafLatency60000ms returns a boolean if a field has been set. +func (o *OriginInspectorValues) HasWafLatency60000ms() bool { + if o != nil && o.WafLatency60000ms != nil { + return true + } + + return false +} + +// SetWafLatency60000ms gets a reference to the given int32 and assigns it to the WafLatency60000ms field. +func (o *OriginInspectorValues) SetWafLatency60000ms(v int32) { + o.WafLatency60000ms = &v +} + +// GetComputeResponses returns the ComputeResponses field value if set, zero value otherwise. +func (o *OriginInspectorValues) GetComputeResponses() int32 { + if o == nil || o.ComputeResponses == nil { + var ret int32 + return ret + } + return *o.ComputeResponses +} + +// GetComputeResponsesOk returns a tuple with the ComputeResponses field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorValues) GetComputeResponsesOk() (*int32, bool) { + if o == nil || o.ComputeResponses == nil { + return nil, false + } + return o.ComputeResponses, true +} + +// HasComputeResponses returns a boolean if a field has been set. +func (o *OriginInspectorValues) HasComputeResponses() bool { + if o != nil && o.ComputeResponses != nil { + return true + } + + return false +} + +// SetComputeResponses gets a reference to the given int32 and assigns it to the ComputeResponses field. +func (o *OriginInspectorValues) SetComputeResponses(v int32) { + o.ComputeResponses = &v +} + +// GetComputeRespHeaderBytes returns the ComputeRespHeaderBytes field value if set, zero value otherwise. +func (o *OriginInspectorValues) GetComputeRespHeaderBytes() int32 { + if o == nil || o.ComputeRespHeaderBytes == nil { + var ret int32 + return ret + } + return *o.ComputeRespHeaderBytes +} + +// GetComputeRespHeaderBytesOk returns a tuple with the ComputeRespHeaderBytes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorValues) GetComputeRespHeaderBytesOk() (*int32, bool) { + if o == nil || o.ComputeRespHeaderBytes == nil { + return nil, false + } + return o.ComputeRespHeaderBytes, true +} + +// HasComputeRespHeaderBytes returns a boolean if a field has been set. +func (o *OriginInspectorValues) HasComputeRespHeaderBytes() bool { + if o != nil && o.ComputeRespHeaderBytes != nil { + return true + } + + return false +} + +// SetComputeRespHeaderBytes gets a reference to the given int32 and assigns it to the ComputeRespHeaderBytes field. +func (o *OriginInspectorValues) SetComputeRespHeaderBytes(v int32) { + o.ComputeRespHeaderBytes = &v +} + +// GetComputeRespBodyBytes returns the ComputeRespBodyBytes field value if set, zero value otherwise. +func (o *OriginInspectorValues) GetComputeRespBodyBytes() int32 { + if o == nil || o.ComputeRespBodyBytes == nil { + var ret int32 + return ret + } + return *o.ComputeRespBodyBytes +} + +// GetComputeRespBodyBytesOk returns a tuple with the ComputeRespBodyBytes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorValues) GetComputeRespBodyBytesOk() (*int32, bool) { + if o == nil || o.ComputeRespBodyBytes == nil { + return nil, false + } + return o.ComputeRespBodyBytes, true +} + +// HasComputeRespBodyBytes returns a boolean if a field has been set. +func (o *OriginInspectorValues) HasComputeRespBodyBytes() bool { + if o != nil && o.ComputeRespBodyBytes != nil { + return true + } + + return false +} + +// SetComputeRespBodyBytes gets a reference to the given int32 and assigns it to the ComputeRespBodyBytes field. +func (o *OriginInspectorValues) SetComputeRespBodyBytes(v int32) { + o.ComputeRespBodyBytes = &v +} + +// GetComputeStatus1xx returns the ComputeStatus1xx field value if set, zero value otherwise. +func (o *OriginInspectorValues) GetComputeStatus1xx() int32 { + if o == nil || o.ComputeStatus1xx == nil { + var ret int32 + return ret + } + return *o.ComputeStatus1xx +} + +// GetComputeStatus1xxOk returns a tuple with the ComputeStatus1xx field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorValues) GetComputeStatus1xxOk() (*int32, bool) { + if o == nil || o.ComputeStatus1xx == nil { + return nil, false + } + return o.ComputeStatus1xx, true +} + +// HasComputeStatus1xx returns a boolean if a field has been set. +func (o *OriginInspectorValues) HasComputeStatus1xx() bool { + if o != nil && o.ComputeStatus1xx != nil { + return true + } + + return false +} + +// SetComputeStatus1xx gets a reference to the given int32 and assigns it to the ComputeStatus1xx field. +func (o *OriginInspectorValues) SetComputeStatus1xx(v int32) { + o.ComputeStatus1xx = &v +} + +// GetComputeStatus2xx returns the ComputeStatus2xx field value if set, zero value otherwise. +func (o *OriginInspectorValues) GetComputeStatus2xx() int32 { + if o == nil || o.ComputeStatus2xx == nil { + var ret int32 + return ret + } + return *o.ComputeStatus2xx +} + +// GetComputeStatus2xxOk returns a tuple with the ComputeStatus2xx field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorValues) GetComputeStatus2xxOk() (*int32, bool) { + if o == nil || o.ComputeStatus2xx == nil { + return nil, false + } + return o.ComputeStatus2xx, true +} + +// HasComputeStatus2xx returns a boolean if a field has been set. +func (o *OriginInspectorValues) HasComputeStatus2xx() bool { + if o != nil && o.ComputeStatus2xx != nil { + return true + } + + return false +} + +// SetComputeStatus2xx gets a reference to the given int32 and assigns it to the ComputeStatus2xx field. +func (o *OriginInspectorValues) SetComputeStatus2xx(v int32) { + o.ComputeStatus2xx = &v +} + +// GetComputeStatus3xx returns the ComputeStatus3xx field value if set, zero value otherwise. +func (o *OriginInspectorValues) GetComputeStatus3xx() int32 { + if o == nil || o.ComputeStatus3xx == nil { + var ret int32 + return ret + } + return *o.ComputeStatus3xx +} + +// GetComputeStatus3xxOk returns a tuple with the ComputeStatus3xx field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorValues) GetComputeStatus3xxOk() (*int32, bool) { + if o == nil || o.ComputeStatus3xx == nil { + return nil, false + } + return o.ComputeStatus3xx, true +} + +// HasComputeStatus3xx returns a boolean if a field has been set. +func (o *OriginInspectorValues) HasComputeStatus3xx() bool { + if o != nil && o.ComputeStatus3xx != nil { + return true + } + + return false +} + +// SetComputeStatus3xx gets a reference to the given int32 and assigns it to the ComputeStatus3xx field. +func (o *OriginInspectorValues) SetComputeStatus3xx(v int32) { + o.ComputeStatus3xx = &v +} + +// GetComputeStatus4xx returns the ComputeStatus4xx field value if set, zero value otherwise. +func (o *OriginInspectorValues) GetComputeStatus4xx() int32 { + if o == nil || o.ComputeStatus4xx == nil { + var ret int32 + return ret + } + return *o.ComputeStatus4xx +} + +// GetComputeStatus4xxOk returns a tuple with the ComputeStatus4xx field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorValues) GetComputeStatus4xxOk() (*int32, bool) { + if o == nil || o.ComputeStatus4xx == nil { + return nil, false + } + return o.ComputeStatus4xx, true +} + +// HasComputeStatus4xx returns a boolean if a field has been set. +func (o *OriginInspectorValues) HasComputeStatus4xx() bool { + if o != nil && o.ComputeStatus4xx != nil { + return true + } + + return false +} + +// SetComputeStatus4xx gets a reference to the given int32 and assigns it to the ComputeStatus4xx field. +func (o *OriginInspectorValues) SetComputeStatus4xx(v int32) { + o.ComputeStatus4xx = &v +} + +// GetComputeStatus5xx returns the ComputeStatus5xx field value if set, zero value otherwise. +func (o *OriginInspectorValues) GetComputeStatus5xx() int32 { + if o == nil || o.ComputeStatus5xx == nil { + var ret int32 + return ret + } + return *o.ComputeStatus5xx +} + +// GetComputeStatus5xxOk returns a tuple with the ComputeStatus5xx field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorValues) GetComputeStatus5xxOk() (*int32, bool) { + if o == nil || o.ComputeStatus5xx == nil { + return nil, false + } + return o.ComputeStatus5xx, true +} + +// HasComputeStatus5xx returns a boolean if a field has been set. +func (o *OriginInspectorValues) HasComputeStatus5xx() bool { + if o != nil && o.ComputeStatus5xx != nil { + return true + } + + return false +} + +// SetComputeStatus5xx gets a reference to the given int32 and assigns it to the ComputeStatus5xx field. +func (o *OriginInspectorValues) SetComputeStatus5xx(v int32) { + o.ComputeStatus5xx = &v +} + +// GetComputeStatus200 returns the ComputeStatus200 field value if set, zero value otherwise. +func (o *OriginInspectorValues) GetComputeStatus200() int32 { + if o == nil || o.ComputeStatus200 == nil { + var ret int32 + return ret + } + return *o.ComputeStatus200 +} + +// GetComputeStatus200Ok returns a tuple with the ComputeStatus200 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorValues) GetComputeStatus200Ok() (*int32, bool) { + if o == nil || o.ComputeStatus200 == nil { + return nil, false + } + return o.ComputeStatus200, true +} + +// HasComputeStatus200 returns a boolean if a field has been set. +func (o *OriginInspectorValues) HasComputeStatus200() bool { + if o != nil && o.ComputeStatus200 != nil { + return true + } + + return false +} + +// SetComputeStatus200 gets a reference to the given int32 and assigns it to the ComputeStatus200 field. +func (o *OriginInspectorValues) SetComputeStatus200(v int32) { + o.ComputeStatus200 = &v +} + +// GetComputeStatus204 returns the ComputeStatus204 field value if set, zero value otherwise. +func (o *OriginInspectorValues) GetComputeStatus204() int32 { + if o == nil || o.ComputeStatus204 == nil { + var ret int32 + return ret + } + return *o.ComputeStatus204 +} + +// GetComputeStatus204Ok returns a tuple with the ComputeStatus204 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorValues) GetComputeStatus204Ok() (*int32, bool) { + if o == nil || o.ComputeStatus204 == nil { + return nil, false + } + return o.ComputeStatus204, true +} + +// HasComputeStatus204 returns a boolean if a field has been set. +func (o *OriginInspectorValues) HasComputeStatus204() bool { + if o != nil && o.ComputeStatus204 != nil { + return true + } + + return false +} + +// SetComputeStatus204 gets a reference to the given int32 and assigns it to the ComputeStatus204 field. +func (o *OriginInspectorValues) SetComputeStatus204(v int32) { + o.ComputeStatus204 = &v +} + +// GetComputeStatus206 returns the ComputeStatus206 field value if set, zero value otherwise. +func (o *OriginInspectorValues) GetComputeStatus206() int32 { + if o == nil || o.ComputeStatus206 == nil { + var ret int32 + return ret + } + return *o.ComputeStatus206 +} + +// GetComputeStatus206Ok returns a tuple with the ComputeStatus206 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorValues) GetComputeStatus206Ok() (*int32, bool) { + if o == nil || o.ComputeStatus206 == nil { + return nil, false + } + return o.ComputeStatus206, true +} + +// HasComputeStatus206 returns a boolean if a field has been set. +func (o *OriginInspectorValues) HasComputeStatus206() bool { + if o != nil && o.ComputeStatus206 != nil { + return true + } + + return false +} + +// SetComputeStatus206 gets a reference to the given int32 and assigns it to the ComputeStatus206 field. +func (o *OriginInspectorValues) SetComputeStatus206(v int32) { + o.ComputeStatus206 = &v +} + +// GetComputeStatus301 returns the ComputeStatus301 field value if set, zero value otherwise. +func (o *OriginInspectorValues) GetComputeStatus301() int32 { + if o == nil || o.ComputeStatus301 == nil { + var ret int32 + return ret + } + return *o.ComputeStatus301 +} + +// GetComputeStatus301Ok returns a tuple with the ComputeStatus301 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorValues) GetComputeStatus301Ok() (*int32, bool) { + if o == nil || o.ComputeStatus301 == nil { + return nil, false + } + return o.ComputeStatus301, true +} + +// HasComputeStatus301 returns a boolean if a field has been set. +func (o *OriginInspectorValues) HasComputeStatus301() bool { + if o != nil && o.ComputeStatus301 != nil { + return true + } + + return false +} + +// SetComputeStatus301 gets a reference to the given int32 and assigns it to the ComputeStatus301 field. +func (o *OriginInspectorValues) SetComputeStatus301(v int32) { + o.ComputeStatus301 = &v +} + +// GetComputeStatus302 returns the ComputeStatus302 field value if set, zero value otherwise. +func (o *OriginInspectorValues) GetComputeStatus302() int32 { + if o == nil || o.ComputeStatus302 == nil { + var ret int32 + return ret + } + return *o.ComputeStatus302 +} + +// GetComputeStatus302Ok returns a tuple with the ComputeStatus302 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorValues) GetComputeStatus302Ok() (*int32, bool) { + if o == nil || o.ComputeStatus302 == nil { + return nil, false + } + return o.ComputeStatus302, true +} + +// HasComputeStatus302 returns a boolean if a field has been set. +func (o *OriginInspectorValues) HasComputeStatus302() bool { + if o != nil && o.ComputeStatus302 != nil { + return true + } + + return false +} + +// SetComputeStatus302 gets a reference to the given int32 and assigns it to the ComputeStatus302 field. +func (o *OriginInspectorValues) SetComputeStatus302(v int32) { + o.ComputeStatus302 = &v +} + +// GetComputeStatus304 returns the ComputeStatus304 field value if set, zero value otherwise. +func (o *OriginInspectorValues) GetComputeStatus304() int32 { + if o == nil || o.ComputeStatus304 == nil { + var ret int32 + return ret + } + return *o.ComputeStatus304 +} + +// GetComputeStatus304Ok returns a tuple with the ComputeStatus304 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorValues) GetComputeStatus304Ok() (*int32, bool) { + if o == nil || o.ComputeStatus304 == nil { + return nil, false + } + return o.ComputeStatus304, true +} + +// HasComputeStatus304 returns a boolean if a field has been set. +func (o *OriginInspectorValues) HasComputeStatus304() bool { + if o != nil && o.ComputeStatus304 != nil { + return true + } + + return false +} + +// SetComputeStatus304 gets a reference to the given int32 and assigns it to the ComputeStatus304 field. +func (o *OriginInspectorValues) SetComputeStatus304(v int32) { + o.ComputeStatus304 = &v +} + +// GetComputeStatus400 returns the ComputeStatus400 field value if set, zero value otherwise. +func (o *OriginInspectorValues) GetComputeStatus400() int32 { + if o == nil || o.ComputeStatus400 == nil { + var ret int32 + return ret + } + return *o.ComputeStatus400 +} + +// GetComputeStatus400Ok returns a tuple with the ComputeStatus400 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorValues) GetComputeStatus400Ok() (*int32, bool) { + if o == nil || o.ComputeStatus400 == nil { + return nil, false + } + return o.ComputeStatus400, true +} + +// HasComputeStatus400 returns a boolean if a field has been set. +func (o *OriginInspectorValues) HasComputeStatus400() bool { + if o != nil && o.ComputeStatus400 != nil { + return true + } + + return false +} + +// SetComputeStatus400 gets a reference to the given int32 and assigns it to the ComputeStatus400 field. +func (o *OriginInspectorValues) SetComputeStatus400(v int32) { + o.ComputeStatus400 = &v +} + +// GetComputeStatus401 returns the ComputeStatus401 field value if set, zero value otherwise. +func (o *OriginInspectorValues) GetComputeStatus401() int32 { + if o == nil || o.ComputeStatus401 == nil { + var ret int32 + return ret + } + return *o.ComputeStatus401 +} + +// GetComputeStatus401Ok returns a tuple with the ComputeStatus401 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorValues) GetComputeStatus401Ok() (*int32, bool) { + if o == nil || o.ComputeStatus401 == nil { + return nil, false + } + return o.ComputeStatus401, true +} + +// HasComputeStatus401 returns a boolean if a field has been set. +func (o *OriginInspectorValues) HasComputeStatus401() bool { + if o != nil && o.ComputeStatus401 != nil { + return true + } + + return false +} + +// SetComputeStatus401 gets a reference to the given int32 and assigns it to the ComputeStatus401 field. +func (o *OriginInspectorValues) SetComputeStatus401(v int32) { + o.ComputeStatus401 = &v +} + +// GetComputeStatus403 returns the ComputeStatus403 field value if set, zero value otherwise. +func (o *OriginInspectorValues) GetComputeStatus403() int32 { + if o == nil || o.ComputeStatus403 == nil { + var ret int32 + return ret + } + return *o.ComputeStatus403 +} + +// GetComputeStatus403Ok returns a tuple with the ComputeStatus403 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorValues) GetComputeStatus403Ok() (*int32, bool) { + if o == nil || o.ComputeStatus403 == nil { + return nil, false + } + return o.ComputeStatus403, true +} + +// HasComputeStatus403 returns a boolean if a field has been set. +func (o *OriginInspectorValues) HasComputeStatus403() bool { + if o != nil && o.ComputeStatus403 != nil { + return true + } + + return false +} + +// SetComputeStatus403 gets a reference to the given int32 and assigns it to the ComputeStatus403 field. +func (o *OriginInspectorValues) SetComputeStatus403(v int32) { + o.ComputeStatus403 = &v +} + +// GetComputeStatus404 returns the ComputeStatus404 field value if set, zero value otherwise. +func (o *OriginInspectorValues) GetComputeStatus404() int32 { + if o == nil || o.ComputeStatus404 == nil { + var ret int32 + return ret + } + return *o.ComputeStatus404 +} + +// GetComputeStatus404Ok returns a tuple with the ComputeStatus404 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorValues) GetComputeStatus404Ok() (*int32, bool) { + if o == nil || o.ComputeStatus404 == nil { + return nil, false + } + return o.ComputeStatus404, true +} + +// HasComputeStatus404 returns a boolean if a field has been set. +func (o *OriginInspectorValues) HasComputeStatus404() bool { + if o != nil && o.ComputeStatus404 != nil { + return true + } + + return false +} + +// SetComputeStatus404 gets a reference to the given int32 and assigns it to the ComputeStatus404 field. +func (o *OriginInspectorValues) SetComputeStatus404(v int32) { + o.ComputeStatus404 = &v +} + +// GetComputeStatus416 returns the ComputeStatus416 field value if set, zero value otherwise. +func (o *OriginInspectorValues) GetComputeStatus416() int32 { + if o == nil || o.ComputeStatus416 == nil { + var ret int32 + return ret + } + return *o.ComputeStatus416 +} + +// GetComputeStatus416Ok returns a tuple with the ComputeStatus416 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorValues) GetComputeStatus416Ok() (*int32, bool) { + if o == nil || o.ComputeStatus416 == nil { + return nil, false + } + return o.ComputeStatus416, true +} + +// HasComputeStatus416 returns a boolean if a field has been set. +func (o *OriginInspectorValues) HasComputeStatus416() bool { + if o != nil && o.ComputeStatus416 != nil { + return true + } + + return false +} + +// SetComputeStatus416 gets a reference to the given int32 and assigns it to the ComputeStatus416 field. +func (o *OriginInspectorValues) SetComputeStatus416(v int32) { + o.ComputeStatus416 = &v +} + +// GetComputeStatus429 returns the ComputeStatus429 field value if set, zero value otherwise. +func (o *OriginInspectorValues) GetComputeStatus429() int32 { + if o == nil || o.ComputeStatus429 == nil { + var ret int32 + return ret + } + return *o.ComputeStatus429 +} + +// GetComputeStatus429Ok returns a tuple with the ComputeStatus429 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorValues) GetComputeStatus429Ok() (*int32, bool) { + if o == nil || o.ComputeStatus429 == nil { + return nil, false + } + return o.ComputeStatus429, true +} + +// HasComputeStatus429 returns a boolean if a field has been set. +func (o *OriginInspectorValues) HasComputeStatus429() bool { + if o != nil && o.ComputeStatus429 != nil { + return true + } + + return false +} + +// SetComputeStatus429 gets a reference to the given int32 and assigns it to the ComputeStatus429 field. +func (o *OriginInspectorValues) SetComputeStatus429(v int32) { + o.ComputeStatus429 = &v +} + +// GetComputeStatus500 returns the ComputeStatus500 field value if set, zero value otherwise. +func (o *OriginInspectorValues) GetComputeStatus500() int32 { + if o == nil || o.ComputeStatus500 == nil { + var ret int32 + return ret + } + return *o.ComputeStatus500 +} + +// GetComputeStatus500Ok returns a tuple with the ComputeStatus500 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorValues) GetComputeStatus500Ok() (*int32, bool) { + if o == nil || o.ComputeStatus500 == nil { + return nil, false + } + return o.ComputeStatus500, true +} + +// HasComputeStatus500 returns a boolean if a field has been set. +func (o *OriginInspectorValues) HasComputeStatus500() bool { + if o != nil && o.ComputeStatus500 != nil { + return true + } + + return false +} + +// SetComputeStatus500 gets a reference to the given int32 and assigns it to the ComputeStatus500 field. +func (o *OriginInspectorValues) SetComputeStatus500(v int32) { + o.ComputeStatus500 = &v +} + +// GetComputeStatus501 returns the ComputeStatus501 field value if set, zero value otherwise. +func (o *OriginInspectorValues) GetComputeStatus501() int32 { + if o == nil || o.ComputeStatus501 == nil { + var ret int32 + return ret + } + return *o.ComputeStatus501 +} + +// GetComputeStatus501Ok returns a tuple with the ComputeStatus501 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorValues) GetComputeStatus501Ok() (*int32, bool) { + if o == nil || o.ComputeStatus501 == nil { + return nil, false + } + return o.ComputeStatus501, true +} + +// HasComputeStatus501 returns a boolean if a field has been set. +func (o *OriginInspectorValues) HasComputeStatus501() bool { + if o != nil && o.ComputeStatus501 != nil { + return true + } + + return false +} + +// SetComputeStatus501 gets a reference to the given int32 and assigns it to the ComputeStatus501 field. +func (o *OriginInspectorValues) SetComputeStatus501(v int32) { + o.ComputeStatus501 = &v +} + +// GetComputeStatus502 returns the ComputeStatus502 field value if set, zero value otherwise. +func (o *OriginInspectorValues) GetComputeStatus502() int32 { + if o == nil || o.ComputeStatus502 == nil { + var ret int32 + return ret + } + return *o.ComputeStatus502 +} + +// GetComputeStatus502Ok returns a tuple with the ComputeStatus502 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorValues) GetComputeStatus502Ok() (*int32, bool) { + if o == nil || o.ComputeStatus502 == nil { + return nil, false + } + return o.ComputeStatus502, true +} + +// HasComputeStatus502 returns a boolean if a field has been set. +func (o *OriginInspectorValues) HasComputeStatus502() bool { + if o != nil && o.ComputeStatus502 != nil { + return true + } + + return false +} + +// SetComputeStatus502 gets a reference to the given int32 and assigns it to the ComputeStatus502 field. +func (o *OriginInspectorValues) SetComputeStatus502(v int32) { + o.ComputeStatus502 = &v +} + +// GetComputeStatus503 returns the ComputeStatus503 field value if set, zero value otherwise. +func (o *OriginInspectorValues) GetComputeStatus503() int32 { + if o == nil || o.ComputeStatus503 == nil { + var ret int32 + return ret + } + return *o.ComputeStatus503 +} + +// GetComputeStatus503Ok returns a tuple with the ComputeStatus503 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorValues) GetComputeStatus503Ok() (*int32, bool) { + if o == nil || o.ComputeStatus503 == nil { + return nil, false + } + return o.ComputeStatus503, true +} + +// HasComputeStatus503 returns a boolean if a field has been set. +func (o *OriginInspectorValues) HasComputeStatus503() bool { + if o != nil && o.ComputeStatus503 != nil { + return true + } + + return false +} + +// SetComputeStatus503 gets a reference to the given int32 and assigns it to the ComputeStatus503 field. +func (o *OriginInspectorValues) SetComputeStatus503(v int32) { + o.ComputeStatus503 = &v +} + +// GetComputeStatus504 returns the ComputeStatus504 field value if set, zero value otherwise. +func (o *OriginInspectorValues) GetComputeStatus504() int32 { + if o == nil || o.ComputeStatus504 == nil { + var ret int32 + return ret + } + return *o.ComputeStatus504 +} + +// GetComputeStatus504Ok returns a tuple with the ComputeStatus504 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorValues) GetComputeStatus504Ok() (*int32, bool) { + if o == nil || o.ComputeStatus504 == nil { + return nil, false + } + return o.ComputeStatus504, true +} + +// HasComputeStatus504 returns a boolean if a field has been set. +func (o *OriginInspectorValues) HasComputeStatus504() bool { + if o != nil && o.ComputeStatus504 != nil { + return true + } + + return false +} + +// SetComputeStatus504 gets a reference to the given int32 and assigns it to the ComputeStatus504 field. +func (o *OriginInspectorValues) SetComputeStatus504(v int32) { + o.ComputeStatus504 = &v +} + +// GetComputeStatus505 returns the ComputeStatus505 field value if set, zero value otherwise. +func (o *OriginInspectorValues) GetComputeStatus505() int32 { + if o == nil || o.ComputeStatus505 == nil { + var ret int32 + return ret + } + return *o.ComputeStatus505 +} + +// GetComputeStatus505Ok returns a tuple with the ComputeStatus505 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorValues) GetComputeStatus505Ok() (*int32, bool) { + if o == nil || o.ComputeStatus505 == nil { + return nil, false + } + return o.ComputeStatus505, true +} + +// HasComputeStatus505 returns a boolean if a field has been set. +func (o *OriginInspectorValues) HasComputeStatus505() bool { + if o != nil && o.ComputeStatus505 != nil { + return true + } + + return false +} + +// SetComputeStatus505 gets a reference to the given int32 and assigns it to the ComputeStatus505 field. +func (o *OriginInspectorValues) SetComputeStatus505(v int32) { + o.ComputeStatus505 = &v +} + +// GetComputeLatency0To1ms returns the ComputeLatency0To1ms field value if set, zero value otherwise. +func (o *OriginInspectorValues) GetComputeLatency0To1ms() int32 { + if o == nil || o.ComputeLatency0To1ms == nil { + var ret int32 + return ret + } + return *o.ComputeLatency0To1ms +} + +// GetComputeLatency0To1msOk returns a tuple with the ComputeLatency0To1ms field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorValues) GetComputeLatency0To1msOk() (*int32, bool) { + if o == nil || o.ComputeLatency0To1ms == nil { + return nil, false + } + return o.ComputeLatency0To1ms, true +} + +// HasComputeLatency0To1ms returns a boolean if a field has been set. +func (o *OriginInspectorValues) HasComputeLatency0To1ms() bool { + if o != nil && o.ComputeLatency0To1ms != nil { + return true + } + + return false +} + +// SetComputeLatency0To1ms gets a reference to the given int32 and assigns it to the ComputeLatency0To1ms field. +func (o *OriginInspectorValues) SetComputeLatency0To1ms(v int32) { + o.ComputeLatency0To1ms = &v +} + +// GetComputeLatency1To5ms returns the ComputeLatency1To5ms field value if set, zero value otherwise. +func (o *OriginInspectorValues) GetComputeLatency1To5ms() int32 { + if o == nil || o.ComputeLatency1To5ms == nil { + var ret int32 + return ret + } + return *o.ComputeLatency1To5ms +} + +// GetComputeLatency1To5msOk returns a tuple with the ComputeLatency1To5ms field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorValues) GetComputeLatency1To5msOk() (*int32, bool) { + if o == nil || o.ComputeLatency1To5ms == nil { + return nil, false + } + return o.ComputeLatency1To5ms, true +} + +// HasComputeLatency1To5ms returns a boolean if a field has been set. +func (o *OriginInspectorValues) HasComputeLatency1To5ms() bool { + if o != nil && o.ComputeLatency1To5ms != nil { + return true + } + + return false +} + +// SetComputeLatency1To5ms gets a reference to the given int32 and assigns it to the ComputeLatency1To5ms field. +func (o *OriginInspectorValues) SetComputeLatency1To5ms(v int32) { + o.ComputeLatency1To5ms = &v +} + +// GetComputeLatency5To10ms returns the ComputeLatency5To10ms field value if set, zero value otherwise. +func (o *OriginInspectorValues) GetComputeLatency5To10ms() int32 { + if o == nil || o.ComputeLatency5To10ms == nil { + var ret int32 + return ret + } + return *o.ComputeLatency5To10ms +} + +// GetComputeLatency5To10msOk returns a tuple with the ComputeLatency5To10ms field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorValues) GetComputeLatency5To10msOk() (*int32, bool) { + if o == nil || o.ComputeLatency5To10ms == nil { + return nil, false + } + return o.ComputeLatency5To10ms, true +} + +// HasComputeLatency5To10ms returns a boolean if a field has been set. +func (o *OriginInspectorValues) HasComputeLatency5To10ms() bool { + if o != nil && o.ComputeLatency5To10ms != nil { + return true + } + + return false +} + +// SetComputeLatency5To10ms gets a reference to the given int32 and assigns it to the ComputeLatency5To10ms field. +func (o *OriginInspectorValues) SetComputeLatency5To10ms(v int32) { + o.ComputeLatency5To10ms = &v +} + +// GetComputeLatency10To50ms returns the ComputeLatency10To50ms field value if set, zero value otherwise. +func (o *OriginInspectorValues) GetComputeLatency10To50ms() int32 { + if o == nil || o.ComputeLatency10To50ms == nil { + var ret int32 + return ret + } + return *o.ComputeLatency10To50ms +} + +// GetComputeLatency10To50msOk returns a tuple with the ComputeLatency10To50ms field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorValues) GetComputeLatency10To50msOk() (*int32, bool) { + if o == nil || o.ComputeLatency10To50ms == nil { + return nil, false + } + return o.ComputeLatency10To50ms, true +} + +// HasComputeLatency10To50ms returns a boolean if a field has been set. +func (o *OriginInspectorValues) HasComputeLatency10To50ms() bool { + if o != nil && o.ComputeLatency10To50ms != nil { + return true + } + + return false +} + +// SetComputeLatency10To50ms gets a reference to the given int32 and assigns it to the ComputeLatency10To50ms field. +func (o *OriginInspectorValues) SetComputeLatency10To50ms(v int32) { + o.ComputeLatency10To50ms = &v +} + +// GetComputeLatency50To100ms returns the ComputeLatency50To100ms field value if set, zero value otherwise. +func (o *OriginInspectorValues) GetComputeLatency50To100ms() int32 { + if o == nil || o.ComputeLatency50To100ms == nil { + var ret int32 + return ret + } + return *o.ComputeLatency50To100ms +} + +// GetComputeLatency50To100msOk returns a tuple with the ComputeLatency50To100ms field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorValues) GetComputeLatency50To100msOk() (*int32, bool) { + if o == nil || o.ComputeLatency50To100ms == nil { + return nil, false + } + return o.ComputeLatency50To100ms, true +} + +// HasComputeLatency50To100ms returns a boolean if a field has been set. +func (o *OriginInspectorValues) HasComputeLatency50To100ms() bool { + if o != nil && o.ComputeLatency50To100ms != nil { + return true + } + + return false +} + +// SetComputeLatency50To100ms gets a reference to the given int32 and assigns it to the ComputeLatency50To100ms field. +func (o *OriginInspectorValues) SetComputeLatency50To100ms(v int32) { + o.ComputeLatency50To100ms = &v +} + +// GetComputeLatency100To250ms returns the ComputeLatency100To250ms field value if set, zero value otherwise. +func (o *OriginInspectorValues) GetComputeLatency100To250ms() int32 { + if o == nil || o.ComputeLatency100To250ms == nil { + var ret int32 + return ret + } + return *o.ComputeLatency100To250ms +} + +// GetComputeLatency100To250msOk returns a tuple with the ComputeLatency100To250ms field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorValues) GetComputeLatency100To250msOk() (*int32, bool) { + if o == nil || o.ComputeLatency100To250ms == nil { + return nil, false + } + return o.ComputeLatency100To250ms, true +} + +// HasComputeLatency100To250ms returns a boolean if a field has been set. +func (o *OriginInspectorValues) HasComputeLatency100To250ms() bool { + if o != nil && o.ComputeLatency100To250ms != nil { + return true + } + + return false +} + +// SetComputeLatency100To250ms gets a reference to the given int32 and assigns it to the ComputeLatency100To250ms field. +func (o *OriginInspectorValues) SetComputeLatency100To250ms(v int32) { + o.ComputeLatency100To250ms = &v +} + +// GetComputeLatency250To500ms returns the ComputeLatency250To500ms field value if set, zero value otherwise. +func (o *OriginInspectorValues) GetComputeLatency250To500ms() int32 { + if o == nil || o.ComputeLatency250To500ms == nil { + var ret int32 + return ret + } + return *o.ComputeLatency250To500ms +} + +// GetComputeLatency250To500msOk returns a tuple with the ComputeLatency250To500ms field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorValues) GetComputeLatency250To500msOk() (*int32, bool) { + if o == nil || o.ComputeLatency250To500ms == nil { + return nil, false + } + return o.ComputeLatency250To500ms, true +} + +// HasComputeLatency250To500ms returns a boolean if a field has been set. +func (o *OriginInspectorValues) HasComputeLatency250To500ms() bool { + if o != nil && o.ComputeLatency250To500ms != nil { + return true + } + + return false +} + +// SetComputeLatency250To500ms gets a reference to the given int32 and assigns it to the ComputeLatency250To500ms field. +func (o *OriginInspectorValues) SetComputeLatency250To500ms(v int32) { + o.ComputeLatency250To500ms = &v +} + +// GetComputeLatency500To1000ms returns the ComputeLatency500To1000ms field value if set, zero value otherwise. +func (o *OriginInspectorValues) GetComputeLatency500To1000ms() int32 { + if o == nil || o.ComputeLatency500To1000ms == nil { + var ret int32 + return ret + } + return *o.ComputeLatency500To1000ms +} + +// GetComputeLatency500To1000msOk returns a tuple with the ComputeLatency500To1000ms field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorValues) GetComputeLatency500To1000msOk() (*int32, bool) { + if o == nil || o.ComputeLatency500To1000ms == nil { + return nil, false + } + return o.ComputeLatency500To1000ms, true +} + +// HasComputeLatency500To1000ms returns a boolean if a field has been set. +func (o *OriginInspectorValues) HasComputeLatency500To1000ms() bool { + if o != nil && o.ComputeLatency500To1000ms != nil { + return true + } + + return false +} + +// SetComputeLatency500To1000ms gets a reference to the given int32 and assigns it to the ComputeLatency500To1000ms field. +func (o *OriginInspectorValues) SetComputeLatency500To1000ms(v int32) { + o.ComputeLatency500To1000ms = &v +} + +// GetComputeLatency1000To5000ms returns the ComputeLatency1000To5000ms field value if set, zero value otherwise. +func (o *OriginInspectorValues) GetComputeLatency1000To5000ms() int32 { + if o == nil || o.ComputeLatency1000To5000ms == nil { + var ret int32 + return ret + } + return *o.ComputeLatency1000To5000ms +} + +// GetComputeLatency1000To5000msOk returns a tuple with the ComputeLatency1000To5000ms field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorValues) GetComputeLatency1000To5000msOk() (*int32, bool) { + if o == nil || o.ComputeLatency1000To5000ms == nil { + return nil, false + } + return o.ComputeLatency1000To5000ms, true +} + +// HasComputeLatency1000To5000ms returns a boolean if a field has been set. +func (o *OriginInspectorValues) HasComputeLatency1000To5000ms() bool { + if o != nil && o.ComputeLatency1000To5000ms != nil { + return true + } + + return false +} + +// SetComputeLatency1000To5000ms gets a reference to the given int32 and assigns it to the ComputeLatency1000To5000ms field. +func (o *OriginInspectorValues) SetComputeLatency1000To5000ms(v int32) { + o.ComputeLatency1000To5000ms = &v +} + +// GetComputeLatency5000To10000ms returns the ComputeLatency5000To10000ms field value if set, zero value otherwise. +func (o *OriginInspectorValues) GetComputeLatency5000To10000ms() int32 { + if o == nil || o.ComputeLatency5000To10000ms == nil { + var ret int32 + return ret + } + return *o.ComputeLatency5000To10000ms +} + +// GetComputeLatency5000To10000msOk returns a tuple with the ComputeLatency5000To10000ms field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorValues) GetComputeLatency5000To10000msOk() (*int32, bool) { + if o == nil || o.ComputeLatency5000To10000ms == nil { + return nil, false + } + return o.ComputeLatency5000To10000ms, true +} + +// HasComputeLatency5000To10000ms returns a boolean if a field has been set. +func (o *OriginInspectorValues) HasComputeLatency5000To10000ms() bool { + if o != nil && o.ComputeLatency5000To10000ms != nil { + return true + } + + return false +} + +// SetComputeLatency5000To10000ms gets a reference to the given int32 and assigns it to the ComputeLatency5000To10000ms field. +func (o *OriginInspectorValues) SetComputeLatency5000To10000ms(v int32) { + o.ComputeLatency5000To10000ms = &v +} + +// GetComputeLatency10000To60000ms returns the ComputeLatency10000To60000ms field value if set, zero value otherwise. +func (o *OriginInspectorValues) GetComputeLatency10000To60000ms() int32 { + if o == nil || o.ComputeLatency10000To60000ms == nil { + var ret int32 + return ret + } + return *o.ComputeLatency10000To60000ms +} + +// GetComputeLatency10000To60000msOk returns a tuple with the ComputeLatency10000To60000ms field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorValues) GetComputeLatency10000To60000msOk() (*int32, bool) { + if o == nil || o.ComputeLatency10000To60000ms == nil { + return nil, false + } + return o.ComputeLatency10000To60000ms, true +} + +// HasComputeLatency10000To60000ms returns a boolean if a field has been set. +func (o *OriginInspectorValues) HasComputeLatency10000To60000ms() bool { + if o != nil && o.ComputeLatency10000To60000ms != nil { + return true + } + + return false +} + +// SetComputeLatency10000To60000ms gets a reference to the given int32 and assigns it to the ComputeLatency10000To60000ms field. +func (o *OriginInspectorValues) SetComputeLatency10000To60000ms(v int32) { + o.ComputeLatency10000To60000ms = &v +} + +// GetComputeLatency60000ms returns the ComputeLatency60000ms field value if set, zero value otherwise. +func (o *OriginInspectorValues) GetComputeLatency60000ms() int32 { + if o == nil || o.ComputeLatency60000ms == nil { + var ret int32 + return ret + } + return *o.ComputeLatency60000ms +} + +// GetComputeLatency60000msOk returns a tuple with the ComputeLatency60000ms field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorValues) GetComputeLatency60000msOk() (*int32, bool) { + if o == nil || o.ComputeLatency60000ms == nil { + return nil, false + } + return o.ComputeLatency60000ms, true +} + +// HasComputeLatency60000ms returns a boolean if a field has been set. +func (o *OriginInspectorValues) HasComputeLatency60000ms() bool { + if o != nil && o.ComputeLatency60000ms != nil { + return true + } + + return false +} + +// SetComputeLatency60000ms gets a reference to the given int32 and assigns it to the ComputeLatency60000ms field. +func (o *OriginInspectorValues) SetComputeLatency60000ms(v int32) { + o.ComputeLatency60000ms = &v +} + +// GetAllResponses returns the AllResponses field value if set, zero value otherwise. +func (o *OriginInspectorValues) GetAllResponses() int32 { + if o == nil || o.AllResponses == nil { + var ret int32 + return ret + } + return *o.AllResponses +} + +// GetAllResponsesOk returns a tuple with the AllResponses field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorValues) GetAllResponsesOk() (*int32, bool) { + if o == nil || o.AllResponses == nil { + return nil, false + } + return o.AllResponses, true +} + +// HasAllResponses returns a boolean if a field has been set. +func (o *OriginInspectorValues) HasAllResponses() bool { + if o != nil && o.AllResponses != nil { + return true + } + + return false +} + +// SetAllResponses gets a reference to the given int32 and assigns it to the AllResponses field. +func (o *OriginInspectorValues) SetAllResponses(v int32) { + o.AllResponses = &v +} + +// GetAllRespHeaderBytes returns the AllRespHeaderBytes field value if set, zero value otherwise. +func (o *OriginInspectorValues) GetAllRespHeaderBytes() int32 { + if o == nil || o.AllRespHeaderBytes == nil { + var ret int32 + return ret + } + return *o.AllRespHeaderBytes +} + +// GetAllRespHeaderBytesOk returns a tuple with the AllRespHeaderBytes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorValues) GetAllRespHeaderBytesOk() (*int32, bool) { + if o == nil || o.AllRespHeaderBytes == nil { + return nil, false + } + return o.AllRespHeaderBytes, true +} + +// HasAllRespHeaderBytes returns a boolean if a field has been set. +func (o *OriginInspectorValues) HasAllRespHeaderBytes() bool { + if o != nil && o.AllRespHeaderBytes != nil { + return true + } + + return false +} + +// SetAllRespHeaderBytes gets a reference to the given int32 and assigns it to the AllRespHeaderBytes field. +func (o *OriginInspectorValues) SetAllRespHeaderBytes(v int32) { + o.AllRespHeaderBytes = &v +} + +// GetAllRespBodyBytes returns the AllRespBodyBytes field value if set, zero value otherwise. +func (o *OriginInspectorValues) GetAllRespBodyBytes() int32 { + if o == nil || o.AllRespBodyBytes == nil { + var ret int32 + return ret + } + return *o.AllRespBodyBytes +} + +// GetAllRespBodyBytesOk returns a tuple with the AllRespBodyBytes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorValues) GetAllRespBodyBytesOk() (*int32, bool) { + if o == nil || o.AllRespBodyBytes == nil { + return nil, false + } + return o.AllRespBodyBytes, true +} + +// HasAllRespBodyBytes returns a boolean if a field has been set. +func (o *OriginInspectorValues) HasAllRespBodyBytes() bool { + if o != nil && o.AllRespBodyBytes != nil { + return true + } + + return false +} + +// SetAllRespBodyBytes gets a reference to the given int32 and assigns it to the AllRespBodyBytes field. +func (o *OriginInspectorValues) SetAllRespBodyBytes(v int32) { + o.AllRespBodyBytes = &v +} + +// GetAllStatus1xx returns the AllStatus1xx field value if set, zero value otherwise. +func (o *OriginInspectorValues) GetAllStatus1xx() int32 { + if o == nil || o.AllStatus1xx == nil { + var ret int32 + return ret + } + return *o.AllStatus1xx +} + +// GetAllStatus1xxOk returns a tuple with the AllStatus1xx field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorValues) GetAllStatus1xxOk() (*int32, bool) { + if o == nil || o.AllStatus1xx == nil { + return nil, false + } + return o.AllStatus1xx, true +} + +// HasAllStatus1xx returns a boolean if a field has been set. +func (o *OriginInspectorValues) HasAllStatus1xx() bool { + if o != nil && o.AllStatus1xx != nil { + return true + } + + return false +} + +// SetAllStatus1xx gets a reference to the given int32 and assigns it to the AllStatus1xx field. +func (o *OriginInspectorValues) SetAllStatus1xx(v int32) { + o.AllStatus1xx = &v +} + +// GetAllStatus2xx returns the AllStatus2xx field value if set, zero value otherwise. +func (o *OriginInspectorValues) GetAllStatus2xx() int32 { + if o == nil || o.AllStatus2xx == nil { + var ret int32 + return ret + } + return *o.AllStatus2xx +} + +// GetAllStatus2xxOk returns a tuple with the AllStatus2xx field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorValues) GetAllStatus2xxOk() (*int32, bool) { + if o == nil || o.AllStatus2xx == nil { + return nil, false + } + return o.AllStatus2xx, true +} + +// HasAllStatus2xx returns a boolean if a field has been set. +func (o *OriginInspectorValues) HasAllStatus2xx() bool { + if o != nil && o.AllStatus2xx != nil { + return true + } + + return false +} + +// SetAllStatus2xx gets a reference to the given int32 and assigns it to the AllStatus2xx field. +func (o *OriginInspectorValues) SetAllStatus2xx(v int32) { + o.AllStatus2xx = &v +} + +// GetAllStatus3xx returns the AllStatus3xx field value if set, zero value otherwise. +func (o *OriginInspectorValues) GetAllStatus3xx() int32 { + if o == nil || o.AllStatus3xx == nil { + var ret int32 + return ret + } + return *o.AllStatus3xx +} + +// GetAllStatus3xxOk returns a tuple with the AllStatus3xx field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorValues) GetAllStatus3xxOk() (*int32, bool) { + if o == nil || o.AllStatus3xx == nil { + return nil, false + } + return o.AllStatus3xx, true +} + +// HasAllStatus3xx returns a boolean if a field has been set. +func (o *OriginInspectorValues) HasAllStatus3xx() bool { + if o != nil && o.AllStatus3xx != nil { + return true + } + + return false +} + +// SetAllStatus3xx gets a reference to the given int32 and assigns it to the AllStatus3xx field. +func (o *OriginInspectorValues) SetAllStatus3xx(v int32) { + o.AllStatus3xx = &v +} + +// GetAllStatus4xx returns the AllStatus4xx field value if set, zero value otherwise. +func (o *OriginInspectorValues) GetAllStatus4xx() int32 { + if o == nil || o.AllStatus4xx == nil { + var ret int32 + return ret + } + return *o.AllStatus4xx +} + +// GetAllStatus4xxOk returns a tuple with the AllStatus4xx field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorValues) GetAllStatus4xxOk() (*int32, bool) { + if o == nil || o.AllStatus4xx == nil { + return nil, false + } + return o.AllStatus4xx, true +} + +// HasAllStatus4xx returns a boolean if a field has been set. +func (o *OriginInspectorValues) HasAllStatus4xx() bool { + if o != nil && o.AllStatus4xx != nil { + return true + } + + return false +} + +// SetAllStatus4xx gets a reference to the given int32 and assigns it to the AllStatus4xx field. +func (o *OriginInspectorValues) SetAllStatus4xx(v int32) { + o.AllStatus4xx = &v +} + +// GetAllStatus5xx returns the AllStatus5xx field value if set, zero value otherwise. +func (o *OriginInspectorValues) GetAllStatus5xx() int32 { + if o == nil || o.AllStatus5xx == nil { + var ret int32 + return ret + } + return *o.AllStatus5xx +} + +// GetAllStatus5xxOk returns a tuple with the AllStatus5xx field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorValues) GetAllStatus5xxOk() (*int32, bool) { + if o == nil || o.AllStatus5xx == nil { + return nil, false + } + return o.AllStatus5xx, true +} + +// HasAllStatus5xx returns a boolean if a field has been set. +func (o *OriginInspectorValues) HasAllStatus5xx() bool { + if o != nil && o.AllStatus5xx != nil { + return true + } + + return false +} + +// SetAllStatus5xx gets a reference to the given int32 and assigns it to the AllStatus5xx field. +func (o *OriginInspectorValues) SetAllStatus5xx(v int32) { + o.AllStatus5xx = &v +} + +// GetAllStatus200 returns the AllStatus200 field value if set, zero value otherwise. +func (o *OriginInspectorValues) GetAllStatus200() int32 { + if o == nil || o.AllStatus200 == nil { + var ret int32 + return ret + } + return *o.AllStatus200 +} + +// GetAllStatus200Ok returns a tuple with the AllStatus200 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorValues) GetAllStatus200Ok() (*int32, bool) { + if o == nil || o.AllStatus200 == nil { + return nil, false + } + return o.AllStatus200, true +} + +// HasAllStatus200 returns a boolean if a field has been set. +func (o *OriginInspectorValues) HasAllStatus200() bool { + if o != nil && o.AllStatus200 != nil { + return true + } + + return false +} + +// SetAllStatus200 gets a reference to the given int32 and assigns it to the AllStatus200 field. +func (o *OriginInspectorValues) SetAllStatus200(v int32) { + o.AllStatus200 = &v +} + +// GetAllStatus204 returns the AllStatus204 field value if set, zero value otherwise. +func (o *OriginInspectorValues) GetAllStatus204() int32 { + if o == nil || o.AllStatus204 == nil { + var ret int32 + return ret + } + return *o.AllStatus204 +} + +// GetAllStatus204Ok returns a tuple with the AllStatus204 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorValues) GetAllStatus204Ok() (*int32, bool) { + if o == nil || o.AllStatus204 == nil { + return nil, false + } + return o.AllStatus204, true +} + +// HasAllStatus204 returns a boolean if a field has been set. +func (o *OriginInspectorValues) HasAllStatus204() bool { + if o != nil && o.AllStatus204 != nil { + return true + } + + return false +} + +// SetAllStatus204 gets a reference to the given int32 and assigns it to the AllStatus204 field. +func (o *OriginInspectorValues) SetAllStatus204(v int32) { + o.AllStatus204 = &v +} + +// GetAllStatus206 returns the AllStatus206 field value if set, zero value otherwise. +func (o *OriginInspectorValues) GetAllStatus206() int32 { + if o == nil || o.AllStatus206 == nil { + var ret int32 + return ret + } + return *o.AllStatus206 +} + +// GetAllStatus206Ok returns a tuple with the AllStatus206 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorValues) GetAllStatus206Ok() (*int32, bool) { + if o == nil || o.AllStatus206 == nil { + return nil, false + } + return o.AllStatus206, true +} + +// HasAllStatus206 returns a boolean if a field has been set. +func (o *OriginInspectorValues) HasAllStatus206() bool { + if o != nil && o.AllStatus206 != nil { + return true + } + + return false +} + +// SetAllStatus206 gets a reference to the given int32 and assigns it to the AllStatus206 field. +func (o *OriginInspectorValues) SetAllStatus206(v int32) { + o.AllStatus206 = &v +} + +// GetAllStatus301 returns the AllStatus301 field value if set, zero value otherwise. +func (o *OriginInspectorValues) GetAllStatus301() int32 { + if o == nil || o.AllStatus301 == nil { + var ret int32 + return ret + } + return *o.AllStatus301 +} + +// GetAllStatus301Ok returns a tuple with the AllStatus301 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorValues) GetAllStatus301Ok() (*int32, bool) { + if o == nil || o.AllStatus301 == nil { + return nil, false + } + return o.AllStatus301, true +} + +// HasAllStatus301 returns a boolean if a field has been set. +func (o *OriginInspectorValues) HasAllStatus301() bool { + if o != nil && o.AllStatus301 != nil { + return true + } + + return false +} + +// SetAllStatus301 gets a reference to the given int32 and assigns it to the AllStatus301 field. +func (o *OriginInspectorValues) SetAllStatus301(v int32) { + o.AllStatus301 = &v +} + +// GetAllStatus302 returns the AllStatus302 field value if set, zero value otherwise. +func (o *OriginInspectorValues) GetAllStatus302() int32 { + if o == nil || o.AllStatus302 == nil { + var ret int32 + return ret + } + return *o.AllStatus302 +} + +// GetAllStatus302Ok returns a tuple with the AllStatus302 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorValues) GetAllStatus302Ok() (*int32, bool) { + if o == nil || o.AllStatus302 == nil { + return nil, false + } + return o.AllStatus302, true +} + +// HasAllStatus302 returns a boolean if a field has been set. +func (o *OriginInspectorValues) HasAllStatus302() bool { + if o != nil && o.AllStatus302 != nil { + return true + } + + return false +} + +// SetAllStatus302 gets a reference to the given int32 and assigns it to the AllStatus302 field. +func (o *OriginInspectorValues) SetAllStatus302(v int32) { + o.AllStatus302 = &v +} + +// GetAllStatus304 returns the AllStatus304 field value if set, zero value otherwise. +func (o *OriginInspectorValues) GetAllStatus304() int32 { + if o == nil || o.AllStatus304 == nil { + var ret int32 + return ret + } + return *o.AllStatus304 +} + +// GetAllStatus304Ok returns a tuple with the AllStatus304 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorValues) GetAllStatus304Ok() (*int32, bool) { + if o == nil || o.AllStatus304 == nil { + return nil, false + } + return o.AllStatus304, true +} + +// HasAllStatus304 returns a boolean if a field has been set. +func (o *OriginInspectorValues) HasAllStatus304() bool { + if o != nil && o.AllStatus304 != nil { + return true + } + + return false +} + +// SetAllStatus304 gets a reference to the given int32 and assigns it to the AllStatus304 field. +func (o *OriginInspectorValues) SetAllStatus304(v int32) { + o.AllStatus304 = &v +} + +// GetAllStatus400 returns the AllStatus400 field value if set, zero value otherwise. +func (o *OriginInspectorValues) GetAllStatus400() int32 { + if o == nil || o.AllStatus400 == nil { + var ret int32 + return ret + } + return *o.AllStatus400 +} + +// GetAllStatus400Ok returns a tuple with the AllStatus400 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorValues) GetAllStatus400Ok() (*int32, bool) { + if o == nil || o.AllStatus400 == nil { + return nil, false + } + return o.AllStatus400, true +} + +// HasAllStatus400 returns a boolean if a field has been set. +func (o *OriginInspectorValues) HasAllStatus400() bool { + if o != nil && o.AllStatus400 != nil { + return true + } + + return false +} + +// SetAllStatus400 gets a reference to the given int32 and assigns it to the AllStatus400 field. +func (o *OriginInspectorValues) SetAllStatus400(v int32) { + o.AllStatus400 = &v +} + +// GetAllStatus401 returns the AllStatus401 field value if set, zero value otherwise. +func (o *OriginInspectorValues) GetAllStatus401() int32 { + if o == nil || o.AllStatus401 == nil { + var ret int32 + return ret + } + return *o.AllStatus401 +} + +// GetAllStatus401Ok returns a tuple with the AllStatus401 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorValues) GetAllStatus401Ok() (*int32, bool) { + if o == nil || o.AllStatus401 == nil { + return nil, false + } + return o.AllStatus401, true +} + +// HasAllStatus401 returns a boolean if a field has been set. +func (o *OriginInspectorValues) HasAllStatus401() bool { + if o != nil && o.AllStatus401 != nil { + return true + } + + return false +} + +// SetAllStatus401 gets a reference to the given int32 and assigns it to the AllStatus401 field. +func (o *OriginInspectorValues) SetAllStatus401(v int32) { + o.AllStatus401 = &v +} + +// GetAllStatus403 returns the AllStatus403 field value if set, zero value otherwise. +func (o *OriginInspectorValues) GetAllStatus403() int32 { + if o == nil || o.AllStatus403 == nil { + var ret int32 + return ret + } + return *o.AllStatus403 +} + +// GetAllStatus403Ok returns a tuple with the AllStatus403 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorValues) GetAllStatus403Ok() (*int32, bool) { + if o == nil || o.AllStatus403 == nil { + return nil, false + } + return o.AllStatus403, true +} + +// HasAllStatus403 returns a boolean if a field has been set. +func (o *OriginInspectorValues) HasAllStatus403() bool { + if o != nil && o.AllStatus403 != nil { + return true + } + + return false +} + +// SetAllStatus403 gets a reference to the given int32 and assigns it to the AllStatus403 field. +func (o *OriginInspectorValues) SetAllStatus403(v int32) { + o.AllStatus403 = &v +} + +// GetAllStatus404 returns the AllStatus404 field value if set, zero value otherwise. +func (o *OriginInspectorValues) GetAllStatus404() int32 { + if o == nil || o.AllStatus404 == nil { + var ret int32 + return ret + } + return *o.AllStatus404 +} + +// GetAllStatus404Ok returns a tuple with the AllStatus404 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorValues) GetAllStatus404Ok() (*int32, bool) { + if o == nil || o.AllStatus404 == nil { + return nil, false + } + return o.AllStatus404, true +} + +// HasAllStatus404 returns a boolean if a field has been set. +func (o *OriginInspectorValues) HasAllStatus404() bool { + if o != nil && o.AllStatus404 != nil { + return true + } + + return false +} + +// SetAllStatus404 gets a reference to the given int32 and assigns it to the AllStatus404 field. +func (o *OriginInspectorValues) SetAllStatus404(v int32) { + o.AllStatus404 = &v +} + +// GetAllStatus416 returns the AllStatus416 field value if set, zero value otherwise. +func (o *OriginInspectorValues) GetAllStatus416() int32 { + if o == nil || o.AllStatus416 == nil { + var ret int32 + return ret + } + return *o.AllStatus416 +} + +// GetAllStatus416Ok returns a tuple with the AllStatus416 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorValues) GetAllStatus416Ok() (*int32, bool) { + if o == nil || o.AllStatus416 == nil { + return nil, false + } + return o.AllStatus416, true +} + +// HasAllStatus416 returns a boolean if a field has been set. +func (o *OriginInspectorValues) HasAllStatus416() bool { + if o != nil && o.AllStatus416 != nil { + return true + } + + return false +} + +// SetAllStatus416 gets a reference to the given int32 and assigns it to the AllStatus416 field. +func (o *OriginInspectorValues) SetAllStatus416(v int32) { + o.AllStatus416 = &v +} + +// GetAllStatus429 returns the AllStatus429 field value if set, zero value otherwise. +func (o *OriginInspectorValues) GetAllStatus429() int32 { + if o == nil || o.AllStatus429 == nil { + var ret int32 + return ret + } + return *o.AllStatus429 +} + +// GetAllStatus429Ok returns a tuple with the AllStatus429 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorValues) GetAllStatus429Ok() (*int32, bool) { + if o == nil || o.AllStatus429 == nil { + return nil, false + } + return o.AllStatus429, true +} + +// HasAllStatus429 returns a boolean if a field has been set. +func (o *OriginInspectorValues) HasAllStatus429() bool { + if o != nil && o.AllStatus429 != nil { + return true + } + + return false +} + +// SetAllStatus429 gets a reference to the given int32 and assigns it to the AllStatus429 field. +func (o *OriginInspectorValues) SetAllStatus429(v int32) { + o.AllStatus429 = &v +} + +// GetAllStatus500 returns the AllStatus500 field value if set, zero value otherwise. +func (o *OriginInspectorValues) GetAllStatus500() int32 { + if o == nil || o.AllStatus500 == nil { + var ret int32 + return ret + } + return *o.AllStatus500 +} + +// GetAllStatus500Ok returns a tuple with the AllStatus500 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorValues) GetAllStatus500Ok() (*int32, bool) { + if o == nil || o.AllStatus500 == nil { + return nil, false + } + return o.AllStatus500, true +} + +// HasAllStatus500 returns a boolean if a field has been set. +func (o *OriginInspectorValues) HasAllStatus500() bool { + if o != nil && o.AllStatus500 != nil { + return true + } + + return false +} + +// SetAllStatus500 gets a reference to the given int32 and assigns it to the AllStatus500 field. +func (o *OriginInspectorValues) SetAllStatus500(v int32) { + o.AllStatus500 = &v +} + +// GetAllStatus501 returns the AllStatus501 field value if set, zero value otherwise. +func (o *OriginInspectorValues) GetAllStatus501() int32 { + if o == nil || o.AllStatus501 == nil { + var ret int32 + return ret + } + return *o.AllStatus501 +} + +// GetAllStatus501Ok returns a tuple with the AllStatus501 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorValues) GetAllStatus501Ok() (*int32, bool) { + if o == nil || o.AllStatus501 == nil { + return nil, false + } + return o.AllStatus501, true +} + +// HasAllStatus501 returns a boolean if a field has been set. +func (o *OriginInspectorValues) HasAllStatus501() bool { + if o != nil && o.AllStatus501 != nil { + return true + } + + return false +} + +// SetAllStatus501 gets a reference to the given int32 and assigns it to the AllStatus501 field. +func (o *OriginInspectorValues) SetAllStatus501(v int32) { + o.AllStatus501 = &v +} + +// GetAllStatus502 returns the AllStatus502 field value if set, zero value otherwise. +func (o *OriginInspectorValues) GetAllStatus502() int32 { + if o == nil || o.AllStatus502 == nil { + var ret int32 + return ret + } + return *o.AllStatus502 +} + +// GetAllStatus502Ok returns a tuple with the AllStatus502 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorValues) GetAllStatus502Ok() (*int32, bool) { + if o == nil || o.AllStatus502 == nil { + return nil, false + } + return o.AllStatus502, true +} + +// HasAllStatus502 returns a boolean if a field has been set. +func (o *OriginInspectorValues) HasAllStatus502() bool { + if o != nil && o.AllStatus502 != nil { + return true + } + + return false +} + +// SetAllStatus502 gets a reference to the given int32 and assigns it to the AllStatus502 field. +func (o *OriginInspectorValues) SetAllStatus502(v int32) { + o.AllStatus502 = &v +} + +// GetAllStatus503 returns the AllStatus503 field value if set, zero value otherwise. +func (o *OriginInspectorValues) GetAllStatus503() int32 { + if o == nil || o.AllStatus503 == nil { + var ret int32 + return ret + } + return *o.AllStatus503 +} + +// GetAllStatus503Ok returns a tuple with the AllStatus503 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorValues) GetAllStatus503Ok() (*int32, bool) { + if o == nil || o.AllStatus503 == nil { + return nil, false + } + return o.AllStatus503, true +} + +// HasAllStatus503 returns a boolean if a field has been set. +func (o *OriginInspectorValues) HasAllStatus503() bool { + if o != nil && o.AllStatus503 != nil { + return true + } + + return false +} + +// SetAllStatus503 gets a reference to the given int32 and assigns it to the AllStatus503 field. +func (o *OriginInspectorValues) SetAllStatus503(v int32) { + o.AllStatus503 = &v +} + +// GetAllStatus504 returns the AllStatus504 field value if set, zero value otherwise. +func (o *OriginInspectorValues) GetAllStatus504() int32 { + if o == nil || o.AllStatus504 == nil { + var ret int32 + return ret + } + return *o.AllStatus504 +} + +// GetAllStatus504Ok returns a tuple with the AllStatus504 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorValues) GetAllStatus504Ok() (*int32, bool) { + if o == nil || o.AllStatus504 == nil { + return nil, false + } + return o.AllStatus504, true +} + +// HasAllStatus504 returns a boolean if a field has been set. +func (o *OriginInspectorValues) HasAllStatus504() bool { + if o != nil && o.AllStatus504 != nil { + return true + } + + return false +} + +// SetAllStatus504 gets a reference to the given int32 and assigns it to the AllStatus504 field. +func (o *OriginInspectorValues) SetAllStatus504(v int32) { + o.AllStatus504 = &v +} + +// GetAllStatus505 returns the AllStatus505 field value if set, zero value otherwise. +func (o *OriginInspectorValues) GetAllStatus505() int32 { + if o == nil || o.AllStatus505 == nil { + var ret int32 + return ret + } + return *o.AllStatus505 +} + +// GetAllStatus505Ok returns a tuple with the AllStatus505 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorValues) GetAllStatus505Ok() (*int32, bool) { + if o == nil || o.AllStatus505 == nil { + return nil, false + } + return o.AllStatus505, true +} + +// HasAllStatus505 returns a boolean if a field has been set. +func (o *OriginInspectorValues) HasAllStatus505() bool { + if o != nil && o.AllStatus505 != nil { + return true + } + + return false +} + +// SetAllStatus505 gets a reference to the given int32 and assigns it to the AllStatus505 field. +func (o *OriginInspectorValues) SetAllStatus505(v int32) { + o.AllStatus505 = &v +} + +// GetAllLatency0To1ms returns the AllLatency0To1ms field value if set, zero value otherwise. +func (o *OriginInspectorValues) GetAllLatency0To1ms() int32 { + if o == nil || o.AllLatency0To1ms == nil { + var ret int32 + return ret + } + return *o.AllLatency0To1ms +} + +// GetAllLatency0To1msOk returns a tuple with the AllLatency0To1ms field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorValues) GetAllLatency0To1msOk() (*int32, bool) { + if o == nil || o.AllLatency0To1ms == nil { + return nil, false + } + return o.AllLatency0To1ms, true +} + +// HasAllLatency0To1ms returns a boolean if a field has been set. +func (o *OriginInspectorValues) HasAllLatency0To1ms() bool { + if o != nil && o.AllLatency0To1ms != nil { + return true + } + + return false +} + +// SetAllLatency0To1ms gets a reference to the given int32 and assigns it to the AllLatency0To1ms field. +func (o *OriginInspectorValues) SetAllLatency0To1ms(v int32) { + o.AllLatency0To1ms = &v +} + +// GetAllLatency1To5ms returns the AllLatency1To5ms field value if set, zero value otherwise. +func (o *OriginInspectorValues) GetAllLatency1To5ms() int32 { + if o == nil || o.AllLatency1To5ms == nil { + var ret int32 + return ret + } + return *o.AllLatency1To5ms +} + +// GetAllLatency1To5msOk returns a tuple with the AllLatency1To5ms field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorValues) GetAllLatency1To5msOk() (*int32, bool) { + if o == nil || o.AllLatency1To5ms == nil { + return nil, false + } + return o.AllLatency1To5ms, true +} + +// HasAllLatency1To5ms returns a boolean if a field has been set. +func (o *OriginInspectorValues) HasAllLatency1To5ms() bool { + if o != nil && o.AllLatency1To5ms != nil { + return true + } + + return false +} + +// SetAllLatency1To5ms gets a reference to the given int32 and assigns it to the AllLatency1To5ms field. +func (o *OriginInspectorValues) SetAllLatency1To5ms(v int32) { + o.AllLatency1To5ms = &v +} + +// GetAllLatency5To10ms returns the AllLatency5To10ms field value if set, zero value otherwise. +func (o *OriginInspectorValues) GetAllLatency5To10ms() int32 { + if o == nil || o.AllLatency5To10ms == nil { + var ret int32 + return ret + } + return *o.AllLatency5To10ms +} + +// GetAllLatency5To10msOk returns a tuple with the AllLatency5To10ms field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorValues) GetAllLatency5To10msOk() (*int32, bool) { + if o == nil || o.AllLatency5To10ms == nil { + return nil, false + } + return o.AllLatency5To10ms, true +} + +// HasAllLatency5To10ms returns a boolean if a field has been set. +func (o *OriginInspectorValues) HasAllLatency5To10ms() bool { + if o != nil && o.AllLatency5To10ms != nil { + return true + } + + return false +} + +// SetAllLatency5To10ms gets a reference to the given int32 and assigns it to the AllLatency5To10ms field. +func (o *OriginInspectorValues) SetAllLatency5To10ms(v int32) { + o.AllLatency5To10ms = &v +} + +// GetAllLatency10To50ms returns the AllLatency10To50ms field value if set, zero value otherwise. +func (o *OriginInspectorValues) GetAllLatency10To50ms() int32 { + if o == nil || o.AllLatency10To50ms == nil { + var ret int32 + return ret + } + return *o.AllLatency10To50ms +} + +// GetAllLatency10To50msOk returns a tuple with the AllLatency10To50ms field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorValues) GetAllLatency10To50msOk() (*int32, bool) { + if o == nil || o.AllLatency10To50ms == nil { + return nil, false + } + return o.AllLatency10To50ms, true +} + +// HasAllLatency10To50ms returns a boolean if a field has been set. +func (o *OriginInspectorValues) HasAllLatency10To50ms() bool { + if o != nil && o.AllLatency10To50ms != nil { + return true + } + + return false +} + +// SetAllLatency10To50ms gets a reference to the given int32 and assigns it to the AllLatency10To50ms field. +func (o *OriginInspectorValues) SetAllLatency10To50ms(v int32) { + o.AllLatency10To50ms = &v +} + +// GetAllLatency50To100ms returns the AllLatency50To100ms field value if set, zero value otherwise. +func (o *OriginInspectorValues) GetAllLatency50To100ms() int32 { + if o == nil || o.AllLatency50To100ms == nil { + var ret int32 + return ret + } + return *o.AllLatency50To100ms +} + +// GetAllLatency50To100msOk returns a tuple with the AllLatency50To100ms field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorValues) GetAllLatency50To100msOk() (*int32, bool) { + if o == nil || o.AllLatency50To100ms == nil { + return nil, false + } + return o.AllLatency50To100ms, true +} + +// HasAllLatency50To100ms returns a boolean if a field has been set. +func (o *OriginInspectorValues) HasAllLatency50To100ms() bool { + if o != nil && o.AllLatency50To100ms != nil { + return true + } + + return false +} + +// SetAllLatency50To100ms gets a reference to the given int32 and assigns it to the AllLatency50To100ms field. +func (o *OriginInspectorValues) SetAllLatency50To100ms(v int32) { + o.AllLatency50To100ms = &v +} + +// GetAllLatency100To250ms returns the AllLatency100To250ms field value if set, zero value otherwise. +func (o *OriginInspectorValues) GetAllLatency100To250ms() int32 { + if o == nil || o.AllLatency100To250ms == nil { + var ret int32 + return ret + } + return *o.AllLatency100To250ms +} + +// GetAllLatency100To250msOk returns a tuple with the AllLatency100To250ms field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorValues) GetAllLatency100To250msOk() (*int32, bool) { + if o == nil || o.AllLatency100To250ms == nil { + return nil, false + } + return o.AllLatency100To250ms, true +} + +// HasAllLatency100To250ms returns a boolean if a field has been set. +func (o *OriginInspectorValues) HasAllLatency100To250ms() bool { + if o != nil && o.AllLatency100To250ms != nil { + return true + } + + return false +} + +// SetAllLatency100To250ms gets a reference to the given int32 and assigns it to the AllLatency100To250ms field. +func (o *OriginInspectorValues) SetAllLatency100To250ms(v int32) { + o.AllLatency100To250ms = &v +} + +// GetAllLatency250To500ms returns the AllLatency250To500ms field value if set, zero value otherwise. +func (o *OriginInspectorValues) GetAllLatency250To500ms() int32 { + if o == nil || o.AllLatency250To500ms == nil { + var ret int32 + return ret + } + return *o.AllLatency250To500ms +} + +// GetAllLatency250To500msOk returns a tuple with the AllLatency250To500ms field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorValues) GetAllLatency250To500msOk() (*int32, bool) { + if o == nil || o.AllLatency250To500ms == nil { + return nil, false + } + return o.AllLatency250To500ms, true +} + +// HasAllLatency250To500ms returns a boolean if a field has been set. +func (o *OriginInspectorValues) HasAllLatency250To500ms() bool { + if o != nil && o.AllLatency250To500ms != nil { + return true + } + + return false +} + +// SetAllLatency250To500ms gets a reference to the given int32 and assigns it to the AllLatency250To500ms field. +func (o *OriginInspectorValues) SetAllLatency250To500ms(v int32) { + o.AllLatency250To500ms = &v +} + +// GetAllLatency500To1000ms returns the AllLatency500To1000ms field value if set, zero value otherwise. +func (o *OriginInspectorValues) GetAllLatency500To1000ms() int32 { + if o == nil || o.AllLatency500To1000ms == nil { + var ret int32 + return ret + } + return *o.AllLatency500To1000ms +} + +// GetAllLatency500To1000msOk returns a tuple with the AllLatency500To1000ms field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorValues) GetAllLatency500To1000msOk() (*int32, bool) { + if o == nil || o.AllLatency500To1000ms == nil { + return nil, false + } + return o.AllLatency500To1000ms, true +} + +// HasAllLatency500To1000ms returns a boolean if a field has been set. +func (o *OriginInspectorValues) HasAllLatency500To1000ms() bool { + if o != nil && o.AllLatency500To1000ms != nil { + return true + } + + return false +} + +// SetAllLatency500To1000ms gets a reference to the given int32 and assigns it to the AllLatency500To1000ms field. +func (o *OriginInspectorValues) SetAllLatency500To1000ms(v int32) { + o.AllLatency500To1000ms = &v +} + +// GetAllLatency1000To5000ms returns the AllLatency1000To5000ms field value if set, zero value otherwise. +func (o *OriginInspectorValues) GetAllLatency1000To5000ms() int32 { + if o == nil || o.AllLatency1000To5000ms == nil { + var ret int32 + return ret + } + return *o.AllLatency1000To5000ms +} + +// GetAllLatency1000To5000msOk returns a tuple with the AllLatency1000To5000ms field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorValues) GetAllLatency1000To5000msOk() (*int32, bool) { + if o == nil || o.AllLatency1000To5000ms == nil { + return nil, false + } + return o.AllLatency1000To5000ms, true +} + +// HasAllLatency1000To5000ms returns a boolean if a field has been set. +func (o *OriginInspectorValues) HasAllLatency1000To5000ms() bool { + if o != nil && o.AllLatency1000To5000ms != nil { + return true + } + + return false +} + +// SetAllLatency1000To5000ms gets a reference to the given int32 and assigns it to the AllLatency1000To5000ms field. +func (o *OriginInspectorValues) SetAllLatency1000To5000ms(v int32) { + o.AllLatency1000To5000ms = &v +} + +// GetAllLatency5000To10000ms returns the AllLatency5000To10000ms field value if set, zero value otherwise. +func (o *OriginInspectorValues) GetAllLatency5000To10000ms() int32 { + if o == nil || o.AllLatency5000To10000ms == nil { + var ret int32 + return ret + } + return *o.AllLatency5000To10000ms +} + +// GetAllLatency5000To10000msOk returns a tuple with the AllLatency5000To10000ms field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorValues) GetAllLatency5000To10000msOk() (*int32, bool) { + if o == nil || o.AllLatency5000To10000ms == nil { + return nil, false + } + return o.AllLatency5000To10000ms, true +} + +// HasAllLatency5000To10000ms returns a boolean if a field has been set. +func (o *OriginInspectorValues) HasAllLatency5000To10000ms() bool { + if o != nil && o.AllLatency5000To10000ms != nil { + return true + } + + return false +} + +// SetAllLatency5000To10000ms gets a reference to the given int32 and assigns it to the AllLatency5000To10000ms field. +func (o *OriginInspectorValues) SetAllLatency5000To10000ms(v int32) { + o.AllLatency5000To10000ms = &v +} + +// GetAllLatency10000To60000ms returns the AllLatency10000To60000ms field value if set, zero value otherwise. +func (o *OriginInspectorValues) GetAllLatency10000To60000ms() int32 { + if o == nil || o.AllLatency10000To60000ms == nil { + var ret int32 + return ret + } + return *o.AllLatency10000To60000ms +} + +// GetAllLatency10000To60000msOk returns a tuple with the AllLatency10000To60000ms field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorValues) GetAllLatency10000To60000msOk() (*int32, bool) { + if o == nil || o.AllLatency10000To60000ms == nil { + return nil, false + } + return o.AllLatency10000To60000ms, true +} + +// HasAllLatency10000To60000ms returns a boolean if a field has been set. +func (o *OriginInspectorValues) HasAllLatency10000To60000ms() bool { + if o != nil && o.AllLatency10000To60000ms != nil { + return true + } + + return false +} + +// SetAllLatency10000To60000ms gets a reference to the given int32 and assigns it to the AllLatency10000To60000ms field. +func (o *OriginInspectorValues) SetAllLatency10000To60000ms(v int32) { + o.AllLatency10000To60000ms = &v +} + +// GetAllLatency60000ms returns the AllLatency60000ms field value if set, zero value otherwise. +func (o *OriginInspectorValues) GetAllLatency60000ms() int32 { + if o == nil || o.AllLatency60000ms == nil { + var ret int32 + return ret + } + return *o.AllLatency60000ms +} + +// GetAllLatency60000msOk returns a tuple with the AllLatency60000ms field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OriginInspectorValues) GetAllLatency60000msOk() (*int32, bool) { + if o == nil || o.AllLatency60000ms == nil { + return nil, false + } + return o.AllLatency60000ms, true +} + +// HasAllLatency60000ms returns a boolean if a field has been set. +func (o *OriginInspectorValues) HasAllLatency60000ms() bool { + if o != nil && o.AllLatency60000ms != nil { + return true + } + + return false +} + +// SetAllLatency60000ms gets a reference to the given int32 and assigns it to the AllLatency60000ms field. +func (o *OriginInspectorValues) SetAllLatency60000ms(v int32) { + o.AllLatency60000ms = &v +} + +// MarshalJSON implements the json.Marshaler interface. +// Marshaler is the interface implemented by types that can marshal themselves into valid JSON. +func (o OriginInspectorValues) MarshalJSON() ([]byte, error) { + toSerialize := map[string]any{} + if o.Responses != nil { + toSerialize["responses"] = o.Responses + } + if o.RespHeaderBytes != nil { + toSerialize["resp_header_bytes"] = o.RespHeaderBytes + } + if o.RespBodyBytes != nil { + toSerialize["resp_body_bytes"] = o.RespBodyBytes + } + if o.Status1xx != nil { + toSerialize["status_1xx"] = o.Status1xx + } + if o.Status2xx != nil { + toSerialize["status_2xx"] = o.Status2xx + } + if o.Status3xx != nil { + toSerialize["status_3xx"] = o.Status3xx + } + if o.Status4xx != nil { + toSerialize["status_4xx"] = o.Status4xx + } + if o.Status5xx != nil { + toSerialize["status_5xx"] = o.Status5xx + } + if o.Status200 != nil { + toSerialize["status_200"] = o.Status200 + } + if o.Status204 != nil { + toSerialize["status_204"] = o.Status204 + } + if o.Status206 != nil { + toSerialize["status_206"] = o.Status206 + } + if o.Status301 != nil { + toSerialize["status_301"] = o.Status301 + } + if o.Status302 != nil { + toSerialize["status_302"] = o.Status302 + } + if o.Status304 != nil { + toSerialize["status_304"] = o.Status304 + } + if o.Status400 != nil { + toSerialize["status_400"] = o.Status400 + } + if o.Status401 != nil { + toSerialize["status_401"] = o.Status401 + } + if o.Status403 != nil { + toSerialize["status_403"] = o.Status403 + } + if o.Status404 != nil { + toSerialize["status_404"] = o.Status404 + } + if o.Status416 != nil { + toSerialize["status_416"] = o.Status416 + } + if o.Status429 != nil { + toSerialize["status_429"] = o.Status429 + } + if o.Status500 != nil { + toSerialize["status_500"] = o.Status500 + } + if o.Status501 != nil { + toSerialize["status_501"] = o.Status501 + } + if o.Status502 != nil { + toSerialize["status_502"] = o.Status502 + } + if o.Status503 != nil { + toSerialize["status_503"] = o.Status503 + } + if o.Status504 != nil { + toSerialize["status_504"] = o.Status504 + } + if o.Status505 != nil { + toSerialize["status_505"] = o.Status505 + } + if o.Latency0To1ms != nil { + toSerialize["latency_0_to_1ms"] = o.Latency0To1ms + } + if o.Latency1To5ms != nil { + toSerialize["latency_1_to_5ms"] = o.Latency1To5ms + } + if o.Latency5To10ms != nil { + toSerialize["latency_5_to_10ms"] = o.Latency5To10ms + } + if o.Latency10To50ms != nil { + toSerialize["latency_10_to_50ms"] = o.Latency10To50ms + } + if o.Latency50To100ms != nil { + toSerialize["latency_50_to_100ms"] = o.Latency50To100ms + } + if o.Latency100To250ms != nil { + toSerialize["latency_100_to_250ms"] = o.Latency100To250ms + } + if o.Latency250To500ms != nil { + toSerialize["latency_250_to_500ms"] = o.Latency250To500ms + } + if o.Latency500To1000ms != nil { + toSerialize["latency_500_to_1000ms"] = o.Latency500To1000ms + } + if o.Latency1000To5000ms != nil { + toSerialize["latency_1000_to_5000ms"] = o.Latency1000To5000ms + } + if o.Latency5000To10000ms != nil { + toSerialize["latency_5000_to_10000ms"] = o.Latency5000To10000ms + } + if o.Latency10000To60000ms != nil { + toSerialize["latency_10000_to_60000ms"] = o.Latency10000To60000ms + } + if o.Latency60000ms != nil { + toSerialize["latency_60000ms"] = o.Latency60000ms + } + if o.WafResponses != nil { + toSerialize["waf_responses"] = o.WafResponses + } + if o.WafRespHeaderBytes != nil { + toSerialize["waf_resp_header_bytes"] = o.WafRespHeaderBytes + } + if o.WafRespBodyBytes != nil { + toSerialize["waf_resp_body_bytes"] = o.WafRespBodyBytes + } + if o.WafStatus1xx != nil { + toSerialize["waf_status_1xx"] = o.WafStatus1xx + } + if o.WafStatus2xx != nil { + toSerialize["waf_status_2xx"] = o.WafStatus2xx + } + if o.WafStatus3xx != nil { + toSerialize["waf_status_3xx"] = o.WafStatus3xx + } + if o.WafStatus4xx != nil { + toSerialize["waf_status_4xx"] = o.WafStatus4xx + } + if o.WafStatus5xx != nil { + toSerialize["waf_status_5xx"] = o.WafStatus5xx + } + if o.WafStatus200 != nil { + toSerialize["waf_status_200"] = o.WafStatus200 + } + if o.WafStatus204 != nil { + toSerialize["waf_status_204"] = o.WafStatus204 + } + if o.WafStatus206 != nil { + toSerialize["waf_status_206"] = o.WafStatus206 + } + if o.WafStatus301 != nil { + toSerialize["waf_status_301"] = o.WafStatus301 + } + if o.WafStatus302 != nil { + toSerialize["waf_status_302"] = o.WafStatus302 + } + if o.WafStatus304 != nil { + toSerialize["waf_status_304"] = o.WafStatus304 + } + if o.WafStatus400 != nil { + toSerialize["waf_status_400"] = o.WafStatus400 + } + if o.WafStatus401 != nil { + toSerialize["waf_status_401"] = o.WafStatus401 + } + if o.WafStatus403 != nil { + toSerialize["waf_status_403"] = o.WafStatus403 + } + if o.WafStatus404 != nil { + toSerialize["waf_status_404"] = o.WafStatus404 + } + if o.WafStatus416 != nil { + toSerialize["waf_status_416"] = o.WafStatus416 + } + if o.WafStatus429 != nil { + toSerialize["waf_status_429"] = o.WafStatus429 + } + if o.WafStatus500 != nil { + toSerialize["waf_status_500"] = o.WafStatus500 + } + if o.WafStatus501 != nil { + toSerialize["waf_status_501"] = o.WafStatus501 + } + if o.WafStatus502 != nil { + toSerialize["waf_status_502"] = o.WafStatus502 + } + if o.WafStatus503 != nil { + toSerialize["waf_status_503"] = o.WafStatus503 + } + if o.WafStatus504 != nil { + toSerialize["waf_status_504"] = o.WafStatus504 + } + if o.WafStatus505 != nil { + toSerialize["waf_status_505"] = o.WafStatus505 + } + if o.WafLatency0To1ms != nil { + toSerialize["waf_latency_0_to_1ms"] = o.WafLatency0To1ms + } + if o.WafLatency1To5ms != nil { + toSerialize["waf_latency_1_to_5ms"] = o.WafLatency1To5ms + } + if o.WafLatency5To10ms != nil { + toSerialize["waf_latency_5_to_10ms"] = o.WafLatency5To10ms + } + if o.WafLatency10To50ms != nil { + toSerialize["waf_latency_10_to_50ms"] = o.WafLatency10To50ms + } + if o.WafLatency50To100ms != nil { + toSerialize["waf_latency_50_to_100ms"] = o.WafLatency50To100ms + } + if o.WafLatency100To250ms != nil { + toSerialize["waf_latency_100_to_250ms"] = o.WafLatency100To250ms + } + if o.WafLatency250To500ms != nil { + toSerialize["waf_latency_250_to_500ms"] = o.WafLatency250To500ms + } + if o.WafLatency500To1000ms != nil { + toSerialize["waf_latency_500_to_1000ms"] = o.WafLatency500To1000ms + } + if o.WafLatency1000To5000ms != nil { + toSerialize["waf_latency_1000_to_5000ms"] = o.WafLatency1000To5000ms + } + if o.WafLatency5000To10000ms != nil { + toSerialize["waf_latency_5000_to_10000ms"] = o.WafLatency5000To10000ms + } + if o.WafLatency10000To60000ms != nil { + toSerialize["waf_latency_10000_to_60000ms"] = o.WafLatency10000To60000ms + } + if o.WafLatency60000ms != nil { + toSerialize["waf_latency_60000ms"] = o.WafLatency60000ms + } + if o.ComputeResponses != nil { + toSerialize["compute_responses"] = o.ComputeResponses + } + if o.ComputeRespHeaderBytes != nil { + toSerialize["compute_resp_header_bytes"] = o.ComputeRespHeaderBytes + } + if o.ComputeRespBodyBytes != nil { + toSerialize["compute_resp_body_bytes"] = o.ComputeRespBodyBytes + } + if o.ComputeStatus1xx != nil { + toSerialize["compute_status_1xx"] = o.ComputeStatus1xx + } + if o.ComputeStatus2xx != nil { + toSerialize["compute_status_2xx"] = o.ComputeStatus2xx + } + if o.ComputeStatus3xx != nil { + toSerialize["compute_status_3xx"] = o.ComputeStatus3xx + } + if o.ComputeStatus4xx != nil { + toSerialize["compute_status_4xx"] = o.ComputeStatus4xx + } + if o.ComputeStatus5xx != nil { + toSerialize["compute_status_5xx"] = o.ComputeStatus5xx + } + if o.ComputeStatus200 != nil { + toSerialize["compute_status_200"] = o.ComputeStatus200 + } + if o.ComputeStatus204 != nil { + toSerialize["compute_status_204"] = o.ComputeStatus204 + } + if o.ComputeStatus206 != nil { + toSerialize["compute_status_206"] = o.ComputeStatus206 + } + if o.ComputeStatus301 != nil { + toSerialize["compute_status_301"] = o.ComputeStatus301 + } + if o.ComputeStatus302 != nil { + toSerialize["compute_status_302"] = o.ComputeStatus302 + } + if o.ComputeStatus304 != nil { + toSerialize["compute_status_304"] = o.ComputeStatus304 + } + if o.ComputeStatus400 != nil { + toSerialize["compute_status_400"] = o.ComputeStatus400 + } + if o.ComputeStatus401 != nil { + toSerialize["compute_status_401"] = o.ComputeStatus401 + } + if o.ComputeStatus403 != nil { + toSerialize["compute_status_403"] = o.ComputeStatus403 + } + if o.ComputeStatus404 != nil { + toSerialize["compute_status_404"] = o.ComputeStatus404 + } + if o.ComputeStatus416 != nil { + toSerialize["compute_status_416"] = o.ComputeStatus416 + } + if o.ComputeStatus429 != nil { + toSerialize["compute_status_429"] = o.ComputeStatus429 + } + if o.ComputeStatus500 != nil { + toSerialize["compute_status_500"] = o.ComputeStatus500 + } + if o.ComputeStatus501 != nil { + toSerialize["compute_status_501"] = o.ComputeStatus501 + } + if o.ComputeStatus502 != nil { + toSerialize["compute_status_502"] = o.ComputeStatus502 + } + if o.ComputeStatus503 != nil { + toSerialize["compute_status_503"] = o.ComputeStatus503 + } + if o.ComputeStatus504 != nil { + toSerialize["compute_status_504"] = o.ComputeStatus504 + } + if o.ComputeStatus505 != nil { + toSerialize["compute_status_505"] = o.ComputeStatus505 + } + if o.ComputeLatency0To1ms != nil { + toSerialize["compute_latency_0_to_1ms"] = o.ComputeLatency0To1ms + } + if o.ComputeLatency1To5ms != nil { + toSerialize["compute_latency_1_to_5ms"] = o.ComputeLatency1To5ms + } + if o.ComputeLatency5To10ms != nil { + toSerialize["compute_latency_5_to_10ms"] = o.ComputeLatency5To10ms + } + if o.ComputeLatency10To50ms != nil { + toSerialize["compute_latency_10_to_50ms"] = o.ComputeLatency10To50ms + } + if o.ComputeLatency50To100ms != nil { + toSerialize["compute_latency_50_to_100ms"] = o.ComputeLatency50To100ms + } + if o.ComputeLatency100To250ms != nil { + toSerialize["compute_latency_100_to_250ms"] = o.ComputeLatency100To250ms + } + if o.ComputeLatency250To500ms != nil { + toSerialize["compute_latency_250_to_500ms"] = o.ComputeLatency250To500ms + } + if o.ComputeLatency500To1000ms != nil { + toSerialize["compute_latency_500_to_1000ms"] = o.ComputeLatency500To1000ms + } + if o.ComputeLatency1000To5000ms != nil { + toSerialize["compute_latency_1000_to_5000ms"] = o.ComputeLatency1000To5000ms + } + if o.ComputeLatency5000To10000ms != nil { + toSerialize["compute_latency_5000_to_10000ms"] = o.ComputeLatency5000To10000ms + } + if o.ComputeLatency10000To60000ms != nil { + toSerialize["compute_latency_10000_to_60000ms"] = o.ComputeLatency10000To60000ms + } + if o.ComputeLatency60000ms != nil { + toSerialize["compute_latency_60000ms"] = o.ComputeLatency60000ms + } + if o.AllResponses != nil { + toSerialize["all_responses"] = o.AllResponses + } + if o.AllRespHeaderBytes != nil { + toSerialize["all_resp_header_bytes"] = o.AllRespHeaderBytes + } + if o.AllRespBodyBytes != nil { + toSerialize["all_resp_body_bytes"] = o.AllRespBodyBytes + } + if o.AllStatus1xx != nil { + toSerialize["all_status_1xx"] = o.AllStatus1xx + } + if o.AllStatus2xx != nil { + toSerialize["all_status_2xx"] = o.AllStatus2xx + } + if o.AllStatus3xx != nil { + toSerialize["all_status_3xx"] = o.AllStatus3xx + } + if o.AllStatus4xx != nil { + toSerialize["all_status_4xx"] = o.AllStatus4xx + } + if o.AllStatus5xx != nil { + toSerialize["all_status_5xx"] = o.AllStatus5xx + } + if o.AllStatus200 != nil { + toSerialize["all_status_200"] = o.AllStatus200 + } + if o.AllStatus204 != nil { + toSerialize["all_status_204"] = o.AllStatus204 + } + if o.AllStatus206 != nil { + toSerialize["all_status_206"] = o.AllStatus206 + } + if o.AllStatus301 != nil { + toSerialize["all_status_301"] = o.AllStatus301 + } + if o.AllStatus302 != nil { + toSerialize["all_status_302"] = o.AllStatus302 + } + if o.AllStatus304 != nil { + toSerialize["all_status_304"] = o.AllStatus304 + } + if o.AllStatus400 != nil { + toSerialize["all_status_400"] = o.AllStatus400 + } + if o.AllStatus401 != nil { + toSerialize["all_status_401"] = o.AllStatus401 + } + if o.AllStatus403 != nil { + toSerialize["all_status_403"] = o.AllStatus403 + } + if o.AllStatus404 != nil { + toSerialize["all_status_404"] = o.AllStatus404 + } + if o.AllStatus416 != nil { + toSerialize["all_status_416"] = o.AllStatus416 + } + if o.AllStatus429 != nil { + toSerialize["all_status_429"] = o.AllStatus429 + } + if o.AllStatus500 != nil { + toSerialize["all_status_500"] = o.AllStatus500 + } + if o.AllStatus501 != nil { + toSerialize["all_status_501"] = o.AllStatus501 + } + if o.AllStatus502 != nil { + toSerialize["all_status_502"] = o.AllStatus502 + } + if o.AllStatus503 != nil { + toSerialize["all_status_503"] = o.AllStatus503 + } + if o.AllStatus504 != nil { + toSerialize["all_status_504"] = o.AllStatus504 + } + if o.AllStatus505 != nil { + toSerialize["all_status_505"] = o.AllStatus505 + } + if o.AllLatency0To1ms != nil { + toSerialize["all_latency_0_to_1ms"] = o.AllLatency0To1ms + } + if o.AllLatency1To5ms != nil { + toSerialize["all_latency_1_to_5ms"] = o.AllLatency1To5ms + } + if o.AllLatency5To10ms != nil { + toSerialize["all_latency_5_to_10ms"] = o.AllLatency5To10ms + } + if o.AllLatency10To50ms != nil { + toSerialize["all_latency_10_to_50ms"] = o.AllLatency10To50ms + } + if o.AllLatency50To100ms != nil { + toSerialize["all_latency_50_to_100ms"] = o.AllLatency50To100ms + } + if o.AllLatency100To250ms != nil { + toSerialize["all_latency_100_to_250ms"] = o.AllLatency100To250ms + } + if o.AllLatency250To500ms != nil { + toSerialize["all_latency_250_to_500ms"] = o.AllLatency250To500ms + } + if o.AllLatency500To1000ms != nil { + toSerialize["all_latency_500_to_1000ms"] = o.AllLatency500To1000ms + } + if o.AllLatency1000To5000ms != nil { + toSerialize["all_latency_1000_to_5000ms"] = o.AllLatency1000To5000ms + } + if o.AllLatency5000To10000ms != nil { + toSerialize["all_latency_5000_to_10000ms"] = o.AllLatency5000To10000ms + } + if o.AllLatency10000To60000ms != nil { + toSerialize["all_latency_10000_to_60000ms"] = o.AllLatency10000To60000ms + } + if o.AllLatency60000ms != nil { + toSerialize["all_latency_60000ms"] = o.AllLatency60000ms + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return json.Marshal(toSerialize) +} + +// UnmarshalJSON implements the Unmarshaler interface. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +func (o *OriginInspectorValues) UnmarshalJSON(bytes []byte) (err error) { + varOriginInspectorValues := _OriginInspectorValues{} + + if err = json.Unmarshal(bytes, &varOriginInspectorValues); err == nil { + *o = OriginInspectorValues(varOriginInspectorValues) + } + + additionalProperties := make(map[string]any) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "responses") + delete(additionalProperties, "resp_header_bytes") + delete(additionalProperties, "resp_body_bytes") + delete(additionalProperties, "status_1xx") + delete(additionalProperties, "status_2xx") + delete(additionalProperties, "status_3xx") + delete(additionalProperties, "status_4xx") + delete(additionalProperties, "status_5xx") + delete(additionalProperties, "status_200") + delete(additionalProperties, "status_204") + delete(additionalProperties, "status_206") + delete(additionalProperties, "status_301") + delete(additionalProperties, "status_302") + delete(additionalProperties, "status_304") + delete(additionalProperties, "status_400") + delete(additionalProperties, "status_401") + delete(additionalProperties, "status_403") + delete(additionalProperties, "status_404") + delete(additionalProperties, "status_416") + delete(additionalProperties, "status_429") + delete(additionalProperties, "status_500") + delete(additionalProperties, "status_501") + delete(additionalProperties, "status_502") + delete(additionalProperties, "status_503") + delete(additionalProperties, "status_504") + delete(additionalProperties, "status_505") + delete(additionalProperties, "latency_0_to_1ms") + delete(additionalProperties, "latency_1_to_5ms") + delete(additionalProperties, "latency_5_to_10ms") + delete(additionalProperties, "latency_10_to_50ms") + delete(additionalProperties, "latency_50_to_100ms") + delete(additionalProperties, "latency_100_to_250ms") + delete(additionalProperties, "latency_250_to_500ms") + delete(additionalProperties, "latency_500_to_1000ms") + delete(additionalProperties, "latency_1000_to_5000ms") + delete(additionalProperties, "latency_5000_to_10000ms") + delete(additionalProperties, "latency_10000_to_60000ms") + delete(additionalProperties, "latency_60000ms") + delete(additionalProperties, "waf_responses") + delete(additionalProperties, "waf_resp_header_bytes") + delete(additionalProperties, "waf_resp_body_bytes") + delete(additionalProperties, "waf_status_1xx") + delete(additionalProperties, "waf_status_2xx") + delete(additionalProperties, "waf_status_3xx") + delete(additionalProperties, "waf_status_4xx") + delete(additionalProperties, "waf_status_5xx") + delete(additionalProperties, "waf_status_200") + delete(additionalProperties, "waf_status_204") + delete(additionalProperties, "waf_status_206") + delete(additionalProperties, "waf_status_301") + delete(additionalProperties, "waf_status_302") + delete(additionalProperties, "waf_status_304") + delete(additionalProperties, "waf_status_400") + delete(additionalProperties, "waf_status_401") + delete(additionalProperties, "waf_status_403") + delete(additionalProperties, "waf_status_404") + delete(additionalProperties, "waf_status_416") + delete(additionalProperties, "waf_status_429") + delete(additionalProperties, "waf_status_500") + delete(additionalProperties, "waf_status_501") + delete(additionalProperties, "waf_status_502") + delete(additionalProperties, "waf_status_503") + delete(additionalProperties, "waf_status_504") + delete(additionalProperties, "waf_status_505") + delete(additionalProperties, "waf_latency_0_to_1ms") + delete(additionalProperties, "waf_latency_1_to_5ms") + delete(additionalProperties, "waf_latency_5_to_10ms") + delete(additionalProperties, "waf_latency_10_to_50ms") + delete(additionalProperties, "waf_latency_50_to_100ms") + delete(additionalProperties, "waf_latency_100_to_250ms") + delete(additionalProperties, "waf_latency_250_to_500ms") + delete(additionalProperties, "waf_latency_500_to_1000ms") + delete(additionalProperties, "waf_latency_1000_to_5000ms") + delete(additionalProperties, "waf_latency_5000_to_10000ms") + delete(additionalProperties, "waf_latency_10000_to_60000ms") + delete(additionalProperties, "waf_latency_60000ms") + delete(additionalProperties, "compute_responses") + delete(additionalProperties, "compute_resp_header_bytes") + delete(additionalProperties, "compute_resp_body_bytes") + delete(additionalProperties, "compute_status_1xx") + delete(additionalProperties, "compute_status_2xx") + delete(additionalProperties, "compute_status_3xx") + delete(additionalProperties, "compute_status_4xx") + delete(additionalProperties, "compute_status_5xx") + delete(additionalProperties, "compute_status_200") + delete(additionalProperties, "compute_status_204") + delete(additionalProperties, "compute_status_206") + delete(additionalProperties, "compute_status_301") + delete(additionalProperties, "compute_status_302") + delete(additionalProperties, "compute_status_304") + delete(additionalProperties, "compute_status_400") + delete(additionalProperties, "compute_status_401") + delete(additionalProperties, "compute_status_403") + delete(additionalProperties, "compute_status_404") + delete(additionalProperties, "compute_status_416") + delete(additionalProperties, "compute_status_429") + delete(additionalProperties, "compute_status_500") + delete(additionalProperties, "compute_status_501") + delete(additionalProperties, "compute_status_502") + delete(additionalProperties, "compute_status_503") + delete(additionalProperties, "compute_status_504") + delete(additionalProperties, "compute_status_505") + delete(additionalProperties, "compute_latency_0_to_1ms") + delete(additionalProperties, "compute_latency_1_to_5ms") + delete(additionalProperties, "compute_latency_5_to_10ms") + delete(additionalProperties, "compute_latency_10_to_50ms") + delete(additionalProperties, "compute_latency_50_to_100ms") + delete(additionalProperties, "compute_latency_100_to_250ms") + delete(additionalProperties, "compute_latency_250_to_500ms") + delete(additionalProperties, "compute_latency_500_to_1000ms") + delete(additionalProperties, "compute_latency_1000_to_5000ms") + delete(additionalProperties, "compute_latency_5000_to_10000ms") + delete(additionalProperties, "compute_latency_10000_to_60000ms") + delete(additionalProperties, "compute_latency_60000ms") + delete(additionalProperties, "all_responses") + delete(additionalProperties, "all_resp_header_bytes") + delete(additionalProperties, "all_resp_body_bytes") + delete(additionalProperties, "all_status_1xx") + delete(additionalProperties, "all_status_2xx") + delete(additionalProperties, "all_status_3xx") + delete(additionalProperties, "all_status_4xx") + delete(additionalProperties, "all_status_5xx") + delete(additionalProperties, "all_status_200") + delete(additionalProperties, "all_status_204") + delete(additionalProperties, "all_status_206") + delete(additionalProperties, "all_status_301") + delete(additionalProperties, "all_status_302") + delete(additionalProperties, "all_status_304") + delete(additionalProperties, "all_status_400") + delete(additionalProperties, "all_status_401") + delete(additionalProperties, "all_status_403") + delete(additionalProperties, "all_status_404") + delete(additionalProperties, "all_status_416") + delete(additionalProperties, "all_status_429") + delete(additionalProperties, "all_status_500") + delete(additionalProperties, "all_status_501") + delete(additionalProperties, "all_status_502") + delete(additionalProperties, "all_status_503") + delete(additionalProperties, "all_status_504") + delete(additionalProperties, "all_status_505") + delete(additionalProperties, "all_latency_0_to_1ms") + delete(additionalProperties, "all_latency_1_to_5ms") + delete(additionalProperties, "all_latency_5_to_10ms") + delete(additionalProperties, "all_latency_10_to_50ms") + delete(additionalProperties, "all_latency_50_to_100ms") + delete(additionalProperties, "all_latency_100_to_250ms") + delete(additionalProperties, "all_latency_250_to_500ms") + delete(additionalProperties, "all_latency_500_to_1000ms") + delete(additionalProperties, "all_latency_1000_to_5000ms") + delete(additionalProperties, "all_latency_5000_to_10000ms") + delete(additionalProperties, "all_latency_10000_to_60000ms") + delete(additionalProperties, "all_latency_60000ms") + o.AdditionalProperties = additionalProperties + } + + return err +} + +// NullableOriginInspectorValues is a helper abstraction for handling nullable origininspectorvalues types. +type NullableOriginInspectorValues struct { + value *OriginInspectorValues + isSet bool +} + +// Get returns the value. +func (v NullableOriginInspectorValues) Get() *OriginInspectorValues { + return v.value +} + +// Set modifies the value. +func (v *NullableOriginInspectorValues) Set(val *OriginInspectorValues) { + v.value = val + v.isSet = true +} + +// IsSet indicates if the value was set. +func (v NullableOriginInspectorValues) IsSet() bool { + return v.isSet +} + +// Unset removes the value. +func (v *NullableOriginInspectorValues) Unset() { + v.value = nil + v.isSet = false +} + +// NewNullableOriginInspectorValues returns a pointer to a new instance of NullableOriginInspectorValues. +func NewNullableOriginInspectorValues(val *OriginInspectorValues) *NullableOriginInspectorValues { + return &NullableOriginInspectorValues{value: val, isSet: true} +} + +// MarshalJSON implements the json.Marshaler interface. +// Marshaler is the interface implemented by types that can marshal themselves into valid JSON. +func (v NullableOriginInspectorValues) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +// UnmarshalJSON implements the Unmarshaler interface. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +func (v *NullableOriginInspectorValues) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/fastly/model_pagination_cursor_meta.go b/fastly/model_pagination_cursor_meta.go new file mode 100644 index 00000000..87bd3e66 --- /dev/null +++ b/fastly/model_pagination_cursor_meta.go @@ -0,0 +1,194 @@ +// Package fastly is an API client library for interacting with most facets of the Fastly API. +package fastly + +/* +Fastly API + +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://developer.fastly.com/reference/api/) + +API version: 1.0.0 +Contact: oss@fastly.com +*/ + +// This code is auto-generated; DO NOT EDIT. + + +import ( + "encoding/json" +) + +// PaginationCursorMeta struct for PaginationCursorMeta +type PaginationCursorMeta struct { + // Cursor for the next page. + NextCursor *string `json:"next_cursor,omitempty"` + // Maximum number of results returned. + Limit *int32 `json:"limit,omitempty"` + AdditionalProperties map[string]any +} + +type _PaginationCursorMeta PaginationCursorMeta + +// NewPaginationCursorMeta instantiates a new PaginationCursorMeta object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPaginationCursorMeta() *PaginationCursorMeta { + this := PaginationCursorMeta{} + return &this +} + +// NewPaginationCursorMetaWithDefaults instantiates a new PaginationCursorMeta object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPaginationCursorMetaWithDefaults() *PaginationCursorMeta { + this := PaginationCursorMeta{} + return &this +} + +// GetNextCursor returns the NextCursor field value if set, zero value otherwise. +func (o *PaginationCursorMeta) GetNextCursor() string { + if o == nil || o.NextCursor == nil { + var ret string + return ret + } + return *o.NextCursor +} + +// GetNextCursorOk returns a tuple with the NextCursor field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PaginationCursorMeta) GetNextCursorOk() (*string, bool) { + if o == nil || o.NextCursor == nil { + return nil, false + } + return o.NextCursor, true +} + +// HasNextCursor returns a boolean if a field has been set. +func (o *PaginationCursorMeta) HasNextCursor() bool { + if o != nil && o.NextCursor != nil { + return true + } + + return false +} + +// SetNextCursor gets a reference to the given string and assigns it to the NextCursor field. +func (o *PaginationCursorMeta) SetNextCursor(v string) { + o.NextCursor = &v +} + +// GetLimit returns the Limit field value if set, zero value otherwise. +func (o *PaginationCursorMeta) GetLimit() int32 { + if o == nil || o.Limit == nil { + var ret int32 + return ret + } + return *o.Limit +} + +// GetLimitOk returns a tuple with the Limit field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PaginationCursorMeta) GetLimitOk() (*int32, bool) { + if o == nil || o.Limit == nil { + return nil, false + } + return o.Limit, true +} + +// HasLimit returns a boolean if a field has been set. +func (o *PaginationCursorMeta) HasLimit() bool { + if o != nil && o.Limit != nil { + return true + } + + return false +} + +// SetLimit gets a reference to the given int32 and assigns it to the Limit field. +func (o *PaginationCursorMeta) SetLimit(v int32) { + o.Limit = &v +} + +// MarshalJSON implements the json.Marshaler interface. +// Marshaler is the interface implemented by types that can marshal themselves into valid JSON. +func (o PaginationCursorMeta) MarshalJSON() ([]byte, error) { + toSerialize := map[string]any{} + if o.NextCursor != nil { + toSerialize["next_cursor"] = o.NextCursor + } + if o.Limit != nil { + toSerialize["limit"] = o.Limit + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return json.Marshal(toSerialize) +} + +// UnmarshalJSON implements the Unmarshaler interface. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +func (o *PaginationCursorMeta) UnmarshalJSON(bytes []byte) (err error) { + varPaginationCursorMeta := _PaginationCursorMeta{} + + if err = json.Unmarshal(bytes, &varPaginationCursorMeta); err == nil { + *o = PaginationCursorMeta(varPaginationCursorMeta) + } + + additionalProperties := make(map[string]any) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "next_cursor") + delete(additionalProperties, "limit") + o.AdditionalProperties = additionalProperties + } + + return err +} + +// NullablePaginationCursorMeta is a helper abstraction for handling nullable paginationcursormeta types. +type NullablePaginationCursorMeta struct { + value *PaginationCursorMeta + isSet bool +} + +// Get returns the value. +func (v NullablePaginationCursorMeta) Get() *PaginationCursorMeta { + return v.value +} + +// Set modifies the value. +func (v *NullablePaginationCursorMeta) Set(val *PaginationCursorMeta) { + v.value = val + v.isSet = true +} + +// IsSet indicates if the value was set. +func (v NullablePaginationCursorMeta) IsSet() bool { + return v.isSet +} + +// Unset removes the value. +func (v *NullablePaginationCursorMeta) Unset() { + v.value = nil + v.isSet = false +} + +// NewNullablePaginationCursorMeta returns a pointer to a new instance of NullablePaginationCursorMeta. +func NewNullablePaginationCursorMeta(val *PaginationCursorMeta) *NullablePaginationCursorMeta { + return &NullablePaginationCursorMeta{value: val, isSet: true} +} + +// MarshalJSON implements the json.Marshaler interface. +// Marshaler is the interface implemented by types that can marshal themselves into valid JSON. +func (v NullablePaginationCursorMeta) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +// UnmarshalJSON implements the Unmarshaler interface. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +func (v *NullablePaginationCursorMeta) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/fastly/model_read_only_service_id.go b/fastly/model_read_only_service_id.go new file mode 100644 index 00000000..e138a28f --- /dev/null +++ b/fastly/model_read_only_service_id.go @@ -0,0 +1,118 @@ +// Package fastly is an API client library for interacting with most facets of the Fastly API. +package fastly + +/* +Fastly API + +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://developer.fastly.com/reference/api/) + +API version: 1.0.0 +Contact: oss@fastly.com +*/ + +// This code is auto-generated; DO NOT EDIT. + + +import ( + "encoding/json" +) + +// ReadOnlyServiceID struct for ReadOnlyServiceID +type ReadOnlyServiceID struct { + AdditionalProperties map[string]any +} + +type _ReadOnlyServiceID ReadOnlyServiceID + +// NewReadOnlyServiceID instantiates a new ReadOnlyServiceID object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewReadOnlyServiceID() *ReadOnlyServiceID { + this := ReadOnlyServiceID{} + return &this +} + +// NewReadOnlyServiceIDWithDefaults instantiates a new ReadOnlyServiceID object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewReadOnlyServiceIDWithDefaults() *ReadOnlyServiceID { + this := ReadOnlyServiceID{} + return &this +} + +// MarshalJSON implements the json.Marshaler interface. +// Marshaler is the interface implemented by types that can marshal themselves into valid JSON. +func (o ReadOnlyServiceID) MarshalJSON() ([]byte, error) { + toSerialize := map[string]any{} + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return json.Marshal(toSerialize) +} + +// UnmarshalJSON implements the Unmarshaler interface. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +func (o *ReadOnlyServiceID) UnmarshalJSON(bytes []byte) (err error) { + varReadOnlyServiceID := _ReadOnlyServiceID{} + + if err = json.Unmarshal(bytes, &varReadOnlyServiceID); err == nil { + *o = ReadOnlyServiceID(varReadOnlyServiceID) + } + + additionalProperties := make(map[string]any) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + o.AdditionalProperties = additionalProperties + } + + return err +} + +// NullableReadOnlyServiceID is a helper abstraction for handling nullable readonlyserviceid types. +type NullableReadOnlyServiceID struct { + value *ReadOnlyServiceID + isSet bool +} + +// Get returns the value. +func (v NullableReadOnlyServiceID) Get() *ReadOnlyServiceID { + return v.value +} + +// Set modifies the value. +func (v *NullableReadOnlyServiceID) Set(val *ReadOnlyServiceID) { + v.value = val + v.isSet = true +} + +// IsSet indicates if the value was set. +func (v NullableReadOnlyServiceID) IsSet() bool { + return v.isSet +} + +// Unset removes the value. +func (v *NullableReadOnlyServiceID) Unset() { + v.value = nil + v.isSet = false +} + +// NewNullableReadOnlyServiceID returns a pointer to a new instance of NullableReadOnlyServiceID. +func NewNullableReadOnlyServiceID(val *ReadOnlyServiceID) *NullableReadOnlyServiceID { + return &NullableReadOnlyServiceID{value: val, isSet: true} +} + +// MarshalJSON implements the json.Marshaler interface. +// Marshaler is the interface implemented by types that can marshal themselves into valid JSON. +func (v NullableReadOnlyServiceID) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +// UnmarshalJSON implements the Unmarshaler interface. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +func (v *NullableReadOnlyServiceID) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/fastly/model_read_only_version.go b/fastly/model_read_only_version.go new file mode 100644 index 00000000..443a912b --- /dev/null +++ b/fastly/model_read_only_version.go @@ -0,0 +1,118 @@ +// Package fastly is an API client library for interacting with most facets of the Fastly API. +package fastly + +/* +Fastly API + +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://developer.fastly.com/reference/api/) + +API version: 1.0.0 +Contact: oss@fastly.com +*/ + +// This code is auto-generated; DO NOT EDIT. + + +import ( + "encoding/json" +) + +// ReadOnlyVersion struct for ReadOnlyVersion +type ReadOnlyVersion struct { + AdditionalProperties map[string]any +} + +type _ReadOnlyVersion ReadOnlyVersion + +// NewReadOnlyVersion instantiates a new ReadOnlyVersion object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewReadOnlyVersion() *ReadOnlyVersion { + this := ReadOnlyVersion{} + return &this +} + +// NewReadOnlyVersionWithDefaults instantiates a new ReadOnlyVersion object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewReadOnlyVersionWithDefaults() *ReadOnlyVersion { + this := ReadOnlyVersion{} + return &this +} + +// MarshalJSON implements the json.Marshaler interface. +// Marshaler is the interface implemented by types that can marshal themselves into valid JSON. +func (o ReadOnlyVersion) MarshalJSON() ([]byte, error) { + toSerialize := map[string]any{} + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return json.Marshal(toSerialize) +} + +// UnmarshalJSON implements the Unmarshaler interface. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +func (o *ReadOnlyVersion) UnmarshalJSON(bytes []byte) (err error) { + varReadOnlyVersion := _ReadOnlyVersion{} + + if err = json.Unmarshal(bytes, &varReadOnlyVersion); err == nil { + *o = ReadOnlyVersion(varReadOnlyVersion) + } + + additionalProperties := make(map[string]any) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + o.AdditionalProperties = additionalProperties + } + + return err +} + +// NullableReadOnlyVersion is a helper abstraction for handling nullable readonlyversion types. +type NullableReadOnlyVersion struct { + value *ReadOnlyVersion + isSet bool +} + +// Get returns the value. +func (v NullableReadOnlyVersion) Get() *ReadOnlyVersion { + return v.value +} + +// Set modifies the value. +func (v *NullableReadOnlyVersion) Set(val *ReadOnlyVersion) { + v.value = val + v.isSet = true +} + +// IsSet indicates if the value was set. +func (v NullableReadOnlyVersion) IsSet() bool { + return v.isSet +} + +// Unset removes the value. +func (v *NullableReadOnlyVersion) Unset() { + v.value = nil + v.isSet = false +} + +// NewNullableReadOnlyVersion returns a pointer to a new instance of NullableReadOnlyVersion. +func NewNullableReadOnlyVersion(val *ReadOnlyVersion) *NullableReadOnlyVersion { + return &NullableReadOnlyVersion{value: val, isSet: true} +} + +// MarshalJSON implements the json.Marshaler interface. +// Marshaler is the interface implemented by types that can marshal themselves into valid JSON. +func (v NullableReadOnlyVersion) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +// UnmarshalJSON implements the Unmarshaler interface. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +func (v *NullableReadOnlyVersion) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/fastly/model_realtime_entry.go b/fastly/model_realtime_entry.go index 9fa4aaf3..76a1f3ca 100644 --- a/fastly/model_realtime_entry.go +++ b/fastly/model_realtime_entry.go @@ -19,10 +19,8 @@ import ( // RealtimeEntry A list of records, each representing one second of time. The `Data` property provides access to [measurement data](#measurements-data-model) for that time period, grouped in various ways. type RealtimeEntry struct { - // The Unix timestamp at which this record's data was generated. - Recorded *int32 `json:"recorded,omitempty"` - // Aggregates [measurements](#measurements-data-model) across all Fastly POPs. - Aggregated *RealtimeMeasurements `json:"aggregated,omitempty"` + Recorded *RealtimeEntryRecorded `json:"recorded,omitempty"` + Aggregated *RealtimeEntryAggregated `json:"aggregated,omitempty"` // Groups [measurements](#measurements-data-model) by POP. See the [POPs API](/reference/api/utils/pops/) for details of POP identifiers. Datacenter *map[string]RealtimeMeasurements `json:"datacenter,omitempty"` AdditionalProperties map[string]any @@ -48,9 +46,9 @@ func NewRealtimeEntryWithDefaults() *RealtimeEntry { } // GetRecorded returns the Recorded field value if set, zero value otherwise. -func (o *RealtimeEntry) GetRecorded() int32 { +func (o *RealtimeEntry) GetRecorded() RealtimeEntryRecorded { if o == nil || o.Recorded == nil { - var ret int32 + var ret RealtimeEntryRecorded return ret } return *o.Recorded @@ -58,7 +56,7 @@ func (o *RealtimeEntry) GetRecorded() int32 { // GetRecordedOk returns a tuple with the Recorded field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *RealtimeEntry) GetRecordedOk() (*int32, bool) { +func (o *RealtimeEntry) GetRecordedOk() (*RealtimeEntryRecorded, bool) { if o == nil || o.Recorded == nil { return nil, false } @@ -74,15 +72,15 @@ func (o *RealtimeEntry) HasRecorded() bool { return false } -// SetRecorded gets a reference to the given int32 and assigns it to the Recorded field. -func (o *RealtimeEntry) SetRecorded(v int32) { +// SetRecorded gets a reference to the given RealtimeEntryRecorded and assigns it to the Recorded field. +func (o *RealtimeEntry) SetRecorded(v RealtimeEntryRecorded) { o.Recorded = &v } // GetAggregated returns the Aggregated field value if set, zero value otherwise. -func (o *RealtimeEntry) GetAggregated() RealtimeMeasurements { +func (o *RealtimeEntry) GetAggregated() RealtimeEntryAggregated { if o == nil || o.Aggregated == nil { - var ret RealtimeMeasurements + var ret RealtimeEntryAggregated return ret } return *o.Aggregated @@ -90,7 +88,7 @@ func (o *RealtimeEntry) GetAggregated() RealtimeMeasurements { // GetAggregatedOk returns a tuple with the Aggregated field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *RealtimeEntry) GetAggregatedOk() (*RealtimeMeasurements, bool) { +func (o *RealtimeEntry) GetAggregatedOk() (*RealtimeEntryAggregated, bool) { if o == nil || o.Aggregated == nil { return nil, false } @@ -106,8 +104,8 @@ func (o *RealtimeEntry) HasAggregated() bool { return false } -// SetAggregated gets a reference to the given RealtimeMeasurements and assigns it to the Aggregated field. -func (o *RealtimeEntry) SetAggregated(v RealtimeMeasurements) { +// SetAggregated gets a reference to the given RealtimeEntryAggregated and assigns it to the Aggregated field. +func (o *RealtimeEntry) SetAggregated(v RealtimeEntryAggregated) { o.Aggregated = &v } diff --git a/fastly/model_realtime_entry_aggregated.go b/fastly/model_realtime_entry_aggregated.go new file mode 100644 index 00000000..310751d2 --- /dev/null +++ b/fastly/model_realtime_entry_aggregated.go @@ -0,0 +1,8410 @@ +// Package fastly is an API client library for interacting with most facets of the Fastly API. +package fastly + +/* +Fastly API + +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://developer.fastly.com/reference/api/) + +API version: 1.0.0 +Contact: oss@fastly.com +*/ + +// This code is auto-generated; DO NOT EDIT. + + +import ( + "encoding/json" +) + +// RealtimeEntryAggregated Aggregates [measurements](#measurements-data-model) across all Fastly POPs. +type RealtimeEntryAggregated struct { + // Number of requests processed. + Requests *int32 `json:"requests,omitempty"` + // Number of log lines sent (alias for `log`). + Logging *int32 `json:"logging,omitempty"` + // Number of log lines sent. + Log *int32 `json:"log,omitempty"` + // Total header bytes delivered (edge_resp_header_bytes + shield_resp_header_bytes). + RespHeaderBytes *int32 `json:"resp_header_bytes,omitempty"` + // Total header bytes delivered (alias for resp_header_bytes). + HeaderSize *int32 `json:"header_size,omitempty"` + // Total body bytes delivered (edge_resp_body_bytes + shield_resp_body_bytes). + RespBodyBytes *int32 `json:"resp_body_bytes,omitempty"` + // Total body bytes delivered (alias for resp_body_bytes). + BodySize *int32 `json:"body_size,omitempty"` + // Number of cache hits. + Hits *int32 `json:"hits,omitempty"` + // Number of cache misses. + Miss *int32 `json:"miss,omitempty"` + // Number of requests that passed through the CDN without being cached. + Pass *int32 `json:"pass,omitempty"` + // Number of requests that returned a synthetic response (i.e., response objects created with the `synthetic` VCL statement). + Synth *int32 `json:"synth,omitempty"` + // Number of cache errors. + Errors *int32 `json:"errors,omitempty"` + // Total amount of time spent processing cache hits (in seconds). + HitsTime *float32 `json:"hits_time,omitempty"` + // Total amount of time spent processing cache misses (in seconds). + MissTime *float32 `json:"miss_time,omitempty"` + // A histogram. Each key represents the upper bound of a span of 10 milliseconds and the values represent the number of requests to origin during that 10ms period. Any origin request that takes more than 60 seconds to return will be in the 60000 bucket. + MissHistogram map[string]map[string]any `json:"miss_histogram,omitempty"` + // The total number of requests that were received for your service by Fastly. + ComputeRequests *int32 `json:"compute_requests,omitempty"` + // The amount of active CPU time used to process your requests (in milliseconds). + ComputeExecutionTimeMs *float32 `json:"compute_execution_time_ms,omitempty"` + // The amount of RAM used for your service by Fastly (in bytes). + ComputeRAMUsed *int32 `json:"compute_ram_used,omitempty"` + // The total, actual amount of time used to process your requests, including active CPU time (in milliseconds). + ComputeRequestTimeMs *float32 `json:"compute_request_time_ms,omitempty"` + // The total amount of request processing time you will be billed for, measured in 50 millisecond increments. + ComputeRequestTimeBilledMs *float32 `json:"compute_request_time_billed_ms,omitempty"` + // Number of requests from edge to the shield POP. + Shield *int32 `json:"shield,omitempty"` + // Number of requests that were received over IPv6. + Ipv6 *int32 `json:"ipv6,omitempty"` + // Number of responses that came from the Fastly Image Optimizer service. If the service receives 10 requests for an image, this stat will be 10 regardless of how many times the image was transformed. + Imgopto *int32 `json:"imgopto,omitempty"` + // Number of responses that came from the Fastly Image Optimizer service via a shield. + ImgoptoShield *int32 `json:"imgopto_shield,omitempty"` + // Number of transforms performed by the Fastly Image Optimizer service. + ImgoptoTransforms *int32 `json:"imgopto_transforms,omitempty"` + // Number of responses that came from the Fastly On-the-Fly Packaging service for video-on-demand. + Otfp *int32 `json:"otfp,omitempty"` + // Number of responses that came from the Fastly On-the-Fly Packaging service for video-on-demand via a shield. + OtfpShield *int32 `json:"otfp_shield,omitempty"` + // Number of responses that were manifest files from the Fastly On-the-Fly Packaging service for video-on-demand. + OtfpManifests *int32 `json:"otfp_manifests,omitempty"` + // Number of responses with the video segment or video manifest MIME type (i.e., application/x-mpegurl, application/vnd.apple.mpegurl, application/f4m, application/dash+xml, application/vnd.ms-sstr+xml, ideo/mp2t, audio/aac, video/f4f, video/x-flv, video/mp4, audio/mp4). + Video *int32 `json:"video,omitempty"` + // Number of responses with the PCI flag turned on. + Pci *int32 `json:"pci,omitempty"` + // Number of requests received over HTTP/2. + HTTP2 *int32 `json:"http2,omitempty"` + // Number of requests received over HTTP/3. + HTTP3 *int32 `json:"http3,omitempty"` + // Number of restarts performed. + Restarts *int32 `json:"restarts,omitempty"` + // Total header bytes received. + ReqHeaderBytes *int32 `json:"req_header_bytes,omitempty"` + // Total body bytes received. + ReqBodyBytes *int32 `json:"req_body_bytes,omitempty"` + // Total header bytes sent to origin. + BereqHeaderBytes *int32 `json:"bereq_header_bytes,omitempty"` + // Total body bytes sent to origin. + BereqBodyBytes *int32 `json:"bereq_body_bytes,omitempty"` + // Number of requests that triggered a WAF rule and were blocked. + WafBlocked *int32 `json:"waf_blocked,omitempty"` + // Number of requests that triggered a WAF rule and were logged. + WafLogged *int32 `json:"waf_logged,omitempty"` + // Number of requests that triggered a WAF rule and were passed. + WafPassed *int32 `json:"waf_passed,omitempty"` + // Total header bytes received from requests that triggered a WAF rule. + AttackReqHeaderBytes *int32 `json:"attack_req_header_bytes,omitempty"` + // Total body bytes received from requests that triggered a WAF rule. + AttackReqBodyBytes *int32 `json:"attack_req_body_bytes,omitempty"` + // Total bytes delivered for requests that triggered a WAF rule and returned a synthetic response. + AttackRespSynthBytes *int32 `json:"attack_resp_synth_bytes,omitempty"` + // Total header bytes received from requests that triggered a WAF rule that was logged. + AttackLoggedReqHeaderBytes *int32 `json:"attack_logged_req_header_bytes,omitempty"` + // Total body bytes received from requests that triggered a WAF rule that was logged. + AttackLoggedReqBodyBytes *int32 `json:"attack_logged_req_body_bytes,omitempty"` + // Total header bytes received from requests that triggered a WAF rule that was blocked. + AttackBlockedReqHeaderBytes *int32 `json:"attack_blocked_req_header_bytes,omitempty"` + // Total body bytes received from requests that triggered a WAF rule that was blocked. + AttackBlockedReqBodyBytes *int32 `json:"attack_blocked_req_body_bytes,omitempty"` + // Total header bytes received from requests that triggered a WAF rule that was passed. + AttackPassedReqHeaderBytes *int32 `json:"attack_passed_req_header_bytes,omitempty"` + // Total body bytes received from requests that triggered a WAF rule that was passed. + AttackPassedReqBodyBytes *int32 `json:"attack_passed_req_body_bytes,omitempty"` + // Total header bytes delivered via a shield. + ShieldRespHeaderBytes *int32 `json:"shield_resp_header_bytes,omitempty"` + // Total body bytes delivered via a shield. + ShieldRespBodyBytes *int32 `json:"shield_resp_body_bytes,omitempty"` + // Total header bytes delivered from the Fastly On-the-Fly Packaging service for video-on-demand. + OtfpRespHeaderBytes *int32 `json:"otfp_resp_header_bytes,omitempty"` + // Total body bytes delivered from the Fastly On-the-Fly Packaging service for video-on-demand. + OtfpRespBodyBytes *int32 `json:"otfp_resp_body_bytes,omitempty"` + // Total header bytes delivered via a shield for the Fastly On-the-Fly Packaging service for video-on-demand. + OtfpShieldRespHeaderBytes *int32 `json:"otfp_shield_resp_header_bytes,omitempty"` + // Total body bytes delivered via a shield for the Fastly On-the-Fly Packaging service for video-on-demand. + OtfpShieldRespBodyBytes *int32 `json:"otfp_shield_resp_body_bytes,omitempty"` + // Total amount of time spent delivering a response via a shield from the Fastly On-the-Fly Packaging service for video-on-demand (in seconds). + OtfpShieldTime *float32 `json:"otfp_shield_time,omitempty"` + // Total amount of time spent delivering a response from the Fastly On-the-Fly Packaging service for video-on-demand (in seconds). + OtfpDeliverTime *float32 `json:"otfp_deliver_time,omitempty"` + // Total header bytes delivered from the Fastly Image Optimizer service, including shield traffic. + ImgoptoRespHeaderBytes *int32 `json:"imgopto_resp_header_bytes,omitempty"` + // Total body bytes delivered from the Fastly Image Optimizer service, including shield traffic. + ImgoptoRespBodyBytes *int32 `json:"imgopto_resp_body_bytes,omitempty"` + // Total header bytes delivered via a shield from the Fastly Image Optimizer service. + ImgoptoShieldRespHeaderBytes *int32 `json:"imgopto_shield_resp_header_bytes,omitempty"` + // Total body bytes delivered via a shield from the Fastly Image Optimizer service. + ImgoptoShieldRespBodyBytes *int32 `json:"imgopto_shield_resp_body_bytes,omitempty"` + // Number of \"Informational\" category status codes delivered. + Status1xx *int32 `json:"status_1xx,omitempty"` + // Number of \"Success\" status codes delivered. + Status2xx *int32 `json:"status_2xx,omitempty"` + // Number of \"Redirection\" codes delivered. + Status3xx *int32 `json:"status_3xx,omitempty"` + // Number of \"Client Error\" codes delivered. + Status4xx *int32 `json:"status_4xx,omitempty"` + // Number of \"Server Error\" codes delivered. + Status5xx *int32 `json:"status_5xx,omitempty"` + // Number of responses sent with status code 200 (Success). + Status200 *int32 `json:"status_200,omitempty"` + // Number of responses sent with status code 204 (No Content). + Status204 *int32 `json:"status_204,omitempty"` + // Number of responses sent with status code 206 (Partial Content). + Status206 *int32 `json:"status_206,omitempty"` + // Number of responses sent with status code 301 (Moved Permanently). + Status301 *int32 `json:"status_301,omitempty"` + // Number of responses sent with status code 302 (Found). + Status302 *int32 `json:"status_302,omitempty"` + // Number of responses sent with status code 304 (Not Modified). + Status304 *int32 `json:"status_304,omitempty"` + // Number of responses sent with status code 400 (Bad Request). + Status400 *int32 `json:"status_400,omitempty"` + // Number of responses sent with status code 401 (Unauthorized). + Status401 *int32 `json:"status_401,omitempty"` + // Number of responses sent with status code 403 (Forbidden). + Status403 *int32 `json:"status_403,omitempty"` + // Number of responses sent with status code 404 (Not Found). + Status404 *int32 `json:"status_404,omitempty"` + // Number of responses sent with status code 406 (Not Acceptable). + Status406 *int32 `json:"status_406,omitempty"` + // Number of responses sent with status code 416 (Range Not Satisfiable). + Status416 *int32 `json:"status_416,omitempty"` + // Number of responses sent with status code 429 (Too Many Requests). + Status429 *int32 `json:"status_429,omitempty"` + // Number of responses sent with status code 500 (Internal Server Error). + Status500 *int32 `json:"status_500,omitempty"` + // Number of responses sent with status code 501 (Not Implemented). + Status501 *int32 `json:"status_501,omitempty"` + // Number of responses sent with status code 502 (Bad Gateway). + Status502 *int32 `json:"status_502,omitempty"` + // Number of responses sent with status code 503 (Service Unavailable). + Status503 *int32 `json:"status_503,omitempty"` + // Number of responses sent with status code 504 (Gateway Timeout). + Status504 *int32 `json:"status_504,omitempty"` + // Number of responses sent with status code 505 (HTTP Version Not Supported). + Status505 *int32 `json:"status_505,omitempty"` + // Number of requests that were designated uncachable. + Uncacheable *int32 `json:"uncacheable,omitempty"` + // Total amount of time spent processing cache passes (in seconds). + PassTime *float32 `json:"pass_time,omitempty"` + // Number of requests that were received over TLS. + TLS *int32 `json:"tls,omitempty"` + // Number of requests received over TLS 1.0. + TLSV10 *int32 `json:"tls_v10,omitempty"` + // Number of requests received over TLS 1.1. + TLSV11 *int32 `json:"tls_v11,omitempty"` + // Number of requests received over TLS 1.2. + TLSV12 *int32 `json:"tls_v12,omitempty"` + // Number of requests received over TLS 1.3. + TLSV13 *int32 `json:"tls_v13,omitempty"` + // Number of objects served that were under 1KB in size. + ObjectSize1k *int32 `json:"object_size_1k,omitempty"` + // Number of objects served that were between 1KB and 10KB in size. + ObjectSize10k *int32 `json:"object_size_10k,omitempty"` + // Number of objects served that were between 10KB and 100KB in size. + ObjectSize100k *int32 `json:"object_size_100k,omitempty"` + // Number of objects served that were between 100KB and 1MB in size. + ObjectSize1m *int32 `json:"object_size_1m,omitempty"` + // Number of objects served that were between 1MB and 10MB in size. + ObjectSize10m *int32 `json:"object_size_10m,omitempty"` + // Number of objects served that were between 10MB and 100MB in size. + ObjectSize100m *int32 `json:"object_size_100m,omitempty"` + // Number of objects served that were between 100MB and 1GB in size. + ObjectSize1g *int32 `json:"object_size_1g,omitempty"` + // Number of objects served that were larger than 1GB in size. + ObjectSizeOther *int32 `json:"object_size_other,omitempty"` + // Time spent inside the `vcl_recv` Varnish subroutine (in nanoseconds). + RecvSubTime *float32 `json:"recv_sub_time,omitempty"` + // Number of executions of the `vcl_recv` Varnish subroutine. + RecvSubCount *int32 `json:"recv_sub_count,omitempty"` + // Time spent inside the `vcl_hash` Varnish subroutine (in nanoseconds). + HashSubTime *float32 `json:"hash_sub_time,omitempty"` + // Number of executions of the `vcl_hash` Varnish subroutine. + HashSubCount *int32 `json:"hash_sub_count,omitempty"` + // Time spent inside the `vcl_miss` Varnish subroutine (in nanoseconds). + MissSubTime *float32 `json:"miss_sub_time,omitempty"` + // Number of executions of the `vcl_miss` Varnish subroutine. + MissSubCount *int32 `json:"miss_sub_count,omitempty"` + // Time spent inside the `vcl_fetch` Varnish subroutine (in nanoseconds). + FetchSubTime *float32 `json:"fetch_sub_time,omitempty"` + // Number of executions of the `vcl_fetch` Varnish subroutine. + FetchSubCount *int32 `json:"fetch_sub_count,omitempty"` + // Time spent inside the `vcl_pass` Varnish subroutine (in nanoseconds). + PassSubTime *float32 `json:"pass_sub_time,omitempty"` + // Number of executions of the `vcl_pass` Varnish subroutine. + PassSubCount *int32 `json:"pass_sub_count,omitempty"` + // Time spent inside the `vcl_pipe` Varnish subroutine (in nanoseconds). + PipeSubTime *float32 `json:"pipe_sub_time,omitempty"` + // Number of executions of the `vcl_pipe` Varnish subroutine. + PipeSubCount *int32 `json:"pipe_sub_count,omitempty"` + // Time spent inside the `vcl_deliver` Varnish subroutine (in nanoseconds). + DeliverSubTime *float32 `json:"deliver_sub_time,omitempty"` + // Number of executions of the `vcl_deliver` Varnish subroutine. + DeliverSubCount *int32 `json:"deliver_sub_count,omitempty"` + // Time spent inside the `vcl_error` Varnish subroutine (in nanoseconds). + ErrorSubTime *float32 `json:"error_sub_time,omitempty"` + // Number of executions of the `vcl_error` Varnish subroutine. + ErrorSubCount *int32 `json:"error_sub_count,omitempty"` + // Time spent inside the `vcl_hit` Varnish subroutine (in nanoseconds). + HitSubTime *float32 `json:"hit_sub_time,omitempty"` + // Number of executions of the `vcl_hit` Varnish subroutine. + HitSubCount *int32 `json:"hit_sub_count,omitempty"` + // Time spent inside the `vcl_prehash` Varnish subroutine (in nanoseconds). + PrehashSubTime *float32 `json:"prehash_sub_time,omitempty"` + // Number of executions of the `vcl_prehash` Varnish subroutine. + PrehashSubCount *int32 `json:"prehash_sub_count,omitempty"` + // Time spent inside the `vcl_predeliver` Varnish subroutine (in nanoseconds). + PredeliverSubTime *float32 `json:"predeliver_sub_time,omitempty"` + // Number of executions of the `vcl_predeliver` Varnish subroutine. + PredeliverSubCount *int32 `json:"predeliver_sub_count,omitempty"` + // Total body bytes delivered for cache hits. + HitRespBodyBytes *int32 `json:"hit_resp_body_bytes,omitempty"` + // Total body bytes delivered for cache misses. + MissRespBodyBytes *int32 `json:"miss_resp_body_bytes,omitempty"` + // Total body bytes delivered for cache passes. + PassRespBodyBytes *int32 `json:"pass_resp_body_bytes,omitempty"` + // Total header bytes received by Compute@Edge. + ComputeReqHeaderBytes *int32 `json:"compute_req_header_bytes,omitempty"` + // Total body bytes received by Compute@Edge. + ComputeReqBodyBytes *int32 `json:"compute_req_body_bytes,omitempty"` + // Total header bytes sent from Compute@Edge to end user. + ComputeRespHeaderBytes *int32 `json:"compute_resp_header_bytes,omitempty"` + // Total body bytes sent from Compute@Edge to end user. + ComputeRespBodyBytes *int32 `json:"compute_resp_body_bytes,omitempty"` + // Number of video responses that came from the Fastly Image Optimizer service. + Imgvideo *int32 `json:"imgvideo,omitempty"` + // Number of video frames that came from the Fastly Image Optimizer service. A video frame is an individual image within a sequence of video. + ImgvideoFrames *int32 `json:"imgvideo_frames,omitempty"` + // Total header bytes of video delivered from the Fastly Image Optimizer service. + ImgvideoRespHeaderBytes *int32 `json:"imgvideo_resp_header_bytes,omitempty"` + // Total body bytes of video delivered from the Fastly Image Optimizer service. + ImgvideoRespBodyBytes *int32 `json:"imgvideo_resp_body_bytes,omitempty"` + // Number of video responses delivered via a shield that came from the Fastly Image Optimizer service. + ImgvideoShield *int32 `json:"imgvideo_shield,omitempty"` + // Number of video frames delivered via a shield that came from the Fastly Image Optimizer service. A video frame is an individual image within a sequence of video. + ImgvideoShieldFrames *int32 `json:"imgvideo_shield_frames,omitempty"` + // Total header bytes of video delivered via a shield from the Fastly Image Optimizer service. + ImgvideoShieldRespHeaderBytes *int32 `json:"imgvideo_shield_resp_header_bytes,omitempty"` + // Total body bytes of video delivered via a shield from the Fastly Image Optimizer service. + ImgvideoShieldRespBodyBytes *int32 `json:"imgvideo_shield_resp_body_bytes,omitempty"` + // Total log bytes sent. + LogBytes *int32 `json:"log_bytes,omitempty"` + // Number of requests sent by end users to Fastly. + EdgeRequests *int32 `json:"edge_requests,omitempty"` + // Total header bytes delivered from Fastly to the end user. + EdgeRespHeaderBytes *int32 `json:"edge_resp_header_bytes,omitempty"` + // Total body bytes delivered from Fastly to the end user. + EdgeRespBodyBytes *int32 `json:"edge_resp_body_bytes,omitempty"` + // Number of responses received from origin with a `304` status code in response to an `If-Modified-Since` or `If-None-Match` request. Under regular scenarios, a revalidation will imply a cache hit. However, if using Fastly Image Optimizer or segmented caching this may result in a cache miss. + OriginRevalidations *int32 `json:"origin_revalidations,omitempty"` + // Number of requests sent to origin. + OriginFetches *int32 `json:"origin_fetches,omitempty"` + // Total request header bytes sent to origin. + OriginFetchHeaderBytes *int32 `json:"origin_fetch_header_bytes,omitempty"` + // Total request body bytes sent to origin. + OriginFetchBodyBytes *int32 `json:"origin_fetch_body_bytes,omitempty"` + // Total header bytes received from origin. + OriginFetchRespHeaderBytes *int32 `json:"origin_fetch_resp_header_bytes,omitempty"` + // Total body bytes received from origin. + OriginFetchRespBodyBytes *int32 `json:"origin_fetch_resp_body_bytes,omitempty"` + // Number of responses received from origin with a `304` status code, in response to an `If-Modified-Since` or `If-None-Match` request to a shield. Under regular scenarios, a revalidation will imply a cache hit. However, if using segmented caching this may result in a cache miss. + ShieldRevalidations *int32 `json:"shield_revalidations,omitempty"` + // Number of requests made from one Fastly POP to another, as part of shielding. + ShieldFetches *int32 `json:"shield_fetches,omitempty"` + // Total request header bytes sent to a shield. + ShieldFetchHeaderBytes *int32 `json:"shield_fetch_header_bytes,omitempty"` + // Total request body bytes sent to a shield. + ShieldFetchBodyBytes *int32 `json:"shield_fetch_body_bytes,omitempty"` + // Total response header bytes sent from a shield to the edge. + ShieldFetchRespHeaderBytes *int32 `json:"shield_fetch_resp_header_bytes,omitempty"` + // Total response body bytes sent from a shield to the edge. + ShieldFetchRespBodyBytes *int32 `json:"shield_fetch_resp_body_bytes,omitempty"` + // Number of `Range` requests to origin for segments of resources when using segmented caching. + SegblockOriginFetches *int32 `json:"segblock_origin_fetches,omitempty"` + // Number of `Range` requests to a shield for segments of resources when using segmented caching. + SegblockShieldFetches *int32 `json:"segblock_shield_fetches,omitempty"` + // Number of \"Informational\" category status codes delivered by Compute@Edge. + ComputeRespStatus1xx *int32 `json:"compute_resp_status_1xx,omitempty"` + // Number of \"Success\" category status codes delivered by Compute@Edge. + ComputeRespStatus2xx *int32 `json:"compute_resp_status_2xx,omitempty"` + // Number of \"Redirection\" category status codes delivered by Compute@Edge. + ComputeRespStatus3xx *int32 `json:"compute_resp_status_3xx,omitempty"` + // Number of \"Client Error\" category status codes delivered by Compute@Edge. + ComputeRespStatus4xx *int32 `json:"compute_resp_status_4xx,omitempty"` + // Number of \"Server Error\" category status codes delivered by Compute@Edge. + ComputeRespStatus5xx *int32 `json:"compute_resp_status_5xx,omitempty"` + // Number of requests sent by end users to Fastly that resulted in a hit at the edge. + EdgeHitRequests *int32 `json:"edge_hit_requests,omitempty"` + // Number of requests sent by end users to Fastly that resulted in a miss at the edge. + EdgeMissRequests *int32 `json:"edge_miss_requests,omitempty"` + // Total header bytes sent to backends (origins) by Compute@Edge. + ComputeBereqHeaderBytes *int32 `json:"compute_bereq_header_bytes,omitempty"` + // Total body bytes sent to backends (origins) by Compute@Edge. + ComputeBereqBodyBytes *int32 `json:"compute_bereq_body_bytes,omitempty"` + // Total header bytes received from backends (origins) by Compute@Edge. + ComputeBerespHeaderBytes *int32 `json:"compute_beresp_header_bytes,omitempty"` + // Total body bytes received from backends (origins) by Compute@Edge. + ComputeBerespBodyBytes *int32 `json:"compute_beresp_body_bytes,omitempty"` + // The total number of completed requests made to backends (origins) that returned cacheable content. + OriginCacheFetches *int32 `json:"origin_cache_fetches,omitempty"` + // The total number of completed requests made to shields that returned cacheable content. + ShieldCacheFetches *int32 `json:"shield_cache_fetches,omitempty"` + // Number of backend requests started. + ComputeBereqs *int32 `json:"compute_bereqs,omitempty"` + // Number of backend request errors, including timeouts. + ComputeBereqErrors *int32 `json:"compute_bereq_errors,omitempty"` + // Number of times a guest exceeded its resource limit, includes heap, stack, globals, and code execution timeout. + ComputeResourceLimitExceeded *int32 `json:"compute_resource_limit_exceeded,omitempty"` + // Number of times a guest exceeded its heap limit. + ComputeHeapLimitExceeded *int32 `json:"compute_heap_limit_exceeded,omitempty"` + // Number of times a guest exceeded its stack limit. + ComputeStackLimitExceeded *int32 `json:"compute_stack_limit_exceeded,omitempty"` + // Number of times a guest exceeded its globals limit. + ComputeGlobalsLimitExceeded *int32 `json:"compute_globals_limit_exceeded,omitempty"` + // Number of times a service experienced a guest code error. + ComputeGuestErrors *int32 `json:"compute_guest_errors,omitempty"` + // Number of times a service experienced a guest runtime error. + ComputeRuntimeErrors *int32 `json:"compute_runtime_errors,omitempty"` + // Body bytes delivered for edge hits. + EdgeHitRespBodyBytes *int32 `json:"edge_hit_resp_body_bytes,omitempty"` + // Header bytes delivered for edge hits. + EdgeHitRespHeaderBytes *int32 `json:"edge_hit_resp_header_bytes,omitempty"` + // Body bytes delivered for edge misses. + EdgeMissRespBodyBytes *int32 `json:"edge_miss_resp_body_bytes,omitempty"` + // Header bytes delivered for edge misses. + EdgeMissRespHeaderBytes *int32 `json:"edge_miss_resp_header_bytes,omitempty"` + // Body bytes received from origin for cacheable content. + OriginCacheFetchRespBodyBytes *int32 `json:"origin_cache_fetch_resp_body_bytes,omitempty"` + // Header bytes received from an origin for cacheable content. + OriginCacheFetchRespHeaderBytes *int32 `json:"origin_cache_fetch_resp_header_bytes,omitempty"` + // Number of requests that resulted in a hit at a shield. + ShieldHitRequests *int32 `json:"shield_hit_requests,omitempty"` + // Number of requests that resulted in a miss at a shield. + ShieldMissRequests *int32 `json:"shield_miss_requests,omitempty"` + // Header bytes delivered for shield hits. + ShieldHitRespHeaderBytes *int32 `json:"shield_hit_resp_header_bytes,omitempty"` + // Body bytes delivered for shield hits. + ShieldHitRespBodyBytes *int32 `json:"shield_hit_resp_body_bytes,omitempty"` + // Header bytes delivered for shield misses. + ShieldMissRespHeaderBytes *int32 `json:"shield_miss_resp_header_bytes,omitempty"` + // Body bytes delivered for shield misses. + ShieldMissRespBodyBytes *int32 `json:"shield_miss_resp_body_bytes,omitempty"` + // Total header bytes received from end users over passthrough WebSocket connections. + WebsocketReqHeaderBytes *int32 `json:"websocket_req_header_bytes,omitempty"` + // Total message content bytes received from end users over passthrough WebSocket connections. + WebsocketReqBodyBytes *int32 `json:"websocket_req_body_bytes,omitempty"` + // Total header bytes sent to end users over passthrough WebSocket connections. + WebsocketRespHeaderBytes *int32 `json:"websocket_resp_header_bytes,omitempty"` + // Total header bytes sent to backends over passthrough WebSocket connections. + WebsocketBereqHeaderBytes *int32 `json:"websocket_bereq_header_bytes,omitempty"` + // Total message content bytes sent to backends over passthrough WebSocket connections. + WebsocketBereqBodyBytes *int32 `json:"websocket_bereq_body_bytes,omitempty"` + // Total header bytes received from backends over passthrough WebSocket connections. + WebsocketBerespHeaderBytes *int32 `json:"websocket_beresp_header_bytes,omitempty"` + // Total message content bytes received from backends over passthrough WebSocket connections. + WebsocketBerespBodyBytes *int32 `json:"websocket_beresp_body_bytes,omitempty"` + // Total duration of passthrough WebSocket connections with end users. + WebsocketConnTimeMs *int32 `json:"websocket_conn_time_ms,omitempty"` + // Total message content bytes sent to end users over passthrough WebSocket connections. + WebsocketRespBodyBytes *int32 `json:"websocket_resp_body_bytes,omitempty"` + // Total published messages received from the publish API endpoint. + FanoutRecvPublishes *int32 `json:"fanout_recv_publishes,omitempty"` + // Total published messages sent to end users. + FanoutSendPublishes *int32 `json:"fanout_send_publishes,omitempty"` + // The total number of class a operations for the KV store. + KvStoreClassAOperations *int32 `json:"kv_store_class_a_operations,omitempty"` + // The total number of class b operations for the KV store. + KvStoreClassBOperations *int32 `json:"kv_store_class_b_operations,omitempty"` + // Use kv_store_class_a_operations. + // Deprecated + ObjectStoreClassAOperations *int32 `json:"object_store_class_a_operations,omitempty"` + // Use kv_store_class_b_operations. + // Deprecated + ObjectStoreClassBOperations *int32 `json:"object_store_class_b_operations,omitempty"` + // Total header bytes received from end users over Fanout connections. + FanoutReqHeaderBytes *int32 `json:"fanout_req_header_bytes,omitempty"` + // Total body or message content bytes received from end users over Fanout connections. + FanoutReqBodyBytes *int32 `json:"fanout_req_body_bytes,omitempty"` + // Total header bytes sent to end users over Fanout connections. + FanoutRespHeaderBytes *int32 `json:"fanout_resp_header_bytes,omitempty"` + // Total body or message content bytes sent to end users over Fanout connections, excluding published message content. + FanoutRespBodyBytes *int32 `json:"fanout_resp_body_bytes,omitempty"` + // Total header bytes sent to backends over Fanout connections. + FanoutBereqHeaderBytes *int32 `json:"fanout_bereq_header_bytes,omitempty"` + // Total body or message content bytes sent to backends over Fanout connections. + FanoutBereqBodyBytes *int32 `json:"fanout_bereq_body_bytes,omitempty"` + // Total header bytes received from backends over Fanout connections. + FanoutBerespHeaderBytes *int32 `json:"fanout_beresp_header_bytes,omitempty"` + // Total body or message content bytes received from backends over Fanout connections. + FanoutBerespBodyBytes *int32 `json:"fanout_beresp_body_bytes,omitempty"` + // Total duration of Fanout connections with end users. + FanoutConnTimeMs *int32 `json:"fanout_conn_time_ms,omitempty"` + // For HTTP/2, the number of connections the limit-streams action was applied to. The limit-streams action caps the allowed number of concurrent streams in a connection. + DdosActionLimitStreamsConnections *int32 `json:"ddos_action_limit_streams_connections,omitempty"` + // For HTTP/2, the number of requests made on a connection for which the limit-streams action was taken. The limit-streams action caps the allowed number of concurrent streams in a connection. + DdosActionLimitStreamsRequests *int32 `json:"ddos_action_limit_streams_requests,omitempty"` + // The number of times the tarpit-accept action was taken. The tarpit-accept action adds a delay when accepting future connections. + DdosActionTarpitAccept *int32 `json:"ddos_action_tarpit_accept,omitempty"` + // The number of times the tarpit action was taken. The tarpit action delays writing the response to the client. + DdosActionTarpit *int32 `json:"ddos_action_tarpit,omitempty"` + // The number of times the close action was taken. The close action aborts the connection as soon as possible. The close action takes effect either right after accept, right after the client hello, or right after the response was sent. + DdosActionClose *int32 `json:"ddos_action_close,omitempty"` + // The number of times the blackhole action was taken. The blackhole action quietly closes a TCP connection without sending a reset. The blackhole action quietly closes a TCP connection without notifying its peer (all TCP state is dropped). + DdosActionBlackhole *int32 `json:"ddos_action_blackhole,omitempty"` + AdditionalProperties map[string]any +} + +type _RealtimeEntryAggregated RealtimeEntryAggregated + +// NewRealtimeEntryAggregated instantiates a new RealtimeEntryAggregated object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewRealtimeEntryAggregated() *RealtimeEntryAggregated { + this := RealtimeEntryAggregated{} + return &this +} + +// NewRealtimeEntryAggregatedWithDefaults instantiates a new RealtimeEntryAggregated object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewRealtimeEntryAggregatedWithDefaults() *RealtimeEntryAggregated { + this := RealtimeEntryAggregated{} + return &this +} + +// GetRequests returns the Requests field value if set, zero value otherwise. +func (o *RealtimeEntryAggregated) GetRequests() int32 { + if o == nil || o.Requests == nil { + var ret int32 + return ret + } + return *o.Requests +} + +// GetRequestsOk returns a tuple with the Requests field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealtimeEntryAggregated) GetRequestsOk() (*int32, bool) { + if o == nil || o.Requests == nil { + return nil, false + } + return o.Requests, true +} + +// HasRequests returns a boolean if a field has been set. +func (o *RealtimeEntryAggregated) HasRequests() bool { + if o != nil && o.Requests != nil { + return true + } + + return false +} + +// SetRequests gets a reference to the given int32 and assigns it to the Requests field. +func (o *RealtimeEntryAggregated) SetRequests(v int32) { + o.Requests = &v +} + +// GetLogging returns the Logging field value if set, zero value otherwise. +func (o *RealtimeEntryAggregated) GetLogging() int32 { + if o == nil || o.Logging == nil { + var ret int32 + return ret + } + return *o.Logging +} + +// GetLoggingOk returns a tuple with the Logging field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealtimeEntryAggregated) GetLoggingOk() (*int32, bool) { + if o == nil || o.Logging == nil { + return nil, false + } + return o.Logging, true +} + +// HasLogging returns a boolean if a field has been set. +func (o *RealtimeEntryAggregated) HasLogging() bool { + if o != nil && o.Logging != nil { + return true + } + + return false +} + +// SetLogging gets a reference to the given int32 and assigns it to the Logging field. +func (o *RealtimeEntryAggregated) SetLogging(v int32) { + o.Logging = &v +} + +// GetLog returns the Log field value if set, zero value otherwise. +func (o *RealtimeEntryAggregated) GetLog() int32 { + if o == nil || o.Log == nil { + var ret int32 + return ret + } + return *o.Log +} + +// GetLogOk returns a tuple with the Log field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealtimeEntryAggregated) GetLogOk() (*int32, bool) { + if o == nil || o.Log == nil { + return nil, false + } + return o.Log, true +} + +// HasLog returns a boolean if a field has been set. +func (o *RealtimeEntryAggregated) HasLog() bool { + if o != nil && o.Log != nil { + return true + } + + return false +} + +// SetLog gets a reference to the given int32 and assigns it to the Log field. +func (o *RealtimeEntryAggregated) SetLog(v int32) { + o.Log = &v +} + +// GetRespHeaderBytes returns the RespHeaderBytes field value if set, zero value otherwise. +func (o *RealtimeEntryAggregated) GetRespHeaderBytes() int32 { + if o == nil || o.RespHeaderBytes == nil { + var ret int32 + return ret + } + return *o.RespHeaderBytes +} + +// GetRespHeaderBytesOk returns a tuple with the RespHeaderBytes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealtimeEntryAggregated) GetRespHeaderBytesOk() (*int32, bool) { + if o == nil || o.RespHeaderBytes == nil { + return nil, false + } + return o.RespHeaderBytes, true +} + +// HasRespHeaderBytes returns a boolean if a field has been set. +func (o *RealtimeEntryAggregated) HasRespHeaderBytes() bool { + if o != nil && o.RespHeaderBytes != nil { + return true + } + + return false +} + +// SetRespHeaderBytes gets a reference to the given int32 and assigns it to the RespHeaderBytes field. +func (o *RealtimeEntryAggregated) SetRespHeaderBytes(v int32) { + o.RespHeaderBytes = &v +} + +// GetHeaderSize returns the HeaderSize field value if set, zero value otherwise. +func (o *RealtimeEntryAggregated) GetHeaderSize() int32 { + if o == nil || o.HeaderSize == nil { + var ret int32 + return ret + } + return *o.HeaderSize +} + +// GetHeaderSizeOk returns a tuple with the HeaderSize field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealtimeEntryAggregated) GetHeaderSizeOk() (*int32, bool) { + if o == nil || o.HeaderSize == nil { + return nil, false + } + return o.HeaderSize, true +} + +// HasHeaderSize returns a boolean if a field has been set. +func (o *RealtimeEntryAggregated) HasHeaderSize() bool { + if o != nil && o.HeaderSize != nil { + return true + } + + return false +} + +// SetHeaderSize gets a reference to the given int32 and assigns it to the HeaderSize field. +func (o *RealtimeEntryAggregated) SetHeaderSize(v int32) { + o.HeaderSize = &v +} + +// GetRespBodyBytes returns the RespBodyBytes field value if set, zero value otherwise. +func (o *RealtimeEntryAggregated) GetRespBodyBytes() int32 { + if o == nil || o.RespBodyBytes == nil { + var ret int32 + return ret + } + return *o.RespBodyBytes +} + +// GetRespBodyBytesOk returns a tuple with the RespBodyBytes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealtimeEntryAggregated) GetRespBodyBytesOk() (*int32, bool) { + if o == nil || o.RespBodyBytes == nil { + return nil, false + } + return o.RespBodyBytes, true +} + +// HasRespBodyBytes returns a boolean if a field has been set. +func (o *RealtimeEntryAggregated) HasRespBodyBytes() bool { + if o != nil && o.RespBodyBytes != nil { + return true + } + + return false +} + +// SetRespBodyBytes gets a reference to the given int32 and assigns it to the RespBodyBytes field. +func (o *RealtimeEntryAggregated) SetRespBodyBytes(v int32) { + o.RespBodyBytes = &v +} + +// GetBodySize returns the BodySize field value if set, zero value otherwise. +func (o *RealtimeEntryAggregated) GetBodySize() int32 { + if o == nil || o.BodySize == nil { + var ret int32 + return ret + } + return *o.BodySize +} + +// GetBodySizeOk returns a tuple with the BodySize field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealtimeEntryAggregated) GetBodySizeOk() (*int32, bool) { + if o == nil || o.BodySize == nil { + return nil, false + } + return o.BodySize, true +} + +// HasBodySize returns a boolean if a field has been set. +func (o *RealtimeEntryAggregated) HasBodySize() bool { + if o != nil && o.BodySize != nil { + return true + } + + return false +} + +// SetBodySize gets a reference to the given int32 and assigns it to the BodySize field. +func (o *RealtimeEntryAggregated) SetBodySize(v int32) { + o.BodySize = &v +} + +// GetHits returns the Hits field value if set, zero value otherwise. +func (o *RealtimeEntryAggregated) GetHits() int32 { + if o == nil || o.Hits == nil { + var ret int32 + return ret + } + return *o.Hits +} + +// GetHitsOk returns a tuple with the Hits field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealtimeEntryAggregated) GetHitsOk() (*int32, bool) { + if o == nil || o.Hits == nil { + return nil, false + } + return o.Hits, true +} + +// HasHits returns a boolean if a field has been set. +func (o *RealtimeEntryAggregated) HasHits() bool { + if o != nil && o.Hits != nil { + return true + } + + return false +} + +// SetHits gets a reference to the given int32 and assigns it to the Hits field. +func (o *RealtimeEntryAggregated) SetHits(v int32) { + o.Hits = &v +} + +// GetMiss returns the Miss field value if set, zero value otherwise. +func (o *RealtimeEntryAggregated) GetMiss() int32 { + if o == nil || o.Miss == nil { + var ret int32 + return ret + } + return *o.Miss +} + +// GetMissOk returns a tuple with the Miss field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealtimeEntryAggregated) GetMissOk() (*int32, bool) { + if o == nil || o.Miss == nil { + return nil, false + } + return o.Miss, true +} + +// HasMiss returns a boolean if a field has been set. +func (o *RealtimeEntryAggregated) HasMiss() bool { + if o != nil && o.Miss != nil { + return true + } + + return false +} + +// SetMiss gets a reference to the given int32 and assigns it to the Miss field. +func (o *RealtimeEntryAggregated) SetMiss(v int32) { + o.Miss = &v +} + +// GetPass returns the Pass field value if set, zero value otherwise. +func (o *RealtimeEntryAggregated) GetPass() int32 { + if o == nil || o.Pass == nil { + var ret int32 + return ret + } + return *o.Pass +} + +// GetPassOk returns a tuple with the Pass field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealtimeEntryAggregated) GetPassOk() (*int32, bool) { + if o == nil || o.Pass == nil { + return nil, false + } + return o.Pass, true +} + +// HasPass returns a boolean if a field has been set. +func (o *RealtimeEntryAggregated) HasPass() bool { + if o != nil && o.Pass != nil { + return true + } + + return false +} + +// SetPass gets a reference to the given int32 and assigns it to the Pass field. +func (o *RealtimeEntryAggregated) SetPass(v int32) { + o.Pass = &v +} + +// GetSynth returns the Synth field value if set, zero value otherwise. +func (o *RealtimeEntryAggregated) GetSynth() int32 { + if o == nil || o.Synth == nil { + var ret int32 + return ret + } + return *o.Synth +} + +// GetSynthOk returns a tuple with the Synth field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealtimeEntryAggregated) GetSynthOk() (*int32, bool) { + if o == nil || o.Synth == nil { + return nil, false + } + return o.Synth, true +} + +// HasSynth returns a boolean if a field has been set. +func (o *RealtimeEntryAggregated) HasSynth() bool { + if o != nil && o.Synth != nil { + return true + } + + return false +} + +// SetSynth gets a reference to the given int32 and assigns it to the Synth field. +func (o *RealtimeEntryAggregated) SetSynth(v int32) { + o.Synth = &v +} + +// GetErrors returns the Errors field value if set, zero value otherwise. +func (o *RealtimeEntryAggregated) GetErrors() int32 { + if o == nil || o.Errors == nil { + var ret int32 + return ret + } + return *o.Errors +} + +// GetErrorsOk returns a tuple with the Errors field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealtimeEntryAggregated) GetErrorsOk() (*int32, bool) { + if o == nil || o.Errors == nil { + return nil, false + } + return o.Errors, true +} + +// HasErrors returns a boolean if a field has been set. +func (o *RealtimeEntryAggregated) HasErrors() bool { + if o != nil && o.Errors != nil { + return true + } + + return false +} + +// SetErrors gets a reference to the given int32 and assigns it to the Errors field. +func (o *RealtimeEntryAggregated) SetErrors(v int32) { + o.Errors = &v +} + +// GetHitsTime returns the HitsTime field value if set, zero value otherwise. +func (o *RealtimeEntryAggregated) GetHitsTime() float32 { + if o == nil || o.HitsTime == nil { + var ret float32 + return ret + } + return *o.HitsTime +} + +// GetHitsTimeOk returns a tuple with the HitsTime field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealtimeEntryAggregated) GetHitsTimeOk() (*float32, bool) { + if o == nil || o.HitsTime == nil { + return nil, false + } + return o.HitsTime, true +} + +// HasHitsTime returns a boolean if a field has been set. +func (o *RealtimeEntryAggregated) HasHitsTime() bool { + if o != nil && o.HitsTime != nil { + return true + } + + return false +} + +// SetHitsTime gets a reference to the given float32 and assigns it to the HitsTime field. +func (o *RealtimeEntryAggregated) SetHitsTime(v float32) { + o.HitsTime = &v +} + +// GetMissTime returns the MissTime field value if set, zero value otherwise. +func (o *RealtimeEntryAggregated) GetMissTime() float32 { + if o == nil || o.MissTime == nil { + var ret float32 + return ret + } + return *o.MissTime +} + +// GetMissTimeOk returns a tuple with the MissTime field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealtimeEntryAggregated) GetMissTimeOk() (*float32, bool) { + if o == nil || o.MissTime == nil { + return nil, false + } + return o.MissTime, true +} + +// HasMissTime returns a boolean if a field has been set. +func (o *RealtimeEntryAggregated) HasMissTime() bool { + if o != nil && o.MissTime != nil { + return true + } + + return false +} + +// SetMissTime gets a reference to the given float32 and assigns it to the MissTime field. +func (o *RealtimeEntryAggregated) SetMissTime(v float32) { + o.MissTime = &v +} + +// GetMissHistogram returns the MissHistogram field value if set, zero value otherwise. +func (o *RealtimeEntryAggregated) GetMissHistogram() map[string]map[string]any { + if o == nil || o.MissHistogram == nil { + var ret map[string]map[string]any + return ret + } + return o.MissHistogram +} + +// GetMissHistogramOk returns a tuple with the MissHistogram field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealtimeEntryAggregated) GetMissHistogramOk() (map[string]map[string]any, bool) { + if o == nil || o.MissHistogram == nil { + return nil, false + } + return o.MissHistogram, true +} + +// HasMissHistogram returns a boolean if a field has been set. +func (o *RealtimeEntryAggregated) HasMissHistogram() bool { + if o != nil && o.MissHistogram != nil { + return true + } + + return false +} + +// SetMissHistogram gets a reference to the given map[string]map[string]any and assigns it to the MissHistogram field. +func (o *RealtimeEntryAggregated) SetMissHistogram(v map[string]map[string]any) { + o.MissHistogram = v +} + +// GetComputeRequests returns the ComputeRequests field value if set, zero value otherwise. +func (o *RealtimeEntryAggregated) GetComputeRequests() int32 { + if o == nil || o.ComputeRequests == nil { + var ret int32 + return ret + } + return *o.ComputeRequests +} + +// GetComputeRequestsOk returns a tuple with the ComputeRequests field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealtimeEntryAggregated) GetComputeRequestsOk() (*int32, bool) { + if o == nil || o.ComputeRequests == nil { + return nil, false + } + return o.ComputeRequests, true +} + +// HasComputeRequests returns a boolean if a field has been set. +func (o *RealtimeEntryAggregated) HasComputeRequests() bool { + if o != nil && o.ComputeRequests != nil { + return true + } + + return false +} + +// SetComputeRequests gets a reference to the given int32 and assigns it to the ComputeRequests field. +func (o *RealtimeEntryAggregated) SetComputeRequests(v int32) { + o.ComputeRequests = &v +} + +// GetComputeExecutionTimeMs returns the ComputeExecutionTimeMs field value if set, zero value otherwise. +func (o *RealtimeEntryAggregated) GetComputeExecutionTimeMs() float32 { + if o == nil || o.ComputeExecutionTimeMs == nil { + var ret float32 + return ret + } + return *o.ComputeExecutionTimeMs +} + +// GetComputeExecutionTimeMsOk returns a tuple with the ComputeExecutionTimeMs field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealtimeEntryAggregated) GetComputeExecutionTimeMsOk() (*float32, bool) { + if o == nil || o.ComputeExecutionTimeMs == nil { + return nil, false + } + return o.ComputeExecutionTimeMs, true +} + +// HasComputeExecutionTimeMs returns a boolean if a field has been set. +func (o *RealtimeEntryAggregated) HasComputeExecutionTimeMs() bool { + if o != nil && o.ComputeExecutionTimeMs != nil { + return true + } + + return false +} + +// SetComputeExecutionTimeMs gets a reference to the given float32 and assigns it to the ComputeExecutionTimeMs field. +func (o *RealtimeEntryAggregated) SetComputeExecutionTimeMs(v float32) { + o.ComputeExecutionTimeMs = &v +} + +// GetComputeRAMUsed returns the ComputeRAMUsed field value if set, zero value otherwise. +func (o *RealtimeEntryAggregated) GetComputeRAMUsed() int32 { + if o == nil || o.ComputeRAMUsed == nil { + var ret int32 + return ret + } + return *o.ComputeRAMUsed +} + +// GetComputeRAMUsedOk returns a tuple with the ComputeRAMUsed field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealtimeEntryAggregated) GetComputeRAMUsedOk() (*int32, bool) { + if o == nil || o.ComputeRAMUsed == nil { + return nil, false + } + return o.ComputeRAMUsed, true +} + +// HasComputeRAMUsed returns a boolean if a field has been set. +func (o *RealtimeEntryAggregated) HasComputeRAMUsed() bool { + if o != nil && o.ComputeRAMUsed != nil { + return true + } + + return false +} + +// SetComputeRAMUsed gets a reference to the given int32 and assigns it to the ComputeRAMUsed field. +func (o *RealtimeEntryAggregated) SetComputeRAMUsed(v int32) { + o.ComputeRAMUsed = &v +} + +// GetComputeRequestTimeMs returns the ComputeRequestTimeMs field value if set, zero value otherwise. +func (o *RealtimeEntryAggregated) GetComputeRequestTimeMs() float32 { + if o == nil || o.ComputeRequestTimeMs == nil { + var ret float32 + return ret + } + return *o.ComputeRequestTimeMs +} + +// GetComputeRequestTimeMsOk returns a tuple with the ComputeRequestTimeMs field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealtimeEntryAggregated) GetComputeRequestTimeMsOk() (*float32, bool) { + if o == nil || o.ComputeRequestTimeMs == nil { + return nil, false + } + return o.ComputeRequestTimeMs, true +} + +// HasComputeRequestTimeMs returns a boolean if a field has been set. +func (o *RealtimeEntryAggregated) HasComputeRequestTimeMs() bool { + if o != nil && o.ComputeRequestTimeMs != nil { + return true + } + + return false +} + +// SetComputeRequestTimeMs gets a reference to the given float32 and assigns it to the ComputeRequestTimeMs field. +func (o *RealtimeEntryAggregated) SetComputeRequestTimeMs(v float32) { + o.ComputeRequestTimeMs = &v +} + +// GetComputeRequestTimeBilledMs returns the ComputeRequestTimeBilledMs field value if set, zero value otherwise. +func (o *RealtimeEntryAggregated) GetComputeRequestTimeBilledMs() float32 { + if o == nil || o.ComputeRequestTimeBilledMs == nil { + var ret float32 + return ret + } + return *o.ComputeRequestTimeBilledMs +} + +// GetComputeRequestTimeBilledMsOk returns a tuple with the ComputeRequestTimeBilledMs field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealtimeEntryAggregated) GetComputeRequestTimeBilledMsOk() (*float32, bool) { + if o == nil || o.ComputeRequestTimeBilledMs == nil { + return nil, false + } + return o.ComputeRequestTimeBilledMs, true +} + +// HasComputeRequestTimeBilledMs returns a boolean if a field has been set. +func (o *RealtimeEntryAggregated) HasComputeRequestTimeBilledMs() bool { + if o != nil && o.ComputeRequestTimeBilledMs != nil { + return true + } + + return false +} + +// SetComputeRequestTimeBilledMs gets a reference to the given float32 and assigns it to the ComputeRequestTimeBilledMs field. +func (o *RealtimeEntryAggregated) SetComputeRequestTimeBilledMs(v float32) { + o.ComputeRequestTimeBilledMs = &v +} + +// GetShield returns the Shield field value if set, zero value otherwise. +func (o *RealtimeEntryAggregated) GetShield() int32 { + if o == nil || o.Shield == nil { + var ret int32 + return ret + } + return *o.Shield +} + +// GetShieldOk returns a tuple with the Shield field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealtimeEntryAggregated) GetShieldOk() (*int32, bool) { + if o == nil || o.Shield == nil { + return nil, false + } + return o.Shield, true +} + +// HasShield returns a boolean if a field has been set. +func (o *RealtimeEntryAggregated) HasShield() bool { + if o != nil && o.Shield != nil { + return true + } + + return false +} + +// SetShield gets a reference to the given int32 and assigns it to the Shield field. +func (o *RealtimeEntryAggregated) SetShield(v int32) { + o.Shield = &v +} + +// GetIpv6 returns the Ipv6 field value if set, zero value otherwise. +func (o *RealtimeEntryAggregated) GetIpv6() int32 { + if o == nil || o.Ipv6 == nil { + var ret int32 + return ret + } + return *o.Ipv6 +} + +// GetIpv6Ok returns a tuple with the Ipv6 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealtimeEntryAggregated) GetIpv6Ok() (*int32, bool) { + if o == nil || o.Ipv6 == nil { + return nil, false + } + return o.Ipv6, true +} + +// HasIpv6 returns a boolean if a field has been set. +func (o *RealtimeEntryAggregated) HasIpv6() bool { + if o != nil && o.Ipv6 != nil { + return true + } + + return false +} + +// SetIpv6 gets a reference to the given int32 and assigns it to the Ipv6 field. +func (o *RealtimeEntryAggregated) SetIpv6(v int32) { + o.Ipv6 = &v +} + +// GetImgopto returns the Imgopto field value if set, zero value otherwise. +func (o *RealtimeEntryAggregated) GetImgopto() int32 { + if o == nil || o.Imgopto == nil { + var ret int32 + return ret + } + return *o.Imgopto +} + +// GetImgoptoOk returns a tuple with the Imgopto field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealtimeEntryAggregated) GetImgoptoOk() (*int32, bool) { + if o == nil || o.Imgopto == nil { + return nil, false + } + return o.Imgopto, true +} + +// HasImgopto returns a boolean if a field has been set. +func (o *RealtimeEntryAggregated) HasImgopto() bool { + if o != nil && o.Imgopto != nil { + return true + } + + return false +} + +// SetImgopto gets a reference to the given int32 and assigns it to the Imgopto field. +func (o *RealtimeEntryAggregated) SetImgopto(v int32) { + o.Imgopto = &v +} + +// GetImgoptoShield returns the ImgoptoShield field value if set, zero value otherwise. +func (o *RealtimeEntryAggregated) GetImgoptoShield() int32 { + if o == nil || o.ImgoptoShield == nil { + var ret int32 + return ret + } + return *o.ImgoptoShield +} + +// GetImgoptoShieldOk returns a tuple with the ImgoptoShield field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealtimeEntryAggregated) GetImgoptoShieldOk() (*int32, bool) { + if o == nil || o.ImgoptoShield == nil { + return nil, false + } + return o.ImgoptoShield, true +} + +// HasImgoptoShield returns a boolean if a field has been set. +func (o *RealtimeEntryAggregated) HasImgoptoShield() bool { + if o != nil && o.ImgoptoShield != nil { + return true + } + + return false +} + +// SetImgoptoShield gets a reference to the given int32 and assigns it to the ImgoptoShield field. +func (o *RealtimeEntryAggregated) SetImgoptoShield(v int32) { + o.ImgoptoShield = &v +} + +// GetImgoptoTransforms returns the ImgoptoTransforms field value if set, zero value otherwise. +func (o *RealtimeEntryAggregated) GetImgoptoTransforms() int32 { + if o == nil || o.ImgoptoTransforms == nil { + var ret int32 + return ret + } + return *o.ImgoptoTransforms +} + +// GetImgoptoTransformsOk returns a tuple with the ImgoptoTransforms field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealtimeEntryAggregated) GetImgoptoTransformsOk() (*int32, bool) { + if o == nil || o.ImgoptoTransforms == nil { + return nil, false + } + return o.ImgoptoTransforms, true +} + +// HasImgoptoTransforms returns a boolean if a field has been set. +func (o *RealtimeEntryAggregated) HasImgoptoTransforms() bool { + if o != nil && o.ImgoptoTransforms != nil { + return true + } + + return false +} + +// SetImgoptoTransforms gets a reference to the given int32 and assigns it to the ImgoptoTransforms field. +func (o *RealtimeEntryAggregated) SetImgoptoTransforms(v int32) { + o.ImgoptoTransforms = &v +} + +// GetOtfp returns the Otfp field value if set, zero value otherwise. +func (o *RealtimeEntryAggregated) GetOtfp() int32 { + if o == nil || o.Otfp == nil { + var ret int32 + return ret + } + return *o.Otfp +} + +// GetOtfpOk returns a tuple with the Otfp field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealtimeEntryAggregated) GetOtfpOk() (*int32, bool) { + if o == nil || o.Otfp == nil { + return nil, false + } + return o.Otfp, true +} + +// HasOtfp returns a boolean if a field has been set. +func (o *RealtimeEntryAggregated) HasOtfp() bool { + if o != nil && o.Otfp != nil { + return true + } + + return false +} + +// SetOtfp gets a reference to the given int32 and assigns it to the Otfp field. +func (o *RealtimeEntryAggregated) SetOtfp(v int32) { + o.Otfp = &v +} + +// GetOtfpShield returns the OtfpShield field value if set, zero value otherwise. +func (o *RealtimeEntryAggregated) GetOtfpShield() int32 { + if o == nil || o.OtfpShield == nil { + var ret int32 + return ret + } + return *o.OtfpShield +} + +// GetOtfpShieldOk returns a tuple with the OtfpShield field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealtimeEntryAggregated) GetOtfpShieldOk() (*int32, bool) { + if o == nil || o.OtfpShield == nil { + return nil, false + } + return o.OtfpShield, true +} + +// HasOtfpShield returns a boolean if a field has been set. +func (o *RealtimeEntryAggregated) HasOtfpShield() bool { + if o != nil && o.OtfpShield != nil { + return true + } + + return false +} + +// SetOtfpShield gets a reference to the given int32 and assigns it to the OtfpShield field. +func (o *RealtimeEntryAggregated) SetOtfpShield(v int32) { + o.OtfpShield = &v +} + +// GetOtfpManifests returns the OtfpManifests field value if set, zero value otherwise. +func (o *RealtimeEntryAggregated) GetOtfpManifests() int32 { + if o == nil || o.OtfpManifests == nil { + var ret int32 + return ret + } + return *o.OtfpManifests +} + +// GetOtfpManifestsOk returns a tuple with the OtfpManifests field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealtimeEntryAggregated) GetOtfpManifestsOk() (*int32, bool) { + if o == nil || o.OtfpManifests == nil { + return nil, false + } + return o.OtfpManifests, true +} + +// HasOtfpManifests returns a boolean if a field has been set. +func (o *RealtimeEntryAggregated) HasOtfpManifests() bool { + if o != nil && o.OtfpManifests != nil { + return true + } + + return false +} + +// SetOtfpManifests gets a reference to the given int32 and assigns it to the OtfpManifests field. +func (o *RealtimeEntryAggregated) SetOtfpManifests(v int32) { + o.OtfpManifests = &v +} + +// GetVideo returns the Video field value if set, zero value otherwise. +func (o *RealtimeEntryAggregated) GetVideo() int32 { + if o == nil || o.Video == nil { + var ret int32 + return ret + } + return *o.Video +} + +// GetVideoOk returns a tuple with the Video field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealtimeEntryAggregated) GetVideoOk() (*int32, bool) { + if o == nil || o.Video == nil { + return nil, false + } + return o.Video, true +} + +// HasVideo returns a boolean if a field has been set. +func (o *RealtimeEntryAggregated) HasVideo() bool { + if o != nil && o.Video != nil { + return true + } + + return false +} + +// SetVideo gets a reference to the given int32 and assigns it to the Video field. +func (o *RealtimeEntryAggregated) SetVideo(v int32) { + o.Video = &v +} + +// GetPci returns the Pci field value if set, zero value otherwise. +func (o *RealtimeEntryAggregated) GetPci() int32 { + if o == nil || o.Pci == nil { + var ret int32 + return ret + } + return *o.Pci +} + +// GetPciOk returns a tuple with the Pci field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealtimeEntryAggregated) GetPciOk() (*int32, bool) { + if o == nil || o.Pci == nil { + return nil, false + } + return o.Pci, true +} + +// HasPci returns a boolean if a field has been set. +func (o *RealtimeEntryAggregated) HasPci() bool { + if o != nil && o.Pci != nil { + return true + } + + return false +} + +// SetPci gets a reference to the given int32 and assigns it to the Pci field. +func (o *RealtimeEntryAggregated) SetPci(v int32) { + o.Pci = &v +} + +// GetHTTP2 returns the HTTP2 field value if set, zero value otherwise. +func (o *RealtimeEntryAggregated) GetHTTP2() int32 { + if o == nil || o.HTTP2 == nil { + var ret int32 + return ret + } + return *o.HTTP2 +} + +// GetHTTP2Ok returns a tuple with the HTTP2 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealtimeEntryAggregated) GetHTTP2Ok() (*int32, bool) { + if o == nil || o.HTTP2 == nil { + return nil, false + } + return o.HTTP2, true +} + +// HasHTTP2 returns a boolean if a field has been set. +func (o *RealtimeEntryAggregated) HasHTTP2() bool { + if o != nil && o.HTTP2 != nil { + return true + } + + return false +} + +// SetHTTP2 gets a reference to the given int32 and assigns it to the HTTP2 field. +func (o *RealtimeEntryAggregated) SetHTTP2(v int32) { + o.HTTP2 = &v +} + +// GetHTTP3 returns the HTTP3 field value if set, zero value otherwise. +func (o *RealtimeEntryAggregated) GetHTTP3() int32 { + if o == nil || o.HTTP3 == nil { + var ret int32 + return ret + } + return *o.HTTP3 +} + +// GetHTTP3Ok returns a tuple with the HTTP3 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealtimeEntryAggregated) GetHTTP3Ok() (*int32, bool) { + if o == nil || o.HTTP3 == nil { + return nil, false + } + return o.HTTP3, true +} + +// HasHTTP3 returns a boolean if a field has been set. +func (o *RealtimeEntryAggregated) HasHTTP3() bool { + if o != nil && o.HTTP3 != nil { + return true + } + + return false +} + +// SetHTTP3 gets a reference to the given int32 and assigns it to the HTTP3 field. +func (o *RealtimeEntryAggregated) SetHTTP3(v int32) { + o.HTTP3 = &v +} + +// GetRestarts returns the Restarts field value if set, zero value otherwise. +func (o *RealtimeEntryAggregated) GetRestarts() int32 { + if o == nil || o.Restarts == nil { + var ret int32 + return ret + } + return *o.Restarts +} + +// GetRestartsOk returns a tuple with the Restarts field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealtimeEntryAggregated) GetRestartsOk() (*int32, bool) { + if o == nil || o.Restarts == nil { + return nil, false + } + return o.Restarts, true +} + +// HasRestarts returns a boolean if a field has been set. +func (o *RealtimeEntryAggregated) HasRestarts() bool { + if o != nil && o.Restarts != nil { + return true + } + + return false +} + +// SetRestarts gets a reference to the given int32 and assigns it to the Restarts field. +func (o *RealtimeEntryAggregated) SetRestarts(v int32) { + o.Restarts = &v +} + +// GetReqHeaderBytes returns the ReqHeaderBytes field value if set, zero value otherwise. +func (o *RealtimeEntryAggregated) GetReqHeaderBytes() int32 { + if o == nil || o.ReqHeaderBytes == nil { + var ret int32 + return ret + } + return *o.ReqHeaderBytes +} + +// GetReqHeaderBytesOk returns a tuple with the ReqHeaderBytes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealtimeEntryAggregated) GetReqHeaderBytesOk() (*int32, bool) { + if o == nil || o.ReqHeaderBytes == nil { + return nil, false + } + return o.ReqHeaderBytes, true +} + +// HasReqHeaderBytes returns a boolean if a field has been set. +func (o *RealtimeEntryAggregated) HasReqHeaderBytes() bool { + if o != nil && o.ReqHeaderBytes != nil { + return true + } + + return false +} + +// SetReqHeaderBytes gets a reference to the given int32 and assigns it to the ReqHeaderBytes field. +func (o *RealtimeEntryAggregated) SetReqHeaderBytes(v int32) { + o.ReqHeaderBytes = &v +} + +// GetReqBodyBytes returns the ReqBodyBytes field value if set, zero value otherwise. +func (o *RealtimeEntryAggregated) GetReqBodyBytes() int32 { + if o == nil || o.ReqBodyBytes == nil { + var ret int32 + return ret + } + return *o.ReqBodyBytes +} + +// GetReqBodyBytesOk returns a tuple with the ReqBodyBytes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealtimeEntryAggregated) GetReqBodyBytesOk() (*int32, bool) { + if o == nil || o.ReqBodyBytes == nil { + return nil, false + } + return o.ReqBodyBytes, true +} + +// HasReqBodyBytes returns a boolean if a field has been set. +func (o *RealtimeEntryAggregated) HasReqBodyBytes() bool { + if o != nil && o.ReqBodyBytes != nil { + return true + } + + return false +} + +// SetReqBodyBytes gets a reference to the given int32 and assigns it to the ReqBodyBytes field. +func (o *RealtimeEntryAggregated) SetReqBodyBytes(v int32) { + o.ReqBodyBytes = &v +} + +// GetBereqHeaderBytes returns the BereqHeaderBytes field value if set, zero value otherwise. +func (o *RealtimeEntryAggregated) GetBereqHeaderBytes() int32 { + if o == nil || o.BereqHeaderBytes == nil { + var ret int32 + return ret + } + return *o.BereqHeaderBytes +} + +// GetBereqHeaderBytesOk returns a tuple with the BereqHeaderBytes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealtimeEntryAggregated) GetBereqHeaderBytesOk() (*int32, bool) { + if o == nil || o.BereqHeaderBytes == nil { + return nil, false + } + return o.BereqHeaderBytes, true +} + +// HasBereqHeaderBytes returns a boolean if a field has been set. +func (o *RealtimeEntryAggregated) HasBereqHeaderBytes() bool { + if o != nil && o.BereqHeaderBytes != nil { + return true + } + + return false +} + +// SetBereqHeaderBytes gets a reference to the given int32 and assigns it to the BereqHeaderBytes field. +func (o *RealtimeEntryAggregated) SetBereqHeaderBytes(v int32) { + o.BereqHeaderBytes = &v +} + +// GetBereqBodyBytes returns the BereqBodyBytes field value if set, zero value otherwise. +func (o *RealtimeEntryAggregated) GetBereqBodyBytes() int32 { + if o == nil || o.BereqBodyBytes == nil { + var ret int32 + return ret + } + return *o.BereqBodyBytes +} + +// GetBereqBodyBytesOk returns a tuple with the BereqBodyBytes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealtimeEntryAggregated) GetBereqBodyBytesOk() (*int32, bool) { + if o == nil || o.BereqBodyBytes == nil { + return nil, false + } + return o.BereqBodyBytes, true +} + +// HasBereqBodyBytes returns a boolean if a field has been set. +func (o *RealtimeEntryAggregated) HasBereqBodyBytes() bool { + if o != nil && o.BereqBodyBytes != nil { + return true + } + + return false +} + +// SetBereqBodyBytes gets a reference to the given int32 and assigns it to the BereqBodyBytes field. +func (o *RealtimeEntryAggregated) SetBereqBodyBytes(v int32) { + o.BereqBodyBytes = &v +} + +// GetWafBlocked returns the WafBlocked field value if set, zero value otherwise. +func (o *RealtimeEntryAggregated) GetWafBlocked() int32 { + if o == nil || o.WafBlocked == nil { + var ret int32 + return ret + } + return *o.WafBlocked +} + +// GetWafBlockedOk returns a tuple with the WafBlocked field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealtimeEntryAggregated) GetWafBlockedOk() (*int32, bool) { + if o == nil || o.WafBlocked == nil { + return nil, false + } + return o.WafBlocked, true +} + +// HasWafBlocked returns a boolean if a field has been set. +func (o *RealtimeEntryAggregated) HasWafBlocked() bool { + if o != nil && o.WafBlocked != nil { + return true + } + + return false +} + +// SetWafBlocked gets a reference to the given int32 and assigns it to the WafBlocked field. +func (o *RealtimeEntryAggregated) SetWafBlocked(v int32) { + o.WafBlocked = &v +} + +// GetWafLogged returns the WafLogged field value if set, zero value otherwise. +func (o *RealtimeEntryAggregated) GetWafLogged() int32 { + if o == nil || o.WafLogged == nil { + var ret int32 + return ret + } + return *o.WafLogged +} + +// GetWafLoggedOk returns a tuple with the WafLogged field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealtimeEntryAggregated) GetWafLoggedOk() (*int32, bool) { + if o == nil || o.WafLogged == nil { + return nil, false + } + return o.WafLogged, true +} + +// HasWafLogged returns a boolean if a field has been set. +func (o *RealtimeEntryAggregated) HasWafLogged() bool { + if o != nil && o.WafLogged != nil { + return true + } + + return false +} + +// SetWafLogged gets a reference to the given int32 and assigns it to the WafLogged field. +func (o *RealtimeEntryAggregated) SetWafLogged(v int32) { + o.WafLogged = &v +} + +// GetWafPassed returns the WafPassed field value if set, zero value otherwise. +func (o *RealtimeEntryAggregated) GetWafPassed() int32 { + if o == nil || o.WafPassed == nil { + var ret int32 + return ret + } + return *o.WafPassed +} + +// GetWafPassedOk returns a tuple with the WafPassed field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealtimeEntryAggregated) GetWafPassedOk() (*int32, bool) { + if o == nil || o.WafPassed == nil { + return nil, false + } + return o.WafPassed, true +} + +// HasWafPassed returns a boolean if a field has been set. +func (o *RealtimeEntryAggregated) HasWafPassed() bool { + if o != nil && o.WafPassed != nil { + return true + } + + return false +} + +// SetWafPassed gets a reference to the given int32 and assigns it to the WafPassed field. +func (o *RealtimeEntryAggregated) SetWafPassed(v int32) { + o.WafPassed = &v +} + +// GetAttackReqHeaderBytes returns the AttackReqHeaderBytes field value if set, zero value otherwise. +func (o *RealtimeEntryAggregated) GetAttackReqHeaderBytes() int32 { + if o == nil || o.AttackReqHeaderBytes == nil { + var ret int32 + return ret + } + return *o.AttackReqHeaderBytes +} + +// GetAttackReqHeaderBytesOk returns a tuple with the AttackReqHeaderBytes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealtimeEntryAggregated) GetAttackReqHeaderBytesOk() (*int32, bool) { + if o == nil || o.AttackReqHeaderBytes == nil { + return nil, false + } + return o.AttackReqHeaderBytes, true +} + +// HasAttackReqHeaderBytes returns a boolean if a field has been set. +func (o *RealtimeEntryAggregated) HasAttackReqHeaderBytes() bool { + if o != nil && o.AttackReqHeaderBytes != nil { + return true + } + + return false +} + +// SetAttackReqHeaderBytes gets a reference to the given int32 and assigns it to the AttackReqHeaderBytes field. +func (o *RealtimeEntryAggregated) SetAttackReqHeaderBytes(v int32) { + o.AttackReqHeaderBytes = &v +} + +// GetAttackReqBodyBytes returns the AttackReqBodyBytes field value if set, zero value otherwise. +func (o *RealtimeEntryAggregated) GetAttackReqBodyBytes() int32 { + if o == nil || o.AttackReqBodyBytes == nil { + var ret int32 + return ret + } + return *o.AttackReqBodyBytes +} + +// GetAttackReqBodyBytesOk returns a tuple with the AttackReqBodyBytes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealtimeEntryAggregated) GetAttackReqBodyBytesOk() (*int32, bool) { + if o == nil || o.AttackReqBodyBytes == nil { + return nil, false + } + return o.AttackReqBodyBytes, true +} + +// HasAttackReqBodyBytes returns a boolean if a field has been set. +func (o *RealtimeEntryAggregated) HasAttackReqBodyBytes() bool { + if o != nil && o.AttackReqBodyBytes != nil { + return true + } + + return false +} + +// SetAttackReqBodyBytes gets a reference to the given int32 and assigns it to the AttackReqBodyBytes field. +func (o *RealtimeEntryAggregated) SetAttackReqBodyBytes(v int32) { + o.AttackReqBodyBytes = &v +} + +// GetAttackRespSynthBytes returns the AttackRespSynthBytes field value if set, zero value otherwise. +func (o *RealtimeEntryAggregated) GetAttackRespSynthBytes() int32 { + if o == nil || o.AttackRespSynthBytes == nil { + var ret int32 + return ret + } + return *o.AttackRespSynthBytes +} + +// GetAttackRespSynthBytesOk returns a tuple with the AttackRespSynthBytes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealtimeEntryAggregated) GetAttackRespSynthBytesOk() (*int32, bool) { + if o == nil || o.AttackRespSynthBytes == nil { + return nil, false + } + return o.AttackRespSynthBytes, true +} + +// HasAttackRespSynthBytes returns a boolean if a field has been set. +func (o *RealtimeEntryAggregated) HasAttackRespSynthBytes() bool { + if o != nil && o.AttackRespSynthBytes != nil { + return true + } + + return false +} + +// SetAttackRespSynthBytes gets a reference to the given int32 and assigns it to the AttackRespSynthBytes field. +func (o *RealtimeEntryAggregated) SetAttackRespSynthBytes(v int32) { + o.AttackRespSynthBytes = &v +} + +// GetAttackLoggedReqHeaderBytes returns the AttackLoggedReqHeaderBytes field value if set, zero value otherwise. +func (o *RealtimeEntryAggregated) GetAttackLoggedReqHeaderBytes() int32 { + if o == nil || o.AttackLoggedReqHeaderBytes == nil { + var ret int32 + return ret + } + return *o.AttackLoggedReqHeaderBytes +} + +// GetAttackLoggedReqHeaderBytesOk returns a tuple with the AttackLoggedReqHeaderBytes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealtimeEntryAggregated) GetAttackLoggedReqHeaderBytesOk() (*int32, bool) { + if o == nil || o.AttackLoggedReqHeaderBytes == nil { + return nil, false + } + return o.AttackLoggedReqHeaderBytes, true +} + +// HasAttackLoggedReqHeaderBytes returns a boolean if a field has been set. +func (o *RealtimeEntryAggregated) HasAttackLoggedReqHeaderBytes() bool { + if o != nil && o.AttackLoggedReqHeaderBytes != nil { + return true + } + + return false +} + +// SetAttackLoggedReqHeaderBytes gets a reference to the given int32 and assigns it to the AttackLoggedReqHeaderBytes field. +func (o *RealtimeEntryAggregated) SetAttackLoggedReqHeaderBytes(v int32) { + o.AttackLoggedReqHeaderBytes = &v +} + +// GetAttackLoggedReqBodyBytes returns the AttackLoggedReqBodyBytes field value if set, zero value otherwise. +func (o *RealtimeEntryAggregated) GetAttackLoggedReqBodyBytes() int32 { + if o == nil || o.AttackLoggedReqBodyBytes == nil { + var ret int32 + return ret + } + return *o.AttackLoggedReqBodyBytes +} + +// GetAttackLoggedReqBodyBytesOk returns a tuple with the AttackLoggedReqBodyBytes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealtimeEntryAggregated) GetAttackLoggedReqBodyBytesOk() (*int32, bool) { + if o == nil || o.AttackLoggedReqBodyBytes == nil { + return nil, false + } + return o.AttackLoggedReqBodyBytes, true +} + +// HasAttackLoggedReqBodyBytes returns a boolean if a field has been set. +func (o *RealtimeEntryAggregated) HasAttackLoggedReqBodyBytes() bool { + if o != nil && o.AttackLoggedReqBodyBytes != nil { + return true + } + + return false +} + +// SetAttackLoggedReqBodyBytes gets a reference to the given int32 and assigns it to the AttackLoggedReqBodyBytes field. +func (o *RealtimeEntryAggregated) SetAttackLoggedReqBodyBytes(v int32) { + o.AttackLoggedReqBodyBytes = &v +} + +// GetAttackBlockedReqHeaderBytes returns the AttackBlockedReqHeaderBytes field value if set, zero value otherwise. +func (o *RealtimeEntryAggregated) GetAttackBlockedReqHeaderBytes() int32 { + if o == nil || o.AttackBlockedReqHeaderBytes == nil { + var ret int32 + return ret + } + return *o.AttackBlockedReqHeaderBytes +} + +// GetAttackBlockedReqHeaderBytesOk returns a tuple with the AttackBlockedReqHeaderBytes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealtimeEntryAggregated) GetAttackBlockedReqHeaderBytesOk() (*int32, bool) { + if o == nil || o.AttackBlockedReqHeaderBytes == nil { + return nil, false + } + return o.AttackBlockedReqHeaderBytes, true +} + +// HasAttackBlockedReqHeaderBytes returns a boolean if a field has been set. +func (o *RealtimeEntryAggregated) HasAttackBlockedReqHeaderBytes() bool { + if o != nil && o.AttackBlockedReqHeaderBytes != nil { + return true + } + + return false +} + +// SetAttackBlockedReqHeaderBytes gets a reference to the given int32 and assigns it to the AttackBlockedReqHeaderBytes field. +func (o *RealtimeEntryAggregated) SetAttackBlockedReqHeaderBytes(v int32) { + o.AttackBlockedReqHeaderBytes = &v +} + +// GetAttackBlockedReqBodyBytes returns the AttackBlockedReqBodyBytes field value if set, zero value otherwise. +func (o *RealtimeEntryAggregated) GetAttackBlockedReqBodyBytes() int32 { + if o == nil || o.AttackBlockedReqBodyBytes == nil { + var ret int32 + return ret + } + return *o.AttackBlockedReqBodyBytes +} + +// GetAttackBlockedReqBodyBytesOk returns a tuple with the AttackBlockedReqBodyBytes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealtimeEntryAggregated) GetAttackBlockedReqBodyBytesOk() (*int32, bool) { + if o == nil || o.AttackBlockedReqBodyBytes == nil { + return nil, false + } + return o.AttackBlockedReqBodyBytes, true +} + +// HasAttackBlockedReqBodyBytes returns a boolean if a field has been set. +func (o *RealtimeEntryAggregated) HasAttackBlockedReqBodyBytes() bool { + if o != nil && o.AttackBlockedReqBodyBytes != nil { + return true + } + + return false +} + +// SetAttackBlockedReqBodyBytes gets a reference to the given int32 and assigns it to the AttackBlockedReqBodyBytes field. +func (o *RealtimeEntryAggregated) SetAttackBlockedReqBodyBytes(v int32) { + o.AttackBlockedReqBodyBytes = &v +} + +// GetAttackPassedReqHeaderBytes returns the AttackPassedReqHeaderBytes field value if set, zero value otherwise. +func (o *RealtimeEntryAggregated) GetAttackPassedReqHeaderBytes() int32 { + if o == nil || o.AttackPassedReqHeaderBytes == nil { + var ret int32 + return ret + } + return *o.AttackPassedReqHeaderBytes +} + +// GetAttackPassedReqHeaderBytesOk returns a tuple with the AttackPassedReqHeaderBytes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealtimeEntryAggregated) GetAttackPassedReqHeaderBytesOk() (*int32, bool) { + if o == nil || o.AttackPassedReqHeaderBytes == nil { + return nil, false + } + return o.AttackPassedReqHeaderBytes, true +} + +// HasAttackPassedReqHeaderBytes returns a boolean if a field has been set. +func (o *RealtimeEntryAggregated) HasAttackPassedReqHeaderBytes() bool { + if o != nil && o.AttackPassedReqHeaderBytes != nil { + return true + } + + return false +} + +// SetAttackPassedReqHeaderBytes gets a reference to the given int32 and assigns it to the AttackPassedReqHeaderBytes field. +func (o *RealtimeEntryAggregated) SetAttackPassedReqHeaderBytes(v int32) { + o.AttackPassedReqHeaderBytes = &v +} + +// GetAttackPassedReqBodyBytes returns the AttackPassedReqBodyBytes field value if set, zero value otherwise. +func (o *RealtimeEntryAggregated) GetAttackPassedReqBodyBytes() int32 { + if o == nil || o.AttackPassedReqBodyBytes == nil { + var ret int32 + return ret + } + return *o.AttackPassedReqBodyBytes +} + +// GetAttackPassedReqBodyBytesOk returns a tuple with the AttackPassedReqBodyBytes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealtimeEntryAggregated) GetAttackPassedReqBodyBytesOk() (*int32, bool) { + if o == nil || o.AttackPassedReqBodyBytes == nil { + return nil, false + } + return o.AttackPassedReqBodyBytes, true +} + +// HasAttackPassedReqBodyBytes returns a boolean if a field has been set. +func (o *RealtimeEntryAggregated) HasAttackPassedReqBodyBytes() bool { + if o != nil && o.AttackPassedReqBodyBytes != nil { + return true + } + + return false +} + +// SetAttackPassedReqBodyBytes gets a reference to the given int32 and assigns it to the AttackPassedReqBodyBytes field. +func (o *RealtimeEntryAggregated) SetAttackPassedReqBodyBytes(v int32) { + o.AttackPassedReqBodyBytes = &v +} + +// GetShieldRespHeaderBytes returns the ShieldRespHeaderBytes field value if set, zero value otherwise. +func (o *RealtimeEntryAggregated) GetShieldRespHeaderBytes() int32 { + if o == nil || o.ShieldRespHeaderBytes == nil { + var ret int32 + return ret + } + return *o.ShieldRespHeaderBytes +} + +// GetShieldRespHeaderBytesOk returns a tuple with the ShieldRespHeaderBytes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealtimeEntryAggregated) GetShieldRespHeaderBytesOk() (*int32, bool) { + if o == nil || o.ShieldRespHeaderBytes == nil { + return nil, false + } + return o.ShieldRespHeaderBytes, true +} + +// HasShieldRespHeaderBytes returns a boolean if a field has been set. +func (o *RealtimeEntryAggregated) HasShieldRespHeaderBytes() bool { + if o != nil && o.ShieldRespHeaderBytes != nil { + return true + } + + return false +} + +// SetShieldRespHeaderBytes gets a reference to the given int32 and assigns it to the ShieldRespHeaderBytes field. +func (o *RealtimeEntryAggregated) SetShieldRespHeaderBytes(v int32) { + o.ShieldRespHeaderBytes = &v +} + +// GetShieldRespBodyBytes returns the ShieldRespBodyBytes field value if set, zero value otherwise. +func (o *RealtimeEntryAggregated) GetShieldRespBodyBytes() int32 { + if o == nil || o.ShieldRespBodyBytes == nil { + var ret int32 + return ret + } + return *o.ShieldRespBodyBytes +} + +// GetShieldRespBodyBytesOk returns a tuple with the ShieldRespBodyBytes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealtimeEntryAggregated) GetShieldRespBodyBytesOk() (*int32, bool) { + if o == nil || o.ShieldRespBodyBytes == nil { + return nil, false + } + return o.ShieldRespBodyBytes, true +} + +// HasShieldRespBodyBytes returns a boolean if a field has been set. +func (o *RealtimeEntryAggregated) HasShieldRespBodyBytes() bool { + if o != nil && o.ShieldRespBodyBytes != nil { + return true + } + + return false +} + +// SetShieldRespBodyBytes gets a reference to the given int32 and assigns it to the ShieldRespBodyBytes field. +func (o *RealtimeEntryAggregated) SetShieldRespBodyBytes(v int32) { + o.ShieldRespBodyBytes = &v +} + +// GetOtfpRespHeaderBytes returns the OtfpRespHeaderBytes field value if set, zero value otherwise. +func (o *RealtimeEntryAggregated) GetOtfpRespHeaderBytes() int32 { + if o == nil || o.OtfpRespHeaderBytes == nil { + var ret int32 + return ret + } + return *o.OtfpRespHeaderBytes +} + +// GetOtfpRespHeaderBytesOk returns a tuple with the OtfpRespHeaderBytes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealtimeEntryAggregated) GetOtfpRespHeaderBytesOk() (*int32, bool) { + if o == nil || o.OtfpRespHeaderBytes == nil { + return nil, false + } + return o.OtfpRespHeaderBytes, true +} + +// HasOtfpRespHeaderBytes returns a boolean if a field has been set. +func (o *RealtimeEntryAggregated) HasOtfpRespHeaderBytes() bool { + if o != nil && o.OtfpRespHeaderBytes != nil { + return true + } + + return false +} + +// SetOtfpRespHeaderBytes gets a reference to the given int32 and assigns it to the OtfpRespHeaderBytes field. +func (o *RealtimeEntryAggregated) SetOtfpRespHeaderBytes(v int32) { + o.OtfpRespHeaderBytes = &v +} + +// GetOtfpRespBodyBytes returns the OtfpRespBodyBytes field value if set, zero value otherwise. +func (o *RealtimeEntryAggregated) GetOtfpRespBodyBytes() int32 { + if o == nil || o.OtfpRespBodyBytes == nil { + var ret int32 + return ret + } + return *o.OtfpRespBodyBytes +} + +// GetOtfpRespBodyBytesOk returns a tuple with the OtfpRespBodyBytes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealtimeEntryAggregated) GetOtfpRespBodyBytesOk() (*int32, bool) { + if o == nil || o.OtfpRespBodyBytes == nil { + return nil, false + } + return o.OtfpRespBodyBytes, true +} + +// HasOtfpRespBodyBytes returns a boolean if a field has been set. +func (o *RealtimeEntryAggregated) HasOtfpRespBodyBytes() bool { + if o != nil && o.OtfpRespBodyBytes != nil { + return true + } + + return false +} + +// SetOtfpRespBodyBytes gets a reference to the given int32 and assigns it to the OtfpRespBodyBytes field. +func (o *RealtimeEntryAggregated) SetOtfpRespBodyBytes(v int32) { + o.OtfpRespBodyBytes = &v +} + +// GetOtfpShieldRespHeaderBytes returns the OtfpShieldRespHeaderBytes field value if set, zero value otherwise. +func (o *RealtimeEntryAggregated) GetOtfpShieldRespHeaderBytes() int32 { + if o == nil || o.OtfpShieldRespHeaderBytes == nil { + var ret int32 + return ret + } + return *o.OtfpShieldRespHeaderBytes +} + +// GetOtfpShieldRespHeaderBytesOk returns a tuple with the OtfpShieldRespHeaderBytes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealtimeEntryAggregated) GetOtfpShieldRespHeaderBytesOk() (*int32, bool) { + if o == nil || o.OtfpShieldRespHeaderBytes == nil { + return nil, false + } + return o.OtfpShieldRespHeaderBytes, true +} + +// HasOtfpShieldRespHeaderBytes returns a boolean if a field has been set. +func (o *RealtimeEntryAggregated) HasOtfpShieldRespHeaderBytes() bool { + if o != nil && o.OtfpShieldRespHeaderBytes != nil { + return true + } + + return false +} + +// SetOtfpShieldRespHeaderBytes gets a reference to the given int32 and assigns it to the OtfpShieldRespHeaderBytes field. +func (o *RealtimeEntryAggregated) SetOtfpShieldRespHeaderBytes(v int32) { + o.OtfpShieldRespHeaderBytes = &v +} + +// GetOtfpShieldRespBodyBytes returns the OtfpShieldRespBodyBytes field value if set, zero value otherwise. +func (o *RealtimeEntryAggregated) GetOtfpShieldRespBodyBytes() int32 { + if o == nil || o.OtfpShieldRespBodyBytes == nil { + var ret int32 + return ret + } + return *o.OtfpShieldRespBodyBytes +} + +// GetOtfpShieldRespBodyBytesOk returns a tuple with the OtfpShieldRespBodyBytes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealtimeEntryAggregated) GetOtfpShieldRespBodyBytesOk() (*int32, bool) { + if o == nil || o.OtfpShieldRespBodyBytes == nil { + return nil, false + } + return o.OtfpShieldRespBodyBytes, true +} + +// HasOtfpShieldRespBodyBytes returns a boolean if a field has been set. +func (o *RealtimeEntryAggregated) HasOtfpShieldRespBodyBytes() bool { + if o != nil && o.OtfpShieldRespBodyBytes != nil { + return true + } + + return false +} + +// SetOtfpShieldRespBodyBytes gets a reference to the given int32 and assigns it to the OtfpShieldRespBodyBytes field. +func (o *RealtimeEntryAggregated) SetOtfpShieldRespBodyBytes(v int32) { + o.OtfpShieldRespBodyBytes = &v +} + +// GetOtfpShieldTime returns the OtfpShieldTime field value if set, zero value otherwise. +func (o *RealtimeEntryAggregated) GetOtfpShieldTime() float32 { + if o == nil || o.OtfpShieldTime == nil { + var ret float32 + return ret + } + return *o.OtfpShieldTime +} + +// GetOtfpShieldTimeOk returns a tuple with the OtfpShieldTime field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealtimeEntryAggregated) GetOtfpShieldTimeOk() (*float32, bool) { + if o == nil || o.OtfpShieldTime == nil { + return nil, false + } + return o.OtfpShieldTime, true +} + +// HasOtfpShieldTime returns a boolean if a field has been set. +func (o *RealtimeEntryAggregated) HasOtfpShieldTime() bool { + if o != nil && o.OtfpShieldTime != nil { + return true + } + + return false +} + +// SetOtfpShieldTime gets a reference to the given float32 and assigns it to the OtfpShieldTime field. +func (o *RealtimeEntryAggregated) SetOtfpShieldTime(v float32) { + o.OtfpShieldTime = &v +} + +// GetOtfpDeliverTime returns the OtfpDeliverTime field value if set, zero value otherwise. +func (o *RealtimeEntryAggregated) GetOtfpDeliverTime() float32 { + if o == nil || o.OtfpDeliverTime == nil { + var ret float32 + return ret + } + return *o.OtfpDeliverTime +} + +// GetOtfpDeliverTimeOk returns a tuple with the OtfpDeliverTime field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealtimeEntryAggregated) GetOtfpDeliverTimeOk() (*float32, bool) { + if o == nil || o.OtfpDeliverTime == nil { + return nil, false + } + return o.OtfpDeliverTime, true +} + +// HasOtfpDeliverTime returns a boolean if a field has been set. +func (o *RealtimeEntryAggregated) HasOtfpDeliverTime() bool { + if o != nil && o.OtfpDeliverTime != nil { + return true + } + + return false +} + +// SetOtfpDeliverTime gets a reference to the given float32 and assigns it to the OtfpDeliverTime field. +func (o *RealtimeEntryAggregated) SetOtfpDeliverTime(v float32) { + o.OtfpDeliverTime = &v +} + +// GetImgoptoRespHeaderBytes returns the ImgoptoRespHeaderBytes field value if set, zero value otherwise. +func (o *RealtimeEntryAggregated) GetImgoptoRespHeaderBytes() int32 { + if o == nil || o.ImgoptoRespHeaderBytes == nil { + var ret int32 + return ret + } + return *o.ImgoptoRespHeaderBytes +} + +// GetImgoptoRespHeaderBytesOk returns a tuple with the ImgoptoRespHeaderBytes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealtimeEntryAggregated) GetImgoptoRespHeaderBytesOk() (*int32, bool) { + if o == nil || o.ImgoptoRespHeaderBytes == nil { + return nil, false + } + return o.ImgoptoRespHeaderBytes, true +} + +// HasImgoptoRespHeaderBytes returns a boolean if a field has been set. +func (o *RealtimeEntryAggregated) HasImgoptoRespHeaderBytes() bool { + if o != nil && o.ImgoptoRespHeaderBytes != nil { + return true + } + + return false +} + +// SetImgoptoRespHeaderBytes gets a reference to the given int32 and assigns it to the ImgoptoRespHeaderBytes field. +func (o *RealtimeEntryAggregated) SetImgoptoRespHeaderBytes(v int32) { + o.ImgoptoRespHeaderBytes = &v +} + +// GetImgoptoRespBodyBytes returns the ImgoptoRespBodyBytes field value if set, zero value otherwise. +func (o *RealtimeEntryAggregated) GetImgoptoRespBodyBytes() int32 { + if o == nil || o.ImgoptoRespBodyBytes == nil { + var ret int32 + return ret + } + return *o.ImgoptoRespBodyBytes +} + +// GetImgoptoRespBodyBytesOk returns a tuple with the ImgoptoRespBodyBytes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealtimeEntryAggregated) GetImgoptoRespBodyBytesOk() (*int32, bool) { + if o == nil || o.ImgoptoRespBodyBytes == nil { + return nil, false + } + return o.ImgoptoRespBodyBytes, true +} + +// HasImgoptoRespBodyBytes returns a boolean if a field has been set. +func (o *RealtimeEntryAggregated) HasImgoptoRespBodyBytes() bool { + if o != nil && o.ImgoptoRespBodyBytes != nil { + return true + } + + return false +} + +// SetImgoptoRespBodyBytes gets a reference to the given int32 and assigns it to the ImgoptoRespBodyBytes field. +func (o *RealtimeEntryAggregated) SetImgoptoRespBodyBytes(v int32) { + o.ImgoptoRespBodyBytes = &v +} + +// GetImgoptoShieldRespHeaderBytes returns the ImgoptoShieldRespHeaderBytes field value if set, zero value otherwise. +func (o *RealtimeEntryAggregated) GetImgoptoShieldRespHeaderBytes() int32 { + if o == nil || o.ImgoptoShieldRespHeaderBytes == nil { + var ret int32 + return ret + } + return *o.ImgoptoShieldRespHeaderBytes +} + +// GetImgoptoShieldRespHeaderBytesOk returns a tuple with the ImgoptoShieldRespHeaderBytes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealtimeEntryAggregated) GetImgoptoShieldRespHeaderBytesOk() (*int32, bool) { + if o == nil || o.ImgoptoShieldRespHeaderBytes == nil { + return nil, false + } + return o.ImgoptoShieldRespHeaderBytes, true +} + +// HasImgoptoShieldRespHeaderBytes returns a boolean if a field has been set. +func (o *RealtimeEntryAggregated) HasImgoptoShieldRespHeaderBytes() bool { + if o != nil && o.ImgoptoShieldRespHeaderBytes != nil { + return true + } + + return false +} + +// SetImgoptoShieldRespHeaderBytes gets a reference to the given int32 and assigns it to the ImgoptoShieldRespHeaderBytes field. +func (o *RealtimeEntryAggregated) SetImgoptoShieldRespHeaderBytes(v int32) { + o.ImgoptoShieldRespHeaderBytes = &v +} + +// GetImgoptoShieldRespBodyBytes returns the ImgoptoShieldRespBodyBytes field value if set, zero value otherwise. +func (o *RealtimeEntryAggregated) GetImgoptoShieldRespBodyBytes() int32 { + if o == nil || o.ImgoptoShieldRespBodyBytes == nil { + var ret int32 + return ret + } + return *o.ImgoptoShieldRespBodyBytes +} + +// GetImgoptoShieldRespBodyBytesOk returns a tuple with the ImgoptoShieldRespBodyBytes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealtimeEntryAggregated) GetImgoptoShieldRespBodyBytesOk() (*int32, bool) { + if o == nil || o.ImgoptoShieldRespBodyBytes == nil { + return nil, false + } + return o.ImgoptoShieldRespBodyBytes, true +} + +// HasImgoptoShieldRespBodyBytes returns a boolean if a field has been set. +func (o *RealtimeEntryAggregated) HasImgoptoShieldRespBodyBytes() bool { + if o != nil && o.ImgoptoShieldRespBodyBytes != nil { + return true + } + + return false +} + +// SetImgoptoShieldRespBodyBytes gets a reference to the given int32 and assigns it to the ImgoptoShieldRespBodyBytes field. +func (o *RealtimeEntryAggregated) SetImgoptoShieldRespBodyBytes(v int32) { + o.ImgoptoShieldRespBodyBytes = &v +} + +// GetStatus1xx returns the Status1xx field value if set, zero value otherwise. +func (o *RealtimeEntryAggregated) GetStatus1xx() int32 { + if o == nil || o.Status1xx == nil { + var ret int32 + return ret + } + return *o.Status1xx +} + +// GetStatus1xxOk returns a tuple with the Status1xx field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealtimeEntryAggregated) GetStatus1xxOk() (*int32, bool) { + if o == nil || o.Status1xx == nil { + return nil, false + } + return o.Status1xx, true +} + +// HasStatus1xx returns a boolean if a field has been set. +func (o *RealtimeEntryAggregated) HasStatus1xx() bool { + if o != nil && o.Status1xx != nil { + return true + } + + return false +} + +// SetStatus1xx gets a reference to the given int32 and assigns it to the Status1xx field. +func (o *RealtimeEntryAggregated) SetStatus1xx(v int32) { + o.Status1xx = &v +} + +// GetStatus2xx returns the Status2xx field value if set, zero value otherwise. +func (o *RealtimeEntryAggregated) GetStatus2xx() int32 { + if o == nil || o.Status2xx == nil { + var ret int32 + return ret + } + return *o.Status2xx +} + +// GetStatus2xxOk returns a tuple with the Status2xx field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealtimeEntryAggregated) GetStatus2xxOk() (*int32, bool) { + if o == nil || o.Status2xx == nil { + return nil, false + } + return o.Status2xx, true +} + +// HasStatus2xx returns a boolean if a field has been set. +func (o *RealtimeEntryAggregated) HasStatus2xx() bool { + if o != nil && o.Status2xx != nil { + return true + } + + return false +} + +// SetStatus2xx gets a reference to the given int32 and assigns it to the Status2xx field. +func (o *RealtimeEntryAggregated) SetStatus2xx(v int32) { + o.Status2xx = &v +} + +// GetStatus3xx returns the Status3xx field value if set, zero value otherwise. +func (o *RealtimeEntryAggregated) GetStatus3xx() int32 { + if o == nil || o.Status3xx == nil { + var ret int32 + return ret + } + return *o.Status3xx +} + +// GetStatus3xxOk returns a tuple with the Status3xx field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealtimeEntryAggregated) GetStatus3xxOk() (*int32, bool) { + if o == nil || o.Status3xx == nil { + return nil, false + } + return o.Status3xx, true +} + +// HasStatus3xx returns a boolean if a field has been set. +func (o *RealtimeEntryAggregated) HasStatus3xx() bool { + if o != nil && o.Status3xx != nil { + return true + } + + return false +} + +// SetStatus3xx gets a reference to the given int32 and assigns it to the Status3xx field. +func (o *RealtimeEntryAggregated) SetStatus3xx(v int32) { + o.Status3xx = &v +} + +// GetStatus4xx returns the Status4xx field value if set, zero value otherwise. +func (o *RealtimeEntryAggregated) GetStatus4xx() int32 { + if o == nil || o.Status4xx == nil { + var ret int32 + return ret + } + return *o.Status4xx +} + +// GetStatus4xxOk returns a tuple with the Status4xx field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealtimeEntryAggregated) GetStatus4xxOk() (*int32, bool) { + if o == nil || o.Status4xx == nil { + return nil, false + } + return o.Status4xx, true +} + +// HasStatus4xx returns a boolean if a field has been set. +func (o *RealtimeEntryAggregated) HasStatus4xx() bool { + if o != nil && o.Status4xx != nil { + return true + } + + return false +} + +// SetStatus4xx gets a reference to the given int32 and assigns it to the Status4xx field. +func (o *RealtimeEntryAggregated) SetStatus4xx(v int32) { + o.Status4xx = &v +} + +// GetStatus5xx returns the Status5xx field value if set, zero value otherwise. +func (o *RealtimeEntryAggregated) GetStatus5xx() int32 { + if o == nil || o.Status5xx == nil { + var ret int32 + return ret + } + return *o.Status5xx +} + +// GetStatus5xxOk returns a tuple with the Status5xx field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealtimeEntryAggregated) GetStatus5xxOk() (*int32, bool) { + if o == nil || o.Status5xx == nil { + return nil, false + } + return o.Status5xx, true +} + +// HasStatus5xx returns a boolean if a field has been set. +func (o *RealtimeEntryAggregated) HasStatus5xx() bool { + if o != nil && o.Status5xx != nil { + return true + } + + return false +} + +// SetStatus5xx gets a reference to the given int32 and assigns it to the Status5xx field. +func (o *RealtimeEntryAggregated) SetStatus5xx(v int32) { + o.Status5xx = &v +} + +// GetStatus200 returns the Status200 field value if set, zero value otherwise. +func (o *RealtimeEntryAggregated) GetStatus200() int32 { + if o == nil || o.Status200 == nil { + var ret int32 + return ret + } + return *o.Status200 +} + +// GetStatus200Ok returns a tuple with the Status200 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealtimeEntryAggregated) GetStatus200Ok() (*int32, bool) { + if o == nil || o.Status200 == nil { + return nil, false + } + return o.Status200, true +} + +// HasStatus200 returns a boolean if a field has been set. +func (o *RealtimeEntryAggregated) HasStatus200() bool { + if o != nil && o.Status200 != nil { + return true + } + + return false +} + +// SetStatus200 gets a reference to the given int32 and assigns it to the Status200 field. +func (o *RealtimeEntryAggregated) SetStatus200(v int32) { + o.Status200 = &v +} + +// GetStatus204 returns the Status204 field value if set, zero value otherwise. +func (o *RealtimeEntryAggregated) GetStatus204() int32 { + if o == nil || o.Status204 == nil { + var ret int32 + return ret + } + return *o.Status204 +} + +// GetStatus204Ok returns a tuple with the Status204 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealtimeEntryAggregated) GetStatus204Ok() (*int32, bool) { + if o == nil || o.Status204 == nil { + return nil, false + } + return o.Status204, true +} + +// HasStatus204 returns a boolean if a field has been set. +func (o *RealtimeEntryAggregated) HasStatus204() bool { + if o != nil && o.Status204 != nil { + return true + } + + return false +} + +// SetStatus204 gets a reference to the given int32 and assigns it to the Status204 field. +func (o *RealtimeEntryAggregated) SetStatus204(v int32) { + o.Status204 = &v +} + +// GetStatus206 returns the Status206 field value if set, zero value otherwise. +func (o *RealtimeEntryAggregated) GetStatus206() int32 { + if o == nil || o.Status206 == nil { + var ret int32 + return ret + } + return *o.Status206 +} + +// GetStatus206Ok returns a tuple with the Status206 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealtimeEntryAggregated) GetStatus206Ok() (*int32, bool) { + if o == nil || o.Status206 == nil { + return nil, false + } + return o.Status206, true +} + +// HasStatus206 returns a boolean if a field has been set. +func (o *RealtimeEntryAggregated) HasStatus206() bool { + if o != nil && o.Status206 != nil { + return true + } + + return false +} + +// SetStatus206 gets a reference to the given int32 and assigns it to the Status206 field. +func (o *RealtimeEntryAggregated) SetStatus206(v int32) { + o.Status206 = &v +} + +// GetStatus301 returns the Status301 field value if set, zero value otherwise. +func (o *RealtimeEntryAggregated) GetStatus301() int32 { + if o == nil || o.Status301 == nil { + var ret int32 + return ret + } + return *o.Status301 +} + +// GetStatus301Ok returns a tuple with the Status301 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealtimeEntryAggregated) GetStatus301Ok() (*int32, bool) { + if o == nil || o.Status301 == nil { + return nil, false + } + return o.Status301, true +} + +// HasStatus301 returns a boolean if a field has been set. +func (o *RealtimeEntryAggregated) HasStatus301() bool { + if o != nil && o.Status301 != nil { + return true + } + + return false +} + +// SetStatus301 gets a reference to the given int32 and assigns it to the Status301 field. +func (o *RealtimeEntryAggregated) SetStatus301(v int32) { + o.Status301 = &v +} + +// GetStatus302 returns the Status302 field value if set, zero value otherwise. +func (o *RealtimeEntryAggregated) GetStatus302() int32 { + if o == nil || o.Status302 == nil { + var ret int32 + return ret + } + return *o.Status302 +} + +// GetStatus302Ok returns a tuple with the Status302 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealtimeEntryAggregated) GetStatus302Ok() (*int32, bool) { + if o == nil || o.Status302 == nil { + return nil, false + } + return o.Status302, true +} + +// HasStatus302 returns a boolean if a field has been set. +func (o *RealtimeEntryAggregated) HasStatus302() bool { + if o != nil && o.Status302 != nil { + return true + } + + return false +} + +// SetStatus302 gets a reference to the given int32 and assigns it to the Status302 field. +func (o *RealtimeEntryAggregated) SetStatus302(v int32) { + o.Status302 = &v +} + +// GetStatus304 returns the Status304 field value if set, zero value otherwise. +func (o *RealtimeEntryAggregated) GetStatus304() int32 { + if o == nil || o.Status304 == nil { + var ret int32 + return ret + } + return *o.Status304 +} + +// GetStatus304Ok returns a tuple with the Status304 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealtimeEntryAggregated) GetStatus304Ok() (*int32, bool) { + if o == nil || o.Status304 == nil { + return nil, false + } + return o.Status304, true +} + +// HasStatus304 returns a boolean if a field has been set. +func (o *RealtimeEntryAggregated) HasStatus304() bool { + if o != nil && o.Status304 != nil { + return true + } + + return false +} + +// SetStatus304 gets a reference to the given int32 and assigns it to the Status304 field. +func (o *RealtimeEntryAggregated) SetStatus304(v int32) { + o.Status304 = &v +} + +// GetStatus400 returns the Status400 field value if set, zero value otherwise. +func (o *RealtimeEntryAggregated) GetStatus400() int32 { + if o == nil || o.Status400 == nil { + var ret int32 + return ret + } + return *o.Status400 +} + +// GetStatus400Ok returns a tuple with the Status400 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealtimeEntryAggregated) GetStatus400Ok() (*int32, bool) { + if o == nil || o.Status400 == nil { + return nil, false + } + return o.Status400, true +} + +// HasStatus400 returns a boolean if a field has been set. +func (o *RealtimeEntryAggregated) HasStatus400() bool { + if o != nil && o.Status400 != nil { + return true + } + + return false +} + +// SetStatus400 gets a reference to the given int32 and assigns it to the Status400 field. +func (o *RealtimeEntryAggregated) SetStatus400(v int32) { + o.Status400 = &v +} + +// GetStatus401 returns the Status401 field value if set, zero value otherwise. +func (o *RealtimeEntryAggregated) GetStatus401() int32 { + if o == nil || o.Status401 == nil { + var ret int32 + return ret + } + return *o.Status401 +} + +// GetStatus401Ok returns a tuple with the Status401 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealtimeEntryAggregated) GetStatus401Ok() (*int32, bool) { + if o == nil || o.Status401 == nil { + return nil, false + } + return o.Status401, true +} + +// HasStatus401 returns a boolean if a field has been set. +func (o *RealtimeEntryAggregated) HasStatus401() bool { + if o != nil && o.Status401 != nil { + return true + } + + return false +} + +// SetStatus401 gets a reference to the given int32 and assigns it to the Status401 field. +func (o *RealtimeEntryAggregated) SetStatus401(v int32) { + o.Status401 = &v +} + +// GetStatus403 returns the Status403 field value if set, zero value otherwise. +func (o *RealtimeEntryAggregated) GetStatus403() int32 { + if o == nil || o.Status403 == nil { + var ret int32 + return ret + } + return *o.Status403 +} + +// GetStatus403Ok returns a tuple with the Status403 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealtimeEntryAggregated) GetStatus403Ok() (*int32, bool) { + if o == nil || o.Status403 == nil { + return nil, false + } + return o.Status403, true +} + +// HasStatus403 returns a boolean if a field has been set. +func (o *RealtimeEntryAggregated) HasStatus403() bool { + if o != nil && o.Status403 != nil { + return true + } + + return false +} + +// SetStatus403 gets a reference to the given int32 and assigns it to the Status403 field. +func (o *RealtimeEntryAggregated) SetStatus403(v int32) { + o.Status403 = &v +} + +// GetStatus404 returns the Status404 field value if set, zero value otherwise. +func (o *RealtimeEntryAggregated) GetStatus404() int32 { + if o == nil || o.Status404 == nil { + var ret int32 + return ret + } + return *o.Status404 +} + +// GetStatus404Ok returns a tuple with the Status404 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealtimeEntryAggregated) GetStatus404Ok() (*int32, bool) { + if o == nil || o.Status404 == nil { + return nil, false + } + return o.Status404, true +} + +// HasStatus404 returns a boolean if a field has been set. +func (o *RealtimeEntryAggregated) HasStatus404() bool { + if o != nil && o.Status404 != nil { + return true + } + + return false +} + +// SetStatus404 gets a reference to the given int32 and assigns it to the Status404 field. +func (o *RealtimeEntryAggregated) SetStatus404(v int32) { + o.Status404 = &v +} + +// GetStatus406 returns the Status406 field value if set, zero value otherwise. +func (o *RealtimeEntryAggregated) GetStatus406() int32 { + if o == nil || o.Status406 == nil { + var ret int32 + return ret + } + return *o.Status406 +} + +// GetStatus406Ok returns a tuple with the Status406 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealtimeEntryAggregated) GetStatus406Ok() (*int32, bool) { + if o == nil || o.Status406 == nil { + return nil, false + } + return o.Status406, true +} + +// HasStatus406 returns a boolean if a field has been set. +func (o *RealtimeEntryAggregated) HasStatus406() bool { + if o != nil && o.Status406 != nil { + return true + } + + return false +} + +// SetStatus406 gets a reference to the given int32 and assigns it to the Status406 field. +func (o *RealtimeEntryAggregated) SetStatus406(v int32) { + o.Status406 = &v +} + +// GetStatus416 returns the Status416 field value if set, zero value otherwise. +func (o *RealtimeEntryAggregated) GetStatus416() int32 { + if o == nil || o.Status416 == nil { + var ret int32 + return ret + } + return *o.Status416 +} + +// GetStatus416Ok returns a tuple with the Status416 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealtimeEntryAggregated) GetStatus416Ok() (*int32, bool) { + if o == nil || o.Status416 == nil { + return nil, false + } + return o.Status416, true +} + +// HasStatus416 returns a boolean if a field has been set. +func (o *RealtimeEntryAggregated) HasStatus416() bool { + if o != nil && o.Status416 != nil { + return true + } + + return false +} + +// SetStatus416 gets a reference to the given int32 and assigns it to the Status416 field. +func (o *RealtimeEntryAggregated) SetStatus416(v int32) { + o.Status416 = &v +} + +// GetStatus429 returns the Status429 field value if set, zero value otherwise. +func (o *RealtimeEntryAggregated) GetStatus429() int32 { + if o == nil || o.Status429 == nil { + var ret int32 + return ret + } + return *o.Status429 +} + +// GetStatus429Ok returns a tuple with the Status429 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealtimeEntryAggregated) GetStatus429Ok() (*int32, bool) { + if o == nil || o.Status429 == nil { + return nil, false + } + return o.Status429, true +} + +// HasStatus429 returns a boolean if a field has been set. +func (o *RealtimeEntryAggregated) HasStatus429() bool { + if o != nil && o.Status429 != nil { + return true + } + + return false +} + +// SetStatus429 gets a reference to the given int32 and assigns it to the Status429 field. +func (o *RealtimeEntryAggregated) SetStatus429(v int32) { + o.Status429 = &v +} + +// GetStatus500 returns the Status500 field value if set, zero value otherwise. +func (o *RealtimeEntryAggregated) GetStatus500() int32 { + if o == nil || o.Status500 == nil { + var ret int32 + return ret + } + return *o.Status500 +} + +// GetStatus500Ok returns a tuple with the Status500 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealtimeEntryAggregated) GetStatus500Ok() (*int32, bool) { + if o == nil || o.Status500 == nil { + return nil, false + } + return o.Status500, true +} + +// HasStatus500 returns a boolean if a field has been set. +func (o *RealtimeEntryAggregated) HasStatus500() bool { + if o != nil && o.Status500 != nil { + return true + } + + return false +} + +// SetStatus500 gets a reference to the given int32 and assigns it to the Status500 field. +func (o *RealtimeEntryAggregated) SetStatus500(v int32) { + o.Status500 = &v +} + +// GetStatus501 returns the Status501 field value if set, zero value otherwise. +func (o *RealtimeEntryAggregated) GetStatus501() int32 { + if o == nil || o.Status501 == nil { + var ret int32 + return ret + } + return *o.Status501 +} + +// GetStatus501Ok returns a tuple with the Status501 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealtimeEntryAggregated) GetStatus501Ok() (*int32, bool) { + if o == nil || o.Status501 == nil { + return nil, false + } + return o.Status501, true +} + +// HasStatus501 returns a boolean if a field has been set. +func (o *RealtimeEntryAggregated) HasStatus501() bool { + if o != nil && o.Status501 != nil { + return true + } + + return false +} + +// SetStatus501 gets a reference to the given int32 and assigns it to the Status501 field. +func (o *RealtimeEntryAggregated) SetStatus501(v int32) { + o.Status501 = &v +} + +// GetStatus502 returns the Status502 field value if set, zero value otherwise. +func (o *RealtimeEntryAggregated) GetStatus502() int32 { + if o == nil || o.Status502 == nil { + var ret int32 + return ret + } + return *o.Status502 +} + +// GetStatus502Ok returns a tuple with the Status502 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealtimeEntryAggregated) GetStatus502Ok() (*int32, bool) { + if o == nil || o.Status502 == nil { + return nil, false + } + return o.Status502, true +} + +// HasStatus502 returns a boolean if a field has been set. +func (o *RealtimeEntryAggregated) HasStatus502() bool { + if o != nil && o.Status502 != nil { + return true + } + + return false +} + +// SetStatus502 gets a reference to the given int32 and assigns it to the Status502 field. +func (o *RealtimeEntryAggregated) SetStatus502(v int32) { + o.Status502 = &v +} + +// GetStatus503 returns the Status503 field value if set, zero value otherwise. +func (o *RealtimeEntryAggregated) GetStatus503() int32 { + if o == nil || o.Status503 == nil { + var ret int32 + return ret + } + return *o.Status503 +} + +// GetStatus503Ok returns a tuple with the Status503 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealtimeEntryAggregated) GetStatus503Ok() (*int32, bool) { + if o == nil || o.Status503 == nil { + return nil, false + } + return o.Status503, true +} + +// HasStatus503 returns a boolean if a field has been set. +func (o *RealtimeEntryAggregated) HasStatus503() bool { + if o != nil && o.Status503 != nil { + return true + } + + return false +} + +// SetStatus503 gets a reference to the given int32 and assigns it to the Status503 field. +func (o *RealtimeEntryAggregated) SetStatus503(v int32) { + o.Status503 = &v +} + +// GetStatus504 returns the Status504 field value if set, zero value otherwise. +func (o *RealtimeEntryAggregated) GetStatus504() int32 { + if o == nil || o.Status504 == nil { + var ret int32 + return ret + } + return *o.Status504 +} + +// GetStatus504Ok returns a tuple with the Status504 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealtimeEntryAggregated) GetStatus504Ok() (*int32, bool) { + if o == nil || o.Status504 == nil { + return nil, false + } + return o.Status504, true +} + +// HasStatus504 returns a boolean if a field has been set. +func (o *RealtimeEntryAggregated) HasStatus504() bool { + if o != nil && o.Status504 != nil { + return true + } + + return false +} + +// SetStatus504 gets a reference to the given int32 and assigns it to the Status504 field. +func (o *RealtimeEntryAggregated) SetStatus504(v int32) { + o.Status504 = &v +} + +// GetStatus505 returns the Status505 field value if set, zero value otherwise. +func (o *RealtimeEntryAggregated) GetStatus505() int32 { + if o == nil || o.Status505 == nil { + var ret int32 + return ret + } + return *o.Status505 +} + +// GetStatus505Ok returns a tuple with the Status505 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealtimeEntryAggregated) GetStatus505Ok() (*int32, bool) { + if o == nil || o.Status505 == nil { + return nil, false + } + return o.Status505, true +} + +// HasStatus505 returns a boolean if a field has been set. +func (o *RealtimeEntryAggregated) HasStatus505() bool { + if o != nil && o.Status505 != nil { + return true + } + + return false +} + +// SetStatus505 gets a reference to the given int32 and assigns it to the Status505 field. +func (o *RealtimeEntryAggregated) SetStatus505(v int32) { + o.Status505 = &v +} + +// GetUncacheable returns the Uncacheable field value if set, zero value otherwise. +func (o *RealtimeEntryAggregated) GetUncacheable() int32 { + if o == nil || o.Uncacheable == nil { + var ret int32 + return ret + } + return *o.Uncacheable +} + +// GetUncacheableOk returns a tuple with the Uncacheable field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealtimeEntryAggregated) GetUncacheableOk() (*int32, bool) { + if o == nil || o.Uncacheable == nil { + return nil, false + } + return o.Uncacheable, true +} + +// HasUncacheable returns a boolean if a field has been set. +func (o *RealtimeEntryAggregated) HasUncacheable() bool { + if o != nil && o.Uncacheable != nil { + return true + } + + return false +} + +// SetUncacheable gets a reference to the given int32 and assigns it to the Uncacheable field. +func (o *RealtimeEntryAggregated) SetUncacheable(v int32) { + o.Uncacheable = &v +} + +// GetPassTime returns the PassTime field value if set, zero value otherwise. +func (o *RealtimeEntryAggregated) GetPassTime() float32 { + if o == nil || o.PassTime == nil { + var ret float32 + return ret + } + return *o.PassTime +} + +// GetPassTimeOk returns a tuple with the PassTime field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealtimeEntryAggregated) GetPassTimeOk() (*float32, bool) { + if o == nil || o.PassTime == nil { + return nil, false + } + return o.PassTime, true +} + +// HasPassTime returns a boolean if a field has been set. +func (o *RealtimeEntryAggregated) HasPassTime() bool { + if o != nil && o.PassTime != nil { + return true + } + + return false +} + +// SetPassTime gets a reference to the given float32 and assigns it to the PassTime field. +func (o *RealtimeEntryAggregated) SetPassTime(v float32) { + o.PassTime = &v +} + +// GetTLS returns the TLS field value if set, zero value otherwise. +func (o *RealtimeEntryAggregated) GetTLS() int32 { + if o == nil || o.TLS == nil { + var ret int32 + return ret + } + return *o.TLS +} + +// GetTLSOk returns a tuple with the TLS field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealtimeEntryAggregated) GetTLSOk() (*int32, bool) { + if o == nil || o.TLS == nil { + return nil, false + } + return o.TLS, true +} + +// HasTLS returns a boolean if a field has been set. +func (o *RealtimeEntryAggregated) HasTLS() bool { + if o != nil && o.TLS != nil { + return true + } + + return false +} + +// SetTLS gets a reference to the given int32 and assigns it to the TLS field. +func (o *RealtimeEntryAggregated) SetTLS(v int32) { + o.TLS = &v +} + +// GetTLSV10 returns the TLSV10 field value if set, zero value otherwise. +func (o *RealtimeEntryAggregated) GetTLSV10() int32 { + if o == nil || o.TLSV10 == nil { + var ret int32 + return ret + } + return *o.TLSV10 +} + +// GetTLSV10Ok returns a tuple with the TLSV10 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealtimeEntryAggregated) GetTLSV10Ok() (*int32, bool) { + if o == nil || o.TLSV10 == nil { + return nil, false + } + return o.TLSV10, true +} + +// HasTLSV10 returns a boolean if a field has been set. +func (o *RealtimeEntryAggregated) HasTLSV10() bool { + if o != nil && o.TLSV10 != nil { + return true + } + + return false +} + +// SetTLSV10 gets a reference to the given int32 and assigns it to the TLSV10 field. +func (o *RealtimeEntryAggregated) SetTLSV10(v int32) { + o.TLSV10 = &v +} + +// GetTLSV11 returns the TLSV11 field value if set, zero value otherwise. +func (o *RealtimeEntryAggregated) GetTLSV11() int32 { + if o == nil || o.TLSV11 == nil { + var ret int32 + return ret + } + return *o.TLSV11 +} + +// GetTLSV11Ok returns a tuple with the TLSV11 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealtimeEntryAggregated) GetTLSV11Ok() (*int32, bool) { + if o == nil || o.TLSV11 == nil { + return nil, false + } + return o.TLSV11, true +} + +// HasTLSV11 returns a boolean if a field has been set. +func (o *RealtimeEntryAggregated) HasTLSV11() bool { + if o != nil && o.TLSV11 != nil { + return true + } + + return false +} + +// SetTLSV11 gets a reference to the given int32 and assigns it to the TLSV11 field. +func (o *RealtimeEntryAggregated) SetTLSV11(v int32) { + o.TLSV11 = &v +} + +// GetTLSV12 returns the TLSV12 field value if set, zero value otherwise. +func (o *RealtimeEntryAggregated) GetTLSV12() int32 { + if o == nil || o.TLSV12 == nil { + var ret int32 + return ret + } + return *o.TLSV12 +} + +// GetTLSV12Ok returns a tuple with the TLSV12 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealtimeEntryAggregated) GetTLSV12Ok() (*int32, bool) { + if o == nil || o.TLSV12 == nil { + return nil, false + } + return o.TLSV12, true +} + +// HasTLSV12 returns a boolean if a field has been set. +func (o *RealtimeEntryAggregated) HasTLSV12() bool { + if o != nil && o.TLSV12 != nil { + return true + } + + return false +} + +// SetTLSV12 gets a reference to the given int32 and assigns it to the TLSV12 field. +func (o *RealtimeEntryAggregated) SetTLSV12(v int32) { + o.TLSV12 = &v +} + +// GetTLSV13 returns the TLSV13 field value if set, zero value otherwise. +func (o *RealtimeEntryAggregated) GetTLSV13() int32 { + if o == nil || o.TLSV13 == nil { + var ret int32 + return ret + } + return *o.TLSV13 +} + +// GetTLSV13Ok returns a tuple with the TLSV13 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealtimeEntryAggregated) GetTLSV13Ok() (*int32, bool) { + if o == nil || o.TLSV13 == nil { + return nil, false + } + return o.TLSV13, true +} + +// HasTLSV13 returns a boolean if a field has been set. +func (o *RealtimeEntryAggregated) HasTLSV13() bool { + if o != nil && o.TLSV13 != nil { + return true + } + + return false +} + +// SetTLSV13 gets a reference to the given int32 and assigns it to the TLSV13 field. +func (o *RealtimeEntryAggregated) SetTLSV13(v int32) { + o.TLSV13 = &v +} + +// GetObjectSize1k returns the ObjectSize1k field value if set, zero value otherwise. +func (o *RealtimeEntryAggregated) GetObjectSize1k() int32 { + if o == nil || o.ObjectSize1k == nil { + var ret int32 + return ret + } + return *o.ObjectSize1k +} + +// GetObjectSize1kOk returns a tuple with the ObjectSize1k field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealtimeEntryAggregated) GetObjectSize1kOk() (*int32, bool) { + if o == nil || o.ObjectSize1k == nil { + return nil, false + } + return o.ObjectSize1k, true +} + +// HasObjectSize1k returns a boolean if a field has been set. +func (o *RealtimeEntryAggregated) HasObjectSize1k() bool { + if o != nil && o.ObjectSize1k != nil { + return true + } + + return false +} + +// SetObjectSize1k gets a reference to the given int32 and assigns it to the ObjectSize1k field. +func (o *RealtimeEntryAggregated) SetObjectSize1k(v int32) { + o.ObjectSize1k = &v +} + +// GetObjectSize10k returns the ObjectSize10k field value if set, zero value otherwise. +func (o *RealtimeEntryAggregated) GetObjectSize10k() int32 { + if o == nil || o.ObjectSize10k == nil { + var ret int32 + return ret + } + return *o.ObjectSize10k +} + +// GetObjectSize10kOk returns a tuple with the ObjectSize10k field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealtimeEntryAggregated) GetObjectSize10kOk() (*int32, bool) { + if o == nil || o.ObjectSize10k == nil { + return nil, false + } + return o.ObjectSize10k, true +} + +// HasObjectSize10k returns a boolean if a field has been set. +func (o *RealtimeEntryAggregated) HasObjectSize10k() bool { + if o != nil && o.ObjectSize10k != nil { + return true + } + + return false +} + +// SetObjectSize10k gets a reference to the given int32 and assigns it to the ObjectSize10k field. +func (o *RealtimeEntryAggregated) SetObjectSize10k(v int32) { + o.ObjectSize10k = &v +} + +// GetObjectSize100k returns the ObjectSize100k field value if set, zero value otherwise. +func (o *RealtimeEntryAggregated) GetObjectSize100k() int32 { + if o == nil || o.ObjectSize100k == nil { + var ret int32 + return ret + } + return *o.ObjectSize100k +} + +// GetObjectSize100kOk returns a tuple with the ObjectSize100k field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealtimeEntryAggregated) GetObjectSize100kOk() (*int32, bool) { + if o == nil || o.ObjectSize100k == nil { + return nil, false + } + return o.ObjectSize100k, true +} + +// HasObjectSize100k returns a boolean if a field has been set. +func (o *RealtimeEntryAggregated) HasObjectSize100k() bool { + if o != nil && o.ObjectSize100k != nil { + return true + } + + return false +} + +// SetObjectSize100k gets a reference to the given int32 and assigns it to the ObjectSize100k field. +func (o *RealtimeEntryAggregated) SetObjectSize100k(v int32) { + o.ObjectSize100k = &v +} + +// GetObjectSize1m returns the ObjectSize1m field value if set, zero value otherwise. +func (o *RealtimeEntryAggregated) GetObjectSize1m() int32 { + if o == nil || o.ObjectSize1m == nil { + var ret int32 + return ret + } + return *o.ObjectSize1m +} + +// GetObjectSize1mOk returns a tuple with the ObjectSize1m field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealtimeEntryAggregated) GetObjectSize1mOk() (*int32, bool) { + if o == nil || o.ObjectSize1m == nil { + return nil, false + } + return o.ObjectSize1m, true +} + +// HasObjectSize1m returns a boolean if a field has been set. +func (o *RealtimeEntryAggregated) HasObjectSize1m() bool { + if o != nil && o.ObjectSize1m != nil { + return true + } + + return false +} + +// SetObjectSize1m gets a reference to the given int32 and assigns it to the ObjectSize1m field. +func (o *RealtimeEntryAggregated) SetObjectSize1m(v int32) { + o.ObjectSize1m = &v +} + +// GetObjectSize10m returns the ObjectSize10m field value if set, zero value otherwise. +func (o *RealtimeEntryAggregated) GetObjectSize10m() int32 { + if o == nil || o.ObjectSize10m == nil { + var ret int32 + return ret + } + return *o.ObjectSize10m +} + +// GetObjectSize10mOk returns a tuple with the ObjectSize10m field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealtimeEntryAggregated) GetObjectSize10mOk() (*int32, bool) { + if o == nil || o.ObjectSize10m == nil { + return nil, false + } + return o.ObjectSize10m, true +} + +// HasObjectSize10m returns a boolean if a field has been set. +func (o *RealtimeEntryAggregated) HasObjectSize10m() bool { + if o != nil && o.ObjectSize10m != nil { + return true + } + + return false +} + +// SetObjectSize10m gets a reference to the given int32 and assigns it to the ObjectSize10m field. +func (o *RealtimeEntryAggregated) SetObjectSize10m(v int32) { + o.ObjectSize10m = &v +} + +// GetObjectSize100m returns the ObjectSize100m field value if set, zero value otherwise. +func (o *RealtimeEntryAggregated) GetObjectSize100m() int32 { + if o == nil || o.ObjectSize100m == nil { + var ret int32 + return ret + } + return *o.ObjectSize100m +} + +// GetObjectSize100mOk returns a tuple with the ObjectSize100m field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealtimeEntryAggregated) GetObjectSize100mOk() (*int32, bool) { + if o == nil || o.ObjectSize100m == nil { + return nil, false + } + return o.ObjectSize100m, true +} + +// HasObjectSize100m returns a boolean if a field has been set. +func (o *RealtimeEntryAggregated) HasObjectSize100m() bool { + if o != nil && o.ObjectSize100m != nil { + return true + } + + return false +} + +// SetObjectSize100m gets a reference to the given int32 and assigns it to the ObjectSize100m field. +func (o *RealtimeEntryAggregated) SetObjectSize100m(v int32) { + o.ObjectSize100m = &v +} + +// GetObjectSize1g returns the ObjectSize1g field value if set, zero value otherwise. +func (o *RealtimeEntryAggregated) GetObjectSize1g() int32 { + if o == nil || o.ObjectSize1g == nil { + var ret int32 + return ret + } + return *o.ObjectSize1g +} + +// GetObjectSize1gOk returns a tuple with the ObjectSize1g field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealtimeEntryAggregated) GetObjectSize1gOk() (*int32, bool) { + if o == nil || o.ObjectSize1g == nil { + return nil, false + } + return o.ObjectSize1g, true +} + +// HasObjectSize1g returns a boolean if a field has been set. +func (o *RealtimeEntryAggregated) HasObjectSize1g() bool { + if o != nil && o.ObjectSize1g != nil { + return true + } + + return false +} + +// SetObjectSize1g gets a reference to the given int32 and assigns it to the ObjectSize1g field. +func (o *RealtimeEntryAggregated) SetObjectSize1g(v int32) { + o.ObjectSize1g = &v +} + +// GetObjectSizeOther returns the ObjectSizeOther field value if set, zero value otherwise. +func (o *RealtimeEntryAggregated) GetObjectSizeOther() int32 { + if o == nil || o.ObjectSizeOther == nil { + var ret int32 + return ret + } + return *o.ObjectSizeOther +} + +// GetObjectSizeOtherOk returns a tuple with the ObjectSizeOther field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealtimeEntryAggregated) GetObjectSizeOtherOk() (*int32, bool) { + if o == nil || o.ObjectSizeOther == nil { + return nil, false + } + return o.ObjectSizeOther, true +} + +// HasObjectSizeOther returns a boolean if a field has been set. +func (o *RealtimeEntryAggregated) HasObjectSizeOther() bool { + if o != nil && o.ObjectSizeOther != nil { + return true + } + + return false +} + +// SetObjectSizeOther gets a reference to the given int32 and assigns it to the ObjectSizeOther field. +func (o *RealtimeEntryAggregated) SetObjectSizeOther(v int32) { + o.ObjectSizeOther = &v +} + +// GetRecvSubTime returns the RecvSubTime field value if set, zero value otherwise. +func (o *RealtimeEntryAggregated) GetRecvSubTime() float32 { + if o == nil || o.RecvSubTime == nil { + var ret float32 + return ret + } + return *o.RecvSubTime +} + +// GetRecvSubTimeOk returns a tuple with the RecvSubTime field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealtimeEntryAggregated) GetRecvSubTimeOk() (*float32, bool) { + if o == nil || o.RecvSubTime == nil { + return nil, false + } + return o.RecvSubTime, true +} + +// HasRecvSubTime returns a boolean if a field has been set. +func (o *RealtimeEntryAggregated) HasRecvSubTime() bool { + if o != nil && o.RecvSubTime != nil { + return true + } + + return false +} + +// SetRecvSubTime gets a reference to the given float32 and assigns it to the RecvSubTime field. +func (o *RealtimeEntryAggregated) SetRecvSubTime(v float32) { + o.RecvSubTime = &v +} + +// GetRecvSubCount returns the RecvSubCount field value if set, zero value otherwise. +func (o *RealtimeEntryAggregated) GetRecvSubCount() int32 { + if o == nil || o.RecvSubCount == nil { + var ret int32 + return ret + } + return *o.RecvSubCount +} + +// GetRecvSubCountOk returns a tuple with the RecvSubCount field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealtimeEntryAggregated) GetRecvSubCountOk() (*int32, bool) { + if o == nil || o.RecvSubCount == nil { + return nil, false + } + return o.RecvSubCount, true +} + +// HasRecvSubCount returns a boolean if a field has been set. +func (o *RealtimeEntryAggregated) HasRecvSubCount() bool { + if o != nil && o.RecvSubCount != nil { + return true + } + + return false +} + +// SetRecvSubCount gets a reference to the given int32 and assigns it to the RecvSubCount field. +func (o *RealtimeEntryAggregated) SetRecvSubCount(v int32) { + o.RecvSubCount = &v +} + +// GetHashSubTime returns the HashSubTime field value if set, zero value otherwise. +func (o *RealtimeEntryAggregated) GetHashSubTime() float32 { + if o == nil || o.HashSubTime == nil { + var ret float32 + return ret + } + return *o.HashSubTime +} + +// GetHashSubTimeOk returns a tuple with the HashSubTime field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealtimeEntryAggregated) GetHashSubTimeOk() (*float32, bool) { + if o == nil || o.HashSubTime == nil { + return nil, false + } + return o.HashSubTime, true +} + +// HasHashSubTime returns a boolean if a field has been set. +func (o *RealtimeEntryAggregated) HasHashSubTime() bool { + if o != nil && o.HashSubTime != nil { + return true + } + + return false +} + +// SetHashSubTime gets a reference to the given float32 and assigns it to the HashSubTime field. +func (o *RealtimeEntryAggregated) SetHashSubTime(v float32) { + o.HashSubTime = &v +} + +// GetHashSubCount returns the HashSubCount field value if set, zero value otherwise. +func (o *RealtimeEntryAggregated) GetHashSubCount() int32 { + if o == nil || o.HashSubCount == nil { + var ret int32 + return ret + } + return *o.HashSubCount +} + +// GetHashSubCountOk returns a tuple with the HashSubCount field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealtimeEntryAggregated) GetHashSubCountOk() (*int32, bool) { + if o == nil || o.HashSubCount == nil { + return nil, false + } + return o.HashSubCount, true +} + +// HasHashSubCount returns a boolean if a field has been set. +func (o *RealtimeEntryAggregated) HasHashSubCount() bool { + if o != nil && o.HashSubCount != nil { + return true + } + + return false +} + +// SetHashSubCount gets a reference to the given int32 and assigns it to the HashSubCount field. +func (o *RealtimeEntryAggregated) SetHashSubCount(v int32) { + o.HashSubCount = &v +} + +// GetMissSubTime returns the MissSubTime field value if set, zero value otherwise. +func (o *RealtimeEntryAggregated) GetMissSubTime() float32 { + if o == nil || o.MissSubTime == nil { + var ret float32 + return ret + } + return *o.MissSubTime +} + +// GetMissSubTimeOk returns a tuple with the MissSubTime field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealtimeEntryAggregated) GetMissSubTimeOk() (*float32, bool) { + if o == nil || o.MissSubTime == nil { + return nil, false + } + return o.MissSubTime, true +} + +// HasMissSubTime returns a boolean if a field has been set. +func (o *RealtimeEntryAggregated) HasMissSubTime() bool { + if o != nil && o.MissSubTime != nil { + return true + } + + return false +} + +// SetMissSubTime gets a reference to the given float32 and assigns it to the MissSubTime field. +func (o *RealtimeEntryAggregated) SetMissSubTime(v float32) { + o.MissSubTime = &v +} + +// GetMissSubCount returns the MissSubCount field value if set, zero value otherwise. +func (o *RealtimeEntryAggregated) GetMissSubCount() int32 { + if o == nil || o.MissSubCount == nil { + var ret int32 + return ret + } + return *o.MissSubCount +} + +// GetMissSubCountOk returns a tuple with the MissSubCount field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealtimeEntryAggregated) GetMissSubCountOk() (*int32, bool) { + if o == nil || o.MissSubCount == nil { + return nil, false + } + return o.MissSubCount, true +} + +// HasMissSubCount returns a boolean if a field has been set. +func (o *RealtimeEntryAggregated) HasMissSubCount() bool { + if o != nil && o.MissSubCount != nil { + return true + } + + return false +} + +// SetMissSubCount gets a reference to the given int32 and assigns it to the MissSubCount field. +func (o *RealtimeEntryAggregated) SetMissSubCount(v int32) { + o.MissSubCount = &v +} + +// GetFetchSubTime returns the FetchSubTime field value if set, zero value otherwise. +func (o *RealtimeEntryAggregated) GetFetchSubTime() float32 { + if o == nil || o.FetchSubTime == nil { + var ret float32 + return ret + } + return *o.FetchSubTime +} + +// GetFetchSubTimeOk returns a tuple with the FetchSubTime field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealtimeEntryAggregated) GetFetchSubTimeOk() (*float32, bool) { + if o == nil || o.FetchSubTime == nil { + return nil, false + } + return o.FetchSubTime, true +} + +// HasFetchSubTime returns a boolean if a field has been set. +func (o *RealtimeEntryAggregated) HasFetchSubTime() bool { + if o != nil && o.FetchSubTime != nil { + return true + } + + return false +} + +// SetFetchSubTime gets a reference to the given float32 and assigns it to the FetchSubTime field. +func (o *RealtimeEntryAggregated) SetFetchSubTime(v float32) { + o.FetchSubTime = &v +} + +// GetFetchSubCount returns the FetchSubCount field value if set, zero value otherwise. +func (o *RealtimeEntryAggregated) GetFetchSubCount() int32 { + if o == nil || o.FetchSubCount == nil { + var ret int32 + return ret + } + return *o.FetchSubCount +} + +// GetFetchSubCountOk returns a tuple with the FetchSubCount field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealtimeEntryAggregated) GetFetchSubCountOk() (*int32, bool) { + if o == nil || o.FetchSubCount == nil { + return nil, false + } + return o.FetchSubCount, true +} + +// HasFetchSubCount returns a boolean if a field has been set. +func (o *RealtimeEntryAggregated) HasFetchSubCount() bool { + if o != nil && o.FetchSubCount != nil { + return true + } + + return false +} + +// SetFetchSubCount gets a reference to the given int32 and assigns it to the FetchSubCount field. +func (o *RealtimeEntryAggregated) SetFetchSubCount(v int32) { + o.FetchSubCount = &v +} + +// GetPassSubTime returns the PassSubTime field value if set, zero value otherwise. +func (o *RealtimeEntryAggregated) GetPassSubTime() float32 { + if o == nil || o.PassSubTime == nil { + var ret float32 + return ret + } + return *o.PassSubTime +} + +// GetPassSubTimeOk returns a tuple with the PassSubTime field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealtimeEntryAggregated) GetPassSubTimeOk() (*float32, bool) { + if o == nil || o.PassSubTime == nil { + return nil, false + } + return o.PassSubTime, true +} + +// HasPassSubTime returns a boolean if a field has been set. +func (o *RealtimeEntryAggregated) HasPassSubTime() bool { + if o != nil && o.PassSubTime != nil { + return true + } + + return false +} + +// SetPassSubTime gets a reference to the given float32 and assigns it to the PassSubTime field. +func (o *RealtimeEntryAggregated) SetPassSubTime(v float32) { + o.PassSubTime = &v +} + +// GetPassSubCount returns the PassSubCount field value if set, zero value otherwise. +func (o *RealtimeEntryAggregated) GetPassSubCount() int32 { + if o == nil || o.PassSubCount == nil { + var ret int32 + return ret + } + return *o.PassSubCount +} + +// GetPassSubCountOk returns a tuple with the PassSubCount field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealtimeEntryAggregated) GetPassSubCountOk() (*int32, bool) { + if o == nil || o.PassSubCount == nil { + return nil, false + } + return o.PassSubCount, true +} + +// HasPassSubCount returns a boolean if a field has been set. +func (o *RealtimeEntryAggregated) HasPassSubCount() bool { + if o != nil && o.PassSubCount != nil { + return true + } + + return false +} + +// SetPassSubCount gets a reference to the given int32 and assigns it to the PassSubCount field. +func (o *RealtimeEntryAggregated) SetPassSubCount(v int32) { + o.PassSubCount = &v +} + +// GetPipeSubTime returns the PipeSubTime field value if set, zero value otherwise. +func (o *RealtimeEntryAggregated) GetPipeSubTime() float32 { + if o == nil || o.PipeSubTime == nil { + var ret float32 + return ret + } + return *o.PipeSubTime +} + +// GetPipeSubTimeOk returns a tuple with the PipeSubTime field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealtimeEntryAggregated) GetPipeSubTimeOk() (*float32, bool) { + if o == nil || o.PipeSubTime == nil { + return nil, false + } + return o.PipeSubTime, true +} + +// HasPipeSubTime returns a boolean if a field has been set. +func (o *RealtimeEntryAggregated) HasPipeSubTime() bool { + if o != nil && o.PipeSubTime != nil { + return true + } + + return false +} + +// SetPipeSubTime gets a reference to the given float32 and assigns it to the PipeSubTime field. +func (o *RealtimeEntryAggregated) SetPipeSubTime(v float32) { + o.PipeSubTime = &v +} + +// GetPipeSubCount returns the PipeSubCount field value if set, zero value otherwise. +func (o *RealtimeEntryAggregated) GetPipeSubCount() int32 { + if o == nil || o.PipeSubCount == nil { + var ret int32 + return ret + } + return *o.PipeSubCount +} + +// GetPipeSubCountOk returns a tuple with the PipeSubCount field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealtimeEntryAggregated) GetPipeSubCountOk() (*int32, bool) { + if o == nil || o.PipeSubCount == nil { + return nil, false + } + return o.PipeSubCount, true +} + +// HasPipeSubCount returns a boolean if a field has been set. +func (o *RealtimeEntryAggregated) HasPipeSubCount() bool { + if o != nil && o.PipeSubCount != nil { + return true + } + + return false +} + +// SetPipeSubCount gets a reference to the given int32 and assigns it to the PipeSubCount field. +func (o *RealtimeEntryAggregated) SetPipeSubCount(v int32) { + o.PipeSubCount = &v +} + +// GetDeliverSubTime returns the DeliverSubTime field value if set, zero value otherwise. +func (o *RealtimeEntryAggregated) GetDeliverSubTime() float32 { + if o == nil || o.DeliverSubTime == nil { + var ret float32 + return ret + } + return *o.DeliverSubTime +} + +// GetDeliverSubTimeOk returns a tuple with the DeliverSubTime field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealtimeEntryAggregated) GetDeliverSubTimeOk() (*float32, bool) { + if o == nil || o.DeliverSubTime == nil { + return nil, false + } + return o.DeliverSubTime, true +} + +// HasDeliverSubTime returns a boolean if a field has been set. +func (o *RealtimeEntryAggregated) HasDeliverSubTime() bool { + if o != nil && o.DeliverSubTime != nil { + return true + } + + return false +} + +// SetDeliverSubTime gets a reference to the given float32 and assigns it to the DeliverSubTime field. +func (o *RealtimeEntryAggregated) SetDeliverSubTime(v float32) { + o.DeliverSubTime = &v +} + +// GetDeliverSubCount returns the DeliverSubCount field value if set, zero value otherwise. +func (o *RealtimeEntryAggregated) GetDeliverSubCount() int32 { + if o == nil || o.DeliverSubCount == nil { + var ret int32 + return ret + } + return *o.DeliverSubCount +} + +// GetDeliverSubCountOk returns a tuple with the DeliverSubCount field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealtimeEntryAggregated) GetDeliverSubCountOk() (*int32, bool) { + if o == nil || o.DeliverSubCount == nil { + return nil, false + } + return o.DeliverSubCount, true +} + +// HasDeliverSubCount returns a boolean if a field has been set. +func (o *RealtimeEntryAggregated) HasDeliverSubCount() bool { + if o != nil && o.DeliverSubCount != nil { + return true + } + + return false +} + +// SetDeliverSubCount gets a reference to the given int32 and assigns it to the DeliverSubCount field. +func (o *RealtimeEntryAggregated) SetDeliverSubCount(v int32) { + o.DeliverSubCount = &v +} + +// GetErrorSubTime returns the ErrorSubTime field value if set, zero value otherwise. +func (o *RealtimeEntryAggregated) GetErrorSubTime() float32 { + if o == nil || o.ErrorSubTime == nil { + var ret float32 + return ret + } + return *o.ErrorSubTime +} + +// GetErrorSubTimeOk returns a tuple with the ErrorSubTime field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealtimeEntryAggregated) GetErrorSubTimeOk() (*float32, bool) { + if o == nil || o.ErrorSubTime == nil { + return nil, false + } + return o.ErrorSubTime, true +} + +// HasErrorSubTime returns a boolean if a field has been set. +func (o *RealtimeEntryAggregated) HasErrorSubTime() bool { + if o != nil && o.ErrorSubTime != nil { + return true + } + + return false +} + +// SetErrorSubTime gets a reference to the given float32 and assigns it to the ErrorSubTime field. +func (o *RealtimeEntryAggregated) SetErrorSubTime(v float32) { + o.ErrorSubTime = &v +} + +// GetErrorSubCount returns the ErrorSubCount field value if set, zero value otherwise. +func (o *RealtimeEntryAggregated) GetErrorSubCount() int32 { + if o == nil || o.ErrorSubCount == nil { + var ret int32 + return ret + } + return *o.ErrorSubCount +} + +// GetErrorSubCountOk returns a tuple with the ErrorSubCount field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealtimeEntryAggregated) GetErrorSubCountOk() (*int32, bool) { + if o == nil || o.ErrorSubCount == nil { + return nil, false + } + return o.ErrorSubCount, true +} + +// HasErrorSubCount returns a boolean if a field has been set. +func (o *RealtimeEntryAggregated) HasErrorSubCount() bool { + if o != nil && o.ErrorSubCount != nil { + return true + } + + return false +} + +// SetErrorSubCount gets a reference to the given int32 and assigns it to the ErrorSubCount field. +func (o *RealtimeEntryAggregated) SetErrorSubCount(v int32) { + o.ErrorSubCount = &v +} + +// GetHitSubTime returns the HitSubTime field value if set, zero value otherwise. +func (o *RealtimeEntryAggregated) GetHitSubTime() float32 { + if o == nil || o.HitSubTime == nil { + var ret float32 + return ret + } + return *o.HitSubTime +} + +// GetHitSubTimeOk returns a tuple with the HitSubTime field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealtimeEntryAggregated) GetHitSubTimeOk() (*float32, bool) { + if o == nil || o.HitSubTime == nil { + return nil, false + } + return o.HitSubTime, true +} + +// HasHitSubTime returns a boolean if a field has been set. +func (o *RealtimeEntryAggregated) HasHitSubTime() bool { + if o != nil && o.HitSubTime != nil { + return true + } + + return false +} + +// SetHitSubTime gets a reference to the given float32 and assigns it to the HitSubTime field. +func (o *RealtimeEntryAggregated) SetHitSubTime(v float32) { + o.HitSubTime = &v +} + +// GetHitSubCount returns the HitSubCount field value if set, zero value otherwise. +func (o *RealtimeEntryAggregated) GetHitSubCount() int32 { + if o == nil || o.HitSubCount == nil { + var ret int32 + return ret + } + return *o.HitSubCount +} + +// GetHitSubCountOk returns a tuple with the HitSubCount field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealtimeEntryAggregated) GetHitSubCountOk() (*int32, bool) { + if o == nil || o.HitSubCount == nil { + return nil, false + } + return o.HitSubCount, true +} + +// HasHitSubCount returns a boolean if a field has been set. +func (o *RealtimeEntryAggregated) HasHitSubCount() bool { + if o != nil && o.HitSubCount != nil { + return true + } + + return false +} + +// SetHitSubCount gets a reference to the given int32 and assigns it to the HitSubCount field. +func (o *RealtimeEntryAggregated) SetHitSubCount(v int32) { + o.HitSubCount = &v +} + +// GetPrehashSubTime returns the PrehashSubTime field value if set, zero value otherwise. +func (o *RealtimeEntryAggregated) GetPrehashSubTime() float32 { + if o == nil || o.PrehashSubTime == nil { + var ret float32 + return ret + } + return *o.PrehashSubTime +} + +// GetPrehashSubTimeOk returns a tuple with the PrehashSubTime field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealtimeEntryAggregated) GetPrehashSubTimeOk() (*float32, bool) { + if o == nil || o.PrehashSubTime == nil { + return nil, false + } + return o.PrehashSubTime, true +} + +// HasPrehashSubTime returns a boolean if a field has been set. +func (o *RealtimeEntryAggregated) HasPrehashSubTime() bool { + if o != nil && o.PrehashSubTime != nil { + return true + } + + return false +} + +// SetPrehashSubTime gets a reference to the given float32 and assigns it to the PrehashSubTime field. +func (o *RealtimeEntryAggregated) SetPrehashSubTime(v float32) { + o.PrehashSubTime = &v +} + +// GetPrehashSubCount returns the PrehashSubCount field value if set, zero value otherwise. +func (o *RealtimeEntryAggregated) GetPrehashSubCount() int32 { + if o == nil || o.PrehashSubCount == nil { + var ret int32 + return ret + } + return *o.PrehashSubCount +} + +// GetPrehashSubCountOk returns a tuple with the PrehashSubCount field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealtimeEntryAggregated) GetPrehashSubCountOk() (*int32, bool) { + if o == nil || o.PrehashSubCount == nil { + return nil, false + } + return o.PrehashSubCount, true +} + +// HasPrehashSubCount returns a boolean if a field has been set. +func (o *RealtimeEntryAggregated) HasPrehashSubCount() bool { + if o != nil && o.PrehashSubCount != nil { + return true + } + + return false +} + +// SetPrehashSubCount gets a reference to the given int32 and assigns it to the PrehashSubCount field. +func (o *RealtimeEntryAggregated) SetPrehashSubCount(v int32) { + o.PrehashSubCount = &v +} + +// GetPredeliverSubTime returns the PredeliverSubTime field value if set, zero value otherwise. +func (o *RealtimeEntryAggregated) GetPredeliverSubTime() float32 { + if o == nil || o.PredeliverSubTime == nil { + var ret float32 + return ret + } + return *o.PredeliverSubTime +} + +// GetPredeliverSubTimeOk returns a tuple with the PredeliverSubTime field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealtimeEntryAggregated) GetPredeliverSubTimeOk() (*float32, bool) { + if o == nil || o.PredeliverSubTime == nil { + return nil, false + } + return o.PredeliverSubTime, true +} + +// HasPredeliverSubTime returns a boolean if a field has been set. +func (o *RealtimeEntryAggregated) HasPredeliverSubTime() bool { + if o != nil && o.PredeliverSubTime != nil { + return true + } + + return false +} + +// SetPredeliverSubTime gets a reference to the given float32 and assigns it to the PredeliverSubTime field. +func (o *RealtimeEntryAggregated) SetPredeliverSubTime(v float32) { + o.PredeliverSubTime = &v +} + +// GetPredeliverSubCount returns the PredeliverSubCount field value if set, zero value otherwise. +func (o *RealtimeEntryAggregated) GetPredeliverSubCount() int32 { + if o == nil || o.PredeliverSubCount == nil { + var ret int32 + return ret + } + return *o.PredeliverSubCount +} + +// GetPredeliverSubCountOk returns a tuple with the PredeliverSubCount field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealtimeEntryAggregated) GetPredeliverSubCountOk() (*int32, bool) { + if o == nil || o.PredeliverSubCount == nil { + return nil, false + } + return o.PredeliverSubCount, true +} + +// HasPredeliverSubCount returns a boolean if a field has been set. +func (o *RealtimeEntryAggregated) HasPredeliverSubCount() bool { + if o != nil && o.PredeliverSubCount != nil { + return true + } + + return false +} + +// SetPredeliverSubCount gets a reference to the given int32 and assigns it to the PredeliverSubCount field. +func (o *RealtimeEntryAggregated) SetPredeliverSubCount(v int32) { + o.PredeliverSubCount = &v +} + +// GetHitRespBodyBytes returns the HitRespBodyBytes field value if set, zero value otherwise. +func (o *RealtimeEntryAggregated) GetHitRespBodyBytes() int32 { + if o == nil || o.HitRespBodyBytes == nil { + var ret int32 + return ret + } + return *o.HitRespBodyBytes +} + +// GetHitRespBodyBytesOk returns a tuple with the HitRespBodyBytes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealtimeEntryAggregated) GetHitRespBodyBytesOk() (*int32, bool) { + if o == nil || o.HitRespBodyBytes == nil { + return nil, false + } + return o.HitRespBodyBytes, true +} + +// HasHitRespBodyBytes returns a boolean if a field has been set. +func (o *RealtimeEntryAggregated) HasHitRespBodyBytes() bool { + if o != nil && o.HitRespBodyBytes != nil { + return true + } + + return false +} + +// SetHitRespBodyBytes gets a reference to the given int32 and assigns it to the HitRespBodyBytes field. +func (o *RealtimeEntryAggregated) SetHitRespBodyBytes(v int32) { + o.HitRespBodyBytes = &v +} + +// GetMissRespBodyBytes returns the MissRespBodyBytes field value if set, zero value otherwise. +func (o *RealtimeEntryAggregated) GetMissRespBodyBytes() int32 { + if o == nil || o.MissRespBodyBytes == nil { + var ret int32 + return ret + } + return *o.MissRespBodyBytes +} + +// GetMissRespBodyBytesOk returns a tuple with the MissRespBodyBytes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealtimeEntryAggregated) GetMissRespBodyBytesOk() (*int32, bool) { + if o == nil || o.MissRespBodyBytes == nil { + return nil, false + } + return o.MissRespBodyBytes, true +} + +// HasMissRespBodyBytes returns a boolean if a field has been set. +func (o *RealtimeEntryAggregated) HasMissRespBodyBytes() bool { + if o != nil && o.MissRespBodyBytes != nil { + return true + } + + return false +} + +// SetMissRespBodyBytes gets a reference to the given int32 and assigns it to the MissRespBodyBytes field. +func (o *RealtimeEntryAggregated) SetMissRespBodyBytes(v int32) { + o.MissRespBodyBytes = &v +} + +// GetPassRespBodyBytes returns the PassRespBodyBytes field value if set, zero value otherwise. +func (o *RealtimeEntryAggregated) GetPassRespBodyBytes() int32 { + if o == nil || o.PassRespBodyBytes == nil { + var ret int32 + return ret + } + return *o.PassRespBodyBytes +} + +// GetPassRespBodyBytesOk returns a tuple with the PassRespBodyBytes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealtimeEntryAggregated) GetPassRespBodyBytesOk() (*int32, bool) { + if o == nil || o.PassRespBodyBytes == nil { + return nil, false + } + return o.PassRespBodyBytes, true +} + +// HasPassRespBodyBytes returns a boolean if a field has been set. +func (o *RealtimeEntryAggregated) HasPassRespBodyBytes() bool { + if o != nil && o.PassRespBodyBytes != nil { + return true + } + + return false +} + +// SetPassRespBodyBytes gets a reference to the given int32 and assigns it to the PassRespBodyBytes field. +func (o *RealtimeEntryAggregated) SetPassRespBodyBytes(v int32) { + o.PassRespBodyBytes = &v +} + +// GetComputeReqHeaderBytes returns the ComputeReqHeaderBytes field value if set, zero value otherwise. +func (o *RealtimeEntryAggregated) GetComputeReqHeaderBytes() int32 { + if o == nil || o.ComputeReqHeaderBytes == nil { + var ret int32 + return ret + } + return *o.ComputeReqHeaderBytes +} + +// GetComputeReqHeaderBytesOk returns a tuple with the ComputeReqHeaderBytes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealtimeEntryAggregated) GetComputeReqHeaderBytesOk() (*int32, bool) { + if o == nil || o.ComputeReqHeaderBytes == nil { + return nil, false + } + return o.ComputeReqHeaderBytes, true +} + +// HasComputeReqHeaderBytes returns a boolean if a field has been set. +func (o *RealtimeEntryAggregated) HasComputeReqHeaderBytes() bool { + if o != nil && o.ComputeReqHeaderBytes != nil { + return true + } + + return false +} + +// SetComputeReqHeaderBytes gets a reference to the given int32 and assigns it to the ComputeReqHeaderBytes field. +func (o *RealtimeEntryAggregated) SetComputeReqHeaderBytes(v int32) { + o.ComputeReqHeaderBytes = &v +} + +// GetComputeReqBodyBytes returns the ComputeReqBodyBytes field value if set, zero value otherwise. +func (o *RealtimeEntryAggregated) GetComputeReqBodyBytes() int32 { + if o == nil || o.ComputeReqBodyBytes == nil { + var ret int32 + return ret + } + return *o.ComputeReqBodyBytes +} + +// GetComputeReqBodyBytesOk returns a tuple with the ComputeReqBodyBytes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealtimeEntryAggregated) GetComputeReqBodyBytesOk() (*int32, bool) { + if o == nil || o.ComputeReqBodyBytes == nil { + return nil, false + } + return o.ComputeReqBodyBytes, true +} + +// HasComputeReqBodyBytes returns a boolean if a field has been set. +func (o *RealtimeEntryAggregated) HasComputeReqBodyBytes() bool { + if o != nil && o.ComputeReqBodyBytes != nil { + return true + } + + return false +} + +// SetComputeReqBodyBytes gets a reference to the given int32 and assigns it to the ComputeReqBodyBytes field. +func (o *RealtimeEntryAggregated) SetComputeReqBodyBytes(v int32) { + o.ComputeReqBodyBytes = &v +} + +// GetComputeRespHeaderBytes returns the ComputeRespHeaderBytes field value if set, zero value otherwise. +func (o *RealtimeEntryAggregated) GetComputeRespHeaderBytes() int32 { + if o == nil || o.ComputeRespHeaderBytes == nil { + var ret int32 + return ret + } + return *o.ComputeRespHeaderBytes +} + +// GetComputeRespHeaderBytesOk returns a tuple with the ComputeRespHeaderBytes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealtimeEntryAggregated) GetComputeRespHeaderBytesOk() (*int32, bool) { + if o == nil || o.ComputeRespHeaderBytes == nil { + return nil, false + } + return o.ComputeRespHeaderBytes, true +} + +// HasComputeRespHeaderBytes returns a boolean if a field has been set. +func (o *RealtimeEntryAggregated) HasComputeRespHeaderBytes() bool { + if o != nil && o.ComputeRespHeaderBytes != nil { + return true + } + + return false +} + +// SetComputeRespHeaderBytes gets a reference to the given int32 and assigns it to the ComputeRespHeaderBytes field. +func (o *RealtimeEntryAggregated) SetComputeRespHeaderBytes(v int32) { + o.ComputeRespHeaderBytes = &v +} + +// GetComputeRespBodyBytes returns the ComputeRespBodyBytes field value if set, zero value otherwise. +func (o *RealtimeEntryAggregated) GetComputeRespBodyBytes() int32 { + if o == nil || o.ComputeRespBodyBytes == nil { + var ret int32 + return ret + } + return *o.ComputeRespBodyBytes +} + +// GetComputeRespBodyBytesOk returns a tuple with the ComputeRespBodyBytes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealtimeEntryAggregated) GetComputeRespBodyBytesOk() (*int32, bool) { + if o == nil || o.ComputeRespBodyBytes == nil { + return nil, false + } + return o.ComputeRespBodyBytes, true +} + +// HasComputeRespBodyBytes returns a boolean if a field has been set. +func (o *RealtimeEntryAggregated) HasComputeRespBodyBytes() bool { + if o != nil && o.ComputeRespBodyBytes != nil { + return true + } + + return false +} + +// SetComputeRespBodyBytes gets a reference to the given int32 and assigns it to the ComputeRespBodyBytes field. +func (o *RealtimeEntryAggregated) SetComputeRespBodyBytes(v int32) { + o.ComputeRespBodyBytes = &v +} + +// GetImgvideo returns the Imgvideo field value if set, zero value otherwise. +func (o *RealtimeEntryAggregated) GetImgvideo() int32 { + if o == nil || o.Imgvideo == nil { + var ret int32 + return ret + } + return *o.Imgvideo +} + +// GetImgvideoOk returns a tuple with the Imgvideo field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealtimeEntryAggregated) GetImgvideoOk() (*int32, bool) { + if o == nil || o.Imgvideo == nil { + return nil, false + } + return o.Imgvideo, true +} + +// HasImgvideo returns a boolean if a field has been set. +func (o *RealtimeEntryAggregated) HasImgvideo() bool { + if o != nil && o.Imgvideo != nil { + return true + } + + return false +} + +// SetImgvideo gets a reference to the given int32 and assigns it to the Imgvideo field. +func (o *RealtimeEntryAggregated) SetImgvideo(v int32) { + o.Imgvideo = &v +} + +// GetImgvideoFrames returns the ImgvideoFrames field value if set, zero value otherwise. +func (o *RealtimeEntryAggregated) GetImgvideoFrames() int32 { + if o == nil || o.ImgvideoFrames == nil { + var ret int32 + return ret + } + return *o.ImgvideoFrames +} + +// GetImgvideoFramesOk returns a tuple with the ImgvideoFrames field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealtimeEntryAggregated) GetImgvideoFramesOk() (*int32, bool) { + if o == nil || o.ImgvideoFrames == nil { + return nil, false + } + return o.ImgvideoFrames, true +} + +// HasImgvideoFrames returns a boolean if a field has been set. +func (o *RealtimeEntryAggregated) HasImgvideoFrames() bool { + if o != nil && o.ImgvideoFrames != nil { + return true + } + + return false +} + +// SetImgvideoFrames gets a reference to the given int32 and assigns it to the ImgvideoFrames field. +func (o *RealtimeEntryAggregated) SetImgvideoFrames(v int32) { + o.ImgvideoFrames = &v +} + +// GetImgvideoRespHeaderBytes returns the ImgvideoRespHeaderBytes field value if set, zero value otherwise. +func (o *RealtimeEntryAggregated) GetImgvideoRespHeaderBytes() int32 { + if o == nil || o.ImgvideoRespHeaderBytes == nil { + var ret int32 + return ret + } + return *o.ImgvideoRespHeaderBytes +} + +// GetImgvideoRespHeaderBytesOk returns a tuple with the ImgvideoRespHeaderBytes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealtimeEntryAggregated) GetImgvideoRespHeaderBytesOk() (*int32, bool) { + if o == nil || o.ImgvideoRespHeaderBytes == nil { + return nil, false + } + return o.ImgvideoRespHeaderBytes, true +} + +// HasImgvideoRespHeaderBytes returns a boolean if a field has been set. +func (o *RealtimeEntryAggregated) HasImgvideoRespHeaderBytes() bool { + if o != nil && o.ImgvideoRespHeaderBytes != nil { + return true + } + + return false +} + +// SetImgvideoRespHeaderBytes gets a reference to the given int32 and assigns it to the ImgvideoRespHeaderBytes field. +func (o *RealtimeEntryAggregated) SetImgvideoRespHeaderBytes(v int32) { + o.ImgvideoRespHeaderBytes = &v +} + +// GetImgvideoRespBodyBytes returns the ImgvideoRespBodyBytes field value if set, zero value otherwise. +func (o *RealtimeEntryAggregated) GetImgvideoRespBodyBytes() int32 { + if o == nil || o.ImgvideoRespBodyBytes == nil { + var ret int32 + return ret + } + return *o.ImgvideoRespBodyBytes +} + +// GetImgvideoRespBodyBytesOk returns a tuple with the ImgvideoRespBodyBytes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealtimeEntryAggregated) GetImgvideoRespBodyBytesOk() (*int32, bool) { + if o == nil || o.ImgvideoRespBodyBytes == nil { + return nil, false + } + return o.ImgvideoRespBodyBytes, true +} + +// HasImgvideoRespBodyBytes returns a boolean if a field has been set. +func (o *RealtimeEntryAggregated) HasImgvideoRespBodyBytes() bool { + if o != nil && o.ImgvideoRespBodyBytes != nil { + return true + } + + return false +} + +// SetImgvideoRespBodyBytes gets a reference to the given int32 and assigns it to the ImgvideoRespBodyBytes field. +func (o *RealtimeEntryAggregated) SetImgvideoRespBodyBytes(v int32) { + o.ImgvideoRespBodyBytes = &v +} + +// GetImgvideoShield returns the ImgvideoShield field value if set, zero value otherwise. +func (o *RealtimeEntryAggregated) GetImgvideoShield() int32 { + if o == nil || o.ImgvideoShield == nil { + var ret int32 + return ret + } + return *o.ImgvideoShield +} + +// GetImgvideoShieldOk returns a tuple with the ImgvideoShield field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealtimeEntryAggregated) GetImgvideoShieldOk() (*int32, bool) { + if o == nil || o.ImgvideoShield == nil { + return nil, false + } + return o.ImgvideoShield, true +} + +// HasImgvideoShield returns a boolean if a field has been set. +func (o *RealtimeEntryAggregated) HasImgvideoShield() bool { + if o != nil && o.ImgvideoShield != nil { + return true + } + + return false +} + +// SetImgvideoShield gets a reference to the given int32 and assigns it to the ImgvideoShield field. +func (o *RealtimeEntryAggregated) SetImgvideoShield(v int32) { + o.ImgvideoShield = &v +} + +// GetImgvideoShieldFrames returns the ImgvideoShieldFrames field value if set, zero value otherwise. +func (o *RealtimeEntryAggregated) GetImgvideoShieldFrames() int32 { + if o == nil || o.ImgvideoShieldFrames == nil { + var ret int32 + return ret + } + return *o.ImgvideoShieldFrames +} + +// GetImgvideoShieldFramesOk returns a tuple with the ImgvideoShieldFrames field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealtimeEntryAggregated) GetImgvideoShieldFramesOk() (*int32, bool) { + if o == nil || o.ImgvideoShieldFrames == nil { + return nil, false + } + return o.ImgvideoShieldFrames, true +} + +// HasImgvideoShieldFrames returns a boolean if a field has been set. +func (o *RealtimeEntryAggregated) HasImgvideoShieldFrames() bool { + if o != nil && o.ImgvideoShieldFrames != nil { + return true + } + + return false +} + +// SetImgvideoShieldFrames gets a reference to the given int32 and assigns it to the ImgvideoShieldFrames field. +func (o *RealtimeEntryAggregated) SetImgvideoShieldFrames(v int32) { + o.ImgvideoShieldFrames = &v +} + +// GetImgvideoShieldRespHeaderBytes returns the ImgvideoShieldRespHeaderBytes field value if set, zero value otherwise. +func (o *RealtimeEntryAggregated) GetImgvideoShieldRespHeaderBytes() int32 { + if o == nil || o.ImgvideoShieldRespHeaderBytes == nil { + var ret int32 + return ret + } + return *o.ImgvideoShieldRespHeaderBytes +} + +// GetImgvideoShieldRespHeaderBytesOk returns a tuple with the ImgvideoShieldRespHeaderBytes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealtimeEntryAggregated) GetImgvideoShieldRespHeaderBytesOk() (*int32, bool) { + if o == nil || o.ImgvideoShieldRespHeaderBytes == nil { + return nil, false + } + return o.ImgvideoShieldRespHeaderBytes, true +} + +// HasImgvideoShieldRespHeaderBytes returns a boolean if a field has been set. +func (o *RealtimeEntryAggregated) HasImgvideoShieldRespHeaderBytes() bool { + if o != nil && o.ImgvideoShieldRespHeaderBytes != nil { + return true + } + + return false +} + +// SetImgvideoShieldRespHeaderBytes gets a reference to the given int32 and assigns it to the ImgvideoShieldRespHeaderBytes field. +func (o *RealtimeEntryAggregated) SetImgvideoShieldRespHeaderBytes(v int32) { + o.ImgvideoShieldRespHeaderBytes = &v +} + +// GetImgvideoShieldRespBodyBytes returns the ImgvideoShieldRespBodyBytes field value if set, zero value otherwise. +func (o *RealtimeEntryAggregated) GetImgvideoShieldRespBodyBytes() int32 { + if o == nil || o.ImgvideoShieldRespBodyBytes == nil { + var ret int32 + return ret + } + return *o.ImgvideoShieldRespBodyBytes +} + +// GetImgvideoShieldRespBodyBytesOk returns a tuple with the ImgvideoShieldRespBodyBytes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealtimeEntryAggregated) GetImgvideoShieldRespBodyBytesOk() (*int32, bool) { + if o == nil || o.ImgvideoShieldRespBodyBytes == nil { + return nil, false + } + return o.ImgvideoShieldRespBodyBytes, true +} + +// HasImgvideoShieldRespBodyBytes returns a boolean if a field has been set. +func (o *RealtimeEntryAggregated) HasImgvideoShieldRespBodyBytes() bool { + if o != nil && o.ImgvideoShieldRespBodyBytes != nil { + return true + } + + return false +} + +// SetImgvideoShieldRespBodyBytes gets a reference to the given int32 and assigns it to the ImgvideoShieldRespBodyBytes field. +func (o *RealtimeEntryAggregated) SetImgvideoShieldRespBodyBytes(v int32) { + o.ImgvideoShieldRespBodyBytes = &v +} + +// GetLogBytes returns the LogBytes field value if set, zero value otherwise. +func (o *RealtimeEntryAggregated) GetLogBytes() int32 { + if o == nil || o.LogBytes == nil { + var ret int32 + return ret + } + return *o.LogBytes +} + +// GetLogBytesOk returns a tuple with the LogBytes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealtimeEntryAggregated) GetLogBytesOk() (*int32, bool) { + if o == nil || o.LogBytes == nil { + return nil, false + } + return o.LogBytes, true +} + +// HasLogBytes returns a boolean if a field has been set. +func (o *RealtimeEntryAggregated) HasLogBytes() bool { + if o != nil && o.LogBytes != nil { + return true + } + + return false +} + +// SetLogBytes gets a reference to the given int32 and assigns it to the LogBytes field. +func (o *RealtimeEntryAggregated) SetLogBytes(v int32) { + o.LogBytes = &v +} + +// GetEdgeRequests returns the EdgeRequests field value if set, zero value otherwise. +func (o *RealtimeEntryAggregated) GetEdgeRequests() int32 { + if o == nil || o.EdgeRequests == nil { + var ret int32 + return ret + } + return *o.EdgeRequests +} + +// GetEdgeRequestsOk returns a tuple with the EdgeRequests field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealtimeEntryAggregated) GetEdgeRequestsOk() (*int32, bool) { + if o == nil || o.EdgeRequests == nil { + return nil, false + } + return o.EdgeRequests, true +} + +// HasEdgeRequests returns a boolean if a field has been set. +func (o *RealtimeEntryAggregated) HasEdgeRequests() bool { + if o != nil && o.EdgeRequests != nil { + return true + } + + return false +} + +// SetEdgeRequests gets a reference to the given int32 and assigns it to the EdgeRequests field. +func (o *RealtimeEntryAggregated) SetEdgeRequests(v int32) { + o.EdgeRequests = &v +} + +// GetEdgeRespHeaderBytes returns the EdgeRespHeaderBytes field value if set, zero value otherwise. +func (o *RealtimeEntryAggregated) GetEdgeRespHeaderBytes() int32 { + if o == nil || o.EdgeRespHeaderBytes == nil { + var ret int32 + return ret + } + return *o.EdgeRespHeaderBytes +} + +// GetEdgeRespHeaderBytesOk returns a tuple with the EdgeRespHeaderBytes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealtimeEntryAggregated) GetEdgeRespHeaderBytesOk() (*int32, bool) { + if o == nil || o.EdgeRespHeaderBytes == nil { + return nil, false + } + return o.EdgeRespHeaderBytes, true +} + +// HasEdgeRespHeaderBytes returns a boolean if a field has been set. +func (o *RealtimeEntryAggregated) HasEdgeRespHeaderBytes() bool { + if o != nil && o.EdgeRespHeaderBytes != nil { + return true + } + + return false +} + +// SetEdgeRespHeaderBytes gets a reference to the given int32 and assigns it to the EdgeRespHeaderBytes field. +func (o *RealtimeEntryAggregated) SetEdgeRespHeaderBytes(v int32) { + o.EdgeRespHeaderBytes = &v +} + +// GetEdgeRespBodyBytes returns the EdgeRespBodyBytes field value if set, zero value otherwise. +func (o *RealtimeEntryAggregated) GetEdgeRespBodyBytes() int32 { + if o == nil || o.EdgeRespBodyBytes == nil { + var ret int32 + return ret + } + return *o.EdgeRespBodyBytes +} + +// GetEdgeRespBodyBytesOk returns a tuple with the EdgeRespBodyBytes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealtimeEntryAggregated) GetEdgeRespBodyBytesOk() (*int32, bool) { + if o == nil || o.EdgeRespBodyBytes == nil { + return nil, false + } + return o.EdgeRespBodyBytes, true +} + +// HasEdgeRespBodyBytes returns a boolean if a field has been set. +func (o *RealtimeEntryAggregated) HasEdgeRespBodyBytes() bool { + if o != nil && o.EdgeRespBodyBytes != nil { + return true + } + + return false +} + +// SetEdgeRespBodyBytes gets a reference to the given int32 and assigns it to the EdgeRespBodyBytes field. +func (o *RealtimeEntryAggregated) SetEdgeRespBodyBytes(v int32) { + o.EdgeRespBodyBytes = &v +} + +// GetOriginRevalidations returns the OriginRevalidations field value if set, zero value otherwise. +func (o *RealtimeEntryAggregated) GetOriginRevalidations() int32 { + if o == nil || o.OriginRevalidations == nil { + var ret int32 + return ret + } + return *o.OriginRevalidations +} + +// GetOriginRevalidationsOk returns a tuple with the OriginRevalidations field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealtimeEntryAggregated) GetOriginRevalidationsOk() (*int32, bool) { + if o == nil || o.OriginRevalidations == nil { + return nil, false + } + return o.OriginRevalidations, true +} + +// HasOriginRevalidations returns a boolean if a field has been set. +func (o *RealtimeEntryAggregated) HasOriginRevalidations() bool { + if o != nil && o.OriginRevalidations != nil { + return true + } + + return false +} + +// SetOriginRevalidations gets a reference to the given int32 and assigns it to the OriginRevalidations field. +func (o *RealtimeEntryAggregated) SetOriginRevalidations(v int32) { + o.OriginRevalidations = &v +} + +// GetOriginFetches returns the OriginFetches field value if set, zero value otherwise. +func (o *RealtimeEntryAggregated) GetOriginFetches() int32 { + if o == nil || o.OriginFetches == nil { + var ret int32 + return ret + } + return *o.OriginFetches +} + +// GetOriginFetchesOk returns a tuple with the OriginFetches field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealtimeEntryAggregated) GetOriginFetchesOk() (*int32, bool) { + if o == nil || o.OriginFetches == nil { + return nil, false + } + return o.OriginFetches, true +} + +// HasOriginFetches returns a boolean if a field has been set. +func (o *RealtimeEntryAggregated) HasOriginFetches() bool { + if o != nil && o.OriginFetches != nil { + return true + } + + return false +} + +// SetOriginFetches gets a reference to the given int32 and assigns it to the OriginFetches field. +func (o *RealtimeEntryAggregated) SetOriginFetches(v int32) { + o.OriginFetches = &v +} + +// GetOriginFetchHeaderBytes returns the OriginFetchHeaderBytes field value if set, zero value otherwise. +func (o *RealtimeEntryAggregated) GetOriginFetchHeaderBytes() int32 { + if o == nil || o.OriginFetchHeaderBytes == nil { + var ret int32 + return ret + } + return *o.OriginFetchHeaderBytes +} + +// GetOriginFetchHeaderBytesOk returns a tuple with the OriginFetchHeaderBytes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealtimeEntryAggregated) GetOriginFetchHeaderBytesOk() (*int32, bool) { + if o == nil || o.OriginFetchHeaderBytes == nil { + return nil, false + } + return o.OriginFetchHeaderBytes, true +} + +// HasOriginFetchHeaderBytes returns a boolean if a field has been set. +func (o *RealtimeEntryAggregated) HasOriginFetchHeaderBytes() bool { + if o != nil && o.OriginFetchHeaderBytes != nil { + return true + } + + return false +} + +// SetOriginFetchHeaderBytes gets a reference to the given int32 and assigns it to the OriginFetchHeaderBytes field. +func (o *RealtimeEntryAggregated) SetOriginFetchHeaderBytes(v int32) { + o.OriginFetchHeaderBytes = &v +} + +// GetOriginFetchBodyBytes returns the OriginFetchBodyBytes field value if set, zero value otherwise. +func (o *RealtimeEntryAggregated) GetOriginFetchBodyBytes() int32 { + if o == nil || o.OriginFetchBodyBytes == nil { + var ret int32 + return ret + } + return *o.OriginFetchBodyBytes +} + +// GetOriginFetchBodyBytesOk returns a tuple with the OriginFetchBodyBytes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealtimeEntryAggregated) GetOriginFetchBodyBytesOk() (*int32, bool) { + if o == nil || o.OriginFetchBodyBytes == nil { + return nil, false + } + return o.OriginFetchBodyBytes, true +} + +// HasOriginFetchBodyBytes returns a boolean if a field has been set. +func (o *RealtimeEntryAggregated) HasOriginFetchBodyBytes() bool { + if o != nil && o.OriginFetchBodyBytes != nil { + return true + } + + return false +} + +// SetOriginFetchBodyBytes gets a reference to the given int32 and assigns it to the OriginFetchBodyBytes field. +func (o *RealtimeEntryAggregated) SetOriginFetchBodyBytes(v int32) { + o.OriginFetchBodyBytes = &v +} + +// GetOriginFetchRespHeaderBytes returns the OriginFetchRespHeaderBytes field value if set, zero value otherwise. +func (o *RealtimeEntryAggregated) GetOriginFetchRespHeaderBytes() int32 { + if o == nil || o.OriginFetchRespHeaderBytes == nil { + var ret int32 + return ret + } + return *o.OriginFetchRespHeaderBytes +} + +// GetOriginFetchRespHeaderBytesOk returns a tuple with the OriginFetchRespHeaderBytes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealtimeEntryAggregated) GetOriginFetchRespHeaderBytesOk() (*int32, bool) { + if o == nil || o.OriginFetchRespHeaderBytes == nil { + return nil, false + } + return o.OriginFetchRespHeaderBytes, true +} + +// HasOriginFetchRespHeaderBytes returns a boolean if a field has been set. +func (o *RealtimeEntryAggregated) HasOriginFetchRespHeaderBytes() bool { + if o != nil && o.OriginFetchRespHeaderBytes != nil { + return true + } + + return false +} + +// SetOriginFetchRespHeaderBytes gets a reference to the given int32 and assigns it to the OriginFetchRespHeaderBytes field. +func (o *RealtimeEntryAggregated) SetOriginFetchRespHeaderBytes(v int32) { + o.OriginFetchRespHeaderBytes = &v +} + +// GetOriginFetchRespBodyBytes returns the OriginFetchRespBodyBytes field value if set, zero value otherwise. +func (o *RealtimeEntryAggregated) GetOriginFetchRespBodyBytes() int32 { + if o == nil || o.OriginFetchRespBodyBytes == nil { + var ret int32 + return ret + } + return *o.OriginFetchRespBodyBytes +} + +// GetOriginFetchRespBodyBytesOk returns a tuple with the OriginFetchRespBodyBytes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealtimeEntryAggregated) GetOriginFetchRespBodyBytesOk() (*int32, bool) { + if o == nil || o.OriginFetchRespBodyBytes == nil { + return nil, false + } + return o.OriginFetchRespBodyBytes, true +} + +// HasOriginFetchRespBodyBytes returns a boolean if a field has been set. +func (o *RealtimeEntryAggregated) HasOriginFetchRespBodyBytes() bool { + if o != nil && o.OriginFetchRespBodyBytes != nil { + return true + } + + return false +} + +// SetOriginFetchRespBodyBytes gets a reference to the given int32 and assigns it to the OriginFetchRespBodyBytes field. +func (o *RealtimeEntryAggregated) SetOriginFetchRespBodyBytes(v int32) { + o.OriginFetchRespBodyBytes = &v +} + +// GetShieldRevalidations returns the ShieldRevalidations field value if set, zero value otherwise. +func (o *RealtimeEntryAggregated) GetShieldRevalidations() int32 { + if o == nil || o.ShieldRevalidations == nil { + var ret int32 + return ret + } + return *o.ShieldRevalidations +} + +// GetShieldRevalidationsOk returns a tuple with the ShieldRevalidations field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealtimeEntryAggregated) GetShieldRevalidationsOk() (*int32, bool) { + if o == nil || o.ShieldRevalidations == nil { + return nil, false + } + return o.ShieldRevalidations, true +} + +// HasShieldRevalidations returns a boolean if a field has been set. +func (o *RealtimeEntryAggregated) HasShieldRevalidations() bool { + if o != nil && o.ShieldRevalidations != nil { + return true + } + + return false +} + +// SetShieldRevalidations gets a reference to the given int32 and assigns it to the ShieldRevalidations field. +func (o *RealtimeEntryAggregated) SetShieldRevalidations(v int32) { + o.ShieldRevalidations = &v +} + +// GetShieldFetches returns the ShieldFetches field value if set, zero value otherwise. +func (o *RealtimeEntryAggregated) GetShieldFetches() int32 { + if o == nil || o.ShieldFetches == nil { + var ret int32 + return ret + } + return *o.ShieldFetches +} + +// GetShieldFetchesOk returns a tuple with the ShieldFetches field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealtimeEntryAggregated) GetShieldFetchesOk() (*int32, bool) { + if o == nil || o.ShieldFetches == nil { + return nil, false + } + return o.ShieldFetches, true +} + +// HasShieldFetches returns a boolean if a field has been set. +func (o *RealtimeEntryAggregated) HasShieldFetches() bool { + if o != nil && o.ShieldFetches != nil { + return true + } + + return false +} + +// SetShieldFetches gets a reference to the given int32 and assigns it to the ShieldFetches field. +func (o *RealtimeEntryAggregated) SetShieldFetches(v int32) { + o.ShieldFetches = &v +} + +// GetShieldFetchHeaderBytes returns the ShieldFetchHeaderBytes field value if set, zero value otherwise. +func (o *RealtimeEntryAggregated) GetShieldFetchHeaderBytes() int32 { + if o == nil || o.ShieldFetchHeaderBytes == nil { + var ret int32 + return ret + } + return *o.ShieldFetchHeaderBytes +} + +// GetShieldFetchHeaderBytesOk returns a tuple with the ShieldFetchHeaderBytes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealtimeEntryAggregated) GetShieldFetchHeaderBytesOk() (*int32, bool) { + if o == nil || o.ShieldFetchHeaderBytes == nil { + return nil, false + } + return o.ShieldFetchHeaderBytes, true +} + +// HasShieldFetchHeaderBytes returns a boolean if a field has been set. +func (o *RealtimeEntryAggregated) HasShieldFetchHeaderBytes() bool { + if o != nil && o.ShieldFetchHeaderBytes != nil { + return true + } + + return false +} + +// SetShieldFetchHeaderBytes gets a reference to the given int32 and assigns it to the ShieldFetchHeaderBytes field. +func (o *RealtimeEntryAggregated) SetShieldFetchHeaderBytes(v int32) { + o.ShieldFetchHeaderBytes = &v +} + +// GetShieldFetchBodyBytes returns the ShieldFetchBodyBytes field value if set, zero value otherwise. +func (o *RealtimeEntryAggregated) GetShieldFetchBodyBytes() int32 { + if o == nil || o.ShieldFetchBodyBytes == nil { + var ret int32 + return ret + } + return *o.ShieldFetchBodyBytes +} + +// GetShieldFetchBodyBytesOk returns a tuple with the ShieldFetchBodyBytes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealtimeEntryAggregated) GetShieldFetchBodyBytesOk() (*int32, bool) { + if o == nil || o.ShieldFetchBodyBytes == nil { + return nil, false + } + return o.ShieldFetchBodyBytes, true +} + +// HasShieldFetchBodyBytes returns a boolean if a field has been set. +func (o *RealtimeEntryAggregated) HasShieldFetchBodyBytes() bool { + if o != nil && o.ShieldFetchBodyBytes != nil { + return true + } + + return false +} + +// SetShieldFetchBodyBytes gets a reference to the given int32 and assigns it to the ShieldFetchBodyBytes field. +func (o *RealtimeEntryAggregated) SetShieldFetchBodyBytes(v int32) { + o.ShieldFetchBodyBytes = &v +} + +// GetShieldFetchRespHeaderBytes returns the ShieldFetchRespHeaderBytes field value if set, zero value otherwise. +func (o *RealtimeEntryAggregated) GetShieldFetchRespHeaderBytes() int32 { + if o == nil || o.ShieldFetchRespHeaderBytes == nil { + var ret int32 + return ret + } + return *o.ShieldFetchRespHeaderBytes +} + +// GetShieldFetchRespHeaderBytesOk returns a tuple with the ShieldFetchRespHeaderBytes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealtimeEntryAggregated) GetShieldFetchRespHeaderBytesOk() (*int32, bool) { + if o == nil || o.ShieldFetchRespHeaderBytes == nil { + return nil, false + } + return o.ShieldFetchRespHeaderBytes, true +} + +// HasShieldFetchRespHeaderBytes returns a boolean if a field has been set. +func (o *RealtimeEntryAggregated) HasShieldFetchRespHeaderBytes() bool { + if o != nil && o.ShieldFetchRespHeaderBytes != nil { + return true + } + + return false +} + +// SetShieldFetchRespHeaderBytes gets a reference to the given int32 and assigns it to the ShieldFetchRespHeaderBytes field. +func (o *RealtimeEntryAggregated) SetShieldFetchRespHeaderBytes(v int32) { + o.ShieldFetchRespHeaderBytes = &v +} + +// GetShieldFetchRespBodyBytes returns the ShieldFetchRespBodyBytes field value if set, zero value otherwise. +func (o *RealtimeEntryAggregated) GetShieldFetchRespBodyBytes() int32 { + if o == nil || o.ShieldFetchRespBodyBytes == nil { + var ret int32 + return ret + } + return *o.ShieldFetchRespBodyBytes +} + +// GetShieldFetchRespBodyBytesOk returns a tuple with the ShieldFetchRespBodyBytes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealtimeEntryAggregated) GetShieldFetchRespBodyBytesOk() (*int32, bool) { + if o == nil || o.ShieldFetchRespBodyBytes == nil { + return nil, false + } + return o.ShieldFetchRespBodyBytes, true +} + +// HasShieldFetchRespBodyBytes returns a boolean if a field has been set. +func (o *RealtimeEntryAggregated) HasShieldFetchRespBodyBytes() bool { + if o != nil && o.ShieldFetchRespBodyBytes != nil { + return true + } + + return false +} + +// SetShieldFetchRespBodyBytes gets a reference to the given int32 and assigns it to the ShieldFetchRespBodyBytes field. +func (o *RealtimeEntryAggregated) SetShieldFetchRespBodyBytes(v int32) { + o.ShieldFetchRespBodyBytes = &v +} + +// GetSegblockOriginFetches returns the SegblockOriginFetches field value if set, zero value otherwise. +func (o *RealtimeEntryAggregated) GetSegblockOriginFetches() int32 { + if o == nil || o.SegblockOriginFetches == nil { + var ret int32 + return ret + } + return *o.SegblockOriginFetches +} + +// GetSegblockOriginFetchesOk returns a tuple with the SegblockOriginFetches field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealtimeEntryAggregated) GetSegblockOriginFetchesOk() (*int32, bool) { + if o == nil || o.SegblockOriginFetches == nil { + return nil, false + } + return o.SegblockOriginFetches, true +} + +// HasSegblockOriginFetches returns a boolean if a field has been set. +func (o *RealtimeEntryAggregated) HasSegblockOriginFetches() bool { + if o != nil && o.SegblockOriginFetches != nil { + return true + } + + return false +} + +// SetSegblockOriginFetches gets a reference to the given int32 and assigns it to the SegblockOriginFetches field. +func (o *RealtimeEntryAggregated) SetSegblockOriginFetches(v int32) { + o.SegblockOriginFetches = &v +} + +// GetSegblockShieldFetches returns the SegblockShieldFetches field value if set, zero value otherwise. +func (o *RealtimeEntryAggregated) GetSegblockShieldFetches() int32 { + if o == nil || o.SegblockShieldFetches == nil { + var ret int32 + return ret + } + return *o.SegblockShieldFetches +} + +// GetSegblockShieldFetchesOk returns a tuple with the SegblockShieldFetches field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealtimeEntryAggregated) GetSegblockShieldFetchesOk() (*int32, bool) { + if o == nil || o.SegblockShieldFetches == nil { + return nil, false + } + return o.SegblockShieldFetches, true +} + +// HasSegblockShieldFetches returns a boolean if a field has been set. +func (o *RealtimeEntryAggregated) HasSegblockShieldFetches() bool { + if o != nil && o.SegblockShieldFetches != nil { + return true + } + + return false +} + +// SetSegblockShieldFetches gets a reference to the given int32 and assigns it to the SegblockShieldFetches field. +func (o *RealtimeEntryAggregated) SetSegblockShieldFetches(v int32) { + o.SegblockShieldFetches = &v +} + +// GetComputeRespStatus1xx returns the ComputeRespStatus1xx field value if set, zero value otherwise. +func (o *RealtimeEntryAggregated) GetComputeRespStatus1xx() int32 { + if o == nil || o.ComputeRespStatus1xx == nil { + var ret int32 + return ret + } + return *o.ComputeRespStatus1xx +} + +// GetComputeRespStatus1xxOk returns a tuple with the ComputeRespStatus1xx field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealtimeEntryAggregated) GetComputeRespStatus1xxOk() (*int32, bool) { + if o == nil || o.ComputeRespStatus1xx == nil { + return nil, false + } + return o.ComputeRespStatus1xx, true +} + +// HasComputeRespStatus1xx returns a boolean if a field has been set. +func (o *RealtimeEntryAggregated) HasComputeRespStatus1xx() bool { + if o != nil && o.ComputeRespStatus1xx != nil { + return true + } + + return false +} + +// SetComputeRespStatus1xx gets a reference to the given int32 and assigns it to the ComputeRespStatus1xx field. +func (o *RealtimeEntryAggregated) SetComputeRespStatus1xx(v int32) { + o.ComputeRespStatus1xx = &v +} + +// GetComputeRespStatus2xx returns the ComputeRespStatus2xx field value if set, zero value otherwise. +func (o *RealtimeEntryAggregated) GetComputeRespStatus2xx() int32 { + if o == nil || o.ComputeRespStatus2xx == nil { + var ret int32 + return ret + } + return *o.ComputeRespStatus2xx +} + +// GetComputeRespStatus2xxOk returns a tuple with the ComputeRespStatus2xx field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealtimeEntryAggregated) GetComputeRespStatus2xxOk() (*int32, bool) { + if o == nil || o.ComputeRespStatus2xx == nil { + return nil, false + } + return o.ComputeRespStatus2xx, true +} + +// HasComputeRespStatus2xx returns a boolean if a field has been set. +func (o *RealtimeEntryAggregated) HasComputeRespStatus2xx() bool { + if o != nil && o.ComputeRespStatus2xx != nil { + return true + } + + return false +} + +// SetComputeRespStatus2xx gets a reference to the given int32 and assigns it to the ComputeRespStatus2xx field. +func (o *RealtimeEntryAggregated) SetComputeRespStatus2xx(v int32) { + o.ComputeRespStatus2xx = &v +} + +// GetComputeRespStatus3xx returns the ComputeRespStatus3xx field value if set, zero value otherwise. +func (o *RealtimeEntryAggregated) GetComputeRespStatus3xx() int32 { + if o == nil || o.ComputeRespStatus3xx == nil { + var ret int32 + return ret + } + return *o.ComputeRespStatus3xx +} + +// GetComputeRespStatus3xxOk returns a tuple with the ComputeRespStatus3xx field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealtimeEntryAggregated) GetComputeRespStatus3xxOk() (*int32, bool) { + if o == nil || o.ComputeRespStatus3xx == nil { + return nil, false + } + return o.ComputeRespStatus3xx, true +} + +// HasComputeRespStatus3xx returns a boolean if a field has been set. +func (o *RealtimeEntryAggregated) HasComputeRespStatus3xx() bool { + if o != nil && o.ComputeRespStatus3xx != nil { + return true + } + + return false +} + +// SetComputeRespStatus3xx gets a reference to the given int32 and assigns it to the ComputeRespStatus3xx field. +func (o *RealtimeEntryAggregated) SetComputeRespStatus3xx(v int32) { + o.ComputeRespStatus3xx = &v +} + +// GetComputeRespStatus4xx returns the ComputeRespStatus4xx field value if set, zero value otherwise. +func (o *RealtimeEntryAggregated) GetComputeRespStatus4xx() int32 { + if o == nil || o.ComputeRespStatus4xx == nil { + var ret int32 + return ret + } + return *o.ComputeRespStatus4xx +} + +// GetComputeRespStatus4xxOk returns a tuple with the ComputeRespStatus4xx field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealtimeEntryAggregated) GetComputeRespStatus4xxOk() (*int32, bool) { + if o == nil || o.ComputeRespStatus4xx == nil { + return nil, false + } + return o.ComputeRespStatus4xx, true +} + +// HasComputeRespStatus4xx returns a boolean if a field has been set. +func (o *RealtimeEntryAggregated) HasComputeRespStatus4xx() bool { + if o != nil && o.ComputeRespStatus4xx != nil { + return true + } + + return false +} + +// SetComputeRespStatus4xx gets a reference to the given int32 and assigns it to the ComputeRespStatus4xx field. +func (o *RealtimeEntryAggregated) SetComputeRespStatus4xx(v int32) { + o.ComputeRespStatus4xx = &v +} + +// GetComputeRespStatus5xx returns the ComputeRespStatus5xx field value if set, zero value otherwise. +func (o *RealtimeEntryAggregated) GetComputeRespStatus5xx() int32 { + if o == nil || o.ComputeRespStatus5xx == nil { + var ret int32 + return ret + } + return *o.ComputeRespStatus5xx +} + +// GetComputeRespStatus5xxOk returns a tuple with the ComputeRespStatus5xx field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealtimeEntryAggregated) GetComputeRespStatus5xxOk() (*int32, bool) { + if o == nil || o.ComputeRespStatus5xx == nil { + return nil, false + } + return o.ComputeRespStatus5xx, true +} + +// HasComputeRespStatus5xx returns a boolean if a field has been set. +func (o *RealtimeEntryAggregated) HasComputeRespStatus5xx() bool { + if o != nil && o.ComputeRespStatus5xx != nil { + return true + } + + return false +} + +// SetComputeRespStatus5xx gets a reference to the given int32 and assigns it to the ComputeRespStatus5xx field. +func (o *RealtimeEntryAggregated) SetComputeRespStatus5xx(v int32) { + o.ComputeRespStatus5xx = &v +} + +// GetEdgeHitRequests returns the EdgeHitRequests field value if set, zero value otherwise. +func (o *RealtimeEntryAggregated) GetEdgeHitRequests() int32 { + if o == nil || o.EdgeHitRequests == nil { + var ret int32 + return ret + } + return *o.EdgeHitRequests +} + +// GetEdgeHitRequestsOk returns a tuple with the EdgeHitRequests field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealtimeEntryAggregated) GetEdgeHitRequestsOk() (*int32, bool) { + if o == nil || o.EdgeHitRequests == nil { + return nil, false + } + return o.EdgeHitRequests, true +} + +// HasEdgeHitRequests returns a boolean if a field has been set. +func (o *RealtimeEntryAggregated) HasEdgeHitRequests() bool { + if o != nil && o.EdgeHitRequests != nil { + return true + } + + return false +} + +// SetEdgeHitRequests gets a reference to the given int32 and assigns it to the EdgeHitRequests field. +func (o *RealtimeEntryAggregated) SetEdgeHitRequests(v int32) { + o.EdgeHitRequests = &v +} + +// GetEdgeMissRequests returns the EdgeMissRequests field value if set, zero value otherwise. +func (o *RealtimeEntryAggregated) GetEdgeMissRequests() int32 { + if o == nil || o.EdgeMissRequests == nil { + var ret int32 + return ret + } + return *o.EdgeMissRequests +} + +// GetEdgeMissRequestsOk returns a tuple with the EdgeMissRequests field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealtimeEntryAggregated) GetEdgeMissRequestsOk() (*int32, bool) { + if o == nil || o.EdgeMissRequests == nil { + return nil, false + } + return o.EdgeMissRequests, true +} + +// HasEdgeMissRequests returns a boolean if a field has been set. +func (o *RealtimeEntryAggregated) HasEdgeMissRequests() bool { + if o != nil && o.EdgeMissRequests != nil { + return true + } + + return false +} + +// SetEdgeMissRequests gets a reference to the given int32 and assigns it to the EdgeMissRequests field. +func (o *RealtimeEntryAggregated) SetEdgeMissRequests(v int32) { + o.EdgeMissRequests = &v +} + +// GetComputeBereqHeaderBytes returns the ComputeBereqHeaderBytes field value if set, zero value otherwise. +func (o *RealtimeEntryAggregated) GetComputeBereqHeaderBytes() int32 { + if o == nil || o.ComputeBereqHeaderBytes == nil { + var ret int32 + return ret + } + return *o.ComputeBereqHeaderBytes +} + +// GetComputeBereqHeaderBytesOk returns a tuple with the ComputeBereqHeaderBytes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealtimeEntryAggregated) GetComputeBereqHeaderBytesOk() (*int32, bool) { + if o == nil || o.ComputeBereqHeaderBytes == nil { + return nil, false + } + return o.ComputeBereqHeaderBytes, true +} + +// HasComputeBereqHeaderBytes returns a boolean if a field has been set. +func (o *RealtimeEntryAggregated) HasComputeBereqHeaderBytes() bool { + if o != nil && o.ComputeBereqHeaderBytes != nil { + return true + } + + return false +} + +// SetComputeBereqHeaderBytes gets a reference to the given int32 and assigns it to the ComputeBereqHeaderBytes field. +func (o *RealtimeEntryAggregated) SetComputeBereqHeaderBytes(v int32) { + o.ComputeBereqHeaderBytes = &v +} + +// GetComputeBereqBodyBytes returns the ComputeBereqBodyBytes field value if set, zero value otherwise. +func (o *RealtimeEntryAggregated) GetComputeBereqBodyBytes() int32 { + if o == nil || o.ComputeBereqBodyBytes == nil { + var ret int32 + return ret + } + return *o.ComputeBereqBodyBytes +} + +// GetComputeBereqBodyBytesOk returns a tuple with the ComputeBereqBodyBytes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealtimeEntryAggregated) GetComputeBereqBodyBytesOk() (*int32, bool) { + if o == nil || o.ComputeBereqBodyBytes == nil { + return nil, false + } + return o.ComputeBereqBodyBytes, true +} + +// HasComputeBereqBodyBytes returns a boolean if a field has been set. +func (o *RealtimeEntryAggregated) HasComputeBereqBodyBytes() bool { + if o != nil && o.ComputeBereqBodyBytes != nil { + return true + } + + return false +} + +// SetComputeBereqBodyBytes gets a reference to the given int32 and assigns it to the ComputeBereqBodyBytes field. +func (o *RealtimeEntryAggregated) SetComputeBereqBodyBytes(v int32) { + o.ComputeBereqBodyBytes = &v +} + +// GetComputeBerespHeaderBytes returns the ComputeBerespHeaderBytes field value if set, zero value otherwise. +func (o *RealtimeEntryAggregated) GetComputeBerespHeaderBytes() int32 { + if o == nil || o.ComputeBerespHeaderBytes == nil { + var ret int32 + return ret + } + return *o.ComputeBerespHeaderBytes +} + +// GetComputeBerespHeaderBytesOk returns a tuple with the ComputeBerespHeaderBytes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealtimeEntryAggregated) GetComputeBerespHeaderBytesOk() (*int32, bool) { + if o == nil || o.ComputeBerespHeaderBytes == nil { + return nil, false + } + return o.ComputeBerespHeaderBytes, true +} + +// HasComputeBerespHeaderBytes returns a boolean if a field has been set. +func (o *RealtimeEntryAggregated) HasComputeBerespHeaderBytes() bool { + if o != nil && o.ComputeBerespHeaderBytes != nil { + return true + } + + return false +} + +// SetComputeBerespHeaderBytes gets a reference to the given int32 and assigns it to the ComputeBerespHeaderBytes field. +func (o *RealtimeEntryAggregated) SetComputeBerespHeaderBytes(v int32) { + o.ComputeBerespHeaderBytes = &v +} + +// GetComputeBerespBodyBytes returns the ComputeBerespBodyBytes field value if set, zero value otherwise. +func (o *RealtimeEntryAggregated) GetComputeBerespBodyBytes() int32 { + if o == nil || o.ComputeBerespBodyBytes == nil { + var ret int32 + return ret + } + return *o.ComputeBerespBodyBytes +} + +// GetComputeBerespBodyBytesOk returns a tuple with the ComputeBerespBodyBytes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealtimeEntryAggregated) GetComputeBerespBodyBytesOk() (*int32, bool) { + if o == nil || o.ComputeBerespBodyBytes == nil { + return nil, false + } + return o.ComputeBerespBodyBytes, true +} + +// HasComputeBerespBodyBytes returns a boolean if a field has been set. +func (o *RealtimeEntryAggregated) HasComputeBerespBodyBytes() bool { + if o != nil && o.ComputeBerespBodyBytes != nil { + return true + } + + return false +} + +// SetComputeBerespBodyBytes gets a reference to the given int32 and assigns it to the ComputeBerespBodyBytes field. +func (o *RealtimeEntryAggregated) SetComputeBerespBodyBytes(v int32) { + o.ComputeBerespBodyBytes = &v +} + +// GetOriginCacheFetches returns the OriginCacheFetches field value if set, zero value otherwise. +func (o *RealtimeEntryAggregated) GetOriginCacheFetches() int32 { + if o == nil || o.OriginCacheFetches == nil { + var ret int32 + return ret + } + return *o.OriginCacheFetches +} + +// GetOriginCacheFetchesOk returns a tuple with the OriginCacheFetches field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealtimeEntryAggregated) GetOriginCacheFetchesOk() (*int32, bool) { + if o == nil || o.OriginCacheFetches == nil { + return nil, false + } + return o.OriginCacheFetches, true +} + +// HasOriginCacheFetches returns a boolean if a field has been set. +func (o *RealtimeEntryAggregated) HasOriginCacheFetches() bool { + if o != nil && o.OriginCacheFetches != nil { + return true + } + + return false +} + +// SetOriginCacheFetches gets a reference to the given int32 and assigns it to the OriginCacheFetches field. +func (o *RealtimeEntryAggregated) SetOriginCacheFetches(v int32) { + o.OriginCacheFetches = &v +} + +// GetShieldCacheFetches returns the ShieldCacheFetches field value if set, zero value otherwise. +func (o *RealtimeEntryAggregated) GetShieldCacheFetches() int32 { + if o == nil || o.ShieldCacheFetches == nil { + var ret int32 + return ret + } + return *o.ShieldCacheFetches +} + +// GetShieldCacheFetchesOk returns a tuple with the ShieldCacheFetches field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealtimeEntryAggregated) GetShieldCacheFetchesOk() (*int32, bool) { + if o == nil || o.ShieldCacheFetches == nil { + return nil, false + } + return o.ShieldCacheFetches, true +} + +// HasShieldCacheFetches returns a boolean if a field has been set. +func (o *RealtimeEntryAggregated) HasShieldCacheFetches() bool { + if o != nil && o.ShieldCacheFetches != nil { + return true + } + + return false +} + +// SetShieldCacheFetches gets a reference to the given int32 and assigns it to the ShieldCacheFetches field. +func (o *RealtimeEntryAggregated) SetShieldCacheFetches(v int32) { + o.ShieldCacheFetches = &v +} + +// GetComputeBereqs returns the ComputeBereqs field value if set, zero value otherwise. +func (o *RealtimeEntryAggregated) GetComputeBereqs() int32 { + if o == nil || o.ComputeBereqs == nil { + var ret int32 + return ret + } + return *o.ComputeBereqs +} + +// GetComputeBereqsOk returns a tuple with the ComputeBereqs field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealtimeEntryAggregated) GetComputeBereqsOk() (*int32, bool) { + if o == nil || o.ComputeBereqs == nil { + return nil, false + } + return o.ComputeBereqs, true +} + +// HasComputeBereqs returns a boolean if a field has been set. +func (o *RealtimeEntryAggregated) HasComputeBereqs() bool { + if o != nil && o.ComputeBereqs != nil { + return true + } + + return false +} + +// SetComputeBereqs gets a reference to the given int32 and assigns it to the ComputeBereqs field. +func (o *RealtimeEntryAggregated) SetComputeBereqs(v int32) { + o.ComputeBereqs = &v +} + +// GetComputeBereqErrors returns the ComputeBereqErrors field value if set, zero value otherwise. +func (o *RealtimeEntryAggregated) GetComputeBereqErrors() int32 { + if o == nil || o.ComputeBereqErrors == nil { + var ret int32 + return ret + } + return *o.ComputeBereqErrors +} + +// GetComputeBereqErrorsOk returns a tuple with the ComputeBereqErrors field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealtimeEntryAggregated) GetComputeBereqErrorsOk() (*int32, bool) { + if o == nil || o.ComputeBereqErrors == nil { + return nil, false + } + return o.ComputeBereqErrors, true +} + +// HasComputeBereqErrors returns a boolean if a field has been set. +func (o *RealtimeEntryAggregated) HasComputeBereqErrors() bool { + if o != nil && o.ComputeBereqErrors != nil { + return true + } + + return false +} + +// SetComputeBereqErrors gets a reference to the given int32 and assigns it to the ComputeBereqErrors field. +func (o *RealtimeEntryAggregated) SetComputeBereqErrors(v int32) { + o.ComputeBereqErrors = &v +} + +// GetComputeResourceLimitExceeded returns the ComputeResourceLimitExceeded field value if set, zero value otherwise. +func (o *RealtimeEntryAggregated) GetComputeResourceLimitExceeded() int32 { + if o == nil || o.ComputeResourceLimitExceeded == nil { + var ret int32 + return ret + } + return *o.ComputeResourceLimitExceeded +} + +// GetComputeResourceLimitExceededOk returns a tuple with the ComputeResourceLimitExceeded field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealtimeEntryAggregated) GetComputeResourceLimitExceededOk() (*int32, bool) { + if o == nil || o.ComputeResourceLimitExceeded == nil { + return nil, false + } + return o.ComputeResourceLimitExceeded, true +} + +// HasComputeResourceLimitExceeded returns a boolean if a field has been set. +func (o *RealtimeEntryAggregated) HasComputeResourceLimitExceeded() bool { + if o != nil && o.ComputeResourceLimitExceeded != nil { + return true + } + + return false +} + +// SetComputeResourceLimitExceeded gets a reference to the given int32 and assigns it to the ComputeResourceLimitExceeded field. +func (o *RealtimeEntryAggregated) SetComputeResourceLimitExceeded(v int32) { + o.ComputeResourceLimitExceeded = &v +} + +// GetComputeHeapLimitExceeded returns the ComputeHeapLimitExceeded field value if set, zero value otherwise. +func (o *RealtimeEntryAggregated) GetComputeHeapLimitExceeded() int32 { + if o == nil || o.ComputeHeapLimitExceeded == nil { + var ret int32 + return ret + } + return *o.ComputeHeapLimitExceeded +} + +// GetComputeHeapLimitExceededOk returns a tuple with the ComputeHeapLimitExceeded field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealtimeEntryAggregated) GetComputeHeapLimitExceededOk() (*int32, bool) { + if o == nil || o.ComputeHeapLimitExceeded == nil { + return nil, false + } + return o.ComputeHeapLimitExceeded, true +} + +// HasComputeHeapLimitExceeded returns a boolean if a field has been set. +func (o *RealtimeEntryAggregated) HasComputeHeapLimitExceeded() bool { + if o != nil && o.ComputeHeapLimitExceeded != nil { + return true + } + + return false +} + +// SetComputeHeapLimitExceeded gets a reference to the given int32 and assigns it to the ComputeHeapLimitExceeded field. +func (o *RealtimeEntryAggregated) SetComputeHeapLimitExceeded(v int32) { + o.ComputeHeapLimitExceeded = &v +} + +// GetComputeStackLimitExceeded returns the ComputeStackLimitExceeded field value if set, zero value otherwise. +func (o *RealtimeEntryAggregated) GetComputeStackLimitExceeded() int32 { + if o == nil || o.ComputeStackLimitExceeded == nil { + var ret int32 + return ret + } + return *o.ComputeStackLimitExceeded +} + +// GetComputeStackLimitExceededOk returns a tuple with the ComputeStackLimitExceeded field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealtimeEntryAggregated) GetComputeStackLimitExceededOk() (*int32, bool) { + if o == nil || o.ComputeStackLimitExceeded == nil { + return nil, false + } + return o.ComputeStackLimitExceeded, true +} + +// HasComputeStackLimitExceeded returns a boolean if a field has been set. +func (o *RealtimeEntryAggregated) HasComputeStackLimitExceeded() bool { + if o != nil && o.ComputeStackLimitExceeded != nil { + return true + } + + return false +} + +// SetComputeStackLimitExceeded gets a reference to the given int32 and assigns it to the ComputeStackLimitExceeded field. +func (o *RealtimeEntryAggregated) SetComputeStackLimitExceeded(v int32) { + o.ComputeStackLimitExceeded = &v +} + +// GetComputeGlobalsLimitExceeded returns the ComputeGlobalsLimitExceeded field value if set, zero value otherwise. +func (o *RealtimeEntryAggregated) GetComputeGlobalsLimitExceeded() int32 { + if o == nil || o.ComputeGlobalsLimitExceeded == nil { + var ret int32 + return ret + } + return *o.ComputeGlobalsLimitExceeded +} + +// GetComputeGlobalsLimitExceededOk returns a tuple with the ComputeGlobalsLimitExceeded field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealtimeEntryAggregated) GetComputeGlobalsLimitExceededOk() (*int32, bool) { + if o == nil || o.ComputeGlobalsLimitExceeded == nil { + return nil, false + } + return o.ComputeGlobalsLimitExceeded, true +} + +// HasComputeGlobalsLimitExceeded returns a boolean if a field has been set. +func (o *RealtimeEntryAggregated) HasComputeGlobalsLimitExceeded() bool { + if o != nil && o.ComputeGlobalsLimitExceeded != nil { + return true + } + + return false +} + +// SetComputeGlobalsLimitExceeded gets a reference to the given int32 and assigns it to the ComputeGlobalsLimitExceeded field. +func (o *RealtimeEntryAggregated) SetComputeGlobalsLimitExceeded(v int32) { + o.ComputeGlobalsLimitExceeded = &v +} + +// GetComputeGuestErrors returns the ComputeGuestErrors field value if set, zero value otherwise. +func (o *RealtimeEntryAggregated) GetComputeGuestErrors() int32 { + if o == nil || o.ComputeGuestErrors == nil { + var ret int32 + return ret + } + return *o.ComputeGuestErrors +} + +// GetComputeGuestErrorsOk returns a tuple with the ComputeGuestErrors field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealtimeEntryAggregated) GetComputeGuestErrorsOk() (*int32, bool) { + if o == nil || o.ComputeGuestErrors == nil { + return nil, false + } + return o.ComputeGuestErrors, true +} + +// HasComputeGuestErrors returns a boolean if a field has been set. +func (o *RealtimeEntryAggregated) HasComputeGuestErrors() bool { + if o != nil && o.ComputeGuestErrors != nil { + return true + } + + return false +} + +// SetComputeGuestErrors gets a reference to the given int32 and assigns it to the ComputeGuestErrors field. +func (o *RealtimeEntryAggregated) SetComputeGuestErrors(v int32) { + o.ComputeGuestErrors = &v +} + +// GetComputeRuntimeErrors returns the ComputeRuntimeErrors field value if set, zero value otherwise. +func (o *RealtimeEntryAggregated) GetComputeRuntimeErrors() int32 { + if o == nil || o.ComputeRuntimeErrors == nil { + var ret int32 + return ret + } + return *o.ComputeRuntimeErrors +} + +// GetComputeRuntimeErrorsOk returns a tuple with the ComputeRuntimeErrors field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealtimeEntryAggregated) GetComputeRuntimeErrorsOk() (*int32, bool) { + if o == nil || o.ComputeRuntimeErrors == nil { + return nil, false + } + return o.ComputeRuntimeErrors, true +} + +// HasComputeRuntimeErrors returns a boolean if a field has been set. +func (o *RealtimeEntryAggregated) HasComputeRuntimeErrors() bool { + if o != nil && o.ComputeRuntimeErrors != nil { + return true + } + + return false +} + +// SetComputeRuntimeErrors gets a reference to the given int32 and assigns it to the ComputeRuntimeErrors field. +func (o *RealtimeEntryAggregated) SetComputeRuntimeErrors(v int32) { + o.ComputeRuntimeErrors = &v +} + +// GetEdgeHitRespBodyBytes returns the EdgeHitRespBodyBytes field value if set, zero value otherwise. +func (o *RealtimeEntryAggregated) GetEdgeHitRespBodyBytes() int32 { + if o == nil || o.EdgeHitRespBodyBytes == nil { + var ret int32 + return ret + } + return *o.EdgeHitRespBodyBytes +} + +// GetEdgeHitRespBodyBytesOk returns a tuple with the EdgeHitRespBodyBytes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealtimeEntryAggregated) GetEdgeHitRespBodyBytesOk() (*int32, bool) { + if o == nil || o.EdgeHitRespBodyBytes == nil { + return nil, false + } + return o.EdgeHitRespBodyBytes, true +} + +// HasEdgeHitRespBodyBytes returns a boolean if a field has been set. +func (o *RealtimeEntryAggregated) HasEdgeHitRespBodyBytes() bool { + if o != nil && o.EdgeHitRespBodyBytes != nil { + return true + } + + return false +} + +// SetEdgeHitRespBodyBytes gets a reference to the given int32 and assigns it to the EdgeHitRespBodyBytes field. +func (o *RealtimeEntryAggregated) SetEdgeHitRespBodyBytes(v int32) { + o.EdgeHitRespBodyBytes = &v +} + +// GetEdgeHitRespHeaderBytes returns the EdgeHitRespHeaderBytes field value if set, zero value otherwise. +func (o *RealtimeEntryAggregated) GetEdgeHitRespHeaderBytes() int32 { + if o == nil || o.EdgeHitRespHeaderBytes == nil { + var ret int32 + return ret + } + return *o.EdgeHitRespHeaderBytes +} + +// GetEdgeHitRespHeaderBytesOk returns a tuple with the EdgeHitRespHeaderBytes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealtimeEntryAggregated) GetEdgeHitRespHeaderBytesOk() (*int32, bool) { + if o == nil || o.EdgeHitRespHeaderBytes == nil { + return nil, false + } + return o.EdgeHitRespHeaderBytes, true +} + +// HasEdgeHitRespHeaderBytes returns a boolean if a field has been set. +func (o *RealtimeEntryAggregated) HasEdgeHitRespHeaderBytes() bool { + if o != nil && o.EdgeHitRespHeaderBytes != nil { + return true + } + + return false +} + +// SetEdgeHitRespHeaderBytes gets a reference to the given int32 and assigns it to the EdgeHitRespHeaderBytes field. +func (o *RealtimeEntryAggregated) SetEdgeHitRespHeaderBytes(v int32) { + o.EdgeHitRespHeaderBytes = &v +} + +// GetEdgeMissRespBodyBytes returns the EdgeMissRespBodyBytes field value if set, zero value otherwise. +func (o *RealtimeEntryAggregated) GetEdgeMissRespBodyBytes() int32 { + if o == nil || o.EdgeMissRespBodyBytes == nil { + var ret int32 + return ret + } + return *o.EdgeMissRespBodyBytes +} + +// GetEdgeMissRespBodyBytesOk returns a tuple with the EdgeMissRespBodyBytes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealtimeEntryAggregated) GetEdgeMissRespBodyBytesOk() (*int32, bool) { + if o == nil || o.EdgeMissRespBodyBytes == nil { + return nil, false + } + return o.EdgeMissRespBodyBytes, true +} + +// HasEdgeMissRespBodyBytes returns a boolean if a field has been set. +func (o *RealtimeEntryAggregated) HasEdgeMissRespBodyBytes() bool { + if o != nil && o.EdgeMissRespBodyBytes != nil { + return true + } + + return false +} + +// SetEdgeMissRespBodyBytes gets a reference to the given int32 and assigns it to the EdgeMissRespBodyBytes field. +func (o *RealtimeEntryAggregated) SetEdgeMissRespBodyBytes(v int32) { + o.EdgeMissRespBodyBytes = &v +} + +// GetEdgeMissRespHeaderBytes returns the EdgeMissRespHeaderBytes field value if set, zero value otherwise. +func (o *RealtimeEntryAggregated) GetEdgeMissRespHeaderBytes() int32 { + if o == nil || o.EdgeMissRespHeaderBytes == nil { + var ret int32 + return ret + } + return *o.EdgeMissRespHeaderBytes +} + +// GetEdgeMissRespHeaderBytesOk returns a tuple with the EdgeMissRespHeaderBytes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealtimeEntryAggregated) GetEdgeMissRespHeaderBytesOk() (*int32, bool) { + if o == nil || o.EdgeMissRespHeaderBytes == nil { + return nil, false + } + return o.EdgeMissRespHeaderBytes, true +} + +// HasEdgeMissRespHeaderBytes returns a boolean if a field has been set. +func (o *RealtimeEntryAggregated) HasEdgeMissRespHeaderBytes() bool { + if o != nil && o.EdgeMissRespHeaderBytes != nil { + return true + } + + return false +} + +// SetEdgeMissRespHeaderBytes gets a reference to the given int32 and assigns it to the EdgeMissRespHeaderBytes field. +func (o *RealtimeEntryAggregated) SetEdgeMissRespHeaderBytes(v int32) { + o.EdgeMissRespHeaderBytes = &v +} + +// GetOriginCacheFetchRespBodyBytes returns the OriginCacheFetchRespBodyBytes field value if set, zero value otherwise. +func (o *RealtimeEntryAggregated) GetOriginCacheFetchRespBodyBytes() int32 { + if o == nil || o.OriginCacheFetchRespBodyBytes == nil { + var ret int32 + return ret + } + return *o.OriginCacheFetchRespBodyBytes +} + +// GetOriginCacheFetchRespBodyBytesOk returns a tuple with the OriginCacheFetchRespBodyBytes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealtimeEntryAggregated) GetOriginCacheFetchRespBodyBytesOk() (*int32, bool) { + if o == nil || o.OriginCacheFetchRespBodyBytes == nil { + return nil, false + } + return o.OriginCacheFetchRespBodyBytes, true +} + +// HasOriginCacheFetchRespBodyBytes returns a boolean if a field has been set. +func (o *RealtimeEntryAggregated) HasOriginCacheFetchRespBodyBytes() bool { + if o != nil && o.OriginCacheFetchRespBodyBytes != nil { + return true + } + + return false +} + +// SetOriginCacheFetchRespBodyBytes gets a reference to the given int32 and assigns it to the OriginCacheFetchRespBodyBytes field. +func (o *RealtimeEntryAggregated) SetOriginCacheFetchRespBodyBytes(v int32) { + o.OriginCacheFetchRespBodyBytes = &v +} + +// GetOriginCacheFetchRespHeaderBytes returns the OriginCacheFetchRespHeaderBytes field value if set, zero value otherwise. +func (o *RealtimeEntryAggregated) GetOriginCacheFetchRespHeaderBytes() int32 { + if o == nil || o.OriginCacheFetchRespHeaderBytes == nil { + var ret int32 + return ret + } + return *o.OriginCacheFetchRespHeaderBytes +} + +// GetOriginCacheFetchRespHeaderBytesOk returns a tuple with the OriginCacheFetchRespHeaderBytes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealtimeEntryAggregated) GetOriginCacheFetchRespHeaderBytesOk() (*int32, bool) { + if o == nil || o.OriginCacheFetchRespHeaderBytes == nil { + return nil, false + } + return o.OriginCacheFetchRespHeaderBytes, true +} + +// HasOriginCacheFetchRespHeaderBytes returns a boolean if a field has been set. +func (o *RealtimeEntryAggregated) HasOriginCacheFetchRespHeaderBytes() bool { + if o != nil && o.OriginCacheFetchRespHeaderBytes != nil { + return true + } + + return false +} + +// SetOriginCacheFetchRespHeaderBytes gets a reference to the given int32 and assigns it to the OriginCacheFetchRespHeaderBytes field. +func (o *RealtimeEntryAggregated) SetOriginCacheFetchRespHeaderBytes(v int32) { + o.OriginCacheFetchRespHeaderBytes = &v +} + +// GetShieldHitRequests returns the ShieldHitRequests field value if set, zero value otherwise. +func (o *RealtimeEntryAggregated) GetShieldHitRequests() int32 { + if o == nil || o.ShieldHitRequests == nil { + var ret int32 + return ret + } + return *o.ShieldHitRequests +} + +// GetShieldHitRequestsOk returns a tuple with the ShieldHitRequests field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealtimeEntryAggregated) GetShieldHitRequestsOk() (*int32, bool) { + if o == nil || o.ShieldHitRequests == nil { + return nil, false + } + return o.ShieldHitRequests, true +} + +// HasShieldHitRequests returns a boolean if a field has been set. +func (o *RealtimeEntryAggregated) HasShieldHitRequests() bool { + if o != nil && o.ShieldHitRequests != nil { + return true + } + + return false +} + +// SetShieldHitRequests gets a reference to the given int32 and assigns it to the ShieldHitRequests field. +func (o *RealtimeEntryAggregated) SetShieldHitRequests(v int32) { + o.ShieldHitRequests = &v +} + +// GetShieldMissRequests returns the ShieldMissRequests field value if set, zero value otherwise. +func (o *RealtimeEntryAggregated) GetShieldMissRequests() int32 { + if o == nil || o.ShieldMissRequests == nil { + var ret int32 + return ret + } + return *o.ShieldMissRequests +} + +// GetShieldMissRequestsOk returns a tuple with the ShieldMissRequests field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealtimeEntryAggregated) GetShieldMissRequestsOk() (*int32, bool) { + if o == nil || o.ShieldMissRequests == nil { + return nil, false + } + return o.ShieldMissRequests, true +} + +// HasShieldMissRequests returns a boolean if a field has been set. +func (o *RealtimeEntryAggregated) HasShieldMissRequests() bool { + if o != nil && o.ShieldMissRequests != nil { + return true + } + + return false +} + +// SetShieldMissRequests gets a reference to the given int32 and assigns it to the ShieldMissRequests field. +func (o *RealtimeEntryAggregated) SetShieldMissRequests(v int32) { + o.ShieldMissRequests = &v +} + +// GetShieldHitRespHeaderBytes returns the ShieldHitRespHeaderBytes field value if set, zero value otherwise. +func (o *RealtimeEntryAggregated) GetShieldHitRespHeaderBytes() int32 { + if o == nil || o.ShieldHitRespHeaderBytes == nil { + var ret int32 + return ret + } + return *o.ShieldHitRespHeaderBytes +} + +// GetShieldHitRespHeaderBytesOk returns a tuple with the ShieldHitRespHeaderBytes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealtimeEntryAggregated) GetShieldHitRespHeaderBytesOk() (*int32, bool) { + if o == nil || o.ShieldHitRespHeaderBytes == nil { + return nil, false + } + return o.ShieldHitRespHeaderBytes, true +} + +// HasShieldHitRespHeaderBytes returns a boolean if a field has been set. +func (o *RealtimeEntryAggregated) HasShieldHitRespHeaderBytes() bool { + if o != nil && o.ShieldHitRespHeaderBytes != nil { + return true + } + + return false +} + +// SetShieldHitRespHeaderBytes gets a reference to the given int32 and assigns it to the ShieldHitRespHeaderBytes field. +func (o *RealtimeEntryAggregated) SetShieldHitRespHeaderBytes(v int32) { + o.ShieldHitRespHeaderBytes = &v +} + +// GetShieldHitRespBodyBytes returns the ShieldHitRespBodyBytes field value if set, zero value otherwise. +func (o *RealtimeEntryAggregated) GetShieldHitRespBodyBytes() int32 { + if o == nil || o.ShieldHitRespBodyBytes == nil { + var ret int32 + return ret + } + return *o.ShieldHitRespBodyBytes +} + +// GetShieldHitRespBodyBytesOk returns a tuple with the ShieldHitRespBodyBytes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealtimeEntryAggregated) GetShieldHitRespBodyBytesOk() (*int32, bool) { + if o == nil || o.ShieldHitRespBodyBytes == nil { + return nil, false + } + return o.ShieldHitRespBodyBytes, true +} + +// HasShieldHitRespBodyBytes returns a boolean if a field has been set. +func (o *RealtimeEntryAggregated) HasShieldHitRespBodyBytes() bool { + if o != nil && o.ShieldHitRespBodyBytes != nil { + return true + } + + return false +} + +// SetShieldHitRespBodyBytes gets a reference to the given int32 and assigns it to the ShieldHitRespBodyBytes field. +func (o *RealtimeEntryAggregated) SetShieldHitRespBodyBytes(v int32) { + o.ShieldHitRespBodyBytes = &v +} + +// GetShieldMissRespHeaderBytes returns the ShieldMissRespHeaderBytes field value if set, zero value otherwise. +func (o *RealtimeEntryAggregated) GetShieldMissRespHeaderBytes() int32 { + if o == nil || o.ShieldMissRespHeaderBytes == nil { + var ret int32 + return ret + } + return *o.ShieldMissRespHeaderBytes +} + +// GetShieldMissRespHeaderBytesOk returns a tuple with the ShieldMissRespHeaderBytes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealtimeEntryAggregated) GetShieldMissRespHeaderBytesOk() (*int32, bool) { + if o == nil || o.ShieldMissRespHeaderBytes == nil { + return nil, false + } + return o.ShieldMissRespHeaderBytes, true +} + +// HasShieldMissRespHeaderBytes returns a boolean if a field has been set. +func (o *RealtimeEntryAggregated) HasShieldMissRespHeaderBytes() bool { + if o != nil && o.ShieldMissRespHeaderBytes != nil { + return true + } + + return false +} + +// SetShieldMissRespHeaderBytes gets a reference to the given int32 and assigns it to the ShieldMissRespHeaderBytes field. +func (o *RealtimeEntryAggregated) SetShieldMissRespHeaderBytes(v int32) { + o.ShieldMissRespHeaderBytes = &v +} + +// GetShieldMissRespBodyBytes returns the ShieldMissRespBodyBytes field value if set, zero value otherwise. +func (o *RealtimeEntryAggregated) GetShieldMissRespBodyBytes() int32 { + if o == nil || o.ShieldMissRespBodyBytes == nil { + var ret int32 + return ret + } + return *o.ShieldMissRespBodyBytes +} + +// GetShieldMissRespBodyBytesOk returns a tuple with the ShieldMissRespBodyBytes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealtimeEntryAggregated) GetShieldMissRespBodyBytesOk() (*int32, bool) { + if o == nil || o.ShieldMissRespBodyBytes == nil { + return nil, false + } + return o.ShieldMissRespBodyBytes, true +} + +// HasShieldMissRespBodyBytes returns a boolean if a field has been set. +func (o *RealtimeEntryAggregated) HasShieldMissRespBodyBytes() bool { + if o != nil && o.ShieldMissRespBodyBytes != nil { + return true + } + + return false +} + +// SetShieldMissRespBodyBytes gets a reference to the given int32 and assigns it to the ShieldMissRespBodyBytes field. +func (o *RealtimeEntryAggregated) SetShieldMissRespBodyBytes(v int32) { + o.ShieldMissRespBodyBytes = &v +} + +// GetWebsocketReqHeaderBytes returns the WebsocketReqHeaderBytes field value if set, zero value otherwise. +func (o *RealtimeEntryAggregated) GetWebsocketReqHeaderBytes() int32 { + if o == nil || o.WebsocketReqHeaderBytes == nil { + var ret int32 + return ret + } + return *o.WebsocketReqHeaderBytes +} + +// GetWebsocketReqHeaderBytesOk returns a tuple with the WebsocketReqHeaderBytes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealtimeEntryAggregated) GetWebsocketReqHeaderBytesOk() (*int32, bool) { + if o == nil || o.WebsocketReqHeaderBytes == nil { + return nil, false + } + return o.WebsocketReqHeaderBytes, true +} + +// HasWebsocketReqHeaderBytes returns a boolean if a field has been set. +func (o *RealtimeEntryAggregated) HasWebsocketReqHeaderBytes() bool { + if o != nil && o.WebsocketReqHeaderBytes != nil { + return true + } + + return false +} + +// SetWebsocketReqHeaderBytes gets a reference to the given int32 and assigns it to the WebsocketReqHeaderBytes field. +func (o *RealtimeEntryAggregated) SetWebsocketReqHeaderBytes(v int32) { + o.WebsocketReqHeaderBytes = &v +} + +// GetWebsocketReqBodyBytes returns the WebsocketReqBodyBytes field value if set, zero value otherwise. +func (o *RealtimeEntryAggregated) GetWebsocketReqBodyBytes() int32 { + if o == nil || o.WebsocketReqBodyBytes == nil { + var ret int32 + return ret + } + return *o.WebsocketReqBodyBytes +} + +// GetWebsocketReqBodyBytesOk returns a tuple with the WebsocketReqBodyBytes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealtimeEntryAggregated) GetWebsocketReqBodyBytesOk() (*int32, bool) { + if o == nil || o.WebsocketReqBodyBytes == nil { + return nil, false + } + return o.WebsocketReqBodyBytes, true +} + +// HasWebsocketReqBodyBytes returns a boolean if a field has been set. +func (o *RealtimeEntryAggregated) HasWebsocketReqBodyBytes() bool { + if o != nil && o.WebsocketReqBodyBytes != nil { + return true + } + + return false +} + +// SetWebsocketReqBodyBytes gets a reference to the given int32 and assigns it to the WebsocketReqBodyBytes field. +func (o *RealtimeEntryAggregated) SetWebsocketReqBodyBytes(v int32) { + o.WebsocketReqBodyBytes = &v +} + +// GetWebsocketRespHeaderBytes returns the WebsocketRespHeaderBytes field value if set, zero value otherwise. +func (o *RealtimeEntryAggregated) GetWebsocketRespHeaderBytes() int32 { + if o == nil || o.WebsocketRespHeaderBytes == nil { + var ret int32 + return ret + } + return *o.WebsocketRespHeaderBytes +} + +// GetWebsocketRespHeaderBytesOk returns a tuple with the WebsocketRespHeaderBytes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealtimeEntryAggregated) GetWebsocketRespHeaderBytesOk() (*int32, bool) { + if o == nil || o.WebsocketRespHeaderBytes == nil { + return nil, false + } + return o.WebsocketRespHeaderBytes, true +} + +// HasWebsocketRespHeaderBytes returns a boolean if a field has been set. +func (o *RealtimeEntryAggregated) HasWebsocketRespHeaderBytes() bool { + if o != nil && o.WebsocketRespHeaderBytes != nil { + return true + } + + return false +} + +// SetWebsocketRespHeaderBytes gets a reference to the given int32 and assigns it to the WebsocketRespHeaderBytes field. +func (o *RealtimeEntryAggregated) SetWebsocketRespHeaderBytes(v int32) { + o.WebsocketRespHeaderBytes = &v +} + +// GetWebsocketBereqHeaderBytes returns the WebsocketBereqHeaderBytes field value if set, zero value otherwise. +func (o *RealtimeEntryAggregated) GetWebsocketBereqHeaderBytes() int32 { + if o == nil || o.WebsocketBereqHeaderBytes == nil { + var ret int32 + return ret + } + return *o.WebsocketBereqHeaderBytes +} + +// GetWebsocketBereqHeaderBytesOk returns a tuple with the WebsocketBereqHeaderBytes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealtimeEntryAggregated) GetWebsocketBereqHeaderBytesOk() (*int32, bool) { + if o == nil || o.WebsocketBereqHeaderBytes == nil { + return nil, false + } + return o.WebsocketBereqHeaderBytes, true +} + +// HasWebsocketBereqHeaderBytes returns a boolean if a field has been set. +func (o *RealtimeEntryAggregated) HasWebsocketBereqHeaderBytes() bool { + if o != nil && o.WebsocketBereqHeaderBytes != nil { + return true + } + + return false +} + +// SetWebsocketBereqHeaderBytes gets a reference to the given int32 and assigns it to the WebsocketBereqHeaderBytes field. +func (o *RealtimeEntryAggregated) SetWebsocketBereqHeaderBytes(v int32) { + o.WebsocketBereqHeaderBytes = &v +} + +// GetWebsocketBereqBodyBytes returns the WebsocketBereqBodyBytes field value if set, zero value otherwise. +func (o *RealtimeEntryAggregated) GetWebsocketBereqBodyBytes() int32 { + if o == nil || o.WebsocketBereqBodyBytes == nil { + var ret int32 + return ret + } + return *o.WebsocketBereqBodyBytes +} + +// GetWebsocketBereqBodyBytesOk returns a tuple with the WebsocketBereqBodyBytes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealtimeEntryAggregated) GetWebsocketBereqBodyBytesOk() (*int32, bool) { + if o == nil || o.WebsocketBereqBodyBytes == nil { + return nil, false + } + return o.WebsocketBereqBodyBytes, true +} + +// HasWebsocketBereqBodyBytes returns a boolean if a field has been set. +func (o *RealtimeEntryAggregated) HasWebsocketBereqBodyBytes() bool { + if o != nil && o.WebsocketBereqBodyBytes != nil { + return true + } + + return false +} + +// SetWebsocketBereqBodyBytes gets a reference to the given int32 and assigns it to the WebsocketBereqBodyBytes field. +func (o *RealtimeEntryAggregated) SetWebsocketBereqBodyBytes(v int32) { + o.WebsocketBereqBodyBytes = &v +} + +// GetWebsocketBerespHeaderBytes returns the WebsocketBerespHeaderBytes field value if set, zero value otherwise. +func (o *RealtimeEntryAggregated) GetWebsocketBerespHeaderBytes() int32 { + if o == nil || o.WebsocketBerespHeaderBytes == nil { + var ret int32 + return ret + } + return *o.WebsocketBerespHeaderBytes +} + +// GetWebsocketBerespHeaderBytesOk returns a tuple with the WebsocketBerespHeaderBytes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealtimeEntryAggregated) GetWebsocketBerespHeaderBytesOk() (*int32, bool) { + if o == nil || o.WebsocketBerespHeaderBytes == nil { + return nil, false + } + return o.WebsocketBerespHeaderBytes, true +} + +// HasWebsocketBerespHeaderBytes returns a boolean if a field has been set. +func (o *RealtimeEntryAggregated) HasWebsocketBerespHeaderBytes() bool { + if o != nil && o.WebsocketBerespHeaderBytes != nil { + return true + } + + return false +} + +// SetWebsocketBerespHeaderBytes gets a reference to the given int32 and assigns it to the WebsocketBerespHeaderBytes field. +func (o *RealtimeEntryAggregated) SetWebsocketBerespHeaderBytes(v int32) { + o.WebsocketBerespHeaderBytes = &v +} + +// GetWebsocketBerespBodyBytes returns the WebsocketBerespBodyBytes field value if set, zero value otherwise. +func (o *RealtimeEntryAggregated) GetWebsocketBerespBodyBytes() int32 { + if o == nil || o.WebsocketBerespBodyBytes == nil { + var ret int32 + return ret + } + return *o.WebsocketBerespBodyBytes +} + +// GetWebsocketBerespBodyBytesOk returns a tuple with the WebsocketBerespBodyBytes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealtimeEntryAggregated) GetWebsocketBerespBodyBytesOk() (*int32, bool) { + if o == nil || o.WebsocketBerespBodyBytes == nil { + return nil, false + } + return o.WebsocketBerespBodyBytes, true +} + +// HasWebsocketBerespBodyBytes returns a boolean if a field has been set. +func (o *RealtimeEntryAggregated) HasWebsocketBerespBodyBytes() bool { + if o != nil && o.WebsocketBerespBodyBytes != nil { + return true + } + + return false +} + +// SetWebsocketBerespBodyBytes gets a reference to the given int32 and assigns it to the WebsocketBerespBodyBytes field. +func (o *RealtimeEntryAggregated) SetWebsocketBerespBodyBytes(v int32) { + o.WebsocketBerespBodyBytes = &v +} + +// GetWebsocketConnTimeMs returns the WebsocketConnTimeMs field value if set, zero value otherwise. +func (o *RealtimeEntryAggregated) GetWebsocketConnTimeMs() int32 { + if o == nil || o.WebsocketConnTimeMs == nil { + var ret int32 + return ret + } + return *o.WebsocketConnTimeMs +} + +// GetWebsocketConnTimeMsOk returns a tuple with the WebsocketConnTimeMs field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealtimeEntryAggregated) GetWebsocketConnTimeMsOk() (*int32, bool) { + if o == nil || o.WebsocketConnTimeMs == nil { + return nil, false + } + return o.WebsocketConnTimeMs, true +} + +// HasWebsocketConnTimeMs returns a boolean if a field has been set. +func (o *RealtimeEntryAggregated) HasWebsocketConnTimeMs() bool { + if o != nil && o.WebsocketConnTimeMs != nil { + return true + } + + return false +} + +// SetWebsocketConnTimeMs gets a reference to the given int32 and assigns it to the WebsocketConnTimeMs field. +func (o *RealtimeEntryAggregated) SetWebsocketConnTimeMs(v int32) { + o.WebsocketConnTimeMs = &v +} + +// GetWebsocketRespBodyBytes returns the WebsocketRespBodyBytes field value if set, zero value otherwise. +func (o *RealtimeEntryAggregated) GetWebsocketRespBodyBytes() int32 { + if o == nil || o.WebsocketRespBodyBytes == nil { + var ret int32 + return ret + } + return *o.WebsocketRespBodyBytes +} + +// GetWebsocketRespBodyBytesOk returns a tuple with the WebsocketRespBodyBytes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealtimeEntryAggregated) GetWebsocketRespBodyBytesOk() (*int32, bool) { + if o == nil || o.WebsocketRespBodyBytes == nil { + return nil, false + } + return o.WebsocketRespBodyBytes, true +} + +// HasWebsocketRespBodyBytes returns a boolean if a field has been set. +func (o *RealtimeEntryAggregated) HasWebsocketRespBodyBytes() bool { + if o != nil && o.WebsocketRespBodyBytes != nil { + return true + } + + return false +} + +// SetWebsocketRespBodyBytes gets a reference to the given int32 and assigns it to the WebsocketRespBodyBytes field. +func (o *RealtimeEntryAggregated) SetWebsocketRespBodyBytes(v int32) { + o.WebsocketRespBodyBytes = &v +} + +// GetFanoutRecvPublishes returns the FanoutRecvPublishes field value if set, zero value otherwise. +func (o *RealtimeEntryAggregated) GetFanoutRecvPublishes() int32 { + if o == nil || o.FanoutRecvPublishes == nil { + var ret int32 + return ret + } + return *o.FanoutRecvPublishes +} + +// GetFanoutRecvPublishesOk returns a tuple with the FanoutRecvPublishes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealtimeEntryAggregated) GetFanoutRecvPublishesOk() (*int32, bool) { + if o == nil || o.FanoutRecvPublishes == nil { + return nil, false + } + return o.FanoutRecvPublishes, true +} + +// HasFanoutRecvPublishes returns a boolean if a field has been set. +func (o *RealtimeEntryAggregated) HasFanoutRecvPublishes() bool { + if o != nil && o.FanoutRecvPublishes != nil { + return true + } + + return false +} + +// SetFanoutRecvPublishes gets a reference to the given int32 and assigns it to the FanoutRecvPublishes field. +func (o *RealtimeEntryAggregated) SetFanoutRecvPublishes(v int32) { + o.FanoutRecvPublishes = &v +} + +// GetFanoutSendPublishes returns the FanoutSendPublishes field value if set, zero value otherwise. +func (o *RealtimeEntryAggregated) GetFanoutSendPublishes() int32 { + if o == nil || o.FanoutSendPublishes == nil { + var ret int32 + return ret + } + return *o.FanoutSendPublishes +} + +// GetFanoutSendPublishesOk returns a tuple with the FanoutSendPublishes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealtimeEntryAggregated) GetFanoutSendPublishesOk() (*int32, bool) { + if o == nil || o.FanoutSendPublishes == nil { + return nil, false + } + return o.FanoutSendPublishes, true +} + +// HasFanoutSendPublishes returns a boolean if a field has been set. +func (o *RealtimeEntryAggregated) HasFanoutSendPublishes() bool { + if o != nil && o.FanoutSendPublishes != nil { + return true + } + + return false +} + +// SetFanoutSendPublishes gets a reference to the given int32 and assigns it to the FanoutSendPublishes field. +func (o *RealtimeEntryAggregated) SetFanoutSendPublishes(v int32) { + o.FanoutSendPublishes = &v +} + +// GetKvStoreClassAOperations returns the KvStoreClassAOperations field value if set, zero value otherwise. +func (o *RealtimeEntryAggregated) GetKvStoreClassAOperations() int32 { + if o == nil || o.KvStoreClassAOperations == nil { + var ret int32 + return ret + } + return *o.KvStoreClassAOperations +} + +// GetKvStoreClassAOperationsOk returns a tuple with the KvStoreClassAOperations field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealtimeEntryAggregated) GetKvStoreClassAOperationsOk() (*int32, bool) { + if o == nil || o.KvStoreClassAOperations == nil { + return nil, false + } + return o.KvStoreClassAOperations, true +} + +// HasKvStoreClassAOperations returns a boolean if a field has been set. +func (o *RealtimeEntryAggregated) HasKvStoreClassAOperations() bool { + if o != nil && o.KvStoreClassAOperations != nil { + return true + } + + return false +} + +// SetKvStoreClassAOperations gets a reference to the given int32 and assigns it to the KvStoreClassAOperations field. +func (o *RealtimeEntryAggregated) SetKvStoreClassAOperations(v int32) { + o.KvStoreClassAOperations = &v +} + +// GetKvStoreClassBOperations returns the KvStoreClassBOperations field value if set, zero value otherwise. +func (o *RealtimeEntryAggregated) GetKvStoreClassBOperations() int32 { + if o == nil || o.KvStoreClassBOperations == nil { + var ret int32 + return ret + } + return *o.KvStoreClassBOperations +} + +// GetKvStoreClassBOperationsOk returns a tuple with the KvStoreClassBOperations field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealtimeEntryAggregated) GetKvStoreClassBOperationsOk() (*int32, bool) { + if o == nil || o.KvStoreClassBOperations == nil { + return nil, false + } + return o.KvStoreClassBOperations, true +} + +// HasKvStoreClassBOperations returns a boolean if a field has been set. +func (o *RealtimeEntryAggregated) HasKvStoreClassBOperations() bool { + if o != nil && o.KvStoreClassBOperations != nil { + return true + } + + return false +} + +// SetKvStoreClassBOperations gets a reference to the given int32 and assigns it to the KvStoreClassBOperations field. +func (o *RealtimeEntryAggregated) SetKvStoreClassBOperations(v int32) { + o.KvStoreClassBOperations = &v +} + +// GetObjectStoreClassAOperations returns the ObjectStoreClassAOperations field value if set, zero value otherwise. +// Deprecated +func (o *RealtimeEntryAggregated) GetObjectStoreClassAOperations() int32 { + if o == nil || o.ObjectStoreClassAOperations == nil { + var ret int32 + return ret + } + return *o.ObjectStoreClassAOperations +} + +// GetObjectStoreClassAOperationsOk returns a tuple with the ObjectStoreClassAOperations field value if set, nil otherwise +// and a boolean to check if the value has been set. +// Deprecated +func (o *RealtimeEntryAggregated) GetObjectStoreClassAOperationsOk() (*int32, bool) { + if o == nil || o.ObjectStoreClassAOperations == nil { + return nil, false + } + return o.ObjectStoreClassAOperations, true +} + +// HasObjectStoreClassAOperations returns a boolean if a field has been set. +func (o *RealtimeEntryAggregated) HasObjectStoreClassAOperations() bool { + if o != nil && o.ObjectStoreClassAOperations != nil { + return true + } + + return false +} + +// SetObjectStoreClassAOperations gets a reference to the given int32 and assigns it to the ObjectStoreClassAOperations field. +// Deprecated +func (o *RealtimeEntryAggregated) SetObjectStoreClassAOperations(v int32) { + o.ObjectStoreClassAOperations = &v +} + +// GetObjectStoreClassBOperations returns the ObjectStoreClassBOperations field value if set, zero value otherwise. +// Deprecated +func (o *RealtimeEntryAggregated) GetObjectStoreClassBOperations() int32 { + if o == nil || o.ObjectStoreClassBOperations == nil { + var ret int32 + return ret + } + return *o.ObjectStoreClassBOperations +} + +// GetObjectStoreClassBOperationsOk returns a tuple with the ObjectStoreClassBOperations field value if set, nil otherwise +// and a boolean to check if the value has been set. +// Deprecated +func (o *RealtimeEntryAggregated) GetObjectStoreClassBOperationsOk() (*int32, bool) { + if o == nil || o.ObjectStoreClassBOperations == nil { + return nil, false + } + return o.ObjectStoreClassBOperations, true +} + +// HasObjectStoreClassBOperations returns a boolean if a field has been set. +func (o *RealtimeEntryAggregated) HasObjectStoreClassBOperations() bool { + if o != nil && o.ObjectStoreClassBOperations != nil { + return true + } + + return false +} + +// SetObjectStoreClassBOperations gets a reference to the given int32 and assigns it to the ObjectStoreClassBOperations field. +// Deprecated +func (o *RealtimeEntryAggregated) SetObjectStoreClassBOperations(v int32) { + o.ObjectStoreClassBOperations = &v +} + +// GetFanoutReqHeaderBytes returns the FanoutReqHeaderBytes field value if set, zero value otherwise. +func (o *RealtimeEntryAggregated) GetFanoutReqHeaderBytes() int32 { + if o == nil || o.FanoutReqHeaderBytes == nil { + var ret int32 + return ret + } + return *o.FanoutReqHeaderBytes +} + +// GetFanoutReqHeaderBytesOk returns a tuple with the FanoutReqHeaderBytes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealtimeEntryAggregated) GetFanoutReqHeaderBytesOk() (*int32, bool) { + if o == nil || o.FanoutReqHeaderBytes == nil { + return nil, false + } + return o.FanoutReqHeaderBytes, true +} + +// HasFanoutReqHeaderBytes returns a boolean if a field has been set. +func (o *RealtimeEntryAggregated) HasFanoutReqHeaderBytes() bool { + if o != nil && o.FanoutReqHeaderBytes != nil { + return true + } + + return false +} + +// SetFanoutReqHeaderBytes gets a reference to the given int32 and assigns it to the FanoutReqHeaderBytes field. +func (o *RealtimeEntryAggregated) SetFanoutReqHeaderBytes(v int32) { + o.FanoutReqHeaderBytes = &v +} + +// GetFanoutReqBodyBytes returns the FanoutReqBodyBytes field value if set, zero value otherwise. +func (o *RealtimeEntryAggregated) GetFanoutReqBodyBytes() int32 { + if o == nil || o.FanoutReqBodyBytes == nil { + var ret int32 + return ret + } + return *o.FanoutReqBodyBytes +} + +// GetFanoutReqBodyBytesOk returns a tuple with the FanoutReqBodyBytes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealtimeEntryAggregated) GetFanoutReqBodyBytesOk() (*int32, bool) { + if o == nil || o.FanoutReqBodyBytes == nil { + return nil, false + } + return o.FanoutReqBodyBytes, true +} + +// HasFanoutReqBodyBytes returns a boolean if a field has been set. +func (o *RealtimeEntryAggregated) HasFanoutReqBodyBytes() bool { + if o != nil && o.FanoutReqBodyBytes != nil { + return true + } + + return false +} + +// SetFanoutReqBodyBytes gets a reference to the given int32 and assigns it to the FanoutReqBodyBytes field. +func (o *RealtimeEntryAggregated) SetFanoutReqBodyBytes(v int32) { + o.FanoutReqBodyBytes = &v +} + +// GetFanoutRespHeaderBytes returns the FanoutRespHeaderBytes field value if set, zero value otherwise. +func (o *RealtimeEntryAggregated) GetFanoutRespHeaderBytes() int32 { + if o == nil || o.FanoutRespHeaderBytes == nil { + var ret int32 + return ret + } + return *o.FanoutRespHeaderBytes +} + +// GetFanoutRespHeaderBytesOk returns a tuple with the FanoutRespHeaderBytes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealtimeEntryAggregated) GetFanoutRespHeaderBytesOk() (*int32, bool) { + if o == nil || o.FanoutRespHeaderBytes == nil { + return nil, false + } + return o.FanoutRespHeaderBytes, true +} + +// HasFanoutRespHeaderBytes returns a boolean if a field has been set. +func (o *RealtimeEntryAggregated) HasFanoutRespHeaderBytes() bool { + if o != nil && o.FanoutRespHeaderBytes != nil { + return true + } + + return false +} + +// SetFanoutRespHeaderBytes gets a reference to the given int32 and assigns it to the FanoutRespHeaderBytes field. +func (o *RealtimeEntryAggregated) SetFanoutRespHeaderBytes(v int32) { + o.FanoutRespHeaderBytes = &v +} + +// GetFanoutRespBodyBytes returns the FanoutRespBodyBytes field value if set, zero value otherwise. +func (o *RealtimeEntryAggregated) GetFanoutRespBodyBytes() int32 { + if o == nil || o.FanoutRespBodyBytes == nil { + var ret int32 + return ret + } + return *o.FanoutRespBodyBytes +} + +// GetFanoutRespBodyBytesOk returns a tuple with the FanoutRespBodyBytes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealtimeEntryAggregated) GetFanoutRespBodyBytesOk() (*int32, bool) { + if o == nil || o.FanoutRespBodyBytes == nil { + return nil, false + } + return o.FanoutRespBodyBytes, true +} + +// HasFanoutRespBodyBytes returns a boolean if a field has been set. +func (o *RealtimeEntryAggregated) HasFanoutRespBodyBytes() bool { + if o != nil && o.FanoutRespBodyBytes != nil { + return true + } + + return false +} + +// SetFanoutRespBodyBytes gets a reference to the given int32 and assigns it to the FanoutRespBodyBytes field. +func (o *RealtimeEntryAggregated) SetFanoutRespBodyBytes(v int32) { + o.FanoutRespBodyBytes = &v +} + +// GetFanoutBereqHeaderBytes returns the FanoutBereqHeaderBytes field value if set, zero value otherwise. +func (o *RealtimeEntryAggregated) GetFanoutBereqHeaderBytes() int32 { + if o == nil || o.FanoutBereqHeaderBytes == nil { + var ret int32 + return ret + } + return *o.FanoutBereqHeaderBytes +} + +// GetFanoutBereqHeaderBytesOk returns a tuple with the FanoutBereqHeaderBytes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealtimeEntryAggregated) GetFanoutBereqHeaderBytesOk() (*int32, bool) { + if o == nil || o.FanoutBereqHeaderBytes == nil { + return nil, false + } + return o.FanoutBereqHeaderBytes, true +} + +// HasFanoutBereqHeaderBytes returns a boolean if a field has been set. +func (o *RealtimeEntryAggregated) HasFanoutBereqHeaderBytes() bool { + if o != nil && o.FanoutBereqHeaderBytes != nil { + return true + } + + return false +} + +// SetFanoutBereqHeaderBytes gets a reference to the given int32 and assigns it to the FanoutBereqHeaderBytes field. +func (o *RealtimeEntryAggregated) SetFanoutBereqHeaderBytes(v int32) { + o.FanoutBereqHeaderBytes = &v +} + +// GetFanoutBereqBodyBytes returns the FanoutBereqBodyBytes field value if set, zero value otherwise. +func (o *RealtimeEntryAggregated) GetFanoutBereqBodyBytes() int32 { + if o == nil || o.FanoutBereqBodyBytes == nil { + var ret int32 + return ret + } + return *o.FanoutBereqBodyBytes +} + +// GetFanoutBereqBodyBytesOk returns a tuple with the FanoutBereqBodyBytes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealtimeEntryAggregated) GetFanoutBereqBodyBytesOk() (*int32, bool) { + if o == nil || o.FanoutBereqBodyBytes == nil { + return nil, false + } + return o.FanoutBereqBodyBytes, true +} + +// HasFanoutBereqBodyBytes returns a boolean if a field has been set. +func (o *RealtimeEntryAggregated) HasFanoutBereqBodyBytes() bool { + if o != nil && o.FanoutBereqBodyBytes != nil { + return true + } + + return false +} + +// SetFanoutBereqBodyBytes gets a reference to the given int32 and assigns it to the FanoutBereqBodyBytes field. +func (o *RealtimeEntryAggregated) SetFanoutBereqBodyBytes(v int32) { + o.FanoutBereqBodyBytes = &v +} + +// GetFanoutBerespHeaderBytes returns the FanoutBerespHeaderBytes field value if set, zero value otherwise. +func (o *RealtimeEntryAggregated) GetFanoutBerespHeaderBytes() int32 { + if o == nil || o.FanoutBerespHeaderBytes == nil { + var ret int32 + return ret + } + return *o.FanoutBerespHeaderBytes +} + +// GetFanoutBerespHeaderBytesOk returns a tuple with the FanoutBerespHeaderBytes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealtimeEntryAggregated) GetFanoutBerespHeaderBytesOk() (*int32, bool) { + if o == nil || o.FanoutBerespHeaderBytes == nil { + return nil, false + } + return o.FanoutBerespHeaderBytes, true +} + +// HasFanoutBerespHeaderBytes returns a boolean if a field has been set. +func (o *RealtimeEntryAggregated) HasFanoutBerespHeaderBytes() bool { + if o != nil && o.FanoutBerespHeaderBytes != nil { + return true + } + + return false +} + +// SetFanoutBerespHeaderBytes gets a reference to the given int32 and assigns it to the FanoutBerespHeaderBytes field. +func (o *RealtimeEntryAggregated) SetFanoutBerespHeaderBytes(v int32) { + o.FanoutBerespHeaderBytes = &v +} + +// GetFanoutBerespBodyBytes returns the FanoutBerespBodyBytes field value if set, zero value otherwise. +func (o *RealtimeEntryAggregated) GetFanoutBerespBodyBytes() int32 { + if o == nil || o.FanoutBerespBodyBytes == nil { + var ret int32 + return ret + } + return *o.FanoutBerespBodyBytes +} + +// GetFanoutBerespBodyBytesOk returns a tuple with the FanoutBerespBodyBytes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealtimeEntryAggregated) GetFanoutBerespBodyBytesOk() (*int32, bool) { + if o == nil || o.FanoutBerespBodyBytes == nil { + return nil, false + } + return o.FanoutBerespBodyBytes, true +} + +// HasFanoutBerespBodyBytes returns a boolean if a field has been set. +func (o *RealtimeEntryAggregated) HasFanoutBerespBodyBytes() bool { + if o != nil && o.FanoutBerespBodyBytes != nil { + return true + } + + return false +} + +// SetFanoutBerespBodyBytes gets a reference to the given int32 and assigns it to the FanoutBerespBodyBytes field. +func (o *RealtimeEntryAggregated) SetFanoutBerespBodyBytes(v int32) { + o.FanoutBerespBodyBytes = &v +} + +// GetFanoutConnTimeMs returns the FanoutConnTimeMs field value if set, zero value otherwise. +func (o *RealtimeEntryAggregated) GetFanoutConnTimeMs() int32 { + if o == nil || o.FanoutConnTimeMs == nil { + var ret int32 + return ret + } + return *o.FanoutConnTimeMs +} + +// GetFanoutConnTimeMsOk returns a tuple with the FanoutConnTimeMs field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealtimeEntryAggregated) GetFanoutConnTimeMsOk() (*int32, bool) { + if o == nil || o.FanoutConnTimeMs == nil { + return nil, false + } + return o.FanoutConnTimeMs, true +} + +// HasFanoutConnTimeMs returns a boolean if a field has been set. +func (o *RealtimeEntryAggregated) HasFanoutConnTimeMs() bool { + if o != nil && o.FanoutConnTimeMs != nil { + return true + } + + return false +} + +// SetFanoutConnTimeMs gets a reference to the given int32 and assigns it to the FanoutConnTimeMs field. +func (o *RealtimeEntryAggregated) SetFanoutConnTimeMs(v int32) { + o.FanoutConnTimeMs = &v +} + +// GetDdosActionLimitStreamsConnections returns the DdosActionLimitStreamsConnections field value if set, zero value otherwise. +func (o *RealtimeEntryAggregated) GetDdosActionLimitStreamsConnections() int32 { + if o == nil || o.DdosActionLimitStreamsConnections == nil { + var ret int32 + return ret + } + return *o.DdosActionLimitStreamsConnections +} + +// GetDdosActionLimitStreamsConnectionsOk returns a tuple with the DdosActionLimitStreamsConnections field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealtimeEntryAggregated) GetDdosActionLimitStreamsConnectionsOk() (*int32, bool) { + if o == nil || o.DdosActionLimitStreamsConnections == nil { + return nil, false + } + return o.DdosActionLimitStreamsConnections, true +} + +// HasDdosActionLimitStreamsConnections returns a boolean if a field has been set. +func (o *RealtimeEntryAggregated) HasDdosActionLimitStreamsConnections() bool { + if o != nil && o.DdosActionLimitStreamsConnections != nil { + return true + } + + return false +} + +// SetDdosActionLimitStreamsConnections gets a reference to the given int32 and assigns it to the DdosActionLimitStreamsConnections field. +func (o *RealtimeEntryAggregated) SetDdosActionLimitStreamsConnections(v int32) { + o.DdosActionLimitStreamsConnections = &v +} + +// GetDdosActionLimitStreamsRequests returns the DdosActionLimitStreamsRequests field value if set, zero value otherwise. +func (o *RealtimeEntryAggregated) GetDdosActionLimitStreamsRequests() int32 { + if o == nil || o.DdosActionLimitStreamsRequests == nil { + var ret int32 + return ret + } + return *o.DdosActionLimitStreamsRequests +} + +// GetDdosActionLimitStreamsRequestsOk returns a tuple with the DdosActionLimitStreamsRequests field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealtimeEntryAggregated) GetDdosActionLimitStreamsRequestsOk() (*int32, bool) { + if o == nil || o.DdosActionLimitStreamsRequests == nil { + return nil, false + } + return o.DdosActionLimitStreamsRequests, true +} + +// HasDdosActionLimitStreamsRequests returns a boolean if a field has been set. +func (o *RealtimeEntryAggregated) HasDdosActionLimitStreamsRequests() bool { + if o != nil && o.DdosActionLimitStreamsRequests != nil { + return true + } + + return false +} + +// SetDdosActionLimitStreamsRequests gets a reference to the given int32 and assigns it to the DdosActionLimitStreamsRequests field. +func (o *RealtimeEntryAggregated) SetDdosActionLimitStreamsRequests(v int32) { + o.DdosActionLimitStreamsRequests = &v +} + +// GetDdosActionTarpitAccept returns the DdosActionTarpitAccept field value if set, zero value otherwise. +func (o *RealtimeEntryAggregated) GetDdosActionTarpitAccept() int32 { + if o == nil || o.DdosActionTarpitAccept == nil { + var ret int32 + return ret + } + return *o.DdosActionTarpitAccept +} + +// GetDdosActionTarpitAcceptOk returns a tuple with the DdosActionTarpitAccept field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealtimeEntryAggregated) GetDdosActionTarpitAcceptOk() (*int32, bool) { + if o == nil || o.DdosActionTarpitAccept == nil { + return nil, false + } + return o.DdosActionTarpitAccept, true +} + +// HasDdosActionTarpitAccept returns a boolean if a field has been set. +func (o *RealtimeEntryAggregated) HasDdosActionTarpitAccept() bool { + if o != nil && o.DdosActionTarpitAccept != nil { + return true + } + + return false +} + +// SetDdosActionTarpitAccept gets a reference to the given int32 and assigns it to the DdosActionTarpitAccept field. +func (o *RealtimeEntryAggregated) SetDdosActionTarpitAccept(v int32) { + o.DdosActionTarpitAccept = &v +} + +// GetDdosActionTarpit returns the DdosActionTarpit field value if set, zero value otherwise. +func (o *RealtimeEntryAggregated) GetDdosActionTarpit() int32 { + if o == nil || o.DdosActionTarpit == nil { + var ret int32 + return ret + } + return *o.DdosActionTarpit +} + +// GetDdosActionTarpitOk returns a tuple with the DdosActionTarpit field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealtimeEntryAggregated) GetDdosActionTarpitOk() (*int32, bool) { + if o == nil || o.DdosActionTarpit == nil { + return nil, false + } + return o.DdosActionTarpit, true +} + +// HasDdosActionTarpit returns a boolean if a field has been set. +func (o *RealtimeEntryAggregated) HasDdosActionTarpit() bool { + if o != nil && o.DdosActionTarpit != nil { + return true + } + + return false +} + +// SetDdosActionTarpit gets a reference to the given int32 and assigns it to the DdosActionTarpit field. +func (o *RealtimeEntryAggregated) SetDdosActionTarpit(v int32) { + o.DdosActionTarpit = &v +} + +// GetDdosActionClose returns the DdosActionClose field value if set, zero value otherwise. +func (o *RealtimeEntryAggregated) GetDdosActionClose() int32 { + if o == nil || o.DdosActionClose == nil { + var ret int32 + return ret + } + return *o.DdosActionClose +} + +// GetDdosActionCloseOk returns a tuple with the DdosActionClose field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealtimeEntryAggregated) GetDdosActionCloseOk() (*int32, bool) { + if o == nil || o.DdosActionClose == nil { + return nil, false + } + return o.DdosActionClose, true +} + +// HasDdosActionClose returns a boolean if a field has been set. +func (o *RealtimeEntryAggregated) HasDdosActionClose() bool { + if o != nil && o.DdosActionClose != nil { + return true + } + + return false +} + +// SetDdosActionClose gets a reference to the given int32 and assigns it to the DdosActionClose field. +func (o *RealtimeEntryAggregated) SetDdosActionClose(v int32) { + o.DdosActionClose = &v +} + +// GetDdosActionBlackhole returns the DdosActionBlackhole field value if set, zero value otherwise. +func (o *RealtimeEntryAggregated) GetDdosActionBlackhole() int32 { + if o == nil || o.DdosActionBlackhole == nil { + var ret int32 + return ret + } + return *o.DdosActionBlackhole +} + +// GetDdosActionBlackholeOk returns a tuple with the DdosActionBlackhole field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RealtimeEntryAggregated) GetDdosActionBlackholeOk() (*int32, bool) { + if o == nil || o.DdosActionBlackhole == nil { + return nil, false + } + return o.DdosActionBlackhole, true +} + +// HasDdosActionBlackhole returns a boolean if a field has been set. +func (o *RealtimeEntryAggregated) HasDdosActionBlackhole() bool { + if o != nil && o.DdosActionBlackhole != nil { + return true + } + + return false +} + +// SetDdosActionBlackhole gets a reference to the given int32 and assigns it to the DdosActionBlackhole field. +func (o *RealtimeEntryAggregated) SetDdosActionBlackhole(v int32) { + o.DdosActionBlackhole = &v +} + +// MarshalJSON implements the json.Marshaler interface. +// Marshaler is the interface implemented by types that can marshal themselves into valid JSON. +func (o RealtimeEntryAggregated) MarshalJSON() ([]byte, error) { + toSerialize := map[string]any{} + if o.Requests != nil { + toSerialize["requests"] = o.Requests + } + if o.Logging != nil { + toSerialize["logging"] = o.Logging + } + if o.Log != nil { + toSerialize["log"] = o.Log + } + if o.RespHeaderBytes != nil { + toSerialize["resp_header_bytes"] = o.RespHeaderBytes + } + if o.HeaderSize != nil { + toSerialize["header_size"] = o.HeaderSize + } + if o.RespBodyBytes != nil { + toSerialize["resp_body_bytes"] = o.RespBodyBytes + } + if o.BodySize != nil { + toSerialize["body_size"] = o.BodySize + } + if o.Hits != nil { + toSerialize["hits"] = o.Hits + } + if o.Miss != nil { + toSerialize["miss"] = o.Miss + } + if o.Pass != nil { + toSerialize["pass"] = o.Pass + } + if o.Synth != nil { + toSerialize["synth"] = o.Synth + } + if o.Errors != nil { + toSerialize["errors"] = o.Errors + } + if o.HitsTime != nil { + toSerialize["hits_time"] = o.HitsTime + } + if o.MissTime != nil { + toSerialize["miss_time"] = o.MissTime + } + if o.MissHistogram != nil { + toSerialize["miss_histogram"] = o.MissHistogram + } + if o.ComputeRequests != nil { + toSerialize["compute_requests"] = o.ComputeRequests + } + if o.ComputeExecutionTimeMs != nil { + toSerialize["compute_execution_time_ms"] = o.ComputeExecutionTimeMs + } + if o.ComputeRAMUsed != nil { + toSerialize["compute_ram_used"] = o.ComputeRAMUsed + } + if o.ComputeRequestTimeMs != nil { + toSerialize["compute_request_time_ms"] = o.ComputeRequestTimeMs + } + if o.ComputeRequestTimeBilledMs != nil { + toSerialize["compute_request_time_billed_ms"] = o.ComputeRequestTimeBilledMs + } + if o.Shield != nil { + toSerialize["shield"] = o.Shield + } + if o.Ipv6 != nil { + toSerialize["ipv6"] = o.Ipv6 + } + if o.Imgopto != nil { + toSerialize["imgopto"] = o.Imgopto + } + if o.ImgoptoShield != nil { + toSerialize["imgopto_shield"] = o.ImgoptoShield + } + if o.ImgoptoTransforms != nil { + toSerialize["imgopto_transforms"] = o.ImgoptoTransforms + } + if o.Otfp != nil { + toSerialize["otfp"] = o.Otfp + } + if o.OtfpShield != nil { + toSerialize["otfp_shield"] = o.OtfpShield + } + if o.OtfpManifests != nil { + toSerialize["otfp_manifests"] = o.OtfpManifests + } + if o.Video != nil { + toSerialize["video"] = o.Video + } + if o.Pci != nil { + toSerialize["pci"] = o.Pci + } + if o.HTTP2 != nil { + toSerialize["http2"] = o.HTTP2 + } + if o.HTTP3 != nil { + toSerialize["http3"] = o.HTTP3 + } + if o.Restarts != nil { + toSerialize["restarts"] = o.Restarts + } + if o.ReqHeaderBytes != nil { + toSerialize["req_header_bytes"] = o.ReqHeaderBytes + } + if o.ReqBodyBytes != nil { + toSerialize["req_body_bytes"] = o.ReqBodyBytes + } + if o.BereqHeaderBytes != nil { + toSerialize["bereq_header_bytes"] = o.BereqHeaderBytes + } + if o.BereqBodyBytes != nil { + toSerialize["bereq_body_bytes"] = o.BereqBodyBytes + } + if o.WafBlocked != nil { + toSerialize["waf_blocked"] = o.WafBlocked + } + if o.WafLogged != nil { + toSerialize["waf_logged"] = o.WafLogged + } + if o.WafPassed != nil { + toSerialize["waf_passed"] = o.WafPassed + } + if o.AttackReqHeaderBytes != nil { + toSerialize["attack_req_header_bytes"] = o.AttackReqHeaderBytes + } + if o.AttackReqBodyBytes != nil { + toSerialize["attack_req_body_bytes"] = o.AttackReqBodyBytes + } + if o.AttackRespSynthBytes != nil { + toSerialize["attack_resp_synth_bytes"] = o.AttackRespSynthBytes + } + if o.AttackLoggedReqHeaderBytes != nil { + toSerialize["attack_logged_req_header_bytes"] = o.AttackLoggedReqHeaderBytes + } + if o.AttackLoggedReqBodyBytes != nil { + toSerialize["attack_logged_req_body_bytes"] = o.AttackLoggedReqBodyBytes + } + if o.AttackBlockedReqHeaderBytes != nil { + toSerialize["attack_blocked_req_header_bytes"] = o.AttackBlockedReqHeaderBytes + } + if o.AttackBlockedReqBodyBytes != nil { + toSerialize["attack_blocked_req_body_bytes"] = o.AttackBlockedReqBodyBytes + } + if o.AttackPassedReqHeaderBytes != nil { + toSerialize["attack_passed_req_header_bytes"] = o.AttackPassedReqHeaderBytes + } + if o.AttackPassedReqBodyBytes != nil { + toSerialize["attack_passed_req_body_bytes"] = o.AttackPassedReqBodyBytes + } + if o.ShieldRespHeaderBytes != nil { + toSerialize["shield_resp_header_bytes"] = o.ShieldRespHeaderBytes + } + if o.ShieldRespBodyBytes != nil { + toSerialize["shield_resp_body_bytes"] = o.ShieldRespBodyBytes + } + if o.OtfpRespHeaderBytes != nil { + toSerialize["otfp_resp_header_bytes"] = o.OtfpRespHeaderBytes + } + if o.OtfpRespBodyBytes != nil { + toSerialize["otfp_resp_body_bytes"] = o.OtfpRespBodyBytes + } + if o.OtfpShieldRespHeaderBytes != nil { + toSerialize["otfp_shield_resp_header_bytes"] = o.OtfpShieldRespHeaderBytes + } + if o.OtfpShieldRespBodyBytes != nil { + toSerialize["otfp_shield_resp_body_bytes"] = o.OtfpShieldRespBodyBytes + } + if o.OtfpShieldTime != nil { + toSerialize["otfp_shield_time"] = o.OtfpShieldTime + } + if o.OtfpDeliverTime != nil { + toSerialize["otfp_deliver_time"] = o.OtfpDeliverTime + } + if o.ImgoptoRespHeaderBytes != nil { + toSerialize["imgopto_resp_header_bytes"] = o.ImgoptoRespHeaderBytes + } + if o.ImgoptoRespBodyBytes != nil { + toSerialize["imgopto_resp_body_bytes"] = o.ImgoptoRespBodyBytes + } + if o.ImgoptoShieldRespHeaderBytes != nil { + toSerialize["imgopto_shield_resp_header_bytes"] = o.ImgoptoShieldRespHeaderBytes + } + if o.ImgoptoShieldRespBodyBytes != nil { + toSerialize["imgopto_shield_resp_body_bytes"] = o.ImgoptoShieldRespBodyBytes + } + if o.Status1xx != nil { + toSerialize["status_1xx"] = o.Status1xx + } + if o.Status2xx != nil { + toSerialize["status_2xx"] = o.Status2xx + } + if o.Status3xx != nil { + toSerialize["status_3xx"] = o.Status3xx + } + if o.Status4xx != nil { + toSerialize["status_4xx"] = o.Status4xx + } + if o.Status5xx != nil { + toSerialize["status_5xx"] = o.Status5xx + } + if o.Status200 != nil { + toSerialize["status_200"] = o.Status200 + } + if o.Status204 != nil { + toSerialize["status_204"] = o.Status204 + } + if o.Status206 != nil { + toSerialize["status_206"] = o.Status206 + } + if o.Status301 != nil { + toSerialize["status_301"] = o.Status301 + } + if o.Status302 != nil { + toSerialize["status_302"] = o.Status302 + } + if o.Status304 != nil { + toSerialize["status_304"] = o.Status304 + } + if o.Status400 != nil { + toSerialize["status_400"] = o.Status400 + } + if o.Status401 != nil { + toSerialize["status_401"] = o.Status401 + } + if o.Status403 != nil { + toSerialize["status_403"] = o.Status403 + } + if o.Status404 != nil { + toSerialize["status_404"] = o.Status404 + } + if o.Status406 != nil { + toSerialize["status_406"] = o.Status406 + } + if o.Status416 != nil { + toSerialize["status_416"] = o.Status416 + } + if o.Status429 != nil { + toSerialize["status_429"] = o.Status429 + } + if o.Status500 != nil { + toSerialize["status_500"] = o.Status500 + } + if o.Status501 != nil { + toSerialize["status_501"] = o.Status501 + } + if o.Status502 != nil { + toSerialize["status_502"] = o.Status502 + } + if o.Status503 != nil { + toSerialize["status_503"] = o.Status503 + } + if o.Status504 != nil { + toSerialize["status_504"] = o.Status504 + } + if o.Status505 != nil { + toSerialize["status_505"] = o.Status505 + } + if o.Uncacheable != nil { + toSerialize["uncacheable"] = o.Uncacheable + } + if o.PassTime != nil { + toSerialize["pass_time"] = o.PassTime + } + if o.TLS != nil { + toSerialize["tls"] = o.TLS + } + if o.TLSV10 != nil { + toSerialize["tls_v10"] = o.TLSV10 + } + if o.TLSV11 != nil { + toSerialize["tls_v11"] = o.TLSV11 + } + if o.TLSV12 != nil { + toSerialize["tls_v12"] = o.TLSV12 + } + if o.TLSV13 != nil { + toSerialize["tls_v13"] = o.TLSV13 + } + if o.ObjectSize1k != nil { + toSerialize["object_size_1k"] = o.ObjectSize1k + } + if o.ObjectSize10k != nil { + toSerialize["object_size_10k"] = o.ObjectSize10k + } + if o.ObjectSize100k != nil { + toSerialize["object_size_100k"] = o.ObjectSize100k + } + if o.ObjectSize1m != nil { + toSerialize["object_size_1m"] = o.ObjectSize1m + } + if o.ObjectSize10m != nil { + toSerialize["object_size_10m"] = o.ObjectSize10m + } + if o.ObjectSize100m != nil { + toSerialize["object_size_100m"] = o.ObjectSize100m + } + if o.ObjectSize1g != nil { + toSerialize["object_size_1g"] = o.ObjectSize1g + } + if o.ObjectSizeOther != nil { + toSerialize["object_size_other"] = o.ObjectSizeOther + } + if o.RecvSubTime != nil { + toSerialize["recv_sub_time"] = o.RecvSubTime + } + if o.RecvSubCount != nil { + toSerialize["recv_sub_count"] = o.RecvSubCount + } + if o.HashSubTime != nil { + toSerialize["hash_sub_time"] = o.HashSubTime + } + if o.HashSubCount != nil { + toSerialize["hash_sub_count"] = o.HashSubCount + } + if o.MissSubTime != nil { + toSerialize["miss_sub_time"] = o.MissSubTime + } + if o.MissSubCount != nil { + toSerialize["miss_sub_count"] = o.MissSubCount + } + if o.FetchSubTime != nil { + toSerialize["fetch_sub_time"] = o.FetchSubTime + } + if o.FetchSubCount != nil { + toSerialize["fetch_sub_count"] = o.FetchSubCount + } + if o.PassSubTime != nil { + toSerialize["pass_sub_time"] = o.PassSubTime + } + if o.PassSubCount != nil { + toSerialize["pass_sub_count"] = o.PassSubCount + } + if o.PipeSubTime != nil { + toSerialize["pipe_sub_time"] = o.PipeSubTime + } + if o.PipeSubCount != nil { + toSerialize["pipe_sub_count"] = o.PipeSubCount + } + if o.DeliverSubTime != nil { + toSerialize["deliver_sub_time"] = o.DeliverSubTime + } + if o.DeliverSubCount != nil { + toSerialize["deliver_sub_count"] = o.DeliverSubCount + } + if o.ErrorSubTime != nil { + toSerialize["error_sub_time"] = o.ErrorSubTime + } + if o.ErrorSubCount != nil { + toSerialize["error_sub_count"] = o.ErrorSubCount + } + if o.HitSubTime != nil { + toSerialize["hit_sub_time"] = o.HitSubTime + } + if o.HitSubCount != nil { + toSerialize["hit_sub_count"] = o.HitSubCount + } + if o.PrehashSubTime != nil { + toSerialize["prehash_sub_time"] = o.PrehashSubTime + } + if o.PrehashSubCount != nil { + toSerialize["prehash_sub_count"] = o.PrehashSubCount + } + if o.PredeliverSubTime != nil { + toSerialize["predeliver_sub_time"] = o.PredeliverSubTime + } + if o.PredeliverSubCount != nil { + toSerialize["predeliver_sub_count"] = o.PredeliverSubCount + } + if o.HitRespBodyBytes != nil { + toSerialize["hit_resp_body_bytes"] = o.HitRespBodyBytes + } + if o.MissRespBodyBytes != nil { + toSerialize["miss_resp_body_bytes"] = o.MissRespBodyBytes + } + if o.PassRespBodyBytes != nil { + toSerialize["pass_resp_body_bytes"] = o.PassRespBodyBytes + } + if o.ComputeReqHeaderBytes != nil { + toSerialize["compute_req_header_bytes"] = o.ComputeReqHeaderBytes + } + if o.ComputeReqBodyBytes != nil { + toSerialize["compute_req_body_bytes"] = o.ComputeReqBodyBytes + } + if o.ComputeRespHeaderBytes != nil { + toSerialize["compute_resp_header_bytes"] = o.ComputeRespHeaderBytes + } + if o.ComputeRespBodyBytes != nil { + toSerialize["compute_resp_body_bytes"] = o.ComputeRespBodyBytes + } + if o.Imgvideo != nil { + toSerialize["imgvideo"] = o.Imgvideo + } + if o.ImgvideoFrames != nil { + toSerialize["imgvideo_frames"] = o.ImgvideoFrames + } + if o.ImgvideoRespHeaderBytes != nil { + toSerialize["imgvideo_resp_header_bytes"] = o.ImgvideoRespHeaderBytes + } + if o.ImgvideoRespBodyBytes != nil { + toSerialize["imgvideo_resp_body_bytes"] = o.ImgvideoRespBodyBytes + } + if o.ImgvideoShield != nil { + toSerialize["imgvideo_shield"] = o.ImgvideoShield + } + if o.ImgvideoShieldFrames != nil { + toSerialize["imgvideo_shield_frames"] = o.ImgvideoShieldFrames + } + if o.ImgvideoShieldRespHeaderBytes != nil { + toSerialize["imgvideo_shield_resp_header_bytes"] = o.ImgvideoShieldRespHeaderBytes + } + if o.ImgvideoShieldRespBodyBytes != nil { + toSerialize["imgvideo_shield_resp_body_bytes"] = o.ImgvideoShieldRespBodyBytes + } + if o.LogBytes != nil { + toSerialize["log_bytes"] = o.LogBytes + } + if o.EdgeRequests != nil { + toSerialize["edge_requests"] = o.EdgeRequests + } + if o.EdgeRespHeaderBytes != nil { + toSerialize["edge_resp_header_bytes"] = o.EdgeRespHeaderBytes + } + if o.EdgeRespBodyBytes != nil { + toSerialize["edge_resp_body_bytes"] = o.EdgeRespBodyBytes + } + if o.OriginRevalidations != nil { + toSerialize["origin_revalidations"] = o.OriginRevalidations + } + if o.OriginFetches != nil { + toSerialize["origin_fetches"] = o.OriginFetches + } + if o.OriginFetchHeaderBytes != nil { + toSerialize["origin_fetch_header_bytes"] = o.OriginFetchHeaderBytes + } + if o.OriginFetchBodyBytes != nil { + toSerialize["origin_fetch_body_bytes"] = o.OriginFetchBodyBytes + } + if o.OriginFetchRespHeaderBytes != nil { + toSerialize["origin_fetch_resp_header_bytes"] = o.OriginFetchRespHeaderBytes + } + if o.OriginFetchRespBodyBytes != nil { + toSerialize["origin_fetch_resp_body_bytes"] = o.OriginFetchRespBodyBytes + } + if o.ShieldRevalidations != nil { + toSerialize["shield_revalidations"] = o.ShieldRevalidations + } + if o.ShieldFetches != nil { + toSerialize["shield_fetches"] = o.ShieldFetches + } + if o.ShieldFetchHeaderBytes != nil { + toSerialize["shield_fetch_header_bytes"] = o.ShieldFetchHeaderBytes + } + if o.ShieldFetchBodyBytes != nil { + toSerialize["shield_fetch_body_bytes"] = o.ShieldFetchBodyBytes + } + if o.ShieldFetchRespHeaderBytes != nil { + toSerialize["shield_fetch_resp_header_bytes"] = o.ShieldFetchRespHeaderBytes + } + if o.ShieldFetchRespBodyBytes != nil { + toSerialize["shield_fetch_resp_body_bytes"] = o.ShieldFetchRespBodyBytes + } + if o.SegblockOriginFetches != nil { + toSerialize["segblock_origin_fetches"] = o.SegblockOriginFetches + } + if o.SegblockShieldFetches != nil { + toSerialize["segblock_shield_fetches"] = o.SegblockShieldFetches + } + if o.ComputeRespStatus1xx != nil { + toSerialize["compute_resp_status_1xx"] = o.ComputeRespStatus1xx + } + if o.ComputeRespStatus2xx != nil { + toSerialize["compute_resp_status_2xx"] = o.ComputeRespStatus2xx + } + if o.ComputeRespStatus3xx != nil { + toSerialize["compute_resp_status_3xx"] = o.ComputeRespStatus3xx + } + if o.ComputeRespStatus4xx != nil { + toSerialize["compute_resp_status_4xx"] = o.ComputeRespStatus4xx + } + if o.ComputeRespStatus5xx != nil { + toSerialize["compute_resp_status_5xx"] = o.ComputeRespStatus5xx + } + if o.EdgeHitRequests != nil { + toSerialize["edge_hit_requests"] = o.EdgeHitRequests + } + if o.EdgeMissRequests != nil { + toSerialize["edge_miss_requests"] = o.EdgeMissRequests + } + if o.ComputeBereqHeaderBytes != nil { + toSerialize["compute_bereq_header_bytes"] = o.ComputeBereqHeaderBytes + } + if o.ComputeBereqBodyBytes != nil { + toSerialize["compute_bereq_body_bytes"] = o.ComputeBereqBodyBytes + } + if o.ComputeBerespHeaderBytes != nil { + toSerialize["compute_beresp_header_bytes"] = o.ComputeBerespHeaderBytes + } + if o.ComputeBerespBodyBytes != nil { + toSerialize["compute_beresp_body_bytes"] = o.ComputeBerespBodyBytes + } + if o.OriginCacheFetches != nil { + toSerialize["origin_cache_fetches"] = o.OriginCacheFetches + } + if o.ShieldCacheFetches != nil { + toSerialize["shield_cache_fetches"] = o.ShieldCacheFetches + } + if o.ComputeBereqs != nil { + toSerialize["compute_bereqs"] = o.ComputeBereqs + } + if o.ComputeBereqErrors != nil { + toSerialize["compute_bereq_errors"] = o.ComputeBereqErrors + } + if o.ComputeResourceLimitExceeded != nil { + toSerialize["compute_resource_limit_exceeded"] = o.ComputeResourceLimitExceeded + } + if o.ComputeHeapLimitExceeded != nil { + toSerialize["compute_heap_limit_exceeded"] = o.ComputeHeapLimitExceeded + } + if o.ComputeStackLimitExceeded != nil { + toSerialize["compute_stack_limit_exceeded"] = o.ComputeStackLimitExceeded + } + if o.ComputeGlobalsLimitExceeded != nil { + toSerialize["compute_globals_limit_exceeded"] = o.ComputeGlobalsLimitExceeded + } + if o.ComputeGuestErrors != nil { + toSerialize["compute_guest_errors"] = o.ComputeGuestErrors + } + if o.ComputeRuntimeErrors != nil { + toSerialize["compute_runtime_errors"] = o.ComputeRuntimeErrors + } + if o.EdgeHitRespBodyBytes != nil { + toSerialize["edge_hit_resp_body_bytes"] = o.EdgeHitRespBodyBytes + } + if o.EdgeHitRespHeaderBytes != nil { + toSerialize["edge_hit_resp_header_bytes"] = o.EdgeHitRespHeaderBytes + } + if o.EdgeMissRespBodyBytes != nil { + toSerialize["edge_miss_resp_body_bytes"] = o.EdgeMissRespBodyBytes + } + if o.EdgeMissRespHeaderBytes != nil { + toSerialize["edge_miss_resp_header_bytes"] = o.EdgeMissRespHeaderBytes + } + if o.OriginCacheFetchRespBodyBytes != nil { + toSerialize["origin_cache_fetch_resp_body_bytes"] = o.OriginCacheFetchRespBodyBytes + } + if o.OriginCacheFetchRespHeaderBytes != nil { + toSerialize["origin_cache_fetch_resp_header_bytes"] = o.OriginCacheFetchRespHeaderBytes + } + if o.ShieldHitRequests != nil { + toSerialize["shield_hit_requests"] = o.ShieldHitRequests + } + if o.ShieldMissRequests != nil { + toSerialize["shield_miss_requests"] = o.ShieldMissRequests + } + if o.ShieldHitRespHeaderBytes != nil { + toSerialize["shield_hit_resp_header_bytes"] = o.ShieldHitRespHeaderBytes + } + if o.ShieldHitRespBodyBytes != nil { + toSerialize["shield_hit_resp_body_bytes"] = o.ShieldHitRespBodyBytes + } + if o.ShieldMissRespHeaderBytes != nil { + toSerialize["shield_miss_resp_header_bytes"] = o.ShieldMissRespHeaderBytes + } + if o.ShieldMissRespBodyBytes != nil { + toSerialize["shield_miss_resp_body_bytes"] = o.ShieldMissRespBodyBytes + } + if o.WebsocketReqHeaderBytes != nil { + toSerialize["websocket_req_header_bytes"] = o.WebsocketReqHeaderBytes + } + if o.WebsocketReqBodyBytes != nil { + toSerialize["websocket_req_body_bytes"] = o.WebsocketReqBodyBytes + } + if o.WebsocketRespHeaderBytes != nil { + toSerialize["websocket_resp_header_bytes"] = o.WebsocketRespHeaderBytes + } + if o.WebsocketBereqHeaderBytes != nil { + toSerialize["websocket_bereq_header_bytes"] = o.WebsocketBereqHeaderBytes + } + if o.WebsocketBereqBodyBytes != nil { + toSerialize["websocket_bereq_body_bytes"] = o.WebsocketBereqBodyBytes + } + if o.WebsocketBerespHeaderBytes != nil { + toSerialize["websocket_beresp_header_bytes"] = o.WebsocketBerespHeaderBytes + } + if o.WebsocketBerespBodyBytes != nil { + toSerialize["websocket_beresp_body_bytes"] = o.WebsocketBerespBodyBytes + } + if o.WebsocketConnTimeMs != nil { + toSerialize["websocket_conn_time_ms"] = o.WebsocketConnTimeMs + } + if o.WebsocketRespBodyBytes != nil { + toSerialize["websocket_resp_body_bytes"] = o.WebsocketRespBodyBytes + } + if o.FanoutRecvPublishes != nil { + toSerialize["fanout_recv_publishes"] = o.FanoutRecvPublishes + } + if o.FanoutSendPublishes != nil { + toSerialize["fanout_send_publishes"] = o.FanoutSendPublishes + } + if o.KvStoreClassAOperations != nil { + toSerialize["kv_store_class_a_operations"] = o.KvStoreClassAOperations + } + if o.KvStoreClassBOperations != nil { + toSerialize["kv_store_class_b_operations"] = o.KvStoreClassBOperations + } + if o.ObjectStoreClassAOperations != nil { + toSerialize["object_store_class_a_operations"] = o.ObjectStoreClassAOperations + } + if o.ObjectStoreClassBOperations != nil { + toSerialize["object_store_class_b_operations"] = o.ObjectStoreClassBOperations + } + if o.FanoutReqHeaderBytes != nil { + toSerialize["fanout_req_header_bytes"] = o.FanoutReqHeaderBytes + } + if o.FanoutReqBodyBytes != nil { + toSerialize["fanout_req_body_bytes"] = o.FanoutReqBodyBytes + } + if o.FanoutRespHeaderBytes != nil { + toSerialize["fanout_resp_header_bytes"] = o.FanoutRespHeaderBytes + } + if o.FanoutRespBodyBytes != nil { + toSerialize["fanout_resp_body_bytes"] = o.FanoutRespBodyBytes + } + if o.FanoutBereqHeaderBytes != nil { + toSerialize["fanout_bereq_header_bytes"] = o.FanoutBereqHeaderBytes + } + if o.FanoutBereqBodyBytes != nil { + toSerialize["fanout_bereq_body_bytes"] = o.FanoutBereqBodyBytes + } + if o.FanoutBerespHeaderBytes != nil { + toSerialize["fanout_beresp_header_bytes"] = o.FanoutBerespHeaderBytes + } + if o.FanoutBerespBodyBytes != nil { + toSerialize["fanout_beresp_body_bytes"] = o.FanoutBerespBodyBytes + } + if o.FanoutConnTimeMs != nil { + toSerialize["fanout_conn_time_ms"] = o.FanoutConnTimeMs + } + if o.DdosActionLimitStreamsConnections != nil { + toSerialize["ddos_action_limit_streams_connections"] = o.DdosActionLimitStreamsConnections + } + if o.DdosActionLimitStreamsRequests != nil { + toSerialize["ddos_action_limit_streams_requests"] = o.DdosActionLimitStreamsRequests + } + if o.DdosActionTarpitAccept != nil { + toSerialize["ddos_action_tarpit_accept"] = o.DdosActionTarpitAccept + } + if o.DdosActionTarpit != nil { + toSerialize["ddos_action_tarpit"] = o.DdosActionTarpit + } + if o.DdosActionClose != nil { + toSerialize["ddos_action_close"] = o.DdosActionClose + } + if o.DdosActionBlackhole != nil { + toSerialize["ddos_action_blackhole"] = o.DdosActionBlackhole + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return json.Marshal(toSerialize) +} + +// UnmarshalJSON implements the Unmarshaler interface. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +func (o *RealtimeEntryAggregated) UnmarshalJSON(bytes []byte) (err error) { + varRealtimeEntryAggregated := _RealtimeEntryAggregated{} + + if err = json.Unmarshal(bytes, &varRealtimeEntryAggregated); err == nil { + *o = RealtimeEntryAggregated(varRealtimeEntryAggregated) + } + + additionalProperties := make(map[string]any) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "requests") + delete(additionalProperties, "logging") + delete(additionalProperties, "log") + delete(additionalProperties, "resp_header_bytes") + delete(additionalProperties, "header_size") + delete(additionalProperties, "resp_body_bytes") + delete(additionalProperties, "body_size") + delete(additionalProperties, "hits") + delete(additionalProperties, "miss") + delete(additionalProperties, "pass") + delete(additionalProperties, "synth") + delete(additionalProperties, "errors") + delete(additionalProperties, "hits_time") + delete(additionalProperties, "miss_time") + delete(additionalProperties, "miss_histogram") + delete(additionalProperties, "compute_requests") + delete(additionalProperties, "compute_execution_time_ms") + delete(additionalProperties, "compute_ram_used") + delete(additionalProperties, "compute_request_time_ms") + delete(additionalProperties, "compute_request_time_billed_ms") + delete(additionalProperties, "shield") + delete(additionalProperties, "ipv6") + delete(additionalProperties, "imgopto") + delete(additionalProperties, "imgopto_shield") + delete(additionalProperties, "imgopto_transforms") + delete(additionalProperties, "otfp") + delete(additionalProperties, "otfp_shield") + delete(additionalProperties, "otfp_manifests") + delete(additionalProperties, "video") + delete(additionalProperties, "pci") + delete(additionalProperties, "http2") + delete(additionalProperties, "http3") + delete(additionalProperties, "restarts") + delete(additionalProperties, "req_header_bytes") + delete(additionalProperties, "req_body_bytes") + delete(additionalProperties, "bereq_header_bytes") + delete(additionalProperties, "bereq_body_bytes") + delete(additionalProperties, "waf_blocked") + delete(additionalProperties, "waf_logged") + delete(additionalProperties, "waf_passed") + delete(additionalProperties, "attack_req_header_bytes") + delete(additionalProperties, "attack_req_body_bytes") + delete(additionalProperties, "attack_resp_synth_bytes") + delete(additionalProperties, "attack_logged_req_header_bytes") + delete(additionalProperties, "attack_logged_req_body_bytes") + delete(additionalProperties, "attack_blocked_req_header_bytes") + delete(additionalProperties, "attack_blocked_req_body_bytes") + delete(additionalProperties, "attack_passed_req_header_bytes") + delete(additionalProperties, "attack_passed_req_body_bytes") + delete(additionalProperties, "shield_resp_header_bytes") + delete(additionalProperties, "shield_resp_body_bytes") + delete(additionalProperties, "otfp_resp_header_bytes") + delete(additionalProperties, "otfp_resp_body_bytes") + delete(additionalProperties, "otfp_shield_resp_header_bytes") + delete(additionalProperties, "otfp_shield_resp_body_bytes") + delete(additionalProperties, "otfp_shield_time") + delete(additionalProperties, "otfp_deliver_time") + delete(additionalProperties, "imgopto_resp_header_bytes") + delete(additionalProperties, "imgopto_resp_body_bytes") + delete(additionalProperties, "imgopto_shield_resp_header_bytes") + delete(additionalProperties, "imgopto_shield_resp_body_bytes") + delete(additionalProperties, "status_1xx") + delete(additionalProperties, "status_2xx") + delete(additionalProperties, "status_3xx") + delete(additionalProperties, "status_4xx") + delete(additionalProperties, "status_5xx") + delete(additionalProperties, "status_200") + delete(additionalProperties, "status_204") + delete(additionalProperties, "status_206") + delete(additionalProperties, "status_301") + delete(additionalProperties, "status_302") + delete(additionalProperties, "status_304") + delete(additionalProperties, "status_400") + delete(additionalProperties, "status_401") + delete(additionalProperties, "status_403") + delete(additionalProperties, "status_404") + delete(additionalProperties, "status_406") + delete(additionalProperties, "status_416") + delete(additionalProperties, "status_429") + delete(additionalProperties, "status_500") + delete(additionalProperties, "status_501") + delete(additionalProperties, "status_502") + delete(additionalProperties, "status_503") + delete(additionalProperties, "status_504") + delete(additionalProperties, "status_505") + delete(additionalProperties, "uncacheable") + delete(additionalProperties, "pass_time") + delete(additionalProperties, "tls") + delete(additionalProperties, "tls_v10") + delete(additionalProperties, "tls_v11") + delete(additionalProperties, "tls_v12") + delete(additionalProperties, "tls_v13") + delete(additionalProperties, "object_size_1k") + delete(additionalProperties, "object_size_10k") + delete(additionalProperties, "object_size_100k") + delete(additionalProperties, "object_size_1m") + delete(additionalProperties, "object_size_10m") + delete(additionalProperties, "object_size_100m") + delete(additionalProperties, "object_size_1g") + delete(additionalProperties, "object_size_other") + delete(additionalProperties, "recv_sub_time") + delete(additionalProperties, "recv_sub_count") + delete(additionalProperties, "hash_sub_time") + delete(additionalProperties, "hash_sub_count") + delete(additionalProperties, "miss_sub_time") + delete(additionalProperties, "miss_sub_count") + delete(additionalProperties, "fetch_sub_time") + delete(additionalProperties, "fetch_sub_count") + delete(additionalProperties, "pass_sub_time") + delete(additionalProperties, "pass_sub_count") + delete(additionalProperties, "pipe_sub_time") + delete(additionalProperties, "pipe_sub_count") + delete(additionalProperties, "deliver_sub_time") + delete(additionalProperties, "deliver_sub_count") + delete(additionalProperties, "error_sub_time") + delete(additionalProperties, "error_sub_count") + delete(additionalProperties, "hit_sub_time") + delete(additionalProperties, "hit_sub_count") + delete(additionalProperties, "prehash_sub_time") + delete(additionalProperties, "prehash_sub_count") + delete(additionalProperties, "predeliver_sub_time") + delete(additionalProperties, "predeliver_sub_count") + delete(additionalProperties, "hit_resp_body_bytes") + delete(additionalProperties, "miss_resp_body_bytes") + delete(additionalProperties, "pass_resp_body_bytes") + delete(additionalProperties, "compute_req_header_bytes") + delete(additionalProperties, "compute_req_body_bytes") + delete(additionalProperties, "compute_resp_header_bytes") + delete(additionalProperties, "compute_resp_body_bytes") + delete(additionalProperties, "imgvideo") + delete(additionalProperties, "imgvideo_frames") + delete(additionalProperties, "imgvideo_resp_header_bytes") + delete(additionalProperties, "imgvideo_resp_body_bytes") + delete(additionalProperties, "imgvideo_shield") + delete(additionalProperties, "imgvideo_shield_frames") + delete(additionalProperties, "imgvideo_shield_resp_header_bytes") + delete(additionalProperties, "imgvideo_shield_resp_body_bytes") + delete(additionalProperties, "log_bytes") + delete(additionalProperties, "edge_requests") + delete(additionalProperties, "edge_resp_header_bytes") + delete(additionalProperties, "edge_resp_body_bytes") + delete(additionalProperties, "origin_revalidations") + delete(additionalProperties, "origin_fetches") + delete(additionalProperties, "origin_fetch_header_bytes") + delete(additionalProperties, "origin_fetch_body_bytes") + delete(additionalProperties, "origin_fetch_resp_header_bytes") + delete(additionalProperties, "origin_fetch_resp_body_bytes") + delete(additionalProperties, "shield_revalidations") + delete(additionalProperties, "shield_fetches") + delete(additionalProperties, "shield_fetch_header_bytes") + delete(additionalProperties, "shield_fetch_body_bytes") + delete(additionalProperties, "shield_fetch_resp_header_bytes") + delete(additionalProperties, "shield_fetch_resp_body_bytes") + delete(additionalProperties, "segblock_origin_fetches") + delete(additionalProperties, "segblock_shield_fetches") + delete(additionalProperties, "compute_resp_status_1xx") + delete(additionalProperties, "compute_resp_status_2xx") + delete(additionalProperties, "compute_resp_status_3xx") + delete(additionalProperties, "compute_resp_status_4xx") + delete(additionalProperties, "compute_resp_status_5xx") + delete(additionalProperties, "edge_hit_requests") + delete(additionalProperties, "edge_miss_requests") + delete(additionalProperties, "compute_bereq_header_bytes") + delete(additionalProperties, "compute_bereq_body_bytes") + delete(additionalProperties, "compute_beresp_header_bytes") + delete(additionalProperties, "compute_beresp_body_bytes") + delete(additionalProperties, "origin_cache_fetches") + delete(additionalProperties, "shield_cache_fetches") + delete(additionalProperties, "compute_bereqs") + delete(additionalProperties, "compute_bereq_errors") + delete(additionalProperties, "compute_resource_limit_exceeded") + delete(additionalProperties, "compute_heap_limit_exceeded") + delete(additionalProperties, "compute_stack_limit_exceeded") + delete(additionalProperties, "compute_globals_limit_exceeded") + delete(additionalProperties, "compute_guest_errors") + delete(additionalProperties, "compute_runtime_errors") + delete(additionalProperties, "edge_hit_resp_body_bytes") + delete(additionalProperties, "edge_hit_resp_header_bytes") + delete(additionalProperties, "edge_miss_resp_body_bytes") + delete(additionalProperties, "edge_miss_resp_header_bytes") + delete(additionalProperties, "origin_cache_fetch_resp_body_bytes") + delete(additionalProperties, "origin_cache_fetch_resp_header_bytes") + delete(additionalProperties, "shield_hit_requests") + delete(additionalProperties, "shield_miss_requests") + delete(additionalProperties, "shield_hit_resp_header_bytes") + delete(additionalProperties, "shield_hit_resp_body_bytes") + delete(additionalProperties, "shield_miss_resp_header_bytes") + delete(additionalProperties, "shield_miss_resp_body_bytes") + delete(additionalProperties, "websocket_req_header_bytes") + delete(additionalProperties, "websocket_req_body_bytes") + delete(additionalProperties, "websocket_resp_header_bytes") + delete(additionalProperties, "websocket_bereq_header_bytes") + delete(additionalProperties, "websocket_bereq_body_bytes") + delete(additionalProperties, "websocket_beresp_header_bytes") + delete(additionalProperties, "websocket_beresp_body_bytes") + delete(additionalProperties, "websocket_conn_time_ms") + delete(additionalProperties, "websocket_resp_body_bytes") + delete(additionalProperties, "fanout_recv_publishes") + delete(additionalProperties, "fanout_send_publishes") + delete(additionalProperties, "kv_store_class_a_operations") + delete(additionalProperties, "kv_store_class_b_operations") + delete(additionalProperties, "object_store_class_a_operations") + delete(additionalProperties, "object_store_class_b_operations") + delete(additionalProperties, "fanout_req_header_bytes") + delete(additionalProperties, "fanout_req_body_bytes") + delete(additionalProperties, "fanout_resp_header_bytes") + delete(additionalProperties, "fanout_resp_body_bytes") + delete(additionalProperties, "fanout_bereq_header_bytes") + delete(additionalProperties, "fanout_bereq_body_bytes") + delete(additionalProperties, "fanout_beresp_header_bytes") + delete(additionalProperties, "fanout_beresp_body_bytes") + delete(additionalProperties, "fanout_conn_time_ms") + delete(additionalProperties, "ddos_action_limit_streams_connections") + delete(additionalProperties, "ddos_action_limit_streams_requests") + delete(additionalProperties, "ddos_action_tarpit_accept") + delete(additionalProperties, "ddos_action_tarpit") + delete(additionalProperties, "ddos_action_close") + delete(additionalProperties, "ddos_action_blackhole") + o.AdditionalProperties = additionalProperties + } + + return err +} + +// NullableRealtimeEntryAggregated is a helper abstraction for handling nullable realtimeentryaggregated types. +type NullableRealtimeEntryAggregated struct { + value *RealtimeEntryAggregated + isSet bool +} + +// Get returns the value. +func (v NullableRealtimeEntryAggregated) Get() *RealtimeEntryAggregated { + return v.value +} + +// Set modifies the value. +func (v *NullableRealtimeEntryAggregated) Set(val *RealtimeEntryAggregated) { + v.value = val + v.isSet = true +} + +// IsSet indicates if the value was set. +func (v NullableRealtimeEntryAggregated) IsSet() bool { + return v.isSet +} + +// Unset removes the value. +func (v *NullableRealtimeEntryAggregated) Unset() { + v.value = nil + v.isSet = false +} + +// NewNullableRealtimeEntryAggregated returns a pointer to a new instance of NullableRealtimeEntryAggregated. +func NewNullableRealtimeEntryAggregated(val *RealtimeEntryAggregated) *NullableRealtimeEntryAggregated { + return &NullableRealtimeEntryAggregated{value: val, isSet: true} +} + +// MarshalJSON implements the json.Marshaler interface. +// Marshaler is the interface implemented by types that can marshal themselves into valid JSON. +func (v NullableRealtimeEntryAggregated) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +// UnmarshalJSON implements the Unmarshaler interface. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +func (v *NullableRealtimeEntryAggregated) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/fastly/model_realtime_entry_recorded.go b/fastly/model_realtime_entry_recorded.go new file mode 100644 index 00000000..5a224dc4 --- /dev/null +++ b/fastly/model_realtime_entry_recorded.go @@ -0,0 +1,92 @@ +// Package fastly is an API client library for interacting with most facets of the Fastly API. +package fastly + +/* +Fastly API + +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://developer.fastly.com/reference/api/) + +API version: 1.0.0 +Contact: oss@fastly.com +*/ + +// This code is auto-generated; DO NOT EDIT. + + +import ( + "encoding/json" +) + +// RealtimeEntryRecorded The Unix timestamp at which this record's data was generated. +type RealtimeEntryRecorded struct { +} + +// NewRealtimeEntryRecorded instantiates a new RealtimeEntryRecorded object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewRealtimeEntryRecorded() *RealtimeEntryRecorded { + this := RealtimeEntryRecorded{} + return &this +} + +// NewRealtimeEntryRecordedWithDefaults instantiates a new RealtimeEntryRecorded object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewRealtimeEntryRecordedWithDefaults() *RealtimeEntryRecorded { + this := RealtimeEntryRecorded{} + return &this +} + +// MarshalJSON implements the json.Marshaler interface. +// Marshaler is the interface implemented by types that can marshal themselves into valid JSON. +func (o RealtimeEntryRecorded) MarshalJSON() ([]byte, error) { + toSerialize := map[string]any{} + return json.Marshal(toSerialize) +} + +// NullableRealtimeEntryRecorded is a helper abstraction for handling nullable realtimeentryrecorded types. +type NullableRealtimeEntryRecorded struct { + value *RealtimeEntryRecorded + isSet bool +} + +// Get returns the value. +func (v NullableRealtimeEntryRecorded) Get() *RealtimeEntryRecorded { + return v.value +} + +// Set modifies the value. +func (v *NullableRealtimeEntryRecorded) Set(val *RealtimeEntryRecorded) { + v.value = val + v.isSet = true +} + +// IsSet indicates if the value was set. +func (v NullableRealtimeEntryRecorded) IsSet() bool { + return v.isSet +} + +// Unset removes the value. +func (v *NullableRealtimeEntryRecorded) Unset() { + v.value = nil + v.isSet = false +} + +// NewNullableRealtimeEntryRecorded returns a pointer to a new instance of NullableRealtimeEntryRecorded. +func NewNullableRealtimeEntryRecorded(val *RealtimeEntryRecorded) *NullableRealtimeEntryRecorded { + return &NullableRealtimeEntryRecorded{value: val, isSet: true} +} + +// MarshalJSON implements the json.Marshaler interface. +// Marshaler is the interface implemented by types that can marshal themselves into valid JSON. +func (v NullableRealtimeEntryRecorded) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +// UnmarshalJSON implements the Unmarshaler interface. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +func (v *NullableRealtimeEntryRecorded) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/fastly/model_realtime_measurements.go b/fastly/model_realtime_measurements.go index 824ee46a..f026e5a7 100644 --- a/fastly/model_realtime_measurements.go +++ b/fastly/model_realtime_measurements.go @@ -48,7 +48,7 @@ type RealtimeMeasurements struct { // Total amount of time spent processing cache misses (in seconds). MissTime *float32 `json:"miss_time,omitempty"` // A histogram. Each key represents the upper bound of a span of 10 milliseconds and the values represent the number of requests to origin during that 10ms period. Any origin request that takes more than 60 seconds to return will be in the 60000 bucket. - MissHistogram map[string]any `json:"miss_histogram,omitempty"` + MissHistogram map[string]map[string]any `json:"miss_histogram,omitempty"` // The total number of requests that were received for your service by Fastly. ComputeRequests *int32 `json:"compute_requests,omitempty"` // The amount of active CPU time used to process your requests (in milliseconds). @@ -928,9 +928,9 @@ func (o *RealtimeMeasurements) SetMissTime(v float32) { } // GetMissHistogram returns the MissHistogram field value if set, zero value otherwise. -func (o *RealtimeMeasurements) GetMissHistogram() map[string]any { +func (o *RealtimeMeasurements) GetMissHistogram() map[string]map[string]any { if o == nil || o.MissHistogram == nil { - var ret map[string]any + var ret map[string]map[string]any return ret } return o.MissHistogram @@ -938,7 +938,7 @@ func (o *RealtimeMeasurements) GetMissHistogram() map[string]any { // GetMissHistogramOk returns a tuple with the MissHistogram field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *RealtimeMeasurements) GetMissHistogramOk() (map[string]any, bool) { +func (o *RealtimeMeasurements) GetMissHistogramOk() (map[string]map[string]any, bool) { if o == nil || o.MissHistogram == nil { return nil, false } @@ -954,8 +954,8 @@ func (o *RealtimeMeasurements) HasMissHistogram() bool { return false } -// SetMissHistogram gets a reference to the given map[string]any and assigns it to the MissHistogram field. -func (o *RealtimeMeasurements) SetMissHistogram(v map[string]any) { +// SetMissHistogram gets a reference to the given map[string]map[string]any and assigns it to the MissHistogram field. +func (o *RealtimeMeasurements) SetMissHistogram(v map[string]map[string]any) { o.MissHistogram = v } diff --git a/fastly/model_recorded_timestamp.go b/fastly/model_recorded_timestamp.go new file mode 100644 index 00000000..08209084 --- /dev/null +++ b/fastly/model_recorded_timestamp.go @@ -0,0 +1,118 @@ +// Package fastly is an API client library for interacting with most facets of the Fastly API. +package fastly + +/* +Fastly API + +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://developer.fastly.com/reference/api/) + +API version: 1.0.0 +Contact: oss@fastly.com +*/ + +// This code is auto-generated; DO NOT EDIT. + + +import ( + "encoding/json" +) + +// RecordedTimestamp The Unix timestamp at which this record's data was generated. +type RecordedTimestamp struct { + AdditionalProperties map[string]any +} + +type _RecordedTimestamp RecordedTimestamp + +// NewRecordedTimestamp instantiates a new RecordedTimestamp object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewRecordedTimestamp() *RecordedTimestamp { + this := RecordedTimestamp{} + return &this +} + +// NewRecordedTimestampWithDefaults instantiates a new RecordedTimestamp object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewRecordedTimestampWithDefaults() *RecordedTimestamp { + this := RecordedTimestamp{} + return &this +} + +// MarshalJSON implements the json.Marshaler interface. +// Marshaler is the interface implemented by types that can marshal themselves into valid JSON. +func (o RecordedTimestamp) MarshalJSON() ([]byte, error) { + toSerialize := map[string]any{} + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return json.Marshal(toSerialize) +} + +// UnmarshalJSON implements the Unmarshaler interface. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +func (o *RecordedTimestamp) UnmarshalJSON(bytes []byte) (err error) { + varRecordedTimestamp := _RecordedTimestamp{} + + if err = json.Unmarshal(bytes, &varRecordedTimestamp); err == nil { + *o = RecordedTimestamp(varRecordedTimestamp) + } + + additionalProperties := make(map[string]any) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + o.AdditionalProperties = additionalProperties + } + + return err +} + +// NullableRecordedTimestamp is a helper abstraction for handling nullable recordedtimestamp types. +type NullableRecordedTimestamp struct { + value *RecordedTimestamp + isSet bool +} + +// Get returns the value. +func (v NullableRecordedTimestamp) Get() *RecordedTimestamp { + return v.value +} + +// Set modifies the value. +func (v *NullableRecordedTimestamp) Set(val *RecordedTimestamp) { + v.value = val + v.isSet = true +} + +// IsSet indicates if the value was set. +func (v NullableRecordedTimestamp) IsSet() bool { + return v.isSet +} + +// Unset removes the value. +func (v *NullableRecordedTimestamp) Unset() { + v.value = nil + v.isSet = false +} + +// NewNullableRecordedTimestamp returns a pointer to a new instance of NullableRecordedTimestamp. +func NewNullableRecordedTimestamp(val *RecordedTimestamp) *NullableRecordedTimestamp { + return &NullableRecordedTimestamp{value: val, isSet: true} +} + +// MarshalJSON implements the json.Marshaler interface. +// Marshaler is the interface implemented by types that can marshal themselves into valid JSON. +func (v NullableRecordedTimestamp) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +// UnmarshalJSON implements the Unmarshaler interface. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +func (v *NullableRecordedTimestamp) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/fastly/model_secret.go b/fastly/model_secret.go new file mode 100644 index 00000000..6be86b47 --- /dev/null +++ b/fastly/model_secret.go @@ -0,0 +1,242 @@ +// Package fastly is an API client library for interacting with most facets of the Fastly API. +package fastly + +/* +Fastly API + +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://developer.fastly.com/reference/api/) + +API version: 1.0.0 +Contact: oss@fastly.com +*/ + +// This code is auto-generated; DO NOT EDIT. + + +import ( + "encoding/json" +) + +// Secret struct for Secret +type Secret struct { + // A human-readable name for the secret. The value must contain only letters, numbers, dashes (`-`), underscores (`_`), and periods (`.`). + Name *string `json:"name,omitempty"` + // A Base64-encoded string containing either the secret or the encrypted secret (when using client_key). The maximum secret size (before Base64 encoding and optional local encryption) is 64KB. + Secret *string `json:"secret,omitempty"` + // The Base64-encoded string containing the client key used to encrypt the secret, if applicable. + ClientKey NullableString `json:"client_key,omitempty"` + AdditionalProperties map[string]any +} + +type _Secret Secret + +// NewSecret instantiates a new Secret object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewSecret() *Secret { + this := Secret{} + return &this +} + +// NewSecretWithDefaults instantiates a new Secret object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewSecretWithDefaults() *Secret { + this := Secret{} + return &this +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *Secret) GetName() string { + if o == nil || o.Name == nil { + var ret string + return ret + } + return *o.Name +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Secret) GetNameOk() (*string, bool) { + if o == nil || o.Name == nil { + return nil, false + } + return o.Name, true +} + +// HasName returns a boolean if a field has been set. +func (o *Secret) HasName() bool { + if o != nil && o.Name != nil { + return true + } + + return false +} + +// SetName gets a reference to the given string and assigns it to the Name field. +func (o *Secret) SetName(v string) { + o.Name = &v +} + +// GetSecret returns the Secret field value if set, zero value otherwise. +func (o *Secret) GetSecret() string { + if o == nil || o.Secret == nil { + var ret string + return ret + } + return *o.Secret +} + +// GetSecretOk returns a tuple with the Secret field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Secret) GetSecretOk() (*string, bool) { + if o == nil || o.Secret == nil { + return nil, false + } + return o.Secret, true +} + +// HasSecret returns a boolean if a field has been set. +func (o *Secret) HasSecret() bool { + if o != nil && o.Secret != nil { + return true + } + + return false +} + +// SetSecret gets a reference to the given string and assigns it to the Secret field. +func (o *Secret) SetSecret(v string) { + o.Secret = &v +} + +// GetClientKey returns the ClientKey field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Secret) GetClientKey() string { + if o == nil || o.ClientKey.Get() == nil { + var ret string + return ret + } + return *o.ClientKey.Get() +} + +// GetClientKeyOk returns a tuple with the ClientKey field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Secret) GetClientKeyOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.ClientKey.Get(), o.ClientKey.IsSet() +} + +// HasClientKey returns a boolean if a field has been set. +func (o *Secret) HasClientKey() bool { + if o != nil && o.ClientKey.IsSet() { + return true + } + + return false +} + +// SetClientKey gets a reference to the given NullableString and assigns it to the ClientKey field. +func (o *Secret) SetClientKey(v string) { + o.ClientKey.Set(&v) +} +// SetClientKeyNil sets the value for ClientKey to be an explicit nil +func (o *Secret) SetClientKeyNil() { + o.ClientKey.Set(nil) +} + +// UnsetClientKey ensures that no value is present for ClientKey, not even an explicit nil +func (o *Secret) UnsetClientKey() { + o.ClientKey.Unset() +} + +// MarshalJSON implements the json.Marshaler interface. +// Marshaler is the interface implemented by types that can marshal themselves into valid JSON. +func (o Secret) MarshalJSON() ([]byte, error) { + toSerialize := map[string]any{} + if o.Name != nil { + toSerialize["name"] = o.Name + } + if o.Secret != nil { + toSerialize["secret"] = o.Secret + } + if o.ClientKey.IsSet() { + toSerialize["client_key"] = o.ClientKey.Get() + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return json.Marshal(toSerialize) +} + +// UnmarshalJSON implements the Unmarshaler interface. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +func (o *Secret) UnmarshalJSON(bytes []byte) (err error) { + varSecret := _Secret{} + + if err = json.Unmarshal(bytes, &varSecret); err == nil { + *o = Secret(varSecret) + } + + additionalProperties := make(map[string]any) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "name") + delete(additionalProperties, "secret") + delete(additionalProperties, "client_key") + o.AdditionalProperties = additionalProperties + } + + return err +} + +// NullableSecret is a helper abstraction for handling nullable secret types. +type NullableSecret struct { + value *Secret + isSet bool +} + +// Get returns the value. +func (v NullableSecret) Get() *Secret { + return v.value +} + +// Set modifies the value. +func (v *NullableSecret) Set(val *Secret) { + v.value = val + v.isSet = true +} + +// IsSet indicates if the value was set. +func (v NullableSecret) IsSet() bool { + return v.isSet +} + +// Unset removes the value. +func (v *NullableSecret) Unset() { + v.value = nil + v.isSet = false +} + +// NewNullableSecret returns a pointer to a new instance of NullableSecret. +func NewNullableSecret(val *Secret) *NullableSecret { + return &NullableSecret{value: val, isSet: true} +} + +// MarshalJSON implements the json.Marshaler interface. +// Marshaler is the interface implemented by types that can marshal themselves into valid JSON. +func (v NullableSecret) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +// UnmarshalJSON implements the Unmarshaler interface. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +func (v *NullableSecret) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/fastly/model_secret_response.go b/fastly/model_secret_response.go new file mode 100644 index 00000000..1ac46628 --- /dev/null +++ b/fastly/model_secret_response.go @@ -0,0 +1,291 @@ +// Package fastly is an API client library for interacting with most facets of the Fastly API. +package fastly + +/* +Fastly API + +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://developer.fastly.com/reference/api/) + +API version: 1.0.0 +Contact: oss@fastly.com +*/ + +// This code is auto-generated; DO NOT EDIT. + + +import ( + "encoding/json" + "time" +) + +// SecretResponse struct for SecretResponse +type SecretResponse struct { + // Name of the secret. + Name *string `json:"name,omitempty"` + // An opaque identifier of the plaintext secret value. This can be used to determine if a secret value has changed. + Digest *string `json:"digest,omitempty"` + // Date and time in ISO 8601 format. + CreatedAt NullableTime `json:"created_at,omitempty"` + // True if the secret replaced a secret with the same name. + Recreated NullableBool `json:"recreated,omitempty"` + AdditionalProperties map[string]any +} + +type _SecretResponse SecretResponse + +// NewSecretResponse instantiates a new SecretResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewSecretResponse() *SecretResponse { + this := SecretResponse{} + return &this +} + +// NewSecretResponseWithDefaults instantiates a new SecretResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewSecretResponseWithDefaults() *SecretResponse { + this := SecretResponse{} + return &this +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *SecretResponse) GetName() string { + if o == nil || o.Name == nil { + var ret string + return ret + } + return *o.Name +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SecretResponse) GetNameOk() (*string, bool) { + if o == nil || o.Name == nil { + return nil, false + } + return o.Name, true +} + +// HasName returns a boolean if a field has been set. +func (o *SecretResponse) HasName() bool { + if o != nil && o.Name != nil { + return true + } + + return false +} + +// SetName gets a reference to the given string and assigns it to the Name field. +func (o *SecretResponse) SetName(v string) { + o.Name = &v +} + +// GetDigest returns the Digest field value if set, zero value otherwise. +func (o *SecretResponse) GetDigest() string { + if o == nil || o.Digest == nil { + var ret string + return ret + } + return *o.Digest +} + +// GetDigestOk returns a tuple with the Digest field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SecretResponse) GetDigestOk() (*string, bool) { + if o == nil || o.Digest == nil { + return nil, false + } + return o.Digest, true +} + +// HasDigest returns a boolean if a field has been set. +func (o *SecretResponse) HasDigest() bool { + if o != nil && o.Digest != nil { + return true + } + + return false +} + +// SetDigest gets a reference to the given string and assigns it to the Digest field. +func (o *SecretResponse) SetDigest(v string) { + o.Digest = &v +} + +// GetCreatedAt returns the CreatedAt field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *SecretResponse) GetCreatedAt() time.Time { + if o == nil || o.CreatedAt.Get() == nil { + var ret time.Time + return ret + } + return *o.CreatedAt.Get() +} + +// GetCreatedAtOk returns a tuple with the CreatedAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *SecretResponse) GetCreatedAtOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.CreatedAt.Get(), o.CreatedAt.IsSet() +} + +// HasCreatedAt returns a boolean if a field has been set. +func (o *SecretResponse) HasCreatedAt() bool { + if o != nil && o.CreatedAt.IsSet() { + return true + } + + return false +} + +// SetCreatedAt gets a reference to the given NullableTime and assigns it to the CreatedAt field. +func (o *SecretResponse) SetCreatedAt(v time.Time) { + o.CreatedAt.Set(&v) +} +// SetCreatedAtNil sets the value for CreatedAt to be an explicit nil +func (o *SecretResponse) SetCreatedAtNil() { + o.CreatedAt.Set(nil) +} + +// UnsetCreatedAt ensures that no value is present for CreatedAt, not even an explicit nil +func (o *SecretResponse) UnsetCreatedAt() { + o.CreatedAt.Unset() +} + +// GetRecreated returns the Recreated field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *SecretResponse) GetRecreated() bool { + if o == nil || o.Recreated.Get() == nil { + var ret bool + return ret + } + return *o.Recreated.Get() +} + +// GetRecreatedOk returns a tuple with the Recreated field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *SecretResponse) GetRecreatedOk() (*bool, bool) { + if o == nil { + return nil, false + } + return o.Recreated.Get(), o.Recreated.IsSet() +} + +// HasRecreated returns a boolean if a field has been set. +func (o *SecretResponse) HasRecreated() bool { + if o != nil && o.Recreated.IsSet() { + return true + } + + return false +} + +// SetRecreated gets a reference to the given NullableBool and assigns it to the Recreated field. +func (o *SecretResponse) SetRecreated(v bool) { + o.Recreated.Set(&v) +} +// SetRecreatedNil sets the value for Recreated to be an explicit nil +func (o *SecretResponse) SetRecreatedNil() { + o.Recreated.Set(nil) +} + +// UnsetRecreated ensures that no value is present for Recreated, not even an explicit nil +func (o *SecretResponse) UnsetRecreated() { + o.Recreated.Unset() +} + +// MarshalJSON implements the json.Marshaler interface. +// Marshaler is the interface implemented by types that can marshal themselves into valid JSON. +func (o SecretResponse) MarshalJSON() ([]byte, error) { + toSerialize := map[string]any{} + if o.Name != nil { + toSerialize["name"] = o.Name + } + if o.Digest != nil { + toSerialize["digest"] = o.Digest + } + if o.CreatedAt.IsSet() { + toSerialize["created_at"] = o.CreatedAt.Get() + } + if o.Recreated.IsSet() { + toSerialize["recreated"] = o.Recreated.Get() + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return json.Marshal(toSerialize) +} + +// UnmarshalJSON implements the Unmarshaler interface. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +func (o *SecretResponse) UnmarshalJSON(bytes []byte) (err error) { + varSecretResponse := _SecretResponse{} + + if err = json.Unmarshal(bytes, &varSecretResponse); err == nil { + *o = SecretResponse(varSecretResponse) + } + + additionalProperties := make(map[string]any) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "name") + delete(additionalProperties, "digest") + delete(additionalProperties, "created_at") + delete(additionalProperties, "recreated") + o.AdditionalProperties = additionalProperties + } + + return err +} + +// NullableSecretResponse is a helper abstraction for handling nullable secretresponse types. +type NullableSecretResponse struct { + value *SecretResponse + isSet bool +} + +// Get returns the value. +func (v NullableSecretResponse) Get() *SecretResponse { + return v.value +} + +// Set modifies the value. +func (v *NullableSecretResponse) Set(val *SecretResponse) { + v.value = val + v.isSet = true +} + +// IsSet indicates if the value was set. +func (v NullableSecretResponse) IsSet() bool { + return v.isSet +} + +// Unset removes the value. +func (v *NullableSecretResponse) Unset() { + v.value = nil + v.isSet = false +} + +// NewNullableSecretResponse returns a pointer to a new instance of NullableSecretResponse. +func NewNullableSecretResponse(val *SecretResponse) *NullableSecretResponse { + return &NullableSecretResponse{value: val, isSet: true} +} + +// MarshalJSON implements the json.Marshaler interface. +// Marshaler is the interface implemented by types that can marshal themselves into valid JSON. +func (v NullableSecretResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +// UnmarshalJSON implements the Unmarshaler interface. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +func (v *NullableSecretResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/fastly/model_secret_store.go b/fastly/model_secret_store.go new file mode 100644 index 00000000..ba2f2214 --- /dev/null +++ b/fastly/model_secret_store.go @@ -0,0 +1,156 @@ +// Package fastly is an API client library for interacting with most facets of the Fastly API. +package fastly + +/* +Fastly API + +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://developer.fastly.com/reference/api/) + +API version: 1.0.0 +Contact: oss@fastly.com +*/ + +// This code is auto-generated; DO NOT EDIT. + + +import ( + "encoding/json" +) + +// SecretStore struct for SecretStore +type SecretStore struct { + // A human-readable name for the store. The value must contain only letters, numbers, dashes (`-`), underscores (`_`), or periods (`.`). + Name *string `json:"name,omitempty"` + AdditionalProperties map[string]any +} + +type _SecretStore SecretStore + +// NewSecretStore instantiates a new SecretStore object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewSecretStore() *SecretStore { + this := SecretStore{} + return &this +} + +// NewSecretStoreWithDefaults instantiates a new SecretStore object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewSecretStoreWithDefaults() *SecretStore { + this := SecretStore{} + return &this +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *SecretStore) GetName() string { + if o == nil || o.Name == nil { + var ret string + return ret + } + return *o.Name +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SecretStore) GetNameOk() (*string, bool) { + if o == nil || o.Name == nil { + return nil, false + } + return o.Name, true +} + +// HasName returns a boolean if a field has been set. +func (o *SecretStore) HasName() bool { + if o != nil && o.Name != nil { + return true + } + + return false +} + +// SetName gets a reference to the given string and assigns it to the Name field. +func (o *SecretStore) SetName(v string) { + o.Name = &v +} + +// MarshalJSON implements the json.Marshaler interface. +// Marshaler is the interface implemented by types that can marshal themselves into valid JSON. +func (o SecretStore) MarshalJSON() ([]byte, error) { + toSerialize := map[string]any{} + if o.Name != nil { + toSerialize["name"] = o.Name + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return json.Marshal(toSerialize) +} + +// UnmarshalJSON implements the Unmarshaler interface. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +func (o *SecretStore) UnmarshalJSON(bytes []byte) (err error) { + varSecretStore := _SecretStore{} + + if err = json.Unmarshal(bytes, &varSecretStore); err == nil { + *o = SecretStore(varSecretStore) + } + + additionalProperties := make(map[string]any) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "name") + o.AdditionalProperties = additionalProperties + } + + return err +} + +// NullableSecretStore is a helper abstraction for handling nullable secretstore types. +type NullableSecretStore struct { + value *SecretStore + isSet bool +} + +// Get returns the value. +func (v NullableSecretStore) Get() *SecretStore { + return v.value +} + +// Set modifies the value. +func (v *NullableSecretStore) Set(val *SecretStore) { + v.value = val + v.isSet = true +} + +// IsSet indicates if the value was set. +func (v NullableSecretStore) IsSet() bool { + return v.isSet +} + +// Unset removes the value. +func (v *NullableSecretStore) Unset() { + v.value = nil + v.isSet = false +} + +// NewNullableSecretStore returns a pointer to a new instance of NullableSecretStore. +func NewNullableSecretStore(val *SecretStore) *NullableSecretStore { + return &NullableSecretStore{value: val, isSet: true} +} + +// MarshalJSON implements the json.Marshaler interface. +// Marshaler is the interface implemented by types that can marshal themselves into valid JSON. +func (v NullableSecretStore) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +// UnmarshalJSON implements the Unmarshaler interface. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +func (v *NullableSecretStore) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/fastly/model_secret_store_response.go b/fastly/model_secret_store_response.go new file mode 100644 index 00000000..8b085109 --- /dev/null +++ b/fastly/model_secret_store_response.go @@ -0,0 +1,243 @@ +// Package fastly is an API client library for interacting with most facets of the Fastly API. +package fastly + +/* +Fastly API + +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://developer.fastly.com/reference/api/) + +API version: 1.0.0 +Contact: oss@fastly.com +*/ + +// This code is auto-generated; DO NOT EDIT. + + +import ( + "encoding/json" + "time" +) + +// SecretStoreResponse struct for SecretStoreResponse +type SecretStoreResponse struct { + // ID of the store. + ID *string `json:"id,omitempty"` + // A human-readable name for the store. + Name *string `json:"name,omitempty"` + // Date and time in ISO 8601 format. + CreatedAt NullableTime `json:"created_at,omitempty"` + AdditionalProperties map[string]any +} + +type _SecretStoreResponse SecretStoreResponse + +// NewSecretStoreResponse instantiates a new SecretStoreResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewSecretStoreResponse() *SecretStoreResponse { + this := SecretStoreResponse{} + return &this +} + +// NewSecretStoreResponseWithDefaults instantiates a new SecretStoreResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewSecretStoreResponseWithDefaults() *SecretStoreResponse { + this := SecretStoreResponse{} + return &this +} + +// GetID returns the ID field value if set, zero value otherwise. +func (o *SecretStoreResponse) GetID() string { + if o == nil || o.ID == nil { + var ret string + return ret + } + return *o.ID +} + +// GetIDOk returns a tuple with the ID field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SecretStoreResponse) GetIDOk() (*string, bool) { + if o == nil || o.ID == nil { + return nil, false + } + return o.ID, true +} + +// HasID returns a boolean if a field has been set. +func (o *SecretStoreResponse) HasID() bool { + if o != nil && o.ID != nil { + return true + } + + return false +} + +// SetID gets a reference to the given string and assigns it to the ID field. +func (o *SecretStoreResponse) SetID(v string) { + o.ID = &v +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *SecretStoreResponse) GetName() string { + if o == nil || o.Name == nil { + var ret string + return ret + } + return *o.Name +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SecretStoreResponse) GetNameOk() (*string, bool) { + if o == nil || o.Name == nil { + return nil, false + } + return o.Name, true +} + +// HasName returns a boolean if a field has been set. +func (o *SecretStoreResponse) HasName() bool { + if o != nil && o.Name != nil { + return true + } + + return false +} + +// SetName gets a reference to the given string and assigns it to the Name field. +func (o *SecretStoreResponse) SetName(v string) { + o.Name = &v +} + +// GetCreatedAt returns the CreatedAt field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *SecretStoreResponse) GetCreatedAt() time.Time { + if o == nil || o.CreatedAt.Get() == nil { + var ret time.Time + return ret + } + return *o.CreatedAt.Get() +} + +// GetCreatedAtOk returns a tuple with the CreatedAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *SecretStoreResponse) GetCreatedAtOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.CreatedAt.Get(), o.CreatedAt.IsSet() +} + +// HasCreatedAt returns a boolean if a field has been set. +func (o *SecretStoreResponse) HasCreatedAt() bool { + if o != nil && o.CreatedAt.IsSet() { + return true + } + + return false +} + +// SetCreatedAt gets a reference to the given NullableTime and assigns it to the CreatedAt field. +func (o *SecretStoreResponse) SetCreatedAt(v time.Time) { + o.CreatedAt.Set(&v) +} +// SetCreatedAtNil sets the value for CreatedAt to be an explicit nil +func (o *SecretStoreResponse) SetCreatedAtNil() { + o.CreatedAt.Set(nil) +} + +// UnsetCreatedAt ensures that no value is present for CreatedAt, not even an explicit nil +func (o *SecretStoreResponse) UnsetCreatedAt() { + o.CreatedAt.Unset() +} + +// MarshalJSON implements the json.Marshaler interface. +// Marshaler is the interface implemented by types that can marshal themselves into valid JSON. +func (o SecretStoreResponse) MarshalJSON() ([]byte, error) { + toSerialize := map[string]any{} + if o.ID != nil { + toSerialize["id"] = o.ID + } + if o.Name != nil { + toSerialize["name"] = o.Name + } + if o.CreatedAt.IsSet() { + toSerialize["created_at"] = o.CreatedAt.Get() + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return json.Marshal(toSerialize) +} + +// UnmarshalJSON implements the Unmarshaler interface. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +func (o *SecretStoreResponse) UnmarshalJSON(bytes []byte) (err error) { + varSecretStoreResponse := _SecretStoreResponse{} + + if err = json.Unmarshal(bytes, &varSecretStoreResponse); err == nil { + *o = SecretStoreResponse(varSecretStoreResponse) + } + + additionalProperties := make(map[string]any) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "id") + delete(additionalProperties, "name") + delete(additionalProperties, "created_at") + o.AdditionalProperties = additionalProperties + } + + return err +} + +// NullableSecretStoreResponse is a helper abstraction for handling nullable secretstoreresponse types. +type NullableSecretStoreResponse struct { + value *SecretStoreResponse + isSet bool +} + +// Get returns the value. +func (v NullableSecretStoreResponse) Get() *SecretStoreResponse { + return v.value +} + +// Set modifies the value. +func (v *NullableSecretStoreResponse) Set(val *SecretStoreResponse) { + v.value = val + v.isSet = true +} + +// IsSet indicates if the value was set. +func (v NullableSecretStoreResponse) IsSet() bool { + return v.isSet +} + +// Unset removes the value. +func (v *NullableSecretStoreResponse) Unset() { + v.value = nil + v.isSet = false +} + +// NewNullableSecretStoreResponse returns a pointer to a new instance of NullableSecretStoreResponse. +func NewNullableSecretStoreResponse(val *SecretStoreResponse) *NullableSecretStoreResponse { + return &NullableSecretStoreResponse{value: val, isSet: true} +} + +// MarshalJSON implements the json.Marshaler interface. +// Marshaler is the interface implemented by types that can marshal themselves into valid JSON. +func (v NullableSecretStoreResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +// UnmarshalJSON implements the Unmarshaler interface. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +func (v *NullableSecretStoreResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/fastly/model_signing_key.go b/fastly/model_signing_key.go new file mode 100644 index 00000000..bacfcc1e --- /dev/null +++ b/fastly/model_signing_key.go @@ -0,0 +1,156 @@ +// Package fastly is an API client library for interacting with most facets of the Fastly API. +package fastly + +/* +Fastly API + +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://developer.fastly.com/reference/api/) + +API version: 1.0.0 +Contact: oss@fastly.com +*/ + +// This code is auto-generated; DO NOT EDIT. + + +import ( + "encoding/json" +) + +// SigningKey Used to verify signatures of client keys. +type SigningKey struct { + // A Base64-encoded Ed25519 public key that can be used to verify signatures of client keys. + SigningKey *string `json:"signing_key,omitempty"` + AdditionalProperties map[string]any +} + +type _SigningKey SigningKey + +// NewSigningKey instantiates a new SigningKey object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewSigningKey() *SigningKey { + this := SigningKey{} + return &this +} + +// NewSigningKeyWithDefaults instantiates a new SigningKey object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewSigningKeyWithDefaults() *SigningKey { + this := SigningKey{} + return &this +} + +// GetSigningKey returns the SigningKey field value if set, zero value otherwise. +func (o *SigningKey) GetSigningKey() string { + if o == nil || o.SigningKey == nil { + var ret string + return ret + } + return *o.SigningKey +} + +// GetSigningKeyOk returns a tuple with the SigningKey field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SigningKey) GetSigningKeyOk() (*string, bool) { + if o == nil || o.SigningKey == nil { + return nil, false + } + return o.SigningKey, true +} + +// HasSigningKey returns a boolean if a field has been set. +func (o *SigningKey) HasSigningKey() bool { + if o != nil && o.SigningKey != nil { + return true + } + + return false +} + +// SetSigningKey gets a reference to the given string and assigns it to the SigningKey field. +func (o *SigningKey) SetSigningKey(v string) { + o.SigningKey = &v +} + +// MarshalJSON implements the json.Marshaler interface. +// Marshaler is the interface implemented by types that can marshal themselves into valid JSON. +func (o SigningKey) MarshalJSON() ([]byte, error) { + toSerialize := map[string]any{} + if o.SigningKey != nil { + toSerialize["signing_key"] = o.SigningKey + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return json.Marshal(toSerialize) +} + +// UnmarshalJSON implements the Unmarshaler interface. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +func (o *SigningKey) UnmarshalJSON(bytes []byte) (err error) { + varSigningKey := _SigningKey{} + + if err = json.Unmarshal(bytes, &varSigningKey); err == nil { + *o = SigningKey(varSigningKey) + } + + additionalProperties := make(map[string]any) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "signing_key") + o.AdditionalProperties = additionalProperties + } + + return err +} + +// NullableSigningKey is a helper abstraction for handling nullable signingkey types. +type NullableSigningKey struct { + value *SigningKey + isSet bool +} + +// Get returns the value. +func (v NullableSigningKey) Get() *SigningKey { + return v.value +} + +// Set modifies the value. +func (v *NullableSigningKey) Set(val *SigningKey) { + v.value = val + v.isSet = true +} + +// IsSet indicates if the value was set. +func (v NullableSigningKey) IsSet() bool { + return v.isSet +} + +// Unset removes the value. +func (v *NullableSigningKey) Unset() { + v.value = nil + v.isSet = false +} + +// NewNullableSigningKey returns a pointer to a new instance of NullableSigningKey. +func NewNullableSigningKey(val *SigningKey) *NullableSigningKey { + return &NullableSigningKey{value: val, isSet: true} +} + +// MarshalJSON implements the json.Marshaler interface. +// Marshaler is the interface implemented by types that can marshal themselves into valid JSON. +func (v NullableSigningKey) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +// UnmarshalJSON implements the Unmarshaler interface. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +func (v *NullableSigningKey) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/fastly/model_subsequent_request_timestamp.go b/fastly/model_subsequent_request_timestamp.go new file mode 100644 index 00000000..eb751502 --- /dev/null +++ b/fastly/model_subsequent_request_timestamp.go @@ -0,0 +1,118 @@ +// Package fastly is an API client library for interacting with most facets of the Fastly API. +package fastly + +/* +Fastly API + +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://developer.fastly.com/reference/api/) + +API version: 1.0.0 +Contact: oss@fastly.com +*/ + +// This code is auto-generated; DO NOT EDIT. + + +import ( + "encoding/json" +) + +// SubsequentRequestTimestamp Value to use for subsequent requests. +type SubsequentRequestTimestamp struct { + AdditionalProperties map[string]any +} + +type _SubsequentRequestTimestamp SubsequentRequestTimestamp + +// NewSubsequentRequestTimestamp instantiates a new SubsequentRequestTimestamp object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewSubsequentRequestTimestamp() *SubsequentRequestTimestamp { + this := SubsequentRequestTimestamp{} + return &this +} + +// NewSubsequentRequestTimestampWithDefaults instantiates a new SubsequentRequestTimestamp object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewSubsequentRequestTimestampWithDefaults() *SubsequentRequestTimestamp { + this := SubsequentRequestTimestamp{} + return &this +} + +// MarshalJSON implements the json.Marshaler interface. +// Marshaler is the interface implemented by types that can marshal themselves into valid JSON. +func (o SubsequentRequestTimestamp) MarshalJSON() ([]byte, error) { + toSerialize := map[string]any{} + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return json.Marshal(toSerialize) +} + +// UnmarshalJSON implements the Unmarshaler interface. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +func (o *SubsequentRequestTimestamp) UnmarshalJSON(bytes []byte) (err error) { + varSubsequentRequestTimestamp := _SubsequentRequestTimestamp{} + + if err = json.Unmarshal(bytes, &varSubsequentRequestTimestamp); err == nil { + *o = SubsequentRequestTimestamp(varSubsequentRequestTimestamp) + } + + additionalProperties := make(map[string]any) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + o.AdditionalProperties = additionalProperties + } + + return err +} + +// NullableSubsequentRequestTimestamp is a helper abstraction for handling nullable subsequentrequesttimestamp types. +type NullableSubsequentRequestTimestamp struct { + value *SubsequentRequestTimestamp + isSet bool +} + +// Get returns the value. +func (v NullableSubsequentRequestTimestamp) Get() *SubsequentRequestTimestamp { + return v.value +} + +// Set modifies the value. +func (v *NullableSubsequentRequestTimestamp) Set(val *SubsequentRequestTimestamp) { + v.value = val + v.isSet = true +} + +// IsSet indicates if the value was set. +func (v NullableSubsequentRequestTimestamp) IsSet() bool { + return v.isSet +} + +// Unset removes the value. +func (v *NullableSubsequentRequestTimestamp) Unset() { + v.value = nil + v.isSet = false +} + +// NewNullableSubsequentRequestTimestamp returns a pointer to a new instance of NullableSubsequentRequestTimestamp. +func NewNullableSubsequentRequestTimestamp(val *SubsequentRequestTimestamp) *NullableSubsequentRequestTimestamp { + return &NullableSubsequentRequestTimestamp{value: val, isSet: true} +} + +// MarshalJSON implements the json.Marshaler interface. +// Marshaler is the interface implemented by types that can marshal themselves into valid JSON. +func (v NullableSubsequentRequestTimestamp) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +// UnmarshalJSON implements the Unmarshaler interface. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +func (v *NullableSubsequentRequestTimestamp) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/fastly/model_sudo_generic_token_error.go b/fastly/model_sudo_generic_token_error.go new file mode 100644 index 00000000..448d5a98 --- /dev/null +++ b/fastly/model_sudo_generic_token_error.go @@ -0,0 +1,155 @@ +// Package fastly is an API client library for interacting with most facets of the Fastly API. +package fastly + +/* +Fastly API + +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://developer.fastly.com/reference/api/) + +API version: 1.0.0 +Contact: oss@fastly.com +*/ + +// This code is auto-generated; DO NOT EDIT. + + +import ( + "encoding/json" +) + +// SudoGenericTokenError struct for SudoGenericTokenError +type SudoGenericTokenError struct { + Msg *string `json:"msg,omitempty"` + AdditionalProperties map[string]any +} + +type _SudoGenericTokenError SudoGenericTokenError + +// NewSudoGenericTokenError instantiates a new SudoGenericTokenError object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewSudoGenericTokenError() *SudoGenericTokenError { + this := SudoGenericTokenError{} + return &this +} + +// NewSudoGenericTokenErrorWithDefaults instantiates a new SudoGenericTokenError object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewSudoGenericTokenErrorWithDefaults() *SudoGenericTokenError { + this := SudoGenericTokenError{} + return &this +} + +// GetMsg returns the Msg field value if set, zero value otherwise. +func (o *SudoGenericTokenError) GetMsg() string { + if o == nil || o.Msg == nil { + var ret string + return ret + } + return *o.Msg +} + +// GetMsgOk returns a tuple with the Msg field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SudoGenericTokenError) GetMsgOk() (*string, bool) { + if o == nil || o.Msg == nil { + return nil, false + } + return o.Msg, true +} + +// HasMsg returns a boolean if a field has been set. +func (o *SudoGenericTokenError) HasMsg() bool { + if o != nil && o.Msg != nil { + return true + } + + return false +} + +// SetMsg gets a reference to the given string and assigns it to the Msg field. +func (o *SudoGenericTokenError) SetMsg(v string) { + o.Msg = &v +} + +// MarshalJSON implements the json.Marshaler interface. +// Marshaler is the interface implemented by types that can marshal themselves into valid JSON. +func (o SudoGenericTokenError) MarshalJSON() ([]byte, error) { + toSerialize := map[string]any{} + if o.Msg != nil { + toSerialize["msg"] = o.Msg + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return json.Marshal(toSerialize) +} + +// UnmarshalJSON implements the Unmarshaler interface. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +func (o *SudoGenericTokenError) UnmarshalJSON(bytes []byte) (err error) { + varSudoGenericTokenError := _SudoGenericTokenError{} + + if err = json.Unmarshal(bytes, &varSudoGenericTokenError); err == nil { + *o = SudoGenericTokenError(varSudoGenericTokenError) + } + + additionalProperties := make(map[string]any) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "msg") + o.AdditionalProperties = additionalProperties + } + + return err +} + +// NullableSudoGenericTokenError is a helper abstraction for handling nullable sudogenerictokenerror types. +type NullableSudoGenericTokenError struct { + value *SudoGenericTokenError + isSet bool +} + +// Get returns the value. +func (v NullableSudoGenericTokenError) Get() *SudoGenericTokenError { + return v.value +} + +// Set modifies the value. +func (v *NullableSudoGenericTokenError) Set(val *SudoGenericTokenError) { + v.value = val + v.isSet = true +} + +// IsSet indicates if the value was set. +func (v NullableSudoGenericTokenError) IsSet() bool { + return v.isSet +} + +// Unset removes the value. +func (v *NullableSudoGenericTokenError) Unset() { + v.value = nil + v.isSet = false +} + +// NewNullableSudoGenericTokenError returns a pointer to a new instance of NullableSudoGenericTokenError. +func NewNullableSudoGenericTokenError(val *SudoGenericTokenError) *NullableSudoGenericTokenError { + return &NullableSudoGenericTokenError{value: val, isSet: true} +} + +// MarshalJSON implements the json.Marshaler interface. +// Marshaler is the interface implemented by types that can marshal themselves into valid JSON. +func (v NullableSudoGenericTokenError) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +// UnmarshalJSON implements the Unmarshaler interface. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +func (v *NullableSudoGenericTokenError) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/fastly/model_sudo_request.go b/fastly/model_sudo_request.go new file mode 100644 index 00000000..a16080f1 --- /dev/null +++ b/fastly/model_sudo_request.go @@ -0,0 +1,215 @@ +// Package fastly is an API client library for interacting with most facets of the Fastly API. +package fastly + +/* +Fastly API + +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://developer.fastly.com/reference/api/) + +API version: 1.0.0 +Contact: oss@fastly.com +*/ + +// This code is auto-generated; DO NOT EDIT. + + +import ( + "encoding/json" +) + +// SudoRequest struct for SudoRequest +type SudoRequest struct { + Username string `json:"username"` + Password string `json:"password"` + ExpiryTime *string `json:"expiry_time,omitempty"` + AdditionalProperties map[string]any +} + +type _SudoRequest SudoRequest + +// NewSudoRequest instantiates a new SudoRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewSudoRequest(username string, password string) *SudoRequest { + this := SudoRequest{} + this.Username = username + this.Password = password + return &this +} + +// NewSudoRequestWithDefaults instantiates a new SudoRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewSudoRequestWithDefaults() *SudoRequest { + this := SudoRequest{} + return &this +} + +// GetUsername returns the Username field value +func (o *SudoRequest) GetUsername() string { + if o == nil { + var ret string + return ret + } + + return o.Username +} + +// GetUsernameOk returns a tuple with the Username field value +// and a boolean to check if the value has been set. +func (o *SudoRequest) GetUsernameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Username, true +} + +// SetUsername sets field value +func (o *SudoRequest) SetUsername(v string) { + o.Username = v +} + +// GetPassword returns the Password field value +func (o *SudoRequest) GetPassword() string { + if o == nil { + var ret string + return ret + } + + return o.Password +} + +// GetPasswordOk returns a tuple with the Password field value +// and a boolean to check if the value has been set. +func (o *SudoRequest) GetPasswordOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Password, true +} + +// SetPassword sets field value +func (o *SudoRequest) SetPassword(v string) { + o.Password = v +} + +// GetExpiryTime returns the ExpiryTime field value if set, zero value otherwise. +func (o *SudoRequest) GetExpiryTime() string { + if o == nil || o.ExpiryTime == nil { + var ret string + return ret + } + return *o.ExpiryTime +} + +// GetExpiryTimeOk returns a tuple with the ExpiryTime field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SudoRequest) GetExpiryTimeOk() (*string, bool) { + if o == nil || o.ExpiryTime == nil { + return nil, false + } + return o.ExpiryTime, true +} + +// HasExpiryTime returns a boolean if a field has been set. +func (o *SudoRequest) HasExpiryTime() bool { + if o != nil && o.ExpiryTime != nil { + return true + } + + return false +} + +// SetExpiryTime gets a reference to the given string and assigns it to the ExpiryTime field. +func (o *SudoRequest) SetExpiryTime(v string) { + o.ExpiryTime = &v +} + +// MarshalJSON implements the json.Marshaler interface. +// Marshaler is the interface implemented by types that can marshal themselves into valid JSON. +func (o SudoRequest) MarshalJSON() ([]byte, error) { + toSerialize := map[string]any{} + if true { + toSerialize["username"] = o.Username + } + if true { + toSerialize["password"] = o.Password + } + if o.ExpiryTime != nil { + toSerialize["expiry_time"] = o.ExpiryTime + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return json.Marshal(toSerialize) +} + +// UnmarshalJSON implements the Unmarshaler interface. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +func (o *SudoRequest) UnmarshalJSON(bytes []byte) (err error) { + varSudoRequest := _SudoRequest{} + + if err = json.Unmarshal(bytes, &varSudoRequest); err == nil { + *o = SudoRequest(varSudoRequest) + } + + additionalProperties := make(map[string]any) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "username") + delete(additionalProperties, "password") + delete(additionalProperties, "expiry_time") + o.AdditionalProperties = additionalProperties + } + + return err +} + +// NullableSudoRequest is a helper abstraction for handling nullable sudorequest types. +type NullableSudoRequest struct { + value *SudoRequest + isSet bool +} + +// Get returns the value. +func (v NullableSudoRequest) Get() *SudoRequest { + return v.value +} + +// Set modifies the value. +func (v *NullableSudoRequest) Set(val *SudoRequest) { + v.value = val + v.isSet = true +} + +// IsSet indicates if the value was set. +func (v NullableSudoRequest) IsSet() bool { + return v.isSet +} + +// Unset removes the value. +func (v *NullableSudoRequest) Unset() { + v.value = nil + v.isSet = false +} + +// NewNullableSudoRequest returns a pointer to a new instance of NullableSudoRequest. +func NewNullableSudoRequest(val *SudoRequest) *NullableSudoRequest { + return &NullableSudoRequest{value: val, isSet: true} +} + +// MarshalJSON implements the json.Marshaler interface. +// Marshaler is the interface implemented by types that can marshal themselves into valid JSON. +func (v NullableSudoRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +// UnmarshalJSON implements the Unmarshaler interface. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +func (v *NullableSudoRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/fastly/model_sudo_response.go b/fastly/model_sudo_response.go new file mode 100644 index 00000000..ffc24a48 --- /dev/null +++ b/fastly/model_sudo_response.go @@ -0,0 +1,157 @@ +// Package fastly is an API client library for interacting with most facets of the Fastly API. +package fastly + +/* +Fastly API + +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://developer.fastly.com/reference/api/) + +API version: 1.0.0 +Contact: oss@fastly.com +*/ + +// This code is auto-generated; DO NOT EDIT. + + +import ( + "encoding/json" + "time" +) + +// SudoResponse struct for SudoResponse +type SudoResponse struct { + // A UTC time-stamp of when sudo access will expire. If blank, sudo access expires five minutes after the request. + ExpiryTime *time.Time `json:"expiry_time,omitempty"` + AdditionalProperties map[string]any +} + +type _SudoResponse SudoResponse + +// NewSudoResponse instantiates a new SudoResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewSudoResponse() *SudoResponse { + this := SudoResponse{} + return &this +} + +// NewSudoResponseWithDefaults instantiates a new SudoResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewSudoResponseWithDefaults() *SudoResponse { + this := SudoResponse{} + return &this +} + +// GetExpiryTime returns the ExpiryTime field value if set, zero value otherwise. +func (o *SudoResponse) GetExpiryTime() time.Time { + if o == nil || o.ExpiryTime == nil { + var ret time.Time + return ret + } + return *o.ExpiryTime +} + +// GetExpiryTimeOk returns a tuple with the ExpiryTime field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SudoResponse) GetExpiryTimeOk() (*time.Time, bool) { + if o == nil || o.ExpiryTime == nil { + return nil, false + } + return o.ExpiryTime, true +} + +// HasExpiryTime returns a boolean if a field has been set. +func (o *SudoResponse) HasExpiryTime() bool { + if o != nil && o.ExpiryTime != nil { + return true + } + + return false +} + +// SetExpiryTime gets a reference to the given time.Time and assigns it to the ExpiryTime field. +func (o *SudoResponse) SetExpiryTime(v time.Time) { + o.ExpiryTime = &v +} + +// MarshalJSON implements the json.Marshaler interface. +// Marshaler is the interface implemented by types that can marshal themselves into valid JSON. +func (o SudoResponse) MarshalJSON() ([]byte, error) { + toSerialize := map[string]any{} + if o.ExpiryTime != nil { + toSerialize["expiry_time"] = o.ExpiryTime + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return json.Marshal(toSerialize) +} + +// UnmarshalJSON implements the Unmarshaler interface. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +func (o *SudoResponse) UnmarshalJSON(bytes []byte) (err error) { + varSudoResponse := _SudoResponse{} + + if err = json.Unmarshal(bytes, &varSudoResponse); err == nil { + *o = SudoResponse(varSudoResponse) + } + + additionalProperties := make(map[string]any) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "expiry_time") + o.AdditionalProperties = additionalProperties + } + + return err +} + +// NullableSudoResponse is a helper abstraction for handling nullable sudoresponse types. +type NullableSudoResponse struct { + value *SudoResponse + isSet bool +} + +// Get returns the value. +func (v NullableSudoResponse) Get() *SudoResponse { + return v.value +} + +// Set modifies the value. +func (v *NullableSudoResponse) Set(val *SudoResponse) { + v.value = val + v.isSet = true +} + +// IsSet indicates if the value was set. +func (v NullableSudoResponse) IsSet() bool { + return v.isSet +} + +// Unset removes the value. +func (v *NullableSudoResponse) Unset() { + v.value = nil + v.isSet = false +} + +// NewNullableSudoResponse returns a pointer to a new instance of NullableSudoResponse. +func NewNullableSudoResponse(val *SudoResponse) *NullableSudoResponse { + return &NullableSudoResponse{value: val, isSet: true} +} + +// MarshalJSON implements the json.Marshaler interface. +// Marshaler is the interface implemented by types that can marshal themselves into valid JSON. +func (v NullableSudoResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +// UnmarshalJSON implements the Unmarshaler interface. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +func (v *NullableSudoResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/fastly/model_values.go b/fastly/model_values.go new file mode 100644 index 00000000..a6d06c24 --- /dev/null +++ b/fastly/model_values.go @@ -0,0 +1,2474 @@ +// Package fastly is an API client library for interacting with most facets of the Fastly API. +package fastly + +/* +Fastly API + +Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://developer.fastly.com/reference/api/) + +API version: 1.0.0 +Contact: oss@fastly.com +*/ + +// This code is auto-generated; DO NOT EDIT. + + +import ( + "encoding/json" +) + +// Values The results of the query, optionally filtered and grouped over the requested timespan. +type Values struct { + // Number of requests sent by end users to Fastly. + EdgeRequests *int32 `json:"edge_requests,omitempty"` + // Total header bytes delivered from Fastly to the end user. + EdgeRespHeaderBytes *int32 `json:"edge_resp_header_bytes,omitempty"` + // Total body bytes delivered from Fastly to the end user. + EdgeRespBodyBytes *int32 `json:"edge_resp_body_bytes,omitempty"` + // Number of 1xx \"Informational\" category status codes delivered. + Status1xx *int32 `json:"status_1xx,omitempty"` + // Number of 2xx \"Success\" status codes delivered. + Status2xx *int32 `json:"status_2xx,omitempty"` + // Number of 3xx \"Redirection\" codes delivered. + Status3xx *int32 `json:"status_3xx,omitempty"` + // Number of 4xx \"Client Error\" codes delivered. + Status4xx *int32 `json:"status_4xx,omitempty"` + // Number of 5xx \"Server Error\" codes delivered. + Status5xx *int32 `json:"status_5xx,omitempty"` + // Number of responses delivered with status code 200 (Success). + Status200 *int32 `json:"status_200,omitempty"` + // Number of responses delivered with status code 204 (No Content). + Status204 *int32 `json:"status_204,omitempty"` + // Number of responses delivered with status code 206 (Partial Content). + Status206 *int32 `json:"status_206,omitempty"` + // Number of responses delivered with status code 301 (Moved Permanently). + Status301 *int32 `json:"status_301,omitempty"` + // Number of responses delivered with status code 302 (Found). + Status302 *int32 `json:"status_302,omitempty"` + // Number of responses delivered with status code 304 (Not Modified). + Status304 *int32 `json:"status_304,omitempty"` + // Number of responses delivered with status code 400 (Bad Request). + Status400 *int32 `json:"status_400,omitempty"` + // Number of responses delivered with status code 401 (Unauthorized). + Status401 *int32 `json:"status_401,omitempty"` + // Number of responses delivered with status code 403 (Forbidden). + Status403 *int32 `json:"status_403,omitempty"` + // Number of responses delivered with status code 404 (Not Found). + Status404 *int32 `json:"status_404,omitempty"` + // Number of responses delivered with status code 416 (Range Not Satisfiable). + Status416 *int32 `json:"status_416,omitempty"` + // Number of responses delivered with status code 429 (Too Many Requests). + Status429 *int32 `json:"status_429,omitempty"` + // Number of responses delivered with status code 500 (Internal Server Error). + Status500 *int32 `json:"status_500,omitempty"` + // Number of responses delivered with status code 501 (Not Implemented). + Status501 *int32 `json:"status_501,omitempty"` + // Number of responses delivered with status code 502 (Bad Gateway). + Status502 *int32 `json:"status_502,omitempty"` + // Number of responses delivered with status code 503 (Service Unavailable). + Status503 *int32 `json:"status_503,omitempty"` + // Number of responses delivered with status code 504 (Gateway Timeout). + Status504 *int32 `json:"status_504,omitempty"` + // Number of responses delivered with status code 505 (HTTP Version Not Supported). + Status505 *int32 `json:"status_505,omitempty"` + // Number of requests processed. + Requests *int32 `json:"requests,omitempty"` + // Total header bytes delivered. + RespHeaderBytes *int32 `json:"resp_header_bytes,omitempty"` + // Total body bytes delivered. + RespBodyBytes *int32 `json:"resp_body_bytes,omitempty"` + // Total header bytes sent to origin. + BereqHeaderBytes *int32 `json:"bereq_header_bytes,omitempty"` + // Total body bytes sent to origin. + BereqBodyBytes *int32 `json:"bereq_body_bytes,omitempty"` + // Number of requests sent by end users to Fastly that resulted in a hit at the edge. + EdgeHitRequests *int32 `json:"edge_hit_requests,omitempty"` + // Number of requests sent by end users to Fastly that resulted in a miss at the edge. + EdgeMissRequests *int32 `json:"edge_miss_requests,omitempty"` + // Number of requests sent to origin. + OriginFetches *int32 `json:"origin_fetches,omitempty"` + // Total header bytes received from origin. + OriginFetchRespHeaderBytes *int32 `json:"origin_fetch_resp_header_bytes,omitempty"` + // Total body bytes received from origin. + OriginFetchRespBodyBytes *int32 `json:"origin_fetch_resp_body_bytes,omitempty"` + // Total bytes delivered (`resp_header_bytes` + `resp_body_bytes` + `bereq_header_bytes` + `bereq_body_bytes`). + Bandwidth *int32 `json:"bandwidth,omitempty"` + // Ratio of cache hits to cache misses at the edge, between 0 and 1 (`edge_hit_requests` / (`edge_hit_requests` + `edge_miss_requests`)). + EdgeHitRatio *float32 `json:"edge_hit_ratio,omitempty"` + // Ratio of response bytes delivered from the edge compared to what is delivered from origin, between 0 and 1. (`edge_resp_body_bytes` + `edge_resp_header_bytes`) / (`origin_fetch_resp_body_bytes` + `origin_fetch_resp_header_bytes` + `edge_resp_body_bytes` + `edge_resp_header_bytes`). + OriginOffload *float32 `json:"origin_offload,omitempty"` + // Number of responses received from origin with status code 200 (Success). + OriginStatus200 *int32 `json:"origin_status_200,omitempty"` + // Number of responses received from origin with status code 204 (No Content). + OriginStatus204 *int32 `json:"origin_status_204,omitempty"` + // Number of responses received from origin with status code 206 (Partial Content). + OriginStatus206 *int32 `json:"origin_status_206,omitempty"` + // Number of responses received from origin with status code 301 (Moved Permanently). + OriginStatus301 *int32 `json:"origin_status_301,omitempty"` + // Number of responses received from origin with status code 302 (Found). + OriginStatus302 *int32 `json:"origin_status_302,omitempty"` + // Number of responses received from origin with status code 304 (Not Modified). + OriginStatus304 *int32 `json:"origin_status_304,omitempty"` + // Number of responses received from origin with status code 400 (Bad Request). + OriginStatus400 *int32 `json:"origin_status_400,omitempty"` + // Number of responses received from origin with status code 401 (Unauthorized). + OriginStatus401 *int32 `json:"origin_status_401,omitempty"` + // Number of responses received from origin with status code 403 (Forbidden). + OriginStatus403 *int32 `json:"origin_status_403,omitempty"` + // Number of responses received from origin with status code 404 (Not Found). + OriginStatus404 *int32 `json:"origin_status_404,omitempty"` + // Number of responses received from origin with status code 416 (Range Not Satisfiable). + OriginStatus416 *int32 `json:"origin_status_416,omitempty"` + // Number of responses received from origin with status code 429 (Too Many Requests). + OriginStatus429 *int32 `json:"origin_status_429,omitempty"` + // Number of responses received from origin with status code 500 (Internal Server Error). + OriginStatus500 *int32 `json:"origin_status_500,omitempty"` + // Number of responses received from origin with status code 501 (Not Implemented). + OriginStatus501 *int32 `json:"origin_status_501,omitempty"` + // Number of responses received from origin with status code 502 (Bad Gateway). + OriginStatus502 *int32 `json:"origin_status_502,omitempty"` + // Number of responses received from origin with status code 503 (Service Unavailable). + OriginStatus503 *int32 `json:"origin_status_503,omitempty"` + // Number of responses received from origin with status code 504 (Gateway Timeout). + OriginStatus504 *int32 `json:"origin_status_504,omitempty"` + // Number of responses received from origin with status code 505 (HTTP Version Not Supported). + OriginStatus505 *int32 `json:"origin_status_505,omitempty"` + // Number of \"Informational\" category status codes received from origin. + OriginStatus1xx *int32 `json:"origin_status_1xx,omitempty"` + // Number of \"Success\" status codes received from origin. + OriginStatus2xx *int32 `json:"origin_status_2xx,omitempty"` + // Number of \"Redirection\" codes received from origin. + OriginStatus3xx *int32 `json:"origin_status_3xx,omitempty"` + // Number of \"Client Error\" codes received from origin. + OriginStatus4xx *int32 `json:"origin_status_4xx,omitempty"` + // Number of \"Server Error\" codes received from origin. + OriginStatus5xx *int32 `json:"origin_status_5xx,omitempty"` + AdditionalProperties map[string]any +} + +type _Values Values + +// NewValues instantiates a new Values object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewValues() *Values { + this := Values{} + return &this +} + +// NewValuesWithDefaults instantiates a new Values object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewValuesWithDefaults() *Values { + this := Values{} + return &this +} + +// GetEdgeRequests returns the EdgeRequests field value if set, zero value otherwise. +func (o *Values) GetEdgeRequests() int32 { + if o == nil || o.EdgeRequests == nil { + var ret int32 + return ret + } + return *o.EdgeRequests +} + +// GetEdgeRequestsOk returns a tuple with the EdgeRequests field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Values) GetEdgeRequestsOk() (*int32, bool) { + if o == nil || o.EdgeRequests == nil { + return nil, false + } + return o.EdgeRequests, true +} + +// HasEdgeRequests returns a boolean if a field has been set. +func (o *Values) HasEdgeRequests() bool { + if o != nil && o.EdgeRequests != nil { + return true + } + + return false +} + +// SetEdgeRequests gets a reference to the given int32 and assigns it to the EdgeRequests field. +func (o *Values) SetEdgeRequests(v int32) { + o.EdgeRequests = &v +} + +// GetEdgeRespHeaderBytes returns the EdgeRespHeaderBytes field value if set, zero value otherwise. +func (o *Values) GetEdgeRespHeaderBytes() int32 { + if o == nil || o.EdgeRespHeaderBytes == nil { + var ret int32 + return ret + } + return *o.EdgeRespHeaderBytes +} + +// GetEdgeRespHeaderBytesOk returns a tuple with the EdgeRespHeaderBytes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Values) GetEdgeRespHeaderBytesOk() (*int32, bool) { + if o == nil || o.EdgeRespHeaderBytes == nil { + return nil, false + } + return o.EdgeRespHeaderBytes, true +} + +// HasEdgeRespHeaderBytes returns a boolean if a field has been set. +func (o *Values) HasEdgeRespHeaderBytes() bool { + if o != nil && o.EdgeRespHeaderBytes != nil { + return true + } + + return false +} + +// SetEdgeRespHeaderBytes gets a reference to the given int32 and assigns it to the EdgeRespHeaderBytes field. +func (o *Values) SetEdgeRespHeaderBytes(v int32) { + o.EdgeRespHeaderBytes = &v +} + +// GetEdgeRespBodyBytes returns the EdgeRespBodyBytes field value if set, zero value otherwise. +func (o *Values) GetEdgeRespBodyBytes() int32 { + if o == nil || o.EdgeRespBodyBytes == nil { + var ret int32 + return ret + } + return *o.EdgeRespBodyBytes +} + +// GetEdgeRespBodyBytesOk returns a tuple with the EdgeRespBodyBytes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Values) GetEdgeRespBodyBytesOk() (*int32, bool) { + if o == nil || o.EdgeRespBodyBytes == nil { + return nil, false + } + return o.EdgeRespBodyBytes, true +} + +// HasEdgeRespBodyBytes returns a boolean if a field has been set. +func (o *Values) HasEdgeRespBodyBytes() bool { + if o != nil && o.EdgeRespBodyBytes != nil { + return true + } + + return false +} + +// SetEdgeRespBodyBytes gets a reference to the given int32 and assigns it to the EdgeRespBodyBytes field. +func (o *Values) SetEdgeRespBodyBytes(v int32) { + o.EdgeRespBodyBytes = &v +} + +// GetStatus1xx returns the Status1xx field value if set, zero value otherwise. +func (o *Values) GetStatus1xx() int32 { + if o == nil || o.Status1xx == nil { + var ret int32 + return ret + } + return *o.Status1xx +} + +// GetStatus1xxOk returns a tuple with the Status1xx field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Values) GetStatus1xxOk() (*int32, bool) { + if o == nil || o.Status1xx == nil { + return nil, false + } + return o.Status1xx, true +} + +// HasStatus1xx returns a boolean if a field has been set. +func (o *Values) HasStatus1xx() bool { + if o != nil && o.Status1xx != nil { + return true + } + + return false +} + +// SetStatus1xx gets a reference to the given int32 and assigns it to the Status1xx field. +func (o *Values) SetStatus1xx(v int32) { + o.Status1xx = &v +} + +// GetStatus2xx returns the Status2xx field value if set, zero value otherwise. +func (o *Values) GetStatus2xx() int32 { + if o == nil || o.Status2xx == nil { + var ret int32 + return ret + } + return *o.Status2xx +} + +// GetStatus2xxOk returns a tuple with the Status2xx field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Values) GetStatus2xxOk() (*int32, bool) { + if o == nil || o.Status2xx == nil { + return nil, false + } + return o.Status2xx, true +} + +// HasStatus2xx returns a boolean if a field has been set. +func (o *Values) HasStatus2xx() bool { + if o != nil && o.Status2xx != nil { + return true + } + + return false +} + +// SetStatus2xx gets a reference to the given int32 and assigns it to the Status2xx field. +func (o *Values) SetStatus2xx(v int32) { + o.Status2xx = &v +} + +// GetStatus3xx returns the Status3xx field value if set, zero value otherwise. +func (o *Values) GetStatus3xx() int32 { + if o == nil || o.Status3xx == nil { + var ret int32 + return ret + } + return *o.Status3xx +} + +// GetStatus3xxOk returns a tuple with the Status3xx field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Values) GetStatus3xxOk() (*int32, bool) { + if o == nil || o.Status3xx == nil { + return nil, false + } + return o.Status3xx, true +} + +// HasStatus3xx returns a boolean if a field has been set. +func (o *Values) HasStatus3xx() bool { + if o != nil && o.Status3xx != nil { + return true + } + + return false +} + +// SetStatus3xx gets a reference to the given int32 and assigns it to the Status3xx field. +func (o *Values) SetStatus3xx(v int32) { + o.Status3xx = &v +} + +// GetStatus4xx returns the Status4xx field value if set, zero value otherwise. +func (o *Values) GetStatus4xx() int32 { + if o == nil || o.Status4xx == nil { + var ret int32 + return ret + } + return *o.Status4xx +} + +// GetStatus4xxOk returns a tuple with the Status4xx field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Values) GetStatus4xxOk() (*int32, bool) { + if o == nil || o.Status4xx == nil { + return nil, false + } + return o.Status4xx, true +} + +// HasStatus4xx returns a boolean if a field has been set. +func (o *Values) HasStatus4xx() bool { + if o != nil && o.Status4xx != nil { + return true + } + + return false +} + +// SetStatus4xx gets a reference to the given int32 and assigns it to the Status4xx field. +func (o *Values) SetStatus4xx(v int32) { + o.Status4xx = &v +} + +// GetStatus5xx returns the Status5xx field value if set, zero value otherwise. +func (o *Values) GetStatus5xx() int32 { + if o == nil || o.Status5xx == nil { + var ret int32 + return ret + } + return *o.Status5xx +} + +// GetStatus5xxOk returns a tuple with the Status5xx field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Values) GetStatus5xxOk() (*int32, bool) { + if o == nil || o.Status5xx == nil { + return nil, false + } + return o.Status5xx, true +} + +// HasStatus5xx returns a boolean if a field has been set. +func (o *Values) HasStatus5xx() bool { + if o != nil && o.Status5xx != nil { + return true + } + + return false +} + +// SetStatus5xx gets a reference to the given int32 and assigns it to the Status5xx field. +func (o *Values) SetStatus5xx(v int32) { + o.Status5xx = &v +} + +// GetStatus200 returns the Status200 field value if set, zero value otherwise. +func (o *Values) GetStatus200() int32 { + if o == nil || o.Status200 == nil { + var ret int32 + return ret + } + return *o.Status200 +} + +// GetStatus200Ok returns a tuple with the Status200 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Values) GetStatus200Ok() (*int32, bool) { + if o == nil || o.Status200 == nil { + return nil, false + } + return o.Status200, true +} + +// HasStatus200 returns a boolean if a field has been set. +func (o *Values) HasStatus200() bool { + if o != nil && o.Status200 != nil { + return true + } + + return false +} + +// SetStatus200 gets a reference to the given int32 and assigns it to the Status200 field. +func (o *Values) SetStatus200(v int32) { + o.Status200 = &v +} + +// GetStatus204 returns the Status204 field value if set, zero value otherwise. +func (o *Values) GetStatus204() int32 { + if o == nil || o.Status204 == nil { + var ret int32 + return ret + } + return *o.Status204 +} + +// GetStatus204Ok returns a tuple with the Status204 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Values) GetStatus204Ok() (*int32, bool) { + if o == nil || o.Status204 == nil { + return nil, false + } + return o.Status204, true +} + +// HasStatus204 returns a boolean if a field has been set. +func (o *Values) HasStatus204() bool { + if o != nil && o.Status204 != nil { + return true + } + + return false +} + +// SetStatus204 gets a reference to the given int32 and assigns it to the Status204 field. +func (o *Values) SetStatus204(v int32) { + o.Status204 = &v +} + +// GetStatus206 returns the Status206 field value if set, zero value otherwise. +func (o *Values) GetStatus206() int32 { + if o == nil || o.Status206 == nil { + var ret int32 + return ret + } + return *o.Status206 +} + +// GetStatus206Ok returns a tuple with the Status206 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Values) GetStatus206Ok() (*int32, bool) { + if o == nil || o.Status206 == nil { + return nil, false + } + return o.Status206, true +} + +// HasStatus206 returns a boolean if a field has been set. +func (o *Values) HasStatus206() bool { + if o != nil && o.Status206 != nil { + return true + } + + return false +} + +// SetStatus206 gets a reference to the given int32 and assigns it to the Status206 field. +func (o *Values) SetStatus206(v int32) { + o.Status206 = &v +} + +// GetStatus301 returns the Status301 field value if set, zero value otherwise. +func (o *Values) GetStatus301() int32 { + if o == nil || o.Status301 == nil { + var ret int32 + return ret + } + return *o.Status301 +} + +// GetStatus301Ok returns a tuple with the Status301 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Values) GetStatus301Ok() (*int32, bool) { + if o == nil || o.Status301 == nil { + return nil, false + } + return o.Status301, true +} + +// HasStatus301 returns a boolean if a field has been set. +func (o *Values) HasStatus301() bool { + if o != nil && o.Status301 != nil { + return true + } + + return false +} + +// SetStatus301 gets a reference to the given int32 and assigns it to the Status301 field. +func (o *Values) SetStatus301(v int32) { + o.Status301 = &v +} + +// GetStatus302 returns the Status302 field value if set, zero value otherwise. +func (o *Values) GetStatus302() int32 { + if o == nil || o.Status302 == nil { + var ret int32 + return ret + } + return *o.Status302 +} + +// GetStatus302Ok returns a tuple with the Status302 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Values) GetStatus302Ok() (*int32, bool) { + if o == nil || o.Status302 == nil { + return nil, false + } + return o.Status302, true +} + +// HasStatus302 returns a boolean if a field has been set. +func (o *Values) HasStatus302() bool { + if o != nil && o.Status302 != nil { + return true + } + + return false +} + +// SetStatus302 gets a reference to the given int32 and assigns it to the Status302 field. +func (o *Values) SetStatus302(v int32) { + o.Status302 = &v +} + +// GetStatus304 returns the Status304 field value if set, zero value otherwise. +func (o *Values) GetStatus304() int32 { + if o == nil || o.Status304 == nil { + var ret int32 + return ret + } + return *o.Status304 +} + +// GetStatus304Ok returns a tuple with the Status304 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Values) GetStatus304Ok() (*int32, bool) { + if o == nil || o.Status304 == nil { + return nil, false + } + return o.Status304, true +} + +// HasStatus304 returns a boolean if a field has been set. +func (o *Values) HasStatus304() bool { + if o != nil && o.Status304 != nil { + return true + } + + return false +} + +// SetStatus304 gets a reference to the given int32 and assigns it to the Status304 field. +func (o *Values) SetStatus304(v int32) { + o.Status304 = &v +} + +// GetStatus400 returns the Status400 field value if set, zero value otherwise. +func (o *Values) GetStatus400() int32 { + if o == nil || o.Status400 == nil { + var ret int32 + return ret + } + return *o.Status400 +} + +// GetStatus400Ok returns a tuple with the Status400 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Values) GetStatus400Ok() (*int32, bool) { + if o == nil || o.Status400 == nil { + return nil, false + } + return o.Status400, true +} + +// HasStatus400 returns a boolean if a field has been set. +func (o *Values) HasStatus400() bool { + if o != nil && o.Status400 != nil { + return true + } + + return false +} + +// SetStatus400 gets a reference to the given int32 and assigns it to the Status400 field. +func (o *Values) SetStatus400(v int32) { + o.Status400 = &v +} + +// GetStatus401 returns the Status401 field value if set, zero value otherwise. +func (o *Values) GetStatus401() int32 { + if o == nil || o.Status401 == nil { + var ret int32 + return ret + } + return *o.Status401 +} + +// GetStatus401Ok returns a tuple with the Status401 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Values) GetStatus401Ok() (*int32, bool) { + if o == nil || o.Status401 == nil { + return nil, false + } + return o.Status401, true +} + +// HasStatus401 returns a boolean if a field has been set. +func (o *Values) HasStatus401() bool { + if o != nil && o.Status401 != nil { + return true + } + + return false +} + +// SetStatus401 gets a reference to the given int32 and assigns it to the Status401 field. +func (o *Values) SetStatus401(v int32) { + o.Status401 = &v +} + +// GetStatus403 returns the Status403 field value if set, zero value otherwise. +func (o *Values) GetStatus403() int32 { + if o == nil || o.Status403 == nil { + var ret int32 + return ret + } + return *o.Status403 +} + +// GetStatus403Ok returns a tuple with the Status403 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Values) GetStatus403Ok() (*int32, bool) { + if o == nil || o.Status403 == nil { + return nil, false + } + return o.Status403, true +} + +// HasStatus403 returns a boolean if a field has been set. +func (o *Values) HasStatus403() bool { + if o != nil && o.Status403 != nil { + return true + } + + return false +} + +// SetStatus403 gets a reference to the given int32 and assigns it to the Status403 field. +func (o *Values) SetStatus403(v int32) { + o.Status403 = &v +} + +// GetStatus404 returns the Status404 field value if set, zero value otherwise. +func (o *Values) GetStatus404() int32 { + if o == nil || o.Status404 == nil { + var ret int32 + return ret + } + return *o.Status404 +} + +// GetStatus404Ok returns a tuple with the Status404 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Values) GetStatus404Ok() (*int32, bool) { + if o == nil || o.Status404 == nil { + return nil, false + } + return o.Status404, true +} + +// HasStatus404 returns a boolean if a field has been set. +func (o *Values) HasStatus404() bool { + if o != nil && o.Status404 != nil { + return true + } + + return false +} + +// SetStatus404 gets a reference to the given int32 and assigns it to the Status404 field. +func (o *Values) SetStatus404(v int32) { + o.Status404 = &v +} + +// GetStatus416 returns the Status416 field value if set, zero value otherwise. +func (o *Values) GetStatus416() int32 { + if o == nil || o.Status416 == nil { + var ret int32 + return ret + } + return *o.Status416 +} + +// GetStatus416Ok returns a tuple with the Status416 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Values) GetStatus416Ok() (*int32, bool) { + if o == nil || o.Status416 == nil { + return nil, false + } + return o.Status416, true +} + +// HasStatus416 returns a boolean if a field has been set. +func (o *Values) HasStatus416() bool { + if o != nil && o.Status416 != nil { + return true + } + + return false +} + +// SetStatus416 gets a reference to the given int32 and assigns it to the Status416 field. +func (o *Values) SetStatus416(v int32) { + o.Status416 = &v +} + +// GetStatus429 returns the Status429 field value if set, zero value otherwise. +func (o *Values) GetStatus429() int32 { + if o == nil || o.Status429 == nil { + var ret int32 + return ret + } + return *o.Status429 +} + +// GetStatus429Ok returns a tuple with the Status429 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Values) GetStatus429Ok() (*int32, bool) { + if o == nil || o.Status429 == nil { + return nil, false + } + return o.Status429, true +} + +// HasStatus429 returns a boolean if a field has been set. +func (o *Values) HasStatus429() bool { + if o != nil && o.Status429 != nil { + return true + } + + return false +} + +// SetStatus429 gets a reference to the given int32 and assigns it to the Status429 field. +func (o *Values) SetStatus429(v int32) { + o.Status429 = &v +} + +// GetStatus500 returns the Status500 field value if set, zero value otherwise. +func (o *Values) GetStatus500() int32 { + if o == nil || o.Status500 == nil { + var ret int32 + return ret + } + return *o.Status500 +} + +// GetStatus500Ok returns a tuple with the Status500 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Values) GetStatus500Ok() (*int32, bool) { + if o == nil || o.Status500 == nil { + return nil, false + } + return o.Status500, true +} + +// HasStatus500 returns a boolean if a field has been set. +func (o *Values) HasStatus500() bool { + if o != nil && o.Status500 != nil { + return true + } + + return false +} + +// SetStatus500 gets a reference to the given int32 and assigns it to the Status500 field. +func (o *Values) SetStatus500(v int32) { + o.Status500 = &v +} + +// GetStatus501 returns the Status501 field value if set, zero value otherwise. +func (o *Values) GetStatus501() int32 { + if o == nil || o.Status501 == nil { + var ret int32 + return ret + } + return *o.Status501 +} + +// GetStatus501Ok returns a tuple with the Status501 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Values) GetStatus501Ok() (*int32, bool) { + if o == nil || o.Status501 == nil { + return nil, false + } + return o.Status501, true +} + +// HasStatus501 returns a boolean if a field has been set. +func (o *Values) HasStatus501() bool { + if o != nil && o.Status501 != nil { + return true + } + + return false +} + +// SetStatus501 gets a reference to the given int32 and assigns it to the Status501 field. +func (o *Values) SetStatus501(v int32) { + o.Status501 = &v +} + +// GetStatus502 returns the Status502 field value if set, zero value otherwise. +func (o *Values) GetStatus502() int32 { + if o == nil || o.Status502 == nil { + var ret int32 + return ret + } + return *o.Status502 +} + +// GetStatus502Ok returns a tuple with the Status502 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Values) GetStatus502Ok() (*int32, bool) { + if o == nil || o.Status502 == nil { + return nil, false + } + return o.Status502, true +} + +// HasStatus502 returns a boolean if a field has been set. +func (o *Values) HasStatus502() bool { + if o != nil && o.Status502 != nil { + return true + } + + return false +} + +// SetStatus502 gets a reference to the given int32 and assigns it to the Status502 field. +func (o *Values) SetStatus502(v int32) { + o.Status502 = &v +} + +// GetStatus503 returns the Status503 field value if set, zero value otherwise. +func (o *Values) GetStatus503() int32 { + if o == nil || o.Status503 == nil { + var ret int32 + return ret + } + return *o.Status503 +} + +// GetStatus503Ok returns a tuple with the Status503 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Values) GetStatus503Ok() (*int32, bool) { + if o == nil || o.Status503 == nil { + return nil, false + } + return o.Status503, true +} + +// HasStatus503 returns a boolean if a field has been set. +func (o *Values) HasStatus503() bool { + if o != nil && o.Status503 != nil { + return true + } + + return false +} + +// SetStatus503 gets a reference to the given int32 and assigns it to the Status503 field. +func (o *Values) SetStatus503(v int32) { + o.Status503 = &v +} + +// GetStatus504 returns the Status504 field value if set, zero value otherwise. +func (o *Values) GetStatus504() int32 { + if o == nil || o.Status504 == nil { + var ret int32 + return ret + } + return *o.Status504 +} + +// GetStatus504Ok returns a tuple with the Status504 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Values) GetStatus504Ok() (*int32, bool) { + if o == nil || o.Status504 == nil { + return nil, false + } + return o.Status504, true +} + +// HasStatus504 returns a boolean if a field has been set. +func (o *Values) HasStatus504() bool { + if o != nil && o.Status504 != nil { + return true + } + + return false +} + +// SetStatus504 gets a reference to the given int32 and assigns it to the Status504 field. +func (o *Values) SetStatus504(v int32) { + o.Status504 = &v +} + +// GetStatus505 returns the Status505 field value if set, zero value otherwise. +func (o *Values) GetStatus505() int32 { + if o == nil || o.Status505 == nil { + var ret int32 + return ret + } + return *o.Status505 +} + +// GetStatus505Ok returns a tuple with the Status505 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Values) GetStatus505Ok() (*int32, bool) { + if o == nil || o.Status505 == nil { + return nil, false + } + return o.Status505, true +} + +// HasStatus505 returns a boolean if a field has been set. +func (o *Values) HasStatus505() bool { + if o != nil && o.Status505 != nil { + return true + } + + return false +} + +// SetStatus505 gets a reference to the given int32 and assigns it to the Status505 field. +func (o *Values) SetStatus505(v int32) { + o.Status505 = &v +} + +// GetRequests returns the Requests field value if set, zero value otherwise. +func (o *Values) GetRequests() int32 { + if o == nil || o.Requests == nil { + var ret int32 + return ret + } + return *o.Requests +} + +// GetRequestsOk returns a tuple with the Requests field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Values) GetRequestsOk() (*int32, bool) { + if o == nil || o.Requests == nil { + return nil, false + } + return o.Requests, true +} + +// HasRequests returns a boolean if a field has been set. +func (o *Values) HasRequests() bool { + if o != nil && o.Requests != nil { + return true + } + + return false +} + +// SetRequests gets a reference to the given int32 and assigns it to the Requests field. +func (o *Values) SetRequests(v int32) { + o.Requests = &v +} + +// GetRespHeaderBytes returns the RespHeaderBytes field value if set, zero value otherwise. +func (o *Values) GetRespHeaderBytes() int32 { + if o == nil || o.RespHeaderBytes == nil { + var ret int32 + return ret + } + return *o.RespHeaderBytes +} + +// GetRespHeaderBytesOk returns a tuple with the RespHeaderBytes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Values) GetRespHeaderBytesOk() (*int32, bool) { + if o == nil || o.RespHeaderBytes == nil { + return nil, false + } + return o.RespHeaderBytes, true +} + +// HasRespHeaderBytes returns a boolean if a field has been set. +func (o *Values) HasRespHeaderBytes() bool { + if o != nil && o.RespHeaderBytes != nil { + return true + } + + return false +} + +// SetRespHeaderBytes gets a reference to the given int32 and assigns it to the RespHeaderBytes field. +func (o *Values) SetRespHeaderBytes(v int32) { + o.RespHeaderBytes = &v +} + +// GetRespBodyBytes returns the RespBodyBytes field value if set, zero value otherwise. +func (o *Values) GetRespBodyBytes() int32 { + if o == nil || o.RespBodyBytes == nil { + var ret int32 + return ret + } + return *o.RespBodyBytes +} + +// GetRespBodyBytesOk returns a tuple with the RespBodyBytes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Values) GetRespBodyBytesOk() (*int32, bool) { + if o == nil || o.RespBodyBytes == nil { + return nil, false + } + return o.RespBodyBytes, true +} + +// HasRespBodyBytes returns a boolean if a field has been set. +func (o *Values) HasRespBodyBytes() bool { + if o != nil && o.RespBodyBytes != nil { + return true + } + + return false +} + +// SetRespBodyBytes gets a reference to the given int32 and assigns it to the RespBodyBytes field. +func (o *Values) SetRespBodyBytes(v int32) { + o.RespBodyBytes = &v +} + +// GetBereqHeaderBytes returns the BereqHeaderBytes field value if set, zero value otherwise. +func (o *Values) GetBereqHeaderBytes() int32 { + if o == nil || o.BereqHeaderBytes == nil { + var ret int32 + return ret + } + return *o.BereqHeaderBytes +} + +// GetBereqHeaderBytesOk returns a tuple with the BereqHeaderBytes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Values) GetBereqHeaderBytesOk() (*int32, bool) { + if o == nil || o.BereqHeaderBytes == nil { + return nil, false + } + return o.BereqHeaderBytes, true +} + +// HasBereqHeaderBytes returns a boolean if a field has been set. +func (o *Values) HasBereqHeaderBytes() bool { + if o != nil && o.BereqHeaderBytes != nil { + return true + } + + return false +} + +// SetBereqHeaderBytes gets a reference to the given int32 and assigns it to the BereqHeaderBytes field. +func (o *Values) SetBereqHeaderBytes(v int32) { + o.BereqHeaderBytes = &v +} + +// GetBereqBodyBytes returns the BereqBodyBytes field value if set, zero value otherwise. +func (o *Values) GetBereqBodyBytes() int32 { + if o == nil || o.BereqBodyBytes == nil { + var ret int32 + return ret + } + return *o.BereqBodyBytes +} + +// GetBereqBodyBytesOk returns a tuple with the BereqBodyBytes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Values) GetBereqBodyBytesOk() (*int32, bool) { + if o == nil || o.BereqBodyBytes == nil { + return nil, false + } + return o.BereqBodyBytes, true +} + +// HasBereqBodyBytes returns a boolean if a field has been set. +func (o *Values) HasBereqBodyBytes() bool { + if o != nil && o.BereqBodyBytes != nil { + return true + } + + return false +} + +// SetBereqBodyBytes gets a reference to the given int32 and assigns it to the BereqBodyBytes field. +func (o *Values) SetBereqBodyBytes(v int32) { + o.BereqBodyBytes = &v +} + +// GetEdgeHitRequests returns the EdgeHitRequests field value if set, zero value otherwise. +func (o *Values) GetEdgeHitRequests() int32 { + if o == nil || o.EdgeHitRequests == nil { + var ret int32 + return ret + } + return *o.EdgeHitRequests +} + +// GetEdgeHitRequestsOk returns a tuple with the EdgeHitRequests field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Values) GetEdgeHitRequestsOk() (*int32, bool) { + if o == nil || o.EdgeHitRequests == nil { + return nil, false + } + return o.EdgeHitRequests, true +} + +// HasEdgeHitRequests returns a boolean if a field has been set. +func (o *Values) HasEdgeHitRequests() bool { + if o != nil && o.EdgeHitRequests != nil { + return true + } + + return false +} + +// SetEdgeHitRequests gets a reference to the given int32 and assigns it to the EdgeHitRequests field. +func (o *Values) SetEdgeHitRequests(v int32) { + o.EdgeHitRequests = &v +} + +// GetEdgeMissRequests returns the EdgeMissRequests field value if set, zero value otherwise. +func (o *Values) GetEdgeMissRequests() int32 { + if o == nil || o.EdgeMissRequests == nil { + var ret int32 + return ret + } + return *o.EdgeMissRequests +} + +// GetEdgeMissRequestsOk returns a tuple with the EdgeMissRequests field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Values) GetEdgeMissRequestsOk() (*int32, bool) { + if o == nil || o.EdgeMissRequests == nil { + return nil, false + } + return o.EdgeMissRequests, true +} + +// HasEdgeMissRequests returns a boolean if a field has been set. +func (o *Values) HasEdgeMissRequests() bool { + if o != nil && o.EdgeMissRequests != nil { + return true + } + + return false +} + +// SetEdgeMissRequests gets a reference to the given int32 and assigns it to the EdgeMissRequests field. +func (o *Values) SetEdgeMissRequests(v int32) { + o.EdgeMissRequests = &v +} + +// GetOriginFetches returns the OriginFetches field value if set, zero value otherwise. +func (o *Values) GetOriginFetches() int32 { + if o == nil || o.OriginFetches == nil { + var ret int32 + return ret + } + return *o.OriginFetches +} + +// GetOriginFetchesOk returns a tuple with the OriginFetches field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Values) GetOriginFetchesOk() (*int32, bool) { + if o == nil || o.OriginFetches == nil { + return nil, false + } + return o.OriginFetches, true +} + +// HasOriginFetches returns a boolean if a field has been set. +func (o *Values) HasOriginFetches() bool { + if o != nil && o.OriginFetches != nil { + return true + } + + return false +} + +// SetOriginFetches gets a reference to the given int32 and assigns it to the OriginFetches field. +func (o *Values) SetOriginFetches(v int32) { + o.OriginFetches = &v +} + +// GetOriginFetchRespHeaderBytes returns the OriginFetchRespHeaderBytes field value if set, zero value otherwise. +func (o *Values) GetOriginFetchRespHeaderBytes() int32 { + if o == nil || o.OriginFetchRespHeaderBytes == nil { + var ret int32 + return ret + } + return *o.OriginFetchRespHeaderBytes +} + +// GetOriginFetchRespHeaderBytesOk returns a tuple with the OriginFetchRespHeaderBytes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Values) GetOriginFetchRespHeaderBytesOk() (*int32, bool) { + if o == nil || o.OriginFetchRespHeaderBytes == nil { + return nil, false + } + return o.OriginFetchRespHeaderBytes, true +} + +// HasOriginFetchRespHeaderBytes returns a boolean if a field has been set. +func (o *Values) HasOriginFetchRespHeaderBytes() bool { + if o != nil && o.OriginFetchRespHeaderBytes != nil { + return true + } + + return false +} + +// SetOriginFetchRespHeaderBytes gets a reference to the given int32 and assigns it to the OriginFetchRespHeaderBytes field. +func (o *Values) SetOriginFetchRespHeaderBytes(v int32) { + o.OriginFetchRespHeaderBytes = &v +} + +// GetOriginFetchRespBodyBytes returns the OriginFetchRespBodyBytes field value if set, zero value otherwise. +func (o *Values) GetOriginFetchRespBodyBytes() int32 { + if o == nil || o.OriginFetchRespBodyBytes == nil { + var ret int32 + return ret + } + return *o.OriginFetchRespBodyBytes +} + +// GetOriginFetchRespBodyBytesOk returns a tuple with the OriginFetchRespBodyBytes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Values) GetOriginFetchRespBodyBytesOk() (*int32, bool) { + if o == nil || o.OriginFetchRespBodyBytes == nil { + return nil, false + } + return o.OriginFetchRespBodyBytes, true +} + +// HasOriginFetchRespBodyBytes returns a boolean if a field has been set. +func (o *Values) HasOriginFetchRespBodyBytes() bool { + if o != nil && o.OriginFetchRespBodyBytes != nil { + return true + } + + return false +} + +// SetOriginFetchRespBodyBytes gets a reference to the given int32 and assigns it to the OriginFetchRespBodyBytes field. +func (o *Values) SetOriginFetchRespBodyBytes(v int32) { + o.OriginFetchRespBodyBytes = &v +} + +// GetBandwidth returns the Bandwidth field value if set, zero value otherwise. +func (o *Values) GetBandwidth() int32 { + if o == nil || o.Bandwidth == nil { + var ret int32 + return ret + } + return *o.Bandwidth +} + +// GetBandwidthOk returns a tuple with the Bandwidth field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Values) GetBandwidthOk() (*int32, bool) { + if o == nil || o.Bandwidth == nil { + return nil, false + } + return o.Bandwidth, true +} + +// HasBandwidth returns a boolean if a field has been set. +func (o *Values) HasBandwidth() bool { + if o != nil && o.Bandwidth != nil { + return true + } + + return false +} + +// SetBandwidth gets a reference to the given int32 and assigns it to the Bandwidth field. +func (o *Values) SetBandwidth(v int32) { + o.Bandwidth = &v +} + +// GetEdgeHitRatio returns the EdgeHitRatio field value if set, zero value otherwise. +func (o *Values) GetEdgeHitRatio() float32 { + if o == nil || o.EdgeHitRatio == nil { + var ret float32 + return ret + } + return *o.EdgeHitRatio +} + +// GetEdgeHitRatioOk returns a tuple with the EdgeHitRatio field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Values) GetEdgeHitRatioOk() (*float32, bool) { + if o == nil || o.EdgeHitRatio == nil { + return nil, false + } + return o.EdgeHitRatio, true +} + +// HasEdgeHitRatio returns a boolean if a field has been set. +func (o *Values) HasEdgeHitRatio() bool { + if o != nil && o.EdgeHitRatio != nil { + return true + } + + return false +} + +// SetEdgeHitRatio gets a reference to the given float32 and assigns it to the EdgeHitRatio field. +func (o *Values) SetEdgeHitRatio(v float32) { + o.EdgeHitRatio = &v +} + +// GetOriginOffload returns the OriginOffload field value if set, zero value otherwise. +func (o *Values) GetOriginOffload() float32 { + if o == nil || o.OriginOffload == nil { + var ret float32 + return ret + } + return *o.OriginOffload +} + +// GetOriginOffloadOk returns a tuple with the OriginOffload field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Values) GetOriginOffloadOk() (*float32, bool) { + if o == nil || o.OriginOffload == nil { + return nil, false + } + return o.OriginOffload, true +} + +// HasOriginOffload returns a boolean if a field has been set. +func (o *Values) HasOriginOffload() bool { + if o != nil && o.OriginOffload != nil { + return true + } + + return false +} + +// SetOriginOffload gets a reference to the given float32 and assigns it to the OriginOffload field. +func (o *Values) SetOriginOffload(v float32) { + o.OriginOffload = &v +} + +// GetOriginStatus200 returns the OriginStatus200 field value if set, zero value otherwise. +func (o *Values) GetOriginStatus200() int32 { + if o == nil || o.OriginStatus200 == nil { + var ret int32 + return ret + } + return *o.OriginStatus200 +} + +// GetOriginStatus200Ok returns a tuple with the OriginStatus200 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Values) GetOriginStatus200Ok() (*int32, bool) { + if o == nil || o.OriginStatus200 == nil { + return nil, false + } + return o.OriginStatus200, true +} + +// HasOriginStatus200 returns a boolean if a field has been set. +func (o *Values) HasOriginStatus200() bool { + if o != nil && o.OriginStatus200 != nil { + return true + } + + return false +} + +// SetOriginStatus200 gets a reference to the given int32 and assigns it to the OriginStatus200 field. +func (o *Values) SetOriginStatus200(v int32) { + o.OriginStatus200 = &v +} + +// GetOriginStatus204 returns the OriginStatus204 field value if set, zero value otherwise. +func (o *Values) GetOriginStatus204() int32 { + if o == nil || o.OriginStatus204 == nil { + var ret int32 + return ret + } + return *o.OriginStatus204 +} + +// GetOriginStatus204Ok returns a tuple with the OriginStatus204 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Values) GetOriginStatus204Ok() (*int32, bool) { + if o == nil || o.OriginStatus204 == nil { + return nil, false + } + return o.OriginStatus204, true +} + +// HasOriginStatus204 returns a boolean if a field has been set. +func (o *Values) HasOriginStatus204() bool { + if o != nil && o.OriginStatus204 != nil { + return true + } + + return false +} + +// SetOriginStatus204 gets a reference to the given int32 and assigns it to the OriginStatus204 field. +func (o *Values) SetOriginStatus204(v int32) { + o.OriginStatus204 = &v +} + +// GetOriginStatus206 returns the OriginStatus206 field value if set, zero value otherwise. +func (o *Values) GetOriginStatus206() int32 { + if o == nil || o.OriginStatus206 == nil { + var ret int32 + return ret + } + return *o.OriginStatus206 +} + +// GetOriginStatus206Ok returns a tuple with the OriginStatus206 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Values) GetOriginStatus206Ok() (*int32, bool) { + if o == nil || o.OriginStatus206 == nil { + return nil, false + } + return o.OriginStatus206, true +} + +// HasOriginStatus206 returns a boolean if a field has been set. +func (o *Values) HasOriginStatus206() bool { + if o != nil && o.OriginStatus206 != nil { + return true + } + + return false +} + +// SetOriginStatus206 gets a reference to the given int32 and assigns it to the OriginStatus206 field. +func (o *Values) SetOriginStatus206(v int32) { + o.OriginStatus206 = &v +} + +// GetOriginStatus301 returns the OriginStatus301 field value if set, zero value otherwise. +func (o *Values) GetOriginStatus301() int32 { + if o == nil || o.OriginStatus301 == nil { + var ret int32 + return ret + } + return *o.OriginStatus301 +} + +// GetOriginStatus301Ok returns a tuple with the OriginStatus301 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Values) GetOriginStatus301Ok() (*int32, bool) { + if o == nil || o.OriginStatus301 == nil { + return nil, false + } + return o.OriginStatus301, true +} + +// HasOriginStatus301 returns a boolean if a field has been set. +func (o *Values) HasOriginStatus301() bool { + if o != nil && o.OriginStatus301 != nil { + return true + } + + return false +} + +// SetOriginStatus301 gets a reference to the given int32 and assigns it to the OriginStatus301 field. +func (o *Values) SetOriginStatus301(v int32) { + o.OriginStatus301 = &v +} + +// GetOriginStatus302 returns the OriginStatus302 field value if set, zero value otherwise. +func (o *Values) GetOriginStatus302() int32 { + if o == nil || o.OriginStatus302 == nil { + var ret int32 + return ret + } + return *o.OriginStatus302 +} + +// GetOriginStatus302Ok returns a tuple with the OriginStatus302 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Values) GetOriginStatus302Ok() (*int32, bool) { + if o == nil || o.OriginStatus302 == nil { + return nil, false + } + return o.OriginStatus302, true +} + +// HasOriginStatus302 returns a boolean if a field has been set. +func (o *Values) HasOriginStatus302() bool { + if o != nil && o.OriginStatus302 != nil { + return true + } + + return false +} + +// SetOriginStatus302 gets a reference to the given int32 and assigns it to the OriginStatus302 field. +func (o *Values) SetOriginStatus302(v int32) { + o.OriginStatus302 = &v +} + +// GetOriginStatus304 returns the OriginStatus304 field value if set, zero value otherwise. +func (o *Values) GetOriginStatus304() int32 { + if o == nil || o.OriginStatus304 == nil { + var ret int32 + return ret + } + return *o.OriginStatus304 +} + +// GetOriginStatus304Ok returns a tuple with the OriginStatus304 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Values) GetOriginStatus304Ok() (*int32, bool) { + if o == nil || o.OriginStatus304 == nil { + return nil, false + } + return o.OriginStatus304, true +} + +// HasOriginStatus304 returns a boolean if a field has been set. +func (o *Values) HasOriginStatus304() bool { + if o != nil && o.OriginStatus304 != nil { + return true + } + + return false +} + +// SetOriginStatus304 gets a reference to the given int32 and assigns it to the OriginStatus304 field. +func (o *Values) SetOriginStatus304(v int32) { + o.OriginStatus304 = &v +} + +// GetOriginStatus400 returns the OriginStatus400 field value if set, zero value otherwise. +func (o *Values) GetOriginStatus400() int32 { + if o == nil || o.OriginStatus400 == nil { + var ret int32 + return ret + } + return *o.OriginStatus400 +} + +// GetOriginStatus400Ok returns a tuple with the OriginStatus400 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Values) GetOriginStatus400Ok() (*int32, bool) { + if o == nil || o.OriginStatus400 == nil { + return nil, false + } + return o.OriginStatus400, true +} + +// HasOriginStatus400 returns a boolean if a field has been set. +func (o *Values) HasOriginStatus400() bool { + if o != nil && o.OriginStatus400 != nil { + return true + } + + return false +} + +// SetOriginStatus400 gets a reference to the given int32 and assigns it to the OriginStatus400 field. +func (o *Values) SetOriginStatus400(v int32) { + o.OriginStatus400 = &v +} + +// GetOriginStatus401 returns the OriginStatus401 field value if set, zero value otherwise. +func (o *Values) GetOriginStatus401() int32 { + if o == nil || o.OriginStatus401 == nil { + var ret int32 + return ret + } + return *o.OriginStatus401 +} + +// GetOriginStatus401Ok returns a tuple with the OriginStatus401 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Values) GetOriginStatus401Ok() (*int32, bool) { + if o == nil || o.OriginStatus401 == nil { + return nil, false + } + return o.OriginStatus401, true +} + +// HasOriginStatus401 returns a boolean if a field has been set. +func (o *Values) HasOriginStatus401() bool { + if o != nil && o.OriginStatus401 != nil { + return true + } + + return false +} + +// SetOriginStatus401 gets a reference to the given int32 and assigns it to the OriginStatus401 field. +func (o *Values) SetOriginStatus401(v int32) { + o.OriginStatus401 = &v +} + +// GetOriginStatus403 returns the OriginStatus403 field value if set, zero value otherwise. +func (o *Values) GetOriginStatus403() int32 { + if o == nil || o.OriginStatus403 == nil { + var ret int32 + return ret + } + return *o.OriginStatus403 +} + +// GetOriginStatus403Ok returns a tuple with the OriginStatus403 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Values) GetOriginStatus403Ok() (*int32, bool) { + if o == nil || o.OriginStatus403 == nil { + return nil, false + } + return o.OriginStatus403, true +} + +// HasOriginStatus403 returns a boolean if a field has been set. +func (o *Values) HasOriginStatus403() bool { + if o != nil && o.OriginStatus403 != nil { + return true + } + + return false +} + +// SetOriginStatus403 gets a reference to the given int32 and assigns it to the OriginStatus403 field. +func (o *Values) SetOriginStatus403(v int32) { + o.OriginStatus403 = &v +} + +// GetOriginStatus404 returns the OriginStatus404 field value if set, zero value otherwise. +func (o *Values) GetOriginStatus404() int32 { + if o == nil || o.OriginStatus404 == nil { + var ret int32 + return ret + } + return *o.OriginStatus404 +} + +// GetOriginStatus404Ok returns a tuple with the OriginStatus404 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Values) GetOriginStatus404Ok() (*int32, bool) { + if o == nil || o.OriginStatus404 == nil { + return nil, false + } + return o.OriginStatus404, true +} + +// HasOriginStatus404 returns a boolean if a field has been set. +func (o *Values) HasOriginStatus404() bool { + if o != nil && o.OriginStatus404 != nil { + return true + } + + return false +} + +// SetOriginStatus404 gets a reference to the given int32 and assigns it to the OriginStatus404 field. +func (o *Values) SetOriginStatus404(v int32) { + o.OriginStatus404 = &v +} + +// GetOriginStatus416 returns the OriginStatus416 field value if set, zero value otherwise. +func (o *Values) GetOriginStatus416() int32 { + if o == nil || o.OriginStatus416 == nil { + var ret int32 + return ret + } + return *o.OriginStatus416 +} + +// GetOriginStatus416Ok returns a tuple with the OriginStatus416 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Values) GetOriginStatus416Ok() (*int32, bool) { + if o == nil || o.OriginStatus416 == nil { + return nil, false + } + return o.OriginStatus416, true +} + +// HasOriginStatus416 returns a boolean if a field has been set. +func (o *Values) HasOriginStatus416() bool { + if o != nil && o.OriginStatus416 != nil { + return true + } + + return false +} + +// SetOriginStatus416 gets a reference to the given int32 and assigns it to the OriginStatus416 field. +func (o *Values) SetOriginStatus416(v int32) { + o.OriginStatus416 = &v +} + +// GetOriginStatus429 returns the OriginStatus429 field value if set, zero value otherwise. +func (o *Values) GetOriginStatus429() int32 { + if o == nil || o.OriginStatus429 == nil { + var ret int32 + return ret + } + return *o.OriginStatus429 +} + +// GetOriginStatus429Ok returns a tuple with the OriginStatus429 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Values) GetOriginStatus429Ok() (*int32, bool) { + if o == nil || o.OriginStatus429 == nil { + return nil, false + } + return o.OriginStatus429, true +} + +// HasOriginStatus429 returns a boolean if a field has been set. +func (o *Values) HasOriginStatus429() bool { + if o != nil && o.OriginStatus429 != nil { + return true + } + + return false +} + +// SetOriginStatus429 gets a reference to the given int32 and assigns it to the OriginStatus429 field. +func (o *Values) SetOriginStatus429(v int32) { + o.OriginStatus429 = &v +} + +// GetOriginStatus500 returns the OriginStatus500 field value if set, zero value otherwise. +func (o *Values) GetOriginStatus500() int32 { + if o == nil || o.OriginStatus500 == nil { + var ret int32 + return ret + } + return *o.OriginStatus500 +} + +// GetOriginStatus500Ok returns a tuple with the OriginStatus500 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Values) GetOriginStatus500Ok() (*int32, bool) { + if o == nil || o.OriginStatus500 == nil { + return nil, false + } + return o.OriginStatus500, true +} + +// HasOriginStatus500 returns a boolean if a field has been set. +func (o *Values) HasOriginStatus500() bool { + if o != nil && o.OriginStatus500 != nil { + return true + } + + return false +} + +// SetOriginStatus500 gets a reference to the given int32 and assigns it to the OriginStatus500 field. +func (o *Values) SetOriginStatus500(v int32) { + o.OriginStatus500 = &v +} + +// GetOriginStatus501 returns the OriginStatus501 field value if set, zero value otherwise. +func (o *Values) GetOriginStatus501() int32 { + if o == nil || o.OriginStatus501 == nil { + var ret int32 + return ret + } + return *o.OriginStatus501 +} + +// GetOriginStatus501Ok returns a tuple with the OriginStatus501 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Values) GetOriginStatus501Ok() (*int32, bool) { + if o == nil || o.OriginStatus501 == nil { + return nil, false + } + return o.OriginStatus501, true +} + +// HasOriginStatus501 returns a boolean if a field has been set. +func (o *Values) HasOriginStatus501() bool { + if o != nil && o.OriginStatus501 != nil { + return true + } + + return false +} + +// SetOriginStatus501 gets a reference to the given int32 and assigns it to the OriginStatus501 field. +func (o *Values) SetOriginStatus501(v int32) { + o.OriginStatus501 = &v +} + +// GetOriginStatus502 returns the OriginStatus502 field value if set, zero value otherwise. +func (o *Values) GetOriginStatus502() int32 { + if o == nil || o.OriginStatus502 == nil { + var ret int32 + return ret + } + return *o.OriginStatus502 +} + +// GetOriginStatus502Ok returns a tuple with the OriginStatus502 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Values) GetOriginStatus502Ok() (*int32, bool) { + if o == nil || o.OriginStatus502 == nil { + return nil, false + } + return o.OriginStatus502, true +} + +// HasOriginStatus502 returns a boolean if a field has been set. +func (o *Values) HasOriginStatus502() bool { + if o != nil && o.OriginStatus502 != nil { + return true + } + + return false +} + +// SetOriginStatus502 gets a reference to the given int32 and assigns it to the OriginStatus502 field. +func (o *Values) SetOriginStatus502(v int32) { + o.OriginStatus502 = &v +} + +// GetOriginStatus503 returns the OriginStatus503 field value if set, zero value otherwise. +func (o *Values) GetOriginStatus503() int32 { + if o == nil || o.OriginStatus503 == nil { + var ret int32 + return ret + } + return *o.OriginStatus503 +} + +// GetOriginStatus503Ok returns a tuple with the OriginStatus503 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Values) GetOriginStatus503Ok() (*int32, bool) { + if o == nil || o.OriginStatus503 == nil { + return nil, false + } + return o.OriginStatus503, true +} + +// HasOriginStatus503 returns a boolean if a field has been set. +func (o *Values) HasOriginStatus503() bool { + if o != nil && o.OriginStatus503 != nil { + return true + } + + return false +} + +// SetOriginStatus503 gets a reference to the given int32 and assigns it to the OriginStatus503 field. +func (o *Values) SetOriginStatus503(v int32) { + o.OriginStatus503 = &v +} + +// GetOriginStatus504 returns the OriginStatus504 field value if set, zero value otherwise. +func (o *Values) GetOriginStatus504() int32 { + if o == nil || o.OriginStatus504 == nil { + var ret int32 + return ret + } + return *o.OriginStatus504 +} + +// GetOriginStatus504Ok returns a tuple with the OriginStatus504 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Values) GetOriginStatus504Ok() (*int32, bool) { + if o == nil || o.OriginStatus504 == nil { + return nil, false + } + return o.OriginStatus504, true +} + +// HasOriginStatus504 returns a boolean if a field has been set. +func (o *Values) HasOriginStatus504() bool { + if o != nil && o.OriginStatus504 != nil { + return true + } + + return false +} + +// SetOriginStatus504 gets a reference to the given int32 and assigns it to the OriginStatus504 field. +func (o *Values) SetOriginStatus504(v int32) { + o.OriginStatus504 = &v +} + +// GetOriginStatus505 returns the OriginStatus505 field value if set, zero value otherwise. +func (o *Values) GetOriginStatus505() int32 { + if o == nil || o.OriginStatus505 == nil { + var ret int32 + return ret + } + return *o.OriginStatus505 +} + +// GetOriginStatus505Ok returns a tuple with the OriginStatus505 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Values) GetOriginStatus505Ok() (*int32, bool) { + if o == nil || o.OriginStatus505 == nil { + return nil, false + } + return o.OriginStatus505, true +} + +// HasOriginStatus505 returns a boolean if a field has been set. +func (o *Values) HasOriginStatus505() bool { + if o != nil && o.OriginStatus505 != nil { + return true + } + + return false +} + +// SetOriginStatus505 gets a reference to the given int32 and assigns it to the OriginStatus505 field. +func (o *Values) SetOriginStatus505(v int32) { + o.OriginStatus505 = &v +} + +// GetOriginStatus1xx returns the OriginStatus1xx field value if set, zero value otherwise. +func (o *Values) GetOriginStatus1xx() int32 { + if o == nil || o.OriginStatus1xx == nil { + var ret int32 + return ret + } + return *o.OriginStatus1xx +} + +// GetOriginStatus1xxOk returns a tuple with the OriginStatus1xx field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Values) GetOriginStatus1xxOk() (*int32, bool) { + if o == nil || o.OriginStatus1xx == nil { + return nil, false + } + return o.OriginStatus1xx, true +} + +// HasOriginStatus1xx returns a boolean if a field has been set. +func (o *Values) HasOriginStatus1xx() bool { + if o != nil && o.OriginStatus1xx != nil { + return true + } + + return false +} + +// SetOriginStatus1xx gets a reference to the given int32 and assigns it to the OriginStatus1xx field. +func (o *Values) SetOriginStatus1xx(v int32) { + o.OriginStatus1xx = &v +} + +// GetOriginStatus2xx returns the OriginStatus2xx field value if set, zero value otherwise. +func (o *Values) GetOriginStatus2xx() int32 { + if o == nil || o.OriginStatus2xx == nil { + var ret int32 + return ret + } + return *o.OriginStatus2xx +} + +// GetOriginStatus2xxOk returns a tuple with the OriginStatus2xx field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Values) GetOriginStatus2xxOk() (*int32, bool) { + if o == nil || o.OriginStatus2xx == nil { + return nil, false + } + return o.OriginStatus2xx, true +} + +// HasOriginStatus2xx returns a boolean if a field has been set. +func (o *Values) HasOriginStatus2xx() bool { + if o != nil && o.OriginStatus2xx != nil { + return true + } + + return false +} + +// SetOriginStatus2xx gets a reference to the given int32 and assigns it to the OriginStatus2xx field. +func (o *Values) SetOriginStatus2xx(v int32) { + o.OriginStatus2xx = &v +} + +// GetOriginStatus3xx returns the OriginStatus3xx field value if set, zero value otherwise. +func (o *Values) GetOriginStatus3xx() int32 { + if o == nil || o.OriginStatus3xx == nil { + var ret int32 + return ret + } + return *o.OriginStatus3xx +} + +// GetOriginStatus3xxOk returns a tuple with the OriginStatus3xx field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Values) GetOriginStatus3xxOk() (*int32, bool) { + if o == nil || o.OriginStatus3xx == nil { + return nil, false + } + return o.OriginStatus3xx, true +} + +// HasOriginStatus3xx returns a boolean if a field has been set. +func (o *Values) HasOriginStatus3xx() bool { + if o != nil && o.OriginStatus3xx != nil { + return true + } + + return false +} + +// SetOriginStatus3xx gets a reference to the given int32 and assigns it to the OriginStatus3xx field. +func (o *Values) SetOriginStatus3xx(v int32) { + o.OriginStatus3xx = &v +} + +// GetOriginStatus4xx returns the OriginStatus4xx field value if set, zero value otherwise. +func (o *Values) GetOriginStatus4xx() int32 { + if o == nil || o.OriginStatus4xx == nil { + var ret int32 + return ret + } + return *o.OriginStatus4xx +} + +// GetOriginStatus4xxOk returns a tuple with the OriginStatus4xx field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Values) GetOriginStatus4xxOk() (*int32, bool) { + if o == nil || o.OriginStatus4xx == nil { + return nil, false + } + return o.OriginStatus4xx, true +} + +// HasOriginStatus4xx returns a boolean if a field has been set. +func (o *Values) HasOriginStatus4xx() bool { + if o != nil && o.OriginStatus4xx != nil { + return true + } + + return false +} + +// SetOriginStatus4xx gets a reference to the given int32 and assigns it to the OriginStatus4xx field. +func (o *Values) SetOriginStatus4xx(v int32) { + o.OriginStatus4xx = &v +} + +// GetOriginStatus5xx returns the OriginStatus5xx field value if set, zero value otherwise. +func (o *Values) GetOriginStatus5xx() int32 { + if o == nil || o.OriginStatus5xx == nil { + var ret int32 + return ret + } + return *o.OriginStatus5xx +} + +// GetOriginStatus5xxOk returns a tuple with the OriginStatus5xx field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Values) GetOriginStatus5xxOk() (*int32, bool) { + if o == nil || o.OriginStatus5xx == nil { + return nil, false + } + return o.OriginStatus5xx, true +} + +// HasOriginStatus5xx returns a boolean if a field has been set. +func (o *Values) HasOriginStatus5xx() bool { + if o != nil && o.OriginStatus5xx != nil { + return true + } + + return false +} + +// SetOriginStatus5xx gets a reference to the given int32 and assigns it to the OriginStatus5xx field. +func (o *Values) SetOriginStatus5xx(v int32) { + o.OriginStatus5xx = &v +} + +// MarshalJSON implements the json.Marshaler interface. +// Marshaler is the interface implemented by types that can marshal themselves into valid JSON. +func (o Values) MarshalJSON() ([]byte, error) { + toSerialize := map[string]any{} + if o.EdgeRequests != nil { + toSerialize["edge_requests"] = o.EdgeRequests + } + if o.EdgeRespHeaderBytes != nil { + toSerialize["edge_resp_header_bytes"] = o.EdgeRespHeaderBytes + } + if o.EdgeRespBodyBytes != nil { + toSerialize["edge_resp_body_bytes"] = o.EdgeRespBodyBytes + } + if o.Status1xx != nil { + toSerialize["status_1xx"] = o.Status1xx + } + if o.Status2xx != nil { + toSerialize["status_2xx"] = o.Status2xx + } + if o.Status3xx != nil { + toSerialize["status_3xx"] = o.Status3xx + } + if o.Status4xx != nil { + toSerialize["status_4xx"] = o.Status4xx + } + if o.Status5xx != nil { + toSerialize["status_5xx"] = o.Status5xx + } + if o.Status200 != nil { + toSerialize["status_200"] = o.Status200 + } + if o.Status204 != nil { + toSerialize["status_204"] = o.Status204 + } + if o.Status206 != nil { + toSerialize["status_206"] = o.Status206 + } + if o.Status301 != nil { + toSerialize["status_301"] = o.Status301 + } + if o.Status302 != nil { + toSerialize["status_302"] = o.Status302 + } + if o.Status304 != nil { + toSerialize["status_304"] = o.Status304 + } + if o.Status400 != nil { + toSerialize["status_400"] = o.Status400 + } + if o.Status401 != nil { + toSerialize["status_401"] = o.Status401 + } + if o.Status403 != nil { + toSerialize["status_403"] = o.Status403 + } + if o.Status404 != nil { + toSerialize["status_404"] = o.Status404 + } + if o.Status416 != nil { + toSerialize["status_416"] = o.Status416 + } + if o.Status429 != nil { + toSerialize["status_429"] = o.Status429 + } + if o.Status500 != nil { + toSerialize["status_500"] = o.Status500 + } + if o.Status501 != nil { + toSerialize["status_501"] = o.Status501 + } + if o.Status502 != nil { + toSerialize["status_502"] = o.Status502 + } + if o.Status503 != nil { + toSerialize["status_503"] = o.Status503 + } + if o.Status504 != nil { + toSerialize["status_504"] = o.Status504 + } + if o.Status505 != nil { + toSerialize["status_505"] = o.Status505 + } + if o.Requests != nil { + toSerialize["requests"] = o.Requests + } + if o.RespHeaderBytes != nil { + toSerialize["resp_header_bytes"] = o.RespHeaderBytes + } + if o.RespBodyBytes != nil { + toSerialize["resp_body_bytes"] = o.RespBodyBytes + } + if o.BereqHeaderBytes != nil { + toSerialize["bereq_header_bytes"] = o.BereqHeaderBytes + } + if o.BereqBodyBytes != nil { + toSerialize["bereq_body_bytes"] = o.BereqBodyBytes + } + if o.EdgeHitRequests != nil { + toSerialize["edge_hit_requests"] = o.EdgeHitRequests + } + if o.EdgeMissRequests != nil { + toSerialize["edge_miss_requests"] = o.EdgeMissRequests + } + if o.OriginFetches != nil { + toSerialize["origin_fetches"] = o.OriginFetches + } + if o.OriginFetchRespHeaderBytes != nil { + toSerialize["origin_fetch_resp_header_bytes"] = o.OriginFetchRespHeaderBytes + } + if o.OriginFetchRespBodyBytes != nil { + toSerialize["origin_fetch_resp_body_bytes"] = o.OriginFetchRespBodyBytes + } + if o.Bandwidth != nil { + toSerialize["bandwidth"] = o.Bandwidth + } + if o.EdgeHitRatio != nil { + toSerialize["edge_hit_ratio"] = o.EdgeHitRatio + } + if o.OriginOffload != nil { + toSerialize["origin_offload"] = o.OriginOffload + } + if o.OriginStatus200 != nil { + toSerialize["origin_status_200"] = o.OriginStatus200 + } + if o.OriginStatus204 != nil { + toSerialize["origin_status_204"] = o.OriginStatus204 + } + if o.OriginStatus206 != nil { + toSerialize["origin_status_206"] = o.OriginStatus206 + } + if o.OriginStatus301 != nil { + toSerialize["origin_status_301"] = o.OriginStatus301 + } + if o.OriginStatus302 != nil { + toSerialize["origin_status_302"] = o.OriginStatus302 + } + if o.OriginStatus304 != nil { + toSerialize["origin_status_304"] = o.OriginStatus304 + } + if o.OriginStatus400 != nil { + toSerialize["origin_status_400"] = o.OriginStatus400 + } + if o.OriginStatus401 != nil { + toSerialize["origin_status_401"] = o.OriginStatus401 + } + if o.OriginStatus403 != nil { + toSerialize["origin_status_403"] = o.OriginStatus403 + } + if o.OriginStatus404 != nil { + toSerialize["origin_status_404"] = o.OriginStatus404 + } + if o.OriginStatus416 != nil { + toSerialize["origin_status_416"] = o.OriginStatus416 + } + if o.OriginStatus429 != nil { + toSerialize["origin_status_429"] = o.OriginStatus429 + } + if o.OriginStatus500 != nil { + toSerialize["origin_status_500"] = o.OriginStatus500 + } + if o.OriginStatus501 != nil { + toSerialize["origin_status_501"] = o.OriginStatus501 + } + if o.OriginStatus502 != nil { + toSerialize["origin_status_502"] = o.OriginStatus502 + } + if o.OriginStatus503 != nil { + toSerialize["origin_status_503"] = o.OriginStatus503 + } + if o.OriginStatus504 != nil { + toSerialize["origin_status_504"] = o.OriginStatus504 + } + if o.OriginStatus505 != nil { + toSerialize["origin_status_505"] = o.OriginStatus505 + } + if o.OriginStatus1xx != nil { + toSerialize["origin_status_1xx"] = o.OriginStatus1xx + } + if o.OriginStatus2xx != nil { + toSerialize["origin_status_2xx"] = o.OriginStatus2xx + } + if o.OriginStatus3xx != nil { + toSerialize["origin_status_3xx"] = o.OriginStatus3xx + } + if o.OriginStatus4xx != nil { + toSerialize["origin_status_4xx"] = o.OriginStatus4xx + } + if o.OriginStatus5xx != nil { + toSerialize["origin_status_5xx"] = o.OriginStatus5xx + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return json.Marshal(toSerialize) +} + +// UnmarshalJSON implements the Unmarshaler interface. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +func (o *Values) UnmarshalJSON(bytes []byte) (err error) { + varValues := _Values{} + + if err = json.Unmarshal(bytes, &varValues); err == nil { + *o = Values(varValues) + } + + additionalProperties := make(map[string]any) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "edge_requests") + delete(additionalProperties, "edge_resp_header_bytes") + delete(additionalProperties, "edge_resp_body_bytes") + delete(additionalProperties, "status_1xx") + delete(additionalProperties, "status_2xx") + delete(additionalProperties, "status_3xx") + delete(additionalProperties, "status_4xx") + delete(additionalProperties, "status_5xx") + delete(additionalProperties, "status_200") + delete(additionalProperties, "status_204") + delete(additionalProperties, "status_206") + delete(additionalProperties, "status_301") + delete(additionalProperties, "status_302") + delete(additionalProperties, "status_304") + delete(additionalProperties, "status_400") + delete(additionalProperties, "status_401") + delete(additionalProperties, "status_403") + delete(additionalProperties, "status_404") + delete(additionalProperties, "status_416") + delete(additionalProperties, "status_429") + delete(additionalProperties, "status_500") + delete(additionalProperties, "status_501") + delete(additionalProperties, "status_502") + delete(additionalProperties, "status_503") + delete(additionalProperties, "status_504") + delete(additionalProperties, "status_505") + delete(additionalProperties, "requests") + delete(additionalProperties, "resp_header_bytes") + delete(additionalProperties, "resp_body_bytes") + delete(additionalProperties, "bereq_header_bytes") + delete(additionalProperties, "bereq_body_bytes") + delete(additionalProperties, "edge_hit_requests") + delete(additionalProperties, "edge_miss_requests") + delete(additionalProperties, "origin_fetches") + delete(additionalProperties, "origin_fetch_resp_header_bytes") + delete(additionalProperties, "origin_fetch_resp_body_bytes") + delete(additionalProperties, "bandwidth") + delete(additionalProperties, "edge_hit_ratio") + delete(additionalProperties, "origin_offload") + delete(additionalProperties, "origin_status_200") + delete(additionalProperties, "origin_status_204") + delete(additionalProperties, "origin_status_206") + delete(additionalProperties, "origin_status_301") + delete(additionalProperties, "origin_status_302") + delete(additionalProperties, "origin_status_304") + delete(additionalProperties, "origin_status_400") + delete(additionalProperties, "origin_status_401") + delete(additionalProperties, "origin_status_403") + delete(additionalProperties, "origin_status_404") + delete(additionalProperties, "origin_status_416") + delete(additionalProperties, "origin_status_429") + delete(additionalProperties, "origin_status_500") + delete(additionalProperties, "origin_status_501") + delete(additionalProperties, "origin_status_502") + delete(additionalProperties, "origin_status_503") + delete(additionalProperties, "origin_status_504") + delete(additionalProperties, "origin_status_505") + delete(additionalProperties, "origin_status_1xx") + delete(additionalProperties, "origin_status_2xx") + delete(additionalProperties, "origin_status_3xx") + delete(additionalProperties, "origin_status_4xx") + delete(additionalProperties, "origin_status_5xx") + o.AdditionalProperties = additionalProperties + } + + return err +} + +// NullableValues is a helper abstraction for handling nullable values types. +type NullableValues struct { + value *Values + isSet bool +} + +// Get returns the value. +func (v NullableValues) Get() *Values { + return v.value +} + +// Set modifies the value. +func (v *NullableValues) Set(val *Values) { + v.value = val + v.isSet = true +} + +// IsSet indicates if the value was set. +func (v NullableValues) IsSet() bool { + return v.isSet +} + +// Unset removes the value. +func (v *NullableValues) Unset() { + v.value = nil + v.isSet = false +} + +// NewNullableValues returns a pointer to a new instance of NullableValues. +func NewNullableValues(val *Values) *NullableValues { + return &NullableValues{value: val, isSet: true} +} + +// MarshalJSON implements the json.Marshaler interface. +// Marshaler is the interface implemented by types that can marshal themselves into valid JSON. +func (v NullableValues) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +// UnmarshalJSON implements the Unmarshaler interface. +// Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. +func (v *NullableValues) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/sig.json b/sig.json index 452166f5..3f615f1e 100644 --- a/sig.json +++ b/sig.json @@ -1 +1 @@ -{"G": "1737d053", "D": "d944a1e9"} +{"G": "4b5c526d", "D": "37a4f474"}