From a63273d8a5d6460fccd3c30fede8223a6f8095e0 Mon Sep 17 00:00:00 2001 From: github-actions Date: Mon, 31 Jul 2023 16:39:04 +0000 Subject: [PATCH] Generated v4.0.0 --- CHANGELOG.md | 19 + docs/AclEntryApi.md | 2 +- docs/CacheSetting.md | 4 +- docs/CacheSettingResponse.md | 6 +- docs/CacheSettingsApi.md | 16 +- docs/ConfigStoreItemApi.md | 2 +- docs/DictionaryItemApi.md | 2 +- docs/DomainCheckResponse.md | 2 +- docs/GzipResponse.md | 2 +- docs/Header.md | 2 - docs/HeaderApi.md | 20 +- docs/HeaderResponse.md | 6 +- docs/HeaderResponseAdditional.md | 13 + docs/LoggingAzureblob.md | 27 -- ...AllOf.md => LoggingAzureblobAdditional.md} | 2 +- docs/LoggingAzureblobApi.md | 20 +- docs/LoggingAzureblobResponse.md | 16 +- docs/LoggingBigquery.md | 23 - ...yAllOf.md => LoggingBigqueryAdditional.md} | 2 +- docs/LoggingBigqueryApi.md | 12 +- docs/LoggingBigqueryResponse.md | 4 +- docs/LoggingCloudfiles.md | 27 -- ...llOf.md => LoggingCloudfilesAdditional.md} | 2 +- docs/LoggingCloudfilesApi.md | 20 +- docs/LoggingCloudfilesResponse.md | 16 +- docs/LoggingCommon.md | 1 - ...gSumologic.md => LoggingCommonResponse.md} | 6 +- ...uttle.md => LoggingCommonResponseAllOf.md} | 5 +- docs/LoggingCommonResponseAllOf1.md | 12 + docs/LoggingDatadog.md | 18 - ...ogAllOf.md => LoggingDatadogAdditional.md} | 2 +- docs/LoggingDatadogApi.md | 12 +- docs/LoggingDatadogResponse.md | 4 +- docs/LoggingDigitalocean.md | 27 -- ...Of.md => LoggingDigitaloceanAdditional.md} | 2 +- docs/LoggingDigitaloceanApi.md | 20 +- docs/LoggingDigitaloceanResponse.md | 16 +- docs/LoggingElasticsearch.md | 27 -- ...f.md => LoggingElasticsearchAdditional.md} | 2 +- docs/LoggingElasticsearchApi.md | 12 +- docs/LoggingElasticsearchResponse.md | 4 +- docs/LoggingFormatVersion.md | 12 - docs/LoggingFormatVersionInteger.md | 12 + docs/LoggingFormatVersionString.md | 12 + docs/LoggingFtp.md | 29 -- ...ingFtpAllOf.md => LoggingFtpAdditional.md} | 3 +- docs/LoggingFtpApi.md | 28 +- docs/LoggingFtpResponse.md | 18 +- ...ataAllOf.md => LoggingFtpResponseAllOf.md} | 5 +- docs/LoggingGcs.md | 28 -- ...ingGcsAllOf.md => LoggingGcsAdditional.md} | 2 +- docs/LoggingGcsApi.md | 20 +- docs/LoggingGcsResponse.md | 16 +- docs/LoggingGenericCommon.md | 2 - docs/LoggingGenericCommonResponse.md | 16 + docs/LoggingGenericCommonResponseAllOf.md | 14 + docs/LoggingGenericCommonResponseAllOf1.md | 13 + docs/LoggingGooglePubsub.md | 21 - ...Of.md => LoggingGooglePubsubAdditional.md} | 2 +- docs/LoggingGooglePubsubResponse.md | 4 +- docs/LoggingHeroku.md | 18 - ...okuAllOf.md => LoggingHerokuAdditional.md} | 2 +- docs/LoggingHerokuApi.md | 12 +- docs/LoggingHerokuResponse.md | 4 +- docs/LoggingHoneycomb.md | 18 - ...AllOf.md => LoggingHoneycombAdditional.md} | 2 +- docs/LoggingHoneycombApi.md | 24 +- docs/LoggingHoneycombResponse.md | 4 +- docs/LoggingHttps.md | 29 -- ...ttpsAllOf.md => LoggingHttpsAdditional.md} | 2 +- docs/LoggingHttpsApi.md | 12 +- docs/LoggingHttpsResponse.md | 4 +- ...afkaAllOf.md => LoggingKafkaAdditional.md} | 2 +- docs/LoggingKafkaApi.md | 12 +- docs/LoggingKafkaResponse.md | 12 +- ...ngKafka.md => LoggingKafkaResponsePost.md} | 9 +- ...Kinesis.md => LoggingKinesisAdditional.md} | 3 +- docs/LoggingKinesisApi.md | 7 +- docs/LoggingKinesisResponse.md | 4 +- docs/LoggingLogentries.md | 20 - ...llOf.md => LoggingLogentriesAdditional.md} | 2 +- docs/LoggingLogentriesApi.md | 12 +- docs/LoggingLogentriesResponse.md | 4 +- docs/LoggingLoggly.md | 17 - ...glyAllOf.md => LoggingLogglyAdditional.md} | 2 +- docs/LoggingLogglyApi.md | 12 +- docs/LoggingLogglyResponse.md | 4 +- ...llOf.md => LoggingLogshuttleAdditional.md} | 2 +- docs/LoggingLogshuttleApi.md | 12 +- docs/LoggingLogshuttleResponse.md | 4 +- docs/LoggingNewrelic.md | 18 - ...cAllOf.md => LoggingNewrelicAdditional.md} | 2 +- docs/LoggingNewrelicApi.md | 12 +- docs/LoggingNewrelicResponse.md | 4 +- docs/LoggingOpenstack.md | 27 -- ...AllOf.md => LoggingOpenstackAdditional.md} | 2 +- docs/LoggingOpenstackApi.md | 20 +- docs/LoggingOpenstackResponse.md | 16 +- docs/LoggingPapertrail.md | 18 - docs/LoggingPapertrailApi.md | 12 +- docs/LoggingPapertrailResponse.md | 4 +- docs/LoggingPubsubApi.md | 12 +- docs/LoggingS3.md | 32 -- ...ggingS3AllOf.md => LoggingS3Additional.md} | 2 +- docs/LoggingS3Api.md | 20 +- docs/LoggingS3Response.md | 16 +- docs/LoggingScalyr.md | 19 - ...lyrAllOf.md => LoggingScalyrAdditional.md} | 2 +- docs/LoggingScalyrApi.md | 12 +- docs/LoggingScalyrResponse.md | 4 +- docs/LoggingSftp.md | 29 -- ...gSftpAllOf.md => LoggingSftpAdditional.md} | 3 +- docs/LoggingSftpApi.md | 20 +- docs/LoggingSftpResponse.md | 20 +- docs/LoggingSftpResponseAllOf.md | 15 + docs/LoggingSplunk.md | 25 -- ...unkAllOf.md => LoggingSplunkAdditional.md} | 2 +- docs/LoggingSplunkApi.md | 12 +- docs/LoggingSplunkResponse.md | 4 +- ...AllOf.md => LoggingSumologicAdditional.md} | 2 +- docs/LoggingSumologicApi.md | 12 +- docs/LoggingSumologicResponse.md | 4 +- docs/LoggingSyslog.md | 27 -- ...logAllOf.md => LoggingSyslogAdditional.md} | 2 +- docs/LoggingSyslogApi.md | 12 +- docs/LoggingSyslogResponse.md | 4 +- docs/Model403Forbidden.md | 11 - docs/MutualAuthenticationApi.md | 4 +- docs/OriginInspectorRealtimeEntryRecorded.md | 1 - ...iginInspectorSubsequentRequestTimestamp.md | 1 - docs/{PoolAllOf.md => PoolAdditional.md} | 7 +- docs/PoolApi.md | 74 ++-- docs/PoolResponse.md | 23 +- docs/PoolResponseAllOf.md | 2 +- docs/PoolResponseCommon.md | 17 + docs/{Pool.md => PoolResponsePost.md} | 21 +- docs/PoolResponsePostAllOf.md | 12 + docs/ReadOnlyServiceId.md | 1 - docs/ReadOnlyVersion.md | 1 - docs/RecordedTimestamp.md | 1 - ...ttings.md => RequestSettingsAdditional.md} | 8 +- docs/RequestSettingsApi.md | 22 +- docs/RequestSettingsResponse.md | 22 +- docs/RequestSettingsResponseAllOf.md | 17 + docs/ResponseObject.md | 2 +- docs/ResponseObjectResponse.md | 4 +- ...ckItem.md => ServiceIdAndVersionString.md} | 6 +- docs/SubsequentRequestTimestamp.md | 1 - docs/TlsActivationsApi.md | 4 +- docs/TlsBulkCertificatesApi.md | 4 +- docs/TlsCommonResponse.md | 16 + ...TlsCommon.md => TlsCommonResponseAllOf.md} | 3 +- docs/TlsCommonResponseAllOf1.md | 12 + docs/TlsPrivateKeysApi.md | 2 +- docs/TlsSubscriptionsApi.md | 4 +- docs/WafActiveRulesApi.md | 8 +- docs/WafExclusionsApi.md | 4 +- fastly/__init__.py | 2 +- fastly/api/cache_settings_api.py | 16 +- fastly/api/header_api.py | 48 +- fastly/api/logging_azureblob_api.py | 48 +- fastly/api/logging_bigquery_api.py | 24 +- fastly/api/logging_cloudfiles_api.py | 48 +- fastly/api/logging_datadog_api.py | 24 +- fastly/api/logging_digitalocean_api.py | 48 +- fastly/api/logging_elasticsearch_api.py | 24 +- fastly/api/logging_ftp_api.py | 72 +-- fastly/api/logging_gcs_api.py | 48 +- fastly/api/logging_heroku_api.py | 24 +- fastly/api/logging_honeycomb_api.py | 33 +- fastly/api/logging_https_api.py | 24 +- fastly/api/logging_kafka_api.py | 17 +- fastly/api/logging_kinesis_api.py | 19 +- fastly/api/logging_logentries_api.py | 24 +- fastly/api/logging_loggly_api.py | 24 +- fastly/api/logging_logshuttle_api.py | 24 +- fastly/api/logging_newrelic_api.py | 24 +- fastly/api/logging_openstack_api.py | 48 +- fastly/api/logging_papertrail_api.py | 24 +- fastly/api/logging_pubsub_api.py | 24 +- fastly/api/logging_s3_api.py | 48 +- fastly/api/logging_scalyr_api.py | 24 +- fastly/api/logging_sftp_api.py | 48 +- fastly/api/logging_splunk_api.py | 24 +- fastly/api/logging_sumologic_api.py | 24 +- fastly/api/logging_syslog_api.py | 24 +- fastly/api/pool_api.py | 207 ++++++--- fastly/api/request_settings_api.py | 60 +-- fastly/api_client.py | 2 +- fastly/configuration.py | 2 +- fastly/model/cache_setting.py | 12 +- fastly/model/cache_setting_response.py | 24 +- fastly/model/domain_check_response.py | 15 +- fastly/model/gzip_response.py | 12 +- fastly/model/header.py | 8 - fastly/model/header_response.py | 31 +- ...ll_of.py => header_response_additional.py} | 29 +- fastly/model/logging_azureblob.py | 400 ----------------- ..._of.py => logging_azureblob_additional.py} | 6 +- fastly/model/logging_azureblob_response.py | 84 ++-- fastly/model/logging_bigquery.py | 369 ---------------- ...l_of.py => logging_bigquery_additional.py} | 6 +- fastly/model/logging_bigquery_response.py | 36 +- fastly/model/logging_cloudfiles.py | 407 ----------------- ...of.py => logging_cloudfiles_additional.py} | 6 +- fastly/model/logging_cloudfiles_response.py | 84 ++-- fastly/model/logging_common.py | 8 - ...g_loggly.py => logging_common_response.py} | 34 +- .../model/logging_common_response_all_of.py | 271 ++++++++++++ .../model/logging_common_response_all_of1.py | 257 +++++++++++ fastly/model/logging_datadog.py | 350 --------------- ...ll_of.py => logging_datadog_additional.py} | 6 +- fastly/model/logging_datadog_response.py | 33 +- fastly/model/logging_digitalocean.py | 397 ----------------- ....py => logging_digitalocean_additional.py} | 6 +- fastly/model/logging_digitalocean_response.py | 84 ++-- fastly/model/logging_elasticsearch.py | 388 ---------------- ...py => logging_elasticsearch_additional.py} | 6 +- .../model/logging_elasticsearch_response.py | 39 +- fastly/model/logging_format_version.py | 272 ------------ .../model/logging_format_version_integer.py | 257 +++++++++++ fastly/model/logging_format_version_string.py | 257 +++++++++++ fastly/model/logging_ftp.py | 405 ----------------- ...tp_all_of.py => logging_ftp_additional.py} | 10 +- fastly/model/logging_ftp_response.py | 95 ++-- fastly/model/logging_ftp_response_all_of.py | 253 +++++++++++ fastly/model/logging_gcs.py | 406 ----------------- ...cs_all_of.py => logging_gcs_additional.py} | 6 +- fastly/model/logging_gcs_response.py | 85 ++-- fastly/model/logging_generic_common.py | 8 - ....py => logging_generic_common_response.py} | 84 ++-- .../logging_generic_common_response_all_of.py | 273 ++++++++++++ ...logging_generic_common_response_all_of1.py | 257 +++++++++++ fastly/model/logging_google_pubsub.py | 361 --------------- ...py => logging_google_pubsub_additional.py} | 6 +- .../model/logging_google_pubsub_response.py | 36 +- fastly/model/logging_heroku.py | 346 --------------- ...all_of.py => logging_heroku_additional.py} | 6 +- fastly/model/logging_heroku_response.py | 33 +- ..._of.py => logging_honeycomb_additional.py} | 6 +- fastly/model/logging_honeycomb_response.py | 33 +- fastly/model/logging_https.py | 407 ----------------- ..._all_of.py => logging_https_additional.py} | 6 +- fastly/model/logging_https_response.py | 39 +- ..._all_of.py => logging_kafka_additional.py} | 6 +- fastly/model/logging_kafka_response.py | 70 +-- ...afka.py => logging_kafka_response_post.py} | 54 ++- ...nesis.py => logging_kinesis_additional.py} | 12 +- fastly/model/logging_kinesis_response.py | 35 +- fastly/model/logging_logentries.py | 365 --------------- ...of.py => logging_logentries_additional.py} | 6 +- fastly/model/logging_logentries_response.py | 33 +- ...all_of.py => logging_loggly_additional.py} | 6 +- fastly/model/logging_loggly_response.py | 33 +- fastly/model/logging_logshuttle.py | 346 --------------- ...of.py => logging_logshuttle_additional.py} | 6 +- fastly/model/logging_logshuttle_response.py | 33 +- fastly/model/logging_newrelic.py | 350 --------------- ...l_of.py => logging_newrelic_additional.py} | 6 +- fastly/model/logging_newrelic_response.py | 33 +- fastly/model/logging_openstack.py | 397 ----------------- ..._of.py => logging_openstack_additional.py} | 6 +- fastly/model/logging_openstack_response.py | 84 ++-- fastly/model/logging_papertrail.py | 346 --------------- fastly/model/logging_papertrail_response.py | 33 +- fastly/model/logging_s3.py | 417 ------------------ ..._s3_all_of.py => logging_s3_additional.py} | 6 +- fastly/model/logging_s3_response.py | 84 ++-- fastly/model/logging_scalyr.py | 354 --------------- ...all_of.py => logging_scalyr_additional.py} | 6 +- fastly/model/logging_scalyr_response.py | 33 +- fastly/model/logging_sftp.py | 408 ----------------- ...p_all_of.py => logging_sftp_additional.py} | 10 +- fastly/model/logging_sftp_response.py | 105 +++-- fastly/model/logging_sftp_response_all_of.py | 265 +++++++++++ fastly/model/logging_splunk.py | 382 ---------------- ...all_of.py => logging_splunk_additional.py} | 6 +- fastly/model/logging_splunk_response.py | 39 +- fastly/model/logging_sumologic.py | 348 --------------- ..._of.py => logging_sumologic_additional.py} | 6 +- fastly/model/logging_sumologic_response.py | 33 +- fastly/model/logging_syslog.py | 392 ---------------- ...all_of.py => logging_syslog_additional.py} | 6 +- fastly/model/logging_syslog_response.py | 39 +- fastly/model/model403_forbidden.py | 276 ------------ ...rigin_inspector_realtime_entry_recorded.py | 8 +- ..._inspector_subsequent_request_timestamp.py | 8 +- .../{pool_all_of.py => pool_additional.py} | 30 +- fastly/model/pool_response.py | 116 ++--- fastly/model/pool_response_all_of.py | 9 +- fastly/model/pool_response_common.py | 274 ++++++++++++ .../model/{pool.py => pool_response_post.py} | 122 +++-- fastly/model/pool_response_post_all_of.py | 253 +++++++++++ fastly/model/read_only_service_id.py | 8 +- fastly/model/read_only_version.py | 8 +- fastly/model/recorded_timestamp.py | 8 +- ...ings.py => request_settings_additional.py} | 30 +- fastly/model/request_settings_response.py | 105 ++--- .../model/request_settings_response_all_of.py | 273 ++++++++++++ fastly/model/response_object.py | 6 +- fastly/model/response_object_response.py | 18 +- fastly/model/service_id_and_version_string.py | 259 +++++++++++ fastly/model/subsequent_request_timestamp.py | 8 +- ...n_check_item.py => tls_common_response.py} | 49 +- ...ommon.py => tls_common_response_all_of.py} | 14 +- fastly/model/tls_common_response_all_of1.py | 257 +++++++++++ .../model/tls_subscription_response_data.py | 66 +-- fastly/models/__init__.py | 105 ++--- setup.py | 2 +- sig.json | 2 +- 310 files changed, 6031 insertions(+), 11738 deletions(-) create mode 100644 docs/HeaderResponseAdditional.md delete mode 100644 docs/LoggingAzureblob.md rename docs/{LoggingAzureblobAllOf.md => LoggingAzureblobAdditional.md} (98%) delete mode 100644 docs/LoggingBigquery.md rename docs/{LoggingBigqueryAllOf.md => LoggingBigqueryAdditional.md} (97%) delete mode 100644 docs/LoggingCloudfiles.md rename docs/{LoggingCloudfilesAllOf.md => LoggingCloudfilesAdditional.md} (97%) rename docs/{LoggingSumologic.md => LoggingCommonResponse.md} (82%) rename docs/{LoggingLogshuttle.md => LoggingCommonResponseAllOf.md} (69%) create mode 100644 docs/LoggingCommonResponseAllOf1.md delete mode 100644 docs/LoggingDatadog.md rename docs/{LoggingDatadogAllOf.md => LoggingDatadogAdditional.md} (99%) delete mode 100644 docs/LoggingDigitalocean.md rename docs/{LoggingDigitaloceanAllOf.md => LoggingDigitaloceanAdditional.md} (97%) delete mode 100644 docs/LoggingElasticsearch.md rename docs/{LoggingElasticsearchAllOf.md => LoggingElasticsearchAdditional.md} (97%) delete mode 100644 docs/LoggingFormatVersion.md create mode 100644 docs/LoggingFormatVersionInteger.md create mode 100644 docs/LoggingFormatVersionString.md delete mode 100644 docs/LoggingFtp.md rename docs/{LoggingFtpAllOf.md => LoggingFtpAdditional.md} (90%) rename docs/{TlsSubscriptionResponseDataAllOf.md => LoggingFtpResponseAllOf.md} (69%) delete mode 100644 docs/LoggingGcs.md rename docs/{LoggingGcsAllOf.md => LoggingGcsAdditional.md} (97%) create mode 100644 docs/LoggingGenericCommonResponse.md create mode 100644 docs/LoggingGenericCommonResponseAllOf.md create mode 100644 docs/LoggingGenericCommonResponseAllOf1.md delete mode 100644 docs/LoggingGooglePubsub.md rename docs/{LoggingGooglePubsubAllOf.md => LoggingGooglePubsubAdditional.md} (96%) delete mode 100644 docs/LoggingHeroku.md rename docs/{LoggingHerokuAllOf.md => LoggingHerokuAdditional.md} (96%) delete mode 100644 docs/LoggingHoneycomb.md rename docs/{LoggingHoneycombAllOf.md => LoggingHoneycombAdditional.md} (96%) delete mode 100644 docs/LoggingHttps.md rename docs/{LoggingHttpsAllOf.md => LoggingHttpsAdditional.md} (98%) rename docs/{LoggingKafkaAllOf.md => LoggingKafkaAdditional.md} (98%) rename docs/{LoggingKafka.md => LoggingKafkaResponsePost.md} (88%) rename docs/{LoggingKinesis.md => LoggingKinesisAdditional.md} (95%) delete mode 100644 docs/LoggingLogentries.md rename docs/{LoggingLogentriesAllOf.md => LoggingLogentriesAdditional.md} (96%) delete mode 100644 docs/LoggingLoggly.md rename docs/{LoggingLogglyAllOf.md => LoggingLogglyAdditional.md} (96%) rename docs/{LoggingLogshuttleAllOf.md => LoggingLogshuttleAdditional.md} (95%) delete mode 100644 docs/LoggingNewrelic.md rename docs/{LoggingNewrelicAllOf.md => LoggingNewrelicAdditional.md} (98%) delete mode 100644 docs/LoggingOpenstack.md rename docs/{LoggingOpenstackAllOf.md => LoggingOpenstackAdditional.md} (97%) delete mode 100644 docs/LoggingPapertrail.md delete mode 100644 docs/LoggingS3.md rename docs/{LoggingS3AllOf.md => LoggingS3Additional.md} (99%) delete mode 100644 docs/LoggingScalyr.md rename docs/{LoggingScalyrAllOf.md => LoggingScalyrAdditional.md} (97%) delete mode 100644 docs/LoggingSftp.md rename docs/{LoggingSftpAllOf.md => LoggingSftpAdditional.md} (91%) create mode 100644 docs/LoggingSftpResponseAllOf.md delete mode 100644 docs/LoggingSplunk.md rename docs/{LoggingSplunkAllOf.md => LoggingSplunkAdditional.md} (96%) rename docs/{LoggingSumologicAllOf.md => LoggingSumologicAdditional.md} (95%) delete mode 100644 docs/LoggingSyslog.md rename docs/{LoggingSyslogAllOf.md => LoggingSyslogAdditional.md} (97%) delete mode 100644 docs/Model403Forbidden.md rename docs/{PoolAllOf.md => PoolAdditional.md} (77%) create mode 100644 docs/PoolResponseCommon.md rename docs/{Pool.md => PoolResponsePost.md} (71%) create mode 100644 docs/PoolResponsePostAllOf.md rename docs/{RequestSettings.md => RequestSettingsAdditional.md} (57%) create mode 100644 docs/RequestSettingsResponseAllOf.md rename docs/{DomainCheckItem.md => ServiceIdAndVersionString.md} (69%) create mode 100644 docs/TlsCommonResponse.md rename docs/{TlsCommon.md => TlsCommonResponseAllOf.md} (91%) create mode 100644 docs/TlsCommonResponseAllOf1.md rename fastly/model/{tls_subscription_response_data_all_of.py => header_response_additional.py} (91%) delete mode 100644 fastly/model/logging_azureblob.py rename fastly/model/{logging_azureblob_all_of.py => logging_azureblob_additional.py} (98%) delete mode 100644 fastly/model/logging_bigquery.py rename fastly/model/{logging_bigquery_all_of.py => logging_bigquery_additional.py} (98%) delete mode 100644 fastly/model/logging_cloudfiles.py rename fastly/model/{logging_cloudfiles_all_of.py => logging_cloudfiles_additional.py} (98%) rename fastly/model/{logging_loggly.py => logging_common_response.py} (92%) create mode 100644 fastly/model/logging_common_response_all_of.py create mode 100644 fastly/model/logging_common_response_all_of1.py delete mode 100644 fastly/model/logging_datadog.py rename fastly/model/{logging_datadog_all_of.py => logging_datadog_additional.py} (99%) delete mode 100644 fastly/model/logging_digitalocean.py rename fastly/model/{logging_digitalocean_all_of.py => logging_digitalocean_additional.py} (98%) delete mode 100644 fastly/model/logging_elasticsearch.py rename fastly/model/{logging_elasticsearch_all_of.py => logging_elasticsearch_additional.py} (98%) delete mode 100644 fastly/model/logging_format_version.py create mode 100644 fastly/model/logging_format_version_integer.py create mode 100644 fastly/model/logging_format_version_string.py delete mode 100644 fastly/model/logging_ftp.py rename fastly/model/{logging_ftp_all_of.py => logging_ftp_additional.py} (96%) create mode 100644 fastly/model/logging_ftp_response_all_of.py delete mode 100644 fastly/model/logging_gcs.py rename fastly/model/{logging_gcs_all_of.py => logging_gcs_additional.py} (98%) rename fastly/model/{logging_honeycomb.py => logging_generic_common_response.py} (77%) create mode 100644 fastly/model/logging_generic_common_response_all_of.py create mode 100644 fastly/model/logging_generic_common_response_all_of1.py delete mode 100644 fastly/model/logging_google_pubsub.py rename fastly/model/{logging_google_pubsub_all_of.py => logging_google_pubsub_additional.py} (98%) delete mode 100644 fastly/model/logging_heroku.py rename fastly/model/{logging_heroku_all_of.py => logging_heroku_additional.py} (98%) rename fastly/model/{logging_honeycomb_all_of.py => logging_honeycomb_additional.py} (98%) delete mode 100644 fastly/model/logging_https.py rename fastly/model/{logging_https_all_of.py => logging_https_additional.py} (98%) rename fastly/model/{logging_kafka_all_of.py => logging_kafka_additional.py} (98%) rename fastly/model/{logging_kafka.py => logging_kafka_response_post.py} (90%) rename fastly/model/{logging_kinesis.py => logging_kinesis_additional.py} (96%) delete mode 100644 fastly/model/logging_logentries.py rename fastly/model/{logging_logentries_all_of.py => logging_logentries_additional.py} (98%) rename fastly/model/{logging_loggly_all_of.py => logging_loggly_additional.py} (98%) delete mode 100644 fastly/model/logging_logshuttle.py rename fastly/model/{logging_logshuttle_all_of.py => logging_logshuttle_additional.py} (98%) delete mode 100644 fastly/model/logging_newrelic.py rename fastly/model/{logging_newrelic_all_of.py => logging_newrelic_additional.py} (98%) delete mode 100644 fastly/model/logging_openstack.py rename fastly/model/{logging_openstack_all_of.py => logging_openstack_additional.py} (98%) delete mode 100644 fastly/model/logging_papertrail.py delete mode 100644 fastly/model/logging_s3.py rename fastly/model/{logging_s3_all_of.py => logging_s3_additional.py} (99%) delete mode 100644 fastly/model/logging_scalyr.py rename fastly/model/{logging_scalyr_all_of.py => logging_scalyr_additional.py} (98%) delete mode 100644 fastly/model/logging_sftp.py rename fastly/model/{logging_sftp_all_of.py => logging_sftp_additional.py} (96%) create mode 100644 fastly/model/logging_sftp_response_all_of.py delete mode 100644 fastly/model/logging_splunk.py rename fastly/model/{logging_splunk_all_of.py => logging_splunk_additional.py} (98%) delete mode 100644 fastly/model/logging_sumologic.py rename fastly/model/{logging_sumologic_all_of.py => logging_sumologic_additional.py} (98%) delete mode 100644 fastly/model/logging_syslog.py rename fastly/model/{logging_syslog_all_of.py => logging_syslog_additional.py} (98%) delete mode 100644 fastly/model/model403_forbidden.py rename fastly/model/{pool_all_of.py => pool_additional.py} (87%) create mode 100644 fastly/model/pool_response_common.py rename fastly/model/{pool.py => pool_response_post.py} (80%) create mode 100644 fastly/model/pool_response_post_all_of.py rename fastly/model/{request_settings.py => request_settings_additional.py} (84%) create mode 100644 fastly/model/request_settings_response_all_of.py create mode 100644 fastly/model/service_id_and_version_string.py rename fastly/model/{domain_check_item.py => tls_common_response.py} (80%) rename fastly/model/{tls_common.py => tls_common_response_all_of.py} (95%) create mode 100644 fastly/model/tls_common_response_all_of1.py diff --git a/CHANGELOG.md b/CHANGELOG.md index 693f758..e752af7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,24 @@ # Changelog +## [v4.0.0](https://github.com/fastly/fastly-py/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.2](https://github.com/fastly/fastly-py/releases/tag/release/v3.0.2) (2023-07-13) **Bug fixes:** diff --git a/docs/AclEntryApi.md b/docs/AclEntryApi.md index c255fdc..07c2c28 100644 --- a/docs/AclEntryApi.md +++ b/docs/AclEntryApi.md @@ -55,7 +55,7 @@ with fastly.ApiClient(configuration) as api_client: acl_id = "6tUXdegLTf5BCig0zGFrU3" # str | Alphanumeric string identifying a ACL. bulk_update_acl_entries_request = BulkUpdateAclEntriesRequest( entries=[ - BulkUpdateAclEntry(None), + BulkUpdateAclEntry(), ], ) # BulkUpdateAclEntriesRequest | (optional) diff --git a/docs/CacheSetting.md b/docs/CacheSetting.md index d055975..bdf4009 100644 --- a/docs/CacheSetting.md +++ b/docs/CacheSetting.md @@ -7,8 +7,8 @@ Name | Type | Description | Notes **action** | **str, none_type** | 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] **cache_condition** | **str, none_type** | Name of the cache condition controlling when this configuration applies. | [optional] **name** | **str** | 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** | **str** | 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** | **str** | Maximum time to consider the object fresh in the cache (the cache 'time to live'). | [optional] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/CacheSettingResponse.md b/docs/CacheSettingResponse.md index f3efee1..e5eb1f0 100644 --- a/docs/CacheSettingResponse.md +++ b/docs/CacheSettingResponse.md @@ -7,10 +7,10 @@ Name | Type | Description | Notes **action** | **str, none_type** | 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] **cache_condition** | **str, none_type** | Name of the cache condition controlling when this configuration applies. | [optional] **name** | **str** | 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** | **str** | 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** | **str** | Maximum time to consider the object fresh in the cache (the cache 'time to live'). | [optional] **service_id** | **str** | | [optional] [readonly] -**version** | **int** | | [optional] [readonly] +**version** | **str** | | [optional] [readonly] **created_at** | **datetime, none_type** | Date and time in ISO 8601 format. | [optional] [readonly] **deleted_at** | **datetime, none_type** | Date and time in ISO 8601 format. | [optional] [readonly] **updated_at** | **datetime, none_type** | Date and time in ISO 8601 format. | [optional] [readonly] diff --git a/docs/CacheSettingsApi.md b/docs/CacheSettingsApi.md index 55013ff..8f83c42 100644 --- a/docs/CacheSettingsApi.md +++ b/docs/CacheSettingsApi.md @@ -54,8 +54,8 @@ with fastly.ApiClient(configuration) as api_client: action = "pass" # str, none_type | 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) cache_condition = "cache_condition_example" # str, none_type | Name of the cache condition controlling when this configuration applies. (optional) name = "test-cache-setting" # str | Name for the cache settings object. (optional) - stale_ttl = 1 # 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 = 1 # int | Maximum time to consider the object fresh in the cache (the cache 'time to live'). (optional) + stale_ttl = "stale_ttl_example" # str | 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 = "ttl_example" # str | Maximum time to consider the object fresh in the cache (the cache 'time to live'). (optional) # example passing only required values which don't have defaults set try: @@ -85,8 +85,8 @@ Name | Type | Description | Notes **action** | **str, none_type**| 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] **cache_condition** | **str, none_type**| Name of the cache condition controlling when this configuration applies. | [optional] **name** | **str**| 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** | **str**| 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** | **str**| Maximum time to consider the object fresh in the cache (the cache 'time to live'). | [optional] ### Return type @@ -398,8 +398,8 @@ with fastly.ApiClient(configuration) as api_client: action = "pass" # str, none_type | 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) cache_condition = "cache_condition_example" # str, none_type | Name of the cache condition controlling when this configuration applies. (optional) name = "test-cache-setting" # str | Name for the cache settings object. (optional) - stale_ttl = 1 # 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 = 1 # int | Maximum time to consider the object fresh in the cache (the cache 'time to live'). (optional) + stale_ttl = "stale_ttl_example" # str | 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 = "ttl_example" # str | Maximum time to consider the object fresh in the cache (the cache 'time to live'). (optional) # example passing only required values which don't have defaults set try: @@ -430,8 +430,8 @@ Name | Type | Description | Notes **action** | **str, none_type**| 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] **cache_condition** | **str, none_type**| Name of the cache condition controlling when this configuration applies. | [optional] **name** | **str**| 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** | **str**| 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** | **str**| Maximum time to consider the object fresh in the cache (the cache 'time to live'). | [optional] ### Return type diff --git a/docs/ConfigStoreItemApi.md b/docs/ConfigStoreItemApi.md index 177f7e5..c05f850 100644 --- a/docs/ConfigStoreItemApi.md +++ b/docs/ConfigStoreItemApi.md @@ -55,7 +55,7 @@ with fastly.ApiClient(configuration) as api_client: config_store_id = "7Lsb7Y76rChV9hSrv3KgFl" # str | An alphanumeric string identifying the config store. bulk_update_config_store_list_request = BulkUpdateConfigStoreListRequest( items=[ - BulkUpdateConfigStoreItem(None), + BulkUpdateConfigStoreItem(), ], ) # BulkUpdateConfigStoreListRequest | (optional) diff --git a/docs/DictionaryItemApi.md b/docs/DictionaryItemApi.md index a8382ea..4e64970 100644 --- a/docs/DictionaryItemApi.md +++ b/docs/DictionaryItemApi.md @@ -56,7 +56,7 @@ with fastly.ApiClient(configuration) as api_client: dictionary_id = "3vjTN8v1O7nOAY7aNDGOL" # str | Alphanumeric string identifying a Dictionary. bulk_update_dictionary_list_request = BulkUpdateDictionaryListRequest( items=[ - BulkUpdateDictionaryItem(None), + BulkUpdateDictionaryItem(), ], ) # BulkUpdateDictionaryListRequest | (optional) diff --git a/docs/DomainCheckResponse.md b/docs/DomainCheckResponse.md index 91d5417..91cd237 100644 --- a/docs/DomainCheckResponse.md +++ b/docs/DomainCheckResponse.md @@ -4,7 +4,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**value** | [**[DomainCheckItem]**](DomainCheckItem.md) | | +**value** | **[bool, date, datetime, dict, float, int, list, str, none_type]** | | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/GzipResponse.md b/docs/GzipResponse.md index 14b7dae..fab2939 100644 --- a/docs/GzipResponse.md +++ b/docs/GzipResponse.md @@ -9,7 +9,7 @@ Name | Type | Description | Notes **extensions** | **str, none_type** | Space-separated list of file extensions to compress. If you omit this field a default list will be used. | [optional] **name** | **str** | Name of the gzip configuration. | [optional] **service_id** | **str** | | [optional] [readonly] -**version** | **int** | | [optional] [readonly] +**version** | **str** | | [optional] [readonly] **created_at** | **datetime, none_type** | Date and time in ISO 8601 format. | [optional] [readonly] **deleted_at** | **datetime, none_type** | Date and time in ISO 8601 format. | [optional] [readonly] **updated_at** | **datetime, none_type** | Date and time in ISO 8601 format. | [optional] [readonly] diff --git a/docs/Header.md b/docs/Header.md index 32425ed..175a3ef 100644 --- a/docs/Header.md +++ b/docs/Header.md @@ -7,9 +7,7 @@ Name | Type | Description | Notes **action** | **str** | Accepts a string value. | [optional] **cache_condition** | **str, none_type** | Name of the cache condition controlling when this configuration applies. | [optional] **dst** | **str** | 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** | **str** | A handle to refer to this Header object. | [optional] -**priority** | **int** | Priority determines execution order. Lower numbers execute first. | [optional] if omitted the server will use the default value of 100 **regex** | **str, none_type** | Regular expression to use. Only applies to `regex` and `regex_repeat` actions. | [optional] **request_condition** | **str, none_type** | Condition which, if met, will select this configuration during a request. Optional. | [optional] **response_condition** | **str, none_type** | Optional name of a response condition to apply. | [optional] diff --git a/docs/HeaderApi.md b/docs/HeaderApi.md index 011bf88..9aed430 100644 --- a/docs/HeaderApi.md +++ b/docs/HeaderApi.md @@ -54,15 +54,15 @@ with fastly.ApiClient(configuration) as api_client: action = "set" # str | Accepts a string value. (optional) cache_condition = "cache_condition_example" # str, none_type | Name of the cache condition controlling when this configuration applies. (optional) dst = "dst_example" # str | Header to set. (optional) - ignore_if_set = 1 # int | Don't add the header if it is added already. Only applies to 'set' action. (optional) name = "test-header" # str | A handle to refer to this Header object. (optional) - priority = 100 # int | Priority determines execution order. Lower numbers execute first. (optional) if omitted the server will use the default value of 100 regex = "regex_example" # str, none_type | Regular expression to use. Only applies to `regex` and `regex_repeat` actions. (optional) request_condition = "request_condition_example" # str, none_type | Condition which, if met, will select this configuration during a request. Optional. (optional) response_condition = "response_condition_example" # str, none_type | Optional name of a response condition to apply. (optional) src = "src_example" # str, none_type | Variable to be used as a source for the header content. Does not apply to `delete` action. (optional) substitution = "substitution_example" # str, none_type | Value to substitute in place of regular expression. Only applies to `regex` and `regex_repeat` actions. (optional) type = "request" # str | Accepts a string value. (optional) + ignore_if_set = 1 # int | Don't add the header if it is added already. Only applies to 'set' action. (optional) + priority = 100 # int | Priority determines execution order. Lower numbers execute first. (optional) if omitted the server will use the default value of 100 # example passing only required values which don't have defaults set try: @@ -76,7 +76,7 @@ with fastly.ApiClient(configuration) as api_client: # and optional values try: # Create a Header object - api_response = api_instance.create_header_object(service_id, version_id, 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) + api_response = api_instance.create_header_object(service_id, version_id, action=action, cache_condition=cache_condition, dst=dst, name=name, regex=regex, request_condition=request_condition, response_condition=response_condition, src=src, substitution=substitution, type=type, ignore_if_set=ignore_if_set, priority=priority) pprint(api_response) except fastly.ApiException as e: print("Exception when calling HeaderApi->create_header_object: %s\n" % e) @@ -92,15 +92,15 @@ Name | Type | Description | Notes **action** | **str**| Accepts a string value. | [optional] **cache_condition** | **str, none_type**| Name of the cache condition controlling when this configuration applies. | [optional] **dst** | **str**| 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** | **str**| A handle to refer to this Header object. | [optional] - **priority** | **int**| Priority determines execution order. Lower numbers execute first. | [optional] if omitted the server will use the default value of 100 **regex** | **str, none_type**| Regular expression to use. Only applies to `regex` and `regex_repeat` actions. | [optional] **request_condition** | **str, none_type**| Condition which, if met, will select this configuration during a request. Optional. | [optional] **response_condition** | **str, none_type**| Optional name of a response condition to apply. | [optional] **src** | **str, none_type**| Variable to be used as a source for the header content. Does not apply to `delete` action. | [optional] **substitution** | **str, none_type**| Value to substitute in place of regular expression. Only applies to `regex` and `regex_repeat` actions. | [optional] **type** | **str**| Accepts a string value. | [optional] + **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] if omitted the server will use the default value of 100 ### Return type @@ -412,15 +412,15 @@ with fastly.ApiClient(configuration) as api_client: action = "set" # str | Accepts a string value. (optional) cache_condition = "cache_condition_example" # str, none_type | Name of the cache condition controlling when this configuration applies. (optional) dst = "dst_example" # str | Header to set. (optional) - ignore_if_set = 1 # int | Don't add the header if it is added already. Only applies to 'set' action. (optional) name = "test-header" # str | A handle to refer to this Header object. (optional) - priority = 100 # int | Priority determines execution order. Lower numbers execute first. (optional) if omitted the server will use the default value of 100 regex = "regex_example" # str, none_type | Regular expression to use. Only applies to `regex` and `regex_repeat` actions. (optional) request_condition = "request_condition_example" # str, none_type | Condition which, if met, will select this configuration during a request. Optional. (optional) response_condition = "response_condition_example" # str, none_type | Optional name of a response condition to apply. (optional) src = "src_example" # str, none_type | Variable to be used as a source for the header content. Does not apply to `delete` action. (optional) substitution = "substitution_example" # str, none_type | Value to substitute in place of regular expression. Only applies to `regex` and `regex_repeat` actions. (optional) type = "request" # str | Accepts a string value. (optional) + ignore_if_set = 1 # int | Don't add the header if it is added already. Only applies to 'set' action. (optional) + priority = 100 # int | Priority determines execution order. Lower numbers execute first. (optional) if omitted the server will use the default value of 100 # example passing only required values which don't have defaults set try: @@ -434,7 +434,7 @@ with fastly.ApiClient(configuration) as api_client: # and optional values try: # Update a Header object - api_response = api_instance.update_header_object(service_id, version_id, header_name, 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) + api_response = api_instance.update_header_object(service_id, version_id, header_name, action=action, cache_condition=cache_condition, dst=dst, name=name, regex=regex, request_condition=request_condition, response_condition=response_condition, src=src, substitution=substitution, type=type, ignore_if_set=ignore_if_set, priority=priority) pprint(api_response) except fastly.ApiException as e: print("Exception when calling HeaderApi->update_header_object: %s\n" % e) @@ -451,15 +451,15 @@ Name | Type | Description | Notes **action** | **str**| Accepts a string value. | [optional] **cache_condition** | **str, none_type**| Name of the cache condition controlling when this configuration applies. | [optional] **dst** | **str**| 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** | **str**| A handle to refer to this Header object. | [optional] - **priority** | **int**| Priority determines execution order. Lower numbers execute first. | [optional] if omitted the server will use the default value of 100 **regex** | **str, none_type**| Regular expression to use. Only applies to `regex` and `regex_repeat` actions. | [optional] **request_condition** | **str, none_type**| Condition which, if met, will select this configuration during a request. Optional. | [optional] **response_condition** | **str, none_type**| Optional name of a response condition to apply. | [optional] **src** | **str, none_type**| Variable to be used as a source for the header content. Does not apply to `delete` action. | [optional] **substitution** | **str, none_type**| Value to substitute in place of regular expression. Only applies to `regex` and `regex_repeat` actions. | [optional] **type** | **str**| Accepts a string value. | [optional] + **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] if omitted the server will use the default value of 100 ### Return type diff --git a/docs/HeaderResponse.md b/docs/HeaderResponse.md index 6a3a011..8c24c85 100644 --- a/docs/HeaderResponse.md +++ b/docs/HeaderResponse.md @@ -7,17 +7,17 @@ Name | Type | Description | Notes **action** | **str** | Accepts a string value. | [optional] **cache_condition** | **str, none_type** | Name of the cache condition controlling when this configuration applies. | [optional] **dst** | **str** | 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** | **str** | A handle to refer to this Header object. | [optional] -**priority** | **int** | Priority determines execution order. Lower numbers execute first. | [optional] if omitted the server will use the default value of 100 **regex** | **str, none_type** | Regular expression to use. Only applies to `regex` and `regex_repeat` actions. | [optional] **request_condition** | **str, none_type** | Condition which, if met, will select this configuration during a request. Optional. | [optional] **response_condition** | **str, none_type** | Optional name of a response condition to apply. | [optional] **src** | **str, none_type** | Variable to be used as a source for the header content. Does not apply to `delete` action. | [optional] **substitution** | **str, none_type** | Value to substitute in place of regular expression. Only applies to `regex` and `regex_repeat` actions. | [optional] **type** | **str** | Accepts a string value. | [optional] +**ignore_if_set** | **str** | Don't add the header if it is added already. Only applies to 'set' action. Numerical value (\"0\" = false, \"1\" = true) | [optional] +**priority** | **str** | Priority determines execution order. Lower numbers execute first. | [optional] if omitted the server will use the default value of "100" **service_id** | **str** | | [optional] [readonly] -**version** | **int** | | [optional] [readonly] +**version** | **str** | | [optional] [readonly] **created_at** | **datetime, none_type** | Date and time in ISO 8601 format. | [optional] [readonly] **deleted_at** | **datetime, none_type** | Date and time in ISO 8601 format. | [optional] [readonly] **updated_at** | **datetime, none_type** | Date and time in ISO 8601 format. | [optional] [readonly] diff --git a/docs/HeaderResponseAdditional.md b/docs/HeaderResponseAdditional.md new file mode 100644 index 0000000..5c3f194 --- /dev/null +++ b/docs/HeaderResponseAdditional.md @@ -0,0 +1,13 @@ +# HeaderResponseAdditional + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ignore_if_set** | **str** | Don't add the header if it is added already. Only applies to 'set' action. Numerical value (\"0\" = false, \"1\" = true) | [optional] +**priority** | **str** | Priority determines execution order. Lower numbers execute first. | [optional] if omitted the server will use the default value of "100" +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/LoggingAzureblob.md b/docs/LoggingAzureblob.md deleted file mode 100644 index 2aa1749..0000000 --- a/docs/LoggingAzureblob.md +++ /dev/null @@ -1,27 +0,0 @@ -# LoggingAzureblob - - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **str** | The name for the real-time logging configuration. | [optional] -**placement** | **str, none_type** | Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. | [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] if omitted the server will use the default value of 2 -**response_condition** | **str, none_type** | The name of an existing condition in the configured endpoint, or leave blank to always execute. | [optional] -**format** | **str** | A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). | [optional] if omitted the server will use the default value of "%h %l %u %t "%r" %>s %b" -**message_type** | **str** | How the message should be formatted. | [optional] if omitted the server will use the default value of "classic" -**timestamp_format** | **str, none_type** | A timestamp format | [optional] [readonly] -**period** | **int** | How frequently log files are finalized so they can be available for reading (in seconds). | [optional] if omitted the server will use the default value of 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] if omitted the server will use the default value of 0 -**compression_codec** | **str** | The codec used for compressing your logs. 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] -**path** | **str, none_type** | The path to upload logs to. | [optional] if omitted the server will use the default value of "null" -**account_name** | **str** | The unique Azure Blob Storage namespace in which your data objects are stored. Required. | [optional] -**container** | **str** | The name of the Azure Blob Storage container in which to store logs. Required. | [optional] -**sas_token** | **str** | 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** | **str, none_type** | A PGP public key that Fastly will use to encrypt your log files before writing them to disk. | [optional] if omitted the server will use the default value of "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] -**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/LoggingAzureblobAllOf.md b/docs/LoggingAzureblobAdditional.md similarity index 98% rename from docs/LoggingAzureblobAllOf.md rename to docs/LoggingAzureblobAdditional.md index 071010c..496f117 100644 --- a/docs/LoggingAzureblobAllOf.md +++ b/docs/LoggingAzureblobAdditional.md @@ -1,4 +1,4 @@ -# LoggingAzureblobAllOf +# LoggingAzureblobAdditional ## Properties diff --git a/docs/LoggingAzureblobApi.md b/docs/LoggingAzureblobApi.md index 8b59afd..3b5adf2 100644 --- a/docs/LoggingAzureblobApi.md +++ b/docs/LoggingAzureblobApi.md @@ -53,14 +53,14 @@ with fastly.ApiClient(configuration) as api_client: version_id = 1 # int | Integer identifying a service version. name = "test-log-endpoint" # str | The name for the real-time logging configuration. (optional) placement = "none" # str, none_type | Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. (optional) - 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`. (optional) if omitted the server will use the default value of 2 response_condition = "response_condition_example" # str, none_type | The name of an existing condition in the configured endpoint, or leave blank to always execute. (optional) format = "%h %l %u %t "%r" %>s %b" # str | A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). (optional) if omitted the server will use the default value of "%h %l %u %t "%r" %>s %b" + 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`. (optional) if omitted the server will use the default value of 2 message_type = "classic" # str | How the message should be formatted. (optional) if omitted the server will use the default value of "classic" timestamp_format = "%Y-%m-%dT%H:%M:%S.000" # str, none_type | A timestamp format (optional) + compression_codec = "zstd" # str | The codec used for compressing your logs. 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) period = 3600 # int | How frequently log files are finalized so they can be available for reading (in seconds). (optional) if omitted the server will use the default value of 3600 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. (optional) if omitted the server will use the default value of 0 - compression_codec = "zstd" # str | The codec used for compressing your logs. 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) path = "null" # str, none_type | The path to upload logs to. (optional) if omitted the server will use the default value of "null" account_name = "account_name_example" # str | The unique Azure Blob Storage namespace in which your data objects are stored. Required. (optional) container = "container_example" # str | The name of the Azure Blob Storage container in which to store logs. Required. (optional) @@ -83,7 +83,7 @@ with fastly.ApiClient(configuration) as api_client: # and optional values try: # Create an Azure Blob Storage log endpoint - api_response = api_instance.create_log_azure(service_id, version_id, 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) + api_response = api_instance.create_log_azure(service_id, version_id, name=name, placement=placement, 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, path=path, account_name=account_name, container=container, sas_token=sas_token, public_key=public_key, file_max_bytes=file_max_bytes) pprint(api_response) except fastly.ApiException as e: print("Exception when calling LoggingAzureblobApi->create_log_azure: %s\n" % e) @@ -98,14 +98,14 @@ Name | Type | Description | Notes **version_id** | **int**| Integer identifying a service version. | **name** | **str**| The name for the real-time logging configuration. | [optional] **placement** | **str, none_type**| Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. | [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] if omitted the server will use the default value of 2 **response_condition** | **str, none_type**| The name of an existing condition in the configured endpoint, or leave blank to always execute. | [optional] **format** | **str**| A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). | [optional] if omitted the server will use the default value of "%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] if omitted the server will use the default value of 2 **message_type** | **str**| How the message should be formatted. | [optional] if omitted the server will use the default value of "classic" **timestamp_format** | **str, none_type**| A timestamp format | [optional] + **compression_codec** | **str**| The codec used for compressing your logs. 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] **period** | **int**| How frequently log files are finalized so they can be available for reading (in seconds). | [optional] if omitted the server will use the default value of 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] if omitted the server will use the default value of 0 - **compression_codec** | **str**| The codec used for compressing your logs. 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] **path** | **str, none_type**| The path to upload logs to. | [optional] if omitted the server will use the default value of "null" **account_name** | **str**| The unique Azure Blob Storage namespace in which your data objects are stored. Required. | [optional] **container** | **str**| The name of the Azure Blob Storage container in which to store logs. Required. | [optional] @@ -422,14 +422,14 @@ with fastly.ApiClient(configuration) as api_client: logging_azureblob_name = "test-log-endpoint" # str | The name for the real-time logging configuration. name = "test-log-endpoint" # str | The name for the real-time logging configuration. (optional) placement = "none" # str, none_type | Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. (optional) - 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`. (optional) if omitted the server will use the default value of 2 response_condition = "response_condition_example" # str, none_type | The name of an existing condition in the configured endpoint, or leave blank to always execute. (optional) format = "%h %l %u %t "%r" %>s %b" # str | A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). (optional) if omitted the server will use the default value of "%h %l %u %t "%r" %>s %b" + 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`. (optional) if omitted the server will use the default value of 2 message_type = "classic" # str | How the message should be formatted. (optional) if omitted the server will use the default value of "classic" timestamp_format = "%Y-%m-%dT%H:%M:%S.000" # str, none_type | A timestamp format (optional) + compression_codec = "zstd" # str | The codec used for compressing your logs. 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) period = 3600 # int | How frequently log files are finalized so they can be available for reading (in seconds). (optional) if omitted the server will use the default value of 3600 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. (optional) if omitted the server will use the default value of 0 - compression_codec = "zstd" # str | The codec used for compressing your logs. 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) path = "null" # str, none_type | The path to upload logs to. (optional) if omitted the server will use the default value of "null" account_name = "account_name_example" # str | The unique Azure Blob Storage namespace in which your data objects are stored. Required. (optional) container = "container_example" # str | The name of the Azure Blob Storage container in which to store logs. Required. (optional) @@ -452,7 +452,7 @@ with fastly.ApiClient(configuration) as api_client: # and optional values try: # Update an Azure Blob Storage log endpoint - api_response = api_instance.update_log_azure(service_id, version_id, logging_azureblob_name, 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) + api_response = api_instance.update_log_azure(service_id, version_id, logging_azureblob_name, name=name, placement=placement, 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, path=path, account_name=account_name, container=container, sas_token=sas_token, public_key=public_key, file_max_bytes=file_max_bytes) pprint(api_response) except fastly.ApiException as e: print("Exception when calling LoggingAzureblobApi->update_log_azure: %s\n" % e) @@ -468,14 +468,14 @@ Name | Type | Description | Notes **logging_azureblob_name** | **str**| The name for the real-time logging configuration. | **name** | **str**| The name for the real-time logging configuration. | [optional] **placement** | **str, none_type**| Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. | [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] if omitted the server will use the default value of 2 **response_condition** | **str, none_type**| The name of an existing condition in the configured endpoint, or leave blank to always execute. | [optional] **format** | **str**| A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). | [optional] if omitted the server will use the default value of "%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] if omitted the server will use the default value of 2 **message_type** | **str**| How the message should be formatted. | [optional] if omitted the server will use the default value of "classic" **timestamp_format** | **str, none_type**| A timestamp format | [optional] + **compression_codec** | **str**| The codec used for compressing your logs. 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] **period** | **int**| How frequently log files are finalized so they can be available for reading (in seconds). | [optional] if omitted the server will use the default value of 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] if omitted the server will use the default value of 0 - **compression_codec** | **str**| The codec used for compressing your logs. 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] **path** | **str, none_type**| The path to upload logs to. | [optional] if omitted the server will use the default value of "null" **account_name** | **str**| The unique Azure Blob Storage namespace in which your data objects are stored. Required. | [optional] **container** | **str**| The name of the Azure Blob Storage container in which to store logs. Required. | [optional] diff --git a/docs/LoggingAzureblobResponse.md b/docs/LoggingAzureblobResponse.md index 5a8f899..1bc68bc 100644 --- a/docs/LoggingAzureblobResponse.md +++ b/docs/LoggingAzureblobResponse.md @@ -6,25 +6,25 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **name** | **str** | The name for the real-time logging configuration. | [optional] **placement** | **str, none_type** | Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. | [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] if omitted the server will use the default value of 2 **response_condition** | **str, none_type** | The name of an existing condition in the configured endpoint, or leave blank to always execute. | [optional] **format** | **str** | A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). | [optional] if omitted the server will use the default value of "%h %l %u %t "%r" %>s %b" +**format_version** | **str** | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. | [optional] if omitted the server will use the default value of "2" **message_type** | **str** | How the message should be formatted. | [optional] if omitted the server will use the default value of "classic" **timestamp_format** | **str, none_type** | A timestamp format | [optional] [readonly] -**period** | **int** | How frequently log files are finalized so they can be available for reading (in seconds). | [optional] if omitted the server will use the default value of 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] if omitted the server will use the default value of 0 **compression_codec** | **str** | The codec used for compressing your logs. 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] +**period** | **str** | How frequently log files are finalized so they can be available for reading (in seconds). | [optional] if omitted the server will use the default value of "3600" +**gzip_level** | **str** | 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] if omitted the server will use the default value of "0" +**created_at** | **datetime, none_type** | Date and time in ISO 8601 format. | [optional] [readonly] +**deleted_at** | **datetime, none_type** | Date and time in ISO 8601 format. | [optional] [readonly] +**updated_at** | **datetime, none_type** | Date and time in ISO 8601 format. | [optional] [readonly] +**service_id** | **str** | | [optional] [readonly] +**version** | **str** | | [optional] [readonly] **path** | **str, none_type** | The path to upload logs to. | [optional] if omitted the server will use the default value of "null" **account_name** | **str** | The unique Azure Blob Storage namespace in which your data objects are stored. Required. | [optional] **container** | **str** | The name of the Azure Blob Storage container in which to store logs. Required. | [optional] **sas_token** | **str** | 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** | **str, none_type** | A PGP public key that Fastly will use to encrypt your log files before writing them to disk. | [optional] if omitted the server will use the default value of "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, none_type** | Date and time in ISO 8601 format. | [optional] [readonly] -**deleted_at** | **datetime, none_type** | Date and time in ISO 8601 format. | [optional] [readonly] -**updated_at** | **datetime, none_type** | Date and time in ISO 8601 format. | [optional] [readonly] -**service_id** | **str** | | [optional] [readonly] -**version** | **int** | | [optional] [readonly] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/LoggingBigquery.md b/docs/LoggingBigquery.md deleted file mode 100644 index 96525dc..0000000 --- a/docs/LoggingBigquery.md +++ /dev/null @@ -1,23 +0,0 @@ -# LoggingBigquery - - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **str** | The name of the BigQuery logging object. Used as a primary key for API access. | [optional] -**placement** | **str, none_type** | Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. | [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] if omitted the server will use the default value of 2 -**response_condition** | **str, none_type** | The name of an existing condition in the configured endpoint, or leave blank to always execute. | [optional] -**format** | **str** | 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** | **str** | 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** | **str** | 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** | **str** | 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** | **str** | Your BigQuery dataset. | [optional] -**table** | **str** | Your BigQuery table. | [optional] -**template_suffix** | **str, none_type** | BigQuery table name suffix template. Optional. | [optional] -**project_id** | **str** | Your Google Cloud Platform project ID. Required | [optional] -**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/LoggingBigqueryAllOf.md b/docs/LoggingBigqueryAdditional.md similarity index 97% rename from docs/LoggingBigqueryAllOf.md rename to docs/LoggingBigqueryAdditional.md index 710a262..8994bf8 100644 --- a/docs/LoggingBigqueryAllOf.md +++ b/docs/LoggingBigqueryAdditional.md @@ -1,4 +1,4 @@ -# LoggingBigqueryAllOf +# LoggingBigqueryAdditional ## Properties diff --git a/docs/LoggingBigqueryApi.md b/docs/LoggingBigqueryApi.md index 413759b..6d6c7ba 100644 --- a/docs/LoggingBigqueryApi.md +++ b/docs/LoggingBigqueryApi.md @@ -53,9 +53,9 @@ with fastly.ApiClient(configuration) as api_client: version_id = 1 # int | Integer identifying a service version. name = "name_example" # str | The name of the BigQuery logging object. Used as a primary key for API access. (optional) placement = "none" # str, none_type | Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. (optional) - 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`. (optional) if omitted the server will use the default value of 2 response_condition = "response_condition_example" # str, none_type | The name of an existing condition in the configured endpoint, or leave blank to always execute. (optional) format = "format_example" # str | 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 = 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`. (optional) if omitted the server will use the default value of 2 user = "test-user@test-project-id.iam.gserviceaccount.com" # str | 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 = '''-----BEGIN PRIVATE KEY----- ... @@ -79,7 +79,7 @@ with fastly.ApiClient(configuration) as api_client: # and optional values try: # Create a BigQuery log endpoint - api_response = api_instance.create_log_bigquery(service_id, version_id, 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) + api_response = api_instance.create_log_bigquery(service_id, version_id, name=name, placement=placement, response_condition=response_condition, format=format, format_version=format_version, user=user, secret_key=secret_key, account_name=account_name, dataset=dataset, table=table, template_suffix=template_suffix, project_id=project_id) pprint(api_response) except fastly.ApiException as e: print("Exception when calling LoggingBigqueryApi->create_log_bigquery: %s\n" % e) @@ -94,9 +94,9 @@ Name | Type | Description | Notes **version_id** | **int**| Integer identifying a service version. | **name** | **str**| The name of the BigQuery logging object. Used as a primary key for API access. | [optional] **placement** | **str, none_type**| Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. | [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] if omitted the server will use the default value of 2 **response_condition** | **str, none_type**| The name of an existing condition in the configured endpoint, or leave blank to always execute. | [optional] **format** | **str**| 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] if omitted the server will use the default value of 2 **user** | **str**| 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** | **str**| 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** | **str**| 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] @@ -414,9 +414,9 @@ with fastly.ApiClient(configuration) as api_client: logging_bigquery_name = "test-log-endpoint" # str | The name for the real-time logging configuration. name = "name_example" # str | The name of the BigQuery logging object. Used as a primary key for API access. (optional) placement = "none" # str, none_type | Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. (optional) - 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`. (optional) if omitted the server will use the default value of 2 response_condition = "response_condition_example" # str, none_type | The name of an existing condition in the configured endpoint, or leave blank to always execute. (optional) format = "format_example" # str | 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 = 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`. (optional) if omitted the server will use the default value of 2 user = "test-user@test-project-id.iam.gserviceaccount.com" # str | 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 = '''-----BEGIN PRIVATE KEY----- ... @@ -440,7 +440,7 @@ with fastly.ApiClient(configuration) as api_client: # and optional values try: # Update a BigQuery log endpoint - api_response = api_instance.update_log_bigquery(service_id, version_id, logging_bigquery_name, 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) + api_response = api_instance.update_log_bigquery(service_id, version_id, logging_bigquery_name, name=name, placement=placement, response_condition=response_condition, format=format, format_version=format_version, user=user, secret_key=secret_key, account_name=account_name, dataset=dataset, table=table, template_suffix=template_suffix, project_id=project_id) pprint(api_response) except fastly.ApiException as e: print("Exception when calling LoggingBigqueryApi->update_log_bigquery: %s\n" % e) @@ -456,9 +456,9 @@ Name | Type | Description | Notes **logging_bigquery_name** | **str**| The name for the real-time logging configuration. | **name** | **str**| The name of the BigQuery logging object. Used as a primary key for API access. | [optional] **placement** | **str, none_type**| Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. | [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] if omitted the server will use the default value of 2 **response_condition** | **str, none_type**| The name of an existing condition in the configured endpoint, or leave blank to always execute. | [optional] **format** | **str**| 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] if omitted the server will use the default value of 2 **user** | **str**| 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** | **str**| 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** | **str**| 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/LoggingBigqueryResponse.md b/docs/LoggingBigqueryResponse.md index d56ea2a..bf1a290 100644 --- a/docs/LoggingBigqueryResponse.md +++ b/docs/LoggingBigqueryResponse.md @@ -6,9 +6,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **name** | **str** | The name of the BigQuery logging object. Used as a primary key for API access. | [optional] **placement** | **str, none_type** | Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. | [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] if omitted the server will use the default value of 2 **response_condition** | **str, none_type** | The name of an existing condition in the configured endpoint, or leave blank to always execute. | [optional] **format** | **str** | 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** | **str** | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. | [optional] if omitted the server will use the default value of "2" **user** | **str** | 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** | **str** | 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** | **str** | 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, none_type** | Date and time in ISO 8601 format. | [optional] [readonly] **updated_at** | **datetime, none_type** | Date and time in ISO 8601 format. | [optional] [readonly] **service_id** | **str** | | [optional] [readonly] -**version** | **int** | | [optional] [readonly] +**version** | **str** | | [optional] [readonly] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/LoggingCloudfiles.md b/docs/LoggingCloudfiles.md deleted file mode 100644 index 2b5bb86..0000000 --- a/docs/LoggingCloudfiles.md +++ /dev/null @@ -1,27 +0,0 @@ -# LoggingCloudfiles - - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **str** | The name for the real-time logging configuration. | [optional] -**placement** | **str, none_type** | Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. | [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] if omitted the server will use the default value of 2 -**response_condition** | **str, none_type** | The name of an existing condition in the configured endpoint, or leave blank to always execute. | [optional] -**format** | **str** | A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). | [optional] if omitted the server will use the default value of "%h %l %u %t "%r" %>s %b" -**message_type** | **str** | How the message should be formatted. | [optional] if omitted the server will use the default value of "classic" -**timestamp_format** | **str, none_type** | A timestamp format | [optional] [readonly] -**period** | **int** | How frequently log files are finalized so they can be available for reading (in seconds). | [optional] if omitted the server will use the default value of 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] if omitted the server will use the default value of 0 -**compression_codec** | **str** | The codec used for compressing your logs. 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] -**access_key** | **str** | Your Cloud Files account access key. | [optional] -**bucket_name** | **str** | The name of your Cloud Files container. | [optional] -**path** | **str, none_type** | The path to upload logs to. | [optional] if omitted the server will use the default value of "null" -**region** | **str, none_type** | The region to stream logs to. | [optional] -**public_key** | **str, none_type** | A PGP public key that Fastly will use to encrypt your log files before writing them to disk. | [optional] if omitted the server will use the default value of "null" -**user** | **str** | The username for your Cloud Files account. | [optional] -**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/LoggingCloudfilesAllOf.md b/docs/LoggingCloudfilesAdditional.md similarity index 97% rename from docs/LoggingCloudfilesAllOf.md rename to docs/LoggingCloudfilesAdditional.md index beb82ef..73aaf89 100644 --- a/docs/LoggingCloudfilesAllOf.md +++ b/docs/LoggingCloudfilesAdditional.md @@ -1,4 +1,4 @@ -# LoggingCloudfilesAllOf +# LoggingCloudfilesAdditional ## Properties diff --git a/docs/LoggingCloudfilesApi.md b/docs/LoggingCloudfilesApi.md index d10a50f..2574076 100644 --- a/docs/LoggingCloudfilesApi.md +++ b/docs/LoggingCloudfilesApi.md @@ -53,14 +53,14 @@ with fastly.ApiClient(configuration) as api_client: version_id = 1 # int | Integer identifying a service version. name = "test-log-endpoint" # str | The name for the real-time logging configuration. (optional) placement = "none" # str, none_type | Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. (optional) - 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`. (optional) if omitted the server will use the default value of 2 response_condition = "response_condition_example" # str, none_type | The name of an existing condition in the configured endpoint, or leave blank to always execute. (optional) format = "%h %l %u %t "%r" %>s %b" # str | A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). (optional) if omitted the server will use the default value of "%h %l %u %t "%r" %>s %b" + 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`. (optional) if omitted the server will use the default value of 2 message_type = "classic" # str | How the message should be formatted. (optional) if omitted the server will use the default value of "classic" timestamp_format = "%Y-%m-%dT%H:%M:%S.000" # str, none_type | A timestamp format (optional) + compression_codec = "zstd" # str | The codec used for compressing your logs. 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) period = 3600 # int | How frequently log files are finalized so they can be available for reading (in seconds). (optional) if omitted the server will use the default value of 3600 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. (optional) if omitted the server will use the default value of 0 - compression_codec = "zstd" # str | The codec used for compressing your logs. 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) access_key = "access_key_example" # str | Your Cloud Files account access key. (optional) bucket_name = "bucket_name_example" # str | The name of your Cloud Files container. (optional) path = "null" # str, none_type | The path to upload logs to. (optional) if omitted the server will use the default value of "null" @@ -83,7 +83,7 @@ with fastly.ApiClient(configuration) as api_client: # and optional values try: # Create a Cloud Files log endpoint - api_response = api_instance.create_log_cloudfiles(service_id, version_id, 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) + api_response = api_instance.create_log_cloudfiles(service_id, version_id, name=name, placement=placement, 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, access_key=access_key, bucket_name=bucket_name, path=path, region=region, public_key=public_key, user=user) pprint(api_response) except fastly.ApiException as e: print("Exception when calling LoggingCloudfilesApi->create_log_cloudfiles: %s\n" % e) @@ -98,14 +98,14 @@ Name | Type | Description | Notes **version_id** | **int**| Integer identifying a service version. | **name** | **str**| The name for the real-time logging configuration. | [optional] **placement** | **str, none_type**| Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. | [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] if omitted the server will use the default value of 2 **response_condition** | **str, none_type**| The name of an existing condition in the configured endpoint, or leave blank to always execute. | [optional] **format** | **str**| A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). | [optional] if omitted the server will use the default value of "%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] if omitted the server will use the default value of 2 **message_type** | **str**| How the message should be formatted. | [optional] if omitted the server will use the default value of "classic" **timestamp_format** | **str, none_type**| A timestamp format | [optional] + **compression_codec** | **str**| The codec used for compressing your logs. 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] **period** | **int**| How frequently log files are finalized so they can be available for reading (in seconds). | [optional] if omitted the server will use the default value of 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] if omitted the server will use the default value of 0 - **compression_codec** | **str**| The codec used for compressing your logs. 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] **access_key** | **str**| Your Cloud Files account access key. | [optional] **bucket_name** | **str**| The name of your Cloud Files container. | [optional] **path** | **str, none_type**| The path to upload logs to. | [optional] if omitted the server will use the default value of "null" @@ -422,14 +422,14 @@ with fastly.ApiClient(configuration) as api_client: logging_cloudfiles_name = "test-log-endpoint" # str | The name for the real-time logging configuration. name = "test-log-endpoint" # str | The name for the real-time logging configuration. (optional) placement = "none" # str, none_type | Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. (optional) - 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`. (optional) if omitted the server will use the default value of 2 response_condition = "response_condition_example" # str, none_type | The name of an existing condition in the configured endpoint, or leave blank to always execute. (optional) format = "%h %l %u %t "%r" %>s %b" # str | A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). (optional) if omitted the server will use the default value of "%h %l %u %t "%r" %>s %b" + 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`. (optional) if omitted the server will use the default value of 2 message_type = "classic" # str | How the message should be formatted. (optional) if omitted the server will use the default value of "classic" timestamp_format = "%Y-%m-%dT%H:%M:%S.000" # str, none_type | A timestamp format (optional) + compression_codec = "zstd" # str | The codec used for compressing your logs. 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) period = 3600 # int | How frequently log files are finalized so they can be available for reading (in seconds). (optional) if omitted the server will use the default value of 3600 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. (optional) if omitted the server will use the default value of 0 - compression_codec = "zstd" # str | The codec used for compressing your logs. 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) access_key = "access_key_example" # str | Your Cloud Files account access key. (optional) bucket_name = "bucket_name_example" # str | The name of your Cloud Files container. (optional) path = "null" # str, none_type | The path to upload logs to. (optional) if omitted the server will use the default value of "null" @@ -452,7 +452,7 @@ with fastly.ApiClient(configuration) as api_client: # and optional values try: # Update the Cloud Files log endpoint - api_response = api_instance.update_log_cloudfiles(service_id, version_id, logging_cloudfiles_name, 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) + api_response = api_instance.update_log_cloudfiles(service_id, version_id, logging_cloudfiles_name, name=name, placement=placement, 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, access_key=access_key, bucket_name=bucket_name, path=path, region=region, public_key=public_key, user=user) pprint(api_response) except fastly.ApiException as e: print("Exception when calling LoggingCloudfilesApi->update_log_cloudfiles: %s\n" % e) @@ -468,14 +468,14 @@ Name | Type | Description | Notes **logging_cloudfiles_name** | **str**| The name for the real-time logging configuration. | **name** | **str**| The name for the real-time logging configuration. | [optional] **placement** | **str, none_type**| Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. | [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] if omitted the server will use the default value of 2 **response_condition** | **str, none_type**| The name of an existing condition in the configured endpoint, or leave blank to always execute. | [optional] **format** | **str**| A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). | [optional] if omitted the server will use the default value of "%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] if omitted the server will use the default value of 2 **message_type** | **str**| How the message should be formatted. | [optional] if omitted the server will use the default value of "classic" **timestamp_format** | **str, none_type**| A timestamp format | [optional] + **compression_codec** | **str**| The codec used for compressing your logs. 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] **period** | **int**| How frequently log files are finalized so they can be available for reading (in seconds). | [optional] if omitted the server will use the default value of 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] if omitted the server will use the default value of 0 - **compression_codec** | **str**| The codec used for compressing your logs. 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] **access_key** | **str**| Your Cloud Files account access key. | [optional] **bucket_name** | **str**| The name of your Cloud Files container. | [optional] **path** | **str, none_type**| The path to upload logs to. | [optional] if omitted the server will use the default value of "null" diff --git a/docs/LoggingCloudfilesResponse.md b/docs/LoggingCloudfilesResponse.md index 365783d..284cb4a 100644 --- a/docs/LoggingCloudfilesResponse.md +++ b/docs/LoggingCloudfilesResponse.md @@ -6,25 +6,25 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **name** | **str** | The name for the real-time logging configuration. | [optional] **placement** | **str, none_type** | Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. | [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] if omitted the server will use the default value of 2 **response_condition** | **str, none_type** | The name of an existing condition in the configured endpoint, or leave blank to always execute. | [optional] **format** | **str** | A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). | [optional] if omitted the server will use the default value of "%h %l %u %t "%r" %>s %b" +**format_version** | **str** | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. | [optional] if omitted the server will use the default value of "2" **message_type** | **str** | How the message should be formatted. | [optional] if omitted the server will use the default value of "classic" **timestamp_format** | **str, none_type** | A timestamp format | [optional] [readonly] -**period** | **int** | How frequently log files are finalized so they can be available for reading (in seconds). | [optional] if omitted the server will use the default value of 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] if omitted the server will use the default value of 0 **compression_codec** | **str** | The codec used for compressing your logs. 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] +**period** | **str** | How frequently log files are finalized so they can be available for reading (in seconds). | [optional] if omitted the server will use the default value of "3600" +**gzip_level** | **str** | 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] if omitted the server will use the default value of "0" +**created_at** | **datetime, none_type** | Date and time in ISO 8601 format. | [optional] [readonly] +**deleted_at** | **datetime, none_type** | Date and time in ISO 8601 format. | [optional] [readonly] +**updated_at** | **datetime, none_type** | Date and time in ISO 8601 format. | [optional] [readonly] +**service_id** | **str** | | [optional] [readonly] +**version** | **str** | | [optional] [readonly] **access_key** | **str** | Your Cloud Files account access key. | [optional] **bucket_name** | **str** | The name of your Cloud Files container. | [optional] **path** | **str, none_type** | The path to upload logs to. | [optional] if omitted the server will use the default value of "null" **region** | **str, none_type** | The region to stream logs to. | [optional] **public_key** | **str, none_type** | A PGP public key that Fastly will use to encrypt your log files before writing them to disk. | [optional] if omitted the server will use the default value of "null" **user** | **str** | The username for your Cloud Files account. | [optional] -**created_at** | **datetime, none_type** | Date and time in ISO 8601 format. | [optional] [readonly] -**deleted_at** | **datetime, none_type** | Date and time in ISO 8601 format. | [optional] [readonly] -**updated_at** | **datetime, none_type** | Date and time in ISO 8601 format. | [optional] [readonly] -**service_id** | **str** | | [optional] [readonly] -**version** | **int** | | [optional] [readonly] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/LoggingCommon.md b/docs/LoggingCommon.md index d212c38..a248e49 100644 --- a/docs/LoggingCommon.md +++ b/docs/LoggingCommon.md @@ -6,7 +6,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **name** | **str** | The name for the real-time logging configuration. | [optional] **placement** | **str, none_type** | Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. | [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] if omitted the server will use the default value of 2 **response_condition** | **str, none_type** | The name of an existing condition in the configured endpoint, or leave blank to always execute. | [optional] **format** | **str** | A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). | [optional] if omitted the server will use the default value of "%h %l %u %t "%r" %>s %b" **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] diff --git a/docs/LoggingSumologic.md b/docs/LoggingCommonResponse.md similarity index 82% rename from docs/LoggingSumologic.md rename to docs/LoggingCommonResponse.md index 1f03839..e3faf56 100644 --- a/docs/LoggingSumologic.md +++ b/docs/LoggingCommonResponse.md @@ -1,4 +1,4 @@ -# LoggingSumologic +# LoggingCommonResponse ## Properties @@ -6,11 +6,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **name** | **str** | The name for the real-time logging configuration. | [optional] **placement** | **str, none_type** | Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. | [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] if omitted the server will use the default value of 2 **response_condition** | **str, none_type** | The name of an existing condition in the configured endpoint, or leave blank to always execute. | [optional] **format** | **str** | A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). | [optional] if omitted the server will use the default value of "%h %l %u %t "%r" %>s %b" -**message_type** | [**LoggingMessageType**](LoggingMessageType.md) | | [optional] -**url** | **str** | The URL to post logs to. | [optional] +**format_version** | **str** | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. | [optional] if omitted the server will use the default value of "2" **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/LoggingLogshuttle.md b/docs/LoggingCommonResponseAllOf.md similarity index 69% rename from docs/LoggingLogshuttle.md rename to docs/LoggingCommonResponseAllOf.md index 32642f6..9b52db0 100644 --- a/docs/LoggingLogshuttle.md +++ b/docs/LoggingCommonResponseAllOf.md @@ -1,4 +1,4 @@ -# LoggingLogshuttle +# LoggingCommonResponseAllOf ## Properties @@ -6,11 +6,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **name** | **str** | The name for the real-time logging configuration. | [optional] **placement** | **str, none_type** | Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. | [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] if omitted the server will use the default value of 2 **response_condition** | **str, none_type** | The name of an existing condition in the configured endpoint, or leave blank to always execute. | [optional] **format** | **str** | A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). | [optional] if omitted the server will use the default value of "%h %l %u %t "%r" %>s %b" -**token** | **str, none_type** | The data authentication token associated with this endpoint. | [optional] -**url** | **str** | The URL to stream logs to. | [optional] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/LoggingCommonResponseAllOf1.md b/docs/LoggingCommonResponseAllOf1.md new file mode 100644 index 0000000..976f7b6 --- /dev/null +++ b/docs/LoggingCommonResponseAllOf1.md @@ -0,0 +1,12 @@ +# LoggingCommonResponseAllOf1 + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**format_version** | **str** | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. | [optional] if omitted the server will use the default value of "2" +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/LoggingDatadog.md b/docs/LoggingDatadog.md deleted file mode 100644 index ef410be..0000000 --- a/docs/LoggingDatadog.md +++ /dev/null @@ -1,18 +0,0 @@ -# LoggingDatadog - - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **str** | The name for the real-time logging configuration. | [optional] -**placement** | **str, none_type** | Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. | [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] if omitted the server will use the default value of 2 -**response_condition** | **str, none_type** | The name of an existing condition in the configured endpoint, or leave blank to always execute. | [optional] -**format** | **str** | A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). Must produce valid JSON that Datadog can ingest. | [optional] if omitted the server will use the default value of "{"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** | **str** | The region that log data will be sent to. | [optional] if omitted the server will use the default value of "US" -**token** | **str** | The API key from your Datadog account. Required. | [optional] -**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/LoggingDatadogAllOf.md b/docs/LoggingDatadogAdditional.md similarity index 99% rename from docs/LoggingDatadogAllOf.md rename to docs/LoggingDatadogAdditional.md index 7473d43..fa54ec0 100644 --- a/docs/LoggingDatadogAllOf.md +++ b/docs/LoggingDatadogAdditional.md @@ -1,4 +1,4 @@ -# LoggingDatadogAllOf +# LoggingDatadogAdditional ## Properties diff --git a/docs/LoggingDatadogApi.md b/docs/LoggingDatadogApi.md index cccb8e3..1e10f0a 100644 --- a/docs/LoggingDatadogApi.md +++ b/docs/LoggingDatadogApi.md @@ -53,9 +53,9 @@ with fastly.ApiClient(configuration) as api_client: version_id = 1 # int | Integer identifying a service version. name = "test-log-endpoint" # str | The name for the real-time logging configuration. (optional) placement = "none" # str, none_type | Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. (optional) - 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`. (optional) if omitted the server will use the default value of 2 response_condition = "response_condition_example" # str, none_type | The name of an existing condition in the configured endpoint, or leave blank to always execute. (optional) 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"}" # str | A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). Must produce valid JSON that Datadog can ingest. (optional) if omitted the server will use the default value of "{"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 = 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`. (optional) if omitted the server will use the default value of 2 region = "US" # str | The region that log data will be sent to. (optional) if omitted the server will use the default value of "US" token = "token_example" # str | The API key from your Datadog account. Required. (optional) @@ -71,7 +71,7 @@ with fastly.ApiClient(configuration) as api_client: # and optional values try: # Create a Datadog log endpoint - api_response = api_instance.create_log_datadog(service_id, version_id, name=name, placement=placement, format_version=format_version, response_condition=response_condition, format=format, region=region, token=token) + api_response = api_instance.create_log_datadog(service_id, version_id, name=name, placement=placement, response_condition=response_condition, format=format, format_version=format_version, region=region, token=token) pprint(api_response) except fastly.ApiException as e: print("Exception when calling LoggingDatadogApi->create_log_datadog: %s\n" % e) @@ -86,9 +86,9 @@ Name | Type | Description | Notes **version_id** | **int**| Integer identifying a service version. | **name** | **str**| The name for the real-time logging configuration. | [optional] **placement** | **str, none_type**| Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. | [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] if omitted the server will use the default value of 2 **response_condition** | **str, none_type**| The name of an existing condition in the configured endpoint, or leave blank to always execute. | [optional] **format** | **str**| A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). Must produce valid JSON that Datadog can ingest. | [optional] if omitted the server will use the default value of "{"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] if omitted the server will use the default value of 2 **region** | **str**| The region that log data will be sent to. | [optional] if omitted the server will use the default value of "US" **token** | **str**| The API key from your Datadog account. Required. | [optional] @@ -401,9 +401,9 @@ with fastly.ApiClient(configuration) as api_client: logging_datadog_name = "test-log-endpoint" # str | The name for the real-time logging configuration. name = "test-log-endpoint" # str | The name for the real-time logging configuration. (optional) placement = "none" # str, none_type | Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. (optional) - 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`. (optional) if omitted the server will use the default value of 2 response_condition = "response_condition_example" # str, none_type | The name of an existing condition in the configured endpoint, or leave blank to always execute. (optional) 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"}" # str | A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). Must produce valid JSON that Datadog can ingest. (optional) if omitted the server will use the default value of "{"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 = 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`. (optional) if omitted the server will use the default value of 2 region = "US" # str | The region that log data will be sent to. (optional) if omitted the server will use the default value of "US" token = "token_example" # str | The API key from your Datadog account. Required. (optional) @@ -419,7 +419,7 @@ with fastly.ApiClient(configuration) as api_client: # and optional values try: # Update a Datadog log endpoint - api_response = api_instance.update_log_datadog(service_id, version_id, logging_datadog_name, name=name, placement=placement, format_version=format_version, response_condition=response_condition, format=format, region=region, token=token) + api_response = api_instance.update_log_datadog(service_id, version_id, logging_datadog_name, name=name, placement=placement, response_condition=response_condition, format=format, format_version=format_version, region=region, token=token) pprint(api_response) except fastly.ApiException as e: print("Exception when calling LoggingDatadogApi->update_log_datadog: %s\n" % e) @@ -435,9 +435,9 @@ Name | Type | Description | Notes **logging_datadog_name** | **str**| The name for the real-time logging configuration. | **name** | **str**| The name for the real-time logging configuration. | [optional] **placement** | **str, none_type**| Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. | [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] if omitted the server will use the default value of 2 **response_condition** | **str, none_type**| The name of an existing condition in the configured endpoint, or leave blank to always execute. | [optional] **format** | **str**| A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). Must produce valid JSON that Datadog can ingest. | [optional] if omitted the server will use the default value of "{"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] if omitted the server will use the default value of 2 **region** | **str**| The region that log data will be sent to. | [optional] if omitted the server will use the default value of "US" **token** | **str**| The API key from your Datadog account. Required. | [optional] diff --git a/docs/LoggingDatadogResponse.md b/docs/LoggingDatadogResponse.md index b1abb37..5117509 100644 --- a/docs/LoggingDatadogResponse.md +++ b/docs/LoggingDatadogResponse.md @@ -6,16 +6,16 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **name** | **str** | The name for the real-time logging configuration. | [optional] **placement** | **str, none_type** | Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. | [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] if omitted the server will use the default value of 2 **response_condition** | **str, none_type** | The name of an existing condition in the configured endpoint, or leave blank to always execute. | [optional] **format** | **str** | A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). Must produce valid JSON that Datadog can ingest. | [optional] if omitted the server will use the default value of "{"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** | **str** | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. | [optional] if omitted the server will use the default value of "2" **region** | **str** | The region that log data will be sent to. | [optional] if omitted the server will use the default value of "US" **token** | **str** | The API key from your Datadog account. Required. | [optional] **created_at** | **datetime, none_type** | Date and time in ISO 8601 format. | [optional] [readonly] **deleted_at** | **datetime, none_type** | Date and time in ISO 8601 format. | [optional] [readonly] **updated_at** | **datetime, none_type** | Date and time in ISO 8601 format. | [optional] [readonly] **service_id** | **str** | | [optional] [readonly] -**version** | **int** | | [optional] [readonly] +**version** | **str** | | [optional] [readonly] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/LoggingDigitalocean.md b/docs/LoggingDigitalocean.md deleted file mode 100644 index 91656e2..0000000 --- a/docs/LoggingDigitalocean.md +++ /dev/null @@ -1,27 +0,0 @@ -# LoggingDigitalocean - - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **str** | The name for the real-time logging configuration. | [optional] -**placement** | **str, none_type** | Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. | [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] if omitted the server will use the default value of 2 -**response_condition** | **str, none_type** | The name of an existing condition in the configured endpoint, or leave blank to always execute. | [optional] -**format** | **str** | A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). | [optional] if omitted the server will use the default value of "%h %l %u %t "%r" %>s %b" -**message_type** | **str** | How the message should be formatted. | [optional] if omitted the server will use the default value of "classic" -**timestamp_format** | **str, none_type** | A timestamp format | [optional] [readonly] -**period** | **int** | How frequently log files are finalized so they can be available for reading (in seconds). | [optional] if omitted the server will use the default value of 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] if omitted the server will use the default value of 0 -**compression_codec** | **str** | The codec used for compressing your logs. 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] -**bucket_name** | **str** | The name of the DigitalOcean Space. | [optional] -**access_key** | **str** | Your DigitalOcean Spaces account access key. | [optional] -**secret_key** | **str** | Your DigitalOcean Spaces account secret key. | [optional] -**domain** | **str** | The domain of the DigitalOcean Spaces endpoint. | [optional] if omitted the server will use the default value of "nyc3.digitaloceanspaces.com" -**path** | **str, none_type** | The path to upload logs to. | [optional] if omitted the server will use the default value of "null" -**public_key** | **str, none_type** | A PGP public key that Fastly will use to encrypt your log files before writing them to disk. | [optional] if omitted the server will use the default value of "null" -**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/LoggingDigitaloceanAllOf.md b/docs/LoggingDigitaloceanAdditional.md similarity index 97% rename from docs/LoggingDigitaloceanAllOf.md rename to docs/LoggingDigitaloceanAdditional.md index c46a59c..4f1ceb4 100644 --- a/docs/LoggingDigitaloceanAllOf.md +++ b/docs/LoggingDigitaloceanAdditional.md @@ -1,4 +1,4 @@ -# LoggingDigitaloceanAllOf +# LoggingDigitaloceanAdditional ## Properties diff --git a/docs/LoggingDigitaloceanApi.md b/docs/LoggingDigitaloceanApi.md index 1649ee2..31b6020 100644 --- a/docs/LoggingDigitaloceanApi.md +++ b/docs/LoggingDigitaloceanApi.md @@ -53,14 +53,14 @@ with fastly.ApiClient(configuration) as api_client: version_id = 1 # int | Integer identifying a service version. name = "test-log-endpoint" # str | The name for the real-time logging configuration. (optional) placement = "none" # str, none_type | Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. (optional) - 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`. (optional) if omitted the server will use the default value of 2 response_condition = "response_condition_example" # str, none_type | The name of an existing condition in the configured endpoint, or leave blank to always execute. (optional) format = "%h %l %u %t "%r" %>s %b" # str | A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). (optional) if omitted the server will use the default value of "%h %l %u %t "%r" %>s %b" + 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`. (optional) if omitted the server will use the default value of 2 message_type = "classic" # str | How the message should be formatted. (optional) if omitted the server will use the default value of "classic" timestamp_format = "%Y-%m-%dT%H:%M:%S.000" # str, none_type | A timestamp format (optional) + compression_codec = "zstd" # str | The codec used for compressing your logs. 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) period = 3600 # int | How frequently log files are finalized so they can be available for reading (in seconds). (optional) if omitted the server will use the default value of 3600 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. (optional) if omitted the server will use the default value of 0 - compression_codec = "zstd" # str | The codec used for compressing your logs. 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) bucket_name = "bucket_name_example" # str | The name of the DigitalOcean Space. (optional) access_key = "access_key_example" # str | Your DigitalOcean Spaces account access key. (optional) secret_key = "secret_key_example" # str | Your DigitalOcean Spaces account secret key. (optional) @@ -83,7 +83,7 @@ with fastly.ApiClient(configuration) as api_client: # and optional values try: # Create a DigitalOcean Spaces log endpoint - api_response = api_instance.create_log_digocean(service_id, version_id, 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) + api_response = api_instance.create_log_digocean(service_id, version_id, name=name, placement=placement, 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, bucket_name=bucket_name, access_key=access_key, secret_key=secret_key, domain=domain, path=path, public_key=public_key) pprint(api_response) except fastly.ApiException as e: print("Exception when calling LoggingDigitaloceanApi->create_log_digocean: %s\n" % e) @@ -98,14 +98,14 @@ Name | Type | Description | Notes **version_id** | **int**| Integer identifying a service version. | **name** | **str**| The name for the real-time logging configuration. | [optional] **placement** | **str, none_type**| Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. | [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] if omitted the server will use the default value of 2 **response_condition** | **str, none_type**| The name of an existing condition in the configured endpoint, or leave blank to always execute. | [optional] **format** | **str**| A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). | [optional] if omitted the server will use the default value of "%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] if omitted the server will use the default value of 2 **message_type** | **str**| How the message should be formatted. | [optional] if omitted the server will use the default value of "classic" **timestamp_format** | **str, none_type**| A timestamp format | [optional] + **compression_codec** | **str**| The codec used for compressing your logs. 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] **period** | **int**| How frequently log files are finalized so they can be available for reading (in seconds). | [optional] if omitted the server will use the default value of 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] if omitted the server will use the default value of 0 - **compression_codec** | **str**| The codec used for compressing your logs. 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] **bucket_name** | **str**| The name of the DigitalOcean Space. | [optional] **access_key** | **str**| Your DigitalOcean Spaces account access key. | [optional] **secret_key** | **str**| Your DigitalOcean Spaces account secret key. | [optional] @@ -422,14 +422,14 @@ with fastly.ApiClient(configuration) as api_client: logging_digitalocean_name = "test-log-endpoint" # str | The name for the real-time logging configuration. name = "test-log-endpoint" # str | The name for the real-time logging configuration. (optional) placement = "none" # str, none_type | Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. (optional) - 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`. (optional) if omitted the server will use the default value of 2 response_condition = "response_condition_example" # str, none_type | The name of an existing condition in the configured endpoint, or leave blank to always execute. (optional) format = "%h %l %u %t "%r" %>s %b" # str | A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). (optional) if omitted the server will use the default value of "%h %l %u %t "%r" %>s %b" + 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`. (optional) if omitted the server will use the default value of 2 message_type = "classic" # str | How the message should be formatted. (optional) if omitted the server will use the default value of "classic" timestamp_format = "%Y-%m-%dT%H:%M:%S.000" # str, none_type | A timestamp format (optional) + compression_codec = "zstd" # str | The codec used for compressing your logs. 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) period = 3600 # int | How frequently log files are finalized so they can be available for reading (in seconds). (optional) if omitted the server will use the default value of 3600 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. (optional) if omitted the server will use the default value of 0 - compression_codec = "zstd" # str | The codec used for compressing your logs. 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) bucket_name = "bucket_name_example" # str | The name of the DigitalOcean Space. (optional) access_key = "access_key_example" # str | Your DigitalOcean Spaces account access key. (optional) secret_key = "secret_key_example" # str | Your DigitalOcean Spaces account secret key. (optional) @@ -452,7 +452,7 @@ with fastly.ApiClient(configuration) as api_client: # and optional values try: # Update a DigitalOcean Spaces log endpoint - api_response = api_instance.update_log_digocean(service_id, version_id, logging_digitalocean_name, 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) + api_response = api_instance.update_log_digocean(service_id, version_id, logging_digitalocean_name, name=name, placement=placement, 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, bucket_name=bucket_name, access_key=access_key, secret_key=secret_key, domain=domain, path=path, public_key=public_key) pprint(api_response) except fastly.ApiException as e: print("Exception when calling LoggingDigitaloceanApi->update_log_digocean: %s\n" % e) @@ -468,14 +468,14 @@ Name | Type | Description | Notes **logging_digitalocean_name** | **str**| The name for the real-time logging configuration. | **name** | **str**| The name for the real-time logging configuration. | [optional] **placement** | **str, none_type**| Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. | [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] if omitted the server will use the default value of 2 **response_condition** | **str, none_type**| The name of an existing condition in the configured endpoint, or leave blank to always execute. | [optional] **format** | **str**| A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). | [optional] if omitted the server will use the default value of "%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] if omitted the server will use the default value of 2 **message_type** | **str**| How the message should be formatted. | [optional] if omitted the server will use the default value of "classic" **timestamp_format** | **str, none_type**| A timestamp format | [optional] + **compression_codec** | **str**| The codec used for compressing your logs. 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] **period** | **int**| How frequently log files are finalized so they can be available for reading (in seconds). | [optional] if omitted the server will use the default value of 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] if omitted the server will use the default value of 0 - **compression_codec** | **str**| The codec used for compressing your logs. 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] **bucket_name** | **str**| The name of the DigitalOcean Space. | [optional] **access_key** | **str**| Your DigitalOcean Spaces account access key. | [optional] **secret_key** | **str**| Your DigitalOcean Spaces account secret key. | [optional] diff --git a/docs/LoggingDigitaloceanResponse.md b/docs/LoggingDigitaloceanResponse.md index a84e417..cc6a894 100644 --- a/docs/LoggingDigitaloceanResponse.md +++ b/docs/LoggingDigitaloceanResponse.md @@ -6,25 +6,25 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **name** | **str** | The name for the real-time logging configuration. | [optional] **placement** | **str, none_type** | Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. | [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] if omitted the server will use the default value of 2 **response_condition** | **str, none_type** | The name of an existing condition in the configured endpoint, or leave blank to always execute. | [optional] **format** | **str** | A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). | [optional] if omitted the server will use the default value of "%h %l %u %t "%r" %>s %b" +**format_version** | **str** | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. | [optional] if omitted the server will use the default value of "2" **message_type** | **str** | How the message should be formatted. | [optional] if omitted the server will use the default value of "classic" **timestamp_format** | **str, none_type** | A timestamp format | [optional] [readonly] -**period** | **int** | How frequently log files are finalized so they can be available for reading (in seconds). | [optional] if omitted the server will use the default value of 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] if omitted the server will use the default value of 0 **compression_codec** | **str** | The codec used for compressing your logs. 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] +**period** | **str** | How frequently log files are finalized so they can be available for reading (in seconds). | [optional] if omitted the server will use the default value of "3600" +**gzip_level** | **str** | 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] if omitted the server will use the default value of "0" +**created_at** | **datetime, none_type** | Date and time in ISO 8601 format. | [optional] [readonly] +**deleted_at** | **datetime, none_type** | Date and time in ISO 8601 format. | [optional] [readonly] +**updated_at** | **datetime, none_type** | Date and time in ISO 8601 format. | [optional] [readonly] +**service_id** | **str** | | [optional] [readonly] +**version** | **str** | | [optional] [readonly] **bucket_name** | **str** | The name of the DigitalOcean Space. | [optional] **access_key** | **str** | Your DigitalOcean Spaces account access key. | [optional] **secret_key** | **str** | Your DigitalOcean Spaces account secret key. | [optional] **domain** | **str** | The domain of the DigitalOcean Spaces endpoint. | [optional] if omitted the server will use the default value of "nyc3.digitaloceanspaces.com" **path** | **str, none_type** | The path to upload logs to. | [optional] if omitted the server will use the default value of "null" **public_key** | **str, none_type** | A PGP public key that Fastly will use to encrypt your log files before writing them to disk. | [optional] if omitted the server will use the default value of "null" -**created_at** | **datetime, none_type** | Date and time in ISO 8601 format. | [optional] [readonly] -**deleted_at** | **datetime, none_type** | Date and time in ISO 8601 format. | [optional] [readonly] -**updated_at** | **datetime, none_type** | Date and time in ISO 8601 format. | [optional] [readonly] -**service_id** | **str** | | [optional] [readonly] -**version** | **int** | | [optional] [readonly] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/LoggingElasticsearch.md b/docs/LoggingElasticsearch.md deleted file mode 100644 index 12ab085..0000000 --- a/docs/LoggingElasticsearch.md +++ /dev/null @@ -1,27 +0,0 @@ -# LoggingElasticsearch - - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **str** | The name for the real-time logging configuration. | [optional] -**placement** | **str, none_type** | Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. | [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] if omitted the server will use the default value of 2 -**response_condition** | **str, none_type** | The name of an existing condition in the configured endpoint, or leave blank to always execute. | [optional] -**format** | **str** | 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** | **str, none_type** | A secure certificate to authenticate a server with. Must be in PEM format. | [optional] if omitted the server will use the default value of "null" -**tls_client_cert** | **str, none_type** | The client certificate used to make authenticated requests. Must be in PEM format. | [optional] if omitted the server will use the default value of "null" -**tls_client_key** | **str, none_type** | The client private key used to make authenticated requests. Must be in PEM format. | [optional] if omitted the server will use the default value of "null" -**tls_hostname** | **str, none_type** | 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] if omitted the server will use the default value of "null" -**request_max_entries** | **int** | The maximum number of logs sent in one request. Defaults `0` for unbounded. | [optional] if omitted the server will use the default value of 0 -**request_max_bytes** | **int** | The maximum number of bytes sent in one request. Defaults `0` for unbounded. | [optional] if omitted the server will use the default value of 0 -**index** | **str** | 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** | **str** | The URL to stream logs to. Must use HTTPS. | [optional] -**pipeline** | **str, none_type** | 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** | **str, none_type** | Basic Auth username. | [optional] -**password** | **str, none_type** | Basic Auth password. | [optional] -**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/LoggingElasticsearchAllOf.md b/docs/LoggingElasticsearchAdditional.md similarity index 97% rename from docs/LoggingElasticsearchAllOf.md rename to docs/LoggingElasticsearchAdditional.md index a03ffa0..3eeaf39 100644 --- a/docs/LoggingElasticsearchAllOf.md +++ b/docs/LoggingElasticsearchAdditional.md @@ -1,4 +1,4 @@ -# LoggingElasticsearchAllOf +# LoggingElasticsearchAdditional ## Properties diff --git a/docs/LoggingElasticsearchApi.md b/docs/LoggingElasticsearchApi.md index 9541203..549b5b1 100644 --- a/docs/LoggingElasticsearchApi.md +++ b/docs/LoggingElasticsearchApi.md @@ -53,9 +53,9 @@ with fastly.ApiClient(configuration) as api_client: version_id = 1 # int | Integer identifying a service version. name = "test-log-endpoint" # str | The name for the real-time logging configuration. (optional) placement = "none" # str, none_type | Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. (optional) - 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`. (optional) if omitted the server will use the default value of 2 response_condition = "response_condition_example" # str, none_type | The name of an existing condition in the configured endpoint, or leave blank to always execute. (optional) format = "format_example" # str | 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 = 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`. (optional) if omitted the server will use the default value of 2 tls_ca_cert = "null" # str, none_type | A secure certificate to authenticate a server with. Must be in PEM format. (optional) if omitted the server will use the default value of "null" tls_client_cert = "null" # str, none_type | The client certificate used to make authenticated requests. Must be in PEM format. (optional) if omitted the server will use the default value of "null" tls_client_key = "null" # str, none_type | The client private key used to make authenticated requests. Must be in PEM format. (optional) if omitted the server will use the default value of "null" @@ -80,7 +80,7 @@ with fastly.ApiClient(configuration) as api_client: # and optional values try: # Create an Elasticsearch log endpoint - api_response = api_instance.create_log_elasticsearch(service_id, version_id, 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) + api_response = api_instance.create_log_elasticsearch(service_id, version_id, name=name, placement=placement, 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, request_max_entries=request_max_entries, request_max_bytes=request_max_bytes, index=index, url=url, pipeline=pipeline, user=user, password=password) pprint(api_response) except fastly.ApiException as e: print("Exception when calling LoggingElasticsearchApi->create_log_elasticsearch: %s\n" % e) @@ -95,9 +95,9 @@ Name | Type | Description | Notes **version_id** | **int**| Integer identifying a service version. | **name** | **str**| The name for the real-time logging configuration. | [optional] **placement** | **str, none_type**| Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. | [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] if omitted the server will use the default value of 2 **response_condition** | **str, none_type**| The name of an existing condition in the configured endpoint, or leave blank to always execute. | [optional] **format** | **str**| 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] if omitted the server will use the default value of 2 **tls_ca_cert** | **str, none_type**| A secure certificate to authenticate a server with. Must be in PEM format. | [optional] if omitted the server will use the default value of "null" **tls_client_cert** | **str, none_type**| The client certificate used to make authenticated requests. Must be in PEM format. | [optional] if omitted the server will use the default value of "null" **tls_client_key** | **str, none_type**| The client private key used to make authenticated requests. Must be in PEM format. | [optional] if omitted the server will use the default value of "null" @@ -419,9 +419,9 @@ with fastly.ApiClient(configuration) as api_client: logging_elasticsearch_name = "test-log-endpoint" # str | The name for the real-time logging configuration. name = "test-log-endpoint" # str | The name for the real-time logging configuration. (optional) placement = "none" # str, none_type | Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. (optional) - 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`. (optional) if omitted the server will use the default value of 2 response_condition = "response_condition_example" # str, none_type | The name of an existing condition in the configured endpoint, or leave blank to always execute. (optional) format = "format_example" # str | 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 = 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`. (optional) if omitted the server will use the default value of 2 tls_ca_cert = "null" # str, none_type | A secure certificate to authenticate a server with. Must be in PEM format. (optional) if omitted the server will use the default value of "null" tls_client_cert = "null" # str, none_type | The client certificate used to make authenticated requests. Must be in PEM format. (optional) if omitted the server will use the default value of "null" tls_client_key = "null" # str, none_type | The client private key used to make authenticated requests. Must be in PEM format. (optional) if omitted the server will use the default value of "null" @@ -446,7 +446,7 @@ with fastly.ApiClient(configuration) as api_client: # and optional values try: # Update an Elasticsearch log endpoint - api_response = api_instance.update_log_elasticsearch(service_id, version_id, logging_elasticsearch_name, 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) + api_response = api_instance.update_log_elasticsearch(service_id, version_id, logging_elasticsearch_name, name=name, placement=placement, 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, request_max_entries=request_max_entries, request_max_bytes=request_max_bytes, index=index, url=url, pipeline=pipeline, user=user, password=password) pprint(api_response) except fastly.ApiException as e: print("Exception when calling LoggingElasticsearchApi->update_log_elasticsearch: %s\n" % e) @@ -462,9 +462,9 @@ Name | Type | Description | Notes **logging_elasticsearch_name** | **str**| The name for the real-time logging configuration. | **name** | **str**| The name for the real-time logging configuration. | [optional] **placement** | **str, none_type**| Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. | [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] if omitted the server will use the default value of 2 **response_condition** | **str, none_type**| The name of an existing condition in the configured endpoint, or leave blank to always execute. | [optional] **format** | **str**| 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] if omitted the server will use the default value of 2 **tls_ca_cert** | **str, none_type**| A secure certificate to authenticate a server with. Must be in PEM format. | [optional] if omitted the server will use the default value of "null" **tls_client_cert** | **str, none_type**| The client certificate used to make authenticated requests. Must be in PEM format. | [optional] if omitted the server will use the default value of "null" **tls_client_key** | **str, none_type**| The client private key used to make authenticated requests. Must be in PEM format. | [optional] if omitted the server will use the default value of "null" diff --git a/docs/LoggingElasticsearchResponse.md b/docs/LoggingElasticsearchResponse.md index f07f48a..0352aea 100644 --- a/docs/LoggingElasticsearchResponse.md +++ b/docs/LoggingElasticsearchResponse.md @@ -6,9 +6,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **name** | **str** | The name for the real-time logging configuration. | [optional] **placement** | **str, none_type** | Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. | [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] if omitted the server will use the default value of 2 **response_condition** | **str, none_type** | The name of an existing condition in the configured endpoint, or leave blank to always execute. | [optional] **format** | **str** | 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** | **str** | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. | [optional] if omitted the server will use the default value of "2" **tls_ca_cert** | **str, none_type** | A secure certificate to authenticate a server with. Must be in PEM format. | [optional] if omitted the server will use the default value of "null" **tls_client_cert** | **str, none_type** | The client certificate used to make authenticated requests. Must be in PEM format. | [optional] if omitted the server will use the default value of "null" **tls_client_key** | **str, none_type** | The client private key used to make authenticated requests. Must be in PEM format. | [optional] if omitted the server will use the default value of "null" @@ -24,7 +24,7 @@ Name | Type | Description | Notes **deleted_at** | **datetime, none_type** | Date and time in ISO 8601 format. | [optional] [readonly] **updated_at** | **datetime, none_type** | Date and time in ISO 8601 format. | [optional] [readonly] **service_id** | **str** | | [optional] [readonly] -**version** | **int** | | [optional] [readonly] +**version** | **str** | | [optional] [readonly] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/LoggingFormatVersion.md b/docs/LoggingFormatVersion.md deleted file mode 100644 index c8d26f7..0000000 --- a/docs/LoggingFormatVersion.md +++ /dev/null @@ -1,12 +0,0 @@ -# LoggingFormatVersion - -The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**value** | **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`. | defaults to 2, must be one of [1, 2, ] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/LoggingFormatVersionInteger.md b/docs/LoggingFormatVersionInteger.md new file mode 100644 index 0000000..6865093 --- /dev/null +++ b/docs/LoggingFormatVersionInteger.md @@ -0,0 +1,12 @@ +# 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] if omitted the server will use the default value of 2 +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/LoggingFormatVersionString.md b/docs/LoggingFormatVersionString.md new file mode 100644 index 0000000..f731f56 --- /dev/null +++ b/docs/LoggingFormatVersionString.md @@ -0,0 +1,12 @@ +# LoggingFormatVersionString + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**format_version** | **str** | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. | [optional] if omitted the server will use the default value of "2" +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/LoggingFtp.md b/docs/LoggingFtp.md deleted file mode 100644 index 1a064b0..0000000 --- a/docs/LoggingFtp.md +++ /dev/null @@ -1,29 +0,0 @@ -# LoggingFtp - - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **str** | The name for the real-time logging configuration. | [optional] -**placement** | **str, none_type** | Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. | [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] if omitted the server will use the default value of 2 -**response_condition** | **str, none_type** | The name of an existing condition in the configured endpoint, or leave blank to always execute. | [optional] -**format** | **str** | A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). | [optional] if omitted the server will use the default value of "%h %l %u %t "%r" %>s %b" -**message_type** | **str** | How the message should be formatted. | [optional] if omitted the server will use the default value of "classic" -**timestamp_format** | **str, none_type** | A timestamp format | [optional] [readonly] -**period** | **int** | How frequently log files are finalized so they can be available for reading (in seconds). | [optional] if omitted the server will use the default value of 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] if omitted the server will use the default value of 0 -**compression_codec** | **str** | The codec used for compressing your logs. 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] -**address** | **str** | An hostname or IPv4 address. | [optional] -**hostname** | **str** | Hostname used. | [optional] -**ipv4** | **str** | IPv4 address of the host. | [optional] -**password** | **str** | The password for the server. For anonymous use an email address. | [optional] -**path** | **str** | 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] if omitted the server will use the default value of 21 -**public_key** | **str, none_type** | A PGP public key that Fastly will use to encrypt your log files before writing them to disk. | [optional] if omitted the server will use the default value of "null" -**user** | **str** | The username for the server. Can be anonymous. | [optional] -**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/LoggingFtpAllOf.md b/docs/LoggingFtpAdditional.md similarity index 90% rename from docs/LoggingFtpAllOf.md rename to docs/LoggingFtpAdditional.md index b767c82..11f6c48 100644 --- a/docs/LoggingFtpAllOf.md +++ b/docs/LoggingFtpAdditional.md @@ -1,4 +1,4 @@ -# LoggingFtpAllOf +# LoggingFtpAdditional ## Properties @@ -9,7 +9,6 @@ Name | Type | Description | Notes **ipv4** | **str** | IPv4 address of the host. | [optional] **password** | **str** | The password for the server. For anonymous use an email address. | [optional] **path** | **str** | 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] if omitted the server will use the default value of 21 **public_key** | **str, none_type** | A PGP public key that Fastly will use to encrypt your log files before writing them to disk. | [optional] if omitted the server will use the default value of "null" **user** | **str** | The username for the server. Can be anonymous. | [optional] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] diff --git a/docs/LoggingFtpApi.md b/docs/LoggingFtpApi.md index 9008aa4..bfd0c6c 100644 --- a/docs/LoggingFtpApi.md +++ b/docs/LoggingFtpApi.md @@ -53,25 +53,25 @@ with fastly.ApiClient(configuration) as api_client: version_id = 1 # int | Integer identifying a service version. name = "test-log-endpoint" # str | The name for the real-time logging configuration. (optional) placement = "none" # str, none_type | Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. (optional) - 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`. (optional) if omitted the server will use the default value of 2 response_condition = "response_condition_example" # str, none_type | The name of an existing condition in the configured endpoint, or leave blank to always execute. (optional) format = "%h %l %u %t "%r" %>s %b" # str | A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). (optional) if omitted the server will use the default value of "%h %l %u %t "%r" %>s %b" + 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`. (optional) if omitted the server will use the default value of 2 message_type = "classic" # str | How the message should be formatted. (optional) if omitted the server will use the default value of "classic" timestamp_format = "%Y-%m-%dT%H:%M:%S.000" # str, none_type | A timestamp format (optional) + compression_codec = "zstd" # str | The codec used for compressing your logs. 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) period = 3600 # int | How frequently log files are finalized so they can be available for reading (in seconds). (optional) if omitted the server will use the default value of 3600 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. (optional) if omitted the server will use the default value of 0 - compression_codec = "zstd" # str | The codec used for compressing your logs. 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) address = "address_example" # str | An hostname or IPv4 address. (optional) hostname = "hostname_example" # str | Hostname used. (optional) ipv4 = "ipv4_example" # str | IPv4 address of the host. (optional) password = "password_example" # str | The password for the server. For anonymous use an email address. (optional) path = "path_example" # str | The path to upload log files to. If the path ends in `/` then it is treated as a directory. (optional) - port = 21 # int | The port number. (optional) if omitted the server will use the default value of 21 public_key = '''-----BEGIN PRIVATE KEY----- ... -----END PRIVATE KEY----- ''' # str, none_type | A PGP public key that Fastly will use to encrypt your log files before writing them to disk. (optional) if omitted the server will use the default value of "null" user = "user_example" # str | The username for the server. Can be anonymous. (optional) + port = 21 # int | The port number. (optional) if omitted the server will use the default value of 21 # example passing only required values which don't have defaults set try: @@ -85,7 +85,7 @@ with fastly.ApiClient(configuration) as api_client: # and optional values try: # Create an FTP log endpoint - api_response = api_instance.create_log_ftp(service_id, version_id, 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) + api_response = api_instance.create_log_ftp(service_id, version_id, name=name, placement=placement, 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, address=address, hostname=hostname, ipv4=ipv4, password=password, path=path, public_key=public_key, user=user, port=port) pprint(api_response) except fastly.ApiException as e: print("Exception when calling LoggingFtpApi->create_log_ftp: %s\n" % e) @@ -100,22 +100,22 @@ Name | Type | Description | Notes **version_id** | **int**| Integer identifying a service version. | **name** | **str**| The name for the real-time logging configuration. | [optional] **placement** | **str, none_type**| Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. | [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] if omitted the server will use the default value of 2 **response_condition** | **str, none_type**| The name of an existing condition in the configured endpoint, or leave blank to always execute. | [optional] **format** | **str**| A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). | [optional] if omitted the server will use the default value of "%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] if omitted the server will use the default value of 2 **message_type** | **str**| How the message should be formatted. | [optional] if omitted the server will use the default value of "classic" **timestamp_format** | **str, none_type**| A timestamp format | [optional] + **compression_codec** | **str**| The codec used for compressing your logs. 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] **period** | **int**| How frequently log files are finalized so they can be available for reading (in seconds). | [optional] if omitted the server will use the default value of 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] if omitted the server will use the default value of 0 - **compression_codec** | **str**| The codec used for compressing your logs. 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] **address** | **str**| An hostname or IPv4 address. | [optional] **hostname** | **str**| Hostname used. | [optional] **ipv4** | **str**| IPv4 address of the host. | [optional] **password** | **str**| The password for the server. For anonymous use an email address. | [optional] **path** | **str**| 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] if omitted the server will use the default value of 21 **public_key** | **str, none_type**| A PGP public key that Fastly will use to encrypt your log files before writing them to disk. | [optional] if omitted the server will use the default value of "null" **user** | **str**| The username for the server. Can be anonymous. | [optional] + **port** | **int**| The port number. | [optional] if omitted the server will use the default value of 21 ### Return type @@ -426,25 +426,25 @@ with fastly.ApiClient(configuration) as api_client: logging_ftp_name = "test-log-endpoint" # str | The name for the real-time logging configuration. name = "test-log-endpoint" # str | The name for the real-time logging configuration. (optional) placement = "none" # str, none_type | Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. (optional) - 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`. (optional) if omitted the server will use the default value of 2 response_condition = "response_condition_example" # str, none_type | The name of an existing condition in the configured endpoint, or leave blank to always execute. (optional) format = "%h %l %u %t "%r" %>s %b" # str | A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). (optional) if omitted the server will use the default value of "%h %l %u %t "%r" %>s %b" + 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`. (optional) if omitted the server will use the default value of 2 message_type = "classic" # str | How the message should be formatted. (optional) if omitted the server will use the default value of "classic" timestamp_format = "%Y-%m-%dT%H:%M:%S.000" # str, none_type | A timestamp format (optional) + compression_codec = "zstd" # str | The codec used for compressing your logs. 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) period = 3600 # int | How frequently log files are finalized so they can be available for reading (in seconds). (optional) if omitted the server will use the default value of 3600 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. (optional) if omitted the server will use the default value of 0 - compression_codec = "zstd" # str | The codec used for compressing your logs. 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) address = "address_example" # str | An hostname or IPv4 address. (optional) hostname = "hostname_example" # str | Hostname used. (optional) ipv4 = "ipv4_example" # str | IPv4 address of the host. (optional) password = "password_example" # str | The password for the server. For anonymous use an email address. (optional) path = "path_example" # str | The path to upload log files to. If the path ends in `/` then it is treated as a directory. (optional) - port = 21 # int | The port number. (optional) if omitted the server will use the default value of 21 public_key = '''-----BEGIN PRIVATE KEY----- ... -----END PRIVATE KEY----- ''' # str, none_type | A PGP public key that Fastly will use to encrypt your log files before writing them to disk. (optional) if omitted the server will use the default value of "null" user = "user_example" # str | The username for the server. Can be anonymous. (optional) + port = 21 # int | The port number. (optional) if omitted the server will use the default value of 21 # example passing only required values which don't have defaults set try: @@ -458,7 +458,7 @@ with fastly.ApiClient(configuration) as api_client: # and optional values try: # Update an FTP log endpoint - api_response = api_instance.update_log_ftp(service_id, version_id, logging_ftp_name, 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) + api_response = api_instance.update_log_ftp(service_id, version_id, logging_ftp_name, name=name, placement=placement, 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, address=address, hostname=hostname, ipv4=ipv4, password=password, path=path, public_key=public_key, user=user, port=port) pprint(api_response) except fastly.ApiException as e: print("Exception when calling LoggingFtpApi->update_log_ftp: %s\n" % e) @@ -474,22 +474,22 @@ Name | Type | Description | Notes **logging_ftp_name** | **str**| The name for the real-time logging configuration. | **name** | **str**| The name for the real-time logging configuration. | [optional] **placement** | **str, none_type**| Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. | [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] if omitted the server will use the default value of 2 **response_condition** | **str, none_type**| The name of an existing condition in the configured endpoint, or leave blank to always execute. | [optional] **format** | **str**| A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). | [optional] if omitted the server will use the default value of "%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] if omitted the server will use the default value of 2 **message_type** | **str**| How the message should be formatted. | [optional] if omitted the server will use the default value of "classic" **timestamp_format** | **str, none_type**| A timestamp format | [optional] + **compression_codec** | **str**| The codec used for compressing your logs. 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] **period** | **int**| How frequently log files are finalized so they can be available for reading (in seconds). | [optional] if omitted the server will use the default value of 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] if omitted the server will use the default value of 0 - **compression_codec** | **str**| The codec used for compressing your logs. 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] **address** | **str**| An hostname or IPv4 address. | [optional] **hostname** | **str**| Hostname used. | [optional] **ipv4** | **str**| IPv4 address of the host. | [optional] **password** | **str**| The password for the server. For anonymous use an email address. | [optional] **path** | **str**| 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] if omitted the server will use the default value of 21 **public_key** | **str, none_type**| A PGP public key that Fastly will use to encrypt your log files before writing them to disk. | [optional] if omitted the server will use the default value of "null" **user** | **str**| The username for the server. Can be anonymous. | [optional] + **port** | **int**| The port number. | [optional] if omitted the server will use the default value of 21 ### Return type diff --git a/docs/LoggingFtpResponse.md b/docs/LoggingFtpResponse.md index 5fc6b43..f839896 100644 --- a/docs/LoggingFtpResponse.md +++ b/docs/LoggingFtpResponse.md @@ -6,27 +6,27 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **name** | **str** | The name for the real-time logging configuration. | [optional] **placement** | **str, none_type** | Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. | [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] if omitted the server will use the default value of 2 **response_condition** | **str, none_type** | The name of an existing condition in the configured endpoint, or leave blank to always execute. | [optional] **format** | **str** | A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). | [optional] if omitted the server will use the default value of "%h %l %u %t "%r" %>s %b" +**format_version** | **str** | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. | [optional] if omitted the server will use the default value of "2" **message_type** | **str** | How the message should be formatted. | [optional] if omitted the server will use the default value of "classic" **timestamp_format** | **str, none_type** | A timestamp format | [optional] [readonly] -**period** | **int** | How frequently log files are finalized so they can be available for reading (in seconds). | [optional] if omitted the server will use the default value of 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] if omitted the server will use the default value of 0 **compression_codec** | **str** | The codec used for compressing your logs. 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] +**period** | **str** | How frequently log files are finalized so they can be available for reading (in seconds). | [optional] if omitted the server will use the default value of "3600" +**gzip_level** | **str** | 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] if omitted the server will use the default value of "0" +**created_at** | **datetime, none_type** | Date and time in ISO 8601 format. | [optional] [readonly] +**deleted_at** | **datetime, none_type** | Date and time in ISO 8601 format. | [optional] [readonly] +**updated_at** | **datetime, none_type** | Date and time in ISO 8601 format. | [optional] [readonly] +**service_id** | **str** | | [optional] [readonly] +**version** | **str** | | [optional] [readonly] **address** | **str** | An hostname or IPv4 address. | [optional] **hostname** | **str** | Hostname used. | [optional] **ipv4** | **str** | IPv4 address of the host. | [optional] **password** | **str** | The password for the server. For anonymous use an email address. | [optional] **path** | **str** | 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] if omitted the server will use the default value of 21 **public_key** | **str, none_type** | A PGP public key that Fastly will use to encrypt your log files before writing them to disk. | [optional] if omitted the server will use the default value of "null" **user** | **str** | The username for the server. Can be anonymous. | [optional] -**created_at** | **datetime, none_type** | Date and time in ISO 8601 format. | [optional] [readonly] -**deleted_at** | **datetime, none_type** | Date and time in ISO 8601 format. | [optional] [readonly] -**updated_at** | **datetime, none_type** | Date and time in ISO 8601 format. | [optional] [readonly] -**service_id** | **str** | | [optional] [readonly] -**version** | **int** | | [optional] [readonly] +**port** | **str** | The port number. | [optional] if omitted the server will use the default value of "21" **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/TlsSubscriptionResponseDataAllOf.md b/docs/LoggingFtpResponseAllOf.md similarity index 69% rename from docs/TlsSubscriptionResponseDataAllOf.md rename to docs/LoggingFtpResponseAllOf.md index 1292718..173735f 100644 --- a/docs/TlsSubscriptionResponseDataAllOf.md +++ b/docs/LoggingFtpResponseAllOf.md @@ -1,11 +1,10 @@ -# TlsSubscriptionResponseDataAllOf +# LoggingFtpResponseAllOf ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**id** | **str** | | [optional] [readonly] -**attributes** | [**TlsSubscriptionResponseAttributes**](TlsSubscriptionResponseAttributes.md) | | [optional] +**port** | **str** | The port number. | [optional] if omitted the server will use the default value of "21" **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/LoggingGcs.md b/docs/LoggingGcs.md deleted file mode 100644 index b252c1c..0000000 --- a/docs/LoggingGcs.md +++ /dev/null @@ -1,28 +0,0 @@ -# LoggingGcs - - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **str** | The name for the real-time logging configuration. | [optional] -**placement** | **str, none_type** | Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. | [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] if omitted the server will use the default value of 2 -**response_condition** | **str, none_type** | The name of an existing condition in the configured endpoint, or leave blank to always execute. | [optional] -**format** | **str** | A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). | [optional] if omitted the server will use the default value of "%h %l %u %t "%r" %>s %b" -**message_type** | **str** | How the message should be formatted. | [optional] if omitted the server will use the default value of "classic" -**timestamp_format** | **str, none_type** | A timestamp format | [optional] [readonly] -**period** | **int** | How frequently log files are finalized so they can be available for reading (in seconds). | [optional] if omitted the server will use the default value of 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] if omitted the server will use the default value of 0 -**compression_codec** | **str** | The codec used for compressing your logs. 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] -**user** | **str** | 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** | **str** | 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** | **str** | 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** | **str** | The name of the GCS bucket. | [optional] -**path** | **str** | | [optional] if omitted the server will use the default value of "/" -**public_key** | **str, none_type** | A PGP public key that Fastly will use to encrypt your log files before writing them to disk. | [optional] if omitted the server will use the default value of "null" -**project_id** | **str** | Your Google Cloud Platform project ID. Required | [optional] -**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/LoggingGcsAllOf.md b/docs/LoggingGcsAdditional.md similarity index 97% rename from docs/LoggingGcsAllOf.md rename to docs/LoggingGcsAdditional.md index cb087f6..f93ef26 100644 --- a/docs/LoggingGcsAllOf.md +++ b/docs/LoggingGcsAdditional.md @@ -1,4 +1,4 @@ -# LoggingGcsAllOf +# LoggingGcsAdditional ## Properties diff --git a/docs/LoggingGcsApi.md b/docs/LoggingGcsApi.md index 48d1307..50106a3 100644 --- a/docs/LoggingGcsApi.md +++ b/docs/LoggingGcsApi.md @@ -53,14 +53,14 @@ with fastly.ApiClient(configuration) as api_client: version_id = 1 # int | Integer identifying a service version. name = "test-log-endpoint" # str | The name for the real-time logging configuration. (optional) placement = "none" # str, none_type | Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. (optional) - 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`. (optional) if omitted the server will use the default value of 2 response_condition = "response_condition_example" # str, none_type | The name of an existing condition in the configured endpoint, or leave blank to always execute. (optional) format = "%h %l %u %t "%r" %>s %b" # str | A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). (optional) if omitted the server will use the default value of "%h %l %u %t "%r" %>s %b" + 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`. (optional) if omitted the server will use the default value of 2 message_type = "classic" # str | How the message should be formatted. (optional) if omitted the server will use the default value of "classic" timestamp_format = "%Y-%m-%dT%H:%M:%S.000" # str, none_type | A timestamp format (optional) + compression_codec = "zstd" # str | The codec used for compressing your logs. 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) period = 3600 # int | How frequently log files are finalized so they can be available for reading (in seconds). (optional) if omitted the server will use the default value of 3600 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. (optional) if omitted the server will use the default value of 0 - compression_codec = "zstd" # str | The codec used for compressing your logs. 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) user = "test-user@test-project-id.iam.gserviceaccount.com" # str | 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 = '''-----BEGIN PRIVATE KEY----- ... @@ -87,7 +87,7 @@ with fastly.ApiClient(configuration) as api_client: # and optional values try: # Create a GCS log endpoint - api_response = api_instance.create_log_gcs(service_id, version_id, 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) + api_response = api_instance.create_log_gcs(service_id, version_id, name=name, placement=placement, 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, user=user, secret_key=secret_key, account_name=account_name, bucket_name=bucket_name, path=path, public_key=public_key, project_id=project_id) pprint(api_response) except fastly.ApiException as e: print("Exception when calling LoggingGcsApi->create_log_gcs: %s\n" % e) @@ -102,14 +102,14 @@ Name | Type | Description | Notes **version_id** | **int**| Integer identifying a service version. | **name** | **str**| The name for the real-time logging configuration. | [optional] **placement** | **str, none_type**| Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. | [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] if omitted the server will use the default value of 2 **response_condition** | **str, none_type**| The name of an existing condition in the configured endpoint, or leave blank to always execute. | [optional] **format** | **str**| A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). | [optional] if omitted the server will use the default value of "%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] if omitted the server will use the default value of 2 **message_type** | **str**| How the message should be formatted. | [optional] if omitted the server will use the default value of "classic" **timestamp_format** | **str, none_type**| A timestamp format | [optional] + **compression_codec** | **str**| The codec used for compressing your logs. 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] **period** | **int**| How frequently log files are finalized so they can be available for reading (in seconds). | [optional] if omitted the server will use the default value of 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] if omitted the server will use the default value of 0 - **compression_codec** | **str**| The codec used for compressing your logs. 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] **user** | **str**| 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** | **str**| 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** | **str**| 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] @@ -427,14 +427,14 @@ with fastly.ApiClient(configuration) as api_client: logging_gcs_name = "test-log-endpoint" # str | The name for the real-time logging configuration. name = "test-log-endpoint" # str | The name for the real-time logging configuration. (optional) placement = "none" # str, none_type | Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. (optional) - 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`. (optional) if omitted the server will use the default value of 2 response_condition = "response_condition_example" # str, none_type | The name of an existing condition in the configured endpoint, or leave blank to always execute. (optional) format = "%h %l %u %t "%r" %>s %b" # str | A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). (optional) if omitted the server will use the default value of "%h %l %u %t "%r" %>s %b" + 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`. (optional) if omitted the server will use the default value of 2 message_type = "classic" # str | How the message should be formatted. (optional) if omitted the server will use the default value of "classic" timestamp_format = "%Y-%m-%dT%H:%M:%S.000" # str, none_type | A timestamp format (optional) + compression_codec = "zstd" # str | The codec used for compressing your logs. 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) period = 3600 # int | How frequently log files are finalized so they can be available for reading (in seconds). (optional) if omitted the server will use the default value of 3600 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. (optional) if omitted the server will use the default value of 0 - compression_codec = "zstd" # str | The codec used for compressing your logs. 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) user = "test-user@test-project-id.iam.gserviceaccount.com" # str | 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 = '''-----BEGIN PRIVATE KEY----- ... @@ -461,7 +461,7 @@ with fastly.ApiClient(configuration) as api_client: # and optional values try: # Update a GCS log endpoint - api_response = api_instance.update_log_gcs(service_id, version_id, logging_gcs_name, 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) + api_response = api_instance.update_log_gcs(service_id, version_id, logging_gcs_name, name=name, placement=placement, 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, user=user, secret_key=secret_key, account_name=account_name, bucket_name=bucket_name, path=path, public_key=public_key, project_id=project_id) pprint(api_response) except fastly.ApiException as e: print("Exception when calling LoggingGcsApi->update_log_gcs: %s\n" % e) @@ -477,14 +477,14 @@ Name | Type | Description | Notes **logging_gcs_name** | **str**| The name for the real-time logging configuration. | **name** | **str**| The name for the real-time logging configuration. | [optional] **placement** | **str, none_type**| Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. | [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] if omitted the server will use the default value of 2 **response_condition** | **str, none_type**| The name of an existing condition in the configured endpoint, or leave blank to always execute. | [optional] **format** | **str**| A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). | [optional] if omitted the server will use the default value of "%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] if omitted the server will use the default value of 2 **message_type** | **str**| How the message should be formatted. | [optional] if omitted the server will use the default value of "classic" **timestamp_format** | **str, none_type**| A timestamp format | [optional] + **compression_codec** | **str**| The codec used for compressing your logs. 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] **period** | **int**| How frequently log files are finalized so they can be available for reading (in seconds). | [optional] if omitted the server will use the default value of 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] if omitted the server will use the default value of 0 - **compression_codec** | **str**| The codec used for compressing your logs. 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] **user** | **str**| 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** | **str**| 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** | **str**| 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/LoggingGcsResponse.md b/docs/LoggingGcsResponse.md index de32bf2..7594af6 100644 --- a/docs/LoggingGcsResponse.md +++ b/docs/LoggingGcsResponse.md @@ -6,26 +6,26 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **name** | **str** | The name for the real-time logging configuration. | [optional] **placement** | **str, none_type** | Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. | [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] if omitted the server will use the default value of 2 **response_condition** | **str, none_type** | The name of an existing condition in the configured endpoint, or leave blank to always execute. | [optional] **format** | **str** | A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). | [optional] if omitted the server will use the default value of "%h %l %u %t "%r" %>s %b" +**format_version** | **str** | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. | [optional] if omitted the server will use the default value of "2" **message_type** | **str** | How the message should be formatted. | [optional] if omitted the server will use the default value of "classic" **timestamp_format** | **str, none_type** | A timestamp format | [optional] [readonly] -**period** | **int** | How frequently log files are finalized so they can be available for reading (in seconds). | [optional] if omitted the server will use the default value of 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] if omitted the server will use the default value of 0 **compression_codec** | **str** | The codec used for compressing your logs. 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] +**period** | **str** | How frequently log files are finalized so they can be available for reading (in seconds). | [optional] if omitted the server will use the default value of "3600" +**gzip_level** | **str** | 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] if omitted the server will use the default value of "0" **user** | **str** | 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** | **str** | 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** | **str** | 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** | **str** | The name of the GCS bucket. | [optional] -**path** | **str** | | [optional] if omitted the server will use the default value of "/" -**public_key** | **str, none_type** | A PGP public key that Fastly will use to encrypt your log files before writing them to disk. | [optional] if omitted the server will use the default value of "null" -**project_id** | **str** | Your Google Cloud Platform project ID. Required | [optional] **created_at** | **datetime, none_type** | Date and time in ISO 8601 format. | [optional] [readonly] **deleted_at** | **datetime, none_type** | Date and time in ISO 8601 format. | [optional] [readonly] **updated_at** | **datetime, none_type** | Date and time in ISO 8601 format. | [optional] [readonly] **service_id** | **str** | | [optional] [readonly] -**version** | **int** | | [optional] [readonly] +**version** | **str** | | [optional] [readonly] +**bucket_name** | **str** | The name of the GCS bucket. | [optional] +**path** | **str** | | [optional] if omitted the server will use the default value of "/" +**public_key** | **str, none_type** | A PGP public key that Fastly will use to encrypt your log files before writing them to disk. | [optional] if omitted the server will use the default value of "null" +**project_id** | **str** | Your Google Cloud Platform project ID. Required | [optional] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/LoggingGenericCommon.md b/docs/LoggingGenericCommon.md index 667359f..9a1a010 100644 --- a/docs/LoggingGenericCommon.md +++ b/docs/LoggingGenericCommon.md @@ -6,8 +6,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **message_type** | **str** | How the message should be formatted. | [optional] if omitted the server will use the default value of "classic" **timestamp_format** | **str, none_type** | A timestamp format | [optional] [readonly] -**period** | **int** | How frequently log files are finalized so they can be available for reading (in seconds). | [optional] if omitted the server will use the default value of 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] if omitted the server will use the default value of 0 **compression_codec** | **str** | The codec used for compressing your logs. 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] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] diff --git a/docs/LoggingGenericCommonResponse.md b/docs/LoggingGenericCommonResponse.md new file mode 100644 index 0000000..626df67 --- /dev/null +++ b/docs/LoggingGenericCommonResponse.md @@ -0,0 +1,16 @@ +# LoggingGenericCommonResponse + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**message_type** | **str** | How the message should be formatted. | [optional] if omitted the server will use the default value of "classic" +**timestamp_format** | **str, none_type** | A timestamp format | [optional] [readonly] +**compression_codec** | **str** | The codec used for compressing your logs. 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] +**period** | **str** | How frequently log files are finalized so they can be available for reading (in seconds). | [optional] if omitted the server will use the default value of "3600" +**gzip_level** | **str** | 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] if omitted the server will use the default value of "0" +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/LoggingGenericCommonResponseAllOf.md b/docs/LoggingGenericCommonResponseAllOf.md new file mode 100644 index 0000000..b84d32c --- /dev/null +++ b/docs/LoggingGenericCommonResponseAllOf.md @@ -0,0 +1,14 @@ +# LoggingGenericCommonResponseAllOf + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**message_type** | **str** | How the message should be formatted. | [optional] if omitted the server will use the default value of "classic" +**timestamp_format** | **str, none_type** | A timestamp format | [optional] [readonly] +**compression_codec** | **str** | The codec used for compressing your logs. 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] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/LoggingGenericCommonResponseAllOf1.md b/docs/LoggingGenericCommonResponseAllOf1.md new file mode 100644 index 0000000..23c93be --- /dev/null +++ b/docs/LoggingGenericCommonResponseAllOf1.md @@ -0,0 +1,13 @@ +# LoggingGenericCommonResponseAllOf1 + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**period** | **str** | How frequently log files are finalized so they can be available for reading (in seconds). | [optional] if omitted the server will use the default value of "3600" +**gzip_level** | **str** | 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] if omitted the server will use the default value of "0" +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/LoggingGooglePubsub.md b/docs/LoggingGooglePubsub.md deleted file mode 100644 index 83d478b..0000000 --- a/docs/LoggingGooglePubsub.md +++ /dev/null @@ -1,21 +0,0 @@ -# LoggingGooglePubsub - - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **str** | The name for the real-time logging configuration. | [optional] -**placement** | **str, none_type** | Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. | [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] if omitted the server will use the default value of 2 -**response_condition** | **str, none_type** | The name of an existing condition in the configured endpoint, or leave blank to always execute. | [optional] -**format** | **str** | A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). | [optional] if omitted the server will use the default value of "%h %l %u %t "%r" %>s %b" -**user** | **str** | 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** | **str** | 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** | **str** | 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** | **str** | The Google Cloud Pub/Sub topic to which logs will be published. Required. | [optional] -**project_id** | **str** | Your Google Cloud Platform project ID. Required | [optional] -**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/LoggingGooglePubsubAllOf.md b/docs/LoggingGooglePubsubAdditional.md similarity index 96% rename from docs/LoggingGooglePubsubAllOf.md rename to docs/LoggingGooglePubsubAdditional.md index 0fceead..2ea80d6 100644 --- a/docs/LoggingGooglePubsubAllOf.md +++ b/docs/LoggingGooglePubsubAdditional.md @@ -1,4 +1,4 @@ -# LoggingGooglePubsubAllOf +# LoggingGooglePubsubAdditional ## Properties diff --git a/docs/LoggingGooglePubsubResponse.md b/docs/LoggingGooglePubsubResponse.md index 7bcb57b..1ce7149 100644 --- a/docs/LoggingGooglePubsubResponse.md +++ b/docs/LoggingGooglePubsubResponse.md @@ -6,9 +6,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **name** | **str** | The name for the real-time logging configuration. | [optional] **placement** | **str, none_type** | Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. | [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] if omitted the server will use the default value of 2 **response_condition** | **str, none_type** | The name of an existing condition in the configured endpoint, or leave blank to always execute. | [optional] **format** | **str** | A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). | [optional] if omitted the server will use the default value of "%h %l %u %t "%r" %>s %b" +**format_version** | **str** | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. | [optional] if omitted the server will use the default value of "2" **user** | **str** | 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** | **str** | 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** | **str** | 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, none_type** | Date and time in ISO 8601 format. | [optional] [readonly] **updated_at** | **datetime, none_type** | Date and time in ISO 8601 format. | [optional] [readonly] **service_id** | **str** | | [optional] [readonly] -**version** | **int** | | [optional] [readonly] +**version** | **str** | | [optional] [readonly] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/LoggingHeroku.md b/docs/LoggingHeroku.md deleted file mode 100644 index 4b818d5..0000000 --- a/docs/LoggingHeroku.md +++ /dev/null @@ -1,18 +0,0 @@ -# LoggingHeroku - - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **str** | The name for the real-time logging configuration. | [optional] -**placement** | **str, none_type** | Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. | [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] if omitted the server will use the default value of 2 -**response_condition** | **str, none_type** | The name of an existing condition in the configured endpoint, or leave blank to always execute. | [optional] -**format** | **str** | A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). | [optional] if omitted the server will use the default value of "%h %l %u %t "%r" %>s %b" -**token** | **str** | 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** | **str** | The URL to stream logs to. | [optional] -**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/LoggingHerokuAllOf.md b/docs/LoggingHerokuAdditional.md similarity index 96% rename from docs/LoggingHerokuAllOf.md rename to docs/LoggingHerokuAdditional.md index ade2f01..ea1158f 100644 --- a/docs/LoggingHerokuAllOf.md +++ b/docs/LoggingHerokuAdditional.md @@ -1,4 +1,4 @@ -# LoggingHerokuAllOf +# LoggingHerokuAdditional ## Properties diff --git a/docs/LoggingHerokuApi.md b/docs/LoggingHerokuApi.md index 35b23db..1679aed 100644 --- a/docs/LoggingHerokuApi.md +++ b/docs/LoggingHerokuApi.md @@ -53,9 +53,9 @@ with fastly.ApiClient(configuration) as api_client: version_id = 1 # int | Integer identifying a service version. name = "test-log-endpoint" # str | The name for the real-time logging configuration. (optional) placement = "none" # str, none_type | Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. (optional) - 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`. (optional) if omitted the server will use the default value of 2 response_condition = "response_condition_example" # str, none_type | The name of an existing condition in the configured endpoint, or leave blank to always execute. (optional) format = "%h %l %u %t "%r" %>s %b" # str | A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). (optional) if omitted the server will use the default value of "%h %l %u %t "%r" %>s %b" + 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`. (optional) if omitted the server will use the default value of 2 token = "token_example" # str | 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 = "url_example" # str | The URL to stream logs to. (optional) @@ -71,7 +71,7 @@ with fastly.ApiClient(configuration) as api_client: # and optional values try: # Create a Heroku log endpoint - api_response = api_instance.create_log_heroku(service_id, version_id, name=name, placement=placement, format_version=format_version, response_condition=response_condition, format=format, token=token, url=url) + api_response = api_instance.create_log_heroku(service_id, version_id, name=name, placement=placement, response_condition=response_condition, format=format, format_version=format_version, token=token, url=url) pprint(api_response) except fastly.ApiException as e: print("Exception when calling LoggingHerokuApi->create_log_heroku: %s\n" % e) @@ -86,9 +86,9 @@ Name | Type | Description | Notes **version_id** | **int**| Integer identifying a service version. | **name** | **str**| The name for the real-time logging configuration. | [optional] **placement** | **str, none_type**| Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. | [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] if omitted the server will use the default value of 2 **response_condition** | **str, none_type**| The name of an existing condition in the configured endpoint, or leave blank to always execute. | [optional] **format** | **str**| A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). | [optional] if omitted the server will use the default value of "%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] if omitted the server will use the default value of 2 **token** | **str**| 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** | **str**| The URL to stream logs to. | [optional] @@ -401,9 +401,9 @@ with fastly.ApiClient(configuration) as api_client: logging_heroku_name = "test-log-endpoint" # str | The name for the real-time logging configuration. name = "test-log-endpoint" # str | The name for the real-time logging configuration. (optional) placement = "none" # str, none_type | Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. (optional) - 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`. (optional) if omitted the server will use the default value of 2 response_condition = "response_condition_example" # str, none_type | The name of an existing condition in the configured endpoint, or leave blank to always execute. (optional) format = "%h %l %u %t "%r" %>s %b" # str | A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). (optional) if omitted the server will use the default value of "%h %l %u %t "%r" %>s %b" + 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`. (optional) if omitted the server will use the default value of 2 token = "token_example" # str | 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 = "url_example" # str | The URL to stream logs to. (optional) @@ -419,7 +419,7 @@ with fastly.ApiClient(configuration) as api_client: # and optional values try: # Update the Heroku log endpoint - api_response = api_instance.update_log_heroku(service_id, version_id, logging_heroku_name, name=name, placement=placement, format_version=format_version, response_condition=response_condition, format=format, token=token, url=url) + api_response = api_instance.update_log_heroku(service_id, version_id, logging_heroku_name, name=name, placement=placement, response_condition=response_condition, format=format, format_version=format_version, token=token, url=url) pprint(api_response) except fastly.ApiException as e: print("Exception when calling LoggingHerokuApi->update_log_heroku: %s\n" % e) @@ -435,9 +435,9 @@ Name | Type | Description | Notes **logging_heroku_name** | **str**| The name for the real-time logging configuration. | **name** | **str**| The name for the real-time logging configuration. | [optional] **placement** | **str, none_type**| Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. | [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] if omitted the server will use the default value of 2 **response_condition** | **str, none_type**| The name of an existing condition in the configured endpoint, or leave blank to always execute. | [optional] **format** | **str**| A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). | [optional] if omitted the server will use the default value of "%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] if omitted the server will use the default value of 2 **token** | **str**| 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** | **str**| The URL to stream logs to. | [optional] diff --git a/docs/LoggingHerokuResponse.md b/docs/LoggingHerokuResponse.md index 1331b8a..01d9aa6 100644 --- a/docs/LoggingHerokuResponse.md +++ b/docs/LoggingHerokuResponse.md @@ -6,16 +6,16 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **name** | **str** | The name for the real-time logging configuration. | [optional] **placement** | **str, none_type** | Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. | [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] if omitted the server will use the default value of 2 **response_condition** | **str, none_type** | The name of an existing condition in the configured endpoint, or leave blank to always execute. | [optional] **format** | **str** | A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). | [optional] if omitted the server will use the default value of "%h %l %u %t "%r" %>s %b" +**format_version** | **str** | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. | [optional] if omitted the server will use the default value of "2" **token** | **str** | 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** | **str** | The URL to stream logs to. | [optional] **created_at** | **datetime, none_type** | Date and time in ISO 8601 format. | [optional] [readonly] **deleted_at** | **datetime, none_type** | Date and time in ISO 8601 format. | [optional] [readonly] **updated_at** | **datetime, none_type** | Date and time in ISO 8601 format. | [optional] [readonly] **service_id** | **str** | | [optional] [readonly] -**version** | **int** | | [optional] [readonly] +**version** | **str** | | [optional] [readonly] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/LoggingHoneycomb.md b/docs/LoggingHoneycomb.md deleted file mode 100644 index 07bd209..0000000 --- a/docs/LoggingHoneycomb.md +++ /dev/null @@ -1,18 +0,0 @@ -# LoggingHoneycomb - - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **str** | The name for the real-time logging configuration. | [optional] -**placement** | **str, none_type** | Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. | [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] if omitted the server will use the default value of 2 -**response_condition** | **str, none_type** | The name of an existing condition in the configured endpoint, or leave blank to always execute. | [optional] -**format** | **str** | A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). Must produce valid JSON that Honeycomb can ingest. | [optional] -**dataset** | **str** | The Honeycomb Dataset you want to log to. | [optional] -**token** | **str** | The Write Key from the Account page of your Honeycomb account. | [optional] -**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/LoggingHoneycombAllOf.md b/docs/LoggingHoneycombAdditional.md similarity index 96% rename from docs/LoggingHoneycombAllOf.md rename to docs/LoggingHoneycombAdditional.md index d6268e7..c6865b7 100644 --- a/docs/LoggingHoneycombAllOf.md +++ b/docs/LoggingHoneycombAdditional.md @@ -1,4 +1,4 @@ -# LoggingHoneycombAllOf +# LoggingHoneycombAdditional ## Properties diff --git a/docs/LoggingHoneycombApi.md b/docs/LoggingHoneycombApi.md index 07febdb..9bda068 100644 --- a/docs/LoggingHoneycombApi.md +++ b/docs/LoggingHoneycombApi.md @@ -12,7 +12,7 @@ Method | HTTP request | Description # **create_log_honeycomb** -> LoggingHoneycomb create_log_honeycomb(service_id, version_id) +> LoggingHoneycombResponse create_log_honeycomb(service_id, version_id) Create a Honeycomb log endpoint @@ -26,7 +26,7 @@ Create a Honeycomb logging object for a particular service and version. import time import fastly from fastly.api import logging_honeycomb_api -from fastly.model.logging_honeycomb import LoggingHoneycomb +from fastly.model.logging_honeycomb_response import LoggingHoneycombResponse from pprint import pprint # Defining the host is optional and defaults to https://api.fastly.com # See configuration.py for a list of all supported configuration parameters. @@ -53,9 +53,9 @@ with fastly.ApiClient(configuration) as api_client: version_id = 1 # int | Integer identifying a service version. name = "test-log-endpoint" # str | The name for the real-time logging configuration. (optional) placement = "none" # str, none_type | Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. (optional) - 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`. (optional) if omitted the server will use the default value of 2 response_condition = "response_condition_example" # str, none_type | The name of an existing condition in the configured endpoint, or leave blank to always execute. (optional) format = "format_example" # str | 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 = 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`. (optional) if omitted the server will use the default value of 2 dataset = "dataset_example" # str | The Honeycomb Dataset you want to log to. (optional) token = "token_example" # str | The Write Key from the Account page of your Honeycomb account. (optional) @@ -71,7 +71,7 @@ with fastly.ApiClient(configuration) as api_client: # and optional values try: # Create a Honeycomb log endpoint - api_response = api_instance.create_log_honeycomb(service_id, version_id, name=name, placement=placement, format_version=format_version, response_condition=response_condition, format=format, dataset=dataset, token=token) + api_response = api_instance.create_log_honeycomb(service_id, version_id, name=name, placement=placement, response_condition=response_condition, format=format, format_version=format_version, dataset=dataset, token=token) pprint(api_response) except fastly.ApiException as e: print("Exception when calling LoggingHoneycombApi->create_log_honeycomb: %s\n" % e) @@ -86,15 +86,15 @@ Name | Type | Description | Notes **version_id** | **int**| Integer identifying a service version. | **name** | **str**| The name for the real-time logging configuration. | [optional] **placement** | **str, none_type**| Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. | [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] if omitted the server will use the default value of 2 **response_condition** | **str, none_type**| The name of an existing condition in the configured endpoint, or leave blank to always execute. | [optional] **format** | **str**| 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] if omitted the server will use the default value of 2 **dataset** | **str**| The Honeycomb Dataset you want to log to. | [optional] **token** | **str**| The Write Key from the Account page of your Honeycomb account. | [optional] ### Return type -[**LoggingHoneycomb**](LoggingHoneycomb.md) +[**LoggingHoneycombResponse**](LoggingHoneycombResponse.md) ### Authorization @@ -197,7 +197,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **get_log_honeycomb** -> LoggingHoneycomb get_log_honeycomb(service_id, version_id, logging_honeycomb_name) +> LoggingHoneycombResponse get_log_honeycomb(service_id, version_id, logging_honeycomb_name) Get a Honeycomb log endpoint @@ -211,7 +211,7 @@ Get the details of a Honeycomb logging object for a particular service and versi import time import fastly from fastly.api import logging_honeycomb_api -from fastly.model.logging_honeycomb import LoggingHoneycomb +from fastly.model.logging_honeycomb_response import LoggingHoneycombResponse from pprint import pprint # Defining the host is optional and defaults to https://api.fastly.com # See configuration.py for a list of all supported configuration parameters. @@ -258,7 +258,7 @@ Name | Type | Description | Notes ### Return type -[**LoggingHoneycomb**](LoggingHoneycomb.md) +[**LoggingHoneycombResponse**](LoggingHoneycombResponse.md) ### Authorization @@ -401,9 +401,9 @@ with fastly.ApiClient(configuration) as api_client: logging_honeycomb_name = "test-log-endpoint" # str | The name for the real-time logging configuration. name = "test-log-endpoint" # str | The name for the real-time logging configuration. (optional) placement = "none" # str, none_type | Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. (optional) - 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`. (optional) if omitted the server will use the default value of 2 response_condition = "response_condition_example" # str, none_type | The name of an existing condition in the configured endpoint, or leave blank to always execute. (optional) format = "format_example" # str | 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 = 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`. (optional) if omitted the server will use the default value of 2 dataset = "dataset_example" # str | The Honeycomb Dataset you want to log to. (optional) token = "token_example" # str | The Write Key from the Account page of your Honeycomb account. (optional) @@ -419,7 +419,7 @@ with fastly.ApiClient(configuration) as api_client: # and optional values try: # Update a Honeycomb log endpoint - api_response = api_instance.update_log_honeycomb(service_id, version_id, logging_honeycomb_name, name=name, placement=placement, format_version=format_version, response_condition=response_condition, format=format, dataset=dataset, token=token) + api_response = api_instance.update_log_honeycomb(service_id, version_id, logging_honeycomb_name, name=name, placement=placement, response_condition=response_condition, format=format, format_version=format_version, dataset=dataset, token=token) pprint(api_response) except fastly.ApiException as e: print("Exception when calling LoggingHoneycombApi->update_log_honeycomb: %s\n" % e) @@ -435,9 +435,9 @@ Name | Type | Description | Notes **logging_honeycomb_name** | **str**| The name for the real-time logging configuration. | **name** | **str**| The name for the real-time logging configuration. | [optional] **placement** | **str, none_type**| Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. | [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] if omitted the server will use the default value of 2 **response_condition** | **str, none_type**| The name of an existing condition in the configured endpoint, or leave blank to always execute. | [optional] **format** | **str**| 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] if omitted the server will use the default value of 2 **dataset** | **str**| The Honeycomb Dataset you want to log to. | [optional] **token** | **str**| The Write Key from the Account page of your Honeycomb account. | [optional] diff --git a/docs/LoggingHoneycombResponse.md b/docs/LoggingHoneycombResponse.md index 43bff32..fd6ffeb 100644 --- a/docs/LoggingHoneycombResponse.md +++ b/docs/LoggingHoneycombResponse.md @@ -6,16 +6,16 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **name** | **str** | The name for the real-time logging configuration. | [optional] **placement** | **str, none_type** | Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. | [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] if omitted the server will use the default value of 2 **response_condition** | **str, none_type** | The name of an existing condition in the configured endpoint, or leave blank to always execute. | [optional] **format** | **str** | 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** | **str** | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. | [optional] if omitted the server will use the default value of "2" **dataset** | **str** | The Honeycomb Dataset you want to log to. | [optional] **token** | **str** | The Write Key from the Account page of your Honeycomb account. | [optional] **created_at** | **datetime, none_type** | Date and time in ISO 8601 format. | [optional] [readonly] **deleted_at** | **datetime, none_type** | Date and time in ISO 8601 format. | [optional] [readonly] **updated_at** | **datetime, none_type** | Date and time in ISO 8601 format. | [optional] [readonly] **service_id** | **str** | | [optional] [readonly] -**version** | **int** | | [optional] [readonly] +**version** | **str** | | [optional] [readonly] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/LoggingHttps.md b/docs/LoggingHttps.md deleted file mode 100644 index cde2700..0000000 --- a/docs/LoggingHttps.md +++ /dev/null @@ -1,29 +0,0 @@ -# LoggingHttps - - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **str** | The name for the real-time logging configuration. | [optional] -**placement** | **str, none_type** | Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. | [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] if omitted the server will use the default value of 2 -**response_condition** | **str, none_type** | The name of an existing condition in the configured endpoint, or leave blank to always execute. | [optional] -**format** | **str** | A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). | [optional] if omitted the server will use the default value of "%h %l %u %t "%r" %>s %b" -**tls_ca_cert** | **str, none_type** | A secure certificate to authenticate a server with. Must be in PEM format. | [optional] if omitted the server will use the default value of "null" -**tls_client_cert** | **str, none_type** | The client certificate used to make authenticated requests. Must be in PEM format. | [optional] if omitted the server will use the default value of "null" -**tls_client_key** | **str, none_type** | The client private key used to make authenticated requests. Must be in PEM format. | [optional] if omitted the server will use the default value of "null" -**tls_hostname** | **str, none_type** | 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] if omitted the server will use the default value of "null" -**request_max_entries** | **int** | The maximum number of logs sent in one request. Defaults `0` (10k). | [optional] if omitted the server will use the default value of 0 -**request_max_bytes** | **int** | The maximum number of bytes sent in one request. Defaults `0` (100MB). | [optional] if omitted the server will use the default value of 0 -**url** | **str** | The URL to send logs to. Must use HTTPS. Required. | [optional] -**content_type** | **str, none_type** | Content type of the header sent with the request. | [optional] if omitted the server will use the default value of "null" -**header_name** | **str, none_type** | Name of the custom header sent with the request. | [optional] if omitted the server will use the default value of "null" -**message_type** | [**LoggingMessageType**](LoggingMessageType.md) | | [optional] -**header_value** | **str, none_type** | Value of the custom header sent with the request. | [optional] if omitted the server will use the default value of "null" -**method** | **str** | HTTP method used for request. | [optional] if omitted the server will use the default value of "POST" -**json_format** | **str** | Enforces valid JSON formatting for log entries. | [optional] -**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/LoggingHttpsAllOf.md b/docs/LoggingHttpsAdditional.md similarity index 98% rename from docs/LoggingHttpsAllOf.md rename to docs/LoggingHttpsAdditional.md index d70ccbc..490bdea 100644 --- a/docs/LoggingHttpsAllOf.md +++ b/docs/LoggingHttpsAdditional.md @@ -1,4 +1,4 @@ -# LoggingHttpsAllOf +# LoggingHttpsAdditional ## Properties diff --git a/docs/LoggingHttpsApi.md b/docs/LoggingHttpsApi.md index 22f37de..8167b81 100644 --- a/docs/LoggingHttpsApi.md +++ b/docs/LoggingHttpsApi.md @@ -54,9 +54,9 @@ with fastly.ApiClient(configuration) as api_client: version_id = 1 # int | Integer identifying a service version. name = "test-log-endpoint" # str | The name for the real-time logging configuration. (optional) placement = "none" # str, none_type | Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. (optional) - 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`. (optional) if omitted the server will use the default value of 2 response_condition = "response_condition_example" # str, none_type | The name of an existing condition in the configured endpoint, or leave blank to always execute. (optional) format = "%h %l %u %t "%r" %>s %b" # str | A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). (optional) if omitted the server will use the default value of "%h %l %u %t "%r" %>s %b" + 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`. (optional) if omitted the server will use the default value of 2 tls_ca_cert = "null" # str, none_type | A secure certificate to authenticate a server with. Must be in PEM format. (optional) if omitted the server will use the default value of "null" tls_client_cert = "null" # str, none_type | The client certificate used to make authenticated requests. Must be in PEM format. (optional) if omitted the server will use the default value of "null" tls_client_key = "null" # str, none_type | The client private key used to make authenticated requests. Must be in PEM format. (optional) if omitted the server will use the default value of "null" @@ -83,7 +83,7 @@ with fastly.ApiClient(configuration) as api_client: # and optional values try: # Create an HTTPS log endpoint - api_response = api_instance.create_log_https(service_id, version_id, 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) + api_response = api_instance.create_log_https(service_id, version_id, name=name, placement=placement, 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, 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) pprint(api_response) except fastly.ApiException as e: print("Exception when calling LoggingHttpsApi->create_log_https: %s\n" % e) @@ -98,9 +98,9 @@ Name | Type | Description | Notes **version_id** | **int**| Integer identifying a service version. | **name** | **str**| The name for the real-time logging configuration. | [optional] **placement** | **str, none_type**| Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. | [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] if omitted the server will use the default value of 2 **response_condition** | **str, none_type**| The name of an existing condition in the configured endpoint, or leave blank to always execute. | [optional] **format** | **str**| A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). | [optional] if omitted the server will use the default value of "%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] if omitted the server will use the default value of 2 **tls_ca_cert** | **str, none_type**| A secure certificate to authenticate a server with. Must be in PEM format. | [optional] if omitted the server will use the default value of "null" **tls_client_cert** | **str, none_type**| The client certificate used to make authenticated requests. Must be in PEM format. | [optional] if omitted the server will use the default value of "null" **tls_client_key** | **str, none_type**| The client private key used to make authenticated requests. Must be in PEM format. | [optional] if omitted the server will use the default value of "null" @@ -425,9 +425,9 @@ with fastly.ApiClient(configuration) as api_client: logging_https_name = "test-log-endpoint" # str | The name for the real-time logging configuration. name = "test-log-endpoint" # str | The name for the real-time logging configuration. (optional) placement = "none" # str, none_type | Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. (optional) - 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`. (optional) if omitted the server will use the default value of 2 response_condition = "response_condition_example" # str, none_type | The name of an existing condition in the configured endpoint, or leave blank to always execute. (optional) format = "%h %l %u %t "%r" %>s %b" # str | A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). (optional) if omitted the server will use the default value of "%h %l %u %t "%r" %>s %b" + 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`. (optional) if omitted the server will use the default value of 2 tls_ca_cert = "null" # str, none_type | A secure certificate to authenticate a server with. Must be in PEM format. (optional) if omitted the server will use the default value of "null" tls_client_cert = "null" # str, none_type | The client certificate used to make authenticated requests. Must be in PEM format. (optional) if omitted the server will use the default value of "null" tls_client_key = "null" # str, none_type | The client private key used to make authenticated requests. Must be in PEM format. (optional) if omitted the server will use the default value of "null" @@ -454,7 +454,7 @@ with fastly.ApiClient(configuration) as api_client: # and optional values try: # Update an HTTPS log endpoint - api_response = api_instance.update_log_https(service_id, version_id, logging_https_name, 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) + api_response = api_instance.update_log_https(service_id, version_id, logging_https_name, name=name, placement=placement, 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, 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) pprint(api_response) except fastly.ApiException as e: print("Exception when calling LoggingHttpsApi->update_log_https: %s\n" % e) @@ -470,9 +470,9 @@ Name | Type | Description | Notes **logging_https_name** | **str**| The name for the real-time logging configuration. | **name** | **str**| The name for the real-time logging configuration. | [optional] **placement** | **str, none_type**| Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. | [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] if omitted the server will use the default value of 2 **response_condition** | **str, none_type**| The name of an existing condition in the configured endpoint, or leave blank to always execute. | [optional] **format** | **str**| A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). | [optional] if omitted the server will use the default value of "%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] if omitted the server will use the default value of 2 **tls_ca_cert** | **str, none_type**| A secure certificate to authenticate a server with. Must be in PEM format. | [optional] if omitted the server will use the default value of "null" **tls_client_cert** | **str, none_type**| The client certificate used to make authenticated requests. Must be in PEM format. | [optional] if omitted the server will use the default value of "null" **tls_client_key** | **str, none_type**| The client private key used to make authenticated requests. Must be in PEM format. | [optional] if omitted the server will use the default value of "null" diff --git a/docs/LoggingHttpsResponse.md b/docs/LoggingHttpsResponse.md index f7a69ab..00e3bc0 100644 --- a/docs/LoggingHttpsResponse.md +++ b/docs/LoggingHttpsResponse.md @@ -6,9 +6,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **name** | **str** | The name for the real-time logging configuration. | [optional] **placement** | **str, none_type** | Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. | [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] if omitted the server will use the default value of 2 **response_condition** | **str, none_type** | The name of an existing condition in the configured endpoint, or leave blank to always execute. | [optional] **format** | **str** | A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). | [optional] if omitted the server will use the default value of "%h %l %u %t "%r" %>s %b" +**format_version** | **str** | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. | [optional] if omitted the server will use the default value of "2" **tls_ca_cert** | **str, none_type** | A secure certificate to authenticate a server with. Must be in PEM format. | [optional] if omitted the server will use the default value of "null" **tls_client_cert** | **str, none_type** | The client certificate used to make authenticated requests. Must be in PEM format. | [optional] if omitted the server will use the default value of "null" **tls_client_key** | **str, none_type** | The client private key used to make authenticated requests. Must be in PEM format. | [optional] if omitted the server will use the default value of "null" @@ -26,7 +26,7 @@ Name | Type | Description | Notes **deleted_at** | **datetime, none_type** | Date and time in ISO 8601 format. | [optional] [readonly] **updated_at** | **datetime, none_type** | Date and time in ISO 8601 format. | [optional] [readonly] **service_id** | **str** | | [optional] [readonly] -**version** | **int** | | [optional] [readonly] +**version** | **str** | | [optional] [readonly] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/LoggingKafkaAllOf.md b/docs/LoggingKafkaAdditional.md similarity index 98% rename from docs/LoggingKafkaAllOf.md rename to docs/LoggingKafkaAdditional.md index dba2547..3270b19 100644 --- a/docs/LoggingKafkaAllOf.md +++ b/docs/LoggingKafkaAdditional.md @@ -1,4 +1,4 @@ -# LoggingKafkaAllOf +# LoggingKafkaAdditional ## Properties diff --git a/docs/LoggingKafkaApi.md b/docs/LoggingKafkaApi.md index db6ea15..41a0ef0 100644 --- a/docs/LoggingKafkaApi.md +++ b/docs/LoggingKafkaApi.md @@ -12,7 +12,7 @@ Method | HTTP request | Description # **create_log_kafka** -> LoggingKafkaResponse create_log_kafka(service_id, version_id) +> LoggingKafkaResponsePost create_log_kafka(service_id, version_id) Create a Kafka log endpoint @@ -26,7 +26,7 @@ Create a Kafka logging endpoint for a particular service and version. import time import fastly from fastly.api import logging_kafka_api -from fastly.model.logging_kafka_response import LoggingKafkaResponse +from fastly.model.logging_kafka_response_post import LoggingKafkaResponsePost from fastly.model.logging_use_tls import LoggingUseTls from pprint import pprint # Defining the host is optional and defaults to https://api.fastly.com @@ -54,9 +54,9 @@ with fastly.ApiClient(configuration) as api_client: version_id = 1 # int | Integer identifying a service version. name = "test-log-endpoint" # str | The name for the real-time logging configuration. (optional) placement = "none" # str, none_type | Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. (optional) - 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`. (optional) if omitted the server will use the default value of 2 response_condition = "response_condition_example" # str, none_type | The name of an existing condition in the configured endpoint, or leave blank to always execute. (optional) format = "%h %l %u %t "%r" %>s %b" # str | A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). (optional) if omitted the server will use the default value of "%h %l %u %t "%r" %>s %b" + 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`. (optional) if omitted the server will use the default value of 2 tls_ca_cert = "null" # str, none_type | A secure certificate to authenticate a server with. Must be in PEM format. (optional) if omitted the server will use the default value of "null" tls_client_cert = "null" # str, none_type | The client certificate used to make authenticated requests. Must be in PEM format. (optional) if omitted the server will use the default value of "null" tls_client_key = "null" # str, none_type | The client private key used to make authenticated requests. Must be in PEM format. (optional) if omitted the server will use the default value of "null" @@ -84,7 +84,7 @@ with fastly.ApiClient(configuration) as api_client: # and optional values try: # Create a Kafka log endpoint - api_response = api_instance.create_log_kafka(service_id, version_id, 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, topic=topic, brokers=brokers, compression_codec=compression_codec, required_acks=required_acks, request_max_bytes=request_max_bytes, parse_log_keyvals=parse_log_keyvals, auth_method=auth_method, user=user, password=password, use_tls=use_tls) + api_response = api_instance.create_log_kafka(service_id, version_id, name=name, placement=placement, 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, topic=topic, brokers=brokers, compression_codec=compression_codec, required_acks=required_acks, request_max_bytes=request_max_bytes, parse_log_keyvals=parse_log_keyvals, auth_method=auth_method, user=user, password=password, use_tls=use_tls) pprint(api_response) except fastly.ApiException as e: print("Exception when calling LoggingKafkaApi->create_log_kafka: %s\n" % e) @@ -99,9 +99,9 @@ Name | Type | Description | Notes **version_id** | **int**| Integer identifying a service version. | **name** | **str**| The name for the real-time logging configuration. | [optional] **placement** | **str, none_type**| Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. | [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] if omitted the server will use the default value of 2 **response_condition** | **str, none_type**| The name of an existing condition in the configured endpoint, or leave blank to always execute. | [optional] **format** | **str**| A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). | [optional] if omitted the server will use the default value of "%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] if omitted the server will use the default value of 2 **tls_ca_cert** | **str, none_type**| A secure certificate to authenticate a server with. Must be in PEM format. | [optional] if omitted the server will use the default value of "null" **tls_client_cert** | **str, none_type**| The client certificate used to make authenticated requests. Must be in PEM format. | [optional] if omitted the server will use the default value of "null" **tls_client_key** | **str, none_type**| The client private key used to make authenticated requests. Must be in PEM format. | [optional] if omitted the server will use the default value of "null" @@ -119,7 +119,7 @@ Name | Type | Description | Notes ### Return type -[**LoggingKafkaResponse**](LoggingKafkaResponse.md) +[**LoggingKafkaResponsePost**](LoggingKafkaResponsePost.md) ### Authorization diff --git a/docs/LoggingKafkaResponse.md b/docs/LoggingKafkaResponse.md index 55e2dcf..301caba 100644 --- a/docs/LoggingKafkaResponse.md +++ b/docs/LoggingKafkaResponse.md @@ -6,13 +6,18 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **name** | **str** | The name for the real-time logging configuration. | [optional] **placement** | **str, none_type** | Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. | [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] if omitted the server will use the default value of 2 **response_condition** | **str, none_type** | The name of an existing condition in the configured endpoint, or leave blank to always execute. | [optional] **format** | **str** | A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). | [optional] if omitted the server will use the default value of "%h %l %u %t "%r" %>s %b" +**format_version** | **str** | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. | [optional] if omitted the server will use the default value of "2" **tls_ca_cert** | **str, none_type** | A secure certificate to authenticate a server with. Must be in PEM format. | [optional] if omitted the server will use the default value of "null" **tls_client_cert** | **str, none_type** | The client certificate used to make authenticated requests. Must be in PEM format. | [optional] if omitted the server will use the default value of "null" **tls_client_key** | **str, none_type** | The client private key used to make authenticated requests. Must be in PEM format. | [optional] if omitted the server will use the default value of "null" **tls_hostname** | **str, none_type** | 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] if omitted the server will use the default value of "null" +**created_at** | **datetime, none_type** | Date and time in ISO 8601 format. | [optional] [readonly] +**deleted_at** | **datetime, none_type** | Date and time in ISO 8601 format. | [optional] [readonly] +**updated_at** | **datetime, none_type** | Date and time in ISO 8601 format. | [optional] [readonly] +**service_id** | **str** | | [optional] [readonly] +**version** | **str** | | [optional] [readonly] **topic** | **str** | The Kafka topic to send logs to. Required. | [optional] **brokers** | **str** | A comma-separated list of IP addresses or hostnames of Kafka brokers. Required. | [optional] **compression_codec** | **str, none_type** | The codec used for compression of your logs. | [optional] @@ -23,11 +28,6 @@ Name | Type | Description | Notes **user** | **str** | SASL user. | [optional] **password** | **str** | SASL password. | [optional] **use_tls** | [**LoggingUseTls**](LoggingUseTls.md) | | [optional] -**created_at** | **datetime, none_type** | Date and time in ISO 8601 format. | [optional] [readonly] -**deleted_at** | **datetime, none_type** | Date and time in ISO 8601 format. | [optional] [readonly] -**updated_at** | **datetime, none_type** | Date and time in ISO 8601 format. | [optional] [readonly] -**service_id** | **str** | | [optional] [readonly] -**version** | **int** | | [optional] [readonly] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/LoggingKafka.md b/docs/LoggingKafkaResponsePost.md similarity index 88% rename from docs/LoggingKafka.md rename to docs/LoggingKafkaResponsePost.md index 1e733f3..5289413 100644 --- a/docs/LoggingKafka.md +++ b/docs/LoggingKafkaResponsePost.md @@ -1,4 +1,4 @@ -# LoggingKafka +# LoggingKafkaResponsePost ## Properties @@ -6,13 +6,18 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **name** | **str** | The name for the real-time logging configuration. | [optional] **placement** | **str, none_type** | Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. | [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] if omitted the server will use the default value of 2 **response_condition** | **str, none_type** | The name of an existing condition in the configured endpoint, or leave blank to always execute. | [optional] **format** | **str** | A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). | [optional] if omitted the server will use the default value of "%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] if omitted the server will use the default value of 2 **tls_ca_cert** | **str, none_type** | A secure certificate to authenticate a server with. Must be in PEM format. | [optional] if omitted the server will use the default value of "null" **tls_client_cert** | **str, none_type** | The client certificate used to make authenticated requests. Must be in PEM format. | [optional] if omitted the server will use the default value of "null" **tls_client_key** | **str, none_type** | The client private key used to make authenticated requests. Must be in PEM format. | [optional] if omitted the server will use the default value of "null" **tls_hostname** | **str, none_type** | 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] if omitted the server will use the default value of "null" +**created_at** | **datetime, none_type** | Date and time in ISO 8601 format. | [optional] [readonly] +**deleted_at** | **datetime, none_type** | Date and time in ISO 8601 format. | [optional] [readonly] +**updated_at** | **datetime, none_type** | Date and time in ISO 8601 format. | [optional] [readonly] +**service_id** | **str** | | [optional] [readonly] +**version** | **str** | | [optional] [readonly] **topic** | **str** | The Kafka topic to send logs to. Required. | [optional] **brokers** | **str** | A comma-separated list of IP addresses or hostnames of Kafka brokers. Required. | [optional] **compression_codec** | **str, none_type** | The codec used for compression of your logs. | [optional] diff --git a/docs/LoggingKinesis.md b/docs/LoggingKinesisAdditional.md similarity index 95% rename from docs/LoggingKinesis.md rename to docs/LoggingKinesisAdditional.md index 3cd6522..6f61a97 100644 --- a/docs/LoggingKinesis.md +++ b/docs/LoggingKinesisAdditional.md @@ -1,4 +1,4 @@ -# LoggingKinesis +# LoggingKinesisAdditional ## Properties @@ -6,7 +6,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **name** | **str** | The name for the real-time logging configuration. | [optional] **placement** | [**LoggingPlacement**](LoggingPlacement.md) | | [optional] -**format_version** | [**LoggingFormatVersion**](LoggingFormatVersion.md) | | [optional] **format** | **str** | A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). Must produce valid JSON that Kinesis can ingest. | [optional] if omitted the server will use the default value of "{"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** | **str** | The Amazon Kinesis stream to send logs to. Required. | [optional] **region** | [**AwsRegion**](AwsRegion.md) | | [optional] diff --git a/docs/LoggingKinesisApi.md b/docs/LoggingKinesisApi.md index b8647cf..f29a653 100644 --- a/docs/LoggingKinesisApi.md +++ b/docs/LoggingKinesisApi.md @@ -27,7 +27,6 @@ import time import fastly from fastly.api import logging_kinesis_api from fastly.model.aws_region import AwsRegion -from fastly.model.logging_format_version import LoggingFormatVersion from fastly.model.logging_placement import LoggingPlacement from fastly.model.logging_kinesis_response import LoggingKinesisResponse from pprint import pprint @@ -56,13 +55,13 @@ with fastly.ApiClient(configuration) as api_client: version_id = 1 # int | Integer identifying a service version. name = "test-log-endpoint" # str | The name for the real-time logging configuration. (optional) placement = LoggingPlacement("none") # LoggingPlacement | (optional) - format_version = LoggingFormatVersion(2) # LoggingFormatVersion | (optional) 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"}" # str | A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). Must produce valid JSON that Kinesis can ingest. (optional) if omitted the server will use the default value of "{"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 = "topic_example" # str | The Amazon Kinesis stream to send logs to. Required. (optional) region = AwsRegion("us-east-1") # AwsRegion | (optional) secret_key = "secret_key_example" # str, none_type | The secret key associated with the target Amazon Kinesis stream. Not required if `iam_role` is specified. (optional) access_key = "access_key_example" # str, none_type | The access key associated with the target Amazon Kinesis stream. Not required if `iam_role` is specified. (optional) iam_role = "iam_role_example" # str, none_type | 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 = 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`. (optional) if omitted the server will use the default value of 2 # example passing only required values which don't have defaults set try: @@ -76,7 +75,7 @@ with fastly.ApiClient(configuration) as api_client: # and optional values try: # Create an Amazon Kinesis log endpoint - api_response = api_instance.create_log_kinesis(service_id, version_id, 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) + api_response = api_instance.create_log_kinesis(service_id, version_id, name=name, placement=placement, format=format, topic=topic, region=region, secret_key=secret_key, access_key=access_key, iam_role=iam_role, format_version=format_version) pprint(api_response) except fastly.ApiException as e: print("Exception when calling LoggingKinesisApi->create_log_kinesis: %s\n" % e) @@ -91,13 +90,13 @@ Name | Type | Description | Notes **version_id** | **int**| Integer identifying a service version. | **name** | **str**| The name for the real-time logging configuration. | [optional] **placement** | [**LoggingPlacement**](LoggingPlacement.md)| | [optional] - **format_version** | [**LoggingFormatVersion**](LoggingFormatVersion.md)| | [optional] **format** | **str**| A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). Must produce valid JSON that Kinesis can ingest. | [optional] if omitted the server will use the default value of "{"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** | **str**| The Amazon Kinesis stream to send logs to. Required. | [optional] **region** | [**AwsRegion**](AwsRegion.md)| | [optional] **secret_key** | **str, none_type**| The secret key associated with the target Amazon Kinesis stream. Not required if `iam_role` is specified. | [optional] **access_key** | **str, none_type**| The access key associated with the target Amazon Kinesis stream. Not required if `iam_role` is specified. | [optional] **iam_role** | **str, none_type**| 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] if omitted the server will use the default value of 2 ### Return type diff --git a/docs/LoggingKinesisResponse.md b/docs/LoggingKinesisResponse.md index db80ad2..b2580c2 100644 --- a/docs/LoggingKinesisResponse.md +++ b/docs/LoggingKinesisResponse.md @@ -6,18 +6,18 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **name** | **str** | The name for the real-time logging configuration. | [optional] **placement** | [**LoggingPlacement**](LoggingPlacement.md) | | [optional] -**format_version** | [**LoggingFormatVersion**](LoggingFormatVersion.md) | | [optional] **format** | **str** | A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). Must produce valid JSON that Kinesis can ingest. | [optional] if omitted the server will use the default value of "{"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** | **str** | The Amazon Kinesis stream to send logs to. Required. | [optional] **region** | [**AwsRegion**](AwsRegion.md) | | [optional] **secret_key** | **str, none_type** | The secret key associated with the target Amazon Kinesis stream. Not required if `iam_role` is specified. | [optional] **access_key** | **str, none_type** | The access key associated with the target Amazon Kinesis stream. Not required if `iam_role` is specified. | [optional] **iam_role** | **str, none_type** | 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** | **str** | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. | [optional] if omitted the server will use the default value of "2" **created_at** | **datetime, none_type** | Date and time in ISO 8601 format. | [optional] [readonly] **deleted_at** | **datetime, none_type** | Date and time in ISO 8601 format. | [optional] [readonly] **updated_at** | **datetime, none_type** | Date and time in ISO 8601 format. | [optional] [readonly] **service_id** | **str** | | [optional] [readonly] -**version** | **int** | | [optional] [readonly] +**version** | **str** | | [optional] [readonly] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/LoggingLogentries.md b/docs/LoggingLogentries.md deleted file mode 100644 index 0520c55..0000000 --- a/docs/LoggingLogentries.md +++ /dev/null @@ -1,20 +0,0 @@ -# LoggingLogentries - - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **str** | The name for the real-time logging configuration. | [optional] -**placement** | **str, none_type** | Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. | [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] if omitted the server will use the default value of 2 -**response_condition** | **str, none_type** | The name of an existing condition in the configured endpoint, or leave blank to always execute. | [optional] -**format** | **str** | A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). | [optional] if omitted the server will use the default value of "%h %l %u %t "%r" %>s %b" -**port** | **int** | The port number. | [optional] if omitted the server will use the default value of 20000 -**token** | **str** | Use token based authentication ([https://logentries.com/doc/input-token/](https://logentries.com/doc/input-token/)). | [optional] -**use_tls** | [**LoggingUseTls**](LoggingUseTls.md) | | [optional] -**region** | **str** | The region to which to stream logs. | [optional] -**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/LoggingLogentriesAllOf.md b/docs/LoggingLogentriesAdditional.md similarity index 96% rename from docs/LoggingLogentriesAllOf.md rename to docs/LoggingLogentriesAdditional.md index 346fece..cddb422 100644 --- a/docs/LoggingLogentriesAllOf.md +++ b/docs/LoggingLogentriesAdditional.md @@ -1,4 +1,4 @@ -# LoggingLogentriesAllOf +# LoggingLogentriesAdditional ## Properties diff --git a/docs/LoggingLogentriesApi.md b/docs/LoggingLogentriesApi.md index c05ed53..dd3cea8 100644 --- a/docs/LoggingLogentriesApi.md +++ b/docs/LoggingLogentriesApi.md @@ -54,9 +54,9 @@ with fastly.ApiClient(configuration) as api_client: version_id = 1 # int | Integer identifying a service version. name = "test-log-endpoint" # str | The name for the real-time logging configuration. (optional) placement = "none" # str, none_type | Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. (optional) - 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`. (optional) if omitted the server will use the default value of 2 response_condition = "response_condition_example" # str, none_type | The name of an existing condition in the configured endpoint, or leave blank to always execute. (optional) format = "%h %l %u %t "%r" %>s %b" # str | A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). (optional) if omitted the server will use the default value of "%h %l %u %t "%r" %>s %b" + 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`. (optional) if omitted the server will use the default value of 2 port = 20000 # int | The port number. (optional) if omitted the server will use the default value of 20000 token = "token_example" # str | Use token based authentication ([https://logentries.com/doc/input-token/](https://logentries.com/doc/input-token/)). (optional) use_tls = LoggingUseTls(0) # LoggingUseTls | (optional) @@ -74,7 +74,7 @@ with fastly.ApiClient(configuration) as api_client: # and optional values try: # Create a Logentries log endpoint - api_response = api_instance.create_log_logentries(service_id, version_id, name=name, placement=placement, format_version=format_version, response_condition=response_condition, format=format, port=port, token=token, use_tls=use_tls, region=region) + api_response = api_instance.create_log_logentries(service_id, version_id, name=name, placement=placement, response_condition=response_condition, format=format, format_version=format_version, port=port, token=token, use_tls=use_tls, region=region) pprint(api_response) except fastly.ApiException as e: print("Exception when calling LoggingLogentriesApi->create_log_logentries: %s\n" % e) @@ -89,9 +89,9 @@ Name | Type | Description | Notes **version_id** | **int**| Integer identifying a service version. | **name** | **str**| The name for the real-time logging configuration. | [optional] **placement** | **str, none_type**| Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. | [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] if omitted the server will use the default value of 2 **response_condition** | **str, none_type**| The name of an existing condition in the configured endpoint, or leave blank to always execute. | [optional] **format** | **str**| A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). | [optional] if omitted the server will use the default value of "%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] if omitted the server will use the default value of 2 **port** | **int**| The port number. | [optional] if omitted the server will use the default value of 20000 **token** | **str**| Use token based authentication ([https://logentries.com/doc/input-token/](https://logentries.com/doc/input-token/)). | [optional] **use_tls** | [**LoggingUseTls**](LoggingUseTls.md)| | [optional] @@ -407,9 +407,9 @@ with fastly.ApiClient(configuration) as api_client: logging_logentries_name = "test-log-endpoint" # str | The name for the real-time logging configuration. name = "test-log-endpoint" # str | The name for the real-time logging configuration. (optional) placement = "none" # str, none_type | Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. (optional) - 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`. (optional) if omitted the server will use the default value of 2 response_condition = "response_condition_example" # str, none_type | The name of an existing condition in the configured endpoint, or leave blank to always execute. (optional) format = "%h %l %u %t "%r" %>s %b" # str | A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). (optional) if omitted the server will use the default value of "%h %l %u %t "%r" %>s %b" + 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`. (optional) if omitted the server will use the default value of 2 port = 20000 # int | The port number. (optional) if omitted the server will use the default value of 20000 token = "token_example" # str | Use token based authentication ([https://logentries.com/doc/input-token/](https://logentries.com/doc/input-token/)). (optional) use_tls = LoggingUseTls(0) # LoggingUseTls | (optional) @@ -427,7 +427,7 @@ with fastly.ApiClient(configuration) as api_client: # and optional values try: # Update a Logentries log endpoint - api_response = api_instance.update_log_logentries(service_id, version_id, logging_logentries_name, name=name, placement=placement, format_version=format_version, response_condition=response_condition, format=format, port=port, token=token, use_tls=use_tls, region=region) + api_response = api_instance.update_log_logentries(service_id, version_id, logging_logentries_name, name=name, placement=placement, response_condition=response_condition, format=format, format_version=format_version, port=port, token=token, use_tls=use_tls, region=region) pprint(api_response) except fastly.ApiException as e: print("Exception when calling LoggingLogentriesApi->update_log_logentries: %s\n" % e) @@ -443,9 +443,9 @@ Name | Type | Description | Notes **logging_logentries_name** | **str**| The name for the real-time logging configuration. | **name** | **str**| The name for the real-time logging configuration. | [optional] **placement** | **str, none_type**| Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. | [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] if omitted the server will use the default value of 2 **response_condition** | **str, none_type**| The name of an existing condition in the configured endpoint, or leave blank to always execute. | [optional] **format** | **str**| A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). | [optional] if omitted the server will use the default value of "%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] if omitted the server will use the default value of 2 **port** | **int**| The port number. | [optional] if omitted the server will use the default value of 20000 **token** | **str**| Use token based authentication ([https://logentries.com/doc/input-token/](https://logentries.com/doc/input-token/)). | [optional] **use_tls** | [**LoggingUseTls**](LoggingUseTls.md)| | [optional] diff --git a/docs/LoggingLogentriesResponse.md b/docs/LoggingLogentriesResponse.md index 3c435bf..65ed803 100644 --- a/docs/LoggingLogentriesResponse.md +++ b/docs/LoggingLogentriesResponse.md @@ -6,9 +6,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **name** | **str** | The name for the real-time logging configuration. | [optional] **placement** | **str, none_type** | Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. | [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] if omitted the server will use the default value of 2 **response_condition** | **str, none_type** | The name of an existing condition in the configured endpoint, or leave blank to always execute. | [optional] **format** | **str** | A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). | [optional] if omitted the server will use the default value of "%h %l %u %t "%r" %>s %b" +**format_version** | **str** | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. | [optional] if omitted the server will use the default value of "2" **port** | **int** | The port number. | [optional] if omitted the server will use the default value of 20000 **token** | **str** | Use token based authentication ([https://logentries.com/doc/input-token/](https://logentries.com/doc/input-token/)). | [optional] **use_tls** | [**LoggingUseTls**](LoggingUseTls.md) | | [optional] @@ -17,7 +17,7 @@ Name | Type | Description | Notes **deleted_at** | **datetime, none_type** | Date and time in ISO 8601 format. | [optional] [readonly] **updated_at** | **datetime, none_type** | Date and time in ISO 8601 format. | [optional] [readonly] **service_id** | **str** | | [optional] [readonly] -**version** | **int** | | [optional] [readonly] +**version** | **str** | | [optional] [readonly] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/LoggingLoggly.md b/docs/LoggingLoggly.md deleted file mode 100644 index 9df361f..0000000 --- a/docs/LoggingLoggly.md +++ /dev/null @@ -1,17 +0,0 @@ -# LoggingLoggly - - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **str** | The name for the real-time logging configuration. | [optional] -**placement** | **str, none_type** | Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. | [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] if omitted the server will use the default value of 2 -**response_condition** | **str, none_type** | The name of an existing condition in the configured endpoint, or leave blank to always execute. | [optional] -**format** | **str** | A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). | [optional] if omitted the server will use the default value of "%h %l %u %t "%r" %>s %b" -**token** | **str** | 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] -**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/LoggingLogglyAllOf.md b/docs/LoggingLogglyAdditional.md similarity index 96% rename from docs/LoggingLogglyAllOf.md rename to docs/LoggingLogglyAdditional.md index 9aa9821..99bed66 100644 --- a/docs/LoggingLogglyAllOf.md +++ b/docs/LoggingLogglyAdditional.md @@ -1,4 +1,4 @@ -# LoggingLogglyAllOf +# LoggingLogglyAdditional ## Properties diff --git a/docs/LoggingLogglyApi.md b/docs/LoggingLogglyApi.md index d19903d..24cb3c4 100644 --- a/docs/LoggingLogglyApi.md +++ b/docs/LoggingLogglyApi.md @@ -53,9 +53,9 @@ with fastly.ApiClient(configuration) as api_client: version_id = 1 # int | Integer identifying a service version. name = "test-log-endpoint" # str | The name for the real-time logging configuration. (optional) placement = "none" # str, none_type | Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. (optional) - 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`. (optional) if omitted the server will use the default value of 2 response_condition = "response_condition_example" # str, none_type | The name of an existing condition in the configured endpoint, or leave blank to always execute. (optional) format = "%h %l %u %t "%r" %>s %b" # str | A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). (optional) if omitted the server will use the default value of "%h %l %u %t "%r" %>s %b" + 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`. (optional) if omitted the server will use the default value of 2 token = "token_example" # str | 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) # example passing only required values which don't have defaults set @@ -70,7 +70,7 @@ with fastly.ApiClient(configuration) as api_client: # and optional values try: # Create a Loggly log endpoint - api_response = api_instance.create_log_loggly(service_id, version_id, name=name, placement=placement, format_version=format_version, response_condition=response_condition, format=format, token=token) + api_response = api_instance.create_log_loggly(service_id, version_id, name=name, placement=placement, response_condition=response_condition, format=format, format_version=format_version, token=token) pprint(api_response) except fastly.ApiException as e: print("Exception when calling LoggingLogglyApi->create_log_loggly: %s\n" % e) @@ -85,9 +85,9 @@ Name | Type | Description | Notes **version_id** | **int**| Integer identifying a service version. | **name** | **str**| The name for the real-time logging configuration. | [optional] **placement** | **str, none_type**| Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. | [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] if omitted the server will use the default value of 2 **response_condition** | **str, none_type**| The name of an existing condition in the configured endpoint, or leave blank to always execute. | [optional] **format** | **str**| A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). | [optional] if omitted the server will use the default value of "%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] if omitted the server will use the default value of 2 **token** | **str**| 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 @@ -399,9 +399,9 @@ with fastly.ApiClient(configuration) as api_client: logging_loggly_name = "test-log-endpoint" # str | The name for the real-time logging configuration. name = "test-log-endpoint" # str | The name for the real-time logging configuration. (optional) placement = "none" # str, none_type | Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. (optional) - 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`. (optional) if omitted the server will use the default value of 2 response_condition = "response_condition_example" # str, none_type | The name of an existing condition in the configured endpoint, or leave blank to always execute. (optional) format = "%h %l %u %t "%r" %>s %b" # str | A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). (optional) if omitted the server will use the default value of "%h %l %u %t "%r" %>s %b" + 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`. (optional) if omitted the server will use the default value of 2 token = "token_example" # str | 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) # example passing only required values which don't have defaults set @@ -416,7 +416,7 @@ with fastly.ApiClient(configuration) as api_client: # and optional values try: # Update a Loggly log endpoint - api_response = api_instance.update_log_loggly(service_id, version_id, logging_loggly_name, name=name, placement=placement, format_version=format_version, response_condition=response_condition, format=format, token=token) + api_response = api_instance.update_log_loggly(service_id, version_id, logging_loggly_name, name=name, placement=placement, response_condition=response_condition, format=format, format_version=format_version, token=token) pprint(api_response) except fastly.ApiException as e: print("Exception when calling LoggingLogglyApi->update_log_loggly: %s\n" % e) @@ -432,9 +432,9 @@ Name | Type | Description | Notes **logging_loggly_name** | **str**| The name for the real-time logging configuration. | **name** | **str**| The name for the real-time logging configuration. | [optional] **placement** | **str, none_type**| Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. | [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] if omitted the server will use the default value of 2 **response_condition** | **str, none_type**| The name of an existing condition in the configured endpoint, or leave blank to always execute. | [optional] **format** | **str**| A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). | [optional] if omitted the server will use the default value of "%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] if omitted the server will use the default value of 2 **token** | **str**| 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/LoggingLogglyResponse.md b/docs/LoggingLogglyResponse.md index 8e74672..b1a8cbb 100644 --- a/docs/LoggingLogglyResponse.md +++ b/docs/LoggingLogglyResponse.md @@ -6,15 +6,15 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **name** | **str** | The name for the real-time logging configuration. | [optional] **placement** | **str, none_type** | Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. | [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] if omitted the server will use the default value of 2 **response_condition** | **str, none_type** | The name of an existing condition in the configured endpoint, or leave blank to always execute. | [optional] **format** | **str** | A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). | [optional] if omitted the server will use the default value of "%h %l %u %t "%r" %>s %b" +**format_version** | **str** | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. | [optional] if omitted the server will use the default value of "2" **token** | **str** | 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, none_type** | Date and time in ISO 8601 format. | [optional] [readonly] **deleted_at** | **datetime, none_type** | Date and time in ISO 8601 format. | [optional] [readonly] **updated_at** | **datetime, none_type** | Date and time in ISO 8601 format. | [optional] [readonly] **service_id** | **str** | | [optional] [readonly] -**version** | **int** | | [optional] [readonly] +**version** | **str** | | [optional] [readonly] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/LoggingLogshuttleAllOf.md b/docs/LoggingLogshuttleAdditional.md similarity index 95% rename from docs/LoggingLogshuttleAllOf.md rename to docs/LoggingLogshuttleAdditional.md index a9efdea..30b53dd 100644 --- a/docs/LoggingLogshuttleAllOf.md +++ b/docs/LoggingLogshuttleAdditional.md @@ -1,4 +1,4 @@ -# LoggingLogshuttleAllOf +# LoggingLogshuttleAdditional ## Properties diff --git a/docs/LoggingLogshuttleApi.md b/docs/LoggingLogshuttleApi.md index 2f780e8..bea3f94 100644 --- a/docs/LoggingLogshuttleApi.md +++ b/docs/LoggingLogshuttleApi.md @@ -53,9 +53,9 @@ with fastly.ApiClient(configuration) as api_client: version_id = 1 # int | Integer identifying a service version. name = "test-log-endpoint" # str | The name for the real-time logging configuration. (optional) placement = "none" # str, none_type | Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. (optional) - 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`. (optional) if omitted the server will use the default value of 2 response_condition = "response_condition_example" # str, none_type | The name of an existing condition in the configured endpoint, or leave blank to always execute. (optional) format = "%h %l %u %t "%r" %>s %b" # str | A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). (optional) if omitted the server will use the default value of "%h %l %u %t "%r" %>s %b" + 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`. (optional) if omitted the server will use the default value of 2 token = "token_example" # str, none_type | The data authentication token associated with this endpoint. (optional) url = "url_example" # str | The URL to stream logs to. (optional) @@ -71,7 +71,7 @@ with fastly.ApiClient(configuration) as api_client: # and optional values try: # Create a Log Shuttle log endpoint - api_response = api_instance.create_log_logshuttle(service_id, version_id, name=name, placement=placement, format_version=format_version, response_condition=response_condition, format=format, token=token, url=url) + api_response = api_instance.create_log_logshuttle(service_id, version_id, name=name, placement=placement, response_condition=response_condition, format=format, format_version=format_version, token=token, url=url) pprint(api_response) except fastly.ApiException as e: print("Exception when calling LoggingLogshuttleApi->create_log_logshuttle: %s\n" % e) @@ -86,9 +86,9 @@ Name | Type | Description | Notes **version_id** | **int**| Integer identifying a service version. | **name** | **str**| The name for the real-time logging configuration. | [optional] **placement** | **str, none_type**| Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. | [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] if omitted the server will use the default value of 2 **response_condition** | **str, none_type**| The name of an existing condition in the configured endpoint, or leave blank to always execute. | [optional] **format** | **str**| A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). | [optional] if omitted the server will use the default value of "%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] if omitted the server will use the default value of 2 **token** | **str, none_type**| The data authentication token associated with this endpoint. | [optional] **url** | **str**| The URL to stream logs to. | [optional] @@ -401,9 +401,9 @@ with fastly.ApiClient(configuration) as api_client: logging_logshuttle_name = "test-log-endpoint" # str | The name for the real-time logging configuration. name = "test-log-endpoint" # str | The name for the real-time logging configuration. (optional) placement = "none" # str, none_type | Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. (optional) - 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`. (optional) if omitted the server will use the default value of 2 response_condition = "response_condition_example" # str, none_type | The name of an existing condition in the configured endpoint, or leave blank to always execute. (optional) format = "%h %l %u %t "%r" %>s %b" # str | A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). (optional) if omitted the server will use the default value of "%h %l %u %t "%r" %>s %b" + 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`. (optional) if omitted the server will use the default value of 2 token = "token_example" # str, none_type | The data authentication token associated with this endpoint. (optional) url = "url_example" # str | The URL to stream logs to. (optional) @@ -419,7 +419,7 @@ with fastly.ApiClient(configuration) as api_client: # and optional values try: # Update a Log Shuttle log endpoint - api_response = api_instance.update_log_logshuttle(service_id, version_id, logging_logshuttle_name, name=name, placement=placement, format_version=format_version, response_condition=response_condition, format=format, token=token, url=url) + api_response = api_instance.update_log_logshuttle(service_id, version_id, logging_logshuttle_name, name=name, placement=placement, response_condition=response_condition, format=format, format_version=format_version, token=token, url=url) pprint(api_response) except fastly.ApiException as e: print("Exception when calling LoggingLogshuttleApi->update_log_logshuttle: %s\n" % e) @@ -435,9 +435,9 @@ Name | Type | Description | Notes **logging_logshuttle_name** | **str**| The name for the real-time logging configuration. | **name** | **str**| The name for the real-time logging configuration. | [optional] **placement** | **str, none_type**| Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. | [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] if omitted the server will use the default value of 2 **response_condition** | **str, none_type**| The name of an existing condition in the configured endpoint, or leave blank to always execute. | [optional] **format** | **str**| A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). | [optional] if omitted the server will use the default value of "%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] if omitted the server will use the default value of 2 **token** | **str, none_type**| The data authentication token associated with this endpoint. | [optional] **url** | **str**| The URL to stream logs to. | [optional] diff --git a/docs/LoggingLogshuttleResponse.md b/docs/LoggingLogshuttleResponse.md index 7a9a67b..b2a4fdc 100644 --- a/docs/LoggingLogshuttleResponse.md +++ b/docs/LoggingLogshuttleResponse.md @@ -6,16 +6,16 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **name** | **str** | The name for the real-time logging configuration. | [optional] **placement** | **str, none_type** | Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. | [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] if omitted the server will use the default value of 2 **response_condition** | **str, none_type** | The name of an existing condition in the configured endpoint, or leave blank to always execute. | [optional] **format** | **str** | A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). | [optional] if omitted the server will use the default value of "%h %l %u %t "%r" %>s %b" +**format_version** | **str** | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. | [optional] if omitted the server will use the default value of "2" **token** | **str, none_type** | The data authentication token associated with this endpoint. | [optional] **url** | **str** | The URL to stream logs to. | [optional] **created_at** | **datetime, none_type** | Date and time in ISO 8601 format. | [optional] [readonly] **deleted_at** | **datetime, none_type** | Date and time in ISO 8601 format. | [optional] [readonly] **updated_at** | **datetime, none_type** | Date and time in ISO 8601 format. | [optional] [readonly] **service_id** | **str** | | [optional] [readonly] -**version** | **int** | | [optional] [readonly] +**version** | **str** | | [optional] [readonly] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/LoggingNewrelic.md b/docs/LoggingNewrelic.md deleted file mode 100644 index 68b5f62..0000000 --- a/docs/LoggingNewrelic.md +++ /dev/null @@ -1,18 +0,0 @@ -# LoggingNewrelic - - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **str** | The name for the real-time logging configuration. | [optional] -**placement** | **str, none_type** | Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. | [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] if omitted the server will use the default value of 2 -**response_condition** | **str, none_type** | The name of an existing condition in the configured endpoint, or leave blank to always execute. | [optional] -**format** | **str** | 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] if omitted the server will use the default value of "{"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** | **str** | The Insert API key from the Account page of your New Relic account. Required. | [optional] -**region** | **str** | The region to which to stream logs. | [optional] if omitted the server will use the default value of "US" -**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/LoggingNewrelicAllOf.md b/docs/LoggingNewrelicAdditional.md similarity index 98% rename from docs/LoggingNewrelicAllOf.md rename to docs/LoggingNewrelicAdditional.md index 900773e..e8acb0c 100644 --- a/docs/LoggingNewrelicAllOf.md +++ b/docs/LoggingNewrelicAdditional.md @@ -1,4 +1,4 @@ -# LoggingNewrelicAllOf +# LoggingNewrelicAdditional ## Properties diff --git a/docs/LoggingNewrelicApi.md b/docs/LoggingNewrelicApi.md index e48e3ff..9bf6582 100644 --- a/docs/LoggingNewrelicApi.md +++ b/docs/LoggingNewrelicApi.md @@ -53,9 +53,9 @@ with fastly.ApiClient(configuration) as api_client: version_id = 1 # int | Integer identifying a service version. name = "test-log-endpoint" # str | The name for the real-time logging configuration. (optional) placement = "none" # str, none_type | Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. (optional) - 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`. (optional) if omitted the server will use the default value of 2 response_condition = "response_condition_example" # str, none_type | The name of an existing condition in the configured endpoint, or leave blank to always execute. (optional) 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"}" # str | 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) if omitted the server will use the default value of "{"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 = 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`. (optional) if omitted the server will use the default value of 2 token = "token_example" # str | The Insert API key from the Account page of your New Relic account. Required. (optional) region = "US" # str | The region to which to stream logs. (optional) if omitted the server will use the default value of "US" @@ -71,7 +71,7 @@ with fastly.ApiClient(configuration) as api_client: # and optional values try: # Create a New Relic log endpoint - api_response = api_instance.create_log_newrelic(service_id, version_id, name=name, placement=placement, format_version=format_version, response_condition=response_condition, format=format, token=token, region=region) + api_response = api_instance.create_log_newrelic(service_id, version_id, name=name, placement=placement, response_condition=response_condition, format=format, format_version=format_version, token=token, region=region) pprint(api_response) except fastly.ApiException as e: print("Exception when calling LoggingNewrelicApi->create_log_newrelic: %s\n" % e) @@ -86,9 +86,9 @@ Name | Type | Description | Notes **version_id** | **int**| Integer identifying a service version. | **name** | **str**| The name for the real-time logging configuration. | [optional] **placement** | **str, none_type**| Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. | [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] if omitted the server will use the default value of 2 **response_condition** | **str, none_type**| The name of an existing condition in the configured endpoint, or leave blank to always execute. | [optional] **format** | **str**| 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] if omitted the server will use the default value of "{"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] if omitted the server will use the default value of 2 **token** | **str**| The Insert API key from the Account page of your New Relic account. Required. | [optional] **region** | **str**| The region to which to stream logs. | [optional] if omitted the server will use the default value of "US" @@ -401,9 +401,9 @@ with fastly.ApiClient(configuration) as api_client: logging_newrelic_name = "test-log-endpoint" # str | The name for the real-time logging configuration. name = "test-log-endpoint" # str | The name for the real-time logging configuration. (optional) placement = "none" # str, none_type | Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. (optional) - 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`. (optional) if omitted the server will use the default value of 2 response_condition = "response_condition_example" # str, none_type | The name of an existing condition in the configured endpoint, or leave blank to always execute. (optional) 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"}" # str | 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) if omitted the server will use the default value of "{"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 = 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`. (optional) if omitted the server will use the default value of 2 token = "token_example" # str | The Insert API key from the Account page of your New Relic account. Required. (optional) region = "US" # str | The region to which to stream logs. (optional) if omitted the server will use the default value of "US" @@ -419,7 +419,7 @@ with fastly.ApiClient(configuration) as api_client: # and optional values try: # Update a New Relic log endpoint - api_response = api_instance.update_log_newrelic(service_id, version_id, logging_newrelic_name, name=name, placement=placement, format_version=format_version, response_condition=response_condition, format=format, token=token, region=region) + api_response = api_instance.update_log_newrelic(service_id, version_id, logging_newrelic_name, name=name, placement=placement, response_condition=response_condition, format=format, format_version=format_version, token=token, region=region) pprint(api_response) except fastly.ApiException as e: print("Exception when calling LoggingNewrelicApi->update_log_newrelic: %s\n" % e) @@ -435,9 +435,9 @@ Name | Type | Description | Notes **logging_newrelic_name** | **str**| The name for the real-time logging configuration. | **name** | **str**| The name for the real-time logging configuration. | [optional] **placement** | **str, none_type**| Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. | [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] if omitted the server will use the default value of 2 **response_condition** | **str, none_type**| The name of an existing condition in the configured endpoint, or leave blank to always execute. | [optional] **format** | **str**| 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] if omitted the server will use the default value of "{"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] if omitted the server will use the default value of 2 **token** | **str**| The Insert API key from the Account page of your New Relic account. Required. | [optional] **region** | **str**| The region to which to stream logs. | [optional] if omitted the server will use the default value of "US" diff --git a/docs/LoggingNewrelicResponse.md b/docs/LoggingNewrelicResponse.md index ae33156..d651c2c 100644 --- a/docs/LoggingNewrelicResponse.md +++ b/docs/LoggingNewrelicResponse.md @@ -6,16 +6,16 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **name** | **str** | The name for the real-time logging configuration. | [optional] **placement** | **str, none_type** | Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. | [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] if omitted the server will use the default value of 2 **response_condition** | **str, none_type** | The name of an existing condition in the configured endpoint, or leave blank to always execute. | [optional] **format** | **str** | 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] if omitted the server will use the default value of "{"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** | **str** | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. | [optional] if omitted the server will use the default value of "2" **token** | **str** | The Insert API key from the Account page of your New Relic account. Required. | [optional] **region** | **str** | The region to which to stream logs. | [optional] if omitted the server will use the default value of "US" **created_at** | **datetime, none_type** | Date and time in ISO 8601 format. | [optional] [readonly] **deleted_at** | **datetime, none_type** | Date and time in ISO 8601 format. | [optional] [readonly] **updated_at** | **datetime, none_type** | Date and time in ISO 8601 format. | [optional] [readonly] **service_id** | **str** | | [optional] [readonly] -**version** | **int** | | [optional] [readonly] +**version** | **str** | | [optional] [readonly] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/LoggingOpenstack.md b/docs/LoggingOpenstack.md deleted file mode 100644 index efd6f41..0000000 --- a/docs/LoggingOpenstack.md +++ /dev/null @@ -1,27 +0,0 @@ -# LoggingOpenstack - - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **str** | The name for the real-time logging configuration. | [optional] -**placement** | **str, none_type** | Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. | [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] if omitted the server will use the default value of 2 -**response_condition** | **str, none_type** | The name of an existing condition in the configured endpoint, or leave blank to always execute. | [optional] -**format** | **str** | A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). | [optional] if omitted the server will use the default value of "%h %l %u %t "%r" %>s %b" -**message_type** | **str** | How the message should be formatted. | [optional] if omitted the server will use the default value of "classic" -**timestamp_format** | **str, none_type** | A timestamp format | [optional] [readonly] -**period** | **int** | How frequently log files are finalized so they can be available for reading (in seconds). | [optional] if omitted the server will use the default value of 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] if omitted the server will use the default value of 0 -**compression_codec** | **str** | The codec used for compressing your logs. 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] -**access_key** | **str** | Your OpenStack account access key. | [optional] -**bucket_name** | **str** | The name of your OpenStack container. | [optional] -**path** | **str, none_type** | The path to upload logs to. | [optional] if omitted the server will use the default value of "null" -**public_key** | **str, none_type** | A PGP public key that Fastly will use to encrypt your log files before writing them to disk. | [optional] if omitted the server will use the default value of "null" -**url** | **str** | Your OpenStack auth url. | [optional] -**user** | **str** | The username for your OpenStack account. | [optional] -**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/LoggingOpenstackAllOf.md b/docs/LoggingOpenstackAdditional.md similarity index 97% rename from docs/LoggingOpenstackAllOf.md rename to docs/LoggingOpenstackAdditional.md index 7ab20cb..3014394 100644 --- a/docs/LoggingOpenstackAllOf.md +++ b/docs/LoggingOpenstackAdditional.md @@ -1,4 +1,4 @@ -# LoggingOpenstackAllOf +# LoggingOpenstackAdditional ## Properties diff --git a/docs/LoggingOpenstackApi.md b/docs/LoggingOpenstackApi.md index ca0c9aa..4b8e752 100644 --- a/docs/LoggingOpenstackApi.md +++ b/docs/LoggingOpenstackApi.md @@ -53,14 +53,14 @@ with fastly.ApiClient(configuration) as api_client: version_id = 1 # int | Integer identifying a service version. name = "test-log-endpoint" # str | The name for the real-time logging configuration. (optional) placement = "none" # str, none_type | Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. (optional) - 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`. (optional) if omitted the server will use the default value of 2 response_condition = "response_condition_example" # str, none_type | The name of an existing condition in the configured endpoint, or leave blank to always execute. (optional) format = "%h %l %u %t "%r" %>s %b" # str | A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). (optional) if omitted the server will use the default value of "%h %l %u %t "%r" %>s %b" + 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`. (optional) if omitted the server will use the default value of 2 message_type = "classic" # str | How the message should be formatted. (optional) if omitted the server will use the default value of "classic" timestamp_format = "%Y-%m-%dT%H:%M:%S.000" # str, none_type | A timestamp format (optional) + compression_codec = "zstd" # str | The codec used for compressing your logs. 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) period = 3600 # int | How frequently log files are finalized so they can be available for reading (in seconds). (optional) if omitted the server will use the default value of 3600 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. (optional) if omitted the server will use the default value of 0 - compression_codec = "zstd" # str | The codec used for compressing your logs. 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) access_key = "access_key_example" # str | Your OpenStack account access key. (optional) bucket_name = "bucket_name_example" # str | The name of your OpenStack container. (optional) path = "null" # str, none_type | The path to upload logs to. (optional) if omitted the server will use the default value of "null" @@ -83,7 +83,7 @@ with fastly.ApiClient(configuration) as api_client: # and optional values try: # Create an OpenStack log endpoint - api_response = api_instance.create_log_openstack(service_id, version_id, 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) + api_response = api_instance.create_log_openstack(service_id, version_id, name=name, placement=placement, 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, access_key=access_key, bucket_name=bucket_name, path=path, public_key=public_key, url=url, user=user) pprint(api_response) except fastly.ApiException as e: print("Exception when calling LoggingOpenstackApi->create_log_openstack: %s\n" % e) @@ -98,14 +98,14 @@ Name | Type | Description | Notes **version_id** | **int**| Integer identifying a service version. | **name** | **str**| The name for the real-time logging configuration. | [optional] **placement** | **str, none_type**| Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. | [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] if omitted the server will use the default value of 2 **response_condition** | **str, none_type**| The name of an existing condition in the configured endpoint, or leave blank to always execute. | [optional] **format** | **str**| A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). | [optional] if omitted the server will use the default value of "%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] if omitted the server will use the default value of 2 **message_type** | **str**| How the message should be formatted. | [optional] if omitted the server will use the default value of "classic" **timestamp_format** | **str, none_type**| A timestamp format | [optional] + **compression_codec** | **str**| The codec used for compressing your logs. 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] **period** | **int**| How frequently log files are finalized so they can be available for reading (in seconds). | [optional] if omitted the server will use the default value of 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] if omitted the server will use the default value of 0 - **compression_codec** | **str**| The codec used for compressing your logs. 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] **access_key** | **str**| Your OpenStack account access key. | [optional] **bucket_name** | **str**| The name of your OpenStack container. | [optional] **path** | **str, none_type**| The path to upload logs to. | [optional] if omitted the server will use the default value of "null" @@ -422,14 +422,14 @@ with fastly.ApiClient(configuration) as api_client: logging_openstack_name = "test-log-endpoint" # str | The name for the real-time logging configuration. name = "test-log-endpoint" # str | The name for the real-time logging configuration. (optional) placement = "none" # str, none_type | Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. (optional) - 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`. (optional) if omitted the server will use the default value of 2 response_condition = "response_condition_example" # str, none_type | The name of an existing condition in the configured endpoint, or leave blank to always execute. (optional) format = "%h %l %u %t "%r" %>s %b" # str | A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). (optional) if omitted the server will use the default value of "%h %l %u %t "%r" %>s %b" + 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`. (optional) if omitted the server will use the default value of 2 message_type = "classic" # str | How the message should be formatted. (optional) if omitted the server will use the default value of "classic" timestamp_format = "%Y-%m-%dT%H:%M:%S.000" # str, none_type | A timestamp format (optional) + compression_codec = "zstd" # str | The codec used for compressing your logs. 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) period = 3600 # int | How frequently log files are finalized so they can be available for reading (in seconds). (optional) if omitted the server will use the default value of 3600 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. (optional) if omitted the server will use the default value of 0 - compression_codec = "zstd" # str | The codec used for compressing your logs. 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) access_key = "access_key_example" # str | Your OpenStack account access key. (optional) bucket_name = "bucket_name_example" # str | The name of your OpenStack container. (optional) path = "null" # str, none_type | The path to upload logs to. (optional) if omitted the server will use the default value of "null" @@ -452,7 +452,7 @@ with fastly.ApiClient(configuration) as api_client: # and optional values try: # Update an OpenStack log endpoint - api_response = api_instance.update_log_openstack(service_id, version_id, logging_openstack_name, 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) + api_response = api_instance.update_log_openstack(service_id, version_id, logging_openstack_name, name=name, placement=placement, 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, access_key=access_key, bucket_name=bucket_name, path=path, public_key=public_key, url=url, user=user) pprint(api_response) except fastly.ApiException as e: print("Exception when calling LoggingOpenstackApi->update_log_openstack: %s\n" % e) @@ -468,14 +468,14 @@ Name | Type | Description | Notes **logging_openstack_name** | **str**| The name for the real-time logging configuration. | **name** | **str**| The name for the real-time logging configuration. | [optional] **placement** | **str, none_type**| Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. | [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] if omitted the server will use the default value of 2 **response_condition** | **str, none_type**| The name of an existing condition in the configured endpoint, or leave blank to always execute. | [optional] **format** | **str**| A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). | [optional] if omitted the server will use the default value of "%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] if omitted the server will use the default value of 2 **message_type** | **str**| How the message should be formatted. | [optional] if omitted the server will use the default value of "classic" **timestamp_format** | **str, none_type**| A timestamp format | [optional] + **compression_codec** | **str**| The codec used for compressing your logs. 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] **period** | **int**| How frequently log files are finalized so they can be available for reading (in seconds). | [optional] if omitted the server will use the default value of 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] if omitted the server will use the default value of 0 - **compression_codec** | **str**| The codec used for compressing your logs. 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] **access_key** | **str**| Your OpenStack account access key. | [optional] **bucket_name** | **str**| The name of your OpenStack container. | [optional] **path** | **str, none_type**| The path to upload logs to. | [optional] if omitted the server will use the default value of "null" diff --git a/docs/LoggingOpenstackResponse.md b/docs/LoggingOpenstackResponse.md index fc74e29..603cf5e 100644 --- a/docs/LoggingOpenstackResponse.md +++ b/docs/LoggingOpenstackResponse.md @@ -6,25 +6,25 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **name** | **str** | The name for the real-time logging configuration. | [optional] **placement** | **str, none_type** | Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. | [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] if omitted the server will use the default value of 2 **response_condition** | **str, none_type** | The name of an existing condition in the configured endpoint, or leave blank to always execute. | [optional] **format** | **str** | A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). | [optional] if omitted the server will use the default value of "%h %l %u %t "%r" %>s %b" +**format_version** | **str** | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. | [optional] if omitted the server will use the default value of "2" **message_type** | **str** | How the message should be formatted. | [optional] if omitted the server will use the default value of "classic" **timestamp_format** | **str, none_type** | A timestamp format | [optional] [readonly] -**period** | **int** | How frequently log files are finalized so they can be available for reading (in seconds). | [optional] if omitted the server will use the default value of 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] if omitted the server will use the default value of 0 **compression_codec** | **str** | The codec used for compressing your logs. 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] +**period** | **str** | How frequently log files are finalized so they can be available for reading (in seconds). | [optional] if omitted the server will use the default value of "3600" +**gzip_level** | **str** | 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] if omitted the server will use the default value of "0" +**created_at** | **datetime, none_type** | Date and time in ISO 8601 format. | [optional] [readonly] +**deleted_at** | **datetime, none_type** | Date and time in ISO 8601 format. | [optional] [readonly] +**updated_at** | **datetime, none_type** | Date and time in ISO 8601 format. | [optional] [readonly] +**service_id** | **str** | | [optional] [readonly] +**version** | **str** | | [optional] [readonly] **access_key** | **str** | Your OpenStack account access key. | [optional] **bucket_name** | **str** | The name of your OpenStack container. | [optional] **path** | **str, none_type** | The path to upload logs to. | [optional] if omitted the server will use the default value of "null" **public_key** | **str, none_type** | A PGP public key that Fastly will use to encrypt your log files before writing them to disk. | [optional] if omitted the server will use the default value of "null" **url** | **str** | Your OpenStack auth url. | [optional] **user** | **str** | The username for your OpenStack account. | [optional] -**created_at** | **datetime, none_type** | Date and time in ISO 8601 format. | [optional] [readonly] -**deleted_at** | **datetime, none_type** | Date and time in ISO 8601 format. | [optional] [readonly] -**updated_at** | **datetime, none_type** | Date and time in ISO 8601 format. | [optional] [readonly] -**service_id** | **str** | | [optional] [readonly] -**version** | **int** | | [optional] [readonly] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/LoggingPapertrail.md b/docs/LoggingPapertrail.md deleted file mode 100644 index 53d36c1..0000000 --- a/docs/LoggingPapertrail.md +++ /dev/null @@ -1,18 +0,0 @@ -# LoggingPapertrail - - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **str** | The name for the real-time logging configuration. | [optional] -**placement** | **str, none_type** | Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. | [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] if omitted the server will use the default value of 2 -**response_condition** | **str, none_type** | The name of an existing condition in the configured endpoint, or leave blank to always execute. | [optional] -**format** | **str** | A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). | [optional] if omitted the server will use the default value of "%h %l %u %t "%r" %>s %b" -**address** | **str** | A hostname or IPv4 address. | [optional] -**port** | **int** | The port number. | [optional] if omitted the server will use the default value of 514 -**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/LoggingPapertrailApi.md b/docs/LoggingPapertrailApi.md index b74add9..41ed013 100644 --- a/docs/LoggingPapertrailApi.md +++ b/docs/LoggingPapertrailApi.md @@ -53,9 +53,9 @@ with fastly.ApiClient(configuration) as api_client: version_id = 1 # int | Integer identifying a service version. name = "test-log-endpoint" # str | The name for the real-time logging configuration. (optional) placement = "none" # str, none_type | Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. (optional) - 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`. (optional) if omitted the server will use the default value of 2 response_condition = "response_condition_example" # str, none_type | The name of an existing condition in the configured endpoint, or leave blank to always execute. (optional) format = "%h %l %u %t "%r" %>s %b" # str | A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). (optional) if omitted the server will use the default value of "%h %l %u %t "%r" %>s %b" + 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`. (optional) if omitted the server will use the default value of 2 address = "example.com" # str | A hostname or IPv4 address. (optional) port = 514 # int | The port number. (optional) if omitted the server will use the default value of 514 @@ -71,7 +71,7 @@ with fastly.ApiClient(configuration) as api_client: # and optional values try: # Create a Papertrail log endpoint - api_response = api_instance.create_log_papertrail(service_id, version_id, name=name, placement=placement, format_version=format_version, response_condition=response_condition, format=format, address=address, port=port) + api_response = api_instance.create_log_papertrail(service_id, version_id, name=name, placement=placement, response_condition=response_condition, format=format, format_version=format_version, address=address, port=port) pprint(api_response) except fastly.ApiException as e: print("Exception when calling LoggingPapertrailApi->create_log_papertrail: %s\n" % e) @@ -86,9 +86,9 @@ Name | Type | Description | Notes **version_id** | **int**| Integer identifying a service version. | **name** | **str**| The name for the real-time logging configuration. | [optional] **placement** | **str, none_type**| Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. | [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] if omitted the server will use the default value of 2 **response_condition** | **str, none_type**| The name of an existing condition in the configured endpoint, or leave blank to always execute. | [optional] **format** | **str**| A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). | [optional] if omitted the server will use the default value of "%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] if omitted the server will use the default value of 2 **address** | **str**| A hostname or IPv4 address. | [optional] **port** | **int**| The port number. | [optional] if omitted the server will use the default value of 514 @@ -401,9 +401,9 @@ with fastly.ApiClient(configuration) as api_client: logging_papertrail_name = "test-log-endpoint" # str | The name for the real-time logging configuration. name = "test-log-endpoint" # str | The name for the real-time logging configuration. (optional) placement = "none" # str, none_type | Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. (optional) - 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`. (optional) if omitted the server will use the default value of 2 response_condition = "response_condition_example" # str, none_type | The name of an existing condition in the configured endpoint, or leave blank to always execute. (optional) format = "%h %l %u %t "%r" %>s %b" # str | A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). (optional) if omitted the server will use the default value of "%h %l %u %t "%r" %>s %b" + 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`. (optional) if omitted the server will use the default value of 2 address = "example.com" # str | A hostname or IPv4 address. (optional) port = 514 # int | The port number. (optional) if omitted the server will use the default value of 514 @@ -419,7 +419,7 @@ with fastly.ApiClient(configuration) as api_client: # and optional values try: # Update a Papertrail log endpoint - api_response = api_instance.update_log_papertrail(service_id, version_id, logging_papertrail_name, name=name, placement=placement, format_version=format_version, response_condition=response_condition, format=format, address=address, port=port) + api_response = api_instance.update_log_papertrail(service_id, version_id, logging_papertrail_name, name=name, placement=placement, response_condition=response_condition, format=format, format_version=format_version, address=address, port=port) pprint(api_response) except fastly.ApiException as e: print("Exception when calling LoggingPapertrailApi->update_log_papertrail: %s\n" % e) @@ -435,9 +435,9 @@ Name | Type | Description | Notes **logging_papertrail_name** | **str**| The name for the real-time logging configuration. | **name** | **str**| The name for the real-time logging configuration. | [optional] **placement** | **str, none_type**| Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. | [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] if omitted the server will use the default value of 2 **response_condition** | **str, none_type**| The name of an existing condition in the configured endpoint, or leave blank to always execute. | [optional] **format** | **str**| A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). | [optional] if omitted the server will use the default value of "%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] if omitted the server will use the default value of 2 **address** | **str**| A hostname or IPv4 address. | [optional] **port** | **int**| The port number. | [optional] if omitted the server will use the default value of 514 diff --git a/docs/LoggingPapertrailResponse.md b/docs/LoggingPapertrailResponse.md index 0de1bd6..495059b 100644 --- a/docs/LoggingPapertrailResponse.md +++ b/docs/LoggingPapertrailResponse.md @@ -6,16 +6,16 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **name** | **str** | The name for the real-time logging configuration. | [optional] **placement** | **str, none_type** | Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. | [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] if omitted the server will use the default value of 2 **response_condition** | **str, none_type** | The name of an existing condition in the configured endpoint, or leave blank to always execute. | [optional] **format** | **str** | A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). | [optional] if omitted the server will use the default value of "%h %l %u %t "%r" %>s %b" +**format_version** | **str** | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. | [optional] if omitted the server will use the default value of "2" **address** | **str** | A hostname or IPv4 address. | [optional] **port** | **int** | The port number. | [optional] if omitted the server will use the default value of 514 **created_at** | **datetime, none_type** | Date and time in ISO 8601 format. | [optional] [readonly] **deleted_at** | **datetime, none_type** | Date and time in ISO 8601 format. | [optional] [readonly] **updated_at** | **datetime, none_type** | Date and time in ISO 8601 format. | [optional] [readonly] **service_id** | **str** | | [optional] [readonly] -**version** | **int** | | [optional] [readonly] +**version** | **str** | | [optional] [readonly] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/LoggingPubsubApi.md b/docs/LoggingPubsubApi.md index d5af727..94cb618 100644 --- a/docs/LoggingPubsubApi.md +++ b/docs/LoggingPubsubApi.md @@ -53,9 +53,9 @@ with fastly.ApiClient(configuration) as api_client: version_id = 1 # int | Integer identifying a service version. name = "test-log-endpoint" # str | The name for the real-time logging configuration. (optional) placement = "none" # str, none_type | Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. (optional) - 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`. (optional) if omitted the server will use the default value of 2 response_condition = "response_condition_example" # str, none_type | The name of an existing condition in the configured endpoint, or leave blank to always execute. (optional) format = "%h %l %u %t "%r" %>s %b" # str | A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). (optional) if omitted the server will use the default value of "%h %l %u %t "%r" %>s %b" + 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`. (optional) if omitted the server will use the default value of 2 user = "test-user@test-project-id.iam.gserviceaccount.com" # str | 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 = '''-----BEGIN PRIVATE KEY----- ... @@ -77,7 +77,7 @@ with fastly.ApiClient(configuration) as api_client: # and optional values try: # Create a GCP Cloud Pub/Sub log endpoint - api_response = api_instance.create_log_gcp_pubsub(service_id, version_id, 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) + api_response = api_instance.create_log_gcp_pubsub(service_id, version_id, name=name, placement=placement, response_condition=response_condition, format=format, format_version=format_version, user=user, secret_key=secret_key, account_name=account_name, topic=topic, project_id=project_id) pprint(api_response) except fastly.ApiException as e: print("Exception when calling LoggingPubsubApi->create_log_gcp_pubsub: %s\n" % e) @@ -92,9 +92,9 @@ Name | Type | Description | Notes **version_id** | **int**| Integer identifying a service version. | **name** | **str**| The name for the real-time logging configuration. | [optional] **placement** | **str, none_type**| Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. | [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] if omitted the server will use the default value of 2 **response_condition** | **str, none_type**| The name of an existing condition in the configured endpoint, or leave blank to always execute. | [optional] **format** | **str**| A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). | [optional] if omitted the server will use the default value of "%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] if omitted the server will use the default value of 2 **user** | **str**| 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** | **str**| 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** | **str**| 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] @@ -410,9 +410,9 @@ with fastly.ApiClient(configuration) as api_client: logging_google_pubsub_name = "test-log-endpoint" # str | The name for the real-time logging configuration. name = "test-log-endpoint" # str | The name for the real-time logging configuration. (optional) placement = "none" # str, none_type | Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. (optional) - 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`. (optional) if omitted the server will use the default value of 2 response_condition = "response_condition_example" # str, none_type | The name of an existing condition in the configured endpoint, or leave blank to always execute. (optional) format = "%h %l %u %t "%r" %>s %b" # str | A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). (optional) if omitted the server will use the default value of "%h %l %u %t "%r" %>s %b" + 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`. (optional) if omitted the server will use the default value of 2 user = "test-user@test-project-id.iam.gserviceaccount.com" # str | 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 = '''-----BEGIN PRIVATE KEY----- ... @@ -434,7 +434,7 @@ with fastly.ApiClient(configuration) as api_client: # and optional values try: # Update a GCP Cloud Pub/Sub log endpoint - api_response = api_instance.update_log_gcp_pubsub(service_id, version_id, logging_google_pubsub_name, 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) + api_response = api_instance.update_log_gcp_pubsub(service_id, version_id, logging_google_pubsub_name, name=name, placement=placement, response_condition=response_condition, format=format, format_version=format_version, user=user, secret_key=secret_key, account_name=account_name, topic=topic, project_id=project_id) pprint(api_response) except fastly.ApiException as e: print("Exception when calling LoggingPubsubApi->update_log_gcp_pubsub: %s\n" % e) @@ -450,9 +450,9 @@ Name | Type | Description | Notes **logging_google_pubsub_name** | **str**| The name for the real-time logging configuration. | **name** | **str**| The name for the real-time logging configuration. | [optional] **placement** | **str, none_type**| Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. | [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] if omitted the server will use the default value of 2 **response_condition** | **str, none_type**| The name of an existing condition in the configured endpoint, or leave blank to always execute. | [optional] **format** | **str**| A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). | [optional] if omitted the server will use the default value of "%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] if omitted the server will use the default value of 2 **user** | **str**| 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** | **str**| 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** | **str**| 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/LoggingS3.md b/docs/LoggingS3.md deleted file mode 100644 index 25a5405..0000000 --- a/docs/LoggingS3.md +++ /dev/null @@ -1,32 +0,0 @@ -# LoggingS3 - - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **str** | The name for the real-time logging configuration. | [optional] -**placement** | **str, none_type** | Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. | [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] if omitted the server will use the default value of 2 -**response_condition** | **str, none_type** | The name of an existing condition in the configured endpoint, or leave blank to always execute. | [optional] -**format** | **str** | A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). | [optional] if omitted the server will use the default value of "%h %l %u %t "%r" %>s %b" -**message_type** | **str** | How the message should be formatted. | [optional] if omitted the server will use the default value of "classic" -**timestamp_format** | **str, none_type** | A timestamp format | [optional] [readonly] -**period** | **int** | How frequently log files are finalized so they can be available for reading (in seconds). | [optional] if omitted the server will use the default value of 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] if omitted the server will use the default value of 0 -**compression_codec** | **str** | The codec used for compressing your logs. 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] -**access_key** | **str, none_type** | The access key for your S3 account. Not required if `iam_role` is provided. | [optional] -**acl** | **str** | 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** | **str** | The bucket name for S3 account. | [optional] -**domain** | **str** | The domain of the Amazon S3 endpoint. | [optional] -**iam_role** | **str, none_type** | 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** | **str, none_type** | The path to upload logs to. | [optional] if omitted the server will use the default value of "null" -**public_key** | **str, none_type** | A PGP public key that Fastly will use to encrypt your log files before writing them to disk. | [optional] if omitted the server will use the default value of "null" -**redundancy** | **str, none_type** | The S3 redundancy level. | [optional] if omitted the server will use the default value of "null" -**secret_key** | **str, none_type** | The secret key for your S3 account. Not required if `iam_role` is provided. | [optional] -**server_side_encryption_kms_key_id** | **str, none_type** | Optional server-side KMS Key Id. Must be set if `server_side_encryption` is set to `aws:kms` or `AES256`. | [optional] if omitted the server will use the default value of "null" -**server_side_encryption** | **str, none_type** | Set this to `AES256` or `aws:kms` to enable S3 Server Side Encryption. | [optional] if omitted the server will use the default value of "null" -**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/LoggingS3AllOf.md b/docs/LoggingS3Additional.md similarity index 99% rename from docs/LoggingS3AllOf.md rename to docs/LoggingS3Additional.md index 7dcf131..aa44160 100644 --- a/docs/LoggingS3AllOf.md +++ b/docs/LoggingS3Additional.md @@ -1,4 +1,4 @@ -# LoggingS3AllOf +# LoggingS3Additional ## Properties diff --git a/docs/LoggingS3Api.md b/docs/LoggingS3Api.md index d17f1fa..ab7c68d 100644 --- a/docs/LoggingS3Api.md +++ b/docs/LoggingS3Api.md @@ -53,14 +53,14 @@ with fastly.ApiClient(configuration) as api_client: version_id = 1 # int | Integer identifying a service version. name = "test-log-endpoint" # str | The name for the real-time logging configuration. (optional) placement = "none" # str, none_type | Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. (optional) - 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`. (optional) if omitted the server will use the default value of 2 response_condition = "response_condition_example" # str, none_type | The name of an existing condition in the configured endpoint, or leave blank to always execute. (optional) format = "%h %l %u %t "%r" %>s %b" # str | A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). (optional) if omitted the server will use the default value of "%h %l %u %t "%r" %>s %b" + 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`. (optional) if omitted the server will use the default value of 2 message_type = "classic" # str | How the message should be formatted. (optional) if omitted the server will use the default value of "classic" timestamp_format = "%Y-%m-%dT%H:%M:%S.000" # str, none_type | A timestamp format (optional) + compression_codec = "zstd" # str | The codec used for compressing your logs. 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) period = 3600 # int | How frequently log files are finalized so they can be available for reading (in seconds). (optional) if omitted the server will use the default value of 3600 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. (optional) if omitted the server will use the default value of 0 - compression_codec = "zstd" # str | The codec used for compressing your logs. 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) access_key = "access_key_example" # str, none_type | The access key for your S3 account. Not required if `iam_role` is provided. (optional) acl = "acl_example" # str | 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 = "bucket_name_example" # str | The bucket name for S3 account. (optional) @@ -88,7 +88,7 @@ with fastly.ApiClient(configuration) as api_client: # and optional values try: # Create an AWS S3 log endpoint - api_response = api_instance.create_log_aws_s3(service_id, version_id, 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) + api_response = api_instance.create_log_aws_s3(service_id, version_id, name=name, placement=placement, 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, 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) pprint(api_response) except fastly.ApiException as e: print("Exception when calling LoggingS3Api->create_log_aws_s3: %s\n" % e) @@ -103,14 +103,14 @@ Name | Type | Description | Notes **version_id** | **int**| Integer identifying a service version. | **name** | **str**| The name for the real-time logging configuration. | [optional] **placement** | **str, none_type**| Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. | [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] if omitted the server will use the default value of 2 **response_condition** | **str, none_type**| The name of an existing condition in the configured endpoint, or leave blank to always execute. | [optional] **format** | **str**| A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). | [optional] if omitted the server will use the default value of "%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] if omitted the server will use the default value of 2 **message_type** | **str**| How the message should be formatted. | [optional] if omitted the server will use the default value of "classic" **timestamp_format** | **str, none_type**| A timestamp format | [optional] + **compression_codec** | **str**| The codec used for compressing your logs. 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] **period** | **int**| How frequently log files are finalized so they can be available for reading (in seconds). | [optional] if omitted the server will use the default value of 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] if omitted the server will use the default value of 0 - **compression_codec** | **str**| The codec used for compressing your logs. 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] **access_key** | **str, none_type**| The access key for your S3 account. Not required if `iam_role` is provided. | [optional] **acl** | **str**| 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** | **str**| The bucket name for S3 account. | [optional] @@ -432,14 +432,14 @@ with fastly.ApiClient(configuration) as api_client: logging_s3_name = "test-log-endpoint" # str | The name for the real-time logging configuration. name = "test-log-endpoint" # str | The name for the real-time logging configuration. (optional) placement = "none" # str, none_type | Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. (optional) - 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`. (optional) if omitted the server will use the default value of 2 response_condition = "response_condition_example" # str, none_type | The name of an existing condition in the configured endpoint, or leave blank to always execute. (optional) format = "%h %l %u %t "%r" %>s %b" # str | A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). (optional) if omitted the server will use the default value of "%h %l %u %t "%r" %>s %b" + 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`. (optional) if omitted the server will use the default value of 2 message_type = "classic" # str | How the message should be formatted. (optional) if omitted the server will use the default value of "classic" timestamp_format = "%Y-%m-%dT%H:%M:%S.000" # str, none_type | A timestamp format (optional) + compression_codec = "zstd" # str | The codec used for compressing your logs. 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) period = 3600 # int | How frequently log files are finalized so they can be available for reading (in seconds). (optional) if omitted the server will use the default value of 3600 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. (optional) if omitted the server will use the default value of 0 - compression_codec = "zstd" # str | The codec used for compressing your logs. 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) access_key = "access_key_example" # str, none_type | The access key for your S3 account. Not required if `iam_role` is provided. (optional) acl = "acl_example" # str | 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 = "bucket_name_example" # str | The bucket name for S3 account. (optional) @@ -467,7 +467,7 @@ with fastly.ApiClient(configuration) as api_client: # and optional values try: # Update an AWS S3 log endpoint - api_response = api_instance.update_log_aws_s3(service_id, version_id, logging_s3_name, 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) + api_response = api_instance.update_log_aws_s3(service_id, version_id, logging_s3_name, name=name, placement=placement, 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, 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) pprint(api_response) except fastly.ApiException as e: print("Exception when calling LoggingS3Api->update_log_aws_s3: %s\n" % e) @@ -483,14 +483,14 @@ Name | Type | Description | Notes **logging_s3_name** | **str**| The name for the real-time logging configuration. | **name** | **str**| The name for the real-time logging configuration. | [optional] **placement** | **str, none_type**| Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. | [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] if omitted the server will use the default value of 2 **response_condition** | **str, none_type**| The name of an existing condition in the configured endpoint, or leave blank to always execute. | [optional] **format** | **str**| A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). | [optional] if omitted the server will use the default value of "%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] if omitted the server will use the default value of 2 **message_type** | **str**| How the message should be formatted. | [optional] if omitted the server will use the default value of "classic" **timestamp_format** | **str, none_type**| A timestamp format | [optional] + **compression_codec** | **str**| The codec used for compressing your logs. 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] **period** | **int**| How frequently log files are finalized so they can be available for reading (in seconds). | [optional] if omitted the server will use the default value of 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] if omitted the server will use the default value of 0 - **compression_codec** | **str**| The codec used for compressing your logs. 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] **access_key** | **str, none_type**| The access key for your S3 account. Not required if `iam_role` is provided. | [optional] **acl** | **str**| 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** | **str**| The bucket name for S3 account. | [optional] diff --git a/docs/LoggingS3Response.md b/docs/LoggingS3Response.md index 1ed5db6..5af917e 100644 --- a/docs/LoggingS3Response.md +++ b/docs/LoggingS3Response.md @@ -6,14 +6,19 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **name** | **str** | The name for the real-time logging configuration. | [optional] **placement** | **str, none_type** | Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. | [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] if omitted the server will use the default value of 2 **response_condition** | **str, none_type** | The name of an existing condition in the configured endpoint, or leave blank to always execute. | [optional] **format** | **str** | A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). | [optional] if omitted the server will use the default value of "%h %l %u %t "%r" %>s %b" +**format_version** | **str** | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. | [optional] if omitted the server will use the default value of "2" **message_type** | **str** | How the message should be formatted. | [optional] if omitted the server will use the default value of "classic" **timestamp_format** | **str, none_type** | A timestamp format | [optional] [readonly] -**period** | **int** | How frequently log files are finalized so they can be available for reading (in seconds). | [optional] if omitted the server will use the default value of 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] if omitted the server will use the default value of 0 **compression_codec** | **str** | The codec used for compressing your logs. 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] +**period** | **str** | How frequently log files are finalized so they can be available for reading (in seconds). | [optional] if omitted the server will use the default value of "3600" +**gzip_level** | **str** | 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] if omitted the server will use the default value of "0" +**created_at** | **datetime, none_type** | Date and time in ISO 8601 format. | [optional] [readonly] +**deleted_at** | **datetime, none_type** | Date and time in ISO 8601 format. | [optional] [readonly] +**updated_at** | **datetime, none_type** | Date and time in ISO 8601 format. | [optional] [readonly] +**service_id** | **str** | | [optional] [readonly] +**version** | **str** | | [optional] [readonly] **access_key** | **str, none_type** | The access key for your S3 account. Not required if `iam_role` is provided. | [optional] **acl** | **str** | 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** | **str** | The bucket name for S3 account. | [optional] @@ -25,11 +30,6 @@ Name | Type | Description | Notes **secret_key** | **str, none_type** | The secret key for your S3 account. Not required if `iam_role` is provided. | [optional] **server_side_encryption_kms_key_id** | **str, none_type** | Optional server-side KMS Key Id. Must be set if `server_side_encryption` is set to `aws:kms` or `AES256`. | [optional] if omitted the server will use the default value of "null" **server_side_encryption** | **str, none_type** | Set this to `AES256` or `aws:kms` to enable S3 Server Side Encryption. | [optional] if omitted the server will use the default value of "null" -**created_at** | **datetime, none_type** | Date and time in ISO 8601 format. | [optional] [readonly] -**deleted_at** | **datetime, none_type** | Date and time in ISO 8601 format. | [optional] [readonly] -**updated_at** | **datetime, none_type** | Date and time in ISO 8601 format. | [optional] [readonly] -**service_id** | **str** | | [optional] [readonly] -**version** | **int** | | [optional] [readonly] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/LoggingScalyr.md b/docs/LoggingScalyr.md deleted file mode 100644 index b751641..0000000 --- a/docs/LoggingScalyr.md +++ /dev/null @@ -1,19 +0,0 @@ -# LoggingScalyr - - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **str** | The name for the real-time logging configuration. | [optional] -**placement** | **str, none_type** | Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. | [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] if omitted the server will use the default value of 2 -**response_condition** | **str, none_type** | The name of an existing condition in the configured endpoint, or leave blank to always execute. | [optional] -**format** | **str** | A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). | [optional] if omitted the server will use the default value of "%h %l %u %t "%r" %>s %b" -**region** | **str** | The region that log data will be sent to. | [optional] if omitted the server will use the default value of "US" -**token** | **str** | The token to use for authentication ([https://www.scalyr.com/keys](https://www.scalyr.com/keys)). | [optional] -**project_id** | **str** | The name of the logfile within Scalyr. | [optional] if omitted the server will use the default value of "logplex" -**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/LoggingScalyrAllOf.md b/docs/LoggingScalyrAdditional.md similarity index 97% rename from docs/LoggingScalyrAllOf.md rename to docs/LoggingScalyrAdditional.md index 1f0dd70..195aa4b 100644 --- a/docs/LoggingScalyrAllOf.md +++ b/docs/LoggingScalyrAdditional.md @@ -1,4 +1,4 @@ -# LoggingScalyrAllOf +# LoggingScalyrAdditional ## Properties diff --git a/docs/LoggingScalyrApi.md b/docs/LoggingScalyrApi.md index e24928d..5bcfa6d 100644 --- a/docs/LoggingScalyrApi.md +++ b/docs/LoggingScalyrApi.md @@ -53,9 +53,9 @@ with fastly.ApiClient(configuration) as api_client: version_id = 1 # int | Integer identifying a service version. name = "test-log-endpoint" # str | The name for the real-time logging configuration. (optional) placement = "none" # str, none_type | Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. (optional) - 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`. (optional) if omitted the server will use the default value of 2 response_condition = "response_condition_example" # str, none_type | The name of an existing condition in the configured endpoint, or leave blank to always execute. (optional) format = "%h %l %u %t "%r" %>s %b" # str | A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). (optional) if omitted the server will use the default value of "%h %l %u %t "%r" %>s %b" + 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`. (optional) if omitted the server will use the default value of 2 region = "US" # str | The region that log data will be sent to. (optional) if omitted the server will use the default value of "US" token = "token_example" # str | The token to use for authentication ([https://www.scalyr.com/keys](https://www.scalyr.com/keys)). (optional) project_id = "logplex" # str | The name of the logfile within Scalyr. (optional) if omitted the server will use the default value of "logplex" @@ -72,7 +72,7 @@ with fastly.ApiClient(configuration) as api_client: # and optional values try: # Create a Scalyr log endpoint - api_response = api_instance.create_log_scalyr(service_id, version_id, name=name, placement=placement, format_version=format_version, response_condition=response_condition, format=format, region=region, token=token, project_id=project_id) + api_response = api_instance.create_log_scalyr(service_id, version_id, name=name, placement=placement, response_condition=response_condition, format=format, format_version=format_version, region=region, token=token, project_id=project_id) pprint(api_response) except fastly.ApiException as e: print("Exception when calling LoggingScalyrApi->create_log_scalyr: %s\n" % e) @@ -87,9 +87,9 @@ Name | Type | Description | Notes **version_id** | **int**| Integer identifying a service version. | **name** | **str**| The name for the real-time logging configuration. | [optional] **placement** | **str, none_type**| Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. | [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] if omitted the server will use the default value of 2 **response_condition** | **str, none_type**| The name of an existing condition in the configured endpoint, or leave blank to always execute. | [optional] **format** | **str**| A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). | [optional] if omitted the server will use the default value of "%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] if omitted the server will use the default value of 2 **region** | **str**| The region that log data will be sent to. | [optional] if omitted the server will use the default value of "US" **token** | **str**| The token to use for authentication ([https://www.scalyr.com/keys](https://www.scalyr.com/keys)). | [optional] **project_id** | **str**| The name of the logfile within Scalyr. | [optional] if omitted the server will use the default value of "logplex" @@ -403,9 +403,9 @@ with fastly.ApiClient(configuration) as api_client: logging_scalyr_name = "test-log-endpoint" # str | The name for the real-time logging configuration. name = "test-log-endpoint" # str | The name for the real-time logging configuration. (optional) placement = "none" # str, none_type | Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. (optional) - 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`. (optional) if omitted the server will use the default value of 2 response_condition = "response_condition_example" # str, none_type | The name of an existing condition in the configured endpoint, or leave blank to always execute. (optional) format = "%h %l %u %t "%r" %>s %b" # str | A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). (optional) if omitted the server will use the default value of "%h %l %u %t "%r" %>s %b" + 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`. (optional) if omitted the server will use the default value of 2 region = "US" # str | The region that log data will be sent to. (optional) if omitted the server will use the default value of "US" token = "token_example" # str | The token to use for authentication ([https://www.scalyr.com/keys](https://www.scalyr.com/keys)). (optional) project_id = "logplex" # str | The name of the logfile within Scalyr. (optional) if omitted the server will use the default value of "logplex" @@ -422,7 +422,7 @@ with fastly.ApiClient(configuration) as api_client: # and optional values try: # Update the Scalyr log endpoint - api_response = api_instance.update_log_scalyr(service_id, version_id, logging_scalyr_name, name=name, placement=placement, format_version=format_version, response_condition=response_condition, format=format, region=region, token=token, project_id=project_id) + api_response = api_instance.update_log_scalyr(service_id, version_id, logging_scalyr_name, name=name, placement=placement, response_condition=response_condition, format=format, format_version=format_version, region=region, token=token, project_id=project_id) pprint(api_response) except fastly.ApiException as e: print("Exception when calling LoggingScalyrApi->update_log_scalyr: %s\n" % e) @@ -438,9 +438,9 @@ Name | Type | Description | Notes **logging_scalyr_name** | **str**| The name for the real-time logging configuration. | **name** | **str**| The name for the real-time logging configuration. | [optional] **placement** | **str, none_type**| Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. | [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] if omitted the server will use the default value of 2 **response_condition** | **str, none_type**| The name of an existing condition in the configured endpoint, or leave blank to always execute. | [optional] **format** | **str**| A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). | [optional] if omitted the server will use the default value of "%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] if omitted the server will use the default value of 2 **region** | **str**| The region that log data will be sent to. | [optional] if omitted the server will use the default value of "US" **token** | **str**| The token to use for authentication ([https://www.scalyr.com/keys](https://www.scalyr.com/keys)). | [optional] **project_id** | **str**| The name of the logfile within Scalyr. | [optional] if omitted the server will use the default value of "logplex" diff --git a/docs/LoggingScalyrResponse.md b/docs/LoggingScalyrResponse.md index 35717ef..7177032 100644 --- a/docs/LoggingScalyrResponse.md +++ b/docs/LoggingScalyrResponse.md @@ -6,9 +6,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **name** | **str** | The name for the real-time logging configuration. | [optional] **placement** | **str, none_type** | Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. | [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] if omitted the server will use the default value of 2 **response_condition** | **str, none_type** | The name of an existing condition in the configured endpoint, or leave blank to always execute. | [optional] **format** | **str** | A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). | [optional] if omitted the server will use the default value of "%h %l %u %t "%r" %>s %b" +**format_version** | **str** | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. | [optional] if omitted the server will use the default value of "2" **region** | **str** | The region that log data will be sent to. | [optional] if omitted the server will use the default value of "US" **token** | **str** | The token to use for authentication ([https://www.scalyr.com/keys](https://www.scalyr.com/keys)). | [optional] **project_id** | **str** | The name of the logfile within Scalyr. | [optional] if omitted the server will use the default value of "logplex" @@ -16,7 +16,7 @@ Name | Type | Description | Notes **deleted_at** | **datetime, none_type** | Date and time in ISO 8601 format. | [optional] [readonly] **updated_at** | **datetime, none_type** | Date and time in ISO 8601 format. | [optional] [readonly] **service_id** | **str** | | [optional] [readonly] -**version** | **int** | | [optional] [readonly] +**version** | **str** | | [optional] [readonly] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/LoggingSftp.md b/docs/LoggingSftp.md deleted file mode 100644 index 2358395..0000000 --- a/docs/LoggingSftp.md +++ /dev/null @@ -1,29 +0,0 @@ -# LoggingSftp - - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **str** | The name for the real-time logging configuration. | [optional] -**placement** | **str, none_type** | Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. | [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] if omitted the server will use the default value of 2 -**response_condition** | **str, none_type** | The name of an existing condition in the configured endpoint, or leave blank to always execute. | [optional] -**format** | **str** | A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). | [optional] if omitted the server will use the default value of "%h %l %u %t "%r" %>s %b" -**message_type** | **str** | How the message should be formatted. | [optional] if omitted the server will use the default value of "classic" -**timestamp_format** | **str, none_type** | A timestamp format | [optional] [readonly] -**period** | **int** | How frequently log files are finalized so they can be available for reading (in seconds). | [optional] if omitted the server will use the default value of 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] if omitted the server will use the default value of 0 -**compression_codec** | **str** | The codec used for compressing your logs. 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] -**address** | **str** | A hostname or IPv4 address. | [optional] -**port** | **int** | The port number. | [optional] if omitted the server will use the default value of 22 -**password** | **str** | The password for the server. If both `password` and `secret_key` are passed, `secret_key` will be used in preference. | [optional] -**path** | **str, none_type** | The path to upload logs to. | [optional] if omitted the server will use the default value of "null" -**public_key** | **str, none_type** | A PGP public key that Fastly will use to encrypt your log files before writing them to disk. | [optional] if omitted the server will use the default value of "null" -**secret_key** | **str, none_type** | The SSH private key for the server. If both `password` and `secret_key` are passed, `secret_key` will be used in preference. | [optional] if omitted the server will use the default value of "null" -**ssh_known_hosts** | **str** | A list of host keys for all hosts we can connect to over SFTP. | [optional] -**user** | **str** | The username for the server. | [optional] -**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/LoggingSftpAllOf.md b/docs/LoggingSftpAdditional.md similarity index 91% rename from docs/LoggingSftpAllOf.md rename to docs/LoggingSftpAdditional.md index 3d6676b..0f0065d 100644 --- a/docs/LoggingSftpAllOf.md +++ b/docs/LoggingSftpAdditional.md @@ -1,4 +1,4 @@ -# LoggingSftpAllOf +# LoggingSftpAdditional ## Properties @@ -6,7 +6,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **password** | **str** | The password for the server. If both `password` and `secret_key` are passed, `secret_key` will be used in preference. | [optional] **path** | **str, none_type** | The path to upload logs to. | [optional] if omitted the server will use the default value of "null" -**port** | **int** | The port number. | [optional] if omitted the server will use the default value of 22 **public_key** | **str, none_type** | A PGP public key that Fastly will use to encrypt your log files before writing them to disk. | [optional] if omitted the server will use the default value of "null" **secret_key** | **str, none_type** | The SSH private key for the server. If both `password` and `secret_key` are passed, `secret_key` will be used in preference. | [optional] if omitted the server will use the default value of "null" **ssh_known_hosts** | **str** | A list of host keys for all hosts we can connect to over SFTP. | [optional] diff --git a/docs/LoggingSftpApi.md b/docs/LoggingSftpApi.md index e681120..2595e7a 100644 --- a/docs/LoggingSftpApi.md +++ b/docs/LoggingSftpApi.md @@ -53,14 +53,14 @@ with fastly.ApiClient(configuration) as api_client: version_id = 1 # int | Integer identifying a service version. name = "test-log-endpoint" # str | The name for the real-time logging configuration. (optional) placement = "none" # str, none_type | Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. (optional) - 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`. (optional) if omitted the server will use the default value of 2 response_condition = "response_condition_example" # str, none_type | The name of an existing condition in the configured endpoint, or leave blank to always execute. (optional) format = "%h %l %u %t "%r" %>s %b" # str | A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). (optional) if omitted the server will use the default value of "%h %l %u %t "%r" %>s %b" + 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`. (optional) if omitted the server will use the default value of 2 message_type = "classic" # str | How the message should be formatted. (optional) if omitted the server will use the default value of "classic" timestamp_format = "%Y-%m-%dT%H:%M:%S.000" # str, none_type | A timestamp format (optional) + compression_codec = "zstd" # str | The codec used for compressing your logs. 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) period = 3600 # int | How frequently log files are finalized so they can be available for reading (in seconds). (optional) if omitted the server will use the default value of 3600 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. (optional) if omitted the server will use the default value of 0 - compression_codec = "zstd" # str | The codec used for compressing your logs. 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) address = "example.com" # str | A hostname or IPv4 address. (optional) port = 22 # int | The port number. (optional) if omitted the server will use the default value of 22 password = "password_example" # str | The password for the server. If both `password` and `secret_key` are passed, `secret_key` will be used in preference. (optional) @@ -85,7 +85,7 @@ with fastly.ApiClient(configuration) as api_client: # and optional values try: # Create an SFTP log endpoint - api_response = api_instance.create_log_sftp(service_id, version_id, 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) + api_response = api_instance.create_log_sftp(service_id, version_id, name=name, placement=placement, 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, address=address, port=port, password=password, path=path, public_key=public_key, secret_key=secret_key, ssh_known_hosts=ssh_known_hosts, user=user) pprint(api_response) except fastly.ApiException as e: print("Exception when calling LoggingSftpApi->create_log_sftp: %s\n" % e) @@ -100,14 +100,14 @@ Name | Type | Description | Notes **version_id** | **int**| Integer identifying a service version. | **name** | **str**| The name for the real-time logging configuration. | [optional] **placement** | **str, none_type**| Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. | [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] if omitted the server will use the default value of 2 **response_condition** | **str, none_type**| The name of an existing condition in the configured endpoint, or leave blank to always execute. | [optional] **format** | **str**| A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). | [optional] if omitted the server will use the default value of "%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] if omitted the server will use the default value of 2 **message_type** | **str**| How the message should be formatted. | [optional] if omitted the server will use the default value of "classic" **timestamp_format** | **str, none_type**| A timestamp format | [optional] + **compression_codec** | **str**| The codec used for compressing your logs. 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] **period** | **int**| How frequently log files are finalized so they can be available for reading (in seconds). | [optional] if omitted the server will use the default value of 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] if omitted the server will use the default value of 0 - **compression_codec** | **str**| The codec used for compressing your logs. 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] **address** | **str**| A hostname or IPv4 address. | [optional] **port** | **int**| The port number. | [optional] if omitted the server will use the default value of 22 **password** | **str**| The password for the server. If both `password` and `secret_key` are passed, `secret_key` will be used in preference. | [optional] @@ -426,14 +426,14 @@ with fastly.ApiClient(configuration) as api_client: logging_sftp_name = "test-log-endpoint" # str | The name for the real-time logging configuration. name = "test-log-endpoint" # str | The name for the real-time logging configuration. (optional) placement = "none" # str, none_type | Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. (optional) - 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`. (optional) if omitted the server will use the default value of 2 response_condition = "response_condition_example" # str, none_type | The name of an existing condition in the configured endpoint, or leave blank to always execute. (optional) format = "%h %l %u %t "%r" %>s %b" # str | A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). (optional) if omitted the server will use the default value of "%h %l %u %t "%r" %>s %b" + 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`. (optional) if omitted the server will use the default value of 2 message_type = "classic" # str | How the message should be formatted. (optional) if omitted the server will use the default value of "classic" timestamp_format = "%Y-%m-%dT%H:%M:%S.000" # str, none_type | A timestamp format (optional) + compression_codec = "zstd" # str | The codec used for compressing your logs. 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) period = 3600 # int | How frequently log files are finalized so they can be available for reading (in seconds). (optional) if omitted the server will use the default value of 3600 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. (optional) if omitted the server will use the default value of 0 - compression_codec = "zstd" # str | The codec used for compressing your logs. 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) address = "example.com" # str | A hostname or IPv4 address. (optional) port = 22 # int | The port number. (optional) if omitted the server will use the default value of 22 password = "password_example" # str | The password for the server. If both `password` and `secret_key` are passed, `secret_key` will be used in preference. (optional) @@ -458,7 +458,7 @@ with fastly.ApiClient(configuration) as api_client: # and optional values try: # Update an SFTP log endpoint - api_response = api_instance.update_log_sftp(service_id, version_id, logging_sftp_name, 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) + api_response = api_instance.update_log_sftp(service_id, version_id, logging_sftp_name, name=name, placement=placement, 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, address=address, port=port, password=password, path=path, public_key=public_key, secret_key=secret_key, ssh_known_hosts=ssh_known_hosts, user=user) pprint(api_response) except fastly.ApiException as e: print("Exception when calling LoggingSftpApi->update_log_sftp: %s\n" % e) @@ -474,14 +474,14 @@ Name | Type | Description | Notes **logging_sftp_name** | **str**| The name for the real-time logging configuration. | **name** | **str**| The name for the real-time logging configuration. | [optional] **placement** | **str, none_type**| Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. | [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] if omitted the server will use the default value of 2 **response_condition** | **str, none_type**| The name of an existing condition in the configured endpoint, or leave blank to always execute. | [optional] **format** | **str**| A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). | [optional] if omitted the server will use the default value of "%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] if omitted the server will use the default value of 2 **message_type** | **str**| How the message should be formatted. | [optional] if omitted the server will use the default value of "classic" **timestamp_format** | **str, none_type**| A timestamp format | [optional] + **compression_codec** | **str**| The codec used for compressing your logs. 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] **period** | **int**| How frequently log files are finalized so they can be available for reading (in seconds). | [optional] if omitted the server will use the default value of 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] if omitted the server will use the default value of 0 - **compression_codec** | **str**| The codec used for compressing your logs. 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] **address** | **str**| A hostname or IPv4 address. | [optional] **port** | **int**| The port number. | [optional] if omitted the server will use the default value of 22 **password** | **str**| 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/LoggingSftpResponse.md b/docs/LoggingSftpResponse.md index e9acc49..f49472d 100644 --- a/docs/LoggingSftpResponse.md +++ b/docs/LoggingSftpResponse.md @@ -6,27 +6,27 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **name** | **str** | The name for the real-time logging configuration. | [optional] **placement** | **str, none_type** | Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. | [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] if omitted the server will use the default value of 2 **response_condition** | **str, none_type** | The name of an existing condition in the configured endpoint, or leave blank to always execute. | [optional] **format** | **str** | A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). | [optional] if omitted the server will use the default value of "%h %l %u %t "%r" %>s %b" +**format_version** | **str** | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. | [optional] if omitted the server will use the default value of "2" **message_type** | **str** | How the message should be formatted. | [optional] if omitted the server will use the default value of "classic" **timestamp_format** | **str, none_type** | A timestamp format | [optional] [readonly] -**period** | **int** | How frequently log files are finalized so they can be available for reading (in seconds). | [optional] if omitted the server will use the default value of 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] if omitted the server will use the default value of 0 **compression_codec** | **str** | The codec used for compressing your logs. 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] -**address** | **str** | A hostname or IPv4 address. | [optional] -**port** | **int** | The port number. | [optional] if omitted the server will use the default value of 22 +**created_at** | **datetime, none_type** | Date and time in ISO 8601 format. | [optional] [readonly] +**deleted_at** | **datetime, none_type** | Date and time in ISO 8601 format. | [optional] [readonly] +**updated_at** | **datetime, none_type** | Date and time in ISO 8601 format. | [optional] [readonly] +**service_id** | **str** | | [optional] [readonly] +**version** | **str** | | [optional] [readonly] **password** | **str** | The password for the server. If both `password` and `secret_key` are passed, `secret_key` will be used in preference. | [optional] **path** | **str, none_type** | The path to upload logs to. | [optional] if omitted the server will use the default value of "null" **public_key** | **str, none_type** | A PGP public key that Fastly will use to encrypt your log files before writing them to disk. | [optional] if omitted the server will use the default value of "null" **secret_key** | **str, none_type** | The SSH private key for the server. If both `password` and `secret_key` are passed, `secret_key` will be used in preference. | [optional] if omitted the server will use the default value of "null" **ssh_known_hosts** | **str** | A list of host keys for all hosts we can connect to over SFTP. | [optional] **user** | **str** | The username for the server. | [optional] -**created_at** | **datetime, none_type** | Date and time in ISO 8601 format. | [optional] [readonly] -**deleted_at** | **datetime, none_type** | Date and time in ISO 8601 format. | [optional] [readonly] -**updated_at** | **datetime, none_type** | Date and time in ISO 8601 format. | [optional] [readonly] -**service_id** | **str** | | [optional] [readonly] -**version** | **int** | | [optional] [readonly] +**address** | **str** | A hostname or IPv4 address. | [optional] +**port** | **str** | The port number. | [optional] if omitted the server will use the default value of "22" +**period** | **str** | How frequently log files are finalized so they can be available for reading (in seconds). | [optional] if omitted the server will use the default value of "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] if omitted the server will use the default value of 0 **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/LoggingSftpResponseAllOf.md b/docs/LoggingSftpResponseAllOf.md new file mode 100644 index 0000000..5d3c2c7 --- /dev/null +++ b/docs/LoggingSftpResponseAllOf.md @@ -0,0 +1,15 @@ +# LoggingSftpResponseAllOf + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**address** | **str** | A hostname or IPv4 address. | [optional] +**port** | **str** | The port number. | [optional] if omitted the server will use the default value of "22" +**period** | **str** | How frequently log files are finalized so they can be available for reading (in seconds). | [optional] if omitted the server will use the default value of "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] if omitted the server will use the default value of 0 +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/LoggingSplunk.md b/docs/LoggingSplunk.md deleted file mode 100644 index 9a881d2..0000000 --- a/docs/LoggingSplunk.md +++ /dev/null @@ -1,25 +0,0 @@ -# LoggingSplunk - - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **str** | The name for the real-time logging configuration. | [optional] -**placement** | **str, none_type** | Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. | [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] if omitted the server will use the default value of 2 -**response_condition** | **str, none_type** | The name of an existing condition in the configured endpoint, or leave blank to always execute. | [optional] -**format** | **str** | A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). | [optional] if omitted the server will use the default value of "%h %l %u %t "%r" %>s %b" -**tls_ca_cert** | **str, none_type** | A secure certificate to authenticate a server with. Must be in PEM format. | [optional] if omitted the server will use the default value of "null" -**tls_client_cert** | **str, none_type** | The client certificate used to make authenticated requests. Must be in PEM format. | [optional] if omitted the server will use the default value of "null" -**tls_client_key** | **str, none_type** | The client private key used to make authenticated requests. Must be in PEM format. | [optional] if omitted the server will use the default value of "null" -**tls_hostname** | **str, none_type** | 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] if omitted the server will use the default value of "null" -**request_max_entries** | **int** | The maximum number of logs sent in one request. Defaults `0` for unbounded. | [optional] if omitted the server will use the default value of 0 -**request_max_bytes** | **int** | The maximum number of bytes sent in one request. Defaults `0` for unbounded. | [optional] if omitted the server will use the default value of 0 -**url** | **str** | The URL to post logs to. | [optional] -**token** | **str** | A Splunk token for use in posting logs over HTTP to your collector. | [optional] -**use_tls** | [**LoggingUseTls**](LoggingUseTls.md) | | [optional] -**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/LoggingSplunkAllOf.md b/docs/LoggingSplunkAdditional.md similarity index 96% rename from docs/LoggingSplunkAllOf.md rename to docs/LoggingSplunkAdditional.md index e4369fc..72c2307 100644 --- a/docs/LoggingSplunkAllOf.md +++ b/docs/LoggingSplunkAdditional.md @@ -1,4 +1,4 @@ -# LoggingSplunkAllOf +# LoggingSplunkAdditional ## Properties diff --git a/docs/LoggingSplunkApi.md b/docs/LoggingSplunkApi.md index 38308b2..bd6fa6a 100644 --- a/docs/LoggingSplunkApi.md +++ b/docs/LoggingSplunkApi.md @@ -54,9 +54,9 @@ with fastly.ApiClient(configuration) as api_client: version_id = 1 # int | Integer identifying a service version. name = "test-log-endpoint" # str | The name for the real-time logging configuration. (optional) placement = "none" # str, none_type | Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. (optional) - 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`. (optional) if omitted the server will use the default value of 2 response_condition = "response_condition_example" # str, none_type | The name of an existing condition in the configured endpoint, or leave blank to always execute. (optional) format = "%h %l %u %t "%r" %>s %b" # str | A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). (optional) if omitted the server will use the default value of "%h %l %u %t "%r" %>s %b" + 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`. (optional) if omitted the server will use the default value of 2 tls_ca_cert = "null" # str, none_type | A secure certificate to authenticate a server with. Must be in PEM format. (optional) if omitted the server will use the default value of "null" tls_client_cert = "null" # str, none_type | The client certificate used to make authenticated requests. Must be in PEM format. (optional) if omitted the server will use the default value of "null" tls_client_key = "null" # str, none_type | The client private key used to make authenticated requests. Must be in PEM format. (optional) if omitted the server will use the default value of "null" @@ -79,7 +79,7 @@ with fastly.ApiClient(configuration) as api_client: # and optional values try: # Create a Splunk log endpoint - api_response = api_instance.create_log_splunk(service_id, version_id, 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) + api_response = api_instance.create_log_splunk(service_id, version_id, name=name, placement=placement, 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, request_max_entries=request_max_entries, request_max_bytes=request_max_bytes, url=url, token=token, use_tls=use_tls) pprint(api_response) except fastly.ApiException as e: print("Exception when calling LoggingSplunkApi->create_log_splunk: %s\n" % e) @@ -94,9 +94,9 @@ Name | Type | Description | Notes **version_id** | **int**| Integer identifying a service version. | **name** | **str**| The name for the real-time logging configuration. | [optional] **placement** | **str, none_type**| Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. | [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] if omitted the server will use the default value of 2 **response_condition** | **str, none_type**| The name of an existing condition in the configured endpoint, or leave blank to always execute. | [optional] **format** | **str**| A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). | [optional] if omitted the server will use the default value of "%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] if omitted the server will use the default value of 2 **tls_ca_cert** | **str, none_type**| A secure certificate to authenticate a server with. Must be in PEM format. | [optional] if omitted the server will use the default value of "null" **tls_client_cert** | **str, none_type**| The client certificate used to make authenticated requests. Must be in PEM format. | [optional] if omitted the server will use the default value of "null" **tls_client_key** | **str, none_type**| The client private key used to make authenticated requests. Must be in PEM format. | [optional] if omitted the server will use the default value of "null" @@ -417,9 +417,9 @@ with fastly.ApiClient(configuration) as api_client: logging_splunk_name = "test-log-endpoint" # str | The name for the real-time logging configuration. name = "test-log-endpoint" # str | The name for the real-time logging configuration. (optional) placement = "none" # str, none_type | Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. (optional) - 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`. (optional) if omitted the server will use the default value of 2 response_condition = "response_condition_example" # str, none_type | The name of an existing condition in the configured endpoint, or leave blank to always execute. (optional) format = "%h %l %u %t "%r" %>s %b" # str | A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). (optional) if omitted the server will use the default value of "%h %l %u %t "%r" %>s %b" + 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`. (optional) if omitted the server will use the default value of 2 tls_ca_cert = "null" # str, none_type | A secure certificate to authenticate a server with. Must be in PEM format. (optional) if omitted the server will use the default value of "null" tls_client_cert = "null" # str, none_type | The client certificate used to make authenticated requests. Must be in PEM format. (optional) if omitted the server will use the default value of "null" tls_client_key = "null" # str, none_type | The client private key used to make authenticated requests. Must be in PEM format. (optional) if omitted the server will use the default value of "null" @@ -442,7 +442,7 @@ with fastly.ApiClient(configuration) as api_client: # and optional values try: # Update a Splunk log endpoint - api_response = api_instance.update_log_splunk(service_id, version_id, logging_splunk_name, 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) + api_response = api_instance.update_log_splunk(service_id, version_id, logging_splunk_name, name=name, placement=placement, 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, request_max_entries=request_max_entries, request_max_bytes=request_max_bytes, url=url, token=token, use_tls=use_tls) pprint(api_response) except fastly.ApiException as e: print("Exception when calling LoggingSplunkApi->update_log_splunk: %s\n" % e) @@ -458,9 +458,9 @@ Name | Type | Description | Notes **logging_splunk_name** | **str**| The name for the real-time logging configuration. | **name** | **str**| The name for the real-time logging configuration. | [optional] **placement** | **str, none_type**| Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. | [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] if omitted the server will use the default value of 2 **response_condition** | **str, none_type**| The name of an existing condition in the configured endpoint, or leave blank to always execute. | [optional] **format** | **str**| A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). | [optional] if omitted the server will use the default value of "%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] if omitted the server will use the default value of 2 **tls_ca_cert** | **str, none_type**| A secure certificate to authenticate a server with. Must be in PEM format. | [optional] if omitted the server will use the default value of "null" **tls_client_cert** | **str, none_type**| The client certificate used to make authenticated requests. Must be in PEM format. | [optional] if omitted the server will use the default value of "null" **tls_client_key** | **str, none_type**| The client private key used to make authenticated requests. Must be in PEM format. | [optional] if omitted the server will use the default value of "null" diff --git a/docs/LoggingSplunkResponse.md b/docs/LoggingSplunkResponse.md index a0b871c..c3ee65c 100644 --- a/docs/LoggingSplunkResponse.md +++ b/docs/LoggingSplunkResponse.md @@ -6,9 +6,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **name** | **str** | The name for the real-time logging configuration. | [optional] **placement** | **str, none_type** | Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. | [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] if omitted the server will use the default value of 2 **response_condition** | **str, none_type** | The name of an existing condition in the configured endpoint, or leave blank to always execute. | [optional] **format** | **str** | A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). | [optional] if omitted the server will use the default value of "%h %l %u %t "%r" %>s %b" +**format_version** | **str** | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. | [optional] if omitted the server will use the default value of "2" **tls_ca_cert** | **str, none_type** | A secure certificate to authenticate a server with. Must be in PEM format. | [optional] if omitted the server will use the default value of "null" **tls_client_cert** | **str, none_type** | The client certificate used to make authenticated requests. Must be in PEM format. | [optional] if omitted the server will use the default value of "null" **tls_client_key** | **str, none_type** | The client private key used to make authenticated requests. Must be in PEM format. | [optional] if omitted the server will use the default value of "null" @@ -22,7 +22,7 @@ Name | Type | Description | Notes **deleted_at** | **datetime, none_type** | Date and time in ISO 8601 format. | [optional] [readonly] **updated_at** | **datetime, none_type** | Date and time in ISO 8601 format. | [optional] [readonly] **service_id** | **str** | | [optional] [readonly] -**version** | **int** | | [optional] [readonly] +**version** | **str** | | [optional] [readonly] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/LoggingSumologicAllOf.md b/docs/LoggingSumologicAdditional.md similarity index 95% rename from docs/LoggingSumologicAllOf.md rename to docs/LoggingSumologicAdditional.md index 2985154..c25466c 100644 --- a/docs/LoggingSumologicAllOf.md +++ b/docs/LoggingSumologicAdditional.md @@ -1,4 +1,4 @@ -# LoggingSumologicAllOf +# LoggingSumologicAdditional ## Properties diff --git a/docs/LoggingSumologicApi.md b/docs/LoggingSumologicApi.md index 740b084..7151c24 100644 --- a/docs/LoggingSumologicApi.md +++ b/docs/LoggingSumologicApi.md @@ -54,9 +54,9 @@ with fastly.ApiClient(configuration) as api_client: version_id = 1 # int | Integer identifying a service version. name = "test-log-endpoint" # str | The name for the real-time logging configuration. (optional) placement = "none" # str, none_type | Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. (optional) - 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`. (optional) if omitted the server will use the default value of 2 response_condition = "response_condition_example" # str, none_type | The name of an existing condition in the configured endpoint, or leave blank to always execute. (optional) format = "%h %l %u %t "%r" %>s %b" # str | A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). (optional) if omitted the server will use the default value of "%h %l %u %t "%r" %>s %b" + 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`. (optional) if omitted the server will use the default value of 2 message_type = LoggingMessageType("classic") # LoggingMessageType | (optional) url = "url_example" # str | The URL to post logs to. (optional) @@ -72,7 +72,7 @@ with fastly.ApiClient(configuration) as api_client: # and optional values try: # Create a Sumologic log endpoint - api_response = api_instance.create_log_sumologic(service_id, version_id, name=name, placement=placement, format_version=format_version, response_condition=response_condition, format=format, message_type=message_type, url=url) + api_response = api_instance.create_log_sumologic(service_id, version_id, name=name, placement=placement, response_condition=response_condition, format=format, format_version=format_version, message_type=message_type, url=url) pprint(api_response) except fastly.ApiException as e: print("Exception when calling LoggingSumologicApi->create_log_sumologic: %s\n" % e) @@ -87,9 +87,9 @@ Name | Type | Description | Notes **version_id** | **int**| Integer identifying a service version. | **name** | **str**| The name for the real-time logging configuration. | [optional] **placement** | **str, none_type**| Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. | [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] if omitted the server will use the default value of 2 **response_condition** | **str, none_type**| The name of an existing condition in the configured endpoint, or leave blank to always execute. | [optional] **format** | **str**| A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). | [optional] if omitted the server will use the default value of "%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] if omitted the server will use the default value of 2 **message_type** | [**LoggingMessageType**](LoggingMessageType.md)| | [optional] **url** | **str**| The URL to post logs to. | [optional] @@ -403,9 +403,9 @@ with fastly.ApiClient(configuration) as api_client: logging_sumologic_name = "test-log-endpoint" # str | The name for the real-time logging configuration. name = "test-log-endpoint" # str | The name for the real-time logging configuration. (optional) placement = "none" # str, none_type | Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. (optional) - 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`. (optional) if omitted the server will use the default value of 2 response_condition = "response_condition_example" # str, none_type | The name of an existing condition in the configured endpoint, or leave blank to always execute. (optional) format = "%h %l %u %t "%r" %>s %b" # str | A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). (optional) if omitted the server will use the default value of "%h %l %u %t "%r" %>s %b" + 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`. (optional) if omitted the server will use the default value of 2 message_type = LoggingMessageType("classic") # LoggingMessageType | (optional) url = "url_example" # str | The URL to post logs to. (optional) @@ -421,7 +421,7 @@ with fastly.ApiClient(configuration) as api_client: # and optional values try: # Update a Sumologic log endpoint - api_response = api_instance.update_log_sumologic(service_id, version_id, logging_sumologic_name, name=name, placement=placement, format_version=format_version, response_condition=response_condition, format=format, message_type=message_type, url=url) + api_response = api_instance.update_log_sumologic(service_id, version_id, logging_sumologic_name, name=name, placement=placement, response_condition=response_condition, format=format, format_version=format_version, message_type=message_type, url=url) pprint(api_response) except fastly.ApiException as e: print("Exception when calling LoggingSumologicApi->update_log_sumologic: %s\n" % e) @@ -437,9 +437,9 @@ Name | Type | Description | Notes **logging_sumologic_name** | **str**| The name for the real-time logging configuration. | **name** | **str**| The name for the real-time logging configuration. | [optional] **placement** | **str, none_type**| Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. | [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] if omitted the server will use the default value of 2 **response_condition** | **str, none_type**| The name of an existing condition in the configured endpoint, or leave blank to always execute. | [optional] **format** | **str**| A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). | [optional] if omitted the server will use the default value of "%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] if omitted the server will use the default value of 2 **message_type** | [**LoggingMessageType**](LoggingMessageType.md)| | [optional] **url** | **str**| The URL to post logs to. | [optional] diff --git a/docs/LoggingSumologicResponse.md b/docs/LoggingSumologicResponse.md index 090dff5..ce08836 100644 --- a/docs/LoggingSumologicResponse.md +++ b/docs/LoggingSumologicResponse.md @@ -6,16 +6,16 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **name** | **str** | The name for the real-time logging configuration. | [optional] **placement** | **str, none_type** | Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. | [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] if omitted the server will use the default value of 2 **response_condition** | **str, none_type** | The name of an existing condition in the configured endpoint, or leave blank to always execute. | [optional] **format** | **str** | A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). | [optional] if omitted the server will use the default value of "%h %l %u %t "%r" %>s %b" +**format_version** | **str** | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. | [optional] if omitted the server will use the default value of "2" **message_type** | [**LoggingMessageType**](LoggingMessageType.md) | | [optional] **url** | **str** | The URL to post logs to. | [optional] **created_at** | **datetime, none_type** | Date and time in ISO 8601 format. | [optional] [readonly] **deleted_at** | **datetime, none_type** | Date and time in ISO 8601 format. | [optional] [readonly] **updated_at** | **datetime, none_type** | Date and time in ISO 8601 format. | [optional] [readonly] **service_id** | **str** | | [optional] [readonly] -**version** | **int** | | [optional] [readonly] +**version** | **str** | | [optional] [readonly] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/LoggingSyslog.md b/docs/LoggingSyslog.md deleted file mode 100644 index ac28595..0000000 --- a/docs/LoggingSyslog.md +++ /dev/null @@ -1,27 +0,0 @@ -# LoggingSyslog - - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **str** | The name for the real-time logging configuration. | [optional] -**placement** | **str, none_type** | Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. | [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] if omitted the server will use the default value of 2 -**response_condition** | **str, none_type** | The name of an existing condition in the configured endpoint, or leave blank to always execute. | [optional] -**format** | **str** | A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). | [optional] if omitted the server will use the default value of "%h %l %u %t "%r" %>s %b" -**tls_ca_cert** | **str, none_type** | A secure certificate to authenticate a server with. Must be in PEM format. | [optional] if omitted the server will use the default value of "null" -**tls_client_cert** | **str, none_type** | The client certificate used to make authenticated requests. Must be in PEM format. | [optional] if omitted the server will use the default value of "null" -**tls_client_key** | **str, none_type** | The client private key used to make authenticated requests. Must be in PEM format. | [optional] if omitted the server will use the default value of "null" -**tls_hostname** | **str, none_type** | 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] if omitted the server will use the default value of "null" -**address** | **str** | A hostname or IPv4 address. | [optional] -**port** | **int** | The port number. | [optional] if omitted the server will use the default value of 514 -**message_type** | [**LoggingMessageType**](LoggingMessageType.md) | | [optional] -**hostname** | **str** | The hostname used for the syslog endpoint. | [optional] -**ipv4** | **str, none_type** | The IPv4 address used for the syslog endpoint. | [optional] -**token** | **str, none_type** | Whether to prepend each message with a specific token. | [optional] if omitted the server will use the default value of "null" -**use_tls** | [**LoggingUseTls**](LoggingUseTls.md) | | [optional] -**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/LoggingSyslogAllOf.md b/docs/LoggingSyslogAdditional.md similarity index 97% rename from docs/LoggingSyslogAllOf.md rename to docs/LoggingSyslogAdditional.md index 34849b4..c974be5 100644 --- a/docs/LoggingSyslogAllOf.md +++ b/docs/LoggingSyslogAdditional.md @@ -1,4 +1,4 @@ -# LoggingSyslogAllOf +# LoggingSyslogAdditional ## Properties diff --git a/docs/LoggingSyslogApi.md b/docs/LoggingSyslogApi.md index 9ee1b0a..05bcbc0 100644 --- a/docs/LoggingSyslogApi.md +++ b/docs/LoggingSyslogApi.md @@ -55,9 +55,9 @@ with fastly.ApiClient(configuration) as api_client: version_id = 1 # int | Integer identifying a service version. name = "test-log-endpoint" # str | The name for the real-time logging configuration. (optional) placement = "none" # str, none_type | Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. (optional) - 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`. (optional) if omitted the server will use the default value of 2 response_condition = "response_condition_example" # str, none_type | The name of an existing condition in the configured endpoint, or leave blank to always execute. (optional) format = "%h %l %u %t "%r" %>s %b" # str | A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). (optional) if omitted the server will use the default value of "%h %l %u %t "%r" %>s %b" + 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`. (optional) if omitted the server will use the default value of 2 tls_ca_cert = "null" # str, none_type | A secure certificate to authenticate a server with. Must be in PEM format. (optional) if omitted the server will use the default value of "null" tls_client_cert = "null" # str, none_type | The client certificate used to make authenticated requests. Must be in PEM format. (optional) if omitted the server will use the default value of "null" tls_client_key = "null" # str, none_type | The client private key used to make authenticated requests. Must be in PEM format. (optional) if omitted the server will use the default value of "null" @@ -82,7 +82,7 @@ with fastly.ApiClient(configuration) as api_client: # and optional values try: # Create a syslog log endpoint - api_response = api_instance.create_log_syslog(service_id, version_id, 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) + api_response = api_instance.create_log_syslog(service_id, version_id, name=name, placement=placement, 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, address=address, port=port, message_type=message_type, hostname=hostname, ipv4=ipv4, token=token, use_tls=use_tls) pprint(api_response) except fastly.ApiException as e: print("Exception when calling LoggingSyslogApi->create_log_syslog: %s\n" % e) @@ -97,9 +97,9 @@ Name | Type | Description | Notes **version_id** | **int**| Integer identifying a service version. | **name** | **str**| The name for the real-time logging configuration. | [optional] **placement** | **str, none_type**| Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. | [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] if omitted the server will use the default value of 2 **response_condition** | **str, none_type**| The name of an existing condition in the configured endpoint, or leave blank to always execute. | [optional] **format** | **str**| A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). | [optional] if omitted the server will use the default value of "%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] if omitted the server will use the default value of 2 **tls_ca_cert** | **str, none_type**| A secure certificate to authenticate a server with. Must be in PEM format. | [optional] if omitted the server will use the default value of "null" **tls_client_cert** | **str, none_type**| The client certificate used to make authenticated requests. Must be in PEM format. | [optional] if omitted the server will use the default value of "null" **tls_client_key** | **str, none_type**| The client private key used to make authenticated requests. Must be in PEM format. | [optional] if omitted the server will use the default value of "null" @@ -423,9 +423,9 @@ with fastly.ApiClient(configuration) as api_client: logging_syslog_name = "test-log-endpoint" # str | The name for the real-time logging configuration. name = "test-log-endpoint" # str | The name for the real-time logging configuration. (optional) placement = "none" # str, none_type | Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. (optional) - 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`. (optional) if omitted the server will use the default value of 2 response_condition = "response_condition_example" # str, none_type | The name of an existing condition in the configured endpoint, or leave blank to always execute. (optional) format = "%h %l %u %t "%r" %>s %b" # str | A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). (optional) if omitted the server will use the default value of "%h %l %u %t "%r" %>s %b" + 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`. (optional) if omitted the server will use the default value of 2 tls_ca_cert = "null" # str, none_type | A secure certificate to authenticate a server with. Must be in PEM format. (optional) if omitted the server will use the default value of "null" tls_client_cert = "null" # str, none_type | The client certificate used to make authenticated requests. Must be in PEM format. (optional) if omitted the server will use the default value of "null" tls_client_key = "null" # str, none_type | The client private key used to make authenticated requests. Must be in PEM format. (optional) if omitted the server will use the default value of "null" @@ -450,7 +450,7 @@ with fastly.ApiClient(configuration) as api_client: # and optional values try: # Update a syslog log endpoint - api_response = api_instance.update_log_syslog(service_id, version_id, logging_syslog_name, 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) + api_response = api_instance.update_log_syslog(service_id, version_id, logging_syslog_name, name=name, placement=placement, 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, address=address, port=port, message_type=message_type, hostname=hostname, ipv4=ipv4, token=token, use_tls=use_tls) pprint(api_response) except fastly.ApiException as e: print("Exception when calling LoggingSyslogApi->update_log_syslog: %s\n" % e) @@ -466,9 +466,9 @@ Name | Type | Description | Notes **logging_syslog_name** | **str**| The name for the real-time logging configuration. | **name** | **str**| The name for the real-time logging configuration. | [optional] **placement** | **str, none_type**| Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. | [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] if omitted the server will use the default value of 2 **response_condition** | **str, none_type**| The name of an existing condition in the configured endpoint, or leave blank to always execute. | [optional] **format** | **str**| A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). | [optional] if omitted the server will use the default value of "%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] if omitted the server will use the default value of 2 **tls_ca_cert** | **str, none_type**| A secure certificate to authenticate a server with. Must be in PEM format. | [optional] if omitted the server will use the default value of "null" **tls_client_cert** | **str, none_type**| The client certificate used to make authenticated requests. Must be in PEM format. | [optional] if omitted the server will use the default value of "null" **tls_client_key** | **str, none_type**| The client private key used to make authenticated requests. Must be in PEM format. | [optional] if omitted the server will use the default value of "null" diff --git a/docs/LoggingSyslogResponse.md b/docs/LoggingSyslogResponse.md index fe3af3f..9a1a02f 100644 --- a/docs/LoggingSyslogResponse.md +++ b/docs/LoggingSyslogResponse.md @@ -6,9 +6,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **name** | **str** | The name for the real-time logging configuration. | [optional] **placement** | **str, none_type** | Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. | [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] if omitted the server will use the default value of 2 **response_condition** | **str, none_type** | The name of an existing condition in the configured endpoint, or leave blank to always execute. | [optional] **format** | **str** | A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). | [optional] if omitted the server will use the default value of "%h %l %u %t "%r" %>s %b" +**format_version** | **str** | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. | [optional] if omitted the server will use the default value of "2" **tls_ca_cert** | **str, none_type** | A secure certificate to authenticate a server with. Must be in PEM format. | [optional] if omitted the server will use the default value of "null" **tls_client_cert** | **str, none_type** | The client certificate used to make authenticated requests. Must be in PEM format. | [optional] if omitted the server will use the default value of "null" **tls_client_key** | **str, none_type** | The client private key used to make authenticated requests. Must be in PEM format. | [optional] if omitted the server will use the default value of "null" @@ -24,7 +24,7 @@ Name | Type | Description | Notes **deleted_at** | **datetime, none_type** | Date and time in ISO 8601 format. | [optional] [readonly] **updated_at** | **datetime, none_type** | Date and time in ISO 8601 format. | [optional] [readonly] **service_id** | **str** | | [optional] [readonly] -**version** | **int** | | [optional] [readonly] +**version** | **str** | | [optional] [readonly] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/Model403Forbidden.md b/docs/Model403Forbidden.md deleted file mode 100644 index eceaa3c..0000000 --- a/docs/Model403Forbidden.md +++ /dev/null @@ -1,11 +0,0 @@ -# Model403Forbidden - - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**value** | **SudoGenericTokenError** | | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/MutualAuthenticationApi.md b/docs/MutualAuthenticationApi.md index f3a7b04..21bdc9a 100644 --- a/docs/MutualAuthenticationApi.md +++ b/docs/MutualAuthenticationApi.md @@ -58,7 +58,7 @@ with fastly.ApiClient(configuration) as api_client: enforced=True, name="name_example", ), - relationships=RelationshipsForMutualAuthentication(None), + relationships=RelationshipsForMutualAuthentication(), ), ) # MutualAuthentication | (optional) @@ -397,7 +397,7 @@ with fastly.ApiClient(configuration) as api_client: enforced=True, name="name_example", ), - relationships=RelationshipsForMutualAuthentication(None), + relationships=RelationshipsForMutualAuthentication(), ), ) # MutualAuthentication | (optional) diff --git a/docs/OriginInspectorRealtimeEntryRecorded.md b/docs/OriginInspectorRealtimeEntryRecorded.md index 366d373..48ece5d 100644 --- a/docs/OriginInspectorRealtimeEntryRecorded.md +++ b/docs/OriginInspectorRealtimeEntryRecorded.md @@ -5,7 +5,6 @@ The Unix timestamp at which this record's data was generated. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/OriginInspectorSubsequentRequestTimestamp.md b/docs/OriginInspectorSubsequentRequestTimestamp.md index 5714ea5..f7f2006 100644 --- a/docs/OriginInspectorSubsequentRequestTimestamp.md +++ b/docs/OriginInspectorSubsequentRequestTimestamp.md @@ -5,7 +5,6 @@ Value to use for subsequent requests. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/PoolAllOf.md b/docs/PoolAdditional.md similarity index 77% rename from docs/PoolAllOf.md rename to docs/PoolAdditional.md index dfc70e9..b66d821 100644 --- a/docs/PoolAllOf.md +++ b/docs/PoolAdditional.md @@ -1,4 +1,4 @@ -# PoolAllOf +# PoolAdditional ## Properties @@ -7,13 +7,8 @@ Name | Type | Description | Notes **name** | **str** | Name for the Pool. | [optional] **shield** | **str, none_type** | 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] if omitted the server will use the default value of "null" **request_condition** | **str, none_type** | Condition which, if met, will select this configuration during a request. Optional. | [optional] -**max_conn_default** | **int** | Maximum number of connections. Optional. | [optional] if omitted the server will use the default value of 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] if omitted the server will use the default value of 75 **tls_ciphers** | **str, none_type** | 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** | **str, none_type** | SNI hostname. Optional. | [optional] -**tls_check_cert** | **int, none_type** | Be strict on checking TLS certs. Optional. | [optional] **min_tls_version** | **int, none_type** | Minimum allowed TLS version on connections to this server. Optional. | [optional] **max_tls_version** | **int, none_type** | Maximum allowed TLS version on connections to this server. Optional. | [optional] **healthcheck** | **str, none_type** | 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/PoolApi.md b/docs/PoolApi.md index 1388d29..6781a94 100644 --- a/docs/PoolApi.md +++ b/docs/PoolApi.md @@ -12,7 +12,7 @@ Method | HTTP request | Description # **create_server_pool** -> PoolResponse create_server_pool(service_id, version_id) +> PoolResponsePost create_server_pool(service_id, version_id) Create a server pool @@ -26,7 +26,7 @@ Creates a pool for a particular service and version. import time import fastly from fastly.api import pool_api -from fastly.model.pool_response import PoolResponse +from fastly.model.pool_response_post import PoolResponsePost from pprint import pprint # Defining the host is optional and defaults to https://api.fastly.com # See configuration.py for a list of all supported configuration parameters. @@ -56,22 +56,28 @@ with fastly.ApiClient(configuration) as api_client: tls_client_key = "null" # str, none_type | The client private key used to make authenticated requests. Must be in PEM format. (optional) if omitted the server will use the default value of "null" tls_cert_hostname = "null" # str, none_type | The hostname used to verify a server's certificate. It can either be the Common Name (CN) or a Subject Alternative Name (SAN). (optional) if omitted the server will use the default value of "null" use_tls = 0 # int | Whether to use TLS. (optional) if omitted the server will use the default value of 0 + created_at = dateutil_parser('2020-04-09T18:14:30Z') # datetime, none_type | Date and time in ISO 8601 format. (optional) + deleted_at = dateutil_parser('2020-04-09T18:14:30Z') # datetime, none_type | Date and time in ISO 8601 format. (optional) + updated_at = dateutil_parser('2020-04-09T18:14:30Z') # datetime, none_type | Date and time in ISO 8601 format. (optional) + service_id2 = "service_id_example" # str | (optional) + version = "version_example" # str | (optional) name = "my-pool" # str | Name for the Pool. (optional) shield = "null" # str, none_type | 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) if omitted the server will use the default value of "null" request_condition = "request_condition_example" # str, none_type | Condition which, if met, will select this configuration during a request. Optional. (optional) - max_conn_default = 200 # int | Maximum number of connections. Optional. (optional) if omitted the server will use the default value of 200 - connect_timeout = 1 # int | How long to wait for a timeout in milliseconds. Optional. (optional) - first_byte_timeout = 1 # int | How long to wait for the first byte in milliseconds. Optional. (optional) - quorum = 75 # int | Percentage of capacity (`0-100`) that needs to be operationally available for a pool to be considered up. (optional) if omitted the server will use the default value of 75 tls_ciphers = "tls_ciphers_example" # str, none_type | 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 = "tls_sni_hostname_example" # str, none_type | SNI hostname. Optional. (optional) - tls_check_cert = 1 # int, none_type | Be strict on checking TLS certs. Optional. (optional) min_tls_version = 1 # int, none_type | Minimum allowed TLS version on connections to this server. Optional. (optional) max_tls_version = 1 # int, none_type | Maximum allowed TLS version on connections to this server. Optional. (optional) healthcheck = "healthcheck_example" # str, none_type | Name of the healthcheck to use with this pool. Can be empty and could be reused across multiple backend and pools. (optional) comment = "" # str, none_type | A freeform descriptive note. (optional) type = "random" # str | What type of load balance group to use. (optional) override_host = "null" # str, none_type | 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) if omitted the server will use the default value of "null" + 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`. (optional) if omitted the server will use the default value of 10000 + connect_timeout = 1 # int | How long to wait for a timeout in milliseconds. Optional. (optional) + first_byte_timeout = 1 # int | How long to wait for the first byte in milliseconds. Optional. (optional) + max_conn_default = 200 # int | Maximum number of connections. Optional. (optional) if omitted the server will use the default value of 200 + quorum = 75 # int | Percentage of capacity (`0-100`) that needs to be operationally available for a pool to be considered up. (optional) if omitted the server will use the default value of 75 + tls_check_cert = 1 # int, none_type | Be strict on checking TLS certs. Optional. (optional) # example passing only required values which don't have defaults set try: @@ -85,7 +91,7 @@ with fastly.ApiClient(configuration) as api_client: # and optional values try: # Create a server pool - api_response = api_instance.create_server_pool(service_id, version_id, tls_ca_cert=tls_ca_cert, tls_client_cert=tls_client_cert, tls_client_key=tls_client_key, tls_cert_hostname=tls_cert_hostname, use_tls=use_tls, 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) + api_response = api_instance.create_server_pool(service_id, version_id, tls_ca_cert=tls_ca_cert, tls_client_cert=tls_client_cert, 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_id2=service_id2, version=version, name=name, shield=shield, request_condition=request_condition, tls_ciphers=tls_ciphers, tls_sni_hostname=tls_sni_hostname, min_tls_version=min_tls_version, max_tls_version=max_tls_version, healthcheck=healthcheck, comment=comment, type=type, 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, quorum=quorum, tls_check_cert=tls_check_cert) pprint(api_response) except fastly.ApiException as e: print("Exception when calling PoolApi->create_server_pool: %s\n" % e) @@ -103,26 +109,32 @@ Name | Type | Description | Notes **tls_client_key** | **str, none_type**| The client private key used to make authenticated requests. Must be in PEM format. | [optional] if omitted the server will use the default value of "null" **tls_cert_hostname** | **str, none_type**| The hostname used to verify a server's certificate. It can either be the Common Name (CN) or a Subject Alternative Name (SAN). | [optional] if omitted the server will use the default value of "null" **use_tls** | **int**| Whether to use TLS. | [optional] if omitted the server will use the default value of 0 + **created_at** | **datetime, none_type**| Date and time in ISO 8601 format. | [optional] + **deleted_at** | **datetime, none_type**| Date and time in ISO 8601 format. | [optional] + **updated_at** | **datetime, none_type**| Date and time in ISO 8601 format. | [optional] + **service_id2** | **str**| | [optional] + **version** | **str**| | [optional] **name** | **str**| Name for the Pool. | [optional] **shield** | **str, none_type**| 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] if omitted the server will use the default value of "null" **request_condition** | **str, none_type**| Condition which, if met, will select this configuration during a request. Optional. | [optional] - **max_conn_default** | **int**| Maximum number of connections. Optional. | [optional] if omitted the server will use the default value of 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] if omitted the server will use the default value of 75 **tls_ciphers** | **str, none_type**| 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** | **str, none_type**| SNI hostname. Optional. | [optional] - **tls_check_cert** | **int, none_type**| Be strict on checking TLS certs. Optional. | [optional] **min_tls_version** | **int, none_type**| Minimum allowed TLS version on connections to this server. Optional. | [optional] **max_tls_version** | **int, none_type**| Maximum allowed TLS version on connections to this server. Optional. | [optional] **healthcheck** | **str, none_type**| Name of the healthcheck to use with this pool. Can be empty and could be reused across multiple backend and pools. | [optional] **comment** | **str, none_type**| A freeform descriptive note. | [optional] **type** | **str**| What type of load balance group to use. | [optional] **override_host** | **str, none_type**| 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] if omitted the server will use the default value of "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] if omitted the server will use the default value of 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] if omitted the server will use the default value of 200 + **quorum** | **int**| Percentage of capacity (`0-100`) that needs to be operationally available for a pool to be considered up. | [optional] if omitted the server will use the default value of 75 + **tls_check_cert** | **int, none_type**| Be strict on checking TLS certs. Optional. | [optional] ### Return type -[**PoolResponse**](PoolResponse.md) +[**PoolResponsePost**](PoolResponsePost.md) ### Authorization @@ -432,22 +444,28 @@ with fastly.ApiClient(configuration) as api_client: tls_client_key = "null" # str, none_type | The client private key used to make authenticated requests. Must be in PEM format. (optional) if omitted the server will use the default value of "null" tls_cert_hostname = "null" # str, none_type | The hostname used to verify a server's certificate. It can either be the Common Name (CN) or a Subject Alternative Name (SAN). (optional) if omitted the server will use the default value of "null" use_tls = 0 # int | Whether to use TLS. (optional) if omitted the server will use the default value of 0 + created_at = dateutil_parser('2020-04-09T18:14:30Z') # datetime, none_type | Date and time in ISO 8601 format. (optional) + deleted_at = dateutil_parser('2020-04-09T18:14:30Z') # datetime, none_type | Date and time in ISO 8601 format. (optional) + updated_at = dateutil_parser('2020-04-09T18:14:30Z') # datetime, none_type | Date and time in ISO 8601 format. (optional) + service_id2 = "service_id_example" # str | (optional) + version = "version_example" # str | (optional) name = "my-pool" # str | Name for the Pool. (optional) shield = "null" # str, none_type | 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) if omitted the server will use the default value of "null" request_condition = "request_condition_example" # str, none_type | Condition which, if met, will select this configuration during a request. Optional. (optional) - max_conn_default = 200 # int | Maximum number of connections. Optional. (optional) if omitted the server will use the default value of 200 - connect_timeout = 1 # int | How long to wait for a timeout in milliseconds. Optional. (optional) - first_byte_timeout = 1 # int | How long to wait for the first byte in milliseconds. Optional. (optional) - quorum = 75 # int | Percentage of capacity (`0-100`) that needs to be operationally available for a pool to be considered up. (optional) if omitted the server will use the default value of 75 tls_ciphers = "tls_ciphers_example" # str, none_type | 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 = "tls_sni_hostname_example" # str, none_type | SNI hostname. Optional. (optional) - tls_check_cert = 1 # int, none_type | Be strict on checking TLS certs. Optional. (optional) min_tls_version = 1 # int, none_type | Minimum allowed TLS version on connections to this server. Optional. (optional) max_tls_version = 1 # int, none_type | Maximum allowed TLS version on connections to this server. Optional. (optional) healthcheck = "healthcheck_example" # str, none_type | Name of the healthcheck to use with this pool. Can be empty and could be reused across multiple backend and pools. (optional) comment = "" # str, none_type | A freeform descriptive note. (optional) type = "random" # str | What type of load balance group to use. (optional) override_host = "null" # str, none_type | 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) if omitted the server will use the default value of "null" + 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`. (optional) if omitted the server will use the default value of 10000 + connect_timeout = 1 # int | How long to wait for a timeout in milliseconds. Optional. (optional) + first_byte_timeout = 1 # int | How long to wait for the first byte in milliseconds. Optional. (optional) + max_conn_default = 200 # int | Maximum number of connections. Optional. (optional) if omitted the server will use the default value of 200 + quorum = 75 # int | Percentage of capacity (`0-100`) that needs to be operationally available for a pool to be considered up. (optional) if omitted the server will use the default value of 75 + tls_check_cert = 1 # int, none_type | Be strict on checking TLS certs. Optional. (optional) # example passing only required values which don't have defaults set try: @@ -461,7 +479,7 @@ with fastly.ApiClient(configuration) as api_client: # and optional values try: # Update a server pool - api_response = api_instance.update_server_pool(service_id, version_id, pool_name, tls_ca_cert=tls_ca_cert, tls_client_cert=tls_client_cert, tls_client_key=tls_client_key, tls_cert_hostname=tls_cert_hostname, use_tls=use_tls, 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) + api_response = api_instance.update_server_pool(service_id, version_id, pool_name, tls_ca_cert=tls_ca_cert, tls_client_cert=tls_client_cert, 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_id2=service_id2, version=version, name=name, shield=shield, request_condition=request_condition, tls_ciphers=tls_ciphers, tls_sni_hostname=tls_sni_hostname, min_tls_version=min_tls_version, max_tls_version=max_tls_version, healthcheck=healthcheck, comment=comment, type=type, 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, quorum=quorum, tls_check_cert=tls_check_cert) pprint(api_response) except fastly.ApiException as e: print("Exception when calling PoolApi->update_server_pool: %s\n" % e) @@ -480,22 +498,28 @@ Name | Type | Description | Notes **tls_client_key** | **str, none_type**| The client private key used to make authenticated requests. Must be in PEM format. | [optional] if omitted the server will use the default value of "null" **tls_cert_hostname** | **str, none_type**| The hostname used to verify a server's certificate. It can either be the Common Name (CN) or a Subject Alternative Name (SAN). | [optional] if omitted the server will use the default value of "null" **use_tls** | **int**| Whether to use TLS. | [optional] if omitted the server will use the default value of 0 + **created_at** | **datetime, none_type**| Date and time in ISO 8601 format. | [optional] + **deleted_at** | **datetime, none_type**| Date and time in ISO 8601 format. | [optional] + **updated_at** | **datetime, none_type**| Date and time in ISO 8601 format. | [optional] + **service_id2** | **str**| | [optional] + **version** | **str**| | [optional] **name** | **str**| Name for the Pool. | [optional] **shield** | **str, none_type**| 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] if omitted the server will use the default value of "null" **request_condition** | **str, none_type**| Condition which, if met, will select this configuration during a request. Optional. | [optional] - **max_conn_default** | **int**| Maximum number of connections. Optional. | [optional] if omitted the server will use the default value of 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] if omitted the server will use the default value of 75 **tls_ciphers** | **str, none_type**| 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** | **str, none_type**| SNI hostname. Optional. | [optional] - **tls_check_cert** | **int, none_type**| Be strict on checking TLS certs. Optional. | [optional] **min_tls_version** | **int, none_type**| Minimum allowed TLS version on connections to this server. Optional. | [optional] **max_tls_version** | **int, none_type**| Maximum allowed TLS version on connections to this server. Optional. | [optional] **healthcheck** | **str, none_type**| Name of the healthcheck to use with this pool. Can be empty and could be reused across multiple backend and pools. | [optional] **comment** | **str, none_type**| A freeform descriptive note. | [optional] **type** | **str**| What type of load balance group to use. | [optional] **override_host** | **str, none_type**| 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] if omitted the server will use the default value of "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] if omitted the server will use the default value of 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] if omitted the server will use the default value of 200 + **quorum** | **int**| Percentage of capacity (`0-100`) that needs to be operationally available for a pool to be considered up. | [optional] if omitted the server will use the default value of 75 + **tls_check_cert** | **int, none_type**| Be strict on checking TLS certs. Optional. | [optional] ### Return type diff --git a/docs/PoolResponse.md b/docs/PoolResponse.md index f286403..b1b6eaf 100644 --- a/docs/PoolResponse.md +++ b/docs/PoolResponse.md @@ -8,29 +8,30 @@ Name | Type | Description | Notes **tls_client_cert** | **str, none_type** | The client certificate used to make authenticated requests. Must be in PEM format. | [optional] if omitted the server will use the default value of "null" **tls_client_key** | **str, none_type** | The client private key used to make authenticated requests. Must be in PEM format. | [optional] if omitted the server will use the default value of "null" **tls_cert_hostname** | **str, none_type** | The hostname used to verify a server's certificate. It can either be the Common Name (CN) or a Subject Alternative Name (SAN). | [optional] if omitted the server will use the default value of "null" -**use_tls** | **int** | Whether to use TLS. | [optional] if omitted the server will use the default value of 0 +**use_tls** | **str** | Whether to use TLS. | [optional] if omitted the server will use the default value of "0" +**created_at** | **datetime, none_type** | Date and time in ISO 8601 format. | [optional] [readonly] +**deleted_at** | **datetime, none_type** | Date and time in ISO 8601 format. | [optional] [readonly] +**updated_at** | **datetime, none_type** | Date and time in ISO 8601 format. | [optional] [readonly] +**service_id** | **str** | | [optional] [readonly] +**version** | **str** | | [optional] [readonly] **name** | **str** | Name for the Pool. | [optional] **shield** | **str, none_type** | 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] if omitted the server will use the default value of "null" **request_condition** | **str, none_type** | Condition which, if met, will select this configuration during a request. Optional. | [optional] -**max_conn_default** | **int** | Maximum number of connections. Optional. | [optional] if omitted the server will use the default value of 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] if omitted the server will use the default value of 75 **tls_ciphers** | **str, none_type** | 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** | **str, none_type** | SNI hostname. Optional. | [optional] -**tls_check_cert** | **int, none_type** | Be strict on checking TLS certs. Optional. | [optional] **min_tls_version** | **int, none_type** | Minimum allowed TLS version on connections to this server. Optional. | [optional] **max_tls_version** | **int, none_type** | Maximum allowed TLS version on connections to this server. Optional. | [optional] **healthcheck** | **str, none_type** | Name of the healthcheck to use with this pool. Can be empty and could be reused across multiple backend and pools. | [optional] **comment** | **str, none_type** | A freeform descriptive note. | [optional] **type** | **str** | What type of load balance group to use. | [optional] **override_host** | **str, none_type** | 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] if omitted the server will use the default value of "null" -**created_at** | **datetime, none_type** | Date and time in ISO 8601 format. | [optional] [readonly] -**deleted_at** | **datetime, none_type** | Date and time in ISO 8601 format. | [optional] [readonly] -**updated_at** | **datetime, none_type** | Date and time in ISO 8601 format. | [optional] [readonly] -**service_id** | **str** | | [optional] [readonly] -**version** | **int** | | [optional] [readonly] +**between_bytes_timeout** | **str** | 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** | **str** | How long to wait for a timeout in milliseconds. | [optional] +**first_byte_timeout** | **str** | How long to wait for the first byte in milliseconds. | [optional] +**max_conn_default** | **str** | Maximum number of connections. | [optional] if omitted the server will use the default value of "200" +**tls_check_cert** | **str, none_type** | Be strict on checking TLS certs. | [optional] **id** | **str** | | [optional] [readonly] +**quorum** | **str** | Percentage of capacity (`0-100`) that needs to be operationally available for a pool to be considered up. | [optional] if omitted the server will use the default value of "75" **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/PoolResponseAllOf.md b/docs/PoolResponseAllOf.md index 904589d..b37824c 100644 --- a/docs/PoolResponseAllOf.md +++ b/docs/PoolResponseAllOf.md @@ -4,7 +4,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**id** | **str** | | [optional] [readonly] +**quorum** | **str** | Percentage of capacity (`0-100`) that needs to be operationally available for a pool to be considered up. | [optional] if omitted the server will use the default value of "75" **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/PoolResponseCommon.md b/docs/PoolResponseCommon.md new file mode 100644 index 0000000..17132d4 --- /dev/null +++ b/docs/PoolResponseCommon.md @@ -0,0 +1,17 @@ +# PoolResponseCommon + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**between_bytes_timeout** | **str** | 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** | **str** | How long to wait for a timeout in milliseconds. | [optional] +**first_byte_timeout** | **str** | How long to wait for the first byte in milliseconds. | [optional] +**max_conn_default** | **str** | Maximum number of connections. | [optional] if omitted the server will use the default value of "200" +**tls_check_cert** | **str, none_type** | Be strict on checking TLS certs. | [optional] +**id** | **str** | | [optional] [readonly] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Pool.md b/docs/PoolResponsePost.md similarity index 71% rename from docs/Pool.md rename to docs/PoolResponsePost.md index 98ae43b..6381bf6 100644 --- a/docs/Pool.md +++ b/docs/PoolResponsePost.md @@ -1,4 +1,4 @@ -# Pool +# PoolResponsePost ## Properties @@ -8,23 +8,30 @@ Name | Type | Description | Notes **tls_client_cert** | **str, none_type** | The client certificate used to make authenticated requests. Must be in PEM format. | [optional] if omitted the server will use the default value of "null" **tls_client_key** | **str, none_type** | The client private key used to make authenticated requests. Must be in PEM format. | [optional] if omitted the server will use the default value of "null" **tls_cert_hostname** | **str, none_type** | The hostname used to verify a server's certificate. It can either be the Common Name (CN) or a Subject Alternative Name (SAN). | [optional] if omitted the server will use the default value of "null" -**use_tls** | **int** | Whether to use TLS. | [optional] if omitted the server will use the default value of 0 +**use_tls** | **str** | Whether to use TLS. | [optional] if omitted the server will use the default value of "0" +**created_at** | **datetime, none_type** | Date and time in ISO 8601 format. | [optional] [readonly] +**deleted_at** | **datetime, none_type** | Date and time in ISO 8601 format. | [optional] [readonly] +**updated_at** | **datetime, none_type** | Date and time in ISO 8601 format. | [optional] [readonly] +**service_id** | **str** | | [optional] [readonly] +**version** | **str** | | [optional] [readonly] **name** | **str** | Name for the Pool. | [optional] **shield** | **str, none_type** | 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] if omitted the server will use the default value of "null" **request_condition** | **str, none_type** | Condition which, if met, will select this configuration during a request. Optional. | [optional] -**max_conn_default** | **int** | Maximum number of connections. Optional. | [optional] if omitted the server will use the default value of 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] if omitted the server will use the default value of 75 **tls_ciphers** | **str, none_type** | 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** | **str, none_type** | SNI hostname. Optional. | [optional] -**tls_check_cert** | **int, none_type** | Be strict on checking TLS certs. Optional. | [optional] **min_tls_version** | **int, none_type** | Minimum allowed TLS version on connections to this server. Optional. | [optional] **max_tls_version** | **int, none_type** | Maximum allowed TLS version on connections to this server. Optional. | [optional] **healthcheck** | **str, none_type** | Name of the healthcheck to use with this pool. Can be empty and could be reused across multiple backend and pools. | [optional] **comment** | **str, none_type** | A freeform descriptive note. | [optional] **type** | **str** | What type of load balance group to use. | [optional] **override_host** | **str, none_type** | 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] if omitted the server will use the default value of "null" +**between_bytes_timeout** | **str** | 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** | **str** | How long to wait for a timeout in milliseconds. | [optional] +**first_byte_timeout** | **str** | How long to wait for the first byte in milliseconds. | [optional] +**max_conn_default** | **str** | Maximum number of connections. | [optional] if omitted the server will use the default value of "200" +**tls_check_cert** | **str, none_type** | Be strict on checking TLS certs. | [optional] +**id** | **str** | | [optional] [readonly] +**quorum** | **int** | Percentage of capacity (`0-100`) that needs to be operationally available for a pool to be considered up. | [optional] if omitted the server will use the default value of 75 **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/PoolResponsePostAllOf.md b/docs/PoolResponsePostAllOf.md new file mode 100644 index 0000000..d1adae2 --- /dev/null +++ b/docs/PoolResponsePostAllOf.md @@ -0,0 +1,12 @@ +# PoolResponsePostAllOf + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**quorum** | **int** | Percentage of capacity (`0-100`) that needs to be operationally available for a pool to be considered up. | [optional] if omitted the server will use the default value of 75 +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ReadOnlyServiceId.md b/docs/ReadOnlyServiceId.md index 4c32c9a..721caa5 100644 --- a/docs/ReadOnlyServiceId.md +++ b/docs/ReadOnlyServiceId.md @@ -4,7 +4,6 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/ReadOnlyVersion.md b/docs/ReadOnlyVersion.md index 12e0298..14a5fa5 100644 --- a/docs/ReadOnlyVersion.md +++ b/docs/ReadOnlyVersion.md @@ -4,7 +4,6 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/RecordedTimestamp.md b/docs/RecordedTimestamp.md index be0c61c..4902ca2 100644 --- a/docs/RecordedTimestamp.md +++ b/docs/RecordedTimestamp.md @@ -5,7 +5,6 @@ The Unix timestamp at which this record's data was generated. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/RequestSettings.md b/docs/RequestSettingsAdditional.md similarity index 57% rename from docs/RequestSettings.md rename to docs/RequestSettingsAdditional.md index 91fc1e9..d0c9895 100644 --- a/docs/RequestSettings.md +++ b/docs/RequestSettingsAdditional.md @@ -1,20 +1,14 @@ -# RequestSettings +# RequestSettingsAdditional ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **action** | **str, none_type** | Allows you to terminate request handling and immediately perform an action. | [optional] -**bypass_busy_wait** | **int** | Disable collapsed forwarding, so you don't wait for other objects to origin. | [optional] **default_host** | **str, none_type** | 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** | **str, none_type** | 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** | **str** | Name for the request settings. | [optional] **request_condition** | **str, none_type** | 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** | **str** | Short for X-Forwarded-For. | [optional] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] diff --git a/docs/RequestSettingsApi.md b/docs/RequestSettingsApi.md index 97865e3..f62e5dc 100644 --- a/docs/RequestSettingsApi.md +++ b/docs/RequestSettingsApi.md @@ -377,17 +377,17 @@ with fastly.ApiClient(configuration) as api_client: version_id = 1 # int | Integer identifying a service version. request_settings_name = "test-request-setting" # str | Name for the request settings. action = "lookup" # str, none_type | Allows you to terminate request handling and immediately perform an action. (optional) - bypass_busy_wait = 1 # int | Disable collapsed forwarding, so you don't wait for other objects to origin. (optional) default_host = "default_host_example" # str, none_type | Sets the host header. (optional) + hash_keys = "hash_keys_example" # str, none_type | Comma separated list of varnish request object fields that should be in the hash key. (optional) + name = "test-request-setting" # str | Name for the request settings. (optional) + request_condition = "request_condition_example" # str, none_type | Condition which, if met, will select this configuration during a request. Optional. (optional) + xff = "clear" # str | Short for X-Forwarded-For. (optional) + bypass_busy_wait = 1 # int | Disable collapsed forwarding, so you don't wait for other objects to origin. (optional) force_miss = 1 # 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 = 1 # int | Forces the request use SSL (redirects a non-SSL to SSL). (optional) geo_headers = 1 # int | Injects Fastly-Geo-Country, Fastly-Geo-City, and Fastly-Geo-Region into the request headers. (optional) - hash_keys = "hash_keys_example" # str, none_type | Comma separated list of varnish request object fields that should be in the hash key. (optional) max_stale_age = 1 # int | How old an object is allowed to be to serve stale-if-error or stale-while-revalidate. (optional) - name = "test-request-setting" # str | Name for the request settings. (optional) - request_condition = "request_condition_example" # str, none_type | Condition which, if met, will select this configuration during a request. Optional. (optional) timer_support = 1 # int | Injects the X-Timer info into the request for viewing origin fetch durations. (optional) - xff = "clear" # str | Short for X-Forwarded-For. (optional) # example passing only required values which don't have defaults set try: @@ -401,7 +401,7 @@ with fastly.ApiClient(configuration) as api_client: # and optional values try: # Update a Request Settings object - api_response = api_instance.update_request_settings(service_id, version_id, request_settings_name, 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) + api_response = api_instance.update_request_settings(service_id, version_id, request_settings_name, action=action, default_host=default_host, hash_keys=hash_keys, name=name, request_condition=request_condition, xff=xff, 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) pprint(api_response) except fastly.ApiException as e: print("Exception when calling RequestSettingsApi->update_request_settings: %s\n" % e) @@ -416,17 +416,17 @@ Name | Type | Description | Notes **version_id** | **int**| Integer identifying a service version. | **request_settings_name** | **str**| Name for the request settings. | **action** | **str, none_type**| Allows you to terminate request handling and immediately perform an action. | [optional] - **bypass_busy_wait** | **int**| Disable collapsed forwarding, so you don't wait for other objects to origin. | [optional] **default_host** | **str, none_type**| Sets the host header. | [optional] + **hash_keys** | **str, none_type**| Comma separated list of varnish request object fields that should be in the hash key. | [optional] + **name** | **str**| Name for the request settings. | [optional] + **request_condition** | **str, none_type**| Condition which, if met, will select this configuration during a request. Optional. | [optional] + **xff** | **str**| Short for X-Forwarded-For. | [optional] + **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** | **str, none_type**| 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** | **str**| Name for the request settings. | [optional] - **request_condition** | **str, none_type**| 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** | **str**| Short for X-Forwarded-For. | [optional] ### Return type diff --git a/docs/RequestSettingsResponse.md b/docs/RequestSettingsResponse.md index 2966e18..ce2bf57 100644 --- a/docs/RequestSettingsResponse.md +++ b/docs/RequestSettingsResponse.md @@ -4,23 +4,23 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**created_at** | **datetime, none_type** | Date and time in ISO 8601 format. | [optional] [readonly] +**deleted_at** | **datetime, none_type** | Date and time in ISO 8601 format. | [optional] [readonly] +**updated_at** | **datetime, none_type** | Date and time in ISO 8601 format. | [optional] [readonly] +**service_id** | **str** | | [optional] [readonly] +**version** | **str** | | [optional] [readonly] **action** | **str, none_type** | Allows you to terminate request handling and immediately perform an action. | [optional] -**bypass_busy_wait** | **int** | Disable collapsed forwarding, so you don't wait for other objects to origin. | [optional] **default_host** | **str, none_type** | 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** | **str, none_type** | 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** | **str** | Name for the request settings. | [optional] **request_condition** | **str, none_type** | 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** | **str** | Short for X-Forwarded-For. | [optional] -**service_id** | **str** | | [optional] [readonly] -**version** | **int** | | [optional] [readonly] -**created_at** | **datetime, none_type** | Date and time in ISO 8601 format. | [optional] [readonly] -**deleted_at** | **datetime, none_type** | Date and time in ISO 8601 format. | [optional] [readonly] -**updated_at** | **datetime, none_type** | Date and time in ISO 8601 format. | [optional] [readonly] +**bypass_busy_wait** | **str** | Disable collapsed forwarding, so you don't wait for other objects to origin. | [optional] +**force_miss** | **str** | Allows you to force a cache miss for the request. Replaces the item in the cache if the content is cacheable. | [optional] +**force_ssl** | **str** | Forces the request use SSL (redirects a non-SSL to SSL). | [optional] +**geo_headers** | **str** | Injects Fastly-Geo-Country, Fastly-Geo-City, and Fastly-Geo-Region into the request headers. | [optional] +**max_stale_age** | **str** | How old an object is allowed to be to serve stale-if-error or stale-while-revalidate. | [optional] +**timer_support** | **str** | Injects the X-Timer info into the request for viewing origin fetch durations. | [optional] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/RequestSettingsResponseAllOf.md b/docs/RequestSettingsResponseAllOf.md new file mode 100644 index 0000000..79d50af --- /dev/null +++ b/docs/RequestSettingsResponseAllOf.md @@ -0,0 +1,17 @@ +# RequestSettingsResponseAllOf + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**bypass_busy_wait** | **str** | Disable collapsed forwarding, so you don't wait for other objects to origin. | [optional] +**force_miss** | **str** | Allows you to force a cache miss for the request. Replaces the item in the cache if the content is cacheable. | [optional] +**force_ssl** | **str** | Forces the request use SSL (redirects a non-SSL to SSL). | [optional] +**geo_headers** | **str** | Injects Fastly-Geo-Country, Fastly-Geo-City, and Fastly-Geo-Region into the request headers. | [optional] +**max_stale_age** | **str** | How old an object is allowed to be to serve stale-if-error or stale-while-revalidate. | [optional] +**timer_support** | **str** | Injects the X-Timer info into the request for viewing origin fetch durations. | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ResponseObject.md b/docs/ResponseObject.md index 1a444ae..d11a2e1 100644 --- a/docs/ResponseObject.md +++ b/docs/ResponseObject.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes **content** | **str** | The content to deliver for the response object, can be empty. | [optional] **content_type** | **str, none_type** | The MIME type of the content, can be empty. | [optional] **name** | **str** | Name for the request settings. | [optional] -**status** | **int** | The HTTP status code. | [optional] if omitted the server will use the default value of 200 +**status** | **str** | The HTTP status code. | [optional] if omitted the server will use the default value of "200" **response** | **str** | The HTTP response. | [optional] if omitted the server will use the default value of "Ok" **request_condition** | **str, none_type** | Condition which, if met, will select this configuration during a request. Optional. | [optional] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] diff --git a/docs/ResponseObjectResponse.md b/docs/ResponseObjectResponse.md index 1ea63af..84ac673 100644 --- a/docs/ResponseObjectResponse.md +++ b/docs/ResponseObjectResponse.md @@ -8,11 +8,11 @@ Name | Type | Description | Notes **content** | **str** | The content to deliver for the response object, can be empty. | [optional] **content_type** | **str, none_type** | The MIME type of the content, can be empty. | [optional] **name** | **str** | Name for the request settings. | [optional] -**status** | **int** | The HTTP status code. | [optional] if omitted the server will use the default value of 200 +**status** | **str** | The HTTP status code. | [optional] if omitted the server will use the default value of "200" **response** | **str** | The HTTP response. | [optional] if omitted the server will use the default value of "Ok" **request_condition** | **str, none_type** | Condition which, if met, will select this configuration during a request. Optional. | [optional] **service_id** | **str** | | [optional] [readonly] -**version** | **int** | | [optional] [readonly] +**version** | **str** | | [optional] [readonly] **created_at** | **datetime, none_type** | Date and time in ISO 8601 format. | [optional] [readonly] **deleted_at** | **datetime, none_type** | Date and time in ISO 8601 format. | [optional] [readonly] **updated_at** | **datetime, none_type** | Date and time in ISO 8601 format. | [optional] [readonly] diff --git a/docs/DomainCheckItem.md b/docs/ServiceIdAndVersionString.md similarity index 69% rename from docs/DomainCheckItem.md rename to docs/ServiceIdAndVersionString.md index 15c8b82..9476290 100644 --- a/docs/DomainCheckItem.md +++ b/docs/ServiceIdAndVersionString.md @@ -1,11 +1,11 @@ -# DomainCheckItem +# ServiceIdAndVersionString ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**comment** | **str, none_type** | A freeform descriptive note. | [optional] -**name** | **str** | The name of the domain or domains associated with this service. | [optional] +**service_id** | **str** | | [optional] [readonly] +**version** | **str** | | [optional] [readonly] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/SubsequentRequestTimestamp.md b/docs/SubsequentRequestTimestamp.md index f2f4ea7..daea7fd 100644 --- a/docs/SubsequentRequestTimestamp.md +++ b/docs/SubsequentRequestTimestamp.md @@ -5,7 +5,6 @@ Value to use for subsequent requests. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/TlsActivationsApi.md b/docs/TlsActivationsApi.md index d675264..0733db5 100644 --- a/docs/TlsActivationsApi.md +++ b/docs/TlsActivationsApi.md @@ -53,7 +53,7 @@ with fastly.ApiClient(configuration) as api_client: tls_activation = TlsActivation( data=TlsActivationData( type=TypeTlsActivation("tls_activation"), - relationships=RelationshipsForTlsActivation(None), + relationships=RelationshipsForTlsActivation(), ), ) # TlsActivation | (optional) @@ -393,7 +393,7 @@ with fastly.ApiClient(configuration) as api_client: tls_activation = TlsActivation( data=TlsActivationData( type=TypeTlsActivation("tls_activation"), - relationships=RelationshipsForTlsActivation(None), + relationships=RelationshipsForTlsActivation(), ), ) # TlsActivation | (optional) diff --git a/docs/TlsBulkCertificatesApi.md b/docs/TlsBulkCertificatesApi.md index 8faf84c..dfbdb4f 100644 --- a/docs/TlsBulkCertificatesApi.md +++ b/docs/TlsBulkCertificatesApi.md @@ -298,7 +298,7 @@ with fastly.ApiClient(configuration) as api_client: cert_blob="cert_blob_example", intermediates_blob="intermediates_blob_example", ), - relationships=RelationshipsForTlsBulkCertificate(None), + relationships=RelationshipsForTlsBulkCertificate(), ), ) # TlsBulkCertificate | (optional) @@ -397,7 +397,7 @@ with fastly.ApiClient(configuration) as api_client: cert_blob="cert_blob_example", intermediates_blob="intermediates_blob_example", ), - relationships=RelationshipsForTlsBulkCertificate(None), + relationships=RelationshipsForTlsBulkCertificate(), ), ) # TlsBulkCertificate | (optional) diff --git a/docs/TlsCommonResponse.md b/docs/TlsCommonResponse.md new file mode 100644 index 0000000..03367ca --- /dev/null +++ b/docs/TlsCommonResponse.md @@ -0,0 +1,16 @@ +# TlsCommonResponse + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**tls_ca_cert** | **str, none_type** | A secure certificate to authenticate a server with. Must be in PEM format. | [optional] if omitted the server will use the default value of "null" +**tls_client_cert** | **str, none_type** | The client certificate used to make authenticated requests. Must be in PEM format. | [optional] if omitted the server will use the default value of "null" +**tls_client_key** | **str, none_type** | The client private key used to make authenticated requests. Must be in PEM format. | [optional] if omitted the server will use the default value of "null" +**tls_cert_hostname** | **str, none_type** | The hostname used to verify a server's certificate. It can either be the Common Name (CN) or a Subject Alternative Name (SAN). | [optional] if omitted the server will use the default value of "null" +**use_tls** | **str** | Whether to use TLS. | [optional] if omitted the server will use the default value of "0" +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/TlsCommon.md b/docs/TlsCommonResponseAllOf.md similarity index 91% rename from docs/TlsCommon.md rename to docs/TlsCommonResponseAllOf.md index a3a963d..0c07c07 100644 --- a/docs/TlsCommon.md +++ b/docs/TlsCommonResponseAllOf.md @@ -1,4 +1,4 @@ -# TlsCommon +# TlsCommonResponseAllOf ## Properties @@ -8,7 +8,6 @@ Name | Type | Description | Notes **tls_client_cert** | **str, none_type** | The client certificate used to make authenticated requests. Must be in PEM format. | [optional] if omitted the server will use the default value of "null" **tls_client_key** | **str, none_type** | The client private key used to make authenticated requests. Must be in PEM format. | [optional] if omitted the server will use the default value of "null" **tls_cert_hostname** | **str, none_type** | The hostname used to verify a server's certificate. It can either be the Common Name (CN) or a Subject Alternative Name (SAN). | [optional] if omitted the server will use the default value of "null" -**use_tls** | **int** | Whether to use TLS. | [optional] if omitted the server will use the default value of 0 **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/TlsCommonResponseAllOf1.md b/docs/TlsCommonResponseAllOf1.md new file mode 100644 index 0000000..cd66d48 --- /dev/null +++ b/docs/TlsCommonResponseAllOf1.md @@ -0,0 +1,12 @@ +# TlsCommonResponseAllOf1 + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**use_tls** | **str** | Whether to use TLS. | [optional] if omitted the server will use the default value of "0" +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/TlsPrivateKeysApi.md b/docs/TlsPrivateKeysApi.md index f918085..ea41420 100644 --- a/docs/TlsPrivateKeysApi.md +++ b/docs/TlsPrivateKeysApi.md @@ -56,7 +56,7 @@ with fastly.ApiClient(configuration) as api_client: name="name_example", key="key_example", ), - relationships=RelationshipsForTlsPrivateKey(None), + relationships=RelationshipsForTlsPrivateKey(), ), ) # TlsPrivateKey | (optional) diff --git a/docs/TlsSubscriptionsApi.md b/docs/TlsSubscriptionsApi.md index 89519e2..13348e0 100644 --- a/docs/TlsSubscriptionsApi.md +++ b/docs/TlsSubscriptionsApi.md @@ -149,7 +149,7 @@ with fastly.ApiClient(configuration) as api_client: attributes=TlsSubscriptionDataAttributes( certificate_authority="lets-encrypt", ), - relationships=RelationshipsForTlsSubscription(None), + relationships=RelationshipsForTlsSubscription(), ), ) # TlsSubscription | (optional) @@ -576,7 +576,7 @@ with fastly.ApiClient(configuration) as api_client: attributes=TlsSubscriptionDataAttributes( certificate_authority="lets-encrypt", ), - relationships=RelationshipsForTlsSubscription(None), + relationships=RelationshipsForTlsSubscription(), ), ) # TlsSubscription | (optional) diff --git a/docs/WafActiveRulesApi.md b/docs/WafActiveRulesApi.md index 4ce4c64..6c88bc0 100644 --- a/docs/WafActiveRulesApi.md +++ b/docs/WafActiveRulesApi.md @@ -149,7 +149,7 @@ with fastly.ApiClient(configuration) as api_client: revision=WafRuleRevisionOrLatest(None), status="log", ), - relationships=RelationshipsForWafActiveRule(None), + relationships=RelationshipsForWafActiveRule(), ) # WafActiveRuleData | (optional) # example passing only required values which don't have defaults set @@ -249,7 +249,7 @@ with fastly.ApiClient(configuration) as api_client: revision=WafRuleRevisionOrLatest(None), status="log", ), - relationships=RelationshipsForWafActiveRule(None), + relationships=RelationshipsForWafActiveRule(), ), ) # WafActiveRule | (optional) @@ -351,7 +351,7 @@ with fastly.ApiClient(configuration) as api_client: revision=WafRuleRevisionOrLatest(None), status="log", ), - relationships=RelationshipsForWafActiveRule(None), + relationships=RelationshipsForWafActiveRule(), ), ) # WafActiveRule | (optional) @@ -729,7 +729,7 @@ with fastly.ApiClient(configuration) as api_client: revision=WafRuleRevisionOrLatest(None), status="log", ), - relationships=RelationshipsForWafActiveRule(None), + relationships=RelationshipsForWafActiveRule(), ), ) # WafActiveRule | (optional) diff --git a/docs/WafExclusionsApi.md b/docs/WafExclusionsApi.md index 1e4cad4..ea529fc 100644 --- a/docs/WafExclusionsApi.md +++ b/docs/WafExclusionsApi.md @@ -63,7 +63,7 @@ with fastly.ApiClient(configuration) as api_client: number=1, variable="req.cookies", ), - relationships=RelationshipsForWafExclusion(None), + relationships=RelationshipsForWafExclusion(), ), ) # WafExclusion | (optional) @@ -432,7 +432,7 @@ with fastly.ApiClient(configuration) as api_client: number=1, variable="req.cookies", ), - relationships=RelationshipsForWafExclusion(None), + relationships=RelationshipsForWafExclusion(), ), ) # WafExclusion | (optional) diff --git a/fastly/__init__.py b/fastly/__init__.py index 21be73c..9b5810f 100644 --- a/fastly/__init__.py +++ b/fastly/__init__.py @@ -10,7 +10,7 @@ """ -__version__ = "3.0.2" +__version__ = "4.0.0" # import ApiClient from fastly.api_client import ApiClient diff --git a/fastly/api/cache_settings_api.py b/fastly/api/cache_settings_api.py index d947767..e239882 100644 --- a/fastly/api/cache_settings_api.py +++ b/fastly/api/cache_settings_api.py @@ -97,9 +97,9 @@ def __init__(self, api_client=None): 'name': (str,), 'stale_ttl': - (int,), + (str,), 'ttl': - (int,), + (str,), }, 'attribute_map': { 'service_id': 'service_id', @@ -405,9 +405,9 @@ def __init__(self, api_client=None): 'name': (str,), 'stale_ttl': - (int,), + (str,), 'ttl': - (int,), + (str,), }, 'attribute_map': { 'service_id': 'service_id', @@ -468,8 +468,8 @@ def create_cache_settings( action (str, none_type): 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] cache_condition (str, none_type): Name of the cache condition controlling when this configuration applies.. [optional] name (str): 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 (str): 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 (str): Maximum time to consider the object fresh in the cache (the cache 'time to live').. [optional] _return_http_data_only (bool): response data without head status code and headers. Default is True. _preload_content (bool): if False, the urllib3.HTTPResponse object @@ -811,8 +811,8 @@ def update_cache_settings( action (str, none_type): 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] cache_condition (str, none_type): Name of the cache condition controlling when this configuration applies.. [optional] name (str): 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 (str): 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 (str): Maximum time to consider the object fresh in the cache (the cache 'time to live').. [optional] _return_http_data_only (bool): response data without head status code and headers. Default is True. _preload_content (bool): if False, the urllib3.HTTPResponse object diff --git a/fastly/api/header_api.py b/fastly/api/header_api.py index 1d507da..fa2f1fb 100644 --- a/fastly/api/header_api.py +++ b/fastly/api/header_api.py @@ -57,15 +57,15 @@ def __init__(self, api_client=None): 'action', 'cache_condition', 'dst', - 'ignore_if_set', 'name', - 'priority', 'regex', 'request_condition', 'response_condition', 'src', 'substitution', 'type', + 'ignore_if_set', + 'priority', ], 'required': [ 'service_id', @@ -116,12 +116,8 @@ def __init__(self, api_client=None): (str, none_type,), 'dst': (str,), - 'ignore_if_set': - (int,), 'name': (str,), - 'priority': - (int,), 'regex': (str, none_type,), 'request_condition': @@ -134,6 +130,10 @@ def __init__(self, api_client=None): (str, none_type,), 'type': (str,), + 'ignore_if_set': + (int,), + 'priority': + (int,), }, 'attribute_map': { 'service_id': 'service_id', @@ -141,15 +141,15 @@ def __init__(self, api_client=None): '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', }, 'location_map': { 'service_id': 'path', @@ -157,15 +157,15 @@ def __init__(self, api_client=None): 'action': 'form', 'cache_condition': 'form', 'dst': 'form', - 'ignore_if_set': 'form', 'name': 'form', - 'priority': 'form', 'regex': 'form', 'request_condition': 'form', 'response_condition': 'form', 'src': 'form', 'substitution': 'form', 'type': 'form', + 'ignore_if_set': 'form', + 'priority': 'form', }, 'path_params_allow_reserved_map': { }, @@ -410,15 +410,15 @@ def __init__(self, api_client=None): 'action', 'cache_condition', 'dst', - 'ignore_if_set', 'name', - 'priority', 'regex', 'request_condition', 'response_condition', 'src', 'substitution', 'type', + 'ignore_if_set', + 'priority', ], 'required': [ 'service_id', @@ -472,12 +472,8 @@ def __init__(self, api_client=None): (str, none_type,), 'dst': (str,), - 'ignore_if_set': - (int,), 'name': (str,), - 'priority': - (int,), 'regex': (str, none_type,), 'request_condition': @@ -490,6 +486,10 @@ def __init__(self, api_client=None): (str, none_type,), 'type': (str,), + 'ignore_if_set': + (int,), + 'priority': + (int,), }, 'attribute_map': { 'service_id': 'service_id', @@ -498,15 +498,15 @@ def __init__(self, api_client=None): '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', }, 'location_map': { 'service_id': 'path', @@ -515,15 +515,15 @@ def __init__(self, api_client=None): 'action': 'form', 'cache_condition': 'form', 'dst': 'form', - 'ignore_if_set': 'form', 'name': 'form', - 'priority': 'form', 'regex': 'form', 'request_condition': 'form', 'response_condition': 'form', 'src': 'form', 'substitution': 'form', 'type': 'form', + 'ignore_if_set': 'form', + 'priority': 'form', }, 'path_params_allow_reserved_map': { }, @@ -564,15 +564,15 @@ def create_header_object( action (str): Accepts a string value.. [optional] cache_condition (str, none_type): Name of the cache condition controlling when this configuration applies.. [optional] dst (str): 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 (str): A handle to refer to this Header object.. [optional] - priority (int): Priority determines execution order. Lower numbers execute first.. [optional] if omitted the server will use the default value of 100 regex (str, none_type): Regular expression to use. Only applies to `regex` and `regex_repeat` actions.. [optional] request_condition (str, none_type): Condition which, if met, will select this configuration during a request. Optional.. [optional] response_condition (str, none_type): Optional name of a response condition to apply.. [optional] src (str, none_type): Variable to be used as a source for the header content. Does not apply to `delete` action.. [optional] substitution (str, none_type): Value to substitute in place of regular expression. Only applies to `regex` and `regex_repeat` actions.. [optional] type (str): Accepts a string value.. [optional] + 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] if omitted the server will use the default value of 100 _return_http_data_only (bool): response data without head status code and headers. Default is True. _preload_content (bool): if False, the urllib3.HTTPResponse object @@ -914,15 +914,15 @@ def update_header_object( action (str): Accepts a string value.. [optional] cache_condition (str, none_type): Name of the cache condition controlling when this configuration applies.. [optional] dst (str): 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 (str): A handle to refer to this Header object.. [optional] - priority (int): Priority determines execution order. Lower numbers execute first.. [optional] if omitted the server will use the default value of 100 regex (str, none_type): Regular expression to use. Only applies to `regex` and `regex_repeat` actions.. [optional] request_condition (str, none_type): Condition which, if met, will select this configuration during a request. Optional.. [optional] response_condition (str, none_type): Optional name of a response condition to apply.. [optional] src (str, none_type): Variable to be used as a source for the header content. Does not apply to `delete` action.. [optional] substitution (str, none_type): Value to substitute in place of regular expression. Only applies to `regex` and `regex_repeat` actions.. [optional] type (str): Accepts a string value.. [optional] + 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] if omitted the server will use the default value of 100 _return_http_data_only (bool): response data without head status code and headers. Default is True. _preload_content (bool): if False, the urllib3.HTTPResponse object diff --git a/fastly/api/logging_azureblob_api.py b/fastly/api/logging_azureblob_api.py index 50bab7f..5588145 100644 --- a/fastly/api/logging_azureblob_api.py +++ b/fastly/api/logging_azureblob_api.py @@ -56,14 +56,14 @@ def __init__(self, api_client=None): 'version_id', 'name', 'placement', - 'format_version', 'response_condition', 'format', + 'format_version', 'message_type', 'timestamp_format', + 'compression_codec', 'period', 'gzip_level', - 'compression_codec', 'path', 'account_name', 'container', @@ -134,22 +134,22 @@ def __init__(self, api_client=None): (str,), 'placement': (str, none_type,), - 'format_version': - (int,), 'response_condition': (str, none_type,), 'format': (str,), + 'format_version': + (int,), 'message_type': (str,), 'timestamp_format': (str, none_type,), + 'compression_codec': + (str,), 'period': (int,), 'gzip_level': (int,), - 'compression_codec': - (str,), 'path': (str, none_type,), 'account_name': @@ -168,14 +168,14 @@ def __init__(self, api_client=None): 'version_id': 'version_id', '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', 'path': 'path', 'account_name': 'account_name', 'container': 'container', @@ -188,14 +188,14 @@ def __init__(self, api_client=None): 'version_id': 'path', 'name': 'form', 'placement': 'form', - 'format_version': 'form', 'response_condition': 'form', 'format': 'form', + 'format_version': 'form', 'message_type': 'form', 'timestamp_format': 'form', + 'compression_codec': 'form', 'period': 'form', 'gzip_level': 'form', - 'compression_codec': 'form', 'path': 'form', 'account_name': 'form', 'container': 'form', @@ -445,14 +445,14 @@ def __init__(self, api_client=None): 'logging_azureblob_name', 'name', 'placement', - 'format_version', 'response_condition', 'format', + 'format_version', 'message_type', 'timestamp_format', + 'compression_codec', 'period', 'gzip_level', - 'compression_codec', 'path', 'account_name', 'container', @@ -526,22 +526,22 @@ def __init__(self, api_client=None): (str,), 'placement': (str, none_type,), - 'format_version': - (int,), 'response_condition': (str, none_type,), 'format': (str,), + 'format_version': + (int,), 'message_type': (str,), 'timestamp_format': (str, none_type,), + 'compression_codec': + (str,), 'period': (int,), 'gzip_level': (int,), - 'compression_codec': - (str,), 'path': (str, none_type,), 'account_name': @@ -561,14 +561,14 @@ def __init__(self, api_client=None): 'logging_azureblob_name': 'logging_azureblob_name', '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', 'path': 'path', 'account_name': 'account_name', 'container': 'container', @@ -582,14 +582,14 @@ def __init__(self, api_client=None): 'logging_azureblob_name': 'path', 'name': 'form', 'placement': 'form', - 'format_version': 'form', 'response_condition': 'form', 'format': 'form', + 'format_version': 'form', 'message_type': 'form', 'timestamp_format': 'form', + 'compression_codec': 'form', 'period': 'form', 'gzip_level': 'form', - 'compression_codec': 'form', 'path': 'form', 'account_name': 'form', 'container': 'form', @@ -635,14 +635,14 @@ def create_log_azure( Keyword Args: name (str): The name for the real-time logging configuration.. [optional] placement (str, none_type): Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. . [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] if omitted the server will use the default value of 2 response_condition (str, none_type): The name of an existing condition in the configured endpoint, or leave blank to always execute.. [optional] format (str): A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats).. [optional] if omitted the server will use the default value of "%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] if omitted the server will use the default value of 2 message_type (str): How the message should be formatted.. [optional] if omitted the server will use the default value of "classic" timestamp_format (str, none_type): A timestamp format. [optional] + compression_codec (str): The codec used for compressing your logs. 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] period (int): How frequently log files are finalized so they can be available for reading (in seconds).. [optional] if omitted the server will use the default value of 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] if omitted the server will use the default value of 0 - compression_codec (str): The codec used for compressing your logs. 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] path (str, none_type): The path to upload logs to.. [optional] if omitted the server will use the default value of "null" account_name (str): The unique Azure Blob Storage namespace in which your data objects are stored. Required.. [optional] container (str): The name of the Azure Blob Storage container in which to store logs. Required.. [optional] @@ -989,14 +989,14 @@ def update_log_azure( Keyword Args: name (str): The name for the real-time logging configuration.. [optional] placement (str, none_type): Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. . [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] if omitted the server will use the default value of 2 response_condition (str, none_type): The name of an existing condition in the configured endpoint, or leave blank to always execute.. [optional] format (str): A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats).. [optional] if omitted the server will use the default value of "%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] if omitted the server will use the default value of 2 message_type (str): How the message should be formatted.. [optional] if omitted the server will use the default value of "classic" timestamp_format (str, none_type): A timestamp format. [optional] + compression_codec (str): The codec used for compressing your logs. 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] period (int): How frequently log files are finalized so they can be available for reading (in seconds).. [optional] if omitted the server will use the default value of 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] if omitted the server will use the default value of 0 - compression_codec (str): The codec used for compressing your logs. 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] path (str, none_type): The path to upload logs to.. [optional] if omitted the server will use the default value of "null" account_name (str): The unique Azure Blob Storage namespace in which your data objects are stored. Required.. [optional] container (str): The name of the Azure Blob Storage container in which to store logs. Required.. [optional] diff --git a/fastly/api/logging_bigquery_api.py b/fastly/api/logging_bigquery_api.py index f66bda6..3edf651 100644 --- a/fastly/api/logging_bigquery_api.py +++ b/fastly/api/logging_bigquery_api.py @@ -56,9 +56,9 @@ def __init__(self, api_client=None): 'version_id', 'name', 'placement', - 'format_version', 'response_condition', 'format', + 'format_version', 'user', 'secret_key', 'account_name', @@ -108,12 +108,12 @@ def __init__(self, api_client=None): (str,), 'placement': (str, none_type,), - 'format_version': - (int,), 'response_condition': (str, none_type,), 'format': (str,), + 'format_version': + (int,), 'user': (str,), 'secret_key': @@ -134,9 +134,9 @@ def __init__(self, api_client=None): 'version_id': 'version_id', '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', @@ -150,9 +150,9 @@ def __init__(self, api_client=None): 'version_id': 'path', 'name': 'form', 'placement': 'form', - 'format_version': 'form', 'response_condition': 'form', 'format': 'form', + 'format_version': 'form', 'user': 'form', 'secret_key': 'form', 'account_name': 'form', @@ -403,9 +403,9 @@ def __init__(self, api_client=None): 'logging_bigquery_name', 'name', 'placement', - 'format_version', 'response_condition', 'format', + 'format_version', 'user', 'secret_key', 'account_name', @@ -458,12 +458,12 @@ def __init__(self, api_client=None): (str,), 'placement': (str, none_type,), - 'format_version': - (int,), 'response_condition': (str, none_type,), 'format': (str,), + 'format_version': + (int,), 'user': (str,), 'secret_key': @@ -485,9 +485,9 @@ def __init__(self, api_client=None): 'logging_bigquery_name': 'logging_bigquery_name', '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', @@ -502,9 +502,9 @@ def __init__(self, api_client=None): 'logging_bigquery_name': 'path', 'name': 'form', 'placement': 'form', - 'format_version': 'form', 'response_condition': 'form', 'format': 'form', + 'format_version': 'form', 'user': 'form', 'secret_key': 'form', 'account_name': 'form', @@ -551,9 +551,9 @@ def create_log_bigquery( Keyword Args: name (str): The name of the BigQuery logging object. Used as a primary key for API access.. [optional] placement (str, none_type): Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. . [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] if omitted the server will use the default value of 2 response_condition (str, none_type): The name of an existing condition in the configured endpoint, or leave blank to always execute.. [optional] format (str): 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] if omitted the server will use the default value of 2 user (str): 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 (str): 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 (str): 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] @@ -901,9 +901,9 @@ def update_log_bigquery( Keyword Args: name (str): The name of the BigQuery logging object. Used as a primary key for API access.. [optional] placement (str, none_type): Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. . [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] if omitted the server will use the default value of 2 response_condition (str, none_type): The name of an existing condition in the configured endpoint, or leave blank to always execute.. [optional] format (str): 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] if omitted the server will use the default value of 2 user (str): 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 (str): 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 (str): 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/fastly/api/logging_cloudfiles_api.py b/fastly/api/logging_cloudfiles_api.py index 867515a..f870a51 100644 --- a/fastly/api/logging_cloudfiles_api.py +++ b/fastly/api/logging_cloudfiles_api.py @@ -56,14 +56,14 @@ def __init__(self, api_client=None): 'version_id', 'name', 'placement', - 'format_version', 'response_condition', 'format', + 'format_version', 'message_type', 'timestamp_format', + 'compression_codec', 'period', 'gzip_level', - 'compression_codec', 'access_key', 'bucket_name', 'path', @@ -141,22 +141,22 @@ def __init__(self, api_client=None): (str,), 'placement': (str, none_type,), - 'format_version': - (int,), 'response_condition': (str, none_type,), 'format': (str,), + 'format_version': + (int,), 'message_type': (str,), 'timestamp_format': (str, none_type,), + 'compression_codec': + (str,), 'period': (int,), 'gzip_level': (int,), - 'compression_codec': - (str,), 'access_key': (str,), 'bucket_name': @@ -175,14 +175,14 @@ def __init__(self, api_client=None): 'version_id': 'version_id', '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', 'access_key': 'access_key', 'bucket_name': 'bucket_name', 'path': 'path', @@ -195,14 +195,14 @@ def __init__(self, api_client=None): 'version_id': 'path', 'name': 'form', 'placement': 'form', - 'format_version': 'form', 'response_condition': 'form', 'format': 'form', + 'format_version': 'form', 'message_type': 'form', 'timestamp_format': 'form', + 'compression_codec': 'form', 'period': 'form', 'gzip_level': 'form', - 'compression_codec': 'form', 'access_key': 'form', 'bucket_name': 'form', 'path': 'form', @@ -452,14 +452,14 @@ def __init__(self, api_client=None): 'logging_cloudfiles_name', 'name', 'placement', - 'format_version', 'response_condition', 'format', + 'format_version', 'message_type', 'timestamp_format', + 'compression_codec', 'period', 'gzip_level', - 'compression_codec', 'access_key', 'bucket_name', 'path', @@ -540,22 +540,22 @@ def __init__(self, api_client=None): (str,), 'placement': (str, none_type,), - 'format_version': - (int,), 'response_condition': (str, none_type,), 'format': (str,), + 'format_version': + (int,), 'message_type': (str,), 'timestamp_format': (str, none_type,), + 'compression_codec': + (str,), 'period': (int,), 'gzip_level': (int,), - 'compression_codec': - (str,), 'access_key': (str,), 'bucket_name': @@ -575,14 +575,14 @@ def __init__(self, api_client=None): 'logging_cloudfiles_name': 'logging_cloudfiles_name', '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', 'access_key': 'access_key', 'bucket_name': 'bucket_name', 'path': 'path', @@ -596,14 +596,14 @@ def __init__(self, api_client=None): 'logging_cloudfiles_name': 'path', 'name': 'form', 'placement': 'form', - 'format_version': 'form', 'response_condition': 'form', 'format': 'form', + 'format_version': 'form', 'message_type': 'form', 'timestamp_format': 'form', + 'compression_codec': 'form', 'period': 'form', 'gzip_level': 'form', - 'compression_codec': 'form', 'access_key': 'form', 'bucket_name': 'form', 'path': 'form', @@ -649,14 +649,14 @@ def create_log_cloudfiles( Keyword Args: name (str): The name for the real-time logging configuration.. [optional] placement (str, none_type): Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. . [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] if omitted the server will use the default value of 2 response_condition (str, none_type): The name of an existing condition in the configured endpoint, or leave blank to always execute.. [optional] format (str): A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats).. [optional] if omitted the server will use the default value of "%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] if omitted the server will use the default value of 2 message_type (str): How the message should be formatted.. [optional] if omitted the server will use the default value of "classic" timestamp_format (str, none_type): A timestamp format. [optional] + compression_codec (str): The codec used for compressing your logs. 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] period (int): How frequently log files are finalized so they can be available for reading (in seconds).. [optional] if omitted the server will use the default value of 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] if omitted the server will use the default value of 0 - compression_codec (str): The codec used for compressing your logs. 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] access_key (str): Your Cloud Files account access key.. [optional] bucket_name (str): The name of your Cloud Files container.. [optional] path (str, none_type): The path to upload logs to.. [optional] if omitted the server will use the default value of "null" @@ -1003,14 +1003,14 @@ def update_log_cloudfiles( Keyword Args: name (str): The name for the real-time logging configuration.. [optional] placement (str, none_type): Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. . [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] if omitted the server will use the default value of 2 response_condition (str, none_type): The name of an existing condition in the configured endpoint, or leave blank to always execute.. [optional] format (str): A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats).. [optional] if omitted the server will use the default value of "%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] if omitted the server will use the default value of 2 message_type (str): How the message should be formatted.. [optional] if omitted the server will use the default value of "classic" timestamp_format (str, none_type): A timestamp format. [optional] + compression_codec (str): The codec used for compressing your logs. 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] period (int): How frequently log files are finalized so they can be available for reading (in seconds).. [optional] if omitted the server will use the default value of 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] if omitted the server will use the default value of 0 - compression_codec (str): The codec used for compressing your logs. 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] access_key (str): Your Cloud Files account access key.. [optional] bucket_name (str): The name of your Cloud Files container.. [optional] path (str, none_type): The path to upload logs to.. [optional] if omitted the server will use the default value of "null" diff --git a/fastly/api/logging_datadog_api.py b/fastly/api/logging_datadog_api.py index ca05fac..b22c149 100644 --- a/fastly/api/logging_datadog_api.py +++ b/fastly/api/logging_datadog_api.py @@ -56,9 +56,9 @@ def __init__(self, api_client=None): 'version_id', 'name', 'placement', - 'format_version', 'response_condition', 'format', + 'format_version', 'region', 'token', ], @@ -108,12 +108,12 @@ def __init__(self, api_client=None): (str,), 'placement': (str, none_type,), - 'format_version': - (int,), 'response_condition': (str, none_type,), 'format': (str,), + 'format_version': + (int,), 'region': (str,), 'token': @@ -124,9 +124,9 @@ def __init__(self, api_client=None): 'version_id': 'version_id', 'name': 'name', 'placement': 'placement', - 'format_version': 'format_version', 'response_condition': 'response_condition', 'format': 'format', + 'format_version': 'format_version', 'region': 'region', 'token': 'token', }, @@ -135,9 +135,9 @@ def __init__(self, api_client=None): 'version_id': 'path', 'name': 'form', 'placement': 'form', - 'format_version': 'form', 'response_condition': 'form', 'format': 'form', + 'format_version': 'form', 'region': 'form', 'token': 'form', }, @@ -383,9 +383,9 @@ def __init__(self, api_client=None): 'logging_datadog_name', 'name', 'placement', - 'format_version', 'response_condition', 'format', + 'format_version', 'region', 'token', ], @@ -438,12 +438,12 @@ def __init__(self, api_client=None): (str,), 'placement': (str, none_type,), - 'format_version': - (int,), 'response_condition': (str, none_type,), 'format': (str,), + 'format_version': + (int,), 'region': (str,), 'token': @@ -455,9 +455,9 @@ def __init__(self, api_client=None): 'logging_datadog_name': 'logging_datadog_name', 'name': 'name', 'placement': 'placement', - 'format_version': 'format_version', 'response_condition': 'response_condition', 'format': 'format', + 'format_version': 'format_version', 'region': 'region', 'token': 'token', }, @@ -467,9 +467,9 @@ def __init__(self, api_client=None): 'logging_datadog_name': 'path', 'name': 'form', 'placement': 'form', - 'format_version': 'form', 'response_condition': 'form', 'format': 'form', + 'format_version': 'form', 'region': 'form', 'token': 'form', }, @@ -511,9 +511,9 @@ def create_log_datadog( Keyword Args: name (str): The name for the real-time logging configuration.. [optional] placement (str, none_type): Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. . [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] if omitted the server will use the default value of 2 response_condition (str, none_type): The name of an existing condition in the configured endpoint, or leave blank to always execute.. [optional] format (str): A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). Must produce valid JSON that Datadog can ingest. . [optional] if omitted the server will use the default value of "{"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] if omitted the server will use the default value of 2 region (str): The region that log data will be sent to.. [optional] if omitted the server will use the default value of "US" token (str): The API key from your Datadog account. Required.. [optional] _return_http_data_only (bool): response data without head status @@ -856,9 +856,9 @@ def update_log_datadog( Keyword Args: name (str): The name for the real-time logging configuration.. [optional] placement (str, none_type): Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. . [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] if omitted the server will use the default value of 2 response_condition (str, none_type): The name of an existing condition in the configured endpoint, or leave blank to always execute.. [optional] format (str): A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). Must produce valid JSON that Datadog can ingest. . [optional] if omitted the server will use the default value of "{"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] if omitted the server will use the default value of 2 region (str): The region that log data will be sent to.. [optional] if omitted the server will use the default value of "US" token (str): The API key from your Datadog account. Required.. [optional] _return_http_data_only (bool): response data without head status diff --git a/fastly/api/logging_digitalocean_api.py b/fastly/api/logging_digitalocean_api.py index f4b4de1..15c3282 100644 --- a/fastly/api/logging_digitalocean_api.py +++ b/fastly/api/logging_digitalocean_api.py @@ -56,14 +56,14 @@ def __init__(self, api_client=None): 'version_id', 'name', 'placement', - 'format_version', 'response_condition', 'format', + 'format_version', 'message_type', 'timestamp_format', + 'compression_codec', 'period', 'gzip_level', - 'compression_codec', 'bucket_name', 'access_key', 'secret_key', @@ -129,22 +129,22 @@ def __init__(self, api_client=None): (str,), 'placement': (str, none_type,), - 'format_version': - (int,), 'response_condition': (str, none_type,), 'format': (str,), + 'format_version': + (int,), 'message_type': (str,), 'timestamp_format': (str, none_type,), + 'compression_codec': + (str,), 'period': (int,), 'gzip_level': (int,), - 'compression_codec': - (str,), 'bucket_name': (str,), 'access_key': @@ -163,14 +163,14 @@ def __init__(self, api_client=None): 'version_id': 'version_id', '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', 'bucket_name': 'bucket_name', 'access_key': 'access_key', 'secret_key': 'secret_key', @@ -183,14 +183,14 @@ def __init__(self, api_client=None): 'version_id': 'path', 'name': 'form', 'placement': 'form', - 'format_version': 'form', 'response_condition': 'form', 'format': 'form', + 'format_version': 'form', 'message_type': 'form', 'timestamp_format': 'form', + 'compression_codec': 'form', 'period': 'form', 'gzip_level': 'form', - 'compression_codec': 'form', 'bucket_name': 'form', 'access_key': 'form', 'secret_key': 'form', @@ -440,14 +440,14 @@ def __init__(self, api_client=None): 'logging_digitalocean_name', 'name', 'placement', - 'format_version', 'response_condition', 'format', + 'format_version', 'message_type', 'timestamp_format', + 'compression_codec', 'period', 'gzip_level', - 'compression_codec', 'bucket_name', 'access_key', 'secret_key', @@ -516,22 +516,22 @@ def __init__(self, api_client=None): (str,), 'placement': (str, none_type,), - 'format_version': - (int,), 'response_condition': (str, none_type,), 'format': (str,), + 'format_version': + (int,), 'message_type': (str,), 'timestamp_format': (str, none_type,), + 'compression_codec': + (str,), 'period': (int,), 'gzip_level': (int,), - 'compression_codec': - (str,), 'bucket_name': (str,), 'access_key': @@ -551,14 +551,14 @@ def __init__(self, api_client=None): 'logging_digitalocean_name': 'logging_digitalocean_name', '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', 'bucket_name': 'bucket_name', 'access_key': 'access_key', 'secret_key': 'secret_key', @@ -572,14 +572,14 @@ def __init__(self, api_client=None): 'logging_digitalocean_name': 'path', 'name': 'form', 'placement': 'form', - 'format_version': 'form', 'response_condition': 'form', 'format': 'form', + 'format_version': 'form', 'message_type': 'form', 'timestamp_format': 'form', + 'compression_codec': 'form', 'period': 'form', 'gzip_level': 'form', - 'compression_codec': 'form', 'bucket_name': 'form', 'access_key': 'form', 'secret_key': 'form', @@ -625,14 +625,14 @@ def create_log_digocean( Keyword Args: name (str): The name for the real-time logging configuration.. [optional] placement (str, none_type): Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. . [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] if omitted the server will use the default value of 2 response_condition (str, none_type): The name of an existing condition in the configured endpoint, or leave blank to always execute.. [optional] format (str): A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats).. [optional] if omitted the server will use the default value of "%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] if omitted the server will use the default value of 2 message_type (str): How the message should be formatted.. [optional] if omitted the server will use the default value of "classic" timestamp_format (str, none_type): A timestamp format. [optional] + compression_codec (str): The codec used for compressing your logs. 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] period (int): How frequently log files are finalized so they can be available for reading (in seconds).. [optional] if omitted the server will use the default value of 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] if omitted the server will use the default value of 0 - compression_codec (str): The codec used for compressing your logs. 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] bucket_name (str): The name of the DigitalOcean Space.. [optional] access_key (str): Your DigitalOcean Spaces account access key.. [optional] secret_key (str): Your DigitalOcean Spaces account secret key.. [optional] @@ -979,14 +979,14 @@ def update_log_digocean( Keyword Args: name (str): The name for the real-time logging configuration.. [optional] placement (str, none_type): Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. . [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] if omitted the server will use the default value of 2 response_condition (str, none_type): The name of an existing condition in the configured endpoint, or leave blank to always execute.. [optional] format (str): A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats).. [optional] if omitted the server will use the default value of "%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] if omitted the server will use the default value of 2 message_type (str): How the message should be formatted.. [optional] if omitted the server will use the default value of "classic" timestamp_format (str, none_type): A timestamp format. [optional] + compression_codec (str): The codec used for compressing your logs. 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] period (int): How frequently log files are finalized so they can be available for reading (in seconds).. [optional] if omitted the server will use the default value of 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] if omitted the server will use the default value of 0 - compression_codec (str): The codec used for compressing your logs. 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] bucket_name (str): The name of the DigitalOcean Space.. [optional] access_key (str): Your DigitalOcean Spaces account access key.. [optional] secret_key (str): Your DigitalOcean Spaces account secret key.. [optional] diff --git a/fastly/api/logging_elasticsearch_api.py b/fastly/api/logging_elasticsearch_api.py index 2d93ca0..0fb4af3 100644 --- a/fastly/api/logging_elasticsearch_api.py +++ b/fastly/api/logging_elasticsearch_api.py @@ -56,9 +56,9 @@ def __init__(self, api_client=None): 'version_id', 'name', 'placement', - 'format_version', 'response_condition', 'format', + 'format_version', 'tls_ca_cert', 'tls_client_cert', 'tls_client_key', @@ -118,12 +118,12 @@ def __init__(self, api_client=None): (str,), 'placement': (str, none_type,), - 'format_version': - (int,), 'response_condition': (str, none_type,), 'format': (str,), + 'format_version': + (int,), 'tls_ca_cert': (str, none_type,), 'tls_client_cert': @@ -152,9 +152,9 @@ def __init__(self, api_client=None): 'version_id': 'version_id', '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', @@ -172,9 +172,9 @@ def __init__(self, api_client=None): 'version_id': 'path', 'name': 'form', 'placement': 'form', - 'format_version': 'form', 'response_condition': 'form', 'format': 'form', + 'format_version': 'form', 'tls_ca_cert': 'form', 'tls_client_cert': 'form', 'tls_client_key': 'form', @@ -429,9 +429,9 @@ def __init__(self, api_client=None): 'logging_elasticsearch_name', 'name', 'placement', - 'format_version', 'response_condition', 'format', + 'format_version', 'tls_ca_cert', 'tls_client_cert', 'tls_client_key', @@ -494,12 +494,12 @@ def __init__(self, api_client=None): (str,), 'placement': (str, none_type,), - 'format_version': - (int,), 'response_condition': (str, none_type,), 'format': (str,), + 'format_version': + (int,), 'tls_ca_cert': (str, none_type,), 'tls_client_cert': @@ -529,9 +529,9 @@ def __init__(self, api_client=None): 'logging_elasticsearch_name': 'logging_elasticsearch_name', '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', @@ -550,9 +550,9 @@ def __init__(self, api_client=None): 'logging_elasticsearch_name': 'path', 'name': 'form', 'placement': 'form', - 'format_version': 'form', 'response_condition': 'form', 'format': 'form', + 'format_version': 'form', 'tls_ca_cert': 'form', 'tls_client_cert': 'form', 'tls_client_key': 'form', @@ -603,9 +603,9 @@ def create_log_elasticsearch( Keyword Args: name (str): The name for the real-time logging configuration.. [optional] placement (str, none_type): Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. . [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] if omitted the server will use the default value of 2 response_condition (str, none_type): The name of an existing condition in the configured endpoint, or leave blank to always execute.. [optional] format (str): 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] if omitted the server will use the default value of 2 tls_ca_cert (str, none_type): A secure certificate to authenticate a server with. Must be in PEM format.. [optional] if omitted the server will use the default value of "null" tls_client_cert (str, none_type): The client certificate used to make authenticated requests. Must be in PEM format.. [optional] if omitted the server will use the default value of "null" tls_client_key (str, none_type): The client private key used to make authenticated requests. Must be in PEM format.. [optional] if omitted the server will use the default value of "null" @@ -957,9 +957,9 @@ def update_log_elasticsearch( Keyword Args: name (str): The name for the real-time logging configuration.. [optional] placement (str, none_type): Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. . [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] if omitted the server will use the default value of 2 response_condition (str, none_type): The name of an existing condition in the configured endpoint, or leave blank to always execute.. [optional] format (str): 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] if omitted the server will use the default value of 2 tls_ca_cert (str, none_type): A secure certificate to authenticate a server with. Must be in PEM format.. [optional] if omitted the server will use the default value of "null" tls_client_cert (str, none_type): The client certificate used to make authenticated requests. Must be in PEM format.. [optional] if omitted the server will use the default value of "null" tls_client_key (str, none_type): The client private key used to make authenticated requests. Must be in PEM format.. [optional] if omitted the server will use the default value of "null" diff --git a/fastly/api/logging_ftp_api.py b/fastly/api/logging_ftp_api.py index 4966542..aa32b5a 100644 --- a/fastly/api/logging_ftp_api.py +++ b/fastly/api/logging_ftp_api.py @@ -56,22 +56,22 @@ def __init__(self, api_client=None): 'version_id', 'name', 'placement', - 'format_version', 'response_condition', 'format', + 'format_version', 'message_type', 'timestamp_format', + 'compression_codec', 'period', 'gzip_level', - 'compression_codec', 'address', 'hostname', 'ipv4', 'password', 'path', - 'port', 'public_key', 'user', + 'port', ], 'required': [ 'service_id', @@ -130,22 +130,22 @@ def __init__(self, api_client=None): (str,), 'placement': (str, none_type,), - 'format_version': - (int,), 'response_condition': (str, none_type,), 'format': (str,), + 'format_version': + (int,), 'message_type': (str,), 'timestamp_format': (str, none_type,), + 'compression_codec': + (str,), 'period': (int,), 'gzip_level': (int,), - 'compression_codec': - (str,), 'address': (str,), 'hostname': @@ -156,56 +156,56 @@ def __init__(self, api_client=None): (str,), 'path': (str,), - 'port': - (int,), 'public_key': (str, none_type,), 'user': (str,), + 'port': + (int,), }, 'attribute_map': { 'service_id': 'service_id', 'version_id': 'version_id', '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', 'address': 'address', 'hostname': 'hostname', 'ipv4': 'ipv4', 'password': 'password', 'path': 'path', - 'port': 'port', 'public_key': 'public_key', 'user': 'user', + 'port': 'port', }, 'location_map': { 'service_id': 'path', 'version_id': 'path', 'name': 'form', 'placement': 'form', - 'format_version': 'form', 'response_condition': 'form', 'format': 'form', + 'format_version': 'form', 'message_type': 'form', 'timestamp_format': 'form', + 'compression_codec': 'form', 'period': 'form', 'gzip_level': 'form', - 'compression_codec': 'form', 'address': 'form', 'hostname': 'form', 'ipv4': 'form', 'password': 'form', 'path': 'form', - 'port': 'form', 'public_key': 'form', 'user': 'form', + 'port': 'form', }, 'path_params_allow_reserved_map': { }, @@ -449,22 +449,22 @@ def __init__(self, api_client=None): 'logging_ftp_name', 'name', 'placement', - 'format_version', 'response_condition', 'format', + 'format_version', 'message_type', 'timestamp_format', + 'compression_codec', 'period', 'gzip_level', - 'compression_codec', 'address', 'hostname', 'ipv4', 'password', 'path', - 'port', 'public_key', 'user', + 'port', ], 'required': [ 'service_id', @@ -526,22 +526,22 @@ def __init__(self, api_client=None): (str,), 'placement': (str, none_type,), - 'format_version': - (int,), 'response_condition': (str, none_type,), 'format': (str,), + 'format_version': + (int,), 'message_type': (str,), 'timestamp_format': (str, none_type,), + 'compression_codec': + (str,), 'period': (int,), 'gzip_level': (int,), - 'compression_codec': - (str,), 'address': (str,), 'hostname': @@ -552,12 +552,12 @@ def __init__(self, api_client=None): (str,), 'path': (str,), - 'port': - (int,), 'public_key': (str, none_type,), 'user': (str,), + 'port': + (int,), }, 'attribute_map': { 'service_id': 'service_id', @@ -565,22 +565,22 @@ def __init__(self, api_client=None): 'logging_ftp_name': 'logging_ftp_name', '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', 'address': 'address', 'hostname': 'hostname', 'ipv4': 'ipv4', 'password': 'password', 'path': 'path', - 'port': 'port', 'public_key': 'public_key', 'user': 'user', + 'port': 'port', }, 'location_map': { 'service_id': 'path', @@ -588,22 +588,22 @@ def __init__(self, api_client=None): 'logging_ftp_name': 'path', 'name': 'form', 'placement': 'form', - 'format_version': 'form', 'response_condition': 'form', 'format': 'form', + 'format_version': 'form', 'message_type': 'form', 'timestamp_format': 'form', + 'compression_codec': 'form', 'period': 'form', 'gzip_level': 'form', - 'compression_codec': 'form', 'address': 'form', 'hostname': 'form', 'ipv4': 'form', 'password': 'form', 'path': 'form', - 'port': 'form', 'public_key': 'form', 'user': 'form', + 'port': 'form', }, 'path_params_allow_reserved_map': { }, @@ -643,22 +643,22 @@ def create_log_ftp( Keyword Args: name (str): The name for the real-time logging configuration.. [optional] placement (str, none_type): Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. . [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] if omitted the server will use the default value of 2 response_condition (str, none_type): The name of an existing condition in the configured endpoint, or leave blank to always execute.. [optional] format (str): A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats).. [optional] if omitted the server will use the default value of "%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] if omitted the server will use the default value of 2 message_type (str): How the message should be formatted.. [optional] if omitted the server will use the default value of "classic" timestamp_format (str, none_type): A timestamp format. [optional] + compression_codec (str): The codec used for compressing your logs. 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] period (int): How frequently log files are finalized so they can be available for reading (in seconds).. [optional] if omitted the server will use the default value of 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] if omitted the server will use the default value of 0 - compression_codec (str): The codec used for compressing your logs. 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] address (str): An hostname or IPv4 address.. [optional] hostname (str): Hostname used.. [optional] ipv4 (str): IPv4 address of the host.. [optional] password (str): The password for the server. For anonymous use an email address.. [optional] path (str): 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] if omitted the server will use the default value of 21 public_key (str, none_type): A PGP public key that Fastly will use to encrypt your log files before writing them to disk.. [optional] if omitted the server will use the default value of "null" user (str): The username for the server. Can be anonymous.. [optional] + port (int): The port number.. [optional] if omitted the server will use the default value of 21 _return_http_data_only (bool): response data without head status code and headers. Default is True. _preload_content (bool): if False, the urllib3.HTTPResponse object @@ -999,22 +999,22 @@ def update_log_ftp( Keyword Args: name (str): The name for the real-time logging configuration.. [optional] placement (str, none_type): Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. . [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] if omitted the server will use the default value of 2 response_condition (str, none_type): The name of an existing condition in the configured endpoint, or leave blank to always execute.. [optional] format (str): A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats).. [optional] if omitted the server will use the default value of "%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] if omitted the server will use the default value of 2 message_type (str): How the message should be formatted.. [optional] if omitted the server will use the default value of "classic" timestamp_format (str, none_type): A timestamp format. [optional] + compression_codec (str): The codec used for compressing your logs. 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] period (int): How frequently log files are finalized so they can be available for reading (in seconds).. [optional] if omitted the server will use the default value of 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] if omitted the server will use the default value of 0 - compression_codec (str): The codec used for compressing your logs. 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] address (str): An hostname or IPv4 address.. [optional] hostname (str): Hostname used.. [optional] ipv4 (str): IPv4 address of the host.. [optional] password (str): The password for the server. For anonymous use an email address.. [optional] path (str): 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] if omitted the server will use the default value of 21 public_key (str, none_type): A PGP public key that Fastly will use to encrypt your log files before writing them to disk.. [optional] if omitted the server will use the default value of "null" user (str): The username for the server. Can be anonymous.. [optional] + port (int): The port number.. [optional] if omitted the server will use the default value of 21 _return_http_data_only (bool): response data without head status code and headers. Default is True. _preload_content (bool): if False, the urllib3.HTTPResponse object diff --git a/fastly/api/logging_gcs_api.py b/fastly/api/logging_gcs_api.py index 9b76fe2..a888d8f 100644 --- a/fastly/api/logging_gcs_api.py +++ b/fastly/api/logging_gcs_api.py @@ -56,14 +56,14 @@ def __init__(self, api_client=None): 'version_id', 'name', 'placement', - 'format_version', 'response_condition', 'format', + 'format_version', 'message_type', 'timestamp_format', + 'compression_codec', 'period', 'gzip_level', - 'compression_codec', 'user', 'secret_key', 'account_name', @@ -129,22 +129,22 @@ def __init__(self, api_client=None): (str,), 'placement': (str, none_type,), - 'format_version': - (int,), 'response_condition': (str, none_type,), 'format': (str,), + 'format_version': + (int,), 'message_type': (str,), 'timestamp_format': (str, none_type,), + 'compression_codec': + (str,), 'period': (int,), 'gzip_level': (int,), - 'compression_codec': - (str,), 'user': (str,), 'secret_key': @@ -165,14 +165,14 @@ def __init__(self, api_client=None): 'version_id': 'version_id', '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', @@ -186,14 +186,14 @@ def __init__(self, api_client=None): 'version_id': 'path', 'name': 'form', 'placement': 'form', - 'format_version': 'form', 'response_condition': 'form', 'format': 'form', + 'format_version': 'form', 'message_type': 'form', 'timestamp_format': 'form', + 'compression_codec': 'form', 'period': 'form', 'gzip_level': 'form', - 'compression_codec': 'form', 'user': 'form', 'secret_key': 'form', 'account_name': 'form', @@ -444,14 +444,14 @@ def __init__(self, api_client=None): 'logging_gcs_name', 'name', 'placement', - 'format_version', 'response_condition', 'format', + 'format_version', 'message_type', 'timestamp_format', + 'compression_codec', 'period', 'gzip_level', - 'compression_codec', 'user', 'secret_key', 'account_name', @@ -520,22 +520,22 @@ def __init__(self, api_client=None): (str,), 'placement': (str, none_type,), - 'format_version': - (int,), 'response_condition': (str, none_type,), 'format': (str,), + 'format_version': + (int,), 'message_type': (str,), 'timestamp_format': (str, none_type,), + 'compression_codec': + (str,), 'period': (int,), 'gzip_level': (int,), - 'compression_codec': - (str,), 'user': (str,), 'secret_key': @@ -557,14 +557,14 @@ def __init__(self, api_client=None): 'logging_gcs_name': 'logging_gcs_name', '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', @@ -579,14 +579,14 @@ def __init__(self, api_client=None): 'logging_gcs_name': 'path', 'name': 'form', 'placement': 'form', - 'format_version': 'form', 'response_condition': 'form', 'format': 'form', + 'format_version': 'form', 'message_type': 'form', 'timestamp_format': 'form', + 'compression_codec': 'form', 'period': 'form', 'gzip_level': 'form', - 'compression_codec': 'form', 'user': 'form', 'secret_key': 'form', 'account_name': 'form', @@ -633,14 +633,14 @@ def create_log_gcs( Keyword Args: name (str): The name for the real-time logging configuration.. [optional] placement (str, none_type): Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. . [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] if omitted the server will use the default value of 2 response_condition (str, none_type): The name of an existing condition in the configured endpoint, or leave blank to always execute.. [optional] format (str): A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats).. [optional] if omitted the server will use the default value of "%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] if omitted the server will use the default value of 2 message_type (str): How the message should be formatted.. [optional] if omitted the server will use the default value of "classic" timestamp_format (str, none_type): A timestamp format. [optional] + compression_codec (str): The codec used for compressing your logs. 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] period (int): How frequently log files are finalized so they can be available for reading (in seconds).. [optional] if omitted the server will use the default value of 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] if omitted the server will use the default value of 0 - compression_codec (str): The codec used for compressing your logs. 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] user (str): 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 (str): 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 (str): 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] @@ -988,14 +988,14 @@ def update_log_gcs( Keyword Args: name (str): The name for the real-time logging configuration.. [optional] placement (str, none_type): Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. . [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] if omitted the server will use the default value of 2 response_condition (str, none_type): The name of an existing condition in the configured endpoint, or leave blank to always execute.. [optional] format (str): A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats).. [optional] if omitted the server will use the default value of "%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] if omitted the server will use the default value of 2 message_type (str): How the message should be formatted.. [optional] if omitted the server will use the default value of "classic" timestamp_format (str, none_type): A timestamp format. [optional] + compression_codec (str): The codec used for compressing your logs. 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] period (int): How frequently log files are finalized so they can be available for reading (in seconds).. [optional] if omitted the server will use the default value of 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] if omitted the server will use the default value of 0 - compression_codec (str): The codec used for compressing your logs. 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] user (str): 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 (str): 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 (str): 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/fastly/api/logging_heroku_api.py b/fastly/api/logging_heroku_api.py index ba5e28f..04f0fda 100644 --- a/fastly/api/logging_heroku_api.py +++ b/fastly/api/logging_heroku_api.py @@ -56,9 +56,9 @@ def __init__(self, api_client=None): 'version_id', 'name', 'placement', - 'format_version', 'response_condition', 'format', + 'format_version', 'token', 'url', ], @@ -102,12 +102,12 @@ def __init__(self, api_client=None): (str,), 'placement': (str, none_type,), - 'format_version': - (int,), 'response_condition': (str, none_type,), 'format': (str,), + 'format_version': + (int,), 'token': (str,), 'url': @@ -118,9 +118,9 @@ def __init__(self, api_client=None): 'version_id': 'version_id', 'name': 'name', 'placement': 'placement', - 'format_version': 'format_version', 'response_condition': 'response_condition', 'format': 'format', + 'format_version': 'format_version', 'token': 'token', 'url': 'url', }, @@ -129,9 +129,9 @@ def __init__(self, api_client=None): 'version_id': 'path', 'name': 'form', 'placement': 'form', - 'format_version': 'form', 'response_condition': 'form', 'format': 'form', + 'format_version': 'form', 'token': 'form', 'url': 'form', }, @@ -377,9 +377,9 @@ def __init__(self, api_client=None): 'logging_heroku_name', 'name', 'placement', - 'format_version', 'response_condition', 'format', + 'format_version', 'token', 'url', ], @@ -426,12 +426,12 @@ def __init__(self, api_client=None): (str,), 'placement': (str, none_type,), - 'format_version': - (int,), 'response_condition': (str, none_type,), 'format': (str,), + 'format_version': + (int,), 'token': (str,), 'url': @@ -443,9 +443,9 @@ def __init__(self, api_client=None): 'logging_heroku_name': 'logging_heroku_name', 'name': 'name', 'placement': 'placement', - 'format_version': 'format_version', 'response_condition': 'response_condition', 'format': 'format', + 'format_version': 'format_version', 'token': 'token', 'url': 'url', }, @@ -455,9 +455,9 @@ def __init__(self, api_client=None): 'logging_heroku_name': 'path', 'name': 'form', 'placement': 'form', - 'format_version': 'form', 'response_condition': 'form', 'format': 'form', + 'format_version': 'form', 'token': 'form', 'url': 'form', }, @@ -499,9 +499,9 @@ def create_log_heroku( Keyword Args: name (str): The name for the real-time logging configuration.. [optional] placement (str, none_type): Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. . [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] if omitted the server will use the default value of 2 response_condition (str, none_type): The name of an existing condition in the configured endpoint, or leave blank to always execute.. [optional] format (str): A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats).. [optional] if omitted the server will use the default value of "%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] if omitted the server will use the default value of 2 token (str): 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 (str): The URL to stream logs to.. [optional] _return_http_data_only (bool): response data without head status @@ -844,9 +844,9 @@ def update_log_heroku( Keyword Args: name (str): The name for the real-time logging configuration.. [optional] placement (str, none_type): Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. . [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] if omitted the server will use the default value of 2 response_condition (str, none_type): The name of an existing condition in the configured endpoint, or leave blank to always execute.. [optional] format (str): A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats).. [optional] if omitted the server will use the default value of "%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] if omitted the server will use the default value of 2 token (str): 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 (str): The URL to stream logs to.. [optional] _return_http_data_only (bool): response data without head status diff --git a/fastly/api/logging_honeycomb_api.py b/fastly/api/logging_honeycomb_api.py index 8f191e3..2fc3390 100644 --- a/fastly/api/logging_honeycomb_api.py +++ b/fastly/api/logging_honeycomb_api.py @@ -22,7 +22,6 @@ validate_and_convert_types ) from fastly.model.inline_response200 import InlineResponse200 -from fastly.model.logging_honeycomb import LoggingHoneycomb from fastly.model.logging_honeycomb_response import LoggingHoneycombResponse @@ -37,7 +36,7 @@ def __init__(self, api_client=None): self.api_client = api_client self.create_log_honeycomb_endpoint = _Endpoint( settings={ - 'response_type': (LoggingHoneycomb,), + 'response_type': (LoggingHoneycombResponse,), 'auth': [ 'token' ], @@ -57,9 +56,9 @@ def __init__(self, api_client=None): 'version_id', 'name', 'placement', - 'format_version', 'response_condition', 'format', + 'format_version', 'dataset', 'token', ], @@ -103,12 +102,12 @@ def __init__(self, api_client=None): (str,), 'placement': (str, none_type,), - 'format_version': - (int,), 'response_condition': (str, none_type,), 'format': (str,), + 'format_version': + (int,), 'dataset': (str,), 'token': @@ -119,9 +118,9 @@ def __init__(self, api_client=None): 'version_id': 'version_id', 'name': 'name', 'placement': 'placement', - 'format_version': 'format_version', 'response_condition': 'response_condition', 'format': 'format', + 'format_version': 'format_version', 'dataset': 'dataset', 'token': 'token', }, @@ -130,9 +129,9 @@ def __init__(self, api_client=None): 'version_id': 'path', 'name': 'form', 'placement': 'form', - 'format_version': 'form', 'response_condition': 'form', 'format': 'form', + 'format_version': 'form', 'dataset': 'form', 'token': 'form', }, @@ -223,7 +222,7 @@ def __init__(self, api_client=None): ) self.get_log_honeycomb_endpoint = _Endpoint( settings={ - 'response_type': (LoggingHoneycomb,), + 'response_type': (LoggingHoneycombResponse,), 'auth': [ 'token' ], @@ -378,9 +377,9 @@ def __init__(self, api_client=None): 'logging_honeycomb_name', 'name', 'placement', - 'format_version', 'response_condition', 'format', + 'format_version', 'dataset', 'token', ], @@ -427,12 +426,12 @@ def __init__(self, api_client=None): (str,), 'placement': (str, none_type,), - 'format_version': - (int,), 'response_condition': (str, none_type,), 'format': (str,), + 'format_version': + (int,), 'dataset': (str,), 'token': @@ -444,9 +443,9 @@ def __init__(self, api_client=None): 'logging_honeycomb_name': 'logging_honeycomb_name', 'name': 'name', 'placement': 'placement', - 'format_version': 'format_version', 'response_condition': 'response_condition', 'format': 'format', + 'format_version': 'format_version', 'dataset': 'dataset', 'token': 'token', }, @@ -456,9 +455,9 @@ def __init__(self, api_client=None): 'logging_honeycomb_name': 'path', 'name': 'form', 'placement': 'form', - 'format_version': 'form', 'response_condition': 'form', 'format': 'form', + 'format_version': 'form', 'dataset': 'form', 'token': 'form', }, @@ -500,9 +499,9 @@ def create_log_honeycomb( Keyword Args: name (str): The name for the real-time logging configuration.. [optional] placement (str, none_type): Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. . [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] if omitted the server will use the default value of 2 response_condition (str, none_type): The name of an existing condition in the configured endpoint, or leave blank to always execute.. [optional] format (str): 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] if omitted the server will use the default value of 2 dataset (str): The Honeycomb Dataset you want to log to.. [optional] token (str): The Write Key from the Account page of your Honeycomb account.. [optional] _return_http_data_only (bool): response data without head status @@ -533,7 +532,7 @@ def create_log_honeycomb( async_req (bool): execute request asynchronously Returns: - LoggingHoneycomb + LoggingHoneycombResponse If the method is called asynchronously, returns the request thread. """ @@ -703,7 +702,7 @@ def get_log_honeycomb( async_req (bool): execute request asynchronously Returns: - LoggingHoneycomb + LoggingHoneycombResponse If the method is called asynchronously, returns the request thread. """ @@ -845,9 +844,9 @@ def update_log_honeycomb( Keyword Args: name (str): The name for the real-time logging configuration.. [optional] placement (str, none_type): Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. . [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] if omitted the server will use the default value of 2 response_condition (str, none_type): The name of an existing condition in the configured endpoint, or leave blank to always execute.. [optional] format (str): 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] if omitted the server will use the default value of 2 dataset (str): The Honeycomb Dataset you want to log to.. [optional] token (str): The Write Key from the Account page of your Honeycomb account.. [optional] _return_http_data_only (bool): response data without head status diff --git a/fastly/api/logging_https_api.py b/fastly/api/logging_https_api.py index ea682cf..0559324 100644 --- a/fastly/api/logging_https_api.py +++ b/fastly/api/logging_https_api.py @@ -57,9 +57,9 @@ def __init__(self, api_client=None): 'version_id', 'name', 'placement', - 'format_version', 'response_condition', 'format', + 'format_version', 'tls_ca_cert', 'tls_client_cert', 'tls_client_key', @@ -134,12 +134,12 @@ def __init__(self, api_client=None): (str,), 'placement': (str, none_type,), - 'format_version': - (int,), 'response_condition': (str, none_type,), 'format': (str,), + 'format_version': + (int,), 'tls_ca_cert': (str, none_type,), 'tls_client_cert': @@ -172,9 +172,9 @@ def __init__(self, api_client=None): 'version_id': 'version_id', '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', @@ -194,9 +194,9 @@ def __init__(self, api_client=None): 'version_id': 'path', 'name': 'form', 'placement': 'form', - 'format_version': 'form', 'response_condition': 'form', 'format': 'form', + 'format_version': 'form', 'tls_ca_cert': 'form', 'tls_client_cert': 'form', 'tls_client_key': 'form', @@ -453,9 +453,9 @@ def __init__(self, api_client=None): 'logging_https_name', 'name', 'placement', - 'format_version', 'response_condition', 'format', + 'format_version', 'tls_ca_cert', 'tls_client_cert', 'tls_client_key', @@ -533,12 +533,12 @@ def __init__(self, api_client=None): (str,), 'placement': (str, none_type,), - 'format_version': - (int,), 'response_condition': (str, none_type,), 'format': (str,), + 'format_version': + (int,), 'tls_ca_cert': (str, none_type,), 'tls_client_cert': @@ -572,9 +572,9 @@ def __init__(self, api_client=None): 'logging_https_name': 'logging_https_name', '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', @@ -595,9 +595,9 @@ def __init__(self, api_client=None): 'logging_https_name': 'path', 'name': 'form', 'placement': 'form', - 'format_version': 'form', 'response_condition': 'form', 'format': 'form', + 'format_version': 'form', 'tls_ca_cert': 'form', 'tls_client_cert': 'form', 'tls_client_key': 'form', @@ -650,9 +650,9 @@ def create_log_https( Keyword Args: name (str): The name for the real-time logging configuration.. [optional] placement (str, none_type): Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. . [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] if omitted the server will use the default value of 2 response_condition (str, none_type): The name of an existing condition in the configured endpoint, or leave blank to always execute.. [optional] format (str): A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats).. [optional] if omitted the server will use the default value of "%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] if omitted the server will use the default value of 2 tls_ca_cert (str, none_type): A secure certificate to authenticate a server with. Must be in PEM format.. [optional] if omitted the server will use the default value of "null" tls_client_cert (str, none_type): The client certificate used to make authenticated requests. Must be in PEM format.. [optional] if omitted the server will use the default value of "null" tls_client_key (str, none_type): The client private key used to make authenticated requests. Must be in PEM format.. [optional] if omitted the server will use the default value of "null" @@ -1006,9 +1006,9 @@ def update_log_https( Keyword Args: name (str): The name for the real-time logging configuration.. [optional] placement (str, none_type): Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. . [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] if omitted the server will use the default value of 2 response_condition (str, none_type): The name of an existing condition in the configured endpoint, or leave blank to always execute.. [optional] format (str): A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats).. [optional] if omitted the server will use the default value of "%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] if omitted the server will use the default value of 2 tls_ca_cert (str, none_type): A secure certificate to authenticate a server with. Must be in PEM format.. [optional] if omitted the server will use the default value of "null" tls_client_cert (str, none_type): The client certificate used to make authenticated requests. Must be in PEM format.. [optional] if omitted the server will use the default value of "null" tls_client_key (str, none_type): The client private key used to make authenticated requests. Must be in PEM format.. [optional] if omitted the server will use the default value of "null" diff --git a/fastly/api/logging_kafka_api.py b/fastly/api/logging_kafka_api.py index d9bb008..5752427 100644 --- a/fastly/api/logging_kafka_api.py +++ b/fastly/api/logging_kafka_api.py @@ -23,6 +23,7 @@ ) from fastly.model.inline_response200 import InlineResponse200 from fastly.model.logging_kafka_response import LoggingKafkaResponse +from fastly.model.logging_kafka_response_post import LoggingKafkaResponsePost from fastly.model.logging_use_tls import LoggingUseTls @@ -37,7 +38,7 @@ def __init__(self, api_client=None): self.api_client = api_client self.create_log_kafka_endpoint = _Endpoint( settings={ - 'response_type': (LoggingKafkaResponse,), + 'response_type': (LoggingKafkaResponsePost,), 'auth': [ 'token' ], @@ -57,9 +58,9 @@ def __init__(self, api_client=None): 'version_id', 'name', 'placement', - 'format_version', 'response_condition', 'format', + 'format_version', 'tls_ca_cert', 'tls_client_cert', 'tls_client_key', @@ -142,12 +143,12 @@ def __init__(self, api_client=None): (str,), 'placement': (str, none_type,), - 'format_version': - (int,), 'response_condition': (str, none_type,), 'format': (str,), + 'format_version': + (int,), 'tls_ca_cert': (str, none_type,), 'tls_client_cert': @@ -182,9 +183,9 @@ def __init__(self, api_client=None): 'version_id': 'version_id', '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', @@ -205,9 +206,9 @@ def __init__(self, api_client=None): 'version_id': 'path', 'name': 'form', 'placement': 'form', - 'format_version': 'form', 'response_condition': 'form', 'format': 'form', + 'format_version': 'form', 'tls_ca_cert': 'form', 'tls_client_cert': 'form', 'tls_client_key': 'form', @@ -537,9 +538,9 @@ def create_log_kafka( Keyword Args: name (str): The name for the real-time logging configuration.. [optional] placement (str, none_type): Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. . [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] if omitted the server will use the default value of 2 response_condition (str, none_type): The name of an existing condition in the configured endpoint, or leave blank to always execute.. [optional] format (str): A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats).. [optional] if omitted the server will use the default value of "%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] if omitted the server will use the default value of 2 tls_ca_cert (str, none_type): A secure certificate to authenticate a server with. Must be in PEM format.. [optional] if omitted the server will use the default value of "null" tls_client_cert (str, none_type): The client certificate used to make authenticated requests. Must be in PEM format.. [optional] if omitted the server will use the default value of "null" tls_client_key (str, none_type): The client private key used to make authenticated requests. Must be in PEM format.. [optional] if omitted the server will use the default value of "null" @@ -582,7 +583,7 @@ def create_log_kafka( async_req (bool): execute request asynchronously Returns: - LoggingKafkaResponse + LoggingKafkaResponsePost If the method is called asynchronously, returns the request thread. """ diff --git a/fastly/api/logging_kinesis_api.py b/fastly/api/logging_kinesis_api.py index 290261b..19d6eb2 100644 --- a/fastly/api/logging_kinesis_api.py +++ b/fastly/api/logging_kinesis_api.py @@ -23,7 +23,6 @@ ) from fastly.model.aws_region import AwsRegion from fastly.model.inline_response200 import InlineResponse200 -from fastly.model.logging_format_version import LoggingFormatVersion from fastly.model.logging_kinesis_response import LoggingKinesisResponse from fastly.model.logging_placement import LoggingPlacement @@ -59,13 +58,13 @@ def __init__(self, api_client=None): 'version_id', 'name', 'placement', - 'format_version', 'format', 'topic', 'region', 'secret_key', 'access_key', 'iam_role', + 'format_version', ], 'required': [ 'service_id', @@ -78,6 +77,7 @@ def __init__(self, api_client=None): 'iam_role', ], 'enum': [ + 'format_version', ], 'validation': [ ] @@ -86,6 +86,11 @@ def __init__(self, api_client=None): 'validations': { }, 'allowed_values': { + ('format_version',): { + + "v1": 1, + "v2": 2 + }, }, 'openapi_types': { 'service_id': @@ -96,8 +101,6 @@ def __init__(self, api_client=None): (str,), 'placement': (LoggingPlacement,), - 'format_version': - (LoggingFormatVersion,), 'format': (str,), 'topic': @@ -110,32 +113,34 @@ def __init__(self, api_client=None): (str, none_type,), 'iam_role': (str, none_type,), + 'format_version': + (int,), }, 'attribute_map': { 'service_id': 'service_id', 'version_id': 'version_id', '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', }, 'location_map': { 'service_id': 'path', 'version_id': 'path', 'name': 'form', 'placement': 'form', - 'format_version': 'form', 'format': 'form', 'topic': 'form', 'region': 'form', 'secret_key': 'form', 'access_key': 'form', 'iam_role': 'form', + 'format_version': 'form', }, 'path_params_allow_reserved_map': { }, @@ -451,13 +456,13 @@ def create_log_kinesis( Keyword Args: name (str): The name for the real-time logging configuration.. [optional] placement (LoggingPlacement): [optional] - format_version (LoggingFormatVersion): [optional] format (str): A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). Must produce valid JSON that Kinesis can ingest.. [optional] if omitted the server will use the default value of "{"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 (str): The Amazon Kinesis stream to send logs to. Required.. [optional] region (AwsRegion): [optional] secret_key (str, none_type): The secret key associated with the target Amazon Kinesis stream. Not required if `iam_role` is specified.. [optional] access_key (str, none_type): The access key associated with the target Amazon Kinesis stream. Not required if `iam_role` is specified.. [optional] iam_role (str, none_type): 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] if omitted the server will use the default value of 2 _return_http_data_only (bool): response data without head status code and headers. Default is True. _preload_content (bool): if False, the urllib3.HTTPResponse object diff --git a/fastly/api/logging_logentries_api.py b/fastly/api/logging_logentries_api.py index b0f8270..8d78290 100644 --- a/fastly/api/logging_logentries_api.py +++ b/fastly/api/logging_logentries_api.py @@ -57,9 +57,9 @@ def __init__(self, api_client=None): 'version_id', 'name', 'placement', - 'format_version', 'response_condition', 'format', + 'format_version', 'port', 'token', 'use_tls', @@ -116,12 +116,12 @@ def __init__(self, api_client=None): (str,), 'placement': (str, none_type,), - 'format_version': - (int,), 'response_condition': (str, none_type,), 'format': (str,), + 'format_version': + (int,), 'port': (int,), 'token': @@ -136,9 +136,9 @@ def __init__(self, api_client=None): 'version_id': 'version_id', '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', @@ -149,9 +149,9 @@ def __init__(self, api_client=None): 'version_id': 'path', 'name': 'form', 'placement': 'form', - 'format_version': 'form', 'response_condition': 'form', 'format': 'form', + 'format_version': 'form', 'port': 'form', 'token': 'form', 'use_tls': 'form', @@ -399,9 +399,9 @@ def __init__(self, api_client=None): 'logging_logentries_name', 'name', 'placement', - 'format_version', 'response_condition', 'format', + 'format_version', 'port', 'token', 'use_tls', @@ -461,12 +461,12 @@ def __init__(self, api_client=None): (str,), 'placement': (str, none_type,), - 'format_version': - (int,), 'response_condition': (str, none_type,), 'format': (str,), + 'format_version': + (int,), 'port': (int,), 'token': @@ -482,9 +482,9 @@ def __init__(self, api_client=None): 'logging_logentries_name': 'logging_logentries_name', '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', @@ -496,9 +496,9 @@ def __init__(self, api_client=None): 'logging_logentries_name': 'path', 'name': 'form', 'placement': 'form', - 'format_version': 'form', 'response_condition': 'form', 'format': 'form', + 'format_version': 'form', 'port': 'form', 'token': 'form', 'use_tls': 'form', @@ -542,9 +542,9 @@ def create_log_logentries( Keyword Args: name (str): The name for the real-time logging configuration.. [optional] placement (str, none_type): Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. . [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] if omitted the server will use the default value of 2 response_condition (str, none_type): The name of an existing condition in the configured endpoint, or leave blank to always execute.. [optional] format (str): A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats).. [optional] if omitted the server will use the default value of "%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] if omitted the server will use the default value of 2 port (int): The port number.. [optional] if omitted the server will use the default value of 20000 token (str): Use token based authentication ([https://logentries.com/doc/input-token/](https://logentries.com/doc/input-token/)).. [optional] use_tls (LoggingUseTls): [optional] @@ -889,9 +889,9 @@ def update_log_logentries( Keyword Args: name (str): The name for the real-time logging configuration.. [optional] placement (str, none_type): Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. . [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] if omitted the server will use the default value of 2 response_condition (str, none_type): The name of an existing condition in the configured endpoint, or leave blank to always execute.. [optional] format (str): A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats).. [optional] if omitted the server will use the default value of "%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] if omitted the server will use the default value of 2 port (int): The port number.. [optional] if omitted the server will use the default value of 20000 token (str): Use token based authentication ([https://logentries.com/doc/input-token/](https://logentries.com/doc/input-token/)).. [optional] use_tls (LoggingUseTls): [optional] diff --git a/fastly/api/logging_loggly_api.py b/fastly/api/logging_loggly_api.py index cef592d..1ca2219 100644 --- a/fastly/api/logging_loggly_api.py +++ b/fastly/api/logging_loggly_api.py @@ -56,9 +56,9 @@ def __init__(self, api_client=None): 'version_id', 'name', 'placement', - 'format_version', 'response_condition', 'format', + 'format_version', 'token', ], 'required': [ @@ -101,12 +101,12 @@ def __init__(self, api_client=None): (str,), 'placement': (str, none_type,), - 'format_version': - (int,), 'response_condition': (str, none_type,), 'format': (str,), + 'format_version': + (int,), 'token': (str,), }, @@ -115,9 +115,9 @@ def __init__(self, api_client=None): 'version_id': 'version_id', 'name': 'name', 'placement': 'placement', - 'format_version': 'format_version', 'response_condition': 'response_condition', 'format': 'format', + 'format_version': 'format_version', 'token': 'token', }, 'location_map': { @@ -125,9 +125,9 @@ def __init__(self, api_client=None): 'version_id': 'path', 'name': 'form', 'placement': 'form', - 'format_version': 'form', 'response_condition': 'form', 'format': 'form', + 'format_version': 'form', 'token': 'form', }, 'path_params_allow_reserved_map': { @@ -372,9 +372,9 @@ def __init__(self, api_client=None): 'logging_loggly_name', 'name', 'placement', - 'format_version', 'response_condition', 'format', + 'format_version', 'token', ], 'required': [ @@ -420,12 +420,12 @@ def __init__(self, api_client=None): (str,), 'placement': (str, none_type,), - 'format_version': - (int,), 'response_condition': (str, none_type,), 'format': (str,), + 'format_version': + (int,), 'token': (str,), }, @@ -435,9 +435,9 @@ def __init__(self, api_client=None): 'logging_loggly_name': 'logging_loggly_name', 'name': 'name', 'placement': 'placement', - 'format_version': 'format_version', 'response_condition': 'response_condition', 'format': 'format', + 'format_version': 'format_version', 'token': 'token', }, 'location_map': { @@ -446,9 +446,9 @@ def __init__(self, api_client=None): 'logging_loggly_name': 'path', 'name': 'form', 'placement': 'form', - 'format_version': 'form', 'response_condition': 'form', 'format': 'form', + 'format_version': 'form', 'token': 'form', }, 'path_params_allow_reserved_map': { @@ -489,9 +489,9 @@ def create_log_loggly( Keyword Args: name (str): The name for the real-time logging configuration.. [optional] placement (str, none_type): Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. . [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] if omitted the server will use the default value of 2 response_condition (str, none_type): The name of an existing condition in the configured endpoint, or leave blank to always execute.. [optional] format (str): A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats).. [optional] if omitted the server will use the default value of "%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] if omitted the server will use the default value of 2 token (str): 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_http_data_only (bool): response data without head status code and headers. Default is True. @@ -833,9 +833,9 @@ def update_log_loggly( Keyword Args: name (str): The name for the real-time logging configuration.. [optional] placement (str, none_type): Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. . [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] if omitted the server will use the default value of 2 response_condition (str, none_type): The name of an existing condition in the configured endpoint, or leave blank to always execute.. [optional] format (str): A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats).. [optional] if omitted the server will use the default value of "%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] if omitted the server will use the default value of 2 token (str): 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_http_data_only (bool): response data without head status code and headers. Default is True. diff --git a/fastly/api/logging_logshuttle_api.py b/fastly/api/logging_logshuttle_api.py index 5c719c4..f0fd09d 100644 --- a/fastly/api/logging_logshuttle_api.py +++ b/fastly/api/logging_logshuttle_api.py @@ -56,9 +56,9 @@ def __init__(self, api_client=None): 'version_id', 'name', 'placement', - 'format_version', 'response_condition', 'format', + 'format_version', 'token', 'url', ], @@ -103,12 +103,12 @@ def __init__(self, api_client=None): (str,), 'placement': (str, none_type,), - 'format_version': - (int,), 'response_condition': (str, none_type,), 'format': (str,), + 'format_version': + (int,), 'token': (str, none_type,), 'url': @@ -119,9 +119,9 @@ def __init__(self, api_client=None): 'version_id': 'version_id', 'name': 'name', 'placement': 'placement', - 'format_version': 'format_version', 'response_condition': 'response_condition', 'format': 'format', + 'format_version': 'format_version', 'token': 'token', 'url': 'url', }, @@ -130,9 +130,9 @@ def __init__(self, api_client=None): 'version_id': 'path', 'name': 'form', 'placement': 'form', - 'format_version': 'form', 'response_condition': 'form', 'format': 'form', + 'format_version': 'form', 'token': 'form', 'url': 'form', }, @@ -378,9 +378,9 @@ def __init__(self, api_client=None): 'logging_logshuttle_name', 'name', 'placement', - 'format_version', 'response_condition', 'format', + 'format_version', 'token', 'url', ], @@ -428,12 +428,12 @@ def __init__(self, api_client=None): (str,), 'placement': (str, none_type,), - 'format_version': - (int,), 'response_condition': (str, none_type,), 'format': (str,), + 'format_version': + (int,), 'token': (str, none_type,), 'url': @@ -445,9 +445,9 @@ def __init__(self, api_client=None): 'logging_logshuttle_name': 'logging_logshuttle_name', 'name': 'name', 'placement': 'placement', - 'format_version': 'format_version', 'response_condition': 'response_condition', 'format': 'format', + 'format_version': 'format_version', 'token': 'token', 'url': 'url', }, @@ -457,9 +457,9 @@ def __init__(self, api_client=None): 'logging_logshuttle_name': 'path', 'name': 'form', 'placement': 'form', - 'format_version': 'form', 'response_condition': 'form', 'format': 'form', + 'format_version': 'form', 'token': 'form', 'url': 'form', }, @@ -501,9 +501,9 @@ def create_log_logshuttle( Keyword Args: name (str): The name for the real-time logging configuration.. [optional] placement (str, none_type): Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. . [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] if omitted the server will use the default value of 2 response_condition (str, none_type): The name of an existing condition in the configured endpoint, or leave blank to always execute.. [optional] format (str): A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats).. [optional] if omitted the server will use the default value of "%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] if omitted the server will use the default value of 2 token (str, none_type): The data authentication token associated with this endpoint.. [optional] url (str): The URL to stream logs to.. [optional] _return_http_data_only (bool): response data without head status @@ -846,9 +846,9 @@ def update_log_logshuttle( Keyword Args: name (str): The name for the real-time logging configuration.. [optional] placement (str, none_type): Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. . [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] if omitted the server will use the default value of 2 response_condition (str, none_type): The name of an existing condition in the configured endpoint, or leave blank to always execute.. [optional] format (str): A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats).. [optional] if omitted the server will use the default value of "%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] if omitted the server will use the default value of 2 token (str, none_type): The data authentication token associated with this endpoint.. [optional] url (str): The URL to stream logs to.. [optional] _return_http_data_only (bool): response data without head status diff --git a/fastly/api/logging_newrelic_api.py b/fastly/api/logging_newrelic_api.py index bb054d6..4331238 100644 --- a/fastly/api/logging_newrelic_api.py +++ b/fastly/api/logging_newrelic_api.py @@ -56,9 +56,9 @@ def __init__(self, api_client=None): 'version_id', 'name', 'placement', - 'format_version', 'response_condition', 'format', + 'format_version', 'token', 'region', ], @@ -108,12 +108,12 @@ def __init__(self, api_client=None): (str,), 'placement': (str, none_type,), - 'format_version': - (int,), 'response_condition': (str, none_type,), 'format': (str,), + 'format_version': + (int,), 'token': (str,), 'region': @@ -124,9 +124,9 @@ def __init__(self, api_client=None): 'version_id': 'version_id', 'name': 'name', 'placement': 'placement', - 'format_version': 'format_version', 'response_condition': 'response_condition', 'format': 'format', + 'format_version': 'format_version', 'token': 'token', 'region': 'region', }, @@ -135,9 +135,9 @@ def __init__(self, api_client=None): 'version_id': 'path', 'name': 'form', 'placement': 'form', - 'format_version': 'form', 'response_condition': 'form', 'format': 'form', + 'format_version': 'form', 'token': 'form', 'region': 'form', }, @@ -383,9 +383,9 @@ def __init__(self, api_client=None): 'logging_newrelic_name', 'name', 'placement', - 'format_version', 'response_condition', 'format', + 'format_version', 'token', 'region', ], @@ -438,12 +438,12 @@ def __init__(self, api_client=None): (str,), 'placement': (str, none_type,), - 'format_version': - (int,), 'response_condition': (str, none_type,), 'format': (str,), + 'format_version': + (int,), 'token': (str,), 'region': @@ -455,9 +455,9 @@ def __init__(self, api_client=None): 'logging_newrelic_name': 'logging_newrelic_name', 'name': 'name', 'placement': 'placement', - 'format_version': 'format_version', 'response_condition': 'response_condition', 'format': 'format', + 'format_version': 'format_version', 'token': 'token', 'region': 'region', }, @@ -467,9 +467,9 @@ def __init__(self, api_client=None): 'logging_newrelic_name': 'path', 'name': 'form', 'placement': 'form', - 'format_version': 'form', 'response_condition': 'form', 'format': 'form', + 'format_version': 'form', 'token': 'form', 'region': 'form', }, @@ -511,9 +511,9 @@ def create_log_newrelic( Keyword Args: name (str): The name for the real-time logging configuration.. [optional] placement (str, none_type): Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. . [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] if omitted the server will use the default value of 2 response_condition (str, none_type): The name of an existing condition in the configured endpoint, or leave blank to always execute.. [optional] format (str): 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] if omitted the server will use the default value of "{"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] if omitted the server will use the default value of 2 token (str): The Insert API key from the Account page of your New Relic account. Required.. [optional] region (str): The region to which to stream logs.. [optional] if omitted the server will use the default value of "US" _return_http_data_only (bool): response data without head status @@ -856,9 +856,9 @@ def update_log_newrelic( Keyword Args: name (str): The name for the real-time logging configuration.. [optional] placement (str, none_type): Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. . [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] if omitted the server will use the default value of 2 response_condition (str, none_type): The name of an existing condition in the configured endpoint, or leave blank to always execute.. [optional] format (str): 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] if omitted the server will use the default value of "{"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] if omitted the server will use the default value of 2 token (str): The Insert API key from the Account page of your New Relic account. Required.. [optional] region (str): The region to which to stream logs.. [optional] if omitted the server will use the default value of "US" _return_http_data_only (bool): response data without head status diff --git a/fastly/api/logging_openstack_api.py b/fastly/api/logging_openstack_api.py index fce8c14..af72d76 100644 --- a/fastly/api/logging_openstack_api.py +++ b/fastly/api/logging_openstack_api.py @@ -56,14 +56,14 @@ def __init__(self, api_client=None): 'version_id', 'name', 'placement', - 'format_version', 'response_condition', 'format', + 'format_version', 'message_type', 'timestamp_format', + 'compression_codec', 'period', 'gzip_level', - 'compression_codec', 'access_key', 'bucket_name', 'path', @@ -129,22 +129,22 @@ def __init__(self, api_client=None): (str,), 'placement': (str, none_type,), - 'format_version': - (int,), 'response_condition': (str, none_type,), 'format': (str,), + 'format_version': + (int,), 'message_type': (str,), 'timestamp_format': (str, none_type,), + 'compression_codec': + (str,), 'period': (int,), 'gzip_level': (int,), - 'compression_codec': - (str,), 'access_key': (str,), 'bucket_name': @@ -163,14 +163,14 @@ def __init__(self, api_client=None): 'version_id': 'version_id', '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', 'access_key': 'access_key', 'bucket_name': 'bucket_name', 'path': 'path', @@ -183,14 +183,14 @@ def __init__(self, api_client=None): 'version_id': 'path', 'name': 'form', 'placement': 'form', - 'format_version': 'form', 'response_condition': 'form', 'format': 'form', + 'format_version': 'form', 'message_type': 'form', 'timestamp_format': 'form', + 'compression_codec': 'form', 'period': 'form', 'gzip_level': 'form', - 'compression_codec': 'form', 'access_key': 'form', 'bucket_name': 'form', 'path': 'form', @@ -440,14 +440,14 @@ def __init__(self, api_client=None): 'logging_openstack_name', 'name', 'placement', - 'format_version', 'response_condition', 'format', + 'format_version', 'message_type', 'timestamp_format', + 'compression_codec', 'period', 'gzip_level', - 'compression_codec', 'access_key', 'bucket_name', 'path', @@ -516,22 +516,22 @@ def __init__(self, api_client=None): (str,), 'placement': (str, none_type,), - 'format_version': - (int,), 'response_condition': (str, none_type,), 'format': (str,), + 'format_version': + (int,), 'message_type': (str,), 'timestamp_format': (str, none_type,), + 'compression_codec': + (str,), 'period': (int,), 'gzip_level': (int,), - 'compression_codec': - (str,), 'access_key': (str,), 'bucket_name': @@ -551,14 +551,14 @@ def __init__(self, api_client=None): 'logging_openstack_name': 'logging_openstack_name', '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', 'access_key': 'access_key', 'bucket_name': 'bucket_name', 'path': 'path', @@ -572,14 +572,14 @@ def __init__(self, api_client=None): 'logging_openstack_name': 'path', 'name': 'form', 'placement': 'form', - 'format_version': 'form', 'response_condition': 'form', 'format': 'form', + 'format_version': 'form', 'message_type': 'form', 'timestamp_format': 'form', + 'compression_codec': 'form', 'period': 'form', 'gzip_level': 'form', - 'compression_codec': 'form', 'access_key': 'form', 'bucket_name': 'form', 'path': 'form', @@ -625,14 +625,14 @@ def create_log_openstack( Keyword Args: name (str): The name for the real-time logging configuration.. [optional] placement (str, none_type): Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. . [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] if omitted the server will use the default value of 2 response_condition (str, none_type): The name of an existing condition in the configured endpoint, or leave blank to always execute.. [optional] format (str): A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats).. [optional] if omitted the server will use the default value of "%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] if omitted the server will use the default value of 2 message_type (str): How the message should be formatted.. [optional] if omitted the server will use the default value of "classic" timestamp_format (str, none_type): A timestamp format. [optional] + compression_codec (str): The codec used for compressing your logs. 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] period (int): How frequently log files are finalized so they can be available for reading (in seconds).. [optional] if omitted the server will use the default value of 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] if omitted the server will use the default value of 0 - compression_codec (str): The codec used for compressing your logs. 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] access_key (str): Your OpenStack account access key.. [optional] bucket_name (str): The name of your OpenStack container.. [optional] path (str, none_type): The path to upload logs to.. [optional] if omitted the server will use the default value of "null" @@ -979,14 +979,14 @@ def update_log_openstack( Keyword Args: name (str): The name for the real-time logging configuration.. [optional] placement (str, none_type): Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. . [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] if omitted the server will use the default value of 2 response_condition (str, none_type): The name of an existing condition in the configured endpoint, or leave blank to always execute.. [optional] format (str): A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats).. [optional] if omitted the server will use the default value of "%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] if omitted the server will use the default value of 2 message_type (str): How the message should be formatted.. [optional] if omitted the server will use the default value of "classic" timestamp_format (str, none_type): A timestamp format. [optional] + compression_codec (str): The codec used for compressing your logs. 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] period (int): How frequently log files are finalized so they can be available for reading (in seconds).. [optional] if omitted the server will use the default value of 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] if omitted the server will use the default value of 0 - compression_codec (str): The codec used for compressing your logs. 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] access_key (str): Your OpenStack account access key.. [optional] bucket_name (str): The name of your OpenStack container.. [optional] path (str, none_type): The path to upload logs to.. [optional] if omitted the server will use the default value of "null" diff --git a/fastly/api/logging_papertrail_api.py b/fastly/api/logging_papertrail_api.py index 39eb6b0..ca74509 100644 --- a/fastly/api/logging_papertrail_api.py +++ b/fastly/api/logging_papertrail_api.py @@ -56,9 +56,9 @@ def __init__(self, api_client=None): 'version_id', 'name', 'placement', - 'format_version', 'response_condition', 'format', + 'format_version', 'address', 'port', ], @@ -102,12 +102,12 @@ def __init__(self, api_client=None): (str,), 'placement': (str, none_type,), - 'format_version': - (int,), 'response_condition': (str, none_type,), 'format': (str,), + 'format_version': + (int,), 'address': (str,), 'port': @@ -118,9 +118,9 @@ def __init__(self, api_client=None): 'version_id': 'version_id', 'name': 'name', 'placement': 'placement', - 'format_version': 'format_version', 'response_condition': 'response_condition', 'format': 'format', + 'format_version': 'format_version', 'address': 'address', 'port': 'port', }, @@ -129,9 +129,9 @@ def __init__(self, api_client=None): 'version_id': 'path', 'name': 'form', 'placement': 'form', - 'format_version': 'form', 'response_condition': 'form', 'format': 'form', + 'format_version': 'form', 'address': 'form', 'port': 'form', }, @@ -377,9 +377,9 @@ def __init__(self, api_client=None): 'logging_papertrail_name', 'name', 'placement', - 'format_version', 'response_condition', 'format', + 'format_version', 'address', 'port', ], @@ -426,12 +426,12 @@ def __init__(self, api_client=None): (str,), 'placement': (str, none_type,), - 'format_version': - (int,), 'response_condition': (str, none_type,), 'format': (str,), + 'format_version': + (int,), 'address': (str,), 'port': @@ -443,9 +443,9 @@ def __init__(self, api_client=None): 'logging_papertrail_name': 'logging_papertrail_name', 'name': 'name', 'placement': 'placement', - 'format_version': 'format_version', 'response_condition': 'response_condition', 'format': 'format', + 'format_version': 'format_version', 'address': 'address', 'port': 'port', }, @@ -455,9 +455,9 @@ def __init__(self, api_client=None): 'logging_papertrail_name': 'path', 'name': 'form', 'placement': 'form', - 'format_version': 'form', 'response_condition': 'form', 'format': 'form', + 'format_version': 'form', 'address': 'form', 'port': 'form', }, @@ -499,9 +499,9 @@ def create_log_papertrail( Keyword Args: name (str): The name for the real-time logging configuration.. [optional] placement (str, none_type): Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. . [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] if omitted the server will use the default value of 2 response_condition (str, none_type): The name of an existing condition in the configured endpoint, or leave blank to always execute.. [optional] format (str): A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats).. [optional] if omitted the server will use the default value of "%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] if omitted the server will use the default value of 2 address (str): A hostname or IPv4 address.. [optional] port (int): The port number.. [optional] if omitted the server will use the default value of 514 _return_http_data_only (bool): response data without head status @@ -844,9 +844,9 @@ def update_log_papertrail( Keyword Args: name (str): The name for the real-time logging configuration.. [optional] placement (str, none_type): Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. . [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] if omitted the server will use the default value of 2 response_condition (str, none_type): The name of an existing condition in the configured endpoint, or leave blank to always execute.. [optional] format (str): A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats).. [optional] if omitted the server will use the default value of "%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] if omitted the server will use the default value of 2 address (str): A hostname or IPv4 address.. [optional] port (int): The port number.. [optional] if omitted the server will use the default value of 514 _return_http_data_only (bool): response data without head status diff --git a/fastly/api/logging_pubsub_api.py b/fastly/api/logging_pubsub_api.py index d91954e..1a667b5 100644 --- a/fastly/api/logging_pubsub_api.py +++ b/fastly/api/logging_pubsub_api.py @@ -56,9 +56,9 @@ def __init__(self, api_client=None): 'version_id', 'name', 'placement', - 'format_version', 'response_condition', 'format', + 'format_version', 'user', 'secret_key', 'account_name', @@ -105,12 +105,12 @@ def __init__(self, api_client=None): (str,), 'placement': (str, none_type,), - 'format_version': - (int,), 'response_condition': (str, none_type,), 'format': (str,), + 'format_version': + (int,), 'user': (str,), 'secret_key': @@ -127,9 +127,9 @@ def __init__(self, api_client=None): 'version_id': 'version_id', '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', @@ -141,9 +141,9 @@ def __init__(self, api_client=None): 'version_id': 'path', 'name': 'form', 'placement': 'form', - 'format_version': 'form', 'response_condition': 'form', 'format': 'form', + 'format_version': 'form', 'user': 'form', 'secret_key': 'form', 'account_name': 'form', @@ -392,9 +392,9 @@ def __init__(self, api_client=None): 'logging_google_pubsub_name', 'name', 'placement', - 'format_version', 'response_condition', 'format', + 'format_version', 'user', 'secret_key', 'account_name', @@ -444,12 +444,12 @@ def __init__(self, api_client=None): (str,), 'placement': (str, none_type,), - 'format_version': - (int,), 'response_condition': (str, none_type,), 'format': (str,), + 'format_version': + (int,), 'user': (str,), 'secret_key': @@ -467,9 +467,9 @@ def __init__(self, api_client=None): 'logging_google_pubsub_name': 'logging_google_pubsub_name', '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', @@ -482,9 +482,9 @@ def __init__(self, api_client=None): 'logging_google_pubsub_name': 'path', 'name': 'form', 'placement': 'form', - 'format_version': 'form', 'response_condition': 'form', 'format': 'form', + 'format_version': 'form', 'user': 'form', 'secret_key': 'form', 'account_name': 'form', @@ -529,9 +529,9 @@ def create_log_gcp_pubsub( Keyword Args: name (str): The name for the real-time logging configuration.. [optional] placement (str, none_type): Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. . [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] if omitted the server will use the default value of 2 response_condition (str, none_type): The name of an existing condition in the configured endpoint, or leave blank to always execute.. [optional] format (str): A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats).. [optional] if omitted the server will use the default value of "%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] if omitted the server will use the default value of 2 user (str): 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 (str): 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 (str): 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] @@ -877,9 +877,9 @@ def update_log_gcp_pubsub( Keyword Args: name (str): The name for the real-time logging configuration.. [optional] placement (str, none_type): Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. . [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] if omitted the server will use the default value of 2 response_condition (str, none_type): The name of an existing condition in the configured endpoint, or leave blank to always execute.. [optional] format (str): A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats).. [optional] if omitted the server will use the default value of "%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] if omitted the server will use the default value of 2 user (str): 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 (str): 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 (str): 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/fastly/api/logging_s3_api.py b/fastly/api/logging_s3_api.py index ab0fac3..e620095 100644 --- a/fastly/api/logging_s3_api.py +++ b/fastly/api/logging_s3_api.py @@ -56,14 +56,14 @@ def __init__(self, api_client=None): 'version_id', 'name', 'placement', - 'format_version', 'response_condition', 'format', + 'format_version', 'message_type', 'timestamp_format', + 'compression_codec', 'period', 'gzip_level', - 'compression_codec', 'access_key', 'acl', 'bucket_name', @@ -140,22 +140,22 @@ def __init__(self, api_client=None): (str,), 'placement': (str, none_type,), - 'format_version': - (int,), 'response_condition': (str, none_type,), 'format': (str,), + 'format_version': + (int,), 'message_type': (str,), 'timestamp_format': (str, none_type,), + 'compression_codec': + (str,), 'period': (int,), 'gzip_level': (int,), - 'compression_codec': - (str,), 'access_key': (str, none_type,), 'acl': @@ -184,14 +184,14 @@ def __init__(self, api_client=None): 'version_id': 'version_id', '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', 'access_key': 'access_key', 'acl': 'acl', 'bucket_name': 'bucket_name', @@ -209,14 +209,14 @@ def __init__(self, api_client=None): 'version_id': 'path', 'name': 'form', 'placement': 'form', - 'format_version': 'form', 'response_condition': 'form', 'format': 'form', + 'format_version': 'form', 'message_type': 'form', 'timestamp_format': 'form', + 'compression_codec': 'form', 'period': 'form', 'gzip_level': 'form', - 'compression_codec': 'form', 'access_key': 'form', 'acl': 'form', 'bucket_name': 'form', @@ -471,14 +471,14 @@ def __init__(self, api_client=None): 'logging_s3_name', 'name', 'placement', - 'format_version', 'response_condition', 'format', + 'format_version', 'message_type', 'timestamp_format', + 'compression_codec', 'period', 'gzip_level', - 'compression_codec', 'access_key', 'acl', 'bucket_name', @@ -558,22 +558,22 @@ def __init__(self, api_client=None): (str,), 'placement': (str, none_type,), - 'format_version': - (int,), 'response_condition': (str, none_type,), 'format': (str,), + 'format_version': + (int,), 'message_type': (str,), 'timestamp_format': (str, none_type,), + 'compression_codec': + (str,), 'period': (int,), 'gzip_level': (int,), - 'compression_codec': - (str,), 'access_key': (str, none_type,), 'acl': @@ -603,14 +603,14 @@ def __init__(self, api_client=None): 'logging_s3_name': 'logging_s3_name', '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', 'access_key': 'access_key', 'acl': 'acl', 'bucket_name': 'bucket_name', @@ -629,14 +629,14 @@ def __init__(self, api_client=None): 'logging_s3_name': 'path', 'name': 'form', 'placement': 'form', - 'format_version': 'form', 'response_condition': 'form', 'format': 'form', + 'format_version': 'form', 'message_type': 'form', 'timestamp_format': 'form', + 'compression_codec': 'form', 'period': 'form', 'gzip_level': 'form', - 'compression_codec': 'form', 'access_key': 'form', 'acl': 'form', 'bucket_name': 'form', @@ -687,14 +687,14 @@ def create_log_aws_s3( Keyword Args: name (str): The name for the real-time logging configuration.. [optional] placement (str, none_type): Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. . [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] if omitted the server will use the default value of 2 response_condition (str, none_type): The name of an existing condition in the configured endpoint, or leave blank to always execute.. [optional] format (str): A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats).. [optional] if omitted the server will use the default value of "%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] if omitted the server will use the default value of 2 message_type (str): How the message should be formatted.. [optional] if omitted the server will use the default value of "classic" timestamp_format (str, none_type): A timestamp format. [optional] + compression_codec (str): The codec used for compressing your logs. 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] period (int): How frequently log files are finalized so they can be available for reading (in seconds).. [optional] if omitted the server will use the default value of 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] if omitted the server will use the default value of 0 - compression_codec (str): The codec used for compressing your logs. 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] access_key (str, none_type): The access key for your S3 account. Not required if `iam_role` is provided.. [optional] acl (str): 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 (str): The bucket name for S3 account.. [optional] @@ -1046,14 +1046,14 @@ def update_log_aws_s3( Keyword Args: name (str): The name for the real-time logging configuration.. [optional] placement (str, none_type): Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. . [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] if omitted the server will use the default value of 2 response_condition (str, none_type): The name of an existing condition in the configured endpoint, or leave blank to always execute.. [optional] format (str): A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats).. [optional] if omitted the server will use the default value of "%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] if omitted the server will use the default value of 2 message_type (str): How the message should be formatted.. [optional] if omitted the server will use the default value of "classic" timestamp_format (str, none_type): A timestamp format. [optional] + compression_codec (str): The codec used for compressing your logs. 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] period (int): How frequently log files are finalized so they can be available for reading (in seconds).. [optional] if omitted the server will use the default value of 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] if omitted the server will use the default value of 0 - compression_codec (str): The codec used for compressing your logs. 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] access_key (str, none_type): The access key for your S3 account. Not required if `iam_role` is provided.. [optional] acl (str): 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 (str): The bucket name for S3 account.. [optional] diff --git a/fastly/api/logging_scalyr_api.py b/fastly/api/logging_scalyr_api.py index c2f7686..87c9705 100644 --- a/fastly/api/logging_scalyr_api.py +++ b/fastly/api/logging_scalyr_api.py @@ -56,9 +56,9 @@ def __init__(self, api_client=None): 'version_id', 'name', 'placement', - 'format_version', 'response_condition', 'format', + 'format_version', 'region', 'token', 'project_id', @@ -109,12 +109,12 @@ def __init__(self, api_client=None): (str,), 'placement': (str, none_type,), - 'format_version': - (int,), 'response_condition': (str, none_type,), 'format': (str,), + 'format_version': + (int,), 'region': (str,), 'token': @@ -127,9 +127,9 @@ def __init__(self, api_client=None): 'version_id': 'version_id', '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', @@ -139,9 +139,9 @@ def __init__(self, api_client=None): 'version_id': 'path', 'name': 'form', 'placement': 'form', - 'format_version': 'form', 'response_condition': 'form', 'format': 'form', + 'format_version': 'form', 'region': 'form', 'token': 'form', 'project_id': 'form', @@ -388,9 +388,9 @@ def __init__(self, api_client=None): 'logging_scalyr_name', 'name', 'placement', - 'format_version', 'response_condition', 'format', + 'format_version', 'region', 'token', 'project_id', @@ -444,12 +444,12 @@ def __init__(self, api_client=None): (str,), 'placement': (str, none_type,), - 'format_version': - (int,), 'response_condition': (str, none_type,), 'format': (str,), + 'format_version': + (int,), 'region': (str,), 'token': @@ -463,9 +463,9 @@ def __init__(self, api_client=None): 'logging_scalyr_name': 'logging_scalyr_name', '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', @@ -476,9 +476,9 @@ def __init__(self, api_client=None): 'logging_scalyr_name': 'path', 'name': 'form', 'placement': 'form', - 'format_version': 'form', 'response_condition': 'form', 'format': 'form', + 'format_version': 'form', 'region': 'form', 'token': 'form', 'project_id': 'form', @@ -521,9 +521,9 @@ def create_log_scalyr( Keyword Args: name (str): The name for the real-time logging configuration.. [optional] placement (str, none_type): Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. . [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] if omitted the server will use the default value of 2 response_condition (str, none_type): The name of an existing condition in the configured endpoint, or leave blank to always execute.. [optional] format (str): A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats).. [optional] if omitted the server will use the default value of "%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] if omitted the server will use the default value of 2 region (str): The region that log data will be sent to.. [optional] if omitted the server will use the default value of "US" token (str): The token to use for authentication ([https://www.scalyr.com/keys](https://www.scalyr.com/keys)).. [optional] project_id (str): The name of the logfile within Scalyr.. [optional] if omitted the server will use the default value of "logplex" @@ -867,9 +867,9 @@ def update_log_scalyr( Keyword Args: name (str): The name for the real-time logging configuration.. [optional] placement (str, none_type): Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. . [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] if omitted the server will use the default value of 2 response_condition (str, none_type): The name of an existing condition in the configured endpoint, or leave blank to always execute.. [optional] format (str): A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats).. [optional] if omitted the server will use the default value of "%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] if omitted the server will use the default value of 2 region (str): The region that log data will be sent to.. [optional] if omitted the server will use the default value of "US" token (str): The token to use for authentication ([https://www.scalyr.com/keys](https://www.scalyr.com/keys)).. [optional] project_id (str): The name of the logfile within Scalyr.. [optional] if omitted the server will use the default value of "logplex" diff --git a/fastly/api/logging_sftp_api.py b/fastly/api/logging_sftp_api.py index f73dbd0..51ab9e2 100644 --- a/fastly/api/logging_sftp_api.py +++ b/fastly/api/logging_sftp_api.py @@ -56,14 +56,14 @@ def __init__(self, api_client=None): 'version_id', 'name', 'placement', - 'format_version', 'response_condition', 'format', + 'format_version', 'message_type', 'timestamp_format', + 'compression_codec', 'period', 'gzip_level', - 'compression_codec', 'address', 'port', 'password', @@ -132,22 +132,22 @@ def __init__(self, api_client=None): (str,), 'placement': (str, none_type,), - 'format_version': - (int,), 'response_condition': (str, none_type,), 'format': (str,), + 'format_version': + (int,), 'message_type': (str,), 'timestamp_format': (str, none_type,), + 'compression_codec': + (str,), 'period': (int,), 'gzip_level': (int,), - 'compression_codec': - (str,), 'address': (str,), 'port': @@ -170,14 +170,14 @@ def __init__(self, api_client=None): 'version_id': 'version_id', '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', 'address': 'address', 'port': 'port', 'password': 'password', @@ -192,14 +192,14 @@ def __init__(self, api_client=None): 'version_id': 'path', 'name': 'form', 'placement': 'form', - 'format_version': 'form', 'response_condition': 'form', 'format': 'form', + 'format_version': 'form', 'message_type': 'form', 'timestamp_format': 'form', + 'compression_codec': 'form', 'period': 'form', 'gzip_level': 'form', - 'compression_codec': 'form', 'address': 'form', 'port': 'form', 'password': 'form', @@ -451,14 +451,14 @@ def __init__(self, api_client=None): 'logging_sftp_name', 'name', 'placement', - 'format_version', 'response_condition', 'format', + 'format_version', 'message_type', 'timestamp_format', + 'compression_codec', 'period', 'gzip_level', - 'compression_codec', 'address', 'port', 'password', @@ -530,22 +530,22 @@ def __init__(self, api_client=None): (str,), 'placement': (str, none_type,), - 'format_version': - (int,), 'response_condition': (str, none_type,), 'format': (str,), + 'format_version': + (int,), 'message_type': (str,), 'timestamp_format': (str, none_type,), + 'compression_codec': + (str,), 'period': (int,), 'gzip_level': (int,), - 'compression_codec': - (str,), 'address': (str,), 'port': @@ -569,14 +569,14 @@ def __init__(self, api_client=None): 'logging_sftp_name': 'logging_sftp_name', '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', 'address': 'address', 'port': 'port', 'password': 'password', @@ -592,14 +592,14 @@ def __init__(self, api_client=None): 'logging_sftp_name': 'path', 'name': 'form', 'placement': 'form', - 'format_version': 'form', 'response_condition': 'form', 'format': 'form', + 'format_version': 'form', 'message_type': 'form', 'timestamp_format': 'form', + 'compression_codec': 'form', 'period': 'form', 'gzip_level': 'form', - 'compression_codec': 'form', 'address': 'form', 'port': 'form', 'password': 'form', @@ -647,14 +647,14 @@ def create_log_sftp( Keyword Args: name (str): The name for the real-time logging configuration.. [optional] placement (str, none_type): Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. . [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] if omitted the server will use the default value of 2 response_condition (str, none_type): The name of an existing condition in the configured endpoint, or leave blank to always execute.. [optional] format (str): A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats).. [optional] if omitted the server will use the default value of "%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] if omitted the server will use the default value of 2 message_type (str): How the message should be formatted.. [optional] if omitted the server will use the default value of "classic" timestamp_format (str, none_type): A timestamp format. [optional] + compression_codec (str): The codec used for compressing your logs. 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] period (int): How frequently log files are finalized so they can be available for reading (in seconds).. [optional] if omitted the server will use the default value of 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] if omitted the server will use the default value of 0 - compression_codec (str): The codec used for compressing your logs. 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] address (str): A hostname or IPv4 address.. [optional] port (int): The port number.. [optional] if omitted the server will use the default value of 22 password (str): The password for the server. If both `password` and `secret_key` are passed, `secret_key` will be used in preference.. [optional] @@ -1003,14 +1003,14 @@ def update_log_sftp( Keyword Args: name (str): The name for the real-time logging configuration.. [optional] placement (str, none_type): Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. . [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] if omitted the server will use the default value of 2 response_condition (str, none_type): The name of an existing condition in the configured endpoint, or leave blank to always execute.. [optional] format (str): A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats).. [optional] if omitted the server will use the default value of "%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] if omitted the server will use the default value of 2 message_type (str): How the message should be formatted.. [optional] if omitted the server will use the default value of "classic" timestamp_format (str, none_type): A timestamp format. [optional] + compression_codec (str): The codec used for compressing your logs. 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] period (int): How frequently log files are finalized so they can be available for reading (in seconds).. [optional] if omitted the server will use the default value of 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] if omitted the server will use the default value of 0 - compression_codec (str): The codec used for compressing your logs. 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] address (str): A hostname or IPv4 address.. [optional] port (int): The port number.. [optional] if omitted the server will use the default value of 22 password (str): The password for the server. If both `password` and `secret_key` are passed, `secret_key` will be used in preference.. [optional] diff --git a/fastly/api/logging_splunk_api.py b/fastly/api/logging_splunk_api.py index 193e16d..faadf74 100644 --- a/fastly/api/logging_splunk_api.py +++ b/fastly/api/logging_splunk_api.py @@ -57,9 +57,9 @@ def __init__(self, api_client=None): 'version_id', 'name', 'placement', - 'format_version', 'response_condition', 'format', + 'format_version', 'tls_ca_cert', 'tls_client_cert', 'tls_client_key', @@ -114,12 +114,12 @@ def __init__(self, api_client=None): (str,), 'placement': (str, none_type,), - 'format_version': - (int,), 'response_condition': (str, none_type,), 'format': (str,), + 'format_version': + (int,), 'tls_ca_cert': (str, none_type,), 'tls_client_cert': @@ -144,9 +144,9 @@ def __init__(self, api_client=None): 'version_id': 'version_id', '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', @@ -162,9 +162,9 @@ def __init__(self, api_client=None): 'version_id': 'path', 'name': 'form', 'placement': 'form', - 'format_version': 'form', 'response_condition': 'form', 'format': 'form', + 'format_version': 'form', 'tls_ca_cert': 'form', 'tls_client_cert': 'form', 'tls_client_key': 'form', @@ -417,9 +417,9 @@ def __init__(self, api_client=None): 'logging_splunk_name', 'name', 'placement', - 'format_version', 'response_condition', 'format', + 'format_version', 'tls_ca_cert', 'tls_client_cert', 'tls_client_key', @@ -477,12 +477,12 @@ def __init__(self, api_client=None): (str,), 'placement': (str, none_type,), - 'format_version': - (int,), 'response_condition': (str, none_type,), 'format': (str,), + 'format_version': + (int,), 'tls_ca_cert': (str, none_type,), 'tls_client_cert': @@ -508,9 +508,9 @@ def __init__(self, api_client=None): 'logging_splunk_name': 'logging_splunk_name', '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', @@ -527,9 +527,9 @@ def __init__(self, api_client=None): 'logging_splunk_name': 'path', 'name': 'form', 'placement': 'form', - 'format_version': 'form', 'response_condition': 'form', 'format': 'form', + 'format_version': 'form', 'tls_ca_cert': 'form', 'tls_client_cert': 'form', 'tls_client_key': 'form', @@ -578,9 +578,9 @@ def create_log_splunk( Keyword Args: name (str): The name for the real-time logging configuration.. [optional] placement (str, none_type): Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. . [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] if omitted the server will use the default value of 2 response_condition (str, none_type): The name of an existing condition in the configured endpoint, or leave blank to always execute.. [optional] format (str): A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats).. [optional] if omitted the server will use the default value of "%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] if omitted the server will use the default value of 2 tls_ca_cert (str, none_type): A secure certificate to authenticate a server with. Must be in PEM format.. [optional] if omitted the server will use the default value of "null" tls_client_cert (str, none_type): The client certificate used to make authenticated requests. Must be in PEM format.. [optional] if omitted the server will use the default value of "null" tls_client_key (str, none_type): The client private key used to make authenticated requests. Must be in PEM format.. [optional] if omitted the server will use the default value of "null" @@ -930,9 +930,9 @@ def update_log_splunk( Keyword Args: name (str): The name for the real-time logging configuration.. [optional] placement (str, none_type): Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. . [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] if omitted the server will use the default value of 2 response_condition (str, none_type): The name of an existing condition in the configured endpoint, or leave blank to always execute.. [optional] format (str): A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats).. [optional] if omitted the server will use the default value of "%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] if omitted the server will use the default value of 2 tls_ca_cert (str, none_type): A secure certificate to authenticate a server with. Must be in PEM format.. [optional] if omitted the server will use the default value of "null" tls_client_cert (str, none_type): The client certificate used to make authenticated requests. Must be in PEM format.. [optional] if omitted the server will use the default value of "null" tls_client_key (str, none_type): The client private key used to make authenticated requests. Must be in PEM format.. [optional] if omitted the server will use the default value of "null" diff --git a/fastly/api/logging_sumologic_api.py b/fastly/api/logging_sumologic_api.py index 4d99cb9..d9832d7 100644 --- a/fastly/api/logging_sumologic_api.py +++ b/fastly/api/logging_sumologic_api.py @@ -57,9 +57,9 @@ def __init__(self, api_client=None): 'version_id', 'name', 'placement', - 'format_version', 'response_condition', 'format', + 'format_version', 'message_type', 'url', ], @@ -103,12 +103,12 @@ def __init__(self, api_client=None): (str,), 'placement': (str, none_type,), - 'format_version': - (int,), 'response_condition': (str, none_type,), 'format': (str,), + 'format_version': + (int,), 'message_type': (LoggingMessageType,), 'url': @@ -119,9 +119,9 @@ def __init__(self, api_client=None): 'version_id': 'version_id', 'name': 'name', 'placement': 'placement', - 'format_version': 'format_version', 'response_condition': 'response_condition', 'format': 'format', + 'format_version': 'format_version', 'message_type': 'message_type', 'url': 'url', }, @@ -130,9 +130,9 @@ def __init__(self, api_client=None): 'version_id': 'path', 'name': 'form', 'placement': 'form', - 'format_version': 'form', 'response_condition': 'form', 'format': 'form', + 'format_version': 'form', 'message_type': 'form', 'url': 'form', }, @@ -378,9 +378,9 @@ def __init__(self, api_client=None): 'logging_sumologic_name', 'name', 'placement', - 'format_version', 'response_condition', 'format', + 'format_version', 'message_type', 'url', ], @@ -427,12 +427,12 @@ def __init__(self, api_client=None): (str,), 'placement': (str, none_type,), - 'format_version': - (int,), 'response_condition': (str, none_type,), 'format': (str,), + 'format_version': + (int,), 'message_type': (LoggingMessageType,), 'url': @@ -444,9 +444,9 @@ def __init__(self, api_client=None): 'logging_sumologic_name': 'logging_sumologic_name', 'name': 'name', 'placement': 'placement', - 'format_version': 'format_version', 'response_condition': 'response_condition', 'format': 'format', + 'format_version': 'format_version', 'message_type': 'message_type', 'url': 'url', }, @@ -456,9 +456,9 @@ def __init__(self, api_client=None): 'logging_sumologic_name': 'path', 'name': 'form', 'placement': 'form', - 'format_version': 'form', 'response_condition': 'form', 'format': 'form', + 'format_version': 'form', 'message_type': 'form', 'url': 'form', }, @@ -500,9 +500,9 @@ def create_log_sumologic( Keyword Args: name (str): The name for the real-time logging configuration.. [optional] placement (str, none_type): Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. . [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] if omitted the server will use the default value of 2 response_condition (str, none_type): The name of an existing condition in the configured endpoint, or leave blank to always execute.. [optional] format (str): A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats).. [optional] if omitted the server will use the default value of "%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] if omitted the server will use the default value of 2 message_type (LoggingMessageType): [optional] url (str): The URL to post logs to.. [optional] _return_http_data_only (bool): response data without head status @@ -845,9 +845,9 @@ def update_log_sumologic( Keyword Args: name (str): The name for the real-time logging configuration.. [optional] placement (str, none_type): Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. . [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] if omitted the server will use the default value of 2 response_condition (str, none_type): The name of an existing condition in the configured endpoint, or leave blank to always execute.. [optional] format (str): A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats).. [optional] if omitted the server will use the default value of "%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] if omitted the server will use the default value of 2 message_type (LoggingMessageType): [optional] url (str): The URL to post logs to.. [optional] _return_http_data_only (bool): response data without head status diff --git a/fastly/api/logging_syslog_api.py b/fastly/api/logging_syslog_api.py index f3c8384..410c40d 100644 --- a/fastly/api/logging_syslog_api.py +++ b/fastly/api/logging_syslog_api.py @@ -58,9 +58,9 @@ def __init__(self, api_client=None): 'version_id', 'name', 'placement', - 'format_version', 'response_condition', 'format', + 'format_version', 'tls_ca_cert', 'tls_client_cert', 'tls_client_key', @@ -119,12 +119,12 @@ def __init__(self, api_client=None): (str,), 'placement': (str, none_type,), - 'format_version': - (int,), 'response_condition': (str, none_type,), 'format': (str,), + 'format_version': + (int,), 'tls_ca_cert': (str, none_type,), 'tls_client_cert': @@ -153,9 +153,9 @@ def __init__(self, api_client=None): 'version_id': 'version_id', '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', @@ -173,9 +173,9 @@ def __init__(self, api_client=None): 'version_id': 'path', 'name': 'form', 'placement': 'form', - 'format_version': 'form', 'response_condition': 'form', 'format': 'form', + 'format_version': 'form', 'tls_ca_cert': 'form', 'tls_client_cert': 'form', 'tls_client_key': 'form', @@ -430,9 +430,9 @@ def __init__(self, api_client=None): 'logging_syslog_name', 'name', 'placement', - 'format_version', 'response_condition', 'format', + 'format_version', 'tls_ca_cert', 'tls_client_cert', 'tls_client_key', @@ -494,12 +494,12 @@ def __init__(self, api_client=None): (str,), 'placement': (str, none_type,), - 'format_version': - (int,), 'response_condition': (str, none_type,), 'format': (str,), + 'format_version': + (int,), 'tls_ca_cert': (str, none_type,), 'tls_client_cert': @@ -529,9 +529,9 @@ def __init__(self, api_client=None): 'logging_syslog_name': 'logging_syslog_name', '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', @@ -550,9 +550,9 @@ def __init__(self, api_client=None): 'logging_syslog_name': 'path', 'name': 'form', 'placement': 'form', - 'format_version': 'form', 'response_condition': 'form', 'format': 'form', + 'format_version': 'form', 'tls_ca_cert': 'form', 'tls_client_cert': 'form', 'tls_client_key': 'form', @@ -603,9 +603,9 @@ def create_log_syslog( Keyword Args: name (str): The name for the real-time logging configuration.. [optional] placement (str, none_type): Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. . [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] if omitted the server will use the default value of 2 response_condition (str, none_type): The name of an existing condition in the configured endpoint, or leave blank to always execute.. [optional] format (str): A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats).. [optional] if omitted the server will use the default value of "%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] if omitted the server will use the default value of 2 tls_ca_cert (str, none_type): A secure certificate to authenticate a server with. Must be in PEM format.. [optional] if omitted the server will use the default value of "null" tls_client_cert (str, none_type): The client certificate used to make authenticated requests. Must be in PEM format.. [optional] if omitted the server will use the default value of "null" tls_client_key (str, none_type): The client private key used to make authenticated requests. Must be in PEM format.. [optional] if omitted the server will use the default value of "null" @@ -957,9 +957,9 @@ def update_log_syslog( Keyword Args: name (str): The name for the real-time logging configuration.. [optional] placement (str, none_type): Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. . [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] if omitted the server will use the default value of 2 response_condition (str, none_type): The name of an existing condition in the configured endpoint, or leave blank to always execute.. [optional] format (str): A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats).. [optional] if omitted the server will use the default value of "%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] if omitted the server will use the default value of 2 tls_ca_cert (str, none_type): A secure certificate to authenticate a server with. Must be in PEM format.. [optional] if omitted the server will use the default value of "null" tls_client_cert (str, none_type): The client certificate used to make authenticated requests. Must be in PEM format.. [optional] if omitted the server will use the default value of "null" tls_client_key (str, none_type): The client private key used to make authenticated requests. Must be in PEM format.. [optional] if omitted the server will use the default value of "null" diff --git a/fastly/api/pool_api.py b/fastly/api/pool_api.py index e228a21..8867aec 100644 --- a/fastly/api/pool_api.py +++ b/fastly/api/pool_api.py @@ -23,6 +23,7 @@ ) from fastly.model.inline_response200 import InlineResponse200 from fastly.model.pool_response import PoolResponse +from fastly.model.pool_response_post import PoolResponsePost class PoolApi(object): @@ -36,7 +37,7 @@ def __init__(self, api_client=None): self.api_client = api_client self.create_server_pool_endpoint = _Endpoint( settings={ - 'response_type': (PoolResponse,), + 'response_type': (PoolResponsePost,), 'auth': [ 'token' ], @@ -59,22 +60,28 @@ def __init__(self, api_client=None): 'tls_client_key', 'tls_cert_hostname', 'use_tls', + 'created_at', + 'deleted_at', + 'updated_at', + 'service_id2', + 'version', 'name', 'shield', 'request_condition', - 'max_conn_default', - 'connect_timeout', - 'first_byte_timeout', - 'quorum', 'tls_ciphers', 'tls_sni_hostname', - 'tls_check_cert', 'min_tls_version', 'max_tls_version', 'healthcheck', 'comment', 'type', 'override_host', + 'between_bytes_timeout', + 'connect_timeout', + 'first_byte_timeout', + 'max_conn_default', + 'quorum', + 'tls_check_cert', ], 'required': [ 'service_id', @@ -85,16 +92,19 @@ def __init__(self, api_client=None): 'tls_client_cert', 'tls_client_key', 'tls_cert_hostname', + 'created_at', + 'deleted_at', + 'updated_at', 'shield', 'request_condition', 'tls_ciphers', 'tls_sni_hostname', - 'tls_check_cert', 'min_tls_version', 'max_tls_version', 'healthcheck', 'comment', 'override_host', + 'tls_check_cert', ], 'enum': [ 'use_tls', @@ -140,26 +150,26 @@ def __init__(self, api_client=None): (str, none_type,), 'use_tls': (int,), + 'created_at': + (datetime, none_type,), + 'deleted_at': + (datetime, none_type,), + 'updated_at': + (datetime, none_type,), + 'service_id2': + (str,), + 'version': + (str,), 'name': (str,), 'shield': (str, none_type,), 'request_condition': (str, none_type,), - 'max_conn_default': - (int,), - 'connect_timeout': - (int,), - 'first_byte_timeout': - (int,), - 'quorum': - (int,), 'tls_ciphers': (str, none_type,), 'tls_sni_hostname': (str, none_type,), - 'tls_check_cert': - (int, none_type,), 'min_tls_version': (int, none_type,), 'max_tls_version': @@ -172,6 +182,18 @@ def __init__(self, api_client=None): (str,), 'override_host': (str, none_type,), + 'between_bytes_timeout': + (int,), + 'connect_timeout': + (int,), + 'first_byte_timeout': + (int,), + 'max_conn_default': + (int,), + 'quorum': + (int,), + 'tls_check_cert': + (int, none_type,), }, 'attribute_map': { 'service_id': 'service_id', @@ -181,22 +203,28 @@ def __init__(self, api_client=None): '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_id2': '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', + 'between_bytes_timeout': 'between_bytes_timeout', + 'connect_timeout': 'connect_timeout', + 'first_byte_timeout': 'first_byte_timeout', + 'max_conn_default': 'max_conn_default', + 'quorum': 'quorum', + 'tls_check_cert': 'tls_check_cert', }, 'location_map': { 'service_id': 'path', @@ -206,22 +234,28 @@ def __init__(self, api_client=None): 'tls_client_key': 'form', 'tls_cert_hostname': 'form', 'use_tls': 'form', + 'created_at': 'form', + 'deleted_at': 'form', + 'updated_at': 'form', + 'service_id2': 'form', + 'version': 'form', 'name': 'form', 'shield': 'form', 'request_condition': 'form', - 'max_conn_default': 'form', - 'connect_timeout': 'form', - 'first_byte_timeout': 'form', - 'quorum': 'form', 'tls_ciphers': 'form', 'tls_sni_hostname': 'form', - 'tls_check_cert': 'form', 'min_tls_version': 'form', 'max_tls_version': 'form', 'healthcheck': 'form', 'comment': 'form', 'type': 'form', 'override_host': 'form', + 'between_bytes_timeout': 'form', + 'connect_timeout': 'form', + 'first_byte_timeout': 'form', + 'max_conn_default': 'form', + 'quorum': 'form', + 'tls_check_cert': 'form', }, 'path_params_allow_reserved_map': { }, @@ -468,22 +502,28 @@ def __init__(self, api_client=None): 'tls_client_key', 'tls_cert_hostname', 'use_tls', + 'created_at', + 'deleted_at', + 'updated_at', + 'service_id2', + 'version', 'name', 'shield', 'request_condition', - 'max_conn_default', - 'connect_timeout', - 'first_byte_timeout', - 'quorum', 'tls_ciphers', 'tls_sni_hostname', - 'tls_check_cert', 'min_tls_version', 'max_tls_version', 'healthcheck', 'comment', 'type', 'override_host', + 'between_bytes_timeout', + 'connect_timeout', + 'first_byte_timeout', + 'max_conn_default', + 'quorum', + 'tls_check_cert', ], 'required': [ 'service_id', @@ -495,16 +535,19 @@ def __init__(self, api_client=None): 'tls_client_cert', 'tls_client_key', 'tls_cert_hostname', + 'created_at', + 'deleted_at', + 'updated_at', 'shield', 'request_condition', 'tls_ciphers', 'tls_sni_hostname', - 'tls_check_cert', 'min_tls_version', 'max_tls_version', 'healthcheck', 'comment', 'override_host', + 'tls_check_cert', ], 'enum': [ 'use_tls', @@ -552,26 +595,26 @@ def __init__(self, api_client=None): (str, none_type,), 'use_tls': (int,), + 'created_at': + (datetime, none_type,), + 'deleted_at': + (datetime, none_type,), + 'updated_at': + (datetime, none_type,), + 'service_id2': + (str,), + 'version': + (str,), 'name': (str,), 'shield': (str, none_type,), 'request_condition': (str, none_type,), - 'max_conn_default': - (int,), - 'connect_timeout': - (int,), - 'first_byte_timeout': - (int,), - 'quorum': - (int,), 'tls_ciphers': (str, none_type,), 'tls_sni_hostname': (str, none_type,), - 'tls_check_cert': - (int, none_type,), 'min_tls_version': (int, none_type,), 'max_tls_version': @@ -584,6 +627,18 @@ def __init__(self, api_client=None): (str,), 'override_host': (str, none_type,), + 'between_bytes_timeout': + (int,), + 'connect_timeout': + (int,), + 'first_byte_timeout': + (int,), + 'max_conn_default': + (int,), + 'quorum': + (int,), + 'tls_check_cert': + (int, none_type,), }, 'attribute_map': { 'service_id': 'service_id', @@ -594,22 +649,28 @@ def __init__(self, api_client=None): '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_id2': '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', + 'between_bytes_timeout': 'between_bytes_timeout', + 'connect_timeout': 'connect_timeout', + 'first_byte_timeout': 'first_byte_timeout', + 'max_conn_default': 'max_conn_default', + 'quorum': 'quorum', + 'tls_check_cert': 'tls_check_cert', }, 'location_map': { 'service_id': 'path', @@ -620,22 +681,28 @@ def __init__(self, api_client=None): 'tls_client_key': 'form', 'tls_cert_hostname': 'form', 'use_tls': 'form', + 'created_at': 'form', + 'deleted_at': 'form', + 'updated_at': 'form', + 'service_id2': 'form', + 'version': 'form', 'name': 'form', 'shield': 'form', 'request_condition': 'form', - 'max_conn_default': 'form', - 'connect_timeout': 'form', - 'first_byte_timeout': 'form', - 'quorum': 'form', 'tls_ciphers': 'form', 'tls_sni_hostname': 'form', - 'tls_check_cert': 'form', 'min_tls_version': 'form', 'max_tls_version': 'form', 'healthcheck': 'form', 'comment': 'form', 'type': 'form', 'override_host': 'form', + 'between_bytes_timeout': 'form', + 'connect_timeout': 'form', + 'first_byte_timeout': 'form', + 'max_conn_default': 'form', + 'quorum': 'form', + 'tls_check_cert': 'form', }, 'path_params_allow_reserved_map': { }, @@ -678,22 +745,28 @@ def create_server_pool( tls_client_key (str, none_type): The client private key used to make authenticated requests. Must be in PEM format.. [optional] if omitted the server will use the default value of "null" tls_cert_hostname (str, none_type): The hostname used to verify a server's certificate. It can either be the Common Name (CN) or a Subject Alternative Name (SAN).. [optional] if omitted the server will use the default value of "null" use_tls (int): Whether to use TLS.. [optional] if omitted the server will use the default value of 0 + created_at (datetime, none_type): Date and time in ISO 8601 format.. [optional] + deleted_at (datetime, none_type): Date and time in ISO 8601 format.. [optional] + updated_at (datetime, none_type): Date and time in ISO 8601 format.. [optional] + service_id2 (str): [optional] + version (str): [optional] name (str): Name for the Pool.. [optional] shield (str, none_type): 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] if omitted the server will use the default value of "null" request_condition (str, none_type): Condition which, if met, will select this configuration during a request. Optional.. [optional] - max_conn_default (int): Maximum number of connections. Optional.. [optional] if omitted the server will use the default value of 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] if omitted the server will use the default value of 75 tls_ciphers (str, none_type): 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 (str, none_type): SNI hostname. Optional.. [optional] - tls_check_cert (int, none_type): Be strict on checking TLS certs. Optional.. [optional] min_tls_version (int, none_type): Minimum allowed TLS version on connections to this server. Optional.. [optional] max_tls_version (int, none_type): Maximum allowed TLS version on connections to this server. Optional.. [optional] healthcheck (str, none_type): Name of the healthcheck to use with this pool. Can be empty and could be reused across multiple backend and pools.. [optional] comment (str, none_type): A freeform descriptive note.. [optional] type (str): What type of load balance group to use.. [optional] override_host (str, none_type): 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] if omitted the server will use the default value of "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] if omitted the server will use the default value of 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] if omitted the server will use the default value of 200 + quorum (int): Percentage of capacity (`0-100`) that needs to be operationally available for a pool to be considered up.. [optional] if omitted the server will use the default value of 75 + tls_check_cert (int, none_type): Be strict on checking TLS certs. Optional.. [optional] _return_http_data_only (bool): response data without head status code and headers. Default is True. _preload_content (bool): if False, the urllib3.HTTPResponse object @@ -722,7 +795,7 @@ def create_server_pool( async_req (bool): execute request asynchronously Returns: - PoolResponse + PoolResponsePost If the method is called asynchronously, returns the request thread. """ @@ -1037,22 +1110,28 @@ def update_server_pool( tls_client_key (str, none_type): The client private key used to make authenticated requests. Must be in PEM format.. [optional] if omitted the server will use the default value of "null" tls_cert_hostname (str, none_type): The hostname used to verify a server's certificate. It can either be the Common Name (CN) or a Subject Alternative Name (SAN).. [optional] if omitted the server will use the default value of "null" use_tls (int): Whether to use TLS.. [optional] if omitted the server will use the default value of 0 + created_at (datetime, none_type): Date and time in ISO 8601 format.. [optional] + deleted_at (datetime, none_type): Date and time in ISO 8601 format.. [optional] + updated_at (datetime, none_type): Date and time in ISO 8601 format.. [optional] + service_id2 (str): [optional] + version (str): [optional] name (str): Name for the Pool.. [optional] shield (str, none_type): 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] if omitted the server will use the default value of "null" request_condition (str, none_type): Condition which, if met, will select this configuration during a request. Optional.. [optional] - max_conn_default (int): Maximum number of connections. Optional.. [optional] if omitted the server will use the default value of 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] if omitted the server will use the default value of 75 tls_ciphers (str, none_type): 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 (str, none_type): SNI hostname. Optional.. [optional] - tls_check_cert (int, none_type): Be strict on checking TLS certs. Optional.. [optional] min_tls_version (int, none_type): Minimum allowed TLS version on connections to this server. Optional.. [optional] max_tls_version (int, none_type): Maximum allowed TLS version on connections to this server. Optional.. [optional] healthcheck (str, none_type): Name of the healthcheck to use with this pool. Can be empty and could be reused across multiple backend and pools.. [optional] comment (str, none_type): A freeform descriptive note.. [optional] type (str): What type of load balance group to use.. [optional] override_host (str, none_type): 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] if omitted the server will use the default value of "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] if omitted the server will use the default value of 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] if omitted the server will use the default value of 200 + quorum (int): Percentage of capacity (`0-100`) that needs to be operationally available for a pool to be considered up.. [optional] if omitted the server will use the default value of 75 + tls_check_cert (int, none_type): Be strict on checking TLS certs. Optional.. [optional] _return_http_data_only (bool): response data without head status code and headers. Default is True. _preload_content (bool): if False, the urllib3.HTTPResponse object diff --git a/fastly/api/request_settings_api.py b/fastly/api/request_settings_api.py index 7b824a9..1366e5c 100644 --- a/fastly/api/request_settings_api.py +++ b/fastly/api/request_settings_api.py @@ -326,17 +326,17 @@ def __init__(self, api_client=None): 'version_id', 'request_settings_name', 'action', - 'bypass_busy_wait', 'default_host', + 'hash_keys', + 'name', + 'request_condition', + 'xff', + 'bypass_busy_wait', 'force_miss', 'force_ssl', 'geo_headers', - 'hash_keys', 'max_stale_age', - 'name', - 'request_condition', 'timer_support', - 'xff', ], 'required': [ 'service_id', @@ -383,62 +383,62 @@ def __init__(self, api_client=None): (str,), 'action': (str, none_type,), - 'bypass_busy_wait': - (int,), 'default_host': (str, none_type,), + 'hash_keys': + (str, none_type,), + 'name': + (str,), + 'request_condition': + (str, none_type,), + 'xff': + (str,), + 'bypass_busy_wait': + (int,), 'force_miss': (int,), 'force_ssl': (int,), 'geo_headers': (int,), - 'hash_keys': - (str, none_type,), 'max_stale_age': (int,), - 'name': - (str,), - 'request_condition': - (str, none_type,), 'timer_support': (int,), - 'xff': - (str,), }, 'attribute_map': { 'service_id': 'service_id', 'version_id': 'version_id', 'request_settings_name': 'request_settings_name', 'action': 'action', - 'bypass_busy_wait': 'bypass_busy_wait', 'default_host': 'default_host', + 'hash_keys': 'hash_keys', + 'name': 'name', + 'request_condition': 'request_condition', + 'xff': 'xff', + 'bypass_busy_wait': 'bypass_busy_wait', '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', }, 'location_map': { 'service_id': 'path', 'version_id': 'path', 'request_settings_name': 'path', 'action': 'form', - 'bypass_busy_wait': 'form', 'default_host': 'form', + 'hash_keys': 'form', + 'name': 'form', + 'request_condition': 'form', + 'xff': 'form', + 'bypass_busy_wait': 'form', 'force_miss': 'form', 'force_ssl': 'form', 'geo_headers': 'form', - 'hash_keys': 'form', 'max_stale_age': 'form', - 'name': 'form', - 'request_condition': 'form', 'timer_support': 'form', - 'xff': 'form', }, 'path_params_allow_reserved_map': { }, @@ -815,17 +815,17 @@ def update_request_settings( Keyword Args: action (str, none_type): Allows you to terminate request handling and immediately perform an action.. [optional] - bypass_busy_wait (int): Disable collapsed forwarding, so you don't wait for other objects to origin.. [optional] default_host (str, none_type): Sets the host header.. [optional] + hash_keys (str, none_type): Comma separated list of varnish request object fields that should be in the hash key.. [optional] + name (str): Name for the request settings.. [optional] + request_condition (str, none_type): Condition which, if met, will select this configuration during a request. Optional.. [optional] + xff (str): Short for X-Forwarded-For.. [optional] + 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 (str, none_type): 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 (str): Name for the request settings.. [optional] - request_condition (str, none_type): 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 (str): Short for X-Forwarded-For.. [optional] _return_http_data_only (bool): response data without head status code and headers. Default is True. _preload_content (bool): if False, the urllib3.HTTPResponse object diff --git a/fastly/api_client.py b/fastly/api_client.py index 1c41162..0d702c4 100644 --- a/fastly/api_client.py +++ b/fastly/api_client.py @@ -79,7 +79,7 @@ def __init__(self, configuration=None, header_name=None, header_value=None, self.default_headers[header_name] = header_value self.cookie = cookie # Set default User-Agent. - self.user_agent = 'fastly-py/3.0.2' + self.user_agent = 'fastly-py/4.0.0' # The last observed value of http header Fastly-RateLimit-Remaining self.rate_limit_remaining = DEFAULT_RATELIMIT diff --git a/fastly/configuration.py b/fastly/configuration.py index 7aa455d..5d02a50 100644 --- a/fastly/configuration.py +++ b/fastly/configuration.py @@ -446,7 +446,7 @@ def to_debug_report(self): "OS: {env}\n"\ "Python Version: {pyversion}\n"\ "Version of the API: 1.0.0\n"\ - "SDK Package Version: 3.0.2".\ + "SDK Package Version: 4.0.0".\ format(env=sys.platform, pyversion=sys.version) def get_host_settings(self): diff --git a/fastly/model/cache_setting.py b/fastly/model/cache_setting.py index 6f2c65a..757dad9 100644 --- a/fastly/model/cache_setting.py +++ b/fastly/model/cache_setting.py @@ -88,8 +88,8 @@ def openapi_types(): 'action': (str, none_type,), # noqa: E501 'cache_condition': (str, none_type,), # noqa: E501 'name': (str,), # noqa: E501 - 'stale_ttl': (int,), # noqa: E501 - 'ttl': (int,), # noqa: E501 + 'stale_ttl': (str,), # noqa: E501 + 'ttl': (str,), # noqa: E501 } @cached_property @@ -149,8 +149,8 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 action (str, none_type): 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] # noqa: E501 cache_condition (str, none_type): Name of the cache condition controlling when this configuration applies.. [optional] # noqa: E501 name (str): Name for the cache settings object.. [optional] # noqa: E501 - 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] # noqa: E501 - ttl (int): Maximum time to consider the object fresh in the cache (the cache 'time to live').. [optional] # noqa: E501 + stale_ttl (str): 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] # noqa: E501 + ttl (str): Maximum time to consider the object fresh in the cache (the cache 'time to live').. [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -235,8 +235,8 @@ def __init__(self, *args, **kwargs): # noqa: E501 action (str, none_type): 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] # noqa: E501 cache_condition (str, none_type): Name of the cache condition controlling when this configuration applies.. [optional] # noqa: E501 name (str): Name for the cache settings object.. [optional] # noqa: E501 - 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] # noqa: E501 - ttl (int): Maximum time to consider the object fresh in the cache (the cache 'time to live').. [optional] # noqa: E501 + stale_ttl (str): 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] # noqa: E501 + ttl (str): Maximum time to consider the object fresh in the cache (the cache 'time to live').. [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/fastly/model/cache_setting_response.py b/fastly/model/cache_setting_response.py index a71fb21..4707dd5 100644 --- a/fastly/model/cache_setting_response.py +++ b/fastly/model/cache_setting_response.py @@ -31,10 +31,10 @@ def lazy_import(): from fastly.model.cache_setting import CacheSetting - from fastly.model.service_id_and_version import ServiceIdAndVersion + from fastly.model.service_id_and_version_string import ServiceIdAndVersionString from fastly.model.timestamps import Timestamps globals()['CacheSetting'] = CacheSetting - globals()['ServiceIdAndVersion'] = ServiceIdAndVersion + globals()['ServiceIdAndVersionString'] = ServiceIdAndVersionString globals()['Timestamps'] = Timestamps @@ -98,10 +98,10 @@ def openapi_types(): 'action': (str, none_type,), # noqa: E501 'cache_condition': (str, none_type,), # noqa: E501 'name': (str,), # noqa: E501 - 'stale_ttl': (int,), # noqa: E501 - 'ttl': (int,), # noqa: E501 + 'stale_ttl': (str,), # noqa: E501 + 'ttl': (str,), # noqa: E501 'service_id': (str,), # noqa: E501 - 'version': (int,), # noqa: E501 + 'version': (str,), # noqa: E501 'created_at': (datetime, none_type,), # noqa: E501 'deleted_at': (datetime, none_type,), # noqa: E501 'updated_at': (datetime, none_type,), # noqa: E501 @@ -172,10 +172,10 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 action (str, none_type): 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] # noqa: E501 cache_condition (str, none_type): Name of the cache condition controlling when this configuration applies.. [optional] # noqa: E501 name (str): Name for the cache settings object.. [optional] # noqa: E501 - 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] # noqa: E501 - ttl (int): Maximum time to consider the object fresh in the cache (the cache 'time to live').. [optional] # noqa: E501 + stale_ttl (str): 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] # noqa: E501 + ttl (str): Maximum time to consider the object fresh in the cache (the cache 'time to live').. [optional] # noqa: E501 service_id (str): [optional] # noqa: E501 - version (int): [optional] # noqa: E501 + version (str): [optional] # noqa: E501 created_at (datetime, none_type): Date and time in ISO 8601 format.. [optional] # noqa: E501 deleted_at (datetime, none_type): Date and time in ISO 8601 format.. [optional] # noqa: E501 updated_at (datetime, none_type): Date and time in ISO 8601 format.. [optional] # noqa: E501 @@ -281,10 +281,10 @@ def __init__(self, *args, **kwargs): # noqa: E501 action (str, none_type): 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] # noqa: E501 cache_condition (str, none_type): Name of the cache condition controlling when this configuration applies.. [optional] # noqa: E501 name (str): Name for the cache settings object.. [optional] # noqa: E501 - 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] # noqa: E501 - ttl (int): Maximum time to consider the object fresh in the cache (the cache 'time to live').. [optional] # noqa: E501 + stale_ttl (str): 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] # noqa: E501 + ttl (str): Maximum time to consider the object fresh in the cache (the cache 'time to live').. [optional] # noqa: E501 service_id (str): [optional] # noqa: E501 - version (int): [optional] # noqa: E501 + version (str): [optional] # noqa: E501 created_at (datetime, none_type): Date and time in ISO 8601 format.. [optional] # noqa: E501 deleted_at (datetime, none_type): Date and time in ISO 8601 format.. [optional] # noqa: E501 updated_at (datetime, none_type): Date and time in ISO 8601 format.. [optional] # noqa: E501 @@ -354,7 +354,7 @@ def _composed_schemas(): ], 'allOf': [ CacheSetting, - ServiceIdAndVersion, + ServiceIdAndVersionString, Timestamps, ], 'oneOf': [ diff --git a/fastly/model/domain_check_response.py b/fastly/model/domain_check_response.py index 60b5aac..c911ab3 100644 --- a/fastly/model/domain_check_response.py +++ b/fastly/model/domain_check_response.py @@ -29,10 +29,6 @@ from fastly.exceptions import ApiAttributeError -def lazy_import(): - from fastly.model.domain_check_item import DomainCheckItem - globals()['DomainCheckItem'] = DomainCheckItem - class DomainCheckResponse(ModelSimple): """NOTE: This class is auto generated. @@ -72,9 +68,8 @@ def openapi_types(): openapi_types (dict): The key is attribute name and the value is attribute type. """ - lazy_import() return { - 'value': ([DomainCheckItem],), + 'value': ([bool, date, datetime, dict, float, int, list, str, none_type],), } @cached_property @@ -104,10 +99,10 @@ def __init__(self, *args, **kwargs): Note that value can be passed either in args or in kwargs, but not in both. Args: - args[0] ([DomainCheckItem]): # noqa: E501 + args[0] ([bool, date, datetime, dict, float, int, list, str, none_type]): # noqa: E501 Keyword Args: - value ([DomainCheckItem]): # noqa: E501 + value ([bool, date, datetime, dict, float, int, list, str, none_type]): # noqa: E501 _check_type (bool): if True, values for parameters in openapi_types will be type checked and a TypeError will be raised if the wrong type is input. @@ -194,10 +189,10 @@ def _from_openapi_data(cls, *args, **kwargs): Note that value can be passed either in args or in kwargs, but not in both. Args: - args[0] ([DomainCheckItem]): # noqa: E501 + args[0] ([bool, date, datetime, dict, float, int, list, str, none_type]): # noqa: E501 Keyword Args: - value ([DomainCheckItem]): # noqa: E501 + value ([bool, date, datetime, dict, float, int, list, str, none_type]): # noqa: E501 _check_type (bool): if True, values for parameters in openapi_types will be type checked and a TypeError will be raised if the wrong type is input. diff --git a/fastly/model/gzip_response.py b/fastly/model/gzip_response.py index fe2112a..916d1a3 100644 --- a/fastly/model/gzip_response.py +++ b/fastly/model/gzip_response.py @@ -31,10 +31,10 @@ def lazy_import(): from fastly.model.gzip import Gzip - from fastly.model.service_id_and_version import ServiceIdAndVersion + from fastly.model.service_id_and_version_string import ServiceIdAndVersionString from fastly.model.timestamps import Timestamps globals()['Gzip'] = Gzip - globals()['ServiceIdAndVersion'] = ServiceIdAndVersion + globals()['ServiceIdAndVersionString'] = ServiceIdAndVersionString globals()['Timestamps'] = Timestamps @@ -94,7 +94,7 @@ def openapi_types(): 'extensions': (str, none_type,), # noqa: E501 'name': (str,), # noqa: E501 'service_id': (str,), # noqa: E501 - 'version': (int,), # noqa: E501 + 'version': (str,), # noqa: E501 'created_at': (datetime, none_type,), # noqa: E501 'deleted_at': (datetime, none_type,), # noqa: E501 'updated_at': (datetime, none_type,), # noqa: E501 @@ -166,7 +166,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 extensions (str, none_type): Space-separated list of file extensions to compress. If you omit this field a default list will be used.. [optional] # noqa: E501 name (str): Name of the gzip configuration.. [optional] # noqa: E501 service_id (str): [optional] # noqa: E501 - version (int): [optional] # noqa: E501 + version (str): [optional] # noqa: E501 created_at (datetime, none_type): Date and time in ISO 8601 format.. [optional] # noqa: E501 deleted_at (datetime, none_type): Date and time in ISO 8601 format.. [optional] # noqa: E501 updated_at (datetime, none_type): Date and time in ISO 8601 format.. [optional] # noqa: E501 @@ -274,7 +274,7 @@ def __init__(self, *args, **kwargs): # noqa: E501 extensions (str, none_type): Space-separated list of file extensions to compress. If you omit this field a default list will be used.. [optional] # noqa: E501 name (str): Name of the gzip configuration.. [optional] # noqa: E501 service_id (str): [optional] # noqa: E501 - version (int): [optional] # noqa: E501 + version (str): [optional] # noqa: E501 created_at (datetime, none_type): Date and time in ISO 8601 format.. [optional] # noqa: E501 deleted_at (datetime, none_type): Date and time in ISO 8601 format.. [optional] # noqa: E501 updated_at (datetime, none_type): Date and time in ISO 8601 format.. [optional] # noqa: E501 @@ -344,7 +344,7 @@ def _composed_schemas(): ], 'allOf': [ Gzip, - ServiceIdAndVersion, + ServiceIdAndVersionString, Timestamps, ], 'oneOf': [ diff --git a/fastly/model/header.py b/fastly/model/header.py index a260af0..519cdff 100644 --- a/fastly/model/header.py +++ b/fastly/model/header.py @@ -100,9 +100,7 @@ def openapi_types(): 'action': (str,), # noqa: E501 'cache_condition': (str, none_type,), # noqa: E501 'dst': (str,), # noqa: E501 - 'ignore_if_set': (int,), # noqa: E501 'name': (str,), # noqa: E501 - 'priority': (int,), # noqa: E501 'regex': (str, none_type,), # noqa: E501 'request_condition': (str, none_type,), # noqa: E501 'response_condition': (str, none_type,), # noqa: E501 @@ -120,9 +118,7 @@ def discriminator(): 'action': 'action', # noqa: E501 'cache_condition': 'cache_condition', # noqa: E501 'dst': 'dst', # noqa: E501 - 'ignore_if_set': 'ignore_if_set', # noqa: E501 'name': 'name', # noqa: E501 - 'priority': 'priority', # noqa: E501 'regex': 'regex', # noqa: E501 'request_condition': 'request_condition', # noqa: E501 'response_condition': 'response_condition', # noqa: E501 @@ -175,9 +171,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 action (str): Accepts a string value.. [optional] # noqa: E501 cache_condition (str, none_type): Name of the cache condition controlling when this configuration applies.. [optional] # noqa: E501 dst (str): Header to set.. [optional] # noqa: E501 - ignore_if_set (int): Don't add the header if it is added already. Only applies to 'set' action.. [optional] # noqa: E501 name (str): A handle to refer to this Header object.. [optional] # noqa: E501 - priority (int): Priority determines execution order. Lower numbers execute first.. [optional] if omitted the server will use the default value of 100 # noqa: E501 regex (str, none_type): Regular expression to use. Only applies to `regex` and `regex_repeat` actions.. [optional] # noqa: E501 request_condition (str, none_type): Condition which, if met, will select this configuration during a request. Optional.. [optional] # noqa: E501 response_condition (str, none_type): Optional name of a response condition to apply.. [optional] # noqa: E501 @@ -268,9 +262,7 @@ def __init__(self, *args, **kwargs): # noqa: E501 action (str): Accepts a string value.. [optional] # noqa: E501 cache_condition (str, none_type): Name of the cache condition controlling when this configuration applies.. [optional] # noqa: E501 dst (str): Header to set.. [optional] # noqa: E501 - ignore_if_set (int): Don't add the header if it is added already. Only applies to 'set' action.. [optional] # noqa: E501 name (str): A handle to refer to this Header object.. [optional] # noqa: E501 - priority (int): Priority determines execution order. Lower numbers execute first.. [optional] if omitted the server will use the default value of 100 # noqa: E501 regex (str, none_type): Regular expression to use. Only applies to `regex` and `regex_repeat` actions.. [optional] # noqa: E501 request_condition (str, none_type): Condition which, if met, will select this configuration during a request. Optional.. [optional] # noqa: E501 response_condition (str, none_type): Optional name of a response condition to apply.. [optional] # noqa: E501 diff --git a/fastly/model/header_response.py b/fastly/model/header_response.py index 7dc26ed..e4a9489 100644 --- a/fastly/model/header_response.py +++ b/fastly/model/header_response.py @@ -31,11 +31,13 @@ def lazy_import(): from fastly.model.header import Header - from fastly.model.service_id_and_version import ServiceIdAndVersion + from fastly.model.header_response_additional import HeaderResponseAdditional + from fastly.model.service_id_and_version_string import ServiceIdAndVersionString from fastly.model.str_none_type import StrNoneType from fastly.model.timestamps import Timestamps globals()['Header'] = Header - globals()['ServiceIdAndVersion'] = ServiceIdAndVersion + globals()['HeaderResponseAdditional'] = HeaderResponseAdditional + globals()['ServiceIdAndVersionString'] = ServiceIdAndVersionString globals()['Timestamps'] = Timestamps globals()['str, none_type'] = str, none_type @@ -106,17 +108,17 @@ def openapi_types(): 'action': (str,), # noqa: E501 'cache_condition': (str, none_type,), # noqa: E501 'dst': (str,), # noqa: E501 - 'ignore_if_set': (int,), # noqa: E501 'name': (str,), # noqa: E501 - 'priority': (int,), # noqa: E501 'regex': (str, none_type,), # noqa: E501 'request_condition': (str, none_type,), # noqa: E501 'response_condition': (str, none_type,), # noqa: E501 'src': (str, none_type,), # noqa: E501 'substitution': (str, none_type,), # noqa: E501 'type': (str,), # noqa: E501 + 'ignore_if_set': (str,), # noqa: E501 + 'priority': (str,), # noqa: E501 'service_id': (str,), # noqa: E501 - 'version': (int,), # noqa: E501 + 'version': (str,), # noqa: E501 'created_at': (datetime, none_type,), # noqa: E501 'deleted_at': (datetime, none_type,), # noqa: E501 'updated_at': (datetime, none_type,), # noqa: E501 @@ -131,15 +133,15 @@ def discriminator(): 'action': 'action', # noqa: E501 'cache_condition': 'cache_condition', # noqa: E501 'dst': 'dst', # noqa: E501 - 'ignore_if_set': 'ignore_if_set', # noqa: E501 'name': 'name', # noqa: E501 - 'priority': 'priority', # noqa: E501 'regex': 'regex', # noqa: E501 'request_condition': 'request_condition', # noqa: E501 'response_condition': 'response_condition', # noqa: E501 'src': 'src', # noqa: E501 'substitution': 'substitution', # noqa: E501 'type': 'type', # noqa: E501 + 'ignore_if_set': 'ignore_if_set', # noqa: E501 + 'priority': 'priority', # noqa: E501 'service_id': 'service_id', # noqa: E501 'version': 'version', # noqa: E501 'created_at': 'created_at', # noqa: E501 @@ -194,17 +196,17 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 action (str): Accepts a string value.. [optional] # noqa: E501 cache_condition (str, none_type): Name of the cache condition controlling when this configuration applies.. [optional] # noqa: E501 dst (str): Header to set.. [optional] # noqa: E501 - ignore_if_set (int): Don't add the header if it is added already. Only applies to 'set' action.. [optional] # noqa: E501 name (str): A handle to refer to this Header object.. [optional] # noqa: E501 - priority (int): Priority determines execution order. Lower numbers execute first.. [optional] if omitted the server will use the default value of 100 # noqa: E501 regex (str, none_type): Regular expression to use. Only applies to `regex` and `regex_repeat` actions.. [optional] # noqa: E501 request_condition (str, none_type): Condition which, if met, will select this configuration during a request. Optional.. [optional] # noqa: E501 response_condition (str, none_type): Optional name of a response condition to apply.. [optional] # noqa: E501 src (str, none_type): Variable to be used as a source for the header content. Does not apply to `delete` action.. [optional] # noqa: E501 substitution (str, none_type): Value to substitute in place of regular expression. Only applies to `regex` and `regex_repeat` actions.. [optional] # noqa: E501 type (str): Accepts a string value.. [optional] # noqa: E501 + ignore_if_set (str): Don't add the header if it is added already. Only applies to 'set' action. Numerical value (\"0\" = false, \"1\" = true). [optional] # noqa: E501 + priority (str): Priority determines execution order. Lower numbers execute first.. [optional] if omitted the server will use the default value of "100" # noqa: E501 service_id (str): [optional] # noqa: E501 - version (int): [optional] # noqa: E501 + version (str): [optional] # noqa: E501 created_at (datetime, none_type): Date and time in ISO 8601 format.. [optional] # noqa: E501 deleted_at (datetime, none_type): Date and time in ISO 8601 format.. [optional] # noqa: E501 updated_at (datetime, none_type): Date and time in ISO 8601 format.. [optional] # noqa: E501 @@ -310,17 +312,17 @@ def __init__(self, *args, **kwargs): # noqa: E501 action (str): Accepts a string value.. [optional] # noqa: E501 cache_condition (str, none_type): Name of the cache condition controlling when this configuration applies.. [optional] # noqa: E501 dst (str): Header to set.. [optional] # noqa: E501 - ignore_if_set (int): Don't add the header if it is added already. Only applies to 'set' action.. [optional] # noqa: E501 name (str): A handle to refer to this Header object.. [optional] # noqa: E501 - priority (int): Priority determines execution order. Lower numbers execute first.. [optional] if omitted the server will use the default value of 100 # noqa: E501 regex (str, none_type): Regular expression to use. Only applies to `regex` and `regex_repeat` actions.. [optional] # noqa: E501 request_condition (str, none_type): Condition which, if met, will select this configuration during a request. Optional.. [optional] # noqa: E501 response_condition (str, none_type): Optional name of a response condition to apply.. [optional] # noqa: E501 src (str, none_type): Variable to be used as a source for the header content. Does not apply to `delete` action.. [optional] # noqa: E501 substitution (str, none_type): Value to substitute in place of regular expression. Only applies to `regex` and `regex_repeat` actions.. [optional] # noqa: E501 type (str): Accepts a string value.. [optional] # noqa: E501 + ignore_if_set (str): Don't add the header if it is added already. Only applies to 'set' action. Numerical value (\"0\" = false, \"1\" = true). [optional] # noqa: E501 + priority (str): Priority determines execution order. Lower numbers execute first.. [optional] if omitted the server will use the default value of "100" # noqa: E501 service_id (str): [optional] # noqa: E501 - version (int): [optional] # noqa: E501 + version (str): [optional] # noqa: E501 created_at (datetime, none_type): Date and time in ISO 8601 format.. [optional] # noqa: E501 deleted_at (datetime, none_type): Date and time in ISO 8601 format.. [optional] # noqa: E501 updated_at (datetime, none_type): Date and time in ISO 8601 format.. [optional] # noqa: E501 @@ -390,7 +392,8 @@ def _composed_schemas(): ], 'allOf': [ Header, - ServiceIdAndVersion, + HeaderResponseAdditional, + ServiceIdAndVersionString, Timestamps, ], 'oneOf': [ diff --git a/fastly/model/tls_subscription_response_data_all_of.py b/fastly/model/header_response_additional.py similarity index 91% rename from fastly/model/tls_subscription_response_data_all_of.py rename to fastly/model/header_response_additional.py index 731ba27..81ccbaf 100644 --- a/fastly/model/tls_subscription_response_data_all_of.py +++ b/fastly/model/header_response_additional.py @@ -29,12 +29,8 @@ from fastly.exceptions import ApiAttributeError -def lazy_import(): - from fastly.model.tls_subscription_response_attributes import TlsSubscriptionResponseAttributes - globals()['TlsSubscriptionResponseAttributes'] = TlsSubscriptionResponseAttributes - -class TlsSubscriptionResponseDataAllOf(ModelNormal): +class HeaderResponseAdditional(ModelNormal): """NOTE: This class is auto generated. Do not edit the class manually. @@ -68,7 +64,6 @@ def additional_properties_type(): This must be a method because a model may have properties that are of type self, this must run after the class is loaded """ - lazy_import() return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 _nullable = False @@ -83,10 +78,9 @@ def openapi_types(): openapi_types (dict): The key is attribute name and the value is attribute type. """ - lazy_import() return { - 'id': (str,), # noqa: E501 - 'attributes': (TlsSubscriptionResponseAttributes,), # noqa: E501 + 'ignore_if_set': (str,), # noqa: E501 + 'priority': (str,), # noqa: E501 } @cached_property @@ -95,12 +89,11 @@ def discriminator(): attribute_map = { - 'id': 'id', # noqa: E501 - 'attributes': 'attributes', # noqa: E501 + 'ignore_if_set': 'ignore_if_set', # noqa: E501 + 'priority': 'priority', # noqa: E501 } read_only_vars = { - 'id', # noqa: E501 } _composed_schemas = {} @@ -108,7 +101,7 @@ def discriminator(): @classmethod @convert_js_args_to_python_args def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 - """TlsSubscriptionResponseDataAllOf - a model defined in OpenAPI + """HeaderResponseAdditional - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -141,8 +134,8 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - id (str): [optional] # noqa: E501 - attributes (TlsSubscriptionResponseAttributes): [optional] # noqa: E501 + ignore_if_set (str): Don't add the header if it is added already. Only applies to 'set' action. Numerical value (\"0\" = false, \"1\" = true). [optional] # noqa: E501 + priority (str): Priority determines execution order. Lower numbers execute first.. [optional] if omitted the server will use the default value of "100" # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -191,7 +184,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 @convert_js_args_to_python_args def __init__(self, *args, **kwargs): # noqa: E501 - """TlsSubscriptionResponseDataAllOf - a model defined in OpenAPI + """HeaderResponseAdditional - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -224,8 +217,8 @@ def __init__(self, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - id (str): [optional] # noqa: E501 - attributes (TlsSubscriptionResponseAttributes): [optional] # noqa: E501 + ignore_if_set (str): Don't add the header if it is added already. Only applies to 'set' action. Numerical value (\"0\" = false, \"1\" = true). [optional] # noqa: E501 + priority (str): Priority determines execution order. Lower numbers execute first.. [optional] if omitted the server will use the default value of "100" # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/fastly/model/logging_azureblob.py b/fastly/model/logging_azureblob.py deleted file mode 100644 index 5bd6b0b..0000000 --- a/fastly/model/logging_azureblob.py +++ /dev/null @@ -1,400 +0,0 @@ -""" - Fastly API - - Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://developer.fastly.com/reference/api/) # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Contact: oss@fastly.com -""" - - -import re # noqa: F401 -import sys # noqa: F401 - -from fastly.model_utils import ( # noqa: F401 - ApiTypeError, - ModelComposed, - ModelNormal, - ModelSimple, - cached_property, - change_keys_js_to_python, - convert_js_args_to_python_args, - date, - datetime, - file_type, - none_type, - validate_get_composed_info, - OpenApiModel -) -from fastly.exceptions import ApiAttributeError - - -def lazy_import(): - from fastly.model.logging_azureblob_all_of import LoggingAzureblobAllOf - from fastly.model.logging_common import LoggingCommon - from fastly.model.logging_generic_common import LoggingGenericCommon - globals()['LoggingAzureblobAllOf'] = LoggingAzureblobAllOf - globals()['LoggingCommon'] = LoggingCommon - globals()['LoggingGenericCommon'] = LoggingGenericCommon - - -class LoggingAzureblob(ModelComposed): - """NOTE: This class is auto generated. - Do not edit the class manually. - - Attributes: - allowed_values (dict): The key is the tuple path to the attribute - and the for var_name this is (var_name,). The value is a dict - with a capitalized key describing the allowed value and an allowed - value. These dicts store the allowed enum values. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - discriminator_value_class_map (dict): A dict to go from the discriminator - variable value to the discriminator class name. - validations (dict): The key is the tuple path to the attribute - and the for var_name this is (var_name,). The value is a dict - that stores validations for max_length, min_length, max_items, - min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, - inclusive_minimum, and regex. - additional_properties_type (tuple): A tuple of classes accepted - as additional properties values. - """ - - allowed_values = { - ('placement',): { - 'None': None, - 'NONE': "none", - 'WAF_DEBUG': "waf_debug", - 'NULL': "null", - }, - ('format_version',): { - 'v1': 1, - 'v2': 2, - }, - ('message_type',): { - 'CLASSIC': "classic", - 'LOGGLY': "loggly", - 'LOGPLEX': "logplex", - 'BLANK': "blank", - }, - ('compression_codec',): { - 'ZSTD': "zstd", - 'SNAPPY': "snappy", - 'GZIP': "gzip", - }, - } - - validations = { - ('file_max_bytes',): { - 'inclusive_minimum': 1048576, - }, - } - - @cached_property - def additional_properties_type(): - """ - This must be a method because a model may have properties that are - of type self, this must run after the class is loaded - """ - lazy_import() - return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 - - _nullable = False - - @cached_property - def openapi_types(): - """ - This must be a method because a model may have properties that are - of type self, this must run after the class is loaded - - Returns - openapi_types (dict): The key is attribute name - and the value is attribute type. - """ - lazy_import() - return { - 'name': (str,), # noqa: E501 - 'placement': (str, none_type,), # noqa: E501 - 'format_version': (int,), # noqa: E501 - 'response_condition': (str, none_type,), # noqa: E501 - 'format': (str,), # noqa: E501 - 'message_type': (str,), # noqa: E501 - 'timestamp_format': (str, none_type,), # noqa: E501 - 'period': (int,), # noqa: E501 - 'gzip_level': (int,), # noqa: E501 - 'compression_codec': (str,), # noqa: E501 - 'path': (str, none_type,), # noqa: E501 - 'account_name': (str,), # noqa: E501 - 'container': (str,), # noqa: E501 - 'sas_token': (str,), # noqa: E501 - 'public_key': (str, none_type,), # noqa: E501 - 'file_max_bytes': (int,), # noqa: E501 - } - - @cached_property - def discriminator(): - return None - - - attribute_map = { - 'name': 'name', # noqa: E501 - 'placement': 'placement', # noqa: E501 - 'format_version': 'format_version', # noqa: E501 - 'response_condition': 'response_condition', # noqa: E501 - 'format': 'format', # noqa: E501 - 'message_type': 'message_type', # noqa: E501 - 'timestamp_format': 'timestamp_format', # noqa: E501 - 'period': 'period', # noqa: E501 - 'gzip_level': 'gzip_level', # noqa: E501 - 'compression_codec': 'compression_codec', # noqa: E501 - 'path': 'path', # noqa: E501 - 'account_name': 'account_name', # noqa: E501 - 'container': 'container', # noqa: E501 - 'sas_token': 'sas_token', # noqa: E501 - 'public_key': 'public_key', # noqa: E501 - 'file_max_bytes': 'file_max_bytes', # noqa: E501 - } - - read_only_vars = { - 'timestamp_format', # noqa: E501 - } - - @classmethod - @convert_js_args_to_python_args - def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 - """LoggingAzureblob - a model defined in OpenAPI - - Keyword Args: - _check_type (bool): if True, values for parameters in openapi_types - will be type checked and a TypeError will be - raised if the wrong type is input. - Defaults to True - _path_to_item (tuple/list): This is a list of keys or values to - drill down to the model in received_data - when deserializing a response - _spec_property_naming (bool): True if the variable names in the input data - are serialized names, as specified in the OpenAPI document. - False if the variable names in the input data - are pythonic names, e.g. snake case (default) - _configuration (Configuration): the instance to use when - deserializing a file_type parameter. - If passed, type conversion is attempted - If omitted no type conversion is done. - _visited_composed_classes (tuple): This stores a tuple of - classes that we have traveled through so that - if we see that class again we will not use its - discriminator again. - When traveling through a discriminator, the - composed schema that is - is traveled through is added to this set. - For example if Animal has a discriminator - petType and we pass in "Dog", and the class Dog - allOf includes Animal, we move through Animal - once using the discriminator, and pick Dog. - Then in Dog, we will make an instance of the - Animal class but this time we won't travel - through its discriminator because we passed in - _visited_composed_classes = (Animal,) - name (str): The name for the real-time logging configuration.. [optional] # noqa: E501 - placement (str, none_type): Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. . [optional] # noqa: E501 - 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] if omitted the server will use the default value of 2 # noqa: E501 - response_condition (str, none_type): The name of an existing condition in the configured endpoint, or leave blank to always execute.. [optional] # noqa: E501 - format (str): A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats).. [optional] if omitted the server will use the default value of "%h %l %u %t "%r" %>s %b" # noqa: E501 - message_type (str): How the message should be formatted.. [optional] if omitted the server will use the default value of "classic" # noqa: E501 - timestamp_format (str, none_type): A timestamp format. [optional] # noqa: E501 - period (int): How frequently log files are finalized so they can be available for reading (in seconds).. [optional] if omitted the server will use the default value of 3600 # noqa: E501 - 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] if omitted the server will use the default value of 0 # noqa: E501 - compression_codec (str): The codec used for compressing your logs. 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] # noqa: E501 - path (str, none_type): The path to upload logs to.. [optional] if omitted the server will use the default value of "null" # noqa: E501 - account_name (str): The unique Azure Blob Storage namespace in which your data objects are stored. Required.. [optional] # noqa: E501 - container (str): The name of the Azure Blob Storage container in which to store logs. Required.. [optional] # noqa: E501 - sas_token (str): 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] # noqa: E501 - public_key (str, none_type): A PGP public key that Fastly will use to encrypt your log files before writing them to disk.. [optional] if omitted the server will use the default value of "null" # noqa: E501 - 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] # noqa: E501 - """ - - _check_type = kwargs.pop('_check_type', True) - _spec_property_naming = kwargs.pop('_spec_property_naming', False) - _path_to_item = kwargs.pop('_path_to_item', ()) - _configuration = kwargs.pop('_configuration', None) - _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) - - self = super(OpenApiModel, cls).__new__(cls) - - if args: - raise ApiTypeError( - "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( - args, - self.__class__.__name__, - ), - path_to_item=_path_to_item, - valid_classes=(self.__class__,), - ) - - self._data_store = {} - self._check_type = _check_type - self._spec_property_naming = _spec_property_naming - self._path_to_item = _path_to_item - self._configuration = _configuration - self._visited_composed_classes = _visited_composed_classes + (self.__class__,) - - constant_args = { - '_check_type': _check_type, - '_path_to_item': _path_to_item, - '_spec_property_naming': _spec_property_naming, - '_configuration': _configuration, - '_visited_composed_classes': self._visited_composed_classes, - } - composed_info = validate_get_composed_info( - constant_args, kwargs, self) - self._composed_instances = composed_info[0] - self._var_name_to_model_instances = composed_info[1] - self._additional_properties_model_instances = composed_info[2] - discarded_args = composed_info[3] - - for var_name, var_value in kwargs.items(): - if var_name in discarded_args and \ - self._configuration is not None and \ - self._configuration.discard_unknown_keys and \ - self._additional_properties_model_instances: - # discard variable. - continue - setattr(self, var_name, var_value) - - return self - - required_properties = set([ - '_data_store', - '_check_type', - '_spec_property_naming', - '_path_to_item', - '_configuration', - '_visited_composed_classes', - '_composed_instances', - '_var_name_to_model_instances', - '_additional_properties_model_instances', - ]) - - @convert_js_args_to_python_args - def __init__(self, *args, **kwargs): # noqa: E501 - """LoggingAzureblob - a model defined in OpenAPI - - Keyword Args: - _check_type (bool): if True, values for parameters in openapi_types - will be type checked and a TypeError will be - raised if the wrong type is input. - Defaults to True - _path_to_item (tuple/list): This is a list of keys or values to - drill down to the model in received_data - when deserializing a response - _spec_property_naming (bool): True if the variable names in the input data - are serialized names, as specified in the OpenAPI document. - False if the variable names in the input data - are pythonic names, e.g. snake case (default) - _configuration (Configuration): the instance to use when - deserializing a file_type parameter. - If passed, type conversion is attempted - If omitted no type conversion is done. - _visited_composed_classes (tuple): This stores a tuple of - classes that we have traveled through so that - if we see that class again we will not use its - discriminator again. - When traveling through a discriminator, the - composed schema that is - is traveled through is added to this set. - For example if Animal has a discriminator - petType and we pass in "Dog", and the class Dog - allOf includes Animal, we move through Animal - once using the discriminator, and pick Dog. - Then in Dog, we will make an instance of the - Animal class but this time we won't travel - through its discriminator because we passed in - _visited_composed_classes = (Animal,) - name (str): The name for the real-time logging configuration.. [optional] # noqa: E501 - placement (str, none_type): Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. . [optional] # noqa: E501 - 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] if omitted the server will use the default value of 2 # noqa: E501 - response_condition (str, none_type): The name of an existing condition in the configured endpoint, or leave blank to always execute.. [optional] # noqa: E501 - format (str): A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats).. [optional] if omitted the server will use the default value of "%h %l %u %t "%r" %>s %b" # noqa: E501 - message_type (str): How the message should be formatted.. [optional] if omitted the server will use the default value of "classic" # noqa: E501 - timestamp_format (str, none_type): A timestamp format. [optional] # noqa: E501 - period (int): How frequently log files are finalized so they can be available for reading (in seconds).. [optional] if omitted the server will use the default value of 3600 # noqa: E501 - 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] if omitted the server will use the default value of 0 # noqa: E501 - compression_codec (str): The codec used for compressing your logs. 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] # noqa: E501 - path (str, none_type): The path to upload logs to.. [optional] if omitted the server will use the default value of "null" # noqa: E501 - account_name (str): The unique Azure Blob Storage namespace in which your data objects are stored. Required.. [optional] # noqa: E501 - container (str): The name of the Azure Blob Storage container in which to store logs. Required.. [optional] # noqa: E501 - sas_token (str): 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] # noqa: E501 - public_key (str, none_type): A PGP public key that Fastly will use to encrypt your log files before writing them to disk.. [optional] if omitted the server will use the default value of "null" # noqa: E501 - 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] # noqa: E501 - """ - - _check_type = kwargs.pop('_check_type', True) - _spec_property_naming = kwargs.pop('_spec_property_naming', False) - _path_to_item = kwargs.pop('_path_to_item', ()) - _configuration = kwargs.pop('_configuration', None) - _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) - - if args: - raise ApiTypeError( - "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( - args, - self.__class__.__name__, - ), - path_to_item=_path_to_item, - valid_classes=(self.__class__,), - ) - - self._data_store = {} - self._check_type = _check_type - self._spec_property_naming = _spec_property_naming - self._path_to_item = _path_to_item - self._configuration = _configuration - self._visited_composed_classes = _visited_composed_classes + (self.__class__,) - - constant_args = { - '_check_type': _check_type, - '_path_to_item': _path_to_item, - '_spec_property_naming': _spec_property_naming, - '_configuration': _configuration, - '_visited_composed_classes': self._visited_composed_classes, - } - composed_info = validate_get_composed_info( - constant_args, kwargs, self) - self._composed_instances = composed_info[0] - self._var_name_to_model_instances = composed_info[1] - self._additional_properties_model_instances = composed_info[2] - discarded_args = composed_info[3] - - for var_name, var_value in kwargs.items(): - if var_name in discarded_args and \ - self._configuration is not None and \ - self._configuration.discard_unknown_keys and \ - self._additional_properties_model_instances: - # discard variable. - continue - setattr(self, var_name, var_value) - if var_name in self.read_only_vars: - raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " - f"class with read only attributes.") - - @cached_property - def _composed_schemas(): - # we need this here to make our import statements work - # we must store _composed_schemas in here so the code is only run - # when we invoke this method. If we kept this at the class - # level we would get an error because the class level - # code would be run when this module is imported, and these composed - # classes don't exist yet because their module has not finished - # loading - lazy_import() - return { - 'anyOf': [ - ], - 'allOf': [ - LoggingAzureblobAllOf, - LoggingCommon, - LoggingGenericCommon, - ], - 'oneOf': [ - ], - } diff --git a/fastly/model/logging_azureblob_all_of.py b/fastly/model/logging_azureblob_additional.py similarity index 98% rename from fastly/model/logging_azureblob_all_of.py rename to fastly/model/logging_azureblob_additional.py index f4f2f81..5df02bd 100644 --- a/fastly/model/logging_azureblob_all_of.py +++ b/fastly/model/logging_azureblob_additional.py @@ -30,7 +30,7 @@ -class LoggingAzureblobAllOf(ModelNormal): +class LoggingAzureblobAdditional(ModelNormal): """NOTE: This class is auto generated. Do not edit the class manually. @@ -112,7 +112,7 @@ def discriminator(): @classmethod @convert_js_args_to_python_args def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 - """LoggingAzureblobAllOf - a model defined in OpenAPI + """LoggingAzureblobAdditional - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -199,7 +199,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 @convert_js_args_to_python_args def __init__(self, *args, **kwargs): # noqa: E501 - """LoggingAzureblobAllOf - a model defined in OpenAPI + """LoggingAzureblobAdditional - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types diff --git a/fastly/model/logging_azureblob_response.py b/fastly/model/logging_azureblob_response.py index bb25d8f..71bc901 100644 --- a/fastly/model/logging_azureblob_response.py +++ b/fastly/model/logging_azureblob_response.py @@ -30,11 +30,15 @@ def lazy_import(): - from fastly.model.logging_azureblob import LoggingAzureblob - from fastly.model.service_id_and_version import ServiceIdAndVersion + from fastly.model.logging_azureblob_additional import LoggingAzureblobAdditional + from fastly.model.logging_common_response import LoggingCommonResponse + from fastly.model.logging_generic_common_response import LoggingGenericCommonResponse + from fastly.model.service_id_and_version_string import ServiceIdAndVersionString from fastly.model.timestamps import Timestamps - globals()['LoggingAzureblob'] = LoggingAzureblob - globals()['ServiceIdAndVersion'] = ServiceIdAndVersion + globals()['LoggingAzureblobAdditional'] = LoggingAzureblobAdditional + globals()['LoggingCommonResponse'] = LoggingCommonResponse + globals()['LoggingGenericCommonResponse'] = LoggingGenericCommonResponse + globals()['ServiceIdAndVersionString'] = ServiceIdAndVersionString globals()['Timestamps'] = Timestamps @@ -68,8 +72,8 @@ class LoggingAzureblobResponse(ModelComposed): 'NULL': "null", }, ('format_version',): { - 'v1': 1, - 'v2': 2, + 'v1': "1", + 'v2': "2", }, ('message_type',): { 'CLASSIC': "classic", @@ -115,25 +119,25 @@ def openapi_types(): return { 'name': (str,), # noqa: E501 'placement': (str, none_type,), # noqa: E501 - 'format_version': (int,), # noqa: E501 'response_condition': (str, none_type,), # noqa: E501 'format': (str,), # noqa: E501 + 'format_version': (str,), # noqa: E501 'message_type': (str,), # noqa: E501 'timestamp_format': (str, none_type,), # noqa: E501 - 'period': (int,), # noqa: E501 - 'gzip_level': (int,), # noqa: E501 'compression_codec': (str,), # noqa: E501 + 'period': (str,), # noqa: E501 + 'gzip_level': (str,), # noqa: E501 + 'created_at': (datetime, none_type,), # noqa: E501 + 'deleted_at': (datetime, none_type,), # noqa: E501 + 'updated_at': (datetime, none_type,), # noqa: E501 + 'service_id': (str,), # noqa: E501 + 'version': (str,), # noqa: E501 'path': (str, none_type,), # noqa: E501 'account_name': (str,), # noqa: E501 'container': (str,), # noqa: E501 'sas_token': (str,), # noqa: E501 'public_key': (str, none_type,), # noqa: E501 'file_max_bytes': (int,), # noqa: E501 - 'created_at': (datetime, none_type,), # noqa: E501 - 'deleted_at': (datetime, none_type,), # noqa: E501 - 'updated_at': (datetime, none_type,), # noqa: E501 - 'service_id': (str,), # noqa: E501 - 'version': (int,), # noqa: E501 } @cached_property @@ -144,25 +148,25 @@ def discriminator(): attribute_map = { 'name': 'name', # noqa: E501 'placement': 'placement', # noqa: E501 - 'format_version': 'format_version', # noqa: E501 'response_condition': 'response_condition', # noqa: E501 'format': 'format', # noqa: E501 + 'format_version': 'format_version', # noqa: E501 'message_type': 'message_type', # noqa: E501 'timestamp_format': 'timestamp_format', # noqa: E501 + 'compression_codec': 'compression_codec', # noqa: E501 'period': 'period', # noqa: E501 'gzip_level': 'gzip_level', # noqa: E501 - 'compression_codec': 'compression_codec', # noqa: E501 + 'created_at': 'created_at', # noqa: E501 + 'deleted_at': 'deleted_at', # noqa: E501 + 'updated_at': 'updated_at', # noqa: E501 + 'service_id': 'service_id', # noqa: E501 + 'version': 'version', # noqa: E501 'path': 'path', # noqa: E501 'account_name': 'account_name', # noqa: E501 'container': 'container', # noqa: E501 'sas_token': 'sas_token', # noqa: E501 'public_key': 'public_key', # noqa: E501 'file_max_bytes': 'file_max_bytes', # noqa: E501 - 'created_at': 'created_at', # noqa: E501 - 'deleted_at': 'deleted_at', # noqa: E501 - 'updated_at': 'updated_at', # noqa: E501 - 'service_id': 'service_id', # noqa: E501 - 'version': 'version', # noqa: E501 } read_only_vars = { @@ -212,25 +216,25 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 _visited_composed_classes = (Animal,) name (str): The name for the real-time logging configuration.. [optional] # noqa: E501 placement (str, none_type): Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. . [optional] # noqa: E501 - 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] if omitted the server will use the default value of 2 # noqa: E501 response_condition (str, none_type): The name of an existing condition in the configured endpoint, or leave blank to always execute.. [optional] # noqa: E501 format (str): A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats).. [optional] if omitted the server will use the default value of "%h %l %u %t "%r" %>s %b" # noqa: E501 + format_version (str): The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. . [optional] if omitted the server will use the default value of "2" # noqa: E501 message_type (str): How the message should be formatted.. [optional] if omitted the server will use the default value of "classic" # noqa: E501 timestamp_format (str, none_type): A timestamp format. [optional] # noqa: E501 - period (int): How frequently log files are finalized so they can be available for reading (in seconds).. [optional] if omitted the server will use the default value of 3600 # noqa: E501 - 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] if omitted the server will use the default value of 0 # noqa: E501 compression_codec (str): The codec used for compressing your logs. 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] # noqa: E501 + period (str): How frequently log files are finalized so they can be available for reading (in seconds).. [optional] if omitted the server will use the default value of "3600" # noqa: E501 + gzip_level (str): 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] if omitted the server will use the default value of "0" # noqa: E501 + created_at (datetime, none_type): Date and time in ISO 8601 format.. [optional] # noqa: E501 + deleted_at (datetime, none_type): Date and time in ISO 8601 format.. [optional] # noqa: E501 + updated_at (datetime, none_type): Date and time in ISO 8601 format.. [optional] # noqa: E501 + service_id (str): [optional] # noqa: E501 + version (str): [optional] # noqa: E501 path (str, none_type): The path to upload logs to.. [optional] if omitted the server will use the default value of "null" # noqa: E501 account_name (str): The unique Azure Blob Storage namespace in which your data objects are stored. Required.. [optional] # noqa: E501 container (str): The name of the Azure Blob Storage container in which to store logs. Required.. [optional] # noqa: E501 sas_token (str): 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] # noqa: E501 public_key (str, none_type): A PGP public key that Fastly will use to encrypt your log files before writing them to disk.. [optional] if omitted the server will use the default value of "null" # noqa: E501 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] # noqa: E501 - created_at (datetime, none_type): Date and time in ISO 8601 format.. [optional] # noqa: E501 - deleted_at (datetime, none_type): Date and time in ISO 8601 format.. [optional] # noqa: E501 - updated_at (datetime, none_type): Date and time in ISO 8601 format.. [optional] # noqa: E501 - service_id (str): [optional] # noqa: E501 - version (int): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -332,25 +336,25 @@ def __init__(self, *args, **kwargs): # noqa: E501 _visited_composed_classes = (Animal,) name (str): The name for the real-time logging configuration.. [optional] # noqa: E501 placement (str, none_type): Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. . [optional] # noqa: E501 - 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] if omitted the server will use the default value of 2 # noqa: E501 response_condition (str, none_type): The name of an existing condition in the configured endpoint, or leave blank to always execute.. [optional] # noqa: E501 format (str): A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats).. [optional] if omitted the server will use the default value of "%h %l %u %t "%r" %>s %b" # noqa: E501 + format_version (str): The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. . [optional] if omitted the server will use the default value of "2" # noqa: E501 message_type (str): How the message should be formatted.. [optional] if omitted the server will use the default value of "classic" # noqa: E501 timestamp_format (str, none_type): A timestamp format. [optional] # noqa: E501 - period (int): How frequently log files are finalized so they can be available for reading (in seconds).. [optional] if omitted the server will use the default value of 3600 # noqa: E501 - 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] if omitted the server will use the default value of 0 # noqa: E501 compression_codec (str): The codec used for compressing your logs. 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] # noqa: E501 + period (str): How frequently log files are finalized so they can be available for reading (in seconds).. [optional] if omitted the server will use the default value of "3600" # noqa: E501 + gzip_level (str): 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] if omitted the server will use the default value of "0" # noqa: E501 + created_at (datetime, none_type): Date and time in ISO 8601 format.. [optional] # noqa: E501 + deleted_at (datetime, none_type): Date and time in ISO 8601 format.. [optional] # noqa: E501 + updated_at (datetime, none_type): Date and time in ISO 8601 format.. [optional] # noqa: E501 + service_id (str): [optional] # noqa: E501 + version (str): [optional] # noqa: E501 path (str, none_type): The path to upload logs to.. [optional] if omitted the server will use the default value of "null" # noqa: E501 account_name (str): The unique Azure Blob Storage namespace in which your data objects are stored. Required.. [optional] # noqa: E501 container (str): The name of the Azure Blob Storage container in which to store logs. Required.. [optional] # noqa: E501 sas_token (str): 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] # noqa: E501 public_key (str, none_type): A PGP public key that Fastly will use to encrypt your log files before writing them to disk.. [optional] if omitted the server will use the default value of "null" # noqa: E501 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] # noqa: E501 - created_at (datetime, none_type): Date and time in ISO 8601 format.. [optional] # noqa: E501 - deleted_at (datetime, none_type): Date and time in ISO 8601 format.. [optional] # noqa: E501 - updated_at (datetime, none_type): Date and time in ISO 8601 format.. [optional] # noqa: E501 - service_id (str): [optional] # noqa: E501 - version (int): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -416,8 +420,10 @@ def _composed_schemas(): 'anyOf': [ ], 'allOf': [ - LoggingAzureblob, - ServiceIdAndVersion, + LoggingAzureblobAdditional, + LoggingCommonResponse, + LoggingGenericCommonResponse, + ServiceIdAndVersionString, Timestamps, ], 'oneOf': [ diff --git a/fastly/model/logging_bigquery.py b/fastly/model/logging_bigquery.py deleted file mode 100644 index eb09df8..0000000 --- a/fastly/model/logging_bigquery.py +++ /dev/null @@ -1,369 +0,0 @@ -""" - Fastly API - - Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://developer.fastly.com/reference/api/) # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Contact: oss@fastly.com -""" - - -import re # noqa: F401 -import sys # noqa: F401 - -from fastly.model_utils import ( # noqa: F401 - ApiTypeError, - ModelComposed, - ModelNormal, - ModelSimple, - cached_property, - change_keys_js_to_python, - convert_js_args_to_python_args, - date, - datetime, - file_type, - none_type, - validate_get_composed_info, - OpenApiModel -) -from fastly.exceptions import ApiAttributeError - - -def lazy_import(): - from fastly.model.logging_bigquery_all_of import LoggingBigqueryAllOf - from fastly.model.logging_common import LoggingCommon - from fastly.model.logging_gcs_common import LoggingGcsCommon - globals()['LoggingBigqueryAllOf'] = LoggingBigqueryAllOf - globals()['LoggingCommon'] = LoggingCommon - globals()['LoggingGcsCommon'] = LoggingGcsCommon - - -class LoggingBigquery(ModelComposed): - """NOTE: This class is auto generated. - Do not edit the class manually. - - Attributes: - allowed_values (dict): The key is the tuple path to the attribute - and the for var_name this is (var_name,). The value is a dict - with a capitalized key describing the allowed value and an allowed - value. These dicts store the allowed enum values. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - discriminator_value_class_map (dict): A dict to go from the discriminator - variable value to the discriminator class name. - validations (dict): The key is the tuple path to the attribute - and the for var_name this is (var_name,). The value is a dict - that stores validations for max_length, min_length, max_items, - min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, - inclusive_minimum, and regex. - additional_properties_type (tuple): A tuple of classes accepted - as additional properties values. - """ - - allowed_values = { - ('placement',): { - 'None': None, - 'NONE': "none", - 'WAF_DEBUG': "waf_debug", - 'NULL': "null", - }, - ('format_version',): { - 'v1': 1, - 'v2': 2, - }, - } - - validations = { - } - - @cached_property - def additional_properties_type(): - """ - This must be a method because a model may have properties that are - of type self, this must run after the class is loaded - """ - lazy_import() - return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 - - _nullable = False - - @cached_property - def openapi_types(): - """ - This must be a method because a model may have properties that are - of type self, this must run after the class is loaded - - Returns - openapi_types (dict): The key is attribute name - and the value is attribute type. - """ - lazy_import() - return { - 'name': (str,), # noqa: E501 - 'placement': (str, none_type,), # noqa: E501 - 'format_version': (int,), # noqa: E501 - 'response_condition': (str, none_type,), # noqa: E501 - 'format': (str,), # noqa: E501 - 'user': (str,), # noqa: E501 - 'secret_key': (str,), # noqa: E501 - 'account_name': (str,), # noqa: E501 - 'dataset': (str,), # noqa: E501 - 'table': (str,), # noqa: E501 - 'template_suffix': (str, none_type,), # noqa: E501 - 'project_id': (str,), # noqa: E501 - } - - @cached_property - def discriminator(): - return None - - - attribute_map = { - 'name': 'name', # noqa: E501 - 'placement': 'placement', # noqa: E501 - 'format_version': 'format_version', # noqa: E501 - 'response_condition': 'response_condition', # noqa: E501 - 'format': 'format', # noqa: E501 - 'user': 'user', # noqa: E501 - 'secret_key': 'secret_key', # noqa: E501 - 'account_name': 'account_name', # noqa: E501 - 'dataset': 'dataset', # noqa: E501 - 'table': 'table', # noqa: E501 - 'template_suffix': 'template_suffix', # noqa: E501 - 'project_id': 'project_id', # noqa: E501 - } - - read_only_vars = { - } - - @classmethod - @convert_js_args_to_python_args - def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 - """LoggingBigquery - a model defined in OpenAPI - - Keyword Args: - _check_type (bool): if True, values for parameters in openapi_types - will be type checked and a TypeError will be - raised if the wrong type is input. - Defaults to True - _path_to_item (tuple/list): This is a list of keys or values to - drill down to the model in received_data - when deserializing a response - _spec_property_naming (bool): True if the variable names in the input data - are serialized names, as specified in the OpenAPI document. - False if the variable names in the input data - are pythonic names, e.g. snake case (default) - _configuration (Configuration): the instance to use when - deserializing a file_type parameter. - If passed, type conversion is attempted - If omitted no type conversion is done. - _visited_composed_classes (tuple): This stores a tuple of - classes that we have traveled through so that - if we see that class again we will not use its - discriminator again. - When traveling through a discriminator, the - composed schema that is - is traveled through is added to this set. - For example if Animal has a discriminator - petType and we pass in "Dog", and the class Dog - allOf includes Animal, we move through Animal - once using the discriminator, and pick Dog. - Then in Dog, we will make an instance of the - Animal class but this time we won't travel - through its discriminator because we passed in - _visited_composed_classes = (Animal,) - name (str): The name of the BigQuery logging object. Used as a primary key for API access.. [optional] # noqa: E501 - placement (str, none_type): Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. . [optional] # noqa: E501 - 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] if omitted the server will use the default value of 2 # noqa: E501 - response_condition (str, none_type): The name of an existing condition in the configured endpoint, or leave blank to always execute.. [optional] # noqa: E501 - format (str): 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] # noqa: E501 - user (str): 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] # noqa: E501 - secret_key (str): 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] # noqa: E501 - account_name (str): 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] # noqa: E501 - dataset (str): Your BigQuery dataset.. [optional] # noqa: E501 - table (str): Your BigQuery table.. [optional] # noqa: E501 - template_suffix (str, none_type): BigQuery table name suffix template. Optional.. [optional] # noqa: E501 - project_id (str): Your Google Cloud Platform project ID. Required. [optional] # noqa: E501 - """ - - _check_type = kwargs.pop('_check_type', True) - _spec_property_naming = kwargs.pop('_spec_property_naming', False) - _path_to_item = kwargs.pop('_path_to_item', ()) - _configuration = kwargs.pop('_configuration', None) - _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) - - self = super(OpenApiModel, cls).__new__(cls) - - if args: - raise ApiTypeError( - "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( - args, - self.__class__.__name__, - ), - path_to_item=_path_to_item, - valid_classes=(self.__class__,), - ) - - self._data_store = {} - self._check_type = _check_type - self._spec_property_naming = _spec_property_naming - self._path_to_item = _path_to_item - self._configuration = _configuration - self._visited_composed_classes = _visited_composed_classes + (self.__class__,) - - constant_args = { - '_check_type': _check_type, - '_path_to_item': _path_to_item, - '_spec_property_naming': _spec_property_naming, - '_configuration': _configuration, - '_visited_composed_classes': self._visited_composed_classes, - } - composed_info = validate_get_composed_info( - constant_args, kwargs, self) - self._composed_instances = composed_info[0] - self._var_name_to_model_instances = composed_info[1] - self._additional_properties_model_instances = composed_info[2] - discarded_args = composed_info[3] - - for var_name, var_value in kwargs.items(): - if var_name in discarded_args and \ - self._configuration is not None and \ - self._configuration.discard_unknown_keys and \ - self._additional_properties_model_instances: - # discard variable. - continue - setattr(self, var_name, var_value) - - return self - - required_properties = set([ - '_data_store', - '_check_type', - '_spec_property_naming', - '_path_to_item', - '_configuration', - '_visited_composed_classes', - '_composed_instances', - '_var_name_to_model_instances', - '_additional_properties_model_instances', - ]) - - @convert_js_args_to_python_args - def __init__(self, *args, **kwargs): # noqa: E501 - """LoggingBigquery - a model defined in OpenAPI - - Keyword Args: - _check_type (bool): if True, values for parameters in openapi_types - will be type checked and a TypeError will be - raised if the wrong type is input. - Defaults to True - _path_to_item (tuple/list): This is a list of keys or values to - drill down to the model in received_data - when deserializing a response - _spec_property_naming (bool): True if the variable names in the input data - are serialized names, as specified in the OpenAPI document. - False if the variable names in the input data - are pythonic names, e.g. snake case (default) - _configuration (Configuration): the instance to use when - deserializing a file_type parameter. - If passed, type conversion is attempted - If omitted no type conversion is done. - _visited_composed_classes (tuple): This stores a tuple of - classes that we have traveled through so that - if we see that class again we will not use its - discriminator again. - When traveling through a discriminator, the - composed schema that is - is traveled through is added to this set. - For example if Animal has a discriminator - petType and we pass in "Dog", and the class Dog - allOf includes Animal, we move through Animal - once using the discriminator, and pick Dog. - Then in Dog, we will make an instance of the - Animal class but this time we won't travel - through its discriminator because we passed in - _visited_composed_classes = (Animal,) - name (str): The name of the BigQuery logging object. Used as a primary key for API access.. [optional] # noqa: E501 - placement (str, none_type): Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. . [optional] # noqa: E501 - 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] if omitted the server will use the default value of 2 # noqa: E501 - response_condition (str, none_type): The name of an existing condition in the configured endpoint, or leave blank to always execute.. [optional] # noqa: E501 - format (str): 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] # noqa: E501 - user (str): 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] # noqa: E501 - secret_key (str): 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] # noqa: E501 - account_name (str): 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] # noqa: E501 - dataset (str): Your BigQuery dataset.. [optional] # noqa: E501 - table (str): Your BigQuery table.. [optional] # noqa: E501 - template_suffix (str, none_type): BigQuery table name suffix template. Optional.. [optional] # noqa: E501 - project_id (str): Your Google Cloud Platform project ID. Required. [optional] # noqa: E501 - """ - - _check_type = kwargs.pop('_check_type', True) - _spec_property_naming = kwargs.pop('_spec_property_naming', False) - _path_to_item = kwargs.pop('_path_to_item', ()) - _configuration = kwargs.pop('_configuration', None) - _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) - - if args: - raise ApiTypeError( - "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( - args, - self.__class__.__name__, - ), - path_to_item=_path_to_item, - valid_classes=(self.__class__,), - ) - - self._data_store = {} - self._check_type = _check_type - self._spec_property_naming = _spec_property_naming - self._path_to_item = _path_to_item - self._configuration = _configuration - self._visited_composed_classes = _visited_composed_classes + (self.__class__,) - - constant_args = { - '_check_type': _check_type, - '_path_to_item': _path_to_item, - '_spec_property_naming': _spec_property_naming, - '_configuration': _configuration, - '_visited_composed_classes': self._visited_composed_classes, - } - composed_info = validate_get_composed_info( - constant_args, kwargs, self) - self._composed_instances = composed_info[0] - self._var_name_to_model_instances = composed_info[1] - self._additional_properties_model_instances = composed_info[2] - discarded_args = composed_info[3] - - for var_name, var_value in kwargs.items(): - if var_name in discarded_args and \ - self._configuration is not None and \ - self._configuration.discard_unknown_keys and \ - self._additional_properties_model_instances: - # discard variable. - continue - setattr(self, var_name, var_value) - if var_name in self.read_only_vars: - raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " - f"class with read only attributes.") - - @cached_property - def _composed_schemas(): - # we need this here to make our import statements work - # we must store _composed_schemas in here so the code is only run - # when we invoke this method. If we kept this at the class - # level we would get an error because the class level - # code would be run when this module is imported, and these composed - # classes don't exist yet because their module has not finished - # loading - lazy_import() - return { - 'anyOf': [ - ], - 'allOf': [ - LoggingBigqueryAllOf, - LoggingCommon, - LoggingGcsCommon, - ], - 'oneOf': [ - ], - } diff --git a/fastly/model/logging_bigquery_all_of.py b/fastly/model/logging_bigquery_additional.py similarity index 98% rename from fastly/model/logging_bigquery_all_of.py rename to fastly/model/logging_bigquery_additional.py index ff945e9..e515326 100644 --- a/fastly/model/logging_bigquery_all_of.py +++ b/fastly/model/logging_bigquery_additional.py @@ -30,7 +30,7 @@ -class LoggingBigqueryAllOf(ModelNormal): +class LoggingBigqueryAdditional(ModelNormal): """NOTE: This class is auto generated. Do not edit the class manually. @@ -109,7 +109,7 @@ def discriminator(): @classmethod @convert_js_args_to_python_args def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 - """LoggingBigqueryAllOf - a model defined in OpenAPI + """LoggingBigqueryAdditional - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -196,7 +196,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 @convert_js_args_to_python_args def __init__(self, *args, **kwargs): # noqa: E501 - """LoggingBigqueryAllOf - a model defined in OpenAPI + """LoggingBigqueryAdditional - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types diff --git a/fastly/model/logging_bigquery_response.py b/fastly/model/logging_bigquery_response.py index 927bde9..eb627ce 100644 --- a/fastly/model/logging_bigquery_response.py +++ b/fastly/model/logging_bigquery_response.py @@ -30,11 +30,15 @@ def lazy_import(): - from fastly.model.logging_bigquery import LoggingBigquery - from fastly.model.service_id_and_version import ServiceIdAndVersion + from fastly.model.logging_bigquery_additional import LoggingBigqueryAdditional + from fastly.model.logging_common_response import LoggingCommonResponse + from fastly.model.logging_gcs_common import LoggingGcsCommon + from fastly.model.service_id_and_version_string import ServiceIdAndVersionString from fastly.model.timestamps import Timestamps - globals()['LoggingBigquery'] = LoggingBigquery - globals()['ServiceIdAndVersion'] = ServiceIdAndVersion + globals()['LoggingBigqueryAdditional'] = LoggingBigqueryAdditional + globals()['LoggingCommonResponse'] = LoggingCommonResponse + globals()['LoggingGcsCommon'] = LoggingGcsCommon + globals()['ServiceIdAndVersionString'] = ServiceIdAndVersionString globals()['Timestamps'] = Timestamps @@ -68,8 +72,8 @@ class LoggingBigqueryResponse(ModelComposed): 'NULL': "null", }, ('format_version',): { - 'v1': 1, - 'v2': 2, + 'v1': "1", + 'v2': "2", }, } @@ -101,9 +105,9 @@ def openapi_types(): return { 'name': (str,), # noqa: E501 'placement': (str, none_type,), # noqa: E501 - 'format_version': (int,), # noqa: E501 'response_condition': (str, none_type,), # noqa: E501 'format': (str,), # noqa: E501 + 'format_version': (str,), # noqa: E501 'user': (str,), # noqa: E501 'secret_key': (str,), # noqa: E501 'account_name': (str,), # noqa: E501 @@ -115,7 +119,7 @@ def openapi_types(): 'deleted_at': (datetime, none_type,), # noqa: E501 'updated_at': (datetime, none_type,), # noqa: E501 'service_id': (str,), # noqa: E501 - 'version': (int,), # noqa: E501 + 'version': (str,), # noqa: E501 } @cached_property @@ -126,9 +130,9 @@ def discriminator(): attribute_map = { 'name': 'name', # noqa: E501 'placement': 'placement', # noqa: E501 - 'format_version': 'format_version', # noqa: E501 'response_condition': 'response_condition', # noqa: E501 'format': 'format', # noqa: E501 + 'format_version': 'format_version', # noqa: E501 'user': 'user', # noqa: E501 'secret_key': 'secret_key', # noqa: E501 'account_name': 'account_name', # noqa: E501 @@ -189,9 +193,9 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 _visited_composed_classes = (Animal,) name (str): The name of the BigQuery logging object. Used as a primary key for API access.. [optional] # noqa: E501 placement (str, none_type): Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. . [optional] # noqa: E501 - 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] if omitted the server will use the default value of 2 # noqa: E501 response_condition (str, none_type): The name of an existing condition in the configured endpoint, or leave blank to always execute.. [optional] # noqa: E501 format (str): 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] # noqa: E501 + format_version (str): The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. . [optional] if omitted the server will use the default value of "2" # noqa: E501 user (str): 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] # noqa: E501 secret_key (str): 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] # noqa: E501 account_name (str): 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] # noqa: E501 @@ -203,7 +207,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 deleted_at (datetime, none_type): Date and time in ISO 8601 format.. [optional] # noqa: E501 updated_at (datetime, none_type): Date and time in ISO 8601 format.. [optional] # noqa: E501 service_id (str): [optional] # noqa: E501 - version (int): [optional] # noqa: E501 + version (str): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -305,9 +309,9 @@ def __init__(self, *args, **kwargs): # noqa: E501 _visited_composed_classes = (Animal,) name (str): The name of the BigQuery logging object. Used as a primary key for API access.. [optional] # noqa: E501 placement (str, none_type): Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. . [optional] # noqa: E501 - 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] if omitted the server will use the default value of 2 # noqa: E501 response_condition (str, none_type): The name of an existing condition in the configured endpoint, or leave blank to always execute.. [optional] # noqa: E501 format (str): 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] # noqa: E501 + format_version (str): The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. . [optional] if omitted the server will use the default value of "2" # noqa: E501 user (str): 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] # noqa: E501 secret_key (str): 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] # noqa: E501 account_name (str): 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] # noqa: E501 @@ -319,7 +323,7 @@ def __init__(self, *args, **kwargs): # noqa: E501 deleted_at (datetime, none_type): Date and time in ISO 8601 format.. [optional] # noqa: E501 updated_at (datetime, none_type): Date and time in ISO 8601 format.. [optional] # noqa: E501 service_id (str): [optional] # noqa: E501 - version (int): [optional] # noqa: E501 + version (str): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -385,8 +389,10 @@ def _composed_schemas(): 'anyOf': [ ], 'allOf': [ - LoggingBigquery, - ServiceIdAndVersion, + LoggingBigqueryAdditional, + LoggingCommonResponse, + LoggingGcsCommon, + ServiceIdAndVersionString, Timestamps, ], 'oneOf': [ diff --git a/fastly/model/logging_cloudfiles.py b/fastly/model/logging_cloudfiles.py deleted file mode 100644 index 794c226..0000000 --- a/fastly/model/logging_cloudfiles.py +++ /dev/null @@ -1,407 +0,0 @@ -""" - Fastly API - - Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://developer.fastly.com/reference/api/) # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Contact: oss@fastly.com -""" - - -import re # noqa: F401 -import sys # noqa: F401 - -from fastly.model_utils import ( # noqa: F401 - ApiTypeError, - ModelComposed, - ModelNormal, - ModelSimple, - cached_property, - change_keys_js_to_python, - convert_js_args_to_python_args, - date, - datetime, - file_type, - none_type, - validate_get_composed_info, - OpenApiModel -) -from fastly.exceptions import ApiAttributeError - - -def lazy_import(): - from fastly.model.logging_cloudfiles_all_of import LoggingCloudfilesAllOf - from fastly.model.logging_common import LoggingCommon - from fastly.model.logging_generic_common import LoggingGenericCommon - globals()['LoggingCloudfilesAllOf'] = LoggingCloudfilesAllOf - globals()['LoggingCommon'] = LoggingCommon - globals()['LoggingGenericCommon'] = LoggingGenericCommon - - -class LoggingCloudfiles(ModelComposed): - """NOTE: This class is auto generated. - Do not edit the class manually. - - Attributes: - allowed_values (dict): The key is the tuple path to the attribute - and the for var_name this is (var_name,). The value is a dict - with a capitalized key describing the allowed value and an allowed - value. These dicts store the allowed enum values. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - discriminator_value_class_map (dict): A dict to go from the discriminator - variable value to the discriminator class name. - validations (dict): The key is the tuple path to the attribute - and the for var_name this is (var_name,). The value is a dict - that stores validations for max_length, min_length, max_items, - min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, - inclusive_minimum, and regex. - additional_properties_type (tuple): A tuple of classes accepted - as additional properties values. - """ - - allowed_values = { - ('placement',): { - 'None': None, - 'NONE': "none", - 'WAF_DEBUG': "waf_debug", - 'NULL': "null", - }, - ('format_version',): { - 'v1': 1, - 'v2': 2, - }, - ('message_type',): { - 'CLASSIC': "classic", - 'LOGGLY': "loggly", - 'LOGPLEX': "logplex", - 'BLANK': "blank", - }, - ('compression_codec',): { - 'ZSTD': "zstd", - 'SNAPPY': "snappy", - 'GZIP': "gzip", - }, - ('region',): { - 'None': None, - 'DFW': "DFW", - 'ORD': "ORD", - 'IAD': "IAD", - 'LON': "LON", - 'SYD': "SYD", - 'HKG': "HKG", - 'NULL': "null", - }, - } - - validations = { - } - - @cached_property - def additional_properties_type(): - """ - This must be a method because a model may have properties that are - of type self, this must run after the class is loaded - """ - lazy_import() - return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 - - _nullable = False - - @cached_property - def openapi_types(): - """ - This must be a method because a model may have properties that are - of type self, this must run after the class is loaded - - Returns - openapi_types (dict): The key is attribute name - and the value is attribute type. - """ - lazy_import() - return { - 'name': (str,), # noqa: E501 - 'placement': (str, none_type,), # noqa: E501 - 'format_version': (int,), # noqa: E501 - 'response_condition': (str, none_type,), # noqa: E501 - 'format': (str,), # noqa: E501 - 'message_type': (str,), # noqa: E501 - 'timestamp_format': (str, none_type,), # noqa: E501 - 'period': (int,), # noqa: E501 - 'gzip_level': (int,), # noqa: E501 - 'compression_codec': (str,), # noqa: E501 - 'access_key': (str,), # noqa: E501 - 'bucket_name': (str,), # noqa: E501 - 'path': (str, none_type,), # noqa: E501 - 'region': (str, none_type,), # noqa: E501 - 'public_key': (str, none_type,), # noqa: E501 - 'user': (str,), # noqa: E501 - } - - @cached_property - def discriminator(): - return None - - - attribute_map = { - 'name': 'name', # noqa: E501 - 'placement': 'placement', # noqa: E501 - 'format_version': 'format_version', # noqa: E501 - 'response_condition': 'response_condition', # noqa: E501 - 'format': 'format', # noqa: E501 - 'message_type': 'message_type', # noqa: E501 - 'timestamp_format': 'timestamp_format', # noqa: E501 - 'period': 'period', # noqa: E501 - 'gzip_level': 'gzip_level', # noqa: E501 - 'compression_codec': 'compression_codec', # noqa: E501 - 'access_key': 'access_key', # noqa: E501 - 'bucket_name': 'bucket_name', # noqa: E501 - 'path': 'path', # noqa: E501 - 'region': 'region', # noqa: E501 - 'public_key': 'public_key', # noqa: E501 - 'user': 'user', # noqa: E501 - } - - read_only_vars = { - 'timestamp_format', # noqa: E501 - } - - @classmethod - @convert_js_args_to_python_args - def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 - """LoggingCloudfiles - a model defined in OpenAPI - - Keyword Args: - _check_type (bool): if True, values for parameters in openapi_types - will be type checked and a TypeError will be - raised if the wrong type is input. - Defaults to True - _path_to_item (tuple/list): This is a list of keys or values to - drill down to the model in received_data - when deserializing a response - _spec_property_naming (bool): True if the variable names in the input data - are serialized names, as specified in the OpenAPI document. - False if the variable names in the input data - are pythonic names, e.g. snake case (default) - _configuration (Configuration): the instance to use when - deserializing a file_type parameter. - If passed, type conversion is attempted - If omitted no type conversion is done. - _visited_composed_classes (tuple): This stores a tuple of - classes that we have traveled through so that - if we see that class again we will not use its - discriminator again. - When traveling through a discriminator, the - composed schema that is - is traveled through is added to this set. - For example if Animal has a discriminator - petType and we pass in "Dog", and the class Dog - allOf includes Animal, we move through Animal - once using the discriminator, and pick Dog. - Then in Dog, we will make an instance of the - Animal class but this time we won't travel - through its discriminator because we passed in - _visited_composed_classes = (Animal,) - name (str): The name for the real-time logging configuration.. [optional] # noqa: E501 - placement (str, none_type): Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. . [optional] # noqa: E501 - 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] if omitted the server will use the default value of 2 # noqa: E501 - response_condition (str, none_type): The name of an existing condition in the configured endpoint, or leave blank to always execute.. [optional] # noqa: E501 - format (str): A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats).. [optional] if omitted the server will use the default value of "%h %l %u %t "%r" %>s %b" # noqa: E501 - message_type (str): How the message should be formatted.. [optional] if omitted the server will use the default value of "classic" # noqa: E501 - timestamp_format (str, none_type): A timestamp format. [optional] # noqa: E501 - period (int): How frequently log files are finalized so they can be available for reading (in seconds).. [optional] if omitted the server will use the default value of 3600 # noqa: E501 - 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] if omitted the server will use the default value of 0 # noqa: E501 - compression_codec (str): The codec used for compressing your logs. 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] # noqa: E501 - access_key (str): Your Cloud Files account access key.. [optional] # noqa: E501 - bucket_name (str): The name of your Cloud Files container.. [optional] # noqa: E501 - path (str, none_type): The path to upload logs to.. [optional] if omitted the server will use the default value of "null" # noqa: E501 - region (str, none_type): The region to stream logs to.. [optional] # noqa: E501 - public_key (str, none_type): A PGP public key that Fastly will use to encrypt your log files before writing them to disk.. [optional] if omitted the server will use the default value of "null" # noqa: E501 - user (str): The username for your Cloud Files account.. [optional] # noqa: E501 - """ - - _check_type = kwargs.pop('_check_type', True) - _spec_property_naming = kwargs.pop('_spec_property_naming', False) - _path_to_item = kwargs.pop('_path_to_item', ()) - _configuration = kwargs.pop('_configuration', None) - _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) - - self = super(OpenApiModel, cls).__new__(cls) - - if args: - raise ApiTypeError( - "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( - args, - self.__class__.__name__, - ), - path_to_item=_path_to_item, - valid_classes=(self.__class__,), - ) - - self._data_store = {} - self._check_type = _check_type - self._spec_property_naming = _spec_property_naming - self._path_to_item = _path_to_item - self._configuration = _configuration - self._visited_composed_classes = _visited_composed_classes + (self.__class__,) - - constant_args = { - '_check_type': _check_type, - '_path_to_item': _path_to_item, - '_spec_property_naming': _spec_property_naming, - '_configuration': _configuration, - '_visited_composed_classes': self._visited_composed_classes, - } - composed_info = validate_get_composed_info( - constant_args, kwargs, self) - self._composed_instances = composed_info[0] - self._var_name_to_model_instances = composed_info[1] - self._additional_properties_model_instances = composed_info[2] - discarded_args = composed_info[3] - - for var_name, var_value in kwargs.items(): - if var_name in discarded_args and \ - self._configuration is not None and \ - self._configuration.discard_unknown_keys and \ - self._additional_properties_model_instances: - # discard variable. - continue - setattr(self, var_name, var_value) - - return self - - required_properties = set([ - '_data_store', - '_check_type', - '_spec_property_naming', - '_path_to_item', - '_configuration', - '_visited_composed_classes', - '_composed_instances', - '_var_name_to_model_instances', - '_additional_properties_model_instances', - ]) - - @convert_js_args_to_python_args - def __init__(self, *args, **kwargs): # noqa: E501 - """LoggingCloudfiles - a model defined in OpenAPI - - Keyword Args: - _check_type (bool): if True, values for parameters in openapi_types - will be type checked and a TypeError will be - raised if the wrong type is input. - Defaults to True - _path_to_item (tuple/list): This is a list of keys or values to - drill down to the model in received_data - when deserializing a response - _spec_property_naming (bool): True if the variable names in the input data - are serialized names, as specified in the OpenAPI document. - False if the variable names in the input data - are pythonic names, e.g. snake case (default) - _configuration (Configuration): the instance to use when - deserializing a file_type parameter. - If passed, type conversion is attempted - If omitted no type conversion is done. - _visited_composed_classes (tuple): This stores a tuple of - classes that we have traveled through so that - if we see that class again we will not use its - discriminator again. - When traveling through a discriminator, the - composed schema that is - is traveled through is added to this set. - For example if Animal has a discriminator - petType and we pass in "Dog", and the class Dog - allOf includes Animal, we move through Animal - once using the discriminator, and pick Dog. - Then in Dog, we will make an instance of the - Animal class but this time we won't travel - through its discriminator because we passed in - _visited_composed_classes = (Animal,) - name (str): The name for the real-time logging configuration.. [optional] # noqa: E501 - placement (str, none_type): Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. . [optional] # noqa: E501 - 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] if omitted the server will use the default value of 2 # noqa: E501 - response_condition (str, none_type): The name of an existing condition in the configured endpoint, or leave blank to always execute.. [optional] # noqa: E501 - format (str): A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats).. [optional] if omitted the server will use the default value of "%h %l %u %t "%r" %>s %b" # noqa: E501 - message_type (str): How the message should be formatted.. [optional] if omitted the server will use the default value of "classic" # noqa: E501 - timestamp_format (str, none_type): A timestamp format. [optional] # noqa: E501 - period (int): How frequently log files are finalized so they can be available for reading (in seconds).. [optional] if omitted the server will use the default value of 3600 # noqa: E501 - 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] if omitted the server will use the default value of 0 # noqa: E501 - compression_codec (str): The codec used for compressing your logs. 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] # noqa: E501 - access_key (str): Your Cloud Files account access key.. [optional] # noqa: E501 - bucket_name (str): The name of your Cloud Files container.. [optional] # noqa: E501 - path (str, none_type): The path to upload logs to.. [optional] if omitted the server will use the default value of "null" # noqa: E501 - region (str, none_type): The region to stream logs to.. [optional] # noqa: E501 - public_key (str, none_type): A PGP public key that Fastly will use to encrypt your log files before writing them to disk.. [optional] if omitted the server will use the default value of "null" # noqa: E501 - user (str): The username for your Cloud Files account.. [optional] # noqa: E501 - """ - - _check_type = kwargs.pop('_check_type', True) - _spec_property_naming = kwargs.pop('_spec_property_naming', False) - _path_to_item = kwargs.pop('_path_to_item', ()) - _configuration = kwargs.pop('_configuration', None) - _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) - - if args: - raise ApiTypeError( - "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( - args, - self.__class__.__name__, - ), - path_to_item=_path_to_item, - valid_classes=(self.__class__,), - ) - - self._data_store = {} - self._check_type = _check_type - self._spec_property_naming = _spec_property_naming - self._path_to_item = _path_to_item - self._configuration = _configuration - self._visited_composed_classes = _visited_composed_classes + (self.__class__,) - - constant_args = { - '_check_type': _check_type, - '_path_to_item': _path_to_item, - '_spec_property_naming': _spec_property_naming, - '_configuration': _configuration, - '_visited_composed_classes': self._visited_composed_classes, - } - composed_info = validate_get_composed_info( - constant_args, kwargs, self) - self._composed_instances = composed_info[0] - self._var_name_to_model_instances = composed_info[1] - self._additional_properties_model_instances = composed_info[2] - discarded_args = composed_info[3] - - for var_name, var_value in kwargs.items(): - if var_name in discarded_args and \ - self._configuration is not None and \ - self._configuration.discard_unknown_keys and \ - self._additional_properties_model_instances: - # discard variable. - continue - setattr(self, var_name, var_value) - if var_name in self.read_only_vars: - raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " - f"class with read only attributes.") - - @cached_property - def _composed_schemas(): - # we need this here to make our import statements work - # we must store _composed_schemas in here so the code is only run - # when we invoke this method. If we kept this at the class - # level we would get an error because the class level - # code would be run when this module is imported, and these composed - # classes don't exist yet because their module has not finished - # loading - lazy_import() - return { - 'anyOf': [ - ], - 'allOf': [ - LoggingCloudfilesAllOf, - LoggingCommon, - LoggingGenericCommon, - ], - 'oneOf': [ - ], - } diff --git a/fastly/model/logging_cloudfiles_all_of.py b/fastly/model/logging_cloudfiles_additional.py similarity index 98% rename from fastly/model/logging_cloudfiles_all_of.py rename to fastly/model/logging_cloudfiles_additional.py index e1db252..ddd52d0 100644 --- a/fastly/model/logging_cloudfiles_all_of.py +++ b/fastly/model/logging_cloudfiles_additional.py @@ -30,7 +30,7 @@ -class LoggingCloudfilesAllOf(ModelNormal): +class LoggingCloudfilesAdditional(ModelNormal): """NOTE: This class is auto generated. Do not edit the class manually. @@ -119,7 +119,7 @@ def discriminator(): @classmethod @convert_js_args_to_python_args def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 - """LoggingCloudfilesAllOf - a model defined in OpenAPI + """LoggingCloudfilesAdditional - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -206,7 +206,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 @convert_js_args_to_python_args def __init__(self, *args, **kwargs): # noqa: E501 - """LoggingCloudfilesAllOf - a model defined in OpenAPI + """LoggingCloudfilesAdditional - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types diff --git a/fastly/model/logging_cloudfiles_response.py b/fastly/model/logging_cloudfiles_response.py index 506810f..f6c32d7 100644 --- a/fastly/model/logging_cloudfiles_response.py +++ b/fastly/model/logging_cloudfiles_response.py @@ -30,11 +30,15 @@ def lazy_import(): - from fastly.model.logging_cloudfiles import LoggingCloudfiles - from fastly.model.service_id_and_version import ServiceIdAndVersion + from fastly.model.logging_cloudfiles_additional import LoggingCloudfilesAdditional + from fastly.model.logging_common_response import LoggingCommonResponse + from fastly.model.logging_generic_common_response import LoggingGenericCommonResponse + from fastly.model.service_id_and_version_string import ServiceIdAndVersionString from fastly.model.timestamps import Timestamps - globals()['LoggingCloudfiles'] = LoggingCloudfiles - globals()['ServiceIdAndVersion'] = ServiceIdAndVersion + globals()['LoggingCloudfilesAdditional'] = LoggingCloudfilesAdditional + globals()['LoggingCommonResponse'] = LoggingCommonResponse + globals()['LoggingGenericCommonResponse'] = LoggingGenericCommonResponse + globals()['ServiceIdAndVersionString'] = ServiceIdAndVersionString globals()['Timestamps'] = Timestamps @@ -68,8 +72,8 @@ class LoggingCloudfilesResponse(ModelComposed): 'NULL': "null", }, ('format_version',): { - 'v1': 1, - 'v2': 2, + 'v1': "1", + 'v2': "2", }, ('message_type',): { 'CLASSIC': "classic", @@ -122,25 +126,25 @@ def openapi_types(): return { 'name': (str,), # noqa: E501 'placement': (str, none_type,), # noqa: E501 - 'format_version': (int,), # noqa: E501 'response_condition': (str, none_type,), # noqa: E501 'format': (str,), # noqa: E501 + 'format_version': (str,), # noqa: E501 'message_type': (str,), # noqa: E501 'timestamp_format': (str, none_type,), # noqa: E501 - 'period': (int,), # noqa: E501 - 'gzip_level': (int,), # noqa: E501 'compression_codec': (str,), # noqa: E501 + 'period': (str,), # noqa: E501 + 'gzip_level': (str,), # noqa: E501 + 'created_at': (datetime, none_type,), # noqa: E501 + 'deleted_at': (datetime, none_type,), # noqa: E501 + 'updated_at': (datetime, none_type,), # noqa: E501 + 'service_id': (str,), # noqa: E501 + 'version': (str,), # noqa: E501 'access_key': (str,), # noqa: E501 'bucket_name': (str,), # noqa: E501 'path': (str, none_type,), # noqa: E501 'region': (str, none_type,), # noqa: E501 'public_key': (str, none_type,), # noqa: E501 'user': (str,), # noqa: E501 - 'created_at': (datetime, none_type,), # noqa: E501 - 'deleted_at': (datetime, none_type,), # noqa: E501 - 'updated_at': (datetime, none_type,), # noqa: E501 - 'service_id': (str,), # noqa: E501 - 'version': (int,), # noqa: E501 } @cached_property @@ -151,25 +155,25 @@ def discriminator(): attribute_map = { 'name': 'name', # noqa: E501 'placement': 'placement', # noqa: E501 - 'format_version': 'format_version', # noqa: E501 'response_condition': 'response_condition', # noqa: E501 'format': 'format', # noqa: E501 + 'format_version': 'format_version', # noqa: E501 'message_type': 'message_type', # noqa: E501 'timestamp_format': 'timestamp_format', # noqa: E501 + 'compression_codec': 'compression_codec', # noqa: E501 'period': 'period', # noqa: E501 'gzip_level': 'gzip_level', # noqa: E501 - 'compression_codec': 'compression_codec', # noqa: E501 + 'created_at': 'created_at', # noqa: E501 + 'deleted_at': 'deleted_at', # noqa: E501 + 'updated_at': 'updated_at', # noqa: E501 + 'service_id': 'service_id', # noqa: E501 + 'version': 'version', # noqa: E501 'access_key': 'access_key', # noqa: E501 'bucket_name': 'bucket_name', # noqa: E501 'path': 'path', # noqa: E501 'region': 'region', # noqa: E501 'public_key': 'public_key', # noqa: E501 'user': 'user', # noqa: E501 - 'created_at': 'created_at', # noqa: E501 - 'deleted_at': 'deleted_at', # noqa: E501 - 'updated_at': 'updated_at', # noqa: E501 - 'service_id': 'service_id', # noqa: E501 - 'version': 'version', # noqa: E501 } read_only_vars = { @@ -219,25 +223,25 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 _visited_composed_classes = (Animal,) name (str): The name for the real-time logging configuration.. [optional] # noqa: E501 placement (str, none_type): Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. . [optional] # noqa: E501 - 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] if omitted the server will use the default value of 2 # noqa: E501 response_condition (str, none_type): The name of an existing condition in the configured endpoint, or leave blank to always execute.. [optional] # noqa: E501 format (str): A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats).. [optional] if omitted the server will use the default value of "%h %l %u %t "%r" %>s %b" # noqa: E501 + format_version (str): The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. . [optional] if omitted the server will use the default value of "2" # noqa: E501 message_type (str): How the message should be formatted.. [optional] if omitted the server will use the default value of "classic" # noqa: E501 timestamp_format (str, none_type): A timestamp format. [optional] # noqa: E501 - period (int): How frequently log files are finalized so they can be available for reading (in seconds).. [optional] if omitted the server will use the default value of 3600 # noqa: E501 - 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] if omitted the server will use the default value of 0 # noqa: E501 compression_codec (str): The codec used for compressing your logs. 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] # noqa: E501 + period (str): How frequently log files are finalized so they can be available for reading (in seconds).. [optional] if omitted the server will use the default value of "3600" # noqa: E501 + gzip_level (str): 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] if omitted the server will use the default value of "0" # noqa: E501 + created_at (datetime, none_type): Date and time in ISO 8601 format.. [optional] # noqa: E501 + deleted_at (datetime, none_type): Date and time in ISO 8601 format.. [optional] # noqa: E501 + updated_at (datetime, none_type): Date and time in ISO 8601 format.. [optional] # noqa: E501 + service_id (str): [optional] # noqa: E501 + version (str): [optional] # noqa: E501 access_key (str): Your Cloud Files account access key.. [optional] # noqa: E501 bucket_name (str): The name of your Cloud Files container.. [optional] # noqa: E501 path (str, none_type): The path to upload logs to.. [optional] if omitted the server will use the default value of "null" # noqa: E501 region (str, none_type): The region to stream logs to.. [optional] # noqa: E501 public_key (str, none_type): A PGP public key that Fastly will use to encrypt your log files before writing them to disk.. [optional] if omitted the server will use the default value of "null" # noqa: E501 user (str): The username for your Cloud Files account.. [optional] # noqa: E501 - created_at (datetime, none_type): Date and time in ISO 8601 format.. [optional] # noqa: E501 - deleted_at (datetime, none_type): Date and time in ISO 8601 format.. [optional] # noqa: E501 - updated_at (datetime, none_type): Date and time in ISO 8601 format.. [optional] # noqa: E501 - service_id (str): [optional] # noqa: E501 - version (int): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -339,25 +343,25 @@ def __init__(self, *args, **kwargs): # noqa: E501 _visited_composed_classes = (Animal,) name (str): The name for the real-time logging configuration.. [optional] # noqa: E501 placement (str, none_type): Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. . [optional] # noqa: E501 - 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] if omitted the server will use the default value of 2 # noqa: E501 response_condition (str, none_type): The name of an existing condition in the configured endpoint, or leave blank to always execute.. [optional] # noqa: E501 format (str): A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats).. [optional] if omitted the server will use the default value of "%h %l %u %t "%r" %>s %b" # noqa: E501 + format_version (str): The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. . [optional] if omitted the server will use the default value of "2" # noqa: E501 message_type (str): How the message should be formatted.. [optional] if omitted the server will use the default value of "classic" # noqa: E501 timestamp_format (str, none_type): A timestamp format. [optional] # noqa: E501 - period (int): How frequently log files are finalized so they can be available for reading (in seconds).. [optional] if omitted the server will use the default value of 3600 # noqa: E501 - 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] if omitted the server will use the default value of 0 # noqa: E501 compression_codec (str): The codec used for compressing your logs. 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] # noqa: E501 + period (str): How frequently log files are finalized so they can be available for reading (in seconds).. [optional] if omitted the server will use the default value of "3600" # noqa: E501 + gzip_level (str): 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] if omitted the server will use the default value of "0" # noqa: E501 + created_at (datetime, none_type): Date and time in ISO 8601 format.. [optional] # noqa: E501 + deleted_at (datetime, none_type): Date and time in ISO 8601 format.. [optional] # noqa: E501 + updated_at (datetime, none_type): Date and time in ISO 8601 format.. [optional] # noqa: E501 + service_id (str): [optional] # noqa: E501 + version (str): [optional] # noqa: E501 access_key (str): Your Cloud Files account access key.. [optional] # noqa: E501 bucket_name (str): The name of your Cloud Files container.. [optional] # noqa: E501 path (str, none_type): The path to upload logs to.. [optional] if omitted the server will use the default value of "null" # noqa: E501 region (str, none_type): The region to stream logs to.. [optional] # noqa: E501 public_key (str, none_type): A PGP public key that Fastly will use to encrypt your log files before writing them to disk.. [optional] if omitted the server will use the default value of "null" # noqa: E501 user (str): The username for your Cloud Files account.. [optional] # noqa: E501 - created_at (datetime, none_type): Date and time in ISO 8601 format.. [optional] # noqa: E501 - deleted_at (datetime, none_type): Date and time in ISO 8601 format.. [optional] # noqa: E501 - updated_at (datetime, none_type): Date and time in ISO 8601 format.. [optional] # noqa: E501 - service_id (str): [optional] # noqa: E501 - version (int): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -423,8 +427,10 @@ def _composed_schemas(): 'anyOf': [ ], 'allOf': [ - LoggingCloudfiles, - ServiceIdAndVersion, + LoggingCloudfilesAdditional, + LoggingCommonResponse, + LoggingGenericCommonResponse, + ServiceIdAndVersionString, Timestamps, ], 'oneOf': [ diff --git a/fastly/model/logging_common.py b/fastly/model/logging_common.py index aee89b4..adc303c 100644 --- a/fastly/model/logging_common.py +++ b/fastly/model/logging_common.py @@ -59,10 +59,6 @@ class LoggingCommon(ModelNormal): 'WAF_DEBUG': "waf_debug", 'NULL': "null", }, - ('format_version',): { - 'v1': 1, - 'v2': 2, - }, } validations = { @@ -91,7 +87,6 @@ def openapi_types(): return { 'name': (str,), # noqa: E501 'placement': (str, none_type,), # noqa: E501 - 'format_version': (int,), # noqa: E501 'response_condition': (str, none_type,), # noqa: E501 'format': (str,), # noqa: E501 } @@ -104,7 +99,6 @@ def discriminator(): attribute_map = { 'name': 'name', # noqa: E501 'placement': 'placement', # noqa: E501 - 'format_version': 'format_version', # noqa: E501 'response_condition': 'response_condition', # noqa: E501 'format': 'format', # noqa: E501 } @@ -152,7 +146,6 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 _visited_composed_classes = (Animal,) name (str): The name for the real-time logging configuration.. [optional] # noqa: E501 placement (str, none_type): Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. . [optional] # noqa: E501 - 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] if omitted the server will use the default value of 2 # noqa: E501 response_condition (str, none_type): The name of an existing condition in the configured endpoint, or leave blank to always execute.. [optional] # noqa: E501 format (str): A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats).. [optional] if omitted the server will use the default value of "%h %l %u %t "%r" %>s %b" # noqa: E501 """ @@ -238,7 +231,6 @@ def __init__(self, *args, **kwargs): # noqa: E501 _visited_composed_classes = (Animal,) name (str): The name for the real-time logging configuration.. [optional] # noqa: E501 placement (str, none_type): Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. . [optional] # noqa: E501 - 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] if omitted the server will use the default value of 2 # noqa: E501 response_condition (str, none_type): The name of an existing condition in the configured endpoint, or leave blank to always execute.. [optional] # noqa: E501 format (str): A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats).. [optional] if omitted the server will use the default value of "%h %l %u %t "%r" %>s %b" # noqa: E501 """ diff --git a/fastly/model/logging_loggly.py b/fastly/model/logging_common_response.py similarity index 92% rename from fastly/model/logging_loggly.py rename to fastly/model/logging_common_response.py index 26c0ee1..d7f2a3b 100644 --- a/fastly/model/logging_loggly.py +++ b/fastly/model/logging_common_response.py @@ -30,13 +30,13 @@ def lazy_import(): - from fastly.model.logging_common import LoggingCommon - from fastly.model.logging_loggly_all_of import LoggingLogglyAllOf - globals()['LoggingCommon'] = LoggingCommon - globals()['LoggingLogglyAllOf'] = LoggingLogglyAllOf + from fastly.model.logging_common_response_all_of import LoggingCommonResponseAllOf + from fastly.model.logging_common_response_all_of1 import LoggingCommonResponseAllOf1 + globals()['LoggingCommonResponseAllOf'] = LoggingCommonResponseAllOf + globals()['LoggingCommonResponseAllOf1'] = LoggingCommonResponseAllOf1 -class LoggingLoggly(ModelComposed): +class LoggingCommonResponse(ModelComposed): """NOTE: This class is auto generated. Do not edit the class manually. @@ -66,8 +66,8 @@ class LoggingLoggly(ModelComposed): 'NULL': "null", }, ('format_version',): { - 'v1': 1, - 'v2': 2, + 'v1': "1", + 'v2': "2", }, } @@ -99,10 +99,9 @@ def openapi_types(): return { 'name': (str,), # noqa: E501 'placement': (str, none_type,), # noqa: E501 - 'format_version': (int,), # noqa: E501 'response_condition': (str, none_type,), # noqa: E501 'format': (str,), # noqa: E501 - 'token': (str,), # noqa: E501 + 'format_version': (str,), # noqa: E501 } @cached_property @@ -113,10 +112,9 @@ def discriminator(): attribute_map = { 'name': 'name', # noqa: E501 'placement': 'placement', # noqa: E501 - 'format_version': 'format_version', # noqa: E501 'response_condition': 'response_condition', # noqa: E501 'format': 'format', # noqa: E501 - 'token': 'token', # noqa: E501 + 'format_version': 'format_version', # noqa: E501 } read_only_vars = { @@ -125,7 +123,7 @@ def discriminator(): @classmethod @convert_js_args_to_python_args def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 - """LoggingLoggly - a model defined in OpenAPI + """LoggingCommonResponse - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -160,10 +158,9 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 _visited_composed_classes = (Animal,) name (str): The name for the real-time logging configuration.. [optional] # noqa: E501 placement (str, none_type): Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. . [optional] # noqa: E501 - 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] if omitted the server will use the default value of 2 # noqa: E501 response_condition (str, none_type): The name of an existing condition in the configured endpoint, or leave blank to always execute.. [optional] # noqa: E501 format (str): A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats).. [optional] if omitted the server will use the default value of "%h %l %u %t "%r" %>s %b" # noqa: E501 - token (str): 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] # noqa: E501 + format_version (str): The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. . [optional] if omitted the server will use the default value of "2" # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -230,7 +227,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 @convert_js_args_to_python_args def __init__(self, *args, **kwargs): # noqa: E501 - """LoggingLoggly - a model defined in OpenAPI + """LoggingCommonResponse - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -265,10 +262,9 @@ def __init__(self, *args, **kwargs): # noqa: E501 _visited_composed_classes = (Animal,) name (str): The name for the real-time logging configuration.. [optional] # noqa: E501 placement (str, none_type): Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. . [optional] # noqa: E501 - 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] if omitted the server will use the default value of 2 # noqa: E501 response_condition (str, none_type): The name of an existing condition in the configured endpoint, or leave blank to always execute.. [optional] # noqa: E501 format (str): A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats).. [optional] if omitted the server will use the default value of "%h %l %u %t "%r" %>s %b" # noqa: E501 - token (str): 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] # noqa: E501 + format_version (str): The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. . [optional] if omitted the server will use the default value of "2" # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -334,8 +330,8 @@ def _composed_schemas(): 'anyOf': [ ], 'allOf': [ - LoggingCommon, - LoggingLogglyAllOf, + LoggingCommonResponseAllOf, + LoggingCommonResponseAllOf1, ], 'oneOf': [ ], diff --git a/fastly/model/logging_common_response_all_of.py b/fastly/model/logging_common_response_all_of.py new file mode 100644 index 0000000..4486de6 --- /dev/null +++ b/fastly/model/logging_common_response_all_of.py @@ -0,0 +1,271 @@ +""" + Fastly API + + Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://developer.fastly.com/reference/api/) # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Contact: oss@fastly.com +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from fastly.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from fastly.exceptions import ApiAttributeError + + + +class LoggingCommonResponseAllOf(ModelNormal): + """NOTE: This class is auto generated. + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + ('placement',): { + 'None': None, + 'NONE': "none", + 'WAF_DEBUG': "waf_debug", + 'NULL': "null", + }, + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + return { + 'name': (str,), # noqa: E501 + 'placement': (str, none_type,), # noqa: E501 + 'response_condition': (str, none_type,), # noqa: E501 + 'format': (str,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'name': 'name', # noqa: E501 + 'placement': 'placement', # noqa: E501 + 'response_condition': 'response_condition', # noqa: E501 + 'format': 'format', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """LoggingCommonResponseAllOf - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + name (str): The name for the real-time logging configuration.. [optional] # noqa: E501 + placement (str, none_type): Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. . [optional] # noqa: E501 + response_condition (str, none_type): The name of an existing condition in the configured endpoint, or leave blank to always execute.. [optional] # noqa: E501 + format (str): A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats).. [optional] if omitted the server will use the default value of "%h %l %u %t "%r" %>s %b" # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """LoggingCommonResponseAllOf - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + name (str): The name for the real-time logging configuration.. [optional] # noqa: E501 + placement (str, none_type): Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. . [optional] # noqa: E501 + response_condition (str, none_type): The name of an existing condition in the configured endpoint, or leave blank to always execute.. [optional] # noqa: E501 + format (str): A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats).. [optional] if omitted the server will use the default value of "%h %l %u %t "%r" %>s %b" # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/fastly/model/logging_common_response_all_of1.py b/fastly/model/logging_common_response_all_of1.py new file mode 100644 index 0000000..abc6b82 --- /dev/null +++ b/fastly/model/logging_common_response_all_of1.py @@ -0,0 +1,257 @@ +""" + Fastly API + + Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://developer.fastly.com/reference/api/) # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Contact: oss@fastly.com +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from fastly.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from fastly.exceptions import ApiAttributeError + + + +class LoggingCommonResponseAllOf1(ModelNormal): + """NOTE: This class is auto generated. + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + ('format_version',): { + 'v1': "1", + 'v2': "2", + }, + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + return { + 'format_version': (str,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'format_version': 'format_version', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """LoggingCommonResponseAllOf1 - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + format_version (str): The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. . [optional] if omitted the server will use the default value of "2" # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """LoggingCommonResponseAllOf1 - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + format_version (str): The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. . [optional] if omitted the server will use the default value of "2" # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/fastly/model/logging_datadog.py b/fastly/model/logging_datadog.py deleted file mode 100644 index 3d78f79..0000000 --- a/fastly/model/logging_datadog.py +++ /dev/null @@ -1,350 +0,0 @@ -""" - Fastly API - - Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://developer.fastly.com/reference/api/) # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Contact: oss@fastly.com -""" - - -import re # noqa: F401 -import sys # noqa: F401 - -from fastly.model_utils import ( # noqa: F401 - ApiTypeError, - ModelComposed, - ModelNormal, - ModelSimple, - cached_property, - change_keys_js_to_python, - convert_js_args_to_python_args, - date, - datetime, - file_type, - none_type, - validate_get_composed_info, - OpenApiModel -) -from fastly.exceptions import ApiAttributeError - - -def lazy_import(): - from fastly.model.logging_common import LoggingCommon - from fastly.model.logging_datadog_all_of import LoggingDatadogAllOf - globals()['LoggingCommon'] = LoggingCommon - globals()['LoggingDatadogAllOf'] = LoggingDatadogAllOf - - -class LoggingDatadog(ModelComposed): - """NOTE: This class is auto generated. - Do not edit the class manually. - - Attributes: - allowed_values (dict): The key is the tuple path to the attribute - and the for var_name this is (var_name,). The value is a dict - with a capitalized key describing the allowed value and an allowed - value. These dicts store the allowed enum values. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - discriminator_value_class_map (dict): A dict to go from the discriminator - variable value to the discriminator class name. - validations (dict): The key is the tuple path to the attribute - and the for var_name this is (var_name,). The value is a dict - that stores validations for max_length, min_length, max_items, - min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, - inclusive_minimum, and regex. - additional_properties_type (tuple): A tuple of classes accepted - as additional properties values. - """ - - allowed_values = { - ('placement',): { - 'None': None, - 'NONE': "none", - 'WAF_DEBUG': "waf_debug", - 'NULL': "null", - }, - ('format_version',): { - 'v1': 1, - 'v2': 2, - }, - ('region',): { - 'US': "US", - 'EU': "EU", - }, - } - - validations = { - } - - @cached_property - def additional_properties_type(): - """ - This must be a method because a model may have properties that are - of type self, this must run after the class is loaded - """ - lazy_import() - return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 - - _nullable = False - - @cached_property - def openapi_types(): - """ - This must be a method because a model may have properties that are - of type self, this must run after the class is loaded - - Returns - openapi_types (dict): The key is attribute name - and the value is attribute type. - """ - lazy_import() - return { - 'name': (str,), # noqa: E501 - 'placement': (str, none_type,), # noqa: E501 - 'format_version': (int,), # noqa: E501 - 'response_condition': (str, none_type,), # noqa: E501 - 'format': (str,), # noqa: E501 - 'region': (str,), # noqa: E501 - 'token': (str,), # noqa: E501 - } - - @cached_property - def discriminator(): - return None - - - attribute_map = { - 'name': 'name', # noqa: E501 - 'placement': 'placement', # noqa: E501 - 'format_version': 'format_version', # noqa: E501 - 'response_condition': 'response_condition', # noqa: E501 - 'format': 'format', # noqa: E501 - 'region': 'region', # noqa: E501 - 'token': 'token', # noqa: E501 - } - - read_only_vars = { - } - - @classmethod - @convert_js_args_to_python_args - def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 - """LoggingDatadog - a model defined in OpenAPI - - Keyword Args: - _check_type (bool): if True, values for parameters in openapi_types - will be type checked and a TypeError will be - raised if the wrong type is input. - Defaults to True - _path_to_item (tuple/list): This is a list of keys or values to - drill down to the model in received_data - when deserializing a response - _spec_property_naming (bool): True if the variable names in the input data - are serialized names, as specified in the OpenAPI document. - False if the variable names in the input data - are pythonic names, e.g. snake case (default) - _configuration (Configuration): the instance to use when - deserializing a file_type parameter. - If passed, type conversion is attempted - If omitted no type conversion is done. - _visited_composed_classes (tuple): This stores a tuple of - classes that we have traveled through so that - if we see that class again we will not use its - discriminator again. - When traveling through a discriminator, the - composed schema that is - is traveled through is added to this set. - For example if Animal has a discriminator - petType and we pass in "Dog", and the class Dog - allOf includes Animal, we move through Animal - once using the discriminator, and pick Dog. - Then in Dog, we will make an instance of the - Animal class but this time we won't travel - through its discriminator because we passed in - _visited_composed_classes = (Animal,) - name (str): The name for the real-time logging configuration.. [optional] # noqa: E501 - placement (str, none_type): Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. . [optional] # noqa: E501 - 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] if omitted the server will use the default value of 2 # noqa: E501 - response_condition (str, none_type): The name of an existing condition in the configured endpoint, or leave blank to always execute.. [optional] # noqa: E501 - format (str): A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). Must produce valid JSON that Datadog can ingest. . [optional] if omitted the server will use the default value of "{"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"}" # noqa: E501 - region (str): The region that log data will be sent to.. [optional] if omitted the server will use the default value of "US" # noqa: E501 - token (str): The API key from your Datadog account. Required.. [optional] # noqa: E501 - """ - - _check_type = kwargs.pop('_check_type', True) - _spec_property_naming = kwargs.pop('_spec_property_naming', False) - _path_to_item = kwargs.pop('_path_to_item', ()) - _configuration = kwargs.pop('_configuration', None) - _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) - - self = super(OpenApiModel, cls).__new__(cls) - - if args: - raise ApiTypeError( - "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( - args, - self.__class__.__name__, - ), - path_to_item=_path_to_item, - valid_classes=(self.__class__,), - ) - - self._data_store = {} - self._check_type = _check_type - self._spec_property_naming = _spec_property_naming - self._path_to_item = _path_to_item - self._configuration = _configuration - self._visited_composed_classes = _visited_composed_classes + (self.__class__,) - - constant_args = { - '_check_type': _check_type, - '_path_to_item': _path_to_item, - '_spec_property_naming': _spec_property_naming, - '_configuration': _configuration, - '_visited_composed_classes': self._visited_composed_classes, - } - composed_info = validate_get_composed_info( - constant_args, kwargs, self) - self._composed_instances = composed_info[0] - self._var_name_to_model_instances = composed_info[1] - self._additional_properties_model_instances = composed_info[2] - discarded_args = composed_info[3] - - for var_name, var_value in kwargs.items(): - if var_name in discarded_args and \ - self._configuration is not None and \ - self._configuration.discard_unknown_keys and \ - self._additional_properties_model_instances: - # discard variable. - continue - setattr(self, var_name, var_value) - - return self - - required_properties = set([ - '_data_store', - '_check_type', - '_spec_property_naming', - '_path_to_item', - '_configuration', - '_visited_composed_classes', - '_composed_instances', - '_var_name_to_model_instances', - '_additional_properties_model_instances', - ]) - - @convert_js_args_to_python_args - def __init__(self, *args, **kwargs): # noqa: E501 - """LoggingDatadog - a model defined in OpenAPI - - Keyword Args: - _check_type (bool): if True, values for parameters in openapi_types - will be type checked and a TypeError will be - raised if the wrong type is input. - Defaults to True - _path_to_item (tuple/list): This is a list of keys or values to - drill down to the model in received_data - when deserializing a response - _spec_property_naming (bool): True if the variable names in the input data - are serialized names, as specified in the OpenAPI document. - False if the variable names in the input data - are pythonic names, e.g. snake case (default) - _configuration (Configuration): the instance to use when - deserializing a file_type parameter. - If passed, type conversion is attempted - If omitted no type conversion is done. - _visited_composed_classes (tuple): This stores a tuple of - classes that we have traveled through so that - if we see that class again we will not use its - discriminator again. - When traveling through a discriminator, the - composed schema that is - is traveled through is added to this set. - For example if Animal has a discriminator - petType and we pass in "Dog", and the class Dog - allOf includes Animal, we move through Animal - once using the discriminator, and pick Dog. - Then in Dog, we will make an instance of the - Animal class but this time we won't travel - through its discriminator because we passed in - _visited_composed_classes = (Animal,) - name (str): The name for the real-time logging configuration.. [optional] # noqa: E501 - placement (str, none_type): Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. . [optional] # noqa: E501 - 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] if omitted the server will use the default value of 2 # noqa: E501 - response_condition (str, none_type): The name of an existing condition in the configured endpoint, or leave blank to always execute.. [optional] # noqa: E501 - format (str): A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). Must produce valid JSON that Datadog can ingest. . [optional] if omitted the server will use the default value of "{"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"}" # noqa: E501 - region (str): The region that log data will be sent to.. [optional] if omitted the server will use the default value of "US" # noqa: E501 - token (str): The API key from your Datadog account. Required.. [optional] # noqa: E501 - """ - - _check_type = kwargs.pop('_check_type', True) - _spec_property_naming = kwargs.pop('_spec_property_naming', False) - _path_to_item = kwargs.pop('_path_to_item', ()) - _configuration = kwargs.pop('_configuration', None) - _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) - - if args: - raise ApiTypeError( - "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( - args, - self.__class__.__name__, - ), - path_to_item=_path_to_item, - valid_classes=(self.__class__,), - ) - - self._data_store = {} - self._check_type = _check_type - self._spec_property_naming = _spec_property_naming - self._path_to_item = _path_to_item - self._configuration = _configuration - self._visited_composed_classes = _visited_composed_classes + (self.__class__,) - - constant_args = { - '_check_type': _check_type, - '_path_to_item': _path_to_item, - '_spec_property_naming': _spec_property_naming, - '_configuration': _configuration, - '_visited_composed_classes': self._visited_composed_classes, - } - composed_info = validate_get_composed_info( - constant_args, kwargs, self) - self._composed_instances = composed_info[0] - self._var_name_to_model_instances = composed_info[1] - self._additional_properties_model_instances = composed_info[2] - discarded_args = composed_info[3] - - for var_name, var_value in kwargs.items(): - if var_name in discarded_args and \ - self._configuration is not None and \ - self._configuration.discard_unknown_keys and \ - self._additional_properties_model_instances: - # discard variable. - continue - setattr(self, var_name, var_value) - if var_name in self.read_only_vars: - raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " - f"class with read only attributes.") - - @cached_property - def _composed_schemas(): - # we need this here to make our import statements work - # we must store _composed_schemas in here so the code is only run - # when we invoke this method. If we kept this at the class - # level we would get an error because the class level - # code would be run when this module is imported, and these composed - # classes don't exist yet because their module has not finished - # loading - lazy_import() - return { - 'anyOf': [ - ], - 'allOf': [ - LoggingCommon, - LoggingDatadogAllOf, - ], - 'oneOf': [ - ], - } diff --git a/fastly/model/logging_datadog_all_of.py b/fastly/model/logging_datadog_additional.py similarity index 99% rename from fastly/model/logging_datadog_all_of.py rename to fastly/model/logging_datadog_additional.py index 1be90d6..75adc11 100644 --- a/fastly/model/logging_datadog_all_of.py +++ b/fastly/model/logging_datadog_additional.py @@ -30,7 +30,7 @@ -class LoggingDatadogAllOf(ModelNormal): +class LoggingDatadogAdditional(ModelNormal): """NOTE: This class is auto generated. Do not edit the class manually. @@ -107,7 +107,7 @@ def discriminator(): @classmethod @convert_js_args_to_python_args def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 - """LoggingDatadogAllOf - a model defined in OpenAPI + """LoggingDatadogAdditional - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -191,7 +191,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 @convert_js_args_to_python_args def __init__(self, *args, **kwargs): # noqa: E501 - """LoggingDatadogAllOf - a model defined in OpenAPI + """LoggingDatadogAdditional - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types diff --git a/fastly/model/logging_datadog_response.py b/fastly/model/logging_datadog_response.py index 4c5e358..2006a29 100644 --- a/fastly/model/logging_datadog_response.py +++ b/fastly/model/logging_datadog_response.py @@ -30,11 +30,13 @@ def lazy_import(): - from fastly.model.logging_datadog import LoggingDatadog - from fastly.model.service_id_and_version import ServiceIdAndVersion + from fastly.model.logging_common_response import LoggingCommonResponse + from fastly.model.logging_datadog_additional import LoggingDatadogAdditional + from fastly.model.service_id_and_version_string import ServiceIdAndVersionString from fastly.model.timestamps import Timestamps - globals()['LoggingDatadog'] = LoggingDatadog - globals()['ServiceIdAndVersion'] = ServiceIdAndVersion + globals()['LoggingCommonResponse'] = LoggingCommonResponse + globals()['LoggingDatadogAdditional'] = LoggingDatadogAdditional + globals()['ServiceIdAndVersionString'] = ServiceIdAndVersionString globals()['Timestamps'] = Timestamps @@ -68,8 +70,8 @@ class LoggingDatadogResponse(ModelComposed): 'NULL': "null", }, ('format_version',): { - 'v1': 1, - 'v2': 2, + 'v1': "1", + 'v2': "2", }, ('region',): { 'US': "US", @@ -105,16 +107,16 @@ def openapi_types(): return { 'name': (str,), # noqa: E501 'placement': (str, none_type,), # noqa: E501 - 'format_version': (int,), # noqa: E501 'response_condition': (str, none_type,), # noqa: E501 'format': (str,), # noqa: E501 + 'format_version': (str,), # noqa: E501 'region': (str,), # noqa: E501 'token': (str,), # noqa: E501 'created_at': (datetime, none_type,), # noqa: E501 'deleted_at': (datetime, none_type,), # noqa: E501 'updated_at': (datetime, none_type,), # noqa: E501 'service_id': (str,), # noqa: E501 - 'version': (int,), # noqa: E501 + 'version': (str,), # noqa: E501 } @cached_property @@ -125,9 +127,9 @@ def discriminator(): attribute_map = { 'name': 'name', # noqa: E501 'placement': 'placement', # noqa: E501 - 'format_version': 'format_version', # noqa: E501 'response_condition': 'response_condition', # noqa: E501 'format': 'format', # noqa: E501 + 'format_version': 'format_version', # noqa: E501 'region': 'region', # noqa: E501 'token': 'token', # noqa: E501 'created_at': 'created_at', # noqa: E501 @@ -183,16 +185,16 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 _visited_composed_classes = (Animal,) name (str): The name for the real-time logging configuration.. [optional] # noqa: E501 placement (str, none_type): Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. . [optional] # noqa: E501 - 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] if omitted the server will use the default value of 2 # noqa: E501 response_condition (str, none_type): The name of an existing condition in the configured endpoint, or leave blank to always execute.. [optional] # noqa: E501 format (str): A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). Must produce valid JSON that Datadog can ingest. . [optional] if omitted the server will use the default value of "{"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"}" # noqa: E501 + format_version (str): The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. . [optional] if omitted the server will use the default value of "2" # noqa: E501 region (str): The region that log data will be sent to.. [optional] if omitted the server will use the default value of "US" # noqa: E501 token (str): The API key from your Datadog account. Required.. [optional] # noqa: E501 created_at (datetime, none_type): Date and time in ISO 8601 format.. [optional] # noqa: E501 deleted_at (datetime, none_type): Date and time in ISO 8601 format.. [optional] # noqa: E501 updated_at (datetime, none_type): Date and time in ISO 8601 format.. [optional] # noqa: E501 service_id (str): [optional] # noqa: E501 - version (int): [optional] # noqa: E501 + version (str): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -294,16 +296,16 @@ def __init__(self, *args, **kwargs): # noqa: E501 _visited_composed_classes = (Animal,) name (str): The name for the real-time logging configuration.. [optional] # noqa: E501 placement (str, none_type): Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. . [optional] # noqa: E501 - 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] if omitted the server will use the default value of 2 # noqa: E501 response_condition (str, none_type): The name of an existing condition in the configured endpoint, or leave blank to always execute.. [optional] # noqa: E501 format (str): A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). Must produce valid JSON that Datadog can ingest. . [optional] if omitted the server will use the default value of "{"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"}" # noqa: E501 + format_version (str): The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. . [optional] if omitted the server will use the default value of "2" # noqa: E501 region (str): The region that log data will be sent to.. [optional] if omitted the server will use the default value of "US" # noqa: E501 token (str): The API key from your Datadog account. Required.. [optional] # noqa: E501 created_at (datetime, none_type): Date and time in ISO 8601 format.. [optional] # noqa: E501 deleted_at (datetime, none_type): Date and time in ISO 8601 format.. [optional] # noqa: E501 updated_at (datetime, none_type): Date and time in ISO 8601 format.. [optional] # noqa: E501 service_id (str): [optional] # noqa: E501 - version (int): [optional] # noqa: E501 + version (str): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -369,8 +371,9 @@ def _composed_schemas(): 'anyOf': [ ], 'allOf': [ - LoggingDatadog, - ServiceIdAndVersion, + LoggingCommonResponse, + LoggingDatadogAdditional, + ServiceIdAndVersionString, Timestamps, ], 'oneOf': [ diff --git a/fastly/model/logging_digitalocean.py b/fastly/model/logging_digitalocean.py deleted file mode 100644 index 1e65e7e..0000000 --- a/fastly/model/logging_digitalocean.py +++ /dev/null @@ -1,397 +0,0 @@ -""" - Fastly API - - Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://developer.fastly.com/reference/api/) # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Contact: oss@fastly.com -""" - - -import re # noqa: F401 -import sys # noqa: F401 - -from fastly.model_utils import ( # noqa: F401 - ApiTypeError, - ModelComposed, - ModelNormal, - ModelSimple, - cached_property, - change_keys_js_to_python, - convert_js_args_to_python_args, - date, - datetime, - file_type, - none_type, - validate_get_composed_info, - OpenApiModel -) -from fastly.exceptions import ApiAttributeError - - -def lazy_import(): - from fastly.model.logging_common import LoggingCommon - from fastly.model.logging_digitalocean_all_of import LoggingDigitaloceanAllOf - from fastly.model.logging_generic_common import LoggingGenericCommon - globals()['LoggingCommon'] = LoggingCommon - globals()['LoggingDigitaloceanAllOf'] = LoggingDigitaloceanAllOf - globals()['LoggingGenericCommon'] = LoggingGenericCommon - - -class LoggingDigitalocean(ModelComposed): - """NOTE: This class is auto generated. - Do not edit the class manually. - - Attributes: - allowed_values (dict): The key is the tuple path to the attribute - and the for var_name this is (var_name,). The value is a dict - with a capitalized key describing the allowed value and an allowed - value. These dicts store the allowed enum values. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - discriminator_value_class_map (dict): A dict to go from the discriminator - variable value to the discriminator class name. - validations (dict): The key is the tuple path to the attribute - and the for var_name this is (var_name,). The value is a dict - that stores validations for max_length, min_length, max_items, - min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, - inclusive_minimum, and regex. - additional_properties_type (tuple): A tuple of classes accepted - as additional properties values. - """ - - allowed_values = { - ('placement',): { - 'None': None, - 'NONE': "none", - 'WAF_DEBUG': "waf_debug", - 'NULL': "null", - }, - ('format_version',): { - 'v1': 1, - 'v2': 2, - }, - ('message_type',): { - 'CLASSIC': "classic", - 'LOGGLY': "loggly", - 'LOGPLEX': "logplex", - 'BLANK': "blank", - }, - ('compression_codec',): { - 'ZSTD': "zstd", - 'SNAPPY': "snappy", - 'GZIP': "gzip", - }, - } - - validations = { - } - - @cached_property - def additional_properties_type(): - """ - This must be a method because a model may have properties that are - of type self, this must run after the class is loaded - """ - lazy_import() - return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 - - _nullable = False - - @cached_property - def openapi_types(): - """ - This must be a method because a model may have properties that are - of type self, this must run after the class is loaded - - Returns - openapi_types (dict): The key is attribute name - and the value is attribute type. - """ - lazy_import() - return { - 'name': (str,), # noqa: E501 - 'placement': (str, none_type,), # noqa: E501 - 'format_version': (int,), # noqa: E501 - 'response_condition': (str, none_type,), # noqa: E501 - 'format': (str,), # noqa: E501 - 'message_type': (str,), # noqa: E501 - 'timestamp_format': (str, none_type,), # noqa: E501 - 'period': (int,), # noqa: E501 - 'gzip_level': (int,), # noqa: E501 - 'compression_codec': (str,), # noqa: E501 - 'bucket_name': (str,), # noqa: E501 - 'access_key': (str,), # noqa: E501 - 'secret_key': (str,), # noqa: E501 - 'domain': (str,), # noqa: E501 - 'path': (str, none_type,), # noqa: E501 - 'public_key': (str, none_type,), # noqa: E501 - } - - @cached_property - def discriminator(): - return None - - - attribute_map = { - 'name': 'name', # noqa: E501 - 'placement': 'placement', # noqa: E501 - 'format_version': 'format_version', # noqa: E501 - 'response_condition': 'response_condition', # noqa: E501 - 'format': 'format', # noqa: E501 - 'message_type': 'message_type', # noqa: E501 - 'timestamp_format': 'timestamp_format', # noqa: E501 - 'period': 'period', # noqa: E501 - 'gzip_level': 'gzip_level', # noqa: E501 - 'compression_codec': 'compression_codec', # noqa: E501 - 'bucket_name': 'bucket_name', # noqa: E501 - 'access_key': 'access_key', # noqa: E501 - 'secret_key': 'secret_key', # noqa: E501 - 'domain': 'domain', # noqa: E501 - 'path': 'path', # noqa: E501 - 'public_key': 'public_key', # noqa: E501 - } - - read_only_vars = { - 'timestamp_format', # noqa: E501 - } - - @classmethod - @convert_js_args_to_python_args - def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 - """LoggingDigitalocean - a model defined in OpenAPI - - Keyword Args: - _check_type (bool): if True, values for parameters in openapi_types - will be type checked and a TypeError will be - raised if the wrong type is input. - Defaults to True - _path_to_item (tuple/list): This is a list of keys or values to - drill down to the model in received_data - when deserializing a response - _spec_property_naming (bool): True if the variable names in the input data - are serialized names, as specified in the OpenAPI document. - False if the variable names in the input data - are pythonic names, e.g. snake case (default) - _configuration (Configuration): the instance to use when - deserializing a file_type parameter. - If passed, type conversion is attempted - If omitted no type conversion is done. - _visited_composed_classes (tuple): This stores a tuple of - classes that we have traveled through so that - if we see that class again we will not use its - discriminator again. - When traveling through a discriminator, the - composed schema that is - is traveled through is added to this set. - For example if Animal has a discriminator - petType and we pass in "Dog", and the class Dog - allOf includes Animal, we move through Animal - once using the discriminator, and pick Dog. - Then in Dog, we will make an instance of the - Animal class but this time we won't travel - through its discriminator because we passed in - _visited_composed_classes = (Animal,) - name (str): The name for the real-time logging configuration.. [optional] # noqa: E501 - placement (str, none_type): Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. . [optional] # noqa: E501 - 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] if omitted the server will use the default value of 2 # noqa: E501 - response_condition (str, none_type): The name of an existing condition in the configured endpoint, or leave blank to always execute.. [optional] # noqa: E501 - format (str): A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats).. [optional] if omitted the server will use the default value of "%h %l %u %t "%r" %>s %b" # noqa: E501 - message_type (str): How the message should be formatted.. [optional] if omitted the server will use the default value of "classic" # noqa: E501 - timestamp_format (str, none_type): A timestamp format. [optional] # noqa: E501 - period (int): How frequently log files are finalized so they can be available for reading (in seconds).. [optional] if omitted the server will use the default value of 3600 # noqa: E501 - 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] if omitted the server will use the default value of 0 # noqa: E501 - compression_codec (str): The codec used for compressing your logs. 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] # noqa: E501 - bucket_name (str): The name of the DigitalOcean Space.. [optional] # noqa: E501 - access_key (str): Your DigitalOcean Spaces account access key.. [optional] # noqa: E501 - secret_key (str): Your DigitalOcean Spaces account secret key.. [optional] # noqa: E501 - domain (str): The domain of the DigitalOcean Spaces endpoint.. [optional] if omitted the server will use the default value of "nyc3.digitaloceanspaces.com" # noqa: E501 - path (str, none_type): The path to upload logs to.. [optional] if omitted the server will use the default value of "null" # noqa: E501 - public_key (str, none_type): A PGP public key that Fastly will use to encrypt your log files before writing them to disk.. [optional] if omitted the server will use the default value of "null" # noqa: E501 - """ - - _check_type = kwargs.pop('_check_type', True) - _spec_property_naming = kwargs.pop('_spec_property_naming', False) - _path_to_item = kwargs.pop('_path_to_item', ()) - _configuration = kwargs.pop('_configuration', None) - _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) - - self = super(OpenApiModel, cls).__new__(cls) - - if args: - raise ApiTypeError( - "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( - args, - self.__class__.__name__, - ), - path_to_item=_path_to_item, - valid_classes=(self.__class__,), - ) - - self._data_store = {} - self._check_type = _check_type - self._spec_property_naming = _spec_property_naming - self._path_to_item = _path_to_item - self._configuration = _configuration - self._visited_composed_classes = _visited_composed_classes + (self.__class__,) - - constant_args = { - '_check_type': _check_type, - '_path_to_item': _path_to_item, - '_spec_property_naming': _spec_property_naming, - '_configuration': _configuration, - '_visited_composed_classes': self._visited_composed_classes, - } - composed_info = validate_get_composed_info( - constant_args, kwargs, self) - self._composed_instances = composed_info[0] - self._var_name_to_model_instances = composed_info[1] - self._additional_properties_model_instances = composed_info[2] - discarded_args = composed_info[3] - - for var_name, var_value in kwargs.items(): - if var_name in discarded_args and \ - self._configuration is not None and \ - self._configuration.discard_unknown_keys and \ - self._additional_properties_model_instances: - # discard variable. - continue - setattr(self, var_name, var_value) - - return self - - required_properties = set([ - '_data_store', - '_check_type', - '_spec_property_naming', - '_path_to_item', - '_configuration', - '_visited_composed_classes', - '_composed_instances', - '_var_name_to_model_instances', - '_additional_properties_model_instances', - ]) - - @convert_js_args_to_python_args - def __init__(self, *args, **kwargs): # noqa: E501 - """LoggingDigitalocean - a model defined in OpenAPI - - Keyword Args: - _check_type (bool): if True, values for parameters in openapi_types - will be type checked and a TypeError will be - raised if the wrong type is input. - Defaults to True - _path_to_item (tuple/list): This is a list of keys or values to - drill down to the model in received_data - when deserializing a response - _spec_property_naming (bool): True if the variable names in the input data - are serialized names, as specified in the OpenAPI document. - False if the variable names in the input data - are pythonic names, e.g. snake case (default) - _configuration (Configuration): the instance to use when - deserializing a file_type parameter. - If passed, type conversion is attempted - If omitted no type conversion is done. - _visited_composed_classes (tuple): This stores a tuple of - classes that we have traveled through so that - if we see that class again we will not use its - discriminator again. - When traveling through a discriminator, the - composed schema that is - is traveled through is added to this set. - For example if Animal has a discriminator - petType and we pass in "Dog", and the class Dog - allOf includes Animal, we move through Animal - once using the discriminator, and pick Dog. - Then in Dog, we will make an instance of the - Animal class but this time we won't travel - through its discriminator because we passed in - _visited_composed_classes = (Animal,) - name (str): The name for the real-time logging configuration.. [optional] # noqa: E501 - placement (str, none_type): Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. . [optional] # noqa: E501 - 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] if omitted the server will use the default value of 2 # noqa: E501 - response_condition (str, none_type): The name of an existing condition in the configured endpoint, or leave blank to always execute.. [optional] # noqa: E501 - format (str): A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats).. [optional] if omitted the server will use the default value of "%h %l %u %t "%r" %>s %b" # noqa: E501 - message_type (str): How the message should be formatted.. [optional] if omitted the server will use the default value of "classic" # noqa: E501 - timestamp_format (str, none_type): A timestamp format. [optional] # noqa: E501 - period (int): How frequently log files are finalized so they can be available for reading (in seconds).. [optional] if omitted the server will use the default value of 3600 # noqa: E501 - 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] if omitted the server will use the default value of 0 # noqa: E501 - compression_codec (str): The codec used for compressing your logs. 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] # noqa: E501 - bucket_name (str): The name of the DigitalOcean Space.. [optional] # noqa: E501 - access_key (str): Your DigitalOcean Spaces account access key.. [optional] # noqa: E501 - secret_key (str): Your DigitalOcean Spaces account secret key.. [optional] # noqa: E501 - domain (str): The domain of the DigitalOcean Spaces endpoint.. [optional] if omitted the server will use the default value of "nyc3.digitaloceanspaces.com" # noqa: E501 - path (str, none_type): The path to upload logs to.. [optional] if omitted the server will use the default value of "null" # noqa: E501 - public_key (str, none_type): A PGP public key that Fastly will use to encrypt your log files before writing them to disk.. [optional] if omitted the server will use the default value of "null" # noqa: E501 - """ - - _check_type = kwargs.pop('_check_type', True) - _spec_property_naming = kwargs.pop('_spec_property_naming', False) - _path_to_item = kwargs.pop('_path_to_item', ()) - _configuration = kwargs.pop('_configuration', None) - _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) - - if args: - raise ApiTypeError( - "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( - args, - self.__class__.__name__, - ), - path_to_item=_path_to_item, - valid_classes=(self.__class__,), - ) - - self._data_store = {} - self._check_type = _check_type - self._spec_property_naming = _spec_property_naming - self._path_to_item = _path_to_item - self._configuration = _configuration - self._visited_composed_classes = _visited_composed_classes + (self.__class__,) - - constant_args = { - '_check_type': _check_type, - '_path_to_item': _path_to_item, - '_spec_property_naming': _spec_property_naming, - '_configuration': _configuration, - '_visited_composed_classes': self._visited_composed_classes, - } - composed_info = validate_get_composed_info( - constant_args, kwargs, self) - self._composed_instances = composed_info[0] - self._var_name_to_model_instances = composed_info[1] - self._additional_properties_model_instances = composed_info[2] - discarded_args = composed_info[3] - - for var_name, var_value in kwargs.items(): - if var_name in discarded_args and \ - self._configuration is not None and \ - self._configuration.discard_unknown_keys and \ - self._additional_properties_model_instances: - # discard variable. - continue - setattr(self, var_name, var_value) - if var_name in self.read_only_vars: - raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " - f"class with read only attributes.") - - @cached_property - def _composed_schemas(): - # we need this here to make our import statements work - # we must store _composed_schemas in here so the code is only run - # when we invoke this method. If we kept this at the class - # level we would get an error because the class level - # code would be run when this module is imported, and these composed - # classes don't exist yet because their module has not finished - # loading - lazy_import() - return { - 'anyOf': [ - ], - 'allOf': [ - LoggingCommon, - LoggingDigitaloceanAllOf, - LoggingGenericCommon, - ], - 'oneOf': [ - ], - } diff --git a/fastly/model/logging_digitalocean_all_of.py b/fastly/model/logging_digitalocean_additional.py similarity index 98% rename from fastly/model/logging_digitalocean_all_of.py rename to fastly/model/logging_digitalocean_additional.py index c626fb3..bdadb2e 100644 --- a/fastly/model/logging_digitalocean_all_of.py +++ b/fastly/model/logging_digitalocean_additional.py @@ -30,7 +30,7 @@ -class LoggingDigitaloceanAllOf(ModelNormal): +class LoggingDigitaloceanAdditional(ModelNormal): """NOTE: This class is auto generated. Do not edit the class manually. @@ -109,7 +109,7 @@ def discriminator(): @classmethod @convert_js_args_to_python_args def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 - """LoggingDigitaloceanAllOf - a model defined in OpenAPI + """LoggingDigitaloceanAdditional - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -196,7 +196,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 @convert_js_args_to_python_args def __init__(self, *args, **kwargs): # noqa: E501 - """LoggingDigitaloceanAllOf - a model defined in OpenAPI + """LoggingDigitaloceanAdditional - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types diff --git a/fastly/model/logging_digitalocean_response.py b/fastly/model/logging_digitalocean_response.py index 0b5088d..c0020a5 100644 --- a/fastly/model/logging_digitalocean_response.py +++ b/fastly/model/logging_digitalocean_response.py @@ -30,11 +30,15 @@ def lazy_import(): - from fastly.model.logging_digitalocean import LoggingDigitalocean - from fastly.model.service_id_and_version import ServiceIdAndVersion + from fastly.model.logging_common_response import LoggingCommonResponse + from fastly.model.logging_digitalocean_additional import LoggingDigitaloceanAdditional + from fastly.model.logging_generic_common_response import LoggingGenericCommonResponse + from fastly.model.service_id_and_version_string import ServiceIdAndVersionString from fastly.model.timestamps import Timestamps - globals()['LoggingDigitalocean'] = LoggingDigitalocean - globals()['ServiceIdAndVersion'] = ServiceIdAndVersion + globals()['LoggingCommonResponse'] = LoggingCommonResponse + globals()['LoggingDigitaloceanAdditional'] = LoggingDigitaloceanAdditional + globals()['LoggingGenericCommonResponse'] = LoggingGenericCommonResponse + globals()['ServiceIdAndVersionString'] = ServiceIdAndVersionString globals()['Timestamps'] = Timestamps @@ -68,8 +72,8 @@ class LoggingDigitaloceanResponse(ModelComposed): 'NULL': "null", }, ('format_version',): { - 'v1': 1, - 'v2': 2, + 'v1': "1", + 'v2': "2", }, ('message_type',): { 'CLASSIC': "classic", @@ -112,25 +116,25 @@ def openapi_types(): return { 'name': (str,), # noqa: E501 'placement': (str, none_type,), # noqa: E501 - 'format_version': (int,), # noqa: E501 'response_condition': (str, none_type,), # noqa: E501 'format': (str,), # noqa: E501 + 'format_version': (str,), # noqa: E501 'message_type': (str,), # noqa: E501 'timestamp_format': (str, none_type,), # noqa: E501 - 'period': (int,), # noqa: E501 - 'gzip_level': (int,), # noqa: E501 'compression_codec': (str,), # noqa: E501 + 'period': (str,), # noqa: E501 + 'gzip_level': (str,), # noqa: E501 + 'created_at': (datetime, none_type,), # noqa: E501 + 'deleted_at': (datetime, none_type,), # noqa: E501 + 'updated_at': (datetime, none_type,), # noqa: E501 + 'service_id': (str,), # noqa: E501 + 'version': (str,), # noqa: E501 'bucket_name': (str,), # noqa: E501 'access_key': (str,), # noqa: E501 'secret_key': (str,), # noqa: E501 'domain': (str,), # noqa: E501 'path': (str, none_type,), # noqa: E501 'public_key': (str, none_type,), # noqa: E501 - 'created_at': (datetime, none_type,), # noqa: E501 - 'deleted_at': (datetime, none_type,), # noqa: E501 - 'updated_at': (datetime, none_type,), # noqa: E501 - 'service_id': (str,), # noqa: E501 - 'version': (int,), # noqa: E501 } @cached_property @@ -141,25 +145,25 @@ def discriminator(): attribute_map = { 'name': 'name', # noqa: E501 'placement': 'placement', # noqa: E501 - 'format_version': 'format_version', # noqa: E501 'response_condition': 'response_condition', # noqa: E501 'format': 'format', # noqa: E501 + 'format_version': 'format_version', # noqa: E501 'message_type': 'message_type', # noqa: E501 'timestamp_format': 'timestamp_format', # noqa: E501 + 'compression_codec': 'compression_codec', # noqa: E501 'period': 'period', # noqa: E501 'gzip_level': 'gzip_level', # noqa: E501 - 'compression_codec': 'compression_codec', # noqa: E501 + 'created_at': 'created_at', # noqa: E501 + 'deleted_at': 'deleted_at', # noqa: E501 + 'updated_at': 'updated_at', # noqa: E501 + 'service_id': 'service_id', # noqa: E501 + 'version': 'version', # noqa: E501 'bucket_name': 'bucket_name', # noqa: E501 'access_key': 'access_key', # noqa: E501 'secret_key': 'secret_key', # noqa: E501 'domain': 'domain', # noqa: E501 'path': 'path', # noqa: E501 'public_key': 'public_key', # noqa: E501 - 'created_at': 'created_at', # noqa: E501 - 'deleted_at': 'deleted_at', # noqa: E501 - 'updated_at': 'updated_at', # noqa: E501 - 'service_id': 'service_id', # noqa: E501 - 'version': 'version', # noqa: E501 } read_only_vars = { @@ -209,25 +213,25 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 _visited_composed_classes = (Animal,) name (str): The name for the real-time logging configuration.. [optional] # noqa: E501 placement (str, none_type): Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. . [optional] # noqa: E501 - 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] if omitted the server will use the default value of 2 # noqa: E501 response_condition (str, none_type): The name of an existing condition in the configured endpoint, or leave blank to always execute.. [optional] # noqa: E501 format (str): A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats).. [optional] if omitted the server will use the default value of "%h %l %u %t "%r" %>s %b" # noqa: E501 + format_version (str): The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. . [optional] if omitted the server will use the default value of "2" # noqa: E501 message_type (str): How the message should be formatted.. [optional] if omitted the server will use the default value of "classic" # noqa: E501 timestamp_format (str, none_type): A timestamp format. [optional] # noqa: E501 - period (int): How frequently log files are finalized so they can be available for reading (in seconds).. [optional] if omitted the server will use the default value of 3600 # noqa: E501 - 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] if omitted the server will use the default value of 0 # noqa: E501 compression_codec (str): The codec used for compressing your logs. 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] # noqa: E501 + period (str): How frequently log files are finalized so they can be available for reading (in seconds).. [optional] if omitted the server will use the default value of "3600" # noqa: E501 + gzip_level (str): 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] if omitted the server will use the default value of "0" # noqa: E501 + created_at (datetime, none_type): Date and time in ISO 8601 format.. [optional] # noqa: E501 + deleted_at (datetime, none_type): Date and time in ISO 8601 format.. [optional] # noqa: E501 + updated_at (datetime, none_type): Date and time in ISO 8601 format.. [optional] # noqa: E501 + service_id (str): [optional] # noqa: E501 + version (str): [optional] # noqa: E501 bucket_name (str): The name of the DigitalOcean Space.. [optional] # noqa: E501 access_key (str): Your DigitalOcean Spaces account access key.. [optional] # noqa: E501 secret_key (str): Your DigitalOcean Spaces account secret key.. [optional] # noqa: E501 domain (str): The domain of the DigitalOcean Spaces endpoint.. [optional] if omitted the server will use the default value of "nyc3.digitaloceanspaces.com" # noqa: E501 path (str, none_type): The path to upload logs to.. [optional] if omitted the server will use the default value of "null" # noqa: E501 public_key (str, none_type): A PGP public key that Fastly will use to encrypt your log files before writing them to disk.. [optional] if omitted the server will use the default value of "null" # noqa: E501 - created_at (datetime, none_type): Date and time in ISO 8601 format.. [optional] # noqa: E501 - deleted_at (datetime, none_type): Date and time in ISO 8601 format.. [optional] # noqa: E501 - updated_at (datetime, none_type): Date and time in ISO 8601 format.. [optional] # noqa: E501 - service_id (str): [optional] # noqa: E501 - version (int): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -329,25 +333,25 @@ def __init__(self, *args, **kwargs): # noqa: E501 _visited_composed_classes = (Animal,) name (str): The name for the real-time logging configuration.. [optional] # noqa: E501 placement (str, none_type): Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. . [optional] # noqa: E501 - 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] if omitted the server will use the default value of 2 # noqa: E501 response_condition (str, none_type): The name of an existing condition in the configured endpoint, or leave blank to always execute.. [optional] # noqa: E501 format (str): A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats).. [optional] if omitted the server will use the default value of "%h %l %u %t "%r" %>s %b" # noqa: E501 + format_version (str): The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. . [optional] if omitted the server will use the default value of "2" # noqa: E501 message_type (str): How the message should be formatted.. [optional] if omitted the server will use the default value of "classic" # noqa: E501 timestamp_format (str, none_type): A timestamp format. [optional] # noqa: E501 - period (int): How frequently log files are finalized so they can be available for reading (in seconds).. [optional] if omitted the server will use the default value of 3600 # noqa: E501 - 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] if omitted the server will use the default value of 0 # noqa: E501 compression_codec (str): The codec used for compressing your logs. 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] # noqa: E501 + period (str): How frequently log files are finalized so they can be available for reading (in seconds).. [optional] if omitted the server will use the default value of "3600" # noqa: E501 + gzip_level (str): 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] if omitted the server will use the default value of "0" # noqa: E501 + created_at (datetime, none_type): Date and time in ISO 8601 format.. [optional] # noqa: E501 + deleted_at (datetime, none_type): Date and time in ISO 8601 format.. [optional] # noqa: E501 + updated_at (datetime, none_type): Date and time in ISO 8601 format.. [optional] # noqa: E501 + service_id (str): [optional] # noqa: E501 + version (str): [optional] # noqa: E501 bucket_name (str): The name of the DigitalOcean Space.. [optional] # noqa: E501 access_key (str): Your DigitalOcean Spaces account access key.. [optional] # noqa: E501 secret_key (str): Your DigitalOcean Spaces account secret key.. [optional] # noqa: E501 domain (str): The domain of the DigitalOcean Spaces endpoint.. [optional] if omitted the server will use the default value of "nyc3.digitaloceanspaces.com" # noqa: E501 path (str, none_type): The path to upload logs to.. [optional] if omitted the server will use the default value of "null" # noqa: E501 public_key (str, none_type): A PGP public key that Fastly will use to encrypt your log files before writing them to disk.. [optional] if omitted the server will use the default value of "null" # noqa: E501 - created_at (datetime, none_type): Date and time in ISO 8601 format.. [optional] # noqa: E501 - deleted_at (datetime, none_type): Date and time in ISO 8601 format.. [optional] # noqa: E501 - updated_at (datetime, none_type): Date and time in ISO 8601 format.. [optional] # noqa: E501 - service_id (str): [optional] # noqa: E501 - version (int): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -413,8 +417,10 @@ def _composed_schemas(): 'anyOf': [ ], 'allOf': [ - LoggingDigitalocean, - ServiceIdAndVersion, + LoggingCommonResponse, + LoggingDigitaloceanAdditional, + LoggingGenericCommonResponse, + ServiceIdAndVersionString, Timestamps, ], 'oneOf': [ diff --git a/fastly/model/logging_elasticsearch.py b/fastly/model/logging_elasticsearch.py deleted file mode 100644 index 3809c70..0000000 --- a/fastly/model/logging_elasticsearch.py +++ /dev/null @@ -1,388 +0,0 @@ -""" - Fastly API - - Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://developer.fastly.com/reference/api/) # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Contact: oss@fastly.com -""" - - -import re # noqa: F401 -import sys # noqa: F401 - -from fastly.model_utils import ( # noqa: F401 - ApiTypeError, - ModelComposed, - ModelNormal, - ModelSimple, - cached_property, - change_keys_js_to_python, - convert_js_args_to_python_args, - date, - datetime, - file_type, - none_type, - validate_get_composed_info, - OpenApiModel -) -from fastly.exceptions import ApiAttributeError - - -def lazy_import(): - from fastly.model.logging_common import LoggingCommon - from fastly.model.logging_elasticsearch_all_of import LoggingElasticsearchAllOf - from fastly.model.logging_request_caps_common import LoggingRequestCapsCommon - from fastly.model.logging_tls_common import LoggingTlsCommon - globals()['LoggingCommon'] = LoggingCommon - globals()['LoggingElasticsearchAllOf'] = LoggingElasticsearchAllOf - globals()['LoggingRequestCapsCommon'] = LoggingRequestCapsCommon - globals()['LoggingTlsCommon'] = LoggingTlsCommon - - -class LoggingElasticsearch(ModelComposed): - """NOTE: This class is auto generated. - Do not edit the class manually. - - Attributes: - allowed_values (dict): The key is the tuple path to the attribute - and the for var_name this is (var_name,). The value is a dict - with a capitalized key describing the allowed value and an allowed - value. These dicts store the allowed enum values. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - discriminator_value_class_map (dict): A dict to go from the discriminator - variable value to the discriminator class name. - validations (dict): The key is the tuple path to the attribute - and the for var_name this is (var_name,). The value is a dict - that stores validations for max_length, min_length, max_items, - min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, - inclusive_minimum, and regex. - additional_properties_type (tuple): A tuple of classes accepted - as additional properties values. - """ - - allowed_values = { - ('placement',): { - 'None': None, - 'NONE': "none", - 'WAF_DEBUG': "waf_debug", - 'NULL': "null", - }, - ('format_version',): { - 'v1': 1, - 'v2': 2, - }, - } - - validations = { - } - - @cached_property - def additional_properties_type(): - """ - This must be a method because a model may have properties that are - of type self, this must run after the class is loaded - """ - lazy_import() - return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 - - _nullable = False - - @cached_property - def openapi_types(): - """ - This must be a method because a model may have properties that are - of type self, this must run after the class is loaded - - Returns - openapi_types (dict): The key is attribute name - and the value is attribute type. - """ - lazy_import() - return { - 'name': (str,), # noqa: E501 - 'placement': (str, none_type,), # noqa: E501 - 'format_version': (int,), # noqa: E501 - 'response_condition': (str, none_type,), # noqa: E501 - 'format': (str,), # noqa: E501 - 'tls_ca_cert': (str, none_type,), # noqa: E501 - 'tls_client_cert': (str, none_type,), # noqa: E501 - 'tls_client_key': (str, none_type,), # noqa: E501 - 'tls_hostname': (str, none_type,), # noqa: E501 - 'request_max_entries': (int,), # noqa: E501 - 'request_max_bytes': (int,), # noqa: E501 - 'index': (str,), # noqa: E501 - 'url': (str,), # noqa: E501 - 'pipeline': (str, none_type,), # noqa: E501 - 'user': (str, none_type,), # noqa: E501 - 'password': (str, none_type,), # noqa: E501 - } - - @cached_property - def discriminator(): - return None - - - attribute_map = { - 'name': 'name', # noqa: E501 - 'placement': 'placement', # noqa: E501 - 'format_version': 'format_version', # noqa: E501 - 'response_condition': 'response_condition', # noqa: E501 - 'format': 'format', # noqa: E501 - 'tls_ca_cert': 'tls_ca_cert', # noqa: E501 - 'tls_client_cert': 'tls_client_cert', # noqa: E501 - 'tls_client_key': 'tls_client_key', # noqa: E501 - 'tls_hostname': 'tls_hostname', # noqa: E501 - 'request_max_entries': 'request_max_entries', # noqa: E501 - 'request_max_bytes': 'request_max_bytes', # noqa: E501 - 'index': 'index', # noqa: E501 - 'url': 'url', # noqa: E501 - 'pipeline': 'pipeline', # noqa: E501 - 'user': 'user', # noqa: E501 - 'password': 'password', # noqa: E501 - } - - read_only_vars = { - } - - @classmethod - @convert_js_args_to_python_args - def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 - """LoggingElasticsearch - a model defined in OpenAPI - - Keyword Args: - _check_type (bool): if True, values for parameters in openapi_types - will be type checked and a TypeError will be - raised if the wrong type is input. - Defaults to True - _path_to_item (tuple/list): This is a list of keys or values to - drill down to the model in received_data - when deserializing a response - _spec_property_naming (bool): True if the variable names in the input data - are serialized names, as specified in the OpenAPI document. - False if the variable names in the input data - are pythonic names, e.g. snake case (default) - _configuration (Configuration): the instance to use when - deserializing a file_type parameter. - If passed, type conversion is attempted - If omitted no type conversion is done. - _visited_composed_classes (tuple): This stores a tuple of - classes that we have traveled through so that - if we see that class again we will not use its - discriminator again. - When traveling through a discriminator, the - composed schema that is - is traveled through is added to this set. - For example if Animal has a discriminator - petType and we pass in "Dog", and the class Dog - allOf includes Animal, we move through Animal - once using the discriminator, and pick Dog. - Then in Dog, we will make an instance of the - Animal class but this time we won't travel - through its discriminator because we passed in - _visited_composed_classes = (Animal,) - name (str): The name for the real-time logging configuration.. [optional] # noqa: E501 - placement (str, none_type): Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. . [optional] # noqa: E501 - 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] if omitted the server will use the default value of 2 # noqa: E501 - response_condition (str, none_type): The name of an existing condition in the configured endpoint, or leave blank to always execute.. [optional] # noqa: E501 - format (str): A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). Must produce valid JSON that Elasticsearch can ingest.. [optional] # noqa: E501 - tls_ca_cert (str, none_type): A secure certificate to authenticate a server with. Must be in PEM format.. [optional] if omitted the server will use the default value of "null" # noqa: E501 - tls_client_cert (str, none_type): The client certificate used to make authenticated requests. Must be in PEM format.. [optional] if omitted the server will use the default value of "null" # noqa: E501 - tls_client_key (str, none_type): The client private key used to make authenticated requests. Must be in PEM format.. [optional] if omitted the server will use the default value of "null" # noqa: E501 - tls_hostname (str, none_type): 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] if omitted the server will use the default value of "null" # noqa: E501 - request_max_entries (int): The maximum number of logs sent in one request. Defaults `0` for unbounded.. [optional] if omitted the server will use the default value of 0 # noqa: E501 - request_max_bytes (int): The maximum number of bytes sent in one request. Defaults `0` for unbounded.. [optional] if omitted the server will use the default value of 0 # noqa: E501 - index (str): 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] # noqa: E501 - url (str): The URL to stream logs to. Must use HTTPS.. [optional] # noqa: E501 - pipeline (str, none_type): 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] # noqa: E501 - user (str, none_type): Basic Auth username.. [optional] # noqa: E501 - password (str, none_type): Basic Auth password.. [optional] # noqa: E501 - """ - - _check_type = kwargs.pop('_check_type', True) - _spec_property_naming = kwargs.pop('_spec_property_naming', False) - _path_to_item = kwargs.pop('_path_to_item', ()) - _configuration = kwargs.pop('_configuration', None) - _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) - - self = super(OpenApiModel, cls).__new__(cls) - - if args: - raise ApiTypeError( - "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( - args, - self.__class__.__name__, - ), - path_to_item=_path_to_item, - valid_classes=(self.__class__,), - ) - - self._data_store = {} - self._check_type = _check_type - self._spec_property_naming = _spec_property_naming - self._path_to_item = _path_to_item - self._configuration = _configuration - self._visited_composed_classes = _visited_composed_classes + (self.__class__,) - - constant_args = { - '_check_type': _check_type, - '_path_to_item': _path_to_item, - '_spec_property_naming': _spec_property_naming, - '_configuration': _configuration, - '_visited_composed_classes': self._visited_composed_classes, - } - composed_info = validate_get_composed_info( - constant_args, kwargs, self) - self._composed_instances = composed_info[0] - self._var_name_to_model_instances = composed_info[1] - self._additional_properties_model_instances = composed_info[2] - discarded_args = composed_info[3] - - for var_name, var_value in kwargs.items(): - if var_name in discarded_args and \ - self._configuration is not None and \ - self._configuration.discard_unknown_keys and \ - self._additional_properties_model_instances: - # discard variable. - continue - setattr(self, var_name, var_value) - - return self - - required_properties = set([ - '_data_store', - '_check_type', - '_spec_property_naming', - '_path_to_item', - '_configuration', - '_visited_composed_classes', - '_composed_instances', - '_var_name_to_model_instances', - '_additional_properties_model_instances', - ]) - - @convert_js_args_to_python_args - def __init__(self, *args, **kwargs): # noqa: E501 - """LoggingElasticsearch - a model defined in OpenAPI - - Keyword Args: - _check_type (bool): if True, values for parameters in openapi_types - will be type checked and a TypeError will be - raised if the wrong type is input. - Defaults to True - _path_to_item (tuple/list): This is a list of keys or values to - drill down to the model in received_data - when deserializing a response - _spec_property_naming (bool): True if the variable names in the input data - are serialized names, as specified in the OpenAPI document. - False if the variable names in the input data - are pythonic names, e.g. snake case (default) - _configuration (Configuration): the instance to use when - deserializing a file_type parameter. - If passed, type conversion is attempted - If omitted no type conversion is done. - _visited_composed_classes (tuple): This stores a tuple of - classes that we have traveled through so that - if we see that class again we will not use its - discriminator again. - When traveling through a discriminator, the - composed schema that is - is traveled through is added to this set. - For example if Animal has a discriminator - petType and we pass in "Dog", and the class Dog - allOf includes Animal, we move through Animal - once using the discriminator, and pick Dog. - Then in Dog, we will make an instance of the - Animal class but this time we won't travel - through its discriminator because we passed in - _visited_composed_classes = (Animal,) - name (str): The name for the real-time logging configuration.. [optional] # noqa: E501 - placement (str, none_type): Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. . [optional] # noqa: E501 - 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] if omitted the server will use the default value of 2 # noqa: E501 - response_condition (str, none_type): The name of an existing condition in the configured endpoint, or leave blank to always execute.. [optional] # noqa: E501 - format (str): A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). Must produce valid JSON that Elasticsearch can ingest.. [optional] # noqa: E501 - tls_ca_cert (str, none_type): A secure certificate to authenticate a server with. Must be in PEM format.. [optional] if omitted the server will use the default value of "null" # noqa: E501 - tls_client_cert (str, none_type): The client certificate used to make authenticated requests. Must be in PEM format.. [optional] if omitted the server will use the default value of "null" # noqa: E501 - tls_client_key (str, none_type): The client private key used to make authenticated requests. Must be in PEM format.. [optional] if omitted the server will use the default value of "null" # noqa: E501 - tls_hostname (str, none_type): 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] if omitted the server will use the default value of "null" # noqa: E501 - request_max_entries (int): The maximum number of logs sent in one request. Defaults `0` for unbounded.. [optional] if omitted the server will use the default value of 0 # noqa: E501 - request_max_bytes (int): The maximum number of bytes sent in one request. Defaults `0` for unbounded.. [optional] if omitted the server will use the default value of 0 # noqa: E501 - index (str): 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] # noqa: E501 - url (str): The URL to stream logs to. Must use HTTPS.. [optional] # noqa: E501 - pipeline (str, none_type): 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] # noqa: E501 - user (str, none_type): Basic Auth username.. [optional] # noqa: E501 - password (str, none_type): Basic Auth password.. [optional] # noqa: E501 - """ - - _check_type = kwargs.pop('_check_type', True) - _spec_property_naming = kwargs.pop('_spec_property_naming', False) - _path_to_item = kwargs.pop('_path_to_item', ()) - _configuration = kwargs.pop('_configuration', None) - _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) - - if args: - raise ApiTypeError( - "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( - args, - self.__class__.__name__, - ), - path_to_item=_path_to_item, - valid_classes=(self.__class__,), - ) - - self._data_store = {} - self._check_type = _check_type - self._spec_property_naming = _spec_property_naming - self._path_to_item = _path_to_item - self._configuration = _configuration - self._visited_composed_classes = _visited_composed_classes + (self.__class__,) - - constant_args = { - '_check_type': _check_type, - '_path_to_item': _path_to_item, - '_spec_property_naming': _spec_property_naming, - '_configuration': _configuration, - '_visited_composed_classes': self._visited_composed_classes, - } - composed_info = validate_get_composed_info( - constant_args, kwargs, self) - self._composed_instances = composed_info[0] - self._var_name_to_model_instances = composed_info[1] - self._additional_properties_model_instances = composed_info[2] - discarded_args = composed_info[3] - - for var_name, var_value in kwargs.items(): - if var_name in discarded_args and \ - self._configuration is not None and \ - self._configuration.discard_unknown_keys and \ - self._additional_properties_model_instances: - # discard variable. - continue - setattr(self, var_name, var_value) - if var_name in self.read_only_vars: - raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " - f"class with read only attributes.") - - @cached_property - def _composed_schemas(): - # we need this here to make our import statements work - # we must store _composed_schemas in here so the code is only run - # when we invoke this method. If we kept this at the class - # level we would get an error because the class level - # code would be run when this module is imported, and these composed - # classes don't exist yet because their module has not finished - # loading - lazy_import() - return { - 'anyOf': [ - ], - 'allOf': [ - LoggingCommon, - LoggingElasticsearchAllOf, - LoggingRequestCapsCommon, - LoggingTlsCommon, - ], - 'oneOf': [ - ], - } diff --git a/fastly/model/logging_elasticsearch_all_of.py b/fastly/model/logging_elasticsearch_additional.py similarity index 98% rename from fastly/model/logging_elasticsearch_all_of.py rename to fastly/model/logging_elasticsearch_additional.py index 2d44b29..48cf9b9 100644 --- a/fastly/model/logging_elasticsearch_all_of.py +++ b/fastly/model/logging_elasticsearch_additional.py @@ -30,7 +30,7 @@ -class LoggingElasticsearchAllOf(ModelNormal): +class LoggingElasticsearchAdditional(ModelNormal): """NOTE: This class is auto generated. Do not edit the class manually. @@ -109,7 +109,7 @@ def discriminator(): @classmethod @convert_js_args_to_python_args def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 - """LoggingElasticsearchAllOf - a model defined in OpenAPI + """LoggingElasticsearchAdditional - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -196,7 +196,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 @convert_js_args_to_python_args def __init__(self, *args, **kwargs): # noqa: E501 - """LoggingElasticsearchAllOf - a model defined in OpenAPI + """LoggingElasticsearchAdditional - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types diff --git a/fastly/model/logging_elasticsearch_response.py b/fastly/model/logging_elasticsearch_response.py index d3ced13..56778de 100644 --- a/fastly/model/logging_elasticsearch_response.py +++ b/fastly/model/logging_elasticsearch_response.py @@ -30,11 +30,17 @@ def lazy_import(): - from fastly.model.logging_elasticsearch import LoggingElasticsearch - from fastly.model.service_id_and_version import ServiceIdAndVersion + from fastly.model.logging_common_response import LoggingCommonResponse + from fastly.model.logging_elasticsearch_additional import LoggingElasticsearchAdditional + from fastly.model.logging_request_caps_common import LoggingRequestCapsCommon + from fastly.model.logging_tls_common import LoggingTlsCommon + from fastly.model.service_id_and_version_string import ServiceIdAndVersionString from fastly.model.timestamps import Timestamps - globals()['LoggingElasticsearch'] = LoggingElasticsearch - globals()['ServiceIdAndVersion'] = ServiceIdAndVersion + globals()['LoggingCommonResponse'] = LoggingCommonResponse + globals()['LoggingElasticsearchAdditional'] = LoggingElasticsearchAdditional + globals()['LoggingRequestCapsCommon'] = LoggingRequestCapsCommon + globals()['LoggingTlsCommon'] = LoggingTlsCommon + globals()['ServiceIdAndVersionString'] = ServiceIdAndVersionString globals()['Timestamps'] = Timestamps @@ -68,8 +74,8 @@ class LoggingElasticsearchResponse(ModelComposed): 'NULL': "null", }, ('format_version',): { - 'v1': 1, - 'v2': 2, + 'v1': "1", + 'v2': "2", }, } @@ -101,9 +107,9 @@ def openapi_types(): return { 'name': (str,), # noqa: E501 'placement': (str, none_type,), # noqa: E501 - 'format_version': (int,), # noqa: E501 'response_condition': (str, none_type,), # noqa: E501 'format': (str,), # noqa: E501 + 'format_version': (str,), # noqa: E501 'tls_ca_cert': (str, none_type,), # noqa: E501 'tls_client_cert': (str, none_type,), # noqa: E501 'tls_client_key': (str, none_type,), # noqa: E501 @@ -119,7 +125,7 @@ def openapi_types(): 'deleted_at': (datetime, none_type,), # noqa: E501 'updated_at': (datetime, none_type,), # noqa: E501 'service_id': (str,), # noqa: E501 - 'version': (int,), # noqa: E501 + 'version': (str,), # noqa: E501 } @cached_property @@ -130,9 +136,9 @@ def discriminator(): attribute_map = { 'name': 'name', # noqa: E501 'placement': 'placement', # noqa: E501 - 'format_version': 'format_version', # noqa: E501 'response_condition': 'response_condition', # noqa: E501 'format': 'format', # noqa: E501 + 'format_version': 'format_version', # noqa: E501 'tls_ca_cert': 'tls_ca_cert', # noqa: E501 'tls_client_cert': 'tls_client_cert', # noqa: E501 'tls_client_key': 'tls_client_key', # noqa: E501 @@ -197,9 +203,9 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 _visited_composed_classes = (Animal,) name (str): The name for the real-time logging configuration.. [optional] # noqa: E501 placement (str, none_type): Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. . [optional] # noqa: E501 - 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] if omitted the server will use the default value of 2 # noqa: E501 response_condition (str, none_type): The name of an existing condition in the configured endpoint, or leave blank to always execute.. [optional] # noqa: E501 format (str): A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). Must produce valid JSON that Elasticsearch can ingest.. [optional] # noqa: E501 + format_version (str): The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. . [optional] if omitted the server will use the default value of "2" # noqa: E501 tls_ca_cert (str, none_type): A secure certificate to authenticate a server with. Must be in PEM format.. [optional] if omitted the server will use the default value of "null" # noqa: E501 tls_client_cert (str, none_type): The client certificate used to make authenticated requests. Must be in PEM format.. [optional] if omitted the server will use the default value of "null" # noqa: E501 tls_client_key (str, none_type): The client private key used to make authenticated requests. Must be in PEM format.. [optional] if omitted the server will use the default value of "null" # noqa: E501 @@ -215,7 +221,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 deleted_at (datetime, none_type): Date and time in ISO 8601 format.. [optional] # noqa: E501 updated_at (datetime, none_type): Date and time in ISO 8601 format.. [optional] # noqa: E501 service_id (str): [optional] # noqa: E501 - version (int): [optional] # noqa: E501 + version (str): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -317,9 +323,9 @@ def __init__(self, *args, **kwargs): # noqa: E501 _visited_composed_classes = (Animal,) name (str): The name for the real-time logging configuration.. [optional] # noqa: E501 placement (str, none_type): Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. . [optional] # noqa: E501 - 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] if omitted the server will use the default value of 2 # noqa: E501 response_condition (str, none_type): The name of an existing condition in the configured endpoint, or leave blank to always execute.. [optional] # noqa: E501 format (str): A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). Must produce valid JSON that Elasticsearch can ingest.. [optional] # noqa: E501 + format_version (str): The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. . [optional] if omitted the server will use the default value of "2" # noqa: E501 tls_ca_cert (str, none_type): A secure certificate to authenticate a server with. Must be in PEM format.. [optional] if omitted the server will use the default value of "null" # noqa: E501 tls_client_cert (str, none_type): The client certificate used to make authenticated requests. Must be in PEM format.. [optional] if omitted the server will use the default value of "null" # noqa: E501 tls_client_key (str, none_type): The client private key used to make authenticated requests. Must be in PEM format.. [optional] if omitted the server will use the default value of "null" # noqa: E501 @@ -335,7 +341,7 @@ def __init__(self, *args, **kwargs): # noqa: E501 deleted_at (datetime, none_type): Date and time in ISO 8601 format.. [optional] # noqa: E501 updated_at (datetime, none_type): Date and time in ISO 8601 format.. [optional] # noqa: E501 service_id (str): [optional] # noqa: E501 - version (int): [optional] # noqa: E501 + version (str): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -401,8 +407,11 @@ def _composed_schemas(): 'anyOf': [ ], 'allOf': [ - LoggingElasticsearch, - ServiceIdAndVersion, + LoggingCommonResponse, + LoggingElasticsearchAdditional, + LoggingRequestCapsCommon, + LoggingTlsCommon, + ServiceIdAndVersionString, Timestamps, ], 'oneOf': [ diff --git a/fastly/model/logging_format_version.py b/fastly/model/logging_format_version.py deleted file mode 100644 index 627b621..0000000 --- a/fastly/model/logging_format_version.py +++ /dev/null @@ -1,272 +0,0 @@ -""" - Fastly API - - Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://developer.fastly.com/reference/api/) # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Contact: oss@fastly.com -""" - - -import re # noqa: F401 -import sys # noqa: F401 - -from fastly.model_utils import ( # noqa: F401 - ApiTypeError, - ModelComposed, - ModelNormal, - ModelSimple, - cached_property, - change_keys_js_to_python, - convert_js_args_to_python_args, - date, - datetime, - file_type, - none_type, - validate_get_composed_info, - OpenApiModel -) -from fastly.exceptions import ApiAttributeError - - - -class LoggingFormatVersion(ModelSimple): - """NOTE: This class is auto generated. - Do not edit the class manually. - - Attributes: - allowed_values (dict): The key is the tuple path to the attribute - and the for var_name this is (var_name,). The value is a dict - with a capitalized key describing the allowed value and an allowed - value. These dicts store the allowed enum values. - validations (dict): The key is the tuple path to the attribute - and the for var_name this is (var_name,). The value is a dict - that stores validations for max_length, min_length, max_items, - min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, - inclusive_minimum, and regex. - additional_properties_type (tuple): A tuple of classes accepted - as additional properties values. - """ - - allowed_values = { - ('value',): { - 'v1': 1, - 'v2': 2, - }, - } - - validations = { - } - - additional_properties_type = None - - _nullable = False - - @cached_property - def openapi_types(): - """ - This must be a method because a model may have properties that are - of type self, this must run after the class is loaded - - Returns - openapi_types (dict): The key is attribute name - and the value is attribute type. - """ - return { - 'value': (int,), - } - - @cached_property - def discriminator(): - return None - - - attribute_map = {} - - read_only_vars = set() - - _composed_schemas = None - - required_properties = set([ - '_data_store', - '_check_type', - '_spec_property_naming', - '_path_to_item', - '_configuration', - '_visited_composed_classes', - ]) - - @convert_js_args_to_python_args - def __init__(self, *args, **kwargs): - """LoggingFormatVersion - a model defined in OpenAPI - - Note that value can be passed either in args or in kwargs, but not in both. - - Args: - args[0] (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`. . if omitted defaults to 2, must be one of [1, 2, ] # noqa: E501 - - Keyword Args: - value (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`. . if omitted defaults to 2, must be one of [1, 2, ] # noqa: E501 - _check_type (bool): if True, values for parameters in openapi_types - will be type checked and a TypeError will be - raised if the wrong type is input. - Defaults to True - _path_to_item (tuple/list): This is a list of keys or values to - drill down to the model in received_data - when deserializing a response - _spec_property_naming (bool): True if the variable names in the input data - are serialized names, as specified in the OpenAPI document. - False if the variable names in the input data - are pythonic names, e.g. snake case (default) - _configuration (Configuration): the instance to use when - deserializing a file_type parameter. - If passed, type conversion is attempted - If omitted no type conversion is done. - _visited_composed_classes (tuple): This stores a tuple of - classes that we have traveled through so that - if we see that class again we will not use its - discriminator again. - When traveling through a discriminator, the - composed schema that is - is traveled through is added to this set. - For example if Animal has a discriminator - petType and we pass in "Dog", and the class Dog - allOf includes Animal, we move through Animal - once using the discriminator, and pick Dog. - Then in Dog, we will make an instance of the - Animal class but this time we won't travel - through its discriminator because we passed in - _visited_composed_classes = (Animal,) - """ - # required up here when default value is not given - _path_to_item = kwargs.pop('_path_to_item', ()) - - if 'value' in kwargs: - value = kwargs.pop('value') - elif args: - args = list(args) - value = args.pop(0) - else: - value = 2 - - _check_type = kwargs.pop('_check_type', True) - _spec_property_naming = kwargs.pop('_spec_property_naming', False) - _configuration = kwargs.pop('_configuration', None) - _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) - - if args: - raise ApiTypeError( - "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( - args, - self.__class__.__name__, - ), - path_to_item=_path_to_item, - valid_classes=(self.__class__,), - ) - - self._data_store = {} - self._check_type = _check_type - self._spec_property_naming = _spec_property_naming - self._path_to_item = _path_to_item - self._configuration = _configuration - self._visited_composed_classes = _visited_composed_classes + (self.__class__,) - self.value = value - if kwargs: - raise ApiTypeError( - "Invalid named arguments=%s passed to %s. Remove those invalid named arguments." % ( - kwargs, - self.__class__.__name__, - ), - path_to_item=_path_to_item, - valid_classes=(self.__class__,), - ) - - @classmethod - @convert_js_args_to_python_args - def _from_openapi_data(cls, *args, **kwargs): - """LoggingFormatVersion - a model defined in OpenAPI - - Note that value can be passed either in args or in kwargs, but not in both. - - Args: - args[0] (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`. . if omitted defaults to 2, must be one of [1, 2, ] # noqa: E501 - - Keyword Args: - value (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`. . if omitted defaults to 2, must be one of [1, 2, ] # noqa: E501 - _check_type (bool): if True, values for parameters in openapi_types - will be type checked and a TypeError will be - raised if the wrong type is input. - Defaults to True - _path_to_item (tuple/list): This is a list of keys or values to - drill down to the model in received_data - when deserializing a response - _spec_property_naming (bool): True if the variable names in the input data - are serialized names, as specified in the OpenAPI document. - False if the variable names in the input data - are pythonic names, e.g. snake case (default) - _configuration (Configuration): the instance to use when - deserializing a file_type parameter. - If passed, type conversion is attempted - If omitted no type conversion is done. - _visited_composed_classes (tuple): This stores a tuple of - classes that we have traveled through so that - if we see that class again we will not use its - discriminator again. - When traveling through a discriminator, the - composed schema that is - is traveled through is added to this set. - For example if Animal has a discriminator - petType and we pass in "Dog", and the class Dog - allOf includes Animal, we move through Animal - once using the discriminator, and pick Dog. - Then in Dog, we will make an instance of the - Animal class but this time we won't travel - through its discriminator because we passed in - _visited_composed_classes = (Animal,) - """ - # required up here when default value is not given - _path_to_item = kwargs.pop('_path_to_item', ()) - - self = super(OpenApiModel, cls).__new__(cls) - - if 'value' in kwargs: - value = kwargs.pop('value') - elif args: - args = list(args) - value = args.pop(0) - else: - value = 2 - - _check_type = kwargs.pop('_check_type', True) - _spec_property_naming = kwargs.pop('_spec_property_naming', False) - _configuration = kwargs.pop('_configuration', None) - _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) - - if args: - raise ApiTypeError( - "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( - args, - self.__class__.__name__, - ), - path_to_item=_path_to_item, - valid_classes=(self.__class__,), - ) - - self._data_store = {} - self._check_type = _check_type - self._spec_property_naming = _spec_property_naming - self._path_to_item = _path_to_item - self._configuration = _configuration - self._visited_composed_classes = _visited_composed_classes + (self.__class__,) - self.value = value - if kwargs: - raise ApiTypeError( - "Invalid named arguments=%s passed to %s. Remove those invalid named arguments." % ( - kwargs, - self.__class__.__name__, - ), - path_to_item=_path_to_item, - valid_classes=(self.__class__,), - ) - - return self diff --git a/fastly/model/logging_format_version_integer.py b/fastly/model/logging_format_version_integer.py new file mode 100644 index 0000000..9da5fe3 --- /dev/null +++ b/fastly/model/logging_format_version_integer.py @@ -0,0 +1,257 @@ +""" + Fastly API + + Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://developer.fastly.com/reference/api/) # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Contact: oss@fastly.com +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from fastly.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from fastly.exceptions import ApiAttributeError + + + +class LoggingFormatVersionInteger(ModelNormal): + """NOTE: This class is auto generated. + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + ('format_version',): { + 'v1': 1, + 'v2': 2, + }, + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + return { + 'format_version': (int,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'format_version': 'format_version', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """LoggingFormatVersionInteger - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + 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] if omitted the server will use the default value of 2 # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """LoggingFormatVersionInteger - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + 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] if omitted the server will use the default value of 2 # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/fastly/model/logging_format_version_string.py b/fastly/model/logging_format_version_string.py new file mode 100644 index 0000000..6ca894a --- /dev/null +++ b/fastly/model/logging_format_version_string.py @@ -0,0 +1,257 @@ +""" + Fastly API + + Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://developer.fastly.com/reference/api/) # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Contact: oss@fastly.com +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from fastly.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from fastly.exceptions import ApiAttributeError + + + +class LoggingFormatVersionString(ModelNormal): + """NOTE: This class is auto generated. + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + ('format_version',): { + 'v1': "1", + 'v2': "2", + }, + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + return { + 'format_version': (str,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'format_version': 'format_version', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """LoggingFormatVersionString - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + format_version (str): The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. . [optional] if omitted the server will use the default value of "2" # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """LoggingFormatVersionString - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + format_version (str): The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. . [optional] if omitted the server will use the default value of "2" # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/fastly/model/logging_ftp.py b/fastly/model/logging_ftp.py deleted file mode 100644 index f36339d..0000000 --- a/fastly/model/logging_ftp.py +++ /dev/null @@ -1,405 +0,0 @@ -""" - Fastly API - - Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://developer.fastly.com/reference/api/) # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Contact: oss@fastly.com -""" - - -import re # noqa: F401 -import sys # noqa: F401 - -from fastly.model_utils import ( # noqa: F401 - ApiTypeError, - ModelComposed, - ModelNormal, - ModelSimple, - cached_property, - change_keys_js_to_python, - convert_js_args_to_python_args, - date, - datetime, - file_type, - none_type, - validate_get_composed_info, - OpenApiModel -) -from fastly.exceptions import ApiAttributeError - - -def lazy_import(): - from fastly.model.logging_common import LoggingCommon - from fastly.model.logging_ftp_all_of import LoggingFtpAllOf - from fastly.model.logging_generic_common import LoggingGenericCommon - globals()['LoggingCommon'] = LoggingCommon - globals()['LoggingFtpAllOf'] = LoggingFtpAllOf - globals()['LoggingGenericCommon'] = LoggingGenericCommon - - -class LoggingFtp(ModelComposed): - """NOTE: This class is auto generated. - Do not edit the class manually. - - Attributes: - allowed_values (dict): The key is the tuple path to the attribute - and the for var_name this is (var_name,). The value is a dict - with a capitalized key describing the allowed value and an allowed - value. These dicts store the allowed enum values. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - discriminator_value_class_map (dict): A dict to go from the discriminator - variable value to the discriminator class name. - validations (dict): The key is the tuple path to the attribute - and the for var_name this is (var_name,). The value is a dict - that stores validations for max_length, min_length, max_items, - min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, - inclusive_minimum, and regex. - additional_properties_type (tuple): A tuple of classes accepted - as additional properties values. - """ - - allowed_values = { - ('placement',): { - 'None': None, - 'NONE': "none", - 'WAF_DEBUG': "waf_debug", - 'NULL': "null", - }, - ('format_version',): { - 'v1': 1, - 'v2': 2, - }, - ('message_type',): { - 'CLASSIC': "classic", - 'LOGGLY': "loggly", - 'LOGPLEX': "logplex", - 'BLANK': "blank", - }, - ('compression_codec',): { - 'ZSTD': "zstd", - 'SNAPPY': "snappy", - 'GZIP': "gzip", - }, - } - - validations = { - } - - @cached_property - def additional_properties_type(): - """ - This must be a method because a model may have properties that are - of type self, this must run after the class is loaded - """ - lazy_import() - return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 - - _nullable = False - - @cached_property - def openapi_types(): - """ - This must be a method because a model may have properties that are - of type self, this must run after the class is loaded - - Returns - openapi_types (dict): The key is attribute name - and the value is attribute type. - """ - lazy_import() - return { - 'name': (str,), # noqa: E501 - 'placement': (str, none_type,), # noqa: E501 - 'format_version': (int,), # noqa: E501 - 'response_condition': (str, none_type,), # noqa: E501 - 'format': (str,), # noqa: E501 - 'message_type': (str,), # noqa: E501 - 'timestamp_format': (str, none_type,), # noqa: E501 - 'period': (int,), # noqa: E501 - 'gzip_level': (int,), # noqa: E501 - 'compression_codec': (str,), # noqa: E501 - 'address': (str,), # noqa: E501 - 'hostname': (str,), # noqa: E501 - 'ipv4': (str,), # noqa: E501 - 'password': (str,), # noqa: E501 - 'path': (str,), # noqa: E501 - 'port': (int,), # noqa: E501 - 'public_key': (str, none_type,), # noqa: E501 - 'user': (str,), # noqa: E501 - } - - @cached_property - def discriminator(): - return None - - - attribute_map = { - 'name': 'name', # noqa: E501 - 'placement': 'placement', # noqa: E501 - 'format_version': 'format_version', # noqa: E501 - 'response_condition': 'response_condition', # noqa: E501 - 'format': 'format', # noqa: E501 - 'message_type': 'message_type', # noqa: E501 - 'timestamp_format': 'timestamp_format', # noqa: E501 - 'period': 'period', # noqa: E501 - 'gzip_level': 'gzip_level', # noqa: E501 - 'compression_codec': 'compression_codec', # noqa: E501 - 'address': 'address', # noqa: E501 - 'hostname': 'hostname', # noqa: E501 - 'ipv4': 'ipv4', # noqa: E501 - 'password': 'password', # noqa: E501 - 'path': 'path', # noqa: E501 - 'port': 'port', # noqa: E501 - 'public_key': 'public_key', # noqa: E501 - 'user': 'user', # noqa: E501 - } - - read_only_vars = { - 'timestamp_format', # noqa: E501 - } - - @classmethod - @convert_js_args_to_python_args - def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 - """LoggingFtp - a model defined in OpenAPI - - Keyword Args: - _check_type (bool): if True, values for parameters in openapi_types - will be type checked and a TypeError will be - raised if the wrong type is input. - Defaults to True - _path_to_item (tuple/list): This is a list of keys or values to - drill down to the model in received_data - when deserializing a response - _spec_property_naming (bool): True if the variable names in the input data - are serialized names, as specified in the OpenAPI document. - False if the variable names in the input data - are pythonic names, e.g. snake case (default) - _configuration (Configuration): the instance to use when - deserializing a file_type parameter. - If passed, type conversion is attempted - If omitted no type conversion is done. - _visited_composed_classes (tuple): This stores a tuple of - classes that we have traveled through so that - if we see that class again we will not use its - discriminator again. - When traveling through a discriminator, the - composed schema that is - is traveled through is added to this set. - For example if Animal has a discriminator - petType and we pass in "Dog", and the class Dog - allOf includes Animal, we move through Animal - once using the discriminator, and pick Dog. - Then in Dog, we will make an instance of the - Animal class but this time we won't travel - through its discriminator because we passed in - _visited_composed_classes = (Animal,) - name (str): The name for the real-time logging configuration.. [optional] # noqa: E501 - placement (str, none_type): Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. . [optional] # noqa: E501 - 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] if omitted the server will use the default value of 2 # noqa: E501 - response_condition (str, none_type): The name of an existing condition in the configured endpoint, or leave blank to always execute.. [optional] # noqa: E501 - format (str): A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats).. [optional] if omitted the server will use the default value of "%h %l %u %t "%r" %>s %b" # noqa: E501 - message_type (str): How the message should be formatted.. [optional] if omitted the server will use the default value of "classic" # noqa: E501 - timestamp_format (str, none_type): A timestamp format. [optional] # noqa: E501 - period (int): How frequently log files are finalized so they can be available for reading (in seconds).. [optional] if omitted the server will use the default value of 3600 # noqa: E501 - 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] if omitted the server will use the default value of 0 # noqa: E501 - compression_codec (str): The codec used for compressing your logs. 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] # noqa: E501 - address (str): An hostname or IPv4 address.. [optional] # noqa: E501 - hostname (str): Hostname used.. [optional] # noqa: E501 - ipv4 (str): IPv4 address of the host.. [optional] # noqa: E501 - password (str): The password for the server. For anonymous use an email address.. [optional] # noqa: E501 - path (str): The path to upload log files to. If the path ends in `/` then it is treated as a directory.. [optional] # noqa: E501 - port (int): The port number.. [optional] if omitted the server will use the default value of 21 # noqa: E501 - public_key (str, none_type): A PGP public key that Fastly will use to encrypt your log files before writing them to disk.. [optional] if omitted the server will use the default value of "null" # noqa: E501 - user (str): The username for the server. Can be anonymous.. [optional] # noqa: E501 - """ - - _check_type = kwargs.pop('_check_type', True) - _spec_property_naming = kwargs.pop('_spec_property_naming', False) - _path_to_item = kwargs.pop('_path_to_item', ()) - _configuration = kwargs.pop('_configuration', None) - _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) - - self = super(OpenApiModel, cls).__new__(cls) - - if args: - raise ApiTypeError( - "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( - args, - self.__class__.__name__, - ), - path_to_item=_path_to_item, - valid_classes=(self.__class__,), - ) - - self._data_store = {} - self._check_type = _check_type - self._spec_property_naming = _spec_property_naming - self._path_to_item = _path_to_item - self._configuration = _configuration - self._visited_composed_classes = _visited_composed_classes + (self.__class__,) - - constant_args = { - '_check_type': _check_type, - '_path_to_item': _path_to_item, - '_spec_property_naming': _spec_property_naming, - '_configuration': _configuration, - '_visited_composed_classes': self._visited_composed_classes, - } - composed_info = validate_get_composed_info( - constant_args, kwargs, self) - self._composed_instances = composed_info[0] - self._var_name_to_model_instances = composed_info[1] - self._additional_properties_model_instances = composed_info[2] - discarded_args = composed_info[3] - - for var_name, var_value in kwargs.items(): - if var_name in discarded_args and \ - self._configuration is not None and \ - self._configuration.discard_unknown_keys and \ - self._additional_properties_model_instances: - # discard variable. - continue - setattr(self, var_name, var_value) - - return self - - required_properties = set([ - '_data_store', - '_check_type', - '_spec_property_naming', - '_path_to_item', - '_configuration', - '_visited_composed_classes', - '_composed_instances', - '_var_name_to_model_instances', - '_additional_properties_model_instances', - ]) - - @convert_js_args_to_python_args - def __init__(self, *args, **kwargs): # noqa: E501 - """LoggingFtp - a model defined in OpenAPI - - Keyword Args: - _check_type (bool): if True, values for parameters in openapi_types - will be type checked and a TypeError will be - raised if the wrong type is input. - Defaults to True - _path_to_item (tuple/list): This is a list of keys or values to - drill down to the model in received_data - when deserializing a response - _spec_property_naming (bool): True if the variable names in the input data - are serialized names, as specified in the OpenAPI document. - False if the variable names in the input data - are pythonic names, e.g. snake case (default) - _configuration (Configuration): the instance to use when - deserializing a file_type parameter. - If passed, type conversion is attempted - If omitted no type conversion is done. - _visited_composed_classes (tuple): This stores a tuple of - classes that we have traveled through so that - if we see that class again we will not use its - discriminator again. - When traveling through a discriminator, the - composed schema that is - is traveled through is added to this set. - For example if Animal has a discriminator - petType and we pass in "Dog", and the class Dog - allOf includes Animal, we move through Animal - once using the discriminator, and pick Dog. - Then in Dog, we will make an instance of the - Animal class but this time we won't travel - through its discriminator because we passed in - _visited_composed_classes = (Animal,) - name (str): The name for the real-time logging configuration.. [optional] # noqa: E501 - placement (str, none_type): Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. . [optional] # noqa: E501 - 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] if omitted the server will use the default value of 2 # noqa: E501 - response_condition (str, none_type): The name of an existing condition in the configured endpoint, or leave blank to always execute.. [optional] # noqa: E501 - format (str): A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats).. [optional] if omitted the server will use the default value of "%h %l %u %t "%r" %>s %b" # noqa: E501 - message_type (str): How the message should be formatted.. [optional] if omitted the server will use the default value of "classic" # noqa: E501 - timestamp_format (str, none_type): A timestamp format. [optional] # noqa: E501 - period (int): How frequently log files are finalized so they can be available for reading (in seconds).. [optional] if omitted the server will use the default value of 3600 # noqa: E501 - 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] if omitted the server will use the default value of 0 # noqa: E501 - compression_codec (str): The codec used for compressing your logs. 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] # noqa: E501 - address (str): An hostname or IPv4 address.. [optional] # noqa: E501 - hostname (str): Hostname used.. [optional] # noqa: E501 - ipv4 (str): IPv4 address of the host.. [optional] # noqa: E501 - password (str): The password for the server. For anonymous use an email address.. [optional] # noqa: E501 - path (str): The path to upload log files to. If the path ends in `/` then it is treated as a directory.. [optional] # noqa: E501 - port (int): The port number.. [optional] if omitted the server will use the default value of 21 # noqa: E501 - public_key (str, none_type): A PGP public key that Fastly will use to encrypt your log files before writing them to disk.. [optional] if omitted the server will use the default value of "null" # noqa: E501 - user (str): The username for the server. Can be anonymous.. [optional] # noqa: E501 - """ - - _check_type = kwargs.pop('_check_type', True) - _spec_property_naming = kwargs.pop('_spec_property_naming', False) - _path_to_item = kwargs.pop('_path_to_item', ()) - _configuration = kwargs.pop('_configuration', None) - _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) - - if args: - raise ApiTypeError( - "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( - args, - self.__class__.__name__, - ), - path_to_item=_path_to_item, - valid_classes=(self.__class__,), - ) - - self._data_store = {} - self._check_type = _check_type - self._spec_property_naming = _spec_property_naming - self._path_to_item = _path_to_item - self._configuration = _configuration - self._visited_composed_classes = _visited_composed_classes + (self.__class__,) - - constant_args = { - '_check_type': _check_type, - '_path_to_item': _path_to_item, - '_spec_property_naming': _spec_property_naming, - '_configuration': _configuration, - '_visited_composed_classes': self._visited_composed_classes, - } - composed_info = validate_get_composed_info( - constant_args, kwargs, self) - self._composed_instances = composed_info[0] - self._var_name_to_model_instances = composed_info[1] - self._additional_properties_model_instances = composed_info[2] - discarded_args = composed_info[3] - - for var_name, var_value in kwargs.items(): - if var_name in discarded_args and \ - self._configuration is not None and \ - self._configuration.discard_unknown_keys and \ - self._additional_properties_model_instances: - # discard variable. - continue - setattr(self, var_name, var_value) - if var_name in self.read_only_vars: - raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " - f"class with read only attributes.") - - @cached_property - def _composed_schemas(): - # we need this here to make our import statements work - # we must store _composed_schemas in here so the code is only run - # when we invoke this method. If we kept this at the class - # level we would get an error because the class level - # code would be run when this module is imported, and these composed - # classes don't exist yet because their module has not finished - # loading - lazy_import() - return { - 'anyOf': [ - ], - 'allOf': [ - LoggingCommon, - LoggingFtpAllOf, - LoggingGenericCommon, - ], - 'oneOf': [ - ], - } diff --git a/fastly/model/logging_ftp_all_of.py b/fastly/model/logging_ftp_additional.py similarity index 96% rename from fastly/model/logging_ftp_all_of.py rename to fastly/model/logging_ftp_additional.py index 5ae895f..da2ee13 100644 --- a/fastly/model/logging_ftp_all_of.py +++ b/fastly/model/logging_ftp_additional.py @@ -30,7 +30,7 @@ -class LoggingFtpAllOf(ModelNormal): +class LoggingFtpAdditional(ModelNormal): """NOTE: This class is auto generated. Do not edit the class manually. @@ -84,7 +84,6 @@ def openapi_types(): 'ipv4': (str,), # noqa: E501 'password': (str,), # noqa: E501 'path': (str,), # noqa: E501 - 'port': (int,), # noqa: E501 'public_key': (str, none_type,), # noqa: E501 'user': (str,), # noqa: E501 } @@ -100,7 +99,6 @@ def discriminator(): 'ipv4': 'ipv4', # noqa: E501 'password': 'password', # noqa: E501 'path': 'path', # noqa: E501 - 'port': 'port', # noqa: E501 'public_key': 'public_key', # noqa: E501 'user': 'user', # noqa: E501 } @@ -113,7 +111,7 @@ def discriminator(): @classmethod @convert_js_args_to_python_args def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 - """LoggingFtpAllOf - a model defined in OpenAPI + """LoggingFtpAdditional - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -151,7 +149,6 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 ipv4 (str): IPv4 address of the host.. [optional] # noqa: E501 password (str): The password for the server. For anonymous use an email address.. [optional] # noqa: E501 path (str): The path to upload log files to. If the path ends in `/` then it is treated as a directory.. [optional] # noqa: E501 - port (int): The port number.. [optional] if omitted the server will use the default value of 21 # noqa: E501 public_key (str, none_type): A PGP public key that Fastly will use to encrypt your log files before writing them to disk.. [optional] if omitted the server will use the default value of "null" # noqa: E501 user (str): The username for the server. Can be anonymous.. [optional] # noqa: E501 """ @@ -202,7 +199,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 @convert_js_args_to_python_args def __init__(self, *args, **kwargs): # noqa: E501 - """LoggingFtpAllOf - a model defined in OpenAPI + """LoggingFtpAdditional - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -240,7 +237,6 @@ def __init__(self, *args, **kwargs): # noqa: E501 ipv4 (str): IPv4 address of the host.. [optional] # noqa: E501 password (str): The password for the server. For anonymous use an email address.. [optional] # noqa: E501 path (str): The path to upload log files to. If the path ends in `/` then it is treated as a directory.. [optional] # noqa: E501 - port (int): The port number.. [optional] if omitted the server will use the default value of 21 # noqa: E501 public_key (str, none_type): A PGP public key that Fastly will use to encrypt your log files before writing them to disk.. [optional] if omitted the server will use the default value of "null" # noqa: E501 user (str): The username for the server. Can be anonymous.. [optional] # noqa: E501 """ diff --git a/fastly/model/logging_ftp_response.py b/fastly/model/logging_ftp_response.py index 273b7da..b72de5e 100644 --- a/fastly/model/logging_ftp_response.py +++ b/fastly/model/logging_ftp_response.py @@ -30,11 +30,17 @@ def lazy_import(): - from fastly.model.logging_ftp import LoggingFtp - from fastly.model.service_id_and_version import ServiceIdAndVersion + from fastly.model.logging_common_response import LoggingCommonResponse + from fastly.model.logging_ftp_additional import LoggingFtpAdditional + from fastly.model.logging_ftp_response_all_of import LoggingFtpResponseAllOf + from fastly.model.logging_generic_common_response import LoggingGenericCommonResponse + from fastly.model.service_id_and_version_string import ServiceIdAndVersionString from fastly.model.timestamps import Timestamps - globals()['LoggingFtp'] = LoggingFtp - globals()['ServiceIdAndVersion'] = ServiceIdAndVersion + globals()['LoggingCommonResponse'] = LoggingCommonResponse + globals()['LoggingFtpAdditional'] = LoggingFtpAdditional + globals()['LoggingFtpResponseAllOf'] = LoggingFtpResponseAllOf + globals()['LoggingGenericCommonResponse'] = LoggingGenericCommonResponse + globals()['ServiceIdAndVersionString'] = ServiceIdAndVersionString globals()['Timestamps'] = Timestamps @@ -68,8 +74,8 @@ class LoggingFtpResponse(ModelComposed): 'NULL': "null", }, ('format_version',): { - 'v1': 1, - 'v2': 2, + 'v1': "1", + 'v2': "2", }, ('message_type',): { 'CLASSIC': "classic", @@ -112,27 +118,27 @@ def openapi_types(): return { 'name': (str,), # noqa: E501 'placement': (str, none_type,), # noqa: E501 - 'format_version': (int,), # noqa: E501 'response_condition': (str, none_type,), # noqa: E501 'format': (str,), # noqa: E501 + 'format_version': (str,), # noqa: E501 'message_type': (str,), # noqa: E501 'timestamp_format': (str, none_type,), # noqa: E501 - 'period': (int,), # noqa: E501 - 'gzip_level': (int,), # noqa: E501 'compression_codec': (str,), # noqa: E501 + 'period': (str,), # noqa: E501 + 'gzip_level': (str,), # noqa: E501 + 'created_at': (datetime, none_type,), # noqa: E501 + 'deleted_at': (datetime, none_type,), # noqa: E501 + 'updated_at': (datetime, none_type,), # noqa: E501 + 'service_id': (str,), # noqa: E501 + 'version': (str,), # noqa: E501 'address': (str,), # noqa: E501 'hostname': (str,), # noqa: E501 'ipv4': (str,), # noqa: E501 'password': (str,), # noqa: E501 'path': (str,), # noqa: E501 - 'port': (int,), # noqa: E501 'public_key': (str, none_type,), # noqa: E501 'user': (str,), # noqa: E501 - 'created_at': (datetime, none_type,), # noqa: E501 - 'deleted_at': (datetime, none_type,), # noqa: E501 - 'updated_at': (datetime, none_type,), # noqa: E501 - 'service_id': (str,), # noqa: E501 - 'version': (int,), # noqa: E501 + 'port': (str,), # noqa: E501 } @cached_property @@ -143,27 +149,27 @@ def discriminator(): attribute_map = { 'name': 'name', # noqa: E501 'placement': 'placement', # noqa: E501 - 'format_version': 'format_version', # noqa: E501 'response_condition': 'response_condition', # noqa: E501 'format': 'format', # noqa: E501 + 'format_version': 'format_version', # noqa: E501 'message_type': 'message_type', # noqa: E501 'timestamp_format': 'timestamp_format', # noqa: E501 + 'compression_codec': 'compression_codec', # noqa: E501 'period': 'period', # noqa: E501 'gzip_level': 'gzip_level', # noqa: E501 - 'compression_codec': 'compression_codec', # noqa: E501 + 'created_at': 'created_at', # noqa: E501 + 'deleted_at': 'deleted_at', # noqa: E501 + 'updated_at': 'updated_at', # noqa: E501 + 'service_id': 'service_id', # noqa: E501 + 'version': 'version', # noqa: E501 'address': 'address', # noqa: E501 'hostname': 'hostname', # noqa: E501 'ipv4': 'ipv4', # noqa: E501 'password': 'password', # noqa: E501 'path': 'path', # noqa: E501 - 'port': 'port', # noqa: E501 'public_key': 'public_key', # noqa: E501 'user': 'user', # noqa: E501 - 'created_at': 'created_at', # noqa: E501 - 'deleted_at': 'deleted_at', # noqa: E501 - 'updated_at': 'updated_at', # noqa: E501 - 'service_id': 'service_id', # noqa: E501 - 'version': 'version', # noqa: E501 + 'port': 'port', # noqa: E501 } read_only_vars = { @@ -213,27 +219,27 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 _visited_composed_classes = (Animal,) name (str): The name for the real-time logging configuration.. [optional] # noqa: E501 placement (str, none_type): Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. . [optional] # noqa: E501 - 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] if omitted the server will use the default value of 2 # noqa: E501 response_condition (str, none_type): The name of an existing condition in the configured endpoint, or leave blank to always execute.. [optional] # noqa: E501 format (str): A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats).. [optional] if omitted the server will use the default value of "%h %l %u %t "%r" %>s %b" # noqa: E501 + format_version (str): The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. . [optional] if omitted the server will use the default value of "2" # noqa: E501 message_type (str): How the message should be formatted.. [optional] if omitted the server will use the default value of "classic" # noqa: E501 timestamp_format (str, none_type): A timestamp format. [optional] # noqa: E501 - period (int): How frequently log files are finalized so they can be available for reading (in seconds).. [optional] if omitted the server will use the default value of 3600 # noqa: E501 - 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] if omitted the server will use the default value of 0 # noqa: E501 compression_codec (str): The codec used for compressing your logs. 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] # noqa: E501 + period (str): How frequently log files are finalized so they can be available for reading (in seconds).. [optional] if omitted the server will use the default value of "3600" # noqa: E501 + gzip_level (str): 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] if omitted the server will use the default value of "0" # noqa: E501 + created_at (datetime, none_type): Date and time in ISO 8601 format.. [optional] # noqa: E501 + deleted_at (datetime, none_type): Date and time in ISO 8601 format.. [optional] # noqa: E501 + updated_at (datetime, none_type): Date and time in ISO 8601 format.. [optional] # noqa: E501 + service_id (str): [optional] # noqa: E501 + version (str): [optional] # noqa: E501 address (str): An hostname or IPv4 address.. [optional] # noqa: E501 hostname (str): Hostname used.. [optional] # noqa: E501 ipv4 (str): IPv4 address of the host.. [optional] # noqa: E501 password (str): The password for the server. For anonymous use an email address.. [optional] # noqa: E501 path (str): The path to upload log files to. If the path ends in `/` then it is treated as a directory.. [optional] # noqa: E501 - port (int): The port number.. [optional] if omitted the server will use the default value of 21 # noqa: E501 public_key (str, none_type): A PGP public key that Fastly will use to encrypt your log files before writing them to disk.. [optional] if omitted the server will use the default value of "null" # noqa: E501 user (str): The username for the server. Can be anonymous.. [optional] # noqa: E501 - created_at (datetime, none_type): Date and time in ISO 8601 format.. [optional] # noqa: E501 - deleted_at (datetime, none_type): Date and time in ISO 8601 format.. [optional] # noqa: E501 - updated_at (datetime, none_type): Date and time in ISO 8601 format.. [optional] # noqa: E501 - service_id (str): [optional] # noqa: E501 - version (int): [optional] # noqa: E501 + port (str): The port number.. [optional] if omitted the server will use the default value of "21" # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -335,27 +341,27 @@ def __init__(self, *args, **kwargs): # noqa: E501 _visited_composed_classes = (Animal,) name (str): The name for the real-time logging configuration.. [optional] # noqa: E501 placement (str, none_type): Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. . [optional] # noqa: E501 - 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] if omitted the server will use the default value of 2 # noqa: E501 response_condition (str, none_type): The name of an existing condition in the configured endpoint, or leave blank to always execute.. [optional] # noqa: E501 format (str): A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats).. [optional] if omitted the server will use the default value of "%h %l %u %t "%r" %>s %b" # noqa: E501 + format_version (str): The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. . [optional] if omitted the server will use the default value of "2" # noqa: E501 message_type (str): How the message should be formatted.. [optional] if omitted the server will use the default value of "classic" # noqa: E501 timestamp_format (str, none_type): A timestamp format. [optional] # noqa: E501 - period (int): How frequently log files are finalized so they can be available for reading (in seconds).. [optional] if omitted the server will use the default value of 3600 # noqa: E501 - 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] if omitted the server will use the default value of 0 # noqa: E501 compression_codec (str): The codec used for compressing your logs. 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] # noqa: E501 + period (str): How frequently log files are finalized so they can be available for reading (in seconds).. [optional] if omitted the server will use the default value of "3600" # noqa: E501 + gzip_level (str): 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] if omitted the server will use the default value of "0" # noqa: E501 + created_at (datetime, none_type): Date and time in ISO 8601 format.. [optional] # noqa: E501 + deleted_at (datetime, none_type): Date and time in ISO 8601 format.. [optional] # noqa: E501 + updated_at (datetime, none_type): Date and time in ISO 8601 format.. [optional] # noqa: E501 + service_id (str): [optional] # noqa: E501 + version (str): [optional] # noqa: E501 address (str): An hostname or IPv4 address.. [optional] # noqa: E501 hostname (str): Hostname used.. [optional] # noqa: E501 ipv4 (str): IPv4 address of the host.. [optional] # noqa: E501 password (str): The password for the server. For anonymous use an email address.. [optional] # noqa: E501 path (str): The path to upload log files to. If the path ends in `/` then it is treated as a directory.. [optional] # noqa: E501 - port (int): The port number.. [optional] if omitted the server will use the default value of 21 # noqa: E501 public_key (str, none_type): A PGP public key that Fastly will use to encrypt your log files before writing them to disk.. [optional] if omitted the server will use the default value of "null" # noqa: E501 user (str): The username for the server. Can be anonymous.. [optional] # noqa: E501 - created_at (datetime, none_type): Date and time in ISO 8601 format.. [optional] # noqa: E501 - deleted_at (datetime, none_type): Date and time in ISO 8601 format.. [optional] # noqa: E501 - updated_at (datetime, none_type): Date and time in ISO 8601 format.. [optional] # noqa: E501 - service_id (str): [optional] # noqa: E501 - version (int): [optional] # noqa: E501 + port (str): The port number.. [optional] if omitted the server will use the default value of "21" # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -421,8 +427,11 @@ def _composed_schemas(): 'anyOf': [ ], 'allOf': [ - LoggingFtp, - ServiceIdAndVersion, + LoggingCommonResponse, + LoggingFtpAdditional, + LoggingFtpResponseAllOf, + LoggingGenericCommonResponse, + ServiceIdAndVersionString, Timestamps, ], 'oneOf': [ diff --git a/fastly/model/logging_ftp_response_all_of.py b/fastly/model/logging_ftp_response_all_of.py new file mode 100644 index 0000000..4e93c10 --- /dev/null +++ b/fastly/model/logging_ftp_response_all_of.py @@ -0,0 +1,253 @@ +""" + Fastly API + + Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://developer.fastly.com/reference/api/) # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Contact: oss@fastly.com +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from fastly.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from fastly.exceptions import ApiAttributeError + + + +class LoggingFtpResponseAllOf(ModelNormal): + """NOTE: This class is auto generated. + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + return { + 'port': (str,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'port': 'port', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """LoggingFtpResponseAllOf - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + port (str): The port number.. [optional] if omitted the server will use the default value of "21" # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """LoggingFtpResponseAllOf - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + port (str): The port number.. [optional] if omitted the server will use the default value of "21" # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/fastly/model/logging_gcs.py b/fastly/model/logging_gcs.py deleted file mode 100644 index 6e8b3f9..0000000 --- a/fastly/model/logging_gcs.py +++ /dev/null @@ -1,406 +0,0 @@ -""" - Fastly API - - Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://developer.fastly.com/reference/api/) # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Contact: oss@fastly.com -""" - - -import re # noqa: F401 -import sys # noqa: F401 - -from fastly.model_utils import ( # noqa: F401 - ApiTypeError, - ModelComposed, - ModelNormal, - ModelSimple, - cached_property, - change_keys_js_to_python, - convert_js_args_to_python_args, - date, - datetime, - file_type, - none_type, - validate_get_composed_info, - OpenApiModel -) -from fastly.exceptions import ApiAttributeError - - -def lazy_import(): - from fastly.model.logging_common import LoggingCommon - from fastly.model.logging_gcs_all_of import LoggingGcsAllOf - from fastly.model.logging_gcs_common import LoggingGcsCommon - from fastly.model.logging_generic_common import LoggingGenericCommon - from fastly.model.str_none_type import StrNoneType - globals()['LoggingCommon'] = LoggingCommon - globals()['LoggingGcsAllOf'] = LoggingGcsAllOf - globals()['LoggingGcsCommon'] = LoggingGcsCommon - globals()['LoggingGenericCommon'] = LoggingGenericCommon - globals()['str, none_type'] = str, none_type - - -class LoggingGcs(ModelComposed): - """NOTE: This class is auto generated. - Do not edit the class manually. - - Attributes: - allowed_values (dict): The key is the tuple path to the attribute - and the for var_name this is (var_name,). The value is a dict - with a capitalized key describing the allowed value and an allowed - value. These dicts store the allowed enum values. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - discriminator_value_class_map (dict): A dict to go from the discriminator - variable value to the discriminator class name. - validations (dict): The key is the tuple path to the attribute - and the for var_name this is (var_name,). The value is a dict - that stores validations for max_length, min_length, max_items, - min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, - inclusive_minimum, and regex. - additional_properties_type (tuple): A tuple of classes accepted - as additional properties values. - """ - - allowed_values = { - ('placement',): { - 'None': None, - 'NONE': "none", - 'WAF_DEBUG': "waf_debug", - 'NULL': "null", - }, - ('format_version',): { - 'v1': 1, - 'v2': 2, - }, - ('message_type',): { - 'CLASSIC': "classic", - 'LOGGLY': "loggly", - 'LOGPLEX': "logplex", - 'BLANK': "blank", - }, - ('compression_codec',): { - 'ZSTD': "zstd", - 'SNAPPY': "snappy", - 'GZIP': "gzip", - }, - } - - validations = { - } - - @cached_property - def additional_properties_type(): - """ - This must be a method because a model may have properties that are - of type self, this must run after the class is loaded - """ - lazy_import() - return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 - - _nullable = False - - @cached_property - def openapi_types(): - """ - This must be a method because a model may have properties that are - of type self, this must run after the class is loaded - - Returns - openapi_types (dict): The key is attribute name - and the value is attribute type. - """ - lazy_import() - return { - 'name': (str,), # noqa: E501 - 'placement': (str, none_type,), # noqa: E501 - 'format_version': (int,), # noqa: E501 - 'response_condition': (str, none_type,), # noqa: E501 - 'format': (str,), # noqa: E501 - 'message_type': (str,), # noqa: E501 - 'timestamp_format': (str, none_type,), # noqa: E501 - 'period': (int,), # noqa: E501 - 'gzip_level': (int,), # noqa: E501 - 'compression_codec': (str,), # noqa: E501 - 'user': (str,), # noqa: E501 - 'secret_key': (str,), # noqa: E501 - 'account_name': (str,), # noqa: E501 - 'bucket_name': (str,), # noqa: E501 - 'path': (str,), # noqa: E501 - 'public_key': (str, none_type,), # noqa: E501 - 'project_id': (str,), # noqa: E501 - } - - @cached_property - def discriminator(): - return None - - - attribute_map = { - 'name': 'name', # noqa: E501 - 'placement': 'placement', # noqa: E501 - 'format_version': 'format_version', # noqa: E501 - 'response_condition': 'response_condition', # noqa: E501 - 'format': 'format', # noqa: E501 - 'message_type': 'message_type', # noqa: E501 - 'timestamp_format': 'timestamp_format', # noqa: E501 - 'period': 'period', # noqa: E501 - 'gzip_level': 'gzip_level', # noqa: E501 - 'compression_codec': 'compression_codec', # noqa: E501 - 'user': 'user', # noqa: E501 - 'secret_key': 'secret_key', # noqa: E501 - 'account_name': 'account_name', # noqa: E501 - 'bucket_name': 'bucket_name', # noqa: E501 - 'path': 'path', # noqa: E501 - 'public_key': 'public_key', # noqa: E501 - 'project_id': 'project_id', # noqa: E501 - } - - read_only_vars = { - 'timestamp_format', # noqa: E501 - } - - @classmethod - @convert_js_args_to_python_args - def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 - """LoggingGcs - a model defined in OpenAPI - - Keyword Args: - _check_type (bool): if True, values for parameters in openapi_types - will be type checked and a TypeError will be - raised if the wrong type is input. - Defaults to True - _path_to_item (tuple/list): This is a list of keys or values to - drill down to the model in received_data - when deserializing a response - _spec_property_naming (bool): True if the variable names in the input data - are serialized names, as specified in the OpenAPI document. - False if the variable names in the input data - are pythonic names, e.g. snake case (default) - _configuration (Configuration): the instance to use when - deserializing a file_type parameter. - If passed, type conversion is attempted - If omitted no type conversion is done. - _visited_composed_classes (tuple): This stores a tuple of - classes that we have traveled through so that - if we see that class again we will not use its - discriminator again. - When traveling through a discriminator, the - composed schema that is - is traveled through is added to this set. - For example if Animal has a discriminator - petType and we pass in "Dog", and the class Dog - allOf includes Animal, we move through Animal - once using the discriminator, and pick Dog. - Then in Dog, we will make an instance of the - Animal class but this time we won't travel - through its discriminator because we passed in - _visited_composed_classes = (Animal,) - name (str): The name for the real-time logging configuration.. [optional] # noqa: E501 - placement (str, none_type): Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. . [optional] # noqa: E501 - 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] if omitted the server will use the default value of 2 # noqa: E501 - response_condition (str, none_type): The name of an existing condition in the configured endpoint, or leave blank to always execute.. [optional] # noqa: E501 - format (str): A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats).. [optional] if omitted the server will use the default value of "%h %l %u %t "%r" %>s %b" # noqa: E501 - message_type (str): How the message should be formatted.. [optional] if omitted the server will use the default value of "classic" # noqa: E501 - timestamp_format (str, none_type): A timestamp format. [optional] # noqa: E501 - period (int): How frequently log files are finalized so they can be available for reading (in seconds).. [optional] if omitted the server will use the default value of 3600 # noqa: E501 - 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] if omitted the server will use the default value of 0 # noqa: E501 - compression_codec (str): The codec used for compressing your logs. 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] # noqa: E501 - user (str): 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] # noqa: E501 - secret_key (str): 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] # noqa: E501 - account_name (str): 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] # noqa: E501 - bucket_name (str): The name of the GCS bucket.. [optional] # noqa: E501 - path (str): [optional] if omitted the server will use the default value of "/" # noqa: E501 - public_key (str, none_type): A PGP public key that Fastly will use to encrypt your log files before writing them to disk.. [optional] if omitted the server will use the default value of "null" # noqa: E501 - project_id (str): Your Google Cloud Platform project ID. Required. [optional] # noqa: E501 - """ - - _check_type = kwargs.pop('_check_type', True) - _spec_property_naming = kwargs.pop('_spec_property_naming', False) - _path_to_item = kwargs.pop('_path_to_item', ()) - _configuration = kwargs.pop('_configuration', None) - _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) - - self = super(OpenApiModel, cls).__new__(cls) - - if args: - raise ApiTypeError( - "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( - args, - self.__class__.__name__, - ), - path_to_item=_path_to_item, - valid_classes=(self.__class__,), - ) - - self._data_store = {} - self._check_type = _check_type - self._spec_property_naming = _spec_property_naming - self._path_to_item = _path_to_item - self._configuration = _configuration - self._visited_composed_classes = _visited_composed_classes + (self.__class__,) - - constant_args = { - '_check_type': _check_type, - '_path_to_item': _path_to_item, - '_spec_property_naming': _spec_property_naming, - '_configuration': _configuration, - '_visited_composed_classes': self._visited_composed_classes, - } - composed_info = validate_get_composed_info( - constant_args, kwargs, self) - self._composed_instances = composed_info[0] - self._var_name_to_model_instances = composed_info[1] - self._additional_properties_model_instances = composed_info[2] - discarded_args = composed_info[3] - - for var_name, var_value in kwargs.items(): - if var_name in discarded_args and \ - self._configuration is not None and \ - self._configuration.discard_unknown_keys and \ - self._additional_properties_model_instances: - # discard variable. - continue - setattr(self, var_name, var_value) - - return self - - required_properties = set([ - '_data_store', - '_check_type', - '_spec_property_naming', - '_path_to_item', - '_configuration', - '_visited_composed_classes', - '_composed_instances', - '_var_name_to_model_instances', - '_additional_properties_model_instances', - ]) - - @convert_js_args_to_python_args - def __init__(self, *args, **kwargs): # noqa: E501 - """LoggingGcs - a model defined in OpenAPI - - Keyword Args: - _check_type (bool): if True, values for parameters in openapi_types - will be type checked and a TypeError will be - raised if the wrong type is input. - Defaults to True - _path_to_item (tuple/list): This is a list of keys or values to - drill down to the model in received_data - when deserializing a response - _spec_property_naming (bool): True if the variable names in the input data - are serialized names, as specified in the OpenAPI document. - False if the variable names in the input data - are pythonic names, e.g. snake case (default) - _configuration (Configuration): the instance to use when - deserializing a file_type parameter. - If passed, type conversion is attempted - If omitted no type conversion is done. - _visited_composed_classes (tuple): This stores a tuple of - classes that we have traveled through so that - if we see that class again we will not use its - discriminator again. - When traveling through a discriminator, the - composed schema that is - is traveled through is added to this set. - For example if Animal has a discriminator - petType and we pass in "Dog", and the class Dog - allOf includes Animal, we move through Animal - once using the discriminator, and pick Dog. - Then in Dog, we will make an instance of the - Animal class but this time we won't travel - through its discriminator because we passed in - _visited_composed_classes = (Animal,) - name (str): The name for the real-time logging configuration.. [optional] # noqa: E501 - placement (str, none_type): Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. . [optional] # noqa: E501 - 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] if omitted the server will use the default value of 2 # noqa: E501 - response_condition (str, none_type): The name of an existing condition in the configured endpoint, or leave blank to always execute.. [optional] # noqa: E501 - format (str): A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats).. [optional] if omitted the server will use the default value of "%h %l %u %t "%r" %>s %b" # noqa: E501 - message_type (str): How the message should be formatted.. [optional] if omitted the server will use the default value of "classic" # noqa: E501 - timestamp_format (str, none_type): A timestamp format. [optional] # noqa: E501 - period (int): How frequently log files are finalized so they can be available for reading (in seconds).. [optional] if omitted the server will use the default value of 3600 # noqa: E501 - 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] if omitted the server will use the default value of 0 # noqa: E501 - compression_codec (str): The codec used for compressing your logs. 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] # noqa: E501 - user (str): 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] # noqa: E501 - secret_key (str): 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] # noqa: E501 - account_name (str): 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] # noqa: E501 - bucket_name (str): The name of the GCS bucket.. [optional] # noqa: E501 - path (str): [optional] if omitted the server will use the default value of "/" # noqa: E501 - public_key (str, none_type): A PGP public key that Fastly will use to encrypt your log files before writing them to disk.. [optional] if omitted the server will use the default value of "null" # noqa: E501 - project_id (str): Your Google Cloud Platform project ID. Required. [optional] # noqa: E501 - """ - - _check_type = kwargs.pop('_check_type', True) - _spec_property_naming = kwargs.pop('_spec_property_naming', False) - _path_to_item = kwargs.pop('_path_to_item', ()) - _configuration = kwargs.pop('_configuration', None) - _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) - - if args: - raise ApiTypeError( - "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( - args, - self.__class__.__name__, - ), - path_to_item=_path_to_item, - valid_classes=(self.__class__,), - ) - - self._data_store = {} - self._check_type = _check_type - self._spec_property_naming = _spec_property_naming - self._path_to_item = _path_to_item - self._configuration = _configuration - self._visited_composed_classes = _visited_composed_classes + (self.__class__,) - - constant_args = { - '_check_type': _check_type, - '_path_to_item': _path_to_item, - '_spec_property_naming': _spec_property_naming, - '_configuration': _configuration, - '_visited_composed_classes': self._visited_composed_classes, - } - composed_info = validate_get_composed_info( - constant_args, kwargs, self) - self._composed_instances = composed_info[0] - self._var_name_to_model_instances = composed_info[1] - self._additional_properties_model_instances = composed_info[2] - discarded_args = composed_info[3] - - for var_name, var_value in kwargs.items(): - if var_name in discarded_args and \ - self._configuration is not None and \ - self._configuration.discard_unknown_keys and \ - self._additional_properties_model_instances: - # discard variable. - continue - setattr(self, var_name, var_value) - if var_name in self.read_only_vars: - raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " - f"class with read only attributes.") - - @cached_property - def _composed_schemas(): - # we need this here to make our import statements work - # we must store _composed_schemas in here so the code is only run - # when we invoke this method. If we kept this at the class - # level we would get an error because the class level - # code would be run when this module is imported, and these composed - # classes don't exist yet because their module has not finished - # loading - lazy_import() - return { - 'anyOf': [ - ], - 'allOf': [ - LoggingCommon, - LoggingGcsAllOf, - LoggingGcsCommon, - LoggingGenericCommon, - ], - 'oneOf': [ - ], - } diff --git a/fastly/model/logging_gcs_all_of.py b/fastly/model/logging_gcs_additional.py similarity index 98% rename from fastly/model/logging_gcs_all_of.py rename to fastly/model/logging_gcs_additional.py index ca09367..e81edfb 100644 --- a/fastly/model/logging_gcs_all_of.py +++ b/fastly/model/logging_gcs_additional.py @@ -34,7 +34,7 @@ def lazy_import(): globals()['str, none_type'] = str, none_type -class LoggingGcsAllOf(ModelNormal): +class LoggingGcsAdditional(ModelNormal): """NOTE: This class is auto generated. Do not edit the class manually. @@ -111,7 +111,7 @@ def discriminator(): @classmethod @convert_js_args_to_python_args def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 - """LoggingGcsAllOf - a model defined in OpenAPI + """LoggingGcsAdditional - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -196,7 +196,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 @convert_js_args_to_python_args def __init__(self, *args, **kwargs): # noqa: E501 - """LoggingGcsAllOf - a model defined in OpenAPI + """LoggingGcsAdditional - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types diff --git a/fastly/model/logging_gcs_response.py b/fastly/model/logging_gcs_response.py index 6d634ab..0da1acb 100644 --- a/fastly/model/logging_gcs_response.py +++ b/fastly/model/logging_gcs_response.py @@ -30,12 +30,18 @@ def lazy_import(): - from fastly.model.logging_gcs import LoggingGcs - from fastly.model.service_id_and_version import ServiceIdAndVersion + from fastly.model.logging_common_response import LoggingCommonResponse + from fastly.model.logging_gcs_additional import LoggingGcsAdditional + from fastly.model.logging_gcs_common import LoggingGcsCommon + from fastly.model.logging_generic_common_response import LoggingGenericCommonResponse + from fastly.model.service_id_and_version_string import ServiceIdAndVersionString from fastly.model.str_none_type import StrNoneType from fastly.model.timestamps import Timestamps - globals()['LoggingGcs'] = LoggingGcs - globals()['ServiceIdAndVersion'] = ServiceIdAndVersion + globals()['LoggingCommonResponse'] = LoggingCommonResponse + globals()['LoggingGcsAdditional'] = LoggingGcsAdditional + globals()['LoggingGcsCommon'] = LoggingGcsCommon + globals()['LoggingGenericCommonResponse'] = LoggingGenericCommonResponse + globals()['ServiceIdAndVersionString'] = ServiceIdAndVersionString globals()['Timestamps'] = Timestamps globals()['str, none_type'] = str, none_type @@ -70,8 +76,8 @@ class LoggingGcsResponse(ModelComposed): 'NULL': "null", }, ('format_version',): { - 'v1': 1, - 'v2': 2, + 'v1': "1", + 'v2': "2", }, ('message_type',): { 'CLASSIC': "classic", @@ -114,26 +120,26 @@ def openapi_types(): return { 'name': (str,), # noqa: E501 'placement': (str, none_type,), # noqa: E501 - 'format_version': (int,), # noqa: E501 'response_condition': (str, none_type,), # noqa: E501 'format': (str,), # noqa: E501 + 'format_version': (str,), # noqa: E501 'message_type': (str,), # noqa: E501 'timestamp_format': (str, none_type,), # noqa: E501 - 'period': (int,), # noqa: E501 - 'gzip_level': (int,), # noqa: E501 'compression_codec': (str,), # noqa: E501 + 'period': (str,), # noqa: E501 + 'gzip_level': (str,), # noqa: E501 'user': (str,), # noqa: E501 'secret_key': (str,), # noqa: E501 'account_name': (str,), # noqa: E501 - 'bucket_name': (str,), # noqa: E501 - 'path': (str,), # noqa: E501 - 'public_key': (str, none_type,), # noqa: E501 - 'project_id': (str,), # noqa: E501 'created_at': (datetime, none_type,), # noqa: E501 'deleted_at': (datetime, none_type,), # noqa: E501 'updated_at': (datetime, none_type,), # noqa: E501 'service_id': (str,), # noqa: E501 - 'version': (int,), # noqa: E501 + 'version': (str,), # noqa: E501 + 'bucket_name': (str,), # noqa: E501 + 'path': (str,), # noqa: E501 + 'public_key': (str, none_type,), # noqa: E501 + 'project_id': (str,), # noqa: E501 } @cached_property @@ -144,26 +150,26 @@ def discriminator(): attribute_map = { 'name': 'name', # noqa: E501 'placement': 'placement', # noqa: E501 - 'format_version': 'format_version', # noqa: E501 'response_condition': 'response_condition', # noqa: E501 'format': 'format', # noqa: E501 + 'format_version': 'format_version', # noqa: E501 'message_type': 'message_type', # noqa: E501 'timestamp_format': 'timestamp_format', # noqa: E501 + 'compression_codec': 'compression_codec', # noqa: E501 'period': 'period', # noqa: E501 'gzip_level': 'gzip_level', # noqa: E501 - 'compression_codec': 'compression_codec', # noqa: E501 'user': 'user', # noqa: E501 'secret_key': 'secret_key', # noqa: E501 'account_name': 'account_name', # noqa: E501 - 'bucket_name': 'bucket_name', # noqa: E501 - 'path': 'path', # noqa: E501 - 'public_key': 'public_key', # noqa: E501 - 'project_id': 'project_id', # noqa: E501 'created_at': 'created_at', # noqa: E501 'deleted_at': 'deleted_at', # noqa: E501 'updated_at': 'updated_at', # noqa: E501 'service_id': 'service_id', # noqa: E501 'version': 'version', # noqa: E501 + 'bucket_name': 'bucket_name', # noqa: E501 + 'path': 'path', # noqa: E501 + 'public_key': 'public_key', # noqa: E501 + 'project_id': 'project_id', # noqa: E501 } read_only_vars = { @@ -213,26 +219,26 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 _visited_composed_classes = (Animal,) name (str): The name for the real-time logging configuration.. [optional] # noqa: E501 placement (str, none_type): Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. . [optional] # noqa: E501 - 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] if omitted the server will use the default value of 2 # noqa: E501 response_condition (str, none_type): The name of an existing condition in the configured endpoint, or leave blank to always execute.. [optional] # noqa: E501 format (str): A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats).. [optional] if omitted the server will use the default value of "%h %l %u %t "%r" %>s %b" # noqa: E501 + format_version (str): The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. . [optional] if omitted the server will use the default value of "2" # noqa: E501 message_type (str): How the message should be formatted.. [optional] if omitted the server will use the default value of "classic" # noqa: E501 timestamp_format (str, none_type): A timestamp format. [optional] # noqa: E501 - period (int): How frequently log files are finalized so they can be available for reading (in seconds).. [optional] if omitted the server will use the default value of 3600 # noqa: E501 - 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] if omitted the server will use the default value of 0 # noqa: E501 compression_codec (str): The codec used for compressing your logs. 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] # noqa: E501 + period (str): How frequently log files are finalized so they can be available for reading (in seconds).. [optional] if omitted the server will use the default value of "3600" # noqa: E501 + gzip_level (str): 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] if omitted the server will use the default value of "0" # noqa: E501 user (str): 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] # noqa: E501 secret_key (str): 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] # noqa: E501 account_name (str): 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] # noqa: E501 - bucket_name (str): The name of the GCS bucket.. [optional] # noqa: E501 - path (str): [optional] if omitted the server will use the default value of "/" # noqa: E501 - public_key (str, none_type): A PGP public key that Fastly will use to encrypt your log files before writing them to disk.. [optional] if omitted the server will use the default value of "null" # noqa: E501 - project_id (str): Your Google Cloud Platform project ID. Required. [optional] # noqa: E501 created_at (datetime, none_type): Date and time in ISO 8601 format.. [optional] # noqa: E501 deleted_at (datetime, none_type): Date and time in ISO 8601 format.. [optional] # noqa: E501 updated_at (datetime, none_type): Date and time in ISO 8601 format.. [optional] # noqa: E501 service_id (str): [optional] # noqa: E501 - version (int): [optional] # noqa: E501 + version (str): [optional] # noqa: E501 + bucket_name (str): The name of the GCS bucket.. [optional] # noqa: E501 + path (str): [optional] if omitted the server will use the default value of "/" # noqa: E501 + public_key (str, none_type): A PGP public key that Fastly will use to encrypt your log files before writing them to disk.. [optional] if omitted the server will use the default value of "null" # noqa: E501 + project_id (str): Your Google Cloud Platform project ID. Required. [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -334,26 +340,26 @@ def __init__(self, *args, **kwargs): # noqa: E501 _visited_composed_classes = (Animal,) name (str): The name for the real-time logging configuration.. [optional] # noqa: E501 placement (str, none_type): Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. . [optional] # noqa: E501 - 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] if omitted the server will use the default value of 2 # noqa: E501 response_condition (str, none_type): The name of an existing condition in the configured endpoint, or leave blank to always execute.. [optional] # noqa: E501 format (str): A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats).. [optional] if omitted the server will use the default value of "%h %l %u %t "%r" %>s %b" # noqa: E501 + format_version (str): The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. . [optional] if omitted the server will use the default value of "2" # noqa: E501 message_type (str): How the message should be formatted.. [optional] if omitted the server will use the default value of "classic" # noqa: E501 timestamp_format (str, none_type): A timestamp format. [optional] # noqa: E501 - period (int): How frequently log files are finalized so they can be available for reading (in seconds).. [optional] if omitted the server will use the default value of 3600 # noqa: E501 - 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] if omitted the server will use the default value of 0 # noqa: E501 compression_codec (str): The codec used for compressing your logs. 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] # noqa: E501 + period (str): How frequently log files are finalized so they can be available for reading (in seconds).. [optional] if omitted the server will use the default value of "3600" # noqa: E501 + gzip_level (str): 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] if omitted the server will use the default value of "0" # noqa: E501 user (str): 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] # noqa: E501 secret_key (str): 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] # noqa: E501 account_name (str): 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] # noqa: E501 - bucket_name (str): The name of the GCS bucket.. [optional] # noqa: E501 - path (str): [optional] if omitted the server will use the default value of "/" # noqa: E501 - public_key (str, none_type): A PGP public key that Fastly will use to encrypt your log files before writing them to disk.. [optional] if omitted the server will use the default value of "null" # noqa: E501 - project_id (str): Your Google Cloud Platform project ID. Required. [optional] # noqa: E501 created_at (datetime, none_type): Date and time in ISO 8601 format.. [optional] # noqa: E501 deleted_at (datetime, none_type): Date and time in ISO 8601 format.. [optional] # noqa: E501 updated_at (datetime, none_type): Date and time in ISO 8601 format.. [optional] # noqa: E501 service_id (str): [optional] # noqa: E501 - version (int): [optional] # noqa: E501 + version (str): [optional] # noqa: E501 + bucket_name (str): The name of the GCS bucket.. [optional] # noqa: E501 + path (str): [optional] if omitted the server will use the default value of "/" # noqa: E501 + public_key (str, none_type): A PGP public key that Fastly will use to encrypt your log files before writing them to disk.. [optional] if omitted the server will use the default value of "null" # noqa: E501 + project_id (str): Your Google Cloud Platform project ID. Required. [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -419,8 +425,11 @@ def _composed_schemas(): 'anyOf': [ ], 'allOf': [ - LoggingGcs, - ServiceIdAndVersion, + LoggingCommonResponse, + LoggingGcsAdditional, + LoggingGcsCommon, + LoggingGenericCommonResponse, + ServiceIdAndVersionString, Timestamps, ], 'oneOf': [ diff --git a/fastly/model/logging_generic_common.py b/fastly/model/logging_generic_common.py index 3b3c52d..1dea593 100644 --- a/fastly/model/logging_generic_common.py +++ b/fastly/model/logging_generic_common.py @@ -92,8 +92,6 @@ def openapi_types(): return { 'message_type': (str,), # noqa: E501 'timestamp_format': (str, none_type,), # noqa: E501 - 'period': (int,), # noqa: E501 - 'gzip_level': (int,), # noqa: E501 'compression_codec': (str,), # noqa: E501 } @@ -105,8 +103,6 @@ def discriminator(): attribute_map = { 'message_type': 'message_type', # noqa: E501 'timestamp_format': 'timestamp_format', # noqa: E501 - 'period': 'period', # noqa: E501 - 'gzip_level': 'gzip_level', # noqa: E501 'compression_codec': 'compression_codec', # noqa: E501 } @@ -154,8 +150,6 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 _visited_composed_classes = (Animal,) message_type (str): How the message should be formatted.. [optional] if omitted the server will use the default value of "classic" # noqa: E501 timestamp_format (str, none_type): A timestamp format. [optional] # noqa: E501 - period (int): How frequently log files are finalized so they can be available for reading (in seconds).. [optional] if omitted the server will use the default value of 3600 # noqa: E501 - 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] if omitted the server will use the default value of 0 # noqa: E501 compression_codec (str): The codec used for compressing your logs. 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] # noqa: E501 """ @@ -240,8 +234,6 @@ def __init__(self, *args, **kwargs): # noqa: E501 _visited_composed_classes = (Animal,) message_type (str): How the message should be formatted.. [optional] if omitted the server will use the default value of "classic" # noqa: E501 timestamp_format (str, none_type): A timestamp format. [optional] # noqa: E501 - period (int): How frequently log files are finalized so they can be available for reading (in seconds).. [optional] if omitted the server will use the default value of 3600 # noqa: E501 - 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] if omitted the server will use the default value of 0 # noqa: E501 compression_codec (str): The codec used for compressing your logs. 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] # noqa: E501 """ diff --git a/fastly/model/logging_honeycomb.py b/fastly/model/logging_generic_common_response.py similarity index 77% rename from fastly/model/logging_honeycomb.py rename to fastly/model/logging_generic_common_response.py index 6172af1..349506c 100644 --- a/fastly/model/logging_honeycomb.py +++ b/fastly/model/logging_generic_common_response.py @@ -30,13 +30,13 @@ def lazy_import(): - from fastly.model.logging_common import LoggingCommon - from fastly.model.logging_honeycomb_all_of import LoggingHoneycombAllOf - globals()['LoggingCommon'] = LoggingCommon - globals()['LoggingHoneycombAllOf'] = LoggingHoneycombAllOf + from fastly.model.logging_generic_common_response_all_of import LoggingGenericCommonResponseAllOf + from fastly.model.logging_generic_common_response_all_of1 import LoggingGenericCommonResponseAllOf1 + globals()['LoggingGenericCommonResponseAllOf'] = LoggingGenericCommonResponseAllOf + globals()['LoggingGenericCommonResponseAllOf1'] = LoggingGenericCommonResponseAllOf1 -class LoggingHoneycomb(ModelComposed): +class LoggingGenericCommonResponse(ModelComposed): """NOTE: This class is auto generated. Do not edit the class manually. @@ -59,15 +59,16 @@ class LoggingHoneycomb(ModelComposed): """ allowed_values = { - ('placement',): { - 'None': None, - 'NONE': "none", - 'WAF_DEBUG': "waf_debug", - 'NULL': "null", + ('message_type',): { + 'CLASSIC': "classic", + 'LOGGLY': "loggly", + 'LOGPLEX': "logplex", + 'BLANK': "blank", }, - ('format_version',): { - 'v1': 1, - 'v2': 2, + ('compression_codec',): { + 'ZSTD': "zstd", + 'SNAPPY': "snappy", + 'GZIP': "gzip", }, } @@ -97,13 +98,11 @@ def openapi_types(): """ lazy_import() return { - 'name': (str,), # noqa: E501 - 'placement': (str, none_type,), # noqa: E501 - 'format_version': (int,), # noqa: E501 - 'response_condition': (str, none_type,), # noqa: E501 - 'format': (str,), # noqa: E501 - 'dataset': (str,), # noqa: E501 - 'token': (str,), # noqa: E501 + 'message_type': (str,), # noqa: E501 + 'timestamp_format': (str, none_type,), # noqa: E501 + 'compression_codec': (str,), # noqa: E501 + 'period': (str,), # noqa: E501 + 'gzip_level': (str,), # noqa: E501 } @cached_property @@ -112,22 +111,21 @@ def discriminator(): attribute_map = { - 'name': 'name', # noqa: E501 - 'placement': 'placement', # noqa: E501 - 'format_version': 'format_version', # noqa: E501 - 'response_condition': 'response_condition', # noqa: E501 - 'format': 'format', # noqa: E501 - 'dataset': 'dataset', # noqa: E501 - 'token': 'token', # noqa: E501 + 'message_type': 'message_type', # noqa: E501 + 'timestamp_format': 'timestamp_format', # noqa: E501 + 'compression_codec': 'compression_codec', # noqa: E501 + 'period': 'period', # noqa: E501 + 'gzip_level': 'gzip_level', # noqa: E501 } read_only_vars = { + 'timestamp_format', # noqa: E501 } @classmethod @convert_js_args_to_python_args def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 - """LoggingHoneycomb - a model defined in OpenAPI + """LoggingGenericCommonResponse - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -160,13 +158,11 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - name (str): The name for the real-time logging configuration.. [optional] # noqa: E501 - placement (str, none_type): Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. . [optional] # noqa: E501 - 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] if omitted the server will use the default value of 2 # noqa: E501 - response_condition (str, none_type): The name of an existing condition in the configured endpoint, or leave blank to always execute.. [optional] # noqa: E501 - format (str): A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). Must produce valid JSON that Honeycomb can ingest.. [optional] # noqa: E501 - dataset (str): The Honeycomb Dataset you want to log to.. [optional] # noqa: E501 - token (str): The Write Key from the Account page of your Honeycomb account.. [optional] # noqa: E501 + message_type (str): How the message should be formatted.. [optional] if omitted the server will use the default value of "classic" # noqa: E501 + timestamp_format (str, none_type): A timestamp format. [optional] # noqa: E501 + compression_codec (str): The codec used for compressing your logs. 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] # noqa: E501 + period (str): How frequently log files are finalized so they can be available for reading (in seconds).. [optional] if omitted the server will use the default value of "3600" # noqa: E501 + gzip_level (str): 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] if omitted the server will use the default value of "0" # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -233,7 +229,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 @convert_js_args_to_python_args def __init__(self, *args, **kwargs): # noqa: E501 - """LoggingHoneycomb - a model defined in OpenAPI + """LoggingGenericCommonResponse - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -266,13 +262,11 @@ def __init__(self, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - name (str): The name for the real-time logging configuration.. [optional] # noqa: E501 - placement (str, none_type): Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. . [optional] # noqa: E501 - 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] if omitted the server will use the default value of 2 # noqa: E501 - response_condition (str, none_type): The name of an existing condition in the configured endpoint, or leave blank to always execute.. [optional] # noqa: E501 - format (str): A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). Must produce valid JSON that Honeycomb can ingest.. [optional] # noqa: E501 - dataset (str): The Honeycomb Dataset you want to log to.. [optional] # noqa: E501 - token (str): The Write Key from the Account page of your Honeycomb account.. [optional] # noqa: E501 + message_type (str): How the message should be formatted.. [optional] if omitted the server will use the default value of "classic" # noqa: E501 + timestamp_format (str, none_type): A timestamp format. [optional] # noqa: E501 + compression_codec (str): The codec used for compressing your logs. 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] # noqa: E501 + period (str): How frequently log files are finalized so they can be available for reading (in seconds).. [optional] if omitted the server will use the default value of "3600" # noqa: E501 + gzip_level (str): 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] if omitted the server will use the default value of "0" # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -338,8 +332,8 @@ def _composed_schemas(): 'anyOf': [ ], 'allOf': [ - LoggingCommon, - LoggingHoneycombAllOf, + LoggingGenericCommonResponseAllOf, + LoggingGenericCommonResponseAllOf1, ], 'oneOf': [ ], diff --git a/fastly/model/logging_generic_common_response_all_of.py b/fastly/model/logging_generic_common_response_all_of.py new file mode 100644 index 0000000..47a88db --- /dev/null +++ b/fastly/model/logging_generic_common_response_all_of.py @@ -0,0 +1,273 @@ +""" + Fastly API + + Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://developer.fastly.com/reference/api/) # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Contact: oss@fastly.com +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from fastly.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from fastly.exceptions import ApiAttributeError + + + +class LoggingGenericCommonResponseAllOf(ModelNormal): + """NOTE: This class is auto generated. + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + ('message_type',): { + 'CLASSIC': "classic", + 'LOGGLY': "loggly", + 'LOGPLEX': "logplex", + 'BLANK': "blank", + }, + ('compression_codec',): { + 'ZSTD': "zstd", + 'SNAPPY': "snappy", + 'GZIP': "gzip", + }, + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + return { + 'message_type': (str,), # noqa: E501 + 'timestamp_format': (str, none_type,), # noqa: E501 + 'compression_codec': (str,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'message_type': 'message_type', # noqa: E501 + 'timestamp_format': 'timestamp_format', # noqa: E501 + 'compression_codec': 'compression_codec', # noqa: E501 + } + + read_only_vars = { + 'timestamp_format', # noqa: E501 + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """LoggingGenericCommonResponseAllOf - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + message_type (str): How the message should be formatted.. [optional] if omitted the server will use the default value of "classic" # noqa: E501 + timestamp_format (str, none_type): A timestamp format. [optional] # noqa: E501 + compression_codec (str): The codec used for compressing your logs. 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] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """LoggingGenericCommonResponseAllOf - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + message_type (str): How the message should be formatted.. [optional] if omitted the server will use the default value of "classic" # noqa: E501 + timestamp_format (str, none_type): A timestamp format. [optional] # noqa: E501 + compression_codec (str): The codec used for compressing your logs. 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] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/fastly/model/logging_generic_common_response_all_of1.py b/fastly/model/logging_generic_common_response_all_of1.py new file mode 100644 index 0000000..003fb65 --- /dev/null +++ b/fastly/model/logging_generic_common_response_all_of1.py @@ -0,0 +1,257 @@ +""" + Fastly API + + Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://developer.fastly.com/reference/api/) # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Contact: oss@fastly.com +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from fastly.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from fastly.exceptions import ApiAttributeError + + + +class LoggingGenericCommonResponseAllOf1(ModelNormal): + """NOTE: This class is auto generated. + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + return { + 'period': (str,), # noqa: E501 + 'gzip_level': (str,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'period': 'period', # noqa: E501 + 'gzip_level': 'gzip_level', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """LoggingGenericCommonResponseAllOf1 - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + period (str): How frequently log files are finalized so they can be available for reading (in seconds).. [optional] if omitted the server will use the default value of "3600" # noqa: E501 + gzip_level (str): 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] if omitted the server will use the default value of "0" # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """LoggingGenericCommonResponseAllOf1 - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + period (str): How frequently log files are finalized so they can be available for reading (in seconds).. [optional] if omitted the server will use the default value of "3600" # noqa: E501 + gzip_level (str): 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] if omitted the server will use the default value of "0" # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/fastly/model/logging_google_pubsub.py b/fastly/model/logging_google_pubsub.py deleted file mode 100644 index 27d73d6..0000000 --- a/fastly/model/logging_google_pubsub.py +++ /dev/null @@ -1,361 +0,0 @@ -""" - Fastly API - - Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://developer.fastly.com/reference/api/) # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Contact: oss@fastly.com -""" - - -import re # noqa: F401 -import sys # noqa: F401 - -from fastly.model_utils import ( # noqa: F401 - ApiTypeError, - ModelComposed, - ModelNormal, - ModelSimple, - cached_property, - change_keys_js_to_python, - convert_js_args_to_python_args, - date, - datetime, - file_type, - none_type, - validate_get_composed_info, - OpenApiModel -) -from fastly.exceptions import ApiAttributeError - - -def lazy_import(): - from fastly.model.logging_common import LoggingCommon - from fastly.model.logging_gcs_common import LoggingGcsCommon - from fastly.model.logging_google_pubsub_all_of import LoggingGooglePubsubAllOf - globals()['LoggingCommon'] = LoggingCommon - globals()['LoggingGcsCommon'] = LoggingGcsCommon - globals()['LoggingGooglePubsubAllOf'] = LoggingGooglePubsubAllOf - - -class LoggingGooglePubsub(ModelComposed): - """NOTE: This class is auto generated. - Do not edit the class manually. - - Attributes: - allowed_values (dict): The key is the tuple path to the attribute - and the for var_name this is (var_name,). The value is a dict - with a capitalized key describing the allowed value and an allowed - value. These dicts store the allowed enum values. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - discriminator_value_class_map (dict): A dict to go from the discriminator - variable value to the discriminator class name. - validations (dict): The key is the tuple path to the attribute - and the for var_name this is (var_name,). The value is a dict - that stores validations for max_length, min_length, max_items, - min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, - inclusive_minimum, and regex. - additional_properties_type (tuple): A tuple of classes accepted - as additional properties values. - """ - - allowed_values = { - ('placement',): { - 'None': None, - 'NONE': "none", - 'WAF_DEBUG': "waf_debug", - 'NULL': "null", - }, - ('format_version',): { - 'v1': 1, - 'v2': 2, - }, - } - - validations = { - } - - @cached_property - def additional_properties_type(): - """ - This must be a method because a model may have properties that are - of type self, this must run after the class is loaded - """ - lazy_import() - return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 - - _nullable = False - - @cached_property - def openapi_types(): - """ - This must be a method because a model may have properties that are - of type self, this must run after the class is loaded - - Returns - openapi_types (dict): The key is attribute name - and the value is attribute type. - """ - lazy_import() - return { - 'name': (str,), # noqa: E501 - 'placement': (str, none_type,), # noqa: E501 - 'format_version': (int,), # noqa: E501 - 'response_condition': (str, none_type,), # noqa: E501 - 'format': (str,), # noqa: E501 - 'user': (str,), # noqa: E501 - 'secret_key': (str,), # noqa: E501 - 'account_name': (str,), # noqa: E501 - 'topic': (str,), # noqa: E501 - 'project_id': (str,), # noqa: E501 - } - - @cached_property - def discriminator(): - return None - - - attribute_map = { - 'name': 'name', # noqa: E501 - 'placement': 'placement', # noqa: E501 - 'format_version': 'format_version', # noqa: E501 - 'response_condition': 'response_condition', # noqa: E501 - 'format': 'format', # noqa: E501 - 'user': 'user', # noqa: E501 - 'secret_key': 'secret_key', # noqa: E501 - 'account_name': 'account_name', # noqa: E501 - 'topic': 'topic', # noqa: E501 - 'project_id': 'project_id', # noqa: E501 - } - - read_only_vars = { - } - - @classmethod - @convert_js_args_to_python_args - def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 - """LoggingGooglePubsub - a model defined in OpenAPI - - Keyword Args: - _check_type (bool): if True, values for parameters in openapi_types - will be type checked and a TypeError will be - raised if the wrong type is input. - Defaults to True - _path_to_item (tuple/list): This is a list of keys or values to - drill down to the model in received_data - when deserializing a response - _spec_property_naming (bool): True if the variable names in the input data - are serialized names, as specified in the OpenAPI document. - False if the variable names in the input data - are pythonic names, e.g. snake case (default) - _configuration (Configuration): the instance to use when - deserializing a file_type parameter. - If passed, type conversion is attempted - If omitted no type conversion is done. - _visited_composed_classes (tuple): This stores a tuple of - classes that we have traveled through so that - if we see that class again we will not use its - discriminator again. - When traveling through a discriminator, the - composed schema that is - is traveled through is added to this set. - For example if Animal has a discriminator - petType and we pass in "Dog", and the class Dog - allOf includes Animal, we move through Animal - once using the discriminator, and pick Dog. - Then in Dog, we will make an instance of the - Animal class but this time we won't travel - through its discriminator because we passed in - _visited_composed_classes = (Animal,) - name (str): The name for the real-time logging configuration.. [optional] # noqa: E501 - placement (str, none_type): Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. . [optional] # noqa: E501 - 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] if omitted the server will use the default value of 2 # noqa: E501 - response_condition (str, none_type): The name of an existing condition in the configured endpoint, or leave blank to always execute.. [optional] # noqa: E501 - format (str): A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats).. [optional] if omitted the server will use the default value of "%h %l %u %t "%r" %>s %b" # noqa: E501 - user (str): 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] # noqa: E501 - secret_key (str): 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] # noqa: E501 - account_name (str): 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] # noqa: E501 - topic (str): The Google Cloud Pub/Sub topic to which logs will be published. Required.. [optional] # noqa: E501 - project_id (str): Your Google Cloud Platform project ID. Required. [optional] # noqa: E501 - """ - - _check_type = kwargs.pop('_check_type', True) - _spec_property_naming = kwargs.pop('_spec_property_naming', False) - _path_to_item = kwargs.pop('_path_to_item', ()) - _configuration = kwargs.pop('_configuration', None) - _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) - - self = super(OpenApiModel, cls).__new__(cls) - - if args: - raise ApiTypeError( - "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( - args, - self.__class__.__name__, - ), - path_to_item=_path_to_item, - valid_classes=(self.__class__,), - ) - - self._data_store = {} - self._check_type = _check_type - self._spec_property_naming = _spec_property_naming - self._path_to_item = _path_to_item - self._configuration = _configuration - self._visited_composed_classes = _visited_composed_classes + (self.__class__,) - - constant_args = { - '_check_type': _check_type, - '_path_to_item': _path_to_item, - '_spec_property_naming': _spec_property_naming, - '_configuration': _configuration, - '_visited_composed_classes': self._visited_composed_classes, - } - composed_info = validate_get_composed_info( - constant_args, kwargs, self) - self._composed_instances = composed_info[0] - self._var_name_to_model_instances = composed_info[1] - self._additional_properties_model_instances = composed_info[2] - discarded_args = composed_info[3] - - for var_name, var_value in kwargs.items(): - if var_name in discarded_args and \ - self._configuration is not None and \ - self._configuration.discard_unknown_keys and \ - self._additional_properties_model_instances: - # discard variable. - continue - setattr(self, var_name, var_value) - - return self - - required_properties = set([ - '_data_store', - '_check_type', - '_spec_property_naming', - '_path_to_item', - '_configuration', - '_visited_composed_classes', - '_composed_instances', - '_var_name_to_model_instances', - '_additional_properties_model_instances', - ]) - - @convert_js_args_to_python_args - def __init__(self, *args, **kwargs): # noqa: E501 - """LoggingGooglePubsub - a model defined in OpenAPI - - Keyword Args: - _check_type (bool): if True, values for parameters in openapi_types - will be type checked and a TypeError will be - raised if the wrong type is input. - Defaults to True - _path_to_item (tuple/list): This is a list of keys or values to - drill down to the model in received_data - when deserializing a response - _spec_property_naming (bool): True if the variable names in the input data - are serialized names, as specified in the OpenAPI document. - False if the variable names in the input data - are pythonic names, e.g. snake case (default) - _configuration (Configuration): the instance to use when - deserializing a file_type parameter. - If passed, type conversion is attempted - If omitted no type conversion is done. - _visited_composed_classes (tuple): This stores a tuple of - classes that we have traveled through so that - if we see that class again we will not use its - discriminator again. - When traveling through a discriminator, the - composed schema that is - is traveled through is added to this set. - For example if Animal has a discriminator - petType and we pass in "Dog", and the class Dog - allOf includes Animal, we move through Animal - once using the discriminator, and pick Dog. - Then in Dog, we will make an instance of the - Animal class but this time we won't travel - through its discriminator because we passed in - _visited_composed_classes = (Animal,) - name (str): The name for the real-time logging configuration.. [optional] # noqa: E501 - placement (str, none_type): Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. . [optional] # noqa: E501 - 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] if omitted the server will use the default value of 2 # noqa: E501 - response_condition (str, none_type): The name of an existing condition in the configured endpoint, or leave blank to always execute.. [optional] # noqa: E501 - format (str): A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats).. [optional] if omitted the server will use the default value of "%h %l %u %t "%r" %>s %b" # noqa: E501 - user (str): 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] # noqa: E501 - secret_key (str): 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] # noqa: E501 - account_name (str): 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] # noqa: E501 - topic (str): The Google Cloud Pub/Sub topic to which logs will be published. Required.. [optional] # noqa: E501 - project_id (str): Your Google Cloud Platform project ID. Required. [optional] # noqa: E501 - """ - - _check_type = kwargs.pop('_check_type', True) - _spec_property_naming = kwargs.pop('_spec_property_naming', False) - _path_to_item = kwargs.pop('_path_to_item', ()) - _configuration = kwargs.pop('_configuration', None) - _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) - - if args: - raise ApiTypeError( - "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( - args, - self.__class__.__name__, - ), - path_to_item=_path_to_item, - valid_classes=(self.__class__,), - ) - - self._data_store = {} - self._check_type = _check_type - self._spec_property_naming = _spec_property_naming - self._path_to_item = _path_to_item - self._configuration = _configuration - self._visited_composed_classes = _visited_composed_classes + (self.__class__,) - - constant_args = { - '_check_type': _check_type, - '_path_to_item': _path_to_item, - '_spec_property_naming': _spec_property_naming, - '_configuration': _configuration, - '_visited_composed_classes': self._visited_composed_classes, - } - composed_info = validate_get_composed_info( - constant_args, kwargs, self) - self._composed_instances = composed_info[0] - self._var_name_to_model_instances = composed_info[1] - self._additional_properties_model_instances = composed_info[2] - discarded_args = composed_info[3] - - for var_name, var_value in kwargs.items(): - if var_name in discarded_args and \ - self._configuration is not None and \ - self._configuration.discard_unknown_keys and \ - self._additional_properties_model_instances: - # discard variable. - continue - setattr(self, var_name, var_value) - if var_name in self.read_only_vars: - raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " - f"class with read only attributes.") - - @cached_property - def _composed_schemas(): - # we need this here to make our import statements work - # we must store _composed_schemas in here so the code is only run - # when we invoke this method. If we kept this at the class - # level we would get an error because the class level - # code would be run when this module is imported, and these composed - # classes don't exist yet because their module has not finished - # loading - lazy_import() - return { - 'anyOf': [ - ], - 'allOf': [ - LoggingCommon, - LoggingGcsCommon, - LoggingGooglePubsubAllOf, - ], - 'oneOf': [ - ], - } diff --git a/fastly/model/logging_google_pubsub_all_of.py b/fastly/model/logging_google_pubsub_additional.py similarity index 98% rename from fastly/model/logging_google_pubsub_all_of.py rename to fastly/model/logging_google_pubsub_additional.py index 5fe2384..0cd6716 100644 --- a/fastly/model/logging_google_pubsub_all_of.py +++ b/fastly/model/logging_google_pubsub_additional.py @@ -30,7 +30,7 @@ -class LoggingGooglePubsubAllOf(ModelNormal): +class LoggingGooglePubsubAdditional(ModelNormal): """NOTE: This class is auto generated. Do not edit the class manually. @@ -103,7 +103,7 @@ def discriminator(): @classmethod @convert_js_args_to_python_args def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 - """LoggingGooglePubsubAllOf - a model defined in OpenAPI + """LoggingGooglePubsubAdditional - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -187,7 +187,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 @convert_js_args_to_python_args def __init__(self, *args, **kwargs): # noqa: E501 - """LoggingGooglePubsubAllOf - a model defined in OpenAPI + """LoggingGooglePubsubAdditional - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types diff --git a/fastly/model/logging_google_pubsub_response.py b/fastly/model/logging_google_pubsub_response.py index ace85d5..a7fb8e6 100644 --- a/fastly/model/logging_google_pubsub_response.py +++ b/fastly/model/logging_google_pubsub_response.py @@ -30,11 +30,15 @@ def lazy_import(): - from fastly.model.logging_google_pubsub import LoggingGooglePubsub - from fastly.model.service_id_and_version import ServiceIdAndVersion + from fastly.model.logging_common_response import LoggingCommonResponse + from fastly.model.logging_gcs_common import LoggingGcsCommon + from fastly.model.logging_google_pubsub_additional import LoggingGooglePubsubAdditional + from fastly.model.service_id_and_version_string import ServiceIdAndVersionString from fastly.model.timestamps import Timestamps - globals()['LoggingGooglePubsub'] = LoggingGooglePubsub - globals()['ServiceIdAndVersion'] = ServiceIdAndVersion + globals()['LoggingCommonResponse'] = LoggingCommonResponse + globals()['LoggingGcsCommon'] = LoggingGcsCommon + globals()['LoggingGooglePubsubAdditional'] = LoggingGooglePubsubAdditional + globals()['ServiceIdAndVersionString'] = ServiceIdAndVersionString globals()['Timestamps'] = Timestamps @@ -68,8 +72,8 @@ class LoggingGooglePubsubResponse(ModelComposed): 'NULL': "null", }, ('format_version',): { - 'v1': 1, - 'v2': 2, + 'v1': "1", + 'v2': "2", }, } @@ -101,9 +105,9 @@ def openapi_types(): return { 'name': (str,), # noqa: E501 'placement': (str, none_type,), # noqa: E501 - 'format_version': (int,), # noqa: E501 'response_condition': (str, none_type,), # noqa: E501 'format': (str,), # noqa: E501 + 'format_version': (str,), # noqa: E501 'user': (str,), # noqa: E501 'secret_key': (str,), # noqa: E501 'account_name': (str,), # noqa: E501 @@ -113,7 +117,7 @@ def openapi_types(): 'deleted_at': (datetime, none_type,), # noqa: E501 'updated_at': (datetime, none_type,), # noqa: E501 'service_id': (str,), # noqa: E501 - 'version': (int,), # noqa: E501 + 'version': (str,), # noqa: E501 } @cached_property @@ -124,9 +128,9 @@ def discriminator(): attribute_map = { 'name': 'name', # noqa: E501 'placement': 'placement', # noqa: E501 - 'format_version': 'format_version', # noqa: E501 'response_condition': 'response_condition', # noqa: E501 'format': 'format', # noqa: E501 + 'format_version': 'format_version', # noqa: E501 'user': 'user', # noqa: E501 'secret_key': 'secret_key', # noqa: E501 'account_name': 'account_name', # noqa: E501 @@ -185,9 +189,9 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 _visited_composed_classes = (Animal,) name (str): The name for the real-time logging configuration.. [optional] # noqa: E501 placement (str, none_type): Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. . [optional] # noqa: E501 - 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] if omitted the server will use the default value of 2 # noqa: E501 response_condition (str, none_type): The name of an existing condition in the configured endpoint, or leave blank to always execute.. [optional] # noqa: E501 format (str): A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats).. [optional] if omitted the server will use the default value of "%h %l %u %t "%r" %>s %b" # noqa: E501 + format_version (str): The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. . [optional] if omitted the server will use the default value of "2" # noqa: E501 user (str): 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] # noqa: E501 secret_key (str): 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] # noqa: E501 account_name (str): 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] # noqa: E501 @@ -197,7 +201,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 deleted_at (datetime, none_type): Date and time in ISO 8601 format.. [optional] # noqa: E501 updated_at (datetime, none_type): Date and time in ISO 8601 format.. [optional] # noqa: E501 service_id (str): [optional] # noqa: E501 - version (int): [optional] # noqa: E501 + version (str): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -299,9 +303,9 @@ def __init__(self, *args, **kwargs): # noqa: E501 _visited_composed_classes = (Animal,) name (str): The name for the real-time logging configuration.. [optional] # noqa: E501 placement (str, none_type): Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. . [optional] # noqa: E501 - 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] if omitted the server will use the default value of 2 # noqa: E501 response_condition (str, none_type): The name of an existing condition in the configured endpoint, or leave blank to always execute.. [optional] # noqa: E501 format (str): A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats).. [optional] if omitted the server will use the default value of "%h %l %u %t "%r" %>s %b" # noqa: E501 + format_version (str): The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. . [optional] if omitted the server will use the default value of "2" # noqa: E501 user (str): 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] # noqa: E501 secret_key (str): 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] # noqa: E501 account_name (str): 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] # noqa: E501 @@ -311,7 +315,7 @@ def __init__(self, *args, **kwargs): # noqa: E501 deleted_at (datetime, none_type): Date and time in ISO 8601 format.. [optional] # noqa: E501 updated_at (datetime, none_type): Date and time in ISO 8601 format.. [optional] # noqa: E501 service_id (str): [optional] # noqa: E501 - version (int): [optional] # noqa: E501 + version (str): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -377,8 +381,10 @@ def _composed_schemas(): 'anyOf': [ ], 'allOf': [ - LoggingGooglePubsub, - ServiceIdAndVersion, + LoggingCommonResponse, + LoggingGcsCommon, + LoggingGooglePubsubAdditional, + ServiceIdAndVersionString, Timestamps, ], 'oneOf': [ diff --git a/fastly/model/logging_heroku.py b/fastly/model/logging_heroku.py deleted file mode 100644 index 8f79ece..0000000 --- a/fastly/model/logging_heroku.py +++ /dev/null @@ -1,346 +0,0 @@ -""" - Fastly API - - Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://developer.fastly.com/reference/api/) # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Contact: oss@fastly.com -""" - - -import re # noqa: F401 -import sys # noqa: F401 - -from fastly.model_utils import ( # noqa: F401 - ApiTypeError, - ModelComposed, - ModelNormal, - ModelSimple, - cached_property, - change_keys_js_to_python, - convert_js_args_to_python_args, - date, - datetime, - file_type, - none_type, - validate_get_composed_info, - OpenApiModel -) -from fastly.exceptions import ApiAttributeError - - -def lazy_import(): - from fastly.model.logging_common import LoggingCommon - from fastly.model.logging_heroku_all_of import LoggingHerokuAllOf - globals()['LoggingCommon'] = LoggingCommon - globals()['LoggingHerokuAllOf'] = LoggingHerokuAllOf - - -class LoggingHeroku(ModelComposed): - """NOTE: This class is auto generated. - Do not edit the class manually. - - Attributes: - allowed_values (dict): The key is the tuple path to the attribute - and the for var_name this is (var_name,). The value is a dict - with a capitalized key describing the allowed value and an allowed - value. These dicts store the allowed enum values. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - discriminator_value_class_map (dict): A dict to go from the discriminator - variable value to the discriminator class name. - validations (dict): The key is the tuple path to the attribute - and the for var_name this is (var_name,). The value is a dict - that stores validations for max_length, min_length, max_items, - min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, - inclusive_minimum, and regex. - additional_properties_type (tuple): A tuple of classes accepted - as additional properties values. - """ - - allowed_values = { - ('placement',): { - 'None': None, - 'NONE': "none", - 'WAF_DEBUG': "waf_debug", - 'NULL': "null", - }, - ('format_version',): { - 'v1': 1, - 'v2': 2, - }, - } - - validations = { - } - - @cached_property - def additional_properties_type(): - """ - This must be a method because a model may have properties that are - of type self, this must run after the class is loaded - """ - lazy_import() - return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 - - _nullable = False - - @cached_property - def openapi_types(): - """ - This must be a method because a model may have properties that are - of type self, this must run after the class is loaded - - Returns - openapi_types (dict): The key is attribute name - and the value is attribute type. - """ - lazy_import() - return { - 'name': (str,), # noqa: E501 - 'placement': (str, none_type,), # noqa: E501 - 'format_version': (int,), # noqa: E501 - 'response_condition': (str, none_type,), # noqa: E501 - 'format': (str,), # noqa: E501 - 'token': (str,), # noqa: E501 - 'url': (str,), # noqa: E501 - } - - @cached_property - def discriminator(): - return None - - - attribute_map = { - 'name': 'name', # noqa: E501 - 'placement': 'placement', # noqa: E501 - 'format_version': 'format_version', # noqa: E501 - 'response_condition': 'response_condition', # noqa: E501 - 'format': 'format', # noqa: E501 - 'token': 'token', # noqa: E501 - 'url': 'url', # noqa: E501 - } - - read_only_vars = { - } - - @classmethod - @convert_js_args_to_python_args - def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 - """LoggingHeroku - a model defined in OpenAPI - - Keyword Args: - _check_type (bool): if True, values for parameters in openapi_types - will be type checked and a TypeError will be - raised if the wrong type is input. - Defaults to True - _path_to_item (tuple/list): This is a list of keys or values to - drill down to the model in received_data - when deserializing a response - _spec_property_naming (bool): True if the variable names in the input data - are serialized names, as specified in the OpenAPI document. - False if the variable names in the input data - are pythonic names, e.g. snake case (default) - _configuration (Configuration): the instance to use when - deserializing a file_type parameter. - If passed, type conversion is attempted - If omitted no type conversion is done. - _visited_composed_classes (tuple): This stores a tuple of - classes that we have traveled through so that - if we see that class again we will not use its - discriminator again. - When traveling through a discriminator, the - composed schema that is - is traveled through is added to this set. - For example if Animal has a discriminator - petType and we pass in "Dog", and the class Dog - allOf includes Animal, we move through Animal - once using the discriminator, and pick Dog. - Then in Dog, we will make an instance of the - Animal class but this time we won't travel - through its discriminator because we passed in - _visited_composed_classes = (Animal,) - name (str): The name for the real-time logging configuration.. [optional] # noqa: E501 - placement (str, none_type): Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. . [optional] # noqa: E501 - 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] if omitted the server will use the default value of 2 # noqa: E501 - response_condition (str, none_type): The name of an existing condition in the configured endpoint, or leave blank to always execute.. [optional] # noqa: E501 - format (str): A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats).. [optional] if omitted the server will use the default value of "%h %l %u %t "%r" %>s %b" # noqa: E501 - token (str): 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] # noqa: E501 - url (str): The URL to stream logs to.. [optional] # noqa: E501 - """ - - _check_type = kwargs.pop('_check_type', True) - _spec_property_naming = kwargs.pop('_spec_property_naming', False) - _path_to_item = kwargs.pop('_path_to_item', ()) - _configuration = kwargs.pop('_configuration', None) - _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) - - self = super(OpenApiModel, cls).__new__(cls) - - if args: - raise ApiTypeError( - "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( - args, - self.__class__.__name__, - ), - path_to_item=_path_to_item, - valid_classes=(self.__class__,), - ) - - self._data_store = {} - self._check_type = _check_type - self._spec_property_naming = _spec_property_naming - self._path_to_item = _path_to_item - self._configuration = _configuration - self._visited_composed_classes = _visited_composed_classes + (self.__class__,) - - constant_args = { - '_check_type': _check_type, - '_path_to_item': _path_to_item, - '_spec_property_naming': _spec_property_naming, - '_configuration': _configuration, - '_visited_composed_classes': self._visited_composed_classes, - } - composed_info = validate_get_composed_info( - constant_args, kwargs, self) - self._composed_instances = composed_info[0] - self._var_name_to_model_instances = composed_info[1] - self._additional_properties_model_instances = composed_info[2] - discarded_args = composed_info[3] - - for var_name, var_value in kwargs.items(): - if var_name in discarded_args and \ - self._configuration is not None and \ - self._configuration.discard_unknown_keys and \ - self._additional_properties_model_instances: - # discard variable. - continue - setattr(self, var_name, var_value) - - return self - - required_properties = set([ - '_data_store', - '_check_type', - '_spec_property_naming', - '_path_to_item', - '_configuration', - '_visited_composed_classes', - '_composed_instances', - '_var_name_to_model_instances', - '_additional_properties_model_instances', - ]) - - @convert_js_args_to_python_args - def __init__(self, *args, **kwargs): # noqa: E501 - """LoggingHeroku - a model defined in OpenAPI - - Keyword Args: - _check_type (bool): if True, values for parameters in openapi_types - will be type checked and a TypeError will be - raised if the wrong type is input. - Defaults to True - _path_to_item (tuple/list): This is a list of keys or values to - drill down to the model in received_data - when deserializing a response - _spec_property_naming (bool): True if the variable names in the input data - are serialized names, as specified in the OpenAPI document. - False if the variable names in the input data - are pythonic names, e.g. snake case (default) - _configuration (Configuration): the instance to use when - deserializing a file_type parameter. - If passed, type conversion is attempted - If omitted no type conversion is done. - _visited_composed_classes (tuple): This stores a tuple of - classes that we have traveled through so that - if we see that class again we will not use its - discriminator again. - When traveling through a discriminator, the - composed schema that is - is traveled through is added to this set. - For example if Animal has a discriminator - petType and we pass in "Dog", and the class Dog - allOf includes Animal, we move through Animal - once using the discriminator, and pick Dog. - Then in Dog, we will make an instance of the - Animal class but this time we won't travel - through its discriminator because we passed in - _visited_composed_classes = (Animal,) - name (str): The name for the real-time logging configuration.. [optional] # noqa: E501 - placement (str, none_type): Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. . [optional] # noqa: E501 - 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] if omitted the server will use the default value of 2 # noqa: E501 - response_condition (str, none_type): The name of an existing condition in the configured endpoint, or leave blank to always execute.. [optional] # noqa: E501 - format (str): A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats).. [optional] if omitted the server will use the default value of "%h %l %u %t "%r" %>s %b" # noqa: E501 - token (str): 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] # noqa: E501 - url (str): The URL to stream logs to.. [optional] # noqa: E501 - """ - - _check_type = kwargs.pop('_check_type', True) - _spec_property_naming = kwargs.pop('_spec_property_naming', False) - _path_to_item = kwargs.pop('_path_to_item', ()) - _configuration = kwargs.pop('_configuration', None) - _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) - - if args: - raise ApiTypeError( - "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( - args, - self.__class__.__name__, - ), - path_to_item=_path_to_item, - valid_classes=(self.__class__,), - ) - - self._data_store = {} - self._check_type = _check_type - self._spec_property_naming = _spec_property_naming - self._path_to_item = _path_to_item - self._configuration = _configuration - self._visited_composed_classes = _visited_composed_classes + (self.__class__,) - - constant_args = { - '_check_type': _check_type, - '_path_to_item': _path_to_item, - '_spec_property_naming': _spec_property_naming, - '_configuration': _configuration, - '_visited_composed_classes': self._visited_composed_classes, - } - composed_info = validate_get_composed_info( - constant_args, kwargs, self) - self._composed_instances = composed_info[0] - self._var_name_to_model_instances = composed_info[1] - self._additional_properties_model_instances = composed_info[2] - discarded_args = composed_info[3] - - for var_name, var_value in kwargs.items(): - if var_name in discarded_args and \ - self._configuration is not None and \ - self._configuration.discard_unknown_keys and \ - self._additional_properties_model_instances: - # discard variable. - continue - setattr(self, var_name, var_value) - if var_name in self.read_only_vars: - raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " - f"class with read only attributes.") - - @cached_property - def _composed_schemas(): - # we need this here to make our import statements work - # we must store _composed_schemas in here so the code is only run - # when we invoke this method. If we kept this at the class - # level we would get an error because the class level - # code would be run when this module is imported, and these composed - # classes don't exist yet because their module has not finished - # loading - lazy_import() - return { - 'anyOf': [ - ], - 'allOf': [ - LoggingCommon, - LoggingHerokuAllOf, - ], - 'oneOf': [ - ], - } diff --git a/fastly/model/logging_heroku_all_of.py b/fastly/model/logging_heroku_additional.py similarity index 98% rename from fastly/model/logging_heroku_all_of.py rename to fastly/model/logging_heroku_additional.py index 16cec4f..c9fbf3a 100644 --- a/fastly/model/logging_heroku_all_of.py +++ b/fastly/model/logging_heroku_additional.py @@ -30,7 +30,7 @@ -class LoggingHerokuAllOf(ModelNormal): +class LoggingHerokuAdditional(ModelNormal): """NOTE: This class is auto generated. Do not edit the class manually. @@ -101,7 +101,7 @@ def discriminator(): @classmethod @convert_js_args_to_python_args def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 - """LoggingHerokuAllOf - a model defined in OpenAPI + """LoggingHerokuAdditional - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -184,7 +184,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 @convert_js_args_to_python_args def __init__(self, *args, **kwargs): # noqa: E501 - """LoggingHerokuAllOf - a model defined in OpenAPI + """LoggingHerokuAdditional - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types diff --git a/fastly/model/logging_heroku_response.py b/fastly/model/logging_heroku_response.py index efc7531..4195ecf 100644 --- a/fastly/model/logging_heroku_response.py +++ b/fastly/model/logging_heroku_response.py @@ -30,11 +30,13 @@ def lazy_import(): - from fastly.model.logging_heroku import LoggingHeroku - from fastly.model.service_id_and_version import ServiceIdAndVersion + from fastly.model.logging_common_response import LoggingCommonResponse + from fastly.model.logging_heroku_additional import LoggingHerokuAdditional + from fastly.model.service_id_and_version_string import ServiceIdAndVersionString from fastly.model.timestamps import Timestamps - globals()['LoggingHeroku'] = LoggingHeroku - globals()['ServiceIdAndVersion'] = ServiceIdAndVersion + globals()['LoggingCommonResponse'] = LoggingCommonResponse + globals()['LoggingHerokuAdditional'] = LoggingHerokuAdditional + globals()['ServiceIdAndVersionString'] = ServiceIdAndVersionString globals()['Timestamps'] = Timestamps @@ -68,8 +70,8 @@ class LoggingHerokuResponse(ModelComposed): 'NULL': "null", }, ('format_version',): { - 'v1': 1, - 'v2': 2, + 'v1': "1", + 'v2': "2", }, } @@ -101,16 +103,16 @@ def openapi_types(): return { 'name': (str,), # noqa: E501 'placement': (str, none_type,), # noqa: E501 - 'format_version': (int,), # noqa: E501 'response_condition': (str, none_type,), # noqa: E501 'format': (str,), # noqa: E501 + 'format_version': (str,), # noqa: E501 'token': (str,), # noqa: E501 'url': (str,), # noqa: E501 'created_at': (datetime, none_type,), # noqa: E501 'deleted_at': (datetime, none_type,), # noqa: E501 'updated_at': (datetime, none_type,), # noqa: E501 'service_id': (str,), # noqa: E501 - 'version': (int,), # noqa: E501 + 'version': (str,), # noqa: E501 } @cached_property @@ -121,9 +123,9 @@ def discriminator(): attribute_map = { 'name': 'name', # noqa: E501 'placement': 'placement', # noqa: E501 - 'format_version': 'format_version', # noqa: E501 'response_condition': 'response_condition', # noqa: E501 'format': 'format', # noqa: E501 + 'format_version': 'format_version', # noqa: E501 'token': 'token', # noqa: E501 'url': 'url', # noqa: E501 'created_at': 'created_at', # noqa: E501 @@ -179,16 +181,16 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 _visited_composed_classes = (Animal,) name (str): The name for the real-time logging configuration.. [optional] # noqa: E501 placement (str, none_type): Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. . [optional] # noqa: E501 - 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] if omitted the server will use the default value of 2 # noqa: E501 response_condition (str, none_type): The name of an existing condition in the configured endpoint, or leave blank to always execute.. [optional] # noqa: E501 format (str): A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats).. [optional] if omitted the server will use the default value of "%h %l %u %t "%r" %>s %b" # noqa: E501 + format_version (str): The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. . [optional] if omitted the server will use the default value of "2" # noqa: E501 token (str): 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] # noqa: E501 url (str): The URL to stream logs to.. [optional] # noqa: E501 created_at (datetime, none_type): Date and time in ISO 8601 format.. [optional] # noqa: E501 deleted_at (datetime, none_type): Date and time in ISO 8601 format.. [optional] # noqa: E501 updated_at (datetime, none_type): Date and time in ISO 8601 format.. [optional] # noqa: E501 service_id (str): [optional] # noqa: E501 - version (int): [optional] # noqa: E501 + version (str): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -290,16 +292,16 @@ def __init__(self, *args, **kwargs): # noqa: E501 _visited_composed_classes = (Animal,) name (str): The name for the real-time logging configuration.. [optional] # noqa: E501 placement (str, none_type): Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. . [optional] # noqa: E501 - 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] if omitted the server will use the default value of 2 # noqa: E501 response_condition (str, none_type): The name of an existing condition in the configured endpoint, or leave blank to always execute.. [optional] # noqa: E501 format (str): A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats).. [optional] if omitted the server will use the default value of "%h %l %u %t "%r" %>s %b" # noqa: E501 + format_version (str): The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. . [optional] if omitted the server will use the default value of "2" # noqa: E501 token (str): 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] # noqa: E501 url (str): The URL to stream logs to.. [optional] # noqa: E501 created_at (datetime, none_type): Date and time in ISO 8601 format.. [optional] # noqa: E501 deleted_at (datetime, none_type): Date and time in ISO 8601 format.. [optional] # noqa: E501 updated_at (datetime, none_type): Date and time in ISO 8601 format.. [optional] # noqa: E501 service_id (str): [optional] # noqa: E501 - version (int): [optional] # noqa: E501 + version (str): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -365,8 +367,9 @@ def _composed_schemas(): 'anyOf': [ ], 'allOf': [ - LoggingHeroku, - ServiceIdAndVersion, + LoggingCommonResponse, + LoggingHerokuAdditional, + ServiceIdAndVersionString, Timestamps, ], 'oneOf': [ diff --git a/fastly/model/logging_honeycomb_all_of.py b/fastly/model/logging_honeycomb_additional.py similarity index 98% rename from fastly/model/logging_honeycomb_all_of.py rename to fastly/model/logging_honeycomb_additional.py index a4107e3..6eec242 100644 --- a/fastly/model/logging_honeycomb_all_of.py +++ b/fastly/model/logging_honeycomb_additional.py @@ -30,7 +30,7 @@ -class LoggingHoneycombAllOf(ModelNormal): +class LoggingHoneycombAdditional(ModelNormal): """NOTE: This class is auto generated. Do not edit the class manually. @@ -103,7 +103,7 @@ def discriminator(): @classmethod @convert_js_args_to_python_args def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 - """LoggingHoneycombAllOf - a model defined in OpenAPI + """LoggingHoneycombAdditional - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -187,7 +187,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 @convert_js_args_to_python_args def __init__(self, *args, **kwargs): # noqa: E501 - """LoggingHoneycombAllOf - a model defined in OpenAPI + """LoggingHoneycombAdditional - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types diff --git a/fastly/model/logging_honeycomb_response.py b/fastly/model/logging_honeycomb_response.py index 18b46d7..1eb4112 100644 --- a/fastly/model/logging_honeycomb_response.py +++ b/fastly/model/logging_honeycomb_response.py @@ -30,11 +30,13 @@ def lazy_import(): - from fastly.model.logging_honeycomb import LoggingHoneycomb - from fastly.model.service_id_and_version import ServiceIdAndVersion + from fastly.model.logging_common_response import LoggingCommonResponse + from fastly.model.logging_honeycomb_additional import LoggingHoneycombAdditional + from fastly.model.service_id_and_version_string import ServiceIdAndVersionString from fastly.model.timestamps import Timestamps - globals()['LoggingHoneycomb'] = LoggingHoneycomb - globals()['ServiceIdAndVersion'] = ServiceIdAndVersion + globals()['LoggingCommonResponse'] = LoggingCommonResponse + globals()['LoggingHoneycombAdditional'] = LoggingHoneycombAdditional + globals()['ServiceIdAndVersionString'] = ServiceIdAndVersionString globals()['Timestamps'] = Timestamps @@ -68,8 +70,8 @@ class LoggingHoneycombResponse(ModelComposed): 'NULL': "null", }, ('format_version',): { - 'v1': 1, - 'v2': 2, + 'v1': "1", + 'v2': "2", }, } @@ -101,16 +103,16 @@ def openapi_types(): return { 'name': (str,), # noqa: E501 'placement': (str, none_type,), # noqa: E501 - 'format_version': (int,), # noqa: E501 'response_condition': (str, none_type,), # noqa: E501 'format': (str,), # noqa: E501 + 'format_version': (str,), # noqa: E501 'dataset': (str,), # noqa: E501 'token': (str,), # noqa: E501 'created_at': (datetime, none_type,), # noqa: E501 'deleted_at': (datetime, none_type,), # noqa: E501 'updated_at': (datetime, none_type,), # noqa: E501 'service_id': (str,), # noqa: E501 - 'version': (int,), # noqa: E501 + 'version': (str,), # noqa: E501 } @cached_property @@ -121,9 +123,9 @@ def discriminator(): attribute_map = { 'name': 'name', # noqa: E501 'placement': 'placement', # noqa: E501 - 'format_version': 'format_version', # noqa: E501 'response_condition': 'response_condition', # noqa: E501 'format': 'format', # noqa: E501 + 'format_version': 'format_version', # noqa: E501 'dataset': 'dataset', # noqa: E501 'token': 'token', # noqa: E501 'created_at': 'created_at', # noqa: E501 @@ -179,16 +181,16 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 _visited_composed_classes = (Animal,) name (str): The name for the real-time logging configuration.. [optional] # noqa: E501 placement (str, none_type): Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. . [optional] # noqa: E501 - 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] if omitted the server will use the default value of 2 # noqa: E501 response_condition (str, none_type): The name of an existing condition in the configured endpoint, or leave blank to always execute.. [optional] # noqa: E501 format (str): A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). Must produce valid JSON that Honeycomb can ingest.. [optional] # noqa: E501 + format_version (str): The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. . [optional] if omitted the server will use the default value of "2" # noqa: E501 dataset (str): The Honeycomb Dataset you want to log to.. [optional] # noqa: E501 token (str): The Write Key from the Account page of your Honeycomb account.. [optional] # noqa: E501 created_at (datetime, none_type): Date and time in ISO 8601 format.. [optional] # noqa: E501 deleted_at (datetime, none_type): Date and time in ISO 8601 format.. [optional] # noqa: E501 updated_at (datetime, none_type): Date and time in ISO 8601 format.. [optional] # noqa: E501 service_id (str): [optional] # noqa: E501 - version (int): [optional] # noqa: E501 + version (str): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -290,16 +292,16 @@ def __init__(self, *args, **kwargs): # noqa: E501 _visited_composed_classes = (Animal,) name (str): The name for the real-time logging configuration.. [optional] # noqa: E501 placement (str, none_type): Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. . [optional] # noqa: E501 - 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] if omitted the server will use the default value of 2 # noqa: E501 response_condition (str, none_type): The name of an existing condition in the configured endpoint, or leave blank to always execute.. [optional] # noqa: E501 format (str): A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). Must produce valid JSON that Honeycomb can ingest.. [optional] # noqa: E501 + format_version (str): The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. . [optional] if omitted the server will use the default value of "2" # noqa: E501 dataset (str): The Honeycomb Dataset you want to log to.. [optional] # noqa: E501 token (str): The Write Key from the Account page of your Honeycomb account.. [optional] # noqa: E501 created_at (datetime, none_type): Date and time in ISO 8601 format.. [optional] # noqa: E501 deleted_at (datetime, none_type): Date and time in ISO 8601 format.. [optional] # noqa: E501 updated_at (datetime, none_type): Date and time in ISO 8601 format.. [optional] # noqa: E501 service_id (str): [optional] # noqa: E501 - version (int): [optional] # noqa: E501 + version (str): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -365,8 +367,9 @@ def _composed_schemas(): 'anyOf': [ ], 'allOf': [ - LoggingHoneycomb, - ServiceIdAndVersion, + LoggingCommonResponse, + LoggingHoneycombAdditional, + ServiceIdAndVersionString, Timestamps, ], 'oneOf': [ diff --git a/fastly/model/logging_https.py b/fastly/model/logging_https.py deleted file mode 100644 index 799e70d..0000000 --- a/fastly/model/logging_https.py +++ /dev/null @@ -1,407 +0,0 @@ -""" - Fastly API - - Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://developer.fastly.com/reference/api/) # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Contact: oss@fastly.com -""" - - -import re # noqa: F401 -import sys # noqa: F401 - -from fastly.model_utils import ( # noqa: F401 - ApiTypeError, - ModelComposed, - ModelNormal, - ModelSimple, - cached_property, - change_keys_js_to_python, - convert_js_args_to_python_args, - date, - datetime, - file_type, - none_type, - validate_get_composed_info, - OpenApiModel -) -from fastly.exceptions import ApiAttributeError - - -def lazy_import(): - from fastly.model.logging_common import LoggingCommon - from fastly.model.logging_https_all_of import LoggingHttpsAllOf - from fastly.model.logging_message_type import LoggingMessageType - from fastly.model.logging_request_caps_common import LoggingRequestCapsCommon - from fastly.model.logging_tls_common import LoggingTlsCommon - globals()['LoggingCommon'] = LoggingCommon - globals()['LoggingHttpsAllOf'] = LoggingHttpsAllOf - globals()['LoggingMessageType'] = LoggingMessageType - globals()['LoggingRequestCapsCommon'] = LoggingRequestCapsCommon - globals()['LoggingTlsCommon'] = LoggingTlsCommon - - -class LoggingHttps(ModelComposed): - """NOTE: This class is auto generated. - Do not edit the class manually. - - Attributes: - allowed_values (dict): The key is the tuple path to the attribute - and the for var_name this is (var_name,). The value is a dict - with a capitalized key describing the allowed value and an allowed - value. These dicts store the allowed enum values. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - discriminator_value_class_map (dict): A dict to go from the discriminator - variable value to the discriminator class name. - validations (dict): The key is the tuple path to the attribute - and the for var_name this is (var_name,). The value is a dict - that stores validations for max_length, min_length, max_items, - min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, - inclusive_minimum, and regex. - additional_properties_type (tuple): A tuple of classes accepted - as additional properties values. - """ - - allowed_values = { - ('placement',): { - 'None': None, - 'NONE': "none", - 'WAF_DEBUG': "waf_debug", - 'NULL': "null", - }, - ('format_version',): { - 'v1': 1, - 'v2': 2, - }, - ('method',): { - 'POST': "POST", - 'PUT': "PUT", - }, - ('json_format',): { - 'disabled': "0", - 'json_array': "1", - 'newline_delimited_json': "2", - }, - } - - validations = { - } - - @cached_property - def additional_properties_type(): - """ - This must be a method because a model may have properties that are - of type self, this must run after the class is loaded - """ - lazy_import() - return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 - - _nullable = False - - @cached_property - def openapi_types(): - """ - This must be a method because a model may have properties that are - of type self, this must run after the class is loaded - - Returns - openapi_types (dict): The key is attribute name - and the value is attribute type. - """ - lazy_import() - return { - 'name': (str,), # noqa: E501 - 'placement': (str, none_type,), # noqa: E501 - 'format_version': (int,), # noqa: E501 - 'response_condition': (str, none_type,), # noqa: E501 - 'format': (str,), # noqa: E501 - 'tls_ca_cert': (str, none_type,), # noqa: E501 - 'tls_client_cert': (str, none_type,), # noqa: E501 - 'tls_client_key': (str, none_type,), # noqa: E501 - 'tls_hostname': (str, none_type,), # noqa: E501 - 'request_max_entries': (int,), # noqa: E501 - 'request_max_bytes': (int,), # noqa: E501 - 'url': (str,), # noqa: E501 - 'content_type': (str, none_type,), # noqa: E501 - 'header_name': (str, none_type,), # noqa: E501 - 'message_type': (LoggingMessageType,), # noqa: E501 - 'header_value': (str, none_type,), # noqa: E501 - 'method': (str,), # noqa: E501 - 'json_format': (str,), # noqa: E501 - } - - @cached_property - def discriminator(): - return None - - - attribute_map = { - 'name': 'name', # noqa: E501 - 'placement': 'placement', # noqa: E501 - 'format_version': 'format_version', # noqa: E501 - 'response_condition': 'response_condition', # noqa: E501 - 'format': 'format', # noqa: E501 - 'tls_ca_cert': 'tls_ca_cert', # noqa: E501 - 'tls_client_cert': 'tls_client_cert', # noqa: E501 - 'tls_client_key': 'tls_client_key', # noqa: E501 - 'tls_hostname': 'tls_hostname', # noqa: E501 - 'request_max_entries': 'request_max_entries', # noqa: E501 - 'request_max_bytes': 'request_max_bytes', # noqa: E501 - 'url': 'url', # noqa: E501 - 'content_type': 'content_type', # noqa: E501 - 'header_name': 'header_name', # noqa: E501 - 'message_type': 'message_type', # noqa: E501 - 'header_value': 'header_value', # noqa: E501 - 'method': 'method', # noqa: E501 - 'json_format': 'json_format', # noqa: E501 - } - - read_only_vars = { - } - - @classmethod - @convert_js_args_to_python_args - def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 - """LoggingHttps - a model defined in OpenAPI - - Keyword Args: - _check_type (bool): if True, values for parameters in openapi_types - will be type checked and a TypeError will be - raised if the wrong type is input. - Defaults to True - _path_to_item (tuple/list): This is a list of keys or values to - drill down to the model in received_data - when deserializing a response - _spec_property_naming (bool): True if the variable names in the input data - are serialized names, as specified in the OpenAPI document. - False if the variable names in the input data - are pythonic names, e.g. snake case (default) - _configuration (Configuration): the instance to use when - deserializing a file_type parameter. - If passed, type conversion is attempted - If omitted no type conversion is done. - _visited_composed_classes (tuple): This stores a tuple of - classes that we have traveled through so that - if we see that class again we will not use its - discriminator again. - When traveling through a discriminator, the - composed schema that is - is traveled through is added to this set. - For example if Animal has a discriminator - petType and we pass in "Dog", and the class Dog - allOf includes Animal, we move through Animal - once using the discriminator, and pick Dog. - Then in Dog, we will make an instance of the - Animal class but this time we won't travel - through its discriminator because we passed in - _visited_composed_classes = (Animal,) - name (str): The name for the real-time logging configuration.. [optional] # noqa: E501 - placement (str, none_type): Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. . [optional] # noqa: E501 - 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] if omitted the server will use the default value of 2 # noqa: E501 - response_condition (str, none_type): The name of an existing condition in the configured endpoint, or leave blank to always execute.. [optional] # noqa: E501 - format (str): A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats).. [optional] if omitted the server will use the default value of "%h %l %u %t "%r" %>s %b" # noqa: E501 - tls_ca_cert (str, none_type): A secure certificate to authenticate a server with. Must be in PEM format.. [optional] if omitted the server will use the default value of "null" # noqa: E501 - tls_client_cert (str, none_type): The client certificate used to make authenticated requests. Must be in PEM format.. [optional] if omitted the server will use the default value of "null" # noqa: E501 - tls_client_key (str, none_type): The client private key used to make authenticated requests. Must be in PEM format.. [optional] if omitted the server will use the default value of "null" # noqa: E501 - tls_hostname (str, none_type): 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] if omitted the server will use the default value of "null" # noqa: E501 - request_max_entries (int): The maximum number of logs sent in one request. Defaults `0` (10k).. [optional] if omitted the server will use the default value of 0 # noqa: E501 - request_max_bytes (int): The maximum number of bytes sent in one request. Defaults `0` (100MB).. [optional] if omitted the server will use the default value of 0 # noqa: E501 - url (str): The URL to send logs to. Must use HTTPS. Required.. [optional] # noqa: E501 - content_type (str, none_type): Content type of the header sent with the request.. [optional] if omitted the server will use the default value of "null" # noqa: E501 - header_name (str, none_type): Name of the custom header sent with the request.. [optional] if omitted the server will use the default value of "null" # noqa: E501 - message_type (LoggingMessageType): [optional] # noqa: E501 - header_value (str, none_type): Value of the custom header sent with the request.. [optional] if omitted the server will use the default value of "null" # noqa: E501 - method (str): HTTP method used for request.. [optional] if omitted the server will use the default value of "POST" # noqa: E501 - json_format (str): Enforces valid JSON formatting for log entries.. [optional] # noqa: E501 - """ - - _check_type = kwargs.pop('_check_type', True) - _spec_property_naming = kwargs.pop('_spec_property_naming', False) - _path_to_item = kwargs.pop('_path_to_item', ()) - _configuration = kwargs.pop('_configuration', None) - _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) - - self = super(OpenApiModel, cls).__new__(cls) - - if args: - raise ApiTypeError( - "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( - args, - self.__class__.__name__, - ), - path_to_item=_path_to_item, - valid_classes=(self.__class__,), - ) - - self._data_store = {} - self._check_type = _check_type - self._spec_property_naming = _spec_property_naming - self._path_to_item = _path_to_item - self._configuration = _configuration - self._visited_composed_classes = _visited_composed_classes + (self.__class__,) - - constant_args = { - '_check_type': _check_type, - '_path_to_item': _path_to_item, - '_spec_property_naming': _spec_property_naming, - '_configuration': _configuration, - '_visited_composed_classes': self._visited_composed_classes, - } - composed_info = validate_get_composed_info( - constant_args, kwargs, self) - self._composed_instances = composed_info[0] - self._var_name_to_model_instances = composed_info[1] - self._additional_properties_model_instances = composed_info[2] - discarded_args = composed_info[3] - - for var_name, var_value in kwargs.items(): - if var_name in discarded_args and \ - self._configuration is not None and \ - self._configuration.discard_unknown_keys and \ - self._additional_properties_model_instances: - # discard variable. - continue - setattr(self, var_name, var_value) - - return self - - required_properties = set([ - '_data_store', - '_check_type', - '_spec_property_naming', - '_path_to_item', - '_configuration', - '_visited_composed_classes', - '_composed_instances', - '_var_name_to_model_instances', - '_additional_properties_model_instances', - ]) - - @convert_js_args_to_python_args - def __init__(self, *args, **kwargs): # noqa: E501 - """LoggingHttps - a model defined in OpenAPI - - Keyword Args: - _check_type (bool): if True, values for parameters in openapi_types - will be type checked and a TypeError will be - raised if the wrong type is input. - Defaults to True - _path_to_item (tuple/list): This is a list of keys or values to - drill down to the model in received_data - when deserializing a response - _spec_property_naming (bool): True if the variable names in the input data - are serialized names, as specified in the OpenAPI document. - False if the variable names in the input data - are pythonic names, e.g. snake case (default) - _configuration (Configuration): the instance to use when - deserializing a file_type parameter. - If passed, type conversion is attempted - If omitted no type conversion is done. - _visited_composed_classes (tuple): This stores a tuple of - classes that we have traveled through so that - if we see that class again we will not use its - discriminator again. - When traveling through a discriminator, the - composed schema that is - is traveled through is added to this set. - For example if Animal has a discriminator - petType and we pass in "Dog", and the class Dog - allOf includes Animal, we move through Animal - once using the discriminator, and pick Dog. - Then in Dog, we will make an instance of the - Animal class but this time we won't travel - through its discriminator because we passed in - _visited_composed_classes = (Animal,) - name (str): The name for the real-time logging configuration.. [optional] # noqa: E501 - placement (str, none_type): Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. . [optional] # noqa: E501 - 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] if omitted the server will use the default value of 2 # noqa: E501 - response_condition (str, none_type): The name of an existing condition in the configured endpoint, or leave blank to always execute.. [optional] # noqa: E501 - format (str): A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats).. [optional] if omitted the server will use the default value of "%h %l %u %t "%r" %>s %b" # noqa: E501 - tls_ca_cert (str, none_type): A secure certificate to authenticate a server with. Must be in PEM format.. [optional] if omitted the server will use the default value of "null" # noqa: E501 - tls_client_cert (str, none_type): The client certificate used to make authenticated requests. Must be in PEM format.. [optional] if omitted the server will use the default value of "null" # noqa: E501 - tls_client_key (str, none_type): The client private key used to make authenticated requests. Must be in PEM format.. [optional] if omitted the server will use the default value of "null" # noqa: E501 - tls_hostname (str, none_type): 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] if omitted the server will use the default value of "null" # noqa: E501 - request_max_entries (int): The maximum number of logs sent in one request. Defaults `0` (10k).. [optional] if omitted the server will use the default value of 0 # noqa: E501 - request_max_bytes (int): The maximum number of bytes sent in one request. Defaults `0` (100MB).. [optional] if omitted the server will use the default value of 0 # noqa: E501 - url (str): The URL to send logs to. Must use HTTPS. Required.. [optional] # noqa: E501 - content_type (str, none_type): Content type of the header sent with the request.. [optional] if omitted the server will use the default value of "null" # noqa: E501 - header_name (str, none_type): Name of the custom header sent with the request.. [optional] if omitted the server will use the default value of "null" # noqa: E501 - message_type (LoggingMessageType): [optional] # noqa: E501 - header_value (str, none_type): Value of the custom header sent with the request.. [optional] if omitted the server will use the default value of "null" # noqa: E501 - method (str): HTTP method used for request.. [optional] if omitted the server will use the default value of "POST" # noqa: E501 - json_format (str): Enforces valid JSON formatting for log entries.. [optional] # noqa: E501 - """ - - _check_type = kwargs.pop('_check_type', True) - _spec_property_naming = kwargs.pop('_spec_property_naming', False) - _path_to_item = kwargs.pop('_path_to_item', ()) - _configuration = kwargs.pop('_configuration', None) - _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) - - if args: - raise ApiTypeError( - "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( - args, - self.__class__.__name__, - ), - path_to_item=_path_to_item, - valid_classes=(self.__class__,), - ) - - self._data_store = {} - self._check_type = _check_type - self._spec_property_naming = _spec_property_naming - self._path_to_item = _path_to_item - self._configuration = _configuration - self._visited_composed_classes = _visited_composed_classes + (self.__class__,) - - constant_args = { - '_check_type': _check_type, - '_path_to_item': _path_to_item, - '_spec_property_naming': _spec_property_naming, - '_configuration': _configuration, - '_visited_composed_classes': self._visited_composed_classes, - } - composed_info = validate_get_composed_info( - constant_args, kwargs, self) - self._composed_instances = composed_info[0] - self._var_name_to_model_instances = composed_info[1] - self._additional_properties_model_instances = composed_info[2] - discarded_args = composed_info[3] - - for var_name, var_value in kwargs.items(): - if var_name in discarded_args and \ - self._configuration is not None and \ - self._configuration.discard_unknown_keys and \ - self._additional_properties_model_instances: - # discard variable. - continue - setattr(self, var_name, var_value) - if var_name in self.read_only_vars: - raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " - f"class with read only attributes.") - - @cached_property - def _composed_schemas(): - # we need this here to make our import statements work - # we must store _composed_schemas in here so the code is only run - # when we invoke this method. If we kept this at the class - # level we would get an error because the class level - # code would be run when this module is imported, and these composed - # classes don't exist yet because their module has not finished - # loading - lazy_import() - return { - 'anyOf': [ - ], - 'allOf': [ - LoggingCommon, - LoggingHttpsAllOf, - LoggingRequestCapsCommon, - LoggingTlsCommon, - ], - 'oneOf': [ - ], - } diff --git a/fastly/model/logging_https_all_of.py b/fastly/model/logging_https_additional.py similarity index 98% rename from fastly/model/logging_https_all_of.py rename to fastly/model/logging_https_additional.py index 0da471f..ed85930 100644 --- a/fastly/model/logging_https_all_of.py +++ b/fastly/model/logging_https_additional.py @@ -34,7 +34,7 @@ def lazy_import(): globals()['LoggingMessageType'] = LoggingMessageType -class LoggingHttpsAllOf(ModelNormal): +class LoggingHttpsAdditional(ModelNormal): """NOTE: This class is auto generated. Do not edit the class manually. @@ -132,7 +132,7 @@ def discriminator(): @classmethod @convert_js_args_to_python_args def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 - """LoggingHttpsAllOf - a model defined in OpenAPI + """LoggingHttpsAdditional - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -223,7 +223,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 @convert_js_args_to_python_args def __init__(self, *args, **kwargs): # noqa: E501 - """LoggingHttpsAllOf - a model defined in OpenAPI + """LoggingHttpsAdditional - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types diff --git a/fastly/model/logging_https_response.py b/fastly/model/logging_https_response.py index 6d8e256..8e7b332 100644 --- a/fastly/model/logging_https_response.py +++ b/fastly/model/logging_https_response.py @@ -30,13 +30,19 @@ def lazy_import(): - from fastly.model.logging_https import LoggingHttps + from fastly.model.logging_common_response import LoggingCommonResponse + from fastly.model.logging_https_additional import LoggingHttpsAdditional from fastly.model.logging_message_type import LoggingMessageType - from fastly.model.service_id_and_version import ServiceIdAndVersion + from fastly.model.logging_request_caps_common import LoggingRequestCapsCommon + from fastly.model.logging_tls_common import LoggingTlsCommon + from fastly.model.service_id_and_version_string import ServiceIdAndVersionString from fastly.model.timestamps import Timestamps - globals()['LoggingHttps'] = LoggingHttps + globals()['LoggingCommonResponse'] = LoggingCommonResponse + globals()['LoggingHttpsAdditional'] = LoggingHttpsAdditional globals()['LoggingMessageType'] = LoggingMessageType - globals()['ServiceIdAndVersion'] = ServiceIdAndVersion + globals()['LoggingRequestCapsCommon'] = LoggingRequestCapsCommon + globals()['LoggingTlsCommon'] = LoggingTlsCommon + globals()['ServiceIdAndVersionString'] = ServiceIdAndVersionString globals()['Timestamps'] = Timestamps @@ -70,8 +76,8 @@ class LoggingHttpsResponse(ModelComposed): 'NULL': "null", }, ('format_version',): { - 'v1': 1, - 'v2': 2, + 'v1': "1", + 'v2': "2", }, ('method',): { 'POST': "POST", @@ -112,9 +118,9 @@ def openapi_types(): return { 'name': (str,), # noqa: E501 'placement': (str, none_type,), # noqa: E501 - 'format_version': (int,), # noqa: E501 'response_condition': (str, none_type,), # noqa: E501 'format': (str,), # noqa: E501 + 'format_version': (str,), # noqa: E501 'tls_ca_cert': (str, none_type,), # noqa: E501 'tls_client_cert': (str, none_type,), # noqa: E501 'tls_client_key': (str, none_type,), # noqa: E501 @@ -132,7 +138,7 @@ def openapi_types(): 'deleted_at': (datetime, none_type,), # noqa: E501 'updated_at': (datetime, none_type,), # noqa: E501 'service_id': (str,), # noqa: E501 - 'version': (int,), # noqa: E501 + 'version': (str,), # noqa: E501 } @cached_property @@ -143,9 +149,9 @@ def discriminator(): attribute_map = { 'name': 'name', # noqa: E501 'placement': 'placement', # noqa: E501 - 'format_version': 'format_version', # noqa: E501 'response_condition': 'response_condition', # noqa: E501 'format': 'format', # noqa: E501 + 'format_version': 'format_version', # noqa: E501 'tls_ca_cert': 'tls_ca_cert', # noqa: E501 'tls_client_cert': 'tls_client_cert', # noqa: E501 'tls_client_key': 'tls_client_key', # noqa: E501 @@ -212,9 +218,9 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 _visited_composed_classes = (Animal,) name (str): The name for the real-time logging configuration.. [optional] # noqa: E501 placement (str, none_type): Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. . [optional] # noqa: E501 - 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] if omitted the server will use the default value of 2 # noqa: E501 response_condition (str, none_type): The name of an existing condition in the configured endpoint, or leave blank to always execute.. [optional] # noqa: E501 format (str): A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats).. [optional] if omitted the server will use the default value of "%h %l %u %t "%r" %>s %b" # noqa: E501 + format_version (str): The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. . [optional] if omitted the server will use the default value of "2" # noqa: E501 tls_ca_cert (str, none_type): A secure certificate to authenticate a server with. Must be in PEM format.. [optional] if omitted the server will use the default value of "null" # noqa: E501 tls_client_cert (str, none_type): The client certificate used to make authenticated requests. Must be in PEM format.. [optional] if omitted the server will use the default value of "null" # noqa: E501 tls_client_key (str, none_type): The client private key used to make authenticated requests. Must be in PEM format.. [optional] if omitted the server will use the default value of "null" # noqa: E501 @@ -232,7 +238,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 deleted_at (datetime, none_type): Date and time in ISO 8601 format.. [optional] # noqa: E501 updated_at (datetime, none_type): Date and time in ISO 8601 format.. [optional] # noqa: E501 service_id (str): [optional] # noqa: E501 - version (int): [optional] # noqa: E501 + version (str): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -334,9 +340,9 @@ def __init__(self, *args, **kwargs): # noqa: E501 _visited_composed_classes = (Animal,) name (str): The name for the real-time logging configuration.. [optional] # noqa: E501 placement (str, none_type): Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. . [optional] # noqa: E501 - 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] if omitted the server will use the default value of 2 # noqa: E501 response_condition (str, none_type): The name of an existing condition in the configured endpoint, or leave blank to always execute.. [optional] # noqa: E501 format (str): A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats).. [optional] if omitted the server will use the default value of "%h %l %u %t "%r" %>s %b" # noqa: E501 + format_version (str): The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. . [optional] if omitted the server will use the default value of "2" # noqa: E501 tls_ca_cert (str, none_type): A secure certificate to authenticate a server with. Must be in PEM format.. [optional] if omitted the server will use the default value of "null" # noqa: E501 tls_client_cert (str, none_type): The client certificate used to make authenticated requests. Must be in PEM format.. [optional] if omitted the server will use the default value of "null" # noqa: E501 tls_client_key (str, none_type): The client private key used to make authenticated requests. Must be in PEM format.. [optional] if omitted the server will use the default value of "null" # noqa: E501 @@ -354,7 +360,7 @@ def __init__(self, *args, **kwargs): # noqa: E501 deleted_at (datetime, none_type): Date and time in ISO 8601 format.. [optional] # noqa: E501 updated_at (datetime, none_type): Date and time in ISO 8601 format.. [optional] # noqa: E501 service_id (str): [optional] # noqa: E501 - version (int): [optional] # noqa: E501 + version (str): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -420,8 +426,11 @@ def _composed_schemas(): 'anyOf': [ ], 'allOf': [ - LoggingHttps, - ServiceIdAndVersion, + LoggingCommonResponse, + LoggingHttpsAdditional, + LoggingRequestCapsCommon, + LoggingTlsCommon, + ServiceIdAndVersionString, Timestamps, ], 'oneOf': [ diff --git a/fastly/model/logging_kafka_all_of.py b/fastly/model/logging_kafka_additional.py similarity index 98% rename from fastly/model/logging_kafka_all_of.py rename to fastly/model/logging_kafka_additional.py index deba5b7..de2a6bd 100644 --- a/fastly/model/logging_kafka_all_of.py +++ b/fastly/model/logging_kafka_additional.py @@ -34,7 +34,7 @@ def lazy_import(): globals()['LoggingUseTls'] = LoggingUseTls -class LoggingKafkaAllOf(ModelNormal): +class LoggingKafkaAdditional(ModelNormal): """NOTE: This class is auto generated. Do not edit the class manually. @@ -140,7 +140,7 @@ def discriminator(): @classmethod @convert_js_args_to_python_args def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 - """LoggingKafkaAllOf - a model defined in OpenAPI + """LoggingKafkaAdditional - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -231,7 +231,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 @convert_js_args_to_python_args def __init__(self, *args, **kwargs): # noqa: E501 - """LoggingKafkaAllOf - a model defined in OpenAPI + """LoggingKafkaAdditional - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types diff --git a/fastly/model/logging_kafka_response.py b/fastly/model/logging_kafka_response.py index c0c8594..65437e9 100644 --- a/fastly/model/logging_kafka_response.py +++ b/fastly/model/logging_kafka_response.py @@ -30,13 +30,17 @@ def lazy_import(): - from fastly.model.logging_kafka import LoggingKafka + from fastly.model.logging_common_response import LoggingCommonResponse + from fastly.model.logging_kafka_additional import LoggingKafkaAdditional + from fastly.model.logging_tls_common import LoggingTlsCommon from fastly.model.logging_use_tls import LoggingUseTls - from fastly.model.service_id_and_version import ServiceIdAndVersion + from fastly.model.service_id_and_version_string import ServiceIdAndVersionString from fastly.model.timestamps import Timestamps - globals()['LoggingKafka'] = LoggingKafka + globals()['LoggingCommonResponse'] = LoggingCommonResponse + globals()['LoggingKafkaAdditional'] = LoggingKafkaAdditional + globals()['LoggingTlsCommon'] = LoggingTlsCommon globals()['LoggingUseTls'] = LoggingUseTls - globals()['ServiceIdAndVersion'] = ServiceIdAndVersion + globals()['ServiceIdAndVersionString'] = ServiceIdAndVersionString globals()['Timestamps'] = Timestamps @@ -70,8 +74,8 @@ class LoggingKafkaResponse(ModelComposed): 'NULL': "null", }, ('format_version',): { - 'v1': 1, - 'v2': 2, + 'v1': "1", + 'v2': "2", }, ('compression_codec',): { 'None': None, @@ -120,13 +124,18 @@ def openapi_types(): return { 'name': (str,), # noqa: E501 'placement': (str, none_type,), # noqa: E501 - 'format_version': (int,), # noqa: E501 'response_condition': (str, none_type,), # noqa: E501 'format': (str,), # noqa: E501 + 'format_version': (str,), # noqa: E501 'tls_ca_cert': (str, none_type,), # noqa: E501 'tls_client_cert': (str, none_type,), # noqa: E501 'tls_client_key': (str, none_type,), # noqa: E501 'tls_hostname': (str, none_type,), # noqa: E501 + 'created_at': (datetime, none_type,), # noqa: E501 + 'deleted_at': (datetime, none_type,), # noqa: E501 + 'updated_at': (datetime, none_type,), # noqa: E501 + 'service_id': (str,), # noqa: E501 + 'version': (str,), # noqa: E501 'topic': (str,), # noqa: E501 'brokers': (str,), # noqa: E501 'compression_codec': (str, none_type,), # noqa: E501 @@ -137,11 +146,6 @@ def openapi_types(): 'user': (str,), # noqa: E501 'password': (str,), # noqa: E501 'use_tls': (LoggingUseTls,), # noqa: E501 - 'created_at': (datetime, none_type,), # noqa: E501 - 'deleted_at': (datetime, none_type,), # noqa: E501 - 'updated_at': (datetime, none_type,), # noqa: E501 - 'service_id': (str,), # noqa: E501 - 'version': (int,), # noqa: E501 } @cached_property @@ -152,13 +156,18 @@ def discriminator(): attribute_map = { 'name': 'name', # noqa: E501 'placement': 'placement', # noqa: E501 - 'format_version': 'format_version', # noqa: E501 'response_condition': 'response_condition', # noqa: E501 'format': 'format', # noqa: E501 + 'format_version': 'format_version', # noqa: E501 'tls_ca_cert': 'tls_ca_cert', # noqa: E501 'tls_client_cert': 'tls_client_cert', # noqa: E501 'tls_client_key': 'tls_client_key', # noqa: E501 'tls_hostname': 'tls_hostname', # noqa: E501 + 'created_at': 'created_at', # noqa: E501 + 'deleted_at': 'deleted_at', # noqa: E501 + 'updated_at': 'updated_at', # noqa: E501 + 'service_id': 'service_id', # noqa: E501 + 'version': 'version', # noqa: E501 'topic': 'topic', # noqa: E501 'brokers': 'brokers', # noqa: E501 'compression_codec': 'compression_codec', # noqa: E501 @@ -169,11 +178,6 @@ def discriminator(): 'user': 'user', # noqa: E501 'password': 'password', # noqa: E501 'use_tls': 'use_tls', # noqa: E501 - 'created_at': 'created_at', # noqa: E501 - 'deleted_at': 'deleted_at', # noqa: E501 - 'updated_at': 'updated_at', # noqa: E501 - 'service_id': 'service_id', # noqa: E501 - 'version': 'version', # noqa: E501 } read_only_vars = { @@ -222,13 +226,18 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 _visited_composed_classes = (Animal,) name (str): The name for the real-time logging configuration.. [optional] # noqa: E501 placement (str, none_type): Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. . [optional] # noqa: E501 - 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] if omitted the server will use the default value of 2 # noqa: E501 response_condition (str, none_type): The name of an existing condition in the configured endpoint, or leave blank to always execute.. [optional] # noqa: E501 format (str): A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats).. [optional] if omitted the server will use the default value of "%h %l %u %t "%r" %>s %b" # noqa: E501 + format_version (str): The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. . [optional] if omitted the server will use the default value of "2" # noqa: E501 tls_ca_cert (str, none_type): A secure certificate to authenticate a server with. Must be in PEM format.. [optional] if omitted the server will use the default value of "null" # noqa: E501 tls_client_cert (str, none_type): The client certificate used to make authenticated requests. Must be in PEM format.. [optional] if omitted the server will use the default value of "null" # noqa: E501 tls_client_key (str, none_type): The client private key used to make authenticated requests. Must be in PEM format.. [optional] if omitted the server will use the default value of "null" # noqa: E501 tls_hostname (str, none_type): 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] if omitted the server will use the default value of "null" # noqa: E501 + created_at (datetime, none_type): Date and time in ISO 8601 format.. [optional] # noqa: E501 + deleted_at (datetime, none_type): Date and time in ISO 8601 format.. [optional] # noqa: E501 + updated_at (datetime, none_type): Date and time in ISO 8601 format.. [optional] # noqa: E501 + service_id (str): [optional] # noqa: E501 + version (str): [optional] # noqa: E501 topic (str): The Kafka topic to send logs to. Required.. [optional] # noqa: E501 brokers (str): A comma-separated list of IP addresses or hostnames of Kafka brokers. Required.. [optional] # noqa: E501 compression_codec (str, none_type): The codec used for compression of your logs.. [optional] # noqa: E501 @@ -239,11 +248,6 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 user (str): SASL user.. [optional] # noqa: E501 password (str): SASL password.. [optional] # noqa: E501 use_tls (LoggingUseTls): [optional] # noqa: E501 - created_at (datetime, none_type): Date and time in ISO 8601 format.. [optional] # noqa: E501 - deleted_at (datetime, none_type): Date and time in ISO 8601 format.. [optional] # noqa: E501 - updated_at (datetime, none_type): Date and time in ISO 8601 format.. [optional] # noqa: E501 - service_id (str): [optional] # noqa: E501 - version (int): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -345,13 +349,18 @@ def __init__(self, *args, **kwargs): # noqa: E501 _visited_composed_classes = (Animal,) name (str): The name for the real-time logging configuration.. [optional] # noqa: E501 placement (str, none_type): Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. . [optional] # noqa: E501 - 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] if omitted the server will use the default value of 2 # noqa: E501 response_condition (str, none_type): The name of an existing condition in the configured endpoint, or leave blank to always execute.. [optional] # noqa: E501 format (str): A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats).. [optional] if omitted the server will use the default value of "%h %l %u %t "%r" %>s %b" # noqa: E501 + format_version (str): The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. . [optional] if omitted the server will use the default value of "2" # noqa: E501 tls_ca_cert (str, none_type): A secure certificate to authenticate a server with. Must be in PEM format.. [optional] if omitted the server will use the default value of "null" # noqa: E501 tls_client_cert (str, none_type): The client certificate used to make authenticated requests. Must be in PEM format.. [optional] if omitted the server will use the default value of "null" # noqa: E501 tls_client_key (str, none_type): The client private key used to make authenticated requests. Must be in PEM format.. [optional] if omitted the server will use the default value of "null" # noqa: E501 tls_hostname (str, none_type): 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] if omitted the server will use the default value of "null" # noqa: E501 + created_at (datetime, none_type): Date and time in ISO 8601 format.. [optional] # noqa: E501 + deleted_at (datetime, none_type): Date and time in ISO 8601 format.. [optional] # noqa: E501 + updated_at (datetime, none_type): Date and time in ISO 8601 format.. [optional] # noqa: E501 + service_id (str): [optional] # noqa: E501 + version (str): [optional] # noqa: E501 topic (str): The Kafka topic to send logs to. Required.. [optional] # noqa: E501 brokers (str): A comma-separated list of IP addresses or hostnames of Kafka brokers. Required.. [optional] # noqa: E501 compression_codec (str, none_type): The codec used for compression of your logs.. [optional] # noqa: E501 @@ -362,11 +371,6 @@ def __init__(self, *args, **kwargs): # noqa: E501 user (str): SASL user.. [optional] # noqa: E501 password (str): SASL password.. [optional] # noqa: E501 use_tls (LoggingUseTls): [optional] # noqa: E501 - created_at (datetime, none_type): Date and time in ISO 8601 format.. [optional] # noqa: E501 - deleted_at (datetime, none_type): Date and time in ISO 8601 format.. [optional] # noqa: E501 - updated_at (datetime, none_type): Date and time in ISO 8601 format.. [optional] # noqa: E501 - service_id (str): [optional] # noqa: E501 - version (int): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -432,8 +436,10 @@ def _composed_schemas(): 'anyOf': [ ], 'allOf': [ - LoggingKafka, - ServiceIdAndVersion, + LoggingCommonResponse, + LoggingKafkaAdditional, + LoggingTlsCommon, + ServiceIdAndVersionString, Timestamps, ], 'oneOf': [ diff --git a/fastly/model/logging_kafka.py b/fastly/model/logging_kafka_response_post.py similarity index 90% rename from fastly/model/logging_kafka.py rename to fastly/model/logging_kafka_response_post.py index a2c9785..7b6a144 100644 --- a/fastly/model/logging_kafka.py +++ b/fastly/model/logging_kafka_response_post.py @@ -31,16 +31,22 @@ def lazy_import(): from fastly.model.logging_common import LoggingCommon - from fastly.model.logging_kafka_all_of import LoggingKafkaAllOf + from fastly.model.logging_format_version_integer import LoggingFormatVersionInteger + from fastly.model.logging_kafka_additional import LoggingKafkaAdditional from fastly.model.logging_tls_common import LoggingTlsCommon from fastly.model.logging_use_tls import LoggingUseTls + from fastly.model.service_id_and_version_string import ServiceIdAndVersionString + from fastly.model.timestamps import Timestamps globals()['LoggingCommon'] = LoggingCommon - globals()['LoggingKafkaAllOf'] = LoggingKafkaAllOf + globals()['LoggingFormatVersionInteger'] = LoggingFormatVersionInteger + globals()['LoggingKafkaAdditional'] = LoggingKafkaAdditional globals()['LoggingTlsCommon'] = LoggingTlsCommon globals()['LoggingUseTls'] = LoggingUseTls + globals()['ServiceIdAndVersionString'] = ServiceIdAndVersionString + globals()['Timestamps'] = Timestamps -class LoggingKafka(ModelComposed): +class LoggingKafkaResponsePost(ModelComposed): """NOTE: This class is auto generated. Do not edit the class manually. @@ -120,13 +126,18 @@ def openapi_types(): return { 'name': (str,), # noqa: E501 'placement': (str, none_type,), # noqa: E501 - 'format_version': (int,), # noqa: E501 'response_condition': (str, none_type,), # noqa: E501 'format': (str,), # noqa: E501 + 'format_version': (int,), # noqa: E501 'tls_ca_cert': (str, none_type,), # noqa: E501 'tls_client_cert': (str, none_type,), # noqa: E501 'tls_client_key': (str, none_type,), # noqa: E501 'tls_hostname': (str, none_type,), # noqa: E501 + 'created_at': (datetime, none_type,), # noqa: E501 + 'deleted_at': (datetime, none_type,), # noqa: E501 + 'updated_at': (datetime, none_type,), # noqa: E501 + 'service_id': (str,), # noqa: E501 + 'version': (str,), # noqa: E501 'topic': (str,), # noqa: E501 'brokers': (str,), # noqa: E501 'compression_codec': (str, none_type,), # noqa: E501 @@ -147,13 +158,18 @@ def discriminator(): attribute_map = { 'name': 'name', # noqa: E501 'placement': 'placement', # noqa: E501 - 'format_version': 'format_version', # noqa: E501 'response_condition': 'response_condition', # noqa: E501 'format': 'format', # noqa: E501 + 'format_version': 'format_version', # noqa: E501 'tls_ca_cert': 'tls_ca_cert', # noqa: E501 'tls_client_cert': 'tls_client_cert', # noqa: E501 'tls_client_key': 'tls_client_key', # noqa: E501 'tls_hostname': 'tls_hostname', # noqa: E501 + 'created_at': 'created_at', # noqa: E501 + 'deleted_at': 'deleted_at', # noqa: E501 + 'updated_at': 'updated_at', # noqa: E501 + 'service_id': 'service_id', # noqa: E501 + 'version': 'version', # noqa: E501 'topic': 'topic', # noqa: E501 'brokers': 'brokers', # noqa: E501 'compression_codec': 'compression_codec', # noqa: E501 @@ -167,12 +183,17 @@ def discriminator(): } read_only_vars = { + 'created_at', # noqa: E501 + 'deleted_at', # noqa: E501 + 'updated_at', # noqa: E501 + 'service_id', # noqa: E501 + 'version', # noqa: E501 } @classmethod @convert_js_args_to_python_args def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 - """LoggingKafka - a model defined in OpenAPI + """LoggingKafkaResponsePost - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -207,13 +228,18 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 _visited_composed_classes = (Animal,) name (str): The name for the real-time logging configuration.. [optional] # noqa: E501 placement (str, none_type): Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. . [optional] # noqa: E501 - 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] if omitted the server will use the default value of 2 # noqa: E501 response_condition (str, none_type): The name of an existing condition in the configured endpoint, or leave blank to always execute.. [optional] # noqa: E501 format (str): A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats).. [optional] if omitted the server will use the default value of "%h %l %u %t "%r" %>s %b" # noqa: E501 + 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] if omitted the server will use the default value of 2 # noqa: E501 tls_ca_cert (str, none_type): A secure certificate to authenticate a server with. Must be in PEM format.. [optional] if omitted the server will use the default value of "null" # noqa: E501 tls_client_cert (str, none_type): The client certificate used to make authenticated requests. Must be in PEM format.. [optional] if omitted the server will use the default value of "null" # noqa: E501 tls_client_key (str, none_type): The client private key used to make authenticated requests. Must be in PEM format.. [optional] if omitted the server will use the default value of "null" # noqa: E501 tls_hostname (str, none_type): 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] if omitted the server will use the default value of "null" # noqa: E501 + created_at (datetime, none_type): Date and time in ISO 8601 format.. [optional] # noqa: E501 + deleted_at (datetime, none_type): Date and time in ISO 8601 format.. [optional] # noqa: E501 + updated_at (datetime, none_type): Date and time in ISO 8601 format.. [optional] # noqa: E501 + service_id (str): [optional] # noqa: E501 + version (str): [optional] # noqa: E501 topic (str): The Kafka topic to send logs to. Required.. [optional] # noqa: E501 brokers (str): A comma-separated list of IP addresses or hostnames of Kafka brokers. Required.. [optional] # noqa: E501 compression_codec (str, none_type): The codec used for compression of your logs.. [optional] # noqa: E501 @@ -290,7 +316,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 @convert_js_args_to_python_args def __init__(self, *args, **kwargs): # noqa: E501 - """LoggingKafka - a model defined in OpenAPI + """LoggingKafkaResponsePost - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -325,13 +351,18 @@ def __init__(self, *args, **kwargs): # noqa: E501 _visited_composed_classes = (Animal,) name (str): The name for the real-time logging configuration.. [optional] # noqa: E501 placement (str, none_type): Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. . [optional] # noqa: E501 - 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] if omitted the server will use the default value of 2 # noqa: E501 response_condition (str, none_type): The name of an existing condition in the configured endpoint, or leave blank to always execute.. [optional] # noqa: E501 format (str): A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats).. [optional] if omitted the server will use the default value of "%h %l %u %t "%r" %>s %b" # noqa: E501 + 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] if omitted the server will use the default value of 2 # noqa: E501 tls_ca_cert (str, none_type): A secure certificate to authenticate a server with. Must be in PEM format.. [optional] if omitted the server will use the default value of "null" # noqa: E501 tls_client_cert (str, none_type): The client certificate used to make authenticated requests. Must be in PEM format.. [optional] if omitted the server will use the default value of "null" # noqa: E501 tls_client_key (str, none_type): The client private key used to make authenticated requests. Must be in PEM format.. [optional] if omitted the server will use the default value of "null" # noqa: E501 tls_hostname (str, none_type): 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] if omitted the server will use the default value of "null" # noqa: E501 + created_at (datetime, none_type): Date and time in ISO 8601 format.. [optional] # noqa: E501 + deleted_at (datetime, none_type): Date and time in ISO 8601 format.. [optional] # noqa: E501 + updated_at (datetime, none_type): Date and time in ISO 8601 format.. [optional] # noqa: E501 + service_id (str): [optional] # noqa: E501 + version (str): [optional] # noqa: E501 topic (str): The Kafka topic to send logs to. Required.. [optional] # noqa: E501 brokers (str): A comma-separated list of IP addresses or hostnames of Kafka brokers. Required.. [optional] # noqa: E501 compression_codec (str, none_type): The codec used for compression of your logs.. [optional] # noqa: E501 @@ -408,8 +439,11 @@ def _composed_schemas(): ], 'allOf': [ LoggingCommon, - LoggingKafkaAllOf, + LoggingFormatVersionInteger, + LoggingKafkaAdditional, LoggingTlsCommon, + ServiceIdAndVersionString, + Timestamps, ], 'oneOf': [ ], diff --git a/fastly/model/logging_kinesis.py b/fastly/model/logging_kinesis_additional.py similarity index 96% rename from fastly/model/logging_kinesis.py rename to fastly/model/logging_kinesis_additional.py index 69ba872..f3ea778 100644 --- a/fastly/model/logging_kinesis.py +++ b/fastly/model/logging_kinesis_additional.py @@ -31,14 +31,12 @@ def lazy_import(): from fastly.model.aws_region import AwsRegion - from fastly.model.logging_format_version import LoggingFormatVersion from fastly.model.logging_placement import LoggingPlacement globals()['AwsRegion'] = AwsRegion - globals()['LoggingFormatVersion'] = LoggingFormatVersion globals()['LoggingPlacement'] = LoggingPlacement -class LoggingKinesis(ModelNormal): +class LoggingKinesisAdditional(ModelNormal): """NOTE: This class is auto generated. Do not edit the class manually. @@ -91,7 +89,6 @@ def openapi_types(): return { 'name': (str,), # noqa: E501 'placement': (LoggingPlacement,), # noqa: E501 - 'format_version': (LoggingFormatVersion,), # noqa: E501 'format': (str,), # noqa: E501 'topic': (str,), # noqa: E501 'region': (AwsRegion,), # noqa: E501 @@ -108,7 +105,6 @@ def discriminator(): attribute_map = { 'name': 'name', # noqa: E501 'placement': 'placement', # noqa: E501 - 'format_version': 'format_version', # noqa: E501 'format': 'format', # noqa: E501 'topic': 'topic', # noqa: E501 'region': 'region', # noqa: E501 @@ -125,7 +121,7 @@ def discriminator(): @classmethod @convert_js_args_to_python_args def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 - """LoggingKinesis - a model defined in OpenAPI + """LoggingKinesisAdditional - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -160,7 +156,6 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 _visited_composed_classes = (Animal,) name (str): The name for the real-time logging configuration.. [optional] # noqa: E501 placement (LoggingPlacement): [optional] # noqa: E501 - format_version (LoggingFormatVersion): [optional] # noqa: E501 format (str): A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). Must produce valid JSON that Kinesis can ingest.. [optional] if omitted the server will use the default value of "{"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"}" # noqa: E501 topic (str): The Amazon Kinesis stream to send logs to. Required.. [optional] # noqa: E501 region (AwsRegion): [optional] # noqa: E501 @@ -215,7 +210,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 @convert_js_args_to_python_args def __init__(self, *args, **kwargs): # noqa: E501 - """LoggingKinesis - a model defined in OpenAPI + """LoggingKinesisAdditional - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -250,7 +245,6 @@ def __init__(self, *args, **kwargs): # noqa: E501 _visited_composed_classes = (Animal,) name (str): The name for the real-time logging configuration.. [optional] # noqa: E501 placement (LoggingPlacement): [optional] # noqa: E501 - format_version (LoggingFormatVersion): [optional] # noqa: E501 format (str): A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). Must produce valid JSON that Kinesis can ingest.. [optional] if omitted the server will use the default value of "{"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"}" # noqa: E501 topic (str): The Amazon Kinesis stream to send logs to. Required.. [optional] # noqa: E501 region (AwsRegion): [optional] # noqa: E501 diff --git a/fastly/model/logging_kinesis_response.py b/fastly/model/logging_kinesis_response.py index c24822b..d2f91fa 100644 --- a/fastly/model/logging_kinesis_response.py +++ b/fastly/model/logging_kinesis_response.py @@ -31,16 +31,16 @@ def lazy_import(): from fastly.model.aws_region import AwsRegion - from fastly.model.logging_format_version import LoggingFormatVersion - from fastly.model.logging_kinesis import LoggingKinesis + from fastly.model.logging_format_version_string import LoggingFormatVersionString + from fastly.model.logging_kinesis_additional import LoggingKinesisAdditional from fastly.model.logging_placement import LoggingPlacement - from fastly.model.service_id_and_version import ServiceIdAndVersion + from fastly.model.service_id_and_version_string import ServiceIdAndVersionString from fastly.model.timestamps import Timestamps globals()['AwsRegion'] = AwsRegion - globals()['LoggingFormatVersion'] = LoggingFormatVersion - globals()['LoggingKinesis'] = LoggingKinesis + globals()['LoggingFormatVersionString'] = LoggingFormatVersionString + globals()['LoggingKinesisAdditional'] = LoggingKinesisAdditional globals()['LoggingPlacement'] = LoggingPlacement - globals()['ServiceIdAndVersion'] = ServiceIdAndVersion + globals()['ServiceIdAndVersionString'] = ServiceIdAndVersionString globals()['Timestamps'] = Timestamps @@ -67,6 +67,10 @@ class LoggingKinesisResponse(ModelComposed): """ allowed_values = { + ('format_version',): { + 'v1': "1", + 'v2': "2", + }, } validations = { @@ -97,18 +101,18 @@ def openapi_types(): return { 'name': (str,), # noqa: E501 'placement': (LoggingPlacement,), # noqa: E501 - 'format_version': (LoggingFormatVersion,), # noqa: E501 'format': (str,), # noqa: E501 'topic': (str,), # noqa: E501 'region': (AwsRegion,), # noqa: E501 'secret_key': (str, none_type,), # noqa: E501 'access_key': (str, none_type,), # noqa: E501 'iam_role': (str, none_type,), # noqa: E501 + 'format_version': (str,), # noqa: E501 'created_at': (datetime, none_type,), # noqa: E501 'deleted_at': (datetime, none_type,), # noqa: E501 'updated_at': (datetime, none_type,), # noqa: E501 'service_id': (str,), # noqa: E501 - 'version': (int,), # noqa: E501 + 'version': (str,), # noqa: E501 } @cached_property @@ -119,13 +123,13 @@ def discriminator(): attribute_map = { 'name': 'name', # noqa: E501 'placement': 'placement', # noqa: E501 - 'format_version': 'format_version', # noqa: E501 'format': 'format', # noqa: E501 'topic': 'topic', # noqa: E501 'region': 'region', # noqa: E501 'secret_key': 'secret_key', # noqa: E501 'access_key': 'access_key', # noqa: E501 'iam_role': 'iam_role', # noqa: E501 + 'format_version': 'format_version', # noqa: E501 'created_at': 'created_at', # noqa: E501 'deleted_at': 'deleted_at', # noqa: E501 'updated_at': 'updated_at', # noqa: E501 @@ -179,18 +183,18 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 _visited_composed_classes = (Animal,) name (str): The name for the real-time logging configuration.. [optional] # noqa: E501 placement (LoggingPlacement): [optional] # noqa: E501 - format_version (LoggingFormatVersion): [optional] # noqa: E501 format (str): A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). Must produce valid JSON that Kinesis can ingest.. [optional] if omitted the server will use the default value of "{"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"}" # noqa: E501 topic (str): The Amazon Kinesis stream to send logs to. Required.. [optional] # noqa: E501 region (AwsRegion): [optional] # noqa: E501 secret_key (str, none_type): The secret key associated with the target Amazon Kinesis stream. Not required if `iam_role` is specified.. [optional] # noqa: E501 access_key (str, none_type): The access key associated with the target Amazon Kinesis stream. Not required if `iam_role` is specified.. [optional] # noqa: E501 iam_role (str, none_type): 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] # noqa: E501 + format_version (str): The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. . [optional] if omitted the server will use the default value of "2" # noqa: E501 created_at (datetime, none_type): Date and time in ISO 8601 format.. [optional] # noqa: E501 deleted_at (datetime, none_type): Date and time in ISO 8601 format.. [optional] # noqa: E501 updated_at (datetime, none_type): Date and time in ISO 8601 format.. [optional] # noqa: E501 service_id (str): [optional] # noqa: E501 - version (int): [optional] # noqa: E501 + version (str): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -292,18 +296,18 @@ def __init__(self, *args, **kwargs): # noqa: E501 _visited_composed_classes = (Animal,) name (str): The name for the real-time logging configuration.. [optional] # noqa: E501 placement (LoggingPlacement): [optional] # noqa: E501 - format_version (LoggingFormatVersion): [optional] # noqa: E501 format (str): A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). Must produce valid JSON that Kinesis can ingest.. [optional] if omitted the server will use the default value of "{"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"}" # noqa: E501 topic (str): The Amazon Kinesis stream to send logs to. Required.. [optional] # noqa: E501 region (AwsRegion): [optional] # noqa: E501 secret_key (str, none_type): The secret key associated with the target Amazon Kinesis stream. Not required if `iam_role` is specified.. [optional] # noqa: E501 access_key (str, none_type): The access key associated with the target Amazon Kinesis stream. Not required if `iam_role` is specified.. [optional] # noqa: E501 iam_role (str, none_type): 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] # noqa: E501 + format_version (str): The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. . [optional] if omitted the server will use the default value of "2" # noqa: E501 created_at (datetime, none_type): Date and time in ISO 8601 format.. [optional] # noqa: E501 deleted_at (datetime, none_type): Date and time in ISO 8601 format.. [optional] # noqa: E501 updated_at (datetime, none_type): Date and time in ISO 8601 format.. [optional] # noqa: E501 service_id (str): [optional] # noqa: E501 - version (int): [optional] # noqa: E501 + version (str): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -369,8 +373,9 @@ def _composed_schemas(): 'anyOf': [ ], 'allOf': [ - LoggingKinesis, - ServiceIdAndVersion, + LoggingFormatVersionString, + LoggingKinesisAdditional, + ServiceIdAndVersionString, Timestamps, ], 'oneOf': [ diff --git a/fastly/model/logging_logentries.py b/fastly/model/logging_logentries.py deleted file mode 100644 index 3add0db..0000000 --- a/fastly/model/logging_logentries.py +++ /dev/null @@ -1,365 +0,0 @@ -""" - Fastly API - - Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://developer.fastly.com/reference/api/) # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Contact: oss@fastly.com -""" - - -import re # noqa: F401 -import sys # noqa: F401 - -from fastly.model_utils import ( # noqa: F401 - ApiTypeError, - ModelComposed, - ModelNormal, - ModelSimple, - cached_property, - change_keys_js_to_python, - convert_js_args_to_python_args, - date, - datetime, - file_type, - none_type, - validate_get_composed_info, - OpenApiModel -) -from fastly.exceptions import ApiAttributeError - - -def lazy_import(): - from fastly.model.logging_common import LoggingCommon - from fastly.model.logging_logentries_all_of import LoggingLogentriesAllOf - from fastly.model.logging_use_tls import LoggingUseTls - globals()['LoggingCommon'] = LoggingCommon - globals()['LoggingLogentriesAllOf'] = LoggingLogentriesAllOf - globals()['LoggingUseTls'] = LoggingUseTls - - -class LoggingLogentries(ModelComposed): - """NOTE: This class is auto generated. - Do not edit the class manually. - - Attributes: - allowed_values (dict): The key is the tuple path to the attribute - and the for var_name this is (var_name,). The value is a dict - with a capitalized key describing the allowed value and an allowed - value. These dicts store the allowed enum values. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - discriminator_value_class_map (dict): A dict to go from the discriminator - variable value to the discriminator class name. - validations (dict): The key is the tuple path to the attribute - and the for var_name this is (var_name,). The value is a dict - that stores validations for max_length, min_length, max_items, - min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, - inclusive_minimum, and regex. - additional_properties_type (tuple): A tuple of classes accepted - as additional properties values. - """ - - allowed_values = { - ('placement',): { - 'None': None, - 'NONE': "none", - 'WAF_DEBUG': "waf_debug", - 'NULL': "null", - }, - ('format_version',): { - 'v1': 1, - 'v2': 2, - }, - ('region',): { - 'US': "US", - 'US-2': "US-2", - 'US-3': "US-3", - 'EU': "EU", - 'CA': "CA", - 'AU': "AU", - 'AP': "AP", - }, - } - - validations = { - } - - @cached_property - def additional_properties_type(): - """ - This must be a method because a model may have properties that are - of type self, this must run after the class is loaded - """ - lazy_import() - return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 - - _nullable = False - - @cached_property - def openapi_types(): - """ - This must be a method because a model may have properties that are - of type self, this must run after the class is loaded - - Returns - openapi_types (dict): The key is attribute name - and the value is attribute type. - """ - lazy_import() - return { - 'name': (str,), # noqa: E501 - 'placement': (str, none_type,), # noqa: E501 - 'format_version': (int,), # noqa: E501 - 'response_condition': (str, none_type,), # noqa: E501 - 'format': (str,), # noqa: E501 - 'port': (int,), # noqa: E501 - 'token': (str,), # noqa: E501 - 'use_tls': (LoggingUseTls,), # noqa: E501 - 'region': (str,), # noqa: E501 - } - - @cached_property - def discriminator(): - return None - - - attribute_map = { - 'name': 'name', # noqa: E501 - 'placement': 'placement', # noqa: E501 - 'format_version': 'format_version', # noqa: E501 - 'response_condition': 'response_condition', # noqa: E501 - 'format': 'format', # noqa: E501 - 'port': 'port', # noqa: E501 - 'token': 'token', # noqa: E501 - 'use_tls': 'use_tls', # noqa: E501 - 'region': 'region', # noqa: E501 - } - - read_only_vars = { - } - - @classmethod - @convert_js_args_to_python_args - def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 - """LoggingLogentries - a model defined in OpenAPI - - Keyword Args: - _check_type (bool): if True, values for parameters in openapi_types - will be type checked and a TypeError will be - raised if the wrong type is input. - Defaults to True - _path_to_item (tuple/list): This is a list of keys or values to - drill down to the model in received_data - when deserializing a response - _spec_property_naming (bool): True if the variable names in the input data - are serialized names, as specified in the OpenAPI document. - False if the variable names in the input data - are pythonic names, e.g. snake case (default) - _configuration (Configuration): the instance to use when - deserializing a file_type parameter. - If passed, type conversion is attempted - If omitted no type conversion is done. - _visited_composed_classes (tuple): This stores a tuple of - classes that we have traveled through so that - if we see that class again we will not use its - discriminator again. - When traveling through a discriminator, the - composed schema that is - is traveled through is added to this set. - For example if Animal has a discriminator - petType and we pass in "Dog", and the class Dog - allOf includes Animal, we move through Animal - once using the discriminator, and pick Dog. - Then in Dog, we will make an instance of the - Animal class but this time we won't travel - through its discriminator because we passed in - _visited_composed_classes = (Animal,) - name (str): The name for the real-time logging configuration.. [optional] # noqa: E501 - placement (str, none_type): Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. . [optional] # noqa: E501 - 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] if omitted the server will use the default value of 2 # noqa: E501 - response_condition (str, none_type): The name of an existing condition in the configured endpoint, or leave blank to always execute.. [optional] # noqa: E501 - format (str): A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats).. [optional] if omitted the server will use the default value of "%h %l %u %t "%r" %>s %b" # noqa: E501 - port (int): The port number.. [optional] if omitted the server will use the default value of 20000 # noqa: E501 - token (str): Use token based authentication ([https://logentries.com/doc/input-token/](https://logentries.com/doc/input-token/)).. [optional] # noqa: E501 - use_tls (LoggingUseTls): [optional] # noqa: E501 - region (str): The region to which to stream logs.. [optional] # noqa: E501 - """ - - _check_type = kwargs.pop('_check_type', True) - _spec_property_naming = kwargs.pop('_spec_property_naming', False) - _path_to_item = kwargs.pop('_path_to_item', ()) - _configuration = kwargs.pop('_configuration', None) - _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) - - self = super(OpenApiModel, cls).__new__(cls) - - if args: - raise ApiTypeError( - "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( - args, - self.__class__.__name__, - ), - path_to_item=_path_to_item, - valid_classes=(self.__class__,), - ) - - self._data_store = {} - self._check_type = _check_type - self._spec_property_naming = _spec_property_naming - self._path_to_item = _path_to_item - self._configuration = _configuration - self._visited_composed_classes = _visited_composed_classes + (self.__class__,) - - constant_args = { - '_check_type': _check_type, - '_path_to_item': _path_to_item, - '_spec_property_naming': _spec_property_naming, - '_configuration': _configuration, - '_visited_composed_classes': self._visited_composed_classes, - } - composed_info = validate_get_composed_info( - constant_args, kwargs, self) - self._composed_instances = composed_info[0] - self._var_name_to_model_instances = composed_info[1] - self._additional_properties_model_instances = composed_info[2] - discarded_args = composed_info[3] - - for var_name, var_value in kwargs.items(): - if var_name in discarded_args and \ - self._configuration is not None and \ - self._configuration.discard_unknown_keys and \ - self._additional_properties_model_instances: - # discard variable. - continue - setattr(self, var_name, var_value) - - return self - - required_properties = set([ - '_data_store', - '_check_type', - '_spec_property_naming', - '_path_to_item', - '_configuration', - '_visited_composed_classes', - '_composed_instances', - '_var_name_to_model_instances', - '_additional_properties_model_instances', - ]) - - @convert_js_args_to_python_args - def __init__(self, *args, **kwargs): # noqa: E501 - """LoggingLogentries - a model defined in OpenAPI - - Keyword Args: - _check_type (bool): if True, values for parameters in openapi_types - will be type checked and a TypeError will be - raised if the wrong type is input. - Defaults to True - _path_to_item (tuple/list): This is a list of keys or values to - drill down to the model in received_data - when deserializing a response - _spec_property_naming (bool): True if the variable names in the input data - are serialized names, as specified in the OpenAPI document. - False if the variable names in the input data - are pythonic names, e.g. snake case (default) - _configuration (Configuration): the instance to use when - deserializing a file_type parameter. - If passed, type conversion is attempted - If omitted no type conversion is done. - _visited_composed_classes (tuple): This stores a tuple of - classes that we have traveled through so that - if we see that class again we will not use its - discriminator again. - When traveling through a discriminator, the - composed schema that is - is traveled through is added to this set. - For example if Animal has a discriminator - petType and we pass in "Dog", and the class Dog - allOf includes Animal, we move through Animal - once using the discriminator, and pick Dog. - Then in Dog, we will make an instance of the - Animal class but this time we won't travel - through its discriminator because we passed in - _visited_composed_classes = (Animal,) - name (str): The name for the real-time logging configuration.. [optional] # noqa: E501 - placement (str, none_type): Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. . [optional] # noqa: E501 - 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] if omitted the server will use the default value of 2 # noqa: E501 - response_condition (str, none_type): The name of an existing condition in the configured endpoint, or leave blank to always execute.. [optional] # noqa: E501 - format (str): A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats).. [optional] if omitted the server will use the default value of "%h %l %u %t "%r" %>s %b" # noqa: E501 - port (int): The port number.. [optional] if omitted the server will use the default value of 20000 # noqa: E501 - token (str): Use token based authentication ([https://logentries.com/doc/input-token/](https://logentries.com/doc/input-token/)).. [optional] # noqa: E501 - use_tls (LoggingUseTls): [optional] # noqa: E501 - region (str): The region to which to stream logs.. [optional] # noqa: E501 - """ - - _check_type = kwargs.pop('_check_type', True) - _spec_property_naming = kwargs.pop('_spec_property_naming', False) - _path_to_item = kwargs.pop('_path_to_item', ()) - _configuration = kwargs.pop('_configuration', None) - _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) - - if args: - raise ApiTypeError( - "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( - args, - self.__class__.__name__, - ), - path_to_item=_path_to_item, - valid_classes=(self.__class__,), - ) - - self._data_store = {} - self._check_type = _check_type - self._spec_property_naming = _spec_property_naming - self._path_to_item = _path_to_item - self._configuration = _configuration - self._visited_composed_classes = _visited_composed_classes + (self.__class__,) - - constant_args = { - '_check_type': _check_type, - '_path_to_item': _path_to_item, - '_spec_property_naming': _spec_property_naming, - '_configuration': _configuration, - '_visited_composed_classes': self._visited_composed_classes, - } - composed_info = validate_get_composed_info( - constant_args, kwargs, self) - self._composed_instances = composed_info[0] - self._var_name_to_model_instances = composed_info[1] - self._additional_properties_model_instances = composed_info[2] - discarded_args = composed_info[3] - - for var_name, var_value in kwargs.items(): - if var_name in discarded_args and \ - self._configuration is not None and \ - self._configuration.discard_unknown_keys and \ - self._additional_properties_model_instances: - # discard variable. - continue - setattr(self, var_name, var_value) - if var_name in self.read_only_vars: - raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " - f"class with read only attributes.") - - @cached_property - def _composed_schemas(): - # we need this here to make our import statements work - # we must store _composed_schemas in here so the code is only run - # when we invoke this method. If we kept this at the class - # level we would get an error because the class level - # code would be run when this module is imported, and these composed - # classes don't exist yet because their module has not finished - # loading - lazy_import() - return { - 'anyOf': [ - ], - 'allOf': [ - LoggingCommon, - LoggingLogentriesAllOf, - ], - 'oneOf': [ - ], - } diff --git a/fastly/model/logging_logentries_all_of.py b/fastly/model/logging_logentries_additional.py similarity index 98% rename from fastly/model/logging_logentries_all_of.py rename to fastly/model/logging_logentries_additional.py index f04341c..6459a44 100644 --- a/fastly/model/logging_logentries_all_of.py +++ b/fastly/model/logging_logentries_additional.py @@ -34,7 +34,7 @@ def lazy_import(): globals()['LoggingUseTls'] = LoggingUseTls -class LoggingLogentriesAllOf(ModelNormal): +class LoggingLogentriesAdditional(ModelNormal): """NOTE: This class is auto generated. Do not edit the class manually. @@ -120,7 +120,7 @@ def discriminator(): @classmethod @convert_js_args_to_python_args def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 - """LoggingLogentriesAllOf - a model defined in OpenAPI + """LoggingLogentriesAdditional - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -205,7 +205,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 @convert_js_args_to_python_args def __init__(self, *args, **kwargs): # noqa: E501 - """LoggingLogentriesAllOf - a model defined in OpenAPI + """LoggingLogentriesAdditional - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types diff --git a/fastly/model/logging_logentries_response.py b/fastly/model/logging_logentries_response.py index 7d1122c..2e46e4d 100644 --- a/fastly/model/logging_logentries_response.py +++ b/fastly/model/logging_logentries_response.py @@ -30,13 +30,15 @@ def lazy_import(): - from fastly.model.logging_logentries import LoggingLogentries + from fastly.model.logging_common_response import LoggingCommonResponse + from fastly.model.logging_logentries_additional import LoggingLogentriesAdditional from fastly.model.logging_use_tls import LoggingUseTls - from fastly.model.service_id_and_version import ServiceIdAndVersion + from fastly.model.service_id_and_version_string import ServiceIdAndVersionString from fastly.model.timestamps import Timestamps - globals()['LoggingLogentries'] = LoggingLogentries + globals()['LoggingCommonResponse'] = LoggingCommonResponse + globals()['LoggingLogentriesAdditional'] = LoggingLogentriesAdditional globals()['LoggingUseTls'] = LoggingUseTls - globals()['ServiceIdAndVersion'] = ServiceIdAndVersion + globals()['ServiceIdAndVersionString'] = ServiceIdAndVersionString globals()['Timestamps'] = Timestamps @@ -70,8 +72,8 @@ class LoggingLogentriesResponse(ModelComposed): 'NULL': "null", }, ('format_version',): { - 'v1': 1, - 'v2': 2, + 'v1': "1", + 'v2': "2", }, ('region',): { 'US': "US", @@ -112,9 +114,9 @@ def openapi_types(): return { 'name': (str,), # noqa: E501 'placement': (str, none_type,), # noqa: E501 - 'format_version': (int,), # noqa: E501 'response_condition': (str, none_type,), # noqa: E501 'format': (str,), # noqa: E501 + 'format_version': (str,), # noqa: E501 'port': (int,), # noqa: E501 'token': (str,), # noqa: E501 'use_tls': (LoggingUseTls,), # noqa: E501 @@ -123,7 +125,7 @@ def openapi_types(): 'deleted_at': (datetime, none_type,), # noqa: E501 'updated_at': (datetime, none_type,), # noqa: E501 'service_id': (str,), # noqa: E501 - 'version': (int,), # noqa: E501 + 'version': (str,), # noqa: E501 } @cached_property @@ -134,9 +136,9 @@ def discriminator(): attribute_map = { 'name': 'name', # noqa: E501 'placement': 'placement', # noqa: E501 - 'format_version': 'format_version', # noqa: E501 'response_condition': 'response_condition', # noqa: E501 'format': 'format', # noqa: E501 + 'format_version': 'format_version', # noqa: E501 'port': 'port', # noqa: E501 'token': 'token', # noqa: E501 'use_tls': 'use_tls', # noqa: E501 @@ -194,9 +196,9 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 _visited_composed_classes = (Animal,) name (str): The name for the real-time logging configuration.. [optional] # noqa: E501 placement (str, none_type): Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. . [optional] # noqa: E501 - 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] if omitted the server will use the default value of 2 # noqa: E501 response_condition (str, none_type): The name of an existing condition in the configured endpoint, or leave blank to always execute.. [optional] # noqa: E501 format (str): A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats).. [optional] if omitted the server will use the default value of "%h %l %u %t "%r" %>s %b" # noqa: E501 + format_version (str): The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. . [optional] if omitted the server will use the default value of "2" # noqa: E501 port (int): The port number.. [optional] if omitted the server will use the default value of 20000 # noqa: E501 token (str): Use token based authentication ([https://logentries.com/doc/input-token/](https://logentries.com/doc/input-token/)).. [optional] # noqa: E501 use_tls (LoggingUseTls): [optional] # noqa: E501 @@ -205,7 +207,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 deleted_at (datetime, none_type): Date and time in ISO 8601 format.. [optional] # noqa: E501 updated_at (datetime, none_type): Date and time in ISO 8601 format.. [optional] # noqa: E501 service_id (str): [optional] # noqa: E501 - version (int): [optional] # noqa: E501 + version (str): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -307,9 +309,9 @@ def __init__(self, *args, **kwargs): # noqa: E501 _visited_composed_classes = (Animal,) name (str): The name for the real-time logging configuration.. [optional] # noqa: E501 placement (str, none_type): Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. . [optional] # noqa: E501 - 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] if omitted the server will use the default value of 2 # noqa: E501 response_condition (str, none_type): The name of an existing condition in the configured endpoint, or leave blank to always execute.. [optional] # noqa: E501 format (str): A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats).. [optional] if omitted the server will use the default value of "%h %l %u %t "%r" %>s %b" # noqa: E501 + format_version (str): The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. . [optional] if omitted the server will use the default value of "2" # noqa: E501 port (int): The port number.. [optional] if omitted the server will use the default value of 20000 # noqa: E501 token (str): Use token based authentication ([https://logentries.com/doc/input-token/](https://logentries.com/doc/input-token/)).. [optional] # noqa: E501 use_tls (LoggingUseTls): [optional] # noqa: E501 @@ -318,7 +320,7 @@ def __init__(self, *args, **kwargs): # noqa: E501 deleted_at (datetime, none_type): Date and time in ISO 8601 format.. [optional] # noqa: E501 updated_at (datetime, none_type): Date and time in ISO 8601 format.. [optional] # noqa: E501 service_id (str): [optional] # noqa: E501 - version (int): [optional] # noqa: E501 + version (str): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -384,8 +386,9 @@ def _composed_schemas(): 'anyOf': [ ], 'allOf': [ - LoggingLogentries, - ServiceIdAndVersion, + LoggingCommonResponse, + LoggingLogentriesAdditional, + ServiceIdAndVersionString, Timestamps, ], 'oneOf': [ diff --git a/fastly/model/logging_loggly_all_of.py b/fastly/model/logging_loggly_additional.py similarity index 98% rename from fastly/model/logging_loggly_all_of.py rename to fastly/model/logging_loggly_additional.py index de4fefa..acc4c17 100644 --- a/fastly/model/logging_loggly_all_of.py +++ b/fastly/model/logging_loggly_additional.py @@ -30,7 +30,7 @@ -class LoggingLogglyAllOf(ModelNormal): +class LoggingLogglyAdditional(ModelNormal): """NOTE: This class is auto generated. Do not edit the class manually. @@ -99,7 +99,7 @@ def discriminator(): @classmethod @convert_js_args_to_python_args def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 - """LoggingLogglyAllOf - a model defined in OpenAPI + """LoggingLogglyAdditional - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -181,7 +181,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 @convert_js_args_to_python_args def __init__(self, *args, **kwargs): # noqa: E501 - """LoggingLogglyAllOf - a model defined in OpenAPI + """LoggingLogglyAdditional - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types diff --git a/fastly/model/logging_loggly_response.py b/fastly/model/logging_loggly_response.py index 2e637b9..685a59e 100644 --- a/fastly/model/logging_loggly_response.py +++ b/fastly/model/logging_loggly_response.py @@ -30,11 +30,13 @@ def lazy_import(): - from fastly.model.logging_loggly import LoggingLoggly - from fastly.model.service_id_and_version import ServiceIdAndVersion + from fastly.model.logging_common_response import LoggingCommonResponse + from fastly.model.logging_loggly_additional import LoggingLogglyAdditional + from fastly.model.service_id_and_version_string import ServiceIdAndVersionString from fastly.model.timestamps import Timestamps - globals()['LoggingLoggly'] = LoggingLoggly - globals()['ServiceIdAndVersion'] = ServiceIdAndVersion + globals()['LoggingCommonResponse'] = LoggingCommonResponse + globals()['LoggingLogglyAdditional'] = LoggingLogglyAdditional + globals()['ServiceIdAndVersionString'] = ServiceIdAndVersionString globals()['Timestamps'] = Timestamps @@ -68,8 +70,8 @@ class LoggingLogglyResponse(ModelComposed): 'NULL': "null", }, ('format_version',): { - 'v1': 1, - 'v2': 2, + 'v1': "1", + 'v2': "2", }, } @@ -101,15 +103,15 @@ def openapi_types(): return { 'name': (str,), # noqa: E501 'placement': (str, none_type,), # noqa: E501 - 'format_version': (int,), # noqa: E501 'response_condition': (str, none_type,), # noqa: E501 'format': (str,), # noqa: E501 + 'format_version': (str,), # noqa: E501 'token': (str,), # noqa: E501 'created_at': (datetime, none_type,), # noqa: E501 'deleted_at': (datetime, none_type,), # noqa: E501 'updated_at': (datetime, none_type,), # noqa: E501 'service_id': (str,), # noqa: E501 - 'version': (int,), # noqa: E501 + 'version': (str,), # noqa: E501 } @cached_property @@ -120,9 +122,9 @@ def discriminator(): attribute_map = { 'name': 'name', # noqa: E501 'placement': 'placement', # noqa: E501 - 'format_version': 'format_version', # noqa: E501 'response_condition': 'response_condition', # noqa: E501 'format': 'format', # noqa: E501 + 'format_version': 'format_version', # noqa: E501 'token': 'token', # noqa: E501 'created_at': 'created_at', # noqa: E501 'deleted_at': 'deleted_at', # noqa: E501 @@ -177,15 +179,15 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 _visited_composed_classes = (Animal,) name (str): The name for the real-time logging configuration.. [optional] # noqa: E501 placement (str, none_type): Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. . [optional] # noqa: E501 - 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] if omitted the server will use the default value of 2 # noqa: E501 response_condition (str, none_type): The name of an existing condition in the configured endpoint, or leave blank to always execute.. [optional] # noqa: E501 format (str): A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats).. [optional] if omitted the server will use the default value of "%h %l %u %t "%r" %>s %b" # noqa: E501 + format_version (str): The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. . [optional] if omitted the server will use the default value of "2" # noqa: E501 token (str): 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] # noqa: E501 created_at (datetime, none_type): Date and time in ISO 8601 format.. [optional] # noqa: E501 deleted_at (datetime, none_type): Date and time in ISO 8601 format.. [optional] # noqa: E501 updated_at (datetime, none_type): Date and time in ISO 8601 format.. [optional] # noqa: E501 service_id (str): [optional] # noqa: E501 - version (int): [optional] # noqa: E501 + version (str): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -287,15 +289,15 @@ def __init__(self, *args, **kwargs): # noqa: E501 _visited_composed_classes = (Animal,) name (str): The name for the real-time logging configuration.. [optional] # noqa: E501 placement (str, none_type): Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. . [optional] # noqa: E501 - 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] if omitted the server will use the default value of 2 # noqa: E501 response_condition (str, none_type): The name of an existing condition in the configured endpoint, or leave blank to always execute.. [optional] # noqa: E501 format (str): A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats).. [optional] if omitted the server will use the default value of "%h %l %u %t "%r" %>s %b" # noqa: E501 + format_version (str): The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. . [optional] if omitted the server will use the default value of "2" # noqa: E501 token (str): 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] # noqa: E501 created_at (datetime, none_type): Date and time in ISO 8601 format.. [optional] # noqa: E501 deleted_at (datetime, none_type): Date and time in ISO 8601 format.. [optional] # noqa: E501 updated_at (datetime, none_type): Date and time in ISO 8601 format.. [optional] # noqa: E501 service_id (str): [optional] # noqa: E501 - version (int): [optional] # noqa: E501 + version (str): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -361,8 +363,9 @@ def _composed_schemas(): 'anyOf': [ ], 'allOf': [ - LoggingLoggly, - ServiceIdAndVersion, + LoggingCommonResponse, + LoggingLogglyAdditional, + ServiceIdAndVersionString, Timestamps, ], 'oneOf': [ diff --git a/fastly/model/logging_logshuttle.py b/fastly/model/logging_logshuttle.py deleted file mode 100644 index 3d60e29..0000000 --- a/fastly/model/logging_logshuttle.py +++ /dev/null @@ -1,346 +0,0 @@ -""" - Fastly API - - Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://developer.fastly.com/reference/api/) # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Contact: oss@fastly.com -""" - - -import re # noqa: F401 -import sys # noqa: F401 - -from fastly.model_utils import ( # noqa: F401 - ApiTypeError, - ModelComposed, - ModelNormal, - ModelSimple, - cached_property, - change_keys_js_to_python, - convert_js_args_to_python_args, - date, - datetime, - file_type, - none_type, - validate_get_composed_info, - OpenApiModel -) -from fastly.exceptions import ApiAttributeError - - -def lazy_import(): - from fastly.model.logging_common import LoggingCommon - from fastly.model.logging_logshuttle_all_of import LoggingLogshuttleAllOf - globals()['LoggingCommon'] = LoggingCommon - globals()['LoggingLogshuttleAllOf'] = LoggingLogshuttleAllOf - - -class LoggingLogshuttle(ModelComposed): - """NOTE: This class is auto generated. - Do not edit the class manually. - - Attributes: - allowed_values (dict): The key is the tuple path to the attribute - and the for var_name this is (var_name,). The value is a dict - with a capitalized key describing the allowed value and an allowed - value. These dicts store the allowed enum values. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - discriminator_value_class_map (dict): A dict to go from the discriminator - variable value to the discriminator class name. - validations (dict): The key is the tuple path to the attribute - and the for var_name this is (var_name,). The value is a dict - that stores validations for max_length, min_length, max_items, - min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, - inclusive_minimum, and regex. - additional_properties_type (tuple): A tuple of classes accepted - as additional properties values. - """ - - allowed_values = { - ('placement',): { - 'None': None, - 'NONE': "none", - 'WAF_DEBUG': "waf_debug", - 'NULL': "null", - }, - ('format_version',): { - 'v1': 1, - 'v2': 2, - }, - } - - validations = { - } - - @cached_property - def additional_properties_type(): - """ - This must be a method because a model may have properties that are - of type self, this must run after the class is loaded - """ - lazy_import() - return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 - - _nullable = False - - @cached_property - def openapi_types(): - """ - This must be a method because a model may have properties that are - of type self, this must run after the class is loaded - - Returns - openapi_types (dict): The key is attribute name - and the value is attribute type. - """ - lazy_import() - return { - 'name': (str,), # noqa: E501 - 'placement': (str, none_type,), # noqa: E501 - 'format_version': (int,), # noqa: E501 - 'response_condition': (str, none_type,), # noqa: E501 - 'format': (str,), # noqa: E501 - 'token': (str, none_type,), # noqa: E501 - 'url': (str,), # noqa: E501 - } - - @cached_property - def discriminator(): - return None - - - attribute_map = { - 'name': 'name', # noqa: E501 - 'placement': 'placement', # noqa: E501 - 'format_version': 'format_version', # noqa: E501 - 'response_condition': 'response_condition', # noqa: E501 - 'format': 'format', # noqa: E501 - 'token': 'token', # noqa: E501 - 'url': 'url', # noqa: E501 - } - - read_only_vars = { - } - - @classmethod - @convert_js_args_to_python_args - def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 - """LoggingLogshuttle - a model defined in OpenAPI - - Keyword Args: - _check_type (bool): if True, values for parameters in openapi_types - will be type checked and a TypeError will be - raised if the wrong type is input. - Defaults to True - _path_to_item (tuple/list): This is a list of keys or values to - drill down to the model in received_data - when deserializing a response - _spec_property_naming (bool): True if the variable names in the input data - are serialized names, as specified in the OpenAPI document. - False if the variable names in the input data - are pythonic names, e.g. snake case (default) - _configuration (Configuration): the instance to use when - deserializing a file_type parameter. - If passed, type conversion is attempted - If omitted no type conversion is done. - _visited_composed_classes (tuple): This stores a tuple of - classes that we have traveled through so that - if we see that class again we will not use its - discriminator again. - When traveling through a discriminator, the - composed schema that is - is traveled through is added to this set. - For example if Animal has a discriminator - petType and we pass in "Dog", and the class Dog - allOf includes Animal, we move through Animal - once using the discriminator, and pick Dog. - Then in Dog, we will make an instance of the - Animal class but this time we won't travel - through its discriminator because we passed in - _visited_composed_classes = (Animal,) - name (str): The name for the real-time logging configuration.. [optional] # noqa: E501 - placement (str, none_type): Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. . [optional] # noqa: E501 - 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] if omitted the server will use the default value of 2 # noqa: E501 - response_condition (str, none_type): The name of an existing condition in the configured endpoint, or leave blank to always execute.. [optional] # noqa: E501 - format (str): A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats).. [optional] if omitted the server will use the default value of "%h %l %u %t "%r" %>s %b" # noqa: E501 - token (str, none_type): The data authentication token associated with this endpoint.. [optional] # noqa: E501 - url (str): The URL to stream logs to.. [optional] # noqa: E501 - """ - - _check_type = kwargs.pop('_check_type', True) - _spec_property_naming = kwargs.pop('_spec_property_naming', False) - _path_to_item = kwargs.pop('_path_to_item', ()) - _configuration = kwargs.pop('_configuration', None) - _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) - - self = super(OpenApiModel, cls).__new__(cls) - - if args: - raise ApiTypeError( - "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( - args, - self.__class__.__name__, - ), - path_to_item=_path_to_item, - valid_classes=(self.__class__,), - ) - - self._data_store = {} - self._check_type = _check_type - self._spec_property_naming = _spec_property_naming - self._path_to_item = _path_to_item - self._configuration = _configuration - self._visited_composed_classes = _visited_composed_classes + (self.__class__,) - - constant_args = { - '_check_type': _check_type, - '_path_to_item': _path_to_item, - '_spec_property_naming': _spec_property_naming, - '_configuration': _configuration, - '_visited_composed_classes': self._visited_composed_classes, - } - composed_info = validate_get_composed_info( - constant_args, kwargs, self) - self._composed_instances = composed_info[0] - self._var_name_to_model_instances = composed_info[1] - self._additional_properties_model_instances = composed_info[2] - discarded_args = composed_info[3] - - for var_name, var_value in kwargs.items(): - if var_name in discarded_args and \ - self._configuration is not None and \ - self._configuration.discard_unknown_keys and \ - self._additional_properties_model_instances: - # discard variable. - continue - setattr(self, var_name, var_value) - - return self - - required_properties = set([ - '_data_store', - '_check_type', - '_spec_property_naming', - '_path_to_item', - '_configuration', - '_visited_composed_classes', - '_composed_instances', - '_var_name_to_model_instances', - '_additional_properties_model_instances', - ]) - - @convert_js_args_to_python_args - def __init__(self, *args, **kwargs): # noqa: E501 - """LoggingLogshuttle - a model defined in OpenAPI - - Keyword Args: - _check_type (bool): if True, values for parameters in openapi_types - will be type checked and a TypeError will be - raised if the wrong type is input. - Defaults to True - _path_to_item (tuple/list): This is a list of keys or values to - drill down to the model in received_data - when deserializing a response - _spec_property_naming (bool): True if the variable names in the input data - are serialized names, as specified in the OpenAPI document. - False if the variable names in the input data - are pythonic names, e.g. snake case (default) - _configuration (Configuration): the instance to use when - deserializing a file_type parameter. - If passed, type conversion is attempted - If omitted no type conversion is done. - _visited_composed_classes (tuple): This stores a tuple of - classes that we have traveled through so that - if we see that class again we will not use its - discriminator again. - When traveling through a discriminator, the - composed schema that is - is traveled through is added to this set. - For example if Animal has a discriminator - petType and we pass in "Dog", and the class Dog - allOf includes Animal, we move through Animal - once using the discriminator, and pick Dog. - Then in Dog, we will make an instance of the - Animal class but this time we won't travel - through its discriminator because we passed in - _visited_composed_classes = (Animal,) - name (str): The name for the real-time logging configuration.. [optional] # noqa: E501 - placement (str, none_type): Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. . [optional] # noqa: E501 - 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] if omitted the server will use the default value of 2 # noqa: E501 - response_condition (str, none_type): The name of an existing condition in the configured endpoint, or leave blank to always execute.. [optional] # noqa: E501 - format (str): A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats).. [optional] if omitted the server will use the default value of "%h %l %u %t "%r" %>s %b" # noqa: E501 - token (str, none_type): The data authentication token associated with this endpoint.. [optional] # noqa: E501 - url (str): The URL to stream logs to.. [optional] # noqa: E501 - """ - - _check_type = kwargs.pop('_check_type', True) - _spec_property_naming = kwargs.pop('_spec_property_naming', False) - _path_to_item = kwargs.pop('_path_to_item', ()) - _configuration = kwargs.pop('_configuration', None) - _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) - - if args: - raise ApiTypeError( - "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( - args, - self.__class__.__name__, - ), - path_to_item=_path_to_item, - valid_classes=(self.__class__,), - ) - - self._data_store = {} - self._check_type = _check_type - self._spec_property_naming = _spec_property_naming - self._path_to_item = _path_to_item - self._configuration = _configuration - self._visited_composed_classes = _visited_composed_classes + (self.__class__,) - - constant_args = { - '_check_type': _check_type, - '_path_to_item': _path_to_item, - '_spec_property_naming': _spec_property_naming, - '_configuration': _configuration, - '_visited_composed_classes': self._visited_composed_classes, - } - composed_info = validate_get_composed_info( - constant_args, kwargs, self) - self._composed_instances = composed_info[0] - self._var_name_to_model_instances = composed_info[1] - self._additional_properties_model_instances = composed_info[2] - discarded_args = composed_info[3] - - for var_name, var_value in kwargs.items(): - if var_name in discarded_args and \ - self._configuration is not None and \ - self._configuration.discard_unknown_keys and \ - self._additional_properties_model_instances: - # discard variable. - continue - setattr(self, var_name, var_value) - if var_name in self.read_only_vars: - raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " - f"class with read only attributes.") - - @cached_property - def _composed_schemas(): - # we need this here to make our import statements work - # we must store _composed_schemas in here so the code is only run - # when we invoke this method. If we kept this at the class - # level we would get an error because the class level - # code would be run when this module is imported, and these composed - # classes don't exist yet because their module has not finished - # loading - lazy_import() - return { - 'anyOf': [ - ], - 'allOf': [ - LoggingCommon, - LoggingLogshuttleAllOf, - ], - 'oneOf': [ - ], - } diff --git a/fastly/model/logging_logshuttle_all_of.py b/fastly/model/logging_logshuttle_additional.py similarity index 98% rename from fastly/model/logging_logshuttle_all_of.py rename to fastly/model/logging_logshuttle_additional.py index 531c017..8bab891 100644 --- a/fastly/model/logging_logshuttle_all_of.py +++ b/fastly/model/logging_logshuttle_additional.py @@ -30,7 +30,7 @@ -class LoggingLogshuttleAllOf(ModelNormal): +class LoggingLogshuttleAdditional(ModelNormal): """NOTE: This class is auto generated. Do not edit the class manually. @@ -101,7 +101,7 @@ def discriminator(): @classmethod @convert_js_args_to_python_args def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 - """LoggingLogshuttleAllOf - a model defined in OpenAPI + """LoggingLogshuttleAdditional - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -184,7 +184,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 @convert_js_args_to_python_args def __init__(self, *args, **kwargs): # noqa: E501 - """LoggingLogshuttleAllOf - a model defined in OpenAPI + """LoggingLogshuttleAdditional - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types diff --git a/fastly/model/logging_logshuttle_response.py b/fastly/model/logging_logshuttle_response.py index ab460b8..2aebad6 100644 --- a/fastly/model/logging_logshuttle_response.py +++ b/fastly/model/logging_logshuttle_response.py @@ -30,11 +30,13 @@ def lazy_import(): - from fastly.model.logging_logshuttle import LoggingLogshuttle - from fastly.model.service_id_and_version import ServiceIdAndVersion + from fastly.model.logging_common_response import LoggingCommonResponse + from fastly.model.logging_logshuttle_additional import LoggingLogshuttleAdditional + from fastly.model.service_id_and_version_string import ServiceIdAndVersionString from fastly.model.timestamps import Timestamps - globals()['LoggingLogshuttle'] = LoggingLogshuttle - globals()['ServiceIdAndVersion'] = ServiceIdAndVersion + globals()['LoggingCommonResponse'] = LoggingCommonResponse + globals()['LoggingLogshuttleAdditional'] = LoggingLogshuttleAdditional + globals()['ServiceIdAndVersionString'] = ServiceIdAndVersionString globals()['Timestamps'] = Timestamps @@ -68,8 +70,8 @@ class LoggingLogshuttleResponse(ModelComposed): 'NULL': "null", }, ('format_version',): { - 'v1': 1, - 'v2': 2, + 'v1': "1", + 'v2': "2", }, } @@ -101,16 +103,16 @@ def openapi_types(): return { 'name': (str,), # noqa: E501 'placement': (str, none_type,), # noqa: E501 - 'format_version': (int,), # noqa: E501 'response_condition': (str, none_type,), # noqa: E501 'format': (str,), # noqa: E501 + 'format_version': (str,), # noqa: E501 'token': (str, none_type,), # noqa: E501 'url': (str,), # noqa: E501 'created_at': (datetime, none_type,), # noqa: E501 'deleted_at': (datetime, none_type,), # noqa: E501 'updated_at': (datetime, none_type,), # noqa: E501 'service_id': (str,), # noqa: E501 - 'version': (int,), # noqa: E501 + 'version': (str,), # noqa: E501 } @cached_property @@ -121,9 +123,9 @@ def discriminator(): attribute_map = { 'name': 'name', # noqa: E501 'placement': 'placement', # noqa: E501 - 'format_version': 'format_version', # noqa: E501 'response_condition': 'response_condition', # noqa: E501 'format': 'format', # noqa: E501 + 'format_version': 'format_version', # noqa: E501 'token': 'token', # noqa: E501 'url': 'url', # noqa: E501 'created_at': 'created_at', # noqa: E501 @@ -179,16 +181,16 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 _visited_composed_classes = (Animal,) name (str): The name for the real-time logging configuration.. [optional] # noqa: E501 placement (str, none_type): Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. . [optional] # noqa: E501 - 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] if omitted the server will use the default value of 2 # noqa: E501 response_condition (str, none_type): The name of an existing condition in the configured endpoint, or leave blank to always execute.. [optional] # noqa: E501 format (str): A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats).. [optional] if omitted the server will use the default value of "%h %l %u %t "%r" %>s %b" # noqa: E501 + format_version (str): The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. . [optional] if omitted the server will use the default value of "2" # noqa: E501 token (str, none_type): The data authentication token associated with this endpoint.. [optional] # noqa: E501 url (str): The URL to stream logs to.. [optional] # noqa: E501 created_at (datetime, none_type): Date and time in ISO 8601 format.. [optional] # noqa: E501 deleted_at (datetime, none_type): Date and time in ISO 8601 format.. [optional] # noqa: E501 updated_at (datetime, none_type): Date and time in ISO 8601 format.. [optional] # noqa: E501 service_id (str): [optional] # noqa: E501 - version (int): [optional] # noqa: E501 + version (str): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -290,16 +292,16 @@ def __init__(self, *args, **kwargs): # noqa: E501 _visited_composed_classes = (Animal,) name (str): The name for the real-time logging configuration.. [optional] # noqa: E501 placement (str, none_type): Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. . [optional] # noqa: E501 - 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] if omitted the server will use the default value of 2 # noqa: E501 response_condition (str, none_type): The name of an existing condition in the configured endpoint, or leave blank to always execute.. [optional] # noqa: E501 format (str): A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats).. [optional] if omitted the server will use the default value of "%h %l %u %t "%r" %>s %b" # noqa: E501 + format_version (str): The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. . [optional] if omitted the server will use the default value of "2" # noqa: E501 token (str, none_type): The data authentication token associated with this endpoint.. [optional] # noqa: E501 url (str): The URL to stream logs to.. [optional] # noqa: E501 created_at (datetime, none_type): Date and time in ISO 8601 format.. [optional] # noqa: E501 deleted_at (datetime, none_type): Date and time in ISO 8601 format.. [optional] # noqa: E501 updated_at (datetime, none_type): Date and time in ISO 8601 format.. [optional] # noqa: E501 service_id (str): [optional] # noqa: E501 - version (int): [optional] # noqa: E501 + version (str): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -365,8 +367,9 @@ def _composed_schemas(): 'anyOf': [ ], 'allOf': [ - LoggingLogshuttle, - ServiceIdAndVersion, + LoggingCommonResponse, + LoggingLogshuttleAdditional, + ServiceIdAndVersionString, Timestamps, ], 'oneOf': [ diff --git a/fastly/model/logging_newrelic.py b/fastly/model/logging_newrelic.py deleted file mode 100644 index ea342d6..0000000 --- a/fastly/model/logging_newrelic.py +++ /dev/null @@ -1,350 +0,0 @@ -""" - Fastly API - - Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://developer.fastly.com/reference/api/) # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Contact: oss@fastly.com -""" - - -import re # noqa: F401 -import sys # noqa: F401 - -from fastly.model_utils import ( # noqa: F401 - ApiTypeError, - ModelComposed, - ModelNormal, - ModelSimple, - cached_property, - change_keys_js_to_python, - convert_js_args_to_python_args, - date, - datetime, - file_type, - none_type, - validate_get_composed_info, - OpenApiModel -) -from fastly.exceptions import ApiAttributeError - - -def lazy_import(): - from fastly.model.logging_common import LoggingCommon - from fastly.model.logging_newrelic_all_of import LoggingNewrelicAllOf - globals()['LoggingCommon'] = LoggingCommon - globals()['LoggingNewrelicAllOf'] = LoggingNewrelicAllOf - - -class LoggingNewrelic(ModelComposed): - """NOTE: This class is auto generated. - Do not edit the class manually. - - Attributes: - allowed_values (dict): The key is the tuple path to the attribute - and the for var_name this is (var_name,). The value is a dict - with a capitalized key describing the allowed value and an allowed - value. These dicts store the allowed enum values. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - discriminator_value_class_map (dict): A dict to go from the discriminator - variable value to the discriminator class name. - validations (dict): The key is the tuple path to the attribute - and the for var_name this is (var_name,). The value is a dict - that stores validations for max_length, min_length, max_items, - min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, - inclusive_minimum, and regex. - additional_properties_type (tuple): A tuple of classes accepted - as additional properties values. - """ - - allowed_values = { - ('placement',): { - 'None': None, - 'NONE': "none", - 'WAF_DEBUG': "waf_debug", - 'NULL': "null", - }, - ('format_version',): { - 'v1': 1, - 'v2': 2, - }, - ('region',): { - 'US': "US", - 'EU': "EU", - }, - } - - validations = { - } - - @cached_property - def additional_properties_type(): - """ - This must be a method because a model may have properties that are - of type self, this must run after the class is loaded - """ - lazy_import() - return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 - - _nullable = False - - @cached_property - def openapi_types(): - """ - This must be a method because a model may have properties that are - of type self, this must run after the class is loaded - - Returns - openapi_types (dict): The key is attribute name - and the value is attribute type. - """ - lazy_import() - return { - 'name': (str,), # noqa: E501 - 'placement': (str, none_type,), # noqa: E501 - 'format_version': (int,), # noqa: E501 - 'response_condition': (str, none_type,), # noqa: E501 - 'format': (str,), # noqa: E501 - 'token': (str,), # noqa: E501 - 'region': (str,), # noqa: E501 - } - - @cached_property - def discriminator(): - return None - - - attribute_map = { - 'name': 'name', # noqa: E501 - 'placement': 'placement', # noqa: E501 - 'format_version': 'format_version', # noqa: E501 - 'response_condition': 'response_condition', # noqa: E501 - 'format': 'format', # noqa: E501 - 'token': 'token', # noqa: E501 - 'region': 'region', # noqa: E501 - } - - read_only_vars = { - } - - @classmethod - @convert_js_args_to_python_args - def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 - """LoggingNewrelic - a model defined in OpenAPI - - Keyword Args: - _check_type (bool): if True, values for parameters in openapi_types - will be type checked and a TypeError will be - raised if the wrong type is input. - Defaults to True - _path_to_item (tuple/list): This is a list of keys or values to - drill down to the model in received_data - when deserializing a response - _spec_property_naming (bool): True if the variable names in the input data - are serialized names, as specified in the OpenAPI document. - False if the variable names in the input data - are pythonic names, e.g. snake case (default) - _configuration (Configuration): the instance to use when - deserializing a file_type parameter. - If passed, type conversion is attempted - If omitted no type conversion is done. - _visited_composed_classes (tuple): This stores a tuple of - classes that we have traveled through so that - if we see that class again we will not use its - discriminator again. - When traveling through a discriminator, the - composed schema that is - is traveled through is added to this set. - For example if Animal has a discriminator - petType and we pass in "Dog", and the class Dog - allOf includes Animal, we move through Animal - once using the discriminator, and pick Dog. - Then in Dog, we will make an instance of the - Animal class but this time we won't travel - through its discriminator because we passed in - _visited_composed_classes = (Animal,) - name (str): The name for the real-time logging configuration.. [optional] # noqa: E501 - placement (str, none_type): Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. . [optional] # noqa: E501 - 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] if omitted the server will use the default value of 2 # noqa: E501 - response_condition (str, none_type): The name of an existing condition in the configured endpoint, or leave blank to always execute.. [optional] # noqa: E501 - format (str): 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] if omitted the server will use the default value of "{"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"}" # noqa: E501 - token (str): The Insert API key from the Account page of your New Relic account. Required.. [optional] # noqa: E501 - region (str): The region to which to stream logs.. [optional] if omitted the server will use the default value of "US" # noqa: E501 - """ - - _check_type = kwargs.pop('_check_type', True) - _spec_property_naming = kwargs.pop('_spec_property_naming', False) - _path_to_item = kwargs.pop('_path_to_item', ()) - _configuration = kwargs.pop('_configuration', None) - _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) - - self = super(OpenApiModel, cls).__new__(cls) - - if args: - raise ApiTypeError( - "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( - args, - self.__class__.__name__, - ), - path_to_item=_path_to_item, - valid_classes=(self.__class__,), - ) - - self._data_store = {} - self._check_type = _check_type - self._spec_property_naming = _spec_property_naming - self._path_to_item = _path_to_item - self._configuration = _configuration - self._visited_composed_classes = _visited_composed_classes + (self.__class__,) - - constant_args = { - '_check_type': _check_type, - '_path_to_item': _path_to_item, - '_spec_property_naming': _spec_property_naming, - '_configuration': _configuration, - '_visited_composed_classes': self._visited_composed_classes, - } - composed_info = validate_get_composed_info( - constant_args, kwargs, self) - self._composed_instances = composed_info[0] - self._var_name_to_model_instances = composed_info[1] - self._additional_properties_model_instances = composed_info[2] - discarded_args = composed_info[3] - - for var_name, var_value in kwargs.items(): - if var_name in discarded_args and \ - self._configuration is not None and \ - self._configuration.discard_unknown_keys and \ - self._additional_properties_model_instances: - # discard variable. - continue - setattr(self, var_name, var_value) - - return self - - required_properties = set([ - '_data_store', - '_check_type', - '_spec_property_naming', - '_path_to_item', - '_configuration', - '_visited_composed_classes', - '_composed_instances', - '_var_name_to_model_instances', - '_additional_properties_model_instances', - ]) - - @convert_js_args_to_python_args - def __init__(self, *args, **kwargs): # noqa: E501 - """LoggingNewrelic - a model defined in OpenAPI - - Keyword Args: - _check_type (bool): if True, values for parameters in openapi_types - will be type checked and a TypeError will be - raised if the wrong type is input. - Defaults to True - _path_to_item (tuple/list): This is a list of keys or values to - drill down to the model in received_data - when deserializing a response - _spec_property_naming (bool): True if the variable names in the input data - are serialized names, as specified in the OpenAPI document. - False if the variable names in the input data - are pythonic names, e.g. snake case (default) - _configuration (Configuration): the instance to use when - deserializing a file_type parameter. - If passed, type conversion is attempted - If omitted no type conversion is done. - _visited_composed_classes (tuple): This stores a tuple of - classes that we have traveled through so that - if we see that class again we will not use its - discriminator again. - When traveling through a discriminator, the - composed schema that is - is traveled through is added to this set. - For example if Animal has a discriminator - petType and we pass in "Dog", and the class Dog - allOf includes Animal, we move through Animal - once using the discriminator, and pick Dog. - Then in Dog, we will make an instance of the - Animal class but this time we won't travel - through its discriminator because we passed in - _visited_composed_classes = (Animal,) - name (str): The name for the real-time logging configuration.. [optional] # noqa: E501 - placement (str, none_type): Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. . [optional] # noqa: E501 - 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] if omitted the server will use the default value of 2 # noqa: E501 - response_condition (str, none_type): The name of an existing condition in the configured endpoint, or leave blank to always execute.. [optional] # noqa: E501 - format (str): 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] if omitted the server will use the default value of "{"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"}" # noqa: E501 - token (str): The Insert API key from the Account page of your New Relic account. Required.. [optional] # noqa: E501 - region (str): The region to which to stream logs.. [optional] if omitted the server will use the default value of "US" # noqa: E501 - """ - - _check_type = kwargs.pop('_check_type', True) - _spec_property_naming = kwargs.pop('_spec_property_naming', False) - _path_to_item = kwargs.pop('_path_to_item', ()) - _configuration = kwargs.pop('_configuration', None) - _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) - - if args: - raise ApiTypeError( - "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( - args, - self.__class__.__name__, - ), - path_to_item=_path_to_item, - valid_classes=(self.__class__,), - ) - - self._data_store = {} - self._check_type = _check_type - self._spec_property_naming = _spec_property_naming - self._path_to_item = _path_to_item - self._configuration = _configuration - self._visited_composed_classes = _visited_composed_classes + (self.__class__,) - - constant_args = { - '_check_type': _check_type, - '_path_to_item': _path_to_item, - '_spec_property_naming': _spec_property_naming, - '_configuration': _configuration, - '_visited_composed_classes': self._visited_composed_classes, - } - composed_info = validate_get_composed_info( - constant_args, kwargs, self) - self._composed_instances = composed_info[0] - self._var_name_to_model_instances = composed_info[1] - self._additional_properties_model_instances = composed_info[2] - discarded_args = composed_info[3] - - for var_name, var_value in kwargs.items(): - if var_name in discarded_args and \ - self._configuration is not None and \ - self._configuration.discard_unknown_keys and \ - self._additional_properties_model_instances: - # discard variable. - continue - setattr(self, var_name, var_value) - if var_name in self.read_only_vars: - raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " - f"class with read only attributes.") - - @cached_property - def _composed_schemas(): - # we need this here to make our import statements work - # we must store _composed_schemas in here so the code is only run - # when we invoke this method. If we kept this at the class - # level we would get an error because the class level - # code would be run when this module is imported, and these composed - # classes don't exist yet because their module has not finished - # loading - lazy_import() - return { - 'anyOf': [ - ], - 'allOf': [ - LoggingCommon, - LoggingNewrelicAllOf, - ], - 'oneOf': [ - ], - } diff --git a/fastly/model/logging_newrelic_all_of.py b/fastly/model/logging_newrelic_additional.py similarity index 98% rename from fastly/model/logging_newrelic_all_of.py rename to fastly/model/logging_newrelic_additional.py index 6e2d319..6243aad 100644 --- a/fastly/model/logging_newrelic_all_of.py +++ b/fastly/model/logging_newrelic_additional.py @@ -30,7 +30,7 @@ -class LoggingNewrelicAllOf(ModelNormal): +class LoggingNewrelicAdditional(ModelNormal): """NOTE: This class is auto generated. Do not edit the class manually. @@ -107,7 +107,7 @@ def discriminator(): @classmethod @convert_js_args_to_python_args def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 - """LoggingNewrelicAllOf - a model defined in OpenAPI + """LoggingNewrelicAdditional - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -191,7 +191,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 @convert_js_args_to_python_args def __init__(self, *args, **kwargs): # noqa: E501 - """LoggingNewrelicAllOf - a model defined in OpenAPI + """LoggingNewrelicAdditional - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types diff --git a/fastly/model/logging_newrelic_response.py b/fastly/model/logging_newrelic_response.py index f4cc4a3..22a9a77 100644 --- a/fastly/model/logging_newrelic_response.py +++ b/fastly/model/logging_newrelic_response.py @@ -30,11 +30,13 @@ def lazy_import(): - from fastly.model.logging_newrelic import LoggingNewrelic - from fastly.model.service_id_and_version import ServiceIdAndVersion + from fastly.model.logging_common_response import LoggingCommonResponse + from fastly.model.logging_newrelic_additional import LoggingNewrelicAdditional + from fastly.model.service_id_and_version_string import ServiceIdAndVersionString from fastly.model.timestamps import Timestamps - globals()['LoggingNewrelic'] = LoggingNewrelic - globals()['ServiceIdAndVersion'] = ServiceIdAndVersion + globals()['LoggingCommonResponse'] = LoggingCommonResponse + globals()['LoggingNewrelicAdditional'] = LoggingNewrelicAdditional + globals()['ServiceIdAndVersionString'] = ServiceIdAndVersionString globals()['Timestamps'] = Timestamps @@ -68,8 +70,8 @@ class LoggingNewrelicResponse(ModelComposed): 'NULL': "null", }, ('format_version',): { - 'v1': 1, - 'v2': 2, + 'v1': "1", + 'v2': "2", }, ('region',): { 'US': "US", @@ -105,16 +107,16 @@ def openapi_types(): return { 'name': (str,), # noqa: E501 'placement': (str, none_type,), # noqa: E501 - 'format_version': (int,), # noqa: E501 'response_condition': (str, none_type,), # noqa: E501 'format': (str,), # noqa: E501 + 'format_version': (str,), # noqa: E501 'token': (str,), # noqa: E501 'region': (str,), # noqa: E501 'created_at': (datetime, none_type,), # noqa: E501 'deleted_at': (datetime, none_type,), # noqa: E501 'updated_at': (datetime, none_type,), # noqa: E501 'service_id': (str,), # noqa: E501 - 'version': (int,), # noqa: E501 + 'version': (str,), # noqa: E501 } @cached_property @@ -125,9 +127,9 @@ def discriminator(): attribute_map = { 'name': 'name', # noqa: E501 'placement': 'placement', # noqa: E501 - 'format_version': 'format_version', # noqa: E501 'response_condition': 'response_condition', # noqa: E501 'format': 'format', # noqa: E501 + 'format_version': 'format_version', # noqa: E501 'token': 'token', # noqa: E501 'region': 'region', # noqa: E501 'created_at': 'created_at', # noqa: E501 @@ -183,16 +185,16 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 _visited_composed_classes = (Animal,) name (str): The name for the real-time logging configuration.. [optional] # noqa: E501 placement (str, none_type): Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. . [optional] # noqa: E501 - 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] if omitted the server will use the default value of 2 # noqa: E501 response_condition (str, none_type): The name of an existing condition in the configured endpoint, or leave blank to always execute.. [optional] # noqa: E501 format (str): 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] if omitted the server will use the default value of "{"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"}" # noqa: E501 + format_version (str): The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. . [optional] if omitted the server will use the default value of "2" # noqa: E501 token (str): The Insert API key from the Account page of your New Relic account. Required.. [optional] # noqa: E501 region (str): The region to which to stream logs.. [optional] if omitted the server will use the default value of "US" # noqa: E501 created_at (datetime, none_type): Date and time in ISO 8601 format.. [optional] # noqa: E501 deleted_at (datetime, none_type): Date and time in ISO 8601 format.. [optional] # noqa: E501 updated_at (datetime, none_type): Date and time in ISO 8601 format.. [optional] # noqa: E501 service_id (str): [optional] # noqa: E501 - version (int): [optional] # noqa: E501 + version (str): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -294,16 +296,16 @@ def __init__(self, *args, **kwargs): # noqa: E501 _visited_composed_classes = (Animal,) name (str): The name for the real-time logging configuration.. [optional] # noqa: E501 placement (str, none_type): Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. . [optional] # noqa: E501 - 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] if omitted the server will use the default value of 2 # noqa: E501 response_condition (str, none_type): The name of an existing condition in the configured endpoint, or leave blank to always execute.. [optional] # noqa: E501 format (str): 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] if omitted the server will use the default value of "{"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"}" # noqa: E501 + format_version (str): The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. . [optional] if omitted the server will use the default value of "2" # noqa: E501 token (str): The Insert API key from the Account page of your New Relic account. Required.. [optional] # noqa: E501 region (str): The region to which to stream logs.. [optional] if omitted the server will use the default value of "US" # noqa: E501 created_at (datetime, none_type): Date and time in ISO 8601 format.. [optional] # noqa: E501 deleted_at (datetime, none_type): Date and time in ISO 8601 format.. [optional] # noqa: E501 updated_at (datetime, none_type): Date and time in ISO 8601 format.. [optional] # noqa: E501 service_id (str): [optional] # noqa: E501 - version (int): [optional] # noqa: E501 + version (str): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -369,8 +371,9 @@ def _composed_schemas(): 'anyOf': [ ], 'allOf': [ - LoggingNewrelic, - ServiceIdAndVersion, + LoggingCommonResponse, + LoggingNewrelicAdditional, + ServiceIdAndVersionString, Timestamps, ], 'oneOf': [ diff --git a/fastly/model/logging_openstack.py b/fastly/model/logging_openstack.py deleted file mode 100644 index 2b39f6c..0000000 --- a/fastly/model/logging_openstack.py +++ /dev/null @@ -1,397 +0,0 @@ -""" - Fastly API - - Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://developer.fastly.com/reference/api/) # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Contact: oss@fastly.com -""" - - -import re # noqa: F401 -import sys # noqa: F401 - -from fastly.model_utils import ( # noqa: F401 - ApiTypeError, - ModelComposed, - ModelNormal, - ModelSimple, - cached_property, - change_keys_js_to_python, - convert_js_args_to_python_args, - date, - datetime, - file_type, - none_type, - validate_get_composed_info, - OpenApiModel -) -from fastly.exceptions import ApiAttributeError - - -def lazy_import(): - from fastly.model.logging_common import LoggingCommon - from fastly.model.logging_generic_common import LoggingGenericCommon - from fastly.model.logging_openstack_all_of import LoggingOpenstackAllOf - globals()['LoggingCommon'] = LoggingCommon - globals()['LoggingGenericCommon'] = LoggingGenericCommon - globals()['LoggingOpenstackAllOf'] = LoggingOpenstackAllOf - - -class LoggingOpenstack(ModelComposed): - """NOTE: This class is auto generated. - Do not edit the class manually. - - Attributes: - allowed_values (dict): The key is the tuple path to the attribute - and the for var_name this is (var_name,). The value is a dict - with a capitalized key describing the allowed value and an allowed - value. These dicts store the allowed enum values. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - discriminator_value_class_map (dict): A dict to go from the discriminator - variable value to the discriminator class name. - validations (dict): The key is the tuple path to the attribute - and the for var_name this is (var_name,). The value is a dict - that stores validations for max_length, min_length, max_items, - min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, - inclusive_minimum, and regex. - additional_properties_type (tuple): A tuple of classes accepted - as additional properties values. - """ - - allowed_values = { - ('placement',): { - 'None': None, - 'NONE': "none", - 'WAF_DEBUG': "waf_debug", - 'NULL': "null", - }, - ('format_version',): { - 'v1': 1, - 'v2': 2, - }, - ('message_type',): { - 'CLASSIC': "classic", - 'LOGGLY': "loggly", - 'LOGPLEX': "logplex", - 'BLANK': "blank", - }, - ('compression_codec',): { - 'ZSTD': "zstd", - 'SNAPPY': "snappy", - 'GZIP': "gzip", - }, - } - - validations = { - } - - @cached_property - def additional_properties_type(): - """ - This must be a method because a model may have properties that are - of type self, this must run after the class is loaded - """ - lazy_import() - return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 - - _nullable = False - - @cached_property - def openapi_types(): - """ - This must be a method because a model may have properties that are - of type self, this must run after the class is loaded - - Returns - openapi_types (dict): The key is attribute name - and the value is attribute type. - """ - lazy_import() - return { - 'name': (str,), # noqa: E501 - 'placement': (str, none_type,), # noqa: E501 - 'format_version': (int,), # noqa: E501 - 'response_condition': (str, none_type,), # noqa: E501 - 'format': (str,), # noqa: E501 - 'message_type': (str,), # noqa: E501 - 'timestamp_format': (str, none_type,), # noqa: E501 - 'period': (int,), # noqa: E501 - 'gzip_level': (int,), # noqa: E501 - 'compression_codec': (str,), # noqa: E501 - 'access_key': (str,), # noqa: E501 - 'bucket_name': (str,), # noqa: E501 - 'path': (str, none_type,), # noqa: E501 - 'public_key': (str, none_type,), # noqa: E501 - 'url': (str,), # noqa: E501 - 'user': (str,), # noqa: E501 - } - - @cached_property - def discriminator(): - return None - - - attribute_map = { - 'name': 'name', # noqa: E501 - 'placement': 'placement', # noqa: E501 - 'format_version': 'format_version', # noqa: E501 - 'response_condition': 'response_condition', # noqa: E501 - 'format': 'format', # noqa: E501 - 'message_type': 'message_type', # noqa: E501 - 'timestamp_format': 'timestamp_format', # noqa: E501 - 'period': 'period', # noqa: E501 - 'gzip_level': 'gzip_level', # noqa: E501 - 'compression_codec': 'compression_codec', # noqa: E501 - 'access_key': 'access_key', # noqa: E501 - 'bucket_name': 'bucket_name', # noqa: E501 - 'path': 'path', # noqa: E501 - 'public_key': 'public_key', # noqa: E501 - 'url': 'url', # noqa: E501 - 'user': 'user', # noqa: E501 - } - - read_only_vars = { - 'timestamp_format', # noqa: E501 - } - - @classmethod - @convert_js_args_to_python_args - def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 - """LoggingOpenstack - a model defined in OpenAPI - - Keyword Args: - _check_type (bool): if True, values for parameters in openapi_types - will be type checked and a TypeError will be - raised if the wrong type is input. - Defaults to True - _path_to_item (tuple/list): This is a list of keys or values to - drill down to the model in received_data - when deserializing a response - _spec_property_naming (bool): True if the variable names in the input data - are serialized names, as specified in the OpenAPI document. - False if the variable names in the input data - are pythonic names, e.g. snake case (default) - _configuration (Configuration): the instance to use when - deserializing a file_type parameter. - If passed, type conversion is attempted - If omitted no type conversion is done. - _visited_composed_classes (tuple): This stores a tuple of - classes that we have traveled through so that - if we see that class again we will not use its - discriminator again. - When traveling through a discriminator, the - composed schema that is - is traveled through is added to this set. - For example if Animal has a discriminator - petType and we pass in "Dog", and the class Dog - allOf includes Animal, we move through Animal - once using the discriminator, and pick Dog. - Then in Dog, we will make an instance of the - Animal class but this time we won't travel - through its discriminator because we passed in - _visited_composed_classes = (Animal,) - name (str): The name for the real-time logging configuration.. [optional] # noqa: E501 - placement (str, none_type): Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. . [optional] # noqa: E501 - 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] if omitted the server will use the default value of 2 # noqa: E501 - response_condition (str, none_type): The name of an existing condition in the configured endpoint, or leave blank to always execute.. [optional] # noqa: E501 - format (str): A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats).. [optional] if omitted the server will use the default value of "%h %l %u %t "%r" %>s %b" # noqa: E501 - message_type (str): How the message should be formatted.. [optional] if omitted the server will use the default value of "classic" # noqa: E501 - timestamp_format (str, none_type): A timestamp format. [optional] # noqa: E501 - period (int): How frequently log files are finalized so they can be available for reading (in seconds).. [optional] if omitted the server will use the default value of 3600 # noqa: E501 - 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] if omitted the server will use the default value of 0 # noqa: E501 - compression_codec (str): The codec used for compressing your logs. 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] # noqa: E501 - access_key (str): Your OpenStack account access key.. [optional] # noqa: E501 - bucket_name (str): The name of your OpenStack container.. [optional] # noqa: E501 - path (str, none_type): The path to upload logs to.. [optional] if omitted the server will use the default value of "null" # noqa: E501 - public_key (str, none_type): A PGP public key that Fastly will use to encrypt your log files before writing them to disk.. [optional] if omitted the server will use the default value of "null" # noqa: E501 - url (str): Your OpenStack auth url.. [optional] # noqa: E501 - user (str): The username for your OpenStack account.. [optional] # noqa: E501 - """ - - _check_type = kwargs.pop('_check_type', True) - _spec_property_naming = kwargs.pop('_spec_property_naming', False) - _path_to_item = kwargs.pop('_path_to_item', ()) - _configuration = kwargs.pop('_configuration', None) - _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) - - self = super(OpenApiModel, cls).__new__(cls) - - if args: - raise ApiTypeError( - "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( - args, - self.__class__.__name__, - ), - path_to_item=_path_to_item, - valid_classes=(self.__class__,), - ) - - self._data_store = {} - self._check_type = _check_type - self._spec_property_naming = _spec_property_naming - self._path_to_item = _path_to_item - self._configuration = _configuration - self._visited_composed_classes = _visited_composed_classes + (self.__class__,) - - constant_args = { - '_check_type': _check_type, - '_path_to_item': _path_to_item, - '_spec_property_naming': _spec_property_naming, - '_configuration': _configuration, - '_visited_composed_classes': self._visited_composed_classes, - } - composed_info = validate_get_composed_info( - constant_args, kwargs, self) - self._composed_instances = composed_info[0] - self._var_name_to_model_instances = composed_info[1] - self._additional_properties_model_instances = composed_info[2] - discarded_args = composed_info[3] - - for var_name, var_value in kwargs.items(): - if var_name in discarded_args and \ - self._configuration is not None and \ - self._configuration.discard_unknown_keys and \ - self._additional_properties_model_instances: - # discard variable. - continue - setattr(self, var_name, var_value) - - return self - - required_properties = set([ - '_data_store', - '_check_type', - '_spec_property_naming', - '_path_to_item', - '_configuration', - '_visited_composed_classes', - '_composed_instances', - '_var_name_to_model_instances', - '_additional_properties_model_instances', - ]) - - @convert_js_args_to_python_args - def __init__(self, *args, **kwargs): # noqa: E501 - """LoggingOpenstack - a model defined in OpenAPI - - Keyword Args: - _check_type (bool): if True, values for parameters in openapi_types - will be type checked and a TypeError will be - raised if the wrong type is input. - Defaults to True - _path_to_item (tuple/list): This is a list of keys or values to - drill down to the model in received_data - when deserializing a response - _spec_property_naming (bool): True if the variable names in the input data - are serialized names, as specified in the OpenAPI document. - False if the variable names in the input data - are pythonic names, e.g. snake case (default) - _configuration (Configuration): the instance to use when - deserializing a file_type parameter. - If passed, type conversion is attempted - If omitted no type conversion is done. - _visited_composed_classes (tuple): This stores a tuple of - classes that we have traveled through so that - if we see that class again we will not use its - discriminator again. - When traveling through a discriminator, the - composed schema that is - is traveled through is added to this set. - For example if Animal has a discriminator - petType and we pass in "Dog", and the class Dog - allOf includes Animal, we move through Animal - once using the discriminator, and pick Dog. - Then in Dog, we will make an instance of the - Animal class but this time we won't travel - through its discriminator because we passed in - _visited_composed_classes = (Animal,) - name (str): The name for the real-time logging configuration.. [optional] # noqa: E501 - placement (str, none_type): Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. . [optional] # noqa: E501 - 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] if omitted the server will use the default value of 2 # noqa: E501 - response_condition (str, none_type): The name of an existing condition in the configured endpoint, or leave blank to always execute.. [optional] # noqa: E501 - format (str): A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats).. [optional] if omitted the server will use the default value of "%h %l %u %t "%r" %>s %b" # noqa: E501 - message_type (str): How the message should be formatted.. [optional] if omitted the server will use the default value of "classic" # noqa: E501 - timestamp_format (str, none_type): A timestamp format. [optional] # noqa: E501 - period (int): How frequently log files are finalized so they can be available for reading (in seconds).. [optional] if omitted the server will use the default value of 3600 # noqa: E501 - 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] if omitted the server will use the default value of 0 # noqa: E501 - compression_codec (str): The codec used for compressing your logs. 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] # noqa: E501 - access_key (str): Your OpenStack account access key.. [optional] # noqa: E501 - bucket_name (str): The name of your OpenStack container.. [optional] # noqa: E501 - path (str, none_type): The path to upload logs to.. [optional] if omitted the server will use the default value of "null" # noqa: E501 - public_key (str, none_type): A PGP public key that Fastly will use to encrypt your log files before writing them to disk.. [optional] if omitted the server will use the default value of "null" # noqa: E501 - url (str): Your OpenStack auth url.. [optional] # noqa: E501 - user (str): The username for your OpenStack account.. [optional] # noqa: E501 - """ - - _check_type = kwargs.pop('_check_type', True) - _spec_property_naming = kwargs.pop('_spec_property_naming', False) - _path_to_item = kwargs.pop('_path_to_item', ()) - _configuration = kwargs.pop('_configuration', None) - _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) - - if args: - raise ApiTypeError( - "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( - args, - self.__class__.__name__, - ), - path_to_item=_path_to_item, - valid_classes=(self.__class__,), - ) - - self._data_store = {} - self._check_type = _check_type - self._spec_property_naming = _spec_property_naming - self._path_to_item = _path_to_item - self._configuration = _configuration - self._visited_composed_classes = _visited_composed_classes + (self.__class__,) - - constant_args = { - '_check_type': _check_type, - '_path_to_item': _path_to_item, - '_spec_property_naming': _spec_property_naming, - '_configuration': _configuration, - '_visited_composed_classes': self._visited_composed_classes, - } - composed_info = validate_get_composed_info( - constant_args, kwargs, self) - self._composed_instances = composed_info[0] - self._var_name_to_model_instances = composed_info[1] - self._additional_properties_model_instances = composed_info[2] - discarded_args = composed_info[3] - - for var_name, var_value in kwargs.items(): - if var_name in discarded_args and \ - self._configuration is not None and \ - self._configuration.discard_unknown_keys and \ - self._additional_properties_model_instances: - # discard variable. - continue - setattr(self, var_name, var_value) - if var_name in self.read_only_vars: - raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " - f"class with read only attributes.") - - @cached_property - def _composed_schemas(): - # we need this here to make our import statements work - # we must store _composed_schemas in here so the code is only run - # when we invoke this method. If we kept this at the class - # level we would get an error because the class level - # code would be run when this module is imported, and these composed - # classes don't exist yet because their module has not finished - # loading - lazy_import() - return { - 'anyOf': [ - ], - 'allOf': [ - LoggingCommon, - LoggingGenericCommon, - LoggingOpenstackAllOf, - ], - 'oneOf': [ - ], - } diff --git a/fastly/model/logging_openstack_all_of.py b/fastly/model/logging_openstack_additional.py similarity index 98% rename from fastly/model/logging_openstack_all_of.py rename to fastly/model/logging_openstack_additional.py index 980a16c..f3fa897 100644 --- a/fastly/model/logging_openstack_all_of.py +++ b/fastly/model/logging_openstack_additional.py @@ -30,7 +30,7 @@ -class LoggingOpenstackAllOf(ModelNormal): +class LoggingOpenstackAdditional(ModelNormal): """NOTE: This class is auto generated. Do not edit the class manually. @@ -109,7 +109,7 @@ def discriminator(): @classmethod @convert_js_args_to_python_args def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 - """LoggingOpenstackAllOf - a model defined in OpenAPI + """LoggingOpenstackAdditional - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -196,7 +196,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 @convert_js_args_to_python_args def __init__(self, *args, **kwargs): # noqa: E501 - """LoggingOpenstackAllOf - a model defined in OpenAPI + """LoggingOpenstackAdditional - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types diff --git a/fastly/model/logging_openstack_response.py b/fastly/model/logging_openstack_response.py index 2d30e8a..a8808fd 100644 --- a/fastly/model/logging_openstack_response.py +++ b/fastly/model/logging_openstack_response.py @@ -30,11 +30,15 @@ def lazy_import(): - from fastly.model.logging_openstack import LoggingOpenstack - from fastly.model.service_id_and_version import ServiceIdAndVersion + from fastly.model.logging_common_response import LoggingCommonResponse + from fastly.model.logging_generic_common_response import LoggingGenericCommonResponse + from fastly.model.logging_openstack_additional import LoggingOpenstackAdditional + from fastly.model.service_id_and_version_string import ServiceIdAndVersionString from fastly.model.timestamps import Timestamps - globals()['LoggingOpenstack'] = LoggingOpenstack - globals()['ServiceIdAndVersion'] = ServiceIdAndVersion + globals()['LoggingCommonResponse'] = LoggingCommonResponse + globals()['LoggingGenericCommonResponse'] = LoggingGenericCommonResponse + globals()['LoggingOpenstackAdditional'] = LoggingOpenstackAdditional + globals()['ServiceIdAndVersionString'] = ServiceIdAndVersionString globals()['Timestamps'] = Timestamps @@ -68,8 +72,8 @@ class LoggingOpenstackResponse(ModelComposed): 'NULL': "null", }, ('format_version',): { - 'v1': 1, - 'v2': 2, + 'v1': "1", + 'v2': "2", }, ('message_type',): { 'CLASSIC': "classic", @@ -112,25 +116,25 @@ def openapi_types(): return { 'name': (str,), # noqa: E501 'placement': (str, none_type,), # noqa: E501 - 'format_version': (int,), # noqa: E501 'response_condition': (str, none_type,), # noqa: E501 'format': (str,), # noqa: E501 + 'format_version': (str,), # noqa: E501 'message_type': (str,), # noqa: E501 'timestamp_format': (str, none_type,), # noqa: E501 - 'period': (int,), # noqa: E501 - 'gzip_level': (int,), # noqa: E501 'compression_codec': (str,), # noqa: E501 + 'period': (str,), # noqa: E501 + 'gzip_level': (str,), # noqa: E501 + 'created_at': (datetime, none_type,), # noqa: E501 + 'deleted_at': (datetime, none_type,), # noqa: E501 + 'updated_at': (datetime, none_type,), # noqa: E501 + 'service_id': (str,), # noqa: E501 + 'version': (str,), # noqa: E501 'access_key': (str,), # noqa: E501 'bucket_name': (str,), # noqa: E501 'path': (str, none_type,), # noqa: E501 'public_key': (str, none_type,), # noqa: E501 'url': (str,), # noqa: E501 'user': (str,), # noqa: E501 - 'created_at': (datetime, none_type,), # noqa: E501 - 'deleted_at': (datetime, none_type,), # noqa: E501 - 'updated_at': (datetime, none_type,), # noqa: E501 - 'service_id': (str,), # noqa: E501 - 'version': (int,), # noqa: E501 } @cached_property @@ -141,25 +145,25 @@ def discriminator(): attribute_map = { 'name': 'name', # noqa: E501 'placement': 'placement', # noqa: E501 - 'format_version': 'format_version', # noqa: E501 'response_condition': 'response_condition', # noqa: E501 'format': 'format', # noqa: E501 + 'format_version': 'format_version', # noqa: E501 'message_type': 'message_type', # noqa: E501 'timestamp_format': 'timestamp_format', # noqa: E501 + 'compression_codec': 'compression_codec', # noqa: E501 'period': 'period', # noqa: E501 'gzip_level': 'gzip_level', # noqa: E501 - 'compression_codec': 'compression_codec', # noqa: E501 + 'created_at': 'created_at', # noqa: E501 + 'deleted_at': 'deleted_at', # noqa: E501 + 'updated_at': 'updated_at', # noqa: E501 + 'service_id': 'service_id', # noqa: E501 + 'version': 'version', # noqa: E501 'access_key': 'access_key', # noqa: E501 'bucket_name': 'bucket_name', # noqa: E501 'path': 'path', # noqa: E501 'public_key': 'public_key', # noqa: E501 'url': 'url', # noqa: E501 'user': 'user', # noqa: E501 - 'created_at': 'created_at', # noqa: E501 - 'deleted_at': 'deleted_at', # noqa: E501 - 'updated_at': 'updated_at', # noqa: E501 - 'service_id': 'service_id', # noqa: E501 - 'version': 'version', # noqa: E501 } read_only_vars = { @@ -209,25 +213,25 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 _visited_composed_classes = (Animal,) name (str): The name for the real-time logging configuration.. [optional] # noqa: E501 placement (str, none_type): Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. . [optional] # noqa: E501 - 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] if omitted the server will use the default value of 2 # noqa: E501 response_condition (str, none_type): The name of an existing condition in the configured endpoint, or leave blank to always execute.. [optional] # noqa: E501 format (str): A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats).. [optional] if omitted the server will use the default value of "%h %l %u %t "%r" %>s %b" # noqa: E501 + format_version (str): The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. . [optional] if omitted the server will use the default value of "2" # noqa: E501 message_type (str): How the message should be formatted.. [optional] if omitted the server will use the default value of "classic" # noqa: E501 timestamp_format (str, none_type): A timestamp format. [optional] # noqa: E501 - period (int): How frequently log files are finalized so they can be available for reading (in seconds).. [optional] if omitted the server will use the default value of 3600 # noqa: E501 - 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] if omitted the server will use the default value of 0 # noqa: E501 compression_codec (str): The codec used for compressing your logs. 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] # noqa: E501 + period (str): How frequently log files are finalized so they can be available for reading (in seconds).. [optional] if omitted the server will use the default value of "3600" # noqa: E501 + gzip_level (str): 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] if omitted the server will use the default value of "0" # noqa: E501 + created_at (datetime, none_type): Date and time in ISO 8601 format.. [optional] # noqa: E501 + deleted_at (datetime, none_type): Date and time in ISO 8601 format.. [optional] # noqa: E501 + updated_at (datetime, none_type): Date and time in ISO 8601 format.. [optional] # noqa: E501 + service_id (str): [optional] # noqa: E501 + version (str): [optional] # noqa: E501 access_key (str): Your OpenStack account access key.. [optional] # noqa: E501 bucket_name (str): The name of your OpenStack container.. [optional] # noqa: E501 path (str, none_type): The path to upload logs to.. [optional] if omitted the server will use the default value of "null" # noqa: E501 public_key (str, none_type): A PGP public key that Fastly will use to encrypt your log files before writing them to disk.. [optional] if omitted the server will use the default value of "null" # noqa: E501 url (str): Your OpenStack auth url.. [optional] # noqa: E501 user (str): The username for your OpenStack account.. [optional] # noqa: E501 - created_at (datetime, none_type): Date and time in ISO 8601 format.. [optional] # noqa: E501 - deleted_at (datetime, none_type): Date and time in ISO 8601 format.. [optional] # noqa: E501 - updated_at (datetime, none_type): Date and time in ISO 8601 format.. [optional] # noqa: E501 - service_id (str): [optional] # noqa: E501 - version (int): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -329,25 +333,25 @@ def __init__(self, *args, **kwargs): # noqa: E501 _visited_composed_classes = (Animal,) name (str): The name for the real-time logging configuration.. [optional] # noqa: E501 placement (str, none_type): Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. . [optional] # noqa: E501 - 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] if omitted the server will use the default value of 2 # noqa: E501 response_condition (str, none_type): The name of an existing condition in the configured endpoint, or leave blank to always execute.. [optional] # noqa: E501 format (str): A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats).. [optional] if omitted the server will use the default value of "%h %l %u %t "%r" %>s %b" # noqa: E501 + format_version (str): The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. . [optional] if omitted the server will use the default value of "2" # noqa: E501 message_type (str): How the message should be formatted.. [optional] if omitted the server will use the default value of "classic" # noqa: E501 timestamp_format (str, none_type): A timestamp format. [optional] # noqa: E501 - period (int): How frequently log files are finalized so they can be available for reading (in seconds).. [optional] if omitted the server will use the default value of 3600 # noqa: E501 - 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] if omitted the server will use the default value of 0 # noqa: E501 compression_codec (str): The codec used for compressing your logs. 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] # noqa: E501 + period (str): How frequently log files are finalized so they can be available for reading (in seconds).. [optional] if omitted the server will use the default value of "3600" # noqa: E501 + gzip_level (str): 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] if omitted the server will use the default value of "0" # noqa: E501 + created_at (datetime, none_type): Date and time in ISO 8601 format.. [optional] # noqa: E501 + deleted_at (datetime, none_type): Date and time in ISO 8601 format.. [optional] # noqa: E501 + updated_at (datetime, none_type): Date and time in ISO 8601 format.. [optional] # noqa: E501 + service_id (str): [optional] # noqa: E501 + version (str): [optional] # noqa: E501 access_key (str): Your OpenStack account access key.. [optional] # noqa: E501 bucket_name (str): The name of your OpenStack container.. [optional] # noqa: E501 path (str, none_type): The path to upload logs to.. [optional] if omitted the server will use the default value of "null" # noqa: E501 public_key (str, none_type): A PGP public key that Fastly will use to encrypt your log files before writing them to disk.. [optional] if omitted the server will use the default value of "null" # noqa: E501 url (str): Your OpenStack auth url.. [optional] # noqa: E501 user (str): The username for your OpenStack account.. [optional] # noqa: E501 - created_at (datetime, none_type): Date and time in ISO 8601 format.. [optional] # noqa: E501 - deleted_at (datetime, none_type): Date and time in ISO 8601 format.. [optional] # noqa: E501 - updated_at (datetime, none_type): Date and time in ISO 8601 format.. [optional] # noqa: E501 - service_id (str): [optional] # noqa: E501 - version (int): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -413,8 +417,10 @@ def _composed_schemas(): 'anyOf': [ ], 'allOf': [ - LoggingOpenstack, - ServiceIdAndVersion, + LoggingCommonResponse, + LoggingGenericCommonResponse, + LoggingOpenstackAdditional, + ServiceIdAndVersionString, Timestamps, ], 'oneOf': [ diff --git a/fastly/model/logging_papertrail.py b/fastly/model/logging_papertrail.py deleted file mode 100644 index 17a7646..0000000 --- a/fastly/model/logging_papertrail.py +++ /dev/null @@ -1,346 +0,0 @@ -""" - Fastly API - - Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://developer.fastly.com/reference/api/) # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Contact: oss@fastly.com -""" - - -import re # noqa: F401 -import sys # noqa: F401 - -from fastly.model_utils import ( # noqa: F401 - ApiTypeError, - ModelComposed, - ModelNormal, - ModelSimple, - cached_property, - change_keys_js_to_python, - convert_js_args_to_python_args, - date, - datetime, - file_type, - none_type, - validate_get_composed_info, - OpenApiModel -) -from fastly.exceptions import ApiAttributeError - - -def lazy_import(): - from fastly.model.logging_address_and_port import LoggingAddressAndPort - from fastly.model.logging_common import LoggingCommon - globals()['LoggingAddressAndPort'] = LoggingAddressAndPort - globals()['LoggingCommon'] = LoggingCommon - - -class LoggingPapertrail(ModelComposed): - """NOTE: This class is auto generated. - Do not edit the class manually. - - Attributes: - allowed_values (dict): The key is the tuple path to the attribute - and the for var_name this is (var_name,). The value is a dict - with a capitalized key describing the allowed value and an allowed - value. These dicts store the allowed enum values. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - discriminator_value_class_map (dict): A dict to go from the discriminator - variable value to the discriminator class name. - validations (dict): The key is the tuple path to the attribute - and the for var_name this is (var_name,). The value is a dict - that stores validations for max_length, min_length, max_items, - min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, - inclusive_minimum, and regex. - additional_properties_type (tuple): A tuple of classes accepted - as additional properties values. - """ - - allowed_values = { - ('placement',): { - 'None': None, - 'NONE': "none", - 'WAF_DEBUG': "waf_debug", - 'NULL': "null", - }, - ('format_version',): { - 'v1': 1, - 'v2': 2, - }, - } - - validations = { - } - - @cached_property - def additional_properties_type(): - """ - This must be a method because a model may have properties that are - of type self, this must run after the class is loaded - """ - lazy_import() - return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 - - _nullable = False - - @cached_property - def openapi_types(): - """ - This must be a method because a model may have properties that are - of type self, this must run after the class is loaded - - Returns - openapi_types (dict): The key is attribute name - and the value is attribute type. - """ - lazy_import() - return { - 'name': (str,), # noqa: E501 - 'placement': (str, none_type,), # noqa: E501 - 'format_version': (int,), # noqa: E501 - 'response_condition': (str, none_type,), # noqa: E501 - 'format': (str,), # noqa: E501 - 'address': (str,), # noqa: E501 - 'port': (int,), # noqa: E501 - } - - @cached_property - def discriminator(): - return None - - - attribute_map = { - 'name': 'name', # noqa: E501 - 'placement': 'placement', # noqa: E501 - 'format_version': 'format_version', # noqa: E501 - 'response_condition': 'response_condition', # noqa: E501 - 'format': 'format', # noqa: E501 - 'address': 'address', # noqa: E501 - 'port': 'port', # noqa: E501 - } - - read_only_vars = { - } - - @classmethod - @convert_js_args_to_python_args - def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 - """LoggingPapertrail - a model defined in OpenAPI - - Keyword Args: - _check_type (bool): if True, values for parameters in openapi_types - will be type checked and a TypeError will be - raised if the wrong type is input. - Defaults to True - _path_to_item (tuple/list): This is a list of keys or values to - drill down to the model in received_data - when deserializing a response - _spec_property_naming (bool): True if the variable names in the input data - are serialized names, as specified in the OpenAPI document. - False if the variable names in the input data - are pythonic names, e.g. snake case (default) - _configuration (Configuration): the instance to use when - deserializing a file_type parameter. - If passed, type conversion is attempted - If omitted no type conversion is done. - _visited_composed_classes (tuple): This stores a tuple of - classes that we have traveled through so that - if we see that class again we will not use its - discriminator again. - When traveling through a discriminator, the - composed schema that is - is traveled through is added to this set. - For example if Animal has a discriminator - petType and we pass in "Dog", and the class Dog - allOf includes Animal, we move through Animal - once using the discriminator, and pick Dog. - Then in Dog, we will make an instance of the - Animal class but this time we won't travel - through its discriminator because we passed in - _visited_composed_classes = (Animal,) - name (str): The name for the real-time logging configuration.. [optional] # noqa: E501 - placement (str, none_type): Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. . [optional] # noqa: E501 - 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] if omitted the server will use the default value of 2 # noqa: E501 - response_condition (str, none_type): The name of an existing condition in the configured endpoint, or leave blank to always execute.. [optional] # noqa: E501 - format (str): A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats).. [optional] if omitted the server will use the default value of "%h %l %u %t "%r" %>s %b" # noqa: E501 - address (str): A hostname or IPv4 address.. [optional] # noqa: E501 - port (int): The port number.. [optional] if omitted the server will use the default value of 514 # noqa: E501 - """ - - _check_type = kwargs.pop('_check_type', True) - _spec_property_naming = kwargs.pop('_spec_property_naming', False) - _path_to_item = kwargs.pop('_path_to_item', ()) - _configuration = kwargs.pop('_configuration', None) - _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) - - self = super(OpenApiModel, cls).__new__(cls) - - if args: - raise ApiTypeError( - "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( - args, - self.__class__.__name__, - ), - path_to_item=_path_to_item, - valid_classes=(self.__class__,), - ) - - self._data_store = {} - self._check_type = _check_type - self._spec_property_naming = _spec_property_naming - self._path_to_item = _path_to_item - self._configuration = _configuration - self._visited_composed_classes = _visited_composed_classes + (self.__class__,) - - constant_args = { - '_check_type': _check_type, - '_path_to_item': _path_to_item, - '_spec_property_naming': _spec_property_naming, - '_configuration': _configuration, - '_visited_composed_classes': self._visited_composed_classes, - } - composed_info = validate_get_composed_info( - constant_args, kwargs, self) - self._composed_instances = composed_info[0] - self._var_name_to_model_instances = composed_info[1] - self._additional_properties_model_instances = composed_info[2] - discarded_args = composed_info[3] - - for var_name, var_value in kwargs.items(): - if var_name in discarded_args and \ - self._configuration is not None and \ - self._configuration.discard_unknown_keys and \ - self._additional_properties_model_instances: - # discard variable. - continue - setattr(self, var_name, var_value) - - return self - - required_properties = set([ - '_data_store', - '_check_type', - '_spec_property_naming', - '_path_to_item', - '_configuration', - '_visited_composed_classes', - '_composed_instances', - '_var_name_to_model_instances', - '_additional_properties_model_instances', - ]) - - @convert_js_args_to_python_args - def __init__(self, *args, **kwargs): # noqa: E501 - """LoggingPapertrail - a model defined in OpenAPI - - Keyword Args: - _check_type (bool): if True, values for parameters in openapi_types - will be type checked and a TypeError will be - raised if the wrong type is input. - Defaults to True - _path_to_item (tuple/list): This is a list of keys or values to - drill down to the model in received_data - when deserializing a response - _spec_property_naming (bool): True if the variable names in the input data - are serialized names, as specified in the OpenAPI document. - False if the variable names in the input data - are pythonic names, e.g. snake case (default) - _configuration (Configuration): the instance to use when - deserializing a file_type parameter. - If passed, type conversion is attempted - If omitted no type conversion is done. - _visited_composed_classes (tuple): This stores a tuple of - classes that we have traveled through so that - if we see that class again we will not use its - discriminator again. - When traveling through a discriminator, the - composed schema that is - is traveled through is added to this set. - For example if Animal has a discriminator - petType and we pass in "Dog", and the class Dog - allOf includes Animal, we move through Animal - once using the discriminator, and pick Dog. - Then in Dog, we will make an instance of the - Animal class but this time we won't travel - through its discriminator because we passed in - _visited_composed_classes = (Animal,) - name (str): The name for the real-time logging configuration.. [optional] # noqa: E501 - placement (str, none_type): Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. . [optional] # noqa: E501 - 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] if omitted the server will use the default value of 2 # noqa: E501 - response_condition (str, none_type): The name of an existing condition in the configured endpoint, or leave blank to always execute.. [optional] # noqa: E501 - format (str): A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats).. [optional] if omitted the server will use the default value of "%h %l %u %t "%r" %>s %b" # noqa: E501 - address (str): A hostname or IPv4 address.. [optional] # noqa: E501 - port (int): The port number.. [optional] if omitted the server will use the default value of 514 # noqa: E501 - """ - - _check_type = kwargs.pop('_check_type', True) - _spec_property_naming = kwargs.pop('_spec_property_naming', False) - _path_to_item = kwargs.pop('_path_to_item', ()) - _configuration = kwargs.pop('_configuration', None) - _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) - - if args: - raise ApiTypeError( - "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( - args, - self.__class__.__name__, - ), - path_to_item=_path_to_item, - valid_classes=(self.__class__,), - ) - - self._data_store = {} - self._check_type = _check_type - self._spec_property_naming = _spec_property_naming - self._path_to_item = _path_to_item - self._configuration = _configuration - self._visited_composed_classes = _visited_composed_classes + (self.__class__,) - - constant_args = { - '_check_type': _check_type, - '_path_to_item': _path_to_item, - '_spec_property_naming': _spec_property_naming, - '_configuration': _configuration, - '_visited_composed_classes': self._visited_composed_classes, - } - composed_info = validate_get_composed_info( - constant_args, kwargs, self) - self._composed_instances = composed_info[0] - self._var_name_to_model_instances = composed_info[1] - self._additional_properties_model_instances = composed_info[2] - discarded_args = composed_info[3] - - for var_name, var_value in kwargs.items(): - if var_name in discarded_args and \ - self._configuration is not None and \ - self._configuration.discard_unknown_keys and \ - self._additional_properties_model_instances: - # discard variable. - continue - setattr(self, var_name, var_value) - if var_name in self.read_only_vars: - raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " - f"class with read only attributes.") - - @cached_property - def _composed_schemas(): - # we need this here to make our import statements work - # we must store _composed_schemas in here so the code is only run - # when we invoke this method. If we kept this at the class - # level we would get an error because the class level - # code would be run when this module is imported, and these composed - # classes don't exist yet because their module has not finished - # loading - lazy_import() - return { - 'anyOf': [ - ], - 'allOf': [ - LoggingAddressAndPort, - LoggingCommon, - ], - 'oneOf': [ - ], - } diff --git a/fastly/model/logging_papertrail_response.py b/fastly/model/logging_papertrail_response.py index 1e9fbd4..46244ae 100644 --- a/fastly/model/logging_papertrail_response.py +++ b/fastly/model/logging_papertrail_response.py @@ -30,11 +30,13 @@ def lazy_import(): - from fastly.model.logging_papertrail import LoggingPapertrail - from fastly.model.service_id_and_version import ServiceIdAndVersion + from fastly.model.logging_address_and_port import LoggingAddressAndPort + from fastly.model.logging_common_response import LoggingCommonResponse + from fastly.model.service_id_and_version_string import ServiceIdAndVersionString from fastly.model.timestamps import Timestamps - globals()['LoggingPapertrail'] = LoggingPapertrail - globals()['ServiceIdAndVersion'] = ServiceIdAndVersion + globals()['LoggingAddressAndPort'] = LoggingAddressAndPort + globals()['LoggingCommonResponse'] = LoggingCommonResponse + globals()['ServiceIdAndVersionString'] = ServiceIdAndVersionString globals()['Timestamps'] = Timestamps @@ -68,8 +70,8 @@ class LoggingPapertrailResponse(ModelComposed): 'NULL': "null", }, ('format_version',): { - 'v1': 1, - 'v2': 2, + 'v1': "1", + 'v2': "2", }, } @@ -101,16 +103,16 @@ def openapi_types(): return { 'name': (str,), # noqa: E501 'placement': (str, none_type,), # noqa: E501 - 'format_version': (int,), # noqa: E501 'response_condition': (str, none_type,), # noqa: E501 'format': (str,), # noqa: E501 + 'format_version': (str,), # noqa: E501 'address': (str,), # noqa: E501 'port': (int,), # noqa: E501 'created_at': (datetime, none_type,), # noqa: E501 'deleted_at': (datetime, none_type,), # noqa: E501 'updated_at': (datetime, none_type,), # noqa: E501 'service_id': (str,), # noqa: E501 - 'version': (int,), # noqa: E501 + 'version': (str,), # noqa: E501 } @cached_property @@ -121,9 +123,9 @@ def discriminator(): attribute_map = { 'name': 'name', # noqa: E501 'placement': 'placement', # noqa: E501 - 'format_version': 'format_version', # noqa: E501 'response_condition': 'response_condition', # noqa: E501 'format': 'format', # noqa: E501 + 'format_version': 'format_version', # noqa: E501 'address': 'address', # noqa: E501 'port': 'port', # noqa: E501 'created_at': 'created_at', # noqa: E501 @@ -179,16 +181,16 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 _visited_composed_classes = (Animal,) name (str): The name for the real-time logging configuration.. [optional] # noqa: E501 placement (str, none_type): Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. . [optional] # noqa: E501 - 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] if omitted the server will use the default value of 2 # noqa: E501 response_condition (str, none_type): The name of an existing condition in the configured endpoint, or leave blank to always execute.. [optional] # noqa: E501 format (str): A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats).. [optional] if omitted the server will use the default value of "%h %l %u %t "%r" %>s %b" # noqa: E501 + format_version (str): The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. . [optional] if omitted the server will use the default value of "2" # noqa: E501 address (str): A hostname or IPv4 address.. [optional] # noqa: E501 port (int): The port number.. [optional] if omitted the server will use the default value of 514 # noqa: E501 created_at (datetime, none_type): Date and time in ISO 8601 format.. [optional] # noqa: E501 deleted_at (datetime, none_type): Date and time in ISO 8601 format.. [optional] # noqa: E501 updated_at (datetime, none_type): Date and time in ISO 8601 format.. [optional] # noqa: E501 service_id (str): [optional] # noqa: E501 - version (int): [optional] # noqa: E501 + version (str): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -290,16 +292,16 @@ def __init__(self, *args, **kwargs): # noqa: E501 _visited_composed_classes = (Animal,) name (str): The name for the real-time logging configuration.. [optional] # noqa: E501 placement (str, none_type): Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. . [optional] # noqa: E501 - 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] if omitted the server will use the default value of 2 # noqa: E501 response_condition (str, none_type): The name of an existing condition in the configured endpoint, or leave blank to always execute.. [optional] # noqa: E501 format (str): A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats).. [optional] if omitted the server will use the default value of "%h %l %u %t "%r" %>s %b" # noqa: E501 + format_version (str): The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. . [optional] if omitted the server will use the default value of "2" # noqa: E501 address (str): A hostname or IPv4 address.. [optional] # noqa: E501 port (int): The port number.. [optional] if omitted the server will use the default value of 514 # noqa: E501 created_at (datetime, none_type): Date and time in ISO 8601 format.. [optional] # noqa: E501 deleted_at (datetime, none_type): Date and time in ISO 8601 format.. [optional] # noqa: E501 updated_at (datetime, none_type): Date and time in ISO 8601 format.. [optional] # noqa: E501 service_id (str): [optional] # noqa: E501 - version (int): [optional] # noqa: E501 + version (str): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -365,8 +367,9 @@ def _composed_schemas(): 'anyOf': [ ], 'allOf': [ - LoggingPapertrail, - ServiceIdAndVersion, + LoggingAddressAndPort, + LoggingCommonResponse, + ServiceIdAndVersionString, Timestamps, ], 'oneOf': [ diff --git a/fastly/model/logging_s3.py b/fastly/model/logging_s3.py deleted file mode 100644 index 891a1ce..0000000 --- a/fastly/model/logging_s3.py +++ /dev/null @@ -1,417 +0,0 @@ -""" - Fastly API - - Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://developer.fastly.com/reference/api/) # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Contact: oss@fastly.com -""" - - -import re # noqa: F401 -import sys # noqa: F401 - -from fastly.model_utils import ( # noqa: F401 - ApiTypeError, - ModelComposed, - ModelNormal, - ModelSimple, - cached_property, - change_keys_js_to_python, - convert_js_args_to_python_args, - date, - datetime, - file_type, - none_type, - validate_get_composed_info, - OpenApiModel -) -from fastly.exceptions import ApiAttributeError - - -def lazy_import(): - from fastly.model.logging_common import LoggingCommon - from fastly.model.logging_generic_common import LoggingGenericCommon - from fastly.model.logging_s3_all_of import LoggingS3AllOf - globals()['LoggingCommon'] = LoggingCommon - globals()['LoggingGenericCommon'] = LoggingGenericCommon - globals()['LoggingS3AllOf'] = LoggingS3AllOf - - -class LoggingS3(ModelComposed): - """NOTE: This class is auto generated. - Do not edit the class manually. - - Attributes: - allowed_values (dict): The key is the tuple path to the attribute - and the for var_name this is (var_name,). The value is a dict - with a capitalized key describing the allowed value and an allowed - value. These dicts store the allowed enum values. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - discriminator_value_class_map (dict): A dict to go from the discriminator - variable value to the discriminator class name. - validations (dict): The key is the tuple path to the attribute - and the for var_name this is (var_name,). The value is a dict - that stores validations for max_length, min_length, max_items, - min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, - inclusive_minimum, and regex. - additional_properties_type (tuple): A tuple of classes accepted - as additional properties values. - """ - - allowed_values = { - ('placement',): { - 'None': None, - 'NONE': "none", - 'WAF_DEBUG': "waf_debug", - 'NULL': "null", - }, - ('format_version',): { - 'v1': 1, - 'v2': 2, - }, - ('message_type',): { - 'CLASSIC': "classic", - 'LOGGLY': "loggly", - 'LOGPLEX': "logplex", - 'BLANK': "blank", - }, - ('compression_codec',): { - 'ZSTD': "zstd", - 'SNAPPY': "snappy", - 'GZIP': "gzip", - }, - } - - validations = { - } - - @cached_property - def additional_properties_type(): - """ - This must be a method because a model may have properties that are - of type self, this must run after the class is loaded - """ - lazy_import() - return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 - - _nullable = False - - @cached_property - def openapi_types(): - """ - This must be a method because a model may have properties that are - of type self, this must run after the class is loaded - - Returns - openapi_types (dict): The key is attribute name - and the value is attribute type. - """ - lazy_import() - return { - 'name': (str,), # noqa: E501 - 'placement': (str, none_type,), # noqa: E501 - 'format_version': (int,), # noqa: E501 - 'response_condition': (str, none_type,), # noqa: E501 - 'format': (str,), # noqa: E501 - 'message_type': (str,), # noqa: E501 - 'timestamp_format': (str, none_type,), # noqa: E501 - 'period': (int,), # noqa: E501 - 'gzip_level': (int,), # noqa: E501 - 'compression_codec': (str,), # noqa: E501 - 'access_key': (str, none_type,), # noqa: E501 - 'acl': (str,), # noqa: E501 - 'bucket_name': (str,), # noqa: E501 - 'domain': (str,), # noqa: E501 - 'iam_role': (str, none_type,), # noqa: E501 - 'path': (str, none_type,), # noqa: E501 - 'public_key': (str, none_type,), # noqa: E501 - 'redundancy': (str, none_type,), # noqa: E501 - 'secret_key': (str, none_type,), # noqa: E501 - 'server_side_encryption_kms_key_id': (str, none_type,), # noqa: E501 - 'server_side_encryption': (str, none_type,), # noqa: E501 - } - - @cached_property - def discriminator(): - return None - - - attribute_map = { - 'name': 'name', # noqa: E501 - 'placement': 'placement', # noqa: E501 - 'format_version': 'format_version', # noqa: E501 - 'response_condition': 'response_condition', # noqa: E501 - 'format': 'format', # noqa: E501 - 'message_type': 'message_type', # noqa: E501 - 'timestamp_format': 'timestamp_format', # noqa: E501 - 'period': 'period', # noqa: E501 - 'gzip_level': 'gzip_level', # noqa: E501 - 'compression_codec': 'compression_codec', # noqa: E501 - 'access_key': 'access_key', # noqa: E501 - 'acl': 'acl', # noqa: E501 - 'bucket_name': 'bucket_name', # noqa: E501 - 'domain': 'domain', # noqa: E501 - 'iam_role': 'iam_role', # noqa: E501 - 'path': 'path', # noqa: E501 - 'public_key': 'public_key', # noqa: E501 - 'redundancy': 'redundancy', # noqa: E501 - 'secret_key': 'secret_key', # noqa: E501 - 'server_side_encryption_kms_key_id': 'server_side_encryption_kms_key_id', # noqa: E501 - 'server_side_encryption': 'server_side_encryption', # noqa: E501 - } - - read_only_vars = { - 'timestamp_format', # noqa: E501 - } - - @classmethod - @convert_js_args_to_python_args - def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 - """LoggingS3 - a model defined in OpenAPI - - Keyword Args: - _check_type (bool): if True, values for parameters in openapi_types - will be type checked and a TypeError will be - raised if the wrong type is input. - Defaults to True - _path_to_item (tuple/list): This is a list of keys or values to - drill down to the model in received_data - when deserializing a response - _spec_property_naming (bool): True if the variable names in the input data - are serialized names, as specified in the OpenAPI document. - False if the variable names in the input data - are pythonic names, e.g. snake case (default) - _configuration (Configuration): the instance to use when - deserializing a file_type parameter. - If passed, type conversion is attempted - If omitted no type conversion is done. - _visited_composed_classes (tuple): This stores a tuple of - classes that we have traveled through so that - if we see that class again we will not use its - discriminator again. - When traveling through a discriminator, the - composed schema that is - is traveled through is added to this set. - For example if Animal has a discriminator - petType and we pass in "Dog", and the class Dog - allOf includes Animal, we move through Animal - once using the discriminator, and pick Dog. - Then in Dog, we will make an instance of the - Animal class but this time we won't travel - through its discriminator because we passed in - _visited_composed_classes = (Animal,) - name (str): The name for the real-time logging configuration.. [optional] # noqa: E501 - placement (str, none_type): Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. . [optional] # noqa: E501 - 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] if omitted the server will use the default value of 2 # noqa: E501 - response_condition (str, none_type): The name of an existing condition in the configured endpoint, or leave blank to always execute.. [optional] # noqa: E501 - format (str): A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats).. [optional] if omitted the server will use the default value of "%h %l %u %t "%r" %>s %b" # noqa: E501 - message_type (str): How the message should be formatted.. [optional] if omitted the server will use the default value of "classic" # noqa: E501 - timestamp_format (str, none_type): A timestamp format. [optional] # noqa: E501 - period (int): How frequently log files are finalized so they can be available for reading (in seconds).. [optional] if omitted the server will use the default value of 3600 # noqa: E501 - 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] if omitted the server will use the default value of 0 # noqa: E501 - compression_codec (str): The codec used for compressing your logs. 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] # noqa: E501 - access_key (str, none_type): The access key for your S3 account. Not required if `iam_role` is provided.. [optional] # noqa: E501 - acl (str): 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] # noqa: E501 - bucket_name (str): The bucket name for S3 account.. [optional] # noqa: E501 - domain (str): The domain of the Amazon S3 endpoint.. [optional] # noqa: E501 - iam_role (str, none_type): 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] # noqa: E501 - path (str, none_type): The path to upload logs to.. [optional] if omitted the server will use the default value of "null" # noqa: E501 - public_key (str, none_type): A PGP public key that Fastly will use to encrypt your log files before writing them to disk.. [optional] if omitted the server will use the default value of "null" # noqa: E501 - redundancy (str, none_type): The S3 redundancy level.. [optional] if omitted the server will use the default value of "null" # noqa: E501 - secret_key (str, none_type): The secret key for your S3 account. Not required if `iam_role` is provided.. [optional] # noqa: E501 - server_side_encryption_kms_key_id (str, none_type): Optional server-side KMS Key Id. Must be set if `server_side_encryption` is set to `aws:kms` or `AES256`.. [optional] if omitted the server will use the default value of "null" # noqa: E501 - server_side_encryption (str, none_type): Set this to `AES256` or `aws:kms` to enable S3 Server Side Encryption.. [optional] if omitted the server will use the default value of "null" # noqa: E501 - """ - - _check_type = kwargs.pop('_check_type', True) - _spec_property_naming = kwargs.pop('_spec_property_naming', False) - _path_to_item = kwargs.pop('_path_to_item', ()) - _configuration = kwargs.pop('_configuration', None) - _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) - - self = super(OpenApiModel, cls).__new__(cls) - - if args: - raise ApiTypeError( - "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( - args, - self.__class__.__name__, - ), - path_to_item=_path_to_item, - valid_classes=(self.__class__,), - ) - - self._data_store = {} - self._check_type = _check_type - self._spec_property_naming = _spec_property_naming - self._path_to_item = _path_to_item - self._configuration = _configuration - self._visited_composed_classes = _visited_composed_classes + (self.__class__,) - - constant_args = { - '_check_type': _check_type, - '_path_to_item': _path_to_item, - '_spec_property_naming': _spec_property_naming, - '_configuration': _configuration, - '_visited_composed_classes': self._visited_composed_classes, - } - composed_info = validate_get_composed_info( - constant_args, kwargs, self) - self._composed_instances = composed_info[0] - self._var_name_to_model_instances = composed_info[1] - self._additional_properties_model_instances = composed_info[2] - discarded_args = composed_info[3] - - for var_name, var_value in kwargs.items(): - if var_name in discarded_args and \ - self._configuration is not None and \ - self._configuration.discard_unknown_keys and \ - self._additional_properties_model_instances: - # discard variable. - continue - setattr(self, var_name, var_value) - - return self - - required_properties = set([ - '_data_store', - '_check_type', - '_spec_property_naming', - '_path_to_item', - '_configuration', - '_visited_composed_classes', - '_composed_instances', - '_var_name_to_model_instances', - '_additional_properties_model_instances', - ]) - - @convert_js_args_to_python_args - def __init__(self, *args, **kwargs): # noqa: E501 - """LoggingS3 - a model defined in OpenAPI - - Keyword Args: - _check_type (bool): if True, values for parameters in openapi_types - will be type checked and a TypeError will be - raised if the wrong type is input. - Defaults to True - _path_to_item (tuple/list): This is a list of keys or values to - drill down to the model in received_data - when deserializing a response - _spec_property_naming (bool): True if the variable names in the input data - are serialized names, as specified in the OpenAPI document. - False if the variable names in the input data - are pythonic names, e.g. snake case (default) - _configuration (Configuration): the instance to use when - deserializing a file_type parameter. - If passed, type conversion is attempted - If omitted no type conversion is done. - _visited_composed_classes (tuple): This stores a tuple of - classes that we have traveled through so that - if we see that class again we will not use its - discriminator again. - When traveling through a discriminator, the - composed schema that is - is traveled through is added to this set. - For example if Animal has a discriminator - petType and we pass in "Dog", and the class Dog - allOf includes Animal, we move through Animal - once using the discriminator, and pick Dog. - Then in Dog, we will make an instance of the - Animal class but this time we won't travel - through its discriminator because we passed in - _visited_composed_classes = (Animal,) - name (str): The name for the real-time logging configuration.. [optional] # noqa: E501 - placement (str, none_type): Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. . [optional] # noqa: E501 - 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] if omitted the server will use the default value of 2 # noqa: E501 - response_condition (str, none_type): The name of an existing condition in the configured endpoint, or leave blank to always execute.. [optional] # noqa: E501 - format (str): A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats).. [optional] if omitted the server will use the default value of "%h %l %u %t "%r" %>s %b" # noqa: E501 - message_type (str): How the message should be formatted.. [optional] if omitted the server will use the default value of "classic" # noqa: E501 - timestamp_format (str, none_type): A timestamp format. [optional] # noqa: E501 - period (int): How frequently log files are finalized so they can be available for reading (in seconds).. [optional] if omitted the server will use the default value of 3600 # noqa: E501 - 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] if omitted the server will use the default value of 0 # noqa: E501 - compression_codec (str): The codec used for compressing your logs. 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] # noqa: E501 - access_key (str, none_type): The access key for your S3 account. Not required if `iam_role` is provided.. [optional] # noqa: E501 - acl (str): 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] # noqa: E501 - bucket_name (str): The bucket name for S3 account.. [optional] # noqa: E501 - domain (str): The domain of the Amazon S3 endpoint.. [optional] # noqa: E501 - iam_role (str, none_type): 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] # noqa: E501 - path (str, none_type): The path to upload logs to.. [optional] if omitted the server will use the default value of "null" # noqa: E501 - public_key (str, none_type): A PGP public key that Fastly will use to encrypt your log files before writing them to disk.. [optional] if omitted the server will use the default value of "null" # noqa: E501 - redundancy (str, none_type): The S3 redundancy level.. [optional] if omitted the server will use the default value of "null" # noqa: E501 - secret_key (str, none_type): The secret key for your S3 account. Not required if `iam_role` is provided.. [optional] # noqa: E501 - server_side_encryption_kms_key_id (str, none_type): Optional server-side KMS Key Id. Must be set if `server_side_encryption` is set to `aws:kms` or `AES256`.. [optional] if omitted the server will use the default value of "null" # noqa: E501 - server_side_encryption (str, none_type): Set this to `AES256` or `aws:kms` to enable S3 Server Side Encryption.. [optional] if omitted the server will use the default value of "null" # noqa: E501 - """ - - _check_type = kwargs.pop('_check_type', True) - _spec_property_naming = kwargs.pop('_spec_property_naming', False) - _path_to_item = kwargs.pop('_path_to_item', ()) - _configuration = kwargs.pop('_configuration', None) - _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) - - if args: - raise ApiTypeError( - "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( - args, - self.__class__.__name__, - ), - path_to_item=_path_to_item, - valid_classes=(self.__class__,), - ) - - self._data_store = {} - self._check_type = _check_type - self._spec_property_naming = _spec_property_naming - self._path_to_item = _path_to_item - self._configuration = _configuration - self._visited_composed_classes = _visited_composed_classes + (self.__class__,) - - constant_args = { - '_check_type': _check_type, - '_path_to_item': _path_to_item, - '_spec_property_naming': _spec_property_naming, - '_configuration': _configuration, - '_visited_composed_classes': self._visited_composed_classes, - } - composed_info = validate_get_composed_info( - constant_args, kwargs, self) - self._composed_instances = composed_info[0] - self._var_name_to_model_instances = composed_info[1] - self._additional_properties_model_instances = composed_info[2] - discarded_args = composed_info[3] - - for var_name, var_value in kwargs.items(): - if var_name in discarded_args and \ - self._configuration is not None and \ - self._configuration.discard_unknown_keys and \ - self._additional_properties_model_instances: - # discard variable. - continue - setattr(self, var_name, var_value) - if var_name in self.read_only_vars: - raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " - f"class with read only attributes.") - - @cached_property - def _composed_schemas(): - # we need this here to make our import statements work - # we must store _composed_schemas in here so the code is only run - # when we invoke this method. If we kept this at the class - # level we would get an error because the class level - # code would be run when this module is imported, and these composed - # classes don't exist yet because their module has not finished - # loading - lazy_import() - return { - 'anyOf': [ - ], - 'allOf': [ - LoggingCommon, - LoggingGenericCommon, - LoggingS3AllOf, - ], - 'oneOf': [ - ], - } diff --git a/fastly/model/logging_s3_all_of.py b/fastly/model/logging_s3_additional.py similarity index 99% rename from fastly/model/logging_s3_all_of.py rename to fastly/model/logging_s3_additional.py index 2e8b884..d3c5b74 100644 --- a/fastly/model/logging_s3_all_of.py +++ b/fastly/model/logging_s3_additional.py @@ -30,7 +30,7 @@ -class LoggingS3AllOf(ModelNormal): +class LoggingS3Additional(ModelNormal): """NOTE: This class is auto generated. Do not edit the class manually. @@ -119,7 +119,7 @@ def discriminator(): @classmethod @convert_js_args_to_python_args def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 - """LoggingS3AllOf - a model defined in OpenAPI + """LoggingS3Additional - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -211,7 +211,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 @convert_js_args_to_python_args def __init__(self, *args, **kwargs): # noqa: E501 - """LoggingS3AllOf - a model defined in OpenAPI + """LoggingS3Additional - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types diff --git a/fastly/model/logging_s3_response.py b/fastly/model/logging_s3_response.py index cb7fc52..6155b94 100644 --- a/fastly/model/logging_s3_response.py +++ b/fastly/model/logging_s3_response.py @@ -30,11 +30,15 @@ def lazy_import(): - from fastly.model.logging_s3 import LoggingS3 - from fastly.model.service_id_and_version import ServiceIdAndVersion + from fastly.model.logging_common_response import LoggingCommonResponse + from fastly.model.logging_generic_common_response import LoggingGenericCommonResponse + from fastly.model.logging_s3_additional import LoggingS3Additional + from fastly.model.service_id_and_version_string import ServiceIdAndVersionString from fastly.model.timestamps import Timestamps - globals()['LoggingS3'] = LoggingS3 - globals()['ServiceIdAndVersion'] = ServiceIdAndVersion + globals()['LoggingCommonResponse'] = LoggingCommonResponse + globals()['LoggingGenericCommonResponse'] = LoggingGenericCommonResponse + globals()['LoggingS3Additional'] = LoggingS3Additional + globals()['ServiceIdAndVersionString'] = ServiceIdAndVersionString globals()['Timestamps'] = Timestamps @@ -68,8 +72,8 @@ class LoggingS3Response(ModelComposed): 'NULL': "null", }, ('format_version',): { - 'v1': 1, - 'v2': 2, + 'v1': "1", + 'v2': "2", }, ('message_type',): { 'CLASSIC': "classic", @@ -112,14 +116,19 @@ def openapi_types(): return { 'name': (str,), # noqa: E501 'placement': (str, none_type,), # noqa: E501 - 'format_version': (int,), # noqa: E501 'response_condition': (str, none_type,), # noqa: E501 'format': (str,), # noqa: E501 + 'format_version': (str,), # noqa: E501 'message_type': (str,), # noqa: E501 'timestamp_format': (str, none_type,), # noqa: E501 - 'period': (int,), # noqa: E501 - 'gzip_level': (int,), # noqa: E501 'compression_codec': (str,), # noqa: E501 + 'period': (str,), # noqa: E501 + 'gzip_level': (str,), # noqa: E501 + 'created_at': (datetime, none_type,), # noqa: E501 + 'deleted_at': (datetime, none_type,), # noqa: E501 + 'updated_at': (datetime, none_type,), # noqa: E501 + 'service_id': (str,), # noqa: E501 + 'version': (str,), # noqa: E501 'access_key': (str, none_type,), # noqa: E501 'acl': (str,), # noqa: E501 'bucket_name': (str,), # noqa: E501 @@ -131,11 +140,6 @@ def openapi_types(): 'secret_key': (str, none_type,), # noqa: E501 'server_side_encryption_kms_key_id': (str, none_type,), # noqa: E501 'server_side_encryption': (str, none_type,), # noqa: E501 - 'created_at': (datetime, none_type,), # noqa: E501 - 'deleted_at': (datetime, none_type,), # noqa: E501 - 'updated_at': (datetime, none_type,), # noqa: E501 - 'service_id': (str,), # noqa: E501 - 'version': (int,), # noqa: E501 } @cached_property @@ -146,14 +150,19 @@ def discriminator(): attribute_map = { 'name': 'name', # noqa: E501 'placement': 'placement', # noqa: E501 - 'format_version': 'format_version', # noqa: E501 'response_condition': 'response_condition', # noqa: E501 'format': 'format', # noqa: E501 + 'format_version': 'format_version', # noqa: E501 'message_type': 'message_type', # noqa: E501 'timestamp_format': 'timestamp_format', # noqa: E501 + 'compression_codec': 'compression_codec', # noqa: E501 'period': 'period', # noqa: E501 'gzip_level': 'gzip_level', # noqa: E501 - 'compression_codec': 'compression_codec', # noqa: E501 + 'created_at': 'created_at', # noqa: E501 + 'deleted_at': 'deleted_at', # noqa: E501 + 'updated_at': 'updated_at', # noqa: E501 + 'service_id': 'service_id', # noqa: E501 + 'version': 'version', # noqa: E501 'access_key': 'access_key', # noqa: E501 'acl': 'acl', # noqa: E501 'bucket_name': 'bucket_name', # noqa: E501 @@ -165,11 +174,6 @@ def discriminator(): 'secret_key': 'secret_key', # noqa: E501 'server_side_encryption_kms_key_id': 'server_side_encryption_kms_key_id', # noqa: E501 'server_side_encryption': 'server_side_encryption', # noqa: E501 - 'created_at': 'created_at', # noqa: E501 - 'deleted_at': 'deleted_at', # noqa: E501 - 'updated_at': 'updated_at', # noqa: E501 - 'service_id': 'service_id', # noqa: E501 - 'version': 'version', # noqa: E501 } read_only_vars = { @@ -219,14 +223,19 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 _visited_composed_classes = (Animal,) name (str): The name for the real-time logging configuration.. [optional] # noqa: E501 placement (str, none_type): Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. . [optional] # noqa: E501 - 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] if omitted the server will use the default value of 2 # noqa: E501 response_condition (str, none_type): The name of an existing condition in the configured endpoint, or leave blank to always execute.. [optional] # noqa: E501 format (str): A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats).. [optional] if omitted the server will use the default value of "%h %l %u %t "%r" %>s %b" # noqa: E501 + format_version (str): The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. . [optional] if omitted the server will use the default value of "2" # noqa: E501 message_type (str): How the message should be formatted.. [optional] if omitted the server will use the default value of "classic" # noqa: E501 timestamp_format (str, none_type): A timestamp format. [optional] # noqa: E501 - period (int): How frequently log files are finalized so they can be available for reading (in seconds).. [optional] if omitted the server will use the default value of 3600 # noqa: E501 - 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] if omitted the server will use the default value of 0 # noqa: E501 compression_codec (str): The codec used for compressing your logs. 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] # noqa: E501 + period (str): How frequently log files are finalized so they can be available for reading (in seconds).. [optional] if omitted the server will use the default value of "3600" # noqa: E501 + gzip_level (str): 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] if omitted the server will use the default value of "0" # noqa: E501 + created_at (datetime, none_type): Date and time in ISO 8601 format.. [optional] # noqa: E501 + deleted_at (datetime, none_type): Date and time in ISO 8601 format.. [optional] # noqa: E501 + updated_at (datetime, none_type): Date and time in ISO 8601 format.. [optional] # noqa: E501 + service_id (str): [optional] # noqa: E501 + version (str): [optional] # noqa: E501 access_key (str, none_type): The access key for your S3 account. Not required if `iam_role` is provided.. [optional] # noqa: E501 acl (str): 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] # noqa: E501 bucket_name (str): The bucket name for S3 account.. [optional] # noqa: E501 @@ -238,11 +247,6 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 secret_key (str, none_type): The secret key for your S3 account. Not required if `iam_role` is provided.. [optional] # noqa: E501 server_side_encryption_kms_key_id (str, none_type): Optional server-side KMS Key Id. Must be set if `server_side_encryption` is set to `aws:kms` or `AES256`.. [optional] if omitted the server will use the default value of "null" # noqa: E501 server_side_encryption (str, none_type): Set this to `AES256` or `aws:kms` to enable S3 Server Side Encryption.. [optional] if omitted the server will use the default value of "null" # noqa: E501 - created_at (datetime, none_type): Date and time in ISO 8601 format.. [optional] # noqa: E501 - deleted_at (datetime, none_type): Date and time in ISO 8601 format.. [optional] # noqa: E501 - updated_at (datetime, none_type): Date and time in ISO 8601 format.. [optional] # noqa: E501 - service_id (str): [optional] # noqa: E501 - version (int): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -344,14 +348,19 @@ def __init__(self, *args, **kwargs): # noqa: E501 _visited_composed_classes = (Animal,) name (str): The name for the real-time logging configuration.. [optional] # noqa: E501 placement (str, none_type): Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. . [optional] # noqa: E501 - 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] if omitted the server will use the default value of 2 # noqa: E501 response_condition (str, none_type): The name of an existing condition in the configured endpoint, or leave blank to always execute.. [optional] # noqa: E501 format (str): A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats).. [optional] if omitted the server will use the default value of "%h %l %u %t "%r" %>s %b" # noqa: E501 + format_version (str): The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. . [optional] if omitted the server will use the default value of "2" # noqa: E501 message_type (str): How the message should be formatted.. [optional] if omitted the server will use the default value of "classic" # noqa: E501 timestamp_format (str, none_type): A timestamp format. [optional] # noqa: E501 - period (int): How frequently log files are finalized so they can be available for reading (in seconds).. [optional] if omitted the server will use the default value of 3600 # noqa: E501 - 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] if omitted the server will use the default value of 0 # noqa: E501 compression_codec (str): The codec used for compressing your logs. 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] # noqa: E501 + period (str): How frequently log files are finalized so they can be available for reading (in seconds).. [optional] if omitted the server will use the default value of "3600" # noqa: E501 + gzip_level (str): 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] if omitted the server will use the default value of "0" # noqa: E501 + created_at (datetime, none_type): Date and time in ISO 8601 format.. [optional] # noqa: E501 + deleted_at (datetime, none_type): Date and time in ISO 8601 format.. [optional] # noqa: E501 + updated_at (datetime, none_type): Date and time in ISO 8601 format.. [optional] # noqa: E501 + service_id (str): [optional] # noqa: E501 + version (str): [optional] # noqa: E501 access_key (str, none_type): The access key for your S3 account. Not required if `iam_role` is provided.. [optional] # noqa: E501 acl (str): 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] # noqa: E501 bucket_name (str): The bucket name for S3 account.. [optional] # noqa: E501 @@ -363,11 +372,6 @@ def __init__(self, *args, **kwargs): # noqa: E501 secret_key (str, none_type): The secret key for your S3 account. Not required if `iam_role` is provided.. [optional] # noqa: E501 server_side_encryption_kms_key_id (str, none_type): Optional server-side KMS Key Id. Must be set if `server_side_encryption` is set to `aws:kms` or `AES256`.. [optional] if omitted the server will use the default value of "null" # noqa: E501 server_side_encryption (str, none_type): Set this to `AES256` or `aws:kms` to enable S3 Server Side Encryption.. [optional] if omitted the server will use the default value of "null" # noqa: E501 - created_at (datetime, none_type): Date and time in ISO 8601 format.. [optional] # noqa: E501 - deleted_at (datetime, none_type): Date and time in ISO 8601 format.. [optional] # noqa: E501 - updated_at (datetime, none_type): Date and time in ISO 8601 format.. [optional] # noqa: E501 - service_id (str): [optional] # noqa: E501 - version (int): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -433,8 +437,10 @@ def _composed_schemas(): 'anyOf': [ ], 'allOf': [ - LoggingS3, - ServiceIdAndVersion, + LoggingCommonResponse, + LoggingGenericCommonResponse, + LoggingS3Additional, + ServiceIdAndVersionString, Timestamps, ], 'oneOf': [ diff --git a/fastly/model/logging_scalyr.py b/fastly/model/logging_scalyr.py deleted file mode 100644 index 4c9b1c3..0000000 --- a/fastly/model/logging_scalyr.py +++ /dev/null @@ -1,354 +0,0 @@ -""" - Fastly API - - Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://developer.fastly.com/reference/api/) # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Contact: oss@fastly.com -""" - - -import re # noqa: F401 -import sys # noqa: F401 - -from fastly.model_utils import ( # noqa: F401 - ApiTypeError, - ModelComposed, - ModelNormal, - ModelSimple, - cached_property, - change_keys_js_to_python, - convert_js_args_to_python_args, - date, - datetime, - file_type, - none_type, - validate_get_composed_info, - OpenApiModel -) -from fastly.exceptions import ApiAttributeError - - -def lazy_import(): - from fastly.model.logging_common import LoggingCommon - from fastly.model.logging_scalyr_all_of import LoggingScalyrAllOf - globals()['LoggingCommon'] = LoggingCommon - globals()['LoggingScalyrAllOf'] = LoggingScalyrAllOf - - -class LoggingScalyr(ModelComposed): - """NOTE: This class is auto generated. - Do not edit the class manually. - - Attributes: - allowed_values (dict): The key is the tuple path to the attribute - and the for var_name this is (var_name,). The value is a dict - with a capitalized key describing the allowed value and an allowed - value. These dicts store the allowed enum values. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - discriminator_value_class_map (dict): A dict to go from the discriminator - variable value to the discriminator class name. - validations (dict): The key is the tuple path to the attribute - and the for var_name this is (var_name,). The value is a dict - that stores validations for max_length, min_length, max_items, - min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, - inclusive_minimum, and regex. - additional_properties_type (tuple): A tuple of classes accepted - as additional properties values. - """ - - allowed_values = { - ('placement',): { - 'None': None, - 'NONE': "none", - 'WAF_DEBUG': "waf_debug", - 'NULL': "null", - }, - ('format_version',): { - 'v1': 1, - 'v2': 2, - }, - ('region',): { - 'US': "US", - 'EU': "EU", - }, - } - - validations = { - } - - @cached_property - def additional_properties_type(): - """ - This must be a method because a model may have properties that are - of type self, this must run after the class is loaded - """ - lazy_import() - return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 - - _nullable = False - - @cached_property - def openapi_types(): - """ - This must be a method because a model may have properties that are - of type self, this must run after the class is loaded - - Returns - openapi_types (dict): The key is attribute name - and the value is attribute type. - """ - lazy_import() - return { - 'name': (str,), # noqa: E501 - 'placement': (str, none_type,), # noqa: E501 - 'format_version': (int,), # noqa: E501 - 'response_condition': (str, none_type,), # noqa: E501 - 'format': (str,), # noqa: E501 - 'region': (str,), # noqa: E501 - 'token': (str,), # noqa: E501 - 'project_id': (str,), # noqa: E501 - } - - @cached_property - def discriminator(): - return None - - - attribute_map = { - 'name': 'name', # noqa: E501 - 'placement': 'placement', # noqa: E501 - 'format_version': 'format_version', # noqa: E501 - 'response_condition': 'response_condition', # noqa: E501 - 'format': 'format', # noqa: E501 - 'region': 'region', # noqa: E501 - 'token': 'token', # noqa: E501 - 'project_id': 'project_id', # noqa: E501 - } - - read_only_vars = { - } - - @classmethod - @convert_js_args_to_python_args - def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 - """LoggingScalyr - a model defined in OpenAPI - - Keyword Args: - _check_type (bool): if True, values for parameters in openapi_types - will be type checked and a TypeError will be - raised if the wrong type is input. - Defaults to True - _path_to_item (tuple/list): This is a list of keys or values to - drill down to the model in received_data - when deserializing a response - _spec_property_naming (bool): True if the variable names in the input data - are serialized names, as specified in the OpenAPI document. - False if the variable names in the input data - are pythonic names, e.g. snake case (default) - _configuration (Configuration): the instance to use when - deserializing a file_type parameter. - If passed, type conversion is attempted - If omitted no type conversion is done. - _visited_composed_classes (tuple): This stores a tuple of - classes that we have traveled through so that - if we see that class again we will not use its - discriminator again. - When traveling through a discriminator, the - composed schema that is - is traveled through is added to this set. - For example if Animal has a discriminator - petType and we pass in "Dog", and the class Dog - allOf includes Animal, we move through Animal - once using the discriminator, and pick Dog. - Then in Dog, we will make an instance of the - Animal class but this time we won't travel - through its discriminator because we passed in - _visited_composed_classes = (Animal,) - name (str): The name for the real-time logging configuration.. [optional] # noqa: E501 - placement (str, none_type): Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. . [optional] # noqa: E501 - 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] if omitted the server will use the default value of 2 # noqa: E501 - response_condition (str, none_type): The name of an existing condition in the configured endpoint, or leave blank to always execute.. [optional] # noqa: E501 - format (str): A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats).. [optional] if omitted the server will use the default value of "%h %l %u %t "%r" %>s %b" # noqa: E501 - region (str): The region that log data will be sent to.. [optional] if omitted the server will use the default value of "US" # noqa: E501 - token (str): The token to use for authentication ([https://www.scalyr.com/keys](https://www.scalyr.com/keys)).. [optional] # noqa: E501 - project_id (str): The name of the logfile within Scalyr.. [optional] if omitted the server will use the default value of "logplex" # noqa: E501 - """ - - _check_type = kwargs.pop('_check_type', True) - _spec_property_naming = kwargs.pop('_spec_property_naming', False) - _path_to_item = kwargs.pop('_path_to_item', ()) - _configuration = kwargs.pop('_configuration', None) - _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) - - self = super(OpenApiModel, cls).__new__(cls) - - if args: - raise ApiTypeError( - "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( - args, - self.__class__.__name__, - ), - path_to_item=_path_to_item, - valid_classes=(self.__class__,), - ) - - self._data_store = {} - self._check_type = _check_type - self._spec_property_naming = _spec_property_naming - self._path_to_item = _path_to_item - self._configuration = _configuration - self._visited_composed_classes = _visited_composed_classes + (self.__class__,) - - constant_args = { - '_check_type': _check_type, - '_path_to_item': _path_to_item, - '_spec_property_naming': _spec_property_naming, - '_configuration': _configuration, - '_visited_composed_classes': self._visited_composed_classes, - } - composed_info = validate_get_composed_info( - constant_args, kwargs, self) - self._composed_instances = composed_info[0] - self._var_name_to_model_instances = composed_info[1] - self._additional_properties_model_instances = composed_info[2] - discarded_args = composed_info[3] - - for var_name, var_value in kwargs.items(): - if var_name in discarded_args and \ - self._configuration is not None and \ - self._configuration.discard_unknown_keys and \ - self._additional_properties_model_instances: - # discard variable. - continue - setattr(self, var_name, var_value) - - return self - - required_properties = set([ - '_data_store', - '_check_type', - '_spec_property_naming', - '_path_to_item', - '_configuration', - '_visited_composed_classes', - '_composed_instances', - '_var_name_to_model_instances', - '_additional_properties_model_instances', - ]) - - @convert_js_args_to_python_args - def __init__(self, *args, **kwargs): # noqa: E501 - """LoggingScalyr - a model defined in OpenAPI - - Keyword Args: - _check_type (bool): if True, values for parameters in openapi_types - will be type checked and a TypeError will be - raised if the wrong type is input. - Defaults to True - _path_to_item (tuple/list): This is a list of keys or values to - drill down to the model in received_data - when deserializing a response - _spec_property_naming (bool): True if the variable names in the input data - are serialized names, as specified in the OpenAPI document. - False if the variable names in the input data - are pythonic names, e.g. snake case (default) - _configuration (Configuration): the instance to use when - deserializing a file_type parameter. - If passed, type conversion is attempted - If omitted no type conversion is done. - _visited_composed_classes (tuple): This stores a tuple of - classes that we have traveled through so that - if we see that class again we will not use its - discriminator again. - When traveling through a discriminator, the - composed schema that is - is traveled through is added to this set. - For example if Animal has a discriminator - petType and we pass in "Dog", and the class Dog - allOf includes Animal, we move through Animal - once using the discriminator, and pick Dog. - Then in Dog, we will make an instance of the - Animal class but this time we won't travel - through its discriminator because we passed in - _visited_composed_classes = (Animal,) - name (str): The name for the real-time logging configuration.. [optional] # noqa: E501 - placement (str, none_type): Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. . [optional] # noqa: E501 - 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] if omitted the server will use the default value of 2 # noqa: E501 - response_condition (str, none_type): The name of an existing condition in the configured endpoint, or leave blank to always execute.. [optional] # noqa: E501 - format (str): A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats).. [optional] if omitted the server will use the default value of "%h %l %u %t "%r" %>s %b" # noqa: E501 - region (str): The region that log data will be sent to.. [optional] if omitted the server will use the default value of "US" # noqa: E501 - token (str): The token to use for authentication ([https://www.scalyr.com/keys](https://www.scalyr.com/keys)).. [optional] # noqa: E501 - project_id (str): The name of the logfile within Scalyr.. [optional] if omitted the server will use the default value of "logplex" # noqa: E501 - """ - - _check_type = kwargs.pop('_check_type', True) - _spec_property_naming = kwargs.pop('_spec_property_naming', False) - _path_to_item = kwargs.pop('_path_to_item', ()) - _configuration = kwargs.pop('_configuration', None) - _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) - - if args: - raise ApiTypeError( - "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( - args, - self.__class__.__name__, - ), - path_to_item=_path_to_item, - valid_classes=(self.__class__,), - ) - - self._data_store = {} - self._check_type = _check_type - self._spec_property_naming = _spec_property_naming - self._path_to_item = _path_to_item - self._configuration = _configuration - self._visited_composed_classes = _visited_composed_classes + (self.__class__,) - - constant_args = { - '_check_type': _check_type, - '_path_to_item': _path_to_item, - '_spec_property_naming': _spec_property_naming, - '_configuration': _configuration, - '_visited_composed_classes': self._visited_composed_classes, - } - composed_info = validate_get_composed_info( - constant_args, kwargs, self) - self._composed_instances = composed_info[0] - self._var_name_to_model_instances = composed_info[1] - self._additional_properties_model_instances = composed_info[2] - discarded_args = composed_info[3] - - for var_name, var_value in kwargs.items(): - if var_name in discarded_args and \ - self._configuration is not None and \ - self._configuration.discard_unknown_keys and \ - self._additional_properties_model_instances: - # discard variable. - continue - setattr(self, var_name, var_value) - if var_name in self.read_only_vars: - raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " - f"class with read only attributes.") - - @cached_property - def _composed_schemas(): - # we need this here to make our import statements work - # we must store _composed_schemas in here so the code is only run - # when we invoke this method. If we kept this at the class - # level we would get an error because the class level - # code would be run when this module is imported, and these composed - # classes don't exist yet because their module has not finished - # loading - lazy_import() - return { - 'anyOf': [ - ], - 'allOf': [ - LoggingCommon, - LoggingScalyrAllOf, - ], - 'oneOf': [ - ], - } diff --git a/fastly/model/logging_scalyr_all_of.py b/fastly/model/logging_scalyr_additional.py similarity index 98% rename from fastly/model/logging_scalyr_all_of.py rename to fastly/model/logging_scalyr_additional.py index c52e335..f62252c 100644 --- a/fastly/model/logging_scalyr_all_of.py +++ b/fastly/model/logging_scalyr_additional.py @@ -30,7 +30,7 @@ -class LoggingScalyrAllOf(ModelNormal): +class LoggingScalyrAdditional(ModelNormal): """NOTE: This class is auto generated. Do not edit the class manually. @@ -107,7 +107,7 @@ def discriminator(): @classmethod @convert_js_args_to_python_args def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 - """LoggingScalyrAllOf - a model defined in OpenAPI + """LoggingScalyrAdditional - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -191,7 +191,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 @convert_js_args_to_python_args def __init__(self, *args, **kwargs): # noqa: E501 - """LoggingScalyrAllOf - a model defined in OpenAPI + """LoggingScalyrAdditional - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types diff --git a/fastly/model/logging_scalyr_response.py b/fastly/model/logging_scalyr_response.py index 0b92b5d..64aef04 100644 --- a/fastly/model/logging_scalyr_response.py +++ b/fastly/model/logging_scalyr_response.py @@ -30,11 +30,13 @@ def lazy_import(): - from fastly.model.logging_scalyr import LoggingScalyr - from fastly.model.service_id_and_version import ServiceIdAndVersion + from fastly.model.logging_common_response import LoggingCommonResponse + from fastly.model.logging_scalyr_additional import LoggingScalyrAdditional + from fastly.model.service_id_and_version_string import ServiceIdAndVersionString from fastly.model.timestamps import Timestamps - globals()['LoggingScalyr'] = LoggingScalyr - globals()['ServiceIdAndVersion'] = ServiceIdAndVersion + globals()['LoggingCommonResponse'] = LoggingCommonResponse + globals()['LoggingScalyrAdditional'] = LoggingScalyrAdditional + globals()['ServiceIdAndVersionString'] = ServiceIdAndVersionString globals()['Timestamps'] = Timestamps @@ -68,8 +70,8 @@ class LoggingScalyrResponse(ModelComposed): 'NULL': "null", }, ('format_version',): { - 'v1': 1, - 'v2': 2, + 'v1': "1", + 'v2': "2", }, ('region',): { 'US': "US", @@ -105,9 +107,9 @@ def openapi_types(): return { 'name': (str,), # noqa: E501 'placement': (str, none_type,), # noqa: E501 - 'format_version': (int,), # noqa: E501 'response_condition': (str, none_type,), # noqa: E501 'format': (str,), # noqa: E501 + 'format_version': (str,), # noqa: E501 'region': (str,), # noqa: E501 'token': (str,), # noqa: E501 'project_id': (str,), # noqa: E501 @@ -115,7 +117,7 @@ def openapi_types(): 'deleted_at': (datetime, none_type,), # noqa: E501 'updated_at': (datetime, none_type,), # noqa: E501 'service_id': (str,), # noqa: E501 - 'version': (int,), # noqa: E501 + 'version': (str,), # noqa: E501 } @cached_property @@ -126,9 +128,9 @@ def discriminator(): attribute_map = { 'name': 'name', # noqa: E501 'placement': 'placement', # noqa: E501 - 'format_version': 'format_version', # noqa: E501 'response_condition': 'response_condition', # noqa: E501 'format': 'format', # noqa: E501 + 'format_version': 'format_version', # noqa: E501 'region': 'region', # noqa: E501 'token': 'token', # noqa: E501 'project_id': 'project_id', # noqa: E501 @@ -185,9 +187,9 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 _visited_composed_classes = (Animal,) name (str): The name for the real-time logging configuration.. [optional] # noqa: E501 placement (str, none_type): Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. . [optional] # noqa: E501 - 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] if omitted the server will use the default value of 2 # noqa: E501 response_condition (str, none_type): The name of an existing condition in the configured endpoint, or leave blank to always execute.. [optional] # noqa: E501 format (str): A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats).. [optional] if omitted the server will use the default value of "%h %l %u %t "%r" %>s %b" # noqa: E501 + format_version (str): The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. . [optional] if omitted the server will use the default value of "2" # noqa: E501 region (str): The region that log data will be sent to.. [optional] if omitted the server will use the default value of "US" # noqa: E501 token (str): The token to use for authentication ([https://www.scalyr.com/keys](https://www.scalyr.com/keys)).. [optional] # noqa: E501 project_id (str): The name of the logfile within Scalyr.. [optional] if omitted the server will use the default value of "logplex" # noqa: E501 @@ -195,7 +197,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 deleted_at (datetime, none_type): Date and time in ISO 8601 format.. [optional] # noqa: E501 updated_at (datetime, none_type): Date and time in ISO 8601 format.. [optional] # noqa: E501 service_id (str): [optional] # noqa: E501 - version (int): [optional] # noqa: E501 + version (str): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -297,9 +299,9 @@ def __init__(self, *args, **kwargs): # noqa: E501 _visited_composed_classes = (Animal,) name (str): The name for the real-time logging configuration.. [optional] # noqa: E501 placement (str, none_type): Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. . [optional] # noqa: E501 - 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] if omitted the server will use the default value of 2 # noqa: E501 response_condition (str, none_type): The name of an existing condition in the configured endpoint, or leave blank to always execute.. [optional] # noqa: E501 format (str): A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats).. [optional] if omitted the server will use the default value of "%h %l %u %t "%r" %>s %b" # noqa: E501 + format_version (str): The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. . [optional] if omitted the server will use the default value of "2" # noqa: E501 region (str): The region that log data will be sent to.. [optional] if omitted the server will use the default value of "US" # noqa: E501 token (str): The token to use for authentication ([https://www.scalyr.com/keys](https://www.scalyr.com/keys)).. [optional] # noqa: E501 project_id (str): The name of the logfile within Scalyr.. [optional] if omitted the server will use the default value of "logplex" # noqa: E501 @@ -307,7 +309,7 @@ def __init__(self, *args, **kwargs): # noqa: E501 deleted_at (datetime, none_type): Date and time in ISO 8601 format.. [optional] # noqa: E501 updated_at (datetime, none_type): Date and time in ISO 8601 format.. [optional] # noqa: E501 service_id (str): [optional] # noqa: E501 - version (int): [optional] # noqa: E501 + version (str): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -373,8 +375,9 @@ def _composed_schemas(): 'anyOf': [ ], 'allOf': [ - LoggingScalyr, - ServiceIdAndVersion, + LoggingCommonResponse, + LoggingScalyrAdditional, + ServiceIdAndVersionString, Timestamps, ], 'oneOf': [ diff --git a/fastly/model/logging_sftp.py b/fastly/model/logging_sftp.py deleted file mode 100644 index faead6d..0000000 --- a/fastly/model/logging_sftp.py +++ /dev/null @@ -1,408 +0,0 @@ -""" - Fastly API - - Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://developer.fastly.com/reference/api/) # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Contact: oss@fastly.com -""" - - -import re # noqa: F401 -import sys # noqa: F401 - -from fastly.model_utils import ( # noqa: F401 - ApiTypeError, - ModelComposed, - ModelNormal, - ModelSimple, - cached_property, - change_keys_js_to_python, - convert_js_args_to_python_args, - date, - datetime, - file_type, - none_type, - validate_get_composed_info, - OpenApiModel -) -from fastly.exceptions import ApiAttributeError - - -def lazy_import(): - from fastly.model.logging_address_and_port import LoggingAddressAndPort - from fastly.model.logging_common import LoggingCommon - from fastly.model.logging_generic_common import LoggingGenericCommon - from fastly.model.logging_sftp_all_of import LoggingSftpAllOf - globals()['LoggingAddressAndPort'] = LoggingAddressAndPort - globals()['LoggingCommon'] = LoggingCommon - globals()['LoggingGenericCommon'] = LoggingGenericCommon - globals()['LoggingSftpAllOf'] = LoggingSftpAllOf - - -class LoggingSftp(ModelComposed): - """NOTE: This class is auto generated. - Do not edit the class manually. - - Attributes: - allowed_values (dict): The key is the tuple path to the attribute - and the for var_name this is (var_name,). The value is a dict - with a capitalized key describing the allowed value and an allowed - value. These dicts store the allowed enum values. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - discriminator_value_class_map (dict): A dict to go from the discriminator - variable value to the discriminator class name. - validations (dict): The key is the tuple path to the attribute - and the for var_name this is (var_name,). The value is a dict - that stores validations for max_length, min_length, max_items, - min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, - inclusive_minimum, and regex. - additional_properties_type (tuple): A tuple of classes accepted - as additional properties values. - """ - - allowed_values = { - ('placement',): { - 'None': None, - 'NONE': "none", - 'WAF_DEBUG': "waf_debug", - 'NULL': "null", - }, - ('format_version',): { - 'v1': 1, - 'v2': 2, - }, - ('message_type',): { - 'CLASSIC': "classic", - 'LOGGLY': "loggly", - 'LOGPLEX': "logplex", - 'BLANK': "blank", - }, - ('compression_codec',): { - 'ZSTD': "zstd", - 'SNAPPY': "snappy", - 'GZIP': "gzip", - }, - } - - validations = { - } - - @cached_property - def additional_properties_type(): - """ - This must be a method because a model may have properties that are - of type self, this must run after the class is loaded - """ - lazy_import() - return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 - - _nullable = False - - @cached_property - def openapi_types(): - """ - This must be a method because a model may have properties that are - of type self, this must run after the class is loaded - - Returns - openapi_types (dict): The key is attribute name - and the value is attribute type. - """ - lazy_import() - return { - 'name': (str,), # noqa: E501 - 'placement': (str, none_type,), # noqa: E501 - 'format_version': (int,), # noqa: E501 - 'response_condition': (str, none_type,), # noqa: E501 - 'format': (str,), # noqa: E501 - 'message_type': (str,), # noqa: E501 - 'timestamp_format': (str, none_type,), # noqa: E501 - 'period': (int,), # noqa: E501 - 'gzip_level': (int,), # noqa: E501 - 'compression_codec': (str,), # noqa: E501 - 'address': (str,), # noqa: E501 - 'port': (int,), # noqa: E501 - 'password': (str,), # noqa: E501 - 'path': (str, none_type,), # noqa: E501 - 'public_key': (str, none_type,), # noqa: E501 - 'secret_key': (str, none_type,), # noqa: E501 - 'ssh_known_hosts': (str,), # noqa: E501 - 'user': (str,), # noqa: E501 - } - - @cached_property - def discriminator(): - return None - - - attribute_map = { - 'name': 'name', # noqa: E501 - 'placement': 'placement', # noqa: E501 - 'format_version': 'format_version', # noqa: E501 - 'response_condition': 'response_condition', # noqa: E501 - 'format': 'format', # noqa: E501 - 'message_type': 'message_type', # noqa: E501 - 'timestamp_format': 'timestamp_format', # noqa: E501 - 'period': 'period', # noqa: E501 - 'gzip_level': 'gzip_level', # noqa: E501 - 'compression_codec': 'compression_codec', # noqa: E501 - 'address': 'address', # noqa: E501 - 'port': 'port', # noqa: E501 - 'password': 'password', # noqa: E501 - 'path': 'path', # noqa: E501 - 'public_key': 'public_key', # noqa: E501 - 'secret_key': 'secret_key', # noqa: E501 - 'ssh_known_hosts': 'ssh_known_hosts', # noqa: E501 - 'user': 'user', # noqa: E501 - } - - read_only_vars = { - 'timestamp_format', # noqa: E501 - } - - @classmethod - @convert_js_args_to_python_args - def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 - """LoggingSftp - a model defined in OpenAPI - - Keyword Args: - _check_type (bool): if True, values for parameters in openapi_types - will be type checked and a TypeError will be - raised if the wrong type is input. - Defaults to True - _path_to_item (tuple/list): This is a list of keys or values to - drill down to the model in received_data - when deserializing a response - _spec_property_naming (bool): True if the variable names in the input data - are serialized names, as specified in the OpenAPI document. - False if the variable names in the input data - are pythonic names, e.g. snake case (default) - _configuration (Configuration): the instance to use when - deserializing a file_type parameter. - If passed, type conversion is attempted - If omitted no type conversion is done. - _visited_composed_classes (tuple): This stores a tuple of - classes that we have traveled through so that - if we see that class again we will not use its - discriminator again. - When traveling through a discriminator, the - composed schema that is - is traveled through is added to this set. - For example if Animal has a discriminator - petType and we pass in "Dog", and the class Dog - allOf includes Animal, we move through Animal - once using the discriminator, and pick Dog. - Then in Dog, we will make an instance of the - Animal class but this time we won't travel - through its discriminator because we passed in - _visited_composed_classes = (Animal,) - name (str): The name for the real-time logging configuration.. [optional] # noqa: E501 - placement (str, none_type): Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. . [optional] # noqa: E501 - 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] if omitted the server will use the default value of 2 # noqa: E501 - response_condition (str, none_type): The name of an existing condition in the configured endpoint, or leave blank to always execute.. [optional] # noqa: E501 - format (str): A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats).. [optional] if omitted the server will use the default value of "%h %l %u %t "%r" %>s %b" # noqa: E501 - message_type (str): How the message should be formatted.. [optional] if omitted the server will use the default value of "classic" # noqa: E501 - timestamp_format (str, none_type): A timestamp format. [optional] # noqa: E501 - period (int): How frequently log files are finalized so they can be available for reading (in seconds).. [optional] if omitted the server will use the default value of 3600 # noqa: E501 - 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] if omitted the server will use the default value of 0 # noqa: E501 - compression_codec (str): The codec used for compressing your logs. 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] # noqa: E501 - address (str): A hostname or IPv4 address.. [optional] # noqa: E501 - port (int): The port number.. [optional] if omitted the server will use the default value of 22 # noqa: E501 - password (str): The password for the server. If both `password` and `secret_key` are passed, `secret_key` will be used in preference.. [optional] # noqa: E501 - path (str, none_type): The path to upload logs to.. [optional] if omitted the server will use the default value of "null" # noqa: E501 - public_key (str, none_type): A PGP public key that Fastly will use to encrypt your log files before writing them to disk.. [optional] if omitted the server will use the default value of "null" # noqa: E501 - secret_key (str, none_type): The SSH private key for the server. If both `password` and `secret_key` are passed, `secret_key` will be used in preference.. [optional] if omitted the server will use the default value of "null" # noqa: E501 - ssh_known_hosts (str): A list of host keys for all hosts we can connect to over SFTP.. [optional] # noqa: E501 - user (str): The username for the server.. [optional] # noqa: E501 - """ - - _check_type = kwargs.pop('_check_type', True) - _spec_property_naming = kwargs.pop('_spec_property_naming', False) - _path_to_item = kwargs.pop('_path_to_item', ()) - _configuration = kwargs.pop('_configuration', None) - _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) - - self = super(OpenApiModel, cls).__new__(cls) - - if args: - raise ApiTypeError( - "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( - args, - self.__class__.__name__, - ), - path_to_item=_path_to_item, - valid_classes=(self.__class__,), - ) - - self._data_store = {} - self._check_type = _check_type - self._spec_property_naming = _spec_property_naming - self._path_to_item = _path_to_item - self._configuration = _configuration - self._visited_composed_classes = _visited_composed_classes + (self.__class__,) - - constant_args = { - '_check_type': _check_type, - '_path_to_item': _path_to_item, - '_spec_property_naming': _spec_property_naming, - '_configuration': _configuration, - '_visited_composed_classes': self._visited_composed_classes, - } - composed_info = validate_get_composed_info( - constant_args, kwargs, self) - self._composed_instances = composed_info[0] - self._var_name_to_model_instances = composed_info[1] - self._additional_properties_model_instances = composed_info[2] - discarded_args = composed_info[3] - - for var_name, var_value in kwargs.items(): - if var_name in discarded_args and \ - self._configuration is not None and \ - self._configuration.discard_unknown_keys and \ - self._additional_properties_model_instances: - # discard variable. - continue - setattr(self, var_name, var_value) - - return self - - required_properties = set([ - '_data_store', - '_check_type', - '_spec_property_naming', - '_path_to_item', - '_configuration', - '_visited_composed_classes', - '_composed_instances', - '_var_name_to_model_instances', - '_additional_properties_model_instances', - ]) - - @convert_js_args_to_python_args - def __init__(self, *args, **kwargs): # noqa: E501 - """LoggingSftp - a model defined in OpenAPI - - Keyword Args: - _check_type (bool): if True, values for parameters in openapi_types - will be type checked and a TypeError will be - raised if the wrong type is input. - Defaults to True - _path_to_item (tuple/list): This is a list of keys or values to - drill down to the model in received_data - when deserializing a response - _spec_property_naming (bool): True if the variable names in the input data - are serialized names, as specified in the OpenAPI document. - False if the variable names in the input data - are pythonic names, e.g. snake case (default) - _configuration (Configuration): the instance to use when - deserializing a file_type parameter. - If passed, type conversion is attempted - If omitted no type conversion is done. - _visited_composed_classes (tuple): This stores a tuple of - classes that we have traveled through so that - if we see that class again we will not use its - discriminator again. - When traveling through a discriminator, the - composed schema that is - is traveled through is added to this set. - For example if Animal has a discriminator - petType and we pass in "Dog", and the class Dog - allOf includes Animal, we move through Animal - once using the discriminator, and pick Dog. - Then in Dog, we will make an instance of the - Animal class but this time we won't travel - through its discriminator because we passed in - _visited_composed_classes = (Animal,) - name (str): The name for the real-time logging configuration.. [optional] # noqa: E501 - placement (str, none_type): Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. . [optional] # noqa: E501 - 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] if omitted the server will use the default value of 2 # noqa: E501 - response_condition (str, none_type): The name of an existing condition in the configured endpoint, or leave blank to always execute.. [optional] # noqa: E501 - format (str): A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats).. [optional] if omitted the server will use the default value of "%h %l %u %t "%r" %>s %b" # noqa: E501 - message_type (str): How the message should be formatted.. [optional] if omitted the server will use the default value of "classic" # noqa: E501 - timestamp_format (str, none_type): A timestamp format. [optional] # noqa: E501 - period (int): How frequently log files are finalized so they can be available for reading (in seconds).. [optional] if omitted the server will use the default value of 3600 # noqa: E501 - 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] if omitted the server will use the default value of 0 # noqa: E501 - compression_codec (str): The codec used for compressing your logs. 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] # noqa: E501 - address (str): A hostname or IPv4 address.. [optional] # noqa: E501 - port (int): The port number.. [optional] if omitted the server will use the default value of 22 # noqa: E501 - password (str): The password for the server. If both `password` and `secret_key` are passed, `secret_key` will be used in preference.. [optional] # noqa: E501 - path (str, none_type): The path to upload logs to.. [optional] if omitted the server will use the default value of "null" # noqa: E501 - public_key (str, none_type): A PGP public key that Fastly will use to encrypt your log files before writing them to disk.. [optional] if omitted the server will use the default value of "null" # noqa: E501 - secret_key (str, none_type): The SSH private key for the server. If both `password` and `secret_key` are passed, `secret_key` will be used in preference.. [optional] if omitted the server will use the default value of "null" # noqa: E501 - ssh_known_hosts (str): A list of host keys for all hosts we can connect to over SFTP.. [optional] # noqa: E501 - user (str): The username for the server.. [optional] # noqa: E501 - """ - - _check_type = kwargs.pop('_check_type', True) - _spec_property_naming = kwargs.pop('_spec_property_naming', False) - _path_to_item = kwargs.pop('_path_to_item', ()) - _configuration = kwargs.pop('_configuration', None) - _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) - - if args: - raise ApiTypeError( - "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( - args, - self.__class__.__name__, - ), - path_to_item=_path_to_item, - valid_classes=(self.__class__,), - ) - - self._data_store = {} - self._check_type = _check_type - self._spec_property_naming = _spec_property_naming - self._path_to_item = _path_to_item - self._configuration = _configuration - self._visited_composed_classes = _visited_composed_classes + (self.__class__,) - - constant_args = { - '_check_type': _check_type, - '_path_to_item': _path_to_item, - '_spec_property_naming': _spec_property_naming, - '_configuration': _configuration, - '_visited_composed_classes': self._visited_composed_classes, - } - composed_info = validate_get_composed_info( - constant_args, kwargs, self) - self._composed_instances = composed_info[0] - self._var_name_to_model_instances = composed_info[1] - self._additional_properties_model_instances = composed_info[2] - discarded_args = composed_info[3] - - for var_name, var_value in kwargs.items(): - if var_name in discarded_args and \ - self._configuration is not None and \ - self._configuration.discard_unknown_keys and \ - self._additional_properties_model_instances: - # discard variable. - continue - setattr(self, var_name, var_value) - if var_name in self.read_only_vars: - raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " - f"class with read only attributes.") - - @cached_property - def _composed_schemas(): - # we need this here to make our import statements work - # we must store _composed_schemas in here so the code is only run - # when we invoke this method. If we kept this at the class - # level we would get an error because the class level - # code would be run when this module is imported, and these composed - # classes don't exist yet because their module has not finished - # loading - lazy_import() - return { - 'anyOf': [ - ], - 'allOf': [ - LoggingAddressAndPort, - LoggingCommon, - LoggingGenericCommon, - LoggingSftpAllOf, - ], - 'oneOf': [ - ], - } diff --git a/fastly/model/logging_sftp_all_of.py b/fastly/model/logging_sftp_additional.py similarity index 96% rename from fastly/model/logging_sftp_all_of.py rename to fastly/model/logging_sftp_additional.py index 32de30a..3b255de 100644 --- a/fastly/model/logging_sftp_all_of.py +++ b/fastly/model/logging_sftp_additional.py @@ -30,7 +30,7 @@ -class LoggingSftpAllOf(ModelNormal): +class LoggingSftpAdditional(ModelNormal): """NOTE: This class is auto generated. Do not edit the class manually. @@ -81,7 +81,6 @@ def openapi_types(): return { 'password': (str,), # noqa: E501 'path': (str, none_type,), # noqa: E501 - 'port': (int,), # noqa: E501 'public_key': (str, none_type,), # noqa: E501 'secret_key': (str, none_type,), # noqa: E501 'ssh_known_hosts': (str,), # noqa: E501 @@ -96,7 +95,6 @@ def discriminator(): attribute_map = { 'password': 'password', # noqa: E501 'path': 'path', # noqa: E501 - 'port': 'port', # noqa: E501 'public_key': 'public_key', # noqa: E501 'secret_key': 'secret_key', # noqa: E501 'ssh_known_hosts': 'ssh_known_hosts', # noqa: E501 @@ -111,7 +109,7 @@ def discriminator(): @classmethod @convert_js_args_to_python_args def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 - """LoggingSftpAllOf - a model defined in OpenAPI + """LoggingSftpAdditional - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -146,7 +144,6 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 _visited_composed_classes = (Animal,) password (str): The password for the server. If both `password` and `secret_key` are passed, `secret_key` will be used in preference.. [optional] # noqa: E501 path (str, none_type): The path to upload logs to.. [optional] if omitted the server will use the default value of "null" # noqa: E501 - port (int): The port number.. [optional] if omitted the server will use the default value of 22 # noqa: E501 public_key (str, none_type): A PGP public key that Fastly will use to encrypt your log files before writing them to disk.. [optional] if omitted the server will use the default value of "null" # noqa: E501 secret_key (str, none_type): The SSH private key for the server. If both `password` and `secret_key` are passed, `secret_key` will be used in preference.. [optional] if omitted the server will use the default value of "null" # noqa: E501 ssh_known_hosts (str): A list of host keys for all hosts we can connect to over SFTP.. [optional] # noqa: E501 @@ -199,7 +196,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 @convert_js_args_to_python_args def __init__(self, *args, **kwargs): # noqa: E501 - """LoggingSftpAllOf - a model defined in OpenAPI + """LoggingSftpAdditional - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -234,7 +231,6 @@ def __init__(self, *args, **kwargs): # noqa: E501 _visited_composed_classes = (Animal,) password (str): The password for the server. If both `password` and `secret_key` are passed, `secret_key` will be used in preference.. [optional] # noqa: E501 path (str, none_type): The path to upload logs to.. [optional] if omitted the server will use the default value of "null" # noqa: E501 - port (int): The port number.. [optional] if omitted the server will use the default value of 22 # noqa: E501 public_key (str, none_type): A PGP public key that Fastly will use to encrypt your log files before writing them to disk.. [optional] if omitted the server will use the default value of "null" # noqa: E501 secret_key (str, none_type): The SSH private key for the server. If both `password` and `secret_key` are passed, `secret_key` will be used in preference.. [optional] if omitted the server will use the default value of "null" # noqa: E501 ssh_known_hosts (str): A list of host keys for all hosts we can connect to over SFTP.. [optional] # noqa: E501 diff --git a/fastly/model/logging_sftp_response.py b/fastly/model/logging_sftp_response.py index 810995a..d0c4895 100644 --- a/fastly/model/logging_sftp_response.py +++ b/fastly/model/logging_sftp_response.py @@ -30,11 +30,17 @@ def lazy_import(): - from fastly.model.logging_sftp import LoggingSftp - from fastly.model.service_id_and_version import ServiceIdAndVersion + from fastly.model.logging_common_response import LoggingCommonResponse + from fastly.model.logging_generic_common import LoggingGenericCommon + from fastly.model.logging_sftp_additional import LoggingSftpAdditional + from fastly.model.logging_sftp_response_all_of import LoggingSftpResponseAllOf + from fastly.model.service_id_and_version_string import ServiceIdAndVersionString from fastly.model.timestamps import Timestamps - globals()['LoggingSftp'] = LoggingSftp - globals()['ServiceIdAndVersion'] = ServiceIdAndVersion + globals()['LoggingCommonResponse'] = LoggingCommonResponse + globals()['LoggingGenericCommon'] = LoggingGenericCommon + globals()['LoggingSftpAdditional'] = LoggingSftpAdditional + globals()['LoggingSftpResponseAllOf'] = LoggingSftpResponseAllOf + globals()['ServiceIdAndVersionString'] = ServiceIdAndVersionString globals()['Timestamps'] = Timestamps @@ -68,8 +74,8 @@ class LoggingSftpResponse(ModelComposed): 'NULL': "null", }, ('format_version',): { - 'v1': 1, - 'v2': 2, + 'v1': "1", + 'v2': "2", }, ('message_type',): { 'CLASSIC': "classic", @@ -112,27 +118,27 @@ def openapi_types(): return { 'name': (str,), # noqa: E501 'placement': (str, none_type,), # noqa: E501 - 'format_version': (int,), # noqa: E501 'response_condition': (str, none_type,), # noqa: E501 'format': (str,), # noqa: E501 + 'format_version': (str,), # noqa: E501 'message_type': (str,), # noqa: E501 'timestamp_format': (str, none_type,), # noqa: E501 - 'period': (int,), # noqa: E501 - 'gzip_level': (int,), # noqa: E501 'compression_codec': (str,), # noqa: E501 - 'address': (str,), # noqa: E501 - 'port': (int,), # noqa: E501 + 'created_at': (datetime, none_type,), # noqa: E501 + 'deleted_at': (datetime, none_type,), # noqa: E501 + 'updated_at': (datetime, none_type,), # noqa: E501 + 'service_id': (str,), # noqa: E501 + 'version': (str,), # noqa: E501 'password': (str,), # noqa: E501 'path': (str, none_type,), # noqa: E501 'public_key': (str, none_type,), # noqa: E501 'secret_key': (str, none_type,), # noqa: E501 'ssh_known_hosts': (str,), # noqa: E501 'user': (str,), # noqa: E501 - 'created_at': (datetime, none_type,), # noqa: E501 - 'deleted_at': (datetime, none_type,), # noqa: E501 - 'updated_at': (datetime, none_type,), # noqa: E501 - 'service_id': (str,), # noqa: E501 - 'version': (int,), # noqa: E501 + 'address': (str,), # noqa: E501 + 'port': (str,), # noqa: E501 + 'period': (str,), # noqa: E501 + 'gzip_level': (int,), # noqa: E501 } @cached_property @@ -143,27 +149,27 @@ def discriminator(): attribute_map = { 'name': 'name', # noqa: E501 'placement': 'placement', # noqa: E501 - 'format_version': 'format_version', # noqa: E501 'response_condition': 'response_condition', # noqa: E501 'format': 'format', # noqa: E501 + 'format_version': 'format_version', # noqa: E501 'message_type': 'message_type', # noqa: E501 'timestamp_format': 'timestamp_format', # noqa: E501 - 'period': 'period', # noqa: E501 - 'gzip_level': 'gzip_level', # noqa: E501 'compression_codec': 'compression_codec', # noqa: E501 - 'address': 'address', # noqa: E501 - 'port': 'port', # noqa: E501 + 'created_at': 'created_at', # noqa: E501 + 'deleted_at': 'deleted_at', # noqa: E501 + 'updated_at': 'updated_at', # noqa: E501 + 'service_id': 'service_id', # noqa: E501 + 'version': 'version', # noqa: E501 'password': 'password', # noqa: E501 'path': 'path', # noqa: E501 'public_key': 'public_key', # noqa: E501 'secret_key': 'secret_key', # noqa: E501 'ssh_known_hosts': 'ssh_known_hosts', # noqa: E501 'user': 'user', # noqa: E501 - 'created_at': 'created_at', # noqa: E501 - 'deleted_at': 'deleted_at', # noqa: E501 - 'updated_at': 'updated_at', # noqa: E501 - 'service_id': 'service_id', # noqa: E501 - 'version': 'version', # noqa: E501 + 'address': 'address', # noqa: E501 + 'port': 'port', # noqa: E501 + 'period': 'period', # noqa: E501 + 'gzip_level': 'gzip_level', # noqa: E501 } read_only_vars = { @@ -213,27 +219,27 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 _visited_composed_classes = (Animal,) name (str): The name for the real-time logging configuration.. [optional] # noqa: E501 placement (str, none_type): Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. . [optional] # noqa: E501 - 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] if omitted the server will use the default value of 2 # noqa: E501 response_condition (str, none_type): The name of an existing condition in the configured endpoint, or leave blank to always execute.. [optional] # noqa: E501 format (str): A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats).. [optional] if omitted the server will use the default value of "%h %l %u %t "%r" %>s %b" # noqa: E501 + format_version (str): The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. . [optional] if omitted the server will use the default value of "2" # noqa: E501 message_type (str): How the message should be formatted.. [optional] if omitted the server will use the default value of "classic" # noqa: E501 timestamp_format (str, none_type): A timestamp format. [optional] # noqa: E501 - period (int): How frequently log files are finalized so they can be available for reading (in seconds).. [optional] if omitted the server will use the default value of 3600 # noqa: E501 - 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] if omitted the server will use the default value of 0 # noqa: E501 compression_codec (str): The codec used for compressing your logs. 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] # noqa: E501 - address (str): A hostname or IPv4 address.. [optional] # noqa: E501 - port (int): The port number.. [optional] if omitted the server will use the default value of 22 # noqa: E501 + created_at (datetime, none_type): Date and time in ISO 8601 format.. [optional] # noqa: E501 + deleted_at (datetime, none_type): Date and time in ISO 8601 format.. [optional] # noqa: E501 + updated_at (datetime, none_type): Date and time in ISO 8601 format.. [optional] # noqa: E501 + service_id (str): [optional] # noqa: E501 + version (str): [optional] # noqa: E501 password (str): The password for the server. If both `password` and `secret_key` are passed, `secret_key` will be used in preference.. [optional] # noqa: E501 path (str, none_type): The path to upload logs to.. [optional] if omitted the server will use the default value of "null" # noqa: E501 public_key (str, none_type): A PGP public key that Fastly will use to encrypt your log files before writing them to disk.. [optional] if omitted the server will use the default value of "null" # noqa: E501 secret_key (str, none_type): The SSH private key for the server. If both `password` and `secret_key` are passed, `secret_key` will be used in preference.. [optional] if omitted the server will use the default value of "null" # noqa: E501 ssh_known_hosts (str): A list of host keys for all hosts we can connect to over SFTP.. [optional] # noqa: E501 user (str): The username for the server.. [optional] # noqa: E501 - created_at (datetime, none_type): Date and time in ISO 8601 format.. [optional] # noqa: E501 - deleted_at (datetime, none_type): Date and time in ISO 8601 format.. [optional] # noqa: E501 - updated_at (datetime, none_type): Date and time in ISO 8601 format.. [optional] # noqa: E501 - service_id (str): [optional] # noqa: E501 - version (int): [optional] # noqa: E501 + address (str): A hostname or IPv4 address.. [optional] # noqa: E501 + port (str): The port number.. [optional] if omitted the server will use the default value of "22" # noqa: E501 + period (str): How frequently log files are finalized so they can be available for reading (in seconds).. [optional] if omitted the server will use the default value of "3600" # noqa: E501 + 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] if omitted the server will use the default value of 0 # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -335,27 +341,27 @@ def __init__(self, *args, **kwargs): # noqa: E501 _visited_composed_classes = (Animal,) name (str): The name for the real-time logging configuration.. [optional] # noqa: E501 placement (str, none_type): Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. . [optional] # noqa: E501 - 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] if omitted the server will use the default value of 2 # noqa: E501 response_condition (str, none_type): The name of an existing condition in the configured endpoint, or leave blank to always execute.. [optional] # noqa: E501 format (str): A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats).. [optional] if omitted the server will use the default value of "%h %l %u %t "%r" %>s %b" # noqa: E501 + format_version (str): The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. . [optional] if omitted the server will use the default value of "2" # noqa: E501 message_type (str): How the message should be formatted.. [optional] if omitted the server will use the default value of "classic" # noqa: E501 timestamp_format (str, none_type): A timestamp format. [optional] # noqa: E501 - period (int): How frequently log files are finalized so they can be available for reading (in seconds).. [optional] if omitted the server will use the default value of 3600 # noqa: E501 - 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] if omitted the server will use the default value of 0 # noqa: E501 compression_codec (str): The codec used for compressing your logs. 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] # noqa: E501 - address (str): A hostname or IPv4 address.. [optional] # noqa: E501 - port (int): The port number.. [optional] if omitted the server will use the default value of 22 # noqa: E501 + created_at (datetime, none_type): Date and time in ISO 8601 format.. [optional] # noqa: E501 + deleted_at (datetime, none_type): Date and time in ISO 8601 format.. [optional] # noqa: E501 + updated_at (datetime, none_type): Date and time in ISO 8601 format.. [optional] # noqa: E501 + service_id (str): [optional] # noqa: E501 + version (str): [optional] # noqa: E501 password (str): The password for the server. If both `password` and `secret_key` are passed, `secret_key` will be used in preference.. [optional] # noqa: E501 path (str, none_type): The path to upload logs to.. [optional] if omitted the server will use the default value of "null" # noqa: E501 public_key (str, none_type): A PGP public key that Fastly will use to encrypt your log files before writing them to disk.. [optional] if omitted the server will use the default value of "null" # noqa: E501 secret_key (str, none_type): The SSH private key for the server. If both `password` and `secret_key` are passed, `secret_key` will be used in preference.. [optional] if omitted the server will use the default value of "null" # noqa: E501 ssh_known_hosts (str): A list of host keys for all hosts we can connect to over SFTP.. [optional] # noqa: E501 user (str): The username for the server.. [optional] # noqa: E501 - created_at (datetime, none_type): Date and time in ISO 8601 format.. [optional] # noqa: E501 - deleted_at (datetime, none_type): Date and time in ISO 8601 format.. [optional] # noqa: E501 - updated_at (datetime, none_type): Date and time in ISO 8601 format.. [optional] # noqa: E501 - service_id (str): [optional] # noqa: E501 - version (int): [optional] # noqa: E501 + address (str): A hostname or IPv4 address.. [optional] # noqa: E501 + port (str): The port number.. [optional] if omitted the server will use the default value of "22" # noqa: E501 + period (str): How frequently log files are finalized so they can be available for reading (in seconds).. [optional] if omitted the server will use the default value of "3600" # noqa: E501 + 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] if omitted the server will use the default value of 0 # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -421,8 +427,11 @@ def _composed_schemas(): 'anyOf': [ ], 'allOf': [ - LoggingSftp, - ServiceIdAndVersion, + LoggingCommonResponse, + LoggingGenericCommon, + LoggingSftpAdditional, + LoggingSftpResponseAllOf, + ServiceIdAndVersionString, Timestamps, ], 'oneOf': [ diff --git a/fastly/model/logging_sftp_response_all_of.py b/fastly/model/logging_sftp_response_all_of.py new file mode 100644 index 0000000..cc69e68 --- /dev/null +++ b/fastly/model/logging_sftp_response_all_of.py @@ -0,0 +1,265 @@ +""" + Fastly API + + Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://developer.fastly.com/reference/api/) # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Contact: oss@fastly.com +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from fastly.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from fastly.exceptions import ApiAttributeError + + + +class LoggingSftpResponseAllOf(ModelNormal): + """NOTE: This class is auto generated. + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + return { + 'address': (str,), # noqa: E501 + 'port': (str,), # noqa: E501 + 'period': (str,), # noqa: E501 + 'gzip_level': (int,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'address': 'address', # noqa: E501 + 'port': 'port', # noqa: E501 + 'period': 'period', # noqa: E501 + 'gzip_level': 'gzip_level', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """LoggingSftpResponseAllOf - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + address (str): A hostname or IPv4 address.. [optional] # noqa: E501 + port (str): The port number.. [optional] if omitted the server will use the default value of "22" # noqa: E501 + period (str): How frequently log files are finalized so they can be available for reading (in seconds).. [optional] if omitted the server will use the default value of "3600" # noqa: E501 + 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] if omitted the server will use the default value of 0 # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """LoggingSftpResponseAllOf - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + address (str): A hostname or IPv4 address.. [optional] # noqa: E501 + port (str): The port number.. [optional] if omitted the server will use the default value of "22" # noqa: E501 + period (str): How frequently log files are finalized so they can be available for reading (in seconds).. [optional] if omitted the server will use the default value of "3600" # noqa: E501 + 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] if omitted the server will use the default value of 0 # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/fastly/model/logging_splunk.py b/fastly/model/logging_splunk.py deleted file mode 100644 index de5ace7..0000000 --- a/fastly/model/logging_splunk.py +++ /dev/null @@ -1,382 +0,0 @@ -""" - Fastly API - - Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://developer.fastly.com/reference/api/) # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Contact: oss@fastly.com -""" - - -import re # noqa: F401 -import sys # noqa: F401 - -from fastly.model_utils import ( # noqa: F401 - ApiTypeError, - ModelComposed, - ModelNormal, - ModelSimple, - cached_property, - change_keys_js_to_python, - convert_js_args_to_python_args, - date, - datetime, - file_type, - none_type, - validate_get_composed_info, - OpenApiModel -) -from fastly.exceptions import ApiAttributeError - - -def lazy_import(): - from fastly.model.logging_common import LoggingCommon - from fastly.model.logging_request_caps_common import LoggingRequestCapsCommon - from fastly.model.logging_splunk_all_of import LoggingSplunkAllOf - from fastly.model.logging_tls_common import LoggingTlsCommon - from fastly.model.logging_use_tls import LoggingUseTls - globals()['LoggingCommon'] = LoggingCommon - globals()['LoggingRequestCapsCommon'] = LoggingRequestCapsCommon - globals()['LoggingSplunkAllOf'] = LoggingSplunkAllOf - globals()['LoggingTlsCommon'] = LoggingTlsCommon - globals()['LoggingUseTls'] = LoggingUseTls - - -class LoggingSplunk(ModelComposed): - """NOTE: This class is auto generated. - Do not edit the class manually. - - Attributes: - allowed_values (dict): The key is the tuple path to the attribute - and the for var_name this is (var_name,). The value is a dict - with a capitalized key describing the allowed value and an allowed - value. These dicts store the allowed enum values. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - discriminator_value_class_map (dict): A dict to go from the discriminator - variable value to the discriminator class name. - validations (dict): The key is the tuple path to the attribute - and the for var_name this is (var_name,). The value is a dict - that stores validations for max_length, min_length, max_items, - min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, - inclusive_minimum, and regex. - additional_properties_type (tuple): A tuple of classes accepted - as additional properties values. - """ - - allowed_values = { - ('placement',): { - 'None': None, - 'NONE': "none", - 'WAF_DEBUG': "waf_debug", - 'NULL': "null", - }, - ('format_version',): { - 'v1': 1, - 'v2': 2, - }, - } - - validations = { - } - - @cached_property - def additional_properties_type(): - """ - This must be a method because a model may have properties that are - of type self, this must run after the class is loaded - """ - lazy_import() - return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 - - _nullable = False - - @cached_property - def openapi_types(): - """ - This must be a method because a model may have properties that are - of type self, this must run after the class is loaded - - Returns - openapi_types (dict): The key is attribute name - and the value is attribute type. - """ - lazy_import() - return { - 'name': (str,), # noqa: E501 - 'placement': (str, none_type,), # noqa: E501 - 'format_version': (int,), # noqa: E501 - 'response_condition': (str, none_type,), # noqa: E501 - 'format': (str,), # noqa: E501 - 'tls_ca_cert': (str, none_type,), # noqa: E501 - 'tls_client_cert': (str, none_type,), # noqa: E501 - 'tls_client_key': (str, none_type,), # noqa: E501 - 'tls_hostname': (str, none_type,), # noqa: E501 - 'request_max_entries': (int,), # noqa: E501 - 'request_max_bytes': (int,), # noqa: E501 - 'url': (str,), # noqa: E501 - 'token': (str,), # noqa: E501 - 'use_tls': (LoggingUseTls,), # noqa: E501 - } - - @cached_property - def discriminator(): - return None - - - attribute_map = { - 'name': 'name', # noqa: E501 - 'placement': 'placement', # noqa: E501 - 'format_version': 'format_version', # noqa: E501 - 'response_condition': 'response_condition', # noqa: E501 - 'format': 'format', # noqa: E501 - 'tls_ca_cert': 'tls_ca_cert', # noqa: E501 - 'tls_client_cert': 'tls_client_cert', # noqa: E501 - 'tls_client_key': 'tls_client_key', # noqa: E501 - 'tls_hostname': 'tls_hostname', # noqa: E501 - 'request_max_entries': 'request_max_entries', # noqa: E501 - 'request_max_bytes': 'request_max_bytes', # noqa: E501 - 'url': 'url', # noqa: E501 - 'token': 'token', # noqa: E501 - 'use_tls': 'use_tls', # noqa: E501 - } - - read_only_vars = { - } - - @classmethod - @convert_js_args_to_python_args - def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 - """LoggingSplunk - a model defined in OpenAPI - - Keyword Args: - _check_type (bool): if True, values for parameters in openapi_types - will be type checked and a TypeError will be - raised if the wrong type is input. - Defaults to True - _path_to_item (tuple/list): This is a list of keys or values to - drill down to the model in received_data - when deserializing a response - _spec_property_naming (bool): True if the variable names in the input data - are serialized names, as specified in the OpenAPI document. - False if the variable names in the input data - are pythonic names, e.g. snake case (default) - _configuration (Configuration): the instance to use when - deserializing a file_type parameter. - If passed, type conversion is attempted - If omitted no type conversion is done. - _visited_composed_classes (tuple): This stores a tuple of - classes that we have traveled through so that - if we see that class again we will not use its - discriminator again. - When traveling through a discriminator, the - composed schema that is - is traveled through is added to this set. - For example if Animal has a discriminator - petType and we pass in "Dog", and the class Dog - allOf includes Animal, we move through Animal - once using the discriminator, and pick Dog. - Then in Dog, we will make an instance of the - Animal class but this time we won't travel - through its discriminator because we passed in - _visited_composed_classes = (Animal,) - name (str): The name for the real-time logging configuration.. [optional] # noqa: E501 - placement (str, none_type): Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. . [optional] # noqa: E501 - 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] if omitted the server will use the default value of 2 # noqa: E501 - response_condition (str, none_type): The name of an existing condition in the configured endpoint, or leave blank to always execute.. [optional] # noqa: E501 - format (str): A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats).. [optional] if omitted the server will use the default value of "%h %l %u %t "%r" %>s %b" # noqa: E501 - tls_ca_cert (str, none_type): A secure certificate to authenticate a server with. Must be in PEM format.. [optional] if omitted the server will use the default value of "null" # noqa: E501 - tls_client_cert (str, none_type): The client certificate used to make authenticated requests. Must be in PEM format.. [optional] if omitted the server will use the default value of "null" # noqa: E501 - tls_client_key (str, none_type): The client private key used to make authenticated requests. Must be in PEM format.. [optional] if omitted the server will use the default value of "null" # noqa: E501 - tls_hostname (str, none_type): 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] if omitted the server will use the default value of "null" # noqa: E501 - request_max_entries (int): The maximum number of logs sent in one request. Defaults `0` for unbounded.. [optional] if omitted the server will use the default value of 0 # noqa: E501 - request_max_bytes (int): The maximum number of bytes sent in one request. Defaults `0` for unbounded.. [optional] if omitted the server will use the default value of 0 # noqa: E501 - url (str): The URL to post logs to.. [optional] # noqa: E501 - token (str): A Splunk token for use in posting logs over HTTP to your collector.. [optional] # noqa: E501 - use_tls (LoggingUseTls): [optional] # noqa: E501 - """ - - _check_type = kwargs.pop('_check_type', True) - _spec_property_naming = kwargs.pop('_spec_property_naming', False) - _path_to_item = kwargs.pop('_path_to_item', ()) - _configuration = kwargs.pop('_configuration', None) - _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) - - self = super(OpenApiModel, cls).__new__(cls) - - if args: - raise ApiTypeError( - "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( - args, - self.__class__.__name__, - ), - path_to_item=_path_to_item, - valid_classes=(self.__class__,), - ) - - self._data_store = {} - self._check_type = _check_type - self._spec_property_naming = _spec_property_naming - self._path_to_item = _path_to_item - self._configuration = _configuration - self._visited_composed_classes = _visited_composed_classes + (self.__class__,) - - constant_args = { - '_check_type': _check_type, - '_path_to_item': _path_to_item, - '_spec_property_naming': _spec_property_naming, - '_configuration': _configuration, - '_visited_composed_classes': self._visited_composed_classes, - } - composed_info = validate_get_composed_info( - constant_args, kwargs, self) - self._composed_instances = composed_info[0] - self._var_name_to_model_instances = composed_info[1] - self._additional_properties_model_instances = composed_info[2] - discarded_args = composed_info[3] - - for var_name, var_value in kwargs.items(): - if var_name in discarded_args and \ - self._configuration is not None and \ - self._configuration.discard_unknown_keys and \ - self._additional_properties_model_instances: - # discard variable. - continue - setattr(self, var_name, var_value) - - return self - - required_properties = set([ - '_data_store', - '_check_type', - '_spec_property_naming', - '_path_to_item', - '_configuration', - '_visited_composed_classes', - '_composed_instances', - '_var_name_to_model_instances', - '_additional_properties_model_instances', - ]) - - @convert_js_args_to_python_args - def __init__(self, *args, **kwargs): # noqa: E501 - """LoggingSplunk - a model defined in OpenAPI - - Keyword Args: - _check_type (bool): if True, values for parameters in openapi_types - will be type checked and a TypeError will be - raised if the wrong type is input. - Defaults to True - _path_to_item (tuple/list): This is a list of keys or values to - drill down to the model in received_data - when deserializing a response - _spec_property_naming (bool): True if the variable names in the input data - are serialized names, as specified in the OpenAPI document. - False if the variable names in the input data - are pythonic names, e.g. snake case (default) - _configuration (Configuration): the instance to use when - deserializing a file_type parameter. - If passed, type conversion is attempted - If omitted no type conversion is done. - _visited_composed_classes (tuple): This stores a tuple of - classes that we have traveled through so that - if we see that class again we will not use its - discriminator again. - When traveling through a discriminator, the - composed schema that is - is traveled through is added to this set. - For example if Animal has a discriminator - petType and we pass in "Dog", and the class Dog - allOf includes Animal, we move through Animal - once using the discriminator, and pick Dog. - Then in Dog, we will make an instance of the - Animal class but this time we won't travel - through its discriminator because we passed in - _visited_composed_classes = (Animal,) - name (str): The name for the real-time logging configuration.. [optional] # noqa: E501 - placement (str, none_type): Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. . [optional] # noqa: E501 - 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] if omitted the server will use the default value of 2 # noqa: E501 - response_condition (str, none_type): The name of an existing condition in the configured endpoint, or leave blank to always execute.. [optional] # noqa: E501 - format (str): A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats).. [optional] if omitted the server will use the default value of "%h %l %u %t "%r" %>s %b" # noqa: E501 - tls_ca_cert (str, none_type): A secure certificate to authenticate a server with. Must be in PEM format.. [optional] if omitted the server will use the default value of "null" # noqa: E501 - tls_client_cert (str, none_type): The client certificate used to make authenticated requests. Must be in PEM format.. [optional] if omitted the server will use the default value of "null" # noqa: E501 - tls_client_key (str, none_type): The client private key used to make authenticated requests. Must be in PEM format.. [optional] if omitted the server will use the default value of "null" # noqa: E501 - tls_hostname (str, none_type): 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] if omitted the server will use the default value of "null" # noqa: E501 - request_max_entries (int): The maximum number of logs sent in one request. Defaults `0` for unbounded.. [optional] if omitted the server will use the default value of 0 # noqa: E501 - request_max_bytes (int): The maximum number of bytes sent in one request. Defaults `0` for unbounded.. [optional] if omitted the server will use the default value of 0 # noqa: E501 - url (str): The URL to post logs to.. [optional] # noqa: E501 - token (str): A Splunk token for use in posting logs over HTTP to your collector.. [optional] # noqa: E501 - use_tls (LoggingUseTls): [optional] # noqa: E501 - """ - - _check_type = kwargs.pop('_check_type', True) - _spec_property_naming = kwargs.pop('_spec_property_naming', False) - _path_to_item = kwargs.pop('_path_to_item', ()) - _configuration = kwargs.pop('_configuration', None) - _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) - - if args: - raise ApiTypeError( - "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( - args, - self.__class__.__name__, - ), - path_to_item=_path_to_item, - valid_classes=(self.__class__,), - ) - - self._data_store = {} - self._check_type = _check_type - self._spec_property_naming = _spec_property_naming - self._path_to_item = _path_to_item - self._configuration = _configuration - self._visited_composed_classes = _visited_composed_classes + (self.__class__,) - - constant_args = { - '_check_type': _check_type, - '_path_to_item': _path_to_item, - '_spec_property_naming': _spec_property_naming, - '_configuration': _configuration, - '_visited_composed_classes': self._visited_composed_classes, - } - composed_info = validate_get_composed_info( - constant_args, kwargs, self) - self._composed_instances = composed_info[0] - self._var_name_to_model_instances = composed_info[1] - self._additional_properties_model_instances = composed_info[2] - discarded_args = composed_info[3] - - for var_name, var_value in kwargs.items(): - if var_name in discarded_args and \ - self._configuration is not None and \ - self._configuration.discard_unknown_keys and \ - self._additional_properties_model_instances: - # discard variable. - continue - setattr(self, var_name, var_value) - if var_name in self.read_only_vars: - raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " - f"class with read only attributes.") - - @cached_property - def _composed_schemas(): - # we need this here to make our import statements work - # we must store _composed_schemas in here so the code is only run - # when we invoke this method. If we kept this at the class - # level we would get an error because the class level - # code would be run when this module is imported, and these composed - # classes don't exist yet because their module has not finished - # loading - lazy_import() - return { - 'anyOf': [ - ], - 'allOf': [ - LoggingCommon, - LoggingRequestCapsCommon, - LoggingSplunkAllOf, - LoggingTlsCommon, - ], - 'oneOf': [ - ], - } diff --git a/fastly/model/logging_splunk_all_of.py b/fastly/model/logging_splunk_additional.py similarity index 98% rename from fastly/model/logging_splunk_all_of.py rename to fastly/model/logging_splunk_additional.py index 4731b89..4cda8b5 100644 --- a/fastly/model/logging_splunk_all_of.py +++ b/fastly/model/logging_splunk_additional.py @@ -34,7 +34,7 @@ def lazy_import(): globals()['LoggingUseTls'] = LoggingUseTls -class LoggingSplunkAllOf(ModelNormal): +class LoggingSplunkAdditional(ModelNormal): """NOTE: This class is auto generated. Do not edit the class manually. @@ -109,7 +109,7 @@ def discriminator(): @classmethod @convert_js_args_to_python_args def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 - """LoggingSplunkAllOf - a model defined in OpenAPI + """LoggingSplunkAdditional - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -193,7 +193,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 @convert_js_args_to_python_args def __init__(self, *args, **kwargs): # noqa: E501 - """LoggingSplunkAllOf - a model defined in OpenAPI + """LoggingSplunkAdditional - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types diff --git a/fastly/model/logging_splunk_response.py b/fastly/model/logging_splunk_response.py index cfe0bc6..78086d7 100644 --- a/fastly/model/logging_splunk_response.py +++ b/fastly/model/logging_splunk_response.py @@ -30,13 +30,19 @@ def lazy_import(): - from fastly.model.logging_splunk import LoggingSplunk + from fastly.model.logging_common_response import LoggingCommonResponse + from fastly.model.logging_request_caps_common import LoggingRequestCapsCommon + from fastly.model.logging_splunk_additional import LoggingSplunkAdditional + from fastly.model.logging_tls_common import LoggingTlsCommon from fastly.model.logging_use_tls import LoggingUseTls - from fastly.model.service_id_and_version import ServiceIdAndVersion + from fastly.model.service_id_and_version_string import ServiceIdAndVersionString from fastly.model.timestamps import Timestamps - globals()['LoggingSplunk'] = LoggingSplunk + globals()['LoggingCommonResponse'] = LoggingCommonResponse + globals()['LoggingRequestCapsCommon'] = LoggingRequestCapsCommon + globals()['LoggingSplunkAdditional'] = LoggingSplunkAdditional + globals()['LoggingTlsCommon'] = LoggingTlsCommon globals()['LoggingUseTls'] = LoggingUseTls - globals()['ServiceIdAndVersion'] = ServiceIdAndVersion + globals()['ServiceIdAndVersionString'] = ServiceIdAndVersionString globals()['Timestamps'] = Timestamps @@ -70,8 +76,8 @@ class LoggingSplunkResponse(ModelComposed): 'NULL': "null", }, ('format_version',): { - 'v1': 1, - 'v2': 2, + 'v1': "1", + 'v2': "2", }, } @@ -103,9 +109,9 @@ def openapi_types(): return { 'name': (str,), # noqa: E501 'placement': (str, none_type,), # noqa: E501 - 'format_version': (int,), # noqa: E501 'response_condition': (str, none_type,), # noqa: E501 'format': (str,), # noqa: E501 + 'format_version': (str,), # noqa: E501 'tls_ca_cert': (str, none_type,), # noqa: E501 'tls_client_cert': (str, none_type,), # noqa: E501 'tls_client_key': (str, none_type,), # noqa: E501 @@ -119,7 +125,7 @@ def openapi_types(): 'deleted_at': (datetime, none_type,), # noqa: E501 'updated_at': (datetime, none_type,), # noqa: E501 'service_id': (str,), # noqa: E501 - 'version': (int,), # noqa: E501 + 'version': (str,), # noqa: E501 } @cached_property @@ -130,9 +136,9 @@ def discriminator(): attribute_map = { 'name': 'name', # noqa: E501 'placement': 'placement', # noqa: E501 - 'format_version': 'format_version', # noqa: E501 'response_condition': 'response_condition', # noqa: E501 'format': 'format', # noqa: E501 + 'format_version': 'format_version', # noqa: E501 'tls_ca_cert': 'tls_ca_cert', # noqa: E501 'tls_client_cert': 'tls_client_cert', # noqa: E501 'tls_client_key': 'tls_client_key', # noqa: E501 @@ -195,9 +201,9 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 _visited_composed_classes = (Animal,) name (str): The name for the real-time logging configuration.. [optional] # noqa: E501 placement (str, none_type): Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. . [optional] # noqa: E501 - 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] if omitted the server will use the default value of 2 # noqa: E501 response_condition (str, none_type): The name of an existing condition in the configured endpoint, or leave blank to always execute.. [optional] # noqa: E501 format (str): A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats).. [optional] if omitted the server will use the default value of "%h %l %u %t "%r" %>s %b" # noqa: E501 + format_version (str): The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. . [optional] if omitted the server will use the default value of "2" # noqa: E501 tls_ca_cert (str, none_type): A secure certificate to authenticate a server with. Must be in PEM format.. [optional] if omitted the server will use the default value of "null" # noqa: E501 tls_client_cert (str, none_type): The client certificate used to make authenticated requests. Must be in PEM format.. [optional] if omitted the server will use the default value of "null" # noqa: E501 tls_client_key (str, none_type): The client private key used to make authenticated requests. Must be in PEM format.. [optional] if omitted the server will use the default value of "null" # noqa: E501 @@ -211,7 +217,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 deleted_at (datetime, none_type): Date and time in ISO 8601 format.. [optional] # noqa: E501 updated_at (datetime, none_type): Date and time in ISO 8601 format.. [optional] # noqa: E501 service_id (str): [optional] # noqa: E501 - version (int): [optional] # noqa: E501 + version (str): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -313,9 +319,9 @@ def __init__(self, *args, **kwargs): # noqa: E501 _visited_composed_classes = (Animal,) name (str): The name for the real-time logging configuration.. [optional] # noqa: E501 placement (str, none_type): Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. . [optional] # noqa: E501 - 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] if omitted the server will use the default value of 2 # noqa: E501 response_condition (str, none_type): The name of an existing condition in the configured endpoint, or leave blank to always execute.. [optional] # noqa: E501 format (str): A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats).. [optional] if omitted the server will use the default value of "%h %l %u %t "%r" %>s %b" # noqa: E501 + format_version (str): The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. . [optional] if omitted the server will use the default value of "2" # noqa: E501 tls_ca_cert (str, none_type): A secure certificate to authenticate a server with. Must be in PEM format.. [optional] if omitted the server will use the default value of "null" # noqa: E501 tls_client_cert (str, none_type): The client certificate used to make authenticated requests. Must be in PEM format.. [optional] if omitted the server will use the default value of "null" # noqa: E501 tls_client_key (str, none_type): The client private key used to make authenticated requests. Must be in PEM format.. [optional] if omitted the server will use the default value of "null" # noqa: E501 @@ -329,7 +335,7 @@ def __init__(self, *args, **kwargs): # noqa: E501 deleted_at (datetime, none_type): Date and time in ISO 8601 format.. [optional] # noqa: E501 updated_at (datetime, none_type): Date and time in ISO 8601 format.. [optional] # noqa: E501 service_id (str): [optional] # noqa: E501 - version (int): [optional] # noqa: E501 + version (str): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -395,8 +401,11 @@ def _composed_schemas(): 'anyOf': [ ], 'allOf': [ - LoggingSplunk, - ServiceIdAndVersion, + LoggingCommonResponse, + LoggingRequestCapsCommon, + LoggingSplunkAdditional, + LoggingTlsCommon, + ServiceIdAndVersionString, Timestamps, ], 'oneOf': [ diff --git a/fastly/model/logging_sumologic.py b/fastly/model/logging_sumologic.py deleted file mode 100644 index 7cbb375..0000000 --- a/fastly/model/logging_sumologic.py +++ /dev/null @@ -1,348 +0,0 @@ -""" - Fastly API - - Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://developer.fastly.com/reference/api/) # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Contact: oss@fastly.com -""" - - -import re # noqa: F401 -import sys # noqa: F401 - -from fastly.model_utils import ( # noqa: F401 - ApiTypeError, - ModelComposed, - ModelNormal, - ModelSimple, - cached_property, - change_keys_js_to_python, - convert_js_args_to_python_args, - date, - datetime, - file_type, - none_type, - validate_get_composed_info, - OpenApiModel -) -from fastly.exceptions import ApiAttributeError - - -def lazy_import(): - from fastly.model.logging_common import LoggingCommon - from fastly.model.logging_message_type import LoggingMessageType - from fastly.model.logging_sumologic_all_of import LoggingSumologicAllOf - globals()['LoggingCommon'] = LoggingCommon - globals()['LoggingMessageType'] = LoggingMessageType - globals()['LoggingSumologicAllOf'] = LoggingSumologicAllOf - - -class LoggingSumologic(ModelComposed): - """NOTE: This class is auto generated. - Do not edit the class manually. - - Attributes: - allowed_values (dict): The key is the tuple path to the attribute - and the for var_name this is (var_name,). The value is a dict - with a capitalized key describing the allowed value and an allowed - value. These dicts store the allowed enum values. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - discriminator_value_class_map (dict): A dict to go from the discriminator - variable value to the discriminator class name. - validations (dict): The key is the tuple path to the attribute - and the for var_name this is (var_name,). The value is a dict - that stores validations for max_length, min_length, max_items, - min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, - inclusive_minimum, and regex. - additional_properties_type (tuple): A tuple of classes accepted - as additional properties values. - """ - - allowed_values = { - ('placement',): { - 'None': None, - 'NONE': "none", - 'WAF_DEBUG': "waf_debug", - 'NULL': "null", - }, - ('format_version',): { - 'v1': 1, - 'v2': 2, - }, - } - - validations = { - } - - @cached_property - def additional_properties_type(): - """ - This must be a method because a model may have properties that are - of type self, this must run after the class is loaded - """ - lazy_import() - return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 - - _nullable = False - - @cached_property - def openapi_types(): - """ - This must be a method because a model may have properties that are - of type self, this must run after the class is loaded - - Returns - openapi_types (dict): The key is attribute name - and the value is attribute type. - """ - lazy_import() - return { - 'name': (str,), # noqa: E501 - 'placement': (str, none_type,), # noqa: E501 - 'format_version': (int,), # noqa: E501 - 'response_condition': (str, none_type,), # noqa: E501 - 'format': (str,), # noqa: E501 - 'message_type': (LoggingMessageType,), # noqa: E501 - 'url': (str,), # noqa: E501 - } - - @cached_property - def discriminator(): - return None - - - attribute_map = { - 'name': 'name', # noqa: E501 - 'placement': 'placement', # noqa: E501 - 'format_version': 'format_version', # noqa: E501 - 'response_condition': 'response_condition', # noqa: E501 - 'format': 'format', # noqa: E501 - 'message_type': 'message_type', # noqa: E501 - 'url': 'url', # noqa: E501 - } - - read_only_vars = { - } - - @classmethod - @convert_js_args_to_python_args - def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 - """LoggingSumologic - a model defined in OpenAPI - - Keyword Args: - _check_type (bool): if True, values for parameters in openapi_types - will be type checked and a TypeError will be - raised if the wrong type is input. - Defaults to True - _path_to_item (tuple/list): This is a list of keys or values to - drill down to the model in received_data - when deserializing a response - _spec_property_naming (bool): True if the variable names in the input data - are serialized names, as specified in the OpenAPI document. - False if the variable names in the input data - are pythonic names, e.g. snake case (default) - _configuration (Configuration): the instance to use when - deserializing a file_type parameter. - If passed, type conversion is attempted - If omitted no type conversion is done. - _visited_composed_classes (tuple): This stores a tuple of - classes that we have traveled through so that - if we see that class again we will not use its - discriminator again. - When traveling through a discriminator, the - composed schema that is - is traveled through is added to this set. - For example if Animal has a discriminator - petType and we pass in "Dog", and the class Dog - allOf includes Animal, we move through Animal - once using the discriminator, and pick Dog. - Then in Dog, we will make an instance of the - Animal class but this time we won't travel - through its discriminator because we passed in - _visited_composed_classes = (Animal,) - name (str): The name for the real-time logging configuration.. [optional] # noqa: E501 - placement (str, none_type): Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. . [optional] # noqa: E501 - 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] if omitted the server will use the default value of 2 # noqa: E501 - response_condition (str, none_type): The name of an existing condition in the configured endpoint, or leave blank to always execute.. [optional] # noqa: E501 - format (str): A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats).. [optional] if omitted the server will use the default value of "%h %l %u %t "%r" %>s %b" # noqa: E501 - message_type (LoggingMessageType): [optional] # noqa: E501 - url (str): The URL to post logs to.. [optional] # noqa: E501 - """ - - _check_type = kwargs.pop('_check_type', True) - _spec_property_naming = kwargs.pop('_spec_property_naming', False) - _path_to_item = kwargs.pop('_path_to_item', ()) - _configuration = kwargs.pop('_configuration', None) - _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) - - self = super(OpenApiModel, cls).__new__(cls) - - if args: - raise ApiTypeError( - "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( - args, - self.__class__.__name__, - ), - path_to_item=_path_to_item, - valid_classes=(self.__class__,), - ) - - self._data_store = {} - self._check_type = _check_type - self._spec_property_naming = _spec_property_naming - self._path_to_item = _path_to_item - self._configuration = _configuration - self._visited_composed_classes = _visited_composed_classes + (self.__class__,) - - constant_args = { - '_check_type': _check_type, - '_path_to_item': _path_to_item, - '_spec_property_naming': _spec_property_naming, - '_configuration': _configuration, - '_visited_composed_classes': self._visited_composed_classes, - } - composed_info = validate_get_composed_info( - constant_args, kwargs, self) - self._composed_instances = composed_info[0] - self._var_name_to_model_instances = composed_info[1] - self._additional_properties_model_instances = composed_info[2] - discarded_args = composed_info[3] - - for var_name, var_value in kwargs.items(): - if var_name in discarded_args and \ - self._configuration is not None and \ - self._configuration.discard_unknown_keys and \ - self._additional_properties_model_instances: - # discard variable. - continue - setattr(self, var_name, var_value) - - return self - - required_properties = set([ - '_data_store', - '_check_type', - '_spec_property_naming', - '_path_to_item', - '_configuration', - '_visited_composed_classes', - '_composed_instances', - '_var_name_to_model_instances', - '_additional_properties_model_instances', - ]) - - @convert_js_args_to_python_args - def __init__(self, *args, **kwargs): # noqa: E501 - """LoggingSumologic - a model defined in OpenAPI - - Keyword Args: - _check_type (bool): if True, values for parameters in openapi_types - will be type checked and a TypeError will be - raised if the wrong type is input. - Defaults to True - _path_to_item (tuple/list): This is a list of keys or values to - drill down to the model in received_data - when deserializing a response - _spec_property_naming (bool): True if the variable names in the input data - are serialized names, as specified in the OpenAPI document. - False if the variable names in the input data - are pythonic names, e.g. snake case (default) - _configuration (Configuration): the instance to use when - deserializing a file_type parameter. - If passed, type conversion is attempted - If omitted no type conversion is done. - _visited_composed_classes (tuple): This stores a tuple of - classes that we have traveled through so that - if we see that class again we will not use its - discriminator again. - When traveling through a discriminator, the - composed schema that is - is traveled through is added to this set. - For example if Animal has a discriminator - petType and we pass in "Dog", and the class Dog - allOf includes Animal, we move through Animal - once using the discriminator, and pick Dog. - Then in Dog, we will make an instance of the - Animal class but this time we won't travel - through its discriminator because we passed in - _visited_composed_classes = (Animal,) - name (str): The name for the real-time logging configuration.. [optional] # noqa: E501 - placement (str, none_type): Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. . [optional] # noqa: E501 - 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] if omitted the server will use the default value of 2 # noqa: E501 - response_condition (str, none_type): The name of an existing condition in the configured endpoint, or leave blank to always execute.. [optional] # noqa: E501 - format (str): A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats).. [optional] if omitted the server will use the default value of "%h %l %u %t "%r" %>s %b" # noqa: E501 - message_type (LoggingMessageType): [optional] # noqa: E501 - url (str): The URL to post logs to.. [optional] # noqa: E501 - """ - - _check_type = kwargs.pop('_check_type', True) - _spec_property_naming = kwargs.pop('_spec_property_naming', False) - _path_to_item = kwargs.pop('_path_to_item', ()) - _configuration = kwargs.pop('_configuration', None) - _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) - - if args: - raise ApiTypeError( - "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( - args, - self.__class__.__name__, - ), - path_to_item=_path_to_item, - valid_classes=(self.__class__,), - ) - - self._data_store = {} - self._check_type = _check_type - self._spec_property_naming = _spec_property_naming - self._path_to_item = _path_to_item - self._configuration = _configuration - self._visited_composed_classes = _visited_composed_classes + (self.__class__,) - - constant_args = { - '_check_type': _check_type, - '_path_to_item': _path_to_item, - '_spec_property_naming': _spec_property_naming, - '_configuration': _configuration, - '_visited_composed_classes': self._visited_composed_classes, - } - composed_info = validate_get_composed_info( - constant_args, kwargs, self) - self._composed_instances = composed_info[0] - self._var_name_to_model_instances = composed_info[1] - self._additional_properties_model_instances = composed_info[2] - discarded_args = composed_info[3] - - for var_name, var_value in kwargs.items(): - if var_name in discarded_args and \ - self._configuration is not None and \ - self._configuration.discard_unknown_keys and \ - self._additional_properties_model_instances: - # discard variable. - continue - setattr(self, var_name, var_value) - if var_name in self.read_only_vars: - raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " - f"class with read only attributes.") - - @cached_property - def _composed_schemas(): - # we need this here to make our import statements work - # we must store _composed_schemas in here so the code is only run - # when we invoke this method. If we kept this at the class - # level we would get an error because the class level - # code would be run when this module is imported, and these composed - # classes don't exist yet because their module has not finished - # loading - lazy_import() - return { - 'anyOf': [ - ], - 'allOf': [ - LoggingCommon, - LoggingSumologicAllOf, - ], - 'oneOf': [ - ], - } diff --git a/fastly/model/logging_sumologic_all_of.py b/fastly/model/logging_sumologic_additional.py similarity index 98% rename from fastly/model/logging_sumologic_all_of.py rename to fastly/model/logging_sumologic_additional.py index 161c91b..354e4f8 100644 --- a/fastly/model/logging_sumologic_all_of.py +++ b/fastly/model/logging_sumologic_additional.py @@ -34,7 +34,7 @@ def lazy_import(): globals()['LoggingMessageType'] = LoggingMessageType -class LoggingSumologicAllOf(ModelNormal): +class LoggingSumologicAdditional(ModelNormal): """NOTE: This class is auto generated. Do not edit the class manually. @@ -107,7 +107,7 @@ def discriminator(): @classmethod @convert_js_args_to_python_args def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 - """LoggingSumologicAllOf - a model defined in OpenAPI + """LoggingSumologicAdditional - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -190,7 +190,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 @convert_js_args_to_python_args def __init__(self, *args, **kwargs): # noqa: E501 - """LoggingSumologicAllOf - a model defined in OpenAPI + """LoggingSumologicAdditional - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types diff --git a/fastly/model/logging_sumologic_response.py b/fastly/model/logging_sumologic_response.py index 8675458..a0e02f2 100644 --- a/fastly/model/logging_sumologic_response.py +++ b/fastly/model/logging_sumologic_response.py @@ -30,13 +30,15 @@ def lazy_import(): + from fastly.model.logging_common_response import LoggingCommonResponse from fastly.model.logging_message_type import LoggingMessageType - from fastly.model.logging_sumologic import LoggingSumologic - from fastly.model.service_id_and_version import ServiceIdAndVersion + from fastly.model.logging_sumologic_additional import LoggingSumologicAdditional + from fastly.model.service_id_and_version_string import ServiceIdAndVersionString from fastly.model.timestamps import Timestamps + globals()['LoggingCommonResponse'] = LoggingCommonResponse globals()['LoggingMessageType'] = LoggingMessageType - globals()['LoggingSumologic'] = LoggingSumologic - globals()['ServiceIdAndVersion'] = ServiceIdAndVersion + globals()['LoggingSumologicAdditional'] = LoggingSumologicAdditional + globals()['ServiceIdAndVersionString'] = ServiceIdAndVersionString globals()['Timestamps'] = Timestamps @@ -70,8 +72,8 @@ class LoggingSumologicResponse(ModelComposed): 'NULL': "null", }, ('format_version',): { - 'v1': 1, - 'v2': 2, + 'v1': "1", + 'v2': "2", }, } @@ -103,16 +105,16 @@ def openapi_types(): return { 'name': (str,), # noqa: E501 'placement': (str, none_type,), # noqa: E501 - 'format_version': (int,), # noqa: E501 'response_condition': (str, none_type,), # noqa: E501 'format': (str,), # noqa: E501 + 'format_version': (str,), # noqa: E501 'message_type': (LoggingMessageType,), # noqa: E501 'url': (str,), # noqa: E501 'created_at': (datetime, none_type,), # noqa: E501 'deleted_at': (datetime, none_type,), # noqa: E501 'updated_at': (datetime, none_type,), # noqa: E501 'service_id': (str,), # noqa: E501 - 'version': (int,), # noqa: E501 + 'version': (str,), # noqa: E501 } @cached_property @@ -123,9 +125,9 @@ def discriminator(): attribute_map = { 'name': 'name', # noqa: E501 'placement': 'placement', # noqa: E501 - 'format_version': 'format_version', # noqa: E501 'response_condition': 'response_condition', # noqa: E501 'format': 'format', # noqa: E501 + 'format_version': 'format_version', # noqa: E501 'message_type': 'message_type', # noqa: E501 'url': 'url', # noqa: E501 'created_at': 'created_at', # noqa: E501 @@ -181,16 +183,16 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 _visited_composed_classes = (Animal,) name (str): The name for the real-time logging configuration.. [optional] # noqa: E501 placement (str, none_type): Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. . [optional] # noqa: E501 - 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] if omitted the server will use the default value of 2 # noqa: E501 response_condition (str, none_type): The name of an existing condition in the configured endpoint, or leave blank to always execute.. [optional] # noqa: E501 format (str): A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats).. [optional] if omitted the server will use the default value of "%h %l %u %t "%r" %>s %b" # noqa: E501 + format_version (str): The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. . [optional] if omitted the server will use the default value of "2" # noqa: E501 message_type (LoggingMessageType): [optional] # noqa: E501 url (str): The URL to post logs to.. [optional] # noqa: E501 created_at (datetime, none_type): Date and time in ISO 8601 format.. [optional] # noqa: E501 deleted_at (datetime, none_type): Date and time in ISO 8601 format.. [optional] # noqa: E501 updated_at (datetime, none_type): Date and time in ISO 8601 format.. [optional] # noqa: E501 service_id (str): [optional] # noqa: E501 - version (int): [optional] # noqa: E501 + version (str): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -292,16 +294,16 @@ def __init__(self, *args, **kwargs): # noqa: E501 _visited_composed_classes = (Animal,) name (str): The name for the real-time logging configuration.. [optional] # noqa: E501 placement (str, none_type): Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. . [optional] # noqa: E501 - 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] if omitted the server will use the default value of 2 # noqa: E501 response_condition (str, none_type): The name of an existing condition in the configured endpoint, or leave blank to always execute.. [optional] # noqa: E501 format (str): A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats).. [optional] if omitted the server will use the default value of "%h %l %u %t "%r" %>s %b" # noqa: E501 + format_version (str): The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. . [optional] if omitted the server will use the default value of "2" # noqa: E501 message_type (LoggingMessageType): [optional] # noqa: E501 url (str): The URL to post logs to.. [optional] # noqa: E501 created_at (datetime, none_type): Date and time in ISO 8601 format.. [optional] # noqa: E501 deleted_at (datetime, none_type): Date and time in ISO 8601 format.. [optional] # noqa: E501 updated_at (datetime, none_type): Date and time in ISO 8601 format.. [optional] # noqa: E501 service_id (str): [optional] # noqa: E501 - version (int): [optional] # noqa: E501 + version (str): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -367,8 +369,9 @@ def _composed_schemas(): 'anyOf': [ ], 'allOf': [ - LoggingSumologic, - ServiceIdAndVersion, + LoggingCommonResponse, + LoggingSumologicAdditional, + ServiceIdAndVersionString, Timestamps, ], 'oneOf': [ diff --git a/fastly/model/logging_syslog.py b/fastly/model/logging_syslog.py deleted file mode 100644 index 731918e..0000000 --- a/fastly/model/logging_syslog.py +++ /dev/null @@ -1,392 +0,0 @@ -""" - Fastly API - - Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://developer.fastly.com/reference/api/) # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Contact: oss@fastly.com -""" - - -import re # noqa: F401 -import sys # noqa: F401 - -from fastly.model_utils import ( # noqa: F401 - ApiTypeError, - ModelComposed, - ModelNormal, - ModelSimple, - cached_property, - change_keys_js_to_python, - convert_js_args_to_python_args, - date, - datetime, - file_type, - none_type, - validate_get_composed_info, - OpenApiModel -) -from fastly.exceptions import ApiAttributeError - - -def lazy_import(): - from fastly.model.logging_address_and_port import LoggingAddressAndPort - from fastly.model.logging_common import LoggingCommon - from fastly.model.logging_message_type import LoggingMessageType - from fastly.model.logging_syslog_all_of import LoggingSyslogAllOf - from fastly.model.logging_tls_common import LoggingTlsCommon - from fastly.model.logging_use_tls import LoggingUseTls - globals()['LoggingAddressAndPort'] = LoggingAddressAndPort - globals()['LoggingCommon'] = LoggingCommon - globals()['LoggingMessageType'] = LoggingMessageType - globals()['LoggingSyslogAllOf'] = LoggingSyslogAllOf - globals()['LoggingTlsCommon'] = LoggingTlsCommon - globals()['LoggingUseTls'] = LoggingUseTls - - -class LoggingSyslog(ModelComposed): - """NOTE: This class is auto generated. - Do not edit the class manually. - - Attributes: - allowed_values (dict): The key is the tuple path to the attribute - and the for var_name this is (var_name,). The value is a dict - with a capitalized key describing the allowed value and an allowed - value. These dicts store the allowed enum values. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - discriminator_value_class_map (dict): A dict to go from the discriminator - variable value to the discriminator class name. - validations (dict): The key is the tuple path to the attribute - and the for var_name this is (var_name,). The value is a dict - that stores validations for max_length, min_length, max_items, - min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, - inclusive_minimum, and regex. - additional_properties_type (tuple): A tuple of classes accepted - as additional properties values. - """ - - allowed_values = { - ('placement',): { - 'None': None, - 'NONE': "none", - 'WAF_DEBUG': "waf_debug", - 'NULL': "null", - }, - ('format_version',): { - 'v1': 1, - 'v2': 2, - }, - } - - validations = { - } - - @cached_property - def additional_properties_type(): - """ - This must be a method because a model may have properties that are - of type self, this must run after the class is loaded - """ - lazy_import() - return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 - - _nullable = False - - @cached_property - def openapi_types(): - """ - This must be a method because a model may have properties that are - of type self, this must run after the class is loaded - - Returns - openapi_types (dict): The key is attribute name - and the value is attribute type. - """ - lazy_import() - return { - 'name': (str,), # noqa: E501 - 'placement': (str, none_type,), # noqa: E501 - 'format_version': (int,), # noqa: E501 - 'response_condition': (str, none_type,), # noqa: E501 - 'format': (str,), # noqa: E501 - 'tls_ca_cert': (str, none_type,), # noqa: E501 - 'tls_client_cert': (str, none_type,), # noqa: E501 - 'tls_client_key': (str, none_type,), # noqa: E501 - 'tls_hostname': (str, none_type,), # noqa: E501 - 'address': (str,), # noqa: E501 - 'port': (int,), # noqa: E501 - 'message_type': (LoggingMessageType,), # noqa: E501 - 'hostname': (str,), # noqa: E501 - 'ipv4': (str, none_type,), # noqa: E501 - 'token': (str, none_type,), # noqa: E501 - 'use_tls': (LoggingUseTls,), # noqa: E501 - } - - @cached_property - def discriminator(): - return None - - - attribute_map = { - 'name': 'name', # noqa: E501 - 'placement': 'placement', # noqa: E501 - 'format_version': 'format_version', # noqa: E501 - 'response_condition': 'response_condition', # noqa: E501 - 'format': 'format', # noqa: E501 - 'tls_ca_cert': 'tls_ca_cert', # noqa: E501 - 'tls_client_cert': 'tls_client_cert', # noqa: E501 - 'tls_client_key': 'tls_client_key', # noqa: E501 - 'tls_hostname': 'tls_hostname', # noqa: E501 - 'address': 'address', # noqa: E501 - 'port': 'port', # noqa: E501 - 'message_type': 'message_type', # noqa: E501 - 'hostname': 'hostname', # noqa: E501 - 'ipv4': 'ipv4', # noqa: E501 - 'token': 'token', # noqa: E501 - 'use_tls': 'use_tls', # noqa: E501 - } - - read_only_vars = { - } - - @classmethod - @convert_js_args_to_python_args - def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 - """LoggingSyslog - a model defined in OpenAPI - - Keyword Args: - _check_type (bool): if True, values for parameters in openapi_types - will be type checked and a TypeError will be - raised if the wrong type is input. - Defaults to True - _path_to_item (tuple/list): This is a list of keys or values to - drill down to the model in received_data - when deserializing a response - _spec_property_naming (bool): True if the variable names in the input data - are serialized names, as specified in the OpenAPI document. - False if the variable names in the input data - are pythonic names, e.g. snake case (default) - _configuration (Configuration): the instance to use when - deserializing a file_type parameter. - If passed, type conversion is attempted - If omitted no type conversion is done. - _visited_composed_classes (tuple): This stores a tuple of - classes that we have traveled through so that - if we see that class again we will not use its - discriminator again. - When traveling through a discriminator, the - composed schema that is - is traveled through is added to this set. - For example if Animal has a discriminator - petType and we pass in "Dog", and the class Dog - allOf includes Animal, we move through Animal - once using the discriminator, and pick Dog. - Then in Dog, we will make an instance of the - Animal class but this time we won't travel - through its discriminator because we passed in - _visited_composed_classes = (Animal,) - name (str): The name for the real-time logging configuration.. [optional] # noqa: E501 - placement (str, none_type): Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. . [optional] # noqa: E501 - 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] if omitted the server will use the default value of 2 # noqa: E501 - response_condition (str, none_type): The name of an existing condition in the configured endpoint, or leave blank to always execute.. [optional] # noqa: E501 - format (str): A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats).. [optional] if omitted the server will use the default value of "%h %l %u %t "%r" %>s %b" # noqa: E501 - tls_ca_cert (str, none_type): A secure certificate to authenticate a server with. Must be in PEM format.. [optional] if omitted the server will use the default value of "null" # noqa: E501 - tls_client_cert (str, none_type): The client certificate used to make authenticated requests. Must be in PEM format.. [optional] if omitted the server will use the default value of "null" # noqa: E501 - tls_client_key (str, none_type): The client private key used to make authenticated requests. Must be in PEM format.. [optional] if omitted the server will use the default value of "null" # noqa: E501 - tls_hostname (str, none_type): 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] if omitted the server will use the default value of "null" # noqa: E501 - address (str): A hostname or IPv4 address.. [optional] # noqa: E501 - port (int): The port number.. [optional] if omitted the server will use the default value of 514 # noqa: E501 - message_type (LoggingMessageType): [optional] # noqa: E501 - hostname (str): The hostname used for the syslog endpoint.. [optional] # noqa: E501 - ipv4 (str, none_type): The IPv4 address used for the syslog endpoint.. [optional] # noqa: E501 - token (str, none_type): Whether to prepend each message with a specific token.. [optional] if omitted the server will use the default value of "null" # noqa: E501 - use_tls (LoggingUseTls): [optional] # noqa: E501 - """ - - _check_type = kwargs.pop('_check_type', True) - _spec_property_naming = kwargs.pop('_spec_property_naming', False) - _path_to_item = kwargs.pop('_path_to_item', ()) - _configuration = kwargs.pop('_configuration', None) - _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) - - self = super(OpenApiModel, cls).__new__(cls) - - if args: - raise ApiTypeError( - "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( - args, - self.__class__.__name__, - ), - path_to_item=_path_to_item, - valid_classes=(self.__class__,), - ) - - self._data_store = {} - self._check_type = _check_type - self._spec_property_naming = _spec_property_naming - self._path_to_item = _path_to_item - self._configuration = _configuration - self._visited_composed_classes = _visited_composed_classes + (self.__class__,) - - constant_args = { - '_check_type': _check_type, - '_path_to_item': _path_to_item, - '_spec_property_naming': _spec_property_naming, - '_configuration': _configuration, - '_visited_composed_classes': self._visited_composed_classes, - } - composed_info = validate_get_composed_info( - constant_args, kwargs, self) - self._composed_instances = composed_info[0] - self._var_name_to_model_instances = composed_info[1] - self._additional_properties_model_instances = composed_info[2] - discarded_args = composed_info[3] - - for var_name, var_value in kwargs.items(): - if var_name in discarded_args and \ - self._configuration is not None and \ - self._configuration.discard_unknown_keys and \ - self._additional_properties_model_instances: - # discard variable. - continue - setattr(self, var_name, var_value) - - return self - - required_properties = set([ - '_data_store', - '_check_type', - '_spec_property_naming', - '_path_to_item', - '_configuration', - '_visited_composed_classes', - '_composed_instances', - '_var_name_to_model_instances', - '_additional_properties_model_instances', - ]) - - @convert_js_args_to_python_args - def __init__(self, *args, **kwargs): # noqa: E501 - """LoggingSyslog - a model defined in OpenAPI - - Keyword Args: - _check_type (bool): if True, values for parameters in openapi_types - will be type checked and a TypeError will be - raised if the wrong type is input. - Defaults to True - _path_to_item (tuple/list): This is a list of keys or values to - drill down to the model in received_data - when deserializing a response - _spec_property_naming (bool): True if the variable names in the input data - are serialized names, as specified in the OpenAPI document. - False if the variable names in the input data - are pythonic names, e.g. snake case (default) - _configuration (Configuration): the instance to use when - deserializing a file_type parameter. - If passed, type conversion is attempted - If omitted no type conversion is done. - _visited_composed_classes (tuple): This stores a tuple of - classes that we have traveled through so that - if we see that class again we will not use its - discriminator again. - When traveling through a discriminator, the - composed schema that is - is traveled through is added to this set. - For example if Animal has a discriminator - petType and we pass in "Dog", and the class Dog - allOf includes Animal, we move through Animal - once using the discriminator, and pick Dog. - Then in Dog, we will make an instance of the - Animal class but this time we won't travel - through its discriminator because we passed in - _visited_composed_classes = (Animal,) - name (str): The name for the real-time logging configuration.. [optional] # noqa: E501 - placement (str, none_type): Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. . [optional] # noqa: E501 - 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] if omitted the server will use the default value of 2 # noqa: E501 - response_condition (str, none_type): The name of an existing condition in the configured endpoint, or leave blank to always execute.. [optional] # noqa: E501 - format (str): A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats).. [optional] if omitted the server will use the default value of "%h %l %u %t "%r" %>s %b" # noqa: E501 - tls_ca_cert (str, none_type): A secure certificate to authenticate a server with. Must be in PEM format.. [optional] if omitted the server will use the default value of "null" # noqa: E501 - tls_client_cert (str, none_type): The client certificate used to make authenticated requests. Must be in PEM format.. [optional] if omitted the server will use the default value of "null" # noqa: E501 - tls_client_key (str, none_type): The client private key used to make authenticated requests. Must be in PEM format.. [optional] if omitted the server will use the default value of "null" # noqa: E501 - tls_hostname (str, none_type): 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] if omitted the server will use the default value of "null" # noqa: E501 - address (str): A hostname or IPv4 address.. [optional] # noqa: E501 - port (int): The port number.. [optional] if omitted the server will use the default value of 514 # noqa: E501 - message_type (LoggingMessageType): [optional] # noqa: E501 - hostname (str): The hostname used for the syslog endpoint.. [optional] # noqa: E501 - ipv4 (str, none_type): The IPv4 address used for the syslog endpoint.. [optional] # noqa: E501 - token (str, none_type): Whether to prepend each message with a specific token.. [optional] if omitted the server will use the default value of "null" # noqa: E501 - use_tls (LoggingUseTls): [optional] # noqa: E501 - """ - - _check_type = kwargs.pop('_check_type', True) - _spec_property_naming = kwargs.pop('_spec_property_naming', False) - _path_to_item = kwargs.pop('_path_to_item', ()) - _configuration = kwargs.pop('_configuration', None) - _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) - - if args: - raise ApiTypeError( - "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( - args, - self.__class__.__name__, - ), - path_to_item=_path_to_item, - valid_classes=(self.__class__,), - ) - - self._data_store = {} - self._check_type = _check_type - self._spec_property_naming = _spec_property_naming - self._path_to_item = _path_to_item - self._configuration = _configuration - self._visited_composed_classes = _visited_composed_classes + (self.__class__,) - - constant_args = { - '_check_type': _check_type, - '_path_to_item': _path_to_item, - '_spec_property_naming': _spec_property_naming, - '_configuration': _configuration, - '_visited_composed_classes': self._visited_composed_classes, - } - composed_info = validate_get_composed_info( - constant_args, kwargs, self) - self._composed_instances = composed_info[0] - self._var_name_to_model_instances = composed_info[1] - self._additional_properties_model_instances = composed_info[2] - discarded_args = composed_info[3] - - for var_name, var_value in kwargs.items(): - if var_name in discarded_args and \ - self._configuration is not None and \ - self._configuration.discard_unknown_keys and \ - self._additional_properties_model_instances: - # discard variable. - continue - setattr(self, var_name, var_value) - if var_name in self.read_only_vars: - raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " - f"class with read only attributes.") - - @cached_property - def _composed_schemas(): - # we need this here to make our import statements work - # we must store _composed_schemas in here so the code is only run - # when we invoke this method. If we kept this at the class - # level we would get an error because the class level - # code would be run when this module is imported, and these composed - # classes don't exist yet because their module has not finished - # loading - lazy_import() - return { - 'anyOf': [ - ], - 'allOf': [ - LoggingAddressAndPort, - LoggingCommon, - LoggingSyslogAllOf, - LoggingTlsCommon, - ], - 'oneOf': [ - ], - } diff --git a/fastly/model/logging_syslog_all_of.py b/fastly/model/logging_syslog_additional.py similarity index 98% rename from fastly/model/logging_syslog_all_of.py rename to fastly/model/logging_syslog_additional.py index c83ee9b..0321bed 100644 --- a/fastly/model/logging_syslog_all_of.py +++ b/fastly/model/logging_syslog_additional.py @@ -36,7 +36,7 @@ def lazy_import(): globals()['LoggingUseTls'] = LoggingUseTls -class LoggingSyslogAllOf(ModelNormal): +class LoggingSyslogAdditional(ModelNormal): """NOTE: This class is auto generated. Do not edit the class manually. @@ -115,7 +115,7 @@ def discriminator(): @classmethod @convert_js_args_to_python_args def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 - """LoggingSyslogAllOf - a model defined in OpenAPI + """LoggingSyslogAdditional - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -201,7 +201,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 @convert_js_args_to_python_args def __init__(self, *args, **kwargs): # noqa: E501 - """LoggingSyslogAllOf - a model defined in OpenAPI + """LoggingSyslogAdditional - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types diff --git a/fastly/model/logging_syslog_response.py b/fastly/model/logging_syslog_response.py index ccb84db..7c418f3 100644 --- a/fastly/model/logging_syslog_response.py +++ b/fastly/model/logging_syslog_response.py @@ -30,15 +30,21 @@ def lazy_import(): + from fastly.model.logging_address_and_port import LoggingAddressAndPort + from fastly.model.logging_common_response import LoggingCommonResponse from fastly.model.logging_message_type import LoggingMessageType - from fastly.model.logging_syslog import LoggingSyslog + from fastly.model.logging_syslog_additional import LoggingSyslogAdditional + from fastly.model.logging_tls_common import LoggingTlsCommon from fastly.model.logging_use_tls import LoggingUseTls - from fastly.model.service_id_and_version import ServiceIdAndVersion + from fastly.model.service_id_and_version_string import ServiceIdAndVersionString from fastly.model.timestamps import Timestamps + globals()['LoggingAddressAndPort'] = LoggingAddressAndPort + globals()['LoggingCommonResponse'] = LoggingCommonResponse globals()['LoggingMessageType'] = LoggingMessageType - globals()['LoggingSyslog'] = LoggingSyslog + globals()['LoggingSyslogAdditional'] = LoggingSyslogAdditional + globals()['LoggingTlsCommon'] = LoggingTlsCommon globals()['LoggingUseTls'] = LoggingUseTls - globals()['ServiceIdAndVersion'] = ServiceIdAndVersion + globals()['ServiceIdAndVersionString'] = ServiceIdAndVersionString globals()['Timestamps'] = Timestamps @@ -72,8 +78,8 @@ class LoggingSyslogResponse(ModelComposed): 'NULL': "null", }, ('format_version',): { - 'v1': 1, - 'v2': 2, + 'v1': "1", + 'v2': "2", }, } @@ -105,9 +111,9 @@ def openapi_types(): return { 'name': (str,), # noqa: E501 'placement': (str, none_type,), # noqa: E501 - 'format_version': (int,), # noqa: E501 'response_condition': (str, none_type,), # noqa: E501 'format': (str,), # noqa: E501 + 'format_version': (str,), # noqa: E501 'tls_ca_cert': (str, none_type,), # noqa: E501 'tls_client_cert': (str, none_type,), # noqa: E501 'tls_client_key': (str, none_type,), # noqa: E501 @@ -123,7 +129,7 @@ def openapi_types(): 'deleted_at': (datetime, none_type,), # noqa: E501 'updated_at': (datetime, none_type,), # noqa: E501 'service_id': (str,), # noqa: E501 - 'version': (int,), # noqa: E501 + 'version': (str,), # noqa: E501 } @cached_property @@ -134,9 +140,9 @@ def discriminator(): attribute_map = { 'name': 'name', # noqa: E501 'placement': 'placement', # noqa: E501 - 'format_version': 'format_version', # noqa: E501 'response_condition': 'response_condition', # noqa: E501 'format': 'format', # noqa: E501 + 'format_version': 'format_version', # noqa: E501 'tls_ca_cert': 'tls_ca_cert', # noqa: E501 'tls_client_cert': 'tls_client_cert', # noqa: E501 'tls_client_key': 'tls_client_key', # noqa: E501 @@ -201,9 +207,9 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 _visited_composed_classes = (Animal,) name (str): The name for the real-time logging configuration.. [optional] # noqa: E501 placement (str, none_type): Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. . [optional] # noqa: E501 - 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] if omitted the server will use the default value of 2 # noqa: E501 response_condition (str, none_type): The name of an existing condition in the configured endpoint, or leave blank to always execute.. [optional] # noqa: E501 format (str): A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats).. [optional] if omitted the server will use the default value of "%h %l %u %t "%r" %>s %b" # noqa: E501 + format_version (str): The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. . [optional] if omitted the server will use the default value of "2" # noqa: E501 tls_ca_cert (str, none_type): A secure certificate to authenticate a server with. Must be in PEM format.. [optional] if omitted the server will use the default value of "null" # noqa: E501 tls_client_cert (str, none_type): The client certificate used to make authenticated requests. Must be in PEM format.. [optional] if omitted the server will use the default value of "null" # noqa: E501 tls_client_key (str, none_type): The client private key used to make authenticated requests. Must be in PEM format.. [optional] if omitted the server will use the default value of "null" # noqa: E501 @@ -219,7 +225,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 deleted_at (datetime, none_type): Date and time in ISO 8601 format.. [optional] # noqa: E501 updated_at (datetime, none_type): Date and time in ISO 8601 format.. [optional] # noqa: E501 service_id (str): [optional] # noqa: E501 - version (int): [optional] # noqa: E501 + version (str): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -321,9 +327,9 @@ def __init__(self, *args, **kwargs): # noqa: E501 _visited_composed_classes = (Animal,) name (str): The name for the real-time logging configuration.. [optional] # noqa: E501 placement (str, none_type): Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. . [optional] # noqa: E501 - 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] if omitted the server will use the default value of 2 # noqa: E501 response_condition (str, none_type): The name of an existing condition in the configured endpoint, or leave blank to always execute.. [optional] # noqa: E501 format (str): A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats).. [optional] if omitted the server will use the default value of "%h %l %u %t "%r" %>s %b" # noqa: E501 + format_version (str): The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. . [optional] if omitted the server will use the default value of "2" # noqa: E501 tls_ca_cert (str, none_type): A secure certificate to authenticate a server with. Must be in PEM format.. [optional] if omitted the server will use the default value of "null" # noqa: E501 tls_client_cert (str, none_type): The client certificate used to make authenticated requests. Must be in PEM format.. [optional] if omitted the server will use the default value of "null" # noqa: E501 tls_client_key (str, none_type): The client private key used to make authenticated requests. Must be in PEM format.. [optional] if omitted the server will use the default value of "null" # noqa: E501 @@ -339,7 +345,7 @@ def __init__(self, *args, **kwargs): # noqa: E501 deleted_at (datetime, none_type): Date and time in ISO 8601 format.. [optional] # noqa: E501 updated_at (datetime, none_type): Date and time in ISO 8601 format.. [optional] # noqa: E501 service_id (str): [optional] # noqa: E501 - version (int): [optional] # noqa: E501 + version (str): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -405,8 +411,11 @@ def _composed_schemas(): 'anyOf': [ ], 'allOf': [ - LoggingSyslog, - ServiceIdAndVersion, + LoggingAddressAndPort, + LoggingCommonResponse, + LoggingSyslogAdditional, + LoggingTlsCommon, + ServiceIdAndVersionString, Timestamps, ], 'oneOf': [ diff --git a/fastly/model/model403_forbidden.py b/fastly/model/model403_forbidden.py deleted file mode 100644 index f053998..0000000 --- a/fastly/model/model403_forbidden.py +++ /dev/null @@ -1,276 +0,0 @@ -""" - Fastly API - - Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://developer.fastly.com/reference/api/) # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Contact: oss@fastly.com -""" - - -import re # noqa: F401 -import sys # noqa: F401 - -from fastly.model_utils import ( # noqa: F401 - ApiTypeError, - ModelComposed, - ModelNormal, - ModelSimple, - cached_property, - change_keys_js_to_python, - convert_js_args_to_python_args, - date, - datetime, - file_type, - none_type, - validate_get_composed_info, - OpenApiModel -) -from fastly.exceptions import ApiAttributeError - - - -class Model403Forbidden(ModelSimple): - """NOTE: This class is auto generated. - Do not edit the class manually. - - Attributes: - allowed_values (dict): The key is the tuple path to the attribute - and the for var_name this is (var_name,). The value is a dict - with a capitalized key describing the allowed value and an allowed - value. These dicts store the allowed enum values. - validations (dict): The key is the tuple path to the attribute - and the for var_name this is (var_name,). The value is a dict - that stores validations for max_length, min_length, max_items, - min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, - inclusive_minimum, and regex. - additional_properties_type (tuple): A tuple of classes accepted - as additional properties values. - """ - - allowed_values = { - } - - validations = { - } - - additional_properties_type = None - - _nullable = False - - @cached_property - def openapi_types(): - """ - This must be a method because a model may have properties that are - of type self, this must run after the class is loaded - - Returns - openapi_types (dict): The key is attribute name - and the value is attribute type. - """ - return { - 'value': (SudoGenericTokenError,), - } - - @cached_property - def discriminator(): - return None - - - attribute_map = {} - - read_only_vars = set() - - _composed_schemas = None - - required_properties = set([ - '_data_store', - '_check_type', - '_spec_property_naming', - '_path_to_item', - '_configuration', - '_visited_composed_classes', - ]) - - @convert_js_args_to_python_args - def __init__(self, *args, **kwargs): - """Model403Forbidden - a model defined in OpenAPI - - Note that value can be passed either in args or in kwargs, but not in both. - - Args: - args[0] (SudoGenericTokenError): # noqa: E501 - - Keyword Args: - value (SudoGenericTokenError): # noqa: E501 - _check_type (bool): if True, values for parameters in openapi_types - will be type checked and a TypeError will be - raised if the wrong type is input. - Defaults to True - _path_to_item (tuple/list): This is a list of keys or values to - drill down to the model in received_data - when deserializing a response - _spec_property_naming (bool): True if the variable names in the input data - are serialized names, as specified in the OpenAPI document. - False if the variable names in the input data - are pythonic names, e.g. snake case (default) - _configuration (Configuration): the instance to use when - deserializing a file_type parameter. - If passed, type conversion is attempted - If omitted no type conversion is done. - _visited_composed_classes (tuple): This stores a tuple of - classes that we have traveled through so that - if we see that class again we will not use its - discriminator again. - When traveling through a discriminator, the - composed schema that is - is traveled through is added to this set. - For example if Animal has a discriminator - petType and we pass in "Dog", and the class Dog - allOf includes Animal, we move through Animal - once using the discriminator, and pick Dog. - Then in Dog, we will make an instance of the - Animal class but this time we won't travel - through its discriminator because we passed in - _visited_composed_classes = (Animal,) - """ - # required up here when default value is not given - _path_to_item = kwargs.pop('_path_to_item', ()) - - if 'value' in kwargs: - value = kwargs.pop('value') - elif args: - args = list(args) - value = args.pop(0) - else: - raise ApiTypeError( - "value is required, but not passed in args or kwargs and doesn't have default", - path_to_item=_path_to_item, - valid_classes=(self.__class__,), - ) - - _check_type = kwargs.pop('_check_type', True) - _spec_property_naming = kwargs.pop('_spec_property_naming', False) - _configuration = kwargs.pop('_configuration', None) - _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) - - if args: - raise ApiTypeError( - "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( - args, - self.__class__.__name__, - ), - path_to_item=_path_to_item, - valid_classes=(self.__class__,), - ) - - self._data_store = {} - self._check_type = _check_type - self._spec_property_naming = _spec_property_naming - self._path_to_item = _path_to_item - self._configuration = _configuration - self._visited_composed_classes = _visited_composed_classes + (self.__class__,) - self.value = value - if kwargs: - raise ApiTypeError( - "Invalid named arguments=%s passed to %s. Remove those invalid named arguments." % ( - kwargs, - self.__class__.__name__, - ), - path_to_item=_path_to_item, - valid_classes=(self.__class__,), - ) - - @classmethod - @convert_js_args_to_python_args - def _from_openapi_data(cls, *args, **kwargs): - """Model403Forbidden - a model defined in OpenAPI - - Note that value can be passed either in args or in kwargs, but not in both. - - Args: - args[0] (SudoGenericTokenError): # noqa: E501 - - Keyword Args: - value (SudoGenericTokenError): # noqa: E501 - _check_type (bool): if True, values for parameters in openapi_types - will be type checked and a TypeError will be - raised if the wrong type is input. - Defaults to True - _path_to_item (tuple/list): This is a list of keys or values to - drill down to the model in received_data - when deserializing a response - _spec_property_naming (bool): True if the variable names in the input data - are serialized names, as specified in the OpenAPI document. - False if the variable names in the input data - are pythonic names, e.g. snake case (default) - _configuration (Configuration): the instance to use when - deserializing a file_type parameter. - If passed, type conversion is attempted - If omitted no type conversion is done. - _visited_composed_classes (tuple): This stores a tuple of - classes that we have traveled through so that - if we see that class again we will not use its - discriminator again. - When traveling through a discriminator, the - composed schema that is - is traveled through is added to this set. - For example if Animal has a discriminator - petType and we pass in "Dog", and the class Dog - allOf includes Animal, we move through Animal - once using the discriminator, and pick Dog. - Then in Dog, we will make an instance of the - Animal class but this time we won't travel - through its discriminator because we passed in - _visited_composed_classes = (Animal,) - """ - # required up here when default value is not given - _path_to_item = kwargs.pop('_path_to_item', ()) - - self = super(OpenApiModel, cls).__new__(cls) - - if 'value' in kwargs: - value = kwargs.pop('value') - elif args: - args = list(args) - value = args.pop(0) - else: - raise ApiTypeError( - "value is required, but not passed in args or kwargs and doesn't have default", - path_to_item=_path_to_item, - valid_classes=(self.__class__,), - ) - - _check_type = kwargs.pop('_check_type', True) - _spec_property_naming = kwargs.pop('_spec_property_naming', False) - _configuration = kwargs.pop('_configuration', None) - _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) - - if args: - raise ApiTypeError( - "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( - args, - self.__class__.__name__, - ), - path_to_item=_path_to_item, - valid_classes=(self.__class__,), - ) - - self._data_store = {} - self._check_type = _check_type - self._spec_property_naming = _spec_property_naming - self._path_to_item = _path_to_item - self._configuration = _configuration - self._visited_composed_classes = _visited_composed_classes + (self.__class__,) - self.value = value - if kwargs: - raise ApiTypeError( - "Invalid named arguments=%s passed to %s. Remove those invalid named arguments." % ( - kwargs, - self.__class__.__name__, - ), - path_to_item=_path_to_item, - valid_classes=(self.__class__,), - ) - - return self diff --git a/fastly/model/origin_inspector_realtime_entry_recorded.py b/fastly/model/origin_inspector_realtime_entry_recorded.py index c99dc99..286a989 100644 --- a/fastly/model/origin_inspector_realtime_entry_recorded.py +++ b/fastly/model/origin_inspector_realtime_entry_recorded.py @@ -58,13 +58,7 @@ class OriginInspectorRealtimeEntryRecorded(ModelNormal): validations = { } - @cached_property - def additional_properties_type(): - """ - This must be a method because a model may have properties that are - of type self, this must run after the class is loaded - """ - return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + additional_properties_type = None _nullable = False diff --git a/fastly/model/origin_inspector_subsequent_request_timestamp.py b/fastly/model/origin_inspector_subsequent_request_timestamp.py index acc7568..1fb6eb2 100644 --- a/fastly/model/origin_inspector_subsequent_request_timestamp.py +++ b/fastly/model/origin_inspector_subsequent_request_timestamp.py @@ -58,13 +58,7 @@ class OriginInspectorSubsequentRequestTimestamp(ModelNormal): validations = { } - @cached_property - def additional_properties_type(): - """ - This must be a method because a model may have properties that are - of type self, this must run after the class is loaded - """ - return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + additional_properties_type = None _nullable = False diff --git a/fastly/model/pool_all_of.py b/fastly/model/pool_additional.py similarity index 87% rename from fastly/model/pool_all_of.py rename to fastly/model/pool_additional.py index 24d6f8e..23d47fe 100644 --- a/fastly/model/pool_all_of.py +++ b/fastly/model/pool_additional.py @@ -30,7 +30,7 @@ -class PoolAllOf(ModelNormal): +class PoolAdditional(ModelNormal): """NOTE: This class is auto generated. Do not edit the class manually. @@ -61,10 +61,6 @@ class PoolAllOf(ModelNormal): } validations = { - ('quorum',): { - 'inclusive_maximum': 100, - 'inclusive_minimum': 0, - }, } @cached_property @@ -91,13 +87,8 @@ def openapi_types(): 'name': (str,), # noqa: E501 'shield': (str, none_type,), # noqa: E501 'request_condition': (str, none_type,), # noqa: E501 - 'max_conn_default': (int,), # noqa: E501 - 'connect_timeout': (int,), # noqa: E501 - 'first_byte_timeout': (int,), # noqa: E501 - 'quorum': (int,), # noqa: E501 'tls_ciphers': (str, none_type,), # noqa: E501 'tls_sni_hostname': (str, none_type,), # noqa: E501 - 'tls_check_cert': (int, none_type,), # noqa: E501 'min_tls_version': (int, none_type,), # noqa: E501 'max_tls_version': (int, none_type,), # noqa: E501 'healthcheck': (str, none_type,), # noqa: E501 @@ -115,13 +106,8 @@ def discriminator(): 'name': 'name', # noqa: E501 'shield': 'shield', # noqa: E501 'request_condition': 'request_condition', # noqa: E501 - 'max_conn_default': 'max_conn_default', # noqa: E501 - 'connect_timeout': 'connect_timeout', # noqa: E501 - 'first_byte_timeout': 'first_byte_timeout', # noqa: E501 - 'quorum': 'quorum', # noqa: E501 'tls_ciphers': 'tls_ciphers', # noqa: E501 'tls_sni_hostname': 'tls_sni_hostname', # noqa: E501 - 'tls_check_cert': 'tls_check_cert', # noqa: E501 'min_tls_version': 'min_tls_version', # noqa: E501 'max_tls_version': 'max_tls_version', # noqa: E501 'healthcheck': 'healthcheck', # noqa: E501 @@ -138,7 +124,7 @@ def discriminator(): @classmethod @convert_js_args_to_python_args def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 - """PoolAllOf - a model defined in OpenAPI + """PoolAdditional - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -174,13 +160,8 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 name (str): Name for the Pool.. [optional] # noqa: E501 shield (str, none_type): 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] if omitted the server will use the default value of "null" # noqa: E501 request_condition (str, none_type): Condition which, if met, will select this configuration during a request. Optional.. [optional] # noqa: E501 - max_conn_default (int): Maximum number of connections. Optional.. [optional] if omitted the server will use the default value of 200 # noqa: E501 - connect_timeout (int): How long to wait for a timeout in milliseconds. Optional.. [optional] # noqa: E501 - first_byte_timeout (int): How long to wait for the first byte in milliseconds. Optional.. [optional] # noqa: E501 - quorum (int): Percentage of capacity (`0-100`) that needs to be operationally available for a pool to be considered up.. [optional] if omitted the server will use the default value of 75 # noqa: E501 tls_ciphers (str, none_type): List of OpenSSL ciphers (see the [openssl.org manpages](https://www.openssl.org/docs/man1.1.1/man1/ciphers.html) for details). Optional.. [optional] # noqa: E501 tls_sni_hostname (str, none_type): SNI hostname. Optional.. [optional] # noqa: E501 - tls_check_cert (int, none_type): Be strict on checking TLS certs. Optional.. [optional] # noqa: E501 min_tls_version (int, none_type): Minimum allowed TLS version on connections to this server. Optional.. [optional] # noqa: E501 max_tls_version (int, none_type): Maximum allowed TLS version on connections to this server. Optional.. [optional] # noqa: E501 healthcheck (str, none_type): Name of the healthcheck to use with this pool. Can be empty and could be reused across multiple backend and pools.. [optional] # noqa: E501 @@ -235,7 +216,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 @convert_js_args_to_python_args def __init__(self, *args, **kwargs): # noqa: E501 - """PoolAllOf - a model defined in OpenAPI + """PoolAdditional - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -271,13 +252,8 @@ def __init__(self, *args, **kwargs): # noqa: E501 name (str): Name for the Pool.. [optional] # noqa: E501 shield (str, none_type): 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] if omitted the server will use the default value of "null" # noqa: E501 request_condition (str, none_type): Condition which, if met, will select this configuration during a request. Optional.. [optional] # noqa: E501 - max_conn_default (int): Maximum number of connections. Optional.. [optional] if omitted the server will use the default value of 200 # noqa: E501 - connect_timeout (int): How long to wait for a timeout in milliseconds. Optional.. [optional] # noqa: E501 - first_byte_timeout (int): How long to wait for the first byte in milliseconds. Optional.. [optional] # noqa: E501 - quorum (int): Percentage of capacity (`0-100`) that needs to be operationally available for a pool to be considered up.. [optional] if omitted the server will use the default value of 75 # noqa: E501 tls_ciphers (str, none_type): List of OpenSSL ciphers (see the [openssl.org manpages](https://www.openssl.org/docs/man1.1.1/man1/ciphers.html) for details). Optional.. [optional] # noqa: E501 tls_sni_hostname (str, none_type): SNI hostname. Optional.. [optional] # noqa: E501 - tls_check_cert (int, none_type): Be strict on checking TLS certs. Optional.. [optional] # noqa: E501 min_tls_version (int, none_type): Minimum allowed TLS version on connections to this server. Optional.. [optional] # noqa: E501 max_tls_version (int, none_type): Maximum allowed TLS version on connections to this server. Optional.. [optional] # noqa: E501 healthcheck (str, none_type): Name of the healthcheck to use with this pool. Can be empty and could be reused across multiple backend and pools.. [optional] # noqa: E501 diff --git a/fastly/model/pool_response.py b/fastly/model/pool_response.py index 102cae1..e0622b6 100644 --- a/fastly/model/pool_response.py +++ b/fastly/model/pool_response.py @@ -30,14 +30,18 @@ def lazy_import(): - from fastly.model.pool import Pool + from fastly.model.pool_additional import PoolAdditional from fastly.model.pool_response_all_of import PoolResponseAllOf - from fastly.model.service_id_and_version import ServiceIdAndVersion + from fastly.model.pool_response_common import PoolResponseCommon + from fastly.model.service_id_and_version_string import ServiceIdAndVersionString from fastly.model.timestamps import Timestamps - globals()['Pool'] = Pool + from fastly.model.tls_common_response import TlsCommonResponse + globals()['PoolAdditional'] = PoolAdditional globals()['PoolResponseAllOf'] = PoolResponseAllOf - globals()['ServiceIdAndVersion'] = ServiceIdAndVersion + globals()['PoolResponseCommon'] = PoolResponseCommon + globals()['ServiceIdAndVersionString'] = ServiceIdAndVersionString globals()['Timestamps'] = Timestamps + globals()['TlsCommonResponse'] = TlsCommonResponse class PoolResponse(ModelComposed): @@ -64,8 +68,8 @@ class PoolResponse(ModelComposed): allowed_values = { ('use_tls',): { - 'no_tls': 0, - 'use_tls': 1, + 'no_tls': "0", + 'use_tls': "1", }, ('type',): { 'RANDOM': "random", @@ -75,10 +79,6 @@ class PoolResponse(ModelComposed): } validations = { - ('quorum',): { - 'inclusive_maximum': 100, - 'inclusive_minimum': 0, - }, } @cached_property @@ -108,29 +108,30 @@ def openapi_types(): 'tls_client_cert': (str, none_type,), # noqa: E501 'tls_client_key': (str, none_type,), # noqa: E501 'tls_cert_hostname': (str, none_type,), # noqa: E501 - 'use_tls': (int,), # noqa: E501 + 'use_tls': (str,), # noqa: E501 + 'created_at': (datetime, none_type,), # noqa: E501 + 'deleted_at': (datetime, none_type,), # noqa: E501 + 'updated_at': (datetime, none_type,), # noqa: E501 + 'service_id': (str,), # noqa: E501 + 'version': (str,), # noqa: E501 'name': (str,), # noqa: E501 'shield': (str, none_type,), # noqa: E501 'request_condition': (str, none_type,), # noqa: E501 - 'max_conn_default': (int,), # noqa: E501 - 'connect_timeout': (int,), # noqa: E501 - 'first_byte_timeout': (int,), # noqa: E501 - 'quorum': (int,), # noqa: E501 'tls_ciphers': (str, none_type,), # noqa: E501 'tls_sni_hostname': (str, none_type,), # noqa: E501 - 'tls_check_cert': (int, none_type,), # noqa: E501 'min_tls_version': (int, none_type,), # noqa: E501 'max_tls_version': (int, none_type,), # noqa: E501 'healthcheck': (str, none_type,), # noqa: E501 'comment': (str, none_type,), # noqa: E501 'type': (str,), # noqa: E501 'override_host': (str, none_type,), # noqa: E501 - 'created_at': (datetime, none_type,), # noqa: E501 - 'deleted_at': (datetime, none_type,), # noqa: E501 - 'updated_at': (datetime, none_type,), # noqa: E501 - 'service_id': (str,), # noqa: E501 - 'version': (int,), # noqa: E501 + 'between_bytes_timeout': (str,), # noqa: E501 + 'connect_timeout': (str,), # noqa: E501 + 'first_byte_timeout': (str,), # noqa: E501 + 'max_conn_default': (str,), # noqa: E501 + 'tls_check_cert': (str, none_type,), # noqa: E501 'id': (str,), # noqa: E501 + 'quorum': (str,), # noqa: E501 } @cached_property @@ -144,28 +145,29 @@ def discriminator(): 'tls_client_key': 'tls_client_key', # noqa: E501 'tls_cert_hostname': 'tls_cert_hostname', # noqa: E501 'use_tls': 'use_tls', # noqa: E501 + 'created_at': 'created_at', # noqa: E501 + 'deleted_at': 'deleted_at', # noqa: E501 + 'updated_at': 'updated_at', # noqa: E501 + 'service_id': 'service_id', # noqa: E501 + 'version': 'version', # noqa: E501 'name': 'name', # noqa: E501 'shield': 'shield', # noqa: E501 'request_condition': 'request_condition', # noqa: E501 - 'max_conn_default': 'max_conn_default', # noqa: E501 - 'connect_timeout': 'connect_timeout', # noqa: E501 - 'first_byte_timeout': 'first_byte_timeout', # noqa: E501 - 'quorum': 'quorum', # noqa: E501 'tls_ciphers': 'tls_ciphers', # noqa: E501 'tls_sni_hostname': 'tls_sni_hostname', # noqa: E501 - 'tls_check_cert': 'tls_check_cert', # noqa: E501 'min_tls_version': 'min_tls_version', # noqa: E501 'max_tls_version': 'max_tls_version', # noqa: E501 'healthcheck': 'healthcheck', # noqa: E501 'comment': 'comment', # noqa: E501 'type': 'type', # noqa: E501 'override_host': 'override_host', # noqa: E501 - 'created_at': 'created_at', # noqa: E501 - 'deleted_at': 'deleted_at', # noqa: E501 - 'updated_at': 'updated_at', # noqa: E501 - 'service_id': 'service_id', # noqa: E501 - 'version': 'version', # noqa: E501 + 'between_bytes_timeout': 'between_bytes_timeout', # noqa: E501 + 'connect_timeout': 'connect_timeout', # noqa: E501 + 'first_byte_timeout': 'first_byte_timeout', # noqa: E501 + 'max_conn_default': 'max_conn_default', # noqa: E501 + 'tls_check_cert': 'tls_check_cert', # noqa: E501 'id': 'id', # noqa: E501 + 'quorum': 'quorum', # noqa: E501 } read_only_vars = { @@ -217,29 +219,30 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 tls_client_cert (str, none_type): The client certificate used to make authenticated requests. Must be in PEM format.. [optional] if omitted the server will use the default value of "null" # noqa: E501 tls_client_key (str, none_type): The client private key used to make authenticated requests. Must be in PEM format.. [optional] if omitted the server will use the default value of "null" # noqa: E501 tls_cert_hostname (str, none_type): The hostname used to verify a server's certificate. It can either be the Common Name (CN) or a Subject Alternative Name (SAN).. [optional] if omitted the server will use the default value of "null" # noqa: E501 - use_tls (int): Whether to use TLS.. [optional] if omitted the server will use the default value of 0 # noqa: E501 + use_tls (str): Whether to use TLS.. [optional] if omitted the server will use the default value of "0" # noqa: E501 + created_at (datetime, none_type): Date and time in ISO 8601 format.. [optional] # noqa: E501 + deleted_at (datetime, none_type): Date and time in ISO 8601 format.. [optional] # noqa: E501 + updated_at (datetime, none_type): Date and time in ISO 8601 format.. [optional] # noqa: E501 + service_id (str): [optional] # noqa: E501 + version (str): [optional] # noqa: E501 name (str): Name for the Pool.. [optional] # noqa: E501 shield (str, none_type): 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] if omitted the server will use the default value of "null" # noqa: E501 request_condition (str, none_type): Condition which, if met, will select this configuration during a request. Optional.. [optional] # noqa: E501 - max_conn_default (int): Maximum number of connections. Optional.. [optional] if omitted the server will use the default value of 200 # noqa: E501 - connect_timeout (int): How long to wait for a timeout in milliseconds. Optional.. [optional] # noqa: E501 - first_byte_timeout (int): How long to wait for the first byte in milliseconds. Optional.. [optional] # noqa: E501 - quorum (int): Percentage of capacity (`0-100`) that needs to be operationally available for a pool to be considered up.. [optional] if omitted the server will use the default value of 75 # noqa: E501 tls_ciphers (str, none_type): List of OpenSSL ciphers (see the [openssl.org manpages](https://www.openssl.org/docs/man1.1.1/man1/ciphers.html) for details). Optional.. [optional] # noqa: E501 tls_sni_hostname (str, none_type): SNI hostname. Optional.. [optional] # noqa: E501 - tls_check_cert (int, none_type): Be strict on checking TLS certs. Optional.. [optional] # noqa: E501 min_tls_version (int, none_type): Minimum allowed TLS version on connections to this server. Optional.. [optional] # noqa: E501 max_tls_version (int, none_type): Maximum allowed TLS version on connections to this server. Optional.. [optional] # noqa: E501 healthcheck (str, none_type): Name of the healthcheck to use with this pool. Can be empty and could be reused across multiple backend and pools.. [optional] # noqa: E501 comment (str, none_type): A freeform descriptive note.. [optional] # noqa: E501 type (str): What type of load balance group to use.. [optional] # noqa: E501 override_host (str, none_type): 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] if omitted the server will use the default value of "null" # noqa: E501 - created_at (datetime, none_type): Date and time in ISO 8601 format.. [optional] # noqa: E501 - deleted_at (datetime, none_type): Date and time in ISO 8601 format.. [optional] # noqa: E501 - updated_at (datetime, none_type): Date and time in ISO 8601 format.. [optional] # noqa: E501 - service_id (str): [optional] # noqa: E501 - version (int): [optional] # noqa: E501 + between_bytes_timeout (str): 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] # noqa: E501 + connect_timeout (str): How long to wait for a timeout in milliseconds.. [optional] # noqa: E501 + first_byte_timeout (str): How long to wait for the first byte in milliseconds.. [optional] # noqa: E501 + max_conn_default (str): Maximum number of connections.. [optional] if omitted the server will use the default value of "200" # noqa: E501 + tls_check_cert (str, none_type): Be strict on checking TLS certs.. [optional] # noqa: E501 id (str): [optional] # noqa: E501 + quorum (str): Percentage of capacity (`0-100`) that needs to be operationally available for a pool to be considered up.. [optional] if omitted the server will use the default value of "75" # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -343,29 +346,30 @@ def __init__(self, *args, **kwargs): # noqa: E501 tls_client_cert (str, none_type): The client certificate used to make authenticated requests. Must be in PEM format.. [optional] if omitted the server will use the default value of "null" # noqa: E501 tls_client_key (str, none_type): The client private key used to make authenticated requests. Must be in PEM format.. [optional] if omitted the server will use the default value of "null" # noqa: E501 tls_cert_hostname (str, none_type): The hostname used to verify a server's certificate. It can either be the Common Name (CN) or a Subject Alternative Name (SAN).. [optional] if omitted the server will use the default value of "null" # noqa: E501 - use_tls (int): Whether to use TLS.. [optional] if omitted the server will use the default value of 0 # noqa: E501 + use_tls (str): Whether to use TLS.. [optional] if omitted the server will use the default value of "0" # noqa: E501 + created_at (datetime, none_type): Date and time in ISO 8601 format.. [optional] # noqa: E501 + deleted_at (datetime, none_type): Date and time in ISO 8601 format.. [optional] # noqa: E501 + updated_at (datetime, none_type): Date and time in ISO 8601 format.. [optional] # noqa: E501 + service_id (str): [optional] # noqa: E501 + version (str): [optional] # noqa: E501 name (str): Name for the Pool.. [optional] # noqa: E501 shield (str, none_type): 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] if omitted the server will use the default value of "null" # noqa: E501 request_condition (str, none_type): Condition which, if met, will select this configuration during a request. Optional.. [optional] # noqa: E501 - max_conn_default (int): Maximum number of connections. Optional.. [optional] if omitted the server will use the default value of 200 # noqa: E501 - connect_timeout (int): How long to wait for a timeout in milliseconds. Optional.. [optional] # noqa: E501 - first_byte_timeout (int): How long to wait for the first byte in milliseconds. Optional.. [optional] # noqa: E501 - quorum (int): Percentage of capacity (`0-100`) that needs to be operationally available for a pool to be considered up.. [optional] if omitted the server will use the default value of 75 # noqa: E501 tls_ciphers (str, none_type): List of OpenSSL ciphers (see the [openssl.org manpages](https://www.openssl.org/docs/man1.1.1/man1/ciphers.html) for details). Optional.. [optional] # noqa: E501 tls_sni_hostname (str, none_type): SNI hostname. Optional.. [optional] # noqa: E501 - tls_check_cert (int, none_type): Be strict on checking TLS certs. Optional.. [optional] # noqa: E501 min_tls_version (int, none_type): Minimum allowed TLS version on connections to this server. Optional.. [optional] # noqa: E501 max_tls_version (int, none_type): Maximum allowed TLS version on connections to this server. Optional.. [optional] # noqa: E501 healthcheck (str, none_type): Name of the healthcheck to use with this pool. Can be empty and could be reused across multiple backend and pools.. [optional] # noqa: E501 comment (str, none_type): A freeform descriptive note.. [optional] # noqa: E501 type (str): What type of load balance group to use.. [optional] # noqa: E501 override_host (str, none_type): 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] if omitted the server will use the default value of "null" # noqa: E501 - created_at (datetime, none_type): Date and time in ISO 8601 format.. [optional] # noqa: E501 - deleted_at (datetime, none_type): Date and time in ISO 8601 format.. [optional] # noqa: E501 - updated_at (datetime, none_type): Date and time in ISO 8601 format.. [optional] # noqa: E501 - service_id (str): [optional] # noqa: E501 - version (int): [optional] # noqa: E501 + between_bytes_timeout (str): 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] # noqa: E501 + connect_timeout (str): How long to wait for a timeout in milliseconds.. [optional] # noqa: E501 + first_byte_timeout (str): How long to wait for the first byte in milliseconds.. [optional] # noqa: E501 + max_conn_default (str): Maximum number of connections.. [optional] if omitted the server will use the default value of "200" # noqa: E501 + tls_check_cert (str, none_type): Be strict on checking TLS certs.. [optional] # noqa: E501 id (str): [optional] # noqa: E501 + quorum (str): Percentage of capacity (`0-100`) that needs to be operationally available for a pool to be considered up.. [optional] if omitted the server will use the default value of "75" # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -431,10 +435,12 @@ def _composed_schemas(): 'anyOf': [ ], 'allOf': [ - Pool, + PoolAdditional, PoolResponseAllOf, - ServiceIdAndVersion, + PoolResponseCommon, + ServiceIdAndVersionString, Timestamps, + TlsCommonResponse, ], 'oneOf': [ ], diff --git a/fastly/model/pool_response_all_of.py b/fastly/model/pool_response_all_of.py index 34f076d..7927287 100644 --- a/fastly/model/pool_response_all_of.py +++ b/fastly/model/pool_response_all_of.py @@ -79,7 +79,7 @@ def openapi_types(): and the value is attribute type. """ return { - 'id': (str,), # noqa: E501 + 'quorum': (str,), # noqa: E501 } @cached_property @@ -88,11 +88,10 @@ def discriminator(): attribute_map = { - 'id': 'id', # noqa: E501 + 'quorum': 'quorum', # noqa: E501 } read_only_vars = { - 'id', # noqa: E501 } _composed_schemas = {} @@ -133,7 +132,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - id (str): [optional] # noqa: E501 + quorum (str): Percentage of capacity (`0-100`) that needs to be operationally available for a pool to be considered up.. [optional] if omitted the server will use the default value of "75" # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -215,7 +214,7 @@ def __init__(self, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - id (str): [optional] # noqa: E501 + quorum (str): Percentage of capacity (`0-100`) that needs to be operationally available for a pool to be considered up.. [optional] if omitted the server will use the default value of "75" # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/fastly/model/pool_response_common.py b/fastly/model/pool_response_common.py new file mode 100644 index 0000000..9180e56 --- /dev/null +++ b/fastly/model/pool_response_common.py @@ -0,0 +1,274 @@ +""" + Fastly API + + Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://developer.fastly.com/reference/api/) # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Contact: oss@fastly.com +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from fastly.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from fastly.exceptions import ApiAttributeError + + + +class PoolResponseCommon(ModelNormal): + """NOTE: This class is auto generated. + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + return { + 'between_bytes_timeout': (str,), # noqa: E501 + 'connect_timeout': (str,), # noqa: E501 + 'first_byte_timeout': (str,), # noqa: E501 + 'max_conn_default': (str,), # noqa: E501 + 'tls_check_cert': (str, none_type,), # noqa: E501 + 'id': (str,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'between_bytes_timeout': 'between_bytes_timeout', # noqa: E501 + 'connect_timeout': 'connect_timeout', # noqa: E501 + 'first_byte_timeout': 'first_byte_timeout', # noqa: E501 + 'max_conn_default': 'max_conn_default', # noqa: E501 + 'tls_check_cert': 'tls_check_cert', # noqa: E501 + 'id': 'id', # noqa: E501 + } + + read_only_vars = { + 'id', # noqa: E501 + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """PoolResponseCommon - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + between_bytes_timeout (str): 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] # noqa: E501 + connect_timeout (str): How long to wait for a timeout in milliseconds.. [optional] # noqa: E501 + first_byte_timeout (str): How long to wait for the first byte in milliseconds.. [optional] # noqa: E501 + max_conn_default (str): Maximum number of connections.. [optional] if omitted the server will use the default value of "200" # noqa: E501 + tls_check_cert (str, none_type): Be strict on checking TLS certs.. [optional] # noqa: E501 + id (str): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """PoolResponseCommon - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + between_bytes_timeout (str): 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] # noqa: E501 + connect_timeout (str): How long to wait for a timeout in milliseconds.. [optional] # noqa: E501 + first_byte_timeout (str): How long to wait for the first byte in milliseconds.. [optional] # noqa: E501 + max_conn_default (str): Maximum number of connections.. [optional] if omitted the server will use the default value of "200" # noqa: E501 + tls_check_cert (str, none_type): Be strict on checking TLS certs.. [optional] # noqa: E501 + id (str): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/fastly/model/pool.py b/fastly/model/pool_response_post.py similarity index 80% rename from fastly/model/pool.py rename to fastly/model/pool_response_post.py index 931fb5b..1a60dd7 100644 --- a/fastly/model/pool.py +++ b/fastly/model/pool_response_post.py @@ -30,13 +30,21 @@ def lazy_import(): - from fastly.model.pool_all_of import PoolAllOf - from fastly.model.tls_common import TlsCommon - globals()['PoolAllOf'] = PoolAllOf - globals()['TlsCommon'] = TlsCommon - - -class Pool(ModelComposed): + from fastly.model.pool_additional import PoolAdditional + from fastly.model.pool_response_common import PoolResponseCommon + from fastly.model.pool_response_post_all_of import PoolResponsePostAllOf + from fastly.model.service_id_and_version_string import ServiceIdAndVersionString + from fastly.model.timestamps import Timestamps + from fastly.model.tls_common_response import TlsCommonResponse + globals()['PoolAdditional'] = PoolAdditional + globals()['PoolResponseCommon'] = PoolResponseCommon + globals()['PoolResponsePostAllOf'] = PoolResponsePostAllOf + globals()['ServiceIdAndVersionString'] = ServiceIdAndVersionString + globals()['Timestamps'] = Timestamps + globals()['TlsCommonResponse'] = TlsCommonResponse + + +class PoolResponsePost(ModelComposed): """NOTE: This class is auto generated. Do not edit the class manually. @@ -60,8 +68,8 @@ class Pool(ModelComposed): allowed_values = { ('use_tls',): { - 'no_tls': 0, - 'use_tls': 1, + 'no_tls': "0", + 'use_tls': "1", }, ('type',): { 'RANDOM': "random", @@ -71,10 +79,6 @@ class Pool(ModelComposed): } validations = { - ('quorum',): { - 'inclusive_maximum': 100, - 'inclusive_minimum': 0, - }, } @cached_property @@ -104,23 +108,30 @@ def openapi_types(): 'tls_client_cert': (str, none_type,), # noqa: E501 'tls_client_key': (str, none_type,), # noqa: E501 'tls_cert_hostname': (str, none_type,), # noqa: E501 - 'use_tls': (int,), # noqa: E501 + 'use_tls': (str,), # noqa: E501 + 'created_at': (datetime, none_type,), # noqa: E501 + 'deleted_at': (datetime, none_type,), # noqa: E501 + 'updated_at': (datetime, none_type,), # noqa: E501 + 'service_id': (str,), # noqa: E501 + 'version': (str,), # noqa: E501 'name': (str,), # noqa: E501 'shield': (str, none_type,), # noqa: E501 'request_condition': (str, none_type,), # noqa: E501 - 'max_conn_default': (int,), # noqa: E501 - 'connect_timeout': (int,), # noqa: E501 - 'first_byte_timeout': (int,), # noqa: E501 - 'quorum': (int,), # noqa: E501 'tls_ciphers': (str, none_type,), # noqa: E501 'tls_sni_hostname': (str, none_type,), # noqa: E501 - 'tls_check_cert': (int, none_type,), # noqa: E501 'min_tls_version': (int, none_type,), # noqa: E501 'max_tls_version': (int, none_type,), # noqa: E501 'healthcheck': (str, none_type,), # noqa: E501 'comment': (str, none_type,), # noqa: E501 'type': (str,), # noqa: E501 'override_host': (str, none_type,), # noqa: E501 + 'between_bytes_timeout': (str,), # noqa: E501 + 'connect_timeout': (str,), # noqa: E501 + 'first_byte_timeout': (str,), # noqa: E501 + 'max_conn_default': (str,), # noqa: E501 + 'tls_check_cert': (str, none_type,), # noqa: E501 + 'id': (str,), # noqa: E501 + 'quorum': (int,), # noqa: E501 } @cached_property @@ -134,31 +145,44 @@ def discriminator(): 'tls_client_key': 'tls_client_key', # noqa: E501 'tls_cert_hostname': 'tls_cert_hostname', # noqa: E501 'use_tls': 'use_tls', # noqa: E501 + 'created_at': 'created_at', # noqa: E501 + 'deleted_at': 'deleted_at', # noqa: E501 + 'updated_at': 'updated_at', # noqa: E501 + 'service_id': 'service_id', # noqa: E501 + 'version': 'version', # noqa: E501 'name': 'name', # noqa: E501 'shield': 'shield', # noqa: E501 'request_condition': 'request_condition', # noqa: E501 - 'max_conn_default': 'max_conn_default', # noqa: E501 - 'connect_timeout': 'connect_timeout', # noqa: E501 - 'first_byte_timeout': 'first_byte_timeout', # noqa: E501 - 'quorum': 'quorum', # noqa: E501 'tls_ciphers': 'tls_ciphers', # noqa: E501 'tls_sni_hostname': 'tls_sni_hostname', # noqa: E501 - 'tls_check_cert': 'tls_check_cert', # noqa: E501 'min_tls_version': 'min_tls_version', # noqa: E501 'max_tls_version': 'max_tls_version', # noqa: E501 'healthcheck': 'healthcheck', # noqa: E501 'comment': 'comment', # noqa: E501 'type': 'type', # noqa: E501 'override_host': 'override_host', # noqa: E501 + 'between_bytes_timeout': 'between_bytes_timeout', # noqa: E501 + 'connect_timeout': 'connect_timeout', # noqa: E501 + 'first_byte_timeout': 'first_byte_timeout', # noqa: E501 + 'max_conn_default': 'max_conn_default', # noqa: E501 + 'tls_check_cert': 'tls_check_cert', # noqa: E501 + 'id': 'id', # noqa: E501 + 'quorum': 'quorum', # noqa: E501 } read_only_vars = { + 'created_at', # noqa: E501 + 'deleted_at', # noqa: E501 + 'updated_at', # noqa: E501 + 'service_id', # noqa: E501 + 'version', # noqa: E501 + 'id', # noqa: E501 } @classmethod @convert_js_args_to_python_args def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 - """Pool - a model defined in OpenAPI + """PoolResponsePost - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -195,23 +219,30 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 tls_client_cert (str, none_type): The client certificate used to make authenticated requests. Must be in PEM format.. [optional] if omitted the server will use the default value of "null" # noqa: E501 tls_client_key (str, none_type): The client private key used to make authenticated requests. Must be in PEM format.. [optional] if omitted the server will use the default value of "null" # noqa: E501 tls_cert_hostname (str, none_type): The hostname used to verify a server's certificate. It can either be the Common Name (CN) or a Subject Alternative Name (SAN).. [optional] if omitted the server will use the default value of "null" # noqa: E501 - use_tls (int): Whether to use TLS.. [optional] if omitted the server will use the default value of 0 # noqa: E501 + use_tls (str): Whether to use TLS.. [optional] if omitted the server will use the default value of "0" # noqa: E501 + created_at (datetime, none_type): Date and time in ISO 8601 format.. [optional] # noqa: E501 + deleted_at (datetime, none_type): Date and time in ISO 8601 format.. [optional] # noqa: E501 + updated_at (datetime, none_type): Date and time in ISO 8601 format.. [optional] # noqa: E501 + service_id (str): [optional] # noqa: E501 + version (str): [optional] # noqa: E501 name (str): Name for the Pool.. [optional] # noqa: E501 shield (str, none_type): 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] if omitted the server will use the default value of "null" # noqa: E501 request_condition (str, none_type): Condition which, if met, will select this configuration during a request. Optional.. [optional] # noqa: E501 - max_conn_default (int): Maximum number of connections. Optional.. [optional] if omitted the server will use the default value of 200 # noqa: E501 - connect_timeout (int): How long to wait for a timeout in milliseconds. Optional.. [optional] # noqa: E501 - first_byte_timeout (int): How long to wait for the first byte in milliseconds. Optional.. [optional] # noqa: E501 - quorum (int): Percentage of capacity (`0-100`) that needs to be operationally available for a pool to be considered up.. [optional] if omitted the server will use the default value of 75 # noqa: E501 tls_ciphers (str, none_type): List of OpenSSL ciphers (see the [openssl.org manpages](https://www.openssl.org/docs/man1.1.1/man1/ciphers.html) for details). Optional.. [optional] # noqa: E501 tls_sni_hostname (str, none_type): SNI hostname. Optional.. [optional] # noqa: E501 - tls_check_cert (int, none_type): Be strict on checking TLS certs. Optional.. [optional] # noqa: E501 min_tls_version (int, none_type): Minimum allowed TLS version on connections to this server. Optional.. [optional] # noqa: E501 max_tls_version (int, none_type): Maximum allowed TLS version on connections to this server. Optional.. [optional] # noqa: E501 healthcheck (str, none_type): Name of the healthcheck to use with this pool. Can be empty and could be reused across multiple backend and pools.. [optional] # noqa: E501 comment (str, none_type): A freeform descriptive note.. [optional] # noqa: E501 type (str): What type of load balance group to use.. [optional] # noqa: E501 override_host (str, none_type): 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] if omitted the server will use the default value of "null" # noqa: E501 + between_bytes_timeout (str): 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] # noqa: E501 + connect_timeout (str): How long to wait for a timeout in milliseconds.. [optional] # noqa: E501 + first_byte_timeout (str): How long to wait for the first byte in milliseconds.. [optional] # noqa: E501 + max_conn_default (str): Maximum number of connections.. [optional] if omitted the server will use the default value of "200" # noqa: E501 + tls_check_cert (str, none_type): Be strict on checking TLS certs.. [optional] # noqa: E501 + id (str): [optional] # noqa: E501 + quorum (int): Percentage of capacity (`0-100`) that needs to be operationally available for a pool to be considered up.. [optional] if omitted the server will use the default value of 75 # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -278,7 +309,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 @convert_js_args_to_python_args def __init__(self, *args, **kwargs): # noqa: E501 - """Pool - a model defined in OpenAPI + """PoolResponsePost - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -315,23 +346,30 @@ def __init__(self, *args, **kwargs): # noqa: E501 tls_client_cert (str, none_type): The client certificate used to make authenticated requests. Must be in PEM format.. [optional] if omitted the server will use the default value of "null" # noqa: E501 tls_client_key (str, none_type): The client private key used to make authenticated requests. Must be in PEM format.. [optional] if omitted the server will use the default value of "null" # noqa: E501 tls_cert_hostname (str, none_type): The hostname used to verify a server's certificate. It can either be the Common Name (CN) or a Subject Alternative Name (SAN).. [optional] if omitted the server will use the default value of "null" # noqa: E501 - use_tls (int): Whether to use TLS.. [optional] if omitted the server will use the default value of 0 # noqa: E501 + use_tls (str): Whether to use TLS.. [optional] if omitted the server will use the default value of "0" # noqa: E501 + created_at (datetime, none_type): Date and time in ISO 8601 format.. [optional] # noqa: E501 + deleted_at (datetime, none_type): Date and time in ISO 8601 format.. [optional] # noqa: E501 + updated_at (datetime, none_type): Date and time in ISO 8601 format.. [optional] # noqa: E501 + service_id (str): [optional] # noqa: E501 + version (str): [optional] # noqa: E501 name (str): Name for the Pool.. [optional] # noqa: E501 shield (str, none_type): 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] if omitted the server will use the default value of "null" # noqa: E501 request_condition (str, none_type): Condition which, if met, will select this configuration during a request. Optional.. [optional] # noqa: E501 - max_conn_default (int): Maximum number of connections. Optional.. [optional] if omitted the server will use the default value of 200 # noqa: E501 - connect_timeout (int): How long to wait for a timeout in milliseconds. Optional.. [optional] # noqa: E501 - first_byte_timeout (int): How long to wait for the first byte in milliseconds. Optional.. [optional] # noqa: E501 - quorum (int): Percentage of capacity (`0-100`) that needs to be operationally available for a pool to be considered up.. [optional] if omitted the server will use the default value of 75 # noqa: E501 tls_ciphers (str, none_type): List of OpenSSL ciphers (see the [openssl.org manpages](https://www.openssl.org/docs/man1.1.1/man1/ciphers.html) for details). Optional.. [optional] # noqa: E501 tls_sni_hostname (str, none_type): SNI hostname. Optional.. [optional] # noqa: E501 - tls_check_cert (int, none_type): Be strict on checking TLS certs. Optional.. [optional] # noqa: E501 min_tls_version (int, none_type): Minimum allowed TLS version on connections to this server. Optional.. [optional] # noqa: E501 max_tls_version (int, none_type): Maximum allowed TLS version on connections to this server. Optional.. [optional] # noqa: E501 healthcheck (str, none_type): Name of the healthcheck to use with this pool. Can be empty and could be reused across multiple backend and pools.. [optional] # noqa: E501 comment (str, none_type): A freeform descriptive note.. [optional] # noqa: E501 type (str): What type of load balance group to use.. [optional] # noqa: E501 override_host (str, none_type): 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] if omitted the server will use the default value of "null" # noqa: E501 + between_bytes_timeout (str): 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] # noqa: E501 + connect_timeout (str): How long to wait for a timeout in milliseconds.. [optional] # noqa: E501 + first_byte_timeout (str): How long to wait for the first byte in milliseconds.. [optional] # noqa: E501 + max_conn_default (str): Maximum number of connections.. [optional] if omitted the server will use the default value of "200" # noqa: E501 + tls_check_cert (str, none_type): Be strict on checking TLS certs.. [optional] # noqa: E501 + id (str): [optional] # noqa: E501 + quorum (int): Percentage of capacity (`0-100`) that needs to be operationally available for a pool to be considered up.. [optional] if omitted the server will use the default value of 75 # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -397,8 +435,12 @@ def _composed_schemas(): 'anyOf': [ ], 'allOf': [ - PoolAllOf, - TlsCommon, + PoolAdditional, + PoolResponseCommon, + PoolResponsePostAllOf, + ServiceIdAndVersionString, + Timestamps, + TlsCommonResponse, ], 'oneOf': [ ], diff --git a/fastly/model/pool_response_post_all_of.py b/fastly/model/pool_response_post_all_of.py new file mode 100644 index 0000000..d528792 --- /dev/null +++ b/fastly/model/pool_response_post_all_of.py @@ -0,0 +1,253 @@ +""" + Fastly API + + Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://developer.fastly.com/reference/api/) # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Contact: oss@fastly.com +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from fastly.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from fastly.exceptions import ApiAttributeError + + + +class PoolResponsePostAllOf(ModelNormal): + """NOTE: This class is auto generated. + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + return { + 'quorum': (int,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'quorum': 'quorum', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """PoolResponsePostAllOf - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + quorum (int): Percentage of capacity (`0-100`) that needs to be operationally available for a pool to be considered up.. [optional] if omitted the server will use the default value of 75 # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """PoolResponsePostAllOf - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + quorum (int): Percentage of capacity (`0-100`) that needs to be operationally available for a pool to be considered up.. [optional] if omitted the server will use the default value of 75 # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/fastly/model/read_only_service_id.py b/fastly/model/read_only_service_id.py index a328916..ba10d29 100644 --- a/fastly/model/read_only_service_id.py +++ b/fastly/model/read_only_service_id.py @@ -58,13 +58,7 @@ class ReadOnlyServiceId(ModelNormal): validations = { } - @cached_property - def additional_properties_type(): - """ - This must be a method because a model may have properties that are - of type self, this must run after the class is loaded - """ - return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + additional_properties_type = None _nullable = False diff --git a/fastly/model/read_only_version.py b/fastly/model/read_only_version.py index cefe795..1396493 100644 --- a/fastly/model/read_only_version.py +++ b/fastly/model/read_only_version.py @@ -58,13 +58,7 @@ class ReadOnlyVersion(ModelNormal): validations = { } - @cached_property - def additional_properties_type(): - """ - This must be a method because a model may have properties that are - of type self, this must run after the class is loaded - """ - return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + additional_properties_type = None _nullable = False diff --git a/fastly/model/recorded_timestamp.py b/fastly/model/recorded_timestamp.py index 934b5b6..13b8abd 100644 --- a/fastly/model/recorded_timestamp.py +++ b/fastly/model/recorded_timestamp.py @@ -58,13 +58,7 @@ class RecordedTimestamp(ModelNormal): validations = { } - @cached_property - def additional_properties_type(): - """ - This must be a method because a model may have properties that are - of type self, this must run after the class is loaded - """ - return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + additional_properties_type = None _nullable = False diff --git a/fastly/model/request_settings.py b/fastly/model/request_settings_additional.py similarity index 84% rename from fastly/model/request_settings.py rename to fastly/model/request_settings_additional.py index 0c20740..00d3efc 100644 --- a/fastly/model/request_settings.py +++ b/fastly/model/request_settings_additional.py @@ -30,7 +30,7 @@ -class RequestSettings(ModelNormal): +class RequestSettingsAdditional(ModelNormal): """NOTE: This class is auto generated. Do not edit the class manually. @@ -92,16 +92,10 @@ def openapi_types(): """ return { 'action': (str, none_type,), # noqa: E501 - 'bypass_busy_wait': (int,), # noqa: E501 'default_host': (str, none_type,), # noqa: E501 - 'force_miss': (int,), # noqa: E501 - 'force_ssl': (int,), # noqa: E501 - 'geo_headers': (int,), # noqa: E501 'hash_keys': (str, none_type,), # noqa: E501 - 'max_stale_age': (int,), # noqa: E501 'name': (str,), # noqa: E501 'request_condition': (str, none_type,), # noqa: E501 - 'timer_support': (int,), # noqa: E501 'xff': (str,), # noqa: E501 } @@ -112,16 +106,10 @@ def discriminator(): attribute_map = { 'action': 'action', # noqa: E501 - 'bypass_busy_wait': 'bypass_busy_wait', # noqa: E501 'default_host': 'default_host', # noqa: E501 - 'force_miss': 'force_miss', # noqa: E501 - 'force_ssl': 'force_ssl', # noqa: E501 - 'geo_headers': 'geo_headers', # noqa: E501 'hash_keys': 'hash_keys', # noqa: E501 - 'max_stale_age': 'max_stale_age', # noqa: E501 'name': 'name', # noqa: E501 'request_condition': 'request_condition', # noqa: E501 - 'timer_support': 'timer_support', # noqa: E501 'xff': 'xff', # noqa: E501 } @@ -133,7 +121,7 @@ def discriminator(): @classmethod @convert_js_args_to_python_args def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 - """RequestSettings - a model defined in OpenAPI + """RequestSettingsAdditional - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -167,16 +155,10 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 through its discriminator because we passed in _visited_composed_classes = (Animal,) action (str, none_type): Allows you to terminate request handling and immediately perform an action.. [optional] # noqa: E501 - bypass_busy_wait (int): Disable collapsed forwarding, so you don't wait for other objects to origin.. [optional] # noqa: E501 default_host (str, none_type): Sets the host header.. [optional] # noqa: E501 - 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] # noqa: E501 - force_ssl (int): Forces the request use SSL (redirects a non-SSL to SSL).. [optional] # noqa: E501 - geo_headers (int): Injects Fastly-Geo-Country, Fastly-Geo-City, and Fastly-Geo-Region into the request headers.. [optional] # noqa: E501 hash_keys (str, none_type): Comma separated list of varnish request object fields that should be in the hash key.. [optional] # noqa: E501 - max_stale_age (int): How old an object is allowed to be to serve stale-if-error or stale-while-revalidate.. [optional] # noqa: E501 name (str): Name for the request settings.. [optional] # noqa: E501 request_condition (str, none_type): Condition which, if met, will select this configuration during a request. Optional.. [optional] # noqa: E501 - timer_support (int): Injects the X-Timer info into the request for viewing origin fetch durations.. [optional] # noqa: E501 xff (str): Short for X-Forwarded-For.. [optional] # noqa: E501 """ @@ -226,7 +208,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 @convert_js_args_to_python_args def __init__(self, *args, **kwargs): # noqa: E501 - """RequestSettings - a model defined in OpenAPI + """RequestSettingsAdditional - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -260,16 +242,10 @@ def __init__(self, *args, **kwargs): # noqa: E501 through its discriminator because we passed in _visited_composed_classes = (Animal,) action (str, none_type): Allows you to terminate request handling and immediately perform an action.. [optional] # noqa: E501 - bypass_busy_wait (int): Disable collapsed forwarding, so you don't wait for other objects to origin.. [optional] # noqa: E501 default_host (str, none_type): Sets the host header.. [optional] # noqa: E501 - 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] # noqa: E501 - force_ssl (int): Forces the request use SSL (redirects a non-SSL to SSL).. [optional] # noqa: E501 - geo_headers (int): Injects Fastly-Geo-Country, Fastly-Geo-City, and Fastly-Geo-Region into the request headers.. [optional] # noqa: E501 hash_keys (str, none_type): Comma separated list of varnish request object fields that should be in the hash key.. [optional] # noqa: E501 - max_stale_age (int): How old an object is allowed to be to serve stale-if-error or stale-while-revalidate.. [optional] # noqa: E501 name (str): Name for the request settings.. [optional] # noqa: E501 request_condition (str, none_type): Condition which, if met, will select this configuration during a request. Optional.. [optional] # noqa: E501 - timer_support (int): Injects the X-Timer info into the request for viewing origin fetch durations.. [optional] # noqa: E501 xff (str): Short for X-Forwarded-For.. [optional] # noqa: E501 """ diff --git a/fastly/model/request_settings_response.py b/fastly/model/request_settings_response.py index 6f7909d..6c4e18d 100644 --- a/fastly/model/request_settings_response.py +++ b/fastly/model/request_settings_response.py @@ -30,11 +30,13 @@ def lazy_import(): - from fastly.model.request_settings import RequestSettings - from fastly.model.service_id_and_version import ServiceIdAndVersion + from fastly.model.request_settings_additional import RequestSettingsAdditional + from fastly.model.request_settings_response_all_of import RequestSettingsResponseAllOf + from fastly.model.service_id_and_version_string import ServiceIdAndVersionString from fastly.model.timestamps import Timestamps - globals()['RequestSettings'] = RequestSettings - globals()['ServiceIdAndVersion'] = ServiceIdAndVersion + globals()['RequestSettingsAdditional'] = RequestSettingsAdditional + globals()['RequestSettingsResponseAllOf'] = RequestSettingsResponseAllOf + globals()['ServiceIdAndVersionString'] = ServiceIdAndVersionString globals()['Timestamps'] = Timestamps @@ -101,23 +103,23 @@ def openapi_types(): """ lazy_import() return { + 'created_at': (datetime, none_type,), # noqa: E501 + 'deleted_at': (datetime, none_type,), # noqa: E501 + 'updated_at': (datetime, none_type,), # noqa: E501 + 'service_id': (str,), # noqa: E501 + 'version': (str,), # noqa: E501 'action': (str, none_type,), # noqa: E501 - 'bypass_busy_wait': (int,), # noqa: E501 'default_host': (str, none_type,), # noqa: E501 - 'force_miss': (int,), # noqa: E501 - 'force_ssl': (int,), # noqa: E501 - 'geo_headers': (int,), # noqa: E501 'hash_keys': (str, none_type,), # noqa: E501 - 'max_stale_age': (int,), # noqa: E501 'name': (str,), # noqa: E501 'request_condition': (str, none_type,), # noqa: E501 - 'timer_support': (int,), # noqa: E501 'xff': (str,), # noqa: E501 - 'service_id': (str,), # noqa: E501 - 'version': (int,), # noqa: E501 - 'created_at': (datetime, none_type,), # noqa: E501 - 'deleted_at': (datetime, none_type,), # noqa: E501 - 'updated_at': (datetime, none_type,), # noqa: E501 + 'bypass_busy_wait': (str,), # noqa: E501 + 'force_miss': (str,), # noqa: E501 + 'force_ssl': (str,), # noqa: E501 + 'geo_headers': (str,), # noqa: E501 + 'max_stale_age': (str,), # noqa: E501 + 'timer_support': (str,), # noqa: E501 } @cached_property @@ -126,31 +128,31 @@ def discriminator(): attribute_map = { + 'created_at': 'created_at', # noqa: E501 + 'deleted_at': 'deleted_at', # noqa: E501 + 'updated_at': 'updated_at', # noqa: E501 + 'service_id': 'service_id', # noqa: E501 + 'version': 'version', # noqa: E501 'action': 'action', # noqa: E501 - 'bypass_busy_wait': 'bypass_busy_wait', # noqa: E501 'default_host': 'default_host', # noqa: E501 + 'hash_keys': 'hash_keys', # noqa: E501 + 'name': 'name', # noqa: E501 + 'request_condition': 'request_condition', # noqa: E501 + 'xff': 'xff', # noqa: E501 + 'bypass_busy_wait': 'bypass_busy_wait', # noqa: E501 'force_miss': 'force_miss', # noqa: E501 'force_ssl': 'force_ssl', # noqa: E501 'geo_headers': 'geo_headers', # noqa: E501 - 'hash_keys': 'hash_keys', # noqa: E501 'max_stale_age': 'max_stale_age', # noqa: E501 - 'name': 'name', # noqa: E501 - 'request_condition': 'request_condition', # noqa: E501 'timer_support': 'timer_support', # noqa: E501 - 'xff': 'xff', # noqa: E501 - 'service_id': 'service_id', # noqa: E501 - 'version': 'version', # noqa: E501 - 'created_at': 'created_at', # noqa: E501 - 'deleted_at': 'deleted_at', # noqa: E501 - 'updated_at': 'updated_at', # noqa: E501 } read_only_vars = { - 'service_id', # noqa: E501 - 'version', # noqa: E501 'created_at', # noqa: E501 'deleted_at', # noqa: E501 'updated_at', # noqa: E501 + 'service_id', # noqa: E501 + 'version', # noqa: E501 } @classmethod @@ -189,23 +191,23 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) + created_at (datetime, none_type): Date and time in ISO 8601 format.. [optional] # noqa: E501 + deleted_at (datetime, none_type): Date and time in ISO 8601 format.. [optional] # noqa: E501 + updated_at (datetime, none_type): Date and time in ISO 8601 format.. [optional] # noqa: E501 + service_id (str): [optional] # noqa: E501 + version (str): [optional] # noqa: E501 action (str, none_type): Allows you to terminate request handling and immediately perform an action.. [optional] # noqa: E501 - bypass_busy_wait (int): Disable collapsed forwarding, so you don't wait for other objects to origin.. [optional] # noqa: E501 default_host (str, none_type): Sets the host header.. [optional] # noqa: E501 - 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] # noqa: E501 - force_ssl (int): Forces the request use SSL (redirects a non-SSL to SSL).. [optional] # noqa: E501 - geo_headers (int): Injects Fastly-Geo-Country, Fastly-Geo-City, and Fastly-Geo-Region into the request headers.. [optional] # noqa: E501 hash_keys (str, none_type): Comma separated list of varnish request object fields that should be in the hash key.. [optional] # noqa: E501 - max_stale_age (int): How old an object is allowed to be to serve stale-if-error or stale-while-revalidate.. [optional] # noqa: E501 name (str): Name for the request settings.. [optional] # noqa: E501 request_condition (str, none_type): Condition which, if met, will select this configuration during a request. Optional.. [optional] # noqa: E501 - timer_support (int): Injects the X-Timer info into the request for viewing origin fetch durations.. [optional] # noqa: E501 xff (str): Short for X-Forwarded-For.. [optional] # noqa: E501 - service_id (str): [optional] # noqa: E501 - version (int): [optional] # noqa: E501 - created_at (datetime, none_type): Date and time in ISO 8601 format.. [optional] # noqa: E501 - deleted_at (datetime, none_type): Date and time in ISO 8601 format.. [optional] # noqa: E501 - updated_at (datetime, none_type): Date and time in ISO 8601 format.. [optional] # noqa: E501 + bypass_busy_wait (str): Disable collapsed forwarding, so you don't wait for other objects to origin.. [optional] # noqa: E501 + force_miss (str): Allows you to force a cache miss for the request. Replaces the item in the cache if the content is cacheable.. [optional] # noqa: E501 + force_ssl (str): Forces the request use SSL (redirects a non-SSL to SSL).. [optional] # noqa: E501 + geo_headers (str): Injects Fastly-Geo-Country, Fastly-Geo-City, and Fastly-Geo-Region into the request headers.. [optional] # noqa: E501 + max_stale_age (str): How old an object is allowed to be to serve stale-if-error or stale-while-revalidate.. [optional] # noqa: E501 + timer_support (str): Injects the X-Timer info into the request for viewing origin fetch durations.. [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -305,23 +307,23 @@ def __init__(self, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) + created_at (datetime, none_type): Date and time in ISO 8601 format.. [optional] # noqa: E501 + deleted_at (datetime, none_type): Date and time in ISO 8601 format.. [optional] # noqa: E501 + updated_at (datetime, none_type): Date and time in ISO 8601 format.. [optional] # noqa: E501 + service_id (str): [optional] # noqa: E501 + version (str): [optional] # noqa: E501 action (str, none_type): Allows you to terminate request handling and immediately perform an action.. [optional] # noqa: E501 - bypass_busy_wait (int): Disable collapsed forwarding, so you don't wait for other objects to origin.. [optional] # noqa: E501 default_host (str, none_type): Sets the host header.. [optional] # noqa: E501 - 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] # noqa: E501 - force_ssl (int): Forces the request use SSL (redirects a non-SSL to SSL).. [optional] # noqa: E501 - geo_headers (int): Injects Fastly-Geo-Country, Fastly-Geo-City, and Fastly-Geo-Region into the request headers.. [optional] # noqa: E501 hash_keys (str, none_type): Comma separated list of varnish request object fields that should be in the hash key.. [optional] # noqa: E501 - max_stale_age (int): How old an object is allowed to be to serve stale-if-error or stale-while-revalidate.. [optional] # noqa: E501 name (str): Name for the request settings.. [optional] # noqa: E501 request_condition (str, none_type): Condition which, if met, will select this configuration during a request. Optional.. [optional] # noqa: E501 - timer_support (int): Injects the X-Timer info into the request for viewing origin fetch durations.. [optional] # noqa: E501 xff (str): Short for X-Forwarded-For.. [optional] # noqa: E501 - service_id (str): [optional] # noqa: E501 - version (int): [optional] # noqa: E501 - created_at (datetime, none_type): Date and time in ISO 8601 format.. [optional] # noqa: E501 - deleted_at (datetime, none_type): Date and time in ISO 8601 format.. [optional] # noqa: E501 - updated_at (datetime, none_type): Date and time in ISO 8601 format.. [optional] # noqa: E501 + bypass_busy_wait (str): Disable collapsed forwarding, so you don't wait for other objects to origin.. [optional] # noqa: E501 + force_miss (str): Allows you to force a cache miss for the request. Replaces the item in the cache if the content is cacheable.. [optional] # noqa: E501 + force_ssl (str): Forces the request use SSL (redirects a non-SSL to SSL).. [optional] # noqa: E501 + geo_headers (str): Injects Fastly-Geo-Country, Fastly-Geo-City, and Fastly-Geo-Region into the request headers.. [optional] # noqa: E501 + max_stale_age (str): How old an object is allowed to be to serve stale-if-error or stale-while-revalidate.. [optional] # noqa: E501 + timer_support (str): Injects the X-Timer info into the request for viewing origin fetch durations.. [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -387,8 +389,9 @@ def _composed_schemas(): 'anyOf': [ ], 'allOf': [ - RequestSettings, - ServiceIdAndVersion, + RequestSettingsAdditional, + RequestSettingsResponseAllOf, + ServiceIdAndVersionString, Timestamps, ], 'oneOf': [ diff --git a/fastly/model/request_settings_response_all_of.py b/fastly/model/request_settings_response_all_of.py new file mode 100644 index 0000000..08f1962 --- /dev/null +++ b/fastly/model/request_settings_response_all_of.py @@ -0,0 +1,273 @@ +""" + Fastly API + + Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://developer.fastly.com/reference/api/) # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Contact: oss@fastly.com +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from fastly.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from fastly.exceptions import ApiAttributeError + + + +class RequestSettingsResponseAllOf(ModelNormal): + """NOTE: This class is auto generated. + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + return { + 'bypass_busy_wait': (str,), # noqa: E501 + 'force_miss': (str,), # noqa: E501 + 'force_ssl': (str,), # noqa: E501 + 'geo_headers': (str,), # noqa: E501 + 'max_stale_age': (str,), # noqa: E501 + 'timer_support': (str,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'bypass_busy_wait': 'bypass_busy_wait', # noqa: E501 + 'force_miss': 'force_miss', # noqa: E501 + 'force_ssl': 'force_ssl', # noqa: E501 + 'geo_headers': 'geo_headers', # noqa: E501 + 'max_stale_age': 'max_stale_age', # noqa: E501 + 'timer_support': 'timer_support', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """RequestSettingsResponseAllOf - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + bypass_busy_wait (str): Disable collapsed forwarding, so you don't wait for other objects to origin.. [optional] # noqa: E501 + force_miss (str): Allows you to force a cache miss for the request. Replaces the item in the cache if the content is cacheable.. [optional] # noqa: E501 + force_ssl (str): Forces the request use SSL (redirects a non-SSL to SSL).. [optional] # noqa: E501 + geo_headers (str): Injects Fastly-Geo-Country, Fastly-Geo-City, and Fastly-Geo-Region into the request headers.. [optional] # noqa: E501 + max_stale_age (str): How old an object is allowed to be to serve stale-if-error or stale-while-revalidate.. [optional] # noqa: E501 + timer_support (str): Injects the X-Timer info into the request for viewing origin fetch durations.. [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """RequestSettingsResponseAllOf - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + bypass_busy_wait (str): Disable collapsed forwarding, so you don't wait for other objects to origin.. [optional] # noqa: E501 + force_miss (str): Allows you to force a cache miss for the request. Replaces the item in the cache if the content is cacheable.. [optional] # noqa: E501 + force_ssl (str): Forces the request use SSL (redirects a non-SSL to SSL).. [optional] # noqa: E501 + geo_headers (str): Injects Fastly-Geo-Country, Fastly-Geo-City, and Fastly-Geo-Region into the request headers.. [optional] # noqa: E501 + max_stale_age (str): How old an object is allowed to be to serve stale-if-error or stale-while-revalidate.. [optional] # noqa: E501 + timer_support (str): Injects the X-Timer info into the request for viewing origin fetch durations.. [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/fastly/model/response_object.py b/fastly/model/response_object.py index 1b52678..f787c41 100644 --- a/fastly/model/response_object.py +++ b/fastly/model/response_object.py @@ -83,7 +83,7 @@ def openapi_types(): 'content': (str,), # noqa: E501 'content_type': (str, none_type,), # noqa: E501 'name': (str,), # noqa: E501 - 'status': (int,), # noqa: E501 + 'status': (str,), # noqa: E501 'response': (str,), # noqa: E501 'request_condition': (str, none_type,), # noqa: E501 } @@ -148,7 +148,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 content (str): The content to deliver for the response object, can be empty.. [optional] # noqa: E501 content_type (str, none_type): The MIME type of the content, can be empty.. [optional] # noqa: E501 name (str): Name for the request settings.. [optional] # noqa: E501 - status (int): The HTTP status code.. [optional] if omitted the server will use the default value of 200 # noqa: E501 + status (str): The HTTP status code.. [optional] if omitted the server will use the default value of "200" # noqa: E501 response (str): The HTTP response.. [optional] if omitted the server will use the default value of "Ok" # noqa: E501 request_condition (str, none_type): Condition which, if met, will select this configuration during a request. Optional.. [optional] # noqa: E501 """ @@ -236,7 +236,7 @@ def __init__(self, *args, **kwargs): # noqa: E501 content (str): The content to deliver for the response object, can be empty.. [optional] # noqa: E501 content_type (str, none_type): The MIME type of the content, can be empty.. [optional] # noqa: E501 name (str): Name for the request settings.. [optional] # noqa: E501 - status (int): The HTTP status code.. [optional] if omitted the server will use the default value of 200 # noqa: E501 + status (str): The HTTP status code.. [optional] if omitted the server will use the default value of "200" # noqa: E501 response (str): The HTTP response.. [optional] if omitted the server will use the default value of "Ok" # noqa: E501 request_condition (str, none_type): Condition which, if met, will select this configuration during a request. Optional.. [optional] # noqa: E501 """ diff --git a/fastly/model/response_object_response.py b/fastly/model/response_object_response.py index b7e1d65..5661974 100644 --- a/fastly/model/response_object_response.py +++ b/fastly/model/response_object_response.py @@ -31,10 +31,10 @@ def lazy_import(): from fastly.model.response_object import ResponseObject - from fastly.model.service_id_and_version import ServiceIdAndVersion + from fastly.model.service_id_and_version_string import ServiceIdAndVersionString from fastly.model.timestamps import Timestamps globals()['ResponseObject'] = ResponseObject - globals()['ServiceIdAndVersion'] = ServiceIdAndVersion + globals()['ServiceIdAndVersionString'] = ServiceIdAndVersionString globals()['Timestamps'] = Timestamps @@ -93,11 +93,11 @@ def openapi_types(): 'content': (str,), # noqa: E501 'content_type': (str, none_type,), # noqa: E501 'name': (str,), # noqa: E501 - 'status': (int,), # noqa: E501 + 'status': (str,), # noqa: E501 'response': (str,), # noqa: E501 'request_condition': (str, none_type,), # noqa: E501 'service_id': (str,), # noqa: E501 - 'version': (int,), # noqa: E501 + 'version': (str,), # noqa: E501 'created_at': (datetime, none_type,), # noqa: E501 'deleted_at': (datetime, none_type,), # noqa: E501 'updated_at': (datetime, none_type,), # noqa: E501 @@ -171,11 +171,11 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 content (str): The content to deliver for the response object, can be empty.. [optional] # noqa: E501 content_type (str, none_type): The MIME type of the content, can be empty.. [optional] # noqa: E501 name (str): Name for the request settings.. [optional] # noqa: E501 - status (int): The HTTP status code.. [optional] if omitted the server will use the default value of 200 # noqa: E501 + status (str): The HTTP status code.. [optional] if omitted the server will use the default value of "200" # noqa: E501 response (str): The HTTP response.. [optional] if omitted the server will use the default value of "Ok" # noqa: E501 request_condition (str, none_type): Condition which, if met, will select this configuration during a request. Optional.. [optional] # noqa: E501 service_id (str): [optional] # noqa: E501 - version (int): [optional] # noqa: E501 + version (str): [optional] # noqa: E501 created_at (datetime, none_type): Date and time in ISO 8601 format.. [optional] # noqa: E501 deleted_at (datetime, none_type): Date and time in ISO 8601 format.. [optional] # noqa: E501 updated_at (datetime, none_type): Date and time in ISO 8601 format.. [optional] # noqa: E501 @@ -282,11 +282,11 @@ def __init__(self, *args, **kwargs): # noqa: E501 content (str): The content to deliver for the response object, can be empty.. [optional] # noqa: E501 content_type (str, none_type): The MIME type of the content, can be empty.. [optional] # noqa: E501 name (str): Name for the request settings.. [optional] # noqa: E501 - status (int): The HTTP status code.. [optional] if omitted the server will use the default value of 200 # noqa: E501 + status (str): The HTTP status code.. [optional] if omitted the server will use the default value of "200" # noqa: E501 response (str): The HTTP response.. [optional] if omitted the server will use the default value of "Ok" # noqa: E501 request_condition (str, none_type): Condition which, if met, will select this configuration during a request. Optional.. [optional] # noqa: E501 service_id (str): [optional] # noqa: E501 - version (int): [optional] # noqa: E501 + version (str): [optional] # noqa: E501 created_at (datetime, none_type): Date and time in ISO 8601 format.. [optional] # noqa: E501 deleted_at (datetime, none_type): Date and time in ISO 8601 format.. [optional] # noqa: E501 updated_at (datetime, none_type): Date and time in ISO 8601 format.. [optional] # noqa: E501 @@ -356,7 +356,7 @@ def _composed_schemas(): ], 'allOf': [ ResponseObject, - ServiceIdAndVersion, + ServiceIdAndVersionString, Timestamps, ], 'oneOf': [ diff --git a/fastly/model/service_id_and_version_string.py b/fastly/model/service_id_and_version_string.py new file mode 100644 index 0000000..018a264 --- /dev/null +++ b/fastly/model/service_id_and_version_string.py @@ -0,0 +1,259 @@ +""" + Fastly API + + Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://developer.fastly.com/reference/api/) # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Contact: oss@fastly.com +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from fastly.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from fastly.exceptions import ApiAttributeError + + + +class ServiceIdAndVersionString(ModelNormal): + """NOTE: This class is auto generated. + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + return { + 'service_id': (str,), # noqa: E501 + 'version': (str,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'service_id': 'service_id', # noqa: E501 + 'version': 'version', # noqa: E501 + } + + read_only_vars = { + 'service_id', # noqa: E501 + 'version', # noqa: E501 + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """ServiceIdAndVersionString - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + service_id (str): [optional] # noqa: E501 + version (str): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """ServiceIdAndVersionString - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + service_id (str): [optional] # noqa: E501 + version (str): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/fastly/model/subsequent_request_timestamp.py b/fastly/model/subsequent_request_timestamp.py index 069eda1..319da43 100644 --- a/fastly/model/subsequent_request_timestamp.py +++ b/fastly/model/subsequent_request_timestamp.py @@ -58,13 +58,7 @@ class SubsequentRequestTimestamp(ModelNormal): validations = { } - @cached_property - def additional_properties_type(): - """ - This must be a method because a model may have properties that are - of type self, this must run after the class is loaded - """ - return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + additional_properties_type = None _nullable = False diff --git a/fastly/model/domain_check_item.py b/fastly/model/tls_common_response.py similarity index 80% rename from fastly/model/domain_check_item.py rename to fastly/model/tls_common_response.py index ea1f53c..416bd4f 100644 --- a/fastly/model/domain_check_item.py +++ b/fastly/model/tls_common_response.py @@ -30,11 +30,13 @@ def lazy_import(): - from fastly.model.domain import Domain - globals()['Domain'] = Domain + from fastly.model.tls_common_response_all_of import TlsCommonResponseAllOf + from fastly.model.tls_common_response_all_of1 import TlsCommonResponseAllOf1 + globals()['TlsCommonResponseAllOf'] = TlsCommonResponseAllOf + globals()['TlsCommonResponseAllOf1'] = TlsCommonResponseAllOf1 -class DomainCheckItem(ModelComposed): +class TlsCommonResponse(ModelComposed): """NOTE: This class is auto generated. Do not edit the class manually. @@ -57,6 +59,10 @@ class DomainCheckItem(ModelComposed): """ allowed_values = { + ('use_tls',): { + 'no_tls': "0", + 'use_tls': "1", + }, } validations = { @@ -85,8 +91,11 @@ def openapi_types(): """ lazy_import() return { - 'comment': (str, none_type,), # noqa: E501 - 'name': (str,), # noqa: E501 + 'tls_ca_cert': (str, none_type,), # noqa: E501 + 'tls_client_cert': (str, none_type,), # noqa: E501 + 'tls_client_key': (str, none_type,), # noqa: E501 + 'tls_cert_hostname': (str, none_type,), # noqa: E501 + 'use_tls': (str,), # noqa: E501 } @cached_property @@ -95,8 +104,11 @@ def discriminator(): attribute_map = { - 'comment': 'comment', # noqa: E501 - 'name': 'name', # noqa: E501 + 'tls_ca_cert': 'tls_ca_cert', # noqa: E501 + 'tls_client_cert': 'tls_client_cert', # noqa: E501 + 'tls_client_key': 'tls_client_key', # noqa: E501 + 'tls_cert_hostname': 'tls_cert_hostname', # noqa: E501 + 'use_tls': 'use_tls', # noqa: E501 } read_only_vars = { @@ -105,7 +117,7 @@ def discriminator(): @classmethod @convert_js_args_to_python_args def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 - """DomainCheckItem - a model defined in OpenAPI + """TlsCommonResponse - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -138,8 +150,11 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - comment (str, none_type): A freeform descriptive note.. [optional] # noqa: E501 - name (str): The name of the domain or domains associated with this service.. [optional] # noqa: E501 + tls_ca_cert (str, none_type): A secure certificate to authenticate a server with. Must be in PEM format.. [optional] if omitted the server will use the default value of "null" # noqa: E501 + tls_client_cert (str, none_type): The client certificate used to make authenticated requests. Must be in PEM format.. [optional] if omitted the server will use the default value of "null" # noqa: E501 + tls_client_key (str, none_type): The client private key used to make authenticated requests. Must be in PEM format.. [optional] if omitted the server will use the default value of "null" # noqa: E501 + tls_cert_hostname (str, none_type): The hostname used to verify a server's certificate. It can either be the Common Name (CN) or a Subject Alternative Name (SAN).. [optional] if omitted the server will use the default value of "null" # noqa: E501 + use_tls (str): Whether to use TLS.. [optional] if omitted the server will use the default value of "0" # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -206,7 +221,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 @convert_js_args_to_python_args def __init__(self, *args, **kwargs): # noqa: E501 - """DomainCheckItem - a model defined in OpenAPI + """TlsCommonResponse - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -239,8 +254,11 @@ def __init__(self, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - comment (str, none_type): A freeform descriptive note.. [optional] # noqa: E501 - name (str): The name of the domain or domains associated with this service.. [optional] # noqa: E501 + tls_ca_cert (str, none_type): A secure certificate to authenticate a server with. Must be in PEM format.. [optional] if omitted the server will use the default value of "null" # noqa: E501 + tls_client_cert (str, none_type): The client certificate used to make authenticated requests. Must be in PEM format.. [optional] if omitted the server will use the default value of "null" # noqa: E501 + tls_client_key (str, none_type): The client private key used to make authenticated requests. Must be in PEM format.. [optional] if omitted the server will use the default value of "null" # noqa: E501 + tls_cert_hostname (str, none_type): The hostname used to verify a server's certificate. It can either be the Common Name (CN) or a Subject Alternative Name (SAN).. [optional] if omitted the server will use the default value of "null" # noqa: E501 + use_tls (str): Whether to use TLS.. [optional] if omitted the server will use the default value of "0" # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -304,11 +322,10 @@ def _composed_schemas(): lazy_import() return { 'anyOf': [ - Domain, - bool, - str, ], 'allOf': [ + TlsCommonResponseAllOf, + TlsCommonResponseAllOf1, ], 'oneOf': [ ], diff --git a/fastly/model/tls_common.py b/fastly/model/tls_common_response_all_of.py similarity index 95% rename from fastly/model/tls_common.py rename to fastly/model/tls_common_response_all_of.py index 3836bb6..558c2cc 100644 --- a/fastly/model/tls_common.py +++ b/fastly/model/tls_common_response_all_of.py @@ -30,7 +30,7 @@ -class TlsCommon(ModelNormal): +class TlsCommonResponseAllOf(ModelNormal): """NOTE: This class is auto generated. Do not edit the class manually. @@ -53,10 +53,6 @@ class TlsCommon(ModelNormal): """ allowed_values = { - ('use_tls',): { - 'no_tls': 0, - 'use_tls': 1, - }, } validations = { @@ -87,7 +83,6 @@ def openapi_types(): 'tls_client_cert': (str, none_type,), # noqa: E501 'tls_client_key': (str, none_type,), # noqa: E501 'tls_cert_hostname': (str, none_type,), # noqa: E501 - 'use_tls': (int,), # noqa: E501 } @cached_property @@ -100,7 +95,6 @@ def discriminator(): 'tls_client_cert': 'tls_client_cert', # noqa: E501 'tls_client_key': 'tls_client_key', # noqa: E501 'tls_cert_hostname': 'tls_cert_hostname', # noqa: E501 - 'use_tls': 'use_tls', # noqa: E501 } read_only_vars = { @@ -111,7 +105,7 @@ def discriminator(): @classmethod @convert_js_args_to_python_args def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 - """TlsCommon - a model defined in OpenAPI + """TlsCommonResponseAllOf - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -148,7 +142,6 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 tls_client_cert (str, none_type): The client certificate used to make authenticated requests. Must be in PEM format.. [optional] if omitted the server will use the default value of "null" # noqa: E501 tls_client_key (str, none_type): The client private key used to make authenticated requests. Must be in PEM format.. [optional] if omitted the server will use the default value of "null" # noqa: E501 tls_cert_hostname (str, none_type): The hostname used to verify a server's certificate. It can either be the Common Name (CN) or a Subject Alternative Name (SAN).. [optional] if omitted the server will use the default value of "null" # noqa: E501 - use_tls (int): Whether to use TLS.. [optional] if omitted the server will use the default value of 0 # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -197,7 +190,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 @convert_js_args_to_python_args def __init__(self, *args, **kwargs): # noqa: E501 - """TlsCommon - a model defined in OpenAPI + """TlsCommonResponseAllOf - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -234,7 +227,6 @@ def __init__(self, *args, **kwargs): # noqa: E501 tls_client_cert (str, none_type): The client certificate used to make authenticated requests. Must be in PEM format.. [optional] if omitted the server will use the default value of "null" # noqa: E501 tls_client_key (str, none_type): The client private key used to make authenticated requests. Must be in PEM format.. [optional] if omitted the server will use the default value of "null" # noqa: E501 tls_cert_hostname (str, none_type): The hostname used to verify a server's certificate. It can either be the Common Name (CN) or a Subject Alternative Name (SAN).. [optional] if omitted the server will use the default value of "null" # noqa: E501 - use_tls (int): Whether to use TLS.. [optional] if omitted the server will use the default value of 0 # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/fastly/model/tls_common_response_all_of1.py b/fastly/model/tls_common_response_all_of1.py new file mode 100644 index 0000000..9c26465 --- /dev/null +++ b/fastly/model/tls_common_response_all_of1.py @@ -0,0 +1,257 @@ +""" + Fastly API + + Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://developer.fastly.com/reference/api/) # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Contact: oss@fastly.com +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from fastly.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from fastly.exceptions import ApiAttributeError + + + +class TlsCommonResponseAllOf1(ModelNormal): + """NOTE: This class is auto generated. + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + ('use_tls',): { + 'no_tls': "0", + 'use_tls': "1", + }, + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + return { + 'use_tls': (str,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'use_tls': 'use_tls', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """TlsCommonResponseAllOf1 - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + use_tls (str): Whether to use TLS.. [optional] if omitted the server will use the default value of "0" # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """TlsCommonResponseAllOf1 - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + use_tls (str): Whether to use TLS.. [optional] if omitted the server will use the default value of "0" # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/fastly/model/tls_subscription_response_data.py b/fastly/model/tls_subscription_response_data.py index 38bb43e..ceebb86 100644 --- a/fastly/model/tls_subscription_response_data.py +++ b/fastly/model/tls_subscription_response_data.py @@ -31,12 +31,10 @@ def lazy_import(): from fastly.model.tls_subscription_response_attributes import TlsSubscriptionResponseAttributes - from fastly.model.tls_subscription_response_data_all_of import TlsSubscriptionResponseDataAllOf globals()['TlsSubscriptionResponseAttributes'] = TlsSubscriptionResponseAttributes - globals()['TlsSubscriptionResponseDataAllOf'] = TlsSubscriptionResponseDataAllOf -class TlsSubscriptionResponseData(ModelComposed): +class TlsSubscriptionResponseData(ModelNormal): """NOTE: This class is auto generated. Do not edit the class manually. @@ -105,6 +103,8 @@ def discriminator(): 'id', # noqa: E501 } + _composed_schemas = {} + @classmethod @convert_js_args_to_python_args def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 @@ -170,29 +170,14 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) - constant_args = { - '_check_type': _check_type, - '_path_to_item': _path_to_item, - '_spec_property_naming': _spec_property_naming, - '_configuration': _configuration, - '_visited_composed_classes': self._visited_composed_classes, - } - composed_info = validate_get_composed_info( - constant_args, kwargs, self) - self._composed_instances = composed_info[0] - self._var_name_to_model_instances = composed_info[1] - self._additional_properties_model_instances = composed_info[2] - discarded_args = composed_info[3] - for var_name, var_value in kwargs.items(): - if var_name in discarded_args and \ + if var_name not in self.attribute_map and \ self._configuration is not None and \ self._configuration.discard_unknown_keys and \ - self._additional_properties_model_instances: + self.additional_properties_type is None: # discard variable. continue setattr(self, var_name, var_value) - return self required_properties = set([ @@ -202,9 +187,6 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 '_path_to_item', '_configuration', '_visited_composed_classes', - '_composed_instances', - '_var_name_to_model_instances', - '_additional_properties_model_instances', ]) @convert_js_args_to_python_args @@ -269,48 +251,14 @@ def __init__(self, *args, **kwargs): # noqa: E501 self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) - constant_args = { - '_check_type': _check_type, - '_path_to_item': _path_to_item, - '_spec_property_naming': _spec_property_naming, - '_configuration': _configuration, - '_visited_composed_classes': self._visited_composed_classes, - } - composed_info = validate_get_composed_info( - constant_args, kwargs, self) - self._composed_instances = composed_info[0] - self._var_name_to_model_instances = composed_info[1] - self._additional_properties_model_instances = composed_info[2] - discarded_args = composed_info[3] - for var_name, var_value in kwargs.items(): - if var_name in discarded_args and \ + if var_name not in self.attribute_map and \ self._configuration is not None and \ self._configuration.discard_unknown_keys and \ - self._additional_properties_model_instances: + self.additional_properties_type is None: # discard variable. continue setattr(self, var_name, var_value) if var_name in self.read_only_vars: raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " f"class with read only attributes.") - - @cached_property - def _composed_schemas(): - # we need this here to make our import statements work - # we must store _composed_schemas in here so the code is only run - # when we invoke this method. If we kept this at the class - # level we would get an error because the class level - # code would be run when this module is imported, and these composed - # classes don't exist yet because their module has not finished - # loading - lazy_import() - return { - 'anyOf': [ - ], - 'allOf': [ - TlsSubscriptionResponseDataAllOf, - ], - 'oneOf': [ - ], - } diff --git a/fastly/models/__init__.py b/fastly/models/__init__.py index 80ee67d..cc74026 100644 --- a/fastly/models/__init__.py +++ b/fastly/models/__init__.py @@ -91,7 +91,6 @@ from fastly.model.director_backend_all_of import DirectorBackendAllOf from fastly.model.director_response import DirectorResponse from fastly.model.domain import Domain -from fastly.model.domain_check_item import DomainCheckItem from fastly.model.domain_check_response import DomainCheckResponse from fastly.model.domain_check_response_list import DomainCheckResponseList from fastly.model.domain_inspector import DomainInspector @@ -118,6 +117,7 @@ from fastly.model.gzip_response import GzipResponse from fastly.model.header import Header from fastly.model.header_response import HeaderResponse +from fastly.model.header_response_additional import HeaderResponseAdditional from fastly.model.healthcheck import Healthcheck from fastly.model.healthcheck_response import HealthcheckResponse from fastly.model.historical import Historical @@ -207,92 +207,76 @@ from fastly.model.line_item_data import LineItemData from fastly.model.line_item_data_read_only_invoice_id import LineItemDataReadOnlyInvoiceId from fastly.model.logging_address_and_port import LoggingAddressAndPort -from fastly.model.logging_azureblob import LoggingAzureblob -from fastly.model.logging_azureblob_all_of import LoggingAzureblobAllOf +from fastly.model.logging_azureblob_additional import LoggingAzureblobAdditional from fastly.model.logging_azureblob_response import LoggingAzureblobResponse -from fastly.model.logging_bigquery import LoggingBigquery -from fastly.model.logging_bigquery_all_of import LoggingBigqueryAllOf +from fastly.model.logging_bigquery_additional import LoggingBigqueryAdditional from fastly.model.logging_bigquery_response import LoggingBigqueryResponse -from fastly.model.logging_cloudfiles import LoggingCloudfiles -from fastly.model.logging_cloudfiles_all_of import LoggingCloudfilesAllOf +from fastly.model.logging_cloudfiles_additional import LoggingCloudfilesAdditional from fastly.model.logging_cloudfiles_response import LoggingCloudfilesResponse from fastly.model.logging_common import LoggingCommon -from fastly.model.logging_datadog import LoggingDatadog -from fastly.model.logging_datadog_all_of import LoggingDatadogAllOf +from fastly.model.logging_common_response import LoggingCommonResponse +from fastly.model.logging_common_response_all_of import LoggingCommonResponseAllOf +from fastly.model.logging_common_response_all_of1 import LoggingCommonResponseAllOf1 +from fastly.model.logging_datadog_additional import LoggingDatadogAdditional from fastly.model.logging_datadog_response import LoggingDatadogResponse -from fastly.model.logging_digitalocean import LoggingDigitalocean -from fastly.model.logging_digitalocean_all_of import LoggingDigitaloceanAllOf +from fastly.model.logging_digitalocean_additional import LoggingDigitaloceanAdditional from fastly.model.logging_digitalocean_response import LoggingDigitaloceanResponse -from fastly.model.logging_elasticsearch import LoggingElasticsearch -from fastly.model.logging_elasticsearch_all_of import LoggingElasticsearchAllOf +from fastly.model.logging_elasticsearch_additional import LoggingElasticsearchAdditional from fastly.model.logging_elasticsearch_response import LoggingElasticsearchResponse -from fastly.model.logging_format_version import LoggingFormatVersion -from fastly.model.logging_ftp import LoggingFtp -from fastly.model.logging_ftp_all_of import LoggingFtpAllOf +from fastly.model.logging_format_version_integer import LoggingFormatVersionInteger +from fastly.model.logging_format_version_string import LoggingFormatVersionString +from fastly.model.logging_ftp_additional import LoggingFtpAdditional from fastly.model.logging_ftp_response import LoggingFtpResponse -from fastly.model.logging_gcs import LoggingGcs -from fastly.model.logging_gcs_all_of import LoggingGcsAllOf +from fastly.model.logging_ftp_response_all_of import LoggingFtpResponseAllOf +from fastly.model.logging_gcs_additional import LoggingGcsAdditional from fastly.model.logging_gcs_common import LoggingGcsCommon from fastly.model.logging_gcs_response import LoggingGcsResponse from fastly.model.logging_generic_common import LoggingGenericCommon -from fastly.model.logging_google_pubsub import LoggingGooglePubsub -from fastly.model.logging_google_pubsub_all_of import LoggingGooglePubsubAllOf +from fastly.model.logging_generic_common_response import LoggingGenericCommonResponse +from fastly.model.logging_generic_common_response_all_of import LoggingGenericCommonResponseAllOf +from fastly.model.logging_generic_common_response_all_of1 import LoggingGenericCommonResponseAllOf1 +from fastly.model.logging_google_pubsub_additional import LoggingGooglePubsubAdditional from fastly.model.logging_google_pubsub_response import LoggingGooglePubsubResponse -from fastly.model.logging_heroku import LoggingHeroku -from fastly.model.logging_heroku_all_of import LoggingHerokuAllOf +from fastly.model.logging_heroku_additional import LoggingHerokuAdditional from fastly.model.logging_heroku_response import LoggingHerokuResponse -from fastly.model.logging_honeycomb import LoggingHoneycomb -from fastly.model.logging_honeycomb_all_of import LoggingHoneycombAllOf +from fastly.model.logging_honeycomb_additional import LoggingHoneycombAdditional from fastly.model.logging_honeycomb_response import LoggingHoneycombResponse -from fastly.model.logging_https import LoggingHttps -from fastly.model.logging_https_all_of import LoggingHttpsAllOf +from fastly.model.logging_https_additional import LoggingHttpsAdditional from fastly.model.logging_https_response import LoggingHttpsResponse -from fastly.model.logging_kafka import LoggingKafka -from fastly.model.logging_kafka_all_of import LoggingKafkaAllOf +from fastly.model.logging_kafka_additional import LoggingKafkaAdditional from fastly.model.logging_kafka_response import LoggingKafkaResponse -from fastly.model.logging_kinesis import LoggingKinesis +from fastly.model.logging_kafka_response_post import LoggingKafkaResponsePost +from fastly.model.logging_kinesis_additional import LoggingKinesisAdditional from fastly.model.logging_kinesis_response import LoggingKinesisResponse -from fastly.model.logging_logentries import LoggingLogentries -from fastly.model.logging_logentries_all_of import LoggingLogentriesAllOf +from fastly.model.logging_logentries_additional import LoggingLogentriesAdditional from fastly.model.logging_logentries_response import LoggingLogentriesResponse -from fastly.model.logging_loggly import LoggingLoggly -from fastly.model.logging_loggly_all_of import LoggingLogglyAllOf +from fastly.model.logging_loggly_additional import LoggingLogglyAdditional from fastly.model.logging_loggly_response import LoggingLogglyResponse -from fastly.model.logging_logshuttle import LoggingLogshuttle -from fastly.model.logging_logshuttle_all_of import LoggingLogshuttleAllOf +from fastly.model.logging_logshuttle_additional import LoggingLogshuttleAdditional from fastly.model.logging_logshuttle_response import LoggingLogshuttleResponse from fastly.model.logging_message_type import LoggingMessageType -from fastly.model.logging_newrelic import LoggingNewrelic -from fastly.model.logging_newrelic_all_of import LoggingNewrelicAllOf +from fastly.model.logging_newrelic_additional import LoggingNewrelicAdditional from fastly.model.logging_newrelic_response import LoggingNewrelicResponse -from fastly.model.logging_openstack import LoggingOpenstack -from fastly.model.logging_openstack_all_of import LoggingOpenstackAllOf +from fastly.model.logging_openstack_additional import LoggingOpenstackAdditional from fastly.model.logging_openstack_response import LoggingOpenstackResponse -from fastly.model.logging_papertrail import LoggingPapertrail from fastly.model.logging_papertrail_response import LoggingPapertrailResponse from fastly.model.logging_placement import LoggingPlacement from fastly.model.logging_request_caps_common import LoggingRequestCapsCommon -from fastly.model.logging_s3 import LoggingS3 -from fastly.model.logging_s3_all_of import LoggingS3AllOf +from fastly.model.logging_s3_additional import LoggingS3Additional from fastly.model.logging_s3_response import LoggingS3Response -from fastly.model.logging_scalyr import LoggingScalyr -from fastly.model.logging_scalyr_all_of import LoggingScalyrAllOf +from fastly.model.logging_scalyr_additional import LoggingScalyrAdditional from fastly.model.logging_scalyr_response import LoggingScalyrResponse -from fastly.model.logging_sftp import LoggingSftp -from fastly.model.logging_sftp_all_of import LoggingSftpAllOf +from fastly.model.logging_sftp_additional import LoggingSftpAdditional from fastly.model.logging_sftp_response import LoggingSftpResponse -from fastly.model.logging_splunk import LoggingSplunk -from fastly.model.logging_splunk_all_of import LoggingSplunkAllOf +from fastly.model.logging_sftp_response_all_of import LoggingSftpResponseAllOf +from fastly.model.logging_splunk_additional import LoggingSplunkAdditional from fastly.model.logging_splunk_response import LoggingSplunkResponse -from fastly.model.logging_sumologic import LoggingSumologic -from fastly.model.logging_sumologic_all_of import LoggingSumologicAllOf +from fastly.model.logging_sumologic_additional import LoggingSumologicAdditional from fastly.model.logging_sumologic_response import LoggingSumologicResponse -from fastly.model.logging_syslog import LoggingSyslog -from fastly.model.logging_syslog_all_of import LoggingSyslogAllOf +from fastly.model.logging_syslog_additional import LoggingSyslogAdditional from fastly.model.logging_syslog_response import LoggingSyslogResponse from fastly.model.logging_tls_common import LoggingTlsCommon from fastly.model.logging_use_tls import LoggingUseTls -from fastly.model.model403_forbidden import Model403Forbidden from fastly.model.mutual_authentication import MutualAuthentication from fastly.model.mutual_authentication_data import MutualAuthenticationData from fastly.model.mutual_authentication_data_attributes import MutualAuthenticationDataAttributes @@ -326,10 +310,12 @@ from fastly.model.pagination_links import PaginationLinks from fastly.model.pagination_meta import PaginationMeta from fastly.model.permission import Permission -from fastly.model.pool import Pool -from fastly.model.pool_all_of import PoolAllOf +from fastly.model.pool_additional import PoolAdditional from fastly.model.pool_response import PoolResponse from fastly.model.pool_response_all_of import PoolResponseAllOf +from fastly.model.pool_response_common import PoolResponseCommon +from fastly.model.pool_response_post import PoolResponsePost +from fastly.model.pool_response_post_all_of import PoolResponsePostAllOf from fastly.model.pop import Pop from fastly.model.pop_coordinates import PopCoordinates from fastly.model.public_ip_list import PublicIpList @@ -446,8 +432,9 @@ from fastly.model.relationships_for_waf_exclusion import RelationshipsForWafExclusion from fastly.model.relationships_for_waf_firewall_version import RelationshipsForWafFirewallVersion from fastly.model.relationships_for_waf_rule import RelationshipsForWafRule -from fastly.model.request_settings import RequestSettings +from fastly.model.request_settings_additional import RequestSettingsAdditional from fastly.model.request_settings_response import RequestSettingsResponse +from fastly.model.request_settings_response_all_of import RequestSettingsResponseAllOf from fastly.model.resource import Resource from fastly.model.resource_response import ResourceResponse from fastly.model.resource_response_all_of import ResourceResponseAllOf @@ -488,6 +475,7 @@ from fastly.model.service_detail import ServiceDetail from fastly.model.service_detail_all_of import ServiceDetailAllOf from fastly.model.service_id_and_version import ServiceIdAndVersion +from fastly.model.service_id_and_version_string import ServiceIdAndVersionString from fastly.model.service_invitation import ServiceInvitation from fastly.model.service_invitation_data import ServiceInvitationData from fastly.model.service_invitation_data_attributes import ServiceInvitationDataAttributes @@ -547,7 +535,9 @@ from fastly.model.tls_certificate_response_data_all_of import TlsCertificateResponseDataAllOf from fastly.model.tls_certificates_response import TlsCertificatesResponse from fastly.model.tls_certificates_response_all_of import TlsCertificatesResponseAllOf -from fastly.model.tls_common import TlsCommon +from fastly.model.tls_common_response import TlsCommonResponse +from fastly.model.tls_common_response_all_of import TlsCommonResponseAllOf +from fastly.model.tls_common_response_all_of1 import TlsCommonResponseAllOf1 from fastly.model.tls_configuration import TlsConfiguration from fastly.model.tls_configuration_data import TlsConfigurationData from fastly.model.tls_configuration_data_attributes import TlsConfigurationDataAttributes @@ -578,7 +568,6 @@ from fastly.model.tls_subscription_response_attributes import TlsSubscriptionResponseAttributes from fastly.model.tls_subscription_response_attributes_all_of import TlsSubscriptionResponseAttributesAllOf from fastly.model.tls_subscription_response_data import TlsSubscriptionResponseData -from fastly.model.tls_subscription_response_data_all_of import TlsSubscriptionResponseDataAllOf from fastly.model.tls_subscriptions_response import TlsSubscriptionsResponse from fastly.model.tls_subscriptions_response_all_of import TlsSubscriptionsResponseAllOf from fastly.model.token import Token diff --git a/setup.py b/setup.py index a4ffe7f..ec301f1 100644 --- a/setup.py +++ b/setup.py @@ -12,7 +12,7 @@ from pathlib import Path NAME = "fastly" -VERSION = "3.0.2" +VERSION = "4.0.0" # To install the library, run the following # # python setup.py install diff --git a/sig.json b/sig.json index 50cf831..6585794 100644 --- a/sig.json +++ b/sig.json @@ -1 +1 @@ -{"G": "59fc714d", "D": "3bd4fb97"} +{"G": "2914592f", "D": "7e4f4edd"}