From 29d0255d80fedcddad6fbf194c07c6a586872973 Mon Sep 17 00:00:00 2001 From: github-actions Date: Mon, 31 Jul 2023 16:38:17 +0000 Subject: [PATCH] Generated v4.0.0 --- CHANGELOG.md | 19 + docs/Api/CacheSettingsApi.md | 16 +- docs/Api/DomainApi.md | 4 +- docs/Api/HeaderApi.md | 16 +- docs/Api/LoggingAzureblobApi.md | 16 +- docs/Api/LoggingBigqueryApi.md | 8 +- docs/Api/LoggingCloudfilesApi.md | 16 +- docs/Api/LoggingDatadogApi.md | 8 +- docs/Api/LoggingDigitaloceanApi.md | 16 +- docs/Api/LoggingElasticsearchApi.md | 8 +- docs/Api/LoggingFtpApi.md | 24 +- docs/Api/LoggingGcsApi.md | 16 +- docs/Api/LoggingHerokuApi.md | 8 +- docs/Api/LoggingHoneycombApi.md | 16 +- docs/Api/LoggingHttpsApi.md | 8 +- docs/Api/LoggingKafkaApi.md | 8 +- docs/Api/LoggingKinesisApi.md | 4 +- docs/Api/LoggingLogentriesApi.md | 8 +- docs/Api/LoggingLogglyApi.md | 8 +- docs/Api/LoggingLogshuttleApi.md | 8 +- docs/Api/LoggingNewrelicApi.md | 8 +- docs/Api/LoggingOpenstackApi.md | 16 +- docs/Api/LoggingPapertrailApi.md | 8 +- docs/Api/LoggingPubsubApi.md | 8 +- docs/Api/LoggingS3Api.md | 16 +- docs/Api/LoggingScalyrApi.md | 8 +- docs/Api/LoggingSftpApi.md | 16 +- docs/Api/LoggingSplunkApi.md | 8 +- docs/Api/LoggingSumologicApi.md | 8 +- docs/Api/LoggingSyslogApi.md | 8 +- docs/Api/PoolApi.md | 68 +- docs/Api/RequestSettingsApi.md | 20 +- docs/Model/CacheSetting.md | 4 +- docs/Model/CacheSettingResponse.md | 6 +- docs/Model/GzipResponse.md | 2 +- docs/Model/Header.md | 2 - docs/Model/HeaderResponse.md | 6 +- docs/Model/HeaderResponseAdditional.md | 11 + docs/Model/LoggingAzureblob.md | 25 - ...AllOf.md => LoggingAzureblobAdditional.md} | 2 +- docs/Model/LoggingAzureblobResponse.md | 16 +- docs/Model/LoggingBigquery.md | 21 - ...yAllOf.md => LoggingBigqueryAdditional.md} | 2 +- docs/Model/LoggingBigqueryResponse.md | 4 +- docs/Model/LoggingCloudfiles.md | 25 - ...llOf.md => LoggingCloudfilesAdditional.md} | 2 +- docs/Model/LoggingCloudfilesResponse.md | 16 +- docs/Model/LoggingCommon.md | 1 - ...Papertrail.md => LoggingCommonResponse.md} | 6 +- ...logic.md => LoggingCommonResponseAllOf.md} | 5 +- docs/Model/LoggingCommonResponseAllOf1.md | 10 + docs/Model/LoggingDatadog.md | 16 - ...ogAllOf.md => LoggingDatadogAdditional.md} | 2 +- docs/Model/LoggingDatadogResponse.md | 4 +- docs/Model/LoggingDigitalocean.md | 25 - ...Of.md => LoggingDigitaloceanAdditional.md} | 2 +- docs/Model/LoggingDigitaloceanResponse.md | 16 +- docs/Model/LoggingElasticsearch.md | 25 - ...f.md => LoggingElasticsearchAdditional.md} | 2 +- docs/Model/LoggingElasticsearchResponse.md | 4 +- docs/Model/LoggingFormatVersionInteger.md | 10 + docs/Model/LoggingFormatVersionString.md | 10 + docs/Model/LoggingFtp.md | 27 - ...ingFtpAllOf.md => LoggingFtpAdditional.md} | 3 +- docs/Model/LoggingFtpResponse.md | 18 +- ...tVersion.md => LoggingFtpResponseAllOf.md} | 3 +- docs/Model/LoggingGcs.md | 26 - ...ingGcsAllOf.md => LoggingGcsAdditional.md} | 2 +- docs/Model/LoggingGcsResponse.md | 16 +- docs/Model/LoggingGenericCommon.md | 2 - docs/Model/LoggingGenericCommonResponse.md | 14 + .../LoggingGenericCommonResponseAllOf.md | 12 + .../LoggingGenericCommonResponseAllOf1.md | 11 + docs/Model/LoggingGooglePubsub.md | 19 - ...Of.md => LoggingGooglePubsubAdditional.md} | 2 +- docs/Model/LoggingGooglePubsubResponse.md | 4 +- docs/Model/LoggingHeroku.md | 16 - ...okuAllOf.md => LoggingHerokuAdditional.md} | 2 +- docs/Model/LoggingHerokuResponse.md | 4 +- docs/Model/LoggingHoneycomb.md | 16 - ...AllOf.md => LoggingHoneycombAdditional.md} | 2 +- docs/Model/LoggingHoneycombResponse.md | 4 +- docs/Model/LoggingHttps.md | 27 - ...ttpsAllOf.md => LoggingHttpsAdditional.md} | 2 +- docs/Model/LoggingHttpsResponse.md | 4 +- ...afkaAllOf.md => LoggingKafkaAdditional.md} | 2 +- docs/Model/LoggingKafkaResponse.md | 12 +- ...ngKafka.md => LoggingKafkaResponsePost.md} | 9 +- ...Kinesis.md => LoggingKinesisAdditional.md} | 3 +- docs/Model/LoggingKinesisResponse.md | 4 +- docs/Model/LoggingLogentries.md | 18 - ...llOf.md => LoggingLogentriesAdditional.md} | 2 +- docs/Model/LoggingLogentriesResponse.md | 4 +- docs/Model/LoggingLoggly.md | 15 - ...glyAllOf.md => LoggingLogglyAdditional.md} | 2 +- docs/Model/LoggingLogglyResponse.md | 4 +- docs/Model/LoggingLogshuttle.md | 16 - ...llOf.md => LoggingLogshuttleAdditional.md} | 2 +- docs/Model/LoggingLogshuttleResponse.md | 4 +- docs/Model/LoggingNewrelic.md | 16 - ...cAllOf.md => LoggingNewrelicAdditional.md} | 2 +- docs/Model/LoggingNewrelicResponse.md | 4 +- docs/Model/LoggingOpenstack.md | 25 - ...AllOf.md => LoggingOpenstackAdditional.md} | 2 +- docs/Model/LoggingOpenstackResponse.md | 16 +- docs/Model/LoggingPapertrailResponse.md | 4 +- docs/Model/LoggingS3.md | 30 - ...ggingS3AllOf.md => LoggingS3Additional.md} | 2 +- docs/Model/LoggingS3Response.md | 16 +- docs/Model/LoggingScalyr.md | 17 - ...lyrAllOf.md => LoggingScalyrAdditional.md} | 2 +- docs/Model/LoggingScalyrResponse.md | 4 +- docs/Model/LoggingSftp.md | 27 - ...gSftpAllOf.md => LoggingSftpAdditional.md} | 3 +- docs/Model/LoggingSftpResponse.md | 20 +- docs/Model/LoggingSftpResponseAllOf.md | 13 + docs/Model/LoggingSplunk.md | 23 - ...unkAllOf.md => LoggingSplunkAdditional.md} | 2 +- docs/Model/LoggingSplunkResponse.md | 4 +- ...AllOf.md => LoggingSumologicAdditional.md} | 2 +- docs/Model/LoggingSumologicResponse.md | 4 +- docs/Model/LoggingSyslog.md | 25 - ...logAllOf.md => LoggingSyslogAdditional.md} | 2 +- docs/Model/LoggingSyslogResponse.md | 4 +- .../Model/{PoolAllOf.md => PoolAdditional.md} | 7 +- docs/Model/PoolResponse.md | 23 +- docs/Model/PoolResponseAllOf.md | 2 +- docs/Model/PoolResponseCommon.md | 15 + docs/Model/{Pool.md => PoolResponsePost.md} | 21 +- ...nCheckItem.md => PoolResponsePostAllOf.md} | 5 +- ...ttings.md => RequestSettingsAdditional.md} | 8 +- docs/Model/RequestSettingsResponse.md | 22 +- docs/Model/RequestSettingsResponseAllOf.md | 15 + docs/Model/ResponseObject.md | 2 +- docs/Model/ResponseObjectResponse.md | 4 +- docs/Model/ServiceIdAndVersionString.md | 11 + docs/Model/TlsCommonResponse.md | 14 + ...TlsCommon.md => TlsCommonResponseAllOf.md} | 3 +- docs/Model/TlsCommonResponseAllOf1.md | 10 + .../Model/TlsSubscriptionResponseDataAllOf.md | 11 - lib/Api/CacheSettingsApi.php | 40 +- lib/Api/DomainApi.php | 14 +- lib/Api/HeaderApi.php | 80 +- lib/Api/LoggingAzureblobApi.php | 80 +- lib/Api/LoggingBigqueryApi.php | 40 +- lib/Api/LoggingCloudfilesApi.php | 80 +- lib/Api/LoggingDatadogApi.php | 40 +- lib/Api/LoggingDigitaloceanApi.php | 80 +- lib/Api/LoggingElasticsearchApi.php | 40 +- lib/Api/LoggingFtpApi.php | 120 +- lib/Api/LoggingGcsApi.php | 80 +- lib/Api/LoggingHerokuApi.php | 40 +- lib/Api/LoggingHoneycombApi.php | 68 +- lib/Api/LoggingHttpsApi.php | 40 +- lib/Api/LoggingKafkaApi.php | 34 +- lib/Api/LoggingKinesisApi.php | 20 +- lib/Api/LoggingLogentriesApi.php | 40 +- lib/Api/LoggingLogglyApi.php | 40 +- lib/Api/LoggingLogshuttleApi.php | 40 +- lib/Api/LoggingNewrelicApi.php | 40 +- lib/Api/LoggingOpenstackApi.php | 80 +- lib/Api/LoggingPapertrailApi.php | 40 +- lib/Api/LoggingPubsubApi.php | 40 +- lib/Api/LoggingS3Api.php | 80 +- lib/Api/LoggingScalyrApi.php | 40 +- lib/Api/LoggingSftpApi.php | 80 +- lib/Api/LoggingSplunkApi.php | 40 +- lib/Api/LoggingSumologicApi.php | 40 +- lib/Api/LoggingSyslogApi.php | 40 +- lib/Api/PoolApi.php | 326 +++-- lib/Api/RequestSettingsApi.php | 100 +- lib/Configuration.php | 4 +- lib/Model/CacheSetting.php | 12 +- lib/Model/CacheSettingResponse.php | 18 +- lib/Model/GzipResponse.php | 6 +- lib/Model/Header.php | 60 - lib/Model/HeaderResponse.php | 126 +- lib/Model/HeaderResponseAdditional.php | 344 ++++++ lib/Model/LoggingAzureblob.php | 917 -------------- ...lOf.php => LoggingAzureblobAdditional.php} | 10 +- lib/Model/LoggingAzureblobResponse.php | 410 +++---- lib/Model/LoggingBigquery.php | 714 ----------- ...llOf.php => LoggingBigqueryAdditional.php} | 8 +- lib/Model/LoggingBigqueryResponse.php | 86 +- lib/Model/LoggingCloudfiles.php | 952 --------------- ...Of.php => LoggingCloudfilesAdditional.php} | 8 +- lib/Model/LoggingCloudfilesResponse.php | 420 +++---- lib/Model/LoggingCommon.php | 64 - ...ngLoggly.php => LoggingCommonResponse.php} | 88 +- ...tle.php => LoggingCommonResponseAllOf.php} | 142 +-- lib/Model/LoggingCommonResponseAllOf1.php | 348 ++++++ lib/Model/LoggingDatadog.php | 598 ---------- ...AllOf.php => LoggingDatadogAdditional.php} | 8 +- lib/Model/LoggingDatadogResponse.php | 86 +- lib/Model/LoggingDigitalocean.php | 908 -------------- ....php => LoggingDigitaloceanAdditional.php} | 8 +- lib/Model/LoggingDigitaloceanResponse.php | 400 +++---- lib/Model/LoggingElasticsearch.php | 834 ------------- ...php => LoggingElasticsearchAdditional.php} | 8 +- lib/Model/LoggingElasticsearchResponse.php | 86 +- lib/Model/LoggingFormatVersion.php | 57 - lib/Model/LoggingFormatVersionInteger.php | 348 ++++++ lib/Model/LoggingFormatVersionString.php | 348 ++++++ lib/Model/LoggingFtp.php | 968 --------------- ...gFtpAllOf.php => LoggingFtpAdditional.php} | 38 +- lib/Model/LoggingFtpResponse.php | 432 +++---- lib/Model/LoggingFtpResponseAllOf.php | 314 +++++ lib/Model/LoggingGcs.php | 938 --------------- ...gGcsAllOf.php => LoggingGcsAdditional.php} | 8 +- lib/Model/LoggingGcsResponse.php | 360 +++--- lib/Model/LoggingGenericCommon.php | 60 - ...c.php => LoggingGenericCommonResponse.php} | 264 ++-- .../LoggingGenericCommonResponseAllOf.php | 448 +++++++ .../LoggingGenericCommonResponseAllOf1.php | 344 ++++++ lib/Model/LoggingGooglePubsub.php | 654 ---------- ....php => LoggingGooglePubsubAdditional.php} | 8 +- lib/Model/LoggingGooglePubsubResponse.php | 86 +- lib/Model/LoggingHeroku.php | 564 --------- ...uAllOf.php => LoggingHerokuAdditional.php} | 8 +- lib/Model/LoggingHerokuResponse.php | 86 +- lib/Model/LoggingHoneycomb.php | 564 --------- ...lOf.php => LoggingHoneycombAdditional.php} | 8 +- lib/Model/LoggingHoneycombResponse.php | 86 +- lib/Model/LoggingHttps.php | 964 --------------- ...psAllOf.php => LoggingHttpsAdditional.php} | 8 +- lib/Model/LoggingHttpsResponse.php | 86 +- ...kaAllOf.php => LoggingKafkaAdditional.php} | 8 +- lib/Model/LoggingKafkaResponse.php | 390 +++--- ...Kafka.php => LoggingKafkaResponsePost.php} | 236 +++- ...nesis.php => LoggingKinesisAdditional.php} | 38 +- lib/Model/LoggingKinesisResponse.php | 100 +- lib/Model/LoggingLogentries.php | 668 ----------- ...Of.php => LoggingLogentriesAdditional.php} | 8 +- lib/Model/LoggingLogentriesResponse.php | 86 +- ...yAllOf.php => LoggingLogglyAdditional.php} | 8 +- lib/Model/LoggingLogglyResponse.php | 86 +- ...Of.php => LoggingLogshuttleAdditional.php} | 8 +- lib/Model/LoggingLogshuttleResponse.php | 86 +- lib/Model/LoggingNewrelic.php | 598 ---------- ...llOf.php => LoggingNewrelicAdditional.php} | 8 +- lib/Model/LoggingNewrelicResponse.php | 86 +- lib/Model/LoggingOpenstack.php | 908 -------------- ...lOf.php => LoggingOpenstackAdditional.php} | 8 +- lib/Model/LoggingOpenstackResponse.php | 400 +++---- lib/Model/LoggingPapertrail.php | 564 --------- lib/Model/LoggingPapertrailResponse.php | 86 +- lib/Model/LoggingS3.php | 1058 ----------------- ...ingS3AllOf.php => LoggingS3Additional.php} | 8 +- lib/Model/LoggingS3Response.php | 448 +++---- lib/Model/LoggingScalyr.php | 628 ---------- ...rAllOf.php => LoggingScalyrAdditional.php} | 8 +- lib/Model/LoggingScalyrResponse.php | 86 +- lib/Model/LoggingSftp.php | 968 --------------- ...ftpAllOf.php => LoggingSftpAdditional.php} | 38 +- lib/Model/LoggingSftpResponse.php | 394 +++--- lib/Model/LoggingSftpResponseAllOf.php | 404 +++++++ lib/Model/LoggingSplunk.php | 774 ------------ ...kAllOf.php => LoggingSplunkAdditional.php} | 8 +- lib/Model/LoggingSplunkResponse.php | 86 +- ...lOf.php => LoggingSumologicAdditional.php} | 8 +- lib/Model/LoggingSumologicResponse.php | 86 +- lib/Model/LoggingSyslog.php | 834 ------------- ...gAllOf.php => LoggingSyslogAdditional.php} | 8 +- lib/Model/LoggingSyslogResponse.php | 86 +- .../{PoolAllOf.php => PoolAdditional.php} | 174 +-- lib/Model/PoolResponse.php | 422 +++---- lib/Model/PoolResponseAllOf.php | 26 +- lib/Model/PoolResponseCommon.php | 464 ++++++++ lib/Model/{Pool.php => PoolResponsePost.php} | 472 +++++--- lib/Model/PoolResponsePostAllOf.php | 314 +++++ ...ings.php => RequestSettingsAdditional.php} | 188 +-- lib/Model/RequestSettingsResponse.php | 402 +++---- lib/Model/RequestSettingsResponseAllOf.php | 464 ++++++++ lib/Model/ResponseObject.php | 8 +- lib/Model/ResponseObjectResponse.php | 14 +- ...Item.php => ServiceIdAndVersionString.php} | 60 +- .../{TlsCommon.php => TlsCommonResponse.php} | 20 +- lib/Model/TlsCommonResponseAllOf.php | 404 +++++++ lib/Model/TlsCommonResponseAllOf1.php | 348 ++++++ .../TlsSubscriptionResponseDataAllOf.php | 344 ------ sig.json | 2 +- 281 files changed, 10449 insertions(+), 23155 deletions(-) create mode 100644 docs/Model/HeaderResponseAdditional.md delete mode 100644 docs/Model/LoggingAzureblob.md rename docs/Model/{LoggingAzureblobAllOf.md => LoggingAzureblobAdditional.md} (97%) delete mode 100644 docs/Model/LoggingBigquery.md rename docs/Model/{LoggingBigqueryAllOf.md => LoggingBigqueryAdditional.md} (96%) delete mode 100644 docs/Model/LoggingCloudfiles.md rename docs/Model/{LoggingCloudfilesAllOf.md => LoggingCloudfilesAdditional.md} (96%) rename docs/Model/{LoggingPapertrail.md => LoggingCommonResponse.md} (66%) rename docs/Model/{LoggingSumologic.md => LoggingCommonResponseAllOf.md} (65%) create mode 100644 docs/Model/LoggingCommonResponseAllOf1.md delete mode 100644 docs/Model/LoggingDatadog.md rename docs/Model/{LoggingDatadogAllOf.md => LoggingDatadogAdditional.md} (99%) delete mode 100644 docs/Model/LoggingDigitalocean.md rename docs/Model/{LoggingDigitaloceanAllOf.md => LoggingDigitaloceanAdditional.md} (96%) delete mode 100644 docs/Model/LoggingElasticsearch.md rename docs/Model/{LoggingElasticsearchAllOf.md => LoggingElasticsearchAdditional.md} (97%) create mode 100644 docs/Model/LoggingFormatVersionInteger.md create mode 100644 docs/Model/LoggingFormatVersionString.md delete mode 100644 docs/Model/LoggingFtp.md rename docs/Model/{LoggingFtpAllOf.md => LoggingFtpAdditional.md} (90%) rename docs/Model/{LoggingFormatVersion.md => LoggingFtpResponseAllOf.md} (65%) delete mode 100644 docs/Model/LoggingGcs.md rename docs/Model/{LoggingGcsAllOf.md => LoggingGcsAdditional.md} (95%) create mode 100644 docs/Model/LoggingGenericCommonResponse.md create mode 100644 docs/Model/LoggingGenericCommonResponseAllOf.md create mode 100644 docs/Model/LoggingGenericCommonResponseAllOf1.md delete mode 100644 docs/Model/LoggingGooglePubsub.md rename docs/Model/{LoggingGooglePubsubAllOf.md => LoggingGooglePubsubAdditional.md} (94%) delete mode 100644 docs/Model/LoggingHeroku.md rename docs/Model/{LoggingHerokuAllOf.md => LoggingHerokuAdditional.md} (94%) delete mode 100644 docs/Model/LoggingHoneycomb.md rename docs/Model/{LoggingHoneycombAllOf.md => LoggingHoneycombAdditional.md} (94%) delete mode 100644 docs/Model/LoggingHttps.md rename docs/Model/{LoggingHttpsAllOf.md => LoggingHttpsAdditional.md} (98%) rename docs/Model/{LoggingKafkaAllOf.md => LoggingKafkaAdditional.md} (98%) rename docs/Model/{LoggingKafka.md => LoggingKafkaResponsePost.md} (88%) rename docs/Model/{LoggingKinesis.md => LoggingKinesisAdditional.md} (94%) delete mode 100644 docs/Model/LoggingLogentries.md rename docs/Model/{LoggingLogentriesAllOf.md => LoggingLogentriesAdditional.md} (95%) delete mode 100644 docs/Model/LoggingLoggly.md rename docs/Model/{LoggingLogglyAllOf.md => LoggingLogglyAdditional.md} (93%) delete mode 100644 docs/Model/LoggingLogshuttle.md rename docs/Model/{LoggingLogshuttleAllOf.md => LoggingLogshuttleAdditional.md} (91%) delete mode 100644 docs/Model/LoggingNewrelic.md rename docs/Model/{LoggingNewrelicAllOf.md => LoggingNewrelicAdditional.md} (97%) delete mode 100644 docs/Model/LoggingOpenstack.md rename docs/Model/{LoggingOpenstackAllOf.md => LoggingOpenstackAdditional.md} (96%) delete mode 100644 docs/Model/LoggingS3.md rename docs/Model/{LoggingS3AllOf.md => LoggingS3Additional.md} (98%) delete mode 100644 docs/Model/LoggingScalyr.md rename docs/Model/{LoggingScalyrAllOf.md => LoggingScalyrAdditional.md} (95%) delete mode 100644 docs/Model/LoggingSftp.md rename docs/Model/{LoggingSftpAllOf.md => LoggingSftpAdditional.md} (91%) create mode 100644 docs/Model/LoggingSftpResponseAllOf.md delete mode 100644 docs/Model/LoggingSplunk.md rename docs/Model/{LoggingSplunkAllOf.md => LoggingSplunkAdditional.md} (94%) rename docs/Model/{LoggingSumologicAllOf.md => LoggingSumologicAdditional.md} (92%) delete mode 100644 docs/Model/LoggingSyslog.md rename docs/Model/{LoggingSyslogAllOf.md => LoggingSyslogAdditional.md} (95%) rename docs/Model/{PoolAllOf.md => PoolAdditional.md} (76%) create mode 100644 docs/Model/PoolResponseCommon.md rename docs/Model/{Pool.md => PoolResponsePost.md} (68%) rename docs/Model/{DomainCheckItem.md => PoolResponsePostAllOf.md} (50%) rename docs/Model/{RequestSettings.md => RequestSettingsAdditional.md} (52%) create mode 100644 docs/Model/RequestSettingsResponseAllOf.md create mode 100644 docs/Model/ServiceIdAndVersionString.md create mode 100644 docs/Model/TlsCommonResponse.md rename docs/Model/{TlsCommon.md => TlsCommonResponseAllOf.md} (90%) create mode 100644 docs/Model/TlsCommonResponseAllOf1.md delete mode 100644 docs/Model/TlsSubscriptionResponseDataAllOf.md create mode 100644 lib/Model/HeaderResponseAdditional.php delete mode 100644 lib/Model/LoggingAzureblob.php rename lib/Model/{LoggingAzureblobAllOf.php => LoggingAzureblobAdditional.php} (96%) delete mode 100644 lib/Model/LoggingBigquery.php rename lib/Model/{LoggingBigqueryAllOf.php => LoggingBigqueryAdditional.php} (97%) delete mode 100644 lib/Model/LoggingCloudfiles.php rename lib/Model/{LoggingCloudfilesAllOf.php => LoggingCloudfilesAdditional.php} (97%) rename lib/Model/{LoggingLoggly.php => LoggingCommonResponse.php} (88%) rename lib/Model/{LoggingLogshuttle.php => LoggingCommonResponseAllOf.php} (72%) create mode 100644 lib/Model/LoggingCommonResponseAllOf1.php delete mode 100644 lib/Model/LoggingDatadog.php rename lib/Model/{LoggingDatadogAllOf.php => LoggingDatadogAdditional.php} (98%) delete mode 100644 lib/Model/LoggingDigitalocean.php rename lib/Model/{LoggingDigitaloceanAllOf.php => LoggingDigitaloceanAdditional.php} (97%) delete mode 100644 lib/Model/LoggingElasticsearch.php rename lib/Model/{LoggingElasticsearchAllOf.php => LoggingElasticsearchAdditional.php} (98%) delete mode 100644 lib/Model/LoggingFormatVersion.php create mode 100644 lib/Model/LoggingFormatVersionInteger.php create mode 100644 lib/Model/LoggingFormatVersionString.php delete mode 100644 lib/Model/LoggingFtp.php rename lib/Model/{LoggingFtpAllOf.php => LoggingFtpAdditional.php} (93%) create mode 100644 lib/Model/LoggingFtpResponseAllOf.php delete mode 100644 lib/Model/LoggingGcs.php rename lib/Model/{LoggingGcsAllOf.php => LoggingGcsAdditional.php} (97%) rename lib/Model/{LoggingSumologic.php => LoggingGenericCommonResponse.php} (56%) create mode 100644 lib/Model/LoggingGenericCommonResponseAllOf.php create mode 100644 lib/Model/LoggingGenericCommonResponseAllOf1.php delete mode 100644 lib/Model/LoggingGooglePubsub.php rename lib/Model/{LoggingGooglePubsubAllOf.php => LoggingGooglePubsubAdditional.php} (97%) delete mode 100644 lib/Model/LoggingHeroku.php rename lib/Model/{LoggingHerokuAllOf.php => LoggingHerokuAdditional.php} (96%) delete mode 100644 lib/Model/LoggingHoneycomb.php rename lib/Model/{LoggingHoneycombAllOf.php => LoggingHoneycombAdditional.php} (96%) delete mode 100644 lib/Model/LoggingHttps.php rename lib/Model/{LoggingHttpsAllOf.php => LoggingHttpsAdditional.php} (98%) rename lib/Model/{LoggingKafkaAllOf.php => LoggingKafkaAdditional.php} (98%) rename lib/Model/{LoggingKafka.php => LoggingKafkaResponsePost.php} (88%) rename lib/Model/{LoggingKinesis.php => LoggingKinesisAdditional.php} (92%) delete mode 100644 lib/Model/LoggingLogentries.php rename lib/Model/{LoggingLogentriesAllOf.php => LoggingLogentriesAdditional.php} (97%) rename lib/Model/{LoggingLogglyAllOf.php => LoggingLogglyAdditional.php} (96%) rename lib/Model/{LoggingLogshuttleAllOf.php => LoggingLogshuttleAdditional.php} (96%) delete mode 100644 lib/Model/LoggingNewrelic.php rename lib/Model/{LoggingNewrelicAllOf.php => LoggingNewrelicAdditional.php} (97%) delete mode 100644 lib/Model/LoggingOpenstack.php rename lib/Model/{LoggingOpenstackAllOf.php => LoggingOpenstackAdditional.php} (97%) delete mode 100644 lib/Model/LoggingPapertrail.php delete mode 100644 lib/Model/LoggingS3.php rename lib/Model/{LoggingS3AllOf.php => LoggingS3Additional.php} (98%) delete mode 100644 lib/Model/LoggingScalyr.php rename lib/Model/{LoggingScalyrAllOf.php => LoggingScalyrAdditional.php} (97%) delete mode 100644 lib/Model/LoggingSftp.php rename lib/Model/{LoggingSftpAllOf.php => LoggingSftpAdditional.php} (92%) create mode 100644 lib/Model/LoggingSftpResponseAllOf.php delete mode 100644 lib/Model/LoggingSplunk.php rename lib/Model/{LoggingSplunkAllOf.php => LoggingSplunkAdditional.php} (97%) rename lib/Model/{LoggingSumologicAllOf.php => LoggingSumologicAdditional.php} (96%) delete mode 100644 lib/Model/LoggingSyslog.php rename lib/Model/{LoggingSyslogAllOf.php => LoggingSyslogAdditional.php} (97%) rename lib/Model/{PoolAllOf.php => PoolAdditional.php} (75%) create mode 100644 lib/Model/PoolResponseCommon.php rename lib/Model/{Pool.php => PoolResponsePost.php} (78%) create mode 100644 lib/Model/PoolResponsePostAllOf.php rename lib/Model/{RequestSettings.php => RequestSettingsAdditional.php} (71%) create mode 100644 lib/Model/RequestSettingsResponseAllOf.php rename lib/Model/{DomainCheckItem.php => ServiceIdAndVersionString.php} (83%) rename lib/Model/{TlsCommon.php => TlsCommonResponse.php} (95%) create mode 100644 lib/Model/TlsCommonResponseAllOf.php create mode 100644 lib/Model/TlsCommonResponseAllOf1.php delete mode 100644 lib/Model/TlsSubscriptionResponseDataAllOf.php diff --git a/CHANGELOG.md b/CHANGELOG.md index 90ddde75..ba925f42 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,24 @@ # Changelog +## [v4.0.0](https://github.com/fastly/fastly-php/releases/tag/release/v4.0.0) (2023-07-31) + +**Breaking:** + +The following restructures have helped resolve some issues with our OpenAPI schemas but as a side-effect this has resulted in a break to our API client interface as different types are now being generated. + +- refactor: general restructure OpenAPI schemas. +- refactor(domain): remove explicit schema type for 'any'. + +**Bug fixes:** + +- fix: change response `version` type to string. +- fix(cache_settings): change response `stale_ttl` and `ttl` types to strings. +- fix(header): change response `ignore_if_set` and `priority` types to strings. +- fix(logging): change response `period` and `gzip_level` types to strings. +- fix(pool): change response `use_tls`, `max_conn_default`, `first_byte_timeout`, `quorum` and `tls_check_cert` types to strings. +- fix(request_settings): change response `bypass_busy_wait`, `force_miss`, `force_ssl`, `geo_headers`, `max_stale_age` and `timer_support` types to strings. +- fix(response_object): change response `status` type to string. + ## [v3.0.3](https://github.com/fastly/fastly-php/releases/tag/release/v3.0.3) (2023-07-13) **Bug fixes:** diff --git a/docs/Api/CacheSettingsApi.md b/docs/Api/CacheSettingsApi.md index bf1aebdc..bcd583cc 100644 --- a/docs/Api/CacheSettingsApi.md +++ b/docs/Api/CacheSettingsApi.md @@ -36,8 +36,8 @@ $options['version_id'] = 56; // int | Integer identifying a service version. $options['action'] = 'action_example'; // string | If set, will cause vcl_fetch to terminate after processing this rule with the return state specified. If not set, other configuration logic in vcl_fetch with a lower priority will run after this rule. $options['cache_condition'] = 'cache_condition_example'; // string | Name of the cache condition controlling when this configuration applies. $options['name'] = 'name_example'; // string | Name for the cache settings object. -$options['stale_ttl'] = 56; // int | Maximum time in seconds to continue to use a stale version of the object if future requests to your backend server fail (also known as 'stale if error'). -$options['ttl'] = 56; // int | Maximum time to consider the object fresh in the cache (the cache 'time to live'). +$options['stale_ttl'] = 'stale_ttl_example'; // string | Maximum time in seconds to continue to use a stale version of the object if future requests to your backend server fail (also known as 'stale if error'). +$options['ttl'] = 'ttl_example'; // string | Maximum time to consider the object fresh in the cache (the cache 'time to live'). try { $result = $apiInstance->createCacheSettings($options); @@ -57,8 +57,8 @@ Name | Type | Description | Notes **action** | **string** | If set, will cause vcl_fetch to terminate after processing this rule with the return state specified. If not set, other configuration logic in vcl_fetch with a lower priority will run after this rule. | [optional] [one of: 'pass', 'cache', 'restart'] **cache_condition** | **string** | Name of the cache condition controlling when this configuration applies. | [optional] **name** | **string** | Name for the cache settings object. | [optional] -**stale_ttl** | **int** | Maximum time in seconds to continue to use a stale version of the object if future requests to your backend server fail (also known as 'stale if error'). | [optional] -**ttl** | **int** | Maximum time to consider the object fresh in the cache (the cache 'time to live'). | [optional] +**stale_ttl** | **string** | Maximum time in seconds to continue to use a stale version of the object if future requests to your backend server fail (also known as 'stale if error'). | [optional] +**ttl** | **string** | Maximum time to consider the object fresh in the cache (the cache 'time to live'). | [optional] ### Return type @@ -195,8 +195,8 @@ $options['cache_settings_name'] = 'cache_settings_name_example'; // string | Nam $options['action'] = 'action_example'; // string | If set, will cause vcl_fetch to terminate after processing this rule with the return state specified. If not set, other configuration logic in vcl_fetch with a lower priority will run after this rule. $options['cache_condition'] = 'cache_condition_example'; // string | Name of the cache condition controlling when this configuration applies. $options['name'] = 'name_example'; // string | Name for the cache settings object. -$options['stale_ttl'] = 56; // int | Maximum time in seconds to continue to use a stale version of the object if future requests to your backend server fail (also known as 'stale if error'). -$options['ttl'] = 56; // int | Maximum time to consider the object fresh in the cache (the cache 'time to live'). +$options['stale_ttl'] = 'stale_ttl_example'; // string | Maximum time in seconds to continue to use a stale version of the object if future requests to your backend server fail (also known as 'stale if error'). +$options['ttl'] = 'ttl_example'; // string | Maximum time to consider the object fresh in the cache (the cache 'time to live'). try { $result = $apiInstance->updateCacheSettings($options); @@ -217,8 +217,8 @@ Name | Type | Description | Notes **action** | **string** | If set, will cause vcl_fetch to terminate after processing this rule with the return state specified. If not set, other configuration logic in vcl_fetch with a lower priority will run after this rule. | [optional] [one of: 'pass', 'cache', 'restart'] **cache_condition** | **string** | Name of the cache condition controlling when this configuration applies. | [optional] **name** | **string** | Name for the cache settings object. | [optional] -**stale_ttl** | **int** | Maximum time in seconds to continue to use a stale version of the object if future requests to your backend server fail (also known as 'stale if error'). | [optional] -**ttl** | **int** | Maximum time to consider the object fresh in the cache (the cache 'time to live'). | [optional] +**stale_ttl** | **string** | Maximum time in seconds to continue to use a stale version of the object if future requests to your backend server fail (also known as 'stale if error'). | [optional] +**ttl** | **string** | Maximum time to consider the object fresh in the cache (the cache 'time to live'). | [optional] ### Return type diff --git a/docs/Api/DomainApi.md b/docs/Api/DomainApi.md index fa747075..d87f733b 100644 --- a/docs/Api/DomainApi.md +++ b/docs/Api/DomainApi.md @@ -26,7 +26,7 @@ Method | Fastly API endpoint | Description ## `checkDomain()` ```php -checkDomain($options): \Fastly\Model\DomainCheckItem[] // Validate DNS configuration for a single domain on a service +checkDomain($options): mixed[] // Validate DNS configuration for a single domain on a service ``` Checks the status of a specific domain's DNS record for a Service Version. Returns an array in the same format as domain/check_all. @@ -56,7 +56,7 @@ Name | Type | Description | Notes ### Return type -[**\Fastly\Model\DomainCheckItem[]**](../Model/DomainCheckItem.md) +**mixed[]** [[Back to top]](#) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/docs/Api/HeaderApi.md b/docs/Api/HeaderApi.md index f0f63d69..8415fed2 100644 --- a/docs/Api/HeaderApi.md +++ b/docs/Api/HeaderApi.md @@ -36,15 +36,15 @@ $options['version_id'] = 56; // int | Integer identifying a service version. $options['action'] = 'action_example'; // string | Accepts a string value. $options['cache_condition'] = 'cache_condition_example'; // string | Name of the cache condition controlling when this configuration applies. $options['dst'] = 'dst_example'; // string | Header to set. -$options['ignore_if_set'] = 56; // int | Don't add the header if it is added already. Only applies to 'set' action. $options['name'] = 'name_example'; // string | A handle to refer to this Header object. -$options['priority'] = 100; // int | Priority determines execution order. Lower numbers execute first. $options['regex'] = 'regex_example'; // string | Regular expression to use. Only applies to `regex` and `regex_repeat` actions. $options['request_condition'] = 'request_condition_example'; // string | Condition which, if met, will select this configuration during a request. Optional. $options['response_condition'] = 'response_condition_example'; // string | Optional name of a response condition to apply. $options['src'] = 'src_example'; // string | Variable to be used as a source for the header content. Does not apply to `delete` action. $options['substitution'] = 'substitution_example'; // string | Value to substitute in place of regular expression. Only applies to `regex` and `regex_repeat` actions. $options['type'] = 'type_example'; // string | Accepts a string value. +$options['ignore_if_set'] = 56; // int | Don't add the header if it is added already. Only applies to 'set' action. +$options['priority'] = 100; // int | Priority determines execution order. Lower numbers execute first. try { $result = $apiInstance->createHeaderObject($options); @@ -64,15 +64,15 @@ Name | Type | Description | Notes **action** | **string** | Accepts a string value. | [optional] [one of: 'set', 'append', 'delete', 'regex', 'regex_repeat'] **cache_condition** | **string** | Name of the cache condition controlling when this configuration applies. | [optional] **dst** | **string** | Header to set. | [optional] -**ignore_if_set** | **int** | Don't add the header if it is added already. Only applies to 'set' action. | [optional] **name** | **string** | A handle to refer to this Header object. | [optional] -**priority** | **int** | Priority determines execution order. Lower numbers execute first. | [optional] [defaults to 100] **regex** | **string** | Regular expression to use. Only applies to `regex` and `regex_repeat` actions. | [optional] **request_condition** | **string** | Condition which, if met, will select this configuration during a request. Optional. | [optional] **response_condition** | **string** | Optional name of a response condition to apply. | [optional] **src** | **string** | Variable to be used as a source for the header content. Does not apply to `delete` action. | [optional] **substitution** | **string** | Value to substitute in place of regular expression. Only applies to `regex` and `regex_repeat` actions. | [optional] **type** | **string** | Accepts a string value. | [optional] [one of: 'request', 'cache', 'response'] +**ignore_if_set** | **int** | Don't add the header if it is added already. Only applies to 'set' action. | [optional] +**priority** | **int** | Priority determines execution order. Lower numbers execute first. | [optional] [defaults to 100] ### Return type @@ -209,15 +209,15 @@ $options['header_name'] = 'header_name_example'; // string | A handle to refer t $options['action'] = 'action_example'; // string | Accepts a string value. $options['cache_condition'] = 'cache_condition_example'; // string | Name of the cache condition controlling when this configuration applies. $options['dst'] = 'dst_example'; // string | Header to set. -$options['ignore_if_set'] = 56; // int | Don't add the header if it is added already. Only applies to 'set' action. $options['name'] = 'name_example'; // string | A handle to refer to this Header object. -$options['priority'] = 100; // int | Priority determines execution order. Lower numbers execute first. $options['regex'] = 'regex_example'; // string | Regular expression to use. Only applies to `regex` and `regex_repeat` actions. $options['request_condition'] = 'request_condition_example'; // string | Condition which, if met, will select this configuration during a request. Optional. $options['response_condition'] = 'response_condition_example'; // string | Optional name of a response condition to apply. $options['src'] = 'src_example'; // string | Variable to be used as a source for the header content. Does not apply to `delete` action. $options['substitution'] = 'substitution_example'; // string | Value to substitute in place of regular expression. Only applies to `regex` and `regex_repeat` actions. $options['type'] = 'type_example'; // string | Accepts a string value. +$options['ignore_if_set'] = 56; // int | Don't add the header if it is added already. Only applies to 'set' action. +$options['priority'] = 100; // int | Priority determines execution order. Lower numbers execute first. try { $result = $apiInstance->updateHeaderObject($options); @@ -238,15 +238,15 @@ Name | Type | Description | Notes **action** | **string** | Accepts a string value. | [optional] [one of: 'set', 'append', 'delete', 'regex', 'regex_repeat'] **cache_condition** | **string** | Name of the cache condition controlling when this configuration applies. | [optional] **dst** | **string** | Header to set. | [optional] -**ignore_if_set** | **int** | Don't add the header if it is added already. Only applies to 'set' action. | [optional] **name** | **string** | A handle to refer to this Header object. | [optional] -**priority** | **int** | Priority determines execution order. Lower numbers execute first. | [optional] [defaults to 100] **regex** | **string** | Regular expression to use. Only applies to `regex` and `regex_repeat` actions. | [optional] **request_condition** | **string** | Condition which, if met, will select this configuration during a request. Optional. | [optional] **response_condition** | **string** | Optional name of a response condition to apply. | [optional] **src** | **string** | Variable to be used as a source for the header content. Does not apply to `delete` action. | [optional] **substitution** | **string** | Value to substitute in place of regular expression. Only applies to `regex` and `regex_repeat` actions. | [optional] **type** | **string** | Accepts a string value. | [optional] [one of: 'request', 'cache', 'response'] +**ignore_if_set** | **int** | Don't add the header if it is added already. Only applies to 'set' action. | [optional] +**priority** | **int** | Priority determines execution order. Lower numbers execute first. | [optional] [defaults to 100] ### Return type diff --git a/docs/Api/LoggingAzureblobApi.md b/docs/Api/LoggingAzureblobApi.md index 8f66db3c..1660d36d 100644 --- a/docs/Api/LoggingAzureblobApi.md +++ b/docs/Api/LoggingAzureblobApi.md @@ -35,14 +35,14 @@ Create an Azure Blob Storage logging endpoint for a particular service and versi $options['version_id'] = 56; // int | Integer identifying a service version. $options['name'] = 'name_example'; // string | The name for the real-time logging configuration. $options['placement'] = 'placement_example'; // string | Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. -$options['format_version'] = 2; // int | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. $options['response_condition'] = 'response_condition_example'; // string | The name of an existing condition in the configured endpoint, or leave blank to always execute. $options['format'] = '%h %l %u %t \"%r\" %>s %b'; // string | A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). +$options['format_version'] = 2; // int | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. $options['message_type'] = 'classic'; // string | How the message should be formatted. $options['timestamp_format'] = 'timestamp_format_example'; // string | A timestamp format +$options['compression_codec'] = 'compression_codec_example'; // string | The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. $options['period'] = 3600; // int | How frequently log files are finalized so they can be available for reading (in seconds). $options['gzip_level'] = 0; // int | The level of gzip encoding when sending logs (default `0`, no compression). Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. -$options['compression_codec'] = 'compression_codec_example'; // string | The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. $options['path'] = 'null'; // string | The path to upload logs to. $options['account_name'] = 'account_name_example'; // string | The unique Azure Blob Storage namespace in which your data objects are stored. Required. $options['container'] = 'container_example'; // string | The name of the Azure Blob Storage container in which to store logs. Required. @@ -67,14 +67,14 @@ Name | Type | Description | Notes **version_id** | **int** | Integer identifying a service version. | **name** | **string** | The name for the real-time logging configuration. | [optional] **placement** | **string** | Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. | [optional] [one of: 'none', 'waf_debug', 'null'] -**format_version** | **int** | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. | [optional] [one of: 1, 2] **response_condition** | **string** | The name of an existing condition in the configured endpoint, or leave blank to always execute. | [optional] **format** | **string** | A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). | [optional] [defaults to '%h %l %u %t "%r" %>s %b'] +**format_version** | **int** | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. | [optional] [one of: 1, 2] **message_type** | **string** | How the message should be formatted. | [optional] [one of: 'classic', 'loggly', 'logplex', 'blank'] [defaults to 'classic'] **timestamp_format** | **string** | A timestamp format | [optional] +**compression_codec** | **string** | The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. | [optional] [one of: 'zstd', 'snappy', 'gzip'] **period** | **int** | How frequently log files are finalized so they can be available for reading (in seconds). | [optional] [defaults to 3600] **gzip_level** | **int** | The level of gzip encoding when sending logs (default `0`, no compression). Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. | [optional] [defaults to 0] -**compression_codec** | **string** | The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. | [optional] [one of: 'zstd', 'snappy', 'gzip'] **path** | **string** | The path to upload logs to. | [optional] [defaults to 'null'] **account_name** | **string** | The unique Azure Blob Storage namespace in which your data objects are stored. Required. | [optional] **container** | **string** | The name of the Azure Blob Storage container in which to store logs. Required. | [optional] @@ -216,14 +216,14 @@ $options['version_id'] = 56; // int | Integer identifying a service version. $options['logging_azureblob_name'] = 'logging_azureblob_name_example'; // string | The name for the real-time logging configuration. $options['name'] = 'name_example'; // string | The name for the real-time logging configuration. $options['placement'] = 'placement_example'; // string | Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. -$options['format_version'] = self::FORMAT_VERSION_v2; // int | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. $options['response_condition'] = 'response_condition_example'; // string | The name of an existing condition in the configured endpoint, or leave blank to always execute. $options['format'] = '%h %l %u %t \"%r\" %>s %b'; // string | A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). +$options['format_version'] = self::FORMAT_VERSION_v2; // int | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. $options['message_type'] = 'classic'; // string | How the message should be formatted. $options['timestamp_format'] = 'timestamp_format_example'; // string | A timestamp format +$options['compression_codec'] = 'compression_codec_example'; // string | The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. $options['period'] = 3600; // int | How frequently log files are finalized so they can be available for reading (in seconds). $options['gzip_level'] = 0; // int | The level of gzip encoding when sending logs (default `0`, no compression). Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. -$options['compression_codec'] = 'compression_codec_example'; // string | The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. $options['path'] = 'null'; // string | The path to upload logs to. $options['account_name'] = 'account_name_example'; // string | The unique Azure Blob Storage namespace in which your data objects are stored. Required. $options['container'] = 'container_example'; // string | The name of the Azure Blob Storage container in which to store logs. Required. @@ -249,14 +249,14 @@ Name | Type | Description | Notes **logging_azureblob_name** | **string** | The name for the real-time logging configuration. | **name** | **string** | The name for the real-time logging configuration. | [optional] **placement** | **string** | Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. | [optional] [one of: 'none', 'waf_debug', 'null'] -**format_version** | **int** | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. | [optional] [one of: 1, 2] **response_condition** | **string** | The name of an existing condition in the configured endpoint, or leave blank to always execute. | [optional] **format** | **string** | A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). | [optional] [defaults to '%h %l %u %t "%r" %>s %b'] +**format_version** | **int** | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. | [optional] [one of: 1, 2] **message_type** | **string** | How the message should be formatted. | [optional] [one of: 'classic', 'loggly', 'logplex', 'blank'] [defaults to 'classic'] **timestamp_format** | **string** | A timestamp format | [optional] +**compression_codec** | **string** | The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. | [optional] [one of: 'zstd', 'snappy', 'gzip'] **period** | **int** | How frequently log files are finalized so they can be available for reading (in seconds). | [optional] [defaults to 3600] **gzip_level** | **int** | The level of gzip encoding when sending logs (default `0`, no compression). Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. | [optional] [defaults to 0] -**compression_codec** | **string** | The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. | [optional] [one of: 'zstd', 'snappy', 'gzip'] **path** | **string** | The path to upload logs to. | [optional] [defaults to 'null'] **account_name** | **string** | The unique Azure Blob Storage namespace in which your data objects are stored. Required. | [optional] **container** | **string** | The name of the Azure Blob Storage container in which to store logs. Required. | [optional] diff --git a/docs/Api/LoggingBigqueryApi.md b/docs/Api/LoggingBigqueryApi.md index 9837bf43..60bc685c 100644 --- a/docs/Api/LoggingBigqueryApi.md +++ b/docs/Api/LoggingBigqueryApi.md @@ -35,9 +35,9 @@ Create a BigQuery logging object for a particular service and version. $options['version_id'] = 56; // int | Integer identifying a service version. $options['name'] = 'name_example'; // string | The name of the BigQuery logging object. Used as a primary key for API access. $options['placement'] = 'placement_example'; // string | Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. -$options['format_version'] = self::FORMAT_VERSION_v2; // int | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. $options['response_condition'] = 'response_condition_example'; // string | The name of an existing condition in the configured endpoint, or leave blank to always execute. $options['format'] = 'format_example'; // string | A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). Must produce JSON that matches the schema of your BigQuery table. +$options['format_version'] = self::FORMAT_VERSION_v2; // int | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. $options['user'] = 'user_example'; // string | Your Google Cloud Platform service account email address. The `client_email` field in your service account authentication JSON. Not required if `account_name` is specified. $options['secret_key'] = 'secret_key_example'; // string | Your Google Cloud Platform account secret key. The `private_key` field in your service account authentication JSON. Not required if `account_name` is specified. $options['account_name'] = 'account_name_example'; // string | The name of the Google Cloud Platform service account associated with the target log collection service. Not required if `user` and `secret_key` are provided. @@ -63,9 +63,9 @@ Name | Type | Description | Notes **version_id** | **int** | Integer identifying a service version. | **name** | **string** | The name of the BigQuery logging object. Used as a primary key for API access. | [optional] **placement** | **string** | Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. | [optional] [one of: 'none', 'waf_debug', 'null'] -**format_version** | **int** | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. | [optional] [one of: 1, 2] **response_condition** | **string** | The name of an existing condition in the configured endpoint, or leave blank to always execute. | [optional] **format** | **string** | A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). Must produce JSON that matches the schema of your BigQuery table. | [optional] +**format_version** | **int** | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. | [optional] [one of: 1, 2] **user** | **string** | Your Google Cloud Platform service account email address. The `client_email` field in your service account authentication JSON. Not required if `account_name` is specified. | [optional] **secret_key** | **string** | Your Google Cloud Platform account secret key. The `private_key` field in your service account authentication JSON. Not required if `account_name` is specified. | [optional] **account_name** | **string** | The name of the Google Cloud Platform service account associated with the target log collection service. Not required if `user` and `secret_key` are provided. | [optional] @@ -208,9 +208,9 @@ $options['version_id'] = 56; // int | Integer identifying a service version. $options['logging_bigquery_name'] = 'logging_bigquery_name_example'; // string | The name for the real-time logging configuration. $options['name'] = 'name_example'; // string | The name of the BigQuery logging object. Used as a primary key for API access. $options['placement'] = 'placement_example'; // string | Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. -$options['format_version'] = self::FORMAT_VERSION_v2; // int | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. $options['response_condition'] = 'response_condition_example'; // string | The name of an existing condition in the configured endpoint, or leave blank to always execute. $options['format'] = 'format_example'; // string | A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). Must produce JSON that matches the schema of your BigQuery table. +$options['format_version'] = self::FORMAT_VERSION_v2; // int | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. $options['user'] = 'user_example'; // string | Your Google Cloud Platform service account email address. The `client_email` field in your service account authentication JSON. Not required if `account_name` is specified. $options['secret_key'] = 'secret_key_example'; // string | Your Google Cloud Platform account secret key. The `private_key` field in your service account authentication JSON. Not required if `account_name` is specified. $options['account_name'] = 'account_name_example'; // string | The name of the Google Cloud Platform service account associated with the target log collection service. Not required if `user` and `secret_key` are provided. @@ -237,9 +237,9 @@ Name | Type | Description | Notes **logging_bigquery_name** | **string** | The name for the real-time logging configuration. | **name** | **string** | The name of the BigQuery logging object. Used as a primary key for API access. | [optional] **placement** | **string** | Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. | [optional] [one of: 'none', 'waf_debug', 'null'] -**format_version** | **int** | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. | [optional] [one of: 1, 2] **response_condition** | **string** | The name of an existing condition in the configured endpoint, or leave blank to always execute. | [optional] **format** | **string** | A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). Must produce JSON that matches the schema of your BigQuery table. | [optional] +**format_version** | **int** | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. | [optional] [one of: 1, 2] **user** | **string** | Your Google Cloud Platform service account email address. The `client_email` field in your service account authentication JSON. Not required if `account_name` is specified. | [optional] **secret_key** | **string** | Your Google Cloud Platform account secret key. The `private_key` field in your service account authentication JSON. Not required if `account_name` is specified. | [optional] **account_name** | **string** | The name of the Google Cloud Platform service account associated with the target log collection service. Not required if `user` and `secret_key` are provided. | [optional] diff --git a/docs/Api/LoggingCloudfilesApi.md b/docs/Api/LoggingCloudfilesApi.md index a4f2dbe3..841d9af9 100644 --- a/docs/Api/LoggingCloudfilesApi.md +++ b/docs/Api/LoggingCloudfilesApi.md @@ -35,14 +35,14 @@ Create a Cloud Files log endpoint for a particular service and version. $options['version_id'] = 56; // int | Integer identifying a service version. $options['name'] = 'name_example'; // string | The name for the real-time logging configuration. $options['placement'] = 'placement_example'; // string | Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. -$options['format_version'] = self::FORMAT_VERSION_v2; // int | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. $options['response_condition'] = 'response_condition_example'; // string | The name of an existing condition in the configured endpoint, or leave blank to always execute. $options['format'] = '%h %l %u %t \"%r\" %>s %b'; // string | A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). +$options['format_version'] = self::FORMAT_VERSION_v2; // int | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. $options['message_type'] = 'classic'; // string | How the message should be formatted. $options['timestamp_format'] = 'timestamp_format_example'; // string | A timestamp format +$options['compression_codec'] = 'compression_codec_example'; // string | The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. $options['period'] = 3600; // int | How frequently log files are finalized so they can be available for reading (in seconds). $options['gzip_level'] = 0; // int | The level of gzip encoding when sending logs (default `0`, no compression). Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. -$options['compression_codec'] = 'compression_codec_example'; // string | The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. $options['access_key'] = 'access_key_example'; // string | Your Cloud Files account access key. $options['bucket_name'] = 'bucket_name_example'; // string | The name of your Cloud Files container. $options['path'] = 'null'; // string | The path to upload logs to. @@ -67,14 +67,14 @@ Name | Type | Description | Notes **version_id** | **int** | Integer identifying a service version. | **name** | **string** | The name for the real-time logging configuration. | [optional] **placement** | **string** | Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. | [optional] [one of: 'none', 'waf_debug', 'null'] -**format_version** | **int** | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. | [optional] [one of: 1, 2] **response_condition** | **string** | The name of an existing condition in the configured endpoint, or leave blank to always execute. | [optional] **format** | **string** | A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). | [optional] [defaults to '%h %l %u %t "%r" %>s %b'] +**format_version** | **int** | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. | [optional] [one of: 1, 2] **message_type** | **string** | How the message should be formatted. | [optional] [one of: 'classic', 'loggly', 'logplex', 'blank'] [defaults to 'classic'] **timestamp_format** | **string** | A timestamp format | [optional] +**compression_codec** | **string** | The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. | [optional] [one of: 'zstd', 'snappy', 'gzip'] **period** | **int** | How frequently log files are finalized so they can be available for reading (in seconds). | [optional] [defaults to 3600] **gzip_level** | **int** | The level of gzip encoding when sending logs (default `0`, no compression). Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. | [optional] [defaults to 0] -**compression_codec** | **string** | The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. | [optional] [one of: 'zstd', 'snappy', 'gzip'] **access_key** | **string** | Your Cloud Files account access key. | [optional] **bucket_name** | **string** | The name of your Cloud Files container. | [optional] **path** | **string** | The path to upload logs to. | [optional] [defaults to 'null'] @@ -216,14 +216,14 @@ $options['version_id'] = 56; // int | Integer identifying a service version. $options['logging_cloudfiles_name'] = 'logging_cloudfiles_name_example'; // string | The name for the real-time logging configuration. $options['name'] = 'name_example'; // string | The name for the real-time logging configuration. $options['placement'] = 'placement_example'; // string | Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. -$options['format_version'] = self::FORMAT_VERSION_v2; // int | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. $options['response_condition'] = 'response_condition_example'; // string | The name of an existing condition in the configured endpoint, or leave blank to always execute. $options['format'] = '%h %l %u %t \"%r\" %>s %b'; // string | A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). +$options['format_version'] = self::FORMAT_VERSION_v2; // int | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. $options['message_type'] = 'classic'; // string | How the message should be formatted. $options['timestamp_format'] = 'timestamp_format_example'; // string | A timestamp format +$options['compression_codec'] = 'compression_codec_example'; // string | The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. $options['period'] = 3600; // int | How frequently log files are finalized so they can be available for reading (in seconds). $options['gzip_level'] = 0; // int | The level of gzip encoding when sending logs (default `0`, no compression). Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. -$options['compression_codec'] = 'compression_codec_example'; // string | The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. $options['access_key'] = 'access_key_example'; // string | Your Cloud Files account access key. $options['bucket_name'] = 'bucket_name_example'; // string | The name of your Cloud Files container. $options['path'] = 'null'; // string | The path to upload logs to. @@ -249,14 +249,14 @@ Name | Type | Description | Notes **logging_cloudfiles_name** | **string** | The name for the real-time logging configuration. | **name** | **string** | The name for the real-time logging configuration. | [optional] **placement** | **string** | Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. | [optional] [one of: 'none', 'waf_debug', 'null'] -**format_version** | **int** | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. | [optional] [one of: 1, 2] **response_condition** | **string** | The name of an existing condition in the configured endpoint, or leave blank to always execute. | [optional] **format** | **string** | A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). | [optional] [defaults to '%h %l %u %t "%r" %>s %b'] +**format_version** | **int** | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. | [optional] [one of: 1, 2] **message_type** | **string** | How the message should be formatted. | [optional] [one of: 'classic', 'loggly', 'logplex', 'blank'] [defaults to 'classic'] **timestamp_format** | **string** | A timestamp format | [optional] +**compression_codec** | **string** | The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. | [optional] [one of: 'zstd', 'snappy', 'gzip'] **period** | **int** | How frequently log files are finalized so they can be available for reading (in seconds). | [optional] [defaults to 3600] **gzip_level** | **int** | The level of gzip encoding when sending logs (default `0`, no compression). Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. | [optional] [defaults to 0] -**compression_codec** | **string** | The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. | [optional] [one of: 'zstd', 'snappy', 'gzip'] **access_key** | **string** | Your Cloud Files account access key. | [optional] **bucket_name** | **string** | The name of your Cloud Files container. | [optional] **path** | **string** | The path to upload logs to. | [optional] [defaults to 'null'] diff --git a/docs/Api/LoggingDatadogApi.md b/docs/Api/LoggingDatadogApi.md index 599f2fdd..67c3efaf 100644 --- a/docs/Api/LoggingDatadogApi.md +++ b/docs/Api/LoggingDatadogApi.md @@ -35,9 +35,9 @@ Create a Datadog logging object for a particular service and version. $options['version_id'] = 56; // int | Integer identifying a service version. $options['name'] = 'name_example'; // string | The name for the real-time logging configuration. $options['placement'] = 'placement_example'; // string | Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. -$options['format_version'] = self::FORMAT_VERSION_v2; // int | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. $options['response_condition'] = 'response_condition_example'; // string | The name of an existing condition in the configured endpoint, or leave blank to always execute. $options['format'] = '{\"ddsource\":\"fastly\",\"service\":\"%{req.service_id}V\",\"date\":\"%{begin:%Y-%m-%dT%H:%M:%S%Z}t\",\"time_start\":\"%{begin:%Y-%m-%dT%H:%M:%S%Z}t\",\"time_end\":\"%{end:%Y-%m-%dT%H:%M:%S%Z}t\",\"http\":{\"request_time_ms\":\"%D\",\"method\":\"%m\",\"url\":\"%{json.escape(req.url)}V\",\"useragent\":\"%{User-Agent}i\",\"referer\":\"%{Referer}i\",\"protocol\":\"%H\",\"request_x_forwarded_for\":\"%{X-Forwarded-For}i\",\"status_code\":\"%s\"},\"network\":{\"client\":{\"ip\":\"%h\",\"name\":\"%{client.as.name}V\",\"number\":\"%{client.as.number}V\",\"connection_speed\":\"%{client.geo.conn_speed}V\"},\"destination\":{\"ip\":\"%A\"},\"geoip\":{\"geo_city\":\"%{client.geo.city.utf8}V\",\"geo_country_code\":\"%{client.geo.country_code}V\",\"geo_continent_code\":\"%{client.geo.continent_code}V\",\"geo_region\":\"%{client.geo.region}V\"},\"bytes_written\":\"%B\",\"bytes_read\":\"%{req.body_bytes_read}V\"},\"host\":\"%{Fastly-Orig-Host}i\",\"origin_host\":\"%v\",\"is_ipv6\":\"%{if(req.is_ipv6, \\\"true\\\", \\\"false\\\")}V\",\"is_tls\":\"%{if(req.is_ssl, \\\"true\\\", \\\"false\\\")}V\",\"tls_client_protocol\":\"%{json.escape(tls.client.protocol)}V\",\"tls_client_servername\":\"%{json.escape(tls.client.servername)}V\",\"tls_client_cipher\":\"%{json.escape(tls.client.cipher)}V\",\"tls_client_cipher_sha\":\"%{json.escape(tls.client.ciphers_sha)}V\",\"tls_client_tlsexts_sha\":\"%{json.escape(tls.client.tlsexts_sha)}V\",\"is_h2\":\"%{if(fastly_info.is_h2, \\\"true\\\", \\\"false\\\")}V\",\"is_h2_push\":\"%{if(fastly_info.h2.is_push, \\\"true\\\", \\\"false\\\")}V\",\"h2_stream_id\":\"%{fastly_info.h2.stream_id}V\",\"request_accept_content\":\"%{Accept}i\",\"request_accept_language\":\"%{Accept-Language}i\",\"request_accept_encoding\":\"%{Accept-Encoding}i\",\"request_accept_charset\":\"%{Accept-Charset}i\",\"request_connection\":\"%{Connection}i\",\"request_dnt\":\"%{DNT}i\",\"request_forwarded\":\"%{Forwarded}i\",\"request_via\":\"%{Via}i\",\"request_cache_control\":\"%{Cache-Control}i\",\"request_x_requested_with\":\"%{X-Requested-With}i\",\"request_x_att_device_id\":\"%{X-ATT-Device-Id}i\",\"content_type\":\"%{Content-Type}o\",\"is_cacheable\":\"%{if(fastly_info.state~\\\"^(HIT|MISS)$\\\", \\\"true\\\", \\\"false\\\")}V\",\"response_age\":\"%{Age}o\",\"response_cache_control\":\"%{Cache-Control}o\",\"response_expires\":\"%{Expires}o\",\"response_last_modified\":\"%{Last-Modified}o\",\"response_tsv\":\"%{TSV}o\",\"server_datacenter\":\"%{server.datacenter}V\",\"req_header_size\":\"%{req.header_bytes_read}V\",\"resp_header_size\":\"%{resp.header_bytes_written}V\",\"socket_cwnd\":\"%{client.socket.cwnd}V\",\"socket_nexthop\":\"%{client.socket.nexthop}V\",\"socket_tcpi_rcv_mss\":\"%{client.socket.tcpi_rcv_mss}V\",\"socket_tcpi_snd_mss\":\"%{client.socket.tcpi_snd_mss}V\",\"socket_tcpi_rtt\":\"%{client.socket.tcpi_rtt}V\",\"socket_tcpi_rttvar\":\"%{client.socket.tcpi_rttvar}V\",\"socket_tcpi_rcv_rtt\":\"%{client.socket.tcpi_rcv_rtt}V\",\"socket_tcpi_rcv_space\":\"%{client.socket.tcpi_rcv_space}V\",\"socket_tcpi_last_data_sent\":\"%{client.socket.tcpi_last_data_sent}V\",\"socket_tcpi_total_retrans\":\"%{client.socket.tcpi_total_retrans}V\",\"socket_tcpi_delta_retrans\":\"%{client.socket.tcpi_delta_retrans}V\",\"socket_ploss\":\"%{client.socket.ploss}V\"}'; // string | A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). Must produce valid JSON that Datadog can ingest. +$options['format_version'] = self::FORMAT_VERSION_v2; // int | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. $options['region'] = 'US'; // string | The region that log data will be sent to. $options['token'] = 'token_example'; // string | The API key from your Datadog account. Required. @@ -58,9 +58,9 @@ Name | Type | Description | Notes **version_id** | **int** | Integer identifying a service version. | **name** | **string** | The name for the real-time logging configuration. | [optional] **placement** | **string** | Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. | [optional] [one of: 'none', 'waf_debug', 'null'] -**format_version** | **int** | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. | [optional] [one of: 1, 2] **response_condition** | **string** | The name of an existing condition in the configured endpoint, or leave blank to always execute. | [optional] **format** | **string** | A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). Must produce valid JSON that Datadog can ingest. | [optional] [defaults to '{"ddsource":"fastly","service":"%{req.service_id}V","date":"%{begin:%Y-%m-%dT%H:%M:%S%Z}t","time_start":"%{begin:%Y-%m-%dT%H:%M:%S%Z}t","time_end":"%{end:%Y-%m-%dT%H:%M:%S%Z}t","http":{"request_time_ms":"%D","method":"%m","url":"%{json.escape(req.url)}V","useragent":"%{User-Agent}i","referer":"%{Referer}i","protocol":"%H","request_x_forwarded_for":"%{X-Forwarded-For}i","status_code":"%s"},"network":{"client":{"ip":"%h","name":"%{client.as.name}V","number":"%{client.as.number}V","connection_speed":"%{client.geo.conn_speed}V"},"destination":{"ip":"%A"},"geoip":{"geo_city":"%{client.geo.city.utf8}V","geo_country_code":"%{client.geo.country_code}V","geo_continent_code":"%{client.geo.continent_code}V","geo_region":"%{client.geo.region}V"},"bytes_written":"%B","bytes_read":"%{req.body_bytes_read}V"},"host":"%{Fastly-Orig-Host}i","origin_host":"%v","is_ipv6":"%{if(req.is_ipv6, \"true\", \"false\")}V","is_tls":"%{if(req.is_ssl, \"true\", \"false\")}V","tls_client_protocol":"%{json.escape(tls.client.protocol)}V","tls_client_servername":"%{json.escape(tls.client.servername)}V","tls_client_cipher":"%{json.escape(tls.client.cipher)}V","tls_client_cipher_sha":"%{json.escape(tls.client.ciphers_sha)}V","tls_client_tlsexts_sha":"%{json.escape(tls.client.tlsexts_sha)}V","is_h2":"%{if(fastly_info.is_h2, \"true\", \"false\")}V","is_h2_push":"%{if(fastly_info.h2.is_push, \"true\", \"false\")}V","h2_stream_id":"%{fastly_info.h2.stream_id}V","request_accept_content":"%{Accept}i","request_accept_language":"%{Accept-Language}i","request_accept_encoding":"%{Accept-Encoding}i","request_accept_charset":"%{Accept-Charset}i","request_connection":"%{Connection}i","request_dnt":"%{DNT}i","request_forwarded":"%{Forwarded}i","request_via":"%{Via}i","request_cache_control":"%{Cache-Control}i","request_x_requested_with":"%{X-Requested-With}i","request_x_att_device_id":"%{X-ATT-Device-Id}i","content_type":"%{Content-Type}o","is_cacheable":"%{if(fastly_info.state~\"^(HIT|MISS)$\", \"true\", \"false\")}V","response_age":"%{Age}o","response_cache_control":"%{Cache-Control}o","response_expires":"%{Expires}o","response_last_modified":"%{Last-Modified}o","response_tsv":"%{TSV}o","server_datacenter":"%{server.datacenter}V","req_header_size":"%{req.header_bytes_read}V","resp_header_size":"%{resp.header_bytes_written}V","socket_cwnd":"%{client.socket.cwnd}V","socket_nexthop":"%{client.socket.nexthop}V","socket_tcpi_rcv_mss":"%{client.socket.tcpi_rcv_mss}V","socket_tcpi_snd_mss":"%{client.socket.tcpi_snd_mss}V","socket_tcpi_rtt":"%{client.socket.tcpi_rtt}V","socket_tcpi_rttvar":"%{client.socket.tcpi_rttvar}V","socket_tcpi_rcv_rtt":"%{client.socket.tcpi_rcv_rtt}V","socket_tcpi_rcv_space":"%{client.socket.tcpi_rcv_space}V","socket_tcpi_last_data_sent":"%{client.socket.tcpi_last_data_sent}V","socket_tcpi_total_retrans":"%{client.socket.tcpi_total_retrans}V","socket_tcpi_delta_retrans":"%{client.socket.tcpi_delta_retrans}V","socket_ploss":"%{client.socket.ploss}V"}'] +**format_version** | **int** | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. | [optional] [one of: 1, 2] **region** | **string** | The region that log data will be sent to. | [optional] [one of: 'US', 'EU'] [defaults to 'US'] **token** | **string** | The API key from your Datadog account. Required. | [optional] @@ -198,9 +198,9 @@ $options['version_id'] = 56; // int | Integer identifying a service version. $options['logging_datadog_name'] = 'logging_datadog_name_example'; // string | The name for the real-time logging configuration. $options['name'] = 'name_example'; // string | The name for the real-time logging configuration. $options['placement'] = 'placement_example'; // string | Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. -$options['format_version'] = self::FORMAT_VERSION_v2; // int | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. $options['response_condition'] = 'response_condition_example'; // string | The name of an existing condition in the configured endpoint, or leave blank to always execute. $options['format'] = '{\"ddsource\":\"fastly\",\"service\":\"%{req.service_id}V\",\"date\":\"%{begin:%Y-%m-%dT%H:%M:%S%Z}t\",\"time_start\":\"%{begin:%Y-%m-%dT%H:%M:%S%Z}t\",\"time_end\":\"%{end:%Y-%m-%dT%H:%M:%S%Z}t\",\"http\":{\"request_time_ms\":\"%D\",\"method\":\"%m\",\"url\":\"%{json.escape(req.url)}V\",\"useragent\":\"%{User-Agent}i\",\"referer\":\"%{Referer}i\",\"protocol\":\"%H\",\"request_x_forwarded_for\":\"%{X-Forwarded-For}i\",\"status_code\":\"%s\"},\"network\":{\"client\":{\"ip\":\"%h\",\"name\":\"%{client.as.name}V\",\"number\":\"%{client.as.number}V\",\"connection_speed\":\"%{client.geo.conn_speed}V\"},\"destination\":{\"ip\":\"%A\"},\"geoip\":{\"geo_city\":\"%{client.geo.city.utf8}V\",\"geo_country_code\":\"%{client.geo.country_code}V\",\"geo_continent_code\":\"%{client.geo.continent_code}V\",\"geo_region\":\"%{client.geo.region}V\"},\"bytes_written\":\"%B\",\"bytes_read\":\"%{req.body_bytes_read}V\"},\"host\":\"%{Fastly-Orig-Host}i\",\"origin_host\":\"%v\",\"is_ipv6\":\"%{if(req.is_ipv6, \\\"true\\\", \\\"false\\\")}V\",\"is_tls\":\"%{if(req.is_ssl, \\\"true\\\", \\\"false\\\")}V\",\"tls_client_protocol\":\"%{json.escape(tls.client.protocol)}V\",\"tls_client_servername\":\"%{json.escape(tls.client.servername)}V\",\"tls_client_cipher\":\"%{json.escape(tls.client.cipher)}V\",\"tls_client_cipher_sha\":\"%{json.escape(tls.client.ciphers_sha)}V\",\"tls_client_tlsexts_sha\":\"%{json.escape(tls.client.tlsexts_sha)}V\",\"is_h2\":\"%{if(fastly_info.is_h2, \\\"true\\\", \\\"false\\\")}V\",\"is_h2_push\":\"%{if(fastly_info.h2.is_push, \\\"true\\\", \\\"false\\\")}V\",\"h2_stream_id\":\"%{fastly_info.h2.stream_id}V\",\"request_accept_content\":\"%{Accept}i\",\"request_accept_language\":\"%{Accept-Language}i\",\"request_accept_encoding\":\"%{Accept-Encoding}i\",\"request_accept_charset\":\"%{Accept-Charset}i\",\"request_connection\":\"%{Connection}i\",\"request_dnt\":\"%{DNT}i\",\"request_forwarded\":\"%{Forwarded}i\",\"request_via\":\"%{Via}i\",\"request_cache_control\":\"%{Cache-Control}i\",\"request_x_requested_with\":\"%{X-Requested-With}i\",\"request_x_att_device_id\":\"%{X-ATT-Device-Id}i\",\"content_type\":\"%{Content-Type}o\",\"is_cacheable\":\"%{if(fastly_info.state~\\\"^(HIT|MISS)$\\\", \\\"true\\\", \\\"false\\\")}V\",\"response_age\":\"%{Age}o\",\"response_cache_control\":\"%{Cache-Control}o\",\"response_expires\":\"%{Expires}o\",\"response_last_modified\":\"%{Last-Modified}o\",\"response_tsv\":\"%{TSV}o\",\"server_datacenter\":\"%{server.datacenter}V\",\"req_header_size\":\"%{req.header_bytes_read}V\",\"resp_header_size\":\"%{resp.header_bytes_written}V\",\"socket_cwnd\":\"%{client.socket.cwnd}V\",\"socket_nexthop\":\"%{client.socket.nexthop}V\",\"socket_tcpi_rcv_mss\":\"%{client.socket.tcpi_rcv_mss}V\",\"socket_tcpi_snd_mss\":\"%{client.socket.tcpi_snd_mss}V\",\"socket_tcpi_rtt\":\"%{client.socket.tcpi_rtt}V\",\"socket_tcpi_rttvar\":\"%{client.socket.tcpi_rttvar}V\",\"socket_tcpi_rcv_rtt\":\"%{client.socket.tcpi_rcv_rtt}V\",\"socket_tcpi_rcv_space\":\"%{client.socket.tcpi_rcv_space}V\",\"socket_tcpi_last_data_sent\":\"%{client.socket.tcpi_last_data_sent}V\",\"socket_tcpi_total_retrans\":\"%{client.socket.tcpi_total_retrans}V\",\"socket_tcpi_delta_retrans\":\"%{client.socket.tcpi_delta_retrans}V\",\"socket_ploss\":\"%{client.socket.ploss}V\"}'; // string | A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). Must produce valid JSON that Datadog can ingest. +$options['format_version'] = self::FORMAT_VERSION_v2; // int | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. $options['region'] = 'US'; // string | The region that log data will be sent to. $options['token'] = 'token_example'; // string | The API key from your Datadog account. Required. @@ -222,9 +222,9 @@ Name | Type | Description | Notes **logging_datadog_name** | **string** | The name for the real-time logging configuration. | **name** | **string** | The name for the real-time logging configuration. | [optional] **placement** | **string** | Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. | [optional] [one of: 'none', 'waf_debug', 'null'] -**format_version** | **int** | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. | [optional] [one of: 1, 2] **response_condition** | **string** | The name of an existing condition in the configured endpoint, or leave blank to always execute. | [optional] **format** | **string** | A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). Must produce valid JSON that Datadog can ingest. | [optional] [defaults to '{"ddsource":"fastly","service":"%{req.service_id}V","date":"%{begin:%Y-%m-%dT%H:%M:%S%Z}t","time_start":"%{begin:%Y-%m-%dT%H:%M:%S%Z}t","time_end":"%{end:%Y-%m-%dT%H:%M:%S%Z}t","http":{"request_time_ms":"%D","method":"%m","url":"%{json.escape(req.url)}V","useragent":"%{User-Agent}i","referer":"%{Referer}i","protocol":"%H","request_x_forwarded_for":"%{X-Forwarded-For}i","status_code":"%s"},"network":{"client":{"ip":"%h","name":"%{client.as.name}V","number":"%{client.as.number}V","connection_speed":"%{client.geo.conn_speed}V"},"destination":{"ip":"%A"},"geoip":{"geo_city":"%{client.geo.city.utf8}V","geo_country_code":"%{client.geo.country_code}V","geo_continent_code":"%{client.geo.continent_code}V","geo_region":"%{client.geo.region}V"},"bytes_written":"%B","bytes_read":"%{req.body_bytes_read}V"},"host":"%{Fastly-Orig-Host}i","origin_host":"%v","is_ipv6":"%{if(req.is_ipv6, \"true\", \"false\")}V","is_tls":"%{if(req.is_ssl, \"true\", \"false\")}V","tls_client_protocol":"%{json.escape(tls.client.protocol)}V","tls_client_servername":"%{json.escape(tls.client.servername)}V","tls_client_cipher":"%{json.escape(tls.client.cipher)}V","tls_client_cipher_sha":"%{json.escape(tls.client.ciphers_sha)}V","tls_client_tlsexts_sha":"%{json.escape(tls.client.tlsexts_sha)}V","is_h2":"%{if(fastly_info.is_h2, \"true\", \"false\")}V","is_h2_push":"%{if(fastly_info.h2.is_push, \"true\", \"false\")}V","h2_stream_id":"%{fastly_info.h2.stream_id}V","request_accept_content":"%{Accept}i","request_accept_language":"%{Accept-Language}i","request_accept_encoding":"%{Accept-Encoding}i","request_accept_charset":"%{Accept-Charset}i","request_connection":"%{Connection}i","request_dnt":"%{DNT}i","request_forwarded":"%{Forwarded}i","request_via":"%{Via}i","request_cache_control":"%{Cache-Control}i","request_x_requested_with":"%{X-Requested-With}i","request_x_att_device_id":"%{X-ATT-Device-Id}i","content_type":"%{Content-Type}o","is_cacheable":"%{if(fastly_info.state~\"^(HIT|MISS)$\", \"true\", \"false\")}V","response_age":"%{Age}o","response_cache_control":"%{Cache-Control}o","response_expires":"%{Expires}o","response_last_modified":"%{Last-Modified}o","response_tsv":"%{TSV}o","server_datacenter":"%{server.datacenter}V","req_header_size":"%{req.header_bytes_read}V","resp_header_size":"%{resp.header_bytes_written}V","socket_cwnd":"%{client.socket.cwnd}V","socket_nexthop":"%{client.socket.nexthop}V","socket_tcpi_rcv_mss":"%{client.socket.tcpi_rcv_mss}V","socket_tcpi_snd_mss":"%{client.socket.tcpi_snd_mss}V","socket_tcpi_rtt":"%{client.socket.tcpi_rtt}V","socket_tcpi_rttvar":"%{client.socket.tcpi_rttvar}V","socket_tcpi_rcv_rtt":"%{client.socket.tcpi_rcv_rtt}V","socket_tcpi_rcv_space":"%{client.socket.tcpi_rcv_space}V","socket_tcpi_last_data_sent":"%{client.socket.tcpi_last_data_sent}V","socket_tcpi_total_retrans":"%{client.socket.tcpi_total_retrans}V","socket_tcpi_delta_retrans":"%{client.socket.tcpi_delta_retrans}V","socket_ploss":"%{client.socket.ploss}V"}'] +**format_version** | **int** | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. | [optional] [one of: 1, 2] **region** | **string** | The region that log data will be sent to. | [optional] [one of: 'US', 'EU'] [defaults to 'US'] **token** | **string** | The API key from your Datadog account. Required. | [optional] diff --git a/docs/Api/LoggingDigitaloceanApi.md b/docs/Api/LoggingDigitaloceanApi.md index 0332b4c4..44b1ee70 100644 --- a/docs/Api/LoggingDigitaloceanApi.md +++ b/docs/Api/LoggingDigitaloceanApi.md @@ -35,14 +35,14 @@ Create a DigitalOcean Space for a particular service and version. $options['version_id'] = 56; // int | Integer identifying a service version. $options['name'] = 'name_example'; // string | The name for the real-time logging configuration. $options['placement'] = 'placement_example'; // string | Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. -$options['format_version'] = self::FORMAT_VERSION_v2; // int | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. $options['response_condition'] = 'response_condition_example'; // string | The name of an existing condition in the configured endpoint, or leave blank to always execute. $options['format'] = '%h %l %u %t \"%r\" %>s %b'; // string | A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). +$options['format_version'] = self::FORMAT_VERSION_v2; // int | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. $options['message_type'] = 'classic'; // string | How the message should be formatted. $options['timestamp_format'] = 'timestamp_format_example'; // string | A timestamp format +$options['compression_codec'] = 'compression_codec_example'; // string | The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. $options['period'] = 3600; // int | How frequently log files are finalized so they can be available for reading (in seconds). $options['gzip_level'] = 0; // int | The level of gzip encoding when sending logs (default `0`, no compression). Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. -$options['compression_codec'] = 'compression_codec_example'; // string | The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. $options['bucket_name'] = 'bucket_name_example'; // string | The name of the DigitalOcean Space. $options['access_key'] = 'access_key_example'; // string | Your DigitalOcean Spaces account access key. $options['secret_key'] = 'secret_key_example'; // string | Your DigitalOcean Spaces account secret key. @@ -67,14 +67,14 @@ Name | Type | Description | Notes **version_id** | **int** | Integer identifying a service version. | **name** | **string** | The name for the real-time logging configuration. | [optional] **placement** | **string** | Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. | [optional] [one of: 'none', 'waf_debug', 'null'] -**format_version** | **int** | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. | [optional] [one of: 1, 2] **response_condition** | **string** | The name of an existing condition in the configured endpoint, or leave blank to always execute. | [optional] **format** | **string** | A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). | [optional] [defaults to '%h %l %u %t "%r" %>s %b'] +**format_version** | **int** | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. | [optional] [one of: 1, 2] **message_type** | **string** | How the message should be formatted. | [optional] [one of: 'classic', 'loggly', 'logplex', 'blank'] [defaults to 'classic'] **timestamp_format** | **string** | A timestamp format | [optional] +**compression_codec** | **string** | The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. | [optional] [one of: 'zstd', 'snappy', 'gzip'] **period** | **int** | How frequently log files are finalized so they can be available for reading (in seconds). | [optional] [defaults to 3600] **gzip_level** | **int** | The level of gzip encoding when sending logs (default `0`, no compression). Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. | [optional] [defaults to 0] -**compression_codec** | **string** | The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. | [optional] [one of: 'zstd', 'snappy', 'gzip'] **bucket_name** | **string** | The name of the DigitalOcean Space. | [optional] **access_key** | **string** | Your DigitalOcean Spaces account access key. | [optional] **secret_key** | **string** | Your DigitalOcean Spaces account secret key. | [optional] @@ -216,14 +216,14 @@ $options['version_id'] = 56; // int | Integer identifying a service version. $options['logging_digitalocean_name'] = 'logging_digitalocean_name_example'; // string | The name for the real-time logging configuration. $options['name'] = 'name_example'; // string | The name for the real-time logging configuration. $options['placement'] = 'placement_example'; // string | Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. -$options['format_version'] = self::FORMAT_VERSION_v2; // int | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. $options['response_condition'] = 'response_condition_example'; // string | The name of an existing condition in the configured endpoint, or leave blank to always execute. $options['format'] = '%h %l %u %t \"%r\" %>s %b'; // string | A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). +$options['format_version'] = self::FORMAT_VERSION_v2; // int | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. $options['message_type'] = 'classic'; // string | How the message should be formatted. $options['timestamp_format'] = 'timestamp_format_example'; // string | A timestamp format +$options['compression_codec'] = 'compression_codec_example'; // string | The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. $options['period'] = 3600; // int | How frequently log files are finalized so they can be available for reading (in seconds). $options['gzip_level'] = 0; // int | The level of gzip encoding when sending logs (default `0`, no compression). Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. -$options['compression_codec'] = 'compression_codec_example'; // string | The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. $options['bucket_name'] = 'bucket_name_example'; // string | The name of the DigitalOcean Space. $options['access_key'] = 'access_key_example'; // string | Your DigitalOcean Spaces account access key. $options['secret_key'] = 'secret_key_example'; // string | Your DigitalOcean Spaces account secret key. @@ -249,14 +249,14 @@ Name | Type | Description | Notes **logging_digitalocean_name** | **string** | The name for the real-time logging configuration. | **name** | **string** | The name for the real-time logging configuration. | [optional] **placement** | **string** | Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. | [optional] [one of: 'none', 'waf_debug', 'null'] -**format_version** | **int** | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. | [optional] [one of: 1, 2] **response_condition** | **string** | The name of an existing condition in the configured endpoint, or leave blank to always execute. | [optional] **format** | **string** | A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). | [optional] [defaults to '%h %l %u %t "%r" %>s %b'] +**format_version** | **int** | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. | [optional] [one of: 1, 2] **message_type** | **string** | How the message should be formatted. | [optional] [one of: 'classic', 'loggly', 'logplex', 'blank'] [defaults to 'classic'] **timestamp_format** | **string** | A timestamp format | [optional] +**compression_codec** | **string** | The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. | [optional] [one of: 'zstd', 'snappy', 'gzip'] **period** | **int** | How frequently log files are finalized so they can be available for reading (in seconds). | [optional] [defaults to 3600] **gzip_level** | **int** | The level of gzip encoding when sending logs (default `0`, no compression). Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. | [optional] [defaults to 0] -**compression_codec** | **string** | The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. | [optional] [one of: 'zstd', 'snappy', 'gzip'] **bucket_name** | **string** | The name of the DigitalOcean Space. | [optional] **access_key** | **string** | Your DigitalOcean Spaces account access key. | [optional] **secret_key** | **string** | Your DigitalOcean Spaces account secret key. | [optional] diff --git a/docs/Api/LoggingElasticsearchApi.md b/docs/Api/LoggingElasticsearchApi.md index 9c2a08e7..b58a7647 100644 --- a/docs/Api/LoggingElasticsearchApi.md +++ b/docs/Api/LoggingElasticsearchApi.md @@ -35,9 +35,9 @@ Create a Elasticsearch logging endpoint for a particular service and version. $options['version_id'] = 56; // int | Integer identifying a service version. $options['name'] = 'name_example'; // string | The name for the real-time logging configuration. $options['placement'] = 'placement_example'; // string | Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. -$options['format_version'] = self::FORMAT_VERSION_v2; // int | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. $options['response_condition'] = 'response_condition_example'; // string | The name of an existing condition in the configured endpoint, or leave blank to always execute. $options['format'] = 'format_example'; // string | A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). Must produce valid JSON that Elasticsearch can ingest. +$options['format_version'] = self::FORMAT_VERSION_v2; // int | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. $options['tls_ca_cert'] = 'null'; // string | A secure certificate to authenticate a server with. Must be in PEM format. $options['tls_client_cert'] = 'null'; // string | The client certificate used to make authenticated requests. Must be in PEM format. $options['tls_client_key'] = 'null'; // string | The client private key used to make authenticated requests. Must be in PEM format. @@ -67,9 +67,9 @@ Name | Type | Description | Notes **version_id** | **int** | Integer identifying a service version. | **name** | **string** | The name for the real-time logging configuration. | [optional] **placement** | **string** | Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. | [optional] [one of: 'none', 'waf_debug', 'null'] -**format_version** | **int** | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. | [optional] [one of: 1, 2] **response_condition** | **string** | The name of an existing condition in the configured endpoint, or leave blank to always execute. | [optional] **format** | **string** | A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). Must produce valid JSON that Elasticsearch can ingest. | [optional] +**format_version** | **int** | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. | [optional] [one of: 1, 2] **tls_ca_cert** | **string** | A secure certificate to authenticate a server with. Must be in PEM format. | [optional] [defaults to 'null'] **tls_client_cert** | **string** | The client certificate used to make authenticated requests. Must be in PEM format. | [optional] [defaults to 'null'] **tls_client_key** | **string** | The client private key used to make authenticated requests. Must be in PEM format. | [optional] [defaults to 'null'] @@ -216,9 +216,9 @@ $options['version_id'] = 56; // int | Integer identifying a service version. $options['logging_elasticsearch_name'] = 'logging_elasticsearch_name_example'; // string | The name for the real-time logging configuration. $options['name'] = 'name_example'; // string | The name for the real-time logging configuration. $options['placement'] = 'placement_example'; // string | Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. -$options['format_version'] = self::FORMAT_VERSION_v2; // int | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. $options['response_condition'] = 'response_condition_example'; // string | The name of an existing condition in the configured endpoint, or leave blank to always execute. $options['format'] = 'format_example'; // string | A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). Must produce valid JSON that Elasticsearch can ingest. +$options['format_version'] = self::FORMAT_VERSION_v2; // int | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. $options['tls_ca_cert'] = 'null'; // string | A secure certificate to authenticate a server with. Must be in PEM format. $options['tls_client_cert'] = 'null'; // string | The client certificate used to make authenticated requests. Must be in PEM format. $options['tls_client_key'] = 'null'; // string | The client private key used to make authenticated requests. Must be in PEM format. @@ -249,9 +249,9 @@ Name | Type | Description | Notes **logging_elasticsearch_name** | **string** | The name for the real-time logging configuration. | **name** | **string** | The name for the real-time logging configuration. | [optional] **placement** | **string** | Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. | [optional] [one of: 'none', 'waf_debug', 'null'] -**format_version** | **int** | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. | [optional] [one of: 1, 2] **response_condition** | **string** | The name of an existing condition in the configured endpoint, or leave blank to always execute. | [optional] **format** | **string** | A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). Must produce valid JSON that Elasticsearch can ingest. | [optional] +**format_version** | **int** | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. | [optional] [one of: 1, 2] **tls_ca_cert** | **string** | A secure certificate to authenticate a server with. Must be in PEM format. | [optional] [defaults to 'null'] **tls_client_cert** | **string** | The client certificate used to make authenticated requests. Must be in PEM format. | [optional] [defaults to 'null'] **tls_client_key** | **string** | The client private key used to make authenticated requests. Must be in PEM format. | [optional] [defaults to 'null'] diff --git a/docs/Api/LoggingFtpApi.md b/docs/Api/LoggingFtpApi.md index 44cfb8e8..21922b0a 100644 --- a/docs/Api/LoggingFtpApi.md +++ b/docs/Api/LoggingFtpApi.md @@ -35,22 +35,22 @@ Create a FTP for a particular service and version. $options['version_id'] = 56; // int | Integer identifying a service version. $options['name'] = 'name_example'; // string | The name for the real-time logging configuration. $options['placement'] = 'placement_example'; // string | Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. -$options['format_version'] = self::FORMAT_VERSION_v2; // int | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. $options['response_condition'] = 'response_condition_example'; // string | The name of an existing condition in the configured endpoint, or leave blank to always execute. $options['format'] = '%h %l %u %t \"%r\" %>s %b'; // string | A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). +$options['format_version'] = self::FORMAT_VERSION_v2; // int | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. $options['message_type'] = 'classic'; // string | How the message should be formatted. $options['timestamp_format'] = 'timestamp_format_example'; // string | A timestamp format +$options['compression_codec'] = 'compression_codec_example'; // string | The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. $options['period'] = 3600; // int | How frequently log files are finalized so they can be available for reading (in seconds). $options['gzip_level'] = 0; // int | The level of gzip encoding when sending logs (default `0`, no compression). Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. -$options['compression_codec'] = 'compression_codec_example'; // string | The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. $options['address'] = 'address_example'; // string | An hostname or IPv4 address. $options['hostname'] = 'hostname_example'; // string | Hostname used. $options['ipv4'] = 'ipv4_example'; // string | IPv4 address of the host. $options['password'] = 'password_example'; // string | The password for the server. For anonymous use an email address. $options['path'] = 'path_example'; // string | The path to upload log files to. If the path ends in `/` then it is treated as a directory. -$options['port'] = 21; // int | The port number. $options['public_key'] = 'null'; // string | A PGP public key that Fastly will use to encrypt your log files before writing them to disk. $options['user'] = 'user_example'; // string | The username for the server. Can be anonymous. +$options['port'] = 21; // int | The port number. try { $result = $apiInstance->createLogFtp($options); @@ -69,22 +69,22 @@ Name | Type | Description | Notes **version_id** | **int** | Integer identifying a service version. | **name** | **string** | The name for the real-time logging configuration. | [optional] **placement** | **string** | Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. | [optional] [one of: 'none', 'waf_debug', 'null'] -**format_version** | **int** | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. | [optional] [one of: 1, 2] **response_condition** | **string** | The name of an existing condition in the configured endpoint, or leave blank to always execute. | [optional] **format** | **string** | A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). | [optional] [defaults to '%h %l %u %t "%r" %>s %b'] +**format_version** | **int** | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. | [optional] [one of: 1, 2] **message_type** | **string** | How the message should be formatted. | [optional] [one of: 'classic', 'loggly', 'logplex', 'blank'] [defaults to 'classic'] **timestamp_format** | **string** | A timestamp format | [optional] +**compression_codec** | **string** | The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. | [optional] [one of: 'zstd', 'snappy', 'gzip'] **period** | **int** | How frequently log files are finalized so they can be available for reading (in seconds). | [optional] [defaults to 3600] **gzip_level** | **int** | The level of gzip encoding when sending logs (default `0`, no compression). Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. | [optional] [defaults to 0] -**compression_codec** | **string** | The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. | [optional] [one of: 'zstd', 'snappy', 'gzip'] **address** | **string** | An hostname or IPv4 address. | [optional] **hostname** | **string** | Hostname used. | [optional] **ipv4** | **string** | IPv4 address of the host. | [optional] **password** | **string** | The password for the server. For anonymous use an email address. | [optional] **path** | **string** | The path to upload log files to. If the path ends in `/` then it is treated as a directory. | [optional] -**port** | **int** | The port number. | [optional] [defaults to 21] **public_key** | **string** | A PGP public key that Fastly will use to encrypt your log files before writing them to disk. | [optional] [defaults to 'null'] **user** | **string** | The username for the server. Can be anonymous. | [optional] +**port** | **int** | The port number. | [optional] [defaults to 21] ### Return type @@ -220,22 +220,22 @@ $options['version_id'] = 56; // int | Integer identifying a service version. $options['logging_ftp_name'] = 'logging_ftp_name_example'; // string | The name for the real-time logging configuration. $options['name'] = 'name_example'; // string | The name for the real-time logging configuration. $options['placement'] = 'placement_example'; // string | Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. -$options['format_version'] = self::FORMAT_VERSION_v2; // int | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. $options['response_condition'] = 'response_condition_example'; // string | The name of an existing condition in the configured endpoint, or leave blank to always execute. $options['format'] = '%h %l %u %t \"%r\" %>s %b'; // string | A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). +$options['format_version'] = self::FORMAT_VERSION_v2; // int | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. $options['message_type'] = 'classic'; // string | How the message should be formatted. $options['timestamp_format'] = 'timestamp_format_example'; // string | A timestamp format +$options['compression_codec'] = 'compression_codec_example'; // string | The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. $options['period'] = 3600; // int | How frequently log files are finalized so they can be available for reading (in seconds). $options['gzip_level'] = 0; // int | The level of gzip encoding when sending logs (default `0`, no compression). Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. -$options['compression_codec'] = 'compression_codec_example'; // string | The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. $options['address'] = 'address_example'; // string | An hostname or IPv4 address. $options['hostname'] = 'hostname_example'; // string | Hostname used. $options['ipv4'] = 'ipv4_example'; // string | IPv4 address of the host. $options['password'] = 'password_example'; // string | The password for the server. For anonymous use an email address. $options['path'] = 'path_example'; // string | The path to upload log files to. If the path ends in `/` then it is treated as a directory. -$options['port'] = 21; // int | The port number. $options['public_key'] = 'null'; // string | A PGP public key that Fastly will use to encrypt your log files before writing them to disk. $options['user'] = 'user_example'; // string | The username for the server. Can be anonymous. +$options['port'] = 21; // int | The port number. try { $result = $apiInstance->updateLogFtp($options); @@ -255,22 +255,22 @@ Name | Type | Description | Notes **logging_ftp_name** | **string** | The name for the real-time logging configuration. | **name** | **string** | The name for the real-time logging configuration. | [optional] **placement** | **string** | Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. | [optional] [one of: 'none', 'waf_debug', 'null'] -**format_version** | **int** | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. | [optional] [one of: 1, 2] **response_condition** | **string** | The name of an existing condition in the configured endpoint, or leave blank to always execute. | [optional] **format** | **string** | A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). | [optional] [defaults to '%h %l %u %t "%r" %>s %b'] +**format_version** | **int** | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. | [optional] [one of: 1, 2] **message_type** | **string** | How the message should be formatted. | [optional] [one of: 'classic', 'loggly', 'logplex', 'blank'] [defaults to 'classic'] **timestamp_format** | **string** | A timestamp format | [optional] +**compression_codec** | **string** | The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. | [optional] [one of: 'zstd', 'snappy', 'gzip'] **period** | **int** | How frequently log files are finalized so they can be available for reading (in seconds). | [optional] [defaults to 3600] **gzip_level** | **int** | The level of gzip encoding when sending logs (default `0`, no compression). Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. | [optional] [defaults to 0] -**compression_codec** | **string** | The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. | [optional] [one of: 'zstd', 'snappy', 'gzip'] **address** | **string** | An hostname or IPv4 address. | [optional] **hostname** | **string** | Hostname used. | [optional] **ipv4** | **string** | IPv4 address of the host. | [optional] **password** | **string** | The password for the server. For anonymous use an email address. | [optional] **path** | **string** | The path to upload log files to. If the path ends in `/` then it is treated as a directory. | [optional] -**port** | **int** | The port number. | [optional] [defaults to 21] **public_key** | **string** | A PGP public key that Fastly will use to encrypt your log files before writing them to disk. | [optional] [defaults to 'null'] **user** | **string** | The username for the server. Can be anonymous. | [optional] +**port** | **int** | The port number. | [optional] [defaults to 21] ### Return type diff --git a/docs/Api/LoggingGcsApi.md b/docs/Api/LoggingGcsApi.md index d411596d..caf28d1a 100644 --- a/docs/Api/LoggingGcsApi.md +++ b/docs/Api/LoggingGcsApi.md @@ -35,14 +35,14 @@ Create GCS logging for a particular service and version. $options['version_id'] = 56; // int | Integer identifying a service version. $options['name'] = 'name_example'; // string | The name for the real-time logging configuration. $options['placement'] = 'placement_example'; // string | Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. -$options['format_version'] = self::FORMAT_VERSION_v2; // int | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. $options['response_condition'] = 'response_condition_example'; // string | The name of an existing condition in the configured endpoint, or leave blank to always execute. $options['format'] = '%h %l %u %t \"%r\" %>s %b'; // string | A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). +$options['format_version'] = self::FORMAT_VERSION_v2; // int | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. $options['message_type'] = 'classic'; // string | How the message should be formatted. $options['timestamp_format'] = 'timestamp_format_example'; // string | A timestamp format +$options['compression_codec'] = 'compression_codec_example'; // string | The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. $options['period'] = 3600; // int | How frequently log files are finalized so they can be available for reading (in seconds). $options['gzip_level'] = 0; // int | The level of gzip encoding when sending logs (default `0`, no compression). Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. -$options['compression_codec'] = 'compression_codec_example'; // string | The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. $options['user'] = 'user_example'; // string | Your Google Cloud Platform service account email address. The `client_email` field in your service account authentication JSON. Not required if `account_name` is specified. $options['secret_key'] = 'secret_key_example'; // string | Your Google Cloud Platform account secret key. The `private_key` field in your service account authentication JSON. Not required if `account_name` is specified. $options['account_name'] = 'account_name_example'; // string | The name of the Google Cloud Platform service account associated with the target log collection service. Not required if `user` and `secret_key` are provided. @@ -68,14 +68,14 @@ Name | Type | Description | Notes **version_id** | **int** | Integer identifying a service version. | **name** | **string** | The name for the real-time logging configuration. | [optional] **placement** | **string** | Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. | [optional] [one of: 'none', 'waf_debug', 'null'] -**format_version** | **int** | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. | [optional] [one of: 1, 2] **response_condition** | **string** | The name of an existing condition in the configured endpoint, or leave blank to always execute. | [optional] **format** | **string** | A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). | [optional] [defaults to '%h %l %u %t "%r" %>s %b'] +**format_version** | **int** | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. | [optional] [one of: 1, 2] **message_type** | **string** | How the message should be formatted. | [optional] [one of: 'classic', 'loggly', 'logplex', 'blank'] [defaults to 'classic'] **timestamp_format** | **string** | A timestamp format | [optional] +**compression_codec** | **string** | The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. | [optional] [one of: 'zstd', 'snappy', 'gzip'] **period** | **int** | How frequently log files are finalized so they can be available for reading (in seconds). | [optional] [defaults to 3600] **gzip_level** | **int** | The level of gzip encoding when sending logs (default `0`, no compression). Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. | [optional] [defaults to 0] -**compression_codec** | **string** | The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. | [optional] [one of: 'zstd', 'snappy', 'gzip'] **user** | **string** | Your Google Cloud Platform service account email address. The `client_email` field in your service account authentication JSON. Not required if `account_name` is specified. | [optional] **secret_key** | **string** | Your Google Cloud Platform account secret key. The `private_key` field in your service account authentication JSON. Not required if `account_name` is specified. | [optional] **account_name** | **string** | The name of the Google Cloud Platform service account associated with the target log collection service. Not required if `user` and `secret_key` are provided. | [optional] @@ -218,14 +218,14 @@ $options['version_id'] = 56; // int | Integer identifying a service version. $options['logging_gcs_name'] = 'logging_gcs_name_example'; // string | The name for the real-time logging configuration. $options['name'] = 'name_example'; // string | The name for the real-time logging configuration. $options['placement'] = 'placement_example'; // string | Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. -$options['format_version'] = self::FORMAT_VERSION_v2; // int | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. $options['response_condition'] = 'response_condition_example'; // string | The name of an existing condition in the configured endpoint, or leave blank to always execute. $options['format'] = '%h %l %u %t \"%r\" %>s %b'; // string | A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). +$options['format_version'] = self::FORMAT_VERSION_v2; // int | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. $options['message_type'] = 'classic'; // string | How the message should be formatted. $options['timestamp_format'] = 'timestamp_format_example'; // string | A timestamp format +$options['compression_codec'] = 'compression_codec_example'; // string | The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. $options['period'] = 3600; // int | How frequently log files are finalized so they can be available for reading (in seconds). $options['gzip_level'] = 0; // int | The level of gzip encoding when sending logs (default `0`, no compression). Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. -$options['compression_codec'] = 'compression_codec_example'; // string | The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. $options['user'] = 'user_example'; // string | Your Google Cloud Platform service account email address. The `client_email` field in your service account authentication JSON. Not required if `account_name` is specified. $options['secret_key'] = 'secret_key_example'; // string | Your Google Cloud Platform account secret key. The `private_key` field in your service account authentication JSON. Not required if `account_name` is specified. $options['account_name'] = 'account_name_example'; // string | The name of the Google Cloud Platform service account associated with the target log collection service. Not required if `user` and `secret_key` are provided. @@ -252,14 +252,14 @@ Name | Type | Description | Notes **logging_gcs_name** | **string** | The name for the real-time logging configuration. | **name** | **string** | The name for the real-time logging configuration. | [optional] **placement** | **string** | Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. | [optional] [one of: 'none', 'waf_debug', 'null'] -**format_version** | **int** | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. | [optional] [one of: 1, 2] **response_condition** | **string** | The name of an existing condition in the configured endpoint, or leave blank to always execute. | [optional] **format** | **string** | A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). | [optional] [defaults to '%h %l %u %t "%r" %>s %b'] +**format_version** | **int** | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. | [optional] [one of: 1, 2] **message_type** | **string** | How the message should be formatted. | [optional] [one of: 'classic', 'loggly', 'logplex', 'blank'] [defaults to 'classic'] **timestamp_format** | **string** | A timestamp format | [optional] +**compression_codec** | **string** | The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. | [optional] [one of: 'zstd', 'snappy', 'gzip'] **period** | **int** | How frequently log files are finalized so they can be available for reading (in seconds). | [optional] [defaults to 3600] **gzip_level** | **int** | The level of gzip encoding when sending logs (default `0`, no compression). Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. | [optional] [defaults to 0] -**compression_codec** | **string** | The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. | [optional] [one of: 'zstd', 'snappy', 'gzip'] **user** | **string** | Your Google Cloud Platform service account email address. The `client_email` field in your service account authentication JSON. Not required if `account_name` is specified. | [optional] **secret_key** | **string** | Your Google Cloud Platform account secret key. The `private_key` field in your service account authentication JSON. Not required if `account_name` is specified. | [optional] **account_name** | **string** | The name of the Google Cloud Platform service account associated with the target log collection service. Not required if `user` and `secret_key` are provided. | [optional] diff --git a/docs/Api/LoggingHerokuApi.md b/docs/Api/LoggingHerokuApi.md index ad64fe8f..a2df9f49 100644 --- a/docs/Api/LoggingHerokuApi.md +++ b/docs/Api/LoggingHerokuApi.md @@ -35,9 +35,9 @@ Create a Heroku for a particular service and version. $options['version_id'] = 56; // int | Integer identifying a service version. $options['name'] = 'name_example'; // string | The name for the real-time logging configuration. $options['placement'] = 'placement_example'; // string | Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. -$options['format_version'] = self::FORMAT_VERSION_v2; // int | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. $options['response_condition'] = 'response_condition_example'; // string | The name of an existing condition in the configured endpoint, or leave blank to always execute. $options['format'] = '%h %l %u %t \"%r\" %>s %b'; // string | A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). +$options['format_version'] = self::FORMAT_VERSION_v2; // int | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. $options['token'] = 'token_example'; // string | The token to use for authentication ([https://devcenter.heroku.com/articles/add-on-partner-log-integration](https://devcenter.heroku.com/articles/add-on-partner-log-integration)). $options['url'] = 'url_example'; // string | The URL to stream logs to. @@ -58,9 +58,9 @@ Name | Type | Description | Notes **version_id** | **int** | Integer identifying a service version. | **name** | **string** | The name for the real-time logging configuration. | [optional] **placement** | **string** | Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. | [optional] [one of: 'none', 'waf_debug', 'null'] -**format_version** | **int** | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. | [optional] [one of: 1, 2] **response_condition** | **string** | The name of an existing condition in the configured endpoint, or leave blank to always execute. | [optional] **format** | **string** | A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). | [optional] [defaults to '%h %l %u %t "%r" %>s %b'] +**format_version** | **int** | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. | [optional] [one of: 1, 2] **token** | **string** | The token to use for authentication ([https://devcenter.heroku.com/articles/add-on-partner-log-integration](https://devcenter.heroku.com/articles/add-on-partner-log-integration)). | [optional] **url** | **string** | The URL to stream logs to. | [optional] @@ -198,9 +198,9 @@ $options['version_id'] = 56; // int | Integer identifying a service version. $options['logging_heroku_name'] = 'logging_heroku_name_example'; // string | The name for the real-time logging configuration. $options['name'] = 'name_example'; // string | The name for the real-time logging configuration. $options['placement'] = 'placement_example'; // string | Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. -$options['format_version'] = self::FORMAT_VERSION_v2; // int | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. $options['response_condition'] = 'response_condition_example'; // string | The name of an existing condition in the configured endpoint, or leave blank to always execute. $options['format'] = '%h %l %u %t \"%r\" %>s %b'; // string | A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). +$options['format_version'] = self::FORMAT_VERSION_v2; // int | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. $options['token'] = 'token_example'; // string | The token to use for authentication ([https://devcenter.heroku.com/articles/add-on-partner-log-integration](https://devcenter.heroku.com/articles/add-on-partner-log-integration)). $options['url'] = 'url_example'; // string | The URL to stream logs to. @@ -222,9 +222,9 @@ Name | Type | Description | Notes **logging_heroku_name** | **string** | The name for the real-time logging configuration. | **name** | **string** | The name for the real-time logging configuration. | [optional] **placement** | **string** | Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. | [optional] [one of: 'none', 'waf_debug', 'null'] -**format_version** | **int** | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. | [optional] [one of: 1, 2] **response_condition** | **string** | The name of an existing condition in the configured endpoint, or leave blank to always execute. | [optional] **format** | **string** | A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). | [optional] [defaults to '%h %l %u %t "%r" %>s %b'] +**format_version** | **int** | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. | [optional] [one of: 1, 2] **token** | **string** | The token to use for authentication ([https://devcenter.heroku.com/articles/add-on-partner-log-integration](https://devcenter.heroku.com/articles/add-on-partner-log-integration)). | [optional] **url** | **string** | The URL to stream logs to. | [optional] diff --git a/docs/Api/LoggingHoneycombApi.md b/docs/Api/LoggingHoneycombApi.md index de9bc719..326e6db9 100644 --- a/docs/Api/LoggingHoneycombApi.md +++ b/docs/Api/LoggingHoneycombApi.md @@ -24,7 +24,7 @@ Method | Fastly API endpoint | Description ## `createLogHoneycomb()` ```php -createLogHoneycomb($options): \Fastly\Model\LoggingHoneycomb // Create a Honeycomb log endpoint +createLogHoneycomb($options): \Fastly\Model\LoggingHoneycombResponse // Create a Honeycomb log endpoint ``` Create a Honeycomb logging object for a particular service and version. @@ -35,9 +35,9 @@ Create a Honeycomb logging object for a particular service and version. $options['version_id'] = 56; // int | Integer identifying a service version. $options['name'] = 'name_example'; // string | The name for the real-time logging configuration. $options['placement'] = 'placement_example'; // string | Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. -$options['format_version'] = self::FORMAT_VERSION_v2; // int | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. $options['response_condition'] = 'response_condition_example'; // string | The name of an existing condition in the configured endpoint, or leave blank to always execute. $options['format'] = 'format_example'; // string | A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). Must produce valid JSON that Honeycomb can ingest. +$options['format_version'] = self::FORMAT_VERSION_v2; // int | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. $options['dataset'] = 'dataset_example'; // string | The Honeycomb Dataset you want to log to. $options['token'] = 'token_example'; // string | The Write Key from the Account page of your Honeycomb account. @@ -58,15 +58,15 @@ Name | Type | Description | Notes **version_id** | **int** | Integer identifying a service version. | **name** | **string** | The name for the real-time logging configuration. | [optional] **placement** | **string** | Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. | [optional] [one of: 'none', 'waf_debug', 'null'] -**format_version** | **int** | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. | [optional] [one of: 1, 2] **response_condition** | **string** | The name of an existing condition in the configured endpoint, or leave blank to always execute. | [optional] **format** | **string** | A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). Must produce valid JSON that Honeycomb can ingest. | [optional] +**format_version** | **int** | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. | [optional] [one of: 1, 2] **dataset** | **string** | The Honeycomb Dataset you want to log to. | [optional] **token** | **string** | The Write Key from the Account page of your Honeycomb account. | [optional] ### Return type -[**\Fastly\Model\LoggingHoneycomb**](../Model/LoggingHoneycomb.md) +[**\Fastly\Model\LoggingHoneycombResponse**](../Model/LoggingHoneycombResponse.md) [[Back to top]](#) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) @@ -112,7 +112,7 @@ Name | Type | Description | Notes ## `getLogHoneycomb()` ```php -getLogHoneycomb($options): \Fastly\Model\LoggingHoneycomb // Get a Honeycomb log endpoint +getLogHoneycomb($options): \Fastly\Model\LoggingHoneycombResponse // Get a Honeycomb log endpoint ``` Get the details of a Honeycomb logging object for a particular service and version. @@ -142,7 +142,7 @@ Name | Type | Description | Notes ### Return type -[**\Fastly\Model\LoggingHoneycomb**](../Model/LoggingHoneycomb.md) +[**\Fastly\Model\LoggingHoneycombResponse**](../Model/LoggingHoneycombResponse.md) [[Back to top]](#) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) @@ -198,9 +198,9 @@ $options['version_id'] = 56; // int | Integer identifying a service version. $options['logging_honeycomb_name'] = 'logging_honeycomb_name_example'; // string | The name for the real-time logging configuration. $options['name'] = 'name_example'; // string | The name for the real-time logging configuration. $options['placement'] = 'placement_example'; // string | Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. -$options['format_version'] = self::FORMAT_VERSION_v2; // int | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. $options['response_condition'] = 'response_condition_example'; // string | The name of an existing condition in the configured endpoint, or leave blank to always execute. $options['format'] = 'format_example'; // string | A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). Must produce valid JSON that Honeycomb can ingest. +$options['format_version'] = self::FORMAT_VERSION_v2; // int | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. $options['dataset'] = 'dataset_example'; // string | The Honeycomb Dataset you want to log to. $options['token'] = 'token_example'; // string | The Write Key from the Account page of your Honeycomb account. @@ -222,9 +222,9 @@ Name | Type | Description | Notes **logging_honeycomb_name** | **string** | The name for the real-time logging configuration. | **name** | **string** | The name for the real-time logging configuration. | [optional] **placement** | **string** | Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. | [optional] [one of: 'none', 'waf_debug', 'null'] -**format_version** | **int** | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. | [optional] [one of: 1, 2] **response_condition** | **string** | The name of an existing condition in the configured endpoint, or leave blank to always execute. | [optional] **format** | **string** | A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). Must produce valid JSON that Honeycomb can ingest. | [optional] +**format_version** | **int** | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. | [optional] [one of: 1, 2] **dataset** | **string** | The Honeycomb Dataset you want to log to. | [optional] **token** | **string** | The Write Key from the Account page of your Honeycomb account. | [optional] diff --git a/docs/Api/LoggingHttpsApi.md b/docs/Api/LoggingHttpsApi.md index 214cc32c..0cbe9bd3 100644 --- a/docs/Api/LoggingHttpsApi.md +++ b/docs/Api/LoggingHttpsApi.md @@ -35,9 +35,9 @@ Create an HTTPS object for a particular service and version. $options['version_id'] = 56; // int | Integer identifying a service version. $options['name'] = 'name_example'; // string | The name for the real-time logging configuration. $options['placement'] = 'placement_example'; // string | Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. -$options['format_version'] = self::FORMAT_VERSION_v2; // int | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. $options['response_condition'] = 'response_condition_example'; // string | The name of an existing condition in the configured endpoint, or leave blank to always execute. $options['format'] = '%h %l %u %t \"%r\" %>s %b'; // string | A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). +$options['format_version'] = self::FORMAT_VERSION_v2; // int | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. $options['tls_ca_cert'] = 'null'; // string | A secure certificate to authenticate a server with. Must be in PEM format. $options['tls_client_cert'] = 'null'; // string | The client certificate used to make authenticated requests. Must be in PEM format. $options['tls_client_key'] = 'null'; // string | The client private key used to make authenticated requests. Must be in PEM format. @@ -69,9 +69,9 @@ Name | Type | Description | Notes **version_id** | **int** | Integer identifying a service version. | **name** | **string** | The name for the real-time logging configuration. | [optional] **placement** | **string** | Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. | [optional] [one of: 'none', 'waf_debug', 'null'] -**format_version** | **int** | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. | [optional] [one of: 1, 2] **response_condition** | **string** | The name of an existing condition in the configured endpoint, or leave blank to always execute. | [optional] **format** | **string** | A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). | [optional] [defaults to '%h %l %u %t "%r" %>s %b'] +**format_version** | **int** | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. | [optional] [one of: 1, 2] **tls_ca_cert** | **string** | A secure certificate to authenticate a server with. Must be in PEM format. | [optional] [defaults to 'null'] **tls_client_cert** | **string** | The client certificate used to make authenticated requests. Must be in PEM format. | [optional] [defaults to 'null'] **tls_client_key** | **string** | The client private key used to make authenticated requests. Must be in PEM format. | [optional] [defaults to 'null'] @@ -220,9 +220,9 @@ $options['version_id'] = 56; // int | Integer identifying a service version. $options['logging_https_name'] = 'logging_https_name_example'; // string | The name for the real-time logging configuration. $options['name'] = 'name_example'; // string | The name for the real-time logging configuration. $options['placement'] = 'placement_example'; // string | Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. -$options['format_version'] = self::FORMAT_VERSION_v2; // int | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. $options['response_condition'] = 'response_condition_example'; // string | The name of an existing condition in the configured endpoint, or leave blank to always execute. $options['format'] = '%h %l %u %t \"%r\" %>s %b'; // string | A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). +$options['format_version'] = self::FORMAT_VERSION_v2; // int | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. $options['tls_ca_cert'] = 'null'; // string | A secure certificate to authenticate a server with. Must be in PEM format. $options['tls_client_cert'] = 'null'; // string | The client certificate used to make authenticated requests. Must be in PEM format. $options['tls_client_key'] = 'null'; // string | The client private key used to make authenticated requests. Must be in PEM format. @@ -255,9 +255,9 @@ Name | Type | Description | Notes **logging_https_name** | **string** | The name for the real-time logging configuration. | **name** | **string** | The name for the real-time logging configuration. | [optional] **placement** | **string** | Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. | [optional] [one of: 'none', 'waf_debug', 'null'] -**format_version** | **int** | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. | [optional] [one of: 1, 2] **response_condition** | **string** | The name of an existing condition in the configured endpoint, or leave blank to always execute. | [optional] **format** | **string** | A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). | [optional] [defaults to '%h %l %u %t "%r" %>s %b'] +**format_version** | **int** | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. | [optional] [one of: 1, 2] **tls_ca_cert** | **string** | A secure certificate to authenticate a server with. Must be in PEM format. | [optional] [defaults to 'null'] **tls_client_cert** | **string** | The client certificate used to make authenticated requests. Must be in PEM format. | [optional] [defaults to 'null'] **tls_client_key** | **string** | The client private key used to make authenticated requests. Must be in PEM format. | [optional] [defaults to 'null'] diff --git a/docs/Api/LoggingKafkaApi.md b/docs/Api/LoggingKafkaApi.md index c573adf5..783b14fa 100644 --- a/docs/Api/LoggingKafkaApi.md +++ b/docs/Api/LoggingKafkaApi.md @@ -24,7 +24,7 @@ Method | Fastly API endpoint | Description ## `createLogKafka()` ```php -createLogKafka($options): \Fastly\Model\LoggingKafkaResponse // Create a Kafka log endpoint +createLogKafka($options): \Fastly\Model\LoggingKafkaResponsePost // Create a Kafka log endpoint ``` Create a Kafka logging endpoint for a particular service and version. @@ -35,9 +35,9 @@ Create a Kafka logging endpoint for a particular service and version. $options['version_id'] = 56; // int | Integer identifying a service version. $options['name'] = 'name_example'; // string | The name for the real-time logging configuration. $options['placement'] = 'placement_example'; // string | Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. -$options['format_version'] = self::FORMAT_VERSION_v2; // int | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. $options['response_condition'] = 'response_condition_example'; // string | The name of an existing condition in the configured endpoint, or leave blank to always execute. $options['format'] = '%h %l %u %t \"%r\" %>s %b'; // string | A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). +$options['format_version'] = self::FORMAT_VERSION_v2; // int | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. $options['tls_ca_cert'] = 'null'; // string | A secure certificate to authenticate a server with. Must be in PEM format. $options['tls_client_cert'] = 'null'; // string | The client certificate used to make authenticated requests. Must be in PEM format. $options['tls_client_key'] = 'null'; // string | The client private key used to make authenticated requests. Must be in PEM format. @@ -70,9 +70,9 @@ Name | Type | Description | Notes **version_id** | **int** | Integer identifying a service version. | **name** | **string** | The name for the real-time logging configuration. | [optional] **placement** | **string** | Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. | [optional] [one of: 'none', 'waf_debug', 'null'] -**format_version** | **int** | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. | [optional] [one of: 1, 2] **response_condition** | **string** | The name of an existing condition in the configured endpoint, or leave blank to always execute. | [optional] **format** | **string** | A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). | [optional] [defaults to '%h %l %u %t "%r" %>s %b'] +**format_version** | **int** | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. | [optional] [one of: 1, 2] **tls_ca_cert** | **string** | A secure certificate to authenticate a server with. Must be in PEM format. | [optional] [defaults to 'null'] **tls_client_cert** | **string** | The client certificate used to make authenticated requests. Must be in PEM format. | [optional] [defaults to 'null'] **tls_client_key** | **string** | The client private key used to make authenticated requests. Must be in PEM format. | [optional] [defaults to 'null'] @@ -90,7 +90,7 @@ Name | Type | Description | Notes ### Return type -[**\Fastly\Model\LoggingKafkaResponse**](../Model/LoggingKafkaResponse.md) +[**\Fastly\Model\LoggingKafkaResponsePost**](../Model/LoggingKafkaResponsePost.md) [[Back to top]](#) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/docs/Api/LoggingKinesisApi.md b/docs/Api/LoggingKinesisApi.md index a1d767e1..4bb567b7 100644 --- a/docs/Api/LoggingKinesisApi.md +++ b/docs/Api/LoggingKinesisApi.md @@ -35,13 +35,13 @@ Create an Amazon Kinesis Data Streams logging object for a particular service an $options['version_id'] = 56; // int | Integer identifying a service version. $options['name'] = 'name_example'; // string | The name for the real-time logging configuration. $options['placement'] = new \Fastly\Model\LoggingPlacement(); // \Fastly\Model\LoggingPlacement -$options['format_version'] = new \Fastly\Model\LoggingFormatVersion(); // \Fastly\Model\LoggingFormatVersion $options['format'] = '{\"timestamp\":\"%{begin:%Y-%m-%dT%H:%M:%S}t\",\"time_elapsed\":\"%{time.elapsed.usec}V\",\"is_tls\":\"%{if(req.is_ssl, \\\"true\\\", \\\"false\\\")}V\",\"client_ip\":\"%{req.http.Fastly-Client-IP}V\",\"geo_city\":\"%{client.geo.city}V\",\"geo_country_code\":\"%{client.geo.country_code}V\",\"request\":\"%{req.request}V\",\"host\":\"%{req.http.Fastly-Orig-Host}V\",\"url\":\"%{json.escape(req.url)}V\",\"request_referer\":\"%{json.escape(req.http.Referer)}V\",\"request_user_agent\":\"%{json.escape(req.http.User-Agent)}V\",\"request_accept_language\":\"%{json.escape(req.http.Accept-Language)}V\",\"request_accept_charset\":\"%{json.escape(req.http.Accept-Charset)}V\",\"cache_status\":\"%{regsub(fastly_info.state, \\\"^(HIT-(SYNTH)|(HITPASS|HIT|MISS|PASS|ERROR|PIPE)).*\\\", \\\"\\\\2\\\\3\\\") }V\"}'; // string | A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). Must produce valid JSON that Kinesis can ingest. $options['topic'] = 'topic_example'; // string | The Amazon Kinesis stream to send logs to. Required. $options['region'] = new \Fastly\Model\AwsRegion(); // \Fastly\Model\AwsRegion $options['secret_key'] = 'secret_key_example'; // string | The secret key associated with the target Amazon Kinesis stream. Not required if `iam_role` is specified. $options['access_key'] = 'access_key_example'; // string | The access key associated with the target Amazon Kinesis stream. Not required if `iam_role` is specified. $options['iam_role'] = 'iam_role_example'; // string | The ARN for an IAM role granting Fastly access to the target Amazon Kinesis stream. Not required if `access_key` and `secret_key` are provided. +$options['format_version'] = self::FORMAT_VERSION_v2; // int | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. try { $result = $apiInstance->createLogKinesis($options); @@ -60,13 +60,13 @@ Name | Type | Description | Notes **version_id** | **int** | Integer identifying a service version. | **name** | **string** | The name for the real-time logging configuration. | [optional] **placement** | [**\Fastly\Model\LoggingPlacement**](../Model/LoggingPlacement.md) | | [optional] -**format_version** | [**\Fastly\Model\LoggingFormatVersion**](../Model/LoggingFormatVersion.md) | | [optional] **format** | **string** | A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). Must produce valid JSON that Kinesis can ingest. | [optional] [defaults to '{"timestamp":"%{begin:%Y-%m-%dT%H:%M:%S}t","time_elapsed":"%{time.elapsed.usec}V","is_tls":"%{if(req.is_ssl, \"true\", \"false\")}V","client_ip":"%{req.http.Fastly-Client-IP}V","geo_city":"%{client.geo.city}V","geo_country_code":"%{client.geo.country_code}V","request":"%{req.request}V","host":"%{req.http.Fastly-Orig-Host}V","url":"%{json.escape(req.url)}V","request_referer":"%{json.escape(req.http.Referer)}V","request_user_agent":"%{json.escape(req.http.User-Agent)}V","request_accept_language":"%{json.escape(req.http.Accept-Language)}V","request_accept_charset":"%{json.escape(req.http.Accept-Charset)}V","cache_status":"%{regsub(fastly_info.state, \"^(HIT-(SYNTH)|(HITPASS|HIT|MISS|PASS|ERROR|PIPE)).*\", \"\\2\\3\") }V"}'] **topic** | **string** | The Amazon Kinesis stream to send logs to. Required. | [optional] **region** | [**\Fastly\Model\AwsRegion**](../Model/AwsRegion.md) | | [optional] **secret_key** | **string** | The secret key associated with the target Amazon Kinesis stream. Not required if `iam_role` is specified. | [optional] **access_key** | **string** | The access key associated with the target Amazon Kinesis stream. Not required if `iam_role` is specified. | [optional] **iam_role** | **string** | The ARN for an IAM role granting Fastly access to the target Amazon Kinesis stream. Not required if `access_key` and `secret_key` are provided. | [optional] +**format_version** | **int** | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. | [optional] [one of: 1, 2] ### Return type diff --git a/docs/Api/LoggingLogentriesApi.md b/docs/Api/LoggingLogentriesApi.md index 37f74b19..89a0a324 100644 --- a/docs/Api/LoggingLogentriesApi.md +++ b/docs/Api/LoggingLogentriesApi.md @@ -35,9 +35,9 @@ Create a Logentry for a particular service and version. $options['version_id'] = 56; // int | Integer identifying a service version. $options['name'] = 'name_example'; // string | The name for the real-time logging configuration. $options['placement'] = 'placement_example'; // string | Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. -$options['format_version'] = self::FORMAT_VERSION_v2; // int | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. $options['response_condition'] = 'response_condition_example'; // string | The name of an existing condition in the configured endpoint, or leave blank to always execute. $options['format'] = '%h %l %u %t \"%r\" %>s %b'; // string | A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). +$options['format_version'] = self::FORMAT_VERSION_v2; // int | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. $options['port'] = 20000; // int | The port number. $options['token'] = 'token_example'; // string | Use token based authentication ([https://logentries.com/doc/input-token/](https://logentries.com/doc/input-token/)). $options['use_tls'] = new \Fastly\Model\LoggingUseTls(); // \Fastly\Model\LoggingUseTls @@ -60,9 +60,9 @@ Name | Type | Description | Notes **version_id** | **int** | Integer identifying a service version. | **name** | **string** | The name for the real-time logging configuration. | [optional] **placement** | **string** | Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. | [optional] [one of: 'none', 'waf_debug', 'null'] -**format_version** | **int** | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. | [optional] [one of: 1, 2] **response_condition** | **string** | The name of an existing condition in the configured endpoint, or leave blank to always execute. | [optional] **format** | **string** | A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). | [optional] [defaults to '%h %l %u %t "%r" %>s %b'] +**format_version** | **int** | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. | [optional] [one of: 1, 2] **port** | **int** | The port number. | [optional] [defaults to 20000] **token** | **string** | Use token based authentication ([https://logentries.com/doc/input-token/](https://logentries.com/doc/input-token/)). | [optional] **use_tls** | [**\Fastly\Model\LoggingUseTls**](../Model/LoggingUseTls.md) | | [optional] @@ -202,9 +202,9 @@ $options['version_id'] = 56; // int | Integer identifying a service version. $options['logging_logentries_name'] = 'logging_logentries_name_example'; // string | The name for the real-time logging configuration. $options['name'] = 'name_example'; // string | The name for the real-time logging configuration. $options['placement'] = 'placement_example'; // string | Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. -$options['format_version'] = self::FORMAT_VERSION_v2; // int | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. $options['response_condition'] = 'response_condition_example'; // string | The name of an existing condition in the configured endpoint, or leave blank to always execute. $options['format'] = '%h %l %u %t \"%r\" %>s %b'; // string | A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). +$options['format_version'] = self::FORMAT_VERSION_v2; // int | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. $options['port'] = 20000; // int | The port number. $options['token'] = 'token_example'; // string | Use token based authentication ([https://logentries.com/doc/input-token/](https://logentries.com/doc/input-token/)). $options['use_tls'] = new \Fastly\Model\LoggingUseTls(); // \Fastly\Model\LoggingUseTls @@ -228,9 +228,9 @@ Name | Type | Description | Notes **logging_logentries_name** | **string** | The name for the real-time logging configuration. | **name** | **string** | The name for the real-time logging configuration. | [optional] **placement** | **string** | Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. | [optional] [one of: 'none', 'waf_debug', 'null'] -**format_version** | **int** | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. | [optional] [one of: 1, 2] **response_condition** | **string** | The name of an existing condition in the configured endpoint, or leave blank to always execute. | [optional] **format** | **string** | A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). | [optional] [defaults to '%h %l %u %t "%r" %>s %b'] +**format_version** | **int** | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. | [optional] [one of: 1, 2] **port** | **int** | The port number. | [optional] [defaults to 20000] **token** | **string** | Use token based authentication ([https://logentries.com/doc/input-token/](https://logentries.com/doc/input-token/)). | [optional] **use_tls** | [**\Fastly\Model\LoggingUseTls**](../Model/LoggingUseTls.md) | | [optional] diff --git a/docs/Api/LoggingLogglyApi.md b/docs/Api/LoggingLogglyApi.md index 058ec282..d1f44530 100644 --- a/docs/Api/LoggingLogglyApi.md +++ b/docs/Api/LoggingLogglyApi.md @@ -35,9 +35,9 @@ Create a Loggly logging object for a particular service and version. $options['version_id'] = 56; // int | Integer identifying a service version. $options['name'] = 'name_example'; // string | The name for the real-time logging configuration. $options['placement'] = 'placement_example'; // string | Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. -$options['format_version'] = self::FORMAT_VERSION_v2; // int | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. $options['response_condition'] = 'response_condition_example'; // string | The name of an existing condition in the configured endpoint, or leave blank to always execute. $options['format'] = '%h %l %u %t \"%r\" %>s %b'; // string | A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). +$options['format_version'] = self::FORMAT_VERSION_v2; // int | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. $options['token'] = 'token_example'; // string | The token to use for authentication ([https://www.loggly.com/docs/customer-token-authentication-token/](https://www.loggly.com/docs/customer-token-authentication-token/)). try { @@ -57,9 +57,9 @@ Name | Type | Description | Notes **version_id** | **int** | Integer identifying a service version. | **name** | **string** | The name for the real-time logging configuration. | [optional] **placement** | **string** | Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. | [optional] [one of: 'none', 'waf_debug', 'null'] -**format_version** | **int** | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. | [optional] [one of: 1, 2] **response_condition** | **string** | The name of an existing condition in the configured endpoint, or leave blank to always execute. | [optional] **format** | **string** | A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). | [optional] [defaults to '%h %l %u %t "%r" %>s %b'] +**format_version** | **int** | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. | [optional] [one of: 1, 2] **token** | **string** | The token to use for authentication ([https://www.loggly.com/docs/customer-token-authentication-token/](https://www.loggly.com/docs/customer-token-authentication-token/)). | [optional] ### Return type @@ -196,9 +196,9 @@ $options['version_id'] = 56; // int | Integer identifying a service version. $options['logging_loggly_name'] = 'logging_loggly_name_example'; // string | The name for the real-time logging configuration. $options['name'] = 'name_example'; // string | The name for the real-time logging configuration. $options['placement'] = 'placement_example'; // string | Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. -$options['format_version'] = self::FORMAT_VERSION_v2; // int | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. $options['response_condition'] = 'response_condition_example'; // string | The name of an existing condition in the configured endpoint, or leave blank to always execute. $options['format'] = '%h %l %u %t \"%r\" %>s %b'; // string | A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). +$options['format_version'] = self::FORMAT_VERSION_v2; // int | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. $options['token'] = 'token_example'; // string | The token to use for authentication ([https://www.loggly.com/docs/customer-token-authentication-token/](https://www.loggly.com/docs/customer-token-authentication-token/)). try { @@ -219,9 +219,9 @@ Name | Type | Description | Notes **logging_loggly_name** | **string** | The name for the real-time logging configuration. | **name** | **string** | The name for the real-time logging configuration. | [optional] **placement** | **string** | Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. | [optional] [one of: 'none', 'waf_debug', 'null'] -**format_version** | **int** | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. | [optional] [one of: 1, 2] **response_condition** | **string** | The name of an existing condition in the configured endpoint, or leave blank to always execute. | [optional] **format** | **string** | A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). | [optional] [defaults to '%h %l %u %t "%r" %>s %b'] +**format_version** | **int** | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. | [optional] [one of: 1, 2] **token** | **string** | The token to use for authentication ([https://www.loggly.com/docs/customer-token-authentication-token/](https://www.loggly.com/docs/customer-token-authentication-token/)). | [optional] ### Return type diff --git a/docs/Api/LoggingLogshuttleApi.md b/docs/Api/LoggingLogshuttleApi.md index c07f0981..4561d62a 100644 --- a/docs/Api/LoggingLogshuttleApi.md +++ b/docs/Api/LoggingLogshuttleApi.md @@ -35,9 +35,9 @@ Create a Log Shuttle logging endpoint for a particular service and version. $options['version_id'] = 56; // int | Integer identifying a service version. $options['name'] = 'name_example'; // string | The name for the real-time logging configuration. $options['placement'] = 'placement_example'; // string | Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. -$options['format_version'] = self::FORMAT_VERSION_v2; // int | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. $options['response_condition'] = 'response_condition_example'; // string | The name of an existing condition in the configured endpoint, or leave blank to always execute. $options['format'] = '%h %l %u %t \"%r\" %>s %b'; // string | A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). +$options['format_version'] = self::FORMAT_VERSION_v2; // int | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. $options['token'] = 'token_example'; // string | The data authentication token associated with this endpoint. $options['url'] = 'url_example'; // string | The URL to stream logs to. @@ -58,9 +58,9 @@ Name | Type | Description | Notes **version_id** | **int** | Integer identifying a service version. | **name** | **string** | The name for the real-time logging configuration. | [optional] **placement** | **string** | Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. | [optional] [one of: 'none', 'waf_debug', 'null'] -**format_version** | **int** | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. | [optional] [one of: 1, 2] **response_condition** | **string** | The name of an existing condition in the configured endpoint, or leave blank to always execute. | [optional] **format** | **string** | A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). | [optional] [defaults to '%h %l %u %t "%r" %>s %b'] +**format_version** | **int** | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. | [optional] [one of: 1, 2] **token** | **string** | The data authentication token associated with this endpoint. | [optional] **url** | **string** | The URL to stream logs to. | [optional] @@ -198,9 +198,9 @@ $options['version_id'] = 56; // int | Integer identifying a service version. $options['logging_logshuttle_name'] = 'logging_logshuttle_name_example'; // string | The name for the real-time logging configuration. $options['name'] = 'name_example'; // string | The name for the real-time logging configuration. $options['placement'] = 'placement_example'; // string | Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. -$options['format_version'] = self::FORMAT_VERSION_v2; // int | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. $options['response_condition'] = 'response_condition_example'; // string | The name of an existing condition in the configured endpoint, or leave blank to always execute. $options['format'] = '%h %l %u %t \"%r\" %>s %b'; // string | A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). +$options['format_version'] = self::FORMAT_VERSION_v2; // int | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. $options['token'] = 'token_example'; // string | The data authentication token associated with this endpoint. $options['url'] = 'url_example'; // string | The URL to stream logs to. @@ -222,9 +222,9 @@ Name | Type | Description | Notes **logging_logshuttle_name** | **string** | The name for the real-time logging configuration. | **name** | **string** | The name for the real-time logging configuration. | [optional] **placement** | **string** | Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. | [optional] [one of: 'none', 'waf_debug', 'null'] -**format_version** | **int** | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. | [optional] [one of: 1, 2] **response_condition** | **string** | The name of an existing condition in the configured endpoint, or leave blank to always execute. | [optional] **format** | **string** | A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). | [optional] [defaults to '%h %l %u %t "%r" %>s %b'] +**format_version** | **int** | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. | [optional] [one of: 1, 2] **token** | **string** | The data authentication token associated with this endpoint. | [optional] **url** | **string** | The URL to stream logs to. | [optional] diff --git a/docs/Api/LoggingNewrelicApi.md b/docs/Api/LoggingNewrelicApi.md index 475268f2..af4d2b91 100644 --- a/docs/Api/LoggingNewrelicApi.md +++ b/docs/Api/LoggingNewrelicApi.md @@ -35,9 +35,9 @@ Create a New Relic Logs logging object for a particular service and version. $options['version_id'] = 56; // int | Integer identifying a service version. $options['name'] = 'name_example'; // string | The name for the real-time logging configuration. $options['placement'] = 'placement_example'; // string | Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. -$options['format_version'] = self::FORMAT_VERSION_v2; // int | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. $options['response_condition'] = 'response_condition_example'; // string | The name of an existing condition in the configured endpoint, or leave blank to always execute. $options['format'] = '{\"timestamp\":\"%{begin:%Y-%m-%dT%H:%M:%S}t\",\"time_elapsed\":\"%{time.elapsed.usec}V\",\"is_tls\":\"%{if(req.is_ssl, \\\"true\\\", \\\"false\\\")}V\",\"client_ip\":\"%{req.http.Fastly-Client-IP}V\",\"geo_city\":\"%{client.geo.city}V\",\"geo_country_code\":\"%{client.geo.country_code}V\",\"request\":\"%{req.request}V\",\"host\":\"%{req.http.Fastly-Orig-Host}V\",\"url\":\"%{json.escape(req.url)}V\",\"request_referer\":\"%{json.escape(req.http.Referer)}V\",\"request_user_agent\":\"%{json.escape(req.http.User-Agent)}V\",\"request_accept_language\":\"%{json.escape(req.http.Accept-Language)}V\",\"request_accept_charset\":\"%{json.escape(req.http.Accept-Charset)}V\",\"cache_status\":\"%{regsub(fastly_info.state, \\\"^(HIT-(SYNTH)|(HITPASS|HIT|MISS|PASS|ERROR|PIPE)).*\\\", \\\"\\\\2\\\\3\\\") }V\"}'; // string | A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). Must produce valid JSON that New Relic Logs can ingest. +$options['format_version'] = self::FORMAT_VERSION_v2; // int | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. $options['token'] = 'token_example'; // string | The Insert API key from the Account page of your New Relic account. Required. $options['region'] = 'US'; // string | The region to which to stream logs. @@ -58,9 +58,9 @@ Name | Type | Description | Notes **version_id** | **int** | Integer identifying a service version. | **name** | **string** | The name for the real-time logging configuration. | [optional] **placement** | **string** | Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. | [optional] [one of: 'none', 'waf_debug', 'null'] -**format_version** | **int** | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. | [optional] [one of: 1, 2] **response_condition** | **string** | The name of an existing condition in the configured endpoint, or leave blank to always execute. | [optional] **format** | **string** | A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). Must produce valid JSON that New Relic Logs can ingest. | [optional] [defaults to '{"timestamp":"%{begin:%Y-%m-%dT%H:%M:%S}t","time_elapsed":"%{time.elapsed.usec}V","is_tls":"%{if(req.is_ssl, \"true\", \"false\")}V","client_ip":"%{req.http.Fastly-Client-IP}V","geo_city":"%{client.geo.city}V","geo_country_code":"%{client.geo.country_code}V","request":"%{req.request}V","host":"%{req.http.Fastly-Orig-Host}V","url":"%{json.escape(req.url)}V","request_referer":"%{json.escape(req.http.Referer)}V","request_user_agent":"%{json.escape(req.http.User-Agent)}V","request_accept_language":"%{json.escape(req.http.Accept-Language)}V","request_accept_charset":"%{json.escape(req.http.Accept-Charset)}V","cache_status":"%{regsub(fastly_info.state, \"^(HIT-(SYNTH)|(HITPASS|HIT|MISS|PASS|ERROR|PIPE)).*\", \"\\2\\3\") }V"}'] +**format_version** | **int** | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. | [optional] [one of: 1, 2] **token** | **string** | The Insert API key from the Account page of your New Relic account. Required. | [optional] **region** | **string** | The region to which to stream logs. | [optional] [one of: 'US', 'EU'] [defaults to 'US'] @@ -198,9 +198,9 @@ $options['version_id'] = 56; // int | Integer identifying a service version. $options['logging_newrelic_name'] = 'logging_newrelic_name_example'; // string | The name for the real-time logging configuration. $options['name'] = 'name_example'; // string | The name for the real-time logging configuration. $options['placement'] = 'placement_example'; // string | Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. -$options['format_version'] = self::FORMAT_VERSION_v2; // int | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. $options['response_condition'] = 'response_condition_example'; // string | The name of an existing condition in the configured endpoint, or leave blank to always execute. $options['format'] = '{\"timestamp\":\"%{begin:%Y-%m-%dT%H:%M:%S}t\",\"time_elapsed\":\"%{time.elapsed.usec}V\",\"is_tls\":\"%{if(req.is_ssl, \\\"true\\\", \\\"false\\\")}V\",\"client_ip\":\"%{req.http.Fastly-Client-IP}V\",\"geo_city\":\"%{client.geo.city}V\",\"geo_country_code\":\"%{client.geo.country_code}V\",\"request\":\"%{req.request}V\",\"host\":\"%{req.http.Fastly-Orig-Host}V\",\"url\":\"%{json.escape(req.url)}V\",\"request_referer\":\"%{json.escape(req.http.Referer)}V\",\"request_user_agent\":\"%{json.escape(req.http.User-Agent)}V\",\"request_accept_language\":\"%{json.escape(req.http.Accept-Language)}V\",\"request_accept_charset\":\"%{json.escape(req.http.Accept-Charset)}V\",\"cache_status\":\"%{regsub(fastly_info.state, \\\"^(HIT-(SYNTH)|(HITPASS|HIT|MISS|PASS|ERROR|PIPE)).*\\\", \\\"\\\\2\\\\3\\\") }V\"}'; // string | A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). Must produce valid JSON that New Relic Logs can ingest. +$options['format_version'] = self::FORMAT_VERSION_v2; // int | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. $options['token'] = 'token_example'; // string | The Insert API key from the Account page of your New Relic account. Required. $options['region'] = 'US'; // string | The region to which to stream logs. @@ -222,9 +222,9 @@ Name | Type | Description | Notes **logging_newrelic_name** | **string** | The name for the real-time logging configuration. | **name** | **string** | The name for the real-time logging configuration. | [optional] **placement** | **string** | Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. | [optional] [one of: 'none', 'waf_debug', 'null'] -**format_version** | **int** | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. | [optional] [one of: 1, 2] **response_condition** | **string** | The name of an existing condition in the configured endpoint, or leave blank to always execute. | [optional] **format** | **string** | A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). Must produce valid JSON that New Relic Logs can ingest. | [optional] [defaults to '{"timestamp":"%{begin:%Y-%m-%dT%H:%M:%S}t","time_elapsed":"%{time.elapsed.usec}V","is_tls":"%{if(req.is_ssl, \"true\", \"false\")}V","client_ip":"%{req.http.Fastly-Client-IP}V","geo_city":"%{client.geo.city}V","geo_country_code":"%{client.geo.country_code}V","request":"%{req.request}V","host":"%{req.http.Fastly-Orig-Host}V","url":"%{json.escape(req.url)}V","request_referer":"%{json.escape(req.http.Referer)}V","request_user_agent":"%{json.escape(req.http.User-Agent)}V","request_accept_language":"%{json.escape(req.http.Accept-Language)}V","request_accept_charset":"%{json.escape(req.http.Accept-Charset)}V","cache_status":"%{regsub(fastly_info.state, \"^(HIT-(SYNTH)|(HITPASS|HIT|MISS|PASS|ERROR|PIPE)).*\", \"\\2\\3\") }V"}'] +**format_version** | **int** | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. | [optional] [one of: 1, 2] **token** | **string** | The Insert API key from the Account page of your New Relic account. Required. | [optional] **region** | **string** | The region to which to stream logs. | [optional] [one of: 'US', 'EU'] [defaults to 'US'] diff --git a/docs/Api/LoggingOpenstackApi.md b/docs/Api/LoggingOpenstackApi.md index c59f4b9e..fc79076d 100644 --- a/docs/Api/LoggingOpenstackApi.md +++ b/docs/Api/LoggingOpenstackApi.md @@ -35,14 +35,14 @@ Create a openstack for a particular service and version. $options['version_id'] = 56; // int | Integer identifying a service version. $options['name'] = 'name_example'; // string | The name for the real-time logging configuration. $options['placement'] = 'placement_example'; // string | Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. -$options['format_version'] = self::FORMAT_VERSION_v2; // int | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. $options['response_condition'] = 'response_condition_example'; // string | The name of an existing condition in the configured endpoint, or leave blank to always execute. $options['format'] = '%h %l %u %t \"%r\" %>s %b'; // string | A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). +$options['format_version'] = self::FORMAT_VERSION_v2; // int | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. $options['message_type'] = 'classic'; // string | How the message should be formatted. $options['timestamp_format'] = 'timestamp_format_example'; // string | A timestamp format +$options['compression_codec'] = 'compression_codec_example'; // string | The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. $options['period'] = 3600; // int | How frequently log files are finalized so they can be available for reading (in seconds). $options['gzip_level'] = 0; // int | The level of gzip encoding when sending logs (default `0`, no compression). Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. -$options['compression_codec'] = 'compression_codec_example'; // string | The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. $options['access_key'] = 'access_key_example'; // string | Your OpenStack account access key. $options['bucket_name'] = 'bucket_name_example'; // string | The name of your OpenStack container. $options['path'] = 'null'; // string | The path to upload logs to. @@ -67,14 +67,14 @@ Name | Type | Description | Notes **version_id** | **int** | Integer identifying a service version. | **name** | **string** | The name for the real-time logging configuration. | [optional] **placement** | **string** | Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. | [optional] [one of: 'none', 'waf_debug', 'null'] -**format_version** | **int** | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. | [optional] [one of: 1, 2] **response_condition** | **string** | The name of an existing condition in the configured endpoint, or leave blank to always execute. | [optional] **format** | **string** | A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). | [optional] [defaults to '%h %l %u %t "%r" %>s %b'] +**format_version** | **int** | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. | [optional] [one of: 1, 2] **message_type** | **string** | How the message should be formatted. | [optional] [one of: 'classic', 'loggly', 'logplex', 'blank'] [defaults to 'classic'] **timestamp_format** | **string** | A timestamp format | [optional] +**compression_codec** | **string** | The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. | [optional] [one of: 'zstd', 'snappy', 'gzip'] **period** | **int** | How frequently log files are finalized so they can be available for reading (in seconds). | [optional] [defaults to 3600] **gzip_level** | **int** | The level of gzip encoding when sending logs (default `0`, no compression). Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. | [optional] [defaults to 0] -**compression_codec** | **string** | The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. | [optional] [one of: 'zstd', 'snappy', 'gzip'] **access_key** | **string** | Your OpenStack account access key. | [optional] **bucket_name** | **string** | The name of your OpenStack container. | [optional] **path** | **string** | The path to upload logs to. | [optional] [defaults to 'null'] @@ -216,14 +216,14 @@ $options['version_id'] = 56; // int | Integer identifying a service version. $options['logging_openstack_name'] = 'logging_openstack_name_example'; // string | The name for the real-time logging configuration. $options['name'] = 'name_example'; // string | The name for the real-time logging configuration. $options['placement'] = 'placement_example'; // string | Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. -$options['format_version'] = self::FORMAT_VERSION_v2; // int | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. $options['response_condition'] = 'response_condition_example'; // string | The name of an existing condition in the configured endpoint, or leave blank to always execute. $options['format'] = '%h %l %u %t \"%r\" %>s %b'; // string | A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). +$options['format_version'] = self::FORMAT_VERSION_v2; // int | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. $options['message_type'] = 'classic'; // string | How the message should be formatted. $options['timestamp_format'] = 'timestamp_format_example'; // string | A timestamp format +$options['compression_codec'] = 'compression_codec_example'; // string | The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. $options['period'] = 3600; // int | How frequently log files are finalized so they can be available for reading (in seconds). $options['gzip_level'] = 0; // int | The level of gzip encoding when sending logs (default `0`, no compression). Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. -$options['compression_codec'] = 'compression_codec_example'; // string | The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. $options['access_key'] = 'access_key_example'; // string | Your OpenStack account access key. $options['bucket_name'] = 'bucket_name_example'; // string | The name of your OpenStack container. $options['path'] = 'null'; // string | The path to upload logs to. @@ -249,14 +249,14 @@ Name | Type | Description | Notes **logging_openstack_name** | **string** | The name for the real-time logging configuration. | **name** | **string** | The name for the real-time logging configuration. | [optional] **placement** | **string** | Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. | [optional] [one of: 'none', 'waf_debug', 'null'] -**format_version** | **int** | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. | [optional] [one of: 1, 2] **response_condition** | **string** | The name of an existing condition in the configured endpoint, or leave blank to always execute. | [optional] **format** | **string** | A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). | [optional] [defaults to '%h %l %u %t "%r" %>s %b'] +**format_version** | **int** | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. | [optional] [one of: 1, 2] **message_type** | **string** | How the message should be formatted. | [optional] [one of: 'classic', 'loggly', 'logplex', 'blank'] [defaults to 'classic'] **timestamp_format** | **string** | A timestamp format | [optional] +**compression_codec** | **string** | The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. | [optional] [one of: 'zstd', 'snappy', 'gzip'] **period** | **int** | How frequently log files are finalized so they can be available for reading (in seconds). | [optional] [defaults to 3600] **gzip_level** | **int** | The level of gzip encoding when sending logs (default `0`, no compression). Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. | [optional] [defaults to 0] -**compression_codec** | **string** | The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. | [optional] [one of: 'zstd', 'snappy', 'gzip'] **access_key** | **string** | Your OpenStack account access key. | [optional] **bucket_name** | **string** | The name of your OpenStack container. | [optional] **path** | **string** | The path to upload logs to. | [optional] [defaults to 'null'] diff --git a/docs/Api/LoggingPapertrailApi.md b/docs/Api/LoggingPapertrailApi.md index 6ccd5bbb..3f6faa86 100644 --- a/docs/Api/LoggingPapertrailApi.md +++ b/docs/Api/LoggingPapertrailApi.md @@ -35,9 +35,9 @@ Create a Papertrail for a particular service and version. $options['version_id'] = 56; // int | Integer identifying a service version. $options['name'] = 'name_example'; // string | The name for the real-time logging configuration. $options['placement'] = 'placement_example'; // string | Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. -$options['format_version'] = self::FORMAT_VERSION_v2; // int | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. $options['response_condition'] = 'response_condition_example'; // string | The name of an existing condition in the configured endpoint, or leave blank to always execute. $options['format'] = '%h %l %u %t \"%r\" %>s %b'; // string | A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). +$options['format_version'] = self::FORMAT_VERSION_v2; // int | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. $options['address'] = 'address_example'; // string | A hostname or IPv4 address. $options['port'] = 514; // int | The port number. @@ -58,9 +58,9 @@ Name | Type | Description | Notes **version_id** | **int** | Integer identifying a service version. | **name** | **string** | The name for the real-time logging configuration. | [optional] **placement** | **string** | Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. | [optional] [one of: 'none', 'waf_debug', 'null'] -**format_version** | **int** | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. | [optional] [one of: 1, 2] **response_condition** | **string** | The name of an existing condition in the configured endpoint, or leave blank to always execute. | [optional] **format** | **string** | A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). | [optional] [defaults to '%h %l %u %t "%r" %>s %b'] +**format_version** | **int** | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. | [optional] [one of: 1, 2] **address** | **string** | A hostname or IPv4 address. | [optional] **port** | **int** | The port number. | [optional] [defaults to 514] @@ -198,9 +198,9 @@ $options['version_id'] = 56; // int | Integer identifying a service version. $options['logging_papertrail_name'] = 'logging_papertrail_name_example'; // string | The name for the real-time logging configuration. $options['name'] = 'name_example'; // string | The name for the real-time logging configuration. $options['placement'] = 'placement_example'; // string | Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. -$options['format_version'] = self::FORMAT_VERSION_v2; // int | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. $options['response_condition'] = 'response_condition_example'; // string | The name of an existing condition in the configured endpoint, or leave blank to always execute. $options['format'] = '%h %l %u %t \"%r\" %>s %b'; // string | A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). +$options['format_version'] = self::FORMAT_VERSION_v2; // int | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. $options['address'] = 'address_example'; // string | A hostname or IPv4 address. $options['port'] = 514; // int | The port number. @@ -222,9 +222,9 @@ Name | Type | Description | Notes **logging_papertrail_name** | **string** | The name for the real-time logging configuration. | **name** | **string** | The name for the real-time logging configuration. | [optional] **placement** | **string** | Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. | [optional] [one of: 'none', 'waf_debug', 'null'] -**format_version** | **int** | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. | [optional] [one of: 1, 2] **response_condition** | **string** | The name of an existing condition in the configured endpoint, or leave blank to always execute. | [optional] **format** | **string** | A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). | [optional] [defaults to '%h %l %u %t "%r" %>s %b'] +**format_version** | **int** | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. | [optional] [one of: 1, 2] **address** | **string** | A hostname or IPv4 address. | [optional] **port** | **int** | The port number. | [optional] [defaults to 514] diff --git a/docs/Api/LoggingPubsubApi.md b/docs/Api/LoggingPubsubApi.md index e9b08fb6..3f7297b4 100644 --- a/docs/Api/LoggingPubsubApi.md +++ b/docs/Api/LoggingPubsubApi.md @@ -35,9 +35,9 @@ Create a Pub/Sub logging object for a particular service and version. $options['version_id'] = 56; // int | Integer identifying a service version. $options['name'] = 'name_example'; // string | The name for the real-time logging configuration. $options['placement'] = 'placement_example'; // string | Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. -$options['format_version'] = self::FORMAT_VERSION_v2; // int | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. $options['response_condition'] = 'response_condition_example'; // string | The name of an existing condition in the configured endpoint, or leave blank to always execute. $options['format'] = '%h %l %u %t \"%r\" %>s %b'; // string | A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). +$options['format_version'] = self::FORMAT_VERSION_v2; // int | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. $options['user'] = 'user_example'; // string | Your Google Cloud Platform service account email address. The `client_email` field in your service account authentication JSON. Not required if `account_name` is specified. $options['secret_key'] = 'secret_key_example'; // string | Your Google Cloud Platform account secret key. The `private_key` field in your service account authentication JSON. Not required if `account_name` is specified. $options['account_name'] = 'account_name_example'; // string | The name of the Google Cloud Platform service account associated with the target log collection service. Not required if `user` and `secret_key` are provided. @@ -61,9 +61,9 @@ Name | Type | Description | Notes **version_id** | **int** | Integer identifying a service version. | **name** | **string** | The name for the real-time logging configuration. | [optional] **placement** | **string** | Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. | [optional] [one of: 'none', 'waf_debug', 'null'] -**format_version** | **int** | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. | [optional] [one of: 1, 2] **response_condition** | **string** | The name of an existing condition in the configured endpoint, or leave blank to always execute. | [optional] **format** | **string** | A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). | [optional] [defaults to '%h %l %u %t "%r" %>s %b'] +**format_version** | **int** | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. | [optional] [one of: 1, 2] **user** | **string** | Your Google Cloud Platform service account email address. The `client_email` field in your service account authentication JSON. Not required if `account_name` is specified. | [optional] **secret_key** | **string** | Your Google Cloud Platform account secret key. The `private_key` field in your service account authentication JSON. Not required if `account_name` is specified. | [optional] **account_name** | **string** | The name of the Google Cloud Platform service account associated with the target log collection service. Not required if `user` and `secret_key` are provided. | [optional] @@ -204,9 +204,9 @@ $options['version_id'] = 56; // int | Integer identifying a service version. $options['logging_google_pubsub_name'] = 'logging_google_pubsub_name_example'; // string | The name for the real-time logging configuration. $options['name'] = 'name_example'; // string | The name for the real-time logging configuration. $options['placement'] = 'placement_example'; // string | Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. -$options['format_version'] = self::FORMAT_VERSION_v2; // int | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. $options['response_condition'] = 'response_condition_example'; // string | The name of an existing condition in the configured endpoint, or leave blank to always execute. $options['format'] = '%h %l %u %t \"%r\" %>s %b'; // string | A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). +$options['format_version'] = self::FORMAT_VERSION_v2; // int | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. $options['user'] = 'user_example'; // string | Your Google Cloud Platform service account email address. The `client_email` field in your service account authentication JSON. Not required if `account_name` is specified. $options['secret_key'] = 'secret_key_example'; // string | Your Google Cloud Platform account secret key. The `private_key` field in your service account authentication JSON. Not required if `account_name` is specified. $options['account_name'] = 'account_name_example'; // string | The name of the Google Cloud Platform service account associated with the target log collection service. Not required if `user` and `secret_key` are provided. @@ -231,9 +231,9 @@ Name | Type | Description | Notes **logging_google_pubsub_name** | **string** | The name for the real-time logging configuration. | **name** | **string** | The name for the real-time logging configuration. | [optional] **placement** | **string** | Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. | [optional] [one of: 'none', 'waf_debug', 'null'] -**format_version** | **int** | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. | [optional] [one of: 1, 2] **response_condition** | **string** | The name of an existing condition in the configured endpoint, or leave blank to always execute. | [optional] **format** | **string** | A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). | [optional] [defaults to '%h %l %u %t "%r" %>s %b'] +**format_version** | **int** | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. | [optional] [one of: 1, 2] **user** | **string** | Your Google Cloud Platform service account email address. The `client_email` field in your service account authentication JSON. Not required if `account_name` is specified. | [optional] **secret_key** | **string** | Your Google Cloud Platform account secret key. The `private_key` field in your service account authentication JSON. Not required if `account_name` is specified. | [optional] **account_name** | **string** | The name of the Google Cloud Platform service account associated with the target log collection service. Not required if `user` and `secret_key` are provided. | [optional] diff --git a/docs/Api/LoggingS3Api.md b/docs/Api/LoggingS3Api.md index bc69cb48..f8d389a8 100644 --- a/docs/Api/LoggingS3Api.md +++ b/docs/Api/LoggingS3Api.md @@ -35,14 +35,14 @@ Create a S3 for a particular service and version. $options['version_id'] = 56; // int | Integer identifying a service version. $options['name'] = 'name_example'; // string | The name for the real-time logging configuration. $options['placement'] = 'placement_example'; // string | Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. -$options['format_version'] = self::FORMAT_VERSION_v2; // int | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. $options['response_condition'] = 'response_condition_example'; // string | The name of an existing condition in the configured endpoint, or leave blank to always execute. $options['format'] = '%h %l %u %t \"%r\" %>s %b'; // string | A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). +$options['format_version'] = self::FORMAT_VERSION_v2; // int | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. $options['message_type'] = 'classic'; // string | How the message should be formatted. $options['timestamp_format'] = 'timestamp_format_example'; // string | A timestamp format +$options['compression_codec'] = 'compression_codec_example'; // string | The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. $options['period'] = 3600; // int | How frequently log files are finalized so they can be available for reading (in seconds). $options['gzip_level'] = 0; // int | The level of gzip encoding when sending logs (default `0`, no compression). Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. -$options['compression_codec'] = 'compression_codec_example'; // string | The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. $options['access_key'] = 'access_key_example'; // string | The access key for your S3 account. Not required if `iam_role` is provided. $options['acl'] = 'acl_example'; // string | The access control list (ACL) specific request header. See the AWS documentation for [Access Control List (ACL) Specific Request Headers](https://docs.aws.amazon.com/AmazonS3/latest/API/mpUploadInitiate.html#initiate-mpu-acl-specific-request-headers) for more information. $options['bucket_name'] = 'bucket_name_example'; // string | The bucket name for S3 account. @@ -72,14 +72,14 @@ Name | Type | Description | Notes **version_id** | **int** | Integer identifying a service version. | **name** | **string** | The name for the real-time logging configuration. | [optional] **placement** | **string** | Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. | [optional] [one of: 'none', 'waf_debug', 'null'] -**format_version** | **int** | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. | [optional] [one of: 1, 2] **response_condition** | **string** | The name of an existing condition in the configured endpoint, or leave blank to always execute. | [optional] **format** | **string** | A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). | [optional] [defaults to '%h %l %u %t "%r" %>s %b'] +**format_version** | **int** | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. | [optional] [one of: 1, 2] **message_type** | **string** | How the message should be formatted. | [optional] [one of: 'classic', 'loggly', 'logplex', 'blank'] [defaults to 'classic'] **timestamp_format** | **string** | A timestamp format | [optional] +**compression_codec** | **string** | The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. | [optional] [one of: 'zstd', 'snappy', 'gzip'] **period** | **int** | How frequently log files are finalized so they can be available for reading (in seconds). | [optional] [defaults to 3600] **gzip_level** | **int** | The level of gzip encoding when sending logs (default `0`, no compression). Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. | [optional] [defaults to 0] -**compression_codec** | **string** | The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. | [optional] [one of: 'zstd', 'snappy', 'gzip'] **access_key** | **string** | The access key for your S3 account. Not required if `iam_role` is provided. | [optional] **acl** | **string** | The access control list (ACL) specific request header. See the AWS documentation for [Access Control List (ACL) Specific Request Headers](https://docs.aws.amazon.com/AmazonS3/latest/API/mpUploadInitiate.html#initiate-mpu-acl-specific-request-headers) for more information. | [optional] **bucket_name** | **string** | The bucket name for S3 account. | [optional] @@ -226,14 +226,14 @@ $options['version_id'] = 56; // int | Integer identifying a service version. $options['logging_s3_name'] = 'logging_s3_name_example'; // string | The name for the real-time logging configuration. $options['name'] = 'name_example'; // string | The name for the real-time logging configuration. $options['placement'] = 'placement_example'; // string | Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. -$options['format_version'] = self::FORMAT_VERSION_v2; // int | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. $options['response_condition'] = 'response_condition_example'; // string | The name of an existing condition in the configured endpoint, or leave blank to always execute. $options['format'] = '%h %l %u %t \"%r\" %>s %b'; // string | A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). +$options['format_version'] = self::FORMAT_VERSION_v2; // int | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. $options['message_type'] = 'classic'; // string | How the message should be formatted. $options['timestamp_format'] = 'timestamp_format_example'; // string | A timestamp format +$options['compression_codec'] = 'compression_codec_example'; // string | The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. $options['period'] = 3600; // int | How frequently log files are finalized so they can be available for reading (in seconds). $options['gzip_level'] = 0; // int | The level of gzip encoding when sending logs (default `0`, no compression). Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. -$options['compression_codec'] = 'compression_codec_example'; // string | The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. $options['access_key'] = 'access_key_example'; // string | The access key for your S3 account. Not required if `iam_role` is provided. $options['acl'] = 'acl_example'; // string | The access control list (ACL) specific request header. See the AWS documentation for [Access Control List (ACL) Specific Request Headers](https://docs.aws.amazon.com/AmazonS3/latest/API/mpUploadInitiate.html#initiate-mpu-acl-specific-request-headers) for more information. $options['bucket_name'] = 'bucket_name_example'; // string | The bucket name for S3 account. @@ -264,14 +264,14 @@ Name | Type | Description | Notes **logging_s3_name** | **string** | The name for the real-time logging configuration. | **name** | **string** | The name for the real-time logging configuration. | [optional] **placement** | **string** | Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. | [optional] [one of: 'none', 'waf_debug', 'null'] -**format_version** | **int** | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. | [optional] [one of: 1, 2] **response_condition** | **string** | The name of an existing condition in the configured endpoint, or leave blank to always execute. | [optional] **format** | **string** | A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). | [optional] [defaults to '%h %l %u %t "%r" %>s %b'] +**format_version** | **int** | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. | [optional] [one of: 1, 2] **message_type** | **string** | How the message should be formatted. | [optional] [one of: 'classic', 'loggly', 'logplex', 'blank'] [defaults to 'classic'] **timestamp_format** | **string** | A timestamp format | [optional] +**compression_codec** | **string** | The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. | [optional] [one of: 'zstd', 'snappy', 'gzip'] **period** | **int** | How frequently log files are finalized so they can be available for reading (in seconds). | [optional] [defaults to 3600] **gzip_level** | **int** | The level of gzip encoding when sending logs (default `0`, no compression). Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. | [optional] [defaults to 0] -**compression_codec** | **string** | The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. | [optional] [one of: 'zstd', 'snappy', 'gzip'] **access_key** | **string** | The access key for your S3 account. Not required if `iam_role` is provided. | [optional] **acl** | **string** | The access control list (ACL) specific request header. See the AWS documentation for [Access Control List (ACL) Specific Request Headers](https://docs.aws.amazon.com/AmazonS3/latest/API/mpUploadInitiate.html#initiate-mpu-acl-specific-request-headers) for more information. | [optional] **bucket_name** | **string** | The bucket name for S3 account. | [optional] diff --git a/docs/Api/LoggingScalyrApi.md b/docs/Api/LoggingScalyrApi.md index 42e8434d..2eced5c0 100644 --- a/docs/Api/LoggingScalyrApi.md +++ b/docs/Api/LoggingScalyrApi.md @@ -35,9 +35,9 @@ Create a Scalyr for a particular service and version. $options['version_id'] = 56; // int | Integer identifying a service version. $options['name'] = 'name_example'; // string | The name for the real-time logging configuration. $options['placement'] = 'placement_example'; // string | Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. -$options['format_version'] = self::FORMAT_VERSION_v2; // int | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. $options['response_condition'] = 'response_condition_example'; // string | The name of an existing condition in the configured endpoint, or leave blank to always execute. $options['format'] = '%h %l %u %t \"%r\" %>s %b'; // string | A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). +$options['format_version'] = self::FORMAT_VERSION_v2; // int | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. $options['region'] = 'US'; // string | The region that log data will be sent to. $options['token'] = 'token_example'; // string | The token to use for authentication ([https://www.scalyr.com/keys](https://www.scalyr.com/keys)). $options['project_id'] = 'logplex'; // string | The name of the logfile within Scalyr. @@ -59,9 +59,9 @@ Name | Type | Description | Notes **version_id** | **int** | Integer identifying a service version. | **name** | **string** | The name for the real-time logging configuration. | [optional] **placement** | **string** | Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. | [optional] [one of: 'none', 'waf_debug', 'null'] -**format_version** | **int** | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. | [optional] [one of: 1, 2] **response_condition** | **string** | The name of an existing condition in the configured endpoint, or leave blank to always execute. | [optional] **format** | **string** | A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). | [optional] [defaults to '%h %l %u %t "%r" %>s %b'] +**format_version** | **int** | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. | [optional] [one of: 1, 2] **region** | **string** | The region that log data will be sent to. | [optional] [one of: 'US', 'EU'] [defaults to 'US'] **token** | **string** | The token to use for authentication ([https://www.scalyr.com/keys](https://www.scalyr.com/keys)). | [optional] **project_id** | **string** | The name of the logfile within Scalyr. | [optional] [defaults to 'logplex'] @@ -200,9 +200,9 @@ $options['version_id'] = 56; // int | Integer identifying a service version. $options['logging_scalyr_name'] = 'logging_scalyr_name_example'; // string | The name for the real-time logging configuration. $options['name'] = 'name_example'; // string | The name for the real-time logging configuration. $options['placement'] = 'placement_example'; // string | Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. -$options['format_version'] = self::FORMAT_VERSION_v2; // int | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. $options['response_condition'] = 'response_condition_example'; // string | The name of an existing condition in the configured endpoint, or leave blank to always execute. $options['format'] = '%h %l %u %t \"%r\" %>s %b'; // string | A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). +$options['format_version'] = self::FORMAT_VERSION_v2; // int | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. $options['region'] = 'US'; // string | The region that log data will be sent to. $options['token'] = 'token_example'; // string | The token to use for authentication ([https://www.scalyr.com/keys](https://www.scalyr.com/keys)). $options['project_id'] = 'logplex'; // string | The name of the logfile within Scalyr. @@ -225,9 +225,9 @@ Name | Type | Description | Notes **logging_scalyr_name** | **string** | The name for the real-time logging configuration. | **name** | **string** | The name for the real-time logging configuration. | [optional] **placement** | **string** | Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. | [optional] [one of: 'none', 'waf_debug', 'null'] -**format_version** | **int** | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. | [optional] [one of: 1, 2] **response_condition** | **string** | The name of an existing condition in the configured endpoint, or leave blank to always execute. | [optional] **format** | **string** | A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). | [optional] [defaults to '%h %l %u %t "%r" %>s %b'] +**format_version** | **int** | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. | [optional] [one of: 1, 2] **region** | **string** | The region that log data will be sent to. | [optional] [one of: 'US', 'EU'] [defaults to 'US'] **token** | **string** | The token to use for authentication ([https://www.scalyr.com/keys](https://www.scalyr.com/keys)). | [optional] **project_id** | **string** | The name of the logfile within Scalyr. | [optional] [defaults to 'logplex'] diff --git a/docs/Api/LoggingSftpApi.md b/docs/Api/LoggingSftpApi.md index e951cccb..6c562954 100644 --- a/docs/Api/LoggingSftpApi.md +++ b/docs/Api/LoggingSftpApi.md @@ -35,14 +35,14 @@ Create a SFTP for a particular service and version. $options['version_id'] = 56; // int | Integer identifying a service version. $options['name'] = 'name_example'; // string | The name for the real-time logging configuration. $options['placement'] = 'placement_example'; // string | Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. -$options['format_version'] = self::FORMAT_VERSION_v2; // int | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. $options['response_condition'] = 'response_condition_example'; // string | The name of an existing condition in the configured endpoint, or leave blank to always execute. $options['format'] = '%h %l %u %t \"%r\" %>s %b'; // string | A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). +$options['format_version'] = self::FORMAT_VERSION_v2; // int | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. $options['message_type'] = 'classic'; // string | How the message should be formatted. $options['timestamp_format'] = 'timestamp_format_example'; // string | A timestamp format +$options['compression_codec'] = 'compression_codec_example'; // string | The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. $options['period'] = 3600; // int | How frequently log files are finalized so they can be available for reading (in seconds). $options['gzip_level'] = 0; // int | The level of gzip encoding when sending logs (default `0`, no compression). Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. -$options['compression_codec'] = 'compression_codec_example'; // string | The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. $options['address'] = 'address_example'; // string | A hostname or IPv4 address. $options['port'] = 22; // int | The port number. $options['password'] = 'password_example'; // string | The password for the server. If both `password` and `secret_key` are passed, `secret_key` will be used in preference. @@ -69,14 +69,14 @@ Name | Type | Description | Notes **version_id** | **int** | Integer identifying a service version. | **name** | **string** | The name for the real-time logging configuration. | [optional] **placement** | **string** | Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. | [optional] [one of: 'none', 'waf_debug', 'null'] -**format_version** | **int** | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. | [optional] [one of: 1, 2] **response_condition** | **string** | The name of an existing condition in the configured endpoint, or leave blank to always execute. | [optional] **format** | **string** | A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). | [optional] [defaults to '%h %l %u %t "%r" %>s %b'] +**format_version** | **int** | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. | [optional] [one of: 1, 2] **message_type** | **string** | How the message should be formatted. | [optional] [one of: 'classic', 'loggly', 'logplex', 'blank'] [defaults to 'classic'] **timestamp_format** | **string** | A timestamp format | [optional] +**compression_codec** | **string** | The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. | [optional] [one of: 'zstd', 'snappy', 'gzip'] **period** | **int** | How frequently log files are finalized so they can be available for reading (in seconds). | [optional] [defaults to 3600] **gzip_level** | **int** | The level of gzip encoding when sending logs (default `0`, no compression). Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. | [optional] [defaults to 0] -**compression_codec** | **string** | The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. | [optional] [one of: 'zstd', 'snappy', 'gzip'] **address** | **string** | A hostname or IPv4 address. | [optional] **port** | **int** | The port number. | [optional] [defaults to 22] **password** | **string** | The password for the server. If both `password` and `secret_key` are passed, `secret_key` will be used in preference. | [optional] @@ -220,14 +220,14 @@ $options['version_id'] = 56; // int | Integer identifying a service version. $options['logging_sftp_name'] = 'logging_sftp_name_example'; // string | The name for the real-time logging configuration. $options['name'] = 'name_example'; // string | The name for the real-time logging configuration. $options['placement'] = 'placement_example'; // string | Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. -$options['format_version'] = self::FORMAT_VERSION_v2; // int | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. $options['response_condition'] = 'response_condition_example'; // string | The name of an existing condition in the configured endpoint, or leave blank to always execute. $options['format'] = '%h %l %u %t \"%r\" %>s %b'; // string | A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). +$options['format_version'] = self::FORMAT_VERSION_v2; // int | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. $options['message_type'] = 'classic'; // string | How the message should be formatted. $options['timestamp_format'] = 'timestamp_format_example'; // string | A timestamp format +$options['compression_codec'] = 'compression_codec_example'; // string | The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. $options['period'] = 3600; // int | How frequently log files are finalized so they can be available for reading (in seconds). $options['gzip_level'] = 0; // int | The level of gzip encoding when sending logs (default `0`, no compression). Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. -$options['compression_codec'] = 'compression_codec_example'; // string | The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. $options['address'] = 'address_example'; // string | A hostname or IPv4 address. $options['port'] = 22; // int | The port number. $options['password'] = 'password_example'; // string | The password for the server. If both `password` and `secret_key` are passed, `secret_key` will be used in preference. @@ -255,14 +255,14 @@ Name | Type | Description | Notes **logging_sftp_name** | **string** | The name for the real-time logging configuration. | **name** | **string** | The name for the real-time logging configuration. | [optional] **placement** | **string** | Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. | [optional] [one of: 'none', 'waf_debug', 'null'] -**format_version** | **int** | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. | [optional] [one of: 1, 2] **response_condition** | **string** | The name of an existing condition in the configured endpoint, or leave blank to always execute. | [optional] **format** | **string** | A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). | [optional] [defaults to '%h %l %u %t "%r" %>s %b'] +**format_version** | **int** | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. | [optional] [one of: 1, 2] **message_type** | **string** | How the message should be formatted. | [optional] [one of: 'classic', 'loggly', 'logplex', 'blank'] [defaults to 'classic'] **timestamp_format** | **string** | A timestamp format | [optional] +**compression_codec** | **string** | The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. | [optional] [one of: 'zstd', 'snappy', 'gzip'] **period** | **int** | How frequently log files are finalized so they can be available for reading (in seconds). | [optional] [defaults to 3600] **gzip_level** | **int** | The level of gzip encoding when sending logs (default `0`, no compression). Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. | [optional] [defaults to 0] -**compression_codec** | **string** | The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. | [optional] [one of: 'zstd', 'snappy', 'gzip'] **address** | **string** | A hostname or IPv4 address. | [optional] **port** | **int** | The port number. | [optional] [defaults to 22] **password** | **string** | The password for the server. If both `password` and `secret_key` are passed, `secret_key` will be used in preference. | [optional] diff --git a/docs/Api/LoggingSplunkApi.md b/docs/Api/LoggingSplunkApi.md index 073dd1e4..074ce30d 100644 --- a/docs/Api/LoggingSplunkApi.md +++ b/docs/Api/LoggingSplunkApi.md @@ -35,9 +35,9 @@ Create a Splunk logging object for a particular service and version. $options['version_id'] = 56; // int | Integer identifying a service version. $options['name'] = 'name_example'; // string | The name for the real-time logging configuration. $options['placement'] = 'placement_example'; // string | Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. -$options['format_version'] = self::FORMAT_VERSION_v2; // int | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. $options['response_condition'] = 'response_condition_example'; // string | The name of an existing condition in the configured endpoint, or leave blank to always execute. $options['format'] = '%h %l %u %t \"%r\" %>s %b'; // string | A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). +$options['format_version'] = self::FORMAT_VERSION_v2; // int | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. $options['tls_ca_cert'] = 'null'; // string | A secure certificate to authenticate a server with. Must be in PEM format. $options['tls_client_cert'] = 'null'; // string | The client certificate used to make authenticated requests. Must be in PEM format. $options['tls_client_key'] = 'null'; // string | The client private key used to make authenticated requests. Must be in PEM format. @@ -65,9 +65,9 @@ Name | Type | Description | Notes **version_id** | **int** | Integer identifying a service version. | **name** | **string** | The name for the real-time logging configuration. | [optional] **placement** | **string** | Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. | [optional] [one of: 'none', 'waf_debug', 'null'] -**format_version** | **int** | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. | [optional] [one of: 1, 2] **response_condition** | **string** | The name of an existing condition in the configured endpoint, or leave blank to always execute. | [optional] **format** | **string** | A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). | [optional] [defaults to '%h %l %u %t "%r" %>s %b'] +**format_version** | **int** | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. | [optional] [one of: 1, 2] **tls_ca_cert** | **string** | A secure certificate to authenticate a server with. Must be in PEM format. | [optional] [defaults to 'null'] **tls_client_cert** | **string** | The client certificate used to make authenticated requests. Must be in PEM format. | [optional] [defaults to 'null'] **tls_client_key** | **string** | The client private key used to make authenticated requests. Must be in PEM format. | [optional] [defaults to 'null'] @@ -212,9 +212,9 @@ $options['version_id'] = 56; // int | Integer identifying a service version. $options['logging_splunk_name'] = 'logging_splunk_name_example'; // string | The name for the real-time logging configuration. $options['name'] = 'name_example'; // string | The name for the real-time logging configuration. $options['placement'] = 'placement_example'; // string | Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. -$options['format_version'] = self::FORMAT_VERSION_v2; // int | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. $options['response_condition'] = 'response_condition_example'; // string | The name of an existing condition in the configured endpoint, or leave blank to always execute. $options['format'] = '%h %l %u %t \"%r\" %>s %b'; // string | A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). +$options['format_version'] = self::FORMAT_VERSION_v2; // int | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. $options['tls_ca_cert'] = 'null'; // string | A secure certificate to authenticate a server with. Must be in PEM format. $options['tls_client_cert'] = 'null'; // string | The client certificate used to make authenticated requests. Must be in PEM format. $options['tls_client_key'] = 'null'; // string | The client private key used to make authenticated requests. Must be in PEM format. @@ -243,9 +243,9 @@ Name | Type | Description | Notes **logging_splunk_name** | **string** | The name for the real-time logging configuration. | **name** | **string** | The name for the real-time logging configuration. | [optional] **placement** | **string** | Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. | [optional] [one of: 'none', 'waf_debug', 'null'] -**format_version** | **int** | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. | [optional] [one of: 1, 2] **response_condition** | **string** | The name of an existing condition in the configured endpoint, or leave blank to always execute. | [optional] **format** | **string** | A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). | [optional] [defaults to '%h %l %u %t "%r" %>s %b'] +**format_version** | **int** | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. | [optional] [one of: 1, 2] **tls_ca_cert** | **string** | A secure certificate to authenticate a server with. Must be in PEM format. | [optional] [defaults to 'null'] **tls_client_cert** | **string** | The client certificate used to make authenticated requests. Must be in PEM format. | [optional] [defaults to 'null'] **tls_client_key** | **string** | The client private key used to make authenticated requests. Must be in PEM format. | [optional] [defaults to 'null'] diff --git a/docs/Api/LoggingSumologicApi.md b/docs/Api/LoggingSumologicApi.md index d43f2d22..9af82e60 100644 --- a/docs/Api/LoggingSumologicApi.md +++ b/docs/Api/LoggingSumologicApi.md @@ -35,9 +35,9 @@ Create a Sumologic for a particular service and version. $options['version_id'] = 56; // int | Integer identifying a service version. $options['name'] = 'name_example'; // string | The name for the real-time logging configuration. $options['placement'] = 'placement_example'; // string | Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. -$options['format_version'] = self::FORMAT_VERSION_v2; // int | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. $options['response_condition'] = 'response_condition_example'; // string | The name of an existing condition in the configured endpoint, or leave blank to always execute. $options['format'] = '%h %l %u %t \"%r\" %>s %b'; // string | A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). +$options['format_version'] = self::FORMAT_VERSION_v2; // int | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. $options['message_type'] = new \Fastly\Model\LoggingMessageType(); // \Fastly\Model\LoggingMessageType $options['url'] = 'url_example'; // string | The URL to post logs to. @@ -58,9 +58,9 @@ Name | Type | Description | Notes **version_id** | **int** | Integer identifying a service version. | **name** | **string** | The name for the real-time logging configuration. | [optional] **placement** | **string** | Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. | [optional] [one of: 'none', 'waf_debug', 'null'] -**format_version** | **int** | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. | [optional] [one of: 1, 2] **response_condition** | **string** | The name of an existing condition in the configured endpoint, or leave blank to always execute. | [optional] **format** | **string** | A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). | [optional] [defaults to '%h %l %u %t "%r" %>s %b'] +**format_version** | **int** | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. | [optional] [one of: 1, 2] **message_type** | [**\Fastly\Model\LoggingMessageType**](../Model/LoggingMessageType.md) | | [optional] **url** | **string** | The URL to post logs to. | [optional] @@ -198,9 +198,9 @@ $options['version_id'] = 56; // int | Integer identifying a service version. $options['logging_sumologic_name'] = 'logging_sumologic_name_example'; // string | The name for the real-time logging configuration. $options['name'] = 'name_example'; // string | The name for the real-time logging configuration. $options['placement'] = 'placement_example'; // string | Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. -$options['format_version'] = self::FORMAT_VERSION_v2; // int | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. $options['response_condition'] = 'response_condition_example'; // string | The name of an existing condition in the configured endpoint, or leave blank to always execute. $options['format'] = '%h %l %u %t \"%r\" %>s %b'; // string | A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). +$options['format_version'] = self::FORMAT_VERSION_v2; // int | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. $options['message_type'] = new \Fastly\Model\LoggingMessageType(); // \Fastly\Model\LoggingMessageType $options['url'] = 'url_example'; // string | The URL to post logs to. @@ -222,9 +222,9 @@ Name | Type | Description | Notes **logging_sumologic_name** | **string** | The name for the real-time logging configuration. | **name** | **string** | The name for the real-time logging configuration. | [optional] **placement** | **string** | Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. | [optional] [one of: 'none', 'waf_debug', 'null'] -**format_version** | **int** | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. | [optional] [one of: 1, 2] **response_condition** | **string** | The name of an existing condition in the configured endpoint, or leave blank to always execute. | [optional] **format** | **string** | A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). | [optional] [defaults to '%h %l %u %t "%r" %>s %b'] +**format_version** | **int** | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. | [optional] [one of: 1, 2] **message_type** | [**\Fastly\Model\LoggingMessageType**](../Model/LoggingMessageType.md) | | [optional] **url** | **string** | The URL to post logs to. | [optional] diff --git a/docs/Api/LoggingSyslogApi.md b/docs/Api/LoggingSyslogApi.md index da0fad5e..0b927860 100644 --- a/docs/Api/LoggingSyslogApi.md +++ b/docs/Api/LoggingSyslogApi.md @@ -35,9 +35,9 @@ Create a Syslog for a particular service and version. $options['version_id'] = 56; // int | Integer identifying a service version. $options['name'] = 'name_example'; // string | The name for the real-time logging configuration. $options['placement'] = 'placement_example'; // string | Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. -$options['format_version'] = self::FORMAT_VERSION_v2; // int | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. $options['response_condition'] = 'response_condition_example'; // string | The name of an existing condition in the configured endpoint, or leave blank to always execute. $options['format'] = '%h %l %u %t \"%r\" %>s %b'; // string | A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). +$options['format_version'] = self::FORMAT_VERSION_v2; // int | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. $options['tls_ca_cert'] = 'null'; // string | A secure certificate to authenticate a server with. Must be in PEM format. $options['tls_client_cert'] = 'null'; // string | The client certificate used to make authenticated requests. Must be in PEM format. $options['tls_client_key'] = 'null'; // string | The client private key used to make authenticated requests. Must be in PEM format. @@ -67,9 +67,9 @@ Name | Type | Description | Notes **version_id** | **int** | Integer identifying a service version. | **name** | **string** | The name for the real-time logging configuration. | [optional] **placement** | **string** | Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. | [optional] [one of: 'none', 'waf_debug', 'null'] -**format_version** | **int** | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. | [optional] [one of: 1, 2] **response_condition** | **string** | The name of an existing condition in the configured endpoint, or leave blank to always execute. | [optional] **format** | **string** | A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). | [optional] [defaults to '%h %l %u %t "%r" %>s %b'] +**format_version** | **int** | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. | [optional] [one of: 1, 2] **tls_ca_cert** | **string** | A secure certificate to authenticate a server with. Must be in PEM format. | [optional] [defaults to 'null'] **tls_client_cert** | **string** | The client certificate used to make authenticated requests. Must be in PEM format. | [optional] [defaults to 'null'] **tls_client_key** | **string** | The client private key used to make authenticated requests. Must be in PEM format. | [optional] [defaults to 'null'] @@ -216,9 +216,9 @@ $options['version_id'] = 56; // int | Integer identifying a service version. $options['logging_syslog_name'] = 'logging_syslog_name_example'; // string | The name for the real-time logging configuration. $options['name'] = 'name_example'; // string | The name for the real-time logging configuration. $options['placement'] = 'placement_example'; // string | Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. -$options['format_version'] = self::FORMAT_VERSION_v2; // int | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. $options['response_condition'] = 'response_condition_example'; // string | The name of an existing condition in the configured endpoint, or leave blank to always execute. $options['format'] = '%h %l %u %t \"%r\" %>s %b'; // string | A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). +$options['format_version'] = self::FORMAT_VERSION_v2; // int | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. $options['tls_ca_cert'] = 'null'; // string | A secure certificate to authenticate a server with. Must be in PEM format. $options['tls_client_cert'] = 'null'; // string | The client certificate used to make authenticated requests. Must be in PEM format. $options['tls_client_key'] = 'null'; // string | The client private key used to make authenticated requests. Must be in PEM format. @@ -249,9 +249,9 @@ Name | Type | Description | Notes **logging_syslog_name** | **string** | The name for the real-time logging configuration. | **name** | **string** | The name for the real-time logging configuration. | [optional] **placement** | **string** | Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. | [optional] [one of: 'none', 'waf_debug', 'null'] -**format_version** | **int** | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. | [optional] [one of: 1, 2] **response_condition** | **string** | The name of an existing condition in the configured endpoint, or leave blank to always execute. | [optional] **format** | **string** | A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). | [optional] [defaults to '%h %l %u %t "%r" %>s %b'] +**format_version** | **int** | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. | [optional] [one of: 1, 2] **tls_ca_cert** | **string** | A secure certificate to authenticate a server with. Must be in PEM format. | [optional] [defaults to 'null'] **tls_client_cert** | **string** | The client certificate used to make authenticated requests. Must be in PEM format. | [optional] [defaults to 'null'] **tls_client_key** | **string** | The client private key used to make authenticated requests. Must be in PEM format. | [optional] [defaults to 'null'] diff --git a/docs/Api/PoolApi.md b/docs/Api/PoolApi.md index a9968167..87d02af6 100644 --- a/docs/Api/PoolApi.md +++ b/docs/Api/PoolApi.md @@ -24,7 +24,7 @@ Method | Fastly API endpoint | Description ## `createServerPool()` ```php -createServerPool($options): \Fastly\Model\PoolResponse // Create a server pool +createServerPool($options): \Fastly\Model\PoolResponsePost // Create a server pool ``` Creates a pool for a particular service and version. @@ -38,22 +38,28 @@ $options['tls_client_cert'] = 'null'; // string | The client certificate used to $options['tls_client_key'] = 'null'; // string | The client private key used to make authenticated requests. Must be in PEM format. $options['tls_cert_hostname'] = 'null'; // string | The hostname used to verify a server's certificate. It can either be the Common Name (CN) or a Subject Alternative Name (SAN). $options['use_tls'] = 0; // int | Whether to use TLS. +$options['created_at'] = new \DateTime("2013-10-20T19:20:30+01:00"); // \DateTime | Date and time in ISO 8601 format. +$options['deleted_at'] = new \DateTime("2013-10-20T19:20:30+01:00"); // \DateTime | Date and time in ISO 8601 format. +$options['updated_at'] = new \DateTime("2013-10-20T19:20:30+01:00"); // \DateTime | Date and time in ISO 8601 format. +$options['service_id'] = 'service_id_example'; // string +$options['version'] = 'version_example'; // string $options['name'] = 'name_example'; // string | Name for the Pool. $options['shield'] = 'null'; // string | Selected POP to serve as a shield for the servers. Defaults to `null` meaning no origin shielding if not set. Refer to the [POPs API endpoint](/reference/api/utils/pops/) to get a list of available POPs used for shielding. $options['request_condition'] = 'request_condition_example'; // string | Condition which, if met, will select this configuration during a request. Optional. -$options['max_conn_default'] = 200; // int | Maximum number of connections. Optional. -$options['connect_timeout'] = 56; // int | How long to wait for a timeout in milliseconds. Optional. -$options['first_byte_timeout'] = 56; // int | How long to wait for the first byte in milliseconds. Optional. -$options['quorum'] = 75; // int | Percentage of capacity (`0-100`) that needs to be operationally available for a pool to be considered up. $options['tls_ciphers'] = 'tls_ciphers_example'; // string | List of OpenSSL ciphers (see the [openssl.org manpages](https://www.openssl.org/docs/man1.1.1/man1/ciphers.html) for details). Optional. $options['tls_sni_hostname'] = 'tls_sni_hostname_example'; // string | SNI hostname. Optional. -$options['tls_check_cert'] = 56; // int | Be strict on checking TLS certs. Optional. $options['min_tls_version'] = 56; // int | Minimum allowed TLS version on connections to this server. Optional. $options['max_tls_version'] = 56; // int | Maximum allowed TLS version on connections to this server. Optional. $options['healthcheck'] = 'healthcheck_example'; // string | Name of the healthcheck to use with this pool. Can be empty and could be reused across multiple backend and pools. $options['comment'] = 'comment_example'; // string | A freeform descriptive note. $options['type'] = 'type_example'; // string | What type of load balance group to use. $options['override_host'] = 'null'; // string | The hostname to [override the Host header](https://docs.fastly.com/en/guides/specifying-an-override-host). Defaults to `null` meaning no override of the Host header will occur. This setting can also be added to a Server definition. If the field is set on a Server definition it will override the Pool setting. +$options['between_bytes_timeout'] = 10000; // int | Maximum duration in milliseconds that Fastly will wait while receiving no data on a download from a backend. If exceeded, the response received so far will be considered complete and the fetch will end. May be set at runtime using `bereq.between_bytes_timeout`. +$options['connect_timeout'] = 56; // int | How long to wait for a timeout in milliseconds. Optional. +$options['first_byte_timeout'] = 56; // int | How long to wait for the first byte in milliseconds. Optional. +$options['max_conn_default'] = 200; // int | Maximum number of connections. Optional. +$options['quorum'] = 75; // int | Percentage of capacity (`0-100`) that needs to be operationally available for a pool to be considered up. +$options['tls_check_cert'] = 56; // int | Be strict on checking TLS certs. Optional. try { $result = $apiInstance->createServerPool($options); @@ -75,26 +81,32 @@ Name | Type | Description | Notes **tls_client_key** | **string** | The client private key used to make authenticated requests. Must be in PEM format. | [optional] [defaults to 'null'] **tls_cert_hostname** | **string** | The hostname used to verify a server's certificate. It can either be the Common Name (CN) or a Subject Alternative Name (SAN). | [optional] [defaults to 'null'] **use_tls** | **int** | Whether to use TLS. | [optional] [one of: 0, 1] +**created_at** | **\DateTime** | Date and time in ISO 8601 format. | [optional] +**deleted_at** | **\DateTime** | Date and time in ISO 8601 format. | [optional] +**updated_at** | **\DateTime** | Date and time in ISO 8601 format. | [optional] +**service_id** | **string** | | [optional] +**version** | **string** | | [optional] **name** | **string** | Name for the Pool. | [optional] **shield** | **string** | Selected POP to serve as a shield for the servers. Defaults to `null` meaning no origin shielding if not set. Refer to the [POPs API endpoint](/reference/api/utils/pops/) to get a list of available POPs used for shielding. | [optional] [defaults to 'null'] **request_condition** | **string** | Condition which, if met, will select this configuration during a request. Optional. | [optional] -**max_conn_default** | **int** | Maximum number of connections. Optional. | [optional] [defaults to 200] -**connect_timeout** | **int** | How long to wait for a timeout in milliseconds. Optional. | [optional] -**first_byte_timeout** | **int** | How long to wait for the first byte in milliseconds. Optional. | [optional] -**quorum** | **int** | Percentage of capacity (`0-100`) that needs to be operationally available for a pool to be considered up. | [optional] [defaults to 75] **tls_ciphers** | **string** | List of OpenSSL ciphers (see the [openssl.org manpages](https://www.openssl.org/docs/man1.1.1/man1/ciphers.html) for details). Optional. | [optional] **tls_sni_hostname** | **string** | SNI hostname. Optional. | [optional] -**tls_check_cert** | **int** | Be strict on checking TLS certs. Optional. | [optional] **min_tls_version** | **int** | Minimum allowed TLS version on connections to this server. Optional. | [optional] **max_tls_version** | **int** | Maximum allowed TLS version on connections to this server. Optional. | [optional] **healthcheck** | **string** | Name of the healthcheck to use with this pool. Can be empty and could be reused across multiple backend and pools. | [optional] **comment** | **string** | A freeform descriptive note. | [optional] **type** | **string** | What type of load balance group to use. | [optional] [one of: 'random', 'hash', 'client'] **override_host** | **string** | The hostname to [override the Host header](https://docs.fastly.com/en/guides/specifying-an-override-host). Defaults to `null` meaning no override of the Host header will occur. This setting can also be added to a Server definition. If the field is set on a Server definition it will override the Pool setting. | [optional] [defaults to 'null'] +**between_bytes_timeout** | **int** | Maximum duration in milliseconds that Fastly will wait while receiving no data on a download from a backend. If exceeded, the response received so far will be considered complete and the fetch will end. May be set at runtime using `bereq.between_bytes_timeout`. | [optional] [defaults to 10000] +**connect_timeout** | **int** | How long to wait for a timeout in milliseconds. Optional. | [optional] +**first_byte_timeout** | **int** | How long to wait for the first byte in milliseconds. Optional. | [optional] +**max_conn_default** | **int** | Maximum number of connections. Optional. | [optional] [defaults to 200] +**quorum** | **int** | Percentage of capacity (`0-100`) that needs to be operationally available for a pool to be considered up. | [optional] [defaults to 75] +**tls_check_cert** | **int** | Be strict on checking TLS certs. Optional. | [optional] ### Return type -[**\Fastly\Model\PoolResponse**](../Model/PoolResponse.md) +[**\Fastly\Model\PoolResponsePost**](../Model/PoolResponsePost.md) [[Back to top]](#) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) @@ -229,22 +241,28 @@ $options['tls_client_cert'] = 'null'; // string | The client certificate used to $options['tls_client_key'] = 'null'; // string | The client private key used to make authenticated requests. Must be in PEM format. $options['tls_cert_hostname'] = 'null'; // string | The hostname used to verify a server's certificate. It can either be the Common Name (CN) or a Subject Alternative Name (SAN). $options['use_tls'] = self::USE_TLS_no_tls; // int | Whether to use TLS. +$options['created_at'] = new \DateTime("2013-10-20T19:20:30+01:00"); // \DateTime | Date and time in ISO 8601 format. +$options['deleted_at'] = new \DateTime("2013-10-20T19:20:30+01:00"); // \DateTime | Date and time in ISO 8601 format. +$options['updated_at'] = new \DateTime("2013-10-20T19:20:30+01:00"); // \DateTime | Date and time in ISO 8601 format. +$options['service_id'] = 'service_id_example'; // string +$options['version'] = 'version_example'; // string $options['name'] = 'name_example'; // string | Name for the Pool. $options['shield'] = 'null'; // string | Selected POP to serve as a shield for the servers. Defaults to `null` meaning no origin shielding if not set. Refer to the [POPs API endpoint](/reference/api/utils/pops/) to get a list of available POPs used for shielding. $options['request_condition'] = 'request_condition_example'; // string | Condition which, if met, will select this configuration during a request. Optional. -$options['max_conn_default'] = 200; // int | Maximum number of connections. Optional. -$options['connect_timeout'] = 56; // int | How long to wait for a timeout in milliseconds. Optional. -$options['first_byte_timeout'] = 56; // int | How long to wait for the first byte in milliseconds. Optional. -$options['quorum'] = 75; // int | Percentage of capacity (`0-100`) that needs to be operationally available for a pool to be considered up. $options['tls_ciphers'] = 'tls_ciphers_example'; // string | List of OpenSSL ciphers (see the [openssl.org manpages](https://www.openssl.org/docs/man1.1.1/man1/ciphers.html) for details). Optional. $options['tls_sni_hostname'] = 'tls_sni_hostname_example'; // string | SNI hostname. Optional. -$options['tls_check_cert'] = 56; // int | Be strict on checking TLS certs. Optional. $options['min_tls_version'] = 56; // int | Minimum allowed TLS version on connections to this server. Optional. $options['max_tls_version'] = 56; // int | Maximum allowed TLS version on connections to this server. Optional. $options['healthcheck'] = 'healthcheck_example'; // string | Name of the healthcheck to use with this pool. Can be empty and could be reused across multiple backend and pools. $options['comment'] = 'comment_example'; // string | A freeform descriptive note. $options['type'] = 'type_example'; // string | What type of load balance group to use. $options['override_host'] = 'null'; // string | The hostname to [override the Host header](https://docs.fastly.com/en/guides/specifying-an-override-host). Defaults to `null` meaning no override of the Host header will occur. This setting can also be added to a Server definition. If the field is set on a Server definition it will override the Pool setting. +$options['between_bytes_timeout'] = 10000; // int | Maximum duration in milliseconds that Fastly will wait while receiving no data on a download from a backend. If exceeded, the response received so far will be considered complete and the fetch will end. May be set at runtime using `bereq.between_bytes_timeout`. +$options['connect_timeout'] = 56; // int | How long to wait for a timeout in milliseconds. Optional. +$options['first_byte_timeout'] = 56; // int | How long to wait for the first byte in milliseconds. Optional. +$options['max_conn_default'] = 200; // int | Maximum number of connections. Optional. +$options['quorum'] = 75; // int | Percentage of capacity (`0-100`) that needs to be operationally available for a pool to be considered up. +$options['tls_check_cert'] = 56; // int | Be strict on checking TLS certs. Optional. try { $result = $apiInstance->updateServerPool($options); @@ -267,22 +285,28 @@ Name | Type | Description | Notes **tls_client_key** | **string** | The client private key used to make authenticated requests. Must be in PEM format. | [optional] [defaults to 'null'] **tls_cert_hostname** | **string** | The hostname used to verify a server's certificate. It can either be the Common Name (CN) or a Subject Alternative Name (SAN). | [optional] [defaults to 'null'] **use_tls** | **int** | Whether to use TLS. | [optional] [one of: 0, 1] +**created_at** | **\DateTime** | Date and time in ISO 8601 format. | [optional] +**deleted_at** | **\DateTime** | Date and time in ISO 8601 format. | [optional] +**updated_at** | **\DateTime** | Date and time in ISO 8601 format. | [optional] +**service_id** | **string** | | [optional] +**version** | **string** | | [optional] **name** | **string** | Name for the Pool. | [optional] **shield** | **string** | Selected POP to serve as a shield for the servers. Defaults to `null` meaning no origin shielding if not set. Refer to the [POPs API endpoint](/reference/api/utils/pops/) to get a list of available POPs used for shielding. | [optional] [defaults to 'null'] **request_condition** | **string** | Condition which, if met, will select this configuration during a request. Optional. | [optional] -**max_conn_default** | **int** | Maximum number of connections. Optional. | [optional] [defaults to 200] -**connect_timeout** | **int** | How long to wait for a timeout in milliseconds. Optional. | [optional] -**first_byte_timeout** | **int** | How long to wait for the first byte in milliseconds. Optional. | [optional] -**quorum** | **int** | Percentage of capacity (`0-100`) that needs to be operationally available for a pool to be considered up. | [optional] [defaults to 75] **tls_ciphers** | **string** | List of OpenSSL ciphers (see the [openssl.org manpages](https://www.openssl.org/docs/man1.1.1/man1/ciphers.html) for details). Optional. | [optional] **tls_sni_hostname** | **string** | SNI hostname. Optional. | [optional] -**tls_check_cert** | **int** | Be strict on checking TLS certs. Optional. | [optional] **min_tls_version** | **int** | Minimum allowed TLS version on connections to this server. Optional. | [optional] **max_tls_version** | **int** | Maximum allowed TLS version on connections to this server. Optional. | [optional] **healthcheck** | **string** | Name of the healthcheck to use with this pool. Can be empty and could be reused across multiple backend and pools. | [optional] **comment** | **string** | A freeform descriptive note. | [optional] **type** | **string** | What type of load balance group to use. | [optional] [one of: 'random', 'hash', 'client'] **override_host** | **string** | The hostname to [override the Host header](https://docs.fastly.com/en/guides/specifying-an-override-host). Defaults to `null` meaning no override of the Host header will occur. This setting can also be added to a Server definition. If the field is set on a Server definition it will override the Pool setting. | [optional] [defaults to 'null'] +**between_bytes_timeout** | **int** | Maximum duration in milliseconds that Fastly will wait while receiving no data on a download from a backend. If exceeded, the response received so far will be considered complete and the fetch will end. May be set at runtime using `bereq.between_bytes_timeout`. | [optional] [defaults to 10000] +**connect_timeout** | **int** | How long to wait for a timeout in milliseconds. Optional. | [optional] +**first_byte_timeout** | **int** | How long to wait for the first byte in milliseconds. Optional. | [optional] +**max_conn_default** | **int** | Maximum number of connections. Optional. | [optional] [defaults to 200] +**quorum** | **int** | Percentage of capacity (`0-100`) that needs to be operationally available for a pool to be considered up. | [optional] [defaults to 75] +**tls_check_cert** | **int** | Be strict on checking TLS certs. Optional. | [optional] ### Return type diff --git a/docs/Api/RequestSettingsApi.md b/docs/Api/RequestSettingsApi.md index d33228d0..856730f2 100644 --- a/docs/Api/RequestSettingsApi.md +++ b/docs/Api/RequestSettingsApi.md @@ -183,17 +183,17 @@ Updates the specified Request Settings object. $options['version_id'] = 56; // int | Integer identifying a service version. $options['request_settings_name'] = 'request_settings_name_example'; // string | Name for the request settings. $options['action'] = 'action_example'; // string | Allows you to terminate request handling and immediately perform an action. -$options['bypass_busy_wait'] = 56; // int | Disable collapsed forwarding, so you don't wait for other objects to origin. $options['default_host'] = 'default_host_example'; // string | Sets the host header. +$options['hash_keys'] = 'hash_keys_example'; // string | Comma separated list of varnish request object fields that should be in the hash key. +$options['name'] = 'name_example'; // string | Name for the request settings. +$options['request_condition'] = 'request_condition_example'; // string | Condition which, if met, will select this configuration during a request. Optional. +$options['xff'] = 'xff_example'; // string | Short for X-Forwarded-For. +$options['bypass_busy_wait'] = 56; // int | Disable collapsed forwarding, so you don't wait for other objects to origin. $options['force_miss'] = 56; // int | Allows you to force a cache miss for the request. Replaces the item in the cache if the content is cacheable. $options['force_ssl'] = 56; // int | Forces the request use SSL (redirects a non-SSL to SSL). $options['geo_headers'] = 56; // int | Injects Fastly-Geo-Country, Fastly-Geo-City, and Fastly-Geo-Region into the request headers. -$options['hash_keys'] = 'hash_keys_example'; // string | Comma separated list of varnish request object fields that should be in the hash key. $options['max_stale_age'] = 56; // int | How old an object is allowed to be to serve stale-if-error or stale-while-revalidate. -$options['name'] = 'name_example'; // string | Name for the request settings. -$options['request_condition'] = 'request_condition_example'; // string | Condition which, if met, will select this configuration during a request. Optional. $options['timer_support'] = 56; // int | Injects the X-Timer info into the request for viewing origin fetch durations. -$options['xff'] = 'xff_example'; // string | Short for X-Forwarded-For. try { $result = $apiInstance->updateRequestSettings($options); @@ -212,17 +212,17 @@ Name | Type | Description | Notes **version_id** | **int** | Integer identifying a service version. | **request_settings_name** | **string** | Name for the request settings. | **action** | **string** | Allows you to terminate request handling and immediately perform an action. | [optional] [one of: 'lookup', 'pass'] -**bypass_busy_wait** | **int** | Disable collapsed forwarding, so you don't wait for other objects to origin. | [optional] **default_host** | **string** | Sets the host header. | [optional] +**hash_keys** | **string** | Comma separated list of varnish request object fields that should be in the hash key. | [optional] +**name** | **string** | Name for the request settings. | [optional] +**request_condition** | **string** | Condition which, if met, will select this configuration during a request. Optional. | [optional] +**xff** | **string** | Short for X-Forwarded-For. | [optional] [one of: 'clear', 'leave', 'append', 'append_all', 'overwrite'] +**bypass_busy_wait** | **int** | Disable collapsed forwarding, so you don't wait for other objects to origin. | [optional] **force_miss** | **int** | Allows you to force a cache miss for the request. Replaces the item in the cache if the content is cacheable. | [optional] **force_ssl** | **int** | Forces the request use SSL (redirects a non-SSL to SSL). | [optional] **geo_headers** | **int** | Injects Fastly-Geo-Country, Fastly-Geo-City, and Fastly-Geo-Region into the request headers. | [optional] -**hash_keys** | **string** | Comma separated list of varnish request object fields that should be in the hash key. | [optional] **max_stale_age** | **int** | How old an object is allowed to be to serve stale-if-error or stale-while-revalidate. | [optional] -**name** | **string** | Name for the request settings. | [optional] -**request_condition** | **string** | Condition which, if met, will select this configuration during a request. Optional. | [optional] **timer_support** | **int** | Injects the X-Timer info into the request for viewing origin fetch durations. | [optional] -**xff** | **string** | Short for X-Forwarded-For. | [optional] [one of: 'clear', 'leave', 'append', 'append_all', 'overwrite'] ### Return type diff --git a/docs/Model/CacheSetting.md b/docs/Model/CacheSetting.md index 430346a0..224eff72 100644 --- a/docs/Model/CacheSetting.md +++ b/docs/Model/CacheSetting.md @@ -7,8 +7,8 @@ Name | Type | Description | Notes **action** | **string** | If set, will cause vcl_fetch to terminate after processing this rule with the return state specified. If not set, other configuration logic in vcl_fetch with a lower priority will run after this rule. | [optional] [one of: 'pass', 'cache', 'restart'] **cache_condition** | **string** | Name of the cache condition controlling when this configuration applies. | [optional] **name** | **string** | Name for the cache settings object. | [optional] -**stale_ttl** | **int** | Maximum time in seconds to continue to use a stale version of the object if future requests to your backend server fail (also known as 'stale if error'). | [optional] -**ttl** | **int** | Maximum time to consider the object fresh in the cache (the cache 'time to live'). | [optional] +**stale_ttl** | **string** | Maximum time in seconds to continue to use a stale version of the object if future requests to your backend server fail (also known as 'stale if error'). | [optional] +**ttl** | **string** | Maximum time to consider the object fresh in the cache (the cache 'time to live'). | [optional] [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/docs/Model/CacheSettingResponse.md b/docs/Model/CacheSettingResponse.md index 0547213a..d5fe1867 100644 --- a/docs/Model/CacheSettingResponse.md +++ b/docs/Model/CacheSettingResponse.md @@ -7,10 +7,10 @@ Name | Type | Description | Notes **action** | **string** | If set, will cause vcl_fetch to terminate after processing this rule with the return state specified. If not set, other configuration logic in vcl_fetch with a lower priority will run after this rule. | [optional] [one of: 'pass', 'cache', 'restart'] **cache_condition** | **string** | Name of the cache condition controlling when this configuration applies. | [optional] **name** | **string** | Name for the cache settings object. | [optional] -**stale_ttl** | **int** | Maximum time in seconds to continue to use a stale version of the object if future requests to your backend server fail (also known as 'stale if error'). | [optional] -**ttl** | **int** | Maximum time to consider the object fresh in the cache (the cache 'time to live'). | [optional] +**stale_ttl** | **string** | Maximum time in seconds to continue to use a stale version of the object if future requests to your backend server fail (also known as 'stale if error'). | [optional] +**ttl** | **string** | Maximum time to consider the object fresh in the cache (the cache 'time to live'). | [optional] **service_id** | **string** | | [optional] [readonly] -**version** | **int** | | [optional] [readonly] +**version** | **string** | | [optional] [readonly] **created_at** | **\DateTime** | Date and time in ISO 8601 format. | [optional] [readonly] **deleted_at** | **\DateTime** | Date and time in ISO 8601 format. | [optional] [readonly] **updated_at** | **\DateTime** | Date and time in ISO 8601 format. | [optional] [readonly] diff --git a/docs/Model/GzipResponse.md b/docs/Model/GzipResponse.md index a4eb6371..5ce8eb3c 100644 --- a/docs/Model/GzipResponse.md +++ b/docs/Model/GzipResponse.md @@ -9,7 +9,7 @@ Name | Type | Description | Notes **extensions** | **string** | Space-separated list of file extensions to compress. If you omit this field a default list will be used. | [optional] **name** | **string** | Name of the gzip configuration. | [optional] **service_id** | **string** | | [optional] [readonly] -**version** | **int** | | [optional] [readonly] +**version** | **string** | | [optional] [readonly] **created_at** | **\DateTime** | Date and time in ISO 8601 format. | [optional] [readonly] **deleted_at** | **\DateTime** | Date and time in ISO 8601 format. | [optional] [readonly] **updated_at** | **\DateTime** | Date and time in ISO 8601 format. | [optional] [readonly] diff --git a/docs/Model/Header.md b/docs/Model/Header.md index 721f03a4..c66d695c 100644 --- a/docs/Model/Header.md +++ b/docs/Model/Header.md @@ -7,9 +7,7 @@ Name | Type | Description | Notes **action** | **string** | Accepts a string value. | [optional] [one of: 'set', 'append', 'delete', 'regex', 'regex_repeat'] **cache_condition** | **string** | Name of the cache condition controlling when this configuration applies. | [optional] **dst** | **string** | Header to set. | [optional] -**ignore_if_set** | **int** | Don't add the header if it is added already. Only applies to 'set' action. | [optional] **name** | **string** | A handle to refer to this Header object. | [optional] -**priority** | **int** | Priority determines execution order. Lower numbers execute first. | [optional] [defaults to 100] **regex** | **string** | Regular expression to use. Only applies to `regex` and `regex_repeat` actions. | [optional] **request_condition** | **string** | Condition which, if met, will select this configuration during a request. Optional. | [optional] **response_condition** | **string** | Optional name of a response condition to apply. | [optional] diff --git a/docs/Model/HeaderResponse.md b/docs/Model/HeaderResponse.md index a48e3bf8..b4afdee2 100644 --- a/docs/Model/HeaderResponse.md +++ b/docs/Model/HeaderResponse.md @@ -7,17 +7,17 @@ Name | Type | Description | Notes **action** | **string** | Accepts a string value. | [optional] [one of: 'set', 'append', 'delete', 'regex', 'regex_repeat'] **cache_condition** | **string** | Name of the cache condition controlling when this configuration applies. | [optional] **dst** | **string** | Header to set. | [optional] -**ignore_if_set** | **int** | Don't add the header if it is added already. Only applies to 'set' action. | [optional] **name** | **string** | A handle to refer to this Header object. | [optional] -**priority** | **int** | Priority determines execution order. Lower numbers execute first. | [optional] [defaults to 100] **regex** | **string** | Regular expression to use. Only applies to `regex` and `regex_repeat` actions. | [optional] **request_condition** | **string** | Condition which, if met, will select this configuration during a request. Optional. | [optional] **response_condition** | **string** | Optional name of a response condition to apply. | [optional] **src** | **string** | Variable to be used as a source for the header content. Does not apply to `delete` action. | [optional] **substitution** | **string** | Value to substitute in place of regular expression. Only applies to `regex` and `regex_repeat` actions. | [optional] **type** | **string** | Accepts a string value. | [optional] [one of: 'request', 'cache', 'response'] +**ignore_if_set** | **string** | Don't add the header if it is added already. Only applies to 'set' action. Numerical value (\"0\" = false, \"1\" = true) | [optional] +**priority** | **string** | Priority determines execution order. Lower numbers execute first. | [optional] [defaults to '100'] **service_id** | **string** | | [optional] [readonly] -**version** | **int** | | [optional] [readonly] +**version** | **string** | | [optional] [readonly] **created_at** | **\DateTime** | Date and time in ISO 8601 format. | [optional] [readonly] **deleted_at** | **\DateTime** | Date and time in ISO 8601 format. | [optional] [readonly] **updated_at** | **\DateTime** | Date and time in ISO 8601 format. | [optional] [readonly] diff --git a/docs/Model/HeaderResponseAdditional.md b/docs/Model/HeaderResponseAdditional.md new file mode 100644 index 00000000..5f02b39f --- /dev/null +++ b/docs/Model/HeaderResponseAdditional.md @@ -0,0 +1,11 @@ +# # HeaderResponseAdditional + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ignore_if_set** | **string** | Don't add the header if it is added already. Only applies to 'set' action. Numerical value (\"0\" = false, \"1\" = true) | [optional] +**priority** | **string** | Priority determines execution order. Lower numbers execute first. | [optional] [defaults to '100'] + + +[[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/docs/Model/LoggingAzureblob.md b/docs/Model/LoggingAzureblob.md deleted file mode 100644 index 9f46c13e..00000000 --- a/docs/Model/LoggingAzureblob.md +++ /dev/null @@ -1,25 +0,0 @@ -# # LoggingAzureblob - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **string** | The name for the real-time logging configuration. | [optional] -**placement** | **string** | Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. | [optional] [one of: 'none', 'waf_debug', 'null'] -**format_version** | **int** | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. | [optional] [one of: 1, 2] -**response_condition** | **string** | The name of an existing condition in the configured endpoint, or leave blank to always execute. | [optional] -**format** | **string** | A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). | [optional] [defaults to '%h %l %u %t "%r" %>s %b'] -**message_type** | **string** | How the message should be formatted. | [optional] [one of: 'classic', 'loggly', 'logplex', 'blank'] [defaults to 'classic'] -**timestamp_format** | **string** | A timestamp format | [optional] [readonly] -**period** | **int** | How frequently log files are finalized so they can be available for reading (in seconds). | [optional] [defaults to 3600] -**gzip_level** | **int** | The level of gzip encoding when sending logs (default `0`, no compression). Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. | [optional] [defaults to 0] -**compression_codec** | **string** | The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. | [optional] [one of: 'zstd', 'snappy', 'gzip'] -**path** | **string** | The path to upload logs to. | [optional] [defaults to 'null'] -**account_name** | **string** | The unique Azure Blob Storage namespace in which your data objects are stored. Required. | [optional] -**container** | **string** | The name of the Azure Blob Storage container in which to store logs. Required. | [optional] -**sas_token** | **string** | The Azure shared access signature providing write access to the blob service objects. Be sure to update your token before it expires or the logging functionality will not work. Required. | [optional] -**public_key** | **string** | A PGP public key that Fastly will use to encrypt your log files before writing them to disk. | [optional] [defaults to 'null'] -**file_max_bytes** | **int** | The maximum number of bytes for each uploaded file. A value of 0 can be used to indicate there is no limit on the size of uploaded files, otherwise the minimum value is 1048576 bytes (1 MiB.) | [optional] - - -[[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/docs/Model/LoggingAzureblobAllOf.md b/docs/Model/LoggingAzureblobAdditional.md similarity index 97% rename from docs/Model/LoggingAzureblobAllOf.md rename to docs/Model/LoggingAzureblobAdditional.md index 59e3bab4..876e6e3d 100644 --- a/docs/Model/LoggingAzureblobAllOf.md +++ b/docs/Model/LoggingAzureblobAdditional.md @@ -1,4 +1,4 @@ -# # LoggingAzureblobAllOf +# # LoggingAzureblobAdditional ## Properties diff --git a/docs/Model/LoggingAzureblobResponse.md b/docs/Model/LoggingAzureblobResponse.md index 459cd51a..b274ca5d 100644 --- a/docs/Model/LoggingAzureblobResponse.md +++ b/docs/Model/LoggingAzureblobResponse.md @@ -6,25 +6,25 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **name** | **string** | The name for the real-time logging configuration. | [optional] **placement** | **string** | Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. | [optional] [one of: 'none', 'waf_debug', 'null'] -**format_version** | **int** | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. | [optional] [one of: 1, 2] **response_condition** | **string** | The name of an existing condition in the configured endpoint, or leave blank to always execute. | [optional] **format** | **string** | A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). | [optional] [defaults to '%h %l %u %t "%r" %>s %b'] +**format_version** | **string** | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. | [optional] [one of: '1', '2'] [defaults to '2'] **message_type** | **string** | How the message should be formatted. | [optional] [one of: 'classic', 'loggly', 'logplex', 'blank'] [defaults to 'classic'] **timestamp_format** | **string** | A timestamp format | [optional] [readonly] -**period** | **int** | How frequently log files are finalized so they can be available for reading (in seconds). | [optional] [defaults to 3600] -**gzip_level** | **int** | The level of gzip encoding when sending logs (default `0`, no compression). Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. | [optional] [defaults to 0] **compression_codec** | **string** | The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. | [optional] [one of: 'zstd', 'snappy', 'gzip'] +**period** | **string** | How frequently log files are finalized so they can be available for reading (in seconds). | [optional] [defaults to '3600'] +**gzip_level** | **string** | The level of gzip encoding when sending logs (default `0`, no compression). Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. | [optional] [defaults to '0'] +**created_at** | **\DateTime** | Date and time in ISO 8601 format. | [optional] [readonly] +**deleted_at** | **\DateTime** | Date and time in ISO 8601 format. | [optional] [readonly] +**updated_at** | **\DateTime** | Date and time in ISO 8601 format. | [optional] [readonly] +**service_id** | **string** | | [optional] [readonly] +**version** | **string** | | [optional] [readonly] **path** | **string** | The path to upload logs to. | [optional] [defaults to 'null'] **account_name** | **string** | The unique Azure Blob Storage namespace in which your data objects are stored. Required. | [optional] **container** | **string** | The name of the Azure Blob Storage container in which to store logs. Required. | [optional] **sas_token** | **string** | The Azure shared access signature providing write access to the blob service objects. Be sure to update your token before it expires or the logging functionality will not work. Required. | [optional] **public_key** | **string** | A PGP public key that Fastly will use to encrypt your log files before writing them to disk. | [optional] [defaults to 'null'] **file_max_bytes** | **int** | The maximum number of bytes for each uploaded file. A value of 0 can be used to indicate there is no limit on the size of uploaded files, otherwise the minimum value is 1048576 bytes (1 MiB.) | [optional] -**created_at** | **\DateTime** | Date and time in ISO 8601 format. | [optional] [readonly] -**deleted_at** | **\DateTime** | Date and time in ISO 8601 format. | [optional] [readonly] -**updated_at** | **\DateTime** | Date and time in ISO 8601 format. | [optional] [readonly] -**service_id** | **string** | | [optional] [readonly] -**version** | **int** | | [optional] [readonly] [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/docs/Model/LoggingBigquery.md b/docs/Model/LoggingBigquery.md deleted file mode 100644 index 99bac5ff..00000000 --- a/docs/Model/LoggingBigquery.md +++ /dev/null @@ -1,21 +0,0 @@ -# # LoggingBigquery - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **string** | The name of the BigQuery logging object. Used as a primary key for API access. | [optional] -**placement** | **string** | Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. | [optional] [one of: 'none', 'waf_debug', 'null'] -**format_version** | **int** | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. | [optional] [one of: 1, 2] -**response_condition** | **string** | The name of an existing condition in the configured endpoint, or leave blank to always execute. | [optional] -**format** | **string** | A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). Must produce JSON that matches the schema of your BigQuery table. | [optional] -**user** | **string** | Your Google Cloud Platform service account email address. The `client_email` field in your service account authentication JSON. Not required if `account_name` is specified. | [optional] -**secret_key** | **string** | Your Google Cloud Platform account secret key. The `private_key` field in your service account authentication JSON. Not required if `account_name` is specified. | [optional] -**account_name** | **string** | The name of the Google Cloud Platform service account associated with the target log collection service. Not required if `user` and `secret_key` are provided. | [optional] -**dataset** | **string** | Your BigQuery dataset. | [optional] -**table** | **string** | Your BigQuery table. | [optional] -**template_suffix** | **string** | BigQuery table name suffix template. Optional. | [optional] -**project_id** | **string** | Your Google Cloud Platform project ID. Required | [optional] - - -[[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/docs/Model/LoggingBigqueryAllOf.md b/docs/Model/LoggingBigqueryAdditional.md similarity index 96% rename from docs/Model/LoggingBigqueryAllOf.md rename to docs/Model/LoggingBigqueryAdditional.md index 754a8f14..60ddd417 100644 --- a/docs/Model/LoggingBigqueryAllOf.md +++ b/docs/Model/LoggingBigqueryAdditional.md @@ -1,4 +1,4 @@ -# # LoggingBigqueryAllOf +# # LoggingBigqueryAdditional ## Properties diff --git a/docs/Model/LoggingBigqueryResponse.md b/docs/Model/LoggingBigqueryResponse.md index 9161829d..f5640627 100644 --- a/docs/Model/LoggingBigqueryResponse.md +++ b/docs/Model/LoggingBigqueryResponse.md @@ -6,9 +6,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **name** | **string** | The name of the BigQuery logging object. Used as a primary key for API access. | [optional] **placement** | **string** | Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. | [optional] [one of: 'none', 'waf_debug', 'null'] -**format_version** | **int** | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. | [optional] [one of: 1, 2] **response_condition** | **string** | The name of an existing condition in the configured endpoint, or leave blank to always execute. | [optional] **format** | **string** | A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). Must produce JSON that matches the schema of your BigQuery table. | [optional] +**format_version** | **string** | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. | [optional] [one of: '1', '2'] [defaults to '2'] **user** | **string** | Your Google Cloud Platform service account email address. The `client_email` field in your service account authentication JSON. Not required if `account_name` is specified. | [optional] **secret_key** | **string** | Your Google Cloud Platform account secret key. The `private_key` field in your service account authentication JSON. Not required if `account_name` is specified. | [optional] **account_name** | **string** | The name of the Google Cloud Platform service account associated with the target log collection service. Not required if `user` and `secret_key` are provided. | [optional] @@ -20,7 +20,7 @@ Name | Type | Description | Notes **deleted_at** | **\DateTime** | Date and time in ISO 8601 format. | [optional] [readonly] **updated_at** | **\DateTime** | Date and time in ISO 8601 format. | [optional] [readonly] **service_id** | **string** | | [optional] [readonly] -**version** | **int** | | [optional] [readonly] +**version** | **string** | | [optional] [readonly] [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/docs/Model/LoggingCloudfiles.md b/docs/Model/LoggingCloudfiles.md deleted file mode 100644 index 0b201c75..00000000 --- a/docs/Model/LoggingCloudfiles.md +++ /dev/null @@ -1,25 +0,0 @@ -# # LoggingCloudfiles - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **string** | The name for the real-time logging configuration. | [optional] -**placement** | **string** | Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. | [optional] [one of: 'none', 'waf_debug', 'null'] -**format_version** | **int** | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. | [optional] [one of: 1, 2] -**response_condition** | **string** | The name of an existing condition in the configured endpoint, or leave blank to always execute. | [optional] -**format** | **string** | A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). | [optional] [defaults to '%h %l %u %t "%r" %>s %b'] -**message_type** | **string** | How the message should be formatted. | [optional] [one of: 'classic', 'loggly', 'logplex', 'blank'] [defaults to 'classic'] -**timestamp_format** | **string** | A timestamp format | [optional] [readonly] -**period** | **int** | How frequently log files are finalized so they can be available for reading (in seconds). | [optional] [defaults to 3600] -**gzip_level** | **int** | The level of gzip encoding when sending logs (default `0`, no compression). Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. | [optional] [defaults to 0] -**compression_codec** | **string** | The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. | [optional] [one of: 'zstd', 'snappy', 'gzip'] -**access_key** | **string** | Your Cloud Files account access key. | [optional] -**bucket_name** | **string** | The name of your Cloud Files container. | [optional] -**path** | **string** | The path to upload logs to. | [optional] [defaults to 'null'] -**region** | **string** | The region to stream logs to. | [optional] [one of: 'DFW', 'ORD', 'IAD', 'LON', 'SYD', 'HKG', 'null'] -**public_key** | **string** | A PGP public key that Fastly will use to encrypt your log files before writing them to disk. | [optional] [defaults to 'null'] -**user** | **string** | The username for your Cloud Files account. | [optional] - - -[[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/docs/Model/LoggingCloudfilesAllOf.md b/docs/Model/LoggingCloudfilesAdditional.md similarity index 96% rename from docs/Model/LoggingCloudfilesAllOf.md rename to docs/Model/LoggingCloudfilesAdditional.md index be1e4ec3..242f4961 100644 --- a/docs/Model/LoggingCloudfilesAllOf.md +++ b/docs/Model/LoggingCloudfilesAdditional.md @@ -1,4 +1,4 @@ -# # LoggingCloudfilesAllOf +# # LoggingCloudfilesAdditional ## Properties diff --git a/docs/Model/LoggingCloudfilesResponse.md b/docs/Model/LoggingCloudfilesResponse.md index a0ff20bf..cd9345cd 100644 --- a/docs/Model/LoggingCloudfilesResponse.md +++ b/docs/Model/LoggingCloudfilesResponse.md @@ -6,25 +6,25 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **name** | **string** | The name for the real-time logging configuration. | [optional] **placement** | **string** | Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. | [optional] [one of: 'none', 'waf_debug', 'null'] -**format_version** | **int** | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. | [optional] [one of: 1, 2] **response_condition** | **string** | The name of an existing condition in the configured endpoint, or leave blank to always execute. | [optional] **format** | **string** | A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). | [optional] [defaults to '%h %l %u %t "%r" %>s %b'] +**format_version** | **string** | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. | [optional] [one of: '1', '2'] [defaults to '2'] **message_type** | **string** | How the message should be formatted. | [optional] [one of: 'classic', 'loggly', 'logplex', 'blank'] [defaults to 'classic'] **timestamp_format** | **string** | A timestamp format | [optional] [readonly] -**period** | **int** | How frequently log files are finalized so they can be available for reading (in seconds). | [optional] [defaults to 3600] -**gzip_level** | **int** | The level of gzip encoding when sending logs (default `0`, no compression). Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. | [optional] [defaults to 0] **compression_codec** | **string** | The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. | [optional] [one of: 'zstd', 'snappy', 'gzip'] +**period** | **string** | How frequently log files are finalized so they can be available for reading (in seconds). | [optional] [defaults to '3600'] +**gzip_level** | **string** | The level of gzip encoding when sending logs (default `0`, no compression). Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. | [optional] [defaults to '0'] +**created_at** | **\DateTime** | Date and time in ISO 8601 format. | [optional] [readonly] +**deleted_at** | **\DateTime** | Date and time in ISO 8601 format. | [optional] [readonly] +**updated_at** | **\DateTime** | Date and time in ISO 8601 format. | [optional] [readonly] +**service_id** | **string** | | [optional] [readonly] +**version** | **string** | | [optional] [readonly] **access_key** | **string** | Your Cloud Files account access key. | [optional] **bucket_name** | **string** | The name of your Cloud Files container. | [optional] **path** | **string** | The path to upload logs to. | [optional] [defaults to 'null'] **region** | **string** | The region to stream logs to. | [optional] [one of: 'DFW', 'ORD', 'IAD', 'LON', 'SYD', 'HKG', 'null'] **public_key** | **string** | A PGP public key that Fastly will use to encrypt your log files before writing them to disk. | [optional] [defaults to 'null'] **user** | **string** | The username for your Cloud Files account. | [optional] -**created_at** | **\DateTime** | Date and time in ISO 8601 format. | [optional] [readonly] -**deleted_at** | **\DateTime** | Date and time in ISO 8601 format. | [optional] [readonly] -**updated_at** | **\DateTime** | Date and time in ISO 8601 format. | [optional] [readonly] -**service_id** | **string** | | [optional] [readonly] -**version** | **int** | | [optional] [readonly] [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/docs/Model/LoggingCommon.md b/docs/Model/LoggingCommon.md index bb0a328e..c5bd4a8c 100644 --- a/docs/Model/LoggingCommon.md +++ b/docs/Model/LoggingCommon.md @@ -6,7 +6,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **name** | **string** | The name for the real-time logging configuration. | [optional] **placement** | **string** | Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. | [optional] [one of: 'none', 'waf_debug', 'null'] -**format_version** | **int** | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. | [optional] [one of: 1, 2] **response_condition** | **string** | The name of an existing condition in the configured endpoint, or leave blank to always execute. | [optional] **format** | **string** | A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). | [optional] [defaults to '%h %l %u %t "%r" %>s %b'] diff --git a/docs/Model/LoggingPapertrail.md b/docs/Model/LoggingCommonResponse.md similarity index 66% rename from docs/Model/LoggingPapertrail.md rename to docs/Model/LoggingCommonResponse.md index dadd31c3..ad40a7bd 100644 --- a/docs/Model/LoggingPapertrail.md +++ b/docs/Model/LoggingCommonResponse.md @@ -1,4 +1,4 @@ -# # LoggingPapertrail +# # LoggingCommonResponse ## Properties @@ -6,11 +6,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **name** | **string** | The name for the real-time logging configuration. | [optional] **placement** | **string** | Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. | [optional] [one of: 'none', 'waf_debug', 'null'] -**format_version** | **int** | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. | [optional] [one of: 1, 2] **response_condition** | **string** | The name of an existing condition in the configured endpoint, or leave blank to always execute. | [optional] **format** | **string** | A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). | [optional] [defaults to '%h %l %u %t "%r" %>s %b'] -**address** | **string** | A hostname or IPv4 address. | [optional] -**port** | **int** | The port number. | [optional] [defaults to 514] +**format_version** | **string** | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. | [optional] [one of: '1', '2'] [defaults to '2'] [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/docs/Model/LoggingSumologic.md b/docs/Model/LoggingCommonResponseAllOf.md similarity index 65% rename from docs/Model/LoggingSumologic.md rename to docs/Model/LoggingCommonResponseAllOf.md index c2398dd8..a4994b62 100644 --- a/docs/Model/LoggingSumologic.md +++ b/docs/Model/LoggingCommonResponseAllOf.md @@ -1,4 +1,4 @@ -# # LoggingSumologic +# # LoggingCommonResponseAllOf ## Properties @@ -6,11 +6,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **name** | **string** | The name for the real-time logging configuration. | [optional] **placement** | **string** | Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. | [optional] [one of: 'none', 'waf_debug', 'null'] -**format_version** | **int** | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. | [optional] [one of: 1, 2] **response_condition** | **string** | The name of an existing condition in the configured endpoint, or leave blank to always execute. | [optional] **format** | **string** | A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). | [optional] [defaults to '%h %l %u %t "%r" %>s %b'] -**message_type** | [**\Fastly\Model\LoggingMessageType**](LoggingMessageType.md) | | [optional] -**url** | **string** | The URL to post logs to. | [optional] [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/docs/Model/LoggingCommonResponseAllOf1.md b/docs/Model/LoggingCommonResponseAllOf1.md new file mode 100644 index 00000000..d710f1ff --- /dev/null +++ b/docs/Model/LoggingCommonResponseAllOf1.md @@ -0,0 +1,10 @@ +# # LoggingCommonResponseAllOf1 + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**format_version** | **string** | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. | [optional] [one of: '1', '2'] [defaults to '2'] + + +[[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/docs/Model/LoggingDatadog.md b/docs/Model/LoggingDatadog.md deleted file mode 100644 index 187a0b71..00000000 --- a/docs/Model/LoggingDatadog.md +++ /dev/null @@ -1,16 +0,0 @@ -# # LoggingDatadog - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **string** | The name for the real-time logging configuration. | [optional] -**placement** | **string** | Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. | [optional] [one of: 'none', 'waf_debug', 'null'] -**format_version** | **int** | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. | [optional] [one of: 1, 2] -**response_condition** | **string** | The name of an existing condition in the configured endpoint, or leave blank to always execute. | [optional] -**format** | **string** | A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). Must produce valid JSON that Datadog can ingest. | [optional] [defaults to '{"ddsource":"fastly","service":"%{req.service_id}V","date":"%{begin:%Y-%m-%dT%H:%M:%S%Z}t","time_start":"%{begin:%Y-%m-%dT%H:%M:%S%Z}t","time_end":"%{end:%Y-%m-%dT%H:%M:%S%Z}t","http":{"request_time_ms":"%D","method":"%m","url":"%{json.escape(req.url)}V","useragent":"%{User-Agent}i","referer":"%{Referer}i","protocol":"%H","request_x_forwarded_for":"%{X-Forwarded-For}i","status_code":"%s"},"network":{"client":{"ip":"%h","name":"%{client.as.name}V","number":"%{client.as.number}V","connection_speed":"%{client.geo.conn_speed}V"},"destination":{"ip":"%A"},"geoip":{"geo_city":"%{client.geo.city.utf8}V","geo_country_code":"%{client.geo.country_code}V","geo_continent_code":"%{client.geo.continent_code}V","geo_region":"%{client.geo.region}V"},"bytes_written":"%B","bytes_read":"%{req.body_bytes_read}V"},"host":"%{Fastly-Orig-Host}i","origin_host":"%v","is_ipv6":"%{if(req.is_ipv6, \"true\", \"false\")}V","is_tls":"%{if(req.is_ssl, \"true\", \"false\")}V","tls_client_protocol":"%{json.escape(tls.client.protocol)}V","tls_client_servername":"%{json.escape(tls.client.servername)}V","tls_client_cipher":"%{json.escape(tls.client.cipher)}V","tls_client_cipher_sha":"%{json.escape(tls.client.ciphers_sha)}V","tls_client_tlsexts_sha":"%{json.escape(tls.client.tlsexts_sha)}V","is_h2":"%{if(fastly_info.is_h2, \"true\", \"false\")}V","is_h2_push":"%{if(fastly_info.h2.is_push, \"true\", \"false\")}V","h2_stream_id":"%{fastly_info.h2.stream_id}V","request_accept_content":"%{Accept}i","request_accept_language":"%{Accept-Language}i","request_accept_encoding":"%{Accept-Encoding}i","request_accept_charset":"%{Accept-Charset}i","request_connection":"%{Connection}i","request_dnt":"%{DNT}i","request_forwarded":"%{Forwarded}i","request_via":"%{Via}i","request_cache_control":"%{Cache-Control}i","request_x_requested_with":"%{X-Requested-With}i","request_x_att_device_id":"%{X-ATT-Device-Id}i","content_type":"%{Content-Type}o","is_cacheable":"%{if(fastly_info.state~\"^(HIT|MISS)$\", \"true\", \"false\")}V","response_age":"%{Age}o","response_cache_control":"%{Cache-Control}o","response_expires":"%{Expires}o","response_last_modified":"%{Last-Modified}o","response_tsv":"%{TSV}o","server_datacenter":"%{server.datacenter}V","req_header_size":"%{req.header_bytes_read}V","resp_header_size":"%{resp.header_bytes_written}V","socket_cwnd":"%{client.socket.cwnd}V","socket_nexthop":"%{client.socket.nexthop}V","socket_tcpi_rcv_mss":"%{client.socket.tcpi_rcv_mss}V","socket_tcpi_snd_mss":"%{client.socket.tcpi_snd_mss}V","socket_tcpi_rtt":"%{client.socket.tcpi_rtt}V","socket_tcpi_rttvar":"%{client.socket.tcpi_rttvar}V","socket_tcpi_rcv_rtt":"%{client.socket.tcpi_rcv_rtt}V","socket_tcpi_rcv_space":"%{client.socket.tcpi_rcv_space}V","socket_tcpi_last_data_sent":"%{client.socket.tcpi_last_data_sent}V","socket_tcpi_total_retrans":"%{client.socket.tcpi_total_retrans}V","socket_tcpi_delta_retrans":"%{client.socket.tcpi_delta_retrans}V","socket_ploss":"%{client.socket.ploss}V"}'] -**region** | **string** | The region that log data will be sent to. | [optional] [one of: 'US', 'EU'] [defaults to 'US'] -**token** | **string** | The API key from your Datadog account. Required. | [optional] - - -[[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/docs/Model/LoggingDatadogAllOf.md b/docs/Model/LoggingDatadogAdditional.md similarity index 99% rename from docs/Model/LoggingDatadogAllOf.md rename to docs/Model/LoggingDatadogAdditional.md index afe3813a..acdee7c4 100644 --- a/docs/Model/LoggingDatadogAllOf.md +++ b/docs/Model/LoggingDatadogAdditional.md @@ -1,4 +1,4 @@ -# # LoggingDatadogAllOf +# # LoggingDatadogAdditional ## Properties diff --git a/docs/Model/LoggingDatadogResponse.md b/docs/Model/LoggingDatadogResponse.md index 41d66612..969c2170 100644 --- a/docs/Model/LoggingDatadogResponse.md +++ b/docs/Model/LoggingDatadogResponse.md @@ -6,16 +6,16 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **name** | **string** | The name for the real-time logging configuration. | [optional] **placement** | **string** | Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. | [optional] [one of: 'none', 'waf_debug', 'null'] -**format_version** | **int** | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. | [optional] [one of: 1, 2] **response_condition** | **string** | The name of an existing condition in the configured endpoint, or leave blank to always execute. | [optional] **format** | **string** | A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). Must produce valid JSON that Datadog can ingest. | [optional] [defaults to '{"ddsource":"fastly","service":"%{req.service_id}V","date":"%{begin:%Y-%m-%dT%H:%M:%S%Z}t","time_start":"%{begin:%Y-%m-%dT%H:%M:%S%Z}t","time_end":"%{end:%Y-%m-%dT%H:%M:%S%Z}t","http":{"request_time_ms":"%D","method":"%m","url":"%{json.escape(req.url)}V","useragent":"%{User-Agent}i","referer":"%{Referer}i","protocol":"%H","request_x_forwarded_for":"%{X-Forwarded-For}i","status_code":"%s"},"network":{"client":{"ip":"%h","name":"%{client.as.name}V","number":"%{client.as.number}V","connection_speed":"%{client.geo.conn_speed}V"},"destination":{"ip":"%A"},"geoip":{"geo_city":"%{client.geo.city.utf8}V","geo_country_code":"%{client.geo.country_code}V","geo_continent_code":"%{client.geo.continent_code}V","geo_region":"%{client.geo.region}V"},"bytes_written":"%B","bytes_read":"%{req.body_bytes_read}V"},"host":"%{Fastly-Orig-Host}i","origin_host":"%v","is_ipv6":"%{if(req.is_ipv6, \"true\", \"false\")}V","is_tls":"%{if(req.is_ssl, \"true\", \"false\")}V","tls_client_protocol":"%{json.escape(tls.client.protocol)}V","tls_client_servername":"%{json.escape(tls.client.servername)}V","tls_client_cipher":"%{json.escape(tls.client.cipher)}V","tls_client_cipher_sha":"%{json.escape(tls.client.ciphers_sha)}V","tls_client_tlsexts_sha":"%{json.escape(tls.client.tlsexts_sha)}V","is_h2":"%{if(fastly_info.is_h2, \"true\", \"false\")}V","is_h2_push":"%{if(fastly_info.h2.is_push, \"true\", \"false\")}V","h2_stream_id":"%{fastly_info.h2.stream_id}V","request_accept_content":"%{Accept}i","request_accept_language":"%{Accept-Language}i","request_accept_encoding":"%{Accept-Encoding}i","request_accept_charset":"%{Accept-Charset}i","request_connection":"%{Connection}i","request_dnt":"%{DNT}i","request_forwarded":"%{Forwarded}i","request_via":"%{Via}i","request_cache_control":"%{Cache-Control}i","request_x_requested_with":"%{X-Requested-With}i","request_x_att_device_id":"%{X-ATT-Device-Id}i","content_type":"%{Content-Type}o","is_cacheable":"%{if(fastly_info.state~\"^(HIT|MISS)$\", \"true\", \"false\")}V","response_age":"%{Age}o","response_cache_control":"%{Cache-Control}o","response_expires":"%{Expires}o","response_last_modified":"%{Last-Modified}o","response_tsv":"%{TSV}o","server_datacenter":"%{server.datacenter}V","req_header_size":"%{req.header_bytes_read}V","resp_header_size":"%{resp.header_bytes_written}V","socket_cwnd":"%{client.socket.cwnd}V","socket_nexthop":"%{client.socket.nexthop}V","socket_tcpi_rcv_mss":"%{client.socket.tcpi_rcv_mss}V","socket_tcpi_snd_mss":"%{client.socket.tcpi_snd_mss}V","socket_tcpi_rtt":"%{client.socket.tcpi_rtt}V","socket_tcpi_rttvar":"%{client.socket.tcpi_rttvar}V","socket_tcpi_rcv_rtt":"%{client.socket.tcpi_rcv_rtt}V","socket_tcpi_rcv_space":"%{client.socket.tcpi_rcv_space}V","socket_tcpi_last_data_sent":"%{client.socket.tcpi_last_data_sent}V","socket_tcpi_total_retrans":"%{client.socket.tcpi_total_retrans}V","socket_tcpi_delta_retrans":"%{client.socket.tcpi_delta_retrans}V","socket_ploss":"%{client.socket.ploss}V"}'] +**format_version** | **string** | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. | [optional] [one of: '1', '2'] [defaults to '2'] **region** | **string** | The region that log data will be sent to. | [optional] [one of: 'US', 'EU'] [defaults to 'US'] **token** | **string** | The API key from your Datadog account. Required. | [optional] **created_at** | **\DateTime** | Date and time in ISO 8601 format. | [optional] [readonly] **deleted_at** | **\DateTime** | Date and time in ISO 8601 format. | [optional] [readonly] **updated_at** | **\DateTime** | Date and time in ISO 8601 format. | [optional] [readonly] **service_id** | **string** | | [optional] [readonly] -**version** | **int** | | [optional] [readonly] +**version** | **string** | | [optional] [readonly] [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/docs/Model/LoggingDigitalocean.md b/docs/Model/LoggingDigitalocean.md deleted file mode 100644 index a0949954..00000000 --- a/docs/Model/LoggingDigitalocean.md +++ /dev/null @@ -1,25 +0,0 @@ -# # LoggingDigitalocean - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **string** | The name for the real-time logging configuration. | [optional] -**placement** | **string** | Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. | [optional] [one of: 'none', 'waf_debug', 'null'] -**format_version** | **int** | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. | [optional] [one of: 1, 2] -**response_condition** | **string** | The name of an existing condition in the configured endpoint, or leave blank to always execute. | [optional] -**format** | **string** | A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). | [optional] [defaults to '%h %l %u %t "%r" %>s %b'] -**message_type** | **string** | How the message should be formatted. | [optional] [one of: 'classic', 'loggly', 'logplex', 'blank'] [defaults to 'classic'] -**timestamp_format** | **string** | A timestamp format | [optional] [readonly] -**period** | **int** | How frequently log files are finalized so they can be available for reading (in seconds). | [optional] [defaults to 3600] -**gzip_level** | **int** | The level of gzip encoding when sending logs (default `0`, no compression). Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. | [optional] [defaults to 0] -**compression_codec** | **string** | The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. | [optional] [one of: 'zstd', 'snappy', 'gzip'] -**bucket_name** | **string** | The name of the DigitalOcean Space. | [optional] -**access_key** | **string** | Your DigitalOcean Spaces account access key. | [optional] -**secret_key** | **string** | Your DigitalOcean Spaces account secret key. | [optional] -**domain** | **string** | The domain of the DigitalOcean Spaces endpoint. | [optional] [defaults to 'nyc3.digitaloceanspaces.com'] -**path** | **string** | The path to upload logs to. | [optional] [defaults to 'null'] -**public_key** | **string** | A PGP public key that Fastly will use to encrypt your log files before writing them to disk. | [optional] [defaults to 'null'] - - -[[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/docs/Model/LoggingDigitaloceanAllOf.md b/docs/Model/LoggingDigitaloceanAdditional.md similarity index 96% rename from docs/Model/LoggingDigitaloceanAllOf.md rename to docs/Model/LoggingDigitaloceanAdditional.md index c88b1711..034d1090 100644 --- a/docs/Model/LoggingDigitaloceanAllOf.md +++ b/docs/Model/LoggingDigitaloceanAdditional.md @@ -1,4 +1,4 @@ -# # LoggingDigitaloceanAllOf +# # LoggingDigitaloceanAdditional ## Properties diff --git a/docs/Model/LoggingDigitaloceanResponse.md b/docs/Model/LoggingDigitaloceanResponse.md index 6e461ad7..00341d8f 100644 --- a/docs/Model/LoggingDigitaloceanResponse.md +++ b/docs/Model/LoggingDigitaloceanResponse.md @@ -6,25 +6,25 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **name** | **string** | The name for the real-time logging configuration. | [optional] **placement** | **string** | Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. | [optional] [one of: 'none', 'waf_debug', 'null'] -**format_version** | **int** | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. | [optional] [one of: 1, 2] **response_condition** | **string** | The name of an existing condition in the configured endpoint, or leave blank to always execute. | [optional] **format** | **string** | A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). | [optional] [defaults to '%h %l %u %t "%r" %>s %b'] +**format_version** | **string** | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. | [optional] [one of: '1', '2'] [defaults to '2'] **message_type** | **string** | How the message should be formatted. | [optional] [one of: 'classic', 'loggly', 'logplex', 'blank'] [defaults to 'classic'] **timestamp_format** | **string** | A timestamp format | [optional] [readonly] -**period** | **int** | How frequently log files are finalized so they can be available for reading (in seconds). | [optional] [defaults to 3600] -**gzip_level** | **int** | The level of gzip encoding when sending logs (default `0`, no compression). Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. | [optional] [defaults to 0] **compression_codec** | **string** | The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. | [optional] [one of: 'zstd', 'snappy', 'gzip'] +**period** | **string** | How frequently log files are finalized so they can be available for reading (in seconds). | [optional] [defaults to '3600'] +**gzip_level** | **string** | The level of gzip encoding when sending logs (default `0`, no compression). Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. | [optional] [defaults to '0'] +**created_at** | **\DateTime** | Date and time in ISO 8601 format. | [optional] [readonly] +**deleted_at** | **\DateTime** | Date and time in ISO 8601 format. | [optional] [readonly] +**updated_at** | **\DateTime** | Date and time in ISO 8601 format. | [optional] [readonly] +**service_id** | **string** | | [optional] [readonly] +**version** | **string** | | [optional] [readonly] **bucket_name** | **string** | The name of the DigitalOcean Space. | [optional] **access_key** | **string** | Your DigitalOcean Spaces account access key. | [optional] **secret_key** | **string** | Your DigitalOcean Spaces account secret key. | [optional] **domain** | **string** | The domain of the DigitalOcean Spaces endpoint. | [optional] [defaults to 'nyc3.digitaloceanspaces.com'] **path** | **string** | The path to upload logs to. | [optional] [defaults to 'null'] **public_key** | **string** | A PGP public key that Fastly will use to encrypt your log files before writing them to disk. | [optional] [defaults to 'null'] -**created_at** | **\DateTime** | Date and time in ISO 8601 format. | [optional] [readonly] -**deleted_at** | **\DateTime** | Date and time in ISO 8601 format. | [optional] [readonly] -**updated_at** | **\DateTime** | Date and time in ISO 8601 format. | [optional] [readonly] -**service_id** | **string** | | [optional] [readonly] -**version** | **int** | | [optional] [readonly] [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/docs/Model/LoggingElasticsearch.md b/docs/Model/LoggingElasticsearch.md deleted file mode 100644 index 3e827555..00000000 --- a/docs/Model/LoggingElasticsearch.md +++ /dev/null @@ -1,25 +0,0 @@ -# # LoggingElasticsearch - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **string** | The name for the real-time logging configuration. | [optional] -**placement** | **string** | Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. | [optional] [one of: 'none', 'waf_debug', 'null'] -**format_version** | **int** | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. | [optional] [one of: 1, 2] -**response_condition** | **string** | The name of an existing condition in the configured endpoint, or leave blank to always execute. | [optional] -**format** | **string** | A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). Must produce valid JSON that Elasticsearch can ingest. | [optional] -**tls_ca_cert** | **string** | A secure certificate to authenticate a server with. Must be in PEM format. | [optional] [defaults to 'null'] -**tls_client_cert** | **string** | The client certificate used to make authenticated requests. Must be in PEM format. | [optional] [defaults to 'null'] -**tls_client_key** | **string** | The client private key used to make authenticated requests. Must be in PEM format. | [optional] [defaults to 'null'] -**tls_hostname** | **string** | The hostname to verify the server's certificate. This should be one of the Subject Alternative Name (SAN) fields for the certificate. Common Names (CN) are not supported. | [optional] [defaults to 'null'] -**request_max_entries** | **int** | The maximum number of logs sent in one request. Defaults `0` for unbounded. | [optional] [defaults to 0] -**request_max_bytes** | **int** | The maximum number of bytes sent in one request. Defaults `0` for unbounded. | [optional] [defaults to 0] -**index** | **string** | The name of the Elasticsearch index to send documents (logs) to. The index must follow the Elasticsearch [index format rules](https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-create-index.html). We support [strftime](https://www.man7.org/linux/man-pages/man3/strftime.3.html) interpolated variables inside braces prefixed with a pound symbol. For example, `#{%F}` will interpolate as `YYYY-MM-DD` with today's date. | [optional] -**url** | **string** | The URL to stream logs to. Must use HTTPS. | [optional] -**pipeline** | **string** | The ID of the Elasticsearch ingest pipeline to apply pre-process transformations to before indexing. Learn more about creating a pipeline in the [Elasticsearch docs](https://www.elastic.co/guide/en/elasticsearch/reference/current/ingest.html). | [optional] -**user** | **string** | Basic Auth username. | [optional] -**password** | **string** | Basic Auth password. | [optional] - - -[[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/docs/Model/LoggingElasticsearchAllOf.md b/docs/Model/LoggingElasticsearchAdditional.md similarity index 97% rename from docs/Model/LoggingElasticsearchAllOf.md rename to docs/Model/LoggingElasticsearchAdditional.md index 05d046d7..89bf7a05 100644 --- a/docs/Model/LoggingElasticsearchAllOf.md +++ b/docs/Model/LoggingElasticsearchAdditional.md @@ -1,4 +1,4 @@ -# # LoggingElasticsearchAllOf +# # LoggingElasticsearchAdditional ## Properties diff --git a/docs/Model/LoggingElasticsearchResponse.md b/docs/Model/LoggingElasticsearchResponse.md index 8b177a7e..eded69ee 100644 --- a/docs/Model/LoggingElasticsearchResponse.md +++ b/docs/Model/LoggingElasticsearchResponse.md @@ -6,9 +6,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **name** | **string** | The name for the real-time logging configuration. | [optional] **placement** | **string** | Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. | [optional] [one of: 'none', 'waf_debug', 'null'] -**format_version** | **int** | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. | [optional] [one of: 1, 2] **response_condition** | **string** | The name of an existing condition in the configured endpoint, or leave blank to always execute. | [optional] **format** | **string** | A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). Must produce valid JSON that Elasticsearch can ingest. | [optional] +**format_version** | **string** | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. | [optional] [one of: '1', '2'] [defaults to '2'] **tls_ca_cert** | **string** | A secure certificate to authenticate a server with. Must be in PEM format. | [optional] [defaults to 'null'] **tls_client_cert** | **string** | The client certificate used to make authenticated requests. Must be in PEM format. | [optional] [defaults to 'null'] **tls_client_key** | **string** | The client private key used to make authenticated requests. Must be in PEM format. | [optional] [defaults to 'null'] @@ -24,7 +24,7 @@ Name | Type | Description | Notes **deleted_at** | **\DateTime** | Date and time in ISO 8601 format. | [optional] [readonly] **updated_at** | **\DateTime** | Date and time in ISO 8601 format. | [optional] [readonly] **service_id** | **string** | | [optional] [readonly] -**version** | **int** | | [optional] [readonly] +**version** | **string** | | [optional] [readonly] [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/docs/Model/LoggingFormatVersionInteger.md b/docs/Model/LoggingFormatVersionInteger.md new file mode 100644 index 00000000..5e82064c --- /dev/null +++ b/docs/Model/LoggingFormatVersionInteger.md @@ -0,0 +1,10 @@ +# # LoggingFormatVersionInteger + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**format_version** | **int** | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. | [optional] [one of: 1, 2] + + +[[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/docs/Model/LoggingFormatVersionString.md b/docs/Model/LoggingFormatVersionString.md new file mode 100644 index 00000000..22ea7ccf --- /dev/null +++ b/docs/Model/LoggingFormatVersionString.md @@ -0,0 +1,10 @@ +# # LoggingFormatVersionString + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**format_version** | **string** | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. | [optional] [one of: '1', '2'] [defaults to '2'] + + +[[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/docs/Model/LoggingFtp.md b/docs/Model/LoggingFtp.md deleted file mode 100644 index f642ee93..00000000 --- a/docs/Model/LoggingFtp.md +++ /dev/null @@ -1,27 +0,0 @@ -# # LoggingFtp - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **string** | The name for the real-time logging configuration. | [optional] -**placement** | **string** | Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. | [optional] [one of: 'none', 'waf_debug', 'null'] -**format_version** | **int** | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. | [optional] [one of: 1, 2] -**response_condition** | **string** | The name of an existing condition in the configured endpoint, or leave blank to always execute. | [optional] -**format** | **string** | A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). | [optional] [defaults to '%h %l %u %t "%r" %>s %b'] -**message_type** | **string** | How the message should be formatted. | [optional] [one of: 'classic', 'loggly', 'logplex', 'blank'] [defaults to 'classic'] -**timestamp_format** | **string** | A timestamp format | [optional] [readonly] -**period** | **int** | How frequently log files are finalized so they can be available for reading (in seconds). | [optional] [defaults to 3600] -**gzip_level** | **int** | The level of gzip encoding when sending logs (default `0`, no compression). Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. | [optional] [defaults to 0] -**compression_codec** | **string** | The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. | [optional] [one of: 'zstd', 'snappy', 'gzip'] -**address** | **string** | An hostname or IPv4 address. | [optional] -**hostname** | **string** | Hostname used. | [optional] -**ipv4** | **string** | IPv4 address of the host. | [optional] -**password** | **string** | The password for the server. For anonymous use an email address. | [optional] -**path** | **string** | The path to upload log files to. If the path ends in `/` then it is treated as a directory. | [optional] -**port** | **int** | The port number. | [optional] [defaults to 21] -**public_key** | **string** | A PGP public key that Fastly will use to encrypt your log files before writing them to disk. | [optional] [defaults to 'null'] -**user** | **string** | The username for the server. Can be anonymous. | [optional] - - -[[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/docs/Model/LoggingFtpAllOf.md b/docs/Model/LoggingFtpAdditional.md similarity index 90% rename from docs/Model/LoggingFtpAllOf.md rename to docs/Model/LoggingFtpAdditional.md index df394dc8..13f00c9b 100644 --- a/docs/Model/LoggingFtpAllOf.md +++ b/docs/Model/LoggingFtpAdditional.md @@ -1,4 +1,4 @@ -# # LoggingFtpAllOf +# # LoggingFtpAdditional ## Properties @@ -9,7 +9,6 @@ Name | Type | Description | Notes **ipv4** | **string** | IPv4 address of the host. | [optional] **password** | **string** | The password for the server. For anonymous use an email address. | [optional] **path** | **string** | The path to upload log files to. If the path ends in `/` then it is treated as a directory. | [optional] -**port** | **int** | The port number. | [optional] [defaults to 21] **public_key** | **string** | A PGP public key that Fastly will use to encrypt your log files before writing them to disk. | [optional] [defaults to 'null'] **user** | **string** | The username for the server. Can be anonymous. | [optional] diff --git a/docs/Model/LoggingFtpResponse.md b/docs/Model/LoggingFtpResponse.md index 28942b6f..77377264 100644 --- a/docs/Model/LoggingFtpResponse.md +++ b/docs/Model/LoggingFtpResponse.md @@ -6,27 +6,27 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **name** | **string** | The name for the real-time logging configuration. | [optional] **placement** | **string** | Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. | [optional] [one of: 'none', 'waf_debug', 'null'] -**format_version** | **int** | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. | [optional] [one of: 1, 2] **response_condition** | **string** | The name of an existing condition in the configured endpoint, or leave blank to always execute. | [optional] **format** | **string** | A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). | [optional] [defaults to '%h %l %u %t "%r" %>s %b'] +**format_version** | **string** | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. | [optional] [one of: '1', '2'] [defaults to '2'] **message_type** | **string** | How the message should be formatted. | [optional] [one of: 'classic', 'loggly', 'logplex', 'blank'] [defaults to 'classic'] **timestamp_format** | **string** | A timestamp format | [optional] [readonly] -**period** | **int** | How frequently log files are finalized so they can be available for reading (in seconds). | [optional] [defaults to 3600] -**gzip_level** | **int** | The level of gzip encoding when sending logs (default `0`, no compression). Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. | [optional] [defaults to 0] **compression_codec** | **string** | The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. | [optional] [one of: 'zstd', 'snappy', 'gzip'] +**period** | **string** | How frequently log files are finalized so they can be available for reading (in seconds). | [optional] [defaults to '3600'] +**gzip_level** | **string** | The level of gzip encoding when sending logs (default `0`, no compression). Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. | [optional] [defaults to '0'] +**created_at** | **\DateTime** | Date and time in ISO 8601 format. | [optional] [readonly] +**deleted_at** | **\DateTime** | Date and time in ISO 8601 format. | [optional] [readonly] +**updated_at** | **\DateTime** | Date and time in ISO 8601 format. | [optional] [readonly] +**service_id** | **string** | | [optional] [readonly] +**version** | **string** | | [optional] [readonly] **address** | **string** | An hostname or IPv4 address. | [optional] **hostname** | **string** | Hostname used. | [optional] **ipv4** | **string** | IPv4 address of the host. | [optional] **password** | **string** | The password for the server. For anonymous use an email address. | [optional] **path** | **string** | The path to upload log files to. If the path ends in `/` then it is treated as a directory. | [optional] -**port** | **int** | The port number. | [optional] [defaults to 21] **public_key** | **string** | A PGP public key that Fastly will use to encrypt your log files before writing them to disk. | [optional] [defaults to 'null'] **user** | **string** | The username for the server. Can be anonymous. | [optional] -**created_at** | **\DateTime** | Date and time in ISO 8601 format. | [optional] [readonly] -**deleted_at** | **\DateTime** | Date and time in ISO 8601 format. | [optional] [readonly] -**updated_at** | **\DateTime** | Date and time in ISO 8601 format. | [optional] [readonly] -**service_id** | **string** | | [optional] [readonly] -**version** | **int** | | [optional] [readonly] +**port** | **string** | The port number. | [optional] [defaults to '21'] [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/docs/Model/LoggingFormatVersion.md b/docs/Model/LoggingFtpResponseAllOf.md similarity index 65% rename from docs/Model/LoggingFormatVersion.md rename to docs/Model/LoggingFtpResponseAllOf.md index ac536542..a03845cc 100644 --- a/docs/Model/LoggingFormatVersion.md +++ b/docs/Model/LoggingFtpResponseAllOf.md @@ -1,9 +1,10 @@ -# # LoggingFormatVersion +# # LoggingFtpResponseAllOf ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**port** | **string** | The port number. | [optional] [defaults to '21'] [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/docs/Model/LoggingGcs.md b/docs/Model/LoggingGcs.md deleted file mode 100644 index fb0bbb35..00000000 --- a/docs/Model/LoggingGcs.md +++ /dev/null @@ -1,26 +0,0 @@ -# # LoggingGcs - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **string** | The name for the real-time logging configuration. | [optional] -**placement** | **string** | Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. | [optional] [one of: 'none', 'waf_debug', 'null'] -**format_version** | **int** | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. | [optional] [one of: 1, 2] -**response_condition** | **string** | The name of an existing condition in the configured endpoint, or leave blank to always execute. | [optional] -**format** | **string** | A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). | [optional] [defaults to '%h %l %u %t "%r" %>s %b'] -**message_type** | **string** | How the message should be formatted. | [optional] [one of: 'classic', 'loggly', 'logplex', 'blank'] [defaults to 'classic'] -**timestamp_format** | **string** | A timestamp format | [optional] [readonly] -**period** | **int** | How frequently log files are finalized so they can be available for reading (in seconds). | [optional] [defaults to 3600] -**gzip_level** | **int** | The level of gzip encoding when sending logs (default `0`, no compression). Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. | [optional] [defaults to 0] -**compression_codec** | **string** | The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. | [optional] [one of: 'zstd', 'snappy', 'gzip'] -**user** | **string** | Your Google Cloud Platform service account email address. The `client_email` field in your service account authentication JSON. Not required if `account_name` is specified. | [optional] -**secret_key** | **string** | Your Google Cloud Platform account secret key. The `private_key` field in your service account authentication JSON. Not required if `account_name` is specified. | [optional] -**account_name** | **string** | The name of the Google Cloud Platform service account associated with the target log collection service. Not required if `user` and `secret_key` are provided. | [optional] -**bucket_name** | **string** | The name of the GCS bucket. | [optional] -**path** | **string** | | [optional] [defaults to '/'] -**public_key** | **string** | A PGP public key that Fastly will use to encrypt your log files before writing them to disk. | [optional] [defaults to 'null'] -**project_id** | **string** | Your Google Cloud Platform project ID. Required | [optional] - - -[[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/docs/Model/LoggingGcsAllOf.md b/docs/Model/LoggingGcsAdditional.md similarity index 95% rename from docs/Model/LoggingGcsAllOf.md rename to docs/Model/LoggingGcsAdditional.md index f1fec0fc..7f6414fc 100644 --- a/docs/Model/LoggingGcsAllOf.md +++ b/docs/Model/LoggingGcsAdditional.md @@ -1,4 +1,4 @@ -# # LoggingGcsAllOf +# # LoggingGcsAdditional ## Properties diff --git a/docs/Model/LoggingGcsResponse.md b/docs/Model/LoggingGcsResponse.md index 4ec93d43..162877e1 100644 --- a/docs/Model/LoggingGcsResponse.md +++ b/docs/Model/LoggingGcsResponse.md @@ -6,26 +6,26 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **name** | **string** | The name for the real-time logging configuration. | [optional] **placement** | **string** | Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. | [optional] [one of: 'none', 'waf_debug', 'null'] -**format_version** | **int** | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. | [optional] [one of: 1, 2] **response_condition** | **string** | The name of an existing condition in the configured endpoint, or leave blank to always execute. | [optional] **format** | **string** | A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). | [optional] [defaults to '%h %l %u %t "%r" %>s %b'] +**format_version** | **string** | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. | [optional] [one of: '1', '2'] [defaults to '2'] **message_type** | **string** | How the message should be formatted. | [optional] [one of: 'classic', 'loggly', 'logplex', 'blank'] [defaults to 'classic'] **timestamp_format** | **string** | A timestamp format | [optional] [readonly] -**period** | **int** | How frequently log files are finalized so they can be available for reading (in seconds). | [optional] [defaults to 3600] -**gzip_level** | **int** | The level of gzip encoding when sending logs (default `0`, no compression). Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. | [optional] [defaults to 0] **compression_codec** | **string** | The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. | [optional] [one of: 'zstd', 'snappy', 'gzip'] +**period** | **string** | How frequently log files are finalized so they can be available for reading (in seconds). | [optional] [defaults to '3600'] +**gzip_level** | **string** | The level of gzip encoding when sending logs (default `0`, no compression). Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. | [optional] [defaults to '0'] **user** | **string** | Your Google Cloud Platform service account email address. The `client_email` field in your service account authentication JSON. Not required if `account_name` is specified. | [optional] **secret_key** | **string** | Your Google Cloud Platform account secret key. The `private_key` field in your service account authentication JSON. Not required if `account_name` is specified. | [optional] **account_name** | **string** | The name of the Google Cloud Platform service account associated with the target log collection service. Not required if `user` and `secret_key` are provided. | [optional] -**bucket_name** | **string** | The name of the GCS bucket. | [optional] -**path** | **string** | | [optional] [defaults to '/'] -**public_key** | **string** | A PGP public key that Fastly will use to encrypt your log files before writing them to disk. | [optional] [defaults to 'null'] -**project_id** | **string** | Your Google Cloud Platform project ID. Required | [optional] **created_at** | **\DateTime** | Date and time in ISO 8601 format. | [optional] [readonly] **deleted_at** | **\DateTime** | Date and time in ISO 8601 format. | [optional] [readonly] **updated_at** | **\DateTime** | Date and time in ISO 8601 format. | [optional] [readonly] **service_id** | **string** | | [optional] [readonly] -**version** | **int** | | [optional] [readonly] +**version** | **string** | | [optional] [readonly] +**bucket_name** | **string** | The name of the GCS bucket. | [optional] +**path** | **string** | | [optional] [defaults to '/'] +**public_key** | **string** | A PGP public key that Fastly will use to encrypt your log files before writing them to disk. | [optional] [defaults to 'null'] +**project_id** | **string** | Your Google Cloud Platform project ID. Required | [optional] [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/docs/Model/LoggingGenericCommon.md b/docs/Model/LoggingGenericCommon.md index 6ca8051a..e11a2561 100644 --- a/docs/Model/LoggingGenericCommon.md +++ b/docs/Model/LoggingGenericCommon.md @@ -6,8 +6,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **message_type** | **string** | How the message should be formatted. | [optional] [one of: 'classic', 'loggly', 'logplex', 'blank'] [defaults to 'classic'] **timestamp_format** | **string** | A timestamp format | [optional] [readonly] -**period** | **int** | How frequently log files are finalized so they can be available for reading (in seconds). | [optional] [defaults to 3600] -**gzip_level** | **int** | The level of gzip encoding when sending logs (default `0`, no compression). Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. | [optional] [defaults to 0] **compression_codec** | **string** | The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. | [optional] [one of: 'zstd', 'snappy', 'gzip'] diff --git a/docs/Model/LoggingGenericCommonResponse.md b/docs/Model/LoggingGenericCommonResponse.md new file mode 100644 index 00000000..bf98f378 --- /dev/null +++ b/docs/Model/LoggingGenericCommonResponse.md @@ -0,0 +1,14 @@ +# # LoggingGenericCommonResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**message_type** | **string** | How the message should be formatted. | [optional] [one of: 'classic', 'loggly', 'logplex', 'blank'] [defaults to 'classic'] +**timestamp_format** | **string** | A timestamp format | [optional] [readonly] +**compression_codec** | **string** | The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. | [optional] [one of: 'zstd', 'snappy', 'gzip'] +**period** | **string** | How frequently log files are finalized so they can be available for reading (in seconds). | [optional] [defaults to '3600'] +**gzip_level** | **string** | The level of gzip encoding when sending logs (default `0`, no compression). Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. | [optional] [defaults to '0'] + + +[[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/docs/Model/LoggingGenericCommonResponseAllOf.md b/docs/Model/LoggingGenericCommonResponseAllOf.md new file mode 100644 index 00000000..567874b1 --- /dev/null +++ b/docs/Model/LoggingGenericCommonResponseAllOf.md @@ -0,0 +1,12 @@ +# # LoggingGenericCommonResponseAllOf + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**message_type** | **string** | How the message should be formatted. | [optional] [one of: 'classic', 'loggly', 'logplex', 'blank'] [defaults to 'classic'] +**timestamp_format** | **string** | A timestamp format | [optional] [readonly] +**compression_codec** | **string** | The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. | [optional] [one of: 'zstd', 'snappy', 'gzip'] + + +[[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/docs/Model/LoggingGenericCommonResponseAllOf1.md b/docs/Model/LoggingGenericCommonResponseAllOf1.md new file mode 100644 index 00000000..25c35f1f --- /dev/null +++ b/docs/Model/LoggingGenericCommonResponseAllOf1.md @@ -0,0 +1,11 @@ +# # LoggingGenericCommonResponseAllOf1 + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**period** | **string** | How frequently log files are finalized so they can be available for reading (in seconds). | [optional] [defaults to '3600'] +**gzip_level** | **string** | The level of gzip encoding when sending logs (default `0`, no compression). Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. | [optional] [defaults to '0'] + + +[[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/docs/Model/LoggingGooglePubsub.md b/docs/Model/LoggingGooglePubsub.md deleted file mode 100644 index f973203f..00000000 --- a/docs/Model/LoggingGooglePubsub.md +++ /dev/null @@ -1,19 +0,0 @@ -# # LoggingGooglePubsub - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **string** | The name for the real-time logging configuration. | [optional] -**placement** | **string** | Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. | [optional] [one of: 'none', 'waf_debug', 'null'] -**format_version** | **int** | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. | [optional] [one of: 1, 2] -**response_condition** | **string** | The name of an existing condition in the configured endpoint, or leave blank to always execute. | [optional] -**format** | **string** | A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). | [optional] [defaults to '%h %l %u %t "%r" %>s %b'] -**user** | **string** | Your Google Cloud Platform service account email address. The `client_email` field in your service account authentication JSON. Not required if `account_name` is specified. | [optional] -**secret_key** | **string** | Your Google Cloud Platform account secret key. The `private_key` field in your service account authentication JSON. Not required if `account_name` is specified. | [optional] -**account_name** | **string** | The name of the Google Cloud Platform service account associated with the target log collection service. Not required if `user` and `secret_key` are provided. | [optional] -**topic** | **string** | The Google Cloud Pub/Sub topic to which logs will be published. Required. | [optional] -**project_id** | **string** | Your Google Cloud Platform project ID. Required | [optional] - - -[[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/docs/Model/LoggingGooglePubsubAllOf.md b/docs/Model/LoggingGooglePubsubAdditional.md similarity index 94% rename from docs/Model/LoggingGooglePubsubAllOf.md rename to docs/Model/LoggingGooglePubsubAdditional.md index 3406dbaf..c2f0d89a 100644 --- a/docs/Model/LoggingGooglePubsubAllOf.md +++ b/docs/Model/LoggingGooglePubsubAdditional.md @@ -1,4 +1,4 @@ -# # LoggingGooglePubsubAllOf +# # LoggingGooglePubsubAdditional ## Properties diff --git a/docs/Model/LoggingGooglePubsubResponse.md b/docs/Model/LoggingGooglePubsubResponse.md index 91a00115..3e8df75e 100644 --- a/docs/Model/LoggingGooglePubsubResponse.md +++ b/docs/Model/LoggingGooglePubsubResponse.md @@ -6,9 +6,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **name** | **string** | The name for the real-time logging configuration. | [optional] **placement** | **string** | Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. | [optional] [one of: 'none', 'waf_debug', 'null'] -**format_version** | **int** | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. | [optional] [one of: 1, 2] **response_condition** | **string** | The name of an existing condition in the configured endpoint, or leave blank to always execute. | [optional] **format** | **string** | A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). | [optional] [defaults to '%h %l %u %t "%r" %>s %b'] +**format_version** | **string** | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. | [optional] [one of: '1', '2'] [defaults to '2'] **user** | **string** | Your Google Cloud Platform service account email address. The `client_email` field in your service account authentication JSON. Not required if `account_name` is specified. | [optional] **secret_key** | **string** | Your Google Cloud Platform account secret key. The `private_key` field in your service account authentication JSON. Not required if `account_name` is specified. | [optional] **account_name** | **string** | The name of the Google Cloud Platform service account associated with the target log collection service. Not required if `user` and `secret_key` are provided. | [optional] @@ -18,7 +18,7 @@ Name | Type | Description | Notes **deleted_at** | **\DateTime** | Date and time in ISO 8601 format. | [optional] [readonly] **updated_at** | **\DateTime** | Date and time in ISO 8601 format. | [optional] [readonly] **service_id** | **string** | | [optional] [readonly] -**version** | **int** | | [optional] [readonly] +**version** | **string** | | [optional] [readonly] [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/docs/Model/LoggingHeroku.md b/docs/Model/LoggingHeroku.md deleted file mode 100644 index 7b766585..00000000 --- a/docs/Model/LoggingHeroku.md +++ /dev/null @@ -1,16 +0,0 @@ -# # LoggingHeroku - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **string** | The name for the real-time logging configuration. | [optional] -**placement** | **string** | Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. | [optional] [one of: 'none', 'waf_debug', 'null'] -**format_version** | **int** | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. | [optional] [one of: 1, 2] -**response_condition** | **string** | The name of an existing condition in the configured endpoint, or leave blank to always execute. | [optional] -**format** | **string** | A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). | [optional] [defaults to '%h %l %u %t "%r" %>s %b'] -**token** | **string** | The token to use for authentication ([https://devcenter.heroku.com/articles/add-on-partner-log-integration](https://devcenter.heroku.com/articles/add-on-partner-log-integration)). | [optional] -**url** | **string** | The URL to stream logs to. | [optional] - - -[[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/docs/Model/LoggingHerokuAllOf.md b/docs/Model/LoggingHerokuAdditional.md similarity index 94% rename from docs/Model/LoggingHerokuAllOf.md rename to docs/Model/LoggingHerokuAdditional.md index b22033fd..9951b250 100644 --- a/docs/Model/LoggingHerokuAllOf.md +++ b/docs/Model/LoggingHerokuAdditional.md @@ -1,4 +1,4 @@ -# # LoggingHerokuAllOf +# # LoggingHerokuAdditional ## Properties diff --git a/docs/Model/LoggingHerokuResponse.md b/docs/Model/LoggingHerokuResponse.md index 9f8ba5c8..e353e053 100644 --- a/docs/Model/LoggingHerokuResponse.md +++ b/docs/Model/LoggingHerokuResponse.md @@ -6,16 +6,16 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **name** | **string** | The name for the real-time logging configuration. | [optional] **placement** | **string** | Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. | [optional] [one of: 'none', 'waf_debug', 'null'] -**format_version** | **int** | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. | [optional] [one of: 1, 2] **response_condition** | **string** | The name of an existing condition in the configured endpoint, or leave blank to always execute. | [optional] **format** | **string** | A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). | [optional] [defaults to '%h %l %u %t "%r" %>s %b'] +**format_version** | **string** | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. | [optional] [one of: '1', '2'] [defaults to '2'] **token** | **string** | The token to use for authentication ([https://devcenter.heroku.com/articles/add-on-partner-log-integration](https://devcenter.heroku.com/articles/add-on-partner-log-integration)). | [optional] **url** | **string** | The URL to stream logs to. | [optional] **created_at** | **\DateTime** | Date and time in ISO 8601 format. | [optional] [readonly] **deleted_at** | **\DateTime** | Date and time in ISO 8601 format. | [optional] [readonly] **updated_at** | **\DateTime** | Date and time in ISO 8601 format. | [optional] [readonly] **service_id** | **string** | | [optional] [readonly] -**version** | **int** | | [optional] [readonly] +**version** | **string** | | [optional] [readonly] [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/docs/Model/LoggingHoneycomb.md b/docs/Model/LoggingHoneycomb.md deleted file mode 100644 index b959e69b..00000000 --- a/docs/Model/LoggingHoneycomb.md +++ /dev/null @@ -1,16 +0,0 @@ -# # LoggingHoneycomb - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **string** | The name for the real-time logging configuration. | [optional] -**placement** | **string** | Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. | [optional] [one of: 'none', 'waf_debug', 'null'] -**format_version** | **int** | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. | [optional] [one of: 1, 2] -**response_condition** | **string** | The name of an existing condition in the configured endpoint, or leave blank to always execute. | [optional] -**format** | **string** | A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). Must produce valid JSON that Honeycomb can ingest. | [optional] -**dataset** | **string** | The Honeycomb Dataset you want to log to. | [optional] -**token** | **string** | The Write Key from the Account page of your Honeycomb account. | [optional] - - -[[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/docs/Model/LoggingHoneycombAllOf.md b/docs/Model/LoggingHoneycombAdditional.md similarity index 94% rename from docs/Model/LoggingHoneycombAllOf.md rename to docs/Model/LoggingHoneycombAdditional.md index f879d2dd..c4042c02 100644 --- a/docs/Model/LoggingHoneycombAllOf.md +++ b/docs/Model/LoggingHoneycombAdditional.md @@ -1,4 +1,4 @@ -# # LoggingHoneycombAllOf +# # LoggingHoneycombAdditional ## Properties diff --git a/docs/Model/LoggingHoneycombResponse.md b/docs/Model/LoggingHoneycombResponse.md index b365d1af..2d7d0ab7 100644 --- a/docs/Model/LoggingHoneycombResponse.md +++ b/docs/Model/LoggingHoneycombResponse.md @@ -6,16 +6,16 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **name** | **string** | The name for the real-time logging configuration. | [optional] **placement** | **string** | Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. | [optional] [one of: 'none', 'waf_debug', 'null'] -**format_version** | **int** | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. | [optional] [one of: 1, 2] **response_condition** | **string** | The name of an existing condition in the configured endpoint, or leave blank to always execute. | [optional] **format** | **string** | A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). Must produce valid JSON that Honeycomb can ingest. | [optional] +**format_version** | **string** | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. | [optional] [one of: '1', '2'] [defaults to '2'] **dataset** | **string** | The Honeycomb Dataset you want to log to. | [optional] **token** | **string** | The Write Key from the Account page of your Honeycomb account. | [optional] **created_at** | **\DateTime** | Date and time in ISO 8601 format. | [optional] [readonly] **deleted_at** | **\DateTime** | Date and time in ISO 8601 format. | [optional] [readonly] **updated_at** | **\DateTime** | Date and time in ISO 8601 format. | [optional] [readonly] **service_id** | **string** | | [optional] [readonly] -**version** | **int** | | [optional] [readonly] +**version** | **string** | | [optional] [readonly] [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/docs/Model/LoggingHttps.md b/docs/Model/LoggingHttps.md deleted file mode 100644 index ca025620..00000000 --- a/docs/Model/LoggingHttps.md +++ /dev/null @@ -1,27 +0,0 @@ -# # LoggingHttps - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **string** | The name for the real-time logging configuration. | [optional] -**placement** | **string** | Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. | [optional] [one of: 'none', 'waf_debug', 'null'] -**format_version** | **int** | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. | [optional] [one of: 1, 2] -**response_condition** | **string** | The name of an existing condition in the configured endpoint, or leave blank to always execute. | [optional] -**format** | **string** | A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). | [optional] [defaults to '%h %l %u %t "%r" %>s %b'] -**tls_ca_cert** | **string** | A secure certificate to authenticate a server with. Must be in PEM format. | [optional] [defaults to 'null'] -**tls_client_cert** | **string** | The client certificate used to make authenticated requests. Must be in PEM format. | [optional] [defaults to 'null'] -**tls_client_key** | **string** | The client private key used to make authenticated requests. Must be in PEM format. | [optional] [defaults to 'null'] -**tls_hostname** | **string** | The hostname to verify the server's certificate. This should be one of the Subject Alternative Name (SAN) fields for the certificate. Common Names (CN) are not supported. | [optional] [defaults to 'null'] -**request_max_entries** | **int** | The maximum number of logs sent in one request. Defaults `0` (10k). | [optional] [defaults to 0] -**request_max_bytes** | **int** | The maximum number of bytes sent in one request. Defaults `0` (100MB). | [optional] [defaults to 0] -**url** | **string** | The URL to send logs to. Must use HTTPS. Required. | [optional] -**content_type** | **string** | Content type of the header sent with the request. | [optional] [defaults to 'null'] -**header_name** | **string** | Name of the custom header sent with the request. | [optional] [defaults to 'null'] -**message_type** | [**\Fastly\Model\LoggingMessageType**](LoggingMessageType.md) | | [optional] -**header_value** | **string** | Value of the custom header sent with the request. | [optional] [defaults to 'null'] -**method** | **string** | HTTP method used for request. | [optional] [one of: 'POST', 'PUT'] [defaults to 'POST'] -**json_format** | **string** | Enforces valid JSON formatting for log entries. | [optional] [one of: '0', '1', '2'] - - -[[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/docs/Model/LoggingHttpsAllOf.md b/docs/Model/LoggingHttpsAdditional.md similarity index 98% rename from docs/Model/LoggingHttpsAllOf.md rename to docs/Model/LoggingHttpsAdditional.md index 30950273..d0fc3223 100644 --- a/docs/Model/LoggingHttpsAllOf.md +++ b/docs/Model/LoggingHttpsAdditional.md @@ -1,4 +1,4 @@ -# # LoggingHttpsAllOf +# # LoggingHttpsAdditional ## Properties diff --git a/docs/Model/LoggingHttpsResponse.md b/docs/Model/LoggingHttpsResponse.md index c98595c4..95834439 100644 --- a/docs/Model/LoggingHttpsResponse.md +++ b/docs/Model/LoggingHttpsResponse.md @@ -6,9 +6,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **name** | **string** | The name for the real-time logging configuration. | [optional] **placement** | **string** | Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. | [optional] [one of: 'none', 'waf_debug', 'null'] -**format_version** | **int** | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. | [optional] [one of: 1, 2] **response_condition** | **string** | The name of an existing condition in the configured endpoint, or leave blank to always execute. | [optional] **format** | **string** | A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). | [optional] [defaults to '%h %l %u %t "%r" %>s %b'] +**format_version** | **string** | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. | [optional] [one of: '1', '2'] [defaults to '2'] **tls_ca_cert** | **string** | A secure certificate to authenticate a server with. Must be in PEM format. | [optional] [defaults to 'null'] **tls_client_cert** | **string** | The client certificate used to make authenticated requests. Must be in PEM format. | [optional] [defaults to 'null'] **tls_client_key** | **string** | The client private key used to make authenticated requests. Must be in PEM format. | [optional] [defaults to 'null'] @@ -26,7 +26,7 @@ Name | Type | Description | Notes **deleted_at** | **\DateTime** | Date and time in ISO 8601 format. | [optional] [readonly] **updated_at** | **\DateTime** | Date and time in ISO 8601 format. | [optional] [readonly] **service_id** | **string** | | [optional] [readonly] -**version** | **int** | | [optional] [readonly] +**version** | **string** | | [optional] [readonly] [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/docs/Model/LoggingKafkaAllOf.md b/docs/Model/LoggingKafkaAdditional.md similarity index 98% rename from docs/Model/LoggingKafkaAllOf.md rename to docs/Model/LoggingKafkaAdditional.md index 69858af7..03d7462b 100644 --- a/docs/Model/LoggingKafkaAllOf.md +++ b/docs/Model/LoggingKafkaAdditional.md @@ -1,4 +1,4 @@ -# # LoggingKafkaAllOf +# # LoggingKafkaAdditional ## Properties diff --git a/docs/Model/LoggingKafkaResponse.md b/docs/Model/LoggingKafkaResponse.md index a79a2f74..386f6668 100644 --- a/docs/Model/LoggingKafkaResponse.md +++ b/docs/Model/LoggingKafkaResponse.md @@ -6,13 +6,18 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **name** | **string** | The name for the real-time logging configuration. | [optional] **placement** | **string** | Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. | [optional] [one of: 'none', 'waf_debug', 'null'] -**format_version** | **int** | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. | [optional] [one of: 1, 2] **response_condition** | **string** | The name of an existing condition in the configured endpoint, or leave blank to always execute. | [optional] **format** | **string** | A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). | [optional] [defaults to '%h %l %u %t "%r" %>s %b'] +**format_version** | **string** | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. | [optional] [one of: '1', '2'] [defaults to '2'] **tls_ca_cert** | **string** | A secure certificate to authenticate a server with. Must be in PEM format. | [optional] [defaults to 'null'] **tls_client_cert** | **string** | The client certificate used to make authenticated requests. Must be in PEM format. | [optional] [defaults to 'null'] **tls_client_key** | **string** | The client private key used to make authenticated requests. Must be in PEM format. | [optional] [defaults to 'null'] **tls_hostname** | **string** | The hostname to verify the server's certificate. This should be one of the Subject Alternative Name (SAN) fields for the certificate. Common Names (CN) are not supported. | [optional] [defaults to 'null'] +**created_at** | **\DateTime** | Date and time in ISO 8601 format. | [optional] [readonly] +**deleted_at** | **\DateTime** | Date and time in ISO 8601 format. | [optional] [readonly] +**updated_at** | **\DateTime** | Date and time in ISO 8601 format. | [optional] [readonly] +**service_id** | **string** | | [optional] [readonly] +**version** | **string** | | [optional] [readonly] **topic** | **string** | The Kafka topic to send logs to. Required. | [optional] **brokers** | **string** | A comma-separated list of IP addresses or hostnames of Kafka brokers. Required. | [optional] **compression_codec** | **string** | The codec used for compression of your logs. | [optional] [one of: 'gzip', 'snappy', 'lz4', 'null'] @@ -23,11 +28,6 @@ Name | Type | Description | Notes **user** | **string** | SASL user. | [optional] **password** | **string** | SASL password. | [optional] **use_tls** | [**\Fastly\Model\LoggingUseTls**](LoggingUseTls.md) | | [optional] -**created_at** | **\DateTime** | Date and time in ISO 8601 format. | [optional] [readonly] -**deleted_at** | **\DateTime** | Date and time in ISO 8601 format. | [optional] [readonly] -**updated_at** | **\DateTime** | Date and time in ISO 8601 format. | [optional] [readonly] -**service_id** | **string** | | [optional] [readonly] -**version** | **int** | | [optional] [readonly] [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/docs/Model/LoggingKafka.md b/docs/Model/LoggingKafkaResponsePost.md similarity index 88% rename from docs/Model/LoggingKafka.md rename to docs/Model/LoggingKafkaResponsePost.md index 77cee69a..16e4a563 100644 --- a/docs/Model/LoggingKafka.md +++ b/docs/Model/LoggingKafkaResponsePost.md @@ -1,4 +1,4 @@ -# # LoggingKafka +# # LoggingKafkaResponsePost ## Properties @@ -6,13 +6,18 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **name** | **string** | The name for the real-time logging configuration. | [optional] **placement** | **string** | Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. | [optional] [one of: 'none', 'waf_debug', 'null'] -**format_version** | **int** | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. | [optional] [one of: 1, 2] **response_condition** | **string** | The name of an existing condition in the configured endpoint, or leave blank to always execute. | [optional] **format** | **string** | A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). | [optional] [defaults to '%h %l %u %t "%r" %>s %b'] +**format_version** | **int** | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. | [optional] [one of: 1, 2] **tls_ca_cert** | **string** | A secure certificate to authenticate a server with. Must be in PEM format. | [optional] [defaults to 'null'] **tls_client_cert** | **string** | The client certificate used to make authenticated requests. Must be in PEM format. | [optional] [defaults to 'null'] **tls_client_key** | **string** | The client private key used to make authenticated requests. Must be in PEM format. | [optional] [defaults to 'null'] **tls_hostname** | **string** | The hostname to verify the server's certificate. This should be one of the Subject Alternative Name (SAN) fields for the certificate. Common Names (CN) are not supported. | [optional] [defaults to 'null'] +**created_at** | **\DateTime** | Date and time in ISO 8601 format. | [optional] [readonly] +**deleted_at** | **\DateTime** | Date and time in ISO 8601 format. | [optional] [readonly] +**updated_at** | **\DateTime** | Date and time in ISO 8601 format. | [optional] [readonly] +**service_id** | **string** | | [optional] [readonly] +**version** | **string** | | [optional] [readonly] **topic** | **string** | The Kafka topic to send logs to. Required. | [optional] **brokers** | **string** | A comma-separated list of IP addresses or hostnames of Kafka brokers. Required. | [optional] **compression_codec** | **string** | The codec used for compression of your logs. | [optional] [one of: 'gzip', 'snappy', 'lz4', 'null'] diff --git a/docs/Model/LoggingKinesis.md b/docs/Model/LoggingKinesisAdditional.md similarity index 94% rename from docs/Model/LoggingKinesis.md rename to docs/Model/LoggingKinesisAdditional.md index bf149941..f3870493 100644 --- a/docs/Model/LoggingKinesis.md +++ b/docs/Model/LoggingKinesisAdditional.md @@ -1,4 +1,4 @@ -# # LoggingKinesis +# # LoggingKinesisAdditional ## Properties @@ -6,7 +6,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **name** | **string** | The name for the real-time logging configuration. | [optional] **placement** | [**\Fastly\Model\LoggingPlacement**](LoggingPlacement.md) | | [optional] -**format_version** | [**\Fastly\Model\LoggingFormatVersion**](LoggingFormatVersion.md) | | [optional] **format** | **string** | A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). Must produce valid JSON that Kinesis can ingest. | [optional] [defaults to '{"timestamp":"%{begin:%Y-%m-%dT%H:%M:%S}t","time_elapsed":"%{time.elapsed.usec}V","is_tls":"%{if(req.is_ssl, \"true\", \"false\")}V","client_ip":"%{req.http.Fastly-Client-IP}V","geo_city":"%{client.geo.city}V","geo_country_code":"%{client.geo.country_code}V","request":"%{req.request}V","host":"%{req.http.Fastly-Orig-Host}V","url":"%{json.escape(req.url)}V","request_referer":"%{json.escape(req.http.Referer)}V","request_user_agent":"%{json.escape(req.http.User-Agent)}V","request_accept_language":"%{json.escape(req.http.Accept-Language)}V","request_accept_charset":"%{json.escape(req.http.Accept-Charset)}V","cache_status":"%{regsub(fastly_info.state, \"^(HIT-(SYNTH)|(HITPASS|HIT|MISS|PASS|ERROR|PIPE)).*\", \"\\2\\3\") }V"}'] **topic** | **string** | The Amazon Kinesis stream to send logs to. Required. | [optional] **region** | [**\Fastly\Model\AwsRegion**](AwsRegion.md) | | [optional] diff --git a/docs/Model/LoggingKinesisResponse.md b/docs/Model/LoggingKinesisResponse.md index 7a347217..fe0805a7 100644 --- a/docs/Model/LoggingKinesisResponse.md +++ b/docs/Model/LoggingKinesisResponse.md @@ -6,18 +6,18 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **name** | **string** | The name for the real-time logging configuration. | [optional] **placement** | [**\Fastly\Model\LoggingPlacement**](LoggingPlacement.md) | | [optional] -**format_version** | [**\Fastly\Model\LoggingFormatVersion**](LoggingFormatVersion.md) | | [optional] **format** | **string** | A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). Must produce valid JSON that Kinesis can ingest. | [optional] [defaults to '{"timestamp":"%{begin:%Y-%m-%dT%H:%M:%S}t","time_elapsed":"%{time.elapsed.usec}V","is_tls":"%{if(req.is_ssl, \"true\", \"false\")}V","client_ip":"%{req.http.Fastly-Client-IP}V","geo_city":"%{client.geo.city}V","geo_country_code":"%{client.geo.country_code}V","request":"%{req.request}V","host":"%{req.http.Fastly-Orig-Host}V","url":"%{json.escape(req.url)}V","request_referer":"%{json.escape(req.http.Referer)}V","request_user_agent":"%{json.escape(req.http.User-Agent)}V","request_accept_language":"%{json.escape(req.http.Accept-Language)}V","request_accept_charset":"%{json.escape(req.http.Accept-Charset)}V","cache_status":"%{regsub(fastly_info.state, \"^(HIT-(SYNTH)|(HITPASS|HIT|MISS|PASS|ERROR|PIPE)).*\", \"\\2\\3\") }V"}'] **topic** | **string** | The Amazon Kinesis stream to send logs to. Required. | [optional] **region** | [**\Fastly\Model\AwsRegion**](AwsRegion.md) | | [optional] **secret_key** | **string** | The secret key associated with the target Amazon Kinesis stream. Not required if `iam_role` is specified. | [optional] **access_key** | **string** | The access key associated with the target Amazon Kinesis stream. Not required if `iam_role` is specified. | [optional] **iam_role** | **string** | The ARN for an IAM role granting Fastly access to the target Amazon Kinesis stream. Not required if `access_key` and `secret_key` are provided. | [optional] +**format_version** | **string** | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. | [optional] [one of: '1', '2'] [defaults to '2'] **created_at** | **\DateTime** | Date and time in ISO 8601 format. | [optional] [readonly] **deleted_at** | **\DateTime** | Date and time in ISO 8601 format. | [optional] [readonly] **updated_at** | **\DateTime** | Date and time in ISO 8601 format. | [optional] [readonly] **service_id** | **string** | | [optional] [readonly] -**version** | **int** | | [optional] [readonly] +**version** | **string** | | [optional] [readonly] [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/docs/Model/LoggingLogentries.md b/docs/Model/LoggingLogentries.md deleted file mode 100644 index 30de3d82..00000000 --- a/docs/Model/LoggingLogentries.md +++ /dev/null @@ -1,18 +0,0 @@ -# # LoggingLogentries - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **string** | The name for the real-time logging configuration. | [optional] -**placement** | **string** | Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. | [optional] [one of: 'none', 'waf_debug', 'null'] -**format_version** | **int** | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. | [optional] [one of: 1, 2] -**response_condition** | **string** | The name of an existing condition in the configured endpoint, or leave blank to always execute. | [optional] -**format** | **string** | A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). | [optional] [defaults to '%h %l %u %t "%r" %>s %b'] -**port** | **int** | The port number. | [optional] [defaults to 20000] -**token** | **string** | Use token based authentication ([https://logentries.com/doc/input-token/](https://logentries.com/doc/input-token/)). | [optional] -**use_tls** | [**\Fastly\Model\LoggingUseTls**](LoggingUseTls.md) | | [optional] -**region** | **string** | The region to which to stream logs. | [optional] [one of: 'US', 'US-2', 'US-3', 'EU', 'CA', 'AU', 'AP'] - - -[[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/docs/Model/LoggingLogentriesAllOf.md b/docs/Model/LoggingLogentriesAdditional.md similarity index 95% rename from docs/Model/LoggingLogentriesAllOf.md rename to docs/Model/LoggingLogentriesAdditional.md index 0acdf583..1ab44390 100644 --- a/docs/Model/LoggingLogentriesAllOf.md +++ b/docs/Model/LoggingLogentriesAdditional.md @@ -1,4 +1,4 @@ -# # LoggingLogentriesAllOf +# # LoggingLogentriesAdditional ## Properties diff --git a/docs/Model/LoggingLogentriesResponse.md b/docs/Model/LoggingLogentriesResponse.md index 4b0a0ff3..2e9bbf41 100644 --- a/docs/Model/LoggingLogentriesResponse.md +++ b/docs/Model/LoggingLogentriesResponse.md @@ -6,9 +6,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **name** | **string** | The name for the real-time logging configuration. | [optional] **placement** | **string** | Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. | [optional] [one of: 'none', 'waf_debug', 'null'] -**format_version** | **int** | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. | [optional] [one of: 1, 2] **response_condition** | **string** | The name of an existing condition in the configured endpoint, or leave blank to always execute. | [optional] **format** | **string** | A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). | [optional] [defaults to '%h %l %u %t "%r" %>s %b'] +**format_version** | **string** | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. | [optional] [one of: '1', '2'] [defaults to '2'] **port** | **int** | The port number. | [optional] [defaults to 20000] **token** | **string** | Use token based authentication ([https://logentries.com/doc/input-token/](https://logentries.com/doc/input-token/)). | [optional] **use_tls** | [**\Fastly\Model\LoggingUseTls**](LoggingUseTls.md) | | [optional] @@ -17,7 +17,7 @@ Name | Type | Description | Notes **deleted_at** | **\DateTime** | Date and time in ISO 8601 format. | [optional] [readonly] **updated_at** | **\DateTime** | Date and time in ISO 8601 format. | [optional] [readonly] **service_id** | **string** | | [optional] [readonly] -**version** | **int** | | [optional] [readonly] +**version** | **string** | | [optional] [readonly] [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/docs/Model/LoggingLoggly.md b/docs/Model/LoggingLoggly.md deleted file mode 100644 index a4c88159..00000000 --- a/docs/Model/LoggingLoggly.md +++ /dev/null @@ -1,15 +0,0 @@ -# # LoggingLoggly - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **string** | The name for the real-time logging configuration. | [optional] -**placement** | **string** | Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. | [optional] [one of: 'none', 'waf_debug', 'null'] -**format_version** | **int** | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. | [optional] [one of: 1, 2] -**response_condition** | **string** | The name of an existing condition in the configured endpoint, or leave blank to always execute. | [optional] -**format** | **string** | A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). | [optional] [defaults to '%h %l %u %t "%r" %>s %b'] -**token** | **string** | The token to use for authentication ([https://www.loggly.com/docs/customer-token-authentication-token/](https://www.loggly.com/docs/customer-token-authentication-token/)). | [optional] - - -[[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/docs/Model/LoggingLogglyAllOf.md b/docs/Model/LoggingLogglyAdditional.md similarity index 93% rename from docs/Model/LoggingLogglyAllOf.md rename to docs/Model/LoggingLogglyAdditional.md index c78ecd10..a426ae03 100644 --- a/docs/Model/LoggingLogglyAllOf.md +++ b/docs/Model/LoggingLogglyAdditional.md @@ -1,4 +1,4 @@ -# # LoggingLogglyAllOf +# # LoggingLogglyAdditional ## Properties diff --git a/docs/Model/LoggingLogglyResponse.md b/docs/Model/LoggingLogglyResponse.md index 3ef0f818..e43f5047 100644 --- a/docs/Model/LoggingLogglyResponse.md +++ b/docs/Model/LoggingLogglyResponse.md @@ -6,15 +6,15 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **name** | **string** | The name for the real-time logging configuration. | [optional] **placement** | **string** | Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. | [optional] [one of: 'none', 'waf_debug', 'null'] -**format_version** | **int** | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. | [optional] [one of: 1, 2] **response_condition** | **string** | The name of an existing condition in the configured endpoint, or leave blank to always execute. | [optional] **format** | **string** | A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). | [optional] [defaults to '%h %l %u %t "%r" %>s %b'] +**format_version** | **string** | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. | [optional] [one of: '1', '2'] [defaults to '2'] **token** | **string** | The token to use for authentication ([https://www.loggly.com/docs/customer-token-authentication-token/](https://www.loggly.com/docs/customer-token-authentication-token/)). | [optional] **created_at** | **\DateTime** | Date and time in ISO 8601 format. | [optional] [readonly] **deleted_at** | **\DateTime** | Date and time in ISO 8601 format. | [optional] [readonly] **updated_at** | **\DateTime** | Date and time in ISO 8601 format. | [optional] [readonly] **service_id** | **string** | | [optional] [readonly] -**version** | **int** | | [optional] [readonly] +**version** | **string** | | [optional] [readonly] [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/docs/Model/LoggingLogshuttle.md b/docs/Model/LoggingLogshuttle.md deleted file mode 100644 index 293476a0..00000000 --- a/docs/Model/LoggingLogshuttle.md +++ /dev/null @@ -1,16 +0,0 @@ -# # LoggingLogshuttle - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **string** | The name for the real-time logging configuration. | [optional] -**placement** | **string** | Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. | [optional] [one of: 'none', 'waf_debug', 'null'] -**format_version** | **int** | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. | [optional] [one of: 1, 2] -**response_condition** | **string** | The name of an existing condition in the configured endpoint, or leave blank to always execute. | [optional] -**format** | **string** | A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). | [optional] [defaults to '%h %l %u %t "%r" %>s %b'] -**token** | **string** | The data authentication token associated with this endpoint. | [optional] -**url** | **string** | The URL to stream logs to. | [optional] - - -[[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/docs/Model/LoggingLogshuttleAllOf.md b/docs/Model/LoggingLogshuttleAdditional.md similarity index 91% rename from docs/Model/LoggingLogshuttleAllOf.md rename to docs/Model/LoggingLogshuttleAdditional.md index adac7ac3..398c8556 100644 --- a/docs/Model/LoggingLogshuttleAllOf.md +++ b/docs/Model/LoggingLogshuttleAdditional.md @@ -1,4 +1,4 @@ -# # LoggingLogshuttleAllOf +# # LoggingLogshuttleAdditional ## Properties diff --git a/docs/Model/LoggingLogshuttleResponse.md b/docs/Model/LoggingLogshuttleResponse.md index d044660d..38362e0b 100644 --- a/docs/Model/LoggingLogshuttleResponse.md +++ b/docs/Model/LoggingLogshuttleResponse.md @@ -6,16 +6,16 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **name** | **string** | The name for the real-time logging configuration. | [optional] **placement** | **string** | Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. | [optional] [one of: 'none', 'waf_debug', 'null'] -**format_version** | **int** | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. | [optional] [one of: 1, 2] **response_condition** | **string** | The name of an existing condition in the configured endpoint, or leave blank to always execute. | [optional] **format** | **string** | A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). | [optional] [defaults to '%h %l %u %t "%r" %>s %b'] +**format_version** | **string** | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. | [optional] [one of: '1', '2'] [defaults to '2'] **token** | **string** | The data authentication token associated with this endpoint. | [optional] **url** | **string** | The URL to stream logs to. | [optional] **created_at** | **\DateTime** | Date and time in ISO 8601 format. | [optional] [readonly] **deleted_at** | **\DateTime** | Date and time in ISO 8601 format. | [optional] [readonly] **updated_at** | **\DateTime** | Date and time in ISO 8601 format. | [optional] [readonly] **service_id** | **string** | | [optional] [readonly] -**version** | **int** | | [optional] [readonly] +**version** | **string** | | [optional] [readonly] [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/docs/Model/LoggingNewrelic.md b/docs/Model/LoggingNewrelic.md deleted file mode 100644 index 1b4103c7..00000000 --- a/docs/Model/LoggingNewrelic.md +++ /dev/null @@ -1,16 +0,0 @@ -# # LoggingNewrelic - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **string** | The name for the real-time logging configuration. | [optional] -**placement** | **string** | Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. | [optional] [one of: 'none', 'waf_debug', 'null'] -**format_version** | **int** | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. | [optional] [one of: 1, 2] -**response_condition** | **string** | The name of an existing condition in the configured endpoint, or leave blank to always execute. | [optional] -**format** | **string** | A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). Must produce valid JSON that New Relic Logs can ingest. | [optional] [defaults to '{"timestamp":"%{begin:%Y-%m-%dT%H:%M:%S}t","time_elapsed":"%{time.elapsed.usec}V","is_tls":"%{if(req.is_ssl, \"true\", \"false\")}V","client_ip":"%{req.http.Fastly-Client-IP}V","geo_city":"%{client.geo.city}V","geo_country_code":"%{client.geo.country_code}V","request":"%{req.request}V","host":"%{req.http.Fastly-Orig-Host}V","url":"%{json.escape(req.url)}V","request_referer":"%{json.escape(req.http.Referer)}V","request_user_agent":"%{json.escape(req.http.User-Agent)}V","request_accept_language":"%{json.escape(req.http.Accept-Language)}V","request_accept_charset":"%{json.escape(req.http.Accept-Charset)}V","cache_status":"%{regsub(fastly_info.state, \"^(HIT-(SYNTH)|(HITPASS|HIT|MISS|PASS|ERROR|PIPE)).*\", \"\\2\\3\") }V"}'] -**token** | **string** | The Insert API key from the Account page of your New Relic account. Required. | [optional] -**region** | **string** | The region to which to stream logs. | [optional] [one of: 'US', 'EU'] [defaults to 'US'] - - -[[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/docs/Model/LoggingNewrelicAllOf.md b/docs/Model/LoggingNewrelicAdditional.md similarity index 97% rename from docs/Model/LoggingNewrelicAllOf.md rename to docs/Model/LoggingNewrelicAdditional.md index dab78ea5..9e045283 100644 --- a/docs/Model/LoggingNewrelicAllOf.md +++ b/docs/Model/LoggingNewrelicAdditional.md @@ -1,4 +1,4 @@ -# # LoggingNewrelicAllOf +# # LoggingNewrelicAdditional ## Properties diff --git a/docs/Model/LoggingNewrelicResponse.md b/docs/Model/LoggingNewrelicResponse.md index 7aa4e886..28deb0a9 100644 --- a/docs/Model/LoggingNewrelicResponse.md +++ b/docs/Model/LoggingNewrelicResponse.md @@ -6,16 +6,16 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **name** | **string** | The name for the real-time logging configuration. | [optional] **placement** | **string** | Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. | [optional] [one of: 'none', 'waf_debug', 'null'] -**format_version** | **int** | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. | [optional] [one of: 1, 2] **response_condition** | **string** | The name of an existing condition in the configured endpoint, or leave blank to always execute. | [optional] **format** | **string** | A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). Must produce valid JSON that New Relic Logs can ingest. | [optional] [defaults to '{"timestamp":"%{begin:%Y-%m-%dT%H:%M:%S}t","time_elapsed":"%{time.elapsed.usec}V","is_tls":"%{if(req.is_ssl, \"true\", \"false\")}V","client_ip":"%{req.http.Fastly-Client-IP}V","geo_city":"%{client.geo.city}V","geo_country_code":"%{client.geo.country_code}V","request":"%{req.request}V","host":"%{req.http.Fastly-Orig-Host}V","url":"%{json.escape(req.url)}V","request_referer":"%{json.escape(req.http.Referer)}V","request_user_agent":"%{json.escape(req.http.User-Agent)}V","request_accept_language":"%{json.escape(req.http.Accept-Language)}V","request_accept_charset":"%{json.escape(req.http.Accept-Charset)}V","cache_status":"%{regsub(fastly_info.state, \"^(HIT-(SYNTH)|(HITPASS|HIT|MISS|PASS|ERROR|PIPE)).*\", \"\\2\\3\") }V"}'] +**format_version** | **string** | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. | [optional] [one of: '1', '2'] [defaults to '2'] **token** | **string** | The Insert API key from the Account page of your New Relic account. Required. | [optional] **region** | **string** | The region to which to stream logs. | [optional] [one of: 'US', 'EU'] [defaults to 'US'] **created_at** | **\DateTime** | Date and time in ISO 8601 format. | [optional] [readonly] **deleted_at** | **\DateTime** | Date and time in ISO 8601 format. | [optional] [readonly] **updated_at** | **\DateTime** | Date and time in ISO 8601 format. | [optional] [readonly] **service_id** | **string** | | [optional] [readonly] -**version** | **int** | | [optional] [readonly] +**version** | **string** | | [optional] [readonly] [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/docs/Model/LoggingOpenstack.md b/docs/Model/LoggingOpenstack.md deleted file mode 100644 index 44a47d6d..00000000 --- a/docs/Model/LoggingOpenstack.md +++ /dev/null @@ -1,25 +0,0 @@ -# # LoggingOpenstack - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **string** | The name for the real-time logging configuration. | [optional] -**placement** | **string** | Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. | [optional] [one of: 'none', 'waf_debug', 'null'] -**format_version** | **int** | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. | [optional] [one of: 1, 2] -**response_condition** | **string** | The name of an existing condition in the configured endpoint, or leave blank to always execute. | [optional] -**format** | **string** | A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). | [optional] [defaults to '%h %l %u %t "%r" %>s %b'] -**message_type** | **string** | How the message should be formatted. | [optional] [one of: 'classic', 'loggly', 'logplex', 'blank'] [defaults to 'classic'] -**timestamp_format** | **string** | A timestamp format | [optional] [readonly] -**period** | **int** | How frequently log files are finalized so they can be available for reading (in seconds). | [optional] [defaults to 3600] -**gzip_level** | **int** | The level of gzip encoding when sending logs (default `0`, no compression). Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. | [optional] [defaults to 0] -**compression_codec** | **string** | The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. | [optional] [one of: 'zstd', 'snappy', 'gzip'] -**access_key** | **string** | Your OpenStack account access key. | [optional] -**bucket_name** | **string** | The name of your OpenStack container. | [optional] -**path** | **string** | The path to upload logs to. | [optional] [defaults to 'null'] -**public_key** | **string** | A PGP public key that Fastly will use to encrypt your log files before writing them to disk. | [optional] [defaults to 'null'] -**url** | **string** | Your OpenStack auth url. | [optional] -**user** | **string** | The username for your OpenStack account. | [optional] - - -[[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/docs/Model/LoggingOpenstackAllOf.md b/docs/Model/LoggingOpenstackAdditional.md similarity index 96% rename from docs/Model/LoggingOpenstackAllOf.md rename to docs/Model/LoggingOpenstackAdditional.md index aa178e24..e4b48de2 100644 --- a/docs/Model/LoggingOpenstackAllOf.md +++ b/docs/Model/LoggingOpenstackAdditional.md @@ -1,4 +1,4 @@ -# # LoggingOpenstackAllOf +# # LoggingOpenstackAdditional ## Properties diff --git a/docs/Model/LoggingOpenstackResponse.md b/docs/Model/LoggingOpenstackResponse.md index c236b633..e1986e6a 100644 --- a/docs/Model/LoggingOpenstackResponse.md +++ b/docs/Model/LoggingOpenstackResponse.md @@ -6,25 +6,25 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **name** | **string** | The name for the real-time logging configuration. | [optional] **placement** | **string** | Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. | [optional] [one of: 'none', 'waf_debug', 'null'] -**format_version** | **int** | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. | [optional] [one of: 1, 2] **response_condition** | **string** | The name of an existing condition in the configured endpoint, or leave blank to always execute. | [optional] **format** | **string** | A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). | [optional] [defaults to '%h %l %u %t "%r" %>s %b'] +**format_version** | **string** | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. | [optional] [one of: '1', '2'] [defaults to '2'] **message_type** | **string** | How the message should be formatted. | [optional] [one of: 'classic', 'loggly', 'logplex', 'blank'] [defaults to 'classic'] **timestamp_format** | **string** | A timestamp format | [optional] [readonly] -**period** | **int** | How frequently log files are finalized so they can be available for reading (in seconds). | [optional] [defaults to 3600] -**gzip_level** | **int** | The level of gzip encoding when sending logs (default `0`, no compression). Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. | [optional] [defaults to 0] **compression_codec** | **string** | The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. | [optional] [one of: 'zstd', 'snappy', 'gzip'] +**period** | **string** | How frequently log files are finalized so they can be available for reading (in seconds). | [optional] [defaults to '3600'] +**gzip_level** | **string** | The level of gzip encoding when sending logs (default `0`, no compression). Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. | [optional] [defaults to '0'] +**created_at** | **\DateTime** | Date and time in ISO 8601 format. | [optional] [readonly] +**deleted_at** | **\DateTime** | Date and time in ISO 8601 format. | [optional] [readonly] +**updated_at** | **\DateTime** | Date and time in ISO 8601 format. | [optional] [readonly] +**service_id** | **string** | | [optional] [readonly] +**version** | **string** | | [optional] [readonly] **access_key** | **string** | Your OpenStack account access key. | [optional] **bucket_name** | **string** | The name of your OpenStack container. | [optional] **path** | **string** | The path to upload logs to. | [optional] [defaults to 'null'] **public_key** | **string** | A PGP public key that Fastly will use to encrypt your log files before writing them to disk. | [optional] [defaults to 'null'] **url** | **string** | Your OpenStack auth url. | [optional] **user** | **string** | The username for your OpenStack account. | [optional] -**created_at** | **\DateTime** | Date and time in ISO 8601 format. | [optional] [readonly] -**deleted_at** | **\DateTime** | Date and time in ISO 8601 format. | [optional] [readonly] -**updated_at** | **\DateTime** | Date and time in ISO 8601 format. | [optional] [readonly] -**service_id** | **string** | | [optional] [readonly] -**version** | **int** | | [optional] [readonly] [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/docs/Model/LoggingPapertrailResponse.md b/docs/Model/LoggingPapertrailResponse.md index 305a581e..d1bdb305 100644 --- a/docs/Model/LoggingPapertrailResponse.md +++ b/docs/Model/LoggingPapertrailResponse.md @@ -6,16 +6,16 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **name** | **string** | The name for the real-time logging configuration. | [optional] **placement** | **string** | Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. | [optional] [one of: 'none', 'waf_debug', 'null'] -**format_version** | **int** | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. | [optional] [one of: 1, 2] **response_condition** | **string** | The name of an existing condition in the configured endpoint, or leave blank to always execute. | [optional] **format** | **string** | A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). | [optional] [defaults to '%h %l %u %t "%r" %>s %b'] +**format_version** | **string** | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. | [optional] [one of: '1', '2'] [defaults to '2'] **address** | **string** | A hostname or IPv4 address. | [optional] **port** | **int** | The port number. | [optional] [defaults to 514] **created_at** | **\DateTime** | Date and time in ISO 8601 format. | [optional] [readonly] **deleted_at** | **\DateTime** | Date and time in ISO 8601 format. | [optional] [readonly] **updated_at** | **\DateTime** | Date and time in ISO 8601 format. | [optional] [readonly] **service_id** | **string** | | [optional] [readonly] -**version** | **int** | | [optional] [readonly] +**version** | **string** | | [optional] [readonly] [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/docs/Model/LoggingS3.md b/docs/Model/LoggingS3.md deleted file mode 100644 index 4373f8f7..00000000 --- a/docs/Model/LoggingS3.md +++ /dev/null @@ -1,30 +0,0 @@ -# # LoggingS3 - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **string** | The name for the real-time logging configuration. | [optional] -**placement** | **string** | Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. | [optional] [one of: 'none', 'waf_debug', 'null'] -**format_version** | **int** | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. | [optional] [one of: 1, 2] -**response_condition** | **string** | The name of an existing condition in the configured endpoint, or leave blank to always execute. | [optional] -**format** | **string** | A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). | [optional] [defaults to '%h %l %u %t "%r" %>s %b'] -**message_type** | **string** | How the message should be formatted. | [optional] [one of: 'classic', 'loggly', 'logplex', 'blank'] [defaults to 'classic'] -**timestamp_format** | **string** | A timestamp format | [optional] [readonly] -**period** | **int** | How frequently log files are finalized so they can be available for reading (in seconds). | [optional] [defaults to 3600] -**gzip_level** | **int** | The level of gzip encoding when sending logs (default `0`, no compression). Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. | [optional] [defaults to 0] -**compression_codec** | **string** | The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. | [optional] [one of: 'zstd', 'snappy', 'gzip'] -**access_key** | **string** | The access key for your S3 account. Not required if `iam_role` is provided. | [optional] -**acl** | **string** | The access control list (ACL) specific request header. See the AWS documentation for [Access Control List (ACL) Specific Request Headers](https://docs.aws.amazon.com/AmazonS3/latest/API/mpUploadInitiate.html#initiate-mpu-acl-specific-request-headers) for more information. | [optional] -**bucket_name** | **string** | The bucket name for S3 account. | [optional] -**domain** | **string** | The domain of the Amazon S3 endpoint. | [optional] -**iam_role** | **string** | The Amazon Resource Name (ARN) for the IAM role granting Fastly access to S3. Not required if `access_key` and `secret_key` are provided. | [optional] -**path** | **string** | The path to upload logs to. | [optional] [defaults to 'null'] -**public_key** | **string** | A PGP public key that Fastly will use to encrypt your log files before writing them to disk. | [optional] [defaults to 'null'] -**redundancy** | **string** | The S3 redundancy level. | [optional] [defaults to 'null'] -**secret_key** | **string** | The secret key for your S3 account. Not required if `iam_role` is provided. | [optional] -**server_side_encryption_kms_key_id** | **string** | Optional server-side KMS Key Id. Must be set if `server_side_encryption` is set to `aws:kms` or `AES256`. | [optional] [defaults to 'null'] -**server_side_encryption** | **string** | Set this to `AES256` or `aws:kms` to enable S3 Server Side Encryption. | [optional] [defaults to 'null'] - - -[[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/docs/Model/LoggingS3AllOf.md b/docs/Model/LoggingS3Additional.md similarity index 98% rename from docs/Model/LoggingS3AllOf.md rename to docs/Model/LoggingS3Additional.md index 8182c8e7..b79845ed 100644 --- a/docs/Model/LoggingS3AllOf.md +++ b/docs/Model/LoggingS3Additional.md @@ -1,4 +1,4 @@ -# # LoggingS3AllOf +# # LoggingS3Additional ## Properties diff --git a/docs/Model/LoggingS3Response.md b/docs/Model/LoggingS3Response.md index cd6da759..b3d1954e 100644 --- a/docs/Model/LoggingS3Response.md +++ b/docs/Model/LoggingS3Response.md @@ -6,14 +6,19 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **name** | **string** | The name for the real-time logging configuration. | [optional] **placement** | **string** | Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. | [optional] [one of: 'none', 'waf_debug', 'null'] -**format_version** | **int** | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. | [optional] [one of: 1, 2] **response_condition** | **string** | The name of an existing condition in the configured endpoint, or leave blank to always execute. | [optional] **format** | **string** | A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). | [optional] [defaults to '%h %l %u %t "%r" %>s %b'] +**format_version** | **string** | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. | [optional] [one of: '1', '2'] [defaults to '2'] **message_type** | **string** | How the message should be formatted. | [optional] [one of: 'classic', 'loggly', 'logplex', 'blank'] [defaults to 'classic'] **timestamp_format** | **string** | A timestamp format | [optional] [readonly] -**period** | **int** | How frequently log files are finalized so they can be available for reading (in seconds). | [optional] [defaults to 3600] -**gzip_level** | **int** | The level of gzip encoding when sending logs (default `0`, no compression). Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. | [optional] [defaults to 0] **compression_codec** | **string** | The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. | [optional] [one of: 'zstd', 'snappy', 'gzip'] +**period** | **string** | How frequently log files are finalized so they can be available for reading (in seconds). | [optional] [defaults to '3600'] +**gzip_level** | **string** | The level of gzip encoding when sending logs (default `0`, no compression). Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. | [optional] [defaults to '0'] +**created_at** | **\DateTime** | Date and time in ISO 8601 format. | [optional] [readonly] +**deleted_at** | **\DateTime** | Date and time in ISO 8601 format. | [optional] [readonly] +**updated_at** | **\DateTime** | Date and time in ISO 8601 format. | [optional] [readonly] +**service_id** | **string** | | [optional] [readonly] +**version** | **string** | | [optional] [readonly] **access_key** | **string** | The access key for your S3 account. Not required if `iam_role` is provided. | [optional] **acl** | **string** | The access control list (ACL) specific request header. See the AWS documentation for [Access Control List (ACL) Specific Request Headers](https://docs.aws.amazon.com/AmazonS3/latest/API/mpUploadInitiate.html#initiate-mpu-acl-specific-request-headers) for more information. | [optional] **bucket_name** | **string** | The bucket name for S3 account. | [optional] @@ -25,11 +30,6 @@ Name | Type | Description | Notes **secret_key** | **string** | The secret key for your S3 account. Not required if `iam_role` is provided. | [optional] **server_side_encryption_kms_key_id** | **string** | Optional server-side KMS Key Id. Must be set if `server_side_encryption` is set to `aws:kms` or `AES256`. | [optional] [defaults to 'null'] **server_side_encryption** | **string** | Set this to `AES256` or `aws:kms` to enable S3 Server Side Encryption. | [optional] [defaults to 'null'] -**created_at** | **\DateTime** | Date and time in ISO 8601 format. | [optional] [readonly] -**deleted_at** | **\DateTime** | Date and time in ISO 8601 format. | [optional] [readonly] -**updated_at** | **\DateTime** | Date and time in ISO 8601 format. | [optional] [readonly] -**service_id** | **string** | | [optional] [readonly] -**version** | **int** | | [optional] [readonly] [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/docs/Model/LoggingScalyr.md b/docs/Model/LoggingScalyr.md deleted file mode 100644 index a45a4796..00000000 --- a/docs/Model/LoggingScalyr.md +++ /dev/null @@ -1,17 +0,0 @@ -# # LoggingScalyr - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **string** | The name for the real-time logging configuration. | [optional] -**placement** | **string** | Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. | [optional] [one of: 'none', 'waf_debug', 'null'] -**format_version** | **int** | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. | [optional] [one of: 1, 2] -**response_condition** | **string** | The name of an existing condition in the configured endpoint, or leave blank to always execute. | [optional] -**format** | **string** | A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). | [optional] [defaults to '%h %l %u %t "%r" %>s %b'] -**region** | **string** | The region that log data will be sent to. | [optional] [one of: 'US', 'EU'] [defaults to 'US'] -**token** | **string** | The token to use for authentication ([https://www.scalyr.com/keys](https://www.scalyr.com/keys)). | [optional] -**project_id** | **string** | The name of the logfile within Scalyr. | [optional] [defaults to 'logplex'] - - -[[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/docs/Model/LoggingScalyrAllOf.md b/docs/Model/LoggingScalyrAdditional.md similarity index 95% rename from docs/Model/LoggingScalyrAllOf.md rename to docs/Model/LoggingScalyrAdditional.md index d73c6e8f..7afd1719 100644 --- a/docs/Model/LoggingScalyrAllOf.md +++ b/docs/Model/LoggingScalyrAdditional.md @@ -1,4 +1,4 @@ -# # LoggingScalyrAllOf +# # LoggingScalyrAdditional ## Properties diff --git a/docs/Model/LoggingScalyrResponse.md b/docs/Model/LoggingScalyrResponse.md index 09679ea4..954be8ef 100644 --- a/docs/Model/LoggingScalyrResponse.md +++ b/docs/Model/LoggingScalyrResponse.md @@ -6,9 +6,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **name** | **string** | The name for the real-time logging configuration. | [optional] **placement** | **string** | Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. | [optional] [one of: 'none', 'waf_debug', 'null'] -**format_version** | **int** | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. | [optional] [one of: 1, 2] **response_condition** | **string** | The name of an existing condition in the configured endpoint, or leave blank to always execute. | [optional] **format** | **string** | A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). | [optional] [defaults to '%h %l %u %t "%r" %>s %b'] +**format_version** | **string** | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. | [optional] [one of: '1', '2'] [defaults to '2'] **region** | **string** | The region that log data will be sent to. | [optional] [one of: 'US', 'EU'] [defaults to 'US'] **token** | **string** | The token to use for authentication ([https://www.scalyr.com/keys](https://www.scalyr.com/keys)). | [optional] **project_id** | **string** | The name of the logfile within Scalyr. | [optional] [defaults to 'logplex'] @@ -16,7 +16,7 @@ Name | Type | Description | Notes **deleted_at** | **\DateTime** | Date and time in ISO 8601 format. | [optional] [readonly] **updated_at** | **\DateTime** | Date and time in ISO 8601 format. | [optional] [readonly] **service_id** | **string** | | [optional] [readonly] -**version** | **int** | | [optional] [readonly] +**version** | **string** | | [optional] [readonly] [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/docs/Model/LoggingSftp.md b/docs/Model/LoggingSftp.md deleted file mode 100644 index 059768d6..00000000 --- a/docs/Model/LoggingSftp.md +++ /dev/null @@ -1,27 +0,0 @@ -# # LoggingSftp - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **string** | The name for the real-time logging configuration. | [optional] -**placement** | **string** | Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. | [optional] [one of: 'none', 'waf_debug', 'null'] -**format_version** | **int** | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. | [optional] [one of: 1, 2] -**response_condition** | **string** | The name of an existing condition in the configured endpoint, or leave blank to always execute. | [optional] -**format** | **string** | A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). | [optional] [defaults to '%h %l %u %t "%r" %>s %b'] -**message_type** | **string** | How the message should be formatted. | [optional] [one of: 'classic', 'loggly', 'logplex', 'blank'] [defaults to 'classic'] -**timestamp_format** | **string** | A timestamp format | [optional] [readonly] -**period** | **int** | How frequently log files are finalized so they can be available for reading (in seconds). | [optional] [defaults to 3600] -**gzip_level** | **int** | The level of gzip encoding when sending logs (default `0`, no compression). Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. | [optional] [defaults to 0] -**compression_codec** | **string** | The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. | [optional] [one of: 'zstd', 'snappy', 'gzip'] -**address** | **string** | A hostname or IPv4 address. | [optional] -**port** | **int** | The port number. | [optional] [defaults to 22] -**password** | **string** | The password for the server. If both `password` and `secret_key` are passed, `secret_key` will be used in preference. | [optional] -**path** | **string** | The path to upload logs to. | [optional] [defaults to 'null'] -**public_key** | **string** | A PGP public key that Fastly will use to encrypt your log files before writing them to disk. | [optional] [defaults to 'null'] -**secret_key** | **string** | The SSH private key for the server. If both `password` and `secret_key` are passed, `secret_key` will be used in preference. | [optional] [defaults to 'null'] -**ssh_known_hosts** | **string** | A list of host keys for all hosts we can connect to over SFTP. | [optional] -**user** | **string** | The username for the server. | [optional] - - -[[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/docs/Model/LoggingSftpAllOf.md b/docs/Model/LoggingSftpAdditional.md similarity index 91% rename from docs/Model/LoggingSftpAllOf.md rename to docs/Model/LoggingSftpAdditional.md index afe2068b..02ffc381 100644 --- a/docs/Model/LoggingSftpAllOf.md +++ b/docs/Model/LoggingSftpAdditional.md @@ -1,4 +1,4 @@ -# # LoggingSftpAllOf +# # LoggingSftpAdditional ## Properties @@ -6,7 +6,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **password** | **string** | The password for the server. If both `password` and `secret_key` are passed, `secret_key` will be used in preference. | [optional] **path** | **string** | The path to upload logs to. | [optional] [defaults to 'null'] -**port** | **int** | The port number. | [optional] [defaults to 22] **public_key** | **string** | A PGP public key that Fastly will use to encrypt your log files before writing them to disk. | [optional] [defaults to 'null'] **secret_key** | **string** | The SSH private key for the server. If both `password` and `secret_key` are passed, `secret_key` will be used in preference. | [optional] [defaults to 'null'] **ssh_known_hosts** | **string** | A list of host keys for all hosts we can connect to over SFTP. | [optional] diff --git a/docs/Model/LoggingSftpResponse.md b/docs/Model/LoggingSftpResponse.md index 39e1e0e8..f48c11af 100644 --- a/docs/Model/LoggingSftpResponse.md +++ b/docs/Model/LoggingSftpResponse.md @@ -6,27 +6,27 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **name** | **string** | The name for the real-time logging configuration. | [optional] **placement** | **string** | Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. | [optional] [one of: 'none', 'waf_debug', 'null'] -**format_version** | **int** | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. | [optional] [one of: 1, 2] **response_condition** | **string** | The name of an existing condition in the configured endpoint, or leave blank to always execute. | [optional] **format** | **string** | A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). | [optional] [defaults to '%h %l %u %t "%r" %>s %b'] +**format_version** | **string** | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. | [optional] [one of: '1', '2'] [defaults to '2'] **message_type** | **string** | How the message should be formatted. | [optional] [one of: 'classic', 'loggly', 'logplex', 'blank'] [defaults to 'classic'] **timestamp_format** | **string** | A timestamp format | [optional] [readonly] -**period** | **int** | How frequently log files are finalized so they can be available for reading (in seconds). | [optional] [defaults to 3600] -**gzip_level** | **int** | The level of gzip encoding when sending logs (default `0`, no compression). Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. | [optional] [defaults to 0] **compression_codec** | **string** | The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. | [optional] [one of: 'zstd', 'snappy', 'gzip'] -**address** | **string** | A hostname or IPv4 address. | [optional] -**port** | **int** | The port number. | [optional] [defaults to 22] +**created_at** | **\DateTime** | Date and time in ISO 8601 format. | [optional] [readonly] +**deleted_at** | **\DateTime** | Date and time in ISO 8601 format. | [optional] [readonly] +**updated_at** | **\DateTime** | Date and time in ISO 8601 format. | [optional] [readonly] +**service_id** | **string** | | [optional] [readonly] +**version** | **string** | | [optional] [readonly] **password** | **string** | The password for the server. If both `password` and `secret_key` are passed, `secret_key` will be used in preference. | [optional] **path** | **string** | The path to upload logs to. | [optional] [defaults to 'null'] **public_key** | **string** | A PGP public key that Fastly will use to encrypt your log files before writing them to disk. | [optional] [defaults to 'null'] **secret_key** | **string** | The SSH private key for the server. If both `password` and `secret_key` are passed, `secret_key` will be used in preference. | [optional] [defaults to 'null'] **ssh_known_hosts** | **string** | A list of host keys for all hosts we can connect to over SFTP. | [optional] **user** | **string** | The username for the server. | [optional] -**created_at** | **\DateTime** | Date and time in ISO 8601 format. | [optional] [readonly] -**deleted_at** | **\DateTime** | Date and time in ISO 8601 format. | [optional] [readonly] -**updated_at** | **\DateTime** | Date and time in ISO 8601 format. | [optional] [readonly] -**service_id** | **string** | | [optional] [readonly] -**version** | **int** | | [optional] [readonly] +**address** | **string** | A hostname or IPv4 address. | [optional] +**port** | **string** | The port number. | [optional] [defaults to '22'] +**period** | **string** | How frequently log files are finalized so they can be available for reading (in seconds). | [optional] [defaults to '3600'] +**gzip_level** | **int** | The level of gzip encoding when sending logs (default `0`, no compression). Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. | [optional] [defaults to 0] [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/docs/Model/LoggingSftpResponseAllOf.md b/docs/Model/LoggingSftpResponseAllOf.md new file mode 100644 index 00000000..ac6deb65 --- /dev/null +++ b/docs/Model/LoggingSftpResponseAllOf.md @@ -0,0 +1,13 @@ +# # LoggingSftpResponseAllOf + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**address** | **string** | A hostname or IPv4 address. | [optional] +**port** | **string** | The port number. | [optional] [defaults to '22'] +**period** | **string** | How frequently log files are finalized so they can be available for reading (in seconds). | [optional] [defaults to '3600'] +**gzip_level** | **int** | The level of gzip encoding when sending logs (default `0`, no compression). Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. | [optional] [defaults to 0] + + +[[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/docs/Model/LoggingSplunk.md b/docs/Model/LoggingSplunk.md deleted file mode 100644 index 248cc806..00000000 --- a/docs/Model/LoggingSplunk.md +++ /dev/null @@ -1,23 +0,0 @@ -# # LoggingSplunk - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **string** | The name for the real-time logging configuration. | [optional] -**placement** | **string** | Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. | [optional] [one of: 'none', 'waf_debug', 'null'] -**format_version** | **int** | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. | [optional] [one of: 1, 2] -**response_condition** | **string** | The name of an existing condition in the configured endpoint, or leave blank to always execute. | [optional] -**format** | **string** | A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). | [optional] [defaults to '%h %l %u %t "%r" %>s %b'] -**tls_ca_cert** | **string** | A secure certificate to authenticate a server with. Must be in PEM format. | [optional] [defaults to 'null'] -**tls_client_cert** | **string** | The client certificate used to make authenticated requests. Must be in PEM format. | [optional] [defaults to 'null'] -**tls_client_key** | **string** | The client private key used to make authenticated requests. Must be in PEM format. | [optional] [defaults to 'null'] -**tls_hostname** | **string** | The hostname to verify the server's certificate. This should be one of the Subject Alternative Name (SAN) fields for the certificate. Common Names (CN) are not supported. | [optional] [defaults to 'null'] -**request_max_entries** | **int** | The maximum number of logs sent in one request. Defaults `0` for unbounded. | [optional] [defaults to 0] -**request_max_bytes** | **int** | The maximum number of bytes sent in one request. Defaults `0` for unbounded. | [optional] [defaults to 0] -**url** | **string** | The URL to post logs to. | [optional] -**token** | **string** | A Splunk token for use in posting logs over HTTP to your collector. | [optional] -**use_tls** | [**\Fastly\Model\LoggingUseTls**](LoggingUseTls.md) | | [optional] - - -[[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/docs/Model/LoggingSplunkAllOf.md b/docs/Model/LoggingSplunkAdditional.md similarity index 94% rename from docs/Model/LoggingSplunkAllOf.md rename to docs/Model/LoggingSplunkAdditional.md index 7518464a..2782c61e 100644 --- a/docs/Model/LoggingSplunkAllOf.md +++ b/docs/Model/LoggingSplunkAdditional.md @@ -1,4 +1,4 @@ -# # LoggingSplunkAllOf +# # LoggingSplunkAdditional ## Properties diff --git a/docs/Model/LoggingSplunkResponse.md b/docs/Model/LoggingSplunkResponse.md index fee84a06..7b80ee54 100644 --- a/docs/Model/LoggingSplunkResponse.md +++ b/docs/Model/LoggingSplunkResponse.md @@ -6,9 +6,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **name** | **string** | The name for the real-time logging configuration. | [optional] **placement** | **string** | Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. | [optional] [one of: 'none', 'waf_debug', 'null'] -**format_version** | **int** | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. | [optional] [one of: 1, 2] **response_condition** | **string** | The name of an existing condition in the configured endpoint, or leave blank to always execute. | [optional] **format** | **string** | A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). | [optional] [defaults to '%h %l %u %t "%r" %>s %b'] +**format_version** | **string** | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. | [optional] [one of: '1', '2'] [defaults to '2'] **tls_ca_cert** | **string** | A secure certificate to authenticate a server with. Must be in PEM format. | [optional] [defaults to 'null'] **tls_client_cert** | **string** | The client certificate used to make authenticated requests. Must be in PEM format. | [optional] [defaults to 'null'] **tls_client_key** | **string** | The client private key used to make authenticated requests. Must be in PEM format. | [optional] [defaults to 'null'] @@ -22,7 +22,7 @@ Name | Type | Description | Notes **deleted_at** | **\DateTime** | Date and time in ISO 8601 format. | [optional] [readonly] **updated_at** | **\DateTime** | Date and time in ISO 8601 format. | [optional] [readonly] **service_id** | **string** | | [optional] [readonly] -**version** | **int** | | [optional] [readonly] +**version** | **string** | | [optional] [readonly] [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/docs/Model/LoggingSumologicAllOf.md b/docs/Model/LoggingSumologicAdditional.md similarity index 92% rename from docs/Model/LoggingSumologicAllOf.md rename to docs/Model/LoggingSumologicAdditional.md index d97dbfb2..dbbdebcb 100644 --- a/docs/Model/LoggingSumologicAllOf.md +++ b/docs/Model/LoggingSumologicAdditional.md @@ -1,4 +1,4 @@ -# # LoggingSumologicAllOf +# # LoggingSumologicAdditional ## Properties diff --git a/docs/Model/LoggingSumologicResponse.md b/docs/Model/LoggingSumologicResponse.md index 4bea85c4..8337e285 100644 --- a/docs/Model/LoggingSumologicResponse.md +++ b/docs/Model/LoggingSumologicResponse.md @@ -6,16 +6,16 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **name** | **string** | The name for the real-time logging configuration. | [optional] **placement** | **string** | Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. | [optional] [one of: 'none', 'waf_debug', 'null'] -**format_version** | **int** | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. | [optional] [one of: 1, 2] **response_condition** | **string** | The name of an existing condition in the configured endpoint, or leave blank to always execute. | [optional] **format** | **string** | A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). | [optional] [defaults to '%h %l %u %t "%r" %>s %b'] +**format_version** | **string** | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. | [optional] [one of: '1', '2'] [defaults to '2'] **message_type** | [**\Fastly\Model\LoggingMessageType**](LoggingMessageType.md) | | [optional] **url** | **string** | The URL to post logs to. | [optional] **created_at** | **\DateTime** | Date and time in ISO 8601 format. | [optional] [readonly] **deleted_at** | **\DateTime** | Date and time in ISO 8601 format. | [optional] [readonly] **updated_at** | **\DateTime** | Date and time in ISO 8601 format. | [optional] [readonly] **service_id** | **string** | | [optional] [readonly] -**version** | **int** | | [optional] [readonly] +**version** | **string** | | [optional] [readonly] [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/docs/Model/LoggingSyslog.md b/docs/Model/LoggingSyslog.md deleted file mode 100644 index 217262be..00000000 --- a/docs/Model/LoggingSyslog.md +++ /dev/null @@ -1,25 +0,0 @@ -# # LoggingSyslog - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **string** | The name for the real-time logging configuration. | [optional] -**placement** | **string** | Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. | [optional] [one of: 'none', 'waf_debug', 'null'] -**format_version** | **int** | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. | [optional] [one of: 1, 2] -**response_condition** | **string** | The name of an existing condition in the configured endpoint, or leave blank to always execute. | [optional] -**format** | **string** | A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). | [optional] [defaults to '%h %l %u %t "%r" %>s %b'] -**tls_ca_cert** | **string** | A secure certificate to authenticate a server with. Must be in PEM format. | [optional] [defaults to 'null'] -**tls_client_cert** | **string** | The client certificate used to make authenticated requests. Must be in PEM format. | [optional] [defaults to 'null'] -**tls_client_key** | **string** | The client private key used to make authenticated requests. Must be in PEM format. | [optional] [defaults to 'null'] -**tls_hostname** | **string** | The hostname to verify the server's certificate. This should be one of the Subject Alternative Name (SAN) fields for the certificate. Common Names (CN) are not supported. | [optional] [defaults to 'null'] -**address** | **string** | A hostname or IPv4 address. | [optional] -**port** | **int** | The port number. | [optional] [defaults to 514] -**message_type** | [**\Fastly\Model\LoggingMessageType**](LoggingMessageType.md) | | [optional] -**hostname** | **string** | The hostname used for the syslog endpoint. | [optional] -**ipv4** | **string** | The IPv4 address used for the syslog endpoint. | [optional] -**token** | **string** | Whether to prepend each message with a specific token. | [optional] [defaults to 'null'] -**use_tls** | [**\Fastly\Model\LoggingUseTls**](LoggingUseTls.md) | | [optional] - - -[[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/docs/Model/LoggingSyslogAllOf.md b/docs/Model/LoggingSyslogAdditional.md similarity index 95% rename from docs/Model/LoggingSyslogAllOf.md rename to docs/Model/LoggingSyslogAdditional.md index 4d1fe709..78de9e80 100644 --- a/docs/Model/LoggingSyslogAllOf.md +++ b/docs/Model/LoggingSyslogAdditional.md @@ -1,4 +1,4 @@ -# # LoggingSyslogAllOf +# # LoggingSyslogAdditional ## Properties diff --git a/docs/Model/LoggingSyslogResponse.md b/docs/Model/LoggingSyslogResponse.md index 85d5f2ce..89a0f28e 100644 --- a/docs/Model/LoggingSyslogResponse.md +++ b/docs/Model/LoggingSyslogResponse.md @@ -6,9 +6,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **name** | **string** | The name for the real-time logging configuration. | [optional] **placement** | **string** | Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. | [optional] [one of: 'none', 'waf_debug', 'null'] -**format_version** | **int** | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. | [optional] [one of: 1, 2] **response_condition** | **string** | The name of an existing condition in the configured endpoint, or leave blank to always execute. | [optional] **format** | **string** | A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). | [optional] [defaults to '%h %l %u %t "%r" %>s %b'] +**format_version** | **string** | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. | [optional] [one of: '1', '2'] [defaults to '2'] **tls_ca_cert** | **string** | A secure certificate to authenticate a server with. Must be in PEM format. | [optional] [defaults to 'null'] **tls_client_cert** | **string** | The client certificate used to make authenticated requests. Must be in PEM format. | [optional] [defaults to 'null'] **tls_client_key** | **string** | The client private key used to make authenticated requests. Must be in PEM format. | [optional] [defaults to 'null'] @@ -24,7 +24,7 @@ Name | Type | Description | Notes **deleted_at** | **\DateTime** | Date and time in ISO 8601 format. | [optional] [readonly] **updated_at** | **\DateTime** | Date and time in ISO 8601 format. | [optional] [readonly] **service_id** | **string** | | [optional] [readonly] -**version** | **int** | | [optional] [readonly] +**version** | **string** | | [optional] [readonly] [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/docs/Model/PoolAllOf.md b/docs/Model/PoolAdditional.md similarity index 76% rename from docs/Model/PoolAllOf.md rename to docs/Model/PoolAdditional.md index 91aeef70..168152a5 100644 --- a/docs/Model/PoolAllOf.md +++ b/docs/Model/PoolAdditional.md @@ -1,4 +1,4 @@ -# # PoolAllOf +# # PoolAdditional ## Properties @@ -7,13 +7,8 @@ Name | Type | Description | Notes **name** | **string** | Name for the Pool. | [optional] **shield** | **string** | Selected POP to serve as a shield for the servers. Defaults to `null` meaning no origin shielding if not set. Refer to the [POPs API endpoint](/reference/api/utils/pops/) to get a list of available POPs used for shielding. | [optional] [defaults to 'null'] **request_condition** | **string** | Condition which, if met, will select this configuration during a request. Optional. | [optional] -**max_conn_default** | **int** | Maximum number of connections. Optional. | [optional] [defaults to 200] -**connect_timeout** | **int** | How long to wait for a timeout in milliseconds. Optional. | [optional] -**first_byte_timeout** | **int** | How long to wait for the first byte in milliseconds. Optional. | [optional] -**quorum** | **int** | Percentage of capacity (`0-100`) that needs to be operationally available for a pool to be considered up. | [optional] [defaults to 75] **tls_ciphers** | **string** | List of OpenSSL ciphers (see the [openssl.org manpages](https://www.openssl.org/docs/man1.1.1/man1/ciphers.html) for details). Optional. | [optional] **tls_sni_hostname** | **string** | SNI hostname. Optional. | [optional] -**tls_check_cert** | **int** | Be strict on checking TLS certs. Optional. | [optional] **min_tls_version** | **int** | Minimum allowed TLS version on connections to this server. Optional. | [optional] **max_tls_version** | **int** | Maximum allowed TLS version on connections to this server. Optional. | [optional] **healthcheck** | **string** | Name of the healthcheck to use with this pool. Can be empty and could be reused across multiple backend and pools. | [optional] diff --git a/docs/Model/PoolResponse.md b/docs/Model/PoolResponse.md index 0773d3d5..4832686f 100644 --- a/docs/Model/PoolResponse.md +++ b/docs/Model/PoolResponse.md @@ -8,29 +8,30 @@ Name | Type | Description | Notes **tls_client_cert** | **string** | The client certificate used to make authenticated requests. Must be in PEM format. | [optional] [defaults to 'null'] **tls_client_key** | **string** | The client private key used to make authenticated requests. Must be in PEM format. | [optional] [defaults to 'null'] **tls_cert_hostname** | **string** | The hostname used to verify a server's certificate. It can either be the Common Name (CN) or a Subject Alternative Name (SAN). | [optional] [defaults to 'null'] -**use_tls** | **int** | Whether to use TLS. | [optional] [one of: 0, 1] +**use_tls** | **string** | Whether to use TLS. | [optional] [one of: '0', '1'] [defaults to '0'] +**created_at** | **\DateTime** | Date and time in ISO 8601 format. | [optional] [readonly] +**deleted_at** | **\DateTime** | Date and time in ISO 8601 format. | [optional] [readonly] +**updated_at** | **\DateTime** | Date and time in ISO 8601 format. | [optional] [readonly] +**service_id** | **string** | | [optional] [readonly] +**version** | **string** | | [optional] [readonly] **name** | **string** | Name for the Pool. | [optional] **shield** | **string** | Selected POP to serve as a shield for the servers. Defaults to `null` meaning no origin shielding if not set. Refer to the [POPs API endpoint](/reference/api/utils/pops/) to get a list of available POPs used for shielding. | [optional] [defaults to 'null'] **request_condition** | **string** | Condition which, if met, will select this configuration during a request. Optional. | [optional] -**max_conn_default** | **int** | Maximum number of connections. Optional. | [optional] [defaults to 200] -**connect_timeout** | **int** | How long to wait for a timeout in milliseconds. Optional. | [optional] -**first_byte_timeout** | **int** | How long to wait for the first byte in milliseconds. Optional. | [optional] -**quorum** | **int** | Percentage of capacity (`0-100`) that needs to be operationally available for a pool to be considered up. | [optional] [defaults to 75] **tls_ciphers** | **string** | List of OpenSSL ciphers (see the [openssl.org manpages](https://www.openssl.org/docs/man1.1.1/man1/ciphers.html) for details). Optional. | [optional] **tls_sni_hostname** | **string** | SNI hostname. Optional. | [optional] -**tls_check_cert** | **int** | Be strict on checking TLS certs. Optional. | [optional] **min_tls_version** | **int** | Minimum allowed TLS version on connections to this server. Optional. | [optional] **max_tls_version** | **int** | Maximum allowed TLS version on connections to this server. Optional. | [optional] **healthcheck** | **string** | Name of the healthcheck to use with this pool. Can be empty and could be reused across multiple backend and pools. | [optional] **comment** | **string** | A freeform descriptive note. | [optional] **type** | **string** | What type of load balance group to use. | [optional] [one of: 'random', 'hash', 'client'] **override_host** | **string** | The hostname to [override the Host header](https://docs.fastly.com/en/guides/specifying-an-override-host). Defaults to `null` meaning no override of the Host header will occur. This setting can also be added to a Server definition. If the field is set on a Server definition it will override the Pool setting. | [optional] [defaults to 'null'] -**created_at** | **\DateTime** | Date and time in ISO 8601 format. | [optional] [readonly] -**deleted_at** | **\DateTime** | Date and time in ISO 8601 format. | [optional] [readonly] -**updated_at** | **\DateTime** | Date and time in ISO 8601 format. | [optional] [readonly] -**service_id** | **string** | | [optional] [readonly] -**version** | **int** | | [optional] [readonly] +**between_bytes_timeout** | **string** | Maximum duration in milliseconds that Fastly will wait while receiving no data on a download from a backend. If exceeded, the response received so far will be considered complete and the fetch will end. May be set at runtime using `bereq.between_bytes_timeout`. | [optional] +**connect_timeout** | **string** | How long to wait for a timeout in milliseconds. | [optional] +**first_byte_timeout** | **string** | How long to wait for the first byte in milliseconds. | [optional] +**max_conn_default** | **string** | Maximum number of connections. | [optional] [defaults to '200'] +**tls_check_cert** | **string** | Be strict on checking TLS certs. | [optional] **id** | **string** | | [optional] [readonly] +**quorum** | **string** | Percentage of capacity (`0-100`) that needs to be operationally available for a pool to be considered up. | [optional] [defaults to '75'] [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/docs/Model/PoolResponseAllOf.md b/docs/Model/PoolResponseAllOf.md index 21223aae..d5a96d49 100644 --- a/docs/Model/PoolResponseAllOf.md +++ b/docs/Model/PoolResponseAllOf.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**id** | **string** | | [optional] [readonly] +**quorum** | **string** | Percentage of capacity (`0-100`) that needs to be operationally available for a pool to be considered up. | [optional] [defaults to '75'] [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/docs/Model/PoolResponseCommon.md b/docs/Model/PoolResponseCommon.md new file mode 100644 index 00000000..7889f2d4 --- /dev/null +++ b/docs/Model/PoolResponseCommon.md @@ -0,0 +1,15 @@ +# # PoolResponseCommon + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**between_bytes_timeout** | **string** | Maximum duration in milliseconds that Fastly will wait while receiving no data on a download from a backend. If exceeded, the response received so far will be considered complete and the fetch will end. May be set at runtime using `bereq.between_bytes_timeout`. | [optional] +**connect_timeout** | **string** | How long to wait for a timeout in milliseconds. | [optional] +**first_byte_timeout** | **string** | How long to wait for the first byte in milliseconds. | [optional] +**max_conn_default** | **string** | Maximum number of connections. | [optional] [defaults to '200'] +**tls_check_cert** | **string** | Be strict on checking TLS certs. | [optional] +**id** | **string** | | [optional] [readonly] + + +[[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/docs/Model/Pool.md b/docs/Model/PoolResponsePost.md similarity index 68% rename from docs/Model/Pool.md rename to docs/Model/PoolResponsePost.md index c216c183..90ea2c46 100644 --- a/docs/Model/Pool.md +++ b/docs/Model/PoolResponsePost.md @@ -1,4 +1,4 @@ -# # Pool +# # PoolResponsePost ## Properties @@ -8,23 +8,30 @@ Name | Type | Description | Notes **tls_client_cert** | **string** | The client certificate used to make authenticated requests. Must be in PEM format. | [optional] [defaults to 'null'] **tls_client_key** | **string** | The client private key used to make authenticated requests. Must be in PEM format. | [optional] [defaults to 'null'] **tls_cert_hostname** | **string** | The hostname used to verify a server's certificate. It can either be the Common Name (CN) or a Subject Alternative Name (SAN). | [optional] [defaults to 'null'] -**use_tls** | **int** | Whether to use TLS. | [optional] [one of: 0, 1] +**use_tls** | **string** | Whether to use TLS. | [optional] [one of: '0', '1'] [defaults to '0'] +**created_at** | **\DateTime** | Date and time in ISO 8601 format. | [optional] [readonly] +**deleted_at** | **\DateTime** | Date and time in ISO 8601 format. | [optional] [readonly] +**updated_at** | **\DateTime** | Date and time in ISO 8601 format. | [optional] [readonly] +**service_id** | **string** | | [optional] [readonly] +**version** | **string** | | [optional] [readonly] **name** | **string** | Name for the Pool. | [optional] **shield** | **string** | Selected POP to serve as a shield for the servers. Defaults to `null` meaning no origin shielding if not set. Refer to the [POPs API endpoint](/reference/api/utils/pops/) to get a list of available POPs used for shielding. | [optional] [defaults to 'null'] **request_condition** | **string** | Condition which, if met, will select this configuration during a request. Optional. | [optional] -**max_conn_default** | **int** | Maximum number of connections. Optional. | [optional] [defaults to 200] -**connect_timeout** | **int** | How long to wait for a timeout in milliseconds. Optional. | [optional] -**first_byte_timeout** | **int** | How long to wait for the first byte in milliseconds. Optional. | [optional] -**quorum** | **int** | Percentage of capacity (`0-100`) that needs to be operationally available for a pool to be considered up. | [optional] [defaults to 75] **tls_ciphers** | **string** | List of OpenSSL ciphers (see the [openssl.org manpages](https://www.openssl.org/docs/man1.1.1/man1/ciphers.html) for details). Optional. | [optional] **tls_sni_hostname** | **string** | SNI hostname. Optional. | [optional] -**tls_check_cert** | **int** | Be strict on checking TLS certs. Optional. | [optional] **min_tls_version** | **int** | Minimum allowed TLS version on connections to this server. Optional. | [optional] **max_tls_version** | **int** | Maximum allowed TLS version on connections to this server. Optional. | [optional] **healthcheck** | **string** | Name of the healthcheck to use with this pool. Can be empty and could be reused across multiple backend and pools. | [optional] **comment** | **string** | A freeform descriptive note. | [optional] **type** | **string** | What type of load balance group to use. | [optional] [one of: 'random', 'hash', 'client'] **override_host** | **string** | The hostname to [override the Host header](https://docs.fastly.com/en/guides/specifying-an-override-host). Defaults to `null` meaning no override of the Host header will occur. This setting can also be added to a Server definition. If the field is set on a Server definition it will override the Pool setting. | [optional] [defaults to 'null'] +**between_bytes_timeout** | **string** | Maximum duration in milliseconds that Fastly will wait while receiving no data on a download from a backend. If exceeded, the response received so far will be considered complete and the fetch will end. May be set at runtime using `bereq.between_bytes_timeout`. | [optional] +**connect_timeout** | **string** | How long to wait for a timeout in milliseconds. | [optional] +**first_byte_timeout** | **string** | How long to wait for the first byte in milliseconds. | [optional] +**max_conn_default** | **string** | Maximum number of connections. | [optional] [defaults to '200'] +**tls_check_cert** | **string** | Be strict on checking TLS certs. | [optional] +**id** | **string** | | [optional] [readonly] +**quorum** | **int** | Percentage of capacity (`0-100`) that needs to be operationally available for a pool to be considered up. | [optional] [defaults to 75] [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/docs/Model/DomainCheckItem.md b/docs/Model/PoolResponsePostAllOf.md similarity index 50% rename from docs/Model/DomainCheckItem.md rename to docs/Model/PoolResponsePostAllOf.md index 90dc1477..e1b4420b 100644 --- a/docs/Model/DomainCheckItem.md +++ b/docs/Model/PoolResponsePostAllOf.md @@ -1,11 +1,10 @@ -# # DomainCheckItem +# # PoolResponsePostAllOf ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**comment** | **string** | A freeform descriptive note. | [optional] -**name** | **string** | The name of the domain or domains associated with this service. | [optional] +**quorum** | **int** | Percentage of capacity (`0-100`) that needs to be operationally available for a pool to be considered up. | [optional] [defaults to 75] [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/docs/Model/RequestSettings.md b/docs/Model/RequestSettingsAdditional.md similarity index 52% rename from docs/Model/RequestSettings.md rename to docs/Model/RequestSettingsAdditional.md index 6db3ee0d..457f9cbd 100644 --- a/docs/Model/RequestSettings.md +++ b/docs/Model/RequestSettingsAdditional.md @@ -1,20 +1,14 @@ -# # RequestSettings +# # RequestSettingsAdditional ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **action** | **string** | Allows you to terminate request handling and immediately perform an action. | [optional] [one of: 'lookup', 'pass'] -**bypass_busy_wait** | **int** | Disable collapsed forwarding, so you don't wait for other objects to origin. | [optional] **default_host** | **string** | Sets the host header. | [optional] -**force_miss** | **int** | Allows you to force a cache miss for the request. Replaces the item in the cache if the content is cacheable. | [optional] -**force_ssl** | **int** | Forces the request use SSL (redirects a non-SSL to SSL). | [optional] -**geo_headers** | **int** | Injects Fastly-Geo-Country, Fastly-Geo-City, and Fastly-Geo-Region into the request headers. | [optional] **hash_keys** | **string** | Comma separated list of varnish request object fields that should be in the hash key. | [optional] -**max_stale_age** | **int** | How old an object is allowed to be to serve stale-if-error or stale-while-revalidate. | [optional] **name** | **string** | Name for the request settings. | [optional] **request_condition** | **string** | Condition which, if met, will select this configuration during a request. Optional. | [optional] -**timer_support** | **int** | Injects the X-Timer info into the request for viewing origin fetch durations. | [optional] **xff** | **string** | Short for X-Forwarded-For. | [optional] [one of: 'clear', 'leave', 'append', 'append_all', 'overwrite'] diff --git a/docs/Model/RequestSettingsResponse.md b/docs/Model/RequestSettingsResponse.md index 1fdd40cb..8f3bd242 100644 --- a/docs/Model/RequestSettingsResponse.md +++ b/docs/Model/RequestSettingsResponse.md @@ -4,23 +4,23 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**created_at** | **\DateTime** | Date and time in ISO 8601 format. | [optional] [readonly] +**deleted_at** | **\DateTime** | Date and time in ISO 8601 format. | [optional] [readonly] +**updated_at** | **\DateTime** | Date and time in ISO 8601 format. | [optional] [readonly] +**service_id** | **string** | | [optional] [readonly] +**version** | **string** | | [optional] [readonly] **action** | **string** | Allows you to terminate request handling and immediately perform an action. | [optional] [one of: 'lookup', 'pass'] -**bypass_busy_wait** | **int** | Disable collapsed forwarding, so you don't wait for other objects to origin. | [optional] **default_host** | **string** | Sets the host header. | [optional] -**force_miss** | **int** | Allows you to force a cache miss for the request. Replaces the item in the cache if the content is cacheable. | [optional] -**force_ssl** | **int** | Forces the request use SSL (redirects a non-SSL to SSL). | [optional] -**geo_headers** | **int** | Injects Fastly-Geo-Country, Fastly-Geo-City, and Fastly-Geo-Region into the request headers. | [optional] **hash_keys** | **string** | Comma separated list of varnish request object fields that should be in the hash key. | [optional] -**max_stale_age** | **int** | How old an object is allowed to be to serve stale-if-error or stale-while-revalidate. | [optional] **name** | **string** | Name for the request settings. | [optional] **request_condition** | **string** | Condition which, if met, will select this configuration during a request. Optional. | [optional] -**timer_support** | **int** | Injects the X-Timer info into the request for viewing origin fetch durations. | [optional] **xff** | **string** | Short for X-Forwarded-For. | [optional] [one of: 'clear', 'leave', 'append', 'append_all', 'overwrite'] -**service_id** | **string** | | [optional] [readonly] -**version** | **int** | | [optional] [readonly] -**created_at** | **\DateTime** | Date and time in ISO 8601 format. | [optional] [readonly] -**deleted_at** | **\DateTime** | Date and time in ISO 8601 format. | [optional] [readonly] -**updated_at** | **\DateTime** | Date and time in ISO 8601 format. | [optional] [readonly] +**bypass_busy_wait** | **string** | Disable collapsed forwarding, so you don't wait for other objects to origin. | [optional] +**force_miss** | **string** | Allows you to force a cache miss for the request. Replaces the item in the cache if the content is cacheable. | [optional] +**force_ssl** | **string** | Forces the request use SSL (redirects a non-SSL to SSL). | [optional] +**geo_headers** | **string** | Injects Fastly-Geo-Country, Fastly-Geo-City, and Fastly-Geo-Region into the request headers. | [optional] +**max_stale_age** | **string** | How old an object is allowed to be to serve stale-if-error or stale-while-revalidate. | [optional] +**timer_support** | **string** | Injects the X-Timer info into the request for viewing origin fetch durations. | [optional] [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/docs/Model/RequestSettingsResponseAllOf.md b/docs/Model/RequestSettingsResponseAllOf.md new file mode 100644 index 00000000..d681bf64 --- /dev/null +++ b/docs/Model/RequestSettingsResponseAllOf.md @@ -0,0 +1,15 @@ +# # RequestSettingsResponseAllOf + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**bypass_busy_wait** | **string** | Disable collapsed forwarding, so you don't wait for other objects to origin. | [optional] +**force_miss** | **string** | Allows you to force a cache miss for the request. Replaces the item in the cache if the content is cacheable. | [optional] +**force_ssl** | **string** | Forces the request use SSL (redirects a non-SSL to SSL). | [optional] +**geo_headers** | **string** | Injects Fastly-Geo-Country, Fastly-Geo-City, and Fastly-Geo-Region into the request headers. | [optional] +**max_stale_age** | **string** | How old an object is allowed to be to serve stale-if-error or stale-while-revalidate. | [optional] +**timer_support** | **string** | Injects the X-Timer info into the request for viewing origin fetch durations. | [optional] + + +[[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/docs/Model/ResponseObject.md b/docs/Model/ResponseObject.md index 9fd1cb6e..89589bcc 100644 --- a/docs/Model/ResponseObject.md +++ b/docs/Model/ResponseObject.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes **content** | **string** | The content to deliver for the response object, can be empty. | [optional] **content_type** | **string** | The MIME type of the content, can be empty. | [optional] **name** | **string** | Name for the request settings. | [optional] -**status** | **int** | The HTTP status code. | [optional] [defaults to 200] +**status** | **string** | The HTTP status code. | [optional] [defaults to '200'] **response** | **string** | The HTTP response. | [optional] [defaults to 'Ok'] **request_condition** | **string** | Condition which, if met, will select this configuration during a request. Optional. | [optional] diff --git a/docs/Model/ResponseObjectResponse.md b/docs/Model/ResponseObjectResponse.md index 6a0939b0..a783bf63 100644 --- a/docs/Model/ResponseObjectResponse.md +++ b/docs/Model/ResponseObjectResponse.md @@ -8,11 +8,11 @@ Name | Type | Description | Notes **content** | **string** | The content to deliver for the response object, can be empty. | [optional] **content_type** | **string** | The MIME type of the content, can be empty. | [optional] **name** | **string** | Name for the request settings. | [optional] -**status** | **int** | The HTTP status code. | [optional] [defaults to 200] +**status** | **string** | The HTTP status code. | [optional] [defaults to '200'] **response** | **string** | The HTTP response. | [optional] [defaults to 'Ok'] **request_condition** | **string** | Condition which, if met, will select this configuration during a request. Optional. | [optional] **service_id** | **string** | | [optional] [readonly] -**version** | **int** | | [optional] [readonly] +**version** | **string** | | [optional] [readonly] **created_at** | **\DateTime** | Date and time in ISO 8601 format. | [optional] [readonly] **deleted_at** | **\DateTime** | Date and time in ISO 8601 format. | [optional] [readonly] **updated_at** | **\DateTime** | Date and time in ISO 8601 format. | [optional] [readonly] diff --git a/docs/Model/ServiceIdAndVersionString.md b/docs/Model/ServiceIdAndVersionString.md new file mode 100644 index 00000000..cf1a867a --- /dev/null +++ b/docs/Model/ServiceIdAndVersionString.md @@ -0,0 +1,11 @@ +# # ServiceIdAndVersionString + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**service_id** | **string** | | [optional] [readonly] +**version** | **string** | | [optional] [readonly] + + +[[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/docs/Model/TlsCommonResponse.md b/docs/Model/TlsCommonResponse.md new file mode 100644 index 00000000..1a1c3708 --- /dev/null +++ b/docs/Model/TlsCommonResponse.md @@ -0,0 +1,14 @@ +# # TlsCommonResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**tls_ca_cert** | **string** | A secure certificate to authenticate a server with. Must be in PEM format. | [optional] [defaults to 'null'] +**tls_client_cert** | **string** | The client certificate used to make authenticated requests. Must be in PEM format. | [optional] [defaults to 'null'] +**tls_client_key** | **string** | The client private key used to make authenticated requests. Must be in PEM format. | [optional] [defaults to 'null'] +**tls_cert_hostname** | **string** | The hostname used to verify a server's certificate. It can either be the Common Name (CN) or a Subject Alternative Name (SAN). | [optional] [defaults to 'null'] +**use_tls** | **string** | Whether to use TLS. | [optional] [one of: '0', '1'] [defaults to '0'] + + +[[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/docs/Model/TlsCommon.md b/docs/Model/TlsCommonResponseAllOf.md similarity index 90% rename from docs/Model/TlsCommon.md rename to docs/Model/TlsCommonResponseAllOf.md index 2570f8c9..b5a558b2 100644 --- a/docs/Model/TlsCommon.md +++ b/docs/Model/TlsCommonResponseAllOf.md @@ -1,4 +1,4 @@ -# # TlsCommon +# # TlsCommonResponseAllOf ## Properties @@ -8,7 +8,6 @@ Name | Type | Description | Notes **tls_client_cert** | **string** | The client certificate used to make authenticated requests. Must be in PEM format. | [optional] [defaults to 'null'] **tls_client_key** | **string** | The client private key used to make authenticated requests. Must be in PEM format. | [optional] [defaults to 'null'] **tls_cert_hostname** | **string** | The hostname used to verify a server's certificate. It can either be the Common Name (CN) or a Subject Alternative Name (SAN). | [optional] [defaults to 'null'] -**use_tls** | **int** | Whether to use TLS. | [optional] [one of: 0, 1] [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/docs/Model/TlsCommonResponseAllOf1.md b/docs/Model/TlsCommonResponseAllOf1.md new file mode 100644 index 00000000..00a52df4 --- /dev/null +++ b/docs/Model/TlsCommonResponseAllOf1.md @@ -0,0 +1,10 @@ +# # TlsCommonResponseAllOf1 + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**use_tls** | **string** | Whether to use TLS. | [optional] [one of: '0', '1'] [defaults to '0'] + + +[[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/docs/Model/TlsSubscriptionResponseDataAllOf.md b/docs/Model/TlsSubscriptionResponseDataAllOf.md deleted file mode 100644 index b2f9eaab..00000000 --- a/docs/Model/TlsSubscriptionResponseDataAllOf.md +++ /dev/null @@ -1,11 +0,0 @@ -# # TlsSubscriptionResponseDataAllOf - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **string** | | [optional] [readonly] -**attributes** | [**\Fastly\Model\TlsSubscriptionResponseAttributes**](TlsSubscriptionResponseAttributes.md) | | [optional] - - -[[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/lib/Api/CacheSettingsApi.php b/lib/Api/CacheSettingsApi.php index 32efd0d4..6ad8433d 100644 --- a/lib/Api/CacheSettingsApi.php +++ b/lib/Api/CacheSettingsApi.php @@ -124,8 +124,8 @@ public function getConfig() * @param string $action If set, will cause vcl_fetch to terminate after processing this rule with the return state specified. If not set, other configuration logic in vcl_fetch with a lower priority will run after this rule. (optional) * @param string $cache_condition Name of the cache condition controlling when this configuration applies. (optional) * @param string $name Name for the cache settings object. (optional) - * @param int $stale_ttl Maximum time in seconds to continue to use a stale version of the object if future requests to your backend server fail (also known as 'stale if error'). (optional) - * @param int $ttl Maximum time to consider the object fresh in the cache (the cache 'time to live'). (optional) + * @param string $stale_ttl Maximum time in seconds to continue to use a stale version of the object if future requests to your backend server fail (also known as 'stale if error'). (optional) + * @param string $ttl Maximum time to consider the object fresh in the cache (the cache 'time to live'). (optional) * * @throws \Fastly\ApiException on non-2xx response * @throws \InvalidArgumentException @@ -152,8 +152,8 @@ public function createCacheSettings($options) * @param string $action If set, will cause vcl_fetch to terminate after processing this rule with the return state specified. If not set, other configuration logic in vcl_fetch with a lower priority will run after this rule. (optional) * @param string $cache_condition Name of the cache condition controlling when this configuration applies. (optional) * @param string $name Name for the cache settings object. (optional) - * @param int $stale_ttl Maximum time in seconds to continue to use a stale version of the object if future requests to your backend server fail (also known as 'stale if error'). (optional) - * @param int $ttl Maximum time to consider the object fresh in the cache (the cache 'time to live'). (optional) + * @param string $stale_ttl Maximum time in seconds to continue to use a stale version of the object if future requests to your backend server fail (also known as 'stale if error'). (optional) + * @param string $ttl Maximum time to consider the object fresh in the cache (the cache 'time to live'). (optional) * * @throws \Fastly\ApiException on non-2xx response * @throws \InvalidArgumentException @@ -268,8 +268,8 @@ public function createCacheSettingsWithHttpInfo($options) * @param string $action If set, will cause vcl_fetch to terminate after processing this rule with the return state specified. If not set, other configuration logic in vcl_fetch with a lower priority will run after this rule. (optional) * @param string $cache_condition Name of the cache condition controlling when this configuration applies. (optional) * @param string $name Name for the cache settings object. (optional) - * @param int $stale_ttl Maximum time in seconds to continue to use a stale version of the object if future requests to your backend server fail (also known as 'stale if error'). (optional) - * @param int $ttl Maximum time to consider the object fresh in the cache (the cache 'time to live'). (optional) + * @param string $stale_ttl Maximum time in seconds to continue to use a stale version of the object if future requests to your backend server fail (also known as 'stale if error'). (optional) + * @param string $ttl Maximum time to consider the object fresh in the cache (the cache 'time to live'). (optional) * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface @@ -299,8 +299,8 @@ function ($response) { * @param string $action If set, will cause vcl_fetch to terminate after processing this rule with the return state specified. If not set, other configuration logic in vcl_fetch with a lower priority will run after this rule. (optional) * @param string $cache_condition Name of the cache condition controlling when this configuration applies. (optional) * @param string $name Name for the cache settings object. (optional) - * @param int $stale_ttl Maximum time in seconds to continue to use a stale version of the object if future requests to your backend server fail (also known as 'stale if error'). (optional) - * @param int $ttl Maximum time to consider the object fresh in the cache (the cache 'time to live'). (optional) + * @param string $stale_ttl Maximum time in seconds to continue to use a stale version of the object if future requests to your backend server fail (also known as 'stale if error'). (optional) + * @param string $ttl Maximum time to consider the object fresh in the cache (the cache 'time to live'). (optional) * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface @@ -356,8 +356,8 @@ function ($exception) { * @param string $action If set, will cause vcl_fetch to terminate after processing this rule with the return state specified. If not set, other configuration logic in vcl_fetch with a lower priority will run after this rule. (optional) * @param string $cache_condition Name of the cache condition controlling when this configuration applies. (optional) * @param string $name Name for the cache settings object. (optional) - * @param int $stale_ttl Maximum time in seconds to continue to use a stale version of the object if future requests to your backend server fail (also known as 'stale if error'). (optional) - * @param int $ttl Maximum time to consider the object fresh in the cache (the cache 'time to live'). (optional) + * @param string $stale_ttl Maximum time in seconds to continue to use a stale version of the object if future requests to your backend server fail (also known as 'stale if error'). (optional) + * @param string $ttl Maximum time to consider the object fresh in the cache (the cache 'time to live'). (optional) * * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request @@ -1583,8 +1583,8 @@ public function listCacheSettingsRequest($options) * @param string $action If set, will cause vcl_fetch to terminate after processing this rule with the return state specified. If not set, other configuration logic in vcl_fetch with a lower priority will run after this rule. (optional) * @param string $cache_condition Name of the cache condition controlling when this configuration applies. (optional) * @param string $name Name for the cache settings object. (optional) - * @param int $stale_ttl Maximum time in seconds to continue to use a stale version of the object if future requests to your backend server fail (also known as 'stale if error'). (optional) - * @param int $ttl Maximum time to consider the object fresh in the cache (the cache 'time to live'). (optional) + * @param string $stale_ttl Maximum time in seconds to continue to use a stale version of the object if future requests to your backend server fail (also known as 'stale if error'). (optional) + * @param string $ttl Maximum time to consider the object fresh in the cache (the cache 'time to live'). (optional) * * @throws \Fastly\ApiException on non-2xx response * @throws \InvalidArgumentException @@ -1612,8 +1612,8 @@ public function updateCacheSettings($options) * @param string $action If set, will cause vcl_fetch to terminate after processing this rule with the return state specified. If not set, other configuration logic in vcl_fetch with a lower priority will run after this rule. (optional) * @param string $cache_condition Name of the cache condition controlling when this configuration applies. (optional) * @param string $name Name for the cache settings object. (optional) - * @param int $stale_ttl Maximum time in seconds to continue to use a stale version of the object if future requests to your backend server fail (also known as 'stale if error'). (optional) - * @param int $ttl Maximum time to consider the object fresh in the cache (the cache 'time to live'). (optional) + * @param string $stale_ttl Maximum time in seconds to continue to use a stale version of the object if future requests to your backend server fail (also known as 'stale if error'). (optional) + * @param string $ttl Maximum time to consider the object fresh in the cache (the cache 'time to live'). (optional) * * @throws \Fastly\ApiException on non-2xx response * @throws \InvalidArgumentException @@ -1729,8 +1729,8 @@ public function updateCacheSettingsWithHttpInfo($options) * @param string $action If set, will cause vcl_fetch to terminate after processing this rule with the return state specified. If not set, other configuration logic in vcl_fetch with a lower priority will run after this rule. (optional) * @param string $cache_condition Name of the cache condition controlling when this configuration applies. (optional) * @param string $name Name for the cache settings object. (optional) - * @param int $stale_ttl Maximum time in seconds to continue to use a stale version of the object if future requests to your backend server fail (also known as 'stale if error'). (optional) - * @param int $ttl Maximum time to consider the object fresh in the cache (the cache 'time to live'). (optional) + * @param string $stale_ttl Maximum time in seconds to continue to use a stale version of the object if future requests to your backend server fail (also known as 'stale if error'). (optional) + * @param string $ttl Maximum time to consider the object fresh in the cache (the cache 'time to live'). (optional) * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface @@ -1761,8 +1761,8 @@ function ($response) { * @param string $action If set, will cause vcl_fetch to terminate after processing this rule with the return state specified. If not set, other configuration logic in vcl_fetch with a lower priority will run after this rule. (optional) * @param string $cache_condition Name of the cache condition controlling when this configuration applies. (optional) * @param string $name Name for the cache settings object. (optional) - * @param int $stale_ttl Maximum time in seconds to continue to use a stale version of the object if future requests to your backend server fail (also known as 'stale if error'). (optional) - * @param int $ttl Maximum time to consider the object fresh in the cache (the cache 'time to live'). (optional) + * @param string $stale_ttl Maximum time in seconds to continue to use a stale version of the object if future requests to your backend server fail (also known as 'stale if error'). (optional) + * @param string $ttl Maximum time to consider the object fresh in the cache (the cache 'time to live'). (optional) * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface @@ -1819,8 +1819,8 @@ function ($exception) { * @param string $action If set, will cause vcl_fetch to terminate after processing this rule with the return state specified. If not set, other configuration logic in vcl_fetch with a lower priority will run after this rule. (optional) * @param string $cache_condition Name of the cache condition controlling when this configuration applies. (optional) * @param string $name Name for the cache settings object. (optional) - * @param int $stale_ttl Maximum time in seconds to continue to use a stale version of the object if future requests to your backend server fail (also known as 'stale if error'). (optional) - * @param int $ttl Maximum time to consider the object fresh in the cache (the cache 'time to live'). (optional) + * @param string $stale_ttl Maximum time in seconds to continue to use a stale version of the object if future requests to your backend server fail (also known as 'stale if error'). (optional) + * @param string $ttl Maximum time to consider the object fresh in the cache (the cache 'time to live'). (optional) * * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request diff --git a/lib/Api/DomainApi.php b/lib/Api/DomainApi.php index 0565623a..6a30d168 100644 --- a/lib/Api/DomainApi.php +++ b/lib/Api/DomainApi.php @@ -125,7 +125,7 @@ public function getConfig() * * @throws \Fastly\ApiException on non-2xx response * @throws \InvalidArgumentException - * @return \Fastly\Model\DomainCheckItem[] + * @return mixed[] */ public function checkDomain($options) { @@ -149,7 +149,7 @@ public function checkDomain($options) * * @throws \Fastly\ApiException on non-2xx response * @throws \InvalidArgumentException - * @return array of \Fastly\Model\DomainCheckItem[], HTTP status code, HTTP response headers (array of strings) + * @return array of mixed[], HTTP status code, HTTP response headers (array of strings) */ public function checkDomainWithHttpInfo($options) { @@ -204,20 +204,20 @@ public function checkDomainWithHttpInfo($options) switch($statusCode) { case 200: - if ('\Fastly\Model\DomainCheckItem[]' === '\SplFileObject') { + if ('mixed[]' === '\SplFileObject') { $content = $response->getBody(); //stream goes to serializer } else { $content = (string) $response->getBody(); } return [ - ObjectSerializer::deserialize($content, '\Fastly\Model\DomainCheckItem[]', []), + ObjectSerializer::deserialize($content, 'mixed[]', []), $response->getStatusCode(), $response->getHeaders() ]; } - $returnType = '\Fastly\Model\DomainCheckItem[]'; + $returnType = 'mixed[]'; if ($returnType === '\SplFileObject') { $content = $response->getBody(); //stream goes to serializer } else { @@ -235,7 +235,7 @@ public function checkDomainWithHttpInfo($options) case 200: $data = ObjectSerializer::deserialize( $e->getResponseBody(), - '\Fastly\Model\DomainCheckItem[]', + 'mixed[]', $e->getResponseHeaders() ); $e->setResponseObject($data); @@ -291,7 +291,7 @@ function ($response) { */ public function checkDomainAsyncWithHttpInfo($options) { - $returnType = '\Fastly\Model\DomainCheckItem[]'; + $returnType = 'mixed[]'; $request = $this->checkDomainRequest($options); return $this->client diff --git a/lib/Api/HeaderApi.php b/lib/Api/HeaderApi.php index cf886d97..7f50a5f6 100644 --- a/lib/Api/HeaderApi.php +++ b/lib/Api/HeaderApi.php @@ -124,15 +124,15 @@ public function getConfig() * @param string $action Accepts a string value. (optional) * @param string $cache_condition Name of the cache condition controlling when this configuration applies. (optional) * @param string $dst Header to set. (optional) - * @param int $ignore_if_set Don't add the header if it is added already. Only applies to 'set' action. (optional) * @param string $name A handle to refer to this Header object. (optional) - * @param int $priority Priority determines execution order. Lower numbers execute first. (optional, default to 100) * @param string $regex Regular expression to use. Only applies to `regex` and `regex_repeat` actions. (optional) * @param string $request_condition Condition which, if met, will select this configuration during a request. Optional. (optional) * @param string $response_condition Optional name of a response condition to apply. (optional) * @param string $src Variable to be used as a source for the header content. Does not apply to `delete` action. (optional) * @param string $substitution Value to substitute in place of regular expression. Only applies to `regex` and `regex_repeat` actions. (optional) * @param string $type Accepts a string value. (optional) + * @param int $ignore_if_set Don't add the header if it is added already. Only applies to 'set' action. (optional) + * @param int $priority Priority determines execution order. Lower numbers execute first. (optional, default to 100) * * @throws \Fastly\ApiException on non-2xx response * @throws \InvalidArgumentException @@ -159,15 +159,15 @@ public function createHeaderObject($options) * @param string $action Accepts a string value. (optional) * @param string $cache_condition Name of the cache condition controlling when this configuration applies. (optional) * @param string $dst Header to set. (optional) - * @param int $ignore_if_set Don't add the header if it is added already. Only applies to 'set' action. (optional) * @param string $name A handle to refer to this Header object. (optional) - * @param int $priority Priority determines execution order. Lower numbers execute first. (optional, default to 100) * @param string $regex Regular expression to use. Only applies to `regex` and `regex_repeat` actions. (optional) * @param string $request_condition Condition which, if met, will select this configuration during a request. Optional. (optional) * @param string $response_condition Optional name of a response condition to apply. (optional) * @param string $src Variable to be used as a source for the header content. Does not apply to `delete` action. (optional) * @param string $substitution Value to substitute in place of regular expression. Only applies to `regex` and `regex_repeat` actions. (optional) * @param string $type Accepts a string value. (optional) + * @param int $ignore_if_set Don't add the header if it is added already. Only applies to 'set' action. (optional) + * @param int $priority Priority determines execution order. Lower numbers execute first. (optional, default to 100) * * @throws \Fastly\ApiException on non-2xx response * @throws \InvalidArgumentException @@ -282,15 +282,15 @@ public function createHeaderObjectWithHttpInfo($options) * @param string $action Accepts a string value. (optional) * @param string $cache_condition Name of the cache condition controlling when this configuration applies. (optional) * @param string $dst Header to set. (optional) - * @param int $ignore_if_set Don't add the header if it is added already. Only applies to 'set' action. (optional) * @param string $name A handle to refer to this Header object. (optional) - * @param int $priority Priority determines execution order. Lower numbers execute first. (optional, default to 100) * @param string $regex Regular expression to use. Only applies to `regex` and `regex_repeat` actions. (optional) * @param string $request_condition Condition which, if met, will select this configuration during a request. Optional. (optional) * @param string $response_condition Optional name of a response condition to apply. (optional) * @param string $src Variable to be used as a source for the header content. Does not apply to `delete` action. (optional) * @param string $substitution Value to substitute in place of regular expression. Only applies to `regex` and `regex_repeat` actions. (optional) * @param string $type Accepts a string value. (optional) + * @param int $ignore_if_set Don't add the header if it is added already. Only applies to 'set' action. (optional) + * @param int $priority Priority determines execution order. Lower numbers execute first. (optional, default to 100) * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface @@ -320,15 +320,15 @@ function ($response) { * @param string $action Accepts a string value. (optional) * @param string $cache_condition Name of the cache condition controlling when this configuration applies. (optional) * @param string $dst Header to set. (optional) - * @param int $ignore_if_set Don't add the header if it is added already. Only applies to 'set' action. (optional) * @param string $name A handle to refer to this Header object. (optional) - * @param int $priority Priority determines execution order. Lower numbers execute first. (optional, default to 100) * @param string $regex Regular expression to use. Only applies to `regex` and `regex_repeat` actions. (optional) * @param string $request_condition Condition which, if met, will select this configuration during a request. Optional. (optional) * @param string $response_condition Optional name of a response condition to apply. (optional) * @param string $src Variable to be used as a source for the header content. Does not apply to `delete` action. (optional) * @param string $substitution Value to substitute in place of regular expression. Only applies to `regex` and `regex_repeat` actions. (optional) * @param string $type Accepts a string value. (optional) + * @param int $ignore_if_set Don't add the header if it is added already. Only applies to 'set' action. (optional) + * @param int $priority Priority determines execution order. Lower numbers execute first. (optional, default to 100) * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface @@ -384,15 +384,15 @@ function ($exception) { * @param string $action Accepts a string value. (optional) * @param string $cache_condition Name of the cache condition controlling when this configuration applies. (optional) * @param string $dst Header to set. (optional) - * @param int $ignore_if_set Don't add the header if it is added already. Only applies to 'set' action. (optional) * @param string $name A handle to refer to this Header object. (optional) - * @param int $priority Priority determines execution order. Lower numbers execute first. (optional, default to 100) * @param string $regex Regular expression to use. Only applies to `regex` and `regex_repeat` actions. (optional) * @param string $request_condition Condition which, if met, will select this configuration during a request. Optional. (optional) * @param string $response_condition Optional name of a response condition to apply. (optional) * @param string $src Variable to be used as a source for the header content. Does not apply to `delete` action. (optional) * @param string $substitution Value to substitute in place of regular expression. Only applies to `regex` and `regex_repeat` actions. (optional) * @param string $type Accepts a string value. (optional) + * @param int $ignore_if_set Don't add the header if it is added already. Only applies to 'set' action. (optional) + * @param int $priority Priority determines execution order. Lower numbers execute first. (optional, default to 100) * * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request @@ -405,15 +405,15 @@ public function createHeaderObjectRequest($options) $action = array_key_exists('action', $options) ? $options['action'] : null; $cache_condition = array_key_exists('cache_condition', $options) ? $options['cache_condition'] : null; $dst = array_key_exists('dst', $options) ? $options['dst'] : null; - $ignore_if_set = array_key_exists('ignore_if_set', $options) ? $options['ignore_if_set'] : null; $name = array_key_exists('name', $options) ? $options['name'] : null; - $priority = array_key_exists('priority', $options) ? $options['priority'] : 100; $regex = array_key_exists('regex', $options) ? $options['regex'] : null; $request_condition = array_key_exists('request_condition', $options) ? $options['request_condition'] : null; $response_condition = array_key_exists('response_condition', $options) ? $options['response_condition'] : null; $src = array_key_exists('src', $options) ? $options['src'] : null; $substitution = array_key_exists('substitution', $options) ? $options['substitution'] : null; $type = array_key_exists('type', $options) ? $options['type'] : null; + $ignore_if_set = array_key_exists('ignore_if_set', $options) ? $options['ignore_if_set'] : null; + $priority = array_key_exists('priority', $options) ? $options['priority'] : 100; // verify the required parameter 'service_id' is set if ($service_id === null || (is_array($service_id) && count($service_id) === 0)) { @@ -467,18 +467,10 @@ public function createHeaderObjectRequest($options) $formParams['dst'] = ObjectSerializer::toFormValue($dst); } // form params - if ($ignore_if_set !== null) { - $formParams['ignore_if_set'] = ObjectSerializer::toFormValue($ignore_if_set); - } - // form params if ($name !== null) { $formParams['name'] = ObjectSerializer::toFormValue($name); } // form params - if ($priority !== null) { - $formParams['priority'] = ObjectSerializer::toFormValue($priority); - } - // form params if ($regex !== null) { $formParams['regex'] = ObjectSerializer::toFormValue($regex); } @@ -502,6 +494,14 @@ public function createHeaderObjectRequest($options) if ($type !== null) { $formParams['type'] = ObjectSerializer::toFormValue($type); } + // form params + if ($ignore_if_set !== null) { + $formParams['ignore_if_set'] = ObjectSerializer::toFormValue($ignore_if_set); + } + // form params + if ($priority !== null) { + $formParams['priority'] = ObjectSerializer::toFormValue($priority); + } if ($multipart) { $headers = $this->headerSelector->selectHeadersForMultipart( @@ -1653,15 +1653,15 @@ public function listHeaderObjectsRequest($options) * @param string $action Accepts a string value. (optional) * @param string $cache_condition Name of the cache condition controlling when this configuration applies. (optional) * @param string $dst Header to set. (optional) - * @param int $ignore_if_set Don't add the header if it is added already. Only applies to 'set' action. (optional) * @param string $name A handle to refer to this Header object. (optional) - * @param int $priority Priority determines execution order. Lower numbers execute first. (optional, default to 100) * @param string $regex Regular expression to use. Only applies to `regex` and `regex_repeat` actions. (optional) * @param string $request_condition Condition which, if met, will select this configuration during a request. Optional. (optional) * @param string $response_condition Optional name of a response condition to apply. (optional) * @param string $src Variable to be used as a source for the header content. Does not apply to `delete` action. (optional) * @param string $substitution Value to substitute in place of regular expression. Only applies to `regex` and `regex_repeat` actions. (optional) * @param string $type Accepts a string value. (optional) + * @param int $ignore_if_set Don't add the header if it is added already. Only applies to 'set' action. (optional) + * @param int $priority Priority determines execution order. Lower numbers execute first. (optional, default to 100) * * @throws \Fastly\ApiException on non-2xx response * @throws \InvalidArgumentException @@ -1689,15 +1689,15 @@ public function updateHeaderObject($options) * @param string $action Accepts a string value. (optional) * @param string $cache_condition Name of the cache condition controlling when this configuration applies. (optional) * @param string $dst Header to set. (optional) - * @param int $ignore_if_set Don't add the header if it is added already. Only applies to 'set' action. (optional) * @param string $name A handle to refer to this Header object. (optional) - * @param int $priority Priority determines execution order. Lower numbers execute first. (optional, default to 100) * @param string $regex Regular expression to use. Only applies to `regex` and `regex_repeat` actions. (optional) * @param string $request_condition Condition which, if met, will select this configuration during a request. Optional. (optional) * @param string $response_condition Optional name of a response condition to apply. (optional) * @param string $src Variable to be used as a source for the header content. Does not apply to `delete` action. (optional) * @param string $substitution Value to substitute in place of regular expression. Only applies to `regex` and `regex_repeat` actions. (optional) * @param string $type Accepts a string value. (optional) + * @param int $ignore_if_set Don't add the header if it is added already. Only applies to 'set' action. (optional) + * @param int $priority Priority determines execution order. Lower numbers execute first. (optional, default to 100) * * @throws \Fastly\ApiException on non-2xx response * @throws \InvalidArgumentException @@ -1813,15 +1813,15 @@ public function updateHeaderObjectWithHttpInfo($options) * @param string $action Accepts a string value. (optional) * @param string $cache_condition Name of the cache condition controlling when this configuration applies. (optional) * @param string $dst Header to set. (optional) - * @param int $ignore_if_set Don't add the header if it is added already. Only applies to 'set' action. (optional) * @param string $name A handle to refer to this Header object. (optional) - * @param int $priority Priority determines execution order. Lower numbers execute first. (optional, default to 100) * @param string $regex Regular expression to use. Only applies to `regex` and `regex_repeat` actions. (optional) * @param string $request_condition Condition which, if met, will select this configuration during a request. Optional. (optional) * @param string $response_condition Optional name of a response condition to apply. (optional) * @param string $src Variable to be used as a source for the header content. Does not apply to `delete` action. (optional) * @param string $substitution Value to substitute in place of regular expression. Only applies to `regex` and `regex_repeat` actions. (optional) * @param string $type Accepts a string value. (optional) + * @param int $ignore_if_set Don't add the header if it is added already. Only applies to 'set' action. (optional) + * @param int $priority Priority determines execution order. Lower numbers execute first. (optional, default to 100) * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface @@ -1852,15 +1852,15 @@ function ($response) { * @param string $action Accepts a string value. (optional) * @param string $cache_condition Name of the cache condition controlling when this configuration applies. (optional) * @param string $dst Header to set. (optional) - * @param int $ignore_if_set Don't add the header if it is added already. Only applies to 'set' action. (optional) * @param string $name A handle to refer to this Header object. (optional) - * @param int $priority Priority determines execution order. Lower numbers execute first. (optional, default to 100) * @param string $regex Regular expression to use. Only applies to `regex` and `regex_repeat` actions. (optional) * @param string $request_condition Condition which, if met, will select this configuration during a request. Optional. (optional) * @param string $response_condition Optional name of a response condition to apply. (optional) * @param string $src Variable to be used as a source for the header content. Does not apply to `delete` action. (optional) * @param string $substitution Value to substitute in place of regular expression. Only applies to `regex` and `regex_repeat` actions. (optional) * @param string $type Accepts a string value. (optional) + * @param int $ignore_if_set Don't add the header if it is added already. Only applies to 'set' action. (optional) + * @param int $priority Priority determines execution order. Lower numbers execute first. (optional, default to 100) * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface @@ -1917,15 +1917,15 @@ function ($exception) { * @param string $action Accepts a string value. (optional) * @param string $cache_condition Name of the cache condition controlling when this configuration applies. (optional) * @param string $dst Header to set. (optional) - * @param int $ignore_if_set Don't add the header if it is added already. Only applies to 'set' action. (optional) * @param string $name A handle to refer to this Header object. (optional) - * @param int $priority Priority determines execution order. Lower numbers execute first. (optional, default to 100) * @param string $regex Regular expression to use. Only applies to `regex` and `regex_repeat` actions. (optional) * @param string $request_condition Condition which, if met, will select this configuration during a request. Optional. (optional) * @param string $response_condition Optional name of a response condition to apply. (optional) * @param string $src Variable to be used as a source for the header content. Does not apply to `delete` action. (optional) * @param string $substitution Value to substitute in place of regular expression. Only applies to `regex` and `regex_repeat` actions. (optional) * @param string $type Accepts a string value. (optional) + * @param int $ignore_if_set Don't add the header if it is added already. Only applies to 'set' action. (optional) + * @param int $priority Priority determines execution order. Lower numbers execute first. (optional, default to 100) * * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request @@ -1939,15 +1939,15 @@ public function updateHeaderObjectRequest($options) $action = array_key_exists('action', $options) ? $options['action'] : null; $cache_condition = array_key_exists('cache_condition', $options) ? $options['cache_condition'] : null; $dst = array_key_exists('dst', $options) ? $options['dst'] : null; - $ignore_if_set = array_key_exists('ignore_if_set', $options) ? $options['ignore_if_set'] : null; $name = array_key_exists('name', $options) ? $options['name'] : null; - $priority = array_key_exists('priority', $options) ? $options['priority'] : 100; $regex = array_key_exists('regex', $options) ? $options['regex'] : null; $request_condition = array_key_exists('request_condition', $options) ? $options['request_condition'] : null; $response_condition = array_key_exists('response_condition', $options) ? $options['response_condition'] : null; $src = array_key_exists('src', $options) ? $options['src'] : null; $substitution = array_key_exists('substitution', $options) ? $options['substitution'] : null; $type = array_key_exists('type', $options) ? $options['type'] : null; + $ignore_if_set = array_key_exists('ignore_if_set', $options) ? $options['ignore_if_set'] : null; + $priority = array_key_exists('priority', $options) ? $options['priority'] : 100; // verify the required parameter 'service_id' is set if ($service_id === null || (is_array($service_id) && count($service_id) === 0)) { @@ -2015,18 +2015,10 @@ public function updateHeaderObjectRequest($options) $formParams['dst'] = ObjectSerializer::toFormValue($dst); } // form params - if ($ignore_if_set !== null) { - $formParams['ignore_if_set'] = ObjectSerializer::toFormValue($ignore_if_set); - } - // form params if ($name !== null) { $formParams['name'] = ObjectSerializer::toFormValue($name); } // form params - if ($priority !== null) { - $formParams['priority'] = ObjectSerializer::toFormValue($priority); - } - // form params if ($regex !== null) { $formParams['regex'] = ObjectSerializer::toFormValue($regex); } @@ -2050,6 +2042,14 @@ public function updateHeaderObjectRequest($options) if ($type !== null) { $formParams['type'] = ObjectSerializer::toFormValue($type); } + // form params + if ($ignore_if_set !== null) { + $formParams['ignore_if_set'] = ObjectSerializer::toFormValue($ignore_if_set); + } + // form params + if ($priority !== null) { + $formParams['priority'] = ObjectSerializer::toFormValue($priority); + } if ($multipart) { $headers = $this->headerSelector->selectHeadersForMultipart( diff --git a/lib/Api/LoggingAzureblobApi.php b/lib/Api/LoggingAzureblobApi.php index bbb8019e..05785a8c 100644 --- a/lib/Api/LoggingAzureblobApi.php +++ b/lib/Api/LoggingAzureblobApi.php @@ -123,14 +123,14 @@ public function getConfig() * @param int $version_id Integer identifying a service version. (required) * @param string $name The name for the real-time logging configuration. (optional) * @param string $placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. (optional) - * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to 2) * @param string $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. (optional) * @param string $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). (optional, default to '%h %l %u %t "%r" %>s %b') + * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to 2) * @param string $message_type How the message should be formatted. (optional, default to 'classic') * @param string $timestamp_format A timestamp format (optional) + * @param string $compression_codec The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. (optional) * @param int $period How frequently log files are finalized so they can be available for reading (in seconds). (optional, default to 3600) * @param int $gzip_level The level of gzip encoding when sending logs (default `0`, no compression). Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. (optional, default to 0) - * @param string $compression_codec The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. (optional) * @param string $path The path to upload logs to. (optional, default to 'null') * @param string $account_name The unique Azure Blob Storage namespace in which your data objects are stored. Required. (optional) * @param string $container The name of the Azure Blob Storage container in which to store logs. Required. (optional) @@ -162,14 +162,14 @@ public function createLogAzure($options) * @param int $version_id Integer identifying a service version. (required) * @param string $name The name for the real-time logging configuration. (optional) * @param string $placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. (optional) - * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to 2) * @param string $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. (optional) * @param string $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). (optional, default to '%h %l %u %t "%r" %>s %b') + * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to 2) * @param string $message_type How the message should be formatted. (optional, default to 'classic') * @param string $timestamp_format A timestamp format (optional) + * @param string $compression_codec The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. (optional) * @param int $period How frequently log files are finalized so they can be available for reading (in seconds). (optional, default to 3600) * @param int $gzip_level The level of gzip encoding when sending logs (default `0`, no compression). Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. (optional, default to 0) - * @param string $compression_codec The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. (optional) * @param string $path The path to upload logs to. (optional, default to 'null') * @param string $account_name The unique Azure Blob Storage namespace in which your data objects are stored. Required. (optional) * @param string $container The name of the Azure Blob Storage container in which to store logs. Required. (optional) @@ -289,14 +289,14 @@ public function createLogAzureWithHttpInfo($options) * @param int $version_id Integer identifying a service version. (required) * @param string $name The name for the real-time logging configuration. (optional) * @param string $placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. (optional) - * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to 2) * @param string $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. (optional) * @param string $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). (optional, default to '%h %l %u %t "%r" %>s %b') + * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to 2) * @param string $message_type How the message should be formatted. (optional, default to 'classic') * @param string $timestamp_format A timestamp format (optional) + * @param string $compression_codec The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. (optional) * @param int $period How frequently log files are finalized so they can be available for reading (in seconds). (optional, default to 3600) * @param int $gzip_level The level of gzip encoding when sending logs (default `0`, no compression). Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. (optional, default to 0) - * @param string $compression_codec The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. (optional) * @param string $path The path to upload logs to. (optional, default to 'null') * @param string $account_name The unique Azure Blob Storage namespace in which your data objects are stored. Required. (optional) * @param string $container The name of the Azure Blob Storage container in which to store logs. Required. (optional) @@ -331,14 +331,14 @@ function ($response) { * @param int $version_id Integer identifying a service version. (required) * @param string $name The name for the real-time logging configuration. (optional) * @param string $placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. (optional) - * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to 2) * @param string $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. (optional) * @param string $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). (optional, default to '%h %l %u %t "%r" %>s %b') + * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to 2) * @param string $message_type How the message should be formatted. (optional, default to 'classic') * @param string $timestamp_format A timestamp format (optional) + * @param string $compression_codec The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. (optional) * @param int $period How frequently log files are finalized so they can be available for reading (in seconds). (optional, default to 3600) * @param int $gzip_level The level of gzip encoding when sending logs (default `0`, no compression). Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. (optional, default to 0) - * @param string $compression_codec The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. (optional) * @param string $path The path to upload logs to. (optional, default to 'null') * @param string $account_name The unique Azure Blob Storage namespace in which your data objects are stored. Required. (optional) * @param string $container The name of the Azure Blob Storage container in which to store logs. Required. (optional) @@ -399,14 +399,14 @@ function ($exception) { * @param int $version_id Integer identifying a service version. (required) * @param string $name The name for the real-time logging configuration. (optional) * @param string $placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. (optional) - * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to 2) * @param string $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. (optional) * @param string $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). (optional, default to '%h %l %u %t "%r" %>s %b') + * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to 2) * @param string $message_type How the message should be formatted. (optional, default to 'classic') * @param string $timestamp_format A timestamp format (optional) + * @param string $compression_codec The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. (optional) * @param int $period How frequently log files are finalized so they can be available for reading (in seconds). (optional, default to 3600) * @param int $gzip_level The level of gzip encoding when sending logs (default `0`, no compression). Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. (optional, default to 0) - * @param string $compression_codec The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. (optional) * @param string $path The path to upload logs to. (optional, default to 'null') * @param string $account_name The unique Azure Blob Storage namespace in which your data objects are stored. Required. (optional) * @param string $container The name of the Azure Blob Storage container in which to store logs. Required. (optional) @@ -424,14 +424,14 @@ public function createLogAzureRequest($options) $version_id = array_key_exists('version_id', $options) ? $options['version_id'] : null; $name = array_key_exists('name', $options) ? $options['name'] : null; $placement = array_key_exists('placement', $options) ? $options['placement'] : null; - $format_version = array_key_exists('format_version', $options) ? $options['format_version'] : 2; $response_condition = array_key_exists('response_condition', $options) ? $options['response_condition'] : null; $format = array_key_exists('format', $options) ? $options['format'] : '%h %l %u %t "%r" %>s %b'; + $format_version = array_key_exists('format_version', $options) ? $options['format_version'] : 2; $message_type = array_key_exists('message_type', $options) ? $options['message_type'] : 'classic'; $timestamp_format = array_key_exists('timestamp_format', $options) ? $options['timestamp_format'] : null; + $compression_codec = array_key_exists('compression_codec', $options) ? $options['compression_codec'] : null; $period = array_key_exists('period', $options) ? $options['period'] : 3600; $gzip_level = array_key_exists('gzip_level', $options) ? $options['gzip_level'] : 0; - $compression_codec = array_key_exists('compression_codec', $options) ? $options['compression_codec'] : null; $path = array_key_exists('path', $options) ? $options['path'] : 'null'; $account_name = array_key_exists('account_name', $options) ? $options['account_name'] : null; $container = array_key_exists('container', $options) ? $options['container'] : null; @@ -491,10 +491,6 @@ public function createLogAzureRequest($options) $formParams['placement'] = ObjectSerializer::toFormValue($placement); } // form params - if ($format_version !== null) { - $formParams['format_version'] = ObjectSerializer::toFormValue($format_version); - } - // form params if ($response_condition !== null) { $formParams['response_condition'] = ObjectSerializer::toFormValue($response_condition); } @@ -503,6 +499,10 @@ public function createLogAzureRequest($options) $formParams['format'] = ObjectSerializer::toFormValue($format); } // form params + if ($format_version !== null) { + $formParams['format_version'] = ObjectSerializer::toFormValue($format_version); + } + // form params if ($message_type !== null) { $formParams['message_type'] = ObjectSerializer::toFormValue($message_type); } @@ -511,6 +511,10 @@ public function createLogAzureRequest($options) $formParams['timestamp_format'] = ObjectSerializer::toFormValue($timestamp_format); } // form params + if ($compression_codec !== null) { + $formParams['compression_codec'] = ObjectSerializer::toFormValue($compression_codec); + } + // form params if ($period !== null) { $formParams['period'] = ObjectSerializer::toFormValue($period); } @@ -519,10 +523,6 @@ public function createLogAzureRequest($options) $formParams['gzip_level'] = ObjectSerializer::toFormValue($gzip_level); } // form params - if ($compression_codec !== null) { - $formParams['compression_codec'] = ObjectSerializer::toFormValue($compression_codec); - } - // form params if ($path !== null) { $formParams['path'] = ObjectSerializer::toFormValue($path); } @@ -1696,14 +1696,14 @@ public function listLogAzureRequest($options) * @param string $logging_azureblob_name The name for the real-time logging configuration. (required) * @param string $name The name for the real-time logging configuration. (optional) * @param string $placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. (optional) - * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. (optional) * @param string $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). (optional, default to '%h %l %u %t "%r" %>s %b') + * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $message_type How the message should be formatted. (optional, default to 'classic') * @param string $timestamp_format A timestamp format (optional) + * @param string $compression_codec The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. (optional) * @param int $period How frequently log files are finalized so they can be available for reading (in seconds). (optional, default to 3600) * @param int $gzip_level The level of gzip encoding when sending logs (default `0`, no compression). Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. (optional, default to 0) - * @param string $compression_codec The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. (optional) * @param string $path The path to upload logs to. (optional, default to 'null') * @param string $account_name The unique Azure Blob Storage namespace in which your data objects are stored. Required. (optional) * @param string $container The name of the Azure Blob Storage container in which to store logs. Required. (optional) @@ -1736,14 +1736,14 @@ public function updateLogAzure($options) * @param string $logging_azureblob_name The name for the real-time logging configuration. (required) * @param string $name The name for the real-time logging configuration. (optional) * @param string $placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. (optional) - * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. (optional) * @param string $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). (optional, default to '%h %l %u %t "%r" %>s %b') + * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $message_type How the message should be formatted. (optional, default to 'classic') * @param string $timestamp_format A timestamp format (optional) + * @param string $compression_codec The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. (optional) * @param int $period How frequently log files are finalized so they can be available for reading (in seconds). (optional, default to 3600) * @param int $gzip_level The level of gzip encoding when sending logs (default `0`, no compression). Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. (optional, default to 0) - * @param string $compression_codec The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. (optional) * @param string $path The path to upload logs to. (optional, default to 'null') * @param string $account_name The unique Azure Blob Storage namespace in which your data objects are stored. Required. (optional) * @param string $container The name of the Azure Blob Storage container in which to store logs. Required. (optional) @@ -1864,14 +1864,14 @@ public function updateLogAzureWithHttpInfo($options) * @param string $logging_azureblob_name The name for the real-time logging configuration. (required) * @param string $name The name for the real-time logging configuration. (optional) * @param string $placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. (optional) - * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. (optional) * @param string $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). (optional, default to '%h %l %u %t "%r" %>s %b') + * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $message_type How the message should be formatted. (optional, default to 'classic') * @param string $timestamp_format A timestamp format (optional) + * @param string $compression_codec The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. (optional) * @param int $period How frequently log files are finalized so they can be available for reading (in seconds). (optional, default to 3600) * @param int $gzip_level The level of gzip encoding when sending logs (default `0`, no compression). Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. (optional, default to 0) - * @param string $compression_codec The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. (optional) * @param string $path The path to upload logs to. (optional, default to 'null') * @param string $account_name The unique Azure Blob Storage namespace in which your data objects are stored. Required. (optional) * @param string $container The name of the Azure Blob Storage container in which to store logs. Required. (optional) @@ -1907,14 +1907,14 @@ function ($response) { * @param string $logging_azureblob_name The name for the real-time logging configuration. (required) * @param string $name The name for the real-time logging configuration. (optional) * @param string $placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. (optional) - * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. (optional) * @param string $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). (optional, default to '%h %l %u %t "%r" %>s %b') + * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $message_type How the message should be formatted. (optional, default to 'classic') * @param string $timestamp_format A timestamp format (optional) + * @param string $compression_codec The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. (optional) * @param int $period How frequently log files are finalized so they can be available for reading (in seconds). (optional, default to 3600) * @param int $gzip_level The level of gzip encoding when sending logs (default `0`, no compression). Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. (optional, default to 0) - * @param string $compression_codec The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. (optional) * @param string $path The path to upload logs to. (optional, default to 'null') * @param string $account_name The unique Azure Blob Storage namespace in which your data objects are stored. Required. (optional) * @param string $container The name of the Azure Blob Storage container in which to store logs. Required. (optional) @@ -1976,14 +1976,14 @@ function ($exception) { * @param string $logging_azureblob_name The name for the real-time logging configuration. (required) * @param string $name The name for the real-time logging configuration. (optional) * @param string $placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. (optional) - * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. (optional) * @param string $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). (optional, default to '%h %l %u %t "%r" %>s %b') + * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $message_type How the message should be formatted. (optional, default to 'classic') * @param string $timestamp_format A timestamp format (optional) + * @param string $compression_codec The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. (optional) * @param int $period How frequently log files are finalized so they can be available for reading (in seconds). (optional, default to 3600) * @param int $gzip_level The level of gzip encoding when sending logs (default `0`, no compression). Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. (optional, default to 0) - * @param string $compression_codec The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. (optional) * @param string $path The path to upload logs to. (optional, default to 'null') * @param string $account_name The unique Azure Blob Storage namespace in which your data objects are stored. Required. (optional) * @param string $container The name of the Azure Blob Storage container in which to store logs. Required. (optional) @@ -2002,14 +2002,14 @@ public function updateLogAzureRequest($options) $logging_azureblob_name = array_key_exists('logging_azureblob_name', $options) ? $options['logging_azureblob_name'] : null; $name = array_key_exists('name', $options) ? $options['name'] : null; $placement = array_key_exists('placement', $options) ? $options['placement'] : null; - $format_version = array_key_exists('format_version', $options) ? $options['format_version'] : self::FORMAT_VERSION_v2; $response_condition = array_key_exists('response_condition', $options) ? $options['response_condition'] : null; $format = array_key_exists('format', $options) ? $options['format'] : '%h %l %u %t "%r" %>s %b'; + $format_version = array_key_exists('format_version', $options) ? $options['format_version'] : self::FORMAT_VERSION_v2; $message_type = array_key_exists('message_type', $options) ? $options['message_type'] : 'classic'; $timestamp_format = array_key_exists('timestamp_format', $options) ? $options['timestamp_format'] : null; + $compression_codec = array_key_exists('compression_codec', $options) ? $options['compression_codec'] : null; $period = array_key_exists('period', $options) ? $options['period'] : 3600; $gzip_level = array_key_exists('gzip_level', $options) ? $options['gzip_level'] : 0; - $compression_codec = array_key_exists('compression_codec', $options) ? $options['compression_codec'] : null; $path = array_key_exists('path', $options) ? $options['path'] : 'null'; $account_name = array_key_exists('account_name', $options) ? $options['account_name'] : null; $container = array_key_exists('container', $options) ? $options['container'] : null; @@ -2083,10 +2083,6 @@ public function updateLogAzureRequest($options) $formParams['placement'] = ObjectSerializer::toFormValue($placement); } // form params - if ($format_version !== null) { - $formParams['format_version'] = ObjectSerializer::toFormValue($format_version); - } - // form params if ($response_condition !== null) { $formParams['response_condition'] = ObjectSerializer::toFormValue($response_condition); } @@ -2095,6 +2091,10 @@ public function updateLogAzureRequest($options) $formParams['format'] = ObjectSerializer::toFormValue($format); } // form params + if ($format_version !== null) { + $formParams['format_version'] = ObjectSerializer::toFormValue($format_version); + } + // form params if ($message_type !== null) { $formParams['message_type'] = ObjectSerializer::toFormValue($message_type); } @@ -2103,6 +2103,10 @@ public function updateLogAzureRequest($options) $formParams['timestamp_format'] = ObjectSerializer::toFormValue($timestamp_format); } // form params + if ($compression_codec !== null) { + $formParams['compression_codec'] = ObjectSerializer::toFormValue($compression_codec); + } + // form params if ($period !== null) { $formParams['period'] = ObjectSerializer::toFormValue($period); } @@ -2111,10 +2115,6 @@ public function updateLogAzureRequest($options) $formParams['gzip_level'] = ObjectSerializer::toFormValue($gzip_level); } // form params - if ($compression_codec !== null) { - $formParams['compression_codec'] = ObjectSerializer::toFormValue($compression_codec); - } - // form params if ($path !== null) { $formParams['path'] = ObjectSerializer::toFormValue($path); } diff --git a/lib/Api/LoggingBigqueryApi.php b/lib/Api/LoggingBigqueryApi.php index 42298dbc..ebe6a70e 100644 --- a/lib/Api/LoggingBigqueryApi.php +++ b/lib/Api/LoggingBigqueryApi.php @@ -123,9 +123,9 @@ public function getConfig() * @param int $version_id Integer identifying a service version. (required) * @param string $name The name of the BigQuery logging object. Used as a primary key for API access. (optional) * @param string $placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. (optional) - * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. (optional) * @param string $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). Must produce JSON that matches the schema of your BigQuery table. (optional) + * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $user Your Google Cloud Platform service account email address. The `client_email` field in your service account authentication JSON. Not required if `account_name` is specified. (optional) * @param string $secret_key Your Google Cloud Platform account secret key. The `private_key` field in your service account authentication JSON. Not required if `account_name` is specified. (optional) * @param string $account_name The name of the Google Cloud Platform service account associated with the target log collection service. Not required if `user` and `secret_key` are provided. (optional) @@ -158,9 +158,9 @@ public function createLogBigquery($options) * @param int $version_id Integer identifying a service version. (required) * @param string $name The name of the BigQuery logging object. Used as a primary key for API access. (optional) * @param string $placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. (optional) - * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. (optional) * @param string $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). Must produce JSON that matches the schema of your BigQuery table. (optional) + * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $user Your Google Cloud Platform service account email address. The `client_email` field in your service account authentication JSON. Not required if `account_name` is specified. (optional) * @param string $secret_key Your Google Cloud Platform account secret key. The `private_key` field in your service account authentication JSON. Not required if `account_name` is specified. (optional) * @param string $account_name The name of the Google Cloud Platform service account associated with the target log collection service. Not required if `user` and `secret_key` are provided. (optional) @@ -281,9 +281,9 @@ public function createLogBigqueryWithHttpInfo($options) * @param int $version_id Integer identifying a service version. (required) * @param string $name The name of the BigQuery logging object. Used as a primary key for API access. (optional) * @param string $placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. (optional) - * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. (optional) * @param string $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). Must produce JSON that matches the schema of your BigQuery table. (optional) + * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $user Your Google Cloud Platform service account email address. The `client_email` field in your service account authentication JSON. Not required if `account_name` is specified. (optional) * @param string $secret_key Your Google Cloud Platform account secret key. The `private_key` field in your service account authentication JSON. Not required if `account_name` is specified. (optional) * @param string $account_name The name of the Google Cloud Platform service account associated with the target log collection service. Not required if `user` and `secret_key` are provided. (optional) @@ -319,9 +319,9 @@ function ($response) { * @param int $version_id Integer identifying a service version. (required) * @param string $name The name of the BigQuery logging object. Used as a primary key for API access. (optional) * @param string $placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. (optional) - * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. (optional) * @param string $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). Must produce JSON that matches the schema of your BigQuery table. (optional) + * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $user Your Google Cloud Platform service account email address. The `client_email` field in your service account authentication JSON. Not required if `account_name` is specified. (optional) * @param string $secret_key Your Google Cloud Platform account secret key. The `private_key` field in your service account authentication JSON. Not required if `account_name` is specified. (optional) * @param string $account_name The name of the Google Cloud Platform service account associated with the target log collection service. Not required if `user` and `secret_key` are provided. (optional) @@ -383,9 +383,9 @@ function ($exception) { * @param int $version_id Integer identifying a service version. (required) * @param string $name The name of the BigQuery logging object. Used as a primary key for API access. (optional) * @param string $placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. (optional) - * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. (optional) * @param string $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). Must produce JSON that matches the schema of your BigQuery table. (optional) + * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $user Your Google Cloud Platform service account email address. The `client_email` field in your service account authentication JSON. Not required if `account_name` is specified. (optional) * @param string $secret_key Your Google Cloud Platform account secret key. The `private_key` field in your service account authentication JSON. Not required if `account_name` is specified. (optional) * @param string $account_name The name of the Google Cloud Platform service account associated with the target log collection service. Not required if `user` and `secret_key` are provided. (optional) @@ -404,9 +404,9 @@ public function createLogBigqueryRequest($options) $version_id = array_key_exists('version_id', $options) ? $options['version_id'] : null; $name = array_key_exists('name', $options) ? $options['name'] : null; $placement = array_key_exists('placement', $options) ? $options['placement'] : null; - $format_version = array_key_exists('format_version', $options) ? $options['format_version'] : self::FORMAT_VERSION_v2; $response_condition = array_key_exists('response_condition', $options) ? $options['response_condition'] : null; $format = array_key_exists('format', $options) ? $options['format'] : null; + $format_version = array_key_exists('format_version', $options) ? $options['format_version'] : self::FORMAT_VERSION_v2; $user = array_key_exists('user', $options) ? $options['user'] : null; $secret_key = array_key_exists('secret_key', $options) ? $options['secret_key'] : null; $account_name = array_key_exists('account_name', $options) ? $options['account_name'] : null; @@ -463,10 +463,6 @@ public function createLogBigqueryRequest($options) $formParams['placement'] = ObjectSerializer::toFormValue($placement); } // form params - if ($format_version !== null) { - $formParams['format_version'] = ObjectSerializer::toFormValue($format_version); - } - // form params if ($response_condition !== null) { $formParams['response_condition'] = ObjectSerializer::toFormValue($response_condition); } @@ -475,6 +471,10 @@ public function createLogBigqueryRequest($options) $formParams['format'] = ObjectSerializer::toFormValue($format); } // form params + if ($format_version !== null) { + $formParams['format_version'] = ObjectSerializer::toFormValue($format_version); + } + // form params if ($user !== null) { $formParams['user'] = ObjectSerializer::toFormValue($user); } @@ -1652,9 +1652,9 @@ public function listLogBigqueryRequest($options) * @param string $logging_bigquery_name The name for the real-time logging configuration. (required) * @param string $name The name of the BigQuery logging object. Used as a primary key for API access. (optional) * @param string $placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. (optional) - * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. (optional) * @param string $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). Must produce JSON that matches the schema of your BigQuery table. (optional) + * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $user Your Google Cloud Platform service account email address. The `client_email` field in your service account authentication JSON. Not required if `account_name` is specified. (optional) * @param string $secret_key Your Google Cloud Platform account secret key. The `private_key` field in your service account authentication JSON. Not required if `account_name` is specified. (optional) * @param string $account_name The name of the Google Cloud Platform service account associated with the target log collection service. Not required if `user` and `secret_key` are provided. (optional) @@ -1688,9 +1688,9 @@ public function updateLogBigquery($options) * @param string $logging_bigquery_name The name for the real-time logging configuration. (required) * @param string $name The name of the BigQuery logging object. Used as a primary key for API access. (optional) * @param string $placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. (optional) - * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. (optional) * @param string $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). Must produce JSON that matches the schema of your BigQuery table. (optional) + * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $user Your Google Cloud Platform service account email address. The `client_email` field in your service account authentication JSON. Not required if `account_name` is specified. (optional) * @param string $secret_key Your Google Cloud Platform account secret key. The `private_key` field in your service account authentication JSON. Not required if `account_name` is specified. (optional) * @param string $account_name The name of the Google Cloud Platform service account associated with the target log collection service. Not required if `user` and `secret_key` are provided. (optional) @@ -1812,9 +1812,9 @@ public function updateLogBigqueryWithHttpInfo($options) * @param string $logging_bigquery_name The name for the real-time logging configuration. (required) * @param string $name The name of the BigQuery logging object. Used as a primary key for API access. (optional) * @param string $placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. (optional) - * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. (optional) * @param string $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). Must produce JSON that matches the schema of your BigQuery table. (optional) + * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $user Your Google Cloud Platform service account email address. The `client_email` field in your service account authentication JSON. Not required if `account_name` is specified. (optional) * @param string $secret_key Your Google Cloud Platform account secret key. The `private_key` field in your service account authentication JSON. Not required if `account_name` is specified. (optional) * @param string $account_name The name of the Google Cloud Platform service account associated with the target log collection service. Not required if `user` and `secret_key` are provided. (optional) @@ -1851,9 +1851,9 @@ function ($response) { * @param string $logging_bigquery_name The name for the real-time logging configuration. (required) * @param string $name The name of the BigQuery logging object. Used as a primary key for API access. (optional) * @param string $placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. (optional) - * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. (optional) * @param string $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). Must produce JSON that matches the schema of your BigQuery table. (optional) + * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $user Your Google Cloud Platform service account email address. The `client_email` field in your service account authentication JSON. Not required if `account_name` is specified. (optional) * @param string $secret_key Your Google Cloud Platform account secret key. The `private_key` field in your service account authentication JSON. Not required if `account_name` is specified. (optional) * @param string $account_name The name of the Google Cloud Platform service account associated with the target log collection service. Not required if `user` and `secret_key` are provided. (optional) @@ -1916,9 +1916,9 @@ function ($exception) { * @param string $logging_bigquery_name The name for the real-time logging configuration. (required) * @param string $name The name of the BigQuery logging object. Used as a primary key for API access. (optional) * @param string $placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. (optional) - * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. (optional) * @param string $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). Must produce JSON that matches the schema of your BigQuery table. (optional) + * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $user Your Google Cloud Platform service account email address. The `client_email` field in your service account authentication JSON. Not required if `account_name` is specified. (optional) * @param string $secret_key Your Google Cloud Platform account secret key. The `private_key` field in your service account authentication JSON. Not required if `account_name` is specified. (optional) * @param string $account_name The name of the Google Cloud Platform service account associated with the target log collection service. Not required if `user` and `secret_key` are provided. (optional) @@ -1938,9 +1938,9 @@ public function updateLogBigqueryRequest($options) $logging_bigquery_name = array_key_exists('logging_bigquery_name', $options) ? $options['logging_bigquery_name'] : null; $name = array_key_exists('name', $options) ? $options['name'] : null; $placement = array_key_exists('placement', $options) ? $options['placement'] : null; - $format_version = array_key_exists('format_version', $options) ? $options['format_version'] : self::FORMAT_VERSION_v2; $response_condition = array_key_exists('response_condition', $options) ? $options['response_condition'] : null; $format = array_key_exists('format', $options) ? $options['format'] : null; + $format_version = array_key_exists('format_version', $options) ? $options['format_version'] : self::FORMAT_VERSION_v2; $user = array_key_exists('user', $options) ? $options['user'] : null; $secret_key = array_key_exists('secret_key', $options) ? $options['secret_key'] : null; $account_name = array_key_exists('account_name', $options) ? $options['account_name'] : null; @@ -2011,10 +2011,6 @@ public function updateLogBigqueryRequest($options) $formParams['placement'] = ObjectSerializer::toFormValue($placement); } // form params - if ($format_version !== null) { - $formParams['format_version'] = ObjectSerializer::toFormValue($format_version); - } - // form params if ($response_condition !== null) { $formParams['response_condition'] = ObjectSerializer::toFormValue($response_condition); } @@ -2023,6 +2019,10 @@ public function updateLogBigqueryRequest($options) $formParams['format'] = ObjectSerializer::toFormValue($format); } // form params + if ($format_version !== null) { + $formParams['format_version'] = ObjectSerializer::toFormValue($format_version); + } + // form params if ($user !== null) { $formParams['user'] = ObjectSerializer::toFormValue($user); } diff --git a/lib/Api/LoggingCloudfilesApi.php b/lib/Api/LoggingCloudfilesApi.php index 29214b74..3afb1592 100644 --- a/lib/Api/LoggingCloudfilesApi.php +++ b/lib/Api/LoggingCloudfilesApi.php @@ -123,14 +123,14 @@ public function getConfig() * @param int $version_id Integer identifying a service version. (required) * @param string $name The name for the real-time logging configuration. (optional) * @param string $placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. (optional) - * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. (optional) * @param string $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). (optional, default to '%h %l %u %t "%r" %>s %b') + * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $message_type How the message should be formatted. (optional, default to 'classic') * @param string $timestamp_format A timestamp format (optional) + * @param string $compression_codec The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. (optional) * @param int $period How frequently log files are finalized so they can be available for reading (in seconds). (optional, default to 3600) * @param int $gzip_level The level of gzip encoding when sending logs (default `0`, no compression). Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. (optional, default to 0) - * @param string $compression_codec The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. (optional) * @param string $access_key Your Cloud Files account access key. (optional) * @param string $bucket_name The name of your Cloud Files container. (optional) * @param string $path The path to upload logs to. (optional, default to 'null') @@ -162,14 +162,14 @@ public function createLogCloudfiles($options) * @param int $version_id Integer identifying a service version. (required) * @param string $name The name for the real-time logging configuration. (optional) * @param string $placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. (optional) - * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. (optional) * @param string $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). (optional, default to '%h %l %u %t "%r" %>s %b') + * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $message_type How the message should be formatted. (optional, default to 'classic') * @param string $timestamp_format A timestamp format (optional) + * @param string $compression_codec The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. (optional) * @param int $period How frequently log files are finalized so they can be available for reading (in seconds). (optional, default to 3600) * @param int $gzip_level The level of gzip encoding when sending logs (default `0`, no compression). Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. (optional, default to 0) - * @param string $compression_codec The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. (optional) * @param string $access_key Your Cloud Files account access key. (optional) * @param string $bucket_name The name of your Cloud Files container. (optional) * @param string $path The path to upload logs to. (optional, default to 'null') @@ -289,14 +289,14 @@ public function createLogCloudfilesWithHttpInfo($options) * @param int $version_id Integer identifying a service version. (required) * @param string $name The name for the real-time logging configuration. (optional) * @param string $placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. (optional) - * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. (optional) * @param string $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). (optional, default to '%h %l %u %t "%r" %>s %b') + * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $message_type How the message should be formatted. (optional, default to 'classic') * @param string $timestamp_format A timestamp format (optional) + * @param string $compression_codec The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. (optional) * @param int $period How frequently log files are finalized so they can be available for reading (in seconds). (optional, default to 3600) * @param int $gzip_level The level of gzip encoding when sending logs (default `0`, no compression). Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. (optional, default to 0) - * @param string $compression_codec The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. (optional) * @param string $access_key Your Cloud Files account access key. (optional) * @param string $bucket_name The name of your Cloud Files container. (optional) * @param string $path The path to upload logs to. (optional, default to 'null') @@ -331,14 +331,14 @@ function ($response) { * @param int $version_id Integer identifying a service version. (required) * @param string $name The name for the real-time logging configuration. (optional) * @param string $placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. (optional) - * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. (optional) * @param string $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). (optional, default to '%h %l %u %t "%r" %>s %b') + * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $message_type How the message should be formatted. (optional, default to 'classic') * @param string $timestamp_format A timestamp format (optional) + * @param string $compression_codec The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. (optional) * @param int $period How frequently log files are finalized so they can be available for reading (in seconds). (optional, default to 3600) * @param int $gzip_level The level of gzip encoding when sending logs (default `0`, no compression). Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. (optional, default to 0) - * @param string $compression_codec The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. (optional) * @param string $access_key Your Cloud Files account access key. (optional) * @param string $bucket_name The name of your Cloud Files container. (optional) * @param string $path The path to upload logs to. (optional, default to 'null') @@ -399,14 +399,14 @@ function ($exception) { * @param int $version_id Integer identifying a service version. (required) * @param string $name The name for the real-time logging configuration. (optional) * @param string $placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. (optional) - * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. (optional) * @param string $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). (optional, default to '%h %l %u %t "%r" %>s %b') + * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $message_type How the message should be formatted. (optional, default to 'classic') * @param string $timestamp_format A timestamp format (optional) + * @param string $compression_codec The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. (optional) * @param int $period How frequently log files are finalized so they can be available for reading (in seconds). (optional, default to 3600) * @param int $gzip_level The level of gzip encoding when sending logs (default `0`, no compression). Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. (optional, default to 0) - * @param string $compression_codec The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. (optional) * @param string $access_key Your Cloud Files account access key. (optional) * @param string $bucket_name The name of your Cloud Files container. (optional) * @param string $path The path to upload logs to. (optional, default to 'null') @@ -424,14 +424,14 @@ public function createLogCloudfilesRequest($options) $version_id = array_key_exists('version_id', $options) ? $options['version_id'] : null; $name = array_key_exists('name', $options) ? $options['name'] : null; $placement = array_key_exists('placement', $options) ? $options['placement'] : null; - $format_version = array_key_exists('format_version', $options) ? $options['format_version'] : self::FORMAT_VERSION_v2; $response_condition = array_key_exists('response_condition', $options) ? $options['response_condition'] : null; $format = array_key_exists('format', $options) ? $options['format'] : '%h %l %u %t "%r" %>s %b'; + $format_version = array_key_exists('format_version', $options) ? $options['format_version'] : self::FORMAT_VERSION_v2; $message_type = array_key_exists('message_type', $options) ? $options['message_type'] : 'classic'; $timestamp_format = array_key_exists('timestamp_format', $options) ? $options['timestamp_format'] : null; + $compression_codec = array_key_exists('compression_codec', $options) ? $options['compression_codec'] : null; $period = array_key_exists('period', $options) ? $options['period'] : 3600; $gzip_level = array_key_exists('gzip_level', $options) ? $options['gzip_level'] : 0; - $compression_codec = array_key_exists('compression_codec', $options) ? $options['compression_codec'] : null; $access_key = array_key_exists('access_key', $options) ? $options['access_key'] : null; $bucket_name = array_key_exists('bucket_name', $options) ? $options['bucket_name'] : null; $path = array_key_exists('path', $options) ? $options['path'] : 'null'; @@ -487,10 +487,6 @@ public function createLogCloudfilesRequest($options) $formParams['placement'] = ObjectSerializer::toFormValue($placement); } // form params - if ($format_version !== null) { - $formParams['format_version'] = ObjectSerializer::toFormValue($format_version); - } - // form params if ($response_condition !== null) { $formParams['response_condition'] = ObjectSerializer::toFormValue($response_condition); } @@ -499,6 +495,10 @@ public function createLogCloudfilesRequest($options) $formParams['format'] = ObjectSerializer::toFormValue($format); } // form params + if ($format_version !== null) { + $formParams['format_version'] = ObjectSerializer::toFormValue($format_version); + } + // form params if ($message_type !== null) { $formParams['message_type'] = ObjectSerializer::toFormValue($message_type); } @@ -507,6 +507,10 @@ public function createLogCloudfilesRequest($options) $formParams['timestamp_format'] = ObjectSerializer::toFormValue($timestamp_format); } // form params + if ($compression_codec !== null) { + $formParams['compression_codec'] = ObjectSerializer::toFormValue($compression_codec); + } + // form params if ($period !== null) { $formParams['period'] = ObjectSerializer::toFormValue($period); } @@ -515,10 +519,6 @@ public function createLogCloudfilesRequest($options) $formParams['gzip_level'] = ObjectSerializer::toFormValue($gzip_level); } // form params - if ($compression_codec !== null) { - $formParams['compression_codec'] = ObjectSerializer::toFormValue($compression_codec); - } - // form params if ($access_key !== null) { $formParams['access_key'] = ObjectSerializer::toFormValue($access_key); } @@ -1692,14 +1692,14 @@ public function listLogCloudfilesRequest($options) * @param string $logging_cloudfiles_name The name for the real-time logging configuration. (required) * @param string $name The name for the real-time logging configuration. (optional) * @param string $placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. (optional) - * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. (optional) * @param string $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). (optional, default to '%h %l %u %t "%r" %>s %b') + * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $message_type How the message should be formatted. (optional, default to 'classic') * @param string $timestamp_format A timestamp format (optional) + * @param string $compression_codec The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. (optional) * @param int $period How frequently log files are finalized so they can be available for reading (in seconds). (optional, default to 3600) * @param int $gzip_level The level of gzip encoding when sending logs (default `0`, no compression). Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. (optional, default to 0) - * @param string $compression_codec The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. (optional) * @param string $access_key Your Cloud Files account access key. (optional) * @param string $bucket_name The name of your Cloud Files container. (optional) * @param string $path The path to upload logs to. (optional, default to 'null') @@ -1732,14 +1732,14 @@ public function updateLogCloudfiles($options) * @param string $logging_cloudfiles_name The name for the real-time logging configuration. (required) * @param string $name The name for the real-time logging configuration. (optional) * @param string $placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. (optional) - * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. (optional) * @param string $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). (optional, default to '%h %l %u %t "%r" %>s %b') + * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $message_type How the message should be formatted. (optional, default to 'classic') * @param string $timestamp_format A timestamp format (optional) + * @param string $compression_codec The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. (optional) * @param int $period How frequently log files are finalized so they can be available for reading (in seconds). (optional, default to 3600) * @param int $gzip_level The level of gzip encoding when sending logs (default `0`, no compression). Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. (optional, default to 0) - * @param string $compression_codec The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. (optional) * @param string $access_key Your Cloud Files account access key. (optional) * @param string $bucket_name The name of your Cloud Files container. (optional) * @param string $path The path to upload logs to. (optional, default to 'null') @@ -1860,14 +1860,14 @@ public function updateLogCloudfilesWithHttpInfo($options) * @param string $logging_cloudfiles_name The name for the real-time logging configuration. (required) * @param string $name The name for the real-time logging configuration. (optional) * @param string $placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. (optional) - * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. (optional) * @param string $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). (optional, default to '%h %l %u %t "%r" %>s %b') + * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $message_type How the message should be formatted. (optional, default to 'classic') * @param string $timestamp_format A timestamp format (optional) + * @param string $compression_codec The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. (optional) * @param int $period How frequently log files are finalized so they can be available for reading (in seconds). (optional, default to 3600) * @param int $gzip_level The level of gzip encoding when sending logs (default `0`, no compression). Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. (optional, default to 0) - * @param string $compression_codec The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. (optional) * @param string $access_key Your Cloud Files account access key. (optional) * @param string $bucket_name The name of your Cloud Files container. (optional) * @param string $path The path to upload logs to. (optional, default to 'null') @@ -1903,14 +1903,14 @@ function ($response) { * @param string $logging_cloudfiles_name The name for the real-time logging configuration. (required) * @param string $name The name for the real-time logging configuration. (optional) * @param string $placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. (optional) - * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. (optional) * @param string $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). (optional, default to '%h %l %u %t "%r" %>s %b') + * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $message_type How the message should be formatted. (optional, default to 'classic') * @param string $timestamp_format A timestamp format (optional) + * @param string $compression_codec The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. (optional) * @param int $period How frequently log files are finalized so they can be available for reading (in seconds). (optional, default to 3600) * @param int $gzip_level The level of gzip encoding when sending logs (default `0`, no compression). Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. (optional, default to 0) - * @param string $compression_codec The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. (optional) * @param string $access_key Your Cloud Files account access key. (optional) * @param string $bucket_name The name of your Cloud Files container. (optional) * @param string $path The path to upload logs to. (optional, default to 'null') @@ -1972,14 +1972,14 @@ function ($exception) { * @param string $logging_cloudfiles_name The name for the real-time logging configuration. (required) * @param string $name The name for the real-time logging configuration. (optional) * @param string $placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. (optional) - * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. (optional) * @param string $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). (optional, default to '%h %l %u %t "%r" %>s %b') + * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $message_type How the message should be formatted. (optional, default to 'classic') * @param string $timestamp_format A timestamp format (optional) + * @param string $compression_codec The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. (optional) * @param int $period How frequently log files are finalized so they can be available for reading (in seconds). (optional, default to 3600) * @param int $gzip_level The level of gzip encoding when sending logs (default `0`, no compression). Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. (optional, default to 0) - * @param string $compression_codec The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. (optional) * @param string $access_key Your Cloud Files account access key. (optional) * @param string $bucket_name The name of your Cloud Files container. (optional) * @param string $path The path to upload logs to. (optional, default to 'null') @@ -1998,14 +1998,14 @@ public function updateLogCloudfilesRequest($options) $logging_cloudfiles_name = array_key_exists('logging_cloudfiles_name', $options) ? $options['logging_cloudfiles_name'] : null; $name = array_key_exists('name', $options) ? $options['name'] : null; $placement = array_key_exists('placement', $options) ? $options['placement'] : null; - $format_version = array_key_exists('format_version', $options) ? $options['format_version'] : self::FORMAT_VERSION_v2; $response_condition = array_key_exists('response_condition', $options) ? $options['response_condition'] : null; $format = array_key_exists('format', $options) ? $options['format'] : '%h %l %u %t "%r" %>s %b'; + $format_version = array_key_exists('format_version', $options) ? $options['format_version'] : self::FORMAT_VERSION_v2; $message_type = array_key_exists('message_type', $options) ? $options['message_type'] : 'classic'; $timestamp_format = array_key_exists('timestamp_format', $options) ? $options['timestamp_format'] : null; + $compression_codec = array_key_exists('compression_codec', $options) ? $options['compression_codec'] : null; $period = array_key_exists('period', $options) ? $options['period'] : 3600; $gzip_level = array_key_exists('gzip_level', $options) ? $options['gzip_level'] : 0; - $compression_codec = array_key_exists('compression_codec', $options) ? $options['compression_codec'] : null; $access_key = array_key_exists('access_key', $options) ? $options['access_key'] : null; $bucket_name = array_key_exists('bucket_name', $options) ? $options['bucket_name'] : null; $path = array_key_exists('path', $options) ? $options['path'] : 'null'; @@ -2075,10 +2075,6 @@ public function updateLogCloudfilesRequest($options) $formParams['placement'] = ObjectSerializer::toFormValue($placement); } // form params - if ($format_version !== null) { - $formParams['format_version'] = ObjectSerializer::toFormValue($format_version); - } - // form params if ($response_condition !== null) { $formParams['response_condition'] = ObjectSerializer::toFormValue($response_condition); } @@ -2087,6 +2083,10 @@ public function updateLogCloudfilesRequest($options) $formParams['format'] = ObjectSerializer::toFormValue($format); } // form params + if ($format_version !== null) { + $formParams['format_version'] = ObjectSerializer::toFormValue($format_version); + } + // form params if ($message_type !== null) { $formParams['message_type'] = ObjectSerializer::toFormValue($message_type); } @@ -2095,6 +2095,10 @@ public function updateLogCloudfilesRequest($options) $formParams['timestamp_format'] = ObjectSerializer::toFormValue($timestamp_format); } // form params + if ($compression_codec !== null) { + $formParams['compression_codec'] = ObjectSerializer::toFormValue($compression_codec); + } + // form params if ($period !== null) { $formParams['period'] = ObjectSerializer::toFormValue($period); } @@ -2103,10 +2107,6 @@ public function updateLogCloudfilesRequest($options) $formParams['gzip_level'] = ObjectSerializer::toFormValue($gzip_level); } // form params - if ($compression_codec !== null) { - $formParams['compression_codec'] = ObjectSerializer::toFormValue($compression_codec); - } - // form params if ($access_key !== null) { $formParams['access_key'] = ObjectSerializer::toFormValue($access_key); } diff --git a/lib/Api/LoggingDatadogApi.php b/lib/Api/LoggingDatadogApi.php index 1a026a5b..4dfab8ea 100644 --- a/lib/Api/LoggingDatadogApi.php +++ b/lib/Api/LoggingDatadogApi.php @@ -123,9 +123,9 @@ public function getConfig() * @param int $version_id Integer identifying a service version. (required) * @param string $name The name for the real-time logging configuration. (optional) * @param string $placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. (optional) - * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. (optional) * @param string $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). Must produce valid JSON that Datadog can ingest. (optional, default to '{"ddsource":"fastly","service":"%{req.service_id}V","date":"%{begin:%Y-%m-%dT%H:%M:%S%Z}t","time_start":"%{begin:%Y-%m-%dT%H:%M:%S%Z}t","time_end":"%{end:%Y-%m-%dT%H:%M:%S%Z}t","http":{"request_time_ms":"%D","method":"%m","url":"%{json.escape(req.url)}V","useragent":"%{User-Agent}i","referer":"%{Referer}i","protocol":"%H","request_x_forwarded_for":"%{X-Forwarded-For}i","status_code":"%s"},"network":{"client":{"ip":"%h","name":"%{client.as.name}V","number":"%{client.as.number}V","connection_speed":"%{client.geo.conn_speed}V"},"destination":{"ip":"%A"},"geoip":{"geo_city":"%{client.geo.city.utf8}V","geo_country_code":"%{client.geo.country_code}V","geo_continent_code":"%{client.geo.continent_code}V","geo_region":"%{client.geo.region}V"},"bytes_written":"%B","bytes_read":"%{req.body_bytes_read}V"},"host":"%{Fastly-Orig-Host}i","origin_host":"%v","is_ipv6":"%{if(req.is_ipv6, \"true\", \"false\")}V","is_tls":"%{if(req.is_ssl, \"true\", \"false\")}V","tls_client_protocol":"%{json.escape(tls.client.protocol)}V","tls_client_servername":"%{json.escape(tls.client.servername)}V","tls_client_cipher":"%{json.escape(tls.client.cipher)}V","tls_client_cipher_sha":"%{json.escape(tls.client.ciphers_sha)}V","tls_client_tlsexts_sha":"%{json.escape(tls.client.tlsexts_sha)}V","is_h2":"%{if(fastly_info.is_h2, \"true\", \"false\")}V","is_h2_push":"%{if(fastly_info.h2.is_push, \"true\", \"false\")}V","h2_stream_id":"%{fastly_info.h2.stream_id}V","request_accept_content":"%{Accept}i","request_accept_language":"%{Accept-Language}i","request_accept_encoding":"%{Accept-Encoding}i","request_accept_charset":"%{Accept-Charset}i","request_connection":"%{Connection}i","request_dnt":"%{DNT}i","request_forwarded":"%{Forwarded}i","request_via":"%{Via}i","request_cache_control":"%{Cache-Control}i","request_x_requested_with":"%{X-Requested-With}i","request_x_att_device_id":"%{X-ATT-Device-Id}i","content_type":"%{Content-Type}o","is_cacheable":"%{if(fastly_info.state~\"^(HIT|MISS)$\", \"true\", \"false\")}V","response_age":"%{Age}o","response_cache_control":"%{Cache-Control}o","response_expires":"%{Expires}o","response_last_modified":"%{Last-Modified}o","response_tsv":"%{TSV}o","server_datacenter":"%{server.datacenter}V","req_header_size":"%{req.header_bytes_read}V","resp_header_size":"%{resp.header_bytes_written}V","socket_cwnd":"%{client.socket.cwnd}V","socket_nexthop":"%{client.socket.nexthop}V","socket_tcpi_rcv_mss":"%{client.socket.tcpi_rcv_mss}V","socket_tcpi_snd_mss":"%{client.socket.tcpi_snd_mss}V","socket_tcpi_rtt":"%{client.socket.tcpi_rtt}V","socket_tcpi_rttvar":"%{client.socket.tcpi_rttvar}V","socket_tcpi_rcv_rtt":"%{client.socket.tcpi_rcv_rtt}V","socket_tcpi_rcv_space":"%{client.socket.tcpi_rcv_space}V","socket_tcpi_last_data_sent":"%{client.socket.tcpi_last_data_sent}V","socket_tcpi_total_retrans":"%{client.socket.tcpi_total_retrans}V","socket_tcpi_delta_retrans":"%{client.socket.tcpi_delta_retrans}V","socket_ploss":"%{client.socket.ploss}V"}') + * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $region The region that log data will be sent to. (optional, default to 'US') * @param string $token The API key from your Datadog account. Required. (optional) * @@ -153,9 +153,9 @@ public function createLogDatadog($options) * @param int $version_id Integer identifying a service version. (required) * @param string $name The name for the real-time logging configuration. (optional) * @param string $placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. (optional) - * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. (optional) * @param string $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). Must produce valid JSON that Datadog can ingest. (optional, default to '{"ddsource":"fastly","service":"%{req.service_id}V","date":"%{begin:%Y-%m-%dT%H:%M:%S%Z}t","time_start":"%{begin:%Y-%m-%dT%H:%M:%S%Z}t","time_end":"%{end:%Y-%m-%dT%H:%M:%S%Z}t","http":{"request_time_ms":"%D","method":"%m","url":"%{json.escape(req.url)}V","useragent":"%{User-Agent}i","referer":"%{Referer}i","protocol":"%H","request_x_forwarded_for":"%{X-Forwarded-For}i","status_code":"%s"},"network":{"client":{"ip":"%h","name":"%{client.as.name}V","number":"%{client.as.number}V","connection_speed":"%{client.geo.conn_speed}V"},"destination":{"ip":"%A"},"geoip":{"geo_city":"%{client.geo.city.utf8}V","geo_country_code":"%{client.geo.country_code}V","geo_continent_code":"%{client.geo.continent_code}V","geo_region":"%{client.geo.region}V"},"bytes_written":"%B","bytes_read":"%{req.body_bytes_read}V"},"host":"%{Fastly-Orig-Host}i","origin_host":"%v","is_ipv6":"%{if(req.is_ipv6, \"true\", \"false\")}V","is_tls":"%{if(req.is_ssl, \"true\", \"false\")}V","tls_client_protocol":"%{json.escape(tls.client.protocol)}V","tls_client_servername":"%{json.escape(tls.client.servername)}V","tls_client_cipher":"%{json.escape(tls.client.cipher)}V","tls_client_cipher_sha":"%{json.escape(tls.client.ciphers_sha)}V","tls_client_tlsexts_sha":"%{json.escape(tls.client.tlsexts_sha)}V","is_h2":"%{if(fastly_info.is_h2, \"true\", \"false\")}V","is_h2_push":"%{if(fastly_info.h2.is_push, \"true\", \"false\")}V","h2_stream_id":"%{fastly_info.h2.stream_id}V","request_accept_content":"%{Accept}i","request_accept_language":"%{Accept-Language}i","request_accept_encoding":"%{Accept-Encoding}i","request_accept_charset":"%{Accept-Charset}i","request_connection":"%{Connection}i","request_dnt":"%{DNT}i","request_forwarded":"%{Forwarded}i","request_via":"%{Via}i","request_cache_control":"%{Cache-Control}i","request_x_requested_with":"%{X-Requested-With}i","request_x_att_device_id":"%{X-ATT-Device-Id}i","content_type":"%{Content-Type}o","is_cacheable":"%{if(fastly_info.state~\"^(HIT|MISS)$\", \"true\", \"false\")}V","response_age":"%{Age}o","response_cache_control":"%{Cache-Control}o","response_expires":"%{Expires}o","response_last_modified":"%{Last-Modified}o","response_tsv":"%{TSV}o","server_datacenter":"%{server.datacenter}V","req_header_size":"%{req.header_bytes_read}V","resp_header_size":"%{resp.header_bytes_written}V","socket_cwnd":"%{client.socket.cwnd}V","socket_nexthop":"%{client.socket.nexthop}V","socket_tcpi_rcv_mss":"%{client.socket.tcpi_rcv_mss}V","socket_tcpi_snd_mss":"%{client.socket.tcpi_snd_mss}V","socket_tcpi_rtt":"%{client.socket.tcpi_rtt}V","socket_tcpi_rttvar":"%{client.socket.tcpi_rttvar}V","socket_tcpi_rcv_rtt":"%{client.socket.tcpi_rcv_rtt}V","socket_tcpi_rcv_space":"%{client.socket.tcpi_rcv_space}V","socket_tcpi_last_data_sent":"%{client.socket.tcpi_last_data_sent}V","socket_tcpi_total_retrans":"%{client.socket.tcpi_total_retrans}V","socket_tcpi_delta_retrans":"%{client.socket.tcpi_delta_retrans}V","socket_ploss":"%{client.socket.ploss}V"}') + * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $region The region that log data will be sent to. (optional, default to 'US') * @param string $token The API key from your Datadog account. Required. (optional) * @@ -271,9 +271,9 @@ public function createLogDatadogWithHttpInfo($options) * @param int $version_id Integer identifying a service version. (required) * @param string $name The name for the real-time logging configuration. (optional) * @param string $placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. (optional) - * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. (optional) * @param string $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). Must produce valid JSON that Datadog can ingest. (optional, default to '{"ddsource":"fastly","service":"%{req.service_id}V","date":"%{begin:%Y-%m-%dT%H:%M:%S%Z}t","time_start":"%{begin:%Y-%m-%dT%H:%M:%S%Z}t","time_end":"%{end:%Y-%m-%dT%H:%M:%S%Z}t","http":{"request_time_ms":"%D","method":"%m","url":"%{json.escape(req.url)}V","useragent":"%{User-Agent}i","referer":"%{Referer}i","protocol":"%H","request_x_forwarded_for":"%{X-Forwarded-For}i","status_code":"%s"},"network":{"client":{"ip":"%h","name":"%{client.as.name}V","number":"%{client.as.number}V","connection_speed":"%{client.geo.conn_speed}V"},"destination":{"ip":"%A"},"geoip":{"geo_city":"%{client.geo.city.utf8}V","geo_country_code":"%{client.geo.country_code}V","geo_continent_code":"%{client.geo.continent_code}V","geo_region":"%{client.geo.region}V"},"bytes_written":"%B","bytes_read":"%{req.body_bytes_read}V"},"host":"%{Fastly-Orig-Host}i","origin_host":"%v","is_ipv6":"%{if(req.is_ipv6, \"true\", \"false\")}V","is_tls":"%{if(req.is_ssl, \"true\", \"false\")}V","tls_client_protocol":"%{json.escape(tls.client.protocol)}V","tls_client_servername":"%{json.escape(tls.client.servername)}V","tls_client_cipher":"%{json.escape(tls.client.cipher)}V","tls_client_cipher_sha":"%{json.escape(tls.client.ciphers_sha)}V","tls_client_tlsexts_sha":"%{json.escape(tls.client.tlsexts_sha)}V","is_h2":"%{if(fastly_info.is_h2, \"true\", \"false\")}V","is_h2_push":"%{if(fastly_info.h2.is_push, \"true\", \"false\")}V","h2_stream_id":"%{fastly_info.h2.stream_id}V","request_accept_content":"%{Accept}i","request_accept_language":"%{Accept-Language}i","request_accept_encoding":"%{Accept-Encoding}i","request_accept_charset":"%{Accept-Charset}i","request_connection":"%{Connection}i","request_dnt":"%{DNT}i","request_forwarded":"%{Forwarded}i","request_via":"%{Via}i","request_cache_control":"%{Cache-Control}i","request_x_requested_with":"%{X-Requested-With}i","request_x_att_device_id":"%{X-ATT-Device-Id}i","content_type":"%{Content-Type}o","is_cacheable":"%{if(fastly_info.state~\"^(HIT|MISS)$\", \"true\", \"false\")}V","response_age":"%{Age}o","response_cache_control":"%{Cache-Control}o","response_expires":"%{Expires}o","response_last_modified":"%{Last-Modified}o","response_tsv":"%{TSV}o","server_datacenter":"%{server.datacenter}V","req_header_size":"%{req.header_bytes_read}V","resp_header_size":"%{resp.header_bytes_written}V","socket_cwnd":"%{client.socket.cwnd}V","socket_nexthop":"%{client.socket.nexthop}V","socket_tcpi_rcv_mss":"%{client.socket.tcpi_rcv_mss}V","socket_tcpi_snd_mss":"%{client.socket.tcpi_snd_mss}V","socket_tcpi_rtt":"%{client.socket.tcpi_rtt}V","socket_tcpi_rttvar":"%{client.socket.tcpi_rttvar}V","socket_tcpi_rcv_rtt":"%{client.socket.tcpi_rcv_rtt}V","socket_tcpi_rcv_space":"%{client.socket.tcpi_rcv_space}V","socket_tcpi_last_data_sent":"%{client.socket.tcpi_last_data_sent}V","socket_tcpi_total_retrans":"%{client.socket.tcpi_total_retrans}V","socket_tcpi_delta_retrans":"%{client.socket.tcpi_delta_retrans}V","socket_ploss":"%{client.socket.ploss}V"}') + * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $region The region that log data will be sent to. (optional, default to 'US') * @param string $token The API key from your Datadog account. Required. (optional) * @@ -304,9 +304,9 @@ function ($response) { * @param int $version_id Integer identifying a service version. (required) * @param string $name The name for the real-time logging configuration. (optional) * @param string $placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. (optional) - * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. (optional) * @param string $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). Must produce valid JSON that Datadog can ingest. (optional, default to '{"ddsource":"fastly","service":"%{req.service_id}V","date":"%{begin:%Y-%m-%dT%H:%M:%S%Z}t","time_start":"%{begin:%Y-%m-%dT%H:%M:%S%Z}t","time_end":"%{end:%Y-%m-%dT%H:%M:%S%Z}t","http":{"request_time_ms":"%D","method":"%m","url":"%{json.escape(req.url)}V","useragent":"%{User-Agent}i","referer":"%{Referer}i","protocol":"%H","request_x_forwarded_for":"%{X-Forwarded-For}i","status_code":"%s"},"network":{"client":{"ip":"%h","name":"%{client.as.name}V","number":"%{client.as.number}V","connection_speed":"%{client.geo.conn_speed}V"},"destination":{"ip":"%A"},"geoip":{"geo_city":"%{client.geo.city.utf8}V","geo_country_code":"%{client.geo.country_code}V","geo_continent_code":"%{client.geo.continent_code}V","geo_region":"%{client.geo.region}V"},"bytes_written":"%B","bytes_read":"%{req.body_bytes_read}V"},"host":"%{Fastly-Orig-Host}i","origin_host":"%v","is_ipv6":"%{if(req.is_ipv6, \"true\", \"false\")}V","is_tls":"%{if(req.is_ssl, \"true\", \"false\")}V","tls_client_protocol":"%{json.escape(tls.client.protocol)}V","tls_client_servername":"%{json.escape(tls.client.servername)}V","tls_client_cipher":"%{json.escape(tls.client.cipher)}V","tls_client_cipher_sha":"%{json.escape(tls.client.ciphers_sha)}V","tls_client_tlsexts_sha":"%{json.escape(tls.client.tlsexts_sha)}V","is_h2":"%{if(fastly_info.is_h2, \"true\", \"false\")}V","is_h2_push":"%{if(fastly_info.h2.is_push, \"true\", \"false\")}V","h2_stream_id":"%{fastly_info.h2.stream_id}V","request_accept_content":"%{Accept}i","request_accept_language":"%{Accept-Language}i","request_accept_encoding":"%{Accept-Encoding}i","request_accept_charset":"%{Accept-Charset}i","request_connection":"%{Connection}i","request_dnt":"%{DNT}i","request_forwarded":"%{Forwarded}i","request_via":"%{Via}i","request_cache_control":"%{Cache-Control}i","request_x_requested_with":"%{X-Requested-With}i","request_x_att_device_id":"%{X-ATT-Device-Id}i","content_type":"%{Content-Type}o","is_cacheable":"%{if(fastly_info.state~\"^(HIT|MISS)$\", \"true\", \"false\")}V","response_age":"%{Age}o","response_cache_control":"%{Cache-Control}o","response_expires":"%{Expires}o","response_last_modified":"%{Last-Modified}o","response_tsv":"%{TSV}o","server_datacenter":"%{server.datacenter}V","req_header_size":"%{req.header_bytes_read}V","resp_header_size":"%{resp.header_bytes_written}V","socket_cwnd":"%{client.socket.cwnd}V","socket_nexthop":"%{client.socket.nexthop}V","socket_tcpi_rcv_mss":"%{client.socket.tcpi_rcv_mss}V","socket_tcpi_snd_mss":"%{client.socket.tcpi_snd_mss}V","socket_tcpi_rtt":"%{client.socket.tcpi_rtt}V","socket_tcpi_rttvar":"%{client.socket.tcpi_rttvar}V","socket_tcpi_rcv_rtt":"%{client.socket.tcpi_rcv_rtt}V","socket_tcpi_rcv_space":"%{client.socket.tcpi_rcv_space}V","socket_tcpi_last_data_sent":"%{client.socket.tcpi_last_data_sent}V","socket_tcpi_total_retrans":"%{client.socket.tcpi_total_retrans}V","socket_tcpi_delta_retrans":"%{client.socket.tcpi_delta_retrans}V","socket_ploss":"%{client.socket.ploss}V"}') + * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $region The region that log data will be sent to. (optional, default to 'US') * @param string $token The API key from your Datadog account. Required. (optional) * @@ -363,9 +363,9 @@ function ($exception) { * @param int $version_id Integer identifying a service version. (required) * @param string $name The name for the real-time logging configuration. (optional) * @param string $placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. (optional) - * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. (optional) * @param string $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). Must produce valid JSON that Datadog can ingest. (optional, default to '{"ddsource":"fastly","service":"%{req.service_id}V","date":"%{begin:%Y-%m-%dT%H:%M:%S%Z}t","time_start":"%{begin:%Y-%m-%dT%H:%M:%S%Z}t","time_end":"%{end:%Y-%m-%dT%H:%M:%S%Z}t","http":{"request_time_ms":"%D","method":"%m","url":"%{json.escape(req.url)}V","useragent":"%{User-Agent}i","referer":"%{Referer}i","protocol":"%H","request_x_forwarded_for":"%{X-Forwarded-For}i","status_code":"%s"},"network":{"client":{"ip":"%h","name":"%{client.as.name}V","number":"%{client.as.number}V","connection_speed":"%{client.geo.conn_speed}V"},"destination":{"ip":"%A"},"geoip":{"geo_city":"%{client.geo.city.utf8}V","geo_country_code":"%{client.geo.country_code}V","geo_continent_code":"%{client.geo.continent_code}V","geo_region":"%{client.geo.region}V"},"bytes_written":"%B","bytes_read":"%{req.body_bytes_read}V"},"host":"%{Fastly-Orig-Host}i","origin_host":"%v","is_ipv6":"%{if(req.is_ipv6, \"true\", \"false\")}V","is_tls":"%{if(req.is_ssl, \"true\", \"false\")}V","tls_client_protocol":"%{json.escape(tls.client.protocol)}V","tls_client_servername":"%{json.escape(tls.client.servername)}V","tls_client_cipher":"%{json.escape(tls.client.cipher)}V","tls_client_cipher_sha":"%{json.escape(tls.client.ciphers_sha)}V","tls_client_tlsexts_sha":"%{json.escape(tls.client.tlsexts_sha)}V","is_h2":"%{if(fastly_info.is_h2, \"true\", \"false\")}V","is_h2_push":"%{if(fastly_info.h2.is_push, \"true\", \"false\")}V","h2_stream_id":"%{fastly_info.h2.stream_id}V","request_accept_content":"%{Accept}i","request_accept_language":"%{Accept-Language}i","request_accept_encoding":"%{Accept-Encoding}i","request_accept_charset":"%{Accept-Charset}i","request_connection":"%{Connection}i","request_dnt":"%{DNT}i","request_forwarded":"%{Forwarded}i","request_via":"%{Via}i","request_cache_control":"%{Cache-Control}i","request_x_requested_with":"%{X-Requested-With}i","request_x_att_device_id":"%{X-ATT-Device-Id}i","content_type":"%{Content-Type}o","is_cacheable":"%{if(fastly_info.state~\"^(HIT|MISS)$\", \"true\", \"false\")}V","response_age":"%{Age}o","response_cache_control":"%{Cache-Control}o","response_expires":"%{Expires}o","response_last_modified":"%{Last-Modified}o","response_tsv":"%{TSV}o","server_datacenter":"%{server.datacenter}V","req_header_size":"%{req.header_bytes_read}V","resp_header_size":"%{resp.header_bytes_written}V","socket_cwnd":"%{client.socket.cwnd}V","socket_nexthop":"%{client.socket.nexthop}V","socket_tcpi_rcv_mss":"%{client.socket.tcpi_rcv_mss}V","socket_tcpi_snd_mss":"%{client.socket.tcpi_snd_mss}V","socket_tcpi_rtt":"%{client.socket.tcpi_rtt}V","socket_tcpi_rttvar":"%{client.socket.tcpi_rttvar}V","socket_tcpi_rcv_rtt":"%{client.socket.tcpi_rcv_rtt}V","socket_tcpi_rcv_space":"%{client.socket.tcpi_rcv_space}V","socket_tcpi_last_data_sent":"%{client.socket.tcpi_last_data_sent}V","socket_tcpi_total_retrans":"%{client.socket.tcpi_total_retrans}V","socket_tcpi_delta_retrans":"%{client.socket.tcpi_delta_retrans}V","socket_ploss":"%{client.socket.ploss}V"}') + * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $region The region that log data will be sent to. (optional, default to 'US') * @param string $token The API key from your Datadog account. Required. (optional) * @@ -379,9 +379,9 @@ public function createLogDatadogRequest($options) $version_id = array_key_exists('version_id', $options) ? $options['version_id'] : null; $name = array_key_exists('name', $options) ? $options['name'] : null; $placement = array_key_exists('placement', $options) ? $options['placement'] : null; - $format_version = array_key_exists('format_version', $options) ? $options['format_version'] : self::FORMAT_VERSION_v2; $response_condition = array_key_exists('response_condition', $options) ? $options['response_condition'] : null; $format = array_key_exists('format', $options) ? $options['format'] : '{"ddsource":"fastly","service":"%{req.service_id}V","date":"%{begin:%Y-%m-%dT%H:%M:%S%Z}t","time_start":"%{begin:%Y-%m-%dT%H:%M:%S%Z}t","time_end":"%{end:%Y-%m-%dT%H:%M:%S%Z}t","http":{"request_time_ms":"%D","method":"%m","url":"%{json.escape(req.url)}V","useragent":"%{User-Agent}i","referer":"%{Referer}i","protocol":"%H","request_x_forwarded_for":"%{X-Forwarded-For}i","status_code":"%s"},"network":{"client":{"ip":"%h","name":"%{client.as.name}V","number":"%{client.as.number}V","connection_speed":"%{client.geo.conn_speed}V"},"destination":{"ip":"%A"},"geoip":{"geo_city":"%{client.geo.city.utf8}V","geo_country_code":"%{client.geo.country_code}V","geo_continent_code":"%{client.geo.continent_code}V","geo_region":"%{client.geo.region}V"},"bytes_written":"%B","bytes_read":"%{req.body_bytes_read}V"},"host":"%{Fastly-Orig-Host}i","origin_host":"%v","is_ipv6":"%{if(req.is_ipv6, \"true\", \"false\")}V","is_tls":"%{if(req.is_ssl, \"true\", \"false\")}V","tls_client_protocol":"%{json.escape(tls.client.protocol)}V","tls_client_servername":"%{json.escape(tls.client.servername)}V","tls_client_cipher":"%{json.escape(tls.client.cipher)}V","tls_client_cipher_sha":"%{json.escape(tls.client.ciphers_sha)}V","tls_client_tlsexts_sha":"%{json.escape(tls.client.tlsexts_sha)}V","is_h2":"%{if(fastly_info.is_h2, \"true\", \"false\")}V","is_h2_push":"%{if(fastly_info.h2.is_push, \"true\", \"false\")}V","h2_stream_id":"%{fastly_info.h2.stream_id}V","request_accept_content":"%{Accept}i","request_accept_language":"%{Accept-Language}i","request_accept_encoding":"%{Accept-Encoding}i","request_accept_charset":"%{Accept-Charset}i","request_connection":"%{Connection}i","request_dnt":"%{DNT}i","request_forwarded":"%{Forwarded}i","request_via":"%{Via}i","request_cache_control":"%{Cache-Control}i","request_x_requested_with":"%{X-Requested-With}i","request_x_att_device_id":"%{X-ATT-Device-Id}i","content_type":"%{Content-Type}o","is_cacheable":"%{if(fastly_info.state~\"^(HIT|MISS)$\", \"true\", \"false\")}V","response_age":"%{Age}o","response_cache_control":"%{Cache-Control}o","response_expires":"%{Expires}o","response_last_modified":"%{Last-Modified}o","response_tsv":"%{TSV}o","server_datacenter":"%{server.datacenter}V","req_header_size":"%{req.header_bytes_read}V","resp_header_size":"%{resp.header_bytes_written}V","socket_cwnd":"%{client.socket.cwnd}V","socket_nexthop":"%{client.socket.nexthop}V","socket_tcpi_rcv_mss":"%{client.socket.tcpi_rcv_mss}V","socket_tcpi_snd_mss":"%{client.socket.tcpi_snd_mss}V","socket_tcpi_rtt":"%{client.socket.tcpi_rtt}V","socket_tcpi_rttvar":"%{client.socket.tcpi_rttvar}V","socket_tcpi_rcv_rtt":"%{client.socket.tcpi_rcv_rtt}V","socket_tcpi_rcv_space":"%{client.socket.tcpi_rcv_space}V","socket_tcpi_last_data_sent":"%{client.socket.tcpi_last_data_sent}V","socket_tcpi_total_retrans":"%{client.socket.tcpi_total_retrans}V","socket_tcpi_delta_retrans":"%{client.socket.tcpi_delta_retrans}V","socket_ploss":"%{client.socket.ploss}V"}'; + $format_version = array_key_exists('format_version', $options) ? $options['format_version'] : self::FORMAT_VERSION_v2; $region = array_key_exists('region', $options) ? $options['region'] : 'US'; $token = array_key_exists('token', $options) ? $options['token'] : null; @@ -433,10 +433,6 @@ public function createLogDatadogRequest($options) $formParams['placement'] = ObjectSerializer::toFormValue($placement); } // form params - if ($format_version !== null) { - $formParams['format_version'] = ObjectSerializer::toFormValue($format_version); - } - // form params if ($response_condition !== null) { $formParams['response_condition'] = ObjectSerializer::toFormValue($response_condition); } @@ -445,6 +441,10 @@ public function createLogDatadogRequest($options) $formParams['format'] = ObjectSerializer::toFormValue($format); } // form params + if ($format_version !== null) { + $formParams['format_version'] = ObjectSerializer::toFormValue($format_version); + } + // form params if ($region !== null) { $formParams['region'] = ObjectSerializer::toFormValue($region); } @@ -1602,9 +1602,9 @@ public function listLogDatadogRequest($options) * @param string $logging_datadog_name The name for the real-time logging configuration. (required) * @param string $name The name for the real-time logging configuration. (optional) * @param string $placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. (optional) - * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. (optional) * @param string $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). Must produce valid JSON that Datadog can ingest. (optional, default to '{"ddsource":"fastly","service":"%{req.service_id}V","date":"%{begin:%Y-%m-%dT%H:%M:%S%Z}t","time_start":"%{begin:%Y-%m-%dT%H:%M:%S%Z}t","time_end":"%{end:%Y-%m-%dT%H:%M:%S%Z}t","http":{"request_time_ms":"%D","method":"%m","url":"%{json.escape(req.url)}V","useragent":"%{User-Agent}i","referer":"%{Referer}i","protocol":"%H","request_x_forwarded_for":"%{X-Forwarded-For}i","status_code":"%s"},"network":{"client":{"ip":"%h","name":"%{client.as.name}V","number":"%{client.as.number}V","connection_speed":"%{client.geo.conn_speed}V"},"destination":{"ip":"%A"},"geoip":{"geo_city":"%{client.geo.city.utf8}V","geo_country_code":"%{client.geo.country_code}V","geo_continent_code":"%{client.geo.continent_code}V","geo_region":"%{client.geo.region}V"},"bytes_written":"%B","bytes_read":"%{req.body_bytes_read}V"},"host":"%{Fastly-Orig-Host}i","origin_host":"%v","is_ipv6":"%{if(req.is_ipv6, \"true\", \"false\")}V","is_tls":"%{if(req.is_ssl, \"true\", \"false\")}V","tls_client_protocol":"%{json.escape(tls.client.protocol)}V","tls_client_servername":"%{json.escape(tls.client.servername)}V","tls_client_cipher":"%{json.escape(tls.client.cipher)}V","tls_client_cipher_sha":"%{json.escape(tls.client.ciphers_sha)}V","tls_client_tlsexts_sha":"%{json.escape(tls.client.tlsexts_sha)}V","is_h2":"%{if(fastly_info.is_h2, \"true\", \"false\")}V","is_h2_push":"%{if(fastly_info.h2.is_push, \"true\", \"false\")}V","h2_stream_id":"%{fastly_info.h2.stream_id}V","request_accept_content":"%{Accept}i","request_accept_language":"%{Accept-Language}i","request_accept_encoding":"%{Accept-Encoding}i","request_accept_charset":"%{Accept-Charset}i","request_connection":"%{Connection}i","request_dnt":"%{DNT}i","request_forwarded":"%{Forwarded}i","request_via":"%{Via}i","request_cache_control":"%{Cache-Control}i","request_x_requested_with":"%{X-Requested-With}i","request_x_att_device_id":"%{X-ATT-Device-Id}i","content_type":"%{Content-Type}o","is_cacheable":"%{if(fastly_info.state~\"^(HIT|MISS)$\", \"true\", \"false\")}V","response_age":"%{Age}o","response_cache_control":"%{Cache-Control}o","response_expires":"%{Expires}o","response_last_modified":"%{Last-Modified}o","response_tsv":"%{TSV}o","server_datacenter":"%{server.datacenter}V","req_header_size":"%{req.header_bytes_read}V","resp_header_size":"%{resp.header_bytes_written}V","socket_cwnd":"%{client.socket.cwnd}V","socket_nexthop":"%{client.socket.nexthop}V","socket_tcpi_rcv_mss":"%{client.socket.tcpi_rcv_mss}V","socket_tcpi_snd_mss":"%{client.socket.tcpi_snd_mss}V","socket_tcpi_rtt":"%{client.socket.tcpi_rtt}V","socket_tcpi_rttvar":"%{client.socket.tcpi_rttvar}V","socket_tcpi_rcv_rtt":"%{client.socket.tcpi_rcv_rtt}V","socket_tcpi_rcv_space":"%{client.socket.tcpi_rcv_space}V","socket_tcpi_last_data_sent":"%{client.socket.tcpi_last_data_sent}V","socket_tcpi_total_retrans":"%{client.socket.tcpi_total_retrans}V","socket_tcpi_delta_retrans":"%{client.socket.tcpi_delta_retrans}V","socket_ploss":"%{client.socket.ploss}V"}') + * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $region The region that log data will be sent to. (optional, default to 'US') * @param string $token The API key from your Datadog account. Required. (optional) * @@ -1633,9 +1633,9 @@ public function updateLogDatadog($options) * @param string $logging_datadog_name The name for the real-time logging configuration. (required) * @param string $name The name for the real-time logging configuration. (optional) * @param string $placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. (optional) - * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. (optional) * @param string $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). Must produce valid JSON that Datadog can ingest. (optional, default to '{"ddsource":"fastly","service":"%{req.service_id}V","date":"%{begin:%Y-%m-%dT%H:%M:%S%Z}t","time_start":"%{begin:%Y-%m-%dT%H:%M:%S%Z}t","time_end":"%{end:%Y-%m-%dT%H:%M:%S%Z}t","http":{"request_time_ms":"%D","method":"%m","url":"%{json.escape(req.url)}V","useragent":"%{User-Agent}i","referer":"%{Referer}i","protocol":"%H","request_x_forwarded_for":"%{X-Forwarded-For}i","status_code":"%s"},"network":{"client":{"ip":"%h","name":"%{client.as.name}V","number":"%{client.as.number}V","connection_speed":"%{client.geo.conn_speed}V"},"destination":{"ip":"%A"},"geoip":{"geo_city":"%{client.geo.city.utf8}V","geo_country_code":"%{client.geo.country_code}V","geo_continent_code":"%{client.geo.continent_code}V","geo_region":"%{client.geo.region}V"},"bytes_written":"%B","bytes_read":"%{req.body_bytes_read}V"},"host":"%{Fastly-Orig-Host}i","origin_host":"%v","is_ipv6":"%{if(req.is_ipv6, \"true\", \"false\")}V","is_tls":"%{if(req.is_ssl, \"true\", \"false\")}V","tls_client_protocol":"%{json.escape(tls.client.protocol)}V","tls_client_servername":"%{json.escape(tls.client.servername)}V","tls_client_cipher":"%{json.escape(tls.client.cipher)}V","tls_client_cipher_sha":"%{json.escape(tls.client.ciphers_sha)}V","tls_client_tlsexts_sha":"%{json.escape(tls.client.tlsexts_sha)}V","is_h2":"%{if(fastly_info.is_h2, \"true\", \"false\")}V","is_h2_push":"%{if(fastly_info.h2.is_push, \"true\", \"false\")}V","h2_stream_id":"%{fastly_info.h2.stream_id}V","request_accept_content":"%{Accept}i","request_accept_language":"%{Accept-Language}i","request_accept_encoding":"%{Accept-Encoding}i","request_accept_charset":"%{Accept-Charset}i","request_connection":"%{Connection}i","request_dnt":"%{DNT}i","request_forwarded":"%{Forwarded}i","request_via":"%{Via}i","request_cache_control":"%{Cache-Control}i","request_x_requested_with":"%{X-Requested-With}i","request_x_att_device_id":"%{X-ATT-Device-Id}i","content_type":"%{Content-Type}o","is_cacheable":"%{if(fastly_info.state~\"^(HIT|MISS)$\", \"true\", \"false\")}V","response_age":"%{Age}o","response_cache_control":"%{Cache-Control}o","response_expires":"%{Expires}o","response_last_modified":"%{Last-Modified}o","response_tsv":"%{TSV}o","server_datacenter":"%{server.datacenter}V","req_header_size":"%{req.header_bytes_read}V","resp_header_size":"%{resp.header_bytes_written}V","socket_cwnd":"%{client.socket.cwnd}V","socket_nexthop":"%{client.socket.nexthop}V","socket_tcpi_rcv_mss":"%{client.socket.tcpi_rcv_mss}V","socket_tcpi_snd_mss":"%{client.socket.tcpi_snd_mss}V","socket_tcpi_rtt":"%{client.socket.tcpi_rtt}V","socket_tcpi_rttvar":"%{client.socket.tcpi_rttvar}V","socket_tcpi_rcv_rtt":"%{client.socket.tcpi_rcv_rtt}V","socket_tcpi_rcv_space":"%{client.socket.tcpi_rcv_space}V","socket_tcpi_last_data_sent":"%{client.socket.tcpi_last_data_sent}V","socket_tcpi_total_retrans":"%{client.socket.tcpi_total_retrans}V","socket_tcpi_delta_retrans":"%{client.socket.tcpi_delta_retrans}V","socket_ploss":"%{client.socket.ploss}V"}') + * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $region The region that log data will be sent to. (optional, default to 'US') * @param string $token The API key from your Datadog account. Required. (optional) * @@ -1752,9 +1752,9 @@ public function updateLogDatadogWithHttpInfo($options) * @param string $logging_datadog_name The name for the real-time logging configuration. (required) * @param string $name The name for the real-time logging configuration. (optional) * @param string $placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. (optional) - * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. (optional) * @param string $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). Must produce valid JSON that Datadog can ingest. (optional, default to '{"ddsource":"fastly","service":"%{req.service_id}V","date":"%{begin:%Y-%m-%dT%H:%M:%S%Z}t","time_start":"%{begin:%Y-%m-%dT%H:%M:%S%Z}t","time_end":"%{end:%Y-%m-%dT%H:%M:%S%Z}t","http":{"request_time_ms":"%D","method":"%m","url":"%{json.escape(req.url)}V","useragent":"%{User-Agent}i","referer":"%{Referer}i","protocol":"%H","request_x_forwarded_for":"%{X-Forwarded-For}i","status_code":"%s"},"network":{"client":{"ip":"%h","name":"%{client.as.name}V","number":"%{client.as.number}V","connection_speed":"%{client.geo.conn_speed}V"},"destination":{"ip":"%A"},"geoip":{"geo_city":"%{client.geo.city.utf8}V","geo_country_code":"%{client.geo.country_code}V","geo_continent_code":"%{client.geo.continent_code}V","geo_region":"%{client.geo.region}V"},"bytes_written":"%B","bytes_read":"%{req.body_bytes_read}V"},"host":"%{Fastly-Orig-Host}i","origin_host":"%v","is_ipv6":"%{if(req.is_ipv6, \"true\", \"false\")}V","is_tls":"%{if(req.is_ssl, \"true\", \"false\")}V","tls_client_protocol":"%{json.escape(tls.client.protocol)}V","tls_client_servername":"%{json.escape(tls.client.servername)}V","tls_client_cipher":"%{json.escape(tls.client.cipher)}V","tls_client_cipher_sha":"%{json.escape(tls.client.ciphers_sha)}V","tls_client_tlsexts_sha":"%{json.escape(tls.client.tlsexts_sha)}V","is_h2":"%{if(fastly_info.is_h2, \"true\", \"false\")}V","is_h2_push":"%{if(fastly_info.h2.is_push, \"true\", \"false\")}V","h2_stream_id":"%{fastly_info.h2.stream_id}V","request_accept_content":"%{Accept}i","request_accept_language":"%{Accept-Language}i","request_accept_encoding":"%{Accept-Encoding}i","request_accept_charset":"%{Accept-Charset}i","request_connection":"%{Connection}i","request_dnt":"%{DNT}i","request_forwarded":"%{Forwarded}i","request_via":"%{Via}i","request_cache_control":"%{Cache-Control}i","request_x_requested_with":"%{X-Requested-With}i","request_x_att_device_id":"%{X-ATT-Device-Id}i","content_type":"%{Content-Type}o","is_cacheable":"%{if(fastly_info.state~\"^(HIT|MISS)$\", \"true\", \"false\")}V","response_age":"%{Age}o","response_cache_control":"%{Cache-Control}o","response_expires":"%{Expires}o","response_last_modified":"%{Last-Modified}o","response_tsv":"%{TSV}o","server_datacenter":"%{server.datacenter}V","req_header_size":"%{req.header_bytes_read}V","resp_header_size":"%{resp.header_bytes_written}V","socket_cwnd":"%{client.socket.cwnd}V","socket_nexthop":"%{client.socket.nexthop}V","socket_tcpi_rcv_mss":"%{client.socket.tcpi_rcv_mss}V","socket_tcpi_snd_mss":"%{client.socket.tcpi_snd_mss}V","socket_tcpi_rtt":"%{client.socket.tcpi_rtt}V","socket_tcpi_rttvar":"%{client.socket.tcpi_rttvar}V","socket_tcpi_rcv_rtt":"%{client.socket.tcpi_rcv_rtt}V","socket_tcpi_rcv_space":"%{client.socket.tcpi_rcv_space}V","socket_tcpi_last_data_sent":"%{client.socket.tcpi_last_data_sent}V","socket_tcpi_total_retrans":"%{client.socket.tcpi_total_retrans}V","socket_tcpi_delta_retrans":"%{client.socket.tcpi_delta_retrans}V","socket_ploss":"%{client.socket.ploss}V"}') + * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $region The region that log data will be sent to. (optional, default to 'US') * @param string $token The API key from your Datadog account. Required. (optional) * @@ -1786,9 +1786,9 @@ function ($response) { * @param string $logging_datadog_name The name for the real-time logging configuration. (required) * @param string $name The name for the real-time logging configuration. (optional) * @param string $placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. (optional) - * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. (optional) * @param string $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). Must produce valid JSON that Datadog can ingest. (optional, default to '{"ddsource":"fastly","service":"%{req.service_id}V","date":"%{begin:%Y-%m-%dT%H:%M:%S%Z}t","time_start":"%{begin:%Y-%m-%dT%H:%M:%S%Z}t","time_end":"%{end:%Y-%m-%dT%H:%M:%S%Z}t","http":{"request_time_ms":"%D","method":"%m","url":"%{json.escape(req.url)}V","useragent":"%{User-Agent}i","referer":"%{Referer}i","protocol":"%H","request_x_forwarded_for":"%{X-Forwarded-For}i","status_code":"%s"},"network":{"client":{"ip":"%h","name":"%{client.as.name}V","number":"%{client.as.number}V","connection_speed":"%{client.geo.conn_speed}V"},"destination":{"ip":"%A"},"geoip":{"geo_city":"%{client.geo.city.utf8}V","geo_country_code":"%{client.geo.country_code}V","geo_continent_code":"%{client.geo.continent_code}V","geo_region":"%{client.geo.region}V"},"bytes_written":"%B","bytes_read":"%{req.body_bytes_read}V"},"host":"%{Fastly-Orig-Host}i","origin_host":"%v","is_ipv6":"%{if(req.is_ipv6, \"true\", \"false\")}V","is_tls":"%{if(req.is_ssl, \"true\", \"false\")}V","tls_client_protocol":"%{json.escape(tls.client.protocol)}V","tls_client_servername":"%{json.escape(tls.client.servername)}V","tls_client_cipher":"%{json.escape(tls.client.cipher)}V","tls_client_cipher_sha":"%{json.escape(tls.client.ciphers_sha)}V","tls_client_tlsexts_sha":"%{json.escape(tls.client.tlsexts_sha)}V","is_h2":"%{if(fastly_info.is_h2, \"true\", \"false\")}V","is_h2_push":"%{if(fastly_info.h2.is_push, \"true\", \"false\")}V","h2_stream_id":"%{fastly_info.h2.stream_id}V","request_accept_content":"%{Accept}i","request_accept_language":"%{Accept-Language}i","request_accept_encoding":"%{Accept-Encoding}i","request_accept_charset":"%{Accept-Charset}i","request_connection":"%{Connection}i","request_dnt":"%{DNT}i","request_forwarded":"%{Forwarded}i","request_via":"%{Via}i","request_cache_control":"%{Cache-Control}i","request_x_requested_with":"%{X-Requested-With}i","request_x_att_device_id":"%{X-ATT-Device-Id}i","content_type":"%{Content-Type}o","is_cacheable":"%{if(fastly_info.state~\"^(HIT|MISS)$\", \"true\", \"false\")}V","response_age":"%{Age}o","response_cache_control":"%{Cache-Control}o","response_expires":"%{Expires}o","response_last_modified":"%{Last-Modified}o","response_tsv":"%{TSV}o","server_datacenter":"%{server.datacenter}V","req_header_size":"%{req.header_bytes_read}V","resp_header_size":"%{resp.header_bytes_written}V","socket_cwnd":"%{client.socket.cwnd}V","socket_nexthop":"%{client.socket.nexthop}V","socket_tcpi_rcv_mss":"%{client.socket.tcpi_rcv_mss}V","socket_tcpi_snd_mss":"%{client.socket.tcpi_snd_mss}V","socket_tcpi_rtt":"%{client.socket.tcpi_rtt}V","socket_tcpi_rttvar":"%{client.socket.tcpi_rttvar}V","socket_tcpi_rcv_rtt":"%{client.socket.tcpi_rcv_rtt}V","socket_tcpi_rcv_space":"%{client.socket.tcpi_rcv_space}V","socket_tcpi_last_data_sent":"%{client.socket.tcpi_last_data_sent}V","socket_tcpi_total_retrans":"%{client.socket.tcpi_total_retrans}V","socket_tcpi_delta_retrans":"%{client.socket.tcpi_delta_retrans}V","socket_ploss":"%{client.socket.ploss}V"}') + * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $region The region that log data will be sent to. (optional, default to 'US') * @param string $token The API key from your Datadog account. Required. (optional) * @@ -1846,9 +1846,9 @@ function ($exception) { * @param string $logging_datadog_name The name for the real-time logging configuration. (required) * @param string $name The name for the real-time logging configuration. (optional) * @param string $placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. (optional) - * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. (optional) * @param string $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). Must produce valid JSON that Datadog can ingest. (optional, default to '{"ddsource":"fastly","service":"%{req.service_id}V","date":"%{begin:%Y-%m-%dT%H:%M:%S%Z}t","time_start":"%{begin:%Y-%m-%dT%H:%M:%S%Z}t","time_end":"%{end:%Y-%m-%dT%H:%M:%S%Z}t","http":{"request_time_ms":"%D","method":"%m","url":"%{json.escape(req.url)}V","useragent":"%{User-Agent}i","referer":"%{Referer}i","protocol":"%H","request_x_forwarded_for":"%{X-Forwarded-For}i","status_code":"%s"},"network":{"client":{"ip":"%h","name":"%{client.as.name}V","number":"%{client.as.number}V","connection_speed":"%{client.geo.conn_speed}V"},"destination":{"ip":"%A"},"geoip":{"geo_city":"%{client.geo.city.utf8}V","geo_country_code":"%{client.geo.country_code}V","geo_continent_code":"%{client.geo.continent_code}V","geo_region":"%{client.geo.region}V"},"bytes_written":"%B","bytes_read":"%{req.body_bytes_read}V"},"host":"%{Fastly-Orig-Host}i","origin_host":"%v","is_ipv6":"%{if(req.is_ipv6, \"true\", \"false\")}V","is_tls":"%{if(req.is_ssl, \"true\", \"false\")}V","tls_client_protocol":"%{json.escape(tls.client.protocol)}V","tls_client_servername":"%{json.escape(tls.client.servername)}V","tls_client_cipher":"%{json.escape(tls.client.cipher)}V","tls_client_cipher_sha":"%{json.escape(tls.client.ciphers_sha)}V","tls_client_tlsexts_sha":"%{json.escape(tls.client.tlsexts_sha)}V","is_h2":"%{if(fastly_info.is_h2, \"true\", \"false\")}V","is_h2_push":"%{if(fastly_info.h2.is_push, \"true\", \"false\")}V","h2_stream_id":"%{fastly_info.h2.stream_id}V","request_accept_content":"%{Accept}i","request_accept_language":"%{Accept-Language}i","request_accept_encoding":"%{Accept-Encoding}i","request_accept_charset":"%{Accept-Charset}i","request_connection":"%{Connection}i","request_dnt":"%{DNT}i","request_forwarded":"%{Forwarded}i","request_via":"%{Via}i","request_cache_control":"%{Cache-Control}i","request_x_requested_with":"%{X-Requested-With}i","request_x_att_device_id":"%{X-ATT-Device-Id}i","content_type":"%{Content-Type}o","is_cacheable":"%{if(fastly_info.state~\"^(HIT|MISS)$\", \"true\", \"false\")}V","response_age":"%{Age}o","response_cache_control":"%{Cache-Control}o","response_expires":"%{Expires}o","response_last_modified":"%{Last-Modified}o","response_tsv":"%{TSV}o","server_datacenter":"%{server.datacenter}V","req_header_size":"%{req.header_bytes_read}V","resp_header_size":"%{resp.header_bytes_written}V","socket_cwnd":"%{client.socket.cwnd}V","socket_nexthop":"%{client.socket.nexthop}V","socket_tcpi_rcv_mss":"%{client.socket.tcpi_rcv_mss}V","socket_tcpi_snd_mss":"%{client.socket.tcpi_snd_mss}V","socket_tcpi_rtt":"%{client.socket.tcpi_rtt}V","socket_tcpi_rttvar":"%{client.socket.tcpi_rttvar}V","socket_tcpi_rcv_rtt":"%{client.socket.tcpi_rcv_rtt}V","socket_tcpi_rcv_space":"%{client.socket.tcpi_rcv_space}V","socket_tcpi_last_data_sent":"%{client.socket.tcpi_last_data_sent}V","socket_tcpi_total_retrans":"%{client.socket.tcpi_total_retrans}V","socket_tcpi_delta_retrans":"%{client.socket.tcpi_delta_retrans}V","socket_ploss":"%{client.socket.ploss}V"}') + * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $region The region that log data will be sent to. (optional, default to 'US') * @param string $token The API key from your Datadog account. Required. (optional) * @@ -1863,9 +1863,9 @@ public function updateLogDatadogRequest($options) $logging_datadog_name = array_key_exists('logging_datadog_name', $options) ? $options['logging_datadog_name'] : null; $name = array_key_exists('name', $options) ? $options['name'] : null; $placement = array_key_exists('placement', $options) ? $options['placement'] : null; - $format_version = array_key_exists('format_version', $options) ? $options['format_version'] : self::FORMAT_VERSION_v2; $response_condition = array_key_exists('response_condition', $options) ? $options['response_condition'] : null; $format = array_key_exists('format', $options) ? $options['format'] : '{"ddsource":"fastly","service":"%{req.service_id}V","date":"%{begin:%Y-%m-%dT%H:%M:%S%Z}t","time_start":"%{begin:%Y-%m-%dT%H:%M:%S%Z}t","time_end":"%{end:%Y-%m-%dT%H:%M:%S%Z}t","http":{"request_time_ms":"%D","method":"%m","url":"%{json.escape(req.url)}V","useragent":"%{User-Agent}i","referer":"%{Referer}i","protocol":"%H","request_x_forwarded_for":"%{X-Forwarded-For}i","status_code":"%s"},"network":{"client":{"ip":"%h","name":"%{client.as.name}V","number":"%{client.as.number}V","connection_speed":"%{client.geo.conn_speed}V"},"destination":{"ip":"%A"},"geoip":{"geo_city":"%{client.geo.city.utf8}V","geo_country_code":"%{client.geo.country_code}V","geo_continent_code":"%{client.geo.continent_code}V","geo_region":"%{client.geo.region}V"},"bytes_written":"%B","bytes_read":"%{req.body_bytes_read}V"},"host":"%{Fastly-Orig-Host}i","origin_host":"%v","is_ipv6":"%{if(req.is_ipv6, \"true\", \"false\")}V","is_tls":"%{if(req.is_ssl, \"true\", \"false\")}V","tls_client_protocol":"%{json.escape(tls.client.protocol)}V","tls_client_servername":"%{json.escape(tls.client.servername)}V","tls_client_cipher":"%{json.escape(tls.client.cipher)}V","tls_client_cipher_sha":"%{json.escape(tls.client.ciphers_sha)}V","tls_client_tlsexts_sha":"%{json.escape(tls.client.tlsexts_sha)}V","is_h2":"%{if(fastly_info.is_h2, \"true\", \"false\")}V","is_h2_push":"%{if(fastly_info.h2.is_push, \"true\", \"false\")}V","h2_stream_id":"%{fastly_info.h2.stream_id}V","request_accept_content":"%{Accept}i","request_accept_language":"%{Accept-Language}i","request_accept_encoding":"%{Accept-Encoding}i","request_accept_charset":"%{Accept-Charset}i","request_connection":"%{Connection}i","request_dnt":"%{DNT}i","request_forwarded":"%{Forwarded}i","request_via":"%{Via}i","request_cache_control":"%{Cache-Control}i","request_x_requested_with":"%{X-Requested-With}i","request_x_att_device_id":"%{X-ATT-Device-Id}i","content_type":"%{Content-Type}o","is_cacheable":"%{if(fastly_info.state~\"^(HIT|MISS)$\", \"true\", \"false\")}V","response_age":"%{Age}o","response_cache_control":"%{Cache-Control}o","response_expires":"%{Expires}o","response_last_modified":"%{Last-Modified}o","response_tsv":"%{TSV}o","server_datacenter":"%{server.datacenter}V","req_header_size":"%{req.header_bytes_read}V","resp_header_size":"%{resp.header_bytes_written}V","socket_cwnd":"%{client.socket.cwnd}V","socket_nexthop":"%{client.socket.nexthop}V","socket_tcpi_rcv_mss":"%{client.socket.tcpi_rcv_mss}V","socket_tcpi_snd_mss":"%{client.socket.tcpi_snd_mss}V","socket_tcpi_rtt":"%{client.socket.tcpi_rtt}V","socket_tcpi_rttvar":"%{client.socket.tcpi_rttvar}V","socket_tcpi_rcv_rtt":"%{client.socket.tcpi_rcv_rtt}V","socket_tcpi_rcv_space":"%{client.socket.tcpi_rcv_space}V","socket_tcpi_last_data_sent":"%{client.socket.tcpi_last_data_sent}V","socket_tcpi_total_retrans":"%{client.socket.tcpi_total_retrans}V","socket_tcpi_delta_retrans":"%{client.socket.tcpi_delta_retrans}V","socket_ploss":"%{client.socket.ploss}V"}'; + $format_version = array_key_exists('format_version', $options) ? $options['format_version'] : self::FORMAT_VERSION_v2; $region = array_key_exists('region', $options) ? $options['region'] : 'US'; $token = array_key_exists('token', $options) ? $options['token'] : null; @@ -1931,10 +1931,6 @@ public function updateLogDatadogRequest($options) $formParams['placement'] = ObjectSerializer::toFormValue($placement); } // form params - if ($format_version !== null) { - $formParams['format_version'] = ObjectSerializer::toFormValue($format_version); - } - // form params if ($response_condition !== null) { $formParams['response_condition'] = ObjectSerializer::toFormValue($response_condition); } @@ -1943,6 +1939,10 @@ public function updateLogDatadogRequest($options) $formParams['format'] = ObjectSerializer::toFormValue($format); } // form params + if ($format_version !== null) { + $formParams['format_version'] = ObjectSerializer::toFormValue($format_version); + } + // form params if ($region !== null) { $formParams['region'] = ObjectSerializer::toFormValue($region); } diff --git a/lib/Api/LoggingDigitaloceanApi.php b/lib/Api/LoggingDigitaloceanApi.php index 4dc9931c..a625a3d8 100644 --- a/lib/Api/LoggingDigitaloceanApi.php +++ b/lib/Api/LoggingDigitaloceanApi.php @@ -123,14 +123,14 @@ public function getConfig() * @param int $version_id Integer identifying a service version. (required) * @param string $name The name for the real-time logging configuration. (optional) * @param string $placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. (optional) - * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. (optional) * @param string $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). (optional, default to '%h %l %u %t "%r" %>s %b') + * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $message_type How the message should be formatted. (optional, default to 'classic') * @param string $timestamp_format A timestamp format (optional) + * @param string $compression_codec The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. (optional) * @param int $period How frequently log files are finalized so they can be available for reading (in seconds). (optional, default to 3600) * @param int $gzip_level The level of gzip encoding when sending logs (default `0`, no compression). Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. (optional, default to 0) - * @param string $compression_codec The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. (optional) * @param string $bucket_name The name of the DigitalOcean Space. (optional) * @param string $access_key Your DigitalOcean Spaces account access key. (optional) * @param string $secret_key Your DigitalOcean Spaces account secret key. (optional) @@ -162,14 +162,14 @@ public function createLogDigocean($options) * @param int $version_id Integer identifying a service version. (required) * @param string $name The name for the real-time logging configuration. (optional) * @param string $placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. (optional) - * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. (optional) * @param string $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). (optional, default to '%h %l %u %t "%r" %>s %b') + * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $message_type How the message should be formatted. (optional, default to 'classic') * @param string $timestamp_format A timestamp format (optional) + * @param string $compression_codec The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. (optional) * @param int $period How frequently log files are finalized so they can be available for reading (in seconds). (optional, default to 3600) * @param int $gzip_level The level of gzip encoding when sending logs (default `0`, no compression). Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. (optional, default to 0) - * @param string $compression_codec The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. (optional) * @param string $bucket_name The name of the DigitalOcean Space. (optional) * @param string $access_key Your DigitalOcean Spaces account access key. (optional) * @param string $secret_key Your DigitalOcean Spaces account secret key. (optional) @@ -289,14 +289,14 @@ public function createLogDigoceanWithHttpInfo($options) * @param int $version_id Integer identifying a service version. (required) * @param string $name The name for the real-time logging configuration. (optional) * @param string $placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. (optional) - * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. (optional) * @param string $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). (optional, default to '%h %l %u %t "%r" %>s %b') + * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $message_type How the message should be formatted. (optional, default to 'classic') * @param string $timestamp_format A timestamp format (optional) + * @param string $compression_codec The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. (optional) * @param int $period How frequently log files are finalized so they can be available for reading (in seconds). (optional, default to 3600) * @param int $gzip_level The level of gzip encoding when sending logs (default `0`, no compression). Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. (optional, default to 0) - * @param string $compression_codec The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. (optional) * @param string $bucket_name The name of the DigitalOcean Space. (optional) * @param string $access_key Your DigitalOcean Spaces account access key. (optional) * @param string $secret_key Your DigitalOcean Spaces account secret key. (optional) @@ -331,14 +331,14 @@ function ($response) { * @param int $version_id Integer identifying a service version. (required) * @param string $name The name for the real-time logging configuration. (optional) * @param string $placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. (optional) - * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. (optional) * @param string $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). (optional, default to '%h %l %u %t "%r" %>s %b') + * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $message_type How the message should be formatted. (optional, default to 'classic') * @param string $timestamp_format A timestamp format (optional) + * @param string $compression_codec The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. (optional) * @param int $period How frequently log files are finalized so they can be available for reading (in seconds). (optional, default to 3600) * @param int $gzip_level The level of gzip encoding when sending logs (default `0`, no compression). Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. (optional, default to 0) - * @param string $compression_codec The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. (optional) * @param string $bucket_name The name of the DigitalOcean Space. (optional) * @param string $access_key Your DigitalOcean Spaces account access key. (optional) * @param string $secret_key Your DigitalOcean Spaces account secret key. (optional) @@ -399,14 +399,14 @@ function ($exception) { * @param int $version_id Integer identifying a service version. (required) * @param string $name The name for the real-time logging configuration. (optional) * @param string $placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. (optional) - * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. (optional) * @param string $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). (optional, default to '%h %l %u %t "%r" %>s %b') + * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $message_type How the message should be formatted. (optional, default to 'classic') * @param string $timestamp_format A timestamp format (optional) + * @param string $compression_codec The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. (optional) * @param int $period How frequently log files are finalized so they can be available for reading (in seconds). (optional, default to 3600) * @param int $gzip_level The level of gzip encoding when sending logs (default `0`, no compression). Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. (optional, default to 0) - * @param string $compression_codec The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. (optional) * @param string $bucket_name The name of the DigitalOcean Space. (optional) * @param string $access_key Your DigitalOcean Spaces account access key. (optional) * @param string $secret_key Your DigitalOcean Spaces account secret key. (optional) @@ -424,14 +424,14 @@ public function createLogDigoceanRequest($options) $version_id = array_key_exists('version_id', $options) ? $options['version_id'] : null; $name = array_key_exists('name', $options) ? $options['name'] : null; $placement = array_key_exists('placement', $options) ? $options['placement'] : null; - $format_version = array_key_exists('format_version', $options) ? $options['format_version'] : self::FORMAT_VERSION_v2; $response_condition = array_key_exists('response_condition', $options) ? $options['response_condition'] : null; $format = array_key_exists('format', $options) ? $options['format'] : '%h %l %u %t "%r" %>s %b'; + $format_version = array_key_exists('format_version', $options) ? $options['format_version'] : self::FORMAT_VERSION_v2; $message_type = array_key_exists('message_type', $options) ? $options['message_type'] : 'classic'; $timestamp_format = array_key_exists('timestamp_format', $options) ? $options['timestamp_format'] : null; + $compression_codec = array_key_exists('compression_codec', $options) ? $options['compression_codec'] : null; $period = array_key_exists('period', $options) ? $options['period'] : 3600; $gzip_level = array_key_exists('gzip_level', $options) ? $options['gzip_level'] : 0; - $compression_codec = array_key_exists('compression_codec', $options) ? $options['compression_codec'] : null; $bucket_name = array_key_exists('bucket_name', $options) ? $options['bucket_name'] : null; $access_key = array_key_exists('access_key', $options) ? $options['access_key'] : null; $secret_key = array_key_exists('secret_key', $options) ? $options['secret_key'] : null; @@ -487,10 +487,6 @@ public function createLogDigoceanRequest($options) $formParams['placement'] = ObjectSerializer::toFormValue($placement); } // form params - if ($format_version !== null) { - $formParams['format_version'] = ObjectSerializer::toFormValue($format_version); - } - // form params if ($response_condition !== null) { $formParams['response_condition'] = ObjectSerializer::toFormValue($response_condition); } @@ -499,6 +495,10 @@ public function createLogDigoceanRequest($options) $formParams['format'] = ObjectSerializer::toFormValue($format); } // form params + if ($format_version !== null) { + $formParams['format_version'] = ObjectSerializer::toFormValue($format_version); + } + // form params if ($message_type !== null) { $formParams['message_type'] = ObjectSerializer::toFormValue($message_type); } @@ -507,6 +507,10 @@ public function createLogDigoceanRequest($options) $formParams['timestamp_format'] = ObjectSerializer::toFormValue($timestamp_format); } // form params + if ($compression_codec !== null) { + $formParams['compression_codec'] = ObjectSerializer::toFormValue($compression_codec); + } + // form params if ($period !== null) { $formParams['period'] = ObjectSerializer::toFormValue($period); } @@ -515,10 +519,6 @@ public function createLogDigoceanRequest($options) $formParams['gzip_level'] = ObjectSerializer::toFormValue($gzip_level); } // form params - if ($compression_codec !== null) { - $formParams['compression_codec'] = ObjectSerializer::toFormValue($compression_codec); - } - // form params if ($bucket_name !== null) { $formParams['bucket_name'] = ObjectSerializer::toFormValue($bucket_name); } @@ -1692,14 +1692,14 @@ public function listLogDigoceanRequest($options) * @param string $logging_digitalocean_name The name for the real-time logging configuration. (required) * @param string $name The name for the real-time logging configuration. (optional) * @param string $placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. (optional) - * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. (optional) * @param string $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). (optional, default to '%h %l %u %t "%r" %>s %b') + * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $message_type How the message should be formatted. (optional, default to 'classic') * @param string $timestamp_format A timestamp format (optional) + * @param string $compression_codec The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. (optional) * @param int $period How frequently log files are finalized so they can be available for reading (in seconds). (optional, default to 3600) * @param int $gzip_level The level of gzip encoding when sending logs (default `0`, no compression). Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. (optional, default to 0) - * @param string $compression_codec The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. (optional) * @param string $bucket_name The name of the DigitalOcean Space. (optional) * @param string $access_key Your DigitalOcean Spaces account access key. (optional) * @param string $secret_key Your DigitalOcean Spaces account secret key. (optional) @@ -1732,14 +1732,14 @@ public function updateLogDigocean($options) * @param string $logging_digitalocean_name The name for the real-time logging configuration. (required) * @param string $name The name for the real-time logging configuration. (optional) * @param string $placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. (optional) - * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. (optional) * @param string $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). (optional, default to '%h %l %u %t "%r" %>s %b') + * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $message_type How the message should be formatted. (optional, default to 'classic') * @param string $timestamp_format A timestamp format (optional) + * @param string $compression_codec The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. (optional) * @param int $period How frequently log files are finalized so they can be available for reading (in seconds). (optional, default to 3600) * @param int $gzip_level The level of gzip encoding when sending logs (default `0`, no compression). Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. (optional, default to 0) - * @param string $compression_codec The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. (optional) * @param string $bucket_name The name of the DigitalOcean Space. (optional) * @param string $access_key Your DigitalOcean Spaces account access key. (optional) * @param string $secret_key Your DigitalOcean Spaces account secret key. (optional) @@ -1860,14 +1860,14 @@ public function updateLogDigoceanWithHttpInfo($options) * @param string $logging_digitalocean_name The name for the real-time logging configuration. (required) * @param string $name The name for the real-time logging configuration. (optional) * @param string $placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. (optional) - * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. (optional) * @param string $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). (optional, default to '%h %l %u %t "%r" %>s %b') + * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $message_type How the message should be formatted. (optional, default to 'classic') * @param string $timestamp_format A timestamp format (optional) + * @param string $compression_codec The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. (optional) * @param int $period How frequently log files are finalized so they can be available for reading (in seconds). (optional, default to 3600) * @param int $gzip_level The level of gzip encoding when sending logs (default `0`, no compression). Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. (optional, default to 0) - * @param string $compression_codec The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. (optional) * @param string $bucket_name The name of the DigitalOcean Space. (optional) * @param string $access_key Your DigitalOcean Spaces account access key. (optional) * @param string $secret_key Your DigitalOcean Spaces account secret key. (optional) @@ -1903,14 +1903,14 @@ function ($response) { * @param string $logging_digitalocean_name The name for the real-time logging configuration. (required) * @param string $name The name for the real-time logging configuration. (optional) * @param string $placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. (optional) - * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. (optional) * @param string $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). (optional, default to '%h %l %u %t "%r" %>s %b') + * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $message_type How the message should be formatted. (optional, default to 'classic') * @param string $timestamp_format A timestamp format (optional) + * @param string $compression_codec The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. (optional) * @param int $period How frequently log files are finalized so they can be available for reading (in seconds). (optional, default to 3600) * @param int $gzip_level The level of gzip encoding when sending logs (default `0`, no compression). Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. (optional, default to 0) - * @param string $compression_codec The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. (optional) * @param string $bucket_name The name of the DigitalOcean Space. (optional) * @param string $access_key Your DigitalOcean Spaces account access key. (optional) * @param string $secret_key Your DigitalOcean Spaces account secret key. (optional) @@ -1972,14 +1972,14 @@ function ($exception) { * @param string $logging_digitalocean_name The name for the real-time logging configuration. (required) * @param string $name The name for the real-time logging configuration. (optional) * @param string $placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. (optional) - * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. (optional) * @param string $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). (optional, default to '%h %l %u %t "%r" %>s %b') + * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $message_type How the message should be formatted. (optional, default to 'classic') * @param string $timestamp_format A timestamp format (optional) + * @param string $compression_codec The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. (optional) * @param int $period How frequently log files are finalized so they can be available for reading (in seconds). (optional, default to 3600) * @param int $gzip_level The level of gzip encoding when sending logs (default `0`, no compression). Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. (optional, default to 0) - * @param string $compression_codec The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. (optional) * @param string $bucket_name The name of the DigitalOcean Space. (optional) * @param string $access_key Your DigitalOcean Spaces account access key. (optional) * @param string $secret_key Your DigitalOcean Spaces account secret key. (optional) @@ -1998,14 +1998,14 @@ public function updateLogDigoceanRequest($options) $logging_digitalocean_name = array_key_exists('logging_digitalocean_name', $options) ? $options['logging_digitalocean_name'] : null; $name = array_key_exists('name', $options) ? $options['name'] : null; $placement = array_key_exists('placement', $options) ? $options['placement'] : null; - $format_version = array_key_exists('format_version', $options) ? $options['format_version'] : self::FORMAT_VERSION_v2; $response_condition = array_key_exists('response_condition', $options) ? $options['response_condition'] : null; $format = array_key_exists('format', $options) ? $options['format'] : '%h %l %u %t "%r" %>s %b'; + $format_version = array_key_exists('format_version', $options) ? $options['format_version'] : self::FORMAT_VERSION_v2; $message_type = array_key_exists('message_type', $options) ? $options['message_type'] : 'classic'; $timestamp_format = array_key_exists('timestamp_format', $options) ? $options['timestamp_format'] : null; + $compression_codec = array_key_exists('compression_codec', $options) ? $options['compression_codec'] : null; $period = array_key_exists('period', $options) ? $options['period'] : 3600; $gzip_level = array_key_exists('gzip_level', $options) ? $options['gzip_level'] : 0; - $compression_codec = array_key_exists('compression_codec', $options) ? $options['compression_codec'] : null; $bucket_name = array_key_exists('bucket_name', $options) ? $options['bucket_name'] : null; $access_key = array_key_exists('access_key', $options) ? $options['access_key'] : null; $secret_key = array_key_exists('secret_key', $options) ? $options['secret_key'] : null; @@ -2075,10 +2075,6 @@ public function updateLogDigoceanRequest($options) $formParams['placement'] = ObjectSerializer::toFormValue($placement); } // form params - if ($format_version !== null) { - $formParams['format_version'] = ObjectSerializer::toFormValue($format_version); - } - // form params if ($response_condition !== null) { $formParams['response_condition'] = ObjectSerializer::toFormValue($response_condition); } @@ -2087,6 +2083,10 @@ public function updateLogDigoceanRequest($options) $formParams['format'] = ObjectSerializer::toFormValue($format); } // form params + if ($format_version !== null) { + $formParams['format_version'] = ObjectSerializer::toFormValue($format_version); + } + // form params if ($message_type !== null) { $formParams['message_type'] = ObjectSerializer::toFormValue($message_type); } @@ -2095,6 +2095,10 @@ public function updateLogDigoceanRequest($options) $formParams['timestamp_format'] = ObjectSerializer::toFormValue($timestamp_format); } // form params + if ($compression_codec !== null) { + $formParams['compression_codec'] = ObjectSerializer::toFormValue($compression_codec); + } + // form params if ($period !== null) { $formParams['period'] = ObjectSerializer::toFormValue($period); } @@ -2103,10 +2107,6 @@ public function updateLogDigoceanRequest($options) $formParams['gzip_level'] = ObjectSerializer::toFormValue($gzip_level); } // form params - if ($compression_codec !== null) { - $formParams['compression_codec'] = ObjectSerializer::toFormValue($compression_codec); - } - // form params if ($bucket_name !== null) { $formParams['bucket_name'] = ObjectSerializer::toFormValue($bucket_name); } diff --git a/lib/Api/LoggingElasticsearchApi.php b/lib/Api/LoggingElasticsearchApi.php index 727f8d9b..532f7f10 100644 --- a/lib/Api/LoggingElasticsearchApi.php +++ b/lib/Api/LoggingElasticsearchApi.php @@ -123,9 +123,9 @@ public function getConfig() * @param int $version_id Integer identifying a service version. (required) * @param string $name The name for the real-time logging configuration. (optional) * @param string $placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. (optional) - * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. (optional) * @param string $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). Must produce valid JSON that Elasticsearch can ingest. (optional) + * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $tls_ca_cert A secure certificate to authenticate a server with. Must be in PEM format. (optional, default to 'null') * @param string $tls_client_cert The client certificate used to make authenticated requests. Must be in PEM format. (optional, default to 'null') * @param string $tls_client_key The client private key used to make authenticated requests. Must be in PEM format. (optional, default to 'null') @@ -162,9 +162,9 @@ public function createLogElasticsearch($options) * @param int $version_id Integer identifying a service version. (required) * @param string $name The name for the real-time logging configuration. (optional) * @param string $placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. (optional) - * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. (optional) * @param string $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). Must produce valid JSON that Elasticsearch can ingest. (optional) + * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $tls_ca_cert A secure certificate to authenticate a server with. Must be in PEM format. (optional, default to 'null') * @param string $tls_client_cert The client certificate used to make authenticated requests. Must be in PEM format. (optional, default to 'null') * @param string $tls_client_key The client private key used to make authenticated requests. Must be in PEM format. (optional, default to 'null') @@ -289,9 +289,9 @@ public function createLogElasticsearchWithHttpInfo($options) * @param int $version_id Integer identifying a service version. (required) * @param string $name The name for the real-time logging configuration. (optional) * @param string $placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. (optional) - * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. (optional) * @param string $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). Must produce valid JSON that Elasticsearch can ingest. (optional) + * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $tls_ca_cert A secure certificate to authenticate a server with. Must be in PEM format. (optional, default to 'null') * @param string $tls_client_cert The client certificate used to make authenticated requests. Must be in PEM format. (optional, default to 'null') * @param string $tls_client_key The client private key used to make authenticated requests. Must be in PEM format. (optional, default to 'null') @@ -331,9 +331,9 @@ function ($response) { * @param int $version_id Integer identifying a service version. (required) * @param string $name The name for the real-time logging configuration. (optional) * @param string $placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. (optional) - * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. (optional) * @param string $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). Must produce valid JSON that Elasticsearch can ingest. (optional) + * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $tls_ca_cert A secure certificate to authenticate a server with. Must be in PEM format. (optional, default to 'null') * @param string $tls_client_cert The client certificate used to make authenticated requests. Must be in PEM format. (optional, default to 'null') * @param string $tls_client_key The client private key used to make authenticated requests. Must be in PEM format. (optional, default to 'null') @@ -399,9 +399,9 @@ function ($exception) { * @param int $version_id Integer identifying a service version. (required) * @param string $name The name for the real-time logging configuration. (optional) * @param string $placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. (optional) - * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. (optional) * @param string $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). Must produce valid JSON that Elasticsearch can ingest. (optional) + * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $tls_ca_cert A secure certificate to authenticate a server with. Must be in PEM format. (optional, default to 'null') * @param string $tls_client_cert The client certificate used to make authenticated requests. Must be in PEM format. (optional, default to 'null') * @param string $tls_client_key The client private key used to make authenticated requests. Must be in PEM format. (optional, default to 'null') @@ -424,9 +424,9 @@ public function createLogElasticsearchRequest($options) $version_id = array_key_exists('version_id', $options) ? $options['version_id'] : null; $name = array_key_exists('name', $options) ? $options['name'] : null; $placement = array_key_exists('placement', $options) ? $options['placement'] : null; - $format_version = array_key_exists('format_version', $options) ? $options['format_version'] : self::FORMAT_VERSION_v2; $response_condition = array_key_exists('response_condition', $options) ? $options['response_condition'] : null; $format = array_key_exists('format', $options) ? $options['format'] : null; + $format_version = array_key_exists('format_version', $options) ? $options['format_version'] : self::FORMAT_VERSION_v2; $tls_ca_cert = array_key_exists('tls_ca_cert', $options) ? $options['tls_ca_cert'] : 'null'; $tls_client_cert = array_key_exists('tls_client_cert', $options) ? $options['tls_client_cert'] : 'null'; $tls_client_key = array_key_exists('tls_client_key', $options) ? $options['tls_client_key'] : 'null'; @@ -487,10 +487,6 @@ public function createLogElasticsearchRequest($options) $formParams['placement'] = ObjectSerializer::toFormValue($placement); } // form params - if ($format_version !== null) { - $formParams['format_version'] = ObjectSerializer::toFormValue($format_version); - } - // form params if ($response_condition !== null) { $formParams['response_condition'] = ObjectSerializer::toFormValue($response_condition); } @@ -499,6 +495,10 @@ public function createLogElasticsearchRequest($options) $formParams['format'] = ObjectSerializer::toFormValue($format); } // form params + if ($format_version !== null) { + $formParams['format_version'] = ObjectSerializer::toFormValue($format_version); + } + // form params if ($tls_ca_cert !== null) { $formParams['tls_ca_cert'] = ObjectSerializer::toFormValue($tls_ca_cert); } @@ -1692,9 +1692,9 @@ public function listLogElasticsearchRequest($options) * @param string $logging_elasticsearch_name The name for the real-time logging configuration. (required) * @param string $name The name for the real-time logging configuration. (optional) * @param string $placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. (optional) - * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. (optional) * @param string $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). Must produce valid JSON that Elasticsearch can ingest. (optional) + * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $tls_ca_cert A secure certificate to authenticate a server with. Must be in PEM format. (optional, default to 'null') * @param string $tls_client_cert The client certificate used to make authenticated requests. Must be in PEM format. (optional, default to 'null') * @param string $tls_client_key The client private key used to make authenticated requests. Must be in PEM format. (optional, default to 'null') @@ -1732,9 +1732,9 @@ public function updateLogElasticsearch($options) * @param string $logging_elasticsearch_name The name for the real-time logging configuration. (required) * @param string $name The name for the real-time logging configuration. (optional) * @param string $placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. (optional) - * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. (optional) * @param string $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). Must produce valid JSON that Elasticsearch can ingest. (optional) + * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $tls_ca_cert A secure certificate to authenticate a server with. Must be in PEM format. (optional, default to 'null') * @param string $tls_client_cert The client certificate used to make authenticated requests. Must be in PEM format. (optional, default to 'null') * @param string $tls_client_key The client private key used to make authenticated requests. Must be in PEM format. (optional, default to 'null') @@ -1860,9 +1860,9 @@ public function updateLogElasticsearchWithHttpInfo($options) * @param string $logging_elasticsearch_name The name for the real-time logging configuration. (required) * @param string $name The name for the real-time logging configuration. (optional) * @param string $placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. (optional) - * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. (optional) * @param string $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). Must produce valid JSON that Elasticsearch can ingest. (optional) + * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $tls_ca_cert A secure certificate to authenticate a server with. Must be in PEM format. (optional, default to 'null') * @param string $tls_client_cert The client certificate used to make authenticated requests. Must be in PEM format. (optional, default to 'null') * @param string $tls_client_key The client private key used to make authenticated requests. Must be in PEM format. (optional, default to 'null') @@ -1903,9 +1903,9 @@ function ($response) { * @param string $logging_elasticsearch_name The name for the real-time logging configuration. (required) * @param string $name The name for the real-time logging configuration. (optional) * @param string $placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. (optional) - * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. (optional) * @param string $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). Must produce valid JSON that Elasticsearch can ingest. (optional) + * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $tls_ca_cert A secure certificate to authenticate a server with. Must be in PEM format. (optional, default to 'null') * @param string $tls_client_cert The client certificate used to make authenticated requests. Must be in PEM format. (optional, default to 'null') * @param string $tls_client_key The client private key used to make authenticated requests. Must be in PEM format. (optional, default to 'null') @@ -1972,9 +1972,9 @@ function ($exception) { * @param string $logging_elasticsearch_name The name for the real-time logging configuration. (required) * @param string $name The name for the real-time logging configuration. (optional) * @param string $placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. (optional) - * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. (optional) * @param string $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). Must produce valid JSON that Elasticsearch can ingest. (optional) + * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $tls_ca_cert A secure certificate to authenticate a server with. Must be in PEM format. (optional, default to 'null') * @param string $tls_client_cert The client certificate used to make authenticated requests. Must be in PEM format. (optional, default to 'null') * @param string $tls_client_key The client private key used to make authenticated requests. Must be in PEM format. (optional, default to 'null') @@ -1998,9 +1998,9 @@ public function updateLogElasticsearchRequest($options) $logging_elasticsearch_name = array_key_exists('logging_elasticsearch_name', $options) ? $options['logging_elasticsearch_name'] : null; $name = array_key_exists('name', $options) ? $options['name'] : null; $placement = array_key_exists('placement', $options) ? $options['placement'] : null; - $format_version = array_key_exists('format_version', $options) ? $options['format_version'] : self::FORMAT_VERSION_v2; $response_condition = array_key_exists('response_condition', $options) ? $options['response_condition'] : null; $format = array_key_exists('format', $options) ? $options['format'] : null; + $format_version = array_key_exists('format_version', $options) ? $options['format_version'] : self::FORMAT_VERSION_v2; $tls_ca_cert = array_key_exists('tls_ca_cert', $options) ? $options['tls_ca_cert'] : 'null'; $tls_client_cert = array_key_exists('tls_client_cert', $options) ? $options['tls_client_cert'] : 'null'; $tls_client_key = array_key_exists('tls_client_key', $options) ? $options['tls_client_key'] : 'null'; @@ -2075,10 +2075,6 @@ public function updateLogElasticsearchRequest($options) $formParams['placement'] = ObjectSerializer::toFormValue($placement); } // form params - if ($format_version !== null) { - $formParams['format_version'] = ObjectSerializer::toFormValue($format_version); - } - // form params if ($response_condition !== null) { $formParams['response_condition'] = ObjectSerializer::toFormValue($response_condition); } @@ -2087,6 +2083,10 @@ public function updateLogElasticsearchRequest($options) $formParams['format'] = ObjectSerializer::toFormValue($format); } // form params + if ($format_version !== null) { + $formParams['format_version'] = ObjectSerializer::toFormValue($format_version); + } + // form params if ($tls_ca_cert !== null) { $formParams['tls_ca_cert'] = ObjectSerializer::toFormValue($tls_ca_cert); } diff --git a/lib/Api/LoggingFtpApi.php b/lib/Api/LoggingFtpApi.php index 007cdce0..478436f4 100644 --- a/lib/Api/LoggingFtpApi.php +++ b/lib/Api/LoggingFtpApi.php @@ -123,22 +123,22 @@ public function getConfig() * @param int $version_id Integer identifying a service version. (required) * @param string $name The name for the real-time logging configuration. (optional) * @param string $placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. (optional) - * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. (optional) * @param string $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). (optional, default to '%h %l %u %t "%r" %>s %b') + * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $message_type How the message should be formatted. (optional, default to 'classic') * @param string $timestamp_format A timestamp format (optional) + * @param string $compression_codec The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. (optional) * @param int $period How frequently log files are finalized so they can be available for reading (in seconds). (optional, default to 3600) * @param int $gzip_level The level of gzip encoding when sending logs (default `0`, no compression). Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. (optional, default to 0) - * @param string $compression_codec The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. (optional) * @param string $address An hostname or IPv4 address. (optional) * @param string $hostname Hostname used. (optional) * @param string $ipv4 IPv4 address of the host. (optional) * @param string $password The password for the server. For anonymous use an email address. (optional) * @param string $path The path to upload log files to. If the path ends in `/` then it is treated as a directory. (optional) - * @param int $port The port number. (optional, default to 21) * @param string $public_key A PGP public key that Fastly will use to encrypt your log files before writing them to disk. (optional, default to 'null') * @param string $user The username for the server. Can be anonymous. (optional) + * @param int $port The port number. (optional, default to 21) * * @throws \Fastly\ApiException on non-2xx response * @throws \InvalidArgumentException @@ -164,22 +164,22 @@ public function createLogFtp($options) * @param int $version_id Integer identifying a service version. (required) * @param string $name The name for the real-time logging configuration. (optional) * @param string $placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. (optional) - * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. (optional) * @param string $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). (optional, default to '%h %l %u %t "%r" %>s %b') + * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $message_type How the message should be formatted. (optional, default to 'classic') * @param string $timestamp_format A timestamp format (optional) + * @param string $compression_codec The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. (optional) * @param int $period How frequently log files are finalized so they can be available for reading (in seconds). (optional, default to 3600) * @param int $gzip_level The level of gzip encoding when sending logs (default `0`, no compression). Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. (optional, default to 0) - * @param string $compression_codec The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. (optional) * @param string $address An hostname or IPv4 address. (optional) * @param string $hostname Hostname used. (optional) * @param string $ipv4 IPv4 address of the host. (optional) * @param string $password The password for the server. For anonymous use an email address. (optional) * @param string $path The path to upload log files to. If the path ends in `/` then it is treated as a directory. (optional) - * @param int $port The port number. (optional, default to 21) * @param string $public_key A PGP public key that Fastly will use to encrypt your log files before writing them to disk. (optional, default to 'null') * @param string $user The username for the server. Can be anonymous. (optional) + * @param int $port The port number. (optional, default to 21) * * @throws \Fastly\ApiException on non-2xx response * @throws \InvalidArgumentException @@ -293,22 +293,22 @@ public function createLogFtpWithHttpInfo($options) * @param int $version_id Integer identifying a service version. (required) * @param string $name The name for the real-time logging configuration. (optional) * @param string $placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. (optional) - * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. (optional) * @param string $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). (optional, default to '%h %l %u %t "%r" %>s %b') + * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $message_type How the message should be formatted. (optional, default to 'classic') * @param string $timestamp_format A timestamp format (optional) + * @param string $compression_codec The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. (optional) * @param int $period How frequently log files are finalized so they can be available for reading (in seconds). (optional, default to 3600) * @param int $gzip_level The level of gzip encoding when sending logs (default `0`, no compression). Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. (optional, default to 0) - * @param string $compression_codec The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. (optional) * @param string $address An hostname or IPv4 address. (optional) * @param string $hostname Hostname used. (optional) * @param string $ipv4 IPv4 address of the host. (optional) * @param string $password The password for the server. For anonymous use an email address. (optional) * @param string $path The path to upload log files to. If the path ends in `/` then it is treated as a directory. (optional) - * @param int $port The port number. (optional, default to 21) * @param string $public_key A PGP public key that Fastly will use to encrypt your log files before writing them to disk. (optional, default to 'null') * @param string $user The username for the server. Can be anonymous. (optional) + * @param int $port The port number. (optional, default to 21) * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface @@ -337,22 +337,22 @@ function ($response) { * @param int $version_id Integer identifying a service version. (required) * @param string $name The name for the real-time logging configuration. (optional) * @param string $placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. (optional) - * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. (optional) * @param string $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). (optional, default to '%h %l %u %t "%r" %>s %b') + * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $message_type How the message should be formatted. (optional, default to 'classic') * @param string $timestamp_format A timestamp format (optional) + * @param string $compression_codec The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. (optional) * @param int $period How frequently log files are finalized so they can be available for reading (in seconds). (optional, default to 3600) * @param int $gzip_level The level of gzip encoding when sending logs (default `0`, no compression). Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. (optional, default to 0) - * @param string $compression_codec The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. (optional) * @param string $address An hostname or IPv4 address. (optional) * @param string $hostname Hostname used. (optional) * @param string $ipv4 IPv4 address of the host. (optional) * @param string $password The password for the server. For anonymous use an email address. (optional) * @param string $path The path to upload log files to. If the path ends in `/` then it is treated as a directory. (optional) - * @param int $port The port number. (optional, default to 21) * @param string $public_key A PGP public key that Fastly will use to encrypt your log files before writing them to disk. (optional, default to 'null') * @param string $user The username for the server. Can be anonymous. (optional) + * @param int $port The port number. (optional, default to 21) * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface @@ -407,22 +407,22 @@ function ($exception) { * @param int $version_id Integer identifying a service version. (required) * @param string $name The name for the real-time logging configuration. (optional) * @param string $placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. (optional) - * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. (optional) * @param string $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). (optional, default to '%h %l %u %t "%r" %>s %b') + * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $message_type How the message should be formatted. (optional, default to 'classic') * @param string $timestamp_format A timestamp format (optional) + * @param string $compression_codec The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. (optional) * @param int $period How frequently log files are finalized so they can be available for reading (in seconds). (optional, default to 3600) * @param int $gzip_level The level of gzip encoding when sending logs (default `0`, no compression). Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. (optional, default to 0) - * @param string $compression_codec The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. (optional) * @param string $address An hostname or IPv4 address. (optional) * @param string $hostname Hostname used. (optional) * @param string $ipv4 IPv4 address of the host. (optional) * @param string $password The password for the server. For anonymous use an email address. (optional) * @param string $path The path to upload log files to. If the path ends in `/` then it is treated as a directory. (optional) - * @param int $port The port number. (optional, default to 21) * @param string $public_key A PGP public key that Fastly will use to encrypt your log files before writing them to disk. (optional, default to 'null') * @param string $user The username for the server. Can be anonymous. (optional) + * @param int $port The port number. (optional, default to 21) * * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request @@ -434,22 +434,22 @@ public function createLogFtpRequest($options) $version_id = array_key_exists('version_id', $options) ? $options['version_id'] : null; $name = array_key_exists('name', $options) ? $options['name'] : null; $placement = array_key_exists('placement', $options) ? $options['placement'] : null; - $format_version = array_key_exists('format_version', $options) ? $options['format_version'] : self::FORMAT_VERSION_v2; $response_condition = array_key_exists('response_condition', $options) ? $options['response_condition'] : null; $format = array_key_exists('format', $options) ? $options['format'] : '%h %l %u %t "%r" %>s %b'; + $format_version = array_key_exists('format_version', $options) ? $options['format_version'] : self::FORMAT_VERSION_v2; $message_type = array_key_exists('message_type', $options) ? $options['message_type'] : 'classic'; $timestamp_format = array_key_exists('timestamp_format', $options) ? $options['timestamp_format'] : null; + $compression_codec = array_key_exists('compression_codec', $options) ? $options['compression_codec'] : null; $period = array_key_exists('period', $options) ? $options['period'] : 3600; $gzip_level = array_key_exists('gzip_level', $options) ? $options['gzip_level'] : 0; - $compression_codec = array_key_exists('compression_codec', $options) ? $options['compression_codec'] : null; $address = array_key_exists('address', $options) ? $options['address'] : null; $hostname = array_key_exists('hostname', $options) ? $options['hostname'] : null; $ipv4 = array_key_exists('ipv4', $options) ? $options['ipv4'] : null; $password = array_key_exists('password', $options) ? $options['password'] : null; $path = array_key_exists('path', $options) ? $options['path'] : null; - $port = array_key_exists('port', $options) ? $options['port'] : 21; $public_key = array_key_exists('public_key', $options) ? $options['public_key'] : 'null'; $user = array_key_exists('user', $options) ? $options['user'] : null; + $port = array_key_exists('port', $options) ? $options['port'] : 21; // verify the required parameter 'service_id' is set if ($service_id === null || (is_array($service_id) && count($service_id) === 0)) { @@ -499,10 +499,6 @@ public function createLogFtpRequest($options) $formParams['placement'] = ObjectSerializer::toFormValue($placement); } // form params - if ($format_version !== null) { - $formParams['format_version'] = ObjectSerializer::toFormValue($format_version); - } - // form params if ($response_condition !== null) { $formParams['response_condition'] = ObjectSerializer::toFormValue($response_condition); } @@ -511,6 +507,10 @@ public function createLogFtpRequest($options) $formParams['format'] = ObjectSerializer::toFormValue($format); } // form params + if ($format_version !== null) { + $formParams['format_version'] = ObjectSerializer::toFormValue($format_version); + } + // form params if ($message_type !== null) { $formParams['message_type'] = ObjectSerializer::toFormValue($message_type); } @@ -519,6 +519,10 @@ public function createLogFtpRequest($options) $formParams['timestamp_format'] = ObjectSerializer::toFormValue($timestamp_format); } // form params + if ($compression_codec !== null) { + $formParams['compression_codec'] = ObjectSerializer::toFormValue($compression_codec); + } + // form params if ($period !== null) { $formParams['period'] = ObjectSerializer::toFormValue($period); } @@ -527,10 +531,6 @@ public function createLogFtpRequest($options) $formParams['gzip_level'] = ObjectSerializer::toFormValue($gzip_level); } // form params - if ($compression_codec !== null) { - $formParams['compression_codec'] = ObjectSerializer::toFormValue($compression_codec); - } - // form params if ($address !== null) { $formParams['address'] = ObjectSerializer::toFormValue($address); } @@ -551,10 +551,6 @@ public function createLogFtpRequest($options) $formParams['path'] = ObjectSerializer::toFormValue($path); } // form params - if ($port !== null) { - $formParams['port'] = ObjectSerializer::toFormValue($port); - } - // form params if ($public_key !== null) { $formParams['public_key'] = ObjectSerializer::toFormValue($public_key); } @@ -562,6 +558,10 @@ public function createLogFtpRequest($options) if ($user !== null) { $formParams['user'] = ObjectSerializer::toFormValue($user); } + // form params + if ($port !== null) { + $formParams['port'] = ObjectSerializer::toFormValue($port); + } if ($multipart) { $headers = $this->headerSelector->selectHeadersForMultipart( @@ -1712,22 +1712,22 @@ public function listLogFtpRequest($options) * @param string $logging_ftp_name The name for the real-time logging configuration. (required) * @param string $name The name for the real-time logging configuration. (optional) * @param string $placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. (optional) - * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. (optional) * @param string $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). (optional, default to '%h %l %u %t "%r" %>s %b') + * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $message_type How the message should be formatted. (optional, default to 'classic') * @param string $timestamp_format A timestamp format (optional) + * @param string $compression_codec The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. (optional) * @param int $period How frequently log files are finalized so they can be available for reading (in seconds). (optional, default to 3600) * @param int $gzip_level The level of gzip encoding when sending logs (default `0`, no compression). Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. (optional, default to 0) - * @param string $compression_codec The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. (optional) * @param string $address An hostname or IPv4 address. (optional) * @param string $hostname Hostname used. (optional) * @param string $ipv4 IPv4 address of the host. (optional) * @param string $password The password for the server. For anonymous use an email address. (optional) * @param string $path The path to upload log files to. If the path ends in `/` then it is treated as a directory. (optional) - * @param int $port The port number. (optional, default to 21) * @param string $public_key A PGP public key that Fastly will use to encrypt your log files before writing them to disk. (optional, default to 'null') * @param string $user The username for the server. Can be anonymous. (optional) + * @param int $port The port number. (optional, default to 21) * * @throws \Fastly\ApiException on non-2xx response * @throws \InvalidArgumentException @@ -1754,22 +1754,22 @@ public function updateLogFtp($options) * @param string $logging_ftp_name The name for the real-time logging configuration. (required) * @param string $name The name for the real-time logging configuration. (optional) * @param string $placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. (optional) - * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. (optional) * @param string $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). (optional, default to '%h %l %u %t "%r" %>s %b') + * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $message_type How the message should be formatted. (optional, default to 'classic') * @param string $timestamp_format A timestamp format (optional) + * @param string $compression_codec The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. (optional) * @param int $period How frequently log files are finalized so they can be available for reading (in seconds). (optional, default to 3600) * @param int $gzip_level The level of gzip encoding when sending logs (default `0`, no compression). Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. (optional, default to 0) - * @param string $compression_codec The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. (optional) * @param string $address An hostname or IPv4 address. (optional) * @param string $hostname Hostname used. (optional) * @param string $ipv4 IPv4 address of the host. (optional) * @param string $password The password for the server. For anonymous use an email address. (optional) * @param string $path The path to upload log files to. If the path ends in `/` then it is treated as a directory. (optional) - * @param int $port The port number. (optional, default to 21) * @param string $public_key A PGP public key that Fastly will use to encrypt your log files before writing them to disk. (optional, default to 'null') * @param string $user The username for the server. Can be anonymous. (optional) + * @param int $port The port number. (optional, default to 21) * * @throws \Fastly\ApiException on non-2xx response * @throws \InvalidArgumentException @@ -1884,22 +1884,22 @@ public function updateLogFtpWithHttpInfo($options) * @param string $logging_ftp_name The name for the real-time logging configuration. (required) * @param string $name The name for the real-time logging configuration. (optional) * @param string $placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. (optional) - * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. (optional) * @param string $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). (optional, default to '%h %l %u %t "%r" %>s %b') + * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $message_type How the message should be formatted. (optional, default to 'classic') * @param string $timestamp_format A timestamp format (optional) + * @param string $compression_codec The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. (optional) * @param int $period How frequently log files are finalized so they can be available for reading (in seconds). (optional, default to 3600) * @param int $gzip_level The level of gzip encoding when sending logs (default `0`, no compression). Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. (optional, default to 0) - * @param string $compression_codec The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. (optional) * @param string $address An hostname or IPv4 address. (optional) * @param string $hostname Hostname used. (optional) * @param string $ipv4 IPv4 address of the host. (optional) * @param string $password The password for the server. For anonymous use an email address. (optional) * @param string $path The path to upload log files to. If the path ends in `/` then it is treated as a directory. (optional) - * @param int $port The port number. (optional, default to 21) * @param string $public_key A PGP public key that Fastly will use to encrypt your log files before writing them to disk. (optional, default to 'null') * @param string $user The username for the server. Can be anonymous. (optional) + * @param int $port The port number. (optional, default to 21) * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface @@ -1929,22 +1929,22 @@ function ($response) { * @param string $logging_ftp_name The name for the real-time logging configuration. (required) * @param string $name The name for the real-time logging configuration. (optional) * @param string $placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. (optional) - * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. (optional) * @param string $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). (optional, default to '%h %l %u %t "%r" %>s %b') + * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $message_type How the message should be formatted. (optional, default to 'classic') * @param string $timestamp_format A timestamp format (optional) + * @param string $compression_codec The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. (optional) * @param int $period How frequently log files are finalized so they can be available for reading (in seconds). (optional, default to 3600) * @param int $gzip_level The level of gzip encoding when sending logs (default `0`, no compression). Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. (optional, default to 0) - * @param string $compression_codec The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. (optional) * @param string $address An hostname or IPv4 address. (optional) * @param string $hostname Hostname used. (optional) * @param string $ipv4 IPv4 address of the host. (optional) * @param string $password The password for the server. For anonymous use an email address. (optional) * @param string $path The path to upload log files to. If the path ends in `/` then it is treated as a directory. (optional) - * @param int $port The port number. (optional, default to 21) * @param string $public_key A PGP public key that Fastly will use to encrypt your log files before writing them to disk. (optional, default to 'null') * @param string $user The username for the server. Can be anonymous. (optional) + * @param int $port The port number. (optional, default to 21) * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface @@ -2000,22 +2000,22 @@ function ($exception) { * @param string $logging_ftp_name The name for the real-time logging configuration. (required) * @param string $name The name for the real-time logging configuration. (optional) * @param string $placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. (optional) - * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. (optional) * @param string $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). (optional, default to '%h %l %u %t "%r" %>s %b') + * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $message_type How the message should be formatted. (optional, default to 'classic') * @param string $timestamp_format A timestamp format (optional) + * @param string $compression_codec The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. (optional) * @param int $period How frequently log files are finalized so they can be available for reading (in seconds). (optional, default to 3600) * @param int $gzip_level The level of gzip encoding when sending logs (default `0`, no compression). Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. (optional, default to 0) - * @param string $compression_codec The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. (optional) * @param string $address An hostname or IPv4 address. (optional) * @param string $hostname Hostname used. (optional) * @param string $ipv4 IPv4 address of the host. (optional) * @param string $password The password for the server. For anonymous use an email address. (optional) * @param string $path The path to upload log files to. If the path ends in `/` then it is treated as a directory. (optional) - * @param int $port The port number. (optional, default to 21) * @param string $public_key A PGP public key that Fastly will use to encrypt your log files before writing them to disk. (optional, default to 'null') * @param string $user The username for the server. Can be anonymous. (optional) + * @param int $port The port number. (optional, default to 21) * * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request @@ -2028,22 +2028,22 @@ public function updateLogFtpRequest($options) $logging_ftp_name = array_key_exists('logging_ftp_name', $options) ? $options['logging_ftp_name'] : null; $name = array_key_exists('name', $options) ? $options['name'] : null; $placement = array_key_exists('placement', $options) ? $options['placement'] : null; - $format_version = array_key_exists('format_version', $options) ? $options['format_version'] : self::FORMAT_VERSION_v2; $response_condition = array_key_exists('response_condition', $options) ? $options['response_condition'] : null; $format = array_key_exists('format', $options) ? $options['format'] : '%h %l %u %t "%r" %>s %b'; + $format_version = array_key_exists('format_version', $options) ? $options['format_version'] : self::FORMAT_VERSION_v2; $message_type = array_key_exists('message_type', $options) ? $options['message_type'] : 'classic'; $timestamp_format = array_key_exists('timestamp_format', $options) ? $options['timestamp_format'] : null; + $compression_codec = array_key_exists('compression_codec', $options) ? $options['compression_codec'] : null; $period = array_key_exists('period', $options) ? $options['period'] : 3600; $gzip_level = array_key_exists('gzip_level', $options) ? $options['gzip_level'] : 0; - $compression_codec = array_key_exists('compression_codec', $options) ? $options['compression_codec'] : null; $address = array_key_exists('address', $options) ? $options['address'] : null; $hostname = array_key_exists('hostname', $options) ? $options['hostname'] : null; $ipv4 = array_key_exists('ipv4', $options) ? $options['ipv4'] : null; $password = array_key_exists('password', $options) ? $options['password'] : null; $path = array_key_exists('path', $options) ? $options['path'] : null; - $port = array_key_exists('port', $options) ? $options['port'] : 21; $public_key = array_key_exists('public_key', $options) ? $options['public_key'] : 'null'; $user = array_key_exists('user', $options) ? $options['user'] : null; + $port = array_key_exists('port', $options) ? $options['port'] : 21; // verify the required parameter 'service_id' is set if ($service_id === null || (is_array($service_id) && count($service_id) === 0)) { @@ -2107,10 +2107,6 @@ public function updateLogFtpRequest($options) $formParams['placement'] = ObjectSerializer::toFormValue($placement); } // form params - if ($format_version !== null) { - $formParams['format_version'] = ObjectSerializer::toFormValue($format_version); - } - // form params if ($response_condition !== null) { $formParams['response_condition'] = ObjectSerializer::toFormValue($response_condition); } @@ -2119,6 +2115,10 @@ public function updateLogFtpRequest($options) $formParams['format'] = ObjectSerializer::toFormValue($format); } // form params + if ($format_version !== null) { + $formParams['format_version'] = ObjectSerializer::toFormValue($format_version); + } + // form params if ($message_type !== null) { $formParams['message_type'] = ObjectSerializer::toFormValue($message_type); } @@ -2127,6 +2127,10 @@ public function updateLogFtpRequest($options) $formParams['timestamp_format'] = ObjectSerializer::toFormValue($timestamp_format); } // form params + if ($compression_codec !== null) { + $formParams['compression_codec'] = ObjectSerializer::toFormValue($compression_codec); + } + // form params if ($period !== null) { $formParams['period'] = ObjectSerializer::toFormValue($period); } @@ -2135,10 +2139,6 @@ public function updateLogFtpRequest($options) $formParams['gzip_level'] = ObjectSerializer::toFormValue($gzip_level); } // form params - if ($compression_codec !== null) { - $formParams['compression_codec'] = ObjectSerializer::toFormValue($compression_codec); - } - // form params if ($address !== null) { $formParams['address'] = ObjectSerializer::toFormValue($address); } @@ -2159,10 +2159,6 @@ public function updateLogFtpRequest($options) $formParams['path'] = ObjectSerializer::toFormValue($path); } // form params - if ($port !== null) { - $formParams['port'] = ObjectSerializer::toFormValue($port); - } - // form params if ($public_key !== null) { $formParams['public_key'] = ObjectSerializer::toFormValue($public_key); } @@ -2170,6 +2166,10 @@ public function updateLogFtpRequest($options) if ($user !== null) { $formParams['user'] = ObjectSerializer::toFormValue($user); } + // form params + if ($port !== null) { + $formParams['port'] = ObjectSerializer::toFormValue($port); + } if ($multipart) { $headers = $this->headerSelector->selectHeadersForMultipart( diff --git a/lib/Api/LoggingGcsApi.php b/lib/Api/LoggingGcsApi.php index 1768f3a2..1433667a 100644 --- a/lib/Api/LoggingGcsApi.php +++ b/lib/Api/LoggingGcsApi.php @@ -123,14 +123,14 @@ public function getConfig() * @param int $version_id Integer identifying a service version. (required) * @param string $name The name for the real-time logging configuration. (optional) * @param string $placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. (optional) - * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. (optional) * @param string $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). (optional, default to '%h %l %u %t "%r" %>s %b') + * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $message_type How the message should be formatted. (optional, default to 'classic') * @param string $timestamp_format A timestamp format (optional) + * @param string $compression_codec The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. (optional) * @param int $period How frequently log files are finalized so they can be available for reading (in seconds). (optional, default to 3600) * @param int $gzip_level The level of gzip encoding when sending logs (default `0`, no compression). Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. (optional, default to 0) - * @param string $compression_codec The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. (optional) * @param string $user Your Google Cloud Platform service account email address. The `client_email` field in your service account authentication JSON. Not required if `account_name` is specified. (optional) * @param string $secret_key Your Google Cloud Platform account secret key. The `private_key` field in your service account authentication JSON. Not required if `account_name` is specified. (optional) * @param string $account_name The name of the Google Cloud Platform service account associated with the target log collection service. Not required if `user` and `secret_key` are provided. (optional) @@ -163,14 +163,14 @@ public function createLogGcs($options) * @param int $version_id Integer identifying a service version. (required) * @param string $name The name for the real-time logging configuration. (optional) * @param string $placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. (optional) - * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. (optional) * @param string $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). (optional, default to '%h %l %u %t "%r" %>s %b') + * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $message_type How the message should be formatted. (optional, default to 'classic') * @param string $timestamp_format A timestamp format (optional) + * @param string $compression_codec The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. (optional) * @param int $period How frequently log files are finalized so they can be available for reading (in seconds). (optional, default to 3600) * @param int $gzip_level The level of gzip encoding when sending logs (default `0`, no compression). Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. (optional, default to 0) - * @param string $compression_codec The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. (optional) * @param string $user Your Google Cloud Platform service account email address. The `client_email` field in your service account authentication JSON. Not required if `account_name` is specified. (optional) * @param string $secret_key Your Google Cloud Platform account secret key. The `private_key` field in your service account authentication JSON. Not required if `account_name` is specified. (optional) * @param string $account_name The name of the Google Cloud Platform service account associated with the target log collection service. Not required if `user` and `secret_key` are provided. (optional) @@ -291,14 +291,14 @@ public function createLogGcsWithHttpInfo($options) * @param int $version_id Integer identifying a service version. (required) * @param string $name The name for the real-time logging configuration. (optional) * @param string $placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. (optional) - * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. (optional) * @param string $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). (optional, default to '%h %l %u %t "%r" %>s %b') + * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $message_type How the message should be formatted. (optional, default to 'classic') * @param string $timestamp_format A timestamp format (optional) + * @param string $compression_codec The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. (optional) * @param int $period How frequently log files are finalized so they can be available for reading (in seconds). (optional, default to 3600) * @param int $gzip_level The level of gzip encoding when sending logs (default `0`, no compression). Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. (optional, default to 0) - * @param string $compression_codec The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. (optional) * @param string $user Your Google Cloud Platform service account email address. The `client_email` field in your service account authentication JSON. Not required if `account_name` is specified. (optional) * @param string $secret_key Your Google Cloud Platform account secret key. The `private_key` field in your service account authentication JSON. Not required if `account_name` is specified. (optional) * @param string $account_name The name of the Google Cloud Platform service account associated with the target log collection service. Not required if `user` and `secret_key` are provided. (optional) @@ -334,14 +334,14 @@ function ($response) { * @param int $version_id Integer identifying a service version. (required) * @param string $name The name for the real-time logging configuration. (optional) * @param string $placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. (optional) - * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. (optional) * @param string $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). (optional, default to '%h %l %u %t "%r" %>s %b') + * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $message_type How the message should be formatted. (optional, default to 'classic') * @param string $timestamp_format A timestamp format (optional) + * @param string $compression_codec The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. (optional) * @param int $period How frequently log files are finalized so they can be available for reading (in seconds). (optional, default to 3600) * @param int $gzip_level The level of gzip encoding when sending logs (default `0`, no compression). Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. (optional, default to 0) - * @param string $compression_codec The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. (optional) * @param string $user Your Google Cloud Platform service account email address. The `client_email` field in your service account authentication JSON. Not required if `account_name` is specified. (optional) * @param string $secret_key Your Google Cloud Platform account secret key. The `private_key` field in your service account authentication JSON. Not required if `account_name` is specified. (optional) * @param string $account_name The name of the Google Cloud Platform service account associated with the target log collection service. Not required if `user` and `secret_key` are provided. (optional) @@ -403,14 +403,14 @@ function ($exception) { * @param int $version_id Integer identifying a service version. (required) * @param string $name The name for the real-time logging configuration. (optional) * @param string $placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. (optional) - * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. (optional) * @param string $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). (optional, default to '%h %l %u %t "%r" %>s %b') + * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $message_type How the message should be formatted. (optional, default to 'classic') * @param string $timestamp_format A timestamp format (optional) + * @param string $compression_codec The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. (optional) * @param int $period How frequently log files are finalized so they can be available for reading (in seconds). (optional, default to 3600) * @param int $gzip_level The level of gzip encoding when sending logs (default `0`, no compression). Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. (optional, default to 0) - * @param string $compression_codec The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. (optional) * @param string $user Your Google Cloud Platform service account email address. The `client_email` field in your service account authentication JSON. Not required if `account_name` is specified. (optional) * @param string $secret_key Your Google Cloud Platform account secret key. The `private_key` field in your service account authentication JSON. Not required if `account_name` is specified. (optional) * @param string $account_name The name of the Google Cloud Platform service account associated with the target log collection service. Not required if `user` and `secret_key` are provided. (optional) @@ -429,14 +429,14 @@ public function createLogGcsRequest($options) $version_id = array_key_exists('version_id', $options) ? $options['version_id'] : null; $name = array_key_exists('name', $options) ? $options['name'] : null; $placement = array_key_exists('placement', $options) ? $options['placement'] : null; - $format_version = array_key_exists('format_version', $options) ? $options['format_version'] : self::FORMAT_VERSION_v2; $response_condition = array_key_exists('response_condition', $options) ? $options['response_condition'] : null; $format = array_key_exists('format', $options) ? $options['format'] : '%h %l %u %t "%r" %>s %b'; + $format_version = array_key_exists('format_version', $options) ? $options['format_version'] : self::FORMAT_VERSION_v2; $message_type = array_key_exists('message_type', $options) ? $options['message_type'] : 'classic'; $timestamp_format = array_key_exists('timestamp_format', $options) ? $options['timestamp_format'] : null; + $compression_codec = array_key_exists('compression_codec', $options) ? $options['compression_codec'] : null; $period = array_key_exists('period', $options) ? $options['period'] : 3600; $gzip_level = array_key_exists('gzip_level', $options) ? $options['gzip_level'] : 0; - $compression_codec = array_key_exists('compression_codec', $options) ? $options['compression_codec'] : null; $user = array_key_exists('user', $options) ? $options['user'] : null; $secret_key = array_key_exists('secret_key', $options) ? $options['secret_key'] : null; $account_name = array_key_exists('account_name', $options) ? $options['account_name'] : null; @@ -493,10 +493,6 @@ public function createLogGcsRequest($options) $formParams['placement'] = ObjectSerializer::toFormValue($placement); } // form params - if ($format_version !== null) { - $formParams['format_version'] = ObjectSerializer::toFormValue($format_version); - } - // form params if ($response_condition !== null) { $formParams['response_condition'] = ObjectSerializer::toFormValue($response_condition); } @@ -505,6 +501,10 @@ public function createLogGcsRequest($options) $formParams['format'] = ObjectSerializer::toFormValue($format); } // form params + if ($format_version !== null) { + $formParams['format_version'] = ObjectSerializer::toFormValue($format_version); + } + // form params if ($message_type !== null) { $formParams['message_type'] = ObjectSerializer::toFormValue($message_type); } @@ -513,6 +513,10 @@ public function createLogGcsRequest($options) $formParams['timestamp_format'] = ObjectSerializer::toFormValue($timestamp_format); } // form params + if ($compression_codec !== null) { + $formParams['compression_codec'] = ObjectSerializer::toFormValue($compression_codec); + } + // form params if ($period !== null) { $formParams['period'] = ObjectSerializer::toFormValue($period); } @@ -521,10 +525,6 @@ public function createLogGcsRequest($options) $formParams['gzip_level'] = ObjectSerializer::toFormValue($gzip_level); } // form params - if ($compression_codec !== null) { - $formParams['compression_codec'] = ObjectSerializer::toFormValue($compression_codec); - } - // form params if ($user !== null) { $formParams['user'] = ObjectSerializer::toFormValue($user); } @@ -1702,14 +1702,14 @@ public function listLogGcsRequest($options) * @param string $logging_gcs_name The name for the real-time logging configuration. (required) * @param string $name The name for the real-time logging configuration. (optional) * @param string $placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. (optional) - * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. (optional) * @param string $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). (optional, default to '%h %l %u %t "%r" %>s %b') + * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $message_type How the message should be formatted. (optional, default to 'classic') * @param string $timestamp_format A timestamp format (optional) + * @param string $compression_codec The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. (optional) * @param int $period How frequently log files are finalized so they can be available for reading (in seconds). (optional, default to 3600) * @param int $gzip_level The level of gzip encoding when sending logs (default `0`, no compression). Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. (optional, default to 0) - * @param string $compression_codec The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. (optional) * @param string $user Your Google Cloud Platform service account email address. The `client_email` field in your service account authentication JSON. Not required if `account_name` is specified. (optional) * @param string $secret_key Your Google Cloud Platform account secret key. The `private_key` field in your service account authentication JSON. Not required if `account_name` is specified. (optional) * @param string $account_name The name of the Google Cloud Platform service account associated with the target log collection service. Not required if `user` and `secret_key` are provided. (optional) @@ -1743,14 +1743,14 @@ public function updateLogGcs($options) * @param string $logging_gcs_name The name for the real-time logging configuration. (required) * @param string $name The name for the real-time logging configuration. (optional) * @param string $placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. (optional) - * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. (optional) * @param string $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). (optional, default to '%h %l %u %t "%r" %>s %b') + * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $message_type How the message should be formatted. (optional, default to 'classic') * @param string $timestamp_format A timestamp format (optional) + * @param string $compression_codec The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. (optional) * @param int $period How frequently log files are finalized so they can be available for reading (in seconds). (optional, default to 3600) * @param int $gzip_level The level of gzip encoding when sending logs (default `0`, no compression). Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. (optional, default to 0) - * @param string $compression_codec The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. (optional) * @param string $user Your Google Cloud Platform service account email address. The `client_email` field in your service account authentication JSON. Not required if `account_name` is specified. (optional) * @param string $secret_key Your Google Cloud Platform account secret key. The `private_key` field in your service account authentication JSON. Not required if `account_name` is specified. (optional) * @param string $account_name The name of the Google Cloud Platform service account associated with the target log collection service. Not required if `user` and `secret_key` are provided. (optional) @@ -1872,14 +1872,14 @@ public function updateLogGcsWithHttpInfo($options) * @param string $logging_gcs_name The name for the real-time logging configuration. (required) * @param string $name The name for the real-time logging configuration. (optional) * @param string $placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. (optional) - * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. (optional) * @param string $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). (optional, default to '%h %l %u %t "%r" %>s %b') + * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $message_type How the message should be formatted. (optional, default to 'classic') * @param string $timestamp_format A timestamp format (optional) + * @param string $compression_codec The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. (optional) * @param int $period How frequently log files are finalized so they can be available for reading (in seconds). (optional, default to 3600) * @param int $gzip_level The level of gzip encoding when sending logs (default `0`, no compression). Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. (optional, default to 0) - * @param string $compression_codec The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. (optional) * @param string $user Your Google Cloud Platform service account email address. The `client_email` field in your service account authentication JSON. Not required if `account_name` is specified. (optional) * @param string $secret_key Your Google Cloud Platform account secret key. The `private_key` field in your service account authentication JSON. Not required if `account_name` is specified. (optional) * @param string $account_name The name of the Google Cloud Platform service account associated with the target log collection service. Not required if `user` and `secret_key` are provided. (optional) @@ -1916,14 +1916,14 @@ function ($response) { * @param string $logging_gcs_name The name for the real-time logging configuration. (required) * @param string $name The name for the real-time logging configuration. (optional) * @param string $placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. (optional) - * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. (optional) * @param string $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). (optional, default to '%h %l %u %t "%r" %>s %b') + * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $message_type How the message should be formatted. (optional, default to 'classic') * @param string $timestamp_format A timestamp format (optional) + * @param string $compression_codec The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. (optional) * @param int $period How frequently log files are finalized so they can be available for reading (in seconds). (optional, default to 3600) * @param int $gzip_level The level of gzip encoding when sending logs (default `0`, no compression). Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. (optional, default to 0) - * @param string $compression_codec The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. (optional) * @param string $user Your Google Cloud Platform service account email address. The `client_email` field in your service account authentication JSON. Not required if `account_name` is specified. (optional) * @param string $secret_key Your Google Cloud Platform account secret key. The `private_key` field in your service account authentication JSON. Not required if `account_name` is specified. (optional) * @param string $account_name The name of the Google Cloud Platform service account associated with the target log collection service. Not required if `user` and `secret_key` are provided. (optional) @@ -1986,14 +1986,14 @@ function ($exception) { * @param string $logging_gcs_name The name for the real-time logging configuration. (required) * @param string $name The name for the real-time logging configuration. (optional) * @param string $placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. (optional) - * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. (optional) * @param string $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). (optional, default to '%h %l %u %t "%r" %>s %b') + * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $message_type How the message should be formatted. (optional, default to 'classic') * @param string $timestamp_format A timestamp format (optional) + * @param string $compression_codec The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. (optional) * @param int $period How frequently log files are finalized so they can be available for reading (in seconds). (optional, default to 3600) * @param int $gzip_level The level of gzip encoding when sending logs (default `0`, no compression). Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. (optional, default to 0) - * @param string $compression_codec The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. (optional) * @param string $user Your Google Cloud Platform service account email address. The `client_email` field in your service account authentication JSON. Not required if `account_name` is specified. (optional) * @param string $secret_key Your Google Cloud Platform account secret key. The `private_key` field in your service account authentication JSON. Not required if `account_name` is specified. (optional) * @param string $account_name The name of the Google Cloud Platform service account associated with the target log collection service. Not required if `user` and `secret_key` are provided. (optional) @@ -2013,14 +2013,14 @@ public function updateLogGcsRequest($options) $logging_gcs_name = array_key_exists('logging_gcs_name', $options) ? $options['logging_gcs_name'] : null; $name = array_key_exists('name', $options) ? $options['name'] : null; $placement = array_key_exists('placement', $options) ? $options['placement'] : null; - $format_version = array_key_exists('format_version', $options) ? $options['format_version'] : self::FORMAT_VERSION_v2; $response_condition = array_key_exists('response_condition', $options) ? $options['response_condition'] : null; $format = array_key_exists('format', $options) ? $options['format'] : '%h %l %u %t "%r" %>s %b'; + $format_version = array_key_exists('format_version', $options) ? $options['format_version'] : self::FORMAT_VERSION_v2; $message_type = array_key_exists('message_type', $options) ? $options['message_type'] : 'classic'; $timestamp_format = array_key_exists('timestamp_format', $options) ? $options['timestamp_format'] : null; + $compression_codec = array_key_exists('compression_codec', $options) ? $options['compression_codec'] : null; $period = array_key_exists('period', $options) ? $options['period'] : 3600; $gzip_level = array_key_exists('gzip_level', $options) ? $options['gzip_level'] : 0; - $compression_codec = array_key_exists('compression_codec', $options) ? $options['compression_codec'] : null; $user = array_key_exists('user', $options) ? $options['user'] : null; $secret_key = array_key_exists('secret_key', $options) ? $options['secret_key'] : null; $account_name = array_key_exists('account_name', $options) ? $options['account_name'] : null; @@ -2091,10 +2091,6 @@ public function updateLogGcsRequest($options) $formParams['placement'] = ObjectSerializer::toFormValue($placement); } // form params - if ($format_version !== null) { - $formParams['format_version'] = ObjectSerializer::toFormValue($format_version); - } - // form params if ($response_condition !== null) { $formParams['response_condition'] = ObjectSerializer::toFormValue($response_condition); } @@ -2103,6 +2099,10 @@ public function updateLogGcsRequest($options) $formParams['format'] = ObjectSerializer::toFormValue($format); } // form params + if ($format_version !== null) { + $formParams['format_version'] = ObjectSerializer::toFormValue($format_version); + } + // form params if ($message_type !== null) { $formParams['message_type'] = ObjectSerializer::toFormValue($message_type); } @@ -2111,6 +2111,10 @@ public function updateLogGcsRequest($options) $formParams['timestamp_format'] = ObjectSerializer::toFormValue($timestamp_format); } // form params + if ($compression_codec !== null) { + $formParams['compression_codec'] = ObjectSerializer::toFormValue($compression_codec); + } + // form params if ($period !== null) { $formParams['period'] = ObjectSerializer::toFormValue($period); } @@ -2119,10 +2123,6 @@ public function updateLogGcsRequest($options) $formParams['gzip_level'] = ObjectSerializer::toFormValue($gzip_level); } // form params - if ($compression_codec !== null) { - $formParams['compression_codec'] = ObjectSerializer::toFormValue($compression_codec); - } - // form params if ($user !== null) { $formParams['user'] = ObjectSerializer::toFormValue($user); } diff --git a/lib/Api/LoggingHerokuApi.php b/lib/Api/LoggingHerokuApi.php index abde3bfc..d807727a 100644 --- a/lib/Api/LoggingHerokuApi.php +++ b/lib/Api/LoggingHerokuApi.php @@ -123,9 +123,9 @@ public function getConfig() * @param int $version_id Integer identifying a service version. (required) * @param string $name The name for the real-time logging configuration. (optional) * @param string $placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. (optional) - * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. (optional) * @param string $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). (optional, default to '%h %l %u %t "%r" %>s %b') + * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $token The token to use for authentication ([https://devcenter.heroku.com/articles/add-on-partner-log-integration](https://devcenter.heroku.com/articles/add-on-partner-log-integration)). (optional) * @param string $url The URL to stream logs to. (optional) * @@ -153,9 +153,9 @@ public function createLogHeroku($options) * @param int $version_id Integer identifying a service version. (required) * @param string $name The name for the real-time logging configuration. (optional) * @param string $placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. (optional) - * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. (optional) * @param string $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). (optional, default to '%h %l %u %t "%r" %>s %b') + * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $token The token to use for authentication ([https://devcenter.heroku.com/articles/add-on-partner-log-integration](https://devcenter.heroku.com/articles/add-on-partner-log-integration)). (optional) * @param string $url The URL to stream logs to. (optional) * @@ -271,9 +271,9 @@ public function createLogHerokuWithHttpInfo($options) * @param int $version_id Integer identifying a service version. (required) * @param string $name The name for the real-time logging configuration. (optional) * @param string $placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. (optional) - * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. (optional) * @param string $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). (optional, default to '%h %l %u %t "%r" %>s %b') + * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $token The token to use for authentication ([https://devcenter.heroku.com/articles/add-on-partner-log-integration](https://devcenter.heroku.com/articles/add-on-partner-log-integration)). (optional) * @param string $url The URL to stream logs to. (optional) * @@ -304,9 +304,9 @@ function ($response) { * @param int $version_id Integer identifying a service version. (required) * @param string $name The name for the real-time logging configuration. (optional) * @param string $placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. (optional) - * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. (optional) * @param string $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). (optional, default to '%h %l %u %t "%r" %>s %b') + * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $token The token to use for authentication ([https://devcenter.heroku.com/articles/add-on-partner-log-integration](https://devcenter.heroku.com/articles/add-on-partner-log-integration)). (optional) * @param string $url The URL to stream logs to. (optional) * @@ -363,9 +363,9 @@ function ($exception) { * @param int $version_id Integer identifying a service version. (required) * @param string $name The name for the real-time logging configuration. (optional) * @param string $placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. (optional) - * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. (optional) * @param string $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). (optional, default to '%h %l %u %t "%r" %>s %b') + * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $token The token to use for authentication ([https://devcenter.heroku.com/articles/add-on-partner-log-integration](https://devcenter.heroku.com/articles/add-on-partner-log-integration)). (optional) * @param string $url The URL to stream logs to. (optional) * @@ -379,9 +379,9 @@ public function createLogHerokuRequest($options) $version_id = array_key_exists('version_id', $options) ? $options['version_id'] : null; $name = array_key_exists('name', $options) ? $options['name'] : null; $placement = array_key_exists('placement', $options) ? $options['placement'] : null; - $format_version = array_key_exists('format_version', $options) ? $options['format_version'] : self::FORMAT_VERSION_v2; $response_condition = array_key_exists('response_condition', $options) ? $options['response_condition'] : null; $format = array_key_exists('format', $options) ? $options['format'] : '%h %l %u %t "%r" %>s %b'; + $format_version = array_key_exists('format_version', $options) ? $options['format_version'] : self::FORMAT_VERSION_v2; $token = array_key_exists('token', $options) ? $options['token'] : null; $url = array_key_exists('url', $options) ? $options['url'] : null; @@ -433,10 +433,6 @@ public function createLogHerokuRequest($options) $formParams['placement'] = ObjectSerializer::toFormValue($placement); } // form params - if ($format_version !== null) { - $formParams['format_version'] = ObjectSerializer::toFormValue($format_version); - } - // form params if ($response_condition !== null) { $formParams['response_condition'] = ObjectSerializer::toFormValue($response_condition); } @@ -445,6 +441,10 @@ public function createLogHerokuRequest($options) $formParams['format'] = ObjectSerializer::toFormValue($format); } // form params + if ($format_version !== null) { + $formParams['format_version'] = ObjectSerializer::toFormValue($format_version); + } + // form params if ($token !== null) { $formParams['token'] = ObjectSerializer::toFormValue($token); } @@ -1602,9 +1602,9 @@ public function listLogHerokuRequest($options) * @param string $logging_heroku_name The name for the real-time logging configuration. (required) * @param string $name The name for the real-time logging configuration. (optional) * @param string $placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. (optional) - * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. (optional) * @param string $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). (optional, default to '%h %l %u %t "%r" %>s %b') + * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $token The token to use for authentication ([https://devcenter.heroku.com/articles/add-on-partner-log-integration](https://devcenter.heroku.com/articles/add-on-partner-log-integration)). (optional) * @param string $url The URL to stream logs to. (optional) * @@ -1633,9 +1633,9 @@ public function updateLogHeroku($options) * @param string $logging_heroku_name The name for the real-time logging configuration. (required) * @param string $name The name for the real-time logging configuration. (optional) * @param string $placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. (optional) - * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. (optional) * @param string $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). (optional, default to '%h %l %u %t "%r" %>s %b') + * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $token The token to use for authentication ([https://devcenter.heroku.com/articles/add-on-partner-log-integration](https://devcenter.heroku.com/articles/add-on-partner-log-integration)). (optional) * @param string $url The URL to stream logs to. (optional) * @@ -1752,9 +1752,9 @@ public function updateLogHerokuWithHttpInfo($options) * @param string $logging_heroku_name The name for the real-time logging configuration. (required) * @param string $name The name for the real-time logging configuration. (optional) * @param string $placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. (optional) - * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. (optional) * @param string $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). (optional, default to '%h %l %u %t "%r" %>s %b') + * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $token The token to use for authentication ([https://devcenter.heroku.com/articles/add-on-partner-log-integration](https://devcenter.heroku.com/articles/add-on-partner-log-integration)). (optional) * @param string $url The URL to stream logs to. (optional) * @@ -1786,9 +1786,9 @@ function ($response) { * @param string $logging_heroku_name The name for the real-time logging configuration. (required) * @param string $name The name for the real-time logging configuration. (optional) * @param string $placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. (optional) - * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. (optional) * @param string $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). (optional, default to '%h %l %u %t "%r" %>s %b') + * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $token The token to use for authentication ([https://devcenter.heroku.com/articles/add-on-partner-log-integration](https://devcenter.heroku.com/articles/add-on-partner-log-integration)). (optional) * @param string $url The URL to stream logs to. (optional) * @@ -1846,9 +1846,9 @@ function ($exception) { * @param string $logging_heroku_name The name for the real-time logging configuration. (required) * @param string $name The name for the real-time logging configuration. (optional) * @param string $placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. (optional) - * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. (optional) * @param string $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). (optional, default to '%h %l %u %t "%r" %>s %b') + * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $token The token to use for authentication ([https://devcenter.heroku.com/articles/add-on-partner-log-integration](https://devcenter.heroku.com/articles/add-on-partner-log-integration)). (optional) * @param string $url The URL to stream logs to. (optional) * @@ -1863,9 +1863,9 @@ public function updateLogHerokuRequest($options) $logging_heroku_name = array_key_exists('logging_heroku_name', $options) ? $options['logging_heroku_name'] : null; $name = array_key_exists('name', $options) ? $options['name'] : null; $placement = array_key_exists('placement', $options) ? $options['placement'] : null; - $format_version = array_key_exists('format_version', $options) ? $options['format_version'] : self::FORMAT_VERSION_v2; $response_condition = array_key_exists('response_condition', $options) ? $options['response_condition'] : null; $format = array_key_exists('format', $options) ? $options['format'] : '%h %l %u %t "%r" %>s %b'; + $format_version = array_key_exists('format_version', $options) ? $options['format_version'] : self::FORMAT_VERSION_v2; $token = array_key_exists('token', $options) ? $options['token'] : null; $url = array_key_exists('url', $options) ? $options['url'] : null; @@ -1931,10 +1931,6 @@ public function updateLogHerokuRequest($options) $formParams['placement'] = ObjectSerializer::toFormValue($placement); } // form params - if ($format_version !== null) { - $formParams['format_version'] = ObjectSerializer::toFormValue($format_version); - } - // form params if ($response_condition !== null) { $formParams['response_condition'] = ObjectSerializer::toFormValue($response_condition); } @@ -1943,6 +1939,10 @@ public function updateLogHerokuRequest($options) $formParams['format'] = ObjectSerializer::toFormValue($format); } // form params + if ($format_version !== null) { + $formParams['format_version'] = ObjectSerializer::toFormValue($format_version); + } + // form params if ($token !== null) { $formParams['token'] = ObjectSerializer::toFormValue($token); } diff --git a/lib/Api/LoggingHoneycombApi.php b/lib/Api/LoggingHoneycombApi.php index eb8713df..0fd28db1 100644 --- a/lib/Api/LoggingHoneycombApi.php +++ b/lib/Api/LoggingHoneycombApi.php @@ -123,15 +123,15 @@ public function getConfig() * @param int $version_id Integer identifying a service version. (required) * @param string $name The name for the real-time logging configuration. (optional) * @param string $placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. (optional) - * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. (optional) * @param string $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). Must produce valid JSON that Honeycomb can ingest. (optional) + * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $dataset The Honeycomb Dataset you want to log to. (optional) * @param string $token The Write Key from the Account page of your Honeycomb account. (optional) * * @throws \Fastly\ApiException on non-2xx response * @throws \InvalidArgumentException - * @return \Fastly\Model\LoggingHoneycomb + * @return \Fastly\Model\LoggingHoneycombResponse */ public function createLogHoneycomb($options) { @@ -153,15 +153,15 @@ public function createLogHoneycomb($options) * @param int $version_id Integer identifying a service version. (required) * @param string $name The name for the real-time logging configuration. (optional) * @param string $placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. (optional) - * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. (optional) * @param string $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). Must produce valid JSON that Honeycomb can ingest. (optional) + * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $dataset The Honeycomb Dataset you want to log to. (optional) * @param string $token The Write Key from the Account page of your Honeycomb account. (optional) * * @throws \Fastly\ApiException on non-2xx response * @throws \InvalidArgumentException - * @return array of \Fastly\Model\LoggingHoneycomb, HTTP status code, HTTP response headers (array of strings) + * @return array of \Fastly\Model\LoggingHoneycombResponse, HTTP status code, HTTP response headers (array of strings) */ public function createLogHoneycombWithHttpInfo($options) { @@ -216,20 +216,20 @@ public function createLogHoneycombWithHttpInfo($options) switch($statusCode) { case 200: - if ('\Fastly\Model\LoggingHoneycomb' === '\SplFileObject') { + if ('\Fastly\Model\LoggingHoneycombResponse' === '\SplFileObject') { $content = $response->getBody(); //stream goes to serializer } else { $content = (string) $response->getBody(); } return [ - ObjectSerializer::deserialize($content, '\Fastly\Model\LoggingHoneycomb', []), + ObjectSerializer::deserialize($content, '\Fastly\Model\LoggingHoneycombResponse', []), $response->getStatusCode(), $response->getHeaders() ]; } - $returnType = '\Fastly\Model\LoggingHoneycomb'; + $returnType = '\Fastly\Model\LoggingHoneycombResponse'; if ($returnType === '\SplFileObject') { $content = $response->getBody(); //stream goes to serializer } else { @@ -247,7 +247,7 @@ public function createLogHoneycombWithHttpInfo($options) case 200: $data = ObjectSerializer::deserialize( $e->getResponseBody(), - '\Fastly\Model\LoggingHoneycomb', + '\Fastly\Model\LoggingHoneycombResponse', $e->getResponseHeaders() ); $e->setResponseObject($data); @@ -271,9 +271,9 @@ public function createLogHoneycombWithHttpInfo($options) * @param int $version_id Integer identifying a service version. (required) * @param string $name The name for the real-time logging configuration. (optional) * @param string $placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. (optional) - * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. (optional) * @param string $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). Must produce valid JSON that Honeycomb can ingest. (optional) + * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $dataset The Honeycomb Dataset you want to log to. (optional) * @param string $token The Write Key from the Account page of your Honeycomb account. (optional) * @@ -304,9 +304,9 @@ function ($response) { * @param int $version_id Integer identifying a service version. (required) * @param string $name The name for the real-time logging configuration. (optional) * @param string $placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. (optional) - * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. (optional) * @param string $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). Must produce valid JSON that Honeycomb can ingest. (optional) + * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $dataset The Honeycomb Dataset you want to log to. (optional) * @param string $token The Write Key from the Account page of your Honeycomb account. (optional) * @@ -315,7 +315,7 @@ function ($response) { */ public function createLogHoneycombAsyncWithHttpInfo($options) { - $returnType = '\Fastly\Model\LoggingHoneycomb'; + $returnType = '\Fastly\Model\LoggingHoneycombResponse'; $request = $this->createLogHoneycombRequest($options); return $this->client @@ -363,9 +363,9 @@ function ($exception) { * @param int $version_id Integer identifying a service version. (required) * @param string $name The name for the real-time logging configuration. (optional) * @param string $placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. (optional) - * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. (optional) * @param string $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). Must produce valid JSON that Honeycomb can ingest. (optional) + * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $dataset The Honeycomb Dataset you want to log to. (optional) * @param string $token The Write Key from the Account page of your Honeycomb account. (optional) * @@ -379,9 +379,9 @@ public function createLogHoneycombRequest($options) $version_id = array_key_exists('version_id', $options) ? $options['version_id'] : null; $name = array_key_exists('name', $options) ? $options['name'] : null; $placement = array_key_exists('placement', $options) ? $options['placement'] : null; - $format_version = array_key_exists('format_version', $options) ? $options['format_version'] : self::FORMAT_VERSION_v2; $response_condition = array_key_exists('response_condition', $options) ? $options['response_condition'] : null; $format = array_key_exists('format', $options) ? $options['format'] : null; + $format_version = array_key_exists('format_version', $options) ? $options['format_version'] : self::FORMAT_VERSION_v2; $dataset = array_key_exists('dataset', $options) ? $options['dataset'] : null; $token = array_key_exists('token', $options) ? $options['token'] : null; @@ -433,10 +433,6 @@ public function createLogHoneycombRequest($options) $formParams['placement'] = ObjectSerializer::toFormValue($placement); } // form params - if ($format_version !== null) { - $formParams['format_version'] = ObjectSerializer::toFormValue($format_version); - } - // form params if ($response_condition !== null) { $formParams['response_condition'] = ObjectSerializer::toFormValue($response_condition); } @@ -445,6 +441,10 @@ public function createLogHoneycombRequest($options) $formParams['format'] = ObjectSerializer::toFormValue($format); } // form params + if ($format_version !== null) { + $formParams['format_version'] = ObjectSerializer::toFormValue($format_version); + } + // form params if ($dataset !== null) { $formParams['dataset'] = ObjectSerializer::toFormValue($dataset); } @@ -899,7 +899,7 @@ public function deleteLogHoneycombRequest($options) * * @throws \Fastly\ApiException on non-2xx response * @throws \InvalidArgumentException - * @return \Fastly\Model\LoggingHoneycomb + * @return \Fastly\Model\LoggingHoneycombResponse */ public function getLogHoneycomb($options) { @@ -923,7 +923,7 @@ public function getLogHoneycomb($options) * * @throws \Fastly\ApiException on non-2xx response * @throws \InvalidArgumentException - * @return array of \Fastly\Model\LoggingHoneycomb, HTTP status code, HTTP response headers (array of strings) + * @return array of \Fastly\Model\LoggingHoneycombResponse, HTTP status code, HTTP response headers (array of strings) */ public function getLogHoneycombWithHttpInfo($options) { @@ -978,20 +978,20 @@ public function getLogHoneycombWithHttpInfo($options) switch($statusCode) { case 200: - if ('\Fastly\Model\LoggingHoneycomb' === '\SplFileObject') { + if ('\Fastly\Model\LoggingHoneycombResponse' === '\SplFileObject') { $content = $response->getBody(); //stream goes to serializer } else { $content = (string) $response->getBody(); } return [ - ObjectSerializer::deserialize($content, '\Fastly\Model\LoggingHoneycomb', []), + ObjectSerializer::deserialize($content, '\Fastly\Model\LoggingHoneycombResponse', []), $response->getStatusCode(), $response->getHeaders() ]; } - $returnType = '\Fastly\Model\LoggingHoneycomb'; + $returnType = '\Fastly\Model\LoggingHoneycombResponse'; if ($returnType === '\SplFileObject') { $content = $response->getBody(); //stream goes to serializer } else { @@ -1009,7 +1009,7 @@ public function getLogHoneycombWithHttpInfo($options) case 200: $data = ObjectSerializer::deserialize( $e->getResponseBody(), - '\Fastly\Model\LoggingHoneycomb', + '\Fastly\Model\LoggingHoneycombResponse', $e->getResponseHeaders() ); $e->setResponseObject($data); @@ -1065,7 +1065,7 @@ function ($response) { */ public function getLogHoneycombAsyncWithHttpInfo($options) { - $returnType = '\Fastly\Model\LoggingHoneycomb'; + $returnType = '\Fastly\Model\LoggingHoneycombResponse'; $request = $this->getLogHoneycombRequest($options); return $this->client @@ -1602,9 +1602,9 @@ public function listLogHoneycombRequest($options) * @param string $logging_honeycomb_name The name for the real-time logging configuration. (required) * @param string $name The name for the real-time logging configuration. (optional) * @param string $placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. (optional) - * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. (optional) * @param string $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). Must produce valid JSON that Honeycomb can ingest. (optional) + * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $dataset The Honeycomb Dataset you want to log to. (optional) * @param string $token The Write Key from the Account page of your Honeycomb account. (optional) * @@ -1633,9 +1633,9 @@ public function updateLogHoneycomb($options) * @param string $logging_honeycomb_name The name for the real-time logging configuration. (required) * @param string $name The name for the real-time logging configuration. (optional) * @param string $placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. (optional) - * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. (optional) * @param string $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). Must produce valid JSON that Honeycomb can ingest. (optional) + * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $dataset The Honeycomb Dataset you want to log to. (optional) * @param string $token The Write Key from the Account page of your Honeycomb account. (optional) * @@ -1752,9 +1752,9 @@ public function updateLogHoneycombWithHttpInfo($options) * @param string $logging_honeycomb_name The name for the real-time logging configuration. (required) * @param string $name The name for the real-time logging configuration. (optional) * @param string $placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. (optional) - * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. (optional) * @param string $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). Must produce valid JSON that Honeycomb can ingest. (optional) + * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $dataset The Honeycomb Dataset you want to log to. (optional) * @param string $token The Write Key from the Account page of your Honeycomb account. (optional) * @@ -1786,9 +1786,9 @@ function ($response) { * @param string $logging_honeycomb_name The name for the real-time logging configuration. (required) * @param string $name The name for the real-time logging configuration. (optional) * @param string $placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. (optional) - * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. (optional) * @param string $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). Must produce valid JSON that Honeycomb can ingest. (optional) + * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $dataset The Honeycomb Dataset you want to log to. (optional) * @param string $token The Write Key from the Account page of your Honeycomb account. (optional) * @@ -1846,9 +1846,9 @@ function ($exception) { * @param string $logging_honeycomb_name The name for the real-time logging configuration. (required) * @param string $name The name for the real-time logging configuration. (optional) * @param string $placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. (optional) - * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. (optional) * @param string $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). Must produce valid JSON that Honeycomb can ingest. (optional) + * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $dataset The Honeycomb Dataset you want to log to. (optional) * @param string $token The Write Key from the Account page of your Honeycomb account. (optional) * @@ -1863,9 +1863,9 @@ public function updateLogHoneycombRequest($options) $logging_honeycomb_name = array_key_exists('logging_honeycomb_name', $options) ? $options['logging_honeycomb_name'] : null; $name = array_key_exists('name', $options) ? $options['name'] : null; $placement = array_key_exists('placement', $options) ? $options['placement'] : null; - $format_version = array_key_exists('format_version', $options) ? $options['format_version'] : self::FORMAT_VERSION_v2; $response_condition = array_key_exists('response_condition', $options) ? $options['response_condition'] : null; $format = array_key_exists('format', $options) ? $options['format'] : null; + $format_version = array_key_exists('format_version', $options) ? $options['format_version'] : self::FORMAT_VERSION_v2; $dataset = array_key_exists('dataset', $options) ? $options['dataset'] : null; $token = array_key_exists('token', $options) ? $options['token'] : null; @@ -1931,10 +1931,6 @@ public function updateLogHoneycombRequest($options) $formParams['placement'] = ObjectSerializer::toFormValue($placement); } // form params - if ($format_version !== null) { - $formParams['format_version'] = ObjectSerializer::toFormValue($format_version); - } - // form params if ($response_condition !== null) { $formParams['response_condition'] = ObjectSerializer::toFormValue($response_condition); } @@ -1943,6 +1939,10 @@ public function updateLogHoneycombRequest($options) $formParams['format'] = ObjectSerializer::toFormValue($format); } // form params + if ($format_version !== null) { + $formParams['format_version'] = ObjectSerializer::toFormValue($format_version); + } + // form params if ($dataset !== null) { $formParams['dataset'] = ObjectSerializer::toFormValue($dataset); } diff --git a/lib/Api/LoggingHttpsApi.php b/lib/Api/LoggingHttpsApi.php index 9b70b4e8..fa982f6c 100644 --- a/lib/Api/LoggingHttpsApi.php +++ b/lib/Api/LoggingHttpsApi.php @@ -123,9 +123,9 @@ public function getConfig() * @param int $version_id Integer identifying a service version. (required) * @param string $name The name for the real-time logging configuration. (optional) * @param string $placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. (optional) - * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. (optional) * @param string $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). (optional, default to '%h %l %u %t "%r" %>s %b') + * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $tls_ca_cert A secure certificate to authenticate a server with. Must be in PEM format. (optional, default to 'null') * @param string $tls_client_cert The client certificate used to make authenticated requests. Must be in PEM format. (optional, default to 'null') * @param string $tls_client_key The client private key used to make authenticated requests. Must be in PEM format. (optional, default to 'null') @@ -164,9 +164,9 @@ public function createLogHttps($options) * @param int $version_id Integer identifying a service version. (required) * @param string $name The name for the real-time logging configuration. (optional) * @param string $placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. (optional) - * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. (optional) * @param string $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). (optional, default to '%h %l %u %t "%r" %>s %b') + * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $tls_ca_cert A secure certificate to authenticate a server with. Must be in PEM format. (optional, default to 'null') * @param string $tls_client_cert The client certificate used to make authenticated requests. Must be in PEM format. (optional, default to 'null') * @param string $tls_client_key The client private key used to make authenticated requests. Must be in PEM format. (optional, default to 'null') @@ -293,9 +293,9 @@ public function createLogHttpsWithHttpInfo($options) * @param int $version_id Integer identifying a service version. (required) * @param string $name The name for the real-time logging configuration. (optional) * @param string $placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. (optional) - * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. (optional) * @param string $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). (optional, default to '%h %l %u %t "%r" %>s %b') + * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $tls_ca_cert A secure certificate to authenticate a server with. Must be in PEM format. (optional, default to 'null') * @param string $tls_client_cert The client certificate used to make authenticated requests. Must be in PEM format. (optional, default to 'null') * @param string $tls_client_key The client private key used to make authenticated requests. Must be in PEM format. (optional, default to 'null') @@ -337,9 +337,9 @@ function ($response) { * @param int $version_id Integer identifying a service version. (required) * @param string $name The name for the real-time logging configuration. (optional) * @param string $placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. (optional) - * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. (optional) * @param string $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). (optional, default to '%h %l %u %t "%r" %>s %b') + * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $tls_ca_cert A secure certificate to authenticate a server with. Must be in PEM format. (optional, default to 'null') * @param string $tls_client_cert The client certificate used to make authenticated requests. Must be in PEM format. (optional, default to 'null') * @param string $tls_client_key The client private key used to make authenticated requests. Must be in PEM format. (optional, default to 'null') @@ -407,9 +407,9 @@ function ($exception) { * @param int $version_id Integer identifying a service version. (required) * @param string $name The name for the real-time logging configuration. (optional) * @param string $placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. (optional) - * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. (optional) * @param string $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). (optional, default to '%h %l %u %t "%r" %>s %b') + * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $tls_ca_cert A secure certificate to authenticate a server with. Must be in PEM format. (optional, default to 'null') * @param string $tls_client_cert The client certificate used to make authenticated requests. Must be in PEM format. (optional, default to 'null') * @param string $tls_client_key The client private key used to make authenticated requests. Must be in PEM format. (optional, default to 'null') @@ -434,9 +434,9 @@ public function createLogHttpsRequest($options) $version_id = array_key_exists('version_id', $options) ? $options['version_id'] : null; $name = array_key_exists('name', $options) ? $options['name'] : null; $placement = array_key_exists('placement', $options) ? $options['placement'] : null; - $format_version = array_key_exists('format_version', $options) ? $options['format_version'] : self::FORMAT_VERSION_v2; $response_condition = array_key_exists('response_condition', $options) ? $options['response_condition'] : null; $format = array_key_exists('format', $options) ? $options['format'] : '%h %l %u %t "%r" %>s %b'; + $format_version = array_key_exists('format_version', $options) ? $options['format_version'] : self::FORMAT_VERSION_v2; $tls_ca_cert = array_key_exists('tls_ca_cert', $options) ? $options['tls_ca_cert'] : 'null'; $tls_client_cert = array_key_exists('tls_client_cert', $options) ? $options['tls_client_cert'] : 'null'; $tls_client_key = array_key_exists('tls_client_key', $options) ? $options['tls_client_key'] : 'null'; @@ -499,10 +499,6 @@ public function createLogHttpsRequest($options) $formParams['placement'] = ObjectSerializer::toFormValue($placement); } // form params - if ($format_version !== null) { - $formParams['format_version'] = ObjectSerializer::toFormValue($format_version); - } - // form params if ($response_condition !== null) { $formParams['response_condition'] = ObjectSerializer::toFormValue($response_condition); } @@ -511,6 +507,10 @@ public function createLogHttpsRequest($options) $formParams['format'] = ObjectSerializer::toFormValue($format); } // form params + if ($format_version !== null) { + $formParams['format_version'] = ObjectSerializer::toFormValue($format_version); + } + // form params if ($tls_ca_cert !== null) { $formParams['tls_ca_cert'] = ObjectSerializer::toFormValue($tls_ca_cert); } @@ -1712,9 +1712,9 @@ public function listLogHttpsRequest($options) * @param string $logging_https_name The name for the real-time logging configuration. (required) * @param string $name The name for the real-time logging configuration. (optional) * @param string $placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. (optional) - * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. (optional) * @param string $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). (optional, default to '%h %l %u %t "%r" %>s %b') + * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $tls_ca_cert A secure certificate to authenticate a server with. Must be in PEM format. (optional, default to 'null') * @param string $tls_client_cert The client certificate used to make authenticated requests. Must be in PEM format. (optional, default to 'null') * @param string $tls_client_key The client private key used to make authenticated requests. Must be in PEM format. (optional, default to 'null') @@ -1754,9 +1754,9 @@ public function updateLogHttps($options) * @param string $logging_https_name The name for the real-time logging configuration. (required) * @param string $name The name for the real-time logging configuration. (optional) * @param string $placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. (optional) - * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. (optional) * @param string $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). (optional, default to '%h %l %u %t "%r" %>s %b') + * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $tls_ca_cert A secure certificate to authenticate a server with. Must be in PEM format. (optional, default to 'null') * @param string $tls_client_cert The client certificate used to make authenticated requests. Must be in PEM format. (optional, default to 'null') * @param string $tls_client_key The client private key used to make authenticated requests. Must be in PEM format. (optional, default to 'null') @@ -1884,9 +1884,9 @@ public function updateLogHttpsWithHttpInfo($options) * @param string $logging_https_name The name for the real-time logging configuration. (required) * @param string $name The name for the real-time logging configuration. (optional) * @param string $placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. (optional) - * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. (optional) * @param string $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). (optional, default to '%h %l %u %t "%r" %>s %b') + * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $tls_ca_cert A secure certificate to authenticate a server with. Must be in PEM format. (optional, default to 'null') * @param string $tls_client_cert The client certificate used to make authenticated requests. Must be in PEM format. (optional, default to 'null') * @param string $tls_client_key The client private key used to make authenticated requests. Must be in PEM format. (optional, default to 'null') @@ -1929,9 +1929,9 @@ function ($response) { * @param string $logging_https_name The name for the real-time logging configuration. (required) * @param string $name The name for the real-time logging configuration. (optional) * @param string $placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. (optional) - * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. (optional) * @param string $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). (optional, default to '%h %l %u %t "%r" %>s %b') + * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $tls_ca_cert A secure certificate to authenticate a server with. Must be in PEM format. (optional, default to 'null') * @param string $tls_client_cert The client certificate used to make authenticated requests. Must be in PEM format. (optional, default to 'null') * @param string $tls_client_key The client private key used to make authenticated requests. Must be in PEM format. (optional, default to 'null') @@ -2000,9 +2000,9 @@ function ($exception) { * @param string $logging_https_name The name for the real-time logging configuration. (required) * @param string $name The name for the real-time logging configuration. (optional) * @param string $placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. (optional) - * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. (optional) * @param string $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). (optional, default to '%h %l %u %t "%r" %>s %b') + * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $tls_ca_cert A secure certificate to authenticate a server with. Must be in PEM format. (optional, default to 'null') * @param string $tls_client_cert The client certificate used to make authenticated requests. Must be in PEM format. (optional, default to 'null') * @param string $tls_client_key The client private key used to make authenticated requests. Must be in PEM format. (optional, default to 'null') @@ -2028,9 +2028,9 @@ public function updateLogHttpsRequest($options) $logging_https_name = array_key_exists('logging_https_name', $options) ? $options['logging_https_name'] : null; $name = array_key_exists('name', $options) ? $options['name'] : null; $placement = array_key_exists('placement', $options) ? $options['placement'] : null; - $format_version = array_key_exists('format_version', $options) ? $options['format_version'] : self::FORMAT_VERSION_v2; $response_condition = array_key_exists('response_condition', $options) ? $options['response_condition'] : null; $format = array_key_exists('format', $options) ? $options['format'] : '%h %l %u %t "%r" %>s %b'; + $format_version = array_key_exists('format_version', $options) ? $options['format_version'] : self::FORMAT_VERSION_v2; $tls_ca_cert = array_key_exists('tls_ca_cert', $options) ? $options['tls_ca_cert'] : 'null'; $tls_client_cert = array_key_exists('tls_client_cert', $options) ? $options['tls_client_cert'] : 'null'; $tls_client_key = array_key_exists('tls_client_key', $options) ? $options['tls_client_key'] : 'null'; @@ -2107,10 +2107,6 @@ public function updateLogHttpsRequest($options) $formParams['placement'] = ObjectSerializer::toFormValue($placement); } // form params - if ($format_version !== null) { - $formParams['format_version'] = ObjectSerializer::toFormValue($format_version); - } - // form params if ($response_condition !== null) { $formParams['response_condition'] = ObjectSerializer::toFormValue($response_condition); } @@ -2119,6 +2115,10 @@ public function updateLogHttpsRequest($options) $formParams['format'] = ObjectSerializer::toFormValue($format); } // form params + if ($format_version !== null) { + $formParams['format_version'] = ObjectSerializer::toFormValue($format_version); + } + // form params if ($tls_ca_cert !== null) { $formParams['tls_ca_cert'] = ObjectSerializer::toFormValue($tls_ca_cert); } diff --git a/lib/Api/LoggingKafkaApi.php b/lib/Api/LoggingKafkaApi.php index 89dbc5ee..92e14890 100644 --- a/lib/Api/LoggingKafkaApi.php +++ b/lib/Api/LoggingKafkaApi.php @@ -123,9 +123,9 @@ public function getConfig() * @param int $version_id Integer identifying a service version. (required) * @param string $name The name for the real-time logging configuration. (optional) * @param string $placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. (optional) - * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. (optional) * @param string $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). (optional, default to '%h %l %u %t "%r" %>s %b') + * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $tls_ca_cert A secure certificate to authenticate a server with. Must be in PEM format. (optional, default to 'null') * @param string $tls_client_cert The client certificate used to make authenticated requests. Must be in PEM format. (optional, default to 'null') * @param string $tls_client_key The client private key used to make authenticated requests. Must be in PEM format. (optional, default to 'null') @@ -143,7 +143,7 @@ public function getConfig() * * @throws \Fastly\ApiException on non-2xx response * @throws \InvalidArgumentException - * @return \Fastly\Model\LoggingKafkaResponse + * @return \Fastly\Model\LoggingKafkaResponsePost */ public function createLogKafka($options) { @@ -165,9 +165,9 @@ public function createLogKafka($options) * @param int $version_id Integer identifying a service version. (required) * @param string $name The name for the real-time logging configuration. (optional) * @param string $placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. (optional) - * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. (optional) * @param string $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). (optional, default to '%h %l %u %t "%r" %>s %b') + * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $tls_ca_cert A secure certificate to authenticate a server with. Must be in PEM format. (optional, default to 'null') * @param string $tls_client_cert The client certificate used to make authenticated requests. Must be in PEM format. (optional, default to 'null') * @param string $tls_client_key The client private key used to make authenticated requests. Must be in PEM format. (optional, default to 'null') @@ -185,7 +185,7 @@ public function createLogKafka($options) * * @throws \Fastly\ApiException on non-2xx response * @throws \InvalidArgumentException - * @return array of \Fastly\Model\LoggingKafkaResponse, HTTP status code, HTTP response headers (array of strings) + * @return array of \Fastly\Model\LoggingKafkaResponsePost, HTTP status code, HTTP response headers (array of strings) */ public function createLogKafkaWithHttpInfo($options) { @@ -240,20 +240,20 @@ public function createLogKafkaWithHttpInfo($options) switch($statusCode) { case 200: - if ('\Fastly\Model\LoggingKafkaResponse' === '\SplFileObject') { + if ('\Fastly\Model\LoggingKafkaResponsePost' === '\SplFileObject') { $content = $response->getBody(); //stream goes to serializer } else { $content = (string) $response->getBody(); } return [ - ObjectSerializer::deserialize($content, '\Fastly\Model\LoggingKafkaResponse', []), + ObjectSerializer::deserialize($content, '\Fastly\Model\LoggingKafkaResponsePost', []), $response->getStatusCode(), $response->getHeaders() ]; } - $returnType = '\Fastly\Model\LoggingKafkaResponse'; + $returnType = '\Fastly\Model\LoggingKafkaResponsePost'; if ($returnType === '\SplFileObject') { $content = $response->getBody(); //stream goes to serializer } else { @@ -271,7 +271,7 @@ public function createLogKafkaWithHttpInfo($options) case 200: $data = ObjectSerializer::deserialize( $e->getResponseBody(), - '\Fastly\Model\LoggingKafkaResponse', + '\Fastly\Model\LoggingKafkaResponsePost', $e->getResponseHeaders() ); $e->setResponseObject($data); @@ -295,9 +295,9 @@ public function createLogKafkaWithHttpInfo($options) * @param int $version_id Integer identifying a service version. (required) * @param string $name The name for the real-time logging configuration. (optional) * @param string $placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. (optional) - * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. (optional) * @param string $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). (optional, default to '%h %l %u %t "%r" %>s %b') + * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $tls_ca_cert A secure certificate to authenticate a server with. Must be in PEM format. (optional, default to 'null') * @param string $tls_client_cert The client certificate used to make authenticated requests. Must be in PEM format. (optional, default to 'null') * @param string $tls_client_key The client private key used to make authenticated requests. Must be in PEM format. (optional, default to 'null') @@ -340,9 +340,9 @@ function ($response) { * @param int $version_id Integer identifying a service version. (required) * @param string $name The name for the real-time logging configuration. (optional) * @param string $placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. (optional) - * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. (optional) * @param string $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). (optional, default to '%h %l %u %t "%r" %>s %b') + * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $tls_ca_cert A secure certificate to authenticate a server with. Must be in PEM format. (optional, default to 'null') * @param string $tls_client_cert The client certificate used to make authenticated requests. Must be in PEM format. (optional, default to 'null') * @param string $tls_client_key The client private key used to make authenticated requests. Must be in PEM format. (optional, default to 'null') @@ -363,7 +363,7 @@ function ($response) { */ public function createLogKafkaAsyncWithHttpInfo($options) { - $returnType = '\Fastly\Model\LoggingKafkaResponse'; + $returnType = '\Fastly\Model\LoggingKafkaResponsePost'; $request = $this->createLogKafkaRequest($options); return $this->client @@ -411,9 +411,9 @@ function ($exception) { * @param int $version_id Integer identifying a service version. (required) * @param string $name The name for the real-time logging configuration. (optional) * @param string $placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. (optional) - * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. (optional) * @param string $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). (optional, default to '%h %l %u %t "%r" %>s %b') + * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $tls_ca_cert A secure certificate to authenticate a server with. Must be in PEM format. (optional, default to 'null') * @param string $tls_client_cert The client certificate used to make authenticated requests. Must be in PEM format. (optional, default to 'null') * @param string $tls_client_key The client private key used to make authenticated requests. Must be in PEM format. (optional, default to 'null') @@ -439,9 +439,9 @@ public function createLogKafkaRequest($options) $version_id = array_key_exists('version_id', $options) ? $options['version_id'] : null; $name = array_key_exists('name', $options) ? $options['name'] : null; $placement = array_key_exists('placement', $options) ? $options['placement'] : null; - $format_version = array_key_exists('format_version', $options) ? $options['format_version'] : self::FORMAT_VERSION_v2; $response_condition = array_key_exists('response_condition', $options) ? $options['response_condition'] : null; $format = array_key_exists('format', $options) ? $options['format'] : '%h %l %u %t "%r" %>s %b'; + $format_version = array_key_exists('format_version', $options) ? $options['format_version'] : self::FORMAT_VERSION_v2; $tls_ca_cert = array_key_exists('tls_ca_cert', $options) ? $options['tls_ca_cert'] : 'null'; $tls_client_cert = array_key_exists('tls_client_cert', $options) ? $options['tls_client_cert'] : 'null'; $tls_client_key = array_key_exists('tls_client_key', $options) ? $options['tls_client_key'] : 'null'; @@ -505,10 +505,6 @@ public function createLogKafkaRequest($options) $formParams['placement'] = ObjectSerializer::toFormValue($placement); } // form params - if ($format_version !== null) { - $formParams['format_version'] = ObjectSerializer::toFormValue($format_version); - } - // form params if ($response_condition !== null) { $formParams['response_condition'] = ObjectSerializer::toFormValue($response_condition); } @@ -517,6 +513,10 @@ public function createLogKafkaRequest($options) $formParams['format'] = ObjectSerializer::toFormValue($format); } // form params + if ($format_version !== null) { + $formParams['format_version'] = ObjectSerializer::toFormValue($format_version); + } + // form params if ($tls_ca_cert !== null) { $formParams['tls_ca_cert'] = ObjectSerializer::toFormValue($tls_ca_cert); } diff --git a/lib/Api/LoggingKinesisApi.php b/lib/Api/LoggingKinesisApi.php index feda761b..2ca1c794 100644 --- a/lib/Api/LoggingKinesisApi.php +++ b/lib/Api/LoggingKinesisApi.php @@ -123,13 +123,13 @@ public function getConfig() * @param int $version_id Integer identifying a service version. (required) * @param string $name The name for the real-time logging configuration. (optional) * @param \Fastly\Model\LoggingPlacement $placement placement (optional) - * @param \Fastly\Model\LoggingFormatVersion $format_version format_version (optional) * @param string $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). Must produce valid JSON that Kinesis can ingest. (optional, default to '{"timestamp":"%{begin:%Y-%m-%dT%H:%M:%S}t","time_elapsed":"%{time.elapsed.usec}V","is_tls":"%{if(req.is_ssl, \"true\", \"false\")}V","client_ip":"%{req.http.Fastly-Client-IP}V","geo_city":"%{client.geo.city}V","geo_country_code":"%{client.geo.country_code}V","request":"%{req.request}V","host":"%{req.http.Fastly-Orig-Host}V","url":"%{json.escape(req.url)}V","request_referer":"%{json.escape(req.http.Referer)}V","request_user_agent":"%{json.escape(req.http.User-Agent)}V","request_accept_language":"%{json.escape(req.http.Accept-Language)}V","request_accept_charset":"%{json.escape(req.http.Accept-Charset)}V","cache_status":"%{regsub(fastly_info.state, \"^(HIT-(SYNTH)|(HITPASS|HIT|MISS|PASS|ERROR|PIPE)).*\", \"\\2\\3\") }V"}') * @param string $topic The Amazon Kinesis stream to send logs to. Required. (optional) * @param \Fastly\Model\AwsRegion $region region (optional) * @param string $secret_key The secret key associated with the target Amazon Kinesis stream. Not required if `iam_role` is specified. (optional) * @param string $access_key The access key associated with the target Amazon Kinesis stream. Not required if `iam_role` is specified. (optional) * @param string $iam_role The ARN for an IAM role granting Fastly access to the target Amazon Kinesis stream. Not required if `access_key` and `secret_key` are provided. (optional) + * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * * @throws \Fastly\ApiException on non-2xx response * @throws \InvalidArgumentException @@ -155,13 +155,13 @@ public function createLogKinesis($options) * @param int $version_id Integer identifying a service version. (required) * @param string $name The name for the real-time logging configuration. (optional) * @param \Fastly\Model\LoggingPlacement $placement (optional) - * @param \Fastly\Model\LoggingFormatVersion $format_version (optional) * @param string $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). Must produce valid JSON that Kinesis can ingest. (optional, default to '{"timestamp":"%{begin:%Y-%m-%dT%H:%M:%S}t","time_elapsed":"%{time.elapsed.usec}V","is_tls":"%{if(req.is_ssl, \"true\", \"false\")}V","client_ip":"%{req.http.Fastly-Client-IP}V","geo_city":"%{client.geo.city}V","geo_country_code":"%{client.geo.country_code}V","request":"%{req.request}V","host":"%{req.http.Fastly-Orig-Host}V","url":"%{json.escape(req.url)}V","request_referer":"%{json.escape(req.http.Referer)}V","request_user_agent":"%{json.escape(req.http.User-Agent)}V","request_accept_language":"%{json.escape(req.http.Accept-Language)}V","request_accept_charset":"%{json.escape(req.http.Accept-Charset)}V","cache_status":"%{regsub(fastly_info.state, \"^(HIT-(SYNTH)|(HITPASS|HIT|MISS|PASS|ERROR|PIPE)).*\", \"\\2\\3\") }V"}') * @param string $topic The Amazon Kinesis stream to send logs to. Required. (optional) * @param \Fastly\Model\AwsRegion $region (optional) * @param string $secret_key The secret key associated with the target Amazon Kinesis stream. Not required if `iam_role` is specified. (optional) * @param string $access_key The access key associated with the target Amazon Kinesis stream. Not required if `iam_role` is specified. (optional) * @param string $iam_role The ARN for an IAM role granting Fastly access to the target Amazon Kinesis stream. Not required if `access_key` and `secret_key` are provided. (optional) + * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * * @throws \Fastly\ApiException on non-2xx response * @throws \InvalidArgumentException @@ -275,13 +275,13 @@ public function createLogKinesisWithHttpInfo($options) * @param int $version_id Integer identifying a service version. (required) * @param string $name The name for the real-time logging configuration. (optional) * @param \Fastly\Model\LoggingPlacement $placement (optional) - * @param \Fastly\Model\LoggingFormatVersion $format_version (optional) * @param string $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). Must produce valid JSON that Kinesis can ingest. (optional, default to '{"timestamp":"%{begin:%Y-%m-%dT%H:%M:%S}t","time_elapsed":"%{time.elapsed.usec}V","is_tls":"%{if(req.is_ssl, \"true\", \"false\")}V","client_ip":"%{req.http.Fastly-Client-IP}V","geo_city":"%{client.geo.city}V","geo_country_code":"%{client.geo.country_code}V","request":"%{req.request}V","host":"%{req.http.Fastly-Orig-Host}V","url":"%{json.escape(req.url)}V","request_referer":"%{json.escape(req.http.Referer)}V","request_user_agent":"%{json.escape(req.http.User-Agent)}V","request_accept_language":"%{json.escape(req.http.Accept-Language)}V","request_accept_charset":"%{json.escape(req.http.Accept-Charset)}V","cache_status":"%{regsub(fastly_info.state, \"^(HIT-(SYNTH)|(HITPASS|HIT|MISS|PASS|ERROR|PIPE)).*\", \"\\2\\3\") }V"}') * @param string $topic The Amazon Kinesis stream to send logs to. Required. (optional) * @param \Fastly\Model\AwsRegion $region (optional) * @param string $secret_key The secret key associated with the target Amazon Kinesis stream. Not required if `iam_role` is specified. (optional) * @param string $access_key The access key associated with the target Amazon Kinesis stream. Not required if `iam_role` is specified. (optional) * @param string $iam_role The ARN for an IAM role granting Fastly access to the target Amazon Kinesis stream. Not required if `access_key` and `secret_key` are provided. (optional) + * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface @@ -310,13 +310,13 @@ function ($response) { * @param int $version_id Integer identifying a service version. (required) * @param string $name The name for the real-time logging configuration. (optional) * @param \Fastly\Model\LoggingPlacement $placement (optional) - * @param \Fastly\Model\LoggingFormatVersion $format_version (optional) * @param string $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). Must produce valid JSON that Kinesis can ingest. (optional, default to '{"timestamp":"%{begin:%Y-%m-%dT%H:%M:%S}t","time_elapsed":"%{time.elapsed.usec}V","is_tls":"%{if(req.is_ssl, \"true\", \"false\")}V","client_ip":"%{req.http.Fastly-Client-IP}V","geo_city":"%{client.geo.city}V","geo_country_code":"%{client.geo.country_code}V","request":"%{req.request}V","host":"%{req.http.Fastly-Orig-Host}V","url":"%{json.escape(req.url)}V","request_referer":"%{json.escape(req.http.Referer)}V","request_user_agent":"%{json.escape(req.http.User-Agent)}V","request_accept_language":"%{json.escape(req.http.Accept-Language)}V","request_accept_charset":"%{json.escape(req.http.Accept-Charset)}V","cache_status":"%{regsub(fastly_info.state, \"^(HIT-(SYNTH)|(HITPASS|HIT|MISS|PASS|ERROR|PIPE)).*\", \"\\2\\3\") }V"}') * @param string $topic The Amazon Kinesis stream to send logs to. Required. (optional) * @param \Fastly\Model\AwsRegion $region (optional) * @param string $secret_key The secret key associated with the target Amazon Kinesis stream. Not required if `iam_role` is specified. (optional) * @param string $access_key The access key associated with the target Amazon Kinesis stream. Not required if `iam_role` is specified. (optional) * @param string $iam_role The ARN for an IAM role granting Fastly access to the target Amazon Kinesis stream. Not required if `access_key` and `secret_key` are provided. (optional) + * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface @@ -371,13 +371,13 @@ function ($exception) { * @param int $version_id Integer identifying a service version. (required) * @param string $name The name for the real-time logging configuration. (optional) * @param \Fastly\Model\LoggingPlacement $placement (optional) - * @param \Fastly\Model\LoggingFormatVersion $format_version (optional) * @param string $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). Must produce valid JSON that Kinesis can ingest. (optional, default to '{"timestamp":"%{begin:%Y-%m-%dT%H:%M:%S}t","time_elapsed":"%{time.elapsed.usec}V","is_tls":"%{if(req.is_ssl, \"true\", \"false\")}V","client_ip":"%{req.http.Fastly-Client-IP}V","geo_city":"%{client.geo.city}V","geo_country_code":"%{client.geo.country_code}V","request":"%{req.request}V","host":"%{req.http.Fastly-Orig-Host}V","url":"%{json.escape(req.url)}V","request_referer":"%{json.escape(req.http.Referer)}V","request_user_agent":"%{json.escape(req.http.User-Agent)}V","request_accept_language":"%{json.escape(req.http.Accept-Language)}V","request_accept_charset":"%{json.escape(req.http.Accept-Charset)}V","cache_status":"%{regsub(fastly_info.state, \"^(HIT-(SYNTH)|(HITPASS|HIT|MISS|PASS|ERROR|PIPE)).*\", \"\\2\\3\") }V"}') * @param string $topic The Amazon Kinesis stream to send logs to. Required. (optional) * @param \Fastly\Model\AwsRegion $region (optional) * @param string $secret_key The secret key associated with the target Amazon Kinesis stream. Not required if `iam_role` is specified. (optional) * @param string $access_key The access key associated with the target Amazon Kinesis stream. Not required if `iam_role` is specified. (optional) * @param string $iam_role The ARN for an IAM role granting Fastly access to the target Amazon Kinesis stream. Not required if `access_key` and `secret_key` are provided. (optional) + * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request @@ -389,13 +389,13 @@ public function createLogKinesisRequest($options) $version_id = array_key_exists('version_id', $options) ? $options['version_id'] : null; $name = array_key_exists('name', $options) ? $options['name'] : null; $placement = array_key_exists('placement', $options) ? $options['placement'] : null; - $format_version = array_key_exists('format_version', $options) ? $options['format_version'] : null; $format = array_key_exists('format', $options) ? $options['format'] : '{"timestamp":"%{begin:%Y-%m-%dT%H:%M:%S}t","time_elapsed":"%{time.elapsed.usec}V","is_tls":"%{if(req.is_ssl, \"true\", \"false\")}V","client_ip":"%{req.http.Fastly-Client-IP}V","geo_city":"%{client.geo.city}V","geo_country_code":"%{client.geo.country_code}V","request":"%{req.request}V","host":"%{req.http.Fastly-Orig-Host}V","url":"%{json.escape(req.url)}V","request_referer":"%{json.escape(req.http.Referer)}V","request_user_agent":"%{json.escape(req.http.User-Agent)}V","request_accept_language":"%{json.escape(req.http.Accept-Language)}V","request_accept_charset":"%{json.escape(req.http.Accept-Charset)}V","cache_status":"%{regsub(fastly_info.state, \"^(HIT-(SYNTH)|(HITPASS|HIT|MISS|PASS|ERROR|PIPE)).*\", \"\\2\\3\") }V"}'; $topic = array_key_exists('topic', $options) ? $options['topic'] : null; $region = array_key_exists('region', $options) ? $options['region'] : null; $secret_key = array_key_exists('secret_key', $options) ? $options['secret_key'] : null; $access_key = array_key_exists('access_key', $options) ? $options['access_key'] : null; $iam_role = array_key_exists('iam_role', $options) ? $options['iam_role'] : null; + $format_version = array_key_exists('format_version', $options) ? $options['format_version'] : self::FORMAT_VERSION_v2; // verify the required parameter 'service_id' is set if ($service_id === null || (is_array($service_id) && count($service_id) === 0)) { @@ -445,10 +445,6 @@ public function createLogKinesisRequest($options) $formParams['placement'] = ObjectSerializer::toFormValue($placement); } // form params - if ($format_version !== null) { - $formParams['format_version'] = ObjectSerializer::toFormValue($format_version); - } - // form params if ($format !== null) { $formParams['format'] = ObjectSerializer::toFormValue($format); } @@ -472,6 +468,10 @@ public function createLogKinesisRequest($options) if ($iam_role !== null) { $formParams['iam_role'] = ObjectSerializer::toFormValue($iam_role); } + // form params + if ($format_version !== null) { + $formParams['format_version'] = ObjectSerializer::toFormValue($format_version); + } if ($multipart) { $headers = $this->headerSelector->selectHeadersForMultipart( diff --git a/lib/Api/LoggingLogentriesApi.php b/lib/Api/LoggingLogentriesApi.php index 8d4a5771..a5888d6b 100644 --- a/lib/Api/LoggingLogentriesApi.php +++ b/lib/Api/LoggingLogentriesApi.php @@ -123,9 +123,9 @@ public function getConfig() * @param int $version_id Integer identifying a service version. (required) * @param string $name The name for the real-time logging configuration. (optional) * @param string $placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. (optional) - * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. (optional) * @param string $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). (optional, default to '%h %l %u %t "%r" %>s %b') + * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param int $port The port number. (optional, default to 20000) * @param string $token Use token based authentication ([https://logentries.com/doc/input-token/](https://logentries.com/doc/input-token/)). (optional) * @param \Fastly\Model\LoggingUseTls $use_tls use_tls (optional) @@ -156,9 +156,9 @@ public function createLogLogentries($options) * @param int $version_id Integer identifying a service version. (required) * @param string $name The name for the real-time logging configuration. (optional) * @param string $placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. (optional) - * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. (optional) * @param string $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). (optional, default to '%h %l %u %t "%r" %>s %b') + * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param int $port The port number. (optional, default to 20000) * @param string $token Use token based authentication ([https://logentries.com/doc/input-token/](https://logentries.com/doc/input-token/)). (optional) * @param \Fastly\Model\LoggingUseTls $use_tls (optional) @@ -277,9 +277,9 @@ public function createLogLogentriesWithHttpInfo($options) * @param int $version_id Integer identifying a service version. (required) * @param string $name The name for the real-time logging configuration. (optional) * @param string $placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. (optional) - * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. (optional) * @param string $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). (optional, default to '%h %l %u %t "%r" %>s %b') + * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param int $port The port number. (optional, default to 20000) * @param string $token Use token based authentication ([https://logentries.com/doc/input-token/](https://logentries.com/doc/input-token/)). (optional) * @param \Fastly\Model\LoggingUseTls $use_tls (optional) @@ -313,9 +313,9 @@ function ($response) { * @param int $version_id Integer identifying a service version. (required) * @param string $name The name for the real-time logging configuration. (optional) * @param string $placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. (optional) - * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. (optional) * @param string $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). (optional, default to '%h %l %u %t "%r" %>s %b') + * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param int $port The port number. (optional, default to 20000) * @param string $token Use token based authentication ([https://logentries.com/doc/input-token/](https://logentries.com/doc/input-token/)). (optional) * @param \Fastly\Model\LoggingUseTls $use_tls (optional) @@ -375,9 +375,9 @@ function ($exception) { * @param int $version_id Integer identifying a service version. (required) * @param string $name The name for the real-time logging configuration. (optional) * @param string $placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. (optional) - * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. (optional) * @param string $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). (optional, default to '%h %l %u %t "%r" %>s %b') + * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param int $port The port number. (optional, default to 20000) * @param string $token Use token based authentication ([https://logentries.com/doc/input-token/](https://logentries.com/doc/input-token/)). (optional) * @param \Fastly\Model\LoggingUseTls $use_tls (optional) @@ -394,9 +394,9 @@ public function createLogLogentriesRequest($options) $version_id = array_key_exists('version_id', $options) ? $options['version_id'] : null; $name = array_key_exists('name', $options) ? $options['name'] : null; $placement = array_key_exists('placement', $options) ? $options['placement'] : null; - $format_version = array_key_exists('format_version', $options) ? $options['format_version'] : self::FORMAT_VERSION_v2; $response_condition = array_key_exists('response_condition', $options) ? $options['response_condition'] : null; $format = array_key_exists('format', $options) ? $options['format'] : '%h %l %u %t "%r" %>s %b'; + $format_version = array_key_exists('format_version', $options) ? $options['format_version'] : self::FORMAT_VERSION_v2; $port = array_key_exists('port', $options) ? $options['port'] : 20000; $token = array_key_exists('token', $options) ? $options['token'] : null; $use_tls = array_key_exists('use_tls', $options) ? $options['use_tls'] : null; @@ -450,10 +450,6 @@ public function createLogLogentriesRequest($options) $formParams['placement'] = ObjectSerializer::toFormValue($placement); } // form params - if ($format_version !== null) { - $formParams['format_version'] = ObjectSerializer::toFormValue($format_version); - } - // form params if ($response_condition !== null) { $formParams['response_condition'] = ObjectSerializer::toFormValue($response_condition); } @@ -462,6 +458,10 @@ public function createLogLogentriesRequest($options) $formParams['format'] = ObjectSerializer::toFormValue($format); } // form params + if ($format_version !== null) { + $formParams['format_version'] = ObjectSerializer::toFormValue($format_version); + } + // form params if ($port !== null) { $formParams['port'] = ObjectSerializer::toFormValue($port); } @@ -1642,9 +1642,9 @@ public function listLogLogentriesRequest($options) * @param string $logging_logentries_name The name for the real-time logging configuration. (required) * @param string $name The name for the real-time logging configuration. (optional) * @param string $placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. (optional) - * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. (optional) * @param string $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). (optional, default to '%h %l %u %t "%r" %>s %b') + * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param int $port The port number. (optional, default to 20000) * @param string $token Use token based authentication ([https://logentries.com/doc/input-token/](https://logentries.com/doc/input-token/)). (optional) * @param \Fastly\Model\LoggingUseTls $use_tls use_tls (optional) @@ -1676,9 +1676,9 @@ public function updateLogLogentries($options) * @param string $logging_logentries_name The name for the real-time logging configuration. (required) * @param string $name The name for the real-time logging configuration. (optional) * @param string $placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. (optional) - * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. (optional) * @param string $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). (optional, default to '%h %l %u %t "%r" %>s %b') + * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param int $port The port number. (optional, default to 20000) * @param string $token Use token based authentication ([https://logentries.com/doc/input-token/](https://logentries.com/doc/input-token/)). (optional) * @param \Fastly\Model\LoggingUseTls $use_tls (optional) @@ -1798,9 +1798,9 @@ public function updateLogLogentriesWithHttpInfo($options) * @param string $logging_logentries_name The name for the real-time logging configuration. (required) * @param string $name The name for the real-time logging configuration. (optional) * @param string $placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. (optional) - * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. (optional) * @param string $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). (optional, default to '%h %l %u %t "%r" %>s %b') + * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param int $port The port number. (optional, default to 20000) * @param string $token Use token based authentication ([https://logentries.com/doc/input-token/](https://logentries.com/doc/input-token/)). (optional) * @param \Fastly\Model\LoggingUseTls $use_tls (optional) @@ -1835,9 +1835,9 @@ function ($response) { * @param string $logging_logentries_name The name for the real-time logging configuration. (required) * @param string $name The name for the real-time logging configuration. (optional) * @param string $placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. (optional) - * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. (optional) * @param string $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). (optional, default to '%h %l %u %t "%r" %>s %b') + * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param int $port The port number. (optional, default to 20000) * @param string $token Use token based authentication ([https://logentries.com/doc/input-token/](https://logentries.com/doc/input-token/)). (optional) * @param \Fastly\Model\LoggingUseTls $use_tls (optional) @@ -1898,9 +1898,9 @@ function ($exception) { * @param string $logging_logentries_name The name for the real-time logging configuration. (required) * @param string $name The name for the real-time logging configuration. (optional) * @param string $placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. (optional) - * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. (optional) * @param string $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). (optional, default to '%h %l %u %t "%r" %>s %b') + * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param int $port The port number. (optional, default to 20000) * @param string $token Use token based authentication ([https://logentries.com/doc/input-token/](https://logentries.com/doc/input-token/)). (optional) * @param \Fastly\Model\LoggingUseTls $use_tls (optional) @@ -1918,9 +1918,9 @@ public function updateLogLogentriesRequest($options) $logging_logentries_name = array_key_exists('logging_logentries_name', $options) ? $options['logging_logentries_name'] : null; $name = array_key_exists('name', $options) ? $options['name'] : null; $placement = array_key_exists('placement', $options) ? $options['placement'] : null; - $format_version = array_key_exists('format_version', $options) ? $options['format_version'] : self::FORMAT_VERSION_v2; $response_condition = array_key_exists('response_condition', $options) ? $options['response_condition'] : null; $format = array_key_exists('format', $options) ? $options['format'] : '%h %l %u %t "%r" %>s %b'; + $format_version = array_key_exists('format_version', $options) ? $options['format_version'] : self::FORMAT_VERSION_v2; $port = array_key_exists('port', $options) ? $options['port'] : 20000; $token = array_key_exists('token', $options) ? $options['token'] : null; $use_tls = array_key_exists('use_tls', $options) ? $options['use_tls'] : null; @@ -1988,10 +1988,6 @@ public function updateLogLogentriesRequest($options) $formParams['placement'] = ObjectSerializer::toFormValue($placement); } // form params - if ($format_version !== null) { - $formParams['format_version'] = ObjectSerializer::toFormValue($format_version); - } - // form params if ($response_condition !== null) { $formParams['response_condition'] = ObjectSerializer::toFormValue($response_condition); } @@ -2000,6 +1996,10 @@ public function updateLogLogentriesRequest($options) $formParams['format'] = ObjectSerializer::toFormValue($format); } // form params + if ($format_version !== null) { + $formParams['format_version'] = ObjectSerializer::toFormValue($format_version); + } + // form params if ($port !== null) { $formParams['port'] = ObjectSerializer::toFormValue($port); } diff --git a/lib/Api/LoggingLogglyApi.php b/lib/Api/LoggingLogglyApi.php index 3e57db92..f8fa217c 100644 --- a/lib/Api/LoggingLogglyApi.php +++ b/lib/Api/LoggingLogglyApi.php @@ -123,9 +123,9 @@ public function getConfig() * @param int $version_id Integer identifying a service version. (required) * @param string $name The name for the real-time logging configuration. (optional) * @param string $placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. (optional) - * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. (optional) * @param string $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). (optional, default to '%h %l %u %t "%r" %>s %b') + * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $token The token to use for authentication ([https://www.loggly.com/docs/customer-token-authentication-token/](https://www.loggly.com/docs/customer-token-authentication-token/)). (optional) * * @throws \Fastly\ApiException on non-2xx response @@ -152,9 +152,9 @@ public function createLogLoggly($options) * @param int $version_id Integer identifying a service version. (required) * @param string $name The name for the real-time logging configuration. (optional) * @param string $placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. (optional) - * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. (optional) * @param string $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). (optional, default to '%h %l %u %t "%r" %>s %b') + * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $token The token to use for authentication ([https://www.loggly.com/docs/customer-token-authentication-token/](https://www.loggly.com/docs/customer-token-authentication-token/)). (optional) * * @throws \Fastly\ApiException on non-2xx response @@ -269,9 +269,9 @@ public function createLogLogglyWithHttpInfo($options) * @param int $version_id Integer identifying a service version. (required) * @param string $name The name for the real-time logging configuration. (optional) * @param string $placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. (optional) - * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. (optional) * @param string $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). (optional, default to '%h %l %u %t "%r" %>s %b') + * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $token The token to use for authentication ([https://www.loggly.com/docs/customer-token-authentication-token/](https://www.loggly.com/docs/customer-token-authentication-token/)). (optional) * * @throws \InvalidArgumentException @@ -301,9 +301,9 @@ function ($response) { * @param int $version_id Integer identifying a service version. (required) * @param string $name The name for the real-time logging configuration. (optional) * @param string $placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. (optional) - * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. (optional) * @param string $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). (optional, default to '%h %l %u %t "%r" %>s %b') + * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $token The token to use for authentication ([https://www.loggly.com/docs/customer-token-authentication-token/](https://www.loggly.com/docs/customer-token-authentication-token/)). (optional) * * @throws \InvalidArgumentException @@ -359,9 +359,9 @@ function ($exception) { * @param int $version_id Integer identifying a service version. (required) * @param string $name The name for the real-time logging configuration. (optional) * @param string $placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. (optional) - * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. (optional) * @param string $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). (optional, default to '%h %l %u %t "%r" %>s %b') + * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $token The token to use for authentication ([https://www.loggly.com/docs/customer-token-authentication-token/](https://www.loggly.com/docs/customer-token-authentication-token/)). (optional) * * @throws \InvalidArgumentException @@ -374,9 +374,9 @@ public function createLogLogglyRequest($options) $version_id = array_key_exists('version_id', $options) ? $options['version_id'] : null; $name = array_key_exists('name', $options) ? $options['name'] : null; $placement = array_key_exists('placement', $options) ? $options['placement'] : null; - $format_version = array_key_exists('format_version', $options) ? $options['format_version'] : self::FORMAT_VERSION_v2; $response_condition = array_key_exists('response_condition', $options) ? $options['response_condition'] : null; $format = array_key_exists('format', $options) ? $options['format'] : '%h %l %u %t "%r" %>s %b'; + $format_version = array_key_exists('format_version', $options) ? $options['format_version'] : self::FORMAT_VERSION_v2; $token = array_key_exists('token', $options) ? $options['token'] : null; // verify the required parameter 'service_id' is set @@ -427,10 +427,6 @@ public function createLogLogglyRequest($options) $formParams['placement'] = ObjectSerializer::toFormValue($placement); } // form params - if ($format_version !== null) { - $formParams['format_version'] = ObjectSerializer::toFormValue($format_version); - } - // form params if ($response_condition !== null) { $formParams['response_condition'] = ObjectSerializer::toFormValue($response_condition); } @@ -439,6 +435,10 @@ public function createLogLogglyRequest($options) $formParams['format'] = ObjectSerializer::toFormValue($format); } // form params + if ($format_version !== null) { + $formParams['format_version'] = ObjectSerializer::toFormValue($format_version); + } + // form params if ($token !== null) { $formParams['token'] = ObjectSerializer::toFormValue($token); } @@ -1592,9 +1592,9 @@ public function listLogLogglyRequest($options) * @param string $logging_loggly_name The name for the real-time logging configuration. (required) * @param string $name The name for the real-time logging configuration. (optional) * @param string $placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. (optional) - * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. (optional) * @param string $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). (optional, default to '%h %l %u %t "%r" %>s %b') + * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $token The token to use for authentication ([https://www.loggly.com/docs/customer-token-authentication-token/](https://www.loggly.com/docs/customer-token-authentication-token/)). (optional) * * @throws \Fastly\ApiException on non-2xx response @@ -1622,9 +1622,9 @@ public function updateLogLoggly($options) * @param string $logging_loggly_name The name for the real-time logging configuration. (required) * @param string $name The name for the real-time logging configuration. (optional) * @param string $placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. (optional) - * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. (optional) * @param string $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). (optional, default to '%h %l %u %t "%r" %>s %b') + * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $token The token to use for authentication ([https://www.loggly.com/docs/customer-token-authentication-token/](https://www.loggly.com/docs/customer-token-authentication-token/)). (optional) * * @throws \Fastly\ApiException on non-2xx response @@ -1740,9 +1740,9 @@ public function updateLogLogglyWithHttpInfo($options) * @param string $logging_loggly_name The name for the real-time logging configuration. (required) * @param string $name The name for the real-time logging configuration. (optional) * @param string $placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. (optional) - * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. (optional) * @param string $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). (optional, default to '%h %l %u %t "%r" %>s %b') + * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $token The token to use for authentication ([https://www.loggly.com/docs/customer-token-authentication-token/](https://www.loggly.com/docs/customer-token-authentication-token/)). (optional) * * @throws \InvalidArgumentException @@ -1773,9 +1773,9 @@ function ($response) { * @param string $logging_loggly_name The name for the real-time logging configuration. (required) * @param string $name The name for the real-time logging configuration. (optional) * @param string $placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. (optional) - * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. (optional) * @param string $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). (optional, default to '%h %l %u %t "%r" %>s %b') + * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $token The token to use for authentication ([https://www.loggly.com/docs/customer-token-authentication-token/](https://www.loggly.com/docs/customer-token-authentication-token/)). (optional) * * @throws \InvalidArgumentException @@ -1832,9 +1832,9 @@ function ($exception) { * @param string $logging_loggly_name The name for the real-time logging configuration. (required) * @param string $name The name for the real-time logging configuration. (optional) * @param string $placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. (optional) - * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. (optional) * @param string $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). (optional, default to '%h %l %u %t "%r" %>s %b') + * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $token The token to use for authentication ([https://www.loggly.com/docs/customer-token-authentication-token/](https://www.loggly.com/docs/customer-token-authentication-token/)). (optional) * * @throws \InvalidArgumentException @@ -1848,9 +1848,9 @@ public function updateLogLogglyRequest($options) $logging_loggly_name = array_key_exists('logging_loggly_name', $options) ? $options['logging_loggly_name'] : null; $name = array_key_exists('name', $options) ? $options['name'] : null; $placement = array_key_exists('placement', $options) ? $options['placement'] : null; - $format_version = array_key_exists('format_version', $options) ? $options['format_version'] : self::FORMAT_VERSION_v2; $response_condition = array_key_exists('response_condition', $options) ? $options['response_condition'] : null; $format = array_key_exists('format', $options) ? $options['format'] : '%h %l %u %t "%r" %>s %b'; + $format_version = array_key_exists('format_version', $options) ? $options['format_version'] : self::FORMAT_VERSION_v2; $token = array_key_exists('token', $options) ? $options['token'] : null; // verify the required parameter 'service_id' is set @@ -1915,10 +1915,6 @@ public function updateLogLogglyRequest($options) $formParams['placement'] = ObjectSerializer::toFormValue($placement); } // form params - if ($format_version !== null) { - $formParams['format_version'] = ObjectSerializer::toFormValue($format_version); - } - // form params if ($response_condition !== null) { $formParams['response_condition'] = ObjectSerializer::toFormValue($response_condition); } @@ -1927,6 +1923,10 @@ public function updateLogLogglyRequest($options) $formParams['format'] = ObjectSerializer::toFormValue($format); } // form params + if ($format_version !== null) { + $formParams['format_version'] = ObjectSerializer::toFormValue($format_version); + } + // form params if ($token !== null) { $formParams['token'] = ObjectSerializer::toFormValue($token); } diff --git a/lib/Api/LoggingLogshuttleApi.php b/lib/Api/LoggingLogshuttleApi.php index 5f53d245..a7812d1d 100644 --- a/lib/Api/LoggingLogshuttleApi.php +++ b/lib/Api/LoggingLogshuttleApi.php @@ -123,9 +123,9 @@ public function getConfig() * @param int $version_id Integer identifying a service version. (required) * @param string $name The name for the real-time logging configuration. (optional) * @param string $placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. (optional) - * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. (optional) * @param string $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). (optional, default to '%h %l %u %t "%r" %>s %b') + * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $token The data authentication token associated with this endpoint. (optional) * @param string $url The URL to stream logs to. (optional) * @@ -153,9 +153,9 @@ public function createLogLogshuttle($options) * @param int $version_id Integer identifying a service version. (required) * @param string $name The name for the real-time logging configuration. (optional) * @param string $placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. (optional) - * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. (optional) * @param string $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). (optional, default to '%h %l %u %t "%r" %>s %b') + * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $token The data authentication token associated with this endpoint. (optional) * @param string $url The URL to stream logs to. (optional) * @@ -271,9 +271,9 @@ public function createLogLogshuttleWithHttpInfo($options) * @param int $version_id Integer identifying a service version. (required) * @param string $name The name for the real-time logging configuration. (optional) * @param string $placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. (optional) - * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. (optional) * @param string $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). (optional, default to '%h %l %u %t "%r" %>s %b') + * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $token The data authentication token associated with this endpoint. (optional) * @param string $url The URL to stream logs to. (optional) * @@ -304,9 +304,9 @@ function ($response) { * @param int $version_id Integer identifying a service version. (required) * @param string $name The name for the real-time logging configuration. (optional) * @param string $placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. (optional) - * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. (optional) * @param string $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). (optional, default to '%h %l %u %t "%r" %>s %b') + * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $token The data authentication token associated with this endpoint. (optional) * @param string $url The URL to stream logs to. (optional) * @@ -363,9 +363,9 @@ function ($exception) { * @param int $version_id Integer identifying a service version. (required) * @param string $name The name for the real-time logging configuration. (optional) * @param string $placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. (optional) - * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. (optional) * @param string $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). (optional, default to '%h %l %u %t "%r" %>s %b') + * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $token The data authentication token associated with this endpoint. (optional) * @param string $url The URL to stream logs to. (optional) * @@ -379,9 +379,9 @@ public function createLogLogshuttleRequest($options) $version_id = array_key_exists('version_id', $options) ? $options['version_id'] : null; $name = array_key_exists('name', $options) ? $options['name'] : null; $placement = array_key_exists('placement', $options) ? $options['placement'] : null; - $format_version = array_key_exists('format_version', $options) ? $options['format_version'] : self::FORMAT_VERSION_v2; $response_condition = array_key_exists('response_condition', $options) ? $options['response_condition'] : null; $format = array_key_exists('format', $options) ? $options['format'] : '%h %l %u %t "%r" %>s %b'; + $format_version = array_key_exists('format_version', $options) ? $options['format_version'] : self::FORMAT_VERSION_v2; $token = array_key_exists('token', $options) ? $options['token'] : null; $url = array_key_exists('url', $options) ? $options['url'] : null; @@ -433,10 +433,6 @@ public function createLogLogshuttleRequest($options) $formParams['placement'] = ObjectSerializer::toFormValue($placement); } // form params - if ($format_version !== null) { - $formParams['format_version'] = ObjectSerializer::toFormValue($format_version); - } - // form params if ($response_condition !== null) { $formParams['response_condition'] = ObjectSerializer::toFormValue($response_condition); } @@ -445,6 +441,10 @@ public function createLogLogshuttleRequest($options) $formParams['format'] = ObjectSerializer::toFormValue($format); } // form params + if ($format_version !== null) { + $formParams['format_version'] = ObjectSerializer::toFormValue($format_version); + } + // form params if ($token !== null) { $formParams['token'] = ObjectSerializer::toFormValue($token); } @@ -1602,9 +1602,9 @@ public function listLogLogshuttleRequest($options) * @param string $logging_logshuttle_name The name for the real-time logging configuration. (required) * @param string $name The name for the real-time logging configuration. (optional) * @param string $placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. (optional) - * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. (optional) * @param string $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). (optional, default to '%h %l %u %t "%r" %>s %b') + * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $token The data authentication token associated with this endpoint. (optional) * @param string $url The URL to stream logs to. (optional) * @@ -1633,9 +1633,9 @@ public function updateLogLogshuttle($options) * @param string $logging_logshuttle_name The name for the real-time logging configuration. (required) * @param string $name The name for the real-time logging configuration. (optional) * @param string $placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. (optional) - * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. (optional) * @param string $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). (optional, default to '%h %l %u %t "%r" %>s %b') + * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $token The data authentication token associated with this endpoint. (optional) * @param string $url The URL to stream logs to. (optional) * @@ -1752,9 +1752,9 @@ public function updateLogLogshuttleWithHttpInfo($options) * @param string $logging_logshuttle_name The name for the real-time logging configuration. (required) * @param string $name The name for the real-time logging configuration. (optional) * @param string $placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. (optional) - * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. (optional) * @param string $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). (optional, default to '%h %l %u %t "%r" %>s %b') + * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $token The data authentication token associated with this endpoint. (optional) * @param string $url The URL to stream logs to. (optional) * @@ -1786,9 +1786,9 @@ function ($response) { * @param string $logging_logshuttle_name The name for the real-time logging configuration. (required) * @param string $name The name for the real-time logging configuration. (optional) * @param string $placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. (optional) - * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. (optional) * @param string $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). (optional, default to '%h %l %u %t "%r" %>s %b') + * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $token The data authentication token associated with this endpoint. (optional) * @param string $url The URL to stream logs to. (optional) * @@ -1846,9 +1846,9 @@ function ($exception) { * @param string $logging_logshuttle_name The name for the real-time logging configuration. (required) * @param string $name The name for the real-time logging configuration. (optional) * @param string $placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. (optional) - * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. (optional) * @param string $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). (optional, default to '%h %l %u %t "%r" %>s %b') + * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $token The data authentication token associated with this endpoint. (optional) * @param string $url The URL to stream logs to. (optional) * @@ -1863,9 +1863,9 @@ public function updateLogLogshuttleRequest($options) $logging_logshuttle_name = array_key_exists('logging_logshuttle_name', $options) ? $options['logging_logshuttle_name'] : null; $name = array_key_exists('name', $options) ? $options['name'] : null; $placement = array_key_exists('placement', $options) ? $options['placement'] : null; - $format_version = array_key_exists('format_version', $options) ? $options['format_version'] : self::FORMAT_VERSION_v2; $response_condition = array_key_exists('response_condition', $options) ? $options['response_condition'] : null; $format = array_key_exists('format', $options) ? $options['format'] : '%h %l %u %t "%r" %>s %b'; + $format_version = array_key_exists('format_version', $options) ? $options['format_version'] : self::FORMAT_VERSION_v2; $token = array_key_exists('token', $options) ? $options['token'] : null; $url = array_key_exists('url', $options) ? $options['url'] : null; @@ -1931,10 +1931,6 @@ public function updateLogLogshuttleRequest($options) $formParams['placement'] = ObjectSerializer::toFormValue($placement); } // form params - if ($format_version !== null) { - $formParams['format_version'] = ObjectSerializer::toFormValue($format_version); - } - // form params if ($response_condition !== null) { $formParams['response_condition'] = ObjectSerializer::toFormValue($response_condition); } @@ -1943,6 +1939,10 @@ public function updateLogLogshuttleRequest($options) $formParams['format'] = ObjectSerializer::toFormValue($format); } // form params + if ($format_version !== null) { + $formParams['format_version'] = ObjectSerializer::toFormValue($format_version); + } + // form params if ($token !== null) { $formParams['token'] = ObjectSerializer::toFormValue($token); } diff --git a/lib/Api/LoggingNewrelicApi.php b/lib/Api/LoggingNewrelicApi.php index 81aa3407..11ca2f51 100644 --- a/lib/Api/LoggingNewrelicApi.php +++ b/lib/Api/LoggingNewrelicApi.php @@ -123,9 +123,9 @@ public function getConfig() * @param int $version_id Integer identifying a service version. (required) * @param string $name The name for the real-time logging configuration. (optional) * @param string $placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. (optional) - * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. (optional) * @param string $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). Must produce valid JSON that New Relic Logs can ingest. (optional, default to '{"timestamp":"%{begin:%Y-%m-%dT%H:%M:%S}t","time_elapsed":"%{time.elapsed.usec}V","is_tls":"%{if(req.is_ssl, \"true\", \"false\")}V","client_ip":"%{req.http.Fastly-Client-IP}V","geo_city":"%{client.geo.city}V","geo_country_code":"%{client.geo.country_code}V","request":"%{req.request}V","host":"%{req.http.Fastly-Orig-Host}V","url":"%{json.escape(req.url)}V","request_referer":"%{json.escape(req.http.Referer)}V","request_user_agent":"%{json.escape(req.http.User-Agent)}V","request_accept_language":"%{json.escape(req.http.Accept-Language)}V","request_accept_charset":"%{json.escape(req.http.Accept-Charset)}V","cache_status":"%{regsub(fastly_info.state, \"^(HIT-(SYNTH)|(HITPASS|HIT|MISS|PASS|ERROR|PIPE)).*\", \"\\2\\3\") }V"}') + * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $token The Insert API key from the Account page of your New Relic account. Required. (optional) * @param string $region The region to which to stream logs. (optional, default to 'US') * @@ -153,9 +153,9 @@ public function createLogNewrelic($options) * @param int $version_id Integer identifying a service version. (required) * @param string $name The name for the real-time logging configuration. (optional) * @param string $placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. (optional) - * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. (optional) * @param string $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). Must produce valid JSON that New Relic Logs can ingest. (optional, default to '{"timestamp":"%{begin:%Y-%m-%dT%H:%M:%S}t","time_elapsed":"%{time.elapsed.usec}V","is_tls":"%{if(req.is_ssl, \"true\", \"false\")}V","client_ip":"%{req.http.Fastly-Client-IP}V","geo_city":"%{client.geo.city}V","geo_country_code":"%{client.geo.country_code}V","request":"%{req.request}V","host":"%{req.http.Fastly-Orig-Host}V","url":"%{json.escape(req.url)}V","request_referer":"%{json.escape(req.http.Referer)}V","request_user_agent":"%{json.escape(req.http.User-Agent)}V","request_accept_language":"%{json.escape(req.http.Accept-Language)}V","request_accept_charset":"%{json.escape(req.http.Accept-Charset)}V","cache_status":"%{regsub(fastly_info.state, \"^(HIT-(SYNTH)|(HITPASS|HIT|MISS|PASS|ERROR|PIPE)).*\", \"\\2\\3\") }V"}') + * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $token The Insert API key from the Account page of your New Relic account. Required. (optional) * @param string $region The region to which to stream logs. (optional, default to 'US') * @@ -271,9 +271,9 @@ public function createLogNewrelicWithHttpInfo($options) * @param int $version_id Integer identifying a service version. (required) * @param string $name The name for the real-time logging configuration. (optional) * @param string $placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. (optional) - * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. (optional) * @param string $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). Must produce valid JSON that New Relic Logs can ingest. (optional, default to '{"timestamp":"%{begin:%Y-%m-%dT%H:%M:%S}t","time_elapsed":"%{time.elapsed.usec}V","is_tls":"%{if(req.is_ssl, \"true\", \"false\")}V","client_ip":"%{req.http.Fastly-Client-IP}V","geo_city":"%{client.geo.city}V","geo_country_code":"%{client.geo.country_code}V","request":"%{req.request}V","host":"%{req.http.Fastly-Orig-Host}V","url":"%{json.escape(req.url)}V","request_referer":"%{json.escape(req.http.Referer)}V","request_user_agent":"%{json.escape(req.http.User-Agent)}V","request_accept_language":"%{json.escape(req.http.Accept-Language)}V","request_accept_charset":"%{json.escape(req.http.Accept-Charset)}V","cache_status":"%{regsub(fastly_info.state, \"^(HIT-(SYNTH)|(HITPASS|HIT|MISS|PASS|ERROR|PIPE)).*\", \"\\2\\3\") }V"}') + * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $token The Insert API key from the Account page of your New Relic account. Required. (optional) * @param string $region The region to which to stream logs. (optional, default to 'US') * @@ -304,9 +304,9 @@ function ($response) { * @param int $version_id Integer identifying a service version. (required) * @param string $name The name for the real-time logging configuration. (optional) * @param string $placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. (optional) - * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. (optional) * @param string $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). Must produce valid JSON that New Relic Logs can ingest. (optional, default to '{"timestamp":"%{begin:%Y-%m-%dT%H:%M:%S}t","time_elapsed":"%{time.elapsed.usec}V","is_tls":"%{if(req.is_ssl, \"true\", \"false\")}V","client_ip":"%{req.http.Fastly-Client-IP}V","geo_city":"%{client.geo.city}V","geo_country_code":"%{client.geo.country_code}V","request":"%{req.request}V","host":"%{req.http.Fastly-Orig-Host}V","url":"%{json.escape(req.url)}V","request_referer":"%{json.escape(req.http.Referer)}V","request_user_agent":"%{json.escape(req.http.User-Agent)}V","request_accept_language":"%{json.escape(req.http.Accept-Language)}V","request_accept_charset":"%{json.escape(req.http.Accept-Charset)}V","cache_status":"%{regsub(fastly_info.state, \"^(HIT-(SYNTH)|(HITPASS|HIT|MISS|PASS|ERROR|PIPE)).*\", \"\\2\\3\") }V"}') + * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $token The Insert API key from the Account page of your New Relic account. Required. (optional) * @param string $region The region to which to stream logs. (optional, default to 'US') * @@ -363,9 +363,9 @@ function ($exception) { * @param int $version_id Integer identifying a service version. (required) * @param string $name The name for the real-time logging configuration. (optional) * @param string $placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. (optional) - * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. (optional) * @param string $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). Must produce valid JSON that New Relic Logs can ingest. (optional, default to '{"timestamp":"%{begin:%Y-%m-%dT%H:%M:%S}t","time_elapsed":"%{time.elapsed.usec}V","is_tls":"%{if(req.is_ssl, \"true\", \"false\")}V","client_ip":"%{req.http.Fastly-Client-IP}V","geo_city":"%{client.geo.city}V","geo_country_code":"%{client.geo.country_code}V","request":"%{req.request}V","host":"%{req.http.Fastly-Orig-Host}V","url":"%{json.escape(req.url)}V","request_referer":"%{json.escape(req.http.Referer)}V","request_user_agent":"%{json.escape(req.http.User-Agent)}V","request_accept_language":"%{json.escape(req.http.Accept-Language)}V","request_accept_charset":"%{json.escape(req.http.Accept-Charset)}V","cache_status":"%{regsub(fastly_info.state, \"^(HIT-(SYNTH)|(HITPASS|HIT|MISS|PASS|ERROR|PIPE)).*\", \"\\2\\3\") }V"}') + * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $token The Insert API key from the Account page of your New Relic account. Required. (optional) * @param string $region The region to which to stream logs. (optional, default to 'US') * @@ -379,9 +379,9 @@ public function createLogNewrelicRequest($options) $version_id = array_key_exists('version_id', $options) ? $options['version_id'] : null; $name = array_key_exists('name', $options) ? $options['name'] : null; $placement = array_key_exists('placement', $options) ? $options['placement'] : null; - $format_version = array_key_exists('format_version', $options) ? $options['format_version'] : self::FORMAT_VERSION_v2; $response_condition = array_key_exists('response_condition', $options) ? $options['response_condition'] : null; $format = array_key_exists('format', $options) ? $options['format'] : '{"timestamp":"%{begin:%Y-%m-%dT%H:%M:%S}t","time_elapsed":"%{time.elapsed.usec}V","is_tls":"%{if(req.is_ssl, \"true\", \"false\")}V","client_ip":"%{req.http.Fastly-Client-IP}V","geo_city":"%{client.geo.city}V","geo_country_code":"%{client.geo.country_code}V","request":"%{req.request}V","host":"%{req.http.Fastly-Orig-Host}V","url":"%{json.escape(req.url)}V","request_referer":"%{json.escape(req.http.Referer)}V","request_user_agent":"%{json.escape(req.http.User-Agent)}V","request_accept_language":"%{json.escape(req.http.Accept-Language)}V","request_accept_charset":"%{json.escape(req.http.Accept-Charset)}V","cache_status":"%{regsub(fastly_info.state, \"^(HIT-(SYNTH)|(HITPASS|HIT|MISS|PASS|ERROR|PIPE)).*\", \"\\2\\3\") }V"}'; + $format_version = array_key_exists('format_version', $options) ? $options['format_version'] : self::FORMAT_VERSION_v2; $token = array_key_exists('token', $options) ? $options['token'] : null; $region = array_key_exists('region', $options) ? $options['region'] : 'US'; @@ -433,10 +433,6 @@ public function createLogNewrelicRequest($options) $formParams['placement'] = ObjectSerializer::toFormValue($placement); } // form params - if ($format_version !== null) { - $formParams['format_version'] = ObjectSerializer::toFormValue($format_version); - } - // form params if ($response_condition !== null) { $formParams['response_condition'] = ObjectSerializer::toFormValue($response_condition); } @@ -445,6 +441,10 @@ public function createLogNewrelicRequest($options) $formParams['format'] = ObjectSerializer::toFormValue($format); } // form params + if ($format_version !== null) { + $formParams['format_version'] = ObjectSerializer::toFormValue($format_version); + } + // form params if ($token !== null) { $formParams['token'] = ObjectSerializer::toFormValue($token); } @@ -1602,9 +1602,9 @@ public function listLogNewrelicRequest($options) * @param string $logging_newrelic_name The name for the real-time logging configuration. (required) * @param string $name The name for the real-time logging configuration. (optional) * @param string $placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. (optional) - * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. (optional) * @param string $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). Must produce valid JSON that New Relic Logs can ingest. (optional, default to '{"timestamp":"%{begin:%Y-%m-%dT%H:%M:%S}t","time_elapsed":"%{time.elapsed.usec}V","is_tls":"%{if(req.is_ssl, \"true\", \"false\")}V","client_ip":"%{req.http.Fastly-Client-IP}V","geo_city":"%{client.geo.city}V","geo_country_code":"%{client.geo.country_code}V","request":"%{req.request}V","host":"%{req.http.Fastly-Orig-Host}V","url":"%{json.escape(req.url)}V","request_referer":"%{json.escape(req.http.Referer)}V","request_user_agent":"%{json.escape(req.http.User-Agent)}V","request_accept_language":"%{json.escape(req.http.Accept-Language)}V","request_accept_charset":"%{json.escape(req.http.Accept-Charset)}V","cache_status":"%{regsub(fastly_info.state, \"^(HIT-(SYNTH)|(HITPASS|HIT|MISS|PASS|ERROR|PIPE)).*\", \"\\2\\3\") }V"}') + * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $token The Insert API key from the Account page of your New Relic account. Required. (optional) * @param string $region The region to which to stream logs. (optional, default to 'US') * @@ -1633,9 +1633,9 @@ public function updateLogNewrelic($options) * @param string $logging_newrelic_name The name for the real-time logging configuration. (required) * @param string $name The name for the real-time logging configuration. (optional) * @param string $placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. (optional) - * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. (optional) * @param string $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). Must produce valid JSON that New Relic Logs can ingest. (optional, default to '{"timestamp":"%{begin:%Y-%m-%dT%H:%M:%S}t","time_elapsed":"%{time.elapsed.usec}V","is_tls":"%{if(req.is_ssl, \"true\", \"false\")}V","client_ip":"%{req.http.Fastly-Client-IP}V","geo_city":"%{client.geo.city}V","geo_country_code":"%{client.geo.country_code}V","request":"%{req.request}V","host":"%{req.http.Fastly-Orig-Host}V","url":"%{json.escape(req.url)}V","request_referer":"%{json.escape(req.http.Referer)}V","request_user_agent":"%{json.escape(req.http.User-Agent)}V","request_accept_language":"%{json.escape(req.http.Accept-Language)}V","request_accept_charset":"%{json.escape(req.http.Accept-Charset)}V","cache_status":"%{regsub(fastly_info.state, \"^(HIT-(SYNTH)|(HITPASS|HIT|MISS|PASS|ERROR|PIPE)).*\", \"\\2\\3\") }V"}') + * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $token The Insert API key from the Account page of your New Relic account. Required. (optional) * @param string $region The region to which to stream logs. (optional, default to 'US') * @@ -1752,9 +1752,9 @@ public function updateLogNewrelicWithHttpInfo($options) * @param string $logging_newrelic_name The name for the real-time logging configuration. (required) * @param string $name The name for the real-time logging configuration. (optional) * @param string $placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. (optional) - * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. (optional) * @param string $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). Must produce valid JSON that New Relic Logs can ingest. (optional, default to '{"timestamp":"%{begin:%Y-%m-%dT%H:%M:%S}t","time_elapsed":"%{time.elapsed.usec}V","is_tls":"%{if(req.is_ssl, \"true\", \"false\")}V","client_ip":"%{req.http.Fastly-Client-IP}V","geo_city":"%{client.geo.city}V","geo_country_code":"%{client.geo.country_code}V","request":"%{req.request}V","host":"%{req.http.Fastly-Orig-Host}V","url":"%{json.escape(req.url)}V","request_referer":"%{json.escape(req.http.Referer)}V","request_user_agent":"%{json.escape(req.http.User-Agent)}V","request_accept_language":"%{json.escape(req.http.Accept-Language)}V","request_accept_charset":"%{json.escape(req.http.Accept-Charset)}V","cache_status":"%{regsub(fastly_info.state, \"^(HIT-(SYNTH)|(HITPASS|HIT|MISS|PASS|ERROR|PIPE)).*\", \"\\2\\3\") }V"}') + * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $token The Insert API key from the Account page of your New Relic account. Required. (optional) * @param string $region The region to which to stream logs. (optional, default to 'US') * @@ -1786,9 +1786,9 @@ function ($response) { * @param string $logging_newrelic_name The name for the real-time logging configuration. (required) * @param string $name The name for the real-time logging configuration. (optional) * @param string $placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. (optional) - * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. (optional) * @param string $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). Must produce valid JSON that New Relic Logs can ingest. (optional, default to '{"timestamp":"%{begin:%Y-%m-%dT%H:%M:%S}t","time_elapsed":"%{time.elapsed.usec}V","is_tls":"%{if(req.is_ssl, \"true\", \"false\")}V","client_ip":"%{req.http.Fastly-Client-IP}V","geo_city":"%{client.geo.city}V","geo_country_code":"%{client.geo.country_code}V","request":"%{req.request}V","host":"%{req.http.Fastly-Orig-Host}V","url":"%{json.escape(req.url)}V","request_referer":"%{json.escape(req.http.Referer)}V","request_user_agent":"%{json.escape(req.http.User-Agent)}V","request_accept_language":"%{json.escape(req.http.Accept-Language)}V","request_accept_charset":"%{json.escape(req.http.Accept-Charset)}V","cache_status":"%{regsub(fastly_info.state, \"^(HIT-(SYNTH)|(HITPASS|HIT|MISS|PASS|ERROR|PIPE)).*\", \"\\2\\3\") }V"}') + * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $token The Insert API key from the Account page of your New Relic account. Required. (optional) * @param string $region The region to which to stream logs. (optional, default to 'US') * @@ -1846,9 +1846,9 @@ function ($exception) { * @param string $logging_newrelic_name The name for the real-time logging configuration. (required) * @param string $name The name for the real-time logging configuration. (optional) * @param string $placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. (optional) - * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. (optional) * @param string $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). Must produce valid JSON that New Relic Logs can ingest. (optional, default to '{"timestamp":"%{begin:%Y-%m-%dT%H:%M:%S}t","time_elapsed":"%{time.elapsed.usec}V","is_tls":"%{if(req.is_ssl, \"true\", \"false\")}V","client_ip":"%{req.http.Fastly-Client-IP}V","geo_city":"%{client.geo.city}V","geo_country_code":"%{client.geo.country_code}V","request":"%{req.request}V","host":"%{req.http.Fastly-Orig-Host}V","url":"%{json.escape(req.url)}V","request_referer":"%{json.escape(req.http.Referer)}V","request_user_agent":"%{json.escape(req.http.User-Agent)}V","request_accept_language":"%{json.escape(req.http.Accept-Language)}V","request_accept_charset":"%{json.escape(req.http.Accept-Charset)}V","cache_status":"%{regsub(fastly_info.state, \"^(HIT-(SYNTH)|(HITPASS|HIT|MISS|PASS|ERROR|PIPE)).*\", \"\\2\\3\") }V"}') + * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $token The Insert API key from the Account page of your New Relic account. Required. (optional) * @param string $region The region to which to stream logs. (optional, default to 'US') * @@ -1863,9 +1863,9 @@ public function updateLogNewrelicRequest($options) $logging_newrelic_name = array_key_exists('logging_newrelic_name', $options) ? $options['logging_newrelic_name'] : null; $name = array_key_exists('name', $options) ? $options['name'] : null; $placement = array_key_exists('placement', $options) ? $options['placement'] : null; - $format_version = array_key_exists('format_version', $options) ? $options['format_version'] : self::FORMAT_VERSION_v2; $response_condition = array_key_exists('response_condition', $options) ? $options['response_condition'] : null; $format = array_key_exists('format', $options) ? $options['format'] : '{"timestamp":"%{begin:%Y-%m-%dT%H:%M:%S}t","time_elapsed":"%{time.elapsed.usec}V","is_tls":"%{if(req.is_ssl, \"true\", \"false\")}V","client_ip":"%{req.http.Fastly-Client-IP}V","geo_city":"%{client.geo.city}V","geo_country_code":"%{client.geo.country_code}V","request":"%{req.request}V","host":"%{req.http.Fastly-Orig-Host}V","url":"%{json.escape(req.url)}V","request_referer":"%{json.escape(req.http.Referer)}V","request_user_agent":"%{json.escape(req.http.User-Agent)}V","request_accept_language":"%{json.escape(req.http.Accept-Language)}V","request_accept_charset":"%{json.escape(req.http.Accept-Charset)}V","cache_status":"%{regsub(fastly_info.state, \"^(HIT-(SYNTH)|(HITPASS|HIT|MISS|PASS|ERROR|PIPE)).*\", \"\\2\\3\") }V"}'; + $format_version = array_key_exists('format_version', $options) ? $options['format_version'] : self::FORMAT_VERSION_v2; $token = array_key_exists('token', $options) ? $options['token'] : null; $region = array_key_exists('region', $options) ? $options['region'] : 'US'; @@ -1931,10 +1931,6 @@ public function updateLogNewrelicRequest($options) $formParams['placement'] = ObjectSerializer::toFormValue($placement); } // form params - if ($format_version !== null) { - $formParams['format_version'] = ObjectSerializer::toFormValue($format_version); - } - // form params if ($response_condition !== null) { $formParams['response_condition'] = ObjectSerializer::toFormValue($response_condition); } @@ -1943,6 +1939,10 @@ public function updateLogNewrelicRequest($options) $formParams['format'] = ObjectSerializer::toFormValue($format); } // form params + if ($format_version !== null) { + $formParams['format_version'] = ObjectSerializer::toFormValue($format_version); + } + // form params if ($token !== null) { $formParams['token'] = ObjectSerializer::toFormValue($token); } diff --git a/lib/Api/LoggingOpenstackApi.php b/lib/Api/LoggingOpenstackApi.php index 3f893576..2d82c84c 100644 --- a/lib/Api/LoggingOpenstackApi.php +++ b/lib/Api/LoggingOpenstackApi.php @@ -123,14 +123,14 @@ public function getConfig() * @param int $version_id Integer identifying a service version. (required) * @param string $name The name for the real-time logging configuration. (optional) * @param string $placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. (optional) - * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. (optional) * @param string $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). (optional, default to '%h %l %u %t "%r" %>s %b') + * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $message_type How the message should be formatted. (optional, default to 'classic') * @param string $timestamp_format A timestamp format (optional) + * @param string $compression_codec The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. (optional) * @param int $period How frequently log files are finalized so they can be available for reading (in seconds). (optional, default to 3600) * @param int $gzip_level The level of gzip encoding when sending logs (default `0`, no compression). Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. (optional, default to 0) - * @param string $compression_codec The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. (optional) * @param string $access_key Your OpenStack account access key. (optional) * @param string $bucket_name The name of your OpenStack container. (optional) * @param string $path The path to upload logs to. (optional, default to 'null') @@ -162,14 +162,14 @@ public function createLogOpenstack($options) * @param int $version_id Integer identifying a service version. (required) * @param string $name The name for the real-time logging configuration. (optional) * @param string $placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. (optional) - * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. (optional) * @param string $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). (optional, default to '%h %l %u %t "%r" %>s %b') + * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $message_type How the message should be formatted. (optional, default to 'classic') * @param string $timestamp_format A timestamp format (optional) + * @param string $compression_codec The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. (optional) * @param int $period How frequently log files are finalized so they can be available for reading (in seconds). (optional, default to 3600) * @param int $gzip_level The level of gzip encoding when sending logs (default `0`, no compression). Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. (optional, default to 0) - * @param string $compression_codec The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. (optional) * @param string $access_key Your OpenStack account access key. (optional) * @param string $bucket_name The name of your OpenStack container. (optional) * @param string $path The path to upload logs to. (optional, default to 'null') @@ -289,14 +289,14 @@ public function createLogOpenstackWithHttpInfo($options) * @param int $version_id Integer identifying a service version. (required) * @param string $name The name for the real-time logging configuration. (optional) * @param string $placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. (optional) - * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. (optional) * @param string $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). (optional, default to '%h %l %u %t "%r" %>s %b') + * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $message_type How the message should be formatted. (optional, default to 'classic') * @param string $timestamp_format A timestamp format (optional) + * @param string $compression_codec The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. (optional) * @param int $period How frequently log files are finalized so they can be available for reading (in seconds). (optional, default to 3600) * @param int $gzip_level The level of gzip encoding when sending logs (default `0`, no compression). Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. (optional, default to 0) - * @param string $compression_codec The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. (optional) * @param string $access_key Your OpenStack account access key. (optional) * @param string $bucket_name The name of your OpenStack container. (optional) * @param string $path The path to upload logs to. (optional, default to 'null') @@ -331,14 +331,14 @@ function ($response) { * @param int $version_id Integer identifying a service version. (required) * @param string $name The name for the real-time logging configuration. (optional) * @param string $placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. (optional) - * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. (optional) * @param string $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). (optional, default to '%h %l %u %t "%r" %>s %b') + * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $message_type How the message should be formatted. (optional, default to 'classic') * @param string $timestamp_format A timestamp format (optional) + * @param string $compression_codec The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. (optional) * @param int $period How frequently log files are finalized so they can be available for reading (in seconds). (optional, default to 3600) * @param int $gzip_level The level of gzip encoding when sending logs (default `0`, no compression). Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. (optional, default to 0) - * @param string $compression_codec The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. (optional) * @param string $access_key Your OpenStack account access key. (optional) * @param string $bucket_name The name of your OpenStack container. (optional) * @param string $path The path to upload logs to. (optional, default to 'null') @@ -399,14 +399,14 @@ function ($exception) { * @param int $version_id Integer identifying a service version. (required) * @param string $name The name for the real-time logging configuration. (optional) * @param string $placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. (optional) - * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. (optional) * @param string $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). (optional, default to '%h %l %u %t "%r" %>s %b') + * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $message_type How the message should be formatted. (optional, default to 'classic') * @param string $timestamp_format A timestamp format (optional) + * @param string $compression_codec The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. (optional) * @param int $period How frequently log files are finalized so they can be available for reading (in seconds). (optional, default to 3600) * @param int $gzip_level The level of gzip encoding when sending logs (default `0`, no compression). Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. (optional, default to 0) - * @param string $compression_codec The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. (optional) * @param string $access_key Your OpenStack account access key. (optional) * @param string $bucket_name The name of your OpenStack container. (optional) * @param string $path The path to upload logs to. (optional, default to 'null') @@ -424,14 +424,14 @@ public function createLogOpenstackRequest($options) $version_id = array_key_exists('version_id', $options) ? $options['version_id'] : null; $name = array_key_exists('name', $options) ? $options['name'] : null; $placement = array_key_exists('placement', $options) ? $options['placement'] : null; - $format_version = array_key_exists('format_version', $options) ? $options['format_version'] : self::FORMAT_VERSION_v2; $response_condition = array_key_exists('response_condition', $options) ? $options['response_condition'] : null; $format = array_key_exists('format', $options) ? $options['format'] : '%h %l %u %t "%r" %>s %b'; + $format_version = array_key_exists('format_version', $options) ? $options['format_version'] : self::FORMAT_VERSION_v2; $message_type = array_key_exists('message_type', $options) ? $options['message_type'] : 'classic'; $timestamp_format = array_key_exists('timestamp_format', $options) ? $options['timestamp_format'] : null; + $compression_codec = array_key_exists('compression_codec', $options) ? $options['compression_codec'] : null; $period = array_key_exists('period', $options) ? $options['period'] : 3600; $gzip_level = array_key_exists('gzip_level', $options) ? $options['gzip_level'] : 0; - $compression_codec = array_key_exists('compression_codec', $options) ? $options['compression_codec'] : null; $access_key = array_key_exists('access_key', $options) ? $options['access_key'] : null; $bucket_name = array_key_exists('bucket_name', $options) ? $options['bucket_name'] : null; $path = array_key_exists('path', $options) ? $options['path'] : 'null'; @@ -487,10 +487,6 @@ public function createLogOpenstackRequest($options) $formParams['placement'] = ObjectSerializer::toFormValue($placement); } // form params - if ($format_version !== null) { - $formParams['format_version'] = ObjectSerializer::toFormValue($format_version); - } - // form params if ($response_condition !== null) { $formParams['response_condition'] = ObjectSerializer::toFormValue($response_condition); } @@ -499,6 +495,10 @@ public function createLogOpenstackRequest($options) $formParams['format'] = ObjectSerializer::toFormValue($format); } // form params + if ($format_version !== null) { + $formParams['format_version'] = ObjectSerializer::toFormValue($format_version); + } + // form params if ($message_type !== null) { $formParams['message_type'] = ObjectSerializer::toFormValue($message_type); } @@ -507,6 +507,10 @@ public function createLogOpenstackRequest($options) $formParams['timestamp_format'] = ObjectSerializer::toFormValue($timestamp_format); } // form params + if ($compression_codec !== null) { + $formParams['compression_codec'] = ObjectSerializer::toFormValue($compression_codec); + } + // form params if ($period !== null) { $formParams['period'] = ObjectSerializer::toFormValue($period); } @@ -515,10 +519,6 @@ public function createLogOpenstackRequest($options) $formParams['gzip_level'] = ObjectSerializer::toFormValue($gzip_level); } // form params - if ($compression_codec !== null) { - $formParams['compression_codec'] = ObjectSerializer::toFormValue($compression_codec); - } - // form params if ($access_key !== null) { $formParams['access_key'] = ObjectSerializer::toFormValue($access_key); } @@ -1692,14 +1692,14 @@ public function listLogOpenstackRequest($options) * @param string $logging_openstack_name The name for the real-time logging configuration. (required) * @param string $name The name for the real-time logging configuration. (optional) * @param string $placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. (optional) - * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. (optional) * @param string $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). (optional, default to '%h %l %u %t "%r" %>s %b') + * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $message_type How the message should be formatted. (optional, default to 'classic') * @param string $timestamp_format A timestamp format (optional) + * @param string $compression_codec The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. (optional) * @param int $period How frequently log files are finalized so they can be available for reading (in seconds). (optional, default to 3600) * @param int $gzip_level The level of gzip encoding when sending logs (default `0`, no compression). Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. (optional, default to 0) - * @param string $compression_codec The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. (optional) * @param string $access_key Your OpenStack account access key. (optional) * @param string $bucket_name The name of your OpenStack container. (optional) * @param string $path The path to upload logs to. (optional, default to 'null') @@ -1732,14 +1732,14 @@ public function updateLogOpenstack($options) * @param string $logging_openstack_name The name for the real-time logging configuration. (required) * @param string $name The name for the real-time logging configuration. (optional) * @param string $placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. (optional) - * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. (optional) * @param string $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). (optional, default to '%h %l %u %t "%r" %>s %b') + * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $message_type How the message should be formatted. (optional, default to 'classic') * @param string $timestamp_format A timestamp format (optional) + * @param string $compression_codec The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. (optional) * @param int $period How frequently log files are finalized so they can be available for reading (in seconds). (optional, default to 3600) * @param int $gzip_level The level of gzip encoding when sending logs (default `0`, no compression). Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. (optional, default to 0) - * @param string $compression_codec The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. (optional) * @param string $access_key Your OpenStack account access key. (optional) * @param string $bucket_name The name of your OpenStack container. (optional) * @param string $path The path to upload logs to. (optional, default to 'null') @@ -1860,14 +1860,14 @@ public function updateLogOpenstackWithHttpInfo($options) * @param string $logging_openstack_name The name for the real-time logging configuration. (required) * @param string $name The name for the real-time logging configuration. (optional) * @param string $placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. (optional) - * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. (optional) * @param string $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). (optional, default to '%h %l %u %t "%r" %>s %b') + * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $message_type How the message should be formatted. (optional, default to 'classic') * @param string $timestamp_format A timestamp format (optional) + * @param string $compression_codec The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. (optional) * @param int $period How frequently log files are finalized so they can be available for reading (in seconds). (optional, default to 3600) * @param int $gzip_level The level of gzip encoding when sending logs (default `0`, no compression). Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. (optional, default to 0) - * @param string $compression_codec The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. (optional) * @param string $access_key Your OpenStack account access key. (optional) * @param string $bucket_name The name of your OpenStack container. (optional) * @param string $path The path to upload logs to. (optional, default to 'null') @@ -1903,14 +1903,14 @@ function ($response) { * @param string $logging_openstack_name The name for the real-time logging configuration. (required) * @param string $name The name for the real-time logging configuration. (optional) * @param string $placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. (optional) - * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. (optional) * @param string $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). (optional, default to '%h %l %u %t "%r" %>s %b') + * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $message_type How the message should be formatted. (optional, default to 'classic') * @param string $timestamp_format A timestamp format (optional) + * @param string $compression_codec The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. (optional) * @param int $period How frequently log files are finalized so they can be available for reading (in seconds). (optional, default to 3600) * @param int $gzip_level The level of gzip encoding when sending logs (default `0`, no compression). Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. (optional, default to 0) - * @param string $compression_codec The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. (optional) * @param string $access_key Your OpenStack account access key. (optional) * @param string $bucket_name The name of your OpenStack container. (optional) * @param string $path The path to upload logs to. (optional, default to 'null') @@ -1972,14 +1972,14 @@ function ($exception) { * @param string $logging_openstack_name The name for the real-time logging configuration. (required) * @param string $name The name for the real-time logging configuration. (optional) * @param string $placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. (optional) - * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. (optional) * @param string $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). (optional, default to '%h %l %u %t "%r" %>s %b') + * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $message_type How the message should be formatted. (optional, default to 'classic') * @param string $timestamp_format A timestamp format (optional) + * @param string $compression_codec The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. (optional) * @param int $period How frequently log files are finalized so they can be available for reading (in seconds). (optional, default to 3600) * @param int $gzip_level The level of gzip encoding when sending logs (default `0`, no compression). Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. (optional, default to 0) - * @param string $compression_codec The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. (optional) * @param string $access_key Your OpenStack account access key. (optional) * @param string $bucket_name The name of your OpenStack container. (optional) * @param string $path The path to upload logs to. (optional, default to 'null') @@ -1998,14 +1998,14 @@ public function updateLogOpenstackRequest($options) $logging_openstack_name = array_key_exists('logging_openstack_name', $options) ? $options['logging_openstack_name'] : null; $name = array_key_exists('name', $options) ? $options['name'] : null; $placement = array_key_exists('placement', $options) ? $options['placement'] : null; - $format_version = array_key_exists('format_version', $options) ? $options['format_version'] : self::FORMAT_VERSION_v2; $response_condition = array_key_exists('response_condition', $options) ? $options['response_condition'] : null; $format = array_key_exists('format', $options) ? $options['format'] : '%h %l %u %t "%r" %>s %b'; + $format_version = array_key_exists('format_version', $options) ? $options['format_version'] : self::FORMAT_VERSION_v2; $message_type = array_key_exists('message_type', $options) ? $options['message_type'] : 'classic'; $timestamp_format = array_key_exists('timestamp_format', $options) ? $options['timestamp_format'] : null; + $compression_codec = array_key_exists('compression_codec', $options) ? $options['compression_codec'] : null; $period = array_key_exists('period', $options) ? $options['period'] : 3600; $gzip_level = array_key_exists('gzip_level', $options) ? $options['gzip_level'] : 0; - $compression_codec = array_key_exists('compression_codec', $options) ? $options['compression_codec'] : null; $access_key = array_key_exists('access_key', $options) ? $options['access_key'] : null; $bucket_name = array_key_exists('bucket_name', $options) ? $options['bucket_name'] : null; $path = array_key_exists('path', $options) ? $options['path'] : 'null'; @@ -2075,10 +2075,6 @@ public function updateLogOpenstackRequest($options) $formParams['placement'] = ObjectSerializer::toFormValue($placement); } // form params - if ($format_version !== null) { - $formParams['format_version'] = ObjectSerializer::toFormValue($format_version); - } - // form params if ($response_condition !== null) { $formParams['response_condition'] = ObjectSerializer::toFormValue($response_condition); } @@ -2087,6 +2083,10 @@ public function updateLogOpenstackRequest($options) $formParams['format'] = ObjectSerializer::toFormValue($format); } // form params + if ($format_version !== null) { + $formParams['format_version'] = ObjectSerializer::toFormValue($format_version); + } + // form params if ($message_type !== null) { $formParams['message_type'] = ObjectSerializer::toFormValue($message_type); } @@ -2095,6 +2095,10 @@ public function updateLogOpenstackRequest($options) $formParams['timestamp_format'] = ObjectSerializer::toFormValue($timestamp_format); } // form params + if ($compression_codec !== null) { + $formParams['compression_codec'] = ObjectSerializer::toFormValue($compression_codec); + } + // form params if ($period !== null) { $formParams['period'] = ObjectSerializer::toFormValue($period); } @@ -2103,10 +2107,6 @@ public function updateLogOpenstackRequest($options) $formParams['gzip_level'] = ObjectSerializer::toFormValue($gzip_level); } // form params - if ($compression_codec !== null) { - $formParams['compression_codec'] = ObjectSerializer::toFormValue($compression_codec); - } - // form params if ($access_key !== null) { $formParams['access_key'] = ObjectSerializer::toFormValue($access_key); } diff --git a/lib/Api/LoggingPapertrailApi.php b/lib/Api/LoggingPapertrailApi.php index e6f7cb74..4ee402ab 100644 --- a/lib/Api/LoggingPapertrailApi.php +++ b/lib/Api/LoggingPapertrailApi.php @@ -123,9 +123,9 @@ public function getConfig() * @param int $version_id Integer identifying a service version. (required) * @param string $name The name for the real-time logging configuration. (optional) * @param string $placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. (optional) - * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. (optional) * @param string $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). (optional, default to '%h %l %u %t "%r" %>s %b') + * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $address A hostname or IPv4 address. (optional) * @param int $port The port number. (optional, default to 514) * @@ -153,9 +153,9 @@ public function createLogPapertrail($options) * @param int $version_id Integer identifying a service version. (required) * @param string $name The name for the real-time logging configuration. (optional) * @param string $placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. (optional) - * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. (optional) * @param string $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). (optional, default to '%h %l %u %t "%r" %>s %b') + * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $address A hostname or IPv4 address. (optional) * @param int $port The port number. (optional, default to 514) * @@ -271,9 +271,9 @@ public function createLogPapertrailWithHttpInfo($options) * @param int $version_id Integer identifying a service version. (required) * @param string $name The name for the real-time logging configuration. (optional) * @param string $placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. (optional) - * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. (optional) * @param string $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). (optional, default to '%h %l %u %t "%r" %>s %b') + * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $address A hostname or IPv4 address. (optional) * @param int $port The port number. (optional, default to 514) * @@ -304,9 +304,9 @@ function ($response) { * @param int $version_id Integer identifying a service version. (required) * @param string $name The name for the real-time logging configuration. (optional) * @param string $placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. (optional) - * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. (optional) * @param string $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). (optional, default to '%h %l %u %t "%r" %>s %b') + * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $address A hostname or IPv4 address. (optional) * @param int $port The port number. (optional, default to 514) * @@ -363,9 +363,9 @@ function ($exception) { * @param int $version_id Integer identifying a service version. (required) * @param string $name The name for the real-time logging configuration. (optional) * @param string $placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. (optional) - * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. (optional) * @param string $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). (optional, default to '%h %l %u %t "%r" %>s %b') + * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $address A hostname or IPv4 address. (optional) * @param int $port The port number. (optional, default to 514) * @@ -379,9 +379,9 @@ public function createLogPapertrailRequest($options) $version_id = array_key_exists('version_id', $options) ? $options['version_id'] : null; $name = array_key_exists('name', $options) ? $options['name'] : null; $placement = array_key_exists('placement', $options) ? $options['placement'] : null; - $format_version = array_key_exists('format_version', $options) ? $options['format_version'] : self::FORMAT_VERSION_v2; $response_condition = array_key_exists('response_condition', $options) ? $options['response_condition'] : null; $format = array_key_exists('format', $options) ? $options['format'] : '%h %l %u %t "%r" %>s %b'; + $format_version = array_key_exists('format_version', $options) ? $options['format_version'] : self::FORMAT_VERSION_v2; $address = array_key_exists('address', $options) ? $options['address'] : null; $port = array_key_exists('port', $options) ? $options['port'] : 514; @@ -433,10 +433,6 @@ public function createLogPapertrailRequest($options) $formParams['placement'] = ObjectSerializer::toFormValue($placement); } // form params - if ($format_version !== null) { - $formParams['format_version'] = ObjectSerializer::toFormValue($format_version); - } - // form params if ($response_condition !== null) { $formParams['response_condition'] = ObjectSerializer::toFormValue($response_condition); } @@ -445,6 +441,10 @@ public function createLogPapertrailRequest($options) $formParams['format'] = ObjectSerializer::toFormValue($format); } // form params + if ($format_version !== null) { + $formParams['format_version'] = ObjectSerializer::toFormValue($format_version); + } + // form params if ($address !== null) { $formParams['address'] = ObjectSerializer::toFormValue($address); } @@ -1602,9 +1602,9 @@ public function listLogPapertrailRequest($options) * @param string $logging_papertrail_name The name for the real-time logging configuration. (required) * @param string $name The name for the real-time logging configuration. (optional) * @param string $placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. (optional) - * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. (optional) * @param string $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). (optional, default to '%h %l %u %t "%r" %>s %b') + * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $address A hostname or IPv4 address. (optional) * @param int $port The port number. (optional, default to 514) * @@ -1633,9 +1633,9 @@ public function updateLogPapertrail($options) * @param string $logging_papertrail_name The name for the real-time logging configuration. (required) * @param string $name The name for the real-time logging configuration. (optional) * @param string $placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. (optional) - * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. (optional) * @param string $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). (optional, default to '%h %l %u %t "%r" %>s %b') + * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $address A hostname or IPv4 address. (optional) * @param int $port The port number. (optional, default to 514) * @@ -1752,9 +1752,9 @@ public function updateLogPapertrailWithHttpInfo($options) * @param string $logging_papertrail_name The name for the real-time logging configuration. (required) * @param string $name The name for the real-time logging configuration. (optional) * @param string $placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. (optional) - * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. (optional) * @param string $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). (optional, default to '%h %l %u %t "%r" %>s %b') + * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $address A hostname or IPv4 address. (optional) * @param int $port The port number. (optional, default to 514) * @@ -1786,9 +1786,9 @@ function ($response) { * @param string $logging_papertrail_name The name for the real-time logging configuration. (required) * @param string $name The name for the real-time logging configuration. (optional) * @param string $placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. (optional) - * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. (optional) * @param string $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). (optional, default to '%h %l %u %t "%r" %>s %b') + * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $address A hostname or IPv4 address. (optional) * @param int $port The port number. (optional, default to 514) * @@ -1846,9 +1846,9 @@ function ($exception) { * @param string $logging_papertrail_name The name for the real-time logging configuration. (required) * @param string $name The name for the real-time logging configuration. (optional) * @param string $placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. (optional) - * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. (optional) * @param string $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). (optional, default to '%h %l %u %t "%r" %>s %b') + * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $address A hostname or IPv4 address. (optional) * @param int $port The port number. (optional, default to 514) * @@ -1863,9 +1863,9 @@ public function updateLogPapertrailRequest($options) $logging_papertrail_name = array_key_exists('logging_papertrail_name', $options) ? $options['logging_papertrail_name'] : null; $name = array_key_exists('name', $options) ? $options['name'] : null; $placement = array_key_exists('placement', $options) ? $options['placement'] : null; - $format_version = array_key_exists('format_version', $options) ? $options['format_version'] : self::FORMAT_VERSION_v2; $response_condition = array_key_exists('response_condition', $options) ? $options['response_condition'] : null; $format = array_key_exists('format', $options) ? $options['format'] : '%h %l %u %t "%r" %>s %b'; + $format_version = array_key_exists('format_version', $options) ? $options['format_version'] : self::FORMAT_VERSION_v2; $address = array_key_exists('address', $options) ? $options['address'] : null; $port = array_key_exists('port', $options) ? $options['port'] : 514; @@ -1931,10 +1931,6 @@ public function updateLogPapertrailRequest($options) $formParams['placement'] = ObjectSerializer::toFormValue($placement); } // form params - if ($format_version !== null) { - $formParams['format_version'] = ObjectSerializer::toFormValue($format_version); - } - // form params if ($response_condition !== null) { $formParams['response_condition'] = ObjectSerializer::toFormValue($response_condition); } @@ -1943,6 +1939,10 @@ public function updateLogPapertrailRequest($options) $formParams['format'] = ObjectSerializer::toFormValue($format); } // form params + if ($format_version !== null) { + $formParams['format_version'] = ObjectSerializer::toFormValue($format_version); + } + // form params if ($address !== null) { $formParams['address'] = ObjectSerializer::toFormValue($address); } diff --git a/lib/Api/LoggingPubsubApi.php b/lib/Api/LoggingPubsubApi.php index ac3694fd..88d3f89c 100644 --- a/lib/Api/LoggingPubsubApi.php +++ b/lib/Api/LoggingPubsubApi.php @@ -123,9 +123,9 @@ public function getConfig() * @param int $version_id Integer identifying a service version. (required) * @param string $name The name for the real-time logging configuration. (optional) * @param string $placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. (optional) - * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. (optional) * @param string $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). (optional, default to '%h %l %u %t "%r" %>s %b') + * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $user Your Google Cloud Platform service account email address. The `client_email` field in your service account authentication JSON. Not required if `account_name` is specified. (optional) * @param string $secret_key Your Google Cloud Platform account secret key. The `private_key` field in your service account authentication JSON. Not required if `account_name` is specified. (optional) * @param string $account_name The name of the Google Cloud Platform service account associated with the target log collection service. Not required if `user` and `secret_key` are provided. (optional) @@ -156,9 +156,9 @@ public function createLogGcpPubsub($options) * @param int $version_id Integer identifying a service version. (required) * @param string $name The name for the real-time logging configuration. (optional) * @param string $placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. (optional) - * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. (optional) * @param string $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). (optional, default to '%h %l %u %t "%r" %>s %b') + * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $user Your Google Cloud Platform service account email address. The `client_email` field in your service account authentication JSON. Not required if `account_name` is specified. (optional) * @param string $secret_key Your Google Cloud Platform account secret key. The `private_key` field in your service account authentication JSON. Not required if `account_name` is specified. (optional) * @param string $account_name The name of the Google Cloud Platform service account associated with the target log collection service. Not required if `user` and `secret_key` are provided. (optional) @@ -277,9 +277,9 @@ public function createLogGcpPubsubWithHttpInfo($options) * @param int $version_id Integer identifying a service version. (required) * @param string $name The name for the real-time logging configuration. (optional) * @param string $placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. (optional) - * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. (optional) * @param string $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). (optional, default to '%h %l %u %t "%r" %>s %b') + * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $user Your Google Cloud Platform service account email address. The `client_email` field in your service account authentication JSON. Not required if `account_name` is specified. (optional) * @param string $secret_key Your Google Cloud Platform account secret key. The `private_key` field in your service account authentication JSON. Not required if `account_name` is specified. (optional) * @param string $account_name The name of the Google Cloud Platform service account associated with the target log collection service. Not required if `user` and `secret_key` are provided. (optional) @@ -313,9 +313,9 @@ function ($response) { * @param int $version_id Integer identifying a service version. (required) * @param string $name The name for the real-time logging configuration. (optional) * @param string $placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. (optional) - * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. (optional) * @param string $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). (optional, default to '%h %l %u %t "%r" %>s %b') + * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $user Your Google Cloud Platform service account email address. The `client_email` field in your service account authentication JSON. Not required if `account_name` is specified. (optional) * @param string $secret_key Your Google Cloud Platform account secret key. The `private_key` field in your service account authentication JSON. Not required if `account_name` is specified. (optional) * @param string $account_name The name of the Google Cloud Platform service account associated with the target log collection service. Not required if `user` and `secret_key` are provided. (optional) @@ -375,9 +375,9 @@ function ($exception) { * @param int $version_id Integer identifying a service version. (required) * @param string $name The name for the real-time logging configuration. (optional) * @param string $placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. (optional) - * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. (optional) * @param string $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). (optional, default to '%h %l %u %t "%r" %>s %b') + * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $user Your Google Cloud Platform service account email address. The `client_email` field in your service account authentication JSON. Not required if `account_name` is specified. (optional) * @param string $secret_key Your Google Cloud Platform account secret key. The `private_key` field in your service account authentication JSON. Not required if `account_name` is specified. (optional) * @param string $account_name The name of the Google Cloud Platform service account associated with the target log collection service. Not required if `user` and `secret_key` are provided. (optional) @@ -394,9 +394,9 @@ public function createLogGcpPubsubRequest($options) $version_id = array_key_exists('version_id', $options) ? $options['version_id'] : null; $name = array_key_exists('name', $options) ? $options['name'] : null; $placement = array_key_exists('placement', $options) ? $options['placement'] : null; - $format_version = array_key_exists('format_version', $options) ? $options['format_version'] : self::FORMAT_VERSION_v2; $response_condition = array_key_exists('response_condition', $options) ? $options['response_condition'] : null; $format = array_key_exists('format', $options) ? $options['format'] : '%h %l %u %t "%r" %>s %b'; + $format_version = array_key_exists('format_version', $options) ? $options['format_version'] : self::FORMAT_VERSION_v2; $user = array_key_exists('user', $options) ? $options['user'] : null; $secret_key = array_key_exists('secret_key', $options) ? $options['secret_key'] : null; $account_name = array_key_exists('account_name', $options) ? $options['account_name'] : null; @@ -451,10 +451,6 @@ public function createLogGcpPubsubRequest($options) $formParams['placement'] = ObjectSerializer::toFormValue($placement); } // form params - if ($format_version !== null) { - $formParams['format_version'] = ObjectSerializer::toFormValue($format_version); - } - // form params if ($response_condition !== null) { $formParams['response_condition'] = ObjectSerializer::toFormValue($response_condition); } @@ -463,6 +459,10 @@ public function createLogGcpPubsubRequest($options) $formParams['format'] = ObjectSerializer::toFormValue($format); } // form params + if ($format_version !== null) { + $formParams['format_version'] = ObjectSerializer::toFormValue($format_version); + } + // form params if ($user !== null) { $formParams['user'] = ObjectSerializer::toFormValue($user); } @@ -1632,9 +1632,9 @@ public function listLogGcpPubsubRequest($options) * @param string $logging_google_pubsub_name The name for the real-time logging configuration. (required) * @param string $name The name for the real-time logging configuration. (optional) * @param string $placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. (optional) - * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. (optional) * @param string $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). (optional, default to '%h %l %u %t "%r" %>s %b') + * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $user Your Google Cloud Platform service account email address. The `client_email` field in your service account authentication JSON. Not required if `account_name` is specified. (optional) * @param string $secret_key Your Google Cloud Platform account secret key. The `private_key` field in your service account authentication JSON. Not required if `account_name` is specified. (optional) * @param string $account_name The name of the Google Cloud Platform service account associated with the target log collection service. Not required if `user` and `secret_key` are provided. (optional) @@ -1666,9 +1666,9 @@ public function updateLogGcpPubsub($options) * @param string $logging_google_pubsub_name The name for the real-time logging configuration. (required) * @param string $name The name for the real-time logging configuration. (optional) * @param string $placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. (optional) - * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. (optional) * @param string $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). (optional, default to '%h %l %u %t "%r" %>s %b') + * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $user Your Google Cloud Platform service account email address. The `client_email` field in your service account authentication JSON. Not required if `account_name` is specified. (optional) * @param string $secret_key Your Google Cloud Platform account secret key. The `private_key` field in your service account authentication JSON. Not required if `account_name` is specified. (optional) * @param string $account_name The name of the Google Cloud Platform service account associated with the target log collection service. Not required if `user` and `secret_key` are provided. (optional) @@ -1788,9 +1788,9 @@ public function updateLogGcpPubsubWithHttpInfo($options) * @param string $logging_google_pubsub_name The name for the real-time logging configuration. (required) * @param string $name The name for the real-time logging configuration. (optional) * @param string $placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. (optional) - * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. (optional) * @param string $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). (optional, default to '%h %l %u %t "%r" %>s %b') + * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $user Your Google Cloud Platform service account email address. The `client_email` field in your service account authentication JSON. Not required if `account_name` is specified. (optional) * @param string $secret_key Your Google Cloud Platform account secret key. The `private_key` field in your service account authentication JSON. Not required if `account_name` is specified. (optional) * @param string $account_name The name of the Google Cloud Platform service account associated with the target log collection service. Not required if `user` and `secret_key` are provided. (optional) @@ -1825,9 +1825,9 @@ function ($response) { * @param string $logging_google_pubsub_name The name for the real-time logging configuration. (required) * @param string $name The name for the real-time logging configuration. (optional) * @param string $placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. (optional) - * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. (optional) * @param string $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). (optional, default to '%h %l %u %t "%r" %>s %b') + * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $user Your Google Cloud Platform service account email address. The `client_email` field in your service account authentication JSON. Not required if `account_name` is specified. (optional) * @param string $secret_key Your Google Cloud Platform account secret key. The `private_key` field in your service account authentication JSON. Not required if `account_name` is specified. (optional) * @param string $account_name The name of the Google Cloud Platform service account associated with the target log collection service. Not required if `user` and `secret_key` are provided. (optional) @@ -1888,9 +1888,9 @@ function ($exception) { * @param string $logging_google_pubsub_name The name for the real-time logging configuration. (required) * @param string $name The name for the real-time logging configuration. (optional) * @param string $placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. (optional) - * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. (optional) * @param string $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). (optional, default to '%h %l %u %t "%r" %>s %b') + * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $user Your Google Cloud Platform service account email address. The `client_email` field in your service account authentication JSON. Not required if `account_name` is specified. (optional) * @param string $secret_key Your Google Cloud Platform account secret key. The `private_key` field in your service account authentication JSON. Not required if `account_name` is specified. (optional) * @param string $account_name The name of the Google Cloud Platform service account associated with the target log collection service. Not required if `user` and `secret_key` are provided. (optional) @@ -1908,9 +1908,9 @@ public function updateLogGcpPubsubRequest($options) $logging_google_pubsub_name = array_key_exists('logging_google_pubsub_name', $options) ? $options['logging_google_pubsub_name'] : null; $name = array_key_exists('name', $options) ? $options['name'] : null; $placement = array_key_exists('placement', $options) ? $options['placement'] : null; - $format_version = array_key_exists('format_version', $options) ? $options['format_version'] : self::FORMAT_VERSION_v2; $response_condition = array_key_exists('response_condition', $options) ? $options['response_condition'] : null; $format = array_key_exists('format', $options) ? $options['format'] : '%h %l %u %t "%r" %>s %b'; + $format_version = array_key_exists('format_version', $options) ? $options['format_version'] : self::FORMAT_VERSION_v2; $user = array_key_exists('user', $options) ? $options['user'] : null; $secret_key = array_key_exists('secret_key', $options) ? $options['secret_key'] : null; $account_name = array_key_exists('account_name', $options) ? $options['account_name'] : null; @@ -1979,10 +1979,6 @@ public function updateLogGcpPubsubRequest($options) $formParams['placement'] = ObjectSerializer::toFormValue($placement); } // form params - if ($format_version !== null) { - $formParams['format_version'] = ObjectSerializer::toFormValue($format_version); - } - // form params if ($response_condition !== null) { $formParams['response_condition'] = ObjectSerializer::toFormValue($response_condition); } @@ -1991,6 +1987,10 @@ public function updateLogGcpPubsubRequest($options) $formParams['format'] = ObjectSerializer::toFormValue($format); } // form params + if ($format_version !== null) { + $formParams['format_version'] = ObjectSerializer::toFormValue($format_version); + } + // form params if ($user !== null) { $formParams['user'] = ObjectSerializer::toFormValue($user); } diff --git a/lib/Api/LoggingS3Api.php b/lib/Api/LoggingS3Api.php index 96ea28cc..a1ce3414 100644 --- a/lib/Api/LoggingS3Api.php +++ b/lib/Api/LoggingS3Api.php @@ -123,14 +123,14 @@ public function getConfig() * @param int $version_id Integer identifying a service version. (required) * @param string $name The name for the real-time logging configuration. (optional) * @param string $placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. (optional) - * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. (optional) * @param string $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). (optional, default to '%h %l %u %t "%r" %>s %b') + * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $message_type How the message should be formatted. (optional, default to 'classic') * @param string $timestamp_format A timestamp format (optional) + * @param string $compression_codec The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. (optional) * @param int $period How frequently log files are finalized so they can be available for reading (in seconds). (optional, default to 3600) * @param int $gzip_level The level of gzip encoding when sending logs (default `0`, no compression). Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. (optional, default to 0) - * @param string $compression_codec The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. (optional) * @param string $access_key The access key for your S3 account. Not required if `iam_role` is provided. (optional) * @param string $acl The access control list (ACL) specific request header. See the AWS documentation for [Access Control List (ACL) Specific Request Headers](https://docs.aws.amazon.com/AmazonS3/latest/API/mpUploadInitiate.html#initiate-mpu-acl-specific-request-headers) for more information. (optional) * @param string $bucket_name The bucket name for S3 account. (optional) @@ -167,14 +167,14 @@ public function createLogAwsS3($options) * @param int $version_id Integer identifying a service version. (required) * @param string $name The name for the real-time logging configuration. (optional) * @param string $placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. (optional) - * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. (optional) * @param string $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). (optional, default to '%h %l %u %t "%r" %>s %b') + * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $message_type How the message should be formatted. (optional, default to 'classic') * @param string $timestamp_format A timestamp format (optional) + * @param string $compression_codec The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. (optional) * @param int $period How frequently log files are finalized so they can be available for reading (in seconds). (optional, default to 3600) * @param int $gzip_level The level of gzip encoding when sending logs (default `0`, no compression). Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. (optional, default to 0) - * @param string $compression_codec The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. (optional) * @param string $access_key The access key for your S3 account. Not required if `iam_role` is provided. (optional) * @param string $acl The access control list (ACL) specific request header. See the AWS documentation for [Access Control List (ACL) Specific Request Headers](https://docs.aws.amazon.com/AmazonS3/latest/API/mpUploadInitiate.html#initiate-mpu-acl-specific-request-headers) for more information. (optional) * @param string $bucket_name The bucket name for S3 account. (optional) @@ -299,14 +299,14 @@ public function createLogAwsS3WithHttpInfo($options) * @param int $version_id Integer identifying a service version. (required) * @param string $name The name for the real-time logging configuration. (optional) * @param string $placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. (optional) - * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. (optional) * @param string $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). (optional, default to '%h %l %u %t "%r" %>s %b') + * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $message_type How the message should be formatted. (optional, default to 'classic') * @param string $timestamp_format A timestamp format (optional) + * @param string $compression_codec The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. (optional) * @param int $period How frequently log files are finalized so they can be available for reading (in seconds). (optional, default to 3600) * @param int $gzip_level The level of gzip encoding when sending logs (default `0`, no compression). Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. (optional, default to 0) - * @param string $compression_codec The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. (optional) * @param string $access_key The access key for your S3 account. Not required if `iam_role` is provided. (optional) * @param string $acl The access control list (ACL) specific request header. See the AWS documentation for [Access Control List (ACL) Specific Request Headers](https://docs.aws.amazon.com/AmazonS3/latest/API/mpUploadInitiate.html#initiate-mpu-acl-specific-request-headers) for more information. (optional) * @param string $bucket_name The bucket name for S3 account. (optional) @@ -346,14 +346,14 @@ function ($response) { * @param int $version_id Integer identifying a service version. (required) * @param string $name The name for the real-time logging configuration. (optional) * @param string $placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. (optional) - * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. (optional) * @param string $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). (optional, default to '%h %l %u %t "%r" %>s %b') + * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $message_type How the message should be formatted. (optional, default to 'classic') * @param string $timestamp_format A timestamp format (optional) + * @param string $compression_codec The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. (optional) * @param int $period How frequently log files are finalized so they can be available for reading (in seconds). (optional, default to 3600) * @param int $gzip_level The level of gzip encoding when sending logs (default `0`, no compression). Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. (optional, default to 0) - * @param string $compression_codec The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. (optional) * @param string $access_key The access key for your S3 account. Not required if `iam_role` is provided. (optional) * @param string $acl The access control list (ACL) specific request header. See the AWS documentation for [Access Control List (ACL) Specific Request Headers](https://docs.aws.amazon.com/AmazonS3/latest/API/mpUploadInitiate.html#initiate-mpu-acl-specific-request-headers) for more information. (optional) * @param string $bucket_name The bucket name for S3 account. (optional) @@ -419,14 +419,14 @@ function ($exception) { * @param int $version_id Integer identifying a service version. (required) * @param string $name The name for the real-time logging configuration. (optional) * @param string $placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. (optional) - * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. (optional) * @param string $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). (optional, default to '%h %l %u %t "%r" %>s %b') + * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $message_type How the message should be formatted. (optional, default to 'classic') * @param string $timestamp_format A timestamp format (optional) + * @param string $compression_codec The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. (optional) * @param int $period How frequently log files are finalized so they can be available for reading (in seconds). (optional, default to 3600) * @param int $gzip_level The level of gzip encoding when sending logs (default `0`, no compression). Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. (optional, default to 0) - * @param string $compression_codec The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. (optional) * @param string $access_key The access key for your S3 account. Not required if `iam_role` is provided. (optional) * @param string $acl The access control list (ACL) specific request header. See the AWS documentation for [Access Control List (ACL) Specific Request Headers](https://docs.aws.amazon.com/AmazonS3/latest/API/mpUploadInitiate.html#initiate-mpu-acl-specific-request-headers) for more information. (optional) * @param string $bucket_name The bucket name for S3 account. (optional) @@ -449,14 +449,14 @@ public function createLogAwsS3Request($options) $version_id = array_key_exists('version_id', $options) ? $options['version_id'] : null; $name = array_key_exists('name', $options) ? $options['name'] : null; $placement = array_key_exists('placement', $options) ? $options['placement'] : null; - $format_version = array_key_exists('format_version', $options) ? $options['format_version'] : self::FORMAT_VERSION_v2; $response_condition = array_key_exists('response_condition', $options) ? $options['response_condition'] : null; $format = array_key_exists('format', $options) ? $options['format'] : '%h %l %u %t "%r" %>s %b'; + $format_version = array_key_exists('format_version', $options) ? $options['format_version'] : self::FORMAT_VERSION_v2; $message_type = array_key_exists('message_type', $options) ? $options['message_type'] : 'classic'; $timestamp_format = array_key_exists('timestamp_format', $options) ? $options['timestamp_format'] : null; + $compression_codec = array_key_exists('compression_codec', $options) ? $options['compression_codec'] : null; $period = array_key_exists('period', $options) ? $options['period'] : 3600; $gzip_level = array_key_exists('gzip_level', $options) ? $options['gzip_level'] : 0; - $compression_codec = array_key_exists('compression_codec', $options) ? $options['compression_codec'] : null; $access_key = array_key_exists('access_key', $options) ? $options['access_key'] : null; $acl = array_key_exists('acl', $options) ? $options['acl'] : null; $bucket_name = array_key_exists('bucket_name', $options) ? $options['bucket_name'] : null; @@ -517,10 +517,6 @@ public function createLogAwsS3Request($options) $formParams['placement'] = ObjectSerializer::toFormValue($placement); } // form params - if ($format_version !== null) { - $formParams['format_version'] = ObjectSerializer::toFormValue($format_version); - } - // form params if ($response_condition !== null) { $formParams['response_condition'] = ObjectSerializer::toFormValue($response_condition); } @@ -529,6 +525,10 @@ public function createLogAwsS3Request($options) $formParams['format'] = ObjectSerializer::toFormValue($format); } // form params + if ($format_version !== null) { + $formParams['format_version'] = ObjectSerializer::toFormValue($format_version); + } + // form params if ($message_type !== null) { $formParams['message_type'] = ObjectSerializer::toFormValue($message_type); } @@ -537,6 +537,10 @@ public function createLogAwsS3Request($options) $formParams['timestamp_format'] = ObjectSerializer::toFormValue($timestamp_format); } // form params + if ($compression_codec !== null) { + $formParams['compression_codec'] = ObjectSerializer::toFormValue($compression_codec); + } + // form params if ($period !== null) { $formParams['period'] = ObjectSerializer::toFormValue($period); } @@ -545,10 +549,6 @@ public function createLogAwsS3Request($options) $formParams['gzip_level'] = ObjectSerializer::toFormValue($gzip_level); } // form params - if ($compression_codec !== null) { - $formParams['compression_codec'] = ObjectSerializer::toFormValue($compression_codec); - } - // form params if ($access_key !== null) { $formParams['access_key'] = ObjectSerializer::toFormValue($access_key); } @@ -1742,14 +1742,14 @@ public function listLogAwsS3Request($options) * @param string $logging_s3_name The name for the real-time logging configuration. (required) * @param string $name The name for the real-time logging configuration. (optional) * @param string $placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. (optional) - * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. (optional) * @param string $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). (optional, default to '%h %l %u %t "%r" %>s %b') + * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $message_type How the message should be formatted. (optional, default to 'classic') * @param string $timestamp_format A timestamp format (optional) + * @param string $compression_codec The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. (optional) * @param int $period How frequently log files are finalized so they can be available for reading (in seconds). (optional, default to 3600) * @param int $gzip_level The level of gzip encoding when sending logs (default `0`, no compression). Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. (optional, default to 0) - * @param string $compression_codec The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. (optional) * @param string $access_key The access key for your S3 account. Not required if `iam_role` is provided. (optional) * @param string $acl The access control list (ACL) specific request header. See the AWS documentation for [Access Control List (ACL) Specific Request Headers](https://docs.aws.amazon.com/AmazonS3/latest/API/mpUploadInitiate.html#initiate-mpu-acl-specific-request-headers) for more information. (optional) * @param string $bucket_name The bucket name for S3 account. (optional) @@ -1787,14 +1787,14 @@ public function updateLogAwsS3($options) * @param string $logging_s3_name The name for the real-time logging configuration. (required) * @param string $name The name for the real-time logging configuration. (optional) * @param string $placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. (optional) - * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. (optional) * @param string $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). (optional, default to '%h %l %u %t "%r" %>s %b') + * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $message_type How the message should be formatted. (optional, default to 'classic') * @param string $timestamp_format A timestamp format (optional) + * @param string $compression_codec The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. (optional) * @param int $period How frequently log files are finalized so they can be available for reading (in seconds). (optional, default to 3600) * @param int $gzip_level The level of gzip encoding when sending logs (default `0`, no compression). Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. (optional, default to 0) - * @param string $compression_codec The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. (optional) * @param string $access_key The access key for your S3 account. Not required if `iam_role` is provided. (optional) * @param string $acl The access control list (ACL) specific request header. See the AWS documentation for [Access Control List (ACL) Specific Request Headers](https://docs.aws.amazon.com/AmazonS3/latest/API/mpUploadInitiate.html#initiate-mpu-acl-specific-request-headers) for more information. (optional) * @param string $bucket_name The bucket name for S3 account. (optional) @@ -1920,14 +1920,14 @@ public function updateLogAwsS3WithHttpInfo($options) * @param string $logging_s3_name The name for the real-time logging configuration. (required) * @param string $name The name for the real-time logging configuration. (optional) * @param string $placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. (optional) - * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. (optional) * @param string $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). (optional, default to '%h %l %u %t "%r" %>s %b') + * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $message_type How the message should be formatted. (optional, default to 'classic') * @param string $timestamp_format A timestamp format (optional) + * @param string $compression_codec The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. (optional) * @param int $period How frequently log files are finalized so they can be available for reading (in seconds). (optional, default to 3600) * @param int $gzip_level The level of gzip encoding when sending logs (default `0`, no compression). Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. (optional, default to 0) - * @param string $compression_codec The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. (optional) * @param string $access_key The access key for your S3 account. Not required if `iam_role` is provided. (optional) * @param string $acl The access control list (ACL) specific request header. See the AWS documentation for [Access Control List (ACL) Specific Request Headers](https://docs.aws.amazon.com/AmazonS3/latest/API/mpUploadInitiate.html#initiate-mpu-acl-specific-request-headers) for more information. (optional) * @param string $bucket_name The bucket name for S3 account. (optional) @@ -1968,14 +1968,14 @@ function ($response) { * @param string $logging_s3_name The name for the real-time logging configuration. (required) * @param string $name The name for the real-time logging configuration. (optional) * @param string $placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. (optional) - * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. (optional) * @param string $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). (optional, default to '%h %l %u %t "%r" %>s %b') + * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $message_type How the message should be formatted. (optional, default to 'classic') * @param string $timestamp_format A timestamp format (optional) + * @param string $compression_codec The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. (optional) * @param int $period How frequently log files are finalized so they can be available for reading (in seconds). (optional, default to 3600) * @param int $gzip_level The level of gzip encoding when sending logs (default `0`, no compression). Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. (optional, default to 0) - * @param string $compression_codec The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. (optional) * @param string $access_key The access key for your S3 account. Not required if `iam_role` is provided. (optional) * @param string $acl The access control list (ACL) specific request header. See the AWS documentation for [Access Control List (ACL) Specific Request Headers](https://docs.aws.amazon.com/AmazonS3/latest/API/mpUploadInitiate.html#initiate-mpu-acl-specific-request-headers) for more information. (optional) * @param string $bucket_name The bucket name for S3 account. (optional) @@ -2042,14 +2042,14 @@ function ($exception) { * @param string $logging_s3_name The name for the real-time logging configuration. (required) * @param string $name The name for the real-time logging configuration. (optional) * @param string $placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. (optional) - * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. (optional) * @param string $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). (optional, default to '%h %l %u %t "%r" %>s %b') + * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $message_type How the message should be formatted. (optional, default to 'classic') * @param string $timestamp_format A timestamp format (optional) + * @param string $compression_codec The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. (optional) * @param int $period How frequently log files are finalized so they can be available for reading (in seconds). (optional, default to 3600) * @param int $gzip_level The level of gzip encoding when sending logs (default `0`, no compression). Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. (optional, default to 0) - * @param string $compression_codec The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. (optional) * @param string $access_key The access key for your S3 account. Not required if `iam_role` is provided. (optional) * @param string $acl The access control list (ACL) specific request header. See the AWS documentation for [Access Control List (ACL) Specific Request Headers](https://docs.aws.amazon.com/AmazonS3/latest/API/mpUploadInitiate.html#initiate-mpu-acl-specific-request-headers) for more information. (optional) * @param string $bucket_name The bucket name for S3 account. (optional) @@ -2073,14 +2073,14 @@ public function updateLogAwsS3Request($options) $logging_s3_name = array_key_exists('logging_s3_name', $options) ? $options['logging_s3_name'] : null; $name = array_key_exists('name', $options) ? $options['name'] : null; $placement = array_key_exists('placement', $options) ? $options['placement'] : null; - $format_version = array_key_exists('format_version', $options) ? $options['format_version'] : self::FORMAT_VERSION_v2; $response_condition = array_key_exists('response_condition', $options) ? $options['response_condition'] : null; $format = array_key_exists('format', $options) ? $options['format'] : '%h %l %u %t "%r" %>s %b'; + $format_version = array_key_exists('format_version', $options) ? $options['format_version'] : self::FORMAT_VERSION_v2; $message_type = array_key_exists('message_type', $options) ? $options['message_type'] : 'classic'; $timestamp_format = array_key_exists('timestamp_format', $options) ? $options['timestamp_format'] : null; + $compression_codec = array_key_exists('compression_codec', $options) ? $options['compression_codec'] : null; $period = array_key_exists('period', $options) ? $options['period'] : 3600; $gzip_level = array_key_exists('gzip_level', $options) ? $options['gzip_level'] : 0; - $compression_codec = array_key_exists('compression_codec', $options) ? $options['compression_codec'] : null; $access_key = array_key_exists('access_key', $options) ? $options['access_key'] : null; $acl = array_key_exists('acl', $options) ? $options['acl'] : null; $bucket_name = array_key_exists('bucket_name', $options) ? $options['bucket_name'] : null; @@ -2155,10 +2155,6 @@ public function updateLogAwsS3Request($options) $formParams['placement'] = ObjectSerializer::toFormValue($placement); } // form params - if ($format_version !== null) { - $formParams['format_version'] = ObjectSerializer::toFormValue($format_version); - } - // form params if ($response_condition !== null) { $formParams['response_condition'] = ObjectSerializer::toFormValue($response_condition); } @@ -2167,6 +2163,10 @@ public function updateLogAwsS3Request($options) $formParams['format'] = ObjectSerializer::toFormValue($format); } // form params + if ($format_version !== null) { + $formParams['format_version'] = ObjectSerializer::toFormValue($format_version); + } + // form params if ($message_type !== null) { $formParams['message_type'] = ObjectSerializer::toFormValue($message_type); } @@ -2175,6 +2175,10 @@ public function updateLogAwsS3Request($options) $formParams['timestamp_format'] = ObjectSerializer::toFormValue($timestamp_format); } // form params + if ($compression_codec !== null) { + $formParams['compression_codec'] = ObjectSerializer::toFormValue($compression_codec); + } + // form params if ($period !== null) { $formParams['period'] = ObjectSerializer::toFormValue($period); } @@ -2183,10 +2187,6 @@ public function updateLogAwsS3Request($options) $formParams['gzip_level'] = ObjectSerializer::toFormValue($gzip_level); } // form params - if ($compression_codec !== null) { - $formParams['compression_codec'] = ObjectSerializer::toFormValue($compression_codec); - } - // form params if ($access_key !== null) { $formParams['access_key'] = ObjectSerializer::toFormValue($access_key); } diff --git a/lib/Api/LoggingScalyrApi.php b/lib/Api/LoggingScalyrApi.php index 252c75cc..033cfc1c 100644 --- a/lib/Api/LoggingScalyrApi.php +++ b/lib/Api/LoggingScalyrApi.php @@ -123,9 +123,9 @@ public function getConfig() * @param int $version_id Integer identifying a service version. (required) * @param string $name The name for the real-time logging configuration. (optional) * @param string $placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. (optional) - * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. (optional) * @param string $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). (optional, default to '%h %l %u %t "%r" %>s %b') + * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $region The region that log data will be sent to. (optional, default to 'US') * @param string $token The token to use for authentication ([https://www.scalyr.com/keys](https://www.scalyr.com/keys)). (optional) * @param string $project_id The name of the logfile within Scalyr. (optional, default to 'logplex') @@ -154,9 +154,9 @@ public function createLogScalyr($options) * @param int $version_id Integer identifying a service version. (required) * @param string $name The name for the real-time logging configuration. (optional) * @param string $placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. (optional) - * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. (optional) * @param string $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). (optional, default to '%h %l %u %t "%r" %>s %b') + * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $region The region that log data will be sent to. (optional, default to 'US') * @param string $token The token to use for authentication ([https://www.scalyr.com/keys](https://www.scalyr.com/keys)). (optional) * @param string $project_id The name of the logfile within Scalyr. (optional, default to 'logplex') @@ -273,9 +273,9 @@ public function createLogScalyrWithHttpInfo($options) * @param int $version_id Integer identifying a service version. (required) * @param string $name The name for the real-time logging configuration. (optional) * @param string $placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. (optional) - * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. (optional) * @param string $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). (optional, default to '%h %l %u %t "%r" %>s %b') + * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $region The region that log data will be sent to. (optional, default to 'US') * @param string $token The token to use for authentication ([https://www.scalyr.com/keys](https://www.scalyr.com/keys)). (optional) * @param string $project_id The name of the logfile within Scalyr. (optional, default to 'logplex') @@ -307,9 +307,9 @@ function ($response) { * @param int $version_id Integer identifying a service version. (required) * @param string $name The name for the real-time logging configuration. (optional) * @param string $placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. (optional) - * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. (optional) * @param string $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). (optional, default to '%h %l %u %t "%r" %>s %b') + * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $region The region that log data will be sent to. (optional, default to 'US') * @param string $token The token to use for authentication ([https://www.scalyr.com/keys](https://www.scalyr.com/keys)). (optional) * @param string $project_id The name of the logfile within Scalyr. (optional, default to 'logplex') @@ -367,9 +367,9 @@ function ($exception) { * @param int $version_id Integer identifying a service version. (required) * @param string $name The name for the real-time logging configuration. (optional) * @param string $placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. (optional) - * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. (optional) * @param string $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). (optional, default to '%h %l %u %t "%r" %>s %b') + * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $region The region that log data will be sent to. (optional, default to 'US') * @param string $token The token to use for authentication ([https://www.scalyr.com/keys](https://www.scalyr.com/keys)). (optional) * @param string $project_id The name of the logfile within Scalyr. (optional, default to 'logplex') @@ -384,9 +384,9 @@ public function createLogScalyrRequest($options) $version_id = array_key_exists('version_id', $options) ? $options['version_id'] : null; $name = array_key_exists('name', $options) ? $options['name'] : null; $placement = array_key_exists('placement', $options) ? $options['placement'] : null; - $format_version = array_key_exists('format_version', $options) ? $options['format_version'] : self::FORMAT_VERSION_v2; $response_condition = array_key_exists('response_condition', $options) ? $options['response_condition'] : null; $format = array_key_exists('format', $options) ? $options['format'] : '%h %l %u %t "%r" %>s %b'; + $format_version = array_key_exists('format_version', $options) ? $options['format_version'] : self::FORMAT_VERSION_v2; $region = array_key_exists('region', $options) ? $options['region'] : 'US'; $token = array_key_exists('token', $options) ? $options['token'] : null; $project_id = array_key_exists('project_id', $options) ? $options['project_id'] : 'logplex'; @@ -439,10 +439,6 @@ public function createLogScalyrRequest($options) $formParams['placement'] = ObjectSerializer::toFormValue($placement); } // form params - if ($format_version !== null) { - $formParams['format_version'] = ObjectSerializer::toFormValue($format_version); - } - // form params if ($response_condition !== null) { $formParams['response_condition'] = ObjectSerializer::toFormValue($response_condition); } @@ -451,6 +447,10 @@ public function createLogScalyrRequest($options) $formParams['format'] = ObjectSerializer::toFormValue($format); } // form params + if ($format_version !== null) { + $formParams['format_version'] = ObjectSerializer::toFormValue($format_version); + } + // form params if ($region !== null) { $formParams['region'] = ObjectSerializer::toFormValue($region); } @@ -1612,9 +1612,9 @@ public function listLogScalyrRequest($options) * @param string $logging_scalyr_name The name for the real-time logging configuration. (required) * @param string $name The name for the real-time logging configuration. (optional) * @param string $placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. (optional) - * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. (optional) * @param string $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). (optional, default to '%h %l %u %t "%r" %>s %b') + * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $region The region that log data will be sent to. (optional, default to 'US') * @param string $token The token to use for authentication ([https://www.scalyr.com/keys](https://www.scalyr.com/keys)). (optional) * @param string $project_id The name of the logfile within Scalyr. (optional, default to 'logplex') @@ -1644,9 +1644,9 @@ public function updateLogScalyr($options) * @param string $logging_scalyr_name The name for the real-time logging configuration. (required) * @param string $name The name for the real-time logging configuration. (optional) * @param string $placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. (optional) - * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. (optional) * @param string $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). (optional, default to '%h %l %u %t "%r" %>s %b') + * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $region The region that log data will be sent to. (optional, default to 'US') * @param string $token The token to use for authentication ([https://www.scalyr.com/keys](https://www.scalyr.com/keys)). (optional) * @param string $project_id The name of the logfile within Scalyr. (optional, default to 'logplex') @@ -1764,9 +1764,9 @@ public function updateLogScalyrWithHttpInfo($options) * @param string $logging_scalyr_name The name for the real-time logging configuration. (required) * @param string $name The name for the real-time logging configuration. (optional) * @param string $placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. (optional) - * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. (optional) * @param string $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). (optional, default to '%h %l %u %t "%r" %>s %b') + * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $region The region that log data will be sent to. (optional, default to 'US') * @param string $token The token to use for authentication ([https://www.scalyr.com/keys](https://www.scalyr.com/keys)). (optional) * @param string $project_id The name of the logfile within Scalyr. (optional, default to 'logplex') @@ -1799,9 +1799,9 @@ function ($response) { * @param string $logging_scalyr_name The name for the real-time logging configuration. (required) * @param string $name The name for the real-time logging configuration. (optional) * @param string $placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. (optional) - * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. (optional) * @param string $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). (optional, default to '%h %l %u %t "%r" %>s %b') + * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $region The region that log data will be sent to. (optional, default to 'US') * @param string $token The token to use for authentication ([https://www.scalyr.com/keys](https://www.scalyr.com/keys)). (optional) * @param string $project_id The name of the logfile within Scalyr. (optional, default to 'logplex') @@ -1860,9 +1860,9 @@ function ($exception) { * @param string $logging_scalyr_name The name for the real-time logging configuration. (required) * @param string $name The name for the real-time logging configuration. (optional) * @param string $placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. (optional) - * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. (optional) * @param string $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). (optional, default to '%h %l %u %t "%r" %>s %b') + * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $region The region that log data will be sent to. (optional, default to 'US') * @param string $token The token to use for authentication ([https://www.scalyr.com/keys](https://www.scalyr.com/keys)). (optional) * @param string $project_id The name of the logfile within Scalyr. (optional, default to 'logplex') @@ -1878,9 +1878,9 @@ public function updateLogScalyrRequest($options) $logging_scalyr_name = array_key_exists('logging_scalyr_name', $options) ? $options['logging_scalyr_name'] : null; $name = array_key_exists('name', $options) ? $options['name'] : null; $placement = array_key_exists('placement', $options) ? $options['placement'] : null; - $format_version = array_key_exists('format_version', $options) ? $options['format_version'] : self::FORMAT_VERSION_v2; $response_condition = array_key_exists('response_condition', $options) ? $options['response_condition'] : null; $format = array_key_exists('format', $options) ? $options['format'] : '%h %l %u %t "%r" %>s %b'; + $format_version = array_key_exists('format_version', $options) ? $options['format_version'] : self::FORMAT_VERSION_v2; $region = array_key_exists('region', $options) ? $options['region'] : 'US'; $token = array_key_exists('token', $options) ? $options['token'] : null; $project_id = array_key_exists('project_id', $options) ? $options['project_id'] : 'logplex'; @@ -1947,10 +1947,6 @@ public function updateLogScalyrRequest($options) $formParams['placement'] = ObjectSerializer::toFormValue($placement); } // form params - if ($format_version !== null) { - $formParams['format_version'] = ObjectSerializer::toFormValue($format_version); - } - // form params if ($response_condition !== null) { $formParams['response_condition'] = ObjectSerializer::toFormValue($response_condition); } @@ -1959,6 +1955,10 @@ public function updateLogScalyrRequest($options) $formParams['format'] = ObjectSerializer::toFormValue($format); } // form params + if ($format_version !== null) { + $formParams['format_version'] = ObjectSerializer::toFormValue($format_version); + } + // form params if ($region !== null) { $formParams['region'] = ObjectSerializer::toFormValue($region); } diff --git a/lib/Api/LoggingSftpApi.php b/lib/Api/LoggingSftpApi.php index 93ebf959..5afe204f 100644 --- a/lib/Api/LoggingSftpApi.php +++ b/lib/Api/LoggingSftpApi.php @@ -123,14 +123,14 @@ public function getConfig() * @param int $version_id Integer identifying a service version. (required) * @param string $name The name for the real-time logging configuration. (optional) * @param string $placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. (optional) - * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. (optional) * @param string $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). (optional, default to '%h %l %u %t "%r" %>s %b') + * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $message_type How the message should be formatted. (optional, default to 'classic') * @param string $timestamp_format A timestamp format (optional) + * @param string $compression_codec The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. (optional) * @param int $period How frequently log files are finalized so they can be available for reading (in seconds). (optional, default to 3600) * @param int $gzip_level The level of gzip encoding when sending logs (default `0`, no compression). Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. (optional, default to 0) - * @param string $compression_codec The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. (optional) * @param string $address A hostname or IPv4 address. (optional) * @param int $port The port number. (optional, default to 22) * @param string $password The password for the server. If both `password` and `secret_key` are passed, `secret_key` will be used in preference. (optional) @@ -164,14 +164,14 @@ public function createLogSftp($options) * @param int $version_id Integer identifying a service version. (required) * @param string $name The name for the real-time logging configuration. (optional) * @param string $placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. (optional) - * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. (optional) * @param string $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). (optional, default to '%h %l %u %t "%r" %>s %b') + * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $message_type How the message should be formatted. (optional, default to 'classic') * @param string $timestamp_format A timestamp format (optional) + * @param string $compression_codec The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. (optional) * @param int $period How frequently log files are finalized so they can be available for reading (in seconds). (optional, default to 3600) * @param int $gzip_level The level of gzip encoding when sending logs (default `0`, no compression). Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. (optional, default to 0) - * @param string $compression_codec The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. (optional) * @param string $address A hostname or IPv4 address. (optional) * @param int $port The port number. (optional, default to 22) * @param string $password The password for the server. If both `password` and `secret_key` are passed, `secret_key` will be used in preference. (optional) @@ -293,14 +293,14 @@ public function createLogSftpWithHttpInfo($options) * @param int $version_id Integer identifying a service version. (required) * @param string $name The name for the real-time logging configuration. (optional) * @param string $placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. (optional) - * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. (optional) * @param string $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). (optional, default to '%h %l %u %t "%r" %>s %b') + * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $message_type How the message should be formatted. (optional, default to 'classic') * @param string $timestamp_format A timestamp format (optional) + * @param string $compression_codec The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. (optional) * @param int $period How frequently log files are finalized so they can be available for reading (in seconds). (optional, default to 3600) * @param int $gzip_level The level of gzip encoding when sending logs (default `0`, no compression). Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. (optional, default to 0) - * @param string $compression_codec The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. (optional) * @param string $address A hostname or IPv4 address. (optional) * @param int $port The port number. (optional, default to 22) * @param string $password The password for the server. If both `password` and `secret_key` are passed, `secret_key` will be used in preference. (optional) @@ -337,14 +337,14 @@ function ($response) { * @param int $version_id Integer identifying a service version. (required) * @param string $name The name for the real-time logging configuration. (optional) * @param string $placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. (optional) - * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. (optional) * @param string $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). (optional, default to '%h %l %u %t "%r" %>s %b') + * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $message_type How the message should be formatted. (optional, default to 'classic') * @param string $timestamp_format A timestamp format (optional) + * @param string $compression_codec The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. (optional) * @param int $period How frequently log files are finalized so they can be available for reading (in seconds). (optional, default to 3600) * @param int $gzip_level The level of gzip encoding when sending logs (default `0`, no compression). Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. (optional, default to 0) - * @param string $compression_codec The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. (optional) * @param string $address A hostname or IPv4 address. (optional) * @param int $port The port number. (optional, default to 22) * @param string $password The password for the server. If both `password` and `secret_key` are passed, `secret_key` will be used in preference. (optional) @@ -407,14 +407,14 @@ function ($exception) { * @param int $version_id Integer identifying a service version. (required) * @param string $name The name for the real-time logging configuration. (optional) * @param string $placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. (optional) - * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. (optional) * @param string $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). (optional, default to '%h %l %u %t "%r" %>s %b') + * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $message_type How the message should be formatted. (optional, default to 'classic') * @param string $timestamp_format A timestamp format (optional) + * @param string $compression_codec The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. (optional) * @param int $period How frequently log files are finalized so they can be available for reading (in seconds). (optional, default to 3600) * @param int $gzip_level The level of gzip encoding when sending logs (default `0`, no compression). Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. (optional, default to 0) - * @param string $compression_codec The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. (optional) * @param string $address A hostname or IPv4 address. (optional) * @param int $port The port number. (optional, default to 22) * @param string $password The password for the server. If both `password` and `secret_key` are passed, `secret_key` will be used in preference. (optional) @@ -434,14 +434,14 @@ public function createLogSftpRequest($options) $version_id = array_key_exists('version_id', $options) ? $options['version_id'] : null; $name = array_key_exists('name', $options) ? $options['name'] : null; $placement = array_key_exists('placement', $options) ? $options['placement'] : null; - $format_version = array_key_exists('format_version', $options) ? $options['format_version'] : self::FORMAT_VERSION_v2; $response_condition = array_key_exists('response_condition', $options) ? $options['response_condition'] : null; $format = array_key_exists('format', $options) ? $options['format'] : '%h %l %u %t "%r" %>s %b'; + $format_version = array_key_exists('format_version', $options) ? $options['format_version'] : self::FORMAT_VERSION_v2; $message_type = array_key_exists('message_type', $options) ? $options['message_type'] : 'classic'; $timestamp_format = array_key_exists('timestamp_format', $options) ? $options['timestamp_format'] : null; + $compression_codec = array_key_exists('compression_codec', $options) ? $options['compression_codec'] : null; $period = array_key_exists('period', $options) ? $options['period'] : 3600; $gzip_level = array_key_exists('gzip_level', $options) ? $options['gzip_level'] : 0; - $compression_codec = array_key_exists('compression_codec', $options) ? $options['compression_codec'] : null; $address = array_key_exists('address', $options) ? $options['address'] : null; $port = array_key_exists('port', $options) ? $options['port'] : 22; $password = array_key_exists('password', $options) ? $options['password'] : null; @@ -499,10 +499,6 @@ public function createLogSftpRequest($options) $formParams['placement'] = ObjectSerializer::toFormValue($placement); } // form params - if ($format_version !== null) { - $formParams['format_version'] = ObjectSerializer::toFormValue($format_version); - } - // form params if ($response_condition !== null) { $formParams['response_condition'] = ObjectSerializer::toFormValue($response_condition); } @@ -511,6 +507,10 @@ public function createLogSftpRequest($options) $formParams['format'] = ObjectSerializer::toFormValue($format); } // form params + if ($format_version !== null) { + $formParams['format_version'] = ObjectSerializer::toFormValue($format_version); + } + // form params if ($message_type !== null) { $formParams['message_type'] = ObjectSerializer::toFormValue($message_type); } @@ -519,6 +519,10 @@ public function createLogSftpRequest($options) $formParams['timestamp_format'] = ObjectSerializer::toFormValue($timestamp_format); } // form params + if ($compression_codec !== null) { + $formParams['compression_codec'] = ObjectSerializer::toFormValue($compression_codec); + } + // form params if ($period !== null) { $formParams['period'] = ObjectSerializer::toFormValue($period); } @@ -527,10 +531,6 @@ public function createLogSftpRequest($options) $formParams['gzip_level'] = ObjectSerializer::toFormValue($gzip_level); } // form params - if ($compression_codec !== null) { - $formParams['compression_codec'] = ObjectSerializer::toFormValue($compression_codec); - } - // form params if ($address !== null) { $formParams['address'] = ObjectSerializer::toFormValue($address); } @@ -1712,14 +1712,14 @@ public function listLogSftpRequest($options) * @param string $logging_sftp_name The name for the real-time logging configuration. (required) * @param string $name The name for the real-time logging configuration. (optional) * @param string $placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. (optional) - * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. (optional) * @param string $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). (optional, default to '%h %l %u %t "%r" %>s %b') + * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $message_type How the message should be formatted. (optional, default to 'classic') * @param string $timestamp_format A timestamp format (optional) + * @param string $compression_codec The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. (optional) * @param int $period How frequently log files are finalized so they can be available for reading (in seconds). (optional, default to 3600) * @param int $gzip_level The level of gzip encoding when sending logs (default `0`, no compression). Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. (optional, default to 0) - * @param string $compression_codec The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. (optional) * @param string $address A hostname or IPv4 address. (optional) * @param int $port The port number. (optional, default to 22) * @param string $password The password for the server. If both `password` and `secret_key` are passed, `secret_key` will be used in preference. (optional) @@ -1754,14 +1754,14 @@ public function updateLogSftp($options) * @param string $logging_sftp_name The name for the real-time logging configuration. (required) * @param string $name The name for the real-time logging configuration. (optional) * @param string $placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. (optional) - * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. (optional) * @param string $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). (optional, default to '%h %l %u %t "%r" %>s %b') + * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $message_type How the message should be formatted. (optional, default to 'classic') * @param string $timestamp_format A timestamp format (optional) + * @param string $compression_codec The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. (optional) * @param int $period How frequently log files are finalized so they can be available for reading (in seconds). (optional, default to 3600) * @param int $gzip_level The level of gzip encoding when sending logs (default `0`, no compression). Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. (optional, default to 0) - * @param string $compression_codec The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. (optional) * @param string $address A hostname or IPv4 address. (optional) * @param int $port The port number. (optional, default to 22) * @param string $password The password for the server. If both `password` and `secret_key` are passed, `secret_key` will be used in preference. (optional) @@ -1884,14 +1884,14 @@ public function updateLogSftpWithHttpInfo($options) * @param string $logging_sftp_name The name for the real-time logging configuration. (required) * @param string $name The name for the real-time logging configuration. (optional) * @param string $placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. (optional) - * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. (optional) * @param string $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). (optional, default to '%h %l %u %t "%r" %>s %b') + * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $message_type How the message should be formatted. (optional, default to 'classic') * @param string $timestamp_format A timestamp format (optional) + * @param string $compression_codec The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. (optional) * @param int $period How frequently log files are finalized so they can be available for reading (in seconds). (optional, default to 3600) * @param int $gzip_level The level of gzip encoding when sending logs (default `0`, no compression). Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. (optional, default to 0) - * @param string $compression_codec The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. (optional) * @param string $address A hostname or IPv4 address. (optional) * @param int $port The port number. (optional, default to 22) * @param string $password The password for the server. If both `password` and `secret_key` are passed, `secret_key` will be used in preference. (optional) @@ -1929,14 +1929,14 @@ function ($response) { * @param string $logging_sftp_name The name for the real-time logging configuration. (required) * @param string $name The name for the real-time logging configuration. (optional) * @param string $placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. (optional) - * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. (optional) * @param string $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). (optional, default to '%h %l %u %t "%r" %>s %b') + * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $message_type How the message should be formatted. (optional, default to 'classic') * @param string $timestamp_format A timestamp format (optional) + * @param string $compression_codec The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. (optional) * @param int $period How frequently log files are finalized so they can be available for reading (in seconds). (optional, default to 3600) * @param int $gzip_level The level of gzip encoding when sending logs (default `0`, no compression). Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. (optional, default to 0) - * @param string $compression_codec The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. (optional) * @param string $address A hostname or IPv4 address. (optional) * @param int $port The port number. (optional, default to 22) * @param string $password The password for the server. If both `password` and `secret_key` are passed, `secret_key` will be used in preference. (optional) @@ -2000,14 +2000,14 @@ function ($exception) { * @param string $logging_sftp_name The name for the real-time logging configuration. (required) * @param string $name The name for the real-time logging configuration. (optional) * @param string $placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. (optional) - * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. (optional) * @param string $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). (optional, default to '%h %l %u %t "%r" %>s %b') + * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $message_type How the message should be formatted. (optional, default to 'classic') * @param string $timestamp_format A timestamp format (optional) + * @param string $compression_codec The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. (optional) * @param int $period How frequently log files are finalized so they can be available for reading (in seconds). (optional, default to 3600) * @param int $gzip_level The level of gzip encoding when sending logs (default `0`, no compression). Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. (optional, default to 0) - * @param string $compression_codec The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. (optional) * @param string $address A hostname or IPv4 address. (optional) * @param int $port The port number. (optional, default to 22) * @param string $password The password for the server. If both `password` and `secret_key` are passed, `secret_key` will be used in preference. (optional) @@ -2028,14 +2028,14 @@ public function updateLogSftpRequest($options) $logging_sftp_name = array_key_exists('logging_sftp_name', $options) ? $options['logging_sftp_name'] : null; $name = array_key_exists('name', $options) ? $options['name'] : null; $placement = array_key_exists('placement', $options) ? $options['placement'] : null; - $format_version = array_key_exists('format_version', $options) ? $options['format_version'] : self::FORMAT_VERSION_v2; $response_condition = array_key_exists('response_condition', $options) ? $options['response_condition'] : null; $format = array_key_exists('format', $options) ? $options['format'] : '%h %l %u %t "%r" %>s %b'; + $format_version = array_key_exists('format_version', $options) ? $options['format_version'] : self::FORMAT_VERSION_v2; $message_type = array_key_exists('message_type', $options) ? $options['message_type'] : 'classic'; $timestamp_format = array_key_exists('timestamp_format', $options) ? $options['timestamp_format'] : null; + $compression_codec = array_key_exists('compression_codec', $options) ? $options['compression_codec'] : null; $period = array_key_exists('period', $options) ? $options['period'] : 3600; $gzip_level = array_key_exists('gzip_level', $options) ? $options['gzip_level'] : 0; - $compression_codec = array_key_exists('compression_codec', $options) ? $options['compression_codec'] : null; $address = array_key_exists('address', $options) ? $options['address'] : null; $port = array_key_exists('port', $options) ? $options['port'] : 22; $password = array_key_exists('password', $options) ? $options['password'] : null; @@ -2107,10 +2107,6 @@ public function updateLogSftpRequest($options) $formParams['placement'] = ObjectSerializer::toFormValue($placement); } // form params - if ($format_version !== null) { - $formParams['format_version'] = ObjectSerializer::toFormValue($format_version); - } - // form params if ($response_condition !== null) { $formParams['response_condition'] = ObjectSerializer::toFormValue($response_condition); } @@ -2119,6 +2115,10 @@ public function updateLogSftpRequest($options) $formParams['format'] = ObjectSerializer::toFormValue($format); } // form params + if ($format_version !== null) { + $formParams['format_version'] = ObjectSerializer::toFormValue($format_version); + } + // form params if ($message_type !== null) { $formParams['message_type'] = ObjectSerializer::toFormValue($message_type); } @@ -2127,6 +2127,10 @@ public function updateLogSftpRequest($options) $formParams['timestamp_format'] = ObjectSerializer::toFormValue($timestamp_format); } // form params + if ($compression_codec !== null) { + $formParams['compression_codec'] = ObjectSerializer::toFormValue($compression_codec); + } + // form params if ($period !== null) { $formParams['period'] = ObjectSerializer::toFormValue($period); } @@ -2135,10 +2139,6 @@ public function updateLogSftpRequest($options) $formParams['gzip_level'] = ObjectSerializer::toFormValue($gzip_level); } // form params - if ($compression_codec !== null) { - $formParams['compression_codec'] = ObjectSerializer::toFormValue($compression_codec); - } - // form params if ($address !== null) { $formParams['address'] = ObjectSerializer::toFormValue($address); } diff --git a/lib/Api/LoggingSplunkApi.php b/lib/Api/LoggingSplunkApi.php index b19d7c4c..c6d7fbdc 100644 --- a/lib/Api/LoggingSplunkApi.php +++ b/lib/Api/LoggingSplunkApi.php @@ -123,9 +123,9 @@ public function getConfig() * @param int $version_id Integer identifying a service version. (required) * @param string $name The name for the real-time logging configuration. (optional) * @param string $placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. (optional) - * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. (optional) * @param string $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). (optional, default to '%h %l %u %t "%r" %>s %b') + * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $tls_ca_cert A secure certificate to authenticate a server with. Must be in PEM format. (optional, default to 'null') * @param string $tls_client_cert The client certificate used to make authenticated requests. Must be in PEM format. (optional, default to 'null') * @param string $tls_client_key The client private key used to make authenticated requests. Must be in PEM format. (optional, default to 'null') @@ -160,9 +160,9 @@ public function createLogSplunk($options) * @param int $version_id Integer identifying a service version. (required) * @param string $name The name for the real-time logging configuration. (optional) * @param string $placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. (optional) - * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. (optional) * @param string $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). (optional, default to '%h %l %u %t "%r" %>s %b') + * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $tls_ca_cert A secure certificate to authenticate a server with. Must be in PEM format. (optional, default to 'null') * @param string $tls_client_cert The client certificate used to make authenticated requests. Must be in PEM format. (optional, default to 'null') * @param string $tls_client_key The client private key used to make authenticated requests. Must be in PEM format. (optional, default to 'null') @@ -285,9 +285,9 @@ public function createLogSplunkWithHttpInfo($options) * @param int $version_id Integer identifying a service version. (required) * @param string $name The name for the real-time logging configuration. (optional) * @param string $placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. (optional) - * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. (optional) * @param string $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). (optional, default to '%h %l %u %t "%r" %>s %b') + * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $tls_ca_cert A secure certificate to authenticate a server with. Must be in PEM format. (optional, default to 'null') * @param string $tls_client_cert The client certificate used to make authenticated requests. Must be in PEM format. (optional, default to 'null') * @param string $tls_client_key The client private key used to make authenticated requests. Must be in PEM format. (optional, default to 'null') @@ -325,9 +325,9 @@ function ($response) { * @param int $version_id Integer identifying a service version. (required) * @param string $name The name for the real-time logging configuration. (optional) * @param string $placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. (optional) - * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. (optional) * @param string $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). (optional, default to '%h %l %u %t "%r" %>s %b') + * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $tls_ca_cert A secure certificate to authenticate a server with. Must be in PEM format. (optional, default to 'null') * @param string $tls_client_cert The client certificate used to make authenticated requests. Must be in PEM format. (optional, default to 'null') * @param string $tls_client_key The client private key used to make authenticated requests. Must be in PEM format. (optional, default to 'null') @@ -391,9 +391,9 @@ function ($exception) { * @param int $version_id Integer identifying a service version. (required) * @param string $name The name for the real-time logging configuration. (optional) * @param string $placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. (optional) - * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. (optional) * @param string $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). (optional, default to '%h %l %u %t "%r" %>s %b') + * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $tls_ca_cert A secure certificate to authenticate a server with. Must be in PEM format. (optional, default to 'null') * @param string $tls_client_cert The client certificate used to make authenticated requests. Must be in PEM format. (optional, default to 'null') * @param string $tls_client_key The client private key used to make authenticated requests. Must be in PEM format. (optional, default to 'null') @@ -414,9 +414,9 @@ public function createLogSplunkRequest($options) $version_id = array_key_exists('version_id', $options) ? $options['version_id'] : null; $name = array_key_exists('name', $options) ? $options['name'] : null; $placement = array_key_exists('placement', $options) ? $options['placement'] : null; - $format_version = array_key_exists('format_version', $options) ? $options['format_version'] : self::FORMAT_VERSION_v2; $response_condition = array_key_exists('response_condition', $options) ? $options['response_condition'] : null; $format = array_key_exists('format', $options) ? $options['format'] : '%h %l %u %t "%r" %>s %b'; + $format_version = array_key_exists('format_version', $options) ? $options['format_version'] : self::FORMAT_VERSION_v2; $tls_ca_cert = array_key_exists('tls_ca_cert', $options) ? $options['tls_ca_cert'] : 'null'; $tls_client_cert = array_key_exists('tls_client_cert', $options) ? $options['tls_client_cert'] : 'null'; $tls_client_key = array_key_exists('tls_client_key', $options) ? $options['tls_client_key'] : 'null'; @@ -475,10 +475,6 @@ public function createLogSplunkRequest($options) $formParams['placement'] = ObjectSerializer::toFormValue($placement); } // form params - if ($format_version !== null) { - $formParams['format_version'] = ObjectSerializer::toFormValue($format_version); - } - // form params if ($response_condition !== null) { $formParams['response_condition'] = ObjectSerializer::toFormValue($response_condition); } @@ -487,6 +483,10 @@ public function createLogSplunkRequest($options) $formParams['format'] = ObjectSerializer::toFormValue($format); } // form params + if ($format_version !== null) { + $formParams['format_version'] = ObjectSerializer::toFormValue($format_version); + } + // form params if ($tls_ca_cert !== null) { $formParams['tls_ca_cert'] = ObjectSerializer::toFormValue($tls_ca_cert); } @@ -1672,9 +1672,9 @@ public function listLogSplunkRequest($options) * @param string $logging_splunk_name The name for the real-time logging configuration. (required) * @param string $name The name for the real-time logging configuration. (optional) * @param string $placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. (optional) - * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. (optional) * @param string $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). (optional, default to '%h %l %u %t "%r" %>s %b') + * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $tls_ca_cert A secure certificate to authenticate a server with. Must be in PEM format. (optional, default to 'null') * @param string $tls_client_cert The client certificate used to make authenticated requests. Must be in PEM format. (optional, default to 'null') * @param string $tls_client_key The client private key used to make authenticated requests. Must be in PEM format. (optional, default to 'null') @@ -1710,9 +1710,9 @@ public function updateLogSplunk($options) * @param string $logging_splunk_name The name for the real-time logging configuration. (required) * @param string $name The name for the real-time logging configuration. (optional) * @param string $placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. (optional) - * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. (optional) * @param string $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). (optional, default to '%h %l %u %t "%r" %>s %b') + * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $tls_ca_cert A secure certificate to authenticate a server with. Must be in PEM format. (optional, default to 'null') * @param string $tls_client_cert The client certificate used to make authenticated requests. Must be in PEM format. (optional, default to 'null') * @param string $tls_client_key The client private key used to make authenticated requests. Must be in PEM format. (optional, default to 'null') @@ -1836,9 +1836,9 @@ public function updateLogSplunkWithHttpInfo($options) * @param string $logging_splunk_name The name for the real-time logging configuration. (required) * @param string $name The name for the real-time logging configuration. (optional) * @param string $placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. (optional) - * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. (optional) * @param string $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). (optional, default to '%h %l %u %t "%r" %>s %b') + * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $tls_ca_cert A secure certificate to authenticate a server with. Must be in PEM format. (optional, default to 'null') * @param string $tls_client_cert The client certificate used to make authenticated requests. Must be in PEM format. (optional, default to 'null') * @param string $tls_client_key The client private key used to make authenticated requests. Must be in PEM format. (optional, default to 'null') @@ -1877,9 +1877,9 @@ function ($response) { * @param string $logging_splunk_name The name for the real-time logging configuration. (required) * @param string $name The name for the real-time logging configuration. (optional) * @param string $placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. (optional) - * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. (optional) * @param string $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). (optional, default to '%h %l %u %t "%r" %>s %b') + * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $tls_ca_cert A secure certificate to authenticate a server with. Must be in PEM format. (optional, default to 'null') * @param string $tls_client_cert The client certificate used to make authenticated requests. Must be in PEM format. (optional, default to 'null') * @param string $tls_client_key The client private key used to make authenticated requests. Must be in PEM format. (optional, default to 'null') @@ -1944,9 +1944,9 @@ function ($exception) { * @param string $logging_splunk_name The name for the real-time logging configuration. (required) * @param string $name The name for the real-time logging configuration. (optional) * @param string $placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. (optional) - * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. (optional) * @param string $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). (optional, default to '%h %l %u %t "%r" %>s %b') + * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $tls_ca_cert A secure certificate to authenticate a server with. Must be in PEM format. (optional, default to 'null') * @param string $tls_client_cert The client certificate used to make authenticated requests. Must be in PEM format. (optional, default to 'null') * @param string $tls_client_key The client private key used to make authenticated requests. Must be in PEM format. (optional, default to 'null') @@ -1968,9 +1968,9 @@ public function updateLogSplunkRequest($options) $logging_splunk_name = array_key_exists('logging_splunk_name', $options) ? $options['logging_splunk_name'] : null; $name = array_key_exists('name', $options) ? $options['name'] : null; $placement = array_key_exists('placement', $options) ? $options['placement'] : null; - $format_version = array_key_exists('format_version', $options) ? $options['format_version'] : self::FORMAT_VERSION_v2; $response_condition = array_key_exists('response_condition', $options) ? $options['response_condition'] : null; $format = array_key_exists('format', $options) ? $options['format'] : '%h %l %u %t "%r" %>s %b'; + $format_version = array_key_exists('format_version', $options) ? $options['format_version'] : self::FORMAT_VERSION_v2; $tls_ca_cert = array_key_exists('tls_ca_cert', $options) ? $options['tls_ca_cert'] : 'null'; $tls_client_cert = array_key_exists('tls_client_cert', $options) ? $options['tls_client_cert'] : 'null'; $tls_client_key = array_key_exists('tls_client_key', $options) ? $options['tls_client_key'] : 'null'; @@ -2043,10 +2043,6 @@ public function updateLogSplunkRequest($options) $formParams['placement'] = ObjectSerializer::toFormValue($placement); } // form params - if ($format_version !== null) { - $formParams['format_version'] = ObjectSerializer::toFormValue($format_version); - } - // form params if ($response_condition !== null) { $formParams['response_condition'] = ObjectSerializer::toFormValue($response_condition); } @@ -2055,6 +2051,10 @@ public function updateLogSplunkRequest($options) $formParams['format'] = ObjectSerializer::toFormValue($format); } // form params + if ($format_version !== null) { + $formParams['format_version'] = ObjectSerializer::toFormValue($format_version); + } + // form params if ($tls_ca_cert !== null) { $formParams['tls_ca_cert'] = ObjectSerializer::toFormValue($tls_ca_cert); } diff --git a/lib/Api/LoggingSumologicApi.php b/lib/Api/LoggingSumologicApi.php index 6e40de89..1088b216 100644 --- a/lib/Api/LoggingSumologicApi.php +++ b/lib/Api/LoggingSumologicApi.php @@ -123,9 +123,9 @@ public function getConfig() * @param int $version_id Integer identifying a service version. (required) * @param string $name The name for the real-time logging configuration. (optional) * @param string $placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. (optional) - * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. (optional) * @param string $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). (optional, default to '%h %l %u %t "%r" %>s %b') + * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param \Fastly\Model\LoggingMessageType $message_type message_type (optional) * @param string $url The URL to post logs to. (optional) * @@ -153,9 +153,9 @@ public function createLogSumologic($options) * @param int $version_id Integer identifying a service version. (required) * @param string $name The name for the real-time logging configuration. (optional) * @param string $placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. (optional) - * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. (optional) * @param string $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). (optional, default to '%h %l %u %t "%r" %>s %b') + * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param \Fastly\Model\LoggingMessageType $message_type (optional) * @param string $url The URL to post logs to. (optional) * @@ -271,9 +271,9 @@ public function createLogSumologicWithHttpInfo($options) * @param int $version_id Integer identifying a service version. (required) * @param string $name The name for the real-time logging configuration. (optional) * @param string $placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. (optional) - * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. (optional) * @param string $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). (optional, default to '%h %l %u %t "%r" %>s %b') + * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param \Fastly\Model\LoggingMessageType $message_type (optional) * @param string $url The URL to post logs to. (optional) * @@ -304,9 +304,9 @@ function ($response) { * @param int $version_id Integer identifying a service version. (required) * @param string $name The name for the real-time logging configuration. (optional) * @param string $placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. (optional) - * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. (optional) * @param string $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). (optional, default to '%h %l %u %t "%r" %>s %b') + * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param \Fastly\Model\LoggingMessageType $message_type (optional) * @param string $url The URL to post logs to. (optional) * @@ -363,9 +363,9 @@ function ($exception) { * @param int $version_id Integer identifying a service version. (required) * @param string $name The name for the real-time logging configuration. (optional) * @param string $placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. (optional) - * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. (optional) * @param string $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). (optional, default to '%h %l %u %t "%r" %>s %b') + * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param \Fastly\Model\LoggingMessageType $message_type (optional) * @param string $url The URL to post logs to. (optional) * @@ -379,9 +379,9 @@ public function createLogSumologicRequest($options) $version_id = array_key_exists('version_id', $options) ? $options['version_id'] : null; $name = array_key_exists('name', $options) ? $options['name'] : null; $placement = array_key_exists('placement', $options) ? $options['placement'] : null; - $format_version = array_key_exists('format_version', $options) ? $options['format_version'] : self::FORMAT_VERSION_v2; $response_condition = array_key_exists('response_condition', $options) ? $options['response_condition'] : null; $format = array_key_exists('format', $options) ? $options['format'] : '%h %l %u %t "%r" %>s %b'; + $format_version = array_key_exists('format_version', $options) ? $options['format_version'] : self::FORMAT_VERSION_v2; $message_type = array_key_exists('message_type', $options) ? $options['message_type'] : null; $url = array_key_exists('url', $options) ? $options['url'] : null; @@ -433,10 +433,6 @@ public function createLogSumologicRequest($options) $formParams['placement'] = ObjectSerializer::toFormValue($placement); } // form params - if ($format_version !== null) { - $formParams['format_version'] = ObjectSerializer::toFormValue($format_version); - } - // form params if ($response_condition !== null) { $formParams['response_condition'] = ObjectSerializer::toFormValue($response_condition); } @@ -445,6 +441,10 @@ public function createLogSumologicRequest($options) $formParams['format'] = ObjectSerializer::toFormValue($format); } // form params + if ($format_version !== null) { + $formParams['format_version'] = ObjectSerializer::toFormValue($format_version); + } + // form params if ($message_type !== null) { $formParams['message_type'] = ObjectSerializer::toFormValue($message_type); } @@ -1602,9 +1602,9 @@ public function listLogSumologicRequest($options) * @param string $logging_sumologic_name The name for the real-time logging configuration. (required) * @param string $name The name for the real-time logging configuration. (optional) * @param string $placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. (optional) - * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. (optional) * @param string $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). (optional, default to '%h %l %u %t "%r" %>s %b') + * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param \Fastly\Model\LoggingMessageType $message_type message_type (optional) * @param string $url The URL to post logs to. (optional) * @@ -1633,9 +1633,9 @@ public function updateLogSumologic($options) * @param string $logging_sumologic_name The name for the real-time logging configuration. (required) * @param string $name The name for the real-time logging configuration. (optional) * @param string $placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. (optional) - * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. (optional) * @param string $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). (optional, default to '%h %l %u %t "%r" %>s %b') + * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param \Fastly\Model\LoggingMessageType $message_type (optional) * @param string $url The URL to post logs to. (optional) * @@ -1752,9 +1752,9 @@ public function updateLogSumologicWithHttpInfo($options) * @param string $logging_sumologic_name The name for the real-time logging configuration. (required) * @param string $name The name for the real-time logging configuration. (optional) * @param string $placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. (optional) - * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. (optional) * @param string $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). (optional, default to '%h %l %u %t "%r" %>s %b') + * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param \Fastly\Model\LoggingMessageType $message_type (optional) * @param string $url The URL to post logs to. (optional) * @@ -1786,9 +1786,9 @@ function ($response) { * @param string $logging_sumologic_name The name for the real-time logging configuration. (required) * @param string $name The name for the real-time logging configuration. (optional) * @param string $placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. (optional) - * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. (optional) * @param string $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). (optional, default to '%h %l %u %t "%r" %>s %b') + * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param \Fastly\Model\LoggingMessageType $message_type (optional) * @param string $url The URL to post logs to. (optional) * @@ -1846,9 +1846,9 @@ function ($exception) { * @param string $logging_sumologic_name The name for the real-time logging configuration. (required) * @param string $name The name for the real-time logging configuration. (optional) * @param string $placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. (optional) - * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. (optional) * @param string $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). (optional, default to '%h %l %u %t "%r" %>s %b') + * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param \Fastly\Model\LoggingMessageType $message_type (optional) * @param string $url The URL to post logs to. (optional) * @@ -1863,9 +1863,9 @@ public function updateLogSumologicRequest($options) $logging_sumologic_name = array_key_exists('logging_sumologic_name', $options) ? $options['logging_sumologic_name'] : null; $name = array_key_exists('name', $options) ? $options['name'] : null; $placement = array_key_exists('placement', $options) ? $options['placement'] : null; - $format_version = array_key_exists('format_version', $options) ? $options['format_version'] : self::FORMAT_VERSION_v2; $response_condition = array_key_exists('response_condition', $options) ? $options['response_condition'] : null; $format = array_key_exists('format', $options) ? $options['format'] : '%h %l %u %t "%r" %>s %b'; + $format_version = array_key_exists('format_version', $options) ? $options['format_version'] : self::FORMAT_VERSION_v2; $message_type = array_key_exists('message_type', $options) ? $options['message_type'] : null; $url = array_key_exists('url', $options) ? $options['url'] : null; @@ -1931,10 +1931,6 @@ public function updateLogSumologicRequest($options) $formParams['placement'] = ObjectSerializer::toFormValue($placement); } // form params - if ($format_version !== null) { - $formParams['format_version'] = ObjectSerializer::toFormValue($format_version); - } - // form params if ($response_condition !== null) { $formParams['response_condition'] = ObjectSerializer::toFormValue($response_condition); } @@ -1943,6 +1939,10 @@ public function updateLogSumologicRequest($options) $formParams['format'] = ObjectSerializer::toFormValue($format); } // form params + if ($format_version !== null) { + $formParams['format_version'] = ObjectSerializer::toFormValue($format_version); + } + // form params if ($message_type !== null) { $formParams['message_type'] = ObjectSerializer::toFormValue($message_type); } diff --git a/lib/Api/LoggingSyslogApi.php b/lib/Api/LoggingSyslogApi.php index eeba9e4a..6cc17c2f 100644 --- a/lib/Api/LoggingSyslogApi.php +++ b/lib/Api/LoggingSyslogApi.php @@ -123,9 +123,9 @@ public function getConfig() * @param int $version_id Integer identifying a service version. (required) * @param string $name The name for the real-time logging configuration. (optional) * @param string $placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. (optional) - * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. (optional) * @param string $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). (optional, default to '%h %l %u %t "%r" %>s %b') + * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $tls_ca_cert A secure certificate to authenticate a server with. Must be in PEM format. (optional, default to 'null') * @param string $tls_client_cert The client certificate used to make authenticated requests. Must be in PEM format. (optional, default to 'null') * @param string $tls_client_key The client private key used to make authenticated requests. Must be in PEM format. (optional, default to 'null') @@ -162,9 +162,9 @@ public function createLogSyslog($options) * @param int $version_id Integer identifying a service version. (required) * @param string $name The name for the real-time logging configuration. (optional) * @param string $placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. (optional) - * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. (optional) * @param string $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). (optional, default to '%h %l %u %t "%r" %>s %b') + * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $tls_ca_cert A secure certificate to authenticate a server with. Must be in PEM format. (optional, default to 'null') * @param string $tls_client_cert The client certificate used to make authenticated requests. Must be in PEM format. (optional, default to 'null') * @param string $tls_client_key The client private key used to make authenticated requests. Must be in PEM format. (optional, default to 'null') @@ -289,9 +289,9 @@ public function createLogSyslogWithHttpInfo($options) * @param int $version_id Integer identifying a service version. (required) * @param string $name The name for the real-time logging configuration. (optional) * @param string $placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. (optional) - * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. (optional) * @param string $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). (optional, default to '%h %l %u %t "%r" %>s %b') + * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $tls_ca_cert A secure certificate to authenticate a server with. Must be in PEM format. (optional, default to 'null') * @param string $tls_client_cert The client certificate used to make authenticated requests. Must be in PEM format. (optional, default to 'null') * @param string $tls_client_key The client private key used to make authenticated requests. Must be in PEM format. (optional, default to 'null') @@ -331,9 +331,9 @@ function ($response) { * @param int $version_id Integer identifying a service version. (required) * @param string $name The name for the real-time logging configuration. (optional) * @param string $placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. (optional) - * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. (optional) * @param string $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). (optional, default to '%h %l %u %t "%r" %>s %b') + * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $tls_ca_cert A secure certificate to authenticate a server with. Must be in PEM format. (optional, default to 'null') * @param string $tls_client_cert The client certificate used to make authenticated requests. Must be in PEM format. (optional, default to 'null') * @param string $tls_client_key The client private key used to make authenticated requests. Must be in PEM format. (optional, default to 'null') @@ -399,9 +399,9 @@ function ($exception) { * @param int $version_id Integer identifying a service version. (required) * @param string $name The name for the real-time logging configuration. (optional) * @param string $placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. (optional) - * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. (optional) * @param string $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). (optional, default to '%h %l %u %t "%r" %>s %b') + * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $tls_ca_cert A secure certificate to authenticate a server with. Must be in PEM format. (optional, default to 'null') * @param string $tls_client_cert The client certificate used to make authenticated requests. Must be in PEM format. (optional, default to 'null') * @param string $tls_client_key The client private key used to make authenticated requests. Must be in PEM format. (optional, default to 'null') @@ -424,9 +424,9 @@ public function createLogSyslogRequest($options) $version_id = array_key_exists('version_id', $options) ? $options['version_id'] : null; $name = array_key_exists('name', $options) ? $options['name'] : null; $placement = array_key_exists('placement', $options) ? $options['placement'] : null; - $format_version = array_key_exists('format_version', $options) ? $options['format_version'] : self::FORMAT_VERSION_v2; $response_condition = array_key_exists('response_condition', $options) ? $options['response_condition'] : null; $format = array_key_exists('format', $options) ? $options['format'] : '%h %l %u %t "%r" %>s %b'; + $format_version = array_key_exists('format_version', $options) ? $options['format_version'] : self::FORMAT_VERSION_v2; $tls_ca_cert = array_key_exists('tls_ca_cert', $options) ? $options['tls_ca_cert'] : 'null'; $tls_client_cert = array_key_exists('tls_client_cert', $options) ? $options['tls_client_cert'] : 'null'; $tls_client_key = array_key_exists('tls_client_key', $options) ? $options['tls_client_key'] : 'null'; @@ -487,10 +487,6 @@ public function createLogSyslogRequest($options) $formParams['placement'] = ObjectSerializer::toFormValue($placement); } // form params - if ($format_version !== null) { - $formParams['format_version'] = ObjectSerializer::toFormValue($format_version); - } - // form params if ($response_condition !== null) { $formParams['response_condition'] = ObjectSerializer::toFormValue($response_condition); } @@ -499,6 +495,10 @@ public function createLogSyslogRequest($options) $formParams['format'] = ObjectSerializer::toFormValue($format); } // form params + if ($format_version !== null) { + $formParams['format_version'] = ObjectSerializer::toFormValue($format_version); + } + // form params if ($tls_ca_cert !== null) { $formParams['tls_ca_cert'] = ObjectSerializer::toFormValue($tls_ca_cert); } @@ -1692,9 +1692,9 @@ public function listLogSyslogRequest($options) * @param string $logging_syslog_name The name for the real-time logging configuration. (required) * @param string $name The name for the real-time logging configuration. (optional) * @param string $placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. (optional) - * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. (optional) * @param string $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). (optional, default to '%h %l %u %t "%r" %>s %b') + * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $tls_ca_cert A secure certificate to authenticate a server with. Must be in PEM format. (optional, default to 'null') * @param string $tls_client_cert The client certificate used to make authenticated requests. Must be in PEM format. (optional, default to 'null') * @param string $tls_client_key The client private key used to make authenticated requests. Must be in PEM format. (optional, default to 'null') @@ -1732,9 +1732,9 @@ public function updateLogSyslog($options) * @param string $logging_syslog_name The name for the real-time logging configuration. (required) * @param string $name The name for the real-time logging configuration. (optional) * @param string $placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. (optional) - * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. (optional) * @param string $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). (optional, default to '%h %l %u %t "%r" %>s %b') + * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $tls_ca_cert A secure certificate to authenticate a server with. Must be in PEM format. (optional, default to 'null') * @param string $tls_client_cert The client certificate used to make authenticated requests. Must be in PEM format. (optional, default to 'null') * @param string $tls_client_key The client private key used to make authenticated requests. Must be in PEM format. (optional, default to 'null') @@ -1860,9 +1860,9 @@ public function updateLogSyslogWithHttpInfo($options) * @param string $logging_syslog_name The name for the real-time logging configuration. (required) * @param string $name The name for the real-time logging configuration. (optional) * @param string $placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. (optional) - * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. (optional) * @param string $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). (optional, default to '%h %l %u %t "%r" %>s %b') + * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $tls_ca_cert A secure certificate to authenticate a server with. Must be in PEM format. (optional, default to 'null') * @param string $tls_client_cert The client certificate used to make authenticated requests. Must be in PEM format. (optional, default to 'null') * @param string $tls_client_key The client private key used to make authenticated requests. Must be in PEM format. (optional, default to 'null') @@ -1903,9 +1903,9 @@ function ($response) { * @param string $logging_syslog_name The name for the real-time logging configuration. (required) * @param string $name The name for the real-time logging configuration. (optional) * @param string $placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. (optional) - * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. (optional) * @param string $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). (optional, default to '%h %l %u %t "%r" %>s %b') + * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $tls_ca_cert A secure certificate to authenticate a server with. Must be in PEM format. (optional, default to 'null') * @param string $tls_client_cert The client certificate used to make authenticated requests. Must be in PEM format. (optional, default to 'null') * @param string $tls_client_key The client private key used to make authenticated requests. Must be in PEM format. (optional, default to 'null') @@ -1972,9 +1972,9 @@ function ($exception) { * @param string $logging_syslog_name The name for the real-time logging configuration. (required) * @param string $name The name for the real-time logging configuration. (optional) * @param string $placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. (optional) - * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. (optional) * @param string $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). (optional, default to '%h %l %u %t "%r" %>s %b') + * @param int $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional, default to self::FORMAT_VERSION_v2) * @param string $tls_ca_cert A secure certificate to authenticate a server with. Must be in PEM format. (optional, default to 'null') * @param string $tls_client_cert The client certificate used to make authenticated requests. Must be in PEM format. (optional, default to 'null') * @param string $tls_client_key The client private key used to make authenticated requests. Must be in PEM format. (optional, default to 'null') @@ -1998,9 +1998,9 @@ public function updateLogSyslogRequest($options) $logging_syslog_name = array_key_exists('logging_syslog_name', $options) ? $options['logging_syslog_name'] : null; $name = array_key_exists('name', $options) ? $options['name'] : null; $placement = array_key_exists('placement', $options) ? $options['placement'] : null; - $format_version = array_key_exists('format_version', $options) ? $options['format_version'] : self::FORMAT_VERSION_v2; $response_condition = array_key_exists('response_condition', $options) ? $options['response_condition'] : null; $format = array_key_exists('format', $options) ? $options['format'] : '%h %l %u %t "%r" %>s %b'; + $format_version = array_key_exists('format_version', $options) ? $options['format_version'] : self::FORMAT_VERSION_v2; $tls_ca_cert = array_key_exists('tls_ca_cert', $options) ? $options['tls_ca_cert'] : 'null'; $tls_client_cert = array_key_exists('tls_client_cert', $options) ? $options['tls_client_cert'] : 'null'; $tls_client_key = array_key_exists('tls_client_key', $options) ? $options['tls_client_key'] : 'null'; @@ -2075,10 +2075,6 @@ public function updateLogSyslogRequest($options) $formParams['placement'] = ObjectSerializer::toFormValue($placement); } // form params - if ($format_version !== null) { - $formParams['format_version'] = ObjectSerializer::toFormValue($format_version); - } - // form params if ($response_condition !== null) { $formParams['response_condition'] = ObjectSerializer::toFormValue($response_condition); } @@ -2087,6 +2083,10 @@ public function updateLogSyslogRequest($options) $formParams['format'] = ObjectSerializer::toFormValue($format); } // form params + if ($format_version !== null) { + $formParams['format_version'] = ObjectSerializer::toFormValue($format_version); + } + // form params if ($tls_ca_cert !== null) { $formParams['tls_ca_cert'] = ObjectSerializer::toFormValue($tls_ca_cert); } diff --git a/lib/Api/PoolApi.php b/lib/Api/PoolApi.php index c6c25a37..94b2811b 100644 --- a/lib/Api/PoolApi.php +++ b/lib/Api/PoolApi.php @@ -126,26 +126,32 @@ public function getConfig() * @param string $tls_client_key The client private key used to make authenticated requests. Must be in PEM format. (optional, default to 'null') * @param string $tls_cert_hostname The hostname used to verify a server's certificate. It can either be the Common Name (CN) or a Subject Alternative Name (SAN). (optional, default to 'null') * @param int $use_tls Whether to use TLS. (optional, default to 0) + * @param \DateTime $created_at Date and time in ISO 8601 format. (optional) + * @param \DateTime $deleted_at Date and time in ISO 8601 format. (optional) + * @param \DateTime $updated_at Date and time in ISO 8601 format. (optional) + * @param string $service_id service_id (optional) + * @param string $version version (optional) * @param string $name Name for the Pool. (optional) * @param string $shield Selected POP to serve as a shield for the servers. Defaults to `null` meaning no origin shielding if not set. Refer to the [POPs API endpoint](/reference/api/utils/pops/) to get a list of available POPs used for shielding. (optional, default to 'null') * @param string $request_condition Condition which, if met, will select this configuration during a request. Optional. (optional) - * @param int $max_conn_default Maximum number of connections. Optional. (optional, default to 200) - * @param int $connect_timeout How long to wait for a timeout in milliseconds. Optional. (optional) - * @param int $first_byte_timeout How long to wait for the first byte in milliseconds. Optional. (optional) - * @param int $quorum Percentage of capacity (`0-100`) that needs to be operationally available for a pool to be considered up. (optional, default to 75) * @param string $tls_ciphers List of OpenSSL ciphers (see the [openssl.org manpages](https://www.openssl.org/docs/man1.1.1/man1/ciphers.html) for details). Optional. (optional) * @param string $tls_sni_hostname SNI hostname. Optional. (optional) - * @param int $tls_check_cert Be strict on checking TLS certs. Optional. (optional) * @param int $min_tls_version Minimum allowed TLS version on connections to this server. Optional. (optional) * @param int $max_tls_version Maximum allowed TLS version on connections to this server. Optional. (optional) * @param string $healthcheck Name of the healthcheck to use with this pool. Can be empty and could be reused across multiple backend and pools. (optional) * @param string $comment A freeform descriptive note. (optional) * @param string $type What type of load balance group to use. (optional) * @param string $override_host The hostname to [override the Host header](https://docs.fastly.com/en/guides/specifying-an-override-host). Defaults to `null` meaning no override of the Host header will occur. This setting can also be added to a Server definition. If the field is set on a Server definition it will override the Pool setting. (optional, default to 'null') + * @param int $between_bytes_timeout Maximum duration in milliseconds that Fastly will wait while receiving no data on a download from a backend. If exceeded, the response received so far will be considered complete and the fetch will end. May be set at runtime using `bereq.between_bytes_timeout`. (optional, default to 10000) + * @param int $connect_timeout How long to wait for a timeout in milliseconds. Optional. (optional) + * @param int $first_byte_timeout How long to wait for the first byte in milliseconds. Optional. (optional) + * @param int $max_conn_default Maximum number of connections. Optional. (optional, default to 200) + * @param int $quorum Percentage of capacity (`0-100`) that needs to be operationally available for a pool to be considered up. (optional, default to 75) + * @param int $tls_check_cert Be strict on checking TLS certs. Optional. (optional) * * @throws \Fastly\ApiException on non-2xx response * @throws \InvalidArgumentException - * @return \Fastly\Model\PoolResponse + * @return \Fastly\Model\PoolResponsePost */ public function createServerPool($options) { @@ -170,26 +176,32 @@ public function createServerPool($options) * @param string $tls_client_key The client private key used to make authenticated requests. Must be in PEM format. (optional, default to 'null') * @param string $tls_cert_hostname The hostname used to verify a server's certificate. It can either be the Common Name (CN) or a Subject Alternative Name (SAN). (optional, default to 'null') * @param int $use_tls Whether to use TLS. (optional, default to 0) + * @param \DateTime $created_at Date and time in ISO 8601 format. (optional) + * @param \DateTime $deleted_at Date and time in ISO 8601 format. (optional) + * @param \DateTime $updated_at Date and time in ISO 8601 format. (optional) + * @param string $service_id (optional) + * @param string $version (optional) * @param string $name Name for the Pool. (optional) * @param string $shield Selected POP to serve as a shield for the servers. Defaults to `null` meaning no origin shielding if not set. Refer to the [POPs API endpoint](/reference/api/utils/pops/) to get a list of available POPs used for shielding. (optional, default to 'null') * @param string $request_condition Condition which, if met, will select this configuration during a request. Optional. (optional) - * @param int $max_conn_default Maximum number of connections. Optional. (optional, default to 200) - * @param int $connect_timeout How long to wait for a timeout in milliseconds. Optional. (optional) - * @param int $first_byte_timeout How long to wait for the first byte in milliseconds. Optional. (optional) - * @param int $quorum Percentage of capacity (`0-100`) that needs to be operationally available for a pool to be considered up. (optional, default to 75) * @param string $tls_ciphers List of OpenSSL ciphers (see the [openssl.org manpages](https://www.openssl.org/docs/man1.1.1/man1/ciphers.html) for details). Optional. (optional) * @param string $tls_sni_hostname SNI hostname. Optional. (optional) - * @param int $tls_check_cert Be strict on checking TLS certs. Optional. (optional) * @param int $min_tls_version Minimum allowed TLS version on connections to this server. Optional. (optional) * @param int $max_tls_version Maximum allowed TLS version on connections to this server. Optional. (optional) * @param string $healthcheck Name of the healthcheck to use with this pool. Can be empty and could be reused across multiple backend and pools. (optional) * @param string $comment A freeform descriptive note. (optional) * @param string $type What type of load balance group to use. (optional) * @param string $override_host The hostname to [override the Host header](https://docs.fastly.com/en/guides/specifying-an-override-host). Defaults to `null` meaning no override of the Host header will occur. This setting can also be added to a Server definition. If the field is set on a Server definition it will override the Pool setting. (optional, default to 'null') + * @param int $between_bytes_timeout Maximum duration in milliseconds that Fastly will wait while receiving no data on a download from a backend. If exceeded, the response received so far will be considered complete and the fetch will end. May be set at runtime using `bereq.between_bytes_timeout`. (optional, default to 10000) + * @param int $connect_timeout How long to wait for a timeout in milliseconds. Optional. (optional) + * @param int $first_byte_timeout How long to wait for the first byte in milliseconds. Optional. (optional) + * @param int $max_conn_default Maximum number of connections. Optional. (optional, default to 200) + * @param int $quorum Percentage of capacity (`0-100`) that needs to be operationally available for a pool to be considered up. (optional, default to 75) + * @param int $tls_check_cert Be strict on checking TLS certs. Optional. (optional) * * @throws \Fastly\ApiException on non-2xx response * @throws \InvalidArgumentException - * @return array of \Fastly\Model\PoolResponse, HTTP status code, HTTP response headers (array of strings) + * @return array of \Fastly\Model\PoolResponsePost, HTTP status code, HTTP response headers (array of strings) */ public function createServerPoolWithHttpInfo($options) { @@ -244,20 +256,20 @@ public function createServerPoolWithHttpInfo($options) switch($statusCode) { case 200: - if ('\Fastly\Model\PoolResponse' === '\SplFileObject') { + if ('\Fastly\Model\PoolResponsePost' === '\SplFileObject') { $content = $response->getBody(); //stream goes to serializer } else { $content = (string) $response->getBody(); } return [ - ObjectSerializer::deserialize($content, '\Fastly\Model\PoolResponse', []), + ObjectSerializer::deserialize($content, '\Fastly\Model\PoolResponsePost', []), $response->getStatusCode(), $response->getHeaders() ]; } - $returnType = '\Fastly\Model\PoolResponse'; + $returnType = '\Fastly\Model\PoolResponsePost'; if ($returnType === '\SplFileObject') { $content = $response->getBody(); //stream goes to serializer } else { @@ -275,7 +287,7 @@ public function createServerPoolWithHttpInfo($options) case 200: $data = ObjectSerializer::deserialize( $e->getResponseBody(), - '\Fastly\Model\PoolResponse', + '\Fastly\Model\PoolResponsePost', $e->getResponseHeaders() ); $e->setResponseObject($data); @@ -302,22 +314,28 @@ public function createServerPoolWithHttpInfo($options) * @param string $tls_client_key The client private key used to make authenticated requests. Must be in PEM format. (optional, default to 'null') * @param string $tls_cert_hostname The hostname used to verify a server's certificate. It can either be the Common Name (CN) or a Subject Alternative Name (SAN). (optional, default to 'null') * @param int $use_tls Whether to use TLS. (optional, default to 0) + * @param \DateTime $created_at Date and time in ISO 8601 format. (optional) + * @param \DateTime $deleted_at Date and time in ISO 8601 format. (optional) + * @param \DateTime $updated_at Date and time in ISO 8601 format. (optional) + * @param string $service_id (optional) + * @param string $version (optional) * @param string $name Name for the Pool. (optional) * @param string $shield Selected POP to serve as a shield for the servers. Defaults to `null` meaning no origin shielding if not set. Refer to the [POPs API endpoint](/reference/api/utils/pops/) to get a list of available POPs used for shielding. (optional, default to 'null') * @param string $request_condition Condition which, if met, will select this configuration during a request. Optional. (optional) - * @param int $max_conn_default Maximum number of connections. Optional. (optional, default to 200) - * @param int $connect_timeout How long to wait for a timeout in milliseconds. Optional. (optional) - * @param int $first_byte_timeout How long to wait for the first byte in milliseconds. Optional. (optional) - * @param int $quorum Percentage of capacity (`0-100`) that needs to be operationally available for a pool to be considered up. (optional, default to 75) * @param string $tls_ciphers List of OpenSSL ciphers (see the [openssl.org manpages](https://www.openssl.org/docs/man1.1.1/man1/ciphers.html) for details). Optional. (optional) * @param string $tls_sni_hostname SNI hostname. Optional. (optional) - * @param int $tls_check_cert Be strict on checking TLS certs. Optional. (optional) * @param int $min_tls_version Minimum allowed TLS version on connections to this server. Optional. (optional) * @param int $max_tls_version Maximum allowed TLS version on connections to this server. Optional. (optional) * @param string $healthcheck Name of the healthcheck to use with this pool. Can be empty and could be reused across multiple backend and pools. (optional) * @param string $comment A freeform descriptive note. (optional) * @param string $type What type of load balance group to use. (optional) * @param string $override_host The hostname to [override the Host header](https://docs.fastly.com/en/guides/specifying-an-override-host). Defaults to `null` meaning no override of the Host header will occur. This setting can also be added to a Server definition. If the field is set on a Server definition it will override the Pool setting. (optional, default to 'null') + * @param int $between_bytes_timeout Maximum duration in milliseconds that Fastly will wait while receiving no data on a download from a backend. If exceeded, the response received so far will be considered complete and the fetch will end. May be set at runtime using `bereq.between_bytes_timeout`. (optional, default to 10000) + * @param int $connect_timeout How long to wait for a timeout in milliseconds. Optional. (optional) + * @param int $first_byte_timeout How long to wait for the first byte in milliseconds. Optional. (optional) + * @param int $max_conn_default Maximum number of connections. Optional. (optional, default to 200) + * @param int $quorum Percentage of capacity (`0-100`) that needs to be operationally available for a pool to be considered up. (optional, default to 75) + * @param int $tls_check_cert Be strict on checking TLS certs. Optional. (optional) * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface @@ -349,29 +367,35 @@ function ($response) { * @param string $tls_client_key The client private key used to make authenticated requests. Must be in PEM format. (optional, default to 'null') * @param string $tls_cert_hostname The hostname used to verify a server's certificate. It can either be the Common Name (CN) or a Subject Alternative Name (SAN). (optional, default to 'null') * @param int $use_tls Whether to use TLS. (optional, default to 0) + * @param \DateTime $created_at Date and time in ISO 8601 format. (optional) + * @param \DateTime $deleted_at Date and time in ISO 8601 format. (optional) + * @param \DateTime $updated_at Date and time in ISO 8601 format. (optional) + * @param string $service_id (optional) + * @param string $version (optional) * @param string $name Name for the Pool. (optional) * @param string $shield Selected POP to serve as a shield for the servers. Defaults to `null` meaning no origin shielding if not set. Refer to the [POPs API endpoint](/reference/api/utils/pops/) to get a list of available POPs used for shielding. (optional, default to 'null') * @param string $request_condition Condition which, if met, will select this configuration during a request. Optional. (optional) - * @param int $max_conn_default Maximum number of connections. Optional. (optional, default to 200) - * @param int $connect_timeout How long to wait for a timeout in milliseconds. Optional. (optional) - * @param int $first_byte_timeout How long to wait for the first byte in milliseconds. Optional. (optional) - * @param int $quorum Percentage of capacity (`0-100`) that needs to be operationally available for a pool to be considered up. (optional, default to 75) * @param string $tls_ciphers List of OpenSSL ciphers (see the [openssl.org manpages](https://www.openssl.org/docs/man1.1.1/man1/ciphers.html) for details). Optional. (optional) * @param string $tls_sni_hostname SNI hostname. Optional. (optional) - * @param int $tls_check_cert Be strict on checking TLS certs. Optional. (optional) * @param int $min_tls_version Minimum allowed TLS version on connections to this server. Optional. (optional) * @param int $max_tls_version Maximum allowed TLS version on connections to this server. Optional. (optional) * @param string $healthcheck Name of the healthcheck to use with this pool. Can be empty and could be reused across multiple backend and pools. (optional) * @param string $comment A freeform descriptive note. (optional) * @param string $type What type of load balance group to use. (optional) * @param string $override_host The hostname to [override the Host header](https://docs.fastly.com/en/guides/specifying-an-override-host). Defaults to `null` meaning no override of the Host header will occur. This setting can also be added to a Server definition. If the field is set on a Server definition it will override the Pool setting. (optional, default to 'null') + * @param int $between_bytes_timeout Maximum duration in milliseconds that Fastly will wait while receiving no data on a download from a backend. If exceeded, the response received so far will be considered complete and the fetch will end. May be set at runtime using `bereq.between_bytes_timeout`. (optional, default to 10000) + * @param int $connect_timeout How long to wait for a timeout in milliseconds. Optional. (optional) + * @param int $first_byte_timeout How long to wait for the first byte in milliseconds. Optional. (optional) + * @param int $max_conn_default Maximum number of connections. Optional. (optional, default to 200) + * @param int $quorum Percentage of capacity (`0-100`) that needs to be operationally available for a pool to be considered up. (optional, default to 75) + * @param int $tls_check_cert Be strict on checking TLS certs. Optional. (optional) * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ public function createServerPoolAsyncWithHttpInfo($options) { - $returnType = '\Fastly\Model\PoolResponse'; + $returnType = '\Fastly\Model\PoolResponsePost'; $request = $this->createServerPoolRequest($options); return $this->client @@ -422,22 +446,28 @@ function ($exception) { * @param string $tls_client_key The client private key used to make authenticated requests. Must be in PEM format. (optional, default to 'null') * @param string $tls_cert_hostname The hostname used to verify a server's certificate. It can either be the Common Name (CN) or a Subject Alternative Name (SAN). (optional, default to 'null') * @param int $use_tls Whether to use TLS. (optional, default to 0) + * @param \DateTime $created_at Date and time in ISO 8601 format. (optional) + * @param \DateTime $deleted_at Date and time in ISO 8601 format. (optional) + * @param \DateTime $updated_at Date and time in ISO 8601 format. (optional) + * @param string $service_id (optional) + * @param string $version (optional) * @param string $name Name for the Pool. (optional) * @param string $shield Selected POP to serve as a shield for the servers. Defaults to `null` meaning no origin shielding if not set. Refer to the [POPs API endpoint](/reference/api/utils/pops/) to get a list of available POPs used for shielding. (optional, default to 'null') * @param string $request_condition Condition which, if met, will select this configuration during a request. Optional. (optional) - * @param int $max_conn_default Maximum number of connections. Optional. (optional, default to 200) - * @param int $connect_timeout How long to wait for a timeout in milliseconds. Optional. (optional) - * @param int $first_byte_timeout How long to wait for the first byte in milliseconds. Optional. (optional) - * @param int $quorum Percentage of capacity (`0-100`) that needs to be operationally available for a pool to be considered up. (optional, default to 75) * @param string $tls_ciphers List of OpenSSL ciphers (see the [openssl.org manpages](https://www.openssl.org/docs/man1.1.1/man1/ciphers.html) for details). Optional. (optional) * @param string $tls_sni_hostname SNI hostname. Optional. (optional) - * @param int $tls_check_cert Be strict on checking TLS certs. Optional. (optional) * @param int $min_tls_version Minimum allowed TLS version on connections to this server. Optional. (optional) * @param int $max_tls_version Maximum allowed TLS version on connections to this server. Optional. (optional) * @param string $healthcheck Name of the healthcheck to use with this pool. Can be empty and could be reused across multiple backend and pools. (optional) * @param string $comment A freeform descriptive note. (optional) * @param string $type What type of load balance group to use. (optional) * @param string $override_host The hostname to [override the Host header](https://docs.fastly.com/en/guides/specifying-an-override-host). Defaults to `null` meaning no override of the Host header will occur. This setting can also be added to a Server definition. If the field is set on a Server definition it will override the Pool setting. (optional, default to 'null') + * @param int $between_bytes_timeout Maximum duration in milliseconds that Fastly will wait while receiving no data on a download from a backend. If exceeded, the response received so far will be considered complete and the fetch will end. May be set at runtime using `bereq.between_bytes_timeout`. (optional, default to 10000) + * @param int $connect_timeout How long to wait for a timeout in milliseconds. Optional. (optional) + * @param int $first_byte_timeout How long to wait for the first byte in milliseconds. Optional. (optional) + * @param int $max_conn_default Maximum number of connections. Optional. (optional, default to 200) + * @param int $quorum Percentage of capacity (`0-100`) that needs to be operationally available for a pool to be considered up. (optional, default to 75) + * @param int $tls_check_cert Be strict on checking TLS certs. Optional. (optional) * * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request @@ -452,22 +482,28 @@ public function createServerPoolRequest($options) $tls_client_key = array_key_exists('tls_client_key', $options) ? $options['tls_client_key'] : 'null'; $tls_cert_hostname = array_key_exists('tls_cert_hostname', $options) ? $options['tls_cert_hostname'] : 'null'; $use_tls = array_key_exists('use_tls', $options) ? $options['use_tls'] : 0; + $created_at = array_key_exists('created_at', $options) ? $options['created_at'] : null; + $deleted_at = array_key_exists('deleted_at', $options) ? $options['deleted_at'] : null; + $updated_at = array_key_exists('updated_at', $options) ? $options['updated_at'] : null; + $service_id = array_key_exists('service_id', $options) ? $options['service_id'] : null; + $version = array_key_exists('version', $options) ? $options['version'] : null; $name = array_key_exists('name', $options) ? $options['name'] : null; $shield = array_key_exists('shield', $options) ? $options['shield'] : 'null'; $request_condition = array_key_exists('request_condition', $options) ? $options['request_condition'] : null; - $max_conn_default = array_key_exists('max_conn_default', $options) ? $options['max_conn_default'] : 200; - $connect_timeout = array_key_exists('connect_timeout', $options) ? $options['connect_timeout'] : null; - $first_byte_timeout = array_key_exists('first_byte_timeout', $options) ? $options['first_byte_timeout'] : null; - $quorum = array_key_exists('quorum', $options) ? $options['quorum'] : 75; $tls_ciphers = array_key_exists('tls_ciphers', $options) ? $options['tls_ciphers'] : null; $tls_sni_hostname = array_key_exists('tls_sni_hostname', $options) ? $options['tls_sni_hostname'] : null; - $tls_check_cert = array_key_exists('tls_check_cert', $options) ? $options['tls_check_cert'] : null; $min_tls_version = array_key_exists('min_tls_version', $options) ? $options['min_tls_version'] : null; $max_tls_version = array_key_exists('max_tls_version', $options) ? $options['max_tls_version'] : null; $healthcheck = array_key_exists('healthcheck', $options) ? $options['healthcheck'] : null; $comment = array_key_exists('comment', $options) ? $options['comment'] : null; $type = array_key_exists('type', $options) ? $options['type'] : null; $override_host = array_key_exists('override_host', $options) ? $options['override_host'] : 'null'; + $between_bytes_timeout = array_key_exists('between_bytes_timeout', $options) ? $options['between_bytes_timeout'] : 10000; + $connect_timeout = array_key_exists('connect_timeout', $options) ? $options['connect_timeout'] : null; + $first_byte_timeout = array_key_exists('first_byte_timeout', $options) ? $options['first_byte_timeout'] : null; + $max_conn_default = array_key_exists('max_conn_default', $options) ? $options['max_conn_default'] : 200; + $quorum = array_key_exists('quorum', $options) ? $options['quorum'] : 75; + $tls_check_cert = array_key_exists('tls_check_cert', $options) ? $options['tls_check_cert'] : null; // verify the required parameter 'service_id' is set if ($service_id === null || (is_array($service_id) && count($service_id) === 0)) { @@ -536,32 +572,36 @@ public function createServerPoolRequest($options) $formParams['use_tls'] = ObjectSerializer::toFormValue($use_tls); } // form params - if ($name !== null) { - $formParams['name'] = ObjectSerializer::toFormValue($name); + if ($created_at !== null) { + $formParams['created_at'] = ObjectSerializer::toFormValue($created_at); } // form params - if ($shield !== null) { - $formParams['shield'] = ObjectSerializer::toFormValue($shield); + if ($deleted_at !== null) { + $formParams['deleted_at'] = ObjectSerializer::toFormValue($deleted_at); } // form params - if ($request_condition !== null) { - $formParams['request_condition'] = ObjectSerializer::toFormValue($request_condition); + if ($updated_at !== null) { + $formParams['updated_at'] = ObjectSerializer::toFormValue($updated_at); } // form params - if ($max_conn_default !== null) { - $formParams['max_conn_default'] = ObjectSerializer::toFormValue($max_conn_default); + if ($service_id !== null) { + $formParams['service_id'] = ObjectSerializer::toFormValue($service_id); } // form params - if ($connect_timeout !== null) { - $formParams['connect_timeout'] = ObjectSerializer::toFormValue($connect_timeout); + if ($version !== null) { + $formParams['version'] = ObjectSerializer::toFormValue($version); } // form params - if ($first_byte_timeout !== null) { - $formParams['first_byte_timeout'] = ObjectSerializer::toFormValue($first_byte_timeout); + if ($name !== null) { + $formParams['name'] = ObjectSerializer::toFormValue($name); } // form params - if ($quorum !== null) { - $formParams['quorum'] = ObjectSerializer::toFormValue($quorum); + if ($shield !== null) { + $formParams['shield'] = ObjectSerializer::toFormValue($shield); + } + // form params + if ($request_condition !== null) { + $formParams['request_condition'] = ObjectSerializer::toFormValue($request_condition); } // form params if ($tls_ciphers !== null) { @@ -572,10 +612,6 @@ public function createServerPoolRequest($options) $formParams['tls_sni_hostname'] = ObjectSerializer::toFormValue($tls_sni_hostname); } // form params - if ($tls_check_cert !== null) { - $formParams['tls_check_cert'] = ObjectSerializer::toFormValue($tls_check_cert); - } - // form params if ($min_tls_version !== null) { $formParams['min_tls_version'] = ObjectSerializer::toFormValue($min_tls_version); } @@ -599,6 +635,30 @@ public function createServerPoolRequest($options) if ($override_host !== null) { $formParams['override_host'] = ObjectSerializer::toFormValue($override_host); } + // form params + if ($between_bytes_timeout !== null) { + $formParams['between_bytes_timeout'] = ObjectSerializer::toFormValue($between_bytes_timeout); + } + // form params + if ($connect_timeout !== null) { + $formParams['connect_timeout'] = ObjectSerializer::toFormValue($connect_timeout); + } + // form params + if ($first_byte_timeout !== null) { + $formParams['first_byte_timeout'] = ObjectSerializer::toFormValue($first_byte_timeout); + } + // form params + if ($max_conn_default !== null) { + $formParams['max_conn_default'] = ObjectSerializer::toFormValue($max_conn_default); + } + // form params + if ($quorum !== null) { + $formParams['quorum'] = ObjectSerializer::toFormValue($quorum); + } + // form params + if ($tls_check_cert !== null) { + $formParams['tls_check_cert'] = ObjectSerializer::toFormValue($tls_check_cert); + } if ($multipart) { $headers = $this->headerSelector->selectHeadersForMultipart( @@ -1752,22 +1812,28 @@ public function listServerPoolsRequest($options) * @param string $tls_client_key The client private key used to make authenticated requests. Must be in PEM format. (optional, default to 'null') * @param string $tls_cert_hostname The hostname used to verify a server's certificate. It can either be the Common Name (CN) or a Subject Alternative Name (SAN). (optional, default to 'null') * @param int $use_tls Whether to use TLS. (optional, default to self::USE_TLS_no_tls) + * @param \DateTime $created_at Date and time in ISO 8601 format. (optional) + * @param \DateTime $deleted_at Date and time in ISO 8601 format. (optional) + * @param \DateTime $updated_at Date and time in ISO 8601 format. (optional) + * @param string $service_id service_id (optional) + * @param string $version version (optional) * @param string $name Name for the Pool. (optional) * @param string $shield Selected POP to serve as a shield for the servers. Defaults to `null` meaning no origin shielding if not set. Refer to the [POPs API endpoint](/reference/api/utils/pops/) to get a list of available POPs used for shielding. (optional, default to 'null') * @param string $request_condition Condition which, if met, will select this configuration during a request. Optional. (optional) - * @param int $max_conn_default Maximum number of connections. Optional. (optional, default to 200) - * @param int $connect_timeout How long to wait for a timeout in milliseconds. Optional. (optional) - * @param int $first_byte_timeout How long to wait for the first byte in milliseconds. Optional. (optional) - * @param int $quorum Percentage of capacity (`0-100`) that needs to be operationally available for a pool to be considered up. (optional, default to 75) * @param string $tls_ciphers List of OpenSSL ciphers (see the [openssl.org manpages](https://www.openssl.org/docs/man1.1.1/man1/ciphers.html) for details). Optional. (optional) * @param string $tls_sni_hostname SNI hostname. Optional. (optional) - * @param int $tls_check_cert Be strict on checking TLS certs. Optional. (optional) * @param int $min_tls_version Minimum allowed TLS version on connections to this server. Optional. (optional) * @param int $max_tls_version Maximum allowed TLS version on connections to this server. Optional. (optional) * @param string $healthcheck Name of the healthcheck to use with this pool. Can be empty and could be reused across multiple backend and pools. (optional) * @param string $comment A freeform descriptive note. (optional) * @param string $type What type of load balance group to use. (optional) * @param string $override_host The hostname to [override the Host header](https://docs.fastly.com/en/guides/specifying-an-override-host). Defaults to `null` meaning no override of the Host header will occur. This setting can also be added to a Server definition. If the field is set on a Server definition it will override the Pool setting. (optional, default to 'null') + * @param int $between_bytes_timeout Maximum duration in milliseconds that Fastly will wait while receiving no data on a download from a backend. If exceeded, the response received so far will be considered complete and the fetch will end. May be set at runtime using `bereq.between_bytes_timeout`. (optional, default to 10000) + * @param int $connect_timeout How long to wait for a timeout in milliseconds. Optional. (optional) + * @param int $first_byte_timeout How long to wait for the first byte in milliseconds. Optional. (optional) + * @param int $max_conn_default Maximum number of connections. Optional. (optional, default to 200) + * @param int $quorum Percentage of capacity (`0-100`) that needs to be operationally available for a pool to be considered up. (optional, default to 75) + * @param int $tls_check_cert Be strict on checking TLS certs. Optional. (optional) * * @throws \Fastly\ApiException on non-2xx response * @throws \InvalidArgumentException @@ -1797,22 +1863,28 @@ public function updateServerPool($options) * @param string $tls_client_key The client private key used to make authenticated requests. Must be in PEM format. (optional, default to 'null') * @param string $tls_cert_hostname The hostname used to verify a server's certificate. It can either be the Common Name (CN) or a Subject Alternative Name (SAN). (optional, default to 'null') * @param int $use_tls Whether to use TLS. (optional, default to self::USE_TLS_no_tls) + * @param \DateTime $created_at Date and time in ISO 8601 format. (optional) + * @param \DateTime $deleted_at Date and time in ISO 8601 format. (optional) + * @param \DateTime $updated_at Date and time in ISO 8601 format. (optional) + * @param string $service_id (optional) + * @param string $version (optional) * @param string $name Name for the Pool. (optional) * @param string $shield Selected POP to serve as a shield for the servers. Defaults to `null` meaning no origin shielding if not set. Refer to the [POPs API endpoint](/reference/api/utils/pops/) to get a list of available POPs used for shielding. (optional, default to 'null') * @param string $request_condition Condition which, if met, will select this configuration during a request. Optional. (optional) - * @param int $max_conn_default Maximum number of connections. Optional. (optional, default to 200) - * @param int $connect_timeout How long to wait for a timeout in milliseconds. Optional. (optional) - * @param int $first_byte_timeout How long to wait for the first byte in milliseconds. Optional. (optional) - * @param int $quorum Percentage of capacity (`0-100`) that needs to be operationally available for a pool to be considered up. (optional, default to 75) * @param string $tls_ciphers List of OpenSSL ciphers (see the [openssl.org manpages](https://www.openssl.org/docs/man1.1.1/man1/ciphers.html) for details). Optional. (optional) * @param string $tls_sni_hostname SNI hostname. Optional. (optional) - * @param int $tls_check_cert Be strict on checking TLS certs. Optional. (optional) * @param int $min_tls_version Minimum allowed TLS version on connections to this server. Optional. (optional) * @param int $max_tls_version Maximum allowed TLS version on connections to this server. Optional. (optional) * @param string $healthcheck Name of the healthcheck to use with this pool. Can be empty and could be reused across multiple backend and pools. (optional) * @param string $comment A freeform descriptive note. (optional) * @param string $type What type of load balance group to use. (optional) * @param string $override_host The hostname to [override the Host header](https://docs.fastly.com/en/guides/specifying-an-override-host). Defaults to `null` meaning no override of the Host header will occur. This setting can also be added to a Server definition. If the field is set on a Server definition it will override the Pool setting. (optional, default to 'null') + * @param int $between_bytes_timeout Maximum duration in milliseconds that Fastly will wait while receiving no data on a download from a backend. If exceeded, the response received so far will be considered complete and the fetch will end. May be set at runtime using `bereq.between_bytes_timeout`. (optional, default to 10000) + * @param int $connect_timeout How long to wait for a timeout in milliseconds. Optional. (optional) + * @param int $first_byte_timeout How long to wait for the first byte in milliseconds. Optional. (optional) + * @param int $max_conn_default Maximum number of connections. Optional. (optional, default to 200) + * @param int $quorum Percentage of capacity (`0-100`) that needs to be operationally available for a pool to be considered up. (optional, default to 75) + * @param int $tls_check_cert Be strict on checking TLS certs. Optional. (optional) * * @throws \Fastly\ApiException on non-2xx response * @throws \InvalidArgumentException @@ -1930,22 +2002,28 @@ public function updateServerPoolWithHttpInfo($options) * @param string $tls_client_key The client private key used to make authenticated requests. Must be in PEM format. (optional, default to 'null') * @param string $tls_cert_hostname The hostname used to verify a server's certificate. It can either be the Common Name (CN) or a Subject Alternative Name (SAN). (optional, default to 'null') * @param int $use_tls Whether to use TLS. (optional, default to self::USE_TLS_no_tls) + * @param \DateTime $created_at Date and time in ISO 8601 format. (optional) + * @param \DateTime $deleted_at Date and time in ISO 8601 format. (optional) + * @param \DateTime $updated_at Date and time in ISO 8601 format. (optional) + * @param string $service_id (optional) + * @param string $version (optional) * @param string $name Name for the Pool. (optional) * @param string $shield Selected POP to serve as a shield for the servers. Defaults to `null` meaning no origin shielding if not set. Refer to the [POPs API endpoint](/reference/api/utils/pops/) to get a list of available POPs used for shielding. (optional, default to 'null') * @param string $request_condition Condition which, if met, will select this configuration during a request. Optional. (optional) - * @param int $max_conn_default Maximum number of connections. Optional. (optional, default to 200) - * @param int $connect_timeout How long to wait for a timeout in milliseconds. Optional. (optional) - * @param int $first_byte_timeout How long to wait for the first byte in milliseconds. Optional. (optional) - * @param int $quorum Percentage of capacity (`0-100`) that needs to be operationally available for a pool to be considered up. (optional, default to 75) * @param string $tls_ciphers List of OpenSSL ciphers (see the [openssl.org manpages](https://www.openssl.org/docs/man1.1.1/man1/ciphers.html) for details). Optional. (optional) * @param string $tls_sni_hostname SNI hostname. Optional. (optional) - * @param int $tls_check_cert Be strict on checking TLS certs. Optional. (optional) * @param int $min_tls_version Minimum allowed TLS version on connections to this server. Optional. (optional) * @param int $max_tls_version Maximum allowed TLS version on connections to this server. Optional. (optional) * @param string $healthcheck Name of the healthcheck to use with this pool. Can be empty and could be reused across multiple backend and pools. (optional) * @param string $comment A freeform descriptive note. (optional) * @param string $type What type of load balance group to use. (optional) * @param string $override_host The hostname to [override the Host header](https://docs.fastly.com/en/guides/specifying-an-override-host). Defaults to `null` meaning no override of the Host header will occur. This setting can also be added to a Server definition. If the field is set on a Server definition it will override the Pool setting. (optional, default to 'null') + * @param int $between_bytes_timeout Maximum duration in milliseconds that Fastly will wait while receiving no data on a download from a backend. If exceeded, the response received so far will be considered complete and the fetch will end. May be set at runtime using `bereq.between_bytes_timeout`. (optional, default to 10000) + * @param int $connect_timeout How long to wait for a timeout in milliseconds. Optional. (optional) + * @param int $first_byte_timeout How long to wait for the first byte in milliseconds. Optional. (optional) + * @param int $max_conn_default Maximum number of connections. Optional. (optional, default to 200) + * @param int $quorum Percentage of capacity (`0-100`) that needs to be operationally available for a pool to be considered up. (optional, default to 75) + * @param int $tls_check_cert Be strict on checking TLS certs. Optional. (optional) * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface @@ -1978,22 +2056,28 @@ function ($response) { * @param string $tls_client_key The client private key used to make authenticated requests. Must be in PEM format. (optional, default to 'null') * @param string $tls_cert_hostname The hostname used to verify a server's certificate. It can either be the Common Name (CN) or a Subject Alternative Name (SAN). (optional, default to 'null') * @param int $use_tls Whether to use TLS. (optional, default to self::USE_TLS_no_tls) + * @param \DateTime $created_at Date and time in ISO 8601 format. (optional) + * @param \DateTime $deleted_at Date and time in ISO 8601 format. (optional) + * @param \DateTime $updated_at Date and time in ISO 8601 format. (optional) + * @param string $service_id (optional) + * @param string $version (optional) * @param string $name Name for the Pool. (optional) * @param string $shield Selected POP to serve as a shield for the servers. Defaults to `null` meaning no origin shielding if not set. Refer to the [POPs API endpoint](/reference/api/utils/pops/) to get a list of available POPs used for shielding. (optional, default to 'null') * @param string $request_condition Condition which, if met, will select this configuration during a request. Optional. (optional) - * @param int $max_conn_default Maximum number of connections. Optional. (optional, default to 200) - * @param int $connect_timeout How long to wait for a timeout in milliseconds. Optional. (optional) - * @param int $first_byte_timeout How long to wait for the first byte in milliseconds. Optional. (optional) - * @param int $quorum Percentage of capacity (`0-100`) that needs to be operationally available for a pool to be considered up. (optional, default to 75) * @param string $tls_ciphers List of OpenSSL ciphers (see the [openssl.org manpages](https://www.openssl.org/docs/man1.1.1/man1/ciphers.html) for details). Optional. (optional) * @param string $tls_sni_hostname SNI hostname. Optional. (optional) - * @param int $tls_check_cert Be strict on checking TLS certs. Optional. (optional) * @param int $min_tls_version Minimum allowed TLS version on connections to this server. Optional. (optional) * @param int $max_tls_version Maximum allowed TLS version on connections to this server. Optional. (optional) * @param string $healthcheck Name of the healthcheck to use with this pool. Can be empty and could be reused across multiple backend and pools. (optional) * @param string $comment A freeform descriptive note. (optional) * @param string $type What type of load balance group to use. (optional) * @param string $override_host The hostname to [override the Host header](https://docs.fastly.com/en/guides/specifying-an-override-host). Defaults to `null` meaning no override of the Host header will occur. This setting can also be added to a Server definition. If the field is set on a Server definition it will override the Pool setting. (optional, default to 'null') + * @param int $between_bytes_timeout Maximum duration in milliseconds that Fastly will wait while receiving no data on a download from a backend. If exceeded, the response received so far will be considered complete and the fetch will end. May be set at runtime using `bereq.between_bytes_timeout`. (optional, default to 10000) + * @param int $connect_timeout How long to wait for a timeout in milliseconds. Optional. (optional) + * @param int $first_byte_timeout How long to wait for the first byte in milliseconds. Optional. (optional) + * @param int $max_conn_default Maximum number of connections. Optional. (optional, default to 200) + * @param int $quorum Percentage of capacity (`0-100`) that needs to be operationally available for a pool to be considered up. (optional, default to 75) + * @param int $tls_check_cert Be strict on checking TLS certs. Optional. (optional) * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface @@ -2052,22 +2136,28 @@ function ($exception) { * @param string $tls_client_key The client private key used to make authenticated requests. Must be in PEM format. (optional, default to 'null') * @param string $tls_cert_hostname The hostname used to verify a server's certificate. It can either be the Common Name (CN) or a Subject Alternative Name (SAN). (optional, default to 'null') * @param int $use_tls Whether to use TLS. (optional, default to self::USE_TLS_no_tls) + * @param \DateTime $created_at Date and time in ISO 8601 format. (optional) + * @param \DateTime $deleted_at Date and time in ISO 8601 format. (optional) + * @param \DateTime $updated_at Date and time in ISO 8601 format. (optional) + * @param string $service_id (optional) + * @param string $version (optional) * @param string $name Name for the Pool. (optional) * @param string $shield Selected POP to serve as a shield for the servers. Defaults to `null` meaning no origin shielding if not set. Refer to the [POPs API endpoint](/reference/api/utils/pops/) to get a list of available POPs used for shielding. (optional, default to 'null') * @param string $request_condition Condition which, if met, will select this configuration during a request. Optional. (optional) - * @param int $max_conn_default Maximum number of connections. Optional. (optional, default to 200) - * @param int $connect_timeout How long to wait for a timeout in milliseconds. Optional. (optional) - * @param int $first_byte_timeout How long to wait for the first byte in milliseconds. Optional. (optional) - * @param int $quorum Percentage of capacity (`0-100`) that needs to be operationally available for a pool to be considered up. (optional, default to 75) * @param string $tls_ciphers List of OpenSSL ciphers (see the [openssl.org manpages](https://www.openssl.org/docs/man1.1.1/man1/ciphers.html) for details). Optional. (optional) * @param string $tls_sni_hostname SNI hostname. Optional. (optional) - * @param int $tls_check_cert Be strict on checking TLS certs. Optional. (optional) * @param int $min_tls_version Minimum allowed TLS version on connections to this server. Optional. (optional) * @param int $max_tls_version Maximum allowed TLS version on connections to this server. Optional. (optional) * @param string $healthcheck Name of the healthcheck to use with this pool. Can be empty and could be reused across multiple backend and pools. (optional) * @param string $comment A freeform descriptive note. (optional) * @param string $type What type of load balance group to use. (optional) * @param string $override_host The hostname to [override the Host header](https://docs.fastly.com/en/guides/specifying-an-override-host). Defaults to `null` meaning no override of the Host header will occur. This setting can also be added to a Server definition. If the field is set on a Server definition it will override the Pool setting. (optional, default to 'null') + * @param int $between_bytes_timeout Maximum duration in milliseconds that Fastly will wait while receiving no data on a download from a backend. If exceeded, the response received so far will be considered complete and the fetch will end. May be set at runtime using `bereq.between_bytes_timeout`. (optional, default to 10000) + * @param int $connect_timeout How long to wait for a timeout in milliseconds. Optional. (optional) + * @param int $first_byte_timeout How long to wait for the first byte in milliseconds. Optional. (optional) + * @param int $max_conn_default Maximum number of connections. Optional. (optional, default to 200) + * @param int $quorum Percentage of capacity (`0-100`) that needs to be operationally available for a pool to be considered up. (optional, default to 75) + * @param int $tls_check_cert Be strict on checking TLS certs. Optional. (optional) * * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request @@ -2083,22 +2173,28 @@ public function updateServerPoolRequest($options) $tls_client_key = array_key_exists('tls_client_key', $options) ? $options['tls_client_key'] : 'null'; $tls_cert_hostname = array_key_exists('tls_cert_hostname', $options) ? $options['tls_cert_hostname'] : 'null'; $use_tls = array_key_exists('use_tls', $options) ? $options['use_tls'] : self::USE_TLS_no_tls; + $created_at = array_key_exists('created_at', $options) ? $options['created_at'] : null; + $deleted_at = array_key_exists('deleted_at', $options) ? $options['deleted_at'] : null; + $updated_at = array_key_exists('updated_at', $options) ? $options['updated_at'] : null; + $service_id = array_key_exists('service_id', $options) ? $options['service_id'] : null; + $version = array_key_exists('version', $options) ? $options['version'] : null; $name = array_key_exists('name', $options) ? $options['name'] : null; $shield = array_key_exists('shield', $options) ? $options['shield'] : 'null'; $request_condition = array_key_exists('request_condition', $options) ? $options['request_condition'] : null; - $max_conn_default = array_key_exists('max_conn_default', $options) ? $options['max_conn_default'] : 200; - $connect_timeout = array_key_exists('connect_timeout', $options) ? $options['connect_timeout'] : null; - $first_byte_timeout = array_key_exists('first_byte_timeout', $options) ? $options['first_byte_timeout'] : null; - $quorum = array_key_exists('quorum', $options) ? $options['quorum'] : 75; $tls_ciphers = array_key_exists('tls_ciphers', $options) ? $options['tls_ciphers'] : null; $tls_sni_hostname = array_key_exists('tls_sni_hostname', $options) ? $options['tls_sni_hostname'] : null; - $tls_check_cert = array_key_exists('tls_check_cert', $options) ? $options['tls_check_cert'] : null; $min_tls_version = array_key_exists('min_tls_version', $options) ? $options['min_tls_version'] : null; $max_tls_version = array_key_exists('max_tls_version', $options) ? $options['max_tls_version'] : null; $healthcheck = array_key_exists('healthcheck', $options) ? $options['healthcheck'] : null; $comment = array_key_exists('comment', $options) ? $options['comment'] : null; $type = array_key_exists('type', $options) ? $options['type'] : null; $override_host = array_key_exists('override_host', $options) ? $options['override_host'] : 'null'; + $between_bytes_timeout = array_key_exists('between_bytes_timeout', $options) ? $options['between_bytes_timeout'] : 10000; + $connect_timeout = array_key_exists('connect_timeout', $options) ? $options['connect_timeout'] : null; + $first_byte_timeout = array_key_exists('first_byte_timeout', $options) ? $options['first_byte_timeout'] : null; + $max_conn_default = array_key_exists('max_conn_default', $options) ? $options['max_conn_default'] : 200; + $quorum = array_key_exists('quorum', $options) ? $options['quorum'] : 75; + $tls_check_cert = array_key_exists('tls_check_cert', $options) ? $options['tls_check_cert'] : null; // verify the required parameter 'service_id' is set if ($service_id === null || (is_array($service_id) && count($service_id) === 0)) { @@ -2181,32 +2277,36 @@ public function updateServerPoolRequest($options) $formParams['use_tls'] = ObjectSerializer::toFormValue($use_tls); } // form params - if ($name !== null) { - $formParams['name'] = ObjectSerializer::toFormValue($name); + if ($created_at !== null) { + $formParams['created_at'] = ObjectSerializer::toFormValue($created_at); } // form params - if ($shield !== null) { - $formParams['shield'] = ObjectSerializer::toFormValue($shield); + if ($deleted_at !== null) { + $formParams['deleted_at'] = ObjectSerializer::toFormValue($deleted_at); } // form params - if ($request_condition !== null) { - $formParams['request_condition'] = ObjectSerializer::toFormValue($request_condition); + if ($updated_at !== null) { + $formParams['updated_at'] = ObjectSerializer::toFormValue($updated_at); } // form params - if ($max_conn_default !== null) { - $formParams['max_conn_default'] = ObjectSerializer::toFormValue($max_conn_default); + if ($service_id !== null) { + $formParams['service_id'] = ObjectSerializer::toFormValue($service_id); } // form params - if ($connect_timeout !== null) { - $formParams['connect_timeout'] = ObjectSerializer::toFormValue($connect_timeout); + if ($version !== null) { + $formParams['version'] = ObjectSerializer::toFormValue($version); } // form params - if ($first_byte_timeout !== null) { - $formParams['first_byte_timeout'] = ObjectSerializer::toFormValue($first_byte_timeout); + if ($name !== null) { + $formParams['name'] = ObjectSerializer::toFormValue($name); } // form params - if ($quorum !== null) { - $formParams['quorum'] = ObjectSerializer::toFormValue($quorum); + if ($shield !== null) { + $formParams['shield'] = ObjectSerializer::toFormValue($shield); + } + // form params + if ($request_condition !== null) { + $formParams['request_condition'] = ObjectSerializer::toFormValue($request_condition); } // form params if ($tls_ciphers !== null) { @@ -2217,10 +2317,6 @@ public function updateServerPoolRequest($options) $formParams['tls_sni_hostname'] = ObjectSerializer::toFormValue($tls_sni_hostname); } // form params - if ($tls_check_cert !== null) { - $formParams['tls_check_cert'] = ObjectSerializer::toFormValue($tls_check_cert); - } - // form params if ($min_tls_version !== null) { $formParams['min_tls_version'] = ObjectSerializer::toFormValue($min_tls_version); } @@ -2244,6 +2340,30 @@ public function updateServerPoolRequest($options) if ($override_host !== null) { $formParams['override_host'] = ObjectSerializer::toFormValue($override_host); } + // form params + if ($between_bytes_timeout !== null) { + $formParams['between_bytes_timeout'] = ObjectSerializer::toFormValue($between_bytes_timeout); + } + // form params + if ($connect_timeout !== null) { + $formParams['connect_timeout'] = ObjectSerializer::toFormValue($connect_timeout); + } + // form params + if ($first_byte_timeout !== null) { + $formParams['first_byte_timeout'] = ObjectSerializer::toFormValue($first_byte_timeout); + } + // form params + if ($max_conn_default !== null) { + $formParams['max_conn_default'] = ObjectSerializer::toFormValue($max_conn_default); + } + // form params + if ($quorum !== null) { + $formParams['quorum'] = ObjectSerializer::toFormValue($quorum); + } + // form params + if ($tls_check_cert !== null) { + $formParams['tls_check_cert'] = ObjectSerializer::toFormValue($tls_check_cert); + } if ($multipart) { $headers = $this->headerSelector->selectHeadersForMultipart( diff --git a/lib/Api/RequestSettingsApi.php b/lib/Api/RequestSettingsApi.php index 78d80fc5..343d19a3 100644 --- a/lib/Api/RequestSettingsApi.php +++ b/lib/Api/RequestSettingsApi.php @@ -1531,17 +1531,17 @@ public function listRequestSettingsRequest($options) * @param int $version_id Integer identifying a service version. (required) * @param string $request_settings_name Name for the request settings. (required) * @param string $action Allows you to terminate request handling and immediately perform an action. (optional) - * @param int $bypass_busy_wait Disable collapsed forwarding, so you don't wait for other objects to origin. (optional) * @param string $default_host Sets the host header. (optional) + * @param string $hash_keys Comma separated list of varnish request object fields that should be in the hash key. (optional) + * @param string $name Name for the request settings. (optional) + * @param string $request_condition Condition which, if met, will select this configuration during a request. Optional. (optional) + * @param string $xff Short for X-Forwarded-For. (optional) + * @param int $bypass_busy_wait Disable collapsed forwarding, so you don't wait for other objects to origin. (optional) * @param int $force_miss Allows you to force a cache miss for the request. Replaces the item in the cache if the content is cacheable. (optional) * @param int $force_ssl Forces the request use SSL (redirects a non-SSL to SSL). (optional) * @param int $geo_headers Injects Fastly-Geo-Country, Fastly-Geo-City, and Fastly-Geo-Region into the request headers. (optional) - * @param string $hash_keys Comma separated list of varnish request object fields that should be in the hash key. (optional) * @param int $max_stale_age How old an object is allowed to be to serve stale-if-error or stale-while-revalidate. (optional) - * @param string $name Name for the request settings. (optional) - * @param string $request_condition Condition which, if met, will select this configuration during a request. Optional. (optional) * @param int $timer_support Injects the X-Timer info into the request for viewing origin fetch durations. (optional) - * @param string $xff Short for X-Forwarded-For. (optional) * * @throws \Fastly\ApiException on non-2xx response * @throws \InvalidArgumentException @@ -1567,17 +1567,17 @@ public function updateRequestSettings($options) * @param int $version_id Integer identifying a service version. (required) * @param string $request_settings_name Name for the request settings. (required) * @param string $action Allows you to terminate request handling and immediately perform an action. (optional) - * @param int $bypass_busy_wait Disable collapsed forwarding, so you don't wait for other objects to origin. (optional) * @param string $default_host Sets the host header. (optional) + * @param string $hash_keys Comma separated list of varnish request object fields that should be in the hash key. (optional) + * @param string $name Name for the request settings. (optional) + * @param string $request_condition Condition which, if met, will select this configuration during a request. Optional. (optional) + * @param string $xff Short for X-Forwarded-For. (optional) + * @param int $bypass_busy_wait Disable collapsed forwarding, so you don't wait for other objects to origin. (optional) * @param int $force_miss Allows you to force a cache miss for the request. Replaces the item in the cache if the content is cacheable. (optional) * @param int $force_ssl Forces the request use SSL (redirects a non-SSL to SSL). (optional) * @param int $geo_headers Injects Fastly-Geo-Country, Fastly-Geo-City, and Fastly-Geo-Region into the request headers. (optional) - * @param string $hash_keys Comma separated list of varnish request object fields that should be in the hash key. (optional) * @param int $max_stale_age How old an object is allowed to be to serve stale-if-error or stale-while-revalidate. (optional) - * @param string $name Name for the request settings. (optional) - * @param string $request_condition Condition which, if met, will select this configuration during a request. Optional. (optional) * @param int $timer_support Injects the X-Timer info into the request for viewing origin fetch durations. (optional) - * @param string $xff Short for X-Forwarded-For. (optional) * * @throws \Fastly\ApiException on non-2xx response * @throws \InvalidArgumentException @@ -1691,17 +1691,17 @@ public function updateRequestSettingsWithHttpInfo($options) * @param int $version_id Integer identifying a service version. (required) * @param string $request_settings_name Name for the request settings. (required) * @param string $action Allows you to terminate request handling and immediately perform an action. (optional) - * @param int $bypass_busy_wait Disable collapsed forwarding, so you don't wait for other objects to origin. (optional) * @param string $default_host Sets the host header. (optional) + * @param string $hash_keys Comma separated list of varnish request object fields that should be in the hash key. (optional) + * @param string $name Name for the request settings. (optional) + * @param string $request_condition Condition which, if met, will select this configuration during a request. Optional. (optional) + * @param string $xff Short for X-Forwarded-For. (optional) + * @param int $bypass_busy_wait Disable collapsed forwarding, so you don't wait for other objects to origin. (optional) * @param int $force_miss Allows you to force a cache miss for the request. Replaces the item in the cache if the content is cacheable. (optional) * @param int $force_ssl Forces the request use SSL (redirects a non-SSL to SSL). (optional) * @param int $geo_headers Injects Fastly-Geo-Country, Fastly-Geo-City, and Fastly-Geo-Region into the request headers. (optional) - * @param string $hash_keys Comma separated list of varnish request object fields that should be in the hash key. (optional) * @param int $max_stale_age How old an object is allowed to be to serve stale-if-error or stale-while-revalidate. (optional) - * @param string $name Name for the request settings. (optional) - * @param string $request_condition Condition which, if met, will select this configuration during a request. Optional. (optional) * @param int $timer_support Injects the X-Timer info into the request for viewing origin fetch durations. (optional) - * @param string $xff Short for X-Forwarded-For. (optional) * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface @@ -1730,17 +1730,17 @@ function ($response) { * @param int $version_id Integer identifying a service version. (required) * @param string $request_settings_name Name for the request settings. (required) * @param string $action Allows you to terminate request handling and immediately perform an action. (optional) - * @param int $bypass_busy_wait Disable collapsed forwarding, so you don't wait for other objects to origin. (optional) * @param string $default_host Sets the host header. (optional) + * @param string $hash_keys Comma separated list of varnish request object fields that should be in the hash key. (optional) + * @param string $name Name for the request settings. (optional) + * @param string $request_condition Condition which, if met, will select this configuration during a request. Optional. (optional) + * @param string $xff Short for X-Forwarded-For. (optional) + * @param int $bypass_busy_wait Disable collapsed forwarding, so you don't wait for other objects to origin. (optional) * @param int $force_miss Allows you to force a cache miss for the request. Replaces the item in the cache if the content is cacheable. (optional) * @param int $force_ssl Forces the request use SSL (redirects a non-SSL to SSL). (optional) * @param int $geo_headers Injects Fastly-Geo-Country, Fastly-Geo-City, and Fastly-Geo-Region into the request headers. (optional) - * @param string $hash_keys Comma separated list of varnish request object fields that should be in the hash key. (optional) * @param int $max_stale_age How old an object is allowed to be to serve stale-if-error or stale-while-revalidate. (optional) - * @param string $name Name for the request settings. (optional) - * @param string $request_condition Condition which, if met, will select this configuration during a request. Optional. (optional) * @param int $timer_support Injects the X-Timer info into the request for viewing origin fetch durations. (optional) - * @param string $xff Short for X-Forwarded-For. (optional) * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface @@ -1795,17 +1795,17 @@ function ($exception) { * @param int $version_id Integer identifying a service version. (required) * @param string $request_settings_name Name for the request settings. (required) * @param string $action Allows you to terminate request handling and immediately perform an action. (optional) - * @param int $bypass_busy_wait Disable collapsed forwarding, so you don't wait for other objects to origin. (optional) * @param string $default_host Sets the host header. (optional) + * @param string $hash_keys Comma separated list of varnish request object fields that should be in the hash key. (optional) + * @param string $name Name for the request settings. (optional) + * @param string $request_condition Condition which, if met, will select this configuration during a request. Optional. (optional) + * @param string $xff Short for X-Forwarded-For. (optional) + * @param int $bypass_busy_wait Disable collapsed forwarding, so you don't wait for other objects to origin. (optional) * @param int $force_miss Allows you to force a cache miss for the request. Replaces the item in the cache if the content is cacheable. (optional) * @param int $force_ssl Forces the request use SSL (redirects a non-SSL to SSL). (optional) * @param int $geo_headers Injects Fastly-Geo-Country, Fastly-Geo-City, and Fastly-Geo-Region into the request headers. (optional) - * @param string $hash_keys Comma separated list of varnish request object fields that should be in the hash key. (optional) * @param int $max_stale_age How old an object is allowed to be to serve stale-if-error or stale-while-revalidate. (optional) - * @param string $name Name for the request settings. (optional) - * @param string $request_condition Condition which, if met, will select this configuration during a request. Optional. (optional) * @param int $timer_support Injects the X-Timer info into the request for viewing origin fetch durations. (optional) - * @param string $xff Short for X-Forwarded-For. (optional) * * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request @@ -1817,17 +1817,17 @@ public function updateRequestSettingsRequest($options) $version_id = array_key_exists('version_id', $options) ? $options['version_id'] : null; $request_settings_name = array_key_exists('request_settings_name', $options) ? $options['request_settings_name'] : null; $action = array_key_exists('action', $options) ? $options['action'] : null; - $bypass_busy_wait = array_key_exists('bypass_busy_wait', $options) ? $options['bypass_busy_wait'] : null; $default_host = array_key_exists('default_host', $options) ? $options['default_host'] : null; + $hash_keys = array_key_exists('hash_keys', $options) ? $options['hash_keys'] : null; + $name = array_key_exists('name', $options) ? $options['name'] : null; + $request_condition = array_key_exists('request_condition', $options) ? $options['request_condition'] : null; + $xff = array_key_exists('xff', $options) ? $options['xff'] : null; + $bypass_busy_wait = array_key_exists('bypass_busy_wait', $options) ? $options['bypass_busy_wait'] : null; $force_miss = array_key_exists('force_miss', $options) ? $options['force_miss'] : null; $force_ssl = array_key_exists('force_ssl', $options) ? $options['force_ssl'] : null; $geo_headers = array_key_exists('geo_headers', $options) ? $options['geo_headers'] : null; - $hash_keys = array_key_exists('hash_keys', $options) ? $options['hash_keys'] : null; $max_stale_age = array_key_exists('max_stale_age', $options) ? $options['max_stale_age'] : null; - $name = array_key_exists('name', $options) ? $options['name'] : null; - $request_condition = array_key_exists('request_condition', $options) ? $options['request_condition'] : null; $timer_support = array_key_exists('timer_support', $options) ? $options['timer_support'] : null; - $xff = array_key_exists('xff', $options) ? $options['xff'] : null; // verify the required parameter 'service_id' is set if ($service_id === null || (is_array($service_id) && count($service_id) === 0)) { @@ -1887,14 +1887,30 @@ public function updateRequestSettingsRequest($options) $formParams['action'] = ObjectSerializer::toFormValue($action); } // form params - if ($bypass_busy_wait !== null) { - $formParams['bypass_busy_wait'] = ObjectSerializer::toFormValue($bypass_busy_wait); - } - // form params if ($default_host !== null) { $formParams['default_host'] = ObjectSerializer::toFormValue($default_host); } // form params + if ($hash_keys !== null) { + $formParams['hash_keys'] = ObjectSerializer::toFormValue($hash_keys); + } + // form params + if ($name !== null) { + $formParams['name'] = ObjectSerializer::toFormValue($name); + } + // form params + if ($request_condition !== null) { + $formParams['request_condition'] = ObjectSerializer::toFormValue($request_condition); + } + // form params + if ($xff !== null) { + $formParams['xff'] = ObjectSerializer::toFormValue($xff); + } + // form params + if ($bypass_busy_wait !== null) { + $formParams['bypass_busy_wait'] = ObjectSerializer::toFormValue($bypass_busy_wait); + } + // form params if ($force_miss !== null) { $formParams['force_miss'] = ObjectSerializer::toFormValue($force_miss); } @@ -1907,29 +1923,13 @@ public function updateRequestSettingsRequest($options) $formParams['geo_headers'] = ObjectSerializer::toFormValue($geo_headers); } // form params - if ($hash_keys !== null) { - $formParams['hash_keys'] = ObjectSerializer::toFormValue($hash_keys); - } - // form params if ($max_stale_age !== null) { $formParams['max_stale_age'] = ObjectSerializer::toFormValue($max_stale_age); } // form params - if ($name !== null) { - $formParams['name'] = ObjectSerializer::toFormValue($name); - } - // form params - if ($request_condition !== null) { - $formParams['request_condition'] = ObjectSerializer::toFormValue($request_condition); - } - // form params if ($timer_support !== null) { $formParams['timer_support'] = ObjectSerializer::toFormValue($timer_support); } - // form params - if ($xff !== null) { - $formParams['xff'] = ObjectSerializer::toFormValue($xff); - } if ($multipart) { $headers = $this->headerSelector->selectHeadersForMultipart( diff --git a/lib/Configuration.php b/lib/Configuration.php index 6da6f4f1..b7bccdec 100644 --- a/lib/Configuration.php +++ b/lib/Configuration.php @@ -89,7 +89,7 @@ class Configuration * * @var string */ - protected $userAgent = 'fastly-php/3.0.3'; + protected $userAgent = 'fastly-php/4.0.0'; /** * Debug switch (default set to false) @@ -453,7 +453,7 @@ public static function toDebugReport() $report .= ' OS: ' . php_uname() . PHP_EOL; $report .= ' PHP Version: ' . PHP_VERSION . PHP_EOL; $report .= ' The version of the schema document: 1.0.0' . PHP_EOL; - $report .= ' SDK Package Version: 3.0.3' . PHP_EOL; + $report .= ' SDK Package Version: 4.0.0' . PHP_EOL; $report .= ' Temp Folder Path: ' . self::getDefaultConfiguration()->getTempFolderPath() . PHP_EOL; return $report; diff --git a/lib/Model/CacheSetting.php b/lib/Model/CacheSetting.php index 8da91675..ef738329 100644 --- a/lib/Model/CacheSetting.php +++ b/lib/Model/CacheSetting.php @@ -56,8 +56,8 @@ class CacheSetting implements ModelInterface, ArrayAccess, \JsonSerializable 'action' => 'string', 'cache_condition' => 'string', 'name' => 'string', - 'stale_ttl' => 'int', - 'ttl' => 'int' + 'stale_ttl' => 'string', + 'ttl' => 'string' ]; /** @@ -334,7 +334,7 @@ public function setName($name) /** * Gets stale_ttl * - * @return int|null + * @return string|null */ public function getStaleTtl() { @@ -344,7 +344,7 @@ public function getStaleTtl() /** * Sets stale_ttl * - * @param int|null $stale_ttl Maximum time in seconds to continue to use a stale version of the object if future requests to your backend server fail (also known as 'stale if error'). + * @param string|null $stale_ttl Maximum time in seconds to continue to use a stale version of the object if future requests to your backend server fail (also known as 'stale if error'). * * @return self */ @@ -358,7 +358,7 @@ public function setStaleTtl($stale_ttl) /** * Gets ttl * - * @return int|null + * @return string|null */ public function getTtl() { @@ -368,7 +368,7 @@ public function getTtl() /** * Sets ttl * - * @param int|null $ttl Maximum time to consider the object fresh in the cache (the cache 'time to live'). + * @param string|null $ttl Maximum time to consider the object fresh in the cache (the cache 'time to live'). * * @return self */ diff --git a/lib/Model/CacheSettingResponse.php b/lib/Model/CacheSettingResponse.php index ff496106..6088feff 100644 --- a/lib/Model/CacheSettingResponse.php +++ b/lib/Model/CacheSettingResponse.php @@ -56,10 +56,10 @@ class CacheSettingResponse implements ModelInterface, ArrayAccess, \JsonSerializ 'action' => 'string', 'cache_condition' => 'string', 'name' => 'string', - 'stale_ttl' => 'int', - 'ttl' => 'int', + 'stale_ttl' => 'string', + 'ttl' => 'string', 'service_id' => 'string', - 'version' => 'int', + 'version' => 'string', 'created_at' => '\DateTime', 'deleted_at' => '\DateTime', 'updated_at' => '\DateTime' @@ -364,7 +364,7 @@ public function setName($name) /** * Gets stale_ttl * - * @return int|null + * @return string|null */ public function getStaleTtl() { @@ -374,7 +374,7 @@ public function getStaleTtl() /** * Sets stale_ttl * - * @param int|null $stale_ttl Maximum time in seconds to continue to use a stale version of the object if future requests to your backend server fail (also known as 'stale if error'). + * @param string|null $stale_ttl Maximum time in seconds to continue to use a stale version of the object if future requests to your backend server fail (also known as 'stale if error'). * * @return self */ @@ -388,7 +388,7 @@ public function setStaleTtl($stale_ttl) /** * Gets ttl * - * @return int|null + * @return string|null */ public function getTtl() { @@ -398,7 +398,7 @@ public function getTtl() /** * Sets ttl * - * @param int|null $ttl Maximum time to consider the object fresh in the cache (the cache 'time to live'). + * @param string|null $ttl Maximum time to consider the object fresh in the cache (the cache 'time to live'). * * @return self */ @@ -436,7 +436,7 @@ public function setServiceId($service_id) /** * Gets version * - * @return int|null + * @return string|null */ public function getVersion() { @@ -446,7 +446,7 @@ public function getVersion() /** * Sets version * - * @param int|null $version version + * @param string|null $version version * * @return self */ diff --git a/lib/Model/GzipResponse.php b/lib/Model/GzipResponse.php index 22e74891..dca89043 100644 --- a/lib/Model/GzipResponse.php +++ b/lib/Model/GzipResponse.php @@ -58,7 +58,7 @@ class GzipResponse implements ModelInterface, ArrayAccess, \JsonSerializable 'extensions' => 'string', 'name' => 'string', 'service_id' => 'string', - 'version' => 'int', + 'version' => 'string', 'created_at' => '\DateTime', 'deleted_at' => '\DateTime', 'updated_at' => '\DateTime' @@ -370,7 +370,7 @@ public function setServiceId($service_id) /** * Gets version * - * @return int|null + * @return string|null */ public function getVersion() { @@ -380,7 +380,7 @@ public function getVersion() /** * Sets version * - * @param int|null $version version + * @param string|null $version version * * @return self */ diff --git a/lib/Model/Header.php b/lib/Model/Header.php index 34373889..899f2b35 100644 --- a/lib/Model/Header.php +++ b/lib/Model/Header.php @@ -56,9 +56,7 @@ class Header implements ModelInterface, ArrayAccess, \JsonSerializable 'action' => 'string', 'cache_condition' => 'string', 'dst' => 'string', - 'ignore_if_set' => 'int', 'name' => 'string', - 'priority' => 'int', 'regex' => 'string', 'request_condition' => 'string', 'response_condition' => 'string', @@ -78,9 +76,7 @@ class Header implements ModelInterface, ArrayAccess, \JsonSerializable 'action' => null, 'cache_condition' => null, 'dst' => null, - 'ignore_if_set' => null, 'name' => null, - 'priority' => null, 'regex' => null, 'request_condition' => null, 'response_condition' => null, @@ -119,9 +115,7 @@ public static function fastlyFormats() 'action' => 'action', 'cache_condition' => 'cache_condition', 'dst' => 'dst', - 'ignore_if_set' => 'ignore_if_set', 'name' => 'name', - 'priority' => 'priority', 'regex' => 'regex', 'request_condition' => 'request_condition', 'response_condition' => 'response_condition', @@ -139,9 +133,7 @@ public static function fastlyFormats() 'action' => 'setAction', 'cache_condition' => 'setCacheCondition', 'dst' => 'setDst', - 'ignore_if_set' => 'setIgnoreIfSet', 'name' => 'setName', - 'priority' => 'setPriority', 'regex' => 'setRegex', 'request_condition' => 'setRequestCondition', 'response_condition' => 'setResponseCondition', @@ -159,9 +151,7 @@ public static function fastlyFormats() 'action' => 'getAction', 'cache_condition' => 'getCacheCondition', 'dst' => 'getDst', - 'ignore_if_set' => 'getIgnoreIfSet', 'name' => 'getName', - 'priority' => 'getPriority', 'regex' => 'getRegex', 'request_condition' => 'getRequestCondition', 'response_condition' => 'getResponseCondition', @@ -268,9 +258,7 @@ public function __construct(array $data = null) $this->container['action'] = $data['action'] ?? null; $this->container['cache_condition'] = $data['cache_condition'] ?? null; $this->container['dst'] = $data['dst'] ?? null; - $this->container['ignore_if_set'] = $data['ignore_if_set'] ?? null; $this->container['name'] = $data['name'] ?? null; - $this->container['priority'] = $data['priority'] ?? 100; $this->container['regex'] = $data['regex'] ?? null; $this->container['request_condition'] = $data['request_condition'] ?? null; $this->container['response_condition'] = $data['response_condition'] ?? null; @@ -403,30 +391,6 @@ public function setDst($dst) return $this; } - /** - * Gets ignore_if_set - * - * @return int|null - */ - public function getIgnoreIfSet() - { - return $this->container['ignore_if_set']; - } - - /** - * Sets ignore_if_set - * - * @param int|null $ignore_if_set Don't add the header if it is added already. Only applies to 'set' action. - * - * @return self - */ - public function setIgnoreIfSet($ignore_if_set) - { - $this->container['ignore_if_set'] = $ignore_if_set; - - return $this; - } - /** * Gets name * @@ -451,30 +415,6 @@ public function setName($name) return $this; } - /** - * Gets priority - * - * @return int|null - */ - public function getPriority() - { - return $this->container['priority']; - } - - /** - * Sets priority - * - * @param int|null $priority Priority determines execution order. Lower numbers execute first. - * - * @return self - */ - public function setPriority($priority) - { - $this->container['priority'] = $priority; - - return $this; - } - /** * Gets regex * diff --git a/lib/Model/HeaderResponse.php b/lib/Model/HeaderResponse.php index 62f1fd96..d1895469 100644 --- a/lib/Model/HeaderResponse.php +++ b/lib/Model/HeaderResponse.php @@ -56,17 +56,17 @@ class HeaderResponse implements ModelInterface, ArrayAccess, \JsonSerializable 'action' => 'string', 'cache_condition' => 'string', 'dst' => 'string', - 'ignore_if_set' => 'int', 'name' => 'string', - 'priority' => 'int', 'regex' => 'string', 'request_condition' => 'string', 'response_condition' => 'string', 'src' => 'string', 'substitution' => 'string', 'type' => 'string', + 'ignore_if_set' => 'string', + 'priority' => 'string', 'service_id' => 'string', - 'version' => 'int', + 'version' => 'string', 'created_at' => '\DateTime', 'deleted_at' => '\DateTime', 'updated_at' => '\DateTime' @@ -83,15 +83,15 @@ class HeaderResponse implements ModelInterface, ArrayAccess, \JsonSerializable 'action' => null, 'cache_condition' => null, 'dst' => null, - 'ignore_if_set' => null, 'name' => null, - 'priority' => null, 'regex' => null, 'request_condition' => null, 'response_condition' => null, 'src' => null, 'substitution' => null, 'type' => null, + 'ignore_if_set' => null, + 'priority' => null, 'service_id' => null, 'version' => null, 'created_at' => 'date-time', @@ -129,15 +129,15 @@ public static function fastlyFormats() 'action' => 'action', 'cache_condition' => 'cache_condition', 'dst' => 'dst', - 'ignore_if_set' => 'ignore_if_set', 'name' => 'name', - 'priority' => 'priority', 'regex' => 'regex', 'request_condition' => 'request_condition', 'response_condition' => 'response_condition', 'src' => 'src', 'substitution' => 'substitution', 'type' => 'type', + 'ignore_if_set' => 'ignore_if_set', + 'priority' => 'priority', 'service_id' => 'service_id', 'version' => 'version', 'created_at' => 'created_at', @@ -154,15 +154,15 @@ public static function fastlyFormats() 'action' => 'setAction', 'cache_condition' => 'setCacheCondition', 'dst' => 'setDst', - 'ignore_if_set' => 'setIgnoreIfSet', 'name' => 'setName', - 'priority' => 'setPriority', 'regex' => 'setRegex', 'request_condition' => 'setRequestCondition', 'response_condition' => 'setResponseCondition', 'src' => 'setSrc', 'substitution' => 'setSubstitution', 'type' => 'setType', + 'ignore_if_set' => 'setIgnoreIfSet', + 'priority' => 'setPriority', 'service_id' => 'setServiceId', 'version' => 'setVersion', 'created_at' => 'setCreatedAt', @@ -179,15 +179,15 @@ public static function fastlyFormats() 'action' => 'getAction', 'cache_condition' => 'getCacheCondition', 'dst' => 'getDst', - 'ignore_if_set' => 'getIgnoreIfSet', 'name' => 'getName', - 'priority' => 'getPriority', 'regex' => 'getRegex', 'request_condition' => 'getRequestCondition', 'response_condition' => 'getResponseCondition', 'src' => 'getSrc', 'substitution' => 'getSubstitution', 'type' => 'getType', + 'ignore_if_set' => 'getIgnoreIfSet', + 'priority' => 'getPriority', 'service_id' => 'getServiceId', 'version' => 'getVersion', 'created_at' => 'getCreatedAt', @@ -293,15 +293,15 @@ public function __construct(array $data = null) $this->container['action'] = $data['action'] ?? null; $this->container['cache_condition'] = $data['cache_condition'] ?? null; $this->container['dst'] = $data['dst'] ?? null; - $this->container['ignore_if_set'] = $data['ignore_if_set'] ?? null; $this->container['name'] = $data['name'] ?? null; - $this->container['priority'] = $data['priority'] ?? 100; $this->container['regex'] = $data['regex'] ?? null; $this->container['request_condition'] = $data['request_condition'] ?? null; $this->container['response_condition'] = $data['response_condition'] ?? null; $this->container['src'] = $data['src'] ?? null; $this->container['substitution'] = $data['substitution'] ?? null; $this->container['type'] = $data['type'] ?? null; + $this->container['ignore_if_set'] = $data['ignore_if_set'] ?? null; + $this->container['priority'] = $data['priority'] ?? '100'; $this->container['service_id'] = $data['service_id'] ?? null; $this->container['version'] = $data['version'] ?? null; $this->container['created_at'] = $data['created_at'] ?? null; @@ -433,30 +433,6 @@ public function setDst($dst) return $this; } - /** - * Gets ignore_if_set - * - * @return int|null - */ - public function getIgnoreIfSet() - { - return $this->container['ignore_if_set']; - } - - /** - * Sets ignore_if_set - * - * @param int|null $ignore_if_set Don't add the header if it is added already. Only applies to 'set' action. - * - * @return self - */ - public function setIgnoreIfSet($ignore_if_set) - { - $this->container['ignore_if_set'] = $ignore_if_set; - - return $this; - } - /** * Gets name * @@ -481,30 +457,6 @@ public function setName($name) return $this; } - /** - * Gets priority - * - * @return int|null - */ - public function getPriority() - { - return $this->container['priority']; - } - - /** - * Sets priority - * - * @param int|null $priority Priority determines execution order. Lower numbers execute first. - * - * @return self - */ - public function setPriority($priority) - { - $this->container['priority'] = $priority; - - return $this; - } - /** * Gets regex * @@ -659,6 +611,54 @@ public function setType($type) return $this; } + /** + * Gets ignore_if_set + * + * @return string|null + */ + public function getIgnoreIfSet() + { + return $this->container['ignore_if_set']; + } + + /** + * Sets ignore_if_set + * + * @param string|null $ignore_if_set Don't add the header if it is added already. Only applies to 'set' action. Numerical value (\"0\" = false, \"1\" = true) + * + * @return self + */ + public function setIgnoreIfSet($ignore_if_set) + { + $this->container['ignore_if_set'] = $ignore_if_set; + + return $this; + } + + /** + * Gets priority + * + * @return string|null + */ + public function getPriority() + { + return $this->container['priority']; + } + + /** + * Sets priority + * + * @param string|null $priority Priority determines execution order. Lower numbers execute first. + * + * @return self + */ + public function setPriority($priority) + { + $this->container['priority'] = $priority; + + return $this; + } + /** * Gets service_id * @@ -686,7 +686,7 @@ public function setServiceId($service_id) /** * Gets version * - * @return int|null + * @return string|null */ public function getVersion() { @@ -696,7 +696,7 @@ public function getVersion() /** * Sets version * - * @param int|null $version version + * @param string|null $version version * * @return self */ diff --git a/lib/Model/HeaderResponseAdditional.php b/lib/Model/HeaderResponseAdditional.php new file mode 100644 index 00000000..cefe0815 --- /dev/null +++ b/lib/Model/HeaderResponseAdditional.php @@ -0,0 +1,344 @@ + + * @template TKey int|null + * @template TValue mixed|null + */ +class HeaderResponseAdditional implements ModelInterface, ArrayAccess, \JsonSerializable +{ + public const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static $fastlyModelName = 'header_response_additional'; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $fastlyTypes = [ + 'ignore_if_set' => 'string', + 'priority' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ + protected static $fastlyFormats = [ + 'ignore_if_set' => null, + 'priority' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function fastlyTypes() + { + return self::$fastlyTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function fastlyFormats() + { + return self::$fastlyFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'ignore_if_set' => 'ignore_if_set', + 'priority' => 'priority' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'ignore_if_set' => 'setIgnoreIfSet', + 'priority' => 'setPriority' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'ignore_if_set' => 'getIgnoreIfSet', + 'priority' => 'getPriority' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$fastlyModelName; + } + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['ignore_if_set'] = $data['ignore_if_set'] ?? null; + $this->container['priority'] = $data['priority'] ?? '100'; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + + /** + * Gets ignore_if_set + * + * @return string|null + */ + public function getIgnoreIfSet() + { + return $this->container['ignore_if_set']; + } + + /** + * Sets ignore_if_set + * + * @param string|null $ignore_if_set Don't add the header if it is added already. Only applies to 'set' action. Numerical value (\"0\" = false, \"1\" = true) + * + * @return self + */ + public function setIgnoreIfSet($ignore_if_set) + { + $this->container['ignore_if_set'] = $ignore_if_set; + + return $this; + } + + /** + * Gets priority + * + * @return string|null + */ + public function getPriority() + { + return $this->container['priority']; + } + + /** + * Sets priority + * + * @param string|null $priority Priority determines execution order. Lower numbers execute first. + * + * @return self + */ + public function setPriority($priority) + { + $this->container['priority'] = $priority; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset): bool + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed|null + */ + public function offsetGet($offset): mixed + { + return $this->container[$offset] ?? null; + } + + /** + * Sets value based on offset. + * + * @param int|null $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value): void + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset): void + { + unset($this->container[$offset]); + } + + /** + * Serializes the object to a value that can be serialized natively by json_encode(). + * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php + * + * @return mixed Returns data which can be serialized by json_encode(), which is a value + * of any type other than a resource. + */ + public function jsonSerialize(): mixed + { + return ObjectSerializer::sanitizeForSerialization($this); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + /** + * Gets a header-safe presentation of the object + * + * @return string + */ + public function toHeaderValue() + { + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/lib/Model/LoggingAzureblob.php b/lib/Model/LoggingAzureblob.php deleted file mode 100644 index 01b7b5f4..00000000 --- a/lib/Model/LoggingAzureblob.php +++ /dev/null @@ -1,917 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class LoggingAzureblob implements ModelInterface, ArrayAccess, \JsonSerializable -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $fastlyModelName = 'logging_azureblob'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $fastlyTypes = [ - 'name' => 'string', - 'placement' => 'string', - 'format_version' => 'int', - 'response_condition' => 'string', - 'format' => 'string', - 'message_type' => 'string', - 'timestamp_format' => 'string', - 'period' => 'int', - 'gzip_level' => 'int', - 'compression_codec' => 'string', - 'path' => 'string', - 'account_name' => 'string', - 'container' => 'string', - 'sas_token' => 'string', - 'public_key' => 'string', - 'file_max_bytes' => 'int' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $fastlyFormats = [ - 'name' => null, - 'placement' => null, - 'format_version' => null, - 'response_condition' => null, - 'format' => null, - 'message_type' => null, - 'timestamp_format' => null, - 'period' => null, - 'gzip_level' => null, - 'compression_codec' => null, - 'path' => null, - 'account_name' => null, - 'container' => null, - 'sas_token' => null, - 'public_key' => null, - 'file_max_bytes' => null - ]; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @return array - */ - public static function fastlyTypes() - { - return self::$fastlyTypes; - } - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @return array - */ - public static function fastlyFormats() - { - return self::$fastlyFormats; - } - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'name' => 'name', - 'placement' => 'placement', - 'format_version' => 'format_version', - 'response_condition' => 'response_condition', - 'format' => 'format', - 'message_type' => 'message_type', - 'timestamp_format' => 'timestamp_format', - 'period' => 'period', - 'gzip_level' => 'gzip_level', - 'compression_codec' => 'compression_codec', - 'path' => 'path', - 'account_name' => 'account_name', - 'container' => 'container', - 'sas_token' => 'sas_token', - 'public_key' => 'public_key', - 'file_max_bytes' => 'file_max_bytes' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'name' => 'setName', - 'placement' => 'setPlacement', - 'format_version' => 'setFormatVersion', - 'response_condition' => 'setResponseCondition', - 'format' => 'setFormat', - 'message_type' => 'setMessageType', - 'timestamp_format' => 'setTimestampFormat', - 'period' => 'setPeriod', - 'gzip_level' => 'setGzipLevel', - 'compression_codec' => 'setCompressionCodec', - 'path' => 'setPath', - 'account_name' => 'setAccountName', - 'container' => 'setContainer', - 'sas_token' => 'setSasToken', - 'public_key' => 'setPublicKey', - 'file_max_bytes' => 'setFileMaxBytes' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'name' => 'getName', - 'placement' => 'getPlacement', - 'format_version' => 'getFormatVersion', - 'response_condition' => 'getResponseCondition', - 'format' => 'getFormat', - 'message_type' => 'getMessageType', - 'timestamp_format' => 'getTimestampFormat', - 'period' => 'getPeriod', - 'gzip_level' => 'getGzipLevel', - 'compression_codec' => 'getCompressionCodec', - 'path' => 'getPath', - 'account_name' => 'getAccountName', - 'container' => 'getContainer', - 'sas_token' => 'getSasToken', - 'public_key' => 'getPublicKey', - 'file_max_bytes' => 'getFileMaxBytes' - ]; - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @return array - */ - public static function attributeMap() - { - return self::$attributeMap; - } - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @return array - */ - public static function setters() - { - return self::$setters; - } - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @return array - */ - public static function getters() - { - return self::$getters; - } - - /** - * The original name of the model. - * - * @return string - */ - public function getModelName() - { - return self::$fastlyModelName; - } - - const PLACEMENT_NONE = 'none'; - const PLACEMENT_WAF_DEBUG = 'waf_debug'; - const PLACEMENT_NULL = 'null'; - const FORMAT_VERSION_v1 = 1; - const FORMAT_VERSION_v2 = 2; - const MESSAGE_TYPE_CLASSIC = 'classic'; - const MESSAGE_TYPE_LOGGLY = 'loggly'; - const MESSAGE_TYPE_LOGPLEX = 'logplex'; - const MESSAGE_TYPE_BLANK = 'blank'; - const COMPRESSION_CODEC_ZSTD = 'zstd'; - const COMPRESSION_CODEC_SNAPPY = 'snappy'; - const COMPRESSION_CODEC_GZIP = 'gzip'; - - /** - * Gets allowable values of the enum - * - * @return string[] - */ - public function getPlacementAllowableValues() - { - return [ - self::PLACEMENT_NONE, - self::PLACEMENT_WAF_DEBUG, - self::PLACEMENT_NULL, - ]; - } - - /** - * Gets allowable values of the enum - * - * @return string[] - */ - public function getFormatVersionAllowableValues() - { - return [ - self::FORMAT_VERSION_v1, - self::FORMAT_VERSION_v2, - ]; - } - - /** - * Gets allowable values of the enum - * - * @return string[] - */ - public function getMessageTypeAllowableValues() - { - return [ - self::MESSAGE_TYPE_CLASSIC, - self::MESSAGE_TYPE_LOGGLY, - self::MESSAGE_TYPE_LOGPLEX, - self::MESSAGE_TYPE_BLANK, - ]; - } - - /** - * Gets allowable values of the enum - * - * @return string[] - */ - public function getCompressionCodecAllowableValues() - { - return [ - self::COMPRESSION_CODEC_ZSTD, - self::COMPRESSION_CODEC_SNAPPY, - self::COMPRESSION_CODEC_GZIP, - ]; - } - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['name'] = $data['name'] ?? null; - $this->container['placement'] = $data['placement'] ?? null; - $this->container['format_version'] = $data['format_version'] ?? self::FORMAT_VERSION_v2; - $this->container['response_condition'] = $data['response_condition'] ?? null; - $this->container['format'] = $data['format'] ?? '%h %l %u %t "%r" %>s %b'; - $this->container['message_type'] = $data['message_type'] ?? 'classic'; - $this->container['timestamp_format'] = $data['timestamp_format'] ?? null; - $this->container['period'] = $data['period'] ?? 3600; - $this->container['gzip_level'] = $data['gzip_level'] ?? 0; - $this->container['compression_codec'] = $data['compression_codec'] ?? null; - $this->container['path'] = $data['path'] ?? 'null'; - $this->container['account_name'] = $data['account_name'] ?? null; - $this->container['container'] = $data['container'] ?? null; - $this->container['sas_token'] = $data['sas_token'] ?? null; - $this->container['public_key'] = $data['public_key'] ?? 'null'; - $this->container['file_max_bytes'] = $data['file_max_bytes'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - - $allowedValues = $this->getPlacementAllowableValues(); - if (!is_null($this->container['placement']) && !in_array($this->container['placement'], $allowedValues, true)) { - $invalidProperties[] = sprintf( - "invalid value '%s' for 'placement', must be one of '%s'", - $this->container['placement'], - implode("', '", $allowedValues) - ); - } - - $allowedValues = $this->getFormatVersionAllowableValues(); - if (!is_null($this->container['format_version']) && !in_array($this->container['format_version'], $allowedValues, true)) { - $invalidProperties[] = sprintf( - "invalid value '%s' for 'format_version', must be one of '%s'", - $this->container['format_version'], - implode("', '", $allowedValues) - ); - } - - $allowedValues = $this->getMessageTypeAllowableValues(); - if (!is_null($this->container['message_type']) && !in_array($this->container['message_type'], $allowedValues, true)) { - $invalidProperties[] = sprintf( - "invalid value '%s' for 'message_type', must be one of '%s'", - $this->container['message_type'], - implode("', '", $allowedValues) - ); - } - - $allowedValues = $this->getCompressionCodecAllowableValues(); - if (!is_null($this->container['compression_codec']) && !in_array($this->container['compression_codec'], $allowedValues, true)) { - $invalidProperties[] = sprintf( - "invalid value '%s' for 'compression_codec', must be one of '%s'", - $this->container['compression_codec'], - implode("', '", $allowedValues) - ); - } - - if (!is_null($this->container['file_max_bytes']) && ($this->container['file_max_bytes'] < 1048576)) { - $invalidProperties[] = "invalid value for 'file_max_bytes', must be bigger than or equal to 1048576."; - } - - return $invalidProperties; - } - - /** - * Validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - return count($this->listInvalidProperties()) === 0; - } - - - /** - * Gets name - * - * @return string|null - */ - public function getName() - { - return $this->container['name']; - } - - /** - * Sets name - * - * @param string|null $name The name for the real-time logging configuration. - * - * @return self - */ - public function setName($name) - { - $this->container['name'] = $name; - - return $this; - } - - /** - * Gets placement - * - * @return string|null - */ - public function getPlacement() - { - return $this->container['placement']; - } - - /** - * Sets placement - * - * @param string|null $placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. - * - * @return self - */ - public function setPlacement($placement) - { - $allowedValues = $this->getPlacementAllowableValues(); - if (!is_null($placement) && !in_array($placement, $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value '%s' for 'placement', must be one of '%s'", - $placement, - implode("', '", $allowedValues) - ) - ); - } - $this->container['placement'] = $placement; - - return $this; - } - - /** - * Gets format_version - * - * @return int|null - */ - public function getFormatVersion() - { - return $this->container['format_version']; - } - - /** - * Sets format_version - * - * @param int|null $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. - * - * @return self - */ - public function setFormatVersion($format_version) - { - $allowedValues = $this->getFormatVersionAllowableValues(); - if (!is_null($format_version) && !in_array($format_version, $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value '%s' for 'format_version', must be one of '%s'", - $format_version, - implode("', '", $allowedValues) - ) - ); - } - $this->container['format_version'] = $format_version; - - return $this; - } - - /** - * Gets response_condition - * - * @return string|null - */ - public function getResponseCondition() - { - return $this->container['response_condition']; - } - - /** - * Sets response_condition - * - * @param string|null $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. - * - * @return self - */ - public function setResponseCondition($response_condition) - { - $this->container['response_condition'] = $response_condition; - - return $this; - } - - /** - * Gets format - * - * @return string|null - */ - public function getFormat() - { - return $this->container['format']; - } - - /** - * Sets format - * - * @param string|null $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). - * - * @return self - */ - public function setFormat($format) - { - $this->container['format'] = $format; - - return $this; - } - - /** - * Gets message_type - * - * @return string|null - */ - public function getMessageType() - { - return $this->container['message_type']; - } - - /** - * Sets message_type - * - * @param string|null $message_type How the message should be formatted. - * - * @return self - */ - public function setMessageType($message_type) - { - $allowedValues = $this->getMessageTypeAllowableValues(); - if (!is_null($message_type) && !in_array($message_type, $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value '%s' for 'message_type', must be one of '%s'", - $message_type, - implode("', '", $allowedValues) - ) - ); - } - $this->container['message_type'] = $message_type; - - return $this; - } - - /** - * Gets timestamp_format - * - * @return string|null - */ - public function getTimestampFormat() - { - return $this->container['timestamp_format']; - } - - /** - * Sets timestamp_format - * - * @param string|null $timestamp_format A timestamp format - * - * @return self - */ - public function setTimestampFormat($timestamp_format) - { - $this->container['timestamp_format'] = $timestamp_format; - - return $this; - } - - /** - * Gets period - * - * @return int|null - */ - public function getPeriod() - { - return $this->container['period']; - } - - /** - * Sets period - * - * @param int|null $period How frequently log files are finalized so they can be available for reading (in seconds). - * - * @return self - */ - public function setPeriod($period) - { - $this->container['period'] = $period; - - return $this; - } - - /** - * Gets gzip_level - * - * @return int|null - */ - public function getGzipLevel() - { - return $this->container['gzip_level']; - } - - /** - * Sets gzip_level - * - * @param int|null $gzip_level The level of gzip encoding when sending logs (default `0`, no compression). Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. - * - * @return self - */ - public function setGzipLevel($gzip_level) - { - $this->container['gzip_level'] = $gzip_level; - - return $this; - } - - /** - * Gets compression_codec - * - * @return string|null - */ - public function getCompressionCodec() - { - return $this->container['compression_codec']; - } - - /** - * Sets compression_codec - * - * @param string|null $compression_codec The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. - * - * @return self - */ - public function setCompressionCodec($compression_codec) - { - $allowedValues = $this->getCompressionCodecAllowableValues(); - if (!is_null($compression_codec) && !in_array($compression_codec, $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value '%s' for 'compression_codec', must be one of '%s'", - $compression_codec, - implode("', '", $allowedValues) - ) - ); - } - $this->container['compression_codec'] = $compression_codec; - - return $this; - } - - /** - * Gets path - * - * @return string|null - */ - public function getPath() - { - return $this->container['path']; - } - - /** - * Sets path - * - * @param string|null $path The path to upload logs to. - * - * @return self - */ - public function setPath($path) - { - $this->container['path'] = $path; - - return $this; - } - - /** - * Gets account_name - * - * @return string|null - */ - public function getAccountName() - { - return $this->container['account_name']; - } - - /** - * Sets account_name - * - * @param string|null $account_name The unique Azure Blob Storage namespace in which your data objects are stored. Required. - * - * @return self - */ - public function setAccountName($account_name) - { - $this->container['account_name'] = $account_name; - - return $this; - } - - /** - * Gets container - * - * @return string|null - */ - public function getContainer() - { - return $this->container['container']; - } - - /** - * Sets container - * - * @param string|null $container The name of the Azure Blob Storage container in which to store logs. Required. - * - * @return self - */ - public function setContainer($container) - { - $this->container['container'] = $container; - - return $this; - } - - /** - * Gets sas_token - * - * @return string|null - */ - public function getSasToken() - { - return $this->container['sas_token']; - } - - /** - * Sets sas_token - * - * @param string|null $sas_token The Azure shared access signature providing write access to the blob service objects. Be sure to update your token before it expires or the logging functionality will not work. Required. - * - * @return self - */ - public function setSasToken($sas_token) - { - $this->container['sas_token'] = $sas_token; - - return $this; - } - - /** - * Gets public_key - * - * @return string|null - */ - public function getPublicKey() - { - return $this->container['public_key']; - } - - /** - * Sets public_key - * - * @param string|null $public_key A PGP public key that Fastly will use to encrypt your log files before writing them to disk. - * - * @return self - */ - public function setPublicKey($public_key) - { - $this->container['public_key'] = $public_key; - - return $this; - } - - /** - * Gets file_max_bytes - * - * @return int|null - */ - public function getFileMaxBytes() - { - return $this->container['file_max_bytes']; - } - - /** - * Sets file_max_bytes - * - * @param int|null $file_max_bytes The maximum number of bytes for each uploaded file. A value of 0 can be used to indicate there is no limit on the size of uploaded files, otherwise the minimum value is 1048576 bytes (1 MiB.) - * - * @return self - */ - public function setFileMaxBytes($file_max_bytes) - { - - if (!is_null($file_max_bytes) && ($file_max_bytes < 1048576)) { - throw new \InvalidArgumentException('invalid value for $file_max_bytes when calling LoggingAzureblob., must be bigger than or equal to 1048576.'); - } - - $this->container['file_max_bytes'] = $file_max_bytes; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * - * @param integer $offset Offset - * - * @return boolean - */ - public function offsetExists($offset): bool - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * - * @param integer $offset Offset - * - * @return mixed|null - */ - public function offsetGet($offset): mixed - { - return $this->container[$offset] ?? null; - } - - /** - * Sets value based on offset. - * - * @param int|null $offset Offset - * @param mixed $value Value to be set - * - * @return void - */ - public function offsetSet($offset, $value): void - { - if (is_null($offset)) { - $this->container[] = $value; - } else { - $this->container[$offset] = $value; - } - } - - /** - * Unsets offset. - * - * @param integer $offset Offset - * - * @return void - */ - public function offsetUnset($offset): void - { - unset($this->container[$offset]); - } - - /** - * Serializes the object to a value that can be serialized natively by json_encode(). - * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php - * - * @return mixed Returns data which can be serialized by json_encode(), which is a value - * of any type other than a resource. - */ - public function jsonSerialize(): mixed - { - return ObjectSerializer::sanitizeForSerialization($this); - } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString() - { - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } - - /** - * Gets a header-safe presentation of the object - * - * @return string - */ - public function toHeaderValue() - { - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/lib/Model/LoggingAzureblobAllOf.php b/lib/Model/LoggingAzureblobAdditional.php similarity index 96% rename from lib/Model/LoggingAzureblobAllOf.php rename to lib/Model/LoggingAzureblobAdditional.php index 2b61f692..754f3cd6 100644 --- a/lib/Model/LoggingAzureblobAllOf.php +++ b/lib/Model/LoggingAzureblobAdditional.php @@ -1,6 +1,6 @@ container['file_max_bytes'] = $file_max_bytes; diff --git a/lib/Model/LoggingAzureblobResponse.php b/lib/Model/LoggingAzureblobResponse.php index c53d0376..df551509 100644 --- a/lib/Model/LoggingAzureblobResponse.php +++ b/lib/Model/LoggingAzureblobResponse.php @@ -55,25 +55,25 @@ class LoggingAzureblobResponse implements ModelInterface, ArrayAccess, \JsonSeri protected static $fastlyTypes = [ 'name' => 'string', 'placement' => 'string', - 'format_version' => 'int', 'response_condition' => 'string', 'format' => 'string', + 'format_version' => 'string', 'message_type' => 'string', 'timestamp_format' => 'string', - 'period' => 'int', - 'gzip_level' => 'int', 'compression_codec' => 'string', + 'period' => 'string', + 'gzip_level' => 'string', + 'created_at' => '\DateTime', + 'deleted_at' => '\DateTime', + 'updated_at' => '\DateTime', + 'service_id' => 'string', + 'version' => 'string', 'path' => 'string', 'account_name' => 'string', 'container' => 'string', 'sas_token' => 'string', 'public_key' => 'string', - 'file_max_bytes' => 'int', - 'created_at' => '\DateTime', - 'deleted_at' => '\DateTime', - 'updated_at' => '\DateTime', - 'service_id' => 'string', - 'version' => 'int' + 'file_max_bytes' => 'int' ]; /** @@ -86,25 +86,25 @@ class LoggingAzureblobResponse implements ModelInterface, ArrayAccess, \JsonSeri protected static $fastlyFormats = [ 'name' => null, 'placement' => null, - 'format_version' => null, 'response_condition' => null, 'format' => null, + 'format_version' => null, 'message_type' => null, 'timestamp_format' => null, + 'compression_codec' => null, 'period' => null, 'gzip_level' => null, - 'compression_codec' => null, + 'created_at' => 'date-time', + 'deleted_at' => 'date-time', + 'updated_at' => 'date-time', + 'service_id' => null, + 'version' => null, 'path' => null, 'account_name' => null, 'container' => null, 'sas_token' => null, 'public_key' => null, - 'file_max_bytes' => null, - 'created_at' => 'date-time', - 'deleted_at' => 'date-time', - 'updated_at' => 'date-time', - 'service_id' => null, - 'version' => null + 'file_max_bytes' => null ]; /** @@ -136,25 +136,25 @@ public static function fastlyFormats() protected static $attributeMap = [ 'name' => 'name', 'placement' => 'placement', - 'format_version' => 'format_version', 'response_condition' => 'response_condition', 'format' => 'format', + 'format_version' => 'format_version', 'message_type' => 'message_type', 'timestamp_format' => 'timestamp_format', + 'compression_codec' => 'compression_codec', 'period' => 'period', 'gzip_level' => 'gzip_level', - 'compression_codec' => 'compression_codec', + 'created_at' => 'created_at', + 'deleted_at' => 'deleted_at', + 'updated_at' => 'updated_at', + 'service_id' => 'service_id', + 'version' => 'version', 'path' => 'path', 'account_name' => 'account_name', 'container' => 'container', 'sas_token' => 'sas_token', 'public_key' => 'public_key', - 'file_max_bytes' => 'file_max_bytes', - 'created_at' => 'created_at', - 'deleted_at' => 'deleted_at', - 'updated_at' => 'updated_at', - 'service_id' => 'service_id', - 'version' => 'version' + 'file_max_bytes' => 'file_max_bytes' ]; /** @@ -165,25 +165,25 @@ public static function fastlyFormats() protected static $setters = [ 'name' => 'setName', 'placement' => 'setPlacement', - 'format_version' => 'setFormatVersion', 'response_condition' => 'setResponseCondition', 'format' => 'setFormat', + 'format_version' => 'setFormatVersion', 'message_type' => 'setMessageType', 'timestamp_format' => 'setTimestampFormat', + 'compression_codec' => 'setCompressionCodec', 'period' => 'setPeriod', 'gzip_level' => 'setGzipLevel', - 'compression_codec' => 'setCompressionCodec', + 'created_at' => 'setCreatedAt', + 'deleted_at' => 'setDeletedAt', + 'updated_at' => 'setUpdatedAt', + 'service_id' => 'setServiceId', + 'version' => 'setVersion', 'path' => 'setPath', 'account_name' => 'setAccountName', 'container' => 'setContainer', 'sas_token' => 'setSasToken', 'public_key' => 'setPublicKey', - 'file_max_bytes' => 'setFileMaxBytes', - 'created_at' => 'setCreatedAt', - 'deleted_at' => 'setDeletedAt', - 'updated_at' => 'setUpdatedAt', - 'service_id' => 'setServiceId', - 'version' => 'setVersion' + 'file_max_bytes' => 'setFileMaxBytes' ]; /** @@ -194,25 +194,25 @@ public static function fastlyFormats() protected static $getters = [ 'name' => 'getName', 'placement' => 'getPlacement', - 'format_version' => 'getFormatVersion', 'response_condition' => 'getResponseCondition', 'format' => 'getFormat', + 'format_version' => 'getFormatVersion', 'message_type' => 'getMessageType', 'timestamp_format' => 'getTimestampFormat', + 'compression_codec' => 'getCompressionCodec', 'period' => 'getPeriod', 'gzip_level' => 'getGzipLevel', - 'compression_codec' => 'getCompressionCodec', + 'created_at' => 'getCreatedAt', + 'deleted_at' => 'getDeletedAt', + 'updated_at' => 'getUpdatedAt', + 'service_id' => 'getServiceId', + 'version' => 'getVersion', 'path' => 'getPath', 'account_name' => 'getAccountName', 'container' => 'getContainer', 'sas_token' => 'getSasToken', 'public_key' => 'getPublicKey', - 'file_max_bytes' => 'getFileMaxBytes', - 'created_at' => 'getCreatedAt', - 'deleted_at' => 'getDeletedAt', - 'updated_at' => 'getUpdatedAt', - 'service_id' => 'getServiceId', - 'version' => 'getVersion' + 'file_max_bytes' => 'getFileMaxBytes' ]; /** @@ -259,8 +259,8 @@ public function getModelName() const PLACEMENT_NONE = 'none'; const PLACEMENT_WAF_DEBUG = 'waf_debug'; const PLACEMENT_NULL = 'null'; - const FORMAT_VERSION_v1 = 1; - const FORMAT_VERSION_v2 = 2; + const FORMAT_VERSION_v1 = '1'; + const FORMAT_VERSION_v2 = '2'; const MESSAGE_TYPE_CLASSIC = 'classic'; const MESSAGE_TYPE_LOGGLY = 'loggly'; const MESSAGE_TYPE_LOGPLEX = 'logplex'; @@ -342,25 +342,25 @@ public function __construct(array $data = null) { $this->container['name'] = $data['name'] ?? null; $this->container['placement'] = $data['placement'] ?? null; - $this->container['format_version'] = $data['format_version'] ?? self::FORMAT_VERSION_v2; $this->container['response_condition'] = $data['response_condition'] ?? null; $this->container['format'] = $data['format'] ?? '%h %l %u %t "%r" %>s %b'; + $this->container['format_version'] = $data['format_version'] ?? '2'; $this->container['message_type'] = $data['message_type'] ?? 'classic'; $this->container['timestamp_format'] = $data['timestamp_format'] ?? null; - $this->container['period'] = $data['period'] ?? 3600; - $this->container['gzip_level'] = $data['gzip_level'] ?? 0; $this->container['compression_codec'] = $data['compression_codec'] ?? null; + $this->container['period'] = $data['period'] ?? '3600'; + $this->container['gzip_level'] = $data['gzip_level'] ?? '0'; + $this->container['created_at'] = $data['created_at'] ?? null; + $this->container['deleted_at'] = $data['deleted_at'] ?? null; + $this->container['updated_at'] = $data['updated_at'] ?? null; + $this->container['service_id'] = $data['service_id'] ?? null; + $this->container['version'] = $data['version'] ?? null; $this->container['path'] = $data['path'] ?? 'null'; $this->container['account_name'] = $data['account_name'] ?? null; $this->container['container'] = $data['container'] ?? null; $this->container['sas_token'] = $data['sas_token'] ?? null; $this->container['public_key'] = $data['public_key'] ?? 'null'; $this->container['file_max_bytes'] = $data['file_max_bytes'] ?? null; - $this->container['created_at'] = $data['created_at'] ?? null; - $this->container['deleted_at'] = $data['deleted_at'] ?? null; - $this->container['updated_at'] = $data['updated_at'] ?? null; - $this->container['service_id'] = $data['service_id'] ?? null; - $this->container['version'] = $data['version'] ?? null; } /** @@ -486,83 +486,83 @@ public function setPlacement($placement) } /** - * Gets format_version + * Gets response_condition * - * @return int|null + * @return string|null */ - public function getFormatVersion() + public function getResponseCondition() { - return $this->container['format_version']; + return $this->container['response_condition']; } /** - * Sets format_version + * Sets response_condition * - * @param int|null $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. + * @param string|null $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. * * @return self */ - public function setFormatVersion($format_version) + public function setResponseCondition($response_condition) { - $allowedValues = $this->getFormatVersionAllowableValues(); - if (!is_null($format_version) && !in_array($format_version, $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value '%s' for 'format_version', must be one of '%s'", - $format_version, - implode("', '", $allowedValues) - ) - ); - } - $this->container['format_version'] = $format_version; + $this->container['response_condition'] = $response_condition; return $this; } /** - * Gets response_condition + * Gets format * * @return string|null */ - public function getResponseCondition() + public function getFormat() { - return $this->container['response_condition']; + return $this->container['format']; } /** - * Sets response_condition + * Sets format * - * @param string|null $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. + * @param string|null $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). * * @return self */ - public function setResponseCondition($response_condition) + public function setFormat($format) { - $this->container['response_condition'] = $response_condition; + $this->container['format'] = $format; return $this; } /** - * Gets format + * Gets format_version * * @return string|null */ - public function getFormat() + public function getFormatVersion() { - return $this->container['format']; + return $this->container['format_version']; } /** - * Sets format + * Sets format_version * - * @param string|null $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). + * @param string|null $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. * * @return self */ - public function setFormat($format) + public function setFormatVersion($format_version) { - $this->container['format'] = $format; + $allowedValues = $this->getFormatVersionAllowableValues(); + if (!is_null($format_version) && !in_array($format_version, $allowedValues, true)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value '%s' for 'format_version', must be one of '%s'", + $format_version, + implode("', '", $allowedValues) + ) + ); + } + $this->container['format_version'] = $format_version; return $this; } @@ -626,352 +626,352 @@ public function setTimestampFormat($timestamp_format) } /** - * Gets period + * Gets compression_codec * - * @return int|null + * @return string|null */ - public function getPeriod() + public function getCompressionCodec() { - return $this->container['period']; + return $this->container['compression_codec']; } /** - * Sets period + * Sets compression_codec * - * @param int|null $period How frequently log files are finalized so they can be available for reading (in seconds). + * @param string|null $compression_codec The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. * * @return self */ - public function setPeriod($period) + public function setCompressionCodec($compression_codec) { - $this->container['period'] = $period; + $allowedValues = $this->getCompressionCodecAllowableValues(); + if (!is_null($compression_codec) && !in_array($compression_codec, $allowedValues, true)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value '%s' for 'compression_codec', must be one of '%s'", + $compression_codec, + implode("', '", $allowedValues) + ) + ); + } + $this->container['compression_codec'] = $compression_codec; return $this; } /** - * Gets gzip_level + * Gets period * - * @return int|null + * @return string|null */ - public function getGzipLevel() + public function getPeriod() { - return $this->container['gzip_level']; + return $this->container['period']; } /** - * Sets gzip_level + * Sets period * - * @param int|null $gzip_level The level of gzip encoding when sending logs (default `0`, no compression). Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. + * @param string|null $period How frequently log files are finalized so they can be available for reading (in seconds). * * @return self */ - public function setGzipLevel($gzip_level) + public function setPeriod($period) { - $this->container['gzip_level'] = $gzip_level; + $this->container['period'] = $period; return $this; } /** - * Gets compression_codec + * Gets gzip_level * * @return string|null */ - public function getCompressionCodec() + public function getGzipLevel() { - return $this->container['compression_codec']; + return $this->container['gzip_level']; } /** - * Sets compression_codec + * Sets gzip_level * - * @param string|null $compression_codec The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. + * @param string|null $gzip_level The level of gzip encoding when sending logs (default `0`, no compression). Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. * * @return self */ - public function setCompressionCodec($compression_codec) + public function setGzipLevel($gzip_level) { - $allowedValues = $this->getCompressionCodecAllowableValues(); - if (!is_null($compression_codec) && !in_array($compression_codec, $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value '%s' for 'compression_codec', must be one of '%s'", - $compression_codec, - implode("', '", $allowedValues) - ) - ); - } - $this->container['compression_codec'] = $compression_codec; + $this->container['gzip_level'] = $gzip_level; return $this; } /** - * Gets path + * Gets created_at * - * @return string|null + * @return \DateTime|null */ - public function getPath() + public function getCreatedAt() { - return $this->container['path']; + return $this->container['created_at']; } /** - * Sets path + * Sets created_at * - * @param string|null $path The path to upload logs to. + * @param \DateTime|null $created_at Date and time in ISO 8601 format. * * @return self */ - public function setPath($path) + public function setCreatedAt($created_at) { - $this->container['path'] = $path; + $this->container['created_at'] = $created_at; return $this; } /** - * Gets account_name + * Gets deleted_at * - * @return string|null + * @return \DateTime|null */ - public function getAccountName() + public function getDeletedAt() { - return $this->container['account_name']; + return $this->container['deleted_at']; } /** - * Sets account_name + * Sets deleted_at * - * @param string|null $account_name The unique Azure Blob Storage namespace in which your data objects are stored. Required. + * @param \DateTime|null $deleted_at Date and time in ISO 8601 format. * * @return self */ - public function setAccountName($account_name) + public function setDeletedAt($deleted_at) { - $this->container['account_name'] = $account_name; + $this->container['deleted_at'] = $deleted_at; return $this; } /** - * Gets container + * Gets updated_at * - * @return string|null + * @return \DateTime|null */ - public function getContainer() + public function getUpdatedAt() { - return $this->container['container']; + return $this->container['updated_at']; } /** - * Sets container + * Sets updated_at * - * @param string|null $container The name of the Azure Blob Storage container in which to store logs. Required. + * @param \DateTime|null $updated_at Date and time in ISO 8601 format. * * @return self */ - public function setContainer($container) + public function setUpdatedAt($updated_at) { - $this->container['container'] = $container; + $this->container['updated_at'] = $updated_at; return $this; } /** - * Gets sas_token + * Gets service_id * * @return string|null */ - public function getSasToken() + public function getServiceId() { - return $this->container['sas_token']; + return $this->container['service_id']; } /** - * Sets sas_token + * Sets service_id * - * @param string|null $sas_token The Azure shared access signature providing write access to the blob service objects. Be sure to update your token before it expires or the logging functionality will not work. Required. + * @param string|null $service_id service_id * * @return self */ - public function setSasToken($sas_token) + public function setServiceId($service_id) { - $this->container['sas_token'] = $sas_token; + $this->container['service_id'] = $service_id; return $this; } /** - * Gets public_key + * Gets version * * @return string|null */ - public function getPublicKey() + public function getVersion() { - return $this->container['public_key']; + return $this->container['version']; } /** - * Sets public_key + * Sets version * - * @param string|null $public_key A PGP public key that Fastly will use to encrypt your log files before writing them to disk. + * @param string|null $version version * * @return self */ - public function setPublicKey($public_key) + public function setVersion($version) { - $this->container['public_key'] = $public_key; + $this->container['version'] = $version; return $this; } /** - * Gets file_max_bytes + * Gets path * - * @return int|null + * @return string|null */ - public function getFileMaxBytes() + public function getPath() { - return $this->container['file_max_bytes']; + return $this->container['path']; } /** - * Sets file_max_bytes + * Sets path * - * @param int|null $file_max_bytes The maximum number of bytes for each uploaded file. A value of 0 can be used to indicate there is no limit on the size of uploaded files, otherwise the minimum value is 1048576 bytes (1 MiB.) + * @param string|null $path The path to upload logs to. * * @return self */ - public function setFileMaxBytes($file_max_bytes) + public function setPath($path) { - - if (!is_null($file_max_bytes) && ($file_max_bytes < 1048576)) { - throw new \InvalidArgumentException('invalid value for $file_max_bytes when calling LoggingAzureblobResponse., must be bigger than or equal to 1048576.'); - } - - $this->container['file_max_bytes'] = $file_max_bytes; + $this->container['path'] = $path; return $this; } /** - * Gets created_at + * Gets account_name * - * @return \DateTime|null + * @return string|null */ - public function getCreatedAt() + public function getAccountName() { - return $this->container['created_at']; + return $this->container['account_name']; } /** - * Sets created_at + * Sets account_name * - * @param \DateTime|null $created_at Date and time in ISO 8601 format. + * @param string|null $account_name The unique Azure Blob Storage namespace in which your data objects are stored. Required. * * @return self */ - public function setCreatedAt($created_at) + public function setAccountName($account_name) { - $this->container['created_at'] = $created_at; + $this->container['account_name'] = $account_name; return $this; } /** - * Gets deleted_at + * Gets container * - * @return \DateTime|null + * @return string|null */ - public function getDeletedAt() + public function getContainer() { - return $this->container['deleted_at']; + return $this->container['container']; } /** - * Sets deleted_at + * Sets container * - * @param \DateTime|null $deleted_at Date and time in ISO 8601 format. + * @param string|null $container The name of the Azure Blob Storage container in which to store logs. Required. * * @return self */ - public function setDeletedAt($deleted_at) + public function setContainer($container) { - $this->container['deleted_at'] = $deleted_at; + $this->container['container'] = $container; return $this; } /** - * Gets updated_at + * Gets sas_token * - * @return \DateTime|null + * @return string|null */ - public function getUpdatedAt() + public function getSasToken() { - return $this->container['updated_at']; + return $this->container['sas_token']; } /** - * Sets updated_at + * Sets sas_token * - * @param \DateTime|null $updated_at Date and time in ISO 8601 format. + * @param string|null $sas_token The Azure shared access signature providing write access to the blob service objects. Be sure to update your token before it expires or the logging functionality will not work. Required. * * @return self */ - public function setUpdatedAt($updated_at) + public function setSasToken($sas_token) { - $this->container['updated_at'] = $updated_at; + $this->container['sas_token'] = $sas_token; return $this; } /** - * Gets service_id + * Gets public_key * * @return string|null */ - public function getServiceId() + public function getPublicKey() { - return $this->container['service_id']; + return $this->container['public_key']; } /** - * Sets service_id + * Sets public_key * - * @param string|null $service_id service_id + * @param string|null $public_key A PGP public key that Fastly will use to encrypt your log files before writing them to disk. * * @return self */ - public function setServiceId($service_id) + public function setPublicKey($public_key) { - $this->container['service_id'] = $service_id; + $this->container['public_key'] = $public_key; return $this; } /** - * Gets version + * Gets file_max_bytes * * @return int|null */ - public function getVersion() + public function getFileMaxBytes() { - return $this->container['version']; + return $this->container['file_max_bytes']; } /** - * Sets version + * Sets file_max_bytes * - * @param int|null $version version + * @param int|null $file_max_bytes The maximum number of bytes for each uploaded file. A value of 0 can be used to indicate there is no limit on the size of uploaded files, otherwise the minimum value is 1048576 bytes (1 MiB.) * * @return self */ - public function setVersion($version) + public function setFileMaxBytes($file_max_bytes) { - $this->container['version'] = $version; + + if (!is_null($file_max_bytes) && ($file_max_bytes < 1048576)) { + throw new \InvalidArgumentException('invalid value for $file_max_bytes when calling LoggingAzureblobResponse., must be bigger than or equal to 1048576.'); + } + + $this->container['file_max_bytes'] = $file_max_bytes; return $this; } diff --git a/lib/Model/LoggingBigquery.php b/lib/Model/LoggingBigquery.php deleted file mode 100644 index 31fb3ab8..00000000 --- a/lib/Model/LoggingBigquery.php +++ /dev/null @@ -1,714 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class LoggingBigquery implements ModelInterface, ArrayAccess, \JsonSerializable -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $fastlyModelName = 'logging_bigquery'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $fastlyTypes = [ - 'name' => 'string', - 'placement' => 'string', - 'format_version' => 'int', - 'response_condition' => 'string', - 'format' => 'string', - 'user' => 'string', - 'secret_key' => 'string', - 'account_name' => 'string', - 'dataset' => 'string', - 'table' => 'string', - 'template_suffix' => 'string', - 'project_id' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $fastlyFormats = [ - 'name' => null, - 'placement' => null, - 'format_version' => null, - 'response_condition' => null, - 'format' => null, - 'user' => null, - 'secret_key' => null, - 'account_name' => null, - 'dataset' => null, - 'table' => null, - 'template_suffix' => null, - 'project_id' => null - ]; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @return array - */ - public static function fastlyTypes() - { - return self::$fastlyTypes; - } - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @return array - */ - public static function fastlyFormats() - { - return self::$fastlyFormats; - } - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'name' => 'name', - 'placement' => 'placement', - 'format_version' => 'format_version', - 'response_condition' => 'response_condition', - 'format' => 'format', - 'user' => 'user', - 'secret_key' => 'secret_key', - 'account_name' => 'account_name', - 'dataset' => 'dataset', - 'table' => 'table', - 'template_suffix' => 'template_suffix', - 'project_id' => 'project_id' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'name' => 'setName', - 'placement' => 'setPlacement', - 'format_version' => 'setFormatVersion', - 'response_condition' => 'setResponseCondition', - 'format' => 'setFormat', - 'user' => 'setUser', - 'secret_key' => 'setSecretKey', - 'account_name' => 'setAccountName', - 'dataset' => 'setDataset', - 'table' => 'setTable', - 'template_suffix' => 'setTemplateSuffix', - 'project_id' => 'setProjectId' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'name' => 'getName', - 'placement' => 'getPlacement', - 'format_version' => 'getFormatVersion', - 'response_condition' => 'getResponseCondition', - 'format' => 'getFormat', - 'user' => 'getUser', - 'secret_key' => 'getSecretKey', - 'account_name' => 'getAccountName', - 'dataset' => 'getDataset', - 'table' => 'getTable', - 'template_suffix' => 'getTemplateSuffix', - 'project_id' => 'getProjectId' - ]; - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @return array - */ - public static function attributeMap() - { - return self::$attributeMap; - } - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @return array - */ - public static function setters() - { - return self::$setters; - } - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @return array - */ - public static function getters() - { - return self::$getters; - } - - /** - * The original name of the model. - * - * @return string - */ - public function getModelName() - { - return self::$fastlyModelName; - } - - const PLACEMENT_NONE = 'none'; - const PLACEMENT_WAF_DEBUG = 'waf_debug'; - const PLACEMENT_NULL = 'null'; - const FORMAT_VERSION_v1 = 1; - const FORMAT_VERSION_v2 = 2; - - /** - * Gets allowable values of the enum - * - * @return string[] - */ - public function getPlacementAllowableValues() - { - return [ - self::PLACEMENT_NONE, - self::PLACEMENT_WAF_DEBUG, - self::PLACEMENT_NULL, - ]; - } - - /** - * Gets allowable values of the enum - * - * @return string[] - */ - public function getFormatVersionAllowableValues() - { - return [ - self::FORMAT_VERSION_v1, - self::FORMAT_VERSION_v2, - ]; - } - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['name'] = $data['name'] ?? null; - $this->container['placement'] = $data['placement'] ?? null; - $this->container['format_version'] = $data['format_version'] ?? self::FORMAT_VERSION_v2; - $this->container['response_condition'] = $data['response_condition'] ?? null; - $this->container['format'] = $data['format'] ?? null; - $this->container['user'] = $data['user'] ?? null; - $this->container['secret_key'] = $data['secret_key'] ?? null; - $this->container['account_name'] = $data['account_name'] ?? null; - $this->container['dataset'] = $data['dataset'] ?? null; - $this->container['table'] = $data['table'] ?? null; - $this->container['template_suffix'] = $data['template_suffix'] ?? null; - $this->container['project_id'] = $data['project_id'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - - $allowedValues = $this->getPlacementAllowableValues(); - if (!is_null($this->container['placement']) && !in_array($this->container['placement'], $allowedValues, true)) { - $invalidProperties[] = sprintf( - "invalid value '%s' for 'placement', must be one of '%s'", - $this->container['placement'], - implode("', '", $allowedValues) - ); - } - - $allowedValues = $this->getFormatVersionAllowableValues(); - if (!is_null($this->container['format_version']) && !in_array($this->container['format_version'], $allowedValues, true)) { - $invalidProperties[] = sprintf( - "invalid value '%s' for 'format_version', must be one of '%s'", - $this->container['format_version'], - implode("', '", $allowedValues) - ); - } - - return $invalidProperties; - } - - /** - * Validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - return count($this->listInvalidProperties()) === 0; - } - - - /** - * Gets name - * - * @return string|null - */ - public function getName() - { - return $this->container['name']; - } - - /** - * Sets name - * - * @param string|null $name The name of the BigQuery logging object. Used as a primary key for API access. - * - * @return self - */ - public function setName($name) - { - $this->container['name'] = $name; - - return $this; - } - - /** - * Gets placement - * - * @return string|null - */ - public function getPlacement() - { - return $this->container['placement']; - } - - /** - * Sets placement - * - * @param string|null $placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. - * - * @return self - */ - public function setPlacement($placement) - { - $allowedValues = $this->getPlacementAllowableValues(); - if (!is_null($placement) && !in_array($placement, $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value '%s' for 'placement', must be one of '%s'", - $placement, - implode("', '", $allowedValues) - ) - ); - } - $this->container['placement'] = $placement; - - return $this; - } - - /** - * Gets format_version - * - * @return int|null - */ - public function getFormatVersion() - { - return $this->container['format_version']; - } - - /** - * Sets format_version - * - * @param int|null $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. - * - * @return self - */ - public function setFormatVersion($format_version) - { - $allowedValues = $this->getFormatVersionAllowableValues(); - if (!is_null($format_version) && !in_array($format_version, $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value '%s' for 'format_version', must be one of '%s'", - $format_version, - implode("', '", $allowedValues) - ) - ); - } - $this->container['format_version'] = $format_version; - - return $this; - } - - /** - * Gets response_condition - * - * @return string|null - */ - public function getResponseCondition() - { - return $this->container['response_condition']; - } - - /** - * Sets response_condition - * - * @param string|null $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. - * - * @return self - */ - public function setResponseCondition($response_condition) - { - $this->container['response_condition'] = $response_condition; - - return $this; - } - - /** - * Gets format - * - * @return string|null - */ - public function getFormat() - { - return $this->container['format']; - } - - /** - * Sets format - * - * @param string|null $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). Must produce JSON that matches the schema of your BigQuery table. - * - * @return self - */ - public function setFormat($format) - { - $this->container['format'] = $format; - - return $this; - } - - /** - * Gets user - * - * @return string|null - */ - public function getUser() - { - return $this->container['user']; - } - - /** - * Sets user - * - * @param string|null $user Your Google Cloud Platform service account email address. The `client_email` field in your service account authentication JSON. Not required if `account_name` is specified. - * - * @return self - */ - public function setUser($user) - { - $this->container['user'] = $user; - - return $this; - } - - /** - * Gets secret_key - * - * @return string|null - */ - public function getSecretKey() - { - return $this->container['secret_key']; - } - - /** - * Sets secret_key - * - * @param string|null $secret_key Your Google Cloud Platform account secret key. The `private_key` field in your service account authentication JSON. Not required if `account_name` is specified. - * - * @return self - */ - public function setSecretKey($secret_key) - { - $this->container['secret_key'] = $secret_key; - - return $this; - } - - /** - * Gets account_name - * - * @return string|null - */ - public function getAccountName() - { - return $this->container['account_name']; - } - - /** - * Sets account_name - * - * @param string|null $account_name The name of the Google Cloud Platform service account associated with the target log collection service. Not required if `user` and `secret_key` are provided. - * - * @return self - */ - public function setAccountName($account_name) - { - $this->container['account_name'] = $account_name; - - return $this; - } - - /** - * Gets dataset - * - * @return string|null - */ - public function getDataset() - { - return $this->container['dataset']; - } - - /** - * Sets dataset - * - * @param string|null $dataset Your BigQuery dataset. - * - * @return self - */ - public function setDataset($dataset) - { - $this->container['dataset'] = $dataset; - - return $this; - } - - /** - * Gets table - * - * @return string|null - */ - public function getTable() - { - return $this->container['table']; - } - - /** - * Sets table - * - * @param string|null $table Your BigQuery table. - * - * @return self - */ - public function setTable($table) - { - $this->container['table'] = $table; - - return $this; - } - - /** - * Gets template_suffix - * - * @return string|null - */ - public function getTemplateSuffix() - { - return $this->container['template_suffix']; - } - - /** - * Sets template_suffix - * - * @param string|null $template_suffix BigQuery table name suffix template. Optional. - * - * @return self - */ - public function setTemplateSuffix($template_suffix) - { - $this->container['template_suffix'] = $template_suffix; - - return $this; - } - - /** - * Gets project_id - * - * @return string|null - */ - public function getProjectId() - { - return $this->container['project_id']; - } - - /** - * Sets project_id - * - * @param string|null $project_id Your Google Cloud Platform project ID. Required - * - * @return self - */ - public function setProjectId($project_id) - { - $this->container['project_id'] = $project_id; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * - * @param integer $offset Offset - * - * @return boolean - */ - public function offsetExists($offset): bool - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * - * @param integer $offset Offset - * - * @return mixed|null - */ - public function offsetGet($offset): mixed - { - return $this->container[$offset] ?? null; - } - - /** - * Sets value based on offset. - * - * @param int|null $offset Offset - * @param mixed $value Value to be set - * - * @return void - */ - public function offsetSet($offset, $value): void - { - if (is_null($offset)) { - $this->container[] = $value; - } else { - $this->container[$offset] = $value; - } - } - - /** - * Unsets offset. - * - * @param integer $offset Offset - * - * @return void - */ - public function offsetUnset($offset): void - { - unset($this->container[$offset]); - } - - /** - * Serializes the object to a value that can be serialized natively by json_encode(). - * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php - * - * @return mixed Returns data which can be serialized by json_encode(), which is a value - * of any type other than a resource. - */ - public function jsonSerialize(): mixed - { - return ObjectSerializer::sanitizeForSerialization($this); - } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString() - { - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } - - /** - * Gets a header-safe presentation of the object - * - * @return string - */ - public function toHeaderValue() - { - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/lib/Model/LoggingBigqueryAllOf.php b/lib/Model/LoggingBigqueryAdditional.php similarity index 97% rename from lib/Model/LoggingBigqueryAllOf.php rename to lib/Model/LoggingBigqueryAdditional.php index f9df909b..8b25c83a 100644 --- a/lib/Model/LoggingBigqueryAllOf.php +++ b/lib/Model/LoggingBigqueryAdditional.php @@ -1,6 +1,6 @@ 'string', 'placement' => 'string', - 'format_version' => 'int', 'response_condition' => 'string', 'format' => 'string', + 'format_version' => 'string', 'user' => 'string', 'secret_key' => 'string', 'account_name' => 'string', @@ -69,7 +69,7 @@ class LoggingBigqueryResponse implements ModelInterface, ArrayAccess, \JsonSeria 'deleted_at' => '\DateTime', 'updated_at' => '\DateTime', 'service_id' => 'string', - 'version' => 'int' + 'version' => 'string' ]; /** @@ -82,9 +82,9 @@ class LoggingBigqueryResponse implements ModelInterface, ArrayAccess, \JsonSeria protected static $fastlyFormats = [ 'name' => null, 'placement' => null, - 'format_version' => null, 'response_condition' => null, 'format' => null, + 'format_version' => null, 'user' => null, 'secret_key' => null, 'account_name' => null, @@ -128,9 +128,9 @@ public static function fastlyFormats() protected static $attributeMap = [ 'name' => 'name', 'placement' => 'placement', - 'format_version' => 'format_version', 'response_condition' => 'response_condition', 'format' => 'format', + 'format_version' => 'format_version', 'user' => 'user', 'secret_key' => 'secret_key', 'account_name' => 'account_name', @@ -153,9 +153,9 @@ public static function fastlyFormats() protected static $setters = [ 'name' => 'setName', 'placement' => 'setPlacement', - 'format_version' => 'setFormatVersion', 'response_condition' => 'setResponseCondition', 'format' => 'setFormat', + 'format_version' => 'setFormatVersion', 'user' => 'setUser', 'secret_key' => 'setSecretKey', 'account_name' => 'setAccountName', @@ -178,9 +178,9 @@ public static function fastlyFormats() protected static $getters = [ 'name' => 'getName', 'placement' => 'getPlacement', - 'format_version' => 'getFormatVersion', 'response_condition' => 'getResponseCondition', 'format' => 'getFormat', + 'format_version' => 'getFormatVersion', 'user' => 'getUser', 'secret_key' => 'getSecretKey', 'account_name' => 'getAccountName', @@ -239,8 +239,8 @@ public function getModelName() const PLACEMENT_NONE = 'none'; const PLACEMENT_WAF_DEBUG = 'waf_debug'; const PLACEMENT_NULL = 'null'; - const FORMAT_VERSION_v1 = 1; - const FORMAT_VERSION_v2 = 2; + const FORMAT_VERSION_v1 = '1'; + const FORMAT_VERSION_v2 = '2'; /** * Gets allowable values of the enum @@ -286,9 +286,9 @@ public function __construct(array $data = null) { $this->container['name'] = $data['name'] ?? null; $this->container['placement'] = $data['placement'] ?? null; - $this->container['format_version'] = $data['format_version'] ?? self::FORMAT_VERSION_v2; $this->container['response_condition'] = $data['response_condition'] ?? null; $this->container['format'] = $data['format'] ?? null; + $this->container['format_version'] = $data['format_version'] ?? '2'; $this->container['user'] = $data['user'] ?? null; $this->container['secret_key'] = $data['secret_key'] ?? null; $this->container['account_name'] = $data['account_name'] ?? null; @@ -404,83 +404,83 @@ public function setPlacement($placement) } /** - * Gets format_version + * Gets response_condition * - * @return int|null + * @return string|null */ - public function getFormatVersion() + public function getResponseCondition() { - return $this->container['format_version']; + return $this->container['response_condition']; } /** - * Sets format_version + * Sets response_condition * - * @param int|null $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. + * @param string|null $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. * * @return self */ - public function setFormatVersion($format_version) + public function setResponseCondition($response_condition) { - $allowedValues = $this->getFormatVersionAllowableValues(); - if (!is_null($format_version) && !in_array($format_version, $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value '%s' for 'format_version', must be one of '%s'", - $format_version, - implode("', '", $allowedValues) - ) - ); - } - $this->container['format_version'] = $format_version; + $this->container['response_condition'] = $response_condition; return $this; } /** - * Gets response_condition + * Gets format * * @return string|null */ - public function getResponseCondition() + public function getFormat() { - return $this->container['response_condition']; + return $this->container['format']; } /** - * Sets response_condition + * Sets format * - * @param string|null $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. + * @param string|null $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). Must produce JSON that matches the schema of your BigQuery table. * * @return self */ - public function setResponseCondition($response_condition) + public function setFormat($format) { - $this->container['response_condition'] = $response_condition; + $this->container['format'] = $format; return $this; } /** - * Gets format + * Gets format_version * * @return string|null */ - public function getFormat() + public function getFormatVersion() { - return $this->container['format']; + return $this->container['format_version']; } /** - * Sets format + * Sets format_version * - * @param string|null $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). Must produce JSON that matches the schema of your BigQuery table. + * @param string|null $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. * * @return self */ - public function setFormat($format) + public function setFormatVersion($format_version) { - $this->container['format'] = $format; + $allowedValues = $this->getFormatVersionAllowableValues(); + if (!is_null($format_version) && !in_array($format_version, $allowedValues, true)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value '%s' for 'format_version', must be one of '%s'", + $format_version, + implode("', '", $allowedValues) + ) + ); + } + $this->container['format_version'] = $format_version; return $this; } @@ -752,7 +752,7 @@ public function setServiceId($service_id) /** * Gets version * - * @return int|null + * @return string|null */ public function getVersion() { @@ -762,7 +762,7 @@ public function getVersion() /** * Sets version * - * @param int|null $version version + * @param string|null $version version * * @return self */ diff --git a/lib/Model/LoggingCloudfiles.php b/lib/Model/LoggingCloudfiles.php deleted file mode 100644 index 815e937c..00000000 --- a/lib/Model/LoggingCloudfiles.php +++ /dev/null @@ -1,952 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class LoggingCloudfiles implements ModelInterface, ArrayAccess, \JsonSerializable -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $fastlyModelName = 'logging_cloudfiles'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $fastlyTypes = [ - 'name' => 'string', - 'placement' => 'string', - 'format_version' => 'int', - 'response_condition' => 'string', - 'format' => 'string', - 'message_type' => 'string', - 'timestamp_format' => 'string', - 'period' => 'int', - 'gzip_level' => 'int', - 'compression_codec' => 'string', - 'access_key' => 'string', - 'bucket_name' => 'string', - 'path' => 'string', - 'region' => 'string', - 'public_key' => 'string', - 'user' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $fastlyFormats = [ - 'name' => null, - 'placement' => null, - 'format_version' => null, - 'response_condition' => null, - 'format' => null, - 'message_type' => null, - 'timestamp_format' => null, - 'period' => null, - 'gzip_level' => null, - 'compression_codec' => null, - 'access_key' => null, - 'bucket_name' => null, - 'path' => null, - 'region' => null, - 'public_key' => null, - 'user' => null - ]; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @return array - */ - public static function fastlyTypes() - { - return self::$fastlyTypes; - } - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @return array - */ - public static function fastlyFormats() - { - return self::$fastlyFormats; - } - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'name' => 'name', - 'placement' => 'placement', - 'format_version' => 'format_version', - 'response_condition' => 'response_condition', - 'format' => 'format', - 'message_type' => 'message_type', - 'timestamp_format' => 'timestamp_format', - 'period' => 'period', - 'gzip_level' => 'gzip_level', - 'compression_codec' => 'compression_codec', - 'access_key' => 'access_key', - 'bucket_name' => 'bucket_name', - 'path' => 'path', - 'region' => 'region', - 'public_key' => 'public_key', - 'user' => 'user' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'name' => 'setName', - 'placement' => 'setPlacement', - 'format_version' => 'setFormatVersion', - 'response_condition' => 'setResponseCondition', - 'format' => 'setFormat', - 'message_type' => 'setMessageType', - 'timestamp_format' => 'setTimestampFormat', - 'period' => 'setPeriod', - 'gzip_level' => 'setGzipLevel', - 'compression_codec' => 'setCompressionCodec', - 'access_key' => 'setAccessKey', - 'bucket_name' => 'setBucketName', - 'path' => 'setPath', - 'region' => 'setRegion', - 'public_key' => 'setPublicKey', - 'user' => 'setUser' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'name' => 'getName', - 'placement' => 'getPlacement', - 'format_version' => 'getFormatVersion', - 'response_condition' => 'getResponseCondition', - 'format' => 'getFormat', - 'message_type' => 'getMessageType', - 'timestamp_format' => 'getTimestampFormat', - 'period' => 'getPeriod', - 'gzip_level' => 'getGzipLevel', - 'compression_codec' => 'getCompressionCodec', - 'access_key' => 'getAccessKey', - 'bucket_name' => 'getBucketName', - 'path' => 'getPath', - 'region' => 'getRegion', - 'public_key' => 'getPublicKey', - 'user' => 'getUser' - ]; - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @return array - */ - public static function attributeMap() - { - return self::$attributeMap; - } - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @return array - */ - public static function setters() - { - return self::$setters; - } - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @return array - */ - public static function getters() - { - return self::$getters; - } - - /** - * The original name of the model. - * - * @return string - */ - public function getModelName() - { - return self::$fastlyModelName; - } - - const PLACEMENT_NONE = 'none'; - const PLACEMENT_WAF_DEBUG = 'waf_debug'; - const PLACEMENT_NULL = 'null'; - const FORMAT_VERSION_v1 = 1; - const FORMAT_VERSION_v2 = 2; - const MESSAGE_TYPE_CLASSIC = 'classic'; - const MESSAGE_TYPE_LOGGLY = 'loggly'; - const MESSAGE_TYPE_LOGPLEX = 'logplex'; - const MESSAGE_TYPE_BLANK = 'blank'; - const COMPRESSION_CODEC_ZSTD = 'zstd'; - const COMPRESSION_CODEC_SNAPPY = 'snappy'; - const COMPRESSION_CODEC_GZIP = 'gzip'; - const REGION_DFW = 'DFW'; - const REGION_ORD = 'ORD'; - const REGION_IAD = 'IAD'; - const REGION_LON = 'LON'; - const REGION_SYD = 'SYD'; - const REGION_HKG = 'HKG'; - const REGION_NULL = 'null'; - - /** - * Gets allowable values of the enum - * - * @return string[] - */ - public function getPlacementAllowableValues() - { - return [ - self::PLACEMENT_NONE, - self::PLACEMENT_WAF_DEBUG, - self::PLACEMENT_NULL, - ]; - } - - /** - * Gets allowable values of the enum - * - * @return string[] - */ - public function getFormatVersionAllowableValues() - { - return [ - self::FORMAT_VERSION_v1, - self::FORMAT_VERSION_v2, - ]; - } - - /** - * Gets allowable values of the enum - * - * @return string[] - */ - public function getMessageTypeAllowableValues() - { - return [ - self::MESSAGE_TYPE_CLASSIC, - self::MESSAGE_TYPE_LOGGLY, - self::MESSAGE_TYPE_LOGPLEX, - self::MESSAGE_TYPE_BLANK, - ]; - } - - /** - * Gets allowable values of the enum - * - * @return string[] - */ - public function getCompressionCodecAllowableValues() - { - return [ - self::COMPRESSION_CODEC_ZSTD, - self::COMPRESSION_CODEC_SNAPPY, - self::COMPRESSION_CODEC_GZIP, - ]; - } - - /** - * Gets allowable values of the enum - * - * @return string[] - */ - public function getRegionAllowableValues() - { - return [ - self::REGION_DFW, - self::REGION_ORD, - self::REGION_IAD, - self::REGION_LON, - self::REGION_SYD, - self::REGION_HKG, - self::REGION_NULL, - ]; - } - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['name'] = $data['name'] ?? null; - $this->container['placement'] = $data['placement'] ?? null; - $this->container['format_version'] = $data['format_version'] ?? self::FORMAT_VERSION_v2; - $this->container['response_condition'] = $data['response_condition'] ?? null; - $this->container['format'] = $data['format'] ?? '%h %l %u %t "%r" %>s %b'; - $this->container['message_type'] = $data['message_type'] ?? 'classic'; - $this->container['timestamp_format'] = $data['timestamp_format'] ?? null; - $this->container['period'] = $data['period'] ?? 3600; - $this->container['gzip_level'] = $data['gzip_level'] ?? 0; - $this->container['compression_codec'] = $data['compression_codec'] ?? null; - $this->container['access_key'] = $data['access_key'] ?? null; - $this->container['bucket_name'] = $data['bucket_name'] ?? null; - $this->container['path'] = $data['path'] ?? 'null'; - $this->container['region'] = $data['region'] ?? null; - $this->container['public_key'] = $data['public_key'] ?? 'null'; - $this->container['user'] = $data['user'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - - $allowedValues = $this->getPlacementAllowableValues(); - if (!is_null($this->container['placement']) && !in_array($this->container['placement'], $allowedValues, true)) { - $invalidProperties[] = sprintf( - "invalid value '%s' for 'placement', must be one of '%s'", - $this->container['placement'], - implode("', '", $allowedValues) - ); - } - - $allowedValues = $this->getFormatVersionAllowableValues(); - if (!is_null($this->container['format_version']) && !in_array($this->container['format_version'], $allowedValues, true)) { - $invalidProperties[] = sprintf( - "invalid value '%s' for 'format_version', must be one of '%s'", - $this->container['format_version'], - implode("', '", $allowedValues) - ); - } - - $allowedValues = $this->getMessageTypeAllowableValues(); - if (!is_null($this->container['message_type']) && !in_array($this->container['message_type'], $allowedValues, true)) { - $invalidProperties[] = sprintf( - "invalid value '%s' for 'message_type', must be one of '%s'", - $this->container['message_type'], - implode("', '", $allowedValues) - ); - } - - $allowedValues = $this->getCompressionCodecAllowableValues(); - if (!is_null($this->container['compression_codec']) && !in_array($this->container['compression_codec'], $allowedValues, true)) { - $invalidProperties[] = sprintf( - "invalid value '%s' for 'compression_codec', must be one of '%s'", - $this->container['compression_codec'], - implode("', '", $allowedValues) - ); - } - - $allowedValues = $this->getRegionAllowableValues(); - if (!is_null($this->container['region']) && !in_array($this->container['region'], $allowedValues, true)) { - $invalidProperties[] = sprintf( - "invalid value '%s' for 'region', must be one of '%s'", - $this->container['region'], - implode("', '", $allowedValues) - ); - } - - return $invalidProperties; - } - - /** - * Validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - return count($this->listInvalidProperties()) === 0; - } - - - /** - * Gets name - * - * @return string|null - */ - public function getName() - { - return $this->container['name']; - } - - /** - * Sets name - * - * @param string|null $name The name for the real-time logging configuration. - * - * @return self - */ - public function setName($name) - { - $this->container['name'] = $name; - - return $this; - } - - /** - * Gets placement - * - * @return string|null - */ - public function getPlacement() - { - return $this->container['placement']; - } - - /** - * Sets placement - * - * @param string|null $placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. - * - * @return self - */ - public function setPlacement($placement) - { - $allowedValues = $this->getPlacementAllowableValues(); - if (!is_null($placement) && !in_array($placement, $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value '%s' for 'placement', must be one of '%s'", - $placement, - implode("', '", $allowedValues) - ) - ); - } - $this->container['placement'] = $placement; - - return $this; - } - - /** - * Gets format_version - * - * @return int|null - */ - public function getFormatVersion() - { - return $this->container['format_version']; - } - - /** - * Sets format_version - * - * @param int|null $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. - * - * @return self - */ - public function setFormatVersion($format_version) - { - $allowedValues = $this->getFormatVersionAllowableValues(); - if (!is_null($format_version) && !in_array($format_version, $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value '%s' for 'format_version', must be one of '%s'", - $format_version, - implode("', '", $allowedValues) - ) - ); - } - $this->container['format_version'] = $format_version; - - return $this; - } - - /** - * Gets response_condition - * - * @return string|null - */ - public function getResponseCondition() - { - return $this->container['response_condition']; - } - - /** - * Sets response_condition - * - * @param string|null $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. - * - * @return self - */ - public function setResponseCondition($response_condition) - { - $this->container['response_condition'] = $response_condition; - - return $this; - } - - /** - * Gets format - * - * @return string|null - */ - public function getFormat() - { - return $this->container['format']; - } - - /** - * Sets format - * - * @param string|null $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). - * - * @return self - */ - public function setFormat($format) - { - $this->container['format'] = $format; - - return $this; - } - - /** - * Gets message_type - * - * @return string|null - */ - public function getMessageType() - { - return $this->container['message_type']; - } - - /** - * Sets message_type - * - * @param string|null $message_type How the message should be formatted. - * - * @return self - */ - public function setMessageType($message_type) - { - $allowedValues = $this->getMessageTypeAllowableValues(); - if (!is_null($message_type) && !in_array($message_type, $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value '%s' for 'message_type', must be one of '%s'", - $message_type, - implode("', '", $allowedValues) - ) - ); - } - $this->container['message_type'] = $message_type; - - return $this; - } - - /** - * Gets timestamp_format - * - * @return string|null - */ - public function getTimestampFormat() - { - return $this->container['timestamp_format']; - } - - /** - * Sets timestamp_format - * - * @param string|null $timestamp_format A timestamp format - * - * @return self - */ - public function setTimestampFormat($timestamp_format) - { - $this->container['timestamp_format'] = $timestamp_format; - - return $this; - } - - /** - * Gets period - * - * @return int|null - */ - public function getPeriod() - { - return $this->container['period']; - } - - /** - * Sets period - * - * @param int|null $period How frequently log files are finalized so they can be available for reading (in seconds). - * - * @return self - */ - public function setPeriod($period) - { - $this->container['period'] = $period; - - return $this; - } - - /** - * Gets gzip_level - * - * @return int|null - */ - public function getGzipLevel() - { - return $this->container['gzip_level']; - } - - /** - * Sets gzip_level - * - * @param int|null $gzip_level The level of gzip encoding when sending logs (default `0`, no compression). Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. - * - * @return self - */ - public function setGzipLevel($gzip_level) - { - $this->container['gzip_level'] = $gzip_level; - - return $this; - } - - /** - * Gets compression_codec - * - * @return string|null - */ - public function getCompressionCodec() - { - return $this->container['compression_codec']; - } - - /** - * Sets compression_codec - * - * @param string|null $compression_codec The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. - * - * @return self - */ - public function setCompressionCodec($compression_codec) - { - $allowedValues = $this->getCompressionCodecAllowableValues(); - if (!is_null($compression_codec) && !in_array($compression_codec, $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value '%s' for 'compression_codec', must be one of '%s'", - $compression_codec, - implode("', '", $allowedValues) - ) - ); - } - $this->container['compression_codec'] = $compression_codec; - - return $this; - } - - /** - * Gets access_key - * - * @return string|null - */ - public function getAccessKey() - { - return $this->container['access_key']; - } - - /** - * Sets access_key - * - * @param string|null $access_key Your Cloud Files account access key. - * - * @return self - */ - public function setAccessKey($access_key) - { - $this->container['access_key'] = $access_key; - - return $this; - } - - /** - * Gets bucket_name - * - * @return string|null - */ - public function getBucketName() - { - return $this->container['bucket_name']; - } - - /** - * Sets bucket_name - * - * @param string|null $bucket_name The name of your Cloud Files container. - * - * @return self - */ - public function setBucketName($bucket_name) - { - $this->container['bucket_name'] = $bucket_name; - - return $this; - } - - /** - * Gets path - * - * @return string|null - */ - public function getPath() - { - return $this->container['path']; - } - - /** - * Sets path - * - * @param string|null $path The path to upload logs to. - * - * @return self - */ - public function setPath($path) - { - $this->container['path'] = $path; - - return $this; - } - - /** - * Gets region - * - * @return string|null - */ - public function getRegion() - { - return $this->container['region']; - } - - /** - * Sets region - * - * @param string|null $region The region to stream logs to. - * - * @return self - */ - public function setRegion($region) - { - $allowedValues = $this->getRegionAllowableValues(); - if (!is_null($region) && !in_array($region, $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value '%s' for 'region', must be one of '%s'", - $region, - implode("', '", $allowedValues) - ) - ); - } - $this->container['region'] = $region; - - return $this; - } - - /** - * Gets public_key - * - * @return string|null - */ - public function getPublicKey() - { - return $this->container['public_key']; - } - - /** - * Sets public_key - * - * @param string|null $public_key A PGP public key that Fastly will use to encrypt your log files before writing them to disk. - * - * @return self - */ - public function setPublicKey($public_key) - { - $this->container['public_key'] = $public_key; - - return $this; - } - - /** - * Gets user - * - * @return string|null - */ - public function getUser() - { - return $this->container['user']; - } - - /** - * Sets user - * - * @param string|null $user The username for your Cloud Files account. - * - * @return self - */ - public function setUser($user) - { - $this->container['user'] = $user; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * - * @param integer $offset Offset - * - * @return boolean - */ - public function offsetExists($offset): bool - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * - * @param integer $offset Offset - * - * @return mixed|null - */ - public function offsetGet($offset): mixed - { - return $this->container[$offset] ?? null; - } - - /** - * Sets value based on offset. - * - * @param int|null $offset Offset - * @param mixed $value Value to be set - * - * @return void - */ - public function offsetSet($offset, $value): void - { - if (is_null($offset)) { - $this->container[] = $value; - } else { - $this->container[$offset] = $value; - } - } - - /** - * Unsets offset. - * - * @param integer $offset Offset - * - * @return void - */ - public function offsetUnset($offset): void - { - unset($this->container[$offset]); - } - - /** - * Serializes the object to a value that can be serialized natively by json_encode(). - * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php - * - * @return mixed Returns data which can be serialized by json_encode(), which is a value - * of any type other than a resource. - */ - public function jsonSerialize(): mixed - { - return ObjectSerializer::sanitizeForSerialization($this); - } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString() - { - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } - - /** - * Gets a header-safe presentation of the object - * - * @return string - */ - public function toHeaderValue() - { - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/lib/Model/LoggingCloudfilesAllOf.php b/lib/Model/LoggingCloudfilesAdditional.php similarity index 97% rename from lib/Model/LoggingCloudfilesAllOf.php rename to lib/Model/LoggingCloudfilesAdditional.php index 9da31153..0ae1c8b3 100644 --- a/lib/Model/LoggingCloudfilesAllOf.php +++ b/lib/Model/LoggingCloudfilesAdditional.php @@ -1,6 +1,6 @@ 'string', 'placement' => 'string', - 'format_version' => 'int', 'response_condition' => 'string', 'format' => 'string', + 'format_version' => 'string', 'message_type' => 'string', 'timestamp_format' => 'string', - 'period' => 'int', - 'gzip_level' => 'int', 'compression_codec' => 'string', + 'period' => 'string', + 'gzip_level' => 'string', + 'created_at' => '\DateTime', + 'deleted_at' => '\DateTime', + 'updated_at' => '\DateTime', + 'service_id' => 'string', + 'version' => 'string', 'access_key' => 'string', 'bucket_name' => 'string', 'path' => 'string', 'region' => 'string', 'public_key' => 'string', - 'user' => 'string', - 'created_at' => '\DateTime', - 'deleted_at' => '\DateTime', - 'updated_at' => '\DateTime', - 'service_id' => 'string', - 'version' => 'int' + 'user' => 'string' ]; /** @@ -86,25 +86,25 @@ class LoggingCloudfilesResponse implements ModelInterface, ArrayAccess, \JsonSer protected static $fastlyFormats = [ 'name' => null, 'placement' => null, - 'format_version' => null, 'response_condition' => null, 'format' => null, + 'format_version' => null, 'message_type' => null, 'timestamp_format' => null, + 'compression_codec' => null, 'period' => null, 'gzip_level' => null, - 'compression_codec' => null, + 'created_at' => 'date-time', + 'deleted_at' => 'date-time', + 'updated_at' => 'date-time', + 'service_id' => null, + 'version' => null, 'access_key' => null, 'bucket_name' => null, 'path' => null, 'region' => null, 'public_key' => null, - 'user' => null, - 'created_at' => 'date-time', - 'deleted_at' => 'date-time', - 'updated_at' => 'date-time', - 'service_id' => null, - 'version' => null + 'user' => null ]; /** @@ -136,25 +136,25 @@ public static function fastlyFormats() protected static $attributeMap = [ 'name' => 'name', 'placement' => 'placement', - 'format_version' => 'format_version', 'response_condition' => 'response_condition', 'format' => 'format', + 'format_version' => 'format_version', 'message_type' => 'message_type', 'timestamp_format' => 'timestamp_format', + 'compression_codec' => 'compression_codec', 'period' => 'period', 'gzip_level' => 'gzip_level', - 'compression_codec' => 'compression_codec', + 'created_at' => 'created_at', + 'deleted_at' => 'deleted_at', + 'updated_at' => 'updated_at', + 'service_id' => 'service_id', + 'version' => 'version', 'access_key' => 'access_key', 'bucket_name' => 'bucket_name', 'path' => 'path', 'region' => 'region', 'public_key' => 'public_key', - 'user' => 'user', - 'created_at' => 'created_at', - 'deleted_at' => 'deleted_at', - 'updated_at' => 'updated_at', - 'service_id' => 'service_id', - 'version' => 'version' + 'user' => 'user' ]; /** @@ -165,25 +165,25 @@ public static function fastlyFormats() protected static $setters = [ 'name' => 'setName', 'placement' => 'setPlacement', - 'format_version' => 'setFormatVersion', 'response_condition' => 'setResponseCondition', 'format' => 'setFormat', + 'format_version' => 'setFormatVersion', 'message_type' => 'setMessageType', 'timestamp_format' => 'setTimestampFormat', + 'compression_codec' => 'setCompressionCodec', 'period' => 'setPeriod', 'gzip_level' => 'setGzipLevel', - 'compression_codec' => 'setCompressionCodec', + 'created_at' => 'setCreatedAt', + 'deleted_at' => 'setDeletedAt', + 'updated_at' => 'setUpdatedAt', + 'service_id' => 'setServiceId', + 'version' => 'setVersion', 'access_key' => 'setAccessKey', 'bucket_name' => 'setBucketName', 'path' => 'setPath', 'region' => 'setRegion', 'public_key' => 'setPublicKey', - 'user' => 'setUser', - 'created_at' => 'setCreatedAt', - 'deleted_at' => 'setDeletedAt', - 'updated_at' => 'setUpdatedAt', - 'service_id' => 'setServiceId', - 'version' => 'setVersion' + 'user' => 'setUser' ]; /** @@ -194,25 +194,25 @@ public static function fastlyFormats() protected static $getters = [ 'name' => 'getName', 'placement' => 'getPlacement', - 'format_version' => 'getFormatVersion', 'response_condition' => 'getResponseCondition', 'format' => 'getFormat', + 'format_version' => 'getFormatVersion', 'message_type' => 'getMessageType', 'timestamp_format' => 'getTimestampFormat', + 'compression_codec' => 'getCompressionCodec', 'period' => 'getPeriod', 'gzip_level' => 'getGzipLevel', - 'compression_codec' => 'getCompressionCodec', + 'created_at' => 'getCreatedAt', + 'deleted_at' => 'getDeletedAt', + 'updated_at' => 'getUpdatedAt', + 'service_id' => 'getServiceId', + 'version' => 'getVersion', 'access_key' => 'getAccessKey', 'bucket_name' => 'getBucketName', 'path' => 'getPath', 'region' => 'getRegion', 'public_key' => 'getPublicKey', - 'user' => 'getUser', - 'created_at' => 'getCreatedAt', - 'deleted_at' => 'getDeletedAt', - 'updated_at' => 'getUpdatedAt', - 'service_id' => 'getServiceId', - 'version' => 'getVersion' + 'user' => 'getUser' ]; /** @@ -259,8 +259,8 @@ public function getModelName() const PLACEMENT_NONE = 'none'; const PLACEMENT_WAF_DEBUG = 'waf_debug'; const PLACEMENT_NULL = 'null'; - const FORMAT_VERSION_v1 = 1; - const FORMAT_VERSION_v2 = 2; + const FORMAT_VERSION_v1 = '1'; + const FORMAT_VERSION_v2 = '2'; const MESSAGE_TYPE_CLASSIC = 'classic'; const MESSAGE_TYPE_LOGGLY = 'loggly'; const MESSAGE_TYPE_LOGPLEX = 'logplex'; @@ -367,25 +367,25 @@ public function __construct(array $data = null) { $this->container['name'] = $data['name'] ?? null; $this->container['placement'] = $data['placement'] ?? null; - $this->container['format_version'] = $data['format_version'] ?? self::FORMAT_VERSION_v2; $this->container['response_condition'] = $data['response_condition'] ?? null; $this->container['format'] = $data['format'] ?? '%h %l %u %t "%r" %>s %b'; + $this->container['format_version'] = $data['format_version'] ?? '2'; $this->container['message_type'] = $data['message_type'] ?? 'classic'; $this->container['timestamp_format'] = $data['timestamp_format'] ?? null; - $this->container['period'] = $data['period'] ?? 3600; - $this->container['gzip_level'] = $data['gzip_level'] ?? 0; $this->container['compression_codec'] = $data['compression_codec'] ?? null; + $this->container['period'] = $data['period'] ?? '3600'; + $this->container['gzip_level'] = $data['gzip_level'] ?? '0'; + $this->container['created_at'] = $data['created_at'] ?? null; + $this->container['deleted_at'] = $data['deleted_at'] ?? null; + $this->container['updated_at'] = $data['updated_at'] ?? null; + $this->container['service_id'] = $data['service_id'] ?? null; + $this->container['version'] = $data['version'] ?? null; $this->container['access_key'] = $data['access_key'] ?? null; $this->container['bucket_name'] = $data['bucket_name'] ?? null; $this->container['path'] = $data['path'] ?? 'null'; $this->container['region'] = $data['region'] ?? null; $this->container['public_key'] = $data['public_key'] ?? 'null'; $this->container['user'] = $data['user'] ?? null; - $this->container['created_at'] = $data['created_at'] ?? null; - $this->container['deleted_at'] = $data['deleted_at'] ?? null; - $this->container['updated_at'] = $data['updated_at'] ?? null; - $this->container['service_id'] = $data['service_id'] ?? null; - $this->container['version'] = $data['version'] ?? null; } /** @@ -516,83 +516,83 @@ public function setPlacement($placement) } /** - * Gets format_version + * Gets response_condition * - * @return int|null + * @return string|null */ - public function getFormatVersion() + public function getResponseCondition() { - return $this->container['format_version']; + return $this->container['response_condition']; } /** - * Sets format_version + * Sets response_condition * - * @param int|null $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. + * @param string|null $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. * * @return self */ - public function setFormatVersion($format_version) + public function setResponseCondition($response_condition) { - $allowedValues = $this->getFormatVersionAllowableValues(); - if (!is_null($format_version) && !in_array($format_version, $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value '%s' for 'format_version', must be one of '%s'", - $format_version, - implode("', '", $allowedValues) - ) - ); - } - $this->container['format_version'] = $format_version; + $this->container['response_condition'] = $response_condition; return $this; } /** - * Gets response_condition + * Gets format * * @return string|null */ - public function getResponseCondition() + public function getFormat() { - return $this->container['response_condition']; + return $this->container['format']; } /** - * Sets response_condition + * Sets format * - * @param string|null $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. + * @param string|null $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). * * @return self */ - public function setResponseCondition($response_condition) + public function setFormat($format) { - $this->container['response_condition'] = $response_condition; + $this->container['format'] = $format; return $this; } /** - * Gets format + * Gets format_version * * @return string|null */ - public function getFormat() + public function getFormatVersion() { - return $this->container['format']; + return $this->container['format_version']; } /** - * Sets format + * Sets format_version * - * @param string|null $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). + * @param string|null $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. * * @return self */ - public function setFormat($format) + public function setFormatVersion($format_version) { - $this->container['format'] = $format; + $allowedValues = $this->getFormatVersionAllowableValues(); + if (!is_null($format_version) && !in_array($format_version, $allowedValues, true)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value '%s' for 'format_version', must be one of '%s'", + $format_version, + implode("', '", $allowedValues) + ) + ); + } + $this->container['format_version'] = $format_version; return $this; } @@ -656,357 +656,357 @@ public function setTimestampFormat($timestamp_format) } /** - * Gets period + * Gets compression_codec * - * @return int|null + * @return string|null */ - public function getPeriod() + public function getCompressionCodec() { - return $this->container['period']; + return $this->container['compression_codec']; } /** - * Sets period + * Sets compression_codec * - * @param int|null $period How frequently log files are finalized so they can be available for reading (in seconds). + * @param string|null $compression_codec The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. * * @return self */ - public function setPeriod($period) + public function setCompressionCodec($compression_codec) { - $this->container['period'] = $period; + $allowedValues = $this->getCompressionCodecAllowableValues(); + if (!is_null($compression_codec) && !in_array($compression_codec, $allowedValues, true)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value '%s' for 'compression_codec', must be one of '%s'", + $compression_codec, + implode("', '", $allowedValues) + ) + ); + } + $this->container['compression_codec'] = $compression_codec; return $this; } /** - * Gets gzip_level + * Gets period * - * @return int|null + * @return string|null */ - public function getGzipLevel() + public function getPeriod() { - return $this->container['gzip_level']; + return $this->container['period']; } /** - * Sets gzip_level + * Sets period * - * @param int|null $gzip_level The level of gzip encoding when sending logs (default `0`, no compression). Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. + * @param string|null $period How frequently log files are finalized so they can be available for reading (in seconds). * * @return self */ - public function setGzipLevel($gzip_level) + public function setPeriod($period) { - $this->container['gzip_level'] = $gzip_level; + $this->container['period'] = $period; return $this; } /** - * Gets compression_codec + * Gets gzip_level * * @return string|null */ - public function getCompressionCodec() + public function getGzipLevel() { - return $this->container['compression_codec']; + return $this->container['gzip_level']; } /** - * Sets compression_codec + * Sets gzip_level * - * @param string|null $compression_codec The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. + * @param string|null $gzip_level The level of gzip encoding when sending logs (default `0`, no compression). Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. * * @return self */ - public function setCompressionCodec($compression_codec) + public function setGzipLevel($gzip_level) { - $allowedValues = $this->getCompressionCodecAllowableValues(); - if (!is_null($compression_codec) && !in_array($compression_codec, $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value '%s' for 'compression_codec', must be one of '%s'", - $compression_codec, - implode("', '", $allowedValues) - ) - ); - } - $this->container['compression_codec'] = $compression_codec; + $this->container['gzip_level'] = $gzip_level; return $this; } /** - * Gets access_key + * Gets created_at * - * @return string|null + * @return \DateTime|null */ - public function getAccessKey() + public function getCreatedAt() { - return $this->container['access_key']; + return $this->container['created_at']; } /** - * Sets access_key + * Sets created_at * - * @param string|null $access_key Your Cloud Files account access key. + * @param \DateTime|null $created_at Date and time in ISO 8601 format. * * @return self */ - public function setAccessKey($access_key) + public function setCreatedAt($created_at) { - $this->container['access_key'] = $access_key; + $this->container['created_at'] = $created_at; return $this; } /** - * Gets bucket_name + * Gets deleted_at * - * @return string|null + * @return \DateTime|null */ - public function getBucketName() + public function getDeletedAt() { - return $this->container['bucket_name']; + return $this->container['deleted_at']; } /** - * Sets bucket_name + * Sets deleted_at * - * @param string|null $bucket_name The name of your Cloud Files container. + * @param \DateTime|null $deleted_at Date and time in ISO 8601 format. * * @return self */ - public function setBucketName($bucket_name) + public function setDeletedAt($deleted_at) { - $this->container['bucket_name'] = $bucket_name; + $this->container['deleted_at'] = $deleted_at; return $this; } /** - * Gets path + * Gets updated_at * - * @return string|null + * @return \DateTime|null */ - public function getPath() + public function getUpdatedAt() { - return $this->container['path']; + return $this->container['updated_at']; } /** - * Sets path + * Sets updated_at * - * @param string|null $path The path to upload logs to. + * @param \DateTime|null $updated_at Date and time in ISO 8601 format. * * @return self */ - public function setPath($path) + public function setUpdatedAt($updated_at) { - $this->container['path'] = $path; + $this->container['updated_at'] = $updated_at; return $this; } /** - * Gets region + * Gets service_id * * @return string|null */ - public function getRegion() + public function getServiceId() { - return $this->container['region']; + return $this->container['service_id']; } /** - * Sets region + * Sets service_id * - * @param string|null $region The region to stream logs to. + * @param string|null $service_id service_id * * @return self */ - public function setRegion($region) + public function setServiceId($service_id) { - $allowedValues = $this->getRegionAllowableValues(); - if (!is_null($region) && !in_array($region, $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value '%s' for 'region', must be one of '%s'", - $region, - implode("', '", $allowedValues) - ) - ); - } - $this->container['region'] = $region; + $this->container['service_id'] = $service_id; return $this; } /** - * Gets public_key + * Gets version * * @return string|null */ - public function getPublicKey() + public function getVersion() { - return $this->container['public_key']; + return $this->container['version']; } /** - * Sets public_key + * Sets version * - * @param string|null $public_key A PGP public key that Fastly will use to encrypt your log files before writing them to disk. + * @param string|null $version version * * @return self */ - public function setPublicKey($public_key) + public function setVersion($version) { - $this->container['public_key'] = $public_key; + $this->container['version'] = $version; return $this; } /** - * Gets user + * Gets access_key * * @return string|null */ - public function getUser() + public function getAccessKey() { - return $this->container['user']; + return $this->container['access_key']; } /** - * Sets user + * Sets access_key * - * @param string|null $user The username for your Cloud Files account. + * @param string|null $access_key Your Cloud Files account access key. * * @return self */ - public function setUser($user) + public function setAccessKey($access_key) { - $this->container['user'] = $user; + $this->container['access_key'] = $access_key; return $this; } /** - * Gets created_at + * Gets bucket_name * - * @return \DateTime|null + * @return string|null */ - public function getCreatedAt() + public function getBucketName() { - return $this->container['created_at']; + return $this->container['bucket_name']; } /** - * Sets created_at + * Sets bucket_name * - * @param \DateTime|null $created_at Date and time in ISO 8601 format. + * @param string|null $bucket_name The name of your Cloud Files container. * * @return self */ - public function setCreatedAt($created_at) + public function setBucketName($bucket_name) { - $this->container['created_at'] = $created_at; + $this->container['bucket_name'] = $bucket_name; return $this; } /** - * Gets deleted_at + * Gets path * - * @return \DateTime|null + * @return string|null */ - public function getDeletedAt() + public function getPath() { - return $this->container['deleted_at']; + return $this->container['path']; } /** - * Sets deleted_at + * Sets path * - * @param \DateTime|null $deleted_at Date and time in ISO 8601 format. + * @param string|null $path The path to upload logs to. * * @return self */ - public function setDeletedAt($deleted_at) + public function setPath($path) { - $this->container['deleted_at'] = $deleted_at; + $this->container['path'] = $path; return $this; } /** - * Gets updated_at + * Gets region * - * @return \DateTime|null + * @return string|null */ - public function getUpdatedAt() + public function getRegion() { - return $this->container['updated_at']; + return $this->container['region']; } /** - * Sets updated_at + * Sets region * - * @param \DateTime|null $updated_at Date and time in ISO 8601 format. + * @param string|null $region The region to stream logs to. * * @return self */ - public function setUpdatedAt($updated_at) + public function setRegion($region) { - $this->container['updated_at'] = $updated_at; + $allowedValues = $this->getRegionAllowableValues(); + if (!is_null($region) && !in_array($region, $allowedValues, true)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value '%s' for 'region', must be one of '%s'", + $region, + implode("', '", $allowedValues) + ) + ); + } + $this->container['region'] = $region; return $this; } /** - * Gets service_id + * Gets public_key * * @return string|null */ - public function getServiceId() + public function getPublicKey() { - return $this->container['service_id']; + return $this->container['public_key']; } /** - * Sets service_id + * Sets public_key * - * @param string|null $service_id service_id + * @param string|null $public_key A PGP public key that Fastly will use to encrypt your log files before writing them to disk. * * @return self */ - public function setServiceId($service_id) + public function setPublicKey($public_key) { - $this->container['service_id'] = $service_id; + $this->container['public_key'] = $public_key; return $this; } /** - * Gets version + * Gets user * - * @return int|null + * @return string|null */ - public function getVersion() + public function getUser() { - return $this->container['version']; + return $this->container['user']; } /** - * Sets version + * Sets user * - * @param int|null $version version + * @param string|null $user The username for your Cloud Files account. * * @return self */ - public function setVersion($version) + public function setUser($user) { - $this->container['version'] = $version; + $this->container['user'] = $user; return $this; } diff --git a/lib/Model/LoggingCommon.php b/lib/Model/LoggingCommon.php index fedb8a28..f7077b60 100644 --- a/lib/Model/LoggingCommon.php +++ b/lib/Model/LoggingCommon.php @@ -55,7 +55,6 @@ class LoggingCommon implements ModelInterface, ArrayAccess, \JsonSerializable protected static $fastlyTypes = [ 'name' => 'string', 'placement' => 'string', - 'format_version' => 'int', 'response_condition' => 'string', 'format' => 'string' ]; @@ -70,7 +69,6 @@ class LoggingCommon implements ModelInterface, ArrayAccess, \JsonSerializable protected static $fastlyFormats = [ 'name' => null, 'placement' => null, - 'format_version' => null, 'response_condition' => null, 'format' => null ]; @@ -104,7 +102,6 @@ public static function fastlyFormats() protected static $attributeMap = [ 'name' => 'name', 'placement' => 'placement', - 'format_version' => 'format_version', 'response_condition' => 'response_condition', 'format' => 'format' ]; @@ -117,7 +114,6 @@ public static function fastlyFormats() protected static $setters = [ 'name' => 'setName', 'placement' => 'setPlacement', - 'format_version' => 'setFormatVersion', 'response_condition' => 'setResponseCondition', 'format' => 'setFormat' ]; @@ -130,7 +126,6 @@ public static function fastlyFormats() protected static $getters = [ 'name' => 'getName', 'placement' => 'getPlacement', - 'format_version' => 'getFormatVersion', 'response_condition' => 'getResponseCondition', 'format' => 'getFormat' ]; @@ -179,8 +174,6 @@ public function getModelName() const PLACEMENT_NONE = 'none'; const PLACEMENT_WAF_DEBUG = 'waf_debug'; const PLACEMENT_NULL = 'null'; - const FORMAT_VERSION_v1 = 1; - const FORMAT_VERSION_v2 = 2; /** * Gets allowable values of the enum @@ -196,19 +189,6 @@ public function getPlacementAllowableValues() ]; } - /** - * Gets allowable values of the enum - * - * @return string[] - */ - public function getFormatVersionAllowableValues() - { - return [ - self::FORMAT_VERSION_v1, - self::FORMAT_VERSION_v2, - ]; - } - /** * Associative array for storing property values * @@ -226,7 +206,6 @@ public function __construct(array $data = null) { $this->container['name'] = $data['name'] ?? null; $this->container['placement'] = $data['placement'] ?? null; - $this->container['format_version'] = $data['format_version'] ?? self::FORMAT_VERSION_v2; $this->container['response_condition'] = $data['response_condition'] ?? null; $this->container['format'] = $data['format'] ?? '%h %l %u %t "%r" %>s %b'; } @@ -249,15 +228,6 @@ public function listInvalidProperties() ); } - $allowedValues = $this->getFormatVersionAllowableValues(); - if (!is_null($this->container['format_version']) && !in_array($this->container['format_version'], $allowedValues, true)) { - $invalidProperties[] = sprintf( - "invalid value '%s' for 'format_version', must be one of '%s'", - $this->container['format_version'], - implode("', '", $allowedValues) - ); - } - return $invalidProperties; } @@ -331,40 +301,6 @@ public function setPlacement($placement) return $this; } - /** - * Gets format_version - * - * @return int|null - */ - public function getFormatVersion() - { - return $this->container['format_version']; - } - - /** - * Sets format_version - * - * @param int|null $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. - * - * @return self - */ - public function setFormatVersion($format_version) - { - $allowedValues = $this->getFormatVersionAllowableValues(); - if (!is_null($format_version) && !in_array($format_version, $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value '%s' for 'format_version', must be one of '%s'", - $format_version, - implode("', '", $allowedValues) - ) - ); - } - $this->container['format_version'] = $format_version; - - return $this; - } - /** * Gets response_condition * diff --git a/lib/Model/LoggingLoggly.php b/lib/Model/LoggingCommonResponse.php similarity index 88% rename from lib/Model/LoggingLoggly.php rename to lib/Model/LoggingCommonResponse.php index 082d4bd3..97b4fa57 100644 --- a/lib/Model/LoggingLoggly.php +++ b/lib/Model/LoggingCommonResponse.php @@ -1,6 +1,6 @@ 'string', 'placement' => 'string', - 'format_version' => 'int', 'response_condition' => 'string', 'format' => 'string', - 'token' => 'string' + 'format_version' => 'string' ]; /** @@ -71,10 +70,9 @@ class LoggingLoggly implements ModelInterface, ArrayAccess, \JsonSerializable protected static $fastlyFormats = [ 'name' => null, 'placement' => null, - 'format_version' => null, 'response_condition' => null, 'format' => null, - 'token' => null + 'format_version' => null ]; /** @@ -106,10 +104,9 @@ public static function fastlyFormats() protected static $attributeMap = [ 'name' => 'name', 'placement' => 'placement', - 'format_version' => 'format_version', 'response_condition' => 'response_condition', 'format' => 'format', - 'token' => 'token' + 'format_version' => 'format_version' ]; /** @@ -120,10 +117,9 @@ public static function fastlyFormats() protected static $setters = [ 'name' => 'setName', 'placement' => 'setPlacement', - 'format_version' => 'setFormatVersion', 'response_condition' => 'setResponseCondition', 'format' => 'setFormat', - 'token' => 'setToken' + 'format_version' => 'setFormatVersion' ]; /** @@ -134,10 +130,9 @@ public static function fastlyFormats() protected static $getters = [ 'name' => 'getName', 'placement' => 'getPlacement', - 'format_version' => 'getFormatVersion', 'response_condition' => 'getResponseCondition', 'format' => 'getFormat', - 'token' => 'getToken' + 'format_version' => 'getFormatVersion' ]; /** @@ -184,8 +179,8 @@ public function getModelName() const PLACEMENT_NONE = 'none'; const PLACEMENT_WAF_DEBUG = 'waf_debug'; const PLACEMENT_NULL = 'null'; - const FORMAT_VERSION_v1 = 1; - const FORMAT_VERSION_v2 = 2; + const FORMAT_VERSION_v1 = '1'; + const FORMAT_VERSION_v2 = '2'; /** * Gets allowable values of the enum @@ -231,10 +226,9 @@ public function __construct(array $data = null) { $this->container['name'] = $data['name'] ?? null; $this->container['placement'] = $data['placement'] ?? null; - $this->container['format_version'] = $data['format_version'] ?? self::FORMAT_VERSION_v2; $this->container['response_condition'] = $data['response_condition'] ?? null; $this->container['format'] = $data['format'] ?? '%h %l %u %t "%r" %>s %b'; - $this->container['token'] = $data['token'] ?? null; + $this->container['format_version'] = $data['format_version'] ?? '2'; } /** @@ -337,40 +331,6 @@ public function setPlacement($placement) return $this; } - /** - * Gets format_version - * - * @return int|null - */ - public function getFormatVersion() - { - return $this->container['format_version']; - } - - /** - * Sets format_version - * - * @param int|null $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. - * - * @return self - */ - public function setFormatVersion($format_version) - { - $allowedValues = $this->getFormatVersionAllowableValues(); - if (!is_null($format_version) && !in_array($format_version, $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value '%s' for 'format_version', must be one of '%s'", - $format_version, - implode("', '", $allowedValues) - ) - ); - } - $this->container['format_version'] = $format_version; - - return $this; - } - /** * Gets response_condition * @@ -420,25 +380,35 @@ public function setFormat($format) } /** - * Gets token + * Gets format_version * * @return string|null */ - public function getToken() + public function getFormatVersion() { - return $this->container['token']; + return $this->container['format_version']; } /** - * Sets token + * Sets format_version * - * @param string|null $token The token to use for authentication ([https://www.loggly.com/docs/customer-token-authentication-token/](https://www.loggly.com/docs/customer-token-authentication-token/)). + * @param string|null $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. * * @return self */ - public function setToken($token) + public function setFormatVersion($format_version) { - $this->container['token'] = $token; + $allowedValues = $this->getFormatVersionAllowableValues(); + if (!is_null($format_version) && !in_array($format_version, $allowedValues, true)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value '%s' for 'format_version', must be one of '%s'", + $format_version, + implode("', '", $allowedValues) + ) + ); + } + $this->container['format_version'] = $format_version; return $this; } diff --git a/lib/Model/LoggingLogshuttle.php b/lib/Model/LoggingCommonResponseAllOf.php similarity index 72% rename from lib/Model/LoggingLogshuttle.php rename to lib/Model/LoggingCommonResponseAllOf.php index 078f5ec2..ce8d9257 100644 --- a/lib/Model/LoggingLogshuttle.php +++ b/lib/Model/LoggingCommonResponseAllOf.php @@ -1,6 +1,6 @@ 'string', 'placement' => 'string', - 'format_version' => 'int', 'response_condition' => 'string', - 'format' => 'string', - 'token' => 'string', - 'url' => 'string' + 'format' => 'string' ]; /** @@ -72,11 +69,8 @@ class LoggingLogshuttle implements ModelInterface, ArrayAccess, \JsonSerializabl protected static $fastlyFormats = [ 'name' => null, 'placement' => null, - 'format_version' => null, 'response_condition' => null, - 'format' => null, - 'token' => null, - 'url' => null + 'format' => null ]; /** @@ -108,11 +102,8 @@ public static function fastlyFormats() protected static $attributeMap = [ 'name' => 'name', 'placement' => 'placement', - 'format_version' => 'format_version', 'response_condition' => 'response_condition', - 'format' => 'format', - 'token' => 'token', - 'url' => 'url' + 'format' => 'format' ]; /** @@ -123,11 +114,8 @@ public static function fastlyFormats() protected static $setters = [ 'name' => 'setName', 'placement' => 'setPlacement', - 'format_version' => 'setFormatVersion', 'response_condition' => 'setResponseCondition', - 'format' => 'setFormat', - 'token' => 'setToken', - 'url' => 'setUrl' + 'format' => 'setFormat' ]; /** @@ -138,11 +126,8 @@ public static function fastlyFormats() protected static $getters = [ 'name' => 'getName', 'placement' => 'getPlacement', - 'format_version' => 'getFormatVersion', 'response_condition' => 'getResponseCondition', - 'format' => 'getFormat', - 'token' => 'getToken', - 'url' => 'getUrl' + 'format' => 'getFormat' ]; /** @@ -189,8 +174,6 @@ public function getModelName() const PLACEMENT_NONE = 'none'; const PLACEMENT_WAF_DEBUG = 'waf_debug'; const PLACEMENT_NULL = 'null'; - const FORMAT_VERSION_v1 = 1; - const FORMAT_VERSION_v2 = 2; /** * Gets allowable values of the enum @@ -206,19 +189,6 @@ public function getPlacementAllowableValues() ]; } - /** - * Gets allowable values of the enum - * - * @return string[] - */ - public function getFormatVersionAllowableValues() - { - return [ - self::FORMAT_VERSION_v1, - self::FORMAT_VERSION_v2, - ]; - } - /** * Associative array for storing property values * @@ -236,11 +206,8 @@ public function __construct(array $data = null) { $this->container['name'] = $data['name'] ?? null; $this->container['placement'] = $data['placement'] ?? null; - $this->container['format_version'] = $data['format_version'] ?? self::FORMAT_VERSION_v2; $this->container['response_condition'] = $data['response_condition'] ?? null; $this->container['format'] = $data['format'] ?? '%h %l %u %t "%r" %>s %b'; - $this->container['token'] = $data['token'] ?? null; - $this->container['url'] = $data['url'] ?? null; } /** @@ -261,15 +228,6 @@ public function listInvalidProperties() ); } - $allowedValues = $this->getFormatVersionAllowableValues(); - if (!is_null($this->container['format_version']) && !in_array($this->container['format_version'], $allowedValues, true)) { - $invalidProperties[] = sprintf( - "invalid value '%s' for 'format_version', must be one of '%s'", - $this->container['format_version'], - implode("', '", $allowedValues) - ); - } - return $invalidProperties; } @@ -343,40 +301,6 @@ public function setPlacement($placement) return $this; } - /** - * Gets format_version - * - * @return int|null - */ - public function getFormatVersion() - { - return $this->container['format_version']; - } - - /** - * Sets format_version - * - * @param int|null $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. - * - * @return self - */ - public function setFormatVersion($format_version) - { - $allowedValues = $this->getFormatVersionAllowableValues(); - if (!is_null($format_version) && !in_array($format_version, $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value '%s' for 'format_version', must be one of '%s'", - $format_version, - implode("', '", $allowedValues) - ) - ); - } - $this->container['format_version'] = $format_version; - - return $this; - } - /** * Gets response_condition * @@ -424,54 +348,6 @@ public function setFormat($format) return $this; } - - /** - * Gets token - * - * @return string|null - */ - public function getToken() - { - return $this->container['token']; - } - - /** - * Sets token - * - * @param string|null $token The data authentication token associated with this endpoint. - * - * @return self - */ - public function setToken($token) - { - $this->container['token'] = $token; - - return $this; - } - - /** - * Gets url - * - * @return string|null - */ - public function getUrl() - { - return $this->container['url']; - } - - /** - * Sets url - * - * @param string|null $url The URL to stream logs to. - * - * @return self - */ - public function setUrl($url) - { - $this->container['url'] = $url; - - return $this; - } /** * Returns true if offset exists. False otherwise. * diff --git a/lib/Model/LoggingCommonResponseAllOf1.php b/lib/Model/LoggingCommonResponseAllOf1.php new file mode 100644 index 00000000..f90e58bf --- /dev/null +++ b/lib/Model/LoggingCommonResponseAllOf1.php @@ -0,0 +1,348 @@ + + * @template TKey int|null + * @template TValue mixed|null + */ +class LoggingCommonResponseAllOf1 implements ModelInterface, ArrayAccess, \JsonSerializable +{ + public const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static $fastlyModelName = 'logging_common_response_allOf_1'; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $fastlyTypes = [ + 'format_version' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ + protected static $fastlyFormats = [ + 'format_version' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function fastlyTypes() + { + return self::$fastlyTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function fastlyFormats() + { + return self::$fastlyFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'format_version' => 'format_version' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'format_version' => 'setFormatVersion' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'format_version' => 'getFormatVersion' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$fastlyModelName; + } + + const FORMAT_VERSION_v1 = '1'; + const FORMAT_VERSION_v2 = '2'; + + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getFormatVersionAllowableValues() + { + return [ + self::FORMAT_VERSION_v1, + self::FORMAT_VERSION_v2, + ]; + } + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['format_version'] = $data['format_version'] ?? '2'; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + $allowedValues = $this->getFormatVersionAllowableValues(); + if (!is_null($this->container['format_version']) && !in_array($this->container['format_version'], $allowedValues, true)) { + $invalidProperties[] = sprintf( + "invalid value '%s' for 'format_version', must be one of '%s'", + $this->container['format_version'], + implode("', '", $allowedValues) + ); + } + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + + /** + * Gets format_version + * + * @return string|null + */ + public function getFormatVersion() + { + return $this->container['format_version']; + } + + /** + * Sets format_version + * + * @param string|null $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. + * + * @return self + */ + public function setFormatVersion($format_version) + { + $allowedValues = $this->getFormatVersionAllowableValues(); + if (!is_null($format_version) && !in_array($format_version, $allowedValues, true)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value '%s' for 'format_version', must be one of '%s'", + $format_version, + implode("', '", $allowedValues) + ) + ); + } + $this->container['format_version'] = $format_version; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset): bool + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed|null + */ + public function offsetGet($offset): mixed + { + return $this->container[$offset] ?? null; + } + + /** + * Sets value based on offset. + * + * @param int|null $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value): void + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset): void + { + unset($this->container[$offset]); + } + + /** + * Serializes the object to a value that can be serialized natively by json_encode(). + * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php + * + * @return mixed Returns data which can be serialized by json_encode(), which is a value + * of any type other than a resource. + */ + public function jsonSerialize(): mixed + { + return ObjectSerializer::sanitizeForSerialization($this); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + /** + * Gets a header-safe presentation of the object + * + * @return string + */ + public function toHeaderValue() + { + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/lib/Model/LoggingDatadog.php b/lib/Model/LoggingDatadog.php deleted file mode 100644 index 048defa8..00000000 --- a/lib/Model/LoggingDatadog.php +++ /dev/null @@ -1,598 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class LoggingDatadog implements ModelInterface, ArrayAccess, \JsonSerializable -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $fastlyModelName = 'logging_datadog'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $fastlyTypes = [ - 'name' => 'string', - 'placement' => 'string', - 'format_version' => 'int', - 'response_condition' => 'string', - 'format' => 'string', - 'region' => 'string', - 'token' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $fastlyFormats = [ - 'name' => null, - 'placement' => null, - 'format_version' => null, - 'response_condition' => null, - 'format' => null, - 'region' => null, - 'token' => null - ]; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @return array - */ - public static function fastlyTypes() - { - return self::$fastlyTypes; - } - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @return array - */ - public static function fastlyFormats() - { - return self::$fastlyFormats; - } - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'name' => 'name', - 'placement' => 'placement', - 'format_version' => 'format_version', - 'response_condition' => 'response_condition', - 'format' => 'format', - 'region' => 'region', - 'token' => 'token' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'name' => 'setName', - 'placement' => 'setPlacement', - 'format_version' => 'setFormatVersion', - 'response_condition' => 'setResponseCondition', - 'format' => 'setFormat', - 'region' => 'setRegion', - 'token' => 'setToken' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'name' => 'getName', - 'placement' => 'getPlacement', - 'format_version' => 'getFormatVersion', - 'response_condition' => 'getResponseCondition', - 'format' => 'getFormat', - 'region' => 'getRegion', - 'token' => 'getToken' - ]; - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @return array - */ - public static function attributeMap() - { - return self::$attributeMap; - } - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @return array - */ - public static function setters() - { - return self::$setters; - } - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @return array - */ - public static function getters() - { - return self::$getters; - } - - /** - * The original name of the model. - * - * @return string - */ - public function getModelName() - { - return self::$fastlyModelName; - } - - const PLACEMENT_NONE = 'none'; - const PLACEMENT_WAF_DEBUG = 'waf_debug'; - const PLACEMENT_NULL = 'null'; - const FORMAT_VERSION_v1 = 1; - const FORMAT_VERSION_v2 = 2; - const REGION_US = 'US'; - const REGION_EU = 'EU'; - - /** - * Gets allowable values of the enum - * - * @return string[] - */ - public function getPlacementAllowableValues() - { - return [ - self::PLACEMENT_NONE, - self::PLACEMENT_WAF_DEBUG, - self::PLACEMENT_NULL, - ]; - } - - /** - * Gets allowable values of the enum - * - * @return string[] - */ - public function getFormatVersionAllowableValues() - { - return [ - self::FORMAT_VERSION_v1, - self::FORMAT_VERSION_v2, - ]; - } - - /** - * Gets allowable values of the enum - * - * @return string[] - */ - public function getRegionAllowableValues() - { - return [ - self::REGION_US, - self::REGION_EU, - ]; - } - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['name'] = $data['name'] ?? null; - $this->container['placement'] = $data['placement'] ?? null; - $this->container['format_version'] = $data['format_version'] ?? self::FORMAT_VERSION_v2; - $this->container['response_condition'] = $data['response_condition'] ?? null; - $this->container['format'] = $data['format'] ?? '{"ddsource":"fastly","service":"%{req.service_id}V","date":"%{begin:%Y-%m-%dT%H:%M:%S%Z}t","time_start":"%{begin:%Y-%m-%dT%H:%M:%S%Z}t","time_end":"%{end:%Y-%m-%dT%H:%M:%S%Z}t","http":{"request_time_ms":"%D","method":"%m","url":"%{json.escape(req.url)}V","useragent":"%{User-Agent}i","referer":"%{Referer}i","protocol":"%H","request_x_forwarded_for":"%{X-Forwarded-For}i","status_code":"%s"},"network":{"client":{"ip":"%h","name":"%{client.as.name}V","number":"%{client.as.number}V","connection_speed":"%{client.geo.conn_speed}V"},"destination":{"ip":"%A"},"geoip":{"geo_city":"%{client.geo.city.utf8}V","geo_country_code":"%{client.geo.country_code}V","geo_continent_code":"%{client.geo.continent_code}V","geo_region":"%{client.geo.region}V"},"bytes_written":"%B","bytes_read":"%{req.body_bytes_read}V"},"host":"%{Fastly-Orig-Host}i","origin_host":"%v","is_ipv6":"%{if(req.is_ipv6, \"true\", \"false\")}V","is_tls":"%{if(req.is_ssl, \"true\", \"false\")}V","tls_client_protocol":"%{json.escape(tls.client.protocol)}V","tls_client_servername":"%{json.escape(tls.client.servername)}V","tls_client_cipher":"%{json.escape(tls.client.cipher)}V","tls_client_cipher_sha":"%{json.escape(tls.client.ciphers_sha)}V","tls_client_tlsexts_sha":"%{json.escape(tls.client.tlsexts_sha)}V","is_h2":"%{if(fastly_info.is_h2, \"true\", \"false\")}V","is_h2_push":"%{if(fastly_info.h2.is_push, \"true\", \"false\")}V","h2_stream_id":"%{fastly_info.h2.stream_id}V","request_accept_content":"%{Accept}i","request_accept_language":"%{Accept-Language}i","request_accept_encoding":"%{Accept-Encoding}i","request_accept_charset":"%{Accept-Charset}i","request_connection":"%{Connection}i","request_dnt":"%{DNT}i","request_forwarded":"%{Forwarded}i","request_via":"%{Via}i","request_cache_control":"%{Cache-Control}i","request_x_requested_with":"%{X-Requested-With}i","request_x_att_device_id":"%{X-ATT-Device-Id}i","content_type":"%{Content-Type}o","is_cacheable":"%{if(fastly_info.state~\"^(HIT|MISS)$\", \"true\", \"false\")}V","response_age":"%{Age}o","response_cache_control":"%{Cache-Control}o","response_expires":"%{Expires}o","response_last_modified":"%{Last-Modified}o","response_tsv":"%{TSV}o","server_datacenter":"%{server.datacenter}V","req_header_size":"%{req.header_bytes_read}V","resp_header_size":"%{resp.header_bytes_written}V","socket_cwnd":"%{client.socket.cwnd}V","socket_nexthop":"%{client.socket.nexthop}V","socket_tcpi_rcv_mss":"%{client.socket.tcpi_rcv_mss}V","socket_tcpi_snd_mss":"%{client.socket.tcpi_snd_mss}V","socket_tcpi_rtt":"%{client.socket.tcpi_rtt}V","socket_tcpi_rttvar":"%{client.socket.tcpi_rttvar}V","socket_tcpi_rcv_rtt":"%{client.socket.tcpi_rcv_rtt}V","socket_tcpi_rcv_space":"%{client.socket.tcpi_rcv_space}V","socket_tcpi_last_data_sent":"%{client.socket.tcpi_last_data_sent}V","socket_tcpi_total_retrans":"%{client.socket.tcpi_total_retrans}V","socket_tcpi_delta_retrans":"%{client.socket.tcpi_delta_retrans}V","socket_ploss":"%{client.socket.ploss}V"}'; - $this->container['region'] = $data['region'] ?? 'US'; - $this->container['token'] = $data['token'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - - $allowedValues = $this->getPlacementAllowableValues(); - if (!is_null($this->container['placement']) && !in_array($this->container['placement'], $allowedValues, true)) { - $invalidProperties[] = sprintf( - "invalid value '%s' for 'placement', must be one of '%s'", - $this->container['placement'], - implode("', '", $allowedValues) - ); - } - - $allowedValues = $this->getFormatVersionAllowableValues(); - if (!is_null($this->container['format_version']) && !in_array($this->container['format_version'], $allowedValues, true)) { - $invalidProperties[] = sprintf( - "invalid value '%s' for 'format_version', must be one of '%s'", - $this->container['format_version'], - implode("', '", $allowedValues) - ); - } - - $allowedValues = $this->getRegionAllowableValues(); - if (!is_null($this->container['region']) && !in_array($this->container['region'], $allowedValues, true)) { - $invalidProperties[] = sprintf( - "invalid value '%s' for 'region', must be one of '%s'", - $this->container['region'], - implode("', '", $allowedValues) - ); - } - - return $invalidProperties; - } - - /** - * Validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - return count($this->listInvalidProperties()) === 0; - } - - - /** - * Gets name - * - * @return string|null - */ - public function getName() - { - return $this->container['name']; - } - - /** - * Sets name - * - * @param string|null $name The name for the real-time logging configuration. - * - * @return self - */ - public function setName($name) - { - $this->container['name'] = $name; - - return $this; - } - - /** - * Gets placement - * - * @return string|null - */ - public function getPlacement() - { - return $this->container['placement']; - } - - /** - * Sets placement - * - * @param string|null $placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. - * - * @return self - */ - public function setPlacement($placement) - { - $allowedValues = $this->getPlacementAllowableValues(); - if (!is_null($placement) && !in_array($placement, $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value '%s' for 'placement', must be one of '%s'", - $placement, - implode("', '", $allowedValues) - ) - ); - } - $this->container['placement'] = $placement; - - return $this; - } - - /** - * Gets format_version - * - * @return int|null - */ - public function getFormatVersion() - { - return $this->container['format_version']; - } - - /** - * Sets format_version - * - * @param int|null $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. - * - * @return self - */ - public function setFormatVersion($format_version) - { - $allowedValues = $this->getFormatVersionAllowableValues(); - if (!is_null($format_version) && !in_array($format_version, $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value '%s' for 'format_version', must be one of '%s'", - $format_version, - implode("', '", $allowedValues) - ) - ); - } - $this->container['format_version'] = $format_version; - - return $this; - } - - /** - * Gets response_condition - * - * @return string|null - */ - public function getResponseCondition() - { - return $this->container['response_condition']; - } - - /** - * Sets response_condition - * - * @param string|null $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. - * - * @return self - */ - public function setResponseCondition($response_condition) - { - $this->container['response_condition'] = $response_condition; - - return $this; - } - - /** - * Gets format - * - * @return string|null - */ - public function getFormat() - { - return $this->container['format']; - } - - /** - * Sets format - * - * @param string|null $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). Must produce valid JSON that Datadog can ingest. - * - * @return self - */ - public function setFormat($format) - { - $this->container['format'] = $format; - - return $this; - } - - /** - * Gets region - * - * @return string|null - */ - public function getRegion() - { - return $this->container['region']; - } - - /** - * Sets region - * - * @param string|null $region The region that log data will be sent to. - * - * @return self - */ - public function setRegion($region) - { - $allowedValues = $this->getRegionAllowableValues(); - if (!is_null($region) && !in_array($region, $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value '%s' for 'region', must be one of '%s'", - $region, - implode("', '", $allowedValues) - ) - ); - } - $this->container['region'] = $region; - - return $this; - } - - /** - * Gets token - * - * @return string|null - */ - public function getToken() - { - return $this->container['token']; - } - - /** - * Sets token - * - * @param string|null $token The API key from your Datadog account. Required. - * - * @return self - */ - public function setToken($token) - { - $this->container['token'] = $token; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * - * @param integer $offset Offset - * - * @return boolean - */ - public function offsetExists($offset): bool - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * - * @param integer $offset Offset - * - * @return mixed|null - */ - public function offsetGet($offset): mixed - { - return $this->container[$offset] ?? null; - } - - /** - * Sets value based on offset. - * - * @param int|null $offset Offset - * @param mixed $value Value to be set - * - * @return void - */ - public function offsetSet($offset, $value): void - { - if (is_null($offset)) { - $this->container[] = $value; - } else { - $this->container[$offset] = $value; - } - } - - /** - * Unsets offset. - * - * @param integer $offset Offset - * - * @return void - */ - public function offsetUnset($offset): void - { - unset($this->container[$offset]); - } - - /** - * Serializes the object to a value that can be serialized natively by json_encode(). - * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php - * - * @return mixed Returns data which can be serialized by json_encode(), which is a value - * of any type other than a resource. - */ - public function jsonSerialize(): mixed - { - return ObjectSerializer::sanitizeForSerialization($this); - } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString() - { - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } - - /** - * Gets a header-safe presentation of the object - * - * @return string - */ - public function toHeaderValue() - { - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/lib/Model/LoggingDatadogAllOf.php b/lib/Model/LoggingDatadogAdditional.php similarity index 98% rename from lib/Model/LoggingDatadogAllOf.php rename to lib/Model/LoggingDatadogAdditional.php index 869b65a8..f9eb56ee 100644 --- a/lib/Model/LoggingDatadogAllOf.php +++ b/lib/Model/LoggingDatadogAdditional.php @@ -1,6 +1,6 @@ 'string', 'placement' => 'string', - 'format_version' => 'int', 'response_condition' => 'string', 'format' => 'string', + 'format_version' => 'string', 'region' => 'string', 'token' => 'string', 'created_at' => '\DateTime', 'deleted_at' => '\DateTime', 'updated_at' => '\DateTime', 'service_id' => 'string', - 'version' => 'int' + 'version' => 'string' ]; /** @@ -77,9 +77,9 @@ class LoggingDatadogResponse implements ModelInterface, ArrayAccess, \JsonSerial protected static $fastlyFormats = [ 'name' => null, 'placement' => null, - 'format_version' => null, 'response_condition' => null, 'format' => null, + 'format_version' => null, 'region' => null, 'token' => null, 'created_at' => 'date-time', @@ -118,9 +118,9 @@ public static function fastlyFormats() protected static $attributeMap = [ 'name' => 'name', 'placement' => 'placement', - 'format_version' => 'format_version', 'response_condition' => 'response_condition', 'format' => 'format', + 'format_version' => 'format_version', 'region' => 'region', 'token' => 'token', 'created_at' => 'created_at', @@ -138,9 +138,9 @@ public static function fastlyFormats() protected static $setters = [ 'name' => 'setName', 'placement' => 'setPlacement', - 'format_version' => 'setFormatVersion', 'response_condition' => 'setResponseCondition', 'format' => 'setFormat', + 'format_version' => 'setFormatVersion', 'region' => 'setRegion', 'token' => 'setToken', 'created_at' => 'setCreatedAt', @@ -158,9 +158,9 @@ public static function fastlyFormats() protected static $getters = [ 'name' => 'getName', 'placement' => 'getPlacement', - 'format_version' => 'getFormatVersion', 'response_condition' => 'getResponseCondition', 'format' => 'getFormat', + 'format_version' => 'getFormatVersion', 'region' => 'getRegion', 'token' => 'getToken', 'created_at' => 'getCreatedAt', @@ -214,8 +214,8 @@ public function getModelName() const PLACEMENT_NONE = 'none'; const PLACEMENT_WAF_DEBUG = 'waf_debug'; const PLACEMENT_NULL = 'null'; - const FORMAT_VERSION_v1 = 1; - const FORMAT_VERSION_v2 = 2; + const FORMAT_VERSION_v1 = '1'; + const FORMAT_VERSION_v2 = '2'; const REGION_US = 'US'; const REGION_EU = 'EU'; @@ -276,9 +276,9 @@ public function __construct(array $data = null) { $this->container['name'] = $data['name'] ?? null; $this->container['placement'] = $data['placement'] ?? null; - $this->container['format_version'] = $data['format_version'] ?? self::FORMAT_VERSION_v2; $this->container['response_condition'] = $data['response_condition'] ?? null; $this->container['format'] = $data['format'] ?? '{"ddsource":"fastly","service":"%{req.service_id}V","date":"%{begin:%Y-%m-%dT%H:%M:%S%Z}t","time_start":"%{begin:%Y-%m-%dT%H:%M:%S%Z}t","time_end":"%{end:%Y-%m-%dT%H:%M:%S%Z}t","http":{"request_time_ms":"%D","method":"%m","url":"%{json.escape(req.url)}V","useragent":"%{User-Agent}i","referer":"%{Referer}i","protocol":"%H","request_x_forwarded_for":"%{X-Forwarded-For}i","status_code":"%s"},"network":{"client":{"ip":"%h","name":"%{client.as.name}V","number":"%{client.as.number}V","connection_speed":"%{client.geo.conn_speed}V"},"destination":{"ip":"%A"},"geoip":{"geo_city":"%{client.geo.city.utf8}V","geo_country_code":"%{client.geo.country_code}V","geo_continent_code":"%{client.geo.continent_code}V","geo_region":"%{client.geo.region}V"},"bytes_written":"%B","bytes_read":"%{req.body_bytes_read}V"},"host":"%{Fastly-Orig-Host}i","origin_host":"%v","is_ipv6":"%{if(req.is_ipv6, \"true\", \"false\")}V","is_tls":"%{if(req.is_ssl, \"true\", \"false\")}V","tls_client_protocol":"%{json.escape(tls.client.protocol)}V","tls_client_servername":"%{json.escape(tls.client.servername)}V","tls_client_cipher":"%{json.escape(tls.client.cipher)}V","tls_client_cipher_sha":"%{json.escape(tls.client.ciphers_sha)}V","tls_client_tlsexts_sha":"%{json.escape(tls.client.tlsexts_sha)}V","is_h2":"%{if(fastly_info.is_h2, \"true\", \"false\")}V","is_h2_push":"%{if(fastly_info.h2.is_push, \"true\", \"false\")}V","h2_stream_id":"%{fastly_info.h2.stream_id}V","request_accept_content":"%{Accept}i","request_accept_language":"%{Accept-Language}i","request_accept_encoding":"%{Accept-Encoding}i","request_accept_charset":"%{Accept-Charset}i","request_connection":"%{Connection}i","request_dnt":"%{DNT}i","request_forwarded":"%{Forwarded}i","request_via":"%{Via}i","request_cache_control":"%{Cache-Control}i","request_x_requested_with":"%{X-Requested-With}i","request_x_att_device_id":"%{X-ATT-Device-Id}i","content_type":"%{Content-Type}o","is_cacheable":"%{if(fastly_info.state~\"^(HIT|MISS)$\", \"true\", \"false\")}V","response_age":"%{Age}o","response_cache_control":"%{Cache-Control}o","response_expires":"%{Expires}o","response_last_modified":"%{Last-Modified}o","response_tsv":"%{TSV}o","server_datacenter":"%{server.datacenter}V","req_header_size":"%{req.header_bytes_read}V","resp_header_size":"%{resp.header_bytes_written}V","socket_cwnd":"%{client.socket.cwnd}V","socket_nexthop":"%{client.socket.nexthop}V","socket_tcpi_rcv_mss":"%{client.socket.tcpi_rcv_mss}V","socket_tcpi_snd_mss":"%{client.socket.tcpi_snd_mss}V","socket_tcpi_rtt":"%{client.socket.tcpi_rtt}V","socket_tcpi_rttvar":"%{client.socket.tcpi_rttvar}V","socket_tcpi_rcv_rtt":"%{client.socket.tcpi_rcv_rtt}V","socket_tcpi_rcv_space":"%{client.socket.tcpi_rcv_space}V","socket_tcpi_last_data_sent":"%{client.socket.tcpi_last_data_sent}V","socket_tcpi_total_retrans":"%{client.socket.tcpi_total_retrans}V","socket_tcpi_delta_retrans":"%{client.socket.tcpi_delta_retrans}V","socket_ploss":"%{client.socket.ploss}V"}'; + $this->container['format_version'] = $data['format_version'] ?? '2'; $this->container['region'] = $data['region'] ?? 'US'; $this->container['token'] = $data['token'] ?? null; $this->container['created_at'] = $data['created_at'] ?? null; @@ -398,83 +398,83 @@ public function setPlacement($placement) } /** - * Gets format_version + * Gets response_condition * - * @return int|null + * @return string|null */ - public function getFormatVersion() + public function getResponseCondition() { - return $this->container['format_version']; + return $this->container['response_condition']; } /** - * Sets format_version + * Sets response_condition * - * @param int|null $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. + * @param string|null $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. * * @return self */ - public function setFormatVersion($format_version) + public function setResponseCondition($response_condition) { - $allowedValues = $this->getFormatVersionAllowableValues(); - if (!is_null($format_version) && !in_array($format_version, $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value '%s' for 'format_version', must be one of '%s'", - $format_version, - implode("', '", $allowedValues) - ) - ); - } - $this->container['format_version'] = $format_version; + $this->container['response_condition'] = $response_condition; return $this; } /** - * Gets response_condition + * Gets format * * @return string|null */ - public function getResponseCondition() + public function getFormat() { - return $this->container['response_condition']; + return $this->container['format']; } /** - * Sets response_condition + * Sets format * - * @param string|null $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. + * @param string|null $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). Must produce valid JSON that Datadog can ingest. * * @return self */ - public function setResponseCondition($response_condition) + public function setFormat($format) { - $this->container['response_condition'] = $response_condition; + $this->container['format'] = $format; return $this; } /** - * Gets format + * Gets format_version * * @return string|null */ - public function getFormat() + public function getFormatVersion() { - return $this->container['format']; + return $this->container['format_version']; } /** - * Sets format + * Sets format_version * - * @param string|null $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). Must produce valid JSON that Datadog can ingest. + * @param string|null $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. * * @return self */ - public function setFormat($format) + public function setFormatVersion($format_version) { - $this->container['format'] = $format; + $allowedValues = $this->getFormatVersionAllowableValues(); + if (!is_null($format_version) && !in_array($format_version, $allowedValues, true)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value '%s' for 'format_version', must be one of '%s'", + $format_version, + implode("', '", $allowedValues) + ) + ); + } + $this->container['format_version'] = $format_version; return $this; } @@ -636,7 +636,7 @@ public function setServiceId($service_id) /** * Gets version * - * @return int|null + * @return string|null */ public function getVersion() { @@ -646,7 +646,7 @@ public function getVersion() /** * Sets version * - * @param int|null $version version + * @param string|null $version version * * @return self */ diff --git a/lib/Model/LoggingDigitalocean.php b/lib/Model/LoggingDigitalocean.php deleted file mode 100644 index 61305928..00000000 --- a/lib/Model/LoggingDigitalocean.php +++ /dev/null @@ -1,908 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class LoggingDigitalocean implements ModelInterface, ArrayAccess, \JsonSerializable -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $fastlyModelName = 'logging_digitalocean'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $fastlyTypes = [ - 'name' => 'string', - 'placement' => 'string', - 'format_version' => 'int', - 'response_condition' => 'string', - 'format' => 'string', - 'message_type' => 'string', - 'timestamp_format' => 'string', - 'period' => 'int', - 'gzip_level' => 'int', - 'compression_codec' => 'string', - 'bucket_name' => 'string', - 'access_key' => 'string', - 'secret_key' => 'string', - 'domain' => 'string', - 'path' => 'string', - 'public_key' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $fastlyFormats = [ - 'name' => null, - 'placement' => null, - 'format_version' => null, - 'response_condition' => null, - 'format' => null, - 'message_type' => null, - 'timestamp_format' => null, - 'period' => null, - 'gzip_level' => null, - 'compression_codec' => null, - 'bucket_name' => null, - 'access_key' => null, - 'secret_key' => null, - 'domain' => null, - 'path' => null, - 'public_key' => null - ]; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @return array - */ - public static function fastlyTypes() - { - return self::$fastlyTypes; - } - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @return array - */ - public static function fastlyFormats() - { - return self::$fastlyFormats; - } - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'name' => 'name', - 'placement' => 'placement', - 'format_version' => 'format_version', - 'response_condition' => 'response_condition', - 'format' => 'format', - 'message_type' => 'message_type', - 'timestamp_format' => 'timestamp_format', - 'period' => 'period', - 'gzip_level' => 'gzip_level', - 'compression_codec' => 'compression_codec', - 'bucket_name' => 'bucket_name', - 'access_key' => 'access_key', - 'secret_key' => 'secret_key', - 'domain' => 'domain', - 'path' => 'path', - 'public_key' => 'public_key' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'name' => 'setName', - 'placement' => 'setPlacement', - 'format_version' => 'setFormatVersion', - 'response_condition' => 'setResponseCondition', - 'format' => 'setFormat', - 'message_type' => 'setMessageType', - 'timestamp_format' => 'setTimestampFormat', - 'period' => 'setPeriod', - 'gzip_level' => 'setGzipLevel', - 'compression_codec' => 'setCompressionCodec', - 'bucket_name' => 'setBucketName', - 'access_key' => 'setAccessKey', - 'secret_key' => 'setSecretKey', - 'domain' => 'setDomain', - 'path' => 'setPath', - 'public_key' => 'setPublicKey' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'name' => 'getName', - 'placement' => 'getPlacement', - 'format_version' => 'getFormatVersion', - 'response_condition' => 'getResponseCondition', - 'format' => 'getFormat', - 'message_type' => 'getMessageType', - 'timestamp_format' => 'getTimestampFormat', - 'period' => 'getPeriod', - 'gzip_level' => 'getGzipLevel', - 'compression_codec' => 'getCompressionCodec', - 'bucket_name' => 'getBucketName', - 'access_key' => 'getAccessKey', - 'secret_key' => 'getSecretKey', - 'domain' => 'getDomain', - 'path' => 'getPath', - 'public_key' => 'getPublicKey' - ]; - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @return array - */ - public static function attributeMap() - { - return self::$attributeMap; - } - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @return array - */ - public static function setters() - { - return self::$setters; - } - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @return array - */ - public static function getters() - { - return self::$getters; - } - - /** - * The original name of the model. - * - * @return string - */ - public function getModelName() - { - return self::$fastlyModelName; - } - - const PLACEMENT_NONE = 'none'; - const PLACEMENT_WAF_DEBUG = 'waf_debug'; - const PLACEMENT_NULL = 'null'; - const FORMAT_VERSION_v1 = 1; - const FORMAT_VERSION_v2 = 2; - const MESSAGE_TYPE_CLASSIC = 'classic'; - const MESSAGE_TYPE_LOGGLY = 'loggly'; - const MESSAGE_TYPE_LOGPLEX = 'logplex'; - const MESSAGE_TYPE_BLANK = 'blank'; - const COMPRESSION_CODEC_ZSTD = 'zstd'; - const COMPRESSION_CODEC_SNAPPY = 'snappy'; - const COMPRESSION_CODEC_GZIP = 'gzip'; - - /** - * Gets allowable values of the enum - * - * @return string[] - */ - public function getPlacementAllowableValues() - { - return [ - self::PLACEMENT_NONE, - self::PLACEMENT_WAF_DEBUG, - self::PLACEMENT_NULL, - ]; - } - - /** - * Gets allowable values of the enum - * - * @return string[] - */ - public function getFormatVersionAllowableValues() - { - return [ - self::FORMAT_VERSION_v1, - self::FORMAT_VERSION_v2, - ]; - } - - /** - * Gets allowable values of the enum - * - * @return string[] - */ - public function getMessageTypeAllowableValues() - { - return [ - self::MESSAGE_TYPE_CLASSIC, - self::MESSAGE_TYPE_LOGGLY, - self::MESSAGE_TYPE_LOGPLEX, - self::MESSAGE_TYPE_BLANK, - ]; - } - - /** - * Gets allowable values of the enum - * - * @return string[] - */ - public function getCompressionCodecAllowableValues() - { - return [ - self::COMPRESSION_CODEC_ZSTD, - self::COMPRESSION_CODEC_SNAPPY, - self::COMPRESSION_CODEC_GZIP, - ]; - } - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['name'] = $data['name'] ?? null; - $this->container['placement'] = $data['placement'] ?? null; - $this->container['format_version'] = $data['format_version'] ?? self::FORMAT_VERSION_v2; - $this->container['response_condition'] = $data['response_condition'] ?? null; - $this->container['format'] = $data['format'] ?? '%h %l %u %t "%r" %>s %b'; - $this->container['message_type'] = $data['message_type'] ?? 'classic'; - $this->container['timestamp_format'] = $data['timestamp_format'] ?? null; - $this->container['period'] = $data['period'] ?? 3600; - $this->container['gzip_level'] = $data['gzip_level'] ?? 0; - $this->container['compression_codec'] = $data['compression_codec'] ?? null; - $this->container['bucket_name'] = $data['bucket_name'] ?? null; - $this->container['access_key'] = $data['access_key'] ?? null; - $this->container['secret_key'] = $data['secret_key'] ?? null; - $this->container['domain'] = $data['domain'] ?? 'nyc3.digitaloceanspaces.com'; - $this->container['path'] = $data['path'] ?? 'null'; - $this->container['public_key'] = $data['public_key'] ?? 'null'; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - - $allowedValues = $this->getPlacementAllowableValues(); - if (!is_null($this->container['placement']) && !in_array($this->container['placement'], $allowedValues, true)) { - $invalidProperties[] = sprintf( - "invalid value '%s' for 'placement', must be one of '%s'", - $this->container['placement'], - implode("', '", $allowedValues) - ); - } - - $allowedValues = $this->getFormatVersionAllowableValues(); - if (!is_null($this->container['format_version']) && !in_array($this->container['format_version'], $allowedValues, true)) { - $invalidProperties[] = sprintf( - "invalid value '%s' for 'format_version', must be one of '%s'", - $this->container['format_version'], - implode("', '", $allowedValues) - ); - } - - $allowedValues = $this->getMessageTypeAllowableValues(); - if (!is_null($this->container['message_type']) && !in_array($this->container['message_type'], $allowedValues, true)) { - $invalidProperties[] = sprintf( - "invalid value '%s' for 'message_type', must be one of '%s'", - $this->container['message_type'], - implode("', '", $allowedValues) - ); - } - - $allowedValues = $this->getCompressionCodecAllowableValues(); - if (!is_null($this->container['compression_codec']) && !in_array($this->container['compression_codec'], $allowedValues, true)) { - $invalidProperties[] = sprintf( - "invalid value '%s' for 'compression_codec', must be one of '%s'", - $this->container['compression_codec'], - implode("', '", $allowedValues) - ); - } - - return $invalidProperties; - } - - /** - * Validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - return count($this->listInvalidProperties()) === 0; - } - - - /** - * Gets name - * - * @return string|null - */ - public function getName() - { - return $this->container['name']; - } - - /** - * Sets name - * - * @param string|null $name The name for the real-time logging configuration. - * - * @return self - */ - public function setName($name) - { - $this->container['name'] = $name; - - return $this; - } - - /** - * Gets placement - * - * @return string|null - */ - public function getPlacement() - { - return $this->container['placement']; - } - - /** - * Sets placement - * - * @param string|null $placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. - * - * @return self - */ - public function setPlacement($placement) - { - $allowedValues = $this->getPlacementAllowableValues(); - if (!is_null($placement) && !in_array($placement, $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value '%s' for 'placement', must be one of '%s'", - $placement, - implode("', '", $allowedValues) - ) - ); - } - $this->container['placement'] = $placement; - - return $this; - } - - /** - * Gets format_version - * - * @return int|null - */ - public function getFormatVersion() - { - return $this->container['format_version']; - } - - /** - * Sets format_version - * - * @param int|null $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. - * - * @return self - */ - public function setFormatVersion($format_version) - { - $allowedValues = $this->getFormatVersionAllowableValues(); - if (!is_null($format_version) && !in_array($format_version, $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value '%s' for 'format_version', must be one of '%s'", - $format_version, - implode("', '", $allowedValues) - ) - ); - } - $this->container['format_version'] = $format_version; - - return $this; - } - - /** - * Gets response_condition - * - * @return string|null - */ - public function getResponseCondition() - { - return $this->container['response_condition']; - } - - /** - * Sets response_condition - * - * @param string|null $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. - * - * @return self - */ - public function setResponseCondition($response_condition) - { - $this->container['response_condition'] = $response_condition; - - return $this; - } - - /** - * Gets format - * - * @return string|null - */ - public function getFormat() - { - return $this->container['format']; - } - - /** - * Sets format - * - * @param string|null $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). - * - * @return self - */ - public function setFormat($format) - { - $this->container['format'] = $format; - - return $this; - } - - /** - * Gets message_type - * - * @return string|null - */ - public function getMessageType() - { - return $this->container['message_type']; - } - - /** - * Sets message_type - * - * @param string|null $message_type How the message should be formatted. - * - * @return self - */ - public function setMessageType($message_type) - { - $allowedValues = $this->getMessageTypeAllowableValues(); - if (!is_null($message_type) && !in_array($message_type, $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value '%s' for 'message_type', must be one of '%s'", - $message_type, - implode("', '", $allowedValues) - ) - ); - } - $this->container['message_type'] = $message_type; - - return $this; - } - - /** - * Gets timestamp_format - * - * @return string|null - */ - public function getTimestampFormat() - { - return $this->container['timestamp_format']; - } - - /** - * Sets timestamp_format - * - * @param string|null $timestamp_format A timestamp format - * - * @return self - */ - public function setTimestampFormat($timestamp_format) - { - $this->container['timestamp_format'] = $timestamp_format; - - return $this; - } - - /** - * Gets period - * - * @return int|null - */ - public function getPeriod() - { - return $this->container['period']; - } - - /** - * Sets period - * - * @param int|null $period How frequently log files are finalized so they can be available for reading (in seconds). - * - * @return self - */ - public function setPeriod($period) - { - $this->container['period'] = $period; - - return $this; - } - - /** - * Gets gzip_level - * - * @return int|null - */ - public function getGzipLevel() - { - return $this->container['gzip_level']; - } - - /** - * Sets gzip_level - * - * @param int|null $gzip_level The level of gzip encoding when sending logs (default `0`, no compression). Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. - * - * @return self - */ - public function setGzipLevel($gzip_level) - { - $this->container['gzip_level'] = $gzip_level; - - return $this; - } - - /** - * Gets compression_codec - * - * @return string|null - */ - public function getCompressionCodec() - { - return $this->container['compression_codec']; - } - - /** - * Sets compression_codec - * - * @param string|null $compression_codec The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. - * - * @return self - */ - public function setCompressionCodec($compression_codec) - { - $allowedValues = $this->getCompressionCodecAllowableValues(); - if (!is_null($compression_codec) && !in_array($compression_codec, $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value '%s' for 'compression_codec', must be one of '%s'", - $compression_codec, - implode("', '", $allowedValues) - ) - ); - } - $this->container['compression_codec'] = $compression_codec; - - return $this; - } - - /** - * Gets bucket_name - * - * @return string|null - */ - public function getBucketName() - { - return $this->container['bucket_name']; - } - - /** - * Sets bucket_name - * - * @param string|null $bucket_name The name of the DigitalOcean Space. - * - * @return self - */ - public function setBucketName($bucket_name) - { - $this->container['bucket_name'] = $bucket_name; - - return $this; - } - - /** - * Gets access_key - * - * @return string|null - */ - public function getAccessKey() - { - return $this->container['access_key']; - } - - /** - * Sets access_key - * - * @param string|null $access_key Your DigitalOcean Spaces account access key. - * - * @return self - */ - public function setAccessKey($access_key) - { - $this->container['access_key'] = $access_key; - - return $this; - } - - /** - * Gets secret_key - * - * @return string|null - */ - public function getSecretKey() - { - return $this->container['secret_key']; - } - - /** - * Sets secret_key - * - * @param string|null $secret_key Your DigitalOcean Spaces account secret key. - * - * @return self - */ - public function setSecretKey($secret_key) - { - $this->container['secret_key'] = $secret_key; - - return $this; - } - - /** - * Gets domain - * - * @return string|null - */ - public function getDomain() - { - return $this->container['domain']; - } - - /** - * Sets domain - * - * @param string|null $domain The domain of the DigitalOcean Spaces endpoint. - * - * @return self - */ - public function setDomain($domain) - { - $this->container['domain'] = $domain; - - return $this; - } - - /** - * Gets path - * - * @return string|null - */ - public function getPath() - { - return $this->container['path']; - } - - /** - * Sets path - * - * @param string|null $path The path to upload logs to. - * - * @return self - */ - public function setPath($path) - { - $this->container['path'] = $path; - - return $this; - } - - /** - * Gets public_key - * - * @return string|null - */ - public function getPublicKey() - { - return $this->container['public_key']; - } - - /** - * Sets public_key - * - * @param string|null $public_key A PGP public key that Fastly will use to encrypt your log files before writing them to disk. - * - * @return self - */ - public function setPublicKey($public_key) - { - $this->container['public_key'] = $public_key; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * - * @param integer $offset Offset - * - * @return boolean - */ - public function offsetExists($offset): bool - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * - * @param integer $offset Offset - * - * @return mixed|null - */ - public function offsetGet($offset): mixed - { - return $this->container[$offset] ?? null; - } - - /** - * Sets value based on offset. - * - * @param int|null $offset Offset - * @param mixed $value Value to be set - * - * @return void - */ - public function offsetSet($offset, $value): void - { - if (is_null($offset)) { - $this->container[] = $value; - } else { - $this->container[$offset] = $value; - } - } - - /** - * Unsets offset. - * - * @param integer $offset Offset - * - * @return void - */ - public function offsetUnset($offset): void - { - unset($this->container[$offset]); - } - - /** - * Serializes the object to a value that can be serialized natively by json_encode(). - * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php - * - * @return mixed Returns data which can be serialized by json_encode(), which is a value - * of any type other than a resource. - */ - public function jsonSerialize(): mixed - { - return ObjectSerializer::sanitizeForSerialization($this); - } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString() - { - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } - - /** - * Gets a header-safe presentation of the object - * - * @return string - */ - public function toHeaderValue() - { - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/lib/Model/LoggingDigitaloceanAllOf.php b/lib/Model/LoggingDigitaloceanAdditional.php similarity index 97% rename from lib/Model/LoggingDigitaloceanAllOf.php rename to lib/Model/LoggingDigitaloceanAdditional.php index 1fa24081..16c1b2a7 100644 --- a/lib/Model/LoggingDigitaloceanAllOf.php +++ b/lib/Model/LoggingDigitaloceanAdditional.php @@ -1,6 +1,6 @@ 'string', 'placement' => 'string', - 'format_version' => 'int', 'response_condition' => 'string', 'format' => 'string', + 'format_version' => 'string', 'message_type' => 'string', 'timestamp_format' => 'string', - 'period' => 'int', - 'gzip_level' => 'int', 'compression_codec' => 'string', + 'period' => 'string', + 'gzip_level' => 'string', + 'created_at' => '\DateTime', + 'deleted_at' => '\DateTime', + 'updated_at' => '\DateTime', + 'service_id' => 'string', + 'version' => 'string', 'bucket_name' => 'string', 'access_key' => 'string', 'secret_key' => 'string', 'domain' => 'string', 'path' => 'string', - 'public_key' => 'string', - 'created_at' => '\DateTime', - 'deleted_at' => '\DateTime', - 'updated_at' => '\DateTime', - 'service_id' => 'string', - 'version' => 'int' + 'public_key' => 'string' ]; /** @@ -86,25 +86,25 @@ class LoggingDigitaloceanResponse implements ModelInterface, ArrayAccess, \JsonS protected static $fastlyFormats = [ 'name' => null, 'placement' => null, - 'format_version' => null, 'response_condition' => null, 'format' => null, + 'format_version' => null, 'message_type' => null, 'timestamp_format' => null, + 'compression_codec' => null, 'period' => null, 'gzip_level' => null, - 'compression_codec' => null, + 'created_at' => 'date-time', + 'deleted_at' => 'date-time', + 'updated_at' => 'date-time', + 'service_id' => null, + 'version' => null, 'bucket_name' => null, 'access_key' => null, 'secret_key' => null, 'domain' => null, 'path' => null, - 'public_key' => null, - 'created_at' => 'date-time', - 'deleted_at' => 'date-time', - 'updated_at' => 'date-time', - 'service_id' => null, - 'version' => null + 'public_key' => null ]; /** @@ -136,25 +136,25 @@ public static function fastlyFormats() protected static $attributeMap = [ 'name' => 'name', 'placement' => 'placement', - 'format_version' => 'format_version', 'response_condition' => 'response_condition', 'format' => 'format', + 'format_version' => 'format_version', 'message_type' => 'message_type', 'timestamp_format' => 'timestamp_format', + 'compression_codec' => 'compression_codec', 'period' => 'period', 'gzip_level' => 'gzip_level', - 'compression_codec' => 'compression_codec', + 'created_at' => 'created_at', + 'deleted_at' => 'deleted_at', + 'updated_at' => 'updated_at', + 'service_id' => 'service_id', + 'version' => 'version', 'bucket_name' => 'bucket_name', 'access_key' => 'access_key', 'secret_key' => 'secret_key', 'domain' => 'domain', 'path' => 'path', - 'public_key' => 'public_key', - 'created_at' => 'created_at', - 'deleted_at' => 'deleted_at', - 'updated_at' => 'updated_at', - 'service_id' => 'service_id', - 'version' => 'version' + 'public_key' => 'public_key' ]; /** @@ -165,25 +165,25 @@ public static function fastlyFormats() protected static $setters = [ 'name' => 'setName', 'placement' => 'setPlacement', - 'format_version' => 'setFormatVersion', 'response_condition' => 'setResponseCondition', 'format' => 'setFormat', + 'format_version' => 'setFormatVersion', 'message_type' => 'setMessageType', 'timestamp_format' => 'setTimestampFormat', + 'compression_codec' => 'setCompressionCodec', 'period' => 'setPeriod', 'gzip_level' => 'setGzipLevel', - 'compression_codec' => 'setCompressionCodec', + 'created_at' => 'setCreatedAt', + 'deleted_at' => 'setDeletedAt', + 'updated_at' => 'setUpdatedAt', + 'service_id' => 'setServiceId', + 'version' => 'setVersion', 'bucket_name' => 'setBucketName', 'access_key' => 'setAccessKey', 'secret_key' => 'setSecretKey', 'domain' => 'setDomain', 'path' => 'setPath', - 'public_key' => 'setPublicKey', - 'created_at' => 'setCreatedAt', - 'deleted_at' => 'setDeletedAt', - 'updated_at' => 'setUpdatedAt', - 'service_id' => 'setServiceId', - 'version' => 'setVersion' + 'public_key' => 'setPublicKey' ]; /** @@ -194,25 +194,25 @@ public static function fastlyFormats() protected static $getters = [ 'name' => 'getName', 'placement' => 'getPlacement', - 'format_version' => 'getFormatVersion', 'response_condition' => 'getResponseCondition', 'format' => 'getFormat', + 'format_version' => 'getFormatVersion', 'message_type' => 'getMessageType', 'timestamp_format' => 'getTimestampFormat', + 'compression_codec' => 'getCompressionCodec', 'period' => 'getPeriod', 'gzip_level' => 'getGzipLevel', - 'compression_codec' => 'getCompressionCodec', + 'created_at' => 'getCreatedAt', + 'deleted_at' => 'getDeletedAt', + 'updated_at' => 'getUpdatedAt', + 'service_id' => 'getServiceId', + 'version' => 'getVersion', 'bucket_name' => 'getBucketName', 'access_key' => 'getAccessKey', 'secret_key' => 'getSecretKey', 'domain' => 'getDomain', 'path' => 'getPath', - 'public_key' => 'getPublicKey', - 'created_at' => 'getCreatedAt', - 'deleted_at' => 'getDeletedAt', - 'updated_at' => 'getUpdatedAt', - 'service_id' => 'getServiceId', - 'version' => 'getVersion' + 'public_key' => 'getPublicKey' ]; /** @@ -259,8 +259,8 @@ public function getModelName() const PLACEMENT_NONE = 'none'; const PLACEMENT_WAF_DEBUG = 'waf_debug'; const PLACEMENT_NULL = 'null'; - const FORMAT_VERSION_v1 = 1; - const FORMAT_VERSION_v2 = 2; + const FORMAT_VERSION_v1 = '1'; + const FORMAT_VERSION_v2 = '2'; const MESSAGE_TYPE_CLASSIC = 'classic'; const MESSAGE_TYPE_LOGGLY = 'loggly'; const MESSAGE_TYPE_LOGPLEX = 'logplex'; @@ -342,25 +342,25 @@ public function __construct(array $data = null) { $this->container['name'] = $data['name'] ?? null; $this->container['placement'] = $data['placement'] ?? null; - $this->container['format_version'] = $data['format_version'] ?? self::FORMAT_VERSION_v2; $this->container['response_condition'] = $data['response_condition'] ?? null; $this->container['format'] = $data['format'] ?? '%h %l %u %t "%r" %>s %b'; + $this->container['format_version'] = $data['format_version'] ?? '2'; $this->container['message_type'] = $data['message_type'] ?? 'classic'; $this->container['timestamp_format'] = $data['timestamp_format'] ?? null; - $this->container['period'] = $data['period'] ?? 3600; - $this->container['gzip_level'] = $data['gzip_level'] ?? 0; $this->container['compression_codec'] = $data['compression_codec'] ?? null; + $this->container['period'] = $data['period'] ?? '3600'; + $this->container['gzip_level'] = $data['gzip_level'] ?? '0'; + $this->container['created_at'] = $data['created_at'] ?? null; + $this->container['deleted_at'] = $data['deleted_at'] ?? null; + $this->container['updated_at'] = $data['updated_at'] ?? null; + $this->container['service_id'] = $data['service_id'] ?? null; + $this->container['version'] = $data['version'] ?? null; $this->container['bucket_name'] = $data['bucket_name'] ?? null; $this->container['access_key'] = $data['access_key'] ?? null; $this->container['secret_key'] = $data['secret_key'] ?? null; $this->container['domain'] = $data['domain'] ?? 'nyc3.digitaloceanspaces.com'; $this->container['path'] = $data['path'] ?? 'null'; $this->container['public_key'] = $data['public_key'] ?? 'null'; - $this->container['created_at'] = $data['created_at'] ?? null; - $this->container['deleted_at'] = $data['deleted_at'] ?? null; - $this->container['updated_at'] = $data['updated_at'] ?? null; - $this->container['service_id'] = $data['service_id'] ?? null; - $this->container['version'] = $data['version'] ?? null; } /** @@ -482,83 +482,83 @@ public function setPlacement($placement) } /** - * Gets format_version + * Gets response_condition * - * @return int|null + * @return string|null */ - public function getFormatVersion() + public function getResponseCondition() { - return $this->container['format_version']; + return $this->container['response_condition']; } /** - * Sets format_version + * Sets response_condition * - * @param int|null $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. + * @param string|null $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. * * @return self */ - public function setFormatVersion($format_version) + public function setResponseCondition($response_condition) { - $allowedValues = $this->getFormatVersionAllowableValues(); - if (!is_null($format_version) && !in_array($format_version, $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value '%s' for 'format_version', must be one of '%s'", - $format_version, - implode("', '", $allowedValues) - ) - ); - } - $this->container['format_version'] = $format_version; + $this->container['response_condition'] = $response_condition; return $this; } /** - * Gets response_condition + * Gets format * * @return string|null */ - public function getResponseCondition() + public function getFormat() { - return $this->container['response_condition']; + return $this->container['format']; } /** - * Sets response_condition + * Sets format * - * @param string|null $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. + * @param string|null $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). * * @return self */ - public function setResponseCondition($response_condition) + public function setFormat($format) { - $this->container['response_condition'] = $response_condition; + $this->container['format'] = $format; return $this; } /** - * Gets format + * Gets format_version * * @return string|null */ - public function getFormat() + public function getFormatVersion() { - return $this->container['format']; + return $this->container['format_version']; } /** - * Sets format + * Sets format_version * - * @param string|null $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). + * @param string|null $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. * * @return self */ - public function setFormat($format) + public function setFormatVersion($format_version) { - $this->container['format'] = $format; + $allowedValues = $this->getFormatVersionAllowableValues(); + if (!is_null($format_version) && !in_array($format_version, $allowedValues, true)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value '%s' for 'format_version', must be one of '%s'", + $format_version, + implode("', '", $allowedValues) + ) + ); + } + $this->container['format_version'] = $format_version; return $this; } @@ -622,347 +622,347 @@ public function setTimestampFormat($timestamp_format) } /** - * Gets period + * Gets compression_codec * - * @return int|null + * @return string|null */ - public function getPeriod() + public function getCompressionCodec() { - return $this->container['period']; + return $this->container['compression_codec']; } /** - * Sets period + * Sets compression_codec * - * @param int|null $period How frequently log files are finalized so they can be available for reading (in seconds). + * @param string|null $compression_codec The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. * * @return self */ - public function setPeriod($period) + public function setCompressionCodec($compression_codec) { - $this->container['period'] = $period; + $allowedValues = $this->getCompressionCodecAllowableValues(); + if (!is_null($compression_codec) && !in_array($compression_codec, $allowedValues, true)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value '%s' for 'compression_codec', must be one of '%s'", + $compression_codec, + implode("', '", $allowedValues) + ) + ); + } + $this->container['compression_codec'] = $compression_codec; return $this; } /** - * Gets gzip_level + * Gets period * - * @return int|null + * @return string|null */ - public function getGzipLevel() + public function getPeriod() { - return $this->container['gzip_level']; + return $this->container['period']; } /** - * Sets gzip_level + * Sets period * - * @param int|null $gzip_level The level of gzip encoding when sending logs (default `0`, no compression). Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. + * @param string|null $period How frequently log files are finalized so they can be available for reading (in seconds). * * @return self */ - public function setGzipLevel($gzip_level) + public function setPeriod($period) { - $this->container['gzip_level'] = $gzip_level; + $this->container['period'] = $period; return $this; } /** - * Gets compression_codec + * Gets gzip_level * * @return string|null */ - public function getCompressionCodec() + public function getGzipLevel() { - return $this->container['compression_codec']; + return $this->container['gzip_level']; } /** - * Sets compression_codec + * Sets gzip_level * - * @param string|null $compression_codec The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. + * @param string|null $gzip_level The level of gzip encoding when sending logs (default `0`, no compression). Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. * * @return self */ - public function setCompressionCodec($compression_codec) + public function setGzipLevel($gzip_level) { - $allowedValues = $this->getCompressionCodecAllowableValues(); - if (!is_null($compression_codec) && !in_array($compression_codec, $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value '%s' for 'compression_codec', must be one of '%s'", - $compression_codec, - implode("', '", $allowedValues) - ) - ); - } - $this->container['compression_codec'] = $compression_codec; + $this->container['gzip_level'] = $gzip_level; return $this; } /** - * Gets bucket_name + * Gets created_at * - * @return string|null + * @return \DateTime|null */ - public function getBucketName() + public function getCreatedAt() { - return $this->container['bucket_name']; + return $this->container['created_at']; } /** - * Sets bucket_name + * Sets created_at * - * @param string|null $bucket_name The name of the DigitalOcean Space. + * @param \DateTime|null $created_at Date and time in ISO 8601 format. * * @return self */ - public function setBucketName($bucket_name) + public function setCreatedAt($created_at) { - $this->container['bucket_name'] = $bucket_name; + $this->container['created_at'] = $created_at; return $this; } /** - * Gets access_key + * Gets deleted_at * - * @return string|null + * @return \DateTime|null */ - public function getAccessKey() + public function getDeletedAt() { - return $this->container['access_key']; + return $this->container['deleted_at']; } /** - * Sets access_key + * Sets deleted_at * - * @param string|null $access_key Your DigitalOcean Spaces account access key. + * @param \DateTime|null $deleted_at Date and time in ISO 8601 format. * * @return self */ - public function setAccessKey($access_key) + public function setDeletedAt($deleted_at) { - $this->container['access_key'] = $access_key; + $this->container['deleted_at'] = $deleted_at; return $this; } /** - * Gets secret_key + * Gets updated_at * - * @return string|null + * @return \DateTime|null */ - public function getSecretKey() + public function getUpdatedAt() { - return $this->container['secret_key']; + return $this->container['updated_at']; } /** - * Sets secret_key + * Sets updated_at * - * @param string|null $secret_key Your DigitalOcean Spaces account secret key. + * @param \DateTime|null $updated_at Date and time in ISO 8601 format. * * @return self */ - public function setSecretKey($secret_key) + public function setUpdatedAt($updated_at) { - $this->container['secret_key'] = $secret_key; + $this->container['updated_at'] = $updated_at; return $this; } /** - * Gets domain + * Gets service_id * * @return string|null */ - public function getDomain() + public function getServiceId() { - return $this->container['domain']; + return $this->container['service_id']; } /** - * Sets domain + * Sets service_id * - * @param string|null $domain The domain of the DigitalOcean Spaces endpoint. + * @param string|null $service_id service_id * * @return self */ - public function setDomain($domain) + public function setServiceId($service_id) { - $this->container['domain'] = $domain; + $this->container['service_id'] = $service_id; return $this; } /** - * Gets path + * Gets version * * @return string|null */ - public function getPath() + public function getVersion() { - return $this->container['path']; + return $this->container['version']; } /** - * Sets path + * Sets version * - * @param string|null $path The path to upload logs to. + * @param string|null $version version * * @return self */ - public function setPath($path) + public function setVersion($version) { - $this->container['path'] = $path; + $this->container['version'] = $version; return $this; } /** - * Gets public_key + * Gets bucket_name * * @return string|null */ - public function getPublicKey() + public function getBucketName() { - return $this->container['public_key']; + return $this->container['bucket_name']; } /** - * Sets public_key + * Sets bucket_name * - * @param string|null $public_key A PGP public key that Fastly will use to encrypt your log files before writing them to disk. + * @param string|null $bucket_name The name of the DigitalOcean Space. * * @return self */ - public function setPublicKey($public_key) + public function setBucketName($bucket_name) { - $this->container['public_key'] = $public_key; + $this->container['bucket_name'] = $bucket_name; return $this; } /** - * Gets created_at + * Gets access_key * - * @return \DateTime|null + * @return string|null */ - public function getCreatedAt() + public function getAccessKey() { - return $this->container['created_at']; + return $this->container['access_key']; } /** - * Sets created_at + * Sets access_key * - * @param \DateTime|null $created_at Date and time in ISO 8601 format. + * @param string|null $access_key Your DigitalOcean Spaces account access key. * * @return self */ - public function setCreatedAt($created_at) + public function setAccessKey($access_key) { - $this->container['created_at'] = $created_at; + $this->container['access_key'] = $access_key; return $this; } /** - * Gets deleted_at + * Gets secret_key * - * @return \DateTime|null + * @return string|null */ - public function getDeletedAt() + public function getSecretKey() { - return $this->container['deleted_at']; + return $this->container['secret_key']; } /** - * Sets deleted_at + * Sets secret_key * - * @param \DateTime|null $deleted_at Date and time in ISO 8601 format. + * @param string|null $secret_key Your DigitalOcean Spaces account secret key. * * @return self */ - public function setDeletedAt($deleted_at) + public function setSecretKey($secret_key) { - $this->container['deleted_at'] = $deleted_at; + $this->container['secret_key'] = $secret_key; return $this; } /** - * Gets updated_at + * Gets domain * - * @return \DateTime|null + * @return string|null */ - public function getUpdatedAt() + public function getDomain() { - return $this->container['updated_at']; + return $this->container['domain']; } /** - * Sets updated_at + * Sets domain * - * @param \DateTime|null $updated_at Date and time in ISO 8601 format. + * @param string|null $domain The domain of the DigitalOcean Spaces endpoint. * * @return self */ - public function setUpdatedAt($updated_at) + public function setDomain($domain) { - $this->container['updated_at'] = $updated_at; + $this->container['domain'] = $domain; return $this; } /** - * Gets service_id + * Gets path * * @return string|null */ - public function getServiceId() + public function getPath() { - return $this->container['service_id']; + return $this->container['path']; } /** - * Sets service_id + * Sets path * - * @param string|null $service_id service_id + * @param string|null $path The path to upload logs to. * * @return self */ - public function setServiceId($service_id) + public function setPath($path) { - $this->container['service_id'] = $service_id; + $this->container['path'] = $path; return $this; } /** - * Gets version + * Gets public_key * - * @return int|null + * @return string|null */ - public function getVersion() + public function getPublicKey() { - return $this->container['version']; + return $this->container['public_key']; } /** - * Sets version + * Sets public_key * - * @param int|null $version version + * @param string|null $public_key A PGP public key that Fastly will use to encrypt your log files before writing them to disk. * * @return self */ - public function setVersion($version) + public function setPublicKey($public_key) { - $this->container['version'] = $version; + $this->container['public_key'] = $public_key; return $this; } diff --git a/lib/Model/LoggingElasticsearch.php b/lib/Model/LoggingElasticsearch.php deleted file mode 100644 index 4af2a070..00000000 --- a/lib/Model/LoggingElasticsearch.php +++ /dev/null @@ -1,834 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class LoggingElasticsearch implements ModelInterface, ArrayAccess, \JsonSerializable -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $fastlyModelName = 'logging_elasticsearch'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $fastlyTypes = [ - 'name' => 'string', - 'placement' => 'string', - 'format_version' => 'int', - 'response_condition' => 'string', - 'format' => 'string', - 'tls_ca_cert' => 'string', - 'tls_client_cert' => 'string', - 'tls_client_key' => 'string', - 'tls_hostname' => 'string', - 'request_max_entries' => 'int', - 'request_max_bytes' => 'int', - 'index' => 'string', - 'url' => 'string', - 'pipeline' => 'string', - 'user' => 'string', - 'password' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $fastlyFormats = [ - 'name' => null, - 'placement' => null, - 'format_version' => null, - 'response_condition' => null, - 'format' => null, - 'tls_ca_cert' => null, - 'tls_client_cert' => null, - 'tls_client_key' => null, - 'tls_hostname' => null, - 'request_max_entries' => null, - 'request_max_bytes' => null, - 'index' => null, - 'url' => null, - 'pipeline' => null, - 'user' => null, - 'password' => null - ]; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @return array - */ - public static function fastlyTypes() - { - return self::$fastlyTypes; - } - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @return array - */ - public static function fastlyFormats() - { - return self::$fastlyFormats; - } - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'name' => 'name', - 'placement' => 'placement', - 'format_version' => 'format_version', - 'response_condition' => 'response_condition', - 'format' => 'format', - 'tls_ca_cert' => 'tls_ca_cert', - 'tls_client_cert' => 'tls_client_cert', - 'tls_client_key' => 'tls_client_key', - 'tls_hostname' => 'tls_hostname', - 'request_max_entries' => 'request_max_entries', - 'request_max_bytes' => 'request_max_bytes', - 'index' => 'index', - 'url' => 'url', - 'pipeline' => 'pipeline', - 'user' => 'user', - 'password' => 'password' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'name' => 'setName', - 'placement' => 'setPlacement', - 'format_version' => 'setFormatVersion', - 'response_condition' => 'setResponseCondition', - 'format' => 'setFormat', - 'tls_ca_cert' => 'setTlsCaCert', - 'tls_client_cert' => 'setTlsClientCert', - 'tls_client_key' => 'setTlsClientKey', - 'tls_hostname' => 'setTlsHostname', - 'request_max_entries' => 'setRequestMaxEntries', - 'request_max_bytes' => 'setRequestMaxBytes', - 'index' => 'setIndex', - 'url' => 'setUrl', - 'pipeline' => 'setPipeline', - 'user' => 'setUser', - 'password' => 'setPassword' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'name' => 'getName', - 'placement' => 'getPlacement', - 'format_version' => 'getFormatVersion', - 'response_condition' => 'getResponseCondition', - 'format' => 'getFormat', - 'tls_ca_cert' => 'getTlsCaCert', - 'tls_client_cert' => 'getTlsClientCert', - 'tls_client_key' => 'getTlsClientKey', - 'tls_hostname' => 'getTlsHostname', - 'request_max_entries' => 'getRequestMaxEntries', - 'request_max_bytes' => 'getRequestMaxBytes', - 'index' => 'getIndex', - 'url' => 'getUrl', - 'pipeline' => 'getPipeline', - 'user' => 'getUser', - 'password' => 'getPassword' - ]; - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @return array - */ - public static function attributeMap() - { - return self::$attributeMap; - } - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @return array - */ - public static function setters() - { - return self::$setters; - } - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @return array - */ - public static function getters() - { - return self::$getters; - } - - /** - * The original name of the model. - * - * @return string - */ - public function getModelName() - { - return self::$fastlyModelName; - } - - const PLACEMENT_NONE = 'none'; - const PLACEMENT_WAF_DEBUG = 'waf_debug'; - const PLACEMENT_NULL = 'null'; - const FORMAT_VERSION_v1 = 1; - const FORMAT_VERSION_v2 = 2; - - /** - * Gets allowable values of the enum - * - * @return string[] - */ - public function getPlacementAllowableValues() - { - return [ - self::PLACEMENT_NONE, - self::PLACEMENT_WAF_DEBUG, - self::PLACEMENT_NULL, - ]; - } - - /** - * Gets allowable values of the enum - * - * @return string[] - */ - public function getFormatVersionAllowableValues() - { - return [ - self::FORMAT_VERSION_v1, - self::FORMAT_VERSION_v2, - ]; - } - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['name'] = $data['name'] ?? null; - $this->container['placement'] = $data['placement'] ?? null; - $this->container['format_version'] = $data['format_version'] ?? self::FORMAT_VERSION_v2; - $this->container['response_condition'] = $data['response_condition'] ?? null; - $this->container['format'] = $data['format'] ?? null; - $this->container['tls_ca_cert'] = $data['tls_ca_cert'] ?? 'null'; - $this->container['tls_client_cert'] = $data['tls_client_cert'] ?? 'null'; - $this->container['tls_client_key'] = $data['tls_client_key'] ?? 'null'; - $this->container['tls_hostname'] = $data['tls_hostname'] ?? 'null'; - $this->container['request_max_entries'] = $data['request_max_entries'] ?? 0; - $this->container['request_max_bytes'] = $data['request_max_bytes'] ?? 0; - $this->container['index'] = $data['index'] ?? null; - $this->container['url'] = $data['url'] ?? null; - $this->container['pipeline'] = $data['pipeline'] ?? null; - $this->container['user'] = $data['user'] ?? null; - $this->container['password'] = $data['password'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - - $allowedValues = $this->getPlacementAllowableValues(); - if (!is_null($this->container['placement']) && !in_array($this->container['placement'], $allowedValues, true)) { - $invalidProperties[] = sprintf( - "invalid value '%s' for 'placement', must be one of '%s'", - $this->container['placement'], - implode("', '", $allowedValues) - ); - } - - $allowedValues = $this->getFormatVersionAllowableValues(); - if (!is_null($this->container['format_version']) && !in_array($this->container['format_version'], $allowedValues, true)) { - $invalidProperties[] = sprintf( - "invalid value '%s' for 'format_version', must be one of '%s'", - $this->container['format_version'], - implode("', '", $allowedValues) - ); - } - - return $invalidProperties; - } - - /** - * Validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - return count($this->listInvalidProperties()) === 0; - } - - - /** - * Gets name - * - * @return string|null - */ - public function getName() - { - return $this->container['name']; - } - - /** - * Sets name - * - * @param string|null $name The name for the real-time logging configuration. - * - * @return self - */ - public function setName($name) - { - $this->container['name'] = $name; - - return $this; - } - - /** - * Gets placement - * - * @return string|null - */ - public function getPlacement() - { - return $this->container['placement']; - } - - /** - * Sets placement - * - * @param string|null $placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. - * - * @return self - */ - public function setPlacement($placement) - { - $allowedValues = $this->getPlacementAllowableValues(); - if (!is_null($placement) && !in_array($placement, $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value '%s' for 'placement', must be one of '%s'", - $placement, - implode("', '", $allowedValues) - ) - ); - } - $this->container['placement'] = $placement; - - return $this; - } - - /** - * Gets format_version - * - * @return int|null - */ - public function getFormatVersion() - { - return $this->container['format_version']; - } - - /** - * Sets format_version - * - * @param int|null $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. - * - * @return self - */ - public function setFormatVersion($format_version) - { - $allowedValues = $this->getFormatVersionAllowableValues(); - if (!is_null($format_version) && !in_array($format_version, $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value '%s' for 'format_version', must be one of '%s'", - $format_version, - implode("', '", $allowedValues) - ) - ); - } - $this->container['format_version'] = $format_version; - - return $this; - } - - /** - * Gets response_condition - * - * @return string|null - */ - public function getResponseCondition() - { - return $this->container['response_condition']; - } - - /** - * Sets response_condition - * - * @param string|null $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. - * - * @return self - */ - public function setResponseCondition($response_condition) - { - $this->container['response_condition'] = $response_condition; - - return $this; - } - - /** - * Gets format - * - * @return string|null - */ - public function getFormat() - { - return $this->container['format']; - } - - /** - * Sets format - * - * @param string|null $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). Must produce valid JSON that Elasticsearch can ingest. - * - * @return self - */ - public function setFormat($format) - { - $this->container['format'] = $format; - - return $this; - } - - /** - * Gets tls_ca_cert - * - * @return string|null - */ - public function getTlsCaCert() - { - return $this->container['tls_ca_cert']; - } - - /** - * Sets tls_ca_cert - * - * @param string|null $tls_ca_cert A secure certificate to authenticate a server with. Must be in PEM format. - * - * @return self - */ - public function setTlsCaCert($tls_ca_cert) - { - $this->container['tls_ca_cert'] = $tls_ca_cert; - - return $this; - } - - /** - * Gets tls_client_cert - * - * @return string|null - */ - public function getTlsClientCert() - { - return $this->container['tls_client_cert']; - } - - /** - * Sets tls_client_cert - * - * @param string|null $tls_client_cert The client certificate used to make authenticated requests. Must be in PEM format. - * - * @return self - */ - public function setTlsClientCert($tls_client_cert) - { - $this->container['tls_client_cert'] = $tls_client_cert; - - return $this; - } - - /** - * Gets tls_client_key - * - * @return string|null - */ - public function getTlsClientKey() - { - return $this->container['tls_client_key']; - } - - /** - * Sets tls_client_key - * - * @param string|null $tls_client_key The client private key used to make authenticated requests. Must be in PEM format. - * - * @return self - */ - public function setTlsClientKey($tls_client_key) - { - $this->container['tls_client_key'] = $tls_client_key; - - return $this; - } - - /** - * Gets tls_hostname - * - * @return string|null - */ - public function getTlsHostname() - { - return $this->container['tls_hostname']; - } - - /** - * Sets tls_hostname - * - * @param string|null $tls_hostname The hostname to verify the server's certificate. This should be one of the Subject Alternative Name (SAN) fields for the certificate. Common Names (CN) are not supported. - * - * @return self - */ - public function setTlsHostname($tls_hostname) - { - $this->container['tls_hostname'] = $tls_hostname; - - return $this; - } - - /** - * Gets request_max_entries - * - * @return int|null - */ - public function getRequestMaxEntries() - { - return $this->container['request_max_entries']; - } - - /** - * Sets request_max_entries - * - * @param int|null $request_max_entries The maximum number of logs sent in one request. Defaults `0` for unbounded. - * - * @return self - */ - public function setRequestMaxEntries($request_max_entries) - { - $this->container['request_max_entries'] = $request_max_entries; - - return $this; - } - - /** - * Gets request_max_bytes - * - * @return int|null - */ - public function getRequestMaxBytes() - { - return $this->container['request_max_bytes']; - } - - /** - * Sets request_max_bytes - * - * @param int|null $request_max_bytes The maximum number of bytes sent in one request. Defaults `0` for unbounded. - * - * @return self - */ - public function setRequestMaxBytes($request_max_bytes) - { - $this->container['request_max_bytes'] = $request_max_bytes; - - return $this; - } - - /** - * Gets index - * - * @return string|null - */ - public function getIndex() - { - return $this->container['index']; - } - - /** - * Sets index - * - * @param string|null $index The name of the Elasticsearch index to send documents (logs) to. The index must follow the Elasticsearch [index format rules](https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-create-index.html). We support [strftime](https://www.man7.org/linux/man-pages/man3/strftime.3.html) interpolated variables inside braces prefixed with a pound symbol. For example, `#{%F}` will interpolate as `YYYY-MM-DD` with today's date. - * - * @return self - */ - public function setIndex($index) - { - $this->container['index'] = $index; - - return $this; - } - - /** - * Gets url - * - * @return string|null - */ - public function getUrl() - { - return $this->container['url']; - } - - /** - * Sets url - * - * @param string|null $url The URL to stream logs to. Must use HTTPS. - * - * @return self - */ - public function setUrl($url) - { - $this->container['url'] = $url; - - return $this; - } - - /** - * Gets pipeline - * - * @return string|null - */ - public function getPipeline() - { - return $this->container['pipeline']; - } - - /** - * Sets pipeline - * - * @param string|null $pipeline The ID of the Elasticsearch ingest pipeline to apply pre-process transformations to before indexing. Learn more about creating a pipeline in the [Elasticsearch docs](https://www.elastic.co/guide/en/elasticsearch/reference/current/ingest.html). - * - * @return self - */ - public function setPipeline($pipeline) - { - $this->container['pipeline'] = $pipeline; - - return $this; - } - - /** - * Gets user - * - * @return string|null - */ - public function getUser() - { - return $this->container['user']; - } - - /** - * Sets user - * - * @param string|null $user Basic Auth username. - * - * @return self - */ - public function setUser($user) - { - $this->container['user'] = $user; - - return $this; - } - - /** - * Gets password - * - * @return string|null - */ - public function getPassword() - { - return $this->container['password']; - } - - /** - * Sets password - * - * @param string|null $password Basic Auth password. - * - * @return self - */ - public function setPassword($password) - { - $this->container['password'] = $password; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * - * @param integer $offset Offset - * - * @return boolean - */ - public function offsetExists($offset): bool - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * - * @param integer $offset Offset - * - * @return mixed|null - */ - public function offsetGet($offset): mixed - { - return $this->container[$offset] ?? null; - } - - /** - * Sets value based on offset. - * - * @param int|null $offset Offset - * @param mixed $value Value to be set - * - * @return void - */ - public function offsetSet($offset, $value): void - { - if (is_null($offset)) { - $this->container[] = $value; - } else { - $this->container[$offset] = $value; - } - } - - /** - * Unsets offset. - * - * @param integer $offset Offset - * - * @return void - */ - public function offsetUnset($offset): void - { - unset($this->container[$offset]); - } - - /** - * Serializes the object to a value that can be serialized natively by json_encode(). - * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php - * - * @return mixed Returns data which can be serialized by json_encode(), which is a value - * of any type other than a resource. - */ - public function jsonSerialize(): mixed - { - return ObjectSerializer::sanitizeForSerialization($this); - } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString() - { - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } - - /** - * Gets a header-safe presentation of the object - * - * @return string - */ - public function toHeaderValue() - { - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/lib/Model/LoggingElasticsearchAllOf.php b/lib/Model/LoggingElasticsearchAdditional.php similarity index 98% rename from lib/Model/LoggingElasticsearchAllOf.php rename to lib/Model/LoggingElasticsearchAdditional.php index f9b6ed1a..669d801c 100644 --- a/lib/Model/LoggingElasticsearchAllOf.php +++ b/lib/Model/LoggingElasticsearchAdditional.php @@ -1,6 +1,6 @@ 'string', 'placement' => 'string', - 'format_version' => 'int', 'response_condition' => 'string', 'format' => 'string', + 'format_version' => 'string', 'tls_ca_cert' => 'string', 'tls_client_cert' => 'string', 'tls_client_key' => 'string', @@ -73,7 +73,7 @@ class LoggingElasticsearchResponse implements ModelInterface, ArrayAccess, \Json 'deleted_at' => '\DateTime', 'updated_at' => '\DateTime', 'service_id' => 'string', - 'version' => 'int' + 'version' => 'string' ]; /** @@ -86,9 +86,9 @@ class LoggingElasticsearchResponse implements ModelInterface, ArrayAccess, \Json protected static $fastlyFormats = [ 'name' => null, 'placement' => null, - 'format_version' => null, 'response_condition' => null, 'format' => null, + 'format_version' => null, 'tls_ca_cert' => null, 'tls_client_cert' => null, 'tls_client_key' => null, @@ -136,9 +136,9 @@ public static function fastlyFormats() protected static $attributeMap = [ 'name' => 'name', 'placement' => 'placement', - 'format_version' => 'format_version', 'response_condition' => 'response_condition', 'format' => 'format', + 'format_version' => 'format_version', 'tls_ca_cert' => 'tls_ca_cert', 'tls_client_cert' => 'tls_client_cert', 'tls_client_key' => 'tls_client_key', @@ -165,9 +165,9 @@ public static function fastlyFormats() protected static $setters = [ 'name' => 'setName', 'placement' => 'setPlacement', - 'format_version' => 'setFormatVersion', 'response_condition' => 'setResponseCondition', 'format' => 'setFormat', + 'format_version' => 'setFormatVersion', 'tls_ca_cert' => 'setTlsCaCert', 'tls_client_cert' => 'setTlsClientCert', 'tls_client_key' => 'setTlsClientKey', @@ -194,9 +194,9 @@ public static function fastlyFormats() protected static $getters = [ 'name' => 'getName', 'placement' => 'getPlacement', - 'format_version' => 'getFormatVersion', 'response_condition' => 'getResponseCondition', 'format' => 'getFormat', + 'format_version' => 'getFormatVersion', 'tls_ca_cert' => 'getTlsCaCert', 'tls_client_cert' => 'getTlsClientCert', 'tls_client_key' => 'getTlsClientKey', @@ -259,8 +259,8 @@ public function getModelName() const PLACEMENT_NONE = 'none'; const PLACEMENT_WAF_DEBUG = 'waf_debug'; const PLACEMENT_NULL = 'null'; - const FORMAT_VERSION_v1 = 1; - const FORMAT_VERSION_v2 = 2; + const FORMAT_VERSION_v1 = '1'; + const FORMAT_VERSION_v2 = '2'; /** * Gets allowable values of the enum @@ -306,9 +306,9 @@ public function __construct(array $data = null) { $this->container['name'] = $data['name'] ?? null; $this->container['placement'] = $data['placement'] ?? null; - $this->container['format_version'] = $data['format_version'] ?? self::FORMAT_VERSION_v2; $this->container['response_condition'] = $data['response_condition'] ?? null; $this->container['format'] = $data['format'] ?? null; + $this->container['format_version'] = $data['format_version'] ?? '2'; $this->container['tls_ca_cert'] = $data['tls_ca_cert'] ?? 'null'; $this->container['tls_client_cert'] = $data['tls_client_cert'] ?? 'null'; $this->container['tls_client_key'] = $data['tls_client_key'] ?? 'null'; @@ -428,83 +428,83 @@ public function setPlacement($placement) } /** - * Gets format_version + * Gets response_condition * - * @return int|null + * @return string|null */ - public function getFormatVersion() + public function getResponseCondition() { - return $this->container['format_version']; + return $this->container['response_condition']; } /** - * Sets format_version + * Sets response_condition * - * @param int|null $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. + * @param string|null $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. * * @return self */ - public function setFormatVersion($format_version) + public function setResponseCondition($response_condition) { - $allowedValues = $this->getFormatVersionAllowableValues(); - if (!is_null($format_version) && !in_array($format_version, $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value '%s' for 'format_version', must be one of '%s'", - $format_version, - implode("', '", $allowedValues) - ) - ); - } - $this->container['format_version'] = $format_version; + $this->container['response_condition'] = $response_condition; return $this; } /** - * Gets response_condition + * Gets format * * @return string|null */ - public function getResponseCondition() + public function getFormat() { - return $this->container['response_condition']; + return $this->container['format']; } /** - * Sets response_condition + * Sets format * - * @param string|null $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. + * @param string|null $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). Must produce valid JSON that Elasticsearch can ingest. * * @return self */ - public function setResponseCondition($response_condition) + public function setFormat($format) { - $this->container['response_condition'] = $response_condition; + $this->container['format'] = $format; return $this; } /** - * Gets format + * Gets format_version * * @return string|null */ - public function getFormat() + public function getFormatVersion() { - return $this->container['format']; + return $this->container['format_version']; } /** - * Sets format + * Sets format_version * - * @param string|null $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). Must produce valid JSON that Elasticsearch can ingest. + * @param string|null $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. * * @return self */ - public function setFormat($format) + public function setFormatVersion($format_version) { - $this->container['format'] = $format; + $allowedValues = $this->getFormatVersionAllowableValues(); + if (!is_null($format_version) && !in_array($format_version, $allowedValues, true)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value '%s' for 'format_version', must be one of '%s'", + $format_version, + implode("', '", $allowedValues) + ) + ); + } + $this->container['format_version'] = $format_version; return $this; } @@ -872,7 +872,7 @@ public function setServiceId($service_id) /** * Gets version * - * @return int|null + * @return string|null */ public function getVersion() { @@ -882,7 +882,7 @@ public function getVersion() /** * Sets version * - * @param int|null $version version + * @param string|null $version version * * @return self */ diff --git a/lib/Model/LoggingFormatVersion.php b/lib/Model/LoggingFormatVersion.php deleted file mode 100644 index 6a350e2e..00000000 --- a/lib/Model/LoggingFormatVersion.php +++ /dev/null @@ -1,57 +0,0 @@ - + * @template TKey int|null + * @template TValue mixed|null + */ +class LoggingFormatVersionInteger implements ModelInterface, ArrayAccess, \JsonSerializable +{ + public const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static $fastlyModelName = 'logging_format_version_integer'; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $fastlyTypes = [ + 'format_version' => 'int' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ + protected static $fastlyFormats = [ + 'format_version' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function fastlyTypes() + { + return self::$fastlyTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function fastlyFormats() + { + return self::$fastlyFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'format_version' => 'format_version' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'format_version' => 'setFormatVersion' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'format_version' => 'getFormatVersion' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$fastlyModelName; + } + + const FORMAT_VERSION_v1 = 1; + const FORMAT_VERSION_v2 = 2; + + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getFormatVersionAllowableValues() + { + return [ + self::FORMAT_VERSION_v1, + self::FORMAT_VERSION_v2, + ]; + } + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['format_version'] = $data['format_version'] ?? self::FORMAT_VERSION_v2; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + $allowedValues = $this->getFormatVersionAllowableValues(); + if (!is_null($this->container['format_version']) && !in_array($this->container['format_version'], $allowedValues, true)) { + $invalidProperties[] = sprintf( + "invalid value '%s' for 'format_version', must be one of '%s'", + $this->container['format_version'], + implode("', '", $allowedValues) + ); + } + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + + /** + * Gets format_version + * + * @return int|null + */ + public function getFormatVersion() + { + return $this->container['format_version']; + } + + /** + * Sets format_version + * + * @param int|null $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. + * + * @return self + */ + public function setFormatVersion($format_version) + { + $allowedValues = $this->getFormatVersionAllowableValues(); + if (!is_null($format_version) && !in_array($format_version, $allowedValues, true)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value '%s' for 'format_version', must be one of '%s'", + $format_version, + implode("', '", $allowedValues) + ) + ); + } + $this->container['format_version'] = $format_version; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset): bool + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed|null + */ + public function offsetGet($offset): mixed + { + return $this->container[$offset] ?? null; + } + + /** + * Sets value based on offset. + * + * @param int|null $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value): void + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset): void + { + unset($this->container[$offset]); + } + + /** + * Serializes the object to a value that can be serialized natively by json_encode(). + * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php + * + * @return mixed Returns data which can be serialized by json_encode(), which is a value + * of any type other than a resource. + */ + public function jsonSerialize(): mixed + { + return ObjectSerializer::sanitizeForSerialization($this); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + /** + * Gets a header-safe presentation of the object + * + * @return string + */ + public function toHeaderValue() + { + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/lib/Model/LoggingFormatVersionString.php b/lib/Model/LoggingFormatVersionString.php new file mode 100644 index 00000000..07bee947 --- /dev/null +++ b/lib/Model/LoggingFormatVersionString.php @@ -0,0 +1,348 @@ + + * @template TKey int|null + * @template TValue mixed|null + */ +class LoggingFormatVersionString implements ModelInterface, ArrayAccess, \JsonSerializable +{ + public const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static $fastlyModelName = 'logging_format_version_string'; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $fastlyTypes = [ + 'format_version' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ + protected static $fastlyFormats = [ + 'format_version' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function fastlyTypes() + { + return self::$fastlyTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function fastlyFormats() + { + return self::$fastlyFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'format_version' => 'format_version' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'format_version' => 'setFormatVersion' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'format_version' => 'getFormatVersion' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$fastlyModelName; + } + + const FORMAT_VERSION_v1 = '1'; + const FORMAT_VERSION_v2 = '2'; + + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getFormatVersionAllowableValues() + { + return [ + self::FORMAT_VERSION_v1, + self::FORMAT_VERSION_v2, + ]; + } + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['format_version'] = $data['format_version'] ?? '2'; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + $allowedValues = $this->getFormatVersionAllowableValues(); + if (!is_null($this->container['format_version']) && !in_array($this->container['format_version'], $allowedValues, true)) { + $invalidProperties[] = sprintf( + "invalid value '%s' for 'format_version', must be one of '%s'", + $this->container['format_version'], + implode("', '", $allowedValues) + ); + } + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + + /** + * Gets format_version + * + * @return string|null + */ + public function getFormatVersion() + { + return $this->container['format_version']; + } + + /** + * Sets format_version + * + * @param string|null $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. + * + * @return self + */ + public function setFormatVersion($format_version) + { + $allowedValues = $this->getFormatVersionAllowableValues(); + if (!is_null($format_version) && !in_array($format_version, $allowedValues, true)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value '%s' for 'format_version', must be one of '%s'", + $format_version, + implode("', '", $allowedValues) + ) + ); + } + $this->container['format_version'] = $format_version; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset): bool + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed|null + */ + public function offsetGet($offset): mixed + { + return $this->container[$offset] ?? null; + } + + /** + * Sets value based on offset. + * + * @param int|null $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value): void + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset): void + { + unset($this->container[$offset]); + } + + /** + * Serializes the object to a value that can be serialized natively by json_encode(). + * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php + * + * @return mixed Returns data which can be serialized by json_encode(), which is a value + * of any type other than a resource. + */ + public function jsonSerialize(): mixed + { + return ObjectSerializer::sanitizeForSerialization($this); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + /** + * Gets a header-safe presentation of the object + * + * @return string + */ + public function toHeaderValue() + { + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/lib/Model/LoggingFtp.php b/lib/Model/LoggingFtp.php deleted file mode 100644 index b4fd8a2a..00000000 --- a/lib/Model/LoggingFtp.php +++ /dev/null @@ -1,968 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class LoggingFtp implements ModelInterface, ArrayAccess, \JsonSerializable -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $fastlyModelName = 'logging_ftp'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $fastlyTypes = [ - 'name' => 'string', - 'placement' => 'string', - 'format_version' => 'int', - 'response_condition' => 'string', - 'format' => 'string', - 'message_type' => 'string', - 'timestamp_format' => 'string', - 'period' => 'int', - 'gzip_level' => 'int', - 'compression_codec' => 'string', - 'address' => 'string', - 'hostname' => 'string', - 'ipv4' => 'string', - 'password' => 'string', - 'path' => 'string', - 'port' => 'int', - 'public_key' => 'string', - 'user' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $fastlyFormats = [ - 'name' => null, - 'placement' => null, - 'format_version' => null, - 'response_condition' => null, - 'format' => null, - 'message_type' => null, - 'timestamp_format' => null, - 'period' => null, - 'gzip_level' => null, - 'compression_codec' => null, - 'address' => null, - 'hostname' => null, - 'ipv4' => null, - 'password' => null, - 'path' => null, - 'port' => null, - 'public_key' => null, - 'user' => null - ]; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @return array - */ - public static function fastlyTypes() - { - return self::$fastlyTypes; - } - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @return array - */ - public static function fastlyFormats() - { - return self::$fastlyFormats; - } - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'name' => 'name', - 'placement' => 'placement', - 'format_version' => 'format_version', - 'response_condition' => 'response_condition', - 'format' => 'format', - 'message_type' => 'message_type', - 'timestamp_format' => 'timestamp_format', - 'period' => 'period', - 'gzip_level' => 'gzip_level', - 'compression_codec' => 'compression_codec', - 'address' => 'address', - 'hostname' => 'hostname', - 'ipv4' => 'ipv4', - 'password' => 'password', - 'path' => 'path', - 'port' => 'port', - 'public_key' => 'public_key', - 'user' => 'user' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'name' => 'setName', - 'placement' => 'setPlacement', - 'format_version' => 'setFormatVersion', - 'response_condition' => 'setResponseCondition', - 'format' => 'setFormat', - 'message_type' => 'setMessageType', - 'timestamp_format' => 'setTimestampFormat', - 'period' => 'setPeriod', - 'gzip_level' => 'setGzipLevel', - 'compression_codec' => 'setCompressionCodec', - 'address' => 'setAddress', - 'hostname' => 'setHostname', - 'ipv4' => 'setIpv4', - 'password' => 'setPassword', - 'path' => 'setPath', - 'port' => 'setPort', - 'public_key' => 'setPublicKey', - 'user' => 'setUser' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'name' => 'getName', - 'placement' => 'getPlacement', - 'format_version' => 'getFormatVersion', - 'response_condition' => 'getResponseCondition', - 'format' => 'getFormat', - 'message_type' => 'getMessageType', - 'timestamp_format' => 'getTimestampFormat', - 'period' => 'getPeriod', - 'gzip_level' => 'getGzipLevel', - 'compression_codec' => 'getCompressionCodec', - 'address' => 'getAddress', - 'hostname' => 'getHostname', - 'ipv4' => 'getIpv4', - 'password' => 'getPassword', - 'path' => 'getPath', - 'port' => 'getPort', - 'public_key' => 'getPublicKey', - 'user' => 'getUser' - ]; - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @return array - */ - public static function attributeMap() - { - return self::$attributeMap; - } - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @return array - */ - public static function setters() - { - return self::$setters; - } - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @return array - */ - public static function getters() - { - return self::$getters; - } - - /** - * The original name of the model. - * - * @return string - */ - public function getModelName() - { - return self::$fastlyModelName; - } - - const PLACEMENT_NONE = 'none'; - const PLACEMENT_WAF_DEBUG = 'waf_debug'; - const PLACEMENT_NULL = 'null'; - const FORMAT_VERSION_v1 = 1; - const FORMAT_VERSION_v2 = 2; - const MESSAGE_TYPE_CLASSIC = 'classic'; - const MESSAGE_TYPE_LOGGLY = 'loggly'; - const MESSAGE_TYPE_LOGPLEX = 'logplex'; - const MESSAGE_TYPE_BLANK = 'blank'; - const COMPRESSION_CODEC_ZSTD = 'zstd'; - const COMPRESSION_CODEC_SNAPPY = 'snappy'; - const COMPRESSION_CODEC_GZIP = 'gzip'; - - /** - * Gets allowable values of the enum - * - * @return string[] - */ - public function getPlacementAllowableValues() - { - return [ - self::PLACEMENT_NONE, - self::PLACEMENT_WAF_DEBUG, - self::PLACEMENT_NULL, - ]; - } - - /** - * Gets allowable values of the enum - * - * @return string[] - */ - public function getFormatVersionAllowableValues() - { - return [ - self::FORMAT_VERSION_v1, - self::FORMAT_VERSION_v2, - ]; - } - - /** - * Gets allowable values of the enum - * - * @return string[] - */ - public function getMessageTypeAllowableValues() - { - return [ - self::MESSAGE_TYPE_CLASSIC, - self::MESSAGE_TYPE_LOGGLY, - self::MESSAGE_TYPE_LOGPLEX, - self::MESSAGE_TYPE_BLANK, - ]; - } - - /** - * Gets allowable values of the enum - * - * @return string[] - */ - public function getCompressionCodecAllowableValues() - { - return [ - self::COMPRESSION_CODEC_ZSTD, - self::COMPRESSION_CODEC_SNAPPY, - self::COMPRESSION_CODEC_GZIP, - ]; - } - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['name'] = $data['name'] ?? null; - $this->container['placement'] = $data['placement'] ?? null; - $this->container['format_version'] = $data['format_version'] ?? self::FORMAT_VERSION_v2; - $this->container['response_condition'] = $data['response_condition'] ?? null; - $this->container['format'] = $data['format'] ?? '%h %l %u %t "%r" %>s %b'; - $this->container['message_type'] = $data['message_type'] ?? 'classic'; - $this->container['timestamp_format'] = $data['timestamp_format'] ?? null; - $this->container['period'] = $data['period'] ?? 3600; - $this->container['gzip_level'] = $data['gzip_level'] ?? 0; - $this->container['compression_codec'] = $data['compression_codec'] ?? null; - $this->container['address'] = $data['address'] ?? null; - $this->container['hostname'] = $data['hostname'] ?? null; - $this->container['ipv4'] = $data['ipv4'] ?? null; - $this->container['password'] = $data['password'] ?? null; - $this->container['path'] = $data['path'] ?? null; - $this->container['port'] = $data['port'] ?? 21; - $this->container['public_key'] = $data['public_key'] ?? 'null'; - $this->container['user'] = $data['user'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - - $allowedValues = $this->getPlacementAllowableValues(); - if (!is_null($this->container['placement']) && !in_array($this->container['placement'], $allowedValues, true)) { - $invalidProperties[] = sprintf( - "invalid value '%s' for 'placement', must be one of '%s'", - $this->container['placement'], - implode("', '", $allowedValues) - ); - } - - $allowedValues = $this->getFormatVersionAllowableValues(); - if (!is_null($this->container['format_version']) && !in_array($this->container['format_version'], $allowedValues, true)) { - $invalidProperties[] = sprintf( - "invalid value '%s' for 'format_version', must be one of '%s'", - $this->container['format_version'], - implode("', '", $allowedValues) - ); - } - - $allowedValues = $this->getMessageTypeAllowableValues(); - if (!is_null($this->container['message_type']) && !in_array($this->container['message_type'], $allowedValues, true)) { - $invalidProperties[] = sprintf( - "invalid value '%s' for 'message_type', must be one of '%s'", - $this->container['message_type'], - implode("', '", $allowedValues) - ); - } - - $allowedValues = $this->getCompressionCodecAllowableValues(); - if (!is_null($this->container['compression_codec']) && !in_array($this->container['compression_codec'], $allowedValues, true)) { - $invalidProperties[] = sprintf( - "invalid value '%s' for 'compression_codec', must be one of '%s'", - $this->container['compression_codec'], - implode("', '", $allowedValues) - ); - } - - return $invalidProperties; - } - - /** - * Validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - return count($this->listInvalidProperties()) === 0; - } - - - /** - * Gets name - * - * @return string|null - */ - public function getName() - { - return $this->container['name']; - } - - /** - * Sets name - * - * @param string|null $name The name for the real-time logging configuration. - * - * @return self - */ - public function setName($name) - { - $this->container['name'] = $name; - - return $this; - } - - /** - * Gets placement - * - * @return string|null - */ - public function getPlacement() - { - return $this->container['placement']; - } - - /** - * Sets placement - * - * @param string|null $placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. - * - * @return self - */ - public function setPlacement($placement) - { - $allowedValues = $this->getPlacementAllowableValues(); - if (!is_null($placement) && !in_array($placement, $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value '%s' for 'placement', must be one of '%s'", - $placement, - implode("', '", $allowedValues) - ) - ); - } - $this->container['placement'] = $placement; - - return $this; - } - - /** - * Gets format_version - * - * @return int|null - */ - public function getFormatVersion() - { - return $this->container['format_version']; - } - - /** - * Sets format_version - * - * @param int|null $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. - * - * @return self - */ - public function setFormatVersion($format_version) - { - $allowedValues = $this->getFormatVersionAllowableValues(); - if (!is_null($format_version) && !in_array($format_version, $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value '%s' for 'format_version', must be one of '%s'", - $format_version, - implode("', '", $allowedValues) - ) - ); - } - $this->container['format_version'] = $format_version; - - return $this; - } - - /** - * Gets response_condition - * - * @return string|null - */ - public function getResponseCondition() - { - return $this->container['response_condition']; - } - - /** - * Sets response_condition - * - * @param string|null $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. - * - * @return self - */ - public function setResponseCondition($response_condition) - { - $this->container['response_condition'] = $response_condition; - - return $this; - } - - /** - * Gets format - * - * @return string|null - */ - public function getFormat() - { - return $this->container['format']; - } - - /** - * Sets format - * - * @param string|null $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). - * - * @return self - */ - public function setFormat($format) - { - $this->container['format'] = $format; - - return $this; - } - - /** - * Gets message_type - * - * @return string|null - */ - public function getMessageType() - { - return $this->container['message_type']; - } - - /** - * Sets message_type - * - * @param string|null $message_type How the message should be formatted. - * - * @return self - */ - public function setMessageType($message_type) - { - $allowedValues = $this->getMessageTypeAllowableValues(); - if (!is_null($message_type) && !in_array($message_type, $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value '%s' for 'message_type', must be one of '%s'", - $message_type, - implode("', '", $allowedValues) - ) - ); - } - $this->container['message_type'] = $message_type; - - return $this; - } - - /** - * Gets timestamp_format - * - * @return string|null - */ - public function getTimestampFormat() - { - return $this->container['timestamp_format']; - } - - /** - * Sets timestamp_format - * - * @param string|null $timestamp_format A timestamp format - * - * @return self - */ - public function setTimestampFormat($timestamp_format) - { - $this->container['timestamp_format'] = $timestamp_format; - - return $this; - } - - /** - * Gets period - * - * @return int|null - */ - public function getPeriod() - { - return $this->container['period']; - } - - /** - * Sets period - * - * @param int|null $period How frequently log files are finalized so they can be available for reading (in seconds). - * - * @return self - */ - public function setPeriod($period) - { - $this->container['period'] = $period; - - return $this; - } - - /** - * Gets gzip_level - * - * @return int|null - */ - public function getGzipLevel() - { - return $this->container['gzip_level']; - } - - /** - * Sets gzip_level - * - * @param int|null $gzip_level The level of gzip encoding when sending logs (default `0`, no compression). Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. - * - * @return self - */ - public function setGzipLevel($gzip_level) - { - $this->container['gzip_level'] = $gzip_level; - - return $this; - } - - /** - * Gets compression_codec - * - * @return string|null - */ - public function getCompressionCodec() - { - return $this->container['compression_codec']; - } - - /** - * Sets compression_codec - * - * @param string|null $compression_codec The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. - * - * @return self - */ - public function setCompressionCodec($compression_codec) - { - $allowedValues = $this->getCompressionCodecAllowableValues(); - if (!is_null($compression_codec) && !in_array($compression_codec, $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value '%s' for 'compression_codec', must be one of '%s'", - $compression_codec, - implode("', '", $allowedValues) - ) - ); - } - $this->container['compression_codec'] = $compression_codec; - - return $this; - } - - /** - * Gets address - * - * @return string|null - */ - public function getAddress() - { - return $this->container['address']; - } - - /** - * Sets address - * - * @param string|null $address An hostname or IPv4 address. - * - * @return self - */ - public function setAddress($address) - { - $this->container['address'] = $address; - - return $this; - } - - /** - * Gets hostname - * - * @return string|null - */ - public function getHostname() - { - return $this->container['hostname']; - } - - /** - * Sets hostname - * - * @param string|null $hostname Hostname used. - * - * @return self - */ - public function setHostname($hostname) - { - $this->container['hostname'] = $hostname; - - return $this; - } - - /** - * Gets ipv4 - * - * @return string|null - */ - public function getIpv4() - { - return $this->container['ipv4']; - } - - /** - * Sets ipv4 - * - * @param string|null $ipv4 IPv4 address of the host. - * - * @return self - */ - public function setIpv4($ipv4) - { - $this->container['ipv4'] = $ipv4; - - return $this; - } - - /** - * Gets password - * - * @return string|null - */ - public function getPassword() - { - return $this->container['password']; - } - - /** - * Sets password - * - * @param string|null $password The password for the server. For anonymous use an email address. - * - * @return self - */ - public function setPassword($password) - { - $this->container['password'] = $password; - - return $this; - } - - /** - * Gets path - * - * @return string|null - */ - public function getPath() - { - return $this->container['path']; - } - - /** - * Sets path - * - * @param string|null $path The path to upload log files to. If the path ends in `/` then it is treated as a directory. - * - * @return self - */ - public function setPath($path) - { - $this->container['path'] = $path; - - return $this; - } - - /** - * Gets port - * - * @return int|null - */ - public function getPort() - { - return $this->container['port']; - } - - /** - * Sets port - * - * @param int|null $port The port number. - * - * @return self - */ - public function setPort($port) - { - $this->container['port'] = $port; - - return $this; - } - - /** - * Gets public_key - * - * @return string|null - */ - public function getPublicKey() - { - return $this->container['public_key']; - } - - /** - * Sets public_key - * - * @param string|null $public_key A PGP public key that Fastly will use to encrypt your log files before writing them to disk. - * - * @return self - */ - public function setPublicKey($public_key) - { - $this->container['public_key'] = $public_key; - - return $this; - } - - /** - * Gets user - * - * @return string|null - */ - public function getUser() - { - return $this->container['user']; - } - - /** - * Sets user - * - * @param string|null $user The username for the server. Can be anonymous. - * - * @return self - */ - public function setUser($user) - { - $this->container['user'] = $user; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * - * @param integer $offset Offset - * - * @return boolean - */ - public function offsetExists($offset): bool - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * - * @param integer $offset Offset - * - * @return mixed|null - */ - public function offsetGet($offset): mixed - { - return $this->container[$offset] ?? null; - } - - /** - * Sets value based on offset. - * - * @param int|null $offset Offset - * @param mixed $value Value to be set - * - * @return void - */ - public function offsetSet($offset, $value): void - { - if (is_null($offset)) { - $this->container[] = $value; - } else { - $this->container[$offset] = $value; - } - } - - /** - * Unsets offset. - * - * @param integer $offset Offset - * - * @return void - */ - public function offsetUnset($offset): void - { - unset($this->container[$offset]); - } - - /** - * Serializes the object to a value that can be serialized natively by json_encode(). - * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php - * - * @return mixed Returns data which can be serialized by json_encode(), which is a value - * of any type other than a resource. - */ - public function jsonSerialize(): mixed - { - return ObjectSerializer::sanitizeForSerialization($this); - } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString() - { - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } - - /** - * Gets a header-safe presentation of the object - * - * @return string - */ - public function toHeaderValue() - { - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/lib/Model/LoggingFtpAllOf.php b/lib/Model/LoggingFtpAdditional.php similarity index 93% rename from lib/Model/LoggingFtpAllOf.php rename to lib/Model/LoggingFtpAdditional.php index 8057d7e2..77438d83 100644 --- a/lib/Model/LoggingFtpAllOf.php +++ b/lib/Model/LoggingFtpAdditional.php @@ -1,6 +1,6 @@ 'string', 'password' => 'string', 'path' => 'string', - 'port' => 'int', 'public_key' => 'string', 'user' => 'string' ]; @@ -76,7 +75,6 @@ class LoggingFtpAllOf implements ModelInterface, ArrayAccess, \JsonSerializable 'ipv4' => null, 'password' => null, 'path' => null, - 'port' => null, 'public_key' => null, 'user' => null ]; @@ -113,7 +111,6 @@ public static function fastlyFormats() 'ipv4' => 'ipv4', 'password' => 'password', 'path' => 'path', - 'port' => 'port', 'public_key' => 'public_key', 'user' => 'user' ]; @@ -129,7 +126,6 @@ public static function fastlyFormats() 'ipv4' => 'setIpv4', 'password' => 'setPassword', 'path' => 'setPath', - 'port' => 'setPort', 'public_key' => 'setPublicKey', 'user' => 'setUser' ]; @@ -145,7 +141,6 @@ public static function fastlyFormats() 'ipv4' => 'getIpv4', 'password' => 'getPassword', 'path' => 'getPath', - 'port' => 'getPort', 'public_key' => 'getPublicKey', 'user' => 'getUser' ]; @@ -212,7 +207,6 @@ public function __construct(array $data = null) $this->container['ipv4'] = $data['ipv4'] ?? null; $this->container['password'] = $data['password'] ?? null; $this->container['path'] = $data['path'] ?? null; - $this->container['port'] = $data['port'] ?? 21; $this->container['public_key'] = $data['public_key'] ?? 'null'; $this->container['user'] = $data['user'] ?? null; } @@ -361,30 +355,6 @@ public function setPath($path) return $this; } - /** - * Gets port - * - * @return int|null - */ - public function getPort() - { - return $this->container['port']; - } - - /** - * Sets port - * - * @param int|null $port The port number. - * - * @return self - */ - public function setPort($port) - { - $this->container['port'] = $port; - - return $this; - } - /** * Gets public_key * diff --git a/lib/Model/LoggingFtpResponse.php b/lib/Model/LoggingFtpResponse.php index a1a3a503..d7d9e158 100644 --- a/lib/Model/LoggingFtpResponse.php +++ b/lib/Model/LoggingFtpResponse.php @@ -55,27 +55,27 @@ class LoggingFtpResponse implements ModelInterface, ArrayAccess, \JsonSerializab protected static $fastlyTypes = [ 'name' => 'string', 'placement' => 'string', - 'format_version' => 'int', 'response_condition' => 'string', 'format' => 'string', + 'format_version' => 'string', 'message_type' => 'string', 'timestamp_format' => 'string', - 'period' => 'int', - 'gzip_level' => 'int', 'compression_codec' => 'string', + 'period' => 'string', + 'gzip_level' => 'string', + 'created_at' => '\DateTime', + 'deleted_at' => '\DateTime', + 'updated_at' => '\DateTime', + 'service_id' => 'string', + 'version' => 'string', 'address' => 'string', 'hostname' => 'string', 'ipv4' => 'string', 'password' => 'string', 'path' => 'string', - 'port' => 'int', 'public_key' => 'string', 'user' => 'string', - 'created_at' => '\DateTime', - 'deleted_at' => '\DateTime', - 'updated_at' => '\DateTime', - 'service_id' => 'string', - 'version' => 'int' + 'port' => 'string' ]; /** @@ -88,27 +88,27 @@ class LoggingFtpResponse implements ModelInterface, ArrayAccess, \JsonSerializab protected static $fastlyFormats = [ 'name' => null, 'placement' => null, - 'format_version' => null, 'response_condition' => null, 'format' => null, + 'format_version' => null, 'message_type' => null, 'timestamp_format' => null, + 'compression_codec' => null, 'period' => null, 'gzip_level' => null, - 'compression_codec' => null, + 'created_at' => 'date-time', + 'deleted_at' => 'date-time', + 'updated_at' => 'date-time', + 'service_id' => null, + 'version' => null, 'address' => null, 'hostname' => null, 'ipv4' => null, 'password' => null, 'path' => null, - 'port' => null, 'public_key' => null, 'user' => null, - 'created_at' => 'date-time', - 'deleted_at' => 'date-time', - 'updated_at' => 'date-time', - 'service_id' => null, - 'version' => null + 'port' => null ]; /** @@ -140,27 +140,27 @@ public static function fastlyFormats() protected static $attributeMap = [ 'name' => 'name', 'placement' => 'placement', - 'format_version' => 'format_version', 'response_condition' => 'response_condition', 'format' => 'format', + 'format_version' => 'format_version', 'message_type' => 'message_type', 'timestamp_format' => 'timestamp_format', + 'compression_codec' => 'compression_codec', 'period' => 'period', 'gzip_level' => 'gzip_level', - 'compression_codec' => 'compression_codec', + 'created_at' => 'created_at', + 'deleted_at' => 'deleted_at', + 'updated_at' => 'updated_at', + 'service_id' => 'service_id', + 'version' => 'version', 'address' => 'address', 'hostname' => 'hostname', 'ipv4' => 'ipv4', 'password' => 'password', 'path' => 'path', - 'port' => 'port', 'public_key' => 'public_key', 'user' => 'user', - 'created_at' => 'created_at', - 'deleted_at' => 'deleted_at', - 'updated_at' => 'updated_at', - 'service_id' => 'service_id', - 'version' => 'version' + 'port' => 'port' ]; /** @@ -171,27 +171,27 @@ public static function fastlyFormats() protected static $setters = [ 'name' => 'setName', 'placement' => 'setPlacement', - 'format_version' => 'setFormatVersion', 'response_condition' => 'setResponseCondition', 'format' => 'setFormat', + 'format_version' => 'setFormatVersion', 'message_type' => 'setMessageType', 'timestamp_format' => 'setTimestampFormat', + 'compression_codec' => 'setCompressionCodec', 'period' => 'setPeriod', 'gzip_level' => 'setGzipLevel', - 'compression_codec' => 'setCompressionCodec', + 'created_at' => 'setCreatedAt', + 'deleted_at' => 'setDeletedAt', + 'updated_at' => 'setUpdatedAt', + 'service_id' => 'setServiceId', + 'version' => 'setVersion', 'address' => 'setAddress', 'hostname' => 'setHostname', 'ipv4' => 'setIpv4', 'password' => 'setPassword', 'path' => 'setPath', - 'port' => 'setPort', 'public_key' => 'setPublicKey', 'user' => 'setUser', - 'created_at' => 'setCreatedAt', - 'deleted_at' => 'setDeletedAt', - 'updated_at' => 'setUpdatedAt', - 'service_id' => 'setServiceId', - 'version' => 'setVersion' + 'port' => 'setPort' ]; /** @@ -202,27 +202,27 @@ public static function fastlyFormats() protected static $getters = [ 'name' => 'getName', 'placement' => 'getPlacement', - 'format_version' => 'getFormatVersion', 'response_condition' => 'getResponseCondition', 'format' => 'getFormat', + 'format_version' => 'getFormatVersion', 'message_type' => 'getMessageType', 'timestamp_format' => 'getTimestampFormat', + 'compression_codec' => 'getCompressionCodec', 'period' => 'getPeriod', 'gzip_level' => 'getGzipLevel', - 'compression_codec' => 'getCompressionCodec', + 'created_at' => 'getCreatedAt', + 'deleted_at' => 'getDeletedAt', + 'updated_at' => 'getUpdatedAt', + 'service_id' => 'getServiceId', + 'version' => 'getVersion', 'address' => 'getAddress', 'hostname' => 'getHostname', 'ipv4' => 'getIpv4', 'password' => 'getPassword', 'path' => 'getPath', - 'port' => 'getPort', 'public_key' => 'getPublicKey', 'user' => 'getUser', - 'created_at' => 'getCreatedAt', - 'deleted_at' => 'getDeletedAt', - 'updated_at' => 'getUpdatedAt', - 'service_id' => 'getServiceId', - 'version' => 'getVersion' + 'port' => 'getPort' ]; /** @@ -269,8 +269,8 @@ public function getModelName() const PLACEMENT_NONE = 'none'; const PLACEMENT_WAF_DEBUG = 'waf_debug'; const PLACEMENT_NULL = 'null'; - const FORMAT_VERSION_v1 = 1; - const FORMAT_VERSION_v2 = 2; + const FORMAT_VERSION_v1 = '1'; + const FORMAT_VERSION_v2 = '2'; const MESSAGE_TYPE_CLASSIC = 'classic'; const MESSAGE_TYPE_LOGGLY = 'loggly'; const MESSAGE_TYPE_LOGPLEX = 'logplex'; @@ -352,27 +352,27 @@ public function __construct(array $data = null) { $this->container['name'] = $data['name'] ?? null; $this->container['placement'] = $data['placement'] ?? null; - $this->container['format_version'] = $data['format_version'] ?? self::FORMAT_VERSION_v2; $this->container['response_condition'] = $data['response_condition'] ?? null; $this->container['format'] = $data['format'] ?? '%h %l %u %t "%r" %>s %b'; + $this->container['format_version'] = $data['format_version'] ?? '2'; $this->container['message_type'] = $data['message_type'] ?? 'classic'; $this->container['timestamp_format'] = $data['timestamp_format'] ?? null; - $this->container['period'] = $data['period'] ?? 3600; - $this->container['gzip_level'] = $data['gzip_level'] ?? 0; $this->container['compression_codec'] = $data['compression_codec'] ?? null; + $this->container['period'] = $data['period'] ?? '3600'; + $this->container['gzip_level'] = $data['gzip_level'] ?? '0'; + $this->container['created_at'] = $data['created_at'] ?? null; + $this->container['deleted_at'] = $data['deleted_at'] ?? null; + $this->container['updated_at'] = $data['updated_at'] ?? null; + $this->container['service_id'] = $data['service_id'] ?? null; + $this->container['version'] = $data['version'] ?? null; $this->container['address'] = $data['address'] ?? null; $this->container['hostname'] = $data['hostname'] ?? null; $this->container['ipv4'] = $data['ipv4'] ?? null; $this->container['password'] = $data['password'] ?? null; $this->container['path'] = $data['path'] ?? null; - $this->container['port'] = $data['port'] ?? 21; $this->container['public_key'] = $data['public_key'] ?? 'null'; $this->container['user'] = $data['user'] ?? null; - $this->container['created_at'] = $data['created_at'] ?? null; - $this->container['deleted_at'] = $data['deleted_at'] ?? null; - $this->container['updated_at'] = $data['updated_at'] ?? null; - $this->container['service_id'] = $data['service_id'] ?? null; - $this->container['version'] = $data['version'] ?? null; + $this->container['port'] = $data['port'] ?? '21'; } /** @@ -494,83 +494,83 @@ public function setPlacement($placement) } /** - * Gets format_version + * Gets response_condition * - * @return int|null + * @return string|null */ - public function getFormatVersion() + public function getResponseCondition() { - return $this->container['format_version']; + return $this->container['response_condition']; } /** - * Sets format_version + * Sets response_condition * - * @param int|null $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. + * @param string|null $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. * * @return self */ - public function setFormatVersion($format_version) + public function setResponseCondition($response_condition) { - $allowedValues = $this->getFormatVersionAllowableValues(); - if (!is_null($format_version) && !in_array($format_version, $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value '%s' for 'format_version', must be one of '%s'", - $format_version, - implode("', '", $allowedValues) - ) - ); - } - $this->container['format_version'] = $format_version; + $this->container['response_condition'] = $response_condition; return $this; } /** - * Gets response_condition + * Gets format * * @return string|null */ - public function getResponseCondition() + public function getFormat() { - return $this->container['response_condition']; + return $this->container['format']; } /** - * Sets response_condition + * Sets format * - * @param string|null $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. + * @param string|null $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). * * @return self */ - public function setResponseCondition($response_condition) + public function setFormat($format) { - $this->container['response_condition'] = $response_condition; + $this->container['format'] = $format; return $this; } /** - * Gets format + * Gets format_version * * @return string|null */ - public function getFormat() + public function getFormatVersion() { - return $this->container['format']; + return $this->container['format_version']; } /** - * Sets format + * Sets format_version * - * @param string|null $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). + * @param string|null $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. * * @return self */ - public function setFormat($format) + public function setFormatVersion($format_version) { - $this->container['format'] = $format; + $allowedValues = $this->getFormatVersionAllowableValues(); + if (!is_null($format_version) && !in_array($format_version, $allowedValues, true)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value '%s' for 'format_version', must be one of '%s'", + $format_version, + implode("', '", $allowedValues) + ) + ); + } + $this->container['format_version'] = $format_version; return $this; } @@ -634,395 +634,395 @@ public function setTimestampFormat($timestamp_format) } /** - * Gets period + * Gets compression_codec * - * @return int|null + * @return string|null */ - public function getPeriod() + public function getCompressionCodec() { - return $this->container['period']; + return $this->container['compression_codec']; } /** - * Sets period + * Sets compression_codec * - * @param int|null $period How frequently log files are finalized so they can be available for reading (in seconds). + * @param string|null $compression_codec The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. * * @return self */ - public function setPeriod($period) + public function setCompressionCodec($compression_codec) { - $this->container['period'] = $period; + $allowedValues = $this->getCompressionCodecAllowableValues(); + if (!is_null($compression_codec) && !in_array($compression_codec, $allowedValues, true)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value '%s' for 'compression_codec', must be one of '%s'", + $compression_codec, + implode("', '", $allowedValues) + ) + ); + } + $this->container['compression_codec'] = $compression_codec; return $this; } /** - * Gets gzip_level + * Gets period * - * @return int|null + * @return string|null */ - public function getGzipLevel() + public function getPeriod() { - return $this->container['gzip_level']; + return $this->container['period']; } /** - * Sets gzip_level + * Sets period * - * @param int|null $gzip_level The level of gzip encoding when sending logs (default `0`, no compression). Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. + * @param string|null $period How frequently log files are finalized so they can be available for reading (in seconds). * * @return self */ - public function setGzipLevel($gzip_level) + public function setPeriod($period) { - $this->container['gzip_level'] = $gzip_level; + $this->container['period'] = $period; return $this; } /** - * Gets compression_codec + * Gets gzip_level * * @return string|null */ - public function getCompressionCodec() + public function getGzipLevel() { - return $this->container['compression_codec']; + return $this->container['gzip_level']; } /** - * Sets compression_codec + * Sets gzip_level * - * @param string|null $compression_codec The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. + * @param string|null $gzip_level The level of gzip encoding when sending logs (default `0`, no compression). Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. * * @return self */ - public function setCompressionCodec($compression_codec) + public function setGzipLevel($gzip_level) { - $allowedValues = $this->getCompressionCodecAllowableValues(); - if (!is_null($compression_codec) && !in_array($compression_codec, $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value '%s' for 'compression_codec', must be one of '%s'", - $compression_codec, - implode("', '", $allowedValues) - ) - ); - } - $this->container['compression_codec'] = $compression_codec; + $this->container['gzip_level'] = $gzip_level; return $this; } /** - * Gets address + * Gets created_at * - * @return string|null + * @return \DateTime|null */ - public function getAddress() + public function getCreatedAt() { - return $this->container['address']; + return $this->container['created_at']; } /** - * Sets address + * Sets created_at * - * @param string|null $address An hostname or IPv4 address. + * @param \DateTime|null $created_at Date and time in ISO 8601 format. * * @return self */ - public function setAddress($address) + public function setCreatedAt($created_at) { - $this->container['address'] = $address; + $this->container['created_at'] = $created_at; return $this; } /** - * Gets hostname + * Gets deleted_at * - * @return string|null + * @return \DateTime|null */ - public function getHostname() + public function getDeletedAt() { - return $this->container['hostname']; + return $this->container['deleted_at']; } /** - * Sets hostname + * Sets deleted_at * - * @param string|null $hostname Hostname used. + * @param \DateTime|null $deleted_at Date and time in ISO 8601 format. * * @return self */ - public function setHostname($hostname) + public function setDeletedAt($deleted_at) { - $this->container['hostname'] = $hostname; + $this->container['deleted_at'] = $deleted_at; return $this; } /** - * Gets ipv4 + * Gets updated_at * - * @return string|null + * @return \DateTime|null */ - public function getIpv4() + public function getUpdatedAt() { - return $this->container['ipv4']; + return $this->container['updated_at']; } /** - * Sets ipv4 + * Sets updated_at * - * @param string|null $ipv4 IPv4 address of the host. + * @param \DateTime|null $updated_at Date and time in ISO 8601 format. * * @return self */ - public function setIpv4($ipv4) + public function setUpdatedAt($updated_at) { - $this->container['ipv4'] = $ipv4; + $this->container['updated_at'] = $updated_at; return $this; } /** - * Gets password + * Gets service_id * * @return string|null */ - public function getPassword() + public function getServiceId() { - return $this->container['password']; + return $this->container['service_id']; } /** - * Sets password + * Sets service_id * - * @param string|null $password The password for the server. For anonymous use an email address. + * @param string|null $service_id service_id * * @return self */ - public function setPassword($password) + public function setServiceId($service_id) { - $this->container['password'] = $password; + $this->container['service_id'] = $service_id; return $this; } /** - * Gets path + * Gets version * * @return string|null */ - public function getPath() + public function getVersion() { - return $this->container['path']; + return $this->container['version']; } /** - * Sets path + * Sets version * - * @param string|null $path The path to upload log files to. If the path ends in `/` then it is treated as a directory. + * @param string|null $version version * * @return self */ - public function setPath($path) + public function setVersion($version) { - $this->container['path'] = $path; + $this->container['version'] = $version; return $this; } /** - * Gets port + * Gets address * - * @return int|null + * @return string|null */ - public function getPort() + public function getAddress() { - return $this->container['port']; + return $this->container['address']; } /** - * Sets port + * Sets address * - * @param int|null $port The port number. + * @param string|null $address An hostname or IPv4 address. * * @return self */ - public function setPort($port) + public function setAddress($address) { - $this->container['port'] = $port; + $this->container['address'] = $address; return $this; } /** - * Gets public_key + * Gets hostname * * @return string|null */ - public function getPublicKey() + public function getHostname() { - return $this->container['public_key']; + return $this->container['hostname']; } /** - * Sets public_key + * Sets hostname * - * @param string|null $public_key A PGP public key that Fastly will use to encrypt your log files before writing them to disk. + * @param string|null $hostname Hostname used. * * @return self */ - public function setPublicKey($public_key) + public function setHostname($hostname) { - $this->container['public_key'] = $public_key; + $this->container['hostname'] = $hostname; return $this; } /** - * Gets user + * Gets ipv4 * * @return string|null */ - public function getUser() + public function getIpv4() { - return $this->container['user']; + return $this->container['ipv4']; } /** - * Sets user + * Sets ipv4 * - * @param string|null $user The username for the server. Can be anonymous. + * @param string|null $ipv4 IPv4 address of the host. * * @return self */ - public function setUser($user) + public function setIpv4($ipv4) { - $this->container['user'] = $user; + $this->container['ipv4'] = $ipv4; return $this; } /** - * Gets created_at + * Gets password * - * @return \DateTime|null + * @return string|null */ - public function getCreatedAt() + public function getPassword() { - return $this->container['created_at']; + return $this->container['password']; } /** - * Sets created_at + * Sets password * - * @param \DateTime|null $created_at Date and time in ISO 8601 format. + * @param string|null $password The password for the server. For anonymous use an email address. * * @return self */ - public function setCreatedAt($created_at) + public function setPassword($password) { - $this->container['created_at'] = $created_at; + $this->container['password'] = $password; return $this; } /** - * Gets deleted_at + * Gets path * - * @return \DateTime|null + * @return string|null */ - public function getDeletedAt() + public function getPath() { - return $this->container['deleted_at']; + return $this->container['path']; } /** - * Sets deleted_at + * Sets path * - * @param \DateTime|null $deleted_at Date and time in ISO 8601 format. + * @param string|null $path The path to upload log files to. If the path ends in `/` then it is treated as a directory. * * @return self */ - public function setDeletedAt($deleted_at) + public function setPath($path) { - $this->container['deleted_at'] = $deleted_at; + $this->container['path'] = $path; return $this; } /** - * Gets updated_at + * Gets public_key * - * @return \DateTime|null + * @return string|null */ - public function getUpdatedAt() + public function getPublicKey() { - return $this->container['updated_at']; + return $this->container['public_key']; } /** - * Sets updated_at + * Sets public_key * - * @param \DateTime|null $updated_at Date and time in ISO 8601 format. + * @param string|null $public_key A PGP public key that Fastly will use to encrypt your log files before writing them to disk. * * @return self */ - public function setUpdatedAt($updated_at) + public function setPublicKey($public_key) { - $this->container['updated_at'] = $updated_at; + $this->container['public_key'] = $public_key; return $this; } /** - * Gets service_id + * Gets user * * @return string|null */ - public function getServiceId() + public function getUser() { - return $this->container['service_id']; + return $this->container['user']; } /** - * Sets service_id + * Sets user * - * @param string|null $service_id service_id + * @param string|null $user The username for the server. Can be anonymous. * * @return self */ - public function setServiceId($service_id) + public function setUser($user) { - $this->container['service_id'] = $service_id; + $this->container['user'] = $user; return $this; } /** - * Gets version + * Gets port * - * @return int|null + * @return string|null */ - public function getVersion() + public function getPort() { - return $this->container['version']; + return $this->container['port']; } /** - * Sets version + * Sets port * - * @param int|null $version version + * @param string|null $port The port number. * * @return self */ - public function setVersion($version) + public function setPort($port) { - $this->container['version'] = $version; + $this->container['port'] = $port; return $this; } diff --git a/lib/Model/LoggingFtpResponseAllOf.php b/lib/Model/LoggingFtpResponseAllOf.php new file mode 100644 index 00000000..9825bfaf --- /dev/null +++ b/lib/Model/LoggingFtpResponseAllOf.php @@ -0,0 +1,314 @@ + + * @template TKey int|null + * @template TValue mixed|null + */ +class LoggingFtpResponseAllOf implements ModelInterface, ArrayAccess, \JsonSerializable +{ + public const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static $fastlyModelName = 'logging_ftp_response_allOf'; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $fastlyTypes = [ + 'port' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ + protected static $fastlyFormats = [ + 'port' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function fastlyTypes() + { + return self::$fastlyTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function fastlyFormats() + { + return self::$fastlyFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'port' => 'port' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'port' => 'setPort' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'port' => 'getPort' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$fastlyModelName; + } + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['port'] = $data['port'] ?? '21'; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + + /** + * Gets port + * + * @return string|null + */ + public function getPort() + { + return $this->container['port']; + } + + /** + * Sets port + * + * @param string|null $port The port number. + * + * @return self + */ + public function setPort($port) + { + $this->container['port'] = $port; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset): bool + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed|null + */ + public function offsetGet($offset): mixed + { + return $this->container[$offset] ?? null; + } + + /** + * Sets value based on offset. + * + * @param int|null $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value): void + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset): void + { + unset($this->container[$offset]); + } + + /** + * Serializes the object to a value that can be serialized natively by json_encode(). + * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php + * + * @return mixed Returns data which can be serialized by json_encode(), which is a value + * of any type other than a resource. + */ + public function jsonSerialize(): mixed + { + return ObjectSerializer::sanitizeForSerialization($this); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + /** + * Gets a header-safe presentation of the object + * + * @return string + */ + public function toHeaderValue() + { + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/lib/Model/LoggingGcs.php b/lib/Model/LoggingGcs.php deleted file mode 100644 index 975fc7e4..00000000 --- a/lib/Model/LoggingGcs.php +++ /dev/null @@ -1,938 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class LoggingGcs implements ModelInterface, ArrayAccess, \JsonSerializable -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $fastlyModelName = 'logging_gcs'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $fastlyTypes = [ - 'name' => 'string', - 'placement' => 'string', - 'format_version' => 'int', - 'response_condition' => 'string', - 'format' => 'string', - 'message_type' => 'string', - 'timestamp_format' => 'string', - 'period' => 'int', - 'gzip_level' => 'int', - 'compression_codec' => 'string', - 'user' => 'string', - 'secret_key' => 'string', - 'account_name' => 'string', - 'bucket_name' => 'string', - 'path' => 'string', - 'public_key' => 'string', - 'project_id' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $fastlyFormats = [ - 'name' => null, - 'placement' => null, - 'format_version' => null, - 'response_condition' => null, - 'format' => null, - 'message_type' => null, - 'timestamp_format' => null, - 'period' => null, - 'gzip_level' => null, - 'compression_codec' => null, - 'user' => null, - 'secret_key' => null, - 'account_name' => null, - 'bucket_name' => null, - 'path' => null, - 'public_key' => null, - 'project_id' => null - ]; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @return array - */ - public static function fastlyTypes() - { - return self::$fastlyTypes; - } - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @return array - */ - public static function fastlyFormats() - { - return self::$fastlyFormats; - } - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'name' => 'name', - 'placement' => 'placement', - 'format_version' => 'format_version', - 'response_condition' => 'response_condition', - 'format' => 'format', - 'message_type' => 'message_type', - 'timestamp_format' => 'timestamp_format', - 'period' => 'period', - 'gzip_level' => 'gzip_level', - 'compression_codec' => 'compression_codec', - 'user' => 'user', - 'secret_key' => 'secret_key', - 'account_name' => 'account_name', - 'bucket_name' => 'bucket_name', - 'path' => 'path', - 'public_key' => 'public_key', - 'project_id' => 'project_id' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'name' => 'setName', - 'placement' => 'setPlacement', - 'format_version' => 'setFormatVersion', - 'response_condition' => 'setResponseCondition', - 'format' => 'setFormat', - 'message_type' => 'setMessageType', - 'timestamp_format' => 'setTimestampFormat', - 'period' => 'setPeriod', - 'gzip_level' => 'setGzipLevel', - 'compression_codec' => 'setCompressionCodec', - 'user' => 'setUser', - 'secret_key' => 'setSecretKey', - 'account_name' => 'setAccountName', - 'bucket_name' => 'setBucketName', - 'path' => 'setPath', - 'public_key' => 'setPublicKey', - 'project_id' => 'setProjectId' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'name' => 'getName', - 'placement' => 'getPlacement', - 'format_version' => 'getFormatVersion', - 'response_condition' => 'getResponseCondition', - 'format' => 'getFormat', - 'message_type' => 'getMessageType', - 'timestamp_format' => 'getTimestampFormat', - 'period' => 'getPeriod', - 'gzip_level' => 'getGzipLevel', - 'compression_codec' => 'getCompressionCodec', - 'user' => 'getUser', - 'secret_key' => 'getSecretKey', - 'account_name' => 'getAccountName', - 'bucket_name' => 'getBucketName', - 'path' => 'getPath', - 'public_key' => 'getPublicKey', - 'project_id' => 'getProjectId' - ]; - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @return array - */ - public static function attributeMap() - { - return self::$attributeMap; - } - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @return array - */ - public static function setters() - { - return self::$setters; - } - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @return array - */ - public static function getters() - { - return self::$getters; - } - - /** - * The original name of the model. - * - * @return string - */ - public function getModelName() - { - return self::$fastlyModelName; - } - - const PLACEMENT_NONE = 'none'; - const PLACEMENT_WAF_DEBUG = 'waf_debug'; - const PLACEMENT_NULL = 'null'; - const FORMAT_VERSION_v1 = 1; - const FORMAT_VERSION_v2 = 2; - const MESSAGE_TYPE_CLASSIC = 'classic'; - const MESSAGE_TYPE_LOGGLY = 'loggly'; - const MESSAGE_TYPE_LOGPLEX = 'logplex'; - const MESSAGE_TYPE_BLANK = 'blank'; - const COMPRESSION_CODEC_ZSTD = 'zstd'; - const COMPRESSION_CODEC_SNAPPY = 'snappy'; - const COMPRESSION_CODEC_GZIP = 'gzip'; - - /** - * Gets allowable values of the enum - * - * @return string[] - */ - public function getPlacementAllowableValues() - { - return [ - self::PLACEMENT_NONE, - self::PLACEMENT_WAF_DEBUG, - self::PLACEMENT_NULL, - ]; - } - - /** - * Gets allowable values of the enum - * - * @return string[] - */ - public function getFormatVersionAllowableValues() - { - return [ - self::FORMAT_VERSION_v1, - self::FORMAT_VERSION_v2, - ]; - } - - /** - * Gets allowable values of the enum - * - * @return string[] - */ - public function getMessageTypeAllowableValues() - { - return [ - self::MESSAGE_TYPE_CLASSIC, - self::MESSAGE_TYPE_LOGGLY, - self::MESSAGE_TYPE_LOGPLEX, - self::MESSAGE_TYPE_BLANK, - ]; - } - - /** - * Gets allowable values of the enum - * - * @return string[] - */ - public function getCompressionCodecAllowableValues() - { - return [ - self::COMPRESSION_CODEC_ZSTD, - self::COMPRESSION_CODEC_SNAPPY, - self::COMPRESSION_CODEC_GZIP, - ]; - } - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['name'] = $data['name'] ?? null; - $this->container['placement'] = $data['placement'] ?? null; - $this->container['format_version'] = $data['format_version'] ?? self::FORMAT_VERSION_v2; - $this->container['response_condition'] = $data['response_condition'] ?? null; - $this->container['format'] = $data['format'] ?? '%h %l %u %t "%r" %>s %b'; - $this->container['message_type'] = $data['message_type'] ?? 'classic'; - $this->container['timestamp_format'] = $data['timestamp_format'] ?? null; - $this->container['period'] = $data['period'] ?? 3600; - $this->container['gzip_level'] = $data['gzip_level'] ?? 0; - $this->container['compression_codec'] = $data['compression_codec'] ?? null; - $this->container['user'] = $data['user'] ?? null; - $this->container['secret_key'] = $data['secret_key'] ?? null; - $this->container['account_name'] = $data['account_name'] ?? null; - $this->container['bucket_name'] = $data['bucket_name'] ?? null; - $this->container['path'] = $data['path'] ?? '/'; - $this->container['public_key'] = $data['public_key'] ?? 'null'; - $this->container['project_id'] = $data['project_id'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - - $allowedValues = $this->getPlacementAllowableValues(); - if (!is_null($this->container['placement']) && !in_array($this->container['placement'], $allowedValues, true)) { - $invalidProperties[] = sprintf( - "invalid value '%s' for 'placement', must be one of '%s'", - $this->container['placement'], - implode("', '", $allowedValues) - ); - } - - $allowedValues = $this->getFormatVersionAllowableValues(); - if (!is_null($this->container['format_version']) && !in_array($this->container['format_version'], $allowedValues, true)) { - $invalidProperties[] = sprintf( - "invalid value '%s' for 'format_version', must be one of '%s'", - $this->container['format_version'], - implode("', '", $allowedValues) - ); - } - - $allowedValues = $this->getMessageTypeAllowableValues(); - if (!is_null($this->container['message_type']) && !in_array($this->container['message_type'], $allowedValues, true)) { - $invalidProperties[] = sprintf( - "invalid value '%s' for 'message_type', must be one of '%s'", - $this->container['message_type'], - implode("', '", $allowedValues) - ); - } - - $allowedValues = $this->getCompressionCodecAllowableValues(); - if (!is_null($this->container['compression_codec']) && !in_array($this->container['compression_codec'], $allowedValues, true)) { - $invalidProperties[] = sprintf( - "invalid value '%s' for 'compression_codec', must be one of '%s'", - $this->container['compression_codec'], - implode("', '", $allowedValues) - ); - } - - return $invalidProperties; - } - - /** - * Validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - return count($this->listInvalidProperties()) === 0; - } - - - /** - * Gets name - * - * @return string|null - */ - public function getName() - { - return $this->container['name']; - } - - /** - * Sets name - * - * @param string|null $name The name for the real-time logging configuration. - * - * @return self - */ - public function setName($name) - { - $this->container['name'] = $name; - - return $this; - } - - /** - * Gets placement - * - * @return string|null - */ - public function getPlacement() - { - return $this->container['placement']; - } - - /** - * Sets placement - * - * @param string|null $placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. - * - * @return self - */ - public function setPlacement($placement) - { - $allowedValues = $this->getPlacementAllowableValues(); - if (!is_null($placement) && !in_array($placement, $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value '%s' for 'placement', must be one of '%s'", - $placement, - implode("', '", $allowedValues) - ) - ); - } - $this->container['placement'] = $placement; - - return $this; - } - - /** - * Gets format_version - * - * @return int|null - */ - public function getFormatVersion() - { - return $this->container['format_version']; - } - - /** - * Sets format_version - * - * @param int|null $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. - * - * @return self - */ - public function setFormatVersion($format_version) - { - $allowedValues = $this->getFormatVersionAllowableValues(); - if (!is_null($format_version) && !in_array($format_version, $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value '%s' for 'format_version', must be one of '%s'", - $format_version, - implode("', '", $allowedValues) - ) - ); - } - $this->container['format_version'] = $format_version; - - return $this; - } - - /** - * Gets response_condition - * - * @return string|null - */ - public function getResponseCondition() - { - return $this->container['response_condition']; - } - - /** - * Sets response_condition - * - * @param string|null $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. - * - * @return self - */ - public function setResponseCondition($response_condition) - { - $this->container['response_condition'] = $response_condition; - - return $this; - } - - /** - * Gets format - * - * @return string|null - */ - public function getFormat() - { - return $this->container['format']; - } - - /** - * Sets format - * - * @param string|null $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). - * - * @return self - */ - public function setFormat($format) - { - $this->container['format'] = $format; - - return $this; - } - - /** - * Gets message_type - * - * @return string|null - */ - public function getMessageType() - { - return $this->container['message_type']; - } - - /** - * Sets message_type - * - * @param string|null $message_type How the message should be formatted. - * - * @return self - */ - public function setMessageType($message_type) - { - $allowedValues = $this->getMessageTypeAllowableValues(); - if (!is_null($message_type) && !in_array($message_type, $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value '%s' for 'message_type', must be one of '%s'", - $message_type, - implode("', '", $allowedValues) - ) - ); - } - $this->container['message_type'] = $message_type; - - return $this; - } - - /** - * Gets timestamp_format - * - * @return string|null - */ - public function getTimestampFormat() - { - return $this->container['timestamp_format']; - } - - /** - * Sets timestamp_format - * - * @param string|null $timestamp_format A timestamp format - * - * @return self - */ - public function setTimestampFormat($timestamp_format) - { - $this->container['timestamp_format'] = $timestamp_format; - - return $this; - } - - /** - * Gets period - * - * @return int|null - */ - public function getPeriod() - { - return $this->container['period']; - } - - /** - * Sets period - * - * @param int|null $period How frequently log files are finalized so they can be available for reading (in seconds). - * - * @return self - */ - public function setPeriod($period) - { - $this->container['period'] = $period; - - return $this; - } - - /** - * Gets gzip_level - * - * @return int|null - */ - public function getGzipLevel() - { - return $this->container['gzip_level']; - } - - /** - * Sets gzip_level - * - * @param int|null $gzip_level The level of gzip encoding when sending logs (default `0`, no compression). Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. - * - * @return self - */ - public function setGzipLevel($gzip_level) - { - $this->container['gzip_level'] = $gzip_level; - - return $this; - } - - /** - * Gets compression_codec - * - * @return string|null - */ - public function getCompressionCodec() - { - return $this->container['compression_codec']; - } - - /** - * Sets compression_codec - * - * @param string|null $compression_codec The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. - * - * @return self - */ - public function setCompressionCodec($compression_codec) - { - $allowedValues = $this->getCompressionCodecAllowableValues(); - if (!is_null($compression_codec) && !in_array($compression_codec, $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value '%s' for 'compression_codec', must be one of '%s'", - $compression_codec, - implode("', '", $allowedValues) - ) - ); - } - $this->container['compression_codec'] = $compression_codec; - - return $this; - } - - /** - * Gets user - * - * @return string|null - */ - public function getUser() - { - return $this->container['user']; - } - - /** - * Sets user - * - * @param string|null $user Your Google Cloud Platform service account email address. The `client_email` field in your service account authentication JSON. Not required if `account_name` is specified. - * - * @return self - */ - public function setUser($user) - { - $this->container['user'] = $user; - - return $this; - } - - /** - * Gets secret_key - * - * @return string|null - */ - public function getSecretKey() - { - return $this->container['secret_key']; - } - - /** - * Sets secret_key - * - * @param string|null $secret_key Your Google Cloud Platform account secret key. The `private_key` field in your service account authentication JSON. Not required if `account_name` is specified. - * - * @return self - */ - public function setSecretKey($secret_key) - { - $this->container['secret_key'] = $secret_key; - - return $this; - } - - /** - * Gets account_name - * - * @return string|null - */ - public function getAccountName() - { - return $this->container['account_name']; - } - - /** - * Sets account_name - * - * @param string|null $account_name The name of the Google Cloud Platform service account associated with the target log collection service. Not required if `user` and `secret_key` are provided. - * - * @return self - */ - public function setAccountName($account_name) - { - $this->container['account_name'] = $account_name; - - return $this; - } - - /** - * Gets bucket_name - * - * @return string|null - */ - public function getBucketName() - { - return $this->container['bucket_name']; - } - - /** - * Sets bucket_name - * - * @param string|null $bucket_name The name of the GCS bucket. - * - * @return self - */ - public function setBucketName($bucket_name) - { - $this->container['bucket_name'] = $bucket_name; - - return $this; - } - - /** - * Gets path - * - * @return string|null - */ - public function getPath() - { - return $this->container['path']; - } - - /** - * Sets path - * - * @param string|null $path path - * - * @return self - */ - public function setPath($path) - { - $this->container['path'] = $path; - - return $this; - } - - /** - * Gets public_key - * - * @return string|null - */ - public function getPublicKey() - { - return $this->container['public_key']; - } - - /** - * Sets public_key - * - * @param string|null $public_key A PGP public key that Fastly will use to encrypt your log files before writing them to disk. - * - * @return self - */ - public function setPublicKey($public_key) - { - $this->container['public_key'] = $public_key; - - return $this; - } - - /** - * Gets project_id - * - * @return string|null - */ - public function getProjectId() - { - return $this->container['project_id']; - } - - /** - * Sets project_id - * - * @param string|null $project_id Your Google Cloud Platform project ID. Required - * - * @return self - */ - public function setProjectId($project_id) - { - $this->container['project_id'] = $project_id; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * - * @param integer $offset Offset - * - * @return boolean - */ - public function offsetExists($offset): bool - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * - * @param integer $offset Offset - * - * @return mixed|null - */ - public function offsetGet($offset): mixed - { - return $this->container[$offset] ?? null; - } - - /** - * Sets value based on offset. - * - * @param int|null $offset Offset - * @param mixed $value Value to be set - * - * @return void - */ - public function offsetSet($offset, $value): void - { - if (is_null($offset)) { - $this->container[] = $value; - } else { - $this->container[$offset] = $value; - } - } - - /** - * Unsets offset. - * - * @param integer $offset Offset - * - * @return void - */ - public function offsetUnset($offset): void - { - unset($this->container[$offset]); - } - - /** - * Serializes the object to a value that can be serialized natively by json_encode(). - * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php - * - * @return mixed Returns data which can be serialized by json_encode(), which is a value - * of any type other than a resource. - */ - public function jsonSerialize(): mixed - { - return ObjectSerializer::sanitizeForSerialization($this); - } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString() - { - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } - - /** - * Gets a header-safe presentation of the object - * - * @return string - */ - public function toHeaderValue() - { - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/lib/Model/LoggingGcsAllOf.php b/lib/Model/LoggingGcsAdditional.php similarity index 97% rename from lib/Model/LoggingGcsAllOf.php rename to lib/Model/LoggingGcsAdditional.php index 23366d64..76d71bbf 100644 --- a/lib/Model/LoggingGcsAllOf.php +++ b/lib/Model/LoggingGcsAdditional.php @@ -1,6 +1,6 @@ 'string', 'placement' => 'string', - 'format_version' => 'int', 'response_condition' => 'string', 'format' => 'string', + 'format_version' => 'string', 'message_type' => 'string', 'timestamp_format' => 'string', - 'period' => 'int', - 'gzip_level' => 'int', 'compression_codec' => 'string', + 'period' => 'string', + 'gzip_level' => 'string', 'user' => 'string', 'secret_key' => 'string', 'account_name' => 'string', - 'bucket_name' => 'string', - 'path' => 'string', - 'public_key' => 'string', - 'project_id' => 'string', 'created_at' => '\DateTime', 'deleted_at' => '\DateTime', 'updated_at' => '\DateTime', 'service_id' => 'string', - 'version' => 'int' + 'version' => 'string', + 'bucket_name' => 'string', + 'path' => 'string', + 'public_key' => 'string', + 'project_id' => 'string' ]; /** @@ -87,26 +87,26 @@ class LoggingGcsResponse implements ModelInterface, ArrayAccess, \JsonSerializab protected static $fastlyFormats = [ 'name' => null, 'placement' => null, - 'format_version' => null, 'response_condition' => null, 'format' => null, + 'format_version' => null, 'message_type' => null, 'timestamp_format' => null, + 'compression_codec' => null, 'period' => null, 'gzip_level' => null, - 'compression_codec' => null, 'user' => null, 'secret_key' => null, 'account_name' => null, - 'bucket_name' => null, - 'path' => null, - 'public_key' => null, - 'project_id' => null, 'created_at' => 'date-time', 'deleted_at' => 'date-time', 'updated_at' => 'date-time', 'service_id' => null, - 'version' => null + 'version' => null, + 'bucket_name' => null, + 'path' => null, + 'public_key' => null, + 'project_id' => null ]; /** @@ -138,26 +138,26 @@ public static function fastlyFormats() protected static $attributeMap = [ 'name' => 'name', 'placement' => 'placement', - 'format_version' => 'format_version', 'response_condition' => 'response_condition', 'format' => 'format', + 'format_version' => 'format_version', 'message_type' => 'message_type', 'timestamp_format' => 'timestamp_format', + 'compression_codec' => 'compression_codec', 'period' => 'period', 'gzip_level' => 'gzip_level', - 'compression_codec' => 'compression_codec', 'user' => 'user', 'secret_key' => 'secret_key', 'account_name' => 'account_name', - 'bucket_name' => 'bucket_name', - 'path' => 'path', - 'public_key' => 'public_key', - 'project_id' => 'project_id', 'created_at' => 'created_at', 'deleted_at' => 'deleted_at', 'updated_at' => 'updated_at', 'service_id' => 'service_id', - 'version' => 'version' + 'version' => 'version', + 'bucket_name' => 'bucket_name', + 'path' => 'path', + 'public_key' => 'public_key', + 'project_id' => 'project_id' ]; /** @@ -168,26 +168,26 @@ public static function fastlyFormats() protected static $setters = [ 'name' => 'setName', 'placement' => 'setPlacement', - 'format_version' => 'setFormatVersion', 'response_condition' => 'setResponseCondition', 'format' => 'setFormat', + 'format_version' => 'setFormatVersion', 'message_type' => 'setMessageType', 'timestamp_format' => 'setTimestampFormat', + 'compression_codec' => 'setCompressionCodec', 'period' => 'setPeriod', 'gzip_level' => 'setGzipLevel', - 'compression_codec' => 'setCompressionCodec', 'user' => 'setUser', 'secret_key' => 'setSecretKey', 'account_name' => 'setAccountName', - 'bucket_name' => 'setBucketName', - 'path' => 'setPath', - 'public_key' => 'setPublicKey', - 'project_id' => 'setProjectId', 'created_at' => 'setCreatedAt', 'deleted_at' => 'setDeletedAt', 'updated_at' => 'setUpdatedAt', 'service_id' => 'setServiceId', - 'version' => 'setVersion' + 'version' => 'setVersion', + 'bucket_name' => 'setBucketName', + 'path' => 'setPath', + 'public_key' => 'setPublicKey', + 'project_id' => 'setProjectId' ]; /** @@ -198,26 +198,26 @@ public static function fastlyFormats() protected static $getters = [ 'name' => 'getName', 'placement' => 'getPlacement', - 'format_version' => 'getFormatVersion', 'response_condition' => 'getResponseCondition', 'format' => 'getFormat', + 'format_version' => 'getFormatVersion', 'message_type' => 'getMessageType', 'timestamp_format' => 'getTimestampFormat', + 'compression_codec' => 'getCompressionCodec', 'period' => 'getPeriod', 'gzip_level' => 'getGzipLevel', - 'compression_codec' => 'getCompressionCodec', 'user' => 'getUser', 'secret_key' => 'getSecretKey', 'account_name' => 'getAccountName', - 'bucket_name' => 'getBucketName', - 'path' => 'getPath', - 'public_key' => 'getPublicKey', - 'project_id' => 'getProjectId', 'created_at' => 'getCreatedAt', 'deleted_at' => 'getDeletedAt', 'updated_at' => 'getUpdatedAt', 'service_id' => 'getServiceId', - 'version' => 'getVersion' + 'version' => 'getVersion', + 'bucket_name' => 'getBucketName', + 'path' => 'getPath', + 'public_key' => 'getPublicKey', + 'project_id' => 'getProjectId' ]; /** @@ -264,8 +264,8 @@ public function getModelName() const PLACEMENT_NONE = 'none'; const PLACEMENT_WAF_DEBUG = 'waf_debug'; const PLACEMENT_NULL = 'null'; - const FORMAT_VERSION_v1 = 1; - const FORMAT_VERSION_v2 = 2; + const FORMAT_VERSION_v1 = '1'; + const FORMAT_VERSION_v2 = '2'; const MESSAGE_TYPE_CLASSIC = 'classic'; const MESSAGE_TYPE_LOGGLY = 'loggly'; const MESSAGE_TYPE_LOGPLEX = 'logplex'; @@ -347,26 +347,26 @@ public function __construct(array $data = null) { $this->container['name'] = $data['name'] ?? null; $this->container['placement'] = $data['placement'] ?? null; - $this->container['format_version'] = $data['format_version'] ?? self::FORMAT_VERSION_v2; $this->container['response_condition'] = $data['response_condition'] ?? null; $this->container['format'] = $data['format'] ?? '%h %l %u %t "%r" %>s %b'; + $this->container['format_version'] = $data['format_version'] ?? '2'; $this->container['message_type'] = $data['message_type'] ?? 'classic'; $this->container['timestamp_format'] = $data['timestamp_format'] ?? null; - $this->container['period'] = $data['period'] ?? 3600; - $this->container['gzip_level'] = $data['gzip_level'] ?? 0; $this->container['compression_codec'] = $data['compression_codec'] ?? null; + $this->container['period'] = $data['period'] ?? '3600'; + $this->container['gzip_level'] = $data['gzip_level'] ?? '0'; $this->container['user'] = $data['user'] ?? null; $this->container['secret_key'] = $data['secret_key'] ?? null; $this->container['account_name'] = $data['account_name'] ?? null; - $this->container['bucket_name'] = $data['bucket_name'] ?? null; - $this->container['path'] = $data['path'] ?? '/'; - $this->container['public_key'] = $data['public_key'] ?? 'null'; - $this->container['project_id'] = $data['project_id'] ?? null; $this->container['created_at'] = $data['created_at'] ?? null; $this->container['deleted_at'] = $data['deleted_at'] ?? null; $this->container['updated_at'] = $data['updated_at'] ?? null; $this->container['service_id'] = $data['service_id'] ?? null; $this->container['version'] = $data['version'] ?? null; + $this->container['bucket_name'] = $data['bucket_name'] ?? null; + $this->container['path'] = $data['path'] ?? '/'; + $this->container['public_key'] = $data['public_key'] ?? 'null'; + $this->container['project_id'] = $data['project_id'] ?? null; } /** @@ -488,83 +488,83 @@ public function setPlacement($placement) } /** - * Gets format_version + * Gets response_condition * - * @return int|null + * @return string|null */ - public function getFormatVersion() + public function getResponseCondition() { - return $this->container['format_version']; + return $this->container['response_condition']; } /** - * Sets format_version + * Sets response_condition * - * @param int|null $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. + * @param string|null $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. * * @return self */ - public function setFormatVersion($format_version) + public function setResponseCondition($response_condition) { - $allowedValues = $this->getFormatVersionAllowableValues(); - if (!is_null($format_version) && !in_array($format_version, $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value '%s' for 'format_version', must be one of '%s'", - $format_version, - implode("', '", $allowedValues) - ) - ); - } - $this->container['format_version'] = $format_version; + $this->container['response_condition'] = $response_condition; return $this; } /** - * Gets response_condition + * Gets format * * @return string|null */ - public function getResponseCondition() + public function getFormat() { - return $this->container['response_condition']; + return $this->container['format']; } /** - * Sets response_condition + * Sets format * - * @param string|null $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. + * @param string|null $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). * * @return self */ - public function setResponseCondition($response_condition) + public function setFormat($format) { - $this->container['response_condition'] = $response_condition; + $this->container['format'] = $format; return $this; } /** - * Gets format + * Gets format_version * * @return string|null */ - public function getFormat() + public function getFormatVersion() { - return $this->container['format']; + return $this->container['format_version']; } /** - * Sets format + * Sets format_version * - * @param string|null $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). + * @param string|null $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. * * @return self */ - public function setFormat($format) + public function setFormatVersion($format_version) { - $this->container['format'] = $format; + $allowedValues = $this->getFormatVersionAllowableValues(); + if (!is_null($format_version) && !in_array($format_version, $allowedValues, true)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value '%s' for 'format_version', must be one of '%s'", + $format_version, + implode("', '", $allowedValues) + ) + ); + } + $this->container['format_version'] = $format_version; return $this; } @@ -628,83 +628,83 @@ public function setTimestampFormat($timestamp_format) } /** - * Gets period + * Gets compression_codec * - * @return int|null + * @return string|null */ - public function getPeriod() + public function getCompressionCodec() { - return $this->container['period']; + return $this->container['compression_codec']; } /** - * Sets period + * Sets compression_codec * - * @param int|null $period How frequently log files are finalized so they can be available for reading (in seconds). + * @param string|null $compression_codec The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. * * @return self */ - public function setPeriod($period) + public function setCompressionCodec($compression_codec) { - $this->container['period'] = $period; + $allowedValues = $this->getCompressionCodecAllowableValues(); + if (!is_null($compression_codec) && !in_array($compression_codec, $allowedValues, true)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value '%s' for 'compression_codec', must be one of '%s'", + $compression_codec, + implode("', '", $allowedValues) + ) + ); + } + $this->container['compression_codec'] = $compression_codec; return $this; } /** - * Gets gzip_level + * Gets period * - * @return int|null + * @return string|null */ - public function getGzipLevel() + public function getPeriod() { - return $this->container['gzip_level']; + return $this->container['period']; } /** - * Sets gzip_level + * Sets period * - * @param int|null $gzip_level The level of gzip encoding when sending logs (default `0`, no compression). Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. + * @param string|null $period How frequently log files are finalized so they can be available for reading (in seconds). * * @return self */ - public function setGzipLevel($gzip_level) + public function setPeriod($period) { - $this->container['gzip_level'] = $gzip_level; + $this->container['period'] = $period; return $this; } /** - * Gets compression_codec + * Gets gzip_level * * @return string|null */ - public function getCompressionCodec() + public function getGzipLevel() { - return $this->container['compression_codec']; + return $this->container['gzip_level']; } /** - * Sets compression_codec + * Sets gzip_level * - * @param string|null $compression_codec The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. + * @param string|null $gzip_level The level of gzip encoding when sending logs (default `0`, no compression). Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. * * @return self */ - public function setCompressionCodec($compression_codec) + public function setGzipLevel($gzip_level) { - $allowedValues = $this->getCompressionCodecAllowableValues(); - if (!is_null($compression_codec) && !in_array($compression_codec, $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value '%s' for 'compression_codec', must be one of '%s'", - $compression_codec, - implode("', '", $allowedValues) - ) - ); - } - $this->container['compression_codec'] = $compression_codec; + $this->container['gzip_level'] = $gzip_level; return $this; } @@ -782,217 +782,217 @@ public function setAccountName($account_name) } /** - * Gets bucket_name + * Gets created_at * - * @return string|null + * @return \DateTime|null */ - public function getBucketName() + public function getCreatedAt() { - return $this->container['bucket_name']; + return $this->container['created_at']; } /** - * Sets bucket_name + * Sets created_at * - * @param string|null $bucket_name The name of the GCS bucket. + * @param \DateTime|null $created_at Date and time in ISO 8601 format. * * @return self */ - public function setBucketName($bucket_name) + public function setCreatedAt($created_at) { - $this->container['bucket_name'] = $bucket_name; + $this->container['created_at'] = $created_at; return $this; } /** - * Gets path + * Gets deleted_at * - * @return string|null + * @return \DateTime|null */ - public function getPath() + public function getDeletedAt() { - return $this->container['path']; + return $this->container['deleted_at']; } /** - * Sets path + * Sets deleted_at * - * @param string|null $path path + * @param \DateTime|null $deleted_at Date and time in ISO 8601 format. * * @return self */ - public function setPath($path) + public function setDeletedAt($deleted_at) { - $this->container['path'] = $path; + $this->container['deleted_at'] = $deleted_at; return $this; } /** - * Gets public_key + * Gets updated_at * - * @return string|null + * @return \DateTime|null */ - public function getPublicKey() + public function getUpdatedAt() { - return $this->container['public_key']; + return $this->container['updated_at']; } /** - * Sets public_key + * Sets updated_at * - * @param string|null $public_key A PGP public key that Fastly will use to encrypt your log files before writing them to disk. + * @param \DateTime|null $updated_at Date and time in ISO 8601 format. * * @return self */ - public function setPublicKey($public_key) + public function setUpdatedAt($updated_at) { - $this->container['public_key'] = $public_key; + $this->container['updated_at'] = $updated_at; return $this; } /** - * Gets project_id + * Gets service_id * * @return string|null */ - public function getProjectId() + public function getServiceId() { - return $this->container['project_id']; + return $this->container['service_id']; } /** - * Sets project_id + * Sets service_id * - * @param string|null $project_id Your Google Cloud Platform project ID. Required + * @param string|null $service_id service_id * * @return self */ - public function setProjectId($project_id) + public function setServiceId($service_id) { - $this->container['project_id'] = $project_id; + $this->container['service_id'] = $service_id; return $this; } /** - * Gets created_at + * Gets version * - * @return \DateTime|null + * @return string|null */ - public function getCreatedAt() + public function getVersion() { - return $this->container['created_at']; + return $this->container['version']; } /** - * Sets created_at + * Sets version * - * @param \DateTime|null $created_at Date and time in ISO 8601 format. + * @param string|null $version version * * @return self */ - public function setCreatedAt($created_at) + public function setVersion($version) { - $this->container['created_at'] = $created_at; + $this->container['version'] = $version; return $this; } /** - * Gets deleted_at + * Gets bucket_name * - * @return \DateTime|null + * @return string|null */ - public function getDeletedAt() + public function getBucketName() { - return $this->container['deleted_at']; + return $this->container['bucket_name']; } /** - * Sets deleted_at + * Sets bucket_name * - * @param \DateTime|null $deleted_at Date and time in ISO 8601 format. + * @param string|null $bucket_name The name of the GCS bucket. * * @return self */ - public function setDeletedAt($deleted_at) + public function setBucketName($bucket_name) { - $this->container['deleted_at'] = $deleted_at; + $this->container['bucket_name'] = $bucket_name; return $this; } /** - * Gets updated_at + * Gets path * - * @return \DateTime|null + * @return string|null */ - public function getUpdatedAt() + public function getPath() { - return $this->container['updated_at']; + return $this->container['path']; } /** - * Sets updated_at + * Sets path * - * @param \DateTime|null $updated_at Date and time in ISO 8601 format. + * @param string|null $path path * * @return self */ - public function setUpdatedAt($updated_at) + public function setPath($path) { - $this->container['updated_at'] = $updated_at; + $this->container['path'] = $path; return $this; } /** - * Gets service_id + * Gets public_key * * @return string|null */ - public function getServiceId() + public function getPublicKey() { - return $this->container['service_id']; + return $this->container['public_key']; } /** - * Sets service_id + * Sets public_key * - * @param string|null $service_id service_id + * @param string|null $public_key A PGP public key that Fastly will use to encrypt your log files before writing them to disk. * * @return self */ - public function setServiceId($service_id) + public function setPublicKey($public_key) { - $this->container['service_id'] = $service_id; + $this->container['public_key'] = $public_key; return $this; } /** - * Gets version + * Gets project_id * - * @return int|null + * @return string|null */ - public function getVersion() + public function getProjectId() { - return $this->container['version']; + return $this->container['project_id']; } /** - * Sets version + * Sets project_id * - * @param int|null $version version + * @param string|null $project_id Your Google Cloud Platform project ID. Required * * @return self */ - public function setVersion($version) + public function setProjectId($project_id) { - $this->container['version'] = $version; + $this->container['project_id'] = $project_id; return $this; } diff --git a/lib/Model/LoggingGenericCommon.php b/lib/Model/LoggingGenericCommon.php index 4bc43388..16eee230 100644 --- a/lib/Model/LoggingGenericCommon.php +++ b/lib/Model/LoggingGenericCommon.php @@ -55,8 +55,6 @@ class LoggingGenericCommon implements ModelInterface, ArrayAccess, \JsonSerializ protected static $fastlyTypes = [ 'message_type' => 'string', 'timestamp_format' => 'string', - 'period' => 'int', - 'gzip_level' => 'int', 'compression_codec' => 'string' ]; @@ -70,8 +68,6 @@ class LoggingGenericCommon implements ModelInterface, ArrayAccess, \JsonSerializ protected static $fastlyFormats = [ 'message_type' => null, 'timestamp_format' => null, - 'period' => null, - 'gzip_level' => null, 'compression_codec' => null ]; @@ -104,8 +100,6 @@ public static function fastlyFormats() protected static $attributeMap = [ 'message_type' => 'message_type', 'timestamp_format' => 'timestamp_format', - 'period' => 'period', - 'gzip_level' => 'gzip_level', 'compression_codec' => 'compression_codec' ]; @@ -117,8 +111,6 @@ public static function fastlyFormats() protected static $setters = [ 'message_type' => 'setMessageType', 'timestamp_format' => 'setTimestampFormat', - 'period' => 'setPeriod', - 'gzip_level' => 'setGzipLevel', 'compression_codec' => 'setCompressionCodec' ]; @@ -130,8 +122,6 @@ public static function fastlyFormats() protected static $getters = [ 'message_type' => 'getMessageType', 'timestamp_format' => 'getTimestampFormat', - 'period' => 'getPeriod', - 'gzip_level' => 'getGzipLevel', 'compression_codec' => 'getCompressionCodec' ]; @@ -230,8 +220,6 @@ public function __construct(array $data = null) { $this->container['message_type'] = $data['message_type'] ?? 'classic'; $this->container['timestamp_format'] = $data['timestamp_format'] ?? null; - $this->container['period'] = $data['period'] ?? 3600; - $this->container['gzip_level'] = $data['gzip_level'] ?? 0; $this->container['compression_codec'] = $data['compression_codec'] ?? null; } @@ -335,54 +323,6 @@ public function setTimestampFormat($timestamp_format) return $this; } - /** - * Gets period - * - * @return int|null - */ - public function getPeriod() - { - return $this->container['period']; - } - - /** - * Sets period - * - * @param int|null $period How frequently log files are finalized so they can be available for reading (in seconds). - * - * @return self - */ - public function setPeriod($period) - { - $this->container['period'] = $period; - - return $this; - } - - /** - * Gets gzip_level - * - * @return int|null - */ - public function getGzipLevel() - { - return $this->container['gzip_level']; - } - - /** - * Sets gzip_level - * - * @param int|null $gzip_level The level of gzip encoding when sending logs (default `0`, no compression). Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. - * - * @return self - */ - public function setGzipLevel($gzip_level) - { - $this->container['gzip_level'] = $gzip_level; - - return $this; - } - /** * Gets compression_codec * diff --git a/lib/Model/LoggingSumologic.php b/lib/Model/LoggingGenericCommonResponse.php similarity index 56% rename from lib/Model/LoggingSumologic.php rename to lib/Model/LoggingGenericCommonResponse.php index 206facb0..4dd1dca5 100644 --- a/lib/Model/LoggingSumologic.php +++ b/lib/Model/LoggingGenericCommonResponse.php @@ -1,6 +1,6 @@ 'string', - 'placement' => 'string', - 'format_version' => 'int', - 'response_condition' => 'string', - 'format' => 'string', - 'message_type' => '\Fastly\Model\LoggingMessageType', - 'url' => 'string' + 'message_type' => 'string', + 'timestamp_format' => 'string', + 'compression_codec' => 'string', + 'period' => 'string', + 'gzip_level' => 'string' ]; /** @@ -70,13 +68,11 @@ class LoggingSumologic implements ModelInterface, ArrayAccess, \JsonSerializable * @psalm-var array */ protected static $fastlyFormats = [ - 'name' => null, - 'placement' => null, - 'format_version' => null, - 'response_condition' => null, - 'format' => null, 'message_type' => null, - 'url' => null + 'timestamp_format' => null, + 'compression_codec' => null, + 'period' => null, + 'gzip_level' => null ]; /** @@ -106,13 +102,11 @@ public static function fastlyFormats() * @var string[] */ protected static $attributeMap = [ - 'name' => 'name', - 'placement' => 'placement', - 'format_version' => 'format_version', - 'response_condition' => 'response_condition', - 'format' => 'format', 'message_type' => 'message_type', - 'url' => 'url' + 'timestamp_format' => 'timestamp_format', + 'compression_codec' => 'compression_codec', + 'period' => 'period', + 'gzip_level' => 'gzip_level' ]; /** @@ -121,13 +115,11 @@ public static function fastlyFormats() * @var string[] */ protected static $setters = [ - 'name' => 'setName', - 'placement' => 'setPlacement', - 'format_version' => 'setFormatVersion', - 'response_condition' => 'setResponseCondition', - 'format' => 'setFormat', 'message_type' => 'setMessageType', - 'url' => 'setUrl' + 'timestamp_format' => 'setTimestampFormat', + 'compression_codec' => 'setCompressionCodec', + 'period' => 'setPeriod', + 'gzip_level' => 'setGzipLevel' ]; /** @@ -136,13 +128,11 @@ public static function fastlyFormats() * @var string[] */ protected static $getters = [ - 'name' => 'getName', - 'placement' => 'getPlacement', - 'format_version' => 'getFormatVersion', - 'response_condition' => 'getResponseCondition', - 'format' => 'getFormat', 'message_type' => 'getMessageType', - 'url' => 'getUrl' + 'timestamp_format' => 'getTimestampFormat', + 'compression_codec' => 'getCompressionCodec', + 'period' => 'getPeriod', + 'gzip_level' => 'getGzipLevel' ]; /** @@ -186,23 +176,26 @@ public function getModelName() return self::$fastlyModelName; } - const PLACEMENT_NONE = 'none'; - const PLACEMENT_WAF_DEBUG = 'waf_debug'; - const PLACEMENT_NULL = 'null'; - const FORMAT_VERSION_v1 = 1; - const FORMAT_VERSION_v2 = 2; + const MESSAGE_TYPE_CLASSIC = 'classic'; + const MESSAGE_TYPE_LOGGLY = 'loggly'; + const MESSAGE_TYPE_LOGPLEX = 'logplex'; + const MESSAGE_TYPE_BLANK = 'blank'; + const COMPRESSION_CODEC_ZSTD = 'zstd'; + const COMPRESSION_CODEC_SNAPPY = 'snappy'; + const COMPRESSION_CODEC_GZIP = 'gzip'; /** * Gets allowable values of the enum * * @return string[] */ - public function getPlacementAllowableValues() + public function getMessageTypeAllowableValues() { return [ - self::PLACEMENT_NONE, - self::PLACEMENT_WAF_DEBUG, - self::PLACEMENT_NULL, + self::MESSAGE_TYPE_CLASSIC, + self::MESSAGE_TYPE_LOGGLY, + self::MESSAGE_TYPE_LOGPLEX, + self::MESSAGE_TYPE_BLANK, ]; } @@ -211,11 +204,12 @@ public function getPlacementAllowableValues() * * @return string[] */ - public function getFormatVersionAllowableValues() + public function getCompressionCodecAllowableValues() { return [ - self::FORMAT_VERSION_v1, - self::FORMAT_VERSION_v2, + self::COMPRESSION_CODEC_ZSTD, + self::COMPRESSION_CODEC_SNAPPY, + self::COMPRESSION_CODEC_GZIP, ]; } @@ -234,13 +228,11 @@ public function getFormatVersionAllowableValues() */ public function __construct(array $data = null) { - $this->container['name'] = $data['name'] ?? null; - $this->container['placement'] = $data['placement'] ?? null; - $this->container['format_version'] = $data['format_version'] ?? self::FORMAT_VERSION_v2; - $this->container['response_condition'] = $data['response_condition'] ?? null; - $this->container['format'] = $data['format'] ?? '%h %l %u %t "%r" %>s %b'; - $this->container['message_type'] = $data['message_type'] ?? null; - $this->container['url'] = $data['url'] ?? null; + $this->container['message_type'] = $data['message_type'] ?? 'classic'; + $this->container['timestamp_format'] = $data['timestamp_format'] ?? null; + $this->container['compression_codec'] = $data['compression_codec'] ?? null; + $this->container['period'] = $data['period'] ?? '3600'; + $this->container['gzip_level'] = $data['gzip_level'] ?? '0'; } /** @@ -252,20 +244,20 @@ public function listInvalidProperties() { $invalidProperties = []; - $allowedValues = $this->getPlacementAllowableValues(); - if (!is_null($this->container['placement']) && !in_array($this->container['placement'], $allowedValues, true)) { + $allowedValues = $this->getMessageTypeAllowableValues(); + if (!is_null($this->container['message_type']) && !in_array($this->container['message_type'], $allowedValues, true)) { $invalidProperties[] = sprintf( - "invalid value '%s' for 'placement', must be one of '%s'", - $this->container['placement'], + "invalid value '%s' for 'message_type', must be one of '%s'", + $this->container['message_type'], implode("', '", $allowedValues) ); } - $allowedValues = $this->getFormatVersionAllowableValues(); - if (!is_null($this->container['format_version']) && !in_array($this->container['format_version'], $allowedValues, true)) { + $allowedValues = $this->getCompressionCodecAllowableValues(); + if (!is_null($this->container['compression_codec']) && !in_array($this->container['compression_codec'], $allowedValues, true)) { $invalidProperties[] = sprintf( - "invalid value '%s' for 'format_version', must be one of '%s'", - $this->container['format_version'], + "invalid value '%s' for 'compression_codec', must be one of '%s'", + $this->container['compression_codec'], implode("', '", $allowedValues) ); } @@ -286,189 +278,141 @@ public function valid() /** - * Gets name - * - * @return string|null - */ - public function getName() - { - return $this->container['name']; - } - - /** - * Sets name - * - * @param string|null $name The name for the real-time logging configuration. - * - * @return self - */ - public function setName($name) - { - $this->container['name'] = $name; - - return $this; - } - - /** - * Gets placement + * Gets message_type * * @return string|null */ - public function getPlacement() - { - return $this->container['placement']; - } - - /** - * Sets placement - * - * @param string|null $placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. - * - * @return self - */ - public function setPlacement($placement) - { - $allowedValues = $this->getPlacementAllowableValues(); - if (!is_null($placement) && !in_array($placement, $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value '%s' for 'placement', must be one of '%s'", - $placement, - implode("', '", $allowedValues) - ) - ); - } - $this->container['placement'] = $placement; - - return $this; - } - - /** - * Gets format_version - * - * @return int|null - */ - public function getFormatVersion() + public function getMessageType() { - return $this->container['format_version']; + return $this->container['message_type']; } /** - * Sets format_version + * Sets message_type * - * @param int|null $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. + * @param string|null $message_type How the message should be formatted. * * @return self */ - public function setFormatVersion($format_version) + public function setMessageType($message_type) { - $allowedValues = $this->getFormatVersionAllowableValues(); - if (!is_null($format_version) && !in_array($format_version, $allowedValues, true)) { + $allowedValues = $this->getMessageTypeAllowableValues(); + if (!is_null($message_type) && !in_array($message_type, $allowedValues, true)) { throw new \InvalidArgumentException( sprintf( - "Invalid value '%s' for 'format_version', must be one of '%s'", - $format_version, + "Invalid value '%s' for 'message_type', must be one of '%s'", + $message_type, implode("', '", $allowedValues) ) ); } - $this->container['format_version'] = $format_version; + $this->container['message_type'] = $message_type; return $this; } /** - * Gets response_condition + * Gets timestamp_format * * @return string|null */ - public function getResponseCondition() + public function getTimestampFormat() { - return $this->container['response_condition']; + return $this->container['timestamp_format']; } /** - * Sets response_condition + * Sets timestamp_format * - * @param string|null $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. + * @param string|null $timestamp_format A timestamp format * * @return self */ - public function setResponseCondition($response_condition) + public function setTimestampFormat($timestamp_format) { - $this->container['response_condition'] = $response_condition; + $this->container['timestamp_format'] = $timestamp_format; return $this; } /** - * Gets format + * Gets compression_codec * * @return string|null */ - public function getFormat() + public function getCompressionCodec() { - return $this->container['format']; + return $this->container['compression_codec']; } /** - * Sets format + * Sets compression_codec * - * @param string|null $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). + * @param string|null $compression_codec The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. * * @return self */ - public function setFormat($format) + public function setCompressionCodec($compression_codec) { - $this->container['format'] = $format; + $allowedValues = $this->getCompressionCodecAllowableValues(); + if (!is_null($compression_codec) && !in_array($compression_codec, $allowedValues, true)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value '%s' for 'compression_codec', must be one of '%s'", + $compression_codec, + implode("', '", $allowedValues) + ) + ); + } + $this->container['compression_codec'] = $compression_codec; return $this; } /** - * Gets message_type + * Gets period * - * @return \Fastly\Model\LoggingMessageType|null + * @return string|null */ - public function getMessageType() + public function getPeriod() { - return $this->container['message_type']; + return $this->container['period']; } /** - * Sets message_type + * Sets period * - * @param \Fastly\Model\LoggingMessageType|null $message_type message_type + * @param string|null $period How frequently log files are finalized so they can be available for reading (in seconds). * * @return self */ - public function setMessageType($message_type) + public function setPeriod($period) { - $this->container['message_type'] = $message_type; + $this->container['period'] = $period; return $this; } /** - * Gets url + * Gets gzip_level * * @return string|null */ - public function getUrl() + public function getGzipLevel() { - return $this->container['url']; + return $this->container['gzip_level']; } /** - * Sets url + * Sets gzip_level * - * @param string|null $url The URL to post logs to. + * @param string|null $gzip_level The level of gzip encoding when sending logs (default `0`, no compression). Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. * * @return self */ - public function setUrl($url) + public function setGzipLevel($gzip_level) { - $this->container['url'] = $url; + $this->container['gzip_level'] = $gzip_level; return $this; } diff --git a/lib/Model/LoggingGenericCommonResponseAllOf.php b/lib/Model/LoggingGenericCommonResponseAllOf.php new file mode 100644 index 00000000..d6ef1264 --- /dev/null +++ b/lib/Model/LoggingGenericCommonResponseAllOf.php @@ -0,0 +1,448 @@ + + * @template TKey int|null + * @template TValue mixed|null + */ +class LoggingGenericCommonResponseAllOf implements ModelInterface, ArrayAccess, \JsonSerializable +{ + public const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static $fastlyModelName = 'logging_generic_common_response_allOf'; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $fastlyTypes = [ + 'message_type' => 'string', + 'timestamp_format' => 'string', + 'compression_codec' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ + protected static $fastlyFormats = [ + 'message_type' => null, + 'timestamp_format' => null, + 'compression_codec' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function fastlyTypes() + { + return self::$fastlyTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function fastlyFormats() + { + return self::$fastlyFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'message_type' => 'message_type', + 'timestamp_format' => 'timestamp_format', + 'compression_codec' => 'compression_codec' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'message_type' => 'setMessageType', + 'timestamp_format' => 'setTimestampFormat', + 'compression_codec' => 'setCompressionCodec' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'message_type' => 'getMessageType', + 'timestamp_format' => 'getTimestampFormat', + 'compression_codec' => 'getCompressionCodec' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$fastlyModelName; + } + + const MESSAGE_TYPE_CLASSIC = 'classic'; + const MESSAGE_TYPE_LOGGLY = 'loggly'; + const MESSAGE_TYPE_LOGPLEX = 'logplex'; + const MESSAGE_TYPE_BLANK = 'blank'; + const COMPRESSION_CODEC_ZSTD = 'zstd'; + const COMPRESSION_CODEC_SNAPPY = 'snappy'; + const COMPRESSION_CODEC_GZIP = 'gzip'; + + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getMessageTypeAllowableValues() + { + return [ + self::MESSAGE_TYPE_CLASSIC, + self::MESSAGE_TYPE_LOGGLY, + self::MESSAGE_TYPE_LOGPLEX, + self::MESSAGE_TYPE_BLANK, + ]; + } + + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getCompressionCodecAllowableValues() + { + return [ + self::COMPRESSION_CODEC_ZSTD, + self::COMPRESSION_CODEC_SNAPPY, + self::COMPRESSION_CODEC_GZIP, + ]; + } + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['message_type'] = $data['message_type'] ?? 'classic'; + $this->container['timestamp_format'] = $data['timestamp_format'] ?? null; + $this->container['compression_codec'] = $data['compression_codec'] ?? null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + $allowedValues = $this->getMessageTypeAllowableValues(); + if (!is_null($this->container['message_type']) && !in_array($this->container['message_type'], $allowedValues, true)) { + $invalidProperties[] = sprintf( + "invalid value '%s' for 'message_type', must be one of '%s'", + $this->container['message_type'], + implode("', '", $allowedValues) + ); + } + + $allowedValues = $this->getCompressionCodecAllowableValues(); + if (!is_null($this->container['compression_codec']) && !in_array($this->container['compression_codec'], $allowedValues, true)) { + $invalidProperties[] = sprintf( + "invalid value '%s' for 'compression_codec', must be one of '%s'", + $this->container['compression_codec'], + implode("', '", $allowedValues) + ); + } + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + + /** + * Gets message_type + * + * @return string|null + */ + public function getMessageType() + { + return $this->container['message_type']; + } + + /** + * Sets message_type + * + * @param string|null $message_type How the message should be formatted. + * + * @return self + */ + public function setMessageType($message_type) + { + $allowedValues = $this->getMessageTypeAllowableValues(); + if (!is_null($message_type) && !in_array($message_type, $allowedValues, true)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value '%s' for 'message_type', must be one of '%s'", + $message_type, + implode("', '", $allowedValues) + ) + ); + } + $this->container['message_type'] = $message_type; + + return $this; + } + + /** + * Gets timestamp_format + * + * @return string|null + */ + public function getTimestampFormat() + { + return $this->container['timestamp_format']; + } + + /** + * Sets timestamp_format + * + * @param string|null $timestamp_format A timestamp format + * + * @return self + */ + public function setTimestampFormat($timestamp_format) + { + $this->container['timestamp_format'] = $timestamp_format; + + return $this; + } + + /** + * Gets compression_codec + * + * @return string|null + */ + public function getCompressionCodec() + { + return $this->container['compression_codec']; + } + + /** + * Sets compression_codec + * + * @param string|null $compression_codec The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. + * + * @return self + */ + public function setCompressionCodec($compression_codec) + { + $allowedValues = $this->getCompressionCodecAllowableValues(); + if (!is_null($compression_codec) && !in_array($compression_codec, $allowedValues, true)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value '%s' for 'compression_codec', must be one of '%s'", + $compression_codec, + implode("', '", $allowedValues) + ) + ); + } + $this->container['compression_codec'] = $compression_codec; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset): bool + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed|null + */ + public function offsetGet($offset): mixed + { + return $this->container[$offset] ?? null; + } + + /** + * Sets value based on offset. + * + * @param int|null $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value): void + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset): void + { + unset($this->container[$offset]); + } + + /** + * Serializes the object to a value that can be serialized natively by json_encode(). + * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php + * + * @return mixed Returns data which can be serialized by json_encode(), which is a value + * of any type other than a resource. + */ + public function jsonSerialize(): mixed + { + return ObjectSerializer::sanitizeForSerialization($this); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + /** + * Gets a header-safe presentation of the object + * + * @return string + */ + public function toHeaderValue() + { + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/lib/Model/LoggingGenericCommonResponseAllOf1.php b/lib/Model/LoggingGenericCommonResponseAllOf1.php new file mode 100644 index 00000000..e04f66cb --- /dev/null +++ b/lib/Model/LoggingGenericCommonResponseAllOf1.php @@ -0,0 +1,344 @@ + + * @template TKey int|null + * @template TValue mixed|null + */ +class LoggingGenericCommonResponseAllOf1 implements ModelInterface, ArrayAccess, \JsonSerializable +{ + public const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static $fastlyModelName = 'logging_generic_common_response_allOf_1'; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $fastlyTypes = [ + 'period' => 'string', + 'gzip_level' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ + protected static $fastlyFormats = [ + 'period' => null, + 'gzip_level' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function fastlyTypes() + { + return self::$fastlyTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function fastlyFormats() + { + return self::$fastlyFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'period' => 'period', + 'gzip_level' => 'gzip_level' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'period' => 'setPeriod', + 'gzip_level' => 'setGzipLevel' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'period' => 'getPeriod', + 'gzip_level' => 'getGzipLevel' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$fastlyModelName; + } + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['period'] = $data['period'] ?? '3600'; + $this->container['gzip_level'] = $data['gzip_level'] ?? '0'; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + + /** + * Gets period + * + * @return string|null + */ + public function getPeriod() + { + return $this->container['period']; + } + + /** + * Sets period + * + * @param string|null $period How frequently log files are finalized so they can be available for reading (in seconds). + * + * @return self + */ + public function setPeriod($period) + { + $this->container['period'] = $period; + + return $this; + } + + /** + * Gets gzip_level + * + * @return string|null + */ + public function getGzipLevel() + { + return $this->container['gzip_level']; + } + + /** + * Sets gzip_level + * + * @param string|null $gzip_level The level of gzip encoding when sending logs (default `0`, no compression). Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. + * + * @return self + */ + public function setGzipLevel($gzip_level) + { + $this->container['gzip_level'] = $gzip_level; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset): bool + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed|null + */ + public function offsetGet($offset): mixed + { + return $this->container[$offset] ?? null; + } + + /** + * Sets value based on offset. + * + * @param int|null $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value): void + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset): void + { + unset($this->container[$offset]); + } + + /** + * Serializes the object to a value that can be serialized natively by json_encode(). + * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php + * + * @return mixed Returns data which can be serialized by json_encode(), which is a value + * of any type other than a resource. + */ + public function jsonSerialize(): mixed + { + return ObjectSerializer::sanitizeForSerialization($this); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + /** + * Gets a header-safe presentation of the object + * + * @return string + */ + public function toHeaderValue() + { + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/lib/Model/LoggingGooglePubsub.php b/lib/Model/LoggingGooglePubsub.php deleted file mode 100644 index 158e5de1..00000000 --- a/lib/Model/LoggingGooglePubsub.php +++ /dev/null @@ -1,654 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class LoggingGooglePubsub implements ModelInterface, ArrayAccess, \JsonSerializable -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $fastlyModelName = 'logging_google_pubsub'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $fastlyTypes = [ - 'name' => 'string', - 'placement' => 'string', - 'format_version' => 'int', - 'response_condition' => 'string', - 'format' => 'string', - 'user' => 'string', - 'secret_key' => 'string', - 'account_name' => 'string', - 'topic' => 'string', - 'project_id' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $fastlyFormats = [ - 'name' => null, - 'placement' => null, - 'format_version' => null, - 'response_condition' => null, - 'format' => null, - 'user' => null, - 'secret_key' => null, - 'account_name' => null, - 'topic' => null, - 'project_id' => null - ]; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @return array - */ - public static function fastlyTypes() - { - return self::$fastlyTypes; - } - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @return array - */ - public static function fastlyFormats() - { - return self::$fastlyFormats; - } - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'name' => 'name', - 'placement' => 'placement', - 'format_version' => 'format_version', - 'response_condition' => 'response_condition', - 'format' => 'format', - 'user' => 'user', - 'secret_key' => 'secret_key', - 'account_name' => 'account_name', - 'topic' => 'topic', - 'project_id' => 'project_id' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'name' => 'setName', - 'placement' => 'setPlacement', - 'format_version' => 'setFormatVersion', - 'response_condition' => 'setResponseCondition', - 'format' => 'setFormat', - 'user' => 'setUser', - 'secret_key' => 'setSecretKey', - 'account_name' => 'setAccountName', - 'topic' => 'setTopic', - 'project_id' => 'setProjectId' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'name' => 'getName', - 'placement' => 'getPlacement', - 'format_version' => 'getFormatVersion', - 'response_condition' => 'getResponseCondition', - 'format' => 'getFormat', - 'user' => 'getUser', - 'secret_key' => 'getSecretKey', - 'account_name' => 'getAccountName', - 'topic' => 'getTopic', - 'project_id' => 'getProjectId' - ]; - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @return array - */ - public static function attributeMap() - { - return self::$attributeMap; - } - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @return array - */ - public static function setters() - { - return self::$setters; - } - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @return array - */ - public static function getters() - { - return self::$getters; - } - - /** - * The original name of the model. - * - * @return string - */ - public function getModelName() - { - return self::$fastlyModelName; - } - - const PLACEMENT_NONE = 'none'; - const PLACEMENT_WAF_DEBUG = 'waf_debug'; - const PLACEMENT_NULL = 'null'; - const FORMAT_VERSION_v1 = 1; - const FORMAT_VERSION_v2 = 2; - - /** - * Gets allowable values of the enum - * - * @return string[] - */ - public function getPlacementAllowableValues() - { - return [ - self::PLACEMENT_NONE, - self::PLACEMENT_WAF_DEBUG, - self::PLACEMENT_NULL, - ]; - } - - /** - * Gets allowable values of the enum - * - * @return string[] - */ - public function getFormatVersionAllowableValues() - { - return [ - self::FORMAT_VERSION_v1, - self::FORMAT_VERSION_v2, - ]; - } - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['name'] = $data['name'] ?? null; - $this->container['placement'] = $data['placement'] ?? null; - $this->container['format_version'] = $data['format_version'] ?? self::FORMAT_VERSION_v2; - $this->container['response_condition'] = $data['response_condition'] ?? null; - $this->container['format'] = $data['format'] ?? '%h %l %u %t "%r" %>s %b'; - $this->container['user'] = $data['user'] ?? null; - $this->container['secret_key'] = $data['secret_key'] ?? null; - $this->container['account_name'] = $data['account_name'] ?? null; - $this->container['topic'] = $data['topic'] ?? null; - $this->container['project_id'] = $data['project_id'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - - $allowedValues = $this->getPlacementAllowableValues(); - if (!is_null($this->container['placement']) && !in_array($this->container['placement'], $allowedValues, true)) { - $invalidProperties[] = sprintf( - "invalid value '%s' for 'placement', must be one of '%s'", - $this->container['placement'], - implode("', '", $allowedValues) - ); - } - - $allowedValues = $this->getFormatVersionAllowableValues(); - if (!is_null($this->container['format_version']) && !in_array($this->container['format_version'], $allowedValues, true)) { - $invalidProperties[] = sprintf( - "invalid value '%s' for 'format_version', must be one of '%s'", - $this->container['format_version'], - implode("', '", $allowedValues) - ); - } - - return $invalidProperties; - } - - /** - * Validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - return count($this->listInvalidProperties()) === 0; - } - - - /** - * Gets name - * - * @return string|null - */ - public function getName() - { - return $this->container['name']; - } - - /** - * Sets name - * - * @param string|null $name The name for the real-time logging configuration. - * - * @return self - */ - public function setName($name) - { - $this->container['name'] = $name; - - return $this; - } - - /** - * Gets placement - * - * @return string|null - */ - public function getPlacement() - { - return $this->container['placement']; - } - - /** - * Sets placement - * - * @param string|null $placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. - * - * @return self - */ - public function setPlacement($placement) - { - $allowedValues = $this->getPlacementAllowableValues(); - if (!is_null($placement) && !in_array($placement, $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value '%s' for 'placement', must be one of '%s'", - $placement, - implode("', '", $allowedValues) - ) - ); - } - $this->container['placement'] = $placement; - - return $this; - } - - /** - * Gets format_version - * - * @return int|null - */ - public function getFormatVersion() - { - return $this->container['format_version']; - } - - /** - * Sets format_version - * - * @param int|null $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. - * - * @return self - */ - public function setFormatVersion($format_version) - { - $allowedValues = $this->getFormatVersionAllowableValues(); - if (!is_null($format_version) && !in_array($format_version, $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value '%s' for 'format_version', must be one of '%s'", - $format_version, - implode("', '", $allowedValues) - ) - ); - } - $this->container['format_version'] = $format_version; - - return $this; - } - - /** - * Gets response_condition - * - * @return string|null - */ - public function getResponseCondition() - { - return $this->container['response_condition']; - } - - /** - * Sets response_condition - * - * @param string|null $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. - * - * @return self - */ - public function setResponseCondition($response_condition) - { - $this->container['response_condition'] = $response_condition; - - return $this; - } - - /** - * Gets format - * - * @return string|null - */ - public function getFormat() - { - return $this->container['format']; - } - - /** - * Sets format - * - * @param string|null $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). - * - * @return self - */ - public function setFormat($format) - { - $this->container['format'] = $format; - - return $this; - } - - /** - * Gets user - * - * @return string|null - */ - public function getUser() - { - return $this->container['user']; - } - - /** - * Sets user - * - * @param string|null $user Your Google Cloud Platform service account email address. The `client_email` field in your service account authentication JSON. Not required if `account_name` is specified. - * - * @return self - */ - public function setUser($user) - { - $this->container['user'] = $user; - - return $this; - } - - /** - * Gets secret_key - * - * @return string|null - */ - public function getSecretKey() - { - return $this->container['secret_key']; - } - - /** - * Sets secret_key - * - * @param string|null $secret_key Your Google Cloud Platform account secret key. The `private_key` field in your service account authentication JSON. Not required if `account_name` is specified. - * - * @return self - */ - public function setSecretKey($secret_key) - { - $this->container['secret_key'] = $secret_key; - - return $this; - } - - /** - * Gets account_name - * - * @return string|null - */ - public function getAccountName() - { - return $this->container['account_name']; - } - - /** - * Sets account_name - * - * @param string|null $account_name The name of the Google Cloud Platform service account associated with the target log collection service. Not required if `user` and `secret_key` are provided. - * - * @return self - */ - public function setAccountName($account_name) - { - $this->container['account_name'] = $account_name; - - return $this; - } - - /** - * Gets topic - * - * @return string|null - */ - public function getTopic() - { - return $this->container['topic']; - } - - /** - * Sets topic - * - * @param string|null $topic The Google Cloud Pub/Sub topic to which logs will be published. Required. - * - * @return self - */ - public function setTopic($topic) - { - $this->container['topic'] = $topic; - - return $this; - } - - /** - * Gets project_id - * - * @return string|null - */ - public function getProjectId() - { - return $this->container['project_id']; - } - - /** - * Sets project_id - * - * @param string|null $project_id Your Google Cloud Platform project ID. Required - * - * @return self - */ - public function setProjectId($project_id) - { - $this->container['project_id'] = $project_id; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * - * @param integer $offset Offset - * - * @return boolean - */ - public function offsetExists($offset): bool - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * - * @param integer $offset Offset - * - * @return mixed|null - */ - public function offsetGet($offset): mixed - { - return $this->container[$offset] ?? null; - } - - /** - * Sets value based on offset. - * - * @param int|null $offset Offset - * @param mixed $value Value to be set - * - * @return void - */ - public function offsetSet($offset, $value): void - { - if (is_null($offset)) { - $this->container[] = $value; - } else { - $this->container[$offset] = $value; - } - } - - /** - * Unsets offset. - * - * @param integer $offset Offset - * - * @return void - */ - public function offsetUnset($offset): void - { - unset($this->container[$offset]); - } - - /** - * Serializes the object to a value that can be serialized natively by json_encode(). - * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php - * - * @return mixed Returns data which can be serialized by json_encode(), which is a value - * of any type other than a resource. - */ - public function jsonSerialize(): mixed - { - return ObjectSerializer::sanitizeForSerialization($this); - } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString() - { - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } - - /** - * Gets a header-safe presentation of the object - * - * @return string - */ - public function toHeaderValue() - { - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/lib/Model/LoggingGooglePubsubAllOf.php b/lib/Model/LoggingGooglePubsubAdditional.php similarity index 97% rename from lib/Model/LoggingGooglePubsubAllOf.php rename to lib/Model/LoggingGooglePubsubAdditional.php index 41f83f9e..8ace2af9 100644 --- a/lib/Model/LoggingGooglePubsubAllOf.php +++ b/lib/Model/LoggingGooglePubsubAdditional.php @@ -1,6 +1,6 @@ 'string', 'placement' => 'string', - 'format_version' => 'int', 'response_condition' => 'string', 'format' => 'string', + 'format_version' => 'string', 'user' => 'string', 'secret_key' => 'string', 'account_name' => 'string', @@ -67,7 +67,7 @@ class LoggingGooglePubsubResponse implements ModelInterface, ArrayAccess, \JsonS 'deleted_at' => '\DateTime', 'updated_at' => '\DateTime', 'service_id' => 'string', - 'version' => 'int' + 'version' => 'string' ]; /** @@ -80,9 +80,9 @@ class LoggingGooglePubsubResponse implements ModelInterface, ArrayAccess, \JsonS protected static $fastlyFormats = [ 'name' => null, 'placement' => null, - 'format_version' => null, 'response_condition' => null, 'format' => null, + 'format_version' => null, 'user' => null, 'secret_key' => null, 'account_name' => null, @@ -124,9 +124,9 @@ public static function fastlyFormats() protected static $attributeMap = [ 'name' => 'name', 'placement' => 'placement', - 'format_version' => 'format_version', 'response_condition' => 'response_condition', 'format' => 'format', + 'format_version' => 'format_version', 'user' => 'user', 'secret_key' => 'secret_key', 'account_name' => 'account_name', @@ -147,9 +147,9 @@ public static function fastlyFormats() protected static $setters = [ 'name' => 'setName', 'placement' => 'setPlacement', - 'format_version' => 'setFormatVersion', 'response_condition' => 'setResponseCondition', 'format' => 'setFormat', + 'format_version' => 'setFormatVersion', 'user' => 'setUser', 'secret_key' => 'setSecretKey', 'account_name' => 'setAccountName', @@ -170,9 +170,9 @@ public static function fastlyFormats() protected static $getters = [ 'name' => 'getName', 'placement' => 'getPlacement', - 'format_version' => 'getFormatVersion', 'response_condition' => 'getResponseCondition', 'format' => 'getFormat', + 'format_version' => 'getFormatVersion', 'user' => 'getUser', 'secret_key' => 'getSecretKey', 'account_name' => 'getAccountName', @@ -229,8 +229,8 @@ public function getModelName() const PLACEMENT_NONE = 'none'; const PLACEMENT_WAF_DEBUG = 'waf_debug'; const PLACEMENT_NULL = 'null'; - const FORMAT_VERSION_v1 = 1; - const FORMAT_VERSION_v2 = 2; + const FORMAT_VERSION_v1 = '1'; + const FORMAT_VERSION_v2 = '2'; /** * Gets allowable values of the enum @@ -276,9 +276,9 @@ public function __construct(array $data = null) { $this->container['name'] = $data['name'] ?? null; $this->container['placement'] = $data['placement'] ?? null; - $this->container['format_version'] = $data['format_version'] ?? self::FORMAT_VERSION_v2; $this->container['response_condition'] = $data['response_condition'] ?? null; $this->container['format'] = $data['format'] ?? '%h %l %u %t "%r" %>s %b'; + $this->container['format_version'] = $data['format_version'] ?? '2'; $this->container['user'] = $data['user'] ?? null; $this->container['secret_key'] = $data['secret_key'] ?? null; $this->container['account_name'] = $data['account_name'] ?? null; @@ -392,83 +392,83 @@ public function setPlacement($placement) } /** - * Gets format_version + * Gets response_condition * - * @return int|null + * @return string|null */ - public function getFormatVersion() + public function getResponseCondition() { - return $this->container['format_version']; + return $this->container['response_condition']; } /** - * Sets format_version + * Sets response_condition * - * @param int|null $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. + * @param string|null $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. * * @return self */ - public function setFormatVersion($format_version) + public function setResponseCondition($response_condition) { - $allowedValues = $this->getFormatVersionAllowableValues(); - if (!is_null($format_version) && !in_array($format_version, $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value '%s' for 'format_version', must be one of '%s'", - $format_version, - implode("', '", $allowedValues) - ) - ); - } - $this->container['format_version'] = $format_version; + $this->container['response_condition'] = $response_condition; return $this; } /** - * Gets response_condition + * Gets format * * @return string|null */ - public function getResponseCondition() + public function getFormat() { - return $this->container['response_condition']; + return $this->container['format']; } /** - * Sets response_condition + * Sets format * - * @param string|null $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. + * @param string|null $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). * * @return self */ - public function setResponseCondition($response_condition) + public function setFormat($format) { - $this->container['response_condition'] = $response_condition; + $this->container['format'] = $format; return $this; } /** - * Gets format + * Gets format_version * * @return string|null */ - public function getFormat() + public function getFormatVersion() { - return $this->container['format']; + return $this->container['format_version']; } /** - * Sets format + * Sets format_version * - * @param string|null $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). + * @param string|null $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. * * @return self */ - public function setFormat($format) + public function setFormatVersion($format_version) { - $this->container['format'] = $format; + $allowedValues = $this->getFormatVersionAllowableValues(); + if (!is_null($format_version) && !in_array($format_version, $allowedValues, true)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value '%s' for 'format_version', must be one of '%s'", + $format_version, + implode("', '", $allowedValues) + ) + ); + } + $this->container['format_version'] = $format_version; return $this; } @@ -692,7 +692,7 @@ public function setServiceId($service_id) /** * Gets version * - * @return int|null + * @return string|null */ public function getVersion() { @@ -702,7 +702,7 @@ public function getVersion() /** * Sets version * - * @param int|null $version version + * @param string|null $version version * * @return self */ diff --git a/lib/Model/LoggingHeroku.php b/lib/Model/LoggingHeroku.php deleted file mode 100644 index 1875ef7f..00000000 --- a/lib/Model/LoggingHeroku.php +++ /dev/null @@ -1,564 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class LoggingHeroku implements ModelInterface, ArrayAccess, \JsonSerializable -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $fastlyModelName = 'logging_heroku'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $fastlyTypes = [ - 'name' => 'string', - 'placement' => 'string', - 'format_version' => 'int', - 'response_condition' => 'string', - 'format' => 'string', - 'token' => 'string', - 'url' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $fastlyFormats = [ - 'name' => null, - 'placement' => null, - 'format_version' => null, - 'response_condition' => null, - 'format' => null, - 'token' => null, - 'url' => null - ]; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @return array - */ - public static function fastlyTypes() - { - return self::$fastlyTypes; - } - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @return array - */ - public static function fastlyFormats() - { - return self::$fastlyFormats; - } - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'name' => 'name', - 'placement' => 'placement', - 'format_version' => 'format_version', - 'response_condition' => 'response_condition', - 'format' => 'format', - 'token' => 'token', - 'url' => 'url' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'name' => 'setName', - 'placement' => 'setPlacement', - 'format_version' => 'setFormatVersion', - 'response_condition' => 'setResponseCondition', - 'format' => 'setFormat', - 'token' => 'setToken', - 'url' => 'setUrl' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'name' => 'getName', - 'placement' => 'getPlacement', - 'format_version' => 'getFormatVersion', - 'response_condition' => 'getResponseCondition', - 'format' => 'getFormat', - 'token' => 'getToken', - 'url' => 'getUrl' - ]; - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @return array - */ - public static function attributeMap() - { - return self::$attributeMap; - } - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @return array - */ - public static function setters() - { - return self::$setters; - } - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @return array - */ - public static function getters() - { - return self::$getters; - } - - /** - * The original name of the model. - * - * @return string - */ - public function getModelName() - { - return self::$fastlyModelName; - } - - const PLACEMENT_NONE = 'none'; - const PLACEMENT_WAF_DEBUG = 'waf_debug'; - const PLACEMENT_NULL = 'null'; - const FORMAT_VERSION_v1 = 1; - const FORMAT_VERSION_v2 = 2; - - /** - * Gets allowable values of the enum - * - * @return string[] - */ - public function getPlacementAllowableValues() - { - return [ - self::PLACEMENT_NONE, - self::PLACEMENT_WAF_DEBUG, - self::PLACEMENT_NULL, - ]; - } - - /** - * Gets allowable values of the enum - * - * @return string[] - */ - public function getFormatVersionAllowableValues() - { - return [ - self::FORMAT_VERSION_v1, - self::FORMAT_VERSION_v2, - ]; - } - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['name'] = $data['name'] ?? null; - $this->container['placement'] = $data['placement'] ?? null; - $this->container['format_version'] = $data['format_version'] ?? self::FORMAT_VERSION_v2; - $this->container['response_condition'] = $data['response_condition'] ?? null; - $this->container['format'] = $data['format'] ?? '%h %l %u %t "%r" %>s %b'; - $this->container['token'] = $data['token'] ?? null; - $this->container['url'] = $data['url'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - - $allowedValues = $this->getPlacementAllowableValues(); - if (!is_null($this->container['placement']) && !in_array($this->container['placement'], $allowedValues, true)) { - $invalidProperties[] = sprintf( - "invalid value '%s' for 'placement', must be one of '%s'", - $this->container['placement'], - implode("', '", $allowedValues) - ); - } - - $allowedValues = $this->getFormatVersionAllowableValues(); - if (!is_null($this->container['format_version']) && !in_array($this->container['format_version'], $allowedValues, true)) { - $invalidProperties[] = sprintf( - "invalid value '%s' for 'format_version', must be one of '%s'", - $this->container['format_version'], - implode("', '", $allowedValues) - ); - } - - return $invalidProperties; - } - - /** - * Validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - return count($this->listInvalidProperties()) === 0; - } - - - /** - * Gets name - * - * @return string|null - */ - public function getName() - { - return $this->container['name']; - } - - /** - * Sets name - * - * @param string|null $name The name for the real-time logging configuration. - * - * @return self - */ - public function setName($name) - { - $this->container['name'] = $name; - - return $this; - } - - /** - * Gets placement - * - * @return string|null - */ - public function getPlacement() - { - return $this->container['placement']; - } - - /** - * Sets placement - * - * @param string|null $placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. - * - * @return self - */ - public function setPlacement($placement) - { - $allowedValues = $this->getPlacementAllowableValues(); - if (!is_null($placement) && !in_array($placement, $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value '%s' for 'placement', must be one of '%s'", - $placement, - implode("', '", $allowedValues) - ) - ); - } - $this->container['placement'] = $placement; - - return $this; - } - - /** - * Gets format_version - * - * @return int|null - */ - public function getFormatVersion() - { - return $this->container['format_version']; - } - - /** - * Sets format_version - * - * @param int|null $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. - * - * @return self - */ - public function setFormatVersion($format_version) - { - $allowedValues = $this->getFormatVersionAllowableValues(); - if (!is_null($format_version) && !in_array($format_version, $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value '%s' for 'format_version', must be one of '%s'", - $format_version, - implode("', '", $allowedValues) - ) - ); - } - $this->container['format_version'] = $format_version; - - return $this; - } - - /** - * Gets response_condition - * - * @return string|null - */ - public function getResponseCondition() - { - return $this->container['response_condition']; - } - - /** - * Sets response_condition - * - * @param string|null $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. - * - * @return self - */ - public function setResponseCondition($response_condition) - { - $this->container['response_condition'] = $response_condition; - - return $this; - } - - /** - * Gets format - * - * @return string|null - */ - public function getFormat() - { - return $this->container['format']; - } - - /** - * Sets format - * - * @param string|null $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). - * - * @return self - */ - public function setFormat($format) - { - $this->container['format'] = $format; - - return $this; - } - - /** - * Gets token - * - * @return string|null - */ - public function getToken() - { - return $this->container['token']; - } - - /** - * Sets token - * - * @param string|null $token The token to use for authentication ([https://devcenter.heroku.com/articles/add-on-partner-log-integration](https://devcenter.heroku.com/articles/add-on-partner-log-integration)). - * - * @return self - */ - public function setToken($token) - { - $this->container['token'] = $token; - - return $this; - } - - /** - * Gets url - * - * @return string|null - */ - public function getUrl() - { - return $this->container['url']; - } - - /** - * Sets url - * - * @param string|null $url The URL to stream logs to. - * - * @return self - */ - public function setUrl($url) - { - $this->container['url'] = $url; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * - * @param integer $offset Offset - * - * @return boolean - */ - public function offsetExists($offset): bool - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * - * @param integer $offset Offset - * - * @return mixed|null - */ - public function offsetGet($offset): mixed - { - return $this->container[$offset] ?? null; - } - - /** - * Sets value based on offset. - * - * @param int|null $offset Offset - * @param mixed $value Value to be set - * - * @return void - */ - public function offsetSet($offset, $value): void - { - if (is_null($offset)) { - $this->container[] = $value; - } else { - $this->container[$offset] = $value; - } - } - - /** - * Unsets offset. - * - * @param integer $offset Offset - * - * @return void - */ - public function offsetUnset($offset): void - { - unset($this->container[$offset]); - } - - /** - * Serializes the object to a value that can be serialized natively by json_encode(). - * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php - * - * @return mixed Returns data which can be serialized by json_encode(), which is a value - * of any type other than a resource. - */ - public function jsonSerialize(): mixed - { - return ObjectSerializer::sanitizeForSerialization($this); - } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString() - { - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } - - /** - * Gets a header-safe presentation of the object - * - * @return string - */ - public function toHeaderValue() - { - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/lib/Model/LoggingHerokuAllOf.php b/lib/Model/LoggingHerokuAdditional.php similarity index 96% rename from lib/Model/LoggingHerokuAllOf.php rename to lib/Model/LoggingHerokuAdditional.php index b6ed6af1..ad206126 100644 --- a/lib/Model/LoggingHerokuAllOf.php +++ b/lib/Model/LoggingHerokuAdditional.php @@ -1,6 +1,6 @@ 'string', 'placement' => 'string', - 'format_version' => 'int', 'response_condition' => 'string', 'format' => 'string', + 'format_version' => 'string', 'token' => 'string', 'url' => 'string', 'created_at' => '\DateTime', 'deleted_at' => '\DateTime', 'updated_at' => '\DateTime', 'service_id' => 'string', - 'version' => 'int' + 'version' => 'string' ]; /** @@ -77,9 +77,9 @@ class LoggingHerokuResponse implements ModelInterface, ArrayAccess, \JsonSeriali protected static $fastlyFormats = [ 'name' => null, 'placement' => null, - 'format_version' => null, 'response_condition' => null, 'format' => null, + 'format_version' => null, 'token' => null, 'url' => null, 'created_at' => 'date-time', @@ -118,9 +118,9 @@ public static function fastlyFormats() protected static $attributeMap = [ 'name' => 'name', 'placement' => 'placement', - 'format_version' => 'format_version', 'response_condition' => 'response_condition', 'format' => 'format', + 'format_version' => 'format_version', 'token' => 'token', 'url' => 'url', 'created_at' => 'created_at', @@ -138,9 +138,9 @@ public static function fastlyFormats() protected static $setters = [ 'name' => 'setName', 'placement' => 'setPlacement', - 'format_version' => 'setFormatVersion', 'response_condition' => 'setResponseCondition', 'format' => 'setFormat', + 'format_version' => 'setFormatVersion', 'token' => 'setToken', 'url' => 'setUrl', 'created_at' => 'setCreatedAt', @@ -158,9 +158,9 @@ public static function fastlyFormats() protected static $getters = [ 'name' => 'getName', 'placement' => 'getPlacement', - 'format_version' => 'getFormatVersion', 'response_condition' => 'getResponseCondition', 'format' => 'getFormat', + 'format_version' => 'getFormatVersion', 'token' => 'getToken', 'url' => 'getUrl', 'created_at' => 'getCreatedAt', @@ -214,8 +214,8 @@ public function getModelName() const PLACEMENT_NONE = 'none'; const PLACEMENT_WAF_DEBUG = 'waf_debug'; const PLACEMENT_NULL = 'null'; - const FORMAT_VERSION_v1 = 1; - const FORMAT_VERSION_v2 = 2; + const FORMAT_VERSION_v1 = '1'; + const FORMAT_VERSION_v2 = '2'; /** * Gets allowable values of the enum @@ -261,9 +261,9 @@ public function __construct(array $data = null) { $this->container['name'] = $data['name'] ?? null; $this->container['placement'] = $data['placement'] ?? null; - $this->container['format_version'] = $data['format_version'] ?? self::FORMAT_VERSION_v2; $this->container['response_condition'] = $data['response_condition'] ?? null; $this->container['format'] = $data['format'] ?? '%h %l %u %t "%r" %>s %b'; + $this->container['format_version'] = $data['format_version'] ?? '2'; $this->container['token'] = $data['token'] ?? null; $this->container['url'] = $data['url'] ?? null; $this->container['created_at'] = $data['created_at'] ?? null; @@ -374,83 +374,83 @@ public function setPlacement($placement) } /** - * Gets format_version + * Gets response_condition * - * @return int|null + * @return string|null */ - public function getFormatVersion() + public function getResponseCondition() { - return $this->container['format_version']; + return $this->container['response_condition']; } /** - * Sets format_version + * Sets response_condition * - * @param int|null $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. + * @param string|null $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. * * @return self */ - public function setFormatVersion($format_version) + public function setResponseCondition($response_condition) { - $allowedValues = $this->getFormatVersionAllowableValues(); - if (!is_null($format_version) && !in_array($format_version, $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value '%s' for 'format_version', must be one of '%s'", - $format_version, - implode("', '", $allowedValues) - ) - ); - } - $this->container['format_version'] = $format_version; + $this->container['response_condition'] = $response_condition; return $this; } /** - * Gets response_condition + * Gets format * * @return string|null */ - public function getResponseCondition() + public function getFormat() { - return $this->container['response_condition']; + return $this->container['format']; } /** - * Sets response_condition + * Sets format * - * @param string|null $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. + * @param string|null $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). * * @return self */ - public function setResponseCondition($response_condition) + public function setFormat($format) { - $this->container['response_condition'] = $response_condition; + $this->container['format'] = $format; return $this; } /** - * Gets format + * Gets format_version * * @return string|null */ - public function getFormat() + public function getFormatVersion() { - return $this->container['format']; + return $this->container['format_version']; } /** - * Sets format + * Sets format_version * - * @param string|null $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). + * @param string|null $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. * * @return self */ - public function setFormat($format) + public function setFormatVersion($format_version) { - $this->container['format'] = $format; + $allowedValues = $this->getFormatVersionAllowableValues(); + if (!is_null($format_version) && !in_array($format_version, $allowedValues, true)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value '%s' for 'format_version', must be one of '%s'", + $format_version, + implode("', '", $allowedValues) + ) + ); + } + $this->container['format_version'] = $format_version; return $this; } @@ -602,7 +602,7 @@ public function setServiceId($service_id) /** * Gets version * - * @return int|null + * @return string|null */ public function getVersion() { @@ -612,7 +612,7 @@ public function getVersion() /** * Sets version * - * @param int|null $version version + * @param string|null $version version * * @return self */ diff --git a/lib/Model/LoggingHoneycomb.php b/lib/Model/LoggingHoneycomb.php deleted file mode 100644 index c5af836f..00000000 --- a/lib/Model/LoggingHoneycomb.php +++ /dev/null @@ -1,564 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class LoggingHoneycomb implements ModelInterface, ArrayAccess, \JsonSerializable -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $fastlyModelName = 'logging_honeycomb'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $fastlyTypes = [ - 'name' => 'string', - 'placement' => 'string', - 'format_version' => 'int', - 'response_condition' => 'string', - 'format' => 'string', - 'dataset' => 'string', - 'token' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $fastlyFormats = [ - 'name' => null, - 'placement' => null, - 'format_version' => null, - 'response_condition' => null, - 'format' => null, - 'dataset' => null, - 'token' => null - ]; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @return array - */ - public static function fastlyTypes() - { - return self::$fastlyTypes; - } - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @return array - */ - public static function fastlyFormats() - { - return self::$fastlyFormats; - } - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'name' => 'name', - 'placement' => 'placement', - 'format_version' => 'format_version', - 'response_condition' => 'response_condition', - 'format' => 'format', - 'dataset' => 'dataset', - 'token' => 'token' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'name' => 'setName', - 'placement' => 'setPlacement', - 'format_version' => 'setFormatVersion', - 'response_condition' => 'setResponseCondition', - 'format' => 'setFormat', - 'dataset' => 'setDataset', - 'token' => 'setToken' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'name' => 'getName', - 'placement' => 'getPlacement', - 'format_version' => 'getFormatVersion', - 'response_condition' => 'getResponseCondition', - 'format' => 'getFormat', - 'dataset' => 'getDataset', - 'token' => 'getToken' - ]; - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @return array - */ - public static function attributeMap() - { - return self::$attributeMap; - } - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @return array - */ - public static function setters() - { - return self::$setters; - } - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @return array - */ - public static function getters() - { - return self::$getters; - } - - /** - * The original name of the model. - * - * @return string - */ - public function getModelName() - { - return self::$fastlyModelName; - } - - const PLACEMENT_NONE = 'none'; - const PLACEMENT_WAF_DEBUG = 'waf_debug'; - const PLACEMENT_NULL = 'null'; - const FORMAT_VERSION_v1 = 1; - const FORMAT_VERSION_v2 = 2; - - /** - * Gets allowable values of the enum - * - * @return string[] - */ - public function getPlacementAllowableValues() - { - return [ - self::PLACEMENT_NONE, - self::PLACEMENT_WAF_DEBUG, - self::PLACEMENT_NULL, - ]; - } - - /** - * Gets allowable values of the enum - * - * @return string[] - */ - public function getFormatVersionAllowableValues() - { - return [ - self::FORMAT_VERSION_v1, - self::FORMAT_VERSION_v2, - ]; - } - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['name'] = $data['name'] ?? null; - $this->container['placement'] = $data['placement'] ?? null; - $this->container['format_version'] = $data['format_version'] ?? self::FORMAT_VERSION_v2; - $this->container['response_condition'] = $data['response_condition'] ?? null; - $this->container['format'] = $data['format'] ?? null; - $this->container['dataset'] = $data['dataset'] ?? null; - $this->container['token'] = $data['token'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - - $allowedValues = $this->getPlacementAllowableValues(); - if (!is_null($this->container['placement']) && !in_array($this->container['placement'], $allowedValues, true)) { - $invalidProperties[] = sprintf( - "invalid value '%s' for 'placement', must be one of '%s'", - $this->container['placement'], - implode("', '", $allowedValues) - ); - } - - $allowedValues = $this->getFormatVersionAllowableValues(); - if (!is_null($this->container['format_version']) && !in_array($this->container['format_version'], $allowedValues, true)) { - $invalidProperties[] = sprintf( - "invalid value '%s' for 'format_version', must be one of '%s'", - $this->container['format_version'], - implode("', '", $allowedValues) - ); - } - - return $invalidProperties; - } - - /** - * Validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - return count($this->listInvalidProperties()) === 0; - } - - - /** - * Gets name - * - * @return string|null - */ - public function getName() - { - return $this->container['name']; - } - - /** - * Sets name - * - * @param string|null $name The name for the real-time logging configuration. - * - * @return self - */ - public function setName($name) - { - $this->container['name'] = $name; - - return $this; - } - - /** - * Gets placement - * - * @return string|null - */ - public function getPlacement() - { - return $this->container['placement']; - } - - /** - * Sets placement - * - * @param string|null $placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. - * - * @return self - */ - public function setPlacement($placement) - { - $allowedValues = $this->getPlacementAllowableValues(); - if (!is_null($placement) && !in_array($placement, $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value '%s' for 'placement', must be one of '%s'", - $placement, - implode("', '", $allowedValues) - ) - ); - } - $this->container['placement'] = $placement; - - return $this; - } - - /** - * Gets format_version - * - * @return int|null - */ - public function getFormatVersion() - { - return $this->container['format_version']; - } - - /** - * Sets format_version - * - * @param int|null $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. - * - * @return self - */ - public function setFormatVersion($format_version) - { - $allowedValues = $this->getFormatVersionAllowableValues(); - if (!is_null($format_version) && !in_array($format_version, $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value '%s' for 'format_version', must be one of '%s'", - $format_version, - implode("', '", $allowedValues) - ) - ); - } - $this->container['format_version'] = $format_version; - - return $this; - } - - /** - * Gets response_condition - * - * @return string|null - */ - public function getResponseCondition() - { - return $this->container['response_condition']; - } - - /** - * Sets response_condition - * - * @param string|null $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. - * - * @return self - */ - public function setResponseCondition($response_condition) - { - $this->container['response_condition'] = $response_condition; - - return $this; - } - - /** - * Gets format - * - * @return string|null - */ - public function getFormat() - { - return $this->container['format']; - } - - /** - * Sets format - * - * @param string|null $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). Must produce valid JSON that Honeycomb can ingest. - * - * @return self - */ - public function setFormat($format) - { - $this->container['format'] = $format; - - return $this; - } - - /** - * Gets dataset - * - * @return string|null - */ - public function getDataset() - { - return $this->container['dataset']; - } - - /** - * Sets dataset - * - * @param string|null $dataset The Honeycomb Dataset you want to log to. - * - * @return self - */ - public function setDataset($dataset) - { - $this->container['dataset'] = $dataset; - - return $this; - } - - /** - * Gets token - * - * @return string|null - */ - public function getToken() - { - return $this->container['token']; - } - - /** - * Sets token - * - * @param string|null $token The Write Key from the Account page of your Honeycomb account. - * - * @return self - */ - public function setToken($token) - { - $this->container['token'] = $token; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * - * @param integer $offset Offset - * - * @return boolean - */ - public function offsetExists($offset): bool - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * - * @param integer $offset Offset - * - * @return mixed|null - */ - public function offsetGet($offset): mixed - { - return $this->container[$offset] ?? null; - } - - /** - * Sets value based on offset. - * - * @param int|null $offset Offset - * @param mixed $value Value to be set - * - * @return void - */ - public function offsetSet($offset, $value): void - { - if (is_null($offset)) { - $this->container[] = $value; - } else { - $this->container[$offset] = $value; - } - } - - /** - * Unsets offset. - * - * @param integer $offset Offset - * - * @return void - */ - public function offsetUnset($offset): void - { - unset($this->container[$offset]); - } - - /** - * Serializes the object to a value that can be serialized natively by json_encode(). - * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php - * - * @return mixed Returns data which can be serialized by json_encode(), which is a value - * of any type other than a resource. - */ - public function jsonSerialize(): mixed - { - return ObjectSerializer::sanitizeForSerialization($this); - } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString() - { - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } - - /** - * Gets a header-safe presentation of the object - * - * @return string - */ - public function toHeaderValue() - { - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/lib/Model/LoggingHoneycombAllOf.php b/lib/Model/LoggingHoneycombAdditional.php similarity index 96% rename from lib/Model/LoggingHoneycombAllOf.php rename to lib/Model/LoggingHoneycombAdditional.php index da96eb04..ff9a53a7 100644 --- a/lib/Model/LoggingHoneycombAllOf.php +++ b/lib/Model/LoggingHoneycombAdditional.php @@ -1,6 +1,6 @@ 'string', 'placement' => 'string', - 'format_version' => 'int', 'response_condition' => 'string', 'format' => 'string', + 'format_version' => 'string', 'dataset' => 'string', 'token' => 'string', 'created_at' => '\DateTime', 'deleted_at' => '\DateTime', 'updated_at' => '\DateTime', 'service_id' => 'string', - 'version' => 'int' + 'version' => 'string' ]; /** @@ -77,9 +77,9 @@ class LoggingHoneycombResponse implements ModelInterface, ArrayAccess, \JsonSeri protected static $fastlyFormats = [ 'name' => null, 'placement' => null, - 'format_version' => null, 'response_condition' => null, 'format' => null, + 'format_version' => null, 'dataset' => null, 'token' => null, 'created_at' => 'date-time', @@ -118,9 +118,9 @@ public static function fastlyFormats() protected static $attributeMap = [ 'name' => 'name', 'placement' => 'placement', - 'format_version' => 'format_version', 'response_condition' => 'response_condition', 'format' => 'format', + 'format_version' => 'format_version', 'dataset' => 'dataset', 'token' => 'token', 'created_at' => 'created_at', @@ -138,9 +138,9 @@ public static function fastlyFormats() protected static $setters = [ 'name' => 'setName', 'placement' => 'setPlacement', - 'format_version' => 'setFormatVersion', 'response_condition' => 'setResponseCondition', 'format' => 'setFormat', + 'format_version' => 'setFormatVersion', 'dataset' => 'setDataset', 'token' => 'setToken', 'created_at' => 'setCreatedAt', @@ -158,9 +158,9 @@ public static function fastlyFormats() protected static $getters = [ 'name' => 'getName', 'placement' => 'getPlacement', - 'format_version' => 'getFormatVersion', 'response_condition' => 'getResponseCondition', 'format' => 'getFormat', + 'format_version' => 'getFormatVersion', 'dataset' => 'getDataset', 'token' => 'getToken', 'created_at' => 'getCreatedAt', @@ -214,8 +214,8 @@ public function getModelName() const PLACEMENT_NONE = 'none'; const PLACEMENT_WAF_DEBUG = 'waf_debug'; const PLACEMENT_NULL = 'null'; - const FORMAT_VERSION_v1 = 1; - const FORMAT_VERSION_v2 = 2; + const FORMAT_VERSION_v1 = '1'; + const FORMAT_VERSION_v2 = '2'; /** * Gets allowable values of the enum @@ -261,9 +261,9 @@ public function __construct(array $data = null) { $this->container['name'] = $data['name'] ?? null; $this->container['placement'] = $data['placement'] ?? null; - $this->container['format_version'] = $data['format_version'] ?? self::FORMAT_VERSION_v2; $this->container['response_condition'] = $data['response_condition'] ?? null; $this->container['format'] = $data['format'] ?? null; + $this->container['format_version'] = $data['format_version'] ?? '2'; $this->container['dataset'] = $data['dataset'] ?? null; $this->container['token'] = $data['token'] ?? null; $this->container['created_at'] = $data['created_at'] ?? null; @@ -374,83 +374,83 @@ public function setPlacement($placement) } /** - * Gets format_version + * Gets response_condition * - * @return int|null + * @return string|null */ - public function getFormatVersion() + public function getResponseCondition() { - return $this->container['format_version']; + return $this->container['response_condition']; } /** - * Sets format_version + * Sets response_condition * - * @param int|null $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. + * @param string|null $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. * * @return self */ - public function setFormatVersion($format_version) + public function setResponseCondition($response_condition) { - $allowedValues = $this->getFormatVersionAllowableValues(); - if (!is_null($format_version) && !in_array($format_version, $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value '%s' for 'format_version', must be one of '%s'", - $format_version, - implode("', '", $allowedValues) - ) - ); - } - $this->container['format_version'] = $format_version; + $this->container['response_condition'] = $response_condition; return $this; } /** - * Gets response_condition + * Gets format * * @return string|null */ - public function getResponseCondition() + public function getFormat() { - return $this->container['response_condition']; + return $this->container['format']; } /** - * Sets response_condition + * Sets format * - * @param string|null $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. + * @param string|null $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). Must produce valid JSON that Honeycomb can ingest. * * @return self */ - public function setResponseCondition($response_condition) + public function setFormat($format) { - $this->container['response_condition'] = $response_condition; + $this->container['format'] = $format; return $this; } /** - * Gets format + * Gets format_version * * @return string|null */ - public function getFormat() + public function getFormatVersion() { - return $this->container['format']; + return $this->container['format_version']; } /** - * Sets format + * Sets format_version * - * @param string|null $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). Must produce valid JSON that Honeycomb can ingest. + * @param string|null $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. * * @return self */ - public function setFormat($format) + public function setFormatVersion($format_version) { - $this->container['format'] = $format; + $allowedValues = $this->getFormatVersionAllowableValues(); + if (!is_null($format_version) && !in_array($format_version, $allowedValues, true)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value '%s' for 'format_version', must be one of '%s'", + $format_version, + implode("', '", $allowedValues) + ) + ); + } + $this->container['format_version'] = $format_version; return $this; } @@ -602,7 +602,7 @@ public function setServiceId($service_id) /** * Gets version * - * @return int|null + * @return string|null */ public function getVersion() { @@ -612,7 +612,7 @@ public function getVersion() /** * Sets version * - * @param int|null $version version + * @param string|null $version version * * @return self */ diff --git a/lib/Model/LoggingHttps.php b/lib/Model/LoggingHttps.php deleted file mode 100644 index 8df40984..00000000 --- a/lib/Model/LoggingHttps.php +++ /dev/null @@ -1,964 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class LoggingHttps implements ModelInterface, ArrayAccess, \JsonSerializable -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $fastlyModelName = 'logging_https'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $fastlyTypes = [ - 'name' => 'string', - 'placement' => 'string', - 'format_version' => 'int', - 'response_condition' => 'string', - 'format' => 'string', - 'tls_ca_cert' => 'string', - 'tls_client_cert' => 'string', - 'tls_client_key' => 'string', - 'tls_hostname' => 'string', - 'request_max_entries' => 'int', - 'request_max_bytes' => 'int', - 'url' => 'string', - 'content_type' => 'string', - 'header_name' => 'string', - 'message_type' => '\Fastly\Model\LoggingMessageType', - 'header_value' => 'string', - 'method' => 'string', - 'json_format' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $fastlyFormats = [ - 'name' => null, - 'placement' => null, - 'format_version' => null, - 'response_condition' => null, - 'format' => null, - 'tls_ca_cert' => null, - 'tls_client_cert' => null, - 'tls_client_key' => null, - 'tls_hostname' => null, - 'request_max_entries' => null, - 'request_max_bytes' => null, - 'url' => null, - 'content_type' => null, - 'header_name' => null, - 'message_type' => null, - 'header_value' => null, - 'method' => null, - 'json_format' => null - ]; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @return array - */ - public static function fastlyTypes() - { - return self::$fastlyTypes; - } - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @return array - */ - public static function fastlyFormats() - { - return self::$fastlyFormats; - } - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'name' => 'name', - 'placement' => 'placement', - 'format_version' => 'format_version', - 'response_condition' => 'response_condition', - 'format' => 'format', - 'tls_ca_cert' => 'tls_ca_cert', - 'tls_client_cert' => 'tls_client_cert', - 'tls_client_key' => 'tls_client_key', - 'tls_hostname' => 'tls_hostname', - 'request_max_entries' => 'request_max_entries', - 'request_max_bytes' => 'request_max_bytes', - 'url' => 'url', - 'content_type' => 'content_type', - 'header_name' => 'header_name', - 'message_type' => 'message_type', - 'header_value' => 'header_value', - 'method' => 'method', - 'json_format' => 'json_format' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'name' => 'setName', - 'placement' => 'setPlacement', - 'format_version' => 'setFormatVersion', - 'response_condition' => 'setResponseCondition', - 'format' => 'setFormat', - 'tls_ca_cert' => 'setTlsCaCert', - 'tls_client_cert' => 'setTlsClientCert', - 'tls_client_key' => 'setTlsClientKey', - 'tls_hostname' => 'setTlsHostname', - 'request_max_entries' => 'setRequestMaxEntries', - 'request_max_bytes' => 'setRequestMaxBytes', - 'url' => 'setUrl', - 'content_type' => 'setContentType', - 'header_name' => 'setHeaderName', - 'message_type' => 'setMessageType', - 'header_value' => 'setHeaderValue', - 'method' => 'setMethod', - 'json_format' => 'setJsonFormat' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'name' => 'getName', - 'placement' => 'getPlacement', - 'format_version' => 'getFormatVersion', - 'response_condition' => 'getResponseCondition', - 'format' => 'getFormat', - 'tls_ca_cert' => 'getTlsCaCert', - 'tls_client_cert' => 'getTlsClientCert', - 'tls_client_key' => 'getTlsClientKey', - 'tls_hostname' => 'getTlsHostname', - 'request_max_entries' => 'getRequestMaxEntries', - 'request_max_bytes' => 'getRequestMaxBytes', - 'url' => 'getUrl', - 'content_type' => 'getContentType', - 'header_name' => 'getHeaderName', - 'message_type' => 'getMessageType', - 'header_value' => 'getHeaderValue', - 'method' => 'getMethod', - 'json_format' => 'getJsonFormat' - ]; - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @return array - */ - public static function attributeMap() - { - return self::$attributeMap; - } - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @return array - */ - public static function setters() - { - return self::$setters; - } - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @return array - */ - public static function getters() - { - return self::$getters; - } - - /** - * The original name of the model. - * - * @return string - */ - public function getModelName() - { - return self::$fastlyModelName; - } - - const PLACEMENT_NONE = 'none'; - const PLACEMENT_WAF_DEBUG = 'waf_debug'; - const PLACEMENT_NULL = 'null'; - const FORMAT_VERSION_v1 = 1; - const FORMAT_VERSION_v2 = 2; - const METHOD_POST = 'POST'; - const METHOD_PUT = 'PUT'; - const JSON_FORMAT_disabled = '0'; - const JSON_FORMAT_json_array = '1'; - const JSON_FORMAT_newline_delimited_json = '2'; - - /** - * Gets allowable values of the enum - * - * @return string[] - */ - public function getPlacementAllowableValues() - { - return [ - self::PLACEMENT_NONE, - self::PLACEMENT_WAF_DEBUG, - self::PLACEMENT_NULL, - ]; - } - - /** - * Gets allowable values of the enum - * - * @return string[] - */ - public function getFormatVersionAllowableValues() - { - return [ - self::FORMAT_VERSION_v1, - self::FORMAT_VERSION_v2, - ]; - } - - /** - * Gets allowable values of the enum - * - * @return string[] - */ - public function getMethodAllowableValues() - { - return [ - self::METHOD_POST, - self::METHOD_PUT, - ]; - } - - /** - * Gets allowable values of the enum - * - * @return string[] - */ - public function getJsonFormatAllowableValues() - { - return [ - self::JSON_FORMAT_disabled, - self::JSON_FORMAT_json_array, - self::JSON_FORMAT_newline_delimited_json, - ]; - } - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['name'] = $data['name'] ?? null; - $this->container['placement'] = $data['placement'] ?? null; - $this->container['format_version'] = $data['format_version'] ?? self::FORMAT_VERSION_v2; - $this->container['response_condition'] = $data['response_condition'] ?? null; - $this->container['format'] = $data['format'] ?? '%h %l %u %t "%r" %>s %b'; - $this->container['tls_ca_cert'] = $data['tls_ca_cert'] ?? 'null'; - $this->container['tls_client_cert'] = $data['tls_client_cert'] ?? 'null'; - $this->container['tls_client_key'] = $data['tls_client_key'] ?? 'null'; - $this->container['tls_hostname'] = $data['tls_hostname'] ?? 'null'; - $this->container['request_max_entries'] = $data['request_max_entries'] ?? 0; - $this->container['request_max_bytes'] = $data['request_max_bytes'] ?? 0; - $this->container['url'] = $data['url'] ?? null; - $this->container['content_type'] = $data['content_type'] ?? 'null'; - $this->container['header_name'] = $data['header_name'] ?? 'null'; - $this->container['message_type'] = $data['message_type'] ?? null; - $this->container['header_value'] = $data['header_value'] ?? 'null'; - $this->container['method'] = $data['method'] ?? 'POST'; - $this->container['json_format'] = $data['json_format'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - - $allowedValues = $this->getPlacementAllowableValues(); - if (!is_null($this->container['placement']) && !in_array($this->container['placement'], $allowedValues, true)) { - $invalidProperties[] = sprintf( - "invalid value '%s' for 'placement', must be one of '%s'", - $this->container['placement'], - implode("', '", $allowedValues) - ); - } - - $allowedValues = $this->getFormatVersionAllowableValues(); - if (!is_null($this->container['format_version']) && !in_array($this->container['format_version'], $allowedValues, true)) { - $invalidProperties[] = sprintf( - "invalid value '%s' for 'format_version', must be one of '%s'", - $this->container['format_version'], - implode("', '", $allowedValues) - ); - } - - $allowedValues = $this->getMethodAllowableValues(); - if (!is_null($this->container['method']) && !in_array($this->container['method'], $allowedValues, true)) { - $invalidProperties[] = sprintf( - "invalid value '%s' for 'method', must be one of '%s'", - $this->container['method'], - implode("', '", $allowedValues) - ); - } - - $allowedValues = $this->getJsonFormatAllowableValues(); - if (!is_null($this->container['json_format']) && !in_array($this->container['json_format'], $allowedValues, true)) { - $invalidProperties[] = sprintf( - "invalid value '%s' for 'json_format', must be one of '%s'", - $this->container['json_format'], - implode("', '", $allowedValues) - ); - } - - return $invalidProperties; - } - - /** - * Validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - return count($this->listInvalidProperties()) === 0; - } - - - /** - * Gets name - * - * @return string|null - */ - public function getName() - { - return $this->container['name']; - } - - /** - * Sets name - * - * @param string|null $name The name for the real-time logging configuration. - * - * @return self - */ - public function setName($name) - { - $this->container['name'] = $name; - - return $this; - } - - /** - * Gets placement - * - * @return string|null - */ - public function getPlacement() - { - return $this->container['placement']; - } - - /** - * Sets placement - * - * @param string|null $placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. - * - * @return self - */ - public function setPlacement($placement) - { - $allowedValues = $this->getPlacementAllowableValues(); - if (!is_null($placement) && !in_array($placement, $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value '%s' for 'placement', must be one of '%s'", - $placement, - implode("', '", $allowedValues) - ) - ); - } - $this->container['placement'] = $placement; - - return $this; - } - - /** - * Gets format_version - * - * @return int|null - */ - public function getFormatVersion() - { - return $this->container['format_version']; - } - - /** - * Sets format_version - * - * @param int|null $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. - * - * @return self - */ - public function setFormatVersion($format_version) - { - $allowedValues = $this->getFormatVersionAllowableValues(); - if (!is_null($format_version) && !in_array($format_version, $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value '%s' for 'format_version', must be one of '%s'", - $format_version, - implode("', '", $allowedValues) - ) - ); - } - $this->container['format_version'] = $format_version; - - return $this; - } - - /** - * Gets response_condition - * - * @return string|null - */ - public function getResponseCondition() - { - return $this->container['response_condition']; - } - - /** - * Sets response_condition - * - * @param string|null $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. - * - * @return self - */ - public function setResponseCondition($response_condition) - { - $this->container['response_condition'] = $response_condition; - - return $this; - } - - /** - * Gets format - * - * @return string|null - */ - public function getFormat() - { - return $this->container['format']; - } - - /** - * Sets format - * - * @param string|null $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). - * - * @return self - */ - public function setFormat($format) - { - $this->container['format'] = $format; - - return $this; - } - - /** - * Gets tls_ca_cert - * - * @return string|null - */ - public function getTlsCaCert() - { - return $this->container['tls_ca_cert']; - } - - /** - * Sets tls_ca_cert - * - * @param string|null $tls_ca_cert A secure certificate to authenticate a server with. Must be in PEM format. - * - * @return self - */ - public function setTlsCaCert($tls_ca_cert) - { - $this->container['tls_ca_cert'] = $tls_ca_cert; - - return $this; - } - - /** - * Gets tls_client_cert - * - * @return string|null - */ - public function getTlsClientCert() - { - return $this->container['tls_client_cert']; - } - - /** - * Sets tls_client_cert - * - * @param string|null $tls_client_cert The client certificate used to make authenticated requests. Must be in PEM format. - * - * @return self - */ - public function setTlsClientCert($tls_client_cert) - { - $this->container['tls_client_cert'] = $tls_client_cert; - - return $this; - } - - /** - * Gets tls_client_key - * - * @return string|null - */ - public function getTlsClientKey() - { - return $this->container['tls_client_key']; - } - - /** - * Sets tls_client_key - * - * @param string|null $tls_client_key The client private key used to make authenticated requests. Must be in PEM format. - * - * @return self - */ - public function setTlsClientKey($tls_client_key) - { - $this->container['tls_client_key'] = $tls_client_key; - - return $this; - } - - /** - * Gets tls_hostname - * - * @return string|null - */ - public function getTlsHostname() - { - return $this->container['tls_hostname']; - } - - /** - * Sets tls_hostname - * - * @param string|null $tls_hostname The hostname to verify the server's certificate. This should be one of the Subject Alternative Name (SAN) fields for the certificate. Common Names (CN) are not supported. - * - * @return self - */ - public function setTlsHostname($tls_hostname) - { - $this->container['tls_hostname'] = $tls_hostname; - - return $this; - } - - /** - * Gets request_max_entries - * - * @return int|null - */ - public function getRequestMaxEntries() - { - return $this->container['request_max_entries']; - } - - /** - * Sets request_max_entries - * - * @param int|null $request_max_entries The maximum number of logs sent in one request. Defaults `0` (10k). - * - * @return self - */ - public function setRequestMaxEntries($request_max_entries) - { - $this->container['request_max_entries'] = $request_max_entries; - - return $this; - } - - /** - * Gets request_max_bytes - * - * @return int|null - */ - public function getRequestMaxBytes() - { - return $this->container['request_max_bytes']; - } - - /** - * Sets request_max_bytes - * - * @param int|null $request_max_bytes The maximum number of bytes sent in one request. Defaults `0` (100MB). - * - * @return self - */ - public function setRequestMaxBytes($request_max_bytes) - { - $this->container['request_max_bytes'] = $request_max_bytes; - - return $this; - } - - /** - * Gets url - * - * @return string|null - */ - public function getUrl() - { - return $this->container['url']; - } - - /** - * Sets url - * - * @param string|null $url The URL to send logs to. Must use HTTPS. Required. - * - * @return self - */ - public function setUrl($url) - { - $this->container['url'] = $url; - - return $this; - } - - /** - * Gets content_type - * - * @return string|null - */ - public function getContentType() - { - return $this->container['content_type']; - } - - /** - * Sets content_type - * - * @param string|null $content_type Content type of the header sent with the request. - * - * @return self - */ - public function setContentType($content_type) - { - $this->container['content_type'] = $content_type; - - return $this; - } - - /** - * Gets header_name - * - * @return string|null - */ - public function getHeaderName() - { - return $this->container['header_name']; - } - - /** - * Sets header_name - * - * @param string|null $header_name Name of the custom header sent with the request. - * - * @return self - */ - public function setHeaderName($header_name) - { - $this->container['header_name'] = $header_name; - - return $this; - } - - /** - * Gets message_type - * - * @return \Fastly\Model\LoggingMessageType|null - */ - public function getMessageType() - { - return $this->container['message_type']; - } - - /** - * Sets message_type - * - * @param \Fastly\Model\LoggingMessageType|null $message_type message_type - * - * @return self - */ - public function setMessageType($message_type) - { - $this->container['message_type'] = $message_type; - - return $this; - } - - /** - * Gets header_value - * - * @return string|null - */ - public function getHeaderValue() - { - return $this->container['header_value']; - } - - /** - * Sets header_value - * - * @param string|null $header_value Value of the custom header sent with the request. - * - * @return self - */ - public function setHeaderValue($header_value) - { - $this->container['header_value'] = $header_value; - - return $this; - } - - /** - * Gets method - * - * @return string|null - */ - public function getMethod() - { - return $this->container['method']; - } - - /** - * Sets method - * - * @param string|null $method HTTP method used for request. - * - * @return self - */ - public function setMethod($method) - { - $allowedValues = $this->getMethodAllowableValues(); - if (!is_null($method) && !in_array($method, $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value '%s' for 'method', must be one of '%s'", - $method, - implode("', '", $allowedValues) - ) - ); - } - $this->container['method'] = $method; - - return $this; - } - - /** - * Gets json_format - * - * @return string|null - */ - public function getJsonFormat() - { - return $this->container['json_format']; - } - - /** - * Sets json_format - * - * @param string|null $json_format Enforces valid JSON formatting for log entries. - * - * @return self - */ - public function setJsonFormat($json_format) - { - $allowedValues = $this->getJsonFormatAllowableValues(); - if (!is_null($json_format) && !in_array($json_format, $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value '%s' for 'json_format', must be one of '%s'", - $json_format, - implode("', '", $allowedValues) - ) - ); - } - $this->container['json_format'] = $json_format; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * - * @param integer $offset Offset - * - * @return boolean - */ - public function offsetExists($offset): bool - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * - * @param integer $offset Offset - * - * @return mixed|null - */ - public function offsetGet($offset): mixed - { - return $this->container[$offset] ?? null; - } - - /** - * Sets value based on offset. - * - * @param int|null $offset Offset - * @param mixed $value Value to be set - * - * @return void - */ - public function offsetSet($offset, $value): void - { - if (is_null($offset)) { - $this->container[] = $value; - } else { - $this->container[$offset] = $value; - } - } - - /** - * Unsets offset. - * - * @param integer $offset Offset - * - * @return void - */ - public function offsetUnset($offset): void - { - unset($this->container[$offset]); - } - - /** - * Serializes the object to a value that can be serialized natively by json_encode(). - * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php - * - * @return mixed Returns data which can be serialized by json_encode(), which is a value - * of any type other than a resource. - */ - public function jsonSerialize(): mixed - { - return ObjectSerializer::sanitizeForSerialization($this); - } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString() - { - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } - - /** - * Gets a header-safe presentation of the object - * - * @return string - */ - public function toHeaderValue() - { - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/lib/Model/LoggingHttpsAllOf.php b/lib/Model/LoggingHttpsAdditional.php similarity index 98% rename from lib/Model/LoggingHttpsAllOf.php rename to lib/Model/LoggingHttpsAdditional.php index 88efa480..3ce85019 100644 --- a/lib/Model/LoggingHttpsAllOf.php +++ b/lib/Model/LoggingHttpsAdditional.php @@ -1,6 +1,6 @@ 'string', 'placement' => 'string', - 'format_version' => 'int', 'response_condition' => 'string', 'format' => 'string', + 'format_version' => 'string', 'tls_ca_cert' => 'string', 'tls_client_cert' => 'string', 'tls_client_key' => 'string', @@ -75,7 +75,7 @@ class LoggingHttpsResponse implements ModelInterface, ArrayAccess, \JsonSerializ 'deleted_at' => '\DateTime', 'updated_at' => '\DateTime', 'service_id' => 'string', - 'version' => 'int' + 'version' => 'string' ]; /** @@ -88,9 +88,9 @@ class LoggingHttpsResponse implements ModelInterface, ArrayAccess, \JsonSerializ protected static $fastlyFormats = [ 'name' => null, 'placement' => null, - 'format_version' => null, 'response_condition' => null, 'format' => null, + 'format_version' => null, 'tls_ca_cert' => null, 'tls_client_cert' => null, 'tls_client_key' => null, @@ -140,9 +140,9 @@ public static function fastlyFormats() protected static $attributeMap = [ 'name' => 'name', 'placement' => 'placement', - 'format_version' => 'format_version', 'response_condition' => 'response_condition', 'format' => 'format', + 'format_version' => 'format_version', 'tls_ca_cert' => 'tls_ca_cert', 'tls_client_cert' => 'tls_client_cert', 'tls_client_key' => 'tls_client_key', @@ -171,9 +171,9 @@ public static function fastlyFormats() protected static $setters = [ 'name' => 'setName', 'placement' => 'setPlacement', - 'format_version' => 'setFormatVersion', 'response_condition' => 'setResponseCondition', 'format' => 'setFormat', + 'format_version' => 'setFormatVersion', 'tls_ca_cert' => 'setTlsCaCert', 'tls_client_cert' => 'setTlsClientCert', 'tls_client_key' => 'setTlsClientKey', @@ -202,9 +202,9 @@ public static function fastlyFormats() protected static $getters = [ 'name' => 'getName', 'placement' => 'getPlacement', - 'format_version' => 'getFormatVersion', 'response_condition' => 'getResponseCondition', 'format' => 'getFormat', + 'format_version' => 'getFormatVersion', 'tls_ca_cert' => 'getTlsCaCert', 'tls_client_cert' => 'getTlsClientCert', 'tls_client_key' => 'getTlsClientKey', @@ -269,8 +269,8 @@ public function getModelName() const PLACEMENT_NONE = 'none'; const PLACEMENT_WAF_DEBUG = 'waf_debug'; const PLACEMENT_NULL = 'null'; - const FORMAT_VERSION_v1 = 1; - const FORMAT_VERSION_v2 = 2; + const FORMAT_VERSION_v1 = '1'; + const FORMAT_VERSION_v2 = '2'; const METHOD_POST = 'POST'; const METHOD_PUT = 'PUT'; const JSON_FORMAT_disabled = '0'; @@ -348,9 +348,9 @@ public function __construct(array $data = null) { $this->container['name'] = $data['name'] ?? null; $this->container['placement'] = $data['placement'] ?? null; - $this->container['format_version'] = $data['format_version'] ?? self::FORMAT_VERSION_v2; $this->container['response_condition'] = $data['response_condition'] ?? null; $this->container['format'] = $data['format'] ?? '%h %l %u %t "%r" %>s %b'; + $this->container['format_version'] = $data['format_version'] ?? '2'; $this->container['tls_ca_cert'] = $data['tls_ca_cert'] ?? 'null'; $this->container['tls_client_cert'] = $data['tls_client_cert'] ?? 'null'; $this->container['tls_client_key'] = $data['tls_client_key'] ?? 'null'; @@ -490,83 +490,83 @@ public function setPlacement($placement) } /** - * Gets format_version + * Gets response_condition * - * @return int|null + * @return string|null */ - public function getFormatVersion() + public function getResponseCondition() { - return $this->container['format_version']; + return $this->container['response_condition']; } /** - * Sets format_version + * Sets response_condition * - * @param int|null $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. + * @param string|null $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. * * @return self */ - public function setFormatVersion($format_version) + public function setResponseCondition($response_condition) { - $allowedValues = $this->getFormatVersionAllowableValues(); - if (!is_null($format_version) && !in_array($format_version, $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value '%s' for 'format_version', must be one of '%s'", - $format_version, - implode("', '", $allowedValues) - ) - ); - } - $this->container['format_version'] = $format_version; + $this->container['response_condition'] = $response_condition; return $this; } /** - * Gets response_condition + * Gets format * * @return string|null */ - public function getResponseCondition() + public function getFormat() { - return $this->container['response_condition']; + return $this->container['format']; } /** - * Sets response_condition + * Sets format * - * @param string|null $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. + * @param string|null $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). * * @return self */ - public function setResponseCondition($response_condition) + public function setFormat($format) { - $this->container['response_condition'] = $response_condition; + $this->container['format'] = $format; return $this; } /** - * Gets format + * Gets format_version * * @return string|null */ - public function getFormat() + public function getFormatVersion() { - return $this->container['format']; + return $this->container['format_version']; } /** - * Sets format + * Sets format_version * - * @param string|null $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). + * @param string|null $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. * * @return self */ - public function setFormat($format) + public function setFormatVersion($format_version) { - $this->container['format'] = $format; + $allowedValues = $this->getFormatVersionAllowableValues(); + if (!is_null($format_version) && !in_array($format_version, $allowedValues, true)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value '%s' for 'format_version', must be one of '%s'", + $format_version, + implode("', '", $allowedValues) + ) + ); + } + $this->container['format_version'] = $format_version; return $this; } @@ -1002,7 +1002,7 @@ public function setServiceId($service_id) /** * Gets version * - * @return int|null + * @return string|null */ public function getVersion() { @@ -1012,7 +1012,7 @@ public function getVersion() /** * Sets version * - * @param int|null $version version + * @param string|null $version version * * @return self */ diff --git a/lib/Model/LoggingKafkaAllOf.php b/lib/Model/LoggingKafkaAdditional.php similarity index 98% rename from lib/Model/LoggingKafkaAllOf.php rename to lib/Model/LoggingKafkaAdditional.php index 40aec408..d0b647a5 100644 --- a/lib/Model/LoggingKafkaAllOf.php +++ b/lib/Model/LoggingKafkaAdditional.php @@ -1,6 +1,6 @@ 'string', 'placement' => 'string', - 'format_version' => 'int', 'response_condition' => 'string', 'format' => 'string', + 'format_version' => 'string', 'tls_ca_cert' => 'string', 'tls_client_cert' => 'string', 'tls_client_key' => 'string', 'tls_hostname' => 'string', + 'created_at' => '\DateTime', + 'deleted_at' => '\DateTime', + 'updated_at' => '\DateTime', + 'service_id' => 'string', + 'version' => 'string', 'topic' => 'string', 'brokers' => 'string', 'compression_codec' => 'string', @@ -71,12 +76,7 @@ class LoggingKafkaResponse implements ModelInterface, ArrayAccess, \JsonSerializ 'auth_method' => 'string', 'user' => 'string', 'password' => 'string', - 'use_tls' => '\Fastly\Model\LoggingUseTls', - 'created_at' => '\DateTime', - 'deleted_at' => '\DateTime', - 'updated_at' => '\DateTime', - 'service_id' => 'string', - 'version' => 'int' + 'use_tls' => '\Fastly\Model\LoggingUseTls' ]; /** @@ -89,13 +89,18 @@ class LoggingKafkaResponse implements ModelInterface, ArrayAccess, \JsonSerializ protected static $fastlyFormats = [ 'name' => null, 'placement' => null, - 'format_version' => null, 'response_condition' => null, 'format' => null, + 'format_version' => null, 'tls_ca_cert' => null, 'tls_client_cert' => null, 'tls_client_key' => null, 'tls_hostname' => null, + 'created_at' => 'date-time', + 'deleted_at' => 'date-time', + 'updated_at' => 'date-time', + 'service_id' => null, + 'version' => null, 'topic' => null, 'brokers' => null, 'compression_codec' => null, @@ -105,12 +110,7 @@ class LoggingKafkaResponse implements ModelInterface, ArrayAccess, \JsonSerializ 'auth_method' => null, 'user' => null, 'password' => null, - 'use_tls' => null, - 'created_at' => 'date-time', - 'deleted_at' => 'date-time', - 'updated_at' => 'date-time', - 'service_id' => null, - 'version' => null + 'use_tls' => null ]; /** @@ -142,13 +142,18 @@ public static function fastlyFormats() protected static $attributeMap = [ 'name' => 'name', 'placement' => 'placement', - 'format_version' => 'format_version', 'response_condition' => 'response_condition', 'format' => 'format', + 'format_version' => 'format_version', 'tls_ca_cert' => 'tls_ca_cert', 'tls_client_cert' => 'tls_client_cert', 'tls_client_key' => 'tls_client_key', 'tls_hostname' => 'tls_hostname', + 'created_at' => 'created_at', + 'deleted_at' => 'deleted_at', + 'updated_at' => 'updated_at', + 'service_id' => 'service_id', + 'version' => 'version', 'topic' => 'topic', 'brokers' => 'brokers', 'compression_codec' => 'compression_codec', @@ -158,12 +163,7 @@ public static function fastlyFormats() 'auth_method' => 'auth_method', 'user' => 'user', 'password' => 'password', - 'use_tls' => 'use_tls', - 'created_at' => 'created_at', - 'deleted_at' => 'deleted_at', - 'updated_at' => 'updated_at', - 'service_id' => 'service_id', - 'version' => 'version' + 'use_tls' => 'use_tls' ]; /** @@ -174,13 +174,18 @@ public static function fastlyFormats() protected static $setters = [ 'name' => 'setName', 'placement' => 'setPlacement', - 'format_version' => 'setFormatVersion', 'response_condition' => 'setResponseCondition', 'format' => 'setFormat', + 'format_version' => 'setFormatVersion', 'tls_ca_cert' => 'setTlsCaCert', 'tls_client_cert' => 'setTlsClientCert', 'tls_client_key' => 'setTlsClientKey', 'tls_hostname' => 'setTlsHostname', + 'created_at' => 'setCreatedAt', + 'deleted_at' => 'setDeletedAt', + 'updated_at' => 'setUpdatedAt', + 'service_id' => 'setServiceId', + 'version' => 'setVersion', 'topic' => 'setTopic', 'brokers' => 'setBrokers', 'compression_codec' => 'setCompressionCodec', @@ -190,12 +195,7 @@ public static function fastlyFormats() 'auth_method' => 'setAuthMethod', 'user' => 'setUser', 'password' => 'setPassword', - 'use_tls' => 'setUseTls', - 'created_at' => 'setCreatedAt', - 'deleted_at' => 'setDeletedAt', - 'updated_at' => 'setUpdatedAt', - 'service_id' => 'setServiceId', - 'version' => 'setVersion' + 'use_tls' => 'setUseTls' ]; /** @@ -206,13 +206,18 @@ public static function fastlyFormats() protected static $getters = [ 'name' => 'getName', 'placement' => 'getPlacement', - 'format_version' => 'getFormatVersion', 'response_condition' => 'getResponseCondition', 'format' => 'getFormat', + 'format_version' => 'getFormatVersion', 'tls_ca_cert' => 'getTlsCaCert', 'tls_client_cert' => 'getTlsClientCert', 'tls_client_key' => 'getTlsClientKey', 'tls_hostname' => 'getTlsHostname', + 'created_at' => 'getCreatedAt', + 'deleted_at' => 'getDeletedAt', + 'updated_at' => 'getUpdatedAt', + 'service_id' => 'getServiceId', + 'version' => 'getVersion', 'topic' => 'getTopic', 'brokers' => 'getBrokers', 'compression_codec' => 'getCompressionCodec', @@ -222,12 +227,7 @@ public static function fastlyFormats() 'auth_method' => 'getAuthMethod', 'user' => 'getUser', 'password' => 'getPassword', - 'use_tls' => 'getUseTls', - 'created_at' => 'getCreatedAt', - 'deleted_at' => 'getDeletedAt', - 'updated_at' => 'getUpdatedAt', - 'service_id' => 'getServiceId', - 'version' => 'getVersion' + 'use_tls' => 'getUseTls' ]; /** @@ -274,8 +274,8 @@ public function getModelName() const PLACEMENT_NONE = 'none'; const PLACEMENT_WAF_DEBUG = 'waf_debug'; const PLACEMENT_NULL = 'null'; - const FORMAT_VERSION_v1 = 1; - const FORMAT_VERSION_v2 = 2; + const FORMAT_VERSION_v1 = '1'; + const FORMAT_VERSION_v2 = '2'; const COMPRESSION_CODEC_GZIP = 'gzip'; const COMPRESSION_CODEC_SNAPPY = 'snappy'; const COMPRESSION_CODEC_LZ4 = 'lz4'; @@ -374,13 +374,18 @@ public function __construct(array $data = null) { $this->container['name'] = $data['name'] ?? null; $this->container['placement'] = $data['placement'] ?? null; - $this->container['format_version'] = $data['format_version'] ?? self::FORMAT_VERSION_v2; $this->container['response_condition'] = $data['response_condition'] ?? null; $this->container['format'] = $data['format'] ?? '%h %l %u %t "%r" %>s %b'; + $this->container['format_version'] = $data['format_version'] ?? '2'; $this->container['tls_ca_cert'] = $data['tls_ca_cert'] ?? 'null'; $this->container['tls_client_cert'] = $data['tls_client_cert'] ?? 'null'; $this->container['tls_client_key'] = $data['tls_client_key'] ?? 'null'; $this->container['tls_hostname'] = $data['tls_hostname'] ?? 'null'; + $this->container['created_at'] = $data['created_at'] ?? null; + $this->container['deleted_at'] = $data['deleted_at'] ?? null; + $this->container['updated_at'] = $data['updated_at'] ?? null; + $this->container['service_id'] = $data['service_id'] ?? null; + $this->container['version'] = $data['version'] ?? null; $this->container['topic'] = $data['topic'] ?? null; $this->container['brokers'] = $data['brokers'] ?? null; $this->container['compression_codec'] = $data['compression_codec'] ?? null; @@ -391,11 +396,6 @@ public function __construct(array $data = null) $this->container['user'] = $data['user'] ?? null; $this->container['password'] = $data['password'] ?? null; $this->container['use_tls'] = $data['use_tls'] ?? null; - $this->container['created_at'] = $data['created_at'] ?? null; - $this->container['deleted_at'] = $data['deleted_at'] ?? null; - $this->container['updated_at'] = $data['updated_at'] ?? null; - $this->container['service_id'] = $data['service_id'] ?? null; - $this->container['version'] = $data['version'] ?? null; } /** @@ -526,83 +526,83 @@ public function setPlacement($placement) } /** - * Gets format_version + * Gets response_condition * - * @return int|null + * @return string|null */ - public function getFormatVersion() + public function getResponseCondition() { - return $this->container['format_version']; + return $this->container['response_condition']; } /** - * Sets format_version + * Sets response_condition * - * @param int|null $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. + * @param string|null $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. * * @return self */ - public function setFormatVersion($format_version) + public function setResponseCondition($response_condition) { - $allowedValues = $this->getFormatVersionAllowableValues(); - if (!is_null($format_version) && !in_array($format_version, $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value '%s' for 'format_version', must be one of '%s'", - $format_version, - implode("', '", $allowedValues) - ) - ); - } - $this->container['format_version'] = $format_version; + $this->container['response_condition'] = $response_condition; return $this; } /** - * Gets response_condition + * Gets format * * @return string|null */ - public function getResponseCondition() + public function getFormat() { - return $this->container['response_condition']; + return $this->container['format']; } /** - * Sets response_condition + * Sets format * - * @param string|null $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. + * @param string|null $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). * * @return self */ - public function setResponseCondition($response_condition) + public function setFormat($format) { - $this->container['response_condition'] = $response_condition; + $this->container['format'] = $format; return $this; } /** - * Gets format + * Gets format_version * * @return string|null */ - public function getFormat() + public function getFormatVersion() { - return $this->container['format']; + return $this->container['format_version']; } /** - * Sets format + * Sets format_version * - * @param string|null $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). + * @param string|null $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. * * @return self */ - public function setFormat($format) + public function setFormatVersion($format_version) { - $this->container['format'] = $format; + $allowedValues = $this->getFormatVersionAllowableValues(); + if (!is_null($format_version) && !in_array($format_version, $allowedValues, true)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value '%s' for 'format_version', must be one of '%s'", + $format_version, + implode("', '", $allowedValues) + ) + ); + } + $this->container['format_version'] = $format_version; return $this; } @@ -703,6 +703,126 @@ public function setTlsHostname($tls_hostname) return $this; } + /** + * Gets created_at + * + * @return \DateTime|null + */ + public function getCreatedAt() + { + return $this->container['created_at']; + } + + /** + * Sets created_at + * + * @param \DateTime|null $created_at Date and time in ISO 8601 format. + * + * @return self + */ + public function setCreatedAt($created_at) + { + $this->container['created_at'] = $created_at; + + return $this; + } + + /** + * Gets deleted_at + * + * @return \DateTime|null + */ + public function getDeletedAt() + { + return $this->container['deleted_at']; + } + + /** + * Sets deleted_at + * + * @param \DateTime|null $deleted_at Date and time in ISO 8601 format. + * + * @return self + */ + public function setDeletedAt($deleted_at) + { + $this->container['deleted_at'] = $deleted_at; + + return $this; + } + + /** + * Gets updated_at + * + * @return \DateTime|null + */ + public function getUpdatedAt() + { + return $this->container['updated_at']; + } + + /** + * Sets updated_at + * + * @param \DateTime|null $updated_at Date and time in ISO 8601 format. + * + * @return self + */ + public function setUpdatedAt($updated_at) + { + $this->container['updated_at'] = $updated_at; + + return $this; + } + + /** + * Gets service_id + * + * @return string|null + */ + public function getServiceId() + { + return $this->container['service_id']; + } + + /** + * Sets service_id + * + * @param string|null $service_id service_id + * + * @return self + */ + public function setServiceId($service_id) + { + $this->container['service_id'] = $service_id; + + return $this; + } + + /** + * Gets version + * + * @return string|null + */ + public function getVersion() + { + return $this->container['version']; + } + + /** + * Sets version + * + * @param string|null $version version + * + * @return self + */ + public function setVersion($version) + { + $this->container['version'] = $version; + + return $this; + } + /** * Gets topic * @@ -972,126 +1092,6 @@ public function setUseTls($use_tls) return $this; } - - /** - * Gets created_at - * - * @return \DateTime|null - */ - public function getCreatedAt() - { - return $this->container['created_at']; - } - - /** - * Sets created_at - * - * @param \DateTime|null $created_at Date and time in ISO 8601 format. - * - * @return self - */ - public function setCreatedAt($created_at) - { - $this->container['created_at'] = $created_at; - - return $this; - } - - /** - * Gets deleted_at - * - * @return \DateTime|null - */ - public function getDeletedAt() - { - return $this->container['deleted_at']; - } - - /** - * Sets deleted_at - * - * @param \DateTime|null $deleted_at Date and time in ISO 8601 format. - * - * @return self - */ - public function setDeletedAt($deleted_at) - { - $this->container['deleted_at'] = $deleted_at; - - return $this; - } - - /** - * Gets updated_at - * - * @return \DateTime|null - */ - public function getUpdatedAt() - { - return $this->container['updated_at']; - } - - /** - * Sets updated_at - * - * @param \DateTime|null $updated_at Date and time in ISO 8601 format. - * - * @return self - */ - public function setUpdatedAt($updated_at) - { - $this->container['updated_at'] = $updated_at; - - return $this; - } - - /** - * Gets service_id - * - * @return string|null - */ - public function getServiceId() - { - return $this->container['service_id']; - } - - /** - * Sets service_id - * - * @param string|null $service_id service_id - * - * @return self - */ - public function setServiceId($service_id) - { - $this->container['service_id'] = $service_id; - - return $this; - } - - /** - * Gets version - * - * @return int|null - */ - public function getVersion() - { - return $this->container['version']; - } - - /** - * Sets version - * - * @param int|null $version version - * - * @return self - */ - public function setVersion($version) - { - $this->container['version'] = $version; - - return $this; - } /** * Returns true if offset exists. False otherwise. * diff --git a/lib/Model/LoggingKafka.php b/lib/Model/LoggingKafkaResponsePost.php similarity index 88% rename from lib/Model/LoggingKafka.php rename to lib/Model/LoggingKafkaResponsePost.php index f28b72f7..168c8468 100644 --- a/lib/Model/LoggingKafka.php +++ b/lib/Model/LoggingKafkaResponsePost.php @@ -1,6 +1,6 @@ 'string', 'placement' => 'string', - 'format_version' => 'int', 'response_condition' => 'string', 'format' => 'string', + 'format_version' => 'int', 'tls_ca_cert' => 'string', 'tls_client_cert' => 'string', 'tls_client_key' => 'string', 'tls_hostname' => 'string', + 'created_at' => '\DateTime', + 'deleted_at' => '\DateTime', + 'updated_at' => '\DateTime', + 'service_id' => 'string', + 'version' => 'string', 'topic' => 'string', 'brokers' => 'string', 'compression_codec' => 'string', @@ -84,13 +89,18 @@ class LoggingKafka implements ModelInterface, ArrayAccess, \JsonSerializable protected static $fastlyFormats = [ 'name' => null, 'placement' => null, - 'format_version' => null, 'response_condition' => null, 'format' => null, + 'format_version' => null, 'tls_ca_cert' => null, 'tls_client_cert' => null, 'tls_client_key' => null, 'tls_hostname' => null, + 'created_at' => 'date-time', + 'deleted_at' => 'date-time', + 'updated_at' => 'date-time', + 'service_id' => null, + 'version' => null, 'topic' => null, 'brokers' => null, 'compression_codec' => null, @@ -132,13 +142,18 @@ public static function fastlyFormats() protected static $attributeMap = [ 'name' => 'name', 'placement' => 'placement', - 'format_version' => 'format_version', 'response_condition' => 'response_condition', 'format' => 'format', + 'format_version' => 'format_version', 'tls_ca_cert' => 'tls_ca_cert', 'tls_client_cert' => 'tls_client_cert', 'tls_client_key' => 'tls_client_key', 'tls_hostname' => 'tls_hostname', + 'created_at' => 'created_at', + 'deleted_at' => 'deleted_at', + 'updated_at' => 'updated_at', + 'service_id' => 'service_id', + 'version' => 'version', 'topic' => 'topic', 'brokers' => 'brokers', 'compression_codec' => 'compression_codec', @@ -159,13 +174,18 @@ public static function fastlyFormats() protected static $setters = [ 'name' => 'setName', 'placement' => 'setPlacement', - 'format_version' => 'setFormatVersion', 'response_condition' => 'setResponseCondition', 'format' => 'setFormat', + 'format_version' => 'setFormatVersion', 'tls_ca_cert' => 'setTlsCaCert', 'tls_client_cert' => 'setTlsClientCert', 'tls_client_key' => 'setTlsClientKey', 'tls_hostname' => 'setTlsHostname', + 'created_at' => 'setCreatedAt', + 'deleted_at' => 'setDeletedAt', + 'updated_at' => 'setUpdatedAt', + 'service_id' => 'setServiceId', + 'version' => 'setVersion', 'topic' => 'setTopic', 'brokers' => 'setBrokers', 'compression_codec' => 'setCompressionCodec', @@ -186,13 +206,18 @@ public static function fastlyFormats() protected static $getters = [ 'name' => 'getName', 'placement' => 'getPlacement', - 'format_version' => 'getFormatVersion', 'response_condition' => 'getResponseCondition', 'format' => 'getFormat', + 'format_version' => 'getFormatVersion', 'tls_ca_cert' => 'getTlsCaCert', 'tls_client_cert' => 'getTlsClientCert', 'tls_client_key' => 'getTlsClientKey', 'tls_hostname' => 'getTlsHostname', + 'created_at' => 'getCreatedAt', + 'deleted_at' => 'getDeletedAt', + 'updated_at' => 'getUpdatedAt', + 'service_id' => 'getServiceId', + 'version' => 'getVersion', 'topic' => 'getTopic', 'brokers' => 'getBrokers', 'compression_codec' => 'getCompressionCodec', @@ -349,13 +374,18 @@ public function __construct(array $data = null) { $this->container['name'] = $data['name'] ?? null; $this->container['placement'] = $data['placement'] ?? null; - $this->container['format_version'] = $data['format_version'] ?? self::FORMAT_VERSION_v2; $this->container['response_condition'] = $data['response_condition'] ?? null; $this->container['format'] = $data['format'] ?? '%h %l %u %t "%r" %>s %b'; + $this->container['format_version'] = $data['format_version'] ?? self::FORMAT_VERSION_v2; $this->container['tls_ca_cert'] = $data['tls_ca_cert'] ?? 'null'; $this->container['tls_client_cert'] = $data['tls_client_cert'] ?? 'null'; $this->container['tls_client_key'] = $data['tls_client_key'] ?? 'null'; $this->container['tls_hostname'] = $data['tls_hostname'] ?? 'null'; + $this->container['created_at'] = $data['created_at'] ?? null; + $this->container['deleted_at'] = $data['deleted_at'] ?? null; + $this->container['updated_at'] = $data['updated_at'] ?? null; + $this->container['service_id'] = $data['service_id'] ?? null; + $this->container['version'] = $data['version'] ?? null; $this->container['topic'] = $data['topic'] ?? null; $this->container['brokers'] = $data['brokers'] ?? null; $this->container['compression_codec'] = $data['compression_codec'] ?? null; @@ -496,83 +526,83 @@ public function setPlacement($placement) } /** - * Gets format_version + * Gets response_condition * - * @return int|null + * @return string|null */ - public function getFormatVersion() + public function getResponseCondition() { - return $this->container['format_version']; + return $this->container['response_condition']; } /** - * Sets format_version + * Sets response_condition * - * @param int|null $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. + * @param string|null $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. * * @return self */ - public function setFormatVersion($format_version) + public function setResponseCondition($response_condition) { - $allowedValues = $this->getFormatVersionAllowableValues(); - if (!is_null($format_version) && !in_array($format_version, $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value '%s' for 'format_version', must be one of '%s'", - $format_version, - implode("', '", $allowedValues) - ) - ); - } - $this->container['format_version'] = $format_version; + $this->container['response_condition'] = $response_condition; return $this; } /** - * Gets response_condition + * Gets format * * @return string|null */ - public function getResponseCondition() + public function getFormat() { - return $this->container['response_condition']; + return $this->container['format']; } /** - * Sets response_condition + * Sets format * - * @param string|null $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. + * @param string|null $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). * * @return self */ - public function setResponseCondition($response_condition) + public function setFormat($format) { - $this->container['response_condition'] = $response_condition; + $this->container['format'] = $format; return $this; } /** - * Gets format + * Gets format_version * - * @return string|null + * @return int|null */ - public function getFormat() + public function getFormatVersion() { - return $this->container['format']; + return $this->container['format_version']; } /** - * Sets format + * Sets format_version * - * @param string|null $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). + * @param int|null $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. * * @return self */ - public function setFormat($format) + public function setFormatVersion($format_version) { - $this->container['format'] = $format; + $allowedValues = $this->getFormatVersionAllowableValues(); + if (!is_null($format_version) && !in_array($format_version, $allowedValues, true)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value '%s' for 'format_version', must be one of '%s'", + $format_version, + implode("', '", $allowedValues) + ) + ); + } + $this->container['format_version'] = $format_version; return $this; } @@ -673,6 +703,126 @@ public function setTlsHostname($tls_hostname) return $this; } + /** + * Gets created_at + * + * @return \DateTime|null + */ + public function getCreatedAt() + { + return $this->container['created_at']; + } + + /** + * Sets created_at + * + * @param \DateTime|null $created_at Date and time in ISO 8601 format. + * + * @return self + */ + public function setCreatedAt($created_at) + { + $this->container['created_at'] = $created_at; + + return $this; + } + + /** + * Gets deleted_at + * + * @return \DateTime|null + */ + public function getDeletedAt() + { + return $this->container['deleted_at']; + } + + /** + * Sets deleted_at + * + * @param \DateTime|null $deleted_at Date and time in ISO 8601 format. + * + * @return self + */ + public function setDeletedAt($deleted_at) + { + $this->container['deleted_at'] = $deleted_at; + + return $this; + } + + /** + * Gets updated_at + * + * @return \DateTime|null + */ + public function getUpdatedAt() + { + return $this->container['updated_at']; + } + + /** + * Sets updated_at + * + * @param \DateTime|null $updated_at Date and time in ISO 8601 format. + * + * @return self + */ + public function setUpdatedAt($updated_at) + { + $this->container['updated_at'] = $updated_at; + + return $this; + } + + /** + * Gets service_id + * + * @return string|null + */ + public function getServiceId() + { + return $this->container['service_id']; + } + + /** + * Sets service_id + * + * @param string|null $service_id service_id + * + * @return self + */ + public function setServiceId($service_id) + { + $this->container['service_id'] = $service_id; + + return $this; + } + + /** + * Gets version + * + * @return string|null + */ + public function getVersion() + { + return $this->container['version']; + } + + /** + * Sets version + * + * @param string|null $version version + * + * @return self + */ + public function setVersion($version) + { + $this->container['version'] = $version; + + return $this; + } + /** * Gets topic * diff --git a/lib/Model/LoggingKinesis.php b/lib/Model/LoggingKinesisAdditional.php similarity index 92% rename from lib/Model/LoggingKinesis.php rename to lib/Model/LoggingKinesisAdditional.php index e18f4600..c6fe07ed 100644 --- a/lib/Model/LoggingKinesis.php +++ b/lib/Model/LoggingKinesisAdditional.php @@ -1,6 +1,6 @@ 'string', 'placement' => '\Fastly\Model\LoggingPlacement', - 'format_version' => '\Fastly\Model\LoggingFormatVersion', 'format' => 'string', 'topic' => 'string', 'region' => '\Fastly\Model\AwsRegion', @@ -74,7 +73,6 @@ class LoggingKinesis implements ModelInterface, ArrayAccess, \JsonSerializable protected static $fastlyFormats = [ 'name' => null, 'placement' => null, - 'format_version' => null, 'format' => null, 'topic' => null, 'region' => null, @@ -112,7 +110,6 @@ public static function fastlyFormats() protected static $attributeMap = [ 'name' => 'name', 'placement' => 'placement', - 'format_version' => 'format_version', 'format' => 'format', 'topic' => 'topic', 'region' => 'region', @@ -129,7 +126,6 @@ public static function fastlyFormats() protected static $setters = [ 'name' => 'setName', 'placement' => 'setPlacement', - 'format_version' => 'setFormatVersion', 'format' => 'setFormat', 'topic' => 'setTopic', 'region' => 'setRegion', @@ -146,7 +142,6 @@ public static function fastlyFormats() protected static $getters = [ 'name' => 'getName', 'placement' => 'getPlacement', - 'format_version' => 'getFormatVersion', 'format' => 'getFormat', 'topic' => 'getTopic', 'region' => 'getRegion', @@ -214,7 +209,6 @@ public function __construct(array $data = null) { $this->container['name'] = $data['name'] ?? null; $this->container['placement'] = $data['placement'] ?? null; - $this->container['format_version'] = $data['format_version'] ?? null; $this->container['format'] = $data['format'] ?? '{"timestamp":"%{begin:%Y-%m-%dT%H:%M:%S}t","time_elapsed":"%{time.elapsed.usec}V","is_tls":"%{if(req.is_ssl, \"true\", \"false\")}V","client_ip":"%{req.http.Fastly-Client-IP}V","geo_city":"%{client.geo.city}V","geo_country_code":"%{client.geo.country_code}V","request":"%{req.request}V","host":"%{req.http.Fastly-Orig-Host}V","url":"%{json.escape(req.url)}V","request_referer":"%{json.escape(req.http.Referer)}V","request_user_agent":"%{json.escape(req.http.User-Agent)}V","request_accept_language":"%{json.escape(req.http.Accept-Language)}V","request_accept_charset":"%{json.escape(req.http.Accept-Charset)}V","cache_status":"%{regsub(fastly_info.state, \"^(HIT-(SYNTH)|(HITPASS|HIT|MISS|PASS|ERROR|PIPE)).*\", \"\\2\\3\") }V"}'; $this->container['topic'] = $data['topic'] ?? null; $this->container['region'] = $data['region'] ?? null; @@ -295,30 +289,6 @@ public function setPlacement($placement) return $this; } - /** - * Gets format_version - * - * @return \Fastly\Model\LoggingFormatVersion|null - */ - public function getFormatVersion() - { - return $this->container['format_version']; - } - - /** - * Sets format_version - * - * @param \Fastly\Model\LoggingFormatVersion|null $format_version format_version - * - * @return self - */ - public function setFormatVersion($format_version) - { - $this->container['format_version'] = $format_version; - - return $this; - } - /** * Gets format * diff --git a/lib/Model/LoggingKinesisResponse.php b/lib/Model/LoggingKinesisResponse.php index 26e255b8..15e2695d 100644 --- a/lib/Model/LoggingKinesisResponse.php +++ b/lib/Model/LoggingKinesisResponse.php @@ -55,18 +55,18 @@ class LoggingKinesisResponse implements ModelInterface, ArrayAccess, \JsonSerial protected static $fastlyTypes = [ 'name' => 'string', 'placement' => '\Fastly\Model\LoggingPlacement', - 'format_version' => '\Fastly\Model\LoggingFormatVersion', 'format' => 'string', 'topic' => 'string', 'region' => '\Fastly\Model\AwsRegion', 'secret_key' => 'string', 'access_key' => 'string', 'iam_role' => 'string', + 'format_version' => 'string', 'created_at' => '\DateTime', 'deleted_at' => '\DateTime', 'updated_at' => '\DateTime', 'service_id' => 'string', - 'version' => 'int' + 'version' => 'string' ]; /** @@ -79,13 +79,13 @@ class LoggingKinesisResponse implements ModelInterface, ArrayAccess, \JsonSerial protected static $fastlyFormats = [ 'name' => null, 'placement' => null, - 'format_version' => null, 'format' => null, 'topic' => null, 'region' => null, 'secret_key' => null, 'access_key' => null, 'iam_role' => null, + 'format_version' => null, 'created_at' => 'date-time', 'deleted_at' => 'date-time', 'updated_at' => 'date-time', @@ -122,13 +122,13 @@ public static function fastlyFormats() protected static $attributeMap = [ 'name' => 'name', 'placement' => 'placement', - 'format_version' => 'format_version', 'format' => 'format', 'topic' => 'topic', 'region' => 'region', 'secret_key' => 'secret_key', 'access_key' => 'access_key', 'iam_role' => 'iam_role', + 'format_version' => 'format_version', 'created_at' => 'created_at', 'deleted_at' => 'deleted_at', 'updated_at' => 'updated_at', @@ -144,13 +144,13 @@ public static function fastlyFormats() protected static $setters = [ 'name' => 'setName', 'placement' => 'setPlacement', - 'format_version' => 'setFormatVersion', 'format' => 'setFormat', 'topic' => 'setTopic', 'region' => 'setRegion', 'secret_key' => 'setSecretKey', 'access_key' => 'setAccessKey', 'iam_role' => 'setIamRole', + 'format_version' => 'setFormatVersion', 'created_at' => 'setCreatedAt', 'deleted_at' => 'setDeletedAt', 'updated_at' => 'setUpdatedAt', @@ -166,13 +166,13 @@ public static function fastlyFormats() protected static $getters = [ 'name' => 'getName', 'placement' => 'getPlacement', - 'format_version' => 'getFormatVersion', 'format' => 'getFormat', 'topic' => 'getTopic', 'region' => 'getRegion', 'secret_key' => 'getSecretKey', 'access_key' => 'getAccessKey', 'iam_role' => 'getIamRole', + 'format_version' => 'getFormatVersion', 'created_at' => 'getCreatedAt', 'deleted_at' => 'getDeletedAt', 'updated_at' => 'getUpdatedAt', @@ -221,6 +221,21 @@ public function getModelName() return self::$fastlyModelName; } + const FORMAT_VERSION_v1 = '1'; + const FORMAT_VERSION_v2 = '2'; + + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getFormatVersionAllowableValues() + { + return [ + self::FORMAT_VERSION_v1, + self::FORMAT_VERSION_v2, + ]; + } /** * Associative array for storing property values @@ -239,13 +254,13 @@ public function __construct(array $data = null) { $this->container['name'] = $data['name'] ?? null; $this->container['placement'] = $data['placement'] ?? null; - $this->container['format_version'] = $data['format_version'] ?? null; $this->container['format'] = $data['format'] ?? '{"timestamp":"%{begin:%Y-%m-%dT%H:%M:%S}t","time_elapsed":"%{time.elapsed.usec}V","is_tls":"%{if(req.is_ssl, \"true\", \"false\")}V","client_ip":"%{req.http.Fastly-Client-IP}V","geo_city":"%{client.geo.city}V","geo_country_code":"%{client.geo.country_code}V","request":"%{req.request}V","host":"%{req.http.Fastly-Orig-Host}V","url":"%{json.escape(req.url)}V","request_referer":"%{json.escape(req.http.Referer)}V","request_user_agent":"%{json.escape(req.http.User-Agent)}V","request_accept_language":"%{json.escape(req.http.Accept-Language)}V","request_accept_charset":"%{json.escape(req.http.Accept-Charset)}V","cache_status":"%{regsub(fastly_info.state, \"^(HIT-(SYNTH)|(HITPASS|HIT|MISS|PASS|ERROR|PIPE)).*\", \"\\2\\3\") }V"}'; $this->container['topic'] = $data['topic'] ?? null; $this->container['region'] = $data['region'] ?? null; $this->container['secret_key'] = $data['secret_key'] ?? null; $this->container['access_key'] = $data['access_key'] ?? null; $this->container['iam_role'] = $data['iam_role'] ?? null; + $this->container['format_version'] = $data['format_version'] ?? '2'; $this->container['created_at'] = $data['created_at'] ?? null; $this->container['deleted_at'] = $data['deleted_at'] ?? null; $this->container['updated_at'] = $data['updated_at'] ?? null; @@ -262,6 +277,15 @@ public function listInvalidProperties() { $invalidProperties = []; + $allowedValues = $this->getFormatVersionAllowableValues(); + if (!is_null($this->container['format_version']) && !in_array($this->container['format_version'], $allowedValues, true)) { + $invalidProperties[] = sprintf( + "invalid value '%s' for 'format_version', must be one of '%s'", + $this->container['format_version'], + implode("', '", $allowedValues) + ); + } + return $invalidProperties; } @@ -325,30 +349,6 @@ public function setPlacement($placement) return $this; } - /** - * Gets format_version - * - * @return \Fastly\Model\LoggingFormatVersion|null - */ - public function getFormatVersion() - { - return $this->container['format_version']; - } - - /** - * Sets format_version - * - * @param \Fastly\Model\LoggingFormatVersion|null $format_version format_version - * - * @return self - */ - public function setFormatVersion($format_version) - { - $this->container['format_version'] = $format_version; - - return $this; - } - /** * Gets format * @@ -493,6 +493,40 @@ public function setIamRole($iam_role) return $this; } + /** + * Gets format_version + * + * @return string|null + */ + public function getFormatVersion() + { + return $this->container['format_version']; + } + + /** + * Sets format_version + * + * @param string|null $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. + * + * @return self + */ + public function setFormatVersion($format_version) + { + $allowedValues = $this->getFormatVersionAllowableValues(); + if (!is_null($format_version) && !in_array($format_version, $allowedValues, true)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value '%s' for 'format_version', must be one of '%s'", + $format_version, + implode("', '", $allowedValues) + ) + ); + } + $this->container['format_version'] = $format_version; + + return $this; + } + /** * Gets created_at * @@ -592,7 +626,7 @@ public function setServiceId($service_id) /** * Gets version * - * @return int|null + * @return string|null */ public function getVersion() { @@ -602,7 +636,7 @@ public function getVersion() /** * Sets version * - * @param int|null $version version + * @param string|null $version version * * @return self */ diff --git a/lib/Model/LoggingLogentries.php b/lib/Model/LoggingLogentries.php deleted file mode 100644 index 20f6f959..00000000 --- a/lib/Model/LoggingLogentries.php +++ /dev/null @@ -1,668 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class LoggingLogentries implements ModelInterface, ArrayAccess, \JsonSerializable -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $fastlyModelName = 'logging_logentries'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $fastlyTypes = [ - 'name' => 'string', - 'placement' => 'string', - 'format_version' => 'int', - 'response_condition' => 'string', - 'format' => 'string', - 'port' => 'int', - 'token' => 'string', - 'use_tls' => '\Fastly\Model\LoggingUseTls', - 'region' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $fastlyFormats = [ - 'name' => null, - 'placement' => null, - 'format_version' => null, - 'response_condition' => null, - 'format' => null, - 'port' => null, - 'token' => null, - 'use_tls' => null, - 'region' => null - ]; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @return array - */ - public static function fastlyTypes() - { - return self::$fastlyTypes; - } - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @return array - */ - public static function fastlyFormats() - { - return self::$fastlyFormats; - } - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'name' => 'name', - 'placement' => 'placement', - 'format_version' => 'format_version', - 'response_condition' => 'response_condition', - 'format' => 'format', - 'port' => 'port', - 'token' => 'token', - 'use_tls' => 'use_tls', - 'region' => 'region' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'name' => 'setName', - 'placement' => 'setPlacement', - 'format_version' => 'setFormatVersion', - 'response_condition' => 'setResponseCondition', - 'format' => 'setFormat', - 'port' => 'setPort', - 'token' => 'setToken', - 'use_tls' => 'setUseTls', - 'region' => 'setRegion' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'name' => 'getName', - 'placement' => 'getPlacement', - 'format_version' => 'getFormatVersion', - 'response_condition' => 'getResponseCondition', - 'format' => 'getFormat', - 'port' => 'getPort', - 'token' => 'getToken', - 'use_tls' => 'getUseTls', - 'region' => 'getRegion' - ]; - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @return array - */ - public static function attributeMap() - { - return self::$attributeMap; - } - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @return array - */ - public static function setters() - { - return self::$setters; - } - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @return array - */ - public static function getters() - { - return self::$getters; - } - - /** - * The original name of the model. - * - * @return string - */ - public function getModelName() - { - return self::$fastlyModelName; - } - - const PLACEMENT_NONE = 'none'; - const PLACEMENT_WAF_DEBUG = 'waf_debug'; - const PLACEMENT_NULL = 'null'; - const FORMAT_VERSION_v1 = 1; - const FORMAT_VERSION_v2 = 2; - const REGION_US = 'US'; - const REGION_US_2 = 'US-2'; - const REGION_US_3 = 'US-3'; - const REGION_EU = 'EU'; - const REGION_CA = 'CA'; - const REGION_AU = 'AU'; - const REGION_AP = 'AP'; - - /** - * Gets allowable values of the enum - * - * @return string[] - */ - public function getPlacementAllowableValues() - { - return [ - self::PLACEMENT_NONE, - self::PLACEMENT_WAF_DEBUG, - self::PLACEMENT_NULL, - ]; - } - - /** - * Gets allowable values of the enum - * - * @return string[] - */ - public function getFormatVersionAllowableValues() - { - return [ - self::FORMAT_VERSION_v1, - self::FORMAT_VERSION_v2, - ]; - } - - /** - * Gets allowable values of the enum - * - * @return string[] - */ - public function getRegionAllowableValues() - { - return [ - self::REGION_US, - self::REGION_US_2, - self::REGION_US_3, - self::REGION_EU, - self::REGION_CA, - self::REGION_AU, - self::REGION_AP, - ]; - } - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['name'] = $data['name'] ?? null; - $this->container['placement'] = $data['placement'] ?? null; - $this->container['format_version'] = $data['format_version'] ?? self::FORMAT_VERSION_v2; - $this->container['response_condition'] = $data['response_condition'] ?? null; - $this->container['format'] = $data['format'] ?? '%h %l %u %t "%r" %>s %b'; - $this->container['port'] = $data['port'] ?? 20000; - $this->container['token'] = $data['token'] ?? null; - $this->container['use_tls'] = $data['use_tls'] ?? null; - $this->container['region'] = $data['region'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - - $allowedValues = $this->getPlacementAllowableValues(); - if (!is_null($this->container['placement']) && !in_array($this->container['placement'], $allowedValues, true)) { - $invalidProperties[] = sprintf( - "invalid value '%s' for 'placement', must be one of '%s'", - $this->container['placement'], - implode("', '", $allowedValues) - ); - } - - $allowedValues = $this->getFormatVersionAllowableValues(); - if (!is_null($this->container['format_version']) && !in_array($this->container['format_version'], $allowedValues, true)) { - $invalidProperties[] = sprintf( - "invalid value '%s' for 'format_version', must be one of '%s'", - $this->container['format_version'], - implode("', '", $allowedValues) - ); - } - - $allowedValues = $this->getRegionAllowableValues(); - if (!is_null($this->container['region']) && !in_array($this->container['region'], $allowedValues, true)) { - $invalidProperties[] = sprintf( - "invalid value '%s' for 'region', must be one of '%s'", - $this->container['region'], - implode("', '", $allowedValues) - ); - } - - return $invalidProperties; - } - - /** - * Validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - return count($this->listInvalidProperties()) === 0; - } - - - /** - * Gets name - * - * @return string|null - */ - public function getName() - { - return $this->container['name']; - } - - /** - * Sets name - * - * @param string|null $name The name for the real-time logging configuration. - * - * @return self - */ - public function setName($name) - { - $this->container['name'] = $name; - - return $this; - } - - /** - * Gets placement - * - * @return string|null - */ - public function getPlacement() - { - return $this->container['placement']; - } - - /** - * Sets placement - * - * @param string|null $placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. - * - * @return self - */ - public function setPlacement($placement) - { - $allowedValues = $this->getPlacementAllowableValues(); - if (!is_null($placement) && !in_array($placement, $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value '%s' for 'placement', must be one of '%s'", - $placement, - implode("', '", $allowedValues) - ) - ); - } - $this->container['placement'] = $placement; - - return $this; - } - - /** - * Gets format_version - * - * @return int|null - */ - public function getFormatVersion() - { - return $this->container['format_version']; - } - - /** - * Sets format_version - * - * @param int|null $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. - * - * @return self - */ - public function setFormatVersion($format_version) - { - $allowedValues = $this->getFormatVersionAllowableValues(); - if (!is_null($format_version) && !in_array($format_version, $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value '%s' for 'format_version', must be one of '%s'", - $format_version, - implode("', '", $allowedValues) - ) - ); - } - $this->container['format_version'] = $format_version; - - return $this; - } - - /** - * Gets response_condition - * - * @return string|null - */ - public function getResponseCondition() - { - return $this->container['response_condition']; - } - - /** - * Sets response_condition - * - * @param string|null $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. - * - * @return self - */ - public function setResponseCondition($response_condition) - { - $this->container['response_condition'] = $response_condition; - - return $this; - } - - /** - * Gets format - * - * @return string|null - */ - public function getFormat() - { - return $this->container['format']; - } - - /** - * Sets format - * - * @param string|null $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). - * - * @return self - */ - public function setFormat($format) - { - $this->container['format'] = $format; - - return $this; - } - - /** - * Gets port - * - * @return int|null - */ - public function getPort() - { - return $this->container['port']; - } - - /** - * Sets port - * - * @param int|null $port The port number. - * - * @return self - */ - public function setPort($port) - { - $this->container['port'] = $port; - - return $this; - } - - /** - * Gets token - * - * @return string|null - */ - public function getToken() - { - return $this->container['token']; - } - - /** - * Sets token - * - * @param string|null $token Use token based authentication ([https://logentries.com/doc/input-token/](https://logentries.com/doc/input-token/)). - * - * @return self - */ - public function setToken($token) - { - $this->container['token'] = $token; - - return $this; - } - - /** - * Gets use_tls - * - * @return \Fastly\Model\LoggingUseTls|null - */ - public function getUseTls() - { - return $this->container['use_tls']; - } - - /** - * Sets use_tls - * - * @param \Fastly\Model\LoggingUseTls|null $use_tls use_tls - * - * @return self - */ - public function setUseTls($use_tls) - { - $this->container['use_tls'] = $use_tls; - - return $this; - } - - /** - * Gets region - * - * @return string|null - */ - public function getRegion() - { - return $this->container['region']; - } - - /** - * Sets region - * - * @param string|null $region The region to which to stream logs. - * - * @return self - */ - public function setRegion($region) - { - $allowedValues = $this->getRegionAllowableValues(); - if (!is_null($region) && !in_array($region, $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value '%s' for 'region', must be one of '%s'", - $region, - implode("', '", $allowedValues) - ) - ); - } - $this->container['region'] = $region; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * - * @param integer $offset Offset - * - * @return boolean - */ - public function offsetExists($offset): bool - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * - * @param integer $offset Offset - * - * @return mixed|null - */ - public function offsetGet($offset): mixed - { - return $this->container[$offset] ?? null; - } - - /** - * Sets value based on offset. - * - * @param int|null $offset Offset - * @param mixed $value Value to be set - * - * @return void - */ - public function offsetSet($offset, $value): void - { - if (is_null($offset)) { - $this->container[] = $value; - } else { - $this->container[$offset] = $value; - } - } - - /** - * Unsets offset. - * - * @param integer $offset Offset - * - * @return void - */ - public function offsetUnset($offset): void - { - unset($this->container[$offset]); - } - - /** - * Serializes the object to a value that can be serialized natively by json_encode(). - * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php - * - * @return mixed Returns data which can be serialized by json_encode(), which is a value - * of any type other than a resource. - */ - public function jsonSerialize(): mixed - { - return ObjectSerializer::sanitizeForSerialization($this); - } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString() - { - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } - - /** - * Gets a header-safe presentation of the object - * - * @return string - */ - public function toHeaderValue() - { - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/lib/Model/LoggingLogentriesAllOf.php b/lib/Model/LoggingLogentriesAdditional.php similarity index 97% rename from lib/Model/LoggingLogentriesAllOf.php rename to lib/Model/LoggingLogentriesAdditional.php index d62e6e33..d3dacf9b 100644 --- a/lib/Model/LoggingLogentriesAllOf.php +++ b/lib/Model/LoggingLogentriesAdditional.php @@ -1,6 +1,6 @@ 'string', 'placement' => 'string', - 'format_version' => 'int', 'response_condition' => 'string', 'format' => 'string', + 'format_version' => 'string', 'port' => 'int', 'token' => 'string', 'use_tls' => '\Fastly\Model\LoggingUseTls', @@ -66,7 +66,7 @@ class LoggingLogentriesResponse implements ModelInterface, ArrayAccess, \JsonSer 'deleted_at' => '\DateTime', 'updated_at' => '\DateTime', 'service_id' => 'string', - 'version' => 'int' + 'version' => 'string' ]; /** @@ -79,9 +79,9 @@ class LoggingLogentriesResponse implements ModelInterface, ArrayAccess, \JsonSer protected static $fastlyFormats = [ 'name' => null, 'placement' => null, - 'format_version' => null, 'response_condition' => null, 'format' => null, + 'format_version' => null, 'port' => null, 'token' => null, 'use_tls' => null, @@ -122,9 +122,9 @@ public static function fastlyFormats() protected static $attributeMap = [ 'name' => 'name', 'placement' => 'placement', - 'format_version' => 'format_version', 'response_condition' => 'response_condition', 'format' => 'format', + 'format_version' => 'format_version', 'port' => 'port', 'token' => 'token', 'use_tls' => 'use_tls', @@ -144,9 +144,9 @@ public static function fastlyFormats() protected static $setters = [ 'name' => 'setName', 'placement' => 'setPlacement', - 'format_version' => 'setFormatVersion', 'response_condition' => 'setResponseCondition', 'format' => 'setFormat', + 'format_version' => 'setFormatVersion', 'port' => 'setPort', 'token' => 'setToken', 'use_tls' => 'setUseTls', @@ -166,9 +166,9 @@ public static function fastlyFormats() protected static $getters = [ 'name' => 'getName', 'placement' => 'getPlacement', - 'format_version' => 'getFormatVersion', 'response_condition' => 'getResponseCondition', 'format' => 'getFormat', + 'format_version' => 'getFormatVersion', 'port' => 'getPort', 'token' => 'getToken', 'use_tls' => 'getUseTls', @@ -224,8 +224,8 @@ public function getModelName() const PLACEMENT_NONE = 'none'; const PLACEMENT_WAF_DEBUG = 'waf_debug'; const PLACEMENT_NULL = 'null'; - const FORMAT_VERSION_v1 = 1; - const FORMAT_VERSION_v2 = 2; + const FORMAT_VERSION_v1 = '1'; + const FORMAT_VERSION_v2 = '2'; const REGION_US = 'US'; const REGION_US_2 = 'US-2'; const REGION_US_3 = 'US-3'; @@ -296,9 +296,9 @@ public function __construct(array $data = null) { $this->container['name'] = $data['name'] ?? null; $this->container['placement'] = $data['placement'] ?? null; - $this->container['format_version'] = $data['format_version'] ?? self::FORMAT_VERSION_v2; $this->container['response_condition'] = $data['response_condition'] ?? null; $this->container['format'] = $data['format'] ?? '%h %l %u %t "%r" %>s %b'; + $this->container['format_version'] = $data['format_version'] ?? '2'; $this->container['port'] = $data['port'] ?? 20000; $this->container['token'] = $data['token'] ?? null; $this->container['use_tls'] = $data['use_tls'] ?? null; @@ -420,83 +420,83 @@ public function setPlacement($placement) } /** - * Gets format_version + * Gets response_condition * - * @return int|null + * @return string|null */ - public function getFormatVersion() + public function getResponseCondition() { - return $this->container['format_version']; + return $this->container['response_condition']; } /** - * Sets format_version + * Sets response_condition * - * @param int|null $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. + * @param string|null $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. * * @return self */ - public function setFormatVersion($format_version) + public function setResponseCondition($response_condition) { - $allowedValues = $this->getFormatVersionAllowableValues(); - if (!is_null($format_version) && !in_array($format_version, $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value '%s' for 'format_version', must be one of '%s'", - $format_version, - implode("', '", $allowedValues) - ) - ); - } - $this->container['format_version'] = $format_version; + $this->container['response_condition'] = $response_condition; return $this; } /** - * Gets response_condition + * Gets format * * @return string|null */ - public function getResponseCondition() + public function getFormat() { - return $this->container['response_condition']; + return $this->container['format']; } /** - * Sets response_condition + * Sets format * - * @param string|null $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. + * @param string|null $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). * * @return self */ - public function setResponseCondition($response_condition) + public function setFormat($format) { - $this->container['response_condition'] = $response_condition; + $this->container['format'] = $format; return $this; } /** - * Gets format + * Gets format_version * * @return string|null */ - public function getFormat() + public function getFormatVersion() { - return $this->container['format']; + return $this->container['format_version']; } /** - * Sets format + * Sets format_version * - * @param string|null $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). + * @param string|null $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. * * @return self */ - public function setFormat($format) + public function setFormatVersion($format_version) { - $this->container['format'] = $format; + $allowedValues = $this->getFormatVersionAllowableValues(); + if (!is_null($format_version) && !in_array($format_version, $allowedValues, true)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value '%s' for 'format_version', must be one of '%s'", + $format_version, + implode("', '", $allowedValues) + ) + ); + } + $this->container['format_version'] = $format_version; return $this; } @@ -706,7 +706,7 @@ public function setServiceId($service_id) /** * Gets version * - * @return int|null + * @return string|null */ public function getVersion() { @@ -716,7 +716,7 @@ public function getVersion() /** * Sets version * - * @param int|null $version version + * @param string|null $version version * * @return self */ diff --git a/lib/Model/LoggingLogglyAllOf.php b/lib/Model/LoggingLogglyAdditional.php similarity index 96% rename from lib/Model/LoggingLogglyAllOf.php rename to lib/Model/LoggingLogglyAdditional.php index 8e71d677..1377bbee 100644 --- a/lib/Model/LoggingLogglyAllOf.php +++ b/lib/Model/LoggingLogglyAdditional.php @@ -1,6 +1,6 @@ 'string', 'placement' => 'string', - 'format_version' => 'int', 'response_condition' => 'string', 'format' => 'string', + 'format_version' => 'string', 'token' => 'string', 'created_at' => '\DateTime', 'deleted_at' => '\DateTime', 'updated_at' => '\DateTime', 'service_id' => 'string', - 'version' => 'int' + 'version' => 'string' ]; /** @@ -76,9 +76,9 @@ class LoggingLogglyResponse implements ModelInterface, ArrayAccess, \JsonSeriali protected static $fastlyFormats = [ 'name' => null, 'placement' => null, - 'format_version' => null, 'response_condition' => null, 'format' => null, + 'format_version' => null, 'token' => null, 'created_at' => 'date-time', 'deleted_at' => 'date-time', @@ -116,9 +116,9 @@ public static function fastlyFormats() protected static $attributeMap = [ 'name' => 'name', 'placement' => 'placement', - 'format_version' => 'format_version', 'response_condition' => 'response_condition', 'format' => 'format', + 'format_version' => 'format_version', 'token' => 'token', 'created_at' => 'created_at', 'deleted_at' => 'deleted_at', @@ -135,9 +135,9 @@ public static function fastlyFormats() protected static $setters = [ 'name' => 'setName', 'placement' => 'setPlacement', - 'format_version' => 'setFormatVersion', 'response_condition' => 'setResponseCondition', 'format' => 'setFormat', + 'format_version' => 'setFormatVersion', 'token' => 'setToken', 'created_at' => 'setCreatedAt', 'deleted_at' => 'setDeletedAt', @@ -154,9 +154,9 @@ public static function fastlyFormats() protected static $getters = [ 'name' => 'getName', 'placement' => 'getPlacement', - 'format_version' => 'getFormatVersion', 'response_condition' => 'getResponseCondition', 'format' => 'getFormat', + 'format_version' => 'getFormatVersion', 'token' => 'getToken', 'created_at' => 'getCreatedAt', 'deleted_at' => 'getDeletedAt', @@ -209,8 +209,8 @@ public function getModelName() const PLACEMENT_NONE = 'none'; const PLACEMENT_WAF_DEBUG = 'waf_debug'; const PLACEMENT_NULL = 'null'; - const FORMAT_VERSION_v1 = 1; - const FORMAT_VERSION_v2 = 2; + const FORMAT_VERSION_v1 = '1'; + const FORMAT_VERSION_v2 = '2'; /** * Gets allowable values of the enum @@ -256,9 +256,9 @@ public function __construct(array $data = null) { $this->container['name'] = $data['name'] ?? null; $this->container['placement'] = $data['placement'] ?? null; - $this->container['format_version'] = $data['format_version'] ?? self::FORMAT_VERSION_v2; $this->container['response_condition'] = $data['response_condition'] ?? null; $this->container['format'] = $data['format'] ?? '%h %l %u %t "%r" %>s %b'; + $this->container['format_version'] = $data['format_version'] ?? '2'; $this->container['token'] = $data['token'] ?? null; $this->container['created_at'] = $data['created_at'] ?? null; $this->container['deleted_at'] = $data['deleted_at'] ?? null; @@ -368,83 +368,83 @@ public function setPlacement($placement) } /** - * Gets format_version + * Gets response_condition * - * @return int|null + * @return string|null */ - public function getFormatVersion() + public function getResponseCondition() { - return $this->container['format_version']; + return $this->container['response_condition']; } /** - * Sets format_version + * Sets response_condition * - * @param int|null $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. + * @param string|null $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. * * @return self */ - public function setFormatVersion($format_version) + public function setResponseCondition($response_condition) { - $allowedValues = $this->getFormatVersionAllowableValues(); - if (!is_null($format_version) && !in_array($format_version, $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value '%s' for 'format_version', must be one of '%s'", - $format_version, - implode("', '", $allowedValues) - ) - ); - } - $this->container['format_version'] = $format_version; + $this->container['response_condition'] = $response_condition; return $this; } /** - * Gets response_condition + * Gets format * * @return string|null */ - public function getResponseCondition() + public function getFormat() { - return $this->container['response_condition']; + return $this->container['format']; } /** - * Sets response_condition + * Sets format * - * @param string|null $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. + * @param string|null $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). * * @return self */ - public function setResponseCondition($response_condition) + public function setFormat($format) { - $this->container['response_condition'] = $response_condition; + $this->container['format'] = $format; return $this; } /** - * Gets format + * Gets format_version * * @return string|null */ - public function getFormat() + public function getFormatVersion() { - return $this->container['format']; + return $this->container['format_version']; } /** - * Sets format + * Sets format_version * - * @param string|null $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). + * @param string|null $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. * * @return self */ - public function setFormat($format) + public function setFormatVersion($format_version) { - $this->container['format'] = $format; + $allowedValues = $this->getFormatVersionAllowableValues(); + if (!is_null($format_version) && !in_array($format_version, $allowedValues, true)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value '%s' for 'format_version', must be one of '%s'", + $format_version, + implode("', '", $allowedValues) + ) + ); + } + $this->container['format_version'] = $format_version; return $this; } @@ -572,7 +572,7 @@ public function setServiceId($service_id) /** * Gets version * - * @return int|null + * @return string|null */ public function getVersion() { @@ -582,7 +582,7 @@ public function getVersion() /** * Sets version * - * @param int|null $version version + * @param string|null $version version * * @return self */ diff --git a/lib/Model/LoggingLogshuttleAllOf.php b/lib/Model/LoggingLogshuttleAdditional.php similarity index 96% rename from lib/Model/LoggingLogshuttleAllOf.php rename to lib/Model/LoggingLogshuttleAdditional.php index a237fec9..c8ade783 100644 --- a/lib/Model/LoggingLogshuttleAllOf.php +++ b/lib/Model/LoggingLogshuttleAdditional.php @@ -1,6 +1,6 @@ 'string', 'placement' => 'string', - 'format_version' => 'int', 'response_condition' => 'string', 'format' => 'string', + 'format_version' => 'string', 'token' => 'string', 'url' => 'string', 'created_at' => '\DateTime', 'deleted_at' => '\DateTime', 'updated_at' => '\DateTime', 'service_id' => 'string', - 'version' => 'int' + 'version' => 'string' ]; /** @@ -77,9 +77,9 @@ class LoggingLogshuttleResponse implements ModelInterface, ArrayAccess, \JsonSer protected static $fastlyFormats = [ 'name' => null, 'placement' => null, - 'format_version' => null, 'response_condition' => null, 'format' => null, + 'format_version' => null, 'token' => null, 'url' => null, 'created_at' => 'date-time', @@ -118,9 +118,9 @@ public static function fastlyFormats() protected static $attributeMap = [ 'name' => 'name', 'placement' => 'placement', - 'format_version' => 'format_version', 'response_condition' => 'response_condition', 'format' => 'format', + 'format_version' => 'format_version', 'token' => 'token', 'url' => 'url', 'created_at' => 'created_at', @@ -138,9 +138,9 @@ public static function fastlyFormats() protected static $setters = [ 'name' => 'setName', 'placement' => 'setPlacement', - 'format_version' => 'setFormatVersion', 'response_condition' => 'setResponseCondition', 'format' => 'setFormat', + 'format_version' => 'setFormatVersion', 'token' => 'setToken', 'url' => 'setUrl', 'created_at' => 'setCreatedAt', @@ -158,9 +158,9 @@ public static function fastlyFormats() protected static $getters = [ 'name' => 'getName', 'placement' => 'getPlacement', - 'format_version' => 'getFormatVersion', 'response_condition' => 'getResponseCondition', 'format' => 'getFormat', + 'format_version' => 'getFormatVersion', 'token' => 'getToken', 'url' => 'getUrl', 'created_at' => 'getCreatedAt', @@ -214,8 +214,8 @@ public function getModelName() const PLACEMENT_NONE = 'none'; const PLACEMENT_WAF_DEBUG = 'waf_debug'; const PLACEMENT_NULL = 'null'; - const FORMAT_VERSION_v1 = 1; - const FORMAT_VERSION_v2 = 2; + const FORMAT_VERSION_v1 = '1'; + const FORMAT_VERSION_v2 = '2'; /** * Gets allowable values of the enum @@ -261,9 +261,9 @@ public function __construct(array $data = null) { $this->container['name'] = $data['name'] ?? null; $this->container['placement'] = $data['placement'] ?? null; - $this->container['format_version'] = $data['format_version'] ?? self::FORMAT_VERSION_v2; $this->container['response_condition'] = $data['response_condition'] ?? null; $this->container['format'] = $data['format'] ?? '%h %l %u %t "%r" %>s %b'; + $this->container['format_version'] = $data['format_version'] ?? '2'; $this->container['token'] = $data['token'] ?? null; $this->container['url'] = $data['url'] ?? null; $this->container['created_at'] = $data['created_at'] ?? null; @@ -374,83 +374,83 @@ public function setPlacement($placement) } /** - * Gets format_version + * Gets response_condition * - * @return int|null + * @return string|null */ - public function getFormatVersion() + public function getResponseCondition() { - return $this->container['format_version']; + return $this->container['response_condition']; } /** - * Sets format_version + * Sets response_condition * - * @param int|null $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. + * @param string|null $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. * * @return self */ - public function setFormatVersion($format_version) + public function setResponseCondition($response_condition) { - $allowedValues = $this->getFormatVersionAllowableValues(); - if (!is_null($format_version) && !in_array($format_version, $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value '%s' for 'format_version', must be one of '%s'", - $format_version, - implode("', '", $allowedValues) - ) - ); - } - $this->container['format_version'] = $format_version; + $this->container['response_condition'] = $response_condition; return $this; } /** - * Gets response_condition + * Gets format * * @return string|null */ - public function getResponseCondition() + public function getFormat() { - return $this->container['response_condition']; + return $this->container['format']; } /** - * Sets response_condition + * Sets format * - * @param string|null $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. + * @param string|null $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). * * @return self */ - public function setResponseCondition($response_condition) + public function setFormat($format) { - $this->container['response_condition'] = $response_condition; + $this->container['format'] = $format; return $this; } /** - * Gets format + * Gets format_version * * @return string|null */ - public function getFormat() + public function getFormatVersion() { - return $this->container['format']; + return $this->container['format_version']; } /** - * Sets format + * Sets format_version * - * @param string|null $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). + * @param string|null $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. * * @return self */ - public function setFormat($format) + public function setFormatVersion($format_version) { - $this->container['format'] = $format; + $allowedValues = $this->getFormatVersionAllowableValues(); + if (!is_null($format_version) && !in_array($format_version, $allowedValues, true)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value '%s' for 'format_version', must be one of '%s'", + $format_version, + implode("', '", $allowedValues) + ) + ); + } + $this->container['format_version'] = $format_version; return $this; } @@ -602,7 +602,7 @@ public function setServiceId($service_id) /** * Gets version * - * @return int|null + * @return string|null */ public function getVersion() { @@ -612,7 +612,7 @@ public function getVersion() /** * Sets version * - * @param int|null $version version + * @param string|null $version version * * @return self */ diff --git a/lib/Model/LoggingNewrelic.php b/lib/Model/LoggingNewrelic.php deleted file mode 100644 index 18f0a0dd..00000000 --- a/lib/Model/LoggingNewrelic.php +++ /dev/null @@ -1,598 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class LoggingNewrelic implements ModelInterface, ArrayAccess, \JsonSerializable -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $fastlyModelName = 'logging_newrelic'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $fastlyTypes = [ - 'name' => 'string', - 'placement' => 'string', - 'format_version' => 'int', - 'response_condition' => 'string', - 'format' => 'string', - 'token' => 'string', - 'region' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $fastlyFormats = [ - 'name' => null, - 'placement' => null, - 'format_version' => null, - 'response_condition' => null, - 'format' => null, - 'token' => null, - 'region' => null - ]; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @return array - */ - public static function fastlyTypes() - { - return self::$fastlyTypes; - } - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @return array - */ - public static function fastlyFormats() - { - return self::$fastlyFormats; - } - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'name' => 'name', - 'placement' => 'placement', - 'format_version' => 'format_version', - 'response_condition' => 'response_condition', - 'format' => 'format', - 'token' => 'token', - 'region' => 'region' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'name' => 'setName', - 'placement' => 'setPlacement', - 'format_version' => 'setFormatVersion', - 'response_condition' => 'setResponseCondition', - 'format' => 'setFormat', - 'token' => 'setToken', - 'region' => 'setRegion' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'name' => 'getName', - 'placement' => 'getPlacement', - 'format_version' => 'getFormatVersion', - 'response_condition' => 'getResponseCondition', - 'format' => 'getFormat', - 'token' => 'getToken', - 'region' => 'getRegion' - ]; - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @return array - */ - public static function attributeMap() - { - return self::$attributeMap; - } - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @return array - */ - public static function setters() - { - return self::$setters; - } - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @return array - */ - public static function getters() - { - return self::$getters; - } - - /** - * The original name of the model. - * - * @return string - */ - public function getModelName() - { - return self::$fastlyModelName; - } - - const PLACEMENT_NONE = 'none'; - const PLACEMENT_WAF_DEBUG = 'waf_debug'; - const PLACEMENT_NULL = 'null'; - const FORMAT_VERSION_v1 = 1; - const FORMAT_VERSION_v2 = 2; - const REGION_US = 'US'; - const REGION_EU = 'EU'; - - /** - * Gets allowable values of the enum - * - * @return string[] - */ - public function getPlacementAllowableValues() - { - return [ - self::PLACEMENT_NONE, - self::PLACEMENT_WAF_DEBUG, - self::PLACEMENT_NULL, - ]; - } - - /** - * Gets allowable values of the enum - * - * @return string[] - */ - public function getFormatVersionAllowableValues() - { - return [ - self::FORMAT_VERSION_v1, - self::FORMAT_VERSION_v2, - ]; - } - - /** - * Gets allowable values of the enum - * - * @return string[] - */ - public function getRegionAllowableValues() - { - return [ - self::REGION_US, - self::REGION_EU, - ]; - } - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['name'] = $data['name'] ?? null; - $this->container['placement'] = $data['placement'] ?? null; - $this->container['format_version'] = $data['format_version'] ?? self::FORMAT_VERSION_v2; - $this->container['response_condition'] = $data['response_condition'] ?? null; - $this->container['format'] = $data['format'] ?? '{"timestamp":"%{begin:%Y-%m-%dT%H:%M:%S}t","time_elapsed":"%{time.elapsed.usec}V","is_tls":"%{if(req.is_ssl, \"true\", \"false\")}V","client_ip":"%{req.http.Fastly-Client-IP}V","geo_city":"%{client.geo.city}V","geo_country_code":"%{client.geo.country_code}V","request":"%{req.request}V","host":"%{req.http.Fastly-Orig-Host}V","url":"%{json.escape(req.url)}V","request_referer":"%{json.escape(req.http.Referer)}V","request_user_agent":"%{json.escape(req.http.User-Agent)}V","request_accept_language":"%{json.escape(req.http.Accept-Language)}V","request_accept_charset":"%{json.escape(req.http.Accept-Charset)}V","cache_status":"%{regsub(fastly_info.state, \"^(HIT-(SYNTH)|(HITPASS|HIT|MISS|PASS|ERROR|PIPE)).*\", \"\\2\\3\") }V"}'; - $this->container['token'] = $data['token'] ?? null; - $this->container['region'] = $data['region'] ?? 'US'; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - - $allowedValues = $this->getPlacementAllowableValues(); - if (!is_null($this->container['placement']) && !in_array($this->container['placement'], $allowedValues, true)) { - $invalidProperties[] = sprintf( - "invalid value '%s' for 'placement', must be one of '%s'", - $this->container['placement'], - implode("', '", $allowedValues) - ); - } - - $allowedValues = $this->getFormatVersionAllowableValues(); - if (!is_null($this->container['format_version']) && !in_array($this->container['format_version'], $allowedValues, true)) { - $invalidProperties[] = sprintf( - "invalid value '%s' for 'format_version', must be one of '%s'", - $this->container['format_version'], - implode("', '", $allowedValues) - ); - } - - $allowedValues = $this->getRegionAllowableValues(); - if (!is_null($this->container['region']) && !in_array($this->container['region'], $allowedValues, true)) { - $invalidProperties[] = sprintf( - "invalid value '%s' for 'region', must be one of '%s'", - $this->container['region'], - implode("', '", $allowedValues) - ); - } - - return $invalidProperties; - } - - /** - * Validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - return count($this->listInvalidProperties()) === 0; - } - - - /** - * Gets name - * - * @return string|null - */ - public function getName() - { - return $this->container['name']; - } - - /** - * Sets name - * - * @param string|null $name The name for the real-time logging configuration. - * - * @return self - */ - public function setName($name) - { - $this->container['name'] = $name; - - return $this; - } - - /** - * Gets placement - * - * @return string|null - */ - public function getPlacement() - { - return $this->container['placement']; - } - - /** - * Sets placement - * - * @param string|null $placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. - * - * @return self - */ - public function setPlacement($placement) - { - $allowedValues = $this->getPlacementAllowableValues(); - if (!is_null($placement) && !in_array($placement, $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value '%s' for 'placement', must be one of '%s'", - $placement, - implode("', '", $allowedValues) - ) - ); - } - $this->container['placement'] = $placement; - - return $this; - } - - /** - * Gets format_version - * - * @return int|null - */ - public function getFormatVersion() - { - return $this->container['format_version']; - } - - /** - * Sets format_version - * - * @param int|null $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. - * - * @return self - */ - public function setFormatVersion($format_version) - { - $allowedValues = $this->getFormatVersionAllowableValues(); - if (!is_null($format_version) && !in_array($format_version, $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value '%s' for 'format_version', must be one of '%s'", - $format_version, - implode("', '", $allowedValues) - ) - ); - } - $this->container['format_version'] = $format_version; - - return $this; - } - - /** - * Gets response_condition - * - * @return string|null - */ - public function getResponseCondition() - { - return $this->container['response_condition']; - } - - /** - * Sets response_condition - * - * @param string|null $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. - * - * @return self - */ - public function setResponseCondition($response_condition) - { - $this->container['response_condition'] = $response_condition; - - return $this; - } - - /** - * Gets format - * - * @return string|null - */ - public function getFormat() - { - return $this->container['format']; - } - - /** - * Sets format - * - * @param string|null $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). Must produce valid JSON that New Relic Logs can ingest. - * - * @return self - */ - public function setFormat($format) - { - $this->container['format'] = $format; - - return $this; - } - - /** - * Gets token - * - * @return string|null - */ - public function getToken() - { - return $this->container['token']; - } - - /** - * Sets token - * - * @param string|null $token The Insert API key from the Account page of your New Relic account. Required. - * - * @return self - */ - public function setToken($token) - { - $this->container['token'] = $token; - - return $this; - } - - /** - * Gets region - * - * @return string|null - */ - public function getRegion() - { - return $this->container['region']; - } - - /** - * Sets region - * - * @param string|null $region The region to which to stream logs. - * - * @return self - */ - public function setRegion($region) - { - $allowedValues = $this->getRegionAllowableValues(); - if (!is_null($region) && !in_array($region, $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value '%s' for 'region', must be one of '%s'", - $region, - implode("', '", $allowedValues) - ) - ); - } - $this->container['region'] = $region; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * - * @param integer $offset Offset - * - * @return boolean - */ - public function offsetExists($offset): bool - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * - * @param integer $offset Offset - * - * @return mixed|null - */ - public function offsetGet($offset): mixed - { - return $this->container[$offset] ?? null; - } - - /** - * Sets value based on offset. - * - * @param int|null $offset Offset - * @param mixed $value Value to be set - * - * @return void - */ - public function offsetSet($offset, $value): void - { - if (is_null($offset)) { - $this->container[] = $value; - } else { - $this->container[$offset] = $value; - } - } - - /** - * Unsets offset. - * - * @param integer $offset Offset - * - * @return void - */ - public function offsetUnset($offset): void - { - unset($this->container[$offset]); - } - - /** - * Serializes the object to a value that can be serialized natively by json_encode(). - * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php - * - * @return mixed Returns data which can be serialized by json_encode(), which is a value - * of any type other than a resource. - */ - public function jsonSerialize(): mixed - { - return ObjectSerializer::sanitizeForSerialization($this); - } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString() - { - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } - - /** - * Gets a header-safe presentation of the object - * - * @return string - */ - public function toHeaderValue() - { - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/lib/Model/LoggingNewrelicAllOf.php b/lib/Model/LoggingNewrelicAdditional.php similarity index 97% rename from lib/Model/LoggingNewrelicAllOf.php rename to lib/Model/LoggingNewrelicAdditional.php index b11bd0d7..a70bac38 100644 --- a/lib/Model/LoggingNewrelicAllOf.php +++ b/lib/Model/LoggingNewrelicAdditional.php @@ -1,6 +1,6 @@ 'string', 'placement' => 'string', - 'format_version' => 'int', 'response_condition' => 'string', 'format' => 'string', + 'format_version' => 'string', 'token' => 'string', 'region' => 'string', 'created_at' => '\DateTime', 'deleted_at' => '\DateTime', 'updated_at' => '\DateTime', 'service_id' => 'string', - 'version' => 'int' + 'version' => 'string' ]; /** @@ -77,9 +77,9 @@ class LoggingNewrelicResponse implements ModelInterface, ArrayAccess, \JsonSeria protected static $fastlyFormats = [ 'name' => null, 'placement' => null, - 'format_version' => null, 'response_condition' => null, 'format' => null, + 'format_version' => null, 'token' => null, 'region' => null, 'created_at' => 'date-time', @@ -118,9 +118,9 @@ public static function fastlyFormats() protected static $attributeMap = [ 'name' => 'name', 'placement' => 'placement', - 'format_version' => 'format_version', 'response_condition' => 'response_condition', 'format' => 'format', + 'format_version' => 'format_version', 'token' => 'token', 'region' => 'region', 'created_at' => 'created_at', @@ -138,9 +138,9 @@ public static function fastlyFormats() protected static $setters = [ 'name' => 'setName', 'placement' => 'setPlacement', - 'format_version' => 'setFormatVersion', 'response_condition' => 'setResponseCondition', 'format' => 'setFormat', + 'format_version' => 'setFormatVersion', 'token' => 'setToken', 'region' => 'setRegion', 'created_at' => 'setCreatedAt', @@ -158,9 +158,9 @@ public static function fastlyFormats() protected static $getters = [ 'name' => 'getName', 'placement' => 'getPlacement', - 'format_version' => 'getFormatVersion', 'response_condition' => 'getResponseCondition', 'format' => 'getFormat', + 'format_version' => 'getFormatVersion', 'token' => 'getToken', 'region' => 'getRegion', 'created_at' => 'getCreatedAt', @@ -214,8 +214,8 @@ public function getModelName() const PLACEMENT_NONE = 'none'; const PLACEMENT_WAF_DEBUG = 'waf_debug'; const PLACEMENT_NULL = 'null'; - const FORMAT_VERSION_v1 = 1; - const FORMAT_VERSION_v2 = 2; + const FORMAT_VERSION_v1 = '1'; + const FORMAT_VERSION_v2 = '2'; const REGION_US = 'US'; const REGION_EU = 'EU'; @@ -276,9 +276,9 @@ public function __construct(array $data = null) { $this->container['name'] = $data['name'] ?? null; $this->container['placement'] = $data['placement'] ?? null; - $this->container['format_version'] = $data['format_version'] ?? self::FORMAT_VERSION_v2; $this->container['response_condition'] = $data['response_condition'] ?? null; $this->container['format'] = $data['format'] ?? '{"timestamp":"%{begin:%Y-%m-%dT%H:%M:%S}t","time_elapsed":"%{time.elapsed.usec}V","is_tls":"%{if(req.is_ssl, \"true\", \"false\")}V","client_ip":"%{req.http.Fastly-Client-IP}V","geo_city":"%{client.geo.city}V","geo_country_code":"%{client.geo.country_code}V","request":"%{req.request}V","host":"%{req.http.Fastly-Orig-Host}V","url":"%{json.escape(req.url)}V","request_referer":"%{json.escape(req.http.Referer)}V","request_user_agent":"%{json.escape(req.http.User-Agent)}V","request_accept_language":"%{json.escape(req.http.Accept-Language)}V","request_accept_charset":"%{json.escape(req.http.Accept-Charset)}V","cache_status":"%{regsub(fastly_info.state, \"^(HIT-(SYNTH)|(HITPASS|HIT|MISS|PASS|ERROR|PIPE)).*\", \"\\2\\3\") }V"}'; + $this->container['format_version'] = $data['format_version'] ?? '2'; $this->container['token'] = $data['token'] ?? null; $this->container['region'] = $data['region'] ?? 'US'; $this->container['created_at'] = $data['created_at'] ?? null; @@ -398,83 +398,83 @@ public function setPlacement($placement) } /** - * Gets format_version + * Gets response_condition * - * @return int|null + * @return string|null */ - public function getFormatVersion() + public function getResponseCondition() { - return $this->container['format_version']; + return $this->container['response_condition']; } /** - * Sets format_version + * Sets response_condition * - * @param int|null $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. + * @param string|null $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. * * @return self */ - public function setFormatVersion($format_version) + public function setResponseCondition($response_condition) { - $allowedValues = $this->getFormatVersionAllowableValues(); - if (!is_null($format_version) && !in_array($format_version, $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value '%s' for 'format_version', must be one of '%s'", - $format_version, - implode("', '", $allowedValues) - ) - ); - } - $this->container['format_version'] = $format_version; + $this->container['response_condition'] = $response_condition; return $this; } /** - * Gets response_condition + * Gets format * * @return string|null */ - public function getResponseCondition() + public function getFormat() { - return $this->container['response_condition']; + return $this->container['format']; } /** - * Sets response_condition + * Sets format * - * @param string|null $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. + * @param string|null $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). Must produce valid JSON that New Relic Logs can ingest. * * @return self */ - public function setResponseCondition($response_condition) + public function setFormat($format) { - $this->container['response_condition'] = $response_condition; + $this->container['format'] = $format; return $this; } /** - * Gets format + * Gets format_version * * @return string|null */ - public function getFormat() + public function getFormatVersion() { - return $this->container['format']; + return $this->container['format_version']; } /** - * Sets format + * Sets format_version * - * @param string|null $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). Must produce valid JSON that New Relic Logs can ingest. + * @param string|null $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. * * @return self */ - public function setFormat($format) + public function setFormatVersion($format_version) { - $this->container['format'] = $format; + $allowedValues = $this->getFormatVersionAllowableValues(); + if (!is_null($format_version) && !in_array($format_version, $allowedValues, true)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value '%s' for 'format_version', must be one of '%s'", + $format_version, + implode("', '", $allowedValues) + ) + ); + } + $this->container['format_version'] = $format_version; return $this; } @@ -636,7 +636,7 @@ public function setServiceId($service_id) /** * Gets version * - * @return int|null + * @return string|null */ public function getVersion() { @@ -646,7 +646,7 @@ public function getVersion() /** * Sets version * - * @param int|null $version version + * @param string|null $version version * * @return self */ diff --git a/lib/Model/LoggingOpenstack.php b/lib/Model/LoggingOpenstack.php deleted file mode 100644 index e3500a00..00000000 --- a/lib/Model/LoggingOpenstack.php +++ /dev/null @@ -1,908 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class LoggingOpenstack implements ModelInterface, ArrayAccess, \JsonSerializable -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $fastlyModelName = 'logging_openstack'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $fastlyTypes = [ - 'name' => 'string', - 'placement' => 'string', - 'format_version' => 'int', - 'response_condition' => 'string', - 'format' => 'string', - 'message_type' => 'string', - 'timestamp_format' => 'string', - 'period' => 'int', - 'gzip_level' => 'int', - 'compression_codec' => 'string', - 'access_key' => 'string', - 'bucket_name' => 'string', - 'path' => 'string', - 'public_key' => 'string', - 'url' => 'string', - 'user' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $fastlyFormats = [ - 'name' => null, - 'placement' => null, - 'format_version' => null, - 'response_condition' => null, - 'format' => null, - 'message_type' => null, - 'timestamp_format' => null, - 'period' => null, - 'gzip_level' => null, - 'compression_codec' => null, - 'access_key' => null, - 'bucket_name' => null, - 'path' => null, - 'public_key' => null, - 'url' => null, - 'user' => null - ]; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @return array - */ - public static function fastlyTypes() - { - return self::$fastlyTypes; - } - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @return array - */ - public static function fastlyFormats() - { - return self::$fastlyFormats; - } - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'name' => 'name', - 'placement' => 'placement', - 'format_version' => 'format_version', - 'response_condition' => 'response_condition', - 'format' => 'format', - 'message_type' => 'message_type', - 'timestamp_format' => 'timestamp_format', - 'period' => 'period', - 'gzip_level' => 'gzip_level', - 'compression_codec' => 'compression_codec', - 'access_key' => 'access_key', - 'bucket_name' => 'bucket_name', - 'path' => 'path', - 'public_key' => 'public_key', - 'url' => 'url', - 'user' => 'user' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'name' => 'setName', - 'placement' => 'setPlacement', - 'format_version' => 'setFormatVersion', - 'response_condition' => 'setResponseCondition', - 'format' => 'setFormat', - 'message_type' => 'setMessageType', - 'timestamp_format' => 'setTimestampFormat', - 'period' => 'setPeriod', - 'gzip_level' => 'setGzipLevel', - 'compression_codec' => 'setCompressionCodec', - 'access_key' => 'setAccessKey', - 'bucket_name' => 'setBucketName', - 'path' => 'setPath', - 'public_key' => 'setPublicKey', - 'url' => 'setUrl', - 'user' => 'setUser' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'name' => 'getName', - 'placement' => 'getPlacement', - 'format_version' => 'getFormatVersion', - 'response_condition' => 'getResponseCondition', - 'format' => 'getFormat', - 'message_type' => 'getMessageType', - 'timestamp_format' => 'getTimestampFormat', - 'period' => 'getPeriod', - 'gzip_level' => 'getGzipLevel', - 'compression_codec' => 'getCompressionCodec', - 'access_key' => 'getAccessKey', - 'bucket_name' => 'getBucketName', - 'path' => 'getPath', - 'public_key' => 'getPublicKey', - 'url' => 'getUrl', - 'user' => 'getUser' - ]; - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @return array - */ - public static function attributeMap() - { - return self::$attributeMap; - } - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @return array - */ - public static function setters() - { - return self::$setters; - } - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @return array - */ - public static function getters() - { - return self::$getters; - } - - /** - * The original name of the model. - * - * @return string - */ - public function getModelName() - { - return self::$fastlyModelName; - } - - const PLACEMENT_NONE = 'none'; - const PLACEMENT_WAF_DEBUG = 'waf_debug'; - const PLACEMENT_NULL = 'null'; - const FORMAT_VERSION_v1 = 1; - const FORMAT_VERSION_v2 = 2; - const MESSAGE_TYPE_CLASSIC = 'classic'; - const MESSAGE_TYPE_LOGGLY = 'loggly'; - const MESSAGE_TYPE_LOGPLEX = 'logplex'; - const MESSAGE_TYPE_BLANK = 'blank'; - const COMPRESSION_CODEC_ZSTD = 'zstd'; - const COMPRESSION_CODEC_SNAPPY = 'snappy'; - const COMPRESSION_CODEC_GZIP = 'gzip'; - - /** - * Gets allowable values of the enum - * - * @return string[] - */ - public function getPlacementAllowableValues() - { - return [ - self::PLACEMENT_NONE, - self::PLACEMENT_WAF_DEBUG, - self::PLACEMENT_NULL, - ]; - } - - /** - * Gets allowable values of the enum - * - * @return string[] - */ - public function getFormatVersionAllowableValues() - { - return [ - self::FORMAT_VERSION_v1, - self::FORMAT_VERSION_v2, - ]; - } - - /** - * Gets allowable values of the enum - * - * @return string[] - */ - public function getMessageTypeAllowableValues() - { - return [ - self::MESSAGE_TYPE_CLASSIC, - self::MESSAGE_TYPE_LOGGLY, - self::MESSAGE_TYPE_LOGPLEX, - self::MESSAGE_TYPE_BLANK, - ]; - } - - /** - * Gets allowable values of the enum - * - * @return string[] - */ - public function getCompressionCodecAllowableValues() - { - return [ - self::COMPRESSION_CODEC_ZSTD, - self::COMPRESSION_CODEC_SNAPPY, - self::COMPRESSION_CODEC_GZIP, - ]; - } - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['name'] = $data['name'] ?? null; - $this->container['placement'] = $data['placement'] ?? null; - $this->container['format_version'] = $data['format_version'] ?? self::FORMAT_VERSION_v2; - $this->container['response_condition'] = $data['response_condition'] ?? null; - $this->container['format'] = $data['format'] ?? '%h %l %u %t "%r" %>s %b'; - $this->container['message_type'] = $data['message_type'] ?? 'classic'; - $this->container['timestamp_format'] = $data['timestamp_format'] ?? null; - $this->container['period'] = $data['period'] ?? 3600; - $this->container['gzip_level'] = $data['gzip_level'] ?? 0; - $this->container['compression_codec'] = $data['compression_codec'] ?? null; - $this->container['access_key'] = $data['access_key'] ?? null; - $this->container['bucket_name'] = $data['bucket_name'] ?? null; - $this->container['path'] = $data['path'] ?? 'null'; - $this->container['public_key'] = $data['public_key'] ?? 'null'; - $this->container['url'] = $data['url'] ?? null; - $this->container['user'] = $data['user'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - - $allowedValues = $this->getPlacementAllowableValues(); - if (!is_null($this->container['placement']) && !in_array($this->container['placement'], $allowedValues, true)) { - $invalidProperties[] = sprintf( - "invalid value '%s' for 'placement', must be one of '%s'", - $this->container['placement'], - implode("', '", $allowedValues) - ); - } - - $allowedValues = $this->getFormatVersionAllowableValues(); - if (!is_null($this->container['format_version']) && !in_array($this->container['format_version'], $allowedValues, true)) { - $invalidProperties[] = sprintf( - "invalid value '%s' for 'format_version', must be one of '%s'", - $this->container['format_version'], - implode("', '", $allowedValues) - ); - } - - $allowedValues = $this->getMessageTypeAllowableValues(); - if (!is_null($this->container['message_type']) && !in_array($this->container['message_type'], $allowedValues, true)) { - $invalidProperties[] = sprintf( - "invalid value '%s' for 'message_type', must be one of '%s'", - $this->container['message_type'], - implode("', '", $allowedValues) - ); - } - - $allowedValues = $this->getCompressionCodecAllowableValues(); - if (!is_null($this->container['compression_codec']) && !in_array($this->container['compression_codec'], $allowedValues, true)) { - $invalidProperties[] = sprintf( - "invalid value '%s' for 'compression_codec', must be one of '%s'", - $this->container['compression_codec'], - implode("', '", $allowedValues) - ); - } - - return $invalidProperties; - } - - /** - * Validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - return count($this->listInvalidProperties()) === 0; - } - - - /** - * Gets name - * - * @return string|null - */ - public function getName() - { - return $this->container['name']; - } - - /** - * Sets name - * - * @param string|null $name The name for the real-time logging configuration. - * - * @return self - */ - public function setName($name) - { - $this->container['name'] = $name; - - return $this; - } - - /** - * Gets placement - * - * @return string|null - */ - public function getPlacement() - { - return $this->container['placement']; - } - - /** - * Sets placement - * - * @param string|null $placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. - * - * @return self - */ - public function setPlacement($placement) - { - $allowedValues = $this->getPlacementAllowableValues(); - if (!is_null($placement) && !in_array($placement, $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value '%s' for 'placement', must be one of '%s'", - $placement, - implode("', '", $allowedValues) - ) - ); - } - $this->container['placement'] = $placement; - - return $this; - } - - /** - * Gets format_version - * - * @return int|null - */ - public function getFormatVersion() - { - return $this->container['format_version']; - } - - /** - * Sets format_version - * - * @param int|null $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. - * - * @return self - */ - public function setFormatVersion($format_version) - { - $allowedValues = $this->getFormatVersionAllowableValues(); - if (!is_null($format_version) && !in_array($format_version, $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value '%s' for 'format_version', must be one of '%s'", - $format_version, - implode("', '", $allowedValues) - ) - ); - } - $this->container['format_version'] = $format_version; - - return $this; - } - - /** - * Gets response_condition - * - * @return string|null - */ - public function getResponseCondition() - { - return $this->container['response_condition']; - } - - /** - * Sets response_condition - * - * @param string|null $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. - * - * @return self - */ - public function setResponseCondition($response_condition) - { - $this->container['response_condition'] = $response_condition; - - return $this; - } - - /** - * Gets format - * - * @return string|null - */ - public function getFormat() - { - return $this->container['format']; - } - - /** - * Sets format - * - * @param string|null $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). - * - * @return self - */ - public function setFormat($format) - { - $this->container['format'] = $format; - - return $this; - } - - /** - * Gets message_type - * - * @return string|null - */ - public function getMessageType() - { - return $this->container['message_type']; - } - - /** - * Sets message_type - * - * @param string|null $message_type How the message should be formatted. - * - * @return self - */ - public function setMessageType($message_type) - { - $allowedValues = $this->getMessageTypeAllowableValues(); - if (!is_null($message_type) && !in_array($message_type, $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value '%s' for 'message_type', must be one of '%s'", - $message_type, - implode("', '", $allowedValues) - ) - ); - } - $this->container['message_type'] = $message_type; - - return $this; - } - - /** - * Gets timestamp_format - * - * @return string|null - */ - public function getTimestampFormat() - { - return $this->container['timestamp_format']; - } - - /** - * Sets timestamp_format - * - * @param string|null $timestamp_format A timestamp format - * - * @return self - */ - public function setTimestampFormat($timestamp_format) - { - $this->container['timestamp_format'] = $timestamp_format; - - return $this; - } - - /** - * Gets period - * - * @return int|null - */ - public function getPeriod() - { - return $this->container['period']; - } - - /** - * Sets period - * - * @param int|null $period How frequently log files are finalized so they can be available for reading (in seconds). - * - * @return self - */ - public function setPeriod($period) - { - $this->container['period'] = $period; - - return $this; - } - - /** - * Gets gzip_level - * - * @return int|null - */ - public function getGzipLevel() - { - return $this->container['gzip_level']; - } - - /** - * Sets gzip_level - * - * @param int|null $gzip_level The level of gzip encoding when sending logs (default `0`, no compression). Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. - * - * @return self - */ - public function setGzipLevel($gzip_level) - { - $this->container['gzip_level'] = $gzip_level; - - return $this; - } - - /** - * Gets compression_codec - * - * @return string|null - */ - public function getCompressionCodec() - { - return $this->container['compression_codec']; - } - - /** - * Sets compression_codec - * - * @param string|null $compression_codec The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. - * - * @return self - */ - public function setCompressionCodec($compression_codec) - { - $allowedValues = $this->getCompressionCodecAllowableValues(); - if (!is_null($compression_codec) && !in_array($compression_codec, $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value '%s' for 'compression_codec', must be one of '%s'", - $compression_codec, - implode("', '", $allowedValues) - ) - ); - } - $this->container['compression_codec'] = $compression_codec; - - return $this; - } - - /** - * Gets access_key - * - * @return string|null - */ - public function getAccessKey() - { - return $this->container['access_key']; - } - - /** - * Sets access_key - * - * @param string|null $access_key Your OpenStack account access key. - * - * @return self - */ - public function setAccessKey($access_key) - { - $this->container['access_key'] = $access_key; - - return $this; - } - - /** - * Gets bucket_name - * - * @return string|null - */ - public function getBucketName() - { - return $this->container['bucket_name']; - } - - /** - * Sets bucket_name - * - * @param string|null $bucket_name The name of your OpenStack container. - * - * @return self - */ - public function setBucketName($bucket_name) - { - $this->container['bucket_name'] = $bucket_name; - - return $this; - } - - /** - * Gets path - * - * @return string|null - */ - public function getPath() - { - return $this->container['path']; - } - - /** - * Sets path - * - * @param string|null $path The path to upload logs to. - * - * @return self - */ - public function setPath($path) - { - $this->container['path'] = $path; - - return $this; - } - - /** - * Gets public_key - * - * @return string|null - */ - public function getPublicKey() - { - return $this->container['public_key']; - } - - /** - * Sets public_key - * - * @param string|null $public_key A PGP public key that Fastly will use to encrypt your log files before writing them to disk. - * - * @return self - */ - public function setPublicKey($public_key) - { - $this->container['public_key'] = $public_key; - - return $this; - } - - /** - * Gets url - * - * @return string|null - */ - public function getUrl() - { - return $this->container['url']; - } - - /** - * Sets url - * - * @param string|null $url Your OpenStack auth url. - * - * @return self - */ - public function setUrl($url) - { - $this->container['url'] = $url; - - return $this; - } - - /** - * Gets user - * - * @return string|null - */ - public function getUser() - { - return $this->container['user']; - } - - /** - * Sets user - * - * @param string|null $user The username for your OpenStack account. - * - * @return self - */ - public function setUser($user) - { - $this->container['user'] = $user; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * - * @param integer $offset Offset - * - * @return boolean - */ - public function offsetExists($offset): bool - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * - * @param integer $offset Offset - * - * @return mixed|null - */ - public function offsetGet($offset): mixed - { - return $this->container[$offset] ?? null; - } - - /** - * Sets value based on offset. - * - * @param int|null $offset Offset - * @param mixed $value Value to be set - * - * @return void - */ - public function offsetSet($offset, $value): void - { - if (is_null($offset)) { - $this->container[] = $value; - } else { - $this->container[$offset] = $value; - } - } - - /** - * Unsets offset. - * - * @param integer $offset Offset - * - * @return void - */ - public function offsetUnset($offset): void - { - unset($this->container[$offset]); - } - - /** - * Serializes the object to a value that can be serialized natively by json_encode(). - * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php - * - * @return mixed Returns data which can be serialized by json_encode(), which is a value - * of any type other than a resource. - */ - public function jsonSerialize(): mixed - { - return ObjectSerializer::sanitizeForSerialization($this); - } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString() - { - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } - - /** - * Gets a header-safe presentation of the object - * - * @return string - */ - public function toHeaderValue() - { - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/lib/Model/LoggingOpenstackAllOf.php b/lib/Model/LoggingOpenstackAdditional.php similarity index 97% rename from lib/Model/LoggingOpenstackAllOf.php rename to lib/Model/LoggingOpenstackAdditional.php index 62ffc039..c457e5d1 100644 --- a/lib/Model/LoggingOpenstackAllOf.php +++ b/lib/Model/LoggingOpenstackAdditional.php @@ -1,6 +1,6 @@ 'string', 'placement' => 'string', - 'format_version' => 'int', 'response_condition' => 'string', 'format' => 'string', + 'format_version' => 'string', 'message_type' => 'string', 'timestamp_format' => 'string', - 'period' => 'int', - 'gzip_level' => 'int', 'compression_codec' => 'string', + 'period' => 'string', + 'gzip_level' => 'string', + 'created_at' => '\DateTime', + 'deleted_at' => '\DateTime', + 'updated_at' => '\DateTime', + 'service_id' => 'string', + 'version' => 'string', 'access_key' => 'string', 'bucket_name' => 'string', 'path' => 'string', 'public_key' => 'string', 'url' => 'string', - 'user' => 'string', - 'created_at' => '\DateTime', - 'deleted_at' => '\DateTime', - 'updated_at' => '\DateTime', - 'service_id' => 'string', - 'version' => 'int' + 'user' => 'string' ]; /** @@ -86,25 +86,25 @@ class LoggingOpenstackResponse implements ModelInterface, ArrayAccess, \JsonSeri protected static $fastlyFormats = [ 'name' => null, 'placement' => null, - 'format_version' => null, 'response_condition' => null, 'format' => null, + 'format_version' => null, 'message_type' => null, 'timestamp_format' => null, + 'compression_codec' => null, 'period' => null, 'gzip_level' => null, - 'compression_codec' => null, + 'created_at' => 'date-time', + 'deleted_at' => 'date-time', + 'updated_at' => 'date-time', + 'service_id' => null, + 'version' => null, 'access_key' => null, 'bucket_name' => null, 'path' => null, 'public_key' => null, 'url' => null, - 'user' => null, - 'created_at' => 'date-time', - 'deleted_at' => 'date-time', - 'updated_at' => 'date-time', - 'service_id' => null, - 'version' => null + 'user' => null ]; /** @@ -136,25 +136,25 @@ public static function fastlyFormats() protected static $attributeMap = [ 'name' => 'name', 'placement' => 'placement', - 'format_version' => 'format_version', 'response_condition' => 'response_condition', 'format' => 'format', + 'format_version' => 'format_version', 'message_type' => 'message_type', 'timestamp_format' => 'timestamp_format', + 'compression_codec' => 'compression_codec', 'period' => 'period', 'gzip_level' => 'gzip_level', - 'compression_codec' => 'compression_codec', + 'created_at' => 'created_at', + 'deleted_at' => 'deleted_at', + 'updated_at' => 'updated_at', + 'service_id' => 'service_id', + 'version' => 'version', 'access_key' => 'access_key', 'bucket_name' => 'bucket_name', 'path' => 'path', 'public_key' => 'public_key', 'url' => 'url', - 'user' => 'user', - 'created_at' => 'created_at', - 'deleted_at' => 'deleted_at', - 'updated_at' => 'updated_at', - 'service_id' => 'service_id', - 'version' => 'version' + 'user' => 'user' ]; /** @@ -165,25 +165,25 @@ public static function fastlyFormats() protected static $setters = [ 'name' => 'setName', 'placement' => 'setPlacement', - 'format_version' => 'setFormatVersion', 'response_condition' => 'setResponseCondition', 'format' => 'setFormat', + 'format_version' => 'setFormatVersion', 'message_type' => 'setMessageType', 'timestamp_format' => 'setTimestampFormat', + 'compression_codec' => 'setCompressionCodec', 'period' => 'setPeriod', 'gzip_level' => 'setGzipLevel', - 'compression_codec' => 'setCompressionCodec', + 'created_at' => 'setCreatedAt', + 'deleted_at' => 'setDeletedAt', + 'updated_at' => 'setUpdatedAt', + 'service_id' => 'setServiceId', + 'version' => 'setVersion', 'access_key' => 'setAccessKey', 'bucket_name' => 'setBucketName', 'path' => 'setPath', 'public_key' => 'setPublicKey', 'url' => 'setUrl', - 'user' => 'setUser', - 'created_at' => 'setCreatedAt', - 'deleted_at' => 'setDeletedAt', - 'updated_at' => 'setUpdatedAt', - 'service_id' => 'setServiceId', - 'version' => 'setVersion' + 'user' => 'setUser' ]; /** @@ -194,25 +194,25 @@ public static function fastlyFormats() protected static $getters = [ 'name' => 'getName', 'placement' => 'getPlacement', - 'format_version' => 'getFormatVersion', 'response_condition' => 'getResponseCondition', 'format' => 'getFormat', + 'format_version' => 'getFormatVersion', 'message_type' => 'getMessageType', 'timestamp_format' => 'getTimestampFormat', + 'compression_codec' => 'getCompressionCodec', 'period' => 'getPeriod', 'gzip_level' => 'getGzipLevel', - 'compression_codec' => 'getCompressionCodec', + 'created_at' => 'getCreatedAt', + 'deleted_at' => 'getDeletedAt', + 'updated_at' => 'getUpdatedAt', + 'service_id' => 'getServiceId', + 'version' => 'getVersion', 'access_key' => 'getAccessKey', 'bucket_name' => 'getBucketName', 'path' => 'getPath', 'public_key' => 'getPublicKey', 'url' => 'getUrl', - 'user' => 'getUser', - 'created_at' => 'getCreatedAt', - 'deleted_at' => 'getDeletedAt', - 'updated_at' => 'getUpdatedAt', - 'service_id' => 'getServiceId', - 'version' => 'getVersion' + 'user' => 'getUser' ]; /** @@ -259,8 +259,8 @@ public function getModelName() const PLACEMENT_NONE = 'none'; const PLACEMENT_WAF_DEBUG = 'waf_debug'; const PLACEMENT_NULL = 'null'; - const FORMAT_VERSION_v1 = 1; - const FORMAT_VERSION_v2 = 2; + const FORMAT_VERSION_v1 = '1'; + const FORMAT_VERSION_v2 = '2'; const MESSAGE_TYPE_CLASSIC = 'classic'; const MESSAGE_TYPE_LOGGLY = 'loggly'; const MESSAGE_TYPE_LOGPLEX = 'logplex'; @@ -342,25 +342,25 @@ public function __construct(array $data = null) { $this->container['name'] = $data['name'] ?? null; $this->container['placement'] = $data['placement'] ?? null; - $this->container['format_version'] = $data['format_version'] ?? self::FORMAT_VERSION_v2; $this->container['response_condition'] = $data['response_condition'] ?? null; $this->container['format'] = $data['format'] ?? '%h %l %u %t "%r" %>s %b'; + $this->container['format_version'] = $data['format_version'] ?? '2'; $this->container['message_type'] = $data['message_type'] ?? 'classic'; $this->container['timestamp_format'] = $data['timestamp_format'] ?? null; - $this->container['period'] = $data['period'] ?? 3600; - $this->container['gzip_level'] = $data['gzip_level'] ?? 0; $this->container['compression_codec'] = $data['compression_codec'] ?? null; + $this->container['period'] = $data['period'] ?? '3600'; + $this->container['gzip_level'] = $data['gzip_level'] ?? '0'; + $this->container['created_at'] = $data['created_at'] ?? null; + $this->container['deleted_at'] = $data['deleted_at'] ?? null; + $this->container['updated_at'] = $data['updated_at'] ?? null; + $this->container['service_id'] = $data['service_id'] ?? null; + $this->container['version'] = $data['version'] ?? null; $this->container['access_key'] = $data['access_key'] ?? null; $this->container['bucket_name'] = $data['bucket_name'] ?? null; $this->container['path'] = $data['path'] ?? 'null'; $this->container['public_key'] = $data['public_key'] ?? 'null'; $this->container['url'] = $data['url'] ?? null; $this->container['user'] = $data['user'] ?? null; - $this->container['created_at'] = $data['created_at'] ?? null; - $this->container['deleted_at'] = $data['deleted_at'] ?? null; - $this->container['updated_at'] = $data['updated_at'] ?? null; - $this->container['service_id'] = $data['service_id'] ?? null; - $this->container['version'] = $data['version'] ?? null; } /** @@ -482,83 +482,83 @@ public function setPlacement($placement) } /** - * Gets format_version + * Gets response_condition * - * @return int|null + * @return string|null */ - public function getFormatVersion() + public function getResponseCondition() { - return $this->container['format_version']; + return $this->container['response_condition']; } /** - * Sets format_version + * Sets response_condition * - * @param int|null $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. + * @param string|null $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. * * @return self */ - public function setFormatVersion($format_version) + public function setResponseCondition($response_condition) { - $allowedValues = $this->getFormatVersionAllowableValues(); - if (!is_null($format_version) && !in_array($format_version, $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value '%s' for 'format_version', must be one of '%s'", - $format_version, - implode("', '", $allowedValues) - ) - ); - } - $this->container['format_version'] = $format_version; + $this->container['response_condition'] = $response_condition; return $this; } /** - * Gets response_condition + * Gets format * * @return string|null */ - public function getResponseCondition() + public function getFormat() { - return $this->container['response_condition']; + return $this->container['format']; } /** - * Sets response_condition + * Sets format * - * @param string|null $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. + * @param string|null $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). * * @return self */ - public function setResponseCondition($response_condition) + public function setFormat($format) { - $this->container['response_condition'] = $response_condition; + $this->container['format'] = $format; return $this; } /** - * Gets format + * Gets format_version * * @return string|null */ - public function getFormat() + public function getFormatVersion() { - return $this->container['format']; + return $this->container['format_version']; } /** - * Sets format + * Sets format_version * - * @param string|null $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). + * @param string|null $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. * * @return self */ - public function setFormat($format) + public function setFormatVersion($format_version) { - $this->container['format'] = $format; + $allowedValues = $this->getFormatVersionAllowableValues(); + if (!is_null($format_version) && !in_array($format_version, $allowedValues, true)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value '%s' for 'format_version', must be one of '%s'", + $format_version, + implode("', '", $allowedValues) + ) + ); + } + $this->container['format_version'] = $format_version; return $this; } @@ -622,347 +622,347 @@ public function setTimestampFormat($timestamp_format) } /** - * Gets period + * Gets compression_codec * - * @return int|null + * @return string|null */ - public function getPeriod() + public function getCompressionCodec() { - return $this->container['period']; + return $this->container['compression_codec']; } /** - * Sets period + * Sets compression_codec * - * @param int|null $period How frequently log files are finalized so they can be available for reading (in seconds). + * @param string|null $compression_codec The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. * * @return self */ - public function setPeriod($period) + public function setCompressionCodec($compression_codec) { - $this->container['period'] = $period; + $allowedValues = $this->getCompressionCodecAllowableValues(); + if (!is_null($compression_codec) && !in_array($compression_codec, $allowedValues, true)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value '%s' for 'compression_codec', must be one of '%s'", + $compression_codec, + implode("', '", $allowedValues) + ) + ); + } + $this->container['compression_codec'] = $compression_codec; return $this; } /** - * Gets gzip_level + * Gets period * - * @return int|null + * @return string|null */ - public function getGzipLevel() + public function getPeriod() { - return $this->container['gzip_level']; + return $this->container['period']; } /** - * Sets gzip_level + * Sets period * - * @param int|null $gzip_level The level of gzip encoding when sending logs (default `0`, no compression). Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. + * @param string|null $period How frequently log files are finalized so they can be available for reading (in seconds). * * @return self */ - public function setGzipLevel($gzip_level) + public function setPeriod($period) { - $this->container['gzip_level'] = $gzip_level; + $this->container['period'] = $period; return $this; } /** - * Gets compression_codec + * Gets gzip_level * * @return string|null */ - public function getCompressionCodec() + public function getGzipLevel() { - return $this->container['compression_codec']; + return $this->container['gzip_level']; } /** - * Sets compression_codec + * Sets gzip_level * - * @param string|null $compression_codec The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. + * @param string|null $gzip_level The level of gzip encoding when sending logs (default `0`, no compression). Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. * * @return self */ - public function setCompressionCodec($compression_codec) + public function setGzipLevel($gzip_level) { - $allowedValues = $this->getCompressionCodecAllowableValues(); - if (!is_null($compression_codec) && !in_array($compression_codec, $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value '%s' for 'compression_codec', must be one of '%s'", - $compression_codec, - implode("', '", $allowedValues) - ) - ); - } - $this->container['compression_codec'] = $compression_codec; + $this->container['gzip_level'] = $gzip_level; return $this; } /** - * Gets access_key + * Gets created_at * - * @return string|null + * @return \DateTime|null */ - public function getAccessKey() + public function getCreatedAt() { - return $this->container['access_key']; + return $this->container['created_at']; } /** - * Sets access_key + * Sets created_at * - * @param string|null $access_key Your OpenStack account access key. + * @param \DateTime|null $created_at Date and time in ISO 8601 format. * * @return self */ - public function setAccessKey($access_key) + public function setCreatedAt($created_at) { - $this->container['access_key'] = $access_key; + $this->container['created_at'] = $created_at; return $this; } /** - * Gets bucket_name + * Gets deleted_at * - * @return string|null + * @return \DateTime|null */ - public function getBucketName() + public function getDeletedAt() { - return $this->container['bucket_name']; + return $this->container['deleted_at']; } /** - * Sets bucket_name + * Sets deleted_at * - * @param string|null $bucket_name The name of your OpenStack container. + * @param \DateTime|null $deleted_at Date and time in ISO 8601 format. * * @return self */ - public function setBucketName($bucket_name) + public function setDeletedAt($deleted_at) { - $this->container['bucket_name'] = $bucket_name; + $this->container['deleted_at'] = $deleted_at; return $this; } /** - * Gets path + * Gets updated_at * - * @return string|null + * @return \DateTime|null */ - public function getPath() + public function getUpdatedAt() { - return $this->container['path']; + return $this->container['updated_at']; } /** - * Sets path + * Sets updated_at * - * @param string|null $path The path to upload logs to. + * @param \DateTime|null $updated_at Date and time in ISO 8601 format. * * @return self */ - public function setPath($path) + public function setUpdatedAt($updated_at) { - $this->container['path'] = $path; + $this->container['updated_at'] = $updated_at; return $this; } /** - * Gets public_key + * Gets service_id * * @return string|null */ - public function getPublicKey() + public function getServiceId() { - return $this->container['public_key']; + return $this->container['service_id']; } /** - * Sets public_key + * Sets service_id * - * @param string|null $public_key A PGP public key that Fastly will use to encrypt your log files before writing them to disk. + * @param string|null $service_id service_id * * @return self */ - public function setPublicKey($public_key) + public function setServiceId($service_id) { - $this->container['public_key'] = $public_key; + $this->container['service_id'] = $service_id; return $this; } /** - * Gets url + * Gets version * * @return string|null */ - public function getUrl() + public function getVersion() { - return $this->container['url']; + return $this->container['version']; } /** - * Sets url + * Sets version * - * @param string|null $url Your OpenStack auth url. + * @param string|null $version version * * @return self */ - public function setUrl($url) + public function setVersion($version) { - $this->container['url'] = $url; + $this->container['version'] = $version; return $this; } /** - * Gets user + * Gets access_key * * @return string|null */ - public function getUser() + public function getAccessKey() { - return $this->container['user']; + return $this->container['access_key']; } /** - * Sets user + * Sets access_key * - * @param string|null $user The username for your OpenStack account. + * @param string|null $access_key Your OpenStack account access key. * * @return self */ - public function setUser($user) + public function setAccessKey($access_key) { - $this->container['user'] = $user; + $this->container['access_key'] = $access_key; return $this; } /** - * Gets created_at + * Gets bucket_name * - * @return \DateTime|null + * @return string|null */ - public function getCreatedAt() + public function getBucketName() { - return $this->container['created_at']; + return $this->container['bucket_name']; } /** - * Sets created_at + * Sets bucket_name * - * @param \DateTime|null $created_at Date and time in ISO 8601 format. + * @param string|null $bucket_name The name of your OpenStack container. * * @return self */ - public function setCreatedAt($created_at) + public function setBucketName($bucket_name) { - $this->container['created_at'] = $created_at; + $this->container['bucket_name'] = $bucket_name; return $this; } /** - * Gets deleted_at + * Gets path * - * @return \DateTime|null + * @return string|null */ - public function getDeletedAt() + public function getPath() { - return $this->container['deleted_at']; + return $this->container['path']; } /** - * Sets deleted_at + * Sets path * - * @param \DateTime|null $deleted_at Date and time in ISO 8601 format. + * @param string|null $path The path to upload logs to. * * @return self */ - public function setDeletedAt($deleted_at) + public function setPath($path) { - $this->container['deleted_at'] = $deleted_at; + $this->container['path'] = $path; return $this; } /** - * Gets updated_at + * Gets public_key * - * @return \DateTime|null + * @return string|null */ - public function getUpdatedAt() + public function getPublicKey() { - return $this->container['updated_at']; + return $this->container['public_key']; } /** - * Sets updated_at + * Sets public_key * - * @param \DateTime|null $updated_at Date and time in ISO 8601 format. + * @param string|null $public_key A PGP public key that Fastly will use to encrypt your log files before writing them to disk. * * @return self */ - public function setUpdatedAt($updated_at) + public function setPublicKey($public_key) { - $this->container['updated_at'] = $updated_at; + $this->container['public_key'] = $public_key; return $this; } /** - * Gets service_id + * Gets url * * @return string|null */ - public function getServiceId() + public function getUrl() { - return $this->container['service_id']; + return $this->container['url']; } /** - * Sets service_id + * Sets url * - * @param string|null $service_id service_id + * @param string|null $url Your OpenStack auth url. * * @return self */ - public function setServiceId($service_id) + public function setUrl($url) { - $this->container['service_id'] = $service_id; + $this->container['url'] = $url; return $this; } /** - * Gets version + * Gets user * - * @return int|null + * @return string|null */ - public function getVersion() + public function getUser() { - return $this->container['version']; + return $this->container['user']; } /** - * Sets version + * Sets user * - * @param int|null $version version + * @param string|null $user The username for your OpenStack account. * * @return self */ - public function setVersion($version) + public function setUser($user) { - $this->container['version'] = $version; + $this->container['user'] = $user; return $this; } diff --git a/lib/Model/LoggingPapertrail.php b/lib/Model/LoggingPapertrail.php deleted file mode 100644 index 3cbf760a..00000000 --- a/lib/Model/LoggingPapertrail.php +++ /dev/null @@ -1,564 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class LoggingPapertrail implements ModelInterface, ArrayAccess, \JsonSerializable -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $fastlyModelName = 'logging_papertrail'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $fastlyTypes = [ - 'name' => 'string', - 'placement' => 'string', - 'format_version' => 'int', - 'response_condition' => 'string', - 'format' => 'string', - 'address' => 'string', - 'port' => 'int' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $fastlyFormats = [ - 'name' => null, - 'placement' => null, - 'format_version' => null, - 'response_condition' => null, - 'format' => null, - 'address' => null, - 'port' => null - ]; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @return array - */ - public static function fastlyTypes() - { - return self::$fastlyTypes; - } - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @return array - */ - public static function fastlyFormats() - { - return self::$fastlyFormats; - } - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'name' => 'name', - 'placement' => 'placement', - 'format_version' => 'format_version', - 'response_condition' => 'response_condition', - 'format' => 'format', - 'address' => 'address', - 'port' => 'port' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'name' => 'setName', - 'placement' => 'setPlacement', - 'format_version' => 'setFormatVersion', - 'response_condition' => 'setResponseCondition', - 'format' => 'setFormat', - 'address' => 'setAddress', - 'port' => 'setPort' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'name' => 'getName', - 'placement' => 'getPlacement', - 'format_version' => 'getFormatVersion', - 'response_condition' => 'getResponseCondition', - 'format' => 'getFormat', - 'address' => 'getAddress', - 'port' => 'getPort' - ]; - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @return array - */ - public static function attributeMap() - { - return self::$attributeMap; - } - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @return array - */ - public static function setters() - { - return self::$setters; - } - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @return array - */ - public static function getters() - { - return self::$getters; - } - - /** - * The original name of the model. - * - * @return string - */ - public function getModelName() - { - return self::$fastlyModelName; - } - - const PLACEMENT_NONE = 'none'; - const PLACEMENT_WAF_DEBUG = 'waf_debug'; - const PLACEMENT_NULL = 'null'; - const FORMAT_VERSION_v1 = 1; - const FORMAT_VERSION_v2 = 2; - - /** - * Gets allowable values of the enum - * - * @return string[] - */ - public function getPlacementAllowableValues() - { - return [ - self::PLACEMENT_NONE, - self::PLACEMENT_WAF_DEBUG, - self::PLACEMENT_NULL, - ]; - } - - /** - * Gets allowable values of the enum - * - * @return string[] - */ - public function getFormatVersionAllowableValues() - { - return [ - self::FORMAT_VERSION_v1, - self::FORMAT_VERSION_v2, - ]; - } - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['name'] = $data['name'] ?? null; - $this->container['placement'] = $data['placement'] ?? null; - $this->container['format_version'] = $data['format_version'] ?? self::FORMAT_VERSION_v2; - $this->container['response_condition'] = $data['response_condition'] ?? null; - $this->container['format'] = $data['format'] ?? '%h %l %u %t "%r" %>s %b'; - $this->container['address'] = $data['address'] ?? null; - $this->container['port'] = $data['port'] ?? 514; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - - $allowedValues = $this->getPlacementAllowableValues(); - if (!is_null($this->container['placement']) && !in_array($this->container['placement'], $allowedValues, true)) { - $invalidProperties[] = sprintf( - "invalid value '%s' for 'placement', must be one of '%s'", - $this->container['placement'], - implode("', '", $allowedValues) - ); - } - - $allowedValues = $this->getFormatVersionAllowableValues(); - if (!is_null($this->container['format_version']) && !in_array($this->container['format_version'], $allowedValues, true)) { - $invalidProperties[] = sprintf( - "invalid value '%s' for 'format_version', must be one of '%s'", - $this->container['format_version'], - implode("', '", $allowedValues) - ); - } - - return $invalidProperties; - } - - /** - * Validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - return count($this->listInvalidProperties()) === 0; - } - - - /** - * Gets name - * - * @return string|null - */ - public function getName() - { - return $this->container['name']; - } - - /** - * Sets name - * - * @param string|null $name The name for the real-time logging configuration. - * - * @return self - */ - public function setName($name) - { - $this->container['name'] = $name; - - return $this; - } - - /** - * Gets placement - * - * @return string|null - */ - public function getPlacement() - { - return $this->container['placement']; - } - - /** - * Sets placement - * - * @param string|null $placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. - * - * @return self - */ - public function setPlacement($placement) - { - $allowedValues = $this->getPlacementAllowableValues(); - if (!is_null($placement) && !in_array($placement, $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value '%s' for 'placement', must be one of '%s'", - $placement, - implode("', '", $allowedValues) - ) - ); - } - $this->container['placement'] = $placement; - - return $this; - } - - /** - * Gets format_version - * - * @return int|null - */ - public function getFormatVersion() - { - return $this->container['format_version']; - } - - /** - * Sets format_version - * - * @param int|null $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. - * - * @return self - */ - public function setFormatVersion($format_version) - { - $allowedValues = $this->getFormatVersionAllowableValues(); - if (!is_null($format_version) && !in_array($format_version, $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value '%s' for 'format_version', must be one of '%s'", - $format_version, - implode("', '", $allowedValues) - ) - ); - } - $this->container['format_version'] = $format_version; - - return $this; - } - - /** - * Gets response_condition - * - * @return string|null - */ - public function getResponseCondition() - { - return $this->container['response_condition']; - } - - /** - * Sets response_condition - * - * @param string|null $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. - * - * @return self - */ - public function setResponseCondition($response_condition) - { - $this->container['response_condition'] = $response_condition; - - return $this; - } - - /** - * Gets format - * - * @return string|null - */ - public function getFormat() - { - return $this->container['format']; - } - - /** - * Sets format - * - * @param string|null $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). - * - * @return self - */ - public function setFormat($format) - { - $this->container['format'] = $format; - - return $this; - } - - /** - * Gets address - * - * @return string|null - */ - public function getAddress() - { - return $this->container['address']; - } - - /** - * Sets address - * - * @param string|null $address A hostname or IPv4 address. - * - * @return self - */ - public function setAddress($address) - { - $this->container['address'] = $address; - - return $this; - } - - /** - * Gets port - * - * @return int|null - */ - public function getPort() - { - return $this->container['port']; - } - - /** - * Sets port - * - * @param int|null $port The port number. - * - * @return self - */ - public function setPort($port) - { - $this->container['port'] = $port; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * - * @param integer $offset Offset - * - * @return boolean - */ - public function offsetExists($offset): bool - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * - * @param integer $offset Offset - * - * @return mixed|null - */ - public function offsetGet($offset): mixed - { - return $this->container[$offset] ?? null; - } - - /** - * Sets value based on offset. - * - * @param int|null $offset Offset - * @param mixed $value Value to be set - * - * @return void - */ - public function offsetSet($offset, $value): void - { - if (is_null($offset)) { - $this->container[] = $value; - } else { - $this->container[$offset] = $value; - } - } - - /** - * Unsets offset. - * - * @param integer $offset Offset - * - * @return void - */ - public function offsetUnset($offset): void - { - unset($this->container[$offset]); - } - - /** - * Serializes the object to a value that can be serialized natively by json_encode(). - * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php - * - * @return mixed Returns data which can be serialized by json_encode(), which is a value - * of any type other than a resource. - */ - public function jsonSerialize(): mixed - { - return ObjectSerializer::sanitizeForSerialization($this); - } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString() - { - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } - - /** - * Gets a header-safe presentation of the object - * - * @return string - */ - public function toHeaderValue() - { - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/lib/Model/LoggingPapertrailResponse.php b/lib/Model/LoggingPapertrailResponse.php index 36c0492c..fdcf34e5 100644 --- a/lib/Model/LoggingPapertrailResponse.php +++ b/lib/Model/LoggingPapertrailResponse.php @@ -55,16 +55,16 @@ class LoggingPapertrailResponse implements ModelInterface, ArrayAccess, \JsonSer protected static $fastlyTypes = [ 'name' => 'string', 'placement' => 'string', - 'format_version' => 'int', 'response_condition' => 'string', 'format' => 'string', + 'format_version' => 'string', 'address' => 'string', 'port' => 'int', 'created_at' => '\DateTime', 'deleted_at' => '\DateTime', 'updated_at' => '\DateTime', 'service_id' => 'string', - 'version' => 'int' + 'version' => 'string' ]; /** @@ -77,9 +77,9 @@ class LoggingPapertrailResponse implements ModelInterface, ArrayAccess, \JsonSer protected static $fastlyFormats = [ 'name' => null, 'placement' => null, - 'format_version' => null, 'response_condition' => null, 'format' => null, + 'format_version' => null, 'address' => null, 'port' => null, 'created_at' => 'date-time', @@ -118,9 +118,9 @@ public static function fastlyFormats() protected static $attributeMap = [ 'name' => 'name', 'placement' => 'placement', - 'format_version' => 'format_version', 'response_condition' => 'response_condition', 'format' => 'format', + 'format_version' => 'format_version', 'address' => 'address', 'port' => 'port', 'created_at' => 'created_at', @@ -138,9 +138,9 @@ public static function fastlyFormats() protected static $setters = [ 'name' => 'setName', 'placement' => 'setPlacement', - 'format_version' => 'setFormatVersion', 'response_condition' => 'setResponseCondition', 'format' => 'setFormat', + 'format_version' => 'setFormatVersion', 'address' => 'setAddress', 'port' => 'setPort', 'created_at' => 'setCreatedAt', @@ -158,9 +158,9 @@ public static function fastlyFormats() protected static $getters = [ 'name' => 'getName', 'placement' => 'getPlacement', - 'format_version' => 'getFormatVersion', 'response_condition' => 'getResponseCondition', 'format' => 'getFormat', + 'format_version' => 'getFormatVersion', 'address' => 'getAddress', 'port' => 'getPort', 'created_at' => 'getCreatedAt', @@ -214,8 +214,8 @@ public function getModelName() const PLACEMENT_NONE = 'none'; const PLACEMENT_WAF_DEBUG = 'waf_debug'; const PLACEMENT_NULL = 'null'; - const FORMAT_VERSION_v1 = 1; - const FORMAT_VERSION_v2 = 2; + const FORMAT_VERSION_v1 = '1'; + const FORMAT_VERSION_v2 = '2'; /** * Gets allowable values of the enum @@ -261,9 +261,9 @@ public function __construct(array $data = null) { $this->container['name'] = $data['name'] ?? null; $this->container['placement'] = $data['placement'] ?? null; - $this->container['format_version'] = $data['format_version'] ?? self::FORMAT_VERSION_v2; $this->container['response_condition'] = $data['response_condition'] ?? null; $this->container['format'] = $data['format'] ?? '%h %l %u %t "%r" %>s %b'; + $this->container['format_version'] = $data['format_version'] ?? '2'; $this->container['address'] = $data['address'] ?? null; $this->container['port'] = $data['port'] ?? 514; $this->container['created_at'] = $data['created_at'] ?? null; @@ -374,83 +374,83 @@ public function setPlacement($placement) } /** - * Gets format_version + * Gets response_condition * - * @return int|null + * @return string|null */ - public function getFormatVersion() + public function getResponseCondition() { - return $this->container['format_version']; + return $this->container['response_condition']; } /** - * Sets format_version + * Sets response_condition * - * @param int|null $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. + * @param string|null $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. * * @return self */ - public function setFormatVersion($format_version) + public function setResponseCondition($response_condition) { - $allowedValues = $this->getFormatVersionAllowableValues(); - if (!is_null($format_version) && !in_array($format_version, $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value '%s' for 'format_version', must be one of '%s'", - $format_version, - implode("', '", $allowedValues) - ) - ); - } - $this->container['format_version'] = $format_version; + $this->container['response_condition'] = $response_condition; return $this; } /** - * Gets response_condition + * Gets format * * @return string|null */ - public function getResponseCondition() + public function getFormat() { - return $this->container['response_condition']; + return $this->container['format']; } /** - * Sets response_condition + * Sets format * - * @param string|null $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. + * @param string|null $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). * * @return self */ - public function setResponseCondition($response_condition) + public function setFormat($format) { - $this->container['response_condition'] = $response_condition; + $this->container['format'] = $format; return $this; } /** - * Gets format + * Gets format_version * * @return string|null */ - public function getFormat() + public function getFormatVersion() { - return $this->container['format']; + return $this->container['format_version']; } /** - * Sets format + * Sets format_version * - * @param string|null $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). + * @param string|null $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. * * @return self */ - public function setFormat($format) + public function setFormatVersion($format_version) { - $this->container['format'] = $format; + $allowedValues = $this->getFormatVersionAllowableValues(); + if (!is_null($format_version) && !in_array($format_version, $allowedValues, true)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value '%s' for 'format_version', must be one of '%s'", + $format_version, + implode("', '", $allowedValues) + ) + ); + } + $this->container['format_version'] = $format_version; return $this; } @@ -602,7 +602,7 @@ public function setServiceId($service_id) /** * Gets version * - * @return int|null + * @return string|null */ public function getVersion() { @@ -612,7 +612,7 @@ public function getVersion() /** * Sets version * - * @param int|null $version version + * @param string|null $version version * * @return self */ diff --git a/lib/Model/LoggingS3.php b/lib/Model/LoggingS3.php deleted file mode 100644 index ee4edf7d..00000000 --- a/lib/Model/LoggingS3.php +++ /dev/null @@ -1,1058 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class LoggingS3 implements ModelInterface, ArrayAccess, \JsonSerializable -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $fastlyModelName = 'logging_s3'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $fastlyTypes = [ - 'name' => 'string', - 'placement' => 'string', - 'format_version' => 'int', - 'response_condition' => 'string', - 'format' => 'string', - 'message_type' => 'string', - 'timestamp_format' => 'string', - 'period' => 'int', - 'gzip_level' => 'int', - 'compression_codec' => 'string', - 'access_key' => 'string', - 'acl' => 'string', - 'bucket_name' => 'string', - 'domain' => 'string', - 'iam_role' => 'string', - 'path' => 'string', - 'public_key' => 'string', - 'redundancy' => 'string', - 'secret_key' => 'string', - 'server_side_encryption_kms_key_id' => 'string', - 'server_side_encryption' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $fastlyFormats = [ - 'name' => null, - 'placement' => null, - 'format_version' => null, - 'response_condition' => null, - 'format' => null, - 'message_type' => null, - 'timestamp_format' => null, - 'period' => null, - 'gzip_level' => null, - 'compression_codec' => null, - 'access_key' => null, - 'acl' => null, - 'bucket_name' => null, - 'domain' => null, - 'iam_role' => null, - 'path' => null, - 'public_key' => null, - 'redundancy' => null, - 'secret_key' => null, - 'server_side_encryption_kms_key_id' => null, - 'server_side_encryption' => null - ]; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @return array - */ - public static function fastlyTypes() - { - return self::$fastlyTypes; - } - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @return array - */ - public static function fastlyFormats() - { - return self::$fastlyFormats; - } - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'name' => 'name', - 'placement' => 'placement', - 'format_version' => 'format_version', - 'response_condition' => 'response_condition', - 'format' => 'format', - 'message_type' => 'message_type', - 'timestamp_format' => 'timestamp_format', - 'period' => 'period', - 'gzip_level' => 'gzip_level', - 'compression_codec' => 'compression_codec', - 'access_key' => 'access_key', - 'acl' => 'acl', - 'bucket_name' => 'bucket_name', - 'domain' => 'domain', - 'iam_role' => 'iam_role', - 'path' => 'path', - 'public_key' => 'public_key', - 'redundancy' => 'redundancy', - 'secret_key' => 'secret_key', - 'server_side_encryption_kms_key_id' => 'server_side_encryption_kms_key_id', - 'server_side_encryption' => 'server_side_encryption' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'name' => 'setName', - 'placement' => 'setPlacement', - 'format_version' => 'setFormatVersion', - 'response_condition' => 'setResponseCondition', - 'format' => 'setFormat', - 'message_type' => 'setMessageType', - 'timestamp_format' => 'setTimestampFormat', - 'period' => 'setPeriod', - 'gzip_level' => 'setGzipLevel', - 'compression_codec' => 'setCompressionCodec', - 'access_key' => 'setAccessKey', - 'acl' => 'setAcl', - 'bucket_name' => 'setBucketName', - 'domain' => 'setDomain', - 'iam_role' => 'setIamRole', - 'path' => 'setPath', - 'public_key' => 'setPublicKey', - 'redundancy' => 'setRedundancy', - 'secret_key' => 'setSecretKey', - 'server_side_encryption_kms_key_id' => 'setServerSideEncryptionKmsKeyId', - 'server_side_encryption' => 'setServerSideEncryption' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'name' => 'getName', - 'placement' => 'getPlacement', - 'format_version' => 'getFormatVersion', - 'response_condition' => 'getResponseCondition', - 'format' => 'getFormat', - 'message_type' => 'getMessageType', - 'timestamp_format' => 'getTimestampFormat', - 'period' => 'getPeriod', - 'gzip_level' => 'getGzipLevel', - 'compression_codec' => 'getCompressionCodec', - 'access_key' => 'getAccessKey', - 'acl' => 'getAcl', - 'bucket_name' => 'getBucketName', - 'domain' => 'getDomain', - 'iam_role' => 'getIamRole', - 'path' => 'getPath', - 'public_key' => 'getPublicKey', - 'redundancy' => 'getRedundancy', - 'secret_key' => 'getSecretKey', - 'server_side_encryption_kms_key_id' => 'getServerSideEncryptionKmsKeyId', - 'server_side_encryption' => 'getServerSideEncryption' - ]; - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @return array - */ - public static function attributeMap() - { - return self::$attributeMap; - } - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @return array - */ - public static function setters() - { - return self::$setters; - } - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @return array - */ - public static function getters() - { - return self::$getters; - } - - /** - * The original name of the model. - * - * @return string - */ - public function getModelName() - { - return self::$fastlyModelName; - } - - const PLACEMENT_NONE = 'none'; - const PLACEMENT_WAF_DEBUG = 'waf_debug'; - const PLACEMENT_NULL = 'null'; - const FORMAT_VERSION_v1 = 1; - const FORMAT_VERSION_v2 = 2; - const MESSAGE_TYPE_CLASSIC = 'classic'; - const MESSAGE_TYPE_LOGGLY = 'loggly'; - const MESSAGE_TYPE_LOGPLEX = 'logplex'; - const MESSAGE_TYPE_BLANK = 'blank'; - const COMPRESSION_CODEC_ZSTD = 'zstd'; - const COMPRESSION_CODEC_SNAPPY = 'snappy'; - const COMPRESSION_CODEC_GZIP = 'gzip'; - - /** - * Gets allowable values of the enum - * - * @return string[] - */ - public function getPlacementAllowableValues() - { - return [ - self::PLACEMENT_NONE, - self::PLACEMENT_WAF_DEBUG, - self::PLACEMENT_NULL, - ]; - } - - /** - * Gets allowable values of the enum - * - * @return string[] - */ - public function getFormatVersionAllowableValues() - { - return [ - self::FORMAT_VERSION_v1, - self::FORMAT_VERSION_v2, - ]; - } - - /** - * Gets allowable values of the enum - * - * @return string[] - */ - public function getMessageTypeAllowableValues() - { - return [ - self::MESSAGE_TYPE_CLASSIC, - self::MESSAGE_TYPE_LOGGLY, - self::MESSAGE_TYPE_LOGPLEX, - self::MESSAGE_TYPE_BLANK, - ]; - } - - /** - * Gets allowable values of the enum - * - * @return string[] - */ - public function getCompressionCodecAllowableValues() - { - return [ - self::COMPRESSION_CODEC_ZSTD, - self::COMPRESSION_CODEC_SNAPPY, - self::COMPRESSION_CODEC_GZIP, - ]; - } - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['name'] = $data['name'] ?? null; - $this->container['placement'] = $data['placement'] ?? null; - $this->container['format_version'] = $data['format_version'] ?? self::FORMAT_VERSION_v2; - $this->container['response_condition'] = $data['response_condition'] ?? null; - $this->container['format'] = $data['format'] ?? '%h %l %u %t "%r" %>s %b'; - $this->container['message_type'] = $data['message_type'] ?? 'classic'; - $this->container['timestamp_format'] = $data['timestamp_format'] ?? null; - $this->container['period'] = $data['period'] ?? 3600; - $this->container['gzip_level'] = $data['gzip_level'] ?? 0; - $this->container['compression_codec'] = $data['compression_codec'] ?? null; - $this->container['access_key'] = $data['access_key'] ?? null; - $this->container['acl'] = $data['acl'] ?? null; - $this->container['bucket_name'] = $data['bucket_name'] ?? null; - $this->container['domain'] = $data['domain'] ?? null; - $this->container['iam_role'] = $data['iam_role'] ?? null; - $this->container['path'] = $data['path'] ?? 'null'; - $this->container['public_key'] = $data['public_key'] ?? 'null'; - $this->container['redundancy'] = $data['redundancy'] ?? 'null'; - $this->container['secret_key'] = $data['secret_key'] ?? null; - $this->container['server_side_encryption_kms_key_id'] = $data['server_side_encryption_kms_key_id'] ?? 'null'; - $this->container['server_side_encryption'] = $data['server_side_encryption'] ?? 'null'; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - - $allowedValues = $this->getPlacementAllowableValues(); - if (!is_null($this->container['placement']) && !in_array($this->container['placement'], $allowedValues, true)) { - $invalidProperties[] = sprintf( - "invalid value '%s' for 'placement', must be one of '%s'", - $this->container['placement'], - implode("', '", $allowedValues) - ); - } - - $allowedValues = $this->getFormatVersionAllowableValues(); - if (!is_null($this->container['format_version']) && !in_array($this->container['format_version'], $allowedValues, true)) { - $invalidProperties[] = sprintf( - "invalid value '%s' for 'format_version', must be one of '%s'", - $this->container['format_version'], - implode("', '", $allowedValues) - ); - } - - $allowedValues = $this->getMessageTypeAllowableValues(); - if (!is_null($this->container['message_type']) && !in_array($this->container['message_type'], $allowedValues, true)) { - $invalidProperties[] = sprintf( - "invalid value '%s' for 'message_type', must be one of '%s'", - $this->container['message_type'], - implode("', '", $allowedValues) - ); - } - - $allowedValues = $this->getCompressionCodecAllowableValues(); - if (!is_null($this->container['compression_codec']) && !in_array($this->container['compression_codec'], $allowedValues, true)) { - $invalidProperties[] = sprintf( - "invalid value '%s' for 'compression_codec', must be one of '%s'", - $this->container['compression_codec'], - implode("', '", $allowedValues) - ); - } - - return $invalidProperties; - } - - /** - * Validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - return count($this->listInvalidProperties()) === 0; - } - - - /** - * Gets name - * - * @return string|null - */ - public function getName() - { - return $this->container['name']; - } - - /** - * Sets name - * - * @param string|null $name The name for the real-time logging configuration. - * - * @return self - */ - public function setName($name) - { - $this->container['name'] = $name; - - return $this; - } - - /** - * Gets placement - * - * @return string|null - */ - public function getPlacement() - { - return $this->container['placement']; - } - - /** - * Sets placement - * - * @param string|null $placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. - * - * @return self - */ - public function setPlacement($placement) - { - $allowedValues = $this->getPlacementAllowableValues(); - if (!is_null($placement) && !in_array($placement, $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value '%s' for 'placement', must be one of '%s'", - $placement, - implode("', '", $allowedValues) - ) - ); - } - $this->container['placement'] = $placement; - - return $this; - } - - /** - * Gets format_version - * - * @return int|null - */ - public function getFormatVersion() - { - return $this->container['format_version']; - } - - /** - * Sets format_version - * - * @param int|null $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. - * - * @return self - */ - public function setFormatVersion($format_version) - { - $allowedValues = $this->getFormatVersionAllowableValues(); - if (!is_null($format_version) && !in_array($format_version, $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value '%s' for 'format_version', must be one of '%s'", - $format_version, - implode("', '", $allowedValues) - ) - ); - } - $this->container['format_version'] = $format_version; - - return $this; - } - - /** - * Gets response_condition - * - * @return string|null - */ - public function getResponseCondition() - { - return $this->container['response_condition']; - } - - /** - * Sets response_condition - * - * @param string|null $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. - * - * @return self - */ - public function setResponseCondition($response_condition) - { - $this->container['response_condition'] = $response_condition; - - return $this; - } - - /** - * Gets format - * - * @return string|null - */ - public function getFormat() - { - return $this->container['format']; - } - - /** - * Sets format - * - * @param string|null $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). - * - * @return self - */ - public function setFormat($format) - { - $this->container['format'] = $format; - - return $this; - } - - /** - * Gets message_type - * - * @return string|null - */ - public function getMessageType() - { - return $this->container['message_type']; - } - - /** - * Sets message_type - * - * @param string|null $message_type How the message should be formatted. - * - * @return self - */ - public function setMessageType($message_type) - { - $allowedValues = $this->getMessageTypeAllowableValues(); - if (!is_null($message_type) && !in_array($message_type, $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value '%s' for 'message_type', must be one of '%s'", - $message_type, - implode("', '", $allowedValues) - ) - ); - } - $this->container['message_type'] = $message_type; - - return $this; - } - - /** - * Gets timestamp_format - * - * @return string|null - */ - public function getTimestampFormat() - { - return $this->container['timestamp_format']; - } - - /** - * Sets timestamp_format - * - * @param string|null $timestamp_format A timestamp format - * - * @return self - */ - public function setTimestampFormat($timestamp_format) - { - $this->container['timestamp_format'] = $timestamp_format; - - return $this; - } - - /** - * Gets period - * - * @return int|null - */ - public function getPeriod() - { - return $this->container['period']; - } - - /** - * Sets period - * - * @param int|null $period How frequently log files are finalized so they can be available for reading (in seconds). - * - * @return self - */ - public function setPeriod($period) - { - $this->container['period'] = $period; - - return $this; - } - - /** - * Gets gzip_level - * - * @return int|null - */ - public function getGzipLevel() - { - return $this->container['gzip_level']; - } - - /** - * Sets gzip_level - * - * @param int|null $gzip_level The level of gzip encoding when sending logs (default `0`, no compression). Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. - * - * @return self - */ - public function setGzipLevel($gzip_level) - { - $this->container['gzip_level'] = $gzip_level; - - return $this; - } - - /** - * Gets compression_codec - * - * @return string|null - */ - public function getCompressionCodec() - { - return $this->container['compression_codec']; - } - - /** - * Sets compression_codec - * - * @param string|null $compression_codec The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. - * - * @return self - */ - public function setCompressionCodec($compression_codec) - { - $allowedValues = $this->getCompressionCodecAllowableValues(); - if (!is_null($compression_codec) && !in_array($compression_codec, $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value '%s' for 'compression_codec', must be one of '%s'", - $compression_codec, - implode("', '", $allowedValues) - ) - ); - } - $this->container['compression_codec'] = $compression_codec; - - return $this; - } - - /** - * Gets access_key - * - * @return string|null - */ - public function getAccessKey() - { - return $this->container['access_key']; - } - - /** - * Sets access_key - * - * @param string|null $access_key The access key for your S3 account. Not required if `iam_role` is provided. - * - * @return self - */ - public function setAccessKey($access_key) - { - $this->container['access_key'] = $access_key; - - return $this; - } - - /** - * Gets acl - * - * @return string|null - */ - public function getAcl() - { - return $this->container['acl']; - } - - /** - * Sets acl - * - * @param string|null $acl The access control list (ACL) specific request header. See the AWS documentation for [Access Control List (ACL) Specific Request Headers](https://docs.aws.amazon.com/AmazonS3/latest/API/mpUploadInitiate.html#initiate-mpu-acl-specific-request-headers) for more information. - * - * @return self - */ - public function setAcl($acl) - { - $this->container['acl'] = $acl; - - return $this; - } - - /** - * Gets bucket_name - * - * @return string|null - */ - public function getBucketName() - { - return $this->container['bucket_name']; - } - - /** - * Sets bucket_name - * - * @param string|null $bucket_name The bucket name for S3 account. - * - * @return self - */ - public function setBucketName($bucket_name) - { - $this->container['bucket_name'] = $bucket_name; - - return $this; - } - - /** - * Gets domain - * - * @return string|null - */ - public function getDomain() - { - return $this->container['domain']; - } - - /** - * Sets domain - * - * @param string|null $domain The domain of the Amazon S3 endpoint. - * - * @return self - */ - public function setDomain($domain) - { - $this->container['domain'] = $domain; - - return $this; - } - - /** - * Gets iam_role - * - * @return string|null - */ - public function getIamRole() - { - return $this->container['iam_role']; - } - - /** - * Sets iam_role - * - * @param string|null $iam_role The Amazon Resource Name (ARN) for the IAM role granting Fastly access to S3. Not required if `access_key` and `secret_key` are provided. - * - * @return self - */ - public function setIamRole($iam_role) - { - $this->container['iam_role'] = $iam_role; - - return $this; - } - - /** - * Gets path - * - * @return string|null - */ - public function getPath() - { - return $this->container['path']; - } - - /** - * Sets path - * - * @param string|null $path The path to upload logs to. - * - * @return self - */ - public function setPath($path) - { - $this->container['path'] = $path; - - return $this; - } - - /** - * Gets public_key - * - * @return string|null - */ - public function getPublicKey() - { - return $this->container['public_key']; - } - - /** - * Sets public_key - * - * @param string|null $public_key A PGP public key that Fastly will use to encrypt your log files before writing them to disk. - * - * @return self - */ - public function setPublicKey($public_key) - { - $this->container['public_key'] = $public_key; - - return $this; - } - - /** - * Gets redundancy - * - * @return string|null - */ - public function getRedundancy() - { - return $this->container['redundancy']; - } - - /** - * Sets redundancy - * - * @param string|null $redundancy The S3 redundancy level. - * - * @return self - */ - public function setRedundancy($redundancy) - { - $this->container['redundancy'] = $redundancy; - - return $this; - } - - /** - * Gets secret_key - * - * @return string|null - */ - public function getSecretKey() - { - return $this->container['secret_key']; - } - - /** - * Sets secret_key - * - * @param string|null $secret_key The secret key for your S3 account. Not required if `iam_role` is provided. - * - * @return self - */ - public function setSecretKey($secret_key) - { - $this->container['secret_key'] = $secret_key; - - return $this; - } - - /** - * Gets server_side_encryption_kms_key_id - * - * @return string|null - */ - public function getServerSideEncryptionKmsKeyId() - { - return $this->container['server_side_encryption_kms_key_id']; - } - - /** - * Sets server_side_encryption_kms_key_id - * - * @param string|null $server_side_encryption_kms_key_id Optional server-side KMS Key Id. Must be set if `server_side_encryption` is set to `aws:kms` or `AES256`. - * - * @return self - */ - public function setServerSideEncryptionKmsKeyId($server_side_encryption_kms_key_id) - { - $this->container['server_side_encryption_kms_key_id'] = $server_side_encryption_kms_key_id; - - return $this; - } - - /** - * Gets server_side_encryption - * - * @return string|null - */ - public function getServerSideEncryption() - { - return $this->container['server_side_encryption']; - } - - /** - * Sets server_side_encryption - * - * @param string|null $server_side_encryption Set this to `AES256` or `aws:kms` to enable S3 Server Side Encryption. - * - * @return self - */ - public function setServerSideEncryption($server_side_encryption) - { - $this->container['server_side_encryption'] = $server_side_encryption; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * - * @param integer $offset Offset - * - * @return boolean - */ - public function offsetExists($offset): bool - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * - * @param integer $offset Offset - * - * @return mixed|null - */ - public function offsetGet($offset): mixed - { - return $this->container[$offset] ?? null; - } - - /** - * Sets value based on offset. - * - * @param int|null $offset Offset - * @param mixed $value Value to be set - * - * @return void - */ - public function offsetSet($offset, $value): void - { - if (is_null($offset)) { - $this->container[] = $value; - } else { - $this->container[$offset] = $value; - } - } - - /** - * Unsets offset. - * - * @param integer $offset Offset - * - * @return void - */ - public function offsetUnset($offset): void - { - unset($this->container[$offset]); - } - - /** - * Serializes the object to a value that can be serialized natively by json_encode(). - * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php - * - * @return mixed Returns data which can be serialized by json_encode(), which is a value - * of any type other than a resource. - */ - public function jsonSerialize(): mixed - { - return ObjectSerializer::sanitizeForSerialization($this); - } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString() - { - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } - - /** - * Gets a header-safe presentation of the object - * - * @return string - */ - public function toHeaderValue() - { - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/lib/Model/LoggingS3AllOf.php b/lib/Model/LoggingS3Additional.php similarity index 98% rename from lib/Model/LoggingS3AllOf.php rename to lib/Model/LoggingS3Additional.php index 621b9020..950298e1 100644 --- a/lib/Model/LoggingS3AllOf.php +++ b/lib/Model/LoggingS3Additional.php @@ -1,6 +1,6 @@ 'string', 'placement' => 'string', - 'format_version' => 'int', 'response_condition' => 'string', 'format' => 'string', + 'format_version' => 'string', 'message_type' => 'string', 'timestamp_format' => 'string', - 'period' => 'int', - 'gzip_level' => 'int', 'compression_codec' => 'string', + 'period' => 'string', + 'gzip_level' => 'string', + 'created_at' => '\DateTime', + 'deleted_at' => '\DateTime', + 'updated_at' => '\DateTime', + 'service_id' => 'string', + 'version' => 'string', 'access_key' => 'string', 'acl' => 'string', 'bucket_name' => 'string', @@ -73,12 +78,7 @@ class LoggingS3Response implements ModelInterface, ArrayAccess, \JsonSerializabl 'redundancy' => 'string', 'secret_key' => 'string', 'server_side_encryption_kms_key_id' => 'string', - 'server_side_encryption' => 'string', - 'created_at' => '\DateTime', - 'deleted_at' => '\DateTime', - 'updated_at' => '\DateTime', - 'service_id' => 'string', - 'version' => 'int' + 'server_side_encryption' => 'string' ]; /** @@ -91,14 +91,19 @@ class LoggingS3Response implements ModelInterface, ArrayAccess, \JsonSerializabl protected static $fastlyFormats = [ 'name' => null, 'placement' => null, - 'format_version' => null, 'response_condition' => null, 'format' => null, + 'format_version' => null, 'message_type' => null, 'timestamp_format' => null, + 'compression_codec' => null, 'period' => null, 'gzip_level' => null, - 'compression_codec' => null, + 'created_at' => 'date-time', + 'deleted_at' => 'date-time', + 'updated_at' => 'date-time', + 'service_id' => null, + 'version' => null, 'access_key' => null, 'acl' => null, 'bucket_name' => null, @@ -109,12 +114,7 @@ class LoggingS3Response implements ModelInterface, ArrayAccess, \JsonSerializabl 'redundancy' => null, 'secret_key' => null, 'server_side_encryption_kms_key_id' => null, - 'server_side_encryption' => null, - 'created_at' => 'date-time', - 'deleted_at' => 'date-time', - 'updated_at' => 'date-time', - 'service_id' => null, - 'version' => null + 'server_side_encryption' => null ]; /** @@ -146,14 +146,19 @@ public static function fastlyFormats() protected static $attributeMap = [ 'name' => 'name', 'placement' => 'placement', - 'format_version' => 'format_version', 'response_condition' => 'response_condition', 'format' => 'format', + 'format_version' => 'format_version', 'message_type' => 'message_type', 'timestamp_format' => 'timestamp_format', + 'compression_codec' => 'compression_codec', 'period' => 'period', 'gzip_level' => 'gzip_level', - 'compression_codec' => 'compression_codec', + 'created_at' => 'created_at', + 'deleted_at' => 'deleted_at', + 'updated_at' => 'updated_at', + 'service_id' => 'service_id', + 'version' => 'version', 'access_key' => 'access_key', 'acl' => 'acl', 'bucket_name' => 'bucket_name', @@ -164,12 +169,7 @@ public static function fastlyFormats() 'redundancy' => 'redundancy', 'secret_key' => 'secret_key', 'server_side_encryption_kms_key_id' => 'server_side_encryption_kms_key_id', - 'server_side_encryption' => 'server_side_encryption', - 'created_at' => 'created_at', - 'deleted_at' => 'deleted_at', - 'updated_at' => 'updated_at', - 'service_id' => 'service_id', - 'version' => 'version' + 'server_side_encryption' => 'server_side_encryption' ]; /** @@ -180,14 +180,19 @@ public static function fastlyFormats() protected static $setters = [ 'name' => 'setName', 'placement' => 'setPlacement', - 'format_version' => 'setFormatVersion', 'response_condition' => 'setResponseCondition', 'format' => 'setFormat', + 'format_version' => 'setFormatVersion', 'message_type' => 'setMessageType', 'timestamp_format' => 'setTimestampFormat', + 'compression_codec' => 'setCompressionCodec', 'period' => 'setPeriod', 'gzip_level' => 'setGzipLevel', - 'compression_codec' => 'setCompressionCodec', + 'created_at' => 'setCreatedAt', + 'deleted_at' => 'setDeletedAt', + 'updated_at' => 'setUpdatedAt', + 'service_id' => 'setServiceId', + 'version' => 'setVersion', 'access_key' => 'setAccessKey', 'acl' => 'setAcl', 'bucket_name' => 'setBucketName', @@ -198,12 +203,7 @@ public static function fastlyFormats() 'redundancy' => 'setRedundancy', 'secret_key' => 'setSecretKey', 'server_side_encryption_kms_key_id' => 'setServerSideEncryptionKmsKeyId', - 'server_side_encryption' => 'setServerSideEncryption', - 'created_at' => 'setCreatedAt', - 'deleted_at' => 'setDeletedAt', - 'updated_at' => 'setUpdatedAt', - 'service_id' => 'setServiceId', - 'version' => 'setVersion' + 'server_side_encryption' => 'setServerSideEncryption' ]; /** @@ -214,14 +214,19 @@ public static function fastlyFormats() protected static $getters = [ 'name' => 'getName', 'placement' => 'getPlacement', - 'format_version' => 'getFormatVersion', 'response_condition' => 'getResponseCondition', 'format' => 'getFormat', + 'format_version' => 'getFormatVersion', 'message_type' => 'getMessageType', 'timestamp_format' => 'getTimestampFormat', + 'compression_codec' => 'getCompressionCodec', 'period' => 'getPeriod', 'gzip_level' => 'getGzipLevel', - 'compression_codec' => 'getCompressionCodec', + 'created_at' => 'getCreatedAt', + 'deleted_at' => 'getDeletedAt', + 'updated_at' => 'getUpdatedAt', + 'service_id' => 'getServiceId', + 'version' => 'getVersion', 'access_key' => 'getAccessKey', 'acl' => 'getAcl', 'bucket_name' => 'getBucketName', @@ -232,12 +237,7 @@ public static function fastlyFormats() 'redundancy' => 'getRedundancy', 'secret_key' => 'getSecretKey', 'server_side_encryption_kms_key_id' => 'getServerSideEncryptionKmsKeyId', - 'server_side_encryption' => 'getServerSideEncryption', - 'created_at' => 'getCreatedAt', - 'deleted_at' => 'getDeletedAt', - 'updated_at' => 'getUpdatedAt', - 'service_id' => 'getServiceId', - 'version' => 'getVersion' + 'server_side_encryption' => 'getServerSideEncryption' ]; /** @@ -284,8 +284,8 @@ public function getModelName() const PLACEMENT_NONE = 'none'; const PLACEMENT_WAF_DEBUG = 'waf_debug'; const PLACEMENT_NULL = 'null'; - const FORMAT_VERSION_v1 = 1; - const FORMAT_VERSION_v2 = 2; + const FORMAT_VERSION_v1 = '1'; + const FORMAT_VERSION_v2 = '2'; const MESSAGE_TYPE_CLASSIC = 'classic'; const MESSAGE_TYPE_LOGGLY = 'loggly'; const MESSAGE_TYPE_LOGPLEX = 'logplex'; @@ -367,14 +367,19 @@ public function __construct(array $data = null) { $this->container['name'] = $data['name'] ?? null; $this->container['placement'] = $data['placement'] ?? null; - $this->container['format_version'] = $data['format_version'] ?? self::FORMAT_VERSION_v2; $this->container['response_condition'] = $data['response_condition'] ?? null; $this->container['format'] = $data['format'] ?? '%h %l %u %t "%r" %>s %b'; + $this->container['format_version'] = $data['format_version'] ?? '2'; $this->container['message_type'] = $data['message_type'] ?? 'classic'; $this->container['timestamp_format'] = $data['timestamp_format'] ?? null; - $this->container['period'] = $data['period'] ?? 3600; - $this->container['gzip_level'] = $data['gzip_level'] ?? 0; $this->container['compression_codec'] = $data['compression_codec'] ?? null; + $this->container['period'] = $data['period'] ?? '3600'; + $this->container['gzip_level'] = $data['gzip_level'] ?? '0'; + $this->container['created_at'] = $data['created_at'] ?? null; + $this->container['deleted_at'] = $data['deleted_at'] ?? null; + $this->container['updated_at'] = $data['updated_at'] ?? null; + $this->container['service_id'] = $data['service_id'] ?? null; + $this->container['version'] = $data['version'] ?? null; $this->container['access_key'] = $data['access_key'] ?? null; $this->container['acl'] = $data['acl'] ?? null; $this->container['bucket_name'] = $data['bucket_name'] ?? null; @@ -386,11 +391,6 @@ public function __construct(array $data = null) $this->container['secret_key'] = $data['secret_key'] ?? null; $this->container['server_side_encryption_kms_key_id'] = $data['server_side_encryption_kms_key_id'] ?? 'null'; $this->container['server_side_encryption'] = $data['server_side_encryption'] ?? 'null'; - $this->container['created_at'] = $data['created_at'] ?? null; - $this->container['deleted_at'] = $data['deleted_at'] ?? null; - $this->container['updated_at'] = $data['updated_at'] ?? null; - $this->container['service_id'] = $data['service_id'] ?? null; - $this->container['version'] = $data['version'] ?? null; } /** @@ -512,83 +512,83 @@ public function setPlacement($placement) } /** - * Gets format_version + * Gets response_condition * - * @return int|null + * @return string|null */ - public function getFormatVersion() + public function getResponseCondition() { - return $this->container['format_version']; + return $this->container['response_condition']; } /** - * Sets format_version + * Sets response_condition * - * @param int|null $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. + * @param string|null $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. * * @return self */ - public function setFormatVersion($format_version) + public function setResponseCondition($response_condition) { - $allowedValues = $this->getFormatVersionAllowableValues(); - if (!is_null($format_version) && !in_array($format_version, $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value '%s' for 'format_version', must be one of '%s'", - $format_version, - implode("', '", $allowedValues) - ) - ); - } - $this->container['format_version'] = $format_version; + $this->container['response_condition'] = $response_condition; return $this; } /** - * Gets response_condition + * Gets format * * @return string|null */ - public function getResponseCondition() + public function getFormat() { - return $this->container['response_condition']; + return $this->container['format']; } /** - * Sets response_condition + * Sets format * - * @param string|null $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. + * @param string|null $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). * * @return self */ - public function setResponseCondition($response_condition) + public function setFormat($format) { - $this->container['response_condition'] = $response_condition; + $this->container['format'] = $format; return $this; } /** - * Gets format + * Gets format_version * * @return string|null */ - public function getFormat() + public function getFormatVersion() { - return $this->container['format']; + return $this->container['format_version']; } /** - * Sets format + * Sets format_version * - * @param string|null $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). + * @param string|null $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. * * @return self */ - public function setFormat($format) + public function setFormatVersion($format_version) { - $this->container['format'] = $format; + $allowedValues = $this->getFormatVersionAllowableValues(); + if (!is_null($format_version) && !in_array($format_version, $allowedValues, true)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value '%s' for 'format_version', must be one of '%s'", + $format_version, + implode("', '", $allowedValues) + ) + ); + } + $this->container['format_version'] = $format_version; return $this; } @@ -651,10 +651,44 @@ public function setTimestampFormat($timestamp_format) return $this; } + /** + * Gets compression_codec + * + * @return string|null + */ + public function getCompressionCodec() + { + return $this->container['compression_codec']; + } + + /** + * Sets compression_codec + * + * @param string|null $compression_codec The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. + * + * @return self + */ + public function setCompressionCodec($compression_codec) + { + $allowedValues = $this->getCompressionCodecAllowableValues(); + if (!is_null($compression_codec) && !in_array($compression_codec, $allowedValues, true)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value '%s' for 'compression_codec', must be one of '%s'", + $compression_codec, + implode("', '", $allowedValues) + ) + ); + } + $this->container['compression_codec'] = $compression_codec; + + return $this; + } + /** * Gets period * - * @return int|null + * @return string|null */ public function getPeriod() { @@ -664,7 +698,7 @@ public function getPeriod() /** * Sets period * - * @param int|null $period How frequently log files are finalized so they can be available for reading (in seconds). + * @param string|null $period How frequently log files are finalized so they can be available for reading (in seconds). * * @return self */ @@ -678,7 +712,7 @@ public function setPeriod($period) /** * Gets gzip_level * - * @return int|null + * @return string|null */ public function getGzipLevel() { @@ -688,7 +722,7 @@ public function getGzipLevel() /** * Sets gzip_level * - * @param int|null $gzip_level The level of gzip encoding when sending logs (default `0`, no compression). Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. + * @param string|null $gzip_level The level of gzip encoding when sending logs (default `0`, no compression). Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. * * @return self */ @@ -700,35 +734,121 @@ public function setGzipLevel($gzip_level) } /** - * Gets compression_codec + * Gets created_at + * + * @return \DateTime|null + */ + public function getCreatedAt() + { + return $this->container['created_at']; + } + + /** + * Sets created_at + * + * @param \DateTime|null $created_at Date and time in ISO 8601 format. + * + * @return self + */ + public function setCreatedAt($created_at) + { + $this->container['created_at'] = $created_at; + + return $this; + } + + /** + * Gets deleted_at + * + * @return \DateTime|null + */ + public function getDeletedAt() + { + return $this->container['deleted_at']; + } + + /** + * Sets deleted_at + * + * @param \DateTime|null $deleted_at Date and time in ISO 8601 format. + * + * @return self + */ + public function setDeletedAt($deleted_at) + { + $this->container['deleted_at'] = $deleted_at; + + return $this; + } + + /** + * Gets updated_at + * + * @return \DateTime|null + */ + public function getUpdatedAt() + { + return $this->container['updated_at']; + } + + /** + * Sets updated_at + * + * @param \DateTime|null $updated_at Date and time in ISO 8601 format. + * + * @return self + */ + public function setUpdatedAt($updated_at) + { + $this->container['updated_at'] = $updated_at; + + return $this; + } + + /** + * Gets service_id * * @return string|null */ - public function getCompressionCodec() + public function getServiceId() { - return $this->container['compression_codec']; + return $this->container['service_id']; } /** - * Sets compression_codec + * Sets service_id * - * @param string|null $compression_codec The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. + * @param string|null $service_id service_id * * @return self */ - public function setCompressionCodec($compression_codec) + public function setServiceId($service_id) { - $allowedValues = $this->getCompressionCodecAllowableValues(); - if (!is_null($compression_codec) && !in_array($compression_codec, $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value '%s' for 'compression_codec', must be one of '%s'", - $compression_codec, - implode("', '", $allowedValues) - ) - ); - } - $this->container['compression_codec'] = $compression_codec; + $this->container['service_id'] = $service_id; + + return $this; + } + + /** + * Gets version + * + * @return string|null + */ + public function getVersion() + { + return $this->container['version']; + } + + /** + * Sets version + * + * @param string|null $version version + * + * @return self + */ + public function setVersion($version) + { + $this->container['version'] = $version; return $this; } @@ -996,126 +1116,6 @@ public function setServerSideEncryption($server_side_encryption) return $this; } - - /** - * Gets created_at - * - * @return \DateTime|null - */ - public function getCreatedAt() - { - return $this->container['created_at']; - } - - /** - * Sets created_at - * - * @param \DateTime|null $created_at Date and time in ISO 8601 format. - * - * @return self - */ - public function setCreatedAt($created_at) - { - $this->container['created_at'] = $created_at; - - return $this; - } - - /** - * Gets deleted_at - * - * @return \DateTime|null - */ - public function getDeletedAt() - { - return $this->container['deleted_at']; - } - - /** - * Sets deleted_at - * - * @param \DateTime|null $deleted_at Date and time in ISO 8601 format. - * - * @return self - */ - public function setDeletedAt($deleted_at) - { - $this->container['deleted_at'] = $deleted_at; - - return $this; - } - - /** - * Gets updated_at - * - * @return \DateTime|null - */ - public function getUpdatedAt() - { - return $this->container['updated_at']; - } - - /** - * Sets updated_at - * - * @param \DateTime|null $updated_at Date and time in ISO 8601 format. - * - * @return self - */ - public function setUpdatedAt($updated_at) - { - $this->container['updated_at'] = $updated_at; - - return $this; - } - - /** - * Gets service_id - * - * @return string|null - */ - public function getServiceId() - { - return $this->container['service_id']; - } - - /** - * Sets service_id - * - * @param string|null $service_id service_id - * - * @return self - */ - public function setServiceId($service_id) - { - $this->container['service_id'] = $service_id; - - return $this; - } - - /** - * Gets version - * - * @return int|null - */ - public function getVersion() - { - return $this->container['version']; - } - - /** - * Sets version - * - * @param int|null $version version - * - * @return self - */ - public function setVersion($version) - { - $this->container['version'] = $version; - - return $this; - } /** * Returns true if offset exists. False otherwise. * diff --git a/lib/Model/LoggingScalyr.php b/lib/Model/LoggingScalyr.php deleted file mode 100644 index f5e3e4ae..00000000 --- a/lib/Model/LoggingScalyr.php +++ /dev/null @@ -1,628 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class LoggingScalyr implements ModelInterface, ArrayAccess, \JsonSerializable -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $fastlyModelName = 'logging_scalyr'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $fastlyTypes = [ - 'name' => 'string', - 'placement' => 'string', - 'format_version' => 'int', - 'response_condition' => 'string', - 'format' => 'string', - 'region' => 'string', - 'token' => 'string', - 'project_id' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $fastlyFormats = [ - 'name' => null, - 'placement' => null, - 'format_version' => null, - 'response_condition' => null, - 'format' => null, - 'region' => null, - 'token' => null, - 'project_id' => null - ]; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @return array - */ - public static function fastlyTypes() - { - return self::$fastlyTypes; - } - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @return array - */ - public static function fastlyFormats() - { - return self::$fastlyFormats; - } - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'name' => 'name', - 'placement' => 'placement', - 'format_version' => 'format_version', - 'response_condition' => 'response_condition', - 'format' => 'format', - 'region' => 'region', - 'token' => 'token', - 'project_id' => 'project_id' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'name' => 'setName', - 'placement' => 'setPlacement', - 'format_version' => 'setFormatVersion', - 'response_condition' => 'setResponseCondition', - 'format' => 'setFormat', - 'region' => 'setRegion', - 'token' => 'setToken', - 'project_id' => 'setProjectId' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'name' => 'getName', - 'placement' => 'getPlacement', - 'format_version' => 'getFormatVersion', - 'response_condition' => 'getResponseCondition', - 'format' => 'getFormat', - 'region' => 'getRegion', - 'token' => 'getToken', - 'project_id' => 'getProjectId' - ]; - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @return array - */ - public static function attributeMap() - { - return self::$attributeMap; - } - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @return array - */ - public static function setters() - { - return self::$setters; - } - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @return array - */ - public static function getters() - { - return self::$getters; - } - - /** - * The original name of the model. - * - * @return string - */ - public function getModelName() - { - return self::$fastlyModelName; - } - - const PLACEMENT_NONE = 'none'; - const PLACEMENT_WAF_DEBUG = 'waf_debug'; - const PLACEMENT_NULL = 'null'; - const FORMAT_VERSION_v1 = 1; - const FORMAT_VERSION_v2 = 2; - const REGION_US = 'US'; - const REGION_EU = 'EU'; - - /** - * Gets allowable values of the enum - * - * @return string[] - */ - public function getPlacementAllowableValues() - { - return [ - self::PLACEMENT_NONE, - self::PLACEMENT_WAF_DEBUG, - self::PLACEMENT_NULL, - ]; - } - - /** - * Gets allowable values of the enum - * - * @return string[] - */ - public function getFormatVersionAllowableValues() - { - return [ - self::FORMAT_VERSION_v1, - self::FORMAT_VERSION_v2, - ]; - } - - /** - * Gets allowable values of the enum - * - * @return string[] - */ - public function getRegionAllowableValues() - { - return [ - self::REGION_US, - self::REGION_EU, - ]; - } - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['name'] = $data['name'] ?? null; - $this->container['placement'] = $data['placement'] ?? null; - $this->container['format_version'] = $data['format_version'] ?? self::FORMAT_VERSION_v2; - $this->container['response_condition'] = $data['response_condition'] ?? null; - $this->container['format'] = $data['format'] ?? '%h %l %u %t "%r" %>s %b'; - $this->container['region'] = $data['region'] ?? 'US'; - $this->container['token'] = $data['token'] ?? null; - $this->container['project_id'] = $data['project_id'] ?? 'logplex'; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - - $allowedValues = $this->getPlacementAllowableValues(); - if (!is_null($this->container['placement']) && !in_array($this->container['placement'], $allowedValues, true)) { - $invalidProperties[] = sprintf( - "invalid value '%s' for 'placement', must be one of '%s'", - $this->container['placement'], - implode("', '", $allowedValues) - ); - } - - $allowedValues = $this->getFormatVersionAllowableValues(); - if (!is_null($this->container['format_version']) && !in_array($this->container['format_version'], $allowedValues, true)) { - $invalidProperties[] = sprintf( - "invalid value '%s' for 'format_version', must be one of '%s'", - $this->container['format_version'], - implode("', '", $allowedValues) - ); - } - - $allowedValues = $this->getRegionAllowableValues(); - if (!is_null($this->container['region']) && !in_array($this->container['region'], $allowedValues, true)) { - $invalidProperties[] = sprintf( - "invalid value '%s' for 'region', must be one of '%s'", - $this->container['region'], - implode("', '", $allowedValues) - ); - } - - return $invalidProperties; - } - - /** - * Validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - return count($this->listInvalidProperties()) === 0; - } - - - /** - * Gets name - * - * @return string|null - */ - public function getName() - { - return $this->container['name']; - } - - /** - * Sets name - * - * @param string|null $name The name for the real-time logging configuration. - * - * @return self - */ - public function setName($name) - { - $this->container['name'] = $name; - - return $this; - } - - /** - * Gets placement - * - * @return string|null - */ - public function getPlacement() - { - return $this->container['placement']; - } - - /** - * Sets placement - * - * @param string|null $placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. - * - * @return self - */ - public function setPlacement($placement) - { - $allowedValues = $this->getPlacementAllowableValues(); - if (!is_null($placement) && !in_array($placement, $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value '%s' for 'placement', must be one of '%s'", - $placement, - implode("', '", $allowedValues) - ) - ); - } - $this->container['placement'] = $placement; - - return $this; - } - - /** - * Gets format_version - * - * @return int|null - */ - public function getFormatVersion() - { - return $this->container['format_version']; - } - - /** - * Sets format_version - * - * @param int|null $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. - * - * @return self - */ - public function setFormatVersion($format_version) - { - $allowedValues = $this->getFormatVersionAllowableValues(); - if (!is_null($format_version) && !in_array($format_version, $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value '%s' for 'format_version', must be one of '%s'", - $format_version, - implode("', '", $allowedValues) - ) - ); - } - $this->container['format_version'] = $format_version; - - return $this; - } - - /** - * Gets response_condition - * - * @return string|null - */ - public function getResponseCondition() - { - return $this->container['response_condition']; - } - - /** - * Sets response_condition - * - * @param string|null $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. - * - * @return self - */ - public function setResponseCondition($response_condition) - { - $this->container['response_condition'] = $response_condition; - - return $this; - } - - /** - * Gets format - * - * @return string|null - */ - public function getFormat() - { - return $this->container['format']; - } - - /** - * Sets format - * - * @param string|null $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). - * - * @return self - */ - public function setFormat($format) - { - $this->container['format'] = $format; - - return $this; - } - - /** - * Gets region - * - * @return string|null - */ - public function getRegion() - { - return $this->container['region']; - } - - /** - * Sets region - * - * @param string|null $region The region that log data will be sent to. - * - * @return self - */ - public function setRegion($region) - { - $allowedValues = $this->getRegionAllowableValues(); - if (!is_null($region) && !in_array($region, $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value '%s' for 'region', must be one of '%s'", - $region, - implode("', '", $allowedValues) - ) - ); - } - $this->container['region'] = $region; - - return $this; - } - - /** - * Gets token - * - * @return string|null - */ - public function getToken() - { - return $this->container['token']; - } - - /** - * Sets token - * - * @param string|null $token The token to use for authentication ([https://www.scalyr.com/keys](https://www.scalyr.com/keys)). - * - * @return self - */ - public function setToken($token) - { - $this->container['token'] = $token; - - return $this; - } - - /** - * Gets project_id - * - * @return string|null - */ - public function getProjectId() - { - return $this->container['project_id']; - } - - /** - * Sets project_id - * - * @param string|null $project_id The name of the logfile within Scalyr. - * - * @return self - */ - public function setProjectId($project_id) - { - $this->container['project_id'] = $project_id; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * - * @param integer $offset Offset - * - * @return boolean - */ - public function offsetExists($offset): bool - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * - * @param integer $offset Offset - * - * @return mixed|null - */ - public function offsetGet($offset): mixed - { - return $this->container[$offset] ?? null; - } - - /** - * Sets value based on offset. - * - * @param int|null $offset Offset - * @param mixed $value Value to be set - * - * @return void - */ - public function offsetSet($offset, $value): void - { - if (is_null($offset)) { - $this->container[] = $value; - } else { - $this->container[$offset] = $value; - } - } - - /** - * Unsets offset. - * - * @param integer $offset Offset - * - * @return void - */ - public function offsetUnset($offset): void - { - unset($this->container[$offset]); - } - - /** - * Serializes the object to a value that can be serialized natively by json_encode(). - * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php - * - * @return mixed Returns data which can be serialized by json_encode(), which is a value - * of any type other than a resource. - */ - public function jsonSerialize(): mixed - { - return ObjectSerializer::sanitizeForSerialization($this); - } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString() - { - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } - - /** - * Gets a header-safe presentation of the object - * - * @return string - */ - public function toHeaderValue() - { - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/lib/Model/LoggingScalyrAllOf.php b/lib/Model/LoggingScalyrAdditional.php similarity index 97% rename from lib/Model/LoggingScalyrAllOf.php rename to lib/Model/LoggingScalyrAdditional.php index ce325bf4..d050c07b 100644 --- a/lib/Model/LoggingScalyrAllOf.php +++ b/lib/Model/LoggingScalyrAdditional.php @@ -1,6 +1,6 @@ 'string', 'placement' => 'string', - 'format_version' => 'int', 'response_condition' => 'string', 'format' => 'string', + 'format_version' => 'string', 'region' => 'string', 'token' => 'string', 'project_id' => 'string', @@ -65,7 +65,7 @@ class LoggingScalyrResponse implements ModelInterface, ArrayAccess, \JsonSeriali 'deleted_at' => '\DateTime', 'updated_at' => '\DateTime', 'service_id' => 'string', - 'version' => 'int' + 'version' => 'string' ]; /** @@ -78,9 +78,9 @@ class LoggingScalyrResponse implements ModelInterface, ArrayAccess, \JsonSeriali protected static $fastlyFormats = [ 'name' => null, 'placement' => null, - 'format_version' => null, 'response_condition' => null, 'format' => null, + 'format_version' => null, 'region' => null, 'token' => null, 'project_id' => null, @@ -120,9 +120,9 @@ public static function fastlyFormats() protected static $attributeMap = [ 'name' => 'name', 'placement' => 'placement', - 'format_version' => 'format_version', 'response_condition' => 'response_condition', 'format' => 'format', + 'format_version' => 'format_version', 'region' => 'region', 'token' => 'token', 'project_id' => 'project_id', @@ -141,9 +141,9 @@ public static function fastlyFormats() protected static $setters = [ 'name' => 'setName', 'placement' => 'setPlacement', - 'format_version' => 'setFormatVersion', 'response_condition' => 'setResponseCondition', 'format' => 'setFormat', + 'format_version' => 'setFormatVersion', 'region' => 'setRegion', 'token' => 'setToken', 'project_id' => 'setProjectId', @@ -162,9 +162,9 @@ public static function fastlyFormats() protected static $getters = [ 'name' => 'getName', 'placement' => 'getPlacement', - 'format_version' => 'getFormatVersion', 'response_condition' => 'getResponseCondition', 'format' => 'getFormat', + 'format_version' => 'getFormatVersion', 'region' => 'getRegion', 'token' => 'getToken', 'project_id' => 'getProjectId', @@ -219,8 +219,8 @@ public function getModelName() const PLACEMENT_NONE = 'none'; const PLACEMENT_WAF_DEBUG = 'waf_debug'; const PLACEMENT_NULL = 'null'; - const FORMAT_VERSION_v1 = 1; - const FORMAT_VERSION_v2 = 2; + const FORMAT_VERSION_v1 = '1'; + const FORMAT_VERSION_v2 = '2'; const REGION_US = 'US'; const REGION_EU = 'EU'; @@ -281,9 +281,9 @@ public function __construct(array $data = null) { $this->container['name'] = $data['name'] ?? null; $this->container['placement'] = $data['placement'] ?? null; - $this->container['format_version'] = $data['format_version'] ?? self::FORMAT_VERSION_v2; $this->container['response_condition'] = $data['response_condition'] ?? null; $this->container['format'] = $data['format'] ?? '%h %l %u %t "%r" %>s %b'; + $this->container['format_version'] = $data['format_version'] ?? '2'; $this->container['region'] = $data['region'] ?? 'US'; $this->container['token'] = $data['token'] ?? null; $this->container['project_id'] = $data['project_id'] ?? 'logplex'; @@ -404,83 +404,83 @@ public function setPlacement($placement) } /** - * Gets format_version + * Gets response_condition * - * @return int|null + * @return string|null */ - public function getFormatVersion() + public function getResponseCondition() { - return $this->container['format_version']; + return $this->container['response_condition']; } /** - * Sets format_version + * Sets response_condition * - * @param int|null $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. + * @param string|null $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. * * @return self */ - public function setFormatVersion($format_version) + public function setResponseCondition($response_condition) { - $allowedValues = $this->getFormatVersionAllowableValues(); - if (!is_null($format_version) && !in_array($format_version, $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value '%s' for 'format_version', must be one of '%s'", - $format_version, - implode("', '", $allowedValues) - ) - ); - } - $this->container['format_version'] = $format_version; + $this->container['response_condition'] = $response_condition; return $this; } /** - * Gets response_condition + * Gets format * * @return string|null */ - public function getResponseCondition() + public function getFormat() { - return $this->container['response_condition']; + return $this->container['format']; } /** - * Sets response_condition + * Sets format * - * @param string|null $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. + * @param string|null $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). * * @return self */ - public function setResponseCondition($response_condition) + public function setFormat($format) { - $this->container['response_condition'] = $response_condition; + $this->container['format'] = $format; return $this; } /** - * Gets format + * Gets format_version * * @return string|null */ - public function getFormat() + public function getFormatVersion() { - return $this->container['format']; + return $this->container['format_version']; } /** - * Sets format + * Sets format_version * - * @param string|null $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). + * @param string|null $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. * * @return self */ - public function setFormat($format) + public function setFormatVersion($format_version) { - $this->container['format'] = $format; + $allowedValues = $this->getFormatVersionAllowableValues(); + if (!is_null($format_version) && !in_array($format_version, $allowedValues, true)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value '%s' for 'format_version', must be one of '%s'", + $format_version, + implode("', '", $allowedValues) + ) + ); + } + $this->container['format_version'] = $format_version; return $this; } @@ -666,7 +666,7 @@ public function setServiceId($service_id) /** * Gets version * - * @return int|null + * @return string|null */ public function getVersion() { @@ -676,7 +676,7 @@ public function getVersion() /** * Sets version * - * @param int|null $version version + * @param string|null $version version * * @return self */ diff --git a/lib/Model/LoggingSftp.php b/lib/Model/LoggingSftp.php deleted file mode 100644 index 16f864e9..00000000 --- a/lib/Model/LoggingSftp.php +++ /dev/null @@ -1,968 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class LoggingSftp implements ModelInterface, ArrayAccess, \JsonSerializable -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $fastlyModelName = 'logging_sftp'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $fastlyTypes = [ - 'name' => 'string', - 'placement' => 'string', - 'format_version' => 'int', - 'response_condition' => 'string', - 'format' => 'string', - 'message_type' => 'string', - 'timestamp_format' => 'string', - 'period' => 'int', - 'gzip_level' => 'int', - 'compression_codec' => 'string', - 'address' => 'string', - 'port' => 'int', - 'password' => 'string', - 'path' => 'string', - 'public_key' => 'string', - 'secret_key' => 'string', - 'ssh_known_hosts' => 'string', - 'user' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $fastlyFormats = [ - 'name' => null, - 'placement' => null, - 'format_version' => null, - 'response_condition' => null, - 'format' => null, - 'message_type' => null, - 'timestamp_format' => null, - 'period' => null, - 'gzip_level' => null, - 'compression_codec' => null, - 'address' => null, - 'port' => null, - 'password' => null, - 'path' => null, - 'public_key' => null, - 'secret_key' => null, - 'ssh_known_hosts' => null, - 'user' => null - ]; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @return array - */ - public static function fastlyTypes() - { - return self::$fastlyTypes; - } - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @return array - */ - public static function fastlyFormats() - { - return self::$fastlyFormats; - } - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'name' => 'name', - 'placement' => 'placement', - 'format_version' => 'format_version', - 'response_condition' => 'response_condition', - 'format' => 'format', - 'message_type' => 'message_type', - 'timestamp_format' => 'timestamp_format', - 'period' => 'period', - 'gzip_level' => 'gzip_level', - 'compression_codec' => 'compression_codec', - 'address' => 'address', - 'port' => 'port', - 'password' => 'password', - 'path' => 'path', - 'public_key' => 'public_key', - 'secret_key' => 'secret_key', - 'ssh_known_hosts' => 'ssh_known_hosts', - 'user' => 'user' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'name' => 'setName', - 'placement' => 'setPlacement', - 'format_version' => 'setFormatVersion', - 'response_condition' => 'setResponseCondition', - 'format' => 'setFormat', - 'message_type' => 'setMessageType', - 'timestamp_format' => 'setTimestampFormat', - 'period' => 'setPeriod', - 'gzip_level' => 'setGzipLevel', - 'compression_codec' => 'setCompressionCodec', - 'address' => 'setAddress', - 'port' => 'setPort', - 'password' => 'setPassword', - 'path' => 'setPath', - 'public_key' => 'setPublicKey', - 'secret_key' => 'setSecretKey', - 'ssh_known_hosts' => 'setSshKnownHosts', - 'user' => 'setUser' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'name' => 'getName', - 'placement' => 'getPlacement', - 'format_version' => 'getFormatVersion', - 'response_condition' => 'getResponseCondition', - 'format' => 'getFormat', - 'message_type' => 'getMessageType', - 'timestamp_format' => 'getTimestampFormat', - 'period' => 'getPeriod', - 'gzip_level' => 'getGzipLevel', - 'compression_codec' => 'getCompressionCodec', - 'address' => 'getAddress', - 'port' => 'getPort', - 'password' => 'getPassword', - 'path' => 'getPath', - 'public_key' => 'getPublicKey', - 'secret_key' => 'getSecretKey', - 'ssh_known_hosts' => 'getSshKnownHosts', - 'user' => 'getUser' - ]; - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @return array - */ - public static function attributeMap() - { - return self::$attributeMap; - } - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @return array - */ - public static function setters() - { - return self::$setters; - } - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @return array - */ - public static function getters() - { - return self::$getters; - } - - /** - * The original name of the model. - * - * @return string - */ - public function getModelName() - { - return self::$fastlyModelName; - } - - const PLACEMENT_NONE = 'none'; - const PLACEMENT_WAF_DEBUG = 'waf_debug'; - const PLACEMENT_NULL = 'null'; - const FORMAT_VERSION_v1 = 1; - const FORMAT_VERSION_v2 = 2; - const MESSAGE_TYPE_CLASSIC = 'classic'; - const MESSAGE_TYPE_LOGGLY = 'loggly'; - const MESSAGE_TYPE_LOGPLEX = 'logplex'; - const MESSAGE_TYPE_BLANK = 'blank'; - const COMPRESSION_CODEC_ZSTD = 'zstd'; - const COMPRESSION_CODEC_SNAPPY = 'snappy'; - const COMPRESSION_CODEC_GZIP = 'gzip'; - - /** - * Gets allowable values of the enum - * - * @return string[] - */ - public function getPlacementAllowableValues() - { - return [ - self::PLACEMENT_NONE, - self::PLACEMENT_WAF_DEBUG, - self::PLACEMENT_NULL, - ]; - } - - /** - * Gets allowable values of the enum - * - * @return string[] - */ - public function getFormatVersionAllowableValues() - { - return [ - self::FORMAT_VERSION_v1, - self::FORMAT_VERSION_v2, - ]; - } - - /** - * Gets allowable values of the enum - * - * @return string[] - */ - public function getMessageTypeAllowableValues() - { - return [ - self::MESSAGE_TYPE_CLASSIC, - self::MESSAGE_TYPE_LOGGLY, - self::MESSAGE_TYPE_LOGPLEX, - self::MESSAGE_TYPE_BLANK, - ]; - } - - /** - * Gets allowable values of the enum - * - * @return string[] - */ - public function getCompressionCodecAllowableValues() - { - return [ - self::COMPRESSION_CODEC_ZSTD, - self::COMPRESSION_CODEC_SNAPPY, - self::COMPRESSION_CODEC_GZIP, - ]; - } - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['name'] = $data['name'] ?? null; - $this->container['placement'] = $data['placement'] ?? null; - $this->container['format_version'] = $data['format_version'] ?? self::FORMAT_VERSION_v2; - $this->container['response_condition'] = $data['response_condition'] ?? null; - $this->container['format'] = $data['format'] ?? '%h %l %u %t "%r" %>s %b'; - $this->container['message_type'] = $data['message_type'] ?? 'classic'; - $this->container['timestamp_format'] = $data['timestamp_format'] ?? null; - $this->container['period'] = $data['period'] ?? 3600; - $this->container['gzip_level'] = $data['gzip_level'] ?? 0; - $this->container['compression_codec'] = $data['compression_codec'] ?? null; - $this->container['address'] = $data['address'] ?? null; - $this->container['port'] = $data['port'] ?? 22; - $this->container['password'] = $data['password'] ?? null; - $this->container['path'] = $data['path'] ?? 'null'; - $this->container['public_key'] = $data['public_key'] ?? 'null'; - $this->container['secret_key'] = $data['secret_key'] ?? 'null'; - $this->container['ssh_known_hosts'] = $data['ssh_known_hosts'] ?? null; - $this->container['user'] = $data['user'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - - $allowedValues = $this->getPlacementAllowableValues(); - if (!is_null($this->container['placement']) && !in_array($this->container['placement'], $allowedValues, true)) { - $invalidProperties[] = sprintf( - "invalid value '%s' for 'placement', must be one of '%s'", - $this->container['placement'], - implode("', '", $allowedValues) - ); - } - - $allowedValues = $this->getFormatVersionAllowableValues(); - if (!is_null($this->container['format_version']) && !in_array($this->container['format_version'], $allowedValues, true)) { - $invalidProperties[] = sprintf( - "invalid value '%s' for 'format_version', must be one of '%s'", - $this->container['format_version'], - implode("', '", $allowedValues) - ); - } - - $allowedValues = $this->getMessageTypeAllowableValues(); - if (!is_null($this->container['message_type']) && !in_array($this->container['message_type'], $allowedValues, true)) { - $invalidProperties[] = sprintf( - "invalid value '%s' for 'message_type', must be one of '%s'", - $this->container['message_type'], - implode("', '", $allowedValues) - ); - } - - $allowedValues = $this->getCompressionCodecAllowableValues(); - if (!is_null($this->container['compression_codec']) && !in_array($this->container['compression_codec'], $allowedValues, true)) { - $invalidProperties[] = sprintf( - "invalid value '%s' for 'compression_codec', must be one of '%s'", - $this->container['compression_codec'], - implode("', '", $allowedValues) - ); - } - - return $invalidProperties; - } - - /** - * Validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - return count($this->listInvalidProperties()) === 0; - } - - - /** - * Gets name - * - * @return string|null - */ - public function getName() - { - return $this->container['name']; - } - - /** - * Sets name - * - * @param string|null $name The name for the real-time logging configuration. - * - * @return self - */ - public function setName($name) - { - $this->container['name'] = $name; - - return $this; - } - - /** - * Gets placement - * - * @return string|null - */ - public function getPlacement() - { - return $this->container['placement']; - } - - /** - * Sets placement - * - * @param string|null $placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. - * - * @return self - */ - public function setPlacement($placement) - { - $allowedValues = $this->getPlacementAllowableValues(); - if (!is_null($placement) && !in_array($placement, $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value '%s' for 'placement', must be one of '%s'", - $placement, - implode("', '", $allowedValues) - ) - ); - } - $this->container['placement'] = $placement; - - return $this; - } - - /** - * Gets format_version - * - * @return int|null - */ - public function getFormatVersion() - { - return $this->container['format_version']; - } - - /** - * Sets format_version - * - * @param int|null $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. - * - * @return self - */ - public function setFormatVersion($format_version) - { - $allowedValues = $this->getFormatVersionAllowableValues(); - if (!is_null($format_version) && !in_array($format_version, $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value '%s' for 'format_version', must be one of '%s'", - $format_version, - implode("', '", $allowedValues) - ) - ); - } - $this->container['format_version'] = $format_version; - - return $this; - } - - /** - * Gets response_condition - * - * @return string|null - */ - public function getResponseCondition() - { - return $this->container['response_condition']; - } - - /** - * Sets response_condition - * - * @param string|null $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. - * - * @return self - */ - public function setResponseCondition($response_condition) - { - $this->container['response_condition'] = $response_condition; - - return $this; - } - - /** - * Gets format - * - * @return string|null - */ - public function getFormat() - { - return $this->container['format']; - } - - /** - * Sets format - * - * @param string|null $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). - * - * @return self - */ - public function setFormat($format) - { - $this->container['format'] = $format; - - return $this; - } - - /** - * Gets message_type - * - * @return string|null - */ - public function getMessageType() - { - return $this->container['message_type']; - } - - /** - * Sets message_type - * - * @param string|null $message_type How the message should be formatted. - * - * @return self - */ - public function setMessageType($message_type) - { - $allowedValues = $this->getMessageTypeAllowableValues(); - if (!is_null($message_type) && !in_array($message_type, $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value '%s' for 'message_type', must be one of '%s'", - $message_type, - implode("', '", $allowedValues) - ) - ); - } - $this->container['message_type'] = $message_type; - - return $this; - } - - /** - * Gets timestamp_format - * - * @return string|null - */ - public function getTimestampFormat() - { - return $this->container['timestamp_format']; - } - - /** - * Sets timestamp_format - * - * @param string|null $timestamp_format A timestamp format - * - * @return self - */ - public function setTimestampFormat($timestamp_format) - { - $this->container['timestamp_format'] = $timestamp_format; - - return $this; - } - - /** - * Gets period - * - * @return int|null - */ - public function getPeriod() - { - return $this->container['period']; - } - - /** - * Sets period - * - * @param int|null $period How frequently log files are finalized so they can be available for reading (in seconds). - * - * @return self - */ - public function setPeriod($period) - { - $this->container['period'] = $period; - - return $this; - } - - /** - * Gets gzip_level - * - * @return int|null - */ - public function getGzipLevel() - { - return $this->container['gzip_level']; - } - - /** - * Sets gzip_level - * - * @param int|null $gzip_level The level of gzip encoding when sending logs (default `0`, no compression). Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. - * - * @return self - */ - public function setGzipLevel($gzip_level) - { - $this->container['gzip_level'] = $gzip_level; - - return $this; - } - - /** - * Gets compression_codec - * - * @return string|null - */ - public function getCompressionCodec() - { - return $this->container['compression_codec']; - } - - /** - * Sets compression_codec - * - * @param string|null $compression_codec The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. - * - * @return self - */ - public function setCompressionCodec($compression_codec) - { - $allowedValues = $this->getCompressionCodecAllowableValues(); - if (!is_null($compression_codec) && !in_array($compression_codec, $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value '%s' for 'compression_codec', must be one of '%s'", - $compression_codec, - implode("', '", $allowedValues) - ) - ); - } - $this->container['compression_codec'] = $compression_codec; - - return $this; - } - - /** - * Gets address - * - * @return string|null - */ - public function getAddress() - { - return $this->container['address']; - } - - /** - * Sets address - * - * @param string|null $address A hostname or IPv4 address. - * - * @return self - */ - public function setAddress($address) - { - $this->container['address'] = $address; - - return $this; - } - - /** - * Gets port - * - * @return int|null - */ - public function getPort() - { - return $this->container['port']; - } - - /** - * Sets port - * - * @param int|null $port The port number. - * - * @return self - */ - public function setPort($port) - { - $this->container['port'] = $port; - - return $this; - } - - /** - * Gets password - * - * @return string|null - */ - public function getPassword() - { - return $this->container['password']; - } - - /** - * Sets password - * - * @param string|null $password The password for the server. If both `password` and `secret_key` are passed, `secret_key` will be used in preference. - * - * @return self - */ - public function setPassword($password) - { - $this->container['password'] = $password; - - return $this; - } - - /** - * Gets path - * - * @return string|null - */ - public function getPath() - { - return $this->container['path']; - } - - /** - * Sets path - * - * @param string|null $path The path to upload logs to. - * - * @return self - */ - public function setPath($path) - { - $this->container['path'] = $path; - - return $this; - } - - /** - * Gets public_key - * - * @return string|null - */ - public function getPublicKey() - { - return $this->container['public_key']; - } - - /** - * Sets public_key - * - * @param string|null $public_key A PGP public key that Fastly will use to encrypt your log files before writing them to disk. - * - * @return self - */ - public function setPublicKey($public_key) - { - $this->container['public_key'] = $public_key; - - return $this; - } - - /** - * Gets secret_key - * - * @return string|null - */ - public function getSecretKey() - { - return $this->container['secret_key']; - } - - /** - * Sets secret_key - * - * @param string|null $secret_key The SSH private key for the server. If both `password` and `secret_key` are passed, `secret_key` will be used in preference. - * - * @return self - */ - public function setSecretKey($secret_key) - { - $this->container['secret_key'] = $secret_key; - - return $this; - } - - /** - * Gets ssh_known_hosts - * - * @return string|null - */ - public function getSshKnownHosts() - { - return $this->container['ssh_known_hosts']; - } - - /** - * Sets ssh_known_hosts - * - * @param string|null $ssh_known_hosts A list of host keys for all hosts we can connect to over SFTP. - * - * @return self - */ - public function setSshKnownHosts($ssh_known_hosts) - { - $this->container['ssh_known_hosts'] = $ssh_known_hosts; - - return $this; - } - - /** - * Gets user - * - * @return string|null - */ - public function getUser() - { - return $this->container['user']; - } - - /** - * Sets user - * - * @param string|null $user The username for the server. - * - * @return self - */ - public function setUser($user) - { - $this->container['user'] = $user; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * - * @param integer $offset Offset - * - * @return boolean - */ - public function offsetExists($offset): bool - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * - * @param integer $offset Offset - * - * @return mixed|null - */ - public function offsetGet($offset): mixed - { - return $this->container[$offset] ?? null; - } - - /** - * Sets value based on offset. - * - * @param int|null $offset Offset - * @param mixed $value Value to be set - * - * @return void - */ - public function offsetSet($offset, $value): void - { - if (is_null($offset)) { - $this->container[] = $value; - } else { - $this->container[$offset] = $value; - } - } - - /** - * Unsets offset. - * - * @param integer $offset Offset - * - * @return void - */ - public function offsetUnset($offset): void - { - unset($this->container[$offset]); - } - - /** - * Serializes the object to a value that can be serialized natively by json_encode(). - * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php - * - * @return mixed Returns data which can be serialized by json_encode(), which is a value - * of any type other than a resource. - */ - public function jsonSerialize(): mixed - { - return ObjectSerializer::sanitizeForSerialization($this); - } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString() - { - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } - - /** - * Gets a header-safe presentation of the object - * - * @return string - */ - public function toHeaderValue() - { - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/lib/Model/LoggingSftpAllOf.php b/lib/Model/LoggingSftpAdditional.php similarity index 92% rename from lib/Model/LoggingSftpAllOf.php rename to lib/Model/LoggingSftpAdditional.php index e99004a0..b64ca424 100644 --- a/lib/Model/LoggingSftpAllOf.php +++ b/lib/Model/LoggingSftpAdditional.php @@ -1,6 +1,6 @@ 'string', 'path' => 'string', - 'port' => 'int', 'public_key' => 'string', 'secret_key' => 'string', 'ssh_known_hosts' => 'string', @@ -72,7 +71,6 @@ class LoggingSftpAllOf implements ModelInterface, ArrayAccess, \JsonSerializable protected static $fastlyFormats = [ 'password' => null, 'path' => null, - 'port' => null, 'public_key' => null, 'secret_key' => null, 'ssh_known_hosts' => null, @@ -108,7 +106,6 @@ public static function fastlyFormats() protected static $attributeMap = [ 'password' => 'password', 'path' => 'path', - 'port' => 'port', 'public_key' => 'public_key', 'secret_key' => 'secret_key', 'ssh_known_hosts' => 'ssh_known_hosts', @@ -123,7 +120,6 @@ public static function fastlyFormats() protected static $setters = [ 'password' => 'setPassword', 'path' => 'setPath', - 'port' => 'setPort', 'public_key' => 'setPublicKey', 'secret_key' => 'setSecretKey', 'ssh_known_hosts' => 'setSshKnownHosts', @@ -138,7 +134,6 @@ public static function fastlyFormats() protected static $getters = [ 'password' => 'getPassword', 'path' => 'getPath', - 'port' => 'getPort', 'public_key' => 'getPublicKey', 'secret_key' => 'getSecretKey', 'ssh_known_hosts' => 'getSshKnownHosts', @@ -204,7 +199,6 @@ public function __construct(array $data = null) { $this->container['password'] = $data['password'] ?? null; $this->container['path'] = $data['path'] ?? 'null'; - $this->container['port'] = $data['port'] ?? 22; $this->container['public_key'] = $data['public_key'] ?? 'null'; $this->container['secret_key'] = $data['secret_key'] ?? 'null'; $this->container['ssh_known_hosts'] = $data['ssh_known_hosts'] ?? null; @@ -283,30 +277,6 @@ public function setPath($path) return $this; } - /** - * Gets port - * - * @return int|null - */ - public function getPort() - { - return $this->container['port']; - } - - /** - * Sets port - * - * @param int|null $port The port number. - * - * @return self - */ - public function setPort($port) - { - $this->container['port'] = $port; - - return $this; - } - /** * Gets public_key * diff --git a/lib/Model/LoggingSftpResponse.php b/lib/Model/LoggingSftpResponse.php index 0eb6a237..cf585ada 100644 --- a/lib/Model/LoggingSftpResponse.php +++ b/lib/Model/LoggingSftpResponse.php @@ -55,27 +55,27 @@ class LoggingSftpResponse implements ModelInterface, ArrayAccess, \JsonSerializa protected static $fastlyTypes = [ 'name' => 'string', 'placement' => 'string', - 'format_version' => 'int', 'response_condition' => 'string', 'format' => 'string', + 'format_version' => 'string', 'message_type' => 'string', 'timestamp_format' => 'string', - 'period' => 'int', - 'gzip_level' => 'int', 'compression_codec' => 'string', - 'address' => 'string', - 'port' => 'int', + 'created_at' => '\DateTime', + 'deleted_at' => '\DateTime', + 'updated_at' => '\DateTime', + 'service_id' => 'string', + 'version' => 'string', 'password' => 'string', 'path' => 'string', 'public_key' => 'string', 'secret_key' => 'string', 'ssh_known_hosts' => 'string', 'user' => 'string', - 'created_at' => '\DateTime', - 'deleted_at' => '\DateTime', - 'updated_at' => '\DateTime', - 'service_id' => 'string', - 'version' => 'int' + 'address' => 'string', + 'port' => 'string', + 'period' => 'string', + 'gzip_level' => 'int' ]; /** @@ -88,27 +88,27 @@ class LoggingSftpResponse implements ModelInterface, ArrayAccess, \JsonSerializa protected static $fastlyFormats = [ 'name' => null, 'placement' => null, - 'format_version' => null, 'response_condition' => null, 'format' => null, + 'format_version' => null, 'message_type' => null, 'timestamp_format' => null, - 'period' => null, - 'gzip_level' => null, 'compression_codec' => null, - 'address' => null, - 'port' => null, + 'created_at' => 'date-time', + 'deleted_at' => 'date-time', + 'updated_at' => 'date-time', + 'service_id' => null, + 'version' => null, 'password' => null, 'path' => null, 'public_key' => null, 'secret_key' => null, 'ssh_known_hosts' => null, 'user' => null, - 'created_at' => 'date-time', - 'deleted_at' => 'date-time', - 'updated_at' => 'date-time', - 'service_id' => null, - 'version' => null + 'address' => null, + 'port' => null, + 'period' => null, + 'gzip_level' => null ]; /** @@ -140,27 +140,27 @@ public static function fastlyFormats() protected static $attributeMap = [ 'name' => 'name', 'placement' => 'placement', - 'format_version' => 'format_version', 'response_condition' => 'response_condition', 'format' => 'format', + 'format_version' => 'format_version', 'message_type' => 'message_type', 'timestamp_format' => 'timestamp_format', - 'period' => 'period', - 'gzip_level' => 'gzip_level', 'compression_codec' => 'compression_codec', - 'address' => 'address', - 'port' => 'port', + 'created_at' => 'created_at', + 'deleted_at' => 'deleted_at', + 'updated_at' => 'updated_at', + 'service_id' => 'service_id', + 'version' => 'version', 'password' => 'password', 'path' => 'path', 'public_key' => 'public_key', 'secret_key' => 'secret_key', 'ssh_known_hosts' => 'ssh_known_hosts', 'user' => 'user', - 'created_at' => 'created_at', - 'deleted_at' => 'deleted_at', - 'updated_at' => 'updated_at', - 'service_id' => 'service_id', - 'version' => 'version' + 'address' => 'address', + 'port' => 'port', + 'period' => 'period', + 'gzip_level' => 'gzip_level' ]; /** @@ -171,27 +171,27 @@ public static function fastlyFormats() protected static $setters = [ 'name' => 'setName', 'placement' => 'setPlacement', - 'format_version' => 'setFormatVersion', 'response_condition' => 'setResponseCondition', 'format' => 'setFormat', + 'format_version' => 'setFormatVersion', 'message_type' => 'setMessageType', 'timestamp_format' => 'setTimestampFormat', - 'period' => 'setPeriod', - 'gzip_level' => 'setGzipLevel', 'compression_codec' => 'setCompressionCodec', - 'address' => 'setAddress', - 'port' => 'setPort', + 'created_at' => 'setCreatedAt', + 'deleted_at' => 'setDeletedAt', + 'updated_at' => 'setUpdatedAt', + 'service_id' => 'setServiceId', + 'version' => 'setVersion', 'password' => 'setPassword', 'path' => 'setPath', 'public_key' => 'setPublicKey', 'secret_key' => 'setSecretKey', 'ssh_known_hosts' => 'setSshKnownHosts', 'user' => 'setUser', - 'created_at' => 'setCreatedAt', - 'deleted_at' => 'setDeletedAt', - 'updated_at' => 'setUpdatedAt', - 'service_id' => 'setServiceId', - 'version' => 'setVersion' + 'address' => 'setAddress', + 'port' => 'setPort', + 'period' => 'setPeriod', + 'gzip_level' => 'setGzipLevel' ]; /** @@ -202,27 +202,27 @@ public static function fastlyFormats() protected static $getters = [ 'name' => 'getName', 'placement' => 'getPlacement', - 'format_version' => 'getFormatVersion', 'response_condition' => 'getResponseCondition', 'format' => 'getFormat', + 'format_version' => 'getFormatVersion', 'message_type' => 'getMessageType', 'timestamp_format' => 'getTimestampFormat', - 'period' => 'getPeriod', - 'gzip_level' => 'getGzipLevel', 'compression_codec' => 'getCompressionCodec', - 'address' => 'getAddress', - 'port' => 'getPort', + 'created_at' => 'getCreatedAt', + 'deleted_at' => 'getDeletedAt', + 'updated_at' => 'getUpdatedAt', + 'service_id' => 'getServiceId', + 'version' => 'getVersion', 'password' => 'getPassword', 'path' => 'getPath', 'public_key' => 'getPublicKey', 'secret_key' => 'getSecretKey', 'ssh_known_hosts' => 'getSshKnownHosts', 'user' => 'getUser', - 'created_at' => 'getCreatedAt', - 'deleted_at' => 'getDeletedAt', - 'updated_at' => 'getUpdatedAt', - 'service_id' => 'getServiceId', - 'version' => 'getVersion' + 'address' => 'getAddress', + 'port' => 'getPort', + 'period' => 'getPeriod', + 'gzip_level' => 'getGzipLevel' ]; /** @@ -269,8 +269,8 @@ public function getModelName() const PLACEMENT_NONE = 'none'; const PLACEMENT_WAF_DEBUG = 'waf_debug'; const PLACEMENT_NULL = 'null'; - const FORMAT_VERSION_v1 = 1; - const FORMAT_VERSION_v2 = 2; + const FORMAT_VERSION_v1 = '1'; + const FORMAT_VERSION_v2 = '2'; const MESSAGE_TYPE_CLASSIC = 'classic'; const MESSAGE_TYPE_LOGGLY = 'loggly'; const MESSAGE_TYPE_LOGPLEX = 'logplex'; @@ -352,27 +352,27 @@ public function __construct(array $data = null) { $this->container['name'] = $data['name'] ?? null; $this->container['placement'] = $data['placement'] ?? null; - $this->container['format_version'] = $data['format_version'] ?? self::FORMAT_VERSION_v2; $this->container['response_condition'] = $data['response_condition'] ?? null; $this->container['format'] = $data['format'] ?? '%h %l %u %t "%r" %>s %b'; + $this->container['format_version'] = $data['format_version'] ?? '2'; $this->container['message_type'] = $data['message_type'] ?? 'classic'; $this->container['timestamp_format'] = $data['timestamp_format'] ?? null; - $this->container['period'] = $data['period'] ?? 3600; - $this->container['gzip_level'] = $data['gzip_level'] ?? 0; $this->container['compression_codec'] = $data['compression_codec'] ?? null; - $this->container['address'] = $data['address'] ?? null; - $this->container['port'] = $data['port'] ?? 22; + $this->container['created_at'] = $data['created_at'] ?? null; + $this->container['deleted_at'] = $data['deleted_at'] ?? null; + $this->container['updated_at'] = $data['updated_at'] ?? null; + $this->container['service_id'] = $data['service_id'] ?? null; + $this->container['version'] = $data['version'] ?? null; $this->container['password'] = $data['password'] ?? null; $this->container['path'] = $data['path'] ?? 'null'; $this->container['public_key'] = $data['public_key'] ?? 'null'; $this->container['secret_key'] = $data['secret_key'] ?? 'null'; $this->container['ssh_known_hosts'] = $data['ssh_known_hosts'] ?? null; $this->container['user'] = $data['user'] ?? null; - $this->container['created_at'] = $data['created_at'] ?? null; - $this->container['deleted_at'] = $data['deleted_at'] ?? null; - $this->container['updated_at'] = $data['updated_at'] ?? null; - $this->container['service_id'] = $data['service_id'] ?? null; - $this->container['version'] = $data['version'] ?? null; + $this->container['address'] = $data['address'] ?? null; + $this->container['port'] = $data['port'] ?? '22'; + $this->container['period'] = $data['period'] ?? '3600'; + $this->container['gzip_level'] = $data['gzip_level'] ?? 0; } /** @@ -494,83 +494,83 @@ public function setPlacement($placement) } /** - * Gets format_version + * Gets response_condition * - * @return int|null + * @return string|null */ - public function getFormatVersion() + public function getResponseCondition() { - return $this->container['format_version']; + return $this->container['response_condition']; } /** - * Sets format_version + * Sets response_condition * - * @param int|null $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. + * @param string|null $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. * * @return self */ - public function setFormatVersion($format_version) + public function setResponseCondition($response_condition) { - $allowedValues = $this->getFormatVersionAllowableValues(); - if (!is_null($format_version) && !in_array($format_version, $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value '%s' for 'format_version', must be one of '%s'", - $format_version, - implode("', '", $allowedValues) - ) - ); - } - $this->container['format_version'] = $format_version; + $this->container['response_condition'] = $response_condition; return $this; } /** - * Gets response_condition + * Gets format * * @return string|null */ - public function getResponseCondition() + public function getFormat() { - return $this->container['response_condition']; + return $this->container['format']; } /** - * Sets response_condition + * Sets format * - * @param string|null $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. + * @param string|null $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). * * @return self */ - public function setResponseCondition($response_condition) + public function setFormat($format) { - $this->container['response_condition'] = $response_condition; + $this->container['format'] = $format; return $this; } /** - * Gets format + * Gets format_version * * @return string|null */ - public function getFormat() + public function getFormatVersion() { - return $this->container['format']; + return $this->container['format_version']; } /** - * Sets format + * Sets format_version * - * @param string|null $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). + * @param string|null $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. * * @return self */ - public function setFormat($format) + public function setFormatVersion($format_version) { - $this->container['format'] = $format; + $allowedValues = $this->getFormatVersionAllowableValues(); + if (!is_null($format_version) && !in_array($format_version, $allowedValues, true)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value '%s' for 'format_version', must be one of '%s'", + $format_version, + implode("', '", $allowedValues) + ) + ); + } + $this->container['format_version'] = $format_version; return $this; } @@ -634,131 +634,155 @@ public function setTimestampFormat($timestamp_format) } /** - * Gets period + * Gets compression_codec * - * @return int|null + * @return string|null */ - public function getPeriod() + public function getCompressionCodec() { - return $this->container['period']; + return $this->container['compression_codec']; } /** - * Sets period + * Sets compression_codec * - * @param int|null $period How frequently log files are finalized so they can be available for reading (in seconds). + * @param string|null $compression_codec The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. * * @return self */ - public function setPeriod($period) + public function setCompressionCodec($compression_codec) { - $this->container['period'] = $period; + $allowedValues = $this->getCompressionCodecAllowableValues(); + if (!is_null($compression_codec) && !in_array($compression_codec, $allowedValues, true)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value '%s' for 'compression_codec', must be one of '%s'", + $compression_codec, + implode("', '", $allowedValues) + ) + ); + } + $this->container['compression_codec'] = $compression_codec; return $this; } /** - * Gets gzip_level + * Gets created_at * - * @return int|null + * @return \DateTime|null */ - public function getGzipLevel() + public function getCreatedAt() { - return $this->container['gzip_level']; + return $this->container['created_at']; } /** - * Sets gzip_level + * Sets created_at * - * @param int|null $gzip_level The level of gzip encoding when sending logs (default `0`, no compression). Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. + * @param \DateTime|null $created_at Date and time in ISO 8601 format. * * @return self */ - public function setGzipLevel($gzip_level) + public function setCreatedAt($created_at) { - $this->container['gzip_level'] = $gzip_level; + $this->container['created_at'] = $created_at; return $this; } /** - * Gets compression_codec + * Gets deleted_at * - * @return string|null + * @return \DateTime|null */ - public function getCompressionCodec() + public function getDeletedAt() { - return $this->container['compression_codec']; + return $this->container['deleted_at']; } /** - * Sets compression_codec + * Sets deleted_at * - * @param string|null $compression_codec The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. + * @param \DateTime|null $deleted_at Date and time in ISO 8601 format. * * @return self */ - public function setCompressionCodec($compression_codec) + public function setDeletedAt($deleted_at) { - $allowedValues = $this->getCompressionCodecAllowableValues(); - if (!is_null($compression_codec) && !in_array($compression_codec, $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value '%s' for 'compression_codec', must be one of '%s'", - $compression_codec, - implode("', '", $allowedValues) - ) - ); - } - $this->container['compression_codec'] = $compression_codec; + $this->container['deleted_at'] = $deleted_at; return $this; } /** - * Gets address + * Gets updated_at + * + * @return \DateTime|null + */ + public function getUpdatedAt() + { + return $this->container['updated_at']; + } + + /** + * Sets updated_at + * + * @param \DateTime|null $updated_at Date and time in ISO 8601 format. + * + * @return self + */ + public function setUpdatedAt($updated_at) + { + $this->container['updated_at'] = $updated_at; + + return $this; + } + + /** + * Gets service_id * * @return string|null */ - public function getAddress() + public function getServiceId() { - return $this->container['address']; + return $this->container['service_id']; } /** - * Sets address + * Sets service_id * - * @param string|null $address A hostname or IPv4 address. + * @param string|null $service_id service_id * * @return self */ - public function setAddress($address) + public function setServiceId($service_id) { - $this->container['address'] = $address; + $this->container['service_id'] = $service_id; return $this; } /** - * Gets port + * Gets version * - * @return int|null + * @return string|null */ - public function getPort() + public function getVersion() { - return $this->container['port']; + return $this->container['version']; } /** - * Sets port + * Sets version * - * @param int|null $port The port number. + * @param string|null $version version * * @return self */ - public function setPort($port) + public function setVersion($version) { - $this->container['port'] = $port; + $this->container['version'] = $version; return $this; } @@ -908,121 +932,97 @@ public function setUser($user) } /** - * Gets created_at - * - * @return \DateTime|null - */ - public function getCreatedAt() - { - return $this->container['created_at']; - } - - /** - * Sets created_at - * - * @param \DateTime|null $created_at Date and time in ISO 8601 format. - * - * @return self - */ - public function setCreatedAt($created_at) - { - $this->container['created_at'] = $created_at; - - return $this; - } - - /** - * Gets deleted_at + * Gets address * - * @return \DateTime|null + * @return string|null */ - public function getDeletedAt() + public function getAddress() { - return $this->container['deleted_at']; + return $this->container['address']; } /** - * Sets deleted_at + * Sets address * - * @param \DateTime|null $deleted_at Date and time in ISO 8601 format. + * @param string|null $address A hostname or IPv4 address. * * @return self */ - public function setDeletedAt($deleted_at) + public function setAddress($address) { - $this->container['deleted_at'] = $deleted_at; + $this->container['address'] = $address; return $this; } /** - * Gets updated_at + * Gets port * - * @return \DateTime|null + * @return string|null */ - public function getUpdatedAt() + public function getPort() { - return $this->container['updated_at']; + return $this->container['port']; } /** - * Sets updated_at + * Sets port * - * @param \DateTime|null $updated_at Date and time in ISO 8601 format. + * @param string|null $port The port number. * * @return self */ - public function setUpdatedAt($updated_at) + public function setPort($port) { - $this->container['updated_at'] = $updated_at; + $this->container['port'] = $port; return $this; } /** - * Gets service_id + * Gets period * * @return string|null */ - public function getServiceId() + public function getPeriod() { - return $this->container['service_id']; + return $this->container['period']; } /** - * Sets service_id + * Sets period * - * @param string|null $service_id service_id + * @param string|null $period How frequently log files are finalized so they can be available for reading (in seconds). * * @return self */ - public function setServiceId($service_id) + public function setPeriod($period) { - $this->container['service_id'] = $service_id; + $this->container['period'] = $period; return $this; } /** - * Gets version + * Gets gzip_level * * @return int|null */ - public function getVersion() + public function getGzipLevel() { - return $this->container['version']; + return $this->container['gzip_level']; } /** - * Sets version + * Sets gzip_level * - * @param int|null $version version + * @param int|null $gzip_level The level of gzip encoding when sending logs (default `0`, no compression). Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. * * @return self */ - public function setVersion($version) + public function setGzipLevel($gzip_level) { - $this->container['version'] = $version; + $this->container['gzip_level'] = $gzip_level; return $this; } diff --git a/lib/Model/LoggingSftpResponseAllOf.php b/lib/Model/LoggingSftpResponseAllOf.php new file mode 100644 index 00000000..eec98f8c --- /dev/null +++ b/lib/Model/LoggingSftpResponseAllOf.php @@ -0,0 +1,404 @@ + + * @template TKey int|null + * @template TValue mixed|null + */ +class LoggingSftpResponseAllOf implements ModelInterface, ArrayAccess, \JsonSerializable +{ + public const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static $fastlyModelName = 'logging_sftp_response_allOf'; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $fastlyTypes = [ + 'address' => 'string', + 'port' => 'string', + 'period' => 'string', + 'gzip_level' => 'int' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ + protected static $fastlyFormats = [ + 'address' => null, + 'port' => null, + 'period' => null, + 'gzip_level' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function fastlyTypes() + { + return self::$fastlyTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function fastlyFormats() + { + return self::$fastlyFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'address' => 'address', + 'port' => 'port', + 'period' => 'period', + 'gzip_level' => 'gzip_level' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'address' => 'setAddress', + 'port' => 'setPort', + 'period' => 'setPeriod', + 'gzip_level' => 'setGzipLevel' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'address' => 'getAddress', + 'port' => 'getPort', + 'period' => 'getPeriod', + 'gzip_level' => 'getGzipLevel' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$fastlyModelName; + } + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['address'] = $data['address'] ?? null; + $this->container['port'] = $data['port'] ?? '22'; + $this->container['period'] = $data['period'] ?? '3600'; + $this->container['gzip_level'] = $data['gzip_level'] ?? 0; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + + /** + * Gets address + * + * @return string|null + */ + public function getAddress() + { + return $this->container['address']; + } + + /** + * Sets address + * + * @param string|null $address A hostname or IPv4 address. + * + * @return self + */ + public function setAddress($address) + { + $this->container['address'] = $address; + + return $this; + } + + /** + * Gets port + * + * @return string|null + */ + public function getPort() + { + return $this->container['port']; + } + + /** + * Sets port + * + * @param string|null $port The port number. + * + * @return self + */ + public function setPort($port) + { + $this->container['port'] = $port; + + return $this; + } + + /** + * Gets period + * + * @return string|null + */ + public function getPeriod() + { + return $this->container['period']; + } + + /** + * Sets period + * + * @param string|null $period How frequently log files are finalized so they can be available for reading (in seconds). + * + * @return self + */ + public function setPeriod($period) + { + $this->container['period'] = $period; + + return $this; + } + + /** + * Gets gzip_level + * + * @return int|null + */ + public function getGzipLevel() + { + return $this->container['gzip_level']; + } + + /** + * Sets gzip_level + * + * @param int|null $gzip_level The level of gzip encoding when sending logs (default `0`, no compression). Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error. + * + * @return self + */ + public function setGzipLevel($gzip_level) + { + $this->container['gzip_level'] = $gzip_level; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset): bool + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed|null + */ + public function offsetGet($offset): mixed + { + return $this->container[$offset] ?? null; + } + + /** + * Sets value based on offset. + * + * @param int|null $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value): void + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset): void + { + unset($this->container[$offset]); + } + + /** + * Serializes the object to a value that can be serialized natively by json_encode(). + * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php + * + * @return mixed Returns data which can be serialized by json_encode(), which is a value + * of any type other than a resource. + */ + public function jsonSerialize(): mixed + { + return ObjectSerializer::sanitizeForSerialization($this); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + /** + * Gets a header-safe presentation of the object + * + * @return string + */ + public function toHeaderValue() + { + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/lib/Model/LoggingSplunk.php b/lib/Model/LoggingSplunk.php deleted file mode 100644 index cb3ab58f..00000000 --- a/lib/Model/LoggingSplunk.php +++ /dev/null @@ -1,774 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class LoggingSplunk implements ModelInterface, ArrayAccess, \JsonSerializable -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $fastlyModelName = 'logging_splunk'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $fastlyTypes = [ - 'name' => 'string', - 'placement' => 'string', - 'format_version' => 'int', - 'response_condition' => 'string', - 'format' => 'string', - 'tls_ca_cert' => 'string', - 'tls_client_cert' => 'string', - 'tls_client_key' => 'string', - 'tls_hostname' => 'string', - 'request_max_entries' => 'int', - 'request_max_bytes' => 'int', - 'url' => 'string', - 'token' => 'string', - 'use_tls' => '\Fastly\Model\LoggingUseTls' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $fastlyFormats = [ - 'name' => null, - 'placement' => null, - 'format_version' => null, - 'response_condition' => null, - 'format' => null, - 'tls_ca_cert' => null, - 'tls_client_cert' => null, - 'tls_client_key' => null, - 'tls_hostname' => null, - 'request_max_entries' => null, - 'request_max_bytes' => null, - 'url' => null, - 'token' => null, - 'use_tls' => null - ]; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @return array - */ - public static function fastlyTypes() - { - return self::$fastlyTypes; - } - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @return array - */ - public static function fastlyFormats() - { - return self::$fastlyFormats; - } - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'name' => 'name', - 'placement' => 'placement', - 'format_version' => 'format_version', - 'response_condition' => 'response_condition', - 'format' => 'format', - 'tls_ca_cert' => 'tls_ca_cert', - 'tls_client_cert' => 'tls_client_cert', - 'tls_client_key' => 'tls_client_key', - 'tls_hostname' => 'tls_hostname', - 'request_max_entries' => 'request_max_entries', - 'request_max_bytes' => 'request_max_bytes', - 'url' => 'url', - 'token' => 'token', - 'use_tls' => 'use_tls' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'name' => 'setName', - 'placement' => 'setPlacement', - 'format_version' => 'setFormatVersion', - 'response_condition' => 'setResponseCondition', - 'format' => 'setFormat', - 'tls_ca_cert' => 'setTlsCaCert', - 'tls_client_cert' => 'setTlsClientCert', - 'tls_client_key' => 'setTlsClientKey', - 'tls_hostname' => 'setTlsHostname', - 'request_max_entries' => 'setRequestMaxEntries', - 'request_max_bytes' => 'setRequestMaxBytes', - 'url' => 'setUrl', - 'token' => 'setToken', - 'use_tls' => 'setUseTls' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'name' => 'getName', - 'placement' => 'getPlacement', - 'format_version' => 'getFormatVersion', - 'response_condition' => 'getResponseCondition', - 'format' => 'getFormat', - 'tls_ca_cert' => 'getTlsCaCert', - 'tls_client_cert' => 'getTlsClientCert', - 'tls_client_key' => 'getTlsClientKey', - 'tls_hostname' => 'getTlsHostname', - 'request_max_entries' => 'getRequestMaxEntries', - 'request_max_bytes' => 'getRequestMaxBytes', - 'url' => 'getUrl', - 'token' => 'getToken', - 'use_tls' => 'getUseTls' - ]; - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @return array - */ - public static function attributeMap() - { - return self::$attributeMap; - } - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @return array - */ - public static function setters() - { - return self::$setters; - } - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @return array - */ - public static function getters() - { - return self::$getters; - } - - /** - * The original name of the model. - * - * @return string - */ - public function getModelName() - { - return self::$fastlyModelName; - } - - const PLACEMENT_NONE = 'none'; - const PLACEMENT_WAF_DEBUG = 'waf_debug'; - const PLACEMENT_NULL = 'null'; - const FORMAT_VERSION_v1 = 1; - const FORMAT_VERSION_v2 = 2; - - /** - * Gets allowable values of the enum - * - * @return string[] - */ - public function getPlacementAllowableValues() - { - return [ - self::PLACEMENT_NONE, - self::PLACEMENT_WAF_DEBUG, - self::PLACEMENT_NULL, - ]; - } - - /** - * Gets allowable values of the enum - * - * @return string[] - */ - public function getFormatVersionAllowableValues() - { - return [ - self::FORMAT_VERSION_v1, - self::FORMAT_VERSION_v2, - ]; - } - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['name'] = $data['name'] ?? null; - $this->container['placement'] = $data['placement'] ?? null; - $this->container['format_version'] = $data['format_version'] ?? self::FORMAT_VERSION_v2; - $this->container['response_condition'] = $data['response_condition'] ?? null; - $this->container['format'] = $data['format'] ?? '%h %l %u %t "%r" %>s %b'; - $this->container['tls_ca_cert'] = $data['tls_ca_cert'] ?? 'null'; - $this->container['tls_client_cert'] = $data['tls_client_cert'] ?? 'null'; - $this->container['tls_client_key'] = $data['tls_client_key'] ?? 'null'; - $this->container['tls_hostname'] = $data['tls_hostname'] ?? 'null'; - $this->container['request_max_entries'] = $data['request_max_entries'] ?? 0; - $this->container['request_max_bytes'] = $data['request_max_bytes'] ?? 0; - $this->container['url'] = $data['url'] ?? null; - $this->container['token'] = $data['token'] ?? null; - $this->container['use_tls'] = $data['use_tls'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - - $allowedValues = $this->getPlacementAllowableValues(); - if (!is_null($this->container['placement']) && !in_array($this->container['placement'], $allowedValues, true)) { - $invalidProperties[] = sprintf( - "invalid value '%s' for 'placement', must be one of '%s'", - $this->container['placement'], - implode("', '", $allowedValues) - ); - } - - $allowedValues = $this->getFormatVersionAllowableValues(); - if (!is_null($this->container['format_version']) && !in_array($this->container['format_version'], $allowedValues, true)) { - $invalidProperties[] = sprintf( - "invalid value '%s' for 'format_version', must be one of '%s'", - $this->container['format_version'], - implode("', '", $allowedValues) - ); - } - - return $invalidProperties; - } - - /** - * Validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - return count($this->listInvalidProperties()) === 0; - } - - - /** - * Gets name - * - * @return string|null - */ - public function getName() - { - return $this->container['name']; - } - - /** - * Sets name - * - * @param string|null $name The name for the real-time logging configuration. - * - * @return self - */ - public function setName($name) - { - $this->container['name'] = $name; - - return $this; - } - - /** - * Gets placement - * - * @return string|null - */ - public function getPlacement() - { - return $this->container['placement']; - } - - /** - * Sets placement - * - * @param string|null $placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. - * - * @return self - */ - public function setPlacement($placement) - { - $allowedValues = $this->getPlacementAllowableValues(); - if (!is_null($placement) && !in_array($placement, $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value '%s' for 'placement', must be one of '%s'", - $placement, - implode("', '", $allowedValues) - ) - ); - } - $this->container['placement'] = $placement; - - return $this; - } - - /** - * Gets format_version - * - * @return int|null - */ - public function getFormatVersion() - { - return $this->container['format_version']; - } - - /** - * Sets format_version - * - * @param int|null $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. - * - * @return self - */ - public function setFormatVersion($format_version) - { - $allowedValues = $this->getFormatVersionAllowableValues(); - if (!is_null($format_version) && !in_array($format_version, $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value '%s' for 'format_version', must be one of '%s'", - $format_version, - implode("', '", $allowedValues) - ) - ); - } - $this->container['format_version'] = $format_version; - - return $this; - } - - /** - * Gets response_condition - * - * @return string|null - */ - public function getResponseCondition() - { - return $this->container['response_condition']; - } - - /** - * Sets response_condition - * - * @param string|null $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. - * - * @return self - */ - public function setResponseCondition($response_condition) - { - $this->container['response_condition'] = $response_condition; - - return $this; - } - - /** - * Gets format - * - * @return string|null - */ - public function getFormat() - { - return $this->container['format']; - } - - /** - * Sets format - * - * @param string|null $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). - * - * @return self - */ - public function setFormat($format) - { - $this->container['format'] = $format; - - return $this; - } - - /** - * Gets tls_ca_cert - * - * @return string|null - */ - public function getTlsCaCert() - { - return $this->container['tls_ca_cert']; - } - - /** - * Sets tls_ca_cert - * - * @param string|null $tls_ca_cert A secure certificate to authenticate a server with. Must be in PEM format. - * - * @return self - */ - public function setTlsCaCert($tls_ca_cert) - { - $this->container['tls_ca_cert'] = $tls_ca_cert; - - return $this; - } - - /** - * Gets tls_client_cert - * - * @return string|null - */ - public function getTlsClientCert() - { - return $this->container['tls_client_cert']; - } - - /** - * Sets tls_client_cert - * - * @param string|null $tls_client_cert The client certificate used to make authenticated requests. Must be in PEM format. - * - * @return self - */ - public function setTlsClientCert($tls_client_cert) - { - $this->container['tls_client_cert'] = $tls_client_cert; - - return $this; - } - - /** - * Gets tls_client_key - * - * @return string|null - */ - public function getTlsClientKey() - { - return $this->container['tls_client_key']; - } - - /** - * Sets tls_client_key - * - * @param string|null $tls_client_key The client private key used to make authenticated requests. Must be in PEM format. - * - * @return self - */ - public function setTlsClientKey($tls_client_key) - { - $this->container['tls_client_key'] = $tls_client_key; - - return $this; - } - - /** - * Gets tls_hostname - * - * @return string|null - */ - public function getTlsHostname() - { - return $this->container['tls_hostname']; - } - - /** - * Sets tls_hostname - * - * @param string|null $tls_hostname The hostname to verify the server's certificate. This should be one of the Subject Alternative Name (SAN) fields for the certificate. Common Names (CN) are not supported. - * - * @return self - */ - public function setTlsHostname($tls_hostname) - { - $this->container['tls_hostname'] = $tls_hostname; - - return $this; - } - - /** - * Gets request_max_entries - * - * @return int|null - */ - public function getRequestMaxEntries() - { - return $this->container['request_max_entries']; - } - - /** - * Sets request_max_entries - * - * @param int|null $request_max_entries The maximum number of logs sent in one request. Defaults `0` for unbounded. - * - * @return self - */ - public function setRequestMaxEntries($request_max_entries) - { - $this->container['request_max_entries'] = $request_max_entries; - - return $this; - } - - /** - * Gets request_max_bytes - * - * @return int|null - */ - public function getRequestMaxBytes() - { - return $this->container['request_max_bytes']; - } - - /** - * Sets request_max_bytes - * - * @param int|null $request_max_bytes The maximum number of bytes sent in one request. Defaults `0` for unbounded. - * - * @return self - */ - public function setRequestMaxBytes($request_max_bytes) - { - $this->container['request_max_bytes'] = $request_max_bytes; - - return $this; - } - - /** - * Gets url - * - * @return string|null - */ - public function getUrl() - { - return $this->container['url']; - } - - /** - * Sets url - * - * @param string|null $url The URL to post logs to. - * - * @return self - */ - public function setUrl($url) - { - $this->container['url'] = $url; - - return $this; - } - - /** - * Gets token - * - * @return string|null - */ - public function getToken() - { - return $this->container['token']; - } - - /** - * Sets token - * - * @param string|null $token A Splunk token for use in posting logs over HTTP to your collector. - * - * @return self - */ - public function setToken($token) - { - $this->container['token'] = $token; - - return $this; - } - - /** - * Gets use_tls - * - * @return \Fastly\Model\LoggingUseTls|null - */ - public function getUseTls() - { - return $this->container['use_tls']; - } - - /** - * Sets use_tls - * - * @param \Fastly\Model\LoggingUseTls|null $use_tls use_tls - * - * @return self - */ - public function setUseTls($use_tls) - { - $this->container['use_tls'] = $use_tls; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * - * @param integer $offset Offset - * - * @return boolean - */ - public function offsetExists($offset): bool - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * - * @param integer $offset Offset - * - * @return mixed|null - */ - public function offsetGet($offset): mixed - { - return $this->container[$offset] ?? null; - } - - /** - * Sets value based on offset. - * - * @param int|null $offset Offset - * @param mixed $value Value to be set - * - * @return void - */ - public function offsetSet($offset, $value): void - { - if (is_null($offset)) { - $this->container[] = $value; - } else { - $this->container[$offset] = $value; - } - } - - /** - * Unsets offset. - * - * @param integer $offset Offset - * - * @return void - */ - public function offsetUnset($offset): void - { - unset($this->container[$offset]); - } - - /** - * Serializes the object to a value that can be serialized natively by json_encode(). - * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php - * - * @return mixed Returns data which can be serialized by json_encode(), which is a value - * of any type other than a resource. - */ - public function jsonSerialize(): mixed - { - return ObjectSerializer::sanitizeForSerialization($this); - } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString() - { - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } - - /** - * Gets a header-safe presentation of the object - * - * @return string - */ - public function toHeaderValue() - { - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/lib/Model/LoggingSplunkAllOf.php b/lib/Model/LoggingSplunkAdditional.php similarity index 97% rename from lib/Model/LoggingSplunkAllOf.php rename to lib/Model/LoggingSplunkAdditional.php index 92a34fe5..dd60bedb 100644 --- a/lib/Model/LoggingSplunkAllOf.php +++ b/lib/Model/LoggingSplunkAdditional.php @@ -1,6 +1,6 @@ 'string', 'placement' => 'string', - 'format_version' => 'int', 'response_condition' => 'string', 'format' => 'string', + 'format_version' => 'string', 'tls_ca_cert' => 'string', 'tls_client_cert' => 'string', 'tls_client_key' => 'string', @@ -71,7 +71,7 @@ class LoggingSplunkResponse implements ModelInterface, ArrayAccess, \JsonSeriali 'deleted_at' => '\DateTime', 'updated_at' => '\DateTime', 'service_id' => 'string', - 'version' => 'int' + 'version' => 'string' ]; /** @@ -84,9 +84,9 @@ class LoggingSplunkResponse implements ModelInterface, ArrayAccess, \JsonSeriali protected static $fastlyFormats = [ 'name' => null, 'placement' => null, - 'format_version' => null, 'response_condition' => null, 'format' => null, + 'format_version' => null, 'tls_ca_cert' => null, 'tls_client_cert' => null, 'tls_client_key' => null, @@ -132,9 +132,9 @@ public static function fastlyFormats() protected static $attributeMap = [ 'name' => 'name', 'placement' => 'placement', - 'format_version' => 'format_version', 'response_condition' => 'response_condition', 'format' => 'format', + 'format_version' => 'format_version', 'tls_ca_cert' => 'tls_ca_cert', 'tls_client_cert' => 'tls_client_cert', 'tls_client_key' => 'tls_client_key', @@ -159,9 +159,9 @@ public static function fastlyFormats() protected static $setters = [ 'name' => 'setName', 'placement' => 'setPlacement', - 'format_version' => 'setFormatVersion', 'response_condition' => 'setResponseCondition', 'format' => 'setFormat', + 'format_version' => 'setFormatVersion', 'tls_ca_cert' => 'setTlsCaCert', 'tls_client_cert' => 'setTlsClientCert', 'tls_client_key' => 'setTlsClientKey', @@ -186,9 +186,9 @@ public static function fastlyFormats() protected static $getters = [ 'name' => 'getName', 'placement' => 'getPlacement', - 'format_version' => 'getFormatVersion', 'response_condition' => 'getResponseCondition', 'format' => 'getFormat', + 'format_version' => 'getFormatVersion', 'tls_ca_cert' => 'getTlsCaCert', 'tls_client_cert' => 'getTlsClientCert', 'tls_client_key' => 'getTlsClientKey', @@ -249,8 +249,8 @@ public function getModelName() const PLACEMENT_NONE = 'none'; const PLACEMENT_WAF_DEBUG = 'waf_debug'; const PLACEMENT_NULL = 'null'; - const FORMAT_VERSION_v1 = 1; - const FORMAT_VERSION_v2 = 2; + const FORMAT_VERSION_v1 = '1'; + const FORMAT_VERSION_v2 = '2'; /** * Gets allowable values of the enum @@ -296,9 +296,9 @@ public function __construct(array $data = null) { $this->container['name'] = $data['name'] ?? null; $this->container['placement'] = $data['placement'] ?? null; - $this->container['format_version'] = $data['format_version'] ?? self::FORMAT_VERSION_v2; $this->container['response_condition'] = $data['response_condition'] ?? null; $this->container['format'] = $data['format'] ?? '%h %l %u %t "%r" %>s %b'; + $this->container['format_version'] = $data['format_version'] ?? '2'; $this->container['tls_ca_cert'] = $data['tls_ca_cert'] ?? 'null'; $this->container['tls_client_cert'] = $data['tls_client_cert'] ?? 'null'; $this->container['tls_client_key'] = $data['tls_client_key'] ?? 'null'; @@ -416,83 +416,83 @@ public function setPlacement($placement) } /** - * Gets format_version + * Gets response_condition * - * @return int|null + * @return string|null */ - public function getFormatVersion() + public function getResponseCondition() { - return $this->container['format_version']; + return $this->container['response_condition']; } /** - * Sets format_version + * Sets response_condition * - * @param int|null $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. + * @param string|null $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. * * @return self */ - public function setFormatVersion($format_version) + public function setResponseCondition($response_condition) { - $allowedValues = $this->getFormatVersionAllowableValues(); - if (!is_null($format_version) && !in_array($format_version, $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value '%s' for 'format_version', must be one of '%s'", - $format_version, - implode("', '", $allowedValues) - ) - ); - } - $this->container['format_version'] = $format_version; + $this->container['response_condition'] = $response_condition; return $this; } /** - * Gets response_condition + * Gets format * * @return string|null */ - public function getResponseCondition() + public function getFormat() { - return $this->container['response_condition']; + return $this->container['format']; } /** - * Sets response_condition + * Sets format * - * @param string|null $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. + * @param string|null $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). * * @return self */ - public function setResponseCondition($response_condition) + public function setFormat($format) { - $this->container['response_condition'] = $response_condition; + $this->container['format'] = $format; return $this; } /** - * Gets format + * Gets format_version * * @return string|null */ - public function getFormat() + public function getFormatVersion() { - return $this->container['format']; + return $this->container['format_version']; } /** - * Sets format + * Sets format_version * - * @param string|null $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). + * @param string|null $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. * * @return self */ - public function setFormat($format) + public function setFormatVersion($format_version) { - $this->container['format'] = $format; + $allowedValues = $this->getFormatVersionAllowableValues(); + if (!is_null($format_version) && !in_array($format_version, $allowedValues, true)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value '%s' for 'format_version', must be one of '%s'", + $format_version, + implode("', '", $allowedValues) + ) + ); + } + $this->container['format_version'] = $format_version; return $this; } @@ -812,7 +812,7 @@ public function setServiceId($service_id) /** * Gets version * - * @return int|null + * @return string|null */ public function getVersion() { @@ -822,7 +822,7 @@ public function getVersion() /** * Sets version * - * @param int|null $version version + * @param string|null $version version * * @return self */ diff --git a/lib/Model/LoggingSumologicAllOf.php b/lib/Model/LoggingSumologicAdditional.php similarity index 96% rename from lib/Model/LoggingSumologicAllOf.php rename to lib/Model/LoggingSumologicAdditional.php index 5950311c..7027658d 100644 --- a/lib/Model/LoggingSumologicAllOf.php +++ b/lib/Model/LoggingSumologicAdditional.php @@ -1,6 +1,6 @@ 'string', 'placement' => 'string', - 'format_version' => 'int', 'response_condition' => 'string', 'format' => 'string', + 'format_version' => 'string', 'message_type' => '\Fastly\Model\LoggingMessageType', 'url' => 'string', 'created_at' => '\DateTime', 'deleted_at' => '\DateTime', 'updated_at' => '\DateTime', 'service_id' => 'string', - 'version' => 'int' + 'version' => 'string' ]; /** @@ -77,9 +77,9 @@ class LoggingSumologicResponse implements ModelInterface, ArrayAccess, \JsonSeri protected static $fastlyFormats = [ 'name' => null, 'placement' => null, - 'format_version' => null, 'response_condition' => null, 'format' => null, + 'format_version' => null, 'message_type' => null, 'url' => null, 'created_at' => 'date-time', @@ -118,9 +118,9 @@ public static function fastlyFormats() protected static $attributeMap = [ 'name' => 'name', 'placement' => 'placement', - 'format_version' => 'format_version', 'response_condition' => 'response_condition', 'format' => 'format', + 'format_version' => 'format_version', 'message_type' => 'message_type', 'url' => 'url', 'created_at' => 'created_at', @@ -138,9 +138,9 @@ public static function fastlyFormats() protected static $setters = [ 'name' => 'setName', 'placement' => 'setPlacement', - 'format_version' => 'setFormatVersion', 'response_condition' => 'setResponseCondition', 'format' => 'setFormat', + 'format_version' => 'setFormatVersion', 'message_type' => 'setMessageType', 'url' => 'setUrl', 'created_at' => 'setCreatedAt', @@ -158,9 +158,9 @@ public static function fastlyFormats() protected static $getters = [ 'name' => 'getName', 'placement' => 'getPlacement', - 'format_version' => 'getFormatVersion', 'response_condition' => 'getResponseCondition', 'format' => 'getFormat', + 'format_version' => 'getFormatVersion', 'message_type' => 'getMessageType', 'url' => 'getUrl', 'created_at' => 'getCreatedAt', @@ -214,8 +214,8 @@ public function getModelName() const PLACEMENT_NONE = 'none'; const PLACEMENT_WAF_DEBUG = 'waf_debug'; const PLACEMENT_NULL = 'null'; - const FORMAT_VERSION_v1 = 1; - const FORMAT_VERSION_v2 = 2; + const FORMAT_VERSION_v1 = '1'; + const FORMAT_VERSION_v2 = '2'; /** * Gets allowable values of the enum @@ -261,9 +261,9 @@ public function __construct(array $data = null) { $this->container['name'] = $data['name'] ?? null; $this->container['placement'] = $data['placement'] ?? null; - $this->container['format_version'] = $data['format_version'] ?? self::FORMAT_VERSION_v2; $this->container['response_condition'] = $data['response_condition'] ?? null; $this->container['format'] = $data['format'] ?? '%h %l %u %t "%r" %>s %b'; + $this->container['format_version'] = $data['format_version'] ?? '2'; $this->container['message_type'] = $data['message_type'] ?? null; $this->container['url'] = $data['url'] ?? null; $this->container['created_at'] = $data['created_at'] ?? null; @@ -374,83 +374,83 @@ public function setPlacement($placement) } /** - * Gets format_version + * Gets response_condition * - * @return int|null + * @return string|null */ - public function getFormatVersion() + public function getResponseCondition() { - return $this->container['format_version']; + return $this->container['response_condition']; } /** - * Sets format_version + * Sets response_condition * - * @param int|null $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. + * @param string|null $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. * * @return self */ - public function setFormatVersion($format_version) + public function setResponseCondition($response_condition) { - $allowedValues = $this->getFormatVersionAllowableValues(); - if (!is_null($format_version) && !in_array($format_version, $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value '%s' for 'format_version', must be one of '%s'", - $format_version, - implode("', '", $allowedValues) - ) - ); - } - $this->container['format_version'] = $format_version; + $this->container['response_condition'] = $response_condition; return $this; } /** - * Gets response_condition + * Gets format * * @return string|null */ - public function getResponseCondition() + public function getFormat() { - return $this->container['response_condition']; + return $this->container['format']; } /** - * Sets response_condition + * Sets format * - * @param string|null $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. + * @param string|null $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). * * @return self */ - public function setResponseCondition($response_condition) + public function setFormat($format) { - $this->container['response_condition'] = $response_condition; + $this->container['format'] = $format; return $this; } /** - * Gets format + * Gets format_version * * @return string|null */ - public function getFormat() + public function getFormatVersion() { - return $this->container['format']; + return $this->container['format_version']; } /** - * Sets format + * Sets format_version * - * @param string|null $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). + * @param string|null $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. * * @return self */ - public function setFormat($format) + public function setFormatVersion($format_version) { - $this->container['format'] = $format; + $allowedValues = $this->getFormatVersionAllowableValues(); + if (!is_null($format_version) && !in_array($format_version, $allowedValues, true)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value '%s' for 'format_version', must be one of '%s'", + $format_version, + implode("', '", $allowedValues) + ) + ); + } + $this->container['format_version'] = $format_version; return $this; } @@ -602,7 +602,7 @@ public function setServiceId($service_id) /** * Gets version * - * @return int|null + * @return string|null */ public function getVersion() { @@ -612,7 +612,7 @@ public function getVersion() /** * Sets version * - * @param int|null $version version + * @param string|null $version version * * @return self */ diff --git a/lib/Model/LoggingSyslog.php b/lib/Model/LoggingSyslog.php deleted file mode 100644 index d0cccf26..00000000 --- a/lib/Model/LoggingSyslog.php +++ /dev/null @@ -1,834 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class LoggingSyslog implements ModelInterface, ArrayAccess, \JsonSerializable -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $fastlyModelName = 'logging_syslog'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $fastlyTypes = [ - 'name' => 'string', - 'placement' => 'string', - 'format_version' => 'int', - 'response_condition' => 'string', - 'format' => 'string', - 'tls_ca_cert' => 'string', - 'tls_client_cert' => 'string', - 'tls_client_key' => 'string', - 'tls_hostname' => 'string', - 'address' => 'string', - 'port' => 'int', - 'message_type' => '\Fastly\Model\LoggingMessageType', - 'hostname' => 'string', - 'ipv4' => 'string', - 'token' => 'string', - 'use_tls' => '\Fastly\Model\LoggingUseTls' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $fastlyFormats = [ - 'name' => null, - 'placement' => null, - 'format_version' => null, - 'response_condition' => null, - 'format' => null, - 'tls_ca_cert' => null, - 'tls_client_cert' => null, - 'tls_client_key' => null, - 'tls_hostname' => null, - 'address' => null, - 'port' => null, - 'message_type' => null, - 'hostname' => null, - 'ipv4' => null, - 'token' => null, - 'use_tls' => null - ]; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @return array - */ - public static function fastlyTypes() - { - return self::$fastlyTypes; - } - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @return array - */ - public static function fastlyFormats() - { - return self::$fastlyFormats; - } - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'name' => 'name', - 'placement' => 'placement', - 'format_version' => 'format_version', - 'response_condition' => 'response_condition', - 'format' => 'format', - 'tls_ca_cert' => 'tls_ca_cert', - 'tls_client_cert' => 'tls_client_cert', - 'tls_client_key' => 'tls_client_key', - 'tls_hostname' => 'tls_hostname', - 'address' => 'address', - 'port' => 'port', - 'message_type' => 'message_type', - 'hostname' => 'hostname', - 'ipv4' => 'ipv4', - 'token' => 'token', - 'use_tls' => 'use_tls' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'name' => 'setName', - 'placement' => 'setPlacement', - 'format_version' => 'setFormatVersion', - 'response_condition' => 'setResponseCondition', - 'format' => 'setFormat', - 'tls_ca_cert' => 'setTlsCaCert', - 'tls_client_cert' => 'setTlsClientCert', - 'tls_client_key' => 'setTlsClientKey', - 'tls_hostname' => 'setTlsHostname', - 'address' => 'setAddress', - 'port' => 'setPort', - 'message_type' => 'setMessageType', - 'hostname' => 'setHostname', - 'ipv4' => 'setIpv4', - 'token' => 'setToken', - 'use_tls' => 'setUseTls' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'name' => 'getName', - 'placement' => 'getPlacement', - 'format_version' => 'getFormatVersion', - 'response_condition' => 'getResponseCondition', - 'format' => 'getFormat', - 'tls_ca_cert' => 'getTlsCaCert', - 'tls_client_cert' => 'getTlsClientCert', - 'tls_client_key' => 'getTlsClientKey', - 'tls_hostname' => 'getTlsHostname', - 'address' => 'getAddress', - 'port' => 'getPort', - 'message_type' => 'getMessageType', - 'hostname' => 'getHostname', - 'ipv4' => 'getIpv4', - 'token' => 'getToken', - 'use_tls' => 'getUseTls' - ]; - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @return array - */ - public static function attributeMap() - { - return self::$attributeMap; - } - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @return array - */ - public static function setters() - { - return self::$setters; - } - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @return array - */ - public static function getters() - { - return self::$getters; - } - - /** - * The original name of the model. - * - * @return string - */ - public function getModelName() - { - return self::$fastlyModelName; - } - - const PLACEMENT_NONE = 'none'; - const PLACEMENT_WAF_DEBUG = 'waf_debug'; - const PLACEMENT_NULL = 'null'; - const FORMAT_VERSION_v1 = 1; - const FORMAT_VERSION_v2 = 2; - - /** - * Gets allowable values of the enum - * - * @return string[] - */ - public function getPlacementAllowableValues() - { - return [ - self::PLACEMENT_NONE, - self::PLACEMENT_WAF_DEBUG, - self::PLACEMENT_NULL, - ]; - } - - /** - * Gets allowable values of the enum - * - * @return string[] - */ - public function getFormatVersionAllowableValues() - { - return [ - self::FORMAT_VERSION_v1, - self::FORMAT_VERSION_v2, - ]; - } - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['name'] = $data['name'] ?? null; - $this->container['placement'] = $data['placement'] ?? null; - $this->container['format_version'] = $data['format_version'] ?? self::FORMAT_VERSION_v2; - $this->container['response_condition'] = $data['response_condition'] ?? null; - $this->container['format'] = $data['format'] ?? '%h %l %u %t "%r" %>s %b'; - $this->container['tls_ca_cert'] = $data['tls_ca_cert'] ?? 'null'; - $this->container['tls_client_cert'] = $data['tls_client_cert'] ?? 'null'; - $this->container['tls_client_key'] = $data['tls_client_key'] ?? 'null'; - $this->container['tls_hostname'] = $data['tls_hostname'] ?? 'null'; - $this->container['address'] = $data['address'] ?? null; - $this->container['port'] = $data['port'] ?? 514; - $this->container['message_type'] = $data['message_type'] ?? null; - $this->container['hostname'] = $data['hostname'] ?? null; - $this->container['ipv4'] = $data['ipv4'] ?? null; - $this->container['token'] = $data['token'] ?? 'null'; - $this->container['use_tls'] = $data['use_tls'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - - $allowedValues = $this->getPlacementAllowableValues(); - if (!is_null($this->container['placement']) && !in_array($this->container['placement'], $allowedValues, true)) { - $invalidProperties[] = sprintf( - "invalid value '%s' for 'placement', must be one of '%s'", - $this->container['placement'], - implode("', '", $allowedValues) - ); - } - - $allowedValues = $this->getFormatVersionAllowableValues(); - if (!is_null($this->container['format_version']) && !in_array($this->container['format_version'], $allowedValues, true)) { - $invalidProperties[] = sprintf( - "invalid value '%s' for 'format_version', must be one of '%s'", - $this->container['format_version'], - implode("', '", $allowedValues) - ); - } - - return $invalidProperties; - } - - /** - * Validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - return count($this->listInvalidProperties()) === 0; - } - - - /** - * Gets name - * - * @return string|null - */ - public function getName() - { - return $this->container['name']; - } - - /** - * Sets name - * - * @param string|null $name The name for the real-time logging configuration. - * - * @return self - */ - public function setName($name) - { - $this->container['name'] = $name; - - return $this; - } - - /** - * Gets placement - * - * @return string|null - */ - public function getPlacement() - { - return $this->container['placement']; - } - - /** - * Sets placement - * - * @param string|null $placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. - * - * @return self - */ - public function setPlacement($placement) - { - $allowedValues = $this->getPlacementAllowableValues(); - if (!is_null($placement) && !in_array($placement, $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value '%s' for 'placement', must be one of '%s'", - $placement, - implode("', '", $allowedValues) - ) - ); - } - $this->container['placement'] = $placement; - - return $this; - } - - /** - * Gets format_version - * - * @return int|null - */ - public function getFormatVersion() - { - return $this->container['format_version']; - } - - /** - * Sets format_version - * - * @param int|null $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. - * - * @return self - */ - public function setFormatVersion($format_version) - { - $allowedValues = $this->getFormatVersionAllowableValues(); - if (!is_null($format_version) && !in_array($format_version, $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value '%s' for 'format_version', must be one of '%s'", - $format_version, - implode("', '", $allowedValues) - ) - ); - } - $this->container['format_version'] = $format_version; - - return $this; - } - - /** - * Gets response_condition - * - * @return string|null - */ - public function getResponseCondition() - { - return $this->container['response_condition']; - } - - /** - * Sets response_condition - * - * @param string|null $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. - * - * @return self - */ - public function setResponseCondition($response_condition) - { - $this->container['response_condition'] = $response_condition; - - return $this; - } - - /** - * Gets format - * - * @return string|null - */ - public function getFormat() - { - return $this->container['format']; - } - - /** - * Sets format - * - * @param string|null $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). - * - * @return self - */ - public function setFormat($format) - { - $this->container['format'] = $format; - - return $this; - } - - /** - * Gets tls_ca_cert - * - * @return string|null - */ - public function getTlsCaCert() - { - return $this->container['tls_ca_cert']; - } - - /** - * Sets tls_ca_cert - * - * @param string|null $tls_ca_cert A secure certificate to authenticate a server with. Must be in PEM format. - * - * @return self - */ - public function setTlsCaCert($tls_ca_cert) - { - $this->container['tls_ca_cert'] = $tls_ca_cert; - - return $this; - } - - /** - * Gets tls_client_cert - * - * @return string|null - */ - public function getTlsClientCert() - { - return $this->container['tls_client_cert']; - } - - /** - * Sets tls_client_cert - * - * @param string|null $tls_client_cert The client certificate used to make authenticated requests. Must be in PEM format. - * - * @return self - */ - public function setTlsClientCert($tls_client_cert) - { - $this->container['tls_client_cert'] = $tls_client_cert; - - return $this; - } - - /** - * Gets tls_client_key - * - * @return string|null - */ - public function getTlsClientKey() - { - return $this->container['tls_client_key']; - } - - /** - * Sets tls_client_key - * - * @param string|null $tls_client_key The client private key used to make authenticated requests. Must be in PEM format. - * - * @return self - */ - public function setTlsClientKey($tls_client_key) - { - $this->container['tls_client_key'] = $tls_client_key; - - return $this; - } - - /** - * Gets tls_hostname - * - * @return string|null - */ - public function getTlsHostname() - { - return $this->container['tls_hostname']; - } - - /** - * Sets tls_hostname - * - * @param string|null $tls_hostname The hostname to verify the server's certificate. This should be one of the Subject Alternative Name (SAN) fields for the certificate. Common Names (CN) are not supported. - * - * @return self - */ - public function setTlsHostname($tls_hostname) - { - $this->container['tls_hostname'] = $tls_hostname; - - return $this; - } - - /** - * Gets address - * - * @return string|null - */ - public function getAddress() - { - return $this->container['address']; - } - - /** - * Sets address - * - * @param string|null $address A hostname or IPv4 address. - * - * @return self - */ - public function setAddress($address) - { - $this->container['address'] = $address; - - return $this; - } - - /** - * Gets port - * - * @return int|null - */ - public function getPort() - { - return $this->container['port']; - } - - /** - * Sets port - * - * @param int|null $port The port number. - * - * @return self - */ - public function setPort($port) - { - $this->container['port'] = $port; - - return $this; - } - - /** - * Gets message_type - * - * @return \Fastly\Model\LoggingMessageType|null - */ - public function getMessageType() - { - return $this->container['message_type']; - } - - /** - * Sets message_type - * - * @param \Fastly\Model\LoggingMessageType|null $message_type message_type - * - * @return self - */ - public function setMessageType($message_type) - { - $this->container['message_type'] = $message_type; - - return $this; - } - - /** - * Gets hostname - * - * @return string|null - */ - public function getHostname() - { - return $this->container['hostname']; - } - - /** - * Sets hostname - * - * @param string|null $hostname The hostname used for the syslog endpoint. - * - * @return self - */ - public function setHostname($hostname) - { - $this->container['hostname'] = $hostname; - - return $this; - } - - /** - * Gets ipv4 - * - * @return string|null - */ - public function getIpv4() - { - return $this->container['ipv4']; - } - - /** - * Sets ipv4 - * - * @param string|null $ipv4 The IPv4 address used for the syslog endpoint. - * - * @return self - */ - public function setIpv4($ipv4) - { - $this->container['ipv4'] = $ipv4; - - return $this; - } - - /** - * Gets token - * - * @return string|null - */ - public function getToken() - { - return $this->container['token']; - } - - /** - * Sets token - * - * @param string|null $token Whether to prepend each message with a specific token. - * - * @return self - */ - public function setToken($token) - { - $this->container['token'] = $token; - - return $this; - } - - /** - * Gets use_tls - * - * @return \Fastly\Model\LoggingUseTls|null - */ - public function getUseTls() - { - return $this->container['use_tls']; - } - - /** - * Sets use_tls - * - * @param \Fastly\Model\LoggingUseTls|null $use_tls use_tls - * - * @return self - */ - public function setUseTls($use_tls) - { - $this->container['use_tls'] = $use_tls; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * - * @param integer $offset Offset - * - * @return boolean - */ - public function offsetExists($offset): bool - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * - * @param integer $offset Offset - * - * @return mixed|null - */ - public function offsetGet($offset): mixed - { - return $this->container[$offset] ?? null; - } - - /** - * Sets value based on offset. - * - * @param int|null $offset Offset - * @param mixed $value Value to be set - * - * @return void - */ - public function offsetSet($offset, $value): void - { - if (is_null($offset)) { - $this->container[] = $value; - } else { - $this->container[$offset] = $value; - } - } - - /** - * Unsets offset. - * - * @param integer $offset Offset - * - * @return void - */ - public function offsetUnset($offset): void - { - unset($this->container[$offset]); - } - - /** - * Serializes the object to a value that can be serialized natively by json_encode(). - * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php - * - * @return mixed Returns data which can be serialized by json_encode(), which is a value - * of any type other than a resource. - */ - public function jsonSerialize(): mixed - { - return ObjectSerializer::sanitizeForSerialization($this); - } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString() - { - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } - - /** - * Gets a header-safe presentation of the object - * - * @return string - */ - public function toHeaderValue() - { - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/lib/Model/LoggingSyslogAllOf.php b/lib/Model/LoggingSyslogAdditional.php similarity index 97% rename from lib/Model/LoggingSyslogAllOf.php rename to lib/Model/LoggingSyslogAdditional.php index 1e4dc4c0..8c0a1437 100644 --- a/lib/Model/LoggingSyslogAllOf.php +++ b/lib/Model/LoggingSyslogAdditional.php @@ -1,6 +1,6 @@ 'string', 'placement' => 'string', - 'format_version' => 'int', 'response_condition' => 'string', 'format' => 'string', + 'format_version' => 'string', 'tls_ca_cert' => 'string', 'tls_client_cert' => 'string', 'tls_client_key' => 'string', @@ -73,7 +73,7 @@ class LoggingSyslogResponse implements ModelInterface, ArrayAccess, \JsonSeriali 'deleted_at' => '\DateTime', 'updated_at' => '\DateTime', 'service_id' => 'string', - 'version' => 'int' + 'version' => 'string' ]; /** @@ -86,9 +86,9 @@ class LoggingSyslogResponse implements ModelInterface, ArrayAccess, \JsonSeriali protected static $fastlyFormats = [ 'name' => null, 'placement' => null, - 'format_version' => null, 'response_condition' => null, 'format' => null, + 'format_version' => null, 'tls_ca_cert' => null, 'tls_client_cert' => null, 'tls_client_key' => null, @@ -136,9 +136,9 @@ public static function fastlyFormats() protected static $attributeMap = [ 'name' => 'name', 'placement' => 'placement', - 'format_version' => 'format_version', 'response_condition' => 'response_condition', 'format' => 'format', + 'format_version' => 'format_version', 'tls_ca_cert' => 'tls_ca_cert', 'tls_client_cert' => 'tls_client_cert', 'tls_client_key' => 'tls_client_key', @@ -165,9 +165,9 @@ public static function fastlyFormats() protected static $setters = [ 'name' => 'setName', 'placement' => 'setPlacement', - 'format_version' => 'setFormatVersion', 'response_condition' => 'setResponseCondition', 'format' => 'setFormat', + 'format_version' => 'setFormatVersion', 'tls_ca_cert' => 'setTlsCaCert', 'tls_client_cert' => 'setTlsClientCert', 'tls_client_key' => 'setTlsClientKey', @@ -194,9 +194,9 @@ public static function fastlyFormats() protected static $getters = [ 'name' => 'getName', 'placement' => 'getPlacement', - 'format_version' => 'getFormatVersion', 'response_condition' => 'getResponseCondition', 'format' => 'getFormat', + 'format_version' => 'getFormatVersion', 'tls_ca_cert' => 'getTlsCaCert', 'tls_client_cert' => 'getTlsClientCert', 'tls_client_key' => 'getTlsClientKey', @@ -259,8 +259,8 @@ public function getModelName() const PLACEMENT_NONE = 'none'; const PLACEMENT_WAF_DEBUG = 'waf_debug'; const PLACEMENT_NULL = 'null'; - const FORMAT_VERSION_v1 = 1; - const FORMAT_VERSION_v2 = 2; + const FORMAT_VERSION_v1 = '1'; + const FORMAT_VERSION_v2 = '2'; /** * Gets allowable values of the enum @@ -306,9 +306,9 @@ public function __construct(array $data = null) { $this->container['name'] = $data['name'] ?? null; $this->container['placement'] = $data['placement'] ?? null; - $this->container['format_version'] = $data['format_version'] ?? self::FORMAT_VERSION_v2; $this->container['response_condition'] = $data['response_condition'] ?? null; $this->container['format'] = $data['format'] ?? '%h %l %u %t "%r" %>s %b'; + $this->container['format_version'] = $data['format_version'] ?? '2'; $this->container['tls_ca_cert'] = $data['tls_ca_cert'] ?? 'null'; $this->container['tls_client_cert'] = $data['tls_client_cert'] ?? 'null'; $this->container['tls_client_key'] = $data['tls_client_key'] ?? 'null'; @@ -428,83 +428,83 @@ public function setPlacement($placement) } /** - * Gets format_version + * Gets response_condition * - * @return int|null + * @return string|null */ - public function getFormatVersion() + public function getResponseCondition() { - return $this->container['format_version']; + return $this->container['response_condition']; } /** - * Sets format_version + * Sets response_condition * - * @param int|null $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. + * @param string|null $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. * * @return self */ - public function setFormatVersion($format_version) + public function setResponseCondition($response_condition) { - $allowedValues = $this->getFormatVersionAllowableValues(); - if (!is_null($format_version) && !in_array($format_version, $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value '%s' for 'format_version', must be one of '%s'", - $format_version, - implode("', '", $allowedValues) - ) - ); - } - $this->container['format_version'] = $format_version; + $this->container['response_condition'] = $response_condition; return $this; } /** - * Gets response_condition + * Gets format * * @return string|null */ - public function getResponseCondition() + public function getFormat() { - return $this->container['response_condition']; + return $this->container['format']; } /** - * Sets response_condition + * Sets format * - * @param string|null $response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute. + * @param string|null $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). * * @return self */ - public function setResponseCondition($response_condition) + public function setFormat($format) { - $this->container['response_condition'] = $response_condition; + $this->container['format'] = $format; return $this; } /** - * Gets format + * Gets format_version * * @return string|null */ - public function getFormat() + public function getFormatVersion() { - return $this->container['format']; + return $this->container['format_version']; } /** - * Sets format + * Sets format_version * - * @param string|null $format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). + * @param string|null $format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. * * @return self */ - public function setFormat($format) + public function setFormatVersion($format_version) { - $this->container['format'] = $format; + $allowedValues = $this->getFormatVersionAllowableValues(); + if (!is_null($format_version) && !in_array($format_version, $allowedValues, true)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value '%s' for 'format_version', must be one of '%s'", + $format_version, + implode("', '", $allowedValues) + ) + ); + } + $this->container['format_version'] = $format_version; return $this; } @@ -872,7 +872,7 @@ public function setServiceId($service_id) /** * Gets version * - * @return int|null + * @return string|null */ public function getVersion() { @@ -882,7 +882,7 @@ public function getVersion() /** * Sets version * - * @param int|null $version version + * @param string|null $version version * * @return self */ diff --git a/lib/Model/PoolAllOf.php b/lib/Model/PoolAdditional.php similarity index 75% rename from lib/Model/PoolAllOf.php rename to lib/Model/PoolAdditional.php index 1f777c91..53568e4e 100644 --- a/lib/Model/PoolAllOf.php +++ b/lib/Model/PoolAdditional.php @@ -1,6 +1,6 @@ 'string', 'shield' => 'string', 'request_condition' => 'string', - 'max_conn_default' => 'int', - 'connect_timeout' => 'int', - 'first_byte_timeout' => 'int', - 'quorum' => 'int', 'tls_ciphers' => 'string', 'tls_sni_hostname' => 'string', - 'tls_check_cert' => 'int', 'min_tls_version' => 'int', 'max_tls_version' => 'int', 'healthcheck' => 'string', @@ -82,13 +77,8 @@ class PoolAllOf implements ModelInterface, ArrayAccess, \JsonSerializable 'name' => null, 'shield' => null, 'request_condition' => null, - 'max_conn_default' => null, - 'connect_timeout' => null, - 'first_byte_timeout' => null, - 'quorum' => null, 'tls_ciphers' => null, 'tls_sni_hostname' => null, - 'tls_check_cert' => null, 'min_tls_version' => null, 'max_tls_version' => null, 'healthcheck' => null, @@ -127,13 +117,8 @@ public static function fastlyFormats() 'name' => 'name', 'shield' => 'shield', 'request_condition' => 'request_condition', - 'max_conn_default' => 'max_conn_default', - 'connect_timeout' => 'connect_timeout', - 'first_byte_timeout' => 'first_byte_timeout', - 'quorum' => 'quorum', 'tls_ciphers' => 'tls_ciphers', 'tls_sni_hostname' => 'tls_sni_hostname', - 'tls_check_cert' => 'tls_check_cert', 'min_tls_version' => 'min_tls_version', 'max_tls_version' => 'max_tls_version', 'healthcheck' => 'healthcheck', @@ -151,13 +136,8 @@ public static function fastlyFormats() 'name' => 'setName', 'shield' => 'setShield', 'request_condition' => 'setRequestCondition', - 'max_conn_default' => 'setMaxConnDefault', - 'connect_timeout' => 'setConnectTimeout', - 'first_byte_timeout' => 'setFirstByteTimeout', - 'quorum' => 'setQuorum', 'tls_ciphers' => 'setTlsCiphers', 'tls_sni_hostname' => 'setTlsSniHostname', - 'tls_check_cert' => 'setTlsCheckCert', 'min_tls_version' => 'setMinTlsVersion', 'max_tls_version' => 'setMaxTlsVersion', 'healthcheck' => 'setHealthcheck', @@ -175,13 +155,8 @@ public static function fastlyFormats() 'name' => 'getName', 'shield' => 'getShield', 'request_condition' => 'getRequestCondition', - 'max_conn_default' => 'getMaxConnDefault', - 'connect_timeout' => 'getConnectTimeout', - 'first_byte_timeout' => 'getFirstByteTimeout', - 'quorum' => 'getQuorum', 'tls_ciphers' => 'getTlsCiphers', 'tls_sni_hostname' => 'getTlsSniHostname', - 'tls_check_cert' => 'getTlsCheckCert', 'min_tls_version' => 'getMinTlsVersion', 'max_tls_version' => 'getMaxTlsVersion', 'healthcheck' => 'getHealthcheck', @@ -267,13 +242,8 @@ public function __construct(array $data = null) $this->container['name'] = $data['name'] ?? null; $this->container['shield'] = $data['shield'] ?? 'null'; $this->container['request_condition'] = $data['request_condition'] ?? null; - $this->container['max_conn_default'] = $data['max_conn_default'] ?? 200; - $this->container['connect_timeout'] = $data['connect_timeout'] ?? null; - $this->container['first_byte_timeout'] = $data['first_byte_timeout'] ?? null; - $this->container['quorum'] = $data['quorum'] ?? 75; $this->container['tls_ciphers'] = $data['tls_ciphers'] ?? null; $this->container['tls_sni_hostname'] = $data['tls_sni_hostname'] ?? null; - $this->container['tls_check_cert'] = $data['tls_check_cert'] ?? null; $this->container['min_tls_version'] = $data['min_tls_version'] ?? null; $this->container['max_tls_version'] = $data['max_tls_version'] ?? null; $this->container['healthcheck'] = $data['healthcheck'] ?? null; @@ -291,14 +261,6 @@ public function listInvalidProperties() { $invalidProperties = []; - if (!is_null($this->container['quorum']) && ($this->container['quorum'] > 100)) { - $invalidProperties[] = "invalid value for 'quorum', must be smaller than or equal to 100."; - } - - if (!is_null($this->container['quorum']) && ($this->container['quorum'] < 0)) { - $invalidProperties[] = "invalid value for 'quorum', must be bigger than or equal to 0."; - } - $allowedValues = $this->getTypeAllowableValues(); if (!is_null($this->container['type']) && !in_array($this->container['type'], $allowedValues, true)) { $invalidProperties[] = sprintf( @@ -395,110 +357,6 @@ public function setRequestCondition($request_condition) return $this; } - /** - * Gets max_conn_default - * - * @return int|null - */ - public function getMaxConnDefault() - { - return $this->container['max_conn_default']; - } - - /** - * Sets max_conn_default - * - * @param int|null $max_conn_default Maximum number of connections. Optional. - * - * @return self - */ - public function setMaxConnDefault($max_conn_default) - { - $this->container['max_conn_default'] = $max_conn_default; - - return $this; - } - - /** - * Gets connect_timeout - * - * @return int|null - */ - public function getConnectTimeout() - { - return $this->container['connect_timeout']; - } - - /** - * Sets connect_timeout - * - * @param int|null $connect_timeout How long to wait for a timeout in milliseconds. Optional. - * - * @return self - */ - public function setConnectTimeout($connect_timeout) - { - $this->container['connect_timeout'] = $connect_timeout; - - return $this; - } - - /** - * Gets first_byte_timeout - * - * @return int|null - */ - public function getFirstByteTimeout() - { - return $this->container['first_byte_timeout']; - } - - /** - * Sets first_byte_timeout - * - * @param int|null $first_byte_timeout How long to wait for the first byte in milliseconds. Optional. - * - * @return self - */ - public function setFirstByteTimeout($first_byte_timeout) - { - $this->container['first_byte_timeout'] = $first_byte_timeout; - - return $this; - } - - /** - * Gets quorum - * - * @return int|null - */ - public function getQuorum() - { - return $this->container['quorum']; - } - - /** - * Sets quorum - * - * @param int|null $quorum Percentage of capacity (`0-100`) that needs to be operationally available for a pool to be considered up. - * - * @return self - */ - public function setQuorum($quorum) - { - - if (!is_null($quorum) && ($quorum > 100)) { - throw new \InvalidArgumentException('invalid value for $quorum when calling PoolAllOf., must be smaller than or equal to 100.'); - } - if (!is_null($quorum) && ($quorum < 0)) { - throw new \InvalidArgumentException('invalid value for $quorum when calling PoolAllOf., must be bigger than or equal to 0.'); - } - - $this->container['quorum'] = $quorum; - - return $this; - } - /** * Gets tls_ciphers * @@ -547,30 +405,6 @@ public function setTlsSniHostname($tls_sni_hostname) return $this; } - /** - * Gets tls_check_cert - * - * @return int|null - */ - public function getTlsCheckCert() - { - return $this->container['tls_check_cert']; - } - - /** - * Sets tls_check_cert - * - * @param int|null $tls_check_cert Be strict on checking TLS certs. Optional. - * - * @return self - */ - public function setTlsCheckCert($tls_check_cert) - { - $this->container['tls_check_cert'] = $tls_check_cert; - - return $this; - } - /** * Gets min_tls_version * diff --git a/lib/Model/PoolResponse.php b/lib/Model/PoolResponse.php index 08a48daf..33485b83 100644 --- a/lib/Model/PoolResponse.php +++ b/lib/Model/PoolResponse.php @@ -57,29 +57,30 @@ class PoolResponse implements ModelInterface, ArrayAccess, \JsonSerializable 'tls_client_cert' => 'string', 'tls_client_key' => 'string', 'tls_cert_hostname' => 'string', - 'use_tls' => 'int', + 'use_tls' => 'string', + 'created_at' => '\DateTime', + 'deleted_at' => '\DateTime', + 'updated_at' => '\DateTime', + 'service_id' => 'string', + 'version' => 'string', 'name' => 'string', 'shield' => 'string', 'request_condition' => 'string', - 'max_conn_default' => 'int', - 'connect_timeout' => 'int', - 'first_byte_timeout' => 'int', - 'quorum' => 'int', 'tls_ciphers' => 'string', 'tls_sni_hostname' => 'string', - 'tls_check_cert' => 'int', 'min_tls_version' => 'int', 'max_tls_version' => 'int', 'healthcheck' => 'string', 'comment' => 'string', 'type' => 'string', 'override_host' => 'string', - 'created_at' => '\DateTime', - 'deleted_at' => '\DateTime', - 'updated_at' => '\DateTime', - 'service_id' => 'string', - 'version' => 'int', - 'id' => 'string' + 'between_bytes_timeout' => 'string', + 'connect_timeout' => 'string', + 'first_byte_timeout' => 'string', + 'max_conn_default' => 'string', + 'tls_check_cert' => 'string', + 'id' => 'string', + 'quorum' => 'string' ]; /** @@ -95,28 +96,29 @@ class PoolResponse implements ModelInterface, ArrayAccess, \JsonSerializable 'tls_client_key' => null, 'tls_cert_hostname' => null, 'use_tls' => null, + 'created_at' => 'date-time', + 'deleted_at' => 'date-time', + 'updated_at' => 'date-time', + 'service_id' => null, + 'version' => null, 'name' => null, 'shield' => null, 'request_condition' => null, - 'max_conn_default' => null, - 'connect_timeout' => null, - 'first_byte_timeout' => null, - 'quorum' => null, 'tls_ciphers' => null, 'tls_sni_hostname' => null, - 'tls_check_cert' => null, 'min_tls_version' => null, 'max_tls_version' => null, 'healthcheck' => null, 'comment' => null, 'type' => null, 'override_host' => null, - 'created_at' => 'date-time', - 'deleted_at' => 'date-time', - 'updated_at' => 'date-time', - 'service_id' => null, - 'version' => null, - 'id' => null + 'between_bytes_timeout' => null, + 'connect_timeout' => null, + 'first_byte_timeout' => null, + 'max_conn_default' => null, + 'tls_check_cert' => null, + 'id' => null, + 'quorum' => null ]; /** @@ -151,28 +153,29 @@ public static function fastlyFormats() 'tls_client_key' => 'tls_client_key', 'tls_cert_hostname' => 'tls_cert_hostname', 'use_tls' => 'use_tls', + 'created_at' => 'created_at', + 'deleted_at' => 'deleted_at', + 'updated_at' => 'updated_at', + 'service_id' => 'service_id', + 'version' => 'version', 'name' => 'name', 'shield' => 'shield', 'request_condition' => 'request_condition', - 'max_conn_default' => 'max_conn_default', - 'connect_timeout' => 'connect_timeout', - 'first_byte_timeout' => 'first_byte_timeout', - 'quorum' => 'quorum', 'tls_ciphers' => 'tls_ciphers', 'tls_sni_hostname' => 'tls_sni_hostname', - 'tls_check_cert' => 'tls_check_cert', 'min_tls_version' => 'min_tls_version', 'max_tls_version' => 'max_tls_version', 'healthcheck' => 'healthcheck', 'comment' => 'comment', 'type' => 'type', 'override_host' => 'override_host', - 'created_at' => 'created_at', - 'deleted_at' => 'deleted_at', - 'updated_at' => 'updated_at', - 'service_id' => 'service_id', - 'version' => 'version', - 'id' => 'id' + 'between_bytes_timeout' => 'between_bytes_timeout', + 'connect_timeout' => 'connect_timeout', + 'first_byte_timeout' => 'first_byte_timeout', + 'max_conn_default' => 'max_conn_default', + 'tls_check_cert' => 'tls_check_cert', + 'id' => 'id', + 'quorum' => 'quorum' ]; /** @@ -186,28 +189,29 @@ public static function fastlyFormats() 'tls_client_key' => 'setTlsClientKey', 'tls_cert_hostname' => 'setTlsCertHostname', 'use_tls' => 'setUseTls', + 'created_at' => 'setCreatedAt', + 'deleted_at' => 'setDeletedAt', + 'updated_at' => 'setUpdatedAt', + 'service_id' => 'setServiceId', + 'version' => 'setVersion', 'name' => 'setName', 'shield' => 'setShield', 'request_condition' => 'setRequestCondition', - 'max_conn_default' => 'setMaxConnDefault', - 'connect_timeout' => 'setConnectTimeout', - 'first_byte_timeout' => 'setFirstByteTimeout', - 'quorum' => 'setQuorum', 'tls_ciphers' => 'setTlsCiphers', 'tls_sni_hostname' => 'setTlsSniHostname', - 'tls_check_cert' => 'setTlsCheckCert', 'min_tls_version' => 'setMinTlsVersion', 'max_tls_version' => 'setMaxTlsVersion', 'healthcheck' => 'setHealthcheck', 'comment' => 'setComment', 'type' => 'setType', 'override_host' => 'setOverrideHost', - 'created_at' => 'setCreatedAt', - 'deleted_at' => 'setDeletedAt', - 'updated_at' => 'setUpdatedAt', - 'service_id' => 'setServiceId', - 'version' => 'setVersion', - 'id' => 'setId' + 'between_bytes_timeout' => 'setBetweenBytesTimeout', + 'connect_timeout' => 'setConnectTimeout', + 'first_byte_timeout' => 'setFirstByteTimeout', + 'max_conn_default' => 'setMaxConnDefault', + 'tls_check_cert' => 'setTlsCheckCert', + 'id' => 'setId', + 'quorum' => 'setQuorum' ]; /** @@ -221,28 +225,29 @@ public static function fastlyFormats() 'tls_client_key' => 'getTlsClientKey', 'tls_cert_hostname' => 'getTlsCertHostname', 'use_tls' => 'getUseTls', + 'created_at' => 'getCreatedAt', + 'deleted_at' => 'getDeletedAt', + 'updated_at' => 'getUpdatedAt', + 'service_id' => 'getServiceId', + 'version' => 'getVersion', 'name' => 'getName', 'shield' => 'getShield', 'request_condition' => 'getRequestCondition', - 'max_conn_default' => 'getMaxConnDefault', - 'connect_timeout' => 'getConnectTimeout', - 'first_byte_timeout' => 'getFirstByteTimeout', - 'quorum' => 'getQuorum', 'tls_ciphers' => 'getTlsCiphers', 'tls_sni_hostname' => 'getTlsSniHostname', - 'tls_check_cert' => 'getTlsCheckCert', 'min_tls_version' => 'getMinTlsVersion', 'max_tls_version' => 'getMaxTlsVersion', 'healthcheck' => 'getHealthcheck', 'comment' => 'getComment', 'type' => 'getType', 'override_host' => 'getOverrideHost', - 'created_at' => 'getCreatedAt', - 'deleted_at' => 'getDeletedAt', - 'updated_at' => 'getUpdatedAt', - 'service_id' => 'getServiceId', - 'version' => 'getVersion', - 'id' => 'getId' + 'between_bytes_timeout' => 'getBetweenBytesTimeout', + 'connect_timeout' => 'getConnectTimeout', + 'first_byte_timeout' => 'getFirstByteTimeout', + 'max_conn_default' => 'getMaxConnDefault', + 'tls_check_cert' => 'getTlsCheckCert', + 'id' => 'getId', + 'quorum' => 'getQuorum' ]; /** @@ -286,8 +291,8 @@ public function getModelName() return self::$fastlyModelName; } - const USE_TLS_no_tls = 0; - const USE_TLS_use_tls = 1; + const USE_TLS_no_tls = '0'; + const USE_TLS_use_tls = '1'; const TYPE_RANDOM = 'random'; const TYPE_HASH = 'hash'; const TYPE_CLIENT = 'client'; @@ -338,29 +343,30 @@ public function __construct(array $data = null) $this->container['tls_client_cert'] = $data['tls_client_cert'] ?? 'null'; $this->container['tls_client_key'] = $data['tls_client_key'] ?? 'null'; $this->container['tls_cert_hostname'] = $data['tls_cert_hostname'] ?? 'null'; - $this->container['use_tls'] = $data['use_tls'] ?? self::USE_TLS_no_tls; + $this->container['use_tls'] = $data['use_tls'] ?? '0'; + $this->container['created_at'] = $data['created_at'] ?? null; + $this->container['deleted_at'] = $data['deleted_at'] ?? null; + $this->container['updated_at'] = $data['updated_at'] ?? null; + $this->container['service_id'] = $data['service_id'] ?? null; + $this->container['version'] = $data['version'] ?? null; $this->container['name'] = $data['name'] ?? null; $this->container['shield'] = $data['shield'] ?? 'null'; $this->container['request_condition'] = $data['request_condition'] ?? null; - $this->container['max_conn_default'] = $data['max_conn_default'] ?? 200; - $this->container['connect_timeout'] = $data['connect_timeout'] ?? null; - $this->container['first_byte_timeout'] = $data['first_byte_timeout'] ?? null; - $this->container['quorum'] = $data['quorum'] ?? 75; $this->container['tls_ciphers'] = $data['tls_ciphers'] ?? null; $this->container['tls_sni_hostname'] = $data['tls_sni_hostname'] ?? null; - $this->container['tls_check_cert'] = $data['tls_check_cert'] ?? null; $this->container['min_tls_version'] = $data['min_tls_version'] ?? null; $this->container['max_tls_version'] = $data['max_tls_version'] ?? null; $this->container['healthcheck'] = $data['healthcheck'] ?? null; $this->container['comment'] = $data['comment'] ?? null; $this->container['type'] = $data['type'] ?? null; $this->container['override_host'] = $data['override_host'] ?? 'null'; - $this->container['created_at'] = $data['created_at'] ?? null; - $this->container['deleted_at'] = $data['deleted_at'] ?? null; - $this->container['updated_at'] = $data['updated_at'] ?? null; - $this->container['service_id'] = $data['service_id'] ?? null; - $this->container['version'] = $data['version'] ?? null; + $this->container['between_bytes_timeout'] = $data['between_bytes_timeout'] ?? null; + $this->container['connect_timeout'] = $data['connect_timeout'] ?? null; + $this->container['first_byte_timeout'] = $data['first_byte_timeout'] ?? null; + $this->container['max_conn_default'] = $data['max_conn_default'] ?? '200'; + $this->container['tls_check_cert'] = $data['tls_check_cert'] ?? null; $this->container['id'] = $data['id'] ?? null; + $this->container['quorum'] = $data['quorum'] ?? '75'; } /** @@ -381,14 +387,6 @@ public function listInvalidProperties() ); } - if (!is_null($this->container['quorum']) && ($this->container['quorum'] > 100)) { - $invalidProperties[] = "invalid value for 'quorum', must be smaller than or equal to 100."; - } - - if (!is_null($this->container['quorum']) && ($this->container['quorum'] < 0)) { - $invalidProperties[] = "invalid value for 'quorum', must be bigger than or equal to 0."; - } - $allowedValues = $this->getTypeAllowableValues(); if (!is_null($this->container['type']) && !in_array($this->container['type'], $allowedValues, true)) { $invalidProperties[] = sprintf( @@ -512,7 +510,7 @@ public function setTlsCertHostname($tls_cert_hostname) /** * Gets use_tls * - * @return int|null + * @return string|null */ public function getUseTls() { @@ -522,7 +520,7 @@ public function getUseTls() /** * Sets use_tls * - * @param int|null $use_tls Whether to use TLS. + * @param string|null $use_tls Whether to use TLS. * * @return self */ @@ -544,249 +542,241 @@ public function setUseTls($use_tls) } /** - * Gets name + * Gets created_at * - * @return string|null + * @return \DateTime|null */ - public function getName() + public function getCreatedAt() { - return $this->container['name']; + return $this->container['created_at']; } /** - * Sets name + * Sets created_at * - * @param string|null $name Name for the Pool. + * @param \DateTime|null $created_at Date and time in ISO 8601 format. * * @return self */ - public function setName($name) + public function setCreatedAt($created_at) { - $this->container['name'] = $name; + $this->container['created_at'] = $created_at; return $this; } /** - * Gets shield + * Gets deleted_at * - * @return string|null + * @return \DateTime|null */ - public function getShield() + public function getDeletedAt() { - return $this->container['shield']; + return $this->container['deleted_at']; } /** - * Sets shield + * Sets deleted_at * - * @param string|null $shield Selected POP to serve as a shield for the servers. Defaults to `null` meaning no origin shielding if not set. Refer to the [POPs API endpoint](/reference/api/utils/pops/) to get a list of available POPs used for shielding. + * @param \DateTime|null $deleted_at Date and time in ISO 8601 format. * * @return self */ - public function setShield($shield) + public function setDeletedAt($deleted_at) { - $this->container['shield'] = $shield; + $this->container['deleted_at'] = $deleted_at; return $this; } /** - * Gets request_condition + * Gets updated_at * - * @return string|null + * @return \DateTime|null */ - public function getRequestCondition() + public function getUpdatedAt() { - return $this->container['request_condition']; + return $this->container['updated_at']; } /** - * Sets request_condition + * Sets updated_at * - * @param string|null $request_condition Condition which, if met, will select this configuration during a request. Optional. + * @param \DateTime|null $updated_at Date and time in ISO 8601 format. * * @return self */ - public function setRequestCondition($request_condition) + public function setUpdatedAt($updated_at) { - $this->container['request_condition'] = $request_condition; + $this->container['updated_at'] = $updated_at; return $this; } /** - * Gets max_conn_default + * Gets service_id * - * @return int|null + * @return string|null */ - public function getMaxConnDefault() + public function getServiceId() { - return $this->container['max_conn_default']; + return $this->container['service_id']; } /** - * Sets max_conn_default + * Sets service_id * - * @param int|null $max_conn_default Maximum number of connections. Optional. + * @param string|null $service_id service_id * * @return self */ - public function setMaxConnDefault($max_conn_default) + public function setServiceId($service_id) { - $this->container['max_conn_default'] = $max_conn_default; + $this->container['service_id'] = $service_id; return $this; } /** - * Gets connect_timeout + * Gets version * - * @return int|null + * @return string|null */ - public function getConnectTimeout() + public function getVersion() { - return $this->container['connect_timeout']; + return $this->container['version']; } /** - * Sets connect_timeout + * Sets version * - * @param int|null $connect_timeout How long to wait for a timeout in milliseconds. Optional. + * @param string|null $version version * * @return self */ - public function setConnectTimeout($connect_timeout) + public function setVersion($version) { - $this->container['connect_timeout'] = $connect_timeout; + $this->container['version'] = $version; return $this; } /** - * Gets first_byte_timeout + * Gets name * - * @return int|null + * @return string|null */ - public function getFirstByteTimeout() + public function getName() { - return $this->container['first_byte_timeout']; + return $this->container['name']; } /** - * Sets first_byte_timeout + * Sets name * - * @param int|null $first_byte_timeout How long to wait for the first byte in milliseconds. Optional. + * @param string|null $name Name for the Pool. * * @return self */ - public function setFirstByteTimeout($first_byte_timeout) + public function setName($name) { - $this->container['first_byte_timeout'] = $first_byte_timeout; + $this->container['name'] = $name; return $this; } /** - * Gets quorum + * Gets shield * - * @return int|null + * @return string|null */ - public function getQuorum() + public function getShield() { - return $this->container['quorum']; + return $this->container['shield']; } /** - * Sets quorum + * Sets shield * - * @param int|null $quorum Percentage of capacity (`0-100`) that needs to be operationally available for a pool to be considered up. + * @param string|null $shield Selected POP to serve as a shield for the servers. Defaults to `null` meaning no origin shielding if not set. Refer to the [POPs API endpoint](/reference/api/utils/pops/) to get a list of available POPs used for shielding. * * @return self */ - public function setQuorum($quorum) + public function setShield($shield) { - - if (!is_null($quorum) && ($quorum > 100)) { - throw new \InvalidArgumentException('invalid value for $quorum when calling PoolResponse., must be smaller than or equal to 100.'); - } - if (!is_null($quorum) && ($quorum < 0)) { - throw new \InvalidArgumentException('invalid value for $quorum when calling PoolResponse., must be bigger than or equal to 0.'); - } - - $this->container['quorum'] = $quorum; + $this->container['shield'] = $shield; return $this; } /** - * Gets tls_ciphers + * Gets request_condition * * @return string|null */ - public function getTlsCiphers() + public function getRequestCondition() { - return $this->container['tls_ciphers']; + return $this->container['request_condition']; } /** - * Sets tls_ciphers + * Sets request_condition * - * @param string|null $tls_ciphers List of OpenSSL ciphers (see the [openssl.org manpages](https://www.openssl.org/docs/man1.1.1/man1/ciphers.html) for details). Optional. + * @param string|null $request_condition Condition which, if met, will select this configuration during a request. Optional. * * @return self */ - public function setTlsCiphers($tls_ciphers) + public function setRequestCondition($request_condition) { - $this->container['tls_ciphers'] = $tls_ciphers; + $this->container['request_condition'] = $request_condition; return $this; } /** - * Gets tls_sni_hostname + * Gets tls_ciphers * * @return string|null */ - public function getTlsSniHostname() + public function getTlsCiphers() { - return $this->container['tls_sni_hostname']; + return $this->container['tls_ciphers']; } /** - * Sets tls_sni_hostname + * Sets tls_ciphers * - * @param string|null $tls_sni_hostname SNI hostname. Optional. + * @param string|null $tls_ciphers List of OpenSSL ciphers (see the [openssl.org manpages](https://www.openssl.org/docs/man1.1.1/man1/ciphers.html) for details). Optional. * * @return self */ - public function setTlsSniHostname($tls_sni_hostname) + public function setTlsCiphers($tls_ciphers) { - $this->container['tls_sni_hostname'] = $tls_sni_hostname; + $this->container['tls_ciphers'] = $tls_ciphers; return $this; } /** - * Gets tls_check_cert + * Gets tls_sni_hostname * - * @return int|null + * @return string|null */ - public function getTlsCheckCert() + public function getTlsSniHostname() { - return $this->container['tls_check_cert']; + return $this->container['tls_sni_hostname']; } /** - * Sets tls_check_cert + * Sets tls_sni_hostname * - * @param int|null $tls_check_cert Be strict on checking TLS certs. Optional. + * @param string|null $tls_sni_hostname SNI hostname. Optional. * * @return self */ - public function setTlsCheckCert($tls_check_cert) + public function setTlsSniHostname($tls_sni_hostname) { - $this->container['tls_check_cert'] = $tls_check_cert; + $this->container['tls_sni_hostname'] = $tls_sni_hostname; return $this; } @@ -946,121 +936,121 @@ public function setOverrideHost($override_host) } /** - * Gets created_at + * Gets between_bytes_timeout * - * @return \DateTime|null + * @return string|null */ - public function getCreatedAt() + public function getBetweenBytesTimeout() { - return $this->container['created_at']; + return $this->container['between_bytes_timeout']; } /** - * Sets created_at + * Sets between_bytes_timeout * - * @param \DateTime|null $created_at Date and time in ISO 8601 format. + * @param string|null $between_bytes_timeout Maximum duration in milliseconds that Fastly will wait while receiving no data on a download from a backend. If exceeded, the response received so far will be considered complete and the fetch will end. May be set at runtime using `bereq.between_bytes_timeout`. * * @return self */ - public function setCreatedAt($created_at) + public function setBetweenBytesTimeout($between_bytes_timeout) { - $this->container['created_at'] = $created_at; + $this->container['between_bytes_timeout'] = $between_bytes_timeout; return $this; } /** - * Gets deleted_at + * Gets connect_timeout * - * @return \DateTime|null + * @return string|null */ - public function getDeletedAt() + public function getConnectTimeout() { - return $this->container['deleted_at']; + return $this->container['connect_timeout']; } /** - * Sets deleted_at + * Sets connect_timeout * - * @param \DateTime|null $deleted_at Date and time in ISO 8601 format. + * @param string|null $connect_timeout How long to wait for a timeout in milliseconds. * * @return self */ - public function setDeletedAt($deleted_at) + public function setConnectTimeout($connect_timeout) { - $this->container['deleted_at'] = $deleted_at; + $this->container['connect_timeout'] = $connect_timeout; return $this; } /** - * Gets updated_at + * Gets first_byte_timeout * - * @return \DateTime|null + * @return string|null */ - public function getUpdatedAt() + public function getFirstByteTimeout() { - return $this->container['updated_at']; + return $this->container['first_byte_timeout']; } /** - * Sets updated_at + * Sets first_byte_timeout * - * @param \DateTime|null $updated_at Date and time in ISO 8601 format. + * @param string|null $first_byte_timeout How long to wait for the first byte in milliseconds. * * @return self */ - public function setUpdatedAt($updated_at) + public function setFirstByteTimeout($first_byte_timeout) { - $this->container['updated_at'] = $updated_at; + $this->container['first_byte_timeout'] = $first_byte_timeout; return $this; } /** - * Gets service_id + * Gets max_conn_default * * @return string|null */ - public function getServiceId() + public function getMaxConnDefault() { - return $this->container['service_id']; + return $this->container['max_conn_default']; } /** - * Sets service_id + * Sets max_conn_default * - * @param string|null $service_id service_id + * @param string|null $max_conn_default Maximum number of connections. * * @return self */ - public function setServiceId($service_id) + public function setMaxConnDefault($max_conn_default) { - $this->container['service_id'] = $service_id; + $this->container['max_conn_default'] = $max_conn_default; return $this; } /** - * Gets version + * Gets tls_check_cert * - * @return int|null + * @return string|null */ - public function getVersion() + public function getTlsCheckCert() { - return $this->container['version']; + return $this->container['tls_check_cert']; } /** - * Sets version + * Sets tls_check_cert * - * @param int|null $version version + * @param string|null $tls_check_cert Be strict on checking TLS certs. * * @return self */ - public function setVersion($version) + public function setTlsCheckCert($tls_check_cert) { - $this->container['version'] = $version; + $this->container['tls_check_cert'] = $tls_check_cert; return $this; } @@ -1088,6 +1078,30 @@ public function setId($id) return $this; } + + /** + * Gets quorum + * + * @return string|null + */ + public function getQuorum() + { + return $this->container['quorum']; + } + + /** + * Sets quorum + * + * @param string|null $quorum Percentage of capacity (`0-100`) that needs to be operationally available for a pool to be considered up. + * + * @return self + */ + public function setQuorum($quorum) + { + $this->container['quorum'] = $quorum; + + return $this; + } /** * Returns true if offset exists. False otherwise. * diff --git a/lib/Model/PoolResponseAllOf.php b/lib/Model/PoolResponseAllOf.php index b3997316..f1b6d06b 100644 --- a/lib/Model/PoolResponseAllOf.php +++ b/lib/Model/PoolResponseAllOf.php @@ -53,7 +53,7 @@ class PoolResponseAllOf implements ModelInterface, ArrayAccess, \JsonSerializabl * @var string[] */ protected static $fastlyTypes = [ - 'id' => 'string' + 'quorum' => 'string' ]; /** @@ -64,7 +64,7 @@ class PoolResponseAllOf implements ModelInterface, ArrayAccess, \JsonSerializabl * @psalm-var array */ protected static $fastlyFormats = [ - 'id' => null + 'quorum' => null ]; /** @@ -94,7 +94,7 @@ public static function fastlyFormats() * @var string[] */ protected static $attributeMap = [ - 'id' => 'id' + 'quorum' => 'quorum' ]; /** @@ -103,7 +103,7 @@ public static function fastlyFormats() * @var string[] */ protected static $setters = [ - 'id' => 'setId' + 'quorum' => 'setQuorum' ]; /** @@ -112,7 +112,7 @@ public static function fastlyFormats() * @var string[] */ protected static $getters = [ - 'id' => 'getId' + 'quorum' => 'getQuorum' ]; /** @@ -172,7 +172,7 @@ public function getModelName() */ public function __construct(array $data = null) { - $this->container['id'] = $data['id'] ?? null; + $this->container['quorum'] = $data['quorum'] ?? '75'; } /** @@ -200,25 +200,25 @@ public function valid() /** - * Gets id + * Gets quorum * * @return string|null */ - public function getId() + public function getQuorum() { - return $this->container['id']; + return $this->container['quorum']; } /** - * Sets id + * Sets quorum * - * @param string|null $id id + * @param string|null $quorum Percentage of capacity (`0-100`) that needs to be operationally available for a pool to be considered up. * * @return self */ - public function setId($id) + public function setQuorum($quorum) { - $this->container['id'] = $id; + $this->container['quorum'] = $quorum; return $this; } diff --git a/lib/Model/PoolResponseCommon.php b/lib/Model/PoolResponseCommon.php new file mode 100644 index 00000000..ec3cdc8a --- /dev/null +++ b/lib/Model/PoolResponseCommon.php @@ -0,0 +1,464 @@ + + * @template TKey int|null + * @template TValue mixed|null + */ +class PoolResponseCommon implements ModelInterface, ArrayAccess, \JsonSerializable +{ + public const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static $fastlyModelName = 'pool_response_common'; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $fastlyTypes = [ + 'between_bytes_timeout' => 'string', + 'connect_timeout' => 'string', + 'first_byte_timeout' => 'string', + 'max_conn_default' => 'string', + 'tls_check_cert' => 'string', + 'id' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ + protected static $fastlyFormats = [ + 'between_bytes_timeout' => null, + 'connect_timeout' => null, + 'first_byte_timeout' => null, + 'max_conn_default' => null, + 'tls_check_cert' => null, + 'id' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function fastlyTypes() + { + return self::$fastlyTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function fastlyFormats() + { + return self::$fastlyFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'between_bytes_timeout' => 'between_bytes_timeout', + 'connect_timeout' => 'connect_timeout', + 'first_byte_timeout' => 'first_byte_timeout', + 'max_conn_default' => 'max_conn_default', + 'tls_check_cert' => 'tls_check_cert', + 'id' => 'id' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'between_bytes_timeout' => 'setBetweenBytesTimeout', + 'connect_timeout' => 'setConnectTimeout', + 'first_byte_timeout' => 'setFirstByteTimeout', + 'max_conn_default' => 'setMaxConnDefault', + 'tls_check_cert' => 'setTlsCheckCert', + 'id' => 'setId' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'between_bytes_timeout' => 'getBetweenBytesTimeout', + 'connect_timeout' => 'getConnectTimeout', + 'first_byte_timeout' => 'getFirstByteTimeout', + 'max_conn_default' => 'getMaxConnDefault', + 'tls_check_cert' => 'getTlsCheckCert', + 'id' => 'getId' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$fastlyModelName; + } + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['between_bytes_timeout'] = $data['between_bytes_timeout'] ?? null; + $this->container['connect_timeout'] = $data['connect_timeout'] ?? null; + $this->container['first_byte_timeout'] = $data['first_byte_timeout'] ?? null; + $this->container['max_conn_default'] = $data['max_conn_default'] ?? '200'; + $this->container['tls_check_cert'] = $data['tls_check_cert'] ?? null; + $this->container['id'] = $data['id'] ?? null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + + /** + * Gets between_bytes_timeout + * + * @return string|null + */ + public function getBetweenBytesTimeout() + { + return $this->container['between_bytes_timeout']; + } + + /** + * Sets between_bytes_timeout + * + * @param string|null $between_bytes_timeout Maximum duration in milliseconds that Fastly will wait while receiving no data on a download from a backend. If exceeded, the response received so far will be considered complete and the fetch will end. May be set at runtime using `bereq.between_bytes_timeout`. + * + * @return self + */ + public function setBetweenBytesTimeout($between_bytes_timeout) + { + $this->container['between_bytes_timeout'] = $between_bytes_timeout; + + return $this; + } + + /** + * Gets connect_timeout + * + * @return string|null + */ + public function getConnectTimeout() + { + return $this->container['connect_timeout']; + } + + /** + * Sets connect_timeout + * + * @param string|null $connect_timeout How long to wait for a timeout in milliseconds. + * + * @return self + */ + public function setConnectTimeout($connect_timeout) + { + $this->container['connect_timeout'] = $connect_timeout; + + return $this; + } + + /** + * Gets first_byte_timeout + * + * @return string|null + */ + public function getFirstByteTimeout() + { + return $this->container['first_byte_timeout']; + } + + /** + * Sets first_byte_timeout + * + * @param string|null $first_byte_timeout How long to wait for the first byte in milliseconds. + * + * @return self + */ + public function setFirstByteTimeout($first_byte_timeout) + { + $this->container['first_byte_timeout'] = $first_byte_timeout; + + return $this; + } + + /** + * Gets max_conn_default + * + * @return string|null + */ + public function getMaxConnDefault() + { + return $this->container['max_conn_default']; + } + + /** + * Sets max_conn_default + * + * @param string|null $max_conn_default Maximum number of connections. + * + * @return self + */ + public function setMaxConnDefault($max_conn_default) + { + $this->container['max_conn_default'] = $max_conn_default; + + return $this; + } + + /** + * Gets tls_check_cert + * + * @return string|null + */ + public function getTlsCheckCert() + { + return $this->container['tls_check_cert']; + } + + /** + * Sets tls_check_cert + * + * @param string|null $tls_check_cert Be strict on checking TLS certs. + * + * @return self + */ + public function setTlsCheckCert($tls_check_cert) + { + $this->container['tls_check_cert'] = $tls_check_cert; + + return $this; + } + + /** + * Gets id + * + * @return string|null + */ + public function getId() + { + return $this->container['id']; + } + + /** + * Sets id + * + * @param string|null $id id + * + * @return self + */ + public function setId($id) + { + $this->container['id'] = $id; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset): bool + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed|null + */ + public function offsetGet($offset): mixed + { + return $this->container[$offset] ?? null; + } + + /** + * Sets value based on offset. + * + * @param int|null $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value): void + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset): void + { + unset($this->container[$offset]); + } + + /** + * Serializes the object to a value that can be serialized natively by json_encode(). + * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php + * + * @return mixed Returns data which can be serialized by json_encode(), which is a value + * of any type other than a resource. + */ + public function jsonSerialize(): mixed + { + return ObjectSerializer::sanitizeForSerialization($this); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + /** + * Gets a header-safe presentation of the object + * + * @return string + */ + public function toHeaderValue() + { + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/lib/Model/Pool.php b/lib/Model/PoolResponsePost.php similarity index 78% rename from lib/Model/Pool.php rename to lib/Model/PoolResponsePost.php index 258bceda..70f274ac 100644 --- a/lib/Model/Pool.php +++ b/lib/Model/PoolResponsePost.php @@ -1,6 +1,6 @@ 'string', 'tls_client_key' => 'string', 'tls_cert_hostname' => 'string', - 'use_tls' => 'int', + 'use_tls' => 'string', + 'created_at' => '\DateTime', + 'deleted_at' => '\DateTime', + 'updated_at' => '\DateTime', + 'service_id' => 'string', + 'version' => 'string', 'name' => 'string', 'shield' => 'string', 'request_condition' => 'string', - 'max_conn_default' => 'int', - 'connect_timeout' => 'int', - 'first_byte_timeout' => 'int', - 'quorum' => 'int', 'tls_ciphers' => 'string', 'tls_sni_hostname' => 'string', - 'tls_check_cert' => 'int', 'min_tls_version' => 'int', 'max_tls_version' => 'int', 'healthcheck' => 'string', 'comment' => 'string', 'type' => 'string', - 'override_host' => 'string' + 'override_host' => 'string', + 'between_bytes_timeout' => 'string', + 'connect_timeout' => 'string', + 'first_byte_timeout' => 'string', + 'max_conn_default' => 'string', + 'tls_check_cert' => 'string', + 'id' => 'string', + 'quorum' => 'int' ]; /** @@ -89,22 +96,29 @@ class Pool implements ModelInterface, ArrayAccess, \JsonSerializable 'tls_client_key' => null, 'tls_cert_hostname' => null, 'use_tls' => null, + 'created_at' => 'date-time', + 'deleted_at' => 'date-time', + 'updated_at' => 'date-time', + 'service_id' => null, + 'version' => null, 'name' => null, 'shield' => null, 'request_condition' => null, - 'max_conn_default' => null, - 'connect_timeout' => null, - 'first_byte_timeout' => null, - 'quorum' => null, 'tls_ciphers' => null, 'tls_sni_hostname' => null, - 'tls_check_cert' => null, 'min_tls_version' => null, 'max_tls_version' => null, 'healthcheck' => null, 'comment' => null, 'type' => null, - 'override_host' => null + 'override_host' => null, + 'between_bytes_timeout' => null, + 'connect_timeout' => null, + 'first_byte_timeout' => null, + 'max_conn_default' => null, + 'tls_check_cert' => null, + 'id' => null, + 'quorum' => null ]; /** @@ -139,22 +153,29 @@ public static function fastlyFormats() 'tls_client_key' => 'tls_client_key', 'tls_cert_hostname' => 'tls_cert_hostname', 'use_tls' => 'use_tls', + 'created_at' => 'created_at', + 'deleted_at' => 'deleted_at', + 'updated_at' => 'updated_at', + 'service_id' => 'service_id', + 'version' => 'version', 'name' => 'name', 'shield' => 'shield', 'request_condition' => 'request_condition', - 'max_conn_default' => 'max_conn_default', - 'connect_timeout' => 'connect_timeout', - 'first_byte_timeout' => 'first_byte_timeout', - 'quorum' => 'quorum', 'tls_ciphers' => 'tls_ciphers', 'tls_sni_hostname' => 'tls_sni_hostname', - 'tls_check_cert' => 'tls_check_cert', 'min_tls_version' => 'min_tls_version', 'max_tls_version' => 'max_tls_version', 'healthcheck' => 'healthcheck', 'comment' => 'comment', 'type' => 'type', - 'override_host' => 'override_host' + 'override_host' => 'override_host', + 'between_bytes_timeout' => 'between_bytes_timeout', + 'connect_timeout' => 'connect_timeout', + 'first_byte_timeout' => 'first_byte_timeout', + 'max_conn_default' => 'max_conn_default', + 'tls_check_cert' => 'tls_check_cert', + 'id' => 'id', + 'quorum' => 'quorum' ]; /** @@ -168,22 +189,29 @@ public static function fastlyFormats() 'tls_client_key' => 'setTlsClientKey', 'tls_cert_hostname' => 'setTlsCertHostname', 'use_tls' => 'setUseTls', + 'created_at' => 'setCreatedAt', + 'deleted_at' => 'setDeletedAt', + 'updated_at' => 'setUpdatedAt', + 'service_id' => 'setServiceId', + 'version' => 'setVersion', 'name' => 'setName', 'shield' => 'setShield', 'request_condition' => 'setRequestCondition', - 'max_conn_default' => 'setMaxConnDefault', - 'connect_timeout' => 'setConnectTimeout', - 'first_byte_timeout' => 'setFirstByteTimeout', - 'quorum' => 'setQuorum', 'tls_ciphers' => 'setTlsCiphers', 'tls_sni_hostname' => 'setTlsSniHostname', - 'tls_check_cert' => 'setTlsCheckCert', 'min_tls_version' => 'setMinTlsVersion', 'max_tls_version' => 'setMaxTlsVersion', 'healthcheck' => 'setHealthcheck', 'comment' => 'setComment', 'type' => 'setType', - 'override_host' => 'setOverrideHost' + 'override_host' => 'setOverrideHost', + 'between_bytes_timeout' => 'setBetweenBytesTimeout', + 'connect_timeout' => 'setConnectTimeout', + 'first_byte_timeout' => 'setFirstByteTimeout', + 'max_conn_default' => 'setMaxConnDefault', + 'tls_check_cert' => 'setTlsCheckCert', + 'id' => 'setId', + 'quorum' => 'setQuorum' ]; /** @@ -197,22 +225,29 @@ public static function fastlyFormats() 'tls_client_key' => 'getTlsClientKey', 'tls_cert_hostname' => 'getTlsCertHostname', 'use_tls' => 'getUseTls', + 'created_at' => 'getCreatedAt', + 'deleted_at' => 'getDeletedAt', + 'updated_at' => 'getUpdatedAt', + 'service_id' => 'getServiceId', + 'version' => 'getVersion', 'name' => 'getName', 'shield' => 'getShield', 'request_condition' => 'getRequestCondition', - 'max_conn_default' => 'getMaxConnDefault', - 'connect_timeout' => 'getConnectTimeout', - 'first_byte_timeout' => 'getFirstByteTimeout', - 'quorum' => 'getQuorum', 'tls_ciphers' => 'getTlsCiphers', 'tls_sni_hostname' => 'getTlsSniHostname', - 'tls_check_cert' => 'getTlsCheckCert', 'min_tls_version' => 'getMinTlsVersion', 'max_tls_version' => 'getMaxTlsVersion', 'healthcheck' => 'getHealthcheck', 'comment' => 'getComment', 'type' => 'getType', - 'override_host' => 'getOverrideHost' + 'override_host' => 'getOverrideHost', + 'between_bytes_timeout' => 'getBetweenBytesTimeout', + 'connect_timeout' => 'getConnectTimeout', + 'first_byte_timeout' => 'getFirstByteTimeout', + 'max_conn_default' => 'getMaxConnDefault', + 'tls_check_cert' => 'getTlsCheckCert', + 'id' => 'getId', + 'quorum' => 'getQuorum' ]; /** @@ -256,8 +291,8 @@ public function getModelName() return self::$fastlyModelName; } - const USE_TLS_no_tls = 0; - const USE_TLS_use_tls = 1; + const USE_TLS_no_tls = '0'; + const USE_TLS_use_tls = '1'; const TYPE_RANDOM = 'random'; const TYPE_HASH = 'hash'; const TYPE_CLIENT = 'client'; @@ -308,23 +343,30 @@ public function __construct(array $data = null) $this->container['tls_client_cert'] = $data['tls_client_cert'] ?? 'null'; $this->container['tls_client_key'] = $data['tls_client_key'] ?? 'null'; $this->container['tls_cert_hostname'] = $data['tls_cert_hostname'] ?? 'null'; - $this->container['use_tls'] = $data['use_tls'] ?? self::USE_TLS_no_tls; + $this->container['use_tls'] = $data['use_tls'] ?? '0'; + $this->container['created_at'] = $data['created_at'] ?? null; + $this->container['deleted_at'] = $data['deleted_at'] ?? null; + $this->container['updated_at'] = $data['updated_at'] ?? null; + $this->container['service_id'] = $data['service_id'] ?? null; + $this->container['version'] = $data['version'] ?? null; $this->container['name'] = $data['name'] ?? null; $this->container['shield'] = $data['shield'] ?? 'null'; $this->container['request_condition'] = $data['request_condition'] ?? null; - $this->container['max_conn_default'] = $data['max_conn_default'] ?? 200; - $this->container['connect_timeout'] = $data['connect_timeout'] ?? null; - $this->container['first_byte_timeout'] = $data['first_byte_timeout'] ?? null; - $this->container['quorum'] = $data['quorum'] ?? 75; $this->container['tls_ciphers'] = $data['tls_ciphers'] ?? null; $this->container['tls_sni_hostname'] = $data['tls_sni_hostname'] ?? null; - $this->container['tls_check_cert'] = $data['tls_check_cert'] ?? null; $this->container['min_tls_version'] = $data['min_tls_version'] ?? null; $this->container['max_tls_version'] = $data['max_tls_version'] ?? null; $this->container['healthcheck'] = $data['healthcheck'] ?? null; $this->container['comment'] = $data['comment'] ?? null; $this->container['type'] = $data['type'] ?? null; $this->container['override_host'] = $data['override_host'] ?? 'null'; + $this->container['between_bytes_timeout'] = $data['between_bytes_timeout'] ?? null; + $this->container['connect_timeout'] = $data['connect_timeout'] ?? null; + $this->container['first_byte_timeout'] = $data['first_byte_timeout'] ?? null; + $this->container['max_conn_default'] = $data['max_conn_default'] ?? '200'; + $this->container['tls_check_cert'] = $data['tls_check_cert'] ?? null; + $this->container['id'] = $data['id'] ?? null; + $this->container['quorum'] = $data['quorum'] ?? 75; } /** @@ -345,14 +387,6 @@ public function listInvalidProperties() ); } - if (!is_null($this->container['quorum']) && ($this->container['quorum'] > 100)) { - $invalidProperties[] = "invalid value for 'quorum', must be smaller than or equal to 100."; - } - - if (!is_null($this->container['quorum']) && ($this->container['quorum'] < 0)) { - $invalidProperties[] = "invalid value for 'quorum', must be bigger than or equal to 0."; - } - $allowedValues = $this->getTypeAllowableValues(); if (!is_null($this->container['type']) && !in_array($this->container['type'], $allowedValues, true)) { $invalidProperties[] = sprintf( @@ -476,7 +510,7 @@ public function setTlsCertHostname($tls_cert_hostname) /** * Gets use_tls * - * @return int|null + * @return string|null */ public function getUseTls() { @@ -486,7 +520,7 @@ public function getUseTls() /** * Sets use_tls * - * @param int|null $use_tls Whether to use TLS. + * @param string|null $use_tls Whether to use TLS. * * @return self */ @@ -508,249 +542,241 @@ public function setUseTls($use_tls) } /** - * Gets name + * Gets created_at * - * @return string|null + * @return \DateTime|null */ - public function getName() + public function getCreatedAt() { - return $this->container['name']; + return $this->container['created_at']; } /** - * Sets name + * Sets created_at * - * @param string|null $name Name for the Pool. + * @param \DateTime|null $created_at Date and time in ISO 8601 format. * * @return self */ - public function setName($name) + public function setCreatedAt($created_at) { - $this->container['name'] = $name; + $this->container['created_at'] = $created_at; return $this; } /** - * Gets shield + * Gets deleted_at * - * @return string|null + * @return \DateTime|null */ - public function getShield() + public function getDeletedAt() { - return $this->container['shield']; + return $this->container['deleted_at']; } /** - * Sets shield + * Sets deleted_at * - * @param string|null $shield Selected POP to serve as a shield for the servers. Defaults to `null` meaning no origin shielding if not set. Refer to the [POPs API endpoint](/reference/api/utils/pops/) to get a list of available POPs used for shielding. + * @param \DateTime|null $deleted_at Date and time in ISO 8601 format. * * @return self */ - public function setShield($shield) + public function setDeletedAt($deleted_at) { - $this->container['shield'] = $shield; + $this->container['deleted_at'] = $deleted_at; return $this; } /** - * Gets request_condition + * Gets updated_at * - * @return string|null + * @return \DateTime|null */ - public function getRequestCondition() + public function getUpdatedAt() { - return $this->container['request_condition']; + return $this->container['updated_at']; } /** - * Sets request_condition + * Sets updated_at * - * @param string|null $request_condition Condition which, if met, will select this configuration during a request. Optional. + * @param \DateTime|null $updated_at Date and time in ISO 8601 format. * * @return self */ - public function setRequestCondition($request_condition) + public function setUpdatedAt($updated_at) { - $this->container['request_condition'] = $request_condition; + $this->container['updated_at'] = $updated_at; return $this; } /** - * Gets max_conn_default + * Gets service_id * - * @return int|null + * @return string|null */ - public function getMaxConnDefault() + public function getServiceId() { - return $this->container['max_conn_default']; + return $this->container['service_id']; } /** - * Sets max_conn_default + * Sets service_id * - * @param int|null $max_conn_default Maximum number of connections. Optional. + * @param string|null $service_id service_id * * @return self */ - public function setMaxConnDefault($max_conn_default) + public function setServiceId($service_id) { - $this->container['max_conn_default'] = $max_conn_default; + $this->container['service_id'] = $service_id; return $this; } /** - * Gets connect_timeout + * Gets version * - * @return int|null + * @return string|null */ - public function getConnectTimeout() + public function getVersion() { - return $this->container['connect_timeout']; + return $this->container['version']; } /** - * Sets connect_timeout + * Sets version * - * @param int|null $connect_timeout How long to wait for a timeout in milliseconds. Optional. + * @param string|null $version version * * @return self */ - public function setConnectTimeout($connect_timeout) + public function setVersion($version) { - $this->container['connect_timeout'] = $connect_timeout; + $this->container['version'] = $version; return $this; } /** - * Gets first_byte_timeout + * Gets name * - * @return int|null + * @return string|null */ - public function getFirstByteTimeout() + public function getName() { - return $this->container['first_byte_timeout']; + return $this->container['name']; } /** - * Sets first_byte_timeout + * Sets name * - * @param int|null $first_byte_timeout How long to wait for the first byte in milliseconds. Optional. + * @param string|null $name Name for the Pool. * * @return self */ - public function setFirstByteTimeout($first_byte_timeout) + public function setName($name) { - $this->container['first_byte_timeout'] = $first_byte_timeout; + $this->container['name'] = $name; return $this; } /** - * Gets quorum + * Gets shield * - * @return int|null + * @return string|null */ - public function getQuorum() + public function getShield() { - return $this->container['quorum']; + return $this->container['shield']; } /** - * Sets quorum + * Sets shield * - * @param int|null $quorum Percentage of capacity (`0-100`) that needs to be operationally available for a pool to be considered up. + * @param string|null $shield Selected POP to serve as a shield for the servers. Defaults to `null` meaning no origin shielding if not set. Refer to the [POPs API endpoint](/reference/api/utils/pops/) to get a list of available POPs used for shielding. * * @return self */ - public function setQuorum($quorum) + public function setShield($shield) { - - if (!is_null($quorum) && ($quorum > 100)) { - throw new \InvalidArgumentException('invalid value for $quorum when calling Pool., must be smaller than or equal to 100.'); - } - if (!is_null($quorum) && ($quorum < 0)) { - throw new \InvalidArgumentException('invalid value for $quorum when calling Pool., must be bigger than or equal to 0.'); - } - - $this->container['quorum'] = $quorum; + $this->container['shield'] = $shield; return $this; } /** - * Gets tls_ciphers + * Gets request_condition * * @return string|null */ - public function getTlsCiphers() + public function getRequestCondition() { - return $this->container['tls_ciphers']; + return $this->container['request_condition']; } /** - * Sets tls_ciphers + * Sets request_condition * - * @param string|null $tls_ciphers List of OpenSSL ciphers (see the [openssl.org manpages](https://www.openssl.org/docs/man1.1.1/man1/ciphers.html) for details). Optional. + * @param string|null $request_condition Condition which, if met, will select this configuration during a request. Optional. * * @return self */ - public function setTlsCiphers($tls_ciphers) + public function setRequestCondition($request_condition) { - $this->container['tls_ciphers'] = $tls_ciphers; + $this->container['request_condition'] = $request_condition; return $this; } /** - * Gets tls_sni_hostname + * Gets tls_ciphers * * @return string|null */ - public function getTlsSniHostname() + public function getTlsCiphers() { - return $this->container['tls_sni_hostname']; + return $this->container['tls_ciphers']; } /** - * Sets tls_sni_hostname + * Sets tls_ciphers * - * @param string|null $tls_sni_hostname SNI hostname. Optional. + * @param string|null $tls_ciphers List of OpenSSL ciphers (see the [openssl.org manpages](https://www.openssl.org/docs/man1.1.1/man1/ciphers.html) for details). Optional. * * @return self */ - public function setTlsSniHostname($tls_sni_hostname) + public function setTlsCiphers($tls_ciphers) { - $this->container['tls_sni_hostname'] = $tls_sni_hostname; + $this->container['tls_ciphers'] = $tls_ciphers; return $this; } /** - * Gets tls_check_cert + * Gets tls_sni_hostname * - * @return int|null + * @return string|null */ - public function getTlsCheckCert() + public function getTlsSniHostname() { - return $this->container['tls_check_cert']; + return $this->container['tls_sni_hostname']; } /** - * Sets tls_check_cert + * Sets tls_sni_hostname * - * @param int|null $tls_check_cert Be strict on checking TLS certs. Optional. + * @param string|null $tls_sni_hostname SNI hostname. Optional. * * @return self */ - public function setTlsCheckCert($tls_check_cert) + public function setTlsSniHostname($tls_sni_hostname) { - $this->container['tls_check_cert'] = $tls_check_cert; + $this->container['tls_sni_hostname'] = $tls_sni_hostname; return $this; } @@ -908,6 +934,174 @@ public function setOverrideHost($override_host) return $this; } + + /** + * Gets between_bytes_timeout + * + * @return string|null + */ + public function getBetweenBytesTimeout() + { + return $this->container['between_bytes_timeout']; + } + + /** + * Sets between_bytes_timeout + * + * @param string|null $between_bytes_timeout Maximum duration in milliseconds that Fastly will wait while receiving no data on a download from a backend. If exceeded, the response received so far will be considered complete and the fetch will end. May be set at runtime using `bereq.between_bytes_timeout`. + * + * @return self + */ + public function setBetweenBytesTimeout($between_bytes_timeout) + { + $this->container['between_bytes_timeout'] = $between_bytes_timeout; + + return $this; + } + + /** + * Gets connect_timeout + * + * @return string|null + */ + public function getConnectTimeout() + { + return $this->container['connect_timeout']; + } + + /** + * Sets connect_timeout + * + * @param string|null $connect_timeout How long to wait for a timeout in milliseconds. + * + * @return self + */ + public function setConnectTimeout($connect_timeout) + { + $this->container['connect_timeout'] = $connect_timeout; + + return $this; + } + + /** + * Gets first_byte_timeout + * + * @return string|null + */ + public function getFirstByteTimeout() + { + return $this->container['first_byte_timeout']; + } + + /** + * Sets first_byte_timeout + * + * @param string|null $first_byte_timeout How long to wait for the first byte in milliseconds. + * + * @return self + */ + public function setFirstByteTimeout($first_byte_timeout) + { + $this->container['first_byte_timeout'] = $first_byte_timeout; + + return $this; + } + + /** + * Gets max_conn_default + * + * @return string|null + */ + public function getMaxConnDefault() + { + return $this->container['max_conn_default']; + } + + /** + * Sets max_conn_default + * + * @param string|null $max_conn_default Maximum number of connections. + * + * @return self + */ + public function setMaxConnDefault($max_conn_default) + { + $this->container['max_conn_default'] = $max_conn_default; + + return $this; + } + + /** + * Gets tls_check_cert + * + * @return string|null + */ + public function getTlsCheckCert() + { + return $this->container['tls_check_cert']; + } + + /** + * Sets tls_check_cert + * + * @param string|null $tls_check_cert Be strict on checking TLS certs. + * + * @return self + */ + public function setTlsCheckCert($tls_check_cert) + { + $this->container['tls_check_cert'] = $tls_check_cert; + + return $this; + } + + /** + * Gets id + * + * @return string|null + */ + public function getId() + { + return $this->container['id']; + } + + /** + * Sets id + * + * @param string|null $id id + * + * @return self + */ + public function setId($id) + { + $this->container['id'] = $id; + + return $this; + } + + /** + * Gets quorum + * + * @return int|null + */ + public function getQuorum() + { + return $this->container['quorum']; + } + + /** + * Sets quorum + * + * @param int|null $quorum Percentage of capacity (`0-100`) that needs to be operationally available for a pool to be considered up. + * + * @return self + */ + public function setQuorum($quorum) + { + $this->container['quorum'] = $quorum; + + return $this; + } /** * Returns true if offset exists. False otherwise. * diff --git a/lib/Model/PoolResponsePostAllOf.php b/lib/Model/PoolResponsePostAllOf.php new file mode 100644 index 00000000..86e4696f --- /dev/null +++ b/lib/Model/PoolResponsePostAllOf.php @@ -0,0 +1,314 @@ + + * @template TKey int|null + * @template TValue mixed|null + */ +class PoolResponsePostAllOf implements ModelInterface, ArrayAccess, \JsonSerializable +{ + public const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static $fastlyModelName = 'pool_response_post_allOf'; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $fastlyTypes = [ + 'quorum' => 'int' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ + protected static $fastlyFormats = [ + 'quorum' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function fastlyTypes() + { + return self::$fastlyTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function fastlyFormats() + { + return self::$fastlyFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'quorum' => 'quorum' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'quorum' => 'setQuorum' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'quorum' => 'getQuorum' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$fastlyModelName; + } + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['quorum'] = $data['quorum'] ?? 75; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + + /** + * Gets quorum + * + * @return int|null + */ + public function getQuorum() + { + return $this->container['quorum']; + } + + /** + * Sets quorum + * + * @param int|null $quorum Percentage of capacity (`0-100`) that needs to be operationally available for a pool to be considered up. + * + * @return self + */ + public function setQuorum($quorum) + { + $this->container['quorum'] = $quorum; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset): bool + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed|null + */ + public function offsetGet($offset): mixed + { + return $this->container[$offset] ?? null; + } + + /** + * Sets value based on offset. + * + * @param int|null $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value): void + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset): void + { + unset($this->container[$offset]); + } + + /** + * Serializes the object to a value that can be serialized natively by json_encode(). + * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php + * + * @return mixed Returns data which can be serialized by json_encode(), which is a value + * of any type other than a resource. + */ + public function jsonSerialize(): mixed + { + return ObjectSerializer::sanitizeForSerialization($this); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + /** + * Gets a header-safe presentation of the object + * + * @return string + */ + public function toHeaderValue() + { + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/lib/Model/RequestSettings.php b/lib/Model/RequestSettingsAdditional.php similarity index 71% rename from lib/Model/RequestSettings.php rename to lib/Model/RequestSettingsAdditional.php index 5bc79dee..b9ffd7d3 100644 --- a/lib/Model/RequestSettings.php +++ b/lib/Model/RequestSettingsAdditional.php @@ -1,6 +1,6 @@ 'string', - 'bypass_busy_wait' => 'int', 'default_host' => 'string', - 'force_miss' => 'int', - 'force_ssl' => 'int', - 'geo_headers' => 'int', 'hash_keys' => 'string', - 'max_stale_age' => 'int', 'name' => 'string', 'request_condition' => 'string', - 'timer_support' => 'int', 'xff' => 'string' ]; @@ -76,16 +70,10 @@ class RequestSettings implements ModelInterface, ArrayAccess, \JsonSerializable */ protected static $fastlyFormats = [ 'action' => null, - 'bypass_busy_wait' => null, 'default_host' => null, - 'force_miss' => null, - 'force_ssl' => null, - 'geo_headers' => null, 'hash_keys' => null, - 'max_stale_age' => null, 'name' => null, 'request_condition' => null, - 'timer_support' => null, 'xff' => null ]; @@ -117,16 +105,10 @@ public static function fastlyFormats() */ protected static $attributeMap = [ 'action' => 'action', - 'bypass_busy_wait' => 'bypass_busy_wait', 'default_host' => 'default_host', - 'force_miss' => 'force_miss', - 'force_ssl' => 'force_ssl', - 'geo_headers' => 'geo_headers', 'hash_keys' => 'hash_keys', - 'max_stale_age' => 'max_stale_age', 'name' => 'name', 'request_condition' => 'request_condition', - 'timer_support' => 'timer_support', 'xff' => 'xff' ]; @@ -137,16 +119,10 @@ public static function fastlyFormats() */ protected static $setters = [ 'action' => 'setAction', - 'bypass_busy_wait' => 'setBypassBusyWait', 'default_host' => 'setDefaultHost', - 'force_miss' => 'setForceMiss', - 'force_ssl' => 'setForceSsl', - 'geo_headers' => 'setGeoHeaders', 'hash_keys' => 'setHashKeys', - 'max_stale_age' => 'setMaxStaleAge', 'name' => 'setName', 'request_condition' => 'setRequestCondition', - 'timer_support' => 'setTimerSupport', 'xff' => 'setXff' ]; @@ -157,16 +133,10 @@ public static function fastlyFormats() */ protected static $getters = [ 'action' => 'getAction', - 'bypass_busy_wait' => 'getBypassBusyWait', 'default_host' => 'getDefaultHost', - 'force_miss' => 'getForceMiss', - 'force_ssl' => 'getForceSsl', - 'geo_headers' => 'getGeoHeaders', 'hash_keys' => 'getHashKeys', - 'max_stale_age' => 'getMaxStaleAge', 'name' => 'getName', 'request_condition' => 'getRequestCondition', - 'timer_support' => 'getTimerSupport', 'xff' => 'getXff' ]; @@ -264,16 +234,10 @@ public function getXffAllowableValues() public function __construct(array $data = null) { $this->container['action'] = $data['action'] ?? null; - $this->container['bypass_busy_wait'] = $data['bypass_busy_wait'] ?? null; $this->container['default_host'] = $data['default_host'] ?? null; - $this->container['force_miss'] = $data['force_miss'] ?? null; - $this->container['force_ssl'] = $data['force_ssl'] ?? null; - $this->container['geo_headers'] = $data['geo_headers'] ?? null; $this->container['hash_keys'] = $data['hash_keys'] ?? null; - $this->container['max_stale_age'] = $data['max_stale_age'] ?? null; $this->container['name'] = $data['name'] ?? null; $this->container['request_condition'] = $data['request_condition'] ?? null; - $this->container['timer_support'] = $data['timer_support'] ?? null; $this->container['xff'] = $data['xff'] ?? null; } @@ -353,30 +317,6 @@ public function setAction($action) return $this; } - /** - * Gets bypass_busy_wait - * - * @return int|null - */ - public function getBypassBusyWait() - { - return $this->container['bypass_busy_wait']; - } - - /** - * Sets bypass_busy_wait - * - * @param int|null $bypass_busy_wait Disable collapsed forwarding, so you don't wait for other objects to origin. - * - * @return self - */ - public function setBypassBusyWait($bypass_busy_wait) - { - $this->container['bypass_busy_wait'] = $bypass_busy_wait; - - return $this; - } - /** * Gets default_host * @@ -401,78 +341,6 @@ public function setDefaultHost($default_host) return $this; } - /** - * Gets force_miss - * - * @return int|null - */ - public function getForceMiss() - { - return $this->container['force_miss']; - } - - /** - * Sets force_miss - * - * @param int|null $force_miss Allows you to force a cache miss for the request. Replaces the item in the cache if the content is cacheable. - * - * @return self - */ - public function setForceMiss($force_miss) - { - $this->container['force_miss'] = $force_miss; - - return $this; - } - - /** - * Gets force_ssl - * - * @return int|null - */ - public function getForceSsl() - { - return $this->container['force_ssl']; - } - - /** - * Sets force_ssl - * - * @param int|null $force_ssl Forces the request use SSL (redirects a non-SSL to SSL). - * - * @return self - */ - public function setForceSsl($force_ssl) - { - $this->container['force_ssl'] = $force_ssl; - - return $this; - } - - /** - * Gets geo_headers - * - * @return int|null - */ - public function getGeoHeaders() - { - return $this->container['geo_headers']; - } - - /** - * Sets geo_headers - * - * @param int|null $geo_headers Injects Fastly-Geo-Country, Fastly-Geo-City, and Fastly-Geo-Region into the request headers. - * - * @return self - */ - public function setGeoHeaders($geo_headers) - { - $this->container['geo_headers'] = $geo_headers; - - return $this; - } - /** * Gets hash_keys * @@ -497,30 +365,6 @@ public function setHashKeys($hash_keys) return $this; } - /** - * Gets max_stale_age - * - * @return int|null - */ - public function getMaxStaleAge() - { - return $this->container['max_stale_age']; - } - - /** - * Sets max_stale_age - * - * @param int|null $max_stale_age How old an object is allowed to be to serve stale-if-error or stale-while-revalidate. - * - * @return self - */ - public function setMaxStaleAge($max_stale_age) - { - $this->container['max_stale_age'] = $max_stale_age; - - return $this; - } - /** * Gets name * @@ -569,30 +413,6 @@ public function setRequestCondition($request_condition) return $this; } - /** - * Gets timer_support - * - * @return int|null - */ - public function getTimerSupport() - { - return $this->container['timer_support']; - } - - /** - * Sets timer_support - * - * @param int|null $timer_support Injects the X-Timer info into the request for viewing origin fetch durations. - * - * @return self - */ - public function setTimerSupport($timer_support) - { - $this->container['timer_support'] = $timer_support; - - return $this; - } - /** * Gets xff * diff --git a/lib/Model/RequestSettingsResponse.php b/lib/Model/RequestSettingsResponse.php index c9318901..36077154 100644 --- a/lib/Model/RequestSettingsResponse.php +++ b/lib/Model/RequestSettingsResponse.php @@ -53,23 +53,23 @@ class RequestSettingsResponse implements ModelInterface, ArrayAccess, \JsonSeria * @var string[] */ protected static $fastlyTypes = [ + 'created_at' => '\DateTime', + 'deleted_at' => '\DateTime', + 'updated_at' => '\DateTime', + 'service_id' => 'string', + 'version' => 'string', 'action' => 'string', - 'bypass_busy_wait' => 'int', 'default_host' => 'string', - 'force_miss' => 'int', - 'force_ssl' => 'int', - 'geo_headers' => 'int', 'hash_keys' => 'string', - 'max_stale_age' => 'int', 'name' => 'string', 'request_condition' => 'string', - 'timer_support' => 'int', 'xff' => 'string', - 'service_id' => 'string', - 'version' => 'int', - 'created_at' => '\DateTime', - 'deleted_at' => '\DateTime', - 'updated_at' => '\DateTime' + 'bypass_busy_wait' => 'string', + 'force_miss' => 'string', + 'force_ssl' => 'string', + 'geo_headers' => 'string', + 'max_stale_age' => 'string', + 'timer_support' => 'string' ]; /** @@ -80,23 +80,23 @@ class RequestSettingsResponse implements ModelInterface, ArrayAccess, \JsonSeria * @psalm-var array */ protected static $fastlyFormats = [ + 'created_at' => 'date-time', + 'deleted_at' => 'date-time', + 'updated_at' => 'date-time', + 'service_id' => null, + 'version' => null, 'action' => null, - 'bypass_busy_wait' => null, 'default_host' => null, - 'force_miss' => null, - 'force_ssl' => null, - 'geo_headers' => null, 'hash_keys' => null, - 'max_stale_age' => null, 'name' => null, 'request_condition' => null, - 'timer_support' => null, 'xff' => null, - 'service_id' => null, - 'version' => null, - 'created_at' => 'date-time', - 'deleted_at' => 'date-time', - 'updated_at' => 'date-time' + 'bypass_busy_wait' => null, + 'force_miss' => null, + 'force_ssl' => null, + 'geo_headers' => null, + 'max_stale_age' => null, + 'timer_support' => null ]; /** @@ -126,23 +126,23 @@ public static function fastlyFormats() * @var string[] */ protected static $attributeMap = [ + 'created_at' => 'created_at', + 'deleted_at' => 'deleted_at', + 'updated_at' => 'updated_at', + 'service_id' => 'service_id', + 'version' => 'version', 'action' => 'action', - 'bypass_busy_wait' => 'bypass_busy_wait', 'default_host' => 'default_host', - 'force_miss' => 'force_miss', - 'force_ssl' => 'force_ssl', - 'geo_headers' => 'geo_headers', 'hash_keys' => 'hash_keys', - 'max_stale_age' => 'max_stale_age', 'name' => 'name', 'request_condition' => 'request_condition', - 'timer_support' => 'timer_support', 'xff' => 'xff', - 'service_id' => 'service_id', - 'version' => 'version', - 'created_at' => 'created_at', - 'deleted_at' => 'deleted_at', - 'updated_at' => 'updated_at' + 'bypass_busy_wait' => 'bypass_busy_wait', + 'force_miss' => 'force_miss', + 'force_ssl' => 'force_ssl', + 'geo_headers' => 'geo_headers', + 'max_stale_age' => 'max_stale_age', + 'timer_support' => 'timer_support' ]; /** @@ -151,23 +151,23 @@ public static function fastlyFormats() * @var string[] */ protected static $setters = [ + 'created_at' => 'setCreatedAt', + 'deleted_at' => 'setDeletedAt', + 'updated_at' => 'setUpdatedAt', + 'service_id' => 'setServiceId', + 'version' => 'setVersion', 'action' => 'setAction', - 'bypass_busy_wait' => 'setBypassBusyWait', 'default_host' => 'setDefaultHost', - 'force_miss' => 'setForceMiss', - 'force_ssl' => 'setForceSsl', - 'geo_headers' => 'setGeoHeaders', 'hash_keys' => 'setHashKeys', - 'max_stale_age' => 'setMaxStaleAge', 'name' => 'setName', 'request_condition' => 'setRequestCondition', - 'timer_support' => 'setTimerSupport', 'xff' => 'setXff', - 'service_id' => 'setServiceId', - 'version' => 'setVersion', - 'created_at' => 'setCreatedAt', - 'deleted_at' => 'setDeletedAt', - 'updated_at' => 'setUpdatedAt' + 'bypass_busy_wait' => 'setBypassBusyWait', + 'force_miss' => 'setForceMiss', + 'force_ssl' => 'setForceSsl', + 'geo_headers' => 'setGeoHeaders', + 'max_stale_age' => 'setMaxStaleAge', + 'timer_support' => 'setTimerSupport' ]; /** @@ -176,23 +176,23 @@ public static function fastlyFormats() * @var string[] */ protected static $getters = [ + 'created_at' => 'getCreatedAt', + 'deleted_at' => 'getDeletedAt', + 'updated_at' => 'getUpdatedAt', + 'service_id' => 'getServiceId', + 'version' => 'getVersion', 'action' => 'getAction', - 'bypass_busy_wait' => 'getBypassBusyWait', 'default_host' => 'getDefaultHost', - 'force_miss' => 'getForceMiss', - 'force_ssl' => 'getForceSsl', - 'geo_headers' => 'getGeoHeaders', 'hash_keys' => 'getHashKeys', - 'max_stale_age' => 'getMaxStaleAge', 'name' => 'getName', 'request_condition' => 'getRequestCondition', - 'timer_support' => 'getTimerSupport', 'xff' => 'getXff', - 'service_id' => 'getServiceId', - 'version' => 'getVersion', - 'created_at' => 'getCreatedAt', - 'deleted_at' => 'getDeletedAt', - 'updated_at' => 'getUpdatedAt' + 'bypass_busy_wait' => 'getBypassBusyWait', + 'force_miss' => 'getForceMiss', + 'force_ssl' => 'getForceSsl', + 'geo_headers' => 'getGeoHeaders', + 'max_stale_age' => 'getMaxStaleAge', + 'timer_support' => 'getTimerSupport' ]; /** @@ -288,23 +288,23 @@ public function getXffAllowableValues() */ public function __construct(array $data = null) { + $this->container['created_at'] = $data['created_at'] ?? null; + $this->container['deleted_at'] = $data['deleted_at'] ?? null; + $this->container['updated_at'] = $data['updated_at'] ?? null; + $this->container['service_id'] = $data['service_id'] ?? null; + $this->container['version'] = $data['version'] ?? null; $this->container['action'] = $data['action'] ?? null; - $this->container['bypass_busy_wait'] = $data['bypass_busy_wait'] ?? null; $this->container['default_host'] = $data['default_host'] ?? null; + $this->container['hash_keys'] = $data['hash_keys'] ?? null; + $this->container['name'] = $data['name'] ?? null; + $this->container['request_condition'] = $data['request_condition'] ?? null; + $this->container['xff'] = $data['xff'] ?? null; + $this->container['bypass_busy_wait'] = $data['bypass_busy_wait'] ?? null; $this->container['force_miss'] = $data['force_miss'] ?? null; $this->container['force_ssl'] = $data['force_ssl'] ?? null; $this->container['geo_headers'] = $data['geo_headers'] ?? null; - $this->container['hash_keys'] = $data['hash_keys'] ?? null; $this->container['max_stale_age'] = $data['max_stale_age'] ?? null; - $this->container['name'] = $data['name'] ?? null; - $this->container['request_condition'] = $data['request_condition'] ?? null; $this->container['timer_support'] = $data['timer_support'] ?? null; - $this->container['xff'] = $data['xff'] ?? null; - $this->container['service_id'] = $data['service_id'] ?? null; - $this->container['version'] = $data['version'] ?? null; - $this->container['created_at'] = $data['created_at'] ?? null; - $this->container['deleted_at'] = $data['deleted_at'] ?? null; - $this->container['updated_at'] = $data['updated_at'] ?? null; } /** @@ -350,203 +350,203 @@ public function valid() /** - * Gets action + * Gets created_at * - * @return string|null + * @return \DateTime|null */ - public function getAction() + public function getCreatedAt() { - return $this->container['action']; + return $this->container['created_at']; } /** - * Sets action + * Sets created_at * - * @param string|null $action Allows you to terminate request handling and immediately perform an action. + * @param \DateTime|null $created_at Date and time in ISO 8601 format. * * @return self */ - public function setAction($action) + public function setCreatedAt($created_at) { - $allowedValues = $this->getActionAllowableValues(); - if (!is_null($action) && !in_array($action, $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value '%s' for 'action', must be one of '%s'", - $action, - implode("', '", $allowedValues) - ) - ); - } - $this->container['action'] = $action; + $this->container['created_at'] = $created_at; return $this; } /** - * Gets bypass_busy_wait + * Gets deleted_at * - * @return int|null + * @return \DateTime|null */ - public function getBypassBusyWait() + public function getDeletedAt() { - return $this->container['bypass_busy_wait']; + return $this->container['deleted_at']; } /** - * Sets bypass_busy_wait + * Sets deleted_at * - * @param int|null $bypass_busy_wait Disable collapsed forwarding, so you don't wait for other objects to origin. + * @param \DateTime|null $deleted_at Date and time in ISO 8601 format. * * @return self */ - public function setBypassBusyWait($bypass_busy_wait) + public function setDeletedAt($deleted_at) { - $this->container['bypass_busy_wait'] = $bypass_busy_wait; + $this->container['deleted_at'] = $deleted_at; return $this; } /** - * Gets default_host + * Gets updated_at * - * @return string|null + * @return \DateTime|null */ - public function getDefaultHost() + public function getUpdatedAt() { - return $this->container['default_host']; + return $this->container['updated_at']; } /** - * Sets default_host + * Sets updated_at * - * @param string|null $default_host Sets the host header. + * @param \DateTime|null $updated_at Date and time in ISO 8601 format. * * @return self */ - public function setDefaultHost($default_host) + public function setUpdatedAt($updated_at) { - $this->container['default_host'] = $default_host; + $this->container['updated_at'] = $updated_at; return $this; } /** - * Gets force_miss + * Gets service_id * - * @return int|null + * @return string|null */ - public function getForceMiss() + public function getServiceId() { - return $this->container['force_miss']; + return $this->container['service_id']; } /** - * Sets force_miss + * Sets service_id * - * @param int|null $force_miss Allows you to force a cache miss for the request. Replaces the item in the cache if the content is cacheable. + * @param string|null $service_id service_id * * @return self */ - public function setForceMiss($force_miss) + public function setServiceId($service_id) { - $this->container['force_miss'] = $force_miss; + $this->container['service_id'] = $service_id; return $this; } /** - * Gets force_ssl + * Gets version * - * @return int|null + * @return string|null */ - public function getForceSsl() + public function getVersion() { - return $this->container['force_ssl']; + return $this->container['version']; } /** - * Sets force_ssl + * Sets version * - * @param int|null $force_ssl Forces the request use SSL (redirects a non-SSL to SSL). + * @param string|null $version version * * @return self */ - public function setForceSsl($force_ssl) + public function setVersion($version) { - $this->container['force_ssl'] = $force_ssl; + $this->container['version'] = $version; return $this; } /** - * Gets geo_headers + * Gets action * - * @return int|null + * @return string|null */ - public function getGeoHeaders() + public function getAction() { - return $this->container['geo_headers']; + return $this->container['action']; } /** - * Sets geo_headers + * Sets action * - * @param int|null $geo_headers Injects Fastly-Geo-Country, Fastly-Geo-City, and Fastly-Geo-Region into the request headers. + * @param string|null $action Allows you to terminate request handling and immediately perform an action. * * @return self */ - public function setGeoHeaders($geo_headers) + public function setAction($action) { - $this->container['geo_headers'] = $geo_headers; + $allowedValues = $this->getActionAllowableValues(); + if (!is_null($action) && !in_array($action, $allowedValues, true)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value '%s' for 'action', must be one of '%s'", + $action, + implode("', '", $allowedValues) + ) + ); + } + $this->container['action'] = $action; return $this; } /** - * Gets hash_keys + * Gets default_host * * @return string|null */ - public function getHashKeys() + public function getDefaultHost() { - return $this->container['hash_keys']; + return $this->container['default_host']; } /** - * Sets hash_keys + * Sets default_host * - * @param string|null $hash_keys Comma separated list of varnish request object fields that should be in the hash key. + * @param string|null $default_host Sets the host header. * * @return self */ - public function setHashKeys($hash_keys) + public function setDefaultHost($default_host) { - $this->container['hash_keys'] = $hash_keys; + $this->container['default_host'] = $default_host; return $this; } /** - * Gets max_stale_age + * Gets hash_keys * - * @return int|null + * @return string|null */ - public function getMaxStaleAge() + public function getHashKeys() { - return $this->container['max_stale_age']; + return $this->container['hash_keys']; } /** - * Sets max_stale_age + * Sets hash_keys * - * @param int|null $max_stale_age How old an object is allowed to be to serve stale-if-error or stale-while-revalidate. + * @param string|null $hash_keys Comma separated list of varnish request object fields that should be in the hash key. * * @return self */ - public function setMaxStaleAge($max_stale_age) + public function setHashKeys($hash_keys) { - $this->container['max_stale_age'] = $max_stale_age; + $this->container['hash_keys'] = $hash_keys; return $this; } @@ -599,30 +599,6 @@ public function setRequestCondition($request_condition) return $this; } - /** - * Gets timer_support - * - * @return int|null - */ - public function getTimerSupport() - { - return $this->container['timer_support']; - } - - /** - * Sets timer_support - * - * @param int|null $timer_support Injects the X-Timer info into the request for viewing origin fetch durations. - * - * @return self - */ - public function setTimerSupport($timer_support) - { - $this->container['timer_support'] = $timer_support; - - return $this; - } - /** * Gets xff * @@ -658,121 +634,145 @@ public function setXff($xff) } /** - * Gets service_id + * Gets bypass_busy_wait * * @return string|null */ - public function getServiceId() + public function getBypassBusyWait() { - return $this->container['service_id']; + return $this->container['bypass_busy_wait']; } /** - * Sets service_id + * Sets bypass_busy_wait * - * @param string|null $service_id service_id + * @param string|null $bypass_busy_wait Disable collapsed forwarding, so you don't wait for other objects to origin. * * @return self */ - public function setServiceId($service_id) + public function setBypassBusyWait($bypass_busy_wait) { - $this->container['service_id'] = $service_id; + $this->container['bypass_busy_wait'] = $bypass_busy_wait; return $this; } /** - * Gets version + * Gets force_miss * - * @return int|null + * @return string|null */ - public function getVersion() + public function getForceMiss() { - return $this->container['version']; + return $this->container['force_miss']; } /** - * Sets version + * Sets force_miss * - * @param int|null $version version + * @param string|null $force_miss Allows you to force a cache miss for the request. Replaces the item in the cache if the content is cacheable. * * @return self */ - public function setVersion($version) + public function setForceMiss($force_miss) { - $this->container['version'] = $version; + $this->container['force_miss'] = $force_miss; return $this; } /** - * Gets created_at + * Gets force_ssl * - * @return \DateTime|null + * @return string|null */ - public function getCreatedAt() + public function getForceSsl() { - return $this->container['created_at']; + return $this->container['force_ssl']; } /** - * Sets created_at + * Sets force_ssl * - * @param \DateTime|null $created_at Date and time in ISO 8601 format. + * @param string|null $force_ssl Forces the request use SSL (redirects a non-SSL to SSL). * * @return self */ - public function setCreatedAt($created_at) + public function setForceSsl($force_ssl) { - $this->container['created_at'] = $created_at; + $this->container['force_ssl'] = $force_ssl; return $this; } /** - * Gets deleted_at + * Gets geo_headers * - * @return \DateTime|null + * @return string|null */ - public function getDeletedAt() + public function getGeoHeaders() { - return $this->container['deleted_at']; + return $this->container['geo_headers']; } /** - * Sets deleted_at + * Sets geo_headers * - * @param \DateTime|null $deleted_at Date and time in ISO 8601 format. + * @param string|null $geo_headers Injects Fastly-Geo-Country, Fastly-Geo-City, and Fastly-Geo-Region into the request headers. * * @return self */ - public function setDeletedAt($deleted_at) + public function setGeoHeaders($geo_headers) { - $this->container['deleted_at'] = $deleted_at; + $this->container['geo_headers'] = $geo_headers; return $this; } /** - * Gets updated_at + * Gets max_stale_age * - * @return \DateTime|null + * @return string|null */ - public function getUpdatedAt() + public function getMaxStaleAge() { - return $this->container['updated_at']; + return $this->container['max_stale_age']; } /** - * Sets updated_at + * Sets max_stale_age * - * @param \DateTime|null $updated_at Date and time in ISO 8601 format. + * @param string|null $max_stale_age How old an object is allowed to be to serve stale-if-error or stale-while-revalidate. * * @return self */ - public function setUpdatedAt($updated_at) + public function setMaxStaleAge($max_stale_age) { - $this->container['updated_at'] = $updated_at; + $this->container['max_stale_age'] = $max_stale_age; + + return $this; + } + + /** + * Gets timer_support + * + * @return string|null + */ + public function getTimerSupport() + { + return $this->container['timer_support']; + } + + /** + * Sets timer_support + * + * @param string|null $timer_support Injects the X-Timer info into the request for viewing origin fetch durations. + * + * @return self + */ + public function setTimerSupport($timer_support) + { + $this->container['timer_support'] = $timer_support; return $this; } diff --git a/lib/Model/RequestSettingsResponseAllOf.php b/lib/Model/RequestSettingsResponseAllOf.php new file mode 100644 index 00000000..f7aad4d9 --- /dev/null +++ b/lib/Model/RequestSettingsResponseAllOf.php @@ -0,0 +1,464 @@ + + * @template TKey int|null + * @template TValue mixed|null + */ +class RequestSettingsResponseAllOf implements ModelInterface, ArrayAccess, \JsonSerializable +{ + public const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static $fastlyModelName = 'request_settings_response_allOf'; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $fastlyTypes = [ + 'bypass_busy_wait' => 'string', + 'force_miss' => 'string', + 'force_ssl' => 'string', + 'geo_headers' => 'string', + 'max_stale_age' => 'string', + 'timer_support' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ + protected static $fastlyFormats = [ + 'bypass_busy_wait' => null, + 'force_miss' => null, + 'force_ssl' => null, + 'geo_headers' => null, + 'max_stale_age' => null, + 'timer_support' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function fastlyTypes() + { + return self::$fastlyTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function fastlyFormats() + { + return self::$fastlyFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'bypass_busy_wait' => 'bypass_busy_wait', + 'force_miss' => 'force_miss', + 'force_ssl' => 'force_ssl', + 'geo_headers' => 'geo_headers', + 'max_stale_age' => 'max_stale_age', + 'timer_support' => 'timer_support' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'bypass_busy_wait' => 'setBypassBusyWait', + 'force_miss' => 'setForceMiss', + 'force_ssl' => 'setForceSsl', + 'geo_headers' => 'setGeoHeaders', + 'max_stale_age' => 'setMaxStaleAge', + 'timer_support' => 'setTimerSupport' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'bypass_busy_wait' => 'getBypassBusyWait', + 'force_miss' => 'getForceMiss', + 'force_ssl' => 'getForceSsl', + 'geo_headers' => 'getGeoHeaders', + 'max_stale_age' => 'getMaxStaleAge', + 'timer_support' => 'getTimerSupport' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$fastlyModelName; + } + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['bypass_busy_wait'] = $data['bypass_busy_wait'] ?? null; + $this->container['force_miss'] = $data['force_miss'] ?? null; + $this->container['force_ssl'] = $data['force_ssl'] ?? null; + $this->container['geo_headers'] = $data['geo_headers'] ?? null; + $this->container['max_stale_age'] = $data['max_stale_age'] ?? null; + $this->container['timer_support'] = $data['timer_support'] ?? null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + + /** + * Gets bypass_busy_wait + * + * @return string|null + */ + public function getBypassBusyWait() + { + return $this->container['bypass_busy_wait']; + } + + /** + * Sets bypass_busy_wait + * + * @param string|null $bypass_busy_wait Disable collapsed forwarding, so you don't wait for other objects to origin. + * + * @return self + */ + public function setBypassBusyWait($bypass_busy_wait) + { + $this->container['bypass_busy_wait'] = $bypass_busy_wait; + + return $this; + } + + /** + * Gets force_miss + * + * @return string|null + */ + public function getForceMiss() + { + return $this->container['force_miss']; + } + + /** + * Sets force_miss + * + * @param string|null $force_miss Allows you to force a cache miss for the request. Replaces the item in the cache if the content is cacheable. + * + * @return self + */ + public function setForceMiss($force_miss) + { + $this->container['force_miss'] = $force_miss; + + return $this; + } + + /** + * Gets force_ssl + * + * @return string|null + */ + public function getForceSsl() + { + return $this->container['force_ssl']; + } + + /** + * Sets force_ssl + * + * @param string|null $force_ssl Forces the request use SSL (redirects a non-SSL to SSL). + * + * @return self + */ + public function setForceSsl($force_ssl) + { + $this->container['force_ssl'] = $force_ssl; + + return $this; + } + + /** + * Gets geo_headers + * + * @return string|null + */ + public function getGeoHeaders() + { + return $this->container['geo_headers']; + } + + /** + * Sets geo_headers + * + * @param string|null $geo_headers Injects Fastly-Geo-Country, Fastly-Geo-City, and Fastly-Geo-Region into the request headers. + * + * @return self + */ + public function setGeoHeaders($geo_headers) + { + $this->container['geo_headers'] = $geo_headers; + + return $this; + } + + /** + * Gets max_stale_age + * + * @return string|null + */ + public function getMaxStaleAge() + { + return $this->container['max_stale_age']; + } + + /** + * Sets max_stale_age + * + * @param string|null $max_stale_age How old an object is allowed to be to serve stale-if-error or stale-while-revalidate. + * + * @return self + */ + public function setMaxStaleAge($max_stale_age) + { + $this->container['max_stale_age'] = $max_stale_age; + + return $this; + } + + /** + * Gets timer_support + * + * @return string|null + */ + public function getTimerSupport() + { + return $this->container['timer_support']; + } + + /** + * Sets timer_support + * + * @param string|null $timer_support Injects the X-Timer info into the request for viewing origin fetch durations. + * + * @return self + */ + public function setTimerSupport($timer_support) + { + $this->container['timer_support'] = $timer_support; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset): bool + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed|null + */ + public function offsetGet($offset): mixed + { + return $this->container[$offset] ?? null; + } + + /** + * Sets value based on offset. + * + * @param int|null $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value): void + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset): void + { + unset($this->container[$offset]); + } + + /** + * Serializes the object to a value that can be serialized natively by json_encode(). + * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php + * + * @return mixed Returns data which can be serialized by json_encode(), which is a value + * of any type other than a resource. + */ + public function jsonSerialize(): mixed + { + return ObjectSerializer::sanitizeForSerialization($this); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + /** + * Gets a header-safe presentation of the object + * + * @return string + */ + public function toHeaderValue() + { + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/lib/Model/ResponseObject.php b/lib/Model/ResponseObject.php index dfdda9e2..56f9d62e 100644 --- a/lib/Model/ResponseObject.php +++ b/lib/Model/ResponseObject.php @@ -57,7 +57,7 @@ class ResponseObject implements ModelInterface, ArrayAccess, \JsonSerializable 'content' => 'string', 'content_type' => 'string', 'name' => 'string', - 'status' => 'int', + 'status' => 'string', 'response' => 'string', 'request_condition' => 'string' ]; @@ -206,7 +206,7 @@ public function __construct(array $data = null) $this->container['content'] = $data['content'] ?? null; $this->container['content_type'] = $data['content_type'] ?? null; $this->container['name'] = $data['name'] ?? null; - $this->container['status'] = $data['status'] ?? 200; + $this->container['status'] = $data['status'] ?? '200'; $this->container['response'] = $data['response'] ?? 'Ok'; $this->container['request_condition'] = $data['request_condition'] ?? null; } @@ -334,7 +334,7 @@ public function setName($name) /** * Gets status * - * @return int|null + * @return string|null */ public function getStatus() { @@ -344,7 +344,7 @@ public function getStatus() /** * Sets status * - * @param int|null $status The HTTP status code. + * @param string|null $status The HTTP status code. * * @return self */ diff --git a/lib/Model/ResponseObjectResponse.php b/lib/Model/ResponseObjectResponse.php index bb5a45a3..8e1346fe 100644 --- a/lib/Model/ResponseObjectResponse.php +++ b/lib/Model/ResponseObjectResponse.php @@ -57,11 +57,11 @@ class ResponseObjectResponse implements ModelInterface, ArrayAccess, \JsonSerial 'content' => 'string', 'content_type' => 'string', 'name' => 'string', - 'status' => 'int', + 'status' => 'string', 'response' => 'string', 'request_condition' => 'string', 'service_id' => 'string', - 'version' => 'int', + 'version' => 'string', 'created_at' => '\DateTime', 'deleted_at' => '\DateTime', 'updated_at' => '\DateTime' @@ -231,7 +231,7 @@ public function __construct(array $data = null) $this->container['content'] = $data['content'] ?? null; $this->container['content_type'] = $data['content_type'] ?? null; $this->container['name'] = $data['name'] ?? null; - $this->container['status'] = $data['status'] ?? 200; + $this->container['status'] = $data['status'] ?? '200'; $this->container['response'] = $data['response'] ?? 'Ok'; $this->container['request_condition'] = $data['request_condition'] ?? null; $this->container['service_id'] = $data['service_id'] ?? null; @@ -364,7 +364,7 @@ public function setName($name) /** * Gets status * - * @return int|null + * @return string|null */ public function getStatus() { @@ -374,7 +374,7 @@ public function getStatus() /** * Sets status * - * @param int|null $status The HTTP status code. + * @param string|null $status The HTTP status code. * * @return self */ @@ -460,7 +460,7 @@ public function setServiceId($service_id) /** * Gets version * - * @return int|null + * @return string|null */ public function getVersion() { @@ -470,7 +470,7 @@ public function getVersion() /** * Sets version * - * @param int|null $version version + * @param string|null $version version * * @return self */ diff --git a/lib/Model/DomainCheckItem.php b/lib/Model/ServiceIdAndVersionString.php similarity index 83% rename from lib/Model/DomainCheckItem.php rename to lib/Model/ServiceIdAndVersionString.php index ca294f18..91cc3f83 100644 --- a/lib/Model/DomainCheckItem.php +++ b/lib/Model/ServiceIdAndVersionString.php @@ -1,6 +1,6 @@ 'string', - 'name' => 'string' + 'service_id' => 'string', + 'version' => 'string' ]; /** @@ -65,8 +65,8 @@ class DomainCheckItem implements ModelInterface, ArrayAccess, \JsonSerializable * @psalm-var array */ protected static $fastlyFormats = [ - 'comment' => null, - 'name' => null + 'service_id' => null, + 'version' => null ]; /** @@ -96,8 +96,8 @@ public static function fastlyFormats() * @var string[] */ protected static $attributeMap = [ - 'comment' => 'comment', - 'name' => 'name' + 'service_id' => 'service_id', + 'version' => 'version' ]; /** @@ -106,8 +106,8 @@ public static function fastlyFormats() * @var string[] */ protected static $setters = [ - 'comment' => 'setComment', - 'name' => 'setName' + 'service_id' => 'setServiceId', + 'version' => 'setVersion' ]; /** @@ -116,8 +116,8 @@ public static function fastlyFormats() * @var string[] */ protected static $getters = [ - 'comment' => 'getComment', - 'name' => 'getName' + 'service_id' => 'getServiceId', + 'version' => 'getVersion' ]; /** @@ -177,8 +177,8 @@ public function getModelName() */ public function __construct(array $data = null) { - $this->container['comment'] = $data['comment'] ?? null; - $this->container['name'] = $data['name'] ?? null; + $this->container['service_id'] = $data['service_id'] ?? null; + $this->container['version'] = $data['version'] ?? null; } /** @@ -206,49 +206,49 @@ public function valid() /** - * Gets comment + * Gets service_id * * @return string|null */ - public function getComment() + public function getServiceId() { - return $this->container['comment']; + return $this->container['service_id']; } /** - * Sets comment + * Sets service_id * - * @param string|null $comment A freeform descriptive note. + * @param string|null $service_id service_id * * @return self */ - public function setComment($comment) + public function setServiceId($service_id) { - $this->container['comment'] = $comment; + $this->container['service_id'] = $service_id; return $this; } /** - * Gets name + * Gets version * * @return string|null */ - public function getName() + public function getVersion() { - return $this->container['name']; + return $this->container['version']; } /** - * Sets name + * Sets version * - * @param string|null $name The name of the domain or domains associated with this service. + * @param string|null $version version * * @return self */ - public function setName($name) + public function setVersion($version) { - $this->container['name'] = $name; + $this->container['version'] = $version; return $this; } diff --git a/lib/Model/TlsCommon.php b/lib/Model/TlsCommonResponse.php similarity index 95% rename from lib/Model/TlsCommon.php rename to lib/Model/TlsCommonResponse.php index a1563428..ebaabef4 100644 --- a/lib/Model/TlsCommon.php +++ b/lib/Model/TlsCommonResponse.php @@ -1,6 +1,6 @@ 'string', 'tls_client_key' => 'string', 'tls_cert_hostname' => 'string', - 'use_tls' => 'int' + 'use_tls' => 'string' ]; /** @@ -176,8 +176,8 @@ public function getModelName() return self::$fastlyModelName; } - const USE_TLS_no_tls = 0; - const USE_TLS_use_tls = 1; + const USE_TLS_no_tls = '0'; + const USE_TLS_use_tls = '1'; /** * Gets allowable values of the enum @@ -211,7 +211,7 @@ public function __construct(array $data = null) $this->container['tls_client_cert'] = $data['tls_client_cert'] ?? 'null'; $this->container['tls_client_key'] = $data['tls_client_key'] ?? 'null'; $this->container['tls_cert_hostname'] = $data['tls_cert_hostname'] ?? 'null'; - $this->container['use_tls'] = $data['use_tls'] ?? self::USE_TLS_no_tls; + $this->container['use_tls'] = $data['use_tls'] ?? '0'; } /** @@ -346,7 +346,7 @@ public function setTlsCertHostname($tls_cert_hostname) /** * Gets use_tls * - * @return int|null + * @return string|null */ public function getUseTls() { @@ -356,7 +356,7 @@ public function getUseTls() /** * Sets use_tls * - * @param int|null $use_tls Whether to use TLS. + * @param string|null $use_tls Whether to use TLS. * * @return self */ diff --git a/lib/Model/TlsCommonResponseAllOf.php b/lib/Model/TlsCommonResponseAllOf.php new file mode 100644 index 00000000..81afa35d --- /dev/null +++ b/lib/Model/TlsCommonResponseAllOf.php @@ -0,0 +1,404 @@ + + * @template TKey int|null + * @template TValue mixed|null + */ +class TlsCommonResponseAllOf implements ModelInterface, ArrayAccess, \JsonSerializable +{ + public const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static $fastlyModelName = 'tls_common_response_allOf'; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $fastlyTypes = [ + 'tls_ca_cert' => 'string', + 'tls_client_cert' => 'string', + 'tls_client_key' => 'string', + 'tls_cert_hostname' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ + protected static $fastlyFormats = [ + 'tls_ca_cert' => null, + 'tls_client_cert' => null, + 'tls_client_key' => null, + 'tls_cert_hostname' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function fastlyTypes() + { + return self::$fastlyTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function fastlyFormats() + { + return self::$fastlyFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'tls_ca_cert' => 'tls_ca_cert', + 'tls_client_cert' => 'tls_client_cert', + 'tls_client_key' => 'tls_client_key', + 'tls_cert_hostname' => 'tls_cert_hostname' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'tls_ca_cert' => 'setTlsCaCert', + 'tls_client_cert' => 'setTlsClientCert', + 'tls_client_key' => 'setTlsClientKey', + 'tls_cert_hostname' => 'setTlsCertHostname' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'tls_ca_cert' => 'getTlsCaCert', + 'tls_client_cert' => 'getTlsClientCert', + 'tls_client_key' => 'getTlsClientKey', + 'tls_cert_hostname' => 'getTlsCertHostname' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$fastlyModelName; + } + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['tls_ca_cert'] = $data['tls_ca_cert'] ?? 'null'; + $this->container['tls_client_cert'] = $data['tls_client_cert'] ?? 'null'; + $this->container['tls_client_key'] = $data['tls_client_key'] ?? 'null'; + $this->container['tls_cert_hostname'] = $data['tls_cert_hostname'] ?? 'null'; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + + /** + * Gets tls_ca_cert + * + * @return string|null + */ + public function getTlsCaCert() + { + return $this->container['tls_ca_cert']; + } + + /** + * Sets tls_ca_cert + * + * @param string|null $tls_ca_cert A secure certificate to authenticate a server with. Must be in PEM format. + * + * @return self + */ + public function setTlsCaCert($tls_ca_cert) + { + $this->container['tls_ca_cert'] = $tls_ca_cert; + + return $this; + } + + /** + * Gets tls_client_cert + * + * @return string|null + */ + public function getTlsClientCert() + { + return $this->container['tls_client_cert']; + } + + /** + * Sets tls_client_cert + * + * @param string|null $tls_client_cert The client certificate used to make authenticated requests. Must be in PEM format. + * + * @return self + */ + public function setTlsClientCert($tls_client_cert) + { + $this->container['tls_client_cert'] = $tls_client_cert; + + return $this; + } + + /** + * Gets tls_client_key + * + * @return string|null + */ + public function getTlsClientKey() + { + return $this->container['tls_client_key']; + } + + /** + * Sets tls_client_key + * + * @param string|null $tls_client_key The client private key used to make authenticated requests. Must be in PEM format. + * + * @return self + */ + public function setTlsClientKey($tls_client_key) + { + $this->container['tls_client_key'] = $tls_client_key; + + return $this; + } + + /** + * Gets tls_cert_hostname + * + * @return string|null + */ + public function getTlsCertHostname() + { + return $this->container['tls_cert_hostname']; + } + + /** + * Sets tls_cert_hostname + * + * @param string|null $tls_cert_hostname The hostname used to verify a server's certificate. It can either be the Common Name (CN) or a Subject Alternative Name (SAN). + * + * @return self + */ + public function setTlsCertHostname($tls_cert_hostname) + { + $this->container['tls_cert_hostname'] = $tls_cert_hostname; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset): bool + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed|null + */ + public function offsetGet($offset): mixed + { + return $this->container[$offset] ?? null; + } + + /** + * Sets value based on offset. + * + * @param int|null $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value): void + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset): void + { + unset($this->container[$offset]); + } + + /** + * Serializes the object to a value that can be serialized natively by json_encode(). + * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php + * + * @return mixed Returns data which can be serialized by json_encode(), which is a value + * of any type other than a resource. + */ + public function jsonSerialize(): mixed + { + return ObjectSerializer::sanitizeForSerialization($this); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + /** + * Gets a header-safe presentation of the object + * + * @return string + */ + public function toHeaderValue() + { + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/lib/Model/TlsCommonResponseAllOf1.php b/lib/Model/TlsCommonResponseAllOf1.php new file mode 100644 index 00000000..074b859d --- /dev/null +++ b/lib/Model/TlsCommonResponseAllOf1.php @@ -0,0 +1,348 @@ + + * @template TKey int|null + * @template TValue mixed|null + */ +class TlsCommonResponseAllOf1 implements ModelInterface, ArrayAccess, \JsonSerializable +{ + public const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static $fastlyModelName = 'tls_common_response_allOf_1'; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $fastlyTypes = [ + 'use_tls' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ + protected static $fastlyFormats = [ + 'use_tls' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function fastlyTypes() + { + return self::$fastlyTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function fastlyFormats() + { + return self::$fastlyFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'use_tls' => 'use_tls' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'use_tls' => 'setUseTls' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'use_tls' => 'getUseTls' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$fastlyModelName; + } + + const USE_TLS_no_tls = '0'; + const USE_TLS_use_tls = '1'; + + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getUseTlsAllowableValues() + { + return [ + self::USE_TLS_no_tls, + self::USE_TLS_use_tls, + ]; + } + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['use_tls'] = $data['use_tls'] ?? '0'; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + $allowedValues = $this->getUseTlsAllowableValues(); + if (!is_null($this->container['use_tls']) && !in_array($this->container['use_tls'], $allowedValues, true)) { + $invalidProperties[] = sprintf( + "invalid value '%s' for 'use_tls', must be one of '%s'", + $this->container['use_tls'], + implode("', '", $allowedValues) + ); + } + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + + /** + * Gets use_tls + * + * @return string|null + */ + public function getUseTls() + { + return $this->container['use_tls']; + } + + /** + * Sets use_tls + * + * @param string|null $use_tls Whether to use TLS. + * + * @return self + */ + public function setUseTls($use_tls) + { + $allowedValues = $this->getUseTlsAllowableValues(); + if (!is_null($use_tls) && !in_array($use_tls, $allowedValues, true)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value '%s' for 'use_tls', must be one of '%s'", + $use_tls, + implode("', '", $allowedValues) + ) + ); + } + $this->container['use_tls'] = $use_tls; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset): bool + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed|null + */ + public function offsetGet($offset): mixed + { + return $this->container[$offset] ?? null; + } + + /** + * Sets value based on offset. + * + * @param int|null $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value): void + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset): void + { + unset($this->container[$offset]); + } + + /** + * Serializes the object to a value that can be serialized natively by json_encode(). + * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php + * + * @return mixed Returns data which can be serialized by json_encode(), which is a value + * of any type other than a resource. + */ + public function jsonSerialize(): mixed + { + return ObjectSerializer::sanitizeForSerialization($this); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + /** + * Gets a header-safe presentation of the object + * + * @return string + */ + public function toHeaderValue() + { + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/lib/Model/TlsSubscriptionResponseDataAllOf.php b/lib/Model/TlsSubscriptionResponseDataAllOf.php deleted file mode 100644 index 7640e169..00000000 --- a/lib/Model/TlsSubscriptionResponseDataAllOf.php +++ /dev/null @@ -1,344 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class TlsSubscriptionResponseDataAllOf implements ModelInterface, ArrayAccess, \JsonSerializable -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $fastlyModelName = 'tls_subscription_response_data_allOf'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $fastlyTypes = [ - 'id' => 'string', - 'attributes' => '\Fastly\Model\TlsSubscriptionResponseAttributes' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $fastlyFormats = [ - 'id' => null, - 'attributes' => null - ]; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @return array - */ - public static function fastlyTypes() - { - return self::$fastlyTypes; - } - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @return array - */ - public static function fastlyFormats() - { - return self::$fastlyFormats; - } - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'id' => 'id', - 'attributes' => 'attributes' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'id' => 'setId', - 'attributes' => 'setAttributes' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'id' => 'getId', - 'attributes' => 'getAttributes' - ]; - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @return array - */ - public static function attributeMap() - { - return self::$attributeMap; - } - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @return array - */ - public static function setters() - { - return self::$setters; - } - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @return array - */ - public static function getters() - { - return self::$getters; - } - - /** - * The original name of the model. - * - * @return string - */ - public function getModelName() - { - return self::$fastlyModelName; - } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['id'] = $data['id'] ?? null; - $this->container['attributes'] = $data['attributes'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - - return $invalidProperties; - } - - /** - * Validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - return count($this->listInvalidProperties()) === 0; - } - - - /** - * Gets id - * - * @return string|null - */ - public function getId() - { - return $this->container['id']; - } - - /** - * Sets id - * - * @param string|null $id id - * - * @return self - */ - public function setId($id) - { - $this->container['id'] = $id; - - return $this; - } - - /** - * Gets attributes - * - * @return \Fastly\Model\TlsSubscriptionResponseAttributes|null - */ - public function getAttributes() - { - return $this->container['attributes']; - } - - /** - * Sets attributes - * - * @param \Fastly\Model\TlsSubscriptionResponseAttributes|null $attributes attributes - * - * @return self - */ - public function setAttributes($attributes) - { - $this->container['attributes'] = $attributes; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * - * @param integer $offset Offset - * - * @return boolean - */ - public function offsetExists($offset): bool - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * - * @param integer $offset Offset - * - * @return mixed|null - */ - public function offsetGet($offset): mixed - { - return $this->container[$offset] ?? null; - } - - /** - * Sets value based on offset. - * - * @param int|null $offset Offset - * @param mixed $value Value to be set - * - * @return void - */ - public function offsetSet($offset, $value): void - { - if (is_null($offset)) { - $this->container[] = $value; - } else { - $this->container[$offset] = $value; - } - } - - /** - * Unsets offset. - * - * @param integer $offset Offset - * - * @return void - */ - public function offsetUnset($offset): void - { - unset($this->container[$offset]); - } - - /** - * Serializes the object to a value that can be serialized natively by json_encode(). - * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php - * - * @return mixed Returns data which can be serialized by json_encode(), which is a value - * of any type other than a resource. - */ - public function jsonSerialize(): mixed - { - return ObjectSerializer::sanitizeForSerialization($this); - } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString() - { - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } - - /** - * Gets a header-safe presentation of the object - * - * @return string - */ - public function toHeaderValue() - { - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/sig.json b/sig.json index 50cf831f..65857946 100644 --- a/sig.json +++ b/sig.json @@ -1 +1 @@ -{"G": "59fc714d", "D": "3bd4fb97"} +{"G": "2914592f", "D": "7e4f4edd"}