From 0497c5ee5ab9eccb62533eafb8e9440e57656df2 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 24 Apr 2024 00:07:42 +0000 Subject: [PATCH] feat(api): update via SDK Studio (#360) --- api.md | 126 +- src/cloudflare/_client.py | 1282 +++++------ src/cloudflare/resources/__init__.py | 1872 ++++++++--------- src/cloudflare/resources/accounts/__init__.py | 72 +- src/cloudflare/resources/accounts/accounts.py | 110 +- src/cloudflare/resources/accounts/members.py | 38 +- src/cloudflare/resources/accounts/roles.py | 38 +- src/cloudflare/resources/acm/__init__.py | 48 +- src/cloudflare/resources/acm/acm.py | 74 +- src/cloudflare/resources/acm/total_tls.py | 38 +- .../resources/addressing/__init__.py | 120 +- .../addressing/address_maps/__init__.py | 96 +- .../addressing/address_maps/accounts.py | 38 +- .../addressing/address_maps/address_maps.py | 146 +- .../resources/addressing/address_maps/ips.py | 38 +- .../addressing/address_maps/zones.py | 38 +- .../resources/addressing/addressing.py | 188 +- .../addressing/loa_documents/__init__.py | 48 +- .../addressing/loa_documents/downloads.py | 38 +- .../addressing/loa_documents/loa_documents.py | 74 +- .../resources/addressing/prefixes/__init__.py | 72 +- .../addressing/prefixes/bgp/__init__.py | 96 +- .../resources/addressing/prefixes/bgp/bgp.py | 146 +- .../addressing/prefixes/bgp/bindings.py | 38 +- .../addressing/prefixes/bgp/prefixes.py | 38 +- .../addressing/prefixes/bgp/statuses.py | 38 +- .../addressing/prefixes/delegations.py | 65 +- .../resources/addressing/prefixes/prefixes.py | 112 +- .../resources/addressing/services.py | 38 +- src/cloudflare/resources/alerting/__init__.py | 96 +- src/cloudflare/resources/alerting/alerting.py | 148 +- .../resources/alerting/available_alerts.py | 38 +- .../alerting/destinations/__init__.py | 72 +- .../alerting/destinations/destinations.py | 110 +- .../alerting/destinations/eligible.py | 38 +- .../alerting/destinations/webhooks.py | 65 +- src/cloudflare/resources/alerting/policies.py | 38 +- src/cloudflare/resources/argo/__init__.py | 72 +- src/cloudflare/resources/argo/argo.py | 110 +- .../resources/argo/smart_routing.py | 38 +- .../resources/argo/tiered_caching.py | 38 +- src/cloudflare/resources/audit_logs.py | 38 +- src/cloudflare/resources/billing/__init__.py | 48 +- src/cloudflare/resources/billing/billing.py | 74 +- src/cloudflare/resources/billing/profiles.py | 38 +- src/cloudflare/resources/bot_management.py | 38 +- src/cloudflare/resources/brand_protection.py | 38 +- src/cloudflare/resources/cache/__init__.py | 72 +- src/cloudflare/resources/cache/cache.py | 110 +- .../resources/cache/smart_tiered_cache.py | 38 +- src/cloudflare/resources/cache/variants.py | 38 +- src/cloudflare/resources/calls.py | 38 +- .../certificate_authorities/__init__.py | 48 +- .../certificate_authorities.py | 76 +- .../hostname_associations.py | 38 +- .../resources/challenges/__init__.py | 48 +- .../resources/challenges/challenges.py | 74 +- .../resources/challenges/widgets.py | 38 +- .../resources/client_certificates.py | 38 +- .../resources/cloudforce_one/__init__.py | 48 +- .../cloudforce_one/cloudforce_one.py | 76 +- .../cloudforce_one/requests/__init__.py | 24 +- .../cloudforce_one/requests/requests.py | 38 +- .../resources/custom_certificates/__init__.py | 48 +- .../custom_certificates.py | 74 +- .../custom_certificates/prioritize.py | 38 +- .../resources/custom_hostnames/__init__.py | 48 +- .../custom_hostnames/custom_hostnames.py | 74 +- .../custom_hostnames/fallback_origin.py | 38 +- .../resources/custom_nameservers.py | 38 +- src/cloudflare/resources/d1/__init__.py | 24 +- src/cloudflare/resources/d1/d1.py | 36 +- src/cloudflare/resources/d1/database.py | 38 +- .../resources/dcv_delegation/__init__.py | 48 +- .../dcv_delegation/dcv_delegation.py | 74 +- .../resources/dcv_delegation/uuid.py | 38 +- .../resources/diagnostics/__init__.py | 48 +- .../resources/diagnostics/diagnostics.py | 74 +- .../resources/diagnostics/traceroutes.py | 38 +- src/cloudflare/resources/dns/__init__.py | 72 +- .../resources/dns/analytics/__init__.py | 48 +- .../resources/dns/analytics/analytics.py | 76 +- .../dns/analytics/reports/__init__.py | 48 +- .../dns/analytics/reports/bytimes.py | 38 +- .../dns/analytics/reports/reports.py | 74 +- src/cloudflare/resources/dns/dns.py | 112 +- .../resources/dns/firewall/__init__.py | 24 +- .../dns/firewall/analytics/__init__.py | 48 +- .../dns/firewall/analytics/analytics.py | 76 +- .../firewall/analytics/reports/__init__.py | 48 +- .../dns/firewall/analytics/reports/bytimes.py | 38 +- .../dns/firewall/analytics/reports/reports.py | 74 +- .../resources/dns/firewall/firewall.py | 38 +- src/cloudflare/resources/dns/records.py | 38 +- .../resources/durable_objects/__init__.py | 48 +- .../durable_objects/durable_objects.py | 76 +- .../durable_objects/namespaces/__init__.py | 48 +- .../durable_objects/namespaces/namespaces.py | 74 +- .../durable_objects/namespaces/objects.py | 38 +- .../resources/email_routing/__init__.py | 96 +- .../resources/email_routing/addresses.py | 38 +- src/cloudflare/resources/email_routing/dns.py | 38 +- .../resources/email_routing/email_routing.py | 148 +- .../resources/email_routing/rules/__init__.py | 48 +- .../email_routing/rules/catch_alls.py | 38 +- .../resources/email_routing/rules/rules.py | 74 +- .../resources/event_notifications/__init__.py | 48 +- .../event_notifications.py | 76 +- .../event_notifications/r2/__init__.py | 48 +- .../r2/configuration/__init__.py | 48 +- .../r2/configuration/configuration.py | 74 +- .../r2/configuration/queues.py | 38 +- .../resources/event_notifications/r2/r2.py | 76 +- src/cloudflare/resources/filters.py | 38 +- src/cloudflare/resources/firewall/__init__.py | 144 +- .../resources/firewall/access_rules.py | 38 +- src/cloudflare/resources/firewall/firewall.py | 220 +- .../resources/firewall/lockdowns.py | 38 +- src/cloudflare/resources/firewall/rules.py | 38 +- src/cloudflare/resources/firewall/ua_rules.py | 38 +- .../resources/firewall/waf/__init__.py | 72 +- .../resources/firewall/waf/overrides.py | 38 +- .../firewall/waf/packages/__init__.py | 72 +- .../resources/firewall/waf/packages/groups.py | 38 +- .../firewall/waf/packages/packages.py | 110 +- .../resources/firewall/waf/packages/rules.py | 38 +- src/cloudflare/resources/firewall/waf/waf.py | 112 +- .../resources/healthchecks/__init__.py | 48 +- .../resources/healthchecks/healthchecks.py | 74 +- .../resources/healthchecks/previews.py | 38 +- .../resources/hostnames/__init__.py | 48 +- .../resources/hostnames/hostnames.py | 76 +- .../resources/hostnames/settings/__init__.py | 48 +- .../resources/hostnames/settings/settings.py | 74 +- .../resources/hostnames/settings/tls.py | 38 +- .../resources/hyperdrive/__init__.py | 24 +- .../resources/hyperdrive/configs.py | 38 +- .../resources/hyperdrive/hyperdrive.py | 36 +- src/cloudflare/resources/images/__init__.py | 72 +- src/cloudflare/resources/images/images.py | 114 +- .../resources/images/v1/__init__.py | 120 +- src/cloudflare/resources/images/v1/blobs.py | 38 +- src/cloudflare/resources/images/v1/keys.py | 38 +- src/cloudflare/resources/images/v1/stats.py | 38 +- src/cloudflare/resources/images/v1/v1.py | 182 +- .../resources/images/v1/variants.py | 38 +- .../resources/images/v2/__init__.py | 48 +- .../resources/images/v2/direct_uploads.py | 38 +- src/cloudflare/resources/images/v2/v2.py | 74 +- src/cloudflare/resources/intel/__init__.py | 264 +-- .../resources/intel/asn/__init__.py | 48 +- src/cloudflare/resources/intel/asn/asn.py | 92 +- src/cloudflare/resources/intel/asn/subnets.py | 38 +- .../intel/attack_surface_report/__init__.py | 72 +- .../attack_surface_report.py | 110 +- .../attack_surface_report/issue_types.py | 38 +- .../intel/attack_surface_report/issues.py | 38 +- src/cloudflare/resources/intel/dns.py | 38 +- .../resources/intel/domains/__init__.py | 48 +- .../resources/intel/domains/bulks.py | 38 +- .../resources/intel/domains/domains.py | 74 +- .../intel/indicator_feeds/__init__.py | 48 +- .../intel/indicator_feeds/indicator_feeds.py | 74 +- .../intel/indicator_feeds/permissions.py | 38 +- src/cloudflare/resources/intel/intel.py | 406 ++-- src/cloudflare/resources/intel/ip_lists.py | 38 +- src/cloudflare/resources/intel/ips.py | 38 +- .../resources/intel/miscategorizations.py | 38 +- src/cloudflare/resources/intel/sinkholes.py | 38 +- src/cloudflare/resources/intel/whois.py | 53 +- src/cloudflare/resources/ips.py | 38 +- .../resources/keyless_certificates.py | 38 +- src/cloudflare/resources/kv/__init__.py | 48 +- src/cloudflare/resources/kv/kv.py | 76 +- .../resources/kv/namespaces/__init__.py | 120 +- .../resources/kv/namespaces/bulk.py | 38 +- .../resources/kv/namespaces/keys.py | 38 +- .../resources/kv/namespaces/metadata.py | 38 +- .../resources/kv/namespaces/namespaces.py | 182 +- .../resources/kv/namespaces/values.py | 38 +- .../resources/load_balancers/__init__.py | 144 +- .../load_balancers/load_balancers.py | 222 +- .../load_balancers/monitors/__init__.py | 72 +- .../load_balancers/monitors/monitors.py | 110 +- .../load_balancers/monitors/previews.py | 38 +- .../load_balancers/monitors/references.py | 38 +- .../load_balancers/pools/__init__.py | 72 +- .../resources/load_balancers/pools/health.py | 38 +- .../resources/load_balancers/pools/pools.py | 110 +- .../load_balancers/pools/references.py | 38 +- .../resources/load_balancers/previews.py | 38 +- .../resources/load_balancers/regions.py | 38 +- .../resources/load_balancers/searches.py | 38 +- src/cloudflare/resources/logpush/__init__.py | 144 +- .../resources/logpush/datasets/__init__.py | 72 +- .../resources/logpush/datasets/datasets.py | 110 +- .../resources/logpush/datasets/fields.py | 38 +- .../resources/logpush/datasets/jobs.py | 38 +- src/cloudflare/resources/logpush/edge.py | 38 +- src/cloudflare/resources/logpush/jobs.py | 38 +- src/cloudflare/resources/logpush/logpush.py | 220 +- src/cloudflare/resources/logpush/ownership.py | 38 +- src/cloudflare/resources/logpush/validate.py | 38 +- src/cloudflare/resources/logs/__init__.py | 96 +- .../resources/logs/control/__init__.py | 72 +- .../resources/logs/control/cmb/__init__.py | 48 +- .../resources/logs/control/cmb/cmb.py | 74 +- .../resources/logs/control/cmb/config.py | 38 +- .../resources/logs/control/control.py | 114 +- .../logs/control/retention/__init__.py | 48 +- .../resources/logs/control/retention/flag.py | 38 +- .../logs/control/retention/retention.py | 74 +- src/cloudflare/resources/logs/logs.py | 150 +- src/cloudflare/resources/logs/rayid.py | 38 +- .../resources/logs/received/__init__.py | 48 +- .../resources/logs/received/fields.py | 38 +- .../resources/logs/received/received.py | 74 +- .../magic_network_monitoring/__init__.py | 72 +- .../configs/__init__.py | 48 +- .../configs/configs.py | 74 +- .../magic_network_monitoring/configs/full.py | 38 +- .../magic_network_monitoring.py | 114 +- .../rules/__init__.py | 48 +- .../rules/advertisements.py | 38 +- .../magic_network_monitoring/rules/rules.py | 74 +- .../resources/magic_transit/__init__.py | 144 +- .../magic_transit/cf_interconnects.py | 38 +- .../resources/magic_transit/gre_tunnels.py | 38 +- .../resources/magic_transit/ipsec_tunnels.py | 38 +- .../resources/magic_transit/magic_transit.py | 220 +- .../resources/magic_transit/routes.py | 38 +- .../resources/magic_transit/sites/__init__.py | 96 +- .../resources/magic_transit/sites/acls.py | 38 +- .../resources/magic_transit/sites/lans.py | 38 +- .../resources/magic_transit/sites/sites.py | 146 +- .../resources/magic_transit/sites/wans.py | 38 +- src/cloudflare/resources/managed_headers.py | 38 +- src/cloudflare/resources/memberships.py | 38 +- .../resources/mtls_certificates/__init__.py | 48 +- .../mtls_certificates/associations.py | 38 +- .../mtls_certificates/mtls_certificates.py | 74 +- .../resources/origin_ca_certificates.py | 38 +- .../origin_post_quantum_encryption.py | 38 +- .../origin_tls_client_auth/__init__.py | 72 +- .../hostnames/__init__.py | 48 +- .../hostnames/certificates.py | 38 +- .../hostnames/hostnames.py | 74 +- .../origin_tls_client_auth.py | 112 +- .../origin_tls_client_auth/settings.py | 38 +- .../resources/page_shield/__init__.py | 96 +- .../resources/page_shield/connections.py | 38 +- .../resources/page_shield/page_shield.py | 146 +- .../resources/page_shield/policies.py | 38 +- .../resources/page_shield/scripts.py | 38 +- .../resources/pagerules/__init__.py | 48 +- .../resources/pagerules/pagerules.py | 74 +- .../resources/pagerules/settings.py | 38 +- src/cloudflare/resources/pages/__init__.py | 48 +- src/cloudflare/resources/pages/pages.py | 76 +- .../resources/pages/projects/__init__.py | 72 +- .../pages/projects/deployments/__init__.py | 48 +- .../pages/projects/deployments/deployments.py | 76 +- .../projects/deployments/history/__init__.py | 48 +- .../projects/deployments/history/history.py | 74 +- .../projects/deployments/history/logs.py | 38 +- .../resources/pages/projects/domains.py | 38 +- .../resources/pages/projects/projects.py | 112 +- src/cloudflare/resources/pcaps/__init__.py | 48 +- src/cloudflare/resources/pcaps/download.py | 38 +- src/cloudflare/resources/pcaps/pcaps.py | 74 +- src/cloudflare/resources/plans.py | 38 +- src/cloudflare/resources/queues/__init__.py | 72 +- src/cloudflare/resources/queues/consumers.py | 38 +- src/cloudflare/resources/queues/messages.py | 38 +- src/cloudflare/resources/queues/queues.py | 110 +- src/cloudflare/resources/r2/__init__.py | 48 +- src/cloudflare/resources/r2/buckets.py | 38 +- src/cloudflare/resources/r2/r2.py | 74 +- src/cloudflare/resources/radar/__init__.py | 408 ++-- .../resources/radar/annotations/__init__.py | 48 +- .../radar/annotations/annotations.py | 74 +- .../resources/radar/annotations/outages.py | 38 +- .../resources/radar/as112/__init__.py | 96 +- src/cloudflare/resources/radar/as112/as112.py | 146 +- .../resources/radar/as112/summary.py | 38 +- .../radar/as112/timeseries_groups.py | 38 +- src/cloudflare/resources/radar/as112/top.py | 38 +- .../resources/radar/attacks/__init__.py | 72 +- .../resources/radar/attacks/attacks.py | 114 +- .../radar/attacks/layer3/__init__.py | 96 +- .../resources/radar/attacks/layer3/layer3.py | 148 +- .../resources/radar/attacks/layer3/summary.py | 38 +- .../radar/attacks/layer3/timeseries_groups.py | 38 +- .../radar/attacks/layer3/top/__init__.py | 48 +- .../radar/attacks/layer3/top/locations.py | 38 +- .../resources/radar/attacks/layer3/top/top.py | 74 +- .../radar/attacks/layer7/__init__.py | 96 +- .../resources/radar/attacks/layer7/layer7.py | 148 +- .../resources/radar/attacks/layer7/summary.py | 38 +- .../radar/attacks/layer7/timeseries_groups.py | 38 +- .../radar/attacks/layer7/top/__init__.py | 72 +- .../radar/attacks/layer7/top/ases.py | 38 +- .../radar/attacks/layer7/top/locations.py | 38 +- .../resources/radar/attacks/layer7/top/top.py | 110 +- .../resources/radar/bgp/__init__.py | 120 +- src/cloudflare/resources/radar/bgp/bgp.py | 188 +- .../resources/radar/bgp/hijacks/__init__.py | 48 +- .../resources/radar/bgp/hijacks/events.py | 38 +- .../resources/radar/bgp/hijacks/hijacks.py | 74 +- .../resources/radar/bgp/leaks/__init__.py | 48 +- .../resources/radar/bgp/leaks/events.py | 38 +- .../resources/radar/bgp/leaks/leaks.py | 74 +- src/cloudflare/resources/radar/bgp/routes.py | 38 +- .../resources/radar/bgp/top/__init__.py | 48 +- .../resources/radar/bgp/top/ases.py | 38 +- src/cloudflare/resources/radar/bgp/top/top.py | 74 +- .../resources/radar/connection_tampering.py | 38 +- src/cloudflare/resources/radar/datasets.py | 38 +- .../resources/radar/dns/__init__.py | 48 +- src/cloudflare/resources/radar/dns/dns.py | 74 +- src/cloudflare/resources/radar/dns/top.py | 38 +- .../resources/radar/email/__init__.py | 72 +- src/cloudflare/resources/radar/email/email.py | 114 +- .../resources/radar/email/routing/__init__.py | 72 +- .../resources/radar/email/routing/routing.py | 110 +- .../resources/radar/email/routing/summary.py | 38 +- .../radar/email/routing/timeseries_groups.py | 38 +- .../radar/email/security/__init__.py | 96 +- .../radar/email/security/security.py | 148 +- .../resources/radar/email/security/summary.py | 38 +- .../radar/email/security/timeseries_groups.py | 38 +- .../radar/email/security/top/__init__.py | 48 +- .../radar/email/security/top/tlds/__init__.py | 96 +- .../email/security/top/tlds/malicious.py | 38 +- .../radar/email/security/top/tlds/spam.py | 38 +- .../radar/email/security/top/tlds/spoof.py | 38 +- .../radar/email/security/top/tlds/tlds.py | 146 +- .../resources/radar/email/security/top/top.py | 76 +- .../resources/radar/entities/__init__.py | 72 +- .../resources/radar/entities/asns.py | 38 +- .../resources/radar/entities/entities.py | 110 +- .../resources/radar/entities/locations.py | 38 +- .../resources/radar/http/__init__.py | 144 +- .../resources/radar/http/ases/__init__.py | 192 +- .../resources/radar/http/ases/ases.py | 290 +-- .../resources/radar/http/ases/bot_class.py | 38 +- .../resources/radar/http/ases/device_type.py | 38 +- .../resources/radar/http/ases/http_method.py | 38 +- .../radar/http/ases/http_protocol.py | 38 +- .../resources/radar/http/ases/ip_version.py | 38 +- .../resources/radar/http/ases/os.py | 38 +- .../resources/radar/http/ases/tls_version.py | 38 +- src/cloudflare/resources/radar/http/http.py | 222 +- .../radar/http/locations/__init__.py | 192 +- .../radar/http/locations/bot_class.py | 38 +- .../radar/http/locations/device_type.py | 38 +- .../radar/http/locations/http_method.py | 38 +- .../radar/http/locations/http_protocol.py | 38 +- .../radar/http/locations/ip_version.py | 38 +- .../radar/http/locations/locations.py | 290 +-- .../resources/radar/http/locations/os.py | 38 +- .../radar/http/locations/tls_version.py | 38 +- .../resources/radar/http/summary.py | 38 +- .../resources/radar/http/timeseries_groups.py | 38 +- src/cloudflare/resources/radar/http/top.py | 38 +- .../resources/radar/netflows/__init__.py | 48 +- .../resources/radar/netflows/netflows.py | 74 +- .../resources/radar/netflows/top.py | 38 +- .../resources/radar/quality/__init__.py | 72 +- src/cloudflare/resources/radar/quality/iqi.py | 38 +- .../resources/radar/quality/quality.py | 112 +- .../resources/radar/quality/speed/__init__.py | 48 +- .../resources/radar/quality/speed/speed.py | 74 +- .../resources/radar/quality/speed/top.py | 38 +- src/cloudflare/resources/radar/radar.py | 640 +++--- .../resources/radar/ranking/__init__.py | 48 +- .../resources/radar/ranking/domain.py | 38 +- .../resources/radar/ranking/ranking.py | 74 +- src/cloudflare/resources/radar/search.py | 38 +- .../radar/traffic_anomalies/__init__.py | 48 +- .../radar/traffic_anomalies/locations.py | 38 +- .../traffic_anomalies/traffic_anomalies.py | 74 +- .../resources/radar/verified_bots/__init__.py | 48 +- .../resources/radar/verified_bots/top.py | 38 +- .../radar/verified_bots/verified_bots.py | 74 +- src/cloudflare/resources/rate_limits.py | 38 +- src/cloudflare/resources/rate_plans.py | 38 +- .../resources/registrar/__init__.py | 48 +- src/cloudflare/resources/registrar/domains.py | 38 +- .../resources/registrar/registrar.py | 74 +- .../resources/request_tracers/__init__.py | 48 +- .../request_tracers/request_tracers.py | 74 +- .../resources/request_tracers/traces.py | 38 +- src/cloudflare/resources/rules/__init__.py | 48 +- .../resources/rules/lists/__init__.py | 72 +- .../resources/rules/lists/bulk_operations.py | 38 +- src/cloudflare/resources/rules/lists/items.py | 38 +- src/cloudflare/resources/rules/lists/lists.py | 110 +- src/cloudflare/resources/rules/rules.py | 76 +- src/cloudflare/resources/rulesets/__init__.py | 96 +- .../resources/rulesets/phases/__init__.py | 48 +- .../resources/rulesets/phases/phases.py | 74 +- .../resources/rulesets/phases/versions.py | 38 +- src/cloudflare/resources/rulesets/rules.py | 38 +- src/cloudflare/resources/rulesets/rulesets.py | 150 +- .../resources/rulesets/versions/__init__.py | 48 +- .../resources/rulesets/versions/by_tag.py | 38 +- .../resources/rulesets/versions/versions.py | 74 +- src/cloudflare/resources/rum/__init__.py | 72 +- src/cloudflare/resources/rum/rules.py | 38 +- src/cloudflare/resources/rum/rum.py | 110 +- src/cloudflare/resources/rum/site_info.py | 38 +- .../resources/secondary_dns/__init__.py | 96 +- .../resources/secondary_dns/acls.py | 38 +- .../secondary_dns/outgoing/__init__.py | 24 +- .../secondary_dns/outgoing/outgoing.py | 36 +- .../secondary_dns/outgoing/status.py | 38 +- .../resources/secondary_dns/peers.py | 38 +- .../resources/secondary_dns/secondary_dns.py | 146 +- .../resources/secondary_dns/tsigs.py | 38 +- src/cloudflare/resources/snippets/__init__.py | 72 +- src/cloudflare/resources/snippets/content.py | 38 +- src/cloudflare/resources/snippets/rules.py | 38 +- src/cloudflare/resources/snippets/snippets.py | 110 +- src/cloudflare/resources/spectrum/__init__.py | 72 +- .../resources/spectrum/analytics/__init__.py | 72 +- .../spectrum/analytics/aggregates/__init__.py | 48 +- .../analytics/aggregates/aggregates.py | 74 +- .../spectrum/analytics/aggregates/currents.py | 38 +- .../resources/spectrum/analytics/analytics.py | 114 +- .../spectrum/analytics/events/__init__.py | 72 +- .../spectrum/analytics/events/bytimes.py | 38 +- .../spectrum/analytics/events/events.py | 110 +- .../spectrum/analytics/events/summaries.py | 38 +- src/cloudflare/resources/spectrum/apps.py | 38 +- src/cloudflare/resources/spectrum/spectrum.py | 112 +- src/cloudflare/resources/speed/__init__.py | 96 +- .../resources/speed/availabilities.py | 38 +- src/cloudflare/resources/speed/pages.py | 38 +- src/cloudflare/resources/speed/speed.py | 146 +- src/cloudflare/resources/speed/tests.py | 38 +- src/cloudflare/resources/ssl/__init__.py | 120 +- src/cloudflare/resources/ssl/analyze.py | 38 +- .../ssl/certificate_packs/__init__.py | 72 +- .../certificate_packs/certificate_packs.py | 110 +- .../resources/ssl/certificate_packs/order.py | 38 +- .../resources/ssl/certificate_packs/quota.py | 38 +- .../resources/ssl/recommendations.py | 38 +- src/cloudflare/resources/ssl/ssl.py | 186 +- .../resources/ssl/universal/__init__.py | 48 +- .../resources/ssl/universal/settings.py | 38 +- .../resources/ssl/universal/universal.py | 74 +- src/cloudflare/resources/storage/__init__.py | 48 +- src/cloudflare/resources/storage/analytics.py | 38 +- src/cloudflare/resources/storage/storage.py | 74 +- src/cloudflare/resources/stream/__init__.py | 312 +-- .../resources/stream/audio_tracks.py | 38 +- .../resources/stream/captions/__init__.py | 48 +- .../resources/stream/captions/captions.py | 76 +- .../stream/captions/language/__init__.py | 48 +- .../stream/captions/language/language.py | 74 +- .../resources/stream/captions/language/vtt.py | 38 +- src/cloudflare/resources/stream/copy.py | 38 +- .../resources/stream/direct_upload.py | 38 +- src/cloudflare/resources/stream/downloads.py | 38 +- src/cloudflare/resources/stream/embed.py | 38 +- src/cloudflare/resources/stream/keys.py | 53 +- .../resources/stream/live_inputs/__init__.py | 48 +- .../stream/live_inputs/live_inputs.py | 74 +- .../resources/stream/live_inputs/outputs.py | 38 +- src/cloudflare/resources/stream/stream.py | 474 ++--- src/cloudflare/resources/stream/token.py | 38 +- src/cloudflare/resources/stream/videos.py | 38 +- src/cloudflare/resources/stream/watermarks.py | 38 +- src/cloudflare/resources/stream/webhooks.py | 38 +- src/cloudflare/resources/subscriptions.py | 38 +- src/cloudflare/resources/url_normalization.py | 38 +- .../resources/url_scanner/__init__.py | 48 +- src/cloudflare/resources/url_scanner/scans.py | 38 +- .../resources/url_scanner/url_scanner.py | 74 +- src/cloudflare/resources/user/__init__.py | 168 +- src/cloudflare/resources/user/audit_logs.py | 38 +- .../resources/user/billing/__init__.py | 72 +- .../resources/user/billing/billing.py | 110 +- .../resources/user/billing/history.py | 38 +- .../resources/user/billing/profile.py | 38 +- src/cloudflare/resources/user/invites.py | 38 +- .../resources/user/organizations.py | 38 +- .../resources/user/subscriptions.py | 38 +- .../resources/user/tokens/__init__.py | 48 +- .../user/tokens/permission_groups.py | 38 +- .../resources/user/tokens/tokens.py | 74 +- src/cloudflare/resources/user/user.py | 258 +-- .../resources/vectorize/__init__.py | 48 +- src/cloudflare/resources/vectorize/indexes.py | 38 +- .../resources/vectorize/vectorize.py | 74 +- .../resources/waiting_rooms/__init__.py | 144 +- .../waiting_rooms/events/__init__.py | 48 +- .../resources/waiting_rooms/events/details.py | 38 +- .../resources/waiting_rooms/events/events.py | 74 +- .../resources/waiting_rooms/page.py | 38 +- .../resources/waiting_rooms/rules.py | 38 +- .../resources/waiting_rooms/settings.py | 38 +- .../resources/waiting_rooms/statuses.py | 38 +- .../resources/waiting_rooms/waiting_rooms.py | 220 +- src/cloudflare/resources/warp_connector.py | 38 +- src/cloudflare/resources/web3/__init__.py | 48 +- .../resources/web3/hostnames/__init__.py | 48 +- .../resources/web3/hostnames/hostnames.py | 76 +- .../ipfs_universal_paths/__init__.py | 48 +- .../content_lists/__init__.py | 48 +- .../content_lists/content_lists.py | 74 +- .../content_lists/entries.py | 38 +- .../ipfs_universal_paths.py | 76 +- src/cloudflare/resources/web3/web3.py | 76 +- src/cloudflare/resources/workers/__init__.py | 144 +- .../resources/workers/account_settings.py | 38 +- src/cloudflare/resources/workers/ai.py | 38 +- src/cloudflare/resources/workers/domains.py | 38 +- .../resources/workers/scripts/__init__.py | 168 +- .../resources/workers/scripts/content.py | 38 +- .../resources/workers/scripts/deployments.py | 38 +- .../resources/workers/scripts/schedules.py | 38 +- .../resources/workers/scripts/scripts.py | 254 +-- .../resources/workers/scripts/settings.py | 38 +- .../resources/workers/scripts/tail.py | 38 +- .../resources/workers/scripts/versions.py | 38 +- .../resources/workers/subdomains.py | 38 +- src/cloudflare/resources/workers/workers.py | 220 +- .../workers_for_platforms/__init__.py | 48 +- .../dispatch/__init__.py | 48 +- .../dispatch/dispatch.py | 76 +- .../dispatch/namespaces/__init__.py | 48 +- .../dispatch/namespaces/namespaces.py | 76 +- .../dispatch/namespaces/scripts/__init__.py | 144 +- .../dispatch/namespaces/scripts/bindings.py | 38 +- .../dispatch/namespaces/scripts/content.py | 38 +- .../dispatch/namespaces/scripts/scripts.py | 218 +- .../dispatch/namespaces/scripts/secrets.py | 38 +- .../dispatch/namespaces/scripts/settings.py | 38 +- .../dispatch/namespaces/scripts/tags.py | 38 +- .../workers_for_platforms.py | 76 +- .../resources/zero_trust/__init__.py | 312 +-- .../resources/zero_trust/access/__init__.py | 264 +-- .../resources/zero_trust/access/access.py | 406 ++-- .../access/applications/__init__.py | 96 +- .../access/applications/applications.py | 146 +- .../zero_trust/access/applications/cas.py | 38 +- .../access/applications/policies.py | 38 +- .../access/applications/user_policy_checks.py | 38 +- .../resources/zero_trust/access/bookmarks.py | 38 +- .../access/certificates/__init__.py | 48 +- .../access/certificates/certificates.py | 74 +- .../access/certificates/settings.py | 38 +- .../zero_trust/access/custom_pages.py | 38 +- .../resources/zero_trust/access/groups.py | 38 +- .../resources/zero_trust/access/keys.py | 38 +- .../zero_trust/access/logs/__init__.py | 48 +- .../zero_trust/access/logs/access_requests.py | 38 +- .../resources/zero_trust/access/logs/logs.py | 74 +- .../zero_trust/access/service_tokens.py | 38 +- .../resources/zero_trust/access/tags.py | 38 +- .../zero_trust/access/users/__init__.py | 96 +- .../access/users/active_sessions.py | 38 +- .../zero_trust/access/users/failed_logins.py | 38 +- .../access/users/last_seen_identity.py | 38 +- .../zero_trust/access/users/users.py | 146 +- .../zero_trust/connectivity_settings.py | 38 +- .../resources/zero_trust/devices/__init__.py | 216 +- .../resources/zero_trust/devices/devices.py | 330 +-- .../resources/zero_trust/devices/dex_tests.py | 38 +- .../resources/zero_trust/devices/networks.py | 38 +- .../zero_trust/devices/override_codes.py | 38 +- .../zero_trust/devices/policies/__init__.py | 120 +- .../devices/policies/default_policy.py | 38 +- .../zero_trust/devices/policies/excludes.py | 38 +- .../devices/policies/fallback_domains.py | 38 +- .../zero_trust/devices/policies/includes.py | 38 +- .../zero_trust/devices/policies/policies.py | 182 +- .../zero_trust/devices/posture/__init__.py | 48 +- .../devices/posture/integrations.py | 38 +- .../zero_trust/devices/posture/posture.py | 74 +- .../resources/zero_trust/devices/revoke.py | 38 +- .../resources/zero_trust/devices/settings.py | 38 +- .../resources/zero_trust/devices/unrevoke.py | 38 +- .../resources/zero_trust/dex/__init__.py | 168 +- .../resources/zero_trust/dex/colos.py | 38 +- .../resources/zero_trust/dex/dex.py | 265 +-- .../zero_trust/dex/fleet_status/__init__.py | 48 +- .../zero_trust/dex/fleet_status/devices.py | 38 +- .../dex/fleet_status/fleet_status.py | 74 +- .../zero_trust/dex/http_tests/__init__.py | 48 +- .../zero_trust/dex/http_tests/http_tests.py | 74 +- .../zero_trust/dex/http_tests/percentiles.py | 38 +- .../zero_trust/dex/tests/__init__.py | 48 +- .../resources/zero_trust/dex/tests/tests.py | 74 +- .../zero_trust/dex/tests/unique_devices.py | 53 +- .../dex/traceroute_test_results/__init__.py | 48 +- .../traceroute_test_results/network_path.py | 38 +- .../traceroute_test_results.py | 74 +- .../zero_trust/dex/traceroute_tests.py | 38 +- .../resources/zero_trust/dlp/__init__.py | 120 +- .../zero_trust/dlp/datasets/__init__.py | 48 +- .../zero_trust/dlp/datasets/datasets.py | 74 +- .../zero_trust/dlp/datasets/upload.py | 38 +- .../resources/zero_trust/dlp/dlp.py | 186 +- .../resources/zero_trust/dlp/patterns.py | 38 +- .../resources/zero_trust/dlp/payload_logs.py | 38 +- .../zero_trust/dlp/profiles/__init__.py | 72 +- .../zero_trust/dlp/profiles/custom.py | 38 +- .../zero_trust/dlp/profiles/predefined.py | 38 +- .../zero_trust/dlp/profiles/profiles.py | 110 +- .../resources/zero_trust/gateway/__init__.py | 240 +-- .../resources/zero_trust/gateway/app_types.py | 38 +- .../zero_trust/gateway/audit_ssh_settings.py | 38 +- .../zero_trust/gateway/categories.py | 38 +- .../zero_trust/gateway/configurations.py | 38 +- .../resources/zero_trust/gateway/gateway.py | 364 ++-- .../zero_trust/gateway/lists/__init__.py | 48 +- .../zero_trust/gateway/lists/items.py | 38 +- .../zero_trust/gateway/lists/lists.py | 74 +- .../resources/zero_trust/gateway/locations.py | 38 +- .../resources/zero_trust/gateway/logging.py | 38 +- .../zero_trust/gateway/proxy_endpoints.py | 38 +- .../resources/zero_trust/gateway/rules.py | 38 +- .../zero_trust/identity_providers.py | 38 +- .../resources/zero_trust/networks/__init__.py | 72 +- .../resources/zero_trust/networks/networks.py | 112 +- .../zero_trust/networks/routes/__init__.py | 72 +- .../zero_trust/networks/routes/ips.py | 38 +- .../zero_trust/networks/routes/networks.py | 38 +- .../zero_trust/networks/routes/routes.py | 110 +- .../zero_trust/networks/virtual_networks.py | 38 +- .../resources/zero_trust/organizations.py | 38 +- .../zero_trust/risk_scoring/__init__.py | 72 +- .../zero_trust/risk_scoring/behaviours.py | 38 +- .../zero_trust/risk_scoring/risk_scoring.py | 110 +- .../zero_trust/risk_scoring/summary.py | 38 +- src/cloudflare/resources/zero_trust/seats.py | 38 +- .../resources/zero_trust/tunnels/__init__.py | 144 +- .../zero_trust/tunnels/configurations.py | 38 +- .../zero_trust/tunnels/connections.py | 38 +- .../zero_trust/tunnels/connectors.py | 38 +- .../zero_trust/tunnels/management.py | 38 +- .../resources/zero_trust/tunnels/token.py | 38 +- .../resources/zero_trust/tunnels/tunnels.py | 218 +- .../resources/zero_trust/zero_trust.py | 486 ++--- src/cloudflare/resources/zones/__init__.py | 168 +- .../resources/zones/activation_check.py | 38 +- .../resources/zones/custom_nameservers.py | 38 +- .../resources/zones/dns_settings.py | 38 +- src/cloudflare/resources/zones/holds.py | 38 +- .../resources/zones/settings/__init__.py | 216 +- .../resources/zones/settings/advanced_ddos.py | 52 +- .../zones/settings/always_use_https.py | 73 +- .../settings/automatic_https_rewrites.py | 77 +- .../resources/zones/settings/ciphers.py | 65 +- .../resources/zones/settings/early_hints.py | 65 +- .../resources/zones/settings/font_settings.py | 65 +- .../zones/settings/security_headers.py | 73 +- .../zones/settings/server_side_excludes.py | 77 +- .../resources/zones/settings/settings.py | 326 +-- .../resources/zones/subscriptions.py | 38 +- src/cloudflare/resources/zones/zones.py | 256 +-- 664 files changed, 25378 insertions(+), 25367 deletions(-) diff --git a/api.md b/api.md index f85a471a549..c71a3bef468 100644 --- a/api.md +++ b/api.md @@ -254,7 +254,7 @@ Methods: - client.user.tokens.permission_groups.list() -> SyncSinglePage[object] -### ValueResource +### Value Types: @@ -309,7 +309,7 @@ Methods: ## Settings -### ZeroRTTResource +### ZeroRTT Types: @@ -334,7 +334,7 @@ Methods: - client.zones.settings.advanced_ddos.get(\*, zone_id) -> Optional -### AlwaysOnlineResource +### AlwaysOnline Types: @@ -373,7 +373,7 @@ Methods: - client.zones.settings.automatic_https_rewrites.edit(\*, zone_id, \*\*params) -> Optional - client.zones.settings.automatic_https_rewrites.get(\*, zone_id) -> Optional -### AutomaticPlatformOptimizationResource +### AutomaticPlatformOptimization Types: @@ -386,7 +386,7 @@ Methods: - client.zones.settings.automatic_platform_optimization.edit(\*, zone_id, \*\*params) -> Optional - client.zones.settings.automatic_platform_optimization.get(\*, zone_id) -> Optional -### BrotliResource +### Brotli Types: @@ -399,7 +399,7 @@ Methods: - client.zones.settings.brotli.edit(\*, zone_id, \*\*params) -> Optional - client.zones.settings.brotli.get(\*, zone_id) -> Optional -### BrowserCacheTTLResource +### BrowserCacheTTL Types: @@ -412,7 +412,7 @@ Methods: - client.zones.settings.browser_cache_ttl.edit(\*, zone_id, \*\*params) -> Optional - client.zones.settings.browser_cache_ttl.get(\*, zone_id) -> Optional -### BrowserCheckResource +### BrowserCheck Types: @@ -425,7 +425,7 @@ Methods: - client.zones.settings.browser_check.edit(\*, zone_id, \*\*params) -> Optional - client.zones.settings.browser_check.get(\*, zone_id) -> Optional -### CacheLevelResource +### CacheLevel Types: @@ -438,7 +438,7 @@ Methods: - client.zones.settings.cache_level.edit(\*, zone_id, \*\*params) -> Optional - client.zones.settings.cache_level.get(\*, zone_id) -> Optional -### ChallengeTTLResource +### ChallengeTTL Types: @@ -464,7 +464,7 @@ Methods: - client.zones.settings.ciphers.edit(\*, zone_id, \*\*params) -> Optional - client.zones.settings.ciphers.get(\*, zone_id) -> Optional -### DevelopmentModeResource +### DevelopmentMode Types: @@ -490,7 +490,7 @@ Methods: - client.zones.settings.early_hints.edit(\*, zone_id, \*\*params) -> Optional - client.zones.settings.early_hints.get(\*, zone_id) -> Optional -### EmailObfuscationResource +### EmailObfuscation Types: @@ -503,7 +503,7 @@ Methods: - client.zones.settings.email_obfuscation.edit(\*, zone_id, \*\*params) -> Optional - client.zones.settings.email_obfuscation.get(\*, zone_id) -> Optional -### H2PrioritizationResource +### H2Prioritization Types: @@ -516,7 +516,7 @@ Methods: - client.zones.settings.h2_prioritization.edit(\*, zone_id, \*\*params) -> Optional - client.zones.settings.h2_prioritization.get(\*, zone_id) -> Optional -### HotlinkProtectionResource +### HotlinkProtection Types: @@ -529,7 +529,7 @@ Methods: - client.zones.settings.hotlink_protection.edit(\*, zone_id, \*\*params) -> Optional - client.zones.settings.hotlink_protection.get(\*, zone_id) -> Optional -### HTTP2Resource +### HTTP2 Types: @@ -542,7 +542,7 @@ Methods: - client.zones.settings.http2.edit(\*, zone_id, \*\*params) -> Optional - client.zones.settings.http2.get(\*, zone_id) -> Optional -### HTTP3Resource +### HTTP3 Types: @@ -555,7 +555,7 @@ Methods: - client.zones.settings.http3.edit(\*, zone_id, \*\*params) -> Optional - client.zones.settings.http3.get(\*, zone_id) -> Optional -### ImageResizingResource +### ImageResizing Types: @@ -568,7 +568,7 @@ Methods: - client.zones.settings.image_resizing.edit(\*, zone_id, \*\*params) -> Optional - client.zones.settings.image_resizing.get(\*, zone_id) -> Optional -### IPGeolocationResource +### IPGeolocation Types: @@ -581,7 +581,7 @@ Methods: - client.zones.settings.ip_geolocation.edit(\*, zone_id, \*\*params) -> Optional - client.zones.settings.ip_geolocation.get(\*, zone_id) -> Optional -### IPV6Resource +### IPV6 Types: @@ -594,7 +594,7 @@ Methods: - client.zones.settings.ipv6.edit(\*, zone_id, \*\*params) -> Optional - client.zones.settings.ipv6.get(\*, zone_id) -> Optional -### MinTLSVersionResource +### MinTLSVersion Types: @@ -607,7 +607,7 @@ Methods: - client.zones.settings.min_tls_version.edit(\*, zone_id, \*\*params) -> Optional - client.zones.settings.min_tls_version.get(\*, zone_id) -> Optional -### MinifyResource +### Minify Types: @@ -620,7 +620,7 @@ Methods: - client.zones.settings.minify.edit(\*, zone_id, \*\*params) -> Optional - client.zones.settings.minify.get(\*, zone_id) -> Optional -### MirageResource +### Mirage Types: @@ -633,7 +633,7 @@ Methods: - client.zones.settings.mirage.edit(\*, zone_id, \*\*params) -> Optional - client.zones.settings.mirage.get(\*, zone_id) -> Optional -### MobileRedirectResource +### MobileRedirect Types: @@ -646,7 +646,7 @@ Methods: - client.zones.settings.mobile_redirect.edit(\*, zone_id, \*\*params) -> Optional - client.zones.settings.mobile_redirect.get(\*, zone_id) -> Optional -### NELResource +### NEL Types: @@ -659,7 +659,7 @@ Methods: - client.zones.settings.nel.edit(\*, zone_id, \*\*params) -> Optional - client.zones.settings.nel.get(\*, zone_id) -> Optional -### OpportunisticEncryptionResource +### OpportunisticEncryption Types: @@ -672,7 +672,7 @@ Methods: - client.zones.settings.opportunistic_encryption.edit(\*, zone_id, \*\*params) -> Optional - client.zones.settings.opportunistic_encryption.get(\*, zone_id) -> Optional -### OpportunisticOnionResource +### OpportunisticOnion Types: @@ -685,7 +685,7 @@ Methods: - client.zones.settings.opportunistic_onion.edit(\*, zone_id, \*\*params) -> Optional - client.zones.settings.opportunistic_onion.get(\*, zone_id) -> Optional -### OrangeToOrangeResource +### OrangeToOrange Types: @@ -698,7 +698,7 @@ Methods: - client.zones.settings.orange_to_orange.edit(\*, zone_id, \*\*params) -> Optional - client.zones.settings.orange_to_orange.get(\*, zone_id) -> Optional -### OriginErrorPagePassThruResource +### OriginErrorPagePassThru Types: @@ -711,7 +711,7 @@ Methods: - client.zones.settings.origin_error_page_pass_thru.edit(\*, zone_id, \*\*params) -> Optional - client.zones.settings.origin_error_page_pass_thru.get(\*, zone_id) -> Optional -### OriginMaxHTTPVersionResource +### OriginMaxHTTPVersion Types: @@ -728,7 +728,7 @@ Methods: - client.zones.settings.origin_max_http_version.edit(\*, zone_id, \*\*params) -> OriginMaxHTTPVersionEditResponse - client.zones.settings.origin_max_http_version.get(\*, zone_id) -> OriginMaxHTTPVersionGetResponse -### PolishResource +### Polish Types: @@ -741,7 +741,7 @@ Methods: - client.zones.settings.polish.edit(\*, zone_id, \*\*params) -> Optional - client.zones.settings.polish.get(\*, zone_id) -> Optional -### PrefetchPreloadResource +### PrefetchPreload Types: @@ -754,7 +754,7 @@ Methods: - client.zones.settings.prefetch_preload.edit(\*, zone_id, \*\*params) -> Optional - client.zones.settings.prefetch_preload.get(\*, zone_id) -> Optional -### ProxyReadTimeoutResource +### ProxyReadTimeout Types: @@ -767,7 +767,7 @@ Methods: - client.zones.settings.proxy_read_timeout.edit(\*, zone_id, \*\*params) -> Optional - client.zones.settings.proxy_read_timeout.get(\*, zone_id) -> Optional -### PseudoIPV4Resource +### PseudoIPV4 Types: @@ -780,7 +780,7 @@ Methods: - client.zones.settings.pseudo_ipv4.edit(\*, zone_id, \*\*params) -> Optional - client.zones.settings.pseudo_ipv4.get(\*, zone_id) -> Optional -### ResponseBufferingResource +### ResponseBuffering Types: @@ -793,7 +793,7 @@ Methods: - client.zones.settings.response_buffering.edit(\*, zone_id, \*\*params) -> Optional - client.zones.settings.response_buffering.get(\*, zone_id) -> Optional -### RocketLoaderResource +### RocketLoader Types: @@ -819,7 +819,7 @@ Methods: - client.zones.settings.security_headers.edit(\*, zone_id, \*\*params) -> Optional - client.zones.settings.security_headers.get(\*, zone_id) -> Optional -### SecurityLevelResource +### SecurityLevel Types: @@ -845,7 +845,7 @@ Methods: - client.zones.settings.server_side_excludes.edit(\*, zone_id, \*\*params) -> Optional - client.zones.settings.server_side_excludes.get(\*, zone_id) -> Optional -### SortQueryStringForCacheResource +### SortQueryStringForCache Types: @@ -858,7 +858,7 @@ Methods: - client.zones.settings.sort_query_string_for_cache.edit(\*, zone_id, \*\*params) -> Optional - client.zones.settings.sort_query_string_for_cache.get(\*, zone_id) -> Optional -### SSLResource +### SSL Types: @@ -871,7 +871,7 @@ Methods: - client.zones.settings.ssl.edit(\*, zone_id, \*\*params) -> Optional - client.zones.settings.ssl.get(\*, zone_id) -> Optional -### SSLRecommenderResource +### SSLRecommender Types: @@ -884,7 +884,7 @@ Methods: - client.zones.settings.ssl_recommender.edit(\*, zone_id, \*\*params) -> Optional - client.zones.settings.ssl_recommender.get(\*, zone_id) -> Optional -### TLS1_3Resource +### TLS1_3 Types: @@ -897,7 +897,7 @@ Methods: - client.zones.settings.tls_1_3.edit(\*, zone_id, \*\*params) -> Optional - client.zones.settings.tls_1_3.get(\*, zone_id) -> Optional -### TLSClientAuthResource +### TLSClientAuth Types: @@ -910,7 +910,7 @@ Methods: - client.zones.settings.tls_client_auth.edit(\*, zone_id, \*\*params) -> Optional - client.zones.settings.tls_client_auth.get(\*, zone_id) -> Optional -### TrueClientIPHeaderResource +### TrueClientIPHeader Types: @@ -923,7 +923,7 @@ Methods: - client.zones.settings.true_client_ip_header.edit(\*, zone_id, \*\*params) -> Optional - client.zones.settings.true_client_ip_header.get(\*, zone_id) -> Optional -### WAFResource +### WAF Types: @@ -936,7 +936,7 @@ Methods: - client.zones.settings.waf.edit(\*, zone_id, \*\*params) -> Optional - client.zones.settings.waf.get(\*, zone_id) -> Optional -### WebPResource +### WebP Types: @@ -949,7 +949,7 @@ Methods: - client.zones.settings.webp.edit(\*, zone_id, \*\*params) -> Optional - client.zones.settings.webp.get(\*, zone_id) -> Optional -### WebsocketResource +### Websocket Types: @@ -1182,7 +1182,7 @@ Methods: - client.cache.purge(\*, zone_id, \*\*params) -> Optional -## CacheReserveResource +## CacheReserve Types: @@ -1241,7 +1241,7 @@ Methods: - client.cache.variants.edit(\*, zone_id, \*\*params) -> VariantEditResponse - client.cache.variants.get(\*, zone_id) -> VariantGetResponse -## RegionalTieredCacheResource +## RegionalTieredCache Types: @@ -1344,7 +1344,7 @@ Methods: - client.ssl.universal.settings.edit(\*, zone_id, \*\*params) -> UniversalSSLSettings - client.ssl.universal.settings.get(\*, zone_id) -> UniversalSSLSettings -## VerificationResource +## Verification Types: @@ -1667,7 +1667,7 @@ Methods: - client.dns.analytics.reports.bytimes.get(\*, zone_id, \*\*params) -> Optional -## FirewallResource +## Firewall Types: @@ -1703,7 +1703,7 @@ Methods: - client.dns.firewall.analytics.reports.bytimes.get(dns_firewall_id, \*, account_id, \*\*params) -> Optional -# DNSSECResource +# DNSSEC Types: @@ -2320,7 +2320,7 @@ Methods: # SecondaryDNS -## ForceAXFRResource +## ForceAXFR Types: @@ -2332,7 +2332,7 @@ Methods: - client.secondary_dns.force_axfr.create(\*, zone_id, \*\*params) -> str -## IncomingResource +## Incoming Types: @@ -2353,7 +2353,7 @@ Methods: - client.secondary_dns.incoming.delete(\*, zone_id, \*\*params) -> Optional - client.secondary_dns.incoming.get(\*, zone_id) -> Optional -## OutgoingResource +## Outgoing Types: @@ -3578,7 +3578,7 @@ Methods: - client.intel.domains.bulks.get(\*, account_id, \*\*params) -> Optional -## DomainHistoryResource +## DomainHistory Types: @@ -4083,7 +4083,7 @@ Methods: - client.pcaps.list(\*, account_id) -> SyncSinglePage[PCAPListResponse] - client.pcaps.get(pcap_id, \*, account_id) -> PCAPGetResponse -## OwnershipResource +## Ownership Types: @@ -4245,7 +4245,7 @@ Methods: - client.stream.videos.storage_usage(\*, account_id, \*\*params) -> Optional -## ClipResource +## Clip Types: @@ -4463,7 +4463,7 @@ Methods: - client.alerting.destinations.eligible.get(\*, account_id) -> Optional -### PagerdutyResource +### Pagerduty Types: @@ -4505,7 +4505,7 @@ Methods: - client.alerting.destinations.webhooks.delete(webhook_id, \*, account_id) -> Optional - client.alerting.destinations.webhooks.get(webhook_id, \*, account_id) -> Webhooks -## HistoryResource +## History Types: @@ -4540,7 +4540,7 @@ Methods: - client.alerting.policies.delete(policy_id, \*, account_id) -> Optional - client.alerting.policies.get(policy_id, \*, account_id) -> Policy -# D1Resource +# D1 Types: @@ -4587,7 +4587,7 @@ Methods: - client.r2.buckets.delete(bucket_name, \*, account_id) -> object - client.r2.buckets.get(bucket_name, \*, account_id) -> Bucket -## SippyResource +## Sippy Types: @@ -5966,7 +5966,7 @@ Methods: - client.challenges.widgets.get(sitekey, \*, account_id) -> Optional - client.challenges.widgets.rotate_secret(sitekey, \*, account_id, \*\*params) -> Optional -# HyperdriveResource +# Hyperdrive Types: @@ -7205,7 +7205,7 @@ Methods: - client.speed.tests.delete(url, \*, zone_id, \*\*params) -> Optional - client.speed.tests.get(test_id, \*, zone_id, url) -> Optional -## ScheduleResource +## Schedule Types: @@ -7356,7 +7356,7 @@ Methods: - client.cloudforce_one.requests.quota(account_identifier) -> Quota - client.cloudforce_one.requests.types(account_identifier) -> RequestTypes -### MessageResource +### Message Types: @@ -7375,7 +7375,7 @@ Methods: - client.cloudforce_one.requests.message.delete(message_identifer, \*, account_identifier, request_identifier) -> MessageDeleteResponse - client.cloudforce_one.requests.message.get(request_identifier, \*, account_identifier, \*\*params) -> MessageGetResponse -### PriorityResource +### Priority Types: diff --git a/src/cloudflare/_client.py b/src/cloudflare/_client.py index a8d6e5dd25a..41a4fcfac22 100644 --- a/src/cloudflare/_client.py +++ b/src/cloudflare/_client.py @@ -47,87 +47,87 @@ class Cloudflare(SyncAPIClient): - accounts: resources.Accounts - origin_ca_certificates: resources.OriginCACertificates - ips: resources.IPs - memberships: resources.Memberships - user: resources.User - zones: resources.Zones - load_balancers: resources.LoadBalancers - cache: resources.Cache - ssl: resources.SSL - subscriptions: resources.Subscriptions - acm: resources.ACM - argo: resources.Argo - plans: resources.Plans - rate_plans: resources.RatePlans - certificate_authorities: resources.CertificateAuthorities - client_certificates: resources.ClientCertificates - custom_certificates: resources.CustomCertificates - custom_hostnames: resources.CustomHostnames - custom_nameservers: resources.CustomNameservers - dns: resources.DNS + accounts: resources.AccountsResource + origin_ca_certificates: resources.OriginCACertificatesResource + ips: resources.IPsResource + memberships: resources.MembershipsResource + user: resources.UserResource + zones: resources.ZonesResource + load_balancers: resources.LoadBalancersResource + cache: resources.CacheResource + ssl: resources.SSLResource + subscriptions: resources.SubscriptionsResource + acm: resources.ACMResource + argo: resources.ArgoResource + plans: resources.PlansResource + rate_plans: resources.RatePlansResource + certificate_authorities: resources.CertificateAuthoritiesResource + client_certificates: resources.ClientCertificatesResource + custom_certificates: resources.CustomCertificatesResource + custom_hostnames: resources.CustomHostnamesResource + custom_nameservers: resources.CustomNameserversResource + dns: resources.DNSResource dnssec: resources.DNSSECResource - email_routing: resources.EmailRouting - filters: resources.Filters - firewall: resources.Firewall - healthchecks: resources.Healthchecks - keyless_certificates: resources.KeylessCertificates - logpush: resources.Logpush - logs: resources.Logs - origin_tls_client_auth: resources.OriginTLSClientAuth - pagerules: resources.Pagerules - rate_limits: resources.RateLimits - secondary_dns: resources.SecondaryDNS - waiting_rooms: resources.WaitingRooms - web3: resources.Web3 - workers: resources.Workers - kv: resources.KV - durable_objects: resources.DurableObjects - queues: resources.Queues - managed_headers: resources.ManagedHeaders - page_shield: resources.PageShield - rulesets: resources.Rulesets - url_normalization: resources.URLNormalization - spectrum: resources.Spectrum - addressing: resources.Addressing - audit_logs: resources.AuditLogs - billing: resources.Billing - brand_protection: resources.BrandProtection - diagnostics: resources.Diagnostics - images: resources.Images - intel: resources.Intel - magic_transit: resources.MagicTransit - magic_network_monitoring: resources.MagicNetworkMonitoring - mtls_certificates: resources.MTLSCertificates - pages: resources.Pages - pcaps: resources.PCAPs - registrar: resources.Registrar - request_tracers: resources.RequestTracers - rules: resources.Rules - storage: resources.Storage - stream: resources.Stream - alerting: resources.Alerting + email_routing: resources.EmailRoutingResource + filters: resources.FiltersResource + firewall: resources.FirewallResource + healthchecks: resources.HealthchecksResource + keyless_certificates: resources.KeylessCertificatesResource + logpush: resources.LogpushResource + logs: resources.LogsResource + origin_tls_client_auth: resources.OriginTLSClientAuthResource + pagerules: resources.PagerulesResource + rate_limits: resources.RateLimitsResource + secondary_dns: resources.SecondaryDNSResource + waiting_rooms: resources.WaitingRoomsResource + web3: resources.Web3Resource + workers: resources.WorkersResource + kv: resources.KVResource + durable_objects: resources.DurableObjectsResource + queues: resources.QueuesResource + managed_headers: resources.ManagedHeadersResource + page_shield: resources.PageShieldResource + rulesets: resources.RulesetsResource + url_normalization: resources.URLNormalizationResource + spectrum: resources.SpectrumResource + addressing: resources.AddressingResource + audit_logs: resources.AuditLogsResource + billing: resources.BillingResource + brand_protection: resources.BrandProtectionResource + diagnostics: resources.DiagnosticsResource + images: resources.ImagesResource + intel: resources.IntelResource + magic_transit: resources.MagicTransitResource + magic_network_monitoring: resources.MagicNetworkMonitoringResource + mtls_certificates: resources.MTLSCertificatesResource + pages: resources.PagesResource + pcaps: resources.PCAPsResource + registrar: resources.RegistrarResource + request_tracers: resources.RequestTracersResource + rules: resources.RulesResource + storage: resources.StorageResource + stream: resources.StreamResource + alerting: resources.AlertingResource d1: resources.D1Resource - r2: resources.R2 - warp_connector: resources.WARPConnector - workers_for_platforms: resources.WorkersForPlatforms - zero_trust: resources.ZeroTrust - challenges: resources.Challenges + r2: resources.R2Resource + warp_connector: resources.WARPConnectorResource + workers_for_platforms: resources.WorkersForPlatformsResource + zero_trust: resources.ZeroTrustResource + challenges: resources.ChallengesResource hyperdrive: resources.HyperdriveResource - rum: resources.RUM - vectorize: resources.Vectorize - url_scanner: resources.URLScanner - radar: resources.Radar - bot_management: resources.BotManagement - origin_post_quantum_encryption: resources.OriginPostQuantumEncryption - speed: resources.Speed - dcv_delegation: resources.DCVDelegation - hostnames: resources.Hostnames - snippets: resources.Snippets - calls: resources.Calls - cloudforce_one: resources.CloudforceOne - event_notifications: resources.EventNotifications + rum: resources.RUMResource + vectorize: resources.VectorizeResource + url_scanner: resources.URLScannerResource + radar: resources.RadarResource + bot_management: resources.BotManagementResource + origin_post_quantum_encryption: resources.OriginPostQuantumEncryptionResource + speed: resources.SpeedResource + dcv_delegation: resources.DCVDelegationResource + hostnames: resources.HostnamesResource + snippets: resources.SnippetsResource + calls: resources.CallsResource + cloudforce_one: resources.CloudforceOneResource + event_notifications: resources.EventNotificationsResource with_raw_response: CloudflareWithRawResponse with_streaming_response: CloudflareWithStreamedResponse @@ -203,87 +203,87 @@ def __init__( _strict_response_validation=_strict_response_validation, ) - self.accounts = resources.Accounts(self) - self.origin_ca_certificates = resources.OriginCACertificates(self) - self.ips = resources.IPs(self) - self.memberships = resources.Memberships(self) - self.user = resources.User(self) - self.zones = resources.Zones(self) - self.load_balancers = resources.LoadBalancers(self) - self.cache = resources.Cache(self) - self.ssl = resources.SSL(self) - self.subscriptions = resources.Subscriptions(self) - self.acm = resources.ACM(self) - self.argo = resources.Argo(self) - self.plans = resources.Plans(self) - self.rate_plans = resources.RatePlans(self) - self.certificate_authorities = resources.CertificateAuthorities(self) - self.client_certificates = resources.ClientCertificates(self) - self.custom_certificates = resources.CustomCertificates(self) - self.custom_hostnames = resources.CustomHostnames(self) - self.custom_nameservers = resources.CustomNameservers(self) - self.dns = resources.DNS(self) + self.accounts = resources.AccountsResource(self) + self.origin_ca_certificates = resources.OriginCACertificatesResource(self) + self.ips = resources.IPsResource(self) + self.memberships = resources.MembershipsResource(self) + self.user = resources.UserResource(self) + self.zones = resources.ZonesResource(self) + self.load_balancers = resources.LoadBalancersResource(self) + self.cache = resources.CacheResource(self) + self.ssl = resources.SSLResource(self) + self.subscriptions = resources.SubscriptionsResource(self) + self.acm = resources.ACMResource(self) + self.argo = resources.ArgoResource(self) + self.plans = resources.PlansResource(self) + self.rate_plans = resources.RatePlansResource(self) + self.certificate_authorities = resources.CertificateAuthoritiesResource(self) + self.client_certificates = resources.ClientCertificatesResource(self) + self.custom_certificates = resources.CustomCertificatesResource(self) + self.custom_hostnames = resources.CustomHostnamesResource(self) + self.custom_nameservers = resources.CustomNameserversResource(self) + self.dns = resources.DNSResource(self) self.dnssec = resources.DNSSECResource(self) - self.email_routing = resources.EmailRouting(self) - self.filters = resources.Filters(self) - self.firewall = resources.Firewall(self) - self.healthchecks = resources.Healthchecks(self) - self.keyless_certificates = resources.KeylessCertificates(self) - self.logpush = resources.Logpush(self) - self.logs = resources.Logs(self) - self.origin_tls_client_auth = resources.OriginTLSClientAuth(self) - self.pagerules = resources.Pagerules(self) - self.rate_limits = resources.RateLimits(self) - self.secondary_dns = resources.SecondaryDNS(self) - self.waiting_rooms = resources.WaitingRooms(self) - self.web3 = resources.Web3(self) - self.workers = resources.Workers(self) - self.kv = resources.KV(self) - self.durable_objects = resources.DurableObjects(self) - self.queues = resources.Queues(self) - self.managed_headers = resources.ManagedHeaders(self) - self.page_shield = resources.PageShield(self) - self.rulesets = resources.Rulesets(self) - self.url_normalization = resources.URLNormalization(self) - self.spectrum = resources.Spectrum(self) - self.addressing = resources.Addressing(self) - self.audit_logs = resources.AuditLogs(self) - self.billing = resources.Billing(self) - self.brand_protection = resources.BrandProtection(self) - self.diagnostics = resources.Diagnostics(self) - self.images = resources.Images(self) - self.intel = resources.Intel(self) - self.magic_transit = resources.MagicTransit(self) - self.magic_network_monitoring = resources.MagicNetworkMonitoring(self) - self.mtls_certificates = resources.MTLSCertificates(self) - self.pages = resources.Pages(self) - self.pcaps = resources.PCAPs(self) - self.registrar = resources.Registrar(self) - self.request_tracers = resources.RequestTracers(self) - self.rules = resources.Rules(self) - self.storage = resources.Storage(self) - self.stream = resources.Stream(self) - self.alerting = resources.Alerting(self) + self.email_routing = resources.EmailRoutingResource(self) + self.filters = resources.FiltersResource(self) + self.firewall = resources.FirewallResource(self) + self.healthchecks = resources.HealthchecksResource(self) + self.keyless_certificates = resources.KeylessCertificatesResource(self) + self.logpush = resources.LogpushResource(self) + self.logs = resources.LogsResource(self) + self.origin_tls_client_auth = resources.OriginTLSClientAuthResource(self) + self.pagerules = resources.PagerulesResource(self) + self.rate_limits = resources.RateLimitsResource(self) + self.secondary_dns = resources.SecondaryDNSResource(self) + self.waiting_rooms = resources.WaitingRoomsResource(self) + self.web3 = resources.Web3Resource(self) + self.workers = resources.WorkersResource(self) + self.kv = resources.KVResource(self) + self.durable_objects = resources.DurableObjectsResource(self) + self.queues = resources.QueuesResource(self) + self.managed_headers = resources.ManagedHeadersResource(self) + self.page_shield = resources.PageShieldResource(self) + self.rulesets = resources.RulesetsResource(self) + self.url_normalization = resources.URLNormalizationResource(self) + self.spectrum = resources.SpectrumResource(self) + self.addressing = resources.AddressingResource(self) + self.audit_logs = resources.AuditLogsResource(self) + self.billing = resources.BillingResource(self) + self.brand_protection = resources.BrandProtectionResource(self) + self.diagnostics = resources.DiagnosticsResource(self) + self.images = resources.ImagesResource(self) + self.intel = resources.IntelResource(self) + self.magic_transit = resources.MagicTransitResource(self) + self.magic_network_monitoring = resources.MagicNetworkMonitoringResource(self) + self.mtls_certificates = resources.MTLSCertificatesResource(self) + self.pages = resources.PagesResource(self) + self.pcaps = resources.PCAPsResource(self) + self.registrar = resources.RegistrarResource(self) + self.request_tracers = resources.RequestTracersResource(self) + self.rules = resources.RulesResource(self) + self.storage = resources.StorageResource(self) + self.stream = resources.StreamResource(self) + self.alerting = resources.AlertingResource(self) self.d1 = resources.D1Resource(self) - self.r2 = resources.R2(self) - self.warp_connector = resources.WARPConnector(self) - self.workers_for_platforms = resources.WorkersForPlatforms(self) - self.zero_trust = resources.ZeroTrust(self) - self.challenges = resources.Challenges(self) + self.r2 = resources.R2Resource(self) + self.warp_connector = resources.WARPConnectorResource(self) + self.workers_for_platforms = resources.WorkersForPlatformsResource(self) + self.zero_trust = resources.ZeroTrustResource(self) + self.challenges = resources.ChallengesResource(self) self.hyperdrive = resources.HyperdriveResource(self) - self.rum = resources.RUM(self) - self.vectorize = resources.Vectorize(self) - self.url_scanner = resources.URLScanner(self) - self.radar = resources.Radar(self) - self.bot_management = resources.BotManagement(self) - self.origin_post_quantum_encryption = resources.OriginPostQuantumEncryption(self) - self.speed = resources.Speed(self) - self.dcv_delegation = resources.DCVDelegation(self) - self.hostnames = resources.Hostnames(self) - self.snippets = resources.Snippets(self) - self.calls = resources.Calls(self) - self.cloudforce_one = resources.CloudforceOne(self) - self.event_notifications = resources.EventNotifications(self) + self.rum = resources.RUMResource(self) + self.vectorize = resources.VectorizeResource(self) + self.url_scanner = resources.URLScannerResource(self) + self.radar = resources.RadarResource(self) + self.bot_management = resources.BotManagementResource(self) + self.origin_post_quantum_encryption = resources.OriginPostQuantumEncryptionResource(self) + self.speed = resources.SpeedResource(self) + self.dcv_delegation = resources.DCVDelegationResource(self) + self.hostnames = resources.HostnamesResource(self) + self.snippets = resources.SnippetsResource(self) + self.calls = resources.CallsResource(self) + self.cloudforce_one = resources.CloudforceOneResource(self) + self.event_notifications = resources.EventNotificationsResource(self) self.with_raw_response = CloudflareWithRawResponse(self) self.with_streaming_response = CloudflareWithStreamedResponse(self) @@ -462,87 +462,87 @@ def _make_status_error( class AsyncCloudflare(AsyncAPIClient): - accounts: resources.AsyncAccounts - origin_ca_certificates: resources.AsyncOriginCACertificates - ips: resources.AsyncIPs - memberships: resources.AsyncMemberships - user: resources.AsyncUser - zones: resources.AsyncZones - load_balancers: resources.AsyncLoadBalancers - cache: resources.AsyncCache - ssl: resources.AsyncSSL - subscriptions: resources.AsyncSubscriptions - acm: resources.AsyncACM - argo: resources.AsyncArgo - plans: resources.AsyncPlans - rate_plans: resources.AsyncRatePlans - certificate_authorities: resources.AsyncCertificateAuthorities - client_certificates: resources.AsyncClientCertificates - custom_certificates: resources.AsyncCustomCertificates - custom_hostnames: resources.AsyncCustomHostnames - custom_nameservers: resources.AsyncCustomNameservers - dns: resources.AsyncDNS + accounts: resources.AsyncAccountsResource + origin_ca_certificates: resources.AsyncOriginCACertificatesResource + ips: resources.AsyncIPsResource + memberships: resources.AsyncMembershipsResource + user: resources.AsyncUserResource + zones: resources.AsyncZonesResource + load_balancers: resources.AsyncLoadBalancersResource + cache: resources.AsyncCacheResource + ssl: resources.AsyncSSLResource + subscriptions: resources.AsyncSubscriptionsResource + acm: resources.AsyncACMResource + argo: resources.AsyncArgoResource + plans: resources.AsyncPlansResource + rate_plans: resources.AsyncRatePlansResource + certificate_authorities: resources.AsyncCertificateAuthoritiesResource + client_certificates: resources.AsyncClientCertificatesResource + custom_certificates: resources.AsyncCustomCertificatesResource + custom_hostnames: resources.AsyncCustomHostnamesResource + custom_nameservers: resources.AsyncCustomNameserversResource + dns: resources.AsyncDNSResource dnssec: resources.AsyncDNSSECResource - email_routing: resources.AsyncEmailRouting - filters: resources.AsyncFilters - firewall: resources.AsyncFirewall - healthchecks: resources.AsyncHealthchecks - keyless_certificates: resources.AsyncKeylessCertificates - logpush: resources.AsyncLogpush - logs: resources.AsyncLogs - origin_tls_client_auth: resources.AsyncOriginTLSClientAuth - pagerules: resources.AsyncPagerules - rate_limits: resources.AsyncRateLimits - secondary_dns: resources.AsyncSecondaryDNS - waiting_rooms: resources.AsyncWaitingRooms - web3: resources.AsyncWeb3 - workers: resources.AsyncWorkers - kv: resources.AsyncKV - durable_objects: resources.AsyncDurableObjects - queues: resources.AsyncQueues - managed_headers: resources.AsyncManagedHeaders - page_shield: resources.AsyncPageShield - rulesets: resources.AsyncRulesets - url_normalization: resources.AsyncURLNormalization - spectrum: resources.AsyncSpectrum - addressing: resources.AsyncAddressing - audit_logs: resources.AsyncAuditLogs - billing: resources.AsyncBilling - brand_protection: resources.AsyncBrandProtection - diagnostics: resources.AsyncDiagnostics - images: resources.AsyncImages - intel: resources.AsyncIntel - magic_transit: resources.AsyncMagicTransit - magic_network_monitoring: resources.AsyncMagicNetworkMonitoring - mtls_certificates: resources.AsyncMTLSCertificates - pages: resources.AsyncPages - pcaps: resources.AsyncPCAPs - registrar: resources.AsyncRegistrar - request_tracers: resources.AsyncRequestTracers - rules: resources.AsyncRules - storage: resources.AsyncStorage - stream: resources.AsyncStream - alerting: resources.AsyncAlerting + email_routing: resources.AsyncEmailRoutingResource + filters: resources.AsyncFiltersResource + firewall: resources.AsyncFirewallResource + healthchecks: resources.AsyncHealthchecksResource + keyless_certificates: resources.AsyncKeylessCertificatesResource + logpush: resources.AsyncLogpushResource + logs: resources.AsyncLogsResource + origin_tls_client_auth: resources.AsyncOriginTLSClientAuthResource + pagerules: resources.AsyncPagerulesResource + rate_limits: resources.AsyncRateLimitsResource + secondary_dns: resources.AsyncSecondaryDNSResource + waiting_rooms: resources.AsyncWaitingRoomsResource + web3: resources.AsyncWeb3Resource + workers: resources.AsyncWorkersResource + kv: resources.AsyncKVResource + durable_objects: resources.AsyncDurableObjectsResource + queues: resources.AsyncQueuesResource + managed_headers: resources.AsyncManagedHeadersResource + page_shield: resources.AsyncPageShieldResource + rulesets: resources.AsyncRulesetsResource + url_normalization: resources.AsyncURLNormalizationResource + spectrum: resources.AsyncSpectrumResource + addressing: resources.AsyncAddressingResource + audit_logs: resources.AsyncAuditLogsResource + billing: resources.AsyncBillingResource + brand_protection: resources.AsyncBrandProtectionResource + diagnostics: resources.AsyncDiagnosticsResource + images: resources.AsyncImagesResource + intel: resources.AsyncIntelResource + magic_transit: resources.AsyncMagicTransitResource + magic_network_monitoring: resources.AsyncMagicNetworkMonitoringResource + mtls_certificates: resources.AsyncMTLSCertificatesResource + pages: resources.AsyncPagesResource + pcaps: resources.AsyncPCAPsResource + registrar: resources.AsyncRegistrarResource + request_tracers: resources.AsyncRequestTracersResource + rules: resources.AsyncRulesResource + storage: resources.AsyncStorageResource + stream: resources.AsyncStreamResource + alerting: resources.AsyncAlertingResource d1: resources.AsyncD1Resource - r2: resources.AsyncR2 - warp_connector: resources.AsyncWARPConnector - workers_for_platforms: resources.AsyncWorkersForPlatforms - zero_trust: resources.AsyncZeroTrust - challenges: resources.AsyncChallenges + r2: resources.AsyncR2Resource + warp_connector: resources.AsyncWARPConnectorResource + workers_for_platforms: resources.AsyncWorkersForPlatformsResource + zero_trust: resources.AsyncZeroTrustResource + challenges: resources.AsyncChallengesResource hyperdrive: resources.AsyncHyperdriveResource - rum: resources.AsyncRUM - vectorize: resources.AsyncVectorize - url_scanner: resources.AsyncURLScanner - radar: resources.AsyncRadar - bot_management: resources.AsyncBotManagement - origin_post_quantum_encryption: resources.AsyncOriginPostQuantumEncryption - speed: resources.AsyncSpeed - dcv_delegation: resources.AsyncDCVDelegation - hostnames: resources.AsyncHostnames - snippets: resources.AsyncSnippets - calls: resources.AsyncCalls - cloudforce_one: resources.AsyncCloudforceOne - event_notifications: resources.AsyncEventNotifications + rum: resources.AsyncRUMResource + vectorize: resources.AsyncVectorizeResource + url_scanner: resources.AsyncURLScannerResource + radar: resources.AsyncRadarResource + bot_management: resources.AsyncBotManagementResource + origin_post_quantum_encryption: resources.AsyncOriginPostQuantumEncryptionResource + speed: resources.AsyncSpeedResource + dcv_delegation: resources.AsyncDCVDelegationResource + hostnames: resources.AsyncHostnamesResource + snippets: resources.AsyncSnippetsResource + calls: resources.AsyncCallsResource + cloudforce_one: resources.AsyncCloudforceOneResource + event_notifications: resources.AsyncEventNotificationsResource with_raw_response: AsyncCloudflareWithRawResponse with_streaming_response: AsyncCloudflareWithStreamedResponse @@ -618,87 +618,87 @@ def __init__( _strict_response_validation=_strict_response_validation, ) - self.accounts = resources.AsyncAccounts(self) - self.origin_ca_certificates = resources.AsyncOriginCACertificates(self) - self.ips = resources.AsyncIPs(self) - self.memberships = resources.AsyncMemberships(self) - self.user = resources.AsyncUser(self) - self.zones = resources.AsyncZones(self) - self.load_balancers = resources.AsyncLoadBalancers(self) - self.cache = resources.AsyncCache(self) - self.ssl = resources.AsyncSSL(self) - self.subscriptions = resources.AsyncSubscriptions(self) - self.acm = resources.AsyncACM(self) - self.argo = resources.AsyncArgo(self) - self.plans = resources.AsyncPlans(self) - self.rate_plans = resources.AsyncRatePlans(self) - self.certificate_authorities = resources.AsyncCertificateAuthorities(self) - self.client_certificates = resources.AsyncClientCertificates(self) - self.custom_certificates = resources.AsyncCustomCertificates(self) - self.custom_hostnames = resources.AsyncCustomHostnames(self) - self.custom_nameservers = resources.AsyncCustomNameservers(self) - self.dns = resources.AsyncDNS(self) + self.accounts = resources.AsyncAccountsResource(self) + self.origin_ca_certificates = resources.AsyncOriginCACertificatesResource(self) + self.ips = resources.AsyncIPsResource(self) + self.memberships = resources.AsyncMembershipsResource(self) + self.user = resources.AsyncUserResource(self) + self.zones = resources.AsyncZonesResource(self) + self.load_balancers = resources.AsyncLoadBalancersResource(self) + self.cache = resources.AsyncCacheResource(self) + self.ssl = resources.AsyncSSLResource(self) + self.subscriptions = resources.AsyncSubscriptionsResource(self) + self.acm = resources.AsyncACMResource(self) + self.argo = resources.AsyncArgoResource(self) + self.plans = resources.AsyncPlansResource(self) + self.rate_plans = resources.AsyncRatePlansResource(self) + self.certificate_authorities = resources.AsyncCertificateAuthoritiesResource(self) + self.client_certificates = resources.AsyncClientCertificatesResource(self) + self.custom_certificates = resources.AsyncCustomCertificatesResource(self) + self.custom_hostnames = resources.AsyncCustomHostnamesResource(self) + self.custom_nameservers = resources.AsyncCustomNameserversResource(self) + self.dns = resources.AsyncDNSResource(self) self.dnssec = resources.AsyncDNSSECResource(self) - self.email_routing = resources.AsyncEmailRouting(self) - self.filters = resources.AsyncFilters(self) - self.firewall = resources.AsyncFirewall(self) - self.healthchecks = resources.AsyncHealthchecks(self) - self.keyless_certificates = resources.AsyncKeylessCertificates(self) - self.logpush = resources.AsyncLogpush(self) - self.logs = resources.AsyncLogs(self) - self.origin_tls_client_auth = resources.AsyncOriginTLSClientAuth(self) - self.pagerules = resources.AsyncPagerules(self) - self.rate_limits = resources.AsyncRateLimits(self) - self.secondary_dns = resources.AsyncSecondaryDNS(self) - self.waiting_rooms = resources.AsyncWaitingRooms(self) - self.web3 = resources.AsyncWeb3(self) - self.workers = resources.AsyncWorkers(self) - self.kv = resources.AsyncKV(self) - self.durable_objects = resources.AsyncDurableObjects(self) - self.queues = resources.AsyncQueues(self) - self.managed_headers = resources.AsyncManagedHeaders(self) - self.page_shield = resources.AsyncPageShield(self) - self.rulesets = resources.AsyncRulesets(self) - self.url_normalization = resources.AsyncURLNormalization(self) - self.spectrum = resources.AsyncSpectrum(self) - self.addressing = resources.AsyncAddressing(self) - self.audit_logs = resources.AsyncAuditLogs(self) - self.billing = resources.AsyncBilling(self) - self.brand_protection = resources.AsyncBrandProtection(self) - self.diagnostics = resources.AsyncDiagnostics(self) - self.images = resources.AsyncImages(self) - self.intel = resources.AsyncIntel(self) - self.magic_transit = resources.AsyncMagicTransit(self) - self.magic_network_monitoring = resources.AsyncMagicNetworkMonitoring(self) - self.mtls_certificates = resources.AsyncMTLSCertificates(self) - self.pages = resources.AsyncPages(self) - self.pcaps = resources.AsyncPCAPs(self) - self.registrar = resources.AsyncRegistrar(self) - self.request_tracers = resources.AsyncRequestTracers(self) - self.rules = resources.AsyncRules(self) - self.storage = resources.AsyncStorage(self) - self.stream = resources.AsyncStream(self) - self.alerting = resources.AsyncAlerting(self) + self.email_routing = resources.AsyncEmailRoutingResource(self) + self.filters = resources.AsyncFiltersResource(self) + self.firewall = resources.AsyncFirewallResource(self) + self.healthchecks = resources.AsyncHealthchecksResource(self) + self.keyless_certificates = resources.AsyncKeylessCertificatesResource(self) + self.logpush = resources.AsyncLogpushResource(self) + self.logs = resources.AsyncLogsResource(self) + self.origin_tls_client_auth = resources.AsyncOriginTLSClientAuthResource(self) + self.pagerules = resources.AsyncPagerulesResource(self) + self.rate_limits = resources.AsyncRateLimitsResource(self) + self.secondary_dns = resources.AsyncSecondaryDNSResource(self) + self.waiting_rooms = resources.AsyncWaitingRoomsResource(self) + self.web3 = resources.AsyncWeb3Resource(self) + self.workers = resources.AsyncWorkersResource(self) + self.kv = resources.AsyncKVResource(self) + self.durable_objects = resources.AsyncDurableObjectsResource(self) + self.queues = resources.AsyncQueuesResource(self) + self.managed_headers = resources.AsyncManagedHeadersResource(self) + self.page_shield = resources.AsyncPageShieldResource(self) + self.rulesets = resources.AsyncRulesetsResource(self) + self.url_normalization = resources.AsyncURLNormalizationResource(self) + self.spectrum = resources.AsyncSpectrumResource(self) + self.addressing = resources.AsyncAddressingResource(self) + self.audit_logs = resources.AsyncAuditLogsResource(self) + self.billing = resources.AsyncBillingResource(self) + self.brand_protection = resources.AsyncBrandProtectionResource(self) + self.diagnostics = resources.AsyncDiagnosticsResource(self) + self.images = resources.AsyncImagesResource(self) + self.intel = resources.AsyncIntelResource(self) + self.magic_transit = resources.AsyncMagicTransitResource(self) + self.magic_network_monitoring = resources.AsyncMagicNetworkMonitoringResource(self) + self.mtls_certificates = resources.AsyncMTLSCertificatesResource(self) + self.pages = resources.AsyncPagesResource(self) + self.pcaps = resources.AsyncPCAPsResource(self) + self.registrar = resources.AsyncRegistrarResource(self) + self.request_tracers = resources.AsyncRequestTracersResource(self) + self.rules = resources.AsyncRulesResource(self) + self.storage = resources.AsyncStorageResource(self) + self.stream = resources.AsyncStreamResource(self) + self.alerting = resources.AsyncAlertingResource(self) self.d1 = resources.AsyncD1Resource(self) - self.r2 = resources.AsyncR2(self) - self.warp_connector = resources.AsyncWARPConnector(self) - self.workers_for_platforms = resources.AsyncWorkersForPlatforms(self) - self.zero_trust = resources.AsyncZeroTrust(self) - self.challenges = resources.AsyncChallenges(self) + self.r2 = resources.AsyncR2Resource(self) + self.warp_connector = resources.AsyncWARPConnectorResource(self) + self.workers_for_platforms = resources.AsyncWorkersForPlatformsResource(self) + self.zero_trust = resources.AsyncZeroTrustResource(self) + self.challenges = resources.AsyncChallengesResource(self) self.hyperdrive = resources.AsyncHyperdriveResource(self) - self.rum = resources.AsyncRUM(self) - self.vectorize = resources.AsyncVectorize(self) - self.url_scanner = resources.AsyncURLScanner(self) - self.radar = resources.AsyncRadar(self) - self.bot_management = resources.AsyncBotManagement(self) - self.origin_post_quantum_encryption = resources.AsyncOriginPostQuantumEncryption(self) - self.speed = resources.AsyncSpeed(self) - self.dcv_delegation = resources.AsyncDCVDelegation(self) - self.hostnames = resources.AsyncHostnames(self) - self.snippets = resources.AsyncSnippets(self) - self.calls = resources.AsyncCalls(self) - self.cloudforce_one = resources.AsyncCloudforceOne(self) - self.event_notifications = resources.AsyncEventNotifications(self) + self.rum = resources.AsyncRUMResource(self) + self.vectorize = resources.AsyncVectorizeResource(self) + self.url_scanner = resources.AsyncURLScannerResource(self) + self.radar = resources.AsyncRadarResource(self) + self.bot_management = resources.AsyncBotManagementResource(self) + self.origin_post_quantum_encryption = resources.AsyncOriginPostQuantumEncryptionResource(self) + self.speed = resources.AsyncSpeedResource(self) + self.dcv_delegation = resources.AsyncDCVDelegationResource(self) + self.hostnames = resources.AsyncHostnamesResource(self) + self.snippets = resources.AsyncSnippetsResource(self) + self.calls = resources.AsyncCallsResource(self) + self.cloudforce_one = resources.AsyncCloudforceOneResource(self) + self.event_notifications = resources.AsyncEventNotificationsResource(self) self.with_raw_response = AsyncCloudflareWithRawResponse(self) self.with_streaming_response = AsyncCloudflareWithStreamedResponse(self) @@ -878,368 +878,402 @@ def _make_status_error( class CloudflareWithRawResponse: def __init__(self, client: Cloudflare) -> None: - self.accounts = resources.AccountsWithRawResponse(client.accounts) - self.origin_ca_certificates = resources.OriginCACertificatesWithRawResponse(client.origin_ca_certificates) - self.ips = resources.IPsWithRawResponse(client.ips) - self.memberships = resources.MembershipsWithRawResponse(client.memberships) - self.user = resources.UserWithRawResponse(client.user) - self.zones = resources.ZonesWithRawResponse(client.zones) - self.load_balancers = resources.LoadBalancersWithRawResponse(client.load_balancers) - self.cache = resources.CacheWithRawResponse(client.cache) - self.ssl = resources.SSLWithRawResponse(client.ssl) - self.subscriptions = resources.SubscriptionsWithRawResponse(client.subscriptions) - self.acm = resources.ACMWithRawResponse(client.acm) - self.argo = resources.ArgoWithRawResponse(client.argo) - self.plans = resources.PlansWithRawResponse(client.plans) - self.rate_plans = resources.RatePlansWithRawResponse(client.rate_plans) - self.certificate_authorities = resources.CertificateAuthoritiesWithRawResponse(client.certificate_authorities) - self.client_certificates = resources.ClientCertificatesWithRawResponse(client.client_certificates) - self.custom_certificates = resources.CustomCertificatesWithRawResponse(client.custom_certificates) - self.custom_hostnames = resources.CustomHostnamesWithRawResponse(client.custom_hostnames) - self.custom_nameservers = resources.CustomNameserversWithRawResponse(client.custom_nameservers) - self.dns = resources.DNSWithRawResponse(client.dns) + self.accounts = resources.AccountsResourceWithRawResponse(client.accounts) + self.origin_ca_certificates = resources.OriginCACertificatesResourceWithRawResponse( + client.origin_ca_certificates + ) + self.ips = resources.IPsResourceWithRawResponse(client.ips) + self.memberships = resources.MembershipsResourceWithRawResponse(client.memberships) + self.user = resources.UserResourceWithRawResponse(client.user) + self.zones = resources.ZonesResourceWithRawResponse(client.zones) + self.load_balancers = resources.LoadBalancersResourceWithRawResponse(client.load_balancers) + self.cache = resources.CacheResourceWithRawResponse(client.cache) + self.ssl = resources.SSLResourceWithRawResponse(client.ssl) + self.subscriptions = resources.SubscriptionsResourceWithRawResponse(client.subscriptions) + self.acm = resources.ACMResourceWithRawResponse(client.acm) + self.argo = resources.ArgoResourceWithRawResponse(client.argo) + self.plans = resources.PlansResourceWithRawResponse(client.plans) + self.rate_plans = resources.RatePlansResourceWithRawResponse(client.rate_plans) + self.certificate_authorities = resources.CertificateAuthoritiesResourceWithRawResponse( + client.certificate_authorities + ) + self.client_certificates = resources.ClientCertificatesResourceWithRawResponse(client.client_certificates) + self.custom_certificates = resources.CustomCertificatesResourceWithRawResponse(client.custom_certificates) + self.custom_hostnames = resources.CustomHostnamesResourceWithRawResponse(client.custom_hostnames) + self.custom_nameservers = resources.CustomNameserversResourceWithRawResponse(client.custom_nameservers) + self.dns = resources.DNSResourceWithRawResponse(client.dns) self.dnssec = resources.DNSSECResourceWithRawResponse(client.dnssec) - self.email_routing = resources.EmailRoutingWithRawResponse(client.email_routing) - self.filters = resources.FiltersWithRawResponse(client.filters) - self.firewall = resources.FirewallWithRawResponse(client.firewall) - self.healthchecks = resources.HealthchecksWithRawResponse(client.healthchecks) - self.keyless_certificates = resources.KeylessCertificatesWithRawResponse(client.keyless_certificates) - self.logpush = resources.LogpushWithRawResponse(client.logpush) - self.logs = resources.LogsWithRawResponse(client.logs) - self.origin_tls_client_auth = resources.OriginTLSClientAuthWithRawResponse(client.origin_tls_client_auth) - self.pagerules = resources.PagerulesWithRawResponse(client.pagerules) - self.rate_limits = resources.RateLimitsWithRawResponse(client.rate_limits) - self.secondary_dns = resources.SecondaryDNSWithRawResponse(client.secondary_dns) - self.waiting_rooms = resources.WaitingRoomsWithRawResponse(client.waiting_rooms) - self.web3 = resources.Web3WithRawResponse(client.web3) - self.workers = resources.WorkersWithRawResponse(client.workers) - self.kv = resources.KVWithRawResponse(client.kv) - self.durable_objects = resources.DurableObjectsWithRawResponse(client.durable_objects) - self.queues = resources.QueuesWithRawResponse(client.queues) - self.managed_headers = resources.ManagedHeadersWithRawResponse(client.managed_headers) - self.page_shield = resources.PageShieldWithRawResponse(client.page_shield) - self.rulesets = resources.RulesetsWithRawResponse(client.rulesets) - self.url_normalization = resources.URLNormalizationWithRawResponse(client.url_normalization) - self.spectrum = resources.SpectrumWithRawResponse(client.spectrum) - self.addressing = resources.AddressingWithRawResponse(client.addressing) - self.audit_logs = resources.AuditLogsWithRawResponse(client.audit_logs) - self.billing = resources.BillingWithRawResponse(client.billing) - self.brand_protection = resources.BrandProtectionWithRawResponse(client.brand_protection) - self.diagnostics = resources.DiagnosticsWithRawResponse(client.diagnostics) - self.images = resources.ImagesWithRawResponse(client.images) - self.intel = resources.IntelWithRawResponse(client.intel) - self.magic_transit = resources.MagicTransitWithRawResponse(client.magic_transit) - self.magic_network_monitoring = resources.MagicNetworkMonitoringWithRawResponse(client.magic_network_monitoring) - self.mtls_certificates = resources.MTLSCertificatesWithRawResponse(client.mtls_certificates) - self.pages = resources.PagesWithRawResponse(client.pages) - self.pcaps = resources.PCAPsWithRawResponse(client.pcaps) - self.registrar = resources.RegistrarWithRawResponse(client.registrar) - self.request_tracers = resources.RequestTracersWithRawResponse(client.request_tracers) - self.rules = resources.RulesWithRawResponse(client.rules) - self.storage = resources.StorageWithRawResponse(client.storage) - self.stream = resources.StreamWithRawResponse(client.stream) - self.alerting = resources.AlertingWithRawResponse(client.alerting) + self.email_routing = resources.EmailRoutingResourceWithRawResponse(client.email_routing) + self.filters = resources.FiltersResourceWithRawResponse(client.filters) + self.firewall = resources.FirewallResourceWithRawResponse(client.firewall) + self.healthchecks = resources.HealthchecksResourceWithRawResponse(client.healthchecks) + self.keyless_certificates = resources.KeylessCertificatesResourceWithRawResponse(client.keyless_certificates) + self.logpush = resources.LogpushResourceWithRawResponse(client.logpush) + self.logs = resources.LogsResourceWithRawResponse(client.logs) + self.origin_tls_client_auth = resources.OriginTLSClientAuthResourceWithRawResponse( + client.origin_tls_client_auth + ) + self.pagerules = resources.PagerulesResourceWithRawResponse(client.pagerules) + self.rate_limits = resources.RateLimitsResourceWithRawResponse(client.rate_limits) + self.secondary_dns = resources.SecondaryDNSResourceWithRawResponse(client.secondary_dns) + self.waiting_rooms = resources.WaitingRoomsResourceWithRawResponse(client.waiting_rooms) + self.web3 = resources.Web3ResourceWithRawResponse(client.web3) + self.workers = resources.WorkersResourceWithRawResponse(client.workers) + self.kv = resources.KVResourceWithRawResponse(client.kv) + self.durable_objects = resources.DurableObjectsResourceWithRawResponse(client.durable_objects) + self.queues = resources.QueuesResourceWithRawResponse(client.queues) + self.managed_headers = resources.ManagedHeadersResourceWithRawResponse(client.managed_headers) + self.page_shield = resources.PageShieldResourceWithRawResponse(client.page_shield) + self.rulesets = resources.RulesetsResourceWithRawResponse(client.rulesets) + self.url_normalization = resources.URLNormalizationResourceWithRawResponse(client.url_normalization) + self.spectrum = resources.SpectrumResourceWithRawResponse(client.spectrum) + self.addressing = resources.AddressingResourceWithRawResponse(client.addressing) + self.audit_logs = resources.AuditLogsResourceWithRawResponse(client.audit_logs) + self.billing = resources.BillingResourceWithRawResponse(client.billing) + self.brand_protection = resources.BrandProtectionResourceWithRawResponse(client.brand_protection) + self.diagnostics = resources.DiagnosticsResourceWithRawResponse(client.diagnostics) + self.images = resources.ImagesResourceWithRawResponse(client.images) + self.intel = resources.IntelResourceWithRawResponse(client.intel) + self.magic_transit = resources.MagicTransitResourceWithRawResponse(client.magic_transit) + self.magic_network_monitoring = resources.MagicNetworkMonitoringResourceWithRawResponse( + client.magic_network_monitoring + ) + self.mtls_certificates = resources.MTLSCertificatesResourceWithRawResponse(client.mtls_certificates) + self.pages = resources.PagesResourceWithRawResponse(client.pages) + self.pcaps = resources.PCAPsResourceWithRawResponse(client.pcaps) + self.registrar = resources.RegistrarResourceWithRawResponse(client.registrar) + self.request_tracers = resources.RequestTracersResourceWithRawResponse(client.request_tracers) + self.rules = resources.RulesResourceWithRawResponse(client.rules) + self.storage = resources.StorageResourceWithRawResponse(client.storage) + self.stream = resources.StreamResourceWithRawResponse(client.stream) + self.alerting = resources.AlertingResourceWithRawResponse(client.alerting) self.d1 = resources.D1ResourceWithRawResponse(client.d1) - self.r2 = resources.R2WithRawResponse(client.r2) - self.warp_connector = resources.WARPConnectorWithRawResponse(client.warp_connector) - self.workers_for_platforms = resources.WorkersForPlatformsWithRawResponse(client.workers_for_platforms) - self.zero_trust = resources.ZeroTrustWithRawResponse(client.zero_trust) - self.challenges = resources.ChallengesWithRawResponse(client.challenges) + self.r2 = resources.R2ResourceWithRawResponse(client.r2) + self.warp_connector = resources.WARPConnectorResourceWithRawResponse(client.warp_connector) + self.workers_for_platforms = resources.WorkersForPlatformsResourceWithRawResponse(client.workers_for_platforms) + self.zero_trust = resources.ZeroTrustResourceWithRawResponse(client.zero_trust) + self.challenges = resources.ChallengesResourceWithRawResponse(client.challenges) self.hyperdrive = resources.HyperdriveResourceWithRawResponse(client.hyperdrive) - self.rum = resources.RUMWithRawResponse(client.rum) - self.vectorize = resources.VectorizeWithRawResponse(client.vectorize) - self.url_scanner = resources.URLScannerWithRawResponse(client.url_scanner) - self.radar = resources.RadarWithRawResponse(client.radar) - self.bot_management = resources.BotManagementWithRawResponse(client.bot_management) - self.origin_post_quantum_encryption = resources.OriginPostQuantumEncryptionWithRawResponse( + self.rum = resources.RUMResourceWithRawResponse(client.rum) + self.vectorize = resources.VectorizeResourceWithRawResponse(client.vectorize) + self.url_scanner = resources.URLScannerResourceWithRawResponse(client.url_scanner) + self.radar = resources.RadarResourceWithRawResponse(client.radar) + self.bot_management = resources.BotManagementResourceWithRawResponse(client.bot_management) + self.origin_post_quantum_encryption = resources.OriginPostQuantumEncryptionResourceWithRawResponse( client.origin_post_quantum_encryption ) - self.speed = resources.SpeedWithRawResponse(client.speed) - self.dcv_delegation = resources.DCVDelegationWithRawResponse(client.dcv_delegation) - self.hostnames = resources.HostnamesWithRawResponse(client.hostnames) - self.snippets = resources.SnippetsWithRawResponse(client.snippets) - self.calls = resources.CallsWithRawResponse(client.calls) - self.cloudforce_one = resources.CloudforceOneWithRawResponse(client.cloudforce_one) - self.event_notifications = resources.EventNotificationsWithRawResponse(client.event_notifications) + self.speed = resources.SpeedResourceWithRawResponse(client.speed) + self.dcv_delegation = resources.DCVDelegationResourceWithRawResponse(client.dcv_delegation) + self.hostnames = resources.HostnamesResourceWithRawResponse(client.hostnames) + self.snippets = resources.SnippetsResourceWithRawResponse(client.snippets) + self.calls = resources.CallsResourceWithRawResponse(client.calls) + self.cloudforce_one = resources.CloudforceOneResourceWithRawResponse(client.cloudforce_one) + self.event_notifications = resources.EventNotificationsResourceWithRawResponse(client.event_notifications) class AsyncCloudflareWithRawResponse: def __init__(self, client: AsyncCloudflare) -> None: - self.accounts = resources.AsyncAccountsWithRawResponse(client.accounts) - self.origin_ca_certificates = resources.AsyncOriginCACertificatesWithRawResponse(client.origin_ca_certificates) - self.ips = resources.AsyncIPsWithRawResponse(client.ips) - self.memberships = resources.AsyncMembershipsWithRawResponse(client.memberships) - self.user = resources.AsyncUserWithRawResponse(client.user) - self.zones = resources.AsyncZonesWithRawResponse(client.zones) - self.load_balancers = resources.AsyncLoadBalancersWithRawResponse(client.load_balancers) - self.cache = resources.AsyncCacheWithRawResponse(client.cache) - self.ssl = resources.AsyncSSLWithRawResponse(client.ssl) - self.subscriptions = resources.AsyncSubscriptionsWithRawResponse(client.subscriptions) - self.acm = resources.AsyncACMWithRawResponse(client.acm) - self.argo = resources.AsyncArgoWithRawResponse(client.argo) - self.plans = resources.AsyncPlansWithRawResponse(client.plans) - self.rate_plans = resources.AsyncRatePlansWithRawResponse(client.rate_plans) - self.certificate_authorities = resources.AsyncCertificateAuthoritiesWithRawResponse( + self.accounts = resources.AsyncAccountsResourceWithRawResponse(client.accounts) + self.origin_ca_certificates = resources.AsyncOriginCACertificatesResourceWithRawResponse( + client.origin_ca_certificates + ) + self.ips = resources.AsyncIPsResourceWithRawResponse(client.ips) + self.memberships = resources.AsyncMembershipsResourceWithRawResponse(client.memberships) + self.user = resources.AsyncUserResourceWithRawResponse(client.user) + self.zones = resources.AsyncZonesResourceWithRawResponse(client.zones) + self.load_balancers = resources.AsyncLoadBalancersResourceWithRawResponse(client.load_balancers) + self.cache = resources.AsyncCacheResourceWithRawResponse(client.cache) + self.ssl = resources.AsyncSSLResourceWithRawResponse(client.ssl) + self.subscriptions = resources.AsyncSubscriptionsResourceWithRawResponse(client.subscriptions) + self.acm = resources.AsyncACMResourceWithRawResponse(client.acm) + self.argo = resources.AsyncArgoResourceWithRawResponse(client.argo) + self.plans = resources.AsyncPlansResourceWithRawResponse(client.plans) + self.rate_plans = resources.AsyncRatePlansResourceWithRawResponse(client.rate_plans) + self.certificate_authorities = resources.AsyncCertificateAuthoritiesResourceWithRawResponse( client.certificate_authorities ) - self.client_certificates = resources.AsyncClientCertificatesWithRawResponse(client.client_certificates) - self.custom_certificates = resources.AsyncCustomCertificatesWithRawResponse(client.custom_certificates) - self.custom_hostnames = resources.AsyncCustomHostnamesWithRawResponse(client.custom_hostnames) - self.custom_nameservers = resources.AsyncCustomNameserversWithRawResponse(client.custom_nameservers) - self.dns = resources.AsyncDNSWithRawResponse(client.dns) + self.client_certificates = resources.AsyncClientCertificatesResourceWithRawResponse(client.client_certificates) + self.custom_certificates = resources.AsyncCustomCertificatesResourceWithRawResponse(client.custom_certificates) + self.custom_hostnames = resources.AsyncCustomHostnamesResourceWithRawResponse(client.custom_hostnames) + self.custom_nameservers = resources.AsyncCustomNameserversResourceWithRawResponse(client.custom_nameservers) + self.dns = resources.AsyncDNSResourceWithRawResponse(client.dns) self.dnssec = resources.AsyncDNSSECResourceWithRawResponse(client.dnssec) - self.email_routing = resources.AsyncEmailRoutingWithRawResponse(client.email_routing) - self.filters = resources.AsyncFiltersWithRawResponse(client.filters) - self.firewall = resources.AsyncFirewallWithRawResponse(client.firewall) - self.healthchecks = resources.AsyncHealthchecksWithRawResponse(client.healthchecks) - self.keyless_certificates = resources.AsyncKeylessCertificatesWithRawResponse(client.keyless_certificates) - self.logpush = resources.AsyncLogpushWithRawResponse(client.logpush) - self.logs = resources.AsyncLogsWithRawResponse(client.logs) - self.origin_tls_client_auth = resources.AsyncOriginTLSClientAuthWithRawResponse(client.origin_tls_client_auth) - self.pagerules = resources.AsyncPagerulesWithRawResponse(client.pagerules) - self.rate_limits = resources.AsyncRateLimitsWithRawResponse(client.rate_limits) - self.secondary_dns = resources.AsyncSecondaryDNSWithRawResponse(client.secondary_dns) - self.waiting_rooms = resources.AsyncWaitingRoomsWithRawResponse(client.waiting_rooms) - self.web3 = resources.AsyncWeb3WithRawResponse(client.web3) - self.workers = resources.AsyncWorkersWithRawResponse(client.workers) - self.kv = resources.AsyncKVWithRawResponse(client.kv) - self.durable_objects = resources.AsyncDurableObjectsWithRawResponse(client.durable_objects) - self.queues = resources.AsyncQueuesWithRawResponse(client.queues) - self.managed_headers = resources.AsyncManagedHeadersWithRawResponse(client.managed_headers) - self.page_shield = resources.AsyncPageShieldWithRawResponse(client.page_shield) - self.rulesets = resources.AsyncRulesetsWithRawResponse(client.rulesets) - self.url_normalization = resources.AsyncURLNormalizationWithRawResponse(client.url_normalization) - self.spectrum = resources.AsyncSpectrumWithRawResponse(client.spectrum) - self.addressing = resources.AsyncAddressingWithRawResponse(client.addressing) - self.audit_logs = resources.AsyncAuditLogsWithRawResponse(client.audit_logs) - self.billing = resources.AsyncBillingWithRawResponse(client.billing) - self.brand_protection = resources.AsyncBrandProtectionWithRawResponse(client.brand_protection) - self.diagnostics = resources.AsyncDiagnosticsWithRawResponse(client.diagnostics) - self.images = resources.AsyncImagesWithRawResponse(client.images) - self.intel = resources.AsyncIntelWithRawResponse(client.intel) - self.magic_transit = resources.AsyncMagicTransitWithRawResponse(client.magic_transit) - self.magic_network_monitoring = resources.AsyncMagicNetworkMonitoringWithRawResponse( + self.email_routing = resources.AsyncEmailRoutingResourceWithRawResponse(client.email_routing) + self.filters = resources.AsyncFiltersResourceWithRawResponse(client.filters) + self.firewall = resources.AsyncFirewallResourceWithRawResponse(client.firewall) + self.healthchecks = resources.AsyncHealthchecksResourceWithRawResponse(client.healthchecks) + self.keyless_certificates = resources.AsyncKeylessCertificatesResourceWithRawResponse( + client.keyless_certificates + ) + self.logpush = resources.AsyncLogpushResourceWithRawResponse(client.logpush) + self.logs = resources.AsyncLogsResourceWithRawResponse(client.logs) + self.origin_tls_client_auth = resources.AsyncOriginTLSClientAuthResourceWithRawResponse( + client.origin_tls_client_auth + ) + self.pagerules = resources.AsyncPagerulesResourceWithRawResponse(client.pagerules) + self.rate_limits = resources.AsyncRateLimitsResourceWithRawResponse(client.rate_limits) + self.secondary_dns = resources.AsyncSecondaryDNSResourceWithRawResponse(client.secondary_dns) + self.waiting_rooms = resources.AsyncWaitingRoomsResourceWithRawResponse(client.waiting_rooms) + self.web3 = resources.AsyncWeb3ResourceWithRawResponse(client.web3) + self.workers = resources.AsyncWorkersResourceWithRawResponse(client.workers) + self.kv = resources.AsyncKVResourceWithRawResponse(client.kv) + self.durable_objects = resources.AsyncDurableObjectsResourceWithRawResponse(client.durable_objects) + self.queues = resources.AsyncQueuesResourceWithRawResponse(client.queues) + self.managed_headers = resources.AsyncManagedHeadersResourceWithRawResponse(client.managed_headers) + self.page_shield = resources.AsyncPageShieldResourceWithRawResponse(client.page_shield) + self.rulesets = resources.AsyncRulesetsResourceWithRawResponse(client.rulesets) + self.url_normalization = resources.AsyncURLNormalizationResourceWithRawResponse(client.url_normalization) + self.spectrum = resources.AsyncSpectrumResourceWithRawResponse(client.spectrum) + self.addressing = resources.AsyncAddressingResourceWithRawResponse(client.addressing) + self.audit_logs = resources.AsyncAuditLogsResourceWithRawResponse(client.audit_logs) + self.billing = resources.AsyncBillingResourceWithRawResponse(client.billing) + self.brand_protection = resources.AsyncBrandProtectionResourceWithRawResponse(client.brand_protection) + self.diagnostics = resources.AsyncDiagnosticsResourceWithRawResponse(client.diagnostics) + self.images = resources.AsyncImagesResourceWithRawResponse(client.images) + self.intel = resources.AsyncIntelResourceWithRawResponse(client.intel) + self.magic_transit = resources.AsyncMagicTransitResourceWithRawResponse(client.magic_transit) + self.magic_network_monitoring = resources.AsyncMagicNetworkMonitoringResourceWithRawResponse( client.magic_network_monitoring ) - self.mtls_certificates = resources.AsyncMTLSCertificatesWithRawResponse(client.mtls_certificates) - self.pages = resources.AsyncPagesWithRawResponse(client.pages) - self.pcaps = resources.AsyncPCAPsWithRawResponse(client.pcaps) - self.registrar = resources.AsyncRegistrarWithRawResponse(client.registrar) - self.request_tracers = resources.AsyncRequestTracersWithRawResponse(client.request_tracers) - self.rules = resources.AsyncRulesWithRawResponse(client.rules) - self.storage = resources.AsyncStorageWithRawResponse(client.storage) - self.stream = resources.AsyncStreamWithRawResponse(client.stream) - self.alerting = resources.AsyncAlertingWithRawResponse(client.alerting) + self.mtls_certificates = resources.AsyncMTLSCertificatesResourceWithRawResponse(client.mtls_certificates) + self.pages = resources.AsyncPagesResourceWithRawResponse(client.pages) + self.pcaps = resources.AsyncPCAPsResourceWithRawResponse(client.pcaps) + self.registrar = resources.AsyncRegistrarResourceWithRawResponse(client.registrar) + self.request_tracers = resources.AsyncRequestTracersResourceWithRawResponse(client.request_tracers) + self.rules = resources.AsyncRulesResourceWithRawResponse(client.rules) + self.storage = resources.AsyncStorageResourceWithRawResponse(client.storage) + self.stream = resources.AsyncStreamResourceWithRawResponse(client.stream) + self.alerting = resources.AsyncAlertingResourceWithRawResponse(client.alerting) self.d1 = resources.AsyncD1ResourceWithRawResponse(client.d1) - self.r2 = resources.AsyncR2WithRawResponse(client.r2) - self.warp_connector = resources.AsyncWARPConnectorWithRawResponse(client.warp_connector) - self.workers_for_platforms = resources.AsyncWorkersForPlatformsWithRawResponse(client.workers_for_platforms) - self.zero_trust = resources.AsyncZeroTrustWithRawResponse(client.zero_trust) - self.challenges = resources.AsyncChallengesWithRawResponse(client.challenges) + self.r2 = resources.AsyncR2ResourceWithRawResponse(client.r2) + self.warp_connector = resources.AsyncWARPConnectorResourceWithRawResponse(client.warp_connector) + self.workers_for_platforms = resources.AsyncWorkersForPlatformsResourceWithRawResponse( + client.workers_for_platforms + ) + self.zero_trust = resources.AsyncZeroTrustResourceWithRawResponse(client.zero_trust) + self.challenges = resources.AsyncChallengesResourceWithRawResponse(client.challenges) self.hyperdrive = resources.AsyncHyperdriveResourceWithRawResponse(client.hyperdrive) - self.rum = resources.AsyncRUMWithRawResponse(client.rum) - self.vectorize = resources.AsyncVectorizeWithRawResponse(client.vectorize) - self.url_scanner = resources.AsyncURLScannerWithRawResponse(client.url_scanner) - self.radar = resources.AsyncRadarWithRawResponse(client.radar) - self.bot_management = resources.AsyncBotManagementWithRawResponse(client.bot_management) - self.origin_post_quantum_encryption = resources.AsyncOriginPostQuantumEncryptionWithRawResponse( + self.rum = resources.AsyncRUMResourceWithRawResponse(client.rum) + self.vectorize = resources.AsyncVectorizeResourceWithRawResponse(client.vectorize) + self.url_scanner = resources.AsyncURLScannerResourceWithRawResponse(client.url_scanner) + self.radar = resources.AsyncRadarResourceWithRawResponse(client.radar) + self.bot_management = resources.AsyncBotManagementResourceWithRawResponse(client.bot_management) + self.origin_post_quantum_encryption = resources.AsyncOriginPostQuantumEncryptionResourceWithRawResponse( client.origin_post_quantum_encryption ) - self.speed = resources.AsyncSpeedWithRawResponse(client.speed) - self.dcv_delegation = resources.AsyncDCVDelegationWithRawResponse(client.dcv_delegation) - self.hostnames = resources.AsyncHostnamesWithRawResponse(client.hostnames) - self.snippets = resources.AsyncSnippetsWithRawResponse(client.snippets) - self.calls = resources.AsyncCallsWithRawResponse(client.calls) - self.cloudforce_one = resources.AsyncCloudforceOneWithRawResponse(client.cloudforce_one) - self.event_notifications = resources.AsyncEventNotificationsWithRawResponse(client.event_notifications) + self.speed = resources.AsyncSpeedResourceWithRawResponse(client.speed) + self.dcv_delegation = resources.AsyncDCVDelegationResourceWithRawResponse(client.dcv_delegation) + self.hostnames = resources.AsyncHostnamesResourceWithRawResponse(client.hostnames) + self.snippets = resources.AsyncSnippetsResourceWithRawResponse(client.snippets) + self.calls = resources.AsyncCallsResourceWithRawResponse(client.calls) + self.cloudforce_one = resources.AsyncCloudforceOneResourceWithRawResponse(client.cloudforce_one) + self.event_notifications = resources.AsyncEventNotificationsResourceWithRawResponse(client.event_notifications) class CloudflareWithStreamedResponse: def __init__(self, client: Cloudflare) -> None: - self.accounts = resources.AccountsWithStreamingResponse(client.accounts) - self.origin_ca_certificates = resources.OriginCACertificatesWithStreamingResponse(client.origin_ca_certificates) - self.ips = resources.IPsWithStreamingResponse(client.ips) - self.memberships = resources.MembershipsWithStreamingResponse(client.memberships) - self.user = resources.UserWithStreamingResponse(client.user) - self.zones = resources.ZonesWithStreamingResponse(client.zones) - self.load_balancers = resources.LoadBalancersWithStreamingResponse(client.load_balancers) - self.cache = resources.CacheWithStreamingResponse(client.cache) - self.ssl = resources.SSLWithStreamingResponse(client.ssl) - self.subscriptions = resources.SubscriptionsWithStreamingResponse(client.subscriptions) - self.acm = resources.ACMWithStreamingResponse(client.acm) - self.argo = resources.ArgoWithStreamingResponse(client.argo) - self.plans = resources.PlansWithStreamingResponse(client.plans) - self.rate_plans = resources.RatePlansWithStreamingResponse(client.rate_plans) - self.certificate_authorities = resources.CertificateAuthoritiesWithStreamingResponse( + self.accounts = resources.AccountsResourceWithStreamingResponse(client.accounts) + self.origin_ca_certificates = resources.OriginCACertificatesResourceWithStreamingResponse( + client.origin_ca_certificates + ) + self.ips = resources.IPsResourceWithStreamingResponse(client.ips) + self.memberships = resources.MembershipsResourceWithStreamingResponse(client.memberships) + self.user = resources.UserResourceWithStreamingResponse(client.user) + self.zones = resources.ZonesResourceWithStreamingResponse(client.zones) + self.load_balancers = resources.LoadBalancersResourceWithStreamingResponse(client.load_balancers) + self.cache = resources.CacheResourceWithStreamingResponse(client.cache) + self.ssl = resources.SSLResourceWithStreamingResponse(client.ssl) + self.subscriptions = resources.SubscriptionsResourceWithStreamingResponse(client.subscriptions) + self.acm = resources.ACMResourceWithStreamingResponse(client.acm) + self.argo = resources.ArgoResourceWithStreamingResponse(client.argo) + self.plans = resources.PlansResourceWithStreamingResponse(client.plans) + self.rate_plans = resources.RatePlansResourceWithStreamingResponse(client.rate_plans) + self.certificate_authorities = resources.CertificateAuthoritiesResourceWithStreamingResponse( client.certificate_authorities ) - self.client_certificates = resources.ClientCertificatesWithStreamingResponse(client.client_certificates) - self.custom_certificates = resources.CustomCertificatesWithStreamingResponse(client.custom_certificates) - self.custom_hostnames = resources.CustomHostnamesWithStreamingResponse(client.custom_hostnames) - self.custom_nameservers = resources.CustomNameserversWithStreamingResponse(client.custom_nameservers) - self.dns = resources.DNSWithStreamingResponse(client.dns) + self.client_certificates = resources.ClientCertificatesResourceWithStreamingResponse(client.client_certificates) + self.custom_certificates = resources.CustomCertificatesResourceWithStreamingResponse(client.custom_certificates) + self.custom_hostnames = resources.CustomHostnamesResourceWithStreamingResponse(client.custom_hostnames) + self.custom_nameservers = resources.CustomNameserversResourceWithStreamingResponse(client.custom_nameservers) + self.dns = resources.DNSResourceWithStreamingResponse(client.dns) self.dnssec = resources.DNSSECResourceWithStreamingResponse(client.dnssec) - self.email_routing = resources.EmailRoutingWithStreamingResponse(client.email_routing) - self.filters = resources.FiltersWithStreamingResponse(client.filters) - self.firewall = resources.FirewallWithStreamingResponse(client.firewall) - self.healthchecks = resources.HealthchecksWithStreamingResponse(client.healthchecks) - self.keyless_certificates = resources.KeylessCertificatesWithStreamingResponse(client.keyless_certificates) - self.logpush = resources.LogpushWithStreamingResponse(client.logpush) - self.logs = resources.LogsWithStreamingResponse(client.logs) - self.origin_tls_client_auth = resources.OriginTLSClientAuthWithStreamingResponse(client.origin_tls_client_auth) - self.pagerules = resources.PagerulesWithStreamingResponse(client.pagerules) - self.rate_limits = resources.RateLimitsWithStreamingResponse(client.rate_limits) - self.secondary_dns = resources.SecondaryDNSWithStreamingResponse(client.secondary_dns) - self.waiting_rooms = resources.WaitingRoomsWithStreamingResponse(client.waiting_rooms) - self.web3 = resources.Web3WithStreamingResponse(client.web3) - self.workers = resources.WorkersWithStreamingResponse(client.workers) - self.kv = resources.KVWithStreamingResponse(client.kv) - self.durable_objects = resources.DurableObjectsWithStreamingResponse(client.durable_objects) - self.queues = resources.QueuesWithStreamingResponse(client.queues) - self.managed_headers = resources.ManagedHeadersWithStreamingResponse(client.managed_headers) - self.page_shield = resources.PageShieldWithStreamingResponse(client.page_shield) - self.rulesets = resources.RulesetsWithStreamingResponse(client.rulesets) - self.url_normalization = resources.URLNormalizationWithStreamingResponse(client.url_normalization) - self.spectrum = resources.SpectrumWithStreamingResponse(client.spectrum) - self.addressing = resources.AddressingWithStreamingResponse(client.addressing) - self.audit_logs = resources.AuditLogsWithStreamingResponse(client.audit_logs) - self.billing = resources.BillingWithStreamingResponse(client.billing) - self.brand_protection = resources.BrandProtectionWithStreamingResponse(client.brand_protection) - self.diagnostics = resources.DiagnosticsWithStreamingResponse(client.diagnostics) - self.images = resources.ImagesWithStreamingResponse(client.images) - self.intel = resources.IntelWithStreamingResponse(client.intel) - self.magic_transit = resources.MagicTransitWithStreamingResponse(client.magic_transit) - self.magic_network_monitoring = resources.MagicNetworkMonitoringWithStreamingResponse( + self.email_routing = resources.EmailRoutingResourceWithStreamingResponse(client.email_routing) + self.filters = resources.FiltersResourceWithStreamingResponse(client.filters) + self.firewall = resources.FirewallResourceWithStreamingResponse(client.firewall) + self.healthchecks = resources.HealthchecksResourceWithStreamingResponse(client.healthchecks) + self.keyless_certificates = resources.KeylessCertificatesResourceWithStreamingResponse( + client.keyless_certificates + ) + self.logpush = resources.LogpushResourceWithStreamingResponse(client.logpush) + self.logs = resources.LogsResourceWithStreamingResponse(client.logs) + self.origin_tls_client_auth = resources.OriginTLSClientAuthResourceWithStreamingResponse( + client.origin_tls_client_auth + ) + self.pagerules = resources.PagerulesResourceWithStreamingResponse(client.pagerules) + self.rate_limits = resources.RateLimitsResourceWithStreamingResponse(client.rate_limits) + self.secondary_dns = resources.SecondaryDNSResourceWithStreamingResponse(client.secondary_dns) + self.waiting_rooms = resources.WaitingRoomsResourceWithStreamingResponse(client.waiting_rooms) + self.web3 = resources.Web3ResourceWithStreamingResponse(client.web3) + self.workers = resources.WorkersResourceWithStreamingResponse(client.workers) + self.kv = resources.KVResourceWithStreamingResponse(client.kv) + self.durable_objects = resources.DurableObjectsResourceWithStreamingResponse(client.durable_objects) + self.queues = resources.QueuesResourceWithStreamingResponse(client.queues) + self.managed_headers = resources.ManagedHeadersResourceWithStreamingResponse(client.managed_headers) + self.page_shield = resources.PageShieldResourceWithStreamingResponse(client.page_shield) + self.rulesets = resources.RulesetsResourceWithStreamingResponse(client.rulesets) + self.url_normalization = resources.URLNormalizationResourceWithStreamingResponse(client.url_normalization) + self.spectrum = resources.SpectrumResourceWithStreamingResponse(client.spectrum) + self.addressing = resources.AddressingResourceWithStreamingResponse(client.addressing) + self.audit_logs = resources.AuditLogsResourceWithStreamingResponse(client.audit_logs) + self.billing = resources.BillingResourceWithStreamingResponse(client.billing) + self.brand_protection = resources.BrandProtectionResourceWithStreamingResponse(client.brand_protection) + self.diagnostics = resources.DiagnosticsResourceWithStreamingResponse(client.diagnostics) + self.images = resources.ImagesResourceWithStreamingResponse(client.images) + self.intel = resources.IntelResourceWithStreamingResponse(client.intel) + self.magic_transit = resources.MagicTransitResourceWithStreamingResponse(client.magic_transit) + self.magic_network_monitoring = resources.MagicNetworkMonitoringResourceWithStreamingResponse( client.magic_network_monitoring ) - self.mtls_certificates = resources.MTLSCertificatesWithStreamingResponse(client.mtls_certificates) - self.pages = resources.PagesWithStreamingResponse(client.pages) - self.pcaps = resources.PCAPsWithStreamingResponse(client.pcaps) - self.registrar = resources.RegistrarWithStreamingResponse(client.registrar) - self.request_tracers = resources.RequestTracersWithStreamingResponse(client.request_tracers) - self.rules = resources.RulesWithStreamingResponse(client.rules) - self.storage = resources.StorageWithStreamingResponse(client.storage) - self.stream = resources.StreamWithStreamingResponse(client.stream) - self.alerting = resources.AlertingWithStreamingResponse(client.alerting) + self.mtls_certificates = resources.MTLSCertificatesResourceWithStreamingResponse(client.mtls_certificates) + self.pages = resources.PagesResourceWithStreamingResponse(client.pages) + self.pcaps = resources.PCAPsResourceWithStreamingResponse(client.pcaps) + self.registrar = resources.RegistrarResourceWithStreamingResponse(client.registrar) + self.request_tracers = resources.RequestTracersResourceWithStreamingResponse(client.request_tracers) + self.rules = resources.RulesResourceWithStreamingResponse(client.rules) + self.storage = resources.StorageResourceWithStreamingResponse(client.storage) + self.stream = resources.StreamResourceWithStreamingResponse(client.stream) + self.alerting = resources.AlertingResourceWithStreamingResponse(client.alerting) self.d1 = resources.D1ResourceWithStreamingResponse(client.d1) - self.r2 = resources.R2WithStreamingResponse(client.r2) - self.warp_connector = resources.WARPConnectorWithStreamingResponse(client.warp_connector) - self.workers_for_platforms = resources.WorkersForPlatformsWithStreamingResponse(client.workers_for_platforms) - self.zero_trust = resources.ZeroTrustWithStreamingResponse(client.zero_trust) - self.challenges = resources.ChallengesWithStreamingResponse(client.challenges) + self.r2 = resources.R2ResourceWithStreamingResponse(client.r2) + self.warp_connector = resources.WARPConnectorResourceWithStreamingResponse(client.warp_connector) + self.workers_for_platforms = resources.WorkersForPlatformsResourceWithStreamingResponse( + client.workers_for_platforms + ) + self.zero_trust = resources.ZeroTrustResourceWithStreamingResponse(client.zero_trust) + self.challenges = resources.ChallengesResourceWithStreamingResponse(client.challenges) self.hyperdrive = resources.HyperdriveResourceWithStreamingResponse(client.hyperdrive) - self.rum = resources.RUMWithStreamingResponse(client.rum) - self.vectorize = resources.VectorizeWithStreamingResponse(client.vectorize) - self.url_scanner = resources.URLScannerWithStreamingResponse(client.url_scanner) - self.radar = resources.RadarWithStreamingResponse(client.radar) - self.bot_management = resources.BotManagementWithStreamingResponse(client.bot_management) - self.origin_post_quantum_encryption = resources.OriginPostQuantumEncryptionWithStreamingResponse( + self.rum = resources.RUMResourceWithStreamingResponse(client.rum) + self.vectorize = resources.VectorizeResourceWithStreamingResponse(client.vectorize) + self.url_scanner = resources.URLScannerResourceWithStreamingResponse(client.url_scanner) + self.radar = resources.RadarResourceWithStreamingResponse(client.radar) + self.bot_management = resources.BotManagementResourceWithStreamingResponse(client.bot_management) + self.origin_post_quantum_encryption = resources.OriginPostQuantumEncryptionResourceWithStreamingResponse( client.origin_post_quantum_encryption ) - self.speed = resources.SpeedWithStreamingResponse(client.speed) - self.dcv_delegation = resources.DCVDelegationWithStreamingResponse(client.dcv_delegation) - self.hostnames = resources.HostnamesWithStreamingResponse(client.hostnames) - self.snippets = resources.SnippetsWithStreamingResponse(client.snippets) - self.calls = resources.CallsWithStreamingResponse(client.calls) - self.cloudforce_one = resources.CloudforceOneWithStreamingResponse(client.cloudforce_one) - self.event_notifications = resources.EventNotificationsWithStreamingResponse(client.event_notifications) + self.speed = resources.SpeedResourceWithStreamingResponse(client.speed) + self.dcv_delegation = resources.DCVDelegationResourceWithStreamingResponse(client.dcv_delegation) + self.hostnames = resources.HostnamesResourceWithStreamingResponse(client.hostnames) + self.snippets = resources.SnippetsResourceWithStreamingResponse(client.snippets) + self.calls = resources.CallsResourceWithStreamingResponse(client.calls) + self.cloudforce_one = resources.CloudforceOneResourceWithStreamingResponse(client.cloudforce_one) + self.event_notifications = resources.EventNotificationsResourceWithStreamingResponse(client.event_notifications) class AsyncCloudflareWithStreamedResponse: def __init__(self, client: AsyncCloudflare) -> None: - self.accounts = resources.AsyncAccountsWithStreamingResponse(client.accounts) - self.origin_ca_certificates = resources.AsyncOriginCACertificatesWithStreamingResponse( + self.accounts = resources.AsyncAccountsResourceWithStreamingResponse(client.accounts) + self.origin_ca_certificates = resources.AsyncOriginCACertificatesResourceWithStreamingResponse( client.origin_ca_certificates ) - self.ips = resources.AsyncIPsWithStreamingResponse(client.ips) - self.memberships = resources.AsyncMembershipsWithStreamingResponse(client.memberships) - self.user = resources.AsyncUserWithStreamingResponse(client.user) - self.zones = resources.AsyncZonesWithStreamingResponse(client.zones) - self.load_balancers = resources.AsyncLoadBalancersWithStreamingResponse(client.load_balancers) - self.cache = resources.AsyncCacheWithStreamingResponse(client.cache) - self.ssl = resources.AsyncSSLWithStreamingResponse(client.ssl) - self.subscriptions = resources.AsyncSubscriptionsWithStreamingResponse(client.subscriptions) - self.acm = resources.AsyncACMWithStreamingResponse(client.acm) - self.argo = resources.AsyncArgoWithStreamingResponse(client.argo) - self.plans = resources.AsyncPlansWithStreamingResponse(client.plans) - self.rate_plans = resources.AsyncRatePlansWithStreamingResponse(client.rate_plans) - self.certificate_authorities = resources.AsyncCertificateAuthoritiesWithStreamingResponse( + self.ips = resources.AsyncIPsResourceWithStreamingResponse(client.ips) + self.memberships = resources.AsyncMembershipsResourceWithStreamingResponse(client.memberships) + self.user = resources.AsyncUserResourceWithStreamingResponse(client.user) + self.zones = resources.AsyncZonesResourceWithStreamingResponse(client.zones) + self.load_balancers = resources.AsyncLoadBalancersResourceWithStreamingResponse(client.load_balancers) + self.cache = resources.AsyncCacheResourceWithStreamingResponse(client.cache) + self.ssl = resources.AsyncSSLResourceWithStreamingResponse(client.ssl) + self.subscriptions = resources.AsyncSubscriptionsResourceWithStreamingResponse(client.subscriptions) + self.acm = resources.AsyncACMResourceWithStreamingResponse(client.acm) + self.argo = resources.AsyncArgoResourceWithStreamingResponse(client.argo) + self.plans = resources.AsyncPlansResourceWithStreamingResponse(client.plans) + self.rate_plans = resources.AsyncRatePlansResourceWithStreamingResponse(client.rate_plans) + self.certificate_authorities = resources.AsyncCertificateAuthoritiesResourceWithStreamingResponse( client.certificate_authorities ) - self.client_certificates = resources.AsyncClientCertificatesWithStreamingResponse(client.client_certificates) - self.custom_certificates = resources.AsyncCustomCertificatesWithStreamingResponse(client.custom_certificates) - self.custom_hostnames = resources.AsyncCustomHostnamesWithStreamingResponse(client.custom_hostnames) - self.custom_nameservers = resources.AsyncCustomNameserversWithStreamingResponse(client.custom_nameservers) - self.dns = resources.AsyncDNSWithStreamingResponse(client.dns) + self.client_certificates = resources.AsyncClientCertificatesResourceWithStreamingResponse( + client.client_certificates + ) + self.custom_certificates = resources.AsyncCustomCertificatesResourceWithStreamingResponse( + client.custom_certificates + ) + self.custom_hostnames = resources.AsyncCustomHostnamesResourceWithStreamingResponse(client.custom_hostnames) + self.custom_nameservers = resources.AsyncCustomNameserversResourceWithStreamingResponse( + client.custom_nameservers + ) + self.dns = resources.AsyncDNSResourceWithStreamingResponse(client.dns) self.dnssec = resources.AsyncDNSSECResourceWithStreamingResponse(client.dnssec) - self.email_routing = resources.AsyncEmailRoutingWithStreamingResponse(client.email_routing) - self.filters = resources.AsyncFiltersWithStreamingResponse(client.filters) - self.firewall = resources.AsyncFirewallWithStreamingResponse(client.firewall) - self.healthchecks = resources.AsyncHealthchecksWithStreamingResponse(client.healthchecks) - self.keyless_certificates = resources.AsyncKeylessCertificatesWithStreamingResponse(client.keyless_certificates) - self.logpush = resources.AsyncLogpushWithStreamingResponse(client.logpush) - self.logs = resources.AsyncLogsWithStreamingResponse(client.logs) - self.origin_tls_client_auth = resources.AsyncOriginTLSClientAuthWithStreamingResponse( + self.email_routing = resources.AsyncEmailRoutingResourceWithStreamingResponse(client.email_routing) + self.filters = resources.AsyncFiltersResourceWithStreamingResponse(client.filters) + self.firewall = resources.AsyncFirewallResourceWithStreamingResponse(client.firewall) + self.healthchecks = resources.AsyncHealthchecksResourceWithStreamingResponse(client.healthchecks) + self.keyless_certificates = resources.AsyncKeylessCertificatesResourceWithStreamingResponse( + client.keyless_certificates + ) + self.logpush = resources.AsyncLogpushResourceWithStreamingResponse(client.logpush) + self.logs = resources.AsyncLogsResourceWithStreamingResponse(client.logs) + self.origin_tls_client_auth = resources.AsyncOriginTLSClientAuthResourceWithStreamingResponse( client.origin_tls_client_auth ) - self.pagerules = resources.AsyncPagerulesWithStreamingResponse(client.pagerules) - self.rate_limits = resources.AsyncRateLimitsWithStreamingResponse(client.rate_limits) - self.secondary_dns = resources.AsyncSecondaryDNSWithStreamingResponse(client.secondary_dns) - self.waiting_rooms = resources.AsyncWaitingRoomsWithStreamingResponse(client.waiting_rooms) - self.web3 = resources.AsyncWeb3WithStreamingResponse(client.web3) - self.workers = resources.AsyncWorkersWithStreamingResponse(client.workers) - self.kv = resources.AsyncKVWithStreamingResponse(client.kv) - self.durable_objects = resources.AsyncDurableObjectsWithStreamingResponse(client.durable_objects) - self.queues = resources.AsyncQueuesWithStreamingResponse(client.queues) - self.managed_headers = resources.AsyncManagedHeadersWithStreamingResponse(client.managed_headers) - self.page_shield = resources.AsyncPageShieldWithStreamingResponse(client.page_shield) - self.rulesets = resources.AsyncRulesetsWithStreamingResponse(client.rulesets) - self.url_normalization = resources.AsyncURLNormalizationWithStreamingResponse(client.url_normalization) - self.spectrum = resources.AsyncSpectrumWithStreamingResponse(client.spectrum) - self.addressing = resources.AsyncAddressingWithStreamingResponse(client.addressing) - self.audit_logs = resources.AsyncAuditLogsWithStreamingResponse(client.audit_logs) - self.billing = resources.AsyncBillingWithStreamingResponse(client.billing) - self.brand_protection = resources.AsyncBrandProtectionWithStreamingResponse(client.brand_protection) - self.diagnostics = resources.AsyncDiagnosticsWithStreamingResponse(client.diagnostics) - self.images = resources.AsyncImagesWithStreamingResponse(client.images) - self.intel = resources.AsyncIntelWithStreamingResponse(client.intel) - self.magic_transit = resources.AsyncMagicTransitWithStreamingResponse(client.magic_transit) - self.magic_network_monitoring = resources.AsyncMagicNetworkMonitoringWithStreamingResponse( + self.pagerules = resources.AsyncPagerulesResourceWithStreamingResponse(client.pagerules) + self.rate_limits = resources.AsyncRateLimitsResourceWithStreamingResponse(client.rate_limits) + self.secondary_dns = resources.AsyncSecondaryDNSResourceWithStreamingResponse(client.secondary_dns) + self.waiting_rooms = resources.AsyncWaitingRoomsResourceWithStreamingResponse(client.waiting_rooms) + self.web3 = resources.AsyncWeb3ResourceWithStreamingResponse(client.web3) + self.workers = resources.AsyncWorkersResourceWithStreamingResponse(client.workers) + self.kv = resources.AsyncKVResourceWithStreamingResponse(client.kv) + self.durable_objects = resources.AsyncDurableObjectsResourceWithStreamingResponse(client.durable_objects) + self.queues = resources.AsyncQueuesResourceWithStreamingResponse(client.queues) + self.managed_headers = resources.AsyncManagedHeadersResourceWithStreamingResponse(client.managed_headers) + self.page_shield = resources.AsyncPageShieldResourceWithStreamingResponse(client.page_shield) + self.rulesets = resources.AsyncRulesetsResourceWithStreamingResponse(client.rulesets) + self.url_normalization = resources.AsyncURLNormalizationResourceWithStreamingResponse(client.url_normalization) + self.spectrum = resources.AsyncSpectrumResourceWithStreamingResponse(client.spectrum) + self.addressing = resources.AsyncAddressingResourceWithStreamingResponse(client.addressing) + self.audit_logs = resources.AsyncAuditLogsResourceWithStreamingResponse(client.audit_logs) + self.billing = resources.AsyncBillingResourceWithStreamingResponse(client.billing) + self.brand_protection = resources.AsyncBrandProtectionResourceWithStreamingResponse(client.brand_protection) + self.diagnostics = resources.AsyncDiagnosticsResourceWithStreamingResponse(client.diagnostics) + self.images = resources.AsyncImagesResourceWithStreamingResponse(client.images) + self.intel = resources.AsyncIntelResourceWithStreamingResponse(client.intel) + self.magic_transit = resources.AsyncMagicTransitResourceWithStreamingResponse(client.magic_transit) + self.magic_network_monitoring = resources.AsyncMagicNetworkMonitoringResourceWithStreamingResponse( client.magic_network_monitoring ) - self.mtls_certificates = resources.AsyncMTLSCertificatesWithStreamingResponse(client.mtls_certificates) - self.pages = resources.AsyncPagesWithStreamingResponse(client.pages) - self.pcaps = resources.AsyncPCAPsWithStreamingResponse(client.pcaps) - self.registrar = resources.AsyncRegistrarWithStreamingResponse(client.registrar) - self.request_tracers = resources.AsyncRequestTracersWithStreamingResponse(client.request_tracers) - self.rules = resources.AsyncRulesWithStreamingResponse(client.rules) - self.storage = resources.AsyncStorageWithStreamingResponse(client.storage) - self.stream = resources.AsyncStreamWithStreamingResponse(client.stream) - self.alerting = resources.AsyncAlertingWithStreamingResponse(client.alerting) + self.mtls_certificates = resources.AsyncMTLSCertificatesResourceWithStreamingResponse(client.mtls_certificates) + self.pages = resources.AsyncPagesResourceWithStreamingResponse(client.pages) + self.pcaps = resources.AsyncPCAPsResourceWithStreamingResponse(client.pcaps) + self.registrar = resources.AsyncRegistrarResourceWithStreamingResponse(client.registrar) + self.request_tracers = resources.AsyncRequestTracersResourceWithStreamingResponse(client.request_tracers) + self.rules = resources.AsyncRulesResourceWithStreamingResponse(client.rules) + self.storage = resources.AsyncStorageResourceWithStreamingResponse(client.storage) + self.stream = resources.AsyncStreamResourceWithStreamingResponse(client.stream) + self.alerting = resources.AsyncAlertingResourceWithStreamingResponse(client.alerting) self.d1 = resources.AsyncD1ResourceWithStreamingResponse(client.d1) - self.r2 = resources.AsyncR2WithStreamingResponse(client.r2) - self.warp_connector = resources.AsyncWARPConnectorWithStreamingResponse(client.warp_connector) - self.workers_for_platforms = resources.AsyncWorkersForPlatformsWithStreamingResponse( + self.r2 = resources.AsyncR2ResourceWithStreamingResponse(client.r2) + self.warp_connector = resources.AsyncWARPConnectorResourceWithStreamingResponse(client.warp_connector) + self.workers_for_platforms = resources.AsyncWorkersForPlatformsResourceWithStreamingResponse( client.workers_for_platforms ) - self.zero_trust = resources.AsyncZeroTrustWithStreamingResponse(client.zero_trust) - self.challenges = resources.AsyncChallengesWithStreamingResponse(client.challenges) + self.zero_trust = resources.AsyncZeroTrustResourceWithStreamingResponse(client.zero_trust) + self.challenges = resources.AsyncChallengesResourceWithStreamingResponse(client.challenges) self.hyperdrive = resources.AsyncHyperdriveResourceWithStreamingResponse(client.hyperdrive) - self.rum = resources.AsyncRUMWithStreamingResponse(client.rum) - self.vectorize = resources.AsyncVectorizeWithStreamingResponse(client.vectorize) - self.url_scanner = resources.AsyncURLScannerWithStreamingResponse(client.url_scanner) - self.radar = resources.AsyncRadarWithStreamingResponse(client.radar) - self.bot_management = resources.AsyncBotManagementWithStreamingResponse(client.bot_management) - self.origin_post_quantum_encryption = resources.AsyncOriginPostQuantumEncryptionWithStreamingResponse( + self.rum = resources.AsyncRUMResourceWithStreamingResponse(client.rum) + self.vectorize = resources.AsyncVectorizeResourceWithStreamingResponse(client.vectorize) + self.url_scanner = resources.AsyncURLScannerResourceWithStreamingResponse(client.url_scanner) + self.radar = resources.AsyncRadarResourceWithStreamingResponse(client.radar) + self.bot_management = resources.AsyncBotManagementResourceWithStreamingResponse(client.bot_management) + self.origin_post_quantum_encryption = resources.AsyncOriginPostQuantumEncryptionResourceWithStreamingResponse( client.origin_post_quantum_encryption ) - self.speed = resources.AsyncSpeedWithStreamingResponse(client.speed) - self.dcv_delegation = resources.AsyncDCVDelegationWithStreamingResponse(client.dcv_delegation) - self.hostnames = resources.AsyncHostnamesWithStreamingResponse(client.hostnames) - self.snippets = resources.AsyncSnippetsWithStreamingResponse(client.snippets) - self.calls = resources.AsyncCallsWithStreamingResponse(client.calls) - self.cloudforce_one = resources.AsyncCloudforceOneWithStreamingResponse(client.cloudforce_one) - self.event_notifications = resources.AsyncEventNotificationsWithStreamingResponse(client.event_notifications) + self.speed = resources.AsyncSpeedResourceWithStreamingResponse(client.speed) + self.dcv_delegation = resources.AsyncDCVDelegationResourceWithStreamingResponse(client.dcv_delegation) + self.hostnames = resources.AsyncHostnamesResourceWithStreamingResponse(client.hostnames) + self.snippets = resources.AsyncSnippetsResourceWithStreamingResponse(client.snippets) + self.calls = resources.AsyncCallsResourceWithStreamingResponse(client.calls) + self.cloudforce_one = resources.AsyncCloudforceOneResourceWithStreamingResponse(client.cloudforce_one) + self.event_notifications = resources.AsyncEventNotificationsResourceWithStreamingResponse( + client.event_notifications + ) Client = Cloudflare diff --git a/src/cloudflare/resources/__init__.py b/src/cloudflare/resources/__init__.py index bc46849e478..e4d0f926f5d 100644 --- a/src/cloudflare/resources/__init__.py +++ b/src/cloudflare/resources/__init__.py @@ -9,172 +9,172 @@ AsyncD1ResourceWithStreamingResponse, ) from .kv import ( - KV, - AsyncKV, - KVWithRawResponse, - AsyncKVWithRawResponse, - KVWithStreamingResponse, - AsyncKVWithStreamingResponse, + KVResource, + AsyncKVResource, + KVResourceWithRawResponse, + AsyncKVResourceWithRawResponse, + KVResourceWithStreamingResponse, + AsyncKVResourceWithStreamingResponse, ) from .r2 import ( - R2, - AsyncR2, - R2WithRawResponse, - AsyncR2WithRawResponse, - R2WithStreamingResponse, - AsyncR2WithStreamingResponse, + R2Resource, + AsyncR2Resource, + R2ResourceWithRawResponse, + AsyncR2ResourceWithRawResponse, + R2ResourceWithStreamingResponse, + AsyncR2ResourceWithStreamingResponse, ) from .acm import ( - ACM, - AsyncACM, - ACMWithRawResponse, - AsyncACMWithRawResponse, - ACMWithStreamingResponse, - AsyncACMWithStreamingResponse, + ACMResource, + AsyncACMResource, + ACMResourceWithRawResponse, + AsyncACMResourceWithRawResponse, + ACMResourceWithStreamingResponse, + AsyncACMResourceWithStreamingResponse, ) from .dns import ( - DNS, - AsyncDNS, - DNSWithRawResponse, - AsyncDNSWithRawResponse, - DNSWithStreamingResponse, - AsyncDNSWithStreamingResponse, + DNSResource, + AsyncDNSResource, + DNSResourceWithRawResponse, + AsyncDNSResourceWithRawResponse, + DNSResourceWithStreamingResponse, + AsyncDNSResourceWithStreamingResponse, ) from .ips import ( - IPs, - AsyncIPs, - IPsWithRawResponse, - AsyncIPsWithRawResponse, - IPsWithStreamingResponse, - AsyncIPsWithStreamingResponse, + IPsResource, + AsyncIPsResource, + IPsResourceWithRawResponse, + AsyncIPsResourceWithRawResponse, + IPsResourceWithStreamingResponse, + AsyncIPsResourceWithStreamingResponse, ) from .rum import ( - RUM, - AsyncRUM, - RUMWithRawResponse, - AsyncRUMWithRawResponse, - RUMWithStreamingResponse, - AsyncRUMWithStreamingResponse, + RUMResource, + AsyncRUMResource, + RUMResourceWithRawResponse, + AsyncRUMResourceWithRawResponse, + RUMResourceWithStreamingResponse, + AsyncRUMResourceWithStreamingResponse, ) from .ssl import ( - SSL, - AsyncSSL, - SSLWithRawResponse, - AsyncSSLWithRawResponse, - SSLWithStreamingResponse, - AsyncSSLWithStreamingResponse, + SSLResource, + AsyncSSLResource, + SSLResourceWithRawResponse, + AsyncSSLResourceWithRawResponse, + SSLResourceWithStreamingResponse, + AsyncSSLResourceWithStreamingResponse, ) from .argo import ( - Argo, - AsyncArgo, - ArgoWithRawResponse, - AsyncArgoWithRawResponse, - ArgoWithStreamingResponse, - AsyncArgoWithStreamingResponse, + ArgoResource, + AsyncArgoResource, + ArgoResourceWithRawResponse, + AsyncArgoResourceWithRawResponse, + ArgoResourceWithStreamingResponse, + AsyncArgoResourceWithStreamingResponse, ) from .logs import ( - Logs, - AsyncLogs, - LogsWithRawResponse, - AsyncLogsWithRawResponse, - LogsWithStreamingResponse, - AsyncLogsWithStreamingResponse, + LogsResource, + AsyncLogsResource, + LogsResourceWithRawResponse, + AsyncLogsResourceWithRawResponse, + LogsResourceWithStreamingResponse, + AsyncLogsResourceWithStreamingResponse, ) from .user import ( - User, - AsyncUser, - UserWithRawResponse, - AsyncUserWithRawResponse, - UserWithStreamingResponse, - AsyncUserWithStreamingResponse, + UserResource, + AsyncUserResource, + UserResourceWithRawResponse, + AsyncUserResourceWithRawResponse, + UserResourceWithStreamingResponse, + AsyncUserResourceWithStreamingResponse, ) from .web3 import ( - Web3, - AsyncWeb3, - Web3WithRawResponse, - AsyncWeb3WithRawResponse, - Web3WithStreamingResponse, - AsyncWeb3WithStreamingResponse, + Web3Resource, + AsyncWeb3Resource, + Web3ResourceWithRawResponse, + AsyncWeb3ResourceWithRawResponse, + Web3ResourceWithStreamingResponse, + AsyncWeb3ResourceWithStreamingResponse, ) from .cache import ( - Cache, - AsyncCache, - CacheWithRawResponse, - AsyncCacheWithRawResponse, - CacheWithStreamingResponse, - AsyncCacheWithStreamingResponse, + CacheResource, + AsyncCacheResource, + CacheResourceWithRawResponse, + AsyncCacheResourceWithRawResponse, + CacheResourceWithStreamingResponse, + AsyncCacheResourceWithStreamingResponse, ) from .calls import ( - Calls, - AsyncCalls, - CallsWithRawResponse, - AsyncCallsWithRawResponse, - CallsWithStreamingResponse, - AsyncCallsWithStreamingResponse, + CallsResource, + AsyncCallsResource, + CallsResourceWithRawResponse, + AsyncCallsResourceWithRawResponse, + CallsResourceWithStreamingResponse, + AsyncCallsResourceWithStreamingResponse, ) from .intel import ( - Intel, - AsyncIntel, - IntelWithRawResponse, - AsyncIntelWithRawResponse, - IntelWithStreamingResponse, - AsyncIntelWithStreamingResponse, + IntelResource, + AsyncIntelResource, + IntelResourceWithRawResponse, + AsyncIntelResourceWithRawResponse, + IntelResourceWithStreamingResponse, + AsyncIntelResourceWithStreamingResponse, ) from .pages import ( - Pages, - AsyncPages, - PagesWithRawResponse, - AsyncPagesWithRawResponse, - PagesWithStreamingResponse, - AsyncPagesWithStreamingResponse, + PagesResource, + AsyncPagesResource, + PagesResourceWithRawResponse, + AsyncPagesResourceWithRawResponse, + PagesResourceWithStreamingResponse, + AsyncPagesResourceWithStreamingResponse, ) from .pcaps import ( - PCAPs, - AsyncPCAPs, - PCAPsWithRawResponse, - AsyncPCAPsWithRawResponse, - PCAPsWithStreamingResponse, - AsyncPCAPsWithStreamingResponse, + PCAPsResource, + AsyncPCAPsResource, + PCAPsResourceWithRawResponse, + AsyncPCAPsResourceWithRawResponse, + PCAPsResourceWithStreamingResponse, + AsyncPCAPsResourceWithStreamingResponse, ) from .plans import ( - Plans, - AsyncPlans, - PlansWithRawResponse, - AsyncPlansWithRawResponse, - PlansWithStreamingResponse, - AsyncPlansWithStreamingResponse, + PlansResource, + AsyncPlansResource, + PlansResourceWithRawResponse, + AsyncPlansResourceWithRawResponse, + PlansResourceWithStreamingResponse, + AsyncPlansResourceWithStreamingResponse, ) from .radar import ( - Radar, - AsyncRadar, - RadarWithRawResponse, - AsyncRadarWithRawResponse, - RadarWithStreamingResponse, - AsyncRadarWithStreamingResponse, + RadarResource, + AsyncRadarResource, + RadarResourceWithRawResponse, + AsyncRadarResourceWithRawResponse, + RadarResourceWithStreamingResponse, + AsyncRadarResourceWithStreamingResponse, ) from .rules import ( - Rules, - AsyncRules, - RulesWithRawResponse, - AsyncRulesWithRawResponse, - RulesWithStreamingResponse, - AsyncRulesWithStreamingResponse, + RulesResource, + AsyncRulesResource, + RulesResourceWithRawResponse, + AsyncRulesResourceWithRawResponse, + RulesResourceWithStreamingResponse, + AsyncRulesResourceWithStreamingResponse, ) from .speed import ( - Speed, - AsyncSpeed, - SpeedWithRawResponse, - AsyncSpeedWithRawResponse, - SpeedWithStreamingResponse, - AsyncSpeedWithStreamingResponse, + SpeedResource, + AsyncSpeedResource, + SpeedResourceWithRawResponse, + AsyncSpeedResourceWithRawResponse, + SpeedResourceWithStreamingResponse, + AsyncSpeedResourceWithStreamingResponse, ) from .zones import ( - Zones, - AsyncZones, - ZonesWithRawResponse, - AsyncZonesWithRawResponse, - ZonesWithStreamingResponse, - AsyncZonesWithStreamingResponse, + ZonesResource, + AsyncZonesResource, + ZonesResourceWithRawResponse, + AsyncZonesResourceWithRawResponse, + ZonesResourceWithStreamingResponse, + AsyncZonesResourceWithStreamingResponse, ) from .dnssec import ( DNSSECResource, @@ -185,172 +185,172 @@ AsyncDNSSECResourceWithStreamingResponse, ) from .images import ( - Images, - AsyncImages, - ImagesWithRawResponse, - AsyncImagesWithRawResponse, - ImagesWithStreamingResponse, - AsyncImagesWithStreamingResponse, + ImagesResource, + AsyncImagesResource, + ImagesResourceWithRawResponse, + AsyncImagesResourceWithRawResponse, + ImagesResourceWithStreamingResponse, + AsyncImagesResourceWithStreamingResponse, ) from .queues import ( - Queues, - AsyncQueues, - QueuesWithRawResponse, - AsyncQueuesWithRawResponse, - QueuesWithStreamingResponse, - AsyncQueuesWithStreamingResponse, + QueuesResource, + AsyncQueuesResource, + QueuesResourceWithRawResponse, + AsyncQueuesResourceWithRawResponse, + QueuesResourceWithStreamingResponse, + AsyncQueuesResourceWithStreamingResponse, ) from .stream import ( - Stream, - AsyncStream, - StreamWithRawResponse, - AsyncStreamWithRawResponse, - StreamWithStreamingResponse, - AsyncStreamWithStreamingResponse, + StreamResource, + AsyncStreamResource, + StreamResourceWithRawResponse, + AsyncStreamResourceWithRawResponse, + StreamResourceWithStreamingResponse, + AsyncStreamResourceWithStreamingResponse, ) from .billing import ( - Billing, - AsyncBilling, - BillingWithRawResponse, - AsyncBillingWithRawResponse, - BillingWithStreamingResponse, - AsyncBillingWithStreamingResponse, + BillingResource, + AsyncBillingResource, + BillingResourceWithRawResponse, + AsyncBillingResourceWithRawResponse, + BillingResourceWithStreamingResponse, + AsyncBillingResourceWithStreamingResponse, ) from .filters import ( - Filters, - AsyncFilters, - FiltersWithRawResponse, - AsyncFiltersWithRawResponse, - FiltersWithStreamingResponse, - AsyncFiltersWithStreamingResponse, + FiltersResource, + AsyncFiltersResource, + FiltersResourceWithRawResponse, + AsyncFiltersResourceWithRawResponse, + FiltersResourceWithStreamingResponse, + AsyncFiltersResourceWithStreamingResponse, ) from .logpush import ( - Logpush, - AsyncLogpush, - LogpushWithRawResponse, - AsyncLogpushWithRawResponse, - LogpushWithStreamingResponse, - AsyncLogpushWithStreamingResponse, + LogpushResource, + AsyncLogpushResource, + LogpushResourceWithRawResponse, + AsyncLogpushResourceWithRawResponse, + LogpushResourceWithStreamingResponse, + AsyncLogpushResourceWithStreamingResponse, ) from .storage import ( - Storage, - AsyncStorage, - StorageWithRawResponse, - AsyncStorageWithRawResponse, - StorageWithStreamingResponse, - AsyncStorageWithStreamingResponse, + StorageResource, + AsyncStorageResource, + StorageResourceWithRawResponse, + AsyncStorageResourceWithRawResponse, + StorageResourceWithStreamingResponse, + AsyncStorageResourceWithStreamingResponse, ) from .workers import ( - Workers, - AsyncWorkers, - WorkersWithRawResponse, - AsyncWorkersWithRawResponse, - WorkersWithStreamingResponse, - AsyncWorkersWithStreamingResponse, + WorkersResource, + AsyncWorkersResource, + WorkersResourceWithRawResponse, + AsyncWorkersResourceWithRawResponse, + WorkersResourceWithStreamingResponse, + AsyncWorkersResourceWithStreamingResponse, ) from .accounts import ( - Accounts, - AsyncAccounts, - AccountsWithRawResponse, - AsyncAccountsWithRawResponse, - AccountsWithStreamingResponse, - AsyncAccountsWithStreamingResponse, + AccountsResource, + AsyncAccountsResource, + AccountsResourceWithRawResponse, + AsyncAccountsResourceWithRawResponse, + AccountsResourceWithStreamingResponse, + AsyncAccountsResourceWithStreamingResponse, ) from .alerting import ( - Alerting, - AsyncAlerting, - AlertingWithRawResponse, - AsyncAlertingWithRawResponse, - AlertingWithStreamingResponse, - AsyncAlertingWithStreamingResponse, + AlertingResource, + AsyncAlertingResource, + AlertingResourceWithRawResponse, + AsyncAlertingResourceWithRawResponse, + AlertingResourceWithStreamingResponse, + AsyncAlertingResourceWithStreamingResponse, ) from .firewall import ( - Firewall, - AsyncFirewall, - FirewallWithRawResponse, - AsyncFirewallWithRawResponse, - FirewallWithStreamingResponse, - AsyncFirewallWithStreamingResponse, + FirewallResource, + AsyncFirewallResource, + FirewallResourceWithRawResponse, + AsyncFirewallResourceWithRawResponse, + FirewallResourceWithStreamingResponse, + AsyncFirewallResourceWithStreamingResponse, ) from .rulesets import ( - Rulesets, - AsyncRulesets, - RulesetsWithRawResponse, - AsyncRulesetsWithRawResponse, - RulesetsWithStreamingResponse, - AsyncRulesetsWithStreamingResponse, + RulesetsResource, + AsyncRulesetsResource, + RulesetsResourceWithRawResponse, + AsyncRulesetsResourceWithRawResponse, + RulesetsResourceWithStreamingResponse, + AsyncRulesetsResourceWithStreamingResponse, ) from .snippets import ( - Snippets, - AsyncSnippets, - SnippetsWithRawResponse, - AsyncSnippetsWithRawResponse, - SnippetsWithStreamingResponse, - AsyncSnippetsWithStreamingResponse, + SnippetsResource, + AsyncSnippetsResource, + SnippetsResourceWithRawResponse, + AsyncSnippetsResourceWithRawResponse, + SnippetsResourceWithStreamingResponse, + AsyncSnippetsResourceWithStreamingResponse, ) from .spectrum import ( - Spectrum, - AsyncSpectrum, - SpectrumWithRawResponse, - AsyncSpectrumWithRawResponse, - SpectrumWithStreamingResponse, - AsyncSpectrumWithStreamingResponse, + SpectrumResource, + AsyncSpectrumResource, + SpectrumResourceWithRawResponse, + AsyncSpectrumResourceWithRawResponse, + SpectrumResourceWithStreamingResponse, + AsyncSpectrumResourceWithStreamingResponse, ) from .hostnames import ( - Hostnames, - AsyncHostnames, - HostnamesWithRawResponse, - AsyncHostnamesWithRawResponse, - HostnamesWithStreamingResponse, - AsyncHostnamesWithStreamingResponse, + HostnamesResource, + AsyncHostnamesResource, + HostnamesResourceWithRawResponse, + AsyncHostnamesResourceWithRawResponse, + HostnamesResourceWithStreamingResponse, + AsyncHostnamesResourceWithStreamingResponse, ) from .pagerules import ( - Pagerules, - AsyncPagerules, - PagerulesWithRawResponse, - AsyncPagerulesWithRawResponse, - PagerulesWithStreamingResponse, - AsyncPagerulesWithStreamingResponse, + PagerulesResource, + AsyncPagerulesResource, + PagerulesResourceWithRawResponse, + AsyncPagerulesResourceWithRawResponse, + PagerulesResourceWithStreamingResponse, + AsyncPagerulesResourceWithStreamingResponse, ) from .registrar import ( - Registrar, - AsyncRegistrar, - RegistrarWithRawResponse, - AsyncRegistrarWithRawResponse, - RegistrarWithStreamingResponse, - AsyncRegistrarWithStreamingResponse, + RegistrarResource, + AsyncRegistrarResource, + RegistrarResourceWithRawResponse, + AsyncRegistrarResourceWithRawResponse, + RegistrarResourceWithStreamingResponse, + AsyncRegistrarResourceWithStreamingResponse, ) from .vectorize import ( - Vectorize, - AsyncVectorize, - VectorizeWithRawResponse, - AsyncVectorizeWithRawResponse, - VectorizeWithStreamingResponse, - AsyncVectorizeWithStreamingResponse, + VectorizeResource, + AsyncVectorizeResource, + VectorizeResourceWithRawResponse, + AsyncVectorizeResourceWithRawResponse, + VectorizeResourceWithStreamingResponse, + AsyncVectorizeResourceWithStreamingResponse, ) from .addressing import ( - Addressing, - AsyncAddressing, - AddressingWithRawResponse, - AsyncAddressingWithRawResponse, - AddressingWithStreamingResponse, - AsyncAddressingWithStreamingResponse, + AddressingResource, + AsyncAddressingResource, + AddressingResourceWithRawResponse, + AsyncAddressingResourceWithRawResponse, + AddressingResourceWithStreamingResponse, + AsyncAddressingResourceWithStreamingResponse, ) from .audit_logs import ( - AuditLogs, - AsyncAuditLogs, - AuditLogsWithRawResponse, - AsyncAuditLogsWithRawResponse, - AuditLogsWithStreamingResponse, - AsyncAuditLogsWithStreamingResponse, + AuditLogsResource, + AsyncAuditLogsResource, + AuditLogsResourceWithRawResponse, + AsyncAuditLogsResourceWithRawResponse, + AuditLogsResourceWithStreamingResponse, + AsyncAuditLogsResourceWithStreamingResponse, ) from .challenges import ( - Challenges, - AsyncChallenges, - ChallengesWithRawResponse, - AsyncChallengesWithRawResponse, - ChallengesWithStreamingResponse, - AsyncChallengesWithStreamingResponse, + ChallengesResource, + AsyncChallengesResource, + ChallengesResourceWithRawResponse, + AsyncChallengesResourceWithRawResponse, + ChallengesResourceWithStreamingResponse, + AsyncChallengesResourceWithStreamingResponse, ) from .hyperdrive import ( HyperdriveResource, @@ -361,779 +361,779 @@ AsyncHyperdriveResourceWithStreamingResponse, ) from .rate_plans import ( - RatePlans, - AsyncRatePlans, - RatePlansWithRawResponse, - AsyncRatePlansWithRawResponse, - RatePlansWithStreamingResponse, - AsyncRatePlansWithStreamingResponse, + RatePlansResource, + AsyncRatePlansResource, + RatePlansResourceWithRawResponse, + AsyncRatePlansResourceWithRawResponse, + RatePlansResourceWithStreamingResponse, + AsyncRatePlansResourceWithStreamingResponse, ) from .zero_trust import ( - ZeroTrust, - AsyncZeroTrust, - ZeroTrustWithRawResponse, - AsyncZeroTrustWithRawResponse, - ZeroTrustWithStreamingResponse, - AsyncZeroTrustWithStreamingResponse, + ZeroTrustResource, + AsyncZeroTrustResource, + ZeroTrustResourceWithRawResponse, + AsyncZeroTrustResourceWithRawResponse, + ZeroTrustResourceWithStreamingResponse, + AsyncZeroTrustResourceWithStreamingResponse, ) from .diagnostics import ( - Diagnostics, - AsyncDiagnostics, - DiagnosticsWithRawResponse, - AsyncDiagnosticsWithRawResponse, - DiagnosticsWithStreamingResponse, - AsyncDiagnosticsWithStreamingResponse, + DiagnosticsResource, + AsyncDiagnosticsResource, + DiagnosticsResourceWithRawResponse, + AsyncDiagnosticsResourceWithRawResponse, + DiagnosticsResourceWithStreamingResponse, + AsyncDiagnosticsResourceWithStreamingResponse, ) from .memberships import ( - Memberships, - AsyncMemberships, - MembershipsWithRawResponse, - AsyncMembershipsWithRawResponse, - MembershipsWithStreamingResponse, - AsyncMembershipsWithStreamingResponse, + MembershipsResource, + AsyncMembershipsResource, + MembershipsResourceWithRawResponse, + AsyncMembershipsResourceWithRawResponse, + MembershipsResourceWithStreamingResponse, + AsyncMembershipsResourceWithStreamingResponse, ) from .page_shield import ( - PageShield, - AsyncPageShield, - PageShieldWithRawResponse, - AsyncPageShieldWithRawResponse, - PageShieldWithStreamingResponse, - AsyncPageShieldWithStreamingResponse, + PageShieldResource, + AsyncPageShieldResource, + PageShieldResourceWithRawResponse, + AsyncPageShieldResourceWithRawResponse, + PageShieldResourceWithStreamingResponse, + AsyncPageShieldResourceWithStreamingResponse, ) from .rate_limits import ( - RateLimits, - AsyncRateLimits, - RateLimitsWithRawResponse, - AsyncRateLimitsWithRawResponse, - RateLimitsWithStreamingResponse, - AsyncRateLimitsWithStreamingResponse, + RateLimitsResource, + AsyncRateLimitsResource, + RateLimitsResourceWithRawResponse, + AsyncRateLimitsResourceWithRawResponse, + RateLimitsResourceWithStreamingResponse, + AsyncRateLimitsResourceWithStreamingResponse, ) from .url_scanner import ( - URLScanner, - AsyncURLScanner, - URLScannerWithRawResponse, - AsyncURLScannerWithRawResponse, - URLScannerWithStreamingResponse, - AsyncURLScannerWithStreamingResponse, + URLScannerResource, + AsyncURLScannerResource, + URLScannerResourceWithRawResponse, + AsyncURLScannerResourceWithRawResponse, + URLScannerResourceWithStreamingResponse, + AsyncURLScannerResourceWithStreamingResponse, ) from .healthchecks import ( - Healthchecks, - AsyncHealthchecks, - HealthchecksWithRawResponse, - AsyncHealthchecksWithRawResponse, - HealthchecksWithStreamingResponse, - AsyncHealthchecksWithStreamingResponse, + HealthchecksResource, + AsyncHealthchecksResource, + HealthchecksResourceWithRawResponse, + AsyncHealthchecksResourceWithRawResponse, + HealthchecksResourceWithStreamingResponse, + AsyncHealthchecksResourceWithStreamingResponse, ) from .email_routing import ( - EmailRouting, - AsyncEmailRouting, - EmailRoutingWithRawResponse, - AsyncEmailRoutingWithRawResponse, - EmailRoutingWithStreamingResponse, - AsyncEmailRoutingWithStreamingResponse, + EmailRoutingResource, + AsyncEmailRoutingResource, + EmailRoutingResourceWithRawResponse, + AsyncEmailRoutingResourceWithRawResponse, + EmailRoutingResourceWithStreamingResponse, + AsyncEmailRoutingResourceWithStreamingResponse, ) from .magic_transit import ( - MagicTransit, - AsyncMagicTransit, - MagicTransitWithRawResponse, - AsyncMagicTransitWithRawResponse, - MagicTransitWithStreamingResponse, - AsyncMagicTransitWithStreamingResponse, + MagicTransitResource, + AsyncMagicTransitResource, + MagicTransitResourceWithRawResponse, + AsyncMagicTransitResourceWithRawResponse, + MagicTransitResourceWithStreamingResponse, + AsyncMagicTransitResourceWithStreamingResponse, ) from .secondary_dns import ( - SecondaryDNS, - AsyncSecondaryDNS, - SecondaryDNSWithRawResponse, - AsyncSecondaryDNSWithRawResponse, - SecondaryDNSWithStreamingResponse, - AsyncSecondaryDNSWithStreamingResponse, + SecondaryDNSResource, + AsyncSecondaryDNSResource, + SecondaryDNSResourceWithRawResponse, + AsyncSecondaryDNSResourceWithRawResponse, + SecondaryDNSResourceWithStreamingResponse, + AsyncSecondaryDNSResourceWithStreamingResponse, ) from .subscriptions import ( - Subscriptions, - AsyncSubscriptions, - SubscriptionsWithRawResponse, - AsyncSubscriptionsWithRawResponse, - SubscriptionsWithStreamingResponse, - AsyncSubscriptionsWithStreamingResponse, + SubscriptionsResource, + AsyncSubscriptionsResource, + SubscriptionsResourceWithRawResponse, + AsyncSubscriptionsResourceWithRawResponse, + SubscriptionsResourceWithStreamingResponse, + AsyncSubscriptionsResourceWithStreamingResponse, ) from .waiting_rooms import ( - WaitingRooms, - AsyncWaitingRooms, - WaitingRoomsWithRawResponse, - AsyncWaitingRoomsWithRawResponse, - WaitingRoomsWithStreamingResponse, - AsyncWaitingRoomsWithStreamingResponse, + WaitingRoomsResource, + AsyncWaitingRoomsResource, + WaitingRoomsResourceWithRawResponse, + AsyncWaitingRoomsResourceWithRawResponse, + WaitingRoomsResourceWithStreamingResponse, + AsyncWaitingRoomsResourceWithStreamingResponse, ) from .bot_management import ( - BotManagement, - AsyncBotManagement, - BotManagementWithRawResponse, - AsyncBotManagementWithRawResponse, - BotManagementWithStreamingResponse, - AsyncBotManagementWithStreamingResponse, + BotManagementResource, + AsyncBotManagementResource, + BotManagementResourceWithRawResponse, + AsyncBotManagementResourceWithRawResponse, + BotManagementResourceWithStreamingResponse, + AsyncBotManagementResourceWithStreamingResponse, ) from .cloudforce_one import ( - CloudforceOne, - AsyncCloudforceOne, - CloudforceOneWithRawResponse, - AsyncCloudforceOneWithRawResponse, - CloudforceOneWithStreamingResponse, - AsyncCloudforceOneWithStreamingResponse, + CloudforceOneResource, + AsyncCloudforceOneResource, + CloudforceOneResourceWithRawResponse, + AsyncCloudforceOneResourceWithRawResponse, + CloudforceOneResourceWithStreamingResponse, + AsyncCloudforceOneResourceWithStreamingResponse, ) from .dcv_delegation import ( - DCVDelegation, - AsyncDCVDelegation, - DCVDelegationWithRawResponse, - AsyncDCVDelegationWithRawResponse, - DCVDelegationWithStreamingResponse, - AsyncDCVDelegationWithStreamingResponse, + DCVDelegationResource, + AsyncDCVDelegationResource, + DCVDelegationResourceWithRawResponse, + AsyncDCVDelegationResourceWithRawResponse, + DCVDelegationResourceWithStreamingResponse, + AsyncDCVDelegationResourceWithStreamingResponse, ) from .load_balancers import ( - LoadBalancers, - AsyncLoadBalancers, - LoadBalancersWithRawResponse, - AsyncLoadBalancersWithRawResponse, - LoadBalancersWithStreamingResponse, - AsyncLoadBalancersWithStreamingResponse, + LoadBalancersResource, + AsyncLoadBalancersResource, + LoadBalancersResourceWithRawResponse, + AsyncLoadBalancersResourceWithRawResponse, + LoadBalancersResourceWithStreamingResponse, + AsyncLoadBalancersResourceWithStreamingResponse, ) from .warp_connector import ( - WARPConnector, - AsyncWARPConnector, - WARPConnectorWithRawResponse, - AsyncWARPConnectorWithRawResponse, - WARPConnectorWithStreamingResponse, - AsyncWARPConnectorWithStreamingResponse, + WARPConnectorResource, + AsyncWARPConnectorResource, + WARPConnectorResourceWithRawResponse, + AsyncWARPConnectorResourceWithRawResponse, + WARPConnectorResourceWithStreamingResponse, + AsyncWARPConnectorResourceWithStreamingResponse, ) from .durable_objects import ( - DurableObjects, - AsyncDurableObjects, - DurableObjectsWithRawResponse, - AsyncDurableObjectsWithRawResponse, - DurableObjectsWithStreamingResponse, - AsyncDurableObjectsWithStreamingResponse, + DurableObjectsResource, + AsyncDurableObjectsResource, + DurableObjectsResourceWithRawResponse, + AsyncDurableObjectsResourceWithRawResponse, + DurableObjectsResourceWithStreamingResponse, + AsyncDurableObjectsResourceWithStreamingResponse, ) from .managed_headers import ( - ManagedHeaders, - AsyncManagedHeaders, - ManagedHeadersWithRawResponse, - AsyncManagedHeadersWithRawResponse, - ManagedHeadersWithStreamingResponse, - AsyncManagedHeadersWithStreamingResponse, + ManagedHeadersResource, + AsyncManagedHeadersResource, + ManagedHeadersResourceWithRawResponse, + AsyncManagedHeadersResourceWithRawResponse, + ManagedHeadersResourceWithStreamingResponse, + AsyncManagedHeadersResourceWithStreamingResponse, ) from .request_tracers import ( - RequestTracers, - AsyncRequestTracers, - RequestTracersWithRawResponse, - AsyncRequestTracersWithRawResponse, - RequestTracersWithStreamingResponse, - AsyncRequestTracersWithStreamingResponse, + RequestTracersResource, + AsyncRequestTracersResource, + RequestTracersResourceWithRawResponse, + AsyncRequestTracersResourceWithRawResponse, + RequestTracersResourceWithStreamingResponse, + AsyncRequestTracersResourceWithStreamingResponse, ) from .brand_protection import ( - BrandProtection, - AsyncBrandProtection, - BrandProtectionWithRawResponse, - AsyncBrandProtectionWithRawResponse, - BrandProtectionWithStreamingResponse, - AsyncBrandProtectionWithStreamingResponse, + BrandProtectionResource, + AsyncBrandProtectionResource, + BrandProtectionResourceWithRawResponse, + AsyncBrandProtectionResourceWithRawResponse, + BrandProtectionResourceWithStreamingResponse, + AsyncBrandProtectionResourceWithStreamingResponse, ) from .custom_hostnames import ( - CustomHostnames, - AsyncCustomHostnames, - CustomHostnamesWithRawResponse, - AsyncCustomHostnamesWithRawResponse, - CustomHostnamesWithStreamingResponse, - AsyncCustomHostnamesWithStreamingResponse, + CustomHostnamesResource, + AsyncCustomHostnamesResource, + CustomHostnamesResourceWithRawResponse, + AsyncCustomHostnamesResourceWithRawResponse, + CustomHostnamesResourceWithStreamingResponse, + AsyncCustomHostnamesResourceWithStreamingResponse, ) from .mtls_certificates import ( - MTLSCertificates, - AsyncMTLSCertificates, - MTLSCertificatesWithRawResponse, - AsyncMTLSCertificatesWithRawResponse, - MTLSCertificatesWithStreamingResponse, - AsyncMTLSCertificatesWithStreamingResponse, + MTLSCertificatesResource, + AsyncMTLSCertificatesResource, + MTLSCertificatesResourceWithRawResponse, + AsyncMTLSCertificatesResourceWithRawResponse, + MTLSCertificatesResourceWithStreamingResponse, + AsyncMTLSCertificatesResourceWithStreamingResponse, ) from .url_normalization import ( - URLNormalization, - AsyncURLNormalization, - URLNormalizationWithRawResponse, - AsyncURLNormalizationWithRawResponse, - URLNormalizationWithStreamingResponse, - AsyncURLNormalizationWithStreamingResponse, + URLNormalizationResource, + AsyncURLNormalizationResource, + URLNormalizationResourceWithRawResponse, + AsyncURLNormalizationResourceWithRawResponse, + URLNormalizationResourceWithStreamingResponse, + AsyncURLNormalizationResourceWithStreamingResponse, ) from .custom_nameservers import ( - CustomNameservers, - AsyncCustomNameservers, - CustomNameserversWithRawResponse, - AsyncCustomNameserversWithRawResponse, - CustomNameserversWithStreamingResponse, - AsyncCustomNameserversWithStreamingResponse, + CustomNameserversResource, + AsyncCustomNameserversResource, + CustomNameserversResourceWithRawResponse, + AsyncCustomNameserversResourceWithRawResponse, + CustomNameserversResourceWithStreamingResponse, + AsyncCustomNameserversResourceWithStreamingResponse, ) from .client_certificates import ( - ClientCertificates, - AsyncClientCertificates, - ClientCertificatesWithRawResponse, - AsyncClientCertificatesWithRawResponse, - ClientCertificatesWithStreamingResponse, - AsyncClientCertificatesWithStreamingResponse, + ClientCertificatesResource, + AsyncClientCertificatesResource, + ClientCertificatesResourceWithRawResponse, + AsyncClientCertificatesResourceWithRawResponse, + ClientCertificatesResourceWithStreamingResponse, + AsyncClientCertificatesResourceWithStreamingResponse, ) from .custom_certificates import ( - CustomCertificates, - AsyncCustomCertificates, - CustomCertificatesWithRawResponse, - AsyncCustomCertificatesWithRawResponse, - CustomCertificatesWithStreamingResponse, - AsyncCustomCertificatesWithStreamingResponse, + CustomCertificatesResource, + AsyncCustomCertificatesResource, + CustomCertificatesResourceWithRawResponse, + AsyncCustomCertificatesResourceWithRawResponse, + CustomCertificatesResourceWithStreamingResponse, + AsyncCustomCertificatesResourceWithStreamingResponse, ) from .event_notifications import ( - EventNotifications, - AsyncEventNotifications, - EventNotificationsWithRawResponse, - AsyncEventNotificationsWithRawResponse, - EventNotificationsWithStreamingResponse, - AsyncEventNotificationsWithStreamingResponse, + EventNotificationsResource, + AsyncEventNotificationsResource, + EventNotificationsResourceWithRawResponse, + AsyncEventNotificationsResourceWithRawResponse, + EventNotificationsResourceWithStreamingResponse, + AsyncEventNotificationsResourceWithStreamingResponse, ) from .keyless_certificates import ( - KeylessCertificates, - AsyncKeylessCertificates, - KeylessCertificatesWithRawResponse, - AsyncKeylessCertificatesWithRawResponse, - KeylessCertificatesWithStreamingResponse, - AsyncKeylessCertificatesWithStreamingResponse, + KeylessCertificatesResource, + AsyncKeylessCertificatesResource, + KeylessCertificatesResourceWithRawResponse, + AsyncKeylessCertificatesResourceWithRawResponse, + KeylessCertificatesResourceWithStreamingResponse, + AsyncKeylessCertificatesResourceWithStreamingResponse, ) from .workers_for_platforms import ( - WorkersForPlatforms, - AsyncWorkersForPlatforms, - WorkersForPlatformsWithRawResponse, - AsyncWorkersForPlatformsWithRawResponse, - WorkersForPlatformsWithStreamingResponse, - AsyncWorkersForPlatformsWithStreamingResponse, + WorkersForPlatformsResource, + AsyncWorkersForPlatformsResource, + WorkersForPlatformsResourceWithRawResponse, + AsyncWorkersForPlatformsResourceWithRawResponse, + WorkersForPlatformsResourceWithStreamingResponse, + AsyncWorkersForPlatformsResourceWithStreamingResponse, ) from .origin_ca_certificates import ( - OriginCACertificates, - AsyncOriginCACertificates, - OriginCACertificatesWithRawResponse, - AsyncOriginCACertificatesWithRawResponse, - OriginCACertificatesWithStreamingResponse, - AsyncOriginCACertificatesWithStreamingResponse, + OriginCACertificatesResource, + AsyncOriginCACertificatesResource, + OriginCACertificatesResourceWithRawResponse, + AsyncOriginCACertificatesResourceWithRawResponse, + OriginCACertificatesResourceWithStreamingResponse, + AsyncOriginCACertificatesResourceWithStreamingResponse, ) from .origin_tls_client_auth import ( - OriginTLSClientAuth, - AsyncOriginTLSClientAuth, - OriginTLSClientAuthWithRawResponse, - AsyncOriginTLSClientAuthWithRawResponse, - OriginTLSClientAuthWithStreamingResponse, - AsyncOriginTLSClientAuthWithStreamingResponse, + OriginTLSClientAuthResource, + AsyncOriginTLSClientAuthResource, + OriginTLSClientAuthResourceWithRawResponse, + AsyncOriginTLSClientAuthResourceWithRawResponse, + OriginTLSClientAuthResourceWithStreamingResponse, + AsyncOriginTLSClientAuthResourceWithStreamingResponse, ) from .certificate_authorities import ( - CertificateAuthorities, - AsyncCertificateAuthorities, - CertificateAuthoritiesWithRawResponse, - AsyncCertificateAuthoritiesWithRawResponse, - CertificateAuthoritiesWithStreamingResponse, - AsyncCertificateAuthoritiesWithStreamingResponse, + CertificateAuthoritiesResource, + AsyncCertificateAuthoritiesResource, + CertificateAuthoritiesResourceWithRawResponse, + AsyncCertificateAuthoritiesResourceWithRawResponse, + CertificateAuthoritiesResourceWithStreamingResponse, + AsyncCertificateAuthoritiesResourceWithStreamingResponse, ) from .magic_network_monitoring import ( - MagicNetworkMonitoring, - AsyncMagicNetworkMonitoring, - MagicNetworkMonitoringWithRawResponse, - AsyncMagicNetworkMonitoringWithRawResponse, - MagicNetworkMonitoringWithStreamingResponse, - AsyncMagicNetworkMonitoringWithStreamingResponse, + MagicNetworkMonitoringResource, + AsyncMagicNetworkMonitoringResource, + MagicNetworkMonitoringResourceWithRawResponse, + AsyncMagicNetworkMonitoringResourceWithRawResponse, + MagicNetworkMonitoringResourceWithStreamingResponse, + AsyncMagicNetworkMonitoringResourceWithStreamingResponse, ) from .origin_post_quantum_encryption import ( - OriginPostQuantumEncryption, - AsyncOriginPostQuantumEncryption, - OriginPostQuantumEncryptionWithRawResponse, - AsyncOriginPostQuantumEncryptionWithRawResponse, - OriginPostQuantumEncryptionWithStreamingResponse, - AsyncOriginPostQuantumEncryptionWithStreamingResponse, + OriginPostQuantumEncryptionResource, + AsyncOriginPostQuantumEncryptionResource, + OriginPostQuantumEncryptionResourceWithRawResponse, + AsyncOriginPostQuantumEncryptionResourceWithRawResponse, + OriginPostQuantumEncryptionResourceWithStreamingResponse, + AsyncOriginPostQuantumEncryptionResourceWithStreamingResponse, ) __all__ = [ - "Accounts", - "AsyncAccounts", - "AccountsWithRawResponse", - "AsyncAccountsWithRawResponse", - "AccountsWithStreamingResponse", - "AsyncAccountsWithStreamingResponse", - "OriginCACertificates", - "AsyncOriginCACertificates", - "OriginCACertificatesWithRawResponse", - "AsyncOriginCACertificatesWithRawResponse", - "OriginCACertificatesWithStreamingResponse", - "AsyncOriginCACertificatesWithStreamingResponse", - "IPs", - "AsyncIPs", - "IPsWithRawResponse", - "AsyncIPsWithRawResponse", - "IPsWithStreamingResponse", - "AsyncIPsWithStreamingResponse", - "Memberships", - "AsyncMemberships", - "MembershipsWithRawResponse", - "AsyncMembershipsWithRawResponse", - "MembershipsWithStreamingResponse", - "AsyncMembershipsWithStreamingResponse", - "User", - "AsyncUser", - "UserWithRawResponse", - "AsyncUserWithRawResponse", - "UserWithStreamingResponse", - "AsyncUserWithStreamingResponse", - "Zones", - "AsyncZones", - "ZonesWithRawResponse", - "AsyncZonesWithRawResponse", - "ZonesWithStreamingResponse", - "AsyncZonesWithStreamingResponse", - "LoadBalancers", - "AsyncLoadBalancers", - "LoadBalancersWithRawResponse", - "AsyncLoadBalancersWithRawResponse", - "LoadBalancersWithStreamingResponse", - "AsyncLoadBalancersWithStreamingResponse", - "Cache", - "AsyncCache", - "CacheWithRawResponse", - "AsyncCacheWithRawResponse", - "CacheWithStreamingResponse", - "AsyncCacheWithStreamingResponse", - "SSL", - "AsyncSSL", - "SSLWithRawResponse", - "AsyncSSLWithRawResponse", - "SSLWithStreamingResponse", - "AsyncSSLWithStreamingResponse", - "Subscriptions", - "AsyncSubscriptions", - "SubscriptionsWithRawResponse", - "AsyncSubscriptionsWithRawResponse", - "SubscriptionsWithStreamingResponse", - "AsyncSubscriptionsWithStreamingResponse", - "ACM", - "AsyncACM", - "ACMWithRawResponse", - "AsyncACMWithRawResponse", - "ACMWithStreamingResponse", - "AsyncACMWithStreamingResponse", - "Argo", - "AsyncArgo", - "ArgoWithRawResponse", - "AsyncArgoWithRawResponse", - "ArgoWithStreamingResponse", - "AsyncArgoWithStreamingResponse", - "Plans", - "AsyncPlans", - "PlansWithRawResponse", - "AsyncPlansWithRawResponse", - "PlansWithStreamingResponse", - "AsyncPlansWithStreamingResponse", - "RatePlans", - "AsyncRatePlans", - "RatePlansWithRawResponse", - "AsyncRatePlansWithRawResponse", - "RatePlansWithStreamingResponse", - "AsyncRatePlansWithStreamingResponse", - "CertificateAuthorities", - "AsyncCertificateAuthorities", - "CertificateAuthoritiesWithRawResponse", - "AsyncCertificateAuthoritiesWithRawResponse", - "CertificateAuthoritiesWithStreamingResponse", - "AsyncCertificateAuthoritiesWithStreamingResponse", - "ClientCertificates", - "AsyncClientCertificates", - "ClientCertificatesWithRawResponse", - "AsyncClientCertificatesWithRawResponse", - "ClientCertificatesWithStreamingResponse", - "AsyncClientCertificatesWithStreamingResponse", - "CustomCertificates", - "AsyncCustomCertificates", - "CustomCertificatesWithRawResponse", - "AsyncCustomCertificatesWithRawResponse", - "CustomCertificatesWithStreamingResponse", - "AsyncCustomCertificatesWithStreamingResponse", - "CustomHostnames", - "AsyncCustomHostnames", - "CustomHostnamesWithRawResponse", - "AsyncCustomHostnamesWithRawResponse", - "CustomHostnamesWithStreamingResponse", - "AsyncCustomHostnamesWithStreamingResponse", - "CustomNameservers", - "AsyncCustomNameservers", - "CustomNameserversWithRawResponse", - "AsyncCustomNameserversWithRawResponse", - "CustomNameserversWithStreamingResponse", - "AsyncCustomNameserversWithStreamingResponse", - "DNS", - "AsyncDNS", - "DNSWithRawResponse", - "AsyncDNSWithRawResponse", - "DNSWithStreamingResponse", - "AsyncDNSWithStreamingResponse", + "AccountsResource", + "AsyncAccountsResource", + "AccountsResourceWithRawResponse", + "AsyncAccountsResourceWithRawResponse", + "AccountsResourceWithStreamingResponse", + "AsyncAccountsResourceWithStreamingResponse", + "OriginCACertificatesResource", + "AsyncOriginCACertificatesResource", + "OriginCACertificatesResourceWithRawResponse", + "AsyncOriginCACertificatesResourceWithRawResponse", + "OriginCACertificatesResourceWithStreamingResponse", + "AsyncOriginCACertificatesResourceWithStreamingResponse", + "IPsResource", + "AsyncIPsResource", + "IPsResourceWithRawResponse", + "AsyncIPsResourceWithRawResponse", + "IPsResourceWithStreamingResponse", + "AsyncIPsResourceWithStreamingResponse", + "MembershipsResource", + "AsyncMembershipsResource", + "MembershipsResourceWithRawResponse", + "AsyncMembershipsResourceWithRawResponse", + "MembershipsResourceWithStreamingResponse", + "AsyncMembershipsResourceWithStreamingResponse", + "UserResource", + "AsyncUserResource", + "UserResourceWithRawResponse", + "AsyncUserResourceWithRawResponse", + "UserResourceWithStreamingResponse", + "AsyncUserResourceWithStreamingResponse", + "ZonesResource", + "AsyncZonesResource", + "ZonesResourceWithRawResponse", + "AsyncZonesResourceWithRawResponse", + "ZonesResourceWithStreamingResponse", + "AsyncZonesResourceWithStreamingResponse", + "LoadBalancersResource", + "AsyncLoadBalancersResource", + "LoadBalancersResourceWithRawResponse", + "AsyncLoadBalancersResourceWithRawResponse", + "LoadBalancersResourceWithStreamingResponse", + "AsyncLoadBalancersResourceWithStreamingResponse", + "CacheResource", + "AsyncCacheResource", + "CacheResourceWithRawResponse", + "AsyncCacheResourceWithRawResponse", + "CacheResourceWithStreamingResponse", + "AsyncCacheResourceWithStreamingResponse", + "SSLResource", + "AsyncSSLResource", + "SSLResourceWithRawResponse", + "AsyncSSLResourceWithRawResponse", + "SSLResourceWithStreamingResponse", + "AsyncSSLResourceWithStreamingResponse", + "SubscriptionsResource", + "AsyncSubscriptionsResource", + "SubscriptionsResourceWithRawResponse", + "AsyncSubscriptionsResourceWithRawResponse", + "SubscriptionsResourceWithStreamingResponse", + "AsyncSubscriptionsResourceWithStreamingResponse", + "ACMResource", + "AsyncACMResource", + "ACMResourceWithRawResponse", + "AsyncACMResourceWithRawResponse", + "ACMResourceWithStreamingResponse", + "AsyncACMResourceWithStreamingResponse", + "ArgoResource", + "AsyncArgoResource", + "ArgoResourceWithRawResponse", + "AsyncArgoResourceWithRawResponse", + "ArgoResourceWithStreamingResponse", + "AsyncArgoResourceWithStreamingResponse", + "PlansResource", + "AsyncPlansResource", + "PlansResourceWithRawResponse", + "AsyncPlansResourceWithRawResponse", + "PlansResourceWithStreamingResponse", + "AsyncPlansResourceWithStreamingResponse", + "RatePlansResource", + "AsyncRatePlansResource", + "RatePlansResourceWithRawResponse", + "AsyncRatePlansResourceWithRawResponse", + "RatePlansResourceWithStreamingResponse", + "AsyncRatePlansResourceWithStreamingResponse", + "CertificateAuthoritiesResource", + "AsyncCertificateAuthoritiesResource", + "CertificateAuthoritiesResourceWithRawResponse", + "AsyncCertificateAuthoritiesResourceWithRawResponse", + "CertificateAuthoritiesResourceWithStreamingResponse", + "AsyncCertificateAuthoritiesResourceWithStreamingResponse", + "ClientCertificatesResource", + "AsyncClientCertificatesResource", + "ClientCertificatesResourceWithRawResponse", + "AsyncClientCertificatesResourceWithRawResponse", + "ClientCertificatesResourceWithStreamingResponse", + "AsyncClientCertificatesResourceWithStreamingResponse", + "CustomCertificatesResource", + "AsyncCustomCertificatesResource", + "CustomCertificatesResourceWithRawResponse", + "AsyncCustomCertificatesResourceWithRawResponse", + "CustomCertificatesResourceWithStreamingResponse", + "AsyncCustomCertificatesResourceWithStreamingResponse", + "CustomHostnamesResource", + "AsyncCustomHostnamesResource", + "CustomHostnamesResourceWithRawResponse", + "AsyncCustomHostnamesResourceWithRawResponse", + "CustomHostnamesResourceWithStreamingResponse", + "AsyncCustomHostnamesResourceWithStreamingResponse", + "CustomNameserversResource", + "AsyncCustomNameserversResource", + "CustomNameserversResourceWithRawResponse", + "AsyncCustomNameserversResourceWithRawResponse", + "CustomNameserversResourceWithStreamingResponse", + "AsyncCustomNameserversResourceWithStreamingResponse", + "DNSResource", + "AsyncDNSResource", + "DNSResourceWithRawResponse", + "AsyncDNSResourceWithRawResponse", + "DNSResourceWithStreamingResponse", + "AsyncDNSResourceWithStreamingResponse", "DNSSECResource", "AsyncDNSSECResource", "DNSSECResourceWithRawResponse", "AsyncDNSSECResourceWithRawResponse", "DNSSECResourceWithStreamingResponse", "AsyncDNSSECResourceWithStreamingResponse", - "EmailRouting", - "AsyncEmailRouting", - "EmailRoutingWithRawResponse", - "AsyncEmailRoutingWithRawResponse", - "EmailRoutingWithStreamingResponse", - "AsyncEmailRoutingWithStreamingResponse", - "Filters", - "AsyncFilters", - "FiltersWithRawResponse", - "AsyncFiltersWithRawResponse", - "FiltersWithStreamingResponse", - "AsyncFiltersWithStreamingResponse", - "Firewall", - "AsyncFirewall", - "FirewallWithRawResponse", - "AsyncFirewallWithRawResponse", - "FirewallWithStreamingResponse", - "AsyncFirewallWithStreamingResponse", - "Healthchecks", - "AsyncHealthchecks", - "HealthchecksWithRawResponse", - "AsyncHealthchecksWithRawResponse", - "HealthchecksWithStreamingResponse", - "AsyncHealthchecksWithStreamingResponse", - "KeylessCertificates", - "AsyncKeylessCertificates", - "KeylessCertificatesWithRawResponse", - "AsyncKeylessCertificatesWithRawResponse", - "KeylessCertificatesWithStreamingResponse", - "AsyncKeylessCertificatesWithStreamingResponse", - "Logpush", - "AsyncLogpush", - "LogpushWithRawResponse", - "AsyncLogpushWithRawResponse", - "LogpushWithStreamingResponse", - "AsyncLogpushWithStreamingResponse", - "Logs", - "AsyncLogs", - "LogsWithRawResponse", - "AsyncLogsWithRawResponse", - "LogsWithStreamingResponse", - "AsyncLogsWithStreamingResponse", - "OriginTLSClientAuth", - "AsyncOriginTLSClientAuth", - "OriginTLSClientAuthWithRawResponse", - "AsyncOriginTLSClientAuthWithRawResponse", - "OriginTLSClientAuthWithStreamingResponse", - "AsyncOriginTLSClientAuthWithStreamingResponse", - "Pagerules", - "AsyncPagerules", - "PagerulesWithRawResponse", - "AsyncPagerulesWithRawResponse", - "PagerulesWithStreamingResponse", - "AsyncPagerulesWithStreamingResponse", - "RateLimits", - "AsyncRateLimits", - "RateLimitsWithRawResponse", - "AsyncRateLimitsWithRawResponse", - "RateLimitsWithStreamingResponse", - "AsyncRateLimitsWithStreamingResponse", - "SecondaryDNS", - "AsyncSecondaryDNS", - "SecondaryDNSWithRawResponse", - "AsyncSecondaryDNSWithRawResponse", - "SecondaryDNSWithStreamingResponse", - "AsyncSecondaryDNSWithStreamingResponse", - "WaitingRooms", - "AsyncWaitingRooms", - "WaitingRoomsWithRawResponse", - "AsyncWaitingRoomsWithRawResponse", - "WaitingRoomsWithStreamingResponse", - "AsyncWaitingRoomsWithStreamingResponse", - "Web3", - "AsyncWeb3", - "Web3WithRawResponse", - "AsyncWeb3WithRawResponse", - "Web3WithStreamingResponse", - "AsyncWeb3WithStreamingResponse", - "Workers", - "AsyncWorkers", - "WorkersWithRawResponse", - "AsyncWorkersWithRawResponse", - "WorkersWithStreamingResponse", - "AsyncWorkersWithStreamingResponse", - "KV", - "AsyncKV", - "KVWithRawResponse", - "AsyncKVWithRawResponse", - "KVWithStreamingResponse", - "AsyncKVWithStreamingResponse", - "DurableObjects", - "AsyncDurableObjects", - "DurableObjectsWithRawResponse", - "AsyncDurableObjectsWithRawResponse", - "DurableObjectsWithStreamingResponse", - "AsyncDurableObjectsWithStreamingResponse", - "Queues", - "AsyncQueues", - "QueuesWithRawResponse", - "AsyncQueuesWithRawResponse", - "QueuesWithStreamingResponse", - "AsyncQueuesWithStreamingResponse", - "ManagedHeaders", - "AsyncManagedHeaders", - "ManagedHeadersWithRawResponse", - "AsyncManagedHeadersWithRawResponse", - "ManagedHeadersWithStreamingResponse", - "AsyncManagedHeadersWithStreamingResponse", - "PageShield", - "AsyncPageShield", - "PageShieldWithRawResponse", - "AsyncPageShieldWithRawResponse", - "PageShieldWithStreamingResponse", - "AsyncPageShieldWithStreamingResponse", - "Rulesets", - "AsyncRulesets", - "RulesetsWithRawResponse", - "AsyncRulesetsWithRawResponse", - "RulesetsWithStreamingResponse", - "AsyncRulesetsWithStreamingResponse", - "URLNormalization", - "AsyncURLNormalization", - "URLNormalizationWithRawResponse", - "AsyncURLNormalizationWithRawResponse", - "URLNormalizationWithStreamingResponse", - "AsyncURLNormalizationWithStreamingResponse", - "Spectrum", - "AsyncSpectrum", - "SpectrumWithRawResponse", - "AsyncSpectrumWithRawResponse", - "SpectrumWithStreamingResponse", - "AsyncSpectrumWithStreamingResponse", - "Addressing", - "AsyncAddressing", - "AddressingWithRawResponse", - "AsyncAddressingWithRawResponse", - "AddressingWithStreamingResponse", - "AsyncAddressingWithStreamingResponse", - "AuditLogs", - "AsyncAuditLogs", - "AuditLogsWithRawResponse", - "AsyncAuditLogsWithRawResponse", - "AuditLogsWithStreamingResponse", - "AsyncAuditLogsWithStreamingResponse", - "Billing", - "AsyncBilling", - "BillingWithRawResponse", - "AsyncBillingWithRawResponse", - "BillingWithStreamingResponse", - "AsyncBillingWithStreamingResponse", - "BrandProtection", - "AsyncBrandProtection", - "BrandProtectionWithRawResponse", - "AsyncBrandProtectionWithRawResponse", - "BrandProtectionWithStreamingResponse", - "AsyncBrandProtectionWithStreamingResponse", - "Diagnostics", - "AsyncDiagnostics", - "DiagnosticsWithRawResponse", - "AsyncDiagnosticsWithRawResponse", - "DiagnosticsWithStreamingResponse", - "AsyncDiagnosticsWithStreamingResponse", - "Images", - "AsyncImages", - "ImagesWithRawResponse", - "AsyncImagesWithRawResponse", - "ImagesWithStreamingResponse", - "AsyncImagesWithStreamingResponse", - "Intel", - "AsyncIntel", - "IntelWithRawResponse", - "AsyncIntelWithRawResponse", - "IntelWithStreamingResponse", - "AsyncIntelWithStreamingResponse", - "MagicTransit", - "AsyncMagicTransit", - "MagicTransitWithRawResponse", - "AsyncMagicTransitWithRawResponse", - "MagicTransitWithStreamingResponse", - "AsyncMagicTransitWithStreamingResponse", - "MagicNetworkMonitoring", - "AsyncMagicNetworkMonitoring", - "MagicNetworkMonitoringWithRawResponse", - "AsyncMagicNetworkMonitoringWithRawResponse", - "MagicNetworkMonitoringWithStreamingResponse", - "AsyncMagicNetworkMonitoringWithStreamingResponse", - "MTLSCertificates", - "AsyncMTLSCertificates", - "MTLSCertificatesWithRawResponse", - "AsyncMTLSCertificatesWithRawResponse", - "MTLSCertificatesWithStreamingResponse", - "AsyncMTLSCertificatesWithStreamingResponse", - "Pages", - "AsyncPages", - "PagesWithRawResponse", - "AsyncPagesWithRawResponse", - "PagesWithStreamingResponse", - "AsyncPagesWithStreamingResponse", - "PCAPs", - "AsyncPCAPs", - "PCAPsWithRawResponse", - "AsyncPCAPsWithRawResponse", - "PCAPsWithStreamingResponse", - "AsyncPCAPsWithStreamingResponse", - "Registrar", - "AsyncRegistrar", - "RegistrarWithRawResponse", - "AsyncRegistrarWithRawResponse", - "RegistrarWithStreamingResponse", - "AsyncRegistrarWithStreamingResponse", - "RequestTracers", - "AsyncRequestTracers", - "RequestTracersWithRawResponse", - "AsyncRequestTracersWithRawResponse", - "RequestTracersWithStreamingResponse", - "AsyncRequestTracersWithStreamingResponse", - "Rules", - "AsyncRules", - "RulesWithRawResponse", - "AsyncRulesWithRawResponse", - "RulesWithStreamingResponse", - "AsyncRulesWithStreamingResponse", - "Storage", - "AsyncStorage", - "StorageWithRawResponse", - "AsyncStorageWithRawResponse", - "StorageWithStreamingResponse", - "AsyncStorageWithStreamingResponse", - "Stream", - "AsyncStream", - "StreamWithRawResponse", - "AsyncStreamWithRawResponse", - "StreamWithStreamingResponse", - "AsyncStreamWithStreamingResponse", - "Alerting", - "AsyncAlerting", - "AlertingWithRawResponse", - "AsyncAlertingWithRawResponse", - "AlertingWithStreamingResponse", - "AsyncAlertingWithStreamingResponse", + "EmailRoutingResource", + "AsyncEmailRoutingResource", + "EmailRoutingResourceWithRawResponse", + "AsyncEmailRoutingResourceWithRawResponse", + "EmailRoutingResourceWithStreamingResponse", + "AsyncEmailRoutingResourceWithStreamingResponse", + "FiltersResource", + "AsyncFiltersResource", + "FiltersResourceWithRawResponse", + "AsyncFiltersResourceWithRawResponse", + "FiltersResourceWithStreamingResponse", + "AsyncFiltersResourceWithStreamingResponse", + "FirewallResource", + "AsyncFirewallResource", + "FirewallResourceWithRawResponse", + "AsyncFirewallResourceWithRawResponse", + "FirewallResourceWithStreamingResponse", + "AsyncFirewallResourceWithStreamingResponse", + "HealthchecksResource", + "AsyncHealthchecksResource", + "HealthchecksResourceWithRawResponse", + "AsyncHealthchecksResourceWithRawResponse", + "HealthchecksResourceWithStreamingResponse", + "AsyncHealthchecksResourceWithStreamingResponse", + "KeylessCertificatesResource", + "AsyncKeylessCertificatesResource", + "KeylessCertificatesResourceWithRawResponse", + "AsyncKeylessCertificatesResourceWithRawResponse", + "KeylessCertificatesResourceWithStreamingResponse", + "AsyncKeylessCertificatesResourceWithStreamingResponse", + "LogpushResource", + "AsyncLogpushResource", + "LogpushResourceWithRawResponse", + "AsyncLogpushResourceWithRawResponse", + "LogpushResourceWithStreamingResponse", + "AsyncLogpushResourceWithStreamingResponse", + "LogsResource", + "AsyncLogsResource", + "LogsResourceWithRawResponse", + "AsyncLogsResourceWithRawResponse", + "LogsResourceWithStreamingResponse", + "AsyncLogsResourceWithStreamingResponse", + "OriginTLSClientAuthResource", + "AsyncOriginTLSClientAuthResource", + "OriginTLSClientAuthResourceWithRawResponse", + "AsyncOriginTLSClientAuthResourceWithRawResponse", + "OriginTLSClientAuthResourceWithStreamingResponse", + "AsyncOriginTLSClientAuthResourceWithStreamingResponse", + "PagerulesResource", + "AsyncPagerulesResource", + "PagerulesResourceWithRawResponse", + "AsyncPagerulesResourceWithRawResponse", + "PagerulesResourceWithStreamingResponse", + "AsyncPagerulesResourceWithStreamingResponse", + "RateLimitsResource", + "AsyncRateLimitsResource", + "RateLimitsResourceWithRawResponse", + "AsyncRateLimitsResourceWithRawResponse", + "RateLimitsResourceWithStreamingResponse", + "AsyncRateLimitsResourceWithStreamingResponse", + "SecondaryDNSResource", + "AsyncSecondaryDNSResource", + "SecondaryDNSResourceWithRawResponse", + "AsyncSecondaryDNSResourceWithRawResponse", + "SecondaryDNSResourceWithStreamingResponse", + "AsyncSecondaryDNSResourceWithStreamingResponse", + "WaitingRoomsResource", + "AsyncWaitingRoomsResource", + "WaitingRoomsResourceWithRawResponse", + "AsyncWaitingRoomsResourceWithRawResponse", + "WaitingRoomsResourceWithStreamingResponse", + "AsyncWaitingRoomsResourceWithStreamingResponse", + "Web3Resource", + "AsyncWeb3Resource", + "Web3ResourceWithRawResponse", + "AsyncWeb3ResourceWithRawResponse", + "Web3ResourceWithStreamingResponse", + "AsyncWeb3ResourceWithStreamingResponse", + "WorkersResource", + "AsyncWorkersResource", + "WorkersResourceWithRawResponse", + "AsyncWorkersResourceWithRawResponse", + "WorkersResourceWithStreamingResponse", + "AsyncWorkersResourceWithStreamingResponse", + "KVResource", + "AsyncKVResource", + "KVResourceWithRawResponse", + "AsyncKVResourceWithRawResponse", + "KVResourceWithStreamingResponse", + "AsyncKVResourceWithStreamingResponse", + "DurableObjectsResource", + "AsyncDurableObjectsResource", + "DurableObjectsResourceWithRawResponse", + "AsyncDurableObjectsResourceWithRawResponse", + "DurableObjectsResourceWithStreamingResponse", + "AsyncDurableObjectsResourceWithStreamingResponse", + "QueuesResource", + "AsyncQueuesResource", + "QueuesResourceWithRawResponse", + "AsyncQueuesResourceWithRawResponse", + "QueuesResourceWithStreamingResponse", + "AsyncQueuesResourceWithStreamingResponse", + "ManagedHeadersResource", + "AsyncManagedHeadersResource", + "ManagedHeadersResourceWithRawResponse", + "AsyncManagedHeadersResourceWithRawResponse", + "ManagedHeadersResourceWithStreamingResponse", + "AsyncManagedHeadersResourceWithStreamingResponse", + "PageShieldResource", + "AsyncPageShieldResource", + "PageShieldResourceWithRawResponse", + "AsyncPageShieldResourceWithRawResponse", + "PageShieldResourceWithStreamingResponse", + "AsyncPageShieldResourceWithStreamingResponse", + "RulesetsResource", + "AsyncRulesetsResource", + "RulesetsResourceWithRawResponse", + "AsyncRulesetsResourceWithRawResponse", + "RulesetsResourceWithStreamingResponse", + "AsyncRulesetsResourceWithStreamingResponse", + "URLNormalizationResource", + "AsyncURLNormalizationResource", + "URLNormalizationResourceWithRawResponse", + "AsyncURLNormalizationResourceWithRawResponse", + "URLNormalizationResourceWithStreamingResponse", + "AsyncURLNormalizationResourceWithStreamingResponse", + "SpectrumResource", + "AsyncSpectrumResource", + "SpectrumResourceWithRawResponse", + "AsyncSpectrumResourceWithRawResponse", + "SpectrumResourceWithStreamingResponse", + "AsyncSpectrumResourceWithStreamingResponse", + "AddressingResource", + "AsyncAddressingResource", + "AddressingResourceWithRawResponse", + "AsyncAddressingResourceWithRawResponse", + "AddressingResourceWithStreamingResponse", + "AsyncAddressingResourceWithStreamingResponse", + "AuditLogsResource", + "AsyncAuditLogsResource", + "AuditLogsResourceWithRawResponse", + "AsyncAuditLogsResourceWithRawResponse", + "AuditLogsResourceWithStreamingResponse", + "AsyncAuditLogsResourceWithStreamingResponse", + "BillingResource", + "AsyncBillingResource", + "BillingResourceWithRawResponse", + "AsyncBillingResourceWithRawResponse", + "BillingResourceWithStreamingResponse", + "AsyncBillingResourceWithStreamingResponse", + "BrandProtectionResource", + "AsyncBrandProtectionResource", + "BrandProtectionResourceWithRawResponse", + "AsyncBrandProtectionResourceWithRawResponse", + "BrandProtectionResourceWithStreamingResponse", + "AsyncBrandProtectionResourceWithStreamingResponse", + "DiagnosticsResource", + "AsyncDiagnosticsResource", + "DiagnosticsResourceWithRawResponse", + "AsyncDiagnosticsResourceWithRawResponse", + "DiagnosticsResourceWithStreamingResponse", + "AsyncDiagnosticsResourceWithStreamingResponse", + "ImagesResource", + "AsyncImagesResource", + "ImagesResourceWithRawResponse", + "AsyncImagesResourceWithRawResponse", + "ImagesResourceWithStreamingResponse", + "AsyncImagesResourceWithStreamingResponse", + "IntelResource", + "AsyncIntelResource", + "IntelResourceWithRawResponse", + "AsyncIntelResourceWithRawResponse", + "IntelResourceWithStreamingResponse", + "AsyncIntelResourceWithStreamingResponse", + "MagicTransitResource", + "AsyncMagicTransitResource", + "MagicTransitResourceWithRawResponse", + "AsyncMagicTransitResourceWithRawResponse", + "MagicTransitResourceWithStreamingResponse", + "AsyncMagicTransitResourceWithStreamingResponse", + "MagicNetworkMonitoringResource", + "AsyncMagicNetworkMonitoringResource", + "MagicNetworkMonitoringResourceWithRawResponse", + "AsyncMagicNetworkMonitoringResourceWithRawResponse", + "MagicNetworkMonitoringResourceWithStreamingResponse", + "AsyncMagicNetworkMonitoringResourceWithStreamingResponse", + "MTLSCertificatesResource", + "AsyncMTLSCertificatesResource", + "MTLSCertificatesResourceWithRawResponse", + "AsyncMTLSCertificatesResourceWithRawResponse", + "MTLSCertificatesResourceWithStreamingResponse", + "AsyncMTLSCertificatesResourceWithStreamingResponse", + "PagesResource", + "AsyncPagesResource", + "PagesResourceWithRawResponse", + "AsyncPagesResourceWithRawResponse", + "PagesResourceWithStreamingResponse", + "AsyncPagesResourceWithStreamingResponse", + "PCAPsResource", + "AsyncPCAPsResource", + "PCAPsResourceWithRawResponse", + "AsyncPCAPsResourceWithRawResponse", + "PCAPsResourceWithStreamingResponse", + "AsyncPCAPsResourceWithStreamingResponse", + "RegistrarResource", + "AsyncRegistrarResource", + "RegistrarResourceWithRawResponse", + "AsyncRegistrarResourceWithRawResponse", + "RegistrarResourceWithStreamingResponse", + "AsyncRegistrarResourceWithStreamingResponse", + "RequestTracersResource", + "AsyncRequestTracersResource", + "RequestTracersResourceWithRawResponse", + "AsyncRequestTracersResourceWithRawResponse", + "RequestTracersResourceWithStreamingResponse", + "AsyncRequestTracersResourceWithStreamingResponse", + "RulesResource", + "AsyncRulesResource", + "RulesResourceWithRawResponse", + "AsyncRulesResourceWithRawResponse", + "RulesResourceWithStreamingResponse", + "AsyncRulesResourceWithStreamingResponse", + "StorageResource", + "AsyncStorageResource", + "StorageResourceWithRawResponse", + "AsyncStorageResourceWithRawResponse", + "StorageResourceWithStreamingResponse", + "AsyncStorageResourceWithStreamingResponse", + "StreamResource", + "AsyncStreamResource", + "StreamResourceWithRawResponse", + "AsyncStreamResourceWithRawResponse", + "StreamResourceWithStreamingResponse", + "AsyncStreamResourceWithStreamingResponse", + "AlertingResource", + "AsyncAlertingResource", + "AlertingResourceWithRawResponse", + "AsyncAlertingResourceWithRawResponse", + "AlertingResourceWithStreamingResponse", + "AsyncAlertingResourceWithStreamingResponse", "D1Resource", "AsyncD1Resource", "D1ResourceWithRawResponse", "AsyncD1ResourceWithRawResponse", "D1ResourceWithStreamingResponse", "AsyncD1ResourceWithStreamingResponse", - "R2", - "AsyncR2", - "R2WithRawResponse", - "AsyncR2WithRawResponse", - "R2WithStreamingResponse", - "AsyncR2WithStreamingResponse", - "WARPConnector", - "AsyncWARPConnector", - "WARPConnectorWithRawResponse", - "AsyncWARPConnectorWithRawResponse", - "WARPConnectorWithStreamingResponse", - "AsyncWARPConnectorWithStreamingResponse", - "WorkersForPlatforms", - "AsyncWorkersForPlatforms", - "WorkersForPlatformsWithRawResponse", - "AsyncWorkersForPlatformsWithRawResponse", - "WorkersForPlatformsWithStreamingResponse", - "AsyncWorkersForPlatformsWithStreamingResponse", - "ZeroTrust", - "AsyncZeroTrust", - "ZeroTrustWithRawResponse", - "AsyncZeroTrustWithRawResponse", - "ZeroTrustWithStreamingResponse", - "AsyncZeroTrustWithStreamingResponse", - "Challenges", - "AsyncChallenges", - "ChallengesWithRawResponse", - "AsyncChallengesWithRawResponse", - "ChallengesWithStreamingResponse", - "AsyncChallengesWithStreamingResponse", + "R2Resource", + "AsyncR2Resource", + "R2ResourceWithRawResponse", + "AsyncR2ResourceWithRawResponse", + "R2ResourceWithStreamingResponse", + "AsyncR2ResourceWithStreamingResponse", + "WARPConnectorResource", + "AsyncWARPConnectorResource", + "WARPConnectorResourceWithRawResponse", + "AsyncWARPConnectorResourceWithRawResponse", + "WARPConnectorResourceWithStreamingResponse", + "AsyncWARPConnectorResourceWithStreamingResponse", + "WorkersForPlatformsResource", + "AsyncWorkersForPlatformsResource", + "WorkersForPlatformsResourceWithRawResponse", + "AsyncWorkersForPlatformsResourceWithRawResponse", + "WorkersForPlatformsResourceWithStreamingResponse", + "AsyncWorkersForPlatformsResourceWithStreamingResponse", + "ZeroTrustResource", + "AsyncZeroTrustResource", + "ZeroTrustResourceWithRawResponse", + "AsyncZeroTrustResourceWithRawResponse", + "ZeroTrustResourceWithStreamingResponse", + "AsyncZeroTrustResourceWithStreamingResponse", + "ChallengesResource", + "AsyncChallengesResource", + "ChallengesResourceWithRawResponse", + "AsyncChallengesResourceWithRawResponse", + "ChallengesResourceWithStreamingResponse", + "AsyncChallengesResourceWithStreamingResponse", "HyperdriveResource", "AsyncHyperdriveResource", "HyperdriveResourceWithRawResponse", "AsyncHyperdriveResourceWithRawResponse", "HyperdriveResourceWithStreamingResponse", "AsyncHyperdriveResourceWithStreamingResponse", - "RUM", - "AsyncRUM", - "RUMWithRawResponse", - "AsyncRUMWithRawResponse", - "RUMWithStreamingResponse", - "AsyncRUMWithStreamingResponse", - "Vectorize", - "AsyncVectorize", - "VectorizeWithRawResponse", - "AsyncVectorizeWithRawResponse", - "VectorizeWithStreamingResponse", - "AsyncVectorizeWithStreamingResponse", - "URLScanner", - "AsyncURLScanner", - "URLScannerWithRawResponse", - "AsyncURLScannerWithRawResponse", - "URLScannerWithStreamingResponse", - "AsyncURLScannerWithStreamingResponse", - "Radar", - "AsyncRadar", - "RadarWithRawResponse", - "AsyncRadarWithRawResponse", - "RadarWithStreamingResponse", - "AsyncRadarWithStreamingResponse", - "BotManagement", - "AsyncBotManagement", - "BotManagementWithRawResponse", - "AsyncBotManagementWithRawResponse", - "BotManagementWithStreamingResponse", - "AsyncBotManagementWithStreamingResponse", - "OriginPostQuantumEncryption", - "AsyncOriginPostQuantumEncryption", - "OriginPostQuantumEncryptionWithRawResponse", - "AsyncOriginPostQuantumEncryptionWithRawResponse", - "OriginPostQuantumEncryptionWithStreamingResponse", - "AsyncOriginPostQuantumEncryptionWithStreamingResponse", - "Speed", - "AsyncSpeed", - "SpeedWithRawResponse", - "AsyncSpeedWithRawResponse", - "SpeedWithStreamingResponse", - "AsyncSpeedWithStreamingResponse", - "DCVDelegation", - "AsyncDCVDelegation", - "DCVDelegationWithRawResponse", - "AsyncDCVDelegationWithRawResponse", - "DCVDelegationWithStreamingResponse", - "AsyncDCVDelegationWithStreamingResponse", - "Hostnames", - "AsyncHostnames", - "HostnamesWithRawResponse", - "AsyncHostnamesWithRawResponse", - "HostnamesWithStreamingResponse", - "AsyncHostnamesWithStreamingResponse", - "Snippets", - "AsyncSnippets", - "SnippetsWithRawResponse", - "AsyncSnippetsWithRawResponse", - "SnippetsWithStreamingResponse", - "AsyncSnippetsWithStreamingResponse", - "Calls", - "AsyncCalls", - "CallsWithRawResponse", - "AsyncCallsWithRawResponse", - "CallsWithStreamingResponse", - "AsyncCallsWithStreamingResponse", - "CloudforceOne", - "AsyncCloudforceOne", - "CloudforceOneWithRawResponse", - "AsyncCloudforceOneWithRawResponse", - "CloudforceOneWithStreamingResponse", - "AsyncCloudforceOneWithStreamingResponse", - "EventNotifications", - "AsyncEventNotifications", - "EventNotificationsWithRawResponse", - "AsyncEventNotificationsWithRawResponse", - "EventNotificationsWithStreamingResponse", - "AsyncEventNotificationsWithStreamingResponse", + "RUMResource", + "AsyncRUMResource", + "RUMResourceWithRawResponse", + "AsyncRUMResourceWithRawResponse", + "RUMResourceWithStreamingResponse", + "AsyncRUMResourceWithStreamingResponse", + "VectorizeResource", + "AsyncVectorizeResource", + "VectorizeResourceWithRawResponse", + "AsyncVectorizeResourceWithRawResponse", + "VectorizeResourceWithStreamingResponse", + "AsyncVectorizeResourceWithStreamingResponse", + "URLScannerResource", + "AsyncURLScannerResource", + "URLScannerResourceWithRawResponse", + "AsyncURLScannerResourceWithRawResponse", + "URLScannerResourceWithStreamingResponse", + "AsyncURLScannerResourceWithStreamingResponse", + "RadarResource", + "AsyncRadarResource", + "RadarResourceWithRawResponse", + "AsyncRadarResourceWithRawResponse", + "RadarResourceWithStreamingResponse", + "AsyncRadarResourceWithStreamingResponse", + "BotManagementResource", + "AsyncBotManagementResource", + "BotManagementResourceWithRawResponse", + "AsyncBotManagementResourceWithRawResponse", + "BotManagementResourceWithStreamingResponse", + "AsyncBotManagementResourceWithStreamingResponse", + "OriginPostQuantumEncryptionResource", + "AsyncOriginPostQuantumEncryptionResource", + "OriginPostQuantumEncryptionResourceWithRawResponse", + "AsyncOriginPostQuantumEncryptionResourceWithRawResponse", + "OriginPostQuantumEncryptionResourceWithStreamingResponse", + "AsyncOriginPostQuantumEncryptionResourceWithStreamingResponse", + "SpeedResource", + "AsyncSpeedResource", + "SpeedResourceWithRawResponse", + "AsyncSpeedResourceWithRawResponse", + "SpeedResourceWithStreamingResponse", + "AsyncSpeedResourceWithStreamingResponse", + "DCVDelegationResource", + "AsyncDCVDelegationResource", + "DCVDelegationResourceWithRawResponse", + "AsyncDCVDelegationResourceWithRawResponse", + "DCVDelegationResourceWithStreamingResponse", + "AsyncDCVDelegationResourceWithStreamingResponse", + "HostnamesResource", + "AsyncHostnamesResource", + "HostnamesResourceWithRawResponse", + "AsyncHostnamesResourceWithRawResponse", + "HostnamesResourceWithStreamingResponse", + "AsyncHostnamesResourceWithStreamingResponse", + "SnippetsResource", + "AsyncSnippetsResource", + "SnippetsResourceWithRawResponse", + "AsyncSnippetsResourceWithRawResponse", + "SnippetsResourceWithStreamingResponse", + "AsyncSnippetsResourceWithStreamingResponse", + "CallsResource", + "AsyncCallsResource", + "CallsResourceWithRawResponse", + "AsyncCallsResourceWithRawResponse", + "CallsResourceWithStreamingResponse", + "AsyncCallsResourceWithStreamingResponse", + "CloudforceOneResource", + "AsyncCloudforceOneResource", + "CloudforceOneResourceWithRawResponse", + "AsyncCloudforceOneResourceWithRawResponse", + "CloudforceOneResourceWithStreamingResponse", + "AsyncCloudforceOneResourceWithStreamingResponse", + "EventNotificationsResource", + "AsyncEventNotificationsResource", + "EventNotificationsResourceWithRawResponse", + "AsyncEventNotificationsResourceWithRawResponse", + "EventNotificationsResourceWithStreamingResponse", + "AsyncEventNotificationsResourceWithStreamingResponse", ] diff --git a/src/cloudflare/resources/accounts/__init__.py b/src/cloudflare/resources/accounts/__init__.py index 3425c5347c0..4e9d5ed34dd 100644 --- a/src/cloudflare/resources/accounts/__init__.py +++ b/src/cloudflare/resources/accounts/__init__.py @@ -1,47 +1,47 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from .roles import ( - Roles, - AsyncRoles, - RolesWithRawResponse, - AsyncRolesWithRawResponse, - RolesWithStreamingResponse, - AsyncRolesWithStreamingResponse, + RolesResource, + AsyncRolesResource, + RolesResourceWithRawResponse, + AsyncRolesResourceWithRawResponse, + RolesResourceWithStreamingResponse, + AsyncRolesResourceWithStreamingResponse, ) from .members import ( - Members, - AsyncMembers, - MembersWithRawResponse, - AsyncMembersWithRawResponse, - MembersWithStreamingResponse, - AsyncMembersWithStreamingResponse, + MembersResource, + AsyncMembersResource, + MembersResourceWithRawResponse, + AsyncMembersResourceWithRawResponse, + MembersResourceWithStreamingResponse, + AsyncMembersResourceWithStreamingResponse, ) from .accounts import ( - Accounts, - AsyncAccounts, - AccountsWithRawResponse, - AsyncAccountsWithRawResponse, - AccountsWithStreamingResponse, - AsyncAccountsWithStreamingResponse, + AccountsResource, + AsyncAccountsResource, + AccountsResourceWithRawResponse, + AsyncAccountsResourceWithRawResponse, + AccountsResourceWithStreamingResponse, + AsyncAccountsResourceWithStreamingResponse, ) __all__ = [ - "Members", - "AsyncMembers", - "MembersWithRawResponse", - "AsyncMembersWithRawResponse", - "MembersWithStreamingResponse", - "AsyncMembersWithStreamingResponse", - "Roles", - "AsyncRoles", - "RolesWithRawResponse", - "AsyncRolesWithRawResponse", - "RolesWithStreamingResponse", - "AsyncRolesWithStreamingResponse", - "Accounts", - "AsyncAccounts", - "AccountsWithRawResponse", - "AsyncAccountsWithRawResponse", - "AccountsWithStreamingResponse", - "AsyncAccountsWithStreamingResponse", + "MembersResource", + "AsyncMembersResource", + "MembersResourceWithRawResponse", + "AsyncMembersResourceWithRawResponse", + "MembersResourceWithStreamingResponse", + "AsyncMembersResourceWithStreamingResponse", + "RolesResource", + "AsyncRolesResource", + "RolesResourceWithRawResponse", + "AsyncRolesResourceWithRawResponse", + "RolesResourceWithStreamingResponse", + "AsyncRolesResourceWithStreamingResponse", + "AccountsResource", + "AsyncAccountsResource", + "AccountsResourceWithRawResponse", + "AsyncAccountsResourceWithRawResponse", + "AccountsResourceWithStreamingResponse", + "AsyncAccountsResourceWithStreamingResponse", ] diff --git a/src/cloudflare/resources/accounts/accounts.py b/src/cloudflare/resources/accounts/accounts.py index 011e6fa6bdb..f2778f600c0 100644 --- a/src/cloudflare/resources/accounts/accounts.py +++ b/src/cloudflare/resources/accounts/accounts.py @@ -8,20 +8,20 @@ import httpx from .roles import ( - Roles, - AsyncRoles, - RolesWithRawResponse, - AsyncRolesWithRawResponse, - RolesWithStreamingResponse, - AsyncRolesWithStreamingResponse, + RolesResource, + AsyncRolesResource, + RolesResourceWithRawResponse, + AsyncRolesResourceWithRawResponse, + RolesResourceWithStreamingResponse, + AsyncRolesResourceWithStreamingResponse, ) from .members import ( - Members, - AsyncMembers, - MembersWithRawResponse, - AsyncMembersWithRawResponse, - MembersWithStreamingResponse, - AsyncMembersWithStreamingResponse, + MembersResource, + AsyncMembersResource, + MembersResourceWithRawResponse, + AsyncMembersResourceWithRawResponse, + MembersResourceWithStreamingResponse, + AsyncMembersResourceWithStreamingResponse, ) from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven from ..._utils import ( @@ -46,25 +46,25 @@ from ...types.accounts.account_get_response import AccountGetResponse from ...types.accounts.account_update_response import AccountUpdateResponse -__all__ = ["Accounts", "AsyncAccounts"] +__all__ = ["AccountsResource", "AsyncAccountsResource"] -class Accounts(SyncAPIResource): +class AccountsResource(SyncAPIResource): @cached_property - def members(self) -> Members: - return Members(self._client) + def members(self) -> MembersResource: + return MembersResource(self._client) @cached_property - def roles(self) -> Roles: - return Roles(self._client) + def roles(self) -> RolesResource: + return RolesResource(self._client) @cached_property - def with_raw_response(self) -> AccountsWithRawResponse: - return AccountsWithRawResponse(self) + def with_raw_response(self) -> AccountsResourceWithRawResponse: + return AccountsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AccountsWithStreamingResponse: - return AccountsWithStreamingResponse(self) + def with_streaming_response(self) -> AccountsResourceWithStreamingResponse: + return AccountsResourceWithStreamingResponse(self) def update( self, @@ -215,22 +215,22 @@ def get( ) -class AsyncAccounts(AsyncAPIResource): +class AsyncAccountsResource(AsyncAPIResource): @cached_property - def members(self) -> AsyncMembers: - return AsyncMembers(self._client) + def members(self) -> AsyncMembersResource: + return AsyncMembersResource(self._client) @cached_property - def roles(self) -> AsyncRoles: - return AsyncRoles(self._client) + def roles(self) -> AsyncRolesResource: + return AsyncRolesResource(self._client) @cached_property - def with_raw_response(self) -> AsyncAccountsWithRawResponse: - return AsyncAccountsWithRawResponse(self) + def with_raw_response(self) -> AsyncAccountsResourceWithRawResponse: + return AsyncAccountsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncAccountsWithStreamingResponse: - return AsyncAccountsWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncAccountsResourceWithStreamingResponse: + return AsyncAccountsResourceWithStreamingResponse(self) async def update( self, @@ -381,8 +381,8 @@ async def get( ) -class AccountsWithRawResponse: - def __init__(self, accounts: Accounts) -> None: +class AccountsResourceWithRawResponse: + def __init__(self, accounts: AccountsResource) -> None: self._accounts = accounts self.update = to_raw_response_wrapper( @@ -396,16 +396,16 @@ def __init__(self, accounts: Accounts) -> None: ) @cached_property - def members(self) -> MembersWithRawResponse: - return MembersWithRawResponse(self._accounts.members) + def members(self) -> MembersResourceWithRawResponse: + return MembersResourceWithRawResponse(self._accounts.members) @cached_property - def roles(self) -> RolesWithRawResponse: - return RolesWithRawResponse(self._accounts.roles) + def roles(self) -> RolesResourceWithRawResponse: + return RolesResourceWithRawResponse(self._accounts.roles) -class AsyncAccountsWithRawResponse: - def __init__(self, accounts: AsyncAccounts) -> None: +class AsyncAccountsResourceWithRawResponse: + def __init__(self, accounts: AsyncAccountsResource) -> None: self._accounts = accounts self.update = async_to_raw_response_wrapper( @@ -419,16 +419,16 @@ def __init__(self, accounts: AsyncAccounts) -> None: ) @cached_property - def members(self) -> AsyncMembersWithRawResponse: - return AsyncMembersWithRawResponse(self._accounts.members) + def members(self) -> AsyncMembersResourceWithRawResponse: + return AsyncMembersResourceWithRawResponse(self._accounts.members) @cached_property - def roles(self) -> AsyncRolesWithRawResponse: - return AsyncRolesWithRawResponse(self._accounts.roles) + def roles(self) -> AsyncRolesResourceWithRawResponse: + return AsyncRolesResourceWithRawResponse(self._accounts.roles) -class AccountsWithStreamingResponse: - def __init__(self, accounts: Accounts) -> None: +class AccountsResourceWithStreamingResponse: + def __init__(self, accounts: AccountsResource) -> None: self._accounts = accounts self.update = to_streamed_response_wrapper( @@ -442,16 +442,16 @@ def __init__(self, accounts: Accounts) -> None: ) @cached_property - def members(self) -> MembersWithStreamingResponse: - return MembersWithStreamingResponse(self._accounts.members) + def members(self) -> MembersResourceWithStreamingResponse: + return MembersResourceWithStreamingResponse(self._accounts.members) @cached_property - def roles(self) -> RolesWithStreamingResponse: - return RolesWithStreamingResponse(self._accounts.roles) + def roles(self) -> RolesResourceWithStreamingResponse: + return RolesResourceWithStreamingResponse(self._accounts.roles) -class AsyncAccountsWithStreamingResponse: - def __init__(self, accounts: AsyncAccounts) -> None: +class AsyncAccountsResourceWithStreamingResponse: + def __init__(self, accounts: AsyncAccountsResource) -> None: self._accounts = accounts self.update = async_to_streamed_response_wrapper( @@ -465,9 +465,9 @@ def __init__(self, accounts: AsyncAccounts) -> None: ) @cached_property - def members(self) -> AsyncMembersWithStreamingResponse: - return AsyncMembersWithStreamingResponse(self._accounts.members) + def members(self) -> AsyncMembersResourceWithStreamingResponse: + return AsyncMembersResourceWithStreamingResponse(self._accounts.members) @cached_property - def roles(self) -> AsyncRolesWithStreamingResponse: - return AsyncRolesWithStreamingResponse(self._accounts.roles) + def roles(self) -> AsyncRolesResourceWithStreamingResponse: + return AsyncRolesResourceWithStreamingResponse(self._accounts.roles) diff --git a/src/cloudflare/resources/accounts/members.py b/src/cloudflare/resources/accounts/members.py index 78fdd5509b7..487213e8949 100644 --- a/src/cloudflare/resources/accounts/members.py +++ b/src/cloudflare/resources/accounts/members.py @@ -32,17 +32,17 @@ from ...types.accounts.user_with_invite_code import UserWithInviteCode from ...types.accounts.member_delete_response import MemberDeleteResponse -__all__ = ["Members", "AsyncMembers"] +__all__ = ["MembersResource", "AsyncMembersResource"] -class Members(SyncAPIResource): +class MembersResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> MembersWithRawResponse: - return MembersWithRawResponse(self) + def with_raw_response(self) -> MembersResourceWithRawResponse: + return MembersResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> MembersWithStreamingResponse: - return MembersWithStreamingResponse(self) + def with_streaming_response(self) -> MembersResourceWithStreamingResponse: + return MembersResourceWithStreamingResponse(self) def create( self, @@ -281,14 +281,14 @@ def get( ) -class AsyncMembers(AsyncAPIResource): +class AsyncMembersResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncMembersWithRawResponse: - return AsyncMembersWithRawResponse(self) + def with_raw_response(self) -> AsyncMembersResourceWithRawResponse: + return AsyncMembersResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncMembersWithStreamingResponse: - return AsyncMembersWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncMembersResourceWithStreamingResponse: + return AsyncMembersResourceWithStreamingResponse(self) async def create( self, @@ -527,8 +527,8 @@ async def get( ) -class MembersWithRawResponse: - def __init__(self, members: Members) -> None: +class MembersResourceWithRawResponse: + def __init__(self, members: MembersResource) -> None: self._members = members self.create = to_raw_response_wrapper( @@ -548,8 +548,8 @@ def __init__(self, members: Members) -> None: ) -class AsyncMembersWithRawResponse: - def __init__(self, members: AsyncMembers) -> None: +class AsyncMembersResourceWithRawResponse: + def __init__(self, members: AsyncMembersResource) -> None: self._members = members self.create = async_to_raw_response_wrapper( @@ -569,8 +569,8 @@ def __init__(self, members: AsyncMembers) -> None: ) -class MembersWithStreamingResponse: - def __init__(self, members: Members) -> None: +class MembersResourceWithStreamingResponse: + def __init__(self, members: MembersResource) -> None: self._members = members self.create = to_streamed_response_wrapper( @@ -590,8 +590,8 @@ def __init__(self, members: Members) -> None: ) -class AsyncMembersWithStreamingResponse: - def __init__(self, members: AsyncMembers) -> None: +class AsyncMembersResourceWithStreamingResponse: + def __init__(self, members: AsyncMembersResource) -> None: self._members = members self.create = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/accounts/roles.py b/src/cloudflare/resources/accounts/roles.py index 9452784e845..35a5ac1b607 100644 --- a/src/cloudflare/resources/accounts/roles.py +++ b/src/cloudflare/resources/accounts/roles.py @@ -24,17 +24,17 @@ from ...types.shared.role import Role from ...types.accounts.role_get_response import RoleGetResponse -__all__ = ["Roles", "AsyncRoles"] +__all__ = ["RolesResource", "AsyncRolesResource"] -class Roles(SyncAPIResource): +class RolesResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> RolesWithRawResponse: - return RolesWithRawResponse(self) + def with_raw_response(self) -> RolesResourceWithRawResponse: + return RolesResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> RolesWithStreamingResponse: - return RolesWithStreamingResponse(self) + def with_streaming_response(self) -> RolesResourceWithStreamingResponse: + return RolesResourceWithStreamingResponse(self) def list( self, @@ -110,14 +110,14 @@ def get( ) -class AsyncRoles(AsyncAPIResource): +class AsyncRolesResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncRolesWithRawResponse: - return AsyncRolesWithRawResponse(self) + def with_raw_response(self) -> AsyncRolesResourceWithRawResponse: + return AsyncRolesResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncRolesWithStreamingResponse: - return AsyncRolesWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncRolesResourceWithStreamingResponse: + return AsyncRolesResourceWithStreamingResponse(self) def list( self, @@ -193,8 +193,8 @@ async def get( ) -class RolesWithRawResponse: - def __init__(self, roles: Roles) -> None: +class RolesResourceWithRawResponse: + def __init__(self, roles: RolesResource) -> None: self._roles = roles self.list = to_raw_response_wrapper( @@ -205,8 +205,8 @@ def __init__(self, roles: Roles) -> None: ) -class AsyncRolesWithRawResponse: - def __init__(self, roles: AsyncRoles) -> None: +class AsyncRolesResourceWithRawResponse: + def __init__(self, roles: AsyncRolesResource) -> None: self._roles = roles self.list = async_to_raw_response_wrapper( @@ -217,8 +217,8 @@ def __init__(self, roles: AsyncRoles) -> None: ) -class RolesWithStreamingResponse: - def __init__(self, roles: Roles) -> None: +class RolesResourceWithStreamingResponse: + def __init__(self, roles: RolesResource) -> None: self._roles = roles self.list = to_streamed_response_wrapper( @@ -229,8 +229,8 @@ def __init__(self, roles: Roles) -> None: ) -class AsyncRolesWithStreamingResponse: - def __init__(self, roles: AsyncRoles) -> None: +class AsyncRolesResourceWithStreamingResponse: + def __init__(self, roles: AsyncRolesResource) -> None: self._roles = roles self.list = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/acm/__init__.py b/src/cloudflare/resources/acm/__init__.py index 6853040a532..ed969a286c5 100644 --- a/src/cloudflare/resources/acm/__init__.py +++ b/src/cloudflare/resources/acm/__init__.py @@ -1,33 +1,33 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from .acm import ( - ACM, - AsyncACM, - ACMWithRawResponse, - AsyncACMWithRawResponse, - ACMWithStreamingResponse, - AsyncACMWithStreamingResponse, + ACMResource, + AsyncACMResource, + ACMResourceWithRawResponse, + AsyncACMResourceWithRawResponse, + ACMResourceWithStreamingResponse, + AsyncACMResourceWithStreamingResponse, ) from .total_tls import ( - TotalTLS, - AsyncTotalTLS, - TotalTLSWithRawResponse, - AsyncTotalTLSWithRawResponse, - TotalTLSWithStreamingResponse, - AsyncTotalTLSWithStreamingResponse, + TotalTLSResource, + AsyncTotalTLSResource, + TotalTLSResourceWithRawResponse, + AsyncTotalTLSResourceWithRawResponse, + TotalTLSResourceWithStreamingResponse, + AsyncTotalTLSResourceWithStreamingResponse, ) __all__ = [ - "TotalTLS", - "AsyncTotalTLS", - "TotalTLSWithRawResponse", - "AsyncTotalTLSWithRawResponse", - "TotalTLSWithStreamingResponse", - "AsyncTotalTLSWithStreamingResponse", - "ACM", - "AsyncACM", - "ACMWithRawResponse", - "AsyncACMWithRawResponse", - "ACMWithStreamingResponse", - "AsyncACMWithStreamingResponse", + "TotalTLSResource", + "AsyncTotalTLSResource", + "TotalTLSResourceWithRawResponse", + "AsyncTotalTLSResourceWithRawResponse", + "TotalTLSResourceWithStreamingResponse", + "AsyncTotalTLSResourceWithStreamingResponse", + "ACMResource", + "AsyncACMResource", + "ACMResourceWithRawResponse", + "AsyncACMResourceWithRawResponse", + "ACMResourceWithStreamingResponse", + "AsyncACMResourceWithStreamingResponse", ] diff --git a/src/cloudflare/resources/acm/acm.py b/src/cloudflare/resources/acm/acm.py index 59f0468eb3b..ad401c45360 100644 --- a/src/cloudflare/resources/acm/acm.py +++ b/src/cloudflare/resources/acm/acm.py @@ -4,77 +4,77 @@ from ..._compat import cached_property from .total_tls import ( - TotalTLS, - AsyncTotalTLS, - TotalTLSWithRawResponse, - AsyncTotalTLSWithRawResponse, - TotalTLSWithStreamingResponse, - AsyncTotalTLSWithStreamingResponse, + TotalTLSResource, + AsyncTotalTLSResource, + TotalTLSResourceWithRawResponse, + AsyncTotalTLSResourceWithRawResponse, + TotalTLSResourceWithStreamingResponse, + AsyncTotalTLSResourceWithStreamingResponse, ) from ..._resource import SyncAPIResource, AsyncAPIResource -__all__ = ["ACM", "AsyncACM"] +__all__ = ["ACMResource", "AsyncACMResource"] -class ACM(SyncAPIResource): +class ACMResource(SyncAPIResource): @cached_property - def total_tls(self) -> TotalTLS: - return TotalTLS(self._client) + def total_tls(self) -> TotalTLSResource: + return TotalTLSResource(self._client) @cached_property - def with_raw_response(self) -> ACMWithRawResponse: - return ACMWithRawResponse(self) + def with_raw_response(self) -> ACMResourceWithRawResponse: + return ACMResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> ACMWithStreamingResponse: - return ACMWithStreamingResponse(self) + def with_streaming_response(self) -> ACMResourceWithStreamingResponse: + return ACMResourceWithStreamingResponse(self) -class AsyncACM(AsyncAPIResource): +class AsyncACMResource(AsyncAPIResource): @cached_property - def total_tls(self) -> AsyncTotalTLS: - return AsyncTotalTLS(self._client) + def total_tls(self) -> AsyncTotalTLSResource: + return AsyncTotalTLSResource(self._client) @cached_property - def with_raw_response(self) -> AsyncACMWithRawResponse: - return AsyncACMWithRawResponse(self) + def with_raw_response(self) -> AsyncACMResourceWithRawResponse: + return AsyncACMResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncACMWithStreamingResponse: - return AsyncACMWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncACMResourceWithStreamingResponse: + return AsyncACMResourceWithStreamingResponse(self) -class ACMWithRawResponse: - def __init__(self, acm: ACM) -> None: +class ACMResourceWithRawResponse: + def __init__(self, acm: ACMResource) -> None: self._acm = acm @cached_property - def total_tls(self) -> TotalTLSWithRawResponse: - return TotalTLSWithRawResponse(self._acm.total_tls) + def total_tls(self) -> TotalTLSResourceWithRawResponse: + return TotalTLSResourceWithRawResponse(self._acm.total_tls) -class AsyncACMWithRawResponse: - def __init__(self, acm: AsyncACM) -> None: +class AsyncACMResourceWithRawResponse: + def __init__(self, acm: AsyncACMResource) -> None: self._acm = acm @cached_property - def total_tls(self) -> AsyncTotalTLSWithRawResponse: - return AsyncTotalTLSWithRawResponse(self._acm.total_tls) + def total_tls(self) -> AsyncTotalTLSResourceWithRawResponse: + return AsyncTotalTLSResourceWithRawResponse(self._acm.total_tls) -class ACMWithStreamingResponse: - def __init__(self, acm: ACM) -> None: +class ACMResourceWithStreamingResponse: + def __init__(self, acm: ACMResource) -> None: self._acm = acm @cached_property - def total_tls(self) -> TotalTLSWithStreamingResponse: - return TotalTLSWithStreamingResponse(self._acm.total_tls) + def total_tls(self) -> TotalTLSResourceWithStreamingResponse: + return TotalTLSResourceWithStreamingResponse(self._acm.total_tls) -class AsyncACMWithStreamingResponse: - def __init__(self, acm: AsyncACM) -> None: +class AsyncACMResourceWithStreamingResponse: + def __init__(self, acm: AsyncACMResource) -> None: self._acm = acm @cached_property - def total_tls(self) -> AsyncTotalTLSWithStreamingResponse: - return AsyncTotalTLSWithStreamingResponse(self._acm.total_tls) + def total_tls(self) -> AsyncTotalTLSResourceWithStreamingResponse: + return AsyncTotalTLSResourceWithStreamingResponse(self._acm.total_tls) diff --git a/src/cloudflare/resources/acm/total_tls.py b/src/cloudflare/resources/acm/total_tls.py index bd4df5c4eec..4795b7d6275 100644 --- a/src/cloudflare/resources/acm/total_tls.py +++ b/src/cloudflare/resources/acm/total_tls.py @@ -28,17 +28,17 @@ from ...types.acm.total_tls_get_response import TotalTLSGetResponse from ...types.acm.total_tls_create_response import TotalTLSCreateResponse -__all__ = ["TotalTLS", "AsyncTotalTLS"] +__all__ = ["TotalTLSResource", "AsyncTotalTLSResource"] -class TotalTLS(SyncAPIResource): +class TotalTLSResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> TotalTLSWithRawResponse: - return TotalTLSWithRawResponse(self) + def with_raw_response(self) -> TotalTLSResourceWithRawResponse: + return TotalTLSResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> TotalTLSWithStreamingResponse: - return TotalTLSWithStreamingResponse(self) + def with_streaming_response(self) -> TotalTLSResourceWithStreamingResponse: + return TotalTLSResourceWithStreamingResponse(self) def create( self, @@ -133,14 +133,14 @@ def get( ) -class AsyncTotalTLS(AsyncAPIResource): +class AsyncTotalTLSResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncTotalTLSWithRawResponse: - return AsyncTotalTLSWithRawResponse(self) + def with_raw_response(self) -> AsyncTotalTLSResourceWithRawResponse: + return AsyncTotalTLSResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncTotalTLSWithStreamingResponse: - return AsyncTotalTLSWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncTotalTLSResourceWithStreamingResponse: + return AsyncTotalTLSResourceWithStreamingResponse(self) async def create( self, @@ -235,8 +235,8 @@ async def get( ) -class TotalTLSWithRawResponse: - def __init__(self, total_tls: TotalTLS) -> None: +class TotalTLSResourceWithRawResponse: + def __init__(self, total_tls: TotalTLSResource) -> None: self._total_tls = total_tls self.create = to_raw_response_wrapper( @@ -247,8 +247,8 @@ def __init__(self, total_tls: TotalTLS) -> None: ) -class AsyncTotalTLSWithRawResponse: - def __init__(self, total_tls: AsyncTotalTLS) -> None: +class AsyncTotalTLSResourceWithRawResponse: + def __init__(self, total_tls: AsyncTotalTLSResource) -> None: self._total_tls = total_tls self.create = async_to_raw_response_wrapper( @@ -259,8 +259,8 @@ def __init__(self, total_tls: AsyncTotalTLS) -> None: ) -class TotalTLSWithStreamingResponse: - def __init__(self, total_tls: TotalTLS) -> None: +class TotalTLSResourceWithStreamingResponse: + def __init__(self, total_tls: TotalTLSResource) -> None: self._total_tls = total_tls self.create = to_streamed_response_wrapper( @@ -271,8 +271,8 @@ def __init__(self, total_tls: TotalTLS) -> None: ) -class AsyncTotalTLSWithStreamingResponse: - def __init__(self, total_tls: AsyncTotalTLS) -> None: +class AsyncTotalTLSResourceWithStreamingResponse: + def __init__(self, total_tls: AsyncTotalTLSResource) -> None: self._total_tls = total_tls self.create = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/addressing/__init__.py b/src/cloudflare/resources/addressing/__init__.py index b8d5272513d..662ac0127d3 100644 --- a/src/cloudflare/resources/addressing/__init__.py +++ b/src/cloudflare/resources/addressing/__init__.py @@ -1,75 +1,75 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from .prefixes import ( - Prefixes, - AsyncPrefixes, - PrefixesWithRawResponse, - AsyncPrefixesWithRawResponse, - PrefixesWithStreamingResponse, - AsyncPrefixesWithStreamingResponse, + PrefixesResource, + AsyncPrefixesResource, + PrefixesResourceWithRawResponse, + AsyncPrefixesResourceWithRawResponse, + PrefixesResourceWithStreamingResponse, + AsyncPrefixesResourceWithStreamingResponse, ) from .services import ( - Services, - AsyncServices, - ServicesWithRawResponse, - AsyncServicesWithRawResponse, - ServicesWithStreamingResponse, - AsyncServicesWithStreamingResponse, + ServicesResource, + AsyncServicesResource, + ServicesResourceWithRawResponse, + AsyncServicesResourceWithRawResponse, + ServicesResourceWithStreamingResponse, + AsyncServicesResourceWithStreamingResponse, ) from .addressing import ( - Addressing, - AsyncAddressing, - AddressingWithRawResponse, - AsyncAddressingWithRawResponse, - AddressingWithStreamingResponse, - AsyncAddressingWithStreamingResponse, + AddressingResource, + AsyncAddressingResource, + AddressingResourceWithRawResponse, + AsyncAddressingResourceWithRawResponse, + AddressingResourceWithStreamingResponse, + AsyncAddressingResourceWithStreamingResponse, ) from .address_maps import ( - AddressMaps, - AsyncAddressMaps, - AddressMapsWithRawResponse, - AsyncAddressMapsWithRawResponse, - AddressMapsWithStreamingResponse, - AsyncAddressMapsWithStreamingResponse, + AddressMapsResource, + AsyncAddressMapsResource, + AddressMapsResourceWithRawResponse, + AsyncAddressMapsResourceWithRawResponse, + AddressMapsResourceWithStreamingResponse, + AsyncAddressMapsResourceWithStreamingResponse, ) from .loa_documents import ( - LOADocuments, - AsyncLOADocuments, - LOADocumentsWithRawResponse, - AsyncLOADocumentsWithRawResponse, - LOADocumentsWithStreamingResponse, - AsyncLOADocumentsWithStreamingResponse, + LOADocumentsResource, + AsyncLOADocumentsResource, + LOADocumentsResourceWithRawResponse, + AsyncLOADocumentsResourceWithRawResponse, + LOADocumentsResourceWithStreamingResponse, + AsyncLOADocumentsResourceWithStreamingResponse, ) __all__ = [ - "Services", - "AsyncServices", - "ServicesWithRawResponse", - "AsyncServicesWithRawResponse", - "ServicesWithStreamingResponse", - "AsyncServicesWithStreamingResponse", - "AddressMaps", - "AsyncAddressMaps", - "AddressMapsWithRawResponse", - "AsyncAddressMapsWithRawResponse", - "AddressMapsWithStreamingResponse", - "AsyncAddressMapsWithStreamingResponse", - "LOADocuments", - "AsyncLOADocuments", - "LOADocumentsWithRawResponse", - "AsyncLOADocumentsWithRawResponse", - "LOADocumentsWithStreamingResponse", - "AsyncLOADocumentsWithStreamingResponse", - "Prefixes", - "AsyncPrefixes", - "PrefixesWithRawResponse", - "AsyncPrefixesWithRawResponse", - "PrefixesWithStreamingResponse", - "AsyncPrefixesWithStreamingResponse", - "Addressing", - "AsyncAddressing", - "AddressingWithRawResponse", - "AsyncAddressingWithRawResponse", - "AddressingWithStreamingResponse", - "AsyncAddressingWithStreamingResponse", + "ServicesResource", + "AsyncServicesResource", + "ServicesResourceWithRawResponse", + "AsyncServicesResourceWithRawResponse", + "ServicesResourceWithStreamingResponse", + "AsyncServicesResourceWithStreamingResponse", + "AddressMapsResource", + "AsyncAddressMapsResource", + "AddressMapsResourceWithRawResponse", + "AsyncAddressMapsResourceWithRawResponse", + "AddressMapsResourceWithStreamingResponse", + "AsyncAddressMapsResourceWithStreamingResponse", + "LOADocumentsResource", + "AsyncLOADocumentsResource", + "LOADocumentsResourceWithRawResponse", + "AsyncLOADocumentsResourceWithRawResponse", + "LOADocumentsResourceWithStreamingResponse", + "AsyncLOADocumentsResourceWithStreamingResponse", + "PrefixesResource", + "AsyncPrefixesResource", + "PrefixesResourceWithRawResponse", + "AsyncPrefixesResourceWithRawResponse", + "PrefixesResourceWithStreamingResponse", + "AsyncPrefixesResourceWithStreamingResponse", + "AddressingResource", + "AsyncAddressingResource", + "AddressingResourceWithRawResponse", + "AsyncAddressingResourceWithRawResponse", + "AddressingResourceWithStreamingResponse", + "AsyncAddressingResourceWithStreamingResponse", ] diff --git a/src/cloudflare/resources/addressing/address_maps/__init__.py b/src/cloudflare/resources/addressing/address_maps/__init__.py index 8cf8d6c46e5..2e3ff1b5938 100644 --- a/src/cloudflare/resources/addressing/address_maps/__init__.py +++ b/src/cloudflare/resources/addressing/address_maps/__init__.py @@ -1,61 +1,61 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from .ips import ( - IPs, - AsyncIPs, - IPsWithRawResponse, - AsyncIPsWithRawResponse, - IPsWithStreamingResponse, - AsyncIPsWithStreamingResponse, + IPsResource, + AsyncIPsResource, + IPsResourceWithRawResponse, + AsyncIPsResourceWithRawResponse, + IPsResourceWithStreamingResponse, + AsyncIPsResourceWithStreamingResponse, ) from .zones import ( - Zones, - AsyncZones, - ZonesWithRawResponse, - AsyncZonesWithRawResponse, - ZonesWithStreamingResponse, - AsyncZonesWithStreamingResponse, + ZonesResource, + AsyncZonesResource, + ZonesResourceWithRawResponse, + AsyncZonesResourceWithRawResponse, + ZonesResourceWithStreamingResponse, + AsyncZonesResourceWithStreamingResponse, ) from .accounts import ( - Accounts, - AsyncAccounts, - AccountsWithRawResponse, - AsyncAccountsWithRawResponse, - AccountsWithStreamingResponse, - AsyncAccountsWithStreamingResponse, + AccountsResource, + AsyncAccountsResource, + AccountsResourceWithRawResponse, + AsyncAccountsResourceWithRawResponse, + AccountsResourceWithStreamingResponse, + AsyncAccountsResourceWithStreamingResponse, ) from .address_maps import ( - AddressMaps, - AsyncAddressMaps, - AddressMapsWithRawResponse, - AsyncAddressMapsWithRawResponse, - AddressMapsWithStreamingResponse, - AsyncAddressMapsWithStreamingResponse, + AddressMapsResource, + AsyncAddressMapsResource, + AddressMapsResourceWithRawResponse, + AsyncAddressMapsResourceWithRawResponse, + AddressMapsResourceWithStreamingResponse, + AsyncAddressMapsResourceWithStreamingResponse, ) __all__ = [ - "Accounts", - "AsyncAccounts", - "AccountsWithRawResponse", - "AsyncAccountsWithRawResponse", - "AccountsWithStreamingResponse", - "AsyncAccountsWithStreamingResponse", - "IPs", - "AsyncIPs", - "IPsWithRawResponse", - "AsyncIPsWithRawResponse", - "IPsWithStreamingResponse", - "AsyncIPsWithStreamingResponse", - "Zones", - "AsyncZones", - "ZonesWithRawResponse", - "AsyncZonesWithRawResponse", - "ZonesWithStreamingResponse", - "AsyncZonesWithStreamingResponse", - "AddressMaps", - "AsyncAddressMaps", - "AddressMapsWithRawResponse", - "AsyncAddressMapsWithRawResponse", - "AddressMapsWithStreamingResponse", - "AsyncAddressMapsWithStreamingResponse", + "AccountsResource", + "AsyncAccountsResource", + "AccountsResourceWithRawResponse", + "AsyncAccountsResourceWithRawResponse", + "AccountsResourceWithStreamingResponse", + "AsyncAccountsResourceWithStreamingResponse", + "IPsResource", + "AsyncIPsResource", + "IPsResourceWithRawResponse", + "AsyncIPsResourceWithRawResponse", + "IPsResourceWithStreamingResponse", + "AsyncIPsResourceWithStreamingResponse", + "ZonesResource", + "AsyncZonesResource", + "ZonesResourceWithRawResponse", + "AsyncZonesResourceWithRawResponse", + "ZonesResourceWithStreamingResponse", + "AsyncZonesResourceWithStreamingResponse", + "AddressMapsResource", + "AsyncAddressMapsResource", + "AddressMapsResourceWithRawResponse", + "AsyncAddressMapsResourceWithRawResponse", + "AddressMapsResourceWithStreamingResponse", + "AsyncAddressMapsResourceWithStreamingResponse", ] diff --git a/src/cloudflare/resources/addressing/address_maps/accounts.py b/src/cloudflare/resources/addressing/address_maps/accounts.py index 805fb92f899..17d49b29ca7 100644 --- a/src/cloudflare/resources/addressing/address_maps/accounts.py +++ b/src/cloudflare/resources/addressing/address_maps/accounts.py @@ -27,17 +27,17 @@ from ....types.addressing.address_maps.account_delete_response import AccountDeleteResponse from ....types.addressing.address_maps.account_update_response import AccountUpdateResponse -__all__ = ["Accounts", "AsyncAccounts"] +__all__ = ["AccountsResource", "AsyncAccountsResource"] -class Accounts(SyncAPIResource): +class AccountsResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> AccountsWithRawResponse: - return AccountsWithRawResponse(self) + def with_raw_response(self) -> AccountsResourceWithRawResponse: + return AccountsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AccountsWithStreamingResponse: - return AccountsWithStreamingResponse(self) + def with_streaming_response(self) -> AccountsResourceWithStreamingResponse: + return AccountsResourceWithStreamingResponse(self) def update( self, @@ -132,14 +132,14 @@ def delete( ) -class AsyncAccounts(AsyncAPIResource): +class AsyncAccountsResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncAccountsWithRawResponse: - return AsyncAccountsWithRawResponse(self) + def with_raw_response(self) -> AsyncAccountsResourceWithRawResponse: + return AsyncAccountsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncAccountsWithStreamingResponse: - return AsyncAccountsWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncAccountsResourceWithStreamingResponse: + return AsyncAccountsResourceWithStreamingResponse(self) async def update( self, @@ -234,8 +234,8 @@ async def delete( ) -class AccountsWithRawResponse: - def __init__(self, accounts: Accounts) -> None: +class AccountsResourceWithRawResponse: + def __init__(self, accounts: AccountsResource) -> None: self._accounts = accounts self.update = to_raw_response_wrapper( @@ -246,8 +246,8 @@ def __init__(self, accounts: Accounts) -> None: ) -class AsyncAccountsWithRawResponse: - def __init__(self, accounts: AsyncAccounts) -> None: +class AsyncAccountsResourceWithRawResponse: + def __init__(self, accounts: AsyncAccountsResource) -> None: self._accounts = accounts self.update = async_to_raw_response_wrapper( @@ -258,8 +258,8 @@ def __init__(self, accounts: AsyncAccounts) -> None: ) -class AccountsWithStreamingResponse: - def __init__(self, accounts: Accounts) -> None: +class AccountsResourceWithStreamingResponse: + def __init__(self, accounts: AccountsResource) -> None: self._accounts = accounts self.update = to_streamed_response_wrapper( @@ -270,8 +270,8 @@ def __init__(self, accounts: Accounts) -> None: ) -class AsyncAccountsWithStreamingResponse: - def __init__(self, accounts: AsyncAccounts) -> None: +class AsyncAccountsResourceWithStreamingResponse: + def __init__(self, accounts: AsyncAccountsResource) -> None: self._accounts = accounts self.update = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/addressing/address_maps/address_maps.py b/src/cloudflare/resources/addressing/address_maps/address_maps.py index d01b83cef3c..548ce6e7002 100644 --- a/src/cloudflare/resources/addressing/address_maps/address_maps.py +++ b/src/cloudflare/resources/addressing/address_maps/address_maps.py @@ -7,28 +7,28 @@ import httpx from .ips import ( - IPs, - AsyncIPs, - IPsWithRawResponse, - AsyncIPsWithRawResponse, - IPsWithStreamingResponse, - AsyncIPsWithStreamingResponse, + IPsResource, + AsyncIPsResource, + IPsResourceWithRawResponse, + AsyncIPsResourceWithRawResponse, + IPsResourceWithStreamingResponse, + AsyncIPsResourceWithStreamingResponse, ) from .zones import ( - Zones, - AsyncZones, - ZonesWithRawResponse, - AsyncZonesWithRawResponse, - ZonesWithStreamingResponse, - AsyncZonesWithStreamingResponse, + ZonesResource, + AsyncZonesResource, + ZonesResourceWithRawResponse, + AsyncZonesResourceWithRawResponse, + ZonesResourceWithStreamingResponse, + AsyncZonesResourceWithStreamingResponse, ) from .accounts import ( - Accounts, - AsyncAccounts, - AccountsWithRawResponse, - AsyncAccountsWithRawResponse, - AccountsWithStreamingResponse, - AsyncAccountsWithStreamingResponse, + AccountsResource, + AsyncAccountsResource, + AccountsResourceWithRawResponse, + AsyncAccountsResourceWithRawResponse, + AccountsResourceWithStreamingResponse, + AsyncAccountsResourceWithStreamingResponse, ) from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven from ...._utils import ( @@ -55,29 +55,29 @@ from ....types.addressing.address_map_create_response import AddressMapCreateResponse from ....types.addressing.address_map_delete_response import AddressMapDeleteResponse -__all__ = ["AddressMaps", "AsyncAddressMaps"] +__all__ = ["AddressMapsResource", "AsyncAddressMapsResource"] -class AddressMaps(SyncAPIResource): +class AddressMapsResource(SyncAPIResource): @cached_property - def accounts(self) -> Accounts: - return Accounts(self._client) + def accounts(self) -> AccountsResource: + return AccountsResource(self._client) @cached_property - def ips(self) -> IPs: - return IPs(self._client) + def ips(self) -> IPsResource: + return IPsResource(self._client) @cached_property - def zones(self) -> Zones: - return Zones(self._client) + def zones(self) -> ZonesResource: + return ZonesResource(self._client) @cached_property - def with_raw_response(self) -> AddressMapsWithRawResponse: - return AddressMapsWithRawResponse(self) + def with_raw_response(self) -> AddressMapsResourceWithRawResponse: + return AddressMapsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AddressMapsWithStreamingResponse: - return AddressMapsWithStreamingResponse(self) + def with_streaming_response(self) -> AddressMapsResourceWithStreamingResponse: + return AddressMapsResourceWithStreamingResponse(self) def create( self, @@ -329,26 +329,26 @@ def get( ) -class AsyncAddressMaps(AsyncAPIResource): +class AsyncAddressMapsResource(AsyncAPIResource): @cached_property - def accounts(self) -> AsyncAccounts: - return AsyncAccounts(self._client) + def accounts(self) -> AsyncAccountsResource: + return AsyncAccountsResource(self._client) @cached_property - def ips(self) -> AsyncIPs: - return AsyncIPs(self._client) + def ips(self) -> AsyncIPsResource: + return AsyncIPsResource(self._client) @cached_property - def zones(self) -> AsyncZones: - return AsyncZones(self._client) + def zones(self) -> AsyncZonesResource: + return AsyncZonesResource(self._client) @cached_property - def with_raw_response(self) -> AsyncAddressMapsWithRawResponse: - return AsyncAddressMapsWithRawResponse(self) + def with_raw_response(self) -> AsyncAddressMapsResourceWithRawResponse: + return AsyncAddressMapsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncAddressMapsWithStreamingResponse: - return AsyncAddressMapsWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncAddressMapsResourceWithStreamingResponse: + return AsyncAddressMapsResourceWithStreamingResponse(self) async def create( self, @@ -600,8 +600,8 @@ async def get( ) -class AddressMapsWithRawResponse: - def __init__(self, address_maps: AddressMaps) -> None: +class AddressMapsResourceWithRawResponse: + def __init__(self, address_maps: AddressMapsResource) -> None: self._address_maps = address_maps self.create = to_raw_response_wrapper( @@ -621,20 +621,20 @@ def __init__(self, address_maps: AddressMaps) -> None: ) @cached_property - def accounts(self) -> AccountsWithRawResponse: - return AccountsWithRawResponse(self._address_maps.accounts) + def accounts(self) -> AccountsResourceWithRawResponse: + return AccountsResourceWithRawResponse(self._address_maps.accounts) @cached_property - def ips(self) -> IPsWithRawResponse: - return IPsWithRawResponse(self._address_maps.ips) + def ips(self) -> IPsResourceWithRawResponse: + return IPsResourceWithRawResponse(self._address_maps.ips) @cached_property - def zones(self) -> ZonesWithRawResponse: - return ZonesWithRawResponse(self._address_maps.zones) + def zones(self) -> ZonesResourceWithRawResponse: + return ZonesResourceWithRawResponse(self._address_maps.zones) -class AsyncAddressMapsWithRawResponse: - def __init__(self, address_maps: AsyncAddressMaps) -> None: +class AsyncAddressMapsResourceWithRawResponse: + def __init__(self, address_maps: AsyncAddressMapsResource) -> None: self._address_maps = address_maps self.create = async_to_raw_response_wrapper( @@ -654,20 +654,20 @@ def __init__(self, address_maps: AsyncAddressMaps) -> None: ) @cached_property - def accounts(self) -> AsyncAccountsWithRawResponse: - return AsyncAccountsWithRawResponse(self._address_maps.accounts) + def accounts(self) -> AsyncAccountsResourceWithRawResponse: + return AsyncAccountsResourceWithRawResponse(self._address_maps.accounts) @cached_property - def ips(self) -> AsyncIPsWithRawResponse: - return AsyncIPsWithRawResponse(self._address_maps.ips) + def ips(self) -> AsyncIPsResourceWithRawResponse: + return AsyncIPsResourceWithRawResponse(self._address_maps.ips) @cached_property - def zones(self) -> AsyncZonesWithRawResponse: - return AsyncZonesWithRawResponse(self._address_maps.zones) + def zones(self) -> AsyncZonesResourceWithRawResponse: + return AsyncZonesResourceWithRawResponse(self._address_maps.zones) -class AddressMapsWithStreamingResponse: - def __init__(self, address_maps: AddressMaps) -> None: +class AddressMapsResourceWithStreamingResponse: + def __init__(self, address_maps: AddressMapsResource) -> None: self._address_maps = address_maps self.create = to_streamed_response_wrapper( @@ -687,20 +687,20 @@ def __init__(self, address_maps: AddressMaps) -> None: ) @cached_property - def accounts(self) -> AccountsWithStreamingResponse: - return AccountsWithStreamingResponse(self._address_maps.accounts) + def accounts(self) -> AccountsResourceWithStreamingResponse: + return AccountsResourceWithStreamingResponse(self._address_maps.accounts) @cached_property - def ips(self) -> IPsWithStreamingResponse: - return IPsWithStreamingResponse(self._address_maps.ips) + def ips(self) -> IPsResourceWithStreamingResponse: + return IPsResourceWithStreamingResponse(self._address_maps.ips) @cached_property - def zones(self) -> ZonesWithStreamingResponse: - return ZonesWithStreamingResponse(self._address_maps.zones) + def zones(self) -> ZonesResourceWithStreamingResponse: + return ZonesResourceWithStreamingResponse(self._address_maps.zones) -class AsyncAddressMapsWithStreamingResponse: - def __init__(self, address_maps: AsyncAddressMaps) -> None: +class AsyncAddressMapsResourceWithStreamingResponse: + def __init__(self, address_maps: AsyncAddressMapsResource) -> None: self._address_maps = address_maps self.create = async_to_streamed_response_wrapper( @@ -720,13 +720,13 @@ def __init__(self, address_maps: AsyncAddressMaps) -> None: ) @cached_property - def accounts(self) -> AsyncAccountsWithStreamingResponse: - return AsyncAccountsWithStreamingResponse(self._address_maps.accounts) + def accounts(self) -> AsyncAccountsResourceWithStreamingResponse: + return AsyncAccountsResourceWithStreamingResponse(self._address_maps.accounts) @cached_property - def ips(self) -> AsyncIPsWithStreamingResponse: - return AsyncIPsWithStreamingResponse(self._address_maps.ips) + def ips(self) -> AsyncIPsResourceWithStreamingResponse: + return AsyncIPsResourceWithStreamingResponse(self._address_maps.ips) @cached_property - def zones(self) -> AsyncZonesWithStreamingResponse: - return AsyncZonesWithStreamingResponse(self._address_maps.zones) + def zones(self) -> AsyncZonesResourceWithStreamingResponse: + return AsyncZonesResourceWithStreamingResponse(self._address_maps.zones) diff --git a/src/cloudflare/resources/addressing/address_maps/ips.py b/src/cloudflare/resources/addressing/address_maps/ips.py index 45f608af3fd..a6bb3f55c6c 100644 --- a/src/cloudflare/resources/addressing/address_maps/ips.py +++ b/src/cloudflare/resources/addressing/address_maps/ips.py @@ -27,17 +27,17 @@ from ....types.addressing.address_maps.ip_delete_response import IPDeleteResponse from ....types.addressing.address_maps.ip_update_response import IPUpdateResponse -__all__ = ["IPs", "AsyncIPs"] +__all__ = ["IPsResource", "AsyncIPsResource"] -class IPs(SyncAPIResource): +class IPsResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> IPsWithRawResponse: - return IPsWithRawResponse(self) + def with_raw_response(self) -> IPsResourceWithRawResponse: + return IPsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> IPsWithStreamingResponse: - return IPsWithStreamingResponse(self) + def with_streaming_response(self) -> IPsResourceWithStreamingResponse: + return IPsResourceWithStreamingResponse(self) def update( self, @@ -142,14 +142,14 @@ def delete( ) -class AsyncIPs(AsyncAPIResource): +class AsyncIPsResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncIPsWithRawResponse: - return AsyncIPsWithRawResponse(self) + def with_raw_response(self) -> AsyncIPsResourceWithRawResponse: + return AsyncIPsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncIPsWithStreamingResponse: - return AsyncIPsWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncIPsResourceWithStreamingResponse: + return AsyncIPsResourceWithStreamingResponse(self) async def update( self, @@ -254,8 +254,8 @@ async def delete( ) -class IPsWithRawResponse: - def __init__(self, ips: IPs) -> None: +class IPsResourceWithRawResponse: + def __init__(self, ips: IPsResource) -> None: self._ips = ips self.update = to_raw_response_wrapper( @@ -266,8 +266,8 @@ def __init__(self, ips: IPs) -> None: ) -class AsyncIPsWithRawResponse: - def __init__(self, ips: AsyncIPs) -> None: +class AsyncIPsResourceWithRawResponse: + def __init__(self, ips: AsyncIPsResource) -> None: self._ips = ips self.update = async_to_raw_response_wrapper( @@ -278,8 +278,8 @@ def __init__(self, ips: AsyncIPs) -> None: ) -class IPsWithStreamingResponse: - def __init__(self, ips: IPs) -> None: +class IPsResourceWithStreamingResponse: + def __init__(self, ips: IPsResource) -> None: self._ips = ips self.update = to_streamed_response_wrapper( @@ -290,8 +290,8 @@ def __init__(self, ips: IPs) -> None: ) -class AsyncIPsWithStreamingResponse: - def __init__(self, ips: AsyncIPs) -> None: +class AsyncIPsResourceWithStreamingResponse: + def __init__(self, ips: AsyncIPsResource) -> None: self._ips = ips self.update = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/addressing/address_maps/zones.py b/src/cloudflare/resources/addressing/address_maps/zones.py index 20bb7b90f40..c3f12537e44 100644 --- a/src/cloudflare/resources/addressing/address_maps/zones.py +++ b/src/cloudflare/resources/addressing/address_maps/zones.py @@ -27,17 +27,17 @@ from ....types.addressing.address_maps.zone_delete_response import ZoneDeleteResponse from ....types.addressing.address_maps.zone_update_response import ZoneUpdateResponse -__all__ = ["Zones", "AsyncZones"] +__all__ = ["ZonesResource", "AsyncZonesResource"] -class Zones(SyncAPIResource): +class ZonesResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> ZonesWithRawResponse: - return ZonesWithRawResponse(self) + def with_raw_response(self) -> ZonesResourceWithRawResponse: + return ZonesResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> ZonesWithStreamingResponse: - return ZonesWithStreamingResponse(self) + def with_streaming_response(self) -> ZonesResourceWithStreamingResponse: + return ZonesResourceWithStreamingResponse(self) def update( self, @@ -142,14 +142,14 @@ def delete( ) -class AsyncZones(AsyncAPIResource): +class AsyncZonesResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncZonesWithRawResponse: - return AsyncZonesWithRawResponse(self) + def with_raw_response(self) -> AsyncZonesResourceWithRawResponse: + return AsyncZonesResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncZonesWithStreamingResponse: - return AsyncZonesWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncZonesResourceWithStreamingResponse: + return AsyncZonesResourceWithStreamingResponse(self) async def update( self, @@ -254,8 +254,8 @@ async def delete( ) -class ZonesWithRawResponse: - def __init__(self, zones: Zones) -> None: +class ZonesResourceWithRawResponse: + def __init__(self, zones: ZonesResource) -> None: self._zones = zones self.update = to_raw_response_wrapper( @@ -266,8 +266,8 @@ def __init__(self, zones: Zones) -> None: ) -class AsyncZonesWithRawResponse: - def __init__(self, zones: AsyncZones) -> None: +class AsyncZonesResourceWithRawResponse: + def __init__(self, zones: AsyncZonesResource) -> None: self._zones = zones self.update = async_to_raw_response_wrapper( @@ -278,8 +278,8 @@ def __init__(self, zones: AsyncZones) -> None: ) -class ZonesWithStreamingResponse: - def __init__(self, zones: Zones) -> None: +class ZonesResourceWithStreamingResponse: + def __init__(self, zones: ZonesResource) -> None: self._zones = zones self.update = to_streamed_response_wrapper( @@ -290,8 +290,8 @@ def __init__(self, zones: Zones) -> None: ) -class AsyncZonesWithStreamingResponse: - def __init__(self, zones: AsyncZones) -> None: +class AsyncZonesResourceWithStreamingResponse: + def __init__(self, zones: AsyncZonesResource) -> None: self._zones = zones self.update = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/addressing/addressing.py b/src/cloudflare/resources/addressing/addressing.py index acc9f6e8ebb..c0e0cd3b374 100644 --- a/src/cloudflare/resources/addressing/addressing.py +++ b/src/cloudflare/resources/addressing/addressing.py @@ -3,177 +3,177 @@ from __future__ import annotations from .prefixes import ( - Prefixes, - AsyncPrefixes, - PrefixesWithRawResponse, - AsyncPrefixesWithRawResponse, - PrefixesWithStreamingResponse, - AsyncPrefixesWithStreamingResponse, + PrefixesResource, + AsyncPrefixesResource, + PrefixesResourceWithRawResponse, + AsyncPrefixesResourceWithRawResponse, + PrefixesResourceWithStreamingResponse, + AsyncPrefixesResourceWithStreamingResponse, ) from .services import ( - Services, - AsyncServices, - ServicesWithRawResponse, - AsyncServicesWithRawResponse, - ServicesWithStreamingResponse, - AsyncServicesWithStreamingResponse, + ServicesResource, + AsyncServicesResource, + ServicesResourceWithRawResponse, + AsyncServicesResourceWithRawResponse, + ServicesResourceWithStreamingResponse, + AsyncServicesResourceWithStreamingResponse, ) from ..._compat import cached_property from ..._resource import SyncAPIResource, AsyncAPIResource from .address_maps import ( - AddressMaps, - AsyncAddressMaps, - AddressMapsWithRawResponse, - AsyncAddressMapsWithRawResponse, - AddressMapsWithStreamingResponse, - AsyncAddressMapsWithStreamingResponse, + AddressMapsResource, + AsyncAddressMapsResource, + AddressMapsResourceWithRawResponse, + AsyncAddressMapsResourceWithRawResponse, + AddressMapsResourceWithStreamingResponse, + AsyncAddressMapsResourceWithStreamingResponse, ) from .loa_documents import ( - LOADocuments, - AsyncLOADocuments, - LOADocumentsWithRawResponse, - AsyncLOADocumentsWithRawResponse, - LOADocumentsWithStreamingResponse, - AsyncLOADocumentsWithStreamingResponse, + LOADocumentsResource, + AsyncLOADocumentsResource, + LOADocumentsResourceWithRawResponse, + AsyncLOADocumentsResourceWithRawResponse, + LOADocumentsResourceWithStreamingResponse, + AsyncLOADocumentsResourceWithStreamingResponse, ) -from .prefixes.prefixes import Prefixes, AsyncPrefixes -from .address_maps.address_maps import AddressMaps, AsyncAddressMaps -from .loa_documents.loa_documents import LOADocuments, AsyncLOADocuments +from .prefixes.prefixes import PrefixesResource, AsyncPrefixesResource +from .address_maps.address_maps import AddressMapsResource, AsyncAddressMapsResource +from .loa_documents.loa_documents import LOADocumentsResource, AsyncLOADocumentsResource -__all__ = ["Addressing", "AsyncAddressing"] +__all__ = ["AddressingResource", "AsyncAddressingResource"] -class Addressing(SyncAPIResource): +class AddressingResource(SyncAPIResource): @cached_property - def services(self) -> Services: - return Services(self._client) + def services(self) -> ServicesResource: + return ServicesResource(self._client) @cached_property - def address_maps(self) -> AddressMaps: - return AddressMaps(self._client) + def address_maps(self) -> AddressMapsResource: + return AddressMapsResource(self._client) @cached_property - def loa_documents(self) -> LOADocuments: - return LOADocuments(self._client) + def loa_documents(self) -> LOADocumentsResource: + return LOADocumentsResource(self._client) @cached_property - def prefixes(self) -> Prefixes: - return Prefixes(self._client) + def prefixes(self) -> PrefixesResource: + return PrefixesResource(self._client) @cached_property - def with_raw_response(self) -> AddressingWithRawResponse: - return AddressingWithRawResponse(self) + def with_raw_response(self) -> AddressingResourceWithRawResponse: + return AddressingResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AddressingWithStreamingResponse: - return AddressingWithStreamingResponse(self) + def with_streaming_response(self) -> AddressingResourceWithStreamingResponse: + return AddressingResourceWithStreamingResponse(self) -class AsyncAddressing(AsyncAPIResource): +class AsyncAddressingResource(AsyncAPIResource): @cached_property - def services(self) -> AsyncServices: - return AsyncServices(self._client) + def services(self) -> AsyncServicesResource: + return AsyncServicesResource(self._client) @cached_property - def address_maps(self) -> AsyncAddressMaps: - return AsyncAddressMaps(self._client) + def address_maps(self) -> AsyncAddressMapsResource: + return AsyncAddressMapsResource(self._client) @cached_property - def loa_documents(self) -> AsyncLOADocuments: - return AsyncLOADocuments(self._client) + def loa_documents(self) -> AsyncLOADocumentsResource: + return AsyncLOADocumentsResource(self._client) @cached_property - def prefixes(self) -> AsyncPrefixes: - return AsyncPrefixes(self._client) + def prefixes(self) -> AsyncPrefixesResource: + return AsyncPrefixesResource(self._client) @cached_property - def with_raw_response(self) -> AsyncAddressingWithRawResponse: - return AsyncAddressingWithRawResponse(self) + def with_raw_response(self) -> AsyncAddressingResourceWithRawResponse: + return AsyncAddressingResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncAddressingWithStreamingResponse: - return AsyncAddressingWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncAddressingResourceWithStreamingResponse: + return AsyncAddressingResourceWithStreamingResponse(self) -class AddressingWithRawResponse: - def __init__(self, addressing: Addressing) -> None: +class AddressingResourceWithRawResponse: + def __init__(self, addressing: AddressingResource) -> None: self._addressing = addressing @cached_property - def services(self) -> ServicesWithRawResponse: - return ServicesWithRawResponse(self._addressing.services) + def services(self) -> ServicesResourceWithRawResponse: + return ServicesResourceWithRawResponse(self._addressing.services) @cached_property - def address_maps(self) -> AddressMapsWithRawResponse: - return AddressMapsWithRawResponse(self._addressing.address_maps) + def address_maps(self) -> AddressMapsResourceWithRawResponse: + return AddressMapsResourceWithRawResponse(self._addressing.address_maps) @cached_property - def loa_documents(self) -> LOADocumentsWithRawResponse: - return LOADocumentsWithRawResponse(self._addressing.loa_documents) + def loa_documents(self) -> LOADocumentsResourceWithRawResponse: + return LOADocumentsResourceWithRawResponse(self._addressing.loa_documents) @cached_property - def prefixes(self) -> PrefixesWithRawResponse: - return PrefixesWithRawResponse(self._addressing.prefixes) + def prefixes(self) -> PrefixesResourceWithRawResponse: + return PrefixesResourceWithRawResponse(self._addressing.prefixes) -class AsyncAddressingWithRawResponse: - def __init__(self, addressing: AsyncAddressing) -> None: +class AsyncAddressingResourceWithRawResponse: + def __init__(self, addressing: AsyncAddressingResource) -> None: self._addressing = addressing @cached_property - def services(self) -> AsyncServicesWithRawResponse: - return AsyncServicesWithRawResponse(self._addressing.services) + def services(self) -> AsyncServicesResourceWithRawResponse: + return AsyncServicesResourceWithRawResponse(self._addressing.services) @cached_property - def address_maps(self) -> AsyncAddressMapsWithRawResponse: - return AsyncAddressMapsWithRawResponse(self._addressing.address_maps) + def address_maps(self) -> AsyncAddressMapsResourceWithRawResponse: + return AsyncAddressMapsResourceWithRawResponse(self._addressing.address_maps) @cached_property - def loa_documents(self) -> AsyncLOADocumentsWithRawResponse: - return AsyncLOADocumentsWithRawResponse(self._addressing.loa_documents) + def loa_documents(self) -> AsyncLOADocumentsResourceWithRawResponse: + return AsyncLOADocumentsResourceWithRawResponse(self._addressing.loa_documents) @cached_property - def prefixes(self) -> AsyncPrefixesWithRawResponse: - return AsyncPrefixesWithRawResponse(self._addressing.prefixes) + def prefixes(self) -> AsyncPrefixesResourceWithRawResponse: + return AsyncPrefixesResourceWithRawResponse(self._addressing.prefixes) -class AddressingWithStreamingResponse: - def __init__(self, addressing: Addressing) -> None: +class AddressingResourceWithStreamingResponse: + def __init__(self, addressing: AddressingResource) -> None: self._addressing = addressing @cached_property - def services(self) -> ServicesWithStreamingResponse: - return ServicesWithStreamingResponse(self._addressing.services) + def services(self) -> ServicesResourceWithStreamingResponse: + return ServicesResourceWithStreamingResponse(self._addressing.services) @cached_property - def address_maps(self) -> AddressMapsWithStreamingResponse: - return AddressMapsWithStreamingResponse(self._addressing.address_maps) + def address_maps(self) -> AddressMapsResourceWithStreamingResponse: + return AddressMapsResourceWithStreamingResponse(self._addressing.address_maps) @cached_property - def loa_documents(self) -> LOADocumentsWithStreamingResponse: - return LOADocumentsWithStreamingResponse(self._addressing.loa_documents) + def loa_documents(self) -> LOADocumentsResourceWithStreamingResponse: + return LOADocumentsResourceWithStreamingResponse(self._addressing.loa_documents) @cached_property - def prefixes(self) -> PrefixesWithStreamingResponse: - return PrefixesWithStreamingResponse(self._addressing.prefixes) + def prefixes(self) -> PrefixesResourceWithStreamingResponse: + return PrefixesResourceWithStreamingResponse(self._addressing.prefixes) -class AsyncAddressingWithStreamingResponse: - def __init__(self, addressing: AsyncAddressing) -> None: +class AsyncAddressingResourceWithStreamingResponse: + def __init__(self, addressing: AsyncAddressingResource) -> None: self._addressing = addressing @cached_property - def services(self) -> AsyncServicesWithStreamingResponse: - return AsyncServicesWithStreamingResponse(self._addressing.services) + def services(self) -> AsyncServicesResourceWithStreamingResponse: + return AsyncServicesResourceWithStreamingResponse(self._addressing.services) @cached_property - def address_maps(self) -> AsyncAddressMapsWithStreamingResponse: - return AsyncAddressMapsWithStreamingResponse(self._addressing.address_maps) + def address_maps(self) -> AsyncAddressMapsResourceWithStreamingResponse: + return AsyncAddressMapsResourceWithStreamingResponse(self._addressing.address_maps) @cached_property - def loa_documents(self) -> AsyncLOADocumentsWithStreamingResponse: - return AsyncLOADocumentsWithStreamingResponse(self._addressing.loa_documents) + def loa_documents(self) -> AsyncLOADocumentsResourceWithStreamingResponse: + return AsyncLOADocumentsResourceWithStreamingResponse(self._addressing.loa_documents) @cached_property - def prefixes(self) -> AsyncPrefixesWithStreamingResponse: - return AsyncPrefixesWithStreamingResponse(self._addressing.prefixes) + def prefixes(self) -> AsyncPrefixesResourceWithStreamingResponse: + return AsyncPrefixesResourceWithStreamingResponse(self._addressing.prefixes) diff --git a/src/cloudflare/resources/addressing/loa_documents/__init__.py b/src/cloudflare/resources/addressing/loa_documents/__init__.py index 97ad83a5220..72f6dbba90c 100644 --- a/src/cloudflare/resources/addressing/loa_documents/__init__.py +++ b/src/cloudflare/resources/addressing/loa_documents/__init__.py @@ -1,33 +1,33 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from .downloads import ( - Downloads, - AsyncDownloads, - DownloadsWithRawResponse, - AsyncDownloadsWithRawResponse, - DownloadsWithStreamingResponse, - AsyncDownloadsWithStreamingResponse, + DownloadsResource, + AsyncDownloadsResource, + DownloadsResourceWithRawResponse, + AsyncDownloadsResourceWithRawResponse, + DownloadsResourceWithStreamingResponse, + AsyncDownloadsResourceWithStreamingResponse, ) from .loa_documents import ( - LOADocuments, - AsyncLOADocuments, - LOADocumentsWithRawResponse, - AsyncLOADocumentsWithRawResponse, - LOADocumentsWithStreamingResponse, - AsyncLOADocumentsWithStreamingResponse, + LOADocumentsResource, + AsyncLOADocumentsResource, + LOADocumentsResourceWithRawResponse, + AsyncLOADocumentsResourceWithRawResponse, + LOADocumentsResourceWithStreamingResponse, + AsyncLOADocumentsResourceWithStreamingResponse, ) __all__ = [ - "Downloads", - "AsyncDownloads", - "DownloadsWithRawResponse", - "AsyncDownloadsWithRawResponse", - "DownloadsWithStreamingResponse", - "AsyncDownloadsWithStreamingResponse", - "LOADocuments", - "AsyncLOADocuments", - "LOADocumentsWithRawResponse", - "AsyncLOADocumentsWithRawResponse", - "LOADocumentsWithStreamingResponse", - "AsyncLOADocumentsWithStreamingResponse", + "DownloadsResource", + "AsyncDownloadsResource", + "DownloadsResourceWithRawResponse", + "AsyncDownloadsResourceWithRawResponse", + "DownloadsResourceWithStreamingResponse", + "AsyncDownloadsResourceWithStreamingResponse", + "LOADocumentsResource", + "AsyncLOADocumentsResource", + "LOADocumentsResourceWithRawResponse", + "AsyncLOADocumentsResourceWithRawResponse", + "LOADocumentsResourceWithStreamingResponse", + "AsyncLOADocumentsResourceWithStreamingResponse", ] diff --git a/src/cloudflare/resources/addressing/loa_documents/downloads.py b/src/cloudflare/resources/addressing/loa_documents/downloads.py index 6a663672f66..b29d0888acd 100644 --- a/src/cloudflare/resources/addressing/loa_documents/downloads.py +++ b/src/cloudflare/resources/addressing/loa_documents/downloads.py @@ -19,17 +19,17 @@ make_request_options, ) -__all__ = ["Downloads", "AsyncDownloads"] +__all__ = ["DownloadsResource", "AsyncDownloadsResource"] -class Downloads(SyncAPIResource): +class DownloadsResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> DownloadsWithRawResponse: - return DownloadsWithRawResponse(self) + def with_raw_response(self) -> DownloadsResourceWithRawResponse: + return DownloadsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> DownloadsWithStreamingResponse: - return DownloadsWithStreamingResponse(self) + def with_streaming_response(self) -> DownloadsResourceWithStreamingResponse: + return DownloadsResourceWithStreamingResponse(self) def get( self, @@ -72,14 +72,14 @@ def get( ) -class AsyncDownloads(AsyncAPIResource): +class AsyncDownloadsResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncDownloadsWithRawResponse: - return AsyncDownloadsWithRawResponse(self) + def with_raw_response(self) -> AsyncDownloadsResourceWithRawResponse: + return AsyncDownloadsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncDownloadsWithStreamingResponse: - return AsyncDownloadsWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncDownloadsResourceWithStreamingResponse: + return AsyncDownloadsResourceWithStreamingResponse(self) async def get( self, @@ -122,8 +122,8 @@ async def get( ) -class DownloadsWithRawResponse: - def __init__(self, downloads: Downloads) -> None: +class DownloadsResourceWithRawResponse: + def __init__(self, downloads: DownloadsResource) -> None: self._downloads = downloads self.get = to_raw_response_wrapper( @@ -131,8 +131,8 @@ def __init__(self, downloads: Downloads) -> None: ) -class AsyncDownloadsWithRawResponse: - def __init__(self, downloads: AsyncDownloads) -> None: +class AsyncDownloadsResourceWithRawResponse: + def __init__(self, downloads: AsyncDownloadsResource) -> None: self._downloads = downloads self.get = async_to_raw_response_wrapper( @@ -140,8 +140,8 @@ def __init__(self, downloads: AsyncDownloads) -> None: ) -class DownloadsWithStreamingResponse: - def __init__(self, downloads: Downloads) -> None: +class DownloadsResourceWithStreamingResponse: + def __init__(self, downloads: DownloadsResource) -> None: self._downloads = downloads self.get = to_streamed_response_wrapper( @@ -149,8 +149,8 @@ def __init__(self, downloads: Downloads) -> None: ) -class AsyncDownloadsWithStreamingResponse: - def __init__(self, downloads: AsyncDownloads) -> None: +class AsyncDownloadsResourceWithStreamingResponse: + def __init__(self, downloads: AsyncDownloadsResource) -> None: self._downloads = downloads self.get = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/addressing/loa_documents/loa_documents.py b/src/cloudflare/resources/addressing/loa_documents/loa_documents.py index 9c9a28d9266..7080381886a 100644 --- a/src/cloudflare/resources/addressing/loa_documents/loa_documents.py +++ b/src/cloudflare/resources/addressing/loa_documents/loa_documents.py @@ -12,12 +12,12 @@ async_maybe_transform, ) from .downloads import ( - Downloads, - AsyncDownloads, - DownloadsWithRawResponse, - AsyncDownloadsWithRawResponse, - DownloadsWithStreamingResponse, - AsyncDownloadsWithStreamingResponse, + DownloadsResource, + AsyncDownloadsResource, + DownloadsResourceWithRawResponse, + AsyncDownloadsResourceWithRawResponse, + DownloadsResourceWithStreamingResponse, + AsyncDownloadsResourceWithStreamingResponse, ) from ...._compat import cached_property from ...._resource import SyncAPIResource, AsyncAPIResource @@ -34,21 +34,21 @@ from ....types.addressing import loa_document_create_params from ....types.addressing.loa_document_create_response import LOADocumentCreateResponse -__all__ = ["LOADocuments", "AsyncLOADocuments"] +__all__ = ["LOADocumentsResource", "AsyncLOADocumentsResource"] -class LOADocuments(SyncAPIResource): +class LOADocumentsResource(SyncAPIResource): @cached_property - def downloads(self) -> Downloads: - return Downloads(self._client) + def downloads(self) -> DownloadsResource: + return DownloadsResource(self._client) @cached_property - def with_raw_response(self) -> LOADocumentsWithRawResponse: - return LOADocumentsWithRawResponse(self) + def with_raw_response(self) -> LOADocumentsResourceWithRawResponse: + return LOADocumentsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> LOADocumentsWithStreamingResponse: - return LOADocumentsWithStreamingResponse(self) + def with_streaming_response(self) -> LOADocumentsResourceWithStreamingResponse: + return LOADocumentsResourceWithStreamingResponse(self) def create( self, @@ -94,18 +94,18 @@ def create( ) -class AsyncLOADocuments(AsyncAPIResource): +class AsyncLOADocumentsResource(AsyncAPIResource): @cached_property - def downloads(self) -> AsyncDownloads: - return AsyncDownloads(self._client) + def downloads(self) -> AsyncDownloadsResource: + return AsyncDownloadsResource(self._client) @cached_property - def with_raw_response(self) -> AsyncLOADocumentsWithRawResponse: - return AsyncLOADocumentsWithRawResponse(self) + def with_raw_response(self) -> AsyncLOADocumentsResourceWithRawResponse: + return AsyncLOADocumentsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncLOADocumentsWithStreamingResponse: - return AsyncLOADocumentsWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncLOADocumentsResourceWithStreamingResponse: + return AsyncLOADocumentsResourceWithStreamingResponse(self) async def create( self, @@ -153,8 +153,8 @@ async def create( ) -class LOADocumentsWithRawResponse: - def __init__(self, loa_documents: LOADocuments) -> None: +class LOADocumentsResourceWithRawResponse: + def __init__(self, loa_documents: LOADocumentsResource) -> None: self._loa_documents = loa_documents self.create = to_raw_response_wrapper( @@ -162,12 +162,12 @@ def __init__(self, loa_documents: LOADocuments) -> None: ) @cached_property - def downloads(self) -> DownloadsWithRawResponse: - return DownloadsWithRawResponse(self._loa_documents.downloads) + def downloads(self) -> DownloadsResourceWithRawResponse: + return DownloadsResourceWithRawResponse(self._loa_documents.downloads) -class AsyncLOADocumentsWithRawResponse: - def __init__(self, loa_documents: AsyncLOADocuments) -> None: +class AsyncLOADocumentsResourceWithRawResponse: + def __init__(self, loa_documents: AsyncLOADocumentsResource) -> None: self._loa_documents = loa_documents self.create = async_to_raw_response_wrapper( @@ -175,12 +175,12 @@ def __init__(self, loa_documents: AsyncLOADocuments) -> None: ) @cached_property - def downloads(self) -> AsyncDownloadsWithRawResponse: - return AsyncDownloadsWithRawResponse(self._loa_documents.downloads) + def downloads(self) -> AsyncDownloadsResourceWithRawResponse: + return AsyncDownloadsResourceWithRawResponse(self._loa_documents.downloads) -class LOADocumentsWithStreamingResponse: - def __init__(self, loa_documents: LOADocuments) -> None: +class LOADocumentsResourceWithStreamingResponse: + def __init__(self, loa_documents: LOADocumentsResource) -> None: self._loa_documents = loa_documents self.create = to_streamed_response_wrapper( @@ -188,12 +188,12 @@ def __init__(self, loa_documents: LOADocuments) -> None: ) @cached_property - def downloads(self) -> DownloadsWithStreamingResponse: - return DownloadsWithStreamingResponse(self._loa_documents.downloads) + def downloads(self) -> DownloadsResourceWithStreamingResponse: + return DownloadsResourceWithStreamingResponse(self._loa_documents.downloads) -class AsyncLOADocumentsWithStreamingResponse: - def __init__(self, loa_documents: AsyncLOADocuments) -> None: +class AsyncLOADocumentsResourceWithStreamingResponse: + def __init__(self, loa_documents: AsyncLOADocumentsResource) -> None: self._loa_documents = loa_documents self.create = async_to_streamed_response_wrapper( @@ -201,5 +201,5 @@ def __init__(self, loa_documents: AsyncLOADocuments) -> None: ) @cached_property - def downloads(self) -> AsyncDownloadsWithStreamingResponse: - return AsyncDownloadsWithStreamingResponse(self._loa_documents.downloads) + def downloads(self) -> AsyncDownloadsResourceWithStreamingResponse: + return AsyncDownloadsResourceWithStreamingResponse(self._loa_documents.downloads) diff --git a/src/cloudflare/resources/addressing/prefixes/__init__.py b/src/cloudflare/resources/addressing/prefixes/__init__.py index 59a101dad99..baf5dcefd16 100644 --- a/src/cloudflare/resources/addressing/prefixes/__init__.py +++ b/src/cloudflare/resources/addressing/prefixes/__init__.py @@ -1,47 +1,47 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from .bgp import ( - BGP, - AsyncBGP, - BGPWithRawResponse, - AsyncBGPWithRawResponse, - BGPWithStreamingResponse, - AsyncBGPWithStreamingResponse, + BGPResource, + AsyncBGPResource, + BGPResourceWithRawResponse, + AsyncBGPResourceWithRawResponse, + BGPResourceWithStreamingResponse, + AsyncBGPResourceWithStreamingResponse, ) from .prefixes import ( - Prefixes, - AsyncPrefixes, - PrefixesWithRawResponse, - AsyncPrefixesWithRawResponse, - PrefixesWithStreamingResponse, - AsyncPrefixesWithStreamingResponse, + PrefixesResource, + AsyncPrefixesResource, + PrefixesResourceWithRawResponse, + AsyncPrefixesResourceWithRawResponse, + PrefixesResourceWithStreamingResponse, + AsyncPrefixesResourceWithStreamingResponse, ) from .delegations import ( - Delegations, - AsyncDelegations, - DelegationsWithRawResponse, - AsyncDelegationsWithRawResponse, - DelegationsWithStreamingResponse, - AsyncDelegationsWithStreamingResponse, + DelegationsResource, + AsyncDelegationsResource, + DelegationsResourceWithRawResponse, + AsyncDelegationsResourceWithRawResponse, + DelegationsResourceWithStreamingResponse, + AsyncDelegationsResourceWithStreamingResponse, ) __all__ = [ - "BGP", - "AsyncBGP", - "BGPWithRawResponse", - "AsyncBGPWithRawResponse", - "BGPWithStreamingResponse", - "AsyncBGPWithStreamingResponse", - "Delegations", - "AsyncDelegations", - "DelegationsWithRawResponse", - "AsyncDelegationsWithRawResponse", - "DelegationsWithStreamingResponse", - "AsyncDelegationsWithStreamingResponse", - "Prefixes", - "AsyncPrefixes", - "PrefixesWithRawResponse", - "AsyncPrefixesWithRawResponse", - "PrefixesWithStreamingResponse", - "AsyncPrefixesWithStreamingResponse", + "BGPResource", + "AsyncBGPResource", + "BGPResourceWithRawResponse", + "AsyncBGPResourceWithRawResponse", + "BGPResourceWithStreamingResponse", + "AsyncBGPResourceWithStreamingResponse", + "DelegationsResource", + "AsyncDelegationsResource", + "DelegationsResourceWithRawResponse", + "AsyncDelegationsResourceWithRawResponse", + "DelegationsResourceWithStreamingResponse", + "AsyncDelegationsResourceWithStreamingResponse", + "PrefixesResource", + "AsyncPrefixesResource", + "PrefixesResourceWithRawResponse", + "AsyncPrefixesResourceWithRawResponse", + "PrefixesResourceWithStreamingResponse", + "AsyncPrefixesResourceWithStreamingResponse", ] diff --git a/src/cloudflare/resources/addressing/prefixes/bgp/__init__.py b/src/cloudflare/resources/addressing/prefixes/bgp/__init__.py index e4e13b859a5..8c3709d72cc 100644 --- a/src/cloudflare/resources/addressing/prefixes/bgp/__init__.py +++ b/src/cloudflare/resources/addressing/prefixes/bgp/__init__.py @@ -1,61 +1,61 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from .bgp import ( - BGP, - AsyncBGP, - BGPWithRawResponse, - AsyncBGPWithRawResponse, - BGPWithStreamingResponse, - AsyncBGPWithStreamingResponse, + BGPResource, + AsyncBGPResource, + BGPResourceWithRawResponse, + AsyncBGPResourceWithRawResponse, + BGPResourceWithStreamingResponse, + AsyncBGPResourceWithStreamingResponse, ) from .bindings import ( - Bindings, - AsyncBindings, - BindingsWithRawResponse, - AsyncBindingsWithRawResponse, - BindingsWithStreamingResponse, - AsyncBindingsWithStreamingResponse, + BindingsResource, + AsyncBindingsResource, + BindingsResourceWithRawResponse, + AsyncBindingsResourceWithRawResponse, + BindingsResourceWithStreamingResponse, + AsyncBindingsResourceWithStreamingResponse, ) from .prefixes import ( - Prefixes, - AsyncPrefixes, - PrefixesWithRawResponse, - AsyncPrefixesWithRawResponse, - PrefixesWithStreamingResponse, - AsyncPrefixesWithStreamingResponse, + PrefixesResource, + AsyncPrefixesResource, + PrefixesResourceWithRawResponse, + AsyncPrefixesResourceWithRawResponse, + PrefixesResourceWithStreamingResponse, + AsyncPrefixesResourceWithStreamingResponse, ) from .statuses import ( - Statuses, - AsyncStatuses, - StatusesWithRawResponse, - AsyncStatusesWithRawResponse, - StatusesWithStreamingResponse, - AsyncStatusesWithStreamingResponse, + StatusesResource, + AsyncStatusesResource, + StatusesResourceWithRawResponse, + AsyncStatusesResourceWithRawResponse, + StatusesResourceWithStreamingResponse, + AsyncStatusesResourceWithStreamingResponse, ) __all__ = [ - "Bindings", - "AsyncBindings", - "BindingsWithRawResponse", - "AsyncBindingsWithRawResponse", - "BindingsWithStreamingResponse", - "AsyncBindingsWithStreamingResponse", - "Prefixes", - "AsyncPrefixes", - "PrefixesWithRawResponse", - "AsyncPrefixesWithRawResponse", - "PrefixesWithStreamingResponse", - "AsyncPrefixesWithStreamingResponse", - "Statuses", - "AsyncStatuses", - "StatusesWithRawResponse", - "AsyncStatusesWithRawResponse", - "StatusesWithStreamingResponse", - "AsyncStatusesWithStreamingResponse", - "BGP", - "AsyncBGP", - "BGPWithRawResponse", - "AsyncBGPWithRawResponse", - "BGPWithStreamingResponse", - "AsyncBGPWithStreamingResponse", + "BindingsResource", + "AsyncBindingsResource", + "BindingsResourceWithRawResponse", + "AsyncBindingsResourceWithRawResponse", + "BindingsResourceWithStreamingResponse", + "AsyncBindingsResourceWithStreamingResponse", + "PrefixesResource", + "AsyncPrefixesResource", + "PrefixesResourceWithRawResponse", + "AsyncPrefixesResourceWithRawResponse", + "PrefixesResourceWithStreamingResponse", + "AsyncPrefixesResourceWithStreamingResponse", + "StatusesResource", + "AsyncStatusesResource", + "StatusesResourceWithRawResponse", + "AsyncStatusesResourceWithRawResponse", + "StatusesResourceWithStreamingResponse", + "AsyncStatusesResourceWithStreamingResponse", + "BGPResource", + "AsyncBGPResource", + "BGPResourceWithRawResponse", + "AsyncBGPResourceWithRawResponse", + "BGPResourceWithStreamingResponse", + "AsyncBGPResourceWithStreamingResponse", ] diff --git a/src/cloudflare/resources/addressing/prefixes/bgp/bgp.py b/src/cloudflare/resources/addressing/prefixes/bgp/bgp.py index 739d3def292..4b5ec4fa6d6 100644 --- a/src/cloudflare/resources/addressing/prefixes/bgp/bgp.py +++ b/src/cloudflare/resources/addressing/prefixes/bgp/bgp.py @@ -3,142 +3,142 @@ from __future__ import annotations from .bindings import ( - Bindings, - AsyncBindings, - BindingsWithRawResponse, - AsyncBindingsWithRawResponse, - BindingsWithStreamingResponse, - AsyncBindingsWithStreamingResponse, + BindingsResource, + AsyncBindingsResource, + BindingsResourceWithRawResponse, + AsyncBindingsResourceWithRawResponse, + BindingsResourceWithStreamingResponse, + AsyncBindingsResourceWithStreamingResponse, ) from .prefixes import ( - Prefixes, - AsyncPrefixes, - PrefixesWithRawResponse, - AsyncPrefixesWithRawResponse, - PrefixesWithStreamingResponse, - AsyncPrefixesWithStreamingResponse, + PrefixesResource, + AsyncPrefixesResource, + PrefixesResourceWithRawResponse, + AsyncPrefixesResourceWithRawResponse, + PrefixesResourceWithStreamingResponse, + AsyncPrefixesResourceWithStreamingResponse, ) from .statuses import ( - Statuses, - AsyncStatuses, - StatusesWithRawResponse, - AsyncStatusesWithRawResponse, - StatusesWithStreamingResponse, - AsyncStatusesWithStreamingResponse, + StatusesResource, + AsyncStatusesResource, + StatusesResourceWithRawResponse, + AsyncStatusesResourceWithRawResponse, + StatusesResourceWithStreamingResponse, + AsyncStatusesResourceWithStreamingResponse, ) from ....._compat import cached_property from ....._resource import SyncAPIResource, AsyncAPIResource -__all__ = ["BGP", "AsyncBGP"] +__all__ = ["BGPResource", "AsyncBGPResource"] -class BGP(SyncAPIResource): +class BGPResource(SyncAPIResource): @cached_property - def bindings(self) -> Bindings: - return Bindings(self._client) + def bindings(self) -> BindingsResource: + return BindingsResource(self._client) @cached_property - def prefixes(self) -> Prefixes: - return Prefixes(self._client) + def prefixes(self) -> PrefixesResource: + return PrefixesResource(self._client) @cached_property - def statuses(self) -> Statuses: - return Statuses(self._client) + def statuses(self) -> StatusesResource: + return StatusesResource(self._client) @cached_property - def with_raw_response(self) -> BGPWithRawResponse: - return BGPWithRawResponse(self) + def with_raw_response(self) -> BGPResourceWithRawResponse: + return BGPResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> BGPWithStreamingResponse: - return BGPWithStreamingResponse(self) + def with_streaming_response(self) -> BGPResourceWithStreamingResponse: + return BGPResourceWithStreamingResponse(self) -class AsyncBGP(AsyncAPIResource): +class AsyncBGPResource(AsyncAPIResource): @cached_property - def bindings(self) -> AsyncBindings: - return AsyncBindings(self._client) + def bindings(self) -> AsyncBindingsResource: + return AsyncBindingsResource(self._client) @cached_property - def prefixes(self) -> AsyncPrefixes: - return AsyncPrefixes(self._client) + def prefixes(self) -> AsyncPrefixesResource: + return AsyncPrefixesResource(self._client) @cached_property - def statuses(self) -> AsyncStatuses: - return AsyncStatuses(self._client) + def statuses(self) -> AsyncStatusesResource: + return AsyncStatusesResource(self._client) @cached_property - def with_raw_response(self) -> AsyncBGPWithRawResponse: - return AsyncBGPWithRawResponse(self) + def with_raw_response(self) -> AsyncBGPResourceWithRawResponse: + return AsyncBGPResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncBGPWithStreamingResponse: - return AsyncBGPWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncBGPResourceWithStreamingResponse: + return AsyncBGPResourceWithStreamingResponse(self) -class BGPWithRawResponse: - def __init__(self, bgp: BGP) -> None: +class BGPResourceWithRawResponse: + def __init__(self, bgp: BGPResource) -> None: self._bgp = bgp @cached_property - def bindings(self) -> BindingsWithRawResponse: - return BindingsWithRawResponse(self._bgp.bindings) + def bindings(self) -> BindingsResourceWithRawResponse: + return BindingsResourceWithRawResponse(self._bgp.bindings) @cached_property - def prefixes(self) -> PrefixesWithRawResponse: - return PrefixesWithRawResponse(self._bgp.prefixes) + def prefixes(self) -> PrefixesResourceWithRawResponse: + return PrefixesResourceWithRawResponse(self._bgp.prefixes) @cached_property - def statuses(self) -> StatusesWithRawResponse: - return StatusesWithRawResponse(self._bgp.statuses) + def statuses(self) -> StatusesResourceWithRawResponse: + return StatusesResourceWithRawResponse(self._bgp.statuses) -class AsyncBGPWithRawResponse: - def __init__(self, bgp: AsyncBGP) -> None: +class AsyncBGPResourceWithRawResponse: + def __init__(self, bgp: AsyncBGPResource) -> None: self._bgp = bgp @cached_property - def bindings(self) -> AsyncBindingsWithRawResponse: - return AsyncBindingsWithRawResponse(self._bgp.bindings) + def bindings(self) -> AsyncBindingsResourceWithRawResponse: + return AsyncBindingsResourceWithRawResponse(self._bgp.bindings) @cached_property - def prefixes(self) -> AsyncPrefixesWithRawResponse: - return AsyncPrefixesWithRawResponse(self._bgp.prefixes) + def prefixes(self) -> AsyncPrefixesResourceWithRawResponse: + return AsyncPrefixesResourceWithRawResponse(self._bgp.prefixes) @cached_property - def statuses(self) -> AsyncStatusesWithRawResponse: - return AsyncStatusesWithRawResponse(self._bgp.statuses) + def statuses(self) -> AsyncStatusesResourceWithRawResponse: + return AsyncStatusesResourceWithRawResponse(self._bgp.statuses) -class BGPWithStreamingResponse: - def __init__(self, bgp: BGP) -> None: +class BGPResourceWithStreamingResponse: + def __init__(self, bgp: BGPResource) -> None: self._bgp = bgp @cached_property - def bindings(self) -> BindingsWithStreamingResponse: - return BindingsWithStreamingResponse(self._bgp.bindings) + def bindings(self) -> BindingsResourceWithStreamingResponse: + return BindingsResourceWithStreamingResponse(self._bgp.bindings) @cached_property - def prefixes(self) -> PrefixesWithStreamingResponse: - return PrefixesWithStreamingResponse(self._bgp.prefixes) + def prefixes(self) -> PrefixesResourceWithStreamingResponse: + return PrefixesResourceWithStreamingResponse(self._bgp.prefixes) @cached_property - def statuses(self) -> StatusesWithStreamingResponse: - return StatusesWithStreamingResponse(self._bgp.statuses) + def statuses(self) -> StatusesResourceWithStreamingResponse: + return StatusesResourceWithStreamingResponse(self._bgp.statuses) -class AsyncBGPWithStreamingResponse: - def __init__(self, bgp: AsyncBGP) -> None: +class AsyncBGPResourceWithStreamingResponse: + def __init__(self, bgp: AsyncBGPResource) -> None: self._bgp = bgp @cached_property - def bindings(self) -> AsyncBindingsWithStreamingResponse: - return AsyncBindingsWithStreamingResponse(self._bgp.bindings) + def bindings(self) -> AsyncBindingsResourceWithStreamingResponse: + return AsyncBindingsResourceWithStreamingResponse(self._bgp.bindings) @cached_property - def prefixes(self) -> AsyncPrefixesWithStreamingResponse: - return AsyncPrefixesWithStreamingResponse(self._bgp.prefixes) + def prefixes(self) -> AsyncPrefixesResourceWithStreamingResponse: + return AsyncPrefixesResourceWithStreamingResponse(self._bgp.prefixes) @cached_property - def statuses(self) -> AsyncStatusesWithStreamingResponse: - return AsyncStatusesWithStreamingResponse(self._bgp.statuses) + def statuses(self) -> AsyncStatusesResourceWithStreamingResponse: + return AsyncStatusesResourceWithStreamingResponse(self._bgp.statuses) diff --git a/src/cloudflare/resources/addressing/prefixes/bgp/bindings.py b/src/cloudflare/resources/addressing/prefixes/bgp/bindings.py index 57b7074c31b..ffa7d4bda3d 100644 --- a/src/cloudflare/resources/addressing/prefixes/bgp/bindings.py +++ b/src/cloudflare/resources/addressing/prefixes/bgp/bindings.py @@ -29,17 +29,17 @@ from .....types.addressing.prefixes.bgp.service_binding import ServiceBinding from .....types.addressing.prefixes.bgp.binding_delete_response import BindingDeleteResponse -__all__ = ["Bindings", "AsyncBindings"] +__all__ = ["BindingsResource", "AsyncBindingsResource"] -class Bindings(SyncAPIResource): +class BindingsResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> BindingsWithRawResponse: - return BindingsWithRawResponse(self) + def with_raw_response(self) -> BindingsResourceWithRawResponse: + return BindingsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> BindingsWithStreamingResponse: - return BindingsWithStreamingResponse(self) + def with_streaming_response(self) -> BindingsResourceWithStreamingResponse: + return BindingsResourceWithStreamingResponse(self) def create( self, @@ -243,14 +243,14 @@ def get( ) -class AsyncBindings(AsyncAPIResource): +class AsyncBindingsResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncBindingsWithRawResponse: - return AsyncBindingsWithRawResponse(self) + def with_raw_response(self) -> AsyncBindingsResourceWithRawResponse: + return AsyncBindingsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncBindingsWithStreamingResponse: - return AsyncBindingsWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncBindingsResourceWithStreamingResponse: + return AsyncBindingsResourceWithStreamingResponse(self) async def create( self, @@ -454,8 +454,8 @@ async def get( ) -class BindingsWithRawResponse: - def __init__(self, bindings: Bindings) -> None: +class BindingsResourceWithRawResponse: + def __init__(self, bindings: BindingsResource) -> None: self._bindings = bindings self.create = to_raw_response_wrapper( @@ -472,8 +472,8 @@ def __init__(self, bindings: Bindings) -> None: ) -class AsyncBindingsWithRawResponse: - def __init__(self, bindings: AsyncBindings) -> None: +class AsyncBindingsResourceWithRawResponse: + def __init__(self, bindings: AsyncBindingsResource) -> None: self._bindings = bindings self.create = async_to_raw_response_wrapper( @@ -490,8 +490,8 @@ def __init__(self, bindings: AsyncBindings) -> None: ) -class BindingsWithStreamingResponse: - def __init__(self, bindings: Bindings) -> None: +class BindingsResourceWithStreamingResponse: + def __init__(self, bindings: BindingsResource) -> None: self._bindings = bindings self.create = to_streamed_response_wrapper( @@ -508,8 +508,8 @@ def __init__(self, bindings: Bindings) -> None: ) -class AsyncBindingsWithStreamingResponse: - def __init__(self, bindings: AsyncBindings) -> None: +class AsyncBindingsResourceWithStreamingResponse: + def __init__(self, bindings: AsyncBindingsResource) -> None: self._bindings = bindings self.create = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/addressing/prefixes/bgp/prefixes.py b/src/cloudflare/resources/addressing/prefixes/bgp/prefixes.py index 8615ab4cfce..fc337311031 100644 --- a/src/cloudflare/resources/addressing/prefixes/bgp/prefixes.py +++ b/src/cloudflare/resources/addressing/prefixes/bgp/prefixes.py @@ -28,17 +28,17 @@ from .....types.addressing.prefixes.bgp import prefix_edit_params from .....types.addressing.prefixes.bgp.bgp_prefix import BGPPrefix -__all__ = ["Prefixes", "AsyncPrefixes"] +__all__ = ["PrefixesResource", "AsyncPrefixesResource"] -class Prefixes(SyncAPIResource): +class PrefixesResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> PrefixesWithRawResponse: - return PrefixesWithRawResponse(self) + def with_raw_response(self) -> PrefixesResourceWithRawResponse: + return PrefixesResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> PrefixesWithStreamingResponse: - return PrefixesWithStreamingResponse(self) + def with_streaming_response(self) -> PrefixesResourceWithStreamingResponse: + return PrefixesResourceWithStreamingResponse(self) def list( self, @@ -187,14 +187,14 @@ def get( ) -class AsyncPrefixes(AsyncAPIResource): +class AsyncPrefixesResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncPrefixesWithRawResponse: - return AsyncPrefixesWithRawResponse(self) + def with_raw_response(self) -> AsyncPrefixesResourceWithRawResponse: + return AsyncPrefixesResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncPrefixesWithStreamingResponse: - return AsyncPrefixesWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncPrefixesResourceWithStreamingResponse: + return AsyncPrefixesResourceWithStreamingResponse(self) def list( self, @@ -343,8 +343,8 @@ async def get( ) -class PrefixesWithRawResponse: - def __init__(self, prefixes: Prefixes) -> None: +class PrefixesResourceWithRawResponse: + def __init__(self, prefixes: PrefixesResource) -> None: self._prefixes = prefixes self.list = to_raw_response_wrapper( @@ -358,8 +358,8 @@ def __init__(self, prefixes: Prefixes) -> None: ) -class AsyncPrefixesWithRawResponse: - def __init__(self, prefixes: AsyncPrefixes) -> None: +class AsyncPrefixesResourceWithRawResponse: + def __init__(self, prefixes: AsyncPrefixesResource) -> None: self._prefixes = prefixes self.list = async_to_raw_response_wrapper( @@ -373,8 +373,8 @@ def __init__(self, prefixes: AsyncPrefixes) -> None: ) -class PrefixesWithStreamingResponse: - def __init__(self, prefixes: Prefixes) -> None: +class PrefixesResourceWithStreamingResponse: + def __init__(self, prefixes: PrefixesResource) -> None: self._prefixes = prefixes self.list = to_streamed_response_wrapper( @@ -388,8 +388,8 @@ def __init__(self, prefixes: Prefixes) -> None: ) -class AsyncPrefixesWithStreamingResponse: - def __init__(self, prefixes: AsyncPrefixes) -> None: +class AsyncPrefixesResourceWithStreamingResponse: + def __init__(self, prefixes: AsyncPrefixesResource) -> None: self._prefixes = prefixes self.list = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/addressing/prefixes/bgp/statuses.py b/src/cloudflare/resources/addressing/prefixes/bgp/statuses.py index d580df2f18f..aca3d146bc4 100644 --- a/src/cloudflare/resources/addressing/prefixes/bgp/statuses.py +++ b/src/cloudflare/resources/addressing/prefixes/bgp/statuses.py @@ -27,17 +27,17 @@ from .....types.addressing.prefixes.bgp.status_get_response import StatusGetResponse from .....types.addressing.prefixes.bgp.status_edit_response import StatusEditResponse -__all__ = ["Statuses", "AsyncStatuses"] +__all__ = ["StatusesResource", "AsyncStatusesResource"] -class Statuses(SyncAPIResource): +class StatusesResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> StatusesWithRawResponse: - return StatusesWithRawResponse(self) + def with_raw_response(self) -> StatusesResourceWithRawResponse: + return StatusesResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> StatusesWithStreamingResponse: - return StatusesWithStreamingResponse(self) + def with_streaming_response(self) -> StatusesResourceWithStreamingResponse: + return StatusesResourceWithStreamingResponse(self) def edit( self, @@ -132,14 +132,14 @@ def get( ) -class AsyncStatuses(AsyncAPIResource): +class AsyncStatusesResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncStatusesWithRawResponse: - return AsyncStatusesWithRawResponse(self) + def with_raw_response(self) -> AsyncStatusesResourceWithRawResponse: + return AsyncStatusesResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncStatusesWithStreamingResponse: - return AsyncStatusesWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncStatusesResourceWithStreamingResponse: + return AsyncStatusesResourceWithStreamingResponse(self) async def edit( self, @@ -234,8 +234,8 @@ async def get( ) -class StatusesWithRawResponse: - def __init__(self, statuses: Statuses) -> None: +class StatusesResourceWithRawResponse: + def __init__(self, statuses: StatusesResource) -> None: self._statuses = statuses self.edit = to_raw_response_wrapper( @@ -246,8 +246,8 @@ def __init__(self, statuses: Statuses) -> None: ) -class AsyncStatusesWithRawResponse: - def __init__(self, statuses: AsyncStatuses) -> None: +class AsyncStatusesResourceWithRawResponse: + def __init__(self, statuses: AsyncStatusesResource) -> None: self._statuses = statuses self.edit = async_to_raw_response_wrapper( @@ -258,8 +258,8 @@ def __init__(self, statuses: AsyncStatuses) -> None: ) -class StatusesWithStreamingResponse: - def __init__(self, statuses: Statuses) -> None: +class StatusesResourceWithStreamingResponse: + def __init__(self, statuses: StatusesResource) -> None: self._statuses = statuses self.edit = to_streamed_response_wrapper( @@ -270,8 +270,8 @@ def __init__(self, statuses: Statuses) -> None: ) -class AsyncStatusesWithStreamingResponse: - def __init__(self, statuses: AsyncStatuses) -> None: +class AsyncStatusesResourceWithStreamingResponse: + def __init__(self, statuses: AsyncStatusesResource) -> None: self._statuses = statuses self.edit = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/addressing/prefixes/delegations.py b/src/cloudflare/resources/addressing/prefixes/delegations.py index b35bd3b27a1..f82a45a6b17 100644 --- a/src/cloudflare/resources/addressing/prefixes/delegations.py +++ b/src/cloudflare/resources/addressing/prefixes/delegations.py @@ -25,20 +25,21 @@ AsyncPaginator, make_request_options, ) -from ....types.addressing.prefixes import delegations, delegation_create_params, delegation_delete_params +from ....types.addressing.prefixes import delegation_create_params, delegation_delete_params +from ....types.addressing.prefixes.delegations import Delegations from ....types.addressing.prefixes.delegation_delete_response import DelegationDeleteResponse -__all__ = ["Delegations", "AsyncDelegations"] +__all__ = ["DelegationsResource", "AsyncDelegationsResource"] -class Delegations(SyncAPIResource): +class DelegationsResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> DelegationsWithRawResponse: - return DelegationsWithRawResponse(self) + def with_raw_response(self) -> DelegationsResourceWithRawResponse: + return DelegationsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> DelegationsWithStreamingResponse: - return DelegationsWithStreamingResponse(self) + def with_streaming_response(self) -> DelegationsResourceWithStreamingResponse: + return DelegationsResourceWithStreamingResponse(self) def create( self, @@ -53,7 +54,7 @@ def create( extra_query: Query | None = None, extra_body: Body | None = None, timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, - ) -> Optional[delegations.Delegations]: + ) -> Optional[Delegations]: """ Create a new account delegation for a given IP prefix. @@ -92,9 +93,9 @@ def create( extra_query=extra_query, extra_body=extra_body, timeout=timeout, - post_parser=ResultWrapper[Optional[delegations.Delegations]]._unwrapper, + post_parser=ResultWrapper[Optional[Delegations]]._unwrapper, ), - cast_to=cast(Type[Optional[delegations.Delegations]], ResultWrapper[delegations.Delegations]), + cast_to=cast(Type[Optional[Delegations]], ResultWrapper[Delegations]), ) def list( @@ -108,7 +109,7 @@ def list( extra_query: Query | None = None, extra_body: Body | None = None, timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, - ) -> SyncSinglePage[delegations.Delegations]: + ) -> SyncSinglePage[Delegations]: """ List all delegations for a given account IP prefix. @@ -131,11 +132,11 @@ def list( raise ValueError(f"Expected a non-empty value for `prefix_id` but received {prefix_id!r}") return self._get_api_list( f"/accounts/{account_id}/addressing/prefixes/{prefix_id}/delegations", - page=SyncSinglePage[delegations.Delegations], + page=SyncSinglePage[Delegations], options=make_request_options( extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout ), - model=delegations.Delegations, + model=Delegations, ) def delete( @@ -190,14 +191,14 @@ def delete( ) -class AsyncDelegations(AsyncAPIResource): +class AsyncDelegationsResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncDelegationsWithRawResponse: - return AsyncDelegationsWithRawResponse(self) + def with_raw_response(self) -> AsyncDelegationsResourceWithRawResponse: + return AsyncDelegationsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncDelegationsWithStreamingResponse: - return AsyncDelegationsWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncDelegationsResourceWithStreamingResponse: + return AsyncDelegationsResourceWithStreamingResponse(self) async def create( self, @@ -212,7 +213,7 @@ async def create( extra_query: Query | None = None, extra_body: Body | None = None, timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, - ) -> Optional[delegations.Delegations]: + ) -> Optional[Delegations]: """ Create a new account delegation for a given IP prefix. @@ -251,9 +252,9 @@ async def create( extra_query=extra_query, extra_body=extra_body, timeout=timeout, - post_parser=ResultWrapper[Optional[delegations.Delegations]]._unwrapper, + post_parser=ResultWrapper[Optional[Delegations]]._unwrapper, ), - cast_to=cast(Type[Optional[delegations.Delegations]], ResultWrapper[delegations.Delegations]), + cast_to=cast(Type[Optional[Delegations]], ResultWrapper[Delegations]), ) def list( @@ -267,7 +268,7 @@ def list( extra_query: Query | None = None, extra_body: Body | None = None, timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, - ) -> AsyncPaginator[delegations.Delegations, AsyncSinglePage[delegations.Delegations]]: + ) -> AsyncPaginator[Delegations, AsyncSinglePage[Delegations]]: """ List all delegations for a given account IP prefix. @@ -290,11 +291,11 @@ def list( raise ValueError(f"Expected a non-empty value for `prefix_id` but received {prefix_id!r}") return self._get_api_list( f"/accounts/{account_id}/addressing/prefixes/{prefix_id}/delegations", - page=AsyncSinglePage[delegations.Delegations], + page=AsyncSinglePage[Delegations], options=make_request_options( extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout ), - model=delegations.Delegations, + model=Delegations, ) async def delete( @@ -349,8 +350,8 @@ async def delete( ) -class DelegationsWithRawResponse: - def __init__(self, delegations: Delegations) -> None: +class DelegationsResourceWithRawResponse: + def __init__(self, delegations: DelegationsResource) -> None: self._delegations = delegations self.create = to_raw_response_wrapper( @@ -364,8 +365,8 @@ def __init__(self, delegations: Delegations) -> None: ) -class AsyncDelegationsWithRawResponse: - def __init__(self, delegations: AsyncDelegations) -> None: +class AsyncDelegationsResourceWithRawResponse: + def __init__(self, delegations: AsyncDelegationsResource) -> None: self._delegations = delegations self.create = async_to_raw_response_wrapper( @@ -379,8 +380,8 @@ def __init__(self, delegations: AsyncDelegations) -> None: ) -class DelegationsWithStreamingResponse: - def __init__(self, delegations: Delegations) -> None: +class DelegationsResourceWithStreamingResponse: + def __init__(self, delegations: DelegationsResource) -> None: self._delegations = delegations self.create = to_streamed_response_wrapper( @@ -394,8 +395,8 @@ def __init__(self, delegations: Delegations) -> None: ) -class AsyncDelegationsWithStreamingResponse: - def __init__(self, delegations: AsyncDelegations) -> None: +class AsyncDelegationsResourceWithStreamingResponse: + def __init__(self, delegations: AsyncDelegationsResource) -> None: self._delegations = delegations self.create = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/addressing/prefixes/prefixes.py b/src/cloudflare/resources/addressing/prefixes/prefixes.py index 060be1ef0b4..e73b6e4edeb 100644 --- a/src/cloudflare/resources/addressing/prefixes/prefixes.py +++ b/src/cloudflare/resources/addressing/prefixes/prefixes.py @@ -7,14 +7,14 @@ import httpx from .bgp import ( - BGP, - AsyncBGP, - BGPWithRawResponse, - AsyncBGPWithRawResponse, - BGPWithStreamingResponse, - AsyncBGPWithStreamingResponse, + BGPResource, + AsyncBGPResource, + BGPResourceWithRawResponse, + AsyncBGPResourceWithRawResponse, + BGPResourceWithStreamingResponse, + AsyncBGPResourceWithStreamingResponse, ) -from .bgp.bgp import BGP, AsyncBGP +from .bgp.bgp import BGPResource, AsyncBGPResource from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven from ...._utils import ( maybe_transform, @@ -22,12 +22,12 @@ ) from ...._compat import cached_property from .delegations import ( - Delegations, - AsyncDelegations, - DelegationsWithRawResponse, - AsyncDelegationsWithRawResponse, - DelegationsWithStreamingResponse, - AsyncDelegationsWithStreamingResponse, + DelegationsResource, + AsyncDelegationsResource, + DelegationsResourceWithRawResponse, + AsyncDelegationsResourceWithRawResponse, + DelegationsResourceWithStreamingResponse, + AsyncDelegationsResourceWithStreamingResponse, ) from ...._resource import SyncAPIResource, AsyncAPIResource from ...._response import ( @@ -46,25 +46,25 @@ from ....types.addressing.prefix import Prefix from ....types.addressing.prefix_delete_response import PrefixDeleteResponse -__all__ = ["Prefixes", "AsyncPrefixes"] +__all__ = ["PrefixesResource", "AsyncPrefixesResource"] -class Prefixes(SyncAPIResource): +class PrefixesResource(SyncAPIResource): @cached_property - def bgp(self) -> BGP: - return BGP(self._client) + def bgp(self) -> BGPResource: + return BGPResource(self._client) @cached_property - def delegations(self) -> Delegations: - return Delegations(self._client) + def delegations(self) -> DelegationsResource: + return DelegationsResource(self._client) @cached_property - def with_raw_response(self) -> PrefixesWithRawResponse: - return PrefixesWithRawResponse(self) + def with_raw_response(self) -> PrefixesResourceWithRawResponse: + return PrefixesResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> PrefixesWithStreamingResponse: - return PrefixesWithStreamingResponse(self) + def with_streaming_response(self) -> PrefixesResourceWithStreamingResponse: + return PrefixesResourceWithStreamingResponse(self) def create( self, @@ -297,22 +297,22 @@ def get( ) -class AsyncPrefixes(AsyncAPIResource): +class AsyncPrefixesResource(AsyncAPIResource): @cached_property - def bgp(self) -> AsyncBGP: - return AsyncBGP(self._client) + def bgp(self) -> AsyncBGPResource: + return AsyncBGPResource(self._client) @cached_property - def delegations(self) -> AsyncDelegations: - return AsyncDelegations(self._client) + def delegations(self) -> AsyncDelegationsResource: + return AsyncDelegationsResource(self._client) @cached_property - def with_raw_response(self) -> AsyncPrefixesWithRawResponse: - return AsyncPrefixesWithRawResponse(self) + def with_raw_response(self) -> AsyncPrefixesResourceWithRawResponse: + return AsyncPrefixesResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncPrefixesWithStreamingResponse: - return AsyncPrefixesWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncPrefixesResourceWithStreamingResponse: + return AsyncPrefixesResourceWithStreamingResponse(self) async def create( self, @@ -545,8 +545,8 @@ async def get( ) -class PrefixesWithRawResponse: - def __init__(self, prefixes: Prefixes) -> None: +class PrefixesResourceWithRawResponse: + def __init__(self, prefixes: PrefixesResource) -> None: self._prefixes = prefixes self.create = to_raw_response_wrapper( @@ -566,16 +566,16 @@ def __init__(self, prefixes: Prefixes) -> None: ) @cached_property - def bgp(self) -> BGPWithRawResponse: - return BGPWithRawResponse(self._prefixes.bgp) + def bgp(self) -> BGPResourceWithRawResponse: + return BGPResourceWithRawResponse(self._prefixes.bgp) @cached_property - def delegations(self) -> DelegationsWithRawResponse: - return DelegationsWithRawResponse(self._prefixes.delegations) + def delegations(self) -> DelegationsResourceWithRawResponse: + return DelegationsResourceWithRawResponse(self._prefixes.delegations) -class AsyncPrefixesWithRawResponse: - def __init__(self, prefixes: AsyncPrefixes) -> None: +class AsyncPrefixesResourceWithRawResponse: + def __init__(self, prefixes: AsyncPrefixesResource) -> None: self._prefixes = prefixes self.create = async_to_raw_response_wrapper( @@ -595,16 +595,16 @@ def __init__(self, prefixes: AsyncPrefixes) -> None: ) @cached_property - def bgp(self) -> AsyncBGPWithRawResponse: - return AsyncBGPWithRawResponse(self._prefixes.bgp) + def bgp(self) -> AsyncBGPResourceWithRawResponse: + return AsyncBGPResourceWithRawResponse(self._prefixes.bgp) @cached_property - def delegations(self) -> AsyncDelegationsWithRawResponse: - return AsyncDelegationsWithRawResponse(self._prefixes.delegations) + def delegations(self) -> AsyncDelegationsResourceWithRawResponse: + return AsyncDelegationsResourceWithRawResponse(self._prefixes.delegations) -class PrefixesWithStreamingResponse: - def __init__(self, prefixes: Prefixes) -> None: +class PrefixesResourceWithStreamingResponse: + def __init__(self, prefixes: PrefixesResource) -> None: self._prefixes = prefixes self.create = to_streamed_response_wrapper( @@ -624,16 +624,16 @@ def __init__(self, prefixes: Prefixes) -> None: ) @cached_property - def bgp(self) -> BGPWithStreamingResponse: - return BGPWithStreamingResponse(self._prefixes.bgp) + def bgp(self) -> BGPResourceWithStreamingResponse: + return BGPResourceWithStreamingResponse(self._prefixes.bgp) @cached_property - def delegations(self) -> DelegationsWithStreamingResponse: - return DelegationsWithStreamingResponse(self._prefixes.delegations) + def delegations(self) -> DelegationsResourceWithStreamingResponse: + return DelegationsResourceWithStreamingResponse(self._prefixes.delegations) -class AsyncPrefixesWithStreamingResponse: - def __init__(self, prefixes: AsyncPrefixes) -> None: +class AsyncPrefixesResourceWithStreamingResponse: + def __init__(self, prefixes: AsyncPrefixesResource) -> None: self._prefixes = prefixes self.create = async_to_streamed_response_wrapper( @@ -653,9 +653,9 @@ def __init__(self, prefixes: AsyncPrefixes) -> None: ) @cached_property - def bgp(self) -> AsyncBGPWithStreamingResponse: - return AsyncBGPWithStreamingResponse(self._prefixes.bgp) + def bgp(self) -> AsyncBGPResourceWithStreamingResponse: + return AsyncBGPResourceWithStreamingResponse(self._prefixes.bgp) @cached_property - def delegations(self) -> AsyncDelegationsWithStreamingResponse: - return AsyncDelegationsWithStreamingResponse(self._prefixes.delegations) + def delegations(self) -> AsyncDelegationsResourceWithStreamingResponse: + return AsyncDelegationsResourceWithStreamingResponse(self._prefixes.delegations) diff --git a/src/cloudflare/resources/addressing/services.py b/src/cloudflare/resources/addressing/services.py index e50221ea01e..4b97ccde1a2 100644 --- a/src/cloudflare/resources/addressing/services.py +++ b/src/cloudflare/resources/addressing/services.py @@ -20,17 +20,17 @@ ) from ...types.addressing.service_list_response import ServiceListResponse -__all__ = ["Services", "AsyncServices"] +__all__ = ["ServicesResource", "AsyncServicesResource"] -class Services(SyncAPIResource): +class ServicesResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> ServicesWithRawResponse: - return ServicesWithRawResponse(self) + def with_raw_response(self) -> ServicesResourceWithRawResponse: + return ServicesResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> ServicesWithStreamingResponse: - return ServicesWithStreamingResponse(self) + def with_streaming_response(self) -> ServicesResourceWithStreamingResponse: + return ServicesResourceWithStreamingResponse(self) def list( self, @@ -72,14 +72,14 @@ def list( ) -class AsyncServices(AsyncAPIResource): +class AsyncServicesResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncServicesWithRawResponse: - return AsyncServicesWithRawResponse(self) + def with_raw_response(self) -> AsyncServicesResourceWithRawResponse: + return AsyncServicesResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncServicesWithStreamingResponse: - return AsyncServicesWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncServicesResourceWithStreamingResponse: + return AsyncServicesResourceWithStreamingResponse(self) def list( self, @@ -121,8 +121,8 @@ def list( ) -class ServicesWithRawResponse: - def __init__(self, services: Services) -> None: +class ServicesResourceWithRawResponse: + def __init__(self, services: ServicesResource) -> None: self._services = services self.list = to_raw_response_wrapper( @@ -130,8 +130,8 @@ def __init__(self, services: Services) -> None: ) -class AsyncServicesWithRawResponse: - def __init__(self, services: AsyncServices) -> None: +class AsyncServicesResourceWithRawResponse: + def __init__(self, services: AsyncServicesResource) -> None: self._services = services self.list = async_to_raw_response_wrapper( @@ -139,8 +139,8 @@ def __init__(self, services: AsyncServices) -> None: ) -class ServicesWithStreamingResponse: - def __init__(self, services: Services) -> None: +class ServicesResourceWithStreamingResponse: + def __init__(self, services: ServicesResource) -> None: self._services = services self.list = to_streamed_response_wrapper( @@ -148,8 +148,8 @@ def __init__(self, services: Services) -> None: ) -class AsyncServicesWithStreamingResponse: - def __init__(self, services: AsyncServices) -> None: +class AsyncServicesResourceWithStreamingResponse: + def __init__(self, services: AsyncServicesResource) -> None: self._services = services self.list = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/alerting/__init__.py b/src/cloudflare/resources/alerting/__init__.py index 81f9af833e5..2bf1c17a8f3 100644 --- a/src/cloudflare/resources/alerting/__init__.py +++ b/src/cloudflare/resources/alerting/__init__.py @@ -9,67 +9,67 @@ AsyncHistoryResourceWithStreamingResponse, ) from .alerting import ( - Alerting, - AsyncAlerting, - AlertingWithRawResponse, - AsyncAlertingWithRawResponse, - AlertingWithStreamingResponse, - AsyncAlertingWithStreamingResponse, + AlertingResource, + AsyncAlertingResource, + AlertingResourceWithRawResponse, + AsyncAlertingResourceWithRawResponse, + AlertingResourceWithStreamingResponse, + AsyncAlertingResourceWithStreamingResponse, ) from .policies import ( - Policies, - AsyncPolicies, - PoliciesWithRawResponse, - AsyncPoliciesWithRawResponse, - PoliciesWithStreamingResponse, - AsyncPoliciesWithStreamingResponse, + PoliciesResource, + AsyncPoliciesResource, + PoliciesResourceWithRawResponse, + AsyncPoliciesResourceWithRawResponse, + PoliciesResourceWithStreamingResponse, + AsyncPoliciesResourceWithStreamingResponse, ) from .destinations import ( - Destinations, - AsyncDestinations, - DestinationsWithRawResponse, - AsyncDestinationsWithRawResponse, - DestinationsWithStreamingResponse, - AsyncDestinationsWithStreamingResponse, + DestinationsResource, + AsyncDestinationsResource, + DestinationsResourceWithRawResponse, + AsyncDestinationsResourceWithRawResponse, + DestinationsResourceWithStreamingResponse, + AsyncDestinationsResourceWithStreamingResponse, ) from .available_alerts import ( - AvailableAlerts, - AsyncAvailableAlerts, - AvailableAlertsWithRawResponse, - AsyncAvailableAlertsWithRawResponse, - AvailableAlertsWithStreamingResponse, - AsyncAvailableAlertsWithStreamingResponse, + AvailableAlertsResource, + AsyncAvailableAlertsResource, + AvailableAlertsResourceWithRawResponse, + AsyncAvailableAlertsResourceWithRawResponse, + AvailableAlertsResourceWithStreamingResponse, + AsyncAvailableAlertsResourceWithStreamingResponse, ) __all__ = [ - "AvailableAlerts", - "AsyncAvailableAlerts", - "AvailableAlertsWithRawResponse", - "AsyncAvailableAlertsWithRawResponse", - "AvailableAlertsWithStreamingResponse", - "AsyncAvailableAlertsWithStreamingResponse", - "Destinations", - "AsyncDestinations", - "DestinationsWithRawResponse", - "AsyncDestinationsWithRawResponse", - "DestinationsWithStreamingResponse", - "AsyncDestinationsWithStreamingResponse", + "AvailableAlertsResource", + "AsyncAvailableAlertsResource", + "AvailableAlertsResourceWithRawResponse", + "AsyncAvailableAlertsResourceWithRawResponse", + "AvailableAlertsResourceWithStreamingResponse", + "AsyncAvailableAlertsResourceWithStreamingResponse", + "DestinationsResource", + "AsyncDestinationsResource", + "DestinationsResourceWithRawResponse", + "AsyncDestinationsResourceWithRawResponse", + "DestinationsResourceWithStreamingResponse", + "AsyncDestinationsResourceWithStreamingResponse", "HistoryResource", "AsyncHistoryResource", "HistoryResourceWithRawResponse", "AsyncHistoryResourceWithRawResponse", "HistoryResourceWithStreamingResponse", "AsyncHistoryResourceWithStreamingResponse", - "Policies", - "AsyncPolicies", - "PoliciesWithRawResponse", - "AsyncPoliciesWithRawResponse", - "PoliciesWithStreamingResponse", - "AsyncPoliciesWithStreamingResponse", - "Alerting", - "AsyncAlerting", - "AlertingWithRawResponse", - "AsyncAlertingWithRawResponse", - "AlertingWithStreamingResponse", - "AsyncAlertingWithStreamingResponse", + "PoliciesResource", + "AsyncPoliciesResource", + "PoliciesResourceWithRawResponse", + "AsyncPoliciesResourceWithRawResponse", + "PoliciesResourceWithStreamingResponse", + "AsyncPoliciesResourceWithStreamingResponse", + "AlertingResource", + "AsyncAlertingResource", + "AlertingResourceWithRawResponse", + "AsyncAlertingResourceWithRawResponse", + "AlertingResourceWithStreamingResponse", + "AsyncAlertingResourceWithStreamingResponse", ] diff --git a/src/cloudflare/resources/alerting/alerting.py b/src/cloudflare/resources/alerting/alerting.py index 169617e7ffc..05d80699a14 100644 --- a/src/cloudflare/resources/alerting/alerting.py +++ b/src/cloudflare/resources/alerting/alerting.py @@ -11,167 +11,167 @@ AsyncHistoryResourceWithStreamingResponse, ) from .policies import ( - Policies, - AsyncPolicies, - PoliciesWithRawResponse, - AsyncPoliciesWithRawResponse, - PoliciesWithStreamingResponse, - AsyncPoliciesWithStreamingResponse, + PoliciesResource, + AsyncPoliciesResource, + PoliciesResourceWithRawResponse, + AsyncPoliciesResourceWithRawResponse, + PoliciesResourceWithStreamingResponse, + AsyncPoliciesResourceWithStreamingResponse, ) from ..._compat import cached_property from ..._resource import SyncAPIResource, AsyncAPIResource from .destinations import ( - Destinations, - AsyncDestinations, - DestinationsWithRawResponse, - AsyncDestinationsWithRawResponse, - DestinationsWithStreamingResponse, - AsyncDestinationsWithStreamingResponse, + DestinationsResource, + AsyncDestinationsResource, + DestinationsResourceWithRawResponse, + AsyncDestinationsResourceWithRawResponse, + DestinationsResourceWithStreamingResponse, + AsyncDestinationsResourceWithStreamingResponse, ) from .available_alerts import ( - AvailableAlerts, - AsyncAvailableAlerts, - AvailableAlertsWithRawResponse, - AsyncAvailableAlertsWithRawResponse, - AvailableAlertsWithStreamingResponse, - AsyncAvailableAlertsWithStreamingResponse, + AvailableAlertsResource, + AsyncAvailableAlertsResource, + AvailableAlertsResourceWithRawResponse, + AsyncAvailableAlertsResourceWithRawResponse, + AvailableAlertsResourceWithStreamingResponse, + AsyncAvailableAlertsResourceWithStreamingResponse, ) -from .destinations.destinations import Destinations, AsyncDestinations +from .destinations.destinations import DestinationsResource, AsyncDestinationsResource -__all__ = ["Alerting", "AsyncAlerting"] +__all__ = ["AlertingResource", "AsyncAlertingResource"] -class Alerting(SyncAPIResource): +class AlertingResource(SyncAPIResource): @cached_property - def available_alerts(self) -> AvailableAlerts: - return AvailableAlerts(self._client) + def available_alerts(self) -> AvailableAlertsResource: + return AvailableAlertsResource(self._client) @cached_property - def destinations(self) -> Destinations: - return Destinations(self._client) + def destinations(self) -> DestinationsResource: + return DestinationsResource(self._client) @cached_property def history(self) -> HistoryResource: return HistoryResource(self._client) @cached_property - def policies(self) -> Policies: - return Policies(self._client) + def policies(self) -> PoliciesResource: + return PoliciesResource(self._client) @cached_property - def with_raw_response(self) -> AlertingWithRawResponse: - return AlertingWithRawResponse(self) + def with_raw_response(self) -> AlertingResourceWithRawResponse: + return AlertingResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AlertingWithStreamingResponse: - return AlertingWithStreamingResponse(self) + def with_streaming_response(self) -> AlertingResourceWithStreamingResponse: + return AlertingResourceWithStreamingResponse(self) -class AsyncAlerting(AsyncAPIResource): +class AsyncAlertingResource(AsyncAPIResource): @cached_property - def available_alerts(self) -> AsyncAvailableAlerts: - return AsyncAvailableAlerts(self._client) + def available_alerts(self) -> AsyncAvailableAlertsResource: + return AsyncAvailableAlertsResource(self._client) @cached_property - def destinations(self) -> AsyncDestinations: - return AsyncDestinations(self._client) + def destinations(self) -> AsyncDestinationsResource: + return AsyncDestinationsResource(self._client) @cached_property def history(self) -> AsyncHistoryResource: return AsyncHistoryResource(self._client) @cached_property - def policies(self) -> AsyncPolicies: - return AsyncPolicies(self._client) + def policies(self) -> AsyncPoliciesResource: + return AsyncPoliciesResource(self._client) @cached_property - def with_raw_response(self) -> AsyncAlertingWithRawResponse: - return AsyncAlertingWithRawResponse(self) + def with_raw_response(self) -> AsyncAlertingResourceWithRawResponse: + return AsyncAlertingResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncAlertingWithStreamingResponse: - return AsyncAlertingWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncAlertingResourceWithStreamingResponse: + return AsyncAlertingResourceWithStreamingResponse(self) -class AlertingWithRawResponse: - def __init__(self, alerting: Alerting) -> None: +class AlertingResourceWithRawResponse: + def __init__(self, alerting: AlertingResource) -> None: self._alerting = alerting @cached_property - def available_alerts(self) -> AvailableAlertsWithRawResponse: - return AvailableAlertsWithRawResponse(self._alerting.available_alerts) + def available_alerts(self) -> AvailableAlertsResourceWithRawResponse: + return AvailableAlertsResourceWithRawResponse(self._alerting.available_alerts) @cached_property - def destinations(self) -> DestinationsWithRawResponse: - return DestinationsWithRawResponse(self._alerting.destinations) + def destinations(self) -> DestinationsResourceWithRawResponse: + return DestinationsResourceWithRawResponse(self._alerting.destinations) @cached_property def history(self) -> HistoryResourceWithRawResponse: return HistoryResourceWithRawResponse(self._alerting.history) @cached_property - def policies(self) -> PoliciesWithRawResponse: - return PoliciesWithRawResponse(self._alerting.policies) + def policies(self) -> PoliciesResourceWithRawResponse: + return PoliciesResourceWithRawResponse(self._alerting.policies) -class AsyncAlertingWithRawResponse: - def __init__(self, alerting: AsyncAlerting) -> None: +class AsyncAlertingResourceWithRawResponse: + def __init__(self, alerting: AsyncAlertingResource) -> None: self._alerting = alerting @cached_property - def available_alerts(self) -> AsyncAvailableAlertsWithRawResponse: - return AsyncAvailableAlertsWithRawResponse(self._alerting.available_alerts) + def available_alerts(self) -> AsyncAvailableAlertsResourceWithRawResponse: + return AsyncAvailableAlertsResourceWithRawResponse(self._alerting.available_alerts) @cached_property - def destinations(self) -> AsyncDestinationsWithRawResponse: - return AsyncDestinationsWithRawResponse(self._alerting.destinations) + def destinations(self) -> AsyncDestinationsResourceWithRawResponse: + return AsyncDestinationsResourceWithRawResponse(self._alerting.destinations) @cached_property def history(self) -> AsyncHistoryResourceWithRawResponse: return AsyncHistoryResourceWithRawResponse(self._alerting.history) @cached_property - def policies(self) -> AsyncPoliciesWithRawResponse: - return AsyncPoliciesWithRawResponse(self._alerting.policies) + def policies(self) -> AsyncPoliciesResourceWithRawResponse: + return AsyncPoliciesResourceWithRawResponse(self._alerting.policies) -class AlertingWithStreamingResponse: - def __init__(self, alerting: Alerting) -> None: +class AlertingResourceWithStreamingResponse: + def __init__(self, alerting: AlertingResource) -> None: self._alerting = alerting @cached_property - def available_alerts(self) -> AvailableAlertsWithStreamingResponse: - return AvailableAlertsWithStreamingResponse(self._alerting.available_alerts) + def available_alerts(self) -> AvailableAlertsResourceWithStreamingResponse: + return AvailableAlertsResourceWithStreamingResponse(self._alerting.available_alerts) @cached_property - def destinations(self) -> DestinationsWithStreamingResponse: - return DestinationsWithStreamingResponse(self._alerting.destinations) + def destinations(self) -> DestinationsResourceWithStreamingResponse: + return DestinationsResourceWithStreamingResponse(self._alerting.destinations) @cached_property def history(self) -> HistoryResourceWithStreamingResponse: return HistoryResourceWithStreamingResponse(self._alerting.history) @cached_property - def policies(self) -> PoliciesWithStreamingResponse: - return PoliciesWithStreamingResponse(self._alerting.policies) + def policies(self) -> PoliciesResourceWithStreamingResponse: + return PoliciesResourceWithStreamingResponse(self._alerting.policies) -class AsyncAlertingWithStreamingResponse: - def __init__(self, alerting: AsyncAlerting) -> None: +class AsyncAlertingResourceWithStreamingResponse: + def __init__(self, alerting: AsyncAlertingResource) -> None: self._alerting = alerting @cached_property - def available_alerts(self) -> AsyncAvailableAlertsWithStreamingResponse: - return AsyncAvailableAlertsWithStreamingResponse(self._alerting.available_alerts) + def available_alerts(self) -> AsyncAvailableAlertsResourceWithStreamingResponse: + return AsyncAvailableAlertsResourceWithStreamingResponse(self._alerting.available_alerts) @cached_property - def destinations(self) -> AsyncDestinationsWithStreamingResponse: - return AsyncDestinationsWithStreamingResponse(self._alerting.destinations) + def destinations(self) -> AsyncDestinationsResourceWithStreamingResponse: + return AsyncDestinationsResourceWithStreamingResponse(self._alerting.destinations) @cached_property def history(self) -> AsyncHistoryResourceWithStreamingResponse: return AsyncHistoryResourceWithStreamingResponse(self._alerting.history) @cached_property - def policies(self) -> AsyncPoliciesWithStreamingResponse: - return AsyncPoliciesWithStreamingResponse(self._alerting.policies) + def policies(self) -> AsyncPoliciesResourceWithStreamingResponse: + return AsyncPoliciesResourceWithStreamingResponse(self._alerting.policies) diff --git a/src/cloudflare/resources/alerting/available_alerts.py b/src/cloudflare/resources/alerting/available_alerts.py index 874017aaaf3..abcc97045c4 100644 --- a/src/cloudflare/resources/alerting/available_alerts.py +++ b/src/cloudflare/resources/alerting/available_alerts.py @@ -21,17 +21,17 @@ ) from ...types.alerting.available_alert_list_response import AvailableAlertListResponse -__all__ = ["AvailableAlerts", "AsyncAvailableAlerts"] +__all__ = ["AvailableAlertsResource", "AsyncAvailableAlertsResource"] -class AvailableAlerts(SyncAPIResource): +class AvailableAlertsResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> AvailableAlertsWithRawResponse: - return AvailableAlertsWithRawResponse(self) + def with_raw_response(self) -> AvailableAlertsResourceWithRawResponse: + return AvailableAlertsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AvailableAlertsWithStreamingResponse: - return AvailableAlertsWithStreamingResponse(self) + def with_streaming_response(self) -> AvailableAlertsResourceWithStreamingResponse: + return AvailableAlertsResourceWithStreamingResponse(self) def list( self, @@ -78,14 +78,14 @@ def list( ) -class AsyncAvailableAlerts(AsyncAPIResource): +class AsyncAvailableAlertsResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncAvailableAlertsWithRawResponse: - return AsyncAvailableAlertsWithRawResponse(self) + def with_raw_response(self) -> AsyncAvailableAlertsResourceWithRawResponse: + return AsyncAvailableAlertsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncAvailableAlertsWithStreamingResponse: - return AsyncAvailableAlertsWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncAvailableAlertsResourceWithStreamingResponse: + return AsyncAvailableAlertsResourceWithStreamingResponse(self) async def list( self, @@ -132,8 +132,8 @@ async def list( ) -class AvailableAlertsWithRawResponse: - def __init__(self, available_alerts: AvailableAlerts) -> None: +class AvailableAlertsResourceWithRawResponse: + def __init__(self, available_alerts: AvailableAlertsResource) -> None: self._available_alerts = available_alerts self.list = to_raw_response_wrapper( @@ -141,8 +141,8 @@ def __init__(self, available_alerts: AvailableAlerts) -> None: ) -class AsyncAvailableAlertsWithRawResponse: - def __init__(self, available_alerts: AsyncAvailableAlerts) -> None: +class AsyncAvailableAlertsResourceWithRawResponse: + def __init__(self, available_alerts: AsyncAvailableAlertsResource) -> None: self._available_alerts = available_alerts self.list = async_to_raw_response_wrapper( @@ -150,8 +150,8 @@ def __init__(self, available_alerts: AsyncAvailableAlerts) -> None: ) -class AvailableAlertsWithStreamingResponse: - def __init__(self, available_alerts: AvailableAlerts) -> None: +class AvailableAlertsResourceWithStreamingResponse: + def __init__(self, available_alerts: AvailableAlertsResource) -> None: self._available_alerts = available_alerts self.list = to_streamed_response_wrapper( @@ -159,8 +159,8 @@ def __init__(self, available_alerts: AvailableAlerts) -> None: ) -class AsyncAvailableAlertsWithStreamingResponse: - def __init__(self, available_alerts: AsyncAvailableAlerts) -> None: +class AsyncAvailableAlertsResourceWithStreamingResponse: + def __init__(self, available_alerts: AsyncAvailableAlertsResource) -> None: self._available_alerts = available_alerts self.list = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/alerting/destinations/__init__.py b/src/cloudflare/resources/alerting/destinations/__init__.py index da72878446e..611f1d5a231 100644 --- a/src/cloudflare/resources/alerting/destinations/__init__.py +++ b/src/cloudflare/resources/alerting/destinations/__init__.py @@ -1,20 +1,20 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from .eligible import ( - Eligible, - AsyncEligible, - EligibleWithRawResponse, - AsyncEligibleWithRawResponse, - EligibleWithStreamingResponse, - AsyncEligibleWithStreamingResponse, + EligibleResource, + AsyncEligibleResource, + EligibleResourceWithRawResponse, + AsyncEligibleResourceWithRawResponse, + EligibleResourceWithStreamingResponse, + AsyncEligibleResourceWithStreamingResponse, ) from .webhooks import ( - Webhooks, - AsyncWebhooks, - WebhooksWithRawResponse, - AsyncWebhooksWithRawResponse, - WebhooksWithStreamingResponse, - AsyncWebhooksWithStreamingResponse, + WebhooksResource, + AsyncWebhooksResource, + WebhooksResourceWithRawResponse, + AsyncWebhooksResourceWithRawResponse, + WebhooksResourceWithStreamingResponse, + AsyncWebhooksResourceWithStreamingResponse, ) from .pagerduty import ( PagerdutyResource, @@ -25,37 +25,37 @@ AsyncPagerdutyResourceWithStreamingResponse, ) from .destinations import ( - Destinations, - AsyncDestinations, - DestinationsWithRawResponse, - AsyncDestinationsWithRawResponse, - DestinationsWithStreamingResponse, - AsyncDestinationsWithStreamingResponse, + DestinationsResource, + AsyncDestinationsResource, + DestinationsResourceWithRawResponse, + AsyncDestinationsResourceWithRawResponse, + DestinationsResourceWithStreamingResponse, + AsyncDestinationsResourceWithStreamingResponse, ) __all__ = [ - "Eligible", - "AsyncEligible", - "EligibleWithRawResponse", - "AsyncEligibleWithRawResponse", - "EligibleWithStreamingResponse", - "AsyncEligibleWithStreamingResponse", + "EligibleResource", + "AsyncEligibleResource", + "EligibleResourceWithRawResponse", + "AsyncEligibleResourceWithRawResponse", + "EligibleResourceWithStreamingResponse", + "AsyncEligibleResourceWithStreamingResponse", "PagerdutyResource", "AsyncPagerdutyResource", "PagerdutyResourceWithRawResponse", "AsyncPagerdutyResourceWithRawResponse", "PagerdutyResourceWithStreamingResponse", "AsyncPagerdutyResourceWithStreamingResponse", - "Webhooks", - "AsyncWebhooks", - "WebhooksWithRawResponse", - "AsyncWebhooksWithRawResponse", - "WebhooksWithStreamingResponse", - "AsyncWebhooksWithStreamingResponse", - "Destinations", - "AsyncDestinations", - "DestinationsWithRawResponse", - "AsyncDestinationsWithRawResponse", - "DestinationsWithStreamingResponse", - "AsyncDestinationsWithStreamingResponse", + "WebhooksResource", + "AsyncWebhooksResource", + "WebhooksResourceWithRawResponse", + "AsyncWebhooksResourceWithRawResponse", + "WebhooksResourceWithStreamingResponse", + "AsyncWebhooksResourceWithStreamingResponse", + "DestinationsResource", + "AsyncDestinationsResource", + "DestinationsResourceWithRawResponse", + "AsyncDestinationsResourceWithRawResponse", + "DestinationsResourceWithStreamingResponse", + "AsyncDestinationsResourceWithStreamingResponse", ] diff --git a/src/cloudflare/resources/alerting/destinations/destinations.py b/src/cloudflare/resources/alerting/destinations/destinations.py index 57a1bac1679..d5e0b713d3d 100644 --- a/src/cloudflare/resources/alerting/destinations/destinations.py +++ b/src/cloudflare/resources/alerting/destinations/destinations.py @@ -3,20 +3,20 @@ from __future__ import annotations from .eligible import ( - Eligible, - AsyncEligible, - EligibleWithRawResponse, - AsyncEligibleWithRawResponse, - EligibleWithStreamingResponse, - AsyncEligibleWithStreamingResponse, + EligibleResource, + AsyncEligibleResource, + EligibleResourceWithRawResponse, + AsyncEligibleResourceWithRawResponse, + EligibleResourceWithStreamingResponse, + AsyncEligibleResourceWithStreamingResponse, ) from .webhooks import ( - Webhooks, - AsyncWebhooks, - WebhooksWithRawResponse, - AsyncWebhooksWithRawResponse, - WebhooksWithStreamingResponse, - AsyncWebhooksWithStreamingResponse, + WebhooksResource, + AsyncWebhooksResource, + WebhooksResourceWithRawResponse, + AsyncWebhooksResourceWithRawResponse, + WebhooksResourceWithStreamingResponse, + AsyncWebhooksResourceWithStreamingResponse, ) from .pagerduty import ( PagerdutyResource, @@ -29,116 +29,116 @@ from ...._compat import cached_property from ...._resource import SyncAPIResource, AsyncAPIResource -__all__ = ["Destinations", "AsyncDestinations"] +__all__ = ["DestinationsResource", "AsyncDestinationsResource"] -class Destinations(SyncAPIResource): +class DestinationsResource(SyncAPIResource): @cached_property - def eligible(self) -> Eligible: - return Eligible(self._client) + def eligible(self) -> EligibleResource: + return EligibleResource(self._client) @cached_property def pagerduty(self) -> PagerdutyResource: return PagerdutyResource(self._client) @cached_property - def webhooks(self) -> Webhooks: - return Webhooks(self._client) + def webhooks(self) -> WebhooksResource: + return WebhooksResource(self._client) @cached_property - def with_raw_response(self) -> DestinationsWithRawResponse: - return DestinationsWithRawResponse(self) + def with_raw_response(self) -> DestinationsResourceWithRawResponse: + return DestinationsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> DestinationsWithStreamingResponse: - return DestinationsWithStreamingResponse(self) + def with_streaming_response(self) -> DestinationsResourceWithStreamingResponse: + return DestinationsResourceWithStreamingResponse(self) -class AsyncDestinations(AsyncAPIResource): +class AsyncDestinationsResource(AsyncAPIResource): @cached_property - def eligible(self) -> AsyncEligible: - return AsyncEligible(self._client) + def eligible(self) -> AsyncEligibleResource: + return AsyncEligibleResource(self._client) @cached_property def pagerduty(self) -> AsyncPagerdutyResource: return AsyncPagerdutyResource(self._client) @cached_property - def webhooks(self) -> AsyncWebhooks: - return AsyncWebhooks(self._client) + def webhooks(self) -> AsyncWebhooksResource: + return AsyncWebhooksResource(self._client) @cached_property - def with_raw_response(self) -> AsyncDestinationsWithRawResponse: - return AsyncDestinationsWithRawResponse(self) + def with_raw_response(self) -> AsyncDestinationsResourceWithRawResponse: + return AsyncDestinationsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncDestinationsWithStreamingResponse: - return AsyncDestinationsWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncDestinationsResourceWithStreamingResponse: + return AsyncDestinationsResourceWithStreamingResponse(self) -class DestinationsWithRawResponse: - def __init__(self, destinations: Destinations) -> None: +class DestinationsResourceWithRawResponse: + def __init__(self, destinations: DestinationsResource) -> None: self._destinations = destinations @cached_property - def eligible(self) -> EligibleWithRawResponse: - return EligibleWithRawResponse(self._destinations.eligible) + def eligible(self) -> EligibleResourceWithRawResponse: + return EligibleResourceWithRawResponse(self._destinations.eligible) @cached_property def pagerduty(self) -> PagerdutyResourceWithRawResponse: return PagerdutyResourceWithRawResponse(self._destinations.pagerduty) @cached_property - def webhooks(self) -> WebhooksWithRawResponse: - return WebhooksWithRawResponse(self._destinations.webhooks) + def webhooks(self) -> WebhooksResourceWithRawResponse: + return WebhooksResourceWithRawResponse(self._destinations.webhooks) -class AsyncDestinationsWithRawResponse: - def __init__(self, destinations: AsyncDestinations) -> None: +class AsyncDestinationsResourceWithRawResponse: + def __init__(self, destinations: AsyncDestinationsResource) -> None: self._destinations = destinations @cached_property - def eligible(self) -> AsyncEligibleWithRawResponse: - return AsyncEligibleWithRawResponse(self._destinations.eligible) + def eligible(self) -> AsyncEligibleResourceWithRawResponse: + return AsyncEligibleResourceWithRawResponse(self._destinations.eligible) @cached_property def pagerduty(self) -> AsyncPagerdutyResourceWithRawResponse: return AsyncPagerdutyResourceWithRawResponse(self._destinations.pagerduty) @cached_property - def webhooks(self) -> AsyncWebhooksWithRawResponse: - return AsyncWebhooksWithRawResponse(self._destinations.webhooks) + def webhooks(self) -> AsyncWebhooksResourceWithRawResponse: + return AsyncWebhooksResourceWithRawResponse(self._destinations.webhooks) -class DestinationsWithStreamingResponse: - def __init__(self, destinations: Destinations) -> None: +class DestinationsResourceWithStreamingResponse: + def __init__(self, destinations: DestinationsResource) -> None: self._destinations = destinations @cached_property - def eligible(self) -> EligibleWithStreamingResponse: - return EligibleWithStreamingResponse(self._destinations.eligible) + def eligible(self) -> EligibleResourceWithStreamingResponse: + return EligibleResourceWithStreamingResponse(self._destinations.eligible) @cached_property def pagerduty(self) -> PagerdutyResourceWithStreamingResponse: return PagerdutyResourceWithStreamingResponse(self._destinations.pagerduty) @cached_property - def webhooks(self) -> WebhooksWithStreamingResponse: - return WebhooksWithStreamingResponse(self._destinations.webhooks) + def webhooks(self) -> WebhooksResourceWithStreamingResponse: + return WebhooksResourceWithStreamingResponse(self._destinations.webhooks) -class AsyncDestinationsWithStreamingResponse: - def __init__(self, destinations: AsyncDestinations) -> None: +class AsyncDestinationsResourceWithStreamingResponse: + def __init__(self, destinations: AsyncDestinationsResource) -> None: self._destinations = destinations @cached_property - def eligible(self) -> AsyncEligibleWithStreamingResponse: - return AsyncEligibleWithStreamingResponse(self._destinations.eligible) + def eligible(self) -> AsyncEligibleResourceWithStreamingResponse: + return AsyncEligibleResourceWithStreamingResponse(self._destinations.eligible) @cached_property def pagerduty(self) -> AsyncPagerdutyResourceWithStreamingResponse: return AsyncPagerdutyResourceWithStreamingResponse(self._destinations.pagerduty) @cached_property - def webhooks(self) -> AsyncWebhooksWithStreamingResponse: - return AsyncWebhooksWithStreamingResponse(self._destinations.webhooks) + def webhooks(self) -> AsyncWebhooksResourceWithStreamingResponse: + return AsyncWebhooksResourceWithStreamingResponse(self._destinations.webhooks) diff --git a/src/cloudflare/resources/alerting/destinations/eligible.py b/src/cloudflare/resources/alerting/destinations/eligible.py index 23790ef18c9..850586d484a 100644 --- a/src/cloudflare/resources/alerting/destinations/eligible.py +++ b/src/cloudflare/resources/alerting/destinations/eligible.py @@ -21,17 +21,17 @@ ) from ....types.alerting.destinations.eligible_get_response import EligibleGetResponse -__all__ = ["Eligible", "AsyncEligible"] +__all__ = ["EligibleResource", "AsyncEligibleResource"] -class Eligible(SyncAPIResource): +class EligibleResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> EligibleWithRawResponse: - return EligibleWithRawResponse(self) + def with_raw_response(self) -> EligibleResourceWithRawResponse: + return EligibleResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> EligibleWithStreamingResponse: - return EligibleWithStreamingResponse(self) + def with_streaming_response(self) -> EligibleResourceWithStreamingResponse: + return EligibleResourceWithStreamingResponse(self) def get( self, @@ -78,14 +78,14 @@ def get( ) -class AsyncEligible(AsyncAPIResource): +class AsyncEligibleResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncEligibleWithRawResponse: - return AsyncEligibleWithRawResponse(self) + def with_raw_response(self) -> AsyncEligibleResourceWithRawResponse: + return AsyncEligibleResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncEligibleWithStreamingResponse: - return AsyncEligibleWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncEligibleResourceWithStreamingResponse: + return AsyncEligibleResourceWithStreamingResponse(self) async def get( self, @@ -132,8 +132,8 @@ async def get( ) -class EligibleWithRawResponse: - def __init__(self, eligible: Eligible) -> None: +class EligibleResourceWithRawResponse: + def __init__(self, eligible: EligibleResource) -> None: self._eligible = eligible self.get = to_raw_response_wrapper( @@ -141,8 +141,8 @@ def __init__(self, eligible: Eligible) -> None: ) -class AsyncEligibleWithRawResponse: - def __init__(self, eligible: AsyncEligible) -> None: +class AsyncEligibleResourceWithRawResponse: + def __init__(self, eligible: AsyncEligibleResource) -> None: self._eligible = eligible self.get = async_to_raw_response_wrapper( @@ -150,8 +150,8 @@ def __init__(self, eligible: AsyncEligible) -> None: ) -class EligibleWithStreamingResponse: - def __init__(self, eligible: Eligible) -> None: +class EligibleResourceWithStreamingResponse: + def __init__(self, eligible: EligibleResource) -> None: self._eligible = eligible self.get = to_streamed_response_wrapper( @@ -159,8 +159,8 @@ def __init__(self, eligible: Eligible) -> None: ) -class AsyncEligibleWithStreamingResponse: - def __init__(self, eligible: AsyncEligible) -> None: +class AsyncEligibleResourceWithStreamingResponse: + def __init__(self, eligible: AsyncEligibleResource) -> None: self._eligible = eligible self.get = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/alerting/destinations/webhooks.py b/src/cloudflare/resources/alerting/destinations/webhooks.py index 14f8f2ce3bd..f988d06b025 100644 --- a/src/cloudflare/resources/alerting/destinations/webhooks.py +++ b/src/cloudflare/resources/alerting/destinations/webhooks.py @@ -25,22 +25,23 @@ AsyncPaginator, make_request_options, ) -from ....types.alerting.destinations import webhooks, webhook_create_params, webhook_update_params +from ....types.alerting.destinations import webhook_create_params, webhook_update_params +from ....types.alerting.destinations.webhooks import Webhooks from ....types.alerting.destinations.webhook_create_response import WebhookCreateResponse from ....types.alerting.destinations.webhook_delete_response import WebhookDeleteResponse from ....types.alerting.destinations.webhook_update_response import WebhookUpdateResponse -__all__ = ["Webhooks", "AsyncWebhooks"] +__all__ = ["WebhooksResource", "AsyncWebhooksResource"] -class Webhooks(SyncAPIResource): +class WebhooksResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> WebhooksWithRawResponse: - return WebhooksWithRawResponse(self) + def with_raw_response(self) -> WebhooksResourceWithRawResponse: + return WebhooksResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> WebhooksWithStreamingResponse: - return WebhooksWithStreamingResponse(self) + def with_streaming_response(self) -> WebhooksResourceWithStreamingResponse: + return WebhooksResourceWithStreamingResponse(self) def create( self, @@ -175,7 +176,7 @@ def list( extra_query: Query | None = None, extra_body: Body | None = None, timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, - ) -> SyncSinglePage[webhooks.Webhooks]: + ) -> SyncSinglePage[Webhooks]: """ Gets a list of all configured webhook destinations. @@ -194,11 +195,11 @@ def list( raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}") return self._get_api_list( f"/accounts/{account_id}/alerting/v3/destinations/webhooks", - page=SyncSinglePage[webhooks.Webhooks], + page=SyncSinglePage[Webhooks], options=make_request_options( extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout ), - model=webhooks.Webhooks, + model=Webhooks, ) def delete( @@ -261,7 +262,7 @@ def get( extra_query: Query | None = None, extra_body: Body | None = None, timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, - ) -> webhooks.Webhooks: + ) -> Webhooks: """ Get details for a single webhooks destination. @@ -289,20 +290,20 @@ def get( extra_query=extra_query, extra_body=extra_body, timeout=timeout, - post_parser=ResultWrapper[webhooks.Webhooks]._unwrapper, + post_parser=ResultWrapper[Webhooks]._unwrapper, ), - cast_to=cast(Type[webhooks.Webhooks], ResultWrapper[webhooks.Webhooks]), + cast_to=cast(Type[Webhooks], ResultWrapper[Webhooks]), ) -class AsyncWebhooks(AsyncAPIResource): +class AsyncWebhooksResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncWebhooksWithRawResponse: - return AsyncWebhooksWithRawResponse(self) + def with_raw_response(self) -> AsyncWebhooksResourceWithRawResponse: + return AsyncWebhooksResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncWebhooksWithStreamingResponse: - return AsyncWebhooksWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncWebhooksResourceWithStreamingResponse: + return AsyncWebhooksResourceWithStreamingResponse(self) async def create( self, @@ -437,7 +438,7 @@ def list( extra_query: Query | None = None, extra_body: Body | None = None, timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, - ) -> AsyncPaginator[webhooks.Webhooks, AsyncSinglePage[webhooks.Webhooks]]: + ) -> AsyncPaginator[Webhooks, AsyncSinglePage[Webhooks]]: """ Gets a list of all configured webhook destinations. @@ -456,11 +457,11 @@ def list( raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}") return self._get_api_list( f"/accounts/{account_id}/alerting/v3/destinations/webhooks", - page=AsyncSinglePage[webhooks.Webhooks], + page=AsyncSinglePage[Webhooks], options=make_request_options( extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout ), - model=webhooks.Webhooks, + model=Webhooks, ) async def delete( @@ -523,7 +524,7 @@ async def get( extra_query: Query | None = None, extra_body: Body | None = None, timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, - ) -> webhooks.Webhooks: + ) -> Webhooks: """ Get details for a single webhooks destination. @@ -551,14 +552,14 @@ async def get( extra_query=extra_query, extra_body=extra_body, timeout=timeout, - post_parser=ResultWrapper[webhooks.Webhooks]._unwrapper, + post_parser=ResultWrapper[Webhooks]._unwrapper, ), - cast_to=cast(Type[webhooks.Webhooks], ResultWrapper[webhooks.Webhooks]), + cast_to=cast(Type[Webhooks], ResultWrapper[Webhooks]), ) -class WebhooksWithRawResponse: - def __init__(self, webhooks: Webhooks) -> None: +class WebhooksResourceWithRawResponse: + def __init__(self, webhooks: WebhooksResource) -> None: self._webhooks = webhooks self.create = to_raw_response_wrapper( @@ -578,8 +579,8 @@ def __init__(self, webhooks: Webhooks) -> None: ) -class AsyncWebhooksWithRawResponse: - def __init__(self, webhooks: AsyncWebhooks) -> None: +class AsyncWebhooksResourceWithRawResponse: + def __init__(self, webhooks: AsyncWebhooksResource) -> None: self._webhooks = webhooks self.create = async_to_raw_response_wrapper( @@ -599,8 +600,8 @@ def __init__(self, webhooks: AsyncWebhooks) -> None: ) -class WebhooksWithStreamingResponse: - def __init__(self, webhooks: Webhooks) -> None: +class WebhooksResourceWithStreamingResponse: + def __init__(self, webhooks: WebhooksResource) -> None: self._webhooks = webhooks self.create = to_streamed_response_wrapper( @@ -620,8 +621,8 @@ def __init__(self, webhooks: Webhooks) -> None: ) -class AsyncWebhooksWithStreamingResponse: - def __init__(self, webhooks: AsyncWebhooks) -> None: +class AsyncWebhooksResourceWithStreamingResponse: + def __init__(self, webhooks: AsyncWebhooksResource) -> None: self._webhooks = webhooks self.create = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/alerting/policies.py b/src/cloudflare/resources/alerting/policies.py index 01db0e0f4f0..b7c35076824 100644 --- a/src/cloudflare/resources/alerting/policies.py +++ b/src/cloudflare/resources/alerting/policies.py @@ -34,17 +34,17 @@ from ...types.alerting.policy_delete_response import PolicyDeleteResponse from ...types.alerting.policy_update_response import PolicyUpdateResponse -__all__ = ["Policies", "AsyncPolicies"] +__all__ = ["PoliciesResource", "AsyncPoliciesResource"] -class Policies(SyncAPIResource): +class PoliciesResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> PoliciesWithRawResponse: - return PoliciesWithRawResponse(self) + def with_raw_response(self) -> PoliciesResourceWithRawResponse: + return PoliciesResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> PoliciesWithStreamingResponse: - return PoliciesWithStreamingResponse(self) + def with_streaming_response(self) -> PoliciesResourceWithStreamingResponse: + return PoliciesResourceWithStreamingResponse(self) def create( self, @@ -440,14 +440,14 @@ def get( ) -class AsyncPolicies(AsyncAPIResource): +class AsyncPoliciesResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncPoliciesWithRawResponse: - return AsyncPoliciesWithRawResponse(self) + def with_raw_response(self) -> AsyncPoliciesResourceWithRawResponse: + return AsyncPoliciesResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncPoliciesWithStreamingResponse: - return AsyncPoliciesWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncPoliciesResourceWithStreamingResponse: + return AsyncPoliciesResourceWithStreamingResponse(self) async def create( self, @@ -843,8 +843,8 @@ async def get( ) -class PoliciesWithRawResponse: - def __init__(self, policies: Policies) -> None: +class PoliciesResourceWithRawResponse: + def __init__(self, policies: PoliciesResource) -> None: self._policies = policies self.create = to_raw_response_wrapper( @@ -864,8 +864,8 @@ def __init__(self, policies: Policies) -> None: ) -class AsyncPoliciesWithRawResponse: - def __init__(self, policies: AsyncPolicies) -> None: +class AsyncPoliciesResourceWithRawResponse: + def __init__(self, policies: AsyncPoliciesResource) -> None: self._policies = policies self.create = async_to_raw_response_wrapper( @@ -885,8 +885,8 @@ def __init__(self, policies: AsyncPolicies) -> None: ) -class PoliciesWithStreamingResponse: - def __init__(self, policies: Policies) -> None: +class PoliciesResourceWithStreamingResponse: + def __init__(self, policies: PoliciesResource) -> None: self._policies = policies self.create = to_streamed_response_wrapper( @@ -906,8 +906,8 @@ def __init__(self, policies: Policies) -> None: ) -class AsyncPoliciesWithStreamingResponse: - def __init__(self, policies: AsyncPolicies) -> None: +class AsyncPoliciesResourceWithStreamingResponse: + def __init__(self, policies: AsyncPoliciesResource) -> None: self._policies = policies self.create = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/argo/__init__.py b/src/cloudflare/resources/argo/__init__.py index 20b443333e4..060e54eaec3 100644 --- a/src/cloudflare/resources/argo/__init__.py +++ b/src/cloudflare/resources/argo/__init__.py @@ -1,47 +1,47 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from .argo import ( - Argo, - AsyncArgo, - ArgoWithRawResponse, - AsyncArgoWithRawResponse, - ArgoWithStreamingResponse, - AsyncArgoWithStreamingResponse, + ArgoResource, + AsyncArgoResource, + ArgoResourceWithRawResponse, + AsyncArgoResourceWithRawResponse, + ArgoResourceWithStreamingResponse, + AsyncArgoResourceWithStreamingResponse, ) from .smart_routing import ( - SmartRouting, - AsyncSmartRouting, - SmartRoutingWithRawResponse, - AsyncSmartRoutingWithRawResponse, - SmartRoutingWithStreamingResponse, - AsyncSmartRoutingWithStreamingResponse, + SmartRoutingResource, + AsyncSmartRoutingResource, + SmartRoutingResourceWithRawResponse, + AsyncSmartRoutingResourceWithRawResponse, + SmartRoutingResourceWithStreamingResponse, + AsyncSmartRoutingResourceWithStreamingResponse, ) from .tiered_caching import ( - TieredCaching, - AsyncTieredCaching, - TieredCachingWithRawResponse, - AsyncTieredCachingWithRawResponse, - TieredCachingWithStreamingResponse, - AsyncTieredCachingWithStreamingResponse, + TieredCachingResource, + AsyncTieredCachingResource, + TieredCachingResourceWithRawResponse, + AsyncTieredCachingResourceWithRawResponse, + TieredCachingResourceWithStreamingResponse, + AsyncTieredCachingResourceWithStreamingResponse, ) __all__ = [ - "SmartRouting", - "AsyncSmartRouting", - "SmartRoutingWithRawResponse", - "AsyncSmartRoutingWithRawResponse", - "SmartRoutingWithStreamingResponse", - "AsyncSmartRoutingWithStreamingResponse", - "TieredCaching", - "AsyncTieredCaching", - "TieredCachingWithRawResponse", - "AsyncTieredCachingWithRawResponse", - "TieredCachingWithStreamingResponse", - "AsyncTieredCachingWithStreamingResponse", - "Argo", - "AsyncArgo", - "ArgoWithRawResponse", - "AsyncArgoWithRawResponse", - "ArgoWithStreamingResponse", - "AsyncArgoWithStreamingResponse", + "SmartRoutingResource", + "AsyncSmartRoutingResource", + "SmartRoutingResourceWithRawResponse", + "AsyncSmartRoutingResourceWithRawResponse", + "SmartRoutingResourceWithStreamingResponse", + "AsyncSmartRoutingResourceWithStreamingResponse", + "TieredCachingResource", + "AsyncTieredCachingResource", + "TieredCachingResourceWithRawResponse", + "AsyncTieredCachingResourceWithRawResponse", + "TieredCachingResourceWithStreamingResponse", + "AsyncTieredCachingResourceWithStreamingResponse", + "ArgoResource", + "AsyncArgoResource", + "ArgoResourceWithRawResponse", + "AsyncArgoResourceWithRawResponse", + "ArgoResourceWithStreamingResponse", + "AsyncArgoResourceWithStreamingResponse", ] diff --git a/src/cloudflare/resources/argo/argo.py b/src/cloudflare/resources/argo/argo.py index 8a335d48b62..f9ce9f32f66 100644 --- a/src/cloudflare/resources/argo/argo.py +++ b/src/cloudflare/resources/argo/argo.py @@ -5,108 +5,108 @@ from ..._compat import cached_property from ..._resource import SyncAPIResource, AsyncAPIResource from .smart_routing import ( - SmartRouting, - AsyncSmartRouting, - SmartRoutingWithRawResponse, - AsyncSmartRoutingWithRawResponse, - SmartRoutingWithStreamingResponse, - AsyncSmartRoutingWithStreamingResponse, + SmartRoutingResource, + AsyncSmartRoutingResource, + SmartRoutingResourceWithRawResponse, + AsyncSmartRoutingResourceWithRawResponse, + SmartRoutingResourceWithStreamingResponse, + AsyncSmartRoutingResourceWithStreamingResponse, ) from .tiered_caching import ( - TieredCaching, - AsyncTieredCaching, - TieredCachingWithRawResponse, - AsyncTieredCachingWithRawResponse, - TieredCachingWithStreamingResponse, - AsyncTieredCachingWithStreamingResponse, + TieredCachingResource, + AsyncTieredCachingResource, + TieredCachingResourceWithRawResponse, + AsyncTieredCachingResourceWithRawResponse, + TieredCachingResourceWithStreamingResponse, + AsyncTieredCachingResourceWithStreamingResponse, ) -__all__ = ["Argo", "AsyncArgo"] +__all__ = ["ArgoResource", "AsyncArgoResource"] -class Argo(SyncAPIResource): +class ArgoResource(SyncAPIResource): @cached_property - def smart_routing(self) -> SmartRouting: - return SmartRouting(self._client) + def smart_routing(self) -> SmartRoutingResource: + return SmartRoutingResource(self._client) @cached_property - def tiered_caching(self) -> TieredCaching: - return TieredCaching(self._client) + def tiered_caching(self) -> TieredCachingResource: + return TieredCachingResource(self._client) @cached_property - def with_raw_response(self) -> ArgoWithRawResponse: - return ArgoWithRawResponse(self) + def with_raw_response(self) -> ArgoResourceWithRawResponse: + return ArgoResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> ArgoWithStreamingResponse: - return ArgoWithStreamingResponse(self) + def with_streaming_response(self) -> ArgoResourceWithStreamingResponse: + return ArgoResourceWithStreamingResponse(self) -class AsyncArgo(AsyncAPIResource): +class AsyncArgoResource(AsyncAPIResource): @cached_property - def smart_routing(self) -> AsyncSmartRouting: - return AsyncSmartRouting(self._client) + def smart_routing(self) -> AsyncSmartRoutingResource: + return AsyncSmartRoutingResource(self._client) @cached_property - def tiered_caching(self) -> AsyncTieredCaching: - return AsyncTieredCaching(self._client) + def tiered_caching(self) -> AsyncTieredCachingResource: + return AsyncTieredCachingResource(self._client) @cached_property - def with_raw_response(self) -> AsyncArgoWithRawResponse: - return AsyncArgoWithRawResponse(self) + def with_raw_response(self) -> AsyncArgoResourceWithRawResponse: + return AsyncArgoResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncArgoWithStreamingResponse: - return AsyncArgoWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncArgoResourceWithStreamingResponse: + return AsyncArgoResourceWithStreamingResponse(self) -class ArgoWithRawResponse: - def __init__(self, argo: Argo) -> None: +class ArgoResourceWithRawResponse: + def __init__(self, argo: ArgoResource) -> None: self._argo = argo @cached_property - def smart_routing(self) -> SmartRoutingWithRawResponse: - return SmartRoutingWithRawResponse(self._argo.smart_routing) + def smart_routing(self) -> SmartRoutingResourceWithRawResponse: + return SmartRoutingResourceWithRawResponse(self._argo.smart_routing) @cached_property - def tiered_caching(self) -> TieredCachingWithRawResponse: - return TieredCachingWithRawResponse(self._argo.tiered_caching) + def tiered_caching(self) -> TieredCachingResourceWithRawResponse: + return TieredCachingResourceWithRawResponse(self._argo.tiered_caching) -class AsyncArgoWithRawResponse: - def __init__(self, argo: AsyncArgo) -> None: +class AsyncArgoResourceWithRawResponse: + def __init__(self, argo: AsyncArgoResource) -> None: self._argo = argo @cached_property - def smart_routing(self) -> AsyncSmartRoutingWithRawResponse: - return AsyncSmartRoutingWithRawResponse(self._argo.smart_routing) + def smart_routing(self) -> AsyncSmartRoutingResourceWithRawResponse: + return AsyncSmartRoutingResourceWithRawResponse(self._argo.smart_routing) @cached_property - def tiered_caching(self) -> AsyncTieredCachingWithRawResponse: - return AsyncTieredCachingWithRawResponse(self._argo.tiered_caching) + def tiered_caching(self) -> AsyncTieredCachingResourceWithRawResponse: + return AsyncTieredCachingResourceWithRawResponse(self._argo.tiered_caching) -class ArgoWithStreamingResponse: - def __init__(self, argo: Argo) -> None: +class ArgoResourceWithStreamingResponse: + def __init__(self, argo: ArgoResource) -> None: self._argo = argo @cached_property - def smart_routing(self) -> SmartRoutingWithStreamingResponse: - return SmartRoutingWithStreamingResponse(self._argo.smart_routing) + def smart_routing(self) -> SmartRoutingResourceWithStreamingResponse: + return SmartRoutingResourceWithStreamingResponse(self._argo.smart_routing) @cached_property - def tiered_caching(self) -> TieredCachingWithStreamingResponse: - return TieredCachingWithStreamingResponse(self._argo.tiered_caching) + def tiered_caching(self) -> TieredCachingResourceWithStreamingResponse: + return TieredCachingResourceWithStreamingResponse(self._argo.tiered_caching) -class AsyncArgoWithStreamingResponse: - def __init__(self, argo: AsyncArgo) -> None: +class AsyncArgoResourceWithStreamingResponse: + def __init__(self, argo: AsyncArgoResource) -> None: self._argo = argo @cached_property - def smart_routing(self) -> AsyncSmartRoutingWithStreamingResponse: - return AsyncSmartRoutingWithStreamingResponse(self._argo.smart_routing) + def smart_routing(self) -> AsyncSmartRoutingResourceWithStreamingResponse: + return AsyncSmartRoutingResourceWithStreamingResponse(self._argo.smart_routing) @cached_property - def tiered_caching(self) -> AsyncTieredCachingWithStreamingResponse: - return AsyncTieredCachingWithStreamingResponse(self._argo.tiered_caching) + def tiered_caching(self) -> AsyncTieredCachingResourceWithStreamingResponse: + return AsyncTieredCachingResourceWithStreamingResponse(self._argo.tiered_caching) diff --git a/src/cloudflare/resources/argo/smart_routing.py b/src/cloudflare/resources/argo/smart_routing.py index a13a68fc48c..76b1e889a14 100644 --- a/src/cloudflare/resources/argo/smart_routing.py +++ b/src/cloudflare/resources/argo/smart_routing.py @@ -28,17 +28,17 @@ from ...types.argo.smart_routing_get_response import SmartRoutingGetResponse from ...types.argo.smart_routing_edit_response import SmartRoutingEditResponse -__all__ = ["SmartRouting", "AsyncSmartRouting"] +__all__ = ["SmartRoutingResource", "AsyncSmartRoutingResource"] -class SmartRouting(SyncAPIResource): +class SmartRoutingResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> SmartRoutingWithRawResponse: - return SmartRoutingWithRawResponse(self) + def with_raw_response(self) -> SmartRoutingResourceWithRawResponse: + return SmartRoutingResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> SmartRoutingWithStreamingResponse: - return SmartRoutingWithStreamingResponse(self) + def with_streaming_response(self) -> SmartRoutingResourceWithStreamingResponse: + return SmartRoutingResourceWithStreamingResponse(self) def edit( self, @@ -133,14 +133,14 @@ def get( ) -class AsyncSmartRouting(AsyncAPIResource): +class AsyncSmartRoutingResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncSmartRoutingWithRawResponse: - return AsyncSmartRoutingWithRawResponse(self) + def with_raw_response(self) -> AsyncSmartRoutingResourceWithRawResponse: + return AsyncSmartRoutingResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncSmartRoutingWithStreamingResponse: - return AsyncSmartRoutingWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncSmartRoutingResourceWithStreamingResponse: + return AsyncSmartRoutingResourceWithStreamingResponse(self) async def edit( self, @@ -235,8 +235,8 @@ async def get( ) -class SmartRoutingWithRawResponse: - def __init__(self, smart_routing: SmartRouting) -> None: +class SmartRoutingResourceWithRawResponse: + def __init__(self, smart_routing: SmartRoutingResource) -> None: self._smart_routing = smart_routing self.edit = to_raw_response_wrapper( @@ -247,8 +247,8 @@ def __init__(self, smart_routing: SmartRouting) -> None: ) -class AsyncSmartRoutingWithRawResponse: - def __init__(self, smart_routing: AsyncSmartRouting) -> None: +class AsyncSmartRoutingResourceWithRawResponse: + def __init__(self, smart_routing: AsyncSmartRoutingResource) -> None: self._smart_routing = smart_routing self.edit = async_to_raw_response_wrapper( @@ -259,8 +259,8 @@ def __init__(self, smart_routing: AsyncSmartRouting) -> None: ) -class SmartRoutingWithStreamingResponse: - def __init__(self, smart_routing: SmartRouting) -> None: +class SmartRoutingResourceWithStreamingResponse: + def __init__(self, smart_routing: SmartRoutingResource) -> None: self._smart_routing = smart_routing self.edit = to_streamed_response_wrapper( @@ -271,8 +271,8 @@ def __init__(self, smart_routing: SmartRouting) -> None: ) -class AsyncSmartRoutingWithStreamingResponse: - def __init__(self, smart_routing: AsyncSmartRouting) -> None: +class AsyncSmartRoutingResourceWithStreamingResponse: + def __init__(self, smart_routing: AsyncSmartRoutingResource) -> None: self._smart_routing = smart_routing self.edit = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/argo/tiered_caching.py b/src/cloudflare/resources/argo/tiered_caching.py index 3f61e93a106..89faa76ba4a 100644 --- a/src/cloudflare/resources/argo/tiered_caching.py +++ b/src/cloudflare/resources/argo/tiered_caching.py @@ -28,17 +28,17 @@ from ...types.argo.tiered_caching_get_response import TieredCachingGetResponse from ...types.argo.tiered_caching_edit_response import TieredCachingEditResponse -__all__ = ["TieredCaching", "AsyncTieredCaching"] +__all__ = ["TieredCachingResource", "AsyncTieredCachingResource"] -class TieredCaching(SyncAPIResource): +class TieredCachingResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> TieredCachingWithRawResponse: - return TieredCachingWithRawResponse(self) + def with_raw_response(self) -> TieredCachingResourceWithRawResponse: + return TieredCachingResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> TieredCachingWithStreamingResponse: - return TieredCachingWithStreamingResponse(self) + def with_streaming_response(self) -> TieredCachingResourceWithStreamingResponse: + return TieredCachingResourceWithStreamingResponse(self) def edit( self, @@ -133,14 +133,14 @@ def get( ) -class AsyncTieredCaching(AsyncAPIResource): +class AsyncTieredCachingResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncTieredCachingWithRawResponse: - return AsyncTieredCachingWithRawResponse(self) + def with_raw_response(self) -> AsyncTieredCachingResourceWithRawResponse: + return AsyncTieredCachingResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncTieredCachingWithStreamingResponse: - return AsyncTieredCachingWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncTieredCachingResourceWithStreamingResponse: + return AsyncTieredCachingResourceWithStreamingResponse(self) async def edit( self, @@ -235,8 +235,8 @@ async def get( ) -class TieredCachingWithRawResponse: - def __init__(self, tiered_caching: TieredCaching) -> None: +class TieredCachingResourceWithRawResponse: + def __init__(self, tiered_caching: TieredCachingResource) -> None: self._tiered_caching = tiered_caching self.edit = to_raw_response_wrapper( @@ -247,8 +247,8 @@ def __init__(self, tiered_caching: TieredCaching) -> None: ) -class AsyncTieredCachingWithRawResponse: - def __init__(self, tiered_caching: AsyncTieredCaching) -> None: +class AsyncTieredCachingResourceWithRawResponse: + def __init__(self, tiered_caching: AsyncTieredCachingResource) -> None: self._tiered_caching = tiered_caching self.edit = async_to_raw_response_wrapper( @@ -259,8 +259,8 @@ def __init__(self, tiered_caching: AsyncTieredCaching) -> None: ) -class TieredCachingWithStreamingResponse: - def __init__(self, tiered_caching: TieredCaching) -> None: +class TieredCachingResourceWithStreamingResponse: + def __init__(self, tiered_caching: TieredCachingResource) -> None: self._tiered_caching = tiered_caching self.edit = to_streamed_response_wrapper( @@ -271,8 +271,8 @@ def __init__(self, tiered_caching: TieredCaching) -> None: ) -class AsyncTieredCachingWithStreamingResponse: - def __init__(self, tiered_caching: AsyncTieredCaching) -> None: +class AsyncTieredCachingResourceWithStreamingResponse: + def __init__(self, tiered_caching: AsyncTieredCachingResource) -> None: self._tiered_caching = tiered_caching self.edit = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/audit_logs.py b/src/cloudflare/resources/audit_logs.py index 85d8a670ff5..2d8cd11c4ba 100644 --- a/src/cloudflare/resources/audit_logs.py +++ b/src/cloudflare/resources/audit_logs.py @@ -26,17 +26,17 @@ from ..types.audit_logs import audit_log_list_params from ..types.shared.audit_log import AuditLog -__all__ = ["AuditLogs", "AsyncAuditLogs"] +__all__ = ["AuditLogsResource", "AsyncAuditLogsResource"] -class AuditLogs(SyncAPIResource): +class AuditLogsResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> AuditLogsWithRawResponse: - return AuditLogsWithRawResponse(self) + def with_raw_response(self) -> AuditLogsResourceWithRawResponse: + return AuditLogsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AuditLogsWithStreamingResponse: - return AuditLogsWithStreamingResponse(self) + def with_streaming_response(self) -> AuditLogsResourceWithStreamingResponse: + return AuditLogsResourceWithStreamingResponse(self) def list( self, @@ -125,14 +125,14 @@ def list( ) -class AsyncAuditLogs(AsyncAPIResource): +class AsyncAuditLogsResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncAuditLogsWithRawResponse: - return AsyncAuditLogsWithRawResponse(self) + def with_raw_response(self) -> AsyncAuditLogsResourceWithRawResponse: + return AsyncAuditLogsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncAuditLogsWithStreamingResponse: - return AsyncAuditLogsWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncAuditLogsResourceWithStreamingResponse: + return AsyncAuditLogsResourceWithStreamingResponse(self) def list( self, @@ -221,8 +221,8 @@ def list( ) -class AuditLogsWithRawResponse: - def __init__(self, audit_logs: AuditLogs) -> None: +class AuditLogsResourceWithRawResponse: + def __init__(self, audit_logs: AuditLogsResource) -> None: self._audit_logs = audit_logs self.list = to_raw_response_wrapper( @@ -230,8 +230,8 @@ def __init__(self, audit_logs: AuditLogs) -> None: ) -class AsyncAuditLogsWithRawResponse: - def __init__(self, audit_logs: AsyncAuditLogs) -> None: +class AsyncAuditLogsResourceWithRawResponse: + def __init__(self, audit_logs: AsyncAuditLogsResource) -> None: self._audit_logs = audit_logs self.list = async_to_raw_response_wrapper( @@ -239,8 +239,8 @@ def __init__(self, audit_logs: AsyncAuditLogs) -> None: ) -class AuditLogsWithStreamingResponse: - def __init__(self, audit_logs: AuditLogs) -> None: +class AuditLogsResourceWithStreamingResponse: + def __init__(self, audit_logs: AuditLogsResource) -> None: self._audit_logs = audit_logs self.list = to_streamed_response_wrapper( @@ -248,8 +248,8 @@ def __init__(self, audit_logs: AuditLogs) -> None: ) -class AsyncAuditLogsWithStreamingResponse: - def __init__(self, audit_logs: AsyncAuditLogs) -> None: +class AsyncAuditLogsResourceWithStreamingResponse: + def __init__(self, audit_logs: AsyncAuditLogsResource) -> None: self._audit_logs = audit_logs self.list = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/billing/__init__.py b/src/cloudflare/resources/billing/__init__.py index 70448dd175c..c16ec03c4dc 100644 --- a/src/cloudflare/resources/billing/__init__.py +++ b/src/cloudflare/resources/billing/__init__.py @@ -1,33 +1,33 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from .billing import ( - Billing, - AsyncBilling, - BillingWithRawResponse, - AsyncBillingWithRawResponse, - BillingWithStreamingResponse, - AsyncBillingWithStreamingResponse, + BillingResource, + AsyncBillingResource, + BillingResourceWithRawResponse, + AsyncBillingResourceWithRawResponse, + BillingResourceWithStreamingResponse, + AsyncBillingResourceWithStreamingResponse, ) from .profiles import ( - Profiles, - AsyncProfiles, - ProfilesWithRawResponse, - AsyncProfilesWithRawResponse, - ProfilesWithStreamingResponse, - AsyncProfilesWithStreamingResponse, + ProfilesResource, + AsyncProfilesResource, + ProfilesResourceWithRawResponse, + AsyncProfilesResourceWithRawResponse, + ProfilesResourceWithStreamingResponse, + AsyncProfilesResourceWithStreamingResponse, ) __all__ = [ - "Profiles", - "AsyncProfiles", - "ProfilesWithRawResponse", - "AsyncProfilesWithRawResponse", - "ProfilesWithStreamingResponse", - "AsyncProfilesWithStreamingResponse", - "Billing", - "AsyncBilling", - "BillingWithRawResponse", - "AsyncBillingWithRawResponse", - "BillingWithStreamingResponse", - "AsyncBillingWithStreamingResponse", + "ProfilesResource", + "AsyncProfilesResource", + "ProfilesResourceWithRawResponse", + "AsyncProfilesResourceWithRawResponse", + "ProfilesResourceWithStreamingResponse", + "AsyncProfilesResourceWithStreamingResponse", + "BillingResource", + "AsyncBillingResource", + "BillingResourceWithRawResponse", + "AsyncBillingResourceWithRawResponse", + "BillingResourceWithStreamingResponse", + "AsyncBillingResourceWithStreamingResponse", ] diff --git a/src/cloudflare/resources/billing/billing.py b/src/cloudflare/resources/billing/billing.py index 84417aaca2f..4eb4692ac3a 100644 --- a/src/cloudflare/resources/billing/billing.py +++ b/src/cloudflare/resources/billing/billing.py @@ -3,78 +3,78 @@ from __future__ import annotations from .profiles import ( - Profiles, - AsyncProfiles, - ProfilesWithRawResponse, - AsyncProfilesWithRawResponse, - ProfilesWithStreamingResponse, - AsyncProfilesWithStreamingResponse, + ProfilesResource, + AsyncProfilesResource, + ProfilesResourceWithRawResponse, + AsyncProfilesResourceWithRawResponse, + ProfilesResourceWithStreamingResponse, + AsyncProfilesResourceWithStreamingResponse, ) from ..._compat import cached_property from ..._resource import SyncAPIResource, AsyncAPIResource -__all__ = ["Billing", "AsyncBilling"] +__all__ = ["BillingResource", "AsyncBillingResource"] -class Billing(SyncAPIResource): +class BillingResource(SyncAPIResource): @cached_property - def profiles(self) -> Profiles: - return Profiles(self._client) + def profiles(self) -> ProfilesResource: + return ProfilesResource(self._client) @cached_property - def with_raw_response(self) -> BillingWithRawResponse: - return BillingWithRawResponse(self) + def with_raw_response(self) -> BillingResourceWithRawResponse: + return BillingResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> BillingWithStreamingResponse: - return BillingWithStreamingResponse(self) + def with_streaming_response(self) -> BillingResourceWithStreamingResponse: + return BillingResourceWithStreamingResponse(self) -class AsyncBilling(AsyncAPIResource): +class AsyncBillingResource(AsyncAPIResource): @cached_property - def profiles(self) -> AsyncProfiles: - return AsyncProfiles(self._client) + def profiles(self) -> AsyncProfilesResource: + return AsyncProfilesResource(self._client) @cached_property - def with_raw_response(self) -> AsyncBillingWithRawResponse: - return AsyncBillingWithRawResponse(self) + def with_raw_response(self) -> AsyncBillingResourceWithRawResponse: + return AsyncBillingResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncBillingWithStreamingResponse: - return AsyncBillingWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncBillingResourceWithStreamingResponse: + return AsyncBillingResourceWithStreamingResponse(self) -class BillingWithRawResponse: - def __init__(self, billing: Billing) -> None: +class BillingResourceWithRawResponse: + def __init__(self, billing: BillingResource) -> None: self._billing = billing @cached_property - def profiles(self) -> ProfilesWithRawResponse: - return ProfilesWithRawResponse(self._billing.profiles) + def profiles(self) -> ProfilesResourceWithRawResponse: + return ProfilesResourceWithRawResponse(self._billing.profiles) -class AsyncBillingWithRawResponse: - def __init__(self, billing: AsyncBilling) -> None: +class AsyncBillingResourceWithRawResponse: + def __init__(self, billing: AsyncBillingResource) -> None: self._billing = billing @cached_property - def profiles(self) -> AsyncProfilesWithRawResponse: - return AsyncProfilesWithRawResponse(self._billing.profiles) + def profiles(self) -> AsyncProfilesResourceWithRawResponse: + return AsyncProfilesResourceWithRawResponse(self._billing.profiles) -class BillingWithStreamingResponse: - def __init__(self, billing: Billing) -> None: +class BillingResourceWithStreamingResponse: + def __init__(self, billing: BillingResource) -> None: self._billing = billing @cached_property - def profiles(self) -> ProfilesWithStreamingResponse: - return ProfilesWithStreamingResponse(self._billing.profiles) + def profiles(self) -> ProfilesResourceWithStreamingResponse: + return ProfilesResourceWithStreamingResponse(self._billing.profiles) -class AsyncBillingWithStreamingResponse: - def __init__(self, billing: AsyncBilling) -> None: +class AsyncBillingResourceWithStreamingResponse: + def __init__(self, billing: AsyncBillingResource) -> None: self._billing = billing @cached_property - def profiles(self) -> AsyncProfilesWithStreamingResponse: - return AsyncProfilesWithStreamingResponse(self._billing.profiles) + def profiles(self) -> AsyncProfilesResourceWithStreamingResponse: + return AsyncProfilesResourceWithStreamingResponse(self._billing.profiles) diff --git a/src/cloudflare/resources/billing/profiles.py b/src/cloudflare/resources/billing/profiles.py index 33890e895b4..011916b05ba 100644 --- a/src/cloudflare/resources/billing/profiles.py +++ b/src/cloudflare/resources/billing/profiles.py @@ -21,17 +21,17 @@ ) from ...types.billing.profile_get_response import ProfileGetResponse -__all__ = ["Profiles", "AsyncProfiles"] +__all__ = ["ProfilesResource", "AsyncProfilesResource"] -class Profiles(SyncAPIResource): +class ProfilesResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> ProfilesWithRawResponse: - return ProfilesWithRawResponse(self) + def with_raw_response(self) -> ProfilesResourceWithRawResponse: + return ProfilesResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> ProfilesWithStreamingResponse: - return ProfilesWithStreamingResponse(self) + def with_streaming_response(self) -> ProfilesResourceWithStreamingResponse: + return ProfilesResourceWithStreamingResponse(self) def get( self, @@ -74,14 +74,14 @@ def get( ) -class AsyncProfiles(AsyncAPIResource): +class AsyncProfilesResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncProfilesWithRawResponse: - return AsyncProfilesWithRawResponse(self) + def with_raw_response(self) -> AsyncProfilesResourceWithRawResponse: + return AsyncProfilesResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncProfilesWithStreamingResponse: - return AsyncProfilesWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncProfilesResourceWithStreamingResponse: + return AsyncProfilesResourceWithStreamingResponse(self) async def get( self, @@ -124,8 +124,8 @@ async def get( ) -class ProfilesWithRawResponse: - def __init__(self, profiles: Profiles) -> None: +class ProfilesResourceWithRawResponse: + def __init__(self, profiles: ProfilesResource) -> None: self._profiles = profiles self.get = to_raw_response_wrapper( @@ -133,8 +133,8 @@ def __init__(self, profiles: Profiles) -> None: ) -class AsyncProfilesWithRawResponse: - def __init__(self, profiles: AsyncProfiles) -> None: +class AsyncProfilesResourceWithRawResponse: + def __init__(self, profiles: AsyncProfilesResource) -> None: self._profiles = profiles self.get = async_to_raw_response_wrapper( @@ -142,8 +142,8 @@ def __init__(self, profiles: AsyncProfiles) -> None: ) -class ProfilesWithStreamingResponse: - def __init__(self, profiles: Profiles) -> None: +class ProfilesResourceWithStreamingResponse: + def __init__(self, profiles: ProfilesResource) -> None: self._profiles = profiles self.get = to_streamed_response_wrapper( @@ -151,8 +151,8 @@ def __init__(self, profiles: Profiles) -> None: ) -class AsyncProfilesWithStreamingResponse: - def __init__(self, profiles: AsyncProfiles) -> None: +class AsyncProfilesResourceWithStreamingResponse: + def __init__(self, profiles: AsyncProfilesResource) -> None: self._profiles = profiles self.get = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/bot_management.py b/src/cloudflare/resources/bot_management.py index 2466e3d53a9..a0e2d7d637e 100644 --- a/src/cloudflare/resources/bot_management.py +++ b/src/cloudflare/resources/bot_management.py @@ -29,17 +29,17 @@ from ..types.bot_management.bot_management_get_response import BotManagementGetResponse from ..types.bot_management.bot_management_update_response import BotManagementUpdateResponse -__all__ = ["BotManagement", "AsyncBotManagement"] +__all__ = ["BotManagementResource", "AsyncBotManagementResource"] -class BotManagement(SyncAPIResource): +class BotManagementResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> BotManagementWithRawResponse: - return BotManagementWithRawResponse(self) + def with_raw_response(self) -> BotManagementResourceWithRawResponse: + return BotManagementResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> BotManagementWithStreamingResponse: - return BotManagementWithStreamingResponse(self) + def with_streaming_response(self) -> BotManagementResourceWithStreamingResponse: + return BotManagementResourceWithStreamingResponse(self) @overload def update( @@ -347,14 +347,14 @@ def get( ) -class AsyncBotManagement(AsyncAPIResource): +class AsyncBotManagementResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncBotManagementWithRawResponse: - return AsyncBotManagementWithRawResponse(self) + def with_raw_response(self) -> AsyncBotManagementResourceWithRawResponse: + return AsyncBotManagementResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncBotManagementWithStreamingResponse: - return AsyncBotManagementWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncBotManagementResourceWithStreamingResponse: + return AsyncBotManagementResourceWithStreamingResponse(self) @overload async def update( @@ -662,8 +662,8 @@ async def get( ) -class BotManagementWithRawResponse: - def __init__(self, bot_management: BotManagement) -> None: +class BotManagementResourceWithRawResponse: + def __init__(self, bot_management: BotManagementResource) -> None: self._bot_management = bot_management self.update = to_raw_response_wrapper( @@ -674,8 +674,8 @@ def __init__(self, bot_management: BotManagement) -> None: ) -class AsyncBotManagementWithRawResponse: - def __init__(self, bot_management: AsyncBotManagement) -> None: +class AsyncBotManagementResourceWithRawResponse: + def __init__(self, bot_management: AsyncBotManagementResource) -> None: self._bot_management = bot_management self.update = async_to_raw_response_wrapper( @@ -686,8 +686,8 @@ def __init__(self, bot_management: AsyncBotManagement) -> None: ) -class BotManagementWithStreamingResponse: - def __init__(self, bot_management: BotManagement) -> None: +class BotManagementResourceWithStreamingResponse: + def __init__(self, bot_management: BotManagementResource) -> None: self._bot_management = bot_management self.update = to_streamed_response_wrapper( @@ -698,8 +698,8 @@ def __init__(self, bot_management: BotManagement) -> None: ) -class AsyncBotManagementWithStreamingResponse: - def __init__(self, bot_management: AsyncBotManagement) -> None: +class AsyncBotManagementResourceWithStreamingResponse: + def __init__(self, bot_management: AsyncBotManagementResource) -> None: self._bot_management = bot_management self.update = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/brand_protection.py b/src/cloudflare/resources/brand_protection.py index b587a9d45fb..093a59d6c7e 100644 --- a/src/cloudflare/resources/brand_protection.py +++ b/src/cloudflare/resources/brand_protection.py @@ -27,17 +27,17 @@ from ..types.brand_protection.info import Info from ..types.brand_protection.submit import Submit -__all__ = ["BrandProtection", "AsyncBrandProtection"] +__all__ = ["BrandProtectionResource", "AsyncBrandProtectionResource"] -class BrandProtection(SyncAPIResource): +class BrandProtectionResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> BrandProtectionWithRawResponse: - return BrandProtectionWithRawResponse(self) + def with_raw_response(self) -> BrandProtectionResourceWithRawResponse: + return BrandProtectionResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> BrandProtectionWithStreamingResponse: - return BrandProtectionWithStreamingResponse(self) + def with_streaming_response(self) -> BrandProtectionResourceWithStreamingResponse: + return BrandProtectionResourceWithStreamingResponse(self) def submit( self, @@ -131,14 +131,14 @@ def url_info( ) -class AsyncBrandProtection(AsyncAPIResource): +class AsyncBrandProtectionResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncBrandProtectionWithRawResponse: - return AsyncBrandProtectionWithRawResponse(self) + def with_raw_response(self) -> AsyncBrandProtectionResourceWithRawResponse: + return AsyncBrandProtectionResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncBrandProtectionWithStreamingResponse: - return AsyncBrandProtectionWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncBrandProtectionResourceWithStreamingResponse: + return AsyncBrandProtectionResourceWithStreamingResponse(self) async def submit( self, @@ -232,8 +232,8 @@ async def url_info( ) -class BrandProtectionWithRawResponse: - def __init__(self, brand_protection: BrandProtection) -> None: +class BrandProtectionResourceWithRawResponse: + def __init__(self, brand_protection: BrandProtectionResource) -> None: self._brand_protection = brand_protection self.submit = to_raw_response_wrapper( @@ -244,8 +244,8 @@ def __init__(self, brand_protection: BrandProtection) -> None: ) -class AsyncBrandProtectionWithRawResponse: - def __init__(self, brand_protection: AsyncBrandProtection) -> None: +class AsyncBrandProtectionResourceWithRawResponse: + def __init__(self, brand_protection: AsyncBrandProtectionResource) -> None: self._brand_protection = brand_protection self.submit = async_to_raw_response_wrapper( @@ -256,8 +256,8 @@ def __init__(self, brand_protection: AsyncBrandProtection) -> None: ) -class BrandProtectionWithStreamingResponse: - def __init__(self, brand_protection: BrandProtection) -> None: +class BrandProtectionResourceWithStreamingResponse: + def __init__(self, brand_protection: BrandProtectionResource) -> None: self._brand_protection = brand_protection self.submit = to_streamed_response_wrapper( @@ -268,8 +268,8 @@ def __init__(self, brand_protection: BrandProtection) -> None: ) -class AsyncBrandProtectionWithStreamingResponse: - def __init__(self, brand_protection: AsyncBrandProtection) -> None: +class AsyncBrandProtectionResourceWithStreamingResponse: + def __init__(self, brand_protection: AsyncBrandProtectionResource) -> None: self._brand_protection = brand_protection self.submit = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/cache/__init__.py b/src/cloudflare/resources/cache/__init__.py index 8573b2019be..faa73ad7735 100644 --- a/src/cloudflare/resources/cache/__init__.py +++ b/src/cloudflare/resources/cache/__init__.py @@ -1,20 +1,20 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from .cache import ( - Cache, - AsyncCache, - CacheWithRawResponse, - AsyncCacheWithRawResponse, - CacheWithStreamingResponse, - AsyncCacheWithStreamingResponse, + CacheResource, + AsyncCacheResource, + CacheResourceWithRawResponse, + AsyncCacheResourceWithRawResponse, + CacheResourceWithStreamingResponse, + AsyncCacheResourceWithStreamingResponse, ) from .variants import ( - Variants, - AsyncVariants, - VariantsWithRawResponse, - AsyncVariantsWithRawResponse, - VariantsWithStreamingResponse, - AsyncVariantsWithStreamingResponse, + VariantsResource, + AsyncVariantsResource, + VariantsResourceWithRawResponse, + AsyncVariantsResourceWithRawResponse, + VariantsResourceWithStreamingResponse, + AsyncVariantsResourceWithStreamingResponse, ) from .cache_reserve import ( CacheReserveResource, @@ -25,12 +25,12 @@ AsyncCacheReserveResourceWithStreamingResponse, ) from .smart_tiered_cache import ( - SmartTieredCache, - AsyncSmartTieredCache, - SmartTieredCacheWithRawResponse, - AsyncSmartTieredCacheWithRawResponse, - SmartTieredCacheWithStreamingResponse, - AsyncSmartTieredCacheWithStreamingResponse, + SmartTieredCacheResource, + AsyncSmartTieredCacheResource, + SmartTieredCacheResourceWithRawResponse, + AsyncSmartTieredCacheResourceWithRawResponse, + SmartTieredCacheResourceWithStreamingResponse, + AsyncSmartTieredCacheResourceWithStreamingResponse, ) from .regional_tiered_cache import ( RegionalTieredCacheResource, @@ -48,28 +48,28 @@ "AsyncCacheReserveResourceWithRawResponse", "CacheReserveResourceWithStreamingResponse", "AsyncCacheReserveResourceWithStreamingResponse", - "SmartTieredCache", - "AsyncSmartTieredCache", - "SmartTieredCacheWithRawResponse", - "AsyncSmartTieredCacheWithRawResponse", - "SmartTieredCacheWithStreamingResponse", - "AsyncSmartTieredCacheWithStreamingResponse", - "Variants", - "AsyncVariants", - "VariantsWithRawResponse", - "AsyncVariantsWithRawResponse", - "VariantsWithStreamingResponse", - "AsyncVariantsWithStreamingResponse", + "SmartTieredCacheResource", + "AsyncSmartTieredCacheResource", + "SmartTieredCacheResourceWithRawResponse", + "AsyncSmartTieredCacheResourceWithRawResponse", + "SmartTieredCacheResourceWithStreamingResponse", + "AsyncSmartTieredCacheResourceWithStreamingResponse", + "VariantsResource", + "AsyncVariantsResource", + "VariantsResourceWithRawResponse", + "AsyncVariantsResourceWithRawResponse", + "VariantsResourceWithStreamingResponse", + "AsyncVariantsResourceWithStreamingResponse", "RegionalTieredCacheResource", "AsyncRegionalTieredCacheResource", "RegionalTieredCacheResourceWithRawResponse", "AsyncRegionalTieredCacheResourceWithRawResponse", "RegionalTieredCacheResourceWithStreamingResponse", "AsyncRegionalTieredCacheResourceWithStreamingResponse", - "Cache", - "AsyncCache", - "CacheWithRawResponse", - "AsyncCacheWithRawResponse", - "CacheWithStreamingResponse", - "AsyncCacheWithStreamingResponse", + "CacheResource", + "AsyncCacheResource", + "CacheResourceWithRawResponse", + "AsyncCacheResourceWithRawResponse", + "CacheResourceWithStreamingResponse", + "AsyncCacheResourceWithStreamingResponse", ] diff --git a/src/cloudflare/resources/cache/cache.py b/src/cloudflare/resources/cache/cache.py index 8888931e5bd..c46d707bd24 100644 --- a/src/cloudflare/resources/cache/cache.py +++ b/src/cloudflare/resources/cache/cache.py @@ -13,12 +13,12 @@ async_maybe_transform, ) from .variants import ( - Variants, - AsyncVariants, - VariantsWithRawResponse, - AsyncVariantsWithRawResponse, - VariantsWithStreamingResponse, - AsyncVariantsWithStreamingResponse, + VariantsResource, + AsyncVariantsResource, + VariantsResourceWithRawResponse, + AsyncVariantsResourceWithRawResponse, + VariantsResourceWithStreamingResponse, + AsyncVariantsResourceWithStreamingResponse, ) from ..._compat import cached_property from ..._resource import SyncAPIResource, AsyncAPIResource @@ -42,12 +42,12 @@ make_request_options, ) from .smart_tiered_cache import ( - SmartTieredCache, - AsyncSmartTieredCache, - SmartTieredCacheWithRawResponse, - AsyncSmartTieredCacheWithRawResponse, - SmartTieredCacheWithStreamingResponse, - AsyncSmartTieredCacheWithStreamingResponse, + SmartTieredCacheResource, + AsyncSmartTieredCacheResource, + SmartTieredCacheResourceWithRawResponse, + AsyncSmartTieredCacheResourceWithRawResponse, + SmartTieredCacheResourceWithStreamingResponse, + AsyncSmartTieredCacheResourceWithStreamingResponse, ) from .regional_tiered_cache import ( RegionalTieredCacheResource, @@ -59,33 +59,33 @@ ) from ...types.cache.cache_purge_response import CachePurgeResponse -__all__ = ["Cache", "AsyncCache"] +__all__ = ["CacheResource", "AsyncCacheResource"] -class Cache(SyncAPIResource): +class CacheResource(SyncAPIResource): @cached_property def cache_reserve(self) -> CacheReserveResource: return CacheReserveResource(self._client) @cached_property - def smart_tiered_cache(self) -> SmartTieredCache: - return SmartTieredCache(self._client) + def smart_tiered_cache(self) -> SmartTieredCacheResource: + return SmartTieredCacheResource(self._client) @cached_property - def variants(self) -> Variants: - return Variants(self._client) + def variants(self) -> VariantsResource: + return VariantsResource(self._client) @cached_property def regional_tiered_cache(self) -> RegionalTieredCacheResource: return RegionalTieredCacheResource(self._client) @cached_property - def with_raw_response(self) -> CacheWithRawResponse: - return CacheWithRawResponse(self) + def with_raw_response(self) -> CacheResourceWithRawResponse: + return CacheResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> CacheWithStreamingResponse: - return CacheWithStreamingResponse(self) + def with_streaming_response(self) -> CacheResourceWithStreamingResponse: + return CacheResourceWithStreamingResponse(self) @overload def purge( @@ -414,30 +414,30 @@ def purge( ) -class AsyncCache(AsyncAPIResource): +class AsyncCacheResource(AsyncAPIResource): @cached_property def cache_reserve(self) -> AsyncCacheReserveResource: return AsyncCacheReserveResource(self._client) @cached_property - def smart_tiered_cache(self) -> AsyncSmartTieredCache: - return AsyncSmartTieredCache(self._client) + def smart_tiered_cache(self) -> AsyncSmartTieredCacheResource: + return AsyncSmartTieredCacheResource(self._client) @cached_property - def variants(self) -> AsyncVariants: - return AsyncVariants(self._client) + def variants(self) -> AsyncVariantsResource: + return AsyncVariantsResource(self._client) @cached_property def regional_tiered_cache(self) -> AsyncRegionalTieredCacheResource: return AsyncRegionalTieredCacheResource(self._client) @cached_property - def with_raw_response(self) -> AsyncCacheWithRawResponse: - return AsyncCacheWithRawResponse(self) + def with_raw_response(self) -> AsyncCacheResourceWithRawResponse: + return AsyncCacheResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncCacheWithStreamingResponse: - return AsyncCacheWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncCacheResourceWithStreamingResponse: + return AsyncCacheResourceWithStreamingResponse(self) @overload async def purge( @@ -766,8 +766,8 @@ async def purge( ) -class CacheWithRawResponse: - def __init__(self, cache: Cache) -> None: +class CacheResourceWithRawResponse: + def __init__(self, cache: CacheResource) -> None: self._cache = cache self.purge = to_raw_response_wrapper( @@ -779,20 +779,20 @@ def cache_reserve(self) -> CacheReserveResourceWithRawResponse: return CacheReserveResourceWithRawResponse(self._cache.cache_reserve) @cached_property - def smart_tiered_cache(self) -> SmartTieredCacheWithRawResponse: - return SmartTieredCacheWithRawResponse(self._cache.smart_tiered_cache) + def smart_tiered_cache(self) -> SmartTieredCacheResourceWithRawResponse: + return SmartTieredCacheResourceWithRawResponse(self._cache.smart_tiered_cache) @cached_property - def variants(self) -> VariantsWithRawResponse: - return VariantsWithRawResponse(self._cache.variants) + def variants(self) -> VariantsResourceWithRawResponse: + return VariantsResourceWithRawResponse(self._cache.variants) @cached_property def regional_tiered_cache(self) -> RegionalTieredCacheResourceWithRawResponse: return RegionalTieredCacheResourceWithRawResponse(self._cache.regional_tiered_cache) -class AsyncCacheWithRawResponse: - def __init__(self, cache: AsyncCache) -> None: +class AsyncCacheResourceWithRawResponse: + def __init__(self, cache: AsyncCacheResource) -> None: self._cache = cache self.purge = async_to_raw_response_wrapper( @@ -804,20 +804,20 @@ def cache_reserve(self) -> AsyncCacheReserveResourceWithRawResponse: return AsyncCacheReserveResourceWithRawResponse(self._cache.cache_reserve) @cached_property - def smart_tiered_cache(self) -> AsyncSmartTieredCacheWithRawResponse: - return AsyncSmartTieredCacheWithRawResponse(self._cache.smart_tiered_cache) + def smart_tiered_cache(self) -> AsyncSmartTieredCacheResourceWithRawResponse: + return AsyncSmartTieredCacheResourceWithRawResponse(self._cache.smart_tiered_cache) @cached_property - def variants(self) -> AsyncVariantsWithRawResponse: - return AsyncVariantsWithRawResponse(self._cache.variants) + def variants(self) -> AsyncVariantsResourceWithRawResponse: + return AsyncVariantsResourceWithRawResponse(self._cache.variants) @cached_property def regional_tiered_cache(self) -> AsyncRegionalTieredCacheResourceWithRawResponse: return AsyncRegionalTieredCacheResourceWithRawResponse(self._cache.regional_tiered_cache) -class CacheWithStreamingResponse: - def __init__(self, cache: Cache) -> None: +class CacheResourceWithStreamingResponse: + def __init__(self, cache: CacheResource) -> None: self._cache = cache self.purge = to_streamed_response_wrapper( @@ -829,20 +829,20 @@ def cache_reserve(self) -> CacheReserveResourceWithStreamingResponse: return CacheReserveResourceWithStreamingResponse(self._cache.cache_reserve) @cached_property - def smart_tiered_cache(self) -> SmartTieredCacheWithStreamingResponse: - return SmartTieredCacheWithStreamingResponse(self._cache.smart_tiered_cache) + def smart_tiered_cache(self) -> SmartTieredCacheResourceWithStreamingResponse: + return SmartTieredCacheResourceWithStreamingResponse(self._cache.smart_tiered_cache) @cached_property - def variants(self) -> VariantsWithStreamingResponse: - return VariantsWithStreamingResponse(self._cache.variants) + def variants(self) -> VariantsResourceWithStreamingResponse: + return VariantsResourceWithStreamingResponse(self._cache.variants) @cached_property def regional_tiered_cache(self) -> RegionalTieredCacheResourceWithStreamingResponse: return RegionalTieredCacheResourceWithStreamingResponse(self._cache.regional_tiered_cache) -class AsyncCacheWithStreamingResponse: - def __init__(self, cache: AsyncCache) -> None: +class AsyncCacheResourceWithStreamingResponse: + def __init__(self, cache: AsyncCacheResource) -> None: self._cache = cache self.purge = async_to_streamed_response_wrapper( @@ -854,12 +854,12 @@ def cache_reserve(self) -> AsyncCacheReserveResourceWithStreamingResponse: return AsyncCacheReserveResourceWithStreamingResponse(self._cache.cache_reserve) @cached_property - def smart_tiered_cache(self) -> AsyncSmartTieredCacheWithStreamingResponse: - return AsyncSmartTieredCacheWithStreamingResponse(self._cache.smart_tiered_cache) + def smart_tiered_cache(self) -> AsyncSmartTieredCacheResourceWithStreamingResponse: + return AsyncSmartTieredCacheResourceWithStreamingResponse(self._cache.smart_tiered_cache) @cached_property - def variants(self) -> AsyncVariantsWithStreamingResponse: - return AsyncVariantsWithStreamingResponse(self._cache.variants) + def variants(self) -> AsyncVariantsResourceWithStreamingResponse: + return AsyncVariantsResourceWithStreamingResponse(self._cache.variants) @cached_property def regional_tiered_cache(self) -> AsyncRegionalTieredCacheResourceWithStreamingResponse: diff --git a/src/cloudflare/resources/cache/smart_tiered_cache.py b/src/cloudflare/resources/cache/smart_tiered_cache.py index 18aca3fe8ad..39c7e79e4b0 100644 --- a/src/cloudflare/resources/cache/smart_tiered_cache.py +++ b/src/cloudflare/resources/cache/smart_tiered_cache.py @@ -29,17 +29,17 @@ from ...types.cache.smart_tiered_cache_edit_response import SmartTieredCacheEditResponse from ...types.cache.smart_tiered_cache_delete_response import SmartTieredCacheDeleteResponse -__all__ = ["SmartTieredCache", "AsyncSmartTieredCache"] +__all__ = ["SmartTieredCacheResource", "AsyncSmartTieredCacheResource"] -class SmartTieredCache(SyncAPIResource): +class SmartTieredCacheResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> SmartTieredCacheWithRawResponse: - return SmartTieredCacheWithRawResponse(self) + def with_raw_response(self) -> SmartTieredCacheResourceWithRawResponse: + return SmartTieredCacheResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> SmartTieredCacheWithStreamingResponse: - return SmartTieredCacheWithStreamingResponse(self) + def with_streaming_response(self) -> SmartTieredCacheResourceWithStreamingResponse: + return SmartTieredCacheResourceWithStreamingResponse(self) def delete( self, @@ -180,14 +180,14 @@ def get( ) -class AsyncSmartTieredCache(AsyncAPIResource): +class AsyncSmartTieredCacheResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncSmartTieredCacheWithRawResponse: - return AsyncSmartTieredCacheWithRawResponse(self) + def with_raw_response(self) -> AsyncSmartTieredCacheResourceWithRawResponse: + return AsyncSmartTieredCacheResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncSmartTieredCacheWithStreamingResponse: - return AsyncSmartTieredCacheWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncSmartTieredCacheResourceWithStreamingResponse: + return AsyncSmartTieredCacheResourceWithStreamingResponse(self) async def delete( self, @@ -330,8 +330,8 @@ async def get( ) -class SmartTieredCacheWithRawResponse: - def __init__(self, smart_tiered_cache: SmartTieredCache) -> None: +class SmartTieredCacheResourceWithRawResponse: + def __init__(self, smart_tiered_cache: SmartTieredCacheResource) -> None: self._smart_tiered_cache = smart_tiered_cache self.delete = to_raw_response_wrapper( @@ -345,8 +345,8 @@ def __init__(self, smart_tiered_cache: SmartTieredCache) -> None: ) -class AsyncSmartTieredCacheWithRawResponse: - def __init__(self, smart_tiered_cache: AsyncSmartTieredCache) -> None: +class AsyncSmartTieredCacheResourceWithRawResponse: + def __init__(self, smart_tiered_cache: AsyncSmartTieredCacheResource) -> None: self._smart_tiered_cache = smart_tiered_cache self.delete = async_to_raw_response_wrapper( @@ -360,8 +360,8 @@ def __init__(self, smart_tiered_cache: AsyncSmartTieredCache) -> None: ) -class SmartTieredCacheWithStreamingResponse: - def __init__(self, smart_tiered_cache: SmartTieredCache) -> None: +class SmartTieredCacheResourceWithStreamingResponse: + def __init__(self, smart_tiered_cache: SmartTieredCacheResource) -> None: self._smart_tiered_cache = smart_tiered_cache self.delete = to_streamed_response_wrapper( @@ -375,8 +375,8 @@ def __init__(self, smart_tiered_cache: SmartTieredCache) -> None: ) -class AsyncSmartTieredCacheWithStreamingResponse: - def __init__(self, smart_tiered_cache: AsyncSmartTieredCache) -> None: +class AsyncSmartTieredCacheResourceWithStreamingResponse: + def __init__(self, smart_tiered_cache: AsyncSmartTieredCacheResource) -> None: self._smart_tiered_cache = smart_tiered_cache self.delete = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/cache/variants.py b/src/cloudflare/resources/cache/variants.py index 872f9d09ff4..c7043671ef7 100644 --- a/src/cloudflare/resources/cache/variants.py +++ b/src/cloudflare/resources/cache/variants.py @@ -28,17 +28,17 @@ from ...types.cache.variant_get_response import VariantGetResponse from ...types.cache.variant_edit_response import VariantEditResponse -__all__ = ["Variants", "AsyncVariants"] +__all__ = ["VariantsResource", "AsyncVariantsResource"] -class Variants(SyncAPIResource): +class VariantsResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> VariantsWithRawResponse: - return VariantsWithRawResponse(self) + def with_raw_response(self) -> VariantsResourceWithRawResponse: + return VariantsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> VariantsWithStreamingResponse: - return VariantsWithStreamingResponse(self) + def with_streaming_response(self) -> VariantsResourceWithStreamingResponse: + return VariantsResourceWithStreamingResponse(self) def delete( self, @@ -176,14 +176,14 @@ def get( ) -class AsyncVariants(AsyncAPIResource): +class AsyncVariantsResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncVariantsWithRawResponse: - return AsyncVariantsWithRawResponse(self) + def with_raw_response(self) -> AsyncVariantsResourceWithRawResponse: + return AsyncVariantsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncVariantsWithStreamingResponse: - return AsyncVariantsWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncVariantsResourceWithStreamingResponse: + return AsyncVariantsResourceWithStreamingResponse(self) async def delete( self, @@ -321,8 +321,8 @@ async def get( ) -class VariantsWithRawResponse: - def __init__(self, variants: Variants) -> None: +class VariantsResourceWithRawResponse: + def __init__(self, variants: VariantsResource) -> None: self._variants = variants self.delete = to_raw_response_wrapper( @@ -336,8 +336,8 @@ def __init__(self, variants: Variants) -> None: ) -class AsyncVariantsWithRawResponse: - def __init__(self, variants: AsyncVariants) -> None: +class AsyncVariantsResourceWithRawResponse: + def __init__(self, variants: AsyncVariantsResource) -> None: self._variants = variants self.delete = async_to_raw_response_wrapper( @@ -351,8 +351,8 @@ def __init__(self, variants: AsyncVariants) -> None: ) -class VariantsWithStreamingResponse: - def __init__(self, variants: Variants) -> None: +class VariantsResourceWithStreamingResponse: + def __init__(self, variants: VariantsResource) -> None: self._variants = variants self.delete = to_streamed_response_wrapper( @@ -366,8 +366,8 @@ def __init__(self, variants: Variants) -> None: ) -class AsyncVariantsWithStreamingResponse: - def __init__(self, variants: AsyncVariants) -> None: +class AsyncVariantsResourceWithStreamingResponse: + def __init__(self, variants: AsyncVariantsResource) -> None: self._variants = variants self.delete = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/calls.py b/src/cloudflare/resources/calls.py index 91af83fbc4f..71d97f590e8 100644 --- a/src/cloudflare/resources/calls.py +++ b/src/cloudflare/resources/calls.py @@ -29,17 +29,17 @@ from ..types.calls.calls_app import CallsApp from ..types.calls.calls_app_with_secret import CallsAppWithSecret -__all__ = ["Calls", "AsyncCalls"] +__all__ = ["CallsResource", "AsyncCallsResource"] -class Calls(SyncAPIResource): +class CallsResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> CallsWithRawResponse: - return CallsWithRawResponse(self) + def with_raw_response(self) -> CallsResourceWithRawResponse: + return CallsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> CallsWithStreamingResponse: - return CallsWithStreamingResponse(self) + def with_streaming_response(self) -> CallsResourceWithStreamingResponse: + return CallsResourceWithStreamingResponse(self) def create( self, @@ -259,14 +259,14 @@ def get( ) -class AsyncCalls(AsyncAPIResource): +class AsyncCallsResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncCallsWithRawResponse: - return AsyncCallsWithRawResponse(self) + def with_raw_response(self) -> AsyncCallsResourceWithRawResponse: + return AsyncCallsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncCallsWithStreamingResponse: - return AsyncCallsWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncCallsResourceWithStreamingResponse: + return AsyncCallsResourceWithStreamingResponse(self) async def create( self, @@ -486,8 +486,8 @@ async def get( ) -class CallsWithRawResponse: - def __init__(self, calls: Calls) -> None: +class CallsResourceWithRawResponse: + def __init__(self, calls: CallsResource) -> None: self._calls = calls self.create = to_raw_response_wrapper( @@ -507,8 +507,8 @@ def __init__(self, calls: Calls) -> None: ) -class AsyncCallsWithRawResponse: - def __init__(self, calls: AsyncCalls) -> None: +class AsyncCallsResourceWithRawResponse: + def __init__(self, calls: AsyncCallsResource) -> None: self._calls = calls self.create = async_to_raw_response_wrapper( @@ -528,8 +528,8 @@ def __init__(self, calls: AsyncCalls) -> None: ) -class CallsWithStreamingResponse: - def __init__(self, calls: Calls) -> None: +class CallsResourceWithStreamingResponse: + def __init__(self, calls: CallsResource) -> None: self._calls = calls self.create = to_streamed_response_wrapper( @@ -549,8 +549,8 @@ def __init__(self, calls: Calls) -> None: ) -class AsyncCallsWithStreamingResponse: - def __init__(self, calls: AsyncCalls) -> None: +class AsyncCallsResourceWithStreamingResponse: + def __init__(self, calls: AsyncCallsResource) -> None: self._calls = calls self.create = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/certificate_authorities/__init__.py b/src/cloudflare/resources/certificate_authorities/__init__.py index b257d55b35f..8a27c3297ef 100644 --- a/src/cloudflare/resources/certificate_authorities/__init__.py +++ b/src/cloudflare/resources/certificate_authorities/__init__.py @@ -1,33 +1,33 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from .hostname_associations import ( - HostnameAssociations, - AsyncHostnameAssociations, - HostnameAssociationsWithRawResponse, - AsyncHostnameAssociationsWithRawResponse, - HostnameAssociationsWithStreamingResponse, - AsyncHostnameAssociationsWithStreamingResponse, + HostnameAssociationsResource, + AsyncHostnameAssociationsResource, + HostnameAssociationsResourceWithRawResponse, + AsyncHostnameAssociationsResourceWithRawResponse, + HostnameAssociationsResourceWithStreamingResponse, + AsyncHostnameAssociationsResourceWithStreamingResponse, ) from .certificate_authorities import ( - CertificateAuthorities, - AsyncCertificateAuthorities, - CertificateAuthoritiesWithRawResponse, - AsyncCertificateAuthoritiesWithRawResponse, - CertificateAuthoritiesWithStreamingResponse, - AsyncCertificateAuthoritiesWithStreamingResponse, + CertificateAuthoritiesResource, + AsyncCertificateAuthoritiesResource, + CertificateAuthoritiesResourceWithRawResponse, + AsyncCertificateAuthoritiesResourceWithRawResponse, + CertificateAuthoritiesResourceWithStreamingResponse, + AsyncCertificateAuthoritiesResourceWithStreamingResponse, ) __all__ = [ - "HostnameAssociations", - "AsyncHostnameAssociations", - "HostnameAssociationsWithRawResponse", - "AsyncHostnameAssociationsWithRawResponse", - "HostnameAssociationsWithStreamingResponse", - "AsyncHostnameAssociationsWithStreamingResponse", - "CertificateAuthorities", - "AsyncCertificateAuthorities", - "CertificateAuthoritiesWithRawResponse", - "AsyncCertificateAuthoritiesWithRawResponse", - "CertificateAuthoritiesWithStreamingResponse", - "AsyncCertificateAuthoritiesWithStreamingResponse", + "HostnameAssociationsResource", + "AsyncHostnameAssociationsResource", + "HostnameAssociationsResourceWithRawResponse", + "AsyncHostnameAssociationsResourceWithRawResponse", + "HostnameAssociationsResourceWithStreamingResponse", + "AsyncHostnameAssociationsResourceWithStreamingResponse", + "CertificateAuthoritiesResource", + "AsyncCertificateAuthoritiesResource", + "CertificateAuthoritiesResourceWithRawResponse", + "AsyncCertificateAuthoritiesResourceWithRawResponse", + "CertificateAuthoritiesResourceWithStreamingResponse", + "AsyncCertificateAuthoritiesResourceWithStreamingResponse", ] diff --git a/src/cloudflare/resources/certificate_authorities/certificate_authorities.py b/src/cloudflare/resources/certificate_authorities/certificate_authorities.py index 0334240a5c4..f5ff3cbf4eb 100644 --- a/src/cloudflare/resources/certificate_authorities/certificate_authorities.py +++ b/src/cloudflare/resources/certificate_authorities/certificate_authorities.py @@ -5,76 +5,78 @@ from ..._compat import cached_property from ..._resource import SyncAPIResource, AsyncAPIResource from .hostname_associations import ( - HostnameAssociations, - AsyncHostnameAssociations, - HostnameAssociationsWithRawResponse, - AsyncHostnameAssociationsWithRawResponse, - HostnameAssociationsWithStreamingResponse, - AsyncHostnameAssociationsWithStreamingResponse, + HostnameAssociationsResource, + AsyncHostnameAssociationsResource, + HostnameAssociationsResourceWithRawResponse, + AsyncHostnameAssociationsResourceWithRawResponse, + HostnameAssociationsResourceWithStreamingResponse, + AsyncHostnameAssociationsResourceWithStreamingResponse, ) -__all__ = ["CertificateAuthorities", "AsyncCertificateAuthorities"] +__all__ = ["CertificateAuthoritiesResource", "AsyncCertificateAuthoritiesResource"] -class CertificateAuthorities(SyncAPIResource): +class CertificateAuthoritiesResource(SyncAPIResource): @cached_property - def hostname_associations(self) -> HostnameAssociations: - return HostnameAssociations(self._client) + def hostname_associations(self) -> HostnameAssociationsResource: + return HostnameAssociationsResource(self._client) @cached_property - def with_raw_response(self) -> CertificateAuthoritiesWithRawResponse: - return CertificateAuthoritiesWithRawResponse(self) + def with_raw_response(self) -> CertificateAuthoritiesResourceWithRawResponse: + return CertificateAuthoritiesResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> CertificateAuthoritiesWithStreamingResponse: - return CertificateAuthoritiesWithStreamingResponse(self) + def with_streaming_response(self) -> CertificateAuthoritiesResourceWithStreamingResponse: + return CertificateAuthoritiesResourceWithStreamingResponse(self) -class AsyncCertificateAuthorities(AsyncAPIResource): +class AsyncCertificateAuthoritiesResource(AsyncAPIResource): @cached_property - def hostname_associations(self) -> AsyncHostnameAssociations: - return AsyncHostnameAssociations(self._client) + def hostname_associations(self) -> AsyncHostnameAssociationsResource: + return AsyncHostnameAssociationsResource(self._client) @cached_property - def with_raw_response(self) -> AsyncCertificateAuthoritiesWithRawResponse: - return AsyncCertificateAuthoritiesWithRawResponse(self) + def with_raw_response(self) -> AsyncCertificateAuthoritiesResourceWithRawResponse: + return AsyncCertificateAuthoritiesResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncCertificateAuthoritiesWithStreamingResponse: - return AsyncCertificateAuthoritiesWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncCertificateAuthoritiesResourceWithStreamingResponse: + return AsyncCertificateAuthoritiesResourceWithStreamingResponse(self) -class CertificateAuthoritiesWithRawResponse: - def __init__(self, certificate_authorities: CertificateAuthorities) -> None: +class CertificateAuthoritiesResourceWithRawResponse: + def __init__(self, certificate_authorities: CertificateAuthoritiesResource) -> None: self._certificate_authorities = certificate_authorities @cached_property - def hostname_associations(self) -> HostnameAssociationsWithRawResponse: - return HostnameAssociationsWithRawResponse(self._certificate_authorities.hostname_associations) + def hostname_associations(self) -> HostnameAssociationsResourceWithRawResponse: + return HostnameAssociationsResourceWithRawResponse(self._certificate_authorities.hostname_associations) -class AsyncCertificateAuthoritiesWithRawResponse: - def __init__(self, certificate_authorities: AsyncCertificateAuthorities) -> None: +class AsyncCertificateAuthoritiesResourceWithRawResponse: + def __init__(self, certificate_authorities: AsyncCertificateAuthoritiesResource) -> None: self._certificate_authorities = certificate_authorities @cached_property - def hostname_associations(self) -> AsyncHostnameAssociationsWithRawResponse: - return AsyncHostnameAssociationsWithRawResponse(self._certificate_authorities.hostname_associations) + def hostname_associations(self) -> AsyncHostnameAssociationsResourceWithRawResponse: + return AsyncHostnameAssociationsResourceWithRawResponse(self._certificate_authorities.hostname_associations) -class CertificateAuthoritiesWithStreamingResponse: - def __init__(self, certificate_authorities: CertificateAuthorities) -> None: +class CertificateAuthoritiesResourceWithStreamingResponse: + def __init__(self, certificate_authorities: CertificateAuthoritiesResource) -> None: self._certificate_authorities = certificate_authorities @cached_property - def hostname_associations(self) -> HostnameAssociationsWithStreamingResponse: - return HostnameAssociationsWithStreamingResponse(self._certificate_authorities.hostname_associations) + def hostname_associations(self) -> HostnameAssociationsResourceWithStreamingResponse: + return HostnameAssociationsResourceWithStreamingResponse(self._certificate_authorities.hostname_associations) -class AsyncCertificateAuthoritiesWithStreamingResponse: - def __init__(self, certificate_authorities: AsyncCertificateAuthorities) -> None: +class AsyncCertificateAuthoritiesResourceWithStreamingResponse: + def __init__(self, certificate_authorities: AsyncCertificateAuthoritiesResource) -> None: self._certificate_authorities = certificate_authorities @cached_property - def hostname_associations(self) -> AsyncHostnameAssociationsWithStreamingResponse: - return AsyncHostnameAssociationsWithStreamingResponse(self._certificate_authorities.hostname_associations) + def hostname_associations(self) -> AsyncHostnameAssociationsResourceWithStreamingResponse: + return AsyncHostnameAssociationsResourceWithStreamingResponse( + self._certificate_authorities.hostname_associations + ) diff --git a/src/cloudflare/resources/certificate_authorities/hostname_associations.py b/src/cloudflare/resources/certificate_authorities/hostname_associations.py index b0ed93f66ee..688bbaf4aaf 100644 --- a/src/cloudflare/resources/certificate_authorities/hostname_associations.py +++ b/src/cloudflare/resources/certificate_authorities/hostname_associations.py @@ -28,17 +28,17 @@ from ...types.certificate_authorities.hostname_association_get_response import HostnameAssociationGetResponse from ...types.certificate_authorities.hostname_association_update_response import HostnameAssociationUpdateResponse -__all__ = ["HostnameAssociations", "AsyncHostnameAssociations"] +__all__ = ["HostnameAssociationsResource", "AsyncHostnameAssociationsResource"] -class HostnameAssociations(SyncAPIResource): +class HostnameAssociationsResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> HostnameAssociationsWithRawResponse: - return HostnameAssociationsWithRawResponse(self) + def with_raw_response(self) -> HostnameAssociationsResourceWithRawResponse: + return HostnameAssociationsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> HostnameAssociationsWithStreamingResponse: - return HostnameAssociationsWithStreamingResponse(self) + def with_streaming_response(self) -> HostnameAssociationsResourceWithStreamingResponse: + return HostnameAssociationsResourceWithStreamingResponse(self) def update( self, @@ -141,14 +141,14 @@ def get( ) -class AsyncHostnameAssociations(AsyncAPIResource): +class AsyncHostnameAssociationsResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncHostnameAssociationsWithRawResponse: - return AsyncHostnameAssociationsWithRawResponse(self) + def with_raw_response(self) -> AsyncHostnameAssociationsResourceWithRawResponse: + return AsyncHostnameAssociationsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncHostnameAssociationsWithStreamingResponse: - return AsyncHostnameAssociationsWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncHostnameAssociationsResourceWithStreamingResponse: + return AsyncHostnameAssociationsResourceWithStreamingResponse(self) async def update( self, @@ -251,8 +251,8 @@ async def get( ) -class HostnameAssociationsWithRawResponse: - def __init__(self, hostname_associations: HostnameAssociations) -> None: +class HostnameAssociationsResourceWithRawResponse: + def __init__(self, hostname_associations: HostnameAssociationsResource) -> None: self._hostname_associations = hostname_associations self.update = to_raw_response_wrapper( @@ -263,8 +263,8 @@ def __init__(self, hostname_associations: HostnameAssociations) -> None: ) -class AsyncHostnameAssociationsWithRawResponse: - def __init__(self, hostname_associations: AsyncHostnameAssociations) -> None: +class AsyncHostnameAssociationsResourceWithRawResponse: + def __init__(self, hostname_associations: AsyncHostnameAssociationsResource) -> None: self._hostname_associations = hostname_associations self.update = async_to_raw_response_wrapper( @@ -275,8 +275,8 @@ def __init__(self, hostname_associations: AsyncHostnameAssociations) -> None: ) -class HostnameAssociationsWithStreamingResponse: - def __init__(self, hostname_associations: HostnameAssociations) -> None: +class HostnameAssociationsResourceWithStreamingResponse: + def __init__(self, hostname_associations: HostnameAssociationsResource) -> None: self._hostname_associations = hostname_associations self.update = to_streamed_response_wrapper( @@ -287,8 +287,8 @@ def __init__(self, hostname_associations: HostnameAssociations) -> None: ) -class AsyncHostnameAssociationsWithStreamingResponse: - def __init__(self, hostname_associations: AsyncHostnameAssociations) -> None: +class AsyncHostnameAssociationsResourceWithStreamingResponse: + def __init__(self, hostname_associations: AsyncHostnameAssociationsResource) -> None: self._hostname_associations = hostname_associations self.update = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/challenges/__init__.py b/src/cloudflare/resources/challenges/__init__.py index 039ed0a13ec..92f2f7a074a 100644 --- a/src/cloudflare/resources/challenges/__init__.py +++ b/src/cloudflare/resources/challenges/__init__.py @@ -1,33 +1,33 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from .widgets import ( - Widgets, - AsyncWidgets, - WidgetsWithRawResponse, - AsyncWidgetsWithRawResponse, - WidgetsWithStreamingResponse, - AsyncWidgetsWithStreamingResponse, + WidgetsResource, + AsyncWidgetsResource, + WidgetsResourceWithRawResponse, + AsyncWidgetsResourceWithRawResponse, + WidgetsResourceWithStreamingResponse, + AsyncWidgetsResourceWithStreamingResponse, ) from .challenges import ( - Challenges, - AsyncChallenges, - ChallengesWithRawResponse, - AsyncChallengesWithRawResponse, - ChallengesWithStreamingResponse, - AsyncChallengesWithStreamingResponse, + ChallengesResource, + AsyncChallengesResource, + ChallengesResourceWithRawResponse, + AsyncChallengesResourceWithRawResponse, + ChallengesResourceWithStreamingResponse, + AsyncChallengesResourceWithStreamingResponse, ) __all__ = [ - "Widgets", - "AsyncWidgets", - "WidgetsWithRawResponse", - "AsyncWidgetsWithRawResponse", - "WidgetsWithStreamingResponse", - "AsyncWidgetsWithStreamingResponse", - "Challenges", - "AsyncChallenges", - "ChallengesWithRawResponse", - "AsyncChallengesWithRawResponse", - "ChallengesWithStreamingResponse", - "AsyncChallengesWithStreamingResponse", + "WidgetsResource", + "AsyncWidgetsResource", + "WidgetsResourceWithRawResponse", + "AsyncWidgetsResourceWithRawResponse", + "WidgetsResourceWithStreamingResponse", + "AsyncWidgetsResourceWithStreamingResponse", + "ChallengesResource", + "AsyncChallengesResource", + "ChallengesResourceWithRawResponse", + "AsyncChallengesResourceWithRawResponse", + "ChallengesResourceWithStreamingResponse", + "AsyncChallengesResourceWithStreamingResponse", ] diff --git a/src/cloudflare/resources/challenges/challenges.py b/src/cloudflare/resources/challenges/challenges.py index 8087ee09edb..b64b5c4dfbd 100644 --- a/src/cloudflare/resources/challenges/challenges.py +++ b/src/cloudflare/resources/challenges/challenges.py @@ -3,78 +3,78 @@ from __future__ import annotations from .widgets import ( - Widgets, - AsyncWidgets, - WidgetsWithRawResponse, - AsyncWidgetsWithRawResponse, - WidgetsWithStreamingResponse, - AsyncWidgetsWithStreamingResponse, + WidgetsResource, + AsyncWidgetsResource, + WidgetsResourceWithRawResponse, + AsyncWidgetsResourceWithRawResponse, + WidgetsResourceWithStreamingResponse, + AsyncWidgetsResourceWithStreamingResponse, ) from ..._compat import cached_property from ..._resource import SyncAPIResource, AsyncAPIResource -__all__ = ["Challenges", "AsyncChallenges"] +__all__ = ["ChallengesResource", "AsyncChallengesResource"] -class Challenges(SyncAPIResource): +class ChallengesResource(SyncAPIResource): @cached_property - def widgets(self) -> Widgets: - return Widgets(self._client) + def widgets(self) -> WidgetsResource: + return WidgetsResource(self._client) @cached_property - def with_raw_response(self) -> ChallengesWithRawResponse: - return ChallengesWithRawResponse(self) + def with_raw_response(self) -> ChallengesResourceWithRawResponse: + return ChallengesResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> ChallengesWithStreamingResponse: - return ChallengesWithStreamingResponse(self) + def with_streaming_response(self) -> ChallengesResourceWithStreamingResponse: + return ChallengesResourceWithStreamingResponse(self) -class AsyncChallenges(AsyncAPIResource): +class AsyncChallengesResource(AsyncAPIResource): @cached_property - def widgets(self) -> AsyncWidgets: - return AsyncWidgets(self._client) + def widgets(self) -> AsyncWidgetsResource: + return AsyncWidgetsResource(self._client) @cached_property - def with_raw_response(self) -> AsyncChallengesWithRawResponse: - return AsyncChallengesWithRawResponse(self) + def with_raw_response(self) -> AsyncChallengesResourceWithRawResponse: + return AsyncChallengesResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncChallengesWithStreamingResponse: - return AsyncChallengesWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncChallengesResourceWithStreamingResponse: + return AsyncChallengesResourceWithStreamingResponse(self) -class ChallengesWithRawResponse: - def __init__(self, challenges: Challenges) -> None: +class ChallengesResourceWithRawResponse: + def __init__(self, challenges: ChallengesResource) -> None: self._challenges = challenges @cached_property - def widgets(self) -> WidgetsWithRawResponse: - return WidgetsWithRawResponse(self._challenges.widgets) + def widgets(self) -> WidgetsResourceWithRawResponse: + return WidgetsResourceWithRawResponse(self._challenges.widgets) -class AsyncChallengesWithRawResponse: - def __init__(self, challenges: AsyncChallenges) -> None: +class AsyncChallengesResourceWithRawResponse: + def __init__(self, challenges: AsyncChallengesResource) -> None: self._challenges = challenges @cached_property - def widgets(self) -> AsyncWidgetsWithRawResponse: - return AsyncWidgetsWithRawResponse(self._challenges.widgets) + def widgets(self) -> AsyncWidgetsResourceWithRawResponse: + return AsyncWidgetsResourceWithRawResponse(self._challenges.widgets) -class ChallengesWithStreamingResponse: - def __init__(self, challenges: Challenges) -> None: +class ChallengesResourceWithStreamingResponse: + def __init__(self, challenges: ChallengesResource) -> None: self._challenges = challenges @cached_property - def widgets(self) -> WidgetsWithStreamingResponse: - return WidgetsWithStreamingResponse(self._challenges.widgets) + def widgets(self) -> WidgetsResourceWithStreamingResponse: + return WidgetsResourceWithStreamingResponse(self._challenges.widgets) -class AsyncChallengesWithStreamingResponse: - def __init__(self, challenges: AsyncChallenges) -> None: +class AsyncChallengesResourceWithStreamingResponse: + def __init__(self, challenges: AsyncChallengesResource) -> None: self._challenges = challenges @cached_property - def widgets(self) -> AsyncWidgetsWithStreamingResponse: - return AsyncWidgetsWithStreamingResponse(self._challenges.widgets) + def widgets(self) -> AsyncWidgetsResourceWithStreamingResponse: + return AsyncWidgetsResourceWithStreamingResponse(self._challenges.widgets) diff --git a/src/cloudflare/resources/challenges/widgets.py b/src/cloudflare/resources/challenges/widgets.py index 9d8bc4e708a..89830325d3c 100644 --- a/src/cloudflare/resources/challenges/widgets.py +++ b/src/cloudflare/resources/challenges/widgets.py @@ -36,17 +36,17 @@ from ...types.challenges.widget_domain import WidgetDomain from ...types.challenges.widget_list_response import WidgetListResponse -__all__ = ["Widgets", "AsyncWidgets"] +__all__ = ["WidgetsResource", "AsyncWidgetsResource"] -class Widgets(SyncAPIResource): +class WidgetsResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> WidgetsWithRawResponse: - return WidgetsWithRawResponse(self) + def with_raw_response(self) -> WidgetsResourceWithRawResponse: + return WidgetsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> WidgetsWithStreamingResponse: - return WidgetsWithStreamingResponse(self) + def with_streaming_response(self) -> WidgetsResourceWithStreamingResponse: + return WidgetsResourceWithStreamingResponse(self) def create( self, @@ -423,14 +423,14 @@ def rotate_secret( ) -class AsyncWidgets(AsyncAPIResource): +class AsyncWidgetsResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncWidgetsWithRawResponse: - return AsyncWidgetsWithRawResponse(self) + def with_raw_response(self) -> AsyncWidgetsResourceWithRawResponse: + return AsyncWidgetsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncWidgetsWithStreamingResponse: - return AsyncWidgetsWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncWidgetsResourceWithStreamingResponse: + return AsyncWidgetsResourceWithStreamingResponse(self) async def create( self, @@ -807,8 +807,8 @@ async def rotate_secret( ) -class WidgetsWithRawResponse: - def __init__(self, widgets: Widgets) -> None: +class WidgetsResourceWithRawResponse: + def __init__(self, widgets: WidgetsResource) -> None: self._widgets = widgets self.create = to_raw_response_wrapper( @@ -831,8 +831,8 @@ def __init__(self, widgets: Widgets) -> None: ) -class AsyncWidgetsWithRawResponse: - def __init__(self, widgets: AsyncWidgets) -> None: +class AsyncWidgetsResourceWithRawResponse: + def __init__(self, widgets: AsyncWidgetsResource) -> None: self._widgets = widgets self.create = async_to_raw_response_wrapper( @@ -855,8 +855,8 @@ def __init__(self, widgets: AsyncWidgets) -> None: ) -class WidgetsWithStreamingResponse: - def __init__(self, widgets: Widgets) -> None: +class WidgetsResourceWithStreamingResponse: + def __init__(self, widgets: WidgetsResource) -> None: self._widgets = widgets self.create = to_streamed_response_wrapper( @@ -879,8 +879,8 @@ def __init__(self, widgets: Widgets) -> None: ) -class AsyncWidgetsWithStreamingResponse: - def __init__(self, widgets: AsyncWidgets) -> None: +class AsyncWidgetsResourceWithStreamingResponse: + def __init__(self, widgets: AsyncWidgetsResource) -> None: self._widgets = widgets self.create = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/client_certificates.py b/src/cloudflare/resources/client_certificates.py index 1bdf58707d1..c9f70aa1ace 100644 --- a/src/cloudflare/resources/client_certificates.py +++ b/src/cloudflare/resources/client_certificates.py @@ -29,17 +29,17 @@ from ..types.client_certificates import client_certificate_list_params, client_certificate_create_params from ..types.client_certificates.client_certificate import ClientCertificate -__all__ = ["ClientCertificates", "AsyncClientCertificates"] +__all__ = ["ClientCertificatesResource", "AsyncClientCertificatesResource"] -class ClientCertificates(SyncAPIResource): +class ClientCertificatesResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> ClientCertificatesWithRawResponse: - return ClientCertificatesWithRawResponse(self) + def with_raw_response(self) -> ClientCertificatesResourceWithRawResponse: + return ClientCertificatesResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> ClientCertificatesWithStreamingResponse: - return ClientCertificatesWithStreamingResponse(self) + def with_streaming_response(self) -> ClientCertificatesResourceWithStreamingResponse: + return ClientCertificatesResourceWithStreamingResponse(self) def create( self, @@ -300,14 +300,14 @@ def get( ) -class AsyncClientCertificates(AsyncAPIResource): +class AsyncClientCertificatesResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncClientCertificatesWithRawResponse: - return AsyncClientCertificatesWithRawResponse(self) + def with_raw_response(self) -> AsyncClientCertificatesResourceWithRawResponse: + return AsyncClientCertificatesResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncClientCertificatesWithStreamingResponse: - return AsyncClientCertificatesWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncClientCertificatesResourceWithStreamingResponse: + return AsyncClientCertificatesResourceWithStreamingResponse(self) async def create( self, @@ -568,8 +568,8 @@ async def get( ) -class ClientCertificatesWithRawResponse: - def __init__(self, client_certificates: ClientCertificates) -> None: +class ClientCertificatesResourceWithRawResponse: + def __init__(self, client_certificates: ClientCertificatesResource) -> None: self._client_certificates = client_certificates self.create = to_raw_response_wrapper( @@ -589,8 +589,8 @@ def __init__(self, client_certificates: ClientCertificates) -> None: ) -class AsyncClientCertificatesWithRawResponse: - def __init__(self, client_certificates: AsyncClientCertificates) -> None: +class AsyncClientCertificatesResourceWithRawResponse: + def __init__(self, client_certificates: AsyncClientCertificatesResource) -> None: self._client_certificates = client_certificates self.create = async_to_raw_response_wrapper( @@ -610,8 +610,8 @@ def __init__(self, client_certificates: AsyncClientCertificates) -> None: ) -class ClientCertificatesWithStreamingResponse: - def __init__(self, client_certificates: ClientCertificates) -> None: +class ClientCertificatesResourceWithStreamingResponse: + def __init__(self, client_certificates: ClientCertificatesResource) -> None: self._client_certificates = client_certificates self.create = to_streamed_response_wrapper( @@ -631,8 +631,8 @@ def __init__(self, client_certificates: ClientCertificates) -> None: ) -class AsyncClientCertificatesWithStreamingResponse: - def __init__(self, client_certificates: AsyncClientCertificates) -> None: +class AsyncClientCertificatesResourceWithStreamingResponse: + def __init__(self, client_certificates: AsyncClientCertificatesResource) -> None: self._client_certificates = client_certificates self.create = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/cloudforce_one/__init__.py b/src/cloudflare/resources/cloudforce_one/__init__.py index 9847c389eab..328074fc4b5 100644 --- a/src/cloudflare/resources/cloudforce_one/__init__.py +++ b/src/cloudflare/resources/cloudforce_one/__init__.py @@ -1,33 +1,33 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from .requests import ( - Requests, - AsyncRequests, - RequestsWithRawResponse, - AsyncRequestsWithRawResponse, - RequestsWithStreamingResponse, - AsyncRequestsWithStreamingResponse, + RequestsResource, + AsyncRequestsResource, + RequestsResourceWithRawResponse, + AsyncRequestsResourceWithRawResponse, + RequestsResourceWithStreamingResponse, + AsyncRequestsResourceWithStreamingResponse, ) from .cloudforce_one import ( - CloudforceOne, - AsyncCloudforceOne, - CloudforceOneWithRawResponse, - AsyncCloudforceOneWithRawResponse, - CloudforceOneWithStreamingResponse, - AsyncCloudforceOneWithStreamingResponse, + CloudforceOneResource, + AsyncCloudforceOneResource, + CloudforceOneResourceWithRawResponse, + AsyncCloudforceOneResourceWithRawResponse, + CloudforceOneResourceWithStreamingResponse, + AsyncCloudforceOneResourceWithStreamingResponse, ) __all__ = [ - "Requests", - "AsyncRequests", - "RequestsWithRawResponse", - "AsyncRequestsWithRawResponse", - "RequestsWithStreamingResponse", - "AsyncRequestsWithStreamingResponse", - "CloudforceOne", - "AsyncCloudforceOne", - "CloudforceOneWithRawResponse", - "AsyncCloudforceOneWithRawResponse", - "CloudforceOneWithStreamingResponse", - "AsyncCloudforceOneWithStreamingResponse", + "RequestsResource", + "AsyncRequestsResource", + "RequestsResourceWithRawResponse", + "AsyncRequestsResourceWithRawResponse", + "RequestsResourceWithStreamingResponse", + "AsyncRequestsResourceWithStreamingResponse", + "CloudforceOneResource", + "AsyncCloudforceOneResource", + "CloudforceOneResourceWithRawResponse", + "AsyncCloudforceOneResourceWithRawResponse", + "CloudforceOneResourceWithStreamingResponse", + "AsyncCloudforceOneResourceWithStreamingResponse", ] diff --git a/src/cloudflare/resources/cloudforce_one/cloudforce_one.py b/src/cloudflare/resources/cloudforce_one/cloudforce_one.py index b88b29e0364..9c8929e4f64 100644 --- a/src/cloudflare/resources/cloudforce_one/cloudforce_one.py +++ b/src/cloudflare/resources/cloudforce_one/cloudforce_one.py @@ -3,79 +3,79 @@ from __future__ import annotations from .requests import ( - Requests, - AsyncRequests, - RequestsWithRawResponse, - AsyncRequestsWithRawResponse, - RequestsWithStreamingResponse, - AsyncRequestsWithStreamingResponse, + RequestsResource, + AsyncRequestsResource, + RequestsResourceWithRawResponse, + AsyncRequestsResourceWithRawResponse, + RequestsResourceWithStreamingResponse, + AsyncRequestsResourceWithStreamingResponse, ) from ..._compat import cached_property from ..._resource import SyncAPIResource, AsyncAPIResource -from .requests.requests import Requests, AsyncRequests +from .requests.requests import RequestsResource, AsyncRequestsResource -__all__ = ["CloudforceOne", "AsyncCloudforceOne"] +__all__ = ["CloudforceOneResource", "AsyncCloudforceOneResource"] -class CloudforceOne(SyncAPIResource): +class CloudforceOneResource(SyncAPIResource): @cached_property - def requests(self) -> Requests: - return Requests(self._client) + def requests(self) -> RequestsResource: + return RequestsResource(self._client) @cached_property - def with_raw_response(self) -> CloudforceOneWithRawResponse: - return CloudforceOneWithRawResponse(self) + def with_raw_response(self) -> CloudforceOneResourceWithRawResponse: + return CloudforceOneResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> CloudforceOneWithStreamingResponse: - return CloudforceOneWithStreamingResponse(self) + def with_streaming_response(self) -> CloudforceOneResourceWithStreamingResponse: + return CloudforceOneResourceWithStreamingResponse(self) -class AsyncCloudforceOne(AsyncAPIResource): +class AsyncCloudforceOneResource(AsyncAPIResource): @cached_property - def requests(self) -> AsyncRequests: - return AsyncRequests(self._client) + def requests(self) -> AsyncRequestsResource: + return AsyncRequestsResource(self._client) @cached_property - def with_raw_response(self) -> AsyncCloudforceOneWithRawResponse: - return AsyncCloudforceOneWithRawResponse(self) + def with_raw_response(self) -> AsyncCloudforceOneResourceWithRawResponse: + return AsyncCloudforceOneResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncCloudforceOneWithStreamingResponse: - return AsyncCloudforceOneWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncCloudforceOneResourceWithStreamingResponse: + return AsyncCloudforceOneResourceWithStreamingResponse(self) -class CloudforceOneWithRawResponse: - def __init__(self, cloudforce_one: CloudforceOne) -> None: +class CloudforceOneResourceWithRawResponse: + def __init__(self, cloudforce_one: CloudforceOneResource) -> None: self._cloudforce_one = cloudforce_one @cached_property - def requests(self) -> RequestsWithRawResponse: - return RequestsWithRawResponse(self._cloudforce_one.requests) + def requests(self) -> RequestsResourceWithRawResponse: + return RequestsResourceWithRawResponse(self._cloudforce_one.requests) -class AsyncCloudforceOneWithRawResponse: - def __init__(self, cloudforce_one: AsyncCloudforceOne) -> None: +class AsyncCloudforceOneResourceWithRawResponse: + def __init__(self, cloudforce_one: AsyncCloudforceOneResource) -> None: self._cloudforce_one = cloudforce_one @cached_property - def requests(self) -> AsyncRequestsWithRawResponse: - return AsyncRequestsWithRawResponse(self._cloudforce_one.requests) + def requests(self) -> AsyncRequestsResourceWithRawResponse: + return AsyncRequestsResourceWithRawResponse(self._cloudforce_one.requests) -class CloudforceOneWithStreamingResponse: - def __init__(self, cloudforce_one: CloudforceOne) -> None: +class CloudforceOneResourceWithStreamingResponse: + def __init__(self, cloudforce_one: CloudforceOneResource) -> None: self._cloudforce_one = cloudforce_one @cached_property - def requests(self) -> RequestsWithStreamingResponse: - return RequestsWithStreamingResponse(self._cloudforce_one.requests) + def requests(self) -> RequestsResourceWithStreamingResponse: + return RequestsResourceWithStreamingResponse(self._cloudforce_one.requests) -class AsyncCloudforceOneWithStreamingResponse: - def __init__(self, cloudforce_one: AsyncCloudforceOne) -> None: +class AsyncCloudforceOneResourceWithStreamingResponse: + def __init__(self, cloudforce_one: AsyncCloudforceOneResource) -> None: self._cloudforce_one = cloudforce_one @cached_property - def requests(self) -> AsyncRequestsWithStreamingResponse: - return AsyncRequestsWithStreamingResponse(self._cloudforce_one.requests) + def requests(self) -> AsyncRequestsResourceWithStreamingResponse: + return AsyncRequestsResourceWithStreamingResponse(self._cloudforce_one.requests) diff --git a/src/cloudflare/resources/cloudforce_one/requests/__init__.py b/src/cloudflare/resources/cloudforce_one/requests/__init__.py index 5dd358e569c..16dfad6eb56 100644 --- a/src/cloudflare/resources/cloudforce_one/requests/__init__.py +++ b/src/cloudflare/resources/cloudforce_one/requests/__init__.py @@ -17,12 +17,12 @@ AsyncPriorityResourceWithStreamingResponse, ) from .requests import ( - Requests, - AsyncRequests, - RequestsWithRawResponse, - AsyncRequestsWithRawResponse, - RequestsWithStreamingResponse, - AsyncRequestsWithStreamingResponse, + RequestsResource, + AsyncRequestsResource, + RequestsResourceWithRawResponse, + AsyncRequestsResourceWithRawResponse, + RequestsResourceWithStreamingResponse, + AsyncRequestsResourceWithStreamingResponse, ) __all__ = [ @@ -38,10 +38,10 @@ "AsyncPriorityResourceWithRawResponse", "PriorityResourceWithStreamingResponse", "AsyncPriorityResourceWithStreamingResponse", - "Requests", - "AsyncRequests", - "RequestsWithRawResponse", - "AsyncRequestsWithRawResponse", - "RequestsWithStreamingResponse", - "AsyncRequestsWithStreamingResponse", + "RequestsResource", + "AsyncRequestsResource", + "RequestsResourceWithRawResponse", + "AsyncRequestsResourceWithRawResponse", + "RequestsResourceWithStreamingResponse", + "AsyncRequestsResourceWithStreamingResponse", ] diff --git a/src/cloudflare/resources/cloudforce_one/requests/requests.py b/src/cloudflare/resources/cloudforce_one/requests/requests.py index c53897c8e81..61a739aaa7c 100644 --- a/src/cloudflare/resources/cloudforce_one/requests/requests.py +++ b/src/cloudflare/resources/cloudforce_one/requests/requests.py @@ -51,10 +51,10 @@ from ....types.cloudforce_one.request_constants import RequestConstants from ....types.cloudforce_one.request_delete_response import RequestDeleteResponse -__all__ = ["Requests", "AsyncRequests"] +__all__ = ["RequestsResource", "AsyncRequestsResource"] -class Requests(SyncAPIResource): +class RequestsResource(SyncAPIResource): @cached_property def message(self) -> MessageResource: return MessageResource(self._client) @@ -64,12 +64,12 @@ def priority(self) -> PriorityResource: return PriorityResource(self._client) @cached_property - def with_raw_response(self) -> RequestsWithRawResponse: - return RequestsWithRawResponse(self) + def with_raw_response(self) -> RequestsResourceWithRawResponse: + return RequestsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> RequestsWithStreamingResponse: - return RequestsWithStreamingResponse(self) + def with_streaming_response(self) -> RequestsResourceWithStreamingResponse: + return RequestsResourceWithStreamingResponse(self) def create( self, @@ -502,7 +502,7 @@ def types( ) -class AsyncRequests(AsyncAPIResource): +class AsyncRequestsResource(AsyncAPIResource): @cached_property def message(self) -> AsyncMessageResource: return AsyncMessageResource(self._client) @@ -512,12 +512,12 @@ def priority(self) -> AsyncPriorityResource: return AsyncPriorityResource(self._client) @cached_property - def with_raw_response(self) -> AsyncRequestsWithRawResponse: - return AsyncRequestsWithRawResponse(self) + def with_raw_response(self) -> AsyncRequestsResourceWithRawResponse: + return AsyncRequestsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncRequestsWithStreamingResponse: - return AsyncRequestsWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncRequestsResourceWithStreamingResponse: + return AsyncRequestsResourceWithStreamingResponse(self) async def create( self, @@ -950,8 +950,8 @@ async def types( ) -class RequestsWithRawResponse: - def __init__(self, requests: Requests) -> None: +class RequestsResourceWithRawResponse: + def __init__(self, requests: RequestsResource) -> None: self._requests = requests self.create = to_raw_response_wrapper( @@ -988,8 +988,8 @@ def priority(self) -> PriorityResourceWithRawResponse: return PriorityResourceWithRawResponse(self._requests.priority) -class AsyncRequestsWithRawResponse: - def __init__(self, requests: AsyncRequests) -> None: +class AsyncRequestsResourceWithRawResponse: + def __init__(self, requests: AsyncRequestsResource) -> None: self._requests = requests self.create = async_to_raw_response_wrapper( @@ -1026,8 +1026,8 @@ def priority(self) -> AsyncPriorityResourceWithRawResponse: return AsyncPriorityResourceWithRawResponse(self._requests.priority) -class RequestsWithStreamingResponse: - def __init__(self, requests: Requests) -> None: +class RequestsResourceWithStreamingResponse: + def __init__(self, requests: RequestsResource) -> None: self._requests = requests self.create = to_streamed_response_wrapper( @@ -1064,8 +1064,8 @@ def priority(self) -> PriorityResourceWithStreamingResponse: return PriorityResourceWithStreamingResponse(self._requests.priority) -class AsyncRequestsWithStreamingResponse: - def __init__(self, requests: AsyncRequests) -> None: +class AsyncRequestsResourceWithStreamingResponse: + def __init__(self, requests: AsyncRequestsResource) -> None: self._requests = requests self.create = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/custom_certificates/__init__.py b/src/cloudflare/resources/custom_certificates/__init__.py index fadf1447fcc..42a32ed70ca 100644 --- a/src/cloudflare/resources/custom_certificates/__init__.py +++ b/src/cloudflare/resources/custom_certificates/__init__.py @@ -1,33 +1,33 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from .prioritize import ( - Prioritize, - AsyncPrioritize, - PrioritizeWithRawResponse, - AsyncPrioritizeWithRawResponse, - PrioritizeWithStreamingResponse, - AsyncPrioritizeWithStreamingResponse, + PrioritizeResource, + AsyncPrioritizeResource, + PrioritizeResourceWithRawResponse, + AsyncPrioritizeResourceWithRawResponse, + PrioritizeResourceWithStreamingResponse, + AsyncPrioritizeResourceWithStreamingResponse, ) from .custom_certificates import ( - CustomCertificates, - AsyncCustomCertificates, - CustomCertificatesWithRawResponse, - AsyncCustomCertificatesWithRawResponse, - CustomCertificatesWithStreamingResponse, - AsyncCustomCertificatesWithStreamingResponse, + CustomCertificatesResource, + AsyncCustomCertificatesResource, + CustomCertificatesResourceWithRawResponse, + AsyncCustomCertificatesResourceWithRawResponse, + CustomCertificatesResourceWithStreamingResponse, + AsyncCustomCertificatesResourceWithStreamingResponse, ) __all__ = [ - "Prioritize", - "AsyncPrioritize", - "PrioritizeWithRawResponse", - "AsyncPrioritizeWithRawResponse", - "PrioritizeWithStreamingResponse", - "AsyncPrioritizeWithStreamingResponse", - "CustomCertificates", - "AsyncCustomCertificates", - "CustomCertificatesWithRawResponse", - "AsyncCustomCertificatesWithRawResponse", - "CustomCertificatesWithStreamingResponse", - "AsyncCustomCertificatesWithStreamingResponse", + "PrioritizeResource", + "AsyncPrioritizeResource", + "PrioritizeResourceWithRawResponse", + "AsyncPrioritizeResourceWithRawResponse", + "PrioritizeResourceWithStreamingResponse", + "AsyncPrioritizeResourceWithStreamingResponse", + "CustomCertificatesResource", + "AsyncCustomCertificatesResource", + "CustomCertificatesResourceWithRawResponse", + "AsyncCustomCertificatesResourceWithRawResponse", + "CustomCertificatesResourceWithStreamingResponse", + "AsyncCustomCertificatesResourceWithStreamingResponse", ] diff --git a/src/cloudflare/resources/custom_certificates/custom_certificates.py b/src/cloudflare/resources/custom_certificates/custom_certificates.py index 4e5e4ba8dc6..8842c9fe482 100644 --- a/src/cloudflare/resources/custom_certificates/custom_certificates.py +++ b/src/cloudflare/resources/custom_certificates/custom_certificates.py @@ -14,12 +14,12 @@ ) from ..._compat import cached_property from .prioritize import ( - Prioritize, - AsyncPrioritize, - PrioritizeWithRawResponse, - AsyncPrioritizeWithRawResponse, - PrioritizeWithStreamingResponse, - AsyncPrioritizeWithStreamingResponse, + PrioritizeResource, + AsyncPrioritizeResource, + PrioritizeResourceWithRawResponse, + AsyncPrioritizeResourceWithRawResponse, + PrioritizeResourceWithStreamingResponse, + AsyncPrioritizeResourceWithStreamingResponse, ) from ..._resource import SyncAPIResource, AsyncAPIResource from ..._response import ( @@ -49,21 +49,21 @@ from ...types.custom_certificates.custom_certificate_create_response import CustomCertificateCreateResponse from ...types.custom_certificates.custom_certificate_delete_response import CustomCertificateDeleteResponse -__all__ = ["CustomCertificates", "AsyncCustomCertificates"] +__all__ = ["CustomCertificatesResource", "AsyncCustomCertificatesResource"] -class CustomCertificates(SyncAPIResource): +class CustomCertificatesResource(SyncAPIResource): @cached_property - def prioritize(self) -> Prioritize: - return Prioritize(self._client) + def prioritize(self) -> PrioritizeResource: + return PrioritizeResource(self._client) @cached_property - def with_raw_response(self) -> CustomCertificatesWithRawResponse: - return CustomCertificatesWithRawResponse(self) + def with_raw_response(self) -> CustomCertificatesResourceWithRawResponse: + return CustomCertificatesResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> CustomCertificatesWithStreamingResponse: - return CustomCertificatesWithStreamingResponse(self) + def with_streaming_response(self) -> CustomCertificatesResourceWithStreamingResponse: + return CustomCertificatesResourceWithStreamingResponse(self) def create( self, @@ -415,18 +415,18 @@ def get( ) -class AsyncCustomCertificates(AsyncAPIResource): +class AsyncCustomCertificatesResource(AsyncAPIResource): @cached_property - def prioritize(self) -> AsyncPrioritize: - return AsyncPrioritize(self._client) + def prioritize(self) -> AsyncPrioritizeResource: + return AsyncPrioritizeResource(self._client) @cached_property - def with_raw_response(self) -> AsyncCustomCertificatesWithRawResponse: - return AsyncCustomCertificatesWithRawResponse(self) + def with_raw_response(self) -> AsyncCustomCertificatesResourceWithRawResponse: + return AsyncCustomCertificatesResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncCustomCertificatesWithStreamingResponse: - return AsyncCustomCertificatesWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncCustomCertificatesResourceWithStreamingResponse: + return AsyncCustomCertificatesResourceWithStreamingResponse(self) async def create( self, @@ -778,8 +778,8 @@ async def get( ) -class CustomCertificatesWithRawResponse: - def __init__(self, custom_certificates: CustomCertificates) -> None: +class CustomCertificatesResourceWithRawResponse: + def __init__(self, custom_certificates: CustomCertificatesResource) -> None: self._custom_certificates = custom_certificates self.create = to_raw_response_wrapper( @@ -799,12 +799,12 @@ def __init__(self, custom_certificates: CustomCertificates) -> None: ) @cached_property - def prioritize(self) -> PrioritizeWithRawResponse: - return PrioritizeWithRawResponse(self._custom_certificates.prioritize) + def prioritize(self) -> PrioritizeResourceWithRawResponse: + return PrioritizeResourceWithRawResponse(self._custom_certificates.prioritize) -class AsyncCustomCertificatesWithRawResponse: - def __init__(self, custom_certificates: AsyncCustomCertificates) -> None: +class AsyncCustomCertificatesResourceWithRawResponse: + def __init__(self, custom_certificates: AsyncCustomCertificatesResource) -> None: self._custom_certificates = custom_certificates self.create = async_to_raw_response_wrapper( @@ -824,12 +824,12 @@ def __init__(self, custom_certificates: AsyncCustomCertificates) -> None: ) @cached_property - def prioritize(self) -> AsyncPrioritizeWithRawResponse: - return AsyncPrioritizeWithRawResponse(self._custom_certificates.prioritize) + def prioritize(self) -> AsyncPrioritizeResourceWithRawResponse: + return AsyncPrioritizeResourceWithRawResponse(self._custom_certificates.prioritize) -class CustomCertificatesWithStreamingResponse: - def __init__(self, custom_certificates: CustomCertificates) -> None: +class CustomCertificatesResourceWithStreamingResponse: + def __init__(self, custom_certificates: CustomCertificatesResource) -> None: self._custom_certificates = custom_certificates self.create = to_streamed_response_wrapper( @@ -849,12 +849,12 @@ def __init__(self, custom_certificates: CustomCertificates) -> None: ) @cached_property - def prioritize(self) -> PrioritizeWithStreamingResponse: - return PrioritizeWithStreamingResponse(self._custom_certificates.prioritize) + def prioritize(self) -> PrioritizeResourceWithStreamingResponse: + return PrioritizeResourceWithStreamingResponse(self._custom_certificates.prioritize) -class AsyncCustomCertificatesWithStreamingResponse: - def __init__(self, custom_certificates: AsyncCustomCertificates) -> None: +class AsyncCustomCertificatesResourceWithStreamingResponse: + def __init__(self, custom_certificates: AsyncCustomCertificatesResource) -> None: self._custom_certificates = custom_certificates self.create = async_to_streamed_response_wrapper( @@ -874,5 +874,5 @@ def __init__(self, custom_certificates: AsyncCustomCertificates) -> None: ) @cached_property - def prioritize(self) -> AsyncPrioritizeWithStreamingResponse: - return AsyncPrioritizeWithStreamingResponse(self._custom_certificates.prioritize) + def prioritize(self) -> AsyncPrioritizeResourceWithStreamingResponse: + return AsyncPrioritizeResourceWithStreamingResponse(self._custom_certificates.prioritize) diff --git a/src/cloudflare/resources/custom_certificates/prioritize.py b/src/cloudflare/resources/custom_certificates/prioritize.py index 038920ac757..1b4813ec49d 100644 --- a/src/cloudflare/resources/custom_certificates/prioritize.py +++ b/src/cloudflare/resources/custom_certificates/prioritize.py @@ -26,17 +26,17 @@ from ...types.custom_certificates import prioritize_update_params from ...types.custom_certificates.prioritize_update_response import PrioritizeUpdateResponse -__all__ = ["Prioritize", "AsyncPrioritize"] +__all__ = ["PrioritizeResource", "AsyncPrioritizeResource"] -class Prioritize(SyncAPIResource): +class PrioritizeResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> PrioritizeWithRawResponse: - return PrioritizeWithRawResponse(self) + def with_raw_response(self) -> PrioritizeResourceWithRawResponse: + return PrioritizeResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> PrioritizeWithStreamingResponse: - return PrioritizeWithStreamingResponse(self) + def with_streaming_response(self) -> PrioritizeResourceWithStreamingResponse: + return PrioritizeResourceWithStreamingResponse(self) def update( self, @@ -84,14 +84,14 @@ def update( ) -class AsyncPrioritize(AsyncAPIResource): +class AsyncPrioritizeResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncPrioritizeWithRawResponse: - return AsyncPrioritizeWithRawResponse(self) + def with_raw_response(self) -> AsyncPrioritizeResourceWithRawResponse: + return AsyncPrioritizeResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncPrioritizeWithStreamingResponse: - return AsyncPrioritizeWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncPrioritizeResourceWithStreamingResponse: + return AsyncPrioritizeResourceWithStreamingResponse(self) async def update( self, @@ -141,8 +141,8 @@ async def update( ) -class PrioritizeWithRawResponse: - def __init__(self, prioritize: Prioritize) -> None: +class PrioritizeResourceWithRawResponse: + def __init__(self, prioritize: PrioritizeResource) -> None: self._prioritize = prioritize self.update = to_raw_response_wrapper( @@ -150,8 +150,8 @@ def __init__(self, prioritize: Prioritize) -> None: ) -class AsyncPrioritizeWithRawResponse: - def __init__(self, prioritize: AsyncPrioritize) -> None: +class AsyncPrioritizeResourceWithRawResponse: + def __init__(self, prioritize: AsyncPrioritizeResource) -> None: self._prioritize = prioritize self.update = async_to_raw_response_wrapper( @@ -159,8 +159,8 @@ def __init__(self, prioritize: AsyncPrioritize) -> None: ) -class PrioritizeWithStreamingResponse: - def __init__(self, prioritize: Prioritize) -> None: +class PrioritizeResourceWithStreamingResponse: + def __init__(self, prioritize: PrioritizeResource) -> None: self._prioritize = prioritize self.update = to_streamed_response_wrapper( @@ -168,8 +168,8 @@ def __init__(self, prioritize: Prioritize) -> None: ) -class AsyncPrioritizeWithStreamingResponse: - def __init__(self, prioritize: AsyncPrioritize) -> None: +class AsyncPrioritizeResourceWithStreamingResponse: + def __init__(self, prioritize: AsyncPrioritizeResource) -> None: self._prioritize = prioritize self.update = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/custom_hostnames/__init__.py b/src/cloudflare/resources/custom_hostnames/__init__.py index e073a364913..333e8854818 100644 --- a/src/cloudflare/resources/custom_hostnames/__init__.py +++ b/src/cloudflare/resources/custom_hostnames/__init__.py @@ -1,33 +1,33 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from .fallback_origin import ( - FallbackOrigin, - AsyncFallbackOrigin, - FallbackOriginWithRawResponse, - AsyncFallbackOriginWithRawResponse, - FallbackOriginWithStreamingResponse, - AsyncFallbackOriginWithStreamingResponse, + FallbackOriginResource, + AsyncFallbackOriginResource, + FallbackOriginResourceWithRawResponse, + AsyncFallbackOriginResourceWithRawResponse, + FallbackOriginResourceWithStreamingResponse, + AsyncFallbackOriginResourceWithStreamingResponse, ) from .custom_hostnames import ( - CustomHostnames, - AsyncCustomHostnames, - CustomHostnamesWithRawResponse, - AsyncCustomHostnamesWithRawResponse, - CustomHostnamesWithStreamingResponse, - AsyncCustomHostnamesWithStreamingResponse, + CustomHostnamesResource, + AsyncCustomHostnamesResource, + CustomHostnamesResourceWithRawResponse, + AsyncCustomHostnamesResourceWithRawResponse, + CustomHostnamesResourceWithStreamingResponse, + AsyncCustomHostnamesResourceWithStreamingResponse, ) __all__ = [ - "FallbackOrigin", - "AsyncFallbackOrigin", - "FallbackOriginWithRawResponse", - "AsyncFallbackOriginWithRawResponse", - "FallbackOriginWithStreamingResponse", - "AsyncFallbackOriginWithStreamingResponse", - "CustomHostnames", - "AsyncCustomHostnames", - "CustomHostnamesWithRawResponse", - "AsyncCustomHostnamesWithRawResponse", - "CustomHostnamesWithStreamingResponse", - "AsyncCustomHostnamesWithStreamingResponse", + "FallbackOriginResource", + "AsyncFallbackOriginResource", + "FallbackOriginResourceWithRawResponse", + "AsyncFallbackOriginResourceWithRawResponse", + "FallbackOriginResourceWithStreamingResponse", + "AsyncFallbackOriginResourceWithStreamingResponse", + "CustomHostnamesResource", + "AsyncCustomHostnamesResource", + "CustomHostnamesResourceWithRawResponse", + "AsyncCustomHostnamesResourceWithRawResponse", + "CustomHostnamesResourceWithStreamingResponse", + "AsyncCustomHostnamesResourceWithStreamingResponse", ] diff --git a/src/cloudflare/resources/custom_hostnames/custom_hostnames.py b/src/cloudflare/resources/custom_hostnames/custom_hostnames.py index 1d0390b4ed6..5473e27d513 100644 --- a/src/cloudflare/resources/custom_hostnames/custom_hostnames.py +++ b/src/cloudflare/resources/custom_hostnames/custom_hostnames.py @@ -27,12 +27,12 @@ make_request_options, ) from .fallback_origin import ( - FallbackOrigin, - AsyncFallbackOrigin, - FallbackOriginWithRawResponse, - AsyncFallbackOriginWithRawResponse, - FallbackOriginWithStreamingResponse, - AsyncFallbackOriginWithStreamingResponse, + FallbackOriginResource, + AsyncFallbackOriginResource, + FallbackOriginResourceWithRawResponse, + AsyncFallbackOriginResourceWithRawResponse, + FallbackOriginResourceWithStreamingResponse, + AsyncFallbackOriginResourceWithStreamingResponse, ) from ...types.custom_hostnames import ( custom_hostname_edit_params, @@ -46,21 +46,21 @@ from ...types.custom_hostnames.custom_hostname_create_response import CustomHostnameCreateResponse from ...types.custom_hostnames.custom_hostname_delete_response import CustomHostnameDeleteResponse -__all__ = ["CustomHostnames", "AsyncCustomHostnames"] +__all__ = ["CustomHostnamesResource", "AsyncCustomHostnamesResource"] -class CustomHostnames(SyncAPIResource): +class CustomHostnamesResource(SyncAPIResource): @cached_property - def fallback_origin(self) -> FallbackOrigin: - return FallbackOrigin(self._client) + def fallback_origin(self) -> FallbackOriginResource: + return FallbackOriginResource(self._client) @cached_property - def with_raw_response(self) -> CustomHostnamesWithRawResponse: - return CustomHostnamesWithRawResponse(self) + def with_raw_response(self) -> CustomHostnamesResourceWithRawResponse: + return CustomHostnamesResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> CustomHostnamesWithStreamingResponse: - return CustomHostnamesWithStreamingResponse(self) + def with_streaming_response(self) -> CustomHostnamesResourceWithStreamingResponse: + return CustomHostnamesResourceWithStreamingResponse(self) def create( self, @@ -360,18 +360,18 @@ def get( ) -class AsyncCustomHostnames(AsyncAPIResource): +class AsyncCustomHostnamesResource(AsyncAPIResource): @cached_property - def fallback_origin(self) -> AsyncFallbackOrigin: - return AsyncFallbackOrigin(self._client) + def fallback_origin(self) -> AsyncFallbackOriginResource: + return AsyncFallbackOriginResource(self._client) @cached_property - def with_raw_response(self) -> AsyncCustomHostnamesWithRawResponse: - return AsyncCustomHostnamesWithRawResponse(self) + def with_raw_response(self) -> AsyncCustomHostnamesResourceWithRawResponse: + return AsyncCustomHostnamesResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncCustomHostnamesWithStreamingResponse: - return AsyncCustomHostnamesWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncCustomHostnamesResourceWithStreamingResponse: + return AsyncCustomHostnamesResourceWithStreamingResponse(self) async def create( self, @@ -671,8 +671,8 @@ async def get( ) -class CustomHostnamesWithRawResponse: - def __init__(self, custom_hostnames: CustomHostnames) -> None: +class CustomHostnamesResourceWithRawResponse: + def __init__(self, custom_hostnames: CustomHostnamesResource) -> None: self._custom_hostnames = custom_hostnames self.create = to_raw_response_wrapper( @@ -692,12 +692,12 @@ def __init__(self, custom_hostnames: CustomHostnames) -> None: ) @cached_property - def fallback_origin(self) -> FallbackOriginWithRawResponse: - return FallbackOriginWithRawResponse(self._custom_hostnames.fallback_origin) + def fallback_origin(self) -> FallbackOriginResourceWithRawResponse: + return FallbackOriginResourceWithRawResponse(self._custom_hostnames.fallback_origin) -class AsyncCustomHostnamesWithRawResponse: - def __init__(self, custom_hostnames: AsyncCustomHostnames) -> None: +class AsyncCustomHostnamesResourceWithRawResponse: + def __init__(self, custom_hostnames: AsyncCustomHostnamesResource) -> None: self._custom_hostnames = custom_hostnames self.create = async_to_raw_response_wrapper( @@ -717,12 +717,12 @@ def __init__(self, custom_hostnames: AsyncCustomHostnames) -> None: ) @cached_property - def fallback_origin(self) -> AsyncFallbackOriginWithRawResponse: - return AsyncFallbackOriginWithRawResponse(self._custom_hostnames.fallback_origin) + def fallback_origin(self) -> AsyncFallbackOriginResourceWithRawResponse: + return AsyncFallbackOriginResourceWithRawResponse(self._custom_hostnames.fallback_origin) -class CustomHostnamesWithStreamingResponse: - def __init__(self, custom_hostnames: CustomHostnames) -> None: +class CustomHostnamesResourceWithStreamingResponse: + def __init__(self, custom_hostnames: CustomHostnamesResource) -> None: self._custom_hostnames = custom_hostnames self.create = to_streamed_response_wrapper( @@ -742,12 +742,12 @@ def __init__(self, custom_hostnames: CustomHostnames) -> None: ) @cached_property - def fallback_origin(self) -> FallbackOriginWithStreamingResponse: - return FallbackOriginWithStreamingResponse(self._custom_hostnames.fallback_origin) + def fallback_origin(self) -> FallbackOriginResourceWithStreamingResponse: + return FallbackOriginResourceWithStreamingResponse(self._custom_hostnames.fallback_origin) -class AsyncCustomHostnamesWithStreamingResponse: - def __init__(self, custom_hostnames: AsyncCustomHostnames) -> None: +class AsyncCustomHostnamesResourceWithStreamingResponse: + def __init__(self, custom_hostnames: AsyncCustomHostnamesResource) -> None: self._custom_hostnames = custom_hostnames self.create = async_to_streamed_response_wrapper( @@ -767,5 +767,5 @@ def __init__(self, custom_hostnames: AsyncCustomHostnames) -> None: ) @cached_property - def fallback_origin(self) -> AsyncFallbackOriginWithStreamingResponse: - return AsyncFallbackOriginWithStreamingResponse(self._custom_hostnames.fallback_origin) + def fallback_origin(self) -> AsyncFallbackOriginResourceWithStreamingResponse: + return AsyncFallbackOriginResourceWithStreamingResponse(self._custom_hostnames.fallback_origin) diff --git a/src/cloudflare/resources/custom_hostnames/fallback_origin.py b/src/cloudflare/resources/custom_hostnames/fallback_origin.py index 496ed7b3d0e..4372be317f4 100644 --- a/src/cloudflare/resources/custom_hostnames/fallback_origin.py +++ b/src/cloudflare/resources/custom_hostnames/fallback_origin.py @@ -28,17 +28,17 @@ from ...types.custom_hostnames.fallback_origin_delete_response import FallbackOriginDeleteResponse from ...types.custom_hostnames.fallback_origin_update_response import FallbackOriginUpdateResponse -__all__ = ["FallbackOrigin", "AsyncFallbackOrigin"] +__all__ = ["FallbackOriginResource", "AsyncFallbackOriginResource"] -class FallbackOrigin(SyncAPIResource): +class FallbackOriginResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> FallbackOriginWithRawResponse: - return FallbackOriginWithRawResponse(self) + def with_raw_response(self) -> FallbackOriginResourceWithRawResponse: + return FallbackOriginResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> FallbackOriginWithStreamingResponse: - return FallbackOriginWithStreamingResponse(self) + def with_streaming_response(self) -> FallbackOriginResourceWithStreamingResponse: + return FallbackOriginResourceWithStreamingResponse(self) def update( self, @@ -179,14 +179,14 @@ def get( ) -class AsyncFallbackOrigin(AsyncAPIResource): +class AsyncFallbackOriginResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncFallbackOriginWithRawResponse: - return AsyncFallbackOriginWithRawResponse(self) + def with_raw_response(self) -> AsyncFallbackOriginResourceWithRawResponse: + return AsyncFallbackOriginResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncFallbackOriginWithStreamingResponse: - return AsyncFallbackOriginWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncFallbackOriginResourceWithStreamingResponse: + return AsyncFallbackOriginResourceWithStreamingResponse(self) async def update( self, @@ -329,8 +329,8 @@ async def get( ) -class FallbackOriginWithRawResponse: - def __init__(self, fallback_origin: FallbackOrigin) -> None: +class FallbackOriginResourceWithRawResponse: + def __init__(self, fallback_origin: FallbackOriginResource) -> None: self._fallback_origin = fallback_origin self.update = to_raw_response_wrapper( @@ -344,8 +344,8 @@ def __init__(self, fallback_origin: FallbackOrigin) -> None: ) -class AsyncFallbackOriginWithRawResponse: - def __init__(self, fallback_origin: AsyncFallbackOrigin) -> None: +class AsyncFallbackOriginResourceWithRawResponse: + def __init__(self, fallback_origin: AsyncFallbackOriginResource) -> None: self._fallback_origin = fallback_origin self.update = async_to_raw_response_wrapper( @@ -359,8 +359,8 @@ def __init__(self, fallback_origin: AsyncFallbackOrigin) -> None: ) -class FallbackOriginWithStreamingResponse: - def __init__(self, fallback_origin: FallbackOrigin) -> None: +class FallbackOriginResourceWithStreamingResponse: + def __init__(self, fallback_origin: FallbackOriginResource) -> None: self._fallback_origin = fallback_origin self.update = to_streamed_response_wrapper( @@ -374,8 +374,8 @@ def __init__(self, fallback_origin: FallbackOrigin) -> None: ) -class AsyncFallbackOriginWithStreamingResponse: - def __init__(self, fallback_origin: AsyncFallbackOrigin) -> None: +class AsyncFallbackOriginResourceWithStreamingResponse: + def __init__(self, fallback_origin: AsyncFallbackOriginResource) -> None: self._fallback_origin = fallback_origin self.update = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/custom_nameservers.py b/src/cloudflare/resources/custom_nameservers.py index 2daff60afbc..86daaf57bd3 100644 --- a/src/cloudflare/resources/custom_nameservers.py +++ b/src/cloudflare/resources/custom_nameservers.py @@ -34,17 +34,17 @@ from ..types.custom_nameservers.custom_nameserver_verify_response import CustomNameserverVerifyResponse from ..types.custom_nameservers.custom_nameserver_availabilty_response import CustomNameserverAvailabiltyResponse -__all__ = ["CustomNameservers", "AsyncCustomNameservers"] +__all__ = ["CustomNameserversResource", "AsyncCustomNameserversResource"] -class CustomNameservers(SyncAPIResource): +class CustomNameserversResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> CustomNameserversWithRawResponse: - return CustomNameserversWithRawResponse(self) + def with_raw_response(self) -> CustomNameserversResourceWithRawResponse: + return CustomNameserversResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> CustomNameserversWithStreamingResponse: - return CustomNameserversWithStreamingResponse(self) + def with_streaming_response(self) -> CustomNameserversResourceWithStreamingResponse: + return CustomNameserversResourceWithStreamingResponse(self) def create( self, @@ -271,14 +271,14 @@ def verify( ) -class AsyncCustomNameservers(AsyncAPIResource): +class AsyncCustomNameserversResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncCustomNameserversWithRawResponse: - return AsyncCustomNameserversWithRawResponse(self) + def with_raw_response(self) -> AsyncCustomNameserversResourceWithRawResponse: + return AsyncCustomNameserversResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncCustomNameserversWithStreamingResponse: - return AsyncCustomNameserversWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncCustomNameserversResourceWithStreamingResponse: + return AsyncCustomNameserversResourceWithStreamingResponse(self) async def create( self, @@ -505,8 +505,8 @@ async def verify( ) -class CustomNameserversWithRawResponse: - def __init__(self, custom_nameservers: CustomNameservers) -> None: +class CustomNameserversResourceWithRawResponse: + def __init__(self, custom_nameservers: CustomNameserversResource) -> None: self._custom_nameservers = custom_nameservers self.create = to_raw_response_wrapper( @@ -526,8 +526,8 @@ def __init__(self, custom_nameservers: CustomNameservers) -> None: ) -class AsyncCustomNameserversWithRawResponse: - def __init__(self, custom_nameservers: AsyncCustomNameservers) -> None: +class AsyncCustomNameserversResourceWithRawResponse: + def __init__(self, custom_nameservers: AsyncCustomNameserversResource) -> None: self._custom_nameservers = custom_nameservers self.create = async_to_raw_response_wrapper( @@ -547,8 +547,8 @@ def __init__(self, custom_nameservers: AsyncCustomNameservers) -> None: ) -class CustomNameserversWithStreamingResponse: - def __init__(self, custom_nameservers: CustomNameservers) -> None: +class CustomNameserversResourceWithStreamingResponse: + def __init__(self, custom_nameservers: CustomNameserversResource) -> None: self._custom_nameservers = custom_nameservers self.create = to_streamed_response_wrapper( @@ -568,8 +568,8 @@ def __init__(self, custom_nameservers: CustomNameservers) -> None: ) -class AsyncCustomNameserversWithStreamingResponse: - def __init__(self, custom_nameservers: AsyncCustomNameservers) -> None: +class AsyncCustomNameserversResourceWithStreamingResponse: + def __init__(self, custom_nameservers: AsyncCustomNameserversResource) -> None: self._custom_nameservers = custom_nameservers self.create = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/d1/__init__.py b/src/cloudflare/resources/d1/__init__.py index 5d31a056646..f23835240d5 100644 --- a/src/cloudflare/resources/d1/__init__.py +++ b/src/cloudflare/resources/d1/__init__.py @@ -9,21 +9,21 @@ AsyncD1ResourceWithStreamingResponse, ) from .database import ( - Database, - AsyncDatabase, - DatabaseWithRawResponse, - AsyncDatabaseWithRawResponse, - DatabaseWithStreamingResponse, - AsyncDatabaseWithStreamingResponse, + DatabaseResource, + AsyncDatabaseResource, + DatabaseResourceWithRawResponse, + AsyncDatabaseResourceWithRawResponse, + DatabaseResourceWithStreamingResponse, + AsyncDatabaseResourceWithStreamingResponse, ) __all__ = [ - "Database", - "AsyncDatabase", - "DatabaseWithRawResponse", - "AsyncDatabaseWithRawResponse", - "DatabaseWithStreamingResponse", - "AsyncDatabaseWithStreamingResponse", + "DatabaseResource", + "AsyncDatabaseResource", + "DatabaseResourceWithRawResponse", + "AsyncDatabaseResourceWithRawResponse", + "DatabaseResourceWithStreamingResponse", + "AsyncDatabaseResourceWithStreamingResponse", "D1Resource", "AsyncD1Resource", "D1ResourceWithRawResponse", diff --git a/src/cloudflare/resources/d1/d1.py b/src/cloudflare/resources/d1/d1.py index 445bd0fcccf..713183e81ab 100644 --- a/src/cloudflare/resources/d1/d1.py +++ b/src/cloudflare/resources/d1/d1.py @@ -3,12 +3,12 @@ from __future__ import annotations from .database import ( - Database, - AsyncDatabase, - DatabaseWithRawResponse, - AsyncDatabaseWithRawResponse, - DatabaseWithStreamingResponse, - AsyncDatabaseWithStreamingResponse, + DatabaseResource, + AsyncDatabaseResource, + DatabaseResourceWithRawResponse, + AsyncDatabaseResourceWithRawResponse, + DatabaseResourceWithStreamingResponse, + AsyncDatabaseResourceWithStreamingResponse, ) from ..._compat import cached_property from ..._resource import SyncAPIResource, AsyncAPIResource @@ -18,8 +18,8 @@ class D1Resource(SyncAPIResource): @cached_property - def database(self) -> Database: - return Database(self._client) + def database(self) -> DatabaseResource: + return DatabaseResource(self._client) @cached_property def with_raw_response(self) -> D1ResourceWithRawResponse: @@ -32,8 +32,8 @@ def with_streaming_response(self) -> D1ResourceWithStreamingResponse: class AsyncD1Resource(AsyncAPIResource): @cached_property - def database(self) -> AsyncDatabase: - return AsyncDatabase(self._client) + def database(self) -> AsyncDatabaseResource: + return AsyncDatabaseResource(self._client) @cached_property def with_raw_response(self) -> AsyncD1ResourceWithRawResponse: @@ -49,8 +49,8 @@ def __init__(self, d1: D1Resource) -> None: self._d1 = d1 @cached_property - def database(self) -> DatabaseWithRawResponse: - return DatabaseWithRawResponse(self._d1.database) + def database(self) -> DatabaseResourceWithRawResponse: + return DatabaseResourceWithRawResponse(self._d1.database) class AsyncD1ResourceWithRawResponse: @@ -58,8 +58,8 @@ def __init__(self, d1: AsyncD1Resource) -> None: self._d1 = d1 @cached_property - def database(self) -> AsyncDatabaseWithRawResponse: - return AsyncDatabaseWithRawResponse(self._d1.database) + def database(self) -> AsyncDatabaseResourceWithRawResponse: + return AsyncDatabaseResourceWithRawResponse(self._d1.database) class D1ResourceWithStreamingResponse: @@ -67,8 +67,8 @@ def __init__(self, d1: D1Resource) -> None: self._d1 = d1 @cached_property - def database(self) -> DatabaseWithStreamingResponse: - return DatabaseWithStreamingResponse(self._d1.database) + def database(self) -> DatabaseResourceWithStreamingResponse: + return DatabaseResourceWithStreamingResponse(self._d1.database) class AsyncD1ResourceWithStreamingResponse: @@ -76,5 +76,5 @@ def __init__(self, d1: AsyncD1Resource) -> None: self._d1 = d1 @cached_property - def database(self) -> AsyncDatabaseWithStreamingResponse: - return AsyncDatabaseWithStreamingResponse(self._d1.database) + def database(self) -> AsyncDatabaseResourceWithStreamingResponse: + return AsyncDatabaseResourceWithStreamingResponse(self._d1.database) diff --git a/src/cloudflare/resources/d1/database.py b/src/cloudflare/resources/d1/database.py index 7649e14ee7e..fbdcdffd1f5 100644 --- a/src/cloudflare/resources/d1/database.py +++ b/src/cloudflare/resources/d1/database.py @@ -32,17 +32,17 @@ from ...types.d1.database_create_response import DatabaseCreateResponse from ...types.d1.database_delete_response import DatabaseDeleteResponse -__all__ = ["Database", "AsyncDatabase"] +__all__ = ["DatabaseResource", "AsyncDatabaseResource"] -class Database(SyncAPIResource): +class DatabaseResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> DatabaseWithRawResponse: - return DatabaseWithRawResponse(self) + def with_raw_response(self) -> DatabaseResourceWithRawResponse: + return DatabaseResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> DatabaseWithStreamingResponse: - return DatabaseWithStreamingResponse(self) + def with_streaming_response(self) -> DatabaseResourceWithStreamingResponse: + return DatabaseResourceWithStreamingResponse(self) def create( self, @@ -288,14 +288,14 @@ def query( ) -class AsyncDatabase(AsyncAPIResource): +class AsyncDatabaseResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncDatabaseWithRawResponse: - return AsyncDatabaseWithRawResponse(self) + def with_raw_response(self) -> AsyncDatabaseResourceWithRawResponse: + return AsyncDatabaseResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncDatabaseWithStreamingResponse: - return AsyncDatabaseWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncDatabaseResourceWithStreamingResponse: + return AsyncDatabaseResourceWithStreamingResponse(self) async def create( self, @@ -541,8 +541,8 @@ async def query( ) -class DatabaseWithRawResponse: - def __init__(self, database: Database) -> None: +class DatabaseResourceWithRawResponse: + def __init__(self, database: DatabaseResource) -> None: self._database = database self.create = to_raw_response_wrapper( @@ -562,8 +562,8 @@ def __init__(self, database: Database) -> None: ) -class AsyncDatabaseWithRawResponse: - def __init__(self, database: AsyncDatabase) -> None: +class AsyncDatabaseResourceWithRawResponse: + def __init__(self, database: AsyncDatabaseResource) -> None: self._database = database self.create = async_to_raw_response_wrapper( @@ -583,8 +583,8 @@ def __init__(self, database: AsyncDatabase) -> None: ) -class DatabaseWithStreamingResponse: - def __init__(self, database: Database) -> None: +class DatabaseResourceWithStreamingResponse: + def __init__(self, database: DatabaseResource) -> None: self._database = database self.create = to_streamed_response_wrapper( @@ -604,8 +604,8 @@ def __init__(self, database: Database) -> None: ) -class AsyncDatabaseWithStreamingResponse: - def __init__(self, database: AsyncDatabase) -> None: +class AsyncDatabaseResourceWithStreamingResponse: + def __init__(self, database: AsyncDatabaseResource) -> None: self._database = database self.create = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/dcv_delegation/__init__.py b/src/cloudflare/resources/dcv_delegation/__init__.py index b9445436f07..774c44e1985 100644 --- a/src/cloudflare/resources/dcv_delegation/__init__.py +++ b/src/cloudflare/resources/dcv_delegation/__init__.py @@ -1,33 +1,33 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from .uuid import ( - UUID, - AsyncUUID, - UUIDWithRawResponse, - AsyncUUIDWithRawResponse, - UUIDWithStreamingResponse, - AsyncUUIDWithStreamingResponse, + UUIDResource, + AsyncUUIDResource, + UUIDResourceWithRawResponse, + AsyncUUIDResourceWithRawResponse, + UUIDResourceWithStreamingResponse, + AsyncUUIDResourceWithStreamingResponse, ) from .dcv_delegation import ( - DCVDelegation, - AsyncDCVDelegation, - DCVDelegationWithRawResponse, - AsyncDCVDelegationWithRawResponse, - DCVDelegationWithStreamingResponse, - AsyncDCVDelegationWithStreamingResponse, + DCVDelegationResource, + AsyncDCVDelegationResource, + DCVDelegationResourceWithRawResponse, + AsyncDCVDelegationResourceWithRawResponse, + DCVDelegationResourceWithStreamingResponse, + AsyncDCVDelegationResourceWithStreamingResponse, ) __all__ = [ - "UUID", - "AsyncUUID", - "UUIDWithRawResponse", - "AsyncUUIDWithRawResponse", - "UUIDWithStreamingResponse", - "AsyncUUIDWithStreamingResponse", - "DCVDelegation", - "AsyncDCVDelegation", - "DCVDelegationWithRawResponse", - "AsyncDCVDelegationWithRawResponse", - "DCVDelegationWithStreamingResponse", - "AsyncDCVDelegationWithStreamingResponse", + "UUIDResource", + "AsyncUUIDResource", + "UUIDResourceWithRawResponse", + "AsyncUUIDResourceWithRawResponse", + "UUIDResourceWithStreamingResponse", + "AsyncUUIDResourceWithStreamingResponse", + "DCVDelegationResource", + "AsyncDCVDelegationResource", + "DCVDelegationResourceWithRawResponse", + "AsyncDCVDelegationResourceWithRawResponse", + "DCVDelegationResourceWithStreamingResponse", + "AsyncDCVDelegationResourceWithStreamingResponse", ] diff --git a/src/cloudflare/resources/dcv_delegation/dcv_delegation.py b/src/cloudflare/resources/dcv_delegation/dcv_delegation.py index c6fcca25e42..d09a30ea18c 100644 --- a/src/cloudflare/resources/dcv_delegation/dcv_delegation.py +++ b/src/cloudflare/resources/dcv_delegation/dcv_delegation.py @@ -3,78 +3,78 @@ from __future__ import annotations from .uuid import ( - UUID, - AsyncUUID, - UUIDWithRawResponse, - AsyncUUIDWithRawResponse, - UUIDWithStreamingResponse, - AsyncUUIDWithStreamingResponse, + UUIDResource, + AsyncUUIDResource, + UUIDResourceWithRawResponse, + AsyncUUIDResourceWithRawResponse, + UUIDResourceWithStreamingResponse, + AsyncUUIDResourceWithStreamingResponse, ) from ..._compat import cached_property from ..._resource import SyncAPIResource, AsyncAPIResource -__all__ = ["DCVDelegation", "AsyncDCVDelegation"] +__all__ = ["DCVDelegationResource", "AsyncDCVDelegationResource"] -class DCVDelegation(SyncAPIResource): +class DCVDelegationResource(SyncAPIResource): @cached_property - def uuid(self) -> UUID: - return UUID(self._client) + def uuid(self) -> UUIDResource: + return UUIDResource(self._client) @cached_property - def with_raw_response(self) -> DCVDelegationWithRawResponse: - return DCVDelegationWithRawResponse(self) + def with_raw_response(self) -> DCVDelegationResourceWithRawResponse: + return DCVDelegationResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> DCVDelegationWithStreamingResponse: - return DCVDelegationWithStreamingResponse(self) + def with_streaming_response(self) -> DCVDelegationResourceWithStreamingResponse: + return DCVDelegationResourceWithStreamingResponse(self) -class AsyncDCVDelegation(AsyncAPIResource): +class AsyncDCVDelegationResource(AsyncAPIResource): @cached_property - def uuid(self) -> AsyncUUID: - return AsyncUUID(self._client) + def uuid(self) -> AsyncUUIDResource: + return AsyncUUIDResource(self._client) @cached_property - def with_raw_response(self) -> AsyncDCVDelegationWithRawResponse: - return AsyncDCVDelegationWithRawResponse(self) + def with_raw_response(self) -> AsyncDCVDelegationResourceWithRawResponse: + return AsyncDCVDelegationResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncDCVDelegationWithStreamingResponse: - return AsyncDCVDelegationWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncDCVDelegationResourceWithStreamingResponse: + return AsyncDCVDelegationResourceWithStreamingResponse(self) -class DCVDelegationWithRawResponse: - def __init__(self, dcv_delegation: DCVDelegation) -> None: +class DCVDelegationResourceWithRawResponse: + def __init__(self, dcv_delegation: DCVDelegationResource) -> None: self._dcv_delegation = dcv_delegation @cached_property - def uuid(self) -> UUIDWithRawResponse: - return UUIDWithRawResponse(self._dcv_delegation.uuid) + def uuid(self) -> UUIDResourceWithRawResponse: + return UUIDResourceWithRawResponse(self._dcv_delegation.uuid) -class AsyncDCVDelegationWithRawResponse: - def __init__(self, dcv_delegation: AsyncDCVDelegation) -> None: +class AsyncDCVDelegationResourceWithRawResponse: + def __init__(self, dcv_delegation: AsyncDCVDelegationResource) -> None: self._dcv_delegation = dcv_delegation @cached_property - def uuid(self) -> AsyncUUIDWithRawResponse: - return AsyncUUIDWithRawResponse(self._dcv_delegation.uuid) + def uuid(self) -> AsyncUUIDResourceWithRawResponse: + return AsyncUUIDResourceWithRawResponse(self._dcv_delegation.uuid) -class DCVDelegationWithStreamingResponse: - def __init__(self, dcv_delegation: DCVDelegation) -> None: +class DCVDelegationResourceWithStreamingResponse: + def __init__(self, dcv_delegation: DCVDelegationResource) -> None: self._dcv_delegation = dcv_delegation @cached_property - def uuid(self) -> UUIDWithStreamingResponse: - return UUIDWithStreamingResponse(self._dcv_delegation.uuid) + def uuid(self) -> UUIDResourceWithStreamingResponse: + return UUIDResourceWithStreamingResponse(self._dcv_delegation.uuid) -class AsyncDCVDelegationWithStreamingResponse: - def __init__(self, dcv_delegation: AsyncDCVDelegation) -> None: +class AsyncDCVDelegationResourceWithStreamingResponse: + def __init__(self, dcv_delegation: AsyncDCVDelegationResource) -> None: self._dcv_delegation = dcv_delegation @cached_property - def uuid(self) -> AsyncUUIDWithStreamingResponse: - return AsyncUUIDWithStreamingResponse(self._dcv_delegation.uuid) + def uuid(self) -> AsyncUUIDResourceWithStreamingResponse: + return AsyncUUIDResourceWithStreamingResponse(self._dcv_delegation.uuid) diff --git a/src/cloudflare/resources/dcv_delegation/uuid.py b/src/cloudflare/resources/dcv_delegation/uuid.py index 80b17040269..eef35e97584 100644 --- a/src/cloudflare/resources/dcv_delegation/uuid.py +++ b/src/cloudflare/resources/dcv_delegation/uuid.py @@ -21,17 +21,17 @@ ) from ...types.dcv_delegation.dcv_delegation_uuid import DCVDelegationUUID -__all__ = ["UUID", "AsyncUUID"] +__all__ = ["UUIDResource", "AsyncUUIDResource"] -class UUID(SyncAPIResource): +class UUIDResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> UUIDWithRawResponse: - return UUIDWithRawResponse(self) + def with_raw_response(self) -> UUIDResourceWithRawResponse: + return UUIDResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> UUIDWithStreamingResponse: - return UUIDWithStreamingResponse(self) + def with_streaming_response(self) -> UUIDResourceWithStreamingResponse: + return UUIDResourceWithStreamingResponse(self) def get( self, @@ -74,14 +74,14 @@ def get( ) -class AsyncUUID(AsyncAPIResource): +class AsyncUUIDResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncUUIDWithRawResponse: - return AsyncUUIDWithRawResponse(self) + def with_raw_response(self) -> AsyncUUIDResourceWithRawResponse: + return AsyncUUIDResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncUUIDWithStreamingResponse: - return AsyncUUIDWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncUUIDResourceWithStreamingResponse: + return AsyncUUIDResourceWithStreamingResponse(self) async def get( self, @@ -124,8 +124,8 @@ async def get( ) -class UUIDWithRawResponse: - def __init__(self, uuid: UUID) -> None: +class UUIDResourceWithRawResponse: + def __init__(self, uuid: UUIDResource) -> None: self._uuid = uuid self.get = to_raw_response_wrapper( @@ -133,8 +133,8 @@ def __init__(self, uuid: UUID) -> None: ) -class AsyncUUIDWithRawResponse: - def __init__(self, uuid: AsyncUUID) -> None: +class AsyncUUIDResourceWithRawResponse: + def __init__(self, uuid: AsyncUUIDResource) -> None: self._uuid = uuid self.get = async_to_raw_response_wrapper( @@ -142,8 +142,8 @@ def __init__(self, uuid: AsyncUUID) -> None: ) -class UUIDWithStreamingResponse: - def __init__(self, uuid: UUID) -> None: +class UUIDResourceWithStreamingResponse: + def __init__(self, uuid: UUIDResource) -> None: self._uuid = uuid self.get = to_streamed_response_wrapper( @@ -151,8 +151,8 @@ def __init__(self, uuid: UUID) -> None: ) -class AsyncUUIDWithStreamingResponse: - def __init__(self, uuid: AsyncUUID) -> None: +class AsyncUUIDResourceWithStreamingResponse: + def __init__(self, uuid: AsyncUUIDResource) -> None: self._uuid = uuid self.get = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/diagnostics/__init__.py b/src/cloudflare/resources/diagnostics/__init__.py index 1c8043a6a21..4ccc6dce7cb 100644 --- a/src/cloudflare/resources/diagnostics/__init__.py +++ b/src/cloudflare/resources/diagnostics/__init__.py @@ -1,33 +1,33 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from .diagnostics import ( - Diagnostics, - AsyncDiagnostics, - DiagnosticsWithRawResponse, - AsyncDiagnosticsWithRawResponse, - DiagnosticsWithStreamingResponse, - AsyncDiagnosticsWithStreamingResponse, + DiagnosticsResource, + AsyncDiagnosticsResource, + DiagnosticsResourceWithRawResponse, + AsyncDiagnosticsResourceWithRawResponse, + DiagnosticsResourceWithStreamingResponse, + AsyncDiagnosticsResourceWithStreamingResponse, ) from .traceroutes import ( - Traceroutes, - AsyncTraceroutes, - TraceroutesWithRawResponse, - AsyncTraceroutesWithRawResponse, - TraceroutesWithStreamingResponse, - AsyncTraceroutesWithStreamingResponse, + TraceroutesResource, + AsyncTraceroutesResource, + TraceroutesResourceWithRawResponse, + AsyncTraceroutesResourceWithRawResponse, + TraceroutesResourceWithStreamingResponse, + AsyncTraceroutesResourceWithStreamingResponse, ) __all__ = [ - "Traceroutes", - "AsyncTraceroutes", - "TraceroutesWithRawResponse", - "AsyncTraceroutesWithRawResponse", - "TraceroutesWithStreamingResponse", - "AsyncTraceroutesWithStreamingResponse", - "Diagnostics", - "AsyncDiagnostics", - "DiagnosticsWithRawResponse", - "AsyncDiagnosticsWithRawResponse", - "DiagnosticsWithStreamingResponse", - "AsyncDiagnosticsWithStreamingResponse", + "TraceroutesResource", + "AsyncTraceroutesResource", + "TraceroutesResourceWithRawResponse", + "AsyncTraceroutesResourceWithRawResponse", + "TraceroutesResourceWithStreamingResponse", + "AsyncTraceroutesResourceWithStreamingResponse", + "DiagnosticsResource", + "AsyncDiagnosticsResource", + "DiagnosticsResourceWithRawResponse", + "AsyncDiagnosticsResourceWithRawResponse", + "DiagnosticsResourceWithStreamingResponse", + "AsyncDiagnosticsResourceWithStreamingResponse", ] diff --git a/src/cloudflare/resources/diagnostics/diagnostics.py b/src/cloudflare/resources/diagnostics/diagnostics.py index de8fa603b0e..629321688d5 100644 --- a/src/cloudflare/resources/diagnostics/diagnostics.py +++ b/src/cloudflare/resources/diagnostics/diagnostics.py @@ -5,76 +5,76 @@ from ..._compat import cached_property from ..._resource import SyncAPIResource, AsyncAPIResource from .traceroutes import ( - Traceroutes, - AsyncTraceroutes, - TraceroutesWithRawResponse, - AsyncTraceroutesWithRawResponse, - TraceroutesWithStreamingResponse, - AsyncTraceroutesWithStreamingResponse, + TraceroutesResource, + AsyncTraceroutesResource, + TraceroutesResourceWithRawResponse, + AsyncTraceroutesResourceWithRawResponse, + TraceroutesResourceWithStreamingResponse, + AsyncTraceroutesResourceWithStreamingResponse, ) -__all__ = ["Diagnostics", "AsyncDiagnostics"] +__all__ = ["DiagnosticsResource", "AsyncDiagnosticsResource"] -class Diagnostics(SyncAPIResource): +class DiagnosticsResource(SyncAPIResource): @cached_property - def traceroutes(self) -> Traceroutes: - return Traceroutes(self._client) + def traceroutes(self) -> TraceroutesResource: + return TraceroutesResource(self._client) @cached_property - def with_raw_response(self) -> DiagnosticsWithRawResponse: - return DiagnosticsWithRawResponse(self) + def with_raw_response(self) -> DiagnosticsResourceWithRawResponse: + return DiagnosticsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> DiagnosticsWithStreamingResponse: - return DiagnosticsWithStreamingResponse(self) + def with_streaming_response(self) -> DiagnosticsResourceWithStreamingResponse: + return DiagnosticsResourceWithStreamingResponse(self) -class AsyncDiagnostics(AsyncAPIResource): +class AsyncDiagnosticsResource(AsyncAPIResource): @cached_property - def traceroutes(self) -> AsyncTraceroutes: - return AsyncTraceroutes(self._client) + def traceroutes(self) -> AsyncTraceroutesResource: + return AsyncTraceroutesResource(self._client) @cached_property - def with_raw_response(self) -> AsyncDiagnosticsWithRawResponse: - return AsyncDiagnosticsWithRawResponse(self) + def with_raw_response(self) -> AsyncDiagnosticsResourceWithRawResponse: + return AsyncDiagnosticsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncDiagnosticsWithStreamingResponse: - return AsyncDiagnosticsWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncDiagnosticsResourceWithStreamingResponse: + return AsyncDiagnosticsResourceWithStreamingResponse(self) -class DiagnosticsWithRawResponse: - def __init__(self, diagnostics: Diagnostics) -> None: +class DiagnosticsResourceWithRawResponse: + def __init__(self, diagnostics: DiagnosticsResource) -> None: self._diagnostics = diagnostics @cached_property - def traceroutes(self) -> TraceroutesWithRawResponse: - return TraceroutesWithRawResponse(self._diagnostics.traceroutes) + def traceroutes(self) -> TraceroutesResourceWithRawResponse: + return TraceroutesResourceWithRawResponse(self._diagnostics.traceroutes) -class AsyncDiagnosticsWithRawResponse: - def __init__(self, diagnostics: AsyncDiagnostics) -> None: +class AsyncDiagnosticsResourceWithRawResponse: + def __init__(self, diagnostics: AsyncDiagnosticsResource) -> None: self._diagnostics = diagnostics @cached_property - def traceroutes(self) -> AsyncTraceroutesWithRawResponse: - return AsyncTraceroutesWithRawResponse(self._diagnostics.traceroutes) + def traceroutes(self) -> AsyncTraceroutesResourceWithRawResponse: + return AsyncTraceroutesResourceWithRawResponse(self._diagnostics.traceroutes) -class DiagnosticsWithStreamingResponse: - def __init__(self, diagnostics: Diagnostics) -> None: +class DiagnosticsResourceWithStreamingResponse: + def __init__(self, diagnostics: DiagnosticsResource) -> None: self._diagnostics = diagnostics @cached_property - def traceroutes(self) -> TraceroutesWithStreamingResponse: - return TraceroutesWithStreamingResponse(self._diagnostics.traceroutes) + def traceroutes(self) -> TraceroutesResourceWithStreamingResponse: + return TraceroutesResourceWithStreamingResponse(self._diagnostics.traceroutes) -class AsyncDiagnosticsWithStreamingResponse: - def __init__(self, diagnostics: AsyncDiagnostics) -> None: +class AsyncDiagnosticsResourceWithStreamingResponse: + def __init__(self, diagnostics: AsyncDiagnosticsResource) -> None: self._diagnostics = diagnostics @cached_property - def traceroutes(self) -> AsyncTraceroutesWithStreamingResponse: - return AsyncTraceroutesWithStreamingResponse(self._diagnostics.traceroutes) + def traceroutes(self) -> AsyncTraceroutesResourceWithStreamingResponse: + return AsyncTraceroutesResourceWithStreamingResponse(self._diagnostics.traceroutes) diff --git a/src/cloudflare/resources/diagnostics/traceroutes.py b/src/cloudflare/resources/diagnostics/traceroutes.py index f6f3e218ec5..78ec1ca7d88 100644 --- a/src/cloudflare/resources/diagnostics/traceroutes.py +++ b/src/cloudflare/resources/diagnostics/traceroutes.py @@ -26,17 +26,17 @@ from ...types.diagnostics import traceroute_create_params from ...types.diagnostics.traceroute_create_response import TracerouteCreateResponse -__all__ = ["Traceroutes", "AsyncTraceroutes"] +__all__ = ["TraceroutesResource", "AsyncTraceroutesResource"] -class Traceroutes(SyncAPIResource): +class TraceroutesResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> TraceroutesWithRawResponse: - return TraceroutesWithRawResponse(self) + def with_raw_response(self) -> TraceroutesResourceWithRawResponse: + return TraceroutesResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> TraceroutesWithStreamingResponse: - return TraceroutesWithStreamingResponse(self) + def with_streaming_response(self) -> TraceroutesResourceWithStreamingResponse: + return TraceroutesResourceWithStreamingResponse(self) def create( self, @@ -92,14 +92,14 @@ def create( ) -class AsyncTraceroutes(AsyncAPIResource): +class AsyncTraceroutesResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncTraceroutesWithRawResponse: - return AsyncTraceroutesWithRawResponse(self) + def with_raw_response(self) -> AsyncTraceroutesResourceWithRawResponse: + return AsyncTraceroutesResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncTraceroutesWithStreamingResponse: - return AsyncTraceroutesWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncTraceroutesResourceWithStreamingResponse: + return AsyncTraceroutesResourceWithStreamingResponse(self) async def create( self, @@ -155,8 +155,8 @@ async def create( ) -class TraceroutesWithRawResponse: - def __init__(self, traceroutes: Traceroutes) -> None: +class TraceroutesResourceWithRawResponse: + def __init__(self, traceroutes: TraceroutesResource) -> None: self._traceroutes = traceroutes self.create = to_raw_response_wrapper( @@ -164,8 +164,8 @@ def __init__(self, traceroutes: Traceroutes) -> None: ) -class AsyncTraceroutesWithRawResponse: - def __init__(self, traceroutes: AsyncTraceroutes) -> None: +class AsyncTraceroutesResourceWithRawResponse: + def __init__(self, traceroutes: AsyncTraceroutesResource) -> None: self._traceroutes = traceroutes self.create = async_to_raw_response_wrapper( @@ -173,8 +173,8 @@ def __init__(self, traceroutes: AsyncTraceroutes) -> None: ) -class TraceroutesWithStreamingResponse: - def __init__(self, traceroutes: Traceroutes) -> None: +class TraceroutesResourceWithStreamingResponse: + def __init__(self, traceroutes: TraceroutesResource) -> None: self._traceroutes = traceroutes self.create = to_streamed_response_wrapper( @@ -182,8 +182,8 @@ def __init__(self, traceroutes: Traceroutes) -> None: ) -class AsyncTraceroutesWithStreamingResponse: - def __init__(self, traceroutes: AsyncTraceroutes) -> None: +class AsyncTraceroutesResourceWithStreamingResponse: + def __init__(self, traceroutes: AsyncTraceroutesResource) -> None: self._traceroutes = traceroutes self.create = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/dns/__init__.py b/src/cloudflare/resources/dns/__init__.py index 3a2befc7254..6f835256c8d 100644 --- a/src/cloudflare/resources/dns/__init__.py +++ b/src/cloudflare/resources/dns/__init__.py @@ -1,20 +1,20 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from .dns import ( - DNS, - AsyncDNS, - DNSWithRawResponse, - AsyncDNSWithRawResponse, - DNSWithStreamingResponse, - AsyncDNSWithStreamingResponse, + DNSResource, + AsyncDNSResource, + DNSResourceWithRawResponse, + AsyncDNSResourceWithRawResponse, + DNSResourceWithStreamingResponse, + AsyncDNSResourceWithStreamingResponse, ) from .records import ( - Records, - AsyncRecords, - RecordsWithRawResponse, - AsyncRecordsWithRawResponse, - RecordsWithStreamingResponse, - AsyncRecordsWithStreamingResponse, + RecordsResource, + AsyncRecordsResource, + RecordsResourceWithRawResponse, + AsyncRecordsResourceWithRawResponse, + RecordsResourceWithStreamingResponse, + AsyncRecordsResourceWithStreamingResponse, ) from .firewall import ( FirewallResource, @@ -25,37 +25,37 @@ AsyncFirewallResourceWithStreamingResponse, ) from .analytics import ( - Analytics, - AsyncAnalytics, - AnalyticsWithRawResponse, - AsyncAnalyticsWithRawResponse, - AnalyticsWithStreamingResponse, - AsyncAnalyticsWithStreamingResponse, + AnalyticsResource, + AsyncAnalyticsResource, + AnalyticsResourceWithRawResponse, + AsyncAnalyticsResourceWithRawResponse, + AnalyticsResourceWithStreamingResponse, + AsyncAnalyticsResourceWithStreamingResponse, ) __all__ = [ - "Records", - "AsyncRecords", - "RecordsWithRawResponse", - "AsyncRecordsWithRawResponse", - "RecordsWithStreamingResponse", - "AsyncRecordsWithStreamingResponse", - "Analytics", - "AsyncAnalytics", - "AnalyticsWithRawResponse", - "AsyncAnalyticsWithRawResponse", - "AnalyticsWithStreamingResponse", - "AsyncAnalyticsWithStreamingResponse", + "RecordsResource", + "AsyncRecordsResource", + "RecordsResourceWithRawResponse", + "AsyncRecordsResourceWithRawResponse", + "RecordsResourceWithStreamingResponse", + "AsyncRecordsResourceWithStreamingResponse", + "AnalyticsResource", + "AsyncAnalyticsResource", + "AnalyticsResourceWithRawResponse", + "AsyncAnalyticsResourceWithRawResponse", + "AnalyticsResourceWithStreamingResponse", + "AsyncAnalyticsResourceWithStreamingResponse", "FirewallResource", "AsyncFirewallResource", "FirewallResourceWithRawResponse", "AsyncFirewallResourceWithRawResponse", "FirewallResourceWithStreamingResponse", "AsyncFirewallResourceWithStreamingResponse", - "DNS", - "AsyncDNS", - "DNSWithRawResponse", - "AsyncDNSWithRawResponse", - "DNSWithStreamingResponse", - "AsyncDNSWithStreamingResponse", + "DNSResource", + "AsyncDNSResource", + "DNSResourceWithRawResponse", + "AsyncDNSResourceWithRawResponse", + "DNSResourceWithStreamingResponse", + "AsyncDNSResourceWithStreamingResponse", ] diff --git a/src/cloudflare/resources/dns/analytics/__init__.py b/src/cloudflare/resources/dns/analytics/__init__.py index 15d7a4bfd5f..05639f9f7bc 100644 --- a/src/cloudflare/resources/dns/analytics/__init__.py +++ b/src/cloudflare/resources/dns/analytics/__init__.py @@ -1,33 +1,33 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from .reports import ( - Reports, - AsyncReports, - ReportsWithRawResponse, - AsyncReportsWithRawResponse, - ReportsWithStreamingResponse, - AsyncReportsWithStreamingResponse, + ReportsResource, + AsyncReportsResource, + ReportsResourceWithRawResponse, + AsyncReportsResourceWithRawResponse, + ReportsResourceWithStreamingResponse, + AsyncReportsResourceWithStreamingResponse, ) from .analytics import ( - Analytics, - AsyncAnalytics, - AnalyticsWithRawResponse, - AsyncAnalyticsWithRawResponse, - AnalyticsWithStreamingResponse, - AsyncAnalyticsWithStreamingResponse, + AnalyticsResource, + AsyncAnalyticsResource, + AnalyticsResourceWithRawResponse, + AsyncAnalyticsResourceWithRawResponse, + AnalyticsResourceWithStreamingResponse, + AsyncAnalyticsResourceWithStreamingResponse, ) __all__ = [ - "Reports", - "AsyncReports", - "ReportsWithRawResponse", - "AsyncReportsWithRawResponse", - "ReportsWithStreamingResponse", - "AsyncReportsWithStreamingResponse", - "Analytics", - "AsyncAnalytics", - "AnalyticsWithRawResponse", - "AsyncAnalyticsWithRawResponse", - "AnalyticsWithStreamingResponse", - "AsyncAnalyticsWithStreamingResponse", + "ReportsResource", + "AsyncReportsResource", + "ReportsResourceWithRawResponse", + "AsyncReportsResourceWithRawResponse", + "ReportsResourceWithStreamingResponse", + "AsyncReportsResourceWithStreamingResponse", + "AnalyticsResource", + "AsyncAnalyticsResource", + "AnalyticsResourceWithRawResponse", + "AsyncAnalyticsResourceWithRawResponse", + "AnalyticsResourceWithStreamingResponse", + "AsyncAnalyticsResourceWithStreamingResponse", ] diff --git a/src/cloudflare/resources/dns/analytics/analytics.py b/src/cloudflare/resources/dns/analytics/analytics.py index 58181bd95e1..c08523958f5 100644 --- a/src/cloudflare/resources/dns/analytics/analytics.py +++ b/src/cloudflare/resources/dns/analytics/analytics.py @@ -3,79 +3,79 @@ from __future__ import annotations from .reports import ( - Reports, - AsyncReports, - ReportsWithRawResponse, - AsyncReportsWithRawResponse, - ReportsWithStreamingResponse, - AsyncReportsWithStreamingResponse, + ReportsResource, + AsyncReportsResource, + ReportsResourceWithRawResponse, + AsyncReportsResourceWithRawResponse, + ReportsResourceWithStreamingResponse, + AsyncReportsResourceWithStreamingResponse, ) from ...._compat import cached_property from ...._resource import SyncAPIResource, AsyncAPIResource -from .reports.reports import Reports, AsyncReports +from .reports.reports import ReportsResource, AsyncReportsResource -__all__ = ["Analytics", "AsyncAnalytics"] +__all__ = ["AnalyticsResource", "AsyncAnalyticsResource"] -class Analytics(SyncAPIResource): +class AnalyticsResource(SyncAPIResource): @cached_property - def reports(self) -> Reports: - return Reports(self._client) + def reports(self) -> ReportsResource: + return ReportsResource(self._client) @cached_property - def with_raw_response(self) -> AnalyticsWithRawResponse: - return AnalyticsWithRawResponse(self) + def with_raw_response(self) -> AnalyticsResourceWithRawResponse: + return AnalyticsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AnalyticsWithStreamingResponse: - return AnalyticsWithStreamingResponse(self) + def with_streaming_response(self) -> AnalyticsResourceWithStreamingResponse: + return AnalyticsResourceWithStreamingResponse(self) -class AsyncAnalytics(AsyncAPIResource): +class AsyncAnalyticsResource(AsyncAPIResource): @cached_property - def reports(self) -> AsyncReports: - return AsyncReports(self._client) + def reports(self) -> AsyncReportsResource: + return AsyncReportsResource(self._client) @cached_property - def with_raw_response(self) -> AsyncAnalyticsWithRawResponse: - return AsyncAnalyticsWithRawResponse(self) + def with_raw_response(self) -> AsyncAnalyticsResourceWithRawResponse: + return AsyncAnalyticsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncAnalyticsWithStreamingResponse: - return AsyncAnalyticsWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncAnalyticsResourceWithStreamingResponse: + return AsyncAnalyticsResourceWithStreamingResponse(self) -class AnalyticsWithRawResponse: - def __init__(self, analytics: Analytics) -> None: +class AnalyticsResourceWithRawResponse: + def __init__(self, analytics: AnalyticsResource) -> None: self._analytics = analytics @cached_property - def reports(self) -> ReportsWithRawResponse: - return ReportsWithRawResponse(self._analytics.reports) + def reports(self) -> ReportsResourceWithRawResponse: + return ReportsResourceWithRawResponse(self._analytics.reports) -class AsyncAnalyticsWithRawResponse: - def __init__(self, analytics: AsyncAnalytics) -> None: +class AsyncAnalyticsResourceWithRawResponse: + def __init__(self, analytics: AsyncAnalyticsResource) -> None: self._analytics = analytics @cached_property - def reports(self) -> AsyncReportsWithRawResponse: - return AsyncReportsWithRawResponse(self._analytics.reports) + def reports(self) -> AsyncReportsResourceWithRawResponse: + return AsyncReportsResourceWithRawResponse(self._analytics.reports) -class AnalyticsWithStreamingResponse: - def __init__(self, analytics: Analytics) -> None: +class AnalyticsResourceWithStreamingResponse: + def __init__(self, analytics: AnalyticsResource) -> None: self._analytics = analytics @cached_property - def reports(self) -> ReportsWithStreamingResponse: - return ReportsWithStreamingResponse(self._analytics.reports) + def reports(self) -> ReportsResourceWithStreamingResponse: + return ReportsResourceWithStreamingResponse(self._analytics.reports) -class AsyncAnalyticsWithStreamingResponse: - def __init__(self, analytics: AsyncAnalytics) -> None: +class AsyncAnalyticsResourceWithStreamingResponse: + def __init__(self, analytics: AsyncAnalyticsResource) -> None: self._analytics = analytics @cached_property - def reports(self) -> AsyncReportsWithStreamingResponse: - return AsyncReportsWithStreamingResponse(self._analytics.reports) + def reports(self) -> AsyncReportsResourceWithStreamingResponse: + return AsyncReportsResourceWithStreamingResponse(self._analytics.reports) diff --git a/src/cloudflare/resources/dns/analytics/reports/__init__.py b/src/cloudflare/resources/dns/analytics/reports/__init__.py index 863e89438cf..998dba42f94 100644 --- a/src/cloudflare/resources/dns/analytics/reports/__init__.py +++ b/src/cloudflare/resources/dns/analytics/reports/__init__.py @@ -1,33 +1,33 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from .bytimes import ( - Bytimes, - AsyncBytimes, - BytimesWithRawResponse, - AsyncBytimesWithRawResponse, - BytimesWithStreamingResponse, - AsyncBytimesWithStreamingResponse, + BytimesResource, + AsyncBytimesResource, + BytimesResourceWithRawResponse, + AsyncBytimesResourceWithRawResponse, + BytimesResourceWithStreamingResponse, + AsyncBytimesResourceWithStreamingResponse, ) from .reports import ( - Reports, - AsyncReports, - ReportsWithRawResponse, - AsyncReportsWithRawResponse, - ReportsWithStreamingResponse, - AsyncReportsWithStreamingResponse, + ReportsResource, + AsyncReportsResource, + ReportsResourceWithRawResponse, + AsyncReportsResourceWithRawResponse, + ReportsResourceWithStreamingResponse, + AsyncReportsResourceWithStreamingResponse, ) __all__ = [ - "Bytimes", - "AsyncBytimes", - "BytimesWithRawResponse", - "AsyncBytimesWithRawResponse", - "BytimesWithStreamingResponse", - "AsyncBytimesWithStreamingResponse", - "Reports", - "AsyncReports", - "ReportsWithRawResponse", - "AsyncReportsWithRawResponse", - "ReportsWithStreamingResponse", - "AsyncReportsWithStreamingResponse", + "BytimesResource", + "AsyncBytimesResource", + "BytimesResourceWithRawResponse", + "AsyncBytimesResourceWithRawResponse", + "BytimesResourceWithStreamingResponse", + "AsyncBytimesResourceWithStreamingResponse", + "ReportsResource", + "AsyncReportsResource", + "ReportsResourceWithRawResponse", + "AsyncReportsResourceWithRawResponse", + "ReportsResourceWithStreamingResponse", + "AsyncReportsResourceWithStreamingResponse", ] diff --git a/src/cloudflare/resources/dns/analytics/reports/bytimes.py b/src/cloudflare/resources/dns/analytics/reports/bytimes.py index 5c2899becbc..e63915e8090 100644 --- a/src/cloudflare/resources/dns/analytics/reports/bytimes.py +++ b/src/cloudflare/resources/dns/analytics/reports/bytimes.py @@ -28,17 +28,17 @@ from .....types.dns.analytics.reports import bytime_get_params from .....types.dns.analytics.reports.by_time import ByTime -__all__ = ["Bytimes", "AsyncBytimes"] +__all__ = ["BytimesResource", "AsyncBytimesResource"] -class Bytimes(SyncAPIResource): +class BytimesResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> BytimesWithRawResponse: - return BytimesWithRawResponse(self) + def with_raw_response(self) -> BytimesResourceWithRawResponse: + return BytimesResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> BytimesWithStreamingResponse: - return BytimesWithStreamingResponse(self) + def with_streaming_response(self) -> BytimesResourceWithStreamingResponse: + return BytimesResourceWithStreamingResponse(self) def get( self, @@ -123,14 +123,14 @@ def get( ) -class AsyncBytimes(AsyncAPIResource): +class AsyncBytimesResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncBytimesWithRawResponse: - return AsyncBytimesWithRawResponse(self) + def with_raw_response(self) -> AsyncBytimesResourceWithRawResponse: + return AsyncBytimesResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncBytimesWithStreamingResponse: - return AsyncBytimesWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncBytimesResourceWithStreamingResponse: + return AsyncBytimesResourceWithStreamingResponse(self) async def get( self, @@ -215,8 +215,8 @@ async def get( ) -class BytimesWithRawResponse: - def __init__(self, bytimes: Bytimes) -> None: +class BytimesResourceWithRawResponse: + def __init__(self, bytimes: BytimesResource) -> None: self._bytimes = bytimes self.get = to_raw_response_wrapper( @@ -224,8 +224,8 @@ def __init__(self, bytimes: Bytimes) -> None: ) -class AsyncBytimesWithRawResponse: - def __init__(self, bytimes: AsyncBytimes) -> None: +class AsyncBytimesResourceWithRawResponse: + def __init__(self, bytimes: AsyncBytimesResource) -> None: self._bytimes = bytimes self.get = async_to_raw_response_wrapper( @@ -233,8 +233,8 @@ def __init__(self, bytimes: AsyncBytimes) -> None: ) -class BytimesWithStreamingResponse: - def __init__(self, bytimes: Bytimes) -> None: +class BytimesResourceWithStreamingResponse: + def __init__(self, bytimes: BytimesResource) -> None: self._bytimes = bytimes self.get = to_streamed_response_wrapper( @@ -242,8 +242,8 @@ def __init__(self, bytimes: Bytimes) -> None: ) -class AsyncBytimesWithStreamingResponse: - def __init__(self, bytimes: AsyncBytimes) -> None: +class AsyncBytimesResourceWithStreamingResponse: + def __init__(self, bytimes: AsyncBytimesResource) -> None: self._bytimes = bytimes self.get = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/dns/analytics/reports/reports.py b/src/cloudflare/resources/dns/analytics/reports/reports.py index 3eda553abad..7649e01724f 100644 --- a/src/cloudflare/resources/dns/analytics/reports/reports.py +++ b/src/cloudflare/resources/dns/analytics/reports/reports.py @@ -8,12 +8,12 @@ import httpx from .bytimes import ( - Bytimes, - AsyncBytimes, - BytimesWithRawResponse, - AsyncBytimesWithRawResponse, - BytimesWithStreamingResponse, - AsyncBytimesWithStreamingResponse, + BytimesResource, + AsyncBytimesResource, + BytimesResourceWithRawResponse, + AsyncBytimesResourceWithRawResponse, + BytimesResourceWithStreamingResponse, + AsyncBytimesResourceWithStreamingResponse, ) from ....._types import NOT_GIVEN, Body, Query, Headers, NotGiven from ....._utils import ( @@ -35,21 +35,21 @@ from .....types.dns.analytics import report_get_params from .....types.dns.analytics.report import Report -__all__ = ["Reports", "AsyncReports"] +__all__ = ["ReportsResource", "AsyncReportsResource"] -class Reports(SyncAPIResource): +class ReportsResource(SyncAPIResource): @cached_property - def bytimes(self) -> Bytimes: - return Bytimes(self._client) + def bytimes(self) -> BytimesResource: + return BytimesResource(self._client) @cached_property - def with_raw_response(self) -> ReportsWithRawResponse: - return ReportsWithRawResponse(self) + def with_raw_response(self) -> ReportsResourceWithRawResponse: + return ReportsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> ReportsWithStreamingResponse: - return ReportsWithStreamingResponse(self) + def with_streaming_response(self) -> ReportsResourceWithStreamingResponse: + return ReportsResourceWithStreamingResponse(self) def get( self, @@ -129,18 +129,18 @@ def get( ) -class AsyncReports(AsyncAPIResource): +class AsyncReportsResource(AsyncAPIResource): @cached_property - def bytimes(self) -> AsyncBytimes: - return AsyncBytimes(self._client) + def bytimes(self) -> AsyncBytimesResource: + return AsyncBytimesResource(self._client) @cached_property - def with_raw_response(self) -> AsyncReportsWithRawResponse: - return AsyncReportsWithRawResponse(self) + def with_raw_response(self) -> AsyncReportsResourceWithRawResponse: + return AsyncReportsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncReportsWithStreamingResponse: - return AsyncReportsWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncReportsResourceWithStreamingResponse: + return AsyncReportsResourceWithStreamingResponse(self) async def get( self, @@ -220,8 +220,8 @@ async def get( ) -class ReportsWithRawResponse: - def __init__(self, reports: Reports) -> None: +class ReportsResourceWithRawResponse: + def __init__(self, reports: ReportsResource) -> None: self._reports = reports self.get = to_raw_response_wrapper( @@ -229,12 +229,12 @@ def __init__(self, reports: Reports) -> None: ) @cached_property - def bytimes(self) -> BytimesWithRawResponse: - return BytimesWithRawResponse(self._reports.bytimes) + def bytimes(self) -> BytimesResourceWithRawResponse: + return BytimesResourceWithRawResponse(self._reports.bytimes) -class AsyncReportsWithRawResponse: - def __init__(self, reports: AsyncReports) -> None: +class AsyncReportsResourceWithRawResponse: + def __init__(self, reports: AsyncReportsResource) -> None: self._reports = reports self.get = async_to_raw_response_wrapper( @@ -242,12 +242,12 @@ def __init__(self, reports: AsyncReports) -> None: ) @cached_property - def bytimes(self) -> AsyncBytimesWithRawResponse: - return AsyncBytimesWithRawResponse(self._reports.bytimes) + def bytimes(self) -> AsyncBytimesResourceWithRawResponse: + return AsyncBytimesResourceWithRawResponse(self._reports.bytimes) -class ReportsWithStreamingResponse: - def __init__(self, reports: Reports) -> None: +class ReportsResourceWithStreamingResponse: + def __init__(self, reports: ReportsResource) -> None: self._reports = reports self.get = to_streamed_response_wrapper( @@ -255,12 +255,12 @@ def __init__(self, reports: Reports) -> None: ) @cached_property - def bytimes(self) -> BytimesWithStreamingResponse: - return BytimesWithStreamingResponse(self._reports.bytimes) + def bytimes(self) -> BytimesResourceWithStreamingResponse: + return BytimesResourceWithStreamingResponse(self._reports.bytimes) -class AsyncReportsWithStreamingResponse: - def __init__(self, reports: AsyncReports) -> None: +class AsyncReportsResourceWithStreamingResponse: + def __init__(self, reports: AsyncReportsResource) -> None: self._reports = reports self.get = async_to_streamed_response_wrapper( @@ -268,5 +268,5 @@ def __init__(self, reports: AsyncReports) -> None: ) @cached_property - def bytimes(self) -> AsyncBytimesWithStreamingResponse: - return AsyncBytimesWithStreamingResponse(self._reports.bytimes) + def bytimes(self) -> AsyncBytimesResourceWithStreamingResponse: + return AsyncBytimesResourceWithStreamingResponse(self._reports.bytimes) diff --git a/src/cloudflare/resources/dns/dns.py b/src/cloudflare/resources/dns/dns.py index a57b310be04..2f71f123a84 100644 --- a/src/cloudflare/resources/dns/dns.py +++ b/src/cloudflare/resources/dns/dns.py @@ -3,12 +3,12 @@ from __future__ import annotations from .records import ( - Records, - AsyncRecords, - RecordsWithRawResponse, - AsyncRecordsWithRawResponse, - RecordsWithStreamingResponse, - AsyncRecordsWithStreamingResponse, + RecordsResource, + AsyncRecordsResource, + RecordsResourceWithRawResponse, + AsyncRecordsResourceWithRawResponse, + RecordsResourceWithStreamingResponse, + AsyncRecordsResourceWithStreamingResponse, ) from .firewall import ( FirewallResource, @@ -20,126 +20,126 @@ ) from ..._compat import cached_property from .analytics import ( - Analytics, - AsyncAnalytics, - AnalyticsWithRawResponse, - AsyncAnalyticsWithRawResponse, - AnalyticsWithStreamingResponse, - AsyncAnalyticsWithStreamingResponse, + AnalyticsResource, + AsyncAnalyticsResource, + AnalyticsResourceWithRawResponse, + AsyncAnalyticsResourceWithRawResponse, + AnalyticsResourceWithStreamingResponse, + AsyncAnalyticsResourceWithStreamingResponse, ) from ..._resource import SyncAPIResource, AsyncAPIResource from .firewall.firewall import FirewallResource, AsyncFirewallResource -from .analytics.analytics import Analytics, AsyncAnalytics +from .analytics.analytics import AnalyticsResource, AsyncAnalyticsResource -__all__ = ["DNS", "AsyncDNS"] +__all__ = ["DNSResource", "AsyncDNSResource"] -class DNS(SyncAPIResource): +class DNSResource(SyncAPIResource): @cached_property - def records(self) -> Records: - return Records(self._client) + def records(self) -> RecordsResource: + return RecordsResource(self._client) @cached_property - def analytics(self) -> Analytics: - return Analytics(self._client) + def analytics(self) -> AnalyticsResource: + return AnalyticsResource(self._client) @cached_property def firewall(self) -> FirewallResource: return FirewallResource(self._client) @cached_property - def with_raw_response(self) -> DNSWithRawResponse: - return DNSWithRawResponse(self) + def with_raw_response(self) -> DNSResourceWithRawResponse: + return DNSResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> DNSWithStreamingResponse: - return DNSWithStreamingResponse(self) + def with_streaming_response(self) -> DNSResourceWithStreamingResponse: + return DNSResourceWithStreamingResponse(self) -class AsyncDNS(AsyncAPIResource): +class AsyncDNSResource(AsyncAPIResource): @cached_property - def records(self) -> AsyncRecords: - return AsyncRecords(self._client) + def records(self) -> AsyncRecordsResource: + return AsyncRecordsResource(self._client) @cached_property - def analytics(self) -> AsyncAnalytics: - return AsyncAnalytics(self._client) + def analytics(self) -> AsyncAnalyticsResource: + return AsyncAnalyticsResource(self._client) @cached_property def firewall(self) -> AsyncFirewallResource: return AsyncFirewallResource(self._client) @cached_property - def with_raw_response(self) -> AsyncDNSWithRawResponse: - return AsyncDNSWithRawResponse(self) + def with_raw_response(self) -> AsyncDNSResourceWithRawResponse: + return AsyncDNSResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncDNSWithStreamingResponse: - return AsyncDNSWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncDNSResourceWithStreamingResponse: + return AsyncDNSResourceWithStreamingResponse(self) -class DNSWithRawResponse: - def __init__(self, dns: DNS) -> None: +class DNSResourceWithRawResponse: + def __init__(self, dns: DNSResource) -> None: self._dns = dns @cached_property - def records(self) -> RecordsWithRawResponse: - return RecordsWithRawResponse(self._dns.records) + def records(self) -> RecordsResourceWithRawResponse: + return RecordsResourceWithRawResponse(self._dns.records) @cached_property - def analytics(self) -> AnalyticsWithRawResponse: - return AnalyticsWithRawResponse(self._dns.analytics) + def analytics(self) -> AnalyticsResourceWithRawResponse: + return AnalyticsResourceWithRawResponse(self._dns.analytics) @cached_property def firewall(self) -> FirewallResourceWithRawResponse: return FirewallResourceWithRawResponse(self._dns.firewall) -class AsyncDNSWithRawResponse: - def __init__(self, dns: AsyncDNS) -> None: +class AsyncDNSResourceWithRawResponse: + def __init__(self, dns: AsyncDNSResource) -> None: self._dns = dns @cached_property - def records(self) -> AsyncRecordsWithRawResponse: - return AsyncRecordsWithRawResponse(self._dns.records) + def records(self) -> AsyncRecordsResourceWithRawResponse: + return AsyncRecordsResourceWithRawResponse(self._dns.records) @cached_property - def analytics(self) -> AsyncAnalyticsWithRawResponse: - return AsyncAnalyticsWithRawResponse(self._dns.analytics) + def analytics(self) -> AsyncAnalyticsResourceWithRawResponse: + return AsyncAnalyticsResourceWithRawResponse(self._dns.analytics) @cached_property def firewall(self) -> AsyncFirewallResourceWithRawResponse: return AsyncFirewallResourceWithRawResponse(self._dns.firewall) -class DNSWithStreamingResponse: - def __init__(self, dns: DNS) -> None: +class DNSResourceWithStreamingResponse: + def __init__(self, dns: DNSResource) -> None: self._dns = dns @cached_property - def records(self) -> RecordsWithStreamingResponse: - return RecordsWithStreamingResponse(self._dns.records) + def records(self) -> RecordsResourceWithStreamingResponse: + return RecordsResourceWithStreamingResponse(self._dns.records) @cached_property - def analytics(self) -> AnalyticsWithStreamingResponse: - return AnalyticsWithStreamingResponse(self._dns.analytics) + def analytics(self) -> AnalyticsResourceWithStreamingResponse: + return AnalyticsResourceWithStreamingResponse(self._dns.analytics) @cached_property def firewall(self) -> FirewallResourceWithStreamingResponse: return FirewallResourceWithStreamingResponse(self._dns.firewall) -class AsyncDNSWithStreamingResponse: - def __init__(self, dns: AsyncDNS) -> None: +class AsyncDNSResourceWithStreamingResponse: + def __init__(self, dns: AsyncDNSResource) -> None: self._dns = dns @cached_property - def records(self) -> AsyncRecordsWithStreamingResponse: - return AsyncRecordsWithStreamingResponse(self._dns.records) + def records(self) -> AsyncRecordsResourceWithStreamingResponse: + return AsyncRecordsResourceWithStreamingResponse(self._dns.records) @cached_property - def analytics(self) -> AsyncAnalyticsWithStreamingResponse: - return AsyncAnalyticsWithStreamingResponse(self._dns.analytics) + def analytics(self) -> AsyncAnalyticsResourceWithStreamingResponse: + return AsyncAnalyticsResourceWithStreamingResponse(self._dns.analytics) @cached_property def firewall(self) -> AsyncFirewallResourceWithStreamingResponse: diff --git a/src/cloudflare/resources/dns/firewall/__init__.py b/src/cloudflare/resources/dns/firewall/__init__.py index a79f372cfa4..0d9d0b6aae2 100644 --- a/src/cloudflare/resources/dns/firewall/__init__.py +++ b/src/cloudflare/resources/dns/firewall/__init__.py @@ -9,21 +9,21 @@ AsyncFirewallResourceWithStreamingResponse, ) from .analytics import ( - Analytics, - AsyncAnalytics, - AnalyticsWithRawResponse, - AsyncAnalyticsWithRawResponse, - AnalyticsWithStreamingResponse, - AsyncAnalyticsWithStreamingResponse, + AnalyticsResource, + AsyncAnalyticsResource, + AnalyticsResourceWithRawResponse, + AsyncAnalyticsResourceWithRawResponse, + AnalyticsResourceWithStreamingResponse, + AsyncAnalyticsResourceWithStreamingResponse, ) __all__ = [ - "Analytics", - "AsyncAnalytics", - "AnalyticsWithRawResponse", - "AsyncAnalyticsWithRawResponse", - "AnalyticsWithStreamingResponse", - "AsyncAnalyticsWithStreamingResponse", + "AnalyticsResource", + "AsyncAnalyticsResource", + "AnalyticsResourceWithRawResponse", + "AsyncAnalyticsResourceWithRawResponse", + "AnalyticsResourceWithStreamingResponse", + "AsyncAnalyticsResourceWithStreamingResponse", "FirewallResource", "AsyncFirewallResource", "FirewallResourceWithRawResponse", diff --git a/src/cloudflare/resources/dns/firewall/analytics/__init__.py b/src/cloudflare/resources/dns/firewall/analytics/__init__.py index 15d7a4bfd5f..05639f9f7bc 100644 --- a/src/cloudflare/resources/dns/firewall/analytics/__init__.py +++ b/src/cloudflare/resources/dns/firewall/analytics/__init__.py @@ -1,33 +1,33 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from .reports import ( - Reports, - AsyncReports, - ReportsWithRawResponse, - AsyncReportsWithRawResponse, - ReportsWithStreamingResponse, - AsyncReportsWithStreamingResponse, + ReportsResource, + AsyncReportsResource, + ReportsResourceWithRawResponse, + AsyncReportsResourceWithRawResponse, + ReportsResourceWithStreamingResponse, + AsyncReportsResourceWithStreamingResponse, ) from .analytics import ( - Analytics, - AsyncAnalytics, - AnalyticsWithRawResponse, - AsyncAnalyticsWithRawResponse, - AnalyticsWithStreamingResponse, - AsyncAnalyticsWithStreamingResponse, + AnalyticsResource, + AsyncAnalyticsResource, + AnalyticsResourceWithRawResponse, + AsyncAnalyticsResourceWithRawResponse, + AnalyticsResourceWithStreamingResponse, + AsyncAnalyticsResourceWithStreamingResponse, ) __all__ = [ - "Reports", - "AsyncReports", - "ReportsWithRawResponse", - "AsyncReportsWithRawResponse", - "ReportsWithStreamingResponse", - "AsyncReportsWithStreamingResponse", - "Analytics", - "AsyncAnalytics", - "AnalyticsWithRawResponse", - "AsyncAnalyticsWithRawResponse", - "AnalyticsWithStreamingResponse", - "AsyncAnalyticsWithStreamingResponse", + "ReportsResource", + "AsyncReportsResource", + "ReportsResourceWithRawResponse", + "AsyncReportsResourceWithRawResponse", + "ReportsResourceWithStreamingResponse", + "AsyncReportsResourceWithStreamingResponse", + "AnalyticsResource", + "AsyncAnalyticsResource", + "AnalyticsResourceWithRawResponse", + "AsyncAnalyticsResourceWithRawResponse", + "AnalyticsResourceWithStreamingResponse", + "AsyncAnalyticsResourceWithStreamingResponse", ] diff --git a/src/cloudflare/resources/dns/firewall/analytics/analytics.py b/src/cloudflare/resources/dns/firewall/analytics/analytics.py index 4b98a9d710d..14e9b86b117 100644 --- a/src/cloudflare/resources/dns/firewall/analytics/analytics.py +++ b/src/cloudflare/resources/dns/firewall/analytics/analytics.py @@ -3,79 +3,79 @@ from __future__ import annotations from .reports import ( - Reports, - AsyncReports, - ReportsWithRawResponse, - AsyncReportsWithRawResponse, - ReportsWithStreamingResponse, - AsyncReportsWithStreamingResponse, + ReportsResource, + AsyncReportsResource, + ReportsResourceWithRawResponse, + AsyncReportsResourceWithRawResponse, + ReportsResourceWithStreamingResponse, + AsyncReportsResourceWithStreamingResponse, ) from ....._compat import cached_property from ....._resource import SyncAPIResource, AsyncAPIResource -from .reports.reports import Reports, AsyncReports +from .reports.reports import ReportsResource, AsyncReportsResource -__all__ = ["Analytics", "AsyncAnalytics"] +__all__ = ["AnalyticsResource", "AsyncAnalyticsResource"] -class Analytics(SyncAPIResource): +class AnalyticsResource(SyncAPIResource): @cached_property - def reports(self) -> Reports: - return Reports(self._client) + def reports(self) -> ReportsResource: + return ReportsResource(self._client) @cached_property - def with_raw_response(self) -> AnalyticsWithRawResponse: - return AnalyticsWithRawResponse(self) + def with_raw_response(self) -> AnalyticsResourceWithRawResponse: + return AnalyticsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AnalyticsWithStreamingResponse: - return AnalyticsWithStreamingResponse(self) + def with_streaming_response(self) -> AnalyticsResourceWithStreamingResponse: + return AnalyticsResourceWithStreamingResponse(self) -class AsyncAnalytics(AsyncAPIResource): +class AsyncAnalyticsResource(AsyncAPIResource): @cached_property - def reports(self) -> AsyncReports: - return AsyncReports(self._client) + def reports(self) -> AsyncReportsResource: + return AsyncReportsResource(self._client) @cached_property - def with_raw_response(self) -> AsyncAnalyticsWithRawResponse: - return AsyncAnalyticsWithRawResponse(self) + def with_raw_response(self) -> AsyncAnalyticsResourceWithRawResponse: + return AsyncAnalyticsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncAnalyticsWithStreamingResponse: - return AsyncAnalyticsWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncAnalyticsResourceWithStreamingResponse: + return AsyncAnalyticsResourceWithStreamingResponse(self) -class AnalyticsWithRawResponse: - def __init__(self, analytics: Analytics) -> None: +class AnalyticsResourceWithRawResponse: + def __init__(self, analytics: AnalyticsResource) -> None: self._analytics = analytics @cached_property - def reports(self) -> ReportsWithRawResponse: - return ReportsWithRawResponse(self._analytics.reports) + def reports(self) -> ReportsResourceWithRawResponse: + return ReportsResourceWithRawResponse(self._analytics.reports) -class AsyncAnalyticsWithRawResponse: - def __init__(self, analytics: AsyncAnalytics) -> None: +class AsyncAnalyticsResourceWithRawResponse: + def __init__(self, analytics: AsyncAnalyticsResource) -> None: self._analytics = analytics @cached_property - def reports(self) -> AsyncReportsWithRawResponse: - return AsyncReportsWithRawResponse(self._analytics.reports) + def reports(self) -> AsyncReportsResourceWithRawResponse: + return AsyncReportsResourceWithRawResponse(self._analytics.reports) -class AnalyticsWithStreamingResponse: - def __init__(self, analytics: Analytics) -> None: +class AnalyticsResourceWithStreamingResponse: + def __init__(self, analytics: AnalyticsResource) -> None: self._analytics = analytics @cached_property - def reports(self) -> ReportsWithStreamingResponse: - return ReportsWithStreamingResponse(self._analytics.reports) + def reports(self) -> ReportsResourceWithStreamingResponse: + return ReportsResourceWithStreamingResponse(self._analytics.reports) -class AsyncAnalyticsWithStreamingResponse: - def __init__(self, analytics: AsyncAnalytics) -> None: +class AsyncAnalyticsResourceWithStreamingResponse: + def __init__(self, analytics: AsyncAnalyticsResource) -> None: self._analytics = analytics @cached_property - def reports(self) -> AsyncReportsWithStreamingResponse: - return AsyncReportsWithStreamingResponse(self._analytics.reports) + def reports(self) -> AsyncReportsResourceWithStreamingResponse: + return AsyncReportsResourceWithStreamingResponse(self._analytics.reports) diff --git a/src/cloudflare/resources/dns/firewall/analytics/reports/__init__.py b/src/cloudflare/resources/dns/firewall/analytics/reports/__init__.py index 863e89438cf..998dba42f94 100644 --- a/src/cloudflare/resources/dns/firewall/analytics/reports/__init__.py +++ b/src/cloudflare/resources/dns/firewall/analytics/reports/__init__.py @@ -1,33 +1,33 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from .bytimes import ( - Bytimes, - AsyncBytimes, - BytimesWithRawResponse, - AsyncBytimesWithRawResponse, - BytimesWithStreamingResponse, - AsyncBytimesWithStreamingResponse, + BytimesResource, + AsyncBytimesResource, + BytimesResourceWithRawResponse, + AsyncBytimesResourceWithRawResponse, + BytimesResourceWithStreamingResponse, + AsyncBytimesResourceWithStreamingResponse, ) from .reports import ( - Reports, - AsyncReports, - ReportsWithRawResponse, - AsyncReportsWithRawResponse, - ReportsWithStreamingResponse, - AsyncReportsWithStreamingResponse, + ReportsResource, + AsyncReportsResource, + ReportsResourceWithRawResponse, + AsyncReportsResourceWithRawResponse, + ReportsResourceWithStreamingResponse, + AsyncReportsResourceWithStreamingResponse, ) __all__ = [ - "Bytimes", - "AsyncBytimes", - "BytimesWithRawResponse", - "AsyncBytimesWithRawResponse", - "BytimesWithStreamingResponse", - "AsyncBytimesWithStreamingResponse", - "Reports", - "AsyncReports", - "ReportsWithRawResponse", - "AsyncReportsWithRawResponse", - "ReportsWithStreamingResponse", - "AsyncReportsWithStreamingResponse", + "BytimesResource", + "AsyncBytimesResource", + "BytimesResourceWithRawResponse", + "AsyncBytimesResourceWithRawResponse", + "BytimesResourceWithStreamingResponse", + "AsyncBytimesResourceWithStreamingResponse", + "ReportsResource", + "AsyncReportsResource", + "ReportsResourceWithRawResponse", + "AsyncReportsResourceWithRawResponse", + "ReportsResourceWithStreamingResponse", + "AsyncReportsResourceWithStreamingResponse", ] diff --git a/src/cloudflare/resources/dns/firewall/analytics/reports/bytimes.py b/src/cloudflare/resources/dns/firewall/analytics/reports/bytimes.py index 7b19935235a..05c24c9cce7 100644 --- a/src/cloudflare/resources/dns/firewall/analytics/reports/bytimes.py +++ b/src/cloudflare/resources/dns/firewall/analytics/reports/bytimes.py @@ -28,17 +28,17 @@ from ......types.dns.analytics.reports.by_time import ByTime from ......types.dns.firewall.analytics.reports import bytime_get_params -__all__ = ["Bytimes", "AsyncBytimes"] +__all__ = ["BytimesResource", "AsyncBytimesResource"] -class Bytimes(SyncAPIResource): +class BytimesResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> BytimesWithRawResponse: - return BytimesWithRawResponse(self) + def with_raw_response(self) -> BytimesResourceWithRawResponse: + return BytimesResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> BytimesWithStreamingResponse: - return BytimesWithStreamingResponse(self) + def with_streaming_response(self) -> BytimesResourceWithStreamingResponse: + return BytimesResourceWithStreamingResponse(self) def get( self, @@ -128,14 +128,14 @@ def get( ) -class AsyncBytimes(AsyncAPIResource): +class AsyncBytimesResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncBytimesWithRawResponse: - return AsyncBytimesWithRawResponse(self) + def with_raw_response(self) -> AsyncBytimesResourceWithRawResponse: + return AsyncBytimesResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncBytimesWithStreamingResponse: - return AsyncBytimesWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncBytimesResourceWithStreamingResponse: + return AsyncBytimesResourceWithStreamingResponse(self) async def get( self, @@ -225,8 +225,8 @@ async def get( ) -class BytimesWithRawResponse: - def __init__(self, bytimes: Bytimes) -> None: +class BytimesResourceWithRawResponse: + def __init__(self, bytimes: BytimesResource) -> None: self._bytimes = bytimes self.get = to_raw_response_wrapper( @@ -234,8 +234,8 @@ def __init__(self, bytimes: Bytimes) -> None: ) -class AsyncBytimesWithRawResponse: - def __init__(self, bytimes: AsyncBytimes) -> None: +class AsyncBytimesResourceWithRawResponse: + def __init__(self, bytimes: AsyncBytimesResource) -> None: self._bytimes = bytimes self.get = async_to_raw_response_wrapper( @@ -243,8 +243,8 @@ def __init__(self, bytimes: AsyncBytimes) -> None: ) -class BytimesWithStreamingResponse: - def __init__(self, bytimes: Bytimes) -> None: +class BytimesResourceWithStreamingResponse: + def __init__(self, bytimes: BytimesResource) -> None: self._bytimes = bytimes self.get = to_streamed_response_wrapper( @@ -252,8 +252,8 @@ def __init__(self, bytimes: Bytimes) -> None: ) -class AsyncBytimesWithStreamingResponse: - def __init__(self, bytimes: AsyncBytimes) -> None: +class AsyncBytimesResourceWithStreamingResponse: + def __init__(self, bytimes: AsyncBytimesResource) -> None: self._bytimes = bytimes self.get = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/dns/firewall/analytics/reports/reports.py b/src/cloudflare/resources/dns/firewall/analytics/reports/reports.py index 054ab85e35c..09693f73830 100644 --- a/src/cloudflare/resources/dns/firewall/analytics/reports/reports.py +++ b/src/cloudflare/resources/dns/firewall/analytics/reports/reports.py @@ -8,12 +8,12 @@ import httpx from .bytimes import ( - Bytimes, - AsyncBytimes, - BytimesWithRawResponse, - AsyncBytimesWithRawResponse, - BytimesWithStreamingResponse, - AsyncBytimesWithStreamingResponse, + BytimesResource, + AsyncBytimesResource, + BytimesResourceWithRawResponse, + AsyncBytimesResourceWithRawResponse, + BytimesResourceWithStreamingResponse, + AsyncBytimesResourceWithStreamingResponse, ) from ......_types import NOT_GIVEN, Body, Query, Headers, NotGiven from ......_utils import ( @@ -35,21 +35,21 @@ from ......types.dns.analytics.report import Report from ......types.dns.firewall.analytics import report_get_params -__all__ = ["Reports", "AsyncReports"] +__all__ = ["ReportsResource", "AsyncReportsResource"] -class Reports(SyncAPIResource): +class ReportsResource(SyncAPIResource): @cached_property - def bytimes(self) -> Bytimes: - return Bytimes(self._client) + def bytimes(self) -> BytimesResource: + return BytimesResource(self._client) @cached_property - def with_raw_response(self) -> ReportsWithRawResponse: - return ReportsWithRawResponse(self) + def with_raw_response(self) -> ReportsResourceWithRawResponse: + return ReportsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> ReportsWithStreamingResponse: - return ReportsWithStreamingResponse(self) + def with_streaming_response(self) -> ReportsResourceWithStreamingResponse: + return ReportsResourceWithStreamingResponse(self) def get( self, @@ -134,18 +134,18 @@ def get( ) -class AsyncReports(AsyncAPIResource): +class AsyncReportsResource(AsyncAPIResource): @cached_property - def bytimes(self) -> AsyncBytimes: - return AsyncBytimes(self._client) + def bytimes(self) -> AsyncBytimesResource: + return AsyncBytimesResource(self._client) @cached_property - def with_raw_response(self) -> AsyncReportsWithRawResponse: - return AsyncReportsWithRawResponse(self) + def with_raw_response(self) -> AsyncReportsResourceWithRawResponse: + return AsyncReportsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncReportsWithStreamingResponse: - return AsyncReportsWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncReportsResourceWithStreamingResponse: + return AsyncReportsResourceWithStreamingResponse(self) async def get( self, @@ -230,8 +230,8 @@ async def get( ) -class ReportsWithRawResponse: - def __init__(self, reports: Reports) -> None: +class ReportsResourceWithRawResponse: + def __init__(self, reports: ReportsResource) -> None: self._reports = reports self.get = to_raw_response_wrapper( @@ -239,12 +239,12 @@ def __init__(self, reports: Reports) -> None: ) @cached_property - def bytimes(self) -> BytimesWithRawResponse: - return BytimesWithRawResponse(self._reports.bytimes) + def bytimes(self) -> BytimesResourceWithRawResponse: + return BytimesResourceWithRawResponse(self._reports.bytimes) -class AsyncReportsWithRawResponse: - def __init__(self, reports: AsyncReports) -> None: +class AsyncReportsResourceWithRawResponse: + def __init__(self, reports: AsyncReportsResource) -> None: self._reports = reports self.get = async_to_raw_response_wrapper( @@ -252,12 +252,12 @@ def __init__(self, reports: AsyncReports) -> None: ) @cached_property - def bytimes(self) -> AsyncBytimesWithRawResponse: - return AsyncBytimesWithRawResponse(self._reports.bytimes) + def bytimes(self) -> AsyncBytimesResourceWithRawResponse: + return AsyncBytimesResourceWithRawResponse(self._reports.bytimes) -class ReportsWithStreamingResponse: - def __init__(self, reports: Reports) -> None: +class ReportsResourceWithStreamingResponse: + def __init__(self, reports: ReportsResource) -> None: self._reports = reports self.get = to_streamed_response_wrapper( @@ -265,12 +265,12 @@ def __init__(self, reports: Reports) -> None: ) @cached_property - def bytimes(self) -> BytimesWithStreamingResponse: - return BytimesWithStreamingResponse(self._reports.bytimes) + def bytimes(self) -> BytimesResourceWithStreamingResponse: + return BytimesResourceWithStreamingResponse(self._reports.bytimes) -class AsyncReportsWithStreamingResponse: - def __init__(self, reports: AsyncReports) -> None: +class AsyncReportsResourceWithStreamingResponse: + def __init__(self, reports: AsyncReportsResource) -> None: self._reports = reports self.get = async_to_streamed_response_wrapper( @@ -278,5 +278,5 @@ def __init__(self, reports: AsyncReports) -> None: ) @cached_property - def bytimes(self) -> AsyncBytimesWithStreamingResponse: - return AsyncBytimesWithStreamingResponse(self._reports.bytimes) + def bytimes(self) -> AsyncBytimesResourceWithStreamingResponse: + return AsyncBytimesResourceWithStreamingResponse(self._reports.bytimes) diff --git a/src/cloudflare/resources/dns/firewall/firewall.py b/src/cloudflare/resources/dns/firewall/firewall.py index 2836b849012..a4bbe227f81 100644 --- a/src/cloudflare/resources/dns/firewall/firewall.py +++ b/src/cloudflare/resources/dns/firewall/firewall.py @@ -12,12 +12,12 @@ async_maybe_transform, ) from .analytics import ( - Analytics, - AsyncAnalytics, - AnalyticsWithRawResponse, - AsyncAnalyticsWithRawResponse, - AnalyticsWithStreamingResponse, - AsyncAnalyticsWithStreamingResponse, + AnalyticsResource, + AsyncAnalyticsResource, + AnalyticsResourceWithRawResponse, + AsyncAnalyticsResourceWithRawResponse, + AnalyticsResourceWithStreamingResponse, + AsyncAnalyticsResourceWithStreamingResponse, ) from ...._compat import cached_property from ...._resource import SyncAPIResource, AsyncAPIResource @@ -39,7 +39,7 @@ AsyncPaginator, make_request_options, ) -from .analytics.analytics import Analytics, AsyncAnalytics +from .analytics.analytics import AnalyticsResource, AsyncAnalyticsResource from ....types.dns.firewall.firewall import Firewall from ....types.dns.firewall_ips_param import FirewallIPsParam from ....types.dns.upstream_ips_param import UpstreamIPsParam @@ -51,8 +51,8 @@ class FirewallResource(SyncAPIResource): @cached_property - def analytics(self) -> Analytics: - return Analytics(self._client) + def analytics(self) -> AnalyticsResource: + return AnalyticsResource(self._client) @cached_property def with_raw_response(self) -> FirewallResourceWithRawResponse: @@ -382,8 +382,8 @@ def get( class AsyncFirewallResource(AsyncAPIResource): @cached_property - def analytics(self) -> AsyncAnalytics: - return AsyncAnalytics(self._client) + def analytics(self) -> AsyncAnalyticsResource: + return AsyncAnalyticsResource(self._client) @cached_property def with_raw_response(self) -> AsyncFirewallResourceWithRawResponse: @@ -732,8 +732,8 @@ def __init__(self, firewall: FirewallResource) -> None: ) @cached_property - def analytics(self) -> AnalyticsWithRawResponse: - return AnalyticsWithRawResponse(self._firewall.analytics) + def analytics(self) -> AnalyticsResourceWithRawResponse: + return AnalyticsResourceWithRawResponse(self._firewall.analytics) class AsyncFirewallResourceWithRawResponse: @@ -757,8 +757,8 @@ def __init__(self, firewall: AsyncFirewallResource) -> None: ) @cached_property - def analytics(self) -> AsyncAnalyticsWithRawResponse: - return AsyncAnalyticsWithRawResponse(self._firewall.analytics) + def analytics(self) -> AsyncAnalyticsResourceWithRawResponse: + return AsyncAnalyticsResourceWithRawResponse(self._firewall.analytics) class FirewallResourceWithStreamingResponse: @@ -782,8 +782,8 @@ def __init__(self, firewall: FirewallResource) -> None: ) @cached_property - def analytics(self) -> AnalyticsWithStreamingResponse: - return AnalyticsWithStreamingResponse(self._firewall.analytics) + def analytics(self) -> AnalyticsResourceWithStreamingResponse: + return AnalyticsResourceWithStreamingResponse(self._firewall.analytics) class AsyncFirewallResourceWithStreamingResponse: @@ -807,5 +807,5 @@ def __init__(self, firewall: AsyncFirewallResource) -> None: ) @cached_property - def analytics(self) -> AsyncAnalyticsWithStreamingResponse: - return AsyncAnalyticsWithStreamingResponse(self._firewall.analytics) + def analytics(self) -> AsyncAnalyticsResourceWithStreamingResponse: + return AsyncAnalyticsResourceWithStreamingResponse(self._firewall.analytics) diff --git a/src/cloudflare/resources/dns/records.py b/src/cloudflare/resources/dns/records.py index e5dbf872ba1..fd486f064e5 100644 --- a/src/cloudflare/resources/dns/records.py +++ b/src/cloudflare/resources/dns/records.py @@ -43,17 +43,17 @@ from ...types.dns.record_delete_response import RecordDeleteResponse from ...types.dns.record_import_response import RecordImportResponse -__all__ = ["Records", "AsyncRecords"] +__all__ = ["RecordsResource", "AsyncRecordsResource"] -class Records(SyncAPIResource): +class RecordsResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> RecordsWithRawResponse: - return RecordsWithRawResponse(self) + def with_raw_response(self) -> RecordsResourceWithRawResponse: + return RecordsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> RecordsWithStreamingResponse: - return RecordsWithStreamingResponse(self) + def with_streaming_response(self) -> RecordsResourceWithStreamingResponse: + return RecordsResourceWithStreamingResponse(self) @overload def create( @@ -4252,14 +4252,14 @@ def scan( ) -class AsyncRecords(AsyncAPIResource): +class AsyncRecordsResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncRecordsWithRawResponse: - return AsyncRecordsWithRawResponse(self) + def with_raw_response(self) -> AsyncRecordsResourceWithRawResponse: + return AsyncRecordsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncRecordsWithStreamingResponse: - return AsyncRecordsWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncRecordsResourceWithStreamingResponse: + return AsyncRecordsResourceWithStreamingResponse(self) @overload async def create( @@ -8458,8 +8458,8 @@ async def scan( ) -class RecordsWithRawResponse: - def __init__(self, records: Records) -> None: +class RecordsResourceWithRawResponse: + def __init__(self, records: RecordsResource) -> None: self._records = records self.create = to_raw_response_wrapper( @@ -8491,8 +8491,8 @@ def __init__(self, records: Records) -> None: ) -class AsyncRecordsWithRawResponse: - def __init__(self, records: AsyncRecords) -> None: +class AsyncRecordsResourceWithRawResponse: + def __init__(self, records: AsyncRecordsResource) -> None: self._records = records self.create = async_to_raw_response_wrapper( @@ -8524,8 +8524,8 @@ def __init__(self, records: AsyncRecords) -> None: ) -class RecordsWithStreamingResponse: - def __init__(self, records: Records) -> None: +class RecordsResourceWithStreamingResponse: + def __init__(self, records: RecordsResource) -> None: self._records = records self.create = to_streamed_response_wrapper( @@ -8557,8 +8557,8 @@ def __init__(self, records: Records) -> None: ) -class AsyncRecordsWithStreamingResponse: - def __init__(self, records: AsyncRecords) -> None: +class AsyncRecordsResourceWithStreamingResponse: + def __init__(self, records: AsyncRecordsResource) -> None: self._records = records self.create = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/durable_objects/__init__.py b/src/cloudflare/resources/durable_objects/__init__.py index ec81e2e6c90..749de3c93ef 100644 --- a/src/cloudflare/resources/durable_objects/__init__.py +++ b/src/cloudflare/resources/durable_objects/__init__.py @@ -1,33 +1,33 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from .namespaces import ( - Namespaces, - AsyncNamespaces, - NamespacesWithRawResponse, - AsyncNamespacesWithRawResponse, - NamespacesWithStreamingResponse, - AsyncNamespacesWithStreamingResponse, + NamespacesResource, + AsyncNamespacesResource, + NamespacesResourceWithRawResponse, + AsyncNamespacesResourceWithRawResponse, + NamespacesResourceWithStreamingResponse, + AsyncNamespacesResourceWithStreamingResponse, ) from .durable_objects import ( - DurableObjects, - AsyncDurableObjects, - DurableObjectsWithRawResponse, - AsyncDurableObjectsWithRawResponse, - DurableObjectsWithStreamingResponse, - AsyncDurableObjectsWithStreamingResponse, + DurableObjectsResource, + AsyncDurableObjectsResource, + DurableObjectsResourceWithRawResponse, + AsyncDurableObjectsResourceWithRawResponse, + DurableObjectsResourceWithStreamingResponse, + AsyncDurableObjectsResourceWithStreamingResponse, ) __all__ = [ - "Namespaces", - "AsyncNamespaces", - "NamespacesWithRawResponse", - "AsyncNamespacesWithRawResponse", - "NamespacesWithStreamingResponse", - "AsyncNamespacesWithStreamingResponse", - "DurableObjects", - "AsyncDurableObjects", - "DurableObjectsWithRawResponse", - "AsyncDurableObjectsWithRawResponse", - "DurableObjectsWithStreamingResponse", - "AsyncDurableObjectsWithStreamingResponse", + "NamespacesResource", + "AsyncNamespacesResource", + "NamespacesResourceWithRawResponse", + "AsyncNamespacesResourceWithRawResponse", + "NamespacesResourceWithStreamingResponse", + "AsyncNamespacesResourceWithStreamingResponse", + "DurableObjectsResource", + "AsyncDurableObjectsResource", + "DurableObjectsResourceWithRawResponse", + "AsyncDurableObjectsResourceWithRawResponse", + "DurableObjectsResourceWithStreamingResponse", + "AsyncDurableObjectsResourceWithStreamingResponse", ] diff --git a/src/cloudflare/resources/durable_objects/durable_objects.py b/src/cloudflare/resources/durable_objects/durable_objects.py index aaa65e00ece..97f13cd09ec 100644 --- a/src/cloudflare/resources/durable_objects/durable_objects.py +++ b/src/cloudflare/resources/durable_objects/durable_objects.py @@ -4,78 +4,78 @@ from ..._compat import cached_property from .namespaces import ( - Namespaces, - AsyncNamespaces, - NamespacesWithRawResponse, - AsyncNamespacesWithRawResponse, - NamespacesWithStreamingResponse, - AsyncNamespacesWithStreamingResponse, + NamespacesResource, + AsyncNamespacesResource, + NamespacesResourceWithRawResponse, + AsyncNamespacesResourceWithRawResponse, + NamespacesResourceWithStreamingResponse, + AsyncNamespacesResourceWithStreamingResponse, ) from ..._resource import SyncAPIResource, AsyncAPIResource -from .namespaces.namespaces import Namespaces, AsyncNamespaces +from .namespaces.namespaces import NamespacesResource, AsyncNamespacesResource -__all__ = ["DurableObjects", "AsyncDurableObjects"] +__all__ = ["DurableObjectsResource", "AsyncDurableObjectsResource"] -class DurableObjects(SyncAPIResource): +class DurableObjectsResource(SyncAPIResource): @cached_property - def namespaces(self) -> Namespaces: - return Namespaces(self._client) + def namespaces(self) -> NamespacesResource: + return NamespacesResource(self._client) @cached_property - def with_raw_response(self) -> DurableObjectsWithRawResponse: - return DurableObjectsWithRawResponse(self) + def with_raw_response(self) -> DurableObjectsResourceWithRawResponse: + return DurableObjectsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> DurableObjectsWithStreamingResponse: - return DurableObjectsWithStreamingResponse(self) + def with_streaming_response(self) -> DurableObjectsResourceWithStreamingResponse: + return DurableObjectsResourceWithStreamingResponse(self) -class AsyncDurableObjects(AsyncAPIResource): +class AsyncDurableObjectsResource(AsyncAPIResource): @cached_property - def namespaces(self) -> AsyncNamespaces: - return AsyncNamespaces(self._client) + def namespaces(self) -> AsyncNamespacesResource: + return AsyncNamespacesResource(self._client) @cached_property - def with_raw_response(self) -> AsyncDurableObjectsWithRawResponse: - return AsyncDurableObjectsWithRawResponse(self) + def with_raw_response(self) -> AsyncDurableObjectsResourceWithRawResponse: + return AsyncDurableObjectsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncDurableObjectsWithStreamingResponse: - return AsyncDurableObjectsWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncDurableObjectsResourceWithStreamingResponse: + return AsyncDurableObjectsResourceWithStreamingResponse(self) -class DurableObjectsWithRawResponse: - def __init__(self, durable_objects: DurableObjects) -> None: +class DurableObjectsResourceWithRawResponse: + def __init__(self, durable_objects: DurableObjectsResource) -> None: self._durable_objects = durable_objects @cached_property - def namespaces(self) -> NamespacesWithRawResponse: - return NamespacesWithRawResponse(self._durable_objects.namespaces) + def namespaces(self) -> NamespacesResourceWithRawResponse: + return NamespacesResourceWithRawResponse(self._durable_objects.namespaces) -class AsyncDurableObjectsWithRawResponse: - def __init__(self, durable_objects: AsyncDurableObjects) -> None: +class AsyncDurableObjectsResourceWithRawResponse: + def __init__(self, durable_objects: AsyncDurableObjectsResource) -> None: self._durable_objects = durable_objects @cached_property - def namespaces(self) -> AsyncNamespacesWithRawResponse: - return AsyncNamespacesWithRawResponse(self._durable_objects.namespaces) + def namespaces(self) -> AsyncNamespacesResourceWithRawResponse: + return AsyncNamespacesResourceWithRawResponse(self._durable_objects.namespaces) -class DurableObjectsWithStreamingResponse: - def __init__(self, durable_objects: DurableObjects) -> None: +class DurableObjectsResourceWithStreamingResponse: + def __init__(self, durable_objects: DurableObjectsResource) -> None: self._durable_objects = durable_objects @cached_property - def namespaces(self) -> NamespacesWithStreamingResponse: - return NamespacesWithStreamingResponse(self._durable_objects.namespaces) + def namespaces(self) -> NamespacesResourceWithStreamingResponse: + return NamespacesResourceWithStreamingResponse(self._durable_objects.namespaces) -class AsyncDurableObjectsWithStreamingResponse: - def __init__(self, durable_objects: AsyncDurableObjects) -> None: +class AsyncDurableObjectsResourceWithStreamingResponse: + def __init__(self, durable_objects: AsyncDurableObjectsResource) -> None: self._durable_objects = durable_objects @cached_property - def namespaces(self) -> AsyncNamespacesWithStreamingResponse: - return AsyncNamespacesWithStreamingResponse(self._durable_objects.namespaces) + def namespaces(self) -> AsyncNamespacesResourceWithStreamingResponse: + return AsyncNamespacesResourceWithStreamingResponse(self._durable_objects.namespaces) diff --git a/src/cloudflare/resources/durable_objects/namespaces/__init__.py b/src/cloudflare/resources/durable_objects/namespaces/__init__.py index bdf063f1b89..80b5be8b768 100644 --- a/src/cloudflare/resources/durable_objects/namespaces/__init__.py +++ b/src/cloudflare/resources/durable_objects/namespaces/__init__.py @@ -1,33 +1,33 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from .objects import ( - Objects, - AsyncObjects, - ObjectsWithRawResponse, - AsyncObjectsWithRawResponse, - ObjectsWithStreamingResponse, - AsyncObjectsWithStreamingResponse, + ObjectsResource, + AsyncObjectsResource, + ObjectsResourceWithRawResponse, + AsyncObjectsResourceWithRawResponse, + ObjectsResourceWithStreamingResponse, + AsyncObjectsResourceWithStreamingResponse, ) from .namespaces import ( - Namespaces, - AsyncNamespaces, - NamespacesWithRawResponse, - AsyncNamespacesWithRawResponse, - NamespacesWithStreamingResponse, - AsyncNamespacesWithStreamingResponse, + NamespacesResource, + AsyncNamespacesResource, + NamespacesResourceWithRawResponse, + AsyncNamespacesResourceWithRawResponse, + NamespacesResourceWithStreamingResponse, + AsyncNamespacesResourceWithStreamingResponse, ) __all__ = [ - "Objects", - "AsyncObjects", - "ObjectsWithRawResponse", - "AsyncObjectsWithRawResponse", - "ObjectsWithStreamingResponse", - "AsyncObjectsWithStreamingResponse", - "Namespaces", - "AsyncNamespaces", - "NamespacesWithRawResponse", - "AsyncNamespacesWithRawResponse", - "NamespacesWithStreamingResponse", - "AsyncNamespacesWithStreamingResponse", + "ObjectsResource", + "AsyncObjectsResource", + "ObjectsResourceWithRawResponse", + "AsyncObjectsResourceWithRawResponse", + "ObjectsResourceWithStreamingResponse", + "AsyncObjectsResourceWithStreamingResponse", + "NamespacesResource", + "AsyncNamespacesResource", + "NamespacesResourceWithRawResponse", + "AsyncNamespacesResourceWithRawResponse", + "NamespacesResourceWithStreamingResponse", + "AsyncNamespacesResourceWithStreamingResponse", ] diff --git a/src/cloudflare/resources/durable_objects/namespaces/namespaces.py b/src/cloudflare/resources/durable_objects/namespaces/namespaces.py index 0f73d1a11cd..7c8870332a3 100644 --- a/src/cloudflare/resources/durable_objects/namespaces/namespaces.py +++ b/src/cloudflare/resources/durable_objects/namespaces/namespaces.py @@ -5,12 +5,12 @@ import httpx from .objects import ( - Objects, - AsyncObjects, - ObjectsWithRawResponse, - AsyncObjectsWithRawResponse, - ObjectsWithStreamingResponse, - AsyncObjectsWithStreamingResponse, + ObjectsResource, + AsyncObjectsResource, + ObjectsResourceWithRawResponse, + AsyncObjectsResourceWithRawResponse, + ObjectsResourceWithStreamingResponse, + AsyncObjectsResourceWithStreamingResponse, ) from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven from ...._compat import cached_property @@ -28,21 +28,21 @@ ) from ....types.durable_objects.namespace import Namespace -__all__ = ["Namespaces", "AsyncNamespaces"] +__all__ = ["NamespacesResource", "AsyncNamespacesResource"] -class Namespaces(SyncAPIResource): +class NamespacesResource(SyncAPIResource): @cached_property - def objects(self) -> Objects: - return Objects(self._client) + def objects(self) -> ObjectsResource: + return ObjectsResource(self._client) @cached_property - def with_raw_response(self) -> NamespacesWithRawResponse: - return NamespacesWithRawResponse(self) + def with_raw_response(self) -> NamespacesResourceWithRawResponse: + return NamespacesResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> NamespacesWithStreamingResponse: - return NamespacesWithStreamingResponse(self) + def with_streaming_response(self) -> NamespacesResourceWithStreamingResponse: + return NamespacesResourceWithStreamingResponse(self) def list( self, @@ -81,18 +81,18 @@ def list( ) -class AsyncNamespaces(AsyncAPIResource): +class AsyncNamespacesResource(AsyncAPIResource): @cached_property - def objects(self) -> AsyncObjects: - return AsyncObjects(self._client) + def objects(self) -> AsyncObjectsResource: + return AsyncObjectsResource(self._client) @cached_property - def with_raw_response(self) -> AsyncNamespacesWithRawResponse: - return AsyncNamespacesWithRawResponse(self) + def with_raw_response(self) -> AsyncNamespacesResourceWithRawResponse: + return AsyncNamespacesResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncNamespacesWithStreamingResponse: - return AsyncNamespacesWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncNamespacesResourceWithStreamingResponse: + return AsyncNamespacesResourceWithStreamingResponse(self) def list( self, @@ -131,8 +131,8 @@ def list( ) -class NamespacesWithRawResponse: - def __init__(self, namespaces: Namespaces) -> None: +class NamespacesResourceWithRawResponse: + def __init__(self, namespaces: NamespacesResource) -> None: self._namespaces = namespaces self.list = to_raw_response_wrapper( @@ -140,12 +140,12 @@ def __init__(self, namespaces: Namespaces) -> None: ) @cached_property - def objects(self) -> ObjectsWithRawResponse: - return ObjectsWithRawResponse(self._namespaces.objects) + def objects(self) -> ObjectsResourceWithRawResponse: + return ObjectsResourceWithRawResponse(self._namespaces.objects) -class AsyncNamespacesWithRawResponse: - def __init__(self, namespaces: AsyncNamespaces) -> None: +class AsyncNamespacesResourceWithRawResponse: + def __init__(self, namespaces: AsyncNamespacesResource) -> None: self._namespaces = namespaces self.list = async_to_raw_response_wrapper( @@ -153,12 +153,12 @@ def __init__(self, namespaces: AsyncNamespaces) -> None: ) @cached_property - def objects(self) -> AsyncObjectsWithRawResponse: - return AsyncObjectsWithRawResponse(self._namespaces.objects) + def objects(self) -> AsyncObjectsResourceWithRawResponse: + return AsyncObjectsResourceWithRawResponse(self._namespaces.objects) -class NamespacesWithStreamingResponse: - def __init__(self, namespaces: Namespaces) -> None: +class NamespacesResourceWithStreamingResponse: + def __init__(self, namespaces: NamespacesResource) -> None: self._namespaces = namespaces self.list = to_streamed_response_wrapper( @@ -166,12 +166,12 @@ def __init__(self, namespaces: Namespaces) -> None: ) @cached_property - def objects(self) -> ObjectsWithStreamingResponse: - return ObjectsWithStreamingResponse(self._namespaces.objects) + def objects(self) -> ObjectsResourceWithStreamingResponse: + return ObjectsResourceWithStreamingResponse(self._namespaces.objects) -class AsyncNamespacesWithStreamingResponse: - def __init__(self, namespaces: AsyncNamespaces) -> None: +class AsyncNamespacesResourceWithStreamingResponse: + def __init__(self, namespaces: AsyncNamespacesResource) -> None: self._namespaces = namespaces self.list = async_to_streamed_response_wrapper( @@ -179,5 +179,5 @@ def __init__(self, namespaces: AsyncNamespaces) -> None: ) @cached_property - def objects(self) -> AsyncObjectsWithStreamingResponse: - return AsyncObjectsWithStreamingResponse(self._namespaces.objects) + def objects(self) -> AsyncObjectsResourceWithStreamingResponse: + return AsyncObjectsResourceWithStreamingResponse(self._namespaces.objects) diff --git a/src/cloudflare/resources/durable_objects/namespaces/objects.py b/src/cloudflare/resources/durable_objects/namespaces/objects.py index be200e97aff..0c05a216f24 100644 --- a/src/cloudflare/resources/durable_objects/namespaces/objects.py +++ b/src/cloudflare/resources/durable_objects/namespaces/objects.py @@ -22,17 +22,17 @@ from ....types.durable_objects.namespaces import object_list_params from ....types.durable_objects.namespaces.durable_object import DurableObject -__all__ = ["Objects", "AsyncObjects"] +__all__ = ["ObjectsResource", "AsyncObjectsResource"] -class Objects(SyncAPIResource): +class ObjectsResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> ObjectsWithRawResponse: - return ObjectsWithRawResponse(self) + def with_raw_response(self) -> ObjectsResourceWithRawResponse: + return ObjectsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> ObjectsWithStreamingResponse: - return ObjectsWithStreamingResponse(self) + def with_streaming_response(self) -> ObjectsResourceWithStreamingResponse: + return ObjectsResourceWithStreamingResponse(self) def list( self, @@ -95,14 +95,14 @@ def list( ) -class AsyncObjects(AsyncAPIResource): +class AsyncObjectsResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncObjectsWithRawResponse: - return AsyncObjectsWithRawResponse(self) + def with_raw_response(self) -> AsyncObjectsResourceWithRawResponse: + return AsyncObjectsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncObjectsWithStreamingResponse: - return AsyncObjectsWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncObjectsResourceWithStreamingResponse: + return AsyncObjectsResourceWithStreamingResponse(self) def list( self, @@ -165,8 +165,8 @@ def list( ) -class ObjectsWithRawResponse: - def __init__(self, objects: Objects) -> None: +class ObjectsResourceWithRawResponse: + def __init__(self, objects: ObjectsResource) -> None: self._objects = objects self.list = to_raw_response_wrapper( @@ -174,8 +174,8 @@ def __init__(self, objects: Objects) -> None: ) -class AsyncObjectsWithRawResponse: - def __init__(self, objects: AsyncObjects) -> None: +class AsyncObjectsResourceWithRawResponse: + def __init__(self, objects: AsyncObjectsResource) -> None: self._objects = objects self.list = async_to_raw_response_wrapper( @@ -183,8 +183,8 @@ def __init__(self, objects: AsyncObjects) -> None: ) -class ObjectsWithStreamingResponse: - def __init__(self, objects: Objects) -> None: +class ObjectsResourceWithStreamingResponse: + def __init__(self, objects: ObjectsResource) -> None: self._objects = objects self.list = to_streamed_response_wrapper( @@ -192,8 +192,8 @@ def __init__(self, objects: Objects) -> None: ) -class AsyncObjectsWithStreamingResponse: - def __init__(self, objects: AsyncObjects) -> None: +class AsyncObjectsResourceWithStreamingResponse: + def __init__(self, objects: AsyncObjectsResource) -> None: self._objects = objects self.list = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/email_routing/__init__.py b/src/cloudflare/resources/email_routing/__init__.py index b7bd0fb42fa..687b7186276 100644 --- a/src/cloudflare/resources/email_routing/__init__.py +++ b/src/cloudflare/resources/email_routing/__init__.py @@ -1,61 +1,61 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from .dns import ( - DNS, - AsyncDNS, - DNSWithRawResponse, - AsyncDNSWithRawResponse, - DNSWithStreamingResponse, - AsyncDNSWithStreamingResponse, + DNSResource, + AsyncDNSResource, + DNSResourceWithRawResponse, + AsyncDNSResourceWithRawResponse, + DNSResourceWithStreamingResponse, + AsyncDNSResourceWithStreamingResponse, ) from .rules import ( - Rules, - AsyncRules, - RulesWithRawResponse, - AsyncRulesWithRawResponse, - RulesWithStreamingResponse, - AsyncRulesWithStreamingResponse, + RulesResource, + AsyncRulesResource, + RulesResourceWithRawResponse, + AsyncRulesResourceWithRawResponse, + RulesResourceWithStreamingResponse, + AsyncRulesResourceWithStreamingResponse, ) from .addresses import ( - Addresses, - AsyncAddresses, - AddressesWithRawResponse, - AsyncAddressesWithRawResponse, - AddressesWithStreamingResponse, - AsyncAddressesWithStreamingResponse, + AddressesResource, + AsyncAddressesResource, + AddressesResourceWithRawResponse, + AsyncAddressesResourceWithRawResponse, + AddressesResourceWithStreamingResponse, + AsyncAddressesResourceWithStreamingResponse, ) from .email_routing import ( - EmailRouting, - AsyncEmailRouting, - EmailRoutingWithRawResponse, - AsyncEmailRoutingWithRawResponse, - EmailRoutingWithStreamingResponse, - AsyncEmailRoutingWithStreamingResponse, + EmailRoutingResource, + AsyncEmailRoutingResource, + EmailRoutingResourceWithRawResponse, + AsyncEmailRoutingResourceWithRawResponse, + EmailRoutingResourceWithStreamingResponse, + AsyncEmailRoutingResourceWithStreamingResponse, ) __all__ = [ - "DNS", - "AsyncDNS", - "DNSWithRawResponse", - "AsyncDNSWithRawResponse", - "DNSWithStreamingResponse", - "AsyncDNSWithStreamingResponse", - "Rules", - "AsyncRules", - "RulesWithRawResponse", - "AsyncRulesWithRawResponse", - "RulesWithStreamingResponse", - "AsyncRulesWithStreamingResponse", - "Addresses", - "AsyncAddresses", - "AddressesWithRawResponse", - "AsyncAddressesWithRawResponse", - "AddressesWithStreamingResponse", - "AsyncAddressesWithStreamingResponse", - "EmailRouting", - "AsyncEmailRouting", - "EmailRoutingWithRawResponse", - "AsyncEmailRoutingWithRawResponse", - "EmailRoutingWithStreamingResponse", - "AsyncEmailRoutingWithStreamingResponse", + "DNSResource", + "AsyncDNSResource", + "DNSResourceWithRawResponse", + "AsyncDNSResourceWithRawResponse", + "DNSResourceWithStreamingResponse", + "AsyncDNSResourceWithStreamingResponse", + "RulesResource", + "AsyncRulesResource", + "RulesResourceWithRawResponse", + "AsyncRulesResourceWithRawResponse", + "RulesResourceWithStreamingResponse", + "AsyncRulesResourceWithStreamingResponse", + "AddressesResource", + "AsyncAddressesResource", + "AddressesResourceWithRawResponse", + "AsyncAddressesResourceWithRawResponse", + "AddressesResourceWithStreamingResponse", + "AsyncAddressesResourceWithStreamingResponse", + "EmailRoutingResource", + "AsyncEmailRoutingResource", + "EmailRoutingResourceWithRawResponse", + "AsyncEmailRoutingResourceWithRawResponse", + "EmailRoutingResourceWithStreamingResponse", + "AsyncEmailRoutingResourceWithStreamingResponse", ] diff --git a/src/cloudflare/resources/email_routing/addresses.py b/src/cloudflare/resources/email_routing/addresses.py index 5ed109148ff..8af8920e626 100644 --- a/src/cloudflare/resources/email_routing/addresses.py +++ b/src/cloudflare/resources/email_routing/addresses.py @@ -29,17 +29,17 @@ from ...types.email_routing import address_list_params, address_create_params from ...types.email_routing.address import Address -__all__ = ["Addresses", "AsyncAddresses"] +__all__ = ["AddressesResource", "AsyncAddressesResource"] -class Addresses(SyncAPIResource): +class AddressesResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> AddressesWithRawResponse: - return AddressesWithRawResponse(self) + def with_raw_response(self) -> AddressesResourceWithRawResponse: + return AddressesResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AddressesWithStreamingResponse: - return AddressesWithStreamingResponse(self) + def with_streaming_response(self) -> AddressesResourceWithStreamingResponse: + return AddressesResourceWithStreamingResponse(self) def create( self, @@ -239,14 +239,14 @@ def get( ) -class AsyncAddresses(AsyncAPIResource): +class AsyncAddressesResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncAddressesWithRawResponse: - return AsyncAddressesWithRawResponse(self) + def with_raw_response(self) -> AsyncAddressesResourceWithRawResponse: + return AsyncAddressesResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncAddressesWithStreamingResponse: - return AsyncAddressesWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncAddressesResourceWithStreamingResponse: + return AsyncAddressesResourceWithStreamingResponse(self) async def create( self, @@ -446,8 +446,8 @@ async def get( ) -class AddressesWithRawResponse: - def __init__(self, addresses: Addresses) -> None: +class AddressesResourceWithRawResponse: + def __init__(self, addresses: AddressesResource) -> None: self._addresses = addresses self.create = to_raw_response_wrapper( @@ -464,8 +464,8 @@ def __init__(self, addresses: Addresses) -> None: ) -class AsyncAddressesWithRawResponse: - def __init__(self, addresses: AsyncAddresses) -> None: +class AsyncAddressesResourceWithRawResponse: + def __init__(self, addresses: AsyncAddressesResource) -> None: self._addresses = addresses self.create = async_to_raw_response_wrapper( @@ -482,8 +482,8 @@ def __init__(self, addresses: AsyncAddresses) -> None: ) -class AddressesWithStreamingResponse: - def __init__(self, addresses: Addresses) -> None: +class AddressesResourceWithStreamingResponse: + def __init__(self, addresses: AddressesResource) -> None: self._addresses = addresses self.create = to_streamed_response_wrapper( @@ -500,8 +500,8 @@ def __init__(self, addresses: Addresses) -> None: ) -class AsyncAddressesWithStreamingResponse: - def __init__(self, addresses: AsyncAddresses) -> None: +class AsyncAddressesResourceWithStreamingResponse: + def __init__(self, addresses: AsyncAddressesResource) -> None: self._addresses = addresses self.create = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/email_routing/dns.py b/src/cloudflare/resources/email_routing/dns.py index a9ea21ff895..7e438437227 100644 --- a/src/cloudflare/resources/email_routing/dns.py +++ b/src/cloudflare/resources/email_routing/dns.py @@ -21,17 +21,17 @@ ) from ...types.email_routing.dns_get_response import DNSGetResponse -__all__ = ["DNS", "AsyncDNS"] +__all__ = ["DNSResource", "AsyncDNSResource"] -class DNS(SyncAPIResource): +class DNSResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> DNSWithRawResponse: - return DNSWithRawResponse(self) + def with_raw_response(self) -> DNSResourceWithRawResponse: + return DNSResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> DNSWithStreamingResponse: - return DNSWithStreamingResponse(self) + def with_streaming_response(self) -> DNSResourceWithStreamingResponse: + return DNSResourceWithStreamingResponse(self) def get( self, @@ -73,14 +73,14 @@ def get( ) -class AsyncDNS(AsyncAPIResource): +class AsyncDNSResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncDNSWithRawResponse: - return AsyncDNSWithRawResponse(self) + def with_raw_response(self) -> AsyncDNSResourceWithRawResponse: + return AsyncDNSResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncDNSWithStreamingResponse: - return AsyncDNSWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncDNSResourceWithStreamingResponse: + return AsyncDNSResourceWithStreamingResponse(self) async def get( self, @@ -122,8 +122,8 @@ async def get( ) -class DNSWithRawResponse: - def __init__(self, dns: DNS) -> None: +class DNSResourceWithRawResponse: + def __init__(self, dns: DNSResource) -> None: self._dns = dns self.get = to_raw_response_wrapper( @@ -131,8 +131,8 @@ def __init__(self, dns: DNS) -> None: ) -class AsyncDNSWithRawResponse: - def __init__(self, dns: AsyncDNS) -> None: +class AsyncDNSResourceWithRawResponse: + def __init__(self, dns: AsyncDNSResource) -> None: self._dns = dns self.get = async_to_raw_response_wrapper( @@ -140,8 +140,8 @@ def __init__(self, dns: AsyncDNS) -> None: ) -class DNSWithStreamingResponse: - def __init__(self, dns: DNS) -> None: +class DNSResourceWithStreamingResponse: + def __init__(self, dns: DNSResource) -> None: self._dns = dns self.get = to_streamed_response_wrapper( @@ -149,8 +149,8 @@ def __init__(self, dns: DNS) -> None: ) -class AsyncDNSWithStreamingResponse: - def __init__(self, dns: AsyncDNS) -> None: +class AsyncDNSResourceWithStreamingResponse: + def __init__(self, dns: AsyncDNSResource) -> None: self._dns = dns self.get = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/email_routing/email_routing.py b/src/cloudflare/resources/email_routing/email_routing.py index 1c7995b9f1a..1a6ba8f71e0 100644 --- a/src/cloudflare/resources/email_routing/email_routing.py +++ b/src/cloudflare/resources/email_routing/email_routing.py @@ -7,20 +7,20 @@ import httpx from .dns import ( - DNS, - AsyncDNS, - DNSWithRawResponse, - AsyncDNSWithRawResponse, - DNSWithStreamingResponse, - AsyncDNSWithStreamingResponse, + DNSResource, + AsyncDNSResource, + DNSResourceWithRawResponse, + AsyncDNSResourceWithRawResponse, + DNSResourceWithStreamingResponse, + AsyncDNSResourceWithStreamingResponse, ) from .rules import ( - Rules, - AsyncRules, - RulesWithRawResponse, - AsyncRulesWithRawResponse, - RulesWithStreamingResponse, - AsyncRulesWithStreamingResponse, + RulesResource, + AsyncRulesResource, + RulesResourceWithRawResponse, + AsyncRulesResourceWithRawResponse, + RulesResourceWithStreamingResponse, + AsyncRulesResourceWithStreamingResponse, ) from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven from ..._utils import ( @@ -29,12 +29,12 @@ ) from ..._compat import cached_property from .addresses import ( - Addresses, - AsyncAddresses, - AddressesWithRawResponse, - AsyncAddressesWithRawResponse, - AddressesWithStreamingResponse, - AsyncAddressesWithStreamingResponse, + AddressesResource, + AsyncAddressesResource, + AddressesResourceWithRawResponse, + AsyncAddressesResourceWithRawResponse, + AddressesResourceWithStreamingResponse, + AsyncAddressesResourceWithStreamingResponse, ) from ..._resource import SyncAPIResource, AsyncAPIResource from ..._response import ( @@ -44,36 +44,36 @@ async_to_streamed_response_wrapper, ) from ..._wrappers import ResultWrapper -from .rules.rules import Rules, AsyncRules +from .rules.rules import RulesResource, AsyncRulesResource from ..._base_client import ( make_request_options, ) from ...types.email_routing import email_routing_enable_params, email_routing_disable_params from ...types.email_routing.settings import Settings -__all__ = ["EmailRouting", "AsyncEmailRouting"] +__all__ = ["EmailRoutingResource", "AsyncEmailRoutingResource"] -class EmailRouting(SyncAPIResource): +class EmailRoutingResource(SyncAPIResource): @cached_property - def dns(self) -> DNS: - return DNS(self._client) + def dns(self) -> DNSResource: + return DNSResource(self._client) @cached_property - def rules(self) -> Rules: - return Rules(self._client) + def rules(self) -> RulesResource: + return RulesResource(self._client) @cached_property - def addresses(self) -> Addresses: - return Addresses(self._client) + def addresses(self) -> AddressesResource: + return AddressesResource(self._client) @cached_property - def with_raw_response(self) -> EmailRoutingWithRawResponse: - return EmailRoutingWithRawResponse(self) + def with_raw_response(self) -> EmailRoutingResourceWithRawResponse: + return EmailRoutingResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> EmailRoutingWithStreamingResponse: - return EmailRoutingWithStreamingResponse(self) + def with_streaming_response(self) -> EmailRoutingResourceWithStreamingResponse: + return EmailRoutingResourceWithStreamingResponse(self) def disable( self, @@ -200,26 +200,26 @@ def get( ) -class AsyncEmailRouting(AsyncAPIResource): +class AsyncEmailRoutingResource(AsyncAPIResource): @cached_property - def dns(self) -> AsyncDNS: - return AsyncDNS(self._client) + def dns(self) -> AsyncDNSResource: + return AsyncDNSResource(self._client) @cached_property - def rules(self) -> AsyncRules: - return AsyncRules(self._client) + def rules(self) -> AsyncRulesResource: + return AsyncRulesResource(self._client) @cached_property - def addresses(self) -> AsyncAddresses: - return AsyncAddresses(self._client) + def addresses(self) -> AsyncAddressesResource: + return AsyncAddressesResource(self._client) @cached_property - def with_raw_response(self) -> AsyncEmailRoutingWithRawResponse: - return AsyncEmailRoutingWithRawResponse(self) + def with_raw_response(self) -> AsyncEmailRoutingResourceWithRawResponse: + return AsyncEmailRoutingResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncEmailRoutingWithStreamingResponse: - return AsyncEmailRoutingWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncEmailRoutingResourceWithStreamingResponse: + return AsyncEmailRoutingResourceWithStreamingResponse(self) async def disable( self, @@ -346,8 +346,8 @@ async def get( ) -class EmailRoutingWithRawResponse: - def __init__(self, email_routing: EmailRouting) -> None: +class EmailRoutingResourceWithRawResponse: + def __init__(self, email_routing: EmailRoutingResource) -> None: self._email_routing = email_routing self.disable = to_raw_response_wrapper( @@ -361,20 +361,20 @@ def __init__(self, email_routing: EmailRouting) -> None: ) @cached_property - def dns(self) -> DNSWithRawResponse: - return DNSWithRawResponse(self._email_routing.dns) + def dns(self) -> DNSResourceWithRawResponse: + return DNSResourceWithRawResponse(self._email_routing.dns) @cached_property - def rules(self) -> RulesWithRawResponse: - return RulesWithRawResponse(self._email_routing.rules) + def rules(self) -> RulesResourceWithRawResponse: + return RulesResourceWithRawResponse(self._email_routing.rules) @cached_property - def addresses(self) -> AddressesWithRawResponse: - return AddressesWithRawResponse(self._email_routing.addresses) + def addresses(self) -> AddressesResourceWithRawResponse: + return AddressesResourceWithRawResponse(self._email_routing.addresses) -class AsyncEmailRoutingWithRawResponse: - def __init__(self, email_routing: AsyncEmailRouting) -> None: +class AsyncEmailRoutingResourceWithRawResponse: + def __init__(self, email_routing: AsyncEmailRoutingResource) -> None: self._email_routing = email_routing self.disable = async_to_raw_response_wrapper( @@ -388,20 +388,20 @@ def __init__(self, email_routing: AsyncEmailRouting) -> None: ) @cached_property - def dns(self) -> AsyncDNSWithRawResponse: - return AsyncDNSWithRawResponse(self._email_routing.dns) + def dns(self) -> AsyncDNSResourceWithRawResponse: + return AsyncDNSResourceWithRawResponse(self._email_routing.dns) @cached_property - def rules(self) -> AsyncRulesWithRawResponse: - return AsyncRulesWithRawResponse(self._email_routing.rules) + def rules(self) -> AsyncRulesResourceWithRawResponse: + return AsyncRulesResourceWithRawResponse(self._email_routing.rules) @cached_property - def addresses(self) -> AsyncAddressesWithRawResponse: - return AsyncAddressesWithRawResponse(self._email_routing.addresses) + def addresses(self) -> AsyncAddressesResourceWithRawResponse: + return AsyncAddressesResourceWithRawResponse(self._email_routing.addresses) -class EmailRoutingWithStreamingResponse: - def __init__(self, email_routing: EmailRouting) -> None: +class EmailRoutingResourceWithStreamingResponse: + def __init__(self, email_routing: EmailRoutingResource) -> None: self._email_routing = email_routing self.disable = to_streamed_response_wrapper( @@ -415,20 +415,20 @@ def __init__(self, email_routing: EmailRouting) -> None: ) @cached_property - def dns(self) -> DNSWithStreamingResponse: - return DNSWithStreamingResponse(self._email_routing.dns) + def dns(self) -> DNSResourceWithStreamingResponse: + return DNSResourceWithStreamingResponse(self._email_routing.dns) @cached_property - def rules(self) -> RulesWithStreamingResponse: - return RulesWithStreamingResponse(self._email_routing.rules) + def rules(self) -> RulesResourceWithStreamingResponse: + return RulesResourceWithStreamingResponse(self._email_routing.rules) @cached_property - def addresses(self) -> AddressesWithStreamingResponse: - return AddressesWithStreamingResponse(self._email_routing.addresses) + def addresses(self) -> AddressesResourceWithStreamingResponse: + return AddressesResourceWithStreamingResponse(self._email_routing.addresses) -class AsyncEmailRoutingWithStreamingResponse: - def __init__(self, email_routing: AsyncEmailRouting) -> None: +class AsyncEmailRoutingResourceWithStreamingResponse: + def __init__(self, email_routing: AsyncEmailRoutingResource) -> None: self._email_routing = email_routing self.disable = async_to_streamed_response_wrapper( @@ -442,13 +442,13 @@ def __init__(self, email_routing: AsyncEmailRouting) -> None: ) @cached_property - def dns(self) -> AsyncDNSWithStreamingResponse: - return AsyncDNSWithStreamingResponse(self._email_routing.dns) + def dns(self) -> AsyncDNSResourceWithStreamingResponse: + return AsyncDNSResourceWithStreamingResponse(self._email_routing.dns) @cached_property - def rules(self) -> AsyncRulesWithStreamingResponse: - return AsyncRulesWithStreamingResponse(self._email_routing.rules) + def rules(self) -> AsyncRulesResourceWithStreamingResponse: + return AsyncRulesResourceWithStreamingResponse(self._email_routing.rules) @cached_property - def addresses(self) -> AsyncAddressesWithStreamingResponse: - return AsyncAddressesWithStreamingResponse(self._email_routing.addresses) + def addresses(self) -> AsyncAddressesResourceWithStreamingResponse: + return AsyncAddressesResourceWithStreamingResponse(self._email_routing.addresses) diff --git a/src/cloudflare/resources/email_routing/rules/__init__.py b/src/cloudflare/resources/email_routing/rules/__init__.py index 5775e328883..16e5a3929ed 100644 --- a/src/cloudflare/resources/email_routing/rules/__init__.py +++ b/src/cloudflare/resources/email_routing/rules/__init__.py @@ -1,33 +1,33 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from .rules import ( - Rules, - AsyncRules, - RulesWithRawResponse, - AsyncRulesWithRawResponse, - RulesWithStreamingResponse, - AsyncRulesWithStreamingResponse, + RulesResource, + AsyncRulesResource, + RulesResourceWithRawResponse, + AsyncRulesResourceWithRawResponse, + RulesResourceWithStreamingResponse, + AsyncRulesResourceWithStreamingResponse, ) from .catch_alls import ( - CatchAlls, - AsyncCatchAlls, - CatchAllsWithRawResponse, - AsyncCatchAllsWithRawResponse, - CatchAllsWithStreamingResponse, - AsyncCatchAllsWithStreamingResponse, + CatchAllsResource, + AsyncCatchAllsResource, + CatchAllsResourceWithRawResponse, + AsyncCatchAllsResourceWithRawResponse, + CatchAllsResourceWithStreamingResponse, + AsyncCatchAllsResourceWithStreamingResponse, ) __all__ = [ - "CatchAlls", - "AsyncCatchAlls", - "CatchAllsWithRawResponse", - "AsyncCatchAllsWithRawResponse", - "CatchAllsWithStreamingResponse", - "AsyncCatchAllsWithStreamingResponse", - "Rules", - "AsyncRules", - "RulesWithRawResponse", - "AsyncRulesWithRawResponse", - "RulesWithStreamingResponse", - "AsyncRulesWithStreamingResponse", + "CatchAllsResource", + "AsyncCatchAllsResource", + "CatchAllsResourceWithRawResponse", + "AsyncCatchAllsResourceWithRawResponse", + "CatchAllsResourceWithStreamingResponse", + "AsyncCatchAllsResourceWithStreamingResponse", + "RulesResource", + "AsyncRulesResource", + "RulesResourceWithRawResponse", + "AsyncRulesResourceWithRawResponse", + "RulesResourceWithStreamingResponse", + "AsyncRulesResourceWithStreamingResponse", ] diff --git a/src/cloudflare/resources/email_routing/rules/catch_alls.py b/src/cloudflare/resources/email_routing/rules/catch_alls.py index 06f461a87c1..bc3761ff093 100644 --- a/src/cloudflare/resources/email_routing/rules/catch_alls.py +++ b/src/cloudflare/resources/email_routing/rules/catch_alls.py @@ -30,17 +30,17 @@ from ....types.email_routing.rules.catch_all_matcher_param import CatchAllMatcherParam from ....types.email_routing.rules.catch_all_update_response import CatchAllUpdateResponse -__all__ = ["CatchAlls", "AsyncCatchAlls"] +__all__ = ["CatchAllsResource", "AsyncCatchAllsResource"] -class CatchAlls(SyncAPIResource): +class CatchAllsResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> CatchAllsWithRawResponse: - return CatchAllsWithRawResponse(self) + def with_raw_response(self) -> CatchAllsResourceWithRawResponse: + return CatchAllsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> CatchAllsWithStreamingResponse: - return CatchAllsWithStreamingResponse(self) + def with_streaming_response(self) -> CatchAllsResourceWithStreamingResponse: + return CatchAllsResourceWithStreamingResponse(self) def update( self, @@ -143,14 +143,14 @@ def get( ) -class AsyncCatchAlls(AsyncAPIResource): +class AsyncCatchAllsResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncCatchAllsWithRawResponse: - return AsyncCatchAllsWithRawResponse(self) + def with_raw_response(self) -> AsyncCatchAllsResourceWithRawResponse: + return AsyncCatchAllsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncCatchAllsWithStreamingResponse: - return AsyncCatchAllsWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncCatchAllsResourceWithStreamingResponse: + return AsyncCatchAllsResourceWithStreamingResponse(self) async def update( self, @@ -253,8 +253,8 @@ async def get( ) -class CatchAllsWithRawResponse: - def __init__(self, catch_alls: CatchAlls) -> None: +class CatchAllsResourceWithRawResponse: + def __init__(self, catch_alls: CatchAllsResource) -> None: self._catch_alls = catch_alls self.update = to_raw_response_wrapper( @@ -265,8 +265,8 @@ def __init__(self, catch_alls: CatchAlls) -> None: ) -class AsyncCatchAllsWithRawResponse: - def __init__(self, catch_alls: AsyncCatchAlls) -> None: +class AsyncCatchAllsResourceWithRawResponse: + def __init__(self, catch_alls: AsyncCatchAllsResource) -> None: self._catch_alls = catch_alls self.update = async_to_raw_response_wrapper( @@ -277,8 +277,8 @@ def __init__(self, catch_alls: AsyncCatchAlls) -> None: ) -class CatchAllsWithStreamingResponse: - def __init__(self, catch_alls: CatchAlls) -> None: +class CatchAllsResourceWithStreamingResponse: + def __init__(self, catch_alls: CatchAllsResource) -> None: self._catch_alls = catch_alls self.update = to_streamed_response_wrapper( @@ -289,8 +289,8 @@ def __init__(self, catch_alls: CatchAlls) -> None: ) -class AsyncCatchAllsWithStreamingResponse: - def __init__(self, catch_alls: AsyncCatchAlls) -> None: +class AsyncCatchAllsResourceWithStreamingResponse: + def __init__(self, catch_alls: AsyncCatchAllsResource) -> None: self._catch_alls = catch_alls self.update = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/email_routing/rules/rules.py b/src/cloudflare/resources/email_routing/rules/rules.py index e0c462767db..963df9fbe78 100644 --- a/src/cloudflare/resources/email_routing/rules/rules.py +++ b/src/cloudflare/resources/email_routing/rules/rules.py @@ -14,12 +14,12 @@ ) from ...._compat import cached_property from .catch_alls import ( - CatchAlls, - AsyncCatchAlls, - CatchAllsWithRawResponse, - AsyncCatchAllsWithRawResponse, - CatchAllsWithStreamingResponse, - AsyncCatchAllsWithStreamingResponse, + CatchAllsResource, + AsyncCatchAllsResource, + CatchAllsResourceWithRawResponse, + AsyncCatchAllsResourceWithRawResponse, + CatchAllsResourceWithStreamingResponse, + AsyncCatchAllsResourceWithStreamingResponse, ) from ...._resource import SyncAPIResource, AsyncAPIResource from ...._response import ( @@ -39,21 +39,21 @@ from ....types.email_routing.matcher_param import MatcherParam from ....types.email_routing.email_routing_rule import EmailRoutingRule -__all__ = ["Rules", "AsyncRules"] +__all__ = ["RulesResource", "AsyncRulesResource"] -class Rules(SyncAPIResource): +class RulesResource(SyncAPIResource): @cached_property - def catch_alls(self) -> CatchAlls: - return CatchAlls(self._client) + def catch_alls(self) -> CatchAllsResource: + return CatchAllsResource(self._client) @cached_property - def with_raw_response(self) -> RulesWithRawResponse: - return RulesWithRawResponse(self) + def with_raw_response(self) -> RulesResourceWithRawResponse: + return RulesResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> RulesWithStreamingResponse: - return RulesWithStreamingResponse(self) + def with_streaming_response(self) -> RulesResourceWithStreamingResponse: + return RulesResourceWithStreamingResponse(self) def create( self, @@ -335,18 +335,18 @@ def get( ) -class AsyncRules(AsyncAPIResource): +class AsyncRulesResource(AsyncAPIResource): @cached_property - def catch_alls(self) -> AsyncCatchAlls: - return AsyncCatchAlls(self._client) + def catch_alls(self) -> AsyncCatchAllsResource: + return AsyncCatchAllsResource(self._client) @cached_property - def with_raw_response(self) -> AsyncRulesWithRawResponse: - return AsyncRulesWithRawResponse(self) + def with_raw_response(self) -> AsyncRulesResourceWithRawResponse: + return AsyncRulesResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncRulesWithStreamingResponse: - return AsyncRulesWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncRulesResourceWithStreamingResponse: + return AsyncRulesResourceWithStreamingResponse(self) async def create( self, @@ -628,8 +628,8 @@ async def get( ) -class RulesWithRawResponse: - def __init__(self, rules: Rules) -> None: +class RulesResourceWithRawResponse: + def __init__(self, rules: RulesResource) -> None: self._rules = rules self.create = to_raw_response_wrapper( @@ -649,12 +649,12 @@ def __init__(self, rules: Rules) -> None: ) @cached_property - def catch_alls(self) -> CatchAllsWithRawResponse: - return CatchAllsWithRawResponse(self._rules.catch_alls) + def catch_alls(self) -> CatchAllsResourceWithRawResponse: + return CatchAllsResourceWithRawResponse(self._rules.catch_alls) -class AsyncRulesWithRawResponse: - def __init__(self, rules: AsyncRules) -> None: +class AsyncRulesResourceWithRawResponse: + def __init__(self, rules: AsyncRulesResource) -> None: self._rules = rules self.create = async_to_raw_response_wrapper( @@ -674,12 +674,12 @@ def __init__(self, rules: AsyncRules) -> None: ) @cached_property - def catch_alls(self) -> AsyncCatchAllsWithRawResponse: - return AsyncCatchAllsWithRawResponse(self._rules.catch_alls) + def catch_alls(self) -> AsyncCatchAllsResourceWithRawResponse: + return AsyncCatchAllsResourceWithRawResponse(self._rules.catch_alls) -class RulesWithStreamingResponse: - def __init__(self, rules: Rules) -> None: +class RulesResourceWithStreamingResponse: + def __init__(self, rules: RulesResource) -> None: self._rules = rules self.create = to_streamed_response_wrapper( @@ -699,12 +699,12 @@ def __init__(self, rules: Rules) -> None: ) @cached_property - def catch_alls(self) -> CatchAllsWithStreamingResponse: - return CatchAllsWithStreamingResponse(self._rules.catch_alls) + def catch_alls(self) -> CatchAllsResourceWithStreamingResponse: + return CatchAllsResourceWithStreamingResponse(self._rules.catch_alls) -class AsyncRulesWithStreamingResponse: - def __init__(self, rules: AsyncRules) -> None: +class AsyncRulesResourceWithStreamingResponse: + def __init__(self, rules: AsyncRulesResource) -> None: self._rules = rules self.create = async_to_streamed_response_wrapper( @@ -724,5 +724,5 @@ def __init__(self, rules: AsyncRules) -> None: ) @cached_property - def catch_alls(self) -> AsyncCatchAllsWithStreamingResponse: - return AsyncCatchAllsWithStreamingResponse(self._rules.catch_alls) + def catch_alls(self) -> AsyncCatchAllsResourceWithStreamingResponse: + return AsyncCatchAllsResourceWithStreamingResponse(self._rules.catch_alls) diff --git a/src/cloudflare/resources/event_notifications/__init__.py b/src/cloudflare/resources/event_notifications/__init__.py index 68394e89f36..b0d56c216b8 100644 --- a/src/cloudflare/resources/event_notifications/__init__.py +++ b/src/cloudflare/resources/event_notifications/__init__.py @@ -1,33 +1,33 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from .r2 import ( - R2, - AsyncR2, - R2WithRawResponse, - AsyncR2WithRawResponse, - R2WithStreamingResponse, - AsyncR2WithStreamingResponse, + R2Resource, + AsyncR2Resource, + R2ResourceWithRawResponse, + AsyncR2ResourceWithRawResponse, + R2ResourceWithStreamingResponse, + AsyncR2ResourceWithStreamingResponse, ) from .event_notifications import ( - EventNotifications, - AsyncEventNotifications, - EventNotificationsWithRawResponse, - AsyncEventNotificationsWithRawResponse, - EventNotificationsWithStreamingResponse, - AsyncEventNotificationsWithStreamingResponse, + EventNotificationsResource, + AsyncEventNotificationsResource, + EventNotificationsResourceWithRawResponse, + AsyncEventNotificationsResourceWithRawResponse, + EventNotificationsResourceWithStreamingResponse, + AsyncEventNotificationsResourceWithStreamingResponse, ) __all__ = [ - "R2", - "AsyncR2", - "R2WithRawResponse", - "AsyncR2WithRawResponse", - "R2WithStreamingResponse", - "AsyncR2WithStreamingResponse", - "EventNotifications", - "AsyncEventNotifications", - "EventNotificationsWithRawResponse", - "AsyncEventNotificationsWithRawResponse", - "EventNotificationsWithStreamingResponse", - "AsyncEventNotificationsWithStreamingResponse", + "R2Resource", + "AsyncR2Resource", + "R2ResourceWithRawResponse", + "AsyncR2ResourceWithRawResponse", + "R2ResourceWithStreamingResponse", + "AsyncR2ResourceWithStreamingResponse", + "EventNotificationsResource", + "AsyncEventNotificationsResource", + "EventNotificationsResourceWithRawResponse", + "AsyncEventNotificationsResourceWithRawResponse", + "EventNotificationsResourceWithStreamingResponse", + "AsyncEventNotificationsResourceWithStreamingResponse", ] diff --git a/src/cloudflare/resources/event_notifications/event_notifications.py b/src/cloudflare/resources/event_notifications/event_notifications.py index 830b4dd520f..d0ed187d73c 100644 --- a/src/cloudflare/resources/event_notifications/event_notifications.py +++ b/src/cloudflare/resources/event_notifications/event_notifications.py @@ -3,79 +3,79 @@ from __future__ import annotations from .r2 import ( - R2, - AsyncR2, - R2WithRawResponse, - AsyncR2WithRawResponse, - R2WithStreamingResponse, - AsyncR2WithStreamingResponse, + R2Resource, + AsyncR2Resource, + R2ResourceWithRawResponse, + AsyncR2ResourceWithRawResponse, + R2ResourceWithStreamingResponse, + AsyncR2ResourceWithStreamingResponse, ) -from .r2.r2 import R2, AsyncR2 +from .r2.r2 import R2Resource, AsyncR2Resource from ..._compat import cached_property from ..._resource import SyncAPIResource, AsyncAPIResource -__all__ = ["EventNotifications", "AsyncEventNotifications"] +__all__ = ["EventNotificationsResource", "AsyncEventNotificationsResource"] -class EventNotifications(SyncAPIResource): +class EventNotificationsResource(SyncAPIResource): @cached_property - def r2(self) -> R2: - return R2(self._client) + def r2(self) -> R2Resource: + return R2Resource(self._client) @cached_property - def with_raw_response(self) -> EventNotificationsWithRawResponse: - return EventNotificationsWithRawResponse(self) + def with_raw_response(self) -> EventNotificationsResourceWithRawResponse: + return EventNotificationsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> EventNotificationsWithStreamingResponse: - return EventNotificationsWithStreamingResponse(self) + def with_streaming_response(self) -> EventNotificationsResourceWithStreamingResponse: + return EventNotificationsResourceWithStreamingResponse(self) -class AsyncEventNotifications(AsyncAPIResource): +class AsyncEventNotificationsResource(AsyncAPIResource): @cached_property - def r2(self) -> AsyncR2: - return AsyncR2(self._client) + def r2(self) -> AsyncR2Resource: + return AsyncR2Resource(self._client) @cached_property - def with_raw_response(self) -> AsyncEventNotificationsWithRawResponse: - return AsyncEventNotificationsWithRawResponse(self) + def with_raw_response(self) -> AsyncEventNotificationsResourceWithRawResponse: + return AsyncEventNotificationsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncEventNotificationsWithStreamingResponse: - return AsyncEventNotificationsWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncEventNotificationsResourceWithStreamingResponse: + return AsyncEventNotificationsResourceWithStreamingResponse(self) -class EventNotificationsWithRawResponse: - def __init__(self, event_notifications: EventNotifications) -> None: +class EventNotificationsResourceWithRawResponse: + def __init__(self, event_notifications: EventNotificationsResource) -> None: self._event_notifications = event_notifications @cached_property - def r2(self) -> R2WithRawResponse: - return R2WithRawResponse(self._event_notifications.r2) + def r2(self) -> R2ResourceWithRawResponse: + return R2ResourceWithRawResponse(self._event_notifications.r2) -class AsyncEventNotificationsWithRawResponse: - def __init__(self, event_notifications: AsyncEventNotifications) -> None: +class AsyncEventNotificationsResourceWithRawResponse: + def __init__(self, event_notifications: AsyncEventNotificationsResource) -> None: self._event_notifications = event_notifications @cached_property - def r2(self) -> AsyncR2WithRawResponse: - return AsyncR2WithRawResponse(self._event_notifications.r2) + def r2(self) -> AsyncR2ResourceWithRawResponse: + return AsyncR2ResourceWithRawResponse(self._event_notifications.r2) -class EventNotificationsWithStreamingResponse: - def __init__(self, event_notifications: EventNotifications) -> None: +class EventNotificationsResourceWithStreamingResponse: + def __init__(self, event_notifications: EventNotificationsResource) -> None: self._event_notifications = event_notifications @cached_property - def r2(self) -> R2WithStreamingResponse: - return R2WithStreamingResponse(self._event_notifications.r2) + def r2(self) -> R2ResourceWithStreamingResponse: + return R2ResourceWithStreamingResponse(self._event_notifications.r2) -class AsyncEventNotificationsWithStreamingResponse: - def __init__(self, event_notifications: AsyncEventNotifications) -> None: +class AsyncEventNotificationsResourceWithStreamingResponse: + def __init__(self, event_notifications: AsyncEventNotificationsResource) -> None: self._event_notifications = event_notifications @cached_property - def r2(self) -> AsyncR2WithStreamingResponse: - return AsyncR2WithStreamingResponse(self._event_notifications.r2) + def r2(self) -> AsyncR2ResourceWithStreamingResponse: + return AsyncR2ResourceWithStreamingResponse(self._event_notifications.r2) diff --git a/src/cloudflare/resources/event_notifications/r2/__init__.py b/src/cloudflare/resources/event_notifications/r2/__init__.py index 633b853d167..6d6123f2e43 100644 --- a/src/cloudflare/resources/event_notifications/r2/__init__.py +++ b/src/cloudflare/resources/event_notifications/r2/__init__.py @@ -1,33 +1,33 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from .r2 import ( - R2, - AsyncR2, - R2WithRawResponse, - AsyncR2WithRawResponse, - R2WithStreamingResponse, - AsyncR2WithStreamingResponse, + R2Resource, + AsyncR2Resource, + R2ResourceWithRawResponse, + AsyncR2ResourceWithRawResponse, + R2ResourceWithStreamingResponse, + AsyncR2ResourceWithStreamingResponse, ) from .configuration import ( - Configuration, - AsyncConfiguration, - ConfigurationWithRawResponse, - AsyncConfigurationWithRawResponse, - ConfigurationWithStreamingResponse, - AsyncConfigurationWithStreamingResponse, + ConfigurationResource, + AsyncConfigurationResource, + ConfigurationResourceWithRawResponse, + AsyncConfigurationResourceWithRawResponse, + ConfigurationResourceWithStreamingResponse, + AsyncConfigurationResourceWithStreamingResponse, ) __all__ = [ - "Configuration", - "AsyncConfiguration", - "ConfigurationWithRawResponse", - "AsyncConfigurationWithRawResponse", - "ConfigurationWithStreamingResponse", - "AsyncConfigurationWithStreamingResponse", - "R2", - "AsyncR2", - "R2WithRawResponse", - "AsyncR2WithRawResponse", - "R2WithStreamingResponse", - "AsyncR2WithStreamingResponse", + "ConfigurationResource", + "AsyncConfigurationResource", + "ConfigurationResourceWithRawResponse", + "AsyncConfigurationResourceWithRawResponse", + "ConfigurationResourceWithStreamingResponse", + "AsyncConfigurationResourceWithStreamingResponse", + "R2Resource", + "AsyncR2Resource", + "R2ResourceWithRawResponse", + "AsyncR2ResourceWithRawResponse", + "R2ResourceWithStreamingResponse", + "AsyncR2ResourceWithStreamingResponse", ] diff --git a/src/cloudflare/resources/event_notifications/r2/configuration/__init__.py b/src/cloudflare/resources/event_notifications/r2/configuration/__init__.py index f78f824aaf5..500f08ff784 100644 --- a/src/cloudflare/resources/event_notifications/r2/configuration/__init__.py +++ b/src/cloudflare/resources/event_notifications/r2/configuration/__init__.py @@ -1,33 +1,33 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from .queues import ( - Queues, - AsyncQueues, - QueuesWithRawResponse, - AsyncQueuesWithRawResponse, - QueuesWithStreamingResponse, - AsyncQueuesWithStreamingResponse, + QueuesResource, + AsyncQueuesResource, + QueuesResourceWithRawResponse, + AsyncQueuesResourceWithRawResponse, + QueuesResourceWithStreamingResponse, + AsyncQueuesResourceWithStreamingResponse, ) from .configuration import ( - Configuration, - AsyncConfiguration, - ConfigurationWithRawResponse, - AsyncConfigurationWithRawResponse, - ConfigurationWithStreamingResponse, - AsyncConfigurationWithStreamingResponse, + ConfigurationResource, + AsyncConfigurationResource, + ConfigurationResourceWithRawResponse, + AsyncConfigurationResourceWithRawResponse, + ConfigurationResourceWithStreamingResponse, + AsyncConfigurationResourceWithStreamingResponse, ) __all__ = [ - "Queues", - "AsyncQueues", - "QueuesWithRawResponse", - "AsyncQueuesWithRawResponse", - "QueuesWithStreamingResponse", - "AsyncQueuesWithStreamingResponse", - "Configuration", - "AsyncConfiguration", - "ConfigurationWithRawResponse", - "AsyncConfigurationWithRawResponse", - "ConfigurationWithStreamingResponse", - "AsyncConfigurationWithStreamingResponse", + "QueuesResource", + "AsyncQueuesResource", + "QueuesResourceWithRawResponse", + "AsyncQueuesResourceWithRawResponse", + "QueuesResourceWithStreamingResponse", + "AsyncQueuesResourceWithStreamingResponse", + "ConfigurationResource", + "AsyncConfigurationResource", + "ConfigurationResourceWithRawResponse", + "AsyncConfigurationResourceWithRawResponse", + "ConfigurationResourceWithStreamingResponse", + "AsyncConfigurationResourceWithStreamingResponse", ] diff --git a/src/cloudflare/resources/event_notifications/r2/configuration/configuration.py b/src/cloudflare/resources/event_notifications/r2/configuration/configuration.py index e35606b75a4..b4c80577222 100644 --- a/src/cloudflare/resources/event_notifications/r2/configuration/configuration.py +++ b/src/cloudflare/resources/event_notifications/r2/configuration/configuration.py @@ -7,12 +7,12 @@ import httpx from .queues import ( - Queues, - AsyncQueues, - QueuesWithRawResponse, - AsyncQueuesWithRawResponse, - QueuesWithStreamingResponse, - AsyncQueuesWithStreamingResponse, + QueuesResource, + AsyncQueuesResource, + QueuesResourceWithRawResponse, + AsyncQueuesResourceWithRawResponse, + QueuesResourceWithStreamingResponse, + AsyncQueuesResourceWithStreamingResponse, ) from ....._types import NOT_GIVEN, Body, Query, Headers, NotGiven from ....._compat import cached_property @@ -29,21 +29,21 @@ ) from .....types.event_notifications.r2.configuration_get_response import ConfigurationGetResponse -__all__ = ["Configuration", "AsyncConfiguration"] +__all__ = ["ConfigurationResource", "AsyncConfigurationResource"] -class Configuration(SyncAPIResource): +class ConfigurationResource(SyncAPIResource): @cached_property - def queues(self) -> Queues: - return Queues(self._client) + def queues(self) -> QueuesResource: + return QueuesResource(self._client) @cached_property - def with_raw_response(self) -> ConfigurationWithRawResponse: - return ConfigurationWithRawResponse(self) + def with_raw_response(self) -> ConfigurationResourceWithRawResponse: + return ConfigurationResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> ConfigurationWithStreamingResponse: - return ConfigurationWithStreamingResponse(self) + def with_streaming_response(self) -> ConfigurationResourceWithStreamingResponse: + return ConfigurationResourceWithStreamingResponse(self) def get( self, @@ -91,18 +91,18 @@ def get( ) -class AsyncConfiguration(AsyncAPIResource): +class AsyncConfigurationResource(AsyncAPIResource): @cached_property - def queues(self) -> AsyncQueues: - return AsyncQueues(self._client) + def queues(self) -> AsyncQueuesResource: + return AsyncQueuesResource(self._client) @cached_property - def with_raw_response(self) -> AsyncConfigurationWithRawResponse: - return AsyncConfigurationWithRawResponse(self) + def with_raw_response(self) -> AsyncConfigurationResourceWithRawResponse: + return AsyncConfigurationResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncConfigurationWithStreamingResponse: - return AsyncConfigurationWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncConfigurationResourceWithStreamingResponse: + return AsyncConfigurationResourceWithStreamingResponse(self) async def get( self, @@ -150,8 +150,8 @@ async def get( ) -class ConfigurationWithRawResponse: - def __init__(self, configuration: Configuration) -> None: +class ConfigurationResourceWithRawResponse: + def __init__(self, configuration: ConfigurationResource) -> None: self._configuration = configuration self.get = to_raw_response_wrapper( @@ -159,12 +159,12 @@ def __init__(self, configuration: Configuration) -> None: ) @cached_property - def queues(self) -> QueuesWithRawResponse: - return QueuesWithRawResponse(self._configuration.queues) + def queues(self) -> QueuesResourceWithRawResponse: + return QueuesResourceWithRawResponse(self._configuration.queues) -class AsyncConfigurationWithRawResponse: - def __init__(self, configuration: AsyncConfiguration) -> None: +class AsyncConfigurationResourceWithRawResponse: + def __init__(self, configuration: AsyncConfigurationResource) -> None: self._configuration = configuration self.get = async_to_raw_response_wrapper( @@ -172,12 +172,12 @@ def __init__(self, configuration: AsyncConfiguration) -> None: ) @cached_property - def queues(self) -> AsyncQueuesWithRawResponse: - return AsyncQueuesWithRawResponse(self._configuration.queues) + def queues(self) -> AsyncQueuesResourceWithRawResponse: + return AsyncQueuesResourceWithRawResponse(self._configuration.queues) -class ConfigurationWithStreamingResponse: - def __init__(self, configuration: Configuration) -> None: +class ConfigurationResourceWithStreamingResponse: + def __init__(self, configuration: ConfigurationResource) -> None: self._configuration = configuration self.get = to_streamed_response_wrapper( @@ -185,12 +185,12 @@ def __init__(self, configuration: Configuration) -> None: ) @cached_property - def queues(self) -> QueuesWithStreamingResponse: - return QueuesWithStreamingResponse(self._configuration.queues) + def queues(self) -> QueuesResourceWithStreamingResponse: + return QueuesResourceWithStreamingResponse(self._configuration.queues) -class AsyncConfigurationWithStreamingResponse: - def __init__(self, configuration: AsyncConfiguration) -> None: +class AsyncConfigurationResourceWithStreamingResponse: + def __init__(self, configuration: AsyncConfigurationResource) -> None: self._configuration = configuration self.get = async_to_streamed_response_wrapper( @@ -198,5 +198,5 @@ def __init__(self, configuration: AsyncConfiguration) -> None: ) @cached_property - def queues(self) -> AsyncQueuesWithStreamingResponse: - return AsyncQueuesWithStreamingResponse(self._configuration.queues) + def queues(self) -> AsyncQueuesResourceWithStreamingResponse: + return AsyncQueuesResourceWithStreamingResponse(self._configuration.queues) diff --git a/src/cloudflare/resources/event_notifications/r2/configuration/queues.py b/src/cloudflare/resources/event_notifications/r2/configuration/queues.py index 9b0424fe528..cee65c5ac89 100644 --- a/src/cloudflare/resources/event_notifications/r2/configuration/queues.py +++ b/src/cloudflare/resources/event_notifications/r2/configuration/queues.py @@ -27,17 +27,17 @@ from .....types.event_notifications.r2.configuration.queue_delete_response import QueueDeleteResponse from .....types.event_notifications.r2.configuration.queue_update_response import QueueUpdateResponse -__all__ = ["Queues", "AsyncQueues"] +__all__ = ["QueuesResource", "AsyncQueuesResource"] -class Queues(SyncAPIResource): +class QueuesResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> QueuesWithRawResponse: - return QueuesWithRawResponse(self) + def with_raw_response(self) -> QueuesResourceWithRawResponse: + return QueuesResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> QueuesWithStreamingResponse: - return QueuesWithStreamingResponse(self) + def with_streaming_response(self) -> QueuesResourceWithStreamingResponse: + return QueuesResourceWithStreamingResponse(self) def update( self, @@ -150,14 +150,14 @@ def delete( ) -class AsyncQueues(AsyncAPIResource): +class AsyncQueuesResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncQueuesWithRawResponse: - return AsyncQueuesWithRawResponse(self) + def with_raw_response(self) -> AsyncQueuesResourceWithRawResponse: + return AsyncQueuesResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncQueuesWithStreamingResponse: - return AsyncQueuesWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncQueuesResourceWithStreamingResponse: + return AsyncQueuesResourceWithStreamingResponse(self) async def update( self, @@ -270,8 +270,8 @@ async def delete( ) -class QueuesWithRawResponse: - def __init__(self, queues: Queues) -> None: +class QueuesResourceWithRawResponse: + def __init__(self, queues: QueuesResource) -> None: self._queues = queues self.update = to_raw_response_wrapper( @@ -282,8 +282,8 @@ def __init__(self, queues: Queues) -> None: ) -class AsyncQueuesWithRawResponse: - def __init__(self, queues: AsyncQueues) -> None: +class AsyncQueuesResourceWithRawResponse: + def __init__(self, queues: AsyncQueuesResource) -> None: self._queues = queues self.update = async_to_raw_response_wrapper( @@ -294,8 +294,8 @@ def __init__(self, queues: AsyncQueues) -> None: ) -class QueuesWithStreamingResponse: - def __init__(self, queues: Queues) -> None: +class QueuesResourceWithStreamingResponse: + def __init__(self, queues: QueuesResource) -> None: self._queues = queues self.update = to_streamed_response_wrapper( @@ -306,8 +306,8 @@ def __init__(self, queues: Queues) -> None: ) -class AsyncQueuesWithStreamingResponse: - def __init__(self, queues: AsyncQueues) -> None: +class AsyncQueuesResourceWithStreamingResponse: + def __init__(self, queues: AsyncQueuesResource) -> None: self._queues = queues self.update = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/event_notifications/r2/r2.py b/src/cloudflare/resources/event_notifications/r2/r2.py index cd09295390e..4103c51b0f8 100644 --- a/src/cloudflare/resources/event_notifications/r2/r2.py +++ b/src/cloudflare/resources/event_notifications/r2/r2.py @@ -5,77 +5,77 @@ from ...._compat import cached_property from ...._resource import SyncAPIResource, AsyncAPIResource from .configuration import ( - Configuration, - AsyncConfiguration, - ConfigurationWithRawResponse, - AsyncConfigurationWithRawResponse, - ConfigurationWithStreamingResponse, - AsyncConfigurationWithStreamingResponse, + ConfigurationResource, + AsyncConfigurationResource, + ConfigurationResourceWithRawResponse, + AsyncConfigurationResourceWithRawResponse, + ConfigurationResourceWithStreamingResponse, + AsyncConfigurationResourceWithStreamingResponse, ) -from .configuration.configuration import Configuration, AsyncConfiguration +from .configuration.configuration import ConfigurationResource, AsyncConfigurationResource -__all__ = ["R2", "AsyncR2"] +__all__ = ["R2Resource", "AsyncR2Resource"] -class R2(SyncAPIResource): +class R2Resource(SyncAPIResource): @cached_property - def configuration(self) -> Configuration: - return Configuration(self._client) + def configuration(self) -> ConfigurationResource: + return ConfigurationResource(self._client) @cached_property - def with_raw_response(self) -> R2WithRawResponse: - return R2WithRawResponse(self) + def with_raw_response(self) -> R2ResourceWithRawResponse: + return R2ResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> R2WithStreamingResponse: - return R2WithStreamingResponse(self) + def with_streaming_response(self) -> R2ResourceWithStreamingResponse: + return R2ResourceWithStreamingResponse(self) -class AsyncR2(AsyncAPIResource): +class AsyncR2Resource(AsyncAPIResource): @cached_property - def configuration(self) -> AsyncConfiguration: - return AsyncConfiguration(self._client) + def configuration(self) -> AsyncConfigurationResource: + return AsyncConfigurationResource(self._client) @cached_property - def with_raw_response(self) -> AsyncR2WithRawResponse: - return AsyncR2WithRawResponse(self) + def with_raw_response(self) -> AsyncR2ResourceWithRawResponse: + return AsyncR2ResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncR2WithStreamingResponse: - return AsyncR2WithStreamingResponse(self) + def with_streaming_response(self) -> AsyncR2ResourceWithStreamingResponse: + return AsyncR2ResourceWithStreamingResponse(self) -class R2WithRawResponse: - def __init__(self, r2: R2) -> None: +class R2ResourceWithRawResponse: + def __init__(self, r2: R2Resource) -> None: self._r2 = r2 @cached_property - def configuration(self) -> ConfigurationWithRawResponse: - return ConfigurationWithRawResponse(self._r2.configuration) + def configuration(self) -> ConfigurationResourceWithRawResponse: + return ConfigurationResourceWithRawResponse(self._r2.configuration) -class AsyncR2WithRawResponse: - def __init__(self, r2: AsyncR2) -> None: +class AsyncR2ResourceWithRawResponse: + def __init__(self, r2: AsyncR2Resource) -> None: self._r2 = r2 @cached_property - def configuration(self) -> AsyncConfigurationWithRawResponse: - return AsyncConfigurationWithRawResponse(self._r2.configuration) + def configuration(self) -> AsyncConfigurationResourceWithRawResponse: + return AsyncConfigurationResourceWithRawResponse(self._r2.configuration) -class R2WithStreamingResponse: - def __init__(self, r2: R2) -> None: +class R2ResourceWithStreamingResponse: + def __init__(self, r2: R2Resource) -> None: self._r2 = r2 @cached_property - def configuration(self) -> ConfigurationWithStreamingResponse: - return ConfigurationWithStreamingResponse(self._r2.configuration) + def configuration(self) -> ConfigurationResourceWithStreamingResponse: + return ConfigurationResourceWithStreamingResponse(self._r2.configuration) -class AsyncR2WithStreamingResponse: - def __init__(self, r2: AsyncR2) -> None: +class AsyncR2ResourceWithStreamingResponse: + def __init__(self, r2: AsyncR2Resource) -> None: self._r2 = r2 @cached_property - def configuration(self) -> AsyncConfigurationWithStreamingResponse: - return AsyncConfigurationWithStreamingResponse(self._r2.configuration) + def configuration(self) -> AsyncConfigurationResourceWithStreamingResponse: + return AsyncConfigurationResourceWithStreamingResponse(self._r2.configuration) diff --git a/src/cloudflare/resources/filters.py b/src/cloudflare/resources/filters.py index 3aa2fd06456..1204f4347c3 100644 --- a/src/cloudflare/resources/filters.py +++ b/src/cloudflare/resources/filters.py @@ -29,17 +29,17 @@ from ..types.filters.firewall_filter import FirewallFilter from ..types.filters.filter_create_response import FilterCreateResponse -__all__ = ["Filters", "AsyncFilters"] +__all__ = ["FiltersResource", "AsyncFiltersResource"] -class Filters(SyncAPIResource): +class FiltersResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> FiltersWithRawResponse: - return FiltersWithRawResponse(self) + def with_raw_response(self) -> FiltersResourceWithRawResponse: + return FiltersResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> FiltersWithStreamingResponse: - return FiltersWithStreamingResponse(self) + def with_streaming_response(self) -> FiltersResourceWithStreamingResponse: + return FiltersResourceWithStreamingResponse(self) def create( self, @@ -293,14 +293,14 @@ def get( ) -class AsyncFilters(AsyncAPIResource): +class AsyncFiltersResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncFiltersWithRawResponse: - return AsyncFiltersWithRawResponse(self) + def with_raw_response(self) -> AsyncFiltersResourceWithRawResponse: + return AsyncFiltersResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncFiltersWithStreamingResponse: - return AsyncFiltersWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncFiltersResourceWithStreamingResponse: + return AsyncFiltersResourceWithStreamingResponse(self) async def create( self, @@ -554,8 +554,8 @@ async def get( ) -class FiltersWithRawResponse: - def __init__(self, filters: Filters) -> None: +class FiltersResourceWithRawResponse: + def __init__(self, filters: FiltersResource) -> None: self._filters = filters self.create = to_raw_response_wrapper( @@ -575,8 +575,8 @@ def __init__(self, filters: Filters) -> None: ) -class AsyncFiltersWithRawResponse: - def __init__(self, filters: AsyncFilters) -> None: +class AsyncFiltersResourceWithRawResponse: + def __init__(self, filters: AsyncFiltersResource) -> None: self._filters = filters self.create = async_to_raw_response_wrapper( @@ -596,8 +596,8 @@ def __init__(self, filters: AsyncFilters) -> None: ) -class FiltersWithStreamingResponse: - def __init__(self, filters: Filters) -> None: +class FiltersResourceWithStreamingResponse: + def __init__(self, filters: FiltersResource) -> None: self._filters = filters self.create = to_streamed_response_wrapper( @@ -617,8 +617,8 @@ def __init__(self, filters: Filters) -> None: ) -class AsyncFiltersWithStreamingResponse: - def __init__(self, filters: AsyncFilters) -> None: +class AsyncFiltersResourceWithStreamingResponse: + def __init__(self, filters: AsyncFiltersResource) -> None: self._filters = filters self.create = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/firewall/__init__.py b/src/cloudflare/resources/firewall/__init__.py index cdcf0e03563..cc405a6f65f 100644 --- a/src/cloudflare/resources/firewall/__init__.py +++ b/src/cloudflare/resources/firewall/__init__.py @@ -1,89 +1,89 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from .waf import ( - WAF, - AsyncWAF, - WAFWithRawResponse, - AsyncWAFWithRawResponse, - WAFWithStreamingResponse, - AsyncWAFWithStreamingResponse, + WAFResource, + AsyncWAFResource, + WAFResourceWithRawResponse, + AsyncWAFResourceWithRawResponse, + WAFResourceWithStreamingResponse, + AsyncWAFResourceWithStreamingResponse, ) from .rules import ( - Rules, - AsyncRules, - RulesWithRawResponse, - AsyncRulesWithRawResponse, - RulesWithStreamingResponse, - AsyncRulesWithStreamingResponse, + RulesResource, + AsyncRulesResource, + RulesResourceWithRawResponse, + AsyncRulesResourceWithRawResponse, + RulesResourceWithStreamingResponse, + AsyncRulesResourceWithStreamingResponse, ) from .firewall import ( - Firewall, - AsyncFirewall, - FirewallWithRawResponse, - AsyncFirewallWithRawResponse, - FirewallWithStreamingResponse, - AsyncFirewallWithStreamingResponse, + FirewallResource, + AsyncFirewallResource, + FirewallResourceWithRawResponse, + AsyncFirewallResourceWithRawResponse, + FirewallResourceWithStreamingResponse, + AsyncFirewallResourceWithStreamingResponse, ) from .ua_rules import ( - UARules, - AsyncUARules, - UARulesWithRawResponse, - AsyncUARulesWithRawResponse, - UARulesWithStreamingResponse, - AsyncUARulesWithStreamingResponse, + UARulesResource, + AsyncUARulesResource, + UARulesResourceWithRawResponse, + AsyncUARulesResourceWithRawResponse, + UARulesResourceWithStreamingResponse, + AsyncUARulesResourceWithStreamingResponse, ) from .lockdowns import ( - Lockdowns, - AsyncLockdowns, - LockdownsWithRawResponse, - AsyncLockdownsWithRawResponse, - LockdownsWithStreamingResponse, - AsyncLockdownsWithStreamingResponse, + LockdownsResource, + AsyncLockdownsResource, + LockdownsResourceWithRawResponse, + AsyncLockdownsResourceWithRawResponse, + LockdownsResourceWithStreamingResponse, + AsyncLockdownsResourceWithStreamingResponse, ) from .access_rules import ( - AccessRules, - AsyncAccessRules, - AccessRulesWithRawResponse, - AsyncAccessRulesWithRawResponse, - AccessRulesWithStreamingResponse, - AsyncAccessRulesWithStreamingResponse, + AccessRulesResource, + AsyncAccessRulesResource, + AccessRulesResourceWithRawResponse, + AsyncAccessRulesResourceWithRawResponse, + AccessRulesResourceWithStreamingResponse, + AsyncAccessRulesResourceWithStreamingResponse, ) __all__ = [ - "Lockdowns", - "AsyncLockdowns", - "LockdownsWithRawResponse", - "AsyncLockdownsWithRawResponse", - "LockdownsWithStreamingResponse", - "AsyncLockdownsWithStreamingResponse", - "Rules", - "AsyncRules", - "RulesWithRawResponse", - "AsyncRulesWithRawResponse", - "RulesWithStreamingResponse", - "AsyncRulesWithStreamingResponse", - "AccessRules", - "AsyncAccessRules", - "AccessRulesWithRawResponse", - "AsyncAccessRulesWithRawResponse", - "AccessRulesWithStreamingResponse", - "AsyncAccessRulesWithStreamingResponse", - "UARules", - "AsyncUARules", - "UARulesWithRawResponse", - "AsyncUARulesWithRawResponse", - "UARulesWithStreamingResponse", - "AsyncUARulesWithStreamingResponse", - "WAF", - "AsyncWAF", - "WAFWithRawResponse", - "AsyncWAFWithRawResponse", - "WAFWithStreamingResponse", - "AsyncWAFWithStreamingResponse", - "Firewall", - "AsyncFirewall", - "FirewallWithRawResponse", - "AsyncFirewallWithRawResponse", - "FirewallWithStreamingResponse", - "AsyncFirewallWithStreamingResponse", + "LockdownsResource", + "AsyncLockdownsResource", + "LockdownsResourceWithRawResponse", + "AsyncLockdownsResourceWithRawResponse", + "LockdownsResourceWithStreamingResponse", + "AsyncLockdownsResourceWithStreamingResponse", + "RulesResource", + "AsyncRulesResource", + "RulesResourceWithRawResponse", + "AsyncRulesResourceWithRawResponse", + "RulesResourceWithStreamingResponse", + "AsyncRulesResourceWithStreamingResponse", + "AccessRulesResource", + "AsyncAccessRulesResource", + "AccessRulesResourceWithRawResponse", + "AsyncAccessRulesResourceWithRawResponse", + "AccessRulesResourceWithStreamingResponse", + "AsyncAccessRulesResourceWithStreamingResponse", + "UARulesResource", + "AsyncUARulesResource", + "UARulesResourceWithRawResponse", + "AsyncUARulesResourceWithRawResponse", + "UARulesResourceWithStreamingResponse", + "AsyncUARulesResourceWithStreamingResponse", + "WAFResource", + "AsyncWAFResource", + "WAFResourceWithRawResponse", + "AsyncWAFResourceWithRawResponse", + "WAFResourceWithStreamingResponse", + "AsyncWAFResourceWithStreamingResponse", + "FirewallResource", + "AsyncFirewallResource", + "FirewallResourceWithRawResponse", + "AsyncFirewallResourceWithRawResponse", + "FirewallResourceWithStreamingResponse", + "AsyncFirewallResourceWithStreamingResponse", ] diff --git a/src/cloudflare/resources/firewall/access_rules.py b/src/cloudflare/resources/firewall/access_rules.py index 4a5ad2d68da..db4e862920e 100644 --- a/src/cloudflare/resources/firewall/access_rules.py +++ b/src/cloudflare/resources/firewall/access_rules.py @@ -37,17 +37,17 @@ from ...types.firewall.access_rule_create_response import AccessRuleCreateResponse from ...types.firewall.access_rule_delete_response import AccessRuleDeleteResponse -__all__ = ["AccessRules", "AsyncAccessRules"] +__all__ = ["AccessRulesResource", "AsyncAccessRulesResource"] -class AccessRules(SyncAPIResource): +class AccessRulesResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> AccessRulesWithRawResponse: - return AccessRulesWithRawResponse(self) + def with_raw_response(self) -> AccessRulesResourceWithRawResponse: + return AccessRulesResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AccessRulesWithStreamingResponse: - return AccessRulesWithStreamingResponse(self) + def with_streaming_response(self) -> AccessRulesResourceWithStreamingResponse: + return AccessRulesResourceWithStreamingResponse(self) def create( self, @@ -401,14 +401,14 @@ def get( ) -class AsyncAccessRules(AsyncAPIResource): +class AsyncAccessRulesResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncAccessRulesWithRawResponse: - return AsyncAccessRulesWithRawResponse(self) + def with_raw_response(self) -> AsyncAccessRulesResourceWithRawResponse: + return AsyncAccessRulesResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncAccessRulesWithStreamingResponse: - return AsyncAccessRulesWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncAccessRulesResourceWithStreamingResponse: + return AsyncAccessRulesResourceWithStreamingResponse(self) async def create( self, @@ -762,8 +762,8 @@ async def get( ) -class AccessRulesWithRawResponse: - def __init__(self, access_rules: AccessRules) -> None: +class AccessRulesResourceWithRawResponse: + def __init__(self, access_rules: AccessRulesResource) -> None: self._access_rules = access_rules self.create = to_raw_response_wrapper( @@ -783,8 +783,8 @@ def __init__(self, access_rules: AccessRules) -> None: ) -class AsyncAccessRulesWithRawResponse: - def __init__(self, access_rules: AsyncAccessRules) -> None: +class AsyncAccessRulesResourceWithRawResponse: + def __init__(self, access_rules: AsyncAccessRulesResource) -> None: self._access_rules = access_rules self.create = async_to_raw_response_wrapper( @@ -804,8 +804,8 @@ def __init__(self, access_rules: AsyncAccessRules) -> None: ) -class AccessRulesWithStreamingResponse: - def __init__(self, access_rules: AccessRules) -> None: +class AccessRulesResourceWithStreamingResponse: + def __init__(self, access_rules: AccessRulesResource) -> None: self._access_rules = access_rules self.create = to_streamed_response_wrapper( @@ -825,8 +825,8 @@ def __init__(self, access_rules: AccessRules) -> None: ) -class AsyncAccessRulesWithStreamingResponse: - def __init__(self, access_rules: AsyncAccessRules) -> None: +class AsyncAccessRulesResourceWithStreamingResponse: + def __init__(self, access_rules: AsyncAccessRulesResource) -> None: self._access_rules = access_rules self.create = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/firewall/firewall.py b/src/cloudflare/resources/firewall/firewall.py index 1a15aa959b1..77990b2476c 100644 --- a/src/cloudflare/resources/firewall/firewall.py +++ b/src/cloudflare/resources/firewall/firewall.py @@ -3,207 +3,207 @@ from __future__ import annotations from .waf import ( - WAF, - AsyncWAF, - WAFWithRawResponse, - AsyncWAFWithRawResponse, - WAFWithStreamingResponse, - AsyncWAFWithStreamingResponse, + WAFResource, + AsyncWAFResource, + WAFResourceWithRawResponse, + AsyncWAFResourceWithRawResponse, + WAFResourceWithStreamingResponse, + AsyncWAFResourceWithStreamingResponse, ) from .rules import ( - Rules, - AsyncRules, - RulesWithRawResponse, - AsyncRulesWithRawResponse, - RulesWithStreamingResponse, - AsyncRulesWithStreamingResponse, + RulesResource, + AsyncRulesResource, + RulesResourceWithRawResponse, + AsyncRulesResourceWithRawResponse, + RulesResourceWithStreamingResponse, + AsyncRulesResourceWithStreamingResponse, ) -from .waf.waf import WAF, AsyncWAF +from .waf.waf import WAFResource, AsyncWAFResource from .ua_rules import ( - UARules, - AsyncUARules, - UARulesWithRawResponse, - AsyncUARulesWithRawResponse, - UARulesWithStreamingResponse, - AsyncUARulesWithStreamingResponse, + UARulesResource, + AsyncUARulesResource, + UARulesResourceWithRawResponse, + AsyncUARulesResourceWithRawResponse, + UARulesResourceWithStreamingResponse, + AsyncUARulesResourceWithStreamingResponse, ) from ..._compat import cached_property from .lockdowns import ( - Lockdowns, - AsyncLockdowns, - LockdownsWithRawResponse, - AsyncLockdownsWithRawResponse, - LockdownsWithStreamingResponse, - AsyncLockdownsWithStreamingResponse, + LockdownsResource, + AsyncLockdownsResource, + LockdownsResourceWithRawResponse, + AsyncLockdownsResourceWithRawResponse, + LockdownsResourceWithStreamingResponse, + AsyncLockdownsResourceWithStreamingResponse, ) from ..._resource import SyncAPIResource, AsyncAPIResource from .access_rules import ( - AccessRules, - AsyncAccessRules, - AccessRulesWithRawResponse, - AsyncAccessRulesWithRawResponse, - AccessRulesWithStreamingResponse, - AsyncAccessRulesWithStreamingResponse, + AccessRulesResource, + AsyncAccessRulesResource, + AccessRulesResourceWithRawResponse, + AsyncAccessRulesResourceWithRawResponse, + AccessRulesResourceWithStreamingResponse, + AsyncAccessRulesResourceWithStreamingResponse, ) -__all__ = ["Firewall", "AsyncFirewall"] +__all__ = ["FirewallResource", "AsyncFirewallResource"] -class Firewall(SyncAPIResource): +class FirewallResource(SyncAPIResource): @cached_property - def lockdowns(self) -> Lockdowns: - return Lockdowns(self._client) + def lockdowns(self) -> LockdownsResource: + return LockdownsResource(self._client) @cached_property - def rules(self) -> Rules: - return Rules(self._client) + def rules(self) -> RulesResource: + return RulesResource(self._client) @cached_property - def access_rules(self) -> AccessRules: - return AccessRules(self._client) + def access_rules(self) -> AccessRulesResource: + return AccessRulesResource(self._client) @cached_property - def ua_rules(self) -> UARules: - return UARules(self._client) + def ua_rules(self) -> UARulesResource: + return UARulesResource(self._client) @cached_property - def waf(self) -> WAF: - return WAF(self._client) + def waf(self) -> WAFResource: + return WAFResource(self._client) @cached_property - def with_raw_response(self) -> FirewallWithRawResponse: - return FirewallWithRawResponse(self) + def with_raw_response(self) -> FirewallResourceWithRawResponse: + return FirewallResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> FirewallWithStreamingResponse: - return FirewallWithStreamingResponse(self) + def with_streaming_response(self) -> FirewallResourceWithStreamingResponse: + return FirewallResourceWithStreamingResponse(self) -class AsyncFirewall(AsyncAPIResource): +class AsyncFirewallResource(AsyncAPIResource): @cached_property - def lockdowns(self) -> AsyncLockdowns: - return AsyncLockdowns(self._client) + def lockdowns(self) -> AsyncLockdownsResource: + return AsyncLockdownsResource(self._client) @cached_property - def rules(self) -> AsyncRules: - return AsyncRules(self._client) + def rules(self) -> AsyncRulesResource: + return AsyncRulesResource(self._client) @cached_property - def access_rules(self) -> AsyncAccessRules: - return AsyncAccessRules(self._client) + def access_rules(self) -> AsyncAccessRulesResource: + return AsyncAccessRulesResource(self._client) @cached_property - def ua_rules(self) -> AsyncUARules: - return AsyncUARules(self._client) + def ua_rules(self) -> AsyncUARulesResource: + return AsyncUARulesResource(self._client) @cached_property - def waf(self) -> AsyncWAF: - return AsyncWAF(self._client) + def waf(self) -> AsyncWAFResource: + return AsyncWAFResource(self._client) @cached_property - def with_raw_response(self) -> AsyncFirewallWithRawResponse: - return AsyncFirewallWithRawResponse(self) + def with_raw_response(self) -> AsyncFirewallResourceWithRawResponse: + return AsyncFirewallResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncFirewallWithStreamingResponse: - return AsyncFirewallWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncFirewallResourceWithStreamingResponse: + return AsyncFirewallResourceWithStreamingResponse(self) -class FirewallWithRawResponse: - def __init__(self, firewall: Firewall) -> None: +class FirewallResourceWithRawResponse: + def __init__(self, firewall: FirewallResource) -> None: self._firewall = firewall @cached_property - def lockdowns(self) -> LockdownsWithRawResponse: - return LockdownsWithRawResponse(self._firewall.lockdowns) + def lockdowns(self) -> LockdownsResourceWithRawResponse: + return LockdownsResourceWithRawResponse(self._firewall.lockdowns) @cached_property - def rules(self) -> RulesWithRawResponse: - return RulesWithRawResponse(self._firewall.rules) + def rules(self) -> RulesResourceWithRawResponse: + return RulesResourceWithRawResponse(self._firewall.rules) @cached_property - def access_rules(self) -> AccessRulesWithRawResponse: - return AccessRulesWithRawResponse(self._firewall.access_rules) + def access_rules(self) -> AccessRulesResourceWithRawResponse: + return AccessRulesResourceWithRawResponse(self._firewall.access_rules) @cached_property - def ua_rules(self) -> UARulesWithRawResponse: - return UARulesWithRawResponse(self._firewall.ua_rules) + def ua_rules(self) -> UARulesResourceWithRawResponse: + return UARulesResourceWithRawResponse(self._firewall.ua_rules) @cached_property - def waf(self) -> WAFWithRawResponse: - return WAFWithRawResponse(self._firewall.waf) + def waf(self) -> WAFResourceWithRawResponse: + return WAFResourceWithRawResponse(self._firewall.waf) -class AsyncFirewallWithRawResponse: - def __init__(self, firewall: AsyncFirewall) -> None: +class AsyncFirewallResourceWithRawResponse: + def __init__(self, firewall: AsyncFirewallResource) -> None: self._firewall = firewall @cached_property - def lockdowns(self) -> AsyncLockdownsWithRawResponse: - return AsyncLockdownsWithRawResponse(self._firewall.lockdowns) + def lockdowns(self) -> AsyncLockdownsResourceWithRawResponse: + return AsyncLockdownsResourceWithRawResponse(self._firewall.lockdowns) @cached_property - def rules(self) -> AsyncRulesWithRawResponse: - return AsyncRulesWithRawResponse(self._firewall.rules) + def rules(self) -> AsyncRulesResourceWithRawResponse: + return AsyncRulesResourceWithRawResponse(self._firewall.rules) @cached_property - def access_rules(self) -> AsyncAccessRulesWithRawResponse: - return AsyncAccessRulesWithRawResponse(self._firewall.access_rules) + def access_rules(self) -> AsyncAccessRulesResourceWithRawResponse: + return AsyncAccessRulesResourceWithRawResponse(self._firewall.access_rules) @cached_property - def ua_rules(self) -> AsyncUARulesWithRawResponse: - return AsyncUARulesWithRawResponse(self._firewall.ua_rules) + def ua_rules(self) -> AsyncUARulesResourceWithRawResponse: + return AsyncUARulesResourceWithRawResponse(self._firewall.ua_rules) @cached_property - def waf(self) -> AsyncWAFWithRawResponse: - return AsyncWAFWithRawResponse(self._firewall.waf) + def waf(self) -> AsyncWAFResourceWithRawResponse: + return AsyncWAFResourceWithRawResponse(self._firewall.waf) -class FirewallWithStreamingResponse: - def __init__(self, firewall: Firewall) -> None: +class FirewallResourceWithStreamingResponse: + def __init__(self, firewall: FirewallResource) -> None: self._firewall = firewall @cached_property - def lockdowns(self) -> LockdownsWithStreamingResponse: - return LockdownsWithStreamingResponse(self._firewall.lockdowns) + def lockdowns(self) -> LockdownsResourceWithStreamingResponse: + return LockdownsResourceWithStreamingResponse(self._firewall.lockdowns) @cached_property - def rules(self) -> RulesWithStreamingResponse: - return RulesWithStreamingResponse(self._firewall.rules) + def rules(self) -> RulesResourceWithStreamingResponse: + return RulesResourceWithStreamingResponse(self._firewall.rules) @cached_property - def access_rules(self) -> AccessRulesWithStreamingResponse: - return AccessRulesWithStreamingResponse(self._firewall.access_rules) + def access_rules(self) -> AccessRulesResourceWithStreamingResponse: + return AccessRulesResourceWithStreamingResponse(self._firewall.access_rules) @cached_property - def ua_rules(self) -> UARulesWithStreamingResponse: - return UARulesWithStreamingResponse(self._firewall.ua_rules) + def ua_rules(self) -> UARulesResourceWithStreamingResponse: + return UARulesResourceWithStreamingResponse(self._firewall.ua_rules) @cached_property - def waf(self) -> WAFWithStreamingResponse: - return WAFWithStreamingResponse(self._firewall.waf) + def waf(self) -> WAFResourceWithStreamingResponse: + return WAFResourceWithStreamingResponse(self._firewall.waf) -class AsyncFirewallWithStreamingResponse: - def __init__(self, firewall: AsyncFirewall) -> None: +class AsyncFirewallResourceWithStreamingResponse: + def __init__(self, firewall: AsyncFirewallResource) -> None: self._firewall = firewall @cached_property - def lockdowns(self) -> AsyncLockdownsWithStreamingResponse: - return AsyncLockdownsWithStreamingResponse(self._firewall.lockdowns) + def lockdowns(self) -> AsyncLockdownsResourceWithStreamingResponse: + return AsyncLockdownsResourceWithStreamingResponse(self._firewall.lockdowns) @cached_property - def rules(self) -> AsyncRulesWithStreamingResponse: - return AsyncRulesWithStreamingResponse(self._firewall.rules) + def rules(self) -> AsyncRulesResourceWithStreamingResponse: + return AsyncRulesResourceWithStreamingResponse(self._firewall.rules) @cached_property - def access_rules(self) -> AsyncAccessRulesWithStreamingResponse: - return AsyncAccessRulesWithStreamingResponse(self._firewall.access_rules) + def access_rules(self) -> AsyncAccessRulesResourceWithStreamingResponse: + return AsyncAccessRulesResourceWithStreamingResponse(self._firewall.access_rules) @cached_property - def ua_rules(self) -> AsyncUARulesWithStreamingResponse: - return AsyncUARulesWithStreamingResponse(self._firewall.ua_rules) + def ua_rules(self) -> AsyncUARulesResourceWithStreamingResponse: + return AsyncUARulesResourceWithStreamingResponse(self._firewall.ua_rules) @cached_property - def waf(self) -> AsyncWAFWithStreamingResponse: - return AsyncWAFWithStreamingResponse(self._firewall.waf) + def waf(self) -> AsyncWAFResourceWithStreamingResponse: + return AsyncWAFResourceWithStreamingResponse(self._firewall.waf) diff --git a/src/cloudflare/resources/firewall/lockdowns.py b/src/cloudflare/resources/firewall/lockdowns.py index 1dbb4f10d39..df602e6eaa2 100644 --- a/src/cloudflare/resources/firewall/lockdowns.py +++ b/src/cloudflare/resources/firewall/lockdowns.py @@ -35,17 +35,17 @@ from ...types.firewall.lockdown import Lockdown from ...types.firewall.lockdown_delete_response import LockdownDeleteResponse -__all__ = ["Lockdowns", "AsyncLockdowns"] +__all__ = ["LockdownsResource", "AsyncLockdownsResource"] -class Lockdowns(SyncAPIResource): +class LockdownsResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> LockdownsWithRawResponse: - return LockdownsWithRawResponse(self) + def with_raw_response(self) -> LockdownsResourceWithRawResponse: + return LockdownsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> LockdownsWithStreamingResponse: - return LockdownsWithStreamingResponse(self) + def with_streaming_response(self) -> LockdownsResourceWithStreamingResponse: + return LockdownsResourceWithStreamingResponse(self) def create( self, @@ -318,14 +318,14 @@ def get( ) -class AsyncLockdowns(AsyncAPIResource): +class AsyncLockdownsResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncLockdownsWithRawResponse: - return AsyncLockdownsWithRawResponse(self) + def with_raw_response(self) -> AsyncLockdownsResourceWithRawResponse: + return AsyncLockdownsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncLockdownsWithStreamingResponse: - return AsyncLockdownsWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncLockdownsResourceWithStreamingResponse: + return AsyncLockdownsResourceWithStreamingResponse(self) async def create( self, @@ -598,8 +598,8 @@ async def get( ) -class LockdownsWithRawResponse: - def __init__(self, lockdowns: Lockdowns) -> None: +class LockdownsResourceWithRawResponse: + def __init__(self, lockdowns: LockdownsResource) -> None: self._lockdowns = lockdowns self.create = to_raw_response_wrapper( @@ -619,8 +619,8 @@ def __init__(self, lockdowns: Lockdowns) -> None: ) -class AsyncLockdownsWithRawResponse: - def __init__(self, lockdowns: AsyncLockdowns) -> None: +class AsyncLockdownsResourceWithRawResponse: + def __init__(self, lockdowns: AsyncLockdownsResource) -> None: self._lockdowns = lockdowns self.create = async_to_raw_response_wrapper( @@ -640,8 +640,8 @@ def __init__(self, lockdowns: AsyncLockdowns) -> None: ) -class LockdownsWithStreamingResponse: - def __init__(self, lockdowns: Lockdowns) -> None: +class LockdownsResourceWithStreamingResponse: + def __init__(self, lockdowns: LockdownsResource) -> None: self._lockdowns = lockdowns self.create = to_streamed_response_wrapper( @@ -661,8 +661,8 @@ def __init__(self, lockdowns: Lockdowns) -> None: ) -class AsyncLockdownsWithStreamingResponse: - def __init__(self, lockdowns: AsyncLockdowns) -> None: +class AsyncLockdownsResourceWithStreamingResponse: + def __init__(self, lockdowns: AsyncLockdownsResource) -> None: self._lockdowns = lockdowns self.create = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/firewall/rules.py b/src/cloudflare/resources/firewall/rules.py index 3e8b3629243..03d832a407a 100644 --- a/src/cloudflare/resources/firewall/rules.py +++ b/src/cloudflare/resources/firewall/rules.py @@ -37,17 +37,17 @@ from ...types.firewall.rule_edit_response import RuleEditResponse from ...types.firewall.rule_create_response import RuleCreateResponse -__all__ = ["Rules", "AsyncRules"] +__all__ = ["RulesResource", "AsyncRulesResource"] -class Rules(SyncAPIResource): +class RulesResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> RulesWithRawResponse: - return RulesWithRawResponse(self) + def with_raw_response(self) -> RulesResourceWithRawResponse: + return RulesResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> RulesWithStreamingResponse: - return RulesWithStreamingResponse(self) + def with_streaming_response(self) -> RulesResourceWithStreamingResponse: + return RulesResourceWithStreamingResponse(self) def create( self, @@ -352,14 +352,14 @@ def get( ) -class AsyncRules(AsyncAPIResource): +class AsyncRulesResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncRulesWithRawResponse: - return AsyncRulesWithRawResponse(self) + def with_raw_response(self) -> AsyncRulesResourceWithRawResponse: + return AsyncRulesResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncRulesWithStreamingResponse: - return AsyncRulesWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncRulesResourceWithStreamingResponse: + return AsyncRulesResourceWithStreamingResponse(self) async def create( self, @@ -664,8 +664,8 @@ async def get( ) -class RulesWithRawResponse: - def __init__(self, rules: Rules) -> None: +class RulesResourceWithRawResponse: + def __init__(self, rules: RulesResource) -> None: self._rules = rules self.create = to_raw_response_wrapper( @@ -688,8 +688,8 @@ def __init__(self, rules: Rules) -> None: ) -class AsyncRulesWithRawResponse: - def __init__(self, rules: AsyncRules) -> None: +class AsyncRulesResourceWithRawResponse: + def __init__(self, rules: AsyncRulesResource) -> None: self._rules = rules self.create = async_to_raw_response_wrapper( @@ -712,8 +712,8 @@ def __init__(self, rules: AsyncRules) -> None: ) -class RulesWithStreamingResponse: - def __init__(self, rules: Rules) -> None: +class RulesResourceWithStreamingResponse: + def __init__(self, rules: RulesResource) -> None: self._rules = rules self.create = to_streamed_response_wrapper( @@ -736,8 +736,8 @@ def __init__(self, rules: Rules) -> None: ) -class AsyncRulesWithStreamingResponse: - def __init__(self, rules: AsyncRules) -> None: +class AsyncRulesResourceWithStreamingResponse: + def __init__(self, rules: AsyncRulesResource) -> None: self._rules = rules self.create = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/firewall/ua_rules.py b/src/cloudflare/resources/firewall/ua_rules.py index 5d402a64491..16158d802a2 100644 --- a/src/cloudflare/resources/firewall/ua_rules.py +++ b/src/cloudflare/resources/firewall/ua_rules.py @@ -32,17 +32,17 @@ from ...types.firewall.ua_rule_delete_response import UARuleDeleteResponse from ...types.firewall.ua_rule_update_response import UARuleUpdateResponse -__all__ = ["UARules", "AsyncUARules"] +__all__ = ["UARulesResource", "AsyncUARulesResource"] -class UARules(SyncAPIResource): +class UARulesResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> UARulesWithRawResponse: - return UARulesWithRawResponse(self) + def with_raw_response(self) -> UARulesResourceWithRawResponse: + return UARulesResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> UARulesWithStreamingResponse: - return UARulesWithStreamingResponse(self) + def with_streaming_response(self) -> UARulesResourceWithStreamingResponse: + return UARulesResourceWithStreamingResponse(self) def create( self, @@ -304,14 +304,14 @@ def get( ) -class AsyncUARules(AsyncAPIResource): +class AsyncUARulesResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncUARulesWithRawResponse: - return AsyncUARulesWithRawResponse(self) + def with_raw_response(self) -> AsyncUARulesResourceWithRawResponse: + return AsyncUARulesResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncUARulesWithStreamingResponse: - return AsyncUARulesWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncUARulesResourceWithStreamingResponse: + return AsyncUARulesResourceWithStreamingResponse(self) async def create( self, @@ -573,8 +573,8 @@ async def get( ) -class UARulesWithRawResponse: - def __init__(self, ua_rules: UARules) -> None: +class UARulesResourceWithRawResponse: + def __init__(self, ua_rules: UARulesResource) -> None: self._ua_rules = ua_rules self.create = to_raw_response_wrapper( @@ -594,8 +594,8 @@ def __init__(self, ua_rules: UARules) -> None: ) -class AsyncUARulesWithRawResponse: - def __init__(self, ua_rules: AsyncUARules) -> None: +class AsyncUARulesResourceWithRawResponse: + def __init__(self, ua_rules: AsyncUARulesResource) -> None: self._ua_rules = ua_rules self.create = async_to_raw_response_wrapper( @@ -615,8 +615,8 @@ def __init__(self, ua_rules: AsyncUARules) -> None: ) -class UARulesWithStreamingResponse: - def __init__(self, ua_rules: UARules) -> None: +class UARulesResourceWithStreamingResponse: + def __init__(self, ua_rules: UARulesResource) -> None: self._ua_rules = ua_rules self.create = to_streamed_response_wrapper( @@ -636,8 +636,8 @@ def __init__(self, ua_rules: UARules) -> None: ) -class AsyncUARulesWithStreamingResponse: - def __init__(self, ua_rules: AsyncUARules) -> None: +class AsyncUARulesResourceWithStreamingResponse: + def __init__(self, ua_rules: AsyncUARulesResource) -> None: self._ua_rules = ua_rules self.create = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/firewall/waf/__init__.py b/src/cloudflare/resources/firewall/waf/__init__.py index 7b42b58fae5..03886bfc2c7 100644 --- a/src/cloudflare/resources/firewall/waf/__init__.py +++ b/src/cloudflare/resources/firewall/waf/__init__.py @@ -1,47 +1,47 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from .waf import ( - WAF, - AsyncWAF, - WAFWithRawResponse, - AsyncWAFWithRawResponse, - WAFWithStreamingResponse, - AsyncWAFWithStreamingResponse, + WAFResource, + AsyncWAFResource, + WAFResourceWithRawResponse, + AsyncWAFResourceWithRawResponse, + WAFResourceWithStreamingResponse, + AsyncWAFResourceWithStreamingResponse, ) from .packages import ( - Packages, - AsyncPackages, - PackagesWithRawResponse, - AsyncPackagesWithRawResponse, - PackagesWithStreamingResponse, - AsyncPackagesWithStreamingResponse, + PackagesResource, + AsyncPackagesResource, + PackagesResourceWithRawResponse, + AsyncPackagesResourceWithRawResponse, + PackagesResourceWithStreamingResponse, + AsyncPackagesResourceWithStreamingResponse, ) from .overrides import ( - Overrides, - AsyncOverrides, - OverridesWithRawResponse, - AsyncOverridesWithRawResponse, - OverridesWithStreamingResponse, - AsyncOverridesWithStreamingResponse, + OverridesResource, + AsyncOverridesResource, + OverridesResourceWithRawResponse, + AsyncOverridesResourceWithRawResponse, + OverridesResourceWithStreamingResponse, + AsyncOverridesResourceWithStreamingResponse, ) __all__ = [ - "Overrides", - "AsyncOverrides", - "OverridesWithRawResponse", - "AsyncOverridesWithRawResponse", - "OverridesWithStreamingResponse", - "AsyncOverridesWithStreamingResponse", - "Packages", - "AsyncPackages", - "PackagesWithRawResponse", - "AsyncPackagesWithRawResponse", - "PackagesWithStreamingResponse", - "AsyncPackagesWithStreamingResponse", - "WAF", - "AsyncWAF", - "WAFWithRawResponse", - "AsyncWAFWithRawResponse", - "WAFWithStreamingResponse", - "AsyncWAFWithStreamingResponse", + "OverridesResource", + "AsyncOverridesResource", + "OverridesResourceWithRawResponse", + "AsyncOverridesResourceWithRawResponse", + "OverridesResourceWithStreamingResponse", + "AsyncOverridesResourceWithStreamingResponse", + "PackagesResource", + "AsyncPackagesResource", + "PackagesResourceWithRawResponse", + "AsyncPackagesResourceWithRawResponse", + "PackagesResourceWithStreamingResponse", + "AsyncPackagesResourceWithStreamingResponse", + "WAFResource", + "AsyncWAFResource", + "WAFResourceWithRawResponse", + "AsyncWAFResourceWithRawResponse", + "WAFResourceWithStreamingResponse", + "AsyncWAFResourceWithStreamingResponse", ] diff --git a/src/cloudflare/resources/firewall/waf/overrides.py b/src/cloudflare/resources/firewall/waf/overrides.py index 52214babf21..2ead7d5a916 100644 --- a/src/cloudflare/resources/firewall/waf/overrides.py +++ b/src/cloudflare/resources/firewall/waf/overrides.py @@ -34,17 +34,17 @@ from ....types.firewall.waf.override import Override from ....types.firewall.waf.override_delete_response import OverrideDeleteResponse -__all__ = ["Overrides", "AsyncOverrides"] +__all__ = ["OverridesResource", "AsyncOverridesResource"] -class Overrides(SyncAPIResource): +class OverridesResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> OverridesWithRawResponse: - return OverridesWithRawResponse(self) + def with_raw_response(self) -> OverridesResourceWithRawResponse: + return OverridesResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> OverridesWithStreamingResponse: - return OverridesWithStreamingResponse(self) + def with_streaming_response(self) -> OverridesResourceWithStreamingResponse: + return OverridesResourceWithStreamingResponse(self) def create( self, @@ -291,14 +291,14 @@ def get( ) -class AsyncOverrides(AsyncAPIResource): +class AsyncOverridesResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncOverridesWithRawResponse: - return AsyncOverridesWithRawResponse(self) + def with_raw_response(self) -> AsyncOverridesResourceWithRawResponse: + return AsyncOverridesResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncOverridesWithStreamingResponse: - return AsyncOverridesWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncOverridesResourceWithStreamingResponse: + return AsyncOverridesResourceWithStreamingResponse(self) async def create( self, @@ -545,8 +545,8 @@ async def get( ) -class OverridesWithRawResponse: - def __init__(self, overrides: Overrides) -> None: +class OverridesResourceWithRawResponse: + def __init__(self, overrides: OverridesResource) -> None: self._overrides = overrides self.create = to_raw_response_wrapper( @@ -566,8 +566,8 @@ def __init__(self, overrides: Overrides) -> None: ) -class AsyncOverridesWithRawResponse: - def __init__(self, overrides: AsyncOverrides) -> None: +class AsyncOverridesResourceWithRawResponse: + def __init__(self, overrides: AsyncOverridesResource) -> None: self._overrides = overrides self.create = async_to_raw_response_wrapper( @@ -587,8 +587,8 @@ def __init__(self, overrides: AsyncOverrides) -> None: ) -class OverridesWithStreamingResponse: - def __init__(self, overrides: Overrides) -> None: +class OverridesResourceWithStreamingResponse: + def __init__(self, overrides: OverridesResource) -> None: self._overrides = overrides self.create = to_streamed_response_wrapper( @@ -608,8 +608,8 @@ def __init__(self, overrides: Overrides) -> None: ) -class AsyncOverridesWithStreamingResponse: - def __init__(self, overrides: AsyncOverrides) -> None: +class AsyncOverridesResourceWithStreamingResponse: + def __init__(self, overrides: AsyncOverridesResource) -> None: self._overrides = overrides self.create = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/firewall/waf/packages/__init__.py b/src/cloudflare/resources/firewall/waf/packages/__init__.py index a49b4e49251..2398adf2647 100644 --- a/src/cloudflare/resources/firewall/waf/packages/__init__.py +++ b/src/cloudflare/resources/firewall/waf/packages/__init__.py @@ -1,47 +1,47 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from .rules import ( - Rules, - AsyncRules, - RulesWithRawResponse, - AsyncRulesWithRawResponse, - RulesWithStreamingResponse, - AsyncRulesWithStreamingResponse, + RulesResource, + AsyncRulesResource, + RulesResourceWithRawResponse, + AsyncRulesResourceWithRawResponse, + RulesResourceWithStreamingResponse, + AsyncRulesResourceWithStreamingResponse, ) from .groups import ( - Groups, - AsyncGroups, - GroupsWithRawResponse, - AsyncGroupsWithRawResponse, - GroupsWithStreamingResponse, - AsyncGroupsWithStreamingResponse, + GroupsResource, + AsyncGroupsResource, + GroupsResourceWithRawResponse, + AsyncGroupsResourceWithRawResponse, + GroupsResourceWithStreamingResponse, + AsyncGroupsResourceWithStreamingResponse, ) from .packages import ( - Packages, - AsyncPackages, - PackagesWithRawResponse, - AsyncPackagesWithRawResponse, - PackagesWithStreamingResponse, - AsyncPackagesWithStreamingResponse, + PackagesResource, + AsyncPackagesResource, + PackagesResourceWithRawResponse, + AsyncPackagesResourceWithRawResponse, + PackagesResourceWithStreamingResponse, + AsyncPackagesResourceWithStreamingResponse, ) __all__ = [ - "Groups", - "AsyncGroups", - "GroupsWithRawResponse", - "AsyncGroupsWithRawResponse", - "GroupsWithStreamingResponse", - "AsyncGroupsWithStreamingResponse", - "Rules", - "AsyncRules", - "RulesWithRawResponse", - "AsyncRulesWithRawResponse", - "RulesWithStreamingResponse", - "AsyncRulesWithStreamingResponse", - "Packages", - "AsyncPackages", - "PackagesWithRawResponse", - "AsyncPackagesWithRawResponse", - "PackagesWithStreamingResponse", - "AsyncPackagesWithStreamingResponse", + "GroupsResource", + "AsyncGroupsResource", + "GroupsResourceWithRawResponse", + "AsyncGroupsResourceWithRawResponse", + "GroupsResourceWithStreamingResponse", + "AsyncGroupsResourceWithStreamingResponse", + "RulesResource", + "AsyncRulesResource", + "RulesResourceWithRawResponse", + "AsyncRulesResourceWithRawResponse", + "RulesResourceWithStreamingResponse", + "AsyncRulesResourceWithStreamingResponse", + "PackagesResource", + "AsyncPackagesResource", + "PackagesResourceWithRawResponse", + "AsyncPackagesResourceWithRawResponse", + "PackagesResourceWithStreamingResponse", + "AsyncPackagesResourceWithStreamingResponse", ] diff --git a/src/cloudflare/resources/firewall/waf/packages/groups.py b/src/cloudflare/resources/firewall/waf/packages/groups.py index 25c7fdb484b..efd106d5cec 100644 --- a/src/cloudflare/resources/firewall/waf/packages/groups.py +++ b/src/cloudflare/resources/firewall/waf/packages/groups.py @@ -31,17 +31,17 @@ from .....types.firewall.waf.packages.group_get_response import GroupGetResponse from .....types.firewall.waf.packages.group_edit_response import GroupEditResponse -__all__ = ["Groups", "AsyncGroups"] +__all__ = ["GroupsResource", "AsyncGroupsResource"] -class Groups(SyncAPIResource): +class GroupsResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> GroupsWithRawResponse: - return GroupsWithRawResponse(self) + def with_raw_response(self) -> GroupsResourceWithRawResponse: + return GroupsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> GroupsWithStreamingResponse: - return GroupsWithStreamingResponse(self) + def with_streaming_response(self) -> GroupsResourceWithStreamingResponse: + return GroupsResourceWithStreamingResponse(self) def list( self, @@ -251,14 +251,14 @@ def get( ) -class AsyncGroups(AsyncAPIResource): +class AsyncGroupsResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncGroupsWithRawResponse: - return AsyncGroupsWithRawResponse(self) + def with_raw_response(self) -> AsyncGroupsResourceWithRawResponse: + return AsyncGroupsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncGroupsWithStreamingResponse: - return AsyncGroupsWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncGroupsResourceWithStreamingResponse: + return AsyncGroupsResourceWithStreamingResponse(self) def list( self, @@ -468,8 +468,8 @@ async def get( ) -class GroupsWithRawResponse: - def __init__(self, groups: Groups) -> None: +class GroupsResourceWithRawResponse: + def __init__(self, groups: GroupsResource) -> None: self._groups = groups self.list = to_raw_response_wrapper( @@ -483,8 +483,8 @@ def __init__(self, groups: Groups) -> None: ) -class AsyncGroupsWithRawResponse: - def __init__(self, groups: AsyncGroups) -> None: +class AsyncGroupsResourceWithRawResponse: + def __init__(self, groups: AsyncGroupsResource) -> None: self._groups = groups self.list = async_to_raw_response_wrapper( @@ -498,8 +498,8 @@ def __init__(self, groups: AsyncGroups) -> None: ) -class GroupsWithStreamingResponse: - def __init__(self, groups: Groups) -> None: +class GroupsResourceWithStreamingResponse: + def __init__(self, groups: GroupsResource) -> None: self._groups = groups self.list = to_streamed_response_wrapper( @@ -513,8 +513,8 @@ def __init__(self, groups: Groups) -> None: ) -class AsyncGroupsWithStreamingResponse: - def __init__(self, groups: AsyncGroups) -> None: +class AsyncGroupsResourceWithStreamingResponse: + def __init__(self, groups: AsyncGroupsResource) -> None: self._groups = groups self.list = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/firewall/waf/packages/packages.py b/src/cloudflare/resources/firewall/waf/packages/packages.py index 748bd19e329..bf8c365887e 100644 --- a/src/cloudflare/resources/firewall/waf/packages/packages.py +++ b/src/cloudflare/resources/firewall/waf/packages/packages.py @@ -8,20 +8,20 @@ import httpx from .rules import ( - Rules, - AsyncRules, - RulesWithRawResponse, - AsyncRulesWithRawResponse, - RulesWithStreamingResponse, - AsyncRulesWithStreamingResponse, + RulesResource, + AsyncRulesResource, + RulesResourceWithRawResponse, + AsyncRulesResourceWithRawResponse, + RulesResourceWithStreamingResponse, + AsyncRulesResourceWithStreamingResponse, ) from .groups import ( - Groups, - AsyncGroups, - GroupsWithRawResponse, - AsyncGroupsWithRawResponse, - GroupsWithStreamingResponse, - AsyncGroupsWithStreamingResponse, + GroupsResource, + AsyncGroupsResource, + GroupsResourceWithRawResponse, + AsyncGroupsResourceWithRawResponse, + GroupsResourceWithStreamingResponse, + AsyncGroupsResourceWithStreamingResponse, ) from ....._types import NOT_GIVEN, Body, Query, Headers, NotGiven from ....._utils import maybe_transform @@ -42,25 +42,25 @@ from .....types.firewall.waf.package_get_response import PackageGetResponse from .....types.firewall.waf.package_list_response import PackageListResponse -__all__ = ["Packages", "AsyncPackages"] +__all__ = ["PackagesResource", "AsyncPackagesResource"] -class Packages(SyncAPIResource): +class PackagesResource(SyncAPIResource): @cached_property - def groups(self) -> Groups: - return Groups(self._client) + def groups(self) -> GroupsResource: + return GroupsResource(self._client) @cached_property - def rules(self) -> Rules: - return Rules(self._client) + def rules(self) -> RulesResource: + return RulesResource(self._client) @cached_property - def with_raw_response(self) -> PackagesWithRawResponse: - return PackagesWithRawResponse(self) + def with_raw_response(self) -> PackagesResourceWithRawResponse: + return PackagesResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> PackagesWithStreamingResponse: - return PackagesWithStreamingResponse(self) + def with_streaming_response(self) -> PackagesResourceWithStreamingResponse: + return PackagesResourceWithStreamingResponse(self) def list( self, @@ -183,22 +183,22 @@ def get( ) -class AsyncPackages(AsyncAPIResource): +class AsyncPackagesResource(AsyncAPIResource): @cached_property - def groups(self) -> AsyncGroups: - return AsyncGroups(self._client) + def groups(self) -> AsyncGroupsResource: + return AsyncGroupsResource(self._client) @cached_property - def rules(self) -> AsyncRules: - return AsyncRules(self._client) + def rules(self) -> AsyncRulesResource: + return AsyncRulesResource(self._client) @cached_property - def with_raw_response(self) -> AsyncPackagesWithRawResponse: - return AsyncPackagesWithRawResponse(self) + def with_raw_response(self) -> AsyncPackagesResourceWithRawResponse: + return AsyncPackagesResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncPackagesWithStreamingResponse: - return AsyncPackagesWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncPackagesResourceWithStreamingResponse: + return AsyncPackagesResourceWithStreamingResponse(self) def list( self, @@ -321,8 +321,8 @@ async def get( ) -class PackagesWithRawResponse: - def __init__(self, packages: Packages) -> None: +class PackagesResourceWithRawResponse: + def __init__(self, packages: PackagesResource) -> None: self._packages = packages self.list = to_raw_response_wrapper( @@ -333,16 +333,16 @@ def __init__(self, packages: Packages) -> None: ) @cached_property - def groups(self) -> GroupsWithRawResponse: - return GroupsWithRawResponse(self._packages.groups) + def groups(self) -> GroupsResourceWithRawResponse: + return GroupsResourceWithRawResponse(self._packages.groups) @cached_property - def rules(self) -> RulesWithRawResponse: - return RulesWithRawResponse(self._packages.rules) + def rules(self) -> RulesResourceWithRawResponse: + return RulesResourceWithRawResponse(self._packages.rules) -class AsyncPackagesWithRawResponse: - def __init__(self, packages: AsyncPackages) -> None: +class AsyncPackagesResourceWithRawResponse: + def __init__(self, packages: AsyncPackagesResource) -> None: self._packages = packages self.list = async_to_raw_response_wrapper( @@ -353,16 +353,16 @@ def __init__(self, packages: AsyncPackages) -> None: ) @cached_property - def groups(self) -> AsyncGroupsWithRawResponse: - return AsyncGroupsWithRawResponse(self._packages.groups) + def groups(self) -> AsyncGroupsResourceWithRawResponse: + return AsyncGroupsResourceWithRawResponse(self._packages.groups) @cached_property - def rules(self) -> AsyncRulesWithRawResponse: - return AsyncRulesWithRawResponse(self._packages.rules) + def rules(self) -> AsyncRulesResourceWithRawResponse: + return AsyncRulesResourceWithRawResponse(self._packages.rules) -class PackagesWithStreamingResponse: - def __init__(self, packages: Packages) -> None: +class PackagesResourceWithStreamingResponse: + def __init__(self, packages: PackagesResource) -> None: self._packages = packages self.list = to_streamed_response_wrapper( @@ -373,16 +373,16 @@ def __init__(self, packages: Packages) -> None: ) @cached_property - def groups(self) -> GroupsWithStreamingResponse: - return GroupsWithStreamingResponse(self._packages.groups) + def groups(self) -> GroupsResourceWithStreamingResponse: + return GroupsResourceWithStreamingResponse(self._packages.groups) @cached_property - def rules(self) -> RulesWithStreamingResponse: - return RulesWithStreamingResponse(self._packages.rules) + def rules(self) -> RulesResourceWithStreamingResponse: + return RulesResourceWithStreamingResponse(self._packages.rules) -class AsyncPackagesWithStreamingResponse: - def __init__(self, packages: AsyncPackages) -> None: +class AsyncPackagesResourceWithStreamingResponse: + def __init__(self, packages: AsyncPackagesResource) -> None: self._packages = packages self.list = async_to_streamed_response_wrapper( @@ -393,9 +393,9 @@ def __init__(self, packages: AsyncPackages) -> None: ) @cached_property - def groups(self) -> AsyncGroupsWithStreamingResponse: - return AsyncGroupsWithStreamingResponse(self._packages.groups) + def groups(self) -> AsyncGroupsResourceWithStreamingResponse: + return AsyncGroupsResourceWithStreamingResponse(self._packages.groups) @cached_property - def rules(self) -> AsyncRulesWithStreamingResponse: - return AsyncRulesWithStreamingResponse(self._packages.rules) + def rules(self) -> AsyncRulesResourceWithStreamingResponse: + return AsyncRulesResourceWithStreamingResponse(self._packages.rules) diff --git a/src/cloudflare/resources/firewall/waf/packages/rules.py b/src/cloudflare/resources/firewall/waf/packages/rules.py index 44886402a95..7a1f92a3ede 100644 --- a/src/cloudflare/resources/firewall/waf/packages/rules.py +++ b/src/cloudflare/resources/firewall/waf/packages/rules.py @@ -31,17 +31,17 @@ from .....types.firewall.waf.packages.rule_edit_response import RuleEditResponse from .....types.firewall.waf.packages.rule_list_response import RuleListResponse -__all__ = ["Rules", "AsyncRules"] +__all__ = ["RulesResource", "AsyncRulesResource"] -class Rules(SyncAPIResource): +class RulesResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> RulesWithRawResponse: - return RulesWithRawResponse(self) + def with_raw_response(self) -> RulesResourceWithRawResponse: + return RulesResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> RulesWithStreamingResponse: - return RulesWithStreamingResponse(self) + def with_streaming_response(self) -> RulesResourceWithStreamingResponse: + return RulesResourceWithStreamingResponse(self) def list( self, @@ -253,14 +253,14 @@ def get( ) -class AsyncRules(AsyncAPIResource): +class AsyncRulesResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncRulesWithRawResponse: - return AsyncRulesWithRawResponse(self) + def with_raw_response(self) -> AsyncRulesResourceWithRawResponse: + return AsyncRulesResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncRulesWithStreamingResponse: - return AsyncRulesWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncRulesResourceWithStreamingResponse: + return AsyncRulesResourceWithStreamingResponse(self) def list( self, @@ -472,8 +472,8 @@ async def get( ) -class RulesWithRawResponse: - def __init__(self, rules: Rules) -> None: +class RulesResourceWithRawResponse: + def __init__(self, rules: RulesResource) -> None: self._rules = rules self.list = to_raw_response_wrapper( @@ -487,8 +487,8 @@ def __init__(self, rules: Rules) -> None: ) -class AsyncRulesWithRawResponse: - def __init__(self, rules: AsyncRules) -> None: +class AsyncRulesResourceWithRawResponse: + def __init__(self, rules: AsyncRulesResource) -> None: self._rules = rules self.list = async_to_raw_response_wrapper( @@ -502,8 +502,8 @@ def __init__(self, rules: AsyncRules) -> None: ) -class RulesWithStreamingResponse: - def __init__(self, rules: Rules) -> None: +class RulesResourceWithStreamingResponse: + def __init__(self, rules: RulesResource) -> None: self._rules = rules self.list = to_streamed_response_wrapper( @@ -517,8 +517,8 @@ def __init__(self, rules: Rules) -> None: ) -class AsyncRulesWithStreamingResponse: - def __init__(self, rules: AsyncRules) -> None: +class AsyncRulesResourceWithStreamingResponse: + def __init__(self, rules: AsyncRulesResource) -> None: self._rules = rules self.list = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/firewall/waf/waf.py b/src/cloudflare/resources/firewall/waf/waf.py index 80d5523dcde..1a4ec228629 100644 --- a/src/cloudflare/resources/firewall/waf/waf.py +++ b/src/cloudflare/resources/firewall/waf/waf.py @@ -3,111 +3,111 @@ from __future__ import annotations from .packages import ( - Packages, - AsyncPackages, - PackagesWithRawResponse, - AsyncPackagesWithRawResponse, - PackagesWithStreamingResponse, - AsyncPackagesWithStreamingResponse, + PackagesResource, + AsyncPackagesResource, + PackagesResourceWithRawResponse, + AsyncPackagesResourceWithRawResponse, + PackagesResourceWithStreamingResponse, + AsyncPackagesResourceWithStreamingResponse, ) from .overrides import ( - Overrides, - AsyncOverrides, - OverridesWithRawResponse, - AsyncOverridesWithRawResponse, - OverridesWithStreamingResponse, - AsyncOverridesWithStreamingResponse, + OverridesResource, + AsyncOverridesResource, + OverridesResourceWithRawResponse, + AsyncOverridesResourceWithRawResponse, + OverridesResourceWithStreamingResponse, + AsyncOverridesResourceWithStreamingResponse, ) from ...._compat import cached_property from ...._resource import SyncAPIResource, AsyncAPIResource -from .packages.packages import Packages, AsyncPackages +from .packages.packages import PackagesResource, AsyncPackagesResource -__all__ = ["WAF", "AsyncWAF"] +__all__ = ["WAFResource", "AsyncWAFResource"] -class WAF(SyncAPIResource): +class WAFResource(SyncAPIResource): @cached_property - def overrides(self) -> Overrides: - return Overrides(self._client) + def overrides(self) -> OverridesResource: + return OverridesResource(self._client) @cached_property - def packages(self) -> Packages: - return Packages(self._client) + def packages(self) -> PackagesResource: + return PackagesResource(self._client) @cached_property - def with_raw_response(self) -> WAFWithRawResponse: - return WAFWithRawResponse(self) + def with_raw_response(self) -> WAFResourceWithRawResponse: + return WAFResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> WAFWithStreamingResponse: - return WAFWithStreamingResponse(self) + def with_streaming_response(self) -> WAFResourceWithStreamingResponse: + return WAFResourceWithStreamingResponse(self) -class AsyncWAF(AsyncAPIResource): +class AsyncWAFResource(AsyncAPIResource): @cached_property - def overrides(self) -> AsyncOverrides: - return AsyncOverrides(self._client) + def overrides(self) -> AsyncOverridesResource: + return AsyncOverridesResource(self._client) @cached_property - def packages(self) -> AsyncPackages: - return AsyncPackages(self._client) + def packages(self) -> AsyncPackagesResource: + return AsyncPackagesResource(self._client) @cached_property - def with_raw_response(self) -> AsyncWAFWithRawResponse: - return AsyncWAFWithRawResponse(self) + def with_raw_response(self) -> AsyncWAFResourceWithRawResponse: + return AsyncWAFResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncWAFWithStreamingResponse: - return AsyncWAFWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncWAFResourceWithStreamingResponse: + return AsyncWAFResourceWithStreamingResponse(self) -class WAFWithRawResponse: - def __init__(self, waf: WAF) -> None: +class WAFResourceWithRawResponse: + def __init__(self, waf: WAFResource) -> None: self._waf = waf @cached_property - def overrides(self) -> OverridesWithRawResponse: - return OverridesWithRawResponse(self._waf.overrides) + def overrides(self) -> OverridesResourceWithRawResponse: + return OverridesResourceWithRawResponse(self._waf.overrides) @cached_property - def packages(self) -> PackagesWithRawResponse: - return PackagesWithRawResponse(self._waf.packages) + def packages(self) -> PackagesResourceWithRawResponse: + return PackagesResourceWithRawResponse(self._waf.packages) -class AsyncWAFWithRawResponse: - def __init__(self, waf: AsyncWAF) -> None: +class AsyncWAFResourceWithRawResponse: + def __init__(self, waf: AsyncWAFResource) -> None: self._waf = waf @cached_property - def overrides(self) -> AsyncOverridesWithRawResponse: - return AsyncOverridesWithRawResponse(self._waf.overrides) + def overrides(self) -> AsyncOverridesResourceWithRawResponse: + return AsyncOverridesResourceWithRawResponse(self._waf.overrides) @cached_property - def packages(self) -> AsyncPackagesWithRawResponse: - return AsyncPackagesWithRawResponse(self._waf.packages) + def packages(self) -> AsyncPackagesResourceWithRawResponse: + return AsyncPackagesResourceWithRawResponse(self._waf.packages) -class WAFWithStreamingResponse: - def __init__(self, waf: WAF) -> None: +class WAFResourceWithStreamingResponse: + def __init__(self, waf: WAFResource) -> None: self._waf = waf @cached_property - def overrides(self) -> OverridesWithStreamingResponse: - return OverridesWithStreamingResponse(self._waf.overrides) + def overrides(self) -> OverridesResourceWithStreamingResponse: + return OverridesResourceWithStreamingResponse(self._waf.overrides) @cached_property - def packages(self) -> PackagesWithStreamingResponse: - return PackagesWithStreamingResponse(self._waf.packages) + def packages(self) -> PackagesResourceWithStreamingResponse: + return PackagesResourceWithStreamingResponse(self._waf.packages) -class AsyncWAFWithStreamingResponse: - def __init__(self, waf: AsyncWAF) -> None: +class AsyncWAFResourceWithStreamingResponse: + def __init__(self, waf: AsyncWAFResource) -> None: self._waf = waf @cached_property - def overrides(self) -> AsyncOverridesWithStreamingResponse: - return AsyncOverridesWithStreamingResponse(self._waf.overrides) + def overrides(self) -> AsyncOverridesResourceWithStreamingResponse: + return AsyncOverridesResourceWithStreamingResponse(self._waf.overrides) @cached_property - def packages(self) -> AsyncPackagesWithStreamingResponse: - return AsyncPackagesWithStreamingResponse(self._waf.packages) + def packages(self) -> AsyncPackagesResourceWithStreamingResponse: + return AsyncPackagesResourceWithStreamingResponse(self._waf.packages) diff --git a/src/cloudflare/resources/healthchecks/__init__.py b/src/cloudflare/resources/healthchecks/__init__.py index 3587bef8b68..33ddb832b75 100644 --- a/src/cloudflare/resources/healthchecks/__init__.py +++ b/src/cloudflare/resources/healthchecks/__init__.py @@ -1,33 +1,33 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from .previews import ( - Previews, - AsyncPreviews, - PreviewsWithRawResponse, - AsyncPreviewsWithRawResponse, - PreviewsWithStreamingResponse, - AsyncPreviewsWithStreamingResponse, + PreviewsResource, + AsyncPreviewsResource, + PreviewsResourceWithRawResponse, + AsyncPreviewsResourceWithRawResponse, + PreviewsResourceWithStreamingResponse, + AsyncPreviewsResourceWithStreamingResponse, ) from .healthchecks import ( - Healthchecks, - AsyncHealthchecks, - HealthchecksWithRawResponse, - AsyncHealthchecksWithRawResponse, - HealthchecksWithStreamingResponse, - AsyncHealthchecksWithStreamingResponse, + HealthchecksResource, + AsyncHealthchecksResource, + HealthchecksResourceWithRawResponse, + AsyncHealthchecksResourceWithRawResponse, + HealthchecksResourceWithStreamingResponse, + AsyncHealthchecksResourceWithStreamingResponse, ) __all__ = [ - "Previews", - "AsyncPreviews", - "PreviewsWithRawResponse", - "AsyncPreviewsWithRawResponse", - "PreviewsWithStreamingResponse", - "AsyncPreviewsWithStreamingResponse", - "Healthchecks", - "AsyncHealthchecks", - "HealthchecksWithRawResponse", - "AsyncHealthchecksWithRawResponse", - "HealthchecksWithStreamingResponse", - "AsyncHealthchecksWithStreamingResponse", + "PreviewsResource", + "AsyncPreviewsResource", + "PreviewsResourceWithRawResponse", + "AsyncPreviewsResourceWithRawResponse", + "PreviewsResourceWithStreamingResponse", + "AsyncPreviewsResourceWithStreamingResponse", + "HealthchecksResource", + "AsyncHealthchecksResource", + "HealthchecksResourceWithRawResponse", + "AsyncHealthchecksResourceWithRawResponse", + "HealthchecksResourceWithStreamingResponse", + "AsyncHealthchecksResourceWithStreamingResponse", ] diff --git a/src/cloudflare/resources/healthchecks/healthchecks.py b/src/cloudflare/resources/healthchecks/healthchecks.py index b0252266fc0..8194286f06a 100644 --- a/src/cloudflare/resources/healthchecks/healthchecks.py +++ b/src/cloudflare/resources/healthchecks/healthchecks.py @@ -12,12 +12,12 @@ async_maybe_transform, ) from .previews import ( - Previews, - AsyncPreviews, - PreviewsWithRawResponse, - AsyncPreviewsWithRawResponse, - PreviewsWithStreamingResponse, - AsyncPreviewsWithStreamingResponse, + PreviewsResource, + AsyncPreviewsResource, + PreviewsResourceWithRawResponse, + AsyncPreviewsResourceWithRawResponse, + PreviewsResourceWithStreamingResponse, + AsyncPreviewsResourceWithStreamingResponse, ) from ..._compat import cached_property from ..._resource import SyncAPIResource, AsyncAPIResource @@ -46,21 +46,21 @@ from ...types.healthchecks.http_configuration_param import HTTPConfigurationParam from ...types.healthchecks.healthcheck_delete_response import HealthcheckDeleteResponse -__all__ = ["Healthchecks", "AsyncHealthchecks"] +__all__ = ["HealthchecksResource", "AsyncHealthchecksResource"] -class Healthchecks(SyncAPIResource): +class HealthchecksResource(SyncAPIResource): @cached_property - def previews(self) -> Previews: - return Previews(self._client) + def previews(self) -> PreviewsResource: + return PreviewsResource(self._client) @cached_property - def with_raw_response(self) -> HealthchecksWithRawResponse: - return HealthchecksWithRawResponse(self) + def with_raw_response(self) -> HealthchecksResourceWithRawResponse: + return HealthchecksResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> HealthchecksWithStreamingResponse: - return HealthchecksWithStreamingResponse(self) + def with_streaming_response(self) -> HealthchecksResourceWithStreamingResponse: + return HealthchecksResourceWithStreamingResponse(self) def create( self, @@ -527,18 +527,18 @@ def get( ) -class AsyncHealthchecks(AsyncAPIResource): +class AsyncHealthchecksResource(AsyncAPIResource): @cached_property - def previews(self) -> AsyncPreviews: - return AsyncPreviews(self._client) + def previews(self) -> AsyncPreviewsResource: + return AsyncPreviewsResource(self._client) @cached_property - def with_raw_response(self) -> AsyncHealthchecksWithRawResponse: - return AsyncHealthchecksWithRawResponse(self) + def with_raw_response(self) -> AsyncHealthchecksResourceWithRawResponse: + return AsyncHealthchecksResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncHealthchecksWithStreamingResponse: - return AsyncHealthchecksWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncHealthchecksResourceWithStreamingResponse: + return AsyncHealthchecksResourceWithStreamingResponse(self) async def create( self, @@ -1005,8 +1005,8 @@ async def get( ) -class HealthchecksWithRawResponse: - def __init__(self, healthchecks: Healthchecks) -> None: +class HealthchecksResourceWithRawResponse: + def __init__(self, healthchecks: HealthchecksResource) -> None: self._healthchecks = healthchecks self.create = to_raw_response_wrapper( @@ -1029,12 +1029,12 @@ def __init__(self, healthchecks: Healthchecks) -> None: ) @cached_property - def previews(self) -> PreviewsWithRawResponse: - return PreviewsWithRawResponse(self._healthchecks.previews) + def previews(self) -> PreviewsResourceWithRawResponse: + return PreviewsResourceWithRawResponse(self._healthchecks.previews) -class AsyncHealthchecksWithRawResponse: - def __init__(self, healthchecks: AsyncHealthchecks) -> None: +class AsyncHealthchecksResourceWithRawResponse: + def __init__(self, healthchecks: AsyncHealthchecksResource) -> None: self._healthchecks = healthchecks self.create = async_to_raw_response_wrapper( @@ -1057,12 +1057,12 @@ def __init__(self, healthchecks: AsyncHealthchecks) -> None: ) @cached_property - def previews(self) -> AsyncPreviewsWithRawResponse: - return AsyncPreviewsWithRawResponse(self._healthchecks.previews) + def previews(self) -> AsyncPreviewsResourceWithRawResponse: + return AsyncPreviewsResourceWithRawResponse(self._healthchecks.previews) -class HealthchecksWithStreamingResponse: - def __init__(self, healthchecks: Healthchecks) -> None: +class HealthchecksResourceWithStreamingResponse: + def __init__(self, healthchecks: HealthchecksResource) -> None: self._healthchecks = healthchecks self.create = to_streamed_response_wrapper( @@ -1085,12 +1085,12 @@ def __init__(self, healthchecks: Healthchecks) -> None: ) @cached_property - def previews(self) -> PreviewsWithStreamingResponse: - return PreviewsWithStreamingResponse(self._healthchecks.previews) + def previews(self) -> PreviewsResourceWithStreamingResponse: + return PreviewsResourceWithStreamingResponse(self._healthchecks.previews) -class AsyncHealthchecksWithStreamingResponse: - def __init__(self, healthchecks: AsyncHealthchecks) -> None: +class AsyncHealthchecksResourceWithStreamingResponse: + def __init__(self, healthchecks: AsyncHealthchecksResource) -> None: self._healthchecks = healthchecks self.create = async_to_streamed_response_wrapper( @@ -1113,5 +1113,5 @@ def __init__(self, healthchecks: AsyncHealthchecks) -> None: ) @cached_property - def previews(self) -> AsyncPreviewsWithStreamingResponse: - return AsyncPreviewsWithStreamingResponse(self._healthchecks.previews) + def previews(self) -> AsyncPreviewsResourceWithStreamingResponse: + return AsyncPreviewsResourceWithStreamingResponse(self._healthchecks.previews) diff --git a/src/cloudflare/resources/healthchecks/previews.py b/src/cloudflare/resources/healthchecks/previews.py index 2386d71befa..8af9a96911d 100644 --- a/src/cloudflare/resources/healthchecks/previews.py +++ b/src/cloudflare/resources/healthchecks/previews.py @@ -30,17 +30,17 @@ from ...types.healthchecks.tcp_configuration_param import TCPConfigurationParam from ...types.healthchecks.http_configuration_param import HTTPConfigurationParam -__all__ = ["Previews", "AsyncPreviews"] +__all__ = ["PreviewsResource", "AsyncPreviewsResource"] -class Previews(SyncAPIResource): +class PreviewsResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> PreviewsWithRawResponse: - return PreviewsWithRawResponse(self) + def with_raw_response(self) -> PreviewsResourceWithRawResponse: + return PreviewsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> PreviewsWithStreamingResponse: - return PreviewsWithStreamingResponse(self) + def with_streaming_response(self) -> PreviewsResourceWithStreamingResponse: + return PreviewsResourceWithStreamingResponse(self) def create( self, @@ -237,14 +237,14 @@ def get( ) -class AsyncPreviews(AsyncAPIResource): +class AsyncPreviewsResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncPreviewsWithRawResponse: - return AsyncPreviewsWithRawResponse(self) + def with_raw_response(self) -> AsyncPreviewsResourceWithRawResponse: + return AsyncPreviewsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncPreviewsWithStreamingResponse: - return AsyncPreviewsWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncPreviewsResourceWithStreamingResponse: + return AsyncPreviewsResourceWithStreamingResponse(self) async def create( self, @@ -441,8 +441,8 @@ async def get( ) -class PreviewsWithRawResponse: - def __init__(self, previews: Previews) -> None: +class PreviewsResourceWithRawResponse: + def __init__(self, previews: PreviewsResource) -> None: self._previews = previews self.create = to_raw_response_wrapper( @@ -456,8 +456,8 @@ def __init__(self, previews: Previews) -> None: ) -class AsyncPreviewsWithRawResponse: - def __init__(self, previews: AsyncPreviews) -> None: +class AsyncPreviewsResourceWithRawResponse: + def __init__(self, previews: AsyncPreviewsResource) -> None: self._previews = previews self.create = async_to_raw_response_wrapper( @@ -471,8 +471,8 @@ def __init__(self, previews: AsyncPreviews) -> None: ) -class PreviewsWithStreamingResponse: - def __init__(self, previews: Previews) -> None: +class PreviewsResourceWithStreamingResponse: + def __init__(self, previews: PreviewsResource) -> None: self._previews = previews self.create = to_streamed_response_wrapper( @@ -486,8 +486,8 @@ def __init__(self, previews: Previews) -> None: ) -class AsyncPreviewsWithStreamingResponse: - def __init__(self, previews: AsyncPreviews) -> None: +class AsyncPreviewsResourceWithStreamingResponse: + def __init__(self, previews: AsyncPreviewsResource) -> None: self._previews = previews self.create = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/hostnames/__init__.py b/src/cloudflare/resources/hostnames/__init__.py index 1a85c285d56..52ba53610b1 100644 --- a/src/cloudflare/resources/hostnames/__init__.py +++ b/src/cloudflare/resources/hostnames/__init__.py @@ -1,33 +1,33 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from .settings import ( - Settings, - AsyncSettings, - SettingsWithRawResponse, - AsyncSettingsWithRawResponse, - SettingsWithStreamingResponse, - AsyncSettingsWithStreamingResponse, + SettingsResource, + AsyncSettingsResource, + SettingsResourceWithRawResponse, + AsyncSettingsResourceWithRawResponse, + SettingsResourceWithStreamingResponse, + AsyncSettingsResourceWithStreamingResponse, ) from .hostnames import ( - Hostnames, - AsyncHostnames, - HostnamesWithRawResponse, - AsyncHostnamesWithRawResponse, - HostnamesWithStreamingResponse, - AsyncHostnamesWithStreamingResponse, + HostnamesResource, + AsyncHostnamesResource, + HostnamesResourceWithRawResponse, + AsyncHostnamesResourceWithRawResponse, + HostnamesResourceWithStreamingResponse, + AsyncHostnamesResourceWithStreamingResponse, ) __all__ = [ - "Settings", - "AsyncSettings", - "SettingsWithRawResponse", - "AsyncSettingsWithRawResponse", - "SettingsWithStreamingResponse", - "AsyncSettingsWithStreamingResponse", - "Hostnames", - "AsyncHostnames", - "HostnamesWithRawResponse", - "AsyncHostnamesWithRawResponse", - "HostnamesWithStreamingResponse", - "AsyncHostnamesWithStreamingResponse", + "SettingsResource", + "AsyncSettingsResource", + "SettingsResourceWithRawResponse", + "AsyncSettingsResourceWithRawResponse", + "SettingsResourceWithStreamingResponse", + "AsyncSettingsResourceWithStreamingResponse", + "HostnamesResource", + "AsyncHostnamesResource", + "HostnamesResourceWithRawResponse", + "AsyncHostnamesResourceWithRawResponse", + "HostnamesResourceWithStreamingResponse", + "AsyncHostnamesResourceWithStreamingResponse", ] diff --git a/src/cloudflare/resources/hostnames/hostnames.py b/src/cloudflare/resources/hostnames/hostnames.py index 6cc08e80f77..8b2b6c2dab1 100644 --- a/src/cloudflare/resources/hostnames/hostnames.py +++ b/src/cloudflare/resources/hostnames/hostnames.py @@ -3,79 +3,79 @@ from __future__ import annotations from .settings import ( - Settings, - AsyncSettings, - SettingsWithRawResponse, - AsyncSettingsWithRawResponse, - SettingsWithStreamingResponse, - AsyncSettingsWithStreamingResponse, + SettingsResource, + AsyncSettingsResource, + SettingsResourceWithRawResponse, + AsyncSettingsResourceWithRawResponse, + SettingsResourceWithStreamingResponse, + AsyncSettingsResourceWithStreamingResponse, ) from ..._compat import cached_property from ..._resource import SyncAPIResource, AsyncAPIResource -from .settings.settings import Settings, AsyncSettings +from .settings.settings import SettingsResource, AsyncSettingsResource -__all__ = ["Hostnames", "AsyncHostnames"] +__all__ = ["HostnamesResource", "AsyncHostnamesResource"] -class Hostnames(SyncAPIResource): +class HostnamesResource(SyncAPIResource): @cached_property - def settings(self) -> Settings: - return Settings(self._client) + def settings(self) -> SettingsResource: + return SettingsResource(self._client) @cached_property - def with_raw_response(self) -> HostnamesWithRawResponse: - return HostnamesWithRawResponse(self) + def with_raw_response(self) -> HostnamesResourceWithRawResponse: + return HostnamesResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> HostnamesWithStreamingResponse: - return HostnamesWithStreamingResponse(self) + def with_streaming_response(self) -> HostnamesResourceWithStreamingResponse: + return HostnamesResourceWithStreamingResponse(self) -class AsyncHostnames(AsyncAPIResource): +class AsyncHostnamesResource(AsyncAPIResource): @cached_property - def settings(self) -> AsyncSettings: - return AsyncSettings(self._client) + def settings(self) -> AsyncSettingsResource: + return AsyncSettingsResource(self._client) @cached_property - def with_raw_response(self) -> AsyncHostnamesWithRawResponse: - return AsyncHostnamesWithRawResponse(self) + def with_raw_response(self) -> AsyncHostnamesResourceWithRawResponse: + return AsyncHostnamesResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncHostnamesWithStreamingResponse: - return AsyncHostnamesWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncHostnamesResourceWithStreamingResponse: + return AsyncHostnamesResourceWithStreamingResponse(self) -class HostnamesWithRawResponse: - def __init__(self, hostnames: Hostnames) -> None: +class HostnamesResourceWithRawResponse: + def __init__(self, hostnames: HostnamesResource) -> None: self._hostnames = hostnames @cached_property - def settings(self) -> SettingsWithRawResponse: - return SettingsWithRawResponse(self._hostnames.settings) + def settings(self) -> SettingsResourceWithRawResponse: + return SettingsResourceWithRawResponse(self._hostnames.settings) -class AsyncHostnamesWithRawResponse: - def __init__(self, hostnames: AsyncHostnames) -> None: +class AsyncHostnamesResourceWithRawResponse: + def __init__(self, hostnames: AsyncHostnamesResource) -> None: self._hostnames = hostnames @cached_property - def settings(self) -> AsyncSettingsWithRawResponse: - return AsyncSettingsWithRawResponse(self._hostnames.settings) + def settings(self) -> AsyncSettingsResourceWithRawResponse: + return AsyncSettingsResourceWithRawResponse(self._hostnames.settings) -class HostnamesWithStreamingResponse: - def __init__(self, hostnames: Hostnames) -> None: +class HostnamesResourceWithStreamingResponse: + def __init__(self, hostnames: HostnamesResource) -> None: self._hostnames = hostnames @cached_property - def settings(self) -> SettingsWithStreamingResponse: - return SettingsWithStreamingResponse(self._hostnames.settings) + def settings(self) -> SettingsResourceWithStreamingResponse: + return SettingsResourceWithStreamingResponse(self._hostnames.settings) -class AsyncHostnamesWithStreamingResponse: - def __init__(self, hostnames: AsyncHostnames) -> None: +class AsyncHostnamesResourceWithStreamingResponse: + def __init__(self, hostnames: AsyncHostnamesResource) -> None: self._hostnames = hostnames @cached_property - def settings(self) -> AsyncSettingsWithStreamingResponse: - return AsyncSettingsWithStreamingResponse(self._hostnames.settings) + def settings(self) -> AsyncSettingsResourceWithStreamingResponse: + return AsyncSettingsResourceWithStreamingResponse(self._hostnames.settings) diff --git a/src/cloudflare/resources/hostnames/settings/__init__.py b/src/cloudflare/resources/hostnames/settings/__init__.py index ea048129344..b23f0392adc 100644 --- a/src/cloudflare/resources/hostnames/settings/__init__.py +++ b/src/cloudflare/resources/hostnames/settings/__init__.py @@ -1,33 +1,33 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from .tls import ( - TLS, - AsyncTLS, - TLSWithRawResponse, - AsyncTLSWithRawResponse, - TLSWithStreamingResponse, - AsyncTLSWithStreamingResponse, + TLSResource, + AsyncTLSResource, + TLSResourceWithRawResponse, + AsyncTLSResourceWithRawResponse, + TLSResourceWithStreamingResponse, + AsyncTLSResourceWithStreamingResponse, ) from .settings import ( - Settings, - AsyncSettings, - SettingsWithRawResponse, - AsyncSettingsWithRawResponse, - SettingsWithStreamingResponse, - AsyncSettingsWithStreamingResponse, + SettingsResource, + AsyncSettingsResource, + SettingsResourceWithRawResponse, + AsyncSettingsResourceWithRawResponse, + SettingsResourceWithStreamingResponse, + AsyncSettingsResourceWithStreamingResponse, ) __all__ = [ - "TLS", - "AsyncTLS", - "TLSWithRawResponse", - "AsyncTLSWithRawResponse", - "TLSWithStreamingResponse", - "AsyncTLSWithStreamingResponse", - "Settings", - "AsyncSettings", - "SettingsWithRawResponse", - "AsyncSettingsWithRawResponse", - "SettingsWithStreamingResponse", - "AsyncSettingsWithStreamingResponse", + "TLSResource", + "AsyncTLSResource", + "TLSResourceWithRawResponse", + "AsyncTLSResourceWithRawResponse", + "TLSResourceWithStreamingResponse", + "AsyncTLSResourceWithStreamingResponse", + "SettingsResource", + "AsyncSettingsResource", + "SettingsResourceWithRawResponse", + "AsyncSettingsResourceWithRawResponse", + "SettingsResourceWithStreamingResponse", + "AsyncSettingsResourceWithStreamingResponse", ] diff --git a/src/cloudflare/resources/hostnames/settings/settings.py b/src/cloudflare/resources/hostnames/settings/settings.py index f0349274861..9f31fc518e0 100644 --- a/src/cloudflare/resources/hostnames/settings/settings.py +++ b/src/cloudflare/resources/hostnames/settings/settings.py @@ -3,78 +3,78 @@ from __future__ import annotations from .tls import ( - TLS, - AsyncTLS, - TLSWithRawResponse, - AsyncTLSWithRawResponse, - TLSWithStreamingResponse, - AsyncTLSWithStreamingResponse, + TLSResource, + AsyncTLSResource, + TLSResourceWithRawResponse, + AsyncTLSResourceWithRawResponse, + TLSResourceWithStreamingResponse, + AsyncTLSResourceWithStreamingResponse, ) from ...._compat import cached_property from ...._resource import SyncAPIResource, AsyncAPIResource -__all__ = ["Settings", "AsyncSettings"] +__all__ = ["SettingsResource", "AsyncSettingsResource"] -class Settings(SyncAPIResource): +class SettingsResource(SyncAPIResource): @cached_property - def tls(self) -> TLS: - return TLS(self._client) + def tls(self) -> TLSResource: + return TLSResource(self._client) @cached_property - def with_raw_response(self) -> SettingsWithRawResponse: - return SettingsWithRawResponse(self) + def with_raw_response(self) -> SettingsResourceWithRawResponse: + return SettingsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> SettingsWithStreamingResponse: - return SettingsWithStreamingResponse(self) + def with_streaming_response(self) -> SettingsResourceWithStreamingResponse: + return SettingsResourceWithStreamingResponse(self) -class AsyncSettings(AsyncAPIResource): +class AsyncSettingsResource(AsyncAPIResource): @cached_property - def tls(self) -> AsyncTLS: - return AsyncTLS(self._client) + def tls(self) -> AsyncTLSResource: + return AsyncTLSResource(self._client) @cached_property - def with_raw_response(self) -> AsyncSettingsWithRawResponse: - return AsyncSettingsWithRawResponse(self) + def with_raw_response(self) -> AsyncSettingsResourceWithRawResponse: + return AsyncSettingsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncSettingsWithStreamingResponse: - return AsyncSettingsWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncSettingsResourceWithStreamingResponse: + return AsyncSettingsResourceWithStreamingResponse(self) -class SettingsWithRawResponse: - def __init__(self, settings: Settings) -> None: +class SettingsResourceWithRawResponse: + def __init__(self, settings: SettingsResource) -> None: self._settings = settings @cached_property - def tls(self) -> TLSWithRawResponse: - return TLSWithRawResponse(self._settings.tls) + def tls(self) -> TLSResourceWithRawResponse: + return TLSResourceWithRawResponse(self._settings.tls) -class AsyncSettingsWithRawResponse: - def __init__(self, settings: AsyncSettings) -> None: +class AsyncSettingsResourceWithRawResponse: + def __init__(self, settings: AsyncSettingsResource) -> None: self._settings = settings @cached_property - def tls(self) -> AsyncTLSWithRawResponse: - return AsyncTLSWithRawResponse(self._settings.tls) + def tls(self) -> AsyncTLSResourceWithRawResponse: + return AsyncTLSResourceWithRawResponse(self._settings.tls) -class SettingsWithStreamingResponse: - def __init__(self, settings: Settings) -> None: +class SettingsResourceWithStreamingResponse: + def __init__(self, settings: SettingsResource) -> None: self._settings = settings @cached_property - def tls(self) -> TLSWithStreamingResponse: - return TLSWithStreamingResponse(self._settings.tls) + def tls(self) -> TLSResourceWithStreamingResponse: + return TLSResourceWithStreamingResponse(self._settings.tls) -class AsyncSettingsWithStreamingResponse: - def __init__(self, settings: AsyncSettings) -> None: +class AsyncSettingsResourceWithStreamingResponse: + def __init__(self, settings: AsyncSettingsResource) -> None: self._settings = settings @cached_property - def tls(self) -> AsyncTLSWithStreamingResponse: - return AsyncTLSWithStreamingResponse(self._settings.tls) + def tls(self) -> AsyncTLSResourceWithStreamingResponse: + return AsyncTLSResourceWithStreamingResponse(self._settings.tls) diff --git a/src/cloudflare/resources/hostnames/settings/tls.py b/src/cloudflare/resources/hostnames/settings/tls.py index 81566bd340d..0aa85650230 100644 --- a/src/cloudflare/resources/hostnames/settings/tls.py +++ b/src/cloudflare/resources/hostnames/settings/tls.py @@ -30,17 +30,17 @@ from ....types.hostnames.settings.setting_value_param import SettingValueParam from ....types.hostnames.settings.tls_delete_response import TLSDeleteResponse -__all__ = ["TLS", "AsyncTLS"] +__all__ = ["TLSResource", "AsyncTLSResource"] -class TLS(SyncAPIResource): +class TLSResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> TLSWithRawResponse: - return TLSWithRawResponse(self) + def with_raw_response(self) -> TLSResourceWithRawResponse: + return TLSResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> TLSWithStreamingResponse: - return TLSWithStreamingResponse(self) + def with_streaming_response(self) -> TLSResourceWithStreamingResponse: + return TLSResourceWithStreamingResponse(self) def update( self, @@ -189,14 +189,14 @@ def get( ) -class AsyncTLS(AsyncAPIResource): +class AsyncTLSResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncTLSWithRawResponse: - return AsyncTLSWithRawResponse(self) + def with_raw_response(self) -> AsyncTLSResourceWithRawResponse: + return AsyncTLSResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncTLSWithStreamingResponse: - return AsyncTLSWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncTLSResourceWithStreamingResponse: + return AsyncTLSResourceWithStreamingResponse(self) async def update( self, @@ -345,8 +345,8 @@ async def get( ) -class TLSWithRawResponse: - def __init__(self, tls: TLS) -> None: +class TLSResourceWithRawResponse: + def __init__(self, tls: TLSResource) -> None: self._tls = tls self.update = to_raw_response_wrapper( @@ -360,8 +360,8 @@ def __init__(self, tls: TLS) -> None: ) -class AsyncTLSWithRawResponse: - def __init__(self, tls: AsyncTLS) -> None: +class AsyncTLSResourceWithRawResponse: + def __init__(self, tls: AsyncTLSResource) -> None: self._tls = tls self.update = async_to_raw_response_wrapper( @@ -375,8 +375,8 @@ def __init__(self, tls: AsyncTLS) -> None: ) -class TLSWithStreamingResponse: - def __init__(self, tls: TLS) -> None: +class TLSResourceWithStreamingResponse: + def __init__(self, tls: TLSResource) -> None: self._tls = tls self.update = to_streamed_response_wrapper( @@ -390,8 +390,8 @@ def __init__(self, tls: TLS) -> None: ) -class AsyncTLSWithStreamingResponse: - def __init__(self, tls: AsyncTLS) -> None: +class AsyncTLSResourceWithStreamingResponse: + def __init__(self, tls: AsyncTLSResource) -> None: self._tls = tls self.update = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/hyperdrive/__init__.py b/src/cloudflare/resources/hyperdrive/__init__.py index f83f2db969d..525d223706d 100644 --- a/src/cloudflare/resources/hyperdrive/__init__.py +++ b/src/cloudflare/resources/hyperdrive/__init__.py @@ -1,12 +1,12 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from .configs import ( - Configs, - AsyncConfigs, - ConfigsWithRawResponse, - AsyncConfigsWithRawResponse, - ConfigsWithStreamingResponse, - AsyncConfigsWithStreamingResponse, + ConfigsResource, + AsyncConfigsResource, + ConfigsResourceWithRawResponse, + AsyncConfigsResourceWithRawResponse, + ConfigsResourceWithStreamingResponse, + AsyncConfigsResourceWithStreamingResponse, ) from .hyperdrive import ( HyperdriveResource, @@ -18,12 +18,12 @@ ) __all__ = [ - "Configs", - "AsyncConfigs", - "ConfigsWithRawResponse", - "AsyncConfigsWithRawResponse", - "ConfigsWithStreamingResponse", - "AsyncConfigsWithStreamingResponse", + "ConfigsResource", + "AsyncConfigsResource", + "ConfigsResourceWithRawResponse", + "AsyncConfigsResourceWithRawResponse", + "ConfigsResourceWithStreamingResponse", + "AsyncConfigsResourceWithStreamingResponse", "HyperdriveResource", "AsyncHyperdriveResource", "HyperdriveResourceWithRawResponse", diff --git a/src/cloudflare/resources/hyperdrive/configs.py b/src/cloudflare/resources/hyperdrive/configs.py index 6c06d35c3d2..66f94ebdeec 100644 --- a/src/cloudflare/resources/hyperdrive/configs.py +++ b/src/cloudflare/resources/hyperdrive/configs.py @@ -30,17 +30,17 @@ from ...types.hyperdrive.configuration_param import ConfigurationParam from ...types.hyperdrive.config_delete_response import ConfigDeleteResponse -__all__ = ["Configs", "AsyncConfigs"] +__all__ = ["ConfigsResource", "AsyncConfigsResource"] -class Configs(SyncAPIResource): +class ConfigsResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> ConfigsWithRawResponse: - return ConfigsWithRawResponse(self) + def with_raw_response(self) -> ConfigsResourceWithRawResponse: + return ConfigsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> ConfigsWithStreamingResponse: - return ConfigsWithStreamingResponse(self) + def with_streaming_response(self) -> ConfigsResourceWithStreamingResponse: + return ConfigsResourceWithStreamingResponse(self) def create( self, @@ -334,14 +334,14 @@ def get( ) -class AsyncConfigs(AsyncAPIResource): +class AsyncConfigsResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncConfigsWithRawResponse: - return AsyncConfigsWithRawResponse(self) + def with_raw_response(self) -> AsyncConfigsResourceWithRawResponse: + return AsyncConfigsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncConfigsWithStreamingResponse: - return AsyncConfigsWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncConfigsResourceWithStreamingResponse: + return AsyncConfigsResourceWithStreamingResponse(self) async def create( self, @@ -635,8 +635,8 @@ async def get( ) -class ConfigsWithRawResponse: - def __init__(self, configs: Configs) -> None: +class ConfigsResourceWithRawResponse: + def __init__(self, configs: ConfigsResource) -> None: self._configs = configs self.create = to_raw_response_wrapper( @@ -659,8 +659,8 @@ def __init__(self, configs: Configs) -> None: ) -class AsyncConfigsWithRawResponse: - def __init__(self, configs: AsyncConfigs) -> None: +class AsyncConfigsResourceWithRawResponse: + def __init__(self, configs: AsyncConfigsResource) -> None: self._configs = configs self.create = async_to_raw_response_wrapper( @@ -683,8 +683,8 @@ def __init__(self, configs: AsyncConfigs) -> None: ) -class ConfigsWithStreamingResponse: - def __init__(self, configs: Configs) -> None: +class ConfigsResourceWithStreamingResponse: + def __init__(self, configs: ConfigsResource) -> None: self._configs = configs self.create = to_streamed_response_wrapper( @@ -707,8 +707,8 @@ def __init__(self, configs: Configs) -> None: ) -class AsyncConfigsWithStreamingResponse: - def __init__(self, configs: AsyncConfigs) -> None: +class AsyncConfigsResourceWithStreamingResponse: + def __init__(self, configs: AsyncConfigsResource) -> None: self._configs = configs self.create = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/hyperdrive/hyperdrive.py b/src/cloudflare/resources/hyperdrive/hyperdrive.py index 0f2abb955fa..fbca61fe44f 100644 --- a/src/cloudflare/resources/hyperdrive/hyperdrive.py +++ b/src/cloudflare/resources/hyperdrive/hyperdrive.py @@ -3,12 +3,12 @@ from __future__ import annotations from .configs import ( - Configs, - AsyncConfigs, - ConfigsWithRawResponse, - AsyncConfigsWithRawResponse, - ConfigsWithStreamingResponse, - AsyncConfigsWithStreamingResponse, + ConfigsResource, + AsyncConfigsResource, + ConfigsResourceWithRawResponse, + AsyncConfigsResourceWithRawResponse, + ConfigsResourceWithStreamingResponse, + AsyncConfigsResourceWithStreamingResponse, ) from ..._compat import cached_property from ..._resource import SyncAPIResource, AsyncAPIResource @@ -18,8 +18,8 @@ class HyperdriveResource(SyncAPIResource): @cached_property - def configs(self) -> Configs: - return Configs(self._client) + def configs(self) -> ConfigsResource: + return ConfigsResource(self._client) @cached_property def with_raw_response(self) -> HyperdriveResourceWithRawResponse: @@ -32,8 +32,8 @@ def with_streaming_response(self) -> HyperdriveResourceWithStreamingResponse: class AsyncHyperdriveResource(AsyncAPIResource): @cached_property - def configs(self) -> AsyncConfigs: - return AsyncConfigs(self._client) + def configs(self) -> AsyncConfigsResource: + return AsyncConfigsResource(self._client) @cached_property def with_raw_response(self) -> AsyncHyperdriveResourceWithRawResponse: @@ -49,8 +49,8 @@ def __init__(self, hyperdrive: HyperdriveResource) -> None: self._hyperdrive = hyperdrive @cached_property - def configs(self) -> ConfigsWithRawResponse: - return ConfigsWithRawResponse(self._hyperdrive.configs) + def configs(self) -> ConfigsResourceWithRawResponse: + return ConfigsResourceWithRawResponse(self._hyperdrive.configs) class AsyncHyperdriveResourceWithRawResponse: @@ -58,8 +58,8 @@ def __init__(self, hyperdrive: AsyncHyperdriveResource) -> None: self._hyperdrive = hyperdrive @cached_property - def configs(self) -> AsyncConfigsWithRawResponse: - return AsyncConfigsWithRawResponse(self._hyperdrive.configs) + def configs(self) -> AsyncConfigsResourceWithRawResponse: + return AsyncConfigsResourceWithRawResponse(self._hyperdrive.configs) class HyperdriveResourceWithStreamingResponse: @@ -67,8 +67,8 @@ def __init__(self, hyperdrive: HyperdriveResource) -> None: self._hyperdrive = hyperdrive @cached_property - def configs(self) -> ConfigsWithStreamingResponse: - return ConfigsWithStreamingResponse(self._hyperdrive.configs) + def configs(self) -> ConfigsResourceWithStreamingResponse: + return ConfigsResourceWithStreamingResponse(self._hyperdrive.configs) class AsyncHyperdriveResourceWithStreamingResponse: @@ -76,5 +76,5 @@ def __init__(self, hyperdrive: AsyncHyperdriveResource) -> None: self._hyperdrive = hyperdrive @cached_property - def configs(self) -> AsyncConfigsWithStreamingResponse: - return AsyncConfigsWithStreamingResponse(self._hyperdrive.configs) + def configs(self) -> AsyncConfigsResourceWithStreamingResponse: + return AsyncConfigsResourceWithStreamingResponse(self._hyperdrive.configs) diff --git a/src/cloudflare/resources/images/__init__.py b/src/cloudflare/resources/images/__init__.py index 4916a905174..5f6c36d97fa 100644 --- a/src/cloudflare/resources/images/__init__.py +++ b/src/cloudflare/resources/images/__init__.py @@ -1,47 +1,47 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from .v1 import ( - V1, - AsyncV1, - V1WithRawResponse, - AsyncV1WithRawResponse, - V1WithStreamingResponse, - AsyncV1WithStreamingResponse, + V1Resource, + AsyncV1Resource, + V1ResourceWithRawResponse, + AsyncV1ResourceWithRawResponse, + V1ResourceWithStreamingResponse, + AsyncV1ResourceWithStreamingResponse, ) from .v2 import ( - V2, - AsyncV2, - V2WithRawResponse, - AsyncV2WithRawResponse, - V2WithStreamingResponse, - AsyncV2WithStreamingResponse, + V2Resource, + AsyncV2Resource, + V2ResourceWithRawResponse, + AsyncV2ResourceWithRawResponse, + V2ResourceWithStreamingResponse, + AsyncV2ResourceWithStreamingResponse, ) from .images import ( - Images, - AsyncImages, - ImagesWithRawResponse, - AsyncImagesWithRawResponse, - ImagesWithStreamingResponse, - AsyncImagesWithStreamingResponse, + ImagesResource, + AsyncImagesResource, + ImagesResourceWithRawResponse, + AsyncImagesResourceWithRawResponse, + ImagesResourceWithStreamingResponse, + AsyncImagesResourceWithStreamingResponse, ) __all__ = [ - "V1", - "AsyncV1", - "V1WithRawResponse", - "AsyncV1WithRawResponse", - "V1WithStreamingResponse", - "AsyncV1WithStreamingResponse", - "V2", - "AsyncV2", - "V2WithRawResponse", - "AsyncV2WithRawResponse", - "V2WithStreamingResponse", - "AsyncV2WithStreamingResponse", - "Images", - "AsyncImages", - "ImagesWithRawResponse", - "AsyncImagesWithRawResponse", - "ImagesWithStreamingResponse", - "AsyncImagesWithStreamingResponse", + "V1Resource", + "AsyncV1Resource", + "V1ResourceWithRawResponse", + "AsyncV1ResourceWithRawResponse", + "V1ResourceWithStreamingResponse", + "AsyncV1ResourceWithStreamingResponse", + "V2Resource", + "AsyncV2Resource", + "V2ResourceWithRawResponse", + "AsyncV2ResourceWithRawResponse", + "V2ResourceWithStreamingResponse", + "AsyncV2ResourceWithStreamingResponse", + "ImagesResource", + "AsyncImagesResource", + "ImagesResourceWithRawResponse", + "AsyncImagesResourceWithRawResponse", + "ImagesResourceWithStreamingResponse", + "AsyncImagesResourceWithStreamingResponse", ] diff --git a/src/cloudflare/resources/images/images.py b/src/cloudflare/resources/images/images.py index 6844af2ecb8..211ccd371e1 100644 --- a/src/cloudflare/resources/images/images.py +++ b/src/cloudflare/resources/images/images.py @@ -3,112 +3,112 @@ from __future__ import annotations from .v1 import ( - V1, - AsyncV1, - V1WithRawResponse, - AsyncV1WithRawResponse, - V1WithStreamingResponse, - AsyncV1WithStreamingResponse, + V1Resource, + AsyncV1Resource, + V1ResourceWithRawResponse, + AsyncV1ResourceWithRawResponse, + V1ResourceWithStreamingResponse, + AsyncV1ResourceWithStreamingResponse, ) from .v2 import ( - V2, - AsyncV2, - V2WithRawResponse, - AsyncV2WithRawResponse, - V2WithStreamingResponse, - AsyncV2WithStreamingResponse, + V2Resource, + AsyncV2Resource, + V2ResourceWithRawResponse, + AsyncV2ResourceWithRawResponse, + V2ResourceWithStreamingResponse, + AsyncV2ResourceWithStreamingResponse, ) -from .v1.v1 import V1, AsyncV1 -from .v2.v2 import V2, AsyncV2 +from .v1.v1 import V1Resource, AsyncV1Resource +from .v2.v2 import V2Resource, AsyncV2Resource from ..._compat import cached_property from ..._resource import SyncAPIResource, AsyncAPIResource -__all__ = ["Images", "AsyncImages"] +__all__ = ["ImagesResource", "AsyncImagesResource"] -class Images(SyncAPIResource): +class ImagesResource(SyncAPIResource): @cached_property - def v1(self) -> V1: - return V1(self._client) + def v1(self) -> V1Resource: + return V1Resource(self._client) @cached_property - def v2(self) -> V2: - return V2(self._client) + def v2(self) -> V2Resource: + return V2Resource(self._client) @cached_property - def with_raw_response(self) -> ImagesWithRawResponse: - return ImagesWithRawResponse(self) + def with_raw_response(self) -> ImagesResourceWithRawResponse: + return ImagesResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> ImagesWithStreamingResponse: - return ImagesWithStreamingResponse(self) + def with_streaming_response(self) -> ImagesResourceWithStreamingResponse: + return ImagesResourceWithStreamingResponse(self) -class AsyncImages(AsyncAPIResource): +class AsyncImagesResource(AsyncAPIResource): @cached_property - def v1(self) -> AsyncV1: - return AsyncV1(self._client) + def v1(self) -> AsyncV1Resource: + return AsyncV1Resource(self._client) @cached_property - def v2(self) -> AsyncV2: - return AsyncV2(self._client) + def v2(self) -> AsyncV2Resource: + return AsyncV2Resource(self._client) @cached_property - def with_raw_response(self) -> AsyncImagesWithRawResponse: - return AsyncImagesWithRawResponse(self) + def with_raw_response(self) -> AsyncImagesResourceWithRawResponse: + return AsyncImagesResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncImagesWithStreamingResponse: - return AsyncImagesWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncImagesResourceWithStreamingResponse: + return AsyncImagesResourceWithStreamingResponse(self) -class ImagesWithRawResponse: - def __init__(self, images: Images) -> None: +class ImagesResourceWithRawResponse: + def __init__(self, images: ImagesResource) -> None: self._images = images @cached_property - def v1(self) -> V1WithRawResponse: - return V1WithRawResponse(self._images.v1) + def v1(self) -> V1ResourceWithRawResponse: + return V1ResourceWithRawResponse(self._images.v1) @cached_property - def v2(self) -> V2WithRawResponse: - return V2WithRawResponse(self._images.v2) + def v2(self) -> V2ResourceWithRawResponse: + return V2ResourceWithRawResponse(self._images.v2) -class AsyncImagesWithRawResponse: - def __init__(self, images: AsyncImages) -> None: +class AsyncImagesResourceWithRawResponse: + def __init__(self, images: AsyncImagesResource) -> None: self._images = images @cached_property - def v1(self) -> AsyncV1WithRawResponse: - return AsyncV1WithRawResponse(self._images.v1) + def v1(self) -> AsyncV1ResourceWithRawResponse: + return AsyncV1ResourceWithRawResponse(self._images.v1) @cached_property - def v2(self) -> AsyncV2WithRawResponse: - return AsyncV2WithRawResponse(self._images.v2) + def v2(self) -> AsyncV2ResourceWithRawResponse: + return AsyncV2ResourceWithRawResponse(self._images.v2) -class ImagesWithStreamingResponse: - def __init__(self, images: Images) -> None: +class ImagesResourceWithStreamingResponse: + def __init__(self, images: ImagesResource) -> None: self._images = images @cached_property - def v1(self) -> V1WithStreamingResponse: - return V1WithStreamingResponse(self._images.v1) + def v1(self) -> V1ResourceWithStreamingResponse: + return V1ResourceWithStreamingResponse(self._images.v1) @cached_property - def v2(self) -> V2WithStreamingResponse: - return V2WithStreamingResponse(self._images.v2) + def v2(self) -> V2ResourceWithStreamingResponse: + return V2ResourceWithStreamingResponse(self._images.v2) -class AsyncImagesWithStreamingResponse: - def __init__(self, images: AsyncImages) -> None: +class AsyncImagesResourceWithStreamingResponse: + def __init__(self, images: AsyncImagesResource) -> None: self._images = images @cached_property - def v1(self) -> AsyncV1WithStreamingResponse: - return AsyncV1WithStreamingResponse(self._images.v1) + def v1(self) -> AsyncV1ResourceWithStreamingResponse: + return AsyncV1ResourceWithStreamingResponse(self._images.v1) @cached_property - def v2(self) -> AsyncV2WithStreamingResponse: - return AsyncV2WithStreamingResponse(self._images.v2) + def v2(self) -> AsyncV2ResourceWithStreamingResponse: + return AsyncV2ResourceWithStreamingResponse(self._images.v2) diff --git a/src/cloudflare/resources/images/v1/__init__.py b/src/cloudflare/resources/images/v1/__init__.py index a96e820f7f2..8f34624ef08 100644 --- a/src/cloudflare/resources/images/v1/__init__.py +++ b/src/cloudflare/resources/images/v1/__init__.py @@ -1,75 +1,75 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from .v1 import ( - V1, - AsyncV1, - V1WithRawResponse, - AsyncV1WithRawResponse, - V1WithStreamingResponse, - AsyncV1WithStreamingResponse, + V1Resource, + AsyncV1Resource, + V1ResourceWithRawResponse, + AsyncV1ResourceWithRawResponse, + V1ResourceWithStreamingResponse, + AsyncV1ResourceWithStreamingResponse, ) from .keys import ( - Keys, - AsyncKeys, - KeysWithRawResponse, - AsyncKeysWithRawResponse, - KeysWithStreamingResponse, - AsyncKeysWithStreamingResponse, + KeysResource, + AsyncKeysResource, + KeysResourceWithRawResponse, + AsyncKeysResourceWithRawResponse, + KeysResourceWithStreamingResponse, + AsyncKeysResourceWithStreamingResponse, ) from .blobs import ( - Blobs, - AsyncBlobs, - BlobsWithRawResponse, - AsyncBlobsWithRawResponse, - BlobsWithStreamingResponse, - AsyncBlobsWithStreamingResponse, + BlobsResource, + AsyncBlobsResource, + BlobsResourceWithRawResponse, + AsyncBlobsResourceWithRawResponse, + BlobsResourceWithStreamingResponse, + AsyncBlobsResourceWithStreamingResponse, ) from .stats import ( - Stats, - AsyncStats, - StatsWithRawResponse, - AsyncStatsWithRawResponse, - StatsWithStreamingResponse, - AsyncStatsWithStreamingResponse, + StatsResource, + AsyncStatsResource, + StatsResourceWithRawResponse, + AsyncStatsResourceWithRawResponse, + StatsResourceWithStreamingResponse, + AsyncStatsResourceWithStreamingResponse, ) from .variants import ( - Variants, - AsyncVariants, - VariantsWithRawResponse, - AsyncVariantsWithRawResponse, - VariantsWithStreamingResponse, - AsyncVariantsWithStreamingResponse, + VariantsResource, + AsyncVariantsResource, + VariantsResourceWithRawResponse, + AsyncVariantsResourceWithRawResponse, + VariantsResourceWithStreamingResponse, + AsyncVariantsResourceWithStreamingResponse, ) __all__ = [ - "Keys", - "AsyncKeys", - "KeysWithRawResponse", - "AsyncKeysWithRawResponse", - "KeysWithStreamingResponse", - "AsyncKeysWithStreamingResponse", - "Stats", - "AsyncStats", - "StatsWithRawResponse", - "AsyncStatsWithRawResponse", - "StatsWithStreamingResponse", - "AsyncStatsWithStreamingResponse", - "Variants", - "AsyncVariants", - "VariantsWithRawResponse", - "AsyncVariantsWithRawResponse", - "VariantsWithStreamingResponse", - "AsyncVariantsWithStreamingResponse", - "Blobs", - "AsyncBlobs", - "BlobsWithRawResponse", - "AsyncBlobsWithRawResponse", - "BlobsWithStreamingResponse", - "AsyncBlobsWithStreamingResponse", - "V1", - "AsyncV1", - "V1WithRawResponse", - "AsyncV1WithRawResponse", - "V1WithStreamingResponse", - "AsyncV1WithStreamingResponse", + "KeysResource", + "AsyncKeysResource", + "KeysResourceWithRawResponse", + "AsyncKeysResourceWithRawResponse", + "KeysResourceWithStreamingResponse", + "AsyncKeysResourceWithStreamingResponse", + "StatsResource", + "AsyncStatsResource", + "StatsResourceWithRawResponse", + "AsyncStatsResourceWithRawResponse", + "StatsResourceWithStreamingResponse", + "AsyncStatsResourceWithStreamingResponse", + "VariantsResource", + "AsyncVariantsResource", + "VariantsResourceWithRawResponse", + "AsyncVariantsResourceWithRawResponse", + "VariantsResourceWithStreamingResponse", + "AsyncVariantsResourceWithStreamingResponse", + "BlobsResource", + "AsyncBlobsResource", + "BlobsResourceWithRawResponse", + "AsyncBlobsResourceWithRawResponse", + "BlobsResourceWithStreamingResponse", + "AsyncBlobsResourceWithStreamingResponse", + "V1Resource", + "AsyncV1Resource", + "V1ResourceWithRawResponse", + "AsyncV1ResourceWithRawResponse", + "V1ResourceWithStreamingResponse", + "AsyncV1ResourceWithStreamingResponse", ] diff --git a/src/cloudflare/resources/images/v1/blobs.py b/src/cloudflare/resources/images/v1/blobs.py index 4f4d918d78a..4a4dec6571c 100644 --- a/src/cloudflare/resources/images/v1/blobs.py +++ b/src/cloudflare/resources/images/v1/blobs.py @@ -21,17 +21,17 @@ make_request_options, ) -__all__ = ["Blobs", "AsyncBlobs"] +__all__ = ["BlobsResource", "AsyncBlobsResource"] -class Blobs(SyncAPIResource): +class BlobsResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> BlobsWithRawResponse: - return BlobsWithRawResponse(self) + def with_raw_response(self) -> BlobsResourceWithRawResponse: + return BlobsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> BlobsWithStreamingResponse: - return BlobsWithStreamingResponse(self) + def with_streaming_response(self) -> BlobsResourceWithStreamingResponse: + return BlobsResourceWithStreamingResponse(self) def get( self, @@ -77,14 +77,14 @@ def get( ) -class AsyncBlobs(AsyncAPIResource): +class AsyncBlobsResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncBlobsWithRawResponse: - return AsyncBlobsWithRawResponse(self) + def with_raw_response(self) -> AsyncBlobsResourceWithRawResponse: + return AsyncBlobsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncBlobsWithStreamingResponse: - return AsyncBlobsWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncBlobsResourceWithStreamingResponse: + return AsyncBlobsResourceWithStreamingResponse(self) async def get( self, @@ -130,8 +130,8 @@ async def get( ) -class BlobsWithRawResponse: - def __init__(self, blobs: Blobs) -> None: +class BlobsResourceWithRawResponse: + def __init__(self, blobs: BlobsResource) -> None: self._blobs = blobs self.get = to_custom_raw_response_wrapper( @@ -140,8 +140,8 @@ def __init__(self, blobs: Blobs) -> None: ) -class AsyncBlobsWithRawResponse: - def __init__(self, blobs: AsyncBlobs) -> None: +class AsyncBlobsResourceWithRawResponse: + def __init__(self, blobs: AsyncBlobsResource) -> None: self._blobs = blobs self.get = async_to_custom_raw_response_wrapper( @@ -150,8 +150,8 @@ def __init__(self, blobs: AsyncBlobs) -> None: ) -class BlobsWithStreamingResponse: - def __init__(self, blobs: Blobs) -> None: +class BlobsResourceWithStreamingResponse: + def __init__(self, blobs: BlobsResource) -> None: self._blobs = blobs self.get = to_custom_streamed_response_wrapper( @@ -160,8 +160,8 @@ def __init__(self, blobs: Blobs) -> None: ) -class AsyncBlobsWithStreamingResponse: - def __init__(self, blobs: AsyncBlobs) -> None: +class AsyncBlobsResourceWithStreamingResponse: + def __init__(self, blobs: AsyncBlobsResource) -> None: self._blobs = blobs self.get = async_to_custom_streamed_response_wrapper( diff --git a/src/cloudflare/resources/images/v1/keys.py b/src/cloudflare/resources/images/v1/keys.py index 11886a84c68..96ff163104a 100644 --- a/src/cloudflare/resources/images/v1/keys.py +++ b/src/cloudflare/resources/images/v1/keys.py @@ -23,17 +23,17 @@ from ....types.images.v1.key_delete_response import KeyDeleteResponse from ....types.images.v1.key_update_response import KeyUpdateResponse -__all__ = ["Keys", "AsyncKeys"] +__all__ = ["KeysResource", "AsyncKeysResource"] -class Keys(SyncAPIResource): +class KeysResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> KeysWithRawResponse: - return KeysWithRawResponse(self) + def with_raw_response(self) -> KeysResourceWithRawResponse: + return KeysResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> KeysWithStreamingResponse: - return KeysWithStreamingResponse(self) + def with_streaming_response(self) -> KeysResourceWithStreamingResponse: + return KeysResourceWithStreamingResponse(self) def update( self, @@ -163,14 +163,14 @@ def delete( ) -class AsyncKeys(AsyncAPIResource): +class AsyncKeysResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncKeysWithRawResponse: - return AsyncKeysWithRawResponse(self) + def with_raw_response(self) -> AsyncKeysResourceWithRawResponse: + return AsyncKeysResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncKeysWithStreamingResponse: - return AsyncKeysWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncKeysResourceWithStreamingResponse: + return AsyncKeysResourceWithStreamingResponse(self) async def update( self, @@ -300,8 +300,8 @@ async def delete( ) -class KeysWithRawResponse: - def __init__(self, keys: Keys) -> None: +class KeysResourceWithRawResponse: + def __init__(self, keys: KeysResource) -> None: self._keys = keys self.update = to_raw_response_wrapper( @@ -315,8 +315,8 @@ def __init__(self, keys: Keys) -> None: ) -class AsyncKeysWithRawResponse: - def __init__(self, keys: AsyncKeys) -> None: +class AsyncKeysResourceWithRawResponse: + def __init__(self, keys: AsyncKeysResource) -> None: self._keys = keys self.update = async_to_raw_response_wrapper( @@ -330,8 +330,8 @@ def __init__(self, keys: AsyncKeys) -> None: ) -class KeysWithStreamingResponse: - def __init__(self, keys: Keys) -> None: +class KeysResourceWithStreamingResponse: + def __init__(self, keys: KeysResource) -> None: self._keys = keys self.update = to_streamed_response_wrapper( @@ -345,8 +345,8 @@ def __init__(self, keys: Keys) -> None: ) -class AsyncKeysWithStreamingResponse: - def __init__(self, keys: AsyncKeys) -> None: +class AsyncKeysResourceWithStreamingResponse: + def __init__(self, keys: AsyncKeysResource) -> None: self._keys = keys self.update = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/images/v1/stats.py b/src/cloudflare/resources/images/v1/stats.py index a29bd173e2a..f67fea164a7 100644 --- a/src/cloudflare/resources/images/v1/stats.py +++ b/src/cloudflare/resources/images/v1/stats.py @@ -21,17 +21,17 @@ ) from ....types.images.v1.stat import Stat -__all__ = ["Stats", "AsyncStats"] +__all__ = ["StatsResource", "AsyncStatsResource"] -class Stats(SyncAPIResource): +class StatsResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> StatsWithRawResponse: - return StatsWithRawResponse(self) + def with_raw_response(self) -> StatsResourceWithRawResponse: + return StatsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> StatsWithStreamingResponse: - return StatsWithStreamingResponse(self) + def with_streaming_response(self) -> StatsResourceWithStreamingResponse: + return StatsResourceWithStreamingResponse(self) def get( self, @@ -73,14 +73,14 @@ def get( ) -class AsyncStats(AsyncAPIResource): +class AsyncStatsResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncStatsWithRawResponse: - return AsyncStatsWithRawResponse(self) + def with_raw_response(self) -> AsyncStatsResourceWithRawResponse: + return AsyncStatsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncStatsWithStreamingResponse: - return AsyncStatsWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncStatsResourceWithStreamingResponse: + return AsyncStatsResourceWithStreamingResponse(self) async def get( self, @@ -122,8 +122,8 @@ async def get( ) -class StatsWithRawResponse: - def __init__(self, stats: Stats) -> None: +class StatsResourceWithRawResponse: + def __init__(self, stats: StatsResource) -> None: self._stats = stats self.get = to_raw_response_wrapper( @@ -131,8 +131,8 @@ def __init__(self, stats: Stats) -> None: ) -class AsyncStatsWithRawResponse: - def __init__(self, stats: AsyncStats) -> None: +class AsyncStatsResourceWithRawResponse: + def __init__(self, stats: AsyncStatsResource) -> None: self._stats = stats self.get = async_to_raw_response_wrapper( @@ -140,8 +140,8 @@ def __init__(self, stats: AsyncStats) -> None: ) -class StatsWithStreamingResponse: - def __init__(self, stats: Stats) -> None: +class StatsResourceWithStreamingResponse: + def __init__(self, stats: StatsResource) -> None: self._stats = stats self.get = to_streamed_response_wrapper( @@ -149,8 +149,8 @@ def __init__(self, stats: Stats) -> None: ) -class AsyncStatsWithStreamingResponse: - def __init__(self, stats: AsyncStats) -> None: +class AsyncStatsResourceWithStreamingResponse: + def __init__(self, stats: AsyncStatsResource) -> None: self._stats = stats self.get = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/images/v1/v1.py b/src/cloudflare/resources/images/v1/v1.py index 1d95d9abf5b..1cc52fb05d8 100644 --- a/src/cloudflare/resources/images/v1/v1.py +++ b/src/cloudflare/resources/images/v1/v1.py @@ -7,36 +7,36 @@ import httpx from .keys import ( - Keys, - AsyncKeys, - KeysWithRawResponse, - AsyncKeysWithRawResponse, - KeysWithStreamingResponse, - AsyncKeysWithStreamingResponse, + KeysResource, + AsyncKeysResource, + KeysResourceWithRawResponse, + AsyncKeysResourceWithRawResponse, + KeysResourceWithStreamingResponse, + AsyncKeysResourceWithStreamingResponse, ) from .blobs import ( - Blobs, - AsyncBlobs, - BlobsWithRawResponse, - AsyncBlobsWithRawResponse, - BlobsWithStreamingResponse, - AsyncBlobsWithStreamingResponse, + BlobsResource, + AsyncBlobsResource, + BlobsResourceWithRawResponse, + AsyncBlobsResourceWithRawResponse, + BlobsResourceWithStreamingResponse, + AsyncBlobsResourceWithStreamingResponse, ) from .stats import ( - Stats, - AsyncStats, - StatsWithRawResponse, - AsyncStatsWithRawResponse, - StatsWithStreamingResponse, - AsyncStatsWithStreamingResponse, + StatsResource, + AsyncStatsResource, + StatsResourceWithRawResponse, + AsyncStatsResourceWithRawResponse, + StatsResourceWithStreamingResponse, + AsyncStatsResourceWithStreamingResponse, ) from .variants import ( - Variants, - AsyncVariants, - VariantsWithRawResponse, - AsyncVariantsWithRawResponse, - VariantsWithStreamingResponse, - AsyncVariantsWithStreamingResponse, + VariantsResource, + AsyncVariantsResource, + VariantsResourceWithRawResponse, + AsyncVariantsResourceWithRawResponse, + VariantsResourceWithStreamingResponse, + AsyncVariantsResourceWithStreamingResponse, ) from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven from ...._utils import ( @@ -62,33 +62,33 @@ from ....types.images.v1_list_response import V1ListResponse from ....types.images.v1_delete_response import V1DeleteResponse -__all__ = ["V1", "AsyncV1"] +__all__ = ["V1Resource", "AsyncV1Resource"] -class V1(SyncAPIResource): +class V1Resource(SyncAPIResource): @cached_property - def keys(self) -> Keys: - return Keys(self._client) + def keys(self) -> KeysResource: + return KeysResource(self._client) @cached_property - def stats(self) -> Stats: - return Stats(self._client) + def stats(self) -> StatsResource: + return StatsResource(self._client) @cached_property - def variants(self) -> Variants: - return Variants(self._client) + def variants(self) -> VariantsResource: + return VariantsResource(self._client) @cached_property - def blobs(self) -> Blobs: - return Blobs(self._client) + def blobs(self) -> BlobsResource: + return BlobsResource(self._client) @cached_property - def with_raw_response(self) -> V1WithRawResponse: - return V1WithRawResponse(self) + def with_raw_response(self) -> V1ResourceWithRawResponse: + return V1ResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> V1WithStreamingResponse: - return V1WithStreamingResponse(self) + def with_streaming_response(self) -> V1ResourceWithStreamingResponse: + return V1ResourceWithStreamingResponse(self) def create( self, @@ -368,30 +368,30 @@ def get( ) -class AsyncV1(AsyncAPIResource): +class AsyncV1Resource(AsyncAPIResource): @cached_property - def keys(self) -> AsyncKeys: - return AsyncKeys(self._client) + def keys(self) -> AsyncKeysResource: + return AsyncKeysResource(self._client) @cached_property - def stats(self) -> AsyncStats: - return AsyncStats(self._client) + def stats(self) -> AsyncStatsResource: + return AsyncStatsResource(self._client) @cached_property - def variants(self) -> AsyncVariants: - return AsyncVariants(self._client) + def variants(self) -> AsyncVariantsResource: + return AsyncVariantsResource(self._client) @cached_property - def blobs(self) -> AsyncBlobs: - return AsyncBlobs(self._client) + def blobs(self) -> AsyncBlobsResource: + return AsyncBlobsResource(self._client) @cached_property - def with_raw_response(self) -> AsyncV1WithRawResponse: - return AsyncV1WithRawResponse(self) + def with_raw_response(self) -> AsyncV1ResourceWithRawResponse: + return AsyncV1ResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncV1WithStreamingResponse: - return AsyncV1WithStreamingResponse(self) + def with_streaming_response(self) -> AsyncV1ResourceWithStreamingResponse: + return AsyncV1ResourceWithStreamingResponse(self) async def create( self, @@ -671,8 +671,8 @@ async def get( ) -class V1WithRawResponse: - def __init__(self, v1: V1) -> None: +class V1ResourceWithRawResponse: + def __init__(self, v1: V1Resource) -> None: self._v1 = v1 self.create = to_raw_response_wrapper( @@ -692,24 +692,24 @@ def __init__(self, v1: V1) -> None: ) @cached_property - def keys(self) -> KeysWithRawResponse: - return KeysWithRawResponse(self._v1.keys) + def keys(self) -> KeysResourceWithRawResponse: + return KeysResourceWithRawResponse(self._v1.keys) @cached_property - def stats(self) -> StatsWithRawResponse: - return StatsWithRawResponse(self._v1.stats) + def stats(self) -> StatsResourceWithRawResponse: + return StatsResourceWithRawResponse(self._v1.stats) @cached_property - def variants(self) -> VariantsWithRawResponse: - return VariantsWithRawResponse(self._v1.variants) + def variants(self) -> VariantsResourceWithRawResponse: + return VariantsResourceWithRawResponse(self._v1.variants) @cached_property - def blobs(self) -> BlobsWithRawResponse: - return BlobsWithRawResponse(self._v1.blobs) + def blobs(self) -> BlobsResourceWithRawResponse: + return BlobsResourceWithRawResponse(self._v1.blobs) -class AsyncV1WithRawResponse: - def __init__(self, v1: AsyncV1) -> None: +class AsyncV1ResourceWithRawResponse: + def __init__(self, v1: AsyncV1Resource) -> None: self._v1 = v1 self.create = async_to_raw_response_wrapper( @@ -729,24 +729,24 @@ def __init__(self, v1: AsyncV1) -> None: ) @cached_property - def keys(self) -> AsyncKeysWithRawResponse: - return AsyncKeysWithRawResponse(self._v1.keys) + def keys(self) -> AsyncKeysResourceWithRawResponse: + return AsyncKeysResourceWithRawResponse(self._v1.keys) @cached_property - def stats(self) -> AsyncStatsWithRawResponse: - return AsyncStatsWithRawResponse(self._v1.stats) + def stats(self) -> AsyncStatsResourceWithRawResponse: + return AsyncStatsResourceWithRawResponse(self._v1.stats) @cached_property - def variants(self) -> AsyncVariantsWithRawResponse: - return AsyncVariantsWithRawResponse(self._v1.variants) + def variants(self) -> AsyncVariantsResourceWithRawResponse: + return AsyncVariantsResourceWithRawResponse(self._v1.variants) @cached_property - def blobs(self) -> AsyncBlobsWithRawResponse: - return AsyncBlobsWithRawResponse(self._v1.blobs) + def blobs(self) -> AsyncBlobsResourceWithRawResponse: + return AsyncBlobsResourceWithRawResponse(self._v1.blobs) -class V1WithStreamingResponse: - def __init__(self, v1: V1) -> None: +class V1ResourceWithStreamingResponse: + def __init__(self, v1: V1Resource) -> None: self._v1 = v1 self.create = to_streamed_response_wrapper( @@ -766,24 +766,24 @@ def __init__(self, v1: V1) -> None: ) @cached_property - def keys(self) -> KeysWithStreamingResponse: - return KeysWithStreamingResponse(self._v1.keys) + def keys(self) -> KeysResourceWithStreamingResponse: + return KeysResourceWithStreamingResponse(self._v1.keys) @cached_property - def stats(self) -> StatsWithStreamingResponse: - return StatsWithStreamingResponse(self._v1.stats) + def stats(self) -> StatsResourceWithStreamingResponse: + return StatsResourceWithStreamingResponse(self._v1.stats) @cached_property - def variants(self) -> VariantsWithStreamingResponse: - return VariantsWithStreamingResponse(self._v1.variants) + def variants(self) -> VariantsResourceWithStreamingResponse: + return VariantsResourceWithStreamingResponse(self._v1.variants) @cached_property - def blobs(self) -> BlobsWithStreamingResponse: - return BlobsWithStreamingResponse(self._v1.blobs) + def blobs(self) -> BlobsResourceWithStreamingResponse: + return BlobsResourceWithStreamingResponse(self._v1.blobs) -class AsyncV1WithStreamingResponse: - def __init__(self, v1: AsyncV1) -> None: +class AsyncV1ResourceWithStreamingResponse: + def __init__(self, v1: AsyncV1Resource) -> None: self._v1 = v1 self.create = async_to_streamed_response_wrapper( @@ -803,17 +803,17 @@ def __init__(self, v1: AsyncV1) -> None: ) @cached_property - def keys(self) -> AsyncKeysWithStreamingResponse: - return AsyncKeysWithStreamingResponse(self._v1.keys) + def keys(self) -> AsyncKeysResourceWithStreamingResponse: + return AsyncKeysResourceWithStreamingResponse(self._v1.keys) @cached_property - def stats(self) -> AsyncStatsWithStreamingResponse: - return AsyncStatsWithStreamingResponse(self._v1.stats) + def stats(self) -> AsyncStatsResourceWithStreamingResponse: + return AsyncStatsResourceWithStreamingResponse(self._v1.stats) @cached_property - def variants(self) -> AsyncVariantsWithStreamingResponse: - return AsyncVariantsWithStreamingResponse(self._v1.variants) + def variants(self) -> AsyncVariantsResourceWithStreamingResponse: + return AsyncVariantsResourceWithStreamingResponse(self._v1.variants) @cached_property - def blobs(self) -> AsyncBlobsWithStreamingResponse: - return AsyncBlobsWithStreamingResponse(self._v1.blobs) + def blobs(self) -> AsyncBlobsResourceWithStreamingResponse: + return AsyncBlobsResourceWithStreamingResponse(self._v1.blobs) diff --git a/src/cloudflare/resources/images/v1/variants.py b/src/cloudflare/resources/images/v1/variants.py index dee5e6da519..67656b3cf42 100644 --- a/src/cloudflare/resources/images/v1/variants.py +++ b/src/cloudflare/resources/images/v1/variants.py @@ -30,17 +30,17 @@ from ....types.images.v1.variant_create_response import VariantCreateResponse from ....types.images.v1.variant_delete_response import VariantDeleteResponse -__all__ = ["Variants", "AsyncVariants"] +__all__ = ["VariantsResource", "AsyncVariantsResource"] -class Variants(SyncAPIResource): +class VariantsResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> VariantsWithRawResponse: - return VariantsWithRawResponse(self) + def with_raw_response(self) -> VariantsResourceWithRawResponse: + return VariantsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> VariantsWithStreamingResponse: - return VariantsWithStreamingResponse(self) + def with_streaming_response(self) -> VariantsResourceWithStreamingResponse: + return VariantsResourceWithStreamingResponse(self) def create( self, @@ -284,14 +284,14 @@ def get( ) -class AsyncVariants(AsyncAPIResource): +class AsyncVariantsResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncVariantsWithRawResponse: - return AsyncVariantsWithRawResponse(self) + def with_raw_response(self) -> AsyncVariantsResourceWithRawResponse: + return AsyncVariantsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncVariantsWithStreamingResponse: - return AsyncVariantsWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncVariantsResourceWithStreamingResponse: + return AsyncVariantsResourceWithStreamingResponse(self) async def create( self, @@ -535,8 +535,8 @@ async def get( ) -class VariantsWithRawResponse: - def __init__(self, variants: Variants) -> None: +class VariantsResourceWithRawResponse: + def __init__(self, variants: VariantsResource) -> None: self._variants = variants self.create = to_raw_response_wrapper( @@ -556,8 +556,8 @@ def __init__(self, variants: Variants) -> None: ) -class AsyncVariantsWithRawResponse: - def __init__(self, variants: AsyncVariants) -> None: +class AsyncVariantsResourceWithRawResponse: + def __init__(self, variants: AsyncVariantsResource) -> None: self._variants = variants self.create = async_to_raw_response_wrapper( @@ -577,8 +577,8 @@ def __init__(self, variants: AsyncVariants) -> None: ) -class VariantsWithStreamingResponse: - def __init__(self, variants: Variants) -> None: +class VariantsResourceWithStreamingResponse: + def __init__(self, variants: VariantsResource) -> None: self._variants = variants self.create = to_streamed_response_wrapper( @@ -598,8 +598,8 @@ def __init__(self, variants: Variants) -> None: ) -class AsyncVariantsWithStreamingResponse: - def __init__(self, variants: AsyncVariants) -> None: +class AsyncVariantsResourceWithStreamingResponse: + def __init__(self, variants: AsyncVariantsResource) -> None: self._variants = variants self.create = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/images/v2/__init__.py b/src/cloudflare/resources/images/v2/__init__.py index 67e075c4706..aa1ac470432 100644 --- a/src/cloudflare/resources/images/v2/__init__.py +++ b/src/cloudflare/resources/images/v2/__init__.py @@ -1,33 +1,33 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from .v2 import ( - V2, - AsyncV2, - V2WithRawResponse, - AsyncV2WithRawResponse, - V2WithStreamingResponse, - AsyncV2WithStreamingResponse, + V2Resource, + AsyncV2Resource, + V2ResourceWithRawResponse, + AsyncV2ResourceWithRawResponse, + V2ResourceWithStreamingResponse, + AsyncV2ResourceWithStreamingResponse, ) from .direct_uploads import ( - DirectUploads, - AsyncDirectUploads, - DirectUploadsWithRawResponse, - AsyncDirectUploadsWithRawResponse, - DirectUploadsWithStreamingResponse, - AsyncDirectUploadsWithStreamingResponse, + DirectUploadsResource, + AsyncDirectUploadsResource, + DirectUploadsResourceWithRawResponse, + AsyncDirectUploadsResourceWithRawResponse, + DirectUploadsResourceWithStreamingResponse, + AsyncDirectUploadsResourceWithStreamingResponse, ) __all__ = [ - "DirectUploads", - "AsyncDirectUploads", - "DirectUploadsWithRawResponse", - "AsyncDirectUploadsWithRawResponse", - "DirectUploadsWithStreamingResponse", - "AsyncDirectUploadsWithStreamingResponse", - "V2", - "AsyncV2", - "V2WithRawResponse", - "AsyncV2WithRawResponse", - "V2WithStreamingResponse", - "AsyncV2WithStreamingResponse", + "DirectUploadsResource", + "AsyncDirectUploadsResource", + "DirectUploadsResourceWithRawResponse", + "AsyncDirectUploadsResourceWithRawResponse", + "DirectUploadsResourceWithStreamingResponse", + "AsyncDirectUploadsResourceWithStreamingResponse", + "V2Resource", + "AsyncV2Resource", + "V2ResourceWithRawResponse", + "AsyncV2ResourceWithRawResponse", + "V2ResourceWithStreamingResponse", + "AsyncV2ResourceWithStreamingResponse", ] diff --git a/src/cloudflare/resources/images/v2/direct_uploads.py b/src/cloudflare/resources/images/v2/direct_uploads.py index d448cd4093f..3c66318e9f2 100644 --- a/src/cloudflare/resources/images/v2/direct_uploads.py +++ b/src/cloudflare/resources/images/v2/direct_uploads.py @@ -27,17 +27,17 @@ from ....types.images.v2 import direct_upload_create_params from ....types.images.v2.direct_upload_create_response import DirectUploadCreateResponse -__all__ = ["DirectUploads", "AsyncDirectUploads"] +__all__ = ["DirectUploadsResource", "AsyncDirectUploadsResource"] -class DirectUploads(SyncAPIResource): +class DirectUploadsResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> DirectUploadsWithRawResponse: - return DirectUploadsWithRawResponse(self) + def with_raw_response(self) -> DirectUploadsResourceWithRawResponse: + return DirectUploadsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> DirectUploadsWithStreamingResponse: - return DirectUploadsWithStreamingResponse(self) + def with_streaming_response(self) -> DirectUploadsResourceWithStreamingResponse: + return DirectUploadsResourceWithStreamingResponse(self) def create( self, @@ -111,14 +111,14 @@ def create( ) -class AsyncDirectUploads(AsyncAPIResource): +class AsyncDirectUploadsResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncDirectUploadsWithRawResponse: - return AsyncDirectUploadsWithRawResponse(self) + def with_raw_response(self) -> AsyncDirectUploadsResourceWithRawResponse: + return AsyncDirectUploadsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncDirectUploadsWithStreamingResponse: - return AsyncDirectUploadsWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncDirectUploadsResourceWithStreamingResponse: + return AsyncDirectUploadsResourceWithStreamingResponse(self) async def create( self, @@ -192,8 +192,8 @@ async def create( ) -class DirectUploadsWithRawResponse: - def __init__(self, direct_uploads: DirectUploads) -> None: +class DirectUploadsResourceWithRawResponse: + def __init__(self, direct_uploads: DirectUploadsResource) -> None: self._direct_uploads = direct_uploads self.create = to_raw_response_wrapper( @@ -201,8 +201,8 @@ def __init__(self, direct_uploads: DirectUploads) -> None: ) -class AsyncDirectUploadsWithRawResponse: - def __init__(self, direct_uploads: AsyncDirectUploads) -> None: +class AsyncDirectUploadsResourceWithRawResponse: + def __init__(self, direct_uploads: AsyncDirectUploadsResource) -> None: self._direct_uploads = direct_uploads self.create = async_to_raw_response_wrapper( @@ -210,8 +210,8 @@ def __init__(self, direct_uploads: AsyncDirectUploads) -> None: ) -class DirectUploadsWithStreamingResponse: - def __init__(self, direct_uploads: DirectUploads) -> None: +class DirectUploadsResourceWithStreamingResponse: + def __init__(self, direct_uploads: DirectUploadsResource) -> None: self._direct_uploads = direct_uploads self.create = to_streamed_response_wrapper( @@ -219,8 +219,8 @@ def __init__(self, direct_uploads: DirectUploads) -> None: ) -class AsyncDirectUploadsWithStreamingResponse: - def __init__(self, direct_uploads: AsyncDirectUploads) -> None: +class AsyncDirectUploadsResourceWithStreamingResponse: + def __init__(self, direct_uploads: AsyncDirectUploadsResource) -> None: self._direct_uploads = direct_uploads self.create = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/images/v2/v2.py b/src/cloudflare/resources/images/v2/v2.py index e0991e27583..b683506e828 100644 --- a/src/cloudflare/resources/images/v2/v2.py +++ b/src/cloudflare/resources/images/v2/v2.py @@ -22,12 +22,12 @@ ) from ...._wrappers import ResultWrapper from .direct_uploads import ( - DirectUploads, - AsyncDirectUploads, - DirectUploadsWithRawResponse, - AsyncDirectUploadsWithRawResponse, - DirectUploadsWithStreamingResponse, - AsyncDirectUploadsWithStreamingResponse, + DirectUploadsResource, + AsyncDirectUploadsResource, + DirectUploadsResourceWithRawResponse, + AsyncDirectUploadsResourceWithRawResponse, + DirectUploadsResourceWithStreamingResponse, + AsyncDirectUploadsResourceWithStreamingResponse, ) from ...._base_client import ( make_request_options, @@ -35,21 +35,21 @@ from ....types.images import v2_list_params from ....types.images.v2_list_response import V2ListResponse -__all__ = ["V2", "AsyncV2"] +__all__ = ["V2Resource", "AsyncV2Resource"] -class V2(SyncAPIResource): +class V2Resource(SyncAPIResource): @cached_property - def direct_uploads(self) -> DirectUploads: - return DirectUploads(self._client) + def direct_uploads(self) -> DirectUploadsResource: + return DirectUploadsResource(self._client) @cached_property - def with_raw_response(self) -> V2WithRawResponse: - return V2WithRawResponse(self) + def with_raw_response(self) -> V2ResourceWithRawResponse: + return V2ResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> V2WithStreamingResponse: - return V2WithStreamingResponse(self) + def with_streaming_response(self) -> V2ResourceWithStreamingResponse: + return V2ResourceWithStreamingResponse(self) def list( self, @@ -111,18 +111,18 @@ def list( ) -class AsyncV2(AsyncAPIResource): +class AsyncV2Resource(AsyncAPIResource): @cached_property - def direct_uploads(self) -> AsyncDirectUploads: - return AsyncDirectUploads(self._client) + def direct_uploads(self) -> AsyncDirectUploadsResource: + return AsyncDirectUploadsResource(self._client) @cached_property - def with_raw_response(self) -> AsyncV2WithRawResponse: - return AsyncV2WithRawResponse(self) + def with_raw_response(self) -> AsyncV2ResourceWithRawResponse: + return AsyncV2ResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncV2WithStreamingResponse: - return AsyncV2WithStreamingResponse(self) + def with_streaming_response(self) -> AsyncV2ResourceWithStreamingResponse: + return AsyncV2ResourceWithStreamingResponse(self) async def list( self, @@ -184,8 +184,8 @@ async def list( ) -class V2WithRawResponse: - def __init__(self, v2: V2) -> None: +class V2ResourceWithRawResponse: + def __init__(self, v2: V2Resource) -> None: self._v2 = v2 self.list = to_raw_response_wrapper( @@ -193,12 +193,12 @@ def __init__(self, v2: V2) -> None: ) @cached_property - def direct_uploads(self) -> DirectUploadsWithRawResponse: - return DirectUploadsWithRawResponse(self._v2.direct_uploads) + def direct_uploads(self) -> DirectUploadsResourceWithRawResponse: + return DirectUploadsResourceWithRawResponse(self._v2.direct_uploads) -class AsyncV2WithRawResponse: - def __init__(self, v2: AsyncV2) -> None: +class AsyncV2ResourceWithRawResponse: + def __init__(self, v2: AsyncV2Resource) -> None: self._v2 = v2 self.list = async_to_raw_response_wrapper( @@ -206,12 +206,12 @@ def __init__(self, v2: AsyncV2) -> None: ) @cached_property - def direct_uploads(self) -> AsyncDirectUploadsWithRawResponse: - return AsyncDirectUploadsWithRawResponse(self._v2.direct_uploads) + def direct_uploads(self) -> AsyncDirectUploadsResourceWithRawResponse: + return AsyncDirectUploadsResourceWithRawResponse(self._v2.direct_uploads) -class V2WithStreamingResponse: - def __init__(self, v2: V2) -> None: +class V2ResourceWithStreamingResponse: + def __init__(self, v2: V2Resource) -> None: self._v2 = v2 self.list = to_streamed_response_wrapper( @@ -219,12 +219,12 @@ def __init__(self, v2: V2) -> None: ) @cached_property - def direct_uploads(self) -> DirectUploadsWithStreamingResponse: - return DirectUploadsWithStreamingResponse(self._v2.direct_uploads) + def direct_uploads(self) -> DirectUploadsResourceWithStreamingResponse: + return DirectUploadsResourceWithStreamingResponse(self._v2.direct_uploads) -class AsyncV2WithStreamingResponse: - def __init__(self, v2: AsyncV2) -> None: +class AsyncV2ResourceWithStreamingResponse: + def __init__(self, v2: AsyncV2Resource) -> None: self._v2 = v2 self.list = async_to_streamed_response_wrapper( @@ -232,5 +232,5 @@ def __init__(self, v2: AsyncV2) -> None: ) @cached_property - def direct_uploads(self) -> AsyncDirectUploadsWithStreamingResponse: - return AsyncDirectUploadsWithStreamingResponse(self._v2.direct_uploads) + def direct_uploads(self) -> AsyncDirectUploadsResourceWithStreamingResponse: + return AsyncDirectUploadsResourceWithStreamingResponse(self._v2.direct_uploads) diff --git a/src/cloudflare/resources/intel/__init__.py b/src/cloudflare/resources/intel/__init__.py index 4b66b0e2062..126ee686dad 100644 --- a/src/cloudflare/resources/intel/__init__.py +++ b/src/cloudflare/resources/intel/__init__.py @@ -1,68 +1,68 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from .asn import ( - ASN, - AsyncASN, - ASNWithRawResponse, - AsyncASNWithRawResponse, - ASNWithStreamingResponse, - AsyncASNWithStreamingResponse, + ASNResource, + AsyncASNResource, + ASNResourceWithRawResponse, + AsyncASNResourceWithRawResponse, + ASNResourceWithStreamingResponse, + AsyncASNResourceWithStreamingResponse, ) from .dns import ( - DNS, - AsyncDNS, - DNSWithRawResponse, - AsyncDNSWithRawResponse, - DNSWithStreamingResponse, - AsyncDNSWithStreamingResponse, + DNSResource, + AsyncDNSResource, + DNSResourceWithRawResponse, + AsyncDNSResourceWithRawResponse, + DNSResourceWithStreamingResponse, + AsyncDNSResourceWithStreamingResponse, ) from .ips import ( - IPs, - AsyncIPs, - IPsWithRawResponse, - AsyncIPsWithRawResponse, - IPsWithStreamingResponse, - AsyncIPsWithStreamingResponse, + IPsResource, + AsyncIPsResource, + IPsResourceWithRawResponse, + AsyncIPsResourceWithRawResponse, + IPsResourceWithStreamingResponse, + AsyncIPsResourceWithStreamingResponse, ) from .intel import ( - Intel, - AsyncIntel, - IntelWithRawResponse, - AsyncIntelWithRawResponse, - IntelWithStreamingResponse, - AsyncIntelWithStreamingResponse, + IntelResource, + AsyncIntelResource, + IntelResourceWithRawResponse, + AsyncIntelResourceWithRawResponse, + IntelResourceWithStreamingResponse, + AsyncIntelResourceWithStreamingResponse, ) from .whois import ( - Whois, - AsyncWhois, - WhoisWithRawResponse, - AsyncWhoisWithRawResponse, - WhoisWithStreamingResponse, - AsyncWhoisWithStreamingResponse, + WhoisResource, + AsyncWhoisResource, + WhoisResourceWithRawResponse, + AsyncWhoisResourceWithRawResponse, + WhoisResourceWithStreamingResponse, + AsyncWhoisResourceWithStreamingResponse, ) from .domains import ( - Domains, - AsyncDomains, - DomainsWithRawResponse, - AsyncDomainsWithRawResponse, - DomainsWithStreamingResponse, - AsyncDomainsWithStreamingResponse, + DomainsResource, + AsyncDomainsResource, + DomainsResourceWithRawResponse, + AsyncDomainsResourceWithRawResponse, + DomainsResourceWithStreamingResponse, + AsyncDomainsResourceWithStreamingResponse, ) from .ip_lists import ( - IPLists, - AsyncIPLists, - IPListsWithRawResponse, - AsyncIPListsWithRawResponse, - IPListsWithStreamingResponse, - AsyncIPListsWithStreamingResponse, + IPListsResource, + AsyncIPListsResource, + IPListsResourceWithRawResponse, + AsyncIPListsResourceWithRawResponse, + IPListsResourceWithStreamingResponse, + AsyncIPListsResourceWithStreamingResponse, ) from .sinkholes import ( - Sinkholes, - AsyncSinkholes, - SinkholesWithRawResponse, - AsyncSinkholesWithRawResponse, - SinkholesWithStreamingResponse, - AsyncSinkholesWithStreamingResponse, + SinkholesResource, + AsyncSinkholesResource, + SinkholesResourceWithRawResponse, + AsyncSinkholesResourceWithRawResponse, + SinkholesResourceWithStreamingResponse, + AsyncSinkholesResourceWithStreamingResponse, ) from .domain_history import ( DomainHistoryResource, @@ -73,101 +73,101 @@ AsyncDomainHistoryResourceWithStreamingResponse, ) from .indicator_feeds import ( - IndicatorFeeds, - AsyncIndicatorFeeds, - IndicatorFeedsWithRawResponse, - AsyncIndicatorFeedsWithRawResponse, - IndicatorFeedsWithStreamingResponse, - AsyncIndicatorFeedsWithStreamingResponse, + IndicatorFeedsResource, + AsyncIndicatorFeedsResource, + IndicatorFeedsResourceWithRawResponse, + AsyncIndicatorFeedsResourceWithRawResponse, + IndicatorFeedsResourceWithStreamingResponse, + AsyncIndicatorFeedsResourceWithStreamingResponse, ) from .miscategorizations import ( - Miscategorizations, - AsyncMiscategorizations, - MiscategorizationsWithRawResponse, - AsyncMiscategorizationsWithRawResponse, - MiscategorizationsWithStreamingResponse, - AsyncMiscategorizationsWithStreamingResponse, + MiscategorizationsResource, + AsyncMiscategorizationsResource, + MiscategorizationsResourceWithRawResponse, + AsyncMiscategorizationsResourceWithRawResponse, + MiscategorizationsResourceWithStreamingResponse, + AsyncMiscategorizationsResourceWithStreamingResponse, ) from .attack_surface_report import ( - AttackSurfaceReport, - AsyncAttackSurfaceReport, - AttackSurfaceReportWithRawResponse, - AsyncAttackSurfaceReportWithRawResponse, - AttackSurfaceReportWithStreamingResponse, - AsyncAttackSurfaceReportWithStreamingResponse, + AttackSurfaceReportResource, + AsyncAttackSurfaceReportResource, + AttackSurfaceReportResourceWithRawResponse, + AsyncAttackSurfaceReportResourceWithRawResponse, + AttackSurfaceReportResourceWithStreamingResponse, + AsyncAttackSurfaceReportResourceWithStreamingResponse, ) __all__ = [ - "ASN", - "AsyncASN", - "ASNWithRawResponse", - "AsyncASNWithRawResponse", - "ASNWithStreamingResponse", - "AsyncASNWithStreamingResponse", - "DNS", - "AsyncDNS", - "DNSWithRawResponse", - "AsyncDNSWithRawResponse", - "DNSWithStreamingResponse", - "AsyncDNSWithStreamingResponse", - "Domains", - "AsyncDomains", - "DomainsWithRawResponse", - "AsyncDomainsWithRawResponse", - "DomainsWithStreamingResponse", - "AsyncDomainsWithStreamingResponse", + "ASNResource", + "AsyncASNResource", + "ASNResourceWithRawResponse", + "AsyncASNResourceWithRawResponse", + "ASNResourceWithStreamingResponse", + "AsyncASNResourceWithStreamingResponse", + "DNSResource", + "AsyncDNSResource", + "DNSResourceWithRawResponse", + "AsyncDNSResourceWithRawResponse", + "DNSResourceWithStreamingResponse", + "AsyncDNSResourceWithStreamingResponse", + "DomainsResource", + "AsyncDomainsResource", + "DomainsResourceWithRawResponse", + "AsyncDomainsResourceWithRawResponse", + "DomainsResourceWithStreamingResponse", + "AsyncDomainsResourceWithStreamingResponse", "DomainHistoryResource", "AsyncDomainHistoryResource", "DomainHistoryResourceWithRawResponse", "AsyncDomainHistoryResourceWithRawResponse", "DomainHistoryResourceWithStreamingResponse", "AsyncDomainHistoryResourceWithStreamingResponse", - "IPs", - "AsyncIPs", - "IPsWithRawResponse", - "AsyncIPsWithRawResponse", - "IPsWithStreamingResponse", - "AsyncIPsWithStreamingResponse", - "IPLists", - "AsyncIPLists", - "IPListsWithRawResponse", - "AsyncIPListsWithRawResponse", - "IPListsWithStreamingResponse", - "AsyncIPListsWithStreamingResponse", - "Miscategorizations", - "AsyncMiscategorizations", - "MiscategorizationsWithRawResponse", - "AsyncMiscategorizationsWithRawResponse", - "MiscategorizationsWithStreamingResponse", - "AsyncMiscategorizationsWithStreamingResponse", - "Whois", - "AsyncWhois", - "WhoisWithRawResponse", - "AsyncWhoisWithRawResponse", - "WhoisWithStreamingResponse", - "AsyncWhoisWithStreamingResponse", - "IndicatorFeeds", - "AsyncIndicatorFeeds", - "IndicatorFeedsWithRawResponse", - "AsyncIndicatorFeedsWithRawResponse", - "IndicatorFeedsWithStreamingResponse", - "AsyncIndicatorFeedsWithStreamingResponse", - "Sinkholes", - "AsyncSinkholes", - "SinkholesWithRawResponse", - "AsyncSinkholesWithRawResponse", - "SinkholesWithStreamingResponse", - "AsyncSinkholesWithStreamingResponse", - "AttackSurfaceReport", - "AsyncAttackSurfaceReport", - "AttackSurfaceReportWithRawResponse", - "AsyncAttackSurfaceReportWithRawResponse", - "AttackSurfaceReportWithStreamingResponse", - "AsyncAttackSurfaceReportWithStreamingResponse", - "Intel", - "AsyncIntel", - "IntelWithRawResponse", - "AsyncIntelWithRawResponse", - "IntelWithStreamingResponse", - "AsyncIntelWithStreamingResponse", + "IPsResource", + "AsyncIPsResource", + "IPsResourceWithRawResponse", + "AsyncIPsResourceWithRawResponse", + "IPsResourceWithStreamingResponse", + "AsyncIPsResourceWithStreamingResponse", + "IPListsResource", + "AsyncIPListsResource", + "IPListsResourceWithRawResponse", + "AsyncIPListsResourceWithRawResponse", + "IPListsResourceWithStreamingResponse", + "AsyncIPListsResourceWithStreamingResponse", + "MiscategorizationsResource", + "AsyncMiscategorizationsResource", + "MiscategorizationsResourceWithRawResponse", + "AsyncMiscategorizationsResourceWithRawResponse", + "MiscategorizationsResourceWithStreamingResponse", + "AsyncMiscategorizationsResourceWithStreamingResponse", + "WhoisResource", + "AsyncWhoisResource", + "WhoisResourceWithRawResponse", + "AsyncWhoisResourceWithRawResponse", + "WhoisResourceWithStreamingResponse", + "AsyncWhoisResourceWithStreamingResponse", + "IndicatorFeedsResource", + "AsyncIndicatorFeedsResource", + "IndicatorFeedsResourceWithRawResponse", + "AsyncIndicatorFeedsResourceWithRawResponse", + "IndicatorFeedsResourceWithStreamingResponse", + "AsyncIndicatorFeedsResourceWithStreamingResponse", + "SinkholesResource", + "AsyncSinkholesResource", + "SinkholesResourceWithRawResponse", + "AsyncSinkholesResourceWithRawResponse", + "SinkholesResourceWithStreamingResponse", + "AsyncSinkholesResourceWithStreamingResponse", + "AttackSurfaceReportResource", + "AsyncAttackSurfaceReportResource", + "AttackSurfaceReportResourceWithRawResponse", + "AsyncAttackSurfaceReportResourceWithRawResponse", + "AttackSurfaceReportResourceWithStreamingResponse", + "AsyncAttackSurfaceReportResourceWithStreamingResponse", + "IntelResource", + "AsyncIntelResource", + "IntelResourceWithRawResponse", + "AsyncIntelResourceWithRawResponse", + "IntelResourceWithStreamingResponse", + "AsyncIntelResourceWithStreamingResponse", ] diff --git a/src/cloudflare/resources/intel/asn/__init__.py b/src/cloudflare/resources/intel/asn/__init__.py index 3992bce51a8..9136f2a9e64 100644 --- a/src/cloudflare/resources/intel/asn/__init__.py +++ b/src/cloudflare/resources/intel/asn/__init__.py @@ -1,33 +1,33 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from .asn import ( - ASN, - AsyncASN, - ASNWithRawResponse, - AsyncASNWithRawResponse, - ASNWithStreamingResponse, - AsyncASNWithStreamingResponse, + ASNResource, + AsyncASNResource, + ASNResourceWithRawResponse, + AsyncASNResourceWithRawResponse, + ASNResourceWithStreamingResponse, + AsyncASNResourceWithStreamingResponse, ) from .subnets import ( - Subnets, - AsyncSubnets, - SubnetsWithRawResponse, - AsyncSubnetsWithRawResponse, - SubnetsWithStreamingResponse, - AsyncSubnetsWithStreamingResponse, + SubnetsResource, + AsyncSubnetsResource, + SubnetsResourceWithRawResponse, + AsyncSubnetsResourceWithRawResponse, + SubnetsResourceWithStreamingResponse, + AsyncSubnetsResourceWithStreamingResponse, ) __all__ = [ - "Subnets", - "AsyncSubnets", - "SubnetsWithRawResponse", - "AsyncSubnetsWithRawResponse", - "SubnetsWithStreamingResponse", - "AsyncSubnetsWithStreamingResponse", - "ASN", - "AsyncASN", - "ASNWithRawResponse", - "AsyncASNWithRawResponse", - "ASNWithStreamingResponse", - "AsyncASNWithStreamingResponse", + "SubnetsResource", + "AsyncSubnetsResource", + "SubnetsResourceWithRawResponse", + "AsyncSubnetsResourceWithRawResponse", + "SubnetsResourceWithStreamingResponse", + "AsyncSubnetsResourceWithStreamingResponse", + "ASNResource", + "AsyncASNResource", + "ASNResourceWithRawResponse", + "AsyncASNResourceWithRawResponse", + "ASNResourceWithStreamingResponse", + "AsyncASNResourceWithStreamingResponse", ] diff --git a/src/cloudflare/resources/intel/asn/asn.py b/src/cloudflare/resources/intel/asn/asn.py index ec259436a4e..2c721f038ed 100644 --- a/src/cloudflare/resources/intel/asn/asn.py +++ b/src/cloudflare/resources/intel/asn/asn.py @@ -7,12 +7,12 @@ import httpx from .subnets import ( - Subnets, - AsyncSubnets, - SubnetsWithRawResponse, - AsyncSubnetsWithRawResponse, - SubnetsWithStreamingResponse, - AsyncSubnetsWithStreamingResponse, + SubnetsResource, + AsyncSubnetsResource, + SubnetsResourceWithRawResponse, + AsyncSubnetsResourceWithRawResponse, + SubnetsResourceWithStreamingResponse, + AsyncSubnetsResourceWithStreamingResponse, ) from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven from ...._compat import cached_property @@ -27,27 +27,27 @@ from ...._base_client import ( make_request_options, ) -from ....types.shared import asn +from ....types.shared.asn import ASN -__all__ = ["ASN", "AsyncASN"] +__all__ = ["ASNResource", "AsyncASNResource"] -class ASN(SyncAPIResource): +class ASNResource(SyncAPIResource): @cached_property - def subnets(self) -> Subnets: - return Subnets(self._client) + def subnets(self) -> SubnetsResource: + return SubnetsResource(self._client) @cached_property - def with_raw_response(self) -> ASNWithRawResponse: - return ASNWithRawResponse(self) + def with_raw_response(self) -> ASNResourceWithRawResponse: + return ASNResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> ASNWithStreamingResponse: - return ASNWithStreamingResponse(self) + def with_streaming_response(self) -> ASNResourceWithStreamingResponse: + return ASNResourceWithStreamingResponse(self) def get( self, - asn: asn.ASN, + asn: ASN, *, account_id: str, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. @@ -56,7 +56,7 @@ def get( extra_query: Query | None = None, extra_body: Body | None = None, timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, - ) -> asn.ASN: + ) -> ASN: """ Get ASN Overview @@ -80,28 +80,28 @@ def get( extra_query=extra_query, extra_body=extra_body, timeout=timeout, - post_parser=ResultWrapper[asn.ASN]._unwrapper, + post_parser=ResultWrapper[ASN]._unwrapper, ), - cast_to=cast(Type[asn.ASN], ResultWrapper[int]), + cast_to=cast(Type[ASN], ResultWrapper[int]), ) -class AsyncASN(AsyncAPIResource): +class AsyncASNResource(AsyncAPIResource): @cached_property - def subnets(self) -> AsyncSubnets: - return AsyncSubnets(self._client) + def subnets(self) -> AsyncSubnetsResource: + return AsyncSubnetsResource(self._client) @cached_property - def with_raw_response(self) -> AsyncASNWithRawResponse: - return AsyncASNWithRawResponse(self) + def with_raw_response(self) -> AsyncASNResourceWithRawResponse: + return AsyncASNResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncASNWithStreamingResponse: - return AsyncASNWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncASNResourceWithStreamingResponse: + return AsyncASNResourceWithStreamingResponse(self) async def get( self, - asn: asn.ASN, + asn: ASN, *, account_id: str, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. @@ -110,7 +110,7 @@ async def get( extra_query: Query | None = None, extra_body: Body | None = None, timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, - ) -> asn.ASN: + ) -> ASN: """ Get ASN Overview @@ -134,14 +134,14 @@ async def get( extra_query=extra_query, extra_body=extra_body, timeout=timeout, - post_parser=ResultWrapper[asn.ASN]._unwrapper, + post_parser=ResultWrapper[ASN]._unwrapper, ), - cast_to=cast(Type[asn.ASN], ResultWrapper[int]), + cast_to=cast(Type[ASN], ResultWrapper[int]), ) -class ASNWithRawResponse: - def __init__(self, asn: ASN) -> None: +class ASNResourceWithRawResponse: + def __init__(self, asn: ASNResource) -> None: self._asn = asn self.get = to_raw_response_wrapper( @@ -149,12 +149,12 @@ def __init__(self, asn: ASN) -> None: ) @cached_property - def subnets(self) -> SubnetsWithRawResponse: - return SubnetsWithRawResponse(self._asn.subnets) + def subnets(self) -> SubnetsResourceWithRawResponse: + return SubnetsResourceWithRawResponse(self._asn.subnets) -class AsyncASNWithRawResponse: - def __init__(self, asn: AsyncASN) -> None: +class AsyncASNResourceWithRawResponse: + def __init__(self, asn: AsyncASNResource) -> None: self._asn = asn self.get = async_to_raw_response_wrapper( @@ -162,12 +162,12 @@ def __init__(self, asn: AsyncASN) -> None: ) @cached_property - def subnets(self) -> AsyncSubnetsWithRawResponse: - return AsyncSubnetsWithRawResponse(self._asn.subnets) + def subnets(self) -> AsyncSubnetsResourceWithRawResponse: + return AsyncSubnetsResourceWithRawResponse(self._asn.subnets) -class ASNWithStreamingResponse: - def __init__(self, asn: ASN) -> None: +class ASNResourceWithStreamingResponse: + def __init__(self, asn: ASNResource) -> None: self._asn = asn self.get = to_streamed_response_wrapper( @@ -175,12 +175,12 @@ def __init__(self, asn: ASN) -> None: ) @cached_property - def subnets(self) -> SubnetsWithStreamingResponse: - return SubnetsWithStreamingResponse(self._asn.subnets) + def subnets(self) -> SubnetsResourceWithStreamingResponse: + return SubnetsResourceWithStreamingResponse(self._asn.subnets) -class AsyncASNWithStreamingResponse: - def __init__(self, asn: AsyncASN) -> None: +class AsyncASNResourceWithStreamingResponse: + def __init__(self, asn: AsyncASNResource) -> None: self._asn = asn self.get = async_to_streamed_response_wrapper( @@ -188,5 +188,5 @@ def __init__(self, asn: AsyncASN) -> None: ) @cached_property - def subnets(self) -> AsyncSubnetsWithStreamingResponse: - return AsyncSubnetsWithStreamingResponse(self._asn.subnets) + def subnets(self) -> AsyncSubnetsResourceWithStreamingResponse: + return AsyncSubnetsResourceWithStreamingResponse(self._asn.subnets) diff --git a/src/cloudflare/resources/intel/asn/subnets.py b/src/cloudflare/resources/intel/asn/subnets.py index d3f5f2c406b..20fc57dcf63 100644 --- a/src/cloudflare/resources/intel/asn/subnets.py +++ b/src/cloudflare/resources/intel/asn/subnets.py @@ -19,17 +19,17 @@ from ....types.shared.asn import ASN from ....types.intel.asn.subnet_get_response import SubnetGetResponse -__all__ = ["Subnets", "AsyncSubnets"] +__all__ = ["SubnetsResource", "AsyncSubnetsResource"] -class Subnets(SyncAPIResource): +class SubnetsResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> SubnetsWithRawResponse: - return SubnetsWithRawResponse(self) + def with_raw_response(self) -> SubnetsResourceWithRawResponse: + return SubnetsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> SubnetsWithStreamingResponse: - return SubnetsWithStreamingResponse(self) + def with_streaming_response(self) -> SubnetsResourceWithStreamingResponse: + return SubnetsResourceWithStreamingResponse(self) def get( self, @@ -68,14 +68,14 @@ def get( ) -class AsyncSubnets(AsyncAPIResource): +class AsyncSubnetsResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncSubnetsWithRawResponse: - return AsyncSubnetsWithRawResponse(self) + def with_raw_response(self) -> AsyncSubnetsResourceWithRawResponse: + return AsyncSubnetsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncSubnetsWithStreamingResponse: - return AsyncSubnetsWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncSubnetsResourceWithStreamingResponse: + return AsyncSubnetsResourceWithStreamingResponse(self) async def get( self, @@ -114,8 +114,8 @@ async def get( ) -class SubnetsWithRawResponse: - def __init__(self, subnets: Subnets) -> None: +class SubnetsResourceWithRawResponse: + def __init__(self, subnets: SubnetsResource) -> None: self._subnets = subnets self.get = to_raw_response_wrapper( @@ -123,8 +123,8 @@ def __init__(self, subnets: Subnets) -> None: ) -class AsyncSubnetsWithRawResponse: - def __init__(self, subnets: AsyncSubnets) -> None: +class AsyncSubnetsResourceWithRawResponse: + def __init__(self, subnets: AsyncSubnetsResource) -> None: self._subnets = subnets self.get = async_to_raw_response_wrapper( @@ -132,8 +132,8 @@ def __init__(self, subnets: AsyncSubnets) -> None: ) -class SubnetsWithStreamingResponse: - def __init__(self, subnets: Subnets) -> None: +class SubnetsResourceWithStreamingResponse: + def __init__(self, subnets: SubnetsResource) -> None: self._subnets = subnets self.get = to_streamed_response_wrapper( @@ -141,8 +141,8 @@ def __init__(self, subnets: Subnets) -> None: ) -class AsyncSubnetsWithStreamingResponse: - def __init__(self, subnets: AsyncSubnets) -> None: +class AsyncSubnetsResourceWithStreamingResponse: + def __init__(self, subnets: AsyncSubnetsResource) -> None: self._subnets = subnets self.get = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/intel/attack_surface_report/__init__.py b/src/cloudflare/resources/intel/attack_surface_report/__init__.py index 8591604d6f0..2ea1be53563 100644 --- a/src/cloudflare/resources/intel/attack_surface_report/__init__.py +++ b/src/cloudflare/resources/intel/attack_surface_report/__init__.py @@ -1,47 +1,47 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from .issues import ( - Issues, - AsyncIssues, - IssuesWithRawResponse, - AsyncIssuesWithRawResponse, - IssuesWithStreamingResponse, - AsyncIssuesWithStreamingResponse, + IssuesResource, + AsyncIssuesResource, + IssuesResourceWithRawResponse, + AsyncIssuesResourceWithRawResponse, + IssuesResourceWithStreamingResponse, + AsyncIssuesResourceWithStreamingResponse, ) from .issue_types import ( - IssueTypes, - AsyncIssueTypes, - IssueTypesWithRawResponse, - AsyncIssueTypesWithRawResponse, - IssueTypesWithStreamingResponse, - AsyncIssueTypesWithStreamingResponse, + IssueTypesResource, + AsyncIssueTypesResource, + IssueTypesResourceWithRawResponse, + AsyncIssueTypesResourceWithRawResponse, + IssueTypesResourceWithStreamingResponse, + AsyncIssueTypesResourceWithStreamingResponse, ) from .attack_surface_report import ( - AttackSurfaceReport, - AsyncAttackSurfaceReport, - AttackSurfaceReportWithRawResponse, - AsyncAttackSurfaceReportWithRawResponse, - AttackSurfaceReportWithStreamingResponse, - AsyncAttackSurfaceReportWithStreamingResponse, + AttackSurfaceReportResource, + AsyncAttackSurfaceReportResource, + AttackSurfaceReportResourceWithRawResponse, + AsyncAttackSurfaceReportResourceWithRawResponse, + AttackSurfaceReportResourceWithStreamingResponse, + AsyncAttackSurfaceReportResourceWithStreamingResponse, ) __all__ = [ - "IssueTypes", - "AsyncIssueTypes", - "IssueTypesWithRawResponse", - "AsyncIssueTypesWithRawResponse", - "IssueTypesWithStreamingResponse", - "AsyncIssueTypesWithStreamingResponse", - "Issues", - "AsyncIssues", - "IssuesWithRawResponse", - "AsyncIssuesWithRawResponse", - "IssuesWithStreamingResponse", - "AsyncIssuesWithStreamingResponse", - "AttackSurfaceReport", - "AsyncAttackSurfaceReport", - "AttackSurfaceReportWithRawResponse", - "AsyncAttackSurfaceReportWithRawResponse", - "AttackSurfaceReportWithStreamingResponse", - "AsyncAttackSurfaceReportWithStreamingResponse", + "IssueTypesResource", + "AsyncIssueTypesResource", + "IssueTypesResourceWithRawResponse", + "AsyncIssueTypesResourceWithRawResponse", + "IssueTypesResourceWithStreamingResponse", + "AsyncIssueTypesResourceWithStreamingResponse", + "IssuesResource", + "AsyncIssuesResource", + "IssuesResourceWithRawResponse", + "AsyncIssuesResourceWithRawResponse", + "IssuesResourceWithStreamingResponse", + "AsyncIssuesResourceWithStreamingResponse", + "AttackSurfaceReportResource", + "AsyncAttackSurfaceReportResource", + "AttackSurfaceReportResourceWithRawResponse", + "AsyncAttackSurfaceReportResourceWithRawResponse", + "AttackSurfaceReportResourceWithStreamingResponse", + "AsyncAttackSurfaceReportResourceWithStreamingResponse", ] diff --git a/src/cloudflare/resources/intel/attack_surface_report/attack_surface_report.py b/src/cloudflare/resources/intel/attack_surface_report/attack_surface_report.py index b2eb4d0b843..0cb2fabd7b1 100644 --- a/src/cloudflare/resources/intel/attack_surface_report/attack_surface_report.py +++ b/src/cloudflare/resources/intel/attack_surface_report/attack_surface_report.py @@ -3,110 +3,110 @@ from __future__ import annotations from .issues import ( - Issues, - AsyncIssues, - IssuesWithRawResponse, - AsyncIssuesWithRawResponse, - IssuesWithStreamingResponse, - AsyncIssuesWithStreamingResponse, + IssuesResource, + AsyncIssuesResource, + IssuesResourceWithRawResponse, + AsyncIssuesResourceWithRawResponse, + IssuesResourceWithStreamingResponse, + AsyncIssuesResourceWithStreamingResponse, ) from ...._compat import cached_property from .issue_types import ( - IssueTypes, - AsyncIssueTypes, - IssueTypesWithRawResponse, - AsyncIssueTypesWithRawResponse, - IssueTypesWithStreamingResponse, - AsyncIssueTypesWithStreamingResponse, + IssueTypesResource, + AsyncIssueTypesResource, + IssueTypesResourceWithRawResponse, + AsyncIssueTypesResourceWithRawResponse, + IssueTypesResourceWithStreamingResponse, + AsyncIssueTypesResourceWithStreamingResponse, ) from ...._resource import SyncAPIResource, AsyncAPIResource -__all__ = ["AttackSurfaceReport", "AsyncAttackSurfaceReport"] +__all__ = ["AttackSurfaceReportResource", "AsyncAttackSurfaceReportResource"] -class AttackSurfaceReport(SyncAPIResource): +class AttackSurfaceReportResource(SyncAPIResource): @cached_property - def issue_types(self) -> IssueTypes: - return IssueTypes(self._client) + def issue_types(self) -> IssueTypesResource: + return IssueTypesResource(self._client) @cached_property - def issues(self) -> Issues: - return Issues(self._client) + def issues(self) -> IssuesResource: + return IssuesResource(self._client) @cached_property - def with_raw_response(self) -> AttackSurfaceReportWithRawResponse: - return AttackSurfaceReportWithRawResponse(self) + def with_raw_response(self) -> AttackSurfaceReportResourceWithRawResponse: + return AttackSurfaceReportResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AttackSurfaceReportWithStreamingResponse: - return AttackSurfaceReportWithStreamingResponse(self) + def with_streaming_response(self) -> AttackSurfaceReportResourceWithStreamingResponse: + return AttackSurfaceReportResourceWithStreamingResponse(self) -class AsyncAttackSurfaceReport(AsyncAPIResource): +class AsyncAttackSurfaceReportResource(AsyncAPIResource): @cached_property - def issue_types(self) -> AsyncIssueTypes: - return AsyncIssueTypes(self._client) + def issue_types(self) -> AsyncIssueTypesResource: + return AsyncIssueTypesResource(self._client) @cached_property - def issues(self) -> AsyncIssues: - return AsyncIssues(self._client) + def issues(self) -> AsyncIssuesResource: + return AsyncIssuesResource(self._client) @cached_property - def with_raw_response(self) -> AsyncAttackSurfaceReportWithRawResponse: - return AsyncAttackSurfaceReportWithRawResponse(self) + def with_raw_response(self) -> AsyncAttackSurfaceReportResourceWithRawResponse: + return AsyncAttackSurfaceReportResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncAttackSurfaceReportWithStreamingResponse: - return AsyncAttackSurfaceReportWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncAttackSurfaceReportResourceWithStreamingResponse: + return AsyncAttackSurfaceReportResourceWithStreamingResponse(self) -class AttackSurfaceReportWithRawResponse: - def __init__(self, attack_surface_report: AttackSurfaceReport) -> None: +class AttackSurfaceReportResourceWithRawResponse: + def __init__(self, attack_surface_report: AttackSurfaceReportResource) -> None: self._attack_surface_report = attack_surface_report @cached_property - def issue_types(self) -> IssueTypesWithRawResponse: - return IssueTypesWithRawResponse(self._attack_surface_report.issue_types) + def issue_types(self) -> IssueTypesResourceWithRawResponse: + return IssueTypesResourceWithRawResponse(self._attack_surface_report.issue_types) @cached_property - def issues(self) -> IssuesWithRawResponse: - return IssuesWithRawResponse(self._attack_surface_report.issues) + def issues(self) -> IssuesResourceWithRawResponse: + return IssuesResourceWithRawResponse(self._attack_surface_report.issues) -class AsyncAttackSurfaceReportWithRawResponse: - def __init__(self, attack_surface_report: AsyncAttackSurfaceReport) -> None: +class AsyncAttackSurfaceReportResourceWithRawResponse: + def __init__(self, attack_surface_report: AsyncAttackSurfaceReportResource) -> None: self._attack_surface_report = attack_surface_report @cached_property - def issue_types(self) -> AsyncIssueTypesWithRawResponse: - return AsyncIssueTypesWithRawResponse(self._attack_surface_report.issue_types) + def issue_types(self) -> AsyncIssueTypesResourceWithRawResponse: + return AsyncIssueTypesResourceWithRawResponse(self._attack_surface_report.issue_types) @cached_property - def issues(self) -> AsyncIssuesWithRawResponse: - return AsyncIssuesWithRawResponse(self._attack_surface_report.issues) + def issues(self) -> AsyncIssuesResourceWithRawResponse: + return AsyncIssuesResourceWithRawResponse(self._attack_surface_report.issues) -class AttackSurfaceReportWithStreamingResponse: - def __init__(self, attack_surface_report: AttackSurfaceReport) -> None: +class AttackSurfaceReportResourceWithStreamingResponse: + def __init__(self, attack_surface_report: AttackSurfaceReportResource) -> None: self._attack_surface_report = attack_surface_report @cached_property - def issue_types(self) -> IssueTypesWithStreamingResponse: - return IssueTypesWithStreamingResponse(self._attack_surface_report.issue_types) + def issue_types(self) -> IssueTypesResourceWithStreamingResponse: + return IssueTypesResourceWithStreamingResponse(self._attack_surface_report.issue_types) @cached_property - def issues(self) -> IssuesWithStreamingResponse: - return IssuesWithStreamingResponse(self._attack_surface_report.issues) + def issues(self) -> IssuesResourceWithStreamingResponse: + return IssuesResourceWithStreamingResponse(self._attack_surface_report.issues) -class AsyncAttackSurfaceReportWithStreamingResponse: - def __init__(self, attack_surface_report: AsyncAttackSurfaceReport) -> None: +class AsyncAttackSurfaceReportResourceWithStreamingResponse: + def __init__(self, attack_surface_report: AsyncAttackSurfaceReportResource) -> None: self._attack_surface_report = attack_surface_report @cached_property - def issue_types(self) -> AsyncIssueTypesWithStreamingResponse: - return AsyncIssueTypesWithStreamingResponse(self._attack_surface_report.issue_types) + def issue_types(self) -> AsyncIssueTypesResourceWithStreamingResponse: + return AsyncIssueTypesResourceWithStreamingResponse(self._attack_surface_report.issue_types) @cached_property - def issues(self) -> AsyncIssuesWithStreamingResponse: - return AsyncIssuesWithStreamingResponse(self._attack_surface_report.issues) + def issues(self) -> AsyncIssuesResourceWithStreamingResponse: + return AsyncIssuesResourceWithStreamingResponse(self._attack_surface_report.issues) diff --git a/src/cloudflare/resources/intel/attack_surface_report/issue_types.py b/src/cloudflare/resources/intel/attack_surface_report/issue_types.py index 99ca50bd2d3..327ad759c0c 100644 --- a/src/cloudflare/resources/intel/attack_surface_report/issue_types.py +++ b/src/cloudflare/resources/intel/attack_surface_report/issue_types.py @@ -21,17 +21,17 @@ ) from ....types.intel.attack_surface_report.issue_type_get_response import IssueTypeGetResponse -__all__ = ["IssueTypes", "AsyncIssueTypes"] +__all__ = ["IssueTypesResource", "AsyncIssueTypesResource"] -class IssueTypes(SyncAPIResource): +class IssueTypesResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> IssueTypesWithRawResponse: - return IssueTypesWithRawResponse(self) + def with_raw_response(self) -> IssueTypesResourceWithRawResponse: + return IssueTypesResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> IssueTypesWithStreamingResponse: - return IssueTypesWithStreamingResponse(self) + def with_streaming_response(self) -> IssueTypesResourceWithStreamingResponse: + return IssueTypesResourceWithStreamingResponse(self) def get( self, @@ -73,14 +73,14 @@ def get( ) -class AsyncIssueTypes(AsyncAPIResource): +class AsyncIssueTypesResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncIssueTypesWithRawResponse: - return AsyncIssueTypesWithRawResponse(self) + def with_raw_response(self) -> AsyncIssueTypesResourceWithRawResponse: + return AsyncIssueTypesResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncIssueTypesWithStreamingResponse: - return AsyncIssueTypesWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncIssueTypesResourceWithStreamingResponse: + return AsyncIssueTypesResourceWithStreamingResponse(self) async def get( self, @@ -122,8 +122,8 @@ async def get( ) -class IssueTypesWithRawResponse: - def __init__(self, issue_types: IssueTypes) -> None: +class IssueTypesResourceWithRawResponse: + def __init__(self, issue_types: IssueTypesResource) -> None: self._issue_types = issue_types self.get = to_raw_response_wrapper( @@ -131,8 +131,8 @@ def __init__(self, issue_types: IssueTypes) -> None: ) -class AsyncIssueTypesWithRawResponse: - def __init__(self, issue_types: AsyncIssueTypes) -> None: +class AsyncIssueTypesResourceWithRawResponse: + def __init__(self, issue_types: AsyncIssueTypesResource) -> None: self._issue_types = issue_types self.get = async_to_raw_response_wrapper( @@ -140,8 +140,8 @@ def __init__(self, issue_types: AsyncIssueTypes) -> None: ) -class IssueTypesWithStreamingResponse: - def __init__(self, issue_types: IssueTypes) -> None: +class IssueTypesResourceWithStreamingResponse: + def __init__(self, issue_types: IssueTypesResource) -> None: self._issue_types = issue_types self.get = to_streamed_response_wrapper( @@ -149,8 +149,8 @@ def __init__(self, issue_types: IssueTypes) -> None: ) -class AsyncIssueTypesWithStreamingResponse: - def __init__(self, issue_types: AsyncIssueTypes) -> None: +class AsyncIssueTypesResourceWithStreamingResponse: + def __init__(self, issue_types: AsyncIssueTypesResource) -> None: self._issue_types = issue_types self.get = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/intel/attack_surface_report/issues.py b/src/cloudflare/resources/intel/attack_surface_report/issues.py index db255519afb..357a1f48030 100644 --- a/src/cloudflare/resources/intel/attack_surface_report/issues.py +++ b/src/cloudflare/resources/intel/attack_surface_report/issues.py @@ -43,17 +43,17 @@ from ....types.intel.attack_surface_report.issue_dismiss_response import IssueDismissResponse from ....types.intel.attack_surface_report.issue_severity_response import IssueSeverityResponse -__all__ = ["Issues", "AsyncIssues"] +__all__ = ["IssuesResource", "AsyncIssuesResource"] -class Issues(SyncAPIResource): +class IssuesResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> IssuesWithRawResponse: - return IssuesWithRawResponse(self) + def with_raw_response(self) -> IssuesResourceWithRawResponse: + return IssuesResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> IssuesWithStreamingResponse: - return IssuesWithStreamingResponse(self) + def with_streaming_response(self) -> IssuesResourceWithStreamingResponse: + return IssuesResourceWithStreamingResponse(self) def list( self, @@ -377,14 +377,14 @@ def type( ) -class AsyncIssues(AsyncAPIResource): +class AsyncIssuesResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncIssuesWithRawResponse: - return AsyncIssuesWithRawResponse(self) + def with_raw_response(self) -> AsyncIssuesResourceWithRawResponse: + return AsyncIssuesResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncIssuesWithStreamingResponse: - return AsyncIssuesWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncIssuesResourceWithStreamingResponse: + return AsyncIssuesResourceWithStreamingResponse(self) def list( self, @@ -708,8 +708,8 @@ async def type( ) -class IssuesWithRawResponse: - def __init__(self, issues: Issues) -> None: +class IssuesResourceWithRawResponse: + def __init__(self, issues: IssuesResource) -> None: self._issues = issues self.list = to_raw_response_wrapper( @@ -729,8 +729,8 @@ def __init__(self, issues: Issues) -> None: ) -class AsyncIssuesWithRawResponse: - def __init__(self, issues: AsyncIssues) -> None: +class AsyncIssuesResourceWithRawResponse: + def __init__(self, issues: AsyncIssuesResource) -> None: self._issues = issues self.list = async_to_raw_response_wrapper( @@ -750,8 +750,8 @@ def __init__(self, issues: AsyncIssues) -> None: ) -class IssuesWithStreamingResponse: - def __init__(self, issues: Issues) -> None: +class IssuesResourceWithStreamingResponse: + def __init__(self, issues: IssuesResource) -> None: self._issues = issues self.list = to_streamed_response_wrapper( @@ -771,8 +771,8 @@ def __init__(self, issues: Issues) -> None: ) -class AsyncIssuesWithStreamingResponse: - def __init__(self, issues: AsyncIssues) -> None: +class AsyncIssuesResourceWithStreamingResponse: + def __init__(self, issues: AsyncIssuesResource) -> None: self._issues = issues self.list = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/intel/dns.py b/src/cloudflare/resources/intel/dns.py index ae3c37cb6b2..7a5835921b8 100644 --- a/src/cloudflare/resources/intel/dns.py +++ b/src/cloudflare/resources/intel/dns.py @@ -22,17 +22,17 @@ ) from ...types.intel.dns_list_response import DNSListResponse -__all__ = ["DNS", "AsyncDNS"] +__all__ = ["DNSResource", "AsyncDNSResource"] -class DNS(SyncAPIResource): +class DNSResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> DNSWithRawResponse: - return DNSWithRawResponse(self) + def with_raw_response(self) -> DNSResourceWithRawResponse: + return DNSResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> DNSWithStreamingResponse: - return DNSWithStreamingResponse(self) + def with_streaming_response(self) -> DNSResourceWithStreamingResponse: + return DNSResourceWithStreamingResponse(self) def list( self, @@ -91,14 +91,14 @@ def list( ) -class AsyncDNS(AsyncAPIResource): +class AsyncDNSResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncDNSWithRawResponse: - return AsyncDNSWithRawResponse(self) + def with_raw_response(self) -> AsyncDNSResourceWithRawResponse: + return AsyncDNSResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncDNSWithStreamingResponse: - return AsyncDNSWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncDNSResourceWithStreamingResponse: + return AsyncDNSResourceWithStreamingResponse(self) def list( self, @@ -157,8 +157,8 @@ def list( ) -class DNSWithRawResponse: - def __init__(self, dns: DNS) -> None: +class DNSResourceWithRawResponse: + def __init__(self, dns: DNSResource) -> None: self._dns = dns self.list = to_raw_response_wrapper( @@ -166,8 +166,8 @@ def __init__(self, dns: DNS) -> None: ) -class AsyncDNSWithRawResponse: - def __init__(self, dns: AsyncDNS) -> None: +class AsyncDNSResourceWithRawResponse: + def __init__(self, dns: AsyncDNSResource) -> None: self._dns = dns self.list = async_to_raw_response_wrapper( @@ -175,8 +175,8 @@ def __init__(self, dns: AsyncDNS) -> None: ) -class DNSWithStreamingResponse: - def __init__(self, dns: DNS) -> None: +class DNSResourceWithStreamingResponse: + def __init__(self, dns: DNSResource) -> None: self._dns = dns self.list = to_streamed_response_wrapper( @@ -184,8 +184,8 @@ def __init__(self, dns: DNS) -> None: ) -class AsyncDNSWithStreamingResponse: - def __init__(self, dns: AsyncDNS) -> None: +class AsyncDNSResourceWithStreamingResponse: + def __init__(self, dns: AsyncDNSResource) -> None: self._dns = dns self.list = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/intel/domains/__init__.py b/src/cloudflare/resources/intel/domains/__init__.py index 25312e146b0..41e1931619f 100644 --- a/src/cloudflare/resources/intel/domains/__init__.py +++ b/src/cloudflare/resources/intel/domains/__init__.py @@ -1,33 +1,33 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from .bulks import ( - Bulks, - AsyncBulks, - BulksWithRawResponse, - AsyncBulksWithRawResponse, - BulksWithStreamingResponse, - AsyncBulksWithStreamingResponse, + BulksResource, + AsyncBulksResource, + BulksResourceWithRawResponse, + AsyncBulksResourceWithRawResponse, + BulksResourceWithStreamingResponse, + AsyncBulksResourceWithStreamingResponse, ) from .domains import ( - Domains, - AsyncDomains, - DomainsWithRawResponse, - AsyncDomainsWithRawResponse, - DomainsWithStreamingResponse, - AsyncDomainsWithStreamingResponse, + DomainsResource, + AsyncDomainsResource, + DomainsResourceWithRawResponse, + AsyncDomainsResourceWithRawResponse, + DomainsResourceWithStreamingResponse, + AsyncDomainsResourceWithStreamingResponse, ) __all__ = [ - "Bulks", - "AsyncBulks", - "BulksWithRawResponse", - "AsyncBulksWithRawResponse", - "BulksWithStreamingResponse", - "AsyncBulksWithStreamingResponse", - "Domains", - "AsyncDomains", - "DomainsWithRawResponse", - "AsyncDomainsWithRawResponse", - "DomainsWithStreamingResponse", - "AsyncDomainsWithStreamingResponse", + "BulksResource", + "AsyncBulksResource", + "BulksResourceWithRawResponse", + "AsyncBulksResourceWithRawResponse", + "BulksResourceWithStreamingResponse", + "AsyncBulksResourceWithStreamingResponse", + "DomainsResource", + "AsyncDomainsResource", + "DomainsResourceWithRawResponse", + "AsyncDomainsResourceWithRawResponse", + "DomainsResourceWithStreamingResponse", + "AsyncDomainsResourceWithStreamingResponse", ] diff --git a/src/cloudflare/resources/intel/domains/bulks.py b/src/cloudflare/resources/intel/domains/bulks.py index ef41f24359b..c8eb350e1ae 100644 --- a/src/cloudflare/resources/intel/domains/bulks.py +++ b/src/cloudflare/resources/intel/domains/bulks.py @@ -26,17 +26,17 @@ from ....types.intel.domains import bulk_get_params from ....types.intel.domains.bulk_get_response import BulkGetResponse -__all__ = ["Bulks", "AsyncBulks"] +__all__ = ["BulksResource", "AsyncBulksResource"] -class Bulks(SyncAPIResource): +class BulksResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> BulksWithRawResponse: - return BulksWithRawResponse(self) + def with_raw_response(self) -> BulksResourceWithRawResponse: + return BulksResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> BulksWithStreamingResponse: - return BulksWithStreamingResponse(self) + def with_streaming_response(self) -> BulksResourceWithStreamingResponse: + return BulksResourceWithStreamingResponse(self) def get( self, @@ -82,14 +82,14 @@ def get( ) -class AsyncBulks(AsyncAPIResource): +class AsyncBulksResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncBulksWithRawResponse: - return AsyncBulksWithRawResponse(self) + def with_raw_response(self) -> AsyncBulksResourceWithRawResponse: + return AsyncBulksResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncBulksWithStreamingResponse: - return AsyncBulksWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncBulksResourceWithStreamingResponse: + return AsyncBulksResourceWithStreamingResponse(self) async def get( self, @@ -135,8 +135,8 @@ async def get( ) -class BulksWithRawResponse: - def __init__(self, bulks: Bulks) -> None: +class BulksResourceWithRawResponse: + def __init__(self, bulks: BulksResource) -> None: self._bulks = bulks self.get = to_raw_response_wrapper( @@ -144,8 +144,8 @@ def __init__(self, bulks: Bulks) -> None: ) -class AsyncBulksWithRawResponse: - def __init__(self, bulks: AsyncBulks) -> None: +class AsyncBulksResourceWithRawResponse: + def __init__(self, bulks: AsyncBulksResource) -> None: self._bulks = bulks self.get = async_to_raw_response_wrapper( @@ -153,8 +153,8 @@ def __init__(self, bulks: AsyncBulks) -> None: ) -class BulksWithStreamingResponse: - def __init__(self, bulks: Bulks) -> None: +class BulksResourceWithStreamingResponse: + def __init__(self, bulks: BulksResource) -> None: self._bulks = bulks self.get = to_streamed_response_wrapper( @@ -162,8 +162,8 @@ def __init__(self, bulks: Bulks) -> None: ) -class AsyncBulksWithStreamingResponse: - def __init__(self, bulks: AsyncBulks) -> None: +class AsyncBulksResourceWithStreamingResponse: + def __init__(self, bulks: AsyncBulksResource) -> None: self._bulks = bulks self.get = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/intel/domains/domains.py b/src/cloudflare/resources/intel/domains/domains.py index c8e3d1f853a..15b1171aca6 100644 --- a/src/cloudflare/resources/intel/domains/domains.py +++ b/src/cloudflare/resources/intel/domains/domains.py @@ -7,12 +7,12 @@ import httpx from .bulks import ( - Bulks, - AsyncBulks, - BulksWithRawResponse, - AsyncBulksWithRawResponse, - BulksWithStreamingResponse, - AsyncBulksWithStreamingResponse, + BulksResource, + AsyncBulksResource, + BulksResourceWithRawResponse, + AsyncBulksResourceWithRawResponse, + BulksResourceWithStreamingResponse, + AsyncBulksResourceWithStreamingResponse, ) from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven from ...._utils import ( @@ -34,21 +34,21 @@ ) from ....types.intel.domain import Domain -__all__ = ["Domains", "AsyncDomains"] +__all__ = ["DomainsResource", "AsyncDomainsResource"] -class Domains(SyncAPIResource): +class DomainsResource(SyncAPIResource): @cached_property - def bulks(self) -> Bulks: - return Bulks(self._client) + def bulks(self) -> BulksResource: + return BulksResource(self._client) @cached_property - def with_raw_response(self) -> DomainsWithRawResponse: - return DomainsWithRawResponse(self) + def with_raw_response(self) -> DomainsResourceWithRawResponse: + return DomainsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> DomainsWithStreamingResponse: - return DomainsWithStreamingResponse(self) + def with_streaming_response(self) -> DomainsResourceWithStreamingResponse: + return DomainsResourceWithStreamingResponse(self) def get( self, @@ -92,18 +92,18 @@ def get( ) -class AsyncDomains(AsyncAPIResource): +class AsyncDomainsResource(AsyncAPIResource): @cached_property - def bulks(self) -> AsyncBulks: - return AsyncBulks(self._client) + def bulks(self) -> AsyncBulksResource: + return AsyncBulksResource(self._client) @cached_property - def with_raw_response(self) -> AsyncDomainsWithRawResponse: - return AsyncDomainsWithRawResponse(self) + def with_raw_response(self) -> AsyncDomainsResourceWithRawResponse: + return AsyncDomainsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncDomainsWithStreamingResponse: - return AsyncDomainsWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncDomainsResourceWithStreamingResponse: + return AsyncDomainsResourceWithStreamingResponse(self) async def get( self, @@ -147,8 +147,8 @@ async def get( ) -class DomainsWithRawResponse: - def __init__(self, domains: Domains) -> None: +class DomainsResourceWithRawResponse: + def __init__(self, domains: DomainsResource) -> None: self._domains = domains self.get = to_raw_response_wrapper( @@ -156,12 +156,12 @@ def __init__(self, domains: Domains) -> None: ) @cached_property - def bulks(self) -> BulksWithRawResponse: - return BulksWithRawResponse(self._domains.bulks) + def bulks(self) -> BulksResourceWithRawResponse: + return BulksResourceWithRawResponse(self._domains.bulks) -class AsyncDomainsWithRawResponse: - def __init__(self, domains: AsyncDomains) -> None: +class AsyncDomainsResourceWithRawResponse: + def __init__(self, domains: AsyncDomainsResource) -> None: self._domains = domains self.get = async_to_raw_response_wrapper( @@ -169,12 +169,12 @@ def __init__(self, domains: AsyncDomains) -> None: ) @cached_property - def bulks(self) -> AsyncBulksWithRawResponse: - return AsyncBulksWithRawResponse(self._domains.bulks) + def bulks(self) -> AsyncBulksResourceWithRawResponse: + return AsyncBulksResourceWithRawResponse(self._domains.bulks) -class DomainsWithStreamingResponse: - def __init__(self, domains: Domains) -> None: +class DomainsResourceWithStreamingResponse: + def __init__(self, domains: DomainsResource) -> None: self._domains = domains self.get = to_streamed_response_wrapper( @@ -182,12 +182,12 @@ def __init__(self, domains: Domains) -> None: ) @cached_property - def bulks(self) -> BulksWithStreamingResponse: - return BulksWithStreamingResponse(self._domains.bulks) + def bulks(self) -> BulksResourceWithStreamingResponse: + return BulksResourceWithStreamingResponse(self._domains.bulks) -class AsyncDomainsWithStreamingResponse: - def __init__(self, domains: AsyncDomains) -> None: +class AsyncDomainsResourceWithStreamingResponse: + def __init__(self, domains: AsyncDomainsResource) -> None: self._domains = domains self.get = async_to_streamed_response_wrapper( @@ -195,5 +195,5 @@ def __init__(self, domains: AsyncDomains) -> None: ) @cached_property - def bulks(self) -> AsyncBulksWithStreamingResponse: - return AsyncBulksWithStreamingResponse(self._domains.bulks) + def bulks(self) -> AsyncBulksResourceWithStreamingResponse: + return AsyncBulksResourceWithStreamingResponse(self._domains.bulks) diff --git a/src/cloudflare/resources/intel/indicator_feeds/__init__.py b/src/cloudflare/resources/intel/indicator_feeds/__init__.py index c537db94a52..a562b4be04d 100644 --- a/src/cloudflare/resources/intel/indicator_feeds/__init__.py +++ b/src/cloudflare/resources/intel/indicator_feeds/__init__.py @@ -1,33 +1,33 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from .permissions import ( - Permissions, - AsyncPermissions, - PermissionsWithRawResponse, - AsyncPermissionsWithRawResponse, - PermissionsWithStreamingResponse, - AsyncPermissionsWithStreamingResponse, + PermissionsResource, + AsyncPermissionsResource, + PermissionsResourceWithRawResponse, + AsyncPermissionsResourceWithRawResponse, + PermissionsResourceWithStreamingResponse, + AsyncPermissionsResourceWithStreamingResponse, ) from .indicator_feeds import ( - IndicatorFeeds, - AsyncIndicatorFeeds, - IndicatorFeedsWithRawResponse, - AsyncIndicatorFeedsWithRawResponse, - IndicatorFeedsWithStreamingResponse, - AsyncIndicatorFeedsWithStreamingResponse, + IndicatorFeedsResource, + AsyncIndicatorFeedsResource, + IndicatorFeedsResourceWithRawResponse, + AsyncIndicatorFeedsResourceWithRawResponse, + IndicatorFeedsResourceWithStreamingResponse, + AsyncIndicatorFeedsResourceWithStreamingResponse, ) __all__ = [ - "Permissions", - "AsyncPermissions", - "PermissionsWithRawResponse", - "AsyncPermissionsWithRawResponse", - "PermissionsWithStreamingResponse", - "AsyncPermissionsWithStreamingResponse", - "IndicatorFeeds", - "AsyncIndicatorFeeds", - "IndicatorFeedsWithRawResponse", - "AsyncIndicatorFeedsWithRawResponse", - "IndicatorFeedsWithStreamingResponse", - "AsyncIndicatorFeedsWithStreamingResponse", + "PermissionsResource", + "AsyncPermissionsResource", + "PermissionsResourceWithRawResponse", + "AsyncPermissionsResourceWithRawResponse", + "PermissionsResourceWithStreamingResponse", + "AsyncPermissionsResourceWithStreamingResponse", + "IndicatorFeedsResource", + "AsyncIndicatorFeedsResource", + "IndicatorFeedsResourceWithRawResponse", + "AsyncIndicatorFeedsResourceWithRawResponse", + "IndicatorFeedsResourceWithStreamingResponse", + "AsyncIndicatorFeedsResourceWithStreamingResponse", ] diff --git a/src/cloudflare/resources/intel/indicator_feeds/indicator_feeds.py b/src/cloudflare/resources/intel/indicator_feeds/indicator_feeds.py index 3c921d09fbe..c76f8b588c9 100644 --- a/src/cloudflare/resources/intel/indicator_feeds/indicator_feeds.py +++ b/src/cloudflare/resources/intel/indicator_feeds/indicator_feeds.py @@ -13,12 +13,12 @@ ) from ...._compat import cached_property from .permissions import ( - Permissions, - AsyncPermissions, - PermissionsWithRawResponse, - AsyncPermissionsWithRawResponse, - PermissionsWithStreamingResponse, - AsyncPermissionsWithStreamingResponse, + PermissionsResource, + AsyncPermissionsResource, + PermissionsResourceWithRawResponse, + AsyncPermissionsResourceWithRawResponse, + PermissionsResourceWithStreamingResponse, + AsyncPermissionsResourceWithStreamingResponse, ) from ...._resource import SyncAPIResource, AsyncAPIResource from ...._response import ( @@ -39,21 +39,21 @@ from ....types.intel.indicator_feed_create_response import IndicatorFeedCreateResponse from ....types.intel.indicator_feed_update_response import IndicatorFeedUpdateResponse -__all__ = ["IndicatorFeeds", "AsyncIndicatorFeeds"] +__all__ = ["IndicatorFeedsResource", "AsyncIndicatorFeedsResource"] -class IndicatorFeeds(SyncAPIResource): +class IndicatorFeedsResource(SyncAPIResource): @cached_property - def permissions(self) -> Permissions: - return Permissions(self._client) + def permissions(self) -> PermissionsResource: + return PermissionsResource(self._client) @cached_property - def with_raw_response(self) -> IndicatorFeedsWithRawResponse: - return IndicatorFeedsWithRawResponse(self) + def with_raw_response(self) -> IndicatorFeedsResourceWithRawResponse: + return IndicatorFeedsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> IndicatorFeedsWithStreamingResponse: - return IndicatorFeedsWithStreamingResponse(self) + def with_streaming_response(self) -> IndicatorFeedsResourceWithStreamingResponse: + return IndicatorFeedsResourceWithStreamingResponse(self) def create( self, @@ -271,18 +271,18 @@ def get( ) -class AsyncIndicatorFeeds(AsyncAPIResource): +class AsyncIndicatorFeedsResource(AsyncAPIResource): @cached_property - def permissions(self) -> AsyncPermissions: - return AsyncPermissions(self._client) + def permissions(self) -> AsyncPermissionsResource: + return AsyncPermissionsResource(self._client) @cached_property - def with_raw_response(self) -> AsyncIndicatorFeedsWithRawResponse: - return AsyncIndicatorFeedsWithRawResponse(self) + def with_raw_response(self) -> AsyncIndicatorFeedsResourceWithRawResponse: + return AsyncIndicatorFeedsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncIndicatorFeedsWithStreamingResponse: - return AsyncIndicatorFeedsWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncIndicatorFeedsResourceWithStreamingResponse: + return AsyncIndicatorFeedsResourceWithStreamingResponse(self) async def create( self, @@ -502,8 +502,8 @@ async def get( ) -class IndicatorFeedsWithRawResponse: - def __init__(self, indicator_feeds: IndicatorFeeds) -> None: +class IndicatorFeedsResourceWithRawResponse: + def __init__(self, indicator_feeds: IndicatorFeedsResource) -> None: self._indicator_feeds = indicator_feeds self.create = to_raw_response_wrapper( @@ -523,12 +523,12 @@ def __init__(self, indicator_feeds: IndicatorFeeds) -> None: ) @cached_property - def permissions(self) -> PermissionsWithRawResponse: - return PermissionsWithRawResponse(self._indicator_feeds.permissions) + def permissions(self) -> PermissionsResourceWithRawResponse: + return PermissionsResourceWithRawResponse(self._indicator_feeds.permissions) -class AsyncIndicatorFeedsWithRawResponse: - def __init__(self, indicator_feeds: AsyncIndicatorFeeds) -> None: +class AsyncIndicatorFeedsResourceWithRawResponse: + def __init__(self, indicator_feeds: AsyncIndicatorFeedsResource) -> None: self._indicator_feeds = indicator_feeds self.create = async_to_raw_response_wrapper( @@ -548,12 +548,12 @@ def __init__(self, indicator_feeds: AsyncIndicatorFeeds) -> None: ) @cached_property - def permissions(self) -> AsyncPermissionsWithRawResponse: - return AsyncPermissionsWithRawResponse(self._indicator_feeds.permissions) + def permissions(self) -> AsyncPermissionsResourceWithRawResponse: + return AsyncPermissionsResourceWithRawResponse(self._indicator_feeds.permissions) -class IndicatorFeedsWithStreamingResponse: - def __init__(self, indicator_feeds: IndicatorFeeds) -> None: +class IndicatorFeedsResourceWithStreamingResponse: + def __init__(self, indicator_feeds: IndicatorFeedsResource) -> None: self._indicator_feeds = indicator_feeds self.create = to_streamed_response_wrapper( @@ -573,12 +573,12 @@ def __init__(self, indicator_feeds: IndicatorFeeds) -> None: ) @cached_property - def permissions(self) -> PermissionsWithStreamingResponse: - return PermissionsWithStreamingResponse(self._indicator_feeds.permissions) + def permissions(self) -> PermissionsResourceWithStreamingResponse: + return PermissionsResourceWithStreamingResponse(self._indicator_feeds.permissions) -class AsyncIndicatorFeedsWithStreamingResponse: - def __init__(self, indicator_feeds: AsyncIndicatorFeeds) -> None: +class AsyncIndicatorFeedsResourceWithStreamingResponse: + def __init__(self, indicator_feeds: AsyncIndicatorFeedsResource) -> None: self._indicator_feeds = indicator_feeds self.create = async_to_streamed_response_wrapper( @@ -598,5 +598,5 @@ def __init__(self, indicator_feeds: AsyncIndicatorFeeds) -> None: ) @cached_property - def permissions(self) -> AsyncPermissionsWithStreamingResponse: - return AsyncPermissionsWithStreamingResponse(self._indicator_feeds.permissions) + def permissions(self) -> AsyncPermissionsResourceWithStreamingResponse: + return AsyncPermissionsResourceWithStreamingResponse(self._indicator_feeds.permissions) diff --git a/src/cloudflare/resources/intel/indicator_feeds/permissions.py b/src/cloudflare/resources/intel/indicator_feeds/permissions.py index 961b5b57342..9558b5e48ff 100644 --- a/src/cloudflare/resources/intel/indicator_feeds/permissions.py +++ b/src/cloudflare/resources/intel/indicator_feeds/permissions.py @@ -28,17 +28,17 @@ from ....types.intel.indicator_feeds.permission_create_response import PermissionCreateResponse from ....types.intel.indicator_feeds.permission_delete_response import PermissionDeleteResponse -__all__ = ["Permissions", "AsyncPermissions"] +__all__ = ["PermissionsResource", "AsyncPermissionsResource"] -class Permissions(SyncAPIResource): +class PermissionsResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> PermissionsWithRawResponse: - return PermissionsWithRawResponse(self) + def with_raw_response(self) -> PermissionsResourceWithRawResponse: + return PermissionsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> PermissionsWithStreamingResponse: - return PermissionsWithStreamingResponse(self) + def with_streaming_response(self) -> PermissionsResourceWithStreamingResponse: + return PermissionsResourceWithStreamingResponse(self) def create( self, @@ -184,14 +184,14 @@ def delete( ) -class AsyncPermissions(AsyncAPIResource): +class AsyncPermissionsResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncPermissionsWithRawResponse: - return AsyncPermissionsWithRawResponse(self) + def with_raw_response(self) -> AsyncPermissionsResourceWithRawResponse: + return AsyncPermissionsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncPermissionsWithStreamingResponse: - return AsyncPermissionsWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncPermissionsResourceWithStreamingResponse: + return AsyncPermissionsResourceWithStreamingResponse(self) async def create( self, @@ -337,8 +337,8 @@ async def delete( ) -class PermissionsWithRawResponse: - def __init__(self, permissions: Permissions) -> None: +class PermissionsResourceWithRawResponse: + def __init__(self, permissions: PermissionsResource) -> None: self._permissions = permissions self.create = to_raw_response_wrapper( @@ -352,8 +352,8 @@ def __init__(self, permissions: Permissions) -> None: ) -class AsyncPermissionsWithRawResponse: - def __init__(self, permissions: AsyncPermissions) -> None: +class AsyncPermissionsResourceWithRawResponse: + def __init__(self, permissions: AsyncPermissionsResource) -> None: self._permissions = permissions self.create = async_to_raw_response_wrapper( @@ -367,8 +367,8 @@ def __init__(self, permissions: AsyncPermissions) -> None: ) -class PermissionsWithStreamingResponse: - def __init__(self, permissions: Permissions) -> None: +class PermissionsResourceWithStreamingResponse: + def __init__(self, permissions: PermissionsResource) -> None: self._permissions = permissions self.create = to_streamed_response_wrapper( @@ -382,8 +382,8 @@ def __init__(self, permissions: Permissions) -> None: ) -class AsyncPermissionsWithStreamingResponse: - def __init__(self, permissions: AsyncPermissions) -> None: +class AsyncPermissionsResourceWithStreamingResponse: + def __init__(self, permissions: AsyncPermissionsResource) -> None: self._permissions = permissions self.create = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/intel/intel.py b/src/cloudflare/resources/intel/intel.py index 136453388e7..5dc3092ce45 100644 --- a/src/cloudflare/resources/intel/intel.py +++ b/src/cloudflare/resources/intel/intel.py @@ -3,62 +3,62 @@ from __future__ import annotations from .asn import ( - ASN, - AsyncASN, - ASNWithRawResponse, - AsyncASNWithRawResponse, - ASNWithStreamingResponse, - AsyncASNWithStreamingResponse, + ASNResource, + AsyncASNResource, + ASNResourceWithRawResponse, + AsyncASNResourceWithRawResponse, + ASNResourceWithStreamingResponse, + AsyncASNResourceWithStreamingResponse, ) from .dns import ( - DNS, - AsyncDNS, - DNSWithRawResponse, - AsyncDNSWithRawResponse, - DNSWithStreamingResponse, - AsyncDNSWithStreamingResponse, + DNSResource, + AsyncDNSResource, + DNSResourceWithRawResponse, + AsyncDNSResourceWithRawResponse, + DNSResourceWithStreamingResponse, + AsyncDNSResourceWithStreamingResponse, ) from .ips import ( - IPs, - AsyncIPs, - IPsWithRawResponse, - AsyncIPsWithRawResponse, - IPsWithStreamingResponse, - AsyncIPsWithStreamingResponse, + IPsResource, + AsyncIPsResource, + IPsResourceWithRawResponse, + AsyncIPsResourceWithRawResponse, + IPsResourceWithStreamingResponse, + AsyncIPsResourceWithStreamingResponse, ) from .whois import ( - Whois, - AsyncWhois, - WhoisWithRawResponse, - AsyncWhoisWithRawResponse, - WhoisWithStreamingResponse, - AsyncWhoisWithStreamingResponse, + WhoisResource, + AsyncWhoisResource, + WhoisResourceWithRawResponse, + AsyncWhoisResourceWithRawResponse, + WhoisResourceWithStreamingResponse, + AsyncWhoisResourceWithStreamingResponse, ) -from .asn.asn import ASN, AsyncASN +from .asn.asn import ASNResource, AsyncASNResource from .domains import ( - Domains, - AsyncDomains, - DomainsWithRawResponse, - AsyncDomainsWithRawResponse, - DomainsWithStreamingResponse, - AsyncDomainsWithStreamingResponse, + DomainsResource, + AsyncDomainsResource, + DomainsResourceWithRawResponse, + AsyncDomainsResourceWithRawResponse, + DomainsResourceWithStreamingResponse, + AsyncDomainsResourceWithStreamingResponse, ) from .ip_lists import ( - IPLists, - AsyncIPLists, - IPListsWithRawResponse, - AsyncIPListsWithRawResponse, - IPListsWithStreamingResponse, - AsyncIPListsWithStreamingResponse, + IPListsResource, + AsyncIPListsResource, + IPListsResourceWithRawResponse, + AsyncIPListsResourceWithRawResponse, + IPListsResourceWithStreamingResponse, + AsyncIPListsResourceWithStreamingResponse, ) from ..._compat import cached_property from .sinkholes import ( - Sinkholes, - AsyncSinkholes, - SinkholesWithRawResponse, - AsyncSinkholesWithRawResponse, - SinkholesWithStreamingResponse, - AsyncSinkholesWithStreamingResponse, + SinkholesResource, + AsyncSinkholesResource, + SinkholesResourceWithRawResponse, + AsyncSinkholesResourceWithRawResponse, + SinkholesResourceWithStreamingResponse, + AsyncSinkholesResourceWithStreamingResponse, ) from ..._resource import SyncAPIResource, AsyncAPIResource from .domain_history import ( @@ -69,336 +69,336 @@ DomainHistoryResourceWithStreamingResponse, AsyncDomainHistoryResourceWithStreamingResponse, ) -from .domains.domains import Domains, AsyncDomains +from .domains.domains import DomainsResource, AsyncDomainsResource from .indicator_feeds import ( - IndicatorFeeds, - AsyncIndicatorFeeds, - IndicatorFeedsWithRawResponse, - AsyncIndicatorFeedsWithRawResponse, - IndicatorFeedsWithStreamingResponse, - AsyncIndicatorFeedsWithStreamingResponse, + IndicatorFeedsResource, + AsyncIndicatorFeedsResource, + IndicatorFeedsResourceWithRawResponse, + AsyncIndicatorFeedsResourceWithRawResponse, + IndicatorFeedsResourceWithStreamingResponse, + AsyncIndicatorFeedsResourceWithStreamingResponse, ) from .miscategorizations import ( - Miscategorizations, - AsyncMiscategorizations, - MiscategorizationsWithRawResponse, - AsyncMiscategorizationsWithRawResponse, - MiscategorizationsWithStreamingResponse, - AsyncMiscategorizationsWithStreamingResponse, + MiscategorizationsResource, + AsyncMiscategorizationsResource, + MiscategorizationsResourceWithRawResponse, + AsyncMiscategorizationsResourceWithRawResponse, + MiscategorizationsResourceWithStreamingResponse, + AsyncMiscategorizationsResourceWithStreamingResponse, ) from .attack_surface_report import ( - AttackSurfaceReport, - AsyncAttackSurfaceReport, - AttackSurfaceReportWithRawResponse, - AsyncAttackSurfaceReportWithRawResponse, - AttackSurfaceReportWithStreamingResponse, - AsyncAttackSurfaceReportWithStreamingResponse, + AttackSurfaceReportResource, + AsyncAttackSurfaceReportResource, + AttackSurfaceReportResourceWithRawResponse, + AsyncAttackSurfaceReportResourceWithRawResponse, + AttackSurfaceReportResourceWithStreamingResponse, + AsyncAttackSurfaceReportResourceWithStreamingResponse, ) -from .indicator_feeds.indicator_feeds import IndicatorFeeds, AsyncIndicatorFeeds -from .attack_surface_report.attack_surface_report import AttackSurfaceReport, AsyncAttackSurfaceReport +from .indicator_feeds.indicator_feeds import IndicatorFeedsResource, AsyncIndicatorFeedsResource +from .attack_surface_report.attack_surface_report import AttackSurfaceReportResource, AsyncAttackSurfaceReportResource -__all__ = ["Intel", "AsyncIntel"] +__all__ = ["IntelResource", "AsyncIntelResource"] -class Intel(SyncAPIResource): +class IntelResource(SyncAPIResource): @cached_property - def asn(self) -> ASN: - return ASN(self._client) + def asn(self) -> ASNResource: + return ASNResource(self._client) @cached_property - def dns(self) -> DNS: - return DNS(self._client) + def dns(self) -> DNSResource: + return DNSResource(self._client) @cached_property - def domains(self) -> Domains: - return Domains(self._client) + def domains(self) -> DomainsResource: + return DomainsResource(self._client) @cached_property def domain_history(self) -> DomainHistoryResource: return DomainHistoryResource(self._client) @cached_property - def ips(self) -> IPs: - return IPs(self._client) + def ips(self) -> IPsResource: + return IPsResource(self._client) @cached_property - def ip_lists(self) -> IPLists: - return IPLists(self._client) + def ip_lists(self) -> IPListsResource: + return IPListsResource(self._client) @cached_property - def miscategorizations(self) -> Miscategorizations: - return Miscategorizations(self._client) + def miscategorizations(self) -> MiscategorizationsResource: + return MiscategorizationsResource(self._client) @cached_property - def whois(self) -> Whois: - return Whois(self._client) + def whois(self) -> WhoisResource: + return WhoisResource(self._client) @cached_property - def indicator_feeds(self) -> IndicatorFeeds: - return IndicatorFeeds(self._client) + def indicator_feeds(self) -> IndicatorFeedsResource: + return IndicatorFeedsResource(self._client) @cached_property - def sinkholes(self) -> Sinkholes: - return Sinkholes(self._client) + def sinkholes(self) -> SinkholesResource: + return SinkholesResource(self._client) @cached_property - def attack_surface_report(self) -> AttackSurfaceReport: - return AttackSurfaceReport(self._client) + def attack_surface_report(self) -> AttackSurfaceReportResource: + return AttackSurfaceReportResource(self._client) @cached_property - def with_raw_response(self) -> IntelWithRawResponse: - return IntelWithRawResponse(self) + def with_raw_response(self) -> IntelResourceWithRawResponse: + return IntelResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> IntelWithStreamingResponse: - return IntelWithStreamingResponse(self) + def with_streaming_response(self) -> IntelResourceWithStreamingResponse: + return IntelResourceWithStreamingResponse(self) -class AsyncIntel(AsyncAPIResource): +class AsyncIntelResource(AsyncAPIResource): @cached_property - def asn(self) -> AsyncASN: - return AsyncASN(self._client) + def asn(self) -> AsyncASNResource: + return AsyncASNResource(self._client) @cached_property - def dns(self) -> AsyncDNS: - return AsyncDNS(self._client) + def dns(self) -> AsyncDNSResource: + return AsyncDNSResource(self._client) @cached_property - def domains(self) -> AsyncDomains: - return AsyncDomains(self._client) + def domains(self) -> AsyncDomainsResource: + return AsyncDomainsResource(self._client) @cached_property def domain_history(self) -> AsyncDomainHistoryResource: return AsyncDomainHistoryResource(self._client) @cached_property - def ips(self) -> AsyncIPs: - return AsyncIPs(self._client) + def ips(self) -> AsyncIPsResource: + return AsyncIPsResource(self._client) @cached_property - def ip_lists(self) -> AsyncIPLists: - return AsyncIPLists(self._client) + def ip_lists(self) -> AsyncIPListsResource: + return AsyncIPListsResource(self._client) @cached_property - def miscategorizations(self) -> AsyncMiscategorizations: - return AsyncMiscategorizations(self._client) + def miscategorizations(self) -> AsyncMiscategorizationsResource: + return AsyncMiscategorizationsResource(self._client) @cached_property - def whois(self) -> AsyncWhois: - return AsyncWhois(self._client) + def whois(self) -> AsyncWhoisResource: + return AsyncWhoisResource(self._client) @cached_property - def indicator_feeds(self) -> AsyncIndicatorFeeds: - return AsyncIndicatorFeeds(self._client) + def indicator_feeds(self) -> AsyncIndicatorFeedsResource: + return AsyncIndicatorFeedsResource(self._client) @cached_property - def sinkholes(self) -> AsyncSinkholes: - return AsyncSinkholes(self._client) + def sinkholes(self) -> AsyncSinkholesResource: + return AsyncSinkholesResource(self._client) @cached_property - def attack_surface_report(self) -> AsyncAttackSurfaceReport: - return AsyncAttackSurfaceReport(self._client) + def attack_surface_report(self) -> AsyncAttackSurfaceReportResource: + return AsyncAttackSurfaceReportResource(self._client) @cached_property - def with_raw_response(self) -> AsyncIntelWithRawResponse: - return AsyncIntelWithRawResponse(self) + def with_raw_response(self) -> AsyncIntelResourceWithRawResponse: + return AsyncIntelResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncIntelWithStreamingResponse: - return AsyncIntelWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncIntelResourceWithStreamingResponse: + return AsyncIntelResourceWithStreamingResponse(self) -class IntelWithRawResponse: - def __init__(self, intel: Intel) -> None: +class IntelResourceWithRawResponse: + def __init__(self, intel: IntelResource) -> None: self._intel = intel @cached_property - def asn(self) -> ASNWithRawResponse: - return ASNWithRawResponse(self._intel.asn) + def asn(self) -> ASNResourceWithRawResponse: + return ASNResourceWithRawResponse(self._intel.asn) @cached_property - def dns(self) -> DNSWithRawResponse: - return DNSWithRawResponse(self._intel.dns) + def dns(self) -> DNSResourceWithRawResponse: + return DNSResourceWithRawResponse(self._intel.dns) @cached_property - def domains(self) -> DomainsWithRawResponse: - return DomainsWithRawResponse(self._intel.domains) + def domains(self) -> DomainsResourceWithRawResponse: + return DomainsResourceWithRawResponse(self._intel.domains) @cached_property def domain_history(self) -> DomainHistoryResourceWithRawResponse: return DomainHistoryResourceWithRawResponse(self._intel.domain_history) @cached_property - def ips(self) -> IPsWithRawResponse: - return IPsWithRawResponse(self._intel.ips) + def ips(self) -> IPsResourceWithRawResponse: + return IPsResourceWithRawResponse(self._intel.ips) @cached_property - def ip_lists(self) -> IPListsWithRawResponse: - return IPListsWithRawResponse(self._intel.ip_lists) + def ip_lists(self) -> IPListsResourceWithRawResponse: + return IPListsResourceWithRawResponse(self._intel.ip_lists) @cached_property - def miscategorizations(self) -> MiscategorizationsWithRawResponse: - return MiscategorizationsWithRawResponse(self._intel.miscategorizations) + def miscategorizations(self) -> MiscategorizationsResourceWithRawResponse: + return MiscategorizationsResourceWithRawResponse(self._intel.miscategorizations) @cached_property - def whois(self) -> WhoisWithRawResponse: - return WhoisWithRawResponse(self._intel.whois) + def whois(self) -> WhoisResourceWithRawResponse: + return WhoisResourceWithRawResponse(self._intel.whois) @cached_property - def indicator_feeds(self) -> IndicatorFeedsWithRawResponse: - return IndicatorFeedsWithRawResponse(self._intel.indicator_feeds) + def indicator_feeds(self) -> IndicatorFeedsResourceWithRawResponse: + return IndicatorFeedsResourceWithRawResponse(self._intel.indicator_feeds) @cached_property - def sinkholes(self) -> SinkholesWithRawResponse: - return SinkholesWithRawResponse(self._intel.sinkholes) + def sinkholes(self) -> SinkholesResourceWithRawResponse: + return SinkholesResourceWithRawResponse(self._intel.sinkholes) @cached_property - def attack_surface_report(self) -> AttackSurfaceReportWithRawResponse: - return AttackSurfaceReportWithRawResponse(self._intel.attack_surface_report) + def attack_surface_report(self) -> AttackSurfaceReportResourceWithRawResponse: + return AttackSurfaceReportResourceWithRawResponse(self._intel.attack_surface_report) -class AsyncIntelWithRawResponse: - def __init__(self, intel: AsyncIntel) -> None: +class AsyncIntelResourceWithRawResponse: + def __init__(self, intel: AsyncIntelResource) -> None: self._intel = intel @cached_property - def asn(self) -> AsyncASNWithRawResponse: - return AsyncASNWithRawResponse(self._intel.asn) + def asn(self) -> AsyncASNResourceWithRawResponse: + return AsyncASNResourceWithRawResponse(self._intel.asn) @cached_property - def dns(self) -> AsyncDNSWithRawResponse: - return AsyncDNSWithRawResponse(self._intel.dns) + def dns(self) -> AsyncDNSResourceWithRawResponse: + return AsyncDNSResourceWithRawResponse(self._intel.dns) @cached_property - def domains(self) -> AsyncDomainsWithRawResponse: - return AsyncDomainsWithRawResponse(self._intel.domains) + def domains(self) -> AsyncDomainsResourceWithRawResponse: + return AsyncDomainsResourceWithRawResponse(self._intel.domains) @cached_property def domain_history(self) -> AsyncDomainHistoryResourceWithRawResponse: return AsyncDomainHistoryResourceWithRawResponse(self._intel.domain_history) @cached_property - def ips(self) -> AsyncIPsWithRawResponse: - return AsyncIPsWithRawResponse(self._intel.ips) + def ips(self) -> AsyncIPsResourceWithRawResponse: + return AsyncIPsResourceWithRawResponse(self._intel.ips) @cached_property - def ip_lists(self) -> AsyncIPListsWithRawResponse: - return AsyncIPListsWithRawResponse(self._intel.ip_lists) + def ip_lists(self) -> AsyncIPListsResourceWithRawResponse: + return AsyncIPListsResourceWithRawResponse(self._intel.ip_lists) @cached_property - def miscategorizations(self) -> AsyncMiscategorizationsWithRawResponse: - return AsyncMiscategorizationsWithRawResponse(self._intel.miscategorizations) + def miscategorizations(self) -> AsyncMiscategorizationsResourceWithRawResponse: + return AsyncMiscategorizationsResourceWithRawResponse(self._intel.miscategorizations) @cached_property - def whois(self) -> AsyncWhoisWithRawResponse: - return AsyncWhoisWithRawResponse(self._intel.whois) + def whois(self) -> AsyncWhoisResourceWithRawResponse: + return AsyncWhoisResourceWithRawResponse(self._intel.whois) @cached_property - def indicator_feeds(self) -> AsyncIndicatorFeedsWithRawResponse: - return AsyncIndicatorFeedsWithRawResponse(self._intel.indicator_feeds) + def indicator_feeds(self) -> AsyncIndicatorFeedsResourceWithRawResponse: + return AsyncIndicatorFeedsResourceWithRawResponse(self._intel.indicator_feeds) @cached_property - def sinkholes(self) -> AsyncSinkholesWithRawResponse: - return AsyncSinkholesWithRawResponse(self._intel.sinkholes) + def sinkholes(self) -> AsyncSinkholesResourceWithRawResponse: + return AsyncSinkholesResourceWithRawResponse(self._intel.sinkholes) @cached_property - def attack_surface_report(self) -> AsyncAttackSurfaceReportWithRawResponse: - return AsyncAttackSurfaceReportWithRawResponse(self._intel.attack_surface_report) + def attack_surface_report(self) -> AsyncAttackSurfaceReportResourceWithRawResponse: + return AsyncAttackSurfaceReportResourceWithRawResponse(self._intel.attack_surface_report) -class IntelWithStreamingResponse: - def __init__(self, intel: Intel) -> None: +class IntelResourceWithStreamingResponse: + def __init__(self, intel: IntelResource) -> None: self._intel = intel @cached_property - def asn(self) -> ASNWithStreamingResponse: - return ASNWithStreamingResponse(self._intel.asn) + def asn(self) -> ASNResourceWithStreamingResponse: + return ASNResourceWithStreamingResponse(self._intel.asn) @cached_property - def dns(self) -> DNSWithStreamingResponse: - return DNSWithStreamingResponse(self._intel.dns) + def dns(self) -> DNSResourceWithStreamingResponse: + return DNSResourceWithStreamingResponse(self._intel.dns) @cached_property - def domains(self) -> DomainsWithStreamingResponse: - return DomainsWithStreamingResponse(self._intel.domains) + def domains(self) -> DomainsResourceWithStreamingResponse: + return DomainsResourceWithStreamingResponse(self._intel.domains) @cached_property def domain_history(self) -> DomainHistoryResourceWithStreamingResponse: return DomainHistoryResourceWithStreamingResponse(self._intel.domain_history) @cached_property - def ips(self) -> IPsWithStreamingResponse: - return IPsWithStreamingResponse(self._intel.ips) + def ips(self) -> IPsResourceWithStreamingResponse: + return IPsResourceWithStreamingResponse(self._intel.ips) @cached_property - def ip_lists(self) -> IPListsWithStreamingResponse: - return IPListsWithStreamingResponse(self._intel.ip_lists) + def ip_lists(self) -> IPListsResourceWithStreamingResponse: + return IPListsResourceWithStreamingResponse(self._intel.ip_lists) @cached_property - def miscategorizations(self) -> MiscategorizationsWithStreamingResponse: - return MiscategorizationsWithStreamingResponse(self._intel.miscategorizations) + def miscategorizations(self) -> MiscategorizationsResourceWithStreamingResponse: + return MiscategorizationsResourceWithStreamingResponse(self._intel.miscategorizations) @cached_property - def whois(self) -> WhoisWithStreamingResponse: - return WhoisWithStreamingResponse(self._intel.whois) + def whois(self) -> WhoisResourceWithStreamingResponse: + return WhoisResourceWithStreamingResponse(self._intel.whois) @cached_property - def indicator_feeds(self) -> IndicatorFeedsWithStreamingResponse: - return IndicatorFeedsWithStreamingResponse(self._intel.indicator_feeds) + def indicator_feeds(self) -> IndicatorFeedsResourceWithStreamingResponse: + return IndicatorFeedsResourceWithStreamingResponse(self._intel.indicator_feeds) @cached_property - def sinkholes(self) -> SinkholesWithStreamingResponse: - return SinkholesWithStreamingResponse(self._intel.sinkholes) + def sinkholes(self) -> SinkholesResourceWithStreamingResponse: + return SinkholesResourceWithStreamingResponse(self._intel.sinkholes) @cached_property - def attack_surface_report(self) -> AttackSurfaceReportWithStreamingResponse: - return AttackSurfaceReportWithStreamingResponse(self._intel.attack_surface_report) + def attack_surface_report(self) -> AttackSurfaceReportResourceWithStreamingResponse: + return AttackSurfaceReportResourceWithStreamingResponse(self._intel.attack_surface_report) -class AsyncIntelWithStreamingResponse: - def __init__(self, intel: AsyncIntel) -> None: +class AsyncIntelResourceWithStreamingResponse: + def __init__(self, intel: AsyncIntelResource) -> None: self._intel = intel @cached_property - def asn(self) -> AsyncASNWithStreamingResponse: - return AsyncASNWithStreamingResponse(self._intel.asn) + def asn(self) -> AsyncASNResourceWithStreamingResponse: + return AsyncASNResourceWithStreamingResponse(self._intel.asn) @cached_property - def dns(self) -> AsyncDNSWithStreamingResponse: - return AsyncDNSWithStreamingResponse(self._intel.dns) + def dns(self) -> AsyncDNSResourceWithStreamingResponse: + return AsyncDNSResourceWithStreamingResponse(self._intel.dns) @cached_property - def domains(self) -> AsyncDomainsWithStreamingResponse: - return AsyncDomainsWithStreamingResponse(self._intel.domains) + def domains(self) -> AsyncDomainsResourceWithStreamingResponse: + return AsyncDomainsResourceWithStreamingResponse(self._intel.domains) @cached_property def domain_history(self) -> AsyncDomainHistoryResourceWithStreamingResponse: return AsyncDomainHistoryResourceWithStreamingResponse(self._intel.domain_history) @cached_property - def ips(self) -> AsyncIPsWithStreamingResponse: - return AsyncIPsWithStreamingResponse(self._intel.ips) + def ips(self) -> AsyncIPsResourceWithStreamingResponse: + return AsyncIPsResourceWithStreamingResponse(self._intel.ips) @cached_property - def ip_lists(self) -> AsyncIPListsWithStreamingResponse: - return AsyncIPListsWithStreamingResponse(self._intel.ip_lists) + def ip_lists(self) -> AsyncIPListsResourceWithStreamingResponse: + return AsyncIPListsResourceWithStreamingResponse(self._intel.ip_lists) @cached_property - def miscategorizations(self) -> AsyncMiscategorizationsWithStreamingResponse: - return AsyncMiscategorizationsWithStreamingResponse(self._intel.miscategorizations) + def miscategorizations(self) -> AsyncMiscategorizationsResourceWithStreamingResponse: + return AsyncMiscategorizationsResourceWithStreamingResponse(self._intel.miscategorizations) @cached_property - def whois(self) -> AsyncWhoisWithStreamingResponse: - return AsyncWhoisWithStreamingResponse(self._intel.whois) + def whois(self) -> AsyncWhoisResourceWithStreamingResponse: + return AsyncWhoisResourceWithStreamingResponse(self._intel.whois) @cached_property - def indicator_feeds(self) -> AsyncIndicatorFeedsWithStreamingResponse: - return AsyncIndicatorFeedsWithStreamingResponse(self._intel.indicator_feeds) + def indicator_feeds(self) -> AsyncIndicatorFeedsResourceWithStreamingResponse: + return AsyncIndicatorFeedsResourceWithStreamingResponse(self._intel.indicator_feeds) @cached_property - def sinkholes(self) -> AsyncSinkholesWithStreamingResponse: - return AsyncSinkholesWithStreamingResponse(self._intel.sinkholes) + def sinkholes(self) -> AsyncSinkholesResourceWithStreamingResponse: + return AsyncSinkholesResourceWithStreamingResponse(self._intel.sinkholes) @cached_property - def attack_surface_report(self) -> AsyncAttackSurfaceReportWithStreamingResponse: - return AsyncAttackSurfaceReportWithStreamingResponse(self._intel.attack_surface_report) + def attack_surface_report(self) -> AsyncAttackSurfaceReportResourceWithStreamingResponse: + return AsyncAttackSurfaceReportResourceWithStreamingResponse(self._intel.attack_surface_report) diff --git a/src/cloudflare/resources/intel/ip_lists.py b/src/cloudflare/resources/intel/ip_lists.py index 8bd97aede85..78bb216c729 100644 --- a/src/cloudflare/resources/intel/ip_lists.py +++ b/src/cloudflare/resources/intel/ip_lists.py @@ -21,17 +21,17 @@ ) from ...types.intel.ip_list_get_response import IPListGetResponse -__all__ = ["IPLists", "AsyncIPLists"] +__all__ = ["IPListsResource", "AsyncIPListsResource"] -class IPLists(SyncAPIResource): +class IPListsResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> IPListsWithRawResponse: - return IPListsWithRawResponse(self) + def with_raw_response(self) -> IPListsResourceWithRawResponse: + return IPListsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> IPListsWithStreamingResponse: - return IPListsWithStreamingResponse(self) + def with_streaming_response(self) -> IPListsResourceWithStreamingResponse: + return IPListsResourceWithStreamingResponse(self) def get( self, @@ -73,14 +73,14 @@ def get( ) -class AsyncIPLists(AsyncAPIResource): +class AsyncIPListsResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncIPListsWithRawResponse: - return AsyncIPListsWithRawResponse(self) + def with_raw_response(self) -> AsyncIPListsResourceWithRawResponse: + return AsyncIPListsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncIPListsWithStreamingResponse: - return AsyncIPListsWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncIPListsResourceWithStreamingResponse: + return AsyncIPListsResourceWithStreamingResponse(self) async def get( self, @@ -122,8 +122,8 @@ async def get( ) -class IPListsWithRawResponse: - def __init__(self, ip_lists: IPLists) -> None: +class IPListsResourceWithRawResponse: + def __init__(self, ip_lists: IPListsResource) -> None: self._ip_lists = ip_lists self.get = to_raw_response_wrapper( @@ -131,8 +131,8 @@ def __init__(self, ip_lists: IPLists) -> None: ) -class AsyncIPListsWithRawResponse: - def __init__(self, ip_lists: AsyncIPLists) -> None: +class AsyncIPListsResourceWithRawResponse: + def __init__(self, ip_lists: AsyncIPListsResource) -> None: self._ip_lists = ip_lists self.get = async_to_raw_response_wrapper( @@ -140,8 +140,8 @@ def __init__(self, ip_lists: AsyncIPLists) -> None: ) -class IPListsWithStreamingResponse: - def __init__(self, ip_lists: IPLists) -> None: +class IPListsResourceWithStreamingResponse: + def __init__(self, ip_lists: IPListsResource) -> None: self._ip_lists = ip_lists self.get = to_streamed_response_wrapper( @@ -149,8 +149,8 @@ def __init__(self, ip_lists: IPLists) -> None: ) -class AsyncIPListsWithStreamingResponse: - def __init__(self, ip_lists: AsyncIPLists) -> None: +class AsyncIPListsResourceWithStreamingResponse: + def __init__(self, ip_lists: AsyncIPListsResource) -> None: self._ip_lists = ip_lists self.get = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/intel/ips.py b/src/cloudflare/resources/intel/ips.py index faec69245e1..f205d9a9afd 100644 --- a/src/cloudflare/resources/intel/ips.py +++ b/src/cloudflare/resources/intel/ips.py @@ -26,17 +26,17 @@ ) from ...types.intel.ip_get_response import IPGetResponse -__all__ = ["IPs", "AsyncIPs"] +__all__ = ["IPsResource", "AsyncIPsResource"] -class IPs(SyncAPIResource): +class IPsResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> IPsWithRawResponse: - return IPsWithRawResponse(self) + def with_raw_response(self) -> IPsResourceWithRawResponse: + return IPsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> IPsWithStreamingResponse: - return IPsWithStreamingResponse(self) + def with_streaming_response(self) -> IPsResourceWithStreamingResponse: + return IPsResourceWithStreamingResponse(self) def get( self, @@ -87,14 +87,14 @@ def get( ) -class AsyncIPs(AsyncAPIResource): +class AsyncIPsResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncIPsWithRawResponse: - return AsyncIPsWithRawResponse(self) + def with_raw_response(self) -> AsyncIPsResourceWithRawResponse: + return AsyncIPsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncIPsWithStreamingResponse: - return AsyncIPsWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncIPsResourceWithStreamingResponse: + return AsyncIPsResourceWithStreamingResponse(self) async def get( self, @@ -145,8 +145,8 @@ async def get( ) -class IPsWithRawResponse: - def __init__(self, ips: IPs) -> None: +class IPsResourceWithRawResponse: + def __init__(self, ips: IPsResource) -> None: self._ips = ips self.get = to_raw_response_wrapper( @@ -154,8 +154,8 @@ def __init__(self, ips: IPs) -> None: ) -class AsyncIPsWithRawResponse: - def __init__(self, ips: AsyncIPs) -> None: +class AsyncIPsResourceWithRawResponse: + def __init__(self, ips: AsyncIPsResource) -> None: self._ips = ips self.get = async_to_raw_response_wrapper( @@ -163,8 +163,8 @@ def __init__(self, ips: AsyncIPs) -> None: ) -class IPsWithStreamingResponse: - def __init__(self, ips: IPs) -> None: +class IPsResourceWithStreamingResponse: + def __init__(self, ips: IPsResource) -> None: self._ips = ips self.get = to_streamed_response_wrapper( @@ -172,8 +172,8 @@ def __init__(self, ips: IPs) -> None: ) -class AsyncIPsWithStreamingResponse: - def __init__(self, ips: AsyncIPs) -> None: +class AsyncIPsResourceWithStreamingResponse: + def __init__(self, ips: AsyncIPsResource) -> None: self._ips = ips self.get = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/intel/miscategorizations.py b/src/cloudflare/resources/intel/miscategorizations.py index 78abcc863e6..266ed05d040 100644 --- a/src/cloudflare/resources/intel/miscategorizations.py +++ b/src/cloudflare/resources/intel/miscategorizations.py @@ -27,17 +27,17 @@ ) from ...types.intel.miscategorization_create_response import MiscategorizationCreateResponse -__all__ = ["Miscategorizations", "AsyncMiscategorizations"] +__all__ = ["MiscategorizationsResource", "AsyncMiscategorizationsResource"] -class Miscategorizations(SyncAPIResource): +class MiscategorizationsResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> MiscategorizationsWithRawResponse: - return MiscategorizationsWithRawResponse(self) + def with_raw_response(self) -> MiscategorizationsResourceWithRawResponse: + return MiscategorizationsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> MiscategorizationsWithStreamingResponse: - return MiscategorizationsWithStreamingResponse(self) + def with_streaming_response(self) -> MiscategorizationsResourceWithStreamingResponse: + return MiscategorizationsResourceWithStreamingResponse(self) def create( self, @@ -117,14 +117,14 @@ def create( ) -class AsyncMiscategorizations(AsyncAPIResource): +class AsyncMiscategorizationsResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncMiscategorizationsWithRawResponse: - return AsyncMiscategorizationsWithRawResponse(self) + def with_raw_response(self) -> AsyncMiscategorizationsResourceWithRawResponse: + return AsyncMiscategorizationsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncMiscategorizationsWithStreamingResponse: - return AsyncMiscategorizationsWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncMiscategorizationsResourceWithStreamingResponse: + return AsyncMiscategorizationsResourceWithStreamingResponse(self) async def create( self, @@ -204,8 +204,8 @@ async def create( ) -class MiscategorizationsWithRawResponse: - def __init__(self, miscategorizations: Miscategorizations) -> None: +class MiscategorizationsResourceWithRawResponse: + def __init__(self, miscategorizations: MiscategorizationsResource) -> None: self._miscategorizations = miscategorizations self.create = to_raw_response_wrapper( @@ -213,8 +213,8 @@ def __init__(self, miscategorizations: Miscategorizations) -> None: ) -class AsyncMiscategorizationsWithRawResponse: - def __init__(self, miscategorizations: AsyncMiscategorizations) -> None: +class AsyncMiscategorizationsResourceWithRawResponse: + def __init__(self, miscategorizations: AsyncMiscategorizationsResource) -> None: self._miscategorizations = miscategorizations self.create = async_to_raw_response_wrapper( @@ -222,8 +222,8 @@ def __init__(self, miscategorizations: AsyncMiscategorizations) -> None: ) -class MiscategorizationsWithStreamingResponse: - def __init__(self, miscategorizations: Miscategorizations) -> None: +class MiscategorizationsResourceWithStreamingResponse: + def __init__(self, miscategorizations: MiscategorizationsResource) -> None: self._miscategorizations = miscategorizations self.create = to_streamed_response_wrapper( @@ -231,8 +231,8 @@ def __init__(self, miscategorizations: Miscategorizations) -> None: ) -class AsyncMiscategorizationsWithStreamingResponse: - def __init__(self, miscategorizations: AsyncMiscategorizations) -> None: +class AsyncMiscategorizationsResourceWithStreamingResponse: + def __init__(self, miscategorizations: AsyncMiscategorizationsResource) -> None: self._miscategorizations = miscategorizations self.create = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/intel/sinkholes.py b/src/cloudflare/resources/intel/sinkholes.py index bf4ebc81fe8..39757a98044 100644 --- a/src/cloudflare/resources/intel/sinkholes.py +++ b/src/cloudflare/resources/intel/sinkholes.py @@ -20,17 +20,17 @@ ) from ...types.intel.sinkhole import Sinkhole -__all__ = ["Sinkholes", "AsyncSinkholes"] +__all__ = ["SinkholesResource", "AsyncSinkholesResource"] -class Sinkholes(SyncAPIResource): +class SinkholesResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> SinkholesWithRawResponse: - return SinkholesWithRawResponse(self) + def with_raw_response(self) -> SinkholesResourceWithRawResponse: + return SinkholesResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> SinkholesWithStreamingResponse: - return SinkholesWithStreamingResponse(self) + def with_streaming_response(self) -> SinkholesResourceWithStreamingResponse: + return SinkholesResourceWithStreamingResponse(self) def list( self, @@ -69,14 +69,14 @@ def list( ) -class AsyncSinkholes(AsyncAPIResource): +class AsyncSinkholesResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncSinkholesWithRawResponse: - return AsyncSinkholesWithRawResponse(self) + def with_raw_response(self) -> AsyncSinkholesResourceWithRawResponse: + return AsyncSinkholesResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncSinkholesWithStreamingResponse: - return AsyncSinkholesWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncSinkholesResourceWithStreamingResponse: + return AsyncSinkholesResourceWithStreamingResponse(self) def list( self, @@ -115,8 +115,8 @@ def list( ) -class SinkholesWithRawResponse: - def __init__(self, sinkholes: Sinkholes) -> None: +class SinkholesResourceWithRawResponse: + def __init__(self, sinkholes: SinkholesResource) -> None: self._sinkholes = sinkholes self.list = to_raw_response_wrapper( @@ -124,8 +124,8 @@ def __init__(self, sinkholes: Sinkholes) -> None: ) -class AsyncSinkholesWithRawResponse: - def __init__(self, sinkholes: AsyncSinkholes) -> None: +class AsyncSinkholesResourceWithRawResponse: + def __init__(self, sinkholes: AsyncSinkholesResource) -> None: self._sinkholes = sinkholes self.list = async_to_raw_response_wrapper( @@ -133,8 +133,8 @@ def __init__(self, sinkholes: AsyncSinkholes) -> None: ) -class SinkholesWithStreamingResponse: - def __init__(self, sinkholes: Sinkholes) -> None: +class SinkholesResourceWithStreamingResponse: + def __init__(self, sinkholes: SinkholesResource) -> None: self._sinkholes = sinkholes self.list = to_streamed_response_wrapper( @@ -142,8 +142,8 @@ def __init__(self, sinkholes: Sinkholes) -> None: ) -class AsyncSinkholesWithStreamingResponse: - def __init__(self, sinkholes: AsyncSinkholes) -> None: +class AsyncSinkholesResourceWithStreamingResponse: + def __init__(self, sinkholes: AsyncSinkholesResource) -> None: self._sinkholes = sinkholes self.list = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/intel/whois.py b/src/cloudflare/resources/intel/whois.py index b4d2e672f64..570d37b6095 100644 --- a/src/cloudflare/resources/intel/whois.py +++ b/src/cloudflare/resources/intel/whois.py @@ -20,22 +20,23 @@ async_to_streamed_response_wrapper, ) from ..._wrappers import ResultWrapper -from ...types.intel import whois, whois_get_params +from ...types.intel import whois_get_params from ..._base_client import ( make_request_options, ) +from ...types.intel.whois import Whois -__all__ = ["Whois", "AsyncWhois"] +__all__ = ["WhoisResource", "AsyncWhoisResource"] -class Whois(SyncAPIResource): +class WhoisResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> WhoisWithRawResponse: - return WhoisWithRawResponse(self) + def with_raw_response(self) -> WhoisResourceWithRawResponse: + return WhoisResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> WhoisWithStreamingResponse: - return WhoisWithStreamingResponse(self) + def with_streaming_response(self) -> WhoisResourceWithStreamingResponse: + return WhoisResourceWithStreamingResponse(self) def get( self, @@ -48,7 +49,7 @@ def get( extra_query: Query | None = None, extra_body: Body | None = None, timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, - ) -> whois.Whois: + ) -> Whois: """ Get WHOIS Record @@ -73,20 +74,20 @@ def get( extra_body=extra_body, timeout=timeout, query=maybe_transform({"domain": domain}, whois_get_params.WhoisGetParams), - post_parser=ResultWrapper[whois.Whois]._unwrapper, + post_parser=ResultWrapper[Whois]._unwrapper, ), - cast_to=cast(Type[whois.Whois], ResultWrapper[whois.Whois]), + cast_to=cast(Type[Whois], ResultWrapper[Whois]), ) -class AsyncWhois(AsyncAPIResource): +class AsyncWhoisResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncWhoisWithRawResponse: - return AsyncWhoisWithRawResponse(self) + def with_raw_response(self) -> AsyncWhoisResourceWithRawResponse: + return AsyncWhoisResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncWhoisWithStreamingResponse: - return AsyncWhoisWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncWhoisResourceWithStreamingResponse: + return AsyncWhoisResourceWithStreamingResponse(self) async def get( self, @@ -99,7 +100,7 @@ async def get( extra_query: Query | None = None, extra_body: Body | None = None, timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, - ) -> whois.Whois: + ) -> Whois: """ Get WHOIS Record @@ -124,14 +125,14 @@ async def get( extra_body=extra_body, timeout=timeout, query=await async_maybe_transform({"domain": domain}, whois_get_params.WhoisGetParams), - post_parser=ResultWrapper[whois.Whois]._unwrapper, + post_parser=ResultWrapper[Whois]._unwrapper, ), - cast_to=cast(Type[whois.Whois], ResultWrapper[whois.Whois]), + cast_to=cast(Type[Whois], ResultWrapper[Whois]), ) -class WhoisWithRawResponse: - def __init__(self, whois: Whois) -> None: +class WhoisResourceWithRawResponse: + def __init__(self, whois: WhoisResource) -> None: self._whois = whois self.get = to_raw_response_wrapper( @@ -139,8 +140,8 @@ def __init__(self, whois: Whois) -> None: ) -class AsyncWhoisWithRawResponse: - def __init__(self, whois: AsyncWhois) -> None: +class AsyncWhoisResourceWithRawResponse: + def __init__(self, whois: AsyncWhoisResource) -> None: self._whois = whois self.get = async_to_raw_response_wrapper( @@ -148,8 +149,8 @@ def __init__(self, whois: AsyncWhois) -> None: ) -class WhoisWithStreamingResponse: - def __init__(self, whois: Whois) -> None: +class WhoisResourceWithStreamingResponse: + def __init__(self, whois: WhoisResource) -> None: self._whois = whois self.get = to_streamed_response_wrapper( @@ -157,8 +158,8 @@ def __init__(self, whois: Whois) -> None: ) -class AsyncWhoisWithStreamingResponse: - def __init__(self, whois: AsyncWhois) -> None: +class AsyncWhoisResourceWithStreamingResponse: + def __init__(self, whois: AsyncWhoisResource) -> None: self._whois = whois self.get = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/ips.py b/src/cloudflare/resources/ips.py index 9c22854e0c4..c5d99f25d6b 100644 --- a/src/cloudflare/resources/ips.py +++ b/src/cloudflare/resources/ips.py @@ -26,17 +26,17 @@ ) from ..types.ips.ip_list_response import IPListResponse -__all__ = ["IPs", "AsyncIPs"] +__all__ = ["IPsResource", "AsyncIPsResource"] -class IPs(SyncAPIResource): +class IPsResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> IPsWithRawResponse: - return IPsWithRawResponse(self) + def with_raw_response(self) -> IPsResourceWithRawResponse: + return IPsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> IPsWithStreamingResponse: - return IPsWithStreamingResponse(self) + def with_streaming_response(self) -> IPsResourceWithStreamingResponse: + return IPsResourceWithStreamingResponse(self) def list( self, @@ -85,14 +85,14 @@ def list( ) -class AsyncIPs(AsyncAPIResource): +class AsyncIPsResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncIPsWithRawResponse: - return AsyncIPsWithRawResponse(self) + def with_raw_response(self) -> AsyncIPsResourceWithRawResponse: + return AsyncIPsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncIPsWithStreamingResponse: - return AsyncIPsWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncIPsResourceWithStreamingResponse: + return AsyncIPsResourceWithStreamingResponse(self) async def list( self, @@ -141,8 +141,8 @@ async def list( ) -class IPsWithRawResponse: - def __init__(self, ips: IPs) -> None: +class IPsResourceWithRawResponse: + def __init__(self, ips: IPsResource) -> None: self._ips = ips self.list = to_raw_response_wrapper( @@ -150,8 +150,8 @@ def __init__(self, ips: IPs) -> None: ) -class AsyncIPsWithRawResponse: - def __init__(self, ips: AsyncIPs) -> None: +class AsyncIPsResourceWithRawResponse: + def __init__(self, ips: AsyncIPsResource) -> None: self._ips = ips self.list = async_to_raw_response_wrapper( @@ -159,8 +159,8 @@ def __init__(self, ips: AsyncIPs) -> None: ) -class IPsWithStreamingResponse: - def __init__(self, ips: IPs) -> None: +class IPsResourceWithStreamingResponse: + def __init__(self, ips: IPsResource) -> None: self._ips = ips self.list = to_streamed_response_wrapper( @@ -168,8 +168,8 @@ def __init__(self, ips: IPs) -> None: ) -class AsyncIPsWithStreamingResponse: - def __init__(self, ips: AsyncIPs) -> None: +class AsyncIPsResourceWithStreamingResponse: + def __init__(self, ips: AsyncIPsResource) -> None: self._ips = ips self.list = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/keyless_certificates.py b/src/cloudflare/resources/keyless_certificates.py index 43c52e2c1b3..9f805b11e3e 100644 --- a/src/cloudflare/resources/keyless_certificates.py +++ b/src/cloudflare/resources/keyless_certificates.py @@ -36,17 +36,17 @@ from ..types.keyless_certificates.keyless_certificate import KeylessCertificate from ..types.keyless_certificates.keyless_certificate_delete_response import KeylessCertificateDeleteResponse -__all__ = ["KeylessCertificates", "AsyncKeylessCertificates"] +__all__ = ["KeylessCertificatesResource", "AsyncKeylessCertificatesResource"] -class KeylessCertificates(SyncAPIResource): +class KeylessCertificatesResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> KeylessCertificatesWithRawResponse: - return KeylessCertificatesWithRawResponse(self) + def with_raw_response(self) -> KeylessCertificatesResourceWithRawResponse: + return KeylessCertificatesResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> KeylessCertificatesWithStreamingResponse: - return KeylessCertificatesWithStreamingResponse(self) + def with_streaming_response(self) -> KeylessCertificatesResourceWithStreamingResponse: + return KeylessCertificatesResourceWithStreamingResponse(self) def create( self, @@ -325,14 +325,14 @@ def get( ) -class AsyncKeylessCertificates(AsyncAPIResource): +class AsyncKeylessCertificatesResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncKeylessCertificatesWithRawResponse: - return AsyncKeylessCertificatesWithRawResponse(self) + def with_raw_response(self) -> AsyncKeylessCertificatesResourceWithRawResponse: + return AsyncKeylessCertificatesResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncKeylessCertificatesWithStreamingResponse: - return AsyncKeylessCertificatesWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncKeylessCertificatesResourceWithStreamingResponse: + return AsyncKeylessCertificatesResourceWithStreamingResponse(self) async def create( self, @@ -611,8 +611,8 @@ async def get( ) -class KeylessCertificatesWithRawResponse: - def __init__(self, keyless_certificates: KeylessCertificates) -> None: +class KeylessCertificatesResourceWithRawResponse: + def __init__(self, keyless_certificates: KeylessCertificatesResource) -> None: self._keyless_certificates = keyless_certificates self.create = to_raw_response_wrapper( @@ -632,8 +632,8 @@ def __init__(self, keyless_certificates: KeylessCertificates) -> None: ) -class AsyncKeylessCertificatesWithRawResponse: - def __init__(self, keyless_certificates: AsyncKeylessCertificates) -> None: +class AsyncKeylessCertificatesResourceWithRawResponse: + def __init__(self, keyless_certificates: AsyncKeylessCertificatesResource) -> None: self._keyless_certificates = keyless_certificates self.create = async_to_raw_response_wrapper( @@ -653,8 +653,8 @@ def __init__(self, keyless_certificates: AsyncKeylessCertificates) -> None: ) -class KeylessCertificatesWithStreamingResponse: - def __init__(self, keyless_certificates: KeylessCertificates) -> None: +class KeylessCertificatesResourceWithStreamingResponse: + def __init__(self, keyless_certificates: KeylessCertificatesResource) -> None: self._keyless_certificates = keyless_certificates self.create = to_streamed_response_wrapper( @@ -674,8 +674,8 @@ def __init__(self, keyless_certificates: KeylessCertificates) -> None: ) -class AsyncKeylessCertificatesWithStreamingResponse: - def __init__(self, keyless_certificates: AsyncKeylessCertificates) -> None: +class AsyncKeylessCertificatesResourceWithStreamingResponse: + def __init__(self, keyless_certificates: AsyncKeylessCertificatesResource) -> None: self._keyless_certificates = keyless_certificates self.create = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/kv/__init__.py b/src/cloudflare/resources/kv/__init__.py index 142fba07f20..e79d23bddee 100644 --- a/src/cloudflare/resources/kv/__init__.py +++ b/src/cloudflare/resources/kv/__init__.py @@ -1,33 +1,33 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from .kv import ( - KV, - AsyncKV, - KVWithRawResponse, - AsyncKVWithRawResponse, - KVWithStreamingResponse, - AsyncKVWithStreamingResponse, + KVResource, + AsyncKVResource, + KVResourceWithRawResponse, + AsyncKVResourceWithRawResponse, + KVResourceWithStreamingResponse, + AsyncKVResourceWithStreamingResponse, ) from .namespaces import ( - Namespaces, - AsyncNamespaces, - NamespacesWithRawResponse, - AsyncNamespacesWithRawResponse, - NamespacesWithStreamingResponse, - AsyncNamespacesWithStreamingResponse, + NamespacesResource, + AsyncNamespacesResource, + NamespacesResourceWithRawResponse, + AsyncNamespacesResourceWithRawResponse, + NamespacesResourceWithStreamingResponse, + AsyncNamespacesResourceWithStreamingResponse, ) __all__ = [ - "Namespaces", - "AsyncNamespaces", - "NamespacesWithRawResponse", - "AsyncNamespacesWithRawResponse", - "NamespacesWithStreamingResponse", - "AsyncNamespacesWithStreamingResponse", - "KV", - "AsyncKV", - "KVWithRawResponse", - "AsyncKVWithRawResponse", - "KVWithStreamingResponse", - "AsyncKVWithStreamingResponse", + "NamespacesResource", + "AsyncNamespacesResource", + "NamespacesResourceWithRawResponse", + "AsyncNamespacesResourceWithRawResponse", + "NamespacesResourceWithStreamingResponse", + "AsyncNamespacesResourceWithStreamingResponse", + "KVResource", + "AsyncKVResource", + "KVResourceWithRawResponse", + "AsyncKVResourceWithRawResponse", + "KVResourceWithStreamingResponse", + "AsyncKVResourceWithStreamingResponse", ] diff --git a/src/cloudflare/resources/kv/kv.py b/src/cloudflare/resources/kv/kv.py index 5ac3bd8ee07..4adb24ff8f6 100644 --- a/src/cloudflare/resources/kv/kv.py +++ b/src/cloudflare/resources/kv/kv.py @@ -4,78 +4,78 @@ from ..._compat import cached_property from .namespaces import ( - Namespaces, - AsyncNamespaces, - NamespacesWithRawResponse, - AsyncNamespacesWithRawResponse, - NamespacesWithStreamingResponse, - AsyncNamespacesWithStreamingResponse, + NamespacesResource, + AsyncNamespacesResource, + NamespacesResourceWithRawResponse, + AsyncNamespacesResourceWithRawResponse, + NamespacesResourceWithStreamingResponse, + AsyncNamespacesResourceWithStreamingResponse, ) from ..._resource import SyncAPIResource, AsyncAPIResource -from .namespaces.namespaces import Namespaces, AsyncNamespaces +from .namespaces.namespaces import NamespacesResource, AsyncNamespacesResource -__all__ = ["KV", "AsyncKV"] +__all__ = ["KVResource", "AsyncKVResource"] -class KV(SyncAPIResource): +class KVResource(SyncAPIResource): @cached_property - def namespaces(self) -> Namespaces: - return Namespaces(self._client) + def namespaces(self) -> NamespacesResource: + return NamespacesResource(self._client) @cached_property - def with_raw_response(self) -> KVWithRawResponse: - return KVWithRawResponse(self) + def with_raw_response(self) -> KVResourceWithRawResponse: + return KVResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> KVWithStreamingResponse: - return KVWithStreamingResponse(self) + def with_streaming_response(self) -> KVResourceWithStreamingResponse: + return KVResourceWithStreamingResponse(self) -class AsyncKV(AsyncAPIResource): +class AsyncKVResource(AsyncAPIResource): @cached_property - def namespaces(self) -> AsyncNamespaces: - return AsyncNamespaces(self._client) + def namespaces(self) -> AsyncNamespacesResource: + return AsyncNamespacesResource(self._client) @cached_property - def with_raw_response(self) -> AsyncKVWithRawResponse: - return AsyncKVWithRawResponse(self) + def with_raw_response(self) -> AsyncKVResourceWithRawResponse: + return AsyncKVResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncKVWithStreamingResponse: - return AsyncKVWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncKVResourceWithStreamingResponse: + return AsyncKVResourceWithStreamingResponse(self) -class KVWithRawResponse: - def __init__(self, kv: KV) -> None: +class KVResourceWithRawResponse: + def __init__(self, kv: KVResource) -> None: self._kv = kv @cached_property - def namespaces(self) -> NamespacesWithRawResponse: - return NamespacesWithRawResponse(self._kv.namespaces) + def namespaces(self) -> NamespacesResourceWithRawResponse: + return NamespacesResourceWithRawResponse(self._kv.namespaces) -class AsyncKVWithRawResponse: - def __init__(self, kv: AsyncKV) -> None: +class AsyncKVResourceWithRawResponse: + def __init__(self, kv: AsyncKVResource) -> None: self._kv = kv @cached_property - def namespaces(self) -> AsyncNamespacesWithRawResponse: - return AsyncNamespacesWithRawResponse(self._kv.namespaces) + def namespaces(self) -> AsyncNamespacesResourceWithRawResponse: + return AsyncNamespacesResourceWithRawResponse(self._kv.namespaces) -class KVWithStreamingResponse: - def __init__(self, kv: KV) -> None: +class KVResourceWithStreamingResponse: + def __init__(self, kv: KVResource) -> None: self._kv = kv @cached_property - def namespaces(self) -> NamespacesWithStreamingResponse: - return NamespacesWithStreamingResponse(self._kv.namespaces) + def namespaces(self) -> NamespacesResourceWithStreamingResponse: + return NamespacesResourceWithStreamingResponse(self._kv.namespaces) -class AsyncKVWithStreamingResponse: - def __init__(self, kv: AsyncKV) -> None: +class AsyncKVResourceWithStreamingResponse: + def __init__(self, kv: AsyncKVResource) -> None: self._kv = kv @cached_property - def namespaces(self) -> AsyncNamespacesWithStreamingResponse: - return AsyncNamespacesWithStreamingResponse(self._kv.namespaces) + def namespaces(self) -> AsyncNamespacesResourceWithStreamingResponse: + return AsyncNamespacesResourceWithStreamingResponse(self._kv.namespaces) diff --git a/src/cloudflare/resources/kv/namespaces/__init__.py b/src/cloudflare/resources/kv/namespaces/__init__.py index 6bf42263da9..0784dbb3103 100644 --- a/src/cloudflare/resources/kv/namespaces/__init__.py +++ b/src/cloudflare/resources/kv/namespaces/__init__.py @@ -1,75 +1,75 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from .bulk import ( - Bulk, - AsyncBulk, - BulkWithRawResponse, - AsyncBulkWithRawResponse, - BulkWithStreamingResponse, - AsyncBulkWithStreamingResponse, + BulkResource, + AsyncBulkResource, + BulkResourceWithRawResponse, + AsyncBulkResourceWithRawResponse, + BulkResourceWithStreamingResponse, + AsyncBulkResourceWithStreamingResponse, ) from .keys import ( - Keys, - AsyncKeys, - KeysWithRawResponse, - AsyncKeysWithRawResponse, - KeysWithStreamingResponse, - AsyncKeysWithStreamingResponse, + KeysResource, + AsyncKeysResource, + KeysResourceWithRawResponse, + AsyncKeysResourceWithRawResponse, + KeysResourceWithStreamingResponse, + AsyncKeysResourceWithStreamingResponse, ) from .values import ( - Values, - AsyncValues, - ValuesWithRawResponse, - AsyncValuesWithRawResponse, - ValuesWithStreamingResponse, - AsyncValuesWithStreamingResponse, + ValuesResource, + AsyncValuesResource, + ValuesResourceWithRawResponse, + AsyncValuesResourceWithRawResponse, + ValuesResourceWithStreamingResponse, + AsyncValuesResourceWithStreamingResponse, ) from .metadata import ( - Metadata, - AsyncMetadata, - MetadataWithRawResponse, - AsyncMetadataWithRawResponse, - MetadataWithStreamingResponse, - AsyncMetadataWithStreamingResponse, + MetadataResource, + AsyncMetadataResource, + MetadataResourceWithRawResponse, + AsyncMetadataResourceWithRawResponse, + MetadataResourceWithStreamingResponse, + AsyncMetadataResourceWithStreamingResponse, ) from .namespaces import ( - Namespaces, - AsyncNamespaces, - NamespacesWithRawResponse, - AsyncNamespacesWithRawResponse, - NamespacesWithStreamingResponse, - AsyncNamespacesWithStreamingResponse, + NamespacesResource, + AsyncNamespacesResource, + NamespacesResourceWithRawResponse, + AsyncNamespacesResourceWithRawResponse, + NamespacesResourceWithStreamingResponse, + AsyncNamespacesResourceWithStreamingResponse, ) __all__ = [ - "Bulk", - "AsyncBulk", - "BulkWithRawResponse", - "AsyncBulkWithRawResponse", - "BulkWithStreamingResponse", - "AsyncBulkWithStreamingResponse", - "Keys", - "AsyncKeys", - "KeysWithRawResponse", - "AsyncKeysWithRawResponse", - "KeysWithStreamingResponse", - "AsyncKeysWithStreamingResponse", - "Metadata", - "AsyncMetadata", - "MetadataWithRawResponse", - "AsyncMetadataWithRawResponse", - "MetadataWithStreamingResponse", - "AsyncMetadataWithStreamingResponse", - "Values", - "AsyncValues", - "ValuesWithRawResponse", - "AsyncValuesWithRawResponse", - "ValuesWithStreamingResponse", - "AsyncValuesWithStreamingResponse", - "Namespaces", - "AsyncNamespaces", - "NamespacesWithRawResponse", - "AsyncNamespacesWithRawResponse", - "NamespacesWithStreamingResponse", - "AsyncNamespacesWithStreamingResponse", + "BulkResource", + "AsyncBulkResource", + "BulkResourceWithRawResponse", + "AsyncBulkResourceWithRawResponse", + "BulkResourceWithStreamingResponse", + "AsyncBulkResourceWithStreamingResponse", + "KeysResource", + "AsyncKeysResource", + "KeysResourceWithRawResponse", + "AsyncKeysResourceWithRawResponse", + "KeysResourceWithStreamingResponse", + "AsyncKeysResourceWithStreamingResponse", + "MetadataResource", + "AsyncMetadataResource", + "MetadataResourceWithRawResponse", + "AsyncMetadataResourceWithRawResponse", + "MetadataResourceWithStreamingResponse", + "AsyncMetadataResourceWithStreamingResponse", + "ValuesResource", + "AsyncValuesResource", + "ValuesResourceWithRawResponse", + "AsyncValuesResourceWithRawResponse", + "ValuesResourceWithStreamingResponse", + "AsyncValuesResourceWithStreamingResponse", + "NamespacesResource", + "AsyncNamespacesResource", + "NamespacesResourceWithRawResponse", + "AsyncNamespacesResourceWithRawResponse", + "NamespacesResourceWithStreamingResponse", + "AsyncNamespacesResourceWithStreamingResponse", ] diff --git a/src/cloudflare/resources/kv/namespaces/bulk.py b/src/cloudflare/resources/kv/namespaces/bulk.py index 75110535dd8..0df5b19e076 100644 --- a/src/cloudflare/resources/kv/namespaces/bulk.py +++ b/src/cloudflare/resources/kv/namespaces/bulk.py @@ -27,17 +27,17 @@ from ....types.kv.namespaces.bulk_delete_response import BulkDeleteResponse from ....types.kv.namespaces.bulk_update_response import BulkUpdateResponse -__all__ = ["Bulk", "AsyncBulk"] +__all__ = ["BulkResource", "AsyncBulkResource"] -class Bulk(SyncAPIResource): +class BulkResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> BulkWithRawResponse: - return BulkWithRawResponse(self) + def with_raw_response(self) -> BulkResourceWithRawResponse: + return BulkResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> BulkWithStreamingResponse: - return BulkWithStreamingResponse(self) + def with_streaming_response(self) -> BulkResourceWithStreamingResponse: + return BulkResourceWithStreamingResponse(self) def update( self, @@ -150,14 +150,14 @@ def delete( ) -class AsyncBulk(AsyncAPIResource): +class AsyncBulkResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncBulkWithRawResponse: - return AsyncBulkWithRawResponse(self) + def with_raw_response(self) -> AsyncBulkResourceWithRawResponse: + return AsyncBulkResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncBulkWithStreamingResponse: - return AsyncBulkWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncBulkResourceWithStreamingResponse: + return AsyncBulkResourceWithStreamingResponse(self) async def update( self, @@ -270,8 +270,8 @@ async def delete( ) -class BulkWithRawResponse: - def __init__(self, bulk: Bulk) -> None: +class BulkResourceWithRawResponse: + def __init__(self, bulk: BulkResource) -> None: self._bulk = bulk self.update = to_raw_response_wrapper( @@ -282,8 +282,8 @@ def __init__(self, bulk: Bulk) -> None: ) -class AsyncBulkWithRawResponse: - def __init__(self, bulk: AsyncBulk) -> None: +class AsyncBulkResourceWithRawResponse: + def __init__(self, bulk: AsyncBulkResource) -> None: self._bulk = bulk self.update = async_to_raw_response_wrapper( @@ -294,8 +294,8 @@ def __init__(self, bulk: AsyncBulk) -> None: ) -class BulkWithStreamingResponse: - def __init__(self, bulk: Bulk) -> None: +class BulkResourceWithStreamingResponse: + def __init__(self, bulk: BulkResource) -> None: self._bulk = bulk self.update = to_streamed_response_wrapper( @@ -306,8 +306,8 @@ def __init__(self, bulk: Bulk) -> None: ) -class AsyncBulkWithStreamingResponse: - def __init__(self, bulk: AsyncBulk) -> None: +class AsyncBulkResourceWithStreamingResponse: + def __init__(self, bulk: AsyncBulkResource) -> None: self._bulk = bulk self.update = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/kv/namespaces/keys.py b/src/cloudflare/resources/kv/namespaces/keys.py index a941bcfc65a..8d8c4ed3727 100644 --- a/src/cloudflare/resources/kv/namespaces/keys.py +++ b/src/cloudflare/resources/kv/namespaces/keys.py @@ -22,17 +22,17 @@ from ....types.kv.namespaces import key_list_params from ....types.kv.namespaces.key import Key -__all__ = ["Keys", "AsyncKeys"] +__all__ = ["KeysResource", "AsyncKeysResource"] -class Keys(SyncAPIResource): +class KeysResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> KeysWithRawResponse: - return KeysWithRawResponse(self) + def with_raw_response(self) -> KeysResourceWithRawResponse: + return KeysResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> KeysWithStreamingResponse: - return KeysWithStreamingResponse(self) + def with_streaming_response(self) -> KeysResourceWithStreamingResponse: + return KeysResourceWithStreamingResponse(self) def list( self, @@ -101,14 +101,14 @@ def list( ) -class AsyncKeys(AsyncAPIResource): +class AsyncKeysResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncKeysWithRawResponse: - return AsyncKeysWithRawResponse(self) + def with_raw_response(self) -> AsyncKeysResourceWithRawResponse: + return AsyncKeysResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncKeysWithStreamingResponse: - return AsyncKeysWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncKeysResourceWithStreamingResponse: + return AsyncKeysResourceWithStreamingResponse(self) def list( self, @@ -177,8 +177,8 @@ def list( ) -class KeysWithRawResponse: - def __init__(self, keys: Keys) -> None: +class KeysResourceWithRawResponse: + def __init__(self, keys: KeysResource) -> None: self._keys = keys self.list = to_raw_response_wrapper( @@ -186,8 +186,8 @@ def __init__(self, keys: Keys) -> None: ) -class AsyncKeysWithRawResponse: - def __init__(self, keys: AsyncKeys) -> None: +class AsyncKeysResourceWithRawResponse: + def __init__(self, keys: AsyncKeysResource) -> None: self._keys = keys self.list = async_to_raw_response_wrapper( @@ -195,8 +195,8 @@ def __init__(self, keys: AsyncKeys) -> None: ) -class KeysWithStreamingResponse: - def __init__(self, keys: Keys) -> None: +class KeysResourceWithStreamingResponse: + def __init__(self, keys: KeysResource) -> None: self._keys = keys self.list = to_streamed_response_wrapper( @@ -204,8 +204,8 @@ def __init__(self, keys: Keys) -> None: ) -class AsyncKeysWithStreamingResponse: - def __init__(self, keys: AsyncKeys) -> None: +class AsyncKeysResourceWithStreamingResponse: + def __init__(self, keys: AsyncKeysResource) -> None: self._keys = keys self.list = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/kv/namespaces/metadata.py b/src/cloudflare/resources/kv/namespaces/metadata.py index 091c7dbca2c..b9a442c88b0 100644 --- a/src/cloudflare/resources/kv/namespaces/metadata.py +++ b/src/cloudflare/resources/kv/namespaces/metadata.py @@ -20,17 +20,17 @@ make_request_options, ) -__all__ = ["Metadata", "AsyncMetadata"] +__all__ = ["MetadataResource", "AsyncMetadataResource"] -class Metadata(SyncAPIResource): +class MetadataResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> MetadataWithRawResponse: - return MetadataWithRawResponse(self) + def with_raw_response(self) -> MetadataResourceWithRawResponse: + return MetadataResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> MetadataWithStreamingResponse: - return MetadataWithStreamingResponse(self) + def with_streaming_response(self) -> MetadataResourceWithStreamingResponse: + return MetadataResourceWithStreamingResponse(self) def get( self, @@ -86,14 +86,14 @@ def get( ) -class AsyncMetadata(AsyncAPIResource): +class AsyncMetadataResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncMetadataWithRawResponse: - return AsyncMetadataWithRawResponse(self) + def with_raw_response(self) -> AsyncMetadataResourceWithRawResponse: + return AsyncMetadataResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncMetadataWithStreamingResponse: - return AsyncMetadataWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncMetadataResourceWithStreamingResponse: + return AsyncMetadataResourceWithStreamingResponse(self) async def get( self, @@ -149,8 +149,8 @@ async def get( ) -class MetadataWithRawResponse: - def __init__(self, metadata: Metadata) -> None: +class MetadataResourceWithRawResponse: + def __init__(self, metadata: MetadataResource) -> None: self._metadata = metadata self.get = to_raw_response_wrapper( @@ -158,8 +158,8 @@ def __init__(self, metadata: Metadata) -> None: ) -class AsyncMetadataWithRawResponse: - def __init__(self, metadata: AsyncMetadata) -> None: +class AsyncMetadataResourceWithRawResponse: + def __init__(self, metadata: AsyncMetadataResource) -> None: self._metadata = metadata self.get = async_to_raw_response_wrapper( @@ -167,8 +167,8 @@ def __init__(self, metadata: AsyncMetadata) -> None: ) -class MetadataWithStreamingResponse: - def __init__(self, metadata: Metadata) -> None: +class MetadataResourceWithStreamingResponse: + def __init__(self, metadata: MetadataResource) -> None: self._metadata = metadata self.get = to_streamed_response_wrapper( @@ -176,8 +176,8 @@ def __init__(self, metadata: Metadata) -> None: ) -class AsyncMetadataWithStreamingResponse: - def __init__(self, metadata: AsyncMetadata) -> None: +class AsyncMetadataResourceWithStreamingResponse: + def __init__(self, metadata: AsyncMetadataResource) -> None: self._metadata = metadata self.get = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/kv/namespaces/namespaces.py b/src/cloudflare/resources/kv/namespaces/namespaces.py index fd2acab2841..0eda74e6c1c 100644 --- a/src/cloudflare/resources/kv/namespaces/namespaces.py +++ b/src/cloudflare/resources/kv/namespaces/namespaces.py @@ -8,36 +8,36 @@ import httpx from .bulk import ( - Bulk, - AsyncBulk, - BulkWithRawResponse, - AsyncBulkWithRawResponse, - BulkWithStreamingResponse, - AsyncBulkWithStreamingResponse, + BulkResource, + AsyncBulkResource, + BulkResourceWithRawResponse, + AsyncBulkResourceWithRawResponse, + BulkResourceWithStreamingResponse, + AsyncBulkResourceWithStreamingResponse, ) from .keys import ( - Keys, - AsyncKeys, - KeysWithRawResponse, - AsyncKeysWithRawResponse, - KeysWithStreamingResponse, - AsyncKeysWithStreamingResponse, + KeysResource, + AsyncKeysResource, + KeysResourceWithRawResponse, + AsyncKeysResourceWithRawResponse, + KeysResourceWithStreamingResponse, + AsyncKeysResourceWithStreamingResponse, ) from .values import ( - Values, - AsyncValues, - ValuesWithRawResponse, - AsyncValuesWithRawResponse, - ValuesWithStreamingResponse, - AsyncValuesWithStreamingResponse, + ValuesResource, + AsyncValuesResource, + ValuesResourceWithRawResponse, + AsyncValuesResourceWithRawResponse, + ValuesResourceWithStreamingResponse, + AsyncValuesResourceWithStreamingResponse, ) from .metadata import ( - Metadata, - AsyncMetadata, - MetadataWithRawResponse, - AsyncMetadataWithRawResponse, - MetadataWithStreamingResponse, - AsyncMetadataWithStreamingResponse, + MetadataResource, + AsyncMetadataResource, + MetadataResourceWithRawResponse, + AsyncMetadataResourceWithRawResponse, + MetadataResourceWithStreamingResponse, + AsyncMetadataResourceWithStreamingResponse, ) from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven from ...._utils import ( @@ -68,33 +68,33 @@ from ....types.kv.namespace_delete_response import NamespaceDeleteResponse from ....types.kv.namespace_update_response import NamespaceUpdateResponse -__all__ = ["Namespaces", "AsyncNamespaces"] +__all__ = ["NamespacesResource", "AsyncNamespacesResource"] -class Namespaces(SyncAPIResource): +class NamespacesResource(SyncAPIResource): @cached_property - def bulk(self) -> Bulk: - return Bulk(self._client) + def bulk(self) -> BulkResource: + return BulkResource(self._client) @cached_property - def keys(self) -> Keys: - return Keys(self._client) + def keys(self) -> KeysResource: + return KeysResource(self._client) @cached_property - def metadata(self) -> Metadata: - return Metadata(self._client) + def metadata(self) -> MetadataResource: + return MetadataResource(self._client) @cached_property - def values(self) -> Values: - return Values(self._client) + def values(self) -> ValuesResource: + return ValuesResource(self._client) @cached_property - def with_raw_response(self) -> NamespacesWithRawResponse: - return NamespacesWithRawResponse(self) + def with_raw_response(self) -> NamespacesResourceWithRawResponse: + return NamespacesResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> NamespacesWithStreamingResponse: - return NamespacesWithStreamingResponse(self) + def with_streaming_response(self) -> NamespacesResourceWithStreamingResponse: + return NamespacesResourceWithStreamingResponse(self) def create( self, @@ -307,30 +307,30 @@ def delete( ) -class AsyncNamespaces(AsyncAPIResource): +class AsyncNamespacesResource(AsyncAPIResource): @cached_property - def bulk(self) -> AsyncBulk: - return AsyncBulk(self._client) + def bulk(self) -> AsyncBulkResource: + return AsyncBulkResource(self._client) @cached_property - def keys(self) -> AsyncKeys: - return AsyncKeys(self._client) + def keys(self) -> AsyncKeysResource: + return AsyncKeysResource(self._client) @cached_property - def metadata(self) -> AsyncMetadata: - return AsyncMetadata(self._client) + def metadata(self) -> AsyncMetadataResource: + return AsyncMetadataResource(self._client) @cached_property - def values(self) -> AsyncValues: - return AsyncValues(self._client) + def values(self) -> AsyncValuesResource: + return AsyncValuesResource(self._client) @cached_property - def with_raw_response(self) -> AsyncNamespacesWithRawResponse: - return AsyncNamespacesWithRawResponse(self) + def with_raw_response(self) -> AsyncNamespacesResourceWithRawResponse: + return AsyncNamespacesResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncNamespacesWithStreamingResponse: - return AsyncNamespacesWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncNamespacesResourceWithStreamingResponse: + return AsyncNamespacesResourceWithStreamingResponse(self) async def create( self, @@ -543,8 +543,8 @@ async def delete( ) -class NamespacesWithRawResponse: - def __init__(self, namespaces: Namespaces) -> None: +class NamespacesResourceWithRawResponse: + def __init__(self, namespaces: NamespacesResource) -> None: self._namespaces = namespaces self.create = to_raw_response_wrapper( @@ -561,24 +561,24 @@ def __init__(self, namespaces: Namespaces) -> None: ) @cached_property - def bulk(self) -> BulkWithRawResponse: - return BulkWithRawResponse(self._namespaces.bulk) + def bulk(self) -> BulkResourceWithRawResponse: + return BulkResourceWithRawResponse(self._namespaces.bulk) @cached_property - def keys(self) -> KeysWithRawResponse: - return KeysWithRawResponse(self._namespaces.keys) + def keys(self) -> KeysResourceWithRawResponse: + return KeysResourceWithRawResponse(self._namespaces.keys) @cached_property - def metadata(self) -> MetadataWithRawResponse: - return MetadataWithRawResponse(self._namespaces.metadata) + def metadata(self) -> MetadataResourceWithRawResponse: + return MetadataResourceWithRawResponse(self._namespaces.metadata) @cached_property - def values(self) -> ValuesWithRawResponse: - return ValuesWithRawResponse(self._namespaces.values) + def values(self) -> ValuesResourceWithRawResponse: + return ValuesResourceWithRawResponse(self._namespaces.values) -class AsyncNamespacesWithRawResponse: - def __init__(self, namespaces: AsyncNamespaces) -> None: +class AsyncNamespacesResourceWithRawResponse: + def __init__(self, namespaces: AsyncNamespacesResource) -> None: self._namespaces = namespaces self.create = async_to_raw_response_wrapper( @@ -595,24 +595,24 @@ def __init__(self, namespaces: AsyncNamespaces) -> None: ) @cached_property - def bulk(self) -> AsyncBulkWithRawResponse: - return AsyncBulkWithRawResponse(self._namespaces.bulk) + def bulk(self) -> AsyncBulkResourceWithRawResponse: + return AsyncBulkResourceWithRawResponse(self._namespaces.bulk) @cached_property - def keys(self) -> AsyncKeysWithRawResponse: - return AsyncKeysWithRawResponse(self._namespaces.keys) + def keys(self) -> AsyncKeysResourceWithRawResponse: + return AsyncKeysResourceWithRawResponse(self._namespaces.keys) @cached_property - def metadata(self) -> AsyncMetadataWithRawResponse: - return AsyncMetadataWithRawResponse(self._namespaces.metadata) + def metadata(self) -> AsyncMetadataResourceWithRawResponse: + return AsyncMetadataResourceWithRawResponse(self._namespaces.metadata) @cached_property - def values(self) -> AsyncValuesWithRawResponse: - return AsyncValuesWithRawResponse(self._namespaces.values) + def values(self) -> AsyncValuesResourceWithRawResponse: + return AsyncValuesResourceWithRawResponse(self._namespaces.values) -class NamespacesWithStreamingResponse: - def __init__(self, namespaces: Namespaces) -> None: +class NamespacesResourceWithStreamingResponse: + def __init__(self, namespaces: NamespacesResource) -> None: self._namespaces = namespaces self.create = to_streamed_response_wrapper( @@ -629,24 +629,24 @@ def __init__(self, namespaces: Namespaces) -> None: ) @cached_property - def bulk(self) -> BulkWithStreamingResponse: - return BulkWithStreamingResponse(self._namespaces.bulk) + def bulk(self) -> BulkResourceWithStreamingResponse: + return BulkResourceWithStreamingResponse(self._namespaces.bulk) @cached_property - def keys(self) -> KeysWithStreamingResponse: - return KeysWithStreamingResponse(self._namespaces.keys) + def keys(self) -> KeysResourceWithStreamingResponse: + return KeysResourceWithStreamingResponse(self._namespaces.keys) @cached_property - def metadata(self) -> MetadataWithStreamingResponse: - return MetadataWithStreamingResponse(self._namespaces.metadata) + def metadata(self) -> MetadataResourceWithStreamingResponse: + return MetadataResourceWithStreamingResponse(self._namespaces.metadata) @cached_property - def values(self) -> ValuesWithStreamingResponse: - return ValuesWithStreamingResponse(self._namespaces.values) + def values(self) -> ValuesResourceWithStreamingResponse: + return ValuesResourceWithStreamingResponse(self._namespaces.values) -class AsyncNamespacesWithStreamingResponse: - def __init__(self, namespaces: AsyncNamespaces) -> None: +class AsyncNamespacesResourceWithStreamingResponse: + def __init__(self, namespaces: AsyncNamespacesResource) -> None: self._namespaces = namespaces self.create = async_to_streamed_response_wrapper( @@ -663,17 +663,17 @@ def __init__(self, namespaces: AsyncNamespaces) -> None: ) @cached_property - def bulk(self) -> AsyncBulkWithStreamingResponse: - return AsyncBulkWithStreamingResponse(self._namespaces.bulk) + def bulk(self) -> AsyncBulkResourceWithStreamingResponse: + return AsyncBulkResourceWithStreamingResponse(self._namespaces.bulk) @cached_property - def keys(self) -> AsyncKeysWithStreamingResponse: - return AsyncKeysWithStreamingResponse(self._namespaces.keys) + def keys(self) -> AsyncKeysResourceWithStreamingResponse: + return AsyncKeysResourceWithStreamingResponse(self._namespaces.keys) @cached_property - def metadata(self) -> AsyncMetadataWithStreamingResponse: - return AsyncMetadataWithStreamingResponse(self._namespaces.metadata) + def metadata(self) -> AsyncMetadataResourceWithStreamingResponse: + return AsyncMetadataResourceWithStreamingResponse(self._namespaces.metadata) @cached_property - def values(self) -> AsyncValuesWithStreamingResponse: - return AsyncValuesWithStreamingResponse(self._namespaces.values) + def values(self) -> AsyncValuesResourceWithStreamingResponse: + return AsyncValuesResourceWithStreamingResponse(self._namespaces.values) diff --git a/src/cloudflare/resources/kv/namespaces/values.py b/src/cloudflare/resources/kv/namespaces/values.py index 3c6f8c282d4..358a679aaf9 100644 --- a/src/cloudflare/resources/kv/namespaces/values.py +++ b/src/cloudflare/resources/kv/namespaces/values.py @@ -27,17 +27,17 @@ from ....types.kv.namespaces.value_delete_response import ValueDeleteResponse from ....types.kv.namespaces.value_update_response import ValueUpdateResponse -__all__ = ["Values", "AsyncValues"] +__all__ = ["ValuesResource", "AsyncValuesResource"] -class Values(SyncAPIResource): +class ValuesResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> ValuesWithRawResponse: - return ValuesWithRawResponse(self) + def with_raw_response(self) -> ValuesResourceWithRawResponse: + return ValuesResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> ValuesWithStreamingResponse: - return ValuesWithStreamingResponse(self) + def with_streaming_response(self) -> ValuesResourceWithStreamingResponse: + return ValuesResourceWithStreamingResponse(self) def update( self, @@ -224,14 +224,14 @@ def get( ) -class AsyncValues(AsyncAPIResource): +class AsyncValuesResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncValuesWithRawResponse: - return AsyncValuesWithRawResponse(self) + def with_raw_response(self) -> AsyncValuesResourceWithRawResponse: + return AsyncValuesResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncValuesWithStreamingResponse: - return AsyncValuesWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncValuesResourceWithStreamingResponse: + return AsyncValuesResourceWithStreamingResponse(self) async def update( self, @@ -418,8 +418,8 @@ async def get( ) -class ValuesWithRawResponse: - def __init__(self, values: Values) -> None: +class ValuesResourceWithRawResponse: + def __init__(self, values: ValuesResource) -> None: self._values = values self.update = to_raw_response_wrapper( @@ -433,8 +433,8 @@ def __init__(self, values: Values) -> None: ) -class AsyncValuesWithRawResponse: - def __init__(self, values: AsyncValues) -> None: +class AsyncValuesResourceWithRawResponse: + def __init__(self, values: AsyncValuesResource) -> None: self._values = values self.update = async_to_raw_response_wrapper( @@ -448,8 +448,8 @@ def __init__(self, values: AsyncValues) -> None: ) -class ValuesWithStreamingResponse: - def __init__(self, values: Values) -> None: +class ValuesResourceWithStreamingResponse: + def __init__(self, values: ValuesResource) -> None: self._values = values self.update = to_streamed_response_wrapper( @@ -463,8 +463,8 @@ def __init__(self, values: Values) -> None: ) -class AsyncValuesWithStreamingResponse: - def __init__(self, values: AsyncValues) -> None: +class AsyncValuesResourceWithStreamingResponse: + def __init__(self, values: AsyncValuesResource) -> None: self._values = values self.update = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/load_balancers/__init__.py b/src/cloudflare/resources/load_balancers/__init__.py index 07e2eee26a3..a6ca61a9b10 100644 --- a/src/cloudflare/resources/load_balancers/__init__.py +++ b/src/cloudflare/resources/load_balancers/__init__.py @@ -1,89 +1,89 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from .pools import ( - Pools, - AsyncPools, - PoolsWithRawResponse, - AsyncPoolsWithRawResponse, - PoolsWithStreamingResponse, - AsyncPoolsWithStreamingResponse, + PoolsResource, + AsyncPoolsResource, + PoolsResourceWithRawResponse, + AsyncPoolsResourceWithRawResponse, + PoolsResourceWithStreamingResponse, + AsyncPoolsResourceWithStreamingResponse, ) from .regions import ( - Regions, - AsyncRegions, - RegionsWithRawResponse, - AsyncRegionsWithRawResponse, - RegionsWithStreamingResponse, - AsyncRegionsWithStreamingResponse, + RegionsResource, + AsyncRegionsResource, + RegionsResourceWithRawResponse, + AsyncRegionsResourceWithRawResponse, + RegionsResourceWithStreamingResponse, + AsyncRegionsResourceWithStreamingResponse, ) from .monitors import ( - Monitors, - AsyncMonitors, - MonitorsWithRawResponse, - AsyncMonitorsWithRawResponse, - MonitorsWithStreamingResponse, - AsyncMonitorsWithStreamingResponse, + MonitorsResource, + AsyncMonitorsResource, + MonitorsResourceWithRawResponse, + AsyncMonitorsResourceWithRawResponse, + MonitorsResourceWithStreamingResponse, + AsyncMonitorsResourceWithStreamingResponse, ) from .previews import ( - Previews, - AsyncPreviews, - PreviewsWithRawResponse, - AsyncPreviewsWithRawResponse, - PreviewsWithStreamingResponse, - AsyncPreviewsWithStreamingResponse, + PreviewsResource, + AsyncPreviewsResource, + PreviewsResourceWithRawResponse, + AsyncPreviewsResourceWithRawResponse, + PreviewsResourceWithStreamingResponse, + AsyncPreviewsResourceWithStreamingResponse, ) from .searches import ( - Searches, - AsyncSearches, - SearchesWithRawResponse, - AsyncSearchesWithRawResponse, - SearchesWithStreamingResponse, - AsyncSearchesWithStreamingResponse, + SearchesResource, + AsyncSearchesResource, + SearchesResourceWithRawResponse, + AsyncSearchesResourceWithRawResponse, + SearchesResourceWithStreamingResponse, + AsyncSearchesResourceWithStreamingResponse, ) from .load_balancers import ( - LoadBalancers, - AsyncLoadBalancers, - LoadBalancersWithRawResponse, - AsyncLoadBalancersWithRawResponse, - LoadBalancersWithStreamingResponse, - AsyncLoadBalancersWithStreamingResponse, + LoadBalancersResource, + AsyncLoadBalancersResource, + LoadBalancersResourceWithRawResponse, + AsyncLoadBalancersResourceWithRawResponse, + LoadBalancersResourceWithStreamingResponse, + AsyncLoadBalancersResourceWithStreamingResponse, ) __all__ = [ - "Monitors", - "AsyncMonitors", - "MonitorsWithRawResponse", - "AsyncMonitorsWithRawResponse", - "MonitorsWithStreamingResponse", - "AsyncMonitorsWithStreamingResponse", - "Pools", - "AsyncPools", - "PoolsWithRawResponse", - "AsyncPoolsWithRawResponse", - "PoolsWithStreamingResponse", - "AsyncPoolsWithStreamingResponse", - "Previews", - "AsyncPreviews", - "PreviewsWithRawResponse", - "AsyncPreviewsWithRawResponse", - "PreviewsWithStreamingResponse", - "AsyncPreviewsWithStreamingResponse", - "Regions", - "AsyncRegions", - "RegionsWithRawResponse", - "AsyncRegionsWithRawResponse", - "RegionsWithStreamingResponse", - "AsyncRegionsWithStreamingResponse", - "Searches", - "AsyncSearches", - "SearchesWithRawResponse", - "AsyncSearchesWithRawResponse", - "SearchesWithStreamingResponse", - "AsyncSearchesWithStreamingResponse", - "LoadBalancers", - "AsyncLoadBalancers", - "LoadBalancersWithRawResponse", - "AsyncLoadBalancersWithRawResponse", - "LoadBalancersWithStreamingResponse", - "AsyncLoadBalancersWithStreamingResponse", + "MonitorsResource", + "AsyncMonitorsResource", + "MonitorsResourceWithRawResponse", + "AsyncMonitorsResourceWithRawResponse", + "MonitorsResourceWithStreamingResponse", + "AsyncMonitorsResourceWithStreamingResponse", + "PoolsResource", + "AsyncPoolsResource", + "PoolsResourceWithRawResponse", + "AsyncPoolsResourceWithRawResponse", + "PoolsResourceWithStreamingResponse", + "AsyncPoolsResourceWithStreamingResponse", + "PreviewsResource", + "AsyncPreviewsResource", + "PreviewsResourceWithRawResponse", + "AsyncPreviewsResourceWithRawResponse", + "PreviewsResourceWithStreamingResponse", + "AsyncPreviewsResourceWithStreamingResponse", + "RegionsResource", + "AsyncRegionsResource", + "RegionsResourceWithRawResponse", + "AsyncRegionsResourceWithRawResponse", + "RegionsResourceWithStreamingResponse", + "AsyncRegionsResourceWithStreamingResponse", + "SearchesResource", + "AsyncSearchesResource", + "SearchesResourceWithRawResponse", + "AsyncSearchesResourceWithRawResponse", + "SearchesResourceWithStreamingResponse", + "AsyncSearchesResourceWithStreamingResponse", + "LoadBalancersResource", + "AsyncLoadBalancersResource", + "LoadBalancersResourceWithRawResponse", + "AsyncLoadBalancersResourceWithRawResponse", + "LoadBalancersResourceWithStreamingResponse", + "AsyncLoadBalancersResourceWithStreamingResponse", ] diff --git a/src/cloudflare/resources/load_balancers/load_balancers.py b/src/cloudflare/resources/load_balancers/load_balancers.py index d87fa3f07c9..829ffadc328 100644 --- a/src/cloudflare/resources/load_balancers/load_balancers.py +++ b/src/cloudflare/resources/load_balancers/load_balancers.py @@ -8,20 +8,20 @@ import httpx from .pools import ( - Pools, - AsyncPools, - PoolsWithRawResponse, - AsyncPoolsWithRawResponse, - PoolsWithStreamingResponse, - AsyncPoolsWithStreamingResponse, + PoolsResource, + AsyncPoolsResource, + PoolsResourceWithRawResponse, + AsyncPoolsResourceWithRawResponse, + PoolsResourceWithStreamingResponse, + AsyncPoolsResourceWithStreamingResponse, ) from .regions import ( - Regions, - AsyncRegions, - RegionsWithRawResponse, - AsyncRegionsWithRawResponse, - RegionsWithStreamingResponse, - AsyncRegionsWithStreamingResponse, + RegionsResource, + AsyncRegionsResource, + RegionsResourceWithRawResponse, + AsyncRegionsResourceWithRawResponse, + RegionsResourceWithStreamingResponse, + AsyncRegionsResourceWithStreamingResponse, ) from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven from ..._utils import ( @@ -29,28 +29,28 @@ async_maybe_transform, ) from .monitors import ( - Monitors, - AsyncMonitors, - MonitorsWithRawResponse, - AsyncMonitorsWithRawResponse, - MonitorsWithStreamingResponse, - AsyncMonitorsWithStreamingResponse, + MonitorsResource, + AsyncMonitorsResource, + MonitorsResourceWithRawResponse, + AsyncMonitorsResourceWithRawResponse, + MonitorsResourceWithStreamingResponse, + AsyncMonitorsResourceWithStreamingResponse, ) from .previews import ( - Previews, - AsyncPreviews, - PreviewsWithRawResponse, - AsyncPreviewsWithRawResponse, - PreviewsWithStreamingResponse, - AsyncPreviewsWithStreamingResponse, + PreviewsResource, + AsyncPreviewsResource, + PreviewsResourceWithRawResponse, + AsyncPreviewsResourceWithRawResponse, + PreviewsResourceWithStreamingResponse, + AsyncPreviewsResourceWithStreamingResponse, ) from .searches import ( - Searches, - AsyncSearches, - SearchesWithRawResponse, - AsyncSearchesWithRawResponse, - SearchesWithStreamingResponse, - AsyncSearchesWithStreamingResponse, + SearchesResource, + AsyncSearchesResource, + SearchesResourceWithRawResponse, + AsyncSearchesResourceWithRawResponse, + SearchesResourceWithStreamingResponse, + AsyncSearchesResourceWithStreamingResponse, ) from ..._compat import cached_property from ..._resource import SyncAPIResource, AsyncAPIResource @@ -61,13 +61,13 @@ async_to_streamed_response_wrapper, ) from ..._wrappers import ResultWrapper -from .pools.pools import Pools, AsyncPools +from .pools.pools import PoolsResource, AsyncPoolsResource from ...pagination import SyncSinglePage, AsyncSinglePage from ..._base_client import ( AsyncPaginator, make_request_options, ) -from .monitors.monitors import Monitors, AsyncMonitors +from .monitors.monitors import MonitorsResource, AsyncMonitorsResource from ...types.load_balancers import ( load_balancer_edit_params, load_balancer_create_params, @@ -83,37 +83,37 @@ from ...types.load_balancers.load_balancer_delete_response import LoadBalancerDeleteResponse from ...types.load_balancers.session_affinity_attributes_param import SessionAffinityAttributesParam -__all__ = ["LoadBalancers", "AsyncLoadBalancers"] +__all__ = ["LoadBalancersResource", "AsyncLoadBalancersResource"] -class LoadBalancers(SyncAPIResource): +class LoadBalancersResource(SyncAPIResource): @cached_property - def monitors(self) -> Monitors: - return Monitors(self._client) + def monitors(self) -> MonitorsResource: + return MonitorsResource(self._client) @cached_property - def pools(self) -> Pools: - return Pools(self._client) + def pools(self) -> PoolsResource: + return PoolsResource(self._client) @cached_property - def previews(self) -> Previews: - return Previews(self._client) + def previews(self) -> PreviewsResource: + return PreviewsResource(self._client) @cached_property - def regions(self) -> Regions: - return Regions(self._client) + def regions(self) -> RegionsResource: + return RegionsResource(self._client) @cached_property - def searches(self) -> Searches: - return Searches(self._client) + def searches(self) -> SearchesResource: + return SearchesResource(self._client) @cached_property - def with_raw_response(self) -> LoadBalancersWithRawResponse: - return LoadBalancersWithRawResponse(self) + def with_raw_response(self) -> LoadBalancersResourceWithRawResponse: + return LoadBalancersResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> LoadBalancersWithStreamingResponse: - return LoadBalancersWithStreamingResponse(self) + def with_streaming_response(self) -> LoadBalancersResourceWithStreamingResponse: + return LoadBalancersResourceWithStreamingResponse(self) def create( self, @@ -840,34 +840,34 @@ def get( ) -class AsyncLoadBalancers(AsyncAPIResource): +class AsyncLoadBalancersResource(AsyncAPIResource): @cached_property - def monitors(self) -> AsyncMonitors: - return AsyncMonitors(self._client) + def monitors(self) -> AsyncMonitorsResource: + return AsyncMonitorsResource(self._client) @cached_property - def pools(self) -> AsyncPools: - return AsyncPools(self._client) + def pools(self) -> AsyncPoolsResource: + return AsyncPoolsResource(self._client) @cached_property - def previews(self) -> AsyncPreviews: - return AsyncPreviews(self._client) + def previews(self) -> AsyncPreviewsResource: + return AsyncPreviewsResource(self._client) @cached_property - def regions(self) -> AsyncRegions: - return AsyncRegions(self._client) + def regions(self) -> AsyncRegionsResource: + return AsyncRegionsResource(self._client) @cached_property - def searches(self) -> AsyncSearches: - return AsyncSearches(self._client) + def searches(self) -> AsyncSearchesResource: + return AsyncSearchesResource(self._client) @cached_property - def with_raw_response(self) -> AsyncLoadBalancersWithRawResponse: - return AsyncLoadBalancersWithRawResponse(self) + def with_raw_response(self) -> AsyncLoadBalancersResourceWithRawResponse: + return AsyncLoadBalancersResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncLoadBalancersWithStreamingResponse: - return AsyncLoadBalancersWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncLoadBalancersResourceWithStreamingResponse: + return AsyncLoadBalancersResourceWithStreamingResponse(self) async def create( self, @@ -1594,8 +1594,8 @@ async def get( ) -class LoadBalancersWithRawResponse: - def __init__(self, load_balancers: LoadBalancers) -> None: +class LoadBalancersResourceWithRawResponse: + def __init__(self, load_balancers: LoadBalancersResource) -> None: self._load_balancers = load_balancers self.create = to_raw_response_wrapper( @@ -1618,28 +1618,28 @@ def __init__(self, load_balancers: LoadBalancers) -> None: ) @cached_property - def monitors(self) -> MonitorsWithRawResponse: - return MonitorsWithRawResponse(self._load_balancers.monitors) + def monitors(self) -> MonitorsResourceWithRawResponse: + return MonitorsResourceWithRawResponse(self._load_balancers.monitors) @cached_property - def pools(self) -> PoolsWithRawResponse: - return PoolsWithRawResponse(self._load_balancers.pools) + def pools(self) -> PoolsResourceWithRawResponse: + return PoolsResourceWithRawResponse(self._load_balancers.pools) @cached_property - def previews(self) -> PreviewsWithRawResponse: - return PreviewsWithRawResponse(self._load_balancers.previews) + def previews(self) -> PreviewsResourceWithRawResponse: + return PreviewsResourceWithRawResponse(self._load_balancers.previews) @cached_property - def regions(self) -> RegionsWithRawResponse: - return RegionsWithRawResponse(self._load_balancers.regions) + def regions(self) -> RegionsResourceWithRawResponse: + return RegionsResourceWithRawResponse(self._load_balancers.regions) @cached_property - def searches(self) -> SearchesWithRawResponse: - return SearchesWithRawResponse(self._load_balancers.searches) + def searches(self) -> SearchesResourceWithRawResponse: + return SearchesResourceWithRawResponse(self._load_balancers.searches) -class AsyncLoadBalancersWithRawResponse: - def __init__(self, load_balancers: AsyncLoadBalancers) -> None: +class AsyncLoadBalancersResourceWithRawResponse: + def __init__(self, load_balancers: AsyncLoadBalancersResource) -> None: self._load_balancers = load_balancers self.create = async_to_raw_response_wrapper( @@ -1662,28 +1662,28 @@ def __init__(self, load_balancers: AsyncLoadBalancers) -> None: ) @cached_property - def monitors(self) -> AsyncMonitorsWithRawResponse: - return AsyncMonitorsWithRawResponse(self._load_balancers.monitors) + def monitors(self) -> AsyncMonitorsResourceWithRawResponse: + return AsyncMonitorsResourceWithRawResponse(self._load_balancers.monitors) @cached_property - def pools(self) -> AsyncPoolsWithRawResponse: - return AsyncPoolsWithRawResponse(self._load_balancers.pools) + def pools(self) -> AsyncPoolsResourceWithRawResponse: + return AsyncPoolsResourceWithRawResponse(self._load_balancers.pools) @cached_property - def previews(self) -> AsyncPreviewsWithRawResponse: - return AsyncPreviewsWithRawResponse(self._load_balancers.previews) + def previews(self) -> AsyncPreviewsResourceWithRawResponse: + return AsyncPreviewsResourceWithRawResponse(self._load_balancers.previews) @cached_property - def regions(self) -> AsyncRegionsWithRawResponse: - return AsyncRegionsWithRawResponse(self._load_balancers.regions) + def regions(self) -> AsyncRegionsResourceWithRawResponse: + return AsyncRegionsResourceWithRawResponse(self._load_balancers.regions) @cached_property - def searches(self) -> AsyncSearchesWithRawResponse: - return AsyncSearchesWithRawResponse(self._load_balancers.searches) + def searches(self) -> AsyncSearchesResourceWithRawResponse: + return AsyncSearchesResourceWithRawResponse(self._load_balancers.searches) -class LoadBalancersWithStreamingResponse: - def __init__(self, load_balancers: LoadBalancers) -> None: +class LoadBalancersResourceWithStreamingResponse: + def __init__(self, load_balancers: LoadBalancersResource) -> None: self._load_balancers = load_balancers self.create = to_streamed_response_wrapper( @@ -1706,28 +1706,28 @@ def __init__(self, load_balancers: LoadBalancers) -> None: ) @cached_property - def monitors(self) -> MonitorsWithStreamingResponse: - return MonitorsWithStreamingResponse(self._load_balancers.monitors) + def monitors(self) -> MonitorsResourceWithStreamingResponse: + return MonitorsResourceWithStreamingResponse(self._load_balancers.monitors) @cached_property - def pools(self) -> PoolsWithStreamingResponse: - return PoolsWithStreamingResponse(self._load_balancers.pools) + def pools(self) -> PoolsResourceWithStreamingResponse: + return PoolsResourceWithStreamingResponse(self._load_balancers.pools) @cached_property - def previews(self) -> PreviewsWithStreamingResponse: - return PreviewsWithStreamingResponse(self._load_balancers.previews) + def previews(self) -> PreviewsResourceWithStreamingResponse: + return PreviewsResourceWithStreamingResponse(self._load_balancers.previews) @cached_property - def regions(self) -> RegionsWithStreamingResponse: - return RegionsWithStreamingResponse(self._load_balancers.regions) + def regions(self) -> RegionsResourceWithStreamingResponse: + return RegionsResourceWithStreamingResponse(self._load_balancers.regions) @cached_property - def searches(self) -> SearchesWithStreamingResponse: - return SearchesWithStreamingResponse(self._load_balancers.searches) + def searches(self) -> SearchesResourceWithStreamingResponse: + return SearchesResourceWithStreamingResponse(self._load_balancers.searches) -class AsyncLoadBalancersWithStreamingResponse: - def __init__(self, load_balancers: AsyncLoadBalancers) -> None: +class AsyncLoadBalancersResourceWithStreamingResponse: + def __init__(self, load_balancers: AsyncLoadBalancersResource) -> None: self._load_balancers = load_balancers self.create = async_to_streamed_response_wrapper( @@ -1750,21 +1750,21 @@ def __init__(self, load_balancers: AsyncLoadBalancers) -> None: ) @cached_property - def monitors(self) -> AsyncMonitorsWithStreamingResponse: - return AsyncMonitorsWithStreamingResponse(self._load_balancers.monitors) + def monitors(self) -> AsyncMonitorsResourceWithStreamingResponse: + return AsyncMonitorsResourceWithStreamingResponse(self._load_balancers.monitors) @cached_property - def pools(self) -> AsyncPoolsWithStreamingResponse: - return AsyncPoolsWithStreamingResponse(self._load_balancers.pools) + def pools(self) -> AsyncPoolsResourceWithStreamingResponse: + return AsyncPoolsResourceWithStreamingResponse(self._load_balancers.pools) @cached_property - def previews(self) -> AsyncPreviewsWithStreamingResponse: - return AsyncPreviewsWithStreamingResponse(self._load_balancers.previews) + def previews(self) -> AsyncPreviewsResourceWithStreamingResponse: + return AsyncPreviewsResourceWithStreamingResponse(self._load_balancers.previews) @cached_property - def regions(self) -> AsyncRegionsWithStreamingResponse: - return AsyncRegionsWithStreamingResponse(self._load_balancers.regions) + def regions(self) -> AsyncRegionsResourceWithStreamingResponse: + return AsyncRegionsResourceWithStreamingResponse(self._load_balancers.regions) @cached_property - def searches(self) -> AsyncSearchesWithStreamingResponse: - return AsyncSearchesWithStreamingResponse(self._load_balancers.searches) + def searches(self) -> AsyncSearchesResourceWithStreamingResponse: + return AsyncSearchesResourceWithStreamingResponse(self._load_balancers.searches) diff --git a/src/cloudflare/resources/load_balancers/monitors/__init__.py b/src/cloudflare/resources/load_balancers/monitors/__init__.py index 02d4bf3e818..a0f096d5984 100644 --- a/src/cloudflare/resources/load_balancers/monitors/__init__.py +++ b/src/cloudflare/resources/load_balancers/monitors/__init__.py @@ -1,47 +1,47 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from .monitors import ( - Monitors, - AsyncMonitors, - MonitorsWithRawResponse, - AsyncMonitorsWithRawResponse, - MonitorsWithStreamingResponse, - AsyncMonitorsWithStreamingResponse, + MonitorsResource, + AsyncMonitorsResource, + MonitorsResourceWithRawResponse, + AsyncMonitorsResourceWithRawResponse, + MonitorsResourceWithStreamingResponse, + AsyncMonitorsResourceWithStreamingResponse, ) from .previews import ( - Previews, - AsyncPreviews, - PreviewsWithRawResponse, - AsyncPreviewsWithRawResponse, - PreviewsWithStreamingResponse, - AsyncPreviewsWithStreamingResponse, + PreviewsResource, + AsyncPreviewsResource, + PreviewsResourceWithRawResponse, + AsyncPreviewsResourceWithRawResponse, + PreviewsResourceWithStreamingResponse, + AsyncPreviewsResourceWithStreamingResponse, ) from .references import ( - References, - AsyncReferences, - ReferencesWithRawResponse, - AsyncReferencesWithRawResponse, - ReferencesWithStreamingResponse, - AsyncReferencesWithStreamingResponse, + ReferencesResource, + AsyncReferencesResource, + ReferencesResourceWithRawResponse, + AsyncReferencesResourceWithRawResponse, + ReferencesResourceWithStreamingResponse, + AsyncReferencesResourceWithStreamingResponse, ) __all__ = [ - "Previews", - "AsyncPreviews", - "PreviewsWithRawResponse", - "AsyncPreviewsWithRawResponse", - "PreviewsWithStreamingResponse", - "AsyncPreviewsWithStreamingResponse", - "References", - "AsyncReferences", - "ReferencesWithRawResponse", - "AsyncReferencesWithRawResponse", - "ReferencesWithStreamingResponse", - "AsyncReferencesWithStreamingResponse", - "Monitors", - "AsyncMonitors", - "MonitorsWithRawResponse", - "AsyncMonitorsWithRawResponse", - "MonitorsWithStreamingResponse", - "AsyncMonitorsWithStreamingResponse", + "PreviewsResource", + "AsyncPreviewsResource", + "PreviewsResourceWithRawResponse", + "AsyncPreviewsResourceWithRawResponse", + "PreviewsResourceWithStreamingResponse", + "AsyncPreviewsResourceWithStreamingResponse", + "ReferencesResource", + "AsyncReferencesResource", + "ReferencesResourceWithRawResponse", + "AsyncReferencesResourceWithRawResponse", + "ReferencesResourceWithStreamingResponse", + "AsyncReferencesResourceWithStreamingResponse", + "MonitorsResource", + "AsyncMonitorsResource", + "MonitorsResourceWithRawResponse", + "AsyncMonitorsResourceWithRawResponse", + "MonitorsResourceWithStreamingResponse", + "AsyncMonitorsResourceWithStreamingResponse", ] diff --git a/src/cloudflare/resources/load_balancers/monitors/monitors.py b/src/cloudflare/resources/load_balancers/monitors/monitors.py index 407a575ff62..1a963337a6d 100644 --- a/src/cloudflare/resources/load_balancers/monitors/monitors.py +++ b/src/cloudflare/resources/load_balancers/monitors/monitors.py @@ -8,12 +8,12 @@ import httpx from .previews import ( - Previews, - AsyncPreviews, - PreviewsWithRawResponse, - AsyncPreviewsWithRawResponse, - PreviewsWithStreamingResponse, - AsyncPreviewsWithStreamingResponse, + PreviewsResource, + AsyncPreviewsResource, + PreviewsResourceWithRawResponse, + AsyncPreviewsResourceWithRawResponse, + PreviewsResourceWithStreamingResponse, + AsyncPreviewsResourceWithStreamingResponse, ) from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven from ...._utils import ( @@ -22,12 +22,12 @@ ) from ...._compat import cached_property from .references import ( - References, - AsyncReferences, - ReferencesWithRawResponse, - AsyncReferencesWithRawResponse, - ReferencesWithStreamingResponse, - AsyncReferencesWithStreamingResponse, + ReferencesResource, + AsyncReferencesResource, + ReferencesResourceWithRawResponse, + AsyncReferencesResourceWithRawResponse, + ReferencesResourceWithStreamingResponse, + AsyncReferencesResourceWithStreamingResponse, ) from ...._resource import SyncAPIResource, AsyncAPIResource from ...._response import ( @@ -51,25 +51,25 @@ from ....types.load_balancers.monitor import Monitor from ....types.load_balancers.monitor_delete_response import MonitorDeleteResponse -__all__ = ["Monitors", "AsyncMonitors"] +__all__ = ["MonitorsResource", "AsyncMonitorsResource"] -class Monitors(SyncAPIResource): +class MonitorsResource(SyncAPIResource): @cached_property - def previews(self) -> Previews: - return Previews(self._client) + def previews(self) -> PreviewsResource: + return PreviewsResource(self._client) @cached_property - def references(self) -> References: - return References(self._client) + def references(self) -> ReferencesResource: + return ReferencesResource(self._client) @cached_property - def with_raw_response(self) -> MonitorsWithRawResponse: - return MonitorsWithRawResponse(self) + def with_raw_response(self) -> MonitorsResourceWithRawResponse: + return MonitorsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> MonitorsWithStreamingResponse: - return MonitorsWithStreamingResponse(self) + def with_streaming_response(self) -> MonitorsResourceWithStreamingResponse: + return MonitorsResourceWithStreamingResponse(self) def create( self, @@ -575,22 +575,22 @@ def get( ) -class AsyncMonitors(AsyncAPIResource): +class AsyncMonitorsResource(AsyncAPIResource): @cached_property - def previews(self) -> AsyncPreviews: - return AsyncPreviews(self._client) + def previews(self) -> AsyncPreviewsResource: + return AsyncPreviewsResource(self._client) @cached_property - def references(self) -> AsyncReferences: - return AsyncReferences(self._client) + def references(self) -> AsyncReferencesResource: + return AsyncReferencesResource(self._client) @cached_property - def with_raw_response(self) -> AsyncMonitorsWithRawResponse: - return AsyncMonitorsWithRawResponse(self) + def with_raw_response(self) -> AsyncMonitorsResourceWithRawResponse: + return AsyncMonitorsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncMonitorsWithStreamingResponse: - return AsyncMonitorsWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncMonitorsResourceWithStreamingResponse: + return AsyncMonitorsResourceWithStreamingResponse(self) async def create( self, @@ -1096,8 +1096,8 @@ async def get( ) -class MonitorsWithRawResponse: - def __init__(self, monitors: Monitors) -> None: +class MonitorsResourceWithRawResponse: + def __init__(self, monitors: MonitorsResource) -> None: self._monitors = monitors self.create = to_raw_response_wrapper( @@ -1120,16 +1120,16 @@ def __init__(self, monitors: Monitors) -> None: ) @cached_property - def previews(self) -> PreviewsWithRawResponse: - return PreviewsWithRawResponse(self._monitors.previews) + def previews(self) -> PreviewsResourceWithRawResponse: + return PreviewsResourceWithRawResponse(self._monitors.previews) @cached_property - def references(self) -> ReferencesWithRawResponse: - return ReferencesWithRawResponse(self._monitors.references) + def references(self) -> ReferencesResourceWithRawResponse: + return ReferencesResourceWithRawResponse(self._monitors.references) -class AsyncMonitorsWithRawResponse: - def __init__(self, monitors: AsyncMonitors) -> None: +class AsyncMonitorsResourceWithRawResponse: + def __init__(self, monitors: AsyncMonitorsResource) -> None: self._monitors = monitors self.create = async_to_raw_response_wrapper( @@ -1152,16 +1152,16 @@ def __init__(self, monitors: AsyncMonitors) -> None: ) @cached_property - def previews(self) -> AsyncPreviewsWithRawResponse: - return AsyncPreviewsWithRawResponse(self._monitors.previews) + def previews(self) -> AsyncPreviewsResourceWithRawResponse: + return AsyncPreviewsResourceWithRawResponse(self._monitors.previews) @cached_property - def references(self) -> AsyncReferencesWithRawResponse: - return AsyncReferencesWithRawResponse(self._monitors.references) + def references(self) -> AsyncReferencesResourceWithRawResponse: + return AsyncReferencesResourceWithRawResponse(self._monitors.references) -class MonitorsWithStreamingResponse: - def __init__(self, monitors: Monitors) -> None: +class MonitorsResourceWithStreamingResponse: + def __init__(self, monitors: MonitorsResource) -> None: self._monitors = monitors self.create = to_streamed_response_wrapper( @@ -1184,16 +1184,16 @@ def __init__(self, monitors: Monitors) -> None: ) @cached_property - def previews(self) -> PreviewsWithStreamingResponse: - return PreviewsWithStreamingResponse(self._monitors.previews) + def previews(self) -> PreviewsResourceWithStreamingResponse: + return PreviewsResourceWithStreamingResponse(self._monitors.previews) @cached_property - def references(self) -> ReferencesWithStreamingResponse: - return ReferencesWithStreamingResponse(self._monitors.references) + def references(self) -> ReferencesResourceWithStreamingResponse: + return ReferencesResourceWithStreamingResponse(self._monitors.references) -class AsyncMonitorsWithStreamingResponse: - def __init__(self, monitors: AsyncMonitors) -> None: +class AsyncMonitorsResourceWithStreamingResponse: + def __init__(self, monitors: AsyncMonitorsResource) -> None: self._monitors = monitors self.create = async_to_streamed_response_wrapper( @@ -1216,9 +1216,9 @@ def __init__(self, monitors: AsyncMonitors) -> None: ) @cached_property - def previews(self) -> AsyncPreviewsWithStreamingResponse: - return AsyncPreviewsWithStreamingResponse(self._monitors.previews) + def previews(self) -> AsyncPreviewsResourceWithStreamingResponse: + return AsyncPreviewsResourceWithStreamingResponse(self._monitors.previews) @cached_property - def references(self) -> AsyncReferencesWithStreamingResponse: - return AsyncReferencesWithStreamingResponse(self._monitors.references) + def references(self) -> AsyncReferencesResourceWithStreamingResponse: + return AsyncReferencesResourceWithStreamingResponse(self._monitors.references) diff --git a/src/cloudflare/resources/load_balancers/monitors/previews.py b/src/cloudflare/resources/load_balancers/monitors/previews.py index af33c0e44be..df68da9f446 100644 --- a/src/cloudflare/resources/load_balancers/monitors/previews.py +++ b/src/cloudflare/resources/load_balancers/monitors/previews.py @@ -27,17 +27,17 @@ from ....types.load_balancers.monitors import preview_create_params from ....types.load_balancers.monitors.preview_create_response import PreviewCreateResponse -__all__ = ["Previews", "AsyncPreviews"] +__all__ = ["PreviewsResource", "AsyncPreviewsResource"] -class Previews(SyncAPIResource): +class PreviewsResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> PreviewsWithRawResponse: - return PreviewsWithRawResponse(self) + def with_raw_response(self) -> PreviewsResourceWithRawResponse: + return PreviewsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> PreviewsWithStreamingResponse: - return PreviewsWithStreamingResponse(self) + def with_streaming_response(self) -> PreviewsResourceWithStreamingResponse: + return PreviewsResourceWithStreamingResponse(self) def create( self, @@ -170,14 +170,14 @@ def create( ) -class AsyncPreviews(AsyncAPIResource): +class AsyncPreviewsResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncPreviewsWithRawResponse: - return AsyncPreviewsWithRawResponse(self) + def with_raw_response(self) -> AsyncPreviewsResourceWithRawResponse: + return AsyncPreviewsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncPreviewsWithStreamingResponse: - return AsyncPreviewsWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncPreviewsResourceWithStreamingResponse: + return AsyncPreviewsResourceWithStreamingResponse(self) async def create( self, @@ -310,8 +310,8 @@ async def create( ) -class PreviewsWithRawResponse: - def __init__(self, previews: Previews) -> None: +class PreviewsResourceWithRawResponse: + def __init__(self, previews: PreviewsResource) -> None: self._previews = previews self.create = to_raw_response_wrapper( @@ -319,8 +319,8 @@ def __init__(self, previews: Previews) -> None: ) -class AsyncPreviewsWithRawResponse: - def __init__(self, previews: AsyncPreviews) -> None: +class AsyncPreviewsResourceWithRawResponse: + def __init__(self, previews: AsyncPreviewsResource) -> None: self._previews = previews self.create = async_to_raw_response_wrapper( @@ -328,8 +328,8 @@ def __init__(self, previews: AsyncPreviews) -> None: ) -class PreviewsWithStreamingResponse: - def __init__(self, previews: Previews) -> None: +class PreviewsResourceWithStreamingResponse: + def __init__(self, previews: PreviewsResource) -> None: self._previews = previews self.create = to_streamed_response_wrapper( @@ -337,8 +337,8 @@ def __init__(self, previews: Previews) -> None: ) -class AsyncPreviewsWithStreamingResponse: - def __init__(self, previews: AsyncPreviews) -> None: +class AsyncPreviewsResourceWithStreamingResponse: + def __init__(self, previews: AsyncPreviewsResource) -> None: self._previews = previews self.create = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/load_balancers/monitors/references.py b/src/cloudflare/resources/load_balancers/monitors/references.py index d45d7dec76a..d6a57962095 100644 --- a/src/cloudflare/resources/load_balancers/monitors/references.py +++ b/src/cloudflare/resources/load_balancers/monitors/references.py @@ -21,17 +21,17 @@ ) from ....types.load_balancers.monitors.reference_get_response import ReferenceGetResponse -__all__ = ["References", "AsyncReferences"] +__all__ = ["ReferencesResource", "AsyncReferencesResource"] -class References(SyncAPIResource): +class ReferencesResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> ReferencesWithRawResponse: - return ReferencesWithRawResponse(self) + def with_raw_response(self) -> ReferencesResourceWithRawResponse: + return ReferencesResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> ReferencesWithStreamingResponse: - return ReferencesWithStreamingResponse(self) + def with_streaming_response(self) -> ReferencesResourceWithStreamingResponse: + return ReferencesResourceWithStreamingResponse(self) def get( self, @@ -76,14 +76,14 @@ def get( ) -class AsyncReferences(AsyncAPIResource): +class AsyncReferencesResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncReferencesWithRawResponse: - return AsyncReferencesWithRawResponse(self) + def with_raw_response(self) -> AsyncReferencesResourceWithRawResponse: + return AsyncReferencesResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncReferencesWithStreamingResponse: - return AsyncReferencesWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncReferencesResourceWithStreamingResponse: + return AsyncReferencesResourceWithStreamingResponse(self) async def get( self, @@ -128,8 +128,8 @@ async def get( ) -class ReferencesWithRawResponse: - def __init__(self, references: References) -> None: +class ReferencesResourceWithRawResponse: + def __init__(self, references: ReferencesResource) -> None: self._references = references self.get = to_raw_response_wrapper( @@ -137,8 +137,8 @@ def __init__(self, references: References) -> None: ) -class AsyncReferencesWithRawResponse: - def __init__(self, references: AsyncReferences) -> None: +class AsyncReferencesResourceWithRawResponse: + def __init__(self, references: AsyncReferencesResource) -> None: self._references = references self.get = async_to_raw_response_wrapper( @@ -146,8 +146,8 @@ def __init__(self, references: AsyncReferences) -> None: ) -class ReferencesWithStreamingResponse: - def __init__(self, references: References) -> None: +class ReferencesResourceWithStreamingResponse: + def __init__(self, references: ReferencesResource) -> None: self._references = references self.get = to_streamed_response_wrapper( @@ -155,8 +155,8 @@ def __init__(self, references: References) -> None: ) -class AsyncReferencesWithStreamingResponse: - def __init__(self, references: AsyncReferences) -> None: +class AsyncReferencesResourceWithStreamingResponse: + def __init__(self, references: AsyncReferencesResource) -> None: self._references = references self.get = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/load_balancers/pools/__init__.py b/src/cloudflare/resources/load_balancers/pools/__init__.py index 4c7ba4dfc46..1af722d27b7 100644 --- a/src/cloudflare/resources/load_balancers/pools/__init__.py +++ b/src/cloudflare/resources/load_balancers/pools/__init__.py @@ -1,47 +1,47 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from .pools import ( - Pools, - AsyncPools, - PoolsWithRawResponse, - AsyncPoolsWithRawResponse, - PoolsWithStreamingResponse, - AsyncPoolsWithStreamingResponse, + PoolsResource, + AsyncPoolsResource, + PoolsResourceWithRawResponse, + AsyncPoolsResourceWithRawResponse, + PoolsResourceWithStreamingResponse, + AsyncPoolsResourceWithStreamingResponse, ) from .health import ( - Health, - AsyncHealth, - HealthWithRawResponse, - AsyncHealthWithRawResponse, - HealthWithStreamingResponse, - AsyncHealthWithStreamingResponse, + HealthResource, + AsyncHealthResource, + HealthResourceWithRawResponse, + AsyncHealthResourceWithRawResponse, + HealthResourceWithStreamingResponse, + AsyncHealthResourceWithStreamingResponse, ) from .references import ( - References, - AsyncReferences, - ReferencesWithRawResponse, - AsyncReferencesWithRawResponse, - ReferencesWithStreamingResponse, - AsyncReferencesWithStreamingResponse, + ReferencesResource, + AsyncReferencesResource, + ReferencesResourceWithRawResponse, + AsyncReferencesResourceWithRawResponse, + ReferencesResourceWithStreamingResponse, + AsyncReferencesResourceWithStreamingResponse, ) __all__ = [ - "Health", - "AsyncHealth", - "HealthWithRawResponse", - "AsyncHealthWithRawResponse", - "HealthWithStreamingResponse", - "AsyncHealthWithStreamingResponse", - "References", - "AsyncReferences", - "ReferencesWithRawResponse", - "AsyncReferencesWithRawResponse", - "ReferencesWithStreamingResponse", - "AsyncReferencesWithStreamingResponse", - "Pools", - "AsyncPools", - "PoolsWithRawResponse", - "AsyncPoolsWithRawResponse", - "PoolsWithStreamingResponse", - "AsyncPoolsWithStreamingResponse", + "HealthResource", + "AsyncHealthResource", + "HealthResourceWithRawResponse", + "AsyncHealthResourceWithRawResponse", + "HealthResourceWithStreamingResponse", + "AsyncHealthResourceWithStreamingResponse", + "ReferencesResource", + "AsyncReferencesResource", + "ReferencesResourceWithRawResponse", + "AsyncReferencesResourceWithRawResponse", + "ReferencesResourceWithStreamingResponse", + "AsyncReferencesResourceWithStreamingResponse", + "PoolsResource", + "AsyncPoolsResource", + "PoolsResourceWithRawResponse", + "AsyncPoolsResourceWithRawResponse", + "PoolsResourceWithStreamingResponse", + "AsyncPoolsResourceWithStreamingResponse", ] diff --git a/src/cloudflare/resources/load_balancers/pools/health.py b/src/cloudflare/resources/load_balancers/pools/health.py index 0cab0069767..9018456132c 100644 --- a/src/cloudflare/resources/load_balancers/pools/health.py +++ b/src/cloudflare/resources/load_balancers/pools/health.py @@ -28,17 +28,17 @@ from ....types.load_balancers.pools.health_get_response import HealthGetResponse from ....types.load_balancers.pools.health_create_response import HealthCreateResponse -__all__ = ["Health", "AsyncHealth"] +__all__ = ["HealthResource", "AsyncHealthResource"] -class Health(SyncAPIResource): +class HealthResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> HealthWithRawResponse: - return HealthWithRawResponse(self) + def with_raw_response(self) -> HealthResourceWithRawResponse: + return HealthResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> HealthWithStreamingResponse: - return HealthWithStreamingResponse(self) + def with_streaming_response(self) -> HealthResourceWithStreamingResponse: + return HealthResourceWithStreamingResponse(self) def create( self, @@ -218,14 +218,14 @@ def get( ) -class AsyncHealth(AsyncAPIResource): +class AsyncHealthResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncHealthWithRawResponse: - return AsyncHealthWithRawResponse(self) + def with_raw_response(self) -> AsyncHealthResourceWithRawResponse: + return AsyncHealthResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncHealthWithStreamingResponse: - return AsyncHealthWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncHealthResourceWithStreamingResponse: + return AsyncHealthResourceWithStreamingResponse(self) async def create( self, @@ -405,8 +405,8 @@ async def get( ) -class HealthWithRawResponse: - def __init__(self, health: Health) -> None: +class HealthResourceWithRawResponse: + def __init__(self, health: HealthResource) -> None: self._health = health self.create = to_raw_response_wrapper( @@ -417,8 +417,8 @@ def __init__(self, health: Health) -> None: ) -class AsyncHealthWithRawResponse: - def __init__(self, health: AsyncHealth) -> None: +class AsyncHealthResourceWithRawResponse: + def __init__(self, health: AsyncHealthResource) -> None: self._health = health self.create = async_to_raw_response_wrapper( @@ -429,8 +429,8 @@ def __init__(self, health: AsyncHealth) -> None: ) -class HealthWithStreamingResponse: - def __init__(self, health: Health) -> None: +class HealthResourceWithStreamingResponse: + def __init__(self, health: HealthResource) -> None: self._health = health self.create = to_streamed_response_wrapper( @@ -441,8 +441,8 @@ def __init__(self, health: Health) -> None: ) -class AsyncHealthWithStreamingResponse: - def __init__(self, health: AsyncHealth) -> None: +class AsyncHealthResourceWithStreamingResponse: + def __init__(self, health: AsyncHealthResource) -> None: self._health = health self.create = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/load_balancers/pools/pools.py b/src/cloudflare/resources/load_balancers/pools/pools.py index b115d8e4d04..f72a395e9fb 100644 --- a/src/cloudflare/resources/load_balancers/pools/pools.py +++ b/src/cloudflare/resources/load_balancers/pools/pools.py @@ -7,12 +7,12 @@ import httpx from .health import ( - Health, - AsyncHealth, - HealthWithRawResponse, - AsyncHealthWithRawResponse, - HealthWithStreamingResponse, - AsyncHealthWithStreamingResponse, + HealthResource, + AsyncHealthResource, + HealthResourceWithRawResponse, + AsyncHealthResourceWithRawResponse, + HealthResourceWithStreamingResponse, + AsyncHealthResourceWithStreamingResponse, ) from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven from ...._utils import ( @@ -21,12 +21,12 @@ ) from ...._compat import cached_property from .references import ( - References, - AsyncReferences, - ReferencesWithRawResponse, - AsyncReferencesWithRawResponse, - ReferencesWithStreamingResponse, - AsyncReferencesWithStreamingResponse, + ReferencesResource, + AsyncReferencesResource, + ReferencesResourceWithRawResponse, + AsyncReferencesResourceWithRawResponse, + ReferencesResourceWithStreamingResponse, + AsyncReferencesResourceWithStreamingResponse, ) from ...._resource import SyncAPIResource, AsyncAPIResource from ...._response import ( @@ -56,25 +56,25 @@ from ....types.load_balancers.origin_steering_param import OriginSteeringParam from ....types.load_balancers.notification_filter_param import NotificationFilterParam -__all__ = ["Pools", "AsyncPools"] +__all__ = ["PoolsResource", "AsyncPoolsResource"] -class Pools(SyncAPIResource): +class PoolsResource(SyncAPIResource): @cached_property - def health(self) -> Health: - return Health(self._client) + def health(self) -> HealthResource: + return HealthResource(self._client) @cached_property - def references(self) -> References: - return References(self._client) + def references(self) -> ReferencesResource: + return ReferencesResource(self._client) @cached_property - def with_raw_response(self) -> PoolsWithRawResponse: - return PoolsWithRawResponse(self) + def with_raw_response(self) -> PoolsResourceWithRawResponse: + return PoolsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> PoolsWithStreamingResponse: - return PoolsWithStreamingResponse(self) + def with_streaming_response(self) -> PoolsResourceWithStreamingResponse: + return PoolsResourceWithStreamingResponse(self) def create( self, @@ -544,22 +544,22 @@ def get( ) -class AsyncPools(AsyncAPIResource): +class AsyncPoolsResource(AsyncAPIResource): @cached_property - def health(self) -> AsyncHealth: - return AsyncHealth(self._client) + def health(self) -> AsyncHealthResource: + return AsyncHealthResource(self._client) @cached_property - def references(self) -> AsyncReferences: - return AsyncReferences(self._client) + def references(self) -> AsyncReferencesResource: + return AsyncReferencesResource(self._client) @cached_property - def with_raw_response(self) -> AsyncPoolsWithRawResponse: - return AsyncPoolsWithRawResponse(self) + def with_raw_response(self) -> AsyncPoolsResourceWithRawResponse: + return AsyncPoolsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncPoolsWithStreamingResponse: - return AsyncPoolsWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncPoolsResourceWithStreamingResponse: + return AsyncPoolsResourceWithStreamingResponse(self) async def create( self, @@ -1029,8 +1029,8 @@ async def get( ) -class PoolsWithRawResponse: - def __init__(self, pools: Pools) -> None: +class PoolsResourceWithRawResponse: + def __init__(self, pools: PoolsResource) -> None: self._pools = pools self.create = to_raw_response_wrapper( @@ -1053,16 +1053,16 @@ def __init__(self, pools: Pools) -> None: ) @cached_property - def health(self) -> HealthWithRawResponse: - return HealthWithRawResponse(self._pools.health) + def health(self) -> HealthResourceWithRawResponse: + return HealthResourceWithRawResponse(self._pools.health) @cached_property - def references(self) -> ReferencesWithRawResponse: - return ReferencesWithRawResponse(self._pools.references) + def references(self) -> ReferencesResourceWithRawResponse: + return ReferencesResourceWithRawResponse(self._pools.references) -class AsyncPoolsWithRawResponse: - def __init__(self, pools: AsyncPools) -> None: +class AsyncPoolsResourceWithRawResponse: + def __init__(self, pools: AsyncPoolsResource) -> None: self._pools = pools self.create = async_to_raw_response_wrapper( @@ -1085,16 +1085,16 @@ def __init__(self, pools: AsyncPools) -> None: ) @cached_property - def health(self) -> AsyncHealthWithRawResponse: - return AsyncHealthWithRawResponse(self._pools.health) + def health(self) -> AsyncHealthResourceWithRawResponse: + return AsyncHealthResourceWithRawResponse(self._pools.health) @cached_property - def references(self) -> AsyncReferencesWithRawResponse: - return AsyncReferencesWithRawResponse(self._pools.references) + def references(self) -> AsyncReferencesResourceWithRawResponse: + return AsyncReferencesResourceWithRawResponse(self._pools.references) -class PoolsWithStreamingResponse: - def __init__(self, pools: Pools) -> None: +class PoolsResourceWithStreamingResponse: + def __init__(self, pools: PoolsResource) -> None: self._pools = pools self.create = to_streamed_response_wrapper( @@ -1117,16 +1117,16 @@ def __init__(self, pools: Pools) -> None: ) @cached_property - def health(self) -> HealthWithStreamingResponse: - return HealthWithStreamingResponse(self._pools.health) + def health(self) -> HealthResourceWithStreamingResponse: + return HealthResourceWithStreamingResponse(self._pools.health) @cached_property - def references(self) -> ReferencesWithStreamingResponse: - return ReferencesWithStreamingResponse(self._pools.references) + def references(self) -> ReferencesResourceWithStreamingResponse: + return ReferencesResourceWithStreamingResponse(self._pools.references) -class AsyncPoolsWithStreamingResponse: - def __init__(self, pools: AsyncPools) -> None: +class AsyncPoolsResourceWithStreamingResponse: + def __init__(self, pools: AsyncPoolsResource) -> None: self._pools = pools self.create = async_to_streamed_response_wrapper( @@ -1149,9 +1149,9 @@ def __init__(self, pools: AsyncPools) -> None: ) @cached_property - def health(self) -> AsyncHealthWithStreamingResponse: - return AsyncHealthWithStreamingResponse(self._pools.health) + def health(self) -> AsyncHealthResourceWithStreamingResponse: + return AsyncHealthResourceWithStreamingResponse(self._pools.health) @cached_property - def references(self) -> AsyncReferencesWithStreamingResponse: - return AsyncReferencesWithStreamingResponse(self._pools.references) + def references(self) -> AsyncReferencesResourceWithStreamingResponse: + return AsyncReferencesResourceWithStreamingResponse(self._pools.references) diff --git a/src/cloudflare/resources/load_balancers/pools/references.py b/src/cloudflare/resources/load_balancers/pools/references.py index 69a5075ee53..a66b780bb96 100644 --- a/src/cloudflare/resources/load_balancers/pools/references.py +++ b/src/cloudflare/resources/load_balancers/pools/references.py @@ -21,17 +21,17 @@ ) from ....types.load_balancers.pools.reference_get_response import ReferenceGetResponse -__all__ = ["References", "AsyncReferences"] +__all__ = ["ReferencesResource", "AsyncReferencesResource"] -class References(SyncAPIResource): +class ReferencesResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> ReferencesWithRawResponse: - return ReferencesWithRawResponse(self) + def with_raw_response(self) -> ReferencesResourceWithRawResponse: + return ReferencesResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> ReferencesWithStreamingResponse: - return ReferencesWithStreamingResponse(self) + def with_streaming_response(self) -> ReferencesResourceWithStreamingResponse: + return ReferencesResourceWithStreamingResponse(self) def get( self, @@ -76,14 +76,14 @@ def get( ) -class AsyncReferences(AsyncAPIResource): +class AsyncReferencesResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncReferencesWithRawResponse: - return AsyncReferencesWithRawResponse(self) + def with_raw_response(self) -> AsyncReferencesResourceWithRawResponse: + return AsyncReferencesResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncReferencesWithStreamingResponse: - return AsyncReferencesWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncReferencesResourceWithStreamingResponse: + return AsyncReferencesResourceWithStreamingResponse(self) async def get( self, @@ -128,8 +128,8 @@ async def get( ) -class ReferencesWithRawResponse: - def __init__(self, references: References) -> None: +class ReferencesResourceWithRawResponse: + def __init__(self, references: ReferencesResource) -> None: self._references = references self.get = to_raw_response_wrapper( @@ -137,8 +137,8 @@ def __init__(self, references: References) -> None: ) -class AsyncReferencesWithRawResponse: - def __init__(self, references: AsyncReferences) -> None: +class AsyncReferencesResourceWithRawResponse: + def __init__(self, references: AsyncReferencesResource) -> None: self._references = references self.get = async_to_raw_response_wrapper( @@ -146,8 +146,8 @@ def __init__(self, references: AsyncReferences) -> None: ) -class ReferencesWithStreamingResponse: - def __init__(self, references: References) -> None: +class ReferencesResourceWithStreamingResponse: + def __init__(self, references: ReferencesResource) -> None: self._references = references self.get = to_streamed_response_wrapper( @@ -155,8 +155,8 @@ def __init__(self, references: References) -> None: ) -class AsyncReferencesWithStreamingResponse: - def __init__(self, references: AsyncReferences) -> None: +class AsyncReferencesResourceWithStreamingResponse: + def __init__(self, references: AsyncReferencesResource) -> None: self._references = references self.get = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/load_balancers/previews.py b/src/cloudflare/resources/load_balancers/previews.py index b278228c134..5014648be35 100644 --- a/src/cloudflare/resources/load_balancers/previews.py +++ b/src/cloudflare/resources/load_balancers/previews.py @@ -21,17 +21,17 @@ ) from ...types.load_balancers.preview_get_response import PreviewGetResponse -__all__ = ["Previews", "AsyncPreviews"] +__all__ = ["PreviewsResource", "AsyncPreviewsResource"] -class Previews(SyncAPIResource): +class PreviewsResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> PreviewsWithRawResponse: - return PreviewsWithRawResponse(self) + def with_raw_response(self) -> PreviewsResourceWithRawResponse: + return PreviewsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> PreviewsWithStreamingResponse: - return PreviewsWithStreamingResponse(self) + def with_streaming_response(self) -> PreviewsResourceWithStreamingResponse: + return PreviewsResourceWithStreamingResponse(self) def get( self, @@ -76,14 +76,14 @@ def get( ) -class AsyncPreviews(AsyncAPIResource): +class AsyncPreviewsResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncPreviewsWithRawResponse: - return AsyncPreviewsWithRawResponse(self) + def with_raw_response(self) -> AsyncPreviewsResourceWithRawResponse: + return AsyncPreviewsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncPreviewsWithStreamingResponse: - return AsyncPreviewsWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncPreviewsResourceWithStreamingResponse: + return AsyncPreviewsResourceWithStreamingResponse(self) async def get( self, @@ -128,8 +128,8 @@ async def get( ) -class PreviewsWithRawResponse: - def __init__(self, previews: Previews) -> None: +class PreviewsResourceWithRawResponse: + def __init__(self, previews: PreviewsResource) -> None: self._previews = previews self.get = to_raw_response_wrapper( @@ -137,8 +137,8 @@ def __init__(self, previews: Previews) -> None: ) -class AsyncPreviewsWithRawResponse: - def __init__(self, previews: AsyncPreviews) -> None: +class AsyncPreviewsResourceWithRawResponse: + def __init__(self, previews: AsyncPreviewsResource) -> None: self._previews = previews self.get = async_to_raw_response_wrapper( @@ -146,8 +146,8 @@ def __init__(self, previews: AsyncPreviews) -> None: ) -class PreviewsWithStreamingResponse: - def __init__(self, previews: Previews) -> None: +class PreviewsResourceWithStreamingResponse: + def __init__(self, previews: PreviewsResource) -> None: self._previews = previews self.get = to_streamed_response_wrapper( @@ -155,8 +155,8 @@ def __init__(self, previews: Previews) -> None: ) -class AsyncPreviewsWithStreamingResponse: - def __init__(self, previews: AsyncPreviews) -> None: +class AsyncPreviewsResourceWithStreamingResponse: + def __init__(self, previews: AsyncPreviewsResource) -> None: self._previews = previews self.get = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/load_balancers/regions.py b/src/cloudflare/resources/load_balancers/regions.py index ea3babea28c..21ce3a8b4eb 100644 --- a/src/cloudflare/resources/load_balancers/regions.py +++ b/src/cloudflare/resources/load_balancers/regions.py @@ -28,17 +28,17 @@ from ...types.load_balancers.region_get_response import RegionGetResponse from ...types.load_balancers.region_list_response import RegionListResponse -__all__ = ["Regions", "AsyncRegions"] +__all__ = ["RegionsResource", "AsyncRegionsResource"] -class Regions(SyncAPIResource): +class RegionsResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> RegionsWithRawResponse: - return RegionsWithRawResponse(self) + def with_raw_response(self) -> RegionsResourceWithRawResponse: + return RegionsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> RegionsWithStreamingResponse: - return RegionsWithStreamingResponse(self) + def with_streaming_response(self) -> RegionsResourceWithStreamingResponse: + return RegionsResourceWithStreamingResponse(self) def list( self, @@ -157,14 +157,14 @@ def get( ) -class AsyncRegions(AsyncAPIResource): +class AsyncRegionsResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncRegionsWithRawResponse: - return AsyncRegionsWithRawResponse(self) + def with_raw_response(self) -> AsyncRegionsResourceWithRawResponse: + return AsyncRegionsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncRegionsWithStreamingResponse: - return AsyncRegionsWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncRegionsResourceWithStreamingResponse: + return AsyncRegionsResourceWithStreamingResponse(self) async def list( self, @@ -283,8 +283,8 @@ async def get( ) -class RegionsWithRawResponse: - def __init__(self, regions: Regions) -> None: +class RegionsResourceWithRawResponse: + def __init__(self, regions: RegionsResource) -> None: self._regions = regions self.list = to_raw_response_wrapper( @@ -295,8 +295,8 @@ def __init__(self, regions: Regions) -> None: ) -class AsyncRegionsWithRawResponse: - def __init__(self, regions: AsyncRegions) -> None: +class AsyncRegionsResourceWithRawResponse: + def __init__(self, regions: AsyncRegionsResource) -> None: self._regions = regions self.list = async_to_raw_response_wrapper( @@ -307,8 +307,8 @@ def __init__(self, regions: AsyncRegions) -> None: ) -class RegionsWithStreamingResponse: - def __init__(self, regions: Regions) -> None: +class RegionsResourceWithStreamingResponse: + def __init__(self, regions: RegionsResource) -> None: self._regions = regions self.list = to_streamed_response_wrapper( @@ -319,8 +319,8 @@ def __init__(self, regions: Regions) -> None: ) -class AsyncRegionsWithStreamingResponse: - def __init__(self, regions: AsyncRegions) -> None: +class AsyncRegionsResourceWithStreamingResponse: + def __init__(self, regions: AsyncRegionsResource) -> None: self._regions = regions self.list = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/load_balancers/searches.py b/src/cloudflare/resources/load_balancers/searches.py index 8ac7a75a72c..5d52ce7aaec 100644 --- a/src/cloudflare/resources/load_balancers/searches.py +++ b/src/cloudflare/resources/load_balancers/searches.py @@ -26,17 +26,17 @@ from ...types.load_balancers import search_get_params from ...types.load_balancers.search_get_response import SearchGetResponse -__all__ = ["Searches", "AsyncSearches"] +__all__ = ["SearchesResource", "AsyncSearchesResource"] -class Searches(SyncAPIResource): +class SearchesResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> SearchesWithRawResponse: - return SearchesWithRawResponse(self) + def with_raw_response(self) -> SearchesResourceWithRawResponse: + return SearchesResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> SearchesWithStreamingResponse: - return SearchesWithStreamingResponse(self) + def with_streaming_response(self) -> SearchesResourceWithStreamingResponse: + return SearchesResourceWithStreamingResponse(self) def get( self, @@ -89,14 +89,14 @@ def get( ) -class AsyncSearches(AsyncAPIResource): +class AsyncSearchesResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncSearchesWithRawResponse: - return AsyncSearchesWithRawResponse(self) + def with_raw_response(self) -> AsyncSearchesResourceWithRawResponse: + return AsyncSearchesResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncSearchesWithStreamingResponse: - return AsyncSearchesWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncSearchesResourceWithStreamingResponse: + return AsyncSearchesResourceWithStreamingResponse(self) async def get( self, @@ -149,8 +149,8 @@ async def get( ) -class SearchesWithRawResponse: - def __init__(self, searches: Searches) -> None: +class SearchesResourceWithRawResponse: + def __init__(self, searches: SearchesResource) -> None: self._searches = searches self.get = to_raw_response_wrapper( @@ -158,8 +158,8 @@ def __init__(self, searches: Searches) -> None: ) -class AsyncSearchesWithRawResponse: - def __init__(self, searches: AsyncSearches) -> None: +class AsyncSearchesResourceWithRawResponse: + def __init__(self, searches: AsyncSearchesResource) -> None: self._searches = searches self.get = async_to_raw_response_wrapper( @@ -167,8 +167,8 @@ def __init__(self, searches: AsyncSearches) -> None: ) -class SearchesWithStreamingResponse: - def __init__(self, searches: Searches) -> None: +class SearchesResourceWithStreamingResponse: + def __init__(self, searches: SearchesResource) -> None: self._searches = searches self.get = to_streamed_response_wrapper( @@ -176,8 +176,8 @@ def __init__(self, searches: Searches) -> None: ) -class AsyncSearchesWithStreamingResponse: - def __init__(self, searches: AsyncSearches) -> None: +class AsyncSearchesResourceWithStreamingResponse: + def __init__(self, searches: AsyncSearchesResource) -> None: self._searches = searches self.get = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/logpush/__init__.py b/src/cloudflare/resources/logpush/__init__.py index cd54a2efc7d..a1e3be0ccc2 100644 --- a/src/cloudflare/resources/logpush/__init__.py +++ b/src/cloudflare/resources/logpush/__init__.py @@ -1,89 +1,89 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from .edge import ( - Edge, - AsyncEdge, - EdgeWithRawResponse, - AsyncEdgeWithRawResponse, - EdgeWithStreamingResponse, - AsyncEdgeWithStreamingResponse, + EdgeResource, + AsyncEdgeResource, + EdgeResourceWithRawResponse, + AsyncEdgeResourceWithRawResponse, + EdgeResourceWithStreamingResponse, + AsyncEdgeResourceWithStreamingResponse, ) from .jobs import ( - Jobs, - AsyncJobs, - JobsWithRawResponse, - AsyncJobsWithRawResponse, - JobsWithStreamingResponse, - AsyncJobsWithStreamingResponse, + JobsResource, + AsyncJobsResource, + JobsResourceWithRawResponse, + AsyncJobsResourceWithRawResponse, + JobsResourceWithStreamingResponse, + AsyncJobsResourceWithStreamingResponse, ) from .logpush import ( - Logpush, - AsyncLogpush, - LogpushWithRawResponse, - AsyncLogpushWithRawResponse, - LogpushWithStreamingResponse, - AsyncLogpushWithStreamingResponse, + LogpushResource, + AsyncLogpushResource, + LogpushResourceWithRawResponse, + AsyncLogpushResourceWithRawResponse, + LogpushResourceWithStreamingResponse, + AsyncLogpushResourceWithStreamingResponse, ) from .datasets import ( - Datasets, - AsyncDatasets, - DatasetsWithRawResponse, - AsyncDatasetsWithRawResponse, - DatasetsWithStreamingResponse, - AsyncDatasetsWithStreamingResponse, + DatasetsResource, + AsyncDatasetsResource, + DatasetsResourceWithRawResponse, + AsyncDatasetsResourceWithRawResponse, + DatasetsResourceWithStreamingResponse, + AsyncDatasetsResourceWithStreamingResponse, ) from .validate import ( - Validate, - AsyncValidate, - ValidateWithRawResponse, - AsyncValidateWithRawResponse, - ValidateWithStreamingResponse, - AsyncValidateWithStreamingResponse, + ValidateResource, + AsyncValidateResource, + ValidateResourceWithRawResponse, + AsyncValidateResourceWithRawResponse, + ValidateResourceWithStreamingResponse, + AsyncValidateResourceWithStreamingResponse, ) from .ownership import ( - Ownership, - AsyncOwnership, - OwnershipWithRawResponse, - AsyncOwnershipWithRawResponse, - OwnershipWithStreamingResponse, - AsyncOwnershipWithStreamingResponse, + OwnershipResource, + AsyncOwnershipResource, + OwnershipResourceWithRawResponse, + AsyncOwnershipResourceWithRawResponse, + OwnershipResourceWithStreamingResponse, + AsyncOwnershipResourceWithStreamingResponse, ) __all__ = [ - "Datasets", - "AsyncDatasets", - "DatasetsWithRawResponse", - "AsyncDatasetsWithRawResponse", - "DatasetsWithStreamingResponse", - "AsyncDatasetsWithStreamingResponse", - "Edge", - "AsyncEdge", - "EdgeWithRawResponse", - "AsyncEdgeWithRawResponse", - "EdgeWithStreamingResponse", - "AsyncEdgeWithStreamingResponse", - "Jobs", - "AsyncJobs", - "JobsWithRawResponse", - "AsyncJobsWithRawResponse", - "JobsWithStreamingResponse", - "AsyncJobsWithStreamingResponse", - "Ownership", - "AsyncOwnership", - "OwnershipWithRawResponse", - "AsyncOwnershipWithRawResponse", - "OwnershipWithStreamingResponse", - "AsyncOwnershipWithStreamingResponse", - "Validate", - "AsyncValidate", - "ValidateWithRawResponse", - "AsyncValidateWithRawResponse", - "ValidateWithStreamingResponse", - "AsyncValidateWithStreamingResponse", - "Logpush", - "AsyncLogpush", - "LogpushWithRawResponse", - "AsyncLogpushWithRawResponse", - "LogpushWithStreamingResponse", - "AsyncLogpushWithStreamingResponse", + "DatasetsResource", + "AsyncDatasetsResource", + "DatasetsResourceWithRawResponse", + "AsyncDatasetsResourceWithRawResponse", + "DatasetsResourceWithStreamingResponse", + "AsyncDatasetsResourceWithStreamingResponse", + "EdgeResource", + "AsyncEdgeResource", + "EdgeResourceWithRawResponse", + "AsyncEdgeResourceWithRawResponse", + "EdgeResourceWithStreamingResponse", + "AsyncEdgeResourceWithStreamingResponse", + "JobsResource", + "AsyncJobsResource", + "JobsResourceWithRawResponse", + "AsyncJobsResourceWithRawResponse", + "JobsResourceWithStreamingResponse", + "AsyncJobsResourceWithStreamingResponse", + "OwnershipResource", + "AsyncOwnershipResource", + "OwnershipResourceWithRawResponse", + "AsyncOwnershipResourceWithRawResponse", + "OwnershipResourceWithStreamingResponse", + "AsyncOwnershipResourceWithStreamingResponse", + "ValidateResource", + "AsyncValidateResource", + "ValidateResourceWithRawResponse", + "AsyncValidateResourceWithRawResponse", + "ValidateResourceWithStreamingResponse", + "AsyncValidateResourceWithStreamingResponse", + "LogpushResource", + "AsyncLogpushResource", + "LogpushResourceWithRawResponse", + "AsyncLogpushResourceWithRawResponse", + "LogpushResourceWithStreamingResponse", + "AsyncLogpushResourceWithStreamingResponse", ] diff --git a/src/cloudflare/resources/logpush/datasets/__init__.py b/src/cloudflare/resources/logpush/datasets/__init__.py index 5f7eeabee86..55ef58eac3a 100644 --- a/src/cloudflare/resources/logpush/datasets/__init__.py +++ b/src/cloudflare/resources/logpush/datasets/__init__.py @@ -1,47 +1,47 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from .jobs import ( - Jobs, - AsyncJobs, - JobsWithRawResponse, - AsyncJobsWithRawResponse, - JobsWithStreamingResponse, - AsyncJobsWithStreamingResponse, + JobsResource, + AsyncJobsResource, + JobsResourceWithRawResponse, + AsyncJobsResourceWithRawResponse, + JobsResourceWithStreamingResponse, + AsyncJobsResourceWithStreamingResponse, ) from .fields import ( - Fields, - AsyncFields, - FieldsWithRawResponse, - AsyncFieldsWithRawResponse, - FieldsWithStreamingResponse, - AsyncFieldsWithStreamingResponse, + FieldsResource, + AsyncFieldsResource, + FieldsResourceWithRawResponse, + AsyncFieldsResourceWithRawResponse, + FieldsResourceWithStreamingResponse, + AsyncFieldsResourceWithStreamingResponse, ) from .datasets import ( - Datasets, - AsyncDatasets, - DatasetsWithRawResponse, - AsyncDatasetsWithRawResponse, - DatasetsWithStreamingResponse, - AsyncDatasetsWithStreamingResponse, + DatasetsResource, + AsyncDatasetsResource, + DatasetsResourceWithRawResponse, + AsyncDatasetsResourceWithRawResponse, + DatasetsResourceWithStreamingResponse, + AsyncDatasetsResourceWithStreamingResponse, ) __all__ = [ - "Fields", - "AsyncFields", - "FieldsWithRawResponse", - "AsyncFieldsWithRawResponse", - "FieldsWithStreamingResponse", - "AsyncFieldsWithStreamingResponse", - "Jobs", - "AsyncJobs", - "JobsWithRawResponse", - "AsyncJobsWithRawResponse", - "JobsWithStreamingResponse", - "AsyncJobsWithStreamingResponse", - "Datasets", - "AsyncDatasets", - "DatasetsWithRawResponse", - "AsyncDatasetsWithRawResponse", - "DatasetsWithStreamingResponse", - "AsyncDatasetsWithStreamingResponse", + "FieldsResource", + "AsyncFieldsResource", + "FieldsResourceWithRawResponse", + "AsyncFieldsResourceWithRawResponse", + "FieldsResourceWithStreamingResponse", + "AsyncFieldsResourceWithStreamingResponse", + "JobsResource", + "AsyncJobsResource", + "JobsResourceWithRawResponse", + "AsyncJobsResourceWithRawResponse", + "JobsResourceWithStreamingResponse", + "AsyncJobsResourceWithStreamingResponse", + "DatasetsResource", + "AsyncDatasetsResource", + "DatasetsResourceWithRawResponse", + "AsyncDatasetsResourceWithRawResponse", + "DatasetsResourceWithStreamingResponse", + "AsyncDatasetsResourceWithStreamingResponse", ] diff --git a/src/cloudflare/resources/logpush/datasets/datasets.py b/src/cloudflare/resources/logpush/datasets/datasets.py index 65efe906677..e2218d3f1db 100644 --- a/src/cloudflare/resources/logpush/datasets/datasets.py +++ b/src/cloudflare/resources/logpush/datasets/datasets.py @@ -3,110 +3,110 @@ from __future__ import annotations from .jobs import ( - Jobs, - AsyncJobs, - JobsWithRawResponse, - AsyncJobsWithRawResponse, - JobsWithStreamingResponse, - AsyncJobsWithStreamingResponse, + JobsResource, + AsyncJobsResource, + JobsResourceWithRawResponse, + AsyncJobsResourceWithRawResponse, + JobsResourceWithStreamingResponse, + AsyncJobsResourceWithStreamingResponse, ) from .fields import ( - Fields, - AsyncFields, - FieldsWithRawResponse, - AsyncFieldsWithRawResponse, - FieldsWithStreamingResponse, - AsyncFieldsWithStreamingResponse, + FieldsResource, + AsyncFieldsResource, + FieldsResourceWithRawResponse, + AsyncFieldsResourceWithRawResponse, + FieldsResourceWithStreamingResponse, + AsyncFieldsResourceWithStreamingResponse, ) from ...._compat import cached_property from ...._resource import SyncAPIResource, AsyncAPIResource -__all__ = ["Datasets", "AsyncDatasets"] +__all__ = ["DatasetsResource", "AsyncDatasetsResource"] -class Datasets(SyncAPIResource): +class DatasetsResource(SyncAPIResource): @cached_property - def fields(self) -> Fields: - return Fields(self._client) + def fields(self) -> FieldsResource: + return FieldsResource(self._client) @cached_property - def jobs(self) -> Jobs: - return Jobs(self._client) + def jobs(self) -> JobsResource: + return JobsResource(self._client) @cached_property - def with_raw_response(self) -> DatasetsWithRawResponse: - return DatasetsWithRawResponse(self) + def with_raw_response(self) -> DatasetsResourceWithRawResponse: + return DatasetsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> DatasetsWithStreamingResponse: - return DatasetsWithStreamingResponse(self) + def with_streaming_response(self) -> DatasetsResourceWithStreamingResponse: + return DatasetsResourceWithStreamingResponse(self) -class AsyncDatasets(AsyncAPIResource): +class AsyncDatasetsResource(AsyncAPIResource): @cached_property - def fields(self) -> AsyncFields: - return AsyncFields(self._client) + def fields(self) -> AsyncFieldsResource: + return AsyncFieldsResource(self._client) @cached_property - def jobs(self) -> AsyncJobs: - return AsyncJobs(self._client) + def jobs(self) -> AsyncJobsResource: + return AsyncJobsResource(self._client) @cached_property - def with_raw_response(self) -> AsyncDatasetsWithRawResponse: - return AsyncDatasetsWithRawResponse(self) + def with_raw_response(self) -> AsyncDatasetsResourceWithRawResponse: + return AsyncDatasetsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncDatasetsWithStreamingResponse: - return AsyncDatasetsWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncDatasetsResourceWithStreamingResponse: + return AsyncDatasetsResourceWithStreamingResponse(self) -class DatasetsWithRawResponse: - def __init__(self, datasets: Datasets) -> None: +class DatasetsResourceWithRawResponse: + def __init__(self, datasets: DatasetsResource) -> None: self._datasets = datasets @cached_property - def fields(self) -> FieldsWithRawResponse: - return FieldsWithRawResponse(self._datasets.fields) + def fields(self) -> FieldsResourceWithRawResponse: + return FieldsResourceWithRawResponse(self._datasets.fields) @cached_property - def jobs(self) -> JobsWithRawResponse: - return JobsWithRawResponse(self._datasets.jobs) + def jobs(self) -> JobsResourceWithRawResponse: + return JobsResourceWithRawResponse(self._datasets.jobs) -class AsyncDatasetsWithRawResponse: - def __init__(self, datasets: AsyncDatasets) -> None: +class AsyncDatasetsResourceWithRawResponse: + def __init__(self, datasets: AsyncDatasetsResource) -> None: self._datasets = datasets @cached_property - def fields(self) -> AsyncFieldsWithRawResponse: - return AsyncFieldsWithRawResponse(self._datasets.fields) + def fields(self) -> AsyncFieldsResourceWithRawResponse: + return AsyncFieldsResourceWithRawResponse(self._datasets.fields) @cached_property - def jobs(self) -> AsyncJobsWithRawResponse: - return AsyncJobsWithRawResponse(self._datasets.jobs) + def jobs(self) -> AsyncJobsResourceWithRawResponse: + return AsyncJobsResourceWithRawResponse(self._datasets.jobs) -class DatasetsWithStreamingResponse: - def __init__(self, datasets: Datasets) -> None: +class DatasetsResourceWithStreamingResponse: + def __init__(self, datasets: DatasetsResource) -> None: self._datasets = datasets @cached_property - def fields(self) -> FieldsWithStreamingResponse: - return FieldsWithStreamingResponse(self._datasets.fields) + def fields(self) -> FieldsResourceWithStreamingResponse: + return FieldsResourceWithStreamingResponse(self._datasets.fields) @cached_property - def jobs(self) -> JobsWithStreamingResponse: - return JobsWithStreamingResponse(self._datasets.jobs) + def jobs(self) -> JobsResourceWithStreamingResponse: + return JobsResourceWithStreamingResponse(self._datasets.jobs) -class AsyncDatasetsWithStreamingResponse: - def __init__(self, datasets: AsyncDatasets) -> None: +class AsyncDatasetsResourceWithStreamingResponse: + def __init__(self, datasets: AsyncDatasetsResource) -> None: self._datasets = datasets @cached_property - def fields(self) -> AsyncFieldsWithStreamingResponse: - return AsyncFieldsWithStreamingResponse(self._datasets.fields) + def fields(self) -> AsyncFieldsResourceWithStreamingResponse: + return AsyncFieldsResourceWithStreamingResponse(self._datasets.fields) @cached_property - def jobs(self) -> AsyncJobsWithStreamingResponse: - return AsyncJobsWithStreamingResponse(self._datasets.jobs) + def jobs(self) -> AsyncJobsResourceWithStreamingResponse: + return AsyncJobsResourceWithStreamingResponse(self._datasets.jobs) diff --git a/src/cloudflare/resources/logpush/datasets/fields.py b/src/cloudflare/resources/logpush/datasets/fields.py index 86797166353..8fd43b17e1c 100644 --- a/src/cloudflare/resources/logpush/datasets/fields.py +++ b/src/cloudflare/resources/logpush/datasets/fields.py @@ -20,17 +20,17 @@ make_request_options, ) -__all__ = ["Fields", "AsyncFields"] +__all__ = ["FieldsResource", "AsyncFieldsResource"] -class Fields(SyncAPIResource): +class FieldsResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> FieldsWithRawResponse: - return FieldsWithRawResponse(self) + def with_raw_response(self) -> FieldsResourceWithRawResponse: + return FieldsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> FieldsWithStreamingResponse: - return FieldsWithStreamingResponse(self) + def with_streaming_response(self) -> FieldsResourceWithStreamingResponse: + return FieldsResourceWithStreamingResponse(self) def get( self, @@ -92,14 +92,14 @@ def get( ) -class AsyncFields(AsyncAPIResource): +class AsyncFieldsResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncFieldsWithRawResponse: - return AsyncFieldsWithRawResponse(self) + def with_raw_response(self) -> AsyncFieldsResourceWithRawResponse: + return AsyncFieldsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncFieldsWithStreamingResponse: - return AsyncFieldsWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncFieldsResourceWithStreamingResponse: + return AsyncFieldsResourceWithStreamingResponse(self) async def get( self, @@ -161,8 +161,8 @@ async def get( ) -class FieldsWithRawResponse: - def __init__(self, fields: Fields) -> None: +class FieldsResourceWithRawResponse: + def __init__(self, fields: FieldsResource) -> None: self._fields = fields self.get = to_raw_response_wrapper( @@ -170,8 +170,8 @@ def __init__(self, fields: Fields) -> None: ) -class AsyncFieldsWithRawResponse: - def __init__(self, fields: AsyncFields) -> None: +class AsyncFieldsResourceWithRawResponse: + def __init__(self, fields: AsyncFieldsResource) -> None: self._fields = fields self.get = async_to_raw_response_wrapper( @@ -179,8 +179,8 @@ def __init__(self, fields: AsyncFields) -> None: ) -class FieldsWithStreamingResponse: - def __init__(self, fields: Fields) -> None: +class FieldsResourceWithStreamingResponse: + def __init__(self, fields: FieldsResource) -> None: self._fields = fields self.get = to_streamed_response_wrapper( @@ -188,8 +188,8 @@ def __init__(self, fields: Fields) -> None: ) -class AsyncFieldsWithStreamingResponse: - def __init__(self, fields: AsyncFields) -> None: +class AsyncFieldsResourceWithStreamingResponse: + def __init__(self, fields: AsyncFieldsResource) -> None: self._fields = fields self.get = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/logpush/datasets/jobs.py b/src/cloudflare/resources/logpush/datasets/jobs.py index 73c5db30eca..92dc0138053 100644 --- a/src/cloudflare/resources/logpush/datasets/jobs.py +++ b/src/cloudflare/resources/logpush/datasets/jobs.py @@ -21,17 +21,17 @@ ) from ....types.logpush.datasets.job_get_response import JobGetResponse -__all__ = ["Jobs", "AsyncJobs"] +__all__ = ["JobsResource", "AsyncJobsResource"] -class Jobs(SyncAPIResource): +class JobsResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> JobsWithRawResponse: - return JobsWithRawResponse(self) + def with_raw_response(self) -> JobsResourceWithRawResponse: + return JobsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> JobsWithStreamingResponse: - return JobsWithStreamingResponse(self) + def with_streaming_response(self) -> JobsResourceWithStreamingResponse: + return JobsResourceWithStreamingResponse(self) def get( self, @@ -91,14 +91,14 @@ def get( ) -class AsyncJobs(AsyncAPIResource): +class AsyncJobsResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncJobsWithRawResponse: - return AsyncJobsWithRawResponse(self) + def with_raw_response(self) -> AsyncJobsResourceWithRawResponse: + return AsyncJobsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncJobsWithStreamingResponse: - return AsyncJobsWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncJobsResourceWithStreamingResponse: + return AsyncJobsResourceWithStreamingResponse(self) async def get( self, @@ -158,8 +158,8 @@ async def get( ) -class JobsWithRawResponse: - def __init__(self, jobs: Jobs) -> None: +class JobsResourceWithRawResponse: + def __init__(self, jobs: JobsResource) -> None: self._jobs = jobs self.get = to_raw_response_wrapper( @@ -167,8 +167,8 @@ def __init__(self, jobs: Jobs) -> None: ) -class AsyncJobsWithRawResponse: - def __init__(self, jobs: AsyncJobs) -> None: +class AsyncJobsResourceWithRawResponse: + def __init__(self, jobs: AsyncJobsResource) -> None: self._jobs = jobs self.get = async_to_raw_response_wrapper( @@ -176,8 +176,8 @@ def __init__(self, jobs: AsyncJobs) -> None: ) -class JobsWithStreamingResponse: - def __init__(self, jobs: Jobs) -> None: +class JobsResourceWithStreamingResponse: + def __init__(self, jobs: JobsResource) -> None: self._jobs = jobs self.get = to_streamed_response_wrapper( @@ -185,8 +185,8 @@ def __init__(self, jobs: Jobs) -> None: ) -class AsyncJobsWithStreamingResponse: - def __init__(self, jobs: AsyncJobs) -> None: +class AsyncJobsResourceWithStreamingResponse: + def __init__(self, jobs: AsyncJobsResource) -> None: self._jobs = jobs self.get = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/logpush/edge.py b/src/cloudflare/resources/logpush/edge.py index 515633d4f31..de3d6ff76e2 100644 --- a/src/cloudflare/resources/logpush/edge.py +++ b/src/cloudflare/resources/logpush/edge.py @@ -27,17 +27,17 @@ from ...types.logpush.edge_get_response import EdgeGetResponse from ...types.logpush.instant_logpush_job import InstantLogpushJob -__all__ = ["Edge", "AsyncEdge"] +__all__ = ["EdgeResource", "AsyncEdgeResource"] -class Edge(SyncAPIResource): +class EdgeResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> EdgeWithRawResponse: - return EdgeWithRawResponse(self) + def with_raw_response(self) -> EdgeResourceWithRawResponse: + return EdgeResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> EdgeWithStreamingResponse: - return EdgeWithStreamingResponse(self) + def with_streaming_response(self) -> EdgeResourceWithStreamingResponse: + return EdgeResourceWithStreamingResponse(self) def create( self, @@ -137,14 +137,14 @@ def get( ) -class AsyncEdge(AsyncAPIResource): +class AsyncEdgeResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncEdgeWithRawResponse: - return AsyncEdgeWithRawResponse(self) + def with_raw_response(self) -> AsyncEdgeResourceWithRawResponse: + return AsyncEdgeResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncEdgeWithStreamingResponse: - return AsyncEdgeWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncEdgeResourceWithStreamingResponse: + return AsyncEdgeResourceWithStreamingResponse(self) async def create( self, @@ -244,8 +244,8 @@ async def get( ) -class EdgeWithRawResponse: - def __init__(self, edge: Edge) -> None: +class EdgeResourceWithRawResponse: + def __init__(self, edge: EdgeResource) -> None: self._edge = edge self.create = to_raw_response_wrapper( @@ -256,8 +256,8 @@ def __init__(self, edge: Edge) -> None: ) -class AsyncEdgeWithRawResponse: - def __init__(self, edge: AsyncEdge) -> None: +class AsyncEdgeResourceWithRawResponse: + def __init__(self, edge: AsyncEdgeResource) -> None: self._edge = edge self.create = async_to_raw_response_wrapper( @@ -268,8 +268,8 @@ def __init__(self, edge: AsyncEdge) -> None: ) -class EdgeWithStreamingResponse: - def __init__(self, edge: Edge) -> None: +class EdgeResourceWithStreamingResponse: + def __init__(self, edge: EdgeResource) -> None: self._edge = edge self.create = to_streamed_response_wrapper( @@ -280,8 +280,8 @@ def __init__(self, edge: Edge) -> None: ) -class AsyncEdgeWithStreamingResponse: - def __init__(self, edge: AsyncEdge) -> None: +class AsyncEdgeResourceWithStreamingResponse: + def __init__(self, edge: AsyncEdgeResource) -> None: self._edge = edge self.create = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/logpush/jobs.py b/src/cloudflare/resources/logpush/jobs.py index e87f6e7d193..1262ffd13fd 100644 --- a/src/cloudflare/resources/logpush/jobs.py +++ b/src/cloudflare/resources/logpush/jobs.py @@ -30,17 +30,17 @@ from ...types.logpush.logpush_job import LogpushJob from ...types.logpush.output_options_param import OutputOptionsParam -__all__ = ["Jobs", "AsyncJobs"] +__all__ = ["JobsResource", "AsyncJobsResource"] -class Jobs(SyncAPIResource): +class JobsResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> JobsWithRawResponse: - return JobsWithRawResponse(self) + def with_raw_response(self) -> JobsResourceWithRawResponse: + return JobsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> JobsWithStreamingResponse: - return JobsWithStreamingResponse(self) + def with_streaming_response(self) -> JobsResourceWithStreamingResponse: + return JobsResourceWithStreamingResponse(self) def create( self, @@ -397,14 +397,14 @@ def get( ) -class AsyncJobs(AsyncAPIResource): +class AsyncJobsResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncJobsWithRawResponse: - return AsyncJobsWithRawResponse(self) + def with_raw_response(self) -> AsyncJobsResourceWithRawResponse: + return AsyncJobsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncJobsWithStreamingResponse: - return AsyncJobsWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncJobsResourceWithStreamingResponse: + return AsyncJobsResourceWithStreamingResponse(self) async def create( self, @@ -761,8 +761,8 @@ async def get( ) -class JobsWithRawResponse: - def __init__(self, jobs: Jobs) -> None: +class JobsResourceWithRawResponse: + def __init__(self, jobs: JobsResource) -> None: self._jobs = jobs self.create = to_raw_response_wrapper( @@ -782,8 +782,8 @@ def __init__(self, jobs: Jobs) -> None: ) -class AsyncJobsWithRawResponse: - def __init__(self, jobs: AsyncJobs) -> None: +class AsyncJobsResourceWithRawResponse: + def __init__(self, jobs: AsyncJobsResource) -> None: self._jobs = jobs self.create = async_to_raw_response_wrapper( @@ -803,8 +803,8 @@ def __init__(self, jobs: AsyncJobs) -> None: ) -class JobsWithStreamingResponse: - def __init__(self, jobs: Jobs) -> None: +class JobsResourceWithStreamingResponse: + def __init__(self, jobs: JobsResource) -> None: self._jobs = jobs self.create = to_streamed_response_wrapper( @@ -824,8 +824,8 @@ def __init__(self, jobs: Jobs) -> None: ) -class AsyncJobsWithStreamingResponse: - def __init__(self, jobs: AsyncJobs) -> None: +class AsyncJobsResourceWithStreamingResponse: + def __init__(self, jobs: AsyncJobsResource) -> None: self._jobs = jobs self.create = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/logpush/logpush.py b/src/cloudflare/resources/logpush/logpush.py index 40d828d2952..4b316a9b912 100644 --- a/src/cloudflare/resources/logpush/logpush.py +++ b/src/cloudflare/resources/logpush/logpush.py @@ -3,207 +3,207 @@ from __future__ import annotations from .edge import ( - Edge, - AsyncEdge, - EdgeWithRawResponse, - AsyncEdgeWithRawResponse, - EdgeWithStreamingResponse, - AsyncEdgeWithStreamingResponse, + EdgeResource, + AsyncEdgeResource, + EdgeResourceWithRawResponse, + AsyncEdgeResourceWithRawResponse, + EdgeResourceWithStreamingResponse, + AsyncEdgeResourceWithStreamingResponse, ) from .jobs import ( - Jobs, - AsyncJobs, - JobsWithRawResponse, - AsyncJobsWithRawResponse, - JobsWithStreamingResponse, - AsyncJobsWithStreamingResponse, + JobsResource, + AsyncJobsResource, + JobsResourceWithRawResponse, + AsyncJobsResourceWithRawResponse, + JobsResourceWithStreamingResponse, + AsyncJobsResourceWithStreamingResponse, ) from .datasets import ( - Datasets, - AsyncDatasets, - DatasetsWithRawResponse, - AsyncDatasetsWithRawResponse, - DatasetsWithStreamingResponse, - AsyncDatasetsWithStreamingResponse, + DatasetsResource, + AsyncDatasetsResource, + DatasetsResourceWithRawResponse, + AsyncDatasetsResourceWithRawResponse, + DatasetsResourceWithStreamingResponse, + AsyncDatasetsResourceWithStreamingResponse, ) from .validate import ( - Validate, - AsyncValidate, - ValidateWithRawResponse, - AsyncValidateWithRawResponse, - ValidateWithStreamingResponse, - AsyncValidateWithStreamingResponse, + ValidateResource, + AsyncValidateResource, + ValidateResourceWithRawResponse, + AsyncValidateResourceWithRawResponse, + ValidateResourceWithStreamingResponse, + AsyncValidateResourceWithStreamingResponse, ) from ..._compat import cached_property from .ownership import ( - Ownership, - AsyncOwnership, - OwnershipWithRawResponse, - AsyncOwnershipWithRawResponse, - OwnershipWithStreamingResponse, - AsyncOwnershipWithStreamingResponse, + OwnershipResource, + AsyncOwnershipResource, + OwnershipResourceWithRawResponse, + AsyncOwnershipResourceWithRawResponse, + OwnershipResourceWithStreamingResponse, + AsyncOwnershipResourceWithStreamingResponse, ) from ..._resource import SyncAPIResource, AsyncAPIResource -from .datasets.datasets import Datasets, AsyncDatasets +from .datasets.datasets import DatasetsResource, AsyncDatasetsResource -__all__ = ["Logpush", "AsyncLogpush"] +__all__ = ["LogpushResource", "AsyncLogpushResource"] -class Logpush(SyncAPIResource): +class LogpushResource(SyncAPIResource): @cached_property - def datasets(self) -> Datasets: - return Datasets(self._client) + def datasets(self) -> DatasetsResource: + return DatasetsResource(self._client) @cached_property - def edge(self) -> Edge: - return Edge(self._client) + def edge(self) -> EdgeResource: + return EdgeResource(self._client) @cached_property - def jobs(self) -> Jobs: - return Jobs(self._client) + def jobs(self) -> JobsResource: + return JobsResource(self._client) @cached_property - def ownership(self) -> Ownership: - return Ownership(self._client) + def ownership(self) -> OwnershipResource: + return OwnershipResource(self._client) @cached_property - def validate(self) -> Validate: - return Validate(self._client) + def validate(self) -> ValidateResource: + return ValidateResource(self._client) @cached_property - def with_raw_response(self) -> LogpushWithRawResponse: - return LogpushWithRawResponse(self) + def with_raw_response(self) -> LogpushResourceWithRawResponse: + return LogpushResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> LogpushWithStreamingResponse: - return LogpushWithStreamingResponse(self) + def with_streaming_response(self) -> LogpushResourceWithStreamingResponse: + return LogpushResourceWithStreamingResponse(self) -class AsyncLogpush(AsyncAPIResource): +class AsyncLogpushResource(AsyncAPIResource): @cached_property - def datasets(self) -> AsyncDatasets: - return AsyncDatasets(self._client) + def datasets(self) -> AsyncDatasetsResource: + return AsyncDatasetsResource(self._client) @cached_property - def edge(self) -> AsyncEdge: - return AsyncEdge(self._client) + def edge(self) -> AsyncEdgeResource: + return AsyncEdgeResource(self._client) @cached_property - def jobs(self) -> AsyncJobs: - return AsyncJobs(self._client) + def jobs(self) -> AsyncJobsResource: + return AsyncJobsResource(self._client) @cached_property - def ownership(self) -> AsyncOwnership: - return AsyncOwnership(self._client) + def ownership(self) -> AsyncOwnershipResource: + return AsyncOwnershipResource(self._client) @cached_property - def validate(self) -> AsyncValidate: - return AsyncValidate(self._client) + def validate(self) -> AsyncValidateResource: + return AsyncValidateResource(self._client) @cached_property - def with_raw_response(self) -> AsyncLogpushWithRawResponse: - return AsyncLogpushWithRawResponse(self) + def with_raw_response(self) -> AsyncLogpushResourceWithRawResponse: + return AsyncLogpushResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncLogpushWithStreamingResponse: - return AsyncLogpushWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncLogpushResourceWithStreamingResponse: + return AsyncLogpushResourceWithStreamingResponse(self) -class LogpushWithRawResponse: - def __init__(self, logpush: Logpush) -> None: +class LogpushResourceWithRawResponse: + def __init__(self, logpush: LogpushResource) -> None: self._logpush = logpush @cached_property - def datasets(self) -> DatasetsWithRawResponse: - return DatasetsWithRawResponse(self._logpush.datasets) + def datasets(self) -> DatasetsResourceWithRawResponse: + return DatasetsResourceWithRawResponse(self._logpush.datasets) @cached_property - def edge(self) -> EdgeWithRawResponse: - return EdgeWithRawResponse(self._logpush.edge) + def edge(self) -> EdgeResourceWithRawResponse: + return EdgeResourceWithRawResponse(self._logpush.edge) @cached_property - def jobs(self) -> JobsWithRawResponse: - return JobsWithRawResponse(self._logpush.jobs) + def jobs(self) -> JobsResourceWithRawResponse: + return JobsResourceWithRawResponse(self._logpush.jobs) @cached_property - def ownership(self) -> OwnershipWithRawResponse: - return OwnershipWithRawResponse(self._logpush.ownership) + def ownership(self) -> OwnershipResourceWithRawResponse: + return OwnershipResourceWithRawResponse(self._logpush.ownership) @cached_property - def validate(self) -> ValidateWithRawResponse: - return ValidateWithRawResponse(self._logpush.validate) + def validate(self) -> ValidateResourceWithRawResponse: + return ValidateResourceWithRawResponse(self._logpush.validate) -class AsyncLogpushWithRawResponse: - def __init__(self, logpush: AsyncLogpush) -> None: +class AsyncLogpushResourceWithRawResponse: + def __init__(self, logpush: AsyncLogpushResource) -> None: self._logpush = logpush @cached_property - def datasets(self) -> AsyncDatasetsWithRawResponse: - return AsyncDatasetsWithRawResponse(self._logpush.datasets) + def datasets(self) -> AsyncDatasetsResourceWithRawResponse: + return AsyncDatasetsResourceWithRawResponse(self._logpush.datasets) @cached_property - def edge(self) -> AsyncEdgeWithRawResponse: - return AsyncEdgeWithRawResponse(self._logpush.edge) + def edge(self) -> AsyncEdgeResourceWithRawResponse: + return AsyncEdgeResourceWithRawResponse(self._logpush.edge) @cached_property - def jobs(self) -> AsyncJobsWithRawResponse: - return AsyncJobsWithRawResponse(self._logpush.jobs) + def jobs(self) -> AsyncJobsResourceWithRawResponse: + return AsyncJobsResourceWithRawResponse(self._logpush.jobs) @cached_property - def ownership(self) -> AsyncOwnershipWithRawResponse: - return AsyncOwnershipWithRawResponse(self._logpush.ownership) + def ownership(self) -> AsyncOwnershipResourceWithRawResponse: + return AsyncOwnershipResourceWithRawResponse(self._logpush.ownership) @cached_property - def validate(self) -> AsyncValidateWithRawResponse: - return AsyncValidateWithRawResponse(self._logpush.validate) + def validate(self) -> AsyncValidateResourceWithRawResponse: + return AsyncValidateResourceWithRawResponse(self._logpush.validate) -class LogpushWithStreamingResponse: - def __init__(self, logpush: Logpush) -> None: +class LogpushResourceWithStreamingResponse: + def __init__(self, logpush: LogpushResource) -> None: self._logpush = logpush @cached_property - def datasets(self) -> DatasetsWithStreamingResponse: - return DatasetsWithStreamingResponse(self._logpush.datasets) + def datasets(self) -> DatasetsResourceWithStreamingResponse: + return DatasetsResourceWithStreamingResponse(self._logpush.datasets) @cached_property - def edge(self) -> EdgeWithStreamingResponse: - return EdgeWithStreamingResponse(self._logpush.edge) + def edge(self) -> EdgeResourceWithStreamingResponse: + return EdgeResourceWithStreamingResponse(self._logpush.edge) @cached_property - def jobs(self) -> JobsWithStreamingResponse: - return JobsWithStreamingResponse(self._logpush.jobs) + def jobs(self) -> JobsResourceWithStreamingResponse: + return JobsResourceWithStreamingResponse(self._logpush.jobs) @cached_property - def ownership(self) -> OwnershipWithStreamingResponse: - return OwnershipWithStreamingResponse(self._logpush.ownership) + def ownership(self) -> OwnershipResourceWithStreamingResponse: + return OwnershipResourceWithStreamingResponse(self._logpush.ownership) @cached_property - def validate(self) -> ValidateWithStreamingResponse: - return ValidateWithStreamingResponse(self._logpush.validate) + def validate(self) -> ValidateResourceWithStreamingResponse: + return ValidateResourceWithStreamingResponse(self._logpush.validate) -class AsyncLogpushWithStreamingResponse: - def __init__(self, logpush: AsyncLogpush) -> None: +class AsyncLogpushResourceWithStreamingResponse: + def __init__(self, logpush: AsyncLogpushResource) -> None: self._logpush = logpush @cached_property - def datasets(self) -> AsyncDatasetsWithStreamingResponse: - return AsyncDatasetsWithStreamingResponse(self._logpush.datasets) + def datasets(self) -> AsyncDatasetsResourceWithStreamingResponse: + return AsyncDatasetsResourceWithStreamingResponse(self._logpush.datasets) @cached_property - def edge(self) -> AsyncEdgeWithStreamingResponse: - return AsyncEdgeWithStreamingResponse(self._logpush.edge) + def edge(self) -> AsyncEdgeResourceWithStreamingResponse: + return AsyncEdgeResourceWithStreamingResponse(self._logpush.edge) @cached_property - def jobs(self) -> AsyncJobsWithStreamingResponse: - return AsyncJobsWithStreamingResponse(self._logpush.jobs) + def jobs(self) -> AsyncJobsResourceWithStreamingResponse: + return AsyncJobsResourceWithStreamingResponse(self._logpush.jobs) @cached_property - def ownership(self) -> AsyncOwnershipWithStreamingResponse: - return AsyncOwnershipWithStreamingResponse(self._logpush.ownership) + def ownership(self) -> AsyncOwnershipResourceWithStreamingResponse: + return AsyncOwnershipResourceWithStreamingResponse(self._logpush.ownership) @cached_property - def validate(self) -> AsyncValidateWithStreamingResponse: - return AsyncValidateWithStreamingResponse(self._logpush.validate) + def validate(self) -> AsyncValidateResourceWithStreamingResponse: + return AsyncValidateResourceWithStreamingResponse(self._logpush.validate) diff --git a/src/cloudflare/resources/logpush/ownership.py b/src/cloudflare/resources/logpush/ownership.py index fb108a5d69e..5498bb1f679 100644 --- a/src/cloudflare/resources/logpush/ownership.py +++ b/src/cloudflare/resources/logpush/ownership.py @@ -27,17 +27,17 @@ from ...types.logpush.ownership_validation import OwnershipValidation from ...types.logpush.ownership_create_response import OwnershipCreateResponse -__all__ = ["Ownership", "AsyncOwnership"] +__all__ = ["OwnershipResource", "AsyncOwnershipResource"] -class Ownership(SyncAPIResource): +class OwnershipResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> OwnershipWithRawResponse: - return OwnershipWithRawResponse(self) + def with_raw_response(self) -> OwnershipResourceWithRawResponse: + return OwnershipResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> OwnershipWithStreamingResponse: - return OwnershipWithStreamingResponse(self) + def with_streaming_response(self) -> OwnershipResourceWithStreamingResponse: + return OwnershipResourceWithStreamingResponse(self) def create( self, @@ -165,14 +165,14 @@ def validate( ) -class AsyncOwnership(AsyncAPIResource): +class AsyncOwnershipResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncOwnershipWithRawResponse: - return AsyncOwnershipWithRawResponse(self) + def with_raw_response(self) -> AsyncOwnershipResourceWithRawResponse: + return AsyncOwnershipResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncOwnershipWithStreamingResponse: - return AsyncOwnershipWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncOwnershipResourceWithStreamingResponse: + return AsyncOwnershipResourceWithStreamingResponse(self) async def create( self, @@ -302,8 +302,8 @@ async def validate( ) -class OwnershipWithRawResponse: - def __init__(self, ownership: Ownership) -> None: +class OwnershipResourceWithRawResponse: + def __init__(self, ownership: OwnershipResource) -> None: self._ownership = ownership self.create = to_raw_response_wrapper( @@ -314,8 +314,8 @@ def __init__(self, ownership: Ownership) -> None: ) -class AsyncOwnershipWithRawResponse: - def __init__(self, ownership: AsyncOwnership) -> None: +class AsyncOwnershipResourceWithRawResponse: + def __init__(self, ownership: AsyncOwnershipResource) -> None: self._ownership = ownership self.create = async_to_raw_response_wrapper( @@ -326,8 +326,8 @@ def __init__(self, ownership: AsyncOwnership) -> None: ) -class OwnershipWithStreamingResponse: - def __init__(self, ownership: Ownership) -> None: +class OwnershipResourceWithStreamingResponse: + def __init__(self, ownership: OwnershipResource) -> None: self._ownership = ownership self.create = to_streamed_response_wrapper( @@ -338,8 +338,8 @@ def __init__(self, ownership: Ownership) -> None: ) -class AsyncOwnershipWithStreamingResponse: - def __init__(self, ownership: AsyncOwnership) -> None: +class AsyncOwnershipResourceWithStreamingResponse: + def __init__(self, ownership: AsyncOwnershipResource) -> None: self._ownership = ownership self.create = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/logpush/validate.py b/src/cloudflare/resources/logpush/validate.py index 63f1e319a49..c334340392b 100644 --- a/src/cloudflare/resources/logpush/validate.py +++ b/src/cloudflare/resources/logpush/validate.py @@ -27,17 +27,17 @@ from ...types.logpush.validate_origin_response import ValidateOriginResponse from ...types.logpush.validate_destination_response import ValidateDestinationResponse -__all__ = ["Validate", "AsyncValidate"] +__all__ = ["ValidateResource", "AsyncValidateResource"] -class Validate(SyncAPIResource): +class ValidateResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> ValidateWithRawResponse: - return ValidateWithRawResponse(self) + def with_raw_response(self) -> ValidateResourceWithRawResponse: + return ValidateResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> ValidateWithStreamingResponse: - return ValidateWithStreamingResponse(self) + def with_streaming_response(self) -> ValidateResourceWithStreamingResponse: + return ValidateResourceWithStreamingResponse(self) def destination( self, @@ -160,14 +160,14 @@ def origin( ) -class AsyncValidate(AsyncAPIResource): +class AsyncValidateResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncValidateWithRawResponse: - return AsyncValidateWithRawResponse(self) + def with_raw_response(self) -> AsyncValidateResourceWithRawResponse: + return AsyncValidateResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncValidateWithStreamingResponse: - return AsyncValidateWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncValidateResourceWithStreamingResponse: + return AsyncValidateResourceWithStreamingResponse(self) async def destination( self, @@ -292,8 +292,8 @@ async def origin( ) -class ValidateWithRawResponse: - def __init__(self, validate: Validate) -> None: +class ValidateResourceWithRawResponse: + def __init__(self, validate: ValidateResource) -> None: self._validate = validate self.destination = to_raw_response_wrapper( @@ -304,8 +304,8 @@ def __init__(self, validate: Validate) -> None: ) -class AsyncValidateWithRawResponse: - def __init__(self, validate: AsyncValidate) -> None: +class AsyncValidateResourceWithRawResponse: + def __init__(self, validate: AsyncValidateResource) -> None: self._validate = validate self.destination = async_to_raw_response_wrapper( @@ -316,8 +316,8 @@ def __init__(self, validate: AsyncValidate) -> None: ) -class ValidateWithStreamingResponse: - def __init__(self, validate: Validate) -> None: +class ValidateResourceWithStreamingResponse: + def __init__(self, validate: ValidateResource) -> None: self._validate = validate self.destination = to_streamed_response_wrapper( @@ -328,8 +328,8 @@ def __init__(self, validate: Validate) -> None: ) -class AsyncValidateWithStreamingResponse: - def __init__(self, validate: AsyncValidate) -> None: +class AsyncValidateResourceWithStreamingResponse: + def __init__(self, validate: AsyncValidateResource) -> None: self._validate = validate self.destination = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/logs/__init__.py b/src/cloudflare/resources/logs/__init__.py index 5a22fc8aeed..758397ab14d 100644 --- a/src/cloudflare/resources/logs/__init__.py +++ b/src/cloudflare/resources/logs/__init__.py @@ -1,61 +1,61 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from .logs import ( - Logs, - AsyncLogs, - LogsWithRawResponse, - AsyncLogsWithRawResponse, - LogsWithStreamingResponse, - AsyncLogsWithStreamingResponse, + LogsResource, + AsyncLogsResource, + LogsResourceWithRawResponse, + AsyncLogsResourceWithRawResponse, + LogsResourceWithStreamingResponse, + AsyncLogsResourceWithStreamingResponse, ) from .rayid import ( - RayID, - AsyncRayID, - RayIDWithRawResponse, - AsyncRayIDWithRawResponse, - RayIDWithStreamingResponse, - AsyncRayIDWithStreamingResponse, + RayIDResource, + AsyncRayIDResource, + RayIDResourceWithRawResponse, + AsyncRayIDResourceWithRawResponse, + RayIDResourceWithStreamingResponse, + AsyncRayIDResourceWithStreamingResponse, ) from .control import ( - Control, - AsyncControl, - ControlWithRawResponse, - AsyncControlWithRawResponse, - ControlWithStreamingResponse, - AsyncControlWithStreamingResponse, + ControlResource, + AsyncControlResource, + ControlResourceWithRawResponse, + AsyncControlResourceWithRawResponse, + ControlResourceWithStreamingResponse, + AsyncControlResourceWithStreamingResponse, ) from .received import ( - Received, - AsyncReceived, - ReceivedWithRawResponse, - AsyncReceivedWithRawResponse, - ReceivedWithStreamingResponse, - AsyncReceivedWithStreamingResponse, + ReceivedResource, + AsyncReceivedResource, + ReceivedResourceWithRawResponse, + AsyncReceivedResourceWithRawResponse, + ReceivedResourceWithStreamingResponse, + AsyncReceivedResourceWithStreamingResponse, ) __all__ = [ - "Control", - "AsyncControl", - "ControlWithRawResponse", - "AsyncControlWithRawResponse", - "ControlWithStreamingResponse", - "AsyncControlWithStreamingResponse", - "RayID", - "AsyncRayID", - "RayIDWithRawResponse", - "AsyncRayIDWithRawResponse", - "RayIDWithStreamingResponse", - "AsyncRayIDWithStreamingResponse", - "Received", - "AsyncReceived", - "ReceivedWithRawResponse", - "AsyncReceivedWithRawResponse", - "ReceivedWithStreamingResponse", - "AsyncReceivedWithStreamingResponse", - "Logs", - "AsyncLogs", - "LogsWithRawResponse", - "AsyncLogsWithRawResponse", - "LogsWithStreamingResponse", - "AsyncLogsWithStreamingResponse", + "ControlResource", + "AsyncControlResource", + "ControlResourceWithRawResponse", + "AsyncControlResourceWithRawResponse", + "ControlResourceWithStreamingResponse", + "AsyncControlResourceWithStreamingResponse", + "RayIDResource", + "AsyncRayIDResource", + "RayIDResourceWithRawResponse", + "AsyncRayIDResourceWithRawResponse", + "RayIDResourceWithStreamingResponse", + "AsyncRayIDResourceWithStreamingResponse", + "ReceivedResource", + "AsyncReceivedResource", + "ReceivedResourceWithRawResponse", + "AsyncReceivedResourceWithRawResponse", + "ReceivedResourceWithStreamingResponse", + "AsyncReceivedResourceWithStreamingResponse", + "LogsResource", + "AsyncLogsResource", + "LogsResourceWithRawResponse", + "AsyncLogsResourceWithRawResponse", + "LogsResourceWithStreamingResponse", + "AsyncLogsResourceWithStreamingResponse", ] diff --git a/src/cloudflare/resources/logs/control/__init__.py b/src/cloudflare/resources/logs/control/__init__.py index f689e7617b0..a762ffc3235 100644 --- a/src/cloudflare/resources/logs/control/__init__.py +++ b/src/cloudflare/resources/logs/control/__init__.py @@ -1,47 +1,47 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from .cmb import ( - Cmb, - AsyncCmb, - CmbWithRawResponse, - AsyncCmbWithRawResponse, - CmbWithStreamingResponse, - AsyncCmbWithStreamingResponse, + CmbResource, + AsyncCmbResource, + CmbResourceWithRawResponse, + AsyncCmbResourceWithRawResponse, + CmbResourceWithStreamingResponse, + AsyncCmbResourceWithStreamingResponse, ) from .control import ( - Control, - AsyncControl, - ControlWithRawResponse, - AsyncControlWithRawResponse, - ControlWithStreamingResponse, - AsyncControlWithStreamingResponse, + ControlResource, + AsyncControlResource, + ControlResourceWithRawResponse, + AsyncControlResourceWithRawResponse, + ControlResourceWithStreamingResponse, + AsyncControlResourceWithStreamingResponse, ) from .retention import ( - Retention, - AsyncRetention, - RetentionWithRawResponse, - AsyncRetentionWithRawResponse, - RetentionWithStreamingResponse, - AsyncRetentionWithStreamingResponse, + RetentionResource, + AsyncRetentionResource, + RetentionResourceWithRawResponse, + AsyncRetentionResourceWithRawResponse, + RetentionResourceWithStreamingResponse, + AsyncRetentionResourceWithStreamingResponse, ) __all__ = [ - "Retention", - "AsyncRetention", - "RetentionWithRawResponse", - "AsyncRetentionWithRawResponse", - "RetentionWithStreamingResponse", - "AsyncRetentionWithStreamingResponse", - "Cmb", - "AsyncCmb", - "CmbWithRawResponse", - "AsyncCmbWithRawResponse", - "CmbWithStreamingResponse", - "AsyncCmbWithStreamingResponse", - "Control", - "AsyncControl", - "ControlWithRawResponse", - "AsyncControlWithRawResponse", - "ControlWithStreamingResponse", - "AsyncControlWithStreamingResponse", + "RetentionResource", + "AsyncRetentionResource", + "RetentionResourceWithRawResponse", + "AsyncRetentionResourceWithRawResponse", + "RetentionResourceWithStreamingResponse", + "AsyncRetentionResourceWithStreamingResponse", + "CmbResource", + "AsyncCmbResource", + "CmbResourceWithRawResponse", + "AsyncCmbResourceWithRawResponse", + "CmbResourceWithStreamingResponse", + "AsyncCmbResourceWithStreamingResponse", + "ControlResource", + "AsyncControlResource", + "ControlResourceWithRawResponse", + "AsyncControlResourceWithRawResponse", + "ControlResourceWithStreamingResponse", + "AsyncControlResourceWithStreamingResponse", ] diff --git a/src/cloudflare/resources/logs/control/cmb/__init__.py b/src/cloudflare/resources/logs/control/cmb/__init__.py index 85b33068e75..870349941fc 100644 --- a/src/cloudflare/resources/logs/control/cmb/__init__.py +++ b/src/cloudflare/resources/logs/control/cmb/__init__.py @@ -1,33 +1,33 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from .cmb import ( - Cmb, - AsyncCmb, - CmbWithRawResponse, - AsyncCmbWithRawResponse, - CmbWithStreamingResponse, - AsyncCmbWithStreamingResponse, + CmbResource, + AsyncCmbResource, + CmbResourceWithRawResponse, + AsyncCmbResourceWithRawResponse, + CmbResourceWithStreamingResponse, + AsyncCmbResourceWithStreamingResponse, ) from .config import ( - Config, - AsyncConfig, - ConfigWithRawResponse, - AsyncConfigWithRawResponse, - ConfigWithStreamingResponse, - AsyncConfigWithStreamingResponse, + ConfigResource, + AsyncConfigResource, + ConfigResourceWithRawResponse, + AsyncConfigResourceWithRawResponse, + ConfigResourceWithStreamingResponse, + AsyncConfigResourceWithStreamingResponse, ) __all__ = [ - "Config", - "AsyncConfig", - "ConfigWithRawResponse", - "AsyncConfigWithRawResponse", - "ConfigWithStreamingResponse", - "AsyncConfigWithStreamingResponse", - "Cmb", - "AsyncCmb", - "CmbWithRawResponse", - "AsyncCmbWithRawResponse", - "CmbWithStreamingResponse", - "AsyncCmbWithStreamingResponse", + "ConfigResource", + "AsyncConfigResource", + "ConfigResourceWithRawResponse", + "AsyncConfigResourceWithRawResponse", + "ConfigResourceWithStreamingResponse", + "AsyncConfigResourceWithStreamingResponse", + "CmbResource", + "AsyncCmbResource", + "CmbResourceWithRawResponse", + "AsyncCmbResourceWithRawResponse", + "CmbResourceWithStreamingResponse", + "AsyncCmbResourceWithStreamingResponse", ] diff --git a/src/cloudflare/resources/logs/control/cmb/cmb.py b/src/cloudflare/resources/logs/control/cmb/cmb.py index d8d68697b91..c24d2105c2c 100644 --- a/src/cloudflare/resources/logs/control/cmb/cmb.py +++ b/src/cloudflare/resources/logs/control/cmb/cmb.py @@ -3,78 +3,78 @@ from __future__ import annotations from .config import ( - Config, - AsyncConfig, - ConfigWithRawResponse, - AsyncConfigWithRawResponse, - ConfigWithStreamingResponse, - AsyncConfigWithStreamingResponse, + ConfigResource, + AsyncConfigResource, + ConfigResourceWithRawResponse, + AsyncConfigResourceWithRawResponse, + ConfigResourceWithStreamingResponse, + AsyncConfigResourceWithStreamingResponse, ) from ....._compat import cached_property from ....._resource import SyncAPIResource, AsyncAPIResource -__all__ = ["Cmb", "AsyncCmb"] +__all__ = ["CmbResource", "AsyncCmbResource"] -class Cmb(SyncAPIResource): +class CmbResource(SyncAPIResource): @cached_property - def config(self) -> Config: - return Config(self._client) + def config(self) -> ConfigResource: + return ConfigResource(self._client) @cached_property - def with_raw_response(self) -> CmbWithRawResponse: - return CmbWithRawResponse(self) + def with_raw_response(self) -> CmbResourceWithRawResponse: + return CmbResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> CmbWithStreamingResponse: - return CmbWithStreamingResponse(self) + def with_streaming_response(self) -> CmbResourceWithStreamingResponse: + return CmbResourceWithStreamingResponse(self) -class AsyncCmb(AsyncAPIResource): +class AsyncCmbResource(AsyncAPIResource): @cached_property - def config(self) -> AsyncConfig: - return AsyncConfig(self._client) + def config(self) -> AsyncConfigResource: + return AsyncConfigResource(self._client) @cached_property - def with_raw_response(self) -> AsyncCmbWithRawResponse: - return AsyncCmbWithRawResponse(self) + def with_raw_response(self) -> AsyncCmbResourceWithRawResponse: + return AsyncCmbResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncCmbWithStreamingResponse: - return AsyncCmbWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncCmbResourceWithStreamingResponse: + return AsyncCmbResourceWithStreamingResponse(self) -class CmbWithRawResponse: - def __init__(self, cmb: Cmb) -> None: +class CmbResourceWithRawResponse: + def __init__(self, cmb: CmbResource) -> None: self._cmb = cmb @cached_property - def config(self) -> ConfigWithRawResponse: - return ConfigWithRawResponse(self._cmb.config) + def config(self) -> ConfigResourceWithRawResponse: + return ConfigResourceWithRawResponse(self._cmb.config) -class AsyncCmbWithRawResponse: - def __init__(self, cmb: AsyncCmb) -> None: +class AsyncCmbResourceWithRawResponse: + def __init__(self, cmb: AsyncCmbResource) -> None: self._cmb = cmb @cached_property - def config(self) -> AsyncConfigWithRawResponse: - return AsyncConfigWithRawResponse(self._cmb.config) + def config(self) -> AsyncConfigResourceWithRawResponse: + return AsyncConfigResourceWithRawResponse(self._cmb.config) -class CmbWithStreamingResponse: - def __init__(self, cmb: Cmb) -> None: +class CmbResourceWithStreamingResponse: + def __init__(self, cmb: CmbResource) -> None: self._cmb = cmb @cached_property - def config(self) -> ConfigWithStreamingResponse: - return ConfigWithStreamingResponse(self._cmb.config) + def config(self) -> ConfigResourceWithStreamingResponse: + return ConfigResourceWithStreamingResponse(self._cmb.config) -class AsyncCmbWithStreamingResponse: - def __init__(self, cmb: AsyncCmb) -> None: +class AsyncCmbResourceWithStreamingResponse: + def __init__(self, cmb: AsyncCmbResource) -> None: self._cmb = cmb @cached_property - def config(self) -> AsyncConfigWithStreamingResponse: - return AsyncConfigWithStreamingResponse(self._cmb.config) + def config(self) -> AsyncConfigResourceWithStreamingResponse: + return AsyncConfigResourceWithStreamingResponse(self._cmb.config) diff --git a/src/cloudflare/resources/logs/control/cmb/config.py b/src/cloudflare/resources/logs/control/cmb/config.py index 751d3e17108..3c13ce3f56e 100644 --- a/src/cloudflare/resources/logs/control/cmb/config.py +++ b/src/cloudflare/resources/logs/control/cmb/config.py @@ -26,17 +26,17 @@ from .....types.logs.control.cmb import config_create_params, config_delete_params from .....types.logs.control.cmb.cmb_config import CmbConfig -__all__ = ["Config", "AsyncConfig"] +__all__ = ["ConfigResource", "AsyncConfigResource"] -class Config(SyncAPIResource): +class ConfigResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> ConfigWithRawResponse: - return ConfigWithRawResponse(self) + def with_raw_response(self) -> ConfigResourceWithRawResponse: + return ConfigResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> ConfigWithStreamingResponse: - return ConfigWithStreamingResponse(self) + def with_streaming_response(self) -> ConfigResourceWithStreamingResponse: + return ConfigResourceWithStreamingResponse(self) def create( self, @@ -162,14 +162,14 @@ def get( ) -class AsyncConfig(AsyncAPIResource): +class AsyncConfigResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncConfigWithRawResponse: - return AsyncConfigWithRawResponse(self) + def with_raw_response(self) -> AsyncConfigResourceWithRawResponse: + return AsyncConfigResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncConfigWithStreamingResponse: - return AsyncConfigWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncConfigResourceWithStreamingResponse: + return AsyncConfigResourceWithStreamingResponse(self) async def create( self, @@ -295,8 +295,8 @@ async def get( ) -class ConfigWithRawResponse: - def __init__(self, config: Config) -> None: +class ConfigResourceWithRawResponse: + def __init__(self, config: ConfigResource) -> None: self._config = config self.create = to_raw_response_wrapper( @@ -310,8 +310,8 @@ def __init__(self, config: Config) -> None: ) -class AsyncConfigWithRawResponse: - def __init__(self, config: AsyncConfig) -> None: +class AsyncConfigResourceWithRawResponse: + def __init__(self, config: AsyncConfigResource) -> None: self._config = config self.create = async_to_raw_response_wrapper( @@ -325,8 +325,8 @@ def __init__(self, config: AsyncConfig) -> None: ) -class ConfigWithStreamingResponse: - def __init__(self, config: Config) -> None: +class ConfigResourceWithStreamingResponse: + def __init__(self, config: ConfigResource) -> None: self._config = config self.create = to_streamed_response_wrapper( @@ -340,8 +340,8 @@ def __init__(self, config: Config) -> None: ) -class AsyncConfigWithStreamingResponse: - def __init__(self, config: AsyncConfig) -> None: +class AsyncConfigResourceWithStreamingResponse: + def __init__(self, config: AsyncConfigResource) -> None: self._config = config self.create = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/logs/control/control.py b/src/cloudflare/resources/logs/control/control.py index 7bbaf220174..ce92ba94219 100644 --- a/src/cloudflare/resources/logs/control/control.py +++ b/src/cloudflare/resources/logs/control/control.py @@ -3,112 +3,112 @@ from __future__ import annotations from .cmb import ( - Cmb, - AsyncCmb, - CmbWithRawResponse, - AsyncCmbWithRawResponse, - CmbWithStreamingResponse, - AsyncCmbWithStreamingResponse, + CmbResource, + AsyncCmbResource, + CmbResourceWithRawResponse, + AsyncCmbResourceWithRawResponse, + CmbResourceWithStreamingResponse, + AsyncCmbResourceWithStreamingResponse, ) -from .cmb.cmb import Cmb, AsyncCmb +from .cmb.cmb import CmbResource, AsyncCmbResource from .retention import ( - Retention, - AsyncRetention, - RetentionWithRawResponse, - AsyncRetentionWithRawResponse, - RetentionWithStreamingResponse, - AsyncRetentionWithStreamingResponse, + RetentionResource, + AsyncRetentionResource, + RetentionResourceWithRawResponse, + AsyncRetentionResourceWithRawResponse, + RetentionResourceWithStreamingResponse, + AsyncRetentionResourceWithStreamingResponse, ) from ...._compat import cached_property from ...._resource import SyncAPIResource, AsyncAPIResource -from .retention.retention import Retention, AsyncRetention +from .retention.retention import RetentionResource, AsyncRetentionResource -__all__ = ["Control", "AsyncControl"] +__all__ = ["ControlResource", "AsyncControlResource"] -class Control(SyncAPIResource): +class ControlResource(SyncAPIResource): @cached_property - def retention(self) -> Retention: - return Retention(self._client) + def retention(self) -> RetentionResource: + return RetentionResource(self._client) @cached_property - def cmb(self) -> Cmb: - return Cmb(self._client) + def cmb(self) -> CmbResource: + return CmbResource(self._client) @cached_property - def with_raw_response(self) -> ControlWithRawResponse: - return ControlWithRawResponse(self) + def with_raw_response(self) -> ControlResourceWithRawResponse: + return ControlResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> ControlWithStreamingResponse: - return ControlWithStreamingResponse(self) + def with_streaming_response(self) -> ControlResourceWithStreamingResponse: + return ControlResourceWithStreamingResponse(self) -class AsyncControl(AsyncAPIResource): +class AsyncControlResource(AsyncAPIResource): @cached_property - def retention(self) -> AsyncRetention: - return AsyncRetention(self._client) + def retention(self) -> AsyncRetentionResource: + return AsyncRetentionResource(self._client) @cached_property - def cmb(self) -> AsyncCmb: - return AsyncCmb(self._client) + def cmb(self) -> AsyncCmbResource: + return AsyncCmbResource(self._client) @cached_property - def with_raw_response(self) -> AsyncControlWithRawResponse: - return AsyncControlWithRawResponse(self) + def with_raw_response(self) -> AsyncControlResourceWithRawResponse: + return AsyncControlResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncControlWithStreamingResponse: - return AsyncControlWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncControlResourceWithStreamingResponse: + return AsyncControlResourceWithStreamingResponse(self) -class ControlWithRawResponse: - def __init__(self, control: Control) -> None: +class ControlResourceWithRawResponse: + def __init__(self, control: ControlResource) -> None: self._control = control @cached_property - def retention(self) -> RetentionWithRawResponse: - return RetentionWithRawResponse(self._control.retention) + def retention(self) -> RetentionResourceWithRawResponse: + return RetentionResourceWithRawResponse(self._control.retention) @cached_property - def cmb(self) -> CmbWithRawResponse: - return CmbWithRawResponse(self._control.cmb) + def cmb(self) -> CmbResourceWithRawResponse: + return CmbResourceWithRawResponse(self._control.cmb) -class AsyncControlWithRawResponse: - def __init__(self, control: AsyncControl) -> None: +class AsyncControlResourceWithRawResponse: + def __init__(self, control: AsyncControlResource) -> None: self._control = control @cached_property - def retention(self) -> AsyncRetentionWithRawResponse: - return AsyncRetentionWithRawResponse(self._control.retention) + def retention(self) -> AsyncRetentionResourceWithRawResponse: + return AsyncRetentionResourceWithRawResponse(self._control.retention) @cached_property - def cmb(self) -> AsyncCmbWithRawResponse: - return AsyncCmbWithRawResponse(self._control.cmb) + def cmb(self) -> AsyncCmbResourceWithRawResponse: + return AsyncCmbResourceWithRawResponse(self._control.cmb) -class ControlWithStreamingResponse: - def __init__(self, control: Control) -> None: +class ControlResourceWithStreamingResponse: + def __init__(self, control: ControlResource) -> None: self._control = control @cached_property - def retention(self) -> RetentionWithStreamingResponse: - return RetentionWithStreamingResponse(self._control.retention) + def retention(self) -> RetentionResourceWithStreamingResponse: + return RetentionResourceWithStreamingResponse(self._control.retention) @cached_property - def cmb(self) -> CmbWithStreamingResponse: - return CmbWithStreamingResponse(self._control.cmb) + def cmb(self) -> CmbResourceWithStreamingResponse: + return CmbResourceWithStreamingResponse(self._control.cmb) -class AsyncControlWithStreamingResponse: - def __init__(self, control: AsyncControl) -> None: +class AsyncControlResourceWithStreamingResponse: + def __init__(self, control: AsyncControlResource) -> None: self._control = control @cached_property - def retention(self) -> AsyncRetentionWithStreamingResponse: - return AsyncRetentionWithStreamingResponse(self._control.retention) + def retention(self) -> AsyncRetentionResourceWithStreamingResponse: + return AsyncRetentionResourceWithStreamingResponse(self._control.retention) @cached_property - def cmb(self) -> AsyncCmbWithStreamingResponse: - return AsyncCmbWithStreamingResponse(self._control.cmb) + def cmb(self) -> AsyncCmbResourceWithStreamingResponse: + return AsyncCmbResourceWithStreamingResponse(self._control.cmb) diff --git a/src/cloudflare/resources/logs/control/retention/__init__.py b/src/cloudflare/resources/logs/control/retention/__init__.py index bd12d07366d..f86ef33b8fd 100644 --- a/src/cloudflare/resources/logs/control/retention/__init__.py +++ b/src/cloudflare/resources/logs/control/retention/__init__.py @@ -1,33 +1,33 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from .flag import ( - Flag, - AsyncFlag, - FlagWithRawResponse, - AsyncFlagWithRawResponse, - FlagWithStreamingResponse, - AsyncFlagWithStreamingResponse, + FlagResource, + AsyncFlagResource, + FlagResourceWithRawResponse, + AsyncFlagResourceWithRawResponse, + FlagResourceWithStreamingResponse, + AsyncFlagResourceWithStreamingResponse, ) from .retention import ( - Retention, - AsyncRetention, - RetentionWithRawResponse, - AsyncRetentionWithRawResponse, - RetentionWithStreamingResponse, - AsyncRetentionWithStreamingResponse, + RetentionResource, + AsyncRetentionResource, + RetentionResourceWithRawResponse, + AsyncRetentionResourceWithRawResponse, + RetentionResourceWithStreamingResponse, + AsyncRetentionResourceWithStreamingResponse, ) __all__ = [ - "Flag", - "AsyncFlag", - "FlagWithRawResponse", - "AsyncFlagWithRawResponse", - "FlagWithStreamingResponse", - "AsyncFlagWithStreamingResponse", - "Retention", - "AsyncRetention", - "RetentionWithRawResponse", - "AsyncRetentionWithRawResponse", - "RetentionWithStreamingResponse", - "AsyncRetentionWithStreamingResponse", + "FlagResource", + "AsyncFlagResource", + "FlagResourceWithRawResponse", + "AsyncFlagResourceWithRawResponse", + "FlagResourceWithStreamingResponse", + "AsyncFlagResourceWithStreamingResponse", + "RetentionResource", + "AsyncRetentionResource", + "RetentionResourceWithRawResponse", + "AsyncRetentionResourceWithRawResponse", + "RetentionResourceWithStreamingResponse", + "AsyncRetentionResourceWithStreamingResponse", ] diff --git a/src/cloudflare/resources/logs/control/retention/flag.py b/src/cloudflare/resources/logs/control/retention/flag.py index 5c450fbdebd..3b430f1e9c6 100644 --- a/src/cloudflare/resources/logs/control/retention/flag.py +++ b/src/cloudflare/resources/logs/control/retention/flag.py @@ -27,17 +27,17 @@ from .....types.logs.control.retention.flag_get_response import FlagGetResponse from .....types.logs.control.retention.flag_create_response import FlagCreateResponse -__all__ = ["Flag", "AsyncFlag"] +__all__ = ["FlagResource", "AsyncFlagResource"] -class Flag(SyncAPIResource): +class FlagResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> FlagWithRawResponse: - return FlagWithRawResponse(self) + def with_raw_response(self) -> FlagResourceWithRawResponse: + return FlagResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> FlagWithStreamingResponse: - return FlagWithStreamingResponse(self) + def with_streaming_response(self) -> FlagResourceWithStreamingResponse: + return FlagResourceWithStreamingResponse(self) def create( self, @@ -122,14 +122,14 @@ def get( ) -class AsyncFlag(AsyncAPIResource): +class AsyncFlagResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncFlagWithRawResponse: - return AsyncFlagWithRawResponse(self) + def with_raw_response(self) -> AsyncFlagResourceWithRawResponse: + return AsyncFlagResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncFlagWithStreamingResponse: - return AsyncFlagWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncFlagResourceWithStreamingResponse: + return AsyncFlagResourceWithStreamingResponse(self) async def create( self, @@ -214,8 +214,8 @@ async def get( ) -class FlagWithRawResponse: - def __init__(self, flag: Flag) -> None: +class FlagResourceWithRawResponse: + def __init__(self, flag: FlagResource) -> None: self._flag = flag self.create = to_raw_response_wrapper( @@ -226,8 +226,8 @@ def __init__(self, flag: Flag) -> None: ) -class AsyncFlagWithRawResponse: - def __init__(self, flag: AsyncFlag) -> None: +class AsyncFlagResourceWithRawResponse: + def __init__(self, flag: AsyncFlagResource) -> None: self._flag = flag self.create = async_to_raw_response_wrapper( @@ -238,8 +238,8 @@ def __init__(self, flag: AsyncFlag) -> None: ) -class FlagWithStreamingResponse: - def __init__(self, flag: Flag) -> None: +class FlagResourceWithStreamingResponse: + def __init__(self, flag: FlagResource) -> None: self._flag = flag self.create = to_streamed_response_wrapper( @@ -250,8 +250,8 @@ def __init__(self, flag: Flag) -> None: ) -class AsyncFlagWithStreamingResponse: - def __init__(self, flag: AsyncFlag) -> None: +class AsyncFlagResourceWithStreamingResponse: + def __init__(self, flag: AsyncFlagResource) -> None: self._flag = flag self.create = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/logs/control/retention/retention.py b/src/cloudflare/resources/logs/control/retention/retention.py index 39e309df551..01597a0c091 100644 --- a/src/cloudflare/resources/logs/control/retention/retention.py +++ b/src/cloudflare/resources/logs/control/retention/retention.py @@ -3,78 +3,78 @@ from __future__ import annotations from .flag import ( - Flag, - AsyncFlag, - FlagWithRawResponse, - AsyncFlagWithRawResponse, - FlagWithStreamingResponse, - AsyncFlagWithStreamingResponse, + FlagResource, + AsyncFlagResource, + FlagResourceWithRawResponse, + AsyncFlagResourceWithRawResponse, + FlagResourceWithStreamingResponse, + AsyncFlagResourceWithStreamingResponse, ) from ....._compat import cached_property from ....._resource import SyncAPIResource, AsyncAPIResource -__all__ = ["Retention", "AsyncRetention"] +__all__ = ["RetentionResource", "AsyncRetentionResource"] -class Retention(SyncAPIResource): +class RetentionResource(SyncAPIResource): @cached_property - def flag(self) -> Flag: - return Flag(self._client) + def flag(self) -> FlagResource: + return FlagResource(self._client) @cached_property - def with_raw_response(self) -> RetentionWithRawResponse: - return RetentionWithRawResponse(self) + def with_raw_response(self) -> RetentionResourceWithRawResponse: + return RetentionResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> RetentionWithStreamingResponse: - return RetentionWithStreamingResponse(self) + def with_streaming_response(self) -> RetentionResourceWithStreamingResponse: + return RetentionResourceWithStreamingResponse(self) -class AsyncRetention(AsyncAPIResource): +class AsyncRetentionResource(AsyncAPIResource): @cached_property - def flag(self) -> AsyncFlag: - return AsyncFlag(self._client) + def flag(self) -> AsyncFlagResource: + return AsyncFlagResource(self._client) @cached_property - def with_raw_response(self) -> AsyncRetentionWithRawResponse: - return AsyncRetentionWithRawResponse(self) + def with_raw_response(self) -> AsyncRetentionResourceWithRawResponse: + return AsyncRetentionResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncRetentionWithStreamingResponse: - return AsyncRetentionWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncRetentionResourceWithStreamingResponse: + return AsyncRetentionResourceWithStreamingResponse(self) -class RetentionWithRawResponse: - def __init__(self, retention: Retention) -> None: +class RetentionResourceWithRawResponse: + def __init__(self, retention: RetentionResource) -> None: self._retention = retention @cached_property - def flag(self) -> FlagWithRawResponse: - return FlagWithRawResponse(self._retention.flag) + def flag(self) -> FlagResourceWithRawResponse: + return FlagResourceWithRawResponse(self._retention.flag) -class AsyncRetentionWithRawResponse: - def __init__(self, retention: AsyncRetention) -> None: +class AsyncRetentionResourceWithRawResponse: + def __init__(self, retention: AsyncRetentionResource) -> None: self._retention = retention @cached_property - def flag(self) -> AsyncFlagWithRawResponse: - return AsyncFlagWithRawResponse(self._retention.flag) + def flag(self) -> AsyncFlagResourceWithRawResponse: + return AsyncFlagResourceWithRawResponse(self._retention.flag) -class RetentionWithStreamingResponse: - def __init__(self, retention: Retention) -> None: +class RetentionResourceWithStreamingResponse: + def __init__(self, retention: RetentionResource) -> None: self._retention = retention @cached_property - def flag(self) -> FlagWithStreamingResponse: - return FlagWithStreamingResponse(self._retention.flag) + def flag(self) -> FlagResourceWithStreamingResponse: + return FlagResourceWithStreamingResponse(self._retention.flag) -class AsyncRetentionWithStreamingResponse: - def __init__(self, retention: AsyncRetention) -> None: +class AsyncRetentionResourceWithStreamingResponse: + def __init__(self, retention: AsyncRetentionResource) -> None: self._retention = retention @cached_property - def flag(self) -> AsyncFlagWithStreamingResponse: - return AsyncFlagWithStreamingResponse(self._retention.flag) + def flag(self) -> AsyncFlagResourceWithStreamingResponse: + return AsyncFlagResourceWithStreamingResponse(self._retention.flag) diff --git a/src/cloudflare/resources/logs/logs.py b/src/cloudflare/resources/logs/logs.py index 32db7078099..b868582e35b 100644 --- a/src/cloudflare/resources/logs/logs.py +++ b/src/cloudflare/resources/logs/logs.py @@ -3,144 +3,144 @@ from __future__ import annotations from .rayid import ( - RayID, - AsyncRayID, - RayIDWithRawResponse, - AsyncRayIDWithRawResponse, - RayIDWithStreamingResponse, - AsyncRayIDWithStreamingResponse, + RayIDResource, + AsyncRayIDResource, + RayIDResourceWithRawResponse, + AsyncRayIDResourceWithRawResponse, + RayIDResourceWithStreamingResponse, + AsyncRayIDResourceWithStreamingResponse, ) from .control import ( - Control, - AsyncControl, - ControlWithRawResponse, - AsyncControlWithRawResponse, - ControlWithStreamingResponse, - AsyncControlWithStreamingResponse, + ControlResource, + AsyncControlResource, + ControlResourceWithRawResponse, + AsyncControlResourceWithRawResponse, + ControlResourceWithStreamingResponse, + AsyncControlResourceWithStreamingResponse, ) from .received import ( - Received, - AsyncReceived, - ReceivedWithRawResponse, - AsyncReceivedWithRawResponse, - ReceivedWithStreamingResponse, - AsyncReceivedWithStreamingResponse, + ReceivedResource, + AsyncReceivedResource, + ReceivedResourceWithRawResponse, + AsyncReceivedResourceWithRawResponse, + ReceivedResourceWithStreamingResponse, + AsyncReceivedResourceWithStreamingResponse, ) from ..._compat import cached_property from ..._resource import SyncAPIResource, AsyncAPIResource -from .control.control import Control, AsyncControl -from .received.received import Received, AsyncReceived +from .control.control import ControlResource, AsyncControlResource +from .received.received import ReceivedResource, AsyncReceivedResource -__all__ = ["Logs", "AsyncLogs"] +__all__ = ["LogsResource", "AsyncLogsResource"] -class Logs(SyncAPIResource): +class LogsResource(SyncAPIResource): @cached_property - def control(self) -> Control: - return Control(self._client) + def control(self) -> ControlResource: + return ControlResource(self._client) @cached_property - def rayid(self) -> RayID: - return RayID(self._client) + def rayid(self) -> RayIDResource: + return RayIDResource(self._client) @cached_property - def received(self) -> Received: - return Received(self._client) + def received(self) -> ReceivedResource: + return ReceivedResource(self._client) @cached_property - def with_raw_response(self) -> LogsWithRawResponse: - return LogsWithRawResponse(self) + def with_raw_response(self) -> LogsResourceWithRawResponse: + return LogsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> LogsWithStreamingResponse: - return LogsWithStreamingResponse(self) + def with_streaming_response(self) -> LogsResourceWithStreamingResponse: + return LogsResourceWithStreamingResponse(self) -class AsyncLogs(AsyncAPIResource): +class AsyncLogsResource(AsyncAPIResource): @cached_property - def control(self) -> AsyncControl: - return AsyncControl(self._client) + def control(self) -> AsyncControlResource: + return AsyncControlResource(self._client) @cached_property - def rayid(self) -> AsyncRayID: - return AsyncRayID(self._client) + def rayid(self) -> AsyncRayIDResource: + return AsyncRayIDResource(self._client) @cached_property - def received(self) -> AsyncReceived: - return AsyncReceived(self._client) + def received(self) -> AsyncReceivedResource: + return AsyncReceivedResource(self._client) @cached_property - def with_raw_response(self) -> AsyncLogsWithRawResponse: - return AsyncLogsWithRawResponse(self) + def with_raw_response(self) -> AsyncLogsResourceWithRawResponse: + return AsyncLogsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncLogsWithStreamingResponse: - return AsyncLogsWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncLogsResourceWithStreamingResponse: + return AsyncLogsResourceWithStreamingResponse(self) -class LogsWithRawResponse: - def __init__(self, logs: Logs) -> None: +class LogsResourceWithRawResponse: + def __init__(self, logs: LogsResource) -> None: self._logs = logs @cached_property - def control(self) -> ControlWithRawResponse: - return ControlWithRawResponse(self._logs.control) + def control(self) -> ControlResourceWithRawResponse: + return ControlResourceWithRawResponse(self._logs.control) @cached_property - def rayid(self) -> RayIDWithRawResponse: - return RayIDWithRawResponse(self._logs.rayid) + def rayid(self) -> RayIDResourceWithRawResponse: + return RayIDResourceWithRawResponse(self._logs.rayid) @cached_property - def received(self) -> ReceivedWithRawResponse: - return ReceivedWithRawResponse(self._logs.received) + def received(self) -> ReceivedResourceWithRawResponse: + return ReceivedResourceWithRawResponse(self._logs.received) -class AsyncLogsWithRawResponse: - def __init__(self, logs: AsyncLogs) -> None: +class AsyncLogsResourceWithRawResponse: + def __init__(self, logs: AsyncLogsResource) -> None: self._logs = logs @cached_property - def control(self) -> AsyncControlWithRawResponse: - return AsyncControlWithRawResponse(self._logs.control) + def control(self) -> AsyncControlResourceWithRawResponse: + return AsyncControlResourceWithRawResponse(self._logs.control) @cached_property - def rayid(self) -> AsyncRayIDWithRawResponse: - return AsyncRayIDWithRawResponse(self._logs.rayid) + def rayid(self) -> AsyncRayIDResourceWithRawResponse: + return AsyncRayIDResourceWithRawResponse(self._logs.rayid) @cached_property - def received(self) -> AsyncReceivedWithRawResponse: - return AsyncReceivedWithRawResponse(self._logs.received) + def received(self) -> AsyncReceivedResourceWithRawResponse: + return AsyncReceivedResourceWithRawResponse(self._logs.received) -class LogsWithStreamingResponse: - def __init__(self, logs: Logs) -> None: +class LogsResourceWithStreamingResponse: + def __init__(self, logs: LogsResource) -> None: self._logs = logs @cached_property - def control(self) -> ControlWithStreamingResponse: - return ControlWithStreamingResponse(self._logs.control) + def control(self) -> ControlResourceWithStreamingResponse: + return ControlResourceWithStreamingResponse(self._logs.control) @cached_property - def rayid(self) -> RayIDWithStreamingResponse: - return RayIDWithStreamingResponse(self._logs.rayid) + def rayid(self) -> RayIDResourceWithStreamingResponse: + return RayIDResourceWithStreamingResponse(self._logs.rayid) @cached_property - def received(self) -> ReceivedWithStreamingResponse: - return ReceivedWithStreamingResponse(self._logs.received) + def received(self) -> ReceivedResourceWithStreamingResponse: + return ReceivedResourceWithStreamingResponse(self._logs.received) -class AsyncLogsWithStreamingResponse: - def __init__(self, logs: AsyncLogs) -> None: +class AsyncLogsResourceWithStreamingResponse: + def __init__(self, logs: AsyncLogsResource) -> None: self._logs = logs @cached_property - def control(self) -> AsyncControlWithStreamingResponse: - return AsyncControlWithStreamingResponse(self._logs.control) + def control(self) -> AsyncControlResourceWithStreamingResponse: + return AsyncControlResourceWithStreamingResponse(self._logs.control) @cached_property - def rayid(self) -> AsyncRayIDWithStreamingResponse: - return AsyncRayIDWithStreamingResponse(self._logs.rayid) + def rayid(self) -> AsyncRayIDResourceWithStreamingResponse: + return AsyncRayIDResourceWithStreamingResponse(self._logs.rayid) @cached_property - def received(self) -> AsyncReceivedWithStreamingResponse: - return AsyncReceivedWithStreamingResponse(self._logs.received) + def received(self) -> AsyncReceivedResourceWithStreamingResponse: + return AsyncReceivedResourceWithStreamingResponse(self._logs.received) diff --git a/src/cloudflare/resources/logs/rayid.py b/src/cloudflare/resources/logs/rayid.py index b8cbcec6523..d6cbefae0ee 100644 --- a/src/cloudflare/resources/logs/rayid.py +++ b/src/cloudflare/resources/logs/rayid.py @@ -26,17 +26,17 @@ ) from ...types.logs.rayid_get_response import RayIDGetResponse -__all__ = ["RayID", "AsyncRayID"] +__all__ = ["RayIDResource", "AsyncRayIDResource"] -class RayID(SyncAPIResource): +class RayIDResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> RayIDWithRawResponse: - return RayIDWithRawResponse(self) + def with_raw_response(self) -> RayIDResourceWithRawResponse: + return RayIDResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> RayIDWithStreamingResponse: - return RayIDWithStreamingResponse(self) + def with_streaming_response(self) -> RayIDResourceWithStreamingResponse: + return RayIDResourceWithStreamingResponse(self) def get( self, @@ -114,14 +114,14 @@ def get( ) -class AsyncRayID(AsyncAPIResource): +class AsyncRayIDResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncRayIDWithRawResponse: - return AsyncRayIDWithRawResponse(self) + def with_raw_response(self) -> AsyncRayIDResourceWithRawResponse: + return AsyncRayIDResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncRayIDWithStreamingResponse: - return AsyncRayIDWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncRayIDResourceWithStreamingResponse: + return AsyncRayIDResourceWithStreamingResponse(self) async def get( self, @@ -199,8 +199,8 @@ async def get( ) -class RayIDWithRawResponse: - def __init__(self, rayid: RayID) -> None: +class RayIDResourceWithRawResponse: + def __init__(self, rayid: RayIDResource) -> None: self._rayid = rayid self.get = to_raw_response_wrapper( @@ -208,8 +208,8 @@ def __init__(self, rayid: RayID) -> None: ) -class AsyncRayIDWithRawResponse: - def __init__(self, rayid: AsyncRayID) -> None: +class AsyncRayIDResourceWithRawResponse: + def __init__(self, rayid: AsyncRayIDResource) -> None: self._rayid = rayid self.get = async_to_raw_response_wrapper( @@ -217,8 +217,8 @@ def __init__(self, rayid: AsyncRayID) -> None: ) -class RayIDWithStreamingResponse: - def __init__(self, rayid: RayID) -> None: +class RayIDResourceWithStreamingResponse: + def __init__(self, rayid: RayIDResource) -> None: self._rayid = rayid self.get = to_streamed_response_wrapper( @@ -226,8 +226,8 @@ def __init__(self, rayid: RayID) -> None: ) -class AsyncRayIDWithStreamingResponse: - def __init__(self, rayid: AsyncRayID) -> None: +class AsyncRayIDResourceWithStreamingResponse: + def __init__(self, rayid: AsyncRayIDResource) -> None: self._rayid = rayid self.get = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/logs/received/__init__.py b/src/cloudflare/resources/logs/received/__init__.py index 0c7d17be7e7..dc6b4c74f2b 100644 --- a/src/cloudflare/resources/logs/received/__init__.py +++ b/src/cloudflare/resources/logs/received/__init__.py @@ -1,33 +1,33 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from .fields import ( - Fields, - AsyncFields, - FieldsWithRawResponse, - AsyncFieldsWithRawResponse, - FieldsWithStreamingResponse, - AsyncFieldsWithStreamingResponse, + FieldsResource, + AsyncFieldsResource, + FieldsResourceWithRawResponse, + AsyncFieldsResourceWithRawResponse, + FieldsResourceWithStreamingResponse, + AsyncFieldsResourceWithStreamingResponse, ) from .received import ( - Received, - AsyncReceived, - ReceivedWithRawResponse, - AsyncReceivedWithRawResponse, - ReceivedWithStreamingResponse, - AsyncReceivedWithStreamingResponse, + ReceivedResource, + AsyncReceivedResource, + ReceivedResourceWithRawResponse, + AsyncReceivedResourceWithRawResponse, + ReceivedResourceWithStreamingResponse, + AsyncReceivedResourceWithStreamingResponse, ) __all__ = [ - "Fields", - "AsyncFields", - "FieldsWithRawResponse", - "AsyncFieldsWithRawResponse", - "FieldsWithStreamingResponse", - "AsyncFieldsWithStreamingResponse", - "Received", - "AsyncReceived", - "ReceivedWithRawResponse", - "AsyncReceivedWithRawResponse", - "ReceivedWithStreamingResponse", - "AsyncReceivedWithStreamingResponse", + "FieldsResource", + "AsyncFieldsResource", + "FieldsResourceWithRawResponse", + "AsyncFieldsResourceWithRawResponse", + "FieldsResourceWithStreamingResponse", + "AsyncFieldsResourceWithStreamingResponse", + "ReceivedResource", + "AsyncReceivedResource", + "ReceivedResourceWithRawResponse", + "AsyncReceivedResourceWithRawResponse", + "ReceivedResourceWithStreamingResponse", + "AsyncReceivedResourceWithStreamingResponse", ] diff --git a/src/cloudflare/resources/logs/received/fields.py b/src/cloudflare/resources/logs/received/fields.py index 5499b8de87d..18015412ab8 100644 --- a/src/cloudflare/resources/logs/received/fields.py +++ b/src/cloudflare/resources/logs/received/fields.py @@ -18,17 +18,17 @@ ) from ....types.logs.received.field_get_response import FieldGetResponse -__all__ = ["Fields", "AsyncFields"] +__all__ = ["FieldsResource", "AsyncFieldsResource"] -class Fields(SyncAPIResource): +class FieldsResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> FieldsWithRawResponse: - return FieldsWithRawResponse(self) + def with_raw_response(self) -> FieldsResourceWithRawResponse: + return FieldsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> FieldsWithStreamingResponse: - return FieldsWithStreamingResponse(self) + def with_streaming_response(self) -> FieldsResourceWithStreamingResponse: + return FieldsResourceWithStreamingResponse(self) def get( self, @@ -68,14 +68,14 @@ def get( ) -class AsyncFields(AsyncAPIResource): +class AsyncFieldsResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncFieldsWithRawResponse: - return AsyncFieldsWithRawResponse(self) + def with_raw_response(self) -> AsyncFieldsResourceWithRawResponse: + return AsyncFieldsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncFieldsWithStreamingResponse: - return AsyncFieldsWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncFieldsResourceWithStreamingResponse: + return AsyncFieldsResourceWithStreamingResponse(self) async def get( self, @@ -115,8 +115,8 @@ async def get( ) -class FieldsWithRawResponse: - def __init__(self, fields: Fields) -> None: +class FieldsResourceWithRawResponse: + def __init__(self, fields: FieldsResource) -> None: self._fields = fields self.get = to_raw_response_wrapper( @@ -124,8 +124,8 @@ def __init__(self, fields: Fields) -> None: ) -class AsyncFieldsWithRawResponse: - def __init__(self, fields: AsyncFields) -> None: +class AsyncFieldsResourceWithRawResponse: + def __init__(self, fields: AsyncFieldsResource) -> None: self._fields = fields self.get = async_to_raw_response_wrapper( @@ -133,8 +133,8 @@ def __init__(self, fields: AsyncFields) -> None: ) -class FieldsWithStreamingResponse: - def __init__(self, fields: Fields) -> None: +class FieldsResourceWithStreamingResponse: + def __init__(self, fields: FieldsResource) -> None: self._fields = fields self.get = to_streamed_response_wrapper( @@ -142,8 +142,8 @@ def __init__(self, fields: Fields) -> None: ) -class AsyncFieldsWithStreamingResponse: - def __init__(self, fields: AsyncFields) -> None: +class AsyncFieldsResourceWithStreamingResponse: + def __init__(self, fields: AsyncFieldsResource) -> None: self._fields = fields self.get = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/logs/received/received.py b/src/cloudflare/resources/logs/received/received.py index 23a87d03923..fe5ea8ffda1 100644 --- a/src/cloudflare/resources/logs/received/received.py +++ b/src/cloudflare/resources/logs/received/received.py @@ -8,12 +8,12 @@ import httpx from .fields import ( - Fields, - AsyncFields, - FieldsWithRawResponse, - AsyncFieldsWithRawResponse, - FieldsWithStreamingResponse, - AsyncFieldsWithStreamingResponse, + FieldsResource, + AsyncFieldsResource, + FieldsResourceWithRawResponse, + AsyncFieldsResourceWithRawResponse, + FieldsResourceWithStreamingResponse, + AsyncFieldsResourceWithStreamingResponse, ) from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven from ...._utils import ( @@ -34,21 +34,21 @@ ) from ....types.logs.received_get_response import ReceivedGetResponse -__all__ = ["Received", "AsyncReceived"] +__all__ = ["ReceivedResource", "AsyncReceivedResource"] -class Received(SyncAPIResource): +class ReceivedResource(SyncAPIResource): @cached_property - def fields(self) -> Fields: - return Fields(self._client) + def fields(self) -> FieldsResource: + return FieldsResource(self._client) @cached_property - def with_raw_response(self) -> ReceivedWithRawResponse: - return ReceivedWithRawResponse(self) + def with_raw_response(self) -> ReceivedResourceWithRawResponse: + return ReceivedResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> ReceivedWithStreamingResponse: - return ReceivedWithStreamingResponse(self) + def with_streaming_response(self) -> ReceivedResourceWithStreamingResponse: + return ReceivedResourceWithStreamingResponse(self) def get( self, @@ -161,18 +161,18 @@ def get( ) -class AsyncReceived(AsyncAPIResource): +class AsyncReceivedResource(AsyncAPIResource): @cached_property - def fields(self) -> AsyncFields: - return AsyncFields(self._client) + def fields(self) -> AsyncFieldsResource: + return AsyncFieldsResource(self._client) @cached_property - def with_raw_response(self) -> AsyncReceivedWithRawResponse: - return AsyncReceivedWithRawResponse(self) + def with_raw_response(self) -> AsyncReceivedResourceWithRawResponse: + return AsyncReceivedResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncReceivedWithStreamingResponse: - return AsyncReceivedWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncReceivedResourceWithStreamingResponse: + return AsyncReceivedResourceWithStreamingResponse(self) async def get( self, @@ -285,8 +285,8 @@ async def get( ) -class ReceivedWithRawResponse: - def __init__(self, received: Received) -> None: +class ReceivedResourceWithRawResponse: + def __init__(self, received: ReceivedResource) -> None: self._received = received self.get = to_raw_response_wrapper( @@ -294,12 +294,12 @@ def __init__(self, received: Received) -> None: ) @cached_property - def fields(self) -> FieldsWithRawResponse: - return FieldsWithRawResponse(self._received.fields) + def fields(self) -> FieldsResourceWithRawResponse: + return FieldsResourceWithRawResponse(self._received.fields) -class AsyncReceivedWithRawResponse: - def __init__(self, received: AsyncReceived) -> None: +class AsyncReceivedResourceWithRawResponse: + def __init__(self, received: AsyncReceivedResource) -> None: self._received = received self.get = async_to_raw_response_wrapper( @@ -307,12 +307,12 @@ def __init__(self, received: AsyncReceived) -> None: ) @cached_property - def fields(self) -> AsyncFieldsWithRawResponse: - return AsyncFieldsWithRawResponse(self._received.fields) + def fields(self) -> AsyncFieldsResourceWithRawResponse: + return AsyncFieldsResourceWithRawResponse(self._received.fields) -class ReceivedWithStreamingResponse: - def __init__(self, received: Received) -> None: +class ReceivedResourceWithStreamingResponse: + def __init__(self, received: ReceivedResource) -> None: self._received = received self.get = to_streamed_response_wrapper( @@ -320,12 +320,12 @@ def __init__(self, received: Received) -> None: ) @cached_property - def fields(self) -> FieldsWithStreamingResponse: - return FieldsWithStreamingResponse(self._received.fields) + def fields(self) -> FieldsResourceWithStreamingResponse: + return FieldsResourceWithStreamingResponse(self._received.fields) -class AsyncReceivedWithStreamingResponse: - def __init__(self, received: AsyncReceived) -> None: +class AsyncReceivedResourceWithStreamingResponse: + def __init__(self, received: AsyncReceivedResource) -> None: self._received = received self.get = async_to_streamed_response_wrapper( @@ -333,5 +333,5 @@ def __init__(self, received: AsyncReceived) -> None: ) @cached_property - def fields(self) -> AsyncFieldsWithStreamingResponse: - return AsyncFieldsWithStreamingResponse(self._received.fields) + def fields(self) -> AsyncFieldsResourceWithStreamingResponse: + return AsyncFieldsResourceWithStreamingResponse(self._received.fields) diff --git a/src/cloudflare/resources/magic_network_monitoring/__init__.py b/src/cloudflare/resources/magic_network_monitoring/__init__.py index 3149fd83017..ddc8bc54f41 100644 --- a/src/cloudflare/resources/magic_network_monitoring/__init__.py +++ b/src/cloudflare/resources/magic_network_monitoring/__init__.py @@ -1,47 +1,47 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from .rules import ( - Rules, - AsyncRules, - RulesWithRawResponse, - AsyncRulesWithRawResponse, - RulesWithStreamingResponse, - AsyncRulesWithStreamingResponse, + RulesResource, + AsyncRulesResource, + RulesResourceWithRawResponse, + AsyncRulesResourceWithRawResponse, + RulesResourceWithStreamingResponse, + AsyncRulesResourceWithStreamingResponse, ) from .configs import ( - Configs, - AsyncConfigs, - ConfigsWithRawResponse, - AsyncConfigsWithRawResponse, - ConfigsWithStreamingResponse, - AsyncConfigsWithStreamingResponse, + ConfigsResource, + AsyncConfigsResource, + ConfigsResourceWithRawResponse, + AsyncConfigsResourceWithRawResponse, + ConfigsResourceWithStreamingResponse, + AsyncConfigsResourceWithStreamingResponse, ) from .magic_network_monitoring import ( - MagicNetworkMonitoring, - AsyncMagicNetworkMonitoring, - MagicNetworkMonitoringWithRawResponse, - AsyncMagicNetworkMonitoringWithRawResponse, - MagicNetworkMonitoringWithStreamingResponse, - AsyncMagicNetworkMonitoringWithStreamingResponse, + MagicNetworkMonitoringResource, + AsyncMagicNetworkMonitoringResource, + MagicNetworkMonitoringResourceWithRawResponse, + AsyncMagicNetworkMonitoringResourceWithRawResponse, + MagicNetworkMonitoringResourceWithStreamingResponse, + AsyncMagicNetworkMonitoringResourceWithStreamingResponse, ) __all__ = [ - "Configs", - "AsyncConfigs", - "ConfigsWithRawResponse", - "AsyncConfigsWithRawResponse", - "ConfigsWithStreamingResponse", - "AsyncConfigsWithStreamingResponse", - "Rules", - "AsyncRules", - "RulesWithRawResponse", - "AsyncRulesWithRawResponse", - "RulesWithStreamingResponse", - "AsyncRulesWithStreamingResponse", - "MagicNetworkMonitoring", - "AsyncMagicNetworkMonitoring", - "MagicNetworkMonitoringWithRawResponse", - "AsyncMagicNetworkMonitoringWithRawResponse", - "MagicNetworkMonitoringWithStreamingResponse", - "AsyncMagicNetworkMonitoringWithStreamingResponse", + "ConfigsResource", + "AsyncConfigsResource", + "ConfigsResourceWithRawResponse", + "AsyncConfigsResourceWithRawResponse", + "ConfigsResourceWithStreamingResponse", + "AsyncConfigsResourceWithStreamingResponse", + "RulesResource", + "AsyncRulesResource", + "RulesResourceWithRawResponse", + "AsyncRulesResourceWithRawResponse", + "RulesResourceWithStreamingResponse", + "AsyncRulesResourceWithStreamingResponse", + "MagicNetworkMonitoringResource", + "AsyncMagicNetworkMonitoringResource", + "MagicNetworkMonitoringResourceWithRawResponse", + "AsyncMagicNetworkMonitoringResourceWithRawResponse", + "MagicNetworkMonitoringResourceWithStreamingResponse", + "AsyncMagicNetworkMonitoringResourceWithStreamingResponse", ] diff --git a/src/cloudflare/resources/magic_network_monitoring/configs/__init__.py b/src/cloudflare/resources/magic_network_monitoring/configs/__init__.py index 3925a938c90..cd21fef80b1 100644 --- a/src/cloudflare/resources/magic_network_monitoring/configs/__init__.py +++ b/src/cloudflare/resources/magic_network_monitoring/configs/__init__.py @@ -1,33 +1,33 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from .full import ( - Full, - AsyncFull, - FullWithRawResponse, - AsyncFullWithRawResponse, - FullWithStreamingResponse, - AsyncFullWithStreamingResponse, + FullResource, + AsyncFullResource, + FullResourceWithRawResponse, + AsyncFullResourceWithRawResponse, + FullResourceWithStreamingResponse, + AsyncFullResourceWithStreamingResponse, ) from .configs import ( - Configs, - AsyncConfigs, - ConfigsWithRawResponse, - AsyncConfigsWithRawResponse, - ConfigsWithStreamingResponse, - AsyncConfigsWithStreamingResponse, + ConfigsResource, + AsyncConfigsResource, + ConfigsResourceWithRawResponse, + AsyncConfigsResourceWithRawResponse, + ConfigsResourceWithStreamingResponse, + AsyncConfigsResourceWithStreamingResponse, ) __all__ = [ - "Full", - "AsyncFull", - "FullWithRawResponse", - "AsyncFullWithRawResponse", - "FullWithStreamingResponse", - "AsyncFullWithStreamingResponse", - "Configs", - "AsyncConfigs", - "ConfigsWithRawResponse", - "AsyncConfigsWithRawResponse", - "ConfigsWithStreamingResponse", - "AsyncConfigsWithStreamingResponse", + "FullResource", + "AsyncFullResource", + "FullResourceWithRawResponse", + "AsyncFullResourceWithRawResponse", + "FullResourceWithStreamingResponse", + "AsyncFullResourceWithStreamingResponse", + "ConfigsResource", + "AsyncConfigsResource", + "ConfigsResourceWithRawResponse", + "AsyncConfigsResourceWithRawResponse", + "ConfigsResourceWithStreamingResponse", + "AsyncConfigsResourceWithStreamingResponse", ] diff --git a/src/cloudflare/resources/magic_network_monitoring/configs/configs.py b/src/cloudflare/resources/magic_network_monitoring/configs/configs.py index f269d3bf7cc..aa26e9f620f 100644 --- a/src/cloudflare/resources/magic_network_monitoring/configs/configs.py +++ b/src/cloudflare/resources/magic_network_monitoring/configs/configs.py @@ -7,12 +7,12 @@ import httpx from .full import ( - Full, - AsyncFull, - FullWithRawResponse, - AsyncFullWithRawResponse, - FullWithStreamingResponse, - AsyncFullWithStreamingResponse, + FullResource, + AsyncFullResource, + FullResourceWithRawResponse, + AsyncFullResourceWithRawResponse, + FullResourceWithStreamingResponse, + AsyncFullResourceWithStreamingResponse, ) from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven from ...._utils import ( @@ -39,21 +39,21 @@ ) from ....types.magic_network_monitoring.configuration import Configuration -__all__ = ["Configs", "AsyncConfigs"] +__all__ = ["ConfigsResource", "AsyncConfigsResource"] -class Configs(SyncAPIResource): +class ConfigsResource(SyncAPIResource): @cached_property - def full(self) -> Full: - return Full(self._client) + def full(self) -> FullResource: + return FullResource(self._client) @cached_property - def with_raw_response(self) -> ConfigsWithRawResponse: - return ConfigsWithRawResponse(self) + def with_raw_response(self) -> ConfigsResourceWithRawResponse: + return ConfigsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> ConfigsWithStreamingResponse: - return ConfigsWithStreamingResponse(self) + def with_streaming_response(self) -> ConfigsResourceWithStreamingResponse: + return ConfigsResourceWithStreamingResponse(self) def create( self, @@ -250,18 +250,18 @@ def get( ) -class AsyncConfigs(AsyncAPIResource): +class AsyncConfigsResource(AsyncAPIResource): @cached_property - def full(self) -> AsyncFull: - return AsyncFull(self._client) + def full(self) -> AsyncFullResource: + return AsyncFullResource(self._client) @cached_property - def with_raw_response(self) -> AsyncConfigsWithRawResponse: - return AsyncConfigsWithRawResponse(self) + def with_raw_response(self) -> AsyncConfigsResourceWithRawResponse: + return AsyncConfigsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncConfigsWithStreamingResponse: - return AsyncConfigsWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncConfigsResourceWithStreamingResponse: + return AsyncConfigsResourceWithStreamingResponse(self) async def create( self, @@ -458,8 +458,8 @@ async def get( ) -class ConfigsWithRawResponse: - def __init__(self, configs: Configs) -> None: +class ConfigsResourceWithRawResponse: + def __init__(self, configs: ConfigsResource) -> None: self._configs = configs self.create = to_raw_response_wrapper( @@ -479,12 +479,12 @@ def __init__(self, configs: Configs) -> None: ) @cached_property - def full(self) -> FullWithRawResponse: - return FullWithRawResponse(self._configs.full) + def full(self) -> FullResourceWithRawResponse: + return FullResourceWithRawResponse(self._configs.full) -class AsyncConfigsWithRawResponse: - def __init__(self, configs: AsyncConfigs) -> None: +class AsyncConfigsResourceWithRawResponse: + def __init__(self, configs: AsyncConfigsResource) -> None: self._configs = configs self.create = async_to_raw_response_wrapper( @@ -504,12 +504,12 @@ def __init__(self, configs: AsyncConfigs) -> None: ) @cached_property - def full(self) -> AsyncFullWithRawResponse: - return AsyncFullWithRawResponse(self._configs.full) + def full(self) -> AsyncFullResourceWithRawResponse: + return AsyncFullResourceWithRawResponse(self._configs.full) -class ConfigsWithStreamingResponse: - def __init__(self, configs: Configs) -> None: +class ConfigsResourceWithStreamingResponse: + def __init__(self, configs: ConfigsResource) -> None: self._configs = configs self.create = to_streamed_response_wrapper( @@ -529,12 +529,12 @@ def __init__(self, configs: Configs) -> None: ) @cached_property - def full(self) -> FullWithStreamingResponse: - return FullWithStreamingResponse(self._configs.full) + def full(self) -> FullResourceWithStreamingResponse: + return FullResourceWithStreamingResponse(self._configs.full) -class AsyncConfigsWithStreamingResponse: - def __init__(self, configs: AsyncConfigs) -> None: +class AsyncConfigsResourceWithStreamingResponse: + def __init__(self, configs: AsyncConfigsResource) -> None: self._configs = configs self.create = async_to_streamed_response_wrapper( @@ -554,5 +554,5 @@ def __init__(self, configs: AsyncConfigs) -> None: ) @cached_property - def full(self) -> AsyncFullWithStreamingResponse: - return AsyncFullWithStreamingResponse(self._configs.full) + def full(self) -> AsyncFullResourceWithStreamingResponse: + return AsyncFullResourceWithStreamingResponse(self._configs.full) diff --git a/src/cloudflare/resources/magic_network_monitoring/configs/full.py b/src/cloudflare/resources/magic_network_monitoring/configs/full.py index 96160ed83a6..ef411789377 100644 --- a/src/cloudflare/resources/magic_network_monitoring/configs/full.py +++ b/src/cloudflare/resources/magic_network_monitoring/configs/full.py @@ -21,17 +21,17 @@ ) from ....types.magic_network_monitoring.configuration import Configuration -__all__ = ["Full", "AsyncFull"] +__all__ = ["FullResource", "AsyncFullResource"] -class Full(SyncAPIResource): +class FullResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> FullWithRawResponse: - return FullWithRawResponse(self) + def with_raw_response(self) -> FullResourceWithRawResponse: + return FullResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> FullWithStreamingResponse: - return FullWithStreamingResponse(self) + def with_streaming_response(self) -> FullResourceWithStreamingResponse: + return FullResourceWithStreamingResponse(self) def get( self, @@ -71,14 +71,14 @@ def get( ) -class AsyncFull(AsyncAPIResource): +class AsyncFullResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncFullWithRawResponse: - return AsyncFullWithRawResponse(self) + def with_raw_response(self) -> AsyncFullResourceWithRawResponse: + return AsyncFullResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncFullWithStreamingResponse: - return AsyncFullWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncFullResourceWithStreamingResponse: + return AsyncFullResourceWithStreamingResponse(self) async def get( self, @@ -118,8 +118,8 @@ async def get( ) -class FullWithRawResponse: - def __init__(self, full: Full) -> None: +class FullResourceWithRawResponse: + def __init__(self, full: FullResource) -> None: self._full = full self.get = to_raw_response_wrapper( @@ -127,8 +127,8 @@ def __init__(self, full: Full) -> None: ) -class AsyncFullWithRawResponse: - def __init__(self, full: AsyncFull) -> None: +class AsyncFullResourceWithRawResponse: + def __init__(self, full: AsyncFullResource) -> None: self._full = full self.get = async_to_raw_response_wrapper( @@ -136,8 +136,8 @@ def __init__(self, full: AsyncFull) -> None: ) -class FullWithStreamingResponse: - def __init__(self, full: Full) -> None: +class FullResourceWithStreamingResponse: + def __init__(self, full: FullResource) -> None: self._full = full self.get = to_streamed_response_wrapper( @@ -145,8 +145,8 @@ def __init__(self, full: Full) -> None: ) -class AsyncFullWithStreamingResponse: - def __init__(self, full: AsyncFull) -> None: +class AsyncFullResourceWithStreamingResponse: + def __init__(self, full: AsyncFullResource) -> None: self._full = full self.get = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/magic_network_monitoring/magic_network_monitoring.py b/src/cloudflare/resources/magic_network_monitoring/magic_network_monitoring.py index 024fa234d68..528cbaa79ef 100644 --- a/src/cloudflare/resources/magic_network_monitoring/magic_network_monitoring.py +++ b/src/cloudflare/resources/magic_network_monitoring/magic_network_monitoring.py @@ -3,112 +3,112 @@ from __future__ import annotations from .rules import ( - Rules, - AsyncRules, - RulesWithRawResponse, - AsyncRulesWithRawResponse, - RulesWithStreamingResponse, - AsyncRulesWithStreamingResponse, + RulesResource, + AsyncRulesResource, + RulesResourceWithRawResponse, + AsyncRulesResourceWithRawResponse, + RulesResourceWithStreamingResponse, + AsyncRulesResourceWithStreamingResponse, ) from .configs import ( - Configs, - AsyncConfigs, - ConfigsWithRawResponse, - AsyncConfigsWithRawResponse, - ConfigsWithStreamingResponse, - AsyncConfigsWithStreamingResponse, + ConfigsResource, + AsyncConfigsResource, + ConfigsResourceWithRawResponse, + AsyncConfigsResourceWithRawResponse, + ConfigsResourceWithStreamingResponse, + AsyncConfigsResourceWithStreamingResponse, ) from ..._compat import cached_property from ..._resource import SyncAPIResource, AsyncAPIResource -from .rules.rules import Rules, AsyncRules -from .configs.configs import Configs, AsyncConfigs +from .rules.rules import RulesResource, AsyncRulesResource +from .configs.configs import ConfigsResource, AsyncConfigsResource -__all__ = ["MagicNetworkMonitoring", "AsyncMagicNetworkMonitoring"] +__all__ = ["MagicNetworkMonitoringResource", "AsyncMagicNetworkMonitoringResource"] -class MagicNetworkMonitoring(SyncAPIResource): +class MagicNetworkMonitoringResource(SyncAPIResource): @cached_property - def configs(self) -> Configs: - return Configs(self._client) + def configs(self) -> ConfigsResource: + return ConfigsResource(self._client) @cached_property - def rules(self) -> Rules: - return Rules(self._client) + def rules(self) -> RulesResource: + return RulesResource(self._client) @cached_property - def with_raw_response(self) -> MagicNetworkMonitoringWithRawResponse: - return MagicNetworkMonitoringWithRawResponse(self) + def with_raw_response(self) -> MagicNetworkMonitoringResourceWithRawResponse: + return MagicNetworkMonitoringResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> MagicNetworkMonitoringWithStreamingResponse: - return MagicNetworkMonitoringWithStreamingResponse(self) + def with_streaming_response(self) -> MagicNetworkMonitoringResourceWithStreamingResponse: + return MagicNetworkMonitoringResourceWithStreamingResponse(self) -class AsyncMagicNetworkMonitoring(AsyncAPIResource): +class AsyncMagicNetworkMonitoringResource(AsyncAPIResource): @cached_property - def configs(self) -> AsyncConfigs: - return AsyncConfigs(self._client) + def configs(self) -> AsyncConfigsResource: + return AsyncConfigsResource(self._client) @cached_property - def rules(self) -> AsyncRules: - return AsyncRules(self._client) + def rules(self) -> AsyncRulesResource: + return AsyncRulesResource(self._client) @cached_property - def with_raw_response(self) -> AsyncMagicNetworkMonitoringWithRawResponse: - return AsyncMagicNetworkMonitoringWithRawResponse(self) + def with_raw_response(self) -> AsyncMagicNetworkMonitoringResourceWithRawResponse: + return AsyncMagicNetworkMonitoringResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncMagicNetworkMonitoringWithStreamingResponse: - return AsyncMagicNetworkMonitoringWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncMagicNetworkMonitoringResourceWithStreamingResponse: + return AsyncMagicNetworkMonitoringResourceWithStreamingResponse(self) -class MagicNetworkMonitoringWithRawResponse: - def __init__(self, magic_network_monitoring: MagicNetworkMonitoring) -> None: +class MagicNetworkMonitoringResourceWithRawResponse: + def __init__(self, magic_network_monitoring: MagicNetworkMonitoringResource) -> None: self._magic_network_monitoring = magic_network_monitoring @cached_property - def configs(self) -> ConfigsWithRawResponse: - return ConfigsWithRawResponse(self._magic_network_monitoring.configs) + def configs(self) -> ConfigsResourceWithRawResponse: + return ConfigsResourceWithRawResponse(self._magic_network_monitoring.configs) @cached_property - def rules(self) -> RulesWithRawResponse: - return RulesWithRawResponse(self._magic_network_monitoring.rules) + def rules(self) -> RulesResourceWithRawResponse: + return RulesResourceWithRawResponse(self._magic_network_monitoring.rules) -class AsyncMagicNetworkMonitoringWithRawResponse: - def __init__(self, magic_network_monitoring: AsyncMagicNetworkMonitoring) -> None: +class AsyncMagicNetworkMonitoringResourceWithRawResponse: + def __init__(self, magic_network_monitoring: AsyncMagicNetworkMonitoringResource) -> None: self._magic_network_monitoring = magic_network_monitoring @cached_property - def configs(self) -> AsyncConfigsWithRawResponse: - return AsyncConfigsWithRawResponse(self._magic_network_monitoring.configs) + def configs(self) -> AsyncConfigsResourceWithRawResponse: + return AsyncConfigsResourceWithRawResponse(self._magic_network_monitoring.configs) @cached_property - def rules(self) -> AsyncRulesWithRawResponse: - return AsyncRulesWithRawResponse(self._magic_network_monitoring.rules) + def rules(self) -> AsyncRulesResourceWithRawResponse: + return AsyncRulesResourceWithRawResponse(self._magic_network_monitoring.rules) -class MagicNetworkMonitoringWithStreamingResponse: - def __init__(self, magic_network_monitoring: MagicNetworkMonitoring) -> None: +class MagicNetworkMonitoringResourceWithStreamingResponse: + def __init__(self, magic_network_monitoring: MagicNetworkMonitoringResource) -> None: self._magic_network_monitoring = magic_network_monitoring @cached_property - def configs(self) -> ConfigsWithStreamingResponse: - return ConfigsWithStreamingResponse(self._magic_network_monitoring.configs) + def configs(self) -> ConfigsResourceWithStreamingResponse: + return ConfigsResourceWithStreamingResponse(self._magic_network_monitoring.configs) @cached_property - def rules(self) -> RulesWithStreamingResponse: - return RulesWithStreamingResponse(self._magic_network_monitoring.rules) + def rules(self) -> RulesResourceWithStreamingResponse: + return RulesResourceWithStreamingResponse(self._magic_network_monitoring.rules) -class AsyncMagicNetworkMonitoringWithStreamingResponse: - def __init__(self, magic_network_monitoring: AsyncMagicNetworkMonitoring) -> None: +class AsyncMagicNetworkMonitoringResourceWithStreamingResponse: + def __init__(self, magic_network_monitoring: AsyncMagicNetworkMonitoringResource) -> None: self._magic_network_monitoring = magic_network_monitoring @cached_property - def configs(self) -> AsyncConfigsWithStreamingResponse: - return AsyncConfigsWithStreamingResponse(self._magic_network_monitoring.configs) + def configs(self) -> AsyncConfigsResourceWithStreamingResponse: + return AsyncConfigsResourceWithStreamingResponse(self._magic_network_monitoring.configs) @cached_property - def rules(self) -> AsyncRulesWithStreamingResponse: - return AsyncRulesWithStreamingResponse(self._magic_network_monitoring.rules) + def rules(self) -> AsyncRulesResourceWithStreamingResponse: + return AsyncRulesResourceWithStreamingResponse(self._magic_network_monitoring.rules) diff --git a/src/cloudflare/resources/magic_network_monitoring/rules/__init__.py b/src/cloudflare/resources/magic_network_monitoring/rules/__init__.py index cba78cae500..00d12a6e555 100644 --- a/src/cloudflare/resources/magic_network_monitoring/rules/__init__.py +++ b/src/cloudflare/resources/magic_network_monitoring/rules/__init__.py @@ -1,33 +1,33 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from .rules import ( - Rules, - AsyncRules, - RulesWithRawResponse, - AsyncRulesWithRawResponse, - RulesWithStreamingResponse, - AsyncRulesWithStreamingResponse, + RulesResource, + AsyncRulesResource, + RulesResourceWithRawResponse, + AsyncRulesResourceWithRawResponse, + RulesResourceWithStreamingResponse, + AsyncRulesResourceWithStreamingResponse, ) from .advertisements import ( - Advertisements, - AsyncAdvertisements, - AdvertisementsWithRawResponse, - AsyncAdvertisementsWithRawResponse, - AdvertisementsWithStreamingResponse, - AsyncAdvertisementsWithStreamingResponse, + AdvertisementsResource, + AsyncAdvertisementsResource, + AdvertisementsResourceWithRawResponse, + AsyncAdvertisementsResourceWithRawResponse, + AdvertisementsResourceWithStreamingResponse, + AsyncAdvertisementsResourceWithStreamingResponse, ) __all__ = [ - "Advertisements", - "AsyncAdvertisements", - "AdvertisementsWithRawResponse", - "AsyncAdvertisementsWithRawResponse", - "AdvertisementsWithStreamingResponse", - "AsyncAdvertisementsWithStreamingResponse", - "Rules", - "AsyncRules", - "RulesWithRawResponse", - "AsyncRulesWithRawResponse", - "RulesWithStreamingResponse", - "AsyncRulesWithStreamingResponse", + "AdvertisementsResource", + "AsyncAdvertisementsResource", + "AdvertisementsResourceWithRawResponse", + "AsyncAdvertisementsResourceWithRawResponse", + "AdvertisementsResourceWithStreamingResponse", + "AsyncAdvertisementsResourceWithStreamingResponse", + "RulesResource", + "AsyncRulesResource", + "RulesResourceWithRawResponse", + "AsyncRulesResourceWithRawResponse", + "RulesResourceWithStreamingResponse", + "AsyncRulesResourceWithStreamingResponse", ] diff --git a/src/cloudflare/resources/magic_network_monitoring/rules/advertisements.py b/src/cloudflare/resources/magic_network_monitoring/rules/advertisements.py index cc59607afb7..73550783cd7 100644 --- a/src/cloudflare/resources/magic_network_monitoring/rules/advertisements.py +++ b/src/cloudflare/resources/magic_network_monitoring/rules/advertisements.py @@ -26,17 +26,17 @@ from ....types.magic_network_monitoring.rules import advertisement_edit_params from ....types.magic_network_monitoring.rules.advertisement import Advertisement -__all__ = ["Advertisements", "AsyncAdvertisements"] +__all__ = ["AdvertisementsResource", "AsyncAdvertisementsResource"] -class Advertisements(SyncAPIResource): +class AdvertisementsResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> AdvertisementsWithRawResponse: - return AdvertisementsWithRawResponse(self) + def with_raw_response(self) -> AdvertisementsResourceWithRawResponse: + return AdvertisementsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AdvertisementsWithStreamingResponse: - return AdvertisementsWithStreamingResponse(self) + def with_streaming_response(self) -> AdvertisementsResourceWithStreamingResponse: + return AdvertisementsResourceWithStreamingResponse(self) def edit( self, @@ -84,14 +84,14 @@ def edit( ) -class AsyncAdvertisements(AsyncAPIResource): +class AsyncAdvertisementsResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncAdvertisementsWithRawResponse: - return AsyncAdvertisementsWithRawResponse(self) + def with_raw_response(self) -> AsyncAdvertisementsResourceWithRawResponse: + return AsyncAdvertisementsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncAdvertisementsWithStreamingResponse: - return AsyncAdvertisementsWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncAdvertisementsResourceWithStreamingResponse: + return AsyncAdvertisementsResourceWithStreamingResponse(self) async def edit( self, @@ -139,8 +139,8 @@ async def edit( ) -class AdvertisementsWithRawResponse: - def __init__(self, advertisements: Advertisements) -> None: +class AdvertisementsResourceWithRawResponse: + def __init__(self, advertisements: AdvertisementsResource) -> None: self._advertisements = advertisements self.edit = to_raw_response_wrapper( @@ -148,8 +148,8 @@ def __init__(self, advertisements: Advertisements) -> None: ) -class AsyncAdvertisementsWithRawResponse: - def __init__(self, advertisements: AsyncAdvertisements) -> None: +class AsyncAdvertisementsResourceWithRawResponse: + def __init__(self, advertisements: AsyncAdvertisementsResource) -> None: self._advertisements = advertisements self.edit = async_to_raw_response_wrapper( @@ -157,8 +157,8 @@ def __init__(self, advertisements: AsyncAdvertisements) -> None: ) -class AdvertisementsWithStreamingResponse: - def __init__(self, advertisements: Advertisements) -> None: +class AdvertisementsResourceWithStreamingResponse: + def __init__(self, advertisements: AdvertisementsResource) -> None: self._advertisements = advertisements self.edit = to_streamed_response_wrapper( @@ -166,8 +166,8 @@ def __init__(self, advertisements: Advertisements) -> None: ) -class AsyncAdvertisementsWithStreamingResponse: - def __init__(self, advertisements: AsyncAdvertisements) -> None: +class AsyncAdvertisementsResourceWithStreamingResponse: + def __init__(self, advertisements: AsyncAdvertisementsResource) -> None: self._advertisements = advertisements self.edit = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/magic_network_monitoring/rules/rules.py b/src/cloudflare/resources/magic_network_monitoring/rules/rules.py index c4c1400ee4a..fb7429d9f99 100644 --- a/src/cloudflare/resources/magic_network_monitoring/rules/rules.py +++ b/src/cloudflare/resources/magic_network_monitoring/rules/rules.py @@ -22,12 +22,12 @@ from ...._wrappers import ResultWrapper from ....pagination import SyncSinglePage, AsyncSinglePage from .advertisements import ( - Advertisements, - AsyncAdvertisements, - AdvertisementsWithRawResponse, - AsyncAdvertisementsWithRawResponse, - AdvertisementsWithStreamingResponse, - AsyncAdvertisementsWithStreamingResponse, + AdvertisementsResource, + AsyncAdvertisementsResource, + AdvertisementsResourceWithRawResponse, + AsyncAdvertisementsResourceWithRawResponse, + AdvertisementsResourceWithStreamingResponse, + AsyncAdvertisementsResourceWithStreamingResponse, ) from ...._base_client import ( AsyncPaginator, @@ -41,21 +41,21 @@ ) from ....types.magic_network_monitoring.magic_network_monitoring_rule import MagicNetworkMonitoringRule -__all__ = ["Rules", "AsyncRules"] +__all__ = ["RulesResource", "AsyncRulesResource"] -class Rules(SyncAPIResource): +class RulesResource(SyncAPIResource): @cached_property - def advertisements(self) -> Advertisements: - return Advertisements(self._client) + def advertisements(self) -> AdvertisementsResource: + return AdvertisementsResource(self._client) @cached_property - def with_raw_response(self) -> RulesWithRawResponse: - return RulesWithRawResponse(self) + def with_raw_response(self) -> RulesResourceWithRawResponse: + return RulesResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> RulesWithStreamingResponse: - return RulesWithStreamingResponse(self) + def with_streaming_response(self) -> RulesResourceWithStreamingResponse: + return RulesResourceWithStreamingResponse(self) def create( self, @@ -302,18 +302,18 @@ def get( ) -class AsyncRules(AsyncAPIResource): +class AsyncRulesResource(AsyncAPIResource): @cached_property - def advertisements(self) -> AsyncAdvertisements: - return AsyncAdvertisements(self._client) + def advertisements(self) -> AsyncAdvertisementsResource: + return AsyncAdvertisementsResource(self._client) @cached_property - def with_raw_response(self) -> AsyncRulesWithRawResponse: - return AsyncRulesWithRawResponse(self) + def with_raw_response(self) -> AsyncRulesResourceWithRawResponse: + return AsyncRulesResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncRulesWithStreamingResponse: - return AsyncRulesWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncRulesResourceWithStreamingResponse: + return AsyncRulesResourceWithStreamingResponse(self) async def create( self, @@ -560,8 +560,8 @@ async def get( ) -class RulesWithRawResponse: - def __init__(self, rules: Rules) -> None: +class RulesResourceWithRawResponse: + def __init__(self, rules: RulesResource) -> None: self._rules = rules self.create = to_raw_response_wrapper( @@ -584,12 +584,12 @@ def __init__(self, rules: Rules) -> None: ) @cached_property - def advertisements(self) -> AdvertisementsWithRawResponse: - return AdvertisementsWithRawResponse(self._rules.advertisements) + def advertisements(self) -> AdvertisementsResourceWithRawResponse: + return AdvertisementsResourceWithRawResponse(self._rules.advertisements) -class AsyncRulesWithRawResponse: - def __init__(self, rules: AsyncRules) -> None: +class AsyncRulesResourceWithRawResponse: + def __init__(self, rules: AsyncRulesResource) -> None: self._rules = rules self.create = async_to_raw_response_wrapper( @@ -612,12 +612,12 @@ def __init__(self, rules: AsyncRules) -> None: ) @cached_property - def advertisements(self) -> AsyncAdvertisementsWithRawResponse: - return AsyncAdvertisementsWithRawResponse(self._rules.advertisements) + def advertisements(self) -> AsyncAdvertisementsResourceWithRawResponse: + return AsyncAdvertisementsResourceWithRawResponse(self._rules.advertisements) -class RulesWithStreamingResponse: - def __init__(self, rules: Rules) -> None: +class RulesResourceWithStreamingResponse: + def __init__(self, rules: RulesResource) -> None: self._rules = rules self.create = to_streamed_response_wrapper( @@ -640,12 +640,12 @@ def __init__(self, rules: Rules) -> None: ) @cached_property - def advertisements(self) -> AdvertisementsWithStreamingResponse: - return AdvertisementsWithStreamingResponse(self._rules.advertisements) + def advertisements(self) -> AdvertisementsResourceWithStreamingResponse: + return AdvertisementsResourceWithStreamingResponse(self._rules.advertisements) -class AsyncRulesWithStreamingResponse: - def __init__(self, rules: AsyncRules) -> None: +class AsyncRulesResourceWithStreamingResponse: + def __init__(self, rules: AsyncRulesResource) -> None: self._rules = rules self.create = async_to_streamed_response_wrapper( @@ -668,5 +668,5 @@ def __init__(self, rules: AsyncRules) -> None: ) @cached_property - def advertisements(self) -> AsyncAdvertisementsWithStreamingResponse: - return AsyncAdvertisementsWithStreamingResponse(self._rules.advertisements) + def advertisements(self) -> AsyncAdvertisementsResourceWithStreamingResponse: + return AsyncAdvertisementsResourceWithStreamingResponse(self._rules.advertisements) diff --git a/src/cloudflare/resources/magic_transit/__init__.py b/src/cloudflare/resources/magic_transit/__init__.py index e554d5d7620..c954e23e46a 100644 --- a/src/cloudflare/resources/magic_transit/__init__.py +++ b/src/cloudflare/resources/magic_transit/__init__.py @@ -1,89 +1,89 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from .sites import ( - Sites, - AsyncSites, - SitesWithRawResponse, - AsyncSitesWithRawResponse, - SitesWithStreamingResponse, - AsyncSitesWithStreamingResponse, + SitesResource, + AsyncSitesResource, + SitesResourceWithRawResponse, + AsyncSitesResourceWithRawResponse, + SitesResourceWithStreamingResponse, + AsyncSitesResourceWithStreamingResponse, ) from .routes import ( - Routes, - AsyncRoutes, - RoutesWithRawResponse, - AsyncRoutesWithRawResponse, - RoutesWithStreamingResponse, - AsyncRoutesWithStreamingResponse, + RoutesResource, + AsyncRoutesResource, + RoutesResourceWithRawResponse, + AsyncRoutesResourceWithRawResponse, + RoutesResourceWithStreamingResponse, + AsyncRoutesResourceWithStreamingResponse, ) from .gre_tunnels import ( - GRETunnels, - AsyncGRETunnels, - GRETunnelsWithRawResponse, - AsyncGRETunnelsWithRawResponse, - GRETunnelsWithStreamingResponse, - AsyncGRETunnelsWithStreamingResponse, + GRETunnelsResource, + AsyncGRETunnelsResource, + GRETunnelsResourceWithRawResponse, + AsyncGRETunnelsResourceWithRawResponse, + GRETunnelsResourceWithStreamingResponse, + AsyncGRETunnelsResourceWithStreamingResponse, ) from .ipsec_tunnels import ( - IPSECTunnels, - AsyncIPSECTunnels, - IPSECTunnelsWithRawResponse, - AsyncIPSECTunnelsWithRawResponse, - IPSECTunnelsWithStreamingResponse, - AsyncIPSECTunnelsWithStreamingResponse, + IPSECTunnelsResource, + AsyncIPSECTunnelsResource, + IPSECTunnelsResourceWithRawResponse, + AsyncIPSECTunnelsResourceWithRawResponse, + IPSECTunnelsResourceWithStreamingResponse, + AsyncIPSECTunnelsResourceWithStreamingResponse, ) from .magic_transit import ( - MagicTransit, - AsyncMagicTransit, - MagicTransitWithRawResponse, - AsyncMagicTransitWithRawResponse, - MagicTransitWithStreamingResponse, - AsyncMagicTransitWithStreamingResponse, + MagicTransitResource, + AsyncMagicTransitResource, + MagicTransitResourceWithRawResponse, + AsyncMagicTransitResourceWithRawResponse, + MagicTransitResourceWithStreamingResponse, + AsyncMagicTransitResourceWithStreamingResponse, ) from .cf_interconnects import ( - CfInterconnects, - AsyncCfInterconnects, - CfInterconnectsWithRawResponse, - AsyncCfInterconnectsWithRawResponse, - CfInterconnectsWithStreamingResponse, - AsyncCfInterconnectsWithStreamingResponse, + CfInterconnectsResource, + AsyncCfInterconnectsResource, + CfInterconnectsResourceWithRawResponse, + AsyncCfInterconnectsResourceWithRawResponse, + CfInterconnectsResourceWithStreamingResponse, + AsyncCfInterconnectsResourceWithStreamingResponse, ) __all__ = [ - "CfInterconnects", - "AsyncCfInterconnects", - "CfInterconnectsWithRawResponse", - "AsyncCfInterconnectsWithRawResponse", - "CfInterconnectsWithStreamingResponse", - "AsyncCfInterconnectsWithStreamingResponse", - "GRETunnels", - "AsyncGRETunnels", - "GRETunnelsWithRawResponse", - "AsyncGRETunnelsWithRawResponse", - "GRETunnelsWithStreamingResponse", - "AsyncGRETunnelsWithStreamingResponse", - "IPSECTunnels", - "AsyncIPSECTunnels", - "IPSECTunnelsWithRawResponse", - "AsyncIPSECTunnelsWithRawResponse", - "IPSECTunnelsWithStreamingResponse", - "AsyncIPSECTunnelsWithStreamingResponse", - "Routes", - "AsyncRoutes", - "RoutesWithRawResponse", - "AsyncRoutesWithRawResponse", - "RoutesWithStreamingResponse", - "AsyncRoutesWithStreamingResponse", - "Sites", - "AsyncSites", - "SitesWithRawResponse", - "AsyncSitesWithRawResponse", - "SitesWithStreamingResponse", - "AsyncSitesWithStreamingResponse", - "MagicTransit", - "AsyncMagicTransit", - "MagicTransitWithRawResponse", - "AsyncMagicTransitWithRawResponse", - "MagicTransitWithStreamingResponse", - "AsyncMagicTransitWithStreamingResponse", + "CfInterconnectsResource", + "AsyncCfInterconnectsResource", + "CfInterconnectsResourceWithRawResponse", + "AsyncCfInterconnectsResourceWithRawResponse", + "CfInterconnectsResourceWithStreamingResponse", + "AsyncCfInterconnectsResourceWithStreamingResponse", + "GRETunnelsResource", + "AsyncGRETunnelsResource", + "GRETunnelsResourceWithRawResponse", + "AsyncGRETunnelsResourceWithRawResponse", + "GRETunnelsResourceWithStreamingResponse", + "AsyncGRETunnelsResourceWithStreamingResponse", + "IPSECTunnelsResource", + "AsyncIPSECTunnelsResource", + "IPSECTunnelsResourceWithRawResponse", + "AsyncIPSECTunnelsResourceWithRawResponse", + "IPSECTunnelsResourceWithStreamingResponse", + "AsyncIPSECTunnelsResourceWithStreamingResponse", + "RoutesResource", + "AsyncRoutesResource", + "RoutesResourceWithRawResponse", + "AsyncRoutesResourceWithRawResponse", + "RoutesResourceWithStreamingResponse", + "AsyncRoutesResourceWithStreamingResponse", + "SitesResource", + "AsyncSitesResource", + "SitesResourceWithRawResponse", + "AsyncSitesResourceWithRawResponse", + "SitesResourceWithStreamingResponse", + "AsyncSitesResourceWithStreamingResponse", + "MagicTransitResource", + "AsyncMagicTransitResource", + "MagicTransitResourceWithRawResponse", + "AsyncMagicTransitResourceWithRawResponse", + "MagicTransitResourceWithStreamingResponse", + "AsyncMagicTransitResourceWithStreamingResponse", ] diff --git a/src/cloudflare/resources/magic_transit/cf_interconnects.py b/src/cloudflare/resources/magic_transit/cf_interconnects.py index 2169477e5c3..753c1abf218 100644 --- a/src/cloudflare/resources/magic_transit/cf_interconnects.py +++ b/src/cloudflare/resources/magic_transit/cf_interconnects.py @@ -28,17 +28,17 @@ from ...types.magic_transit.cf_interconnect_list_response import CfInterconnectListResponse from ...types.magic_transit.cf_interconnect_update_response import CfInterconnectUpdateResponse -__all__ = ["CfInterconnects", "AsyncCfInterconnects"] +__all__ = ["CfInterconnectsResource", "AsyncCfInterconnectsResource"] -class CfInterconnects(SyncAPIResource): +class CfInterconnectsResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> CfInterconnectsWithRawResponse: - return CfInterconnectsWithRawResponse(self) + def with_raw_response(self) -> CfInterconnectsResourceWithRawResponse: + return CfInterconnectsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> CfInterconnectsWithStreamingResponse: - return CfInterconnectsWithStreamingResponse(self) + def with_streaming_response(self) -> CfInterconnectsResourceWithStreamingResponse: + return CfInterconnectsResourceWithStreamingResponse(self) def update( self, @@ -197,14 +197,14 @@ def get( ) -class AsyncCfInterconnects(AsyncAPIResource): +class AsyncCfInterconnectsResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncCfInterconnectsWithRawResponse: - return AsyncCfInterconnectsWithRawResponse(self) + def with_raw_response(self) -> AsyncCfInterconnectsResourceWithRawResponse: + return AsyncCfInterconnectsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncCfInterconnectsWithStreamingResponse: - return AsyncCfInterconnectsWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncCfInterconnectsResourceWithStreamingResponse: + return AsyncCfInterconnectsResourceWithStreamingResponse(self) async def update( self, @@ -363,8 +363,8 @@ async def get( ) -class CfInterconnectsWithRawResponse: - def __init__(self, cf_interconnects: CfInterconnects) -> None: +class CfInterconnectsResourceWithRawResponse: + def __init__(self, cf_interconnects: CfInterconnectsResource) -> None: self._cf_interconnects = cf_interconnects self.update = to_raw_response_wrapper( @@ -378,8 +378,8 @@ def __init__(self, cf_interconnects: CfInterconnects) -> None: ) -class AsyncCfInterconnectsWithRawResponse: - def __init__(self, cf_interconnects: AsyncCfInterconnects) -> None: +class AsyncCfInterconnectsResourceWithRawResponse: + def __init__(self, cf_interconnects: AsyncCfInterconnectsResource) -> None: self._cf_interconnects = cf_interconnects self.update = async_to_raw_response_wrapper( @@ -393,8 +393,8 @@ def __init__(self, cf_interconnects: AsyncCfInterconnects) -> None: ) -class CfInterconnectsWithStreamingResponse: - def __init__(self, cf_interconnects: CfInterconnects) -> None: +class CfInterconnectsResourceWithStreamingResponse: + def __init__(self, cf_interconnects: CfInterconnectsResource) -> None: self._cf_interconnects = cf_interconnects self.update = to_streamed_response_wrapper( @@ -408,8 +408,8 @@ def __init__(self, cf_interconnects: CfInterconnects) -> None: ) -class AsyncCfInterconnectsWithStreamingResponse: - def __init__(self, cf_interconnects: AsyncCfInterconnects) -> None: +class AsyncCfInterconnectsResourceWithStreamingResponse: + def __init__(self, cf_interconnects: AsyncCfInterconnectsResource) -> None: self._cf_interconnects = cf_interconnects self.update = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/magic_transit/gre_tunnels.py b/src/cloudflare/resources/magic_transit/gre_tunnels.py index 2c652156496..02f978ed886 100644 --- a/src/cloudflare/resources/magic_transit/gre_tunnels.py +++ b/src/cloudflare/resources/magic_transit/gre_tunnels.py @@ -35,17 +35,17 @@ from ...types.magic_transit.gre_tunnel_delete_response import GRETunnelDeleteResponse from ...types.magic_transit.gre_tunnel_update_response import GRETunnelUpdateResponse -__all__ = ["GRETunnels", "AsyncGRETunnels"] +__all__ = ["GRETunnelsResource", "AsyncGRETunnelsResource"] -class GRETunnels(SyncAPIResource): +class GRETunnelsResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> GRETunnelsWithRawResponse: - return GRETunnelsWithRawResponse(self) + def with_raw_response(self) -> GRETunnelsResourceWithRawResponse: + return GRETunnelsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> GRETunnelsWithStreamingResponse: - return GRETunnelsWithStreamingResponse(self) + def with_streaming_response(self) -> GRETunnelsResourceWithStreamingResponse: + return GRETunnelsResourceWithStreamingResponse(self) def create( self, @@ -307,14 +307,14 @@ def get( ) -class AsyncGRETunnels(AsyncAPIResource): +class AsyncGRETunnelsResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncGRETunnelsWithRawResponse: - return AsyncGRETunnelsWithRawResponse(self) + def with_raw_response(self) -> AsyncGRETunnelsResourceWithRawResponse: + return AsyncGRETunnelsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncGRETunnelsWithStreamingResponse: - return AsyncGRETunnelsWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncGRETunnelsResourceWithStreamingResponse: + return AsyncGRETunnelsResourceWithStreamingResponse(self) async def create( self, @@ -576,8 +576,8 @@ async def get( ) -class GRETunnelsWithRawResponse: - def __init__(self, gre_tunnels: GRETunnels) -> None: +class GRETunnelsResourceWithRawResponse: + def __init__(self, gre_tunnels: GRETunnelsResource) -> None: self._gre_tunnels = gre_tunnels self.create = to_raw_response_wrapper( @@ -597,8 +597,8 @@ def __init__(self, gre_tunnels: GRETunnels) -> None: ) -class AsyncGRETunnelsWithRawResponse: - def __init__(self, gre_tunnels: AsyncGRETunnels) -> None: +class AsyncGRETunnelsResourceWithRawResponse: + def __init__(self, gre_tunnels: AsyncGRETunnelsResource) -> None: self._gre_tunnels = gre_tunnels self.create = async_to_raw_response_wrapper( @@ -618,8 +618,8 @@ def __init__(self, gre_tunnels: AsyncGRETunnels) -> None: ) -class GRETunnelsWithStreamingResponse: - def __init__(self, gre_tunnels: GRETunnels) -> None: +class GRETunnelsResourceWithStreamingResponse: + def __init__(self, gre_tunnels: GRETunnelsResource) -> None: self._gre_tunnels = gre_tunnels self.create = to_streamed_response_wrapper( @@ -639,8 +639,8 @@ def __init__(self, gre_tunnels: GRETunnels) -> None: ) -class AsyncGRETunnelsWithStreamingResponse: - def __init__(self, gre_tunnels: AsyncGRETunnels) -> None: +class AsyncGRETunnelsResourceWithStreamingResponse: + def __init__(self, gre_tunnels: AsyncGRETunnelsResource) -> None: self._gre_tunnels = gre_tunnels self.create = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/magic_transit/ipsec_tunnels.py b/src/cloudflare/resources/magic_transit/ipsec_tunnels.py index 2e784ac0ec8..12c21e755d4 100644 --- a/src/cloudflare/resources/magic_transit/ipsec_tunnels.py +++ b/src/cloudflare/resources/magic_transit/ipsec_tunnels.py @@ -37,17 +37,17 @@ from ...types.magic_transit.ipsec_tunnel_update_response import IPSECTunnelUpdateResponse from ...types.magic_transit.ipsec_tunnel_psk_generate_response import IPSECTunnelPSKGenerateResponse -__all__ = ["IPSECTunnels", "AsyncIPSECTunnels"] +__all__ = ["IPSECTunnelsResource", "AsyncIPSECTunnelsResource"] -class IPSECTunnels(SyncAPIResource): +class IPSECTunnelsResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> IPSECTunnelsWithRawResponse: - return IPSECTunnelsWithRawResponse(self) + def with_raw_response(self) -> IPSECTunnelsResourceWithRawResponse: + return IPSECTunnelsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> IPSECTunnelsWithStreamingResponse: - return IPSECTunnelsWithStreamingResponse(self) + def with_streaming_response(self) -> IPSECTunnelsResourceWithStreamingResponse: + return IPSECTunnelsResourceWithStreamingResponse(self) def create( self, @@ -398,14 +398,14 @@ def psk_generate( ) -class AsyncIPSECTunnels(AsyncAPIResource): +class AsyncIPSECTunnelsResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncIPSECTunnelsWithRawResponse: - return AsyncIPSECTunnelsWithRawResponse(self) + def with_raw_response(self) -> AsyncIPSECTunnelsResourceWithRawResponse: + return AsyncIPSECTunnelsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncIPSECTunnelsWithStreamingResponse: - return AsyncIPSECTunnelsWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncIPSECTunnelsResourceWithStreamingResponse: + return AsyncIPSECTunnelsResourceWithStreamingResponse(self) async def create( self, @@ -756,8 +756,8 @@ async def psk_generate( ) -class IPSECTunnelsWithRawResponse: - def __init__(self, ipsec_tunnels: IPSECTunnels) -> None: +class IPSECTunnelsResourceWithRawResponse: + def __init__(self, ipsec_tunnels: IPSECTunnelsResource) -> None: self._ipsec_tunnels = ipsec_tunnels self.create = to_raw_response_wrapper( @@ -780,8 +780,8 @@ def __init__(self, ipsec_tunnels: IPSECTunnels) -> None: ) -class AsyncIPSECTunnelsWithRawResponse: - def __init__(self, ipsec_tunnels: AsyncIPSECTunnels) -> None: +class AsyncIPSECTunnelsResourceWithRawResponse: + def __init__(self, ipsec_tunnels: AsyncIPSECTunnelsResource) -> None: self._ipsec_tunnels = ipsec_tunnels self.create = async_to_raw_response_wrapper( @@ -804,8 +804,8 @@ def __init__(self, ipsec_tunnels: AsyncIPSECTunnels) -> None: ) -class IPSECTunnelsWithStreamingResponse: - def __init__(self, ipsec_tunnels: IPSECTunnels) -> None: +class IPSECTunnelsResourceWithStreamingResponse: + def __init__(self, ipsec_tunnels: IPSECTunnelsResource) -> None: self._ipsec_tunnels = ipsec_tunnels self.create = to_streamed_response_wrapper( @@ -828,8 +828,8 @@ def __init__(self, ipsec_tunnels: IPSECTunnels) -> None: ) -class AsyncIPSECTunnelsWithStreamingResponse: - def __init__(self, ipsec_tunnels: AsyncIPSECTunnels) -> None: +class AsyncIPSECTunnelsResourceWithStreamingResponse: + def __init__(self, ipsec_tunnels: AsyncIPSECTunnelsResource) -> None: self._ipsec_tunnels = ipsec_tunnels self.create = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/magic_transit/magic_transit.py b/src/cloudflare/resources/magic_transit/magic_transit.py index 5c6ad22503a..1cce72b3cfa 100644 --- a/src/cloudflare/resources/magic_transit/magic_transit.py +++ b/src/cloudflare/resources/magic_transit/magic_transit.py @@ -3,207 +3,207 @@ from __future__ import annotations from .sites import ( - Sites, - AsyncSites, - SitesWithRawResponse, - AsyncSitesWithRawResponse, - SitesWithStreamingResponse, - AsyncSitesWithStreamingResponse, + SitesResource, + AsyncSitesResource, + SitesResourceWithRawResponse, + AsyncSitesResourceWithRawResponse, + SitesResourceWithStreamingResponse, + AsyncSitesResourceWithStreamingResponse, ) from .routes import ( - Routes, - AsyncRoutes, - RoutesWithRawResponse, - AsyncRoutesWithRawResponse, - RoutesWithStreamingResponse, - AsyncRoutesWithStreamingResponse, + RoutesResource, + AsyncRoutesResource, + RoutesResourceWithRawResponse, + AsyncRoutesResourceWithRawResponse, + RoutesResourceWithStreamingResponse, + AsyncRoutesResourceWithStreamingResponse, ) from ..._compat import cached_property from ..._resource import SyncAPIResource, AsyncAPIResource from .gre_tunnels import ( - GRETunnels, - AsyncGRETunnels, - GRETunnelsWithRawResponse, - AsyncGRETunnelsWithRawResponse, - GRETunnelsWithStreamingResponse, - AsyncGRETunnelsWithStreamingResponse, + GRETunnelsResource, + AsyncGRETunnelsResource, + GRETunnelsResourceWithRawResponse, + AsyncGRETunnelsResourceWithRawResponse, + GRETunnelsResourceWithStreamingResponse, + AsyncGRETunnelsResourceWithStreamingResponse, ) -from .sites.sites import Sites, AsyncSites +from .sites.sites import SitesResource, AsyncSitesResource from .ipsec_tunnels import ( - IPSECTunnels, - AsyncIPSECTunnels, - IPSECTunnelsWithRawResponse, - AsyncIPSECTunnelsWithRawResponse, - IPSECTunnelsWithStreamingResponse, - AsyncIPSECTunnelsWithStreamingResponse, + IPSECTunnelsResource, + AsyncIPSECTunnelsResource, + IPSECTunnelsResourceWithRawResponse, + AsyncIPSECTunnelsResourceWithRawResponse, + IPSECTunnelsResourceWithStreamingResponse, + AsyncIPSECTunnelsResourceWithStreamingResponse, ) from .cf_interconnects import ( - CfInterconnects, - AsyncCfInterconnects, - CfInterconnectsWithRawResponse, - AsyncCfInterconnectsWithRawResponse, - CfInterconnectsWithStreamingResponse, - AsyncCfInterconnectsWithStreamingResponse, + CfInterconnectsResource, + AsyncCfInterconnectsResource, + CfInterconnectsResourceWithRawResponse, + AsyncCfInterconnectsResourceWithRawResponse, + CfInterconnectsResourceWithStreamingResponse, + AsyncCfInterconnectsResourceWithStreamingResponse, ) -__all__ = ["MagicTransit", "AsyncMagicTransit"] +__all__ = ["MagicTransitResource", "AsyncMagicTransitResource"] -class MagicTransit(SyncAPIResource): +class MagicTransitResource(SyncAPIResource): @cached_property - def cf_interconnects(self) -> CfInterconnects: - return CfInterconnects(self._client) + def cf_interconnects(self) -> CfInterconnectsResource: + return CfInterconnectsResource(self._client) @cached_property - def gre_tunnels(self) -> GRETunnels: - return GRETunnels(self._client) + def gre_tunnels(self) -> GRETunnelsResource: + return GRETunnelsResource(self._client) @cached_property - def ipsec_tunnels(self) -> IPSECTunnels: - return IPSECTunnels(self._client) + def ipsec_tunnels(self) -> IPSECTunnelsResource: + return IPSECTunnelsResource(self._client) @cached_property - def routes(self) -> Routes: - return Routes(self._client) + def routes(self) -> RoutesResource: + return RoutesResource(self._client) @cached_property - def sites(self) -> Sites: - return Sites(self._client) + def sites(self) -> SitesResource: + return SitesResource(self._client) @cached_property - def with_raw_response(self) -> MagicTransitWithRawResponse: - return MagicTransitWithRawResponse(self) + def with_raw_response(self) -> MagicTransitResourceWithRawResponse: + return MagicTransitResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> MagicTransitWithStreamingResponse: - return MagicTransitWithStreamingResponse(self) + def with_streaming_response(self) -> MagicTransitResourceWithStreamingResponse: + return MagicTransitResourceWithStreamingResponse(self) -class AsyncMagicTransit(AsyncAPIResource): +class AsyncMagicTransitResource(AsyncAPIResource): @cached_property - def cf_interconnects(self) -> AsyncCfInterconnects: - return AsyncCfInterconnects(self._client) + def cf_interconnects(self) -> AsyncCfInterconnectsResource: + return AsyncCfInterconnectsResource(self._client) @cached_property - def gre_tunnels(self) -> AsyncGRETunnels: - return AsyncGRETunnels(self._client) + def gre_tunnels(self) -> AsyncGRETunnelsResource: + return AsyncGRETunnelsResource(self._client) @cached_property - def ipsec_tunnels(self) -> AsyncIPSECTunnels: - return AsyncIPSECTunnels(self._client) + def ipsec_tunnels(self) -> AsyncIPSECTunnelsResource: + return AsyncIPSECTunnelsResource(self._client) @cached_property - def routes(self) -> AsyncRoutes: - return AsyncRoutes(self._client) + def routes(self) -> AsyncRoutesResource: + return AsyncRoutesResource(self._client) @cached_property - def sites(self) -> AsyncSites: - return AsyncSites(self._client) + def sites(self) -> AsyncSitesResource: + return AsyncSitesResource(self._client) @cached_property - def with_raw_response(self) -> AsyncMagicTransitWithRawResponse: - return AsyncMagicTransitWithRawResponse(self) + def with_raw_response(self) -> AsyncMagicTransitResourceWithRawResponse: + return AsyncMagicTransitResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncMagicTransitWithStreamingResponse: - return AsyncMagicTransitWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncMagicTransitResourceWithStreamingResponse: + return AsyncMagicTransitResourceWithStreamingResponse(self) -class MagicTransitWithRawResponse: - def __init__(self, magic_transit: MagicTransit) -> None: +class MagicTransitResourceWithRawResponse: + def __init__(self, magic_transit: MagicTransitResource) -> None: self._magic_transit = magic_transit @cached_property - def cf_interconnects(self) -> CfInterconnectsWithRawResponse: - return CfInterconnectsWithRawResponse(self._magic_transit.cf_interconnects) + def cf_interconnects(self) -> CfInterconnectsResourceWithRawResponse: + return CfInterconnectsResourceWithRawResponse(self._magic_transit.cf_interconnects) @cached_property - def gre_tunnels(self) -> GRETunnelsWithRawResponse: - return GRETunnelsWithRawResponse(self._magic_transit.gre_tunnels) + def gre_tunnels(self) -> GRETunnelsResourceWithRawResponse: + return GRETunnelsResourceWithRawResponse(self._magic_transit.gre_tunnels) @cached_property - def ipsec_tunnels(self) -> IPSECTunnelsWithRawResponse: - return IPSECTunnelsWithRawResponse(self._magic_transit.ipsec_tunnels) + def ipsec_tunnels(self) -> IPSECTunnelsResourceWithRawResponse: + return IPSECTunnelsResourceWithRawResponse(self._magic_transit.ipsec_tunnels) @cached_property - def routes(self) -> RoutesWithRawResponse: - return RoutesWithRawResponse(self._magic_transit.routes) + def routes(self) -> RoutesResourceWithRawResponse: + return RoutesResourceWithRawResponse(self._magic_transit.routes) @cached_property - def sites(self) -> SitesWithRawResponse: - return SitesWithRawResponse(self._magic_transit.sites) + def sites(self) -> SitesResourceWithRawResponse: + return SitesResourceWithRawResponse(self._magic_transit.sites) -class AsyncMagicTransitWithRawResponse: - def __init__(self, magic_transit: AsyncMagicTransit) -> None: +class AsyncMagicTransitResourceWithRawResponse: + def __init__(self, magic_transit: AsyncMagicTransitResource) -> None: self._magic_transit = magic_transit @cached_property - def cf_interconnects(self) -> AsyncCfInterconnectsWithRawResponse: - return AsyncCfInterconnectsWithRawResponse(self._magic_transit.cf_interconnects) + def cf_interconnects(self) -> AsyncCfInterconnectsResourceWithRawResponse: + return AsyncCfInterconnectsResourceWithRawResponse(self._magic_transit.cf_interconnects) @cached_property - def gre_tunnels(self) -> AsyncGRETunnelsWithRawResponse: - return AsyncGRETunnelsWithRawResponse(self._magic_transit.gre_tunnels) + def gre_tunnels(self) -> AsyncGRETunnelsResourceWithRawResponse: + return AsyncGRETunnelsResourceWithRawResponse(self._magic_transit.gre_tunnels) @cached_property - def ipsec_tunnels(self) -> AsyncIPSECTunnelsWithRawResponse: - return AsyncIPSECTunnelsWithRawResponse(self._magic_transit.ipsec_tunnels) + def ipsec_tunnels(self) -> AsyncIPSECTunnelsResourceWithRawResponse: + return AsyncIPSECTunnelsResourceWithRawResponse(self._magic_transit.ipsec_tunnels) @cached_property - def routes(self) -> AsyncRoutesWithRawResponse: - return AsyncRoutesWithRawResponse(self._magic_transit.routes) + def routes(self) -> AsyncRoutesResourceWithRawResponse: + return AsyncRoutesResourceWithRawResponse(self._magic_transit.routes) @cached_property - def sites(self) -> AsyncSitesWithRawResponse: - return AsyncSitesWithRawResponse(self._magic_transit.sites) + def sites(self) -> AsyncSitesResourceWithRawResponse: + return AsyncSitesResourceWithRawResponse(self._magic_transit.sites) -class MagicTransitWithStreamingResponse: - def __init__(self, magic_transit: MagicTransit) -> None: +class MagicTransitResourceWithStreamingResponse: + def __init__(self, magic_transit: MagicTransitResource) -> None: self._magic_transit = magic_transit @cached_property - def cf_interconnects(self) -> CfInterconnectsWithStreamingResponse: - return CfInterconnectsWithStreamingResponse(self._magic_transit.cf_interconnects) + def cf_interconnects(self) -> CfInterconnectsResourceWithStreamingResponse: + return CfInterconnectsResourceWithStreamingResponse(self._magic_transit.cf_interconnects) @cached_property - def gre_tunnels(self) -> GRETunnelsWithStreamingResponse: - return GRETunnelsWithStreamingResponse(self._magic_transit.gre_tunnels) + def gre_tunnels(self) -> GRETunnelsResourceWithStreamingResponse: + return GRETunnelsResourceWithStreamingResponse(self._magic_transit.gre_tunnels) @cached_property - def ipsec_tunnels(self) -> IPSECTunnelsWithStreamingResponse: - return IPSECTunnelsWithStreamingResponse(self._magic_transit.ipsec_tunnels) + def ipsec_tunnels(self) -> IPSECTunnelsResourceWithStreamingResponse: + return IPSECTunnelsResourceWithStreamingResponse(self._magic_transit.ipsec_tunnels) @cached_property - def routes(self) -> RoutesWithStreamingResponse: - return RoutesWithStreamingResponse(self._magic_transit.routes) + def routes(self) -> RoutesResourceWithStreamingResponse: + return RoutesResourceWithStreamingResponse(self._magic_transit.routes) @cached_property - def sites(self) -> SitesWithStreamingResponse: - return SitesWithStreamingResponse(self._magic_transit.sites) + def sites(self) -> SitesResourceWithStreamingResponse: + return SitesResourceWithStreamingResponse(self._magic_transit.sites) -class AsyncMagicTransitWithStreamingResponse: - def __init__(self, magic_transit: AsyncMagicTransit) -> None: +class AsyncMagicTransitResourceWithStreamingResponse: + def __init__(self, magic_transit: AsyncMagicTransitResource) -> None: self._magic_transit = magic_transit @cached_property - def cf_interconnects(self) -> AsyncCfInterconnectsWithStreamingResponse: - return AsyncCfInterconnectsWithStreamingResponse(self._magic_transit.cf_interconnects) + def cf_interconnects(self) -> AsyncCfInterconnectsResourceWithStreamingResponse: + return AsyncCfInterconnectsResourceWithStreamingResponse(self._magic_transit.cf_interconnects) @cached_property - def gre_tunnels(self) -> AsyncGRETunnelsWithStreamingResponse: - return AsyncGRETunnelsWithStreamingResponse(self._magic_transit.gre_tunnels) + def gre_tunnels(self) -> AsyncGRETunnelsResourceWithStreamingResponse: + return AsyncGRETunnelsResourceWithStreamingResponse(self._magic_transit.gre_tunnels) @cached_property - def ipsec_tunnels(self) -> AsyncIPSECTunnelsWithStreamingResponse: - return AsyncIPSECTunnelsWithStreamingResponse(self._magic_transit.ipsec_tunnels) + def ipsec_tunnels(self) -> AsyncIPSECTunnelsResourceWithStreamingResponse: + return AsyncIPSECTunnelsResourceWithStreamingResponse(self._magic_transit.ipsec_tunnels) @cached_property - def routes(self) -> AsyncRoutesWithStreamingResponse: - return AsyncRoutesWithStreamingResponse(self._magic_transit.routes) + def routes(self) -> AsyncRoutesResourceWithStreamingResponse: + return AsyncRoutesResourceWithStreamingResponse(self._magic_transit.routes) @cached_property - def sites(self) -> AsyncSitesWithStreamingResponse: - return AsyncSitesWithStreamingResponse(self._magic_transit.sites) + def sites(self) -> AsyncSitesResourceWithStreamingResponse: + return AsyncSitesResourceWithStreamingResponse(self._magic_transit.sites) diff --git a/src/cloudflare/resources/magic_transit/routes.py b/src/cloudflare/resources/magic_transit/routes.py index a1348dfa7fa..31cc36c643d 100644 --- a/src/cloudflare/resources/magic_transit/routes.py +++ b/src/cloudflare/resources/magic_transit/routes.py @@ -37,17 +37,17 @@ from ...types.magic_transit.route_delete_response import RouteDeleteResponse from ...types.magic_transit.route_update_response import RouteUpdateResponse -__all__ = ["Routes", "AsyncRoutes"] +__all__ = ["RoutesResource", "AsyncRoutesResource"] -class Routes(SyncAPIResource): +class RoutesResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> RoutesWithRawResponse: - return RoutesWithRawResponse(self) + def with_raw_response(self) -> RoutesResourceWithRawResponse: + return RoutesResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> RoutesWithStreamingResponse: - return RoutesWithStreamingResponse(self) + def with_streaming_response(self) -> RoutesResourceWithStreamingResponse: + return RoutesResourceWithStreamingResponse(self) def create( self, @@ -338,14 +338,14 @@ def get( ) -class AsyncRoutes(AsyncAPIResource): +class AsyncRoutesResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncRoutesWithRawResponse: - return AsyncRoutesWithRawResponse(self) + def with_raw_response(self) -> AsyncRoutesResourceWithRawResponse: + return AsyncRoutesResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncRoutesWithStreamingResponse: - return AsyncRoutesWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncRoutesResourceWithStreamingResponse: + return AsyncRoutesResourceWithStreamingResponse(self) async def create( self, @@ -636,8 +636,8 @@ async def get( ) -class RoutesWithRawResponse: - def __init__(self, routes: Routes) -> None: +class RoutesResourceWithRawResponse: + def __init__(self, routes: RoutesResource) -> None: self._routes = routes self.create = to_raw_response_wrapper( @@ -660,8 +660,8 @@ def __init__(self, routes: Routes) -> None: ) -class AsyncRoutesWithRawResponse: - def __init__(self, routes: AsyncRoutes) -> None: +class AsyncRoutesResourceWithRawResponse: + def __init__(self, routes: AsyncRoutesResource) -> None: self._routes = routes self.create = async_to_raw_response_wrapper( @@ -684,8 +684,8 @@ def __init__(self, routes: AsyncRoutes) -> None: ) -class RoutesWithStreamingResponse: - def __init__(self, routes: Routes) -> None: +class RoutesResourceWithStreamingResponse: + def __init__(self, routes: RoutesResource) -> None: self._routes = routes self.create = to_streamed_response_wrapper( @@ -708,8 +708,8 @@ def __init__(self, routes: Routes) -> None: ) -class AsyncRoutesWithStreamingResponse: - def __init__(self, routes: AsyncRoutes) -> None: +class AsyncRoutesResourceWithStreamingResponse: + def __init__(self, routes: AsyncRoutesResource) -> None: self._routes = routes self.create = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/magic_transit/sites/__init__.py b/src/cloudflare/resources/magic_transit/sites/__init__.py index 87b77022b76..8a2a07f48db 100644 --- a/src/cloudflare/resources/magic_transit/sites/__init__.py +++ b/src/cloudflare/resources/magic_transit/sites/__init__.py @@ -1,61 +1,61 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from .acls import ( - ACLs, - AsyncACLs, - ACLsWithRawResponse, - AsyncACLsWithRawResponse, - ACLsWithStreamingResponse, - AsyncACLsWithStreamingResponse, + ACLsResource, + AsyncACLsResource, + ACLsResourceWithRawResponse, + AsyncACLsResourceWithRawResponse, + ACLsResourceWithStreamingResponse, + AsyncACLsResourceWithStreamingResponse, ) from .lans import ( - LANs, - AsyncLANs, - LANsWithRawResponse, - AsyncLANsWithRawResponse, - LANsWithStreamingResponse, - AsyncLANsWithStreamingResponse, + LANsResource, + AsyncLANsResource, + LANsResourceWithRawResponse, + AsyncLANsResourceWithRawResponse, + LANsResourceWithStreamingResponse, + AsyncLANsResourceWithStreamingResponse, ) from .wans import ( - WANs, - AsyncWANs, - WANsWithRawResponse, - AsyncWANsWithRawResponse, - WANsWithStreamingResponse, - AsyncWANsWithStreamingResponse, + WANsResource, + AsyncWANsResource, + WANsResourceWithRawResponse, + AsyncWANsResourceWithRawResponse, + WANsResourceWithStreamingResponse, + AsyncWANsResourceWithStreamingResponse, ) from .sites import ( - Sites, - AsyncSites, - SitesWithRawResponse, - AsyncSitesWithRawResponse, - SitesWithStreamingResponse, - AsyncSitesWithStreamingResponse, + SitesResource, + AsyncSitesResource, + SitesResourceWithRawResponse, + AsyncSitesResourceWithRawResponse, + SitesResourceWithStreamingResponse, + AsyncSitesResourceWithStreamingResponse, ) __all__ = [ - "ACLs", - "AsyncACLs", - "ACLsWithRawResponse", - "AsyncACLsWithRawResponse", - "ACLsWithStreamingResponse", - "AsyncACLsWithStreamingResponse", - "LANs", - "AsyncLANs", - "LANsWithRawResponse", - "AsyncLANsWithRawResponse", - "LANsWithStreamingResponse", - "AsyncLANsWithStreamingResponse", - "WANs", - "AsyncWANs", - "WANsWithRawResponse", - "AsyncWANsWithRawResponse", - "WANsWithStreamingResponse", - "AsyncWANsWithStreamingResponse", - "Sites", - "AsyncSites", - "SitesWithRawResponse", - "AsyncSitesWithRawResponse", - "SitesWithStreamingResponse", - "AsyncSitesWithStreamingResponse", + "ACLsResource", + "AsyncACLsResource", + "ACLsResourceWithRawResponse", + "AsyncACLsResourceWithRawResponse", + "ACLsResourceWithStreamingResponse", + "AsyncACLsResourceWithStreamingResponse", + "LANsResource", + "AsyncLANsResource", + "LANsResourceWithRawResponse", + "AsyncLANsResourceWithRawResponse", + "LANsResourceWithStreamingResponse", + "AsyncLANsResourceWithStreamingResponse", + "WANsResource", + "AsyncWANsResource", + "WANsResourceWithRawResponse", + "AsyncWANsResourceWithRawResponse", + "WANsResourceWithStreamingResponse", + "AsyncWANsResourceWithStreamingResponse", + "SitesResource", + "AsyncSitesResource", + "SitesResourceWithRawResponse", + "AsyncSitesResourceWithRawResponse", + "SitesResourceWithStreamingResponse", + "AsyncSitesResourceWithStreamingResponse", ] diff --git a/src/cloudflare/resources/magic_transit/sites/acls.py b/src/cloudflare/resources/magic_transit/sites/acls.py index b403d40962e..a58dd7a33db 100644 --- a/src/cloudflare/resources/magic_transit/sites/acls.py +++ b/src/cloudflare/resources/magic_transit/sites/acls.py @@ -30,17 +30,17 @@ from ....types.magic_transit.sites.allowed_protocol import AllowedProtocol from ....types.magic_transit.sites.acl_configuration_param import ACLConfigurationParam -__all__ = ["ACLs", "AsyncACLs"] +__all__ = ["ACLsResource", "AsyncACLsResource"] -class ACLs(SyncAPIResource): +class ACLsResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> ACLsWithRawResponse: - return ACLsWithRawResponse(self) + def with_raw_response(self) -> ACLsResourceWithRawResponse: + return ACLsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> ACLsWithStreamingResponse: - return ACLsWithStreamingResponse(self) + def with_streaming_response(self) -> ACLsResourceWithStreamingResponse: + return ACLsResourceWithStreamingResponse(self) def create( self, @@ -329,14 +329,14 @@ def get( ) -class AsyncACLs(AsyncAPIResource): +class AsyncACLsResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncACLsWithRawResponse: - return AsyncACLsWithRawResponse(self) + def with_raw_response(self) -> AsyncACLsResourceWithRawResponse: + return AsyncACLsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncACLsWithStreamingResponse: - return AsyncACLsWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncACLsResourceWithStreamingResponse: + return AsyncACLsResourceWithStreamingResponse(self) async def create( self, @@ -625,8 +625,8 @@ async def get( ) -class ACLsWithRawResponse: - def __init__(self, acls: ACLs) -> None: +class ACLsResourceWithRawResponse: + def __init__(self, acls: ACLsResource) -> None: self._acls = acls self.create = to_raw_response_wrapper( @@ -646,8 +646,8 @@ def __init__(self, acls: ACLs) -> None: ) -class AsyncACLsWithRawResponse: - def __init__(self, acls: AsyncACLs) -> None: +class AsyncACLsResourceWithRawResponse: + def __init__(self, acls: AsyncACLsResource) -> None: self._acls = acls self.create = async_to_raw_response_wrapper( @@ -667,8 +667,8 @@ def __init__(self, acls: AsyncACLs) -> None: ) -class ACLsWithStreamingResponse: - def __init__(self, acls: ACLs) -> None: +class ACLsResourceWithStreamingResponse: + def __init__(self, acls: ACLsResource) -> None: self._acls = acls self.create = to_streamed_response_wrapper( @@ -688,8 +688,8 @@ def __init__(self, acls: ACLs) -> None: ) -class AsyncACLsWithStreamingResponse: - def __init__(self, acls: AsyncACLs) -> None: +class AsyncACLsResourceWithStreamingResponse: + def __init__(self, acls: AsyncACLsResource) -> None: self._acls = acls self.create = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/magic_transit/sites/lans.py b/src/cloudflare/resources/magic_transit/sites/lans.py index 12412367514..6eba19aed92 100644 --- a/src/cloudflare/resources/magic_transit/sites/lans.py +++ b/src/cloudflare/resources/magic_transit/sites/lans.py @@ -36,17 +36,17 @@ from ....types.magic_transit.sites.routed_subnet_param import RoutedSubnetParam from ....types.magic_transit.sites.lan_static_addressing_param import LANStaticAddressingParam -__all__ = ["LANs", "AsyncLANs"] +__all__ = ["LANsResource", "AsyncLANsResource"] -class LANs(SyncAPIResource): +class LANsResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> LANsWithRawResponse: - return LANsWithRawResponse(self) + def with_raw_response(self) -> LANsResourceWithRawResponse: + return LANsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> LANsWithStreamingResponse: - return LANsWithStreamingResponse(self) + def with_streaming_response(self) -> LANsResourceWithStreamingResponse: + return LANsResourceWithStreamingResponse(self) def create( self, @@ -336,14 +336,14 @@ def get( ) -class AsyncLANs(AsyncAPIResource): +class AsyncLANsResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncLANsWithRawResponse: - return AsyncLANsWithRawResponse(self) + def with_raw_response(self) -> AsyncLANsResourceWithRawResponse: + return AsyncLANsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncLANsWithStreamingResponse: - return AsyncLANsWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncLANsResourceWithStreamingResponse: + return AsyncLANsResourceWithStreamingResponse(self) async def create( self, @@ -633,8 +633,8 @@ async def get( ) -class LANsWithRawResponse: - def __init__(self, lans: LANs) -> None: +class LANsResourceWithRawResponse: + def __init__(self, lans: LANsResource) -> None: self._lans = lans self.create = to_raw_response_wrapper( @@ -654,8 +654,8 @@ def __init__(self, lans: LANs) -> None: ) -class AsyncLANsWithRawResponse: - def __init__(self, lans: AsyncLANs) -> None: +class AsyncLANsResourceWithRawResponse: + def __init__(self, lans: AsyncLANsResource) -> None: self._lans = lans self.create = async_to_raw_response_wrapper( @@ -675,8 +675,8 @@ def __init__(self, lans: AsyncLANs) -> None: ) -class LANsWithStreamingResponse: - def __init__(self, lans: LANs) -> None: +class LANsResourceWithStreamingResponse: + def __init__(self, lans: LANsResource) -> None: self._lans = lans self.create = to_streamed_response_wrapper( @@ -696,8 +696,8 @@ def __init__(self, lans: LANs) -> None: ) -class AsyncLANsWithStreamingResponse: - def __init__(self, lans: AsyncLANs) -> None: +class AsyncLANsResourceWithStreamingResponse: + def __init__(self, lans: AsyncLANsResource) -> None: self._lans = lans self.create = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/magic_transit/sites/sites.py b/src/cloudflare/resources/magic_transit/sites/sites.py index 8a585c53e65..fdb6388000c 100644 --- a/src/cloudflare/resources/magic_transit/sites/sites.py +++ b/src/cloudflare/resources/magic_transit/sites/sites.py @@ -7,28 +7,28 @@ import httpx from .acls import ( - ACLs, - AsyncACLs, - ACLsWithRawResponse, - AsyncACLsWithRawResponse, - ACLsWithStreamingResponse, - AsyncACLsWithStreamingResponse, + ACLsResource, + AsyncACLsResource, + ACLsResourceWithRawResponse, + AsyncACLsResourceWithRawResponse, + ACLsResourceWithStreamingResponse, + AsyncACLsResourceWithStreamingResponse, ) from .lans import ( - LANs, - AsyncLANs, - LANsWithRawResponse, - AsyncLANsWithRawResponse, - LANsWithStreamingResponse, - AsyncLANsWithStreamingResponse, + LANsResource, + AsyncLANsResource, + LANsResourceWithRawResponse, + AsyncLANsResourceWithRawResponse, + LANsResourceWithStreamingResponse, + AsyncLANsResourceWithStreamingResponse, ) from .wans import ( - WANs, - AsyncWANs, - WANsWithRawResponse, - AsyncWANsWithRawResponse, - WANsWithStreamingResponse, - AsyncWANsWithStreamingResponse, + WANsResource, + AsyncWANsResource, + WANsResourceWithRawResponse, + AsyncWANsResourceWithRawResponse, + WANsResourceWithStreamingResponse, + AsyncWANsResourceWithStreamingResponse, ) from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven from ...._utils import ( @@ -58,29 +58,29 @@ from ....types.magic_transit.site import Site from ....types.magic_transit.site_location_param import SiteLocationParam -__all__ = ["Sites", "AsyncSites"] +__all__ = ["SitesResource", "AsyncSitesResource"] -class Sites(SyncAPIResource): +class SitesResource(SyncAPIResource): @cached_property - def acls(self) -> ACLs: - return ACLs(self._client) + def acls(self) -> ACLsResource: + return ACLsResource(self._client) @cached_property - def lans(self) -> LANs: - return LANs(self._client) + def lans(self) -> LANsResource: + return LANsResource(self._client) @cached_property - def wans(self) -> WANs: - return WANs(self._client) + def wans(self) -> WANsResource: + return WANsResource(self._client) @cached_property - def with_raw_response(self) -> SitesWithRawResponse: - return SitesWithRawResponse(self) + def with_raw_response(self) -> SitesResourceWithRawResponse: + return SitesResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> SitesWithStreamingResponse: - return SitesWithStreamingResponse(self) + def with_streaming_response(self) -> SitesResourceWithStreamingResponse: + return SitesResourceWithStreamingResponse(self) def create( self, @@ -353,26 +353,26 @@ def get( ) -class AsyncSites(AsyncAPIResource): +class AsyncSitesResource(AsyncAPIResource): @cached_property - def acls(self) -> AsyncACLs: - return AsyncACLs(self._client) + def acls(self) -> AsyncACLsResource: + return AsyncACLsResource(self._client) @cached_property - def lans(self) -> AsyncLANs: - return AsyncLANs(self._client) + def lans(self) -> AsyncLANsResource: + return AsyncLANsResource(self._client) @cached_property - def wans(self) -> AsyncWANs: - return AsyncWANs(self._client) + def wans(self) -> AsyncWANsResource: + return AsyncWANsResource(self._client) @cached_property - def with_raw_response(self) -> AsyncSitesWithRawResponse: - return AsyncSitesWithRawResponse(self) + def with_raw_response(self) -> AsyncSitesResourceWithRawResponse: + return AsyncSitesResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncSitesWithStreamingResponse: - return AsyncSitesWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncSitesResourceWithStreamingResponse: + return AsyncSitesResourceWithStreamingResponse(self) async def create( self, @@ -645,8 +645,8 @@ async def get( ) -class SitesWithRawResponse: - def __init__(self, sites: Sites) -> None: +class SitesResourceWithRawResponse: + def __init__(self, sites: SitesResource) -> None: self._sites = sites self.create = to_raw_response_wrapper( @@ -666,20 +666,20 @@ def __init__(self, sites: Sites) -> None: ) @cached_property - def acls(self) -> ACLsWithRawResponse: - return ACLsWithRawResponse(self._sites.acls) + def acls(self) -> ACLsResourceWithRawResponse: + return ACLsResourceWithRawResponse(self._sites.acls) @cached_property - def lans(self) -> LANsWithRawResponse: - return LANsWithRawResponse(self._sites.lans) + def lans(self) -> LANsResourceWithRawResponse: + return LANsResourceWithRawResponse(self._sites.lans) @cached_property - def wans(self) -> WANsWithRawResponse: - return WANsWithRawResponse(self._sites.wans) + def wans(self) -> WANsResourceWithRawResponse: + return WANsResourceWithRawResponse(self._sites.wans) -class AsyncSitesWithRawResponse: - def __init__(self, sites: AsyncSites) -> None: +class AsyncSitesResourceWithRawResponse: + def __init__(self, sites: AsyncSitesResource) -> None: self._sites = sites self.create = async_to_raw_response_wrapper( @@ -699,20 +699,20 @@ def __init__(self, sites: AsyncSites) -> None: ) @cached_property - def acls(self) -> AsyncACLsWithRawResponse: - return AsyncACLsWithRawResponse(self._sites.acls) + def acls(self) -> AsyncACLsResourceWithRawResponse: + return AsyncACLsResourceWithRawResponse(self._sites.acls) @cached_property - def lans(self) -> AsyncLANsWithRawResponse: - return AsyncLANsWithRawResponse(self._sites.lans) + def lans(self) -> AsyncLANsResourceWithRawResponse: + return AsyncLANsResourceWithRawResponse(self._sites.lans) @cached_property - def wans(self) -> AsyncWANsWithRawResponse: - return AsyncWANsWithRawResponse(self._sites.wans) + def wans(self) -> AsyncWANsResourceWithRawResponse: + return AsyncWANsResourceWithRawResponse(self._sites.wans) -class SitesWithStreamingResponse: - def __init__(self, sites: Sites) -> None: +class SitesResourceWithStreamingResponse: + def __init__(self, sites: SitesResource) -> None: self._sites = sites self.create = to_streamed_response_wrapper( @@ -732,20 +732,20 @@ def __init__(self, sites: Sites) -> None: ) @cached_property - def acls(self) -> ACLsWithStreamingResponse: - return ACLsWithStreamingResponse(self._sites.acls) + def acls(self) -> ACLsResourceWithStreamingResponse: + return ACLsResourceWithStreamingResponse(self._sites.acls) @cached_property - def lans(self) -> LANsWithStreamingResponse: - return LANsWithStreamingResponse(self._sites.lans) + def lans(self) -> LANsResourceWithStreamingResponse: + return LANsResourceWithStreamingResponse(self._sites.lans) @cached_property - def wans(self) -> WANsWithStreamingResponse: - return WANsWithStreamingResponse(self._sites.wans) + def wans(self) -> WANsResourceWithStreamingResponse: + return WANsResourceWithStreamingResponse(self._sites.wans) -class AsyncSitesWithStreamingResponse: - def __init__(self, sites: AsyncSites) -> None: +class AsyncSitesResourceWithStreamingResponse: + def __init__(self, sites: AsyncSitesResource) -> None: self._sites = sites self.create = async_to_streamed_response_wrapper( @@ -765,13 +765,13 @@ def __init__(self, sites: AsyncSites) -> None: ) @cached_property - def acls(self) -> AsyncACLsWithStreamingResponse: - return AsyncACLsWithStreamingResponse(self._sites.acls) + def acls(self) -> AsyncACLsResourceWithStreamingResponse: + return AsyncACLsResourceWithStreamingResponse(self._sites.acls) @cached_property - def lans(self) -> AsyncLANsWithStreamingResponse: - return AsyncLANsWithStreamingResponse(self._sites.lans) + def lans(self) -> AsyncLANsResourceWithStreamingResponse: + return AsyncLANsResourceWithStreamingResponse(self._sites.lans) @cached_property - def wans(self) -> AsyncWANsWithStreamingResponse: - return AsyncWANsWithStreamingResponse(self._sites.wans) + def wans(self) -> AsyncWANsResourceWithStreamingResponse: + return AsyncWANsResourceWithStreamingResponse(self._sites.wans) diff --git a/src/cloudflare/resources/magic_transit/sites/wans.py b/src/cloudflare/resources/magic_transit/sites/wans.py index 023cd6afced..36a1cecd8b3 100644 --- a/src/cloudflare/resources/magic_transit/sites/wans.py +++ b/src/cloudflare/resources/magic_transit/sites/wans.py @@ -30,17 +30,17 @@ from ....types.magic_transit.sites.wan_create_response import WANCreateResponse from ....types.magic_transit.sites.wan_static_addressing_param import WANStaticAddressingParam -__all__ = ["WANs", "AsyncWANs"] +__all__ = ["WANsResource", "AsyncWANsResource"] -class WANs(SyncAPIResource): +class WANsResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> WANsWithRawResponse: - return WANsWithRawResponse(self) + def with_raw_response(self) -> WANsResourceWithRawResponse: + return WANsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> WANsWithStreamingResponse: - return WANsWithStreamingResponse(self) + def with_streaming_response(self) -> WANsResourceWithStreamingResponse: + return WANsResourceWithStreamingResponse(self) def create( self, @@ -317,14 +317,14 @@ def get( ) -class AsyncWANs(AsyncAPIResource): +class AsyncWANsResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncWANsWithRawResponse: - return AsyncWANsWithRawResponse(self) + def with_raw_response(self) -> AsyncWANsResourceWithRawResponse: + return AsyncWANsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncWANsWithStreamingResponse: - return AsyncWANsWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncWANsResourceWithStreamingResponse: + return AsyncWANsResourceWithStreamingResponse(self) async def create( self, @@ -601,8 +601,8 @@ async def get( ) -class WANsWithRawResponse: - def __init__(self, wans: WANs) -> None: +class WANsResourceWithRawResponse: + def __init__(self, wans: WANsResource) -> None: self._wans = wans self.create = to_raw_response_wrapper( @@ -622,8 +622,8 @@ def __init__(self, wans: WANs) -> None: ) -class AsyncWANsWithRawResponse: - def __init__(self, wans: AsyncWANs) -> None: +class AsyncWANsResourceWithRawResponse: + def __init__(self, wans: AsyncWANsResource) -> None: self._wans = wans self.create = async_to_raw_response_wrapper( @@ -643,8 +643,8 @@ def __init__(self, wans: AsyncWANs) -> None: ) -class WANsWithStreamingResponse: - def __init__(self, wans: WANs) -> None: +class WANsResourceWithStreamingResponse: + def __init__(self, wans: WANsResource) -> None: self._wans = wans self.create = to_streamed_response_wrapper( @@ -664,8 +664,8 @@ def __init__(self, wans: WANs) -> None: ) -class AsyncWANsWithStreamingResponse: - def __init__(self, wans: AsyncWANs) -> None: +class AsyncWANsResourceWithStreamingResponse: + def __init__(self, wans: AsyncWANsResource) -> None: self._wans = wans self.create = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/managed_headers.py b/src/cloudflare/resources/managed_headers.py index dd3f4803ae2..345adb7d6e5 100644 --- a/src/cloudflare/resources/managed_headers.py +++ b/src/cloudflare/resources/managed_headers.py @@ -27,17 +27,17 @@ from ..types.managed_headers.managed_header_edit_response import ManagedHeaderEditResponse from ..types.managed_headers.managed_header_list_response import ManagedHeaderListResponse -__all__ = ["ManagedHeaders", "AsyncManagedHeaders"] +__all__ = ["ManagedHeadersResource", "AsyncManagedHeadersResource"] -class ManagedHeaders(SyncAPIResource): +class ManagedHeadersResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> ManagedHeadersWithRawResponse: - return ManagedHeadersWithRawResponse(self) + def with_raw_response(self) -> ManagedHeadersResourceWithRawResponse: + return ManagedHeadersResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> ManagedHeadersWithStreamingResponse: - return ManagedHeadersWithStreamingResponse(self) + def with_streaming_response(self) -> ManagedHeadersResourceWithStreamingResponse: + return ManagedHeadersResourceWithStreamingResponse(self) def list( self, @@ -119,14 +119,14 @@ def edit( ) -class AsyncManagedHeaders(AsyncAPIResource): +class AsyncManagedHeadersResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncManagedHeadersWithRawResponse: - return AsyncManagedHeadersWithRawResponse(self) + def with_raw_response(self) -> AsyncManagedHeadersResourceWithRawResponse: + return AsyncManagedHeadersResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncManagedHeadersWithStreamingResponse: - return AsyncManagedHeadersWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncManagedHeadersResourceWithStreamingResponse: + return AsyncManagedHeadersResourceWithStreamingResponse(self) async def list( self, @@ -208,8 +208,8 @@ async def edit( ) -class ManagedHeadersWithRawResponse: - def __init__(self, managed_headers: ManagedHeaders) -> None: +class ManagedHeadersResourceWithRawResponse: + def __init__(self, managed_headers: ManagedHeadersResource) -> None: self._managed_headers = managed_headers self.list = to_raw_response_wrapper( @@ -220,8 +220,8 @@ def __init__(self, managed_headers: ManagedHeaders) -> None: ) -class AsyncManagedHeadersWithRawResponse: - def __init__(self, managed_headers: AsyncManagedHeaders) -> None: +class AsyncManagedHeadersResourceWithRawResponse: + def __init__(self, managed_headers: AsyncManagedHeadersResource) -> None: self._managed_headers = managed_headers self.list = async_to_raw_response_wrapper( @@ -232,8 +232,8 @@ def __init__(self, managed_headers: AsyncManagedHeaders) -> None: ) -class ManagedHeadersWithStreamingResponse: - def __init__(self, managed_headers: ManagedHeaders) -> None: +class ManagedHeadersResourceWithStreamingResponse: + def __init__(self, managed_headers: ManagedHeadersResource) -> None: self._managed_headers = managed_headers self.list = to_streamed_response_wrapper( @@ -244,8 +244,8 @@ def __init__(self, managed_headers: ManagedHeaders) -> None: ) -class AsyncManagedHeadersWithStreamingResponse: - def __init__(self, managed_headers: AsyncManagedHeaders) -> None: +class AsyncManagedHeadersResourceWithStreamingResponse: + def __init__(self, managed_headers: AsyncManagedHeadersResource) -> None: self._managed_headers = managed_headers self.list = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/memberships.py b/src/cloudflare/resources/memberships.py index 90fe5a2cd56..81efde2394b 100644 --- a/src/cloudflare/resources/memberships.py +++ b/src/cloudflare/resources/memberships.py @@ -32,17 +32,17 @@ from ..types.memberships.membership_delete_response import MembershipDeleteResponse from ..types.memberships.membership_update_response import MembershipUpdateResponse -__all__ = ["Memberships", "AsyncMemberships"] +__all__ = ["MembershipsResource", "AsyncMembershipsResource"] -class Memberships(SyncAPIResource): +class MembershipsResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> MembershipsWithRawResponse: - return MembershipsWithRawResponse(self) + def with_raw_response(self) -> MembershipsResourceWithRawResponse: + return MembershipsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> MembershipsWithStreamingResponse: - return MembershipsWithStreamingResponse(self) + def with_streaming_response(self) -> MembershipsResourceWithStreamingResponse: + return MembershipsResourceWithStreamingResponse(self) def update( self, @@ -243,14 +243,14 @@ def get( ) -class AsyncMemberships(AsyncAPIResource): +class AsyncMembershipsResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncMembershipsWithRawResponse: - return AsyncMembershipsWithRawResponse(self) + def with_raw_response(self) -> AsyncMembershipsResourceWithRawResponse: + return AsyncMembershipsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncMembershipsWithStreamingResponse: - return AsyncMembershipsWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncMembershipsResourceWithStreamingResponse: + return AsyncMembershipsResourceWithStreamingResponse(self) async def update( self, @@ -451,8 +451,8 @@ async def get( ) -class MembershipsWithRawResponse: - def __init__(self, memberships: Memberships) -> None: +class MembershipsResourceWithRawResponse: + def __init__(self, memberships: MembershipsResource) -> None: self._memberships = memberships self.update = to_raw_response_wrapper( @@ -469,8 +469,8 @@ def __init__(self, memberships: Memberships) -> None: ) -class AsyncMembershipsWithRawResponse: - def __init__(self, memberships: AsyncMemberships) -> None: +class AsyncMembershipsResourceWithRawResponse: + def __init__(self, memberships: AsyncMembershipsResource) -> None: self._memberships = memberships self.update = async_to_raw_response_wrapper( @@ -487,8 +487,8 @@ def __init__(self, memberships: AsyncMemberships) -> None: ) -class MembershipsWithStreamingResponse: - def __init__(self, memberships: Memberships) -> None: +class MembershipsResourceWithStreamingResponse: + def __init__(self, memberships: MembershipsResource) -> None: self._memberships = memberships self.update = to_streamed_response_wrapper( @@ -505,8 +505,8 @@ def __init__(self, memberships: Memberships) -> None: ) -class AsyncMembershipsWithStreamingResponse: - def __init__(self, memberships: AsyncMemberships) -> None: +class AsyncMembershipsResourceWithStreamingResponse: + def __init__(self, memberships: AsyncMembershipsResource) -> None: self._memberships = memberships self.update = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/mtls_certificates/__init__.py b/src/cloudflare/resources/mtls_certificates/__init__.py index ea427828828..f149d9bd299 100644 --- a/src/cloudflare/resources/mtls_certificates/__init__.py +++ b/src/cloudflare/resources/mtls_certificates/__init__.py @@ -1,33 +1,33 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from .associations import ( - Associations, - AsyncAssociations, - AssociationsWithRawResponse, - AsyncAssociationsWithRawResponse, - AssociationsWithStreamingResponse, - AsyncAssociationsWithStreamingResponse, + AssociationsResource, + AsyncAssociationsResource, + AssociationsResourceWithRawResponse, + AsyncAssociationsResourceWithRawResponse, + AssociationsResourceWithStreamingResponse, + AsyncAssociationsResourceWithStreamingResponse, ) from .mtls_certificates import ( - MTLSCertificates, - AsyncMTLSCertificates, - MTLSCertificatesWithRawResponse, - AsyncMTLSCertificatesWithRawResponse, - MTLSCertificatesWithStreamingResponse, - AsyncMTLSCertificatesWithStreamingResponse, + MTLSCertificatesResource, + AsyncMTLSCertificatesResource, + MTLSCertificatesResourceWithRawResponse, + AsyncMTLSCertificatesResourceWithRawResponse, + MTLSCertificatesResourceWithStreamingResponse, + AsyncMTLSCertificatesResourceWithStreamingResponse, ) __all__ = [ - "Associations", - "AsyncAssociations", - "AssociationsWithRawResponse", - "AsyncAssociationsWithRawResponse", - "AssociationsWithStreamingResponse", - "AsyncAssociationsWithStreamingResponse", - "MTLSCertificates", - "AsyncMTLSCertificates", - "MTLSCertificatesWithRawResponse", - "AsyncMTLSCertificatesWithRawResponse", - "MTLSCertificatesWithStreamingResponse", - "AsyncMTLSCertificatesWithStreamingResponse", + "AssociationsResource", + "AsyncAssociationsResource", + "AssociationsResourceWithRawResponse", + "AsyncAssociationsResourceWithRawResponse", + "AssociationsResourceWithStreamingResponse", + "AsyncAssociationsResourceWithStreamingResponse", + "MTLSCertificatesResource", + "AsyncMTLSCertificatesResource", + "MTLSCertificatesResourceWithRawResponse", + "AsyncMTLSCertificatesResourceWithRawResponse", + "MTLSCertificatesResourceWithStreamingResponse", + "AsyncMTLSCertificatesResourceWithStreamingResponse", ] diff --git a/src/cloudflare/resources/mtls_certificates/associations.py b/src/cloudflare/resources/mtls_certificates/associations.py index 0fc419285c6..bd3fcd1f7dc 100644 --- a/src/cloudflare/resources/mtls_certificates/associations.py +++ b/src/cloudflare/resources/mtls_certificates/associations.py @@ -21,17 +21,17 @@ ) from ...types.mtls_certificates.association_get_response import AssociationGetResponse -__all__ = ["Associations", "AsyncAssociations"] +__all__ = ["AssociationsResource", "AsyncAssociationsResource"] -class Associations(SyncAPIResource): +class AssociationsResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> AssociationsWithRawResponse: - return AssociationsWithRawResponse(self) + def with_raw_response(self) -> AssociationsResourceWithRawResponse: + return AssociationsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AssociationsWithStreamingResponse: - return AssociationsWithStreamingResponse(self) + def with_streaming_response(self) -> AssociationsResourceWithStreamingResponse: + return AssociationsResourceWithStreamingResponse(self) def get( self, @@ -80,14 +80,14 @@ def get( ) -class AsyncAssociations(AsyncAPIResource): +class AsyncAssociationsResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncAssociationsWithRawResponse: - return AsyncAssociationsWithRawResponse(self) + def with_raw_response(self) -> AsyncAssociationsResourceWithRawResponse: + return AsyncAssociationsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncAssociationsWithStreamingResponse: - return AsyncAssociationsWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncAssociationsResourceWithStreamingResponse: + return AsyncAssociationsResourceWithStreamingResponse(self) async def get( self, @@ -136,8 +136,8 @@ async def get( ) -class AssociationsWithRawResponse: - def __init__(self, associations: Associations) -> None: +class AssociationsResourceWithRawResponse: + def __init__(self, associations: AssociationsResource) -> None: self._associations = associations self.get = to_raw_response_wrapper( @@ -145,8 +145,8 @@ def __init__(self, associations: Associations) -> None: ) -class AsyncAssociationsWithRawResponse: - def __init__(self, associations: AsyncAssociations) -> None: +class AsyncAssociationsResourceWithRawResponse: + def __init__(self, associations: AsyncAssociationsResource) -> None: self._associations = associations self.get = async_to_raw_response_wrapper( @@ -154,8 +154,8 @@ def __init__(self, associations: AsyncAssociations) -> None: ) -class AssociationsWithStreamingResponse: - def __init__(self, associations: Associations) -> None: +class AssociationsResourceWithStreamingResponse: + def __init__(self, associations: AssociationsResource) -> None: self._associations = associations self.get = to_streamed_response_wrapper( @@ -163,8 +163,8 @@ def __init__(self, associations: Associations) -> None: ) -class AsyncAssociationsWithStreamingResponse: - def __init__(self, associations: AsyncAssociations) -> None: +class AsyncAssociationsResourceWithStreamingResponse: + def __init__(self, associations: AsyncAssociationsResource) -> None: self._associations = associations self.get = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/mtls_certificates/mtls_certificates.py b/src/cloudflare/resources/mtls_certificates/mtls_certificates.py index 4eaca16dc88..c5da4fc9b8e 100644 --- a/src/cloudflare/resources/mtls_certificates/mtls_certificates.py +++ b/src/cloudflare/resources/mtls_certificates/mtls_certificates.py @@ -22,12 +22,12 @@ from ..._wrappers import ResultWrapper from ...pagination import SyncSinglePage, AsyncSinglePage from .associations import ( - Associations, - AsyncAssociations, - AssociationsWithRawResponse, - AsyncAssociationsWithRawResponse, - AssociationsWithStreamingResponse, - AsyncAssociationsWithStreamingResponse, + AssociationsResource, + AsyncAssociationsResource, + AssociationsResourceWithRawResponse, + AsyncAssociationsResourceWithRawResponse, + AssociationsResourceWithStreamingResponse, + AsyncAssociationsResourceWithStreamingResponse, ) from ..._base_client import ( AsyncPaginator, @@ -37,21 +37,21 @@ from ...types.mtls_certificates.mtls_certificate import MTLSCertificate from ...types.mtls_certificates.mtls_certificate_create_response import MTLSCertificateCreateResponse -__all__ = ["MTLSCertificates", "AsyncMTLSCertificates"] +__all__ = ["MTLSCertificatesResource", "AsyncMTLSCertificatesResource"] -class MTLSCertificates(SyncAPIResource): +class MTLSCertificatesResource(SyncAPIResource): @cached_property - def associations(self) -> Associations: - return Associations(self._client) + def associations(self) -> AssociationsResource: + return AssociationsResource(self._client) @cached_property - def with_raw_response(self) -> MTLSCertificatesWithRawResponse: - return MTLSCertificatesWithRawResponse(self) + def with_raw_response(self) -> MTLSCertificatesResourceWithRawResponse: + return MTLSCertificatesResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> MTLSCertificatesWithStreamingResponse: - return MTLSCertificatesWithStreamingResponse(self) + def with_streaming_response(self) -> MTLSCertificatesResourceWithStreamingResponse: + return MTLSCertificatesResourceWithStreamingResponse(self) def create( self, @@ -245,18 +245,18 @@ def get( ) -class AsyncMTLSCertificates(AsyncAPIResource): +class AsyncMTLSCertificatesResource(AsyncAPIResource): @cached_property - def associations(self) -> AsyncAssociations: - return AsyncAssociations(self._client) + def associations(self) -> AsyncAssociationsResource: + return AsyncAssociationsResource(self._client) @cached_property - def with_raw_response(self) -> AsyncMTLSCertificatesWithRawResponse: - return AsyncMTLSCertificatesWithRawResponse(self) + def with_raw_response(self) -> AsyncMTLSCertificatesResourceWithRawResponse: + return AsyncMTLSCertificatesResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncMTLSCertificatesWithStreamingResponse: - return AsyncMTLSCertificatesWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncMTLSCertificatesResourceWithStreamingResponse: + return AsyncMTLSCertificatesResourceWithStreamingResponse(self) async def create( self, @@ -450,8 +450,8 @@ async def get( ) -class MTLSCertificatesWithRawResponse: - def __init__(self, mtls_certificates: MTLSCertificates) -> None: +class MTLSCertificatesResourceWithRawResponse: + def __init__(self, mtls_certificates: MTLSCertificatesResource) -> None: self._mtls_certificates = mtls_certificates self.create = to_raw_response_wrapper( @@ -468,12 +468,12 @@ def __init__(self, mtls_certificates: MTLSCertificates) -> None: ) @cached_property - def associations(self) -> AssociationsWithRawResponse: - return AssociationsWithRawResponse(self._mtls_certificates.associations) + def associations(self) -> AssociationsResourceWithRawResponse: + return AssociationsResourceWithRawResponse(self._mtls_certificates.associations) -class AsyncMTLSCertificatesWithRawResponse: - def __init__(self, mtls_certificates: AsyncMTLSCertificates) -> None: +class AsyncMTLSCertificatesResourceWithRawResponse: + def __init__(self, mtls_certificates: AsyncMTLSCertificatesResource) -> None: self._mtls_certificates = mtls_certificates self.create = async_to_raw_response_wrapper( @@ -490,12 +490,12 @@ def __init__(self, mtls_certificates: AsyncMTLSCertificates) -> None: ) @cached_property - def associations(self) -> AsyncAssociationsWithRawResponse: - return AsyncAssociationsWithRawResponse(self._mtls_certificates.associations) + def associations(self) -> AsyncAssociationsResourceWithRawResponse: + return AsyncAssociationsResourceWithRawResponse(self._mtls_certificates.associations) -class MTLSCertificatesWithStreamingResponse: - def __init__(self, mtls_certificates: MTLSCertificates) -> None: +class MTLSCertificatesResourceWithStreamingResponse: + def __init__(self, mtls_certificates: MTLSCertificatesResource) -> None: self._mtls_certificates = mtls_certificates self.create = to_streamed_response_wrapper( @@ -512,12 +512,12 @@ def __init__(self, mtls_certificates: MTLSCertificates) -> None: ) @cached_property - def associations(self) -> AssociationsWithStreamingResponse: - return AssociationsWithStreamingResponse(self._mtls_certificates.associations) + def associations(self) -> AssociationsResourceWithStreamingResponse: + return AssociationsResourceWithStreamingResponse(self._mtls_certificates.associations) -class AsyncMTLSCertificatesWithStreamingResponse: - def __init__(self, mtls_certificates: AsyncMTLSCertificates) -> None: +class AsyncMTLSCertificatesResourceWithStreamingResponse: + def __init__(self, mtls_certificates: AsyncMTLSCertificatesResource) -> None: self._mtls_certificates = mtls_certificates self.create = async_to_streamed_response_wrapper( @@ -534,5 +534,5 @@ def __init__(self, mtls_certificates: AsyncMTLSCertificates) -> None: ) @cached_property - def associations(self) -> AsyncAssociationsWithStreamingResponse: - return AsyncAssociationsWithStreamingResponse(self._mtls_certificates.associations) + def associations(self) -> AsyncAssociationsResourceWithStreamingResponse: + return AsyncAssociationsResourceWithStreamingResponse(self._mtls_certificates.associations) diff --git a/src/cloudflare/resources/origin_ca_certificates.py b/src/cloudflare/resources/origin_ca_certificates.py index 7904201c477..1ffdea60be4 100644 --- a/src/cloudflare/resources/origin_ca_certificates.py +++ b/src/cloudflare/resources/origin_ca_certificates.py @@ -36,17 +36,17 @@ from ..types.origin_ca_certificates.origin_ca_certificate_create_response import OriginCACertificateCreateResponse from ..types.origin_ca_certificates.origin_ca_certificate_delete_response import OriginCACertificateDeleteResponse -__all__ = ["OriginCACertificates", "AsyncOriginCACertificates"] +__all__ = ["OriginCACertificatesResource", "AsyncOriginCACertificatesResource"] -class OriginCACertificates(SyncAPIResource): +class OriginCACertificatesResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> OriginCACertificatesWithRawResponse: - return OriginCACertificatesWithRawResponse(self) + def with_raw_response(self) -> OriginCACertificatesResourceWithRawResponse: + return OriginCACertificatesResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> OriginCACertificatesWithStreamingResponse: - return OriginCACertificatesWithStreamingResponse(self) + def with_streaming_response(self) -> OriginCACertificatesResourceWithStreamingResponse: + return OriginCACertificatesResourceWithStreamingResponse(self) def create( self, @@ -247,14 +247,14 @@ def get( ) -class AsyncOriginCACertificates(AsyncAPIResource): +class AsyncOriginCACertificatesResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncOriginCACertificatesWithRawResponse: - return AsyncOriginCACertificatesWithRawResponse(self) + def with_raw_response(self) -> AsyncOriginCACertificatesResourceWithRawResponse: + return AsyncOriginCACertificatesResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncOriginCACertificatesWithStreamingResponse: - return AsyncOriginCACertificatesWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncOriginCACertificatesResourceWithStreamingResponse: + return AsyncOriginCACertificatesResourceWithStreamingResponse(self) async def create( self, @@ -455,8 +455,8 @@ async def get( ) -class OriginCACertificatesWithRawResponse: - def __init__(self, origin_ca_certificates: OriginCACertificates) -> None: +class OriginCACertificatesResourceWithRawResponse: + def __init__(self, origin_ca_certificates: OriginCACertificatesResource) -> None: self._origin_ca_certificates = origin_ca_certificates self.create = to_raw_response_wrapper( @@ -473,8 +473,8 @@ def __init__(self, origin_ca_certificates: OriginCACertificates) -> None: ) -class AsyncOriginCACertificatesWithRawResponse: - def __init__(self, origin_ca_certificates: AsyncOriginCACertificates) -> None: +class AsyncOriginCACertificatesResourceWithRawResponse: + def __init__(self, origin_ca_certificates: AsyncOriginCACertificatesResource) -> None: self._origin_ca_certificates = origin_ca_certificates self.create = async_to_raw_response_wrapper( @@ -491,8 +491,8 @@ def __init__(self, origin_ca_certificates: AsyncOriginCACertificates) -> None: ) -class OriginCACertificatesWithStreamingResponse: - def __init__(self, origin_ca_certificates: OriginCACertificates) -> None: +class OriginCACertificatesResourceWithStreamingResponse: + def __init__(self, origin_ca_certificates: OriginCACertificatesResource) -> None: self._origin_ca_certificates = origin_ca_certificates self.create = to_streamed_response_wrapper( @@ -509,8 +509,8 @@ def __init__(self, origin_ca_certificates: OriginCACertificates) -> None: ) -class AsyncOriginCACertificatesWithStreamingResponse: - def __init__(self, origin_ca_certificates: AsyncOriginCACertificates) -> None: +class AsyncOriginCACertificatesResourceWithStreamingResponse: + def __init__(self, origin_ca_certificates: AsyncOriginCACertificatesResource) -> None: self._origin_ca_certificates = origin_ca_certificates self.create = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/origin_post_quantum_encryption.py b/src/cloudflare/resources/origin_post_quantum_encryption.py index 7eff4f47771..58c75a387f7 100644 --- a/src/cloudflare/resources/origin_post_quantum_encryption.py +++ b/src/cloudflare/resources/origin_post_quantum_encryption.py @@ -32,17 +32,17 @@ OriginPostQuantumEncryptionUpdateResponse, ) -__all__ = ["OriginPostQuantumEncryption", "AsyncOriginPostQuantumEncryption"] +__all__ = ["OriginPostQuantumEncryptionResource", "AsyncOriginPostQuantumEncryptionResource"] -class OriginPostQuantumEncryption(SyncAPIResource): +class OriginPostQuantumEncryptionResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> OriginPostQuantumEncryptionWithRawResponse: - return OriginPostQuantumEncryptionWithRawResponse(self) + def with_raw_response(self) -> OriginPostQuantumEncryptionResourceWithRawResponse: + return OriginPostQuantumEncryptionResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> OriginPostQuantumEncryptionWithStreamingResponse: - return OriginPostQuantumEncryptionWithStreamingResponse(self) + def with_streaming_response(self) -> OriginPostQuantumEncryptionResourceWithStreamingResponse: + return OriginPostQuantumEncryptionResourceWithStreamingResponse(self) def update( self, @@ -150,14 +150,14 @@ def get( ) -class AsyncOriginPostQuantumEncryption(AsyncAPIResource): +class AsyncOriginPostQuantumEncryptionResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncOriginPostQuantumEncryptionWithRawResponse: - return AsyncOriginPostQuantumEncryptionWithRawResponse(self) + def with_raw_response(self) -> AsyncOriginPostQuantumEncryptionResourceWithRawResponse: + return AsyncOriginPostQuantumEncryptionResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncOriginPostQuantumEncryptionWithStreamingResponse: - return AsyncOriginPostQuantumEncryptionWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncOriginPostQuantumEncryptionResourceWithStreamingResponse: + return AsyncOriginPostQuantumEncryptionResourceWithStreamingResponse(self) async def update( self, @@ -265,8 +265,8 @@ async def get( ) -class OriginPostQuantumEncryptionWithRawResponse: - def __init__(self, origin_post_quantum_encryption: OriginPostQuantumEncryption) -> None: +class OriginPostQuantumEncryptionResourceWithRawResponse: + def __init__(self, origin_post_quantum_encryption: OriginPostQuantumEncryptionResource) -> None: self._origin_post_quantum_encryption = origin_post_quantum_encryption self.update = to_raw_response_wrapper( @@ -277,8 +277,8 @@ def __init__(self, origin_post_quantum_encryption: OriginPostQuantumEncryption) ) -class AsyncOriginPostQuantumEncryptionWithRawResponse: - def __init__(self, origin_post_quantum_encryption: AsyncOriginPostQuantumEncryption) -> None: +class AsyncOriginPostQuantumEncryptionResourceWithRawResponse: + def __init__(self, origin_post_quantum_encryption: AsyncOriginPostQuantumEncryptionResource) -> None: self._origin_post_quantum_encryption = origin_post_quantum_encryption self.update = async_to_raw_response_wrapper( @@ -289,8 +289,8 @@ def __init__(self, origin_post_quantum_encryption: AsyncOriginPostQuantumEncrypt ) -class OriginPostQuantumEncryptionWithStreamingResponse: - def __init__(self, origin_post_quantum_encryption: OriginPostQuantumEncryption) -> None: +class OriginPostQuantumEncryptionResourceWithStreamingResponse: + def __init__(self, origin_post_quantum_encryption: OriginPostQuantumEncryptionResource) -> None: self._origin_post_quantum_encryption = origin_post_quantum_encryption self.update = to_streamed_response_wrapper( @@ -301,8 +301,8 @@ def __init__(self, origin_post_quantum_encryption: OriginPostQuantumEncryption) ) -class AsyncOriginPostQuantumEncryptionWithStreamingResponse: - def __init__(self, origin_post_quantum_encryption: AsyncOriginPostQuantumEncryption) -> None: +class AsyncOriginPostQuantumEncryptionResourceWithStreamingResponse: + def __init__(self, origin_post_quantum_encryption: AsyncOriginPostQuantumEncryptionResource) -> None: self._origin_post_quantum_encryption = origin_post_quantum_encryption self.update = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/origin_tls_client_auth/__init__.py b/src/cloudflare/resources/origin_tls_client_auth/__init__.py index 14ad95548ab..6c12314975a 100644 --- a/src/cloudflare/resources/origin_tls_client_auth/__init__.py +++ b/src/cloudflare/resources/origin_tls_client_auth/__init__.py @@ -1,47 +1,47 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from .settings import ( - Settings, - AsyncSettings, - SettingsWithRawResponse, - AsyncSettingsWithRawResponse, - SettingsWithStreamingResponse, - AsyncSettingsWithStreamingResponse, + SettingsResource, + AsyncSettingsResource, + SettingsResourceWithRawResponse, + AsyncSettingsResourceWithRawResponse, + SettingsResourceWithStreamingResponse, + AsyncSettingsResourceWithStreamingResponse, ) from .hostnames import ( - Hostnames, - AsyncHostnames, - HostnamesWithRawResponse, - AsyncHostnamesWithRawResponse, - HostnamesWithStreamingResponse, - AsyncHostnamesWithStreamingResponse, + HostnamesResource, + AsyncHostnamesResource, + HostnamesResourceWithRawResponse, + AsyncHostnamesResourceWithRawResponse, + HostnamesResourceWithStreamingResponse, + AsyncHostnamesResourceWithStreamingResponse, ) from .origin_tls_client_auth import ( - OriginTLSClientAuth, - AsyncOriginTLSClientAuth, - OriginTLSClientAuthWithRawResponse, - AsyncOriginTLSClientAuthWithRawResponse, - OriginTLSClientAuthWithStreamingResponse, - AsyncOriginTLSClientAuthWithStreamingResponse, + OriginTLSClientAuthResource, + AsyncOriginTLSClientAuthResource, + OriginTLSClientAuthResourceWithRawResponse, + AsyncOriginTLSClientAuthResourceWithRawResponse, + OriginTLSClientAuthResourceWithStreamingResponse, + AsyncOriginTLSClientAuthResourceWithStreamingResponse, ) __all__ = [ - "Hostnames", - "AsyncHostnames", - "HostnamesWithRawResponse", - "AsyncHostnamesWithRawResponse", - "HostnamesWithStreamingResponse", - "AsyncHostnamesWithStreamingResponse", - "Settings", - "AsyncSettings", - "SettingsWithRawResponse", - "AsyncSettingsWithRawResponse", - "SettingsWithStreamingResponse", - "AsyncSettingsWithStreamingResponse", - "OriginTLSClientAuth", - "AsyncOriginTLSClientAuth", - "OriginTLSClientAuthWithRawResponse", - "AsyncOriginTLSClientAuthWithRawResponse", - "OriginTLSClientAuthWithStreamingResponse", - "AsyncOriginTLSClientAuthWithStreamingResponse", + "HostnamesResource", + "AsyncHostnamesResource", + "HostnamesResourceWithRawResponse", + "AsyncHostnamesResourceWithRawResponse", + "HostnamesResourceWithStreamingResponse", + "AsyncHostnamesResourceWithStreamingResponse", + "SettingsResource", + "AsyncSettingsResource", + "SettingsResourceWithRawResponse", + "AsyncSettingsResourceWithRawResponse", + "SettingsResourceWithStreamingResponse", + "AsyncSettingsResourceWithStreamingResponse", + "OriginTLSClientAuthResource", + "AsyncOriginTLSClientAuthResource", + "OriginTLSClientAuthResourceWithRawResponse", + "AsyncOriginTLSClientAuthResourceWithRawResponse", + "OriginTLSClientAuthResourceWithStreamingResponse", + "AsyncOriginTLSClientAuthResourceWithStreamingResponse", ] diff --git a/src/cloudflare/resources/origin_tls_client_auth/hostnames/__init__.py b/src/cloudflare/resources/origin_tls_client_auth/hostnames/__init__.py index 92b619612bd..0e6260acee3 100644 --- a/src/cloudflare/resources/origin_tls_client_auth/hostnames/__init__.py +++ b/src/cloudflare/resources/origin_tls_client_auth/hostnames/__init__.py @@ -1,33 +1,33 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from .hostnames import ( - Hostnames, - AsyncHostnames, - HostnamesWithRawResponse, - AsyncHostnamesWithRawResponse, - HostnamesWithStreamingResponse, - AsyncHostnamesWithStreamingResponse, + HostnamesResource, + AsyncHostnamesResource, + HostnamesResourceWithRawResponse, + AsyncHostnamesResourceWithRawResponse, + HostnamesResourceWithStreamingResponse, + AsyncHostnamesResourceWithStreamingResponse, ) from .certificates import ( - Certificates, - AsyncCertificates, - CertificatesWithRawResponse, - AsyncCertificatesWithRawResponse, - CertificatesWithStreamingResponse, - AsyncCertificatesWithStreamingResponse, + CertificatesResource, + AsyncCertificatesResource, + CertificatesResourceWithRawResponse, + AsyncCertificatesResourceWithRawResponse, + CertificatesResourceWithStreamingResponse, + AsyncCertificatesResourceWithStreamingResponse, ) __all__ = [ - "Certificates", - "AsyncCertificates", - "CertificatesWithRawResponse", - "AsyncCertificatesWithRawResponse", - "CertificatesWithStreamingResponse", - "AsyncCertificatesWithStreamingResponse", - "Hostnames", - "AsyncHostnames", - "HostnamesWithRawResponse", - "AsyncHostnamesWithRawResponse", - "HostnamesWithStreamingResponse", - "AsyncHostnamesWithStreamingResponse", + "CertificatesResource", + "AsyncCertificatesResource", + "CertificatesResourceWithRawResponse", + "AsyncCertificatesResourceWithRawResponse", + "CertificatesResourceWithStreamingResponse", + "AsyncCertificatesResourceWithStreamingResponse", + "HostnamesResource", + "AsyncHostnamesResource", + "HostnamesResourceWithRawResponse", + "AsyncHostnamesResourceWithRawResponse", + "HostnamesResourceWithStreamingResponse", + "AsyncHostnamesResourceWithStreamingResponse", ] diff --git a/src/cloudflare/resources/origin_tls_client_auth/hostnames/certificates.py b/src/cloudflare/resources/origin_tls_client_auth/hostnames/certificates.py index 3d78187e7ae..a46067f12cc 100644 --- a/src/cloudflare/resources/origin_tls_client_auth/hostnames/certificates.py +++ b/src/cloudflare/resources/origin_tls_client_auth/hostnames/certificates.py @@ -31,17 +31,17 @@ from ....types.origin_tls_client_auth.hostnames.certificate_create_response import CertificateCreateResponse from ....types.origin_tls_client_auth.hostnames.certificate_delete_response import CertificateDeleteResponse -__all__ = ["Certificates", "AsyncCertificates"] +__all__ = ["CertificatesResource", "AsyncCertificatesResource"] -class Certificates(SyncAPIResource): +class CertificatesResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> CertificatesWithRawResponse: - return CertificatesWithRawResponse(self) + def with_raw_response(self) -> CertificatesResourceWithRawResponse: + return CertificatesResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> CertificatesWithStreamingResponse: - return CertificatesWithStreamingResponse(self) + def with_streaming_response(self) -> CertificatesResourceWithStreamingResponse: + return CertificatesResourceWithStreamingResponse(self) def create( self, @@ -224,14 +224,14 @@ def get( ) -class AsyncCertificates(AsyncAPIResource): +class AsyncCertificatesResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncCertificatesWithRawResponse: - return AsyncCertificatesWithRawResponse(self) + def with_raw_response(self) -> AsyncCertificatesResourceWithRawResponse: + return AsyncCertificatesResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncCertificatesWithStreamingResponse: - return AsyncCertificatesWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncCertificatesResourceWithStreamingResponse: + return AsyncCertificatesResourceWithStreamingResponse(self) async def create( self, @@ -414,8 +414,8 @@ async def get( ) -class CertificatesWithRawResponse: - def __init__(self, certificates: Certificates) -> None: +class CertificatesResourceWithRawResponse: + def __init__(self, certificates: CertificatesResource) -> None: self._certificates = certificates self.create = to_raw_response_wrapper( @@ -432,8 +432,8 @@ def __init__(self, certificates: Certificates) -> None: ) -class AsyncCertificatesWithRawResponse: - def __init__(self, certificates: AsyncCertificates) -> None: +class AsyncCertificatesResourceWithRawResponse: + def __init__(self, certificates: AsyncCertificatesResource) -> None: self._certificates = certificates self.create = async_to_raw_response_wrapper( @@ -450,8 +450,8 @@ def __init__(self, certificates: AsyncCertificates) -> None: ) -class CertificatesWithStreamingResponse: - def __init__(self, certificates: Certificates) -> None: +class CertificatesResourceWithStreamingResponse: + def __init__(self, certificates: CertificatesResource) -> None: self._certificates = certificates self.create = to_streamed_response_wrapper( @@ -468,8 +468,8 @@ def __init__(self, certificates: Certificates) -> None: ) -class AsyncCertificatesWithStreamingResponse: - def __init__(self, certificates: AsyncCertificates) -> None: +class AsyncCertificatesResourceWithStreamingResponse: + def __init__(self, certificates: AsyncCertificatesResource) -> None: self._certificates = certificates self.create = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/origin_tls_client_auth/hostnames/hostnames.py b/src/cloudflare/resources/origin_tls_client_auth/hostnames/hostnames.py index c8232a17f15..d5654039bca 100644 --- a/src/cloudflare/resources/origin_tls_client_auth/hostnames/hostnames.py +++ b/src/cloudflare/resources/origin_tls_client_auth/hostnames/hostnames.py @@ -21,12 +21,12 @@ ) from ...._wrappers import ResultWrapper from .certificates import ( - Certificates, - AsyncCertificates, - CertificatesWithRawResponse, - AsyncCertificatesWithRawResponse, - CertificatesWithStreamingResponse, - AsyncCertificatesWithStreamingResponse, + CertificatesResource, + AsyncCertificatesResource, + CertificatesResourceWithRawResponse, + AsyncCertificatesResourceWithRawResponse, + CertificatesResourceWithStreamingResponse, + AsyncCertificatesResourceWithStreamingResponse, ) from ...._base_client import ( make_request_options, @@ -35,21 +35,21 @@ from ....types.origin_tls_client_auth.hostname_update_response import HostnameUpdateResponse from ....types.origin_tls_client_auth.authenticated_origin_pull import AuthenticatedOriginPull -__all__ = ["Hostnames", "AsyncHostnames"] +__all__ = ["HostnamesResource", "AsyncHostnamesResource"] -class Hostnames(SyncAPIResource): +class HostnamesResource(SyncAPIResource): @cached_property - def certificates(self) -> Certificates: - return Certificates(self._client) + def certificates(self) -> CertificatesResource: + return CertificatesResource(self._client) @cached_property - def with_raw_response(self) -> HostnamesWithRawResponse: - return HostnamesWithRawResponse(self) + def with_raw_response(self) -> HostnamesResourceWithRawResponse: + return HostnamesResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> HostnamesWithStreamingResponse: - return HostnamesWithStreamingResponse(self) + def with_streaming_response(self) -> HostnamesResourceWithStreamingResponse: + return HostnamesResourceWithStreamingResponse(self) def update( self, @@ -142,18 +142,18 @@ def get( ) -class AsyncHostnames(AsyncAPIResource): +class AsyncHostnamesResource(AsyncAPIResource): @cached_property - def certificates(self) -> AsyncCertificates: - return AsyncCertificates(self._client) + def certificates(self) -> AsyncCertificatesResource: + return AsyncCertificatesResource(self._client) @cached_property - def with_raw_response(self) -> AsyncHostnamesWithRawResponse: - return AsyncHostnamesWithRawResponse(self) + def with_raw_response(self) -> AsyncHostnamesResourceWithRawResponse: + return AsyncHostnamesResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncHostnamesWithStreamingResponse: - return AsyncHostnamesWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncHostnamesResourceWithStreamingResponse: + return AsyncHostnamesResourceWithStreamingResponse(self) async def update( self, @@ -246,8 +246,8 @@ async def get( ) -class HostnamesWithRawResponse: - def __init__(self, hostnames: Hostnames) -> None: +class HostnamesResourceWithRawResponse: + def __init__(self, hostnames: HostnamesResource) -> None: self._hostnames = hostnames self.update = to_raw_response_wrapper( @@ -258,12 +258,12 @@ def __init__(self, hostnames: Hostnames) -> None: ) @cached_property - def certificates(self) -> CertificatesWithRawResponse: - return CertificatesWithRawResponse(self._hostnames.certificates) + def certificates(self) -> CertificatesResourceWithRawResponse: + return CertificatesResourceWithRawResponse(self._hostnames.certificates) -class AsyncHostnamesWithRawResponse: - def __init__(self, hostnames: AsyncHostnames) -> None: +class AsyncHostnamesResourceWithRawResponse: + def __init__(self, hostnames: AsyncHostnamesResource) -> None: self._hostnames = hostnames self.update = async_to_raw_response_wrapper( @@ -274,12 +274,12 @@ def __init__(self, hostnames: AsyncHostnames) -> None: ) @cached_property - def certificates(self) -> AsyncCertificatesWithRawResponse: - return AsyncCertificatesWithRawResponse(self._hostnames.certificates) + def certificates(self) -> AsyncCertificatesResourceWithRawResponse: + return AsyncCertificatesResourceWithRawResponse(self._hostnames.certificates) -class HostnamesWithStreamingResponse: - def __init__(self, hostnames: Hostnames) -> None: +class HostnamesResourceWithStreamingResponse: + def __init__(self, hostnames: HostnamesResource) -> None: self._hostnames = hostnames self.update = to_streamed_response_wrapper( @@ -290,12 +290,12 @@ def __init__(self, hostnames: Hostnames) -> None: ) @cached_property - def certificates(self) -> CertificatesWithStreamingResponse: - return CertificatesWithStreamingResponse(self._hostnames.certificates) + def certificates(self) -> CertificatesResourceWithStreamingResponse: + return CertificatesResourceWithStreamingResponse(self._hostnames.certificates) -class AsyncHostnamesWithStreamingResponse: - def __init__(self, hostnames: AsyncHostnames) -> None: +class AsyncHostnamesResourceWithStreamingResponse: + def __init__(self, hostnames: AsyncHostnamesResource) -> None: self._hostnames = hostnames self.update = async_to_streamed_response_wrapper( @@ -306,5 +306,5 @@ def __init__(self, hostnames: AsyncHostnames) -> None: ) @cached_property - def certificates(self) -> AsyncCertificatesWithStreamingResponse: - return AsyncCertificatesWithStreamingResponse(self._hostnames.certificates) + def certificates(self) -> AsyncCertificatesResourceWithStreamingResponse: + return AsyncCertificatesResourceWithStreamingResponse(self._hostnames.certificates) diff --git a/src/cloudflare/resources/origin_tls_client_auth/origin_tls_client_auth.py b/src/cloudflare/resources/origin_tls_client_auth/origin_tls_client_auth.py index 4292528967b..5d0d50f7e9d 100644 --- a/src/cloudflare/resources/origin_tls_client_auth/origin_tls_client_auth.py +++ b/src/cloudflare/resources/origin_tls_client_auth/origin_tls_client_auth.py @@ -12,21 +12,21 @@ async_maybe_transform, ) from .settings import ( - Settings, - AsyncSettings, - SettingsWithRawResponse, - AsyncSettingsWithRawResponse, - SettingsWithStreamingResponse, - AsyncSettingsWithStreamingResponse, + SettingsResource, + AsyncSettingsResource, + SettingsResourceWithRawResponse, + AsyncSettingsResourceWithRawResponse, + SettingsResourceWithStreamingResponse, + AsyncSettingsResourceWithStreamingResponse, ) from ..._compat import cached_property from .hostnames import ( - Hostnames, - AsyncHostnames, - HostnamesWithRawResponse, - AsyncHostnamesWithRawResponse, - HostnamesWithStreamingResponse, - AsyncHostnamesWithStreamingResponse, + HostnamesResource, + AsyncHostnamesResource, + HostnamesResourceWithRawResponse, + AsyncHostnamesResourceWithRawResponse, + HostnamesResourceWithStreamingResponse, + AsyncHostnamesResourceWithStreamingResponse, ) from ..._resource import SyncAPIResource, AsyncAPIResource from ..._response import ( @@ -41,32 +41,32 @@ AsyncPaginator, make_request_options, ) -from .hostnames.hostnames import Hostnames, AsyncHostnames +from .hostnames.hostnames import HostnamesResource, AsyncHostnamesResource from ...types.origin_tls_client_auth import origin_tls_client_auth_create_params, origin_tls_client_auth_delete_params from ...types.origin_tls_client_auth.zone_authenticated_origin_pull import ZoneAuthenticatedOriginPull from ...types.origin_tls_client_auth.origin_tls_client_auth_get_response import OriginTLSClientAuthGetResponse from ...types.origin_tls_client_auth.origin_tls_client_auth_create_response import OriginTLSClientAuthCreateResponse from ...types.origin_tls_client_auth.origin_tls_client_auth_delete_response import OriginTLSClientAuthDeleteResponse -__all__ = ["OriginTLSClientAuth", "AsyncOriginTLSClientAuth"] +__all__ = ["OriginTLSClientAuthResource", "AsyncOriginTLSClientAuthResource"] -class OriginTLSClientAuth(SyncAPIResource): +class OriginTLSClientAuthResource(SyncAPIResource): @cached_property - def hostnames(self) -> Hostnames: - return Hostnames(self._client) + def hostnames(self) -> HostnamesResource: + return HostnamesResource(self._client) @cached_property - def settings(self) -> Settings: - return Settings(self._client) + def settings(self) -> SettingsResource: + return SettingsResource(self._client) @cached_property - def with_raw_response(self) -> OriginTLSClientAuthWithRawResponse: - return OriginTLSClientAuthWithRawResponse(self) + def with_raw_response(self) -> OriginTLSClientAuthResourceWithRawResponse: + return OriginTLSClientAuthResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> OriginTLSClientAuthWithStreamingResponse: - return OriginTLSClientAuthWithStreamingResponse(self) + def with_streaming_response(self) -> OriginTLSClientAuthResourceWithStreamingResponse: + return OriginTLSClientAuthResourceWithStreamingResponse(self) def create( self, @@ -266,22 +266,22 @@ def get( ) -class AsyncOriginTLSClientAuth(AsyncAPIResource): +class AsyncOriginTLSClientAuthResource(AsyncAPIResource): @cached_property - def hostnames(self) -> AsyncHostnames: - return AsyncHostnames(self._client) + def hostnames(self) -> AsyncHostnamesResource: + return AsyncHostnamesResource(self._client) @cached_property - def settings(self) -> AsyncSettings: - return AsyncSettings(self._client) + def settings(self) -> AsyncSettingsResource: + return AsyncSettingsResource(self._client) @cached_property - def with_raw_response(self) -> AsyncOriginTLSClientAuthWithRawResponse: - return AsyncOriginTLSClientAuthWithRawResponse(self) + def with_raw_response(self) -> AsyncOriginTLSClientAuthResourceWithRawResponse: + return AsyncOriginTLSClientAuthResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncOriginTLSClientAuthWithStreamingResponse: - return AsyncOriginTLSClientAuthWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncOriginTLSClientAuthResourceWithStreamingResponse: + return AsyncOriginTLSClientAuthResourceWithStreamingResponse(self) async def create( self, @@ -483,8 +483,8 @@ async def get( ) -class OriginTLSClientAuthWithRawResponse: - def __init__(self, origin_tls_client_auth: OriginTLSClientAuth) -> None: +class OriginTLSClientAuthResourceWithRawResponse: + def __init__(self, origin_tls_client_auth: OriginTLSClientAuthResource) -> None: self._origin_tls_client_auth = origin_tls_client_auth self.create = to_raw_response_wrapper( @@ -501,16 +501,16 @@ def __init__(self, origin_tls_client_auth: OriginTLSClientAuth) -> None: ) @cached_property - def hostnames(self) -> HostnamesWithRawResponse: - return HostnamesWithRawResponse(self._origin_tls_client_auth.hostnames) + def hostnames(self) -> HostnamesResourceWithRawResponse: + return HostnamesResourceWithRawResponse(self._origin_tls_client_auth.hostnames) @cached_property - def settings(self) -> SettingsWithRawResponse: - return SettingsWithRawResponse(self._origin_tls_client_auth.settings) + def settings(self) -> SettingsResourceWithRawResponse: + return SettingsResourceWithRawResponse(self._origin_tls_client_auth.settings) -class AsyncOriginTLSClientAuthWithRawResponse: - def __init__(self, origin_tls_client_auth: AsyncOriginTLSClientAuth) -> None: +class AsyncOriginTLSClientAuthResourceWithRawResponse: + def __init__(self, origin_tls_client_auth: AsyncOriginTLSClientAuthResource) -> None: self._origin_tls_client_auth = origin_tls_client_auth self.create = async_to_raw_response_wrapper( @@ -527,16 +527,16 @@ def __init__(self, origin_tls_client_auth: AsyncOriginTLSClientAuth) -> None: ) @cached_property - def hostnames(self) -> AsyncHostnamesWithRawResponse: - return AsyncHostnamesWithRawResponse(self._origin_tls_client_auth.hostnames) + def hostnames(self) -> AsyncHostnamesResourceWithRawResponse: + return AsyncHostnamesResourceWithRawResponse(self._origin_tls_client_auth.hostnames) @cached_property - def settings(self) -> AsyncSettingsWithRawResponse: - return AsyncSettingsWithRawResponse(self._origin_tls_client_auth.settings) + def settings(self) -> AsyncSettingsResourceWithRawResponse: + return AsyncSettingsResourceWithRawResponse(self._origin_tls_client_auth.settings) -class OriginTLSClientAuthWithStreamingResponse: - def __init__(self, origin_tls_client_auth: OriginTLSClientAuth) -> None: +class OriginTLSClientAuthResourceWithStreamingResponse: + def __init__(self, origin_tls_client_auth: OriginTLSClientAuthResource) -> None: self._origin_tls_client_auth = origin_tls_client_auth self.create = to_streamed_response_wrapper( @@ -553,16 +553,16 @@ def __init__(self, origin_tls_client_auth: OriginTLSClientAuth) -> None: ) @cached_property - def hostnames(self) -> HostnamesWithStreamingResponse: - return HostnamesWithStreamingResponse(self._origin_tls_client_auth.hostnames) + def hostnames(self) -> HostnamesResourceWithStreamingResponse: + return HostnamesResourceWithStreamingResponse(self._origin_tls_client_auth.hostnames) @cached_property - def settings(self) -> SettingsWithStreamingResponse: - return SettingsWithStreamingResponse(self._origin_tls_client_auth.settings) + def settings(self) -> SettingsResourceWithStreamingResponse: + return SettingsResourceWithStreamingResponse(self._origin_tls_client_auth.settings) -class AsyncOriginTLSClientAuthWithStreamingResponse: - def __init__(self, origin_tls_client_auth: AsyncOriginTLSClientAuth) -> None: +class AsyncOriginTLSClientAuthResourceWithStreamingResponse: + def __init__(self, origin_tls_client_auth: AsyncOriginTLSClientAuthResource) -> None: self._origin_tls_client_auth = origin_tls_client_auth self.create = async_to_streamed_response_wrapper( @@ -579,9 +579,9 @@ def __init__(self, origin_tls_client_auth: AsyncOriginTLSClientAuth) -> None: ) @cached_property - def hostnames(self) -> AsyncHostnamesWithStreamingResponse: - return AsyncHostnamesWithStreamingResponse(self._origin_tls_client_auth.hostnames) + def hostnames(self) -> AsyncHostnamesResourceWithStreamingResponse: + return AsyncHostnamesResourceWithStreamingResponse(self._origin_tls_client_auth.hostnames) @cached_property - def settings(self) -> AsyncSettingsWithStreamingResponse: - return AsyncSettingsWithStreamingResponse(self._origin_tls_client_auth.settings) + def settings(self) -> AsyncSettingsResourceWithStreamingResponse: + return AsyncSettingsResourceWithStreamingResponse(self._origin_tls_client_auth.settings) diff --git a/src/cloudflare/resources/origin_tls_client_auth/settings.py b/src/cloudflare/resources/origin_tls_client_auth/settings.py index 2dcf34d4994..ac8304e1edd 100644 --- a/src/cloudflare/resources/origin_tls_client_auth/settings.py +++ b/src/cloudflare/resources/origin_tls_client_auth/settings.py @@ -27,17 +27,17 @@ from ...types.origin_tls_client_auth.setting_get_response import SettingGetResponse from ...types.origin_tls_client_auth.setting_update_response import SettingUpdateResponse -__all__ = ["Settings", "AsyncSettings"] +__all__ = ["SettingsResource", "AsyncSettingsResource"] -class Settings(SyncAPIResource): +class SettingsResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> SettingsWithRawResponse: - return SettingsWithRawResponse(self) + def with_raw_response(self) -> SettingsResourceWithRawResponse: + return SettingsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> SettingsWithStreamingResponse: - return SettingsWithStreamingResponse(self) + def with_streaming_response(self) -> SettingsResourceWithStreamingResponse: + return SettingsResourceWithStreamingResponse(self) def update( self, @@ -127,14 +127,14 @@ def get( ) -class AsyncSettings(AsyncAPIResource): +class AsyncSettingsResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncSettingsWithRawResponse: - return AsyncSettingsWithRawResponse(self) + def with_raw_response(self) -> AsyncSettingsResourceWithRawResponse: + return AsyncSettingsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncSettingsWithStreamingResponse: - return AsyncSettingsWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncSettingsResourceWithStreamingResponse: + return AsyncSettingsResourceWithStreamingResponse(self) async def update( self, @@ -224,8 +224,8 @@ async def get( ) -class SettingsWithRawResponse: - def __init__(self, settings: Settings) -> None: +class SettingsResourceWithRawResponse: + def __init__(self, settings: SettingsResource) -> None: self._settings = settings self.update = to_raw_response_wrapper( @@ -236,8 +236,8 @@ def __init__(self, settings: Settings) -> None: ) -class AsyncSettingsWithRawResponse: - def __init__(self, settings: AsyncSettings) -> None: +class AsyncSettingsResourceWithRawResponse: + def __init__(self, settings: AsyncSettingsResource) -> None: self._settings = settings self.update = async_to_raw_response_wrapper( @@ -248,8 +248,8 @@ def __init__(self, settings: AsyncSettings) -> None: ) -class SettingsWithStreamingResponse: - def __init__(self, settings: Settings) -> None: +class SettingsResourceWithStreamingResponse: + def __init__(self, settings: SettingsResource) -> None: self._settings = settings self.update = to_streamed_response_wrapper( @@ -260,8 +260,8 @@ def __init__(self, settings: Settings) -> None: ) -class AsyncSettingsWithStreamingResponse: - def __init__(self, settings: AsyncSettings) -> None: +class AsyncSettingsResourceWithStreamingResponse: + def __init__(self, settings: AsyncSettingsResource) -> None: self._settings = settings self.update = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/page_shield/__init__.py b/src/cloudflare/resources/page_shield/__init__.py index 195b675feb5..42a42e10c4d 100644 --- a/src/cloudflare/resources/page_shield/__init__.py +++ b/src/cloudflare/resources/page_shield/__init__.py @@ -1,61 +1,61 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from .scripts import ( - Scripts, - AsyncScripts, - ScriptsWithRawResponse, - AsyncScriptsWithRawResponse, - ScriptsWithStreamingResponse, - AsyncScriptsWithStreamingResponse, + ScriptsResource, + AsyncScriptsResource, + ScriptsResourceWithRawResponse, + AsyncScriptsResourceWithRawResponse, + ScriptsResourceWithStreamingResponse, + AsyncScriptsResourceWithStreamingResponse, ) from .policies import ( - Policies, - AsyncPolicies, - PoliciesWithRawResponse, - AsyncPoliciesWithRawResponse, - PoliciesWithStreamingResponse, - AsyncPoliciesWithStreamingResponse, + PoliciesResource, + AsyncPoliciesResource, + PoliciesResourceWithRawResponse, + AsyncPoliciesResourceWithRawResponse, + PoliciesResourceWithStreamingResponse, + AsyncPoliciesResourceWithStreamingResponse, ) from .connections import ( - Connections, - AsyncConnections, - ConnectionsWithRawResponse, - AsyncConnectionsWithRawResponse, - ConnectionsWithStreamingResponse, - AsyncConnectionsWithStreamingResponse, + ConnectionsResource, + AsyncConnectionsResource, + ConnectionsResourceWithRawResponse, + AsyncConnectionsResourceWithRawResponse, + ConnectionsResourceWithStreamingResponse, + AsyncConnectionsResourceWithStreamingResponse, ) from .page_shield import ( - PageShield, - AsyncPageShield, - PageShieldWithRawResponse, - AsyncPageShieldWithRawResponse, - PageShieldWithStreamingResponse, - AsyncPageShieldWithStreamingResponse, + PageShieldResource, + AsyncPageShieldResource, + PageShieldResourceWithRawResponse, + AsyncPageShieldResourceWithRawResponse, + PageShieldResourceWithStreamingResponse, + AsyncPageShieldResourceWithStreamingResponse, ) __all__ = [ - "Policies", - "AsyncPolicies", - "PoliciesWithRawResponse", - "AsyncPoliciesWithRawResponse", - "PoliciesWithStreamingResponse", - "AsyncPoliciesWithStreamingResponse", - "Connections", - "AsyncConnections", - "ConnectionsWithRawResponse", - "AsyncConnectionsWithRawResponse", - "ConnectionsWithStreamingResponse", - "AsyncConnectionsWithStreamingResponse", - "Scripts", - "AsyncScripts", - "ScriptsWithRawResponse", - "AsyncScriptsWithRawResponse", - "ScriptsWithStreamingResponse", - "AsyncScriptsWithStreamingResponse", - "PageShield", - "AsyncPageShield", - "PageShieldWithRawResponse", - "AsyncPageShieldWithRawResponse", - "PageShieldWithStreamingResponse", - "AsyncPageShieldWithStreamingResponse", + "PoliciesResource", + "AsyncPoliciesResource", + "PoliciesResourceWithRawResponse", + "AsyncPoliciesResourceWithRawResponse", + "PoliciesResourceWithStreamingResponse", + "AsyncPoliciesResourceWithStreamingResponse", + "ConnectionsResource", + "AsyncConnectionsResource", + "ConnectionsResourceWithRawResponse", + "AsyncConnectionsResourceWithRawResponse", + "ConnectionsResourceWithStreamingResponse", + "AsyncConnectionsResourceWithStreamingResponse", + "ScriptsResource", + "AsyncScriptsResource", + "ScriptsResourceWithRawResponse", + "AsyncScriptsResourceWithRawResponse", + "ScriptsResourceWithStreamingResponse", + "AsyncScriptsResourceWithStreamingResponse", + "PageShieldResource", + "AsyncPageShieldResource", + "PageShieldResourceWithRawResponse", + "AsyncPageShieldResourceWithRawResponse", + "PageShieldResourceWithStreamingResponse", + "AsyncPageShieldResourceWithStreamingResponse", ] diff --git a/src/cloudflare/resources/page_shield/connections.py b/src/cloudflare/resources/page_shield/connections.py index a4247e2e63e..c9d5a5c7c71 100644 --- a/src/cloudflare/resources/page_shield/connections.py +++ b/src/cloudflare/resources/page_shield/connections.py @@ -24,17 +24,17 @@ from ...types.page_shield import connection_list_params from ...types.page_shield.connection import Connection -__all__ = ["Connections", "AsyncConnections"] +__all__ = ["ConnectionsResource", "AsyncConnectionsResource"] -class Connections(SyncAPIResource): +class ConnectionsResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> ConnectionsWithRawResponse: - return ConnectionsWithRawResponse(self) + def with_raw_response(self) -> ConnectionsResourceWithRawResponse: + return ConnectionsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> ConnectionsWithStreamingResponse: - return ConnectionsWithStreamingResponse(self) + def with_streaming_response(self) -> ConnectionsResourceWithStreamingResponse: + return ConnectionsResourceWithStreamingResponse(self) def list( self, @@ -191,14 +191,14 @@ def get( ) -class AsyncConnections(AsyncAPIResource): +class AsyncConnectionsResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncConnectionsWithRawResponse: - return AsyncConnectionsWithRawResponse(self) + def with_raw_response(self) -> AsyncConnectionsResourceWithRawResponse: + return AsyncConnectionsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncConnectionsWithStreamingResponse: - return AsyncConnectionsWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncConnectionsResourceWithStreamingResponse: + return AsyncConnectionsResourceWithStreamingResponse(self) def list( self, @@ -355,8 +355,8 @@ async def get( ) -class ConnectionsWithRawResponse: - def __init__(self, connections: Connections) -> None: +class ConnectionsResourceWithRawResponse: + def __init__(self, connections: ConnectionsResource) -> None: self._connections = connections self.list = to_raw_response_wrapper( @@ -367,8 +367,8 @@ def __init__(self, connections: Connections) -> None: ) -class AsyncConnectionsWithRawResponse: - def __init__(self, connections: AsyncConnections) -> None: +class AsyncConnectionsResourceWithRawResponse: + def __init__(self, connections: AsyncConnectionsResource) -> None: self._connections = connections self.list = async_to_raw_response_wrapper( @@ -379,8 +379,8 @@ def __init__(self, connections: AsyncConnections) -> None: ) -class ConnectionsWithStreamingResponse: - def __init__(self, connections: Connections) -> None: +class ConnectionsResourceWithStreamingResponse: + def __init__(self, connections: ConnectionsResource) -> None: self._connections = connections self.list = to_streamed_response_wrapper( @@ -391,8 +391,8 @@ def __init__(self, connections: Connections) -> None: ) -class AsyncConnectionsWithStreamingResponse: - def __init__(self, connections: AsyncConnections) -> None: +class AsyncConnectionsResourceWithStreamingResponse: + def __init__(self, connections: AsyncConnectionsResource) -> None: self._connections = connections self.list = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/page_shield/page_shield.py b/src/cloudflare/resources/page_shield/page_shield.py index c85989a6974..ef88a6b37e0 100644 --- a/src/cloudflare/resources/page_shield/page_shield.py +++ b/src/cloudflare/resources/page_shield/page_shield.py @@ -7,12 +7,12 @@ import httpx from .scripts import ( - Scripts, - AsyncScripts, - ScriptsWithRawResponse, - AsyncScriptsWithRawResponse, - ScriptsWithStreamingResponse, - AsyncScriptsWithStreamingResponse, + ScriptsResource, + AsyncScriptsResource, + ScriptsResourceWithRawResponse, + AsyncScriptsResourceWithRawResponse, + ScriptsResourceWithStreamingResponse, + AsyncScriptsResourceWithStreamingResponse, ) from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven from ..._utils import ( @@ -20,12 +20,12 @@ async_maybe_transform, ) from .policies import ( - Policies, - AsyncPolicies, - PoliciesWithRawResponse, - AsyncPoliciesWithRawResponse, - PoliciesWithStreamingResponse, - AsyncPoliciesWithStreamingResponse, + PoliciesResource, + AsyncPoliciesResource, + PoliciesResourceWithRawResponse, + AsyncPoliciesResourceWithRawResponse, + PoliciesResourceWithStreamingResponse, + AsyncPoliciesResourceWithStreamingResponse, ) from ..._compat import cached_property from ..._resource import SyncAPIResource, AsyncAPIResource @@ -37,12 +37,12 @@ ) from ..._wrappers import ResultWrapper from .connections import ( - Connections, - AsyncConnections, - ConnectionsWithRawResponse, - AsyncConnectionsWithRawResponse, - ConnectionsWithStreamingResponse, - AsyncConnectionsWithStreamingResponse, + ConnectionsResource, + AsyncConnectionsResource, + ConnectionsResourceWithRawResponse, + AsyncConnectionsResourceWithRawResponse, + ConnectionsResourceWithStreamingResponse, + AsyncConnectionsResourceWithStreamingResponse, ) from ..._base_client import ( make_request_options, @@ -51,29 +51,29 @@ from ...types.page_shield.setting import Setting from ...types.page_shield.page_shield_update_response import PageShieldUpdateResponse -__all__ = ["PageShield", "AsyncPageShield"] +__all__ = ["PageShieldResource", "AsyncPageShieldResource"] -class PageShield(SyncAPIResource): +class PageShieldResource(SyncAPIResource): @cached_property - def policies(self) -> Policies: - return Policies(self._client) + def policies(self) -> PoliciesResource: + return PoliciesResource(self._client) @cached_property - def connections(self) -> Connections: - return Connections(self._client) + def connections(self) -> ConnectionsResource: + return ConnectionsResource(self._client) @cached_property - def scripts(self) -> Scripts: - return Scripts(self._client) + def scripts(self) -> ScriptsResource: + return ScriptsResource(self._client) @cached_property - def with_raw_response(self) -> PageShieldWithRawResponse: - return PageShieldWithRawResponse(self) + def with_raw_response(self) -> PageShieldResourceWithRawResponse: + return PageShieldResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> PageShieldWithStreamingResponse: - return PageShieldWithStreamingResponse(self) + def with_streaming_response(self) -> PageShieldResourceWithStreamingResponse: + return PageShieldResourceWithStreamingResponse(self) def update( self, @@ -172,26 +172,26 @@ def get( ) -class AsyncPageShield(AsyncAPIResource): +class AsyncPageShieldResource(AsyncAPIResource): @cached_property - def policies(self) -> AsyncPolicies: - return AsyncPolicies(self._client) + def policies(self) -> AsyncPoliciesResource: + return AsyncPoliciesResource(self._client) @cached_property - def connections(self) -> AsyncConnections: - return AsyncConnections(self._client) + def connections(self) -> AsyncConnectionsResource: + return AsyncConnectionsResource(self._client) @cached_property - def scripts(self) -> AsyncScripts: - return AsyncScripts(self._client) + def scripts(self) -> AsyncScriptsResource: + return AsyncScriptsResource(self._client) @cached_property - def with_raw_response(self) -> AsyncPageShieldWithRawResponse: - return AsyncPageShieldWithRawResponse(self) + def with_raw_response(self) -> AsyncPageShieldResourceWithRawResponse: + return AsyncPageShieldResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncPageShieldWithStreamingResponse: - return AsyncPageShieldWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncPageShieldResourceWithStreamingResponse: + return AsyncPageShieldResourceWithStreamingResponse(self) async def update( self, @@ -290,8 +290,8 @@ async def get( ) -class PageShieldWithRawResponse: - def __init__(self, page_shield: PageShield) -> None: +class PageShieldResourceWithRawResponse: + def __init__(self, page_shield: PageShieldResource) -> None: self._page_shield = page_shield self.update = to_raw_response_wrapper( @@ -302,20 +302,20 @@ def __init__(self, page_shield: PageShield) -> None: ) @cached_property - def policies(self) -> PoliciesWithRawResponse: - return PoliciesWithRawResponse(self._page_shield.policies) + def policies(self) -> PoliciesResourceWithRawResponse: + return PoliciesResourceWithRawResponse(self._page_shield.policies) @cached_property - def connections(self) -> ConnectionsWithRawResponse: - return ConnectionsWithRawResponse(self._page_shield.connections) + def connections(self) -> ConnectionsResourceWithRawResponse: + return ConnectionsResourceWithRawResponse(self._page_shield.connections) @cached_property - def scripts(self) -> ScriptsWithRawResponse: - return ScriptsWithRawResponse(self._page_shield.scripts) + def scripts(self) -> ScriptsResourceWithRawResponse: + return ScriptsResourceWithRawResponse(self._page_shield.scripts) -class AsyncPageShieldWithRawResponse: - def __init__(self, page_shield: AsyncPageShield) -> None: +class AsyncPageShieldResourceWithRawResponse: + def __init__(self, page_shield: AsyncPageShieldResource) -> None: self._page_shield = page_shield self.update = async_to_raw_response_wrapper( @@ -326,20 +326,20 @@ def __init__(self, page_shield: AsyncPageShield) -> None: ) @cached_property - def policies(self) -> AsyncPoliciesWithRawResponse: - return AsyncPoliciesWithRawResponse(self._page_shield.policies) + def policies(self) -> AsyncPoliciesResourceWithRawResponse: + return AsyncPoliciesResourceWithRawResponse(self._page_shield.policies) @cached_property - def connections(self) -> AsyncConnectionsWithRawResponse: - return AsyncConnectionsWithRawResponse(self._page_shield.connections) + def connections(self) -> AsyncConnectionsResourceWithRawResponse: + return AsyncConnectionsResourceWithRawResponse(self._page_shield.connections) @cached_property - def scripts(self) -> AsyncScriptsWithRawResponse: - return AsyncScriptsWithRawResponse(self._page_shield.scripts) + def scripts(self) -> AsyncScriptsResourceWithRawResponse: + return AsyncScriptsResourceWithRawResponse(self._page_shield.scripts) -class PageShieldWithStreamingResponse: - def __init__(self, page_shield: PageShield) -> None: +class PageShieldResourceWithStreamingResponse: + def __init__(self, page_shield: PageShieldResource) -> None: self._page_shield = page_shield self.update = to_streamed_response_wrapper( @@ -350,20 +350,20 @@ def __init__(self, page_shield: PageShield) -> None: ) @cached_property - def policies(self) -> PoliciesWithStreamingResponse: - return PoliciesWithStreamingResponse(self._page_shield.policies) + def policies(self) -> PoliciesResourceWithStreamingResponse: + return PoliciesResourceWithStreamingResponse(self._page_shield.policies) @cached_property - def connections(self) -> ConnectionsWithStreamingResponse: - return ConnectionsWithStreamingResponse(self._page_shield.connections) + def connections(self) -> ConnectionsResourceWithStreamingResponse: + return ConnectionsResourceWithStreamingResponse(self._page_shield.connections) @cached_property - def scripts(self) -> ScriptsWithStreamingResponse: - return ScriptsWithStreamingResponse(self._page_shield.scripts) + def scripts(self) -> ScriptsResourceWithStreamingResponse: + return ScriptsResourceWithStreamingResponse(self._page_shield.scripts) -class AsyncPageShieldWithStreamingResponse: - def __init__(self, page_shield: AsyncPageShield) -> None: +class AsyncPageShieldResourceWithStreamingResponse: + def __init__(self, page_shield: AsyncPageShieldResource) -> None: self._page_shield = page_shield self.update = async_to_streamed_response_wrapper( @@ -374,13 +374,13 @@ def __init__(self, page_shield: AsyncPageShield) -> None: ) @cached_property - def policies(self) -> AsyncPoliciesWithStreamingResponse: - return AsyncPoliciesWithStreamingResponse(self._page_shield.policies) + def policies(self) -> AsyncPoliciesResourceWithStreamingResponse: + return AsyncPoliciesResourceWithStreamingResponse(self._page_shield.policies) @cached_property - def connections(self) -> AsyncConnectionsWithStreamingResponse: - return AsyncConnectionsWithStreamingResponse(self._page_shield.connections) + def connections(self) -> AsyncConnectionsResourceWithStreamingResponse: + return AsyncConnectionsResourceWithStreamingResponse(self._page_shield.connections) @cached_property - def scripts(self) -> AsyncScriptsWithStreamingResponse: - return AsyncScriptsWithStreamingResponse(self._page_shield.scripts) + def scripts(self) -> AsyncScriptsResourceWithStreamingResponse: + return AsyncScriptsResourceWithStreamingResponse(self._page_shield.scripts) diff --git a/src/cloudflare/resources/page_shield/policies.py b/src/cloudflare/resources/page_shield/policies.py index bf39a763175..2a0ecdd591b 100644 --- a/src/cloudflare/resources/page_shield/policies.py +++ b/src/cloudflare/resources/page_shield/policies.py @@ -27,17 +27,17 @@ from ...types.page_shield import policy_create_params, policy_update_params from ...types.page_shield.policy import Policy -__all__ = ["Policies", "AsyncPolicies"] +__all__ = ["PoliciesResource", "AsyncPoliciesResource"] -class Policies(SyncAPIResource): +class PoliciesResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> PoliciesWithRawResponse: - return PoliciesWithRawResponse(self) + def with_raw_response(self) -> PoliciesResourceWithRawResponse: + return PoliciesResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> PoliciesWithStreamingResponse: - return PoliciesWithStreamingResponse(self) + def with_streaming_response(self) -> PoliciesResourceWithStreamingResponse: + return PoliciesResourceWithStreamingResponse(self) def create( self, @@ -284,14 +284,14 @@ def get( ) -class AsyncPolicies(AsyncAPIResource): +class AsyncPoliciesResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncPoliciesWithRawResponse: - return AsyncPoliciesWithRawResponse(self) + def with_raw_response(self) -> AsyncPoliciesResourceWithRawResponse: + return AsyncPoliciesResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncPoliciesWithStreamingResponse: - return AsyncPoliciesWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncPoliciesResourceWithStreamingResponse: + return AsyncPoliciesResourceWithStreamingResponse(self) async def create( self, @@ -538,8 +538,8 @@ async def get( ) -class PoliciesWithRawResponse: - def __init__(self, policies: Policies) -> None: +class PoliciesResourceWithRawResponse: + def __init__(self, policies: PoliciesResource) -> None: self._policies = policies self.create = to_raw_response_wrapper( @@ -559,8 +559,8 @@ def __init__(self, policies: Policies) -> None: ) -class AsyncPoliciesWithRawResponse: - def __init__(self, policies: AsyncPolicies) -> None: +class AsyncPoliciesResourceWithRawResponse: + def __init__(self, policies: AsyncPoliciesResource) -> None: self._policies = policies self.create = async_to_raw_response_wrapper( @@ -580,8 +580,8 @@ def __init__(self, policies: AsyncPolicies) -> None: ) -class PoliciesWithStreamingResponse: - def __init__(self, policies: Policies) -> None: +class PoliciesResourceWithStreamingResponse: + def __init__(self, policies: PoliciesResource) -> None: self._policies = policies self.create = to_streamed_response_wrapper( @@ -601,8 +601,8 @@ def __init__(self, policies: Policies) -> None: ) -class AsyncPoliciesWithStreamingResponse: - def __init__(self, policies: AsyncPolicies) -> None: +class AsyncPoliciesResourceWithStreamingResponse: + def __init__(self, policies: AsyncPoliciesResource) -> None: self._policies = policies self.create = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/page_shield/scripts.py b/src/cloudflare/resources/page_shield/scripts.py index eeb2fc4e38e..147bef3320b 100644 --- a/src/cloudflare/resources/page_shield/scripts.py +++ b/src/cloudflare/resources/page_shield/scripts.py @@ -25,17 +25,17 @@ from ...types.page_shield.script import Script from ...types.page_shield.script_get_response import ScriptGetResponse -__all__ = ["Scripts", "AsyncScripts"] +__all__ = ["ScriptsResource", "AsyncScriptsResource"] -class Scripts(SyncAPIResource): +class ScriptsResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> ScriptsWithRawResponse: - return ScriptsWithRawResponse(self) + def with_raw_response(self) -> ScriptsResourceWithRawResponse: + return ScriptsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> ScriptsWithStreamingResponse: - return ScriptsWithStreamingResponse(self) + def with_streaming_response(self) -> ScriptsResourceWithStreamingResponse: + return ScriptsResourceWithStreamingResponse(self) def list( self, @@ -199,14 +199,14 @@ def get( ) -class AsyncScripts(AsyncAPIResource): +class AsyncScriptsResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncScriptsWithRawResponse: - return AsyncScriptsWithRawResponse(self) + def with_raw_response(self) -> AsyncScriptsResourceWithRawResponse: + return AsyncScriptsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncScriptsWithStreamingResponse: - return AsyncScriptsWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncScriptsResourceWithStreamingResponse: + return AsyncScriptsResourceWithStreamingResponse(self) def list( self, @@ -370,8 +370,8 @@ async def get( ) -class ScriptsWithRawResponse: - def __init__(self, scripts: Scripts) -> None: +class ScriptsResourceWithRawResponse: + def __init__(self, scripts: ScriptsResource) -> None: self._scripts = scripts self.list = to_raw_response_wrapper( @@ -382,8 +382,8 @@ def __init__(self, scripts: Scripts) -> None: ) -class AsyncScriptsWithRawResponse: - def __init__(self, scripts: AsyncScripts) -> None: +class AsyncScriptsResourceWithRawResponse: + def __init__(self, scripts: AsyncScriptsResource) -> None: self._scripts = scripts self.list = async_to_raw_response_wrapper( @@ -394,8 +394,8 @@ def __init__(self, scripts: AsyncScripts) -> None: ) -class ScriptsWithStreamingResponse: - def __init__(self, scripts: Scripts) -> None: +class ScriptsResourceWithStreamingResponse: + def __init__(self, scripts: ScriptsResource) -> None: self._scripts = scripts self.list = to_streamed_response_wrapper( @@ -406,8 +406,8 @@ def __init__(self, scripts: Scripts) -> None: ) -class AsyncScriptsWithStreamingResponse: - def __init__(self, scripts: AsyncScripts) -> None: +class AsyncScriptsResourceWithStreamingResponse: + def __init__(self, scripts: AsyncScriptsResource) -> None: self._scripts = scripts self.list = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/pagerules/__init__.py b/src/cloudflare/resources/pagerules/__init__.py index 1a849dd3594..d1c6434816b 100644 --- a/src/cloudflare/resources/pagerules/__init__.py +++ b/src/cloudflare/resources/pagerules/__init__.py @@ -1,33 +1,33 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from .settings import ( - Settings, - AsyncSettings, - SettingsWithRawResponse, - AsyncSettingsWithRawResponse, - SettingsWithStreamingResponse, - AsyncSettingsWithStreamingResponse, + SettingsResource, + AsyncSettingsResource, + SettingsResourceWithRawResponse, + AsyncSettingsResourceWithRawResponse, + SettingsResourceWithStreamingResponse, + AsyncSettingsResourceWithStreamingResponse, ) from .pagerules import ( - Pagerules, - AsyncPagerules, - PagerulesWithRawResponse, - AsyncPagerulesWithRawResponse, - PagerulesWithStreamingResponse, - AsyncPagerulesWithStreamingResponse, + PagerulesResource, + AsyncPagerulesResource, + PagerulesResourceWithRawResponse, + AsyncPagerulesResourceWithRawResponse, + PagerulesResourceWithStreamingResponse, + AsyncPagerulesResourceWithStreamingResponse, ) __all__ = [ - "Settings", - "AsyncSettings", - "SettingsWithRawResponse", - "AsyncSettingsWithRawResponse", - "SettingsWithStreamingResponse", - "AsyncSettingsWithStreamingResponse", - "Pagerules", - "AsyncPagerules", - "PagerulesWithRawResponse", - "AsyncPagerulesWithRawResponse", - "PagerulesWithStreamingResponse", - "AsyncPagerulesWithStreamingResponse", + "SettingsResource", + "AsyncSettingsResource", + "SettingsResourceWithRawResponse", + "AsyncSettingsResourceWithRawResponse", + "SettingsResourceWithStreamingResponse", + "AsyncSettingsResourceWithStreamingResponse", + "PagerulesResource", + "AsyncPagerulesResource", + "PagerulesResourceWithRawResponse", + "AsyncPagerulesResourceWithRawResponse", + "PagerulesResourceWithStreamingResponse", + "AsyncPagerulesResourceWithStreamingResponse", ] diff --git a/src/cloudflare/resources/pagerules/pagerules.py b/src/cloudflare/resources/pagerules/pagerules.py index d21e3711a07..cc4dc3a4bdf 100644 --- a/src/cloudflare/resources/pagerules/pagerules.py +++ b/src/cloudflare/resources/pagerules/pagerules.py @@ -13,12 +13,12 @@ async_maybe_transform, ) from .settings import ( - Settings, - AsyncSettings, - SettingsWithRawResponse, - AsyncSettingsWithRawResponse, - SettingsWithStreamingResponse, - AsyncSettingsWithStreamingResponse, + SettingsResource, + AsyncSettingsResource, + SettingsResourceWithRawResponse, + AsyncSettingsResourceWithRawResponse, + SettingsResourceWithStreamingResponse, + AsyncSettingsResourceWithStreamingResponse, ) from ..._compat import cached_property from ..._resource import SyncAPIResource, AsyncAPIResource @@ -48,21 +48,21 @@ from ...types.pagerules.pagerule_delete_response import PageruleDeleteResponse from ...types.pagerules.pagerule_update_response import PageruleUpdateResponse -__all__ = ["Pagerules", "AsyncPagerules"] +__all__ = ["PagerulesResource", "AsyncPagerulesResource"] -class Pagerules(SyncAPIResource): +class PagerulesResource(SyncAPIResource): @cached_property - def settings(self) -> Settings: - return Settings(self._client) + def settings(self) -> SettingsResource: + return SettingsResource(self._client) @cached_property - def with_raw_response(self) -> PagerulesWithRawResponse: - return PagerulesWithRawResponse(self) + def with_raw_response(self) -> PagerulesResourceWithRawResponse: + return PagerulesResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> PagerulesWithStreamingResponse: - return PagerulesWithStreamingResponse(self) + def with_streaming_response(self) -> PagerulesResourceWithStreamingResponse: + return PagerulesResourceWithStreamingResponse(self) def create( self, @@ -443,18 +443,18 @@ def get( ) -class AsyncPagerules(AsyncAPIResource): +class AsyncPagerulesResource(AsyncAPIResource): @cached_property - def settings(self) -> AsyncSettings: - return AsyncSettings(self._client) + def settings(self) -> AsyncSettingsResource: + return AsyncSettingsResource(self._client) @cached_property - def with_raw_response(self) -> AsyncPagerulesWithRawResponse: - return AsyncPagerulesWithRawResponse(self) + def with_raw_response(self) -> AsyncPagerulesResourceWithRawResponse: + return AsyncPagerulesResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncPagerulesWithStreamingResponse: - return AsyncPagerulesWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncPagerulesResourceWithStreamingResponse: + return AsyncPagerulesResourceWithStreamingResponse(self) async def create( self, @@ -835,8 +835,8 @@ async def get( ) -class PagerulesWithRawResponse: - def __init__(self, pagerules: Pagerules) -> None: +class PagerulesResourceWithRawResponse: + def __init__(self, pagerules: PagerulesResource) -> None: self._pagerules = pagerules self.create = to_raw_response_wrapper( @@ -859,12 +859,12 @@ def __init__(self, pagerules: Pagerules) -> None: ) @cached_property - def settings(self) -> SettingsWithRawResponse: - return SettingsWithRawResponse(self._pagerules.settings) + def settings(self) -> SettingsResourceWithRawResponse: + return SettingsResourceWithRawResponse(self._pagerules.settings) -class AsyncPagerulesWithRawResponse: - def __init__(self, pagerules: AsyncPagerules) -> None: +class AsyncPagerulesResourceWithRawResponse: + def __init__(self, pagerules: AsyncPagerulesResource) -> None: self._pagerules = pagerules self.create = async_to_raw_response_wrapper( @@ -887,12 +887,12 @@ def __init__(self, pagerules: AsyncPagerules) -> None: ) @cached_property - def settings(self) -> AsyncSettingsWithRawResponse: - return AsyncSettingsWithRawResponse(self._pagerules.settings) + def settings(self) -> AsyncSettingsResourceWithRawResponse: + return AsyncSettingsResourceWithRawResponse(self._pagerules.settings) -class PagerulesWithStreamingResponse: - def __init__(self, pagerules: Pagerules) -> None: +class PagerulesResourceWithStreamingResponse: + def __init__(self, pagerules: PagerulesResource) -> None: self._pagerules = pagerules self.create = to_streamed_response_wrapper( @@ -915,12 +915,12 @@ def __init__(self, pagerules: Pagerules) -> None: ) @cached_property - def settings(self) -> SettingsWithStreamingResponse: - return SettingsWithStreamingResponse(self._pagerules.settings) + def settings(self) -> SettingsResourceWithStreamingResponse: + return SettingsResourceWithStreamingResponse(self._pagerules.settings) -class AsyncPagerulesWithStreamingResponse: - def __init__(self, pagerules: AsyncPagerules) -> None: +class AsyncPagerulesResourceWithStreamingResponse: + def __init__(self, pagerules: AsyncPagerulesResource) -> None: self._pagerules = pagerules self.create = async_to_streamed_response_wrapper( @@ -943,5 +943,5 @@ def __init__(self, pagerules: AsyncPagerules) -> None: ) @cached_property - def settings(self) -> AsyncSettingsWithStreamingResponse: - return AsyncSettingsWithStreamingResponse(self._pagerules.settings) + def settings(self) -> AsyncSettingsResourceWithStreamingResponse: + return AsyncSettingsResourceWithStreamingResponse(self._pagerules.settings) diff --git a/src/cloudflare/resources/pagerules/settings.py b/src/cloudflare/resources/pagerules/settings.py index bb73d14ab15..b89f657bbbb 100644 --- a/src/cloudflare/resources/pagerules/settings.py +++ b/src/cloudflare/resources/pagerules/settings.py @@ -21,17 +21,17 @@ ) from ...types.pagerules.setting_list_response import SettingListResponse -__all__ = ["Settings", "AsyncSettings"] +__all__ = ["SettingsResource", "AsyncSettingsResource"] -class Settings(SyncAPIResource): +class SettingsResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> SettingsWithRawResponse: - return SettingsWithRawResponse(self) + def with_raw_response(self) -> SettingsResourceWithRawResponse: + return SettingsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> SettingsWithStreamingResponse: - return SettingsWithStreamingResponse(self) + def with_streaming_response(self) -> SettingsResourceWithStreamingResponse: + return SettingsResourceWithStreamingResponse(self) def list( self, @@ -74,14 +74,14 @@ def list( ) -class AsyncSettings(AsyncAPIResource): +class AsyncSettingsResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncSettingsWithRawResponse: - return AsyncSettingsWithRawResponse(self) + def with_raw_response(self) -> AsyncSettingsResourceWithRawResponse: + return AsyncSettingsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncSettingsWithStreamingResponse: - return AsyncSettingsWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncSettingsResourceWithStreamingResponse: + return AsyncSettingsResourceWithStreamingResponse(self) async def list( self, @@ -124,8 +124,8 @@ async def list( ) -class SettingsWithRawResponse: - def __init__(self, settings: Settings) -> None: +class SettingsResourceWithRawResponse: + def __init__(self, settings: SettingsResource) -> None: self._settings = settings self.list = to_raw_response_wrapper( @@ -133,8 +133,8 @@ def __init__(self, settings: Settings) -> None: ) -class AsyncSettingsWithRawResponse: - def __init__(self, settings: AsyncSettings) -> None: +class AsyncSettingsResourceWithRawResponse: + def __init__(self, settings: AsyncSettingsResource) -> None: self._settings = settings self.list = async_to_raw_response_wrapper( @@ -142,8 +142,8 @@ def __init__(self, settings: AsyncSettings) -> None: ) -class SettingsWithStreamingResponse: - def __init__(self, settings: Settings) -> None: +class SettingsResourceWithStreamingResponse: + def __init__(self, settings: SettingsResource) -> None: self._settings = settings self.list = to_streamed_response_wrapper( @@ -151,8 +151,8 @@ def __init__(self, settings: Settings) -> None: ) -class AsyncSettingsWithStreamingResponse: - def __init__(self, settings: AsyncSettings) -> None: +class AsyncSettingsResourceWithStreamingResponse: + def __init__(self, settings: AsyncSettingsResource) -> None: self._settings = settings self.list = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/pages/__init__.py b/src/cloudflare/resources/pages/__init__.py index 92decc9eec2..e810153f642 100644 --- a/src/cloudflare/resources/pages/__init__.py +++ b/src/cloudflare/resources/pages/__init__.py @@ -1,33 +1,33 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from .pages import ( - Pages, - AsyncPages, - PagesWithRawResponse, - AsyncPagesWithRawResponse, - PagesWithStreamingResponse, - AsyncPagesWithStreamingResponse, + PagesResource, + AsyncPagesResource, + PagesResourceWithRawResponse, + AsyncPagesResourceWithRawResponse, + PagesResourceWithStreamingResponse, + AsyncPagesResourceWithStreamingResponse, ) from .projects import ( - Projects, - AsyncProjects, - ProjectsWithRawResponse, - AsyncProjectsWithRawResponse, - ProjectsWithStreamingResponse, - AsyncProjectsWithStreamingResponse, + ProjectsResource, + AsyncProjectsResource, + ProjectsResourceWithRawResponse, + AsyncProjectsResourceWithRawResponse, + ProjectsResourceWithStreamingResponse, + AsyncProjectsResourceWithStreamingResponse, ) __all__ = [ - "Projects", - "AsyncProjects", - "ProjectsWithRawResponse", - "AsyncProjectsWithRawResponse", - "ProjectsWithStreamingResponse", - "AsyncProjectsWithStreamingResponse", - "Pages", - "AsyncPages", - "PagesWithRawResponse", - "AsyncPagesWithRawResponse", - "PagesWithStreamingResponse", - "AsyncPagesWithStreamingResponse", + "ProjectsResource", + "AsyncProjectsResource", + "ProjectsResourceWithRawResponse", + "AsyncProjectsResourceWithRawResponse", + "ProjectsResourceWithStreamingResponse", + "AsyncProjectsResourceWithStreamingResponse", + "PagesResource", + "AsyncPagesResource", + "PagesResourceWithRawResponse", + "AsyncPagesResourceWithRawResponse", + "PagesResourceWithStreamingResponse", + "AsyncPagesResourceWithStreamingResponse", ] diff --git a/src/cloudflare/resources/pages/pages.py b/src/cloudflare/resources/pages/pages.py index c34b2adadd3..e0367240c49 100644 --- a/src/cloudflare/resources/pages/pages.py +++ b/src/cloudflare/resources/pages/pages.py @@ -3,79 +3,79 @@ from __future__ import annotations from .projects import ( - Projects, - AsyncProjects, - ProjectsWithRawResponse, - AsyncProjectsWithRawResponse, - ProjectsWithStreamingResponse, - AsyncProjectsWithStreamingResponse, + ProjectsResource, + AsyncProjectsResource, + ProjectsResourceWithRawResponse, + AsyncProjectsResourceWithRawResponse, + ProjectsResourceWithStreamingResponse, + AsyncProjectsResourceWithStreamingResponse, ) from ..._compat import cached_property from ..._resource import SyncAPIResource, AsyncAPIResource -from .projects.projects import Projects, AsyncProjects +from .projects.projects import ProjectsResource, AsyncProjectsResource -__all__ = ["Pages", "AsyncPages"] +__all__ = ["PagesResource", "AsyncPagesResource"] -class Pages(SyncAPIResource): +class PagesResource(SyncAPIResource): @cached_property - def projects(self) -> Projects: - return Projects(self._client) + def projects(self) -> ProjectsResource: + return ProjectsResource(self._client) @cached_property - def with_raw_response(self) -> PagesWithRawResponse: - return PagesWithRawResponse(self) + def with_raw_response(self) -> PagesResourceWithRawResponse: + return PagesResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> PagesWithStreamingResponse: - return PagesWithStreamingResponse(self) + def with_streaming_response(self) -> PagesResourceWithStreamingResponse: + return PagesResourceWithStreamingResponse(self) -class AsyncPages(AsyncAPIResource): +class AsyncPagesResource(AsyncAPIResource): @cached_property - def projects(self) -> AsyncProjects: - return AsyncProjects(self._client) + def projects(self) -> AsyncProjectsResource: + return AsyncProjectsResource(self._client) @cached_property - def with_raw_response(self) -> AsyncPagesWithRawResponse: - return AsyncPagesWithRawResponse(self) + def with_raw_response(self) -> AsyncPagesResourceWithRawResponse: + return AsyncPagesResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncPagesWithStreamingResponse: - return AsyncPagesWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncPagesResourceWithStreamingResponse: + return AsyncPagesResourceWithStreamingResponse(self) -class PagesWithRawResponse: - def __init__(self, pages: Pages) -> None: +class PagesResourceWithRawResponse: + def __init__(self, pages: PagesResource) -> None: self._pages = pages @cached_property - def projects(self) -> ProjectsWithRawResponse: - return ProjectsWithRawResponse(self._pages.projects) + def projects(self) -> ProjectsResourceWithRawResponse: + return ProjectsResourceWithRawResponse(self._pages.projects) -class AsyncPagesWithRawResponse: - def __init__(self, pages: AsyncPages) -> None: +class AsyncPagesResourceWithRawResponse: + def __init__(self, pages: AsyncPagesResource) -> None: self._pages = pages @cached_property - def projects(self) -> AsyncProjectsWithRawResponse: - return AsyncProjectsWithRawResponse(self._pages.projects) + def projects(self) -> AsyncProjectsResourceWithRawResponse: + return AsyncProjectsResourceWithRawResponse(self._pages.projects) -class PagesWithStreamingResponse: - def __init__(self, pages: Pages) -> None: +class PagesResourceWithStreamingResponse: + def __init__(self, pages: PagesResource) -> None: self._pages = pages @cached_property - def projects(self) -> ProjectsWithStreamingResponse: - return ProjectsWithStreamingResponse(self._pages.projects) + def projects(self) -> ProjectsResourceWithStreamingResponse: + return ProjectsResourceWithStreamingResponse(self._pages.projects) -class AsyncPagesWithStreamingResponse: - def __init__(self, pages: AsyncPages) -> None: +class AsyncPagesResourceWithStreamingResponse: + def __init__(self, pages: AsyncPagesResource) -> None: self._pages = pages @cached_property - def projects(self) -> AsyncProjectsWithStreamingResponse: - return AsyncProjectsWithStreamingResponse(self._pages.projects) + def projects(self) -> AsyncProjectsResourceWithStreamingResponse: + return AsyncProjectsResourceWithStreamingResponse(self._pages.projects) diff --git a/src/cloudflare/resources/pages/projects/__init__.py b/src/cloudflare/resources/pages/projects/__init__.py index f91034d9c54..5d89924de8e 100644 --- a/src/cloudflare/resources/pages/projects/__init__.py +++ b/src/cloudflare/resources/pages/projects/__init__.py @@ -1,47 +1,47 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from .domains import ( - Domains, - AsyncDomains, - DomainsWithRawResponse, - AsyncDomainsWithRawResponse, - DomainsWithStreamingResponse, - AsyncDomainsWithStreamingResponse, + DomainsResource, + AsyncDomainsResource, + DomainsResourceWithRawResponse, + AsyncDomainsResourceWithRawResponse, + DomainsResourceWithStreamingResponse, + AsyncDomainsResourceWithStreamingResponse, ) from .projects import ( - Projects, - AsyncProjects, - ProjectsWithRawResponse, - AsyncProjectsWithRawResponse, - ProjectsWithStreamingResponse, - AsyncProjectsWithStreamingResponse, + ProjectsResource, + AsyncProjectsResource, + ProjectsResourceWithRawResponse, + AsyncProjectsResourceWithRawResponse, + ProjectsResourceWithStreamingResponse, + AsyncProjectsResourceWithStreamingResponse, ) from .deployments import ( - Deployments, - AsyncDeployments, - DeploymentsWithRawResponse, - AsyncDeploymentsWithRawResponse, - DeploymentsWithStreamingResponse, - AsyncDeploymentsWithStreamingResponse, + DeploymentsResource, + AsyncDeploymentsResource, + DeploymentsResourceWithRawResponse, + AsyncDeploymentsResourceWithRawResponse, + DeploymentsResourceWithStreamingResponse, + AsyncDeploymentsResourceWithStreamingResponse, ) __all__ = [ - "Deployments", - "AsyncDeployments", - "DeploymentsWithRawResponse", - "AsyncDeploymentsWithRawResponse", - "DeploymentsWithStreamingResponse", - "AsyncDeploymentsWithStreamingResponse", - "Domains", - "AsyncDomains", - "DomainsWithRawResponse", - "AsyncDomainsWithRawResponse", - "DomainsWithStreamingResponse", - "AsyncDomainsWithStreamingResponse", - "Projects", - "AsyncProjects", - "ProjectsWithRawResponse", - "AsyncProjectsWithRawResponse", - "ProjectsWithStreamingResponse", - "AsyncProjectsWithStreamingResponse", + "DeploymentsResource", + "AsyncDeploymentsResource", + "DeploymentsResourceWithRawResponse", + "AsyncDeploymentsResourceWithRawResponse", + "DeploymentsResourceWithStreamingResponse", + "AsyncDeploymentsResourceWithStreamingResponse", + "DomainsResource", + "AsyncDomainsResource", + "DomainsResourceWithRawResponse", + "AsyncDomainsResourceWithRawResponse", + "DomainsResourceWithStreamingResponse", + "AsyncDomainsResourceWithStreamingResponse", + "ProjectsResource", + "AsyncProjectsResource", + "ProjectsResourceWithRawResponse", + "AsyncProjectsResourceWithRawResponse", + "ProjectsResourceWithStreamingResponse", + "AsyncProjectsResourceWithStreamingResponse", ] diff --git a/src/cloudflare/resources/pages/projects/deployments/__init__.py b/src/cloudflare/resources/pages/projects/deployments/__init__.py index 3f58dc4cd0e..ef7c42c710f 100644 --- a/src/cloudflare/resources/pages/projects/deployments/__init__.py +++ b/src/cloudflare/resources/pages/projects/deployments/__init__.py @@ -1,33 +1,33 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from .history import ( - History, - AsyncHistory, - HistoryWithRawResponse, - AsyncHistoryWithRawResponse, - HistoryWithStreamingResponse, - AsyncHistoryWithStreamingResponse, + HistoryResource, + AsyncHistoryResource, + HistoryResourceWithRawResponse, + AsyncHistoryResourceWithRawResponse, + HistoryResourceWithStreamingResponse, + AsyncHistoryResourceWithStreamingResponse, ) from .deployments import ( - Deployments, - AsyncDeployments, - DeploymentsWithRawResponse, - AsyncDeploymentsWithRawResponse, - DeploymentsWithStreamingResponse, - AsyncDeploymentsWithStreamingResponse, + DeploymentsResource, + AsyncDeploymentsResource, + DeploymentsResourceWithRawResponse, + AsyncDeploymentsResourceWithRawResponse, + DeploymentsResourceWithStreamingResponse, + AsyncDeploymentsResourceWithStreamingResponse, ) __all__ = [ - "History", - "AsyncHistory", - "HistoryWithRawResponse", - "AsyncHistoryWithRawResponse", - "HistoryWithStreamingResponse", - "AsyncHistoryWithStreamingResponse", - "Deployments", - "AsyncDeployments", - "DeploymentsWithRawResponse", - "AsyncDeploymentsWithRawResponse", - "DeploymentsWithStreamingResponse", - "AsyncDeploymentsWithStreamingResponse", + "HistoryResource", + "AsyncHistoryResource", + "HistoryResourceWithRawResponse", + "AsyncHistoryResourceWithRawResponse", + "HistoryResourceWithStreamingResponse", + "AsyncHistoryResourceWithStreamingResponse", + "DeploymentsResource", + "AsyncDeploymentsResource", + "DeploymentsResourceWithRawResponse", + "AsyncDeploymentsResourceWithRawResponse", + "DeploymentsResourceWithStreamingResponse", + "AsyncDeploymentsResourceWithStreamingResponse", ] diff --git a/src/cloudflare/resources/pages/projects/deployments/deployments.py b/src/cloudflare/resources/pages/projects/deployments/deployments.py index cb8abe757c7..afc233c1feb 100644 --- a/src/cloudflare/resources/pages/projects/deployments/deployments.py +++ b/src/cloudflare/resources/pages/projects/deployments/deployments.py @@ -8,12 +8,12 @@ import httpx from .history import ( - History, - AsyncHistory, - HistoryWithRawResponse, - AsyncHistoryWithRawResponse, - HistoryWithStreamingResponse, - AsyncHistoryWithStreamingResponse, + HistoryResource, + AsyncHistoryResource, + HistoryResourceWithRawResponse, + AsyncHistoryResourceWithRawResponse, + HistoryResourceWithStreamingResponse, + AsyncHistoryResourceWithStreamingResponse, ) from ....._types import NOT_GIVEN, Body, Query, Headers, NotGiven from ....._utils import ( @@ -30,7 +30,7 @@ ) from ....._wrappers import ResultWrapper from .....pagination import SyncSinglePage, AsyncSinglePage -from .history.history import History, AsyncHistory +from .history.history import HistoryResource, AsyncHistoryResource from ....._base_client import ( AsyncPaginator, make_request_options, @@ -44,21 +44,21 @@ ) from .....types.pages.deployment import Deployment -__all__ = ["Deployments", "AsyncDeployments"] +__all__ = ["DeploymentsResource", "AsyncDeploymentsResource"] -class Deployments(SyncAPIResource): +class DeploymentsResource(SyncAPIResource): @cached_property - def history(self) -> History: - return History(self._client) + def history(self) -> HistoryResource: + return HistoryResource(self._client) @cached_property - def with_raw_response(self) -> DeploymentsWithRawResponse: - return DeploymentsWithRawResponse(self) + def with_raw_response(self) -> DeploymentsResourceWithRawResponse: + return DeploymentsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> DeploymentsWithStreamingResponse: - return DeploymentsWithStreamingResponse(self) + def with_streaming_response(self) -> DeploymentsResourceWithStreamingResponse: + return DeploymentsResourceWithStreamingResponse(self) def create( self, @@ -360,18 +360,18 @@ def rollback( ) -class AsyncDeployments(AsyncAPIResource): +class AsyncDeploymentsResource(AsyncAPIResource): @cached_property - def history(self) -> AsyncHistory: - return AsyncHistory(self._client) + def history(self) -> AsyncHistoryResource: + return AsyncHistoryResource(self._client) @cached_property - def with_raw_response(self) -> AsyncDeploymentsWithRawResponse: - return AsyncDeploymentsWithRawResponse(self) + def with_raw_response(self) -> AsyncDeploymentsResourceWithRawResponse: + return AsyncDeploymentsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncDeploymentsWithStreamingResponse: - return AsyncDeploymentsWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncDeploymentsResourceWithStreamingResponse: + return AsyncDeploymentsResourceWithStreamingResponse(self) async def create( self, @@ -673,8 +673,8 @@ async def rollback( ) -class DeploymentsWithRawResponse: - def __init__(self, deployments: Deployments) -> None: +class DeploymentsResourceWithRawResponse: + def __init__(self, deployments: DeploymentsResource) -> None: self._deployments = deployments self.create = to_raw_response_wrapper( @@ -697,12 +697,12 @@ def __init__(self, deployments: Deployments) -> None: ) @cached_property - def history(self) -> HistoryWithRawResponse: - return HistoryWithRawResponse(self._deployments.history) + def history(self) -> HistoryResourceWithRawResponse: + return HistoryResourceWithRawResponse(self._deployments.history) -class AsyncDeploymentsWithRawResponse: - def __init__(self, deployments: AsyncDeployments) -> None: +class AsyncDeploymentsResourceWithRawResponse: + def __init__(self, deployments: AsyncDeploymentsResource) -> None: self._deployments = deployments self.create = async_to_raw_response_wrapper( @@ -725,12 +725,12 @@ def __init__(self, deployments: AsyncDeployments) -> None: ) @cached_property - def history(self) -> AsyncHistoryWithRawResponse: - return AsyncHistoryWithRawResponse(self._deployments.history) + def history(self) -> AsyncHistoryResourceWithRawResponse: + return AsyncHistoryResourceWithRawResponse(self._deployments.history) -class DeploymentsWithStreamingResponse: - def __init__(self, deployments: Deployments) -> None: +class DeploymentsResourceWithStreamingResponse: + def __init__(self, deployments: DeploymentsResource) -> None: self._deployments = deployments self.create = to_streamed_response_wrapper( @@ -753,12 +753,12 @@ def __init__(self, deployments: Deployments) -> None: ) @cached_property - def history(self) -> HistoryWithStreamingResponse: - return HistoryWithStreamingResponse(self._deployments.history) + def history(self) -> HistoryResourceWithStreamingResponse: + return HistoryResourceWithStreamingResponse(self._deployments.history) -class AsyncDeploymentsWithStreamingResponse: - def __init__(self, deployments: AsyncDeployments) -> None: +class AsyncDeploymentsResourceWithStreamingResponse: + def __init__(self, deployments: AsyncDeploymentsResource) -> None: self._deployments = deployments self.create = async_to_streamed_response_wrapper( @@ -781,5 +781,5 @@ def __init__(self, deployments: AsyncDeployments) -> None: ) @cached_property - def history(self) -> AsyncHistoryWithStreamingResponse: - return AsyncHistoryWithStreamingResponse(self._deployments.history) + def history(self) -> AsyncHistoryResourceWithStreamingResponse: + return AsyncHistoryResourceWithStreamingResponse(self._deployments.history) diff --git a/src/cloudflare/resources/pages/projects/deployments/history/__init__.py b/src/cloudflare/resources/pages/projects/deployments/history/__init__.py index 59c515d3016..a5b63015d9f 100644 --- a/src/cloudflare/resources/pages/projects/deployments/history/__init__.py +++ b/src/cloudflare/resources/pages/projects/deployments/history/__init__.py @@ -1,33 +1,33 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from .logs import ( - Logs, - AsyncLogs, - LogsWithRawResponse, - AsyncLogsWithRawResponse, - LogsWithStreamingResponse, - AsyncLogsWithStreamingResponse, + LogsResource, + AsyncLogsResource, + LogsResourceWithRawResponse, + AsyncLogsResourceWithRawResponse, + LogsResourceWithStreamingResponse, + AsyncLogsResourceWithStreamingResponse, ) from .history import ( - History, - AsyncHistory, - HistoryWithRawResponse, - AsyncHistoryWithRawResponse, - HistoryWithStreamingResponse, - AsyncHistoryWithStreamingResponse, + HistoryResource, + AsyncHistoryResource, + HistoryResourceWithRawResponse, + AsyncHistoryResourceWithRawResponse, + HistoryResourceWithStreamingResponse, + AsyncHistoryResourceWithStreamingResponse, ) __all__ = [ - "Logs", - "AsyncLogs", - "LogsWithRawResponse", - "AsyncLogsWithRawResponse", - "LogsWithStreamingResponse", - "AsyncLogsWithStreamingResponse", - "History", - "AsyncHistory", - "HistoryWithRawResponse", - "AsyncHistoryWithRawResponse", - "HistoryWithStreamingResponse", - "AsyncHistoryWithStreamingResponse", + "LogsResource", + "AsyncLogsResource", + "LogsResourceWithRawResponse", + "AsyncLogsResourceWithRawResponse", + "LogsResourceWithStreamingResponse", + "AsyncLogsResourceWithStreamingResponse", + "HistoryResource", + "AsyncHistoryResource", + "HistoryResourceWithRawResponse", + "AsyncHistoryResourceWithRawResponse", + "HistoryResourceWithStreamingResponse", + "AsyncHistoryResourceWithStreamingResponse", ] diff --git a/src/cloudflare/resources/pages/projects/deployments/history/history.py b/src/cloudflare/resources/pages/projects/deployments/history/history.py index e4c5a3babc5..7258c71fc9a 100644 --- a/src/cloudflare/resources/pages/projects/deployments/history/history.py +++ b/src/cloudflare/resources/pages/projects/deployments/history/history.py @@ -3,78 +3,78 @@ from __future__ import annotations from .logs import ( - Logs, - AsyncLogs, - LogsWithRawResponse, - AsyncLogsWithRawResponse, - LogsWithStreamingResponse, - AsyncLogsWithStreamingResponse, + LogsResource, + AsyncLogsResource, + LogsResourceWithRawResponse, + AsyncLogsResourceWithRawResponse, + LogsResourceWithStreamingResponse, + AsyncLogsResourceWithStreamingResponse, ) from ......_compat import cached_property from ......_resource import SyncAPIResource, AsyncAPIResource -__all__ = ["History", "AsyncHistory"] +__all__ = ["HistoryResource", "AsyncHistoryResource"] -class History(SyncAPIResource): +class HistoryResource(SyncAPIResource): @cached_property - def logs(self) -> Logs: - return Logs(self._client) + def logs(self) -> LogsResource: + return LogsResource(self._client) @cached_property - def with_raw_response(self) -> HistoryWithRawResponse: - return HistoryWithRawResponse(self) + def with_raw_response(self) -> HistoryResourceWithRawResponse: + return HistoryResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> HistoryWithStreamingResponse: - return HistoryWithStreamingResponse(self) + def with_streaming_response(self) -> HistoryResourceWithStreamingResponse: + return HistoryResourceWithStreamingResponse(self) -class AsyncHistory(AsyncAPIResource): +class AsyncHistoryResource(AsyncAPIResource): @cached_property - def logs(self) -> AsyncLogs: - return AsyncLogs(self._client) + def logs(self) -> AsyncLogsResource: + return AsyncLogsResource(self._client) @cached_property - def with_raw_response(self) -> AsyncHistoryWithRawResponse: - return AsyncHistoryWithRawResponse(self) + def with_raw_response(self) -> AsyncHistoryResourceWithRawResponse: + return AsyncHistoryResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncHistoryWithStreamingResponse: - return AsyncHistoryWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncHistoryResourceWithStreamingResponse: + return AsyncHistoryResourceWithStreamingResponse(self) -class HistoryWithRawResponse: - def __init__(self, history: History) -> None: +class HistoryResourceWithRawResponse: + def __init__(self, history: HistoryResource) -> None: self._history = history @cached_property - def logs(self) -> LogsWithRawResponse: - return LogsWithRawResponse(self._history.logs) + def logs(self) -> LogsResourceWithRawResponse: + return LogsResourceWithRawResponse(self._history.logs) -class AsyncHistoryWithRawResponse: - def __init__(self, history: AsyncHistory) -> None: +class AsyncHistoryResourceWithRawResponse: + def __init__(self, history: AsyncHistoryResource) -> None: self._history = history @cached_property - def logs(self) -> AsyncLogsWithRawResponse: - return AsyncLogsWithRawResponse(self._history.logs) + def logs(self) -> AsyncLogsResourceWithRawResponse: + return AsyncLogsResourceWithRawResponse(self._history.logs) -class HistoryWithStreamingResponse: - def __init__(self, history: History) -> None: +class HistoryResourceWithStreamingResponse: + def __init__(self, history: HistoryResource) -> None: self._history = history @cached_property - def logs(self) -> LogsWithStreamingResponse: - return LogsWithStreamingResponse(self._history.logs) + def logs(self) -> LogsResourceWithStreamingResponse: + return LogsResourceWithStreamingResponse(self._history.logs) -class AsyncHistoryWithStreamingResponse: - def __init__(self, history: AsyncHistory) -> None: +class AsyncHistoryResourceWithStreamingResponse: + def __init__(self, history: AsyncHistoryResource) -> None: self._history = history @cached_property - def logs(self) -> AsyncLogsWithStreamingResponse: - return AsyncLogsWithStreamingResponse(self._history.logs) + def logs(self) -> AsyncLogsResourceWithStreamingResponse: + return AsyncLogsResourceWithStreamingResponse(self._history.logs) diff --git a/src/cloudflare/resources/pages/projects/deployments/history/logs.py b/src/cloudflare/resources/pages/projects/deployments/history/logs.py index 1d6d85bca2f..b3a5e2aaf67 100644 --- a/src/cloudflare/resources/pages/projects/deployments/history/logs.py +++ b/src/cloudflare/resources/pages/projects/deployments/history/logs.py @@ -21,17 +21,17 @@ ) from ......types.pages.projects.deployments.history.log_get_response import LogGetResponse -__all__ = ["Logs", "AsyncLogs"] +__all__ = ["LogsResource", "AsyncLogsResource"] -class Logs(SyncAPIResource): +class LogsResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> LogsWithRawResponse: - return LogsWithRawResponse(self) + def with_raw_response(self) -> LogsResourceWithRawResponse: + return LogsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> LogsWithStreamingResponse: - return LogsWithStreamingResponse(self) + def with_streaming_response(self) -> LogsResourceWithStreamingResponse: + return LogsResourceWithStreamingResponse(self) def get( self, @@ -88,14 +88,14 @@ def get( ) -class AsyncLogs(AsyncAPIResource): +class AsyncLogsResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncLogsWithRawResponse: - return AsyncLogsWithRawResponse(self) + def with_raw_response(self) -> AsyncLogsResourceWithRawResponse: + return AsyncLogsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncLogsWithStreamingResponse: - return AsyncLogsWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncLogsResourceWithStreamingResponse: + return AsyncLogsResourceWithStreamingResponse(self) async def get( self, @@ -152,8 +152,8 @@ async def get( ) -class LogsWithRawResponse: - def __init__(self, logs: Logs) -> None: +class LogsResourceWithRawResponse: + def __init__(self, logs: LogsResource) -> None: self._logs = logs self.get = to_raw_response_wrapper( @@ -161,8 +161,8 @@ def __init__(self, logs: Logs) -> None: ) -class AsyncLogsWithRawResponse: - def __init__(self, logs: AsyncLogs) -> None: +class AsyncLogsResourceWithRawResponse: + def __init__(self, logs: AsyncLogsResource) -> None: self._logs = logs self.get = async_to_raw_response_wrapper( @@ -170,8 +170,8 @@ def __init__(self, logs: AsyncLogs) -> None: ) -class LogsWithStreamingResponse: - def __init__(self, logs: Logs) -> None: +class LogsResourceWithStreamingResponse: + def __init__(self, logs: LogsResource) -> None: self._logs = logs self.get = to_streamed_response_wrapper( @@ -179,8 +179,8 @@ def __init__(self, logs: Logs) -> None: ) -class AsyncLogsWithStreamingResponse: - def __init__(self, logs: AsyncLogs) -> None: +class AsyncLogsResourceWithStreamingResponse: + def __init__(self, logs: AsyncLogsResource) -> None: self._logs = logs self.get = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/pages/projects/domains.py b/src/cloudflare/resources/pages/projects/domains.py index 8fe842362dd..d968c436061 100644 --- a/src/cloudflare/resources/pages/projects/domains.py +++ b/src/cloudflare/resources/pages/projects/domains.py @@ -30,17 +30,17 @@ from ....types.pages.projects.domain_edit_response import DomainEditResponse from ....types.pages.projects.domain_create_response import DomainCreateResponse -__all__ = ["Domains", "AsyncDomains"] +__all__ = ["DomainsResource", "AsyncDomainsResource"] -class Domains(SyncAPIResource): +class DomainsResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> DomainsWithRawResponse: - return DomainsWithRawResponse(self) + def with_raw_response(self) -> DomainsResourceWithRawResponse: + return DomainsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> DomainsWithStreamingResponse: - return DomainsWithStreamingResponse(self) + def with_streaming_response(self) -> DomainsResourceWithStreamingResponse: + return DomainsResourceWithStreamingResponse(self) def create( self, @@ -292,14 +292,14 @@ def get( ) -class AsyncDomains(AsyncAPIResource): +class AsyncDomainsResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncDomainsWithRawResponse: - return AsyncDomainsWithRawResponse(self) + def with_raw_response(self) -> AsyncDomainsResourceWithRawResponse: + return AsyncDomainsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncDomainsWithStreamingResponse: - return AsyncDomainsWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncDomainsResourceWithStreamingResponse: + return AsyncDomainsResourceWithStreamingResponse(self) async def create( self, @@ -551,8 +551,8 @@ async def get( ) -class DomainsWithRawResponse: - def __init__(self, domains: Domains) -> None: +class DomainsResourceWithRawResponse: + def __init__(self, domains: DomainsResource) -> None: self._domains = domains self.create = to_raw_response_wrapper( @@ -572,8 +572,8 @@ def __init__(self, domains: Domains) -> None: ) -class AsyncDomainsWithRawResponse: - def __init__(self, domains: AsyncDomains) -> None: +class AsyncDomainsResourceWithRawResponse: + def __init__(self, domains: AsyncDomainsResource) -> None: self._domains = domains self.create = async_to_raw_response_wrapper( @@ -593,8 +593,8 @@ def __init__(self, domains: AsyncDomains) -> None: ) -class DomainsWithStreamingResponse: - def __init__(self, domains: Domains) -> None: +class DomainsResourceWithStreamingResponse: + def __init__(self, domains: DomainsResource) -> None: self._domains = domains self.create = to_streamed_response_wrapper( @@ -614,8 +614,8 @@ def __init__(self, domains: Domains) -> None: ) -class AsyncDomainsWithStreamingResponse: - def __init__(self, domains: AsyncDomains) -> None: +class AsyncDomainsResourceWithStreamingResponse: + def __init__(self, domains: AsyncDomainsResource) -> None: self._domains = domains self.create = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/pages/projects/projects.py b/src/cloudflare/resources/pages/projects/projects.py index 4382f8220a4..d2090062d4f 100644 --- a/src/cloudflare/resources/pages/projects/projects.py +++ b/src/cloudflare/resources/pages/projects/projects.py @@ -7,12 +7,12 @@ import httpx from .domains import ( - Domains, - AsyncDomains, - DomainsWithRawResponse, - AsyncDomainsWithRawResponse, - DomainsWithStreamingResponse, - AsyncDomainsWithStreamingResponse, + DomainsResource, + AsyncDomainsResource, + DomainsResourceWithRawResponse, + AsyncDomainsResourceWithRawResponse, + DomainsResourceWithStreamingResponse, + AsyncDomainsResourceWithStreamingResponse, ) from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven from ...._utils import ( @@ -21,12 +21,12 @@ ) from ...._compat import cached_property from .deployments import ( - Deployments, - AsyncDeployments, - DeploymentsWithRawResponse, - AsyncDeploymentsWithRawResponse, - DeploymentsWithStreamingResponse, - AsyncDeploymentsWithStreamingResponse, + DeploymentsResource, + AsyncDeploymentsResource, + DeploymentsResourceWithRawResponse, + AsyncDeploymentsResourceWithRawResponse, + DeploymentsResourceWithStreamingResponse, + AsyncDeploymentsResourceWithStreamingResponse, ) from ...._resource import SyncAPIResource, AsyncAPIResource from ...._response import ( @@ -43,31 +43,31 @@ make_request_options, ) from ....types.pages.project import Project -from .deployments.deployments import Deployments, AsyncDeployments +from .deployments.deployments import DeploymentsResource, AsyncDeploymentsResource from ....types.pages.deployment import Deployment from ....types.pages.deployment_param import DeploymentParam from ....types.pages.project_edit_response import ProjectEditResponse from ....types.pages.project_create_response import ProjectCreateResponse -__all__ = ["Projects", "AsyncProjects"] +__all__ = ["ProjectsResource", "AsyncProjectsResource"] -class Projects(SyncAPIResource): +class ProjectsResource(SyncAPIResource): @cached_property - def deployments(self) -> Deployments: - return Deployments(self._client) + def deployments(self) -> DeploymentsResource: + return DeploymentsResource(self._client) @cached_property - def domains(self) -> Domains: - return Domains(self._client) + def domains(self) -> DomainsResource: + return DomainsResource(self._client) @cached_property - def with_raw_response(self) -> ProjectsWithRawResponse: - return ProjectsWithRawResponse(self) + def with_raw_response(self) -> ProjectsResourceWithRawResponse: + return ProjectsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> ProjectsWithStreamingResponse: - return ProjectsWithStreamingResponse(self) + def with_streaming_response(self) -> ProjectsResourceWithStreamingResponse: + return ProjectsResourceWithStreamingResponse(self) def create( self, @@ -354,22 +354,22 @@ def purge_build_cache( ) -class AsyncProjects(AsyncAPIResource): +class AsyncProjectsResource(AsyncAPIResource): @cached_property - def deployments(self) -> AsyncDeployments: - return AsyncDeployments(self._client) + def deployments(self) -> AsyncDeploymentsResource: + return AsyncDeploymentsResource(self._client) @cached_property - def domains(self) -> AsyncDomains: - return AsyncDomains(self._client) + def domains(self) -> AsyncDomainsResource: + return AsyncDomainsResource(self._client) @cached_property - def with_raw_response(self) -> AsyncProjectsWithRawResponse: - return AsyncProjectsWithRawResponse(self) + def with_raw_response(self) -> AsyncProjectsResourceWithRawResponse: + return AsyncProjectsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncProjectsWithStreamingResponse: - return AsyncProjectsWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncProjectsResourceWithStreamingResponse: + return AsyncProjectsResourceWithStreamingResponse(self) async def create( self, @@ -656,8 +656,8 @@ async def purge_build_cache( ) -class ProjectsWithRawResponse: - def __init__(self, projects: Projects) -> None: +class ProjectsResourceWithRawResponse: + def __init__(self, projects: ProjectsResource) -> None: self._projects = projects self.create = to_raw_response_wrapper( @@ -680,16 +680,16 @@ def __init__(self, projects: Projects) -> None: ) @cached_property - def deployments(self) -> DeploymentsWithRawResponse: - return DeploymentsWithRawResponse(self._projects.deployments) + def deployments(self) -> DeploymentsResourceWithRawResponse: + return DeploymentsResourceWithRawResponse(self._projects.deployments) @cached_property - def domains(self) -> DomainsWithRawResponse: - return DomainsWithRawResponse(self._projects.domains) + def domains(self) -> DomainsResourceWithRawResponse: + return DomainsResourceWithRawResponse(self._projects.domains) -class AsyncProjectsWithRawResponse: - def __init__(self, projects: AsyncProjects) -> None: +class AsyncProjectsResourceWithRawResponse: + def __init__(self, projects: AsyncProjectsResource) -> None: self._projects = projects self.create = async_to_raw_response_wrapper( @@ -712,16 +712,16 @@ def __init__(self, projects: AsyncProjects) -> None: ) @cached_property - def deployments(self) -> AsyncDeploymentsWithRawResponse: - return AsyncDeploymentsWithRawResponse(self._projects.deployments) + def deployments(self) -> AsyncDeploymentsResourceWithRawResponse: + return AsyncDeploymentsResourceWithRawResponse(self._projects.deployments) @cached_property - def domains(self) -> AsyncDomainsWithRawResponse: - return AsyncDomainsWithRawResponse(self._projects.domains) + def domains(self) -> AsyncDomainsResourceWithRawResponse: + return AsyncDomainsResourceWithRawResponse(self._projects.domains) -class ProjectsWithStreamingResponse: - def __init__(self, projects: Projects) -> None: +class ProjectsResourceWithStreamingResponse: + def __init__(self, projects: ProjectsResource) -> None: self._projects = projects self.create = to_streamed_response_wrapper( @@ -744,16 +744,16 @@ def __init__(self, projects: Projects) -> None: ) @cached_property - def deployments(self) -> DeploymentsWithStreamingResponse: - return DeploymentsWithStreamingResponse(self._projects.deployments) + def deployments(self) -> DeploymentsResourceWithStreamingResponse: + return DeploymentsResourceWithStreamingResponse(self._projects.deployments) @cached_property - def domains(self) -> DomainsWithStreamingResponse: - return DomainsWithStreamingResponse(self._projects.domains) + def domains(self) -> DomainsResourceWithStreamingResponse: + return DomainsResourceWithStreamingResponse(self._projects.domains) -class AsyncProjectsWithStreamingResponse: - def __init__(self, projects: AsyncProjects) -> None: +class AsyncProjectsResourceWithStreamingResponse: + def __init__(self, projects: AsyncProjectsResource) -> None: self._projects = projects self.create = async_to_streamed_response_wrapper( @@ -776,9 +776,9 @@ def __init__(self, projects: AsyncProjects) -> None: ) @cached_property - def deployments(self) -> AsyncDeploymentsWithStreamingResponse: - return AsyncDeploymentsWithStreamingResponse(self._projects.deployments) + def deployments(self) -> AsyncDeploymentsResourceWithStreamingResponse: + return AsyncDeploymentsResourceWithStreamingResponse(self._projects.deployments) @cached_property - def domains(self) -> AsyncDomainsWithStreamingResponse: - return AsyncDomainsWithStreamingResponse(self._projects.domains) + def domains(self) -> AsyncDomainsResourceWithStreamingResponse: + return AsyncDomainsResourceWithStreamingResponse(self._projects.domains) diff --git a/src/cloudflare/resources/pcaps/__init__.py b/src/cloudflare/resources/pcaps/__init__.py index bbb51133cbe..3ff03d0256d 100644 --- a/src/cloudflare/resources/pcaps/__init__.py +++ b/src/cloudflare/resources/pcaps/__init__.py @@ -1,20 +1,20 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from .pcaps import ( - PCAPs, - AsyncPCAPs, - PCAPsWithRawResponse, - AsyncPCAPsWithRawResponse, - PCAPsWithStreamingResponse, - AsyncPCAPsWithStreamingResponse, + PCAPsResource, + AsyncPCAPsResource, + PCAPsResourceWithRawResponse, + AsyncPCAPsResourceWithRawResponse, + PCAPsResourceWithStreamingResponse, + AsyncPCAPsResourceWithStreamingResponse, ) from .download import ( - Download, - AsyncDownload, - DownloadWithRawResponse, - AsyncDownloadWithRawResponse, - DownloadWithStreamingResponse, - AsyncDownloadWithStreamingResponse, + DownloadResource, + AsyncDownloadResource, + DownloadResourceWithRawResponse, + AsyncDownloadResourceWithRawResponse, + DownloadResourceWithStreamingResponse, + AsyncDownloadResourceWithStreamingResponse, ) from .ownership import ( OwnershipResource, @@ -32,16 +32,16 @@ "AsyncOwnershipResourceWithRawResponse", "OwnershipResourceWithStreamingResponse", "AsyncOwnershipResourceWithStreamingResponse", - "Download", - "AsyncDownload", - "DownloadWithRawResponse", - "AsyncDownloadWithRawResponse", - "DownloadWithStreamingResponse", - "AsyncDownloadWithStreamingResponse", - "PCAPs", - "AsyncPCAPs", - "PCAPsWithRawResponse", - "AsyncPCAPsWithRawResponse", - "PCAPsWithStreamingResponse", - "AsyncPCAPsWithStreamingResponse", + "DownloadResource", + "AsyncDownloadResource", + "DownloadResourceWithRawResponse", + "AsyncDownloadResourceWithRawResponse", + "DownloadResourceWithStreamingResponse", + "AsyncDownloadResourceWithStreamingResponse", + "PCAPsResource", + "AsyncPCAPsResource", + "PCAPsResourceWithRawResponse", + "AsyncPCAPsResourceWithRawResponse", + "PCAPsResourceWithStreamingResponse", + "AsyncPCAPsResourceWithStreamingResponse", ] diff --git a/src/cloudflare/resources/pcaps/download.py b/src/cloudflare/resources/pcaps/download.py index 997eb11fa32..de8e8fa0168 100644 --- a/src/cloudflare/resources/pcaps/download.py +++ b/src/cloudflare/resources/pcaps/download.py @@ -21,17 +21,17 @@ make_request_options, ) -__all__ = ["Download", "AsyncDownload"] +__all__ = ["DownloadResource", "AsyncDownloadResource"] -class Download(SyncAPIResource): +class DownloadResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> DownloadWithRawResponse: - return DownloadWithRawResponse(self) + def with_raw_response(self) -> DownloadResourceWithRawResponse: + return DownloadResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> DownloadWithStreamingResponse: - return DownloadWithStreamingResponse(self) + def with_streaming_response(self) -> DownloadResourceWithStreamingResponse: + return DownloadResourceWithStreamingResponse(self) def get( self, @@ -76,14 +76,14 @@ def get( ) -class AsyncDownload(AsyncAPIResource): +class AsyncDownloadResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncDownloadWithRawResponse: - return AsyncDownloadWithRawResponse(self) + def with_raw_response(self) -> AsyncDownloadResourceWithRawResponse: + return AsyncDownloadResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncDownloadWithStreamingResponse: - return AsyncDownloadWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncDownloadResourceWithStreamingResponse: + return AsyncDownloadResourceWithStreamingResponse(self) async def get( self, @@ -128,8 +128,8 @@ async def get( ) -class DownloadWithRawResponse: - def __init__(self, download: Download) -> None: +class DownloadResourceWithRawResponse: + def __init__(self, download: DownloadResource) -> None: self._download = download self.get = to_custom_raw_response_wrapper( @@ -138,8 +138,8 @@ def __init__(self, download: Download) -> None: ) -class AsyncDownloadWithRawResponse: - def __init__(self, download: AsyncDownload) -> None: +class AsyncDownloadResourceWithRawResponse: + def __init__(self, download: AsyncDownloadResource) -> None: self._download = download self.get = async_to_custom_raw_response_wrapper( @@ -148,8 +148,8 @@ def __init__(self, download: AsyncDownload) -> None: ) -class DownloadWithStreamingResponse: - def __init__(self, download: Download) -> None: +class DownloadResourceWithStreamingResponse: + def __init__(self, download: DownloadResource) -> None: self._download = download self.get = to_custom_streamed_response_wrapper( @@ -158,8 +158,8 @@ def __init__(self, download: Download) -> None: ) -class AsyncDownloadWithStreamingResponse: - def __init__(self, download: AsyncDownload) -> None: +class AsyncDownloadResourceWithStreamingResponse: + def __init__(self, download: AsyncDownloadResource) -> None: self._download = download self.get = async_to_custom_streamed_response_wrapper( diff --git a/src/cloudflare/resources/pcaps/pcaps.py b/src/cloudflare/resources/pcaps/pcaps.py index d0a955ceada..e6ea121deb1 100644 --- a/src/cloudflare/resources/pcaps/pcaps.py +++ b/src/cloudflare/resources/pcaps/pcaps.py @@ -14,12 +14,12 @@ async_maybe_transform, ) from .download import ( - Download, - AsyncDownload, - DownloadWithRawResponse, - AsyncDownloadWithRawResponse, - DownloadWithStreamingResponse, - AsyncDownloadWithStreamingResponse, + DownloadResource, + AsyncDownloadResource, + DownloadResourceWithRawResponse, + AsyncDownloadResourceWithRawResponse, + DownloadResourceWithStreamingResponse, + AsyncDownloadResourceWithStreamingResponse, ) from ..._compat import cached_property from .ownership import ( @@ -49,25 +49,25 @@ from ...types.pcaps.pcap_list_response import PCAPListResponse from ...types.pcaps.pcap_create_response import PCAPCreateResponse -__all__ = ["PCAPs", "AsyncPCAPs"] +__all__ = ["PCAPsResource", "AsyncPCAPsResource"] -class PCAPs(SyncAPIResource): +class PCAPsResource(SyncAPIResource): @cached_property def ownership(self) -> OwnershipResource: return OwnershipResource(self._client) @cached_property - def download(self) -> Download: - return Download(self._client) + def download(self) -> DownloadResource: + return DownloadResource(self._client) @cached_property - def with_raw_response(self) -> PCAPsWithRawResponse: - return PCAPsWithRawResponse(self) + def with_raw_response(self) -> PCAPsResourceWithRawResponse: + return PCAPsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> PCAPsWithStreamingResponse: - return PCAPsWithStreamingResponse(self) + def with_streaming_response(self) -> PCAPsResourceWithStreamingResponse: + return PCAPsResourceWithStreamingResponse(self) @overload def create( @@ -310,22 +310,22 @@ def get( ) -class AsyncPCAPs(AsyncAPIResource): +class AsyncPCAPsResource(AsyncAPIResource): @cached_property def ownership(self) -> AsyncOwnershipResource: return AsyncOwnershipResource(self._client) @cached_property - def download(self) -> AsyncDownload: - return AsyncDownload(self._client) + def download(self) -> AsyncDownloadResource: + return AsyncDownloadResource(self._client) @cached_property - def with_raw_response(self) -> AsyncPCAPsWithRawResponse: - return AsyncPCAPsWithRawResponse(self) + def with_raw_response(self) -> AsyncPCAPsResourceWithRawResponse: + return AsyncPCAPsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncPCAPsWithStreamingResponse: - return AsyncPCAPsWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncPCAPsResourceWithStreamingResponse: + return AsyncPCAPsResourceWithStreamingResponse(self) @overload async def create( @@ -568,8 +568,8 @@ async def get( ) -class PCAPsWithRawResponse: - def __init__(self, pcaps: PCAPs) -> None: +class PCAPsResourceWithRawResponse: + def __init__(self, pcaps: PCAPsResource) -> None: self._pcaps = pcaps self.create = to_raw_response_wrapper( @@ -587,12 +587,12 @@ def ownership(self) -> OwnershipResourceWithRawResponse: return OwnershipResourceWithRawResponse(self._pcaps.ownership) @cached_property - def download(self) -> DownloadWithRawResponse: - return DownloadWithRawResponse(self._pcaps.download) + def download(self) -> DownloadResourceWithRawResponse: + return DownloadResourceWithRawResponse(self._pcaps.download) -class AsyncPCAPsWithRawResponse: - def __init__(self, pcaps: AsyncPCAPs) -> None: +class AsyncPCAPsResourceWithRawResponse: + def __init__(self, pcaps: AsyncPCAPsResource) -> None: self._pcaps = pcaps self.create = async_to_raw_response_wrapper( @@ -610,12 +610,12 @@ def ownership(self) -> AsyncOwnershipResourceWithRawResponse: return AsyncOwnershipResourceWithRawResponse(self._pcaps.ownership) @cached_property - def download(self) -> AsyncDownloadWithRawResponse: - return AsyncDownloadWithRawResponse(self._pcaps.download) + def download(self) -> AsyncDownloadResourceWithRawResponse: + return AsyncDownloadResourceWithRawResponse(self._pcaps.download) -class PCAPsWithStreamingResponse: - def __init__(self, pcaps: PCAPs) -> None: +class PCAPsResourceWithStreamingResponse: + def __init__(self, pcaps: PCAPsResource) -> None: self._pcaps = pcaps self.create = to_streamed_response_wrapper( @@ -633,12 +633,12 @@ def ownership(self) -> OwnershipResourceWithStreamingResponse: return OwnershipResourceWithStreamingResponse(self._pcaps.ownership) @cached_property - def download(self) -> DownloadWithStreamingResponse: - return DownloadWithStreamingResponse(self._pcaps.download) + def download(self) -> DownloadResourceWithStreamingResponse: + return DownloadResourceWithStreamingResponse(self._pcaps.download) -class AsyncPCAPsWithStreamingResponse: - def __init__(self, pcaps: AsyncPCAPs) -> None: +class AsyncPCAPsResourceWithStreamingResponse: + def __init__(self, pcaps: AsyncPCAPsResource) -> None: self._pcaps = pcaps self.create = async_to_streamed_response_wrapper( @@ -656,5 +656,5 @@ def ownership(self) -> AsyncOwnershipResourceWithStreamingResponse: return AsyncOwnershipResourceWithStreamingResponse(self._pcaps.ownership) @cached_property - def download(self) -> AsyncDownloadWithStreamingResponse: - return AsyncDownloadWithStreamingResponse(self._pcaps.download) + def download(self) -> AsyncDownloadResourceWithStreamingResponse: + return AsyncDownloadResourceWithStreamingResponse(self._pcaps.download) diff --git a/src/cloudflare/resources/plans.py b/src/cloudflare/resources/plans.py index 65a96c4dc19..fc177c15925 100644 --- a/src/cloudflare/resources/plans.py +++ b/src/cloudflare/resources/plans.py @@ -23,17 +23,17 @@ ) from ..types.plans.available_rate_plan import AvailableRatePlan -__all__ = ["Plans", "AsyncPlans"] +__all__ = ["PlansResource", "AsyncPlansResource"] -class Plans(SyncAPIResource): +class PlansResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> PlansWithRawResponse: - return PlansWithRawResponse(self) + def with_raw_response(self) -> PlansResourceWithRawResponse: + return PlansResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> PlansWithStreamingResponse: - return PlansWithStreamingResponse(self) + def with_streaming_response(self) -> PlansResourceWithStreamingResponse: + return PlansResourceWithStreamingResponse(self) def list( self, @@ -116,14 +116,14 @@ def get( ) -class AsyncPlans(AsyncAPIResource): +class AsyncPlansResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncPlansWithRawResponse: - return AsyncPlansWithRawResponse(self) + def with_raw_response(self) -> AsyncPlansResourceWithRawResponse: + return AsyncPlansResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncPlansWithStreamingResponse: - return AsyncPlansWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncPlansResourceWithStreamingResponse: + return AsyncPlansResourceWithStreamingResponse(self) def list( self, @@ -206,8 +206,8 @@ async def get( ) -class PlansWithRawResponse: - def __init__(self, plans: Plans) -> None: +class PlansResourceWithRawResponse: + def __init__(self, plans: PlansResource) -> None: self._plans = plans self.list = to_raw_response_wrapper( @@ -218,8 +218,8 @@ def __init__(self, plans: Plans) -> None: ) -class AsyncPlansWithRawResponse: - def __init__(self, plans: AsyncPlans) -> None: +class AsyncPlansResourceWithRawResponse: + def __init__(self, plans: AsyncPlansResource) -> None: self._plans = plans self.list = async_to_raw_response_wrapper( @@ -230,8 +230,8 @@ def __init__(self, plans: AsyncPlans) -> None: ) -class PlansWithStreamingResponse: - def __init__(self, plans: Plans) -> None: +class PlansResourceWithStreamingResponse: + def __init__(self, plans: PlansResource) -> None: self._plans = plans self.list = to_streamed_response_wrapper( @@ -242,8 +242,8 @@ def __init__(self, plans: Plans) -> None: ) -class AsyncPlansWithStreamingResponse: - def __init__(self, plans: AsyncPlans) -> None: +class AsyncPlansResourceWithStreamingResponse: + def __init__(self, plans: AsyncPlansResource) -> None: self._plans = plans self.list = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/queues/__init__.py b/src/cloudflare/resources/queues/__init__.py index 6c53c636c3f..27d187759fa 100644 --- a/src/cloudflare/resources/queues/__init__.py +++ b/src/cloudflare/resources/queues/__init__.py @@ -1,47 +1,47 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from .queues import ( - Queues, - AsyncQueues, - QueuesWithRawResponse, - AsyncQueuesWithRawResponse, - QueuesWithStreamingResponse, - AsyncQueuesWithStreamingResponse, + QueuesResource, + AsyncQueuesResource, + QueuesResourceWithRawResponse, + AsyncQueuesResourceWithRawResponse, + QueuesResourceWithStreamingResponse, + AsyncQueuesResourceWithStreamingResponse, ) from .messages import ( - Messages, - AsyncMessages, - MessagesWithRawResponse, - AsyncMessagesWithRawResponse, - MessagesWithStreamingResponse, - AsyncMessagesWithStreamingResponse, + MessagesResource, + AsyncMessagesResource, + MessagesResourceWithRawResponse, + AsyncMessagesResourceWithRawResponse, + MessagesResourceWithStreamingResponse, + AsyncMessagesResourceWithStreamingResponse, ) from .consumers import ( - Consumers, - AsyncConsumers, - ConsumersWithRawResponse, - AsyncConsumersWithRawResponse, - ConsumersWithStreamingResponse, - AsyncConsumersWithStreamingResponse, + ConsumersResource, + AsyncConsumersResource, + ConsumersResourceWithRawResponse, + AsyncConsumersResourceWithRawResponse, + ConsumersResourceWithStreamingResponse, + AsyncConsumersResourceWithStreamingResponse, ) __all__ = [ - "Consumers", - "AsyncConsumers", - "ConsumersWithRawResponse", - "AsyncConsumersWithRawResponse", - "ConsumersWithStreamingResponse", - "AsyncConsumersWithStreamingResponse", - "Messages", - "AsyncMessages", - "MessagesWithRawResponse", - "AsyncMessagesWithRawResponse", - "MessagesWithStreamingResponse", - "AsyncMessagesWithStreamingResponse", - "Queues", - "AsyncQueues", - "QueuesWithRawResponse", - "AsyncQueuesWithRawResponse", - "QueuesWithStreamingResponse", - "AsyncQueuesWithStreamingResponse", + "ConsumersResource", + "AsyncConsumersResource", + "ConsumersResourceWithRawResponse", + "AsyncConsumersResourceWithRawResponse", + "ConsumersResourceWithStreamingResponse", + "AsyncConsumersResourceWithStreamingResponse", + "MessagesResource", + "AsyncMessagesResource", + "MessagesResourceWithRawResponse", + "AsyncMessagesResourceWithRawResponse", + "MessagesResourceWithStreamingResponse", + "AsyncMessagesResourceWithStreamingResponse", + "QueuesResource", + "AsyncQueuesResource", + "QueuesResourceWithRawResponse", + "AsyncQueuesResourceWithRawResponse", + "QueuesResourceWithStreamingResponse", + "AsyncQueuesResourceWithStreamingResponse", ] diff --git a/src/cloudflare/resources/queues/consumers.py b/src/cloudflare/resources/queues/consumers.py index 0ac6112211a..b7b0ce5e999 100644 --- a/src/cloudflare/resources/queues/consumers.py +++ b/src/cloudflare/resources/queues/consumers.py @@ -29,17 +29,17 @@ from ...types.queues.consumer_delete_response import ConsumerDeleteResponse from ...types.queues.consumer_update_response import ConsumerUpdateResponse -__all__ = ["Consumers", "AsyncConsumers"] +__all__ = ["ConsumersResource", "AsyncConsumersResource"] -class Consumers(SyncAPIResource): +class ConsumersResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> ConsumersWithRawResponse: - return ConsumersWithRawResponse(self) + def with_raw_response(self) -> ConsumersResourceWithRawResponse: + return ConsumersResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> ConsumersWithStreamingResponse: - return ConsumersWithStreamingResponse(self) + def with_streaming_response(self) -> ConsumersResourceWithStreamingResponse: + return ConsumersResourceWithStreamingResponse(self) def create( self, @@ -239,14 +239,14 @@ def get( ) -class AsyncConsumers(AsyncAPIResource): +class AsyncConsumersResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncConsumersWithRawResponse: - return AsyncConsumersWithRawResponse(self) + def with_raw_response(self) -> AsyncConsumersResourceWithRawResponse: + return AsyncConsumersResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncConsumersWithStreamingResponse: - return AsyncConsumersWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncConsumersResourceWithStreamingResponse: + return AsyncConsumersResourceWithStreamingResponse(self) async def create( self, @@ -446,8 +446,8 @@ async def get( ) -class ConsumersWithRawResponse: - def __init__(self, consumers: Consumers) -> None: +class ConsumersResourceWithRawResponse: + def __init__(self, consumers: ConsumersResource) -> None: self._consumers = consumers self.create = to_raw_response_wrapper( @@ -464,8 +464,8 @@ def __init__(self, consumers: Consumers) -> None: ) -class AsyncConsumersWithRawResponse: - def __init__(self, consumers: AsyncConsumers) -> None: +class AsyncConsumersResourceWithRawResponse: + def __init__(self, consumers: AsyncConsumersResource) -> None: self._consumers = consumers self.create = async_to_raw_response_wrapper( @@ -482,8 +482,8 @@ def __init__(self, consumers: AsyncConsumers) -> None: ) -class ConsumersWithStreamingResponse: - def __init__(self, consumers: Consumers) -> None: +class ConsumersResourceWithStreamingResponse: + def __init__(self, consumers: ConsumersResource) -> None: self._consumers = consumers self.create = to_streamed_response_wrapper( @@ -500,8 +500,8 @@ def __init__(self, consumers: Consumers) -> None: ) -class AsyncConsumersWithStreamingResponse: - def __init__(self, consumers: AsyncConsumers) -> None: +class AsyncConsumersResourceWithStreamingResponse: + def __init__(self, consumers: AsyncConsumersResource) -> None: self._consumers = consumers self.create = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/queues/messages.py b/src/cloudflare/resources/queues/messages.py index 6b0b3efc89b..8b651b0dcf2 100644 --- a/src/cloudflare/resources/queues/messages.py +++ b/src/cloudflare/resources/queues/messages.py @@ -27,17 +27,17 @@ from ...types.queues.message_ack_response import MessageAckResponse from ...types.queues.message_pull_response import MessagePullResponse -__all__ = ["Messages", "AsyncMessages"] +__all__ = ["MessagesResource", "AsyncMessagesResource"] -class Messages(SyncAPIResource): +class MessagesResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> MessagesWithRawResponse: - return MessagesWithRawResponse(self) + def with_raw_response(self) -> MessagesResourceWithRawResponse: + return MessagesResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> MessagesWithStreamingResponse: - return MessagesWithStreamingResponse(self) + def with_streaming_response(self) -> MessagesResourceWithStreamingResponse: + return MessagesResourceWithStreamingResponse(self) def ack( self, @@ -151,14 +151,14 @@ def pull( ) -class AsyncMessages(AsyncAPIResource): +class AsyncMessagesResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncMessagesWithRawResponse: - return AsyncMessagesWithRawResponse(self) + def with_raw_response(self) -> AsyncMessagesResourceWithRawResponse: + return AsyncMessagesResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncMessagesWithStreamingResponse: - return AsyncMessagesWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncMessagesResourceWithStreamingResponse: + return AsyncMessagesResourceWithStreamingResponse(self) async def ack( self, @@ -272,8 +272,8 @@ async def pull( ) -class MessagesWithRawResponse: - def __init__(self, messages: Messages) -> None: +class MessagesResourceWithRawResponse: + def __init__(self, messages: MessagesResource) -> None: self._messages = messages self.ack = to_raw_response_wrapper( @@ -284,8 +284,8 @@ def __init__(self, messages: Messages) -> None: ) -class AsyncMessagesWithRawResponse: - def __init__(self, messages: AsyncMessages) -> None: +class AsyncMessagesResourceWithRawResponse: + def __init__(self, messages: AsyncMessagesResource) -> None: self._messages = messages self.ack = async_to_raw_response_wrapper( @@ -296,8 +296,8 @@ def __init__(self, messages: AsyncMessages) -> None: ) -class MessagesWithStreamingResponse: - def __init__(self, messages: Messages) -> None: +class MessagesResourceWithStreamingResponse: + def __init__(self, messages: MessagesResource) -> None: self._messages = messages self.ack = to_streamed_response_wrapper( @@ -308,8 +308,8 @@ def __init__(self, messages: Messages) -> None: ) -class AsyncMessagesWithStreamingResponse: - def __init__(self, messages: AsyncMessages) -> None: +class AsyncMessagesResourceWithStreamingResponse: + def __init__(self, messages: AsyncMessagesResource) -> None: self._messages = messages self.ack = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/queues/queues.py b/src/cloudflare/resources/queues/queues.py index 5cc868aa975..f2fcb6c814c 100644 --- a/src/cloudflare/resources/queues/queues.py +++ b/src/cloudflare/resources/queues/queues.py @@ -12,21 +12,21 @@ async_maybe_transform, ) from .messages import ( - Messages, - AsyncMessages, - MessagesWithRawResponse, - AsyncMessagesWithRawResponse, - MessagesWithStreamingResponse, - AsyncMessagesWithStreamingResponse, + MessagesResource, + AsyncMessagesResource, + MessagesResourceWithRawResponse, + AsyncMessagesResourceWithRawResponse, + MessagesResourceWithStreamingResponse, + AsyncMessagesResourceWithStreamingResponse, ) from ..._compat import cached_property from .consumers import ( - Consumers, - AsyncConsumers, - ConsumersWithRawResponse, - AsyncConsumersWithRawResponse, - ConsumersWithStreamingResponse, - AsyncConsumersWithStreamingResponse, + ConsumersResource, + AsyncConsumersResource, + ConsumersResourceWithRawResponse, + AsyncConsumersResourceWithRawResponse, + ConsumersResourceWithStreamingResponse, + AsyncConsumersResourceWithStreamingResponse, ) from ..._resource import SyncAPIResource, AsyncAPIResource from ..._response import ( @@ -47,25 +47,25 @@ from ...types.queues.queue_updated import QueueUpdated from ...types.queues.queue_delete_response import QueueDeleteResponse -__all__ = ["Queues", "AsyncQueues"] +__all__ = ["QueuesResource", "AsyncQueuesResource"] -class Queues(SyncAPIResource): +class QueuesResource(SyncAPIResource): @cached_property - def consumers(self) -> Consumers: - return Consumers(self._client) + def consumers(self) -> ConsumersResource: + return ConsumersResource(self._client) @cached_property - def messages(self) -> Messages: - return Messages(self._client) + def messages(self) -> MessagesResource: + return MessagesResource(self._client) @cached_property - def with_raw_response(self) -> QueuesWithRawResponse: - return QueuesWithRawResponse(self) + def with_raw_response(self) -> QueuesResourceWithRawResponse: + return QueuesResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> QueuesWithStreamingResponse: - return QueuesWithStreamingResponse(self) + def with_streaming_response(self) -> QueuesResourceWithStreamingResponse: + return QueuesResourceWithStreamingResponse(self) def create( self, @@ -286,22 +286,22 @@ def get( ) -class AsyncQueues(AsyncAPIResource): +class AsyncQueuesResource(AsyncAPIResource): @cached_property - def consumers(self) -> AsyncConsumers: - return AsyncConsumers(self._client) + def consumers(self) -> AsyncConsumersResource: + return AsyncConsumersResource(self._client) @cached_property - def messages(self) -> AsyncMessages: - return AsyncMessages(self._client) + def messages(self) -> AsyncMessagesResource: + return AsyncMessagesResource(self._client) @cached_property - def with_raw_response(self) -> AsyncQueuesWithRawResponse: - return AsyncQueuesWithRawResponse(self) + def with_raw_response(self) -> AsyncQueuesResourceWithRawResponse: + return AsyncQueuesResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncQueuesWithStreamingResponse: - return AsyncQueuesWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncQueuesResourceWithStreamingResponse: + return AsyncQueuesResourceWithStreamingResponse(self) async def create( self, @@ -522,8 +522,8 @@ async def get( ) -class QueuesWithRawResponse: - def __init__(self, queues: Queues) -> None: +class QueuesResourceWithRawResponse: + def __init__(self, queues: QueuesResource) -> None: self._queues = queues self.create = to_raw_response_wrapper( @@ -543,16 +543,16 @@ def __init__(self, queues: Queues) -> None: ) @cached_property - def consumers(self) -> ConsumersWithRawResponse: - return ConsumersWithRawResponse(self._queues.consumers) + def consumers(self) -> ConsumersResourceWithRawResponse: + return ConsumersResourceWithRawResponse(self._queues.consumers) @cached_property - def messages(self) -> MessagesWithRawResponse: - return MessagesWithRawResponse(self._queues.messages) + def messages(self) -> MessagesResourceWithRawResponse: + return MessagesResourceWithRawResponse(self._queues.messages) -class AsyncQueuesWithRawResponse: - def __init__(self, queues: AsyncQueues) -> None: +class AsyncQueuesResourceWithRawResponse: + def __init__(self, queues: AsyncQueuesResource) -> None: self._queues = queues self.create = async_to_raw_response_wrapper( @@ -572,16 +572,16 @@ def __init__(self, queues: AsyncQueues) -> None: ) @cached_property - def consumers(self) -> AsyncConsumersWithRawResponse: - return AsyncConsumersWithRawResponse(self._queues.consumers) + def consumers(self) -> AsyncConsumersResourceWithRawResponse: + return AsyncConsumersResourceWithRawResponse(self._queues.consumers) @cached_property - def messages(self) -> AsyncMessagesWithRawResponse: - return AsyncMessagesWithRawResponse(self._queues.messages) + def messages(self) -> AsyncMessagesResourceWithRawResponse: + return AsyncMessagesResourceWithRawResponse(self._queues.messages) -class QueuesWithStreamingResponse: - def __init__(self, queues: Queues) -> None: +class QueuesResourceWithStreamingResponse: + def __init__(self, queues: QueuesResource) -> None: self._queues = queues self.create = to_streamed_response_wrapper( @@ -601,16 +601,16 @@ def __init__(self, queues: Queues) -> None: ) @cached_property - def consumers(self) -> ConsumersWithStreamingResponse: - return ConsumersWithStreamingResponse(self._queues.consumers) + def consumers(self) -> ConsumersResourceWithStreamingResponse: + return ConsumersResourceWithStreamingResponse(self._queues.consumers) @cached_property - def messages(self) -> MessagesWithStreamingResponse: - return MessagesWithStreamingResponse(self._queues.messages) + def messages(self) -> MessagesResourceWithStreamingResponse: + return MessagesResourceWithStreamingResponse(self._queues.messages) -class AsyncQueuesWithStreamingResponse: - def __init__(self, queues: AsyncQueues) -> None: +class AsyncQueuesResourceWithStreamingResponse: + def __init__(self, queues: AsyncQueuesResource) -> None: self._queues = queues self.create = async_to_streamed_response_wrapper( @@ -630,9 +630,9 @@ def __init__(self, queues: AsyncQueues) -> None: ) @cached_property - def consumers(self) -> AsyncConsumersWithStreamingResponse: - return AsyncConsumersWithStreamingResponse(self._queues.consumers) + def consumers(self) -> AsyncConsumersResourceWithStreamingResponse: + return AsyncConsumersResourceWithStreamingResponse(self._queues.consumers) @cached_property - def messages(self) -> AsyncMessagesWithStreamingResponse: - return AsyncMessagesWithStreamingResponse(self._queues.messages) + def messages(self) -> AsyncMessagesResourceWithStreamingResponse: + return AsyncMessagesResourceWithStreamingResponse(self._queues.messages) diff --git a/src/cloudflare/resources/r2/__init__.py b/src/cloudflare/resources/r2/__init__.py index f467f059f12..96e202b807b 100644 --- a/src/cloudflare/resources/r2/__init__.py +++ b/src/cloudflare/resources/r2/__init__.py @@ -1,12 +1,12 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from .r2 import ( - R2, - AsyncR2, - R2WithRawResponse, - AsyncR2WithRawResponse, - R2WithStreamingResponse, - AsyncR2WithStreamingResponse, + R2Resource, + AsyncR2Resource, + R2ResourceWithRawResponse, + AsyncR2ResourceWithRawResponse, + R2ResourceWithStreamingResponse, + AsyncR2ResourceWithStreamingResponse, ) from .sippy import ( SippyResource, @@ -17,31 +17,31 @@ AsyncSippyResourceWithStreamingResponse, ) from .buckets import ( - Buckets, - AsyncBuckets, - BucketsWithRawResponse, - AsyncBucketsWithRawResponse, - BucketsWithStreamingResponse, - AsyncBucketsWithStreamingResponse, + BucketsResource, + AsyncBucketsResource, + BucketsResourceWithRawResponse, + AsyncBucketsResourceWithRawResponse, + BucketsResourceWithStreamingResponse, + AsyncBucketsResourceWithStreamingResponse, ) __all__ = [ - "Buckets", - "AsyncBuckets", - "BucketsWithRawResponse", - "AsyncBucketsWithRawResponse", - "BucketsWithStreamingResponse", - "AsyncBucketsWithStreamingResponse", + "BucketsResource", + "AsyncBucketsResource", + "BucketsResourceWithRawResponse", + "AsyncBucketsResourceWithRawResponse", + "BucketsResourceWithStreamingResponse", + "AsyncBucketsResourceWithStreamingResponse", "SippyResource", "AsyncSippyResource", "SippyResourceWithRawResponse", "AsyncSippyResourceWithRawResponse", "SippyResourceWithStreamingResponse", "AsyncSippyResourceWithStreamingResponse", - "R2", - "AsyncR2", - "R2WithRawResponse", - "AsyncR2WithRawResponse", - "R2WithStreamingResponse", - "AsyncR2WithStreamingResponse", + "R2Resource", + "AsyncR2Resource", + "R2ResourceWithRawResponse", + "AsyncR2ResourceWithRawResponse", + "R2ResourceWithStreamingResponse", + "AsyncR2ResourceWithStreamingResponse", ] diff --git a/src/cloudflare/resources/r2/buckets.py b/src/cloudflare/resources/r2/buckets.py index b08600ab70e..c7c04313e66 100644 --- a/src/cloudflare/resources/r2/buckets.py +++ b/src/cloudflare/resources/r2/buckets.py @@ -29,17 +29,17 @@ ) from ...types.r2.bucket import Bucket -__all__ = ["Buckets", "AsyncBuckets"] +__all__ = ["BucketsResource", "AsyncBucketsResource"] -class Buckets(SyncAPIResource): +class BucketsResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> BucketsWithRawResponse: - return BucketsWithRawResponse(self) + def with_raw_response(self) -> BucketsResourceWithRawResponse: + return BucketsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> BucketsWithStreamingResponse: - return BucketsWithStreamingResponse(self) + def with_streaming_response(self) -> BucketsResourceWithStreamingResponse: + return BucketsResourceWithStreamingResponse(self) def create( self, @@ -252,14 +252,14 @@ def get( ) -class AsyncBuckets(AsyncAPIResource): +class AsyncBucketsResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncBucketsWithRawResponse: - return AsyncBucketsWithRawResponse(self) + def with_raw_response(self) -> AsyncBucketsResourceWithRawResponse: + return AsyncBucketsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncBucketsWithStreamingResponse: - return AsyncBucketsWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncBucketsResourceWithStreamingResponse: + return AsyncBucketsResourceWithStreamingResponse(self) async def create( self, @@ -472,8 +472,8 @@ async def get( ) -class BucketsWithRawResponse: - def __init__(self, buckets: Buckets) -> None: +class BucketsResourceWithRawResponse: + def __init__(self, buckets: BucketsResource) -> None: self._buckets = buckets self.create = to_raw_response_wrapper( @@ -490,8 +490,8 @@ def __init__(self, buckets: Buckets) -> None: ) -class AsyncBucketsWithRawResponse: - def __init__(self, buckets: AsyncBuckets) -> None: +class AsyncBucketsResourceWithRawResponse: + def __init__(self, buckets: AsyncBucketsResource) -> None: self._buckets = buckets self.create = async_to_raw_response_wrapper( @@ -508,8 +508,8 @@ def __init__(self, buckets: AsyncBuckets) -> None: ) -class BucketsWithStreamingResponse: - def __init__(self, buckets: Buckets) -> None: +class BucketsResourceWithStreamingResponse: + def __init__(self, buckets: BucketsResource) -> None: self._buckets = buckets self.create = to_streamed_response_wrapper( @@ -526,8 +526,8 @@ def __init__(self, buckets: Buckets) -> None: ) -class AsyncBucketsWithStreamingResponse: - def __init__(self, buckets: AsyncBuckets) -> None: +class AsyncBucketsResourceWithStreamingResponse: + def __init__(self, buckets: AsyncBucketsResource) -> None: self._buckets = buckets self.create = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/r2/r2.py b/src/cloudflare/resources/r2/r2.py index 8a5eabb4409..5bf7bfb501e 100644 --- a/src/cloudflare/resources/r2/r2.py +++ b/src/cloudflare/resources/r2/r2.py @@ -11,101 +11,101 @@ AsyncSippyResourceWithStreamingResponse, ) from .buckets import ( - Buckets, - AsyncBuckets, - BucketsWithRawResponse, - AsyncBucketsWithRawResponse, - BucketsWithStreamingResponse, - AsyncBucketsWithStreamingResponse, + BucketsResource, + AsyncBucketsResource, + BucketsResourceWithRawResponse, + AsyncBucketsResourceWithRawResponse, + BucketsResourceWithStreamingResponse, + AsyncBucketsResourceWithStreamingResponse, ) from ..._compat import cached_property from ..._resource import SyncAPIResource, AsyncAPIResource -__all__ = ["R2", "AsyncR2"] +__all__ = ["R2Resource", "AsyncR2Resource"] -class R2(SyncAPIResource): +class R2Resource(SyncAPIResource): @cached_property - def buckets(self) -> Buckets: - return Buckets(self._client) + def buckets(self) -> BucketsResource: + return BucketsResource(self._client) @cached_property def sippy(self) -> SippyResource: return SippyResource(self._client) @cached_property - def with_raw_response(self) -> R2WithRawResponse: - return R2WithRawResponse(self) + def with_raw_response(self) -> R2ResourceWithRawResponse: + return R2ResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> R2WithStreamingResponse: - return R2WithStreamingResponse(self) + def with_streaming_response(self) -> R2ResourceWithStreamingResponse: + return R2ResourceWithStreamingResponse(self) -class AsyncR2(AsyncAPIResource): +class AsyncR2Resource(AsyncAPIResource): @cached_property - def buckets(self) -> AsyncBuckets: - return AsyncBuckets(self._client) + def buckets(self) -> AsyncBucketsResource: + return AsyncBucketsResource(self._client) @cached_property def sippy(self) -> AsyncSippyResource: return AsyncSippyResource(self._client) @cached_property - def with_raw_response(self) -> AsyncR2WithRawResponse: - return AsyncR2WithRawResponse(self) + def with_raw_response(self) -> AsyncR2ResourceWithRawResponse: + return AsyncR2ResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncR2WithStreamingResponse: - return AsyncR2WithStreamingResponse(self) + def with_streaming_response(self) -> AsyncR2ResourceWithStreamingResponse: + return AsyncR2ResourceWithStreamingResponse(self) -class R2WithRawResponse: - def __init__(self, r2: R2) -> None: +class R2ResourceWithRawResponse: + def __init__(self, r2: R2Resource) -> None: self._r2 = r2 @cached_property - def buckets(self) -> BucketsWithRawResponse: - return BucketsWithRawResponse(self._r2.buckets) + def buckets(self) -> BucketsResourceWithRawResponse: + return BucketsResourceWithRawResponse(self._r2.buckets) @cached_property def sippy(self) -> SippyResourceWithRawResponse: return SippyResourceWithRawResponse(self._r2.sippy) -class AsyncR2WithRawResponse: - def __init__(self, r2: AsyncR2) -> None: +class AsyncR2ResourceWithRawResponse: + def __init__(self, r2: AsyncR2Resource) -> None: self._r2 = r2 @cached_property - def buckets(self) -> AsyncBucketsWithRawResponse: - return AsyncBucketsWithRawResponse(self._r2.buckets) + def buckets(self) -> AsyncBucketsResourceWithRawResponse: + return AsyncBucketsResourceWithRawResponse(self._r2.buckets) @cached_property def sippy(self) -> AsyncSippyResourceWithRawResponse: return AsyncSippyResourceWithRawResponse(self._r2.sippy) -class R2WithStreamingResponse: - def __init__(self, r2: R2) -> None: +class R2ResourceWithStreamingResponse: + def __init__(self, r2: R2Resource) -> None: self._r2 = r2 @cached_property - def buckets(self) -> BucketsWithStreamingResponse: - return BucketsWithStreamingResponse(self._r2.buckets) + def buckets(self) -> BucketsResourceWithStreamingResponse: + return BucketsResourceWithStreamingResponse(self._r2.buckets) @cached_property def sippy(self) -> SippyResourceWithStreamingResponse: return SippyResourceWithStreamingResponse(self._r2.sippy) -class AsyncR2WithStreamingResponse: - def __init__(self, r2: AsyncR2) -> None: +class AsyncR2ResourceWithStreamingResponse: + def __init__(self, r2: AsyncR2Resource) -> None: self._r2 = r2 @cached_property - def buckets(self) -> AsyncBucketsWithStreamingResponse: - return AsyncBucketsWithStreamingResponse(self._r2.buckets) + def buckets(self) -> AsyncBucketsResourceWithStreamingResponse: + return AsyncBucketsResourceWithStreamingResponse(self._r2.buckets) @cached_property def sippy(self) -> AsyncSippyResourceWithStreamingResponse: diff --git a/src/cloudflare/resources/radar/__init__.py b/src/cloudflare/resources/radar/__init__.py index 527f51d57dc..00dd0bb0fcf 100644 --- a/src/cloudflare/resources/radar/__init__.py +++ b/src/cloudflare/resources/radar/__init__.py @@ -1,243 +1,243 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from .bgp import ( - BGP, - AsyncBGP, - BGPWithRawResponse, - AsyncBGPWithRawResponse, - BGPWithStreamingResponse, - AsyncBGPWithStreamingResponse, + BGPResource, + AsyncBGPResource, + BGPResourceWithRawResponse, + AsyncBGPResourceWithRawResponse, + BGPResourceWithStreamingResponse, + AsyncBGPResourceWithStreamingResponse, ) from .dns import ( - DNS, - AsyncDNS, - DNSWithRawResponse, - AsyncDNSWithRawResponse, - DNSWithStreamingResponse, - AsyncDNSWithStreamingResponse, + DNSResource, + AsyncDNSResource, + DNSResourceWithRawResponse, + AsyncDNSResourceWithRawResponse, + DNSResourceWithStreamingResponse, + AsyncDNSResourceWithStreamingResponse, ) from .http import ( - HTTP, - AsyncHTTP, - HTTPWithRawResponse, - AsyncHTTPWithRawResponse, - HTTPWithStreamingResponse, - AsyncHTTPWithStreamingResponse, + HTTPResource, + AsyncHTTPResource, + HTTPResourceWithRawResponse, + AsyncHTTPResourceWithRawResponse, + HTTPResourceWithStreamingResponse, + AsyncHTTPResourceWithStreamingResponse, ) from .as112 import ( - AS112, - AsyncAS112, - AS112WithRawResponse, - AsyncAS112WithRawResponse, - AS112WithStreamingResponse, - AsyncAS112WithStreamingResponse, + AS112Resource, + AsyncAS112Resource, + AS112ResourceWithRawResponse, + AsyncAS112ResourceWithRawResponse, + AS112ResourceWithStreamingResponse, + AsyncAS112ResourceWithStreamingResponse, ) from .email import ( - Email, - AsyncEmail, - EmailWithRawResponse, - AsyncEmailWithRawResponse, - EmailWithStreamingResponse, - AsyncEmailWithStreamingResponse, + EmailResource, + AsyncEmailResource, + EmailResourceWithRawResponse, + AsyncEmailResourceWithRawResponse, + EmailResourceWithStreamingResponse, + AsyncEmailResourceWithStreamingResponse, ) from .radar import ( - Radar, - AsyncRadar, - RadarWithRawResponse, - AsyncRadarWithRawResponse, - RadarWithStreamingResponse, - AsyncRadarWithStreamingResponse, + RadarResource, + AsyncRadarResource, + RadarResourceWithRawResponse, + AsyncRadarResourceWithRawResponse, + RadarResourceWithStreamingResponse, + AsyncRadarResourceWithStreamingResponse, ) from .search import ( - Search, - AsyncSearch, - SearchWithRawResponse, - AsyncSearchWithRawResponse, - SearchWithStreamingResponse, - AsyncSearchWithStreamingResponse, + SearchResource, + AsyncSearchResource, + SearchResourceWithRawResponse, + AsyncSearchResourceWithRawResponse, + SearchResourceWithStreamingResponse, + AsyncSearchResourceWithStreamingResponse, ) from .attacks import ( - Attacks, - AsyncAttacks, - AttacksWithRawResponse, - AsyncAttacksWithRawResponse, - AttacksWithStreamingResponse, - AsyncAttacksWithStreamingResponse, + AttacksResource, + AsyncAttacksResource, + AttacksResourceWithRawResponse, + AsyncAttacksResourceWithRawResponse, + AttacksResourceWithStreamingResponse, + AsyncAttacksResourceWithStreamingResponse, ) from .quality import ( - Quality, - AsyncQuality, - QualityWithRawResponse, - AsyncQualityWithRawResponse, - QualityWithStreamingResponse, - AsyncQualityWithStreamingResponse, + QualityResource, + AsyncQualityResource, + QualityResourceWithRawResponse, + AsyncQualityResourceWithRawResponse, + QualityResourceWithStreamingResponse, + AsyncQualityResourceWithStreamingResponse, ) from .ranking import ( - Ranking, - AsyncRanking, - RankingWithRawResponse, - AsyncRankingWithRawResponse, - RankingWithStreamingResponse, - AsyncRankingWithStreamingResponse, + RankingResource, + AsyncRankingResource, + RankingResourceWithRawResponse, + AsyncRankingResourceWithRawResponse, + RankingResourceWithStreamingResponse, + AsyncRankingResourceWithStreamingResponse, ) from .datasets import ( - Datasets, - AsyncDatasets, - DatasetsWithRawResponse, - AsyncDatasetsWithRawResponse, - DatasetsWithStreamingResponse, - AsyncDatasetsWithStreamingResponse, + DatasetsResource, + AsyncDatasetsResource, + DatasetsResourceWithRawResponse, + AsyncDatasetsResourceWithRawResponse, + DatasetsResourceWithStreamingResponse, + AsyncDatasetsResourceWithStreamingResponse, ) from .entities import ( - Entities, - AsyncEntities, - EntitiesWithRawResponse, - AsyncEntitiesWithRawResponse, - EntitiesWithStreamingResponse, - AsyncEntitiesWithStreamingResponse, + EntitiesResource, + AsyncEntitiesResource, + EntitiesResourceWithRawResponse, + AsyncEntitiesResourceWithRawResponse, + EntitiesResourceWithStreamingResponse, + AsyncEntitiesResourceWithStreamingResponse, ) from .netflows import ( - Netflows, - AsyncNetflows, - NetflowsWithRawResponse, - AsyncNetflowsWithRawResponse, - NetflowsWithStreamingResponse, - AsyncNetflowsWithStreamingResponse, + NetflowsResource, + AsyncNetflowsResource, + NetflowsResourceWithRawResponse, + AsyncNetflowsResourceWithRawResponse, + NetflowsResourceWithStreamingResponse, + AsyncNetflowsResourceWithStreamingResponse, ) from .annotations import ( - Annotations, - AsyncAnnotations, - AnnotationsWithRawResponse, - AsyncAnnotationsWithRawResponse, - AnnotationsWithStreamingResponse, - AsyncAnnotationsWithStreamingResponse, + AnnotationsResource, + AsyncAnnotationsResource, + AnnotationsResourceWithRawResponse, + AsyncAnnotationsResourceWithRawResponse, + AnnotationsResourceWithStreamingResponse, + AsyncAnnotationsResourceWithStreamingResponse, ) from .verified_bots import ( - VerifiedBots, - AsyncVerifiedBots, - VerifiedBotsWithRawResponse, - AsyncVerifiedBotsWithRawResponse, - VerifiedBotsWithStreamingResponse, - AsyncVerifiedBotsWithStreamingResponse, + VerifiedBotsResource, + AsyncVerifiedBotsResource, + VerifiedBotsResourceWithRawResponse, + AsyncVerifiedBotsResourceWithRawResponse, + VerifiedBotsResourceWithStreamingResponse, + AsyncVerifiedBotsResourceWithStreamingResponse, ) from .traffic_anomalies import ( - TrafficAnomalies, - AsyncTrafficAnomalies, - TrafficAnomaliesWithRawResponse, - AsyncTrafficAnomaliesWithRawResponse, - TrafficAnomaliesWithStreamingResponse, - AsyncTrafficAnomaliesWithStreamingResponse, + TrafficAnomaliesResource, + AsyncTrafficAnomaliesResource, + TrafficAnomaliesResourceWithRawResponse, + AsyncTrafficAnomaliesResourceWithRawResponse, + TrafficAnomaliesResourceWithStreamingResponse, + AsyncTrafficAnomaliesResourceWithStreamingResponse, ) from .connection_tampering import ( - ConnectionTampering, - AsyncConnectionTampering, - ConnectionTamperingWithRawResponse, - AsyncConnectionTamperingWithRawResponse, - ConnectionTamperingWithStreamingResponse, - AsyncConnectionTamperingWithStreamingResponse, + ConnectionTamperingResource, + AsyncConnectionTamperingResource, + ConnectionTamperingResourceWithRawResponse, + AsyncConnectionTamperingResourceWithRawResponse, + ConnectionTamperingResourceWithStreamingResponse, + AsyncConnectionTamperingResourceWithStreamingResponse, ) __all__ = [ - "Annotations", - "AsyncAnnotations", - "AnnotationsWithRawResponse", - "AsyncAnnotationsWithRawResponse", - "AnnotationsWithStreamingResponse", - "AsyncAnnotationsWithStreamingResponse", - "BGP", - "AsyncBGP", - "BGPWithRawResponse", - "AsyncBGPWithRawResponse", - "BGPWithStreamingResponse", - "AsyncBGPWithStreamingResponse", - "Datasets", - "AsyncDatasets", - "DatasetsWithRawResponse", - "AsyncDatasetsWithRawResponse", - "DatasetsWithStreamingResponse", - "AsyncDatasetsWithStreamingResponse", - "DNS", - "AsyncDNS", - "DNSWithRawResponse", - "AsyncDNSWithRawResponse", - "DNSWithStreamingResponse", - "AsyncDNSWithStreamingResponse", - "Netflows", - "AsyncNetflows", - "NetflowsWithRawResponse", - "AsyncNetflowsWithRawResponse", - "NetflowsWithStreamingResponse", - "AsyncNetflowsWithStreamingResponse", - "Search", - "AsyncSearch", - "SearchWithRawResponse", - "AsyncSearchWithRawResponse", - "SearchWithStreamingResponse", - "AsyncSearchWithStreamingResponse", - "VerifiedBots", - "AsyncVerifiedBots", - "VerifiedBotsWithRawResponse", - "AsyncVerifiedBotsWithRawResponse", - "VerifiedBotsWithStreamingResponse", - "AsyncVerifiedBotsWithStreamingResponse", - "AS112", - "AsyncAS112", - "AS112WithRawResponse", - "AsyncAS112WithRawResponse", - "AS112WithStreamingResponse", - "AsyncAS112WithStreamingResponse", - "ConnectionTampering", - "AsyncConnectionTampering", - "ConnectionTamperingWithRawResponse", - "AsyncConnectionTamperingWithRawResponse", - "ConnectionTamperingWithStreamingResponse", - "AsyncConnectionTamperingWithStreamingResponse", - "Email", - "AsyncEmail", - "EmailWithRawResponse", - "AsyncEmailWithRawResponse", - "EmailWithStreamingResponse", - "AsyncEmailWithStreamingResponse", - "Attacks", - "AsyncAttacks", - "AttacksWithRawResponse", - "AsyncAttacksWithRawResponse", - "AttacksWithStreamingResponse", - "AsyncAttacksWithStreamingResponse", - "Entities", - "AsyncEntities", - "EntitiesWithRawResponse", - "AsyncEntitiesWithRawResponse", - "EntitiesWithStreamingResponse", - "AsyncEntitiesWithStreamingResponse", - "HTTP", - "AsyncHTTP", - "HTTPWithRawResponse", - "AsyncHTTPWithRawResponse", - "HTTPWithStreamingResponse", - "AsyncHTTPWithStreamingResponse", - "Quality", - "AsyncQuality", - "QualityWithRawResponse", - "AsyncQualityWithRawResponse", - "QualityWithStreamingResponse", - "AsyncQualityWithStreamingResponse", - "Ranking", - "AsyncRanking", - "RankingWithRawResponse", - "AsyncRankingWithRawResponse", - "RankingWithStreamingResponse", - "AsyncRankingWithStreamingResponse", - "TrafficAnomalies", - "AsyncTrafficAnomalies", - "TrafficAnomaliesWithRawResponse", - "AsyncTrafficAnomaliesWithRawResponse", - "TrafficAnomaliesWithStreamingResponse", - "AsyncTrafficAnomaliesWithStreamingResponse", - "Radar", - "AsyncRadar", - "RadarWithRawResponse", - "AsyncRadarWithRawResponse", - "RadarWithStreamingResponse", - "AsyncRadarWithStreamingResponse", + "AnnotationsResource", + "AsyncAnnotationsResource", + "AnnotationsResourceWithRawResponse", + "AsyncAnnotationsResourceWithRawResponse", + "AnnotationsResourceWithStreamingResponse", + "AsyncAnnotationsResourceWithStreamingResponse", + "BGPResource", + "AsyncBGPResource", + "BGPResourceWithRawResponse", + "AsyncBGPResourceWithRawResponse", + "BGPResourceWithStreamingResponse", + "AsyncBGPResourceWithStreamingResponse", + "DatasetsResource", + "AsyncDatasetsResource", + "DatasetsResourceWithRawResponse", + "AsyncDatasetsResourceWithRawResponse", + "DatasetsResourceWithStreamingResponse", + "AsyncDatasetsResourceWithStreamingResponse", + "DNSResource", + "AsyncDNSResource", + "DNSResourceWithRawResponse", + "AsyncDNSResourceWithRawResponse", + "DNSResourceWithStreamingResponse", + "AsyncDNSResourceWithStreamingResponse", + "NetflowsResource", + "AsyncNetflowsResource", + "NetflowsResourceWithRawResponse", + "AsyncNetflowsResourceWithRawResponse", + "NetflowsResourceWithStreamingResponse", + "AsyncNetflowsResourceWithStreamingResponse", + "SearchResource", + "AsyncSearchResource", + "SearchResourceWithRawResponse", + "AsyncSearchResourceWithRawResponse", + "SearchResourceWithStreamingResponse", + "AsyncSearchResourceWithStreamingResponse", + "VerifiedBotsResource", + "AsyncVerifiedBotsResource", + "VerifiedBotsResourceWithRawResponse", + "AsyncVerifiedBotsResourceWithRawResponse", + "VerifiedBotsResourceWithStreamingResponse", + "AsyncVerifiedBotsResourceWithStreamingResponse", + "AS112Resource", + "AsyncAS112Resource", + "AS112ResourceWithRawResponse", + "AsyncAS112ResourceWithRawResponse", + "AS112ResourceWithStreamingResponse", + "AsyncAS112ResourceWithStreamingResponse", + "ConnectionTamperingResource", + "AsyncConnectionTamperingResource", + "ConnectionTamperingResourceWithRawResponse", + "AsyncConnectionTamperingResourceWithRawResponse", + "ConnectionTamperingResourceWithStreamingResponse", + "AsyncConnectionTamperingResourceWithStreamingResponse", + "EmailResource", + "AsyncEmailResource", + "EmailResourceWithRawResponse", + "AsyncEmailResourceWithRawResponse", + "EmailResourceWithStreamingResponse", + "AsyncEmailResourceWithStreamingResponse", + "AttacksResource", + "AsyncAttacksResource", + "AttacksResourceWithRawResponse", + "AsyncAttacksResourceWithRawResponse", + "AttacksResourceWithStreamingResponse", + "AsyncAttacksResourceWithStreamingResponse", + "EntitiesResource", + "AsyncEntitiesResource", + "EntitiesResourceWithRawResponse", + "AsyncEntitiesResourceWithRawResponse", + "EntitiesResourceWithStreamingResponse", + "AsyncEntitiesResourceWithStreamingResponse", + "HTTPResource", + "AsyncHTTPResource", + "HTTPResourceWithRawResponse", + "AsyncHTTPResourceWithRawResponse", + "HTTPResourceWithStreamingResponse", + "AsyncHTTPResourceWithStreamingResponse", + "QualityResource", + "AsyncQualityResource", + "QualityResourceWithRawResponse", + "AsyncQualityResourceWithRawResponse", + "QualityResourceWithStreamingResponse", + "AsyncQualityResourceWithStreamingResponse", + "RankingResource", + "AsyncRankingResource", + "RankingResourceWithRawResponse", + "AsyncRankingResourceWithRawResponse", + "RankingResourceWithStreamingResponse", + "AsyncRankingResourceWithStreamingResponse", + "TrafficAnomaliesResource", + "AsyncTrafficAnomaliesResource", + "TrafficAnomaliesResourceWithRawResponse", + "AsyncTrafficAnomaliesResourceWithRawResponse", + "TrafficAnomaliesResourceWithStreamingResponse", + "AsyncTrafficAnomaliesResourceWithStreamingResponse", + "RadarResource", + "AsyncRadarResource", + "RadarResourceWithRawResponse", + "AsyncRadarResourceWithRawResponse", + "RadarResourceWithStreamingResponse", + "AsyncRadarResourceWithStreamingResponse", ] diff --git a/src/cloudflare/resources/radar/annotations/__init__.py b/src/cloudflare/resources/radar/annotations/__init__.py index 21de76f2c93..0a951a89c72 100644 --- a/src/cloudflare/resources/radar/annotations/__init__.py +++ b/src/cloudflare/resources/radar/annotations/__init__.py @@ -1,33 +1,33 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from .outages import ( - Outages, - AsyncOutages, - OutagesWithRawResponse, - AsyncOutagesWithRawResponse, - OutagesWithStreamingResponse, - AsyncOutagesWithStreamingResponse, + OutagesResource, + AsyncOutagesResource, + OutagesResourceWithRawResponse, + AsyncOutagesResourceWithRawResponse, + OutagesResourceWithStreamingResponse, + AsyncOutagesResourceWithStreamingResponse, ) from .annotations import ( - Annotations, - AsyncAnnotations, - AnnotationsWithRawResponse, - AsyncAnnotationsWithRawResponse, - AnnotationsWithStreamingResponse, - AsyncAnnotationsWithStreamingResponse, + AnnotationsResource, + AsyncAnnotationsResource, + AnnotationsResourceWithRawResponse, + AsyncAnnotationsResourceWithRawResponse, + AnnotationsResourceWithStreamingResponse, + AsyncAnnotationsResourceWithStreamingResponse, ) __all__ = [ - "Outages", - "AsyncOutages", - "OutagesWithRawResponse", - "AsyncOutagesWithRawResponse", - "OutagesWithStreamingResponse", - "AsyncOutagesWithStreamingResponse", - "Annotations", - "AsyncAnnotations", - "AnnotationsWithRawResponse", - "AsyncAnnotationsWithRawResponse", - "AnnotationsWithStreamingResponse", - "AsyncAnnotationsWithStreamingResponse", + "OutagesResource", + "AsyncOutagesResource", + "OutagesResourceWithRawResponse", + "AsyncOutagesResourceWithRawResponse", + "OutagesResourceWithStreamingResponse", + "AsyncOutagesResourceWithStreamingResponse", + "AnnotationsResource", + "AsyncAnnotationsResource", + "AnnotationsResourceWithRawResponse", + "AsyncAnnotationsResourceWithRawResponse", + "AnnotationsResourceWithStreamingResponse", + "AsyncAnnotationsResourceWithStreamingResponse", ] diff --git a/src/cloudflare/resources/radar/annotations/annotations.py b/src/cloudflare/resources/radar/annotations/annotations.py index dc39736e55e..b30195f71b2 100644 --- a/src/cloudflare/resources/radar/annotations/annotations.py +++ b/src/cloudflare/resources/radar/annotations/annotations.py @@ -3,78 +3,78 @@ from __future__ import annotations from .outages import ( - Outages, - AsyncOutages, - OutagesWithRawResponse, - AsyncOutagesWithRawResponse, - OutagesWithStreamingResponse, - AsyncOutagesWithStreamingResponse, + OutagesResource, + AsyncOutagesResource, + OutagesResourceWithRawResponse, + AsyncOutagesResourceWithRawResponse, + OutagesResourceWithStreamingResponse, + AsyncOutagesResourceWithStreamingResponse, ) from ...._compat import cached_property from ...._resource import SyncAPIResource, AsyncAPIResource -__all__ = ["Annotations", "AsyncAnnotations"] +__all__ = ["AnnotationsResource", "AsyncAnnotationsResource"] -class Annotations(SyncAPIResource): +class AnnotationsResource(SyncAPIResource): @cached_property - def outages(self) -> Outages: - return Outages(self._client) + def outages(self) -> OutagesResource: + return OutagesResource(self._client) @cached_property - def with_raw_response(self) -> AnnotationsWithRawResponse: - return AnnotationsWithRawResponse(self) + def with_raw_response(self) -> AnnotationsResourceWithRawResponse: + return AnnotationsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AnnotationsWithStreamingResponse: - return AnnotationsWithStreamingResponse(self) + def with_streaming_response(self) -> AnnotationsResourceWithStreamingResponse: + return AnnotationsResourceWithStreamingResponse(self) -class AsyncAnnotations(AsyncAPIResource): +class AsyncAnnotationsResource(AsyncAPIResource): @cached_property - def outages(self) -> AsyncOutages: - return AsyncOutages(self._client) + def outages(self) -> AsyncOutagesResource: + return AsyncOutagesResource(self._client) @cached_property - def with_raw_response(self) -> AsyncAnnotationsWithRawResponse: - return AsyncAnnotationsWithRawResponse(self) + def with_raw_response(self) -> AsyncAnnotationsResourceWithRawResponse: + return AsyncAnnotationsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncAnnotationsWithStreamingResponse: - return AsyncAnnotationsWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncAnnotationsResourceWithStreamingResponse: + return AsyncAnnotationsResourceWithStreamingResponse(self) -class AnnotationsWithRawResponse: - def __init__(self, annotations: Annotations) -> None: +class AnnotationsResourceWithRawResponse: + def __init__(self, annotations: AnnotationsResource) -> None: self._annotations = annotations @cached_property - def outages(self) -> OutagesWithRawResponse: - return OutagesWithRawResponse(self._annotations.outages) + def outages(self) -> OutagesResourceWithRawResponse: + return OutagesResourceWithRawResponse(self._annotations.outages) -class AsyncAnnotationsWithRawResponse: - def __init__(self, annotations: AsyncAnnotations) -> None: +class AsyncAnnotationsResourceWithRawResponse: + def __init__(self, annotations: AsyncAnnotationsResource) -> None: self._annotations = annotations @cached_property - def outages(self) -> AsyncOutagesWithRawResponse: - return AsyncOutagesWithRawResponse(self._annotations.outages) + def outages(self) -> AsyncOutagesResourceWithRawResponse: + return AsyncOutagesResourceWithRawResponse(self._annotations.outages) -class AnnotationsWithStreamingResponse: - def __init__(self, annotations: Annotations) -> None: +class AnnotationsResourceWithStreamingResponse: + def __init__(self, annotations: AnnotationsResource) -> None: self._annotations = annotations @cached_property - def outages(self) -> OutagesWithStreamingResponse: - return OutagesWithStreamingResponse(self._annotations.outages) + def outages(self) -> OutagesResourceWithStreamingResponse: + return OutagesResourceWithStreamingResponse(self._annotations.outages) -class AsyncAnnotationsWithStreamingResponse: - def __init__(self, annotations: AsyncAnnotations) -> None: +class AsyncAnnotationsResourceWithStreamingResponse: + def __init__(self, annotations: AsyncAnnotationsResource) -> None: self._annotations = annotations @cached_property - def outages(self) -> AsyncOutagesWithStreamingResponse: - return AsyncOutagesWithStreamingResponse(self._annotations.outages) + def outages(self) -> AsyncOutagesResourceWithStreamingResponse: + return AsyncOutagesResourceWithStreamingResponse(self._annotations.outages) diff --git a/src/cloudflare/resources/radar/annotations/outages.py b/src/cloudflare/resources/radar/annotations/outages.py index 40a6f22a1b7..f53fee61e9d 100644 --- a/src/cloudflare/resources/radar/annotations/outages.py +++ b/src/cloudflare/resources/radar/annotations/outages.py @@ -29,17 +29,17 @@ from ....types.radar.annotations.outage_get_response import OutageGetResponse from ....types.radar.annotations.outage_locations_response import OutageLocationsResponse -__all__ = ["Outages", "AsyncOutages"] +__all__ = ["OutagesResource", "AsyncOutagesResource"] -class Outages(SyncAPIResource): +class OutagesResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> OutagesWithRawResponse: - return OutagesWithRawResponse(self) + def with_raw_response(self) -> OutagesResourceWithRawResponse: + return OutagesResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> OutagesWithStreamingResponse: - return OutagesWithStreamingResponse(self) + def with_streaming_response(self) -> OutagesResourceWithStreamingResponse: + return OutagesResourceWithStreamingResponse(self) def get( self, @@ -208,14 +208,14 @@ def locations( ) -class AsyncOutages(AsyncAPIResource): +class AsyncOutagesResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncOutagesWithRawResponse: - return AsyncOutagesWithRawResponse(self) + def with_raw_response(self) -> AsyncOutagesResourceWithRawResponse: + return AsyncOutagesResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncOutagesWithStreamingResponse: - return AsyncOutagesWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncOutagesResourceWithStreamingResponse: + return AsyncOutagesResourceWithStreamingResponse(self) async def get( self, @@ -384,8 +384,8 @@ async def locations( ) -class OutagesWithRawResponse: - def __init__(self, outages: Outages) -> None: +class OutagesResourceWithRawResponse: + def __init__(self, outages: OutagesResource) -> None: self._outages = outages self.get = to_raw_response_wrapper( @@ -396,8 +396,8 @@ def __init__(self, outages: Outages) -> None: ) -class AsyncOutagesWithRawResponse: - def __init__(self, outages: AsyncOutages) -> None: +class AsyncOutagesResourceWithRawResponse: + def __init__(self, outages: AsyncOutagesResource) -> None: self._outages = outages self.get = async_to_raw_response_wrapper( @@ -408,8 +408,8 @@ def __init__(self, outages: AsyncOutages) -> None: ) -class OutagesWithStreamingResponse: - def __init__(self, outages: Outages) -> None: +class OutagesResourceWithStreamingResponse: + def __init__(self, outages: OutagesResource) -> None: self._outages = outages self.get = to_streamed_response_wrapper( @@ -420,8 +420,8 @@ def __init__(self, outages: Outages) -> None: ) -class AsyncOutagesWithStreamingResponse: - def __init__(self, outages: AsyncOutages) -> None: +class AsyncOutagesResourceWithStreamingResponse: + def __init__(self, outages: AsyncOutagesResource) -> None: self._outages = outages self.get = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/radar/as112/__init__.py b/src/cloudflare/resources/radar/as112/__init__.py index a08ff61d832..66f43b9e673 100644 --- a/src/cloudflare/resources/radar/as112/__init__.py +++ b/src/cloudflare/resources/radar/as112/__init__.py @@ -1,61 +1,61 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from .top import ( - Top, - AsyncTop, - TopWithRawResponse, - AsyncTopWithRawResponse, - TopWithStreamingResponse, - AsyncTopWithStreamingResponse, + TopResource, + AsyncTopResource, + TopResourceWithRawResponse, + AsyncTopResourceWithRawResponse, + TopResourceWithStreamingResponse, + AsyncTopResourceWithStreamingResponse, ) from .as112 import ( - AS112, - AsyncAS112, - AS112WithRawResponse, - AsyncAS112WithRawResponse, - AS112WithStreamingResponse, - AsyncAS112WithStreamingResponse, + AS112Resource, + AsyncAS112Resource, + AS112ResourceWithRawResponse, + AsyncAS112ResourceWithRawResponse, + AS112ResourceWithStreamingResponse, + AsyncAS112ResourceWithStreamingResponse, ) from .summary import ( - Summary, - AsyncSummary, - SummaryWithRawResponse, - AsyncSummaryWithRawResponse, - SummaryWithStreamingResponse, - AsyncSummaryWithStreamingResponse, + SummaryResource, + AsyncSummaryResource, + SummaryResourceWithRawResponse, + AsyncSummaryResourceWithRawResponse, + SummaryResourceWithStreamingResponse, + AsyncSummaryResourceWithStreamingResponse, ) from .timeseries_groups import ( - TimeseriesGroups, - AsyncTimeseriesGroups, - TimeseriesGroupsWithRawResponse, - AsyncTimeseriesGroupsWithRawResponse, - TimeseriesGroupsWithStreamingResponse, - AsyncTimeseriesGroupsWithStreamingResponse, + TimeseriesGroupsResource, + AsyncTimeseriesGroupsResource, + TimeseriesGroupsResourceWithRawResponse, + AsyncTimeseriesGroupsResourceWithRawResponse, + TimeseriesGroupsResourceWithStreamingResponse, + AsyncTimeseriesGroupsResourceWithStreamingResponse, ) __all__ = [ - "Summary", - "AsyncSummary", - "SummaryWithRawResponse", - "AsyncSummaryWithRawResponse", - "SummaryWithStreamingResponse", - "AsyncSummaryWithStreamingResponse", - "TimeseriesGroups", - "AsyncTimeseriesGroups", - "TimeseriesGroupsWithRawResponse", - "AsyncTimeseriesGroupsWithRawResponse", - "TimeseriesGroupsWithStreamingResponse", - "AsyncTimeseriesGroupsWithStreamingResponse", - "Top", - "AsyncTop", - "TopWithRawResponse", - "AsyncTopWithRawResponse", - "TopWithStreamingResponse", - "AsyncTopWithStreamingResponse", - "AS112", - "AsyncAS112", - "AS112WithRawResponse", - "AsyncAS112WithRawResponse", - "AS112WithStreamingResponse", - "AsyncAS112WithStreamingResponse", + "SummaryResource", + "AsyncSummaryResource", + "SummaryResourceWithRawResponse", + "AsyncSummaryResourceWithRawResponse", + "SummaryResourceWithStreamingResponse", + "AsyncSummaryResourceWithStreamingResponse", + "TimeseriesGroupsResource", + "AsyncTimeseriesGroupsResource", + "TimeseriesGroupsResourceWithRawResponse", + "AsyncTimeseriesGroupsResourceWithRawResponse", + "TimeseriesGroupsResourceWithStreamingResponse", + "AsyncTimeseriesGroupsResourceWithStreamingResponse", + "TopResource", + "AsyncTopResource", + "TopResourceWithRawResponse", + "AsyncTopResourceWithRawResponse", + "TopResourceWithStreamingResponse", + "AsyncTopResourceWithStreamingResponse", + "AS112Resource", + "AsyncAS112Resource", + "AS112ResourceWithRawResponse", + "AsyncAS112ResourceWithRawResponse", + "AS112ResourceWithStreamingResponse", + "AsyncAS112ResourceWithStreamingResponse", ] diff --git a/src/cloudflare/resources/radar/as112/as112.py b/src/cloudflare/resources/radar/as112/as112.py index a40efffcde5..d9245a12e0e 100644 --- a/src/cloudflare/resources/radar/as112/as112.py +++ b/src/cloudflare/resources/radar/as112/as112.py @@ -9,20 +9,20 @@ import httpx from .top import ( - Top, - AsyncTop, - TopWithRawResponse, - AsyncTopWithRawResponse, - TopWithStreamingResponse, - AsyncTopWithStreamingResponse, + TopResource, + AsyncTopResource, + TopResourceWithRawResponse, + AsyncTopResourceWithRawResponse, + TopResourceWithStreamingResponse, + AsyncTopResourceWithStreamingResponse, ) from .summary import ( - Summary, - AsyncSummary, - SummaryWithRawResponse, - AsyncSummaryWithRawResponse, - SummaryWithStreamingResponse, - AsyncSummaryWithStreamingResponse, + SummaryResource, + AsyncSummaryResource, + SummaryResourceWithRawResponse, + AsyncSummaryResourceWithRawResponse, + SummaryResourceWithStreamingResponse, + AsyncSummaryResourceWithStreamingResponse, ) from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven from ...._utils import ( @@ -43,38 +43,38 @@ make_request_options, ) from .timeseries_groups import ( - TimeseriesGroups, - AsyncTimeseriesGroups, - TimeseriesGroupsWithRawResponse, - AsyncTimeseriesGroupsWithRawResponse, - TimeseriesGroupsWithStreamingResponse, - AsyncTimeseriesGroupsWithStreamingResponse, + TimeseriesGroupsResource, + AsyncTimeseriesGroupsResource, + TimeseriesGroupsResourceWithRawResponse, + AsyncTimeseriesGroupsResourceWithRawResponse, + TimeseriesGroupsResourceWithStreamingResponse, + AsyncTimeseriesGroupsResourceWithStreamingResponse, ) from ....types.radar.as112_timeseries_response import AS112TimeseriesResponse -__all__ = ["AS112", "AsyncAS112"] +__all__ = ["AS112Resource", "AsyncAS112Resource"] -class AS112(SyncAPIResource): +class AS112Resource(SyncAPIResource): @cached_property - def summary(self) -> Summary: - return Summary(self._client) + def summary(self) -> SummaryResource: + return SummaryResource(self._client) @cached_property - def timeseries_groups(self) -> TimeseriesGroups: - return TimeseriesGroups(self._client) + def timeseries_groups(self) -> TimeseriesGroupsResource: + return TimeseriesGroupsResource(self._client) @cached_property - def top(self) -> Top: - return Top(self._client) + def top(self) -> TopResource: + return TopResource(self._client) @cached_property - def with_raw_response(self) -> AS112WithRawResponse: - return AS112WithRawResponse(self) + def with_raw_response(self) -> AS112ResourceWithRawResponse: + return AS112ResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AS112WithStreamingResponse: - return AS112WithStreamingResponse(self) + def with_streaming_response(self) -> AS112ResourceWithStreamingResponse: + return AS112ResourceWithStreamingResponse(self) def timeseries( self, @@ -181,26 +181,26 @@ def timeseries( ) -class AsyncAS112(AsyncAPIResource): +class AsyncAS112Resource(AsyncAPIResource): @cached_property - def summary(self) -> AsyncSummary: - return AsyncSummary(self._client) + def summary(self) -> AsyncSummaryResource: + return AsyncSummaryResource(self._client) @cached_property - def timeseries_groups(self) -> AsyncTimeseriesGroups: - return AsyncTimeseriesGroups(self._client) + def timeseries_groups(self) -> AsyncTimeseriesGroupsResource: + return AsyncTimeseriesGroupsResource(self._client) @cached_property - def top(self) -> AsyncTop: - return AsyncTop(self._client) + def top(self) -> AsyncTopResource: + return AsyncTopResource(self._client) @cached_property - def with_raw_response(self) -> AsyncAS112WithRawResponse: - return AsyncAS112WithRawResponse(self) + def with_raw_response(self) -> AsyncAS112ResourceWithRawResponse: + return AsyncAS112ResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncAS112WithStreamingResponse: - return AsyncAS112WithStreamingResponse(self) + def with_streaming_response(self) -> AsyncAS112ResourceWithStreamingResponse: + return AsyncAS112ResourceWithStreamingResponse(self) async def timeseries( self, @@ -307,8 +307,8 @@ async def timeseries( ) -class AS112WithRawResponse: - def __init__(self, as112: AS112) -> None: +class AS112ResourceWithRawResponse: + def __init__(self, as112: AS112Resource) -> None: self._as112 = as112 self.timeseries = to_raw_response_wrapper( @@ -316,20 +316,20 @@ def __init__(self, as112: AS112) -> None: ) @cached_property - def summary(self) -> SummaryWithRawResponse: - return SummaryWithRawResponse(self._as112.summary) + def summary(self) -> SummaryResourceWithRawResponse: + return SummaryResourceWithRawResponse(self._as112.summary) @cached_property - def timeseries_groups(self) -> TimeseriesGroupsWithRawResponse: - return TimeseriesGroupsWithRawResponse(self._as112.timeseries_groups) + def timeseries_groups(self) -> TimeseriesGroupsResourceWithRawResponse: + return TimeseriesGroupsResourceWithRawResponse(self._as112.timeseries_groups) @cached_property - def top(self) -> TopWithRawResponse: - return TopWithRawResponse(self._as112.top) + def top(self) -> TopResourceWithRawResponse: + return TopResourceWithRawResponse(self._as112.top) -class AsyncAS112WithRawResponse: - def __init__(self, as112: AsyncAS112) -> None: +class AsyncAS112ResourceWithRawResponse: + def __init__(self, as112: AsyncAS112Resource) -> None: self._as112 = as112 self.timeseries = async_to_raw_response_wrapper( @@ -337,20 +337,20 @@ def __init__(self, as112: AsyncAS112) -> None: ) @cached_property - def summary(self) -> AsyncSummaryWithRawResponse: - return AsyncSummaryWithRawResponse(self._as112.summary) + def summary(self) -> AsyncSummaryResourceWithRawResponse: + return AsyncSummaryResourceWithRawResponse(self._as112.summary) @cached_property - def timeseries_groups(self) -> AsyncTimeseriesGroupsWithRawResponse: - return AsyncTimeseriesGroupsWithRawResponse(self._as112.timeseries_groups) + def timeseries_groups(self) -> AsyncTimeseriesGroupsResourceWithRawResponse: + return AsyncTimeseriesGroupsResourceWithRawResponse(self._as112.timeseries_groups) @cached_property - def top(self) -> AsyncTopWithRawResponse: - return AsyncTopWithRawResponse(self._as112.top) + def top(self) -> AsyncTopResourceWithRawResponse: + return AsyncTopResourceWithRawResponse(self._as112.top) -class AS112WithStreamingResponse: - def __init__(self, as112: AS112) -> None: +class AS112ResourceWithStreamingResponse: + def __init__(self, as112: AS112Resource) -> None: self._as112 = as112 self.timeseries = to_streamed_response_wrapper( @@ -358,20 +358,20 @@ def __init__(self, as112: AS112) -> None: ) @cached_property - def summary(self) -> SummaryWithStreamingResponse: - return SummaryWithStreamingResponse(self._as112.summary) + def summary(self) -> SummaryResourceWithStreamingResponse: + return SummaryResourceWithStreamingResponse(self._as112.summary) @cached_property - def timeseries_groups(self) -> TimeseriesGroupsWithStreamingResponse: - return TimeseriesGroupsWithStreamingResponse(self._as112.timeseries_groups) + def timeseries_groups(self) -> TimeseriesGroupsResourceWithStreamingResponse: + return TimeseriesGroupsResourceWithStreamingResponse(self._as112.timeseries_groups) @cached_property - def top(self) -> TopWithStreamingResponse: - return TopWithStreamingResponse(self._as112.top) + def top(self) -> TopResourceWithStreamingResponse: + return TopResourceWithStreamingResponse(self._as112.top) -class AsyncAS112WithStreamingResponse: - def __init__(self, as112: AsyncAS112) -> None: +class AsyncAS112ResourceWithStreamingResponse: + def __init__(self, as112: AsyncAS112Resource) -> None: self._as112 = as112 self.timeseries = async_to_streamed_response_wrapper( @@ -379,13 +379,13 @@ def __init__(self, as112: AsyncAS112) -> None: ) @cached_property - def summary(self) -> AsyncSummaryWithStreamingResponse: - return AsyncSummaryWithStreamingResponse(self._as112.summary) + def summary(self) -> AsyncSummaryResourceWithStreamingResponse: + return AsyncSummaryResourceWithStreamingResponse(self._as112.summary) @cached_property - def timeseries_groups(self) -> AsyncTimeseriesGroupsWithStreamingResponse: - return AsyncTimeseriesGroupsWithStreamingResponse(self._as112.timeseries_groups) + def timeseries_groups(self) -> AsyncTimeseriesGroupsResourceWithStreamingResponse: + return AsyncTimeseriesGroupsResourceWithStreamingResponse(self._as112.timeseries_groups) @cached_property - def top(self) -> AsyncTopWithStreamingResponse: - return AsyncTopWithStreamingResponse(self._as112.top) + def top(self) -> AsyncTopResourceWithStreamingResponse: + return AsyncTopResourceWithStreamingResponse(self._as112.top) diff --git a/src/cloudflare/resources/radar/as112/summary.py b/src/cloudflare/resources/radar/as112/summary.py index ce36b17a863..a67b1833204 100644 --- a/src/cloudflare/resources/radar/as112/summary.py +++ b/src/cloudflare/resources/radar/as112/summary.py @@ -40,17 +40,17 @@ from ....types.radar.as112.summary_query_type_response import SummaryQueryTypeResponse from ....types.radar.as112.summary_response_codes_response import SummaryResponseCodesResponse -__all__ = ["Summary", "AsyncSummary"] +__all__ = ["SummaryResource", "AsyncSummaryResource"] -class Summary(SyncAPIResource): +class SummaryResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> SummaryWithRawResponse: - return SummaryWithRawResponse(self) + def with_raw_response(self) -> SummaryResourceWithRawResponse: + return SummaryResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> SummaryWithStreamingResponse: - return SummaryWithStreamingResponse(self) + def with_streaming_response(self) -> SummaryResourceWithStreamingResponse: + return SummaryResourceWithStreamingResponse(self) def dnssec( self, @@ -641,14 +641,14 @@ def response_codes( ) -class AsyncSummary(AsyncAPIResource): +class AsyncSummaryResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncSummaryWithRawResponse: - return AsyncSummaryWithRawResponse(self) + def with_raw_response(self) -> AsyncSummaryResourceWithRawResponse: + return AsyncSummaryResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncSummaryWithStreamingResponse: - return AsyncSummaryWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncSummaryResourceWithStreamingResponse: + return AsyncSummaryResourceWithStreamingResponse(self) async def dnssec( self, @@ -1239,8 +1239,8 @@ async def response_codes( ) -class SummaryWithRawResponse: - def __init__(self, summary: Summary) -> None: +class SummaryResourceWithRawResponse: + def __init__(self, summary: SummaryResource) -> None: self._summary = summary self.dnssec = to_raw_response_wrapper( @@ -1263,8 +1263,8 @@ def __init__(self, summary: Summary) -> None: ) -class AsyncSummaryWithRawResponse: - def __init__(self, summary: AsyncSummary) -> None: +class AsyncSummaryResourceWithRawResponse: + def __init__(self, summary: AsyncSummaryResource) -> None: self._summary = summary self.dnssec = async_to_raw_response_wrapper( @@ -1287,8 +1287,8 @@ def __init__(self, summary: AsyncSummary) -> None: ) -class SummaryWithStreamingResponse: - def __init__(self, summary: Summary) -> None: +class SummaryResourceWithStreamingResponse: + def __init__(self, summary: SummaryResource) -> None: self._summary = summary self.dnssec = to_streamed_response_wrapper( @@ -1311,8 +1311,8 @@ def __init__(self, summary: Summary) -> None: ) -class AsyncSummaryWithStreamingResponse: - def __init__(self, summary: AsyncSummary) -> None: +class AsyncSummaryResourceWithStreamingResponse: + def __init__(self, summary: AsyncSummaryResource) -> None: self._summary = summary self.dnssec = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/radar/as112/timeseries_groups.py b/src/cloudflare/resources/radar/as112/timeseries_groups.py index 1448b399c3e..22765f808f8 100644 --- a/src/cloudflare/resources/radar/as112/timeseries_groups.py +++ b/src/cloudflare/resources/radar/as112/timeseries_groups.py @@ -40,17 +40,17 @@ from ....types.radar.as112.timeseries_group_query_type_response import TimeseriesGroupQueryTypeResponse from ....types.radar.as112.timeseries_group_response_codes_response import TimeseriesGroupResponseCodesResponse -__all__ = ["TimeseriesGroups", "AsyncTimeseriesGroups"] +__all__ = ["TimeseriesGroupsResource", "AsyncTimeseriesGroupsResource"] -class TimeseriesGroups(SyncAPIResource): +class TimeseriesGroupsResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> TimeseriesGroupsWithRawResponse: - return TimeseriesGroupsWithRawResponse(self) + def with_raw_response(self) -> TimeseriesGroupsResourceWithRawResponse: + return TimeseriesGroupsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> TimeseriesGroupsWithStreamingResponse: - return TimeseriesGroupsWithStreamingResponse(self) + def with_streaming_response(self) -> TimeseriesGroupsResourceWithStreamingResponse: + return TimeseriesGroupsResourceWithStreamingResponse(self) def dnssec( self, @@ -680,14 +680,14 @@ def response_codes( ) -class AsyncTimeseriesGroups(AsyncAPIResource): +class AsyncTimeseriesGroupsResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncTimeseriesGroupsWithRawResponse: - return AsyncTimeseriesGroupsWithRawResponse(self) + def with_raw_response(self) -> AsyncTimeseriesGroupsResourceWithRawResponse: + return AsyncTimeseriesGroupsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncTimeseriesGroupsWithStreamingResponse: - return AsyncTimeseriesGroupsWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncTimeseriesGroupsResourceWithStreamingResponse: + return AsyncTimeseriesGroupsResourceWithStreamingResponse(self) async def dnssec( self, @@ -1317,8 +1317,8 @@ async def response_codes( ) -class TimeseriesGroupsWithRawResponse: - def __init__(self, timeseries_groups: TimeseriesGroups) -> None: +class TimeseriesGroupsResourceWithRawResponse: + def __init__(self, timeseries_groups: TimeseriesGroupsResource) -> None: self._timeseries_groups = timeseries_groups self.dnssec = to_raw_response_wrapper( @@ -1341,8 +1341,8 @@ def __init__(self, timeseries_groups: TimeseriesGroups) -> None: ) -class AsyncTimeseriesGroupsWithRawResponse: - def __init__(self, timeseries_groups: AsyncTimeseriesGroups) -> None: +class AsyncTimeseriesGroupsResourceWithRawResponse: + def __init__(self, timeseries_groups: AsyncTimeseriesGroupsResource) -> None: self._timeseries_groups = timeseries_groups self.dnssec = async_to_raw_response_wrapper( @@ -1365,8 +1365,8 @@ def __init__(self, timeseries_groups: AsyncTimeseriesGroups) -> None: ) -class TimeseriesGroupsWithStreamingResponse: - def __init__(self, timeseries_groups: TimeseriesGroups) -> None: +class TimeseriesGroupsResourceWithStreamingResponse: + def __init__(self, timeseries_groups: TimeseriesGroupsResource) -> None: self._timeseries_groups = timeseries_groups self.dnssec = to_streamed_response_wrapper( @@ -1389,8 +1389,8 @@ def __init__(self, timeseries_groups: TimeseriesGroups) -> None: ) -class AsyncTimeseriesGroupsWithStreamingResponse: - def __init__(self, timeseries_groups: AsyncTimeseriesGroups) -> None: +class AsyncTimeseriesGroupsResourceWithStreamingResponse: + def __init__(self, timeseries_groups: AsyncTimeseriesGroupsResource) -> None: self._timeseries_groups = timeseries_groups self.dnssec = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/radar/as112/top.py b/src/cloudflare/resources/radar/as112/top.py index ab3fc525a3d..bf2166e991f 100644 --- a/src/cloudflare/resources/radar/as112/top.py +++ b/src/cloudflare/resources/radar/as112/top.py @@ -31,17 +31,17 @@ from ....types.radar.as112.top_locations_response import TopLocationsResponse from ....types.radar.as112.top_ip_version_response import TopIPVersionResponse -__all__ = ["Top", "AsyncTop"] +__all__ = ["TopResource", "AsyncTopResource"] -class Top(SyncAPIResource): +class TopResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> TopWithRawResponse: - return TopWithRawResponse(self) + def with_raw_response(self) -> TopResourceWithRawResponse: + return TopResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> TopWithStreamingResponse: - return TopWithStreamingResponse(self) + def with_streaming_response(self) -> TopResourceWithStreamingResponse: + return TopResourceWithStreamingResponse(self) def dnssec( self, @@ -469,14 +469,14 @@ def locations( ) -class AsyncTop(AsyncAPIResource): +class AsyncTopResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncTopWithRawResponse: - return AsyncTopWithRawResponse(self) + def with_raw_response(self) -> AsyncTopResourceWithRawResponse: + return AsyncTopResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncTopWithStreamingResponse: - return AsyncTopWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncTopResourceWithStreamingResponse: + return AsyncTopResourceWithStreamingResponse(self) async def dnssec( self, @@ -904,8 +904,8 @@ async def locations( ) -class TopWithRawResponse: - def __init__(self, top: Top) -> None: +class TopResourceWithRawResponse: + def __init__(self, top: TopResource) -> None: self._top = top self.dnssec = to_raw_response_wrapper( @@ -922,8 +922,8 @@ def __init__(self, top: Top) -> None: ) -class AsyncTopWithRawResponse: - def __init__(self, top: AsyncTop) -> None: +class AsyncTopResourceWithRawResponse: + def __init__(self, top: AsyncTopResource) -> None: self._top = top self.dnssec = async_to_raw_response_wrapper( @@ -940,8 +940,8 @@ def __init__(self, top: AsyncTop) -> None: ) -class TopWithStreamingResponse: - def __init__(self, top: Top) -> None: +class TopResourceWithStreamingResponse: + def __init__(self, top: TopResource) -> None: self._top = top self.dnssec = to_streamed_response_wrapper( @@ -958,8 +958,8 @@ def __init__(self, top: Top) -> None: ) -class AsyncTopWithStreamingResponse: - def __init__(self, top: AsyncTop) -> None: +class AsyncTopResourceWithStreamingResponse: + def __init__(self, top: AsyncTopResource) -> None: self._top = top self.dnssec = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/radar/attacks/__init__.py b/src/cloudflare/resources/radar/attacks/__init__.py index 41feca20382..4137d7f1511 100644 --- a/src/cloudflare/resources/radar/attacks/__init__.py +++ b/src/cloudflare/resources/radar/attacks/__init__.py @@ -1,47 +1,47 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from .layer3 import ( - Layer3, - AsyncLayer3, - Layer3WithRawResponse, - AsyncLayer3WithRawResponse, - Layer3WithStreamingResponse, - AsyncLayer3WithStreamingResponse, + Layer3Resource, + AsyncLayer3Resource, + Layer3ResourceWithRawResponse, + AsyncLayer3ResourceWithRawResponse, + Layer3ResourceWithStreamingResponse, + AsyncLayer3ResourceWithStreamingResponse, ) from .layer7 import ( - Layer7, - AsyncLayer7, - Layer7WithRawResponse, - AsyncLayer7WithRawResponse, - Layer7WithStreamingResponse, - AsyncLayer7WithStreamingResponse, + Layer7Resource, + AsyncLayer7Resource, + Layer7ResourceWithRawResponse, + AsyncLayer7ResourceWithRawResponse, + Layer7ResourceWithStreamingResponse, + AsyncLayer7ResourceWithStreamingResponse, ) from .attacks import ( - Attacks, - AsyncAttacks, - AttacksWithRawResponse, - AsyncAttacksWithRawResponse, - AttacksWithStreamingResponse, - AsyncAttacksWithStreamingResponse, + AttacksResource, + AsyncAttacksResource, + AttacksResourceWithRawResponse, + AsyncAttacksResourceWithRawResponse, + AttacksResourceWithStreamingResponse, + AsyncAttacksResourceWithStreamingResponse, ) __all__ = [ - "Layer3", - "AsyncLayer3", - "Layer3WithRawResponse", - "AsyncLayer3WithRawResponse", - "Layer3WithStreamingResponse", - "AsyncLayer3WithStreamingResponse", - "Layer7", - "AsyncLayer7", - "Layer7WithRawResponse", - "AsyncLayer7WithRawResponse", - "Layer7WithStreamingResponse", - "AsyncLayer7WithStreamingResponse", - "Attacks", - "AsyncAttacks", - "AttacksWithRawResponse", - "AsyncAttacksWithRawResponse", - "AttacksWithStreamingResponse", - "AsyncAttacksWithStreamingResponse", + "Layer3Resource", + "AsyncLayer3Resource", + "Layer3ResourceWithRawResponse", + "AsyncLayer3ResourceWithRawResponse", + "Layer3ResourceWithStreamingResponse", + "AsyncLayer3ResourceWithStreamingResponse", + "Layer7Resource", + "AsyncLayer7Resource", + "Layer7ResourceWithRawResponse", + "AsyncLayer7ResourceWithRawResponse", + "Layer7ResourceWithStreamingResponse", + "AsyncLayer7ResourceWithStreamingResponse", + "AttacksResource", + "AsyncAttacksResource", + "AttacksResourceWithRawResponse", + "AsyncAttacksResourceWithRawResponse", + "AttacksResourceWithStreamingResponse", + "AsyncAttacksResourceWithStreamingResponse", ] diff --git a/src/cloudflare/resources/radar/attacks/attacks.py b/src/cloudflare/resources/radar/attacks/attacks.py index a3ce837053a..7e3c8daa7cf 100644 --- a/src/cloudflare/resources/radar/attacks/attacks.py +++ b/src/cloudflare/resources/radar/attacks/attacks.py @@ -3,112 +3,112 @@ from __future__ import annotations from .layer3 import ( - Layer3, - AsyncLayer3, - Layer3WithRawResponse, - AsyncLayer3WithRawResponse, - Layer3WithStreamingResponse, - AsyncLayer3WithStreamingResponse, + Layer3Resource, + AsyncLayer3Resource, + Layer3ResourceWithRawResponse, + AsyncLayer3ResourceWithRawResponse, + Layer3ResourceWithStreamingResponse, + AsyncLayer3ResourceWithStreamingResponse, ) from .layer7 import ( - Layer7, - AsyncLayer7, - Layer7WithRawResponse, - AsyncLayer7WithRawResponse, - Layer7WithStreamingResponse, - AsyncLayer7WithStreamingResponse, + Layer7Resource, + AsyncLayer7Resource, + Layer7ResourceWithRawResponse, + AsyncLayer7ResourceWithRawResponse, + Layer7ResourceWithStreamingResponse, + AsyncLayer7ResourceWithStreamingResponse, ) from ...._compat import cached_property from ...._resource import SyncAPIResource, AsyncAPIResource -from .layer3.layer3 import Layer3, AsyncLayer3 -from .layer7.layer7 import Layer7, AsyncLayer7 +from .layer3.layer3 import Layer3Resource, AsyncLayer3Resource +from .layer7.layer7 import Layer7Resource, AsyncLayer7Resource -__all__ = ["Attacks", "AsyncAttacks"] +__all__ = ["AttacksResource", "AsyncAttacksResource"] -class Attacks(SyncAPIResource): +class AttacksResource(SyncAPIResource): @cached_property - def layer3(self) -> Layer3: - return Layer3(self._client) + def layer3(self) -> Layer3Resource: + return Layer3Resource(self._client) @cached_property - def layer7(self) -> Layer7: - return Layer7(self._client) + def layer7(self) -> Layer7Resource: + return Layer7Resource(self._client) @cached_property - def with_raw_response(self) -> AttacksWithRawResponse: - return AttacksWithRawResponse(self) + def with_raw_response(self) -> AttacksResourceWithRawResponse: + return AttacksResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AttacksWithStreamingResponse: - return AttacksWithStreamingResponse(self) + def with_streaming_response(self) -> AttacksResourceWithStreamingResponse: + return AttacksResourceWithStreamingResponse(self) -class AsyncAttacks(AsyncAPIResource): +class AsyncAttacksResource(AsyncAPIResource): @cached_property - def layer3(self) -> AsyncLayer3: - return AsyncLayer3(self._client) + def layer3(self) -> AsyncLayer3Resource: + return AsyncLayer3Resource(self._client) @cached_property - def layer7(self) -> AsyncLayer7: - return AsyncLayer7(self._client) + def layer7(self) -> AsyncLayer7Resource: + return AsyncLayer7Resource(self._client) @cached_property - def with_raw_response(self) -> AsyncAttacksWithRawResponse: - return AsyncAttacksWithRawResponse(self) + def with_raw_response(self) -> AsyncAttacksResourceWithRawResponse: + return AsyncAttacksResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncAttacksWithStreamingResponse: - return AsyncAttacksWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncAttacksResourceWithStreamingResponse: + return AsyncAttacksResourceWithStreamingResponse(self) -class AttacksWithRawResponse: - def __init__(self, attacks: Attacks) -> None: +class AttacksResourceWithRawResponse: + def __init__(self, attacks: AttacksResource) -> None: self._attacks = attacks @cached_property - def layer3(self) -> Layer3WithRawResponse: - return Layer3WithRawResponse(self._attacks.layer3) + def layer3(self) -> Layer3ResourceWithRawResponse: + return Layer3ResourceWithRawResponse(self._attacks.layer3) @cached_property - def layer7(self) -> Layer7WithRawResponse: - return Layer7WithRawResponse(self._attacks.layer7) + def layer7(self) -> Layer7ResourceWithRawResponse: + return Layer7ResourceWithRawResponse(self._attacks.layer7) -class AsyncAttacksWithRawResponse: - def __init__(self, attacks: AsyncAttacks) -> None: +class AsyncAttacksResourceWithRawResponse: + def __init__(self, attacks: AsyncAttacksResource) -> None: self._attacks = attacks @cached_property - def layer3(self) -> AsyncLayer3WithRawResponse: - return AsyncLayer3WithRawResponse(self._attacks.layer3) + def layer3(self) -> AsyncLayer3ResourceWithRawResponse: + return AsyncLayer3ResourceWithRawResponse(self._attacks.layer3) @cached_property - def layer7(self) -> AsyncLayer7WithRawResponse: - return AsyncLayer7WithRawResponse(self._attacks.layer7) + def layer7(self) -> AsyncLayer7ResourceWithRawResponse: + return AsyncLayer7ResourceWithRawResponse(self._attacks.layer7) -class AttacksWithStreamingResponse: - def __init__(self, attacks: Attacks) -> None: +class AttacksResourceWithStreamingResponse: + def __init__(self, attacks: AttacksResource) -> None: self._attacks = attacks @cached_property - def layer3(self) -> Layer3WithStreamingResponse: - return Layer3WithStreamingResponse(self._attacks.layer3) + def layer3(self) -> Layer3ResourceWithStreamingResponse: + return Layer3ResourceWithStreamingResponse(self._attacks.layer3) @cached_property - def layer7(self) -> Layer7WithStreamingResponse: - return Layer7WithStreamingResponse(self._attacks.layer7) + def layer7(self) -> Layer7ResourceWithStreamingResponse: + return Layer7ResourceWithStreamingResponse(self._attacks.layer7) -class AsyncAttacksWithStreamingResponse: - def __init__(self, attacks: AsyncAttacks) -> None: +class AsyncAttacksResourceWithStreamingResponse: + def __init__(self, attacks: AsyncAttacksResource) -> None: self._attacks = attacks @cached_property - def layer3(self) -> AsyncLayer3WithStreamingResponse: - return AsyncLayer3WithStreamingResponse(self._attacks.layer3) + def layer3(self) -> AsyncLayer3ResourceWithStreamingResponse: + return AsyncLayer3ResourceWithStreamingResponse(self._attacks.layer3) @cached_property - def layer7(self) -> AsyncLayer7WithStreamingResponse: - return AsyncLayer7WithStreamingResponse(self._attacks.layer7) + def layer7(self) -> AsyncLayer7ResourceWithStreamingResponse: + return AsyncLayer7ResourceWithStreamingResponse(self._attacks.layer7) diff --git a/src/cloudflare/resources/radar/attacks/layer3/__init__.py b/src/cloudflare/resources/radar/attacks/layer3/__init__.py index c1b035369df..833984a8122 100644 --- a/src/cloudflare/resources/radar/attacks/layer3/__init__.py +++ b/src/cloudflare/resources/radar/attacks/layer3/__init__.py @@ -1,61 +1,61 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from .top import ( - Top, - AsyncTop, - TopWithRawResponse, - AsyncTopWithRawResponse, - TopWithStreamingResponse, - AsyncTopWithStreamingResponse, + TopResource, + AsyncTopResource, + TopResourceWithRawResponse, + AsyncTopResourceWithRawResponse, + TopResourceWithStreamingResponse, + AsyncTopResourceWithStreamingResponse, ) from .layer3 import ( - Layer3, - AsyncLayer3, - Layer3WithRawResponse, - AsyncLayer3WithRawResponse, - Layer3WithStreamingResponse, - AsyncLayer3WithStreamingResponse, + Layer3Resource, + AsyncLayer3Resource, + Layer3ResourceWithRawResponse, + AsyncLayer3ResourceWithRawResponse, + Layer3ResourceWithStreamingResponse, + AsyncLayer3ResourceWithStreamingResponse, ) from .summary import ( - Summary, - AsyncSummary, - SummaryWithRawResponse, - AsyncSummaryWithRawResponse, - SummaryWithStreamingResponse, - AsyncSummaryWithStreamingResponse, + SummaryResource, + AsyncSummaryResource, + SummaryResourceWithRawResponse, + AsyncSummaryResourceWithRawResponse, + SummaryResourceWithStreamingResponse, + AsyncSummaryResourceWithStreamingResponse, ) from .timeseries_groups import ( - TimeseriesGroups, - AsyncTimeseriesGroups, - TimeseriesGroupsWithRawResponse, - AsyncTimeseriesGroupsWithRawResponse, - TimeseriesGroupsWithStreamingResponse, - AsyncTimeseriesGroupsWithStreamingResponse, + TimeseriesGroupsResource, + AsyncTimeseriesGroupsResource, + TimeseriesGroupsResourceWithRawResponse, + AsyncTimeseriesGroupsResourceWithRawResponse, + TimeseriesGroupsResourceWithStreamingResponse, + AsyncTimeseriesGroupsResourceWithStreamingResponse, ) __all__ = [ - "Summary", - "AsyncSummary", - "SummaryWithRawResponse", - "AsyncSummaryWithRawResponse", - "SummaryWithStreamingResponse", - "AsyncSummaryWithStreamingResponse", - "TimeseriesGroups", - "AsyncTimeseriesGroups", - "TimeseriesGroupsWithRawResponse", - "AsyncTimeseriesGroupsWithRawResponse", - "TimeseriesGroupsWithStreamingResponse", - "AsyncTimeseriesGroupsWithStreamingResponse", - "Top", - "AsyncTop", - "TopWithRawResponse", - "AsyncTopWithRawResponse", - "TopWithStreamingResponse", - "AsyncTopWithStreamingResponse", - "Layer3", - "AsyncLayer3", - "Layer3WithRawResponse", - "AsyncLayer3WithRawResponse", - "Layer3WithStreamingResponse", - "AsyncLayer3WithStreamingResponse", + "SummaryResource", + "AsyncSummaryResource", + "SummaryResourceWithRawResponse", + "AsyncSummaryResourceWithRawResponse", + "SummaryResourceWithStreamingResponse", + "AsyncSummaryResourceWithStreamingResponse", + "TimeseriesGroupsResource", + "AsyncTimeseriesGroupsResource", + "TimeseriesGroupsResourceWithRawResponse", + "AsyncTimeseriesGroupsResourceWithRawResponse", + "TimeseriesGroupsResourceWithStreamingResponse", + "AsyncTimeseriesGroupsResourceWithStreamingResponse", + "TopResource", + "AsyncTopResource", + "TopResourceWithRawResponse", + "AsyncTopResourceWithRawResponse", + "TopResourceWithStreamingResponse", + "AsyncTopResourceWithStreamingResponse", + "Layer3Resource", + "AsyncLayer3Resource", + "Layer3ResourceWithRawResponse", + "AsyncLayer3ResourceWithRawResponse", + "Layer3ResourceWithStreamingResponse", + "AsyncLayer3ResourceWithStreamingResponse", ] diff --git a/src/cloudflare/resources/radar/attacks/layer3/layer3.py b/src/cloudflare/resources/radar/attacks/layer3/layer3.py index bfe3cd87042..22a1a7a706b 100644 --- a/src/cloudflare/resources/radar/attacks/layer3/layer3.py +++ b/src/cloudflare/resources/radar/attacks/layer3/layer3.py @@ -9,22 +9,22 @@ import httpx from .top import ( - Top, - AsyncTop, - TopWithRawResponse, - AsyncTopWithRawResponse, - TopWithStreamingResponse, - AsyncTopWithStreamingResponse, + TopResource, + AsyncTopResource, + TopResourceWithRawResponse, + AsyncTopResourceWithRawResponse, + TopResourceWithStreamingResponse, + AsyncTopResourceWithStreamingResponse, ) from .summary import ( - Summary, - AsyncSummary, - SummaryWithRawResponse, - AsyncSummaryWithRawResponse, - SummaryWithStreamingResponse, - AsyncSummaryWithStreamingResponse, + SummaryResource, + AsyncSummaryResource, + SummaryResourceWithRawResponse, + AsyncSummaryResourceWithRawResponse, + SummaryResourceWithStreamingResponse, + AsyncSummaryResourceWithStreamingResponse, ) -from .top.top import Top, AsyncTop +from .top.top import TopResource, AsyncTopResource from ....._types import NOT_GIVEN, Body, Query, Headers, NotGiven from ....._utils import ( maybe_transform, @@ -43,39 +43,39 @@ make_request_options, ) from .timeseries_groups import ( - TimeseriesGroups, - AsyncTimeseriesGroups, - TimeseriesGroupsWithRawResponse, - AsyncTimeseriesGroupsWithRawResponse, - TimeseriesGroupsWithStreamingResponse, - AsyncTimeseriesGroupsWithStreamingResponse, + TimeseriesGroupsResource, + AsyncTimeseriesGroupsResource, + TimeseriesGroupsResourceWithRawResponse, + AsyncTimeseriesGroupsResourceWithRawResponse, + TimeseriesGroupsResourceWithStreamingResponse, + AsyncTimeseriesGroupsResourceWithStreamingResponse, ) from .....types.radar.attacks import layer3_timeseries_params from .....types.radar.attacks.layer3_timeseries_response import Layer3TimeseriesResponse -__all__ = ["Layer3", "AsyncLayer3"] +__all__ = ["Layer3Resource", "AsyncLayer3Resource"] -class Layer3(SyncAPIResource): +class Layer3Resource(SyncAPIResource): @cached_property - def summary(self) -> Summary: - return Summary(self._client) + def summary(self) -> SummaryResource: + return SummaryResource(self._client) @cached_property - def timeseries_groups(self) -> TimeseriesGroups: - return TimeseriesGroups(self._client) + def timeseries_groups(self) -> TimeseriesGroupsResource: + return TimeseriesGroupsResource(self._client) @cached_property - def top(self) -> Top: - return Top(self._client) + def top(self) -> TopResource: + return TopResource(self._client) @cached_property - def with_raw_response(self) -> Layer3WithRawResponse: - return Layer3WithRawResponse(self) + def with_raw_response(self) -> Layer3ResourceWithRawResponse: + return Layer3ResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> Layer3WithStreamingResponse: - return Layer3WithStreamingResponse(self) + def with_streaming_response(self) -> Layer3ResourceWithStreamingResponse: + return Layer3ResourceWithStreamingResponse(self) def timeseries( self, @@ -204,26 +204,26 @@ def timeseries( ) -class AsyncLayer3(AsyncAPIResource): +class AsyncLayer3Resource(AsyncAPIResource): @cached_property - def summary(self) -> AsyncSummary: - return AsyncSummary(self._client) + def summary(self) -> AsyncSummaryResource: + return AsyncSummaryResource(self._client) @cached_property - def timeseries_groups(self) -> AsyncTimeseriesGroups: - return AsyncTimeseriesGroups(self._client) + def timeseries_groups(self) -> AsyncTimeseriesGroupsResource: + return AsyncTimeseriesGroupsResource(self._client) @cached_property - def top(self) -> AsyncTop: - return AsyncTop(self._client) + def top(self) -> AsyncTopResource: + return AsyncTopResource(self._client) @cached_property - def with_raw_response(self) -> AsyncLayer3WithRawResponse: - return AsyncLayer3WithRawResponse(self) + def with_raw_response(self) -> AsyncLayer3ResourceWithRawResponse: + return AsyncLayer3ResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncLayer3WithStreamingResponse: - return AsyncLayer3WithStreamingResponse(self) + def with_streaming_response(self) -> AsyncLayer3ResourceWithStreamingResponse: + return AsyncLayer3ResourceWithStreamingResponse(self) async def timeseries( self, @@ -352,8 +352,8 @@ async def timeseries( ) -class Layer3WithRawResponse: - def __init__(self, layer3: Layer3) -> None: +class Layer3ResourceWithRawResponse: + def __init__(self, layer3: Layer3Resource) -> None: self._layer3 = layer3 self.timeseries = to_raw_response_wrapper( @@ -361,20 +361,20 @@ def __init__(self, layer3: Layer3) -> None: ) @cached_property - def summary(self) -> SummaryWithRawResponse: - return SummaryWithRawResponse(self._layer3.summary) + def summary(self) -> SummaryResourceWithRawResponse: + return SummaryResourceWithRawResponse(self._layer3.summary) @cached_property - def timeseries_groups(self) -> TimeseriesGroupsWithRawResponse: - return TimeseriesGroupsWithRawResponse(self._layer3.timeseries_groups) + def timeseries_groups(self) -> TimeseriesGroupsResourceWithRawResponse: + return TimeseriesGroupsResourceWithRawResponse(self._layer3.timeseries_groups) @cached_property - def top(self) -> TopWithRawResponse: - return TopWithRawResponse(self._layer3.top) + def top(self) -> TopResourceWithRawResponse: + return TopResourceWithRawResponse(self._layer3.top) -class AsyncLayer3WithRawResponse: - def __init__(self, layer3: AsyncLayer3) -> None: +class AsyncLayer3ResourceWithRawResponse: + def __init__(self, layer3: AsyncLayer3Resource) -> None: self._layer3 = layer3 self.timeseries = async_to_raw_response_wrapper( @@ -382,20 +382,20 @@ def __init__(self, layer3: AsyncLayer3) -> None: ) @cached_property - def summary(self) -> AsyncSummaryWithRawResponse: - return AsyncSummaryWithRawResponse(self._layer3.summary) + def summary(self) -> AsyncSummaryResourceWithRawResponse: + return AsyncSummaryResourceWithRawResponse(self._layer3.summary) @cached_property - def timeseries_groups(self) -> AsyncTimeseriesGroupsWithRawResponse: - return AsyncTimeseriesGroupsWithRawResponse(self._layer3.timeseries_groups) + def timeseries_groups(self) -> AsyncTimeseriesGroupsResourceWithRawResponse: + return AsyncTimeseriesGroupsResourceWithRawResponse(self._layer3.timeseries_groups) @cached_property - def top(self) -> AsyncTopWithRawResponse: - return AsyncTopWithRawResponse(self._layer3.top) + def top(self) -> AsyncTopResourceWithRawResponse: + return AsyncTopResourceWithRawResponse(self._layer3.top) -class Layer3WithStreamingResponse: - def __init__(self, layer3: Layer3) -> None: +class Layer3ResourceWithStreamingResponse: + def __init__(self, layer3: Layer3Resource) -> None: self._layer3 = layer3 self.timeseries = to_streamed_response_wrapper( @@ -403,20 +403,20 @@ def __init__(self, layer3: Layer3) -> None: ) @cached_property - def summary(self) -> SummaryWithStreamingResponse: - return SummaryWithStreamingResponse(self._layer3.summary) + def summary(self) -> SummaryResourceWithStreamingResponse: + return SummaryResourceWithStreamingResponse(self._layer3.summary) @cached_property - def timeseries_groups(self) -> TimeseriesGroupsWithStreamingResponse: - return TimeseriesGroupsWithStreamingResponse(self._layer3.timeseries_groups) + def timeseries_groups(self) -> TimeseriesGroupsResourceWithStreamingResponse: + return TimeseriesGroupsResourceWithStreamingResponse(self._layer3.timeseries_groups) @cached_property - def top(self) -> TopWithStreamingResponse: - return TopWithStreamingResponse(self._layer3.top) + def top(self) -> TopResourceWithStreamingResponse: + return TopResourceWithStreamingResponse(self._layer3.top) -class AsyncLayer3WithStreamingResponse: - def __init__(self, layer3: AsyncLayer3) -> None: +class AsyncLayer3ResourceWithStreamingResponse: + def __init__(self, layer3: AsyncLayer3Resource) -> None: self._layer3 = layer3 self.timeseries = async_to_streamed_response_wrapper( @@ -424,13 +424,13 @@ def __init__(self, layer3: AsyncLayer3) -> None: ) @cached_property - def summary(self) -> AsyncSummaryWithStreamingResponse: - return AsyncSummaryWithStreamingResponse(self._layer3.summary) + def summary(self) -> AsyncSummaryResourceWithStreamingResponse: + return AsyncSummaryResourceWithStreamingResponse(self._layer3.summary) @cached_property - def timeseries_groups(self) -> AsyncTimeseriesGroupsWithStreamingResponse: - return AsyncTimeseriesGroupsWithStreamingResponse(self._layer3.timeseries_groups) + def timeseries_groups(self) -> AsyncTimeseriesGroupsResourceWithStreamingResponse: + return AsyncTimeseriesGroupsResourceWithStreamingResponse(self._layer3.timeseries_groups) @cached_property - def top(self) -> AsyncTopWithStreamingResponse: - return AsyncTopWithStreamingResponse(self._layer3.top) + def top(self) -> AsyncTopResourceWithStreamingResponse: + return AsyncTopResourceWithStreamingResponse(self._layer3.top) diff --git a/src/cloudflare/resources/radar/attacks/layer3/summary.py b/src/cloudflare/resources/radar/attacks/layer3/summary.py index d5995d93a62..d894d181af2 100644 --- a/src/cloudflare/resources/radar/attacks/layer3/summary.py +++ b/src/cloudflare/resources/radar/attacks/layer3/summary.py @@ -40,17 +40,17 @@ from .....types.radar.attacks.layer3.summary_protocol_response import SummaryProtocolResponse from .....types.radar.attacks.layer3.summary_ip_version_response import SummaryIPVersionResponse -__all__ = ["Summary", "AsyncSummary"] +__all__ = ["SummaryResource", "AsyncSummaryResource"] -class Summary(SyncAPIResource): +class SummaryResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> SummaryWithRawResponse: - return SummaryWithRawResponse(self) + def with_raw_response(self) -> SummaryResourceWithRawResponse: + return SummaryResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> SummaryWithStreamingResponse: - return SummaryWithStreamingResponse(self) + def with_streaming_response(self) -> SummaryResourceWithStreamingResponse: + return SummaryResourceWithStreamingResponse(self) def bitrate( self, @@ -669,14 +669,14 @@ def vector( ) -class AsyncSummary(AsyncAPIResource): +class AsyncSummaryResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncSummaryWithRawResponse: - return AsyncSummaryWithRawResponse(self) + def with_raw_response(self) -> AsyncSummaryResourceWithRawResponse: + return AsyncSummaryResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncSummaryWithStreamingResponse: - return AsyncSummaryWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncSummaryResourceWithStreamingResponse: + return AsyncSummaryResourceWithStreamingResponse(self) async def bitrate( self, @@ -1295,8 +1295,8 @@ async def vector( ) -class SummaryWithRawResponse: - def __init__(self, summary: Summary) -> None: +class SummaryResourceWithRawResponse: + def __init__(self, summary: SummaryResource) -> None: self._summary = summary self.bitrate = to_raw_response_wrapper( @@ -1319,8 +1319,8 @@ def __init__(self, summary: Summary) -> None: ) -class AsyncSummaryWithRawResponse: - def __init__(self, summary: AsyncSummary) -> None: +class AsyncSummaryResourceWithRawResponse: + def __init__(self, summary: AsyncSummaryResource) -> None: self._summary = summary self.bitrate = async_to_raw_response_wrapper( @@ -1343,8 +1343,8 @@ def __init__(self, summary: AsyncSummary) -> None: ) -class SummaryWithStreamingResponse: - def __init__(self, summary: Summary) -> None: +class SummaryResourceWithStreamingResponse: + def __init__(self, summary: SummaryResource) -> None: self._summary = summary self.bitrate = to_streamed_response_wrapper( @@ -1367,8 +1367,8 @@ def __init__(self, summary: Summary) -> None: ) -class AsyncSummaryWithStreamingResponse: - def __init__(self, summary: AsyncSummary) -> None: +class AsyncSummaryResourceWithStreamingResponse: + def __init__(self, summary: AsyncSummaryResource) -> None: self._summary = summary self.bitrate = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/radar/attacks/layer3/timeseries_groups.py b/src/cloudflare/resources/radar/attacks/layer3/timeseries_groups.py index 6871baacba7..17011e35747 100644 --- a/src/cloudflare/resources/radar/attacks/layer3/timeseries_groups.py +++ b/src/cloudflare/resources/radar/attacks/layer3/timeseries_groups.py @@ -44,17 +44,17 @@ from .....types.radar.attacks.layer3.timeseries_group_vertical_response import TimeseriesGroupVerticalResponse from .....types.radar.attacks.layer3.timeseries_group_ip_version_response import TimeseriesGroupIPVersionResponse -__all__ = ["TimeseriesGroups", "AsyncTimeseriesGroups"] +__all__ = ["TimeseriesGroupsResource", "AsyncTimeseriesGroupsResource"] -class TimeseriesGroups(SyncAPIResource): +class TimeseriesGroupsResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> TimeseriesGroupsWithRawResponse: - return TimeseriesGroupsWithRawResponse(self) + def with_raw_response(self) -> TimeseriesGroupsResourceWithRawResponse: + return TimeseriesGroupsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> TimeseriesGroupsWithStreamingResponse: - return TimeseriesGroupsWithStreamingResponse(self) + def with_streaming_response(self) -> TimeseriesGroupsResourceWithStreamingResponse: + return TimeseriesGroupsResourceWithStreamingResponse(self) def bitrate( self, @@ -973,14 +973,14 @@ def vertical( ) -class AsyncTimeseriesGroups(AsyncAPIResource): +class AsyncTimeseriesGroupsResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncTimeseriesGroupsWithRawResponse: - return AsyncTimeseriesGroupsWithRawResponse(self) + def with_raw_response(self) -> AsyncTimeseriesGroupsResourceWithRawResponse: + return AsyncTimeseriesGroupsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncTimeseriesGroupsWithStreamingResponse: - return AsyncTimeseriesGroupsWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncTimeseriesGroupsResourceWithStreamingResponse: + return AsyncTimeseriesGroupsResourceWithStreamingResponse(self) async def bitrate( self, @@ -1899,8 +1899,8 @@ async def vertical( ) -class TimeseriesGroupsWithRawResponse: - def __init__(self, timeseries_groups: TimeseriesGroups) -> None: +class TimeseriesGroupsResourceWithRawResponse: + def __init__(self, timeseries_groups: TimeseriesGroupsResource) -> None: self._timeseries_groups = timeseries_groups self.bitrate = to_raw_response_wrapper( @@ -1929,8 +1929,8 @@ def __init__(self, timeseries_groups: TimeseriesGroups) -> None: ) -class AsyncTimeseriesGroupsWithRawResponse: - def __init__(self, timeseries_groups: AsyncTimeseriesGroups) -> None: +class AsyncTimeseriesGroupsResourceWithRawResponse: + def __init__(self, timeseries_groups: AsyncTimeseriesGroupsResource) -> None: self._timeseries_groups = timeseries_groups self.bitrate = async_to_raw_response_wrapper( @@ -1959,8 +1959,8 @@ def __init__(self, timeseries_groups: AsyncTimeseriesGroups) -> None: ) -class TimeseriesGroupsWithStreamingResponse: - def __init__(self, timeseries_groups: TimeseriesGroups) -> None: +class TimeseriesGroupsResourceWithStreamingResponse: + def __init__(self, timeseries_groups: TimeseriesGroupsResource) -> None: self._timeseries_groups = timeseries_groups self.bitrate = to_streamed_response_wrapper( @@ -1989,8 +1989,8 @@ def __init__(self, timeseries_groups: TimeseriesGroups) -> None: ) -class AsyncTimeseriesGroupsWithStreamingResponse: - def __init__(self, timeseries_groups: AsyncTimeseriesGroups) -> None: +class AsyncTimeseriesGroupsResourceWithStreamingResponse: + def __init__(self, timeseries_groups: AsyncTimeseriesGroupsResource) -> None: self._timeseries_groups = timeseries_groups self.bitrate = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/radar/attacks/layer3/top/__init__.py b/src/cloudflare/resources/radar/attacks/layer3/top/__init__.py index 3dba539269a..f95820bdd99 100644 --- a/src/cloudflare/resources/radar/attacks/layer3/top/__init__.py +++ b/src/cloudflare/resources/radar/attacks/layer3/top/__init__.py @@ -1,33 +1,33 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from .top import ( - Top, - AsyncTop, - TopWithRawResponse, - AsyncTopWithRawResponse, - TopWithStreamingResponse, - AsyncTopWithStreamingResponse, + TopResource, + AsyncTopResource, + TopResourceWithRawResponse, + AsyncTopResourceWithRawResponse, + TopResourceWithStreamingResponse, + AsyncTopResourceWithStreamingResponse, ) from .locations import ( - Locations, - AsyncLocations, - LocationsWithRawResponse, - AsyncLocationsWithRawResponse, - LocationsWithStreamingResponse, - AsyncLocationsWithStreamingResponse, + LocationsResource, + AsyncLocationsResource, + LocationsResourceWithRawResponse, + AsyncLocationsResourceWithRawResponse, + LocationsResourceWithStreamingResponse, + AsyncLocationsResourceWithStreamingResponse, ) __all__ = [ - "Locations", - "AsyncLocations", - "LocationsWithRawResponse", - "AsyncLocationsWithRawResponse", - "LocationsWithStreamingResponse", - "AsyncLocationsWithStreamingResponse", - "Top", - "AsyncTop", - "TopWithRawResponse", - "AsyncTopWithRawResponse", - "TopWithStreamingResponse", - "AsyncTopWithStreamingResponse", + "LocationsResource", + "AsyncLocationsResource", + "LocationsResourceWithRawResponse", + "AsyncLocationsResourceWithRawResponse", + "LocationsResourceWithStreamingResponse", + "AsyncLocationsResourceWithStreamingResponse", + "TopResource", + "AsyncTopResource", + "TopResourceWithRawResponse", + "AsyncTopResourceWithRawResponse", + "TopResourceWithStreamingResponse", + "AsyncTopResourceWithStreamingResponse", ] diff --git a/src/cloudflare/resources/radar/attacks/layer3/top/locations.py b/src/cloudflare/resources/radar/attacks/layer3/top/locations.py index ee3469298eb..998521834a5 100644 --- a/src/cloudflare/resources/radar/attacks/layer3/top/locations.py +++ b/src/cloudflare/resources/radar/attacks/layer3/top/locations.py @@ -29,17 +29,17 @@ from ......types.radar.attacks.layer3.top.location_origin_response import LocationOriginResponse from ......types.radar.attacks.layer3.top.location_target_response import LocationTargetResponse -__all__ = ["Locations", "AsyncLocations"] +__all__ = ["LocationsResource", "AsyncLocationsResource"] -class Locations(SyncAPIResource): +class LocationsResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> LocationsWithRawResponse: - return LocationsWithRawResponse(self) + def with_raw_response(self) -> LocationsResourceWithRawResponse: + return LocationsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> LocationsWithStreamingResponse: - return LocationsWithStreamingResponse(self) + def with_streaming_response(self) -> LocationsResourceWithStreamingResponse: + return LocationsResourceWithStreamingResponse(self) def origin( self, @@ -250,14 +250,14 @@ def target( ) -class AsyncLocations(AsyncAPIResource): +class AsyncLocationsResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncLocationsWithRawResponse: - return AsyncLocationsWithRawResponse(self) + def with_raw_response(self) -> AsyncLocationsResourceWithRawResponse: + return AsyncLocationsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncLocationsWithStreamingResponse: - return AsyncLocationsWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncLocationsResourceWithStreamingResponse: + return AsyncLocationsResourceWithStreamingResponse(self) async def origin( self, @@ -468,8 +468,8 @@ async def target( ) -class LocationsWithRawResponse: - def __init__(self, locations: Locations) -> None: +class LocationsResourceWithRawResponse: + def __init__(self, locations: LocationsResource) -> None: self._locations = locations self.origin = to_raw_response_wrapper( @@ -480,8 +480,8 @@ def __init__(self, locations: Locations) -> None: ) -class AsyncLocationsWithRawResponse: - def __init__(self, locations: AsyncLocations) -> None: +class AsyncLocationsResourceWithRawResponse: + def __init__(self, locations: AsyncLocationsResource) -> None: self._locations = locations self.origin = async_to_raw_response_wrapper( @@ -492,8 +492,8 @@ def __init__(self, locations: AsyncLocations) -> None: ) -class LocationsWithStreamingResponse: - def __init__(self, locations: Locations) -> None: +class LocationsResourceWithStreamingResponse: + def __init__(self, locations: LocationsResource) -> None: self._locations = locations self.origin = to_streamed_response_wrapper( @@ -504,8 +504,8 @@ def __init__(self, locations: Locations) -> None: ) -class AsyncLocationsWithStreamingResponse: - def __init__(self, locations: AsyncLocations) -> None: +class AsyncLocationsResourceWithStreamingResponse: + def __init__(self, locations: AsyncLocationsResource) -> None: self._locations = locations self.origin = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/radar/attacks/layer3/top/top.py b/src/cloudflare/resources/radar/attacks/layer3/top/top.py index 3a96ed9dbaa..984669786f7 100644 --- a/src/cloudflare/resources/radar/attacks/layer3/top/top.py +++ b/src/cloudflare/resources/radar/attacks/layer3/top/top.py @@ -9,12 +9,12 @@ import httpx from .locations import ( - Locations, - AsyncLocations, - LocationsWithRawResponse, - AsyncLocationsWithRawResponse, - LocationsWithStreamingResponse, - AsyncLocationsWithStreamingResponse, + LocationsResource, + AsyncLocationsResource, + LocationsResourceWithRawResponse, + AsyncLocationsResourceWithRawResponse, + LocationsResourceWithStreamingResponse, + AsyncLocationsResourceWithStreamingResponse, ) from ......_types import NOT_GIVEN, Body, Query, Headers, NotGiven from ......_utils import ( @@ -38,21 +38,21 @@ from ......types.radar.attacks.layer3.top_industry_response import TopIndustryResponse from ......types.radar.attacks.layer3.top_vertical_response import TopVerticalResponse -__all__ = ["Top", "AsyncTop"] +__all__ = ["TopResource", "AsyncTopResource"] -class Top(SyncAPIResource): +class TopResource(SyncAPIResource): @cached_property - def locations(self) -> Locations: - return Locations(self._client) + def locations(self) -> LocationsResource: + return LocationsResource(self._client) @cached_property - def with_raw_response(self) -> TopWithRawResponse: - return TopWithRawResponse(self) + def with_raw_response(self) -> TopResourceWithRawResponse: + return TopResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> TopWithStreamingResponse: - return TopWithStreamingResponse(self) + def with_streaming_response(self) -> TopResourceWithStreamingResponse: + return TopResourceWithStreamingResponse(self) def attacks( self, @@ -382,18 +382,18 @@ def vertical( ) -class AsyncTop(AsyncAPIResource): +class AsyncTopResource(AsyncAPIResource): @cached_property - def locations(self) -> AsyncLocations: - return AsyncLocations(self._client) + def locations(self) -> AsyncLocationsResource: + return AsyncLocationsResource(self._client) @cached_property - def with_raw_response(self) -> AsyncTopWithRawResponse: - return AsyncTopWithRawResponse(self) + def with_raw_response(self) -> AsyncTopResourceWithRawResponse: + return AsyncTopResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncTopWithStreamingResponse: - return AsyncTopWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncTopResourceWithStreamingResponse: + return AsyncTopResourceWithStreamingResponse(self) async def attacks( self, @@ -723,8 +723,8 @@ async def vertical( ) -class TopWithRawResponse: - def __init__(self, top: Top) -> None: +class TopResourceWithRawResponse: + def __init__(self, top: TopResource) -> None: self._top = top self.attacks = to_raw_response_wrapper( @@ -738,12 +738,12 @@ def __init__(self, top: Top) -> None: ) @cached_property - def locations(self) -> LocationsWithRawResponse: - return LocationsWithRawResponse(self._top.locations) + def locations(self) -> LocationsResourceWithRawResponse: + return LocationsResourceWithRawResponse(self._top.locations) -class AsyncTopWithRawResponse: - def __init__(self, top: AsyncTop) -> None: +class AsyncTopResourceWithRawResponse: + def __init__(self, top: AsyncTopResource) -> None: self._top = top self.attacks = async_to_raw_response_wrapper( @@ -757,12 +757,12 @@ def __init__(self, top: AsyncTop) -> None: ) @cached_property - def locations(self) -> AsyncLocationsWithRawResponse: - return AsyncLocationsWithRawResponse(self._top.locations) + def locations(self) -> AsyncLocationsResourceWithRawResponse: + return AsyncLocationsResourceWithRawResponse(self._top.locations) -class TopWithStreamingResponse: - def __init__(self, top: Top) -> None: +class TopResourceWithStreamingResponse: + def __init__(self, top: TopResource) -> None: self._top = top self.attacks = to_streamed_response_wrapper( @@ -776,12 +776,12 @@ def __init__(self, top: Top) -> None: ) @cached_property - def locations(self) -> LocationsWithStreamingResponse: - return LocationsWithStreamingResponse(self._top.locations) + def locations(self) -> LocationsResourceWithStreamingResponse: + return LocationsResourceWithStreamingResponse(self._top.locations) -class AsyncTopWithStreamingResponse: - def __init__(self, top: AsyncTop) -> None: +class AsyncTopResourceWithStreamingResponse: + def __init__(self, top: AsyncTopResource) -> None: self._top = top self.attacks = async_to_streamed_response_wrapper( @@ -795,5 +795,5 @@ def __init__(self, top: AsyncTop) -> None: ) @cached_property - def locations(self) -> AsyncLocationsWithStreamingResponse: - return AsyncLocationsWithStreamingResponse(self._top.locations) + def locations(self) -> AsyncLocationsResourceWithStreamingResponse: + return AsyncLocationsResourceWithStreamingResponse(self._top.locations) diff --git a/src/cloudflare/resources/radar/attacks/layer7/__init__.py b/src/cloudflare/resources/radar/attacks/layer7/__init__.py index 2a5e0aa0887..fad86e433d2 100644 --- a/src/cloudflare/resources/radar/attacks/layer7/__init__.py +++ b/src/cloudflare/resources/radar/attacks/layer7/__init__.py @@ -1,61 +1,61 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from .top import ( - Top, - AsyncTop, - TopWithRawResponse, - AsyncTopWithRawResponse, - TopWithStreamingResponse, - AsyncTopWithStreamingResponse, + TopResource, + AsyncTopResource, + TopResourceWithRawResponse, + AsyncTopResourceWithRawResponse, + TopResourceWithStreamingResponse, + AsyncTopResourceWithStreamingResponse, ) from .layer7 import ( - Layer7, - AsyncLayer7, - Layer7WithRawResponse, - AsyncLayer7WithRawResponse, - Layer7WithStreamingResponse, - AsyncLayer7WithStreamingResponse, + Layer7Resource, + AsyncLayer7Resource, + Layer7ResourceWithRawResponse, + AsyncLayer7ResourceWithRawResponse, + Layer7ResourceWithStreamingResponse, + AsyncLayer7ResourceWithStreamingResponse, ) from .summary import ( - Summary, - AsyncSummary, - SummaryWithRawResponse, - AsyncSummaryWithRawResponse, - SummaryWithStreamingResponse, - AsyncSummaryWithStreamingResponse, + SummaryResource, + AsyncSummaryResource, + SummaryResourceWithRawResponse, + AsyncSummaryResourceWithRawResponse, + SummaryResourceWithStreamingResponse, + AsyncSummaryResourceWithStreamingResponse, ) from .timeseries_groups import ( - TimeseriesGroups, - AsyncTimeseriesGroups, - TimeseriesGroupsWithRawResponse, - AsyncTimeseriesGroupsWithRawResponse, - TimeseriesGroupsWithStreamingResponse, - AsyncTimeseriesGroupsWithStreamingResponse, + TimeseriesGroupsResource, + AsyncTimeseriesGroupsResource, + TimeseriesGroupsResourceWithRawResponse, + AsyncTimeseriesGroupsResourceWithRawResponse, + TimeseriesGroupsResourceWithStreamingResponse, + AsyncTimeseriesGroupsResourceWithStreamingResponse, ) __all__ = [ - "Summary", - "AsyncSummary", - "SummaryWithRawResponse", - "AsyncSummaryWithRawResponse", - "SummaryWithStreamingResponse", - "AsyncSummaryWithStreamingResponse", - "TimeseriesGroups", - "AsyncTimeseriesGroups", - "TimeseriesGroupsWithRawResponse", - "AsyncTimeseriesGroupsWithRawResponse", - "TimeseriesGroupsWithStreamingResponse", - "AsyncTimeseriesGroupsWithStreamingResponse", - "Top", - "AsyncTop", - "TopWithRawResponse", - "AsyncTopWithRawResponse", - "TopWithStreamingResponse", - "AsyncTopWithStreamingResponse", - "Layer7", - "AsyncLayer7", - "Layer7WithRawResponse", - "AsyncLayer7WithRawResponse", - "Layer7WithStreamingResponse", - "AsyncLayer7WithStreamingResponse", + "SummaryResource", + "AsyncSummaryResource", + "SummaryResourceWithRawResponse", + "AsyncSummaryResourceWithRawResponse", + "SummaryResourceWithStreamingResponse", + "AsyncSummaryResourceWithStreamingResponse", + "TimeseriesGroupsResource", + "AsyncTimeseriesGroupsResource", + "TimeseriesGroupsResourceWithRawResponse", + "AsyncTimeseriesGroupsResourceWithRawResponse", + "TimeseriesGroupsResourceWithStreamingResponse", + "AsyncTimeseriesGroupsResourceWithStreamingResponse", + "TopResource", + "AsyncTopResource", + "TopResourceWithRawResponse", + "AsyncTopResourceWithRawResponse", + "TopResourceWithStreamingResponse", + "AsyncTopResourceWithStreamingResponse", + "Layer7Resource", + "AsyncLayer7Resource", + "Layer7ResourceWithRawResponse", + "AsyncLayer7ResourceWithRawResponse", + "Layer7ResourceWithStreamingResponse", + "AsyncLayer7ResourceWithStreamingResponse", ] diff --git a/src/cloudflare/resources/radar/attacks/layer7/layer7.py b/src/cloudflare/resources/radar/attacks/layer7/layer7.py index d054908ff20..713c3e11de2 100644 --- a/src/cloudflare/resources/radar/attacks/layer7/layer7.py +++ b/src/cloudflare/resources/radar/attacks/layer7/layer7.py @@ -9,22 +9,22 @@ import httpx from .top import ( - Top, - AsyncTop, - TopWithRawResponse, - AsyncTopWithRawResponse, - TopWithStreamingResponse, - AsyncTopWithStreamingResponse, + TopResource, + AsyncTopResource, + TopResourceWithRawResponse, + AsyncTopResourceWithRawResponse, + TopResourceWithStreamingResponse, + AsyncTopResourceWithStreamingResponse, ) from .summary import ( - Summary, - AsyncSummary, - SummaryWithRawResponse, - AsyncSummaryWithRawResponse, - SummaryWithStreamingResponse, - AsyncSummaryWithStreamingResponse, + SummaryResource, + AsyncSummaryResource, + SummaryResourceWithRawResponse, + AsyncSummaryResourceWithRawResponse, + SummaryResourceWithStreamingResponse, + AsyncSummaryResourceWithStreamingResponse, ) -from .top.top import Top, AsyncTop +from .top.top import TopResource, AsyncTopResource from ....._types import NOT_GIVEN, Body, Query, Headers, NotGiven from ....._utils import ( maybe_transform, @@ -43,39 +43,39 @@ make_request_options, ) from .timeseries_groups import ( - TimeseriesGroups, - AsyncTimeseriesGroups, - TimeseriesGroupsWithRawResponse, - AsyncTimeseriesGroupsWithRawResponse, - TimeseriesGroupsWithStreamingResponse, - AsyncTimeseriesGroupsWithStreamingResponse, + TimeseriesGroupsResource, + AsyncTimeseriesGroupsResource, + TimeseriesGroupsResourceWithRawResponse, + AsyncTimeseriesGroupsResourceWithRawResponse, + TimeseriesGroupsResourceWithStreamingResponse, + AsyncTimeseriesGroupsResourceWithStreamingResponse, ) from .....types.radar.attacks import layer7_timeseries_params from .....types.radar.attacks.layer7_timeseries_response import Layer7TimeseriesResponse -__all__ = ["Layer7", "AsyncLayer7"] +__all__ = ["Layer7Resource", "AsyncLayer7Resource"] -class Layer7(SyncAPIResource): +class Layer7Resource(SyncAPIResource): @cached_property - def summary(self) -> Summary: - return Summary(self._client) + def summary(self) -> SummaryResource: + return SummaryResource(self._client) @cached_property - def timeseries_groups(self) -> TimeseriesGroups: - return TimeseriesGroups(self._client) + def timeseries_groups(self) -> TimeseriesGroupsResource: + return TimeseriesGroupsResource(self._client) @cached_property - def top(self) -> Top: - return Top(self._client) + def top(self) -> TopResource: + return TopResource(self._client) @cached_property - def with_raw_response(self) -> Layer7WithRawResponse: - return Layer7WithRawResponse(self) + def with_raw_response(self) -> Layer7ResourceWithRawResponse: + return Layer7ResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> Layer7WithStreamingResponse: - return Layer7WithStreamingResponse(self) + def with_streaming_response(self) -> Layer7ResourceWithStreamingResponse: + return Layer7ResourceWithStreamingResponse(self) def timeseries( self, @@ -198,26 +198,26 @@ def timeseries( ) -class AsyncLayer7(AsyncAPIResource): +class AsyncLayer7Resource(AsyncAPIResource): @cached_property - def summary(self) -> AsyncSummary: - return AsyncSummary(self._client) + def summary(self) -> AsyncSummaryResource: + return AsyncSummaryResource(self._client) @cached_property - def timeseries_groups(self) -> AsyncTimeseriesGroups: - return AsyncTimeseriesGroups(self._client) + def timeseries_groups(self) -> AsyncTimeseriesGroupsResource: + return AsyncTimeseriesGroupsResource(self._client) @cached_property - def top(self) -> AsyncTop: - return AsyncTop(self._client) + def top(self) -> AsyncTopResource: + return AsyncTopResource(self._client) @cached_property - def with_raw_response(self) -> AsyncLayer7WithRawResponse: - return AsyncLayer7WithRawResponse(self) + def with_raw_response(self) -> AsyncLayer7ResourceWithRawResponse: + return AsyncLayer7ResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncLayer7WithStreamingResponse: - return AsyncLayer7WithStreamingResponse(self) + def with_streaming_response(self) -> AsyncLayer7ResourceWithStreamingResponse: + return AsyncLayer7ResourceWithStreamingResponse(self) async def timeseries( self, @@ -340,8 +340,8 @@ async def timeseries( ) -class Layer7WithRawResponse: - def __init__(self, layer7: Layer7) -> None: +class Layer7ResourceWithRawResponse: + def __init__(self, layer7: Layer7Resource) -> None: self._layer7 = layer7 self.timeseries = to_raw_response_wrapper( @@ -349,20 +349,20 @@ def __init__(self, layer7: Layer7) -> None: ) @cached_property - def summary(self) -> SummaryWithRawResponse: - return SummaryWithRawResponse(self._layer7.summary) + def summary(self) -> SummaryResourceWithRawResponse: + return SummaryResourceWithRawResponse(self._layer7.summary) @cached_property - def timeseries_groups(self) -> TimeseriesGroupsWithRawResponse: - return TimeseriesGroupsWithRawResponse(self._layer7.timeseries_groups) + def timeseries_groups(self) -> TimeseriesGroupsResourceWithRawResponse: + return TimeseriesGroupsResourceWithRawResponse(self._layer7.timeseries_groups) @cached_property - def top(self) -> TopWithRawResponse: - return TopWithRawResponse(self._layer7.top) + def top(self) -> TopResourceWithRawResponse: + return TopResourceWithRawResponse(self._layer7.top) -class AsyncLayer7WithRawResponse: - def __init__(self, layer7: AsyncLayer7) -> None: +class AsyncLayer7ResourceWithRawResponse: + def __init__(self, layer7: AsyncLayer7Resource) -> None: self._layer7 = layer7 self.timeseries = async_to_raw_response_wrapper( @@ -370,20 +370,20 @@ def __init__(self, layer7: AsyncLayer7) -> None: ) @cached_property - def summary(self) -> AsyncSummaryWithRawResponse: - return AsyncSummaryWithRawResponse(self._layer7.summary) + def summary(self) -> AsyncSummaryResourceWithRawResponse: + return AsyncSummaryResourceWithRawResponse(self._layer7.summary) @cached_property - def timeseries_groups(self) -> AsyncTimeseriesGroupsWithRawResponse: - return AsyncTimeseriesGroupsWithRawResponse(self._layer7.timeseries_groups) + def timeseries_groups(self) -> AsyncTimeseriesGroupsResourceWithRawResponse: + return AsyncTimeseriesGroupsResourceWithRawResponse(self._layer7.timeseries_groups) @cached_property - def top(self) -> AsyncTopWithRawResponse: - return AsyncTopWithRawResponse(self._layer7.top) + def top(self) -> AsyncTopResourceWithRawResponse: + return AsyncTopResourceWithRawResponse(self._layer7.top) -class Layer7WithStreamingResponse: - def __init__(self, layer7: Layer7) -> None: +class Layer7ResourceWithStreamingResponse: + def __init__(self, layer7: Layer7Resource) -> None: self._layer7 = layer7 self.timeseries = to_streamed_response_wrapper( @@ -391,20 +391,20 @@ def __init__(self, layer7: Layer7) -> None: ) @cached_property - def summary(self) -> SummaryWithStreamingResponse: - return SummaryWithStreamingResponse(self._layer7.summary) + def summary(self) -> SummaryResourceWithStreamingResponse: + return SummaryResourceWithStreamingResponse(self._layer7.summary) @cached_property - def timeseries_groups(self) -> TimeseriesGroupsWithStreamingResponse: - return TimeseriesGroupsWithStreamingResponse(self._layer7.timeseries_groups) + def timeseries_groups(self) -> TimeseriesGroupsResourceWithStreamingResponse: + return TimeseriesGroupsResourceWithStreamingResponse(self._layer7.timeseries_groups) @cached_property - def top(self) -> TopWithStreamingResponse: - return TopWithStreamingResponse(self._layer7.top) + def top(self) -> TopResourceWithStreamingResponse: + return TopResourceWithStreamingResponse(self._layer7.top) -class AsyncLayer7WithStreamingResponse: - def __init__(self, layer7: AsyncLayer7) -> None: +class AsyncLayer7ResourceWithStreamingResponse: + def __init__(self, layer7: AsyncLayer7Resource) -> None: self._layer7 = layer7 self.timeseries = async_to_streamed_response_wrapper( @@ -412,13 +412,13 @@ def __init__(self, layer7: AsyncLayer7) -> None: ) @cached_property - def summary(self) -> AsyncSummaryWithStreamingResponse: - return AsyncSummaryWithStreamingResponse(self._layer7.summary) + def summary(self) -> AsyncSummaryResourceWithStreamingResponse: + return AsyncSummaryResourceWithStreamingResponse(self._layer7.summary) @cached_property - def timeseries_groups(self) -> AsyncTimeseriesGroupsWithStreamingResponse: - return AsyncTimeseriesGroupsWithStreamingResponse(self._layer7.timeseries_groups) + def timeseries_groups(self) -> AsyncTimeseriesGroupsResourceWithStreamingResponse: + return AsyncTimeseriesGroupsResourceWithStreamingResponse(self._layer7.timeseries_groups) @cached_property - def top(self) -> AsyncTopWithStreamingResponse: - return AsyncTopWithStreamingResponse(self._layer7.top) + def top(self) -> AsyncTopResourceWithStreamingResponse: + return AsyncTopResourceWithStreamingResponse(self._layer7.top) diff --git a/src/cloudflare/resources/radar/attacks/layer7/summary.py b/src/cloudflare/resources/radar/attacks/layer7/summary.py index f189a2ccf4e..9af8c3dd0d9 100644 --- a/src/cloudflare/resources/radar/attacks/layer7/summary.py +++ b/src/cloudflare/resources/radar/attacks/layer7/summary.py @@ -40,17 +40,17 @@ from .....types.radar.attacks.layer7.summary_managed_rules_response import SummaryManagedRulesResponse from .....types.radar.attacks.layer7.summary_mitigation_product_response import SummaryMitigationProductResponse -__all__ = ["Summary", "AsyncSummary"] +__all__ = ["SummaryResource", "AsyncSummaryResource"] -class Summary(SyncAPIResource): +class SummaryResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> SummaryWithRawResponse: - return SummaryWithRawResponse(self) + def with_raw_response(self) -> SummaryResourceWithRawResponse: + return SummaryResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> SummaryWithStreamingResponse: - return SummaryWithStreamingResponse(self) + def with_streaming_response(self) -> SummaryResourceWithStreamingResponse: + return SummaryResourceWithStreamingResponse(self) def get( self, @@ -925,14 +925,14 @@ def mitigation_product( ) -class AsyncSummary(AsyncAPIResource): +class AsyncSummaryResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncSummaryWithRawResponse: - return AsyncSummaryWithRawResponse(self) + def with_raw_response(self) -> AsyncSummaryResourceWithRawResponse: + return AsyncSummaryResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncSummaryWithStreamingResponse: - return AsyncSummaryWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncSummaryResourceWithStreamingResponse: + return AsyncSummaryResourceWithStreamingResponse(self) async def get( self, @@ -1807,8 +1807,8 @@ async def mitigation_product( ) -class SummaryWithRawResponse: - def __init__(self, summary: Summary) -> None: +class SummaryResourceWithRawResponse: + def __init__(self, summary: SummaryResource) -> None: self._summary = summary self.get = to_raw_response_wrapper( @@ -1831,8 +1831,8 @@ def __init__(self, summary: Summary) -> None: ) -class AsyncSummaryWithRawResponse: - def __init__(self, summary: AsyncSummary) -> None: +class AsyncSummaryResourceWithRawResponse: + def __init__(self, summary: AsyncSummaryResource) -> None: self._summary = summary self.get = async_to_raw_response_wrapper( @@ -1855,8 +1855,8 @@ def __init__(self, summary: AsyncSummary) -> None: ) -class SummaryWithStreamingResponse: - def __init__(self, summary: Summary) -> None: +class SummaryResourceWithStreamingResponse: + def __init__(self, summary: SummaryResource) -> None: self._summary = summary self.get = to_streamed_response_wrapper( @@ -1879,8 +1879,8 @@ def __init__(self, summary: Summary) -> None: ) -class AsyncSummaryWithStreamingResponse: - def __init__(self, summary: AsyncSummary) -> None: +class AsyncSummaryResourceWithStreamingResponse: + def __init__(self, summary: AsyncSummaryResource) -> None: self._summary = summary self.get = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/radar/attacks/layer7/timeseries_groups.py b/src/cloudflare/resources/radar/attacks/layer7/timeseries_groups.py index 162aacdbb51..35c2b923a1b 100644 --- a/src/cloudflare/resources/radar/attacks/layer7/timeseries_groups.py +++ b/src/cloudflare/resources/radar/attacks/layer7/timeseries_groups.py @@ -46,17 +46,17 @@ TimeseriesGroupMitigationProductResponse, ) -__all__ = ["TimeseriesGroups", "AsyncTimeseriesGroups"] +__all__ = ["TimeseriesGroupsResource", "AsyncTimeseriesGroupsResource"] -class TimeseriesGroups(SyncAPIResource): +class TimeseriesGroupsResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> TimeseriesGroupsWithRawResponse: - return TimeseriesGroupsWithRawResponse(self) + def with_raw_response(self) -> TimeseriesGroupsResourceWithRawResponse: + return TimeseriesGroupsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> TimeseriesGroupsWithStreamingResponse: - return TimeseriesGroupsWithStreamingResponse(self) + def with_streaming_response(self) -> TimeseriesGroupsResourceWithStreamingResponse: + return TimeseriesGroupsResourceWithStreamingResponse(self) def get( self, @@ -1365,14 +1365,14 @@ def vertical( ) -class AsyncTimeseriesGroups(AsyncAPIResource): +class AsyncTimeseriesGroupsResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncTimeseriesGroupsWithRawResponse: - return AsyncTimeseriesGroupsWithRawResponse(self) + def with_raw_response(self) -> AsyncTimeseriesGroupsResourceWithRawResponse: + return AsyncTimeseriesGroupsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncTimeseriesGroupsWithStreamingResponse: - return AsyncTimeseriesGroupsWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncTimeseriesGroupsResourceWithStreamingResponse: + return AsyncTimeseriesGroupsResourceWithStreamingResponse(self) async def get( self, @@ -2681,8 +2681,8 @@ async def vertical( ) -class TimeseriesGroupsWithRawResponse: - def __init__(self, timeseries_groups: TimeseriesGroups) -> None: +class TimeseriesGroupsResourceWithRawResponse: + def __init__(self, timeseries_groups: TimeseriesGroupsResource) -> None: self._timeseries_groups = timeseries_groups self.get = to_raw_response_wrapper( @@ -2711,8 +2711,8 @@ def __init__(self, timeseries_groups: TimeseriesGroups) -> None: ) -class AsyncTimeseriesGroupsWithRawResponse: - def __init__(self, timeseries_groups: AsyncTimeseriesGroups) -> None: +class AsyncTimeseriesGroupsResourceWithRawResponse: + def __init__(self, timeseries_groups: AsyncTimeseriesGroupsResource) -> None: self._timeseries_groups = timeseries_groups self.get = async_to_raw_response_wrapper( @@ -2741,8 +2741,8 @@ def __init__(self, timeseries_groups: AsyncTimeseriesGroups) -> None: ) -class TimeseriesGroupsWithStreamingResponse: - def __init__(self, timeseries_groups: TimeseriesGroups) -> None: +class TimeseriesGroupsResourceWithStreamingResponse: + def __init__(self, timeseries_groups: TimeseriesGroupsResource) -> None: self._timeseries_groups = timeseries_groups self.get = to_streamed_response_wrapper( @@ -2771,8 +2771,8 @@ def __init__(self, timeseries_groups: TimeseriesGroups) -> None: ) -class AsyncTimeseriesGroupsWithStreamingResponse: - def __init__(self, timeseries_groups: AsyncTimeseriesGroups) -> None: +class AsyncTimeseriesGroupsResourceWithStreamingResponse: + def __init__(self, timeseries_groups: AsyncTimeseriesGroupsResource) -> None: self._timeseries_groups = timeseries_groups self.get = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/radar/attacks/layer7/top/__init__.py b/src/cloudflare/resources/radar/attacks/layer7/top/__init__.py index 9ae2c034c88..d890a7946fb 100644 --- a/src/cloudflare/resources/radar/attacks/layer7/top/__init__.py +++ b/src/cloudflare/resources/radar/attacks/layer7/top/__init__.py @@ -1,47 +1,47 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from .top import ( - Top, - AsyncTop, - TopWithRawResponse, - AsyncTopWithRawResponse, - TopWithStreamingResponse, - AsyncTopWithStreamingResponse, + TopResource, + AsyncTopResource, + TopResourceWithRawResponse, + AsyncTopResourceWithRawResponse, + TopResourceWithStreamingResponse, + AsyncTopResourceWithStreamingResponse, ) from .ases import ( - Ases, - AsyncAses, - AsesWithRawResponse, - AsyncAsesWithRawResponse, - AsesWithStreamingResponse, - AsyncAsesWithStreamingResponse, + AsesResource, + AsyncAsesResource, + AsesResourceWithRawResponse, + AsyncAsesResourceWithRawResponse, + AsesResourceWithStreamingResponse, + AsyncAsesResourceWithStreamingResponse, ) from .locations import ( - Locations, - AsyncLocations, - LocationsWithRawResponse, - AsyncLocationsWithRawResponse, - LocationsWithStreamingResponse, - AsyncLocationsWithStreamingResponse, + LocationsResource, + AsyncLocationsResource, + LocationsResourceWithRawResponse, + AsyncLocationsResourceWithRawResponse, + LocationsResourceWithStreamingResponse, + AsyncLocationsResourceWithStreamingResponse, ) __all__ = [ - "Locations", - "AsyncLocations", - "LocationsWithRawResponse", - "AsyncLocationsWithRawResponse", - "LocationsWithStreamingResponse", - "AsyncLocationsWithStreamingResponse", - "Ases", - "AsyncAses", - "AsesWithRawResponse", - "AsyncAsesWithRawResponse", - "AsesWithStreamingResponse", - "AsyncAsesWithStreamingResponse", - "Top", - "AsyncTop", - "TopWithRawResponse", - "AsyncTopWithRawResponse", - "TopWithStreamingResponse", - "AsyncTopWithStreamingResponse", + "LocationsResource", + "AsyncLocationsResource", + "LocationsResourceWithRawResponse", + "AsyncLocationsResourceWithRawResponse", + "LocationsResourceWithStreamingResponse", + "AsyncLocationsResourceWithStreamingResponse", + "AsesResource", + "AsyncAsesResource", + "AsesResourceWithRawResponse", + "AsyncAsesResourceWithRawResponse", + "AsesResourceWithStreamingResponse", + "AsyncAsesResourceWithStreamingResponse", + "TopResource", + "AsyncTopResource", + "TopResourceWithRawResponse", + "AsyncTopResourceWithRawResponse", + "TopResourceWithStreamingResponse", + "AsyncTopResourceWithStreamingResponse", ] diff --git a/src/cloudflare/resources/radar/attacks/layer7/top/ases.py b/src/cloudflare/resources/radar/attacks/layer7/top/ases.py index 0784b434c88..f6d4c1a7476 100644 --- a/src/cloudflare/resources/radar/attacks/layer7/top/ases.py +++ b/src/cloudflare/resources/radar/attacks/layer7/top/ases.py @@ -28,17 +28,17 @@ from ......types.radar.attacks.layer7.top import ase_origin_params from ......types.radar.attacks.layer7.top.ase_origin_response import AseOriginResponse -__all__ = ["Ases", "AsyncAses"] +__all__ = ["AsesResource", "AsyncAsesResource"] -class Ases(SyncAPIResource): +class AsesResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> AsesWithRawResponse: - return AsesWithRawResponse(self) + def with_raw_response(self) -> AsesResourceWithRawResponse: + return AsesResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsesWithStreamingResponse: - return AsesWithStreamingResponse(self) + def with_streaming_response(self) -> AsesResourceWithStreamingResponse: + return AsesResourceWithStreamingResponse(self) def origin( self, @@ -140,14 +140,14 @@ def origin( ) -class AsyncAses(AsyncAPIResource): +class AsyncAsesResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncAsesWithRawResponse: - return AsyncAsesWithRawResponse(self) + def with_raw_response(self) -> AsyncAsesResourceWithRawResponse: + return AsyncAsesResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncAsesWithStreamingResponse: - return AsyncAsesWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncAsesResourceWithStreamingResponse: + return AsyncAsesResourceWithStreamingResponse(self) async def origin( self, @@ -249,8 +249,8 @@ async def origin( ) -class AsesWithRawResponse: - def __init__(self, ases: Ases) -> None: +class AsesResourceWithRawResponse: + def __init__(self, ases: AsesResource) -> None: self._ases = ases self.origin = to_raw_response_wrapper( @@ -258,8 +258,8 @@ def __init__(self, ases: Ases) -> None: ) -class AsyncAsesWithRawResponse: - def __init__(self, ases: AsyncAses) -> None: +class AsyncAsesResourceWithRawResponse: + def __init__(self, ases: AsyncAsesResource) -> None: self._ases = ases self.origin = async_to_raw_response_wrapper( @@ -267,8 +267,8 @@ def __init__(self, ases: AsyncAses) -> None: ) -class AsesWithStreamingResponse: - def __init__(self, ases: Ases) -> None: +class AsesResourceWithStreamingResponse: + def __init__(self, ases: AsesResource) -> None: self._ases = ases self.origin = to_streamed_response_wrapper( @@ -276,8 +276,8 @@ def __init__(self, ases: Ases) -> None: ) -class AsyncAsesWithStreamingResponse: - def __init__(self, ases: AsyncAses) -> None: +class AsyncAsesResourceWithStreamingResponse: + def __init__(self, ases: AsyncAsesResource) -> None: self._ases = ases self.origin = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/radar/attacks/layer7/top/locations.py b/src/cloudflare/resources/radar/attacks/layer7/top/locations.py index 79bce7bed50..033bda36fdf 100644 --- a/src/cloudflare/resources/radar/attacks/layer7/top/locations.py +++ b/src/cloudflare/resources/radar/attacks/layer7/top/locations.py @@ -29,17 +29,17 @@ from ......types.radar.attacks.layer7.top.location_origin_response import LocationOriginResponse from ......types.radar.attacks.layer7.top.location_target_response import LocationTargetResponse -__all__ = ["Locations", "AsyncLocations"] +__all__ = ["LocationsResource", "AsyncLocationsResource"] -class Locations(SyncAPIResource): +class LocationsResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> LocationsWithRawResponse: - return LocationsWithRawResponse(self) + def with_raw_response(self) -> LocationsResourceWithRawResponse: + return LocationsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> LocationsWithStreamingResponse: - return LocationsWithStreamingResponse(self) + def with_streaming_response(self) -> LocationsResourceWithStreamingResponse: + return LocationsResourceWithStreamingResponse(self) def origin( self, @@ -234,14 +234,14 @@ def target( ) -class AsyncLocations(AsyncAPIResource): +class AsyncLocationsResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncLocationsWithRawResponse: - return AsyncLocationsWithRawResponse(self) + def with_raw_response(self) -> AsyncLocationsResourceWithRawResponse: + return AsyncLocationsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncLocationsWithStreamingResponse: - return AsyncLocationsWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncLocationsResourceWithStreamingResponse: + return AsyncLocationsResourceWithStreamingResponse(self) async def origin( self, @@ -436,8 +436,8 @@ async def target( ) -class LocationsWithRawResponse: - def __init__(self, locations: Locations) -> None: +class LocationsResourceWithRawResponse: + def __init__(self, locations: LocationsResource) -> None: self._locations = locations self.origin = to_raw_response_wrapper( @@ -448,8 +448,8 @@ def __init__(self, locations: Locations) -> None: ) -class AsyncLocationsWithRawResponse: - def __init__(self, locations: AsyncLocations) -> None: +class AsyncLocationsResourceWithRawResponse: + def __init__(self, locations: AsyncLocationsResource) -> None: self._locations = locations self.origin = async_to_raw_response_wrapper( @@ -460,8 +460,8 @@ def __init__(self, locations: AsyncLocations) -> None: ) -class LocationsWithStreamingResponse: - def __init__(self, locations: Locations) -> None: +class LocationsResourceWithStreamingResponse: + def __init__(self, locations: LocationsResource) -> None: self._locations = locations self.origin = to_streamed_response_wrapper( @@ -472,8 +472,8 @@ def __init__(self, locations: Locations) -> None: ) -class AsyncLocationsWithStreamingResponse: - def __init__(self, locations: AsyncLocations) -> None: +class AsyncLocationsResourceWithStreamingResponse: + def __init__(self, locations: AsyncLocationsResource) -> None: self._locations = locations self.origin = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/radar/attacks/layer7/top/top.py b/src/cloudflare/resources/radar/attacks/layer7/top/top.py index cac3230a2f9..38429445f3e 100644 --- a/src/cloudflare/resources/radar/attacks/layer7/top/top.py +++ b/src/cloudflare/resources/radar/attacks/layer7/top/top.py @@ -9,20 +9,20 @@ import httpx from .ases import ( - Ases, - AsyncAses, - AsesWithRawResponse, - AsyncAsesWithRawResponse, - AsesWithStreamingResponse, - AsyncAsesWithStreamingResponse, + AsesResource, + AsyncAsesResource, + AsesResourceWithRawResponse, + AsyncAsesResourceWithRawResponse, + AsesResourceWithStreamingResponse, + AsyncAsesResourceWithStreamingResponse, ) from .locations import ( - Locations, - AsyncLocations, - LocationsWithRawResponse, - AsyncLocationsWithRawResponse, - LocationsWithStreamingResponse, - AsyncLocationsWithStreamingResponse, + LocationsResource, + AsyncLocationsResource, + LocationsResourceWithRawResponse, + AsyncLocationsResourceWithRawResponse, + LocationsResourceWithStreamingResponse, + AsyncLocationsResourceWithStreamingResponse, ) from ......_types import NOT_GIVEN, Body, Query, Headers, NotGiven from ......_utils import ( @@ -46,25 +46,25 @@ from ......types.radar.attacks.layer7.top_industry_response import TopIndustryResponse from ......types.radar.attacks.layer7.top_vertical_response import TopVerticalResponse -__all__ = ["Top", "AsyncTop"] +__all__ = ["TopResource", "AsyncTopResource"] -class Top(SyncAPIResource): +class TopResource(SyncAPIResource): @cached_property - def locations(self) -> Locations: - return Locations(self._client) + def locations(self) -> LocationsResource: + return LocationsResource(self._client) @cached_property - def ases(self) -> Ases: - return Ases(self._client) + def ases(self) -> AsesResource: + return AsesResource(self._client) @cached_property - def with_raw_response(self) -> TopWithRawResponse: - return TopWithRawResponse(self) + def with_raw_response(self) -> TopResourceWithRawResponse: + return TopResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> TopWithStreamingResponse: - return TopWithStreamingResponse(self) + def with_streaming_response(self) -> TopResourceWithStreamingResponse: + return TopResourceWithStreamingResponse(self) def attacks( self, @@ -394,22 +394,22 @@ def vertical( ) -class AsyncTop(AsyncAPIResource): +class AsyncTopResource(AsyncAPIResource): @cached_property - def locations(self) -> AsyncLocations: - return AsyncLocations(self._client) + def locations(self) -> AsyncLocationsResource: + return AsyncLocationsResource(self._client) @cached_property - def ases(self) -> AsyncAses: - return AsyncAses(self._client) + def ases(self) -> AsyncAsesResource: + return AsyncAsesResource(self._client) @cached_property - def with_raw_response(self) -> AsyncTopWithRawResponse: - return AsyncTopWithRawResponse(self) + def with_raw_response(self) -> AsyncTopResourceWithRawResponse: + return AsyncTopResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncTopWithStreamingResponse: - return AsyncTopWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncTopResourceWithStreamingResponse: + return AsyncTopResourceWithStreamingResponse(self) async def attacks( self, @@ -739,8 +739,8 @@ async def vertical( ) -class TopWithRawResponse: - def __init__(self, top: Top) -> None: +class TopResourceWithRawResponse: + def __init__(self, top: TopResource) -> None: self._top = top self.attacks = to_raw_response_wrapper( @@ -754,16 +754,16 @@ def __init__(self, top: Top) -> None: ) @cached_property - def locations(self) -> LocationsWithRawResponse: - return LocationsWithRawResponse(self._top.locations) + def locations(self) -> LocationsResourceWithRawResponse: + return LocationsResourceWithRawResponse(self._top.locations) @cached_property - def ases(self) -> AsesWithRawResponse: - return AsesWithRawResponse(self._top.ases) + def ases(self) -> AsesResourceWithRawResponse: + return AsesResourceWithRawResponse(self._top.ases) -class AsyncTopWithRawResponse: - def __init__(self, top: AsyncTop) -> None: +class AsyncTopResourceWithRawResponse: + def __init__(self, top: AsyncTopResource) -> None: self._top = top self.attacks = async_to_raw_response_wrapper( @@ -777,16 +777,16 @@ def __init__(self, top: AsyncTop) -> None: ) @cached_property - def locations(self) -> AsyncLocationsWithRawResponse: - return AsyncLocationsWithRawResponse(self._top.locations) + def locations(self) -> AsyncLocationsResourceWithRawResponse: + return AsyncLocationsResourceWithRawResponse(self._top.locations) @cached_property - def ases(self) -> AsyncAsesWithRawResponse: - return AsyncAsesWithRawResponse(self._top.ases) + def ases(self) -> AsyncAsesResourceWithRawResponse: + return AsyncAsesResourceWithRawResponse(self._top.ases) -class TopWithStreamingResponse: - def __init__(self, top: Top) -> None: +class TopResourceWithStreamingResponse: + def __init__(self, top: TopResource) -> None: self._top = top self.attacks = to_streamed_response_wrapper( @@ -800,16 +800,16 @@ def __init__(self, top: Top) -> None: ) @cached_property - def locations(self) -> LocationsWithStreamingResponse: - return LocationsWithStreamingResponse(self._top.locations) + def locations(self) -> LocationsResourceWithStreamingResponse: + return LocationsResourceWithStreamingResponse(self._top.locations) @cached_property - def ases(self) -> AsesWithStreamingResponse: - return AsesWithStreamingResponse(self._top.ases) + def ases(self) -> AsesResourceWithStreamingResponse: + return AsesResourceWithStreamingResponse(self._top.ases) -class AsyncTopWithStreamingResponse: - def __init__(self, top: AsyncTop) -> None: +class AsyncTopResourceWithStreamingResponse: + def __init__(self, top: AsyncTopResource) -> None: self._top = top self.attacks = async_to_streamed_response_wrapper( @@ -823,9 +823,9 @@ def __init__(self, top: AsyncTop) -> None: ) @cached_property - def locations(self) -> AsyncLocationsWithStreamingResponse: - return AsyncLocationsWithStreamingResponse(self._top.locations) + def locations(self) -> AsyncLocationsResourceWithStreamingResponse: + return AsyncLocationsResourceWithStreamingResponse(self._top.locations) @cached_property - def ases(self) -> AsyncAsesWithStreamingResponse: - return AsyncAsesWithStreamingResponse(self._top.ases) + def ases(self) -> AsyncAsesResourceWithStreamingResponse: + return AsyncAsesResourceWithStreamingResponse(self._top.ases) diff --git a/src/cloudflare/resources/radar/bgp/__init__.py b/src/cloudflare/resources/radar/bgp/__init__.py index 889d13b9f17..b143abf6005 100644 --- a/src/cloudflare/resources/radar/bgp/__init__.py +++ b/src/cloudflare/resources/radar/bgp/__init__.py @@ -1,75 +1,75 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from .bgp import ( - BGP, - AsyncBGP, - BGPWithRawResponse, - AsyncBGPWithRawResponse, - BGPWithStreamingResponse, - AsyncBGPWithStreamingResponse, + BGPResource, + AsyncBGPResource, + BGPResourceWithRawResponse, + AsyncBGPResourceWithRawResponse, + BGPResourceWithStreamingResponse, + AsyncBGPResourceWithStreamingResponse, ) from .top import ( - Top, - AsyncTop, - TopWithRawResponse, - AsyncTopWithRawResponse, - TopWithStreamingResponse, - AsyncTopWithStreamingResponse, + TopResource, + AsyncTopResource, + TopResourceWithRawResponse, + AsyncTopResourceWithRawResponse, + TopResourceWithStreamingResponse, + AsyncTopResourceWithStreamingResponse, ) from .leaks import ( - Leaks, - AsyncLeaks, - LeaksWithRawResponse, - AsyncLeaksWithRawResponse, - LeaksWithStreamingResponse, - AsyncLeaksWithStreamingResponse, + LeaksResource, + AsyncLeaksResource, + LeaksResourceWithRawResponse, + AsyncLeaksResourceWithRawResponse, + LeaksResourceWithStreamingResponse, + AsyncLeaksResourceWithStreamingResponse, ) from .routes import ( - Routes, - AsyncRoutes, - RoutesWithRawResponse, - AsyncRoutesWithRawResponse, - RoutesWithStreamingResponse, - AsyncRoutesWithStreamingResponse, + RoutesResource, + AsyncRoutesResource, + RoutesResourceWithRawResponse, + AsyncRoutesResourceWithRawResponse, + RoutesResourceWithStreamingResponse, + AsyncRoutesResourceWithStreamingResponse, ) from .hijacks import ( - Hijacks, - AsyncHijacks, - HijacksWithRawResponse, - AsyncHijacksWithRawResponse, - HijacksWithStreamingResponse, - AsyncHijacksWithStreamingResponse, + HijacksResource, + AsyncHijacksResource, + HijacksResourceWithRawResponse, + AsyncHijacksResourceWithRawResponse, + HijacksResourceWithStreamingResponse, + AsyncHijacksResourceWithStreamingResponse, ) __all__ = [ - "Leaks", - "AsyncLeaks", - "LeaksWithRawResponse", - "AsyncLeaksWithRawResponse", - "LeaksWithStreamingResponse", - "AsyncLeaksWithStreamingResponse", - "Top", - "AsyncTop", - "TopWithRawResponse", - "AsyncTopWithRawResponse", - "TopWithStreamingResponse", - "AsyncTopWithStreamingResponse", - "Hijacks", - "AsyncHijacks", - "HijacksWithRawResponse", - "AsyncHijacksWithRawResponse", - "HijacksWithStreamingResponse", - "AsyncHijacksWithStreamingResponse", - "Routes", - "AsyncRoutes", - "RoutesWithRawResponse", - "AsyncRoutesWithRawResponse", - "RoutesWithStreamingResponse", - "AsyncRoutesWithStreamingResponse", - "BGP", - "AsyncBGP", - "BGPWithRawResponse", - "AsyncBGPWithRawResponse", - "BGPWithStreamingResponse", - "AsyncBGPWithStreamingResponse", + "LeaksResource", + "AsyncLeaksResource", + "LeaksResourceWithRawResponse", + "AsyncLeaksResourceWithRawResponse", + "LeaksResourceWithStreamingResponse", + "AsyncLeaksResourceWithStreamingResponse", + "TopResource", + "AsyncTopResource", + "TopResourceWithRawResponse", + "AsyncTopResourceWithRawResponse", + "TopResourceWithStreamingResponse", + "AsyncTopResourceWithStreamingResponse", + "HijacksResource", + "AsyncHijacksResource", + "HijacksResourceWithRawResponse", + "AsyncHijacksResourceWithRawResponse", + "HijacksResourceWithStreamingResponse", + "AsyncHijacksResourceWithStreamingResponse", + "RoutesResource", + "AsyncRoutesResource", + "RoutesResourceWithRawResponse", + "AsyncRoutesResourceWithRawResponse", + "RoutesResourceWithStreamingResponse", + "AsyncRoutesResourceWithStreamingResponse", + "BGPResource", + "AsyncBGPResource", + "BGPResourceWithRawResponse", + "AsyncBGPResourceWithRawResponse", + "BGPResourceWithStreamingResponse", + "AsyncBGPResourceWithStreamingResponse", ] diff --git a/src/cloudflare/resources/radar/bgp/bgp.py b/src/cloudflare/resources/radar/bgp/bgp.py index 2cba45187b1..2eb211139be 100644 --- a/src/cloudflare/resources/radar/bgp/bgp.py +++ b/src/cloudflare/resources/radar/bgp/bgp.py @@ -9,45 +9,45 @@ import httpx from .top import ( - Top, - AsyncTop, - TopWithRawResponse, - AsyncTopWithRawResponse, - TopWithStreamingResponse, - AsyncTopWithStreamingResponse, + TopResource, + AsyncTopResource, + TopResourceWithRawResponse, + AsyncTopResourceWithRawResponse, + TopResourceWithStreamingResponse, + AsyncTopResourceWithStreamingResponse, ) from .leaks import ( - Leaks, - AsyncLeaks, - LeaksWithRawResponse, - AsyncLeaksWithRawResponse, - LeaksWithStreamingResponse, - AsyncLeaksWithStreamingResponse, + LeaksResource, + AsyncLeaksResource, + LeaksResourceWithRawResponse, + AsyncLeaksResourceWithRawResponse, + LeaksResourceWithStreamingResponse, + AsyncLeaksResourceWithStreamingResponse, ) from .routes import ( - Routes, - AsyncRoutes, - RoutesWithRawResponse, - AsyncRoutesWithRawResponse, - RoutesWithStreamingResponse, - AsyncRoutesWithStreamingResponse, + RoutesResource, + AsyncRoutesResource, + RoutesResourceWithRawResponse, + AsyncRoutesResourceWithRawResponse, + RoutesResourceWithStreamingResponse, + AsyncRoutesResourceWithStreamingResponse, ) from .hijacks import ( - Hijacks, - AsyncHijacks, - HijacksWithRawResponse, - AsyncHijacksWithRawResponse, - HijacksWithStreamingResponse, - AsyncHijacksWithStreamingResponse, + HijacksResource, + AsyncHijacksResource, + HijacksResourceWithRawResponse, + AsyncHijacksResourceWithRawResponse, + HijacksResourceWithStreamingResponse, + AsyncHijacksResourceWithStreamingResponse, ) -from .top.top import Top, AsyncTop +from .top.top import TopResource, AsyncTopResource from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven from ...._utils import ( maybe_transform, async_maybe_transform, ) from ...._compat import cached_property -from .leaks.leaks import Leaks, AsyncLeaks +from .leaks.leaks import LeaksResource, AsyncLeaksResource from ...._resource import SyncAPIResource, AsyncAPIResource from ...._response import ( to_raw_response_wrapper, @@ -60,36 +60,36 @@ from ...._base_client import ( make_request_options, ) -from .hijacks.hijacks import Hijacks, AsyncHijacks +from .hijacks.hijacks import HijacksResource, AsyncHijacksResource from ....types.radar.bgp_timeseries_response import BGPTimeseriesResponse -__all__ = ["BGP", "AsyncBGP"] +__all__ = ["BGPResource", "AsyncBGPResource"] -class BGP(SyncAPIResource): +class BGPResource(SyncAPIResource): @cached_property - def leaks(self) -> Leaks: - return Leaks(self._client) + def leaks(self) -> LeaksResource: + return LeaksResource(self._client) @cached_property - def top(self) -> Top: - return Top(self._client) + def top(self) -> TopResource: + return TopResource(self._client) @cached_property - def hijacks(self) -> Hijacks: - return Hijacks(self._client) + def hijacks(self) -> HijacksResource: + return HijacksResource(self._client) @cached_property - def routes(self) -> Routes: - return Routes(self._client) + def routes(self) -> RoutesResource: + return RoutesResource(self._client) @cached_property - def with_raw_response(self) -> BGPWithRawResponse: - return BGPWithRawResponse(self) + def with_raw_response(self) -> BGPResourceWithRawResponse: + return BGPResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> BGPWithStreamingResponse: - return BGPWithStreamingResponse(self) + def with_streaming_response(self) -> BGPResourceWithStreamingResponse: + return BGPResourceWithStreamingResponse(self) def timeseries( self, @@ -195,30 +195,30 @@ def timeseries( ) -class AsyncBGP(AsyncAPIResource): +class AsyncBGPResource(AsyncAPIResource): @cached_property - def leaks(self) -> AsyncLeaks: - return AsyncLeaks(self._client) + def leaks(self) -> AsyncLeaksResource: + return AsyncLeaksResource(self._client) @cached_property - def top(self) -> AsyncTop: - return AsyncTop(self._client) + def top(self) -> AsyncTopResource: + return AsyncTopResource(self._client) @cached_property - def hijacks(self) -> AsyncHijacks: - return AsyncHijacks(self._client) + def hijacks(self) -> AsyncHijacksResource: + return AsyncHijacksResource(self._client) @cached_property - def routes(self) -> AsyncRoutes: - return AsyncRoutes(self._client) + def routes(self) -> AsyncRoutesResource: + return AsyncRoutesResource(self._client) @cached_property - def with_raw_response(self) -> AsyncBGPWithRawResponse: - return AsyncBGPWithRawResponse(self) + def with_raw_response(self) -> AsyncBGPResourceWithRawResponse: + return AsyncBGPResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncBGPWithStreamingResponse: - return AsyncBGPWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncBGPResourceWithStreamingResponse: + return AsyncBGPResourceWithStreamingResponse(self) async def timeseries( self, @@ -324,8 +324,8 @@ async def timeseries( ) -class BGPWithRawResponse: - def __init__(self, bgp: BGP) -> None: +class BGPResourceWithRawResponse: + def __init__(self, bgp: BGPResource) -> None: self._bgp = bgp self.timeseries = to_raw_response_wrapper( @@ -333,24 +333,24 @@ def __init__(self, bgp: BGP) -> None: ) @cached_property - def leaks(self) -> LeaksWithRawResponse: - return LeaksWithRawResponse(self._bgp.leaks) + def leaks(self) -> LeaksResourceWithRawResponse: + return LeaksResourceWithRawResponse(self._bgp.leaks) @cached_property - def top(self) -> TopWithRawResponse: - return TopWithRawResponse(self._bgp.top) + def top(self) -> TopResourceWithRawResponse: + return TopResourceWithRawResponse(self._bgp.top) @cached_property - def hijacks(self) -> HijacksWithRawResponse: - return HijacksWithRawResponse(self._bgp.hijacks) + def hijacks(self) -> HijacksResourceWithRawResponse: + return HijacksResourceWithRawResponse(self._bgp.hijacks) @cached_property - def routes(self) -> RoutesWithRawResponse: - return RoutesWithRawResponse(self._bgp.routes) + def routes(self) -> RoutesResourceWithRawResponse: + return RoutesResourceWithRawResponse(self._bgp.routes) -class AsyncBGPWithRawResponse: - def __init__(self, bgp: AsyncBGP) -> None: +class AsyncBGPResourceWithRawResponse: + def __init__(self, bgp: AsyncBGPResource) -> None: self._bgp = bgp self.timeseries = async_to_raw_response_wrapper( @@ -358,24 +358,24 @@ def __init__(self, bgp: AsyncBGP) -> None: ) @cached_property - def leaks(self) -> AsyncLeaksWithRawResponse: - return AsyncLeaksWithRawResponse(self._bgp.leaks) + def leaks(self) -> AsyncLeaksResourceWithRawResponse: + return AsyncLeaksResourceWithRawResponse(self._bgp.leaks) @cached_property - def top(self) -> AsyncTopWithRawResponse: - return AsyncTopWithRawResponse(self._bgp.top) + def top(self) -> AsyncTopResourceWithRawResponse: + return AsyncTopResourceWithRawResponse(self._bgp.top) @cached_property - def hijacks(self) -> AsyncHijacksWithRawResponse: - return AsyncHijacksWithRawResponse(self._bgp.hijacks) + def hijacks(self) -> AsyncHijacksResourceWithRawResponse: + return AsyncHijacksResourceWithRawResponse(self._bgp.hijacks) @cached_property - def routes(self) -> AsyncRoutesWithRawResponse: - return AsyncRoutesWithRawResponse(self._bgp.routes) + def routes(self) -> AsyncRoutesResourceWithRawResponse: + return AsyncRoutesResourceWithRawResponse(self._bgp.routes) -class BGPWithStreamingResponse: - def __init__(self, bgp: BGP) -> None: +class BGPResourceWithStreamingResponse: + def __init__(self, bgp: BGPResource) -> None: self._bgp = bgp self.timeseries = to_streamed_response_wrapper( @@ -383,24 +383,24 @@ def __init__(self, bgp: BGP) -> None: ) @cached_property - def leaks(self) -> LeaksWithStreamingResponse: - return LeaksWithStreamingResponse(self._bgp.leaks) + def leaks(self) -> LeaksResourceWithStreamingResponse: + return LeaksResourceWithStreamingResponse(self._bgp.leaks) @cached_property - def top(self) -> TopWithStreamingResponse: - return TopWithStreamingResponse(self._bgp.top) + def top(self) -> TopResourceWithStreamingResponse: + return TopResourceWithStreamingResponse(self._bgp.top) @cached_property - def hijacks(self) -> HijacksWithStreamingResponse: - return HijacksWithStreamingResponse(self._bgp.hijacks) + def hijacks(self) -> HijacksResourceWithStreamingResponse: + return HijacksResourceWithStreamingResponse(self._bgp.hijacks) @cached_property - def routes(self) -> RoutesWithStreamingResponse: - return RoutesWithStreamingResponse(self._bgp.routes) + def routes(self) -> RoutesResourceWithStreamingResponse: + return RoutesResourceWithStreamingResponse(self._bgp.routes) -class AsyncBGPWithStreamingResponse: - def __init__(self, bgp: AsyncBGP) -> None: +class AsyncBGPResourceWithStreamingResponse: + def __init__(self, bgp: AsyncBGPResource) -> None: self._bgp = bgp self.timeseries = async_to_streamed_response_wrapper( @@ -408,17 +408,17 @@ def __init__(self, bgp: AsyncBGP) -> None: ) @cached_property - def leaks(self) -> AsyncLeaksWithStreamingResponse: - return AsyncLeaksWithStreamingResponse(self._bgp.leaks) + def leaks(self) -> AsyncLeaksResourceWithStreamingResponse: + return AsyncLeaksResourceWithStreamingResponse(self._bgp.leaks) @cached_property - def top(self) -> AsyncTopWithStreamingResponse: - return AsyncTopWithStreamingResponse(self._bgp.top) + def top(self) -> AsyncTopResourceWithStreamingResponse: + return AsyncTopResourceWithStreamingResponse(self._bgp.top) @cached_property - def hijacks(self) -> AsyncHijacksWithStreamingResponse: - return AsyncHijacksWithStreamingResponse(self._bgp.hijacks) + def hijacks(self) -> AsyncHijacksResourceWithStreamingResponse: + return AsyncHijacksResourceWithStreamingResponse(self._bgp.hijacks) @cached_property - def routes(self) -> AsyncRoutesWithStreamingResponse: - return AsyncRoutesWithStreamingResponse(self._bgp.routes) + def routes(self) -> AsyncRoutesResourceWithStreamingResponse: + return AsyncRoutesResourceWithStreamingResponse(self._bgp.routes) diff --git a/src/cloudflare/resources/radar/bgp/hijacks/__init__.py b/src/cloudflare/resources/radar/bgp/hijacks/__init__.py index 476f32bf825..f32bf80db23 100644 --- a/src/cloudflare/resources/radar/bgp/hijacks/__init__.py +++ b/src/cloudflare/resources/radar/bgp/hijacks/__init__.py @@ -1,33 +1,33 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from .events import ( - Events, - AsyncEvents, - EventsWithRawResponse, - AsyncEventsWithRawResponse, - EventsWithStreamingResponse, - AsyncEventsWithStreamingResponse, + EventsResource, + AsyncEventsResource, + EventsResourceWithRawResponse, + AsyncEventsResourceWithRawResponse, + EventsResourceWithStreamingResponse, + AsyncEventsResourceWithStreamingResponse, ) from .hijacks import ( - Hijacks, - AsyncHijacks, - HijacksWithRawResponse, - AsyncHijacksWithRawResponse, - HijacksWithStreamingResponse, - AsyncHijacksWithStreamingResponse, + HijacksResource, + AsyncHijacksResource, + HijacksResourceWithRawResponse, + AsyncHijacksResourceWithRawResponse, + HijacksResourceWithStreamingResponse, + AsyncHijacksResourceWithStreamingResponse, ) __all__ = [ - "Events", - "AsyncEvents", - "EventsWithRawResponse", - "AsyncEventsWithRawResponse", - "EventsWithStreamingResponse", - "AsyncEventsWithStreamingResponse", - "Hijacks", - "AsyncHijacks", - "HijacksWithRawResponse", - "AsyncHijacksWithRawResponse", - "HijacksWithStreamingResponse", - "AsyncHijacksWithStreamingResponse", + "EventsResource", + "AsyncEventsResource", + "EventsResourceWithRawResponse", + "AsyncEventsResourceWithRawResponse", + "EventsResourceWithStreamingResponse", + "AsyncEventsResourceWithStreamingResponse", + "HijacksResource", + "AsyncHijacksResource", + "HijacksResourceWithRawResponse", + "AsyncHijacksResourceWithRawResponse", + "HijacksResourceWithStreamingResponse", + "AsyncHijacksResourceWithStreamingResponse", ] diff --git a/src/cloudflare/resources/radar/bgp/hijacks/events.py b/src/cloudflare/resources/radar/bgp/hijacks/events.py index ad46bee9d43..6844c5c06d6 100644 --- a/src/cloudflare/resources/radar/bgp/hijacks/events.py +++ b/src/cloudflare/resources/radar/bgp/hijacks/events.py @@ -26,17 +26,17 @@ from .....types.radar.bgp.hijacks import event_list_params from .....types.radar.bgp.hijacks.event_list_response import EventListResponse -__all__ = ["Events", "AsyncEvents"] +__all__ = ["EventsResource", "AsyncEventsResource"] -class Events(SyncAPIResource): +class EventsResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> EventsWithRawResponse: - return EventsWithRawResponse(self) + def with_raw_response(self) -> EventsResourceWithRawResponse: + return EventsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> EventsWithStreamingResponse: - return EventsWithStreamingResponse(self) + def with_streaming_response(self) -> EventsResourceWithStreamingResponse: + return EventsResourceWithStreamingResponse(self) def list( self, @@ -161,14 +161,14 @@ def list( ) -class AsyncEvents(AsyncAPIResource): +class AsyncEventsResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncEventsWithRawResponse: - return AsyncEventsWithRawResponse(self) + def with_raw_response(self) -> AsyncEventsResourceWithRawResponse: + return AsyncEventsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncEventsWithStreamingResponse: - return AsyncEventsWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncEventsResourceWithStreamingResponse: + return AsyncEventsResourceWithStreamingResponse(self) def list( self, @@ -293,8 +293,8 @@ def list( ) -class EventsWithRawResponse: - def __init__(self, events: Events) -> None: +class EventsResourceWithRawResponse: + def __init__(self, events: EventsResource) -> None: self._events = events self.list = to_raw_response_wrapper( @@ -302,8 +302,8 @@ def __init__(self, events: Events) -> None: ) -class AsyncEventsWithRawResponse: - def __init__(self, events: AsyncEvents) -> None: +class AsyncEventsResourceWithRawResponse: + def __init__(self, events: AsyncEventsResource) -> None: self._events = events self.list = async_to_raw_response_wrapper( @@ -311,8 +311,8 @@ def __init__(self, events: AsyncEvents) -> None: ) -class EventsWithStreamingResponse: - def __init__(self, events: Events) -> None: +class EventsResourceWithStreamingResponse: + def __init__(self, events: EventsResource) -> None: self._events = events self.list = to_streamed_response_wrapper( @@ -320,8 +320,8 @@ def __init__(self, events: Events) -> None: ) -class AsyncEventsWithStreamingResponse: - def __init__(self, events: AsyncEvents) -> None: +class AsyncEventsResourceWithStreamingResponse: + def __init__(self, events: AsyncEventsResource) -> None: self._events = events self.list = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/radar/bgp/hijacks/hijacks.py b/src/cloudflare/resources/radar/bgp/hijacks/hijacks.py index f3d51c73d60..70e14049da9 100644 --- a/src/cloudflare/resources/radar/bgp/hijacks/hijacks.py +++ b/src/cloudflare/resources/radar/bgp/hijacks/hijacks.py @@ -3,78 +3,78 @@ from __future__ import annotations from .events import ( - Events, - AsyncEvents, - EventsWithRawResponse, - AsyncEventsWithRawResponse, - EventsWithStreamingResponse, - AsyncEventsWithStreamingResponse, + EventsResource, + AsyncEventsResource, + EventsResourceWithRawResponse, + AsyncEventsResourceWithRawResponse, + EventsResourceWithStreamingResponse, + AsyncEventsResourceWithStreamingResponse, ) from ....._compat import cached_property from ....._resource import SyncAPIResource, AsyncAPIResource -__all__ = ["Hijacks", "AsyncHijacks"] +__all__ = ["HijacksResource", "AsyncHijacksResource"] -class Hijacks(SyncAPIResource): +class HijacksResource(SyncAPIResource): @cached_property - def events(self) -> Events: - return Events(self._client) + def events(self) -> EventsResource: + return EventsResource(self._client) @cached_property - def with_raw_response(self) -> HijacksWithRawResponse: - return HijacksWithRawResponse(self) + def with_raw_response(self) -> HijacksResourceWithRawResponse: + return HijacksResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> HijacksWithStreamingResponse: - return HijacksWithStreamingResponse(self) + def with_streaming_response(self) -> HijacksResourceWithStreamingResponse: + return HijacksResourceWithStreamingResponse(self) -class AsyncHijacks(AsyncAPIResource): +class AsyncHijacksResource(AsyncAPIResource): @cached_property - def events(self) -> AsyncEvents: - return AsyncEvents(self._client) + def events(self) -> AsyncEventsResource: + return AsyncEventsResource(self._client) @cached_property - def with_raw_response(self) -> AsyncHijacksWithRawResponse: - return AsyncHijacksWithRawResponse(self) + def with_raw_response(self) -> AsyncHijacksResourceWithRawResponse: + return AsyncHijacksResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncHijacksWithStreamingResponse: - return AsyncHijacksWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncHijacksResourceWithStreamingResponse: + return AsyncHijacksResourceWithStreamingResponse(self) -class HijacksWithRawResponse: - def __init__(self, hijacks: Hijacks) -> None: +class HijacksResourceWithRawResponse: + def __init__(self, hijacks: HijacksResource) -> None: self._hijacks = hijacks @cached_property - def events(self) -> EventsWithRawResponse: - return EventsWithRawResponse(self._hijacks.events) + def events(self) -> EventsResourceWithRawResponse: + return EventsResourceWithRawResponse(self._hijacks.events) -class AsyncHijacksWithRawResponse: - def __init__(self, hijacks: AsyncHijacks) -> None: +class AsyncHijacksResourceWithRawResponse: + def __init__(self, hijacks: AsyncHijacksResource) -> None: self._hijacks = hijacks @cached_property - def events(self) -> AsyncEventsWithRawResponse: - return AsyncEventsWithRawResponse(self._hijacks.events) + def events(self) -> AsyncEventsResourceWithRawResponse: + return AsyncEventsResourceWithRawResponse(self._hijacks.events) -class HijacksWithStreamingResponse: - def __init__(self, hijacks: Hijacks) -> None: +class HijacksResourceWithStreamingResponse: + def __init__(self, hijacks: HijacksResource) -> None: self._hijacks = hijacks @cached_property - def events(self) -> EventsWithStreamingResponse: - return EventsWithStreamingResponse(self._hijacks.events) + def events(self) -> EventsResourceWithStreamingResponse: + return EventsResourceWithStreamingResponse(self._hijacks.events) -class AsyncHijacksWithStreamingResponse: - def __init__(self, hijacks: AsyncHijacks) -> None: +class AsyncHijacksResourceWithStreamingResponse: + def __init__(self, hijacks: AsyncHijacksResource) -> None: self._hijacks = hijacks @cached_property - def events(self) -> AsyncEventsWithStreamingResponse: - return AsyncEventsWithStreamingResponse(self._hijacks.events) + def events(self) -> AsyncEventsResourceWithStreamingResponse: + return AsyncEventsResourceWithStreamingResponse(self._hijacks.events) diff --git a/src/cloudflare/resources/radar/bgp/leaks/__init__.py b/src/cloudflare/resources/radar/bgp/leaks/__init__.py index 465d1ed3402..7f63768a484 100644 --- a/src/cloudflare/resources/radar/bgp/leaks/__init__.py +++ b/src/cloudflare/resources/radar/bgp/leaks/__init__.py @@ -1,33 +1,33 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from .leaks import ( - Leaks, - AsyncLeaks, - LeaksWithRawResponse, - AsyncLeaksWithRawResponse, - LeaksWithStreamingResponse, - AsyncLeaksWithStreamingResponse, + LeaksResource, + AsyncLeaksResource, + LeaksResourceWithRawResponse, + AsyncLeaksResourceWithRawResponse, + LeaksResourceWithStreamingResponse, + AsyncLeaksResourceWithStreamingResponse, ) from .events import ( - Events, - AsyncEvents, - EventsWithRawResponse, - AsyncEventsWithRawResponse, - EventsWithStreamingResponse, - AsyncEventsWithStreamingResponse, + EventsResource, + AsyncEventsResource, + EventsResourceWithRawResponse, + AsyncEventsResourceWithRawResponse, + EventsResourceWithStreamingResponse, + AsyncEventsResourceWithStreamingResponse, ) __all__ = [ - "Events", - "AsyncEvents", - "EventsWithRawResponse", - "AsyncEventsWithRawResponse", - "EventsWithStreamingResponse", - "AsyncEventsWithStreamingResponse", - "Leaks", - "AsyncLeaks", - "LeaksWithRawResponse", - "AsyncLeaksWithRawResponse", - "LeaksWithStreamingResponse", - "AsyncLeaksWithStreamingResponse", + "EventsResource", + "AsyncEventsResource", + "EventsResourceWithRawResponse", + "AsyncEventsResourceWithRawResponse", + "EventsResourceWithStreamingResponse", + "AsyncEventsResourceWithStreamingResponse", + "LeaksResource", + "AsyncLeaksResource", + "LeaksResourceWithRawResponse", + "AsyncLeaksResourceWithRawResponse", + "LeaksResourceWithStreamingResponse", + "AsyncLeaksResourceWithStreamingResponse", ] diff --git a/src/cloudflare/resources/radar/bgp/leaks/events.py b/src/cloudflare/resources/radar/bgp/leaks/events.py index b17cce8c963..92227d0287b 100644 --- a/src/cloudflare/resources/radar/bgp/leaks/events.py +++ b/src/cloudflare/resources/radar/bgp/leaks/events.py @@ -26,17 +26,17 @@ from .....types.radar.bgp.leaks import event_list_params from .....types.radar.bgp.leaks.event_list_response import EventListResponse -__all__ = ["Events", "AsyncEvents"] +__all__ = ["EventsResource", "AsyncEventsResource"] -class Events(SyncAPIResource): +class EventsResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> EventsWithRawResponse: - return EventsWithRawResponse(self) + def with_raw_response(self) -> EventsResourceWithRawResponse: + return EventsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> EventsWithStreamingResponse: - return EventsWithStreamingResponse(self) + def with_streaming_response(self) -> EventsResourceWithStreamingResponse: + return EventsResourceWithStreamingResponse(self) def list( self, @@ -144,14 +144,14 @@ def list( ) -class AsyncEvents(AsyncAPIResource): +class AsyncEventsResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncEventsWithRawResponse: - return AsyncEventsWithRawResponse(self) + def with_raw_response(self) -> AsyncEventsResourceWithRawResponse: + return AsyncEventsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncEventsWithStreamingResponse: - return AsyncEventsWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncEventsResourceWithStreamingResponse: + return AsyncEventsResourceWithStreamingResponse(self) def list( self, @@ -259,8 +259,8 @@ def list( ) -class EventsWithRawResponse: - def __init__(self, events: Events) -> None: +class EventsResourceWithRawResponse: + def __init__(self, events: EventsResource) -> None: self._events = events self.list = to_raw_response_wrapper( @@ -268,8 +268,8 @@ def __init__(self, events: Events) -> None: ) -class AsyncEventsWithRawResponse: - def __init__(self, events: AsyncEvents) -> None: +class AsyncEventsResourceWithRawResponse: + def __init__(self, events: AsyncEventsResource) -> None: self._events = events self.list = async_to_raw_response_wrapper( @@ -277,8 +277,8 @@ def __init__(self, events: AsyncEvents) -> None: ) -class EventsWithStreamingResponse: - def __init__(self, events: Events) -> None: +class EventsResourceWithStreamingResponse: + def __init__(self, events: EventsResource) -> None: self._events = events self.list = to_streamed_response_wrapper( @@ -286,8 +286,8 @@ def __init__(self, events: Events) -> None: ) -class AsyncEventsWithStreamingResponse: - def __init__(self, events: AsyncEvents) -> None: +class AsyncEventsResourceWithStreamingResponse: + def __init__(self, events: AsyncEventsResource) -> None: self._events = events self.list = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/radar/bgp/leaks/leaks.py b/src/cloudflare/resources/radar/bgp/leaks/leaks.py index aaf6fe97ffb..6a0f9382b18 100644 --- a/src/cloudflare/resources/radar/bgp/leaks/leaks.py +++ b/src/cloudflare/resources/radar/bgp/leaks/leaks.py @@ -3,78 +3,78 @@ from __future__ import annotations from .events import ( - Events, - AsyncEvents, - EventsWithRawResponse, - AsyncEventsWithRawResponse, - EventsWithStreamingResponse, - AsyncEventsWithStreamingResponse, + EventsResource, + AsyncEventsResource, + EventsResourceWithRawResponse, + AsyncEventsResourceWithRawResponse, + EventsResourceWithStreamingResponse, + AsyncEventsResourceWithStreamingResponse, ) from ....._compat import cached_property from ....._resource import SyncAPIResource, AsyncAPIResource -__all__ = ["Leaks", "AsyncLeaks"] +__all__ = ["LeaksResource", "AsyncLeaksResource"] -class Leaks(SyncAPIResource): +class LeaksResource(SyncAPIResource): @cached_property - def events(self) -> Events: - return Events(self._client) + def events(self) -> EventsResource: + return EventsResource(self._client) @cached_property - def with_raw_response(self) -> LeaksWithRawResponse: - return LeaksWithRawResponse(self) + def with_raw_response(self) -> LeaksResourceWithRawResponse: + return LeaksResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> LeaksWithStreamingResponse: - return LeaksWithStreamingResponse(self) + def with_streaming_response(self) -> LeaksResourceWithStreamingResponse: + return LeaksResourceWithStreamingResponse(self) -class AsyncLeaks(AsyncAPIResource): +class AsyncLeaksResource(AsyncAPIResource): @cached_property - def events(self) -> AsyncEvents: - return AsyncEvents(self._client) + def events(self) -> AsyncEventsResource: + return AsyncEventsResource(self._client) @cached_property - def with_raw_response(self) -> AsyncLeaksWithRawResponse: - return AsyncLeaksWithRawResponse(self) + def with_raw_response(self) -> AsyncLeaksResourceWithRawResponse: + return AsyncLeaksResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncLeaksWithStreamingResponse: - return AsyncLeaksWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncLeaksResourceWithStreamingResponse: + return AsyncLeaksResourceWithStreamingResponse(self) -class LeaksWithRawResponse: - def __init__(self, leaks: Leaks) -> None: +class LeaksResourceWithRawResponse: + def __init__(self, leaks: LeaksResource) -> None: self._leaks = leaks @cached_property - def events(self) -> EventsWithRawResponse: - return EventsWithRawResponse(self._leaks.events) + def events(self) -> EventsResourceWithRawResponse: + return EventsResourceWithRawResponse(self._leaks.events) -class AsyncLeaksWithRawResponse: - def __init__(self, leaks: AsyncLeaks) -> None: +class AsyncLeaksResourceWithRawResponse: + def __init__(self, leaks: AsyncLeaksResource) -> None: self._leaks = leaks @cached_property - def events(self) -> AsyncEventsWithRawResponse: - return AsyncEventsWithRawResponse(self._leaks.events) + def events(self) -> AsyncEventsResourceWithRawResponse: + return AsyncEventsResourceWithRawResponse(self._leaks.events) -class LeaksWithStreamingResponse: - def __init__(self, leaks: Leaks) -> None: +class LeaksResourceWithStreamingResponse: + def __init__(self, leaks: LeaksResource) -> None: self._leaks = leaks @cached_property - def events(self) -> EventsWithStreamingResponse: - return EventsWithStreamingResponse(self._leaks.events) + def events(self) -> EventsResourceWithStreamingResponse: + return EventsResourceWithStreamingResponse(self._leaks.events) -class AsyncLeaksWithStreamingResponse: - def __init__(self, leaks: AsyncLeaks) -> None: +class AsyncLeaksResourceWithStreamingResponse: + def __init__(self, leaks: AsyncLeaksResource) -> None: self._leaks = leaks @cached_property - def events(self) -> AsyncEventsWithStreamingResponse: - return AsyncEventsWithStreamingResponse(self._leaks.events) + def events(self) -> AsyncEventsResourceWithStreamingResponse: + return AsyncEventsResourceWithStreamingResponse(self._leaks.events) diff --git a/src/cloudflare/resources/radar/bgp/routes.py b/src/cloudflare/resources/radar/bgp/routes.py index 4dddda2c1c4..cdb54f244f5 100644 --- a/src/cloudflare/resources/radar/bgp/routes.py +++ b/src/cloudflare/resources/radar/bgp/routes.py @@ -31,17 +31,17 @@ from ....types.radar.bgp.route_pfx2as_response import RoutePfx2asResponse from ....types.radar.bgp.route_timeseries_response import RouteTimeseriesResponse -__all__ = ["Routes", "AsyncRoutes"] +__all__ = ["RoutesResource", "AsyncRoutesResource"] -class Routes(SyncAPIResource): +class RoutesResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> RoutesWithRawResponse: - return RoutesWithRawResponse(self) + def with_raw_response(self) -> RoutesResourceWithRawResponse: + return RoutesResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> RoutesWithStreamingResponse: - return RoutesWithStreamingResponse(self) + def with_streaming_response(self) -> RoutesResourceWithStreamingResponse: + return RoutesResourceWithStreamingResponse(self) def moas( self, @@ -296,14 +296,14 @@ def timeseries( ) -class AsyncRoutes(AsyncAPIResource): +class AsyncRoutesResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncRoutesWithRawResponse: - return AsyncRoutesWithRawResponse(self) + def with_raw_response(self) -> AsyncRoutesResourceWithRawResponse: + return AsyncRoutesResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncRoutesWithStreamingResponse: - return AsyncRoutesWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncRoutesResourceWithStreamingResponse: + return AsyncRoutesResourceWithStreamingResponse(self) async def moas( self, @@ -558,8 +558,8 @@ async def timeseries( ) -class RoutesWithRawResponse: - def __init__(self, routes: Routes) -> None: +class RoutesResourceWithRawResponse: + def __init__(self, routes: RoutesResource) -> None: self._routes = routes self.moas = to_raw_response_wrapper( @@ -576,8 +576,8 @@ def __init__(self, routes: Routes) -> None: ) -class AsyncRoutesWithRawResponse: - def __init__(self, routes: AsyncRoutes) -> None: +class AsyncRoutesResourceWithRawResponse: + def __init__(self, routes: AsyncRoutesResource) -> None: self._routes = routes self.moas = async_to_raw_response_wrapper( @@ -594,8 +594,8 @@ def __init__(self, routes: AsyncRoutes) -> None: ) -class RoutesWithStreamingResponse: - def __init__(self, routes: Routes) -> None: +class RoutesResourceWithStreamingResponse: + def __init__(self, routes: RoutesResource) -> None: self._routes = routes self.moas = to_streamed_response_wrapper( @@ -612,8 +612,8 @@ def __init__(self, routes: Routes) -> None: ) -class AsyncRoutesWithStreamingResponse: - def __init__(self, routes: AsyncRoutes) -> None: +class AsyncRoutesResourceWithStreamingResponse: + def __init__(self, routes: AsyncRoutesResource) -> None: self._routes = routes self.moas = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/radar/bgp/top/__init__.py b/src/cloudflare/resources/radar/bgp/top/__init__.py index a80240a3a26..4466a472d72 100644 --- a/src/cloudflare/resources/radar/bgp/top/__init__.py +++ b/src/cloudflare/resources/radar/bgp/top/__init__.py @@ -1,33 +1,33 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from .top import ( - Top, - AsyncTop, - TopWithRawResponse, - AsyncTopWithRawResponse, - TopWithStreamingResponse, - AsyncTopWithStreamingResponse, + TopResource, + AsyncTopResource, + TopResourceWithRawResponse, + AsyncTopResourceWithRawResponse, + TopResourceWithStreamingResponse, + AsyncTopResourceWithStreamingResponse, ) from .ases import ( - Ases, - AsyncAses, - AsesWithRawResponse, - AsyncAsesWithRawResponse, - AsesWithStreamingResponse, - AsyncAsesWithStreamingResponse, + AsesResource, + AsyncAsesResource, + AsesResourceWithRawResponse, + AsyncAsesResourceWithRawResponse, + AsesResourceWithStreamingResponse, + AsyncAsesResourceWithStreamingResponse, ) __all__ = [ - "Ases", - "AsyncAses", - "AsesWithRawResponse", - "AsyncAsesWithRawResponse", - "AsesWithStreamingResponse", - "AsyncAsesWithStreamingResponse", - "Top", - "AsyncTop", - "TopWithRawResponse", - "AsyncTopWithRawResponse", - "TopWithStreamingResponse", - "AsyncTopWithStreamingResponse", + "AsesResource", + "AsyncAsesResource", + "AsesResourceWithRawResponse", + "AsyncAsesResourceWithRawResponse", + "AsesResourceWithStreamingResponse", + "AsyncAsesResourceWithStreamingResponse", + "TopResource", + "AsyncTopResource", + "TopResourceWithRawResponse", + "AsyncTopResourceWithRawResponse", + "TopResourceWithStreamingResponse", + "AsyncTopResourceWithStreamingResponse", ] diff --git a/src/cloudflare/resources/radar/bgp/top/ases.py b/src/cloudflare/resources/radar/bgp/top/ases.py index 984bf73c0e2..6a9a0994b59 100644 --- a/src/cloudflare/resources/radar/bgp/top/ases.py +++ b/src/cloudflare/resources/radar/bgp/top/ases.py @@ -29,17 +29,17 @@ from .....types.radar.bgp.top.ase_get_response import AseGetResponse from .....types.radar.bgp.top.ase_prefixes_response import AsePrefixesResponse -__all__ = ["Ases", "AsyncAses"] +__all__ = ["AsesResource", "AsyncAsesResource"] -class Ases(SyncAPIResource): +class AsesResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> AsesWithRawResponse: - return AsesWithRawResponse(self) + def with_raw_response(self) -> AsesResourceWithRawResponse: + return AsesResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsesWithStreamingResponse: - return AsesWithStreamingResponse(self) + def with_streaming_response(self) -> AsesResourceWithStreamingResponse: + return AsesResourceWithStreamingResponse(self) def get( self, @@ -195,14 +195,14 @@ def prefixes( ) -class AsyncAses(AsyncAPIResource): +class AsyncAsesResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncAsesWithRawResponse: - return AsyncAsesWithRawResponse(self) + def with_raw_response(self) -> AsyncAsesResourceWithRawResponse: + return AsyncAsesResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncAsesWithStreamingResponse: - return AsyncAsesWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncAsesResourceWithStreamingResponse: + return AsyncAsesResourceWithStreamingResponse(self) async def get( self, @@ -358,8 +358,8 @@ async def prefixes( ) -class AsesWithRawResponse: - def __init__(self, ases: Ases) -> None: +class AsesResourceWithRawResponse: + def __init__(self, ases: AsesResource) -> None: self._ases = ases self.get = to_raw_response_wrapper( @@ -370,8 +370,8 @@ def __init__(self, ases: Ases) -> None: ) -class AsyncAsesWithRawResponse: - def __init__(self, ases: AsyncAses) -> None: +class AsyncAsesResourceWithRawResponse: + def __init__(self, ases: AsyncAsesResource) -> None: self._ases = ases self.get = async_to_raw_response_wrapper( @@ -382,8 +382,8 @@ def __init__(self, ases: AsyncAses) -> None: ) -class AsesWithStreamingResponse: - def __init__(self, ases: Ases) -> None: +class AsesResourceWithStreamingResponse: + def __init__(self, ases: AsesResource) -> None: self._ases = ases self.get = to_streamed_response_wrapper( @@ -394,8 +394,8 @@ def __init__(self, ases: Ases) -> None: ) -class AsyncAsesWithStreamingResponse: - def __init__(self, ases: AsyncAses) -> None: +class AsyncAsesResourceWithStreamingResponse: + def __init__(self, ases: AsyncAsesResource) -> None: self._ases = ases self.get = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/radar/bgp/top/top.py b/src/cloudflare/resources/radar/bgp/top/top.py index 5ffa91509f6..17826f992e9 100644 --- a/src/cloudflare/resources/radar/bgp/top/top.py +++ b/src/cloudflare/resources/radar/bgp/top/top.py @@ -9,12 +9,12 @@ import httpx from .ases import ( - Ases, - AsyncAses, - AsesWithRawResponse, - AsyncAsesWithRawResponse, - AsesWithStreamingResponse, - AsyncAsesWithStreamingResponse, + AsesResource, + AsyncAsesResource, + AsesResourceWithRawResponse, + AsyncAsesResourceWithRawResponse, + AsesResourceWithStreamingResponse, + AsyncAsesResourceWithStreamingResponse, ) from ....._types import NOT_GIVEN, Body, Query, Headers, NotGiven from ....._utils import ( @@ -36,21 +36,21 @@ from .....types.radar.bgp import top_prefixes_params from .....types.radar.bgp.top_prefixes_response import TopPrefixesResponse -__all__ = ["Top", "AsyncTop"] +__all__ = ["TopResource", "AsyncTopResource"] -class Top(SyncAPIResource): +class TopResource(SyncAPIResource): @cached_property - def ases(self) -> Ases: - return Ases(self._client) + def ases(self) -> AsesResource: + return AsesResource(self._client) @cached_property - def with_raw_response(self) -> TopWithRawResponse: - return TopWithRawResponse(self) + def with_raw_response(self) -> TopResourceWithRawResponse: + return TopResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> TopWithStreamingResponse: - return TopWithStreamingResponse(self) + def with_streaming_response(self) -> TopResourceWithStreamingResponse: + return TopResourceWithStreamingResponse(self) def prefixes( self, @@ -149,18 +149,18 @@ def prefixes( ) -class AsyncTop(AsyncAPIResource): +class AsyncTopResource(AsyncAPIResource): @cached_property - def ases(self) -> AsyncAses: - return AsyncAses(self._client) + def ases(self) -> AsyncAsesResource: + return AsyncAsesResource(self._client) @cached_property - def with_raw_response(self) -> AsyncTopWithRawResponse: - return AsyncTopWithRawResponse(self) + def with_raw_response(self) -> AsyncTopResourceWithRawResponse: + return AsyncTopResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncTopWithStreamingResponse: - return AsyncTopWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncTopResourceWithStreamingResponse: + return AsyncTopResourceWithStreamingResponse(self) async def prefixes( self, @@ -259,8 +259,8 @@ async def prefixes( ) -class TopWithRawResponse: - def __init__(self, top: Top) -> None: +class TopResourceWithRawResponse: + def __init__(self, top: TopResource) -> None: self._top = top self.prefixes = to_raw_response_wrapper( @@ -268,12 +268,12 @@ def __init__(self, top: Top) -> None: ) @cached_property - def ases(self) -> AsesWithRawResponse: - return AsesWithRawResponse(self._top.ases) + def ases(self) -> AsesResourceWithRawResponse: + return AsesResourceWithRawResponse(self._top.ases) -class AsyncTopWithRawResponse: - def __init__(self, top: AsyncTop) -> None: +class AsyncTopResourceWithRawResponse: + def __init__(self, top: AsyncTopResource) -> None: self._top = top self.prefixes = async_to_raw_response_wrapper( @@ -281,12 +281,12 @@ def __init__(self, top: AsyncTop) -> None: ) @cached_property - def ases(self) -> AsyncAsesWithRawResponse: - return AsyncAsesWithRawResponse(self._top.ases) + def ases(self) -> AsyncAsesResourceWithRawResponse: + return AsyncAsesResourceWithRawResponse(self._top.ases) -class TopWithStreamingResponse: - def __init__(self, top: Top) -> None: +class TopResourceWithStreamingResponse: + def __init__(self, top: TopResource) -> None: self._top = top self.prefixes = to_streamed_response_wrapper( @@ -294,12 +294,12 @@ def __init__(self, top: Top) -> None: ) @cached_property - def ases(self) -> AsesWithStreamingResponse: - return AsesWithStreamingResponse(self._top.ases) + def ases(self) -> AsesResourceWithStreamingResponse: + return AsesResourceWithStreamingResponse(self._top.ases) -class AsyncTopWithStreamingResponse: - def __init__(self, top: AsyncTop) -> None: +class AsyncTopResourceWithStreamingResponse: + def __init__(self, top: AsyncTopResource) -> None: self._top = top self.prefixes = async_to_streamed_response_wrapper( @@ -307,5 +307,5 @@ def __init__(self, top: AsyncTop) -> None: ) @cached_property - def ases(self) -> AsyncAsesWithStreamingResponse: - return AsyncAsesWithStreamingResponse(self._top.ases) + def ases(self) -> AsyncAsesResourceWithStreamingResponse: + return AsyncAsesResourceWithStreamingResponse(self._top.ases) diff --git a/src/cloudflare/resources/radar/connection_tampering.py b/src/cloudflare/resources/radar/connection_tampering.py index b39ca0f6dfa..76c5a4c8512 100644 --- a/src/cloudflare/resources/radar/connection_tampering.py +++ b/src/cloudflare/resources/radar/connection_tampering.py @@ -29,17 +29,17 @@ from ...types.radar.connection_tampering_summary_response import ConnectionTamperingSummaryResponse from ...types.radar.connection_tampering_timeseries_groups_response import ConnectionTamperingTimeseriesGroupsResponse -__all__ = ["ConnectionTampering", "AsyncConnectionTampering"] +__all__ = ["ConnectionTamperingResource", "AsyncConnectionTamperingResource"] -class ConnectionTampering(SyncAPIResource): +class ConnectionTamperingResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> ConnectionTamperingWithRawResponse: - return ConnectionTamperingWithRawResponse(self) + def with_raw_response(self) -> ConnectionTamperingResourceWithRawResponse: + return ConnectionTamperingResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> ConnectionTamperingWithStreamingResponse: - return ConnectionTamperingWithStreamingResponse(self) + def with_streaming_response(self) -> ConnectionTamperingResourceWithStreamingResponse: + return ConnectionTamperingResourceWithStreamingResponse(self) def summary( self, @@ -247,14 +247,14 @@ def timeseries_groups( ) -class AsyncConnectionTampering(AsyncAPIResource): +class AsyncConnectionTamperingResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncConnectionTamperingWithRawResponse: - return AsyncConnectionTamperingWithRawResponse(self) + def with_raw_response(self) -> AsyncConnectionTamperingResourceWithRawResponse: + return AsyncConnectionTamperingResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncConnectionTamperingWithStreamingResponse: - return AsyncConnectionTamperingWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncConnectionTamperingResourceWithStreamingResponse: + return AsyncConnectionTamperingResourceWithStreamingResponse(self) async def summary( self, @@ -462,8 +462,8 @@ async def timeseries_groups( ) -class ConnectionTamperingWithRawResponse: - def __init__(self, connection_tampering: ConnectionTampering) -> None: +class ConnectionTamperingResourceWithRawResponse: + def __init__(self, connection_tampering: ConnectionTamperingResource) -> None: self._connection_tampering = connection_tampering self.summary = to_raw_response_wrapper( @@ -474,8 +474,8 @@ def __init__(self, connection_tampering: ConnectionTampering) -> None: ) -class AsyncConnectionTamperingWithRawResponse: - def __init__(self, connection_tampering: AsyncConnectionTampering) -> None: +class AsyncConnectionTamperingResourceWithRawResponse: + def __init__(self, connection_tampering: AsyncConnectionTamperingResource) -> None: self._connection_tampering = connection_tampering self.summary = async_to_raw_response_wrapper( @@ -486,8 +486,8 @@ def __init__(self, connection_tampering: AsyncConnectionTampering) -> None: ) -class ConnectionTamperingWithStreamingResponse: - def __init__(self, connection_tampering: ConnectionTampering) -> None: +class ConnectionTamperingResourceWithStreamingResponse: + def __init__(self, connection_tampering: ConnectionTamperingResource) -> None: self._connection_tampering = connection_tampering self.summary = to_streamed_response_wrapper( @@ -498,8 +498,8 @@ def __init__(self, connection_tampering: ConnectionTampering) -> None: ) -class AsyncConnectionTamperingWithStreamingResponse: - def __init__(self, connection_tampering: AsyncConnectionTampering) -> None: +class AsyncConnectionTamperingResourceWithStreamingResponse: + def __init__(self, connection_tampering: AsyncConnectionTamperingResource) -> None: self._connection_tampering = connection_tampering self.summary = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/radar/datasets.py b/src/cloudflare/resources/radar/datasets.py index 5842f11af8c..021724e8c30 100644 --- a/src/cloudflare/resources/radar/datasets.py +++ b/src/cloudflare/resources/radar/datasets.py @@ -28,17 +28,17 @@ from ...types.radar.dataset_list_response import DatasetListResponse from ...types.radar.dataset_download_response import DatasetDownloadResponse -__all__ = ["Datasets", "AsyncDatasets"] +__all__ = ["DatasetsResource", "AsyncDatasetsResource"] -class Datasets(SyncAPIResource): +class DatasetsResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> DatasetsWithRawResponse: - return DatasetsWithRawResponse(self) + def with_raw_response(self) -> DatasetsResourceWithRawResponse: + return DatasetsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> DatasetsWithStreamingResponse: - return DatasetsWithStreamingResponse(self) + def with_streaming_response(self) -> DatasetsResourceWithStreamingResponse: + return DatasetsResourceWithStreamingResponse(self) def list( self, @@ -182,14 +182,14 @@ def get( ) -class AsyncDatasets(AsyncAPIResource): +class AsyncDatasetsResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncDatasetsWithRawResponse: - return AsyncDatasetsWithRawResponse(self) + def with_raw_response(self) -> AsyncDatasetsResourceWithRawResponse: + return AsyncDatasetsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncDatasetsWithStreamingResponse: - return AsyncDatasetsWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncDatasetsResourceWithStreamingResponse: + return AsyncDatasetsResourceWithStreamingResponse(self) async def list( self, @@ -333,8 +333,8 @@ async def get( ) -class DatasetsWithRawResponse: - def __init__(self, datasets: Datasets) -> None: +class DatasetsResourceWithRawResponse: + def __init__(self, datasets: DatasetsResource) -> None: self._datasets = datasets self.list = to_raw_response_wrapper( @@ -348,8 +348,8 @@ def __init__(self, datasets: Datasets) -> None: ) -class AsyncDatasetsWithRawResponse: - def __init__(self, datasets: AsyncDatasets) -> None: +class AsyncDatasetsResourceWithRawResponse: + def __init__(self, datasets: AsyncDatasetsResource) -> None: self._datasets = datasets self.list = async_to_raw_response_wrapper( @@ -363,8 +363,8 @@ def __init__(self, datasets: AsyncDatasets) -> None: ) -class DatasetsWithStreamingResponse: - def __init__(self, datasets: Datasets) -> None: +class DatasetsResourceWithStreamingResponse: + def __init__(self, datasets: DatasetsResource) -> None: self._datasets = datasets self.list = to_streamed_response_wrapper( @@ -378,8 +378,8 @@ def __init__(self, datasets: Datasets) -> None: ) -class AsyncDatasetsWithStreamingResponse: - def __init__(self, datasets: AsyncDatasets) -> None: +class AsyncDatasetsResourceWithStreamingResponse: + def __init__(self, datasets: AsyncDatasetsResource) -> None: self._datasets = datasets self.list = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/radar/dns/__init__.py b/src/cloudflare/resources/radar/dns/__init__.py index c199e8256b1..c6dbec78760 100644 --- a/src/cloudflare/resources/radar/dns/__init__.py +++ b/src/cloudflare/resources/radar/dns/__init__.py @@ -1,33 +1,33 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from .dns import ( - DNS, - AsyncDNS, - DNSWithRawResponse, - AsyncDNSWithRawResponse, - DNSWithStreamingResponse, - AsyncDNSWithStreamingResponse, + DNSResource, + AsyncDNSResource, + DNSResourceWithRawResponse, + AsyncDNSResourceWithRawResponse, + DNSResourceWithStreamingResponse, + AsyncDNSResourceWithStreamingResponse, ) from .top import ( - Top, - AsyncTop, - TopWithRawResponse, - AsyncTopWithRawResponse, - TopWithStreamingResponse, - AsyncTopWithStreamingResponse, + TopResource, + AsyncTopResource, + TopResourceWithRawResponse, + AsyncTopResourceWithRawResponse, + TopResourceWithStreamingResponse, + AsyncTopResourceWithStreamingResponse, ) __all__ = [ - "Top", - "AsyncTop", - "TopWithRawResponse", - "AsyncTopWithRawResponse", - "TopWithStreamingResponse", - "AsyncTopWithStreamingResponse", - "DNS", - "AsyncDNS", - "DNSWithRawResponse", - "AsyncDNSWithRawResponse", - "DNSWithStreamingResponse", - "AsyncDNSWithStreamingResponse", + "TopResource", + "AsyncTopResource", + "TopResourceWithRawResponse", + "AsyncTopResourceWithRawResponse", + "TopResourceWithStreamingResponse", + "AsyncTopResourceWithStreamingResponse", + "DNSResource", + "AsyncDNSResource", + "DNSResourceWithRawResponse", + "AsyncDNSResourceWithRawResponse", + "DNSResourceWithStreamingResponse", + "AsyncDNSResourceWithStreamingResponse", ] diff --git a/src/cloudflare/resources/radar/dns/dns.py b/src/cloudflare/resources/radar/dns/dns.py index 61befc211e6..539843254a8 100644 --- a/src/cloudflare/resources/radar/dns/dns.py +++ b/src/cloudflare/resources/radar/dns/dns.py @@ -3,78 +3,78 @@ from __future__ import annotations from .top import ( - Top, - AsyncTop, - TopWithRawResponse, - AsyncTopWithRawResponse, - TopWithStreamingResponse, - AsyncTopWithStreamingResponse, + TopResource, + AsyncTopResource, + TopResourceWithRawResponse, + AsyncTopResourceWithRawResponse, + TopResourceWithStreamingResponse, + AsyncTopResourceWithStreamingResponse, ) from ...._compat import cached_property from ...._resource import SyncAPIResource, AsyncAPIResource -__all__ = ["DNS", "AsyncDNS"] +__all__ = ["DNSResource", "AsyncDNSResource"] -class DNS(SyncAPIResource): +class DNSResource(SyncAPIResource): @cached_property - def top(self) -> Top: - return Top(self._client) + def top(self) -> TopResource: + return TopResource(self._client) @cached_property - def with_raw_response(self) -> DNSWithRawResponse: - return DNSWithRawResponse(self) + def with_raw_response(self) -> DNSResourceWithRawResponse: + return DNSResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> DNSWithStreamingResponse: - return DNSWithStreamingResponse(self) + def with_streaming_response(self) -> DNSResourceWithStreamingResponse: + return DNSResourceWithStreamingResponse(self) -class AsyncDNS(AsyncAPIResource): +class AsyncDNSResource(AsyncAPIResource): @cached_property - def top(self) -> AsyncTop: - return AsyncTop(self._client) + def top(self) -> AsyncTopResource: + return AsyncTopResource(self._client) @cached_property - def with_raw_response(self) -> AsyncDNSWithRawResponse: - return AsyncDNSWithRawResponse(self) + def with_raw_response(self) -> AsyncDNSResourceWithRawResponse: + return AsyncDNSResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncDNSWithStreamingResponse: - return AsyncDNSWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncDNSResourceWithStreamingResponse: + return AsyncDNSResourceWithStreamingResponse(self) -class DNSWithRawResponse: - def __init__(self, dns: DNS) -> None: +class DNSResourceWithRawResponse: + def __init__(self, dns: DNSResource) -> None: self._dns = dns @cached_property - def top(self) -> TopWithRawResponse: - return TopWithRawResponse(self._dns.top) + def top(self) -> TopResourceWithRawResponse: + return TopResourceWithRawResponse(self._dns.top) -class AsyncDNSWithRawResponse: - def __init__(self, dns: AsyncDNS) -> None: +class AsyncDNSResourceWithRawResponse: + def __init__(self, dns: AsyncDNSResource) -> None: self._dns = dns @cached_property - def top(self) -> AsyncTopWithRawResponse: - return AsyncTopWithRawResponse(self._dns.top) + def top(self) -> AsyncTopResourceWithRawResponse: + return AsyncTopResourceWithRawResponse(self._dns.top) -class DNSWithStreamingResponse: - def __init__(self, dns: DNS) -> None: +class DNSResourceWithStreamingResponse: + def __init__(self, dns: DNSResource) -> None: self._dns = dns @cached_property - def top(self) -> TopWithStreamingResponse: - return TopWithStreamingResponse(self._dns.top) + def top(self) -> TopResourceWithStreamingResponse: + return TopResourceWithStreamingResponse(self._dns.top) -class AsyncDNSWithStreamingResponse: - def __init__(self, dns: AsyncDNS) -> None: +class AsyncDNSResourceWithStreamingResponse: + def __init__(self, dns: AsyncDNSResource) -> None: self._dns = dns @cached_property - def top(self) -> AsyncTopWithStreamingResponse: - return AsyncTopWithStreamingResponse(self._dns.top) + def top(self) -> AsyncTopResourceWithStreamingResponse: + return AsyncTopResourceWithStreamingResponse(self._dns.top) diff --git a/src/cloudflare/resources/radar/dns/top.py b/src/cloudflare/resources/radar/dns/top.py index 3cf5f34da38..ea775bb8d98 100644 --- a/src/cloudflare/resources/radar/dns/top.py +++ b/src/cloudflare/resources/radar/dns/top.py @@ -29,17 +29,17 @@ from ....types.radar.dns.top_ases_response import TopAsesResponse from ....types.radar.dns.top_locations_response import TopLocationsResponse -__all__ = ["Top", "AsyncTop"] +__all__ = ["TopResource", "AsyncTopResource"] -class Top(SyncAPIResource): +class TopResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> TopWithRawResponse: - return TopWithRawResponse(self) + def with_raw_response(self) -> TopResourceWithRawResponse: + return TopResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> TopWithStreamingResponse: - return TopWithStreamingResponse(self) + def with_streaming_response(self) -> TopResourceWithStreamingResponse: + return TopResourceWithStreamingResponse(self) def ases( self, @@ -255,14 +255,14 @@ def locations( ) -class AsyncTop(AsyncAPIResource): +class AsyncTopResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncTopWithRawResponse: - return AsyncTopWithRawResponse(self) + def with_raw_response(self) -> AsyncTopResourceWithRawResponse: + return AsyncTopResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncTopWithStreamingResponse: - return AsyncTopWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncTopResourceWithStreamingResponse: + return AsyncTopResourceWithStreamingResponse(self) async def ases( self, @@ -478,8 +478,8 @@ async def locations( ) -class TopWithRawResponse: - def __init__(self, top: Top) -> None: +class TopResourceWithRawResponse: + def __init__(self, top: TopResource) -> None: self._top = top self.ases = to_raw_response_wrapper( @@ -490,8 +490,8 @@ def __init__(self, top: Top) -> None: ) -class AsyncTopWithRawResponse: - def __init__(self, top: AsyncTop) -> None: +class AsyncTopResourceWithRawResponse: + def __init__(self, top: AsyncTopResource) -> None: self._top = top self.ases = async_to_raw_response_wrapper( @@ -502,8 +502,8 @@ def __init__(self, top: AsyncTop) -> None: ) -class TopWithStreamingResponse: - def __init__(self, top: Top) -> None: +class TopResourceWithStreamingResponse: + def __init__(self, top: TopResource) -> None: self._top = top self.ases = to_streamed_response_wrapper( @@ -514,8 +514,8 @@ def __init__(self, top: Top) -> None: ) -class AsyncTopWithStreamingResponse: - def __init__(self, top: AsyncTop) -> None: +class AsyncTopResourceWithStreamingResponse: + def __init__(self, top: AsyncTopResource) -> None: self._top = top self.ases = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/radar/email/__init__.py b/src/cloudflare/resources/radar/email/__init__.py index 13f4c04dd4a..0e2f2297512 100644 --- a/src/cloudflare/resources/radar/email/__init__.py +++ b/src/cloudflare/resources/radar/email/__init__.py @@ -1,47 +1,47 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from .email import ( - Email, - AsyncEmail, - EmailWithRawResponse, - AsyncEmailWithRawResponse, - EmailWithStreamingResponse, - AsyncEmailWithStreamingResponse, + EmailResource, + AsyncEmailResource, + EmailResourceWithRawResponse, + AsyncEmailResourceWithRawResponse, + EmailResourceWithStreamingResponse, + AsyncEmailResourceWithStreamingResponse, ) from .routing import ( - Routing, - AsyncRouting, - RoutingWithRawResponse, - AsyncRoutingWithRawResponse, - RoutingWithStreamingResponse, - AsyncRoutingWithStreamingResponse, + RoutingResource, + AsyncRoutingResource, + RoutingResourceWithRawResponse, + AsyncRoutingResourceWithRawResponse, + RoutingResourceWithStreamingResponse, + AsyncRoutingResourceWithStreamingResponse, ) from .security import ( - Security, - AsyncSecurity, - SecurityWithRawResponse, - AsyncSecurityWithRawResponse, - SecurityWithStreamingResponse, - AsyncSecurityWithStreamingResponse, + SecurityResource, + AsyncSecurityResource, + SecurityResourceWithRawResponse, + AsyncSecurityResourceWithRawResponse, + SecurityResourceWithStreamingResponse, + AsyncSecurityResourceWithStreamingResponse, ) __all__ = [ - "Routing", - "AsyncRouting", - "RoutingWithRawResponse", - "AsyncRoutingWithRawResponse", - "RoutingWithStreamingResponse", - "AsyncRoutingWithStreamingResponse", - "Security", - "AsyncSecurity", - "SecurityWithRawResponse", - "AsyncSecurityWithRawResponse", - "SecurityWithStreamingResponse", - "AsyncSecurityWithStreamingResponse", - "Email", - "AsyncEmail", - "EmailWithRawResponse", - "AsyncEmailWithRawResponse", - "EmailWithStreamingResponse", - "AsyncEmailWithStreamingResponse", + "RoutingResource", + "AsyncRoutingResource", + "RoutingResourceWithRawResponse", + "AsyncRoutingResourceWithRawResponse", + "RoutingResourceWithStreamingResponse", + "AsyncRoutingResourceWithStreamingResponse", + "SecurityResource", + "AsyncSecurityResource", + "SecurityResourceWithRawResponse", + "AsyncSecurityResourceWithRawResponse", + "SecurityResourceWithStreamingResponse", + "AsyncSecurityResourceWithStreamingResponse", + "EmailResource", + "AsyncEmailResource", + "EmailResourceWithRawResponse", + "AsyncEmailResourceWithRawResponse", + "EmailResourceWithStreamingResponse", + "AsyncEmailResourceWithStreamingResponse", ] diff --git a/src/cloudflare/resources/radar/email/email.py b/src/cloudflare/resources/radar/email/email.py index 75e4007b2ca..a609b61d3a4 100644 --- a/src/cloudflare/resources/radar/email/email.py +++ b/src/cloudflare/resources/radar/email/email.py @@ -3,112 +3,112 @@ from __future__ import annotations from .routing import ( - Routing, - AsyncRouting, - RoutingWithRawResponse, - AsyncRoutingWithRawResponse, - RoutingWithStreamingResponse, - AsyncRoutingWithStreamingResponse, + RoutingResource, + AsyncRoutingResource, + RoutingResourceWithRawResponse, + AsyncRoutingResourceWithRawResponse, + RoutingResourceWithStreamingResponse, + AsyncRoutingResourceWithStreamingResponse, ) from .security import ( - Security, - AsyncSecurity, - SecurityWithRawResponse, - AsyncSecurityWithRawResponse, - SecurityWithStreamingResponse, - AsyncSecurityWithStreamingResponse, + SecurityResource, + AsyncSecurityResource, + SecurityResourceWithRawResponse, + AsyncSecurityResourceWithRawResponse, + SecurityResourceWithStreamingResponse, + AsyncSecurityResourceWithStreamingResponse, ) from ...._compat import cached_property from ...._resource import SyncAPIResource, AsyncAPIResource -from .routing.routing import Routing, AsyncRouting -from .security.security import Security, AsyncSecurity +from .routing.routing import RoutingResource, AsyncRoutingResource +from .security.security import SecurityResource, AsyncSecurityResource -__all__ = ["Email", "AsyncEmail"] +__all__ = ["EmailResource", "AsyncEmailResource"] -class Email(SyncAPIResource): +class EmailResource(SyncAPIResource): @cached_property - def routing(self) -> Routing: - return Routing(self._client) + def routing(self) -> RoutingResource: + return RoutingResource(self._client) @cached_property - def security(self) -> Security: - return Security(self._client) + def security(self) -> SecurityResource: + return SecurityResource(self._client) @cached_property - def with_raw_response(self) -> EmailWithRawResponse: - return EmailWithRawResponse(self) + def with_raw_response(self) -> EmailResourceWithRawResponse: + return EmailResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> EmailWithStreamingResponse: - return EmailWithStreamingResponse(self) + def with_streaming_response(self) -> EmailResourceWithStreamingResponse: + return EmailResourceWithStreamingResponse(self) -class AsyncEmail(AsyncAPIResource): +class AsyncEmailResource(AsyncAPIResource): @cached_property - def routing(self) -> AsyncRouting: - return AsyncRouting(self._client) + def routing(self) -> AsyncRoutingResource: + return AsyncRoutingResource(self._client) @cached_property - def security(self) -> AsyncSecurity: - return AsyncSecurity(self._client) + def security(self) -> AsyncSecurityResource: + return AsyncSecurityResource(self._client) @cached_property - def with_raw_response(self) -> AsyncEmailWithRawResponse: - return AsyncEmailWithRawResponse(self) + def with_raw_response(self) -> AsyncEmailResourceWithRawResponse: + return AsyncEmailResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncEmailWithStreamingResponse: - return AsyncEmailWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncEmailResourceWithStreamingResponse: + return AsyncEmailResourceWithStreamingResponse(self) -class EmailWithRawResponse: - def __init__(self, email: Email) -> None: +class EmailResourceWithRawResponse: + def __init__(self, email: EmailResource) -> None: self._email = email @cached_property - def routing(self) -> RoutingWithRawResponse: - return RoutingWithRawResponse(self._email.routing) + def routing(self) -> RoutingResourceWithRawResponse: + return RoutingResourceWithRawResponse(self._email.routing) @cached_property - def security(self) -> SecurityWithRawResponse: - return SecurityWithRawResponse(self._email.security) + def security(self) -> SecurityResourceWithRawResponse: + return SecurityResourceWithRawResponse(self._email.security) -class AsyncEmailWithRawResponse: - def __init__(self, email: AsyncEmail) -> None: +class AsyncEmailResourceWithRawResponse: + def __init__(self, email: AsyncEmailResource) -> None: self._email = email @cached_property - def routing(self) -> AsyncRoutingWithRawResponse: - return AsyncRoutingWithRawResponse(self._email.routing) + def routing(self) -> AsyncRoutingResourceWithRawResponse: + return AsyncRoutingResourceWithRawResponse(self._email.routing) @cached_property - def security(self) -> AsyncSecurityWithRawResponse: - return AsyncSecurityWithRawResponse(self._email.security) + def security(self) -> AsyncSecurityResourceWithRawResponse: + return AsyncSecurityResourceWithRawResponse(self._email.security) -class EmailWithStreamingResponse: - def __init__(self, email: Email) -> None: +class EmailResourceWithStreamingResponse: + def __init__(self, email: EmailResource) -> None: self._email = email @cached_property - def routing(self) -> RoutingWithStreamingResponse: - return RoutingWithStreamingResponse(self._email.routing) + def routing(self) -> RoutingResourceWithStreamingResponse: + return RoutingResourceWithStreamingResponse(self._email.routing) @cached_property - def security(self) -> SecurityWithStreamingResponse: - return SecurityWithStreamingResponse(self._email.security) + def security(self) -> SecurityResourceWithStreamingResponse: + return SecurityResourceWithStreamingResponse(self._email.security) -class AsyncEmailWithStreamingResponse: - def __init__(self, email: AsyncEmail) -> None: +class AsyncEmailResourceWithStreamingResponse: + def __init__(self, email: AsyncEmailResource) -> None: self._email = email @cached_property - def routing(self) -> AsyncRoutingWithStreamingResponse: - return AsyncRoutingWithStreamingResponse(self._email.routing) + def routing(self) -> AsyncRoutingResourceWithStreamingResponse: + return AsyncRoutingResourceWithStreamingResponse(self._email.routing) @cached_property - def security(self) -> AsyncSecurityWithStreamingResponse: - return AsyncSecurityWithStreamingResponse(self._email.security) + def security(self) -> AsyncSecurityResourceWithStreamingResponse: + return AsyncSecurityResourceWithStreamingResponse(self._email.security) diff --git a/src/cloudflare/resources/radar/email/routing/__init__.py b/src/cloudflare/resources/radar/email/routing/__init__.py index 6cdce4c3c3a..ab180ee6030 100644 --- a/src/cloudflare/resources/radar/email/routing/__init__.py +++ b/src/cloudflare/resources/radar/email/routing/__init__.py @@ -1,47 +1,47 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from .routing import ( - Routing, - AsyncRouting, - RoutingWithRawResponse, - AsyncRoutingWithRawResponse, - RoutingWithStreamingResponse, - AsyncRoutingWithStreamingResponse, + RoutingResource, + AsyncRoutingResource, + RoutingResourceWithRawResponse, + AsyncRoutingResourceWithRawResponse, + RoutingResourceWithStreamingResponse, + AsyncRoutingResourceWithStreamingResponse, ) from .summary import ( - Summary, - AsyncSummary, - SummaryWithRawResponse, - AsyncSummaryWithRawResponse, - SummaryWithStreamingResponse, - AsyncSummaryWithStreamingResponse, + SummaryResource, + AsyncSummaryResource, + SummaryResourceWithRawResponse, + AsyncSummaryResourceWithRawResponse, + SummaryResourceWithStreamingResponse, + AsyncSummaryResourceWithStreamingResponse, ) from .timeseries_groups import ( - TimeseriesGroups, - AsyncTimeseriesGroups, - TimeseriesGroupsWithRawResponse, - AsyncTimeseriesGroupsWithRawResponse, - TimeseriesGroupsWithStreamingResponse, - AsyncTimeseriesGroupsWithStreamingResponse, + TimeseriesGroupsResource, + AsyncTimeseriesGroupsResource, + TimeseriesGroupsResourceWithRawResponse, + AsyncTimeseriesGroupsResourceWithRawResponse, + TimeseriesGroupsResourceWithStreamingResponse, + AsyncTimeseriesGroupsResourceWithStreamingResponse, ) __all__ = [ - "Summary", - "AsyncSummary", - "SummaryWithRawResponse", - "AsyncSummaryWithRawResponse", - "SummaryWithStreamingResponse", - "AsyncSummaryWithStreamingResponse", - "TimeseriesGroups", - "AsyncTimeseriesGroups", - "TimeseriesGroupsWithRawResponse", - "AsyncTimeseriesGroupsWithRawResponse", - "TimeseriesGroupsWithStreamingResponse", - "AsyncTimeseriesGroupsWithStreamingResponse", - "Routing", - "AsyncRouting", - "RoutingWithRawResponse", - "AsyncRoutingWithRawResponse", - "RoutingWithStreamingResponse", - "AsyncRoutingWithStreamingResponse", + "SummaryResource", + "AsyncSummaryResource", + "SummaryResourceWithRawResponse", + "AsyncSummaryResourceWithRawResponse", + "SummaryResourceWithStreamingResponse", + "AsyncSummaryResourceWithStreamingResponse", + "TimeseriesGroupsResource", + "AsyncTimeseriesGroupsResource", + "TimeseriesGroupsResourceWithRawResponse", + "AsyncTimeseriesGroupsResourceWithRawResponse", + "TimeseriesGroupsResourceWithStreamingResponse", + "AsyncTimeseriesGroupsResourceWithStreamingResponse", + "RoutingResource", + "AsyncRoutingResource", + "RoutingResourceWithRawResponse", + "AsyncRoutingResourceWithRawResponse", + "RoutingResourceWithStreamingResponse", + "AsyncRoutingResourceWithStreamingResponse", ] diff --git a/src/cloudflare/resources/radar/email/routing/routing.py b/src/cloudflare/resources/radar/email/routing/routing.py index a922a7cb34a..8904ac5ab58 100644 --- a/src/cloudflare/resources/radar/email/routing/routing.py +++ b/src/cloudflare/resources/radar/email/routing/routing.py @@ -3,110 +3,110 @@ from __future__ import annotations from .summary import ( - Summary, - AsyncSummary, - SummaryWithRawResponse, - AsyncSummaryWithRawResponse, - SummaryWithStreamingResponse, - AsyncSummaryWithStreamingResponse, + SummaryResource, + AsyncSummaryResource, + SummaryResourceWithRawResponse, + AsyncSummaryResourceWithRawResponse, + SummaryResourceWithStreamingResponse, + AsyncSummaryResourceWithStreamingResponse, ) from ....._compat import cached_property from ....._resource import SyncAPIResource, AsyncAPIResource from .timeseries_groups import ( - TimeseriesGroups, - AsyncTimeseriesGroups, - TimeseriesGroupsWithRawResponse, - AsyncTimeseriesGroupsWithRawResponse, - TimeseriesGroupsWithStreamingResponse, - AsyncTimeseriesGroupsWithStreamingResponse, + TimeseriesGroupsResource, + AsyncTimeseriesGroupsResource, + TimeseriesGroupsResourceWithRawResponse, + AsyncTimeseriesGroupsResourceWithRawResponse, + TimeseriesGroupsResourceWithStreamingResponse, + AsyncTimeseriesGroupsResourceWithStreamingResponse, ) -__all__ = ["Routing", "AsyncRouting"] +__all__ = ["RoutingResource", "AsyncRoutingResource"] -class Routing(SyncAPIResource): +class RoutingResource(SyncAPIResource): @cached_property - def summary(self) -> Summary: - return Summary(self._client) + def summary(self) -> SummaryResource: + return SummaryResource(self._client) @cached_property - def timeseries_groups(self) -> TimeseriesGroups: - return TimeseriesGroups(self._client) + def timeseries_groups(self) -> TimeseriesGroupsResource: + return TimeseriesGroupsResource(self._client) @cached_property - def with_raw_response(self) -> RoutingWithRawResponse: - return RoutingWithRawResponse(self) + def with_raw_response(self) -> RoutingResourceWithRawResponse: + return RoutingResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> RoutingWithStreamingResponse: - return RoutingWithStreamingResponse(self) + def with_streaming_response(self) -> RoutingResourceWithStreamingResponse: + return RoutingResourceWithStreamingResponse(self) -class AsyncRouting(AsyncAPIResource): +class AsyncRoutingResource(AsyncAPIResource): @cached_property - def summary(self) -> AsyncSummary: - return AsyncSummary(self._client) + def summary(self) -> AsyncSummaryResource: + return AsyncSummaryResource(self._client) @cached_property - def timeseries_groups(self) -> AsyncTimeseriesGroups: - return AsyncTimeseriesGroups(self._client) + def timeseries_groups(self) -> AsyncTimeseriesGroupsResource: + return AsyncTimeseriesGroupsResource(self._client) @cached_property - def with_raw_response(self) -> AsyncRoutingWithRawResponse: - return AsyncRoutingWithRawResponse(self) + def with_raw_response(self) -> AsyncRoutingResourceWithRawResponse: + return AsyncRoutingResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncRoutingWithStreamingResponse: - return AsyncRoutingWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncRoutingResourceWithStreamingResponse: + return AsyncRoutingResourceWithStreamingResponse(self) -class RoutingWithRawResponse: - def __init__(self, routing: Routing) -> None: +class RoutingResourceWithRawResponse: + def __init__(self, routing: RoutingResource) -> None: self._routing = routing @cached_property - def summary(self) -> SummaryWithRawResponse: - return SummaryWithRawResponse(self._routing.summary) + def summary(self) -> SummaryResourceWithRawResponse: + return SummaryResourceWithRawResponse(self._routing.summary) @cached_property - def timeseries_groups(self) -> TimeseriesGroupsWithRawResponse: - return TimeseriesGroupsWithRawResponse(self._routing.timeseries_groups) + def timeseries_groups(self) -> TimeseriesGroupsResourceWithRawResponse: + return TimeseriesGroupsResourceWithRawResponse(self._routing.timeseries_groups) -class AsyncRoutingWithRawResponse: - def __init__(self, routing: AsyncRouting) -> None: +class AsyncRoutingResourceWithRawResponse: + def __init__(self, routing: AsyncRoutingResource) -> None: self._routing = routing @cached_property - def summary(self) -> AsyncSummaryWithRawResponse: - return AsyncSummaryWithRawResponse(self._routing.summary) + def summary(self) -> AsyncSummaryResourceWithRawResponse: + return AsyncSummaryResourceWithRawResponse(self._routing.summary) @cached_property - def timeseries_groups(self) -> AsyncTimeseriesGroupsWithRawResponse: - return AsyncTimeseriesGroupsWithRawResponse(self._routing.timeseries_groups) + def timeseries_groups(self) -> AsyncTimeseriesGroupsResourceWithRawResponse: + return AsyncTimeseriesGroupsResourceWithRawResponse(self._routing.timeseries_groups) -class RoutingWithStreamingResponse: - def __init__(self, routing: Routing) -> None: +class RoutingResourceWithStreamingResponse: + def __init__(self, routing: RoutingResource) -> None: self._routing = routing @cached_property - def summary(self) -> SummaryWithStreamingResponse: - return SummaryWithStreamingResponse(self._routing.summary) + def summary(self) -> SummaryResourceWithStreamingResponse: + return SummaryResourceWithStreamingResponse(self._routing.summary) @cached_property - def timeseries_groups(self) -> TimeseriesGroupsWithStreamingResponse: - return TimeseriesGroupsWithStreamingResponse(self._routing.timeseries_groups) + def timeseries_groups(self) -> TimeseriesGroupsResourceWithStreamingResponse: + return TimeseriesGroupsResourceWithStreamingResponse(self._routing.timeseries_groups) -class AsyncRoutingWithStreamingResponse: - def __init__(self, routing: AsyncRouting) -> None: +class AsyncRoutingResourceWithStreamingResponse: + def __init__(self, routing: AsyncRoutingResource) -> None: self._routing = routing @cached_property - def summary(self) -> AsyncSummaryWithStreamingResponse: - return AsyncSummaryWithStreamingResponse(self._routing.summary) + def summary(self) -> AsyncSummaryResourceWithStreamingResponse: + return AsyncSummaryResourceWithStreamingResponse(self._routing.summary) @cached_property - def timeseries_groups(self) -> AsyncTimeseriesGroupsWithStreamingResponse: - return AsyncTimeseriesGroupsWithStreamingResponse(self._routing.timeseries_groups) + def timeseries_groups(self) -> AsyncTimeseriesGroupsResourceWithStreamingResponse: + return AsyncTimeseriesGroupsResourceWithStreamingResponse(self._routing.timeseries_groups) diff --git a/src/cloudflare/resources/radar/email/routing/summary.py b/src/cloudflare/resources/radar/email/routing/summary.py index 2b6f4459641..574def195a1 100644 --- a/src/cloudflare/resources/radar/email/routing/summary.py +++ b/src/cloudflare/resources/radar/email/routing/summary.py @@ -40,17 +40,17 @@ from .....types.radar.email.routing.summary_encrypted_response import SummaryEncryptedResponse from .....types.radar.email.routing.summary_ip_version_response import SummaryIPVersionResponse -__all__ = ["Summary", "AsyncSummary"] +__all__ = ["SummaryResource", "AsyncSummaryResource"] -class Summary(SyncAPIResource): +class SummaryResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> SummaryWithRawResponse: - return SummaryWithRawResponse(self) + def with_raw_response(self) -> SummaryResourceWithRawResponse: + return SummaryResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> SummaryWithStreamingResponse: - return SummaryWithStreamingResponse(self) + def with_streaming_response(self) -> SummaryResourceWithStreamingResponse: + return SummaryResourceWithStreamingResponse(self) def arc( self, @@ -653,14 +653,14 @@ def spf( ) -class AsyncSummary(AsyncAPIResource): +class AsyncSummaryResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncSummaryWithRawResponse: - return AsyncSummaryWithRawResponse(self) + def with_raw_response(self) -> AsyncSummaryResourceWithRawResponse: + return AsyncSummaryResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncSummaryWithStreamingResponse: - return AsyncSummaryWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncSummaryResourceWithStreamingResponse: + return AsyncSummaryResourceWithStreamingResponse(self) async def arc( self, @@ -1263,8 +1263,8 @@ async def spf( ) -class SummaryWithRawResponse: - def __init__(self, summary: Summary) -> None: +class SummaryResourceWithRawResponse: + def __init__(self, summary: SummaryResource) -> None: self._summary = summary self.arc = to_raw_response_wrapper( @@ -1287,8 +1287,8 @@ def __init__(self, summary: Summary) -> None: ) -class AsyncSummaryWithRawResponse: - def __init__(self, summary: AsyncSummary) -> None: +class AsyncSummaryResourceWithRawResponse: + def __init__(self, summary: AsyncSummaryResource) -> None: self._summary = summary self.arc = async_to_raw_response_wrapper( @@ -1311,8 +1311,8 @@ def __init__(self, summary: AsyncSummary) -> None: ) -class SummaryWithStreamingResponse: - def __init__(self, summary: Summary) -> None: +class SummaryResourceWithStreamingResponse: + def __init__(self, summary: SummaryResource) -> None: self._summary = summary self.arc = to_streamed_response_wrapper( @@ -1335,8 +1335,8 @@ def __init__(self, summary: Summary) -> None: ) -class AsyncSummaryWithStreamingResponse: - def __init__(self, summary: AsyncSummary) -> None: +class AsyncSummaryResourceWithStreamingResponse: + def __init__(self, summary: AsyncSummaryResource) -> None: self._summary = summary self.arc = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/radar/email/routing/timeseries_groups.py b/src/cloudflare/resources/radar/email/routing/timeseries_groups.py index e86bd7944d2..bffe7e21af1 100644 --- a/src/cloudflare/resources/radar/email/routing/timeseries_groups.py +++ b/src/cloudflare/resources/radar/email/routing/timeseries_groups.py @@ -40,17 +40,17 @@ from .....types.radar.email.routing.timeseries_group_encrypted_response import TimeseriesGroupEncryptedResponse from .....types.radar.email.routing.timeseries_group_ip_version_response import TimeseriesGroupIPVersionResponse -__all__ = ["TimeseriesGroups", "AsyncTimeseriesGroups"] +__all__ = ["TimeseriesGroupsResource", "AsyncTimeseriesGroupsResource"] -class TimeseriesGroups(SyncAPIResource): +class TimeseriesGroupsResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> TimeseriesGroupsWithRawResponse: - return TimeseriesGroupsWithRawResponse(self) + def with_raw_response(self) -> TimeseriesGroupsResourceWithRawResponse: + return TimeseriesGroupsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> TimeseriesGroupsWithStreamingResponse: - return TimeseriesGroupsWithStreamingResponse(self) + def with_streaming_response(self) -> TimeseriesGroupsResourceWithStreamingResponse: + return TimeseriesGroupsResourceWithStreamingResponse(self) def arc( self, @@ -689,14 +689,14 @@ def spf( ) -class AsyncTimeseriesGroups(AsyncAPIResource): +class AsyncTimeseriesGroupsResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncTimeseriesGroupsWithRawResponse: - return AsyncTimeseriesGroupsWithRawResponse(self) + def with_raw_response(self) -> AsyncTimeseriesGroupsResourceWithRawResponse: + return AsyncTimeseriesGroupsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncTimeseriesGroupsWithStreamingResponse: - return AsyncTimeseriesGroupsWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncTimeseriesGroupsResourceWithStreamingResponse: + return AsyncTimeseriesGroupsResourceWithStreamingResponse(self) async def arc( self, @@ -1335,8 +1335,8 @@ async def spf( ) -class TimeseriesGroupsWithRawResponse: - def __init__(self, timeseries_groups: TimeseriesGroups) -> None: +class TimeseriesGroupsResourceWithRawResponse: + def __init__(self, timeseries_groups: TimeseriesGroupsResource) -> None: self._timeseries_groups = timeseries_groups self.arc = to_raw_response_wrapper( @@ -1359,8 +1359,8 @@ def __init__(self, timeseries_groups: TimeseriesGroups) -> None: ) -class AsyncTimeseriesGroupsWithRawResponse: - def __init__(self, timeseries_groups: AsyncTimeseriesGroups) -> None: +class AsyncTimeseriesGroupsResourceWithRawResponse: + def __init__(self, timeseries_groups: AsyncTimeseriesGroupsResource) -> None: self._timeseries_groups = timeseries_groups self.arc = async_to_raw_response_wrapper( @@ -1383,8 +1383,8 @@ def __init__(self, timeseries_groups: AsyncTimeseriesGroups) -> None: ) -class TimeseriesGroupsWithStreamingResponse: - def __init__(self, timeseries_groups: TimeseriesGroups) -> None: +class TimeseriesGroupsResourceWithStreamingResponse: + def __init__(self, timeseries_groups: TimeseriesGroupsResource) -> None: self._timeseries_groups = timeseries_groups self.arc = to_streamed_response_wrapper( @@ -1407,8 +1407,8 @@ def __init__(self, timeseries_groups: TimeseriesGroups) -> None: ) -class AsyncTimeseriesGroupsWithStreamingResponse: - def __init__(self, timeseries_groups: AsyncTimeseriesGroups) -> None: +class AsyncTimeseriesGroupsResourceWithStreamingResponse: + def __init__(self, timeseries_groups: AsyncTimeseriesGroupsResource) -> None: self._timeseries_groups = timeseries_groups self.arc = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/radar/email/security/__init__.py b/src/cloudflare/resources/radar/email/security/__init__.py index 43af88f3f92..df039c900c7 100644 --- a/src/cloudflare/resources/radar/email/security/__init__.py +++ b/src/cloudflare/resources/radar/email/security/__init__.py @@ -1,61 +1,61 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from .top import ( - Top, - AsyncTop, - TopWithRawResponse, - AsyncTopWithRawResponse, - TopWithStreamingResponse, - AsyncTopWithStreamingResponse, + TopResource, + AsyncTopResource, + TopResourceWithRawResponse, + AsyncTopResourceWithRawResponse, + TopResourceWithStreamingResponse, + AsyncTopResourceWithStreamingResponse, ) from .summary import ( - Summary, - AsyncSummary, - SummaryWithRawResponse, - AsyncSummaryWithRawResponse, - SummaryWithStreamingResponse, - AsyncSummaryWithStreamingResponse, + SummaryResource, + AsyncSummaryResource, + SummaryResourceWithRawResponse, + AsyncSummaryResourceWithRawResponse, + SummaryResourceWithStreamingResponse, + AsyncSummaryResourceWithStreamingResponse, ) from .security import ( - Security, - AsyncSecurity, - SecurityWithRawResponse, - AsyncSecurityWithRawResponse, - SecurityWithStreamingResponse, - AsyncSecurityWithStreamingResponse, + SecurityResource, + AsyncSecurityResource, + SecurityResourceWithRawResponse, + AsyncSecurityResourceWithRawResponse, + SecurityResourceWithStreamingResponse, + AsyncSecurityResourceWithStreamingResponse, ) from .timeseries_groups import ( - TimeseriesGroups, - AsyncTimeseriesGroups, - TimeseriesGroupsWithRawResponse, - AsyncTimeseriesGroupsWithRawResponse, - TimeseriesGroupsWithStreamingResponse, - AsyncTimeseriesGroupsWithStreamingResponse, + TimeseriesGroupsResource, + AsyncTimeseriesGroupsResource, + TimeseriesGroupsResourceWithRawResponse, + AsyncTimeseriesGroupsResourceWithRawResponse, + TimeseriesGroupsResourceWithStreamingResponse, + AsyncTimeseriesGroupsResourceWithStreamingResponse, ) __all__ = [ - "Top", - "AsyncTop", - "TopWithRawResponse", - "AsyncTopWithRawResponse", - "TopWithStreamingResponse", - "AsyncTopWithStreamingResponse", - "Summary", - "AsyncSummary", - "SummaryWithRawResponse", - "AsyncSummaryWithRawResponse", - "SummaryWithStreamingResponse", - "AsyncSummaryWithStreamingResponse", - "TimeseriesGroups", - "AsyncTimeseriesGroups", - "TimeseriesGroupsWithRawResponse", - "AsyncTimeseriesGroupsWithRawResponse", - "TimeseriesGroupsWithStreamingResponse", - "AsyncTimeseriesGroupsWithStreamingResponse", - "Security", - "AsyncSecurity", - "SecurityWithRawResponse", - "AsyncSecurityWithRawResponse", - "SecurityWithStreamingResponse", - "AsyncSecurityWithStreamingResponse", + "TopResource", + "AsyncTopResource", + "TopResourceWithRawResponse", + "AsyncTopResourceWithRawResponse", + "TopResourceWithStreamingResponse", + "AsyncTopResourceWithStreamingResponse", + "SummaryResource", + "AsyncSummaryResource", + "SummaryResourceWithRawResponse", + "AsyncSummaryResourceWithRawResponse", + "SummaryResourceWithStreamingResponse", + "AsyncSummaryResourceWithStreamingResponse", + "TimeseriesGroupsResource", + "AsyncTimeseriesGroupsResource", + "TimeseriesGroupsResourceWithRawResponse", + "AsyncTimeseriesGroupsResourceWithRawResponse", + "TimeseriesGroupsResourceWithStreamingResponse", + "AsyncTimeseriesGroupsResourceWithStreamingResponse", + "SecurityResource", + "AsyncSecurityResource", + "SecurityResourceWithRawResponse", + "AsyncSecurityResourceWithRawResponse", + "SecurityResourceWithStreamingResponse", + "AsyncSecurityResourceWithStreamingResponse", ] diff --git a/src/cloudflare/resources/radar/email/security/security.py b/src/cloudflare/resources/radar/email/security/security.py index 7a399b1c841..a738a646df4 100644 --- a/src/cloudflare/resources/radar/email/security/security.py +++ b/src/cloudflare/resources/radar/email/security/security.py @@ -3,143 +3,143 @@ from __future__ import annotations from .top import ( - Top, - AsyncTop, - TopWithRawResponse, - AsyncTopWithRawResponse, - TopWithStreamingResponse, - AsyncTopWithStreamingResponse, + TopResource, + AsyncTopResource, + TopResourceWithRawResponse, + AsyncTopResourceWithRawResponse, + TopResourceWithStreamingResponse, + AsyncTopResourceWithStreamingResponse, ) from .summary import ( - Summary, - AsyncSummary, - SummaryWithRawResponse, - AsyncSummaryWithRawResponse, - SummaryWithStreamingResponse, - AsyncSummaryWithStreamingResponse, + SummaryResource, + AsyncSummaryResource, + SummaryResourceWithRawResponse, + AsyncSummaryResourceWithRawResponse, + SummaryResourceWithStreamingResponse, + AsyncSummaryResourceWithStreamingResponse, ) -from .top.top import Top, AsyncTop +from .top.top import TopResource, AsyncTopResource from ....._compat import cached_property from ....._resource import SyncAPIResource, AsyncAPIResource from .timeseries_groups import ( - TimeseriesGroups, - AsyncTimeseriesGroups, - TimeseriesGroupsWithRawResponse, - AsyncTimeseriesGroupsWithRawResponse, - TimeseriesGroupsWithStreamingResponse, - AsyncTimeseriesGroupsWithStreamingResponse, + TimeseriesGroupsResource, + AsyncTimeseriesGroupsResource, + TimeseriesGroupsResourceWithRawResponse, + AsyncTimeseriesGroupsResourceWithRawResponse, + TimeseriesGroupsResourceWithStreamingResponse, + AsyncTimeseriesGroupsResourceWithStreamingResponse, ) -__all__ = ["Security", "AsyncSecurity"] +__all__ = ["SecurityResource", "AsyncSecurityResource"] -class Security(SyncAPIResource): +class SecurityResource(SyncAPIResource): @cached_property - def top(self) -> Top: - return Top(self._client) + def top(self) -> TopResource: + return TopResource(self._client) @cached_property - def summary(self) -> Summary: - return Summary(self._client) + def summary(self) -> SummaryResource: + return SummaryResource(self._client) @cached_property - def timeseries_groups(self) -> TimeseriesGroups: - return TimeseriesGroups(self._client) + def timeseries_groups(self) -> TimeseriesGroupsResource: + return TimeseriesGroupsResource(self._client) @cached_property - def with_raw_response(self) -> SecurityWithRawResponse: - return SecurityWithRawResponse(self) + def with_raw_response(self) -> SecurityResourceWithRawResponse: + return SecurityResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> SecurityWithStreamingResponse: - return SecurityWithStreamingResponse(self) + def with_streaming_response(self) -> SecurityResourceWithStreamingResponse: + return SecurityResourceWithStreamingResponse(self) -class AsyncSecurity(AsyncAPIResource): +class AsyncSecurityResource(AsyncAPIResource): @cached_property - def top(self) -> AsyncTop: - return AsyncTop(self._client) + def top(self) -> AsyncTopResource: + return AsyncTopResource(self._client) @cached_property - def summary(self) -> AsyncSummary: - return AsyncSummary(self._client) + def summary(self) -> AsyncSummaryResource: + return AsyncSummaryResource(self._client) @cached_property - def timeseries_groups(self) -> AsyncTimeseriesGroups: - return AsyncTimeseriesGroups(self._client) + def timeseries_groups(self) -> AsyncTimeseriesGroupsResource: + return AsyncTimeseriesGroupsResource(self._client) @cached_property - def with_raw_response(self) -> AsyncSecurityWithRawResponse: - return AsyncSecurityWithRawResponse(self) + def with_raw_response(self) -> AsyncSecurityResourceWithRawResponse: + return AsyncSecurityResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncSecurityWithStreamingResponse: - return AsyncSecurityWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncSecurityResourceWithStreamingResponse: + return AsyncSecurityResourceWithStreamingResponse(self) -class SecurityWithRawResponse: - def __init__(self, security: Security) -> None: +class SecurityResourceWithRawResponse: + def __init__(self, security: SecurityResource) -> None: self._security = security @cached_property - def top(self) -> TopWithRawResponse: - return TopWithRawResponse(self._security.top) + def top(self) -> TopResourceWithRawResponse: + return TopResourceWithRawResponse(self._security.top) @cached_property - def summary(self) -> SummaryWithRawResponse: - return SummaryWithRawResponse(self._security.summary) + def summary(self) -> SummaryResourceWithRawResponse: + return SummaryResourceWithRawResponse(self._security.summary) @cached_property - def timeseries_groups(self) -> TimeseriesGroupsWithRawResponse: - return TimeseriesGroupsWithRawResponse(self._security.timeseries_groups) + def timeseries_groups(self) -> TimeseriesGroupsResourceWithRawResponse: + return TimeseriesGroupsResourceWithRawResponse(self._security.timeseries_groups) -class AsyncSecurityWithRawResponse: - def __init__(self, security: AsyncSecurity) -> None: +class AsyncSecurityResourceWithRawResponse: + def __init__(self, security: AsyncSecurityResource) -> None: self._security = security @cached_property - def top(self) -> AsyncTopWithRawResponse: - return AsyncTopWithRawResponse(self._security.top) + def top(self) -> AsyncTopResourceWithRawResponse: + return AsyncTopResourceWithRawResponse(self._security.top) @cached_property - def summary(self) -> AsyncSummaryWithRawResponse: - return AsyncSummaryWithRawResponse(self._security.summary) + def summary(self) -> AsyncSummaryResourceWithRawResponse: + return AsyncSummaryResourceWithRawResponse(self._security.summary) @cached_property - def timeseries_groups(self) -> AsyncTimeseriesGroupsWithRawResponse: - return AsyncTimeseriesGroupsWithRawResponse(self._security.timeseries_groups) + def timeseries_groups(self) -> AsyncTimeseriesGroupsResourceWithRawResponse: + return AsyncTimeseriesGroupsResourceWithRawResponse(self._security.timeseries_groups) -class SecurityWithStreamingResponse: - def __init__(self, security: Security) -> None: +class SecurityResourceWithStreamingResponse: + def __init__(self, security: SecurityResource) -> None: self._security = security @cached_property - def top(self) -> TopWithStreamingResponse: - return TopWithStreamingResponse(self._security.top) + def top(self) -> TopResourceWithStreamingResponse: + return TopResourceWithStreamingResponse(self._security.top) @cached_property - def summary(self) -> SummaryWithStreamingResponse: - return SummaryWithStreamingResponse(self._security.summary) + def summary(self) -> SummaryResourceWithStreamingResponse: + return SummaryResourceWithStreamingResponse(self._security.summary) @cached_property - def timeseries_groups(self) -> TimeseriesGroupsWithStreamingResponse: - return TimeseriesGroupsWithStreamingResponse(self._security.timeseries_groups) + def timeseries_groups(self) -> TimeseriesGroupsResourceWithStreamingResponse: + return TimeseriesGroupsResourceWithStreamingResponse(self._security.timeseries_groups) -class AsyncSecurityWithStreamingResponse: - def __init__(self, security: AsyncSecurity) -> None: +class AsyncSecurityResourceWithStreamingResponse: + def __init__(self, security: AsyncSecurityResource) -> None: self._security = security @cached_property - def top(self) -> AsyncTopWithStreamingResponse: - return AsyncTopWithStreamingResponse(self._security.top) + def top(self) -> AsyncTopResourceWithStreamingResponse: + return AsyncTopResourceWithStreamingResponse(self._security.top) @cached_property - def summary(self) -> AsyncSummaryWithStreamingResponse: - return AsyncSummaryWithStreamingResponse(self._security.summary) + def summary(self) -> AsyncSummaryResourceWithStreamingResponse: + return AsyncSummaryResourceWithStreamingResponse(self._security.summary) @cached_property - def timeseries_groups(self) -> AsyncTimeseriesGroupsWithStreamingResponse: - return AsyncTimeseriesGroupsWithStreamingResponse(self._security.timeseries_groups) + def timeseries_groups(self) -> AsyncTimeseriesGroupsResourceWithStreamingResponse: + return AsyncTimeseriesGroupsResourceWithStreamingResponse(self._security.timeseries_groups) diff --git a/src/cloudflare/resources/radar/email/security/summary.py b/src/cloudflare/resources/radar/email/security/summary.py index a9aa1c1424f..65f3b3d8dd1 100644 --- a/src/cloudflare/resources/radar/email/security/summary.py +++ b/src/cloudflare/resources/radar/email/security/summary.py @@ -46,17 +46,17 @@ from .....types.radar.email.security.summary_tls_version_response import SummaryTLSVersionResponse from .....types.radar.email.security.summary_threat_category_response import SummaryThreatCategoryResponse -__all__ = ["Summary", "AsyncSummary"] +__all__ = ["SummaryResource", "AsyncSummaryResource"] -class Summary(SyncAPIResource): +class SummaryResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> SummaryWithRawResponse: - return SummaryWithRawResponse(self) + def with_raw_response(self) -> SummaryResourceWithRawResponse: + return SummaryResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> SummaryWithStreamingResponse: - return SummaryWithStreamingResponse(self) + def with_streaming_response(self) -> SummaryResourceWithStreamingResponse: + return SummaryResourceWithStreamingResponse(self) def arc( self, @@ -939,14 +939,14 @@ def tls_version( ) -class AsyncSummary(AsyncAPIResource): +class AsyncSummaryResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncSummaryWithRawResponse: - return AsyncSummaryWithRawResponse(self) + def with_raw_response(self) -> AsyncSummaryResourceWithRawResponse: + return AsyncSummaryResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncSummaryWithStreamingResponse: - return AsyncSummaryWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncSummaryResourceWithStreamingResponse: + return AsyncSummaryResourceWithStreamingResponse(self) async def arc( self, @@ -1829,8 +1829,8 @@ async def tls_version( ) -class SummaryWithRawResponse: - def __init__(self, summary: Summary) -> None: +class SummaryResourceWithRawResponse: + def __init__(self, summary: SummaryResource) -> None: self._summary = summary self.arc = to_raw_response_wrapper( @@ -1862,8 +1862,8 @@ def __init__(self, summary: Summary) -> None: ) -class AsyncSummaryWithRawResponse: - def __init__(self, summary: AsyncSummary) -> None: +class AsyncSummaryResourceWithRawResponse: + def __init__(self, summary: AsyncSummaryResource) -> None: self._summary = summary self.arc = async_to_raw_response_wrapper( @@ -1895,8 +1895,8 @@ def __init__(self, summary: AsyncSummary) -> None: ) -class SummaryWithStreamingResponse: - def __init__(self, summary: Summary) -> None: +class SummaryResourceWithStreamingResponse: + def __init__(self, summary: SummaryResource) -> None: self._summary = summary self.arc = to_streamed_response_wrapper( @@ -1928,8 +1928,8 @@ def __init__(self, summary: Summary) -> None: ) -class AsyncSummaryWithStreamingResponse: - def __init__(self, summary: AsyncSummary) -> None: +class AsyncSummaryResourceWithStreamingResponse: + def __init__(self, summary: AsyncSummaryResource) -> None: self._summary = summary self.arc = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/radar/email/security/timeseries_groups.py b/src/cloudflare/resources/radar/email/security/timeseries_groups.py index 17d51f7e25d..12486f075c1 100644 --- a/src/cloudflare/resources/radar/email/security/timeseries_groups.py +++ b/src/cloudflare/resources/radar/email/security/timeseries_groups.py @@ -48,17 +48,17 @@ TimeseriesGroupThreatCategoryResponse, ) -__all__ = ["TimeseriesGroups", "AsyncTimeseriesGroups"] +__all__ = ["TimeseriesGroupsResource", "AsyncTimeseriesGroupsResource"] -class TimeseriesGroups(SyncAPIResource): +class TimeseriesGroupsResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> TimeseriesGroupsWithRawResponse: - return TimeseriesGroupsWithRawResponse(self) + def with_raw_response(self) -> TimeseriesGroupsResourceWithRawResponse: + return TimeseriesGroupsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> TimeseriesGroupsWithStreamingResponse: - return TimeseriesGroupsWithStreamingResponse(self) + def with_streaming_response(self) -> TimeseriesGroupsResourceWithStreamingResponse: + return TimeseriesGroupsResourceWithStreamingResponse(self) def arc( self, @@ -997,14 +997,14 @@ def tls_version( ) -class AsyncTimeseriesGroups(AsyncAPIResource): +class AsyncTimeseriesGroupsResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncTimeseriesGroupsWithRawResponse: - return AsyncTimeseriesGroupsWithRawResponse(self) + def with_raw_response(self) -> AsyncTimeseriesGroupsResourceWithRawResponse: + return AsyncTimeseriesGroupsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncTimeseriesGroupsWithStreamingResponse: - return AsyncTimeseriesGroupsWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncTimeseriesGroupsResourceWithStreamingResponse: + return AsyncTimeseriesGroupsResourceWithStreamingResponse(self) async def arc( self, @@ -1943,8 +1943,8 @@ async def tls_version( ) -class TimeseriesGroupsWithRawResponse: - def __init__(self, timeseries_groups: TimeseriesGroups) -> None: +class TimeseriesGroupsResourceWithRawResponse: + def __init__(self, timeseries_groups: TimeseriesGroupsResource) -> None: self._timeseries_groups = timeseries_groups self.arc = to_raw_response_wrapper( @@ -1976,8 +1976,8 @@ def __init__(self, timeseries_groups: TimeseriesGroups) -> None: ) -class AsyncTimeseriesGroupsWithRawResponse: - def __init__(self, timeseries_groups: AsyncTimeseriesGroups) -> None: +class AsyncTimeseriesGroupsResourceWithRawResponse: + def __init__(self, timeseries_groups: AsyncTimeseriesGroupsResource) -> None: self._timeseries_groups = timeseries_groups self.arc = async_to_raw_response_wrapper( @@ -2009,8 +2009,8 @@ def __init__(self, timeseries_groups: AsyncTimeseriesGroups) -> None: ) -class TimeseriesGroupsWithStreamingResponse: - def __init__(self, timeseries_groups: TimeseriesGroups) -> None: +class TimeseriesGroupsResourceWithStreamingResponse: + def __init__(self, timeseries_groups: TimeseriesGroupsResource) -> None: self._timeseries_groups = timeseries_groups self.arc = to_streamed_response_wrapper( @@ -2042,8 +2042,8 @@ def __init__(self, timeseries_groups: TimeseriesGroups) -> None: ) -class AsyncTimeseriesGroupsWithStreamingResponse: - def __init__(self, timeseries_groups: AsyncTimeseriesGroups) -> None: +class AsyncTimeseriesGroupsResourceWithStreamingResponse: + def __init__(self, timeseries_groups: AsyncTimeseriesGroupsResource) -> None: self._timeseries_groups = timeseries_groups self.arc = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/radar/email/security/top/__init__.py b/src/cloudflare/resources/radar/email/security/top/__init__.py index 04accc07551..f9133afce2a 100644 --- a/src/cloudflare/resources/radar/email/security/top/__init__.py +++ b/src/cloudflare/resources/radar/email/security/top/__init__.py @@ -1,33 +1,33 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from .top import ( - Top, - AsyncTop, - TopWithRawResponse, - AsyncTopWithRawResponse, - TopWithStreamingResponse, - AsyncTopWithStreamingResponse, + TopResource, + AsyncTopResource, + TopResourceWithRawResponse, + AsyncTopResourceWithRawResponse, + TopResourceWithStreamingResponse, + AsyncTopResourceWithStreamingResponse, ) from .tlds import ( - Tlds, - AsyncTlds, - TldsWithRawResponse, - AsyncTldsWithRawResponse, - TldsWithStreamingResponse, - AsyncTldsWithStreamingResponse, + TldsResource, + AsyncTldsResource, + TldsResourceWithRawResponse, + AsyncTldsResourceWithRawResponse, + TldsResourceWithStreamingResponse, + AsyncTldsResourceWithStreamingResponse, ) __all__ = [ - "Tlds", - "AsyncTlds", - "TldsWithRawResponse", - "AsyncTldsWithRawResponse", - "TldsWithStreamingResponse", - "AsyncTldsWithStreamingResponse", - "Top", - "AsyncTop", - "TopWithRawResponse", - "AsyncTopWithRawResponse", - "TopWithStreamingResponse", - "AsyncTopWithStreamingResponse", + "TldsResource", + "AsyncTldsResource", + "TldsResourceWithRawResponse", + "AsyncTldsResourceWithRawResponse", + "TldsResourceWithStreamingResponse", + "AsyncTldsResourceWithStreamingResponse", + "TopResource", + "AsyncTopResource", + "TopResourceWithRawResponse", + "AsyncTopResourceWithRawResponse", + "TopResourceWithStreamingResponse", + "AsyncTopResourceWithStreamingResponse", ] diff --git a/src/cloudflare/resources/radar/email/security/top/tlds/__init__.py b/src/cloudflare/resources/radar/email/security/top/tlds/__init__.py index 59fc91f72ce..84574e9ae33 100644 --- a/src/cloudflare/resources/radar/email/security/top/tlds/__init__.py +++ b/src/cloudflare/resources/radar/email/security/top/tlds/__init__.py @@ -1,61 +1,61 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from .spam import ( - Spam, - AsyncSpam, - SpamWithRawResponse, - AsyncSpamWithRawResponse, - SpamWithStreamingResponse, - AsyncSpamWithStreamingResponse, + SpamResource, + AsyncSpamResource, + SpamResourceWithRawResponse, + AsyncSpamResourceWithRawResponse, + SpamResourceWithStreamingResponse, + AsyncSpamResourceWithStreamingResponse, ) from .tlds import ( - Tlds, - AsyncTlds, - TldsWithRawResponse, - AsyncTldsWithRawResponse, - TldsWithStreamingResponse, - AsyncTldsWithStreamingResponse, + TldsResource, + AsyncTldsResource, + TldsResourceWithRawResponse, + AsyncTldsResourceWithRawResponse, + TldsResourceWithStreamingResponse, + AsyncTldsResourceWithStreamingResponse, ) from .spoof import ( - Spoof, - AsyncSpoof, - SpoofWithRawResponse, - AsyncSpoofWithRawResponse, - SpoofWithStreamingResponse, - AsyncSpoofWithStreamingResponse, + SpoofResource, + AsyncSpoofResource, + SpoofResourceWithRawResponse, + AsyncSpoofResourceWithRawResponse, + SpoofResourceWithStreamingResponse, + AsyncSpoofResourceWithStreamingResponse, ) from .malicious import ( - Malicious, - AsyncMalicious, - MaliciousWithRawResponse, - AsyncMaliciousWithRawResponse, - MaliciousWithStreamingResponse, - AsyncMaliciousWithStreamingResponse, + MaliciousResource, + AsyncMaliciousResource, + MaliciousResourceWithRawResponse, + AsyncMaliciousResourceWithRawResponse, + MaliciousResourceWithStreamingResponse, + AsyncMaliciousResourceWithStreamingResponse, ) __all__ = [ - "Malicious", - "AsyncMalicious", - "MaliciousWithRawResponse", - "AsyncMaliciousWithRawResponse", - "MaliciousWithStreamingResponse", - "AsyncMaliciousWithStreamingResponse", - "Spam", - "AsyncSpam", - "SpamWithRawResponse", - "AsyncSpamWithRawResponse", - "SpamWithStreamingResponse", - "AsyncSpamWithStreamingResponse", - "Spoof", - "AsyncSpoof", - "SpoofWithRawResponse", - "AsyncSpoofWithRawResponse", - "SpoofWithStreamingResponse", - "AsyncSpoofWithStreamingResponse", - "Tlds", - "AsyncTlds", - "TldsWithRawResponse", - "AsyncTldsWithRawResponse", - "TldsWithStreamingResponse", - "AsyncTldsWithStreamingResponse", + "MaliciousResource", + "AsyncMaliciousResource", + "MaliciousResourceWithRawResponse", + "AsyncMaliciousResourceWithRawResponse", + "MaliciousResourceWithStreamingResponse", + "AsyncMaliciousResourceWithStreamingResponse", + "SpamResource", + "AsyncSpamResource", + "SpamResourceWithRawResponse", + "AsyncSpamResourceWithRawResponse", + "SpamResourceWithStreamingResponse", + "AsyncSpamResourceWithStreamingResponse", + "SpoofResource", + "AsyncSpoofResource", + "SpoofResourceWithRawResponse", + "AsyncSpoofResourceWithRawResponse", + "SpoofResourceWithStreamingResponse", + "AsyncSpoofResourceWithStreamingResponse", + "TldsResource", + "AsyncTldsResource", + "TldsResourceWithRawResponse", + "AsyncTldsResourceWithRawResponse", + "TldsResourceWithStreamingResponse", + "AsyncTldsResourceWithStreamingResponse", ] diff --git a/src/cloudflare/resources/radar/email/security/top/tlds/malicious.py b/src/cloudflare/resources/radar/email/security/top/tlds/malicious.py index e78d51055d1..c9166b9619b 100644 --- a/src/cloudflare/resources/radar/email/security/top/tlds/malicious.py +++ b/src/cloudflare/resources/radar/email/security/top/tlds/malicious.py @@ -28,17 +28,17 @@ from .......types.radar.email.security.top.tlds import malicious_get_params from .......types.radar.email.security.top.tlds.malicious_get_response import MaliciousGetResponse -__all__ = ["Malicious", "AsyncMalicious"] +__all__ = ["MaliciousResource", "AsyncMaliciousResource"] -class Malicious(SyncAPIResource): +class MaliciousResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> MaliciousWithRawResponse: - return MaliciousWithRawResponse(self) + def with_raw_response(self) -> MaliciousResourceWithRawResponse: + return MaliciousResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> MaliciousWithStreamingResponse: - return MaliciousWithStreamingResponse(self) + def with_streaming_response(self) -> MaliciousResourceWithStreamingResponse: + return MaliciousResourceWithStreamingResponse(self) def get( self, @@ -154,14 +154,14 @@ def get( ) -class AsyncMalicious(AsyncAPIResource): +class AsyncMaliciousResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncMaliciousWithRawResponse: - return AsyncMaliciousWithRawResponse(self) + def with_raw_response(self) -> AsyncMaliciousResourceWithRawResponse: + return AsyncMaliciousResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncMaliciousWithStreamingResponse: - return AsyncMaliciousWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncMaliciousResourceWithStreamingResponse: + return AsyncMaliciousResourceWithStreamingResponse(self) async def get( self, @@ -277,8 +277,8 @@ async def get( ) -class MaliciousWithRawResponse: - def __init__(self, malicious: Malicious) -> None: +class MaliciousResourceWithRawResponse: + def __init__(self, malicious: MaliciousResource) -> None: self._malicious = malicious self.get = to_raw_response_wrapper( @@ -286,8 +286,8 @@ def __init__(self, malicious: Malicious) -> None: ) -class AsyncMaliciousWithRawResponse: - def __init__(self, malicious: AsyncMalicious) -> None: +class AsyncMaliciousResourceWithRawResponse: + def __init__(self, malicious: AsyncMaliciousResource) -> None: self._malicious = malicious self.get = async_to_raw_response_wrapper( @@ -295,8 +295,8 @@ def __init__(self, malicious: AsyncMalicious) -> None: ) -class MaliciousWithStreamingResponse: - def __init__(self, malicious: Malicious) -> None: +class MaliciousResourceWithStreamingResponse: + def __init__(self, malicious: MaliciousResource) -> None: self._malicious = malicious self.get = to_streamed_response_wrapper( @@ -304,8 +304,8 @@ def __init__(self, malicious: Malicious) -> None: ) -class AsyncMaliciousWithStreamingResponse: - def __init__(self, malicious: AsyncMalicious) -> None: +class AsyncMaliciousResourceWithStreamingResponse: + def __init__(self, malicious: AsyncMaliciousResource) -> None: self._malicious = malicious self.get = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/radar/email/security/top/tlds/spam.py b/src/cloudflare/resources/radar/email/security/top/tlds/spam.py index 06a53fc09a7..40886bdcb09 100644 --- a/src/cloudflare/resources/radar/email/security/top/tlds/spam.py +++ b/src/cloudflare/resources/radar/email/security/top/tlds/spam.py @@ -28,17 +28,17 @@ from .......types.radar.email.security.top.tlds import spam_get_params from .......types.radar.email.security.top.tlds.spam_get_response import SpamGetResponse -__all__ = ["Spam", "AsyncSpam"] +__all__ = ["SpamResource", "AsyncSpamResource"] -class Spam(SyncAPIResource): +class SpamResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> SpamWithRawResponse: - return SpamWithRawResponse(self) + def with_raw_response(self) -> SpamResourceWithRawResponse: + return SpamResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> SpamWithStreamingResponse: - return SpamWithStreamingResponse(self) + def with_streaming_response(self) -> SpamResourceWithStreamingResponse: + return SpamResourceWithStreamingResponse(self) def get( self, @@ -154,14 +154,14 @@ def get( ) -class AsyncSpam(AsyncAPIResource): +class AsyncSpamResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncSpamWithRawResponse: - return AsyncSpamWithRawResponse(self) + def with_raw_response(self) -> AsyncSpamResourceWithRawResponse: + return AsyncSpamResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncSpamWithStreamingResponse: - return AsyncSpamWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncSpamResourceWithStreamingResponse: + return AsyncSpamResourceWithStreamingResponse(self) async def get( self, @@ -277,8 +277,8 @@ async def get( ) -class SpamWithRawResponse: - def __init__(self, spam: Spam) -> None: +class SpamResourceWithRawResponse: + def __init__(self, spam: SpamResource) -> None: self._spam = spam self.get = to_raw_response_wrapper( @@ -286,8 +286,8 @@ def __init__(self, spam: Spam) -> None: ) -class AsyncSpamWithRawResponse: - def __init__(self, spam: AsyncSpam) -> None: +class AsyncSpamResourceWithRawResponse: + def __init__(self, spam: AsyncSpamResource) -> None: self._spam = spam self.get = async_to_raw_response_wrapper( @@ -295,8 +295,8 @@ def __init__(self, spam: AsyncSpam) -> None: ) -class SpamWithStreamingResponse: - def __init__(self, spam: Spam) -> None: +class SpamResourceWithStreamingResponse: + def __init__(self, spam: SpamResource) -> None: self._spam = spam self.get = to_streamed_response_wrapper( @@ -304,8 +304,8 @@ def __init__(self, spam: Spam) -> None: ) -class AsyncSpamWithStreamingResponse: - def __init__(self, spam: AsyncSpam) -> None: +class AsyncSpamResourceWithStreamingResponse: + def __init__(self, spam: AsyncSpamResource) -> None: self._spam = spam self.get = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/radar/email/security/top/tlds/spoof.py b/src/cloudflare/resources/radar/email/security/top/tlds/spoof.py index 9af3f30a09f..49e04d09ce5 100644 --- a/src/cloudflare/resources/radar/email/security/top/tlds/spoof.py +++ b/src/cloudflare/resources/radar/email/security/top/tlds/spoof.py @@ -28,17 +28,17 @@ from .......types.radar.email.security.top.tlds import spoof_get_params from .......types.radar.email.security.top.tlds.spoof_get_response import SpoofGetResponse -__all__ = ["Spoof", "AsyncSpoof"] +__all__ = ["SpoofResource", "AsyncSpoofResource"] -class Spoof(SyncAPIResource): +class SpoofResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> SpoofWithRawResponse: - return SpoofWithRawResponse(self) + def with_raw_response(self) -> SpoofResourceWithRawResponse: + return SpoofResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> SpoofWithStreamingResponse: - return SpoofWithStreamingResponse(self) + def with_streaming_response(self) -> SpoofResourceWithStreamingResponse: + return SpoofResourceWithStreamingResponse(self) def get( self, @@ -154,14 +154,14 @@ def get( ) -class AsyncSpoof(AsyncAPIResource): +class AsyncSpoofResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncSpoofWithRawResponse: - return AsyncSpoofWithRawResponse(self) + def with_raw_response(self) -> AsyncSpoofResourceWithRawResponse: + return AsyncSpoofResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncSpoofWithStreamingResponse: - return AsyncSpoofWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncSpoofResourceWithStreamingResponse: + return AsyncSpoofResourceWithStreamingResponse(self) async def get( self, @@ -277,8 +277,8 @@ async def get( ) -class SpoofWithRawResponse: - def __init__(self, spoof: Spoof) -> None: +class SpoofResourceWithRawResponse: + def __init__(self, spoof: SpoofResource) -> None: self._spoof = spoof self.get = to_raw_response_wrapper( @@ -286,8 +286,8 @@ def __init__(self, spoof: Spoof) -> None: ) -class AsyncSpoofWithRawResponse: - def __init__(self, spoof: AsyncSpoof) -> None: +class AsyncSpoofResourceWithRawResponse: + def __init__(self, spoof: AsyncSpoofResource) -> None: self._spoof = spoof self.get = async_to_raw_response_wrapper( @@ -295,8 +295,8 @@ def __init__(self, spoof: AsyncSpoof) -> None: ) -class SpoofWithStreamingResponse: - def __init__(self, spoof: Spoof) -> None: +class SpoofResourceWithStreamingResponse: + def __init__(self, spoof: SpoofResource) -> None: self._spoof = spoof self.get = to_streamed_response_wrapper( @@ -304,8 +304,8 @@ def __init__(self, spoof: Spoof) -> None: ) -class AsyncSpoofWithStreamingResponse: - def __init__(self, spoof: AsyncSpoof) -> None: +class AsyncSpoofResourceWithStreamingResponse: + def __init__(self, spoof: AsyncSpoofResource) -> None: self._spoof = spoof self.get = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/radar/email/security/top/tlds/tlds.py b/src/cloudflare/resources/radar/email/security/top/tlds/tlds.py index 3a3b66e9a78..8cc5c7e2b3b 100644 --- a/src/cloudflare/resources/radar/email/security/top/tlds/tlds.py +++ b/src/cloudflare/resources/radar/email/security/top/tlds/tlds.py @@ -9,28 +9,28 @@ import httpx from .spam import ( - Spam, - AsyncSpam, - SpamWithRawResponse, - AsyncSpamWithRawResponse, - SpamWithStreamingResponse, - AsyncSpamWithStreamingResponse, + SpamResource, + AsyncSpamResource, + SpamResourceWithRawResponse, + AsyncSpamResourceWithRawResponse, + SpamResourceWithStreamingResponse, + AsyncSpamResourceWithStreamingResponse, ) from .spoof import ( - Spoof, - AsyncSpoof, - SpoofWithRawResponse, - AsyncSpoofWithRawResponse, - SpoofWithStreamingResponse, - AsyncSpoofWithStreamingResponse, + SpoofResource, + AsyncSpoofResource, + SpoofResourceWithRawResponse, + AsyncSpoofResourceWithRawResponse, + SpoofResourceWithStreamingResponse, + AsyncSpoofResourceWithStreamingResponse, ) from .malicious import ( - Malicious, - AsyncMalicious, - MaliciousWithRawResponse, - AsyncMaliciousWithRawResponse, - MaliciousWithStreamingResponse, - AsyncMaliciousWithStreamingResponse, + MaliciousResource, + AsyncMaliciousResource, + MaliciousResourceWithRawResponse, + AsyncMaliciousResourceWithRawResponse, + MaliciousResourceWithStreamingResponse, + AsyncMaliciousResourceWithStreamingResponse, ) from ......._types import NOT_GIVEN, Body, Query, Headers, NotGiven from ......._utils import ( @@ -52,29 +52,29 @@ from .......types.radar.email.security.top import tld_get_params from .......types.radar.email.security.top.tld_get_response import TldGetResponse -__all__ = ["Tlds", "AsyncTlds"] +__all__ = ["TldsResource", "AsyncTldsResource"] -class Tlds(SyncAPIResource): +class TldsResource(SyncAPIResource): @cached_property - def malicious(self) -> Malicious: - return Malicious(self._client) + def malicious(self) -> MaliciousResource: + return MaliciousResource(self._client) @cached_property - def spam(self) -> Spam: - return Spam(self._client) + def spam(self) -> SpamResource: + return SpamResource(self._client) @cached_property - def spoof(self) -> Spoof: - return Spoof(self._client) + def spoof(self) -> SpoofResource: + return SpoofResource(self._client) @cached_property - def with_raw_response(self) -> TldsWithRawResponse: - return TldsWithRawResponse(self) + def with_raw_response(self) -> TldsResourceWithRawResponse: + return TldsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> TldsWithStreamingResponse: - return TldsWithStreamingResponse(self) + def with_streaming_response(self) -> TldsResourceWithStreamingResponse: + return TldsResourceWithStreamingResponse(self) def get( self, @@ -187,26 +187,26 @@ def get( ) -class AsyncTlds(AsyncAPIResource): +class AsyncTldsResource(AsyncAPIResource): @cached_property - def malicious(self) -> AsyncMalicious: - return AsyncMalicious(self._client) + def malicious(self) -> AsyncMaliciousResource: + return AsyncMaliciousResource(self._client) @cached_property - def spam(self) -> AsyncSpam: - return AsyncSpam(self._client) + def spam(self) -> AsyncSpamResource: + return AsyncSpamResource(self._client) @cached_property - def spoof(self) -> AsyncSpoof: - return AsyncSpoof(self._client) + def spoof(self) -> AsyncSpoofResource: + return AsyncSpoofResource(self._client) @cached_property - def with_raw_response(self) -> AsyncTldsWithRawResponse: - return AsyncTldsWithRawResponse(self) + def with_raw_response(self) -> AsyncTldsResourceWithRawResponse: + return AsyncTldsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncTldsWithStreamingResponse: - return AsyncTldsWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncTldsResourceWithStreamingResponse: + return AsyncTldsResourceWithStreamingResponse(self) async def get( self, @@ -319,8 +319,8 @@ async def get( ) -class TldsWithRawResponse: - def __init__(self, tlds: Tlds) -> None: +class TldsResourceWithRawResponse: + def __init__(self, tlds: TldsResource) -> None: self._tlds = tlds self.get = to_raw_response_wrapper( @@ -328,20 +328,20 @@ def __init__(self, tlds: Tlds) -> None: ) @cached_property - def malicious(self) -> MaliciousWithRawResponse: - return MaliciousWithRawResponse(self._tlds.malicious) + def malicious(self) -> MaliciousResourceWithRawResponse: + return MaliciousResourceWithRawResponse(self._tlds.malicious) @cached_property - def spam(self) -> SpamWithRawResponse: - return SpamWithRawResponse(self._tlds.spam) + def spam(self) -> SpamResourceWithRawResponse: + return SpamResourceWithRawResponse(self._tlds.spam) @cached_property - def spoof(self) -> SpoofWithRawResponse: - return SpoofWithRawResponse(self._tlds.spoof) + def spoof(self) -> SpoofResourceWithRawResponse: + return SpoofResourceWithRawResponse(self._tlds.spoof) -class AsyncTldsWithRawResponse: - def __init__(self, tlds: AsyncTlds) -> None: +class AsyncTldsResourceWithRawResponse: + def __init__(self, tlds: AsyncTldsResource) -> None: self._tlds = tlds self.get = async_to_raw_response_wrapper( @@ -349,20 +349,20 @@ def __init__(self, tlds: AsyncTlds) -> None: ) @cached_property - def malicious(self) -> AsyncMaliciousWithRawResponse: - return AsyncMaliciousWithRawResponse(self._tlds.malicious) + def malicious(self) -> AsyncMaliciousResourceWithRawResponse: + return AsyncMaliciousResourceWithRawResponse(self._tlds.malicious) @cached_property - def spam(self) -> AsyncSpamWithRawResponse: - return AsyncSpamWithRawResponse(self._tlds.spam) + def spam(self) -> AsyncSpamResourceWithRawResponse: + return AsyncSpamResourceWithRawResponse(self._tlds.spam) @cached_property - def spoof(self) -> AsyncSpoofWithRawResponse: - return AsyncSpoofWithRawResponse(self._tlds.spoof) + def spoof(self) -> AsyncSpoofResourceWithRawResponse: + return AsyncSpoofResourceWithRawResponse(self._tlds.spoof) -class TldsWithStreamingResponse: - def __init__(self, tlds: Tlds) -> None: +class TldsResourceWithStreamingResponse: + def __init__(self, tlds: TldsResource) -> None: self._tlds = tlds self.get = to_streamed_response_wrapper( @@ -370,20 +370,20 @@ def __init__(self, tlds: Tlds) -> None: ) @cached_property - def malicious(self) -> MaliciousWithStreamingResponse: - return MaliciousWithStreamingResponse(self._tlds.malicious) + def malicious(self) -> MaliciousResourceWithStreamingResponse: + return MaliciousResourceWithStreamingResponse(self._tlds.malicious) @cached_property - def spam(self) -> SpamWithStreamingResponse: - return SpamWithStreamingResponse(self._tlds.spam) + def spam(self) -> SpamResourceWithStreamingResponse: + return SpamResourceWithStreamingResponse(self._tlds.spam) @cached_property - def spoof(self) -> SpoofWithStreamingResponse: - return SpoofWithStreamingResponse(self._tlds.spoof) + def spoof(self) -> SpoofResourceWithStreamingResponse: + return SpoofResourceWithStreamingResponse(self._tlds.spoof) -class AsyncTldsWithStreamingResponse: - def __init__(self, tlds: AsyncTlds) -> None: +class AsyncTldsResourceWithStreamingResponse: + def __init__(self, tlds: AsyncTldsResource) -> None: self._tlds = tlds self.get = async_to_streamed_response_wrapper( @@ -391,13 +391,13 @@ def __init__(self, tlds: AsyncTlds) -> None: ) @cached_property - def malicious(self) -> AsyncMaliciousWithStreamingResponse: - return AsyncMaliciousWithStreamingResponse(self._tlds.malicious) + def malicious(self) -> AsyncMaliciousResourceWithStreamingResponse: + return AsyncMaliciousResourceWithStreamingResponse(self._tlds.malicious) @cached_property - def spam(self) -> AsyncSpamWithStreamingResponse: - return AsyncSpamWithStreamingResponse(self._tlds.spam) + def spam(self) -> AsyncSpamResourceWithStreamingResponse: + return AsyncSpamResourceWithStreamingResponse(self._tlds.spam) @cached_property - def spoof(self) -> AsyncSpoofWithStreamingResponse: - return AsyncSpoofWithStreamingResponse(self._tlds.spoof) + def spoof(self) -> AsyncSpoofResourceWithStreamingResponse: + return AsyncSpoofResourceWithStreamingResponse(self._tlds.spoof) diff --git a/src/cloudflare/resources/radar/email/security/top/top.py b/src/cloudflare/resources/radar/email/security/top/top.py index 0413c036a42..d4f233cf497 100644 --- a/src/cloudflare/resources/radar/email/security/top/top.py +++ b/src/cloudflare/resources/radar/email/security/top/top.py @@ -3,79 +3,79 @@ from __future__ import annotations from .tlds import ( - Tlds, - AsyncTlds, - TldsWithRawResponse, - AsyncTldsWithRawResponse, - TldsWithStreamingResponse, - AsyncTldsWithStreamingResponse, + TldsResource, + AsyncTldsResource, + TldsResourceWithRawResponse, + AsyncTldsResourceWithRawResponse, + TldsResourceWithStreamingResponse, + AsyncTldsResourceWithStreamingResponse, ) -from .tlds.tlds import Tlds, AsyncTlds +from .tlds.tlds import TldsResource, AsyncTldsResource from ......_compat import cached_property from ......_resource import SyncAPIResource, AsyncAPIResource -__all__ = ["Top", "AsyncTop"] +__all__ = ["TopResource", "AsyncTopResource"] -class Top(SyncAPIResource): +class TopResource(SyncAPIResource): @cached_property - def tlds(self) -> Tlds: - return Tlds(self._client) + def tlds(self) -> TldsResource: + return TldsResource(self._client) @cached_property - def with_raw_response(self) -> TopWithRawResponse: - return TopWithRawResponse(self) + def with_raw_response(self) -> TopResourceWithRawResponse: + return TopResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> TopWithStreamingResponse: - return TopWithStreamingResponse(self) + def with_streaming_response(self) -> TopResourceWithStreamingResponse: + return TopResourceWithStreamingResponse(self) -class AsyncTop(AsyncAPIResource): +class AsyncTopResource(AsyncAPIResource): @cached_property - def tlds(self) -> AsyncTlds: - return AsyncTlds(self._client) + def tlds(self) -> AsyncTldsResource: + return AsyncTldsResource(self._client) @cached_property - def with_raw_response(self) -> AsyncTopWithRawResponse: - return AsyncTopWithRawResponse(self) + def with_raw_response(self) -> AsyncTopResourceWithRawResponse: + return AsyncTopResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncTopWithStreamingResponse: - return AsyncTopWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncTopResourceWithStreamingResponse: + return AsyncTopResourceWithStreamingResponse(self) -class TopWithRawResponse: - def __init__(self, top: Top) -> None: +class TopResourceWithRawResponse: + def __init__(self, top: TopResource) -> None: self._top = top @cached_property - def tlds(self) -> TldsWithRawResponse: - return TldsWithRawResponse(self._top.tlds) + def tlds(self) -> TldsResourceWithRawResponse: + return TldsResourceWithRawResponse(self._top.tlds) -class AsyncTopWithRawResponse: - def __init__(self, top: AsyncTop) -> None: +class AsyncTopResourceWithRawResponse: + def __init__(self, top: AsyncTopResource) -> None: self._top = top @cached_property - def tlds(self) -> AsyncTldsWithRawResponse: - return AsyncTldsWithRawResponse(self._top.tlds) + def tlds(self) -> AsyncTldsResourceWithRawResponse: + return AsyncTldsResourceWithRawResponse(self._top.tlds) -class TopWithStreamingResponse: - def __init__(self, top: Top) -> None: +class TopResourceWithStreamingResponse: + def __init__(self, top: TopResource) -> None: self._top = top @cached_property - def tlds(self) -> TldsWithStreamingResponse: - return TldsWithStreamingResponse(self._top.tlds) + def tlds(self) -> TldsResourceWithStreamingResponse: + return TldsResourceWithStreamingResponse(self._top.tlds) -class AsyncTopWithStreamingResponse: - def __init__(self, top: AsyncTop) -> None: +class AsyncTopResourceWithStreamingResponse: + def __init__(self, top: AsyncTopResource) -> None: self._top = top @cached_property - def tlds(self) -> AsyncTldsWithStreamingResponse: - return AsyncTldsWithStreamingResponse(self._top.tlds) + def tlds(self) -> AsyncTldsResourceWithStreamingResponse: + return AsyncTldsResourceWithStreamingResponse(self._top.tlds) diff --git a/src/cloudflare/resources/radar/entities/__init__.py b/src/cloudflare/resources/radar/entities/__init__.py index 8cc160d3576..c00c65c517b 100644 --- a/src/cloudflare/resources/radar/entities/__init__.py +++ b/src/cloudflare/resources/radar/entities/__init__.py @@ -1,47 +1,47 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from .asns import ( - ASNs, - AsyncASNs, - ASNsWithRawResponse, - AsyncASNsWithRawResponse, - ASNsWithStreamingResponse, - AsyncASNsWithStreamingResponse, + ASNsResource, + AsyncASNsResource, + ASNsResourceWithRawResponse, + AsyncASNsResourceWithRawResponse, + ASNsResourceWithStreamingResponse, + AsyncASNsResourceWithStreamingResponse, ) from .entities import ( - Entities, - AsyncEntities, - EntitiesWithRawResponse, - AsyncEntitiesWithRawResponse, - EntitiesWithStreamingResponse, - AsyncEntitiesWithStreamingResponse, + EntitiesResource, + AsyncEntitiesResource, + EntitiesResourceWithRawResponse, + AsyncEntitiesResourceWithRawResponse, + EntitiesResourceWithStreamingResponse, + AsyncEntitiesResourceWithStreamingResponse, ) from .locations import ( - Locations, - AsyncLocations, - LocationsWithRawResponse, - AsyncLocationsWithRawResponse, - LocationsWithStreamingResponse, - AsyncLocationsWithStreamingResponse, + LocationsResource, + AsyncLocationsResource, + LocationsResourceWithRawResponse, + AsyncLocationsResourceWithRawResponse, + LocationsResourceWithStreamingResponse, + AsyncLocationsResourceWithStreamingResponse, ) __all__ = [ - "ASNs", - "AsyncASNs", - "ASNsWithRawResponse", - "AsyncASNsWithRawResponse", - "ASNsWithStreamingResponse", - "AsyncASNsWithStreamingResponse", - "Locations", - "AsyncLocations", - "LocationsWithRawResponse", - "AsyncLocationsWithRawResponse", - "LocationsWithStreamingResponse", - "AsyncLocationsWithStreamingResponse", - "Entities", - "AsyncEntities", - "EntitiesWithRawResponse", - "AsyncEntitiesWithRawResponse", - "EntitiesWithStreamingResponse", - "AsyncEntitiesWithStreamingResponse", + "ASNsResource", + "AsyncASNsResource", + "ASNsResourceWithRawResponse", + "AsyncASNsResourceWithRawResponse", + "ASNsResourceWithStreamingResponse", + "AsyncASNsResourceWithStreamingResponse", + "LocationsResource", + "AsyncLocationsResource", + "LocationsResourceWithRawResponse", + "AsyncLocationsResourceWithRawResponse", + "LocationsResourceWithStreamingResponse", + "AsyncLocationsResourceWithStreamingResponse", + "EntitiesResource", + "AsyncEntitiesResource", + "EntitiesResourceWithRawResponse", + "AsyncEntitiesResourceWithRawResponse", + "EntitiesResourceWithStreamingResponse", + "AsyncEntitiesResourceWithStreamingResponse", ] diff --git a/src/cloudflare/resources/radar/entities/asns.py b/src/cloudflare/resources/radar/entities/asns.py index e2d0b0a51f7..f0479103d73 100644 --- a/src/cloudflare/resources/radar/entities/asns.py +++ b/src/cloudflare/resources/radar/entities/asns.py @@ -30,17 +30,17 @@ from ....types.radar.entities.asn_rel_response import ASNRelResponse from ....types.radar.entities.asn_list_response import ASNListResponse -__all__ = ["ASNs", "AsyncASNs"] +__all__ = ["ASNsResource", "AsyncASNsResource"] -class ASNs(SyncAPIResource): +class ASNsResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> ASNsWithRawResponse: - return ASNsWithRawResponse(self) + def with_raw_response(self) -> ASNsResourceWithRawResponse: + return ASNsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> ASNsWithStreamingResponse: - return ASNsWithStreamingResponse(self) + def with_streaming_response(self) -> ASNsResourceWithStreamingResponse: + return ASNsResourceWithStreamingResponse(self) def list( self, @@ -250,14 +250,14 @@ def rel( ) -class AsyncASNs(AsyncAPIResource): +class AsyncASNsResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncASNsWithRawResponse: - return AsyncASNsWithRawResponse(self) + def with_raw_response(self) -> AsyncASNsResourceWithRawResponse: + return AsyncASNsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncASNsWithStreamingResponse: - return AsyncASNsWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncASNsResourceWithStreamingResponse: + return AsyncASNsResourceWithStreamingResponse(self) async def list( self, @@ -467,8 +467,8 @@ async def rel( ) -class ASNsWithRawResponse: - def __init__(self, asns: ASNs) -> None: +class ASNsResourceWithRawResponse: + def __init__(self, asns: ASNsResource) -> None: self._asns = asns self.list = to_raw_response_wrapper( @@ -485,8 +485,8 @@ def __init__(self, asns: ASNs) -> None: ) -class AsyncASNsWithRawResponse: - def __init__(self, asns: AsyncASNs) -> None: +class AsyncASNsResourceWithRawResponse: + def __init__(self, asns: AsyncASNsResource) -> None: self._asns = asns self.list = async_to_raw_response_wrapper( @@ -503,8 +503,8 @@ def __init__(self, asns: AsyncASNs) -> None: ) -class ASNsWithStreamingResponse: - def __init__(self, asns: ASNs) -> None: +class ASNsResourceWithStreamingResponse: + def __init__(self, asns: ASNsResource) -> None: self._asns = asns self.list = to_streamed_response_wrapper( @@ -521,8 +521,8 @@ def __init__(self, asns: ASNs) -> None: ) -class AsyncASNsWithStreamingResponse: - def __init__(self, asns: AsyncASNs) -> None: +class AsyncASNsResourceWithStreamingResponse: + def __init__(self, asns: AsyncASNsResource) -> None: self._asns = asns self.list = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/radar/entities/entities.py b/src/cloudflare/resources/radar/entities/entities.py index fad07fb0490..7308469e676 100644 --- a/src/cloudflare/resources/radar/entities/entities.py +++ b/src/cloudflare/resources/radar/entities/entities.py @@ -8,12 +8,12 @@ import httpx from .asns import ( - ASNs, - AsyncASNs, - ASNsWithRawResponse, - AsyncASNsWithRawResponse, - ASNsWithStreamingResponse, - AsyncASNsWithStreamingResponse, + ASNsResource, + AsyncASNsResource, + ASNsResourceWithRawResponse, + AsyncASNsResourceWithRawResponse, + ASNsResourceWithStreamingResponse, + AsyncASNsResourceWithStreamingResponse, ) from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven from ...._utils import ( @@ -21,12 +21,12 @@ async_maybe_transform, ) from .locations import ( - Locations, - AsyncLocations, - LocationsWithRawResponse, - AsyncLocationsWithRawResponse, - LocationsWithStreamingResponse, - AsyncLocationsWithStreamingResponse, + LocationsResource, + AsyncLocationsResource, + LocationsResourceWithRawResponse, + AsyncLocationsResourceWithRawResponse, + LocationsResourceWithStreamingResponse, + AsyncLocationsResourceWithStreamingResponse, ) from ...._compat import cached_property from ...._resource import SyncAPIResource, AsyncAPIResource @@ -43,25 +43,25 @@ ) from ....types.radar.entity_get_response import EntityGetResponse -__all__ = ["Entities", "AsyncEntities"] +__all__ = ["EntitiesResource", "AsyncEntitiesResource"] -class Entities(SyncAPIResource): +class EntitiesResource(SyncAPIResource): @cached_property - def asns(self) -> ASNs: - return ASNs(self._client) + def asns(self) -> ASNsResource: + return ASNsResource(self._client) @cached_property - def locations(self) -> Locations: - return Locations(self._client) + def locations(self) -> LocationsResource: + return LocationsResource(self._client) @cached_property - def with_raw_response(self) -> EntitiesWithRawResponse: - return EntitiesWithRawResponse(self) + def with_raw_response(self) -> EntitiesResourceWithRawResponse: + return EntitiesResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> EntitiesWithStreamingResponse: - return EntitiesWithStreamingResponse(self) + def with_streaming_response(self) -> EntitiesResourceWithStreamingResponse: + return EntitiesResourceWithStreamingResponse(self) def get( self, @@ -111,22 +111,22 @@ def get( ) -class AsyncEntities(AsyncAPIResource): +class AsyncEntitiesResource(AsyncAPIResource): @cached_property - def asns(self) -> AsyncASNs: - return AsyncASNs(self._client) + def asns(self) -> AsyncASNsResource: + return AsyncASNsResource(self._client) @cached_property - def locations(self) -> AsyncLocations: - return AsyncLocations(self._client) + def locations(self) -> AsyncLocationsResource: + return AsyncLocationsResource(self._client) @cached_property - def with_raw_response(self) -> AsyncEntitiesWithRawResponse: - return AsyncEntitiesWithRawResponse(self) + def with_raw_response(self) -> AsyncEntitiesResourceWithRawResponse: + return AsyncEntitiesResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncEntitiesWithStreamingResponse: - return AsyncEntitiesWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncEntitiesResourceWithStreamingResponse: + return AsyncEntitiesResourceWithStreamingResponse(self) async def get( self, @@ -176,8 +176,8 @@ async def get( ) -class EntitiesWithRawResponse: - def __init__(self, entities: Entities) -> None: +class EntitiesResourceWithRawResponse: + def __init__(self, entities: EntitiesResource) -> None: self._entities = entities self.get = to_raw_response_wrapper( @@ -185,16 +185,16 @@ def __init__(self, entities: Entities) -> None: ) @cached_property - def asns(self) -> ASNsWithRawResponse: - return ASNsWithRawResponse(self._entities.asns) + def asns(self) -> ASNsResourceWithRawResponse: + return ASNsResourceWithRawResponse(self._entities.asns) @cached_property - def locations(self) -> LocationsWithRawResponse: - return LocationsWithRawResponse(self._entities.locations) + def locations(self) -> LocationsResourceWithRawResponse: + return LocationsResourceWithRawResponse(self._entities.locations) -class AsyncEntitiesWithRawResponse: - def __init__(self, entities: AsyncEntities) -> None: +class AsyncEntitiesResourceWithRawResponse: + def __init__(self, entities: AsyncEntitiesResource) -> None: self._entities = entities self.get = async_to_raw_response_wrapper( @@ -202,16 +202,16 @@ def __init__(self, entities: AsyncEntities) -> None: ) @cached_property - def asns(self) -> AsyncASNsWithRawResponse: - return AsyncASNsWithRawResponse(self._entities.asns) + def asns(self) -> AsyncASNsResourceWithRawResponse: + return AsyncASNsResourceWithRawResponse(self._entities.asns) @cached_property - def locations(self) -> AsyncLocationsWithRawResponse: - return AsyncLocationsWithRawResponse(self._entities.locations) + def locations(self) -> AsyncLocationsResourceWithRawResponse: + return AsyncLocationsResourceWithRawResponse(self._entities.locations) -class EntitiesWithStreamingResponse: - def __init__(self, entities: Entities) -> None: +class EntitiesResourceWithStreamingResponse: + def __init__(self, entities: EntitiesResource) -> None: self._entities = entities self.get = to_streamed_response_wrapper( @@ -219,16 +219,16 @@ def __init__(self, entities: Entities) -> None: ) @cached_property - def asns(self) -> ASNsWithStreamingResponse: - return ASNsWithStreamingResponse(self._entities.asns) + def asns(self) -> ASNsResourceWithStreamingResponse: + return ASNsResourceWithStreamingResponse(self._entities.asns) @cached_property - def locations(self) -> LocationsWithStreamingResponse: - return LocationsWithStreamingResponse(self._entities.locations) + def locations(self) -> LocationsResourceWithStreamingResponse: + return LocationsResourceWithStreamingResponse(self._entities.locations) -class AsyncEntitiesWithStreamingResponse: - def __init__(self, entities: AsyncEntities) -> None: +class AsyncEntitiesResourceWithStreamingResponse: + def __init__(self, entities: AsyncEntitiesResource) -> None: self._entities = entities self.get = async_to_streamed_response_wrapper( @@ -236,9 +236,9 @@ def __init__(self, entities: AsyncEntities) -> None: ) @cached_property - def asns(self) -> AsyncASNsWithStreamingResponse: - return AsyncASNsWithStreamingResponse(self._entities.asns) + def asns(self) -> AsyncASNsResourceWithStreamingResponse: + return AsyncASNsResourceWithStreamingResponse(self._entities.asns) @cached_property - def locations(self) -> AsyncLocationsWithStreamingResponse: - return AsyncLocationsWithStreamingResponse(self._entities.locations) + def locations(self) -> AsyncLocationsResourceWithStreamingResponse: + return AsyncLocationsResourceWithStreamingResponse(self._entities.locations) diff --git a/src/cloudflare/resources/radar/entities/locations.py b/src/cloudflare/resources/radar/entities/locations.py index 93efe29d505..a05fa19ad17 100644 --- a/src/cloudflare/resources/radar/entities/locations.py +++ b/src/cloudflare/resources/radar/entities/locations.py @@ -28,17 +28,17 @@ from ....types.radar.entities.location_get_response import LocationGetResponse from ....types.radar.entities.location_list_response import LocationListResponse -__all__ = ["Locations", "AsyncLocations"] +__all__ = ["LocationsResource", "AsyncLocationsResource"] -class Locations(SyncAPIResource): +class LocationsResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> LocationsWithRawResponse: - return LocationsWithRawResponse(self) + def with_raw_response(self) -> LocationsResourceWithRawResponse: + return LocationsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> LocationsWithStreamingResponse: - return LocationsWithStreamingResponse(self) + def with_streaming_response(self) -> LocationsResourceWithStreamingResponse: + return LocationsResourceWithStreamingResponse(self) def list( self, @@ -142,14 +142,14 @@ def get( ) -class AsyncLocations(AsyncAPIResource): +class AsyncLocationsResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncLocationsWithRawResponse: - return AsyncLocationsWithRawResponse(self) + def with_raw_response(self) -> AsyncLocationsResourceWithRawResponse: + return AsyncLocationsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncLocationsWithStreamingResponse: - return AsyncLocationsWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncLocationsResourceWithStreamingResponse: + return AsyncLocationsResourceWithStreamingResponse(self) async def list( self, @@ -253,8 +253,8 @@ async def get( ) -class LocationsWithRawResponse: - def __init__(self, locations: Locations) -> None: +class LocationsResourceWithRawResponse: + def __init__(self, locations: LocationsResource) -> None: self._locations = locations self.list = to_raw_response_wrapper( @@ -265,8 +265,8 @@ def __init__(self, locations: Locations) -> None: ) -class AsyncLocationsWithRawResponse: - def __init__(self, locations: AsyncLocations) -> None: +class AsyncLocationsResourceWithRawResponse: + def __init__(self, locations: AsyncLocationsResource) -> None: self._locations = locations self.list = async_to_raw_response_wrapper( @@ -277,8 +277,8 @@ def __init__(self, locations: AsyncLocations) -> None: ) -class LocationsWithStreamingResponse: - def __init__(self, locations: Locations) -> None: +class LocationsResourceWithStreamingResponse: + def __init__(self, locations: LocationsResource) -> None: self._locations = locations self.list = to_streamed_response_wrapper( @@ -289,8 +289,8 @@ def __init__(self, locations: Locations) -> None: ) -class AsyncLocationsWithStreamingResponse: - def __init__(self, locations: AsyncLocations) -> None: +class AsyncLocationsResourceWithStreamingResponse: + def __init__(self, locations: AsyncLocationsResource) -> None: self._locations = locations self.list = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/radar/http/__init__.py b/src/cloudflare/resources/radar/http/__init__.py index 6e311da0df9..13ec57b6b10 100644 --- a/src/cloudflare/resources/radar/http/__init__.py +++ b/src/cloudflare/resources/radar/http/__init__.py @@ -1,89 +1,89 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from .top import ( - Top, - AsyncTop, - TopWithRawResponse, - AsyncTopWithRawResponse, - TopWithStreamingResponse, - AsyncTopWithStreamingResponse, + TopResource, + AsyncTopResource, + TopResourceWithRawResponse, + AsyncTopResourceWithRawResponse, + TopResourceWithStreamingResponse, + AsyncTopResourceWithStreamingResponse, ) from .ases import ( - Ases, - AsyncAses, - AsesWithRawResponse, - AsyncAsesWithRawResponse, - AsesWithStreamingResponse, - AsyncAsesWithStreamingResponse, + AsesResource, + AsyncAsesResource, + AsesResourceWithRawResponse, + AsyncAsesResourceWithRawResponse, + AsesResourceWithStreamingResponse, + AsyncAsesResourceWithStreamingResponse, ) from .http import ( - HTTP, - AsyncHTTP, - HTTPWithRawResponse, - AsyncHTTPWithRawResponse, - HTTPWithStreamingResponse, - AsyncHTTPWithStreamingResponse, + HTTPResource, + AsyncHTTPResource, + HTTPResourceWithRawResponse, + AsyncHTTPResourceWithRawResponse, + HTTPResourceWithStreamingResponse, + AsyncHTTPResourceWithStreamingResponse, ) from .summary import ( - Summary, - AsyncSummary, - SummaryWithRawResponse, - AsyncSummaryWithRawResponse, - SummaryWithStreamingResponse, - AsyncSummaryWithStreamingResponse, + SummaryResource, + AsyncSummaryResource, + SummaryResourceWithRawResponse, + AsyncSummaryResourceWithRawResponse, + SummaryResourceWithStreamingResponse, + AsyncSummaryResourceWithStreamingResponse, ) from .locations import ( - Locations, - AsyncLocations, - LocationsWithRawResponse, - AsyncLocationsWithRawResponse, - LocationsWithStreamingResponse, - AsyncLocationsWithStreamingResponse, + LocationsResource, + AsyncLocationsResource, + LocationsResourceWithRawResponse, + AsyncLocationsResourceWithRawResponse, + LocationsResourceWithStreamingResponse, + AsyncLocationsResourceWithStreamingResponse, ) from .timeseries_groups import ( - TimeseriesGroups, - AsyncTimeseriesGroups, - TimeseriesGroupsWithRawResponse, - AsyncTimeseriesGroupsWithRawResponse, - TimeseriesGroupsWithStreamingResponse, - AsyncTimeseriesGroupsWithStreamingResponse, + TimeseriesGroupsResource, + AsyncTimeseriesGroupsResource, + TimeseriesGroupsResourceWithRawResponse, + AsyncTimeseriesGroupsResourceWithRawResponse, + TimeseriesGroupsResourceWithStreamingResponse, + AsyncTimeseriesGroupsResourceWithStreamingResponse, ) __all__ = [ - "Top", - "AsyncTop", - "TopWithRawResponse", - "AsyncTopWithRawResponse", - "TopWithStreamingResponse", - "AsyncTopWithStreamingResponse", - "Locations", - "AsyncLocations", - "LocationsWithRawResponse", - "AsyncLocationsWithRawResponse", - "LocationsWithStreamingResponse", - "AsyncLocationsWithStreamingResponse", - "Ases", - "AsyncAses", - "AsesWithRawResponse", - "AsyncAsesWithRawResponse", - "AsesWithStreamingResponse", - "AsyncAsesWithStreamingResponse", - "Summary", - "AsyncSummary", - "SummaryWithRawResponse", - "AsyncSummaryWithRawResponse", - "SummaryWithStreamingResponse", - "AsyncSummaryWithStreamingResponse", - "TimeseriesGroups", - "AsyncTimeseriesGroups", - "TimeseriesGroupsWithRawResponse", - "AsyncTimeseriesGroupsWithRawResponse", - "TimeseriesGroupsWithStreamingResponse", - "AsyncTimeseriesGroupsWithStreamingResponse", - "HTTP", - "AsyncHTTP", - "HTTPWithRawResponse", - "AsyncHTTPWithRawResponse", - "HTTPWithStreamingResponse", - "AsyncHTTPWithStreamingResponse", + "TopResource", + "AsyncTopResource", + "TopResourceWithRawResponse", + "AsyncTopResourceWithRawResponse", + "TopResourceWithStreamingResponse", + "AsyncTopResourceWithStreamingResponse", + "LocationsResource", + "AsyncLocationsResource", + "LocationsResourceWithRawResponse", + "AsyncLocationsResourceWithRawResponse", + "LocationsResourceWithStreamingResponse", + "AsyncLocationsResourceWithStreamingResponse", + "AsesResource", + "AsyncAsesResource", + "AsesResourceWithRawResponse", + "AsyncAsesResourceWithRawResponse", + "AsesResourceWithStreamingResponse", + "AsyncAsesResourceWithStreamingResponse", + "SummaryResource", + "AsyncSummaryResource", + "SummaryResourceWithRawResponse", + "AsyncSummaryResourceWithRawResponse", + "SummaryResourceWithStreamingResponse", + "AsyncSummaryResourceWithStreamingResponse", + "TimeseriesGroupsResource", + "AsyncTimeseriesGroupsResource", + "TimeseriesGroupsResourceWithRawResponse", + "AsyncTimeseriesGroupsResourceWithRawResponse", + "TimeseriesGroupsResourceWithStreamingResponse", + "AsyncTimeseriesGroupsResourceWithStreamingResponse", + "HTTPResource", + "AsyncHTTPResource", + "HTTPResourceWithRawResponse", + "AsyncHTTPResourceWithRawResponse", + "HTTPResourceWithStreamingResponse", + "AsyncHTTPResourceWithStreamingResponse", ] diff --git a/src/cloudflare/resources/radar/http/ases/__init__.py b/src/cloudflare/resources/radar/http/ases/__init__.py index 83db7807006..725f29e303a 100644 --- a/src/cloudflare/resources/radar/http/ases/__init__.py +++ b/src/cloudflare/resources/radar/http/ases/__init__.py @@ -1,117 +1,117 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from .os import ( - OS, - AsyncOS, - OSWithRawResponse, - AsyncOSWithRawResponse, - OSWithStreamingResponse, - AsyncOSWithStreamingResponse, + OSResource, + AsyncOSResource, + OSResourceWithRawResponse, + AsyncOSResourceWithRawResponse, + OSResourceWithStreamingResponse, + AsyncOSResourceWithStreamingResponse, ) from .ases import ( - Ases, - AsyncAses, - AsesWithRawResponse, - AsyncAsesWithRawResponse, - AsesWithStreamingResponse, - AsyncAsesWithStreamingResponse, + AsesResource, + AsyncAsesResource, + AsesResourceWithRawResponse, + AsyncAsesResourceWithRawResponse, + AsesResourceWithStreamingResponse, + AsyncAsesResourceWithStreamingResponse, ) from .bot_class import ( - BotClass, - AsyncBotClass, - BotClassWithRawResponse, - AsyncBotClassWithRawResponse, - BotClassWithStreamingResponse, - AsyncBotClassWithStreamingResponse, + BotClassResource, + AsyncBotClassResource, + BotClassResourceWithRawResponse, + AsyncBotClassResourceWithRawResponse, + BotClassResourceWithStreamingResponse, + AsyncBotClassResourceWithStreamingResponse, ) from .ip_version import ( - IPVersion, - AsyncIPVersion, - IPVersionWithRawResponse, - AsyncIPVersionWithRawResponse, - IPVersionWithStreamingResponse, - AsyncIPVersionWithStreamingResponse, + IPVersionResource, + AsyncIPVersionResource, + IPVersionResourceWithRawResponse, + AsyncIPVersionResourceWithRawResponse, + IPVersionResourceWithStreamingResponse, + AsyncIPVersionResourceWithStreamingResponse, ) from .device_type import ( - DeviceType, - AsyncDeviceType, - DeviceTypeWithRawResponse, - AsyncDeviceTypeWithRawResponse, - DeviceTypeWithStreamingResponse, - AsyncDeviceTypeWithStreamingResponse, + DeviceTypeResource, + AsyncDeviceTypeResource, + DeviceTypeResourceWithRawResponse, + AsyncDeviceTypeResourceWithRawResponse, + DeviceTypeResourceWithStreamingResponse, + AsyncDeviceTypeResourceWithStreamingResponse, ) from .http_method import ( - HTTPMethod, - AsyncHTTPMethod, - HTTPMethodWithRawResponse, - AsyncHTTPMethodWithRawResponse, - HTTPMethodWithStreamingResponse, - AsyncHTTPMethodWithStreamingResponse, + HTTPMethodResource, + AsyncHTTPMethodResource, + HTTPMethodResourceWithRawResponse, + AsyncHTTPMethodResourceWithRawResponse, + HTTPMethodResourceWithStreamingResponse, + AsyncHTTPMethodResourceWithStreamingResponse, ) from .tls_version import ( - TLSVersion, - AsyncTLSVersion, - TLSVersionWithRawResponse, - AsyncTLSVersionWithRawResponse, - TLSVersionWithStreamingResponse, - AsyncTLSVersionWithStreamingResponse, + TLSVersionResource, + AsyncTLSVersionResource, + TLSVersionResourceWithRawResponse, + AsyncTLSVersionResourceWithRawResponse, + TLSVersionResourceWithStreamingResponse, + AsyncTLSVersionResourceWithStreamingResponse, ) from .http_protocol import ( - HTTPProtocol, - AsyncHTTPProtocol, - HTTPProtocolWithRawResponse, - AsyncHTTPProtocolWithRawResponse, - HTTPProtocolWithStreamingResponse, - AsyncHTTPProtocolWithStreamingResponse, + HTTPProtocolResource, + AsyncHTTPProtocolResource, + HTTPProtocolResourceWithRawResponse, + AsyncHTTPProtocolResourceWithRawResponse, + HTTPProtocolResourceWithStreamingResponse, + AsyncHTTPProtocolResourceWithStreamingResponse, ) __all__ = [ - "BotClass", - "AsyncBotClass", - "BotClassWithRawResponse", - "AsyncBotClassWithRawResponse", - "BotClassWithStreamingResponse", - "AsyncBotClassWithStreamingResponse", - "DeviceType", - "AsyncDeviceType", - "DeviceTypeWithRawResponse", - "AsyncDeviceTypeWithRawResponse", - "DeviceTypeWithStreamingResponse", - "AsyncDeviceTypeWithStreamingResponse", - "HTTPProtocol", - "AsyncHTTPProtocol", - "HTTPProtocolWithRawResponse", - "AsyncHTTPProtocolWithRawResponse", - "HTTPProtocolWithStreamingResponse", - "AsyncHTTPProtocolWithStreamingResponse", - "HTTPMethod", - "AsyncHTTPMethod", - "HTTPMethodWithRawResponse", - "AsyncHTTPMethodWithRawResponse", - "HTTPMethodWithStreamingResponse", - "AsyncHTTPMethodWithStreamingResponse", - "IPVersion", - "AsyncIPVersion", - "IPVersionWithRawResponse", - "AsyncIPVersionWithRawResponse", - "IPVersionWithStreamingResponse", - "AsyncIPVersionWithStreamingResponse", - "OS", - "AsyncOS", - "OSWithRawResponse", - "AsyncOSWithRawResponse", - "OSWithStreamingResponse", - "AsyncOSWithStreamingResponse", - "TLSVersion", - "AsyncTLSVersion", - "TLSVersionWithRawResponse", - "AsyncTLSVersionWithRawResponse", - "TLSVersionWithStreamingResponse", - "AsyncTLSVersionWithStreamingResponse", - "Ases", - "AsyncAses", - "AsesWithRawResponse", - "AsyncAsesWithRawResponse", - "AsesWithStreamingResponse", - "AsyncAsesWithStreamingResponse", + "BotClassResource", + "AsyncBotClassResource", + "BotClassResourceWithRawResponse", + "AsyncBotClassResourceWithRawResponse", + "BotClassResourceWithStreamingResponse", + "AsyncBotClassResourceWithStreamingResponse", + "DeviceTypeResource", + "AsyncDeviceTypeResource", + "DeviceTypeResourceWithRawResponse", + "AsyncDeviceTypeResourceWithRawResponse", + "DeviceTypeResourceWithStreamingResponse", + "AsyncDeviceTypeResourceWithStreamingResponse", + "HTTPProtocolResource", + "AsyncHTTPProtocolResource", + "HTTPProtocolResourceWithRawResponse", + "AsyncHTTPProtocolResourceWithRawResponse", + "HTTPProtocolResourceWithStreamingResponse", + "AsyncHTTPProtocolResourceWithStreamingResponse", + "HTTPMethodResource", + "AsyncHTTPMethodResource", + "HTTPMethodResourceWithRawResponse", + "AsyncHTTPMethodResourceWithRawResponse", + "HTTPMethodResourceWithStreamingResponse", + "AsyncHTTPMethodResourceWithStreamingResponse", + "IPVersionResource", + "AsyncIPVersionResource", + "IPVersionResourceWithRawResponse", + "AsyncIPVersionResourceWithRawResponse", + "IPVersionResourceWithStreamingResponse", + "AsyncIPVersionResourceWithStreamingResponse", + "OSResource", + "AsyncOSResource", + "OSResourceWithRawResponse", + "AsyncOSResourceWithRawResponse", + "OSResourceWithStreamingResponse", + "AsyncOSResourceWithStreamingResponse", + "TLSVersionResource", + "AsyncTLSVersionResource", + "TLSVersionResourceWithRawResponse", + "AsyncTLSVersionResourceWithRawResponse", + "TLSVersionResourceWithStreamingResponse", + "AsyncTLSVersionResourceWithStreamingResponse", + "AsesResource", + "AsyncAsesResource", + "AsesResourceWithRawResponse", + "AsyncAsesResourceWithRawResponse", + "AsesResourceWithStreamingResponse", + "AsyncAsesResourceWithStreamingResponse", ] diff --git a/src/cloudflare/resources/radar/http/ases/ases.py b/src/cloudflare/resources/radar/http/ases/ases.py index c21a3d8584c..5802bbf3b71 100644 --- a/src/cloudflare/resources/radar/http/ases/ases.py +++ b/src/cloudflare/resources/radar/http/ases/ases.py @@ -9,20 +9,20 @@ import httpx from .os import ( - OS, - AsyncOS, - OSWithRawResponse, - AsyncOSWithRawResponse, - OSWithStreamingResponse, - AsyncOSWithStreamingResponse, + OSResource, + AsyncOSResource, + OSResourceWithRawResponse, + AsyncOSResourceWithRawResponse, + OSResourceWithStreamingResponse, + AsyncOSResourceWithStreamingResponse, ) from .bot_class import ( - BotClass, - AsyncBotClass, - BotClassWithRawResponse, - AsyncBotClassWithRawResponse, - BotClassWithStreamingResponse, - AsyncBotClassWithStreamingResponse, + BotClassResource, + AsyncBotClassResource, + BotClassResourceWithRawResponse, + AsyncBotClassResourceWithRawResponse, + BotClassResourceWithStreamingResponse, + AsyncBotClassResourceWithStreamingResponse, ) from ....._types import NOT_GIVEN, Body, Query, Headers, NotGiven from ....._utils import ( @@ -30,37 +30,37 @@ async_maybe_transform, ) from .ip_version import ( - IPVersion, - AsyncIPVersion, - IPVersionWithRawResponse, - AsyncIPVersionWithRawResponse, - IPVersionWithStreamingResponse, - AsyncIPVersionWithStreamingResponse, + IPVersionResource, + AsyncIPVersionResource, + IPVersionResourceWithRawResponse, + AsyncIPVersionResourceWithRawResponse, + IPVersionResourceWithStreamingResponse, + AsyncIPVersionResourceWithStreamingResponse, ) from ....._compat import cached_property from .device_type import ( - DeviceType, - AsyncDeviceType, - DeviceTypeWithRawResponse, - AsyncDeviceTypeWithRawResponse, - DeviceTypeWithStreamingResponse, - AsyncDeviceTypeWithStreamingResponse, + DeviceTypeResource, + AsyncDeviceTypeResource, + DeviceTypeResourceWithRawResponse, + AsyncDeviceTypeResourceWithRawResponse, + DeviceTypeResourceWithStreamingResponse, + AsyncDeviceTypeResourceWithStreamingResponse, ) from .http_method import ( - HTTPMethod, - AsyncHTTPMethod, - HTTPMethodWithRawResponse, - AsyncHTTPMethodWithRawResponse, - HTTPMethodWithStreamingResponse, - AsyncHTTPMethodWithStreamingResponse, + HTTPMethodResource, + AsyncHTTPMethodResource, + HTTPMethodResourceWithRawResponse, + AsyncHTTPMethodResourceWithRawResponse, + HTTPMethodResourceWithStreamingResponse, + AsyncHTTPMethodResourceWithStreamingResponse, ) from .tls_version import ( - TLSVersion, - AsyncTLSVersion, - TLSVersionWithRawResponse, - AsyncTLSVersionWithRawResponse, - TLSVersionWithStreamingResponse, - AsyncTLSVersionWithStreamingResponse, + TLSVersionResource, + AsyncTLSVersionResource, + TLSVersionResourceWithRawResponse, + AsyncTLSVersionResourceWithRawResponse, + TLSVersionResourceWithStreamingResponse, + AsyncTLSVersionResourceWithStreamingResponse, ) from ....._resource import SyncAPIResource, AsyncAPIResource from ....._response import ( @@ -71,12 +71,12 @@ ) from ....._wrappers import ResultWrapper from .http_protocol import ( - HTTPProtocol, - AsyncHTTPProtocol, - HTTPProtocolWithRawResponse, - AsyncHTTPProtocolWithRawResponse, - HTTPProtocolWithStreamingResponse, - AsyncHTTPProtocolWithStreamingResponse, + HTTPProtocolResource, + AsyncHTTPProtocolResource, + HTTPProtocolResourceWithRawResponse, + AsyncHTTPProtocolResourceWithRawResponse, + HTTPProtocolResourceWithStreamingResponse, + AsyncHTTPProtocolResourceWithStreamingResponse, ) from ....._base_client import ( make_request_options, @@ -84,45 +84,45 @@ from .....types.radar.http import ase_get_params from .....types.radar.http.ase_get_response import AseGetResponse -__all__ = ["Ases", "AsyncAses"] +__all__ = ["AsesResource", "AsyncAsesResource"] -class Ases(SyncAPIResource): +class AsesResource(SyncAPIResource): @cached_property - def bot_class(self) -> BotClass: - return BotClass(self._client) + def bot_class(self) -> BotClassResource: + return BotClassResource(self._client) @cached_property - def device_type(self) -> DeviceType: - return DeviceType(self._client) + def device_type(self) -> DeviceTypeResource: + return DeviceTypeResource(self._client) @cached_property - def http_protocol(self) -> HTTPProtocol: - return HTTPProtocol(self._client) + def http_protocol(self) -> HTTPProtocolResource: + return HTTPProtocolResource(self._client) @cached_property - def http_method(self) -> HTTPMethod: - return HTTPMethod(self._client) + def http_method(self) -> HTTPMethodResource: + return HTTPMethodResource(self._client) @cached_property - def ip_version(self) -> IPVersion: - return IPVersion(self._client) + def ip_version(self) -> IPVersionResource: + return IPVersionResource(self._client) @cached_property - def os(self) -> OS: - return OS(self._client) + def os(self) -> OSResource: + return OSResource(self._client) @cached_property - def tls_version(self) -> TLSVersion: - return TLSVersion(self._client) + def tls_version(self) -> TLSVersionResource: + return TLSVersionResource(self._client) @cached_property - def with_raw_response(self) -> AsesWithRawResponse: - return AsesWithRawResponse(self) + def with_raw_response(self) -> AsesResourceWithRawResponse: + return AsesResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsesWithStreamingResponse: - return AsesWithStreamingResponse(self) + def with_streaming_response(self) -> AsesResourceWithStreamingResponse: + return AsesResourceWithStreamingResponse(self) def get( self, @@ -259,42 +259,42 @@ def get( ) -class AsyncAses(AsyncAPIResource): +class AsyncAsesResource(AsyncAPIResource): @cached_property - def bot_class(self) -> AsyncBotClass: - return AsyncBotClass(self._client) + def bot_class(self) -> AsyncBotClassResource: + return AsyncBotClassResource(self._client) @cached_property - def device_type(self) -> AsyncDeviceType: - return AsyncDeviceType(self._client) + def device_type(self) -> AsyncDeviceTypeResource: + return AsyncDeviceTypeResource(self._client) @cached_property - def http_protocol(self) -> AsyncHTTPProtocol: - return AsyncHTTPProtocol(self._client) + def http_protocol(self) -> AsyncHTTPProtocolResource: + return AsyncHTTPProtocolResource(self._client) @cached_property - def http_method(self) -> AsyncHTTPMethod: - return AsyncHTTPMethod(self._client) + def http_method(self) -> AsyncHTTPMethodResource: + return AsyncHTTPMethodResource(self._client) @cached_property - def ip_version(self) -> AsyncIPVersion: - return AsyncIPVersion(self._client) + def ip_version(self) -> AsyncIPVersionResource: + return AsyncIPVersionResource(self._client) @cached_property - def os(self) -> AsyncOS: - return AsyncOS(self._client) + def os(self) -> AsyncOSResource: + return AsyncOSResource(self._client) @cached_property - def tls_version(self) -> AsyncTLSVersion: - return AsyncTLSVersion(self._client) + def tls_version(self) -> AsyncTLSVersionResource: + return AsyncTLSVersionResource(self._client) @cached_property - def with_raw_response(self) -> AsyncAsesWithRawResponse: - return AsyncAsesWithRawResponse(self) + def with_raw_response(self) -> AsyncAsesResourceWithRawResponse: + return AsyncAsesResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncAsesWithStreamingResponse: - return AsyncAsesWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncAsesResourceWithStreamingResponse: + return AsyncAsesResourceWithStreamingResponse(self) async def get( self, @@ -431,8 +431,8 @@ async def get( ) -class AsesWithRawResponse: - def __init__(self, ases: Ases) -> None: +class AsesResourceWithRawResponse: + def __init__(self, ases: AsesResource) -> None: self._ases = ases self.get = to_raw_response_wrapper( @@ -440,36 +440,36 @@ def __init__(self, ases: Ases) -> None: ) @cached_property - def bot_class(self) -> BotClassWithRawResponse: - return BotClassWithRawResponse(self._ases.bot_class) + def bot_class(self) -> BotClassResourceWithRawResponse: + return BotClassResourceWithRawResponse(self._ases.bot_class) @cached_property - def device_type(self) -> DeviceTypeWithRawResponse: - return DeviceTypeWithRawResponse(self._ases.device_type) + def device_type(self) -> DeviceTypeResourceWithRawResponse: + return DeviceTypeResourceWithRawResponse(self._ases.device_type) @cached_property - def http_protocol(self) -> HTTPProtocolWithRawResponse: - return HTTPProtocolWithRawResponse(self._ases.http_protocol) + def http_protocol(self) -> HTTPProtocolResourceWithRawResponse: + return HTTPProtocolResourceWithRawResponse(self._ases.http_protocol) @cached_property - def http_method(self) -> HTTPMethodWithRawResponse: - return HTTPMethodWithRawResponse(self._ases.http_method) + def http_method(self) -> HTTPMethodResourceWithRawResponse: + return HTTPMethodResourceWithRawResponse(self._ases.http_method) @cached_property - def ip_version(self) -> IPVersionWithRawResponse: - return IPVersionWithRawResponse(self._ases.ip_version) + def ip_version(self) -> IPVersionResourceWithRawResponse: + return IPVersionResourceWithRawResponse(self._ases.ip_version) @cached_property - def os(self) -> OSWithRawResponse: - return OSWithRawResponse(self._ases.os) + def os(self) -> OSResourceWithRawResponse: + return OSResourceWithRawResponse(self._ases.os) @cached_property - def tls_version(self) -> TLSVersionWithRawResponse: - return TLSVersionWithRawResponse(self._ases.tls_version) + def tls_version(self) -> TLSVersionResourceWithRawResponse: + return TLSVersionResourceWithRawResponse(self._ases.tls_version) -class AsyncAsesWithRawResponse: - def __init__(self, ases: AsyncAses) -> None: +class AsyncAsesResourceWithRawResponse: + def __init__(self, ases: AsyncAsesResource) -> None: self._ases = ases self.get = async_to_raw_response_wrapper( @@ -477,36 +477,36 @@ def __init__(self, ases: AsyncAses) -> None: ) @cached_property - def bot_class(self) -> AsyncBotClassWithRawResponse: - return AsyncBotClassWithRawResponse(self._ases.bot_class) + def bot_class(self) -> AsyncBotClassResourceWithRawResponse: + return AsyncBotClassResourceWithRawResponse(self._ases.bot_class) @cached_property - def device_type(self) -> AsyncDeviceTypeWithRawResponse: - return AsyncDeviceTypeWithRawResponse(self._ases.device_type) + def device_type(self) -> AsyncDeviceTypeResourceWithRawResponse: + return AsyncDeviceTypeResourceWithRawResponse(self._ases.device_type) @cached_property - def http_protocol(self) -> AsyncHTTPProtocolWithRawResponse: - return AsyncHTTPProtocolWithRawResponse(self._ases.http_protocol) + def http_protocol(self) -> AsyncHTTPProtocolResourceWithRawResponse: + return AsyncHTTPProtocolResourceWithRawResponse(self._ases.http_protocol) @cached_property - def http_method(self) -> AsyncHTTPMethodWithRawResponse: - return AsyncHTTPMethodWithRawResponse(self._ases.http_method) + def http_method(self) -> AsyncHTTPMethodResourceWithRawResponse: + return AsyncHTTPMethodResourceWithRawResponse(self._ases.http_method) @cached_property - def ip_version(self) -> AsyncIPVersionWithRawResponse: - return AsyncIPVersionWithRawResponse(self._ases.ip_version) + def ip_version(self) -> AsyncIPVersionResourceWithRawResponse: + return AsyncIPVersionResourceWithRawResponse(self._ases.ip_version) @cached_property - def os(self) -> AsyncOSWithRawResponse: - return AsyncOSWithRawResponse(self._ases.os) + def os(self) -> AsyncOSResourceWithRawResponse: + return AsyncOSResourceWithRawResponse(self._ases.os) @cached_property - def tls_version(self) -> AsyncTLSVersionWithRawResponse: - return AsyncTLSVersionWithRawResponse(self._ases.tls_version) + def tls_version(self) -> AsyncTLSVersionResourceWithRawResponse: + return AsyncTLSVersionResourceWithRawResponse(self._ases.tls_version) -class AsesWithStreamingResponse: - def __init__(self, ases: Ases) -> None: +class AsesResourceWithStreamingResponse: + def __init__(self, ases: AsesResource) -> None: self._ases = ases self.get = to_streamed_response_wrapper( @@ -514,36 +514,36 @@ def __init__(self, ases: Ases) -> None: ) @cached_property - def bot_class(self) -> BotClassWithStreamingResponse: - return BotClassWithStreamingResponse(self._ases.bot_class) + def bot_class(self) -> BotClassResourceWithStreamingResponse: + return BotClassResourceWithStreamingResponse(self._ases.bot_class) @cached_property - def device_type(self) -> DeviceTypeWithStreamingResponse: - return DeviceTypeWithStreamingResponse(self._ases.device_type) + def device_type(self) -> DeviceTypeResourceWithStreamingResponse: + return DeviceTypeResourceWithStreamingResponse(self._ases.device_type) @cached_property - def http_protocol(self) -> HTTPProtocolWithStreamingResponse: - return HTTPProtocolWithStreamingResponse(self._ases.http_protocol) + def http_protocol(self) -> HTTPProtocolResourceWithStreamingResponse: + return HTTPProtocolResourceWithStreamingResponse(self._ases.http_protocol) @cached_property - def http_method(self) -> HTTPMethodWithStreamingResponse: - return HTTPMethodWithStreamingResponse(self._ases.http_method) + def http_method(self) -> HTTPMethodResourceWithStreamingResponse: + return HTTPMethodResourceWithStreamingResponse(self._ases.http_method) @cached_property - def ip_version(self) -> IPVersionWithStreamingResponse: - return IPVersionWithStreamingResponse(self._ases.ip_version) + def ip_version(self) -> IPVersionResourceWithStreamingResponse: + return IPVersionResourceWithStreamingResponse(self._ases.ip_version) @cached_property - def os(self) -> OSWithStreamingResponse: - return OSWithStreamingResponse(self._ases.os) + def os(self) -> OSResourceWithStreamingResponse: + return OSResourceWithStreamingResponse(self._ases.os) @cached_property - def tls_version(self) -> TLSVersionWithStreamingResponse: - return TLSVersionWithStreamingResponse(self._ases.tls_version) + def tls_version(self) -> TLSVersionResourceWithStreamingResponse: + return TLSVersionResourceWithStreamingResponse(self._ases.tls_version) -class AsyncAsesWithStreamingResponse: - def __init__(self, ases: AsyncAses) -> None: +class AsyncAsesResourceWithStreamingResponse: + def __init__(self, ases: AsyncAsesResource) -> None: self._ases = ases self.get = async_to_streamed_response_wrapper( @@ -551,29 +551,29 @@ def __init__(self, ases: AsyncAses) -> None: ) @cached_property - def bot_class(self) -> AsyncBotClassWithStreamingResponse: - return AsyncBotClassWithStreamingResponse(self._ases.bot_class) + def bot_class(self) -> AsyncBotClassResourceWithStreamingResponse: + return AsyncBotClassResourceWithStreamingResponse(self._ases.bot_class) @cached_property - def device_type(self) -> AsyncDeviceTypeWithStreamingResponse: - return AsyncDeviceTypeWithStreamingResponse(self._ases.device_type) + def device_type(self) -> AsyncDeviceTypeResourceWithStreamingResponse: + return AsyncDeviceTypeResourceWithStreamingResponse(self._ases.device_type) @cached_property - def http_protocol(self) -> AsyncHTTPProtocolWithStreamingResponse: - return AsyncHTTPProtocolWithStreamingResponse(self._ases.http_protocol) + def http_protocol(self) -> AsyncHTTPProtocolResourceWithStreamingResponse: + return AsyncHTTPProtocolResourceWithStreamingResponse(self._ases.http_protocol) @cached_property - def http_method(self) -> AsyncHTTPMethodWithStreamingResponse: - return AsyncHTTPMethodWithStreamingResponse(self._ases.http_method) + def http_method(self) -> AsyncHTTPMethodResourceWithStreamingResponse: + return AsyncHTTPMethodResourceWithStreamingResponse(self._ases.http_method) @cached_property - def ip_version(self) -> AsyncIPVersionWithStreamingResponse: - return AsyncIPVersionWithStreamingResponse(self._ases.ip_version) + def ip_version(self) -> AsyncIPVersionResourceWithStreamingResponse: + return AsyncIPVersionResourceWithStreamingResponse(self._ases.ip_version) @cached_property - def os(self) -> AsyncOSWithStreamingResponse: - return AsyncOSWithStreamingResponse(self._ases.os) + def os(self) -> AsyncOSResourceWithStreamingResponse: + return AsyncOSResourceWithStreamingResponse(self._ases.os) @cached_property - def tls_version(self) -> AsyncTLSVersionWithStreamingResponse: - return AsyncTLSVersionWithStreamingResponse(self._ases.tls_version) + def tls_version(self) -> AsyncTLSVersionResourceWithStreamingResponse: + return AsyncTLSVersionResourceWithStreamingResponse(self._ases.tls_version) diff --git a/src/cloudflare/resources/radar/http/ases/bot_class.py b/src/cloudflare/resources/radar/http/ases/bot_class.py index c9e5e10167b..809ae7ff1de 100644 --- a/src/cloudflare/resources/radar/http/ases/bot_class.py +++ b/src/cloudflare/resources/radar/http/ases/bot_class.py @@ -28,17 +28,17 @@ from .....types.radar.http.ases import bot_class_get_params from .....types.radar.http.ases.bot_class_get_response import BotClassGetResponse -__all__ = ["BotClass", "AsyncBotClass"] +__all__ = ["BotClassResource", "AsyncBotClassResource"] -class BotClass(SyncAPIResource): +class BotClassResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> BotClassWithRawResponse: - return BotClassWithRawResponse(self) + def with_raw_response(self) -> BotClassResourceWithRawResponse: + return BotClassResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> BotClassWithStreamingResponse: - return BotClassWithStreamingResponse(self) + def with_streaming_response(self) -> BotClassResourceWithStreamingResponse: + return BotClassResourceWithStreamingResponse(self) def get( self, @@ -177,14 +177,14 @@ def get( ) -class AsyncBotClass(AsyncAPIResource): +class AsyncBotClassResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncBotClassWithRawResponse: - return AsyncBotClassWithRawResponse(self) + def with_raw_response(self) -> AsyncBotClassResourceWithRawResponse: + return AsyncBotClassResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncBotClassWithStreamingResponse: - return AsyncBotClassWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncBotClassResourceWithStreamingResponse: + return AsyncBotClassResourceWithStreamingResponse(self) async def get( self, @@ -323,8 +323,8 @@ async def get( ) -class BotClassWithRawResponse: - def __init__(self, bot_class: BotClass) -> None: +class BotClassResourceWithRawResponse: + def __init__(self, bot_class: BotClassResource) -> None: self._bot_class = bot_class self.get = to_raw_response_wrapper( @@ -332,8 +332,8 @@ def __init__(self, bot_class: BotClass) -> None: ) -class AsyncBotClassWithRawResponse: - def __init__(self, bot_class: AsyncBotClass) -> None: +class AsyncBotClassResourceWithRawResponse: + def __init__(self, bot_class: AsyncBotClassResource) -> None: self._bot_class = bot_class self.get = async_to_raw_response_wrapper( @@ -341,8 +341,8 @@ def __init__(self, bot_class: AsyncBotClass) -> None: ) -class BotClassWithStreamingResponse: - def __init__(self, bot_class: BotClass) -> None: +class BotClassResourceWithStreamingResponse: + def __init__(self, bot_class: BotClassResource) -> None: self._bot_class = bot_class self.get = to_streamed_response_wrapper( @@ -350,8 +350,8 @@ def __init__(self, bot_class: BotClass) -> None: ) -class AsyncBotClassWithStreamingResponse: - def __init__(self, bot_class: AsyncBotClass) -> None: +class AsyncBotClassResourceWithStreamingResponse: + def __init__(self, bot_class: AsyncBotClassResource) -> None: self._bot_class = bot_class self.get = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/radar/http/ases/device_type.py b/src/cloudflare/resources/radar/http/ases/device_type.py index 88a1fc4558f..6bad8da2bc3 100644 --- a/src/cloudflare/resources/radar/http/ases/device_type.py +++ b/src/cloudflare/resources/radar/http/ases/device_type.py @@ -28,17 +28,17 @@ from .....types.radar.http.ases import device_type_get_params from .....types.radar.http.ases.device_type_get_response import DeviceTypeGetResponse -__all__ = ["DeviceType", "AsyncDeviceType"] +__all__ = ["DeviceTypeResource", "AsyncDeviceTypeResource"] -class DeviceType(SyncAPIResource): +class DeviceTypeResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> DeviceTypeWithRawResponse: - return DeviceTypeWithRawResponse(self) + def with_raw_response(self) -> DeviceTypeResourceWithRawResponse: + return DeviceTypeResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> DeviceTypeWithStreamingResponse: - return DeviceTypeWithStreamingResponse(self) + def with_streaming_response(self) -> DeviceTypeResourceWithStreamingResponse: + return DeviceTypeResourceWithStreamingResponse(self) def get( self, @@ -175,14 +175,14 @@ def get( ) -class AsyncDeviceType(AsyncAPIResource): +class AsyncDeviceTypeResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncDeviceTypeWithRawResponse: - return AsyncDeviceTypeWithRawResponse(self) + def with_raw_response(self) -> AsyncDeviceTypeResourceWithRawResponse: + return AsyncDeviceTypeResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncDeviceTypeWithStreamingResponse: - return AsyncDeviceTypeWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncDeviceTypeResourceWithStreamingResponse: + return AsyncDeviceTypeResourceWithStreamingResponse(self) async def get( self, @@ -319,8 +319,8 @@ async def get( ) -class DeviceTypeWithRawResponse: - def __init__(self, device_type: DeviceType) -> None: +class DeviceTypeResourceWithRawResponse: + def __init__(self, device_type: DeviceTypeResource) -> None: self._device_type = device_type self.get = to_raw_response_wrapper( @@ -328,8 +328,8 @@ def __init__(self, device_type: DeviceType) -> None: ) -class AsyncDeviceTypeWithRawResponse: - def __init__(self, device_type: AsyncDeviceType) -> None: +class AsyncDeviceTypeResourceWithRawResponse: + def __init__(self, device_type: AsyncDeviceTypeResource) -> None: self._device_type = device_type self.get = async_to_raw_response_wrapper( @@ -337,8 +337,8 @@ def __init__(self, device_type: AsyncDeviceType) -> None: ) -class DeviceTypeWithStreamingResponse: - def __init__(self, device_type: DeviceType) -> None: +class DeviceTypeResourceWithStreamingResponse: + def __init__(self, device_type: DeviceTypeResource) -> None: self._device_type = device_type self.get = to_streamed_response_wrapper( @@ -346,8 +346,8 @@ def __init__(self, device_type: DeviceType) -> None: ) -class AsyncDeviceTypeWithStreamingResponse: - def __init__(self, device_type: AsyncDeviceType) -> None: +class AsyncDeviceTypeResourceWithStreamingResponse: + def __init__(self, device_type: AsyncDeviceTypeResource) -> None: self._device_type = device_type self.get = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/radar/http/ases/http_method.py b/src/cloudflare/resources/radar/http/ases/http_method.py index cfe7fcf6c1f..9d6f41fb2b9 100644 --- a/src/cloudflare/resources/radar/http/ases/http_method.py +++ b/src/cloudflare/resources/radar/http/ases/http_method.py @@ -28,17 +28,17 @@ from .....types.radar.http.ases import http_method_get_params from .....types.radar.http.ases.http_method_get_response import HTTPMethodGetResponse -__all__ = ["HTTPMethod", "AsyncHTTPMethod"] +__all__ = ["HTTPMethodResource", "AsyncHTTPMethodResource"] -class HTTPMethod(SyncAPIResource): +class HTTPMethodResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> HTTPMethodWithRawResponse: - return HTTPMethodWithRawResponse(self) + def with_raw_response(self) -> HTTPMethodResourceWithRawResponse: + return HTTPMethodResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> HTTPMethodWithStreamingResponse: - return HTTPMethodWithStreamingResponse(self) + def with_streaming_response(self) -> HTTPMethodResourceWithStreamingResponse: + return HTTPMethodResourceWithStreamingResponse(self) def get( self, @@ -175,14 +175,14 @@ def get( ) -class AsyncHTTPMethod(AsyncAPIResource): +class AsyncHTTPMethodResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncHTTPMethodWithRawResponse: - return AsyncHTTPMethodWithRawResponse(self) + def with_raw_response(self) -> AsyncHTTPMethodResourceWithRawResponse: + return AsyncHTTPMethodResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncHTTPMethodWithStreamingResponse: - return AsyncHTTPMethodWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncHTTPMethodResourceWithStreamingResponse: + return AsyncHTTPMethodResourceWithStreamingResponse(self) async def get( self, @@ -319,8 +319,8 @@ async def get( ) -class HTTPMethodWithRawResponse: - def __init__(self, http_method: HTTPMethod) -> None: +class HTTPMethodResourceWithRawResponse: + def __init__(self, http_method: HTTPMethodResource) -> None: self._http_method = http_method self.get = to_raw_response_wrapper( @@ -328,8 +328,8 @@ def __init__(self, http_method: HTTPMethod) -> None: ) -class AsyncHTTPMethodWithRawResponse: - def __init__(self, http_method: AsyncHTTPMethod) -> None: +class AsyncHTTPMethodResourceWithRawResponse: + def __init__(self, http_method: AsyncHTTPMethodResource) -> None: self._http_method = http_method self.get = async_to_raw_response_wrapper( @@ -337,8 +337,8 @@ def __init__(self, http_method: AsyncHTTPMethod) -> None: ) -class HTTPMethodWithStreamingResponse: - def __init__(self, http_method: HTTPMethod) -> None: +class HTTPMethodResourceWithStreamingResponse: + def __init__(self, http_method: HTTPMethodResource) -> None: self._http_method = http_method self.get = to_streamed_response_wrapper( @@ -346,8 +346,8 @@ def __init__(self, http_method: HTTPMethod) -> None: ) -class AsyncHTTPMethodWithStreamingResponse: - def __init__(self, http_method: AsyncHTTPMethod) -> None: +class AsyncHTTPMethodResourceWithStreamingResponse: + def __init__(self, http_method: AsyncHTTPMethodResource) -> None: self._http_method = http_method self.get = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/radar/http/ases/http_protocol.py b/src/cloudflare/resources/radar/http/ases/http_protocol.py index 3bbb8b23e06..b3ef2da221b 100644 --- a/src/cloudflare/resources/radar/http/ases/http_protocol.py +++ b/src/cloudflare/resources/radar/http/ases/http_protocol.py @@ -28,17 +28,17 @@ from .....types.radar.http.ases import http_protocol_get_params from .....types.radar.http.ases.http_protocol_get_response import HTTPProtocolGetResponse -__all__ = ["HTTPProtocol", "AsyncHTTPProtocol"] +__all__ = ["HTTPProtocolResource", "AsyncHTTPProtocolResource"] -class HTTPProtocol(SyncAPIResource): +class HTTPProtocolResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> HTTPProtocolWithRawResponse: - return HTTPProtocolWithRawResponse(self) + def with_raw_response(self) -> HTTPProtocolResourceWithRawResponse: + return HTTPProtocolResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> HTTPProtocolWithStreamingResponse: - return HTTPProtocolWithStreamingResponse(self) + def with_streaming_response(self) -> HTTPProtocolResourceWithStreamingResponse: + return HTTPProtocolResourceWithStreamingResponse(self) def get( self, @@ -171,14 +171,14 @@ def get( ) -class AsyncHTTPProtocol(AsyncAPIResource): +class AsyncHTTPProtocolResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncHTTPProtocolWithRawResponse: - return AsyncHTTPProtocolWithRawResponse(self) + def with_raw_response(self) -> AsyncHTTPProtocolResourceWithRawResponse: + return AsyncHTTPProtocolResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncHTTPProtocolWithStreamingResponse: - return AsyncHTTPProtocolWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncHTTPProtocolResourceWithStreamingResponse: + return AsyncHTTPProtocolResourceWithStreamingResponse(self) async def get( self, @@ -311,8 +311,8 @@ async def get( ) -class HTTPProtocolWithRawResponse: - def __init__(self, http_protocol: HTTPProtocol) -> None: +class HTTPProtocolResourceWithRawResponse: + def __init__(self, http_protocol: HTTPProtocolResource) -> None: self._http_protocol = http_protocol self.get = to_raw_response_wrapper( @@ -320,8 +320,8 @@ def __init__(self, http_protocol: HTTPProtocol) -> None: ) -class AsyncHTTPProtocolWithRawResponse: - def __init__(self, http_protocol: AsyncHTTPProtocol) -> None: +class AsyncHTTPProtocolResourceWithRawResponse: + def __init__(self, http_protocol: AsyncHTTPProtocolResource) -> None: self._http_protocol = http_protocol self.get = async_to_raw_response_wrapper( @@ -329,8 +329,8 @@ def __init__(self, http_protocol: AsyncHTTPProtocol) -> None: ) -class HTTPProtocolWithStreamingResponse: - def __init__(self, http_protocol: HTTPProtocol) -> None: +class HTTPProtocolResourceWithStreamingResponse: + def __init__(self, http_protocol: HTTPProtocolResource) -> None: self._http_protocol = http_protocol self.get = to_streamed_response_wrapper( @@ -338,8 +338,8 @@ def __init__(self, http_protocol: HTTPProtocol) -> None: ) -class AsyncHTTPProtocolWithStreamingResponse: - def __init__(self, http_protocol: AsyncHTTPProtocol) -> None: +class AsyncHTTPProtocolResourceWithStreamingResponse: + def __init__(self, http_protocol: AsyncHTTPProtocolResource) -> None: self._http_protocol = http_protocol self.get = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/radar/http/ases/ip_version.py b/src/cloudflare/resources/radar/http/ases/ip_version.py index 61e9a074641..b62867a8aa9 100644 --- a/src/cloudflare/resources/radar/http/ases/ip_version.py +++ b/src/cloudflare/resources/radar/http/ases/ip_version.py @@ -28,17 +28,17 @@ from .....types.radar.http.ases import ip_version_get_params from .....types.radar.http.ases.ip_version_get_response import IPVersionGetResponse -__all__ = ["IPVersion", "AsyncIPVersion"] +__all__ = ["IPVersionResource", "AsyncIPVersionResource"] -class IPVersion(SyncAPIResource): +class IPVersionResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> IPVersionWithRawResponse: - return IPVersionWithRawResponse(self) + def with_raw_response(self) -> IPVersionResourceWithRawResponse: + return IPVersionResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> IPVersionWithStreamingResponse: - return IPVersionWithStreamingResponse(self) + def with_streaming_response(self) -> IPVersionResourceWithStreamingResponse: + return IPVersionResourceWithStreamingResponse(self) def get( self, @@ -175,14 +175,14 @@ def get( ) -class AsyncIPVersion(AsyncAPIResource): +class AsyncIPVersionResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncIPVersionWithRawResponse: - return AsyncIPVersionWithRawResponse(self) + def with_raw_response(self) -> AsyncIPVersionResourceWithRawResponse: + return AsyncIPVersionResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncIPVersionWithStreamingResponse: - return AsyncIPVersionWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncIPVersionResourceWithStreamingResponse: + return AsyncIPVersionResourceWithStreamingResponse(self) async def get( self, @@ -319,8 +319,8 @@ async def get( ) -class IPVersionWithRawResponse: - def __init__(self, ip_version: IPVersion) -> None: +class IPVersionResourceWithRawResponse: + def __init__(self, ip_version: IPVersionResource) -> None: self._ip_version = ip_version self.get = to_raw_response_wrapper( @@ -328,8 +328,8 @@ def __init__(self, ip_version: IPVersion) -> None: ) -class AsyncIPVersionWithRawResponse: - def __init__(self, ip_version: AsyncIPVersion) -> None: +class AsyncIPVersionResourceWithRawResponse: + def __init__(self, ip_version: AsyncIPVersionResource) -> None: self._ip_version = ip_version self.get = async_to_raw_response_wrapper( @@ -337,8 +337,8 @@ def __init__(self, ip_version: AsyncIPVersion) -> None: ) -class IPVersionWithStreamingResponse: - def __init__(self, ip_version: IPVersion) -> None: +class IPVersionResourceWithStreamingResponse: + def __init__(self, ip_version: IPVersionResource) -> None: self._ip_version = ip_version self.get = to_streamed_response_wrapper( @@ -346,8 +346,8 @@ def __init__(self, ip_version: IPVersion) -> None: ) -class AsyncIPVersionWithStreamingResponse: - def __init__(self, ip_version: AsyncIPVersion) -> None: +class AsyncIPVersionResourceWithStreamingResponse: + def __init__(self, ip_version: AsyncIPVersionResource) -> None: self._ip_version = ip_version self.get = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/radar/http/ases/os.py b/src/cloudflare/resources/radar/http/ases/os.py index 86a147dcf38..4b9be3919f3 100644 --- a/src/cloudflare/resources/radar/http/ases/os.py +++ b/src/cloudflare/resources/radar/http/ases/os.py @@ -28,17 +28,17 @@ from .....types.radar.http.ases import os_get_params from .....types.radar.http.ases.os_get_response import OSGetResponse -__all__ = ["OS", "AsyncOS"] +__all__ = ["OSResource", "AsyncOSResource"] -class OS(SyncAPIResource): +class OSResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> OSWithRawResponse: - return OSWithRawResponse(self) + def with_raw_response(self) -> OSResourceWithRawResponse: + return OSResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> OSWithStreamingResponse: - return OSWithStreamingResponse(self) + def with_streaming_response(self) -> OSResourceWithStreamingResponse: + return OSResourceWithStreamingResponse(self) def get( self, @@ -174,14 +174,14 @@ def get( ) -class AsyncOS(AsyncAPIResource): +class AsyncOSResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncOSWithRawResponse: - return AsyncOSWithRawResponse(self) + def with_raw_response(self) -> AsyncOSResourceWithRawResponse: + return AsyncOSResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncOSWithStreamingResponse: - return AsyncOSWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncOSResourceWithStreamingResponse: + return AsyncOSResourceWithStreamingResponse(self) async def get( self, @@ -317,8 +317,8 @@ async def get( ) -class OSWithRawResponse: - def __init__(self, os: OS) -> None: +class OSResourceWithRawResponse: + def __init__(self, os: OSResource) -> None: self._os = os self.get = to_raw_response_wrapper( @@ -326,8 +326,8 @@ def __init__(self, os: OS) -> None: ) -class AsyncOSWithRawResponse: - def __init__(self, os: AsyncOS) -> None: +class AsyncOSResourceWithRawResponse: + def __init__(self, os: AsyncOSResource) -> None: self._os = os self.get = async_to_raw_response_wrapper( @@ -335,8 +335,8 @@ def __init__(self, os: AsyncOS) -> None: ) -class OSWithStreamingResponse: - def __init__(self, os: OS) -> None: +class OSResourceWithStreamingResponse: + def __init__(self, os: OSResource) -> None: self._os = os self.get = to_streamed_response_wrapper( @@ -344,8 +344,8 @@ def __init__(self, os: OS) -> None: ) -class AsyncOSWithStreamingResponse: - def __init__(self, os: AsyncOS) -> None: +class AsyncOSResourceWithStreamingResponse: + def __init__(self, os: AsyncOSResource) -> None: self._os = os self.get = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/radar/http/ases/tls_version.py b/src/cloudflare/resources/radar/http/ases/tls_version.py index 3524d76f10a..10cd0b988e2 100644 --- a/src/cloudflare/resources/radar/http/ases/tls_version.py +++ b/src/cloudflare/resources/radar/http/ases/tls_version.py @@ -28,17 +28,17 @@ from .....types.radar.http.ases import tls_version_get_params from .....types.radar.http.ases.tls_version_get_response import TLSVersionGetResponse -__all__ = ["TLSVersion", "AsyncTLSVersion"] +__all__ = ["TLSVersionResource", "AsyncTLSVersionResource"] -class TLSVersion(SyncAPIResource): +class TLSVersionResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> TLSVersionWithRawResponse: - return TLSVersionWithRawResponse(self) + def with_raw_response(self) -> TLSVersionResourceWithRawResponse: + return TLSVersionResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> TLSVersionWithStreamingResponse: - return TLSVersionWithStreamingResponse(self) + def with_streaming_response(self) -> TLSVersionResourceWithStreamingResponse: + return TLSVersionResourceWithStreamingResponse(self) def get( self, @@ -175,14 +175,14 @@ def get( ) -class AsyncTLSVersion(AsyncAPIResource): +class AsyncTLSVersionResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncTLSVersionWithRawResponse: - return AsyncTLSVersionWithRawResponse(self) + def with_raw_response(self) -> AsyncTLSVersionResourceWithRawResponse: + return AsyncTLSVersionResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncTLSVersionWithStreamingResponse: - return AsyncTLSVersionWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncTLSVersionResourceWithStreamingResponse: + return AsyncTLSVersionResourceWithStreamingResponse(self) async def get( self, @@ -319,8 +319,8 @@ async def get( ) -class TLSVersionWithRawResponse: - def __init__(self, tls_version: TLSVersion) -> None: +class TLSVersionResourceWithRawResponse: + def __init__(self, tls_version: TLSVersionResource) -> None: self._tls_version = tls_version self.get = to_raw_response_wrapper( @@ -328,8 +328,8 @@ def __init__(self, tls_version: TLSVersion) -> None: ) -class AsyncTLSVersionWithRawResponse: - def __init__(self, tls_version: AsyncTLSVersion) -> None: +class AsyncTLSVersionResourceWithRawResponse: + def __init__(self, tls_version: AsyncTLSVersionResource) -> None: self._tls_version = tls_version self.get = async_to_raw_response_wrapper( @@ -337,8 +337,8 @@ def __init__(self, tls_version: AsyncTLSVersion) -> None: ) -class TLSVersionWithStreamingResponse: - def __init__(self, tls_version: TLSVersion) -> None: +class TLSVersionResourceWithStreamingResponse: + def __init__(self, tls_version: TLSVersionResource) -> None: self._tls_version = tls_version self.get = to_streamed_response_wrapper( @@ -346,8 +346,8 @@ def __init__(self, tls_version: TLSVersion) -> None: ) -class AsyncTLSVersionWithStreamingResponse: - def __init__(self, tls_version: AsyncTLSVersion) -> None: +class AsyncTLSVersionResourceWithStreamingResponse: + def __init__(self, tls_version: AsyncTLSVersionResource) -> None: self._tls_version = tls_version self.get = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/radar/http/http.py b/src/cloudflare/resources/radar/http/http.py index b858685323c..b8a704fd14d 100644 --- a/src/cloudflare/resources/radar/http/http.py +++ b/src/cloudflare/resources/radar/http/http.py @@ -3,208 +3,208 @@ from __future__ import annotations from .top import ( - Top, - AsyncTop, - TopWithRawResponse, - AsyncTopWithRawResponse, - TopWithStreamingResponse, - AsyncTopWithStreamingResponse, + TopResource, + AsyncTopResource, + TopResourceWithRawResponse, + AsyncTopResourceWithRawResponse, + TopResourceWithStreamingResponse, + AsyncTopResourceWithStreamingResponse, ) from .ases import ( - Ases, - AsyncAses, - AsesWithRawResponse, - AsyncAsesWithRawResponse, - AsesWithStreamingResponse, - AsyncAsesWithStreamingResponse, + AsesResource, + AsyncAsesResource, + AsesResourceWithRawResponse, + AsyncAsesResourceWithRawResponse, + AsesResourceWithStreamingResponse, + AsyncAsesResourceWithStreamingResponse, ) from .summary import ( - Summary, - AsyncSummary, - SummaryWithRawResponse, - AsyncSummaryWithRawResponse, - SummaryWithStreamingResponse, - AsyncSummaryWithStreamingResponse, + SummaryResource, + AsyncSummaryResource, + SummaryResourceWithRawResponse, + AsyncSummaryResourceWithRawResponse, + SummaryResourceWithStreamingResponse, + AsyncSummaryResourceWithStreamingResponse, ) -from .ases.ases import Ases, AsyncAses +from .ases.ases import AsesResource, AsyncAsesResource from .locations import ( - Locations, - AsyncLocations, - LocationsWithRawResponse, - AsyncLocationsWithRawResponse, - LocationsWithStreamingResponse, - AsyncLocationsWithStreamingResponse, + LocationsResource, + AsyncLocationsResource, + LocationsResourceWithRawResponse, + AsyncLocationsResourceWithRawResponse, + LocationsResourceWithStreamingResponse, + AsyncLocationsResourceWithStreamingResponse, ) from ...._compat import cached_property from ...._resource import SyncAPIResource, AsyncAPIResource from .timeseries_groups import ( - TimeseriesGroups, - AsyncTimeseriesGroups, - TimeseriesGroupsWithRawResponse, - AsyncTimeseriesGroupsWithRawResponse, - TimeseriesGroupsWithStreamingResponse, - AsyncTimeseriesGroupsWithStreamingResponse, + TimeseriesGroupsResource, + AsyncTimeseriesGroupsResource, + TimeseriesGroupsResourceWithRawResponse, + AsyncTimeseriesGroupsResourceWithRawResponse, + TimeseriesGroupsResourceWithStreamingResponse, + AsyncTimeseriesGroupsResourceWithStreamingResponse, ) -from .locations.locations import Locations, AsyncLocations +from .locations.locations import LocationsResource, AsyncLocationsResource -__all__ = ["HTTP", "AsyncHTTP"] +__all__ = ["HTTPResource", "AsyncHTTPResource"] -class HTTP(SyncAPIResource): +class HTTPResource(SyncAPIResource): @cached_property - def top(self) -> Top: - return Top(self._client) + def top(self) -> TopResource: + return TopResource(self._client) @cached_property - def locations(self) -> Locations: - return Locations(self._client) + def locations(self) -> LocationsResource: + return LocationsResource(self._client) @cached_property - def ases(self) -> Ases: - return Ases(self._client) + def ases(self) -> AsesResource: + return AsesResource(self._client) @cached_property - def summary(self) -> Summary: - return Summary(self._client) + def summary(self) -> SummaryResource: + return SummaryResource(self._client) @cached_property - def timeseries_groups(self) -> TimeseriesGroups: - return TimeseriesGroups(self._client) + def timeseries_groups(self) -> TimeseriesGroupsResource: + return TimeseriesGroupsResource(self._client) @cached_property - def with_raw_response(self) -> HTTPWithRawResponse: - return HTTPWithRawResponse(self) + def with_raw_response(self) -> HTTPResourceWithRawResponse: + return HTTPResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> HTTPWithStreamingResponse: - return HTTPWithStreamingResponse(self) + def with_streaming_response(self) -> HTTPResourceWithStreamingResponse: + return HTTPResourceWithStreamingResponse(self) -class AsyncHTTP(AsyncAPIResource): +class AsyncHTTPResource(AsyncAPIResource): @cached_property - def top(self) -> AsyncTop: - return AsyncTop(self._client) + def top(self) -> AsyncTopResource: + return AsyncTopResource(self._client) @cached_property - def locations(self) -> AsyncLocations: - return AsyncLocations(self._client) + def locations(self) -> AsyncLocationsResource: + return AsyncLocationsResource(self._client) @cached_property - def ases(self) -> AsyncAses: - return AsyncAses(self._client) + def ases(self) -> AsyncAsesResource: + return AsyncAsesResource(self._client) @cached_property - def summary(self) -> AsyncSummary: - return AsyncSummary(self._client) + def summary(self) -> AsyncSummaryResource: + return AsyncSummaryResource(self._client) @cached_property - def timeseries_groups(self) -> AsyncTimeseriesGroups: - return AsyncTimeseriesGroups(self._client) + def timeseries_groups(self) -> AsyncTimeseriesGroupsResource: + return AsyncTimeseriesGroupsResource(self._client) @cached_property - def with_raw_response(self) -> AsyncHTTPWithRawResponse: - return AsyncHTTPWithRawResponse(self) + def with_raw_response(self) -> AsyncHTTPResourceWithRawResponse: + return AsyncHTTPResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncHTTPWithStreamingResponse: - return AsyncHTTPWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncHTTPResourceWithStreamingResponse: + return AsyncHTTPResourceWithStreamingResponse(self) -class HTTPWithRawResponse: - def __init__(self, http: HTTP) -> None: +class HTTPResourceWithRawResponse: + def __init__(self, http: HTTPResource) -> None: self._http = http @cached_property - def top(self) -> TopWithRawResponse: - return TopWithRawResponse(self._http.top) + def top(self) -> TopResourceWithRawResponse: + return TopResourceWithRawResponse(self._http.top) @cached_property - def locations(self) -> LocationsWithRawResponse: - return LocationsWithRawResponse(self._http.locations) + def locations(self) -> LocationsResourceWithRawResponse: + return LocationsResourceWithRawResponse(self._http.locations) @cached_property - def ases(self) -> AsesWithRawResponse: - return AsesWithRawResponse(self._http.ases) + def ases(self) -> AsesResourceWithRawResponse: + return AsesResourceWithRawResponse(self._http.ases) @cached_property - def summary(self) -> SummaryWithRawResponse: - return SummaryWithRawResponse(self._http.summary) + def summary(self) -> SummaryResourceWithRawResponse: + return SummaryResourceWithRawResponse(self._http.summary) @cached_property - def timeseries_groups(self) -> TimeseriesGroupsWithRawResponse: - return TimeseriesGroupsWithRawResponse(self._http.timeseries_groups) + def timeseries_groups(self) -> TimeseriesGroupsResourceWithRawResponse: + return TimeseriesGroupsResourceWithRawResponse(self._http.timeseries_groups) -class AsyncHTTPWithRawResponse: - def __init__(self, http: AsyncHTTP) -> None: +class AsyncHTTPResourceWithRawResponse: + def __init__(self, http: AsyncHTTPResource) -> None: self._http = http @cached_property - def top(self) -> AsyncTopWithRawResponse: - return AsyncTopWithRawResponse(self._http.top) + def top(self) -> AsyncTopResourceWithRawResponse: + return AsyncTopResourceWithRawResponse(self._http.top) @cached_property - def locations(self) -> AsyncLocationsWithRawResponse: - return AsyncLocationsWithRawResponse(self._http.locations) + def locations(self) -> AsyncLocationsResourceWithRawResponse: + return AsyncLocationsResourceWithRawResponse(self._http.locations) @cached_property - def ases(self) -> AsyncAsesWithRawResponse: - return AsyncAsesWithRawResponse(self._http.ases) + def ases(self) -> AsyncAsesResourceWithRawResponse: + return AsyncAsesResourceWithRawResponse(self._http.ases) @cached_property - def summary(self) -> AsyncSummaryWithRawResponse: - return AsyncSummaryWithRawResponse(self._http.summary) + def summary(self) -> AsyncSummaryResourceWithRawResponse: + return AsyncSummaryResourceWithRawResponse(self._http.summary) @cached_property - def timeseries_groups(self) -> AsyncTimeseriesGroupsWithRawResponse: - return AsyncTimeseriesGroupsWithRawResponse(self._http.timeseries_groups) + def timeseries_groups(self) -> AsyncTimeseriesGroupsResourceWithRawResponse: + return AsyncTimeseriesGroupsResourceWithRawResponse(self._http.timeseries_groups) -class HTTPWithStreamingResponse: - def __init__(self, http: HTTP) -> None: +class HTTPResourceWithStreamingResponse: + def __init__(self, http: HTTPResource) -> None: self._http = http @cached_property - def top(self) -> TopWithStreamingResponse: - return TopWithStreamingResponse(self._http.top) + def top(self) -> TopResourceWithStreamingResponse: + return TopResourceWithStreamingResponse(self._http.top) @cached_property - def locations(self) -> LocationsWithStreamingResponse: - return LocationsWithStreamingResponse(self._http.locations) + def locations(self) -> LocationsResourceWithStreamingResponse: + return LocationsResourceWithStreamingResponse(self._http.locations) @cached_property - def ases(self) -> AsesWithStreamingResponse: - return AsesWithStreamingResponse(self._http.ases) + def ases(self) -> AsesResourceWithStreamingResponse: + return AsesResourceWithStreamingResponse(self._http.ases) @cached_property - def summary(self) -> SummaryWithStreamingResponse: - return SummaryWithStreamingResponse(self._http.summary) + def summary(self) -> SummaryResourceWithStreamingResponse: + return SummaryResourceWithStreamingResponse(self._http.summary) @cached_property - def timeseries_groups(self) -> TimeseriesGroupsWithStreamingResponse: - return TimeseriesGroupsWithStreamingResponse(self._http.timeseries_groups) + def timeseries_groups(self) -> TimeseriesGroupsResourceWithStreamingResponse: + return TimeseriesGroupsResourceWithStreamingResponse(self._http.timeseries_groups) -class AsyncHTTPWithStreamingResponse: - def __init__(self, http: AsyncHTTP) -> None: +class AsyncHTTPResourceWithStreamingResponse: + def __init__(self, http: AsyncHTTPResource) -> None: self._http = http @cached_property - def top(self) -> AsyncTopWithStreamingResponse: - return AsyncTopWithStreamingResponse(self._http.top) + def top(self) -> AsyncTopResourceWithStreamingResponse: + return AsyncTopResourceWithStreamingResponse(self._http.top) @cached_property - def locations(self) -> AsyncLocationsWithStreamingResponse: - return AsyncLocationsWithStreamingResponse(self._http.locations) + def locations(self) -> AsyncLocationsResourceWithStreamingResponse: + return AsyncLocationsResourceWithStreamingResponse(self._http.locations) @cached_property - def ases(self) -> AsyncAsesWithStreamingResponse: - return AsyncAsesWithStreamingResponse(self._http.ases) + def ases(self) -> AsyncAsesResourceWithStreamingResponse: + return AsyncAsesResourceWithStreamingResponse(self._http.ases) @cached_property - def summary(self) -> AsyncSummaryWithStreamingResponse: - return AsyncSummaryWithStreamingResponse(self._http.summary) + def summary(self) -> AsyncSummaryResourceWithStreamingResponse: + return AsyncSummaryResourceWithStreamingResponse(self._http.summary) @cached_property - def timeseries_groups(self) -> AsyncTimeseriesGroupsWithStreamingResponse: - return AsyncTimeseriesGroupsWithStreamingResponse(self._http.timeseries_groups) + def timeseries_groups(self) -> AsyncTimeseriesGroupsResourceWithStreamingResponse: + return AsyncTimeseriesGroupsResourceWithStreamingResponse(self._http.timeseries_groups) diff --git a/src/cloudflare/resources/radar/http/locations/__init__.py b/src/cloudflare/resources/radar/http/locations/__init__.py index 9dbcd9c4ebe..6ea85e36a11 100644 --- a/src/cloudflare/resources/radar/http/locations/__init__.py +++ b/src/cloudflare/resources/radar/http/locations/__init__.py @@ -1,117 +1,117 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from .os import ( - OS, - AsyncOS, - OSWithRawResponse, - AsyncOSWithRawResponse, - OSWithStreamingResponse, - AsyncOSWithStreamingResponse, + OSResource, + AsyncOSResource, + OSResourceWithRawResponse, + AsyncOSResourceWithRawResponse, + OSResourceWithStreamingResponse, + AsyncOSResourceWithStreamingResponse, ) from .bot_class import ( - BotClass, - AsyncBotClass, - BotClassWithRawResponse, - AsyncBotClassWithRawResponse, - BotClassWithStreamingResponse, - AsyncBotClassWithStreamingResponse, + BotClassResource, + AsyncBotClassResource, + BotClassResourceWithRawResponse, + AsyncBotClassResourceWithRawResponse, + BotClassResourceWithStreamingResponse, + AsyncBotClassResourceWithStreamingResponse, ) from .locations import ( - Locations, - AsyncLocations, - LocationsWithRawResponse, - AsyncLocationsWithRawResponse, - LocationsWithStreamingResponse, - AsyncLocationsWithStreamingResponse, + LocationsResource, + AsyncLocationsResource, + LocationsResourceWithRawResponse, + AsyncLocationsResourceWithRawResponse, + LocationsResourceWithStreamingResponse, + AsyncLocationsResourceWithStreamingResponse, ) from .ip_version import ( - IPVersion, - AsyncIPVersion, - IPVersionWithRawResponse, - AsyncIPVersionWithRawResponse, - IPVersionWithStreamingResponse, - AsyncIPVersionWithStreamingResponse, + IPVersionResource, + AsyncIPVersionResource, + IPVersionResourceWithRawResponse, + AsyncIPVersionResourceWithRawResponse, + IPVersionResourceWithStreamingResponse, + AsyncIPVersionResourceWithStreamingResponse, ) from .device_type import ( - DeviceType, - AsyncDeviceType, - DeviceTypeWithRawResponse, - AsyncDeviceTypeWithRawResponse, - DeviceTypeWithStreamingResponse, - AsyncDeviceTypeWithStreamingResponse, + DeviceTypeResource, + AsyncDeviceTypeResource, + DeviceTypeResourceWithRawResponse, + AsyncDeviceTypeResourceWithRawResponse, + DeviceTypeResourceWithStreamingResponse, + AsyncDeviceTypeResourceWithStreamingResponse, ) from .http_method import ( - HTTPMethod, - AsyncHTTPMethod, - HTTPMethodWithRawResponse, - AsyncHTTPMethodWithRawResponse, - HTTPMethodWithStreamingResponse, - AsyncHTTPMethodWithStreamingResponse, + HTTPMethodResource, + AsyncHTTPMethodResource, + HTTPMethodResourceWithRawResponse, + AsyncHTTPMethodResourceWithRawResponse, + HTTPMethodResourceWithStreamingResponse, + AsyncHTTPMethodResourceWithStreamingResponse, ) from .tls_version import ( - TLSVersion, - AsyncTLSVersion, - TLSVersionWithRawResponse, - AsyncTLSVersionWithRawResponse, - TLSVersionWithStreamingResponse, - AsyncTLSVersionWithStreamingResponse, + TLSVersionResource, + AsyncTLSVersionResource, + TLSVersionResourceWithRawResponse, + AsyncTLSVersionResourceWithRawResponse, + TLSVersionResourceWithStreamingResponse, + AsyncTLSVersionResourceWithStreamingResponse, ) from .http_protocol import ( - HTTPProtocol, - AsyncHTTPProtocol, - HTTPProtocolWithRawResponse, - AsyncHTTPProtocolWithRawResponse, - HTTPProtocolWithStreamingResponse, - AsyncHTTPProtocolWithStreamingResponse, + HTTPProtocolResource, + AsyncHTTPProtocolResource, + HTTPProtocolResourceWithRawResponse, + AsyncHTTPProtocolResourceWithRawResponse, + HTTPProtocolResourceWithStreamingResponse, + AsyncHTTPProtocolResourceWithStreamingResponse, ) __all__ = [ - "BotClass", - "AsyncBotClass", - "BotClassWithRawResponse", - "AsyncBotClassWithRawResponse", - "BotClassWithStreamingResponse", - "AsyncBotClassWithStreamingResponse", - "DeviceType", - "AsyncDeviceType", - "DeviceTypeWithRawResponse", - "AsyncDeviceTypeWithRawResponse", - "DeviceTypeWithStreamingResponse", - "AsyncDeviceTypeWithStreamingResponse", - "HTTPProtocol", - "AsyncHTTPProtocol", - "HTTPProtocolWithRawResponse", - "AsyncHTTPProtocolWithRawResponse", - "HTTPProtocolWithStreamingResponse", - "AsyncHTTPProtocolWithStreamingResponse", - "HTTPMethod", - "AsyncHTTPMethod", - "HTTPMethodWithRawResponse", - "AsyncHTTPMethodWithRawResponse", - "HTTPMethodWithStreamingResponse", - "AsyncHTTPMethodWithStreamingResponse", - "IPVersion", - "AsyncIPVersion", - "IPVersionWithRawResponse", - "AsyncIPVersionWithRawResponse", - "IPVersionWithStreamingResponse", - "AsyncIPVersionWithStreamingResponse", - "OS", - "AsyncOS", - "OSWithRawResponse", - "AsyncOSWithRawResponse", - "OSWithStreamingResponse", - "AsyncOSWithStreamingResponse", - "TLSVersion", - "AsyncTLSVersion", - "TLSVersionWithRawResponse", - "AsyncTLSVersionWithRawResponse", - "TLSVersionWithStreamingResponse", - "AsyncTLSVersionWithStreamingResponse", - "Locations", - "AsyncLocations", - "LocationsWithRawResponse", - "AsyncLocationsWithRawResponse", - "LocationsWithStreamingResponse", - "AsyncLocationsWithStreamingResponse", + "BotClassResource", + "AsyncBotClassResource", + "BotClassResourceWithRawResponse", + "AsyncBotClassResourceWithRawResponse", + "BotClassResourceWithStreamingResponse", + "AsyncBotClassResourceWithStreamingResponse", + "DeviceTypeResource", + "AsyncDeviceTypeResource", + "DeviceTypeResourceWithRawResponse", + "AsyncDeviceTypeResourceWithRawResponse", + "DeviceTypeResourceWithStreamingResponse", + "AsyncDeviceTypeResourceWithStreamingResponse", + "HTTPProtocolResource", + "AsyncHTTPProtocolResource", + "HTTPProtocolResourceWithRawResponse", + "AsyncHTTPProtocolResourceWithRawResponse", + "HTTPProtocolResourceWithStreamingResponse", + "AsyncHTTPProtocolResourceWithStreamingResponse", + "HTTPMethodResource", + "AsyncHTTPMethodResource", + "HTTPMethodResourceWithRawResponse", + "AsyncHTTPMethodResourceWithRawResponse", + "HTTPMethodResourceWithStreamingResponse", + "AsyncHTTPMethodResourceWithStreamingResponse", + "IPVersionResource", + "AsyncIPVersionResource", + "IPVersionResourceWithRawResponse", + "AsyncIPVersionResourceWithRawResponse", + "IPVersionResourceWithStreamingResponse", + "AsyncIPVersionResourceWithStreamingResponse", + "OSResource", + "AsyncOSResource", + "OSResourceWithRawResponse", + "AsyncOSResourceWithRawResponse", + "OSResourceWithStreamingResponse", + "AsyncOSResourceWithStreamingResponse", + "TLSVersionResource", + "AsyncTLSVersionResource", + "TLSVersionResourceWithRawResponse", + "AsyncTLSVersionResourceWithRawResponse", + "TLSVersionResourceWithStreamingResponse", + "AsyncTLSVersionResourceWithStreamingResponse", + "LocationsResource", + "AsyncLocationsResource", + "LocationsResourceWithRawResponse", + "AsyncLocationsResourceWithRawResponse", + "LocationsResourceWithStreamingResponse", + "AsyncLocationsResourceWithStreamingResponse", ] diff --git a/src/cloudflare/resources/radar/http/locations/bot_class.py b/src/cloudflare/resources/radar/http/locations/bot_class.py index 3cdc55105ef..6507e30fff9 100644 --- a/src/cloudflare/resources/radar/http/locations/bot_class.py +++ b/src/cloudflare/resources/radar/http/locations/bot_class.py @@ -28,17 +28,17 @@ from .....types.radar.http.locations import bot_class_get_params from .....types.radar.http.locations.bot_class_get_response import BotClassGetResponse -__all__ = ["BotClass", "AsyncBotClass"] +__all__ = ["BotClassResource", "AsyncBotClassResource"] -class BotClass(SyncAPIResource): +class BotClassResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> BotClassWithRawResponse: - return BotClassWithRawResponse(self) + def with_raw_response(self) -> BotClassResourceWithRawResponse: + return BotClassResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> BotClassWithStreamingResponse: - return BotClassWithStreamingResponse(self) + def with_streaming_response(self) -> BotClassResourceWithStreamingResponse: + return BotClassResourceWithStreamingResponse(self) def get( self, @@ -177,14 +177,14 @@ def get( ) -class AsyncBotClass(AsyncAPIResource): +class AsyncBotClassResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncBotClassWithRawResponse: - return AsyncBotClassWithRawResponse(self) + def with_raw_response(self) -> AsyncBotClassResourceWithRawResponse: + return AsyncBotClassResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncBotClassWithStreamingResponse: - return AsyncBotClassWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncBotClassResourceWithStreamingResponse: + return AsyncBotClassResourceWithStreamingResponse(self) async def get( self, @@ -323,8 +323,8 @@ async def get( ) -class BotClassWithRawResponse: - def __init__(self, bot_class: BotClass) -> None: +class BotClassResourceWithRawResponse: + def __init__(self, bot_class: BotClassResource) -> None: self._bot_class = bot_class self.get = to_raw_response_wrapper( @@ -332,8 +332,8 @@ def __init__(self, bot_class: BotClass) -> None: ) -class AsyncBotClassWithRawResponse: - def __init__(self, bot_class: AsyncBotClass) -> None: +class AsyncBotClassResourceWithRawResponse: + def __init__(self, bot_class: AsyncBotClassResource) -> None: self._bot_class = bot_class self.get = async_to_raw_response_wrapper( @@ -341,8 +341,8 @@ def __init__(self, bot_class: AsyncBotClass) -> None: ) -class BotClassWithStreamingResponse: - def __init__(self, bot_class: BotClass) -> None: +class BotClassResourceWithStreamingResponse: + def __init__(self, bot_class: BotClassResource) -> None: self._bot_class = bot_class self.get = to_streamed_response_wrapper( @@ -350,8 +350,8 @@ def __init__(self, bot_class: BotClass) -> None: ) -class AsyncBotClassWithStreamingResponse: - def __init__(self, bot_class: AsyncBotClass) -> None: +class AsyncBotClassResourceWithStreamingResponse: + def __init__(self, bot_class: AsyncBotClassResource) -> None: self._bot_class = bot_class self.get = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/radar/http/locations/device_type.py b/src/cloudflare/resources/radar/http/locations/device_type.py index dccf41526fa..cb9ae569c73 100644 --- a/src/cloudflare/resources/radar/http/locations/device_type.py +++ b/src/cloudflare/resources/radar/http/locations/device_type.py @@ -28,17 +28,17 @@ from .....types.radar.http.locations import device_type_get_params from .....types.radar.http.locations.device_type_get_response import DeviceTypeGetResponse -__all__ = ["DeviceType", "AsyncDeviceType"] +__all__ = ["DeviceTypeResource", "AsyncDeviceTypeResource"] -class DeviceType(SyncAPIResource): +class DeviceTypeResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> DeviceTypeWithRawResponse: - return DeviceTypeWithRawResponse(self) + def with_raw_response(self) -> DeviceTypeResourceWithRawResponse: + return DeviceTypeResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> DeviceTypeWithStreamingResponse: - return DeviceTypeWithStreamingResponse(self) + def with_streaming_response(self) -> DeviceTypeResourceWithStreamingResponse: + return DeviceTypeResourceWithStreamingResponse(self) def get( self, @@ -176,14 +176,14 @@ def get( ) -class AsyncDeviceType(AsyncAPIResource): +class AsyncDeviceTypeResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncDeviceTypeWithRawResponse: - return AsyncDeviceTypeWithRawResponse(self) + def with_raw_response(self) -> AsyncDeviceTypeResourceWithRawResponse: + return AsyncDeviceTypeResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncDeviceTypeWithStreamingResponse: - return AsyncDeviceTypeWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncDeviceTypeResourceWithStreamingResponse: + return AsyncDeviceTypeResourceWithStreamingResponse(self) async def get( self, @@ -321,8 +321,8 @@ async def get( ) -class DeviceTypeWithRawResponse: - def __init__(self, device_type: DeviceType) -> None: +class DeviceTypeResourceWithRawResponse: + def __init__(self, device_type: DeviceTypeResource) -> None: self._device_type = device_type self.get = to_raw_response_wrapper( @@ -330,8 +330,8 @@ def __init__(self, device_type: DeviceType) -> None: ) -class AsyncDeviceTypeWithRawResponse: - def __init__(self, device_type: AsyncDeviceType) -> None: +class AsyncDeviceTypeResourceWithRawResponse: + def __init__(self, device_type: AsyncDeviceTypeResource) -> None: self._device_type = device_type self.get = async_to_raw_response_wrapper( @@ -339,8 +339,8 @@ def __init__(self, device_type: AsyncDeviceType) -> None: ) -class DeviceTypeWithStreamingResponse: - def __init__(self, device_type: DeviceType) -> None: +class DeviceTypeResourceWithStreamingResponse: + def __init__(self, device_type: DeviceTypeResource) -> None: self._device_type = device_type self.get = to_streamed_response_wrapper( @@ -348,8 +348,8 @@ def __init__(self, device_type: DeviceType) -> None: ) -class AsyncDeviceTypeWithStreamingResponse: - def __init__(self, device_type: AsyncDeviceType) -> None: +class AsyncDeviceTypeResourceWithStreamingResponse: + def __init__(self, device_type: AsyncDeviceTypeResource) -> None: self._device_type = device_type self.get = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/radar/http/locations/http_method.py b/src/cloudflare/resources/radar/http/locations/http_method.py index e2af82d40d9..fd17679a21b 100644 --- a/src/cloudflare/resources/radar/http/locations/http_method.py +++ b/src/cloudflare/resources/radar/http/locations/http_method.py @@ -28,17 +28,17 @@ from .....types.radar.http.locations import http_method_get_params from .....types.radar.http.locations.http_method_get_response import HTTPMethodGetResponse -__all__ = ["HTTPMethod", "AsyncHTTPMethod"] +__all__ = ["HTTPMethodResource", "AsyncHTTPMethodResource"] -class HTTPMethod(SyncAPIResource): +class HTTPMethodResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> HTTPMethodWithRawResponse: - return HTTPMethodWithRawResponse(self) + def with_raw_response(self) -> HTTPMethodResourceWithRawResponse: + return HTTPMethodResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> HTTPMethodWithStreamingResponse: - return HTTPMethodWithStreamingResponse(self) + def with_streaming_response(self) -> HTTPMethodResourceWithStreamingResponse: + return HTTPMethodResourceWithStreamingResponse(self) def get( self, @@ -176,14 +176,14 @@ def get( ) -class AsyncHTTPMethod(AsyncAPIResource): +class AsyncHTTPMethodResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncHTTPMethodWithRawResponse: - return AsyncHTTPMethodWithRawResponse(self) + def with_raw_response(self) -> AsyncHTTPMethodResourceWithRawResponse: + return AsyncHTTPMethodResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncHTTPMethodWithStreamingResponse: - return AsyncHTTPMethodWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncHTTPMethodResourceWithStreamingResponse: + return AsyncHTTPMethodResourceWithStreamingResponse(self) async def get( self, @@ -321,8 +321,8 @@ async def get( ) -class HTTPMethodWithRawResponse: - def __init__(self, http_method: HTTPMethod) -> None: +class HTTPMethodResourceWithRawResponse: + def __init__(self, http_method: HTTPMethodResource) -> None: self._http_method = http_method self.get = to_raw_response_wrapper( @@ -330,8 +330,8 @@ def __init__(self, http_method: HTTPMethod) -> None: ) -class AsyncHTTPMethodWithRawResponse: - def __init__(self, http_method: AsyncHTTPMethod) -> None: +class AsyncHTTPMethodResourceWithRawResponse: + def __init__(self, http_method: AsyncHTTPMethodResource) -> None: self._http_method = http_method self.get = async_to_raw_response_wrapper( @@ -339,8 +339,8 @@ def __init__(self, http_method: AsyncHTTPMethod) -> None: ) -class HTTPMethodWithStreamingResponse: - def __init__(self, http_method: HTTPMethod) -> None: +class HTTPMethodResourceWithStreamingResponse: + def __init__(self, http_method: HTTPMethodResource) -> None: self._http_method = http_method self.get = to_streamed_response_wrapper( @@ -348,8 +348,8 @@ def __init__(self, http_method: HTTPMethod) -> None: ) -class AsyncHTTPMethodWithStreamingResponse: - def __init__(self, http_method: AsyncHTTPMethod) -> None: +class AsyncHTTPMethodResourceWithStreamingResponse: + def __init__(self, http_method: AsyncHTTPMethodResource) -> None: self._http_method = http_method self.get = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/radar/http/locations/http_protocol.py b/src/cloudflare/resources/radar/http/locations/http_protocol.py index ea429e047a4..68bc53b8b5f 100644 --- a/src/cloudflare/resources/radar/http/locations/http_protocol.py +++ b/src/cloudflare/resources/radar/http/locations/http_protocol.py @@ -28,17 +28,17 @@ from .....types.radar.http.locations import http_protocol_get_params from .....types.radar.http.locations.http_protocol_get_response import HTTPProtocolGetResponse -__all__ = ["HTTPProtocol", "AsyncHTTPProtocol"] +__all__ = ["HTTPProtocolResource", "AsyncHTTPProtocolResource"] -class HTTPProtocol(SyncAPIResource): +class HTTPProtocolResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> HTTPProtocolWithRawResponse: - return HTTPProtocolWithRawResponse(self) + def with_raw_response(self) -> HTTPProtocolResourceWithRawResponse: + return HTTPProtocolResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> HTTPProtocolWithStreamingResponse: - return HTTPProtocolWithStreamingResponse(self) + def with_streaming_response(self) -> HTTPProtocolResourceWithStreamingResponse: + return HTTPProtocolResourceWithStreamingResponse(self) def get( self, @@ -172,14 +172,14 @@ def get( ) -class AsyncHTTPProtocol(AsyncAPIResource): +class AsyncHTTPProtocolResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncHTTPProtocolWithRawResponse: - return AsyncHTTPProtocolWithRawResponse(self) + def with_raw_response(self) -> AsyncHTTPProtocolResourceWithRawResponse: + return AsyncHTTPProtocolResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncHTTPProtocolWithStreamingResponse: - return AsyncHTTPProtocolWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncHTTPProtocolResourceWithStreamingResponse: + return AsyncHTTPProtocolResourceWithStreamingResponse(self) async def get( self, @@ -313,8 +313,8 @@ async def get( ) -class HTTPProtocolWithRawResponse: - def __init__(self, http_protocol: HTTPProtocol) -> None: +class HTTPProtocolResourceWithRawResponse: + def __init__(self, http_protocol: HTTPProtocolResource) -> None: self._http_protocol = http_protocol self.get = to_raw_response_wrapper( @@ -322,8 +322,8 @@ def __init__(self, http_protocol: HTTPProtocol) -> None: ) -class AsyncHTTPProtocolWithRawResponse: - def __init__(self, http_protocol: AsyncHTTPProtocol) -> None: +class AsyncHTTPProtocolResourceWithRawResponse: + def __init__(self, http_protocol: AsyncHTTPProtocolResource) -> None: self._http_protocol = http_protocol self.get = async_to_raw_response_wrapper( @@ -331,8 +331,8 @@ def __init__(self, http_protocol: AsyncHTTPProtocol) -> None: ) -class HTTPProtocolWithStreamingResponse: - def __init__(self, http_protocol: HTTPProtocol) -> None: +class HTTPProtocolResourceWithStreamingResponse: + def __init__(self, http_protocol: HTTPProtocolResource) -> None: self._http_protocol = http_protocol self.get = to_streamed_response_wrapper( @@ -340,8 +340,8 @@ def __init__(self, http_protocol: HTTPProtocol) -> None: ) -class AsyncHTTPProtocolWithStreamingResponse: - def __init__(self, http_protocol: AsyncHTTPProtocol) -> None: +class AsyncHTTPProtocolResourceWithStreamingResponse: + def __init__(self, http_protocol: AsyncHTTPProtocolResource) -> None: self._http_protocol = http_protocol self.get = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/radar/http/locations/ip_version.py b/src/cloudflare/resources/radar/http/locations/ip_version.py index af02f689bc5..26d202727d4 100644 --- a/src/cloudflare/resources/radar/http/locations/ip_version.py +++ b/src/cloudflare/resources/radar/http/locations/ip_version.py @@ -28,17 +28,17 @@ from .....types.radar.http.locations import ip_version_get_params from .....types.radar.http.locations.ip_version_get_response import IPVersionGetResponse -__all__ = ["IPVersion", "AsyncIPVersion"] +__all__ = ["IPVersionResource", "AsyncIPVersionResource"] -class IPVersion(SyncAPIResource): +class IPVersionResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> IPVersionWithRawResponse: - return IPVersionWithRawResponse(self) + def with_raw_response(self) -> IPVersionResourceWithRawResponse: + return IPVersionResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> IPVersionWithStreamingResponse: - return IPVersionWithStreamingResponse(self) + def with_streaming_response(self) -> IPVersionResourceWithStreamingResponse: + return IPVersionResourceWithStreamingResponse(self) def get( self, @@ -175,14 +175,14 @@ def get( ) -class AsyncIPVersion(AsyncAPIResource): +class AsyncIPVersionResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncIPVersionWithRawResponse: - return AsyncIPVersionWithRawResponse(self) + def with_raw_response(self) -> AsyncIPVersionResourceWithRawResponse: + return AsyncIPVersionResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncIPVersionWithStreamingResponse: - return AsyncIPVersionWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncIPVersionResourceWithStreamingResponse: + return AsyncIPVersionResourceWithStreamingResponse(self) async def get( self, @@ -319,8 +319,8 @@ async def get( ) -class IPVersionWithRawResponse: - def __init__(self, ip_version: IPVersion) -> None: +class IPVersionResourceWithRawResponse: + def __init__(self, ip_version: IPVersionResource) -> None: self._ip_version = ip_version self.get = to_raw_response_wrapper( @@ -328,8 +328,8 @@ def __init__(self, ip_version: IPVersion) -> None: ) -class AsyncIPVersionWithRawResponse: - def __init__(self, ip_version: AsyncIPVersion) -> None: +class AsyncIPVersionResourceWithRawResponse: + def __init__(self, ip_version: AsyncIPVersionResource) -> None: self._ip_version = ip_version self.get = async_to_raw_response_wrapper( @@ -337,8 +337,8 @@ def __init__(self, ip_version: AsyncIPVersion) -> None: ) -class IPVersionWithStreamingResponse: - def __init__(self, ip_version: IPVersion) -> None: +class IPVersionResourceWithStreamingResponse: + def __init__(self, ip_version: IPVersionResource) -> None: self._ip_version = ip_version self.get = to_streamed_response_wrapper( @@ -346,8 +346,8 @@ def __init__(self, ip_version: IPVersion) -> None: ) -class AsyncIPVersionWithStreamingResponse: - def __init__(self, ip_version: AsyncIPVersion) -> None: +class AsyncIPVersionResourceWithStreamingResponse: + def __init__(self, ip_version: AsyncIPVersionResource) -> None: self._ip_version = ip_version self.get = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/radar/http/locations/locations.py b/src/cloudflare/resources/radar/http/locations/locations.py index 5cd6e5b0bd5..63301a082cc 100644 --- a/src/cloudflare/resources/radar/http/locations/locations.py +++ b/src/cloudflare/resources/radar/http/locations/locations.py @@ -9,20 +9,20 @@ import httpx from .os import ( - OS, - AsyncOS, - OSWithRawResponse, - AsyncOSWithRawResponse, - OSWithStreamingResponse, - AsyncOSWithStreamingResponse, + OSResource, + AsyncOSResource, + OSResourceWithRawResponse, + AsyncOSResourceWithRawResponse, + OSResourceWithStreamingResponse, + AsyncOSResourceWithStreamingResponse, ) from .bot_class import ( - BotClass, - AsyncBotClass, - BotClassWithRawResponse, - AsyncBotClassWithRawResponse, - BotClassWithStreamingResponse, - AsyncBotClassWithStreamingResponse, + BotClassResource, + AsyncBotClassResource, + BotClassResourceWithRawResponse, + AsyncBotClassResourceWithRawResponse, + BotClassResourceWithStreamingResponse, + AsyncBotClassResourceWithStreamingResponse, ) from ....._types import NOT_GIVEN, Body, Query, Headers, NotGiven from ....._utils import ( @@ -30,37 +30,37 @@ async_maybe_transform, ) from .ip_version import ( - IPVersion, - AsyncIPVersion, - IPVersionWithRawResponse, - AsyncIPVersionWithRawResponse, - IPVersionWithStreamingResponse, - AsyncIPVersionWithStreamingResponse, + IPVersionResource, + AsyncIPVersionResource, + IPVersionResourceWithRawResponse, + AsyncIPVersionResourceWithRawResponse, + IPVersionResourceWithStreamingResponse, + AsyncIPVersionResourceWithStreamingResponse, ) from ....._compat import cached_property from .device_type import ( - DeviceType, - AsyncDeviceType, - DeviceTypeWithRawResponse, - AsyncDeviceTypeWithRawResponse, - DeviceTypeWithStreamingResponse, - AsyncDeviceTypeWithStreamingResponse, + DeviceTypeResource, + AsyncDeviceTypeResource, + DeviceTypeResourceWithRawResponse, + AsyncDeviceTypeResourceWithRawResponse, + DeviceTypeResourceWithStreamingResponse, + AsyncDeviceTypeResourceWithStreamingResponse, ) from .http_method import ( - HTTPMethod, - AsyncHTTPMethod, - HTTPMethodWithRawResponse, - AsyncHTTPMethodWithRawResponse, - HTTPMethodWithStreamingResponse, - AsyncHTTPMethodWithStreamingResponse, + HTTPMethodResource, + AsyncHTTPMethodResource, + HTTPMethodResourceWithRawResponse, + AsyncHTTPMethodResourceWithRawResponse, + HTTPMethodResourceWithStreamingResponse, + AsyncHTTPMethodResourceWithStreamingResponse, ) from .tls_version import ( - TLSVersion, - AsyncTLSVersion, - TLSVersionWithRawResponse, - AsyncTLSVersionWithRawResponse, - TLSVersionWithStreamingResponse, - AsyncTLSVersionWithStreamingResponse, + TLSVersionResource, + AsyncTLSVersionResource, + TLSVersionResourceWithRawResponse, + AsyncTLSVersionResourceWithRawResponse, + TLSVersionResourceWithStreamingResponse, + AsyncTLSVersionResourceWithStreamingResponse, ) from ....._resource import SyncAPIResource, AsyncAPIResource from ....._response import ( @@ -71,12 +71,12 @@ ) from ....._wrappers import ResultWrapper from .http_protocol import ( - HTTPProtocol, - AsyncHTTPProtocol, - HTTPProtocolWithRawResponse, - AsyncHTTPProtocolWithRawResponse, - HTTPProtocolWithStreamingResponse, - AsyncHTTPProtocolWithStreamingResponse, + HTTPProtocolResource, + AsyncHTTPProtocolResource, + HTTPProtocolResourceWithRawResponse, + AsyncHTTPProtocolResourceWithRawResponse, + HTTPProtocolResourceWithStreamingResponse, + AsyncHTTPProtocolResourceWithStreamingResponse, ) from ....._base_client import ( make_request_options, @@ -84,45 +84,45 @@ from .....types.radar.http import location_get_params from .....types.radar.http.location_get_response import LocationGetResponse -__all__ = ["Locations", "AsyncLocations"] +__all__ = ["LocationsResource", "AsyncLocationsResource"] -class Locations(SyncAPIResource): +class LocationsResource(SyncAPIResource): @cached_property - def bot_class(self) -> BotClass: - return BotClass(self._client) + def bot_class(self) -> BotClassResource: + return BotClassResource(self._client) @cached_property - def device_type(self) -> DeviceType: - return DeviceType(self._client) + def device_type(self) -> DeviceTypeResource: + return DeviceTypeResource(self._client) @cached_property - def http_protocol(self) -> HTTPProtocol: - return HTTPProtocol(self._client) + def http_protocol(self) -> HTTPProtocolResource: + return HTTPProtocolResource(self._client) @cached_property - def http_method(self) -> HTTPMethod: - return HTTPMethod(self._client) + def http_method(self) -> HTTPMethodResource: + return HTTPMethodResource(self._client) @cached_property - def ip_version(self) -> IPVersion: - return IPVersion(self._client) + def ip_version(self) -> IPVersionResource: + return IPVersionResource(self._client) @cached_property - def os(self) -> OS: - return OS(self._client) + def os(self) -> OSResource: + return OSResource(self._client) @cached_property - def tls_version(self) -> TLSVersion: - return TLSVersion(self._client) + def tls_version(self) -> TLSVersionResource: + return TLSVersionResource(self._client) @cached_property - def with_raw_response(self) -> LocationsWithRawResponse: - return LocationsWithRawResponse(self) + def with_raw_response(self) -> LocationsResourceWithRawResponse: + return LocationsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> LocationsWithStreamingResponse: - return LocationsWithStreamingResponse(self) + def with_streaming_response(self) -> LocationsResourceWithStreamingResponse: + return LocationsResourceWithStreamingResponse(self) def get( self, @@ -259,42 +259,42 @@ def get( ) -class AsyncLocations(AsyncAPIResource): +class AsyncLocationsResource(AsyncAPIResource): @cached_property - def bot_class(self) -> AsyncBotClass: - return AsyncBotClass(self._client) + def bot_class(self) -> AsyncBotClassResource: + return AsyncBotClassResource(self._client) @cached_property - def device_type(self) -> AsyncDeviceType: - return AsyncDeviceType(self._client) + def device_type(self) -> AsyncDeviceTypeResource: + return AsyncDeviceTypeResource(self._client) @cached_property - def http_protocol(self) -> AsyncHTTPProtocol: - return AsyncHTTPProtocol(self._client) + def http_protocol(self) -> AsyncHTTPProtocolResource: + return AsyncHTTPProtocolResource(self._client) @cached_property - def http_method(self) -> AsyncHTTPMethod: - return AsyncHTTPMethod(self._client) + def http_method(self) -> AsyncHTTPMethodResource: + return AsyncHTTPMethodResource(self._client) @cached_property - def ip_version(self) -> AsyncIPVersion: - return AsyncIPVersion(self._client) + def ip_version(self) -> AsyncIPVersionResource: + return AsyncIPVersionResource(self._client) @cached_property - def os(self) -> AsyncOS: - return AsyncOS(self._client) + def os(self) -> AsyncOSResource: + return AsyncOSResource(self._client) @cached_property - def tls_version(self) -> AsyncTLSVersion: - return AsyncTLSVersion(self._client) + def tls_version(self) -> AsyncTLSVersionResource: + return AsyncTLSVersionResource(self._client) @cached_property - def with_raw_response(self) -> AsyncLocationsWithRawResponse: - return AsyncLocationsWithRawResponse(self) + def with_raw_response(self) -> AsyncLocationsResourceWithRawResponse: + return AsyncLocationsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncLocationsWithStreamingResponse: - return AsyncLocationsWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncLocationsResourceWithStreamingResponse: + return AsyncLocationsResourceWithStreamingResponse(self) async def get( self, @@ -431,8 +431,8 @@ async def get( ) -class LocationsWithRawResponse: - def __init__(self, locations: Locations) -> None: +class LocationsResourceWithRawResponse: + def __init__(self, locations: LocationsResource) -> None: self._locations = locations self.get = to_raw_response_wrapper( @@ -440,36 +440,36 @@ def __init__(self, locations: Locations) -> None: ) @cached_property - def bot_class(self) -> BotClassWithRawResponse: - return BotClassWithRawResponse(self._locations.bot_class) + def bot_class(self) -> BotClassResourceWithRawResponse: + return BotClassResourceWithRawResponse(self._locations.bot_class) @cached_property - def device_type(self) -> DeviceTypeWithRawResponse: - return DeviceTypeWithRawResponse(self._locations.device_type) + def device_type(self) -> DeviceTypeResourceWithRawResponse: + return DeviceTypeResourceWithRawResponse(self._locations.device_type) @cached_property - def http_protocol(self) -> HTTPProtocolWithRawResponse: - return HTTPProtocolWithRawResponse(self._locations.http_protocol) + def http_protocol(self) -> HTTPProtocolResourceWithRawResponse: + return HTTPProtocolResourceWithRawResponse(self._locations.http_protocol) @cached_property - def http_method(self) -> HTTPMethodWithRawResponse: - return HTTPMethodWithRawResponse(self._locations.http_method) + def http_method(self) -> HTTPMethodResourceWithRawResponse: + return HTTPMethodResourceWithRawResponse(self._locations.http_method) @cached_property - def ip_version(self) -> IPVersionWithRawResponse: - return IPVersionWithRawResponse(self._locations.ip_version) + def ip_version(self) -> IPVersionResourceWithRawResponse: + return IPVersionResourceWithRawResponse(self._locations.ip_version) @cached_property - def os(self) -> OSWithRawResponse: - return OSWithRawResponse(self._locations.os) + def os(self) -> OSResourceWithRawResponse: + return OSResourceWithRawResponse(self._locations.os) @cached_property - def tls_version(self) -> TLSVersionWithRawResponse: - return TLSVersionWithRawResponse(self._locations.tls_version) + def tls_version(self) -> TLSVersionResourceWithRawResponse: + return TLSVersionResourceWithRawResponse(self._locations.tls_version) -class AsyncLocationsWithRawResponse: - def __init__(self, locations: AsyncLocations) -> None: +class AsyncLocationsResourceWithRawResponse: + def __init__(self, locations: AsyncLocationsResource) -> None: self._locations = locations self.get = async_to_raw_response_wrapper( @@ -477,36 +477,36 @@ def __init__(self, locations: AsyncLocations) -> None: ) @cached_property - def bot_class(self) -> AsyncBotClassWithRawResponse: - return AsyncBotClassWithRawResponse(self._locations.bot_class) + def bot_class(self) -> AsyncBotClassResourceWithRawResponse: + return AsyncBotClassResourceWithRawResponse(self._locations.bot_class) @cached_property - def device_type(self) -> AsyncDeviceTypeWithRawResponse: - return AsyncDeviceTypeWithRawResponse(self._locations.device_type) + def device_type(self) -> AsyncDeviceTypeResourceWithRawResponse: + return AsyncDeviceTypeResourceWithRawResponse(self._locations.device_type) @cached_property - def http_protocol(self) -> AsyncHTTPProtocolWithRawResponse: - return AsyncHTTPProtocolWithRawResponse(self._locations.http_protocol) + def http_protocol(self) -> AsyncHTTPProtocolResourceWithRawResponse: + return AsyncHTTPProtocolResourceWithRawResponse(self._locations.http_protocol) @cached_property - def http_method(self) -> AsyncHTTPMethodWithRawResponse: - return AsyncHTTPMethodWithRawResponse(self._locations.http_method) + def http_method(self) -> AsyncHTTPMethodResourceWithRawResponse: + return AsyncHTTPMethodResourceWithRawResponse(self._locations.http_method) @cached_property - def ip_version(self) -> AsyncIPVersionWithRawResponse: - return AsyncIPVersionWithRawResponse(self._locations.ip_version) + def ip_version(self) -> AsyncIPVersionResourceWithRawResponse: + return AsyncIPVersionResourceWithRawResponse(self._locations.ip_version) @cached_property - def os(self) -> AsyncOSWithRawResponse: - return AsyncOSWithRawResponse(self._locations.os) + def os(self) -> AsyncOSResourceWithRawResponse: + return AsyncOSResourceWithRawResponse(self._locations.os) @cached_property - def tls_version(self) -> AsyncTLSVersionWithRawResponse: - return AsyncTLSVersionWithRawResponse(self._locations.tls_version) + def tls_version(self) -> AsyncTLSVersionResourceWithRawResponse: + return AsyncTLSVersionResourceWithRawResponse(self._locations.tls_version) -class LocationsWithStreamingResponse: - def __init__(self, locations: Locations) -> None: +class LocationsResourceWithStreamingResponse: + def __init__(self, locations: LocationsResource) -> None: self._locations = locations self.get = to_streamed_response_wrapper( @@ -514,36 +514,36 @@ def __init__(self, locations: Locations) -> None: ) @cached_property - def bot_class(self) -> BotClassWithStreamingResponse: - return BotClassWithStreamingResponse(self._locations.bot_class) + def bot_class(self) -> BotClassResourceWithStreamingResponse: + return BotClassResourceWithStreamingResponse(self._locations.bot_class) @cached_property - def device_type(self) -> DeviceTypeWithStreamingResponse: - return DeviceTypeWithStreamingResponse(self._locations.device_type) + def device_type(self) -> DeviceTypeResourceWithStreamingResponse: + return DeviceTypeResourceWithStreamingResponse(self._locations.device_type) @cached_property - def http_protocol(self) -> HTTPProtocolWithStreamingResponse: - return HTTPProtocolWithStreamingResponse(self._locations.http_protocol) + def http_protocol(self) -> HTTPProtocolResourceWithStreamingResponse: + return HTTPProtocolResourceWithStreamingResponse(self._locations.http_protocol) @cached_property - def http_method(self) -> HTTPMethodWithStreamingResponse: - return HTTPMethodWithStreamingResponse(self._locations.http_method) + def http_method(self) -> HTTPMethodResourceWithStreamingResponse: + return HTTPMethodResourceWithStreamingResponse(self._locations.http_method) @cached_property - def ip_version(self) -> IPVersionWithStreamingResponse: - return IPVersionWithStreamingResponse(self._locations.ip_version) + def ip_version(self) -> IPVersionResourceWithStreamingResponse: + return IPVersionResourceWithStreamingResponse(self._locations.ip_version) @cached_property - def os(self) -> OSWithStreamingResponse: - return OSWithStreamingResponse(self._locations.os) + def os(self) -> OSResourceWithStreamingResponse: + return OSResourceWithStreamingResponse(self._locations.os) @cached_property - def tls_version(self) -> TLSVersionWithStreamingResponse: - return TLSVersionWithStreamingResponse(self._locations.tls_version) + def tls_version(self) -> TLSVersionResourceWithStreamingResponse: + return TLSVersionResourceWithStreamingResponse(self._locations.tls_version) -class AsyncLocationsWithStreamingResponse: - def __init__(self, locations: AsyncLocations) -> None: +class AsyncLocationsResourceWithStreamingResponse: + def __init__(self, locations: AsyncLocationsResource) -> None: self._locations = locations self.get = async_to_streamed_response_wrapper( @@ -551,29 +551,29 @@ def __init__(self, locations: AsyncLocations) -> None: ) @cached_property - def bot_class(self) -> AsyncBotClassWithStreamingResponse: - return AsyncBotClassWithStreamingResponse(self._locations.bot_class) + def bot_class(self) -> AsyncBotClassResourceWithStreamingResponse: + return AsyncBotClassResourceWithStreamingResponse(self._locations.bot_class) @cached_property - def device_type(self) -> AsyncDeviceTypeWithStreamingResponse: - return AsyncDeviceTypeWithStreamingResponse(self._locations.device_type) + def device_type(self) -> AsyncDeviceTypeResourceWithStreamingResponse: + return AsyncDeviceTypeResourceWithStreamingResponse(self._locations.device_type) @cached_property - def http_protocol(self) -> AsyncHTTPProtocolWithStreamingResponse: - return AsyncHTTPProtocolWithStreamingResponse(self._locations.http_protocol) + def http_protocol(self) -> AsyncHTTPProtocolResourceWithStreamingResponse: + return AsyncHTTPProtocolResourceWithStreamingResponse(self._locations.http_protocol) @cached_property - def http_method(self) -> AsyncHTTPMethodWithStreamingResponse: - return AsyncHTTPMethodWithStreamingResponse(self._locations.http_method) + def http_method(self) -> AsyncHTTPMethodResourceWithStreamingResponse: + return AsyncHTTPMethodResourceWithStreamingResponse(self._locations.http_method) @cached_property - def ip_version(self) -> AsyncIPVersionWithStreamingResponse: - return AsyncIPVersionWithStreamingResponse(self._locations.ip_version) + def ip_version(self) -> AsyncIPVersionResourceWithStreamingResponse: + return AsyncIPVersionResourceWithStreamingResponse(self._locations.ip_version) @cached_property - def os(self) -> AsyncOSWithStreamingResponse: - return AsyncOSWithStreamingResponse(self._locations.os) + def os(self) -> AsyncOSResourceWithStreamingResponse: + return AsyncOSResourceWithStreamingResponse(self._locations.os) @cached_property - def tls_version(self) -> AsyncTLSVersionWithStreamingResponse: - return AsyncTLSVersionWithStreamingResponse(self._locations.tls_version) + def tls_version(self) -> AsyncTLSVersionResourceWithStreamingResponse: + return AsyncTLSVersionResourceWithStreamingResponse(self._locations.tls_version) diff --git a/src/cloudflare/resources/radar/http/locations/os.py b/src/cloudflare/resources/radar/http/locations/os.py index 0149e76e1dd..6564789c347 100644 --- a/src/cloudflare/resources/radar/http/locations/os.py +++ b/src/cloudflare/resources/radar/http/locations/os.py @@ -28,17 +28,17 @@ from .....types.radar.http.locations import os_get_params from .....types.radar.http.locations.os_get_response import OSGetResponse -__all__ = ["OS", "AsyncOS"] +__all__ = ["OSResource", "AsyncOSResource"] -class OS(SyncAPIResource): +class OSResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> OSWithRawResponse: - return OSWithRawResponse(self) + def with_raw_response(self) -> OSResourceWithRawResponse: + return OSResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> OSWithStreamingResponse: - return OSWithStreamingResponse(self) + def with_streaming_response(self) -> OSResourceWithStreamingResponse: + return OSResourceWithStreamingResponse(self) def get( self, @@ -174,14 +174,14 @@ def get( ) -class AsyncOS(AsyncAPIResource): +class AsyncOSResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncOSWithRawResponse: - return AsyncOSWithRawResponse(self) + def with_raw_response(self) -> AsyncOSResourceWithRawResponse: + return AsyncOSResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncOSWithStreamingResponse: - return AsyncOSWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncOSResourceWithStreamingResponse: + return AsyncOSResourceWithStreamingResponse(self) async def get( self, @@ -317,8 +317,8 @@ async def get( ) -class OSWithRawResponse: - def __init__(self, os: OS) -> None: +class OSResourceWithRawResponse: + def __init__(self, os: OSResource) -> None: self._os = os self.get = to_raw_response_wrapper( @@ -326,8 +326,8 @@ def __init__(self, os: OS) -> None: ) -class AsyncOSWithRawResponse: - def __init__(self, os: AsyncOS) -> None: +class AsyncOSResourceWithRawResponse: + def __init__(self, os: AsyncOSResource) -> None: self._os = os self.get = async_to_raw_response_wrapper( @@ -335,8 +335,8 @@ def __init__(self, os: AsyncOS) -> None: ) -class OSWithStreamingResponse: - def __init__(self, os: OS) -> None: +class OSResourceWithStreamingResponse: + def __init__(self, os: OSResource) -> None: self._os = os self.get = to_streamed_response_wrapper( @@ -344,8 +344,8 @@ def __init__(self, os: OS) -> None: ) -class AsyncOSWithStreamingResponse: - def __init__(self, os: AsyncOS) -> None: +class AsyncOSResourceWithStreamingResponse: + def __init__(self, os: AsyncOSResource) -> None: self._os = os self.get = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/radar/http/locations/tls_version.py b/src/cloudflare/resources/radar/http/locations/tls_version.py index c3b5b002cdc..9a43d75f252 100644 --- a/src/cloudflare/resources/radar/http/locations/tls_version.py +++ b/src/cloudflare/resources/radar/http/locations/tls_version.py @@ -28,17 +28,17 @@ from .....types.radar.http.locations import tls_version_get_params from .....types.radar.http.locations.tls_version_get_response import TLSVersionGetResponse -__all__ = ["TLSVersion", "AsyncTLSVersion"] +__all__ = ["TLSVersionResource", "AsyncTLSVersionResource"] -class TLSVersion(SyncAPIResource): +class TLSVersionResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> TLSVersionWithRawResponse: - return TLSVersionWithRawResponse(self) + def with_raw_response(self) -> TLSVersionResourceWithRawResponse: + return TLSVersionResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> TLSVersionWithStreamingResponse: - return TLSVersionWithStreamingResponse(self) + def with_streaming_response(self) -> TLSVersionResourceWithStreamingResponse: + return TLSVersionResourceWithStreamingResponse(self) def get( self, @@ -175,14 +175,14 @@ def get( ) -class AsyncTLSVersion(AsyncAPIResource): +class AsyncTLSVersionResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncTLSVersionWithRawResponse: - return AsyncTLSVersionWithRawResponse(self) + def with_raw_response(self) -> AsyncTLSVersionResourceWithRawResponse: + return AsyncTLSVersionResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncTLSVersionWithStreamingResponse: - return AsyncTLSVersionWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncTLSVersionResourceWithStreamingResponse: + return AsyncTLSVersionResourceWithStreamingResponse(self) async def get( self, @@ -319,8 +319,8 @@ async def get( ) -class TLSVersionWithRawResponse: - def __init__(self, tls_version: TLSVersion) -> None: +class TLSVersionResourceWithRawResponse: + def __init__(self, tls_version: TLSVersionResource) -> None: self._tls_version = tls_version self.get = to_raw_response_wrapper( @@ -328,8 +328,8 @@ def __init__(self, tls_version: TLSVersion) -> None: ) -class AsyncTLSVersionWithRawResponse: - def __init__(self, tls_version: AsyncTLSVersion) -> None: +class AsyncTLSVersionResourceWithRawResponse: + def __init__(self, tls_version: AsyncTLSVersionResource) -> None: self._tls_version = tls_version self.get = async_to_raw_response_wrapper( @@ -337,8 +337,8 @@ def __init__(self, tls_version: AsyncTLSVersion) -> None: ) -class TLSVersionWithStreamingResponse: - def __init__(self, tls_version: TLSVersion) -> None: +class TLSVersionResourceWithStreamingResponse: + def __init__(self, tls_version: TLSVersionResource) -> None: self._tls_version = tls_version self.get = to_streamed_response_wrapper( @@ -346,8 +346,8 @@ def __init__(self, tls_version: TLSVersion) -> None: ) -class AsyncTLSVersionWithStreamingResponse: - def __init__(self, tls_version: AsyncTLSVersion) -> None: +class AsyncTLSVersionResourceWithStreamingResponse: + def __init__(self, tls_version: AsyncTLSVersionResource) -> None: self._tls_version = tls_version self.get = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/radar/http/summary.py b/src/cloudflare/resources/radar/http/summary.py index 6f27db1e82d..7e71b2aa987 100644 --- a/src/cloudflare/resources/radar/http/summary.py +++ b/src/cloudflare/resources/radar/http/summary.py @@ -42,17 +42,17 @@ from ....types.radar.http.summary_http_version_response import SummaryHTTPVersionResponse from ....types.radar.http.summary_http_protocol_response import SummaryHTTPProtocolResponse -__all__ = ["Summary", "AsyncSummary"] +__all__ = ["SummaryResource", "AsyncSummaryResource"] -class Summary(SyncAPIResource): +class SummaryResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> SummaryWithRawResponse: - return SummaryWithRawResponse(self) + def with_raw_response(self) -> SummaryResourceWithRawResponse: + return SummaryResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> SummaryWithStreamingResponse: - return SummaryWithStreamingResponse(self) + def with_streaming_response(self) -> SummaryResourceWithStreamingResponse: + return SummaryResourceWithStreamingResponse(self) def bot_class( self, @@ -929,14 +929,14 @@ def tls_version( ) -class AsyncSummary(AsyncAPIResource): +class AsyncSummaryResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncSummaryWithRawResponse: - return AsyncSummaryWithRawResponse(self) + def with_raw_response(self) -> AsyncSummaryResourceWithRawResponse: + return AsyncSummaryResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncSummaryWithStreamingResponse: - return AsyncSummaryWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncSummaryResourceWithStreamingResponse: + return AsyncSummaryResourceWithStreamingResponse(self) async def bot_class( self, @@ -1813,8 +1813,8 @@ async def tls_version( ) -class SummaryWithRawResponse: - def __init__(self, summary: Summary) -> None: +class SummaryResourceWithRawResponse: + def __init__(self, summary: SummaryResource) -> None: self._summary = summary self.bot_class = to_raw_response_wrapper( @@ -1840,8 +1840,8 @@ def __init__(self, summary: Summary) -> None: ) -class AsyncSummaryWithRawResponse: - def __init__(self, summary: AsyncSummary) -> None: +class AsyncSummaryResourceWithRawResponse: + def __init__(self, summary: AsyncSummaryResource) -> None: self._summary = summary self.bot_class = async_to_raw_response_wrapper( @@ -1867,8 +1867,8 @@ def __init__(self, summary: AsyncSummary) -> None: ) -class SummaryWithStreamingResponse: - def __init__(self, summary: Summary) -> None: +class SummaryResourceWithStreamingResponse: + def __init__(self, summary: SummaryResource) -> None: self._summary = summary self.bot_class = to_streamed_response_wrapper( @@ -1894,8 +1894,8 @@ def __init__(self, summary: Summary) -> None: ) -class AsyncSummaryWithStreamingResponse: - def __init__(self, summary: AsyncSummary) -> None: +class AsyncSummaryResourceWithStreamingResponse: + def __init__(self, summary: AsyncSummaryResource) -> None: self._summary = summary self.bot_class = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/radar/http/timeseries_groups.py b/src/cloudflare/resources/radar/http/timeseries_groups.py index 8e755201558..4ba8bea28f9 100644 --- a/src/cloudflare/resources/radar/http/timeseries_groups.py +++ b/src/cloudflare/resources/radar/http/timeseries_groups.py @@ -46,17 +46,17 @@ from ....types.radar.http.timeseries_group_http_protocol_response import TimeseriesGroupHTTPProtocolResponse from ....types.radar.http.timeseries_group_browser_family_response import TimeseriesGroupBrowserFamilyResponse -__all__ = ["TimeseriesGroups", "AsyncTimeseriesGroups"] +__all__ = ["TimeseriesGroupsResource", "AsyncTimeseriesGroupsResource"] -class TimeseriesGroups(SyncAPIResource): +class TimeseriesGroupsResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> TimeseriesGroupsWithRawResponse: - return TimeseriesGroupsWithRawResponse(self) + def with_raw_response(self) -> TimeseriesGroupsResourceWithRawResponse: + return TimeseriesGroupsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> TimeseriesGroupsWithStreamingResponse: - return TimeseriesGroupsWithStreamingResponse(self) + def with_streaming_response(self) -> TimeseriesGroupsResourceWithStreamingResponse: + return TimeseriesGroupsResourceWithStreamingResponse(self) def bot_class( self, @@ -1251,14 +1251,14 @@ def tls_version( ) -class AsyncTimeseriesGroups(AsyncAPIResource): +class AsyncTimeseriesGroupsResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncTimeseriesGroupsWithRawResponse: - return AsyncTimeseriesGroupsWithRawResponse(self) + def with_raw_response(self) -> AsyncTimeseriesGroupsResourceWithRawResponse: + return AsyncTimeseriesGroupsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncTimeseriesGroupsWithStreamingResponse: - return AsyncTimeseriesGroupsWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncTimeseriesGroupsResourceWithStreamingResponse: + return AsyncTimeseriesGroupsResourceWithStreamingResponse(self) async def bot_class( self, @@ -2453,8 +2453,8 @@ async def tls_version( ) -class TimeseriesGroupsWithRawResponse: - def __init__(self, timeseries_groups: TimeseriesGroups) -> None: +class TimeseriesGroupsResourceWithRawResponse: + def __init__(self, timeseries_groups: TimeseriesGroupsResource) -> None: self._timeseries_groups = timeseries_groups self.bot_class = to_raw_response_wrapper( @@ -2486,8 +2486,8 @@ def __init__(self, timeseries_groups: TimeseriesGroups) -> None: ) -class AsyncTimeseriesGroupsWithRawResponse: - def __init__(self, timeseries_groups: AsyncTimeseriesGroups) -> None: +class AsyncTimeseriesGroupsResourceWithRawResponse: + def __init__(self, timeseries_groups: AsyncTimeseriesGroupsResource) -> None: self._timeseries_groups = timeseries_groups self.bot_class = async_to_raw_response_wrapper( @@ -2519,8 +2519,8 @@ def __init__(self, timeseries_groups: AsyncTimeseriesGroups) -> None: ) -class TimeseriesGroupsWithStreamingResponse: - def __init__(self, timeseries_groups: TimeseriesGroups) -> None: +class TimeseriesGroupsResourceWithStreamingResponse: + def __init__(self, timeseries_groups: TimeseriesGroupsResource) -> None: self._timeseries_groups = timeseries_groups self.bot_class = to_streamed_response_wrapper( @@ -2552,8 +2552,8 @@ def __init__(self, timeseries_groups: TimeseriesGroups) -> None: ) -class AsyncTimeseriesGroupsWithStreamingResponse: - def __init__(self, timeseries_groups: AsyncTimeseriesGroups) -> None: +class AsyncTimeseriesGroupsResourceWithStreamingResponse: + def __init__(self, timeseries_groups: AsyncTimeseriesGroupsResource) -> None: self._timeseries_groups = timeseries_groups self.bot_class = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/radar/http/top.py b/src/cloudflare/resources/radar/http/top.py index 7c4624826a0..b96c3aa3671 100644 --- a/src/cloudflare/resources/radar/http/top.py +++ b/src/cloudflare/resources/radar/http/top.py @@ -29,17 +29,17 @@ from ....types.radar.http.top_browsers_response import TopBrowsersResponse from ....types.radar.http.top_browser_families_response import TopBrowserFamiliesResponse -__all__ = ["Top", "AsyncTop"] +__all__ = ["TopResource", "AsyncTopResource"] -class Top(SyncAPIResource): +class TopResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> TopWithRawResponse: - return TopWithRawResponse(self) + def with_raw_response(self) -> TopResourceWithRawResponse: + return TopResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> TopWithStreamingResponse: - return TopWithStreamingResponse(self) + def with_streaming_response(self) -> TopResourceWithStreamingResponse: + return TopResourceWithStreamingResponse(self) def browser_families( self, @@ -310,14 +310,14 @@ def browsers( ) -class AsyncTop(AsyncAPIResource): +class AsyncTopResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncTopWithRawResponse: - return AsyncTopWithRawResponse(self) + def with_raw_response(self) -> AsyncTopResourceWithRawResponse: + return AsyncTopResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncTopWithStreamingResponse: - return AsyncTopWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncTopResourceWithStreamingResponse: + return AsyncTopResourceWithStreamingResponse(self) async def browser_families( self, @@ -588,8 +588,8 @@ async def browsers( ) -class TopWithRawResponse: - def __init__(self, top: Top) -> None: +class TopResourceWithRawResponse: + def __init__(self, top: TopResource) -> None: self._top = top self.browser_families = to_raw_response_wrapper( @@ -600,8 +600,8 @@ def __init__(self, top: Top) -> None: ) -class AsyncTopWithRawResponse: - def __init__(self, top: AsyncTop) -> None: +class AsyncTopResourceWithRawResponse: + def __init__(self, top: AsyncTopResource) -> None: self._top = top self.browser_families = async_to_raw_response_wrapper( @@ -612,8 +612,8 @@ def __init__(self, top: AsyncTop) -> None: ) -class TopWithStreamingResponse: - def __init__(self, top: Top) -> None: +class TopResourceWithStreamingResponse: + def __init__(self, top: TopResource) -> None: self._top = top self.browser_families = to_streamed_response_wrapper( @@ -624,8 +624,8 @@ def __init__(self, top: Top) -> None: ) -class AsyncTopWithStreamingResponse: - def __init__(self, top: AsyncTop) -> None: +class AsyncTopResourceWithStreamingResponse: + def __init__(self, top: AsyncTopResource) -> None: self._top = top self.browser_families = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/radar/netflows/__init__.py b/src/cloudflare/resources/radar/netflows/__init__.py index 51c07505600..a98978678b8 100644 --- a/src/cloudflare/resources/radar/netflows/__init__.py +++ b/src/cloudflare/resources/radar/netflows/__init__.py @@ -1,33 +1,33 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from .top import ( - Top, - AsyncTop, - TopWithRawResponse, - AsyncTopWithRawResponse, - TopWithStreamingResponse, - AsyncTopWithStreamingResponse, + TopResource, + AsyncTopResource, + TopResourceWithRawResponse, + AsyncTopResourceWithRawResponse, + TopResourceWithStreamingResponse, + AsyncTopResourceWithStreamingResponse, ) from .netflows import ( - Netflows, - AsyncNetflows, - NetflowsWithRawResponse, - AsyncNetflowsWithRawResponse, - NetflowsWithStreamingResponse, - AsyncNetflowsWithStreamingResponse, + NetflowsResource, + AsyncNetflowsResource, + NetflowsResourceWithRawResponse, + AsyncNetflowsResourceWithRawResponse, + NetflowsResourceWithStreamingResponse, + AsyncNetflowsResourceWithStreamingResponse, ) __all__ = [ - "Top", - "AsyncTop", - "TopWithRawResponse", - "AsyncTopWithRawResponse", - "TopWithStreamingResponse", - "AsyncTopWithStreamingResponse", - "Netflows", - "AsyncNetflows", - "NetflowsWithRawResponse", - "AsyncNetflowsWithRawResponse", - "NetflowsWithStreamingResponse", - "AsyncNetflowsWithStreamingResponse", + "TopResource", + "AsyncTopResource", + "TopResourceWithRawResponse", + "AsyncTopResourceWithRawResponse", + "TopResourceWithStreamingResponse", + "AsyncTopResourceWithStreamingResponse", + "NetflowsResource", + "AsyncNetflowsResource", + "NetflowsResourceWithRawResponse", + "AsyncNetflowsResourceWithRawResponse", + "NetflowsResourceWithStreamingResponse", + "AsyncNetflowsResourceWithStreamingResponse", ] diff --git a/src/cloudflare/resources/radar/netflows/netflows.py b/src/cloudflare/resources/radar/netflows/netflows.py index 352f1618924..b82345a5b43 100644 --- a/src/cloudflare/resources/radar/netflows/netflows.py +++ b/src/cloudflare/resources/radar/netflows/netflows.py @@ -9,12 +9,12 @@ import httpx from .top import ( - Top, - AsyncTop, - TopWithRawResponse, - AsyncTopWithRawResponse, - TopWithStreamingResponse, - AsyncTopWithStreamingResponse, + TopResource, + AsyncTopResource, + TopResourceWithRawResponse, + AsyncTopResourceWithRawResponse, + TopResourceWithStreamingResponse, + AsyncTopResourceWithStreamingResponse, ) from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven from ...._utils import ( @@ -36,21 +36,21 @@ ) from ....types.radar.netflow_timeseries_response import NetflowTimeseriesResponse -__all__ = ["Netflows", "AsyncNetflows"] +__all__ = ["NetflowsResource", "AsyncNetflowsResource"] -class Netflows(SyncAPIResource): +class NetflowsResource(SyncAPIResource): @cached_property - def top(self) -> Top: - return Top(self._client) + def top(self) -> TopResource: + return TopResource(self._client) @cached_property - def with_raw_response(self) -> NetflowsWithRawResponse: - return NetflowsWithRawResponse(self) + def with_raw_response(self) -> NetflowsResourceWithRawResponse: + return NetflowsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> NetflowsWithStreamingResponse: - return NetflowsWithStreamingResponse(self) + def with_streaming_response(self) -> NetflowsResourceWithStreamingResponse: + return NetflowsResourceWithStreamingResponse(self) def timeseries( self, @@ -168,18 +168,18 @@ def timeseries( ) -class AsyncNetflows(AsyncAPIResource): +class AsyncNetflowsResource(AsyncAPIResource): @cached_property - def top(self) -> AsyncTop: - return AsyncTop(self._client) + def top(self) -> AsyncTopResource: + return AsyncTopResource(self._client) @cached_property - def with_raw_response(self) -> AsyncNetflowsWithRawResponse: - return AsyncNetflowsWithRawResponse(self) + def with_raw_response(self) -> AsyncNetflowsResourceWithRawResponse: + return AsyncNetflowsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncNetflowsWithStreamingResponse: - return AsyncNetflowsWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncNetflowsResourceWithStreamingResponse: + return AsyncNetflowsResourceWithStreamingResponse(self) async def timeseries( self, @@ -297,8 +297,8 @@ async def timeseries( ) -class NetflowsWithRawResponse: - def __init__(self, netflows: Netflows) -> None: +class NetflowsResourceWithRawResponse: + def __init__(self, netflows: NetflowsResource) -> None: self._netflows = netflows self.timeseries = to_raw_response_wrapper( @@ -306,12 +306,12 @@ def __init__(self, netflows: Netflows) -> None: ) @cached_property - def top(self) -> TopWithRawResponse: - return TopWithRawResponse(self._netflows.top) + def top(self) -> TopResourceWithRawResponse: + return TopResourceWithRawResponse(self._netflows.top) -class AsyncNetflowsWithRawResponse: - def __init__(self, netflows: AsyncNetflows) -> None: +class AsyncNetflowsResourceWithRawResponse: + def __init__(self, netflows: AsyncNetflowsResource) -> None: self._netflows = netflows self.timeseries = async_to_raw_response_wrapper( @@ -319,12 +319,12 @@ def __init__(self, netflows: AsyncNetflows) -> None: ) @cached_property - def top(self) -> AsyncTopWithRawResponse: - return AsyncTopWithRawResponse(self._netflows.top) + def top(self) -> AsyncTopResourceWithRawResponse: + return AsyncTopResourceWithRawResponse(self._netflows.top) -class NetflowsWithStreamingResponse: - def __init__(self, netflows: Netflows) -> None: +class NetflowsResourceWithStreamingResponse: + def __init__(self, netflows: NetflowsResource) -> None: self._netflows = netflows self.timeseries = to_streamed_response_wrapper( @@ -332,12 +332,12 @@ def __init__(self, netflows: Netflows) -> None: ) @cached_property - def top(self) -> TopWithStreamingResponse: - return TopWithStreamingResponse(self._netflows.top) + def top(self) -> TopResourceWithStreamingResponse: + return TopResourceWithStreamingResponse(self._netflows.top) -class AsyncNetflowsWithStreamingResponse: - def __init__(self, netflows: AsyncNetflows) -> None: +class AsyncNetflowsResourceWithStreamingResponse: + def __init__(self, netflows: AsyncNetflowsResource) -> None: self._netflows = netflows self.timeseries = async_to_streamed_response_wrapper( @@ -345,5 +345,5 @@ def __init__(self, netflows: AsyncNetflows) -> None: ) @cached_property - def top(self) -> AsyncTopWithStreamingResponse: - return AsyncTopWithStreamingResponse(self._netflows.top) + def top(self) -> AsyncTopResourceWithStreamingResponse: + return AsyncTopResourceWithStreamingResponse(self._netflows.top) diff --git a/src/cloudflare/resources/radar/netflows/top.py b/src/cloudflare/resources/radar/netflows/top.py index 5655e1d60e9..310e0a90323 100644 --- a/src/cloudflare/resources/radar/netflows/top.py +++ b/src/cloudflare/resources/radar/netflows/top.py @@ -29,17 +29,17 @@ from ....types.radar.netflows.top_ases_response import TopAsesResponse from ....types.radar.netflows.top_locations_response import TopLocationsResponse -__all__ = ["Top", "AsyncTop"] +__all__ = ["TopResource", "AsyncTopResource"] -class Top(SyncAPIResource): +class TopResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> TopWithRawResponse: - return TopWithRawResponse(self) + def with_raw_response(self) -> TopResourceWithRawResponse: + return TopResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> TopWithStreamingResponse: - return TopWithStreamingResponse(self) + def with_streaming_response(self) -> TopResourceWithStreamingResponse: + return TopResourceWithStreamingResponse(self) def ases( self, @@ -248,14 +248,14 @@ def locations( ) -class AsyncTop(AsyncAPIResource): +class AsyncTopResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncTopWithRawResponse: - return AsyncTopWithRawResponse(self) + def with_raw_response(self) -> AsyncTopResourceWithRawResponse: + return AsyncTopResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncTopWithStreamingResponse: - return AsyncTopWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncTopResourceWithStreamingResponse: + return AsyncTopResourceWithStreamingResponse(self) async def ases( self, @@ -464,8 +464,8 @@ async def locations( ) -class TopWithRawResponse: - def __init__(self, top: Top) -> None: +class TopResourceWithRawResponse: + def __init__(self, top: TopResource) -> None: self._top = top self.ases = to_raw_response_wrapper( @@ -476,8 +476,8 @@ def __init__(self, top: Top) -> None: ) -class AsyncTopWithRawResponse: - def __init__(self, top: AsyncTop) -> None: +class AsyncTopResourceWithRawResponse: + def __init__(self, top: AsyncTopResource) -> None: self._top = top self.ases = async_to_raw_response_wrapper( @@ -488,8 +488,8 @@ def __init__(self, top: AsyncTop) -> None: ) -class TopWithStreamingResponse: - def __init__(self, top: Top) -> None: +class TopResourceWithStreamingResponse: + def __init__(self, top: TopResource) -> None: self._top = top self.ases = to_streamed_response_wrapper( @@ -500,8 +500,8 @@ def __init__(self, top: Top) -> None: ) -class AsyncTopWithStreamingResponse: - def __init__(self, top: AsyncTop) -> None: +class AsyncTopResourceWithStreamingResponse: + def __init__(self, top: AsyncTopResource) -> None: self._top = top self.ases = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/radar/quality/__init__.py b/src/cloudflare/resources/radar/quality/__init__.py index 8d7703914a4..ed91d35be8c 100644 --- a/src/cloudflare/resources/radar/quality/__init__.py +++ b/src/cloudflare/resources/radar/quality/__init__.py @@ -1,47 +1,47 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from .iqi import ( - IQI, - AsyncIQI, - IQIWithRawResponse, - AsyncIQIWithRawResponse, - IQIWithStreamingResponse, - AsyncIQIWithStreamingResponse, + IQIResource, + AsyncIQIResource, + IQIResourceWithRawResponse, + AsyncIQIResourceWithRawResponse, + IQIResourceWithStreamingResponse, + AsyncIQIResourceWithStreamingResponse, ) from .speed import ( - Speed, - AsyncSpeed, - SpeedWithRawResponse, - AsyncSpeedWithRawResponse, - SpeedWithStreamingResponse, - AsyncSpeedWithStreamingResponse, + SpeedResource, + AsyncSpeedResource, + SpeedResourceWithRawResponse, + AsyncSpeedResourceWithRawResponse, + SpeedResourceWithStreamingResponse, + AsyncSpeedResourceWithStreamingResponse, ) from .quality import ( - Quality, - AsyncQuality, - QualityWithRawResponse, - AsyncQualityWithRawResponse, - QualityWithStreamingResponse, - AsyncQualityWithStreamingResponse, + QualityResource, + AsyncQualityResource, + QualityResourceWithRawResponse, + AsyncQualityResourceWithRawResponse, + QualityResourceWithStreamingResponse, + AsyncQualityResourceWithStreamingResponse, ) __all__ = [ - "IQI", - "AsyncIQI", - "IQIWithRawResponse", - "AsyncIQIWithRawResponse", - "IQIWithStreamingResponse", - "AsyncIQIWithStreamingResponse", - "Speed", - "AsyncSpeed", - "SpeedWithRawResponse", - "AsyncSpeedWithRawResponse", - "SpeedWithStreamingResponse", - "AsyncSpeedWithStreamingResponse", - "Quality", - "AsyncQuality", - "QualityWithRawResponse", - "AsyncQualityWithRawResponse", - "QualityWithStreamingResponse", - "AsyncQualityWithStreamingResponse", + "IQIResource", + "AsyncIQIResource", + "IQIResourceWithRawResponse", + "AsyncIQIResourceWithRawResponse", + "IQIResourceWithStreamingResponse", + "AsyncIQIResourceWithStreamingResponse", + "SpeedResource", + "AsyncSpeedResource", + "SpeedResourceWithRawResponse", + "AsyncSpeedResourceWithRawResponse", + "SpeedResourceWithStreamingResponse", + "AsyncSpeedResourceWithStreamingResponse", + "QualityResource", + "AsyncQualityResource", + "QualityResourceWithRawResponse", + "AsyncQualityResourceWithRawResponse", + "QualityResourceWithStreamingResponse", + "AsyncQualityResourceWithStreamingResponse", ] diff --git a/src/cloudflare/resources/radar/quality/iqi.py b/src/cloudflare/resources/radar/quality/iqi.py index 89f9cb389ed..3a3c8ba4da3 100644 --- a/src/cloudflare/resources/radar/quality/iqi.py +++ b/src/cloudflare/resources/radar/quality/iqi.py @@ -29,17 +29,17 @@ from ....types.radar.quality.iqi_summary_response import IQISummaryResponse from ....types.radar.quality.iqi_timeseries_groups_response import IQITimeseriesGroupsResponse -__all__ = ["IQI", "AsyncIQI"] +__all__ = ["IQIResource", "AsyncIQIResource"] -class IQI(SyncAPIResource): +class IQIResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> IQIWithRawResponse: - return IQIWithRawResponse(self) + def with_raw_response(self) -> IQIResourceWithRawResponse: + return IQIResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> IQIWithStreamingResponse: - return IQIWithStreamingResponse(self) + def with_streaming_response(self) -> IQIResourceWithStreamingResponse: + return IQIResourceWithStreamingResponse(self) def summary( self, @@ -258,14 +258,14 @@ def timeseries_groups( ) -class AsyncIQI(AsyncAPIResource): +class AsyncIQIResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncIQIWithRawResponse: - return AsyncIQIWithRawResponse(self) + def with_raw_response(self) -> AsyncIQIResourceWithRawResponse: + return AsyncIQIResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncIQIWithStreamingResponse: - return AsyncIQIWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncIQIResourceWithStreamingResponse: + return AsyncIQIResourceWithStreamingResponse(self) async def summary( self, @@ -484,8 +484,8 @@ async def timeseries_groups( ) -class IQIWithRawResponse: - def __init__(self, iqi: IQI) -> None: +class IQIResourceWithRawResponse: + def __init__(self, iqi: IQIResource) -> None: self._iqi = iqi self.summary = to_raw_response_wrapper( @@ -496,8 +496,8 @@ def __init__(self, iqi: IQI) -> None: ) -class AsyncIQIWithRawResponse: - def __init__(self, iqi: AsyncIQI) -> None: +class AsyncIQIResourceWithRawResponse: + def __init__(self, iqi: AsyncIQIResource) -> None: self._iqi = iqi self.summary = async_to_raw_response_wrapper( @@ -508,8 +508,8 @@ def __init__(self, iqi: AsyncIQI) -> None: ) -class IQIWithStreamingResponse: - def __init__(self, iqi: IQI) -> None: +class IQIResourceWithStreamingResponse: + def __init__(self, iqi: IQIResource) -> None: self._iqi = iqi self.summary = to_streamed_response_wrapper( @@ -520,8 +520,8 @@ def __init__(self, iqi: IQI) -> None: ) -class AsyncIQIWithStreamingResponse: - def __init__(self, iqi: AsyncIQI) -> None: +class AsyncIQIResourceWithStreamingResponse: + def __init__(self, iqi: AsyncIQIResource) -> None: self._iqi = iqi self.summary = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/radar/quality/quality.py b/src/cloudflare/resources/radar/quality/quality.py index 1e4f98c7ed6..a5fb5b19f3c 100644 --- a/src/cloudflare/resources/radar/quality/quality.py +++ b/src/cloudflare/resources/radar/quality/quality.py @@ -3,111 +3,111 @@ from __future__ import annotations from .iqi import ( - IQI, - AsyncIQI, - IQIWithRawResponse, - AsyncIQIWithRawResponse, - IQIWithStreamingResponse, - AsyncIQIWithStreamingResponse, + IQIResource, + AsyncIQIResource, + IQIResourceWithRawResponse, + AsyncIQIResourceWithRawResponse, + IQIResourceWithStreamingResponse, + AsyncIQIResourceWithStreamingResponse, ) from .speed import ( - Speed, - AsyncSpeed, - SpeedWithRawResponse, - AsyncSpeedWithRawResponse, - SpeedWithStreamingResponse, - AsyncSpeedWithStreamingResponse, + SpeedResource, + AsyncSpeedResource, + SpeedResourceWithRawResponse, + AsyncSpeedResourceWithRawResponse, + SpeedResourceWithStreamingResponse, + AsyncSpeedResourceWithStreamingResponse, ) from ...._compat import cached_property -from .speed.speed import Speed, AsyncSpeed +from .speed.speed import SpeedResource, AsyncSpeedResource from ...._resource import SyncAPIResource, AsyncAPIResource -__all__ = ["Quality", "AsyncQuality"] +__all__ = ["QualityResource", "AsyncQualityResource"] -class Quality(SyncAPIResource): +class QualityResource(SyncAPIResource): @cached_property - def iqi(self) -> IQI: - return IQI(self._client) + def iqi(self) -> IQIResource: + return IQIResource(self._client) @cached_property - def speed(self) -> Speed: - return Speed(self._client) + def speed(self) -> SpeedResource: + return SpeedResource(self._client) @cached_property - def with_raw_response(self) -> QualityWithRawResponse: - return QualityWithRawResponse(self) + def with_raw_response(self) -> QualityResourceWithRawResponse: + return QualityResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> QualityWithStreamingResponse: - return QualityWithStreamingResponse(self) + def with_streaming_response(self) -> QualityResourceWithStreamingResponse: + return QualityResourceWithStreamingResponse(self) -class AsyncQuality(AsyncAPIResource): +class AsyncQualityResource(AsyncAPIResource): @cached_property - def iqi(self) -> AsyncIQI: - return AsyncIQI(self._client) + def iqi(self) -> AsyncIQIResource: + return AsyncIQIResource(self._client) @cached_property - def speed(self) -> AsyncSpeed: - return AsyncSpeed(self._client) + def speed(self) -> AsyncSpeedResource: + return AsyncSpeedResource(self._client) @cached_property - def with_raw_response(self) -> AsyncQualityWithRawResponse: - return AsyncQualityWithRawResponse(self) + def with_raw_response(self) -> AsyncQualityResourceWithRawResponse: + return AsyncQualityResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncQualityWithStreamingResponse: - return AsyncQualityWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncQualityResourceWithStreamingResponse: + return AsyncQualityResourceWithStreamingResponse(self) -class QualityWithRawResponse: - def __init__(self, quality: Quality) -> None: +class QualityResourceWithRawResponse: + def __init__(self, quality: QualityResource) -> None: self._quality = quality @cached_property - def iqi(self) -> IQIWithRawResponse: - return IQIWithRawResponse(self._quality.iqi) + def iqi(self) -> IQIResourceWithRawResponse: + return IQIResourceWithRawResponse(self._quality.iqi) @cached_property - def speed(self) -> SpeedWithRawResponse: - return SpeedWithRawResponse(self._quality.speed) + def speed(self) -> SpeedResourceWithRawResponse: + return SpeedResourceWithRawResponse(self._quality.speed) -class AsyncQualityWithRawResponse: - def __init__(self, quality: AsyncQuality) -> None: +class AsyncQualityResourceWithRawResponse: + def __init__(self, quality: AsyncQualityResource) -> None: self._quality = quality @cached_property - def iqi(self) -> AsyncIQIWithRawResponse: - return AsyncIQIWithRawResponse(self._quality.iqi) + def iqi(self) -> AsyncIQIResourceWithRawResponse: + return AsyncIQIResourceWithRawResponse(self._quality.iqi) @cached_property - def speed(self) -> AsyncSpeedWithRawResponse: - return AsyncSpeedWithRawResponse(self._quality.speed) + def speed(self) -> AsyncSpeedResourceWithRawResponse: + return AsyncSpeedResourceWithRawResponse(self._quality.speed) -class QualityWithStreamingResponse: - def __init__(self, quality: Quality) -> None: +class QualityResourceWithStreamingResponse: + def __init__(self, quality: QualityResource) -> None: self._quality = quality @cached_property - def iqi(self) -> IQIWithStreamingResponse: - return IQIWithStreamingResponse(self._quality.iqi) + def iqi(self) -> IQIResourceWithStreamingResponse: + return IQIResourceWithStreamingResponse(self._quality.iqi) @cached_property - def speed(self) -> SpeedWithStreamingResponse: - return SpeedWithStreamingResponse(self._quality.speed) + def speed(self) -> SpeedResourceWithStreamingResponse: + return SpeedResourceWithStreamingResponse(self._quality.speed) -class AsyncQualityWithStreamingResponse: - def __init__(self, quality: AsyncQuality) -> None: +class AsyncQualityResourceWithStreamingResponse: + def __init__(self, quality: AsyncQualityResource) -> None: self._quality = quality @cached_property - def iqi(self) -> AsyncIQIWithStreamingResponse: - return AsyncIQIWithStreamingResponse(self._quality.iqi) + def iqi(self) -> AsyncIQIResourceWithStreamingResponse: + return AsyncIQIResourceWithStreamingResponse(self._quality.iqi) @cached_property - def speed(self) -> AsyncSpeedWithStreamingResponse: - return AsyncSpeedWithStreamingResponse(self._quality.speed) + def speed(self) -> AsyncSpeedResourceWithStreamingResponse: + return AsyncSpeedResourceWithStreamingResponse(self._quality.speed) diff --git a/src/cloudflare/resources/radar/quality/speed/__init__.py b/src/cloudflare/resources/radar/quality/speed/__init__.py index d0d50b5b02a..1069242d3b2 100644 --- a/src/cloudflare/resources/radar/quality/speed/__init__.py +++ b/src/cloudflare/resources/radar/quality/speed/__init__.py @@ -1,33 +1,33 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from .top import ( - Top, - AsyncTop, - TopWithRawResponse, - AsyncTopWithRawResponse, - TopWithStreamingResponse, - AsyncTopWithStreamingResponse, + TopResource, + AsyncTopResource, + TopResourceWithRawResponse, + AsyncTopResourceWithRawResponse, + TopResourceWithStreamingResponse, + AsyncTopResourceWithStreamingResponse, ) from .speed import ( - Speed, - AsyncSpeed, - SpeedWithRawResponse, - AsyncSpeedWithRawResponse, - SpeedWithStreamingResponse, - AsyncSpeedWithStreamingResponse, + SpeedResource, + AsyncSpeedResource, + SpeedResourceWithRawResponse, + AsyncSpeedResourceWithRawResponse, + SpeedResourceWithStreamingResponse, + AsyncSpeedResourceWithStreamingResponse, ) __all__ = [ - "Top", - "AsyncTop", - "TopWithRawResponse", - "AsyncTopWithRawResponse", - "TopWithStreamingResponse", - "AsyncTopWithStreamingResponse", - "Speed", - "AsyncSpeed", - "SpeedWithRawResponse", - "AsyncSpeedWithRawResponse", - "SpeedWithStreamingResponse", - "AsyncSpeedWithStreamingResponse", + "TopResource", + "AsyncTopResource", + "TopResourceWithRawResponse", + "AsyncTopResourceWithRawResponse", + "TopResourceWithStreamingResponse", + "AsyncTopResourceWithStreamingResponse", + "SpeedResource", + "AsyncSpeedResource", + "SpeedResourceWithRawResponse", + "AsyncSpeedResourceWithRawResponse", + "SpeedResourceWithStreamingResponse", + "AsyncSpeedResourceWithStreamingResponse", ] diff --git a/src/cloudflare/resources/radar/quality/speed/speed.py b/src/cloudflare/resources/radar/quality/speed/speed.py index 7cfad9db9c8..83d157cd559 100644 --- a/src/cloudflare/resources/radar/quality/speed/speed.py +++ b/src/cloudflare/resources/radar/quality/speed/speed.py @@ -9,12 +9,12 @@ import httpx from .top import ( - Top, - AsyncTop, - TopWithRawResponse, - AsyncTopWithRawResponse, - TopWithStreamingResponse, - AsyncTopWithStreamingResponse, + TopResource, + AsyncTopResource, + TopResourceWithRawResponse, + AsyncTopResourceWithRawResponse, + TopResourceWithStreamingResponse, + AsyncTopResourceWithStreamingResponse, ) from ....._types import NOT_GIVEN, Body, Query, Headers, NotGiven from ....._utils import ( @@ -37,21 +37,21 @@ from .....types.radar.quality.speed_summary_response import SpeedSummaryResponse from .....types.radar.quality.speed_histogram_response import SpeedHistogramResponse -__all__ = ["Speed", "AsyncSpeed"] +__all__ = ["SpeedResource", "AsyncSpeedResource"] -class Speed(SyncAPIResource): +class SpeedResource(SyncAPIResource): @cached_property - def top(self) -> Top: - return Top(self._client) + def top(self) -> TopResource: + return TopResource(self._client) @cached_property - def with_raw_response(self) -> SpeedWithRawResponse: - return SpeedWithRawResponse(self) + def with_raw_response(self) -> SpeedResourceWithRawResponse: + return SpeedResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> SpeedWithStreamingResponse: - return SpeedWithStreamingResponse(self) + def with_streaming_response(self) -> SpeedResourceWithStreamingResponse: + return SpeedResourceWithStreamingResponse(self) def histogram( self, @@ -202,18 +202,18 @@ def summary( ) -class AsyncSpeed(AsyncAPIResource): +class AsyncSpeedResource(AsyncAPIResource): @cached_property - def top(self) -> AsyncTop: - return AsyncTop(self._client) + def top(self) -> AsyncTopResource: + return AsyncTopResource(self._client) @cached_property - def with_raw_response(self) -> AsyncSpeedWithRawResponse: - return AsyncSpeedWithRawResponse(self) + def with_raw_response(self) -> AsyncSpeedResourceWithRawResponse: + return AsyncSpeedResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncSpeedWithStreamingResponse: - return AsyncSpeedWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncSpeedResourceWithStreamingResponse: + return AsyncSpeedResourceWithStreamingResponse(self) async def histogram( self, @@ -364,8 +364,8 @@ async def summary( ) -class SpeedWithRawResponse: - def __init__(self, speed: Speed) -> None: +class SpeedResourceWithRawResponse: + def __init__(self, speed: SpeedResource) -> None: self._speed = speed self.histogram = to_raw_response_wrapper( @@ -376,12 +376,12 @@ def __init__(self, speed: Speed) -> None: ) @cached_property - def top(self) -> TopWithRawResponse: - return TopWithRawResponse(self._speed.top) + def top(self) -> TopResourceWithRawResponse: + return TopResourceWithRawResponse(self._speed.top) -class AsyncSpeedWithRawResponse: - def __init__(self, speed: AsyncSpeed) -> None: +class AsyncSpeedResourceWithRawResponse: + def __init__(self, speed: AsyncSpeedResource) -> None: self._speed = speed self.histogram = async_to_raw_response_wrapper( @@ -392,12 +392,12 @@ def __init__(self, speed: AsyncSpeed) -> None: ) @cached_property - def top(self) -> AsyncTopWithRawResponse: - return AsyncTopWithRawResponse(self._speed.top) + def top(self) -> AsyncTopResourceWithRawResponse: + return AsyncTopResourceWithRawResponse(self._speed.top) -class SpeedWithStreamingResponse: - def __init__(self, speed: Speed) -> None: +class SpeedResourceWithStreamingResponse: + def __init__(self, speed: SpeedResource) -> None: self._speed = speed self.histogram = to_streamed_response_wrapper( @@ -408,12 +408,12 @@ def __init__(self, speed: Speed) -> None: ) @cached_property - def top(self) -> TopWithStreamingResponse: - return TopWithStreamingResponse(self._speed.top) + def top(self) -> TopResourceWithStreamingResponse: + return TopResourceWithStreamingResponse(self._speed.top) -class AsyncSpeedWithStreamingResponse: - def __init__(self, speed: AsyncSpeed) -> None: +class AsyncSpeedResourceWithStreamingResponse: + def __init__(self, speed: AsyncSpeedResource) -> None: self._speed = speed self.histogram = async_to_streamed_response_wrapper( @@ -424,5 +424,5 @@ def __init__(self, speed: AsyncSpeed) -> None: ) @cached_property - def top(self) -> AsyncTopWithStreamingResponse: - return AsyncTopWithStreamingResponse(self._speed.top) + def top(self) -> AsyncTopResourceWithStreamingResponse: + return AsyncTopResourceWithStreamingResponse(self._speed.top) diff --git a/src/cloudflare/resources/radar/quality/speed/top.py b/src/cloudflare/resources/radar/quality/speed/top.py index f0222e87c33..847810362a3 100644 --- a/src/cloudflare/resources/radar/quality/speed/top.py +++ b/src/cloudflare/resources/radar/quality/speed/top.py @@ -29,17 +29,17 @@ from .....types.radar.quality.speed.top_ases_response import TopAsesResponse from .....types.radar.quality.speed.top_locations_response import TopLocationsResponse -__all__ = ["Top", "AsyncTop"] +__all__ = ["TopResource", "AsyncTopResource"] -class Top(SyncAPIResource): +class TopResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> TopWithRawResponse: - return TopWithRawResponse(self) + def with_raw_response(self) -> TopResourceWithRawResponse: + return TopResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> TopWithStreamingResponse: - return TopWithStreamingResponse(self) + def with_streaming_response(self) -> TopResourceWithStreamingResponse: + return TopResourceWithStreamingResponse(self) def ases( self, @@ -212,14 +212,14 @@ def locations( ) -class AsyncTop(AsyncAPIResource): +class AsyncTopResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncTopWithRawResponse: - return AsyncTopWithRawResponse(self) + def with_raw_response(self) -> AsyncTopResourceWithRawResponse: + return AsyncTopResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncTopWithStreamingResponse: - return AsyncTopWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncTopResourceWithStreamingResponse: + return AsyncTopResourceWithStreamingResponse(self) async def ases( self, @@ -392,8 +392,8 @@ async def locations( ) -class TopWithRawResponse: - def __init__(self, top: Top) -> None: +class TopResourceWithRawResponse: + def __init__(self, top: TopResource) -> None: self._top = top self.ases = to_raw_response_wrapper( @@ -404,8 +404,8 @@ def __init__(self, top: Top) -> None: ) -class AsyncTopWithRawResponse: - def __init__(self, top: AsyncTop) -> None: +class AsyncTopResourceWithRawResponse: + def __init__(self, top: AsyncTopResource) -> None: self._top = top self.ases = async_to_raw_response_wrapper( @@ -416,8 +416,8 @@ def __init__(self, top: AsyncTop) -> None: ) -class TopWithStreamingResponse: - def __init__(self, top: Top) -> None: +class TopResourceWithStreamingResponse: + def __init__(self, top: TopResource) -> None: self._top = top self.ases = to_streamed_response_wrapper( @@ -428,8 +428,8 @@ def __init__(self, top: Top) -> None: ) -class AsyncTopWithStreamingResponse: - def __init__(self, top: AsyncTop) -> None: +class AsyncTopResourceWithStreamingResponse: + def __init__(self, top: AsyncTopResource) -> None: self._top = top self.ases = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/radar/radar.py b/src/cloudflare/resources/radar/radar.py index e9f0263d907..c6859e8b70c 100644 --- a/src/cloudflare/resources/radar/radar.py +++ b/src/cloudflare/resources/radar/radar.py @@ -3,571 +3,571 @@ from __future__ import annotations from .bgp import ( - BGP, - AsyncBGP, - BGPWithRawResponse, - AsyncBGPWithRawResponse, - BGPWithStreamingResponse, - AsyncBGPWithStreamingResponse, + BGPResource, + AsyncBGPResource, + BGPResourceWithRawResponse, + AsyncBGPResourceWithRawResponse, + BGPResourceWithStreamingResponse, + AsyncBGPResourceWithStreamingResponse, ) from .dns import ( - DNS, - AsyncDNS, - DNSWithRawResponse, - AsyncDNSWithRawResponse, - DNSWithStreamingResponse, - AsyncDNSWithStreamingResponse, + DNSResource, + AsyncDNSResource, + DNSResourceWithRawResponse, + AsyncDNSResourceWithRawResponse, + DNSResourceWithStreamingResponse, + AsyncDNSResourceWithStreamingResponse, ) from .http import ( - HTTP, - AsyncHTTP, - HTTPWithRawResponse, - AsyncHTTPWithRawResponse, - HTTPWithStreamingResponse, - AsyncHTTPWithStreamingResponse, + HTTPResource, + AsyncHTTPResource, + HTTPResourceWithRawResponse, + AsyncHTTPResourceWithRawResponse, + HTTPResourceWithStreamingResponse, + AsyncHTTPResourceWithStreamingResponse, ) from .as112 import ( - AS112, - AsyncAS112, - AS112WithRawResponse, - AsyncAS112WithRawResponse, - AS112WithStreamingResponse, - AsyncAS112WithStreamingResponse, + AS112Resource, + AsyncAS112Resource, + AS112ResourceWithRawResponse, + AsyncAS112ResourceWithRawResponse, + AS112ResourceWithStreamingResponse, + AsyncAS112ResourceWithStreamingResponse, ) from .email import ( - Email, - AsyncEmail, - EmailWithRawResponse, - AsyncEmailWithRawResponse, - EmailWithStreamingResponse, - AsyncEmailWithStreamingResponse, + EmailResource, + AsyncEmailResource, + EmailResourceWithRawResponse, + AsyncEmailResourceWithRawResponse, + EmailResourceWithStreamingResponse, + AsyncEmailResourceWithStreamingResponse, ) from .search import ( - Search, - AsyncSearch, - SearchWithRawResponse, - AsyncSearchWithRawResponse, - SearchWithStreamingResponse, - AsyncSearchWithStreamingResponse, + SearchResource, + AsyncSearchResource, + SearchResourceWithRawResponse, + AsyncSearchResourceWithRawResponse, + SearchResourceWithStreamingResponse, + AsyncSearchResourceWithStreamingResponse, ) from .attacks import ( - Attacks, - AsyncAttacks, - AttacksWithRawResponse, - AsyncAttacksWithRawResponse, - AttacksWithStreamingResponse, - AsyncAttacksWithStreamingResponse, + AttacksResource, + AsyncAttacksResource, + AttacksResourceWithRawResponse, + AsyncAttacksResourceWithRawResponse, + AttacksResourceWithStreamingResponse, + AsyncAttacksResourceWithStreamingResponse, ) -from .bgp.bgp import BGP, AsyncBGP -from .dns.dns import DNS, AsyncDNS +from .bgp.bgp import BGPResource, AsyncBGPResource +from .dns.dns import DNSResource, AsyncDNSResource from .quality import ( - Quality, - AsyncQuality, - QualityWithRawResponse, - AsyncQualityWithRawResponse, - QualityWithStreamingResponse, - AsyncQualityWithStreamingResponse, + QualityResource, + AsyncQualityResource, + QualityResourceWithRawResponse, + AsyncQualityResourceWithRawResponse, + QualityResourceWithStreamingResponse, + AsyncQualityResourceWithStreamingResponse, ) from .ranking import ( - Ranking, - AsyncRanking, - RankingWithRawResponse, - AsyncRankingWithRawResponse, - RankingWithStreamingResponse, - AsyncRankingWithStreamingResponse, + RankingResource, + AsyncRankingResource, + RankingResourceWithRawResponse, + AsyncRankingResourceWithRawResponse, + RankingResourceWithStreamingResponse, + AsyncRankingResourceWithStreamingResponse, ) from .datasets import ( - Datasets, - AsyncDatasets, - DatasetsWithRawResponse, - AsyncDatasetsWithRawResponse, - DatasetsWithStreamingResponse, - AsyncDatasetsWithStreamingResponse, + DatasetsResource, + AsyncDatasetsResource, + DatasetsResourceWithRawResponse, + AsyncDatasetsResourceWithRawResponse, + DatasetsResourceWithStreamingResponse, + AsyncDatasetsResourceWithStreamingResponse, ) from .entities import ( - Entities, - AsyncEntities, - EntitiesWithRawResponse, - AsyncEntitiesWithRawResponse, - EntitiesWithStreamingResponse, - AsyncEntitiesWithStreamingResponse, + EntitiesResource, + AsyncEntitiesResource, + EntitiesResourceWithRawResponse, + AsyncEntitiesResourceWithRawResponse, + EntitiesResourceWithStreamingResponse, + AsyncEntitiesResourceWithStreamingResponse, ) from .netflows import ( - Netflows, - AsyncNetflows, - NetflowsWithRawResponse, - AsyncNetflowsWithRawResponse, - NetflowsWithStreamingResponse, - AsyncNetflowsWithStreamingResponse, + NetflowsResource, + AsyncNetflowsResource, + NetflowsResourceWithRawResponse, + AsyncNetflowsResourceWithRawResponse, + NetflowsResourceWithStreamingResponse, + AsyncNetflowsResourceWithStreamingResponse, ) from ..._compat import cached_property -from .http.http import HTTP, AsyncHTTP +from .http.http import HTTPResource, AsyncHTTPResource from ..._resource import SyncAPIResource, AsyncAPIResource from .annotations import ( - Annotations, - AsyncAnnotations, - AnnotationsWithRawResponse, - AsyncAnnotationsWithRawResponse, - AnnotationsWithStreamingResponse, - AsyncAnnotationsWithStreamingResponse, + AnnotationsResource, + AsyncAnnotationsResource, + AnnotationsResourceWithRawResponse, + AsyncAnnotationsResourceWithRawResponse, + AnnotationsResourceWithStreamingResponse, + AsyncAnnotationsResourceWithStreamingResponse, ) -from .as112.as112 import AS112, AsyncAS112 -from .email.email import Email, AsyncEmail +from .as112.as112 import AS112Resource, AsyncAS112Resource +from .email.email import EmailResource, AsyncEmailResource from .verified_bots import ( - VerifiedBots, - AsyncVerifiedBots, - VerifiedBotsWithRawResponse, - AsyncVerifiedBotsWithRawResponse, - VerifiedBotsWithStreamingResponse, - AsyncVerifiedBotsWithStreamingResponse, + VerifiedBotsResource, + AsyncVerifiedBotsResource, + VerifiedBotsResourceWithRawResponse, + AsyncVerifiedBotsResourceWithRawResponse, + VerifiedBotsResourceWithStreamingResponse, + AsyncVerifiedBotsResourceWithStreamingResponse, ) -from .attacks.attacks import Attacks, AsyncAttacks -from .quality.quality import Quality, AsyncQuality -from .ranking.ranking import Ranking, AsyncRanking -from .entities.entities import Entities, AsyncEntities -from .netflows.netflows import Netflows, AsyncNetflows +from .attacks.attacks import AttacksResource, AsyncAttacksResource +from .quality.quality import QualityResource, AsyncQualityResource +from .ranking.ranking import RankingResource, AsyncRankingResource +from .entities.entities import EntitiesResource, AsyncEntitiesResource +from .netflows.netflows import NetflowsResource, AsyncNetflowsResource from .traffic_anomalies import ( - TrafficAnomalies, - AsyncTrafficAnomalies, - TrafficAnomaliesWithRawResponse, - AsyncTrafficAnomaliesWithRawResponse, - TrafficAnomaliesWithStreamingResponse, - AsyncTrafficAnomaliesWithStreamingResponse, + TrafficAnomaliesResource, + AsyncTrafficAnomaliesResource, + TrafficAnomaliesResourceWithRawResponse, + AsyncTrafficAnomaliesResourceWithRawResponse, + TrafficAnomaliesResourceWithStreamingResponse, + AsyncTrafficAnomaliesResourceWithStreamingResponse, ) from .connection_tampering import ( - ConnectionTampering, - AsyncConnectionTampering, - ConnectionTamperingWithRawResponse, - AsyncConnectionTamperingWithRawResponse, - ConnectionTamperingWithStreamingResponse, - AsyncConnectionTamperingWithStreamingResponse, + ConnectionTamperingResource, + AsyncConnectionTamperingResource, + ConnectionTamperingResourceWithRawResponse, + AsyncConnectionTamperingResourceWithRawResponse, + ConnectionTamperingResourceWithStreamingResponse, + AsyncConnectionTamperingResourceWithStreamingResponse, ) -from .annotations.annotations import Annotations, AsyncAnnotations -from .verified_bots.verified_bots import VerifiedBots, AsyncVerifiedBots -from .traffic_anomalies.traffic_anomalies import TrafficAnomalies, AsyncTrafficAnomalies +from .annotations.annotations import AnnotationsResource, AsyncAnnotationsResource +from .verified_bots.verified_bots import VerifiedBotsResource, AsyncVerifiedBotsResource +from .traffic_anomalies.traffic_anomalies import TrafficAnomaliesResource, AsyncTrafficAnomaliesResource -__all__ = ["Radar", "AsyncRadar"] +__all__ = ["RadarResource", "AsyncRadarResource"] -class Radar(SyncAPIResource): +class RadarResource(SyncAPIResource): @cached_property - def annotations(self) -> Annotations: - return Annotations(self._client) + def annotations(self) -> AnnotationsResource: + return AnnotationsResource(self._client) @cached_property - def bgp(self) -> BGP: - return BGP(self._client) + def bgp(self) -> BGPResource: + return BGPResource(self._client) @cached_property - def datasets(self) -> Datasets: - return Datasets(self._client) + def datasets(self) -> DatasetsResource: + return DatasetsResource(self._client) @cached_property - def dns(self) -> DNS: - return DNS(self._client) + def dns(self) -> DNSResource: + return DNSResource(self._client) @cached_property - def netflows(self) -> Netflows: - return Netflows(self._client) + def netflows(self) -> NetflowsResource: + return NetflowsResource(self._client) @cached_property - def search(self) -> Search: - return Search(self._client) + def search(self) -> SearchResource: + return SearchResource(self._client) @cached_property - def verified_bots(self) -> VerifiedBots: - return VerifiedBots(self._client) + def verified_bots(self) -> VerifiedBotsResource: + return VerifiedBotsResource(self._client) @cached_property - def as112(self) -> AS112: - return AS112(self._client) + def as112(self) -> AS112Resource: + return AS112Resource(self._client) @cached_property - def connection_tampering(self) -> ConnectionTampering: - return ConnectionTampering(self._client) + def connection_tampering(self) -> ConnectionTamperingResource: + return ConnectionTamperingResource(self._client) @cached_property - def email(self) -> Email: - return Email(self._client) + def email(self) -> EmailResource: + return EmailResource(self._client) @cached_property - def attacks(self) -> Attacks: - return Attacks(self._client) + def attacks(self) -> AttacksResource: + return AttacksResource(self._client) @cached_property - def entities(self) -> Entities: - return Entities(self._client) + def entities(self) -> EntitiesResource: + return EntitiesResource(self._client) @cached_property - def http(self) -> HTTP: - return HTTP(self._client) + def http(self) -> HTTPResource: + return HTTPResource(self._client) @cached_property - def quality(self) -> Quality: - return Quality(self._client) + def quality(self) -> QualityResource: + return QualityResource(self._client) @cached_property - def ranking(self) -> Ranking: - return Ranking(self._client) + def ranking(self) -> RankingResource: + return RankingResource(self._client) @cached_property - def traffic_anomalies(self) -> TrafficAnomalies: - return TrafficAnomalies(self._client) + def traffic_anomalies(self) -> TrafficAnomaliesResource: + return TrafficAnomaliesResource(self._client) @cached_property - def with_raw_response(self) -> RadarWithRawResponse: - return RadarWithRawResponse(self) + def with_raw_response(self) -> RadarResourceWithRawResponse: + return RadarResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> RadarWithStreamingResponse: - return RadarWithStreamingResponse(self) + def with_streaming_response(self) -> RadarResourceWithStreamingResponse: + return RadarResourceWithStreamingResponse(self) -class AsyncRadar(AsyncAPIResource): +class AsyncRadarResource(AsyncAPIResource): @cached_property - def annotations(self) -> AsyncAnnotations: - return AsyncAnnotations(self._client) + def annotations(self) -> AsyncAnnotationsResource: + return AsyncAnnotationsResource(self._client) @cached_property - def bgp(self) -> AsyncBGP: - return AsyncBGP(self._client) + def bgp(self) -> AsyncBGPResource: + return AsyncBGPResource(self._client) @cached_property - def datasets(self) -> AsyncDatasets: - return AsyncDatasets(self._client) + def datasets(self) -> AsyncDatasetsResource: + return AsyncDatasetsResource(self._client) @cached_property - def dns(self) -> AsyncDNS: - return AsyncDNS(self._client) + def dns(self) -> AsyncDNSResource: + return AsyncDNSResource(self._client) @cached_property - def netflows(self) -> AsyncNetflows: - return AsyncNetflows(self._client) + def netflows(self) -> AsyncNetflowsResource: + return AsyncNetflowsResource(self._client) @cached_property - def search(self) -> AsyncSearch: - return AsyncSearch(self._client) + def search(self) -> AsyncSearchResource: + return AsyncSearchResource(self._client) @cached_property - def verified_bots(self) -> AsyncVerifiedBots: - return AsyncVerifiedBots(self._client) + def verified_bots(self) -> AsyncVerifiedBotsResource: + return AsyncVerifiedBotsResource(self._client) @cached_property - def as112(self) -> AsyncAS112: - return AsyncAS112(self._client) + def as112(self) -> AsyncAS112Resource: + return AsyncAS112Resource(self._client) @cached_property - def connection_tampering(self) -> AsyncConnectionTampering: - return AsyncConnectionTampering(self._client) + def connection_tampering(self) -> AsyncConnectionTamperingResource: + return AsyncConnectionTamperingResource(self._client) @cached_property - def email(self) -> AsyncEmail: - return AsyncEmail(self._client) + def email(self) -> AsyncEmailResource: + return AsyncEmailResource(self._client) @cached_property - def attacks(self) -> AsyncAttacks: - return AsyncAttacks(self._client) + def attacks(self) -> AsyncAttacksResource: + return AsyncAttacksResource(self._client) @cached_property - def entities(self) -> AsyncEntities: - return AsyncEntities(self._client) + def entities(self) -> AsyncEntitiesResource: + return AsyncEntitiesResource(self._client) @cached_property - def http(self) -> AsyncHTTP: - return AsyncHTTP(self._client) + def http(self) -> AsyncHTTPResource: + return AsyncHTTPResource(self._client) @cached_property - def quality(self) -> AsyncQuality: - return AsyncQuality(self._client) + def quality(self) -> AsyncQualityResource: + return AsyncQualityResource(self._client) @cached_property - def ranking(self) -> AsyncRanking: - return AsyncRanking(self._client) + def ranking(self) -> AsyncRankingResource: + return AsyncRankingResource(self._client) @cached_property - def traffic_anomalies(self) -> AsyncTrafficAnomalies: - return AsyncTrafficAnomalies(self._client) + def traffic_anomalies(self) -> AsyncTrafficAnomaliesResource: + return AsyncTrafficAnomaliesResource(self._client) @cached_property - def with_raw_response(self) -> AsyncRadarWithRawResponse: - return AsyncRadarWithRawResponse(self) + def with_raw_response(self) -> AsyncRadarResourceWithRawResponse: + return AsyncRadarResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncRadarWithStreamingResponse: - return AsyncRadarWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncRadarResourceWithStreamingResponse: + return AsyncRadarResourceWithStreamingResponse(self) -class RadarWithRawResponse: - def __init__(self, radar: Radar) -> None: +class RadarResourceWithRawResponse: + def __init__(self, radar: RadarResource) -> None: self._radar = radar @cached_property - def annotations(self) -> AnnotationsWithRawResponse: - return AnnotationsWithRawResponse(self._radar.annotations) + def annotations(self) -> AnnotationsResourceWithRawResponse: + return AnnotationsResourceWithRawResponse(self._radar.annotations) @cached_property - def bgp(self) -> BGPWithRawResponse: - return BGPWithRawResponse(self._radar.bgp) + def bgp(self) -> BGPResourceWithRawResponse: + return BGPResourceWithRawResponse(self._radar.bgp) @cached_property - def datasets(self) -> DatasetsWithRawResponse: - return DatasetsWithRawResponse(self._radar.datasets) + def datasets(self) -> DatasetsResourceWithRawResponse: + return DatasetsResourceWithRawResponse(self._radar.datasets) @cached_property - def dns(self) -> DNSWithRawResponse: - return DNSWithRawResponse(self._radar.dns) + def dns(self) -> DNSResourceWithRawResponse: + return DNSResourceWithRawResponse(self._radar.dns) @cached_property - def netflows(self) -> NetflowsWithRawResponse: - return NetflowsWithRawResponse(self._radar.netflows) + def netflows(self) -> NetflowsResourceWithRawResponse: + return NetflowsResourceWithRawResponse(self._radar.netflows) @cached_property - def search(self) -> SearchWithRawResponse: - return SearchWithRawResponse(self._radar.search) + def search(self) -> SearchResourceWithRawResponse: + return SearchResourceWithRawResponse(self._radar.search) @cached_property - def verified_bots(self) -> VerifiedBotsWithRawResponse: - return VerifiedBotsWithRawResponse(self._radar.verified_bots) + def verified_bots(self) -> VerifiedBotsResourceWithRawResponse: + return VerifiedBotsResourceWithRawResponse(self._radar.verified_bots) @cached_property - def as112(self) -> AS112WithRawResponse: - return AS112WithRawResponse(self._radar.as112) + def as112(self) -> AS112ResourceWithRawResponse: + return AS112ResourceWithRawResponse(self._radar.as112) @cached_property - def connection_tampering(self) -> ConnectionTamperingWithRawResponse: - return ConnectionTamperingWithRawResponse(self._radar.connection_tampering) + def connection_tampering(self) -> ConnectionTamperingResourceWithRawResponse: + return ConnectionTamperingResourceWithRawResponse(self._radar.connection_tampering) @cached_property - def email(self) -> EmailWithRawResponse: - return EmailWithRawResponse(self._radar.email) + def email(self) -> EmailResourceWithRawResponse: + return EmailResourceWithRawResponse(self._radar.email) @cached_property - def attacks(self) -> AttacksWithRawResponse: - return AttacksWithRawResponse(self._radar.attacks) + def attacks(self) -> AttacksResourceWithRawResponse: + return AttacksResourceWithRawResponse(self._radar.attacks) @cached_property - def entities(self) -> EntitiesWithRawResponse: - return EntitiesWithRawResponse(self._radar.entities) + def entities(self) -> EntitiesResourceWithRawResponse: + return EntitiesResourceWithRawResponse(self._radar.entities) @cached_property - def http(self) -> HTTPWithRawResponse: - return HTTPWithRawResponse(self._radar.http) + def http(self) -> HTTPResourceWithRawResponse: + return HTTPResourceWithRawResponse(self._radar.http) @cached_property - def quality(self) -> QualityWithRawResponse: - return QualityWithRawResponse(self._radar.quality) + def quality(self) -> QualityResourceWithRawResponse: + return QualityResourceWithRawResponse(self._radar.quality) @cached_property - def ranking(self) -> RankingWithRawResponse: - return RankingWithRawResponse(self._radar.ranking) + def ranking(self) -> RankingResourceWithRawResponse: + return RankingResourceWithRawResponse(self._radar.ranking) @cached_property - def traffic_anomalies(self) -> TrafficAnomaliesWithRawResponse: - return TrafficAnomaliesWithRawResponse(self._radar.traffic_anomalies) + def traffic_anomalies(self) -> TrafficAnomaliesResourceWithRawResponse: + return TrafficAnomaliesResourceWithRawResponse(self._radar.traffic_anomalies) -class AsyncRadarWithRawResponse: - def __init__(self, radar: AsyncRadar) -> None: +class AsyncRadarResourceWithRawResponse: + def __init__(self, radar: AsyncRadarResource) -> None: self._radar = radar @cached_property - def annotations(self) -> AsyncAnnotationsWithRawResponse: - return AsyncAnnotationsWithRawResponse(self._radar.annotations) + def annotations(self) -> AsyncAnnotationsResourceWithRawResponse: + return AsyncAnnotationsResourceWithRawResponse(self._radar.annotations) @cached_property - def bgp(self) -> AsyncBGPWithRawResponse: - return AsyncBGPWithRawResponse(self._radar.bgp) + def bgp(self) -> AsyncBGPResourceWithRawResponse: + return AsyncBGPResourceWithRawResponse(self._radar.bgp) @cached_property - def datasets(self) -> AsyncDatasetsWithRawResponse: - return AsyncDatasetsWithRawResponse(self._radar.datasets) + def datasets(self) -> AsyncDatasetsResourceWithRawResponse: + return AsyncDatasetsResourceWithRawResponse(self._radar.datasets) @cached_property - def dns(self) -> AsyncDNSWithRawResponse: - return AsyncDNSWithRawResponse(self._radar.dns) + def dns(self) -> AsyncDNSResourceWithRawResponse: + return AsyncDNSResourceWithRawResponse(self._radar.dns) @cached_property - def netflows(self) -> AsyncNetflowsWithRawResponse: - return AsyncNetflowsWithRawResponse(self._radar.netflows) + def netflows(self) -> AsyncNetflowsResourceWithRawResponse: + return AsyncNetflowsResourceWithRawResponse(self._radar.netflows) @cached_property - def search(self) -> AsyncSearchWithRawResponse: - return AsyncSearchWithRawResponse(self._radar.search) + def search(self) -> AsyncSearchResourceWithRawResponse: + return AsyncSearchResourceWithRawResponse(self._radar.search) @cached_property - def verified_bots(self) -> AsyncVerifiedBotsWithRawResponse: - return AsyncVerifiedBotsWithRawResponse(self._radar.verified_bots) + def verified_bots(self) -> AsyncVerifiedBotsResourceWithRawResponse: + return AsyncVerifiedBotsResourceWithRawResponse(self._radar.verified_bots) @cached_property - def as112(self) -> AsyncAS112WithRawResponse: - return AsyncAS112WithRawResponse(self._radar.as112) + def as112(self) -> AsyncAS112ResourceWithRawResponse: + return AsyncAS112ResourceWithRawResponse(self._radar.as112) @cached_property - def connection_tampering(self) -> AsyncConnectionTamperingWithRawResponse: - return AsyncConnectionTamperingWithRawResponse(self._radar.connection_tampering) + def connection_tampering(self) -> AsyncConnectionTamperingResourceWithRawResponse: + return AsyncConnectionTamperingResourceWithRawResponse(self._radar.connection_tampering) @cached_property - def email(self) -> AsyncEmailWithRawResponse: - return AsyncEmailWithRawResponse(self._radar.email) + def email(self) -> AsyncEmailResourceWithRawResponse: + return AsyncEmailResourceWithRawResponse(self._radar.email) @cached_property - def attacks(self) -> AsyncAttacksWithRawResponse: - return AsyncAttacksWithRawResponse(self._radar.attacks) + def attacks(self) -> AsyncAttacksResourceWithRawResponse: + return AsyncAttacksResourceWithRawResponse(self._radar.attacks) @cached_property - def entities(self) -> AsyncEntitiesWithRawResponse: - return AsyncEntitiesWithRawResponse(self._radar.entities) + def entities(self) -> AsyncEntitiesResourceWithRawResponse: + return AsyncEntitiesResourceWithRawResponse(self._radar.entities) @cached_property - def http(self) -> AsyncHTTPWithRawResponse: - return AsyncHTTPWithRawResponse(self._radar.http) + def http(self) -> AsyncHTTPResourceWithRawResponse: + return AsyncHTTPResourceWithRawResponse(self._radar.http) @cached_property - def quality(self) -> AsyncQualityWithRawResponse: - return AsyncQualityWithRawResponse(self._radar.quality) + def quality(self) -> AsyncQualityResourceWithRawResponse: + return AsyncQualityResourceWithRawResponse(self._radar.quality) @cached_property - def ranking(self) -> AsyncRankingWithRawResponse: - return AsyncRankingWithRawResponse(self._radar.ranking) + def ranking(self) -> AsyncRankingResourceWithRawResponse: + return AsyncRankingResourceWithRawResponse(self._radar.ranking) @cached_property - def traffic_anomalies(self) -> AsyncTrafficAnomaliesWithRawResponse: - return AsyncTrafficAnomaliesWithRawResponse(self._radar.traffic_anomalies) + def traffic_anomalies(self) -> AsyncTrafficAnomaliesResourceWithRawResponse: + return AsyncTrafficAnomaliesResourceWithRawResponse(self._radar.traffic_anomalies) -class RadarWithStreamingResponse: - def __init__(self, radar: Radar) -> None: +class RadarResourceWithStreamingResponse: + def __init__(self, radar: RadarResource) -> None: self._radar = radar @cached_property - def annotations(self) -> AnnotationsWithStreamingResponse: - return AnnotationsWithStreamingResponse(self._radar.annotations) + def annotations(self) -> AnnotationsResourceWithStreamingResponse: + return AnnotationsResourceWithStreamingResponse(self._radar.annotations) @cached_property - def bgp(self) -> BGPWithStreamingResponse: - return BGPWithStreamingResponse(self._radar.bgp) + def bgp(self) -> BGPResourceWithStreamingResponse: + return BGPResourceWithStreamingResponse(self._radar.bgp) @cached_property - def datasets(self) -> DatasetsWithStreamingResponse: - return DatasetsWithStreamingResponse(self._radar.datasets) + def datasets(self) -> DatasetsResourceWithStreamingResponse: + return DatasetsResourceWithStreamingResponse(self._radar.datasets) @cached_property - def dns(self) -> DNSWithStreamingResponse: - return DNSWithStreamingResponse(self._radar.dns) + def dns(self) -> DNSResourceWithStreamingResponse: + return DNSResourceWithStreamingResponse(self._radar.dns) @cached_property - def netflows(self) -> NetflowsWithStreamingResponse: - return NetflowsWithStreamingResponse(self._radar.netflows) + def netflows(self) -> NetflowsResourceWithStreamingResponse: + return NetflowsResourceWithStreamingResponse(self._radar.netflows) @cached_property - def search(self) -> SearchWithStreamingResponse: - return SearchWithStreamingResponse(self._radar.search) + def search(self) -> SearchResourceWithStreamingResponse: + return SearchResourceWithStreamingResponse(self._radar.search) @cached_property - def verified_bots(self) -> VerifiedBotsWithStreamingResponse: - return VerifiedBotsWithStreamingResponse(self._radar.verified_bots) + def verified_bots(self) -> VerifiedBotsResourceWithStreamingResponse: + return VerifiedBotsResourceWithStreamingResponse(self._radar.verified_bots) @cached_property - def as112(self) -> AS112WithStreamingResponse: - return AS112WithStreamingResponse(self._radar.as112) + def as112(self) -> AS112ResourceWithStreamingResponse: + return AS112ResourceWithStreamingResponse(self._radar.as112) @cached_property - def connection_tampering(self) -> ConnectionTamperingWithStreamingResponse: - return ConnectionTamperingWithStreamingResponse(self._radar.connection_tampering) + def connection_tampering(self) -> ConnectionTamperingResourceWithStreamingResponse: + return ConnectionTamperingResourceWithStreamingResponse(self._radar.connection_tampering) @cached_property - def email(self) -> EmailWithStreamingResponse: - return EmailWithStreamingResponse(self._radar.email) + def email(self) -> EmailResourceWithStreamingResponse: + return EmailResourceWithStreamingResponse(self._radar.email) @cached_property - def attacks(self) -> AttacksWithStreamingResponse: - return AttacksWithStreamingResponse(self._radar.attacks) + def attacks(self) -> AttacksResourceWithStreamingResponse: + return AttacksResourceWithStreamingResponse(self._radar.attacks) @cached_property - def entities(self) -> EntitiesWithStreamingResponse: - return EntitiesWithStreamingResponse(self._radar.entities) + def entities(self) -> EntitiesResourceWithStreamingResponse: + return EntitiesResourceWithStreamingResponse(self._radar.entities) @cached_property - def http(self) -> HTTPWithStreamingResponse: - return HTTPWithStreamingResponse(self._radar.http) + def http(self) -> HTTPResourceWithStreamingResponse: + return HTTPResourceWithStreamingResponse(self._radar.http) @cached_property - def quality(self) -> QualityWithStreamingResponse: - return QualityWithStreamingResponse(self._radar.quality) + def quality(self) -> QualityResourceWithStreamingResponse: + return QualityResourceWithStreamingResponse(self._radar.quality) @cached_property - def ranking(self) -> RankingWithStreamingResponse: - return RankingWithStreamingResponse(self._radar.ranking) + def ranking(self) -> RankingResourceWithStreamingResponse: + return RankingResourceWithStreamingResponse(self._radar.ranking) @cached_property - def traffic_anomalies(self) -> TrafficAnomaliesWithStreamingResponse: - return TrafficAnomaliesWithStreamingResponse(self._radar.traffic_anomalies) + def traffic_anomalies(self) -> TrafficAnomaliesResourceWithStreamingResponse: + return TrafficAnomaliesResourceWithStreamingResponse(self._radar.traffic_anomalies) -class AsyncRadarWithStreamingResponse: - def __init__(self, radar: AsyncRadar) -> None: +class AsyncRadarResourceWithStreamingResponse: + def __init__(self, radar: AsyncRadarResource) -> None: self._radar = radar @cached_property - def annotations(self) -> AsyncAnnotationsWithStreamingResponse: - return AsyncAnnotationsWithStreamingResponse(self._radar.annotations) + def annotations(self) -> AsyncAnnotationsResourceWithStreamingResponse: + return AsyncAnnotationsResourceWithStreamingResponse(self._radar.annotations) @cached_property - def bgp(self) -> AsyncBGPWithStreamingResponse: - return AsyncBGPWithStreamingResponse(self._radar.bgp) + def bgp(self) -> AsyncBGPResourceWithStreamingResponse: + return AsyncBGPResourceWithStreamingResponse(self._radar.bgp) @cached_property - def datasets(self) -> AsyncDatasetsWithStreamingResponse: - return AsyncDatasetsWithStreamingResponse(self._radar.datasets) + def datasets(self) -> AsyncDatasetsResourceWithStreamingResponse: + return AsyncDatasetsResourceWithStreamingResponse(self._radar.datasets) @cached_property - def dns(self) -> AsyncDNSWithStreamingResponse: - return AsyncDNSWithStreamingResponse(self._radar.dns) + def dns(self) -> AsyncDNSResourceWithStreamingResponse: + return AsyncDNSResourceWithStreamingResponse(self._radar.dns) @cached_property - def netflows(self) -> AsyncNetflowsWithStreamingResponse: - return AsyncNetflowsWithStreamingResponse(self._radar.netflows) + def netflows(self) -> AsyncNetflowsResourceWithStreamingResponse: + return AsyncNetflowsResourceWithStreamingResponse(self._radar.netflows) @cached_property - def search(self) -> AsyncSearchWithStreamingResponse: - return AsyncSearchWithStreamingResponse(self._radar.search) + def search(self) -> AsyncSearchResourceWithStreamingResponse: + return AsyncSearchResourceWithStreamingResponse(self._radar.search) @cached_property - def verified_bots(self) -> AsyncVerifiedBotsWithStreamingResponse: - return AsyncVerifiedBotsWithStreamingResponse(self._radar.verified_bots) + def verified_bots(self) -> AsyncVerifiedBotsResourceWithStreamingResponse: + return AsyncVerifiedBotsResourceWithStreamingResponse(self._radar.verified_bots) @cached_property - def as112(self) -> AsyncAS112WithStreamingResponse: - return AsyncAS112WithStreamingResponse(self._radar.as112) + def as112(self) -> AsyncAS112ResourceWithStreamingResponse: + return AsyncAS112ResourceWithStreamingResponse(self._radar.as112) @cached_property - def connection_tampering(self) -> AsyncConnectionTamperingWithStreamingResponse: - return AsyncConnectionTamperingWithStreamingResponse(self._radar.connection_tampering) + def connection_tampering(self) -> AsyncConnectionTamperingResourceWithStreamingResponse: + return AsyncConnectionTamperingResourceWithStreamingResponse(self._radar.connection_tampering) @cached_property - def email(self) -> AsyncEmailWithStreamingResponse: - return AsyncEmailWithStreamingResponse(self._radar.email) + def email(self) -> AsyncEmailResourceWithStreamingResponse: + return AsyncEmailResourceWithStreamingResponse(self._radar.email) @cached_property - def attacks(self) -> AsyncAttacksWithStreamingResponse: - return AsyncAttacksWithStreamingResponse(self._radar.attacks) + def attacks(self) -> AsyncAttacksResourceWithStreamingResponse: + return AsyncAttacksResourceWithStreamingResponse(self._radar.attacks) @cached_property - def entities(self) -> AsyncEntitiesWithStreamingResponse: - return AsyncEntitiesWithStreamingResponse(self._radar.entities) + def entities(self) -> AsyncEntitiesResourceWithStreamingResponse: + return AsyncEntitiesResourceWithStreamingResponse(self._radar.entities) @cached_property - def http(self) -> AsyncHTTPWithStreamingResponse: - return AsyncHTTPWithStreamingResponse(self._radar.http) + def http(self) -> AsyncHTTPResourceWithStreamingResponse: + return AsyncHTTPResourceWithStreamingResponse(self._radar.http) @cached_property - def quality(self) -> AsyncQualityWithStreamingResponse: - return AsyncQualityWithStreamingResponse(self._radar.quality) + def quality(self) -> AsyncQualityResourceWithStreamingResponse: + return AsyncQualityResourceWithStreamingResponse(self._radar.quality) @cached_property - def ranking(self) -> AsyncRankingWithStreamingResponse: - return AsyncRankingWithStreamingResponse(self._radar.ranking) + def ranking(self) -> AsyncRankingResourceWithStreamingResponse: + return AsyncRankingResourceWithStreamingResponse(self._radar.ranking) @cached_property - def traffic_anomalies(self) -> AsyncTrafficAnomaliesWithStreamingResponse: - return AsyncTrafficAnomaliesWithStreamingResponse(self._radar.traffic_anomalies) + def traffic_anomalies(self) -> AsyncTrafficAnomaliesResourceWithStreamingResponse: + return AsyncTrafficAnomaliesResourceWithStreamingResponse(self._radar.traffic_anomalies) diff --git a/src/cloudflare/resources/radar/ranking/__init__.py b/src/cloudflare/resources/radar/ranking/__init__.py index 0079d940501..cbb9e681fe6 100644 --- a/src/cloudflare/resources/radar/ranking/__init__.py +++ b/src/cloudflare/resources/radar/ranking/__init__.py @@ -1,33 +1,33 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from .domain import ( - Domain, - AsyncDomain, - DomainWithRawResponse, - AsyncDomainWithRawResponse, - DomainWithStreamingResponse, - AsyncDomainWithStreamingResponse, + DomainResource, + AsyncDomainResource, + DomainResourceWithRawResponse, + AsyncDomainResourceWithRawResponse, + DomainResourceWithStreamingResponse, + AsyncDomainResourceWithStreamingResponse, ) from .ranking import ( - Ranking, - AsyncRanking, - RankingWithRawResponse, - AsyncRankingWithRawResponse, - RankingWithStreamingResponse, - AsyncRankingWithStreamingResponse, + RankingResource, + AsyncRankingResource, + RankingResourceWithRawResponse, + AsyncRankingResourceWithRawResponse, + RankingResourceWithStreamingResponse, + AsyncRankingResourceWithStreamingResponse, ) __all__ = [ - "Domain", - "AsyncDomain", - "DomainWithRawResponse", - "AsyncDomainWithRawResponse", - "DomainWithStreamingResponse", - "AsyncDomainWithStreamingResponse", - "Ranking", - "AsyncRanking", - "RankingWithRawResponse", - "AsyncRankingWithRawResponse", - "RankingWithStreamingResponse", - "AsyncRankingWithStreamingResponse", + "DomainResource", + "AsyncDomainResource", + "DomainResourceWithRawResponse", + "AsyncDomainResourceWithRawResponse", + "DomainResourceWithStreamingResponse", + "AsyncDomainResourceWithStreamingResponse", + "RankingResource", + "AsyncRankingResource", + "RankingResourceWithRawResponse", + "AsyncRankingResourceWithRawResponse", + "RankingResourceWithStreamingResponse", + "AsyncRankingResourceWithStreamingResponse", ] diff --git a/src/cloudflare/resources/radar/ranking/domain.py b/src/cloudflare/resources/radar/ranking/domain.py index 6c58fb3bf88..19aaa5d8e25 100644 --- a/src/cloudflare/resources/radar/ranking/domain.py +++ b/src/cloudflare/resources/radar/ranking/domain.py @@ -27,17 +27,17 @@ from ....types.radar.ranking import domain_get_params from ....types.radar.ranking.domain_get_response import DomainGetResponse -__all__ = ["Domain", "AsyncDomain"] +__all__ = ["DomainResource", "AsyncDomainResource"] -class Domain(SyncAPIResource): +class DomainResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> DomainWithRawResponse: - return DomainWithRawResponse(self) + def with_raw_response(self) -> DomainResourceWithRawResponse: + return DomainResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> DomainWithStreamingResponse: - return DomainWithStreamingResponse(self) + def with_streaming_response(self) -> DomainResourceWithStreamingResponse: + return DomainResourceWithStreamingResponse(self) def get( self, @@ -106,14 +106,14 @@ def get( ) -class AsyncDomain(AsyncAPIResource): +class AsyncDomainResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncDomainWithRawResponse: - return AsyncDomainWithRawResponse(self) + def with_raw_response(self) -> AsyncDomainResourceWithRawResponse: + return AsyncDomainResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncDomainWithStreamingResponse: - return AsyncDomainWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncDomainResourceWithStreamingResponse: + return AsyncDomainResourceWithStreamingResponse(self) async def get( self, @@ -182,8 +182,8 @@ async def get( ) -class DomainWithRawResponse: - def __init__(self, domain: Domain) -> None: +class DomainResourceWithRawResponse: + def __init__(self, domain: DomainResource) -> None: self._domain = domain self.get = to_raw_response_wrapper( @@ -191,8 +191,8 @@ def __init__(self, domain: Domain) -> None: ) -class AsyncDomainWithRawResponse: - def __init__(self, domain: AsyncDomain) -> None: +class AsyncDomainResourceWithRawResponse: + def __init__(self, domain: AsyncDomainResource) -> None: self._domain = domain self.get = async_to_raw_response_wrapper( @@ -200,8 +200,8 @@ def __init__(self, domain: AsyncDomain) -> None: ) -class DomainWithStreamingResponse: - def __init__(self, domain: Domain) -> None: +class DomainResourceWithStreamingResponse: + def __init__(self, domain: DomainResource) -> None: self._domain = domain self.get = to_streamed_response_wrapper( @@ -209,8 +209,8 @@ def __init__(self, domain: Domain) -> None: ) -class AsyncDomainWithStreamingResponse: - def __init__(self, domain: AsyncDomain) -> None: +class AsyncDomainResourceWithStreamingResponse: + def __init__(self, domain: AsyncDomainResource) -> None: self._domain = domain self.get = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/radar/ranking/ranking.py b/src/cloudflare/resources/radar/ranking/ranking.py index 7d50dd20e8a..ecabe6a0154 100644 --- a/src/cloudflare/resources/radar/ranking/ranking.py +++ b/src/cloudflare/resources/radar/ranking/ranking.py @@ -9,12 +9,12 @@ import httpx from .domain import ( - Domain, - AsyncDomain, - DomainWithRawResponse, - AsyncDomainWithRawResponse, - DomainWithStreamingResponse, - AsyncDomainWithStreamingResponse, + DomainResource, + AsyncDomainResource, + DomainResourceWithRawResponse, + AsyncDomainResourceWithRawResponse, + DomainResourceWithStreamingResponse, + AsyncDomainResourceWithStreamingResponse, ) from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven from ...._utils import ( @@ -37,21 +37,21 @@ from ....types.radar.ranking_top_response import RankingTopResponse from ....types.radar.ranking_timeseries_groups_response import RankingTimeseriesGroupsResponse -__all__ = ["Ranking", "AsyncRanking"] +__all__ = ["RankingResource", "AsyncRankingResource"] -class Ranking(SyncAPIResource): +class RankingResource(SyncAPIResource): @cached_property - def domain(self) -> Domain: - return Domain(self._client) + def domain(self) -> DomainResource: + return DomainResource(self._client) @cached_property - def with_raw_response(self) -> RankingWithRawResponse: - return RankingWithRawResponse(self) + def with_raw_response(self) -> RankingResourceWithRawResponse: + return RankingResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> RankingWithStreamingResponse: - return RankingWithStreamingResponse(self) + def with_streaming_response(self) -> RankingResourceWithStreamingResponse: + return RankingResourceWithStreamingResponse(self) def timeseries_groups( self, @@ -218,18 +218,18 @@ def top( ) -class AsyncRanking(AsyncAPIResource): +class AsyncRankingResource(AsyncAPIResource): @cached_property - def domain(self) -> AsyncDomain: - return AsyncDomain(self._client) + def domain(self) -> AsyncDomainResource: + return AsyncDomainResource(self._client) @cached_property - def with_raw_response(self) -> AsyncRankingWithRawResponse: - return AsyncRankingWithRawResponse(self) + def with_raw_response(self) -> AsyncRankingResourceWithRawResponse: + return AsyncRankingResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncRankingWithStreamingResponse: - return AsyncRankingWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncRankingResourceWithStreamingResponse: + return AsyncRankingResourceWithStreamingResponse(self) async def timeseries_groups( self, @@ -396,8 +396,8 @@ async def top( ) -class RankingWithRawResponse: - def __init__(self, ranking: Ranking) -> None: +class RankingResourceWithRawResponse: + def __init__(self, ranking: RankingResource) -> None: self._ranking = ranking self.timeseries_groups = to_raw_response_wrapper( @@ -408,12 +408,12 @@ def __init__(self, ranking: Ranking) -> None: ) @cached_property - def domain(self) -> DomainWithRawResponse: - return DomainWithRawResponse(self._ranking.domain) + def domain(self) -> DomainResourceWithRawResponse: + return DomainResourceWithRawResponse(self._ranking.domain) -class AsyncRankingWithRawResponse: - def __init__(self, ranking: AsyncRanking) -> None: +class AsyncRankingResourceWithRawResponse: + def __init__(self, ranking: AsyncRankingResource) -> None: self._ranking = ranking self.timeseries_groups = async_to_raw_response_wrapper( @@ -424,12 +424,12 @@ def __init__(self, ranking: AsyncRanking) -> None: ) @cached_property - def domain(self) -> AsyncDomainWithRawResponse: - return AsyncDomainWithRawResponse(self._ranking.domain) + def domain(self) -> AsyncDomainResourceWithRawResponse: + return AsyncDomainResourceWithRawResponse(self._ranking.domain) -class RankingWithStreamingResponse: - def __init__(self, ranking: Ranking) -> None: +class RankingResourceWithStreamingResponse: + def __init__(self, ranking: RankingResource) -> None: self._ranking = ranking self.timeseries_groups = to_streamed_response_wrapper( @@ -440,12 +440,12 @@ def __init__(self, ranking: Ranking) -> None: ) @cached_property - def domain(self) -> DomainWithStreamingResponse: - return DomainWithStreamingResponse(self._ranking.domain) + def domain(self) -> DomainResourceWithStreamingResponse: + return DomainResourceWithStreamingResponse(self._ranking.domain) -class AsyncRankingWithStreamingResponse: - def __init__(self, ranking: AsyncRanking) -> None: +class AsyncRankingResourceWithStreamingResponse: + def __init__(self, ranking: AsyncRankingResource) -> None: self._ranking = ranking self.timeseries_groups = async_to_streamed_response_wrapper( @@ -456,5 +456,5 @@ def __init__(self, ranking: AsyncRanking) -> None: ) @cached_property - def domain(self) -> AsyncDomainWithStreamingResponse: - return AsyncDomainWithStreamingResponse(self._ranking.domain) + def domain(self) -> AsyncDomainResourceWithStreamingResponse: + return AsyncDomainResourceWithStreamingResponse(self._ranking.domain) diff --git a/src/cloudflare/resources/radar/search.py b/src/cloudflare/resources/radar/search.py index 0921bc69760..d355e6deb96 100644 --- a/src/cloudflare/resources/radar/search.py +++ b/src/cloudflare/resources/radar/search.py @@ -27,17 +27,17 @@ ) from ...types.radar.search_global_response import SearchGlobalResponse -__all__ = ["Search", "AsyncSearch"] +__all__ = ["SearchResource", "AsyncSearchResource"] -class Search(SyncAPIResource): +class SearchResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> SearchWithRawResponse: - return SearchWithRawResponse(self) + def with_raw_response(self) -> SearchResourceWithRawResponse: + return SearchResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> SearchWithStreamingResponse: - return SearchWithStreamingResponse(self) + def with_streaming_response(self) -> SearchResourceWithStreamingResponse: + return SearchResourceWithStreamingResponse(self) def global_( self, @@ -103,14 +103,14 @@ def global_( ) -class AsyncSearch(AsyncAPIResource): +class AsyncSearchResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncSearchWithRawResponse: - return AsyncSearchWithRawResponse(self) + def with_raw_response(self) -> AsyncSearchResourceWithRawResponse: + return AsyncSearchResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncSearchWithStreamingResponse: - return AsyncSearchWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncSearchResourceWithStreamingResponse: + return AsyncSearchResourceWithStreamingResponse(self) async def global_( self, @@ -176,8 +176,8 @@ async def global_( ) -class SearchWithRawResponse: - def __init__(self, search: Search) -> None: +class SearchResourceWithRawResponse: + def __init__(self, search: SearchResource) -> None: self._search = search self.global_ = to_raw_response_wrapper( @@ -185,8 +185,8 @@ def __init__(self, search: Search) -> None: ) -class AsyncSearchWithRawResponse: - def __init__(self, search: AsyncSearch) -> None: +class AsyncSearchResourceWithRawResponse: + def __init__(self, search: AsyncSearchResource) -> None: self._search = search self.global_ = async_to_raw_response_wrapper( @@ -194,8 +194,8 @@ def __init__(self, search: AsyncSearch) -> None: ) -class SearchWithStreamingResponse: - def __init__(self, search: Search) -> None: +class SearchResourceWithStreamingResponse: + def __init__(self, search: SearchResource) -> None: self._search = search self.global_ = to_streamed_response_wrapper( @@ -203,8 +203,8 @@ def __init__(self, search: Search) -> None: ) -class AsyncSearchWithStreamingResponse: - def __init__(self, search: AsyncSearch) -> None: +class AsyncSearchResourceWithStreamingResponse: + def __init__(self, search: AsyncSearchResource) -> None: self._search = search self.global_ = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/radar/traffic_anomalies/__init__.py b/src/cloudflare/resources/radar/traffic_anomalies/__init__.py index f537f98cbe2..122941b73c2 100644 --- a/src/cloudflare/resources/radar/traffic_anomalies/__init__.py +++ b/src/cloudflare/resources/radar/traffic_anomalies/__init__.py @@ -1,33 +1,33 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from .locations import ( - Locations, - AsyncLocations, - LocationsWithRawResponse, - AsyncLocationsWithRawResponse, - LocationsWithStreamingResponse, - AsyncLocationsWithStreamingResponse, + LocationsResource, + AsyncLocationsResource, + LocationsResourceWithRawResponse, + AsyncLocationsResourceWithRawResponse, + LocationsResourceWithStreamingResponse, + AsyncLocationsResourceWithStreamingResponse, ) from .traffic_anomalies import ( - TrafficAnomalies, - AsyncTrafficAnomalies, - TrafficAnomaliesWithRawResponse, - AsyncTrafficAnomaliesWithRawResponse, - TrafficAnomaliesWithStreamingResponse, - AsyncTrafficAnomaliesWithStreamingResponse, + TrafficAnomaliesResource, + AsyncTrafficAnomaliesResource, + TrafficAnomaliesResourceWithRawResponse, + AsyncTrafficAnomaliesResourceWithRawResponse, + TrafficAnomaliesResourceWithStreamingResponse, + AsyncTrafficAnomaliesResourceWithStreamingResponse, ) __all__ = [ - "Locations", - "AsyncLocations", - "LocationsWithRawResponse", - "AsyncLocationsWithRawResponse", - "LocationsWithStreamingResponse", - "AsyncLocationsWithStreamingResponse", - "TrafficAnomalies", - "AsyncTrafficAnomalies", - "TrafficAnomaliesWithRawResponse", - "AsyncTrafficAnomaliesWithRawResponse", - "TrafficAnomaliesWithStreamingResponse", - "AsyncTrafficAnomaliesWithStreamingResponse", + "LocationsResource", + "AsyncLocationsResource", + "LocationsResourceWithRawResponse", + "AsyncLocationsResourceWithRawResponse", + "LocationsResourceWithStreamingResponse", + "AsyncLocationsResourceWithStreamingResponse", + "TrafficAnomaliesResource", + "AsyncTrafficAnomaliesResource", + "TrafficAnomaliesResourceWithRawResponse", + "AsyncTrafficAnomaliesResourceWithRawResponse", + "TrafficAnomaliesResourceWithStreamingResponse", + "AsyncTrafficAnomaliesResourceWithStreamingResponse", ] diff --git a/src/cloudflare/resources/radar/traffic_anomalies/locations.py b/src/cloudflare/resources/radar/traffic_anomalies/locations.py index 6b5b5f1fec9..851686c3964 100644 --- a/src/cloudflare/resources/radar/traffic_anomalies/locations.py +++ b/src/cloudflare/resources/radar/traffic_anomalies/locations.py @@ -28,17 +28,17 @@ from ....types.radar.traffic_anomalies import location_get_params from ....types.radar.traffic_anomalies.location_get_response import LocationGetResponse -__all__ = ["Locations", "AsyncLocations"] +__all__ = ["LocationsResource", "AsyncLocationsResource"] -class Locations(SyncAPIResource): +class LocationsResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> LocationsWithRawResponse: - return LocationsWithRawResponse(self) + def with_raw_response(self) -> LocationsResourceWithRawResponse: + return LocationsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> LocationsWithStreamingResponse: - return LocationsWithStreamingResponse(self) + def with_streaming_response(self) -> LocationsResourceWithStreamingResponse: + return LocationsResourceWithStreamingResponse(self) def get( self, @@ -122,14 +122,14 @@ def get( ) -class AsyncLocations(AsyncAPIResource): +class AsyncLocationsResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncLocationsWithRawResponse: - return AsyncLocationsWithRawResponse(self) + def with_raw_response(self) -> AsyncLocationsResourceWithRawResponse: + return AsyncLocationsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncLocationsWithStreamingResponse: - return AsyncLocationsWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncLocationsResourceWithStreamingResponse: + return AsyncLocationsResourceWithStreamingResponse(self) async def get( self, @@ -213,8 +213,8 @@ async def get( ) -class LocationsWithRawResponse: - def __init__(self, locations: Locations) -> None: +class LocationsResourceWithRawResponse: + def __init__(self, locations: LocationsResource) -> None: self._locations = locations self.get = to_raw_response_wrapper( @@ -222,8 +222,8 @@ def __init__(self, locations: Locations) -> None: ) -class AsyncLocationsWithRawResponse: - def __init__(self, locations: AsyncLocations) -> None: +class AsyncLocationsResourceWithRawResponse: + def __init__(self, locations: AsyncLocationsResource) -> None: self._locations = locations self.get = async_to_raw_response_wrapper( @@ -231,8 +231,8 @@ def __init__(self, locations: AsyncLocations) -> None: ) -class LocationsWithStreamingResponse: - def __init__(self, locations: Locations) -> None: +class LocationsResourceWithStreamingResponse: + def __init__(self, locations: LocationsResource) -> None: self._locations = locations self.get = to_streamed_response_wrapper( @@ -240,8 +240,8 @@ def __init__(self, locations: Locations) -> None: ) -class AsyncLocationsWithStreamingResponse: - def __init__(self, locations: AsyncLocations) -> None: +class AsyncLocationsResourceWithStreamingResponse: + def __init__(self, locations: AsyncLocationsResource) -> None: self._locations = locations self.get = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/radar/traffic_anomalies/traffic_anomalies.py b/src/cloudflare/resources/radar/traffic_anomalies/traffic_anomalies.py index fd70ecf4c2a..6a24039a9aa 100644 --- a/src/cloudflare/resources/radar/traffic_anomalies/traffic_anomalies.py +++ b/src/cloudflare/resources/radar/traffic_anomalies/traffic_anomalies.py @@ -14,12 +14,12 @@ async_maybe_transform, ) from .locations import ( - Locations, - AsyncLocations, - LocationsWithRawResponse, - AsyncLocationsWithRawResponse, - LocationsWithStreamingResponse, - AsyncLocationsWithStreamingResponse, + LocationsResource, + AsyncLocationsResource, + LocationsResourceWithRawResponse, + AsyncLocationsResourceWithRawResponse, + LocationsResourceWithStreamingResponse, + AsyncLocationsResourceWithStreamingResponse, ) from ...._compat import cached_property from ...._resource import SyncAPIResource, AsyncAPIResource @@ -36,21 +36,21 @@ ) from ....types.radar.traffic_anomaly_get_response import TrafficAnomalyGetResponse -__all__ = ["TrafficAnomalies", "AsyncTrafficAnomalies"] +__all__ = ["TrafficAnomaliesResource", "AsyncTrafficAnomaliesResource"] -class TrafficAnomalies(SyncAPIResource): +class TrafficAnomaliesResource(SyncAPIResource): @cached_property - def locations(self) -> Locations: - return Locations(self._client) + def locations(self) -> LocationsResource: + return LocationsResource(self._client) @cached_property - def with_raw_response(self) -> TrafficAnomaliesWithRawResponse: - return TrafficAnomaliesWithRawResponse(self) + def with_raw_response(self) -> TrafficAnomaliesResourceWithRawResponse: + return TrafficAnomaliesResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> TrafficAnomaliesWithStreamingResponse: - return TrafficAnomaliesWithStreamingResponse(self) + def with_streaming_response(self) -> TrafficAnomaliesResourceWithStreamingResponse: + return TrafficAnomaliesResourceWithStreamingResponse(self) def get( self, @@ -146,18 +146,18 @@ def get( ) -class AsyncTrafficAnomalies(AsyncAPIResource): +class AsyncTrafficAnomaliesResource(AsyncAPIResource): @cached_property - def locations(self) -> AsyncLocations: - return AsyncLocations(self._client) + def locations(self) -> AsyncLocationsResource: + return AsyncLocationsResource(self._client) @cached_property - def with_raw_response(self) -> AsyncTrafficAnomaliesWithRawResponse: - return AsyncTrafficAnomaliesWithRawResponse(self) + def with_raw_response(self) -> AsyncTrafficAnomaliesResourceWithRawResponse: + return AsyncTrafficAnomaliesResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncTrafficAnomaliesWithStreamingResponse: - return AsyncTrafficAnomaliesWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncTrafficAnomaliesResourceWithStreamingResponse: + return AsyncTrafficAnomaliesResourceWithStreamingResponse(self) async def get( self, @@ -253,8 +253,8 @@ async def get( ) -class TrafficAnomaliesWithRawResponse: - def __init__(self, traffic_anomalies: TrafficAnomalies) -> None: +class TrafficAnomaliesResourceWithRawResponse: + def __init__(self, traffic_anomalies: TrafficAnomaliesResource) -> None: self._traffic_anomalies = traffic_anomalies self.get = to_raw_response_wrapper( @@ -262,12 +262,12 @@ def __init__(self, traffic_anomalies: TrafficAnomalies) -> None: ) @cached_property - def locations(self) -> LocationsWithRawResponse: - return LocationsWithRawResponse(self._traffic_anomalies.locations) + def locations(self) -> LocationsResourceWithRawResponse: + return LocationsResourceWithRawResponse(self._traffic_anomalies.locations) -class AsyncTrafficAnomaliesWithRawResponse: - def __init__(self, traffic_anomalies: AsyncTrafficAnomalies) -> None: +class AsyncTrafficAnomaliesResourceWithRawResponse: + def __init__(self, traffic_anomalies: AsyncTrafficAnomaliesResource) -> None: self._traffic_anomalies = traffic_anomalies self.get = async_to_raw_response_wrapper( @@ -275,12 +275,12 @@ def __init__(self, traffic_anomalies: AsyncTrafficAnomalies) -> None: ) @cached_property - def locations(self) -> AsyncLocationsWithRawResponse: - return AsyncLocationsWithRawResponse(self._traffic_anomalies.locations) + def locations(self) -> AsyncLocationsResourceWithRawResponse: + return AsyncLocationsResourceWithRawResponse(self._traffic_anomalies.locations) -class TrafficAnomaliesWithStreamingResponse: - def __init__(self, traffic_anomalies: TrafficAnomalies) -> None: +class TrafficAnomaliesResourceWithStreamingResponse: + def __init__(self, traffic_anomalies: TrafficAnomaliesResource) -> None: self._traffic_anomalies = traffic_anomalies self.get = to_streamed_response_wrapper( @@ -288,12 +288,12 @@ def __init__(self, traffic_anomalies: TrafficAnomalies) -> None: ) @cached_property - def locations(self) -> LocationsWithStreamingResponse: - return LocationsWithStreamingResponse(self._traffic_anomalies.locations) + def locations(self) -> LocationsResourceWithStreamingResponse: + return LocationsResourceWithStreamingResponse(self._traffic_anomalies.locations) -class AsyncTrafficAnomaliesWithStreamingResponse: - def __init__(self, traffic_anomalies: AsyncTrafficAnomalies) -> None: +class AsyncTrafficAnomaliesResourceWithStreamingResponse: + def __init__(self, traffic_anomalies: AsyncTrafficAnomaliesResource) -> None: self._traffic_anomalies = traffic_anomalies self.get = async_to_streamed_response_wrapper( @@ -301,5 +301,5 @@ def __init__(self, traffic_anomalies: AsyncTrafficAnomalies) -> None: ) @cached_property - def locations(self) -> AsyncLocationsWithStreamingResponse: - return AsyncLocationsWithStreamingResponse(self._traffic_anomalies.locations) + def locations(self) -> AsyncLocationsResourceWithStreamingResponse: + return AsyncLocationsResourceWithStreamingResponse(self._traffic_anomalies.locations) diff --git a/src/cloudflare/resources/radar/verified_bots/__init__.py b/src/cloudflare/resources/radar/verified_bots/__init__.py index f06f5ebe381..e4a6ff0a0c2 100644 --- a/src/cloudflare/resources/radar/verified_bots/__init__.py +++ b/src/cloudflare/resources/radar/verified_bots/__init__.py @@ -1,33 +1,33 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from .top import ( - Top, - AsyncTop, - TopWithRawResponse, - AsyncTopWithRawResponse, - TopWithStreamingResponse, - AsyncTopWithStreamingResponse, + TopResource, + AsyncTopResource, + TopResourceWithRawResponse, + AsyncTopResourceWithRawResponse, + TopResourceWithStreamingResponse, + AsyncTopResourceWithStreamingResponse, ) from .verified_bots import ( - VerifiedBots, - AsyncVerifiedBots, - VerifiedBotsWithRawResponse, - AsyncVerifiedBotsWithRawResponse, - VerifiedBotsWithStreamingResponse, - AsyncVerifiedBotsWithStreamingResponse, + VerifiedBotsResource, + AsyncVerifiedBotsResource, + VerifiedBotsResourceWithRawResponse, + AsyncVerifiedBotsResourceWithRawResponse, + VerifiedBotsResourceWithStreamingResponse, + AsyncVerifiedBotsResourceWithStreamingResponse, ) __all__ = [ - "Top", - "AsyncTop", - "TopWithRawResponse", - "AsyncTopWithRawResponse", - "TopWithStreamingResponse", - "AsyncTopWithStreamingResponse", - "VerifiedBots", - "AsyncVerifiedBots", - "VerifiedBotsWithRawResponse", - "AsyncVerifiedBotsWithRawResponse", - "VerifiedBotsWithStreamingResponse", - "AsyncVerifiedBotsWithStreamingResponse", + "TopResource", + "AsyncTopResource", + "TopResourceWithRawResponse", + "AsyncTopResourceWithRawResponse", + "TopResourceWithStreamingResponse", + "AsyncTopResourceWithStreamingResponse", + "VerifiedBotsResource", + "AsyncVerifiedBotsResource", + "VerifiedBotsResourceWithRawResponse", + "AsyncVerifiedBotsResourceWithRawResponse", + "VerifiedBotsResourceWithStreamingResponse", + "AsyncVerifiedBotsResourceWithStreamingResponse", ] diff --git a/src/cloudflare/resources/radar/verified_bots/top.py b/src/cloudflare/resources/radar/verified_bots/top.py index 84be76efc4b..5b7b011891a 100644 --- a/src/cloudflare/resources/radar/verified_bots/top.py +++ b/src/cloudflare/resources/radar/verified_bots/top.py @@ -29,17 +29,17 @@ from ....types.radar.verified_bots.top_bots_response import TopBotsResponse from ....types.radar.verified_bots.top_categories_response import TopCategoriesResponse -__all__ = ["Top", "AsyncTop"] +__all__ = ["TopResource", "AsyncTopResource"] -class Top(SyncAPIResource): +class TopResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> TopWithRawResponse: - return TopWithRawResponse(self) + def with_raw_response(self) -> TopResourceWithRawResponse: + return TopResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> TopWithStreamingResponse: - return TopWithStreamingResponse(self) + def with_streaming_response(self) -> TopResourceWithStreamingResponse: + return TopResourceWithStreamingResponse(self) def bots( self, @@ -247,14 +247,14 @@ def categories( ) -class AsyncTop(AsyncAPIResource): +class AsyncTopResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncTopWithRawResponse: - return AsyncTopWithRawResponse(self) + def with_raw_response(self) -> AsyncTopResourceWithRawResponse: + return AsyncTopResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncTopWithStreamingResponse: - return AsyncTopWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncTopResourceWithStreamingResponse: + return AsyncTopResourceWithStreamingResponse(self) async def bots( self, @@ -462,8 +462,8 @@ async def categories( ) -class TopWithRawResponse: - def __init__(self, top: Top) -> None: +class TopResourceWithRawResponse: + def __init__(self, top: TopResource) -> None: self._top = top self.bots = to_raw_response_wrapper( @@ -474,8 +474,8 @@ def __init__(self, top: Top) -> None: ) -class AsyncTopWithRawResponse: - def __init__(self, top: AsyncTop) -> None: +class AsyncTopResourceWithRawResponse: + def __init__(self, top: AsyncTopResource) -> None: self._top = top self.bots = async_to_raw_response_wrapper( @@ -486,8 +486,8 @@ def __init__(self, top: AsyncTop) -> None: ) -class TopWithStreamingResponse: - def __init__(self, top: Top) -> None: +class TopResourceWithStreamingResponse: + def __init__(self, top: TopResource) -> None: self._top = top self.bots = to_streamed_response_wrapper( @@ -498,8 +498,8 @@ def __init__(self, top: Top) -> None: ) -class AsyncTopWithStreamingResponse: - def __init__(self, top: AsyncTop) -> None: +class AsyncTopResourceWithStreamingResponse: + def __init__(self, top: AsyncTopResource) -> None: self._top = top self.bots = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/radar/verified_bots/verified_bots.py b/src/cloudflare/resources/radar/verified_bots/verified_bots.py index d51a4ed59a0..d2563c2d472 100644 --- a/src/cloudflare/resources/radar/verified_bots/verified_bots.py +++ b/src/cloudflare/resources/radar/verified_bots/verified_bots.py @@ -3,78 +3,78 @@ from __future__ import annotations from .top import ( - Top, - AsyncTop, - TopWithRawResponse, - AsyncTopWithRawResponse, - TopWithStreamingResponse, - AsyncTopWithStreamingResponse, + TopResource, + AsyncTopResource, + TopResourceWithRawResponse, + AsyncTopResourceWithRawResponse, + TopResourceWithStreamingResponse, + AsyncTopResourceWithStreamingResponse, ) from ...._compat import cached_property from ...._resource import SyncAPIResource, AsyncAPIResource -__all__ = ["VerifiedBots", "AsyncVerifiedBots"] +__all__ = ["VerifiedBotsResource", "AsyncVerifiedBotsResource"] -class VerifiedBots(SyncAPIResource): +class VerifiedBotsResource(SyncAPIResource): @cached_property - def top(self) -> Top: - return Top(self._client) + def top(self) -> TopResource: + return TopResource(self._client) @cached_property - def with_raw_response(self) -> VerifiedBotsWithRawResponse: - return VerifiedBotsWithRawResponse(self) + def with_raw_response(self) -> VerifiedBotsResourceWithRawResponse: + return VerifiedBotsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> VerifiedBotsWithStreamingResponse: - return VerifiedBotsWithStreamingResponse(self) + def with_streaming_response(self) -> VerifiedBotsResourceWithStreamingResponse: + return VerifiedBotsResourceWithStreamingResponse(self) -class AsyncVerifiedBots(AsyncAPIResource): +class AsyncVerifiedBotsResource(AsyncAPIResource): @cached_property - def top(self) -> AsyncTop: - return AsyncTop(self._client) + def top(self) -> AsyncTopResource: + return AsyncTopResource(self._client) @cached_property - def with_raw_response(self) -> AsyncVerifiedBotsWithRawResponse: - return AsyncVerifiedBotsWithRawResponse(self) + def with_raw_response(self) -> AsyncVerifiedBotsResourceWithRawResponse: + return AsyncVerifiedBotsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncVerifiedBotsWithStreamingResponse: - return AsyncVerifiedBotsWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncVerifiedBotsResourceWithStreamingResponse: + return AsyncVerifiedBotsResourceWithStreamingResponse(self) -class VerifiedBotsWithRawResponse: - def __init__(self, verified_bots: VerifiedBots) -> None: +class VerifiedBotsResourceWithRawResponse: + def __init__(self, verified_bots: VerifiedBotsResource) -> None: self._verified_bots = verified_bots @cached_property - def top(self) -> TopWithRawResponse: - return TopWithRawResponse(self._verified_bots.top) + def top(self) -> TopResourceWithRawResponse: + return TopResourceWithRawResponse(self._verified_bots.top) -class AsyncVerifiedBotsWithRawResponse: - def __init__(self, verified_bots: AsyncVerifiedBots) -> None: +class AsyncVerifiedBotsResourceWithRawResponse: + def __init__(self, verified_bots: AsyncVerifiedBotsResource) -> None: self._verified_bots = verified_bots @cached_property - def top(self) -> AsyncTopWithRawResponse: - return AsyncTopWithRawResponse(self._verified_bots.top) + def top(self) -> AsyncTopResourceWithRawResponse: + return AsyncTopResourceWithRawResponse(self._verified_bots.top) -class VerifiedBotsWithStreamingResponse: - def __init__(self, verified_bots: VerifiedBots) -> None: +class VerifiedBotsResourceWithStreamingResponse: + def __init__(self, verified_bots: VerifiedBotsResource) -> None: self._verified_bots = verified_bots @cached_property - def top(self) -> TopWithStreamingResponse: - return TopWithStreamingResponse(self._verified_bots.top) + def top(self) -> TopResourceWithStreamingResponse: + return TopResourceWithStreamingResponse(self._verified_bots.top) -class AsyncVerifiedBotsWithStreamingResponse: - def __init__(self, verified_bots: AsyncVerifiedBots) -> None: +class AsyncVerifiedBotsResourceWithStreamingResponse: + def __init__(self, verified_bots: AsyncVerifiedBotsResource) -> None: self._verified_bots = verified_bots @cached_property - def top(self) -> AsyncTopWithStreamingResponse: - return AsyncTopWithStreamingResponse(self._verified_bots.top) + def top(self) -> AsyncTopResourceWithStreamingResponse: + return AsyncTopResourceWithStreamingResponse(self._verified_bots.top) diff --git a/src/cloudflare/resources/rate_limits.py b/src/cloudflare/resources/rate_limits.py index d9a17782151..0cd9e9f3118 100644 --- a/src/cloudflare/resources/rate_limits.py +++ b/src/cloudflare/resources/rate_limits.py @@ -37,17 +37,17 @@ from ..types.rate_limits.rate_limit_create_response import RateLimitCreateResponse from ..types.rate_limits.rate_limit_delete_response import RateLimitDeleteResponse -__all__ = ["RateLimits", "AsyncRateLimits"] +__all__ = ["RateLimitsResource", "AsyncRateLimitsResource"] -class RateLimits(SyncAPIResource): +class RateLimitsResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> RateLimitsWithRawResponse: - return RateLimitsWithRawResponse(self) + def with_raw_response(self) -> RateLimitsResourceWithRawResponse: + return RateLimitsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> RateLimitsWithStreamingResponse: - return RateLimitsWithStreamingResponse(self) + def with_streaming_response(self) -> RateLimitsResourceWithStreamingResponse: + return RateLimitsResourceWithStreamingResponse(self) def create( self, @@ -297,14 +297,14 @@ def get( ) -class AsyncRateLimits(AsyncAPIResource): +class AsyncRateLimitsResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncRateLimitsWithRawResponse: - return AsyncRateLimitsWithRawResponse(self) + def with_raw_response(self) -> AsyncRateLimitsResourceWithRawResponse: + return AsyncRateLimitsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncRateLimitsWithStreamingResponse: - return AsyncRateLimitsWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncRateLimitsResourceWithStreamingResponse: + return AsyncRateLimitsResourceWithStreamingResponse(self) async def create( self, @@ -554,8 +554,8 @@ async def get( ) -class RateLimitsWithRawResponse: - def __init__(self, rate_limits: RateLimits) -> None: +class RateLimitsResourceWithRawResponse: + def __init__(self, rate_limits: RateLimitsResource) -> None: self._rate_limits = rate_limits self.create = to_raw_response_wrapper( @@ -575,8 +575,8 @@ def __init__(self, rate_limits: RateLimits) -> None: ) -class AsyncRateLimitsWithRawResponse: - def __init__(self, rate_limits: AsyncRateLimits) -> None: +class AsyncRateLimitsResourceWithRawResponse: + def __init__(self, rate_limits: AsyncRateLimitsResource) -> None: self._rate_limits = rate_limits self.create = async_to_raw_response_wrapper( @@ -596,8 +596,8 @@ def __init__(self, rate_limits: AsyncRateLimits) -> None: ) -class RateLimitsWithStreamingResponse: - def __init__(self, rate_limits: RateLimits) -> None: +class RateLimitsResourceWithStreamingResponse: + def __init__(self, rate_limits: RateLimitsResource) -> None: self._rate_limits = rate_limits self.create = to_streamed_response_wrapper( @@ -617,8 +617,8 @@ def __init__(self, rate_limits: RateLimits) -> None: ) -class AsyncRateLimitsWithStreamingResponse: - def __init__(self, rate_limits: AsyncRateLimits) -> None: +class AsyncRateLimitsResourceWithStreamingResponse: + def __init__(self, rate_limits: AsyncRateLimitsResource) -> None: self._rate_limits = rate_limits self.create = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/rate_plans.py b/src/cloudflare/resources/rate_plans.py index 9292d76f8da..3c90903292e 100644 --- a/src/cloudflare/resources/rate_plans.py +++ b/src/cloudflare/resources/rate_plans.py @@ -21,17 +21,17 @@ ) from ..types.rate_plans.rate_plan_get_response import RatePlanGetResponse -__all__ = ["RatePlans", "AsyncRatePlans"] +__all__ = ["RatePlansResource", "AsyncRatePlansResource"] -class RatePlans(SyncAPIResource): +class RatePlansResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> RatePlansWithRawResponse: - return RatePlansWithRawResponse(self) + def with_raw_response(self) -> RatePlansResourceWithRawResponse: + return RatePlansResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> RatePlansWithStreamingResponse: - return RatePlansWithStreamingResponse(self) + def with_streaming_response(self) -> RatePlansResourceWithStreamingResponse: + return RatePlansResourceWithStreamingResponse(self) def get( self, @@ -73,14 +73,14 @@ def get( ) -class AsyncRatePlans(AsyncAPIResource): +class AsyncRatePlansResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncRatePlansWithRawResponse: - return AsyncRatePlansWithRawResponse(self) + def with_raw_response(self) -> AsyncRatePlansResourceWithRawResponse: + return AsyncRatePlansResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncRatePlansWithStreamingResponse: - return AsyncRatePlansWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncRatePlansResourceWithStreamingResponse: + return AsyncRatePlansResourceWithStreamingResponse(self) async def get( self, @@ -122,8 +122,8 @@ async def get( ) -class RatePlansWithRawResponse: - def __init__(self, rate_plans: RatePlans) -> None: +class RatePlansResourceWithRawResponse: + def __init__(self, rate_plans: RatePlansResource) -> None: self._rate_plans = rate_plans self.get = to_raw_response_wrapper( @@ -131,8 +131,8 @@ def __init__(self, rate_plans: RatePlans) -> None: ) -class AsyncRatePlansWithRawResponse: - def __init__(self, rate_plans: AsyncRatePlans) -> None: +class AsyncRatePlansResourceWithRawResponse: + def __init__(self, rate_plans: AsyncRatePlansResource) -> None: self._rate_plans = rate_plans self.get = async_to_raw_response_wrapper( @@ -140,8 +140,8 @@ def __init__(self, rate_plans: AsyncRatePlans) -> None: ) -class RatePlansWithStreamingResponse: - def __init__(self, rate_plans: RatePlans) -> None: +class RatePlansResourceWithStreamingResponse: + def __init__(self, rate_plans: RatePlansResource) -> None: self._rate_plans = rate_plans self.get = to_streamed_response_wrapper( @@ -149,8 +149,8 @@ def __init__(self, rate_plans: RatePlans) -> None: ) -class AsyncRatePlansWithStreamingResponse: - def __init__(self, rate_plans: AsyncRatePlans) -> None: +class AsyncRatePlansResourceWithStreamingResponse: + def __init__(self, rate_plans: AsyncRatePlansResource) -> None: self._rate_plans = rate_plans self.get = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/registrar/__init__.py b/src/cloudflare/resources/registrar/__init__.py index 410492bf2e7..e7c8e75402f 100644 --- a/src/cloudflare/resources/registrar/__init__.py +++ b/src/cloudflare/resources/registrar/__init__.py @@ -1,33 +1,33 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from .domains import ( - Domains, - AsyncDomains, - DomainsWithRawResponse, - AsyncDomainsWithRawResponse, - DomainsWithStreamingResponse, - AsyncDomainsWithStreamingResponse, + DomainsResource, + AsyncDomainsResource, + DomainsResourceWithRawResponse, + AsyncDomainsResourceWithRawResponse, + DomainsResourceWithStreamingResponse, + AsyncDomainsResourceWithStreamingResponse, ) from .registrar import ( - Registrar, - AsyncRegistrar, - RegistrarWithRawResponse, - AsyncRegistrarWithRawResponse, - RegistrarWithStreamingResponse, - AsyncRegistrarWithStreamingResponse, + RegistrarResource, + AsyncRegistrarResource, + RegistrarResourceWithRawResponse, + AsyncRegistrarResourceWithRawResponse, + RegistrarResourceWithStreamingResponse, + AsyncRegistrarResourceWithStreamingResponse, ) __all__ = [ - "Domains", - "AsyncDomains", - "DomainsWithRawResponse", - "AsyncDomainsWithRawResponse", - "DomainsWithStreamingResponse", - "AsyncDomainsWithStreamingResponse", - "Registrar", - "AsyncRegistrar", - "RegistrarWithRawResponse", - "AsyncRegistrarWithRawResponse", - "RegistrarWithStreamingResponse", - "AsyncRegistrarWithStreamingResponse", + "DomainsResource", + "AsyncDomainsResource", + "DomainsResourceWithRawResponse", + "AsyncDomainsResourceWithRawResponse", + "DomainsResourceWithStreamingResponse", + "AsyncDomainsResourceWithStreamingResponse", + "RegistrarResource", + "AsyncRegistrarResource", + "RegistrarResourceWithRawResponse", + "AsyncRegistrarResourceWithRawResponse", + "RegistrarResourceWithStreamingResponse", + "AsyncRegistrarResourceWithStreamingResponse", ] diff --git a/src/cloudflare/resources/registrar/domains.py b/src/cloudflare/resources/registrar/domains.py index 9eaab04fdb3..2dc5c9955fc 100644 --- a/src/cloudflare/resources/registrar/domains.py +++ b/src/cloudflare/resources/registrar/domains.py @@ -30,17 +30,17 @@ from ...types.registrar.domain_get_response import DomainGetResponse from ...types.registrar.domain_update_response import DomainUpdateResponse -__all__ = ["Domains", "AsyncDomains"] +__all__ = ["DomainsResource", "AsyncDomainsResource"] -class Domains(SyncAPIResource): +class DomainsResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> DomainsWithRawResponse: - return DomainsWithRawResponse(self) + def with_raw_response(self) -> DomainsResourceWithRawResponse: + return DomainsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> DomainsWithStreamingResponse: - return DomainsWithStreamingResponse(self) + def with_streaming_response(self) -> DomainsResourceWithStreamingResponse: + return DomainsResourceWithStreamingResponse(self) def update( self, @@ -195,14 +195,14 @@ def get( ) -class AsyncDomains(AsyncAPIResource): +class AsyncDomainsResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncDomainsWithRawResponse: - return AsyncDomainsWithRawResponse(self) + def with_raw_response(self) -> AsyncDomainsResourceWithRawResponse: + return AsyncDomainsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncDomainsWithStreamingResponse: - return AsyncDomainsWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncDomainsResourceWithStreamingResponse: + return AsyncDomainsResourceWithStreamingResponse(self) async def update( self, @@ -357,8 +357,8 @@ async def get( ) -class DomainsWithRawResponse: - def __init__(self, domains: Domains) -> None: +class DomainsResourceWithRawResponse: + def __init__(self, domains: DomainsResource) -> None: self._domains = domains self.update = to_raw_response_wrapper( @@ -372,8 +372,8 @@ def __init__(self, domains: Domains) -> None: ) -class AsyncDomainsWithRawResponse: - def __init__(self, domains: AsyncDomains) -> None: +class AsyncDomainsResourceWithRawResponse: + def __init__(self, domains: AsyncDomainsResource) -> None: self._domains = domains self.update = async_to_raw_response_wrapper( @@ -387,8 +387,8 @@ def __init__(self, domains: AsyncDomains) -> None: ) -class DomainsWithStreamingResponse: - def __init__(self, domains: Domains) -> None: +class DomainsResourceWithStreamingResponse: + def __init__(self, domains: DomainsResource) -> None: self._domains = domains self.update = to_streamed_response_wrapper( @@ -402,8 +402,8 @@ def __init__(self, domains: Domains) -> None: ) -class AsyncDomainsWithStreamingResponse: - def __init__(self, domains: AsyncDomains) -> None: +class AsyncDomainsResourceWithStreamingResponse: + def __init__(self, domains: AsyncDomainsResource) -> None: self._domains = domains self.update = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/registrar/registrar.py b/src/cloudflare/resources/registrar/registrar.py index 4227d2e84a8..aef3e690b16 100644 --- a/src/cloudflare/resources/registrar/registrar.py +++ b/src/cloudflare/resources/registrar/registrar.py @@ -3,78 +3,78 @@ from __future__ import annotations from .domains import ( - Domains, - AsyncDomains, - DomainsWithRawResponse, - AsyncDomainsWithRawResponse, - DomainsWithStreamingResponse, - AsyncDomainsWithStreamingResponse, + DomainsResource, + AsyncDomainsResource, + DomainsResourceWithRawResponse, + AsyncDomainsResourceWithRawResponse, + DomainsResourceWithStreamingResponse, + AsyncDomainsResourceWithStreamingResponse, ) from ..._compat import cached_property from ..._resource import SyncAPIResource, AsyncAPIResource -__all__ = ["Registrar", "AsyncRegistrar"] +__all__ = ["RegistrarResource", "AsyncRegistrarResource"] -class Registrar(SyncAPIResource): +class RegistrarResource(SyncAPIResource): @cached_property - def domains(self) -> Domains: - return Domains(self._client) + def domains(self) -> DomainsResource: + return DomainsResource(self._client) @cached_property - def with_raw_response(self) -> RegistrarWithRawResponse: - return RegistrarWithRawResponse(self) + def with_raw_response(self) -> RegistrarResourceWithRawResponse: + return RegistrarResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> RegistrarWithStreamingResponse: - return RegistrarWithStreamingResponse(self) + def with_streaming_response(self) -> RegistrarResourceWithStreamingResponse: + return RegistrarResourceWithStreamingResponse(self) -class AsyncRegistrar(AsyncAPIResource): +class AsyncRegistrarResource(AsyncAPIResource): @cached_property - def domains(self) -> AsyncDomains: - return AsyncDomains(self._client) + def domains(self) -> AsyncDomainsResource: + return AsyncDomainsResource(self._client) @cached_property - def with_raw_response(self) -> AsyncRegistrarWithRawResponse: - return AsyncRegistrarWithRawResponse(self) + def with_raw_response(self) -> AsyncRegistrarResourceWithRawResponse: + return AsyncRegistrarResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncRegistrarWithStreamingResponse: - return AsyncRegistrarWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncRegistrarResourceWithStreamingResponse: + return AsyncRegistrarResourceWithStreamingResponse(self) -class RegistrarWithRawResponse: - def __init__(self, registrar: Registrar) -> None: +class RegistrarResourceWithRawResponse: + def __init__(self, registrar: RegistrarResource) -> None: self._registrar = registrar @cached_property - def domains(self) -> DomainsWithRawResponse: - return DomainsWithRawResponse(self._registrar.domains) + def domains(self) -> DomainsResourceWithRawResponse: + return DomainsResourceWithRawResponse(self._registrar.domains) -class AsyncRegistrarWithRawResponse: - def __init__(self, registrar: AsyncRegistrar) -> None: +class AsyncRegistrarResourceWithRawResponse: + def __init__(self, registrar: AsyncRegistrarResource) -> None: self._registrar = registrar @cached_property - def domains(self) -> AsyncDomainsWithRawResponse: - return AsyncDomainsWithRawResponse(self._registrar.domains) + def domains(self) -> AsyncDomainsResourceWithRawResponse: + return AsyncDomainsResourceWithRawResponse(self._registrar.domains) -class RegistrarWithStreamingResponse: - def __init__(self, registrar: Registrar) -> None: +class RegistrarResourceWithStreamingResponse: + def __init__(self, registrar: RegistrarResource) -> None: self._registrar = registrar @cached_property - def domains(self) -> DomainsWithStreamingResponse: - return DomainsWithStreamingResponse(self._registrar.domains) + def domains(self) -> DomainsResourceWithStreamingResponse: + return DomainsResourceWithStreamingResponse(self._registrar.domains) -class AsyncRegistrarWithStreamingResponse: - def __init__(self, registrar: AsyncRegistrar) -> None: +class AsyncRegistrarResourceWithStreamingResponse: + def __init__(self, registrar: AsyncRegistrarResource) -> None: self._registrar = registrar @cached_property - def domains(self) -> AsyncDomainsWithStreamingResponse: - return AsyncDomainsWithStreamingResponse(self._registrar.domains) + def domains(self) -> AsyncDomainsResourceWithStreamingResponse: + return AsyncDomainsResourceWithStreamingResponse(self._registrar.domains) diff --git a/src/cloudflare/resources/request_tracers/__init__.py b/src/cloudflare/resources/request_tracers/__init__.py index f19a11ba800..c116ff92b35 100644 --- a/src/cloudflare/resources/request_tracers/__init__.py +++ b/src/cloudflare/resources/request_tracers/__init__.py @@ -1,33 +1,33 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from .traces import ( - Traces, - AsyncTraces, - TracesWithRawResponse, - AsyncTracesWithRawResponse, - TracesWithStreamingResponse, - AsyncTracesWithStreamingResponse, + TracesResource, + AsyncTracesResource, + TracesResourceWithRawResponse, + AsyncTracesResourceWithRawResponse, + TracesResourceWithStreamingResponse, + AsyncTracesResourceWithStreamingResponse, ) from .request_tracers import ( - RequestTracers, - AsyncRequestTracers, - RequestTracersWithRawResponse, - AsyncRequestTracersWithRawResponse, - RequestTracersWithStreamingResponse, - AsyncRequestTracersWithStreamingResponse, + RequestTracersResource, + AsyncRequestTracersResource, + RequestTracersResourceWithRawResponse, + AsyncRequestTracersResourceWithRawResponse, + RequestTracersResourceWithStreamingResponse, + AsyncRequestTracersResourceWithStreamingResponse, ) __all__ = [ - "Traces", - "AsyncTraces", - "TracesWithRawResponse", - "AsyncTracesWithRawResponse", - "TracesWithStreamingResponse", - "AsyncTracesWithStreamingResponse", - "RequestTracers", - "AsyncRequestTracers", - "RequestTracersWithRawResponse", - "AsyncRequestTracersWithRawResponse", - "RequestTracersWithStreamingResponse", - "AsyncRequestTracersWithStreamingResponse", + "TracesResource", + "AsyncTracesResource", + "TracesResourceWithRawResponse", + "AsyncTracesResourceWithRawResponse", + "TracesResourceWithStreamingResponse", + "AsyncTracesResourceWithStreamingResponse", + "RequestTracersResource", + "AsyncRequestTracersResource", + "RequestTracersResourceWithRawResponse", + "AsyncRequestTracersResourceWithRawResponse", + "RequestTracersResourceWithStreamingResponse", + "AsyncRequestTracersResourceWithStreamingResponse", ] diff --git a/src/cloudflare/resources/request_tracers/request_tracers.py b/src/cloudflare/resources/request_tracers/request_tracers.py index bf03ddeaa5e..df986b01321 100644 --- a/src/cloudflare/resources/request_tracers/request_tracers.py +++ b/src/cloudflare/resources/request_tracers/request_tracers.py @@ -3,78 +3,78 @@ from __future__ import annotations from .traces import ( - Traces, - AsyncTraces, - TracesWithRawResponse, - AsyncTracesWithRawResponse, - TracesWithStreamingResponse, - AsyncTracesWithStreamingResponse, + TracesResource, + AsyncTracesResource, + TracesResourceWithRawResponse, + AsyncTracesResourceWithRawResponse, + TracesResourceWithStreamingResponse, + AsyncTracesResourceWithStreamingResponse, ) from ..._compat import cached_property from ..._resource import SyncAPIResource, AsyncAPIResource -__all__ = ["RequestTracers", "AsyncRequestTracers"] +__all__ = ["RequestTracersResource", "AsyncRequestTracersResource"] -class RequestTracers(SyncAPIResource): +class RequestTracersResource(SyncAPIResource): @cached_property - def traces(self) -> Traces: - return Traces(self._client) + def traces(self) -> TracesResource: + return TracesResource(self._client) @cached_property - def with_raw_response(self) -> RequestTracersWithRawResponse: - return RequestTracersWithRawResponse(self) + def with_raw_response(self) -> RequestTracersResourceWithRawResponse: + return RequestTracersResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> RequestTracersWithStreamingResponse: - return RequestTracersWithStreamingResponse(self) + def with_streaming_response(self) -> RequestTracersResourceWithStreamingResponse: + return RequestTracersResourceWithStreamingResponse(self) -class AsyncRequestTracers(AsyncAPIResource): +class AsyncRequestTracersResource(AsyncAPIResource): @cached_property - def traces(self) -> AsyncTraces: - return AsyncTraces(self._client) + def traces(self) -> AsyncTracesResource: + return AsyncTracesResource(self._client) @cached_property - def with_raw_response(self) -> AsyncRequestTracersWithRawResponse: - return AsyncRequestTracersWithRawResponse(self) + def with_raw_response(self) -> AsyncRequestTracersResourceWithRawResponse: + return AsyncRequestTracersResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncRequestTracersWithStreamingResponse: - return AsyncRequestTracersWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncRequestTracersResourceWithStreamingResponse: + return AsyncRequestTracersResourceWithStreamingResponse(self) -class RequestTracersWithRawResponse: - def __init__(self, request_tracers: RequestTracers) -> None: +class RequestTracersResourceWithRawResponse: + def __init__(self, request_tracers: RequestTracersResource) -> None: self._request_tracers = request_tracers @cached_property - def traces(self) -> TracesWithRawResponse: - return TracesWithRawResponse(self._request_tracers.traces) + def traces(self) -> TracesResourceWithRawResponse: + return TracesResourceWithRawResponse(self._request_tracers.traces) -class AsyncRequestTracersWithRawResponse: - def __init__(self, request_tracers: AsyncRequestTracers) -> None: +class AsyncRequestTracersResourceWithRawResponse: + def __init__(self, request_tracers: AsyncRequestTracersResource) -> None: self._request_tracers = request_tracers @cached_property - def traces(self) -> AsyncTracesWithRawResponse: - return AsyncTracesWithRawResponse(self._request_tracers.traces) + def traces(self) -> AsyncTracesResourceWithRawResponse: + return AsyncTracesResourceWithRawResponse(self._request_tracers.traces) -class RequestTracersWithStreamingResponse: - def __init__(self, request_tracers: RequestTracers) -> None: +class RequestTracersResourceWithStreamingResponse: + def __init__(self, request_tracers: RequestTracersResource) -> None: self._request_tracers = request_tracers @cached_property - def traces(self) -> TracesWithStreamingResponse: - return TracesWithStreamingResponse(self._request_tracers.traces) + def traces(self) -> TracesResourceWithStreamingResponse: + return TracesResourceWithStreamingResponse(self._request_tracers.traces) -class AsyncRequestTracersWithStreamingResponse: - def __init__(self, request_tracers: AsyncRequestTracers) -> None: +class AsyncRequestTracersResourceWithStreamingResponse: + def __init__(self, request_tracers: AsyncRequestTracersResource) -> None: self._request_tracers = request_tracers @cached_property - def traces(self) -> AsyncTracesWithStreamingResponse: - return AsyncTracesWithStreamingResponse(self._request_tracers.traces) + def traces(self) -> AsyncTracesResourceWithStreamingResponse: + return AsyncTracesResourceWithStreamingResponse(self._request_tracers.traces) diff --git a/src/cloudflare/resources/request_tracers/traces.py b/src/cloudflare/resources/request_tracers/traces.py index ff37193a370..55f4b1ea22a 100644 --- a/src/cloudflare/resources/request_tracers/traces.py +++ b/src/cloudflare/resources/request_tracers/traces.py @@ -26,17 +26,17 @@ from ...types.request_tracers import trace_create_params from ...types.request_tracers.trace_create_response import TraceCreateResponse -__all__ = ["Traces", "AsyncTraces"] +__all__ = ["TracesResource", "AsyncTracesResource"] -class Traces(SyncAPIResource): +class TracesResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> TracesWithRawResponse: - return TracesWithRawResponse(self) + def with_raw_response(self) -> TracesResourceWithRawResponse: + return TracesResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> TracesWithStreamingResponse: - return TracesWithStreamingResponse(self) + def with_streaming_response(self) -> TracesResourceWithStreamingResponse: + return TracesResourceWithStreamingResponse(self) def create( self, @@ -113,14 +113,14 @@ def create( ) -class AsyncTraces(AsyncAPIResource): +class AsyncTracesResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncTracesWithRawResponse: - return AsyncTracesWithRawResponse(self) + def with_raw_response(self) -> AsyncTracesResourceWithRawResponse: + return AsyncTracesResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncTracesWithStreamingResponse: - return AsyncTracesWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncTracesResourceWithStreamingResponse: + return AsyncTracesResourceWithStreamingResponse(self) async def create( self, @@ -197,8 +197,8 @@ async def create( ) -class TracesWithRawResponse: - def __init__(self, traces: Traces) -> None: +class TracesResourceWithRawResponse: + def __init__(self, traces: TracesResource) -> None: self._traces = traces self.create = to_raw_response_wrapper( @@ -206,8 +206,8 @@ def __init__(self, traces: Traces) -> None: ) -class AsyncTracesWithRawResponse: - def __init__(self, traces: AsyncTraces) -> None: +class AsyncTracesResourceWithRawResponse: + def __init__(self, traces: AsyncTracesResource) -> None: self._traces = traces self.create = async_to_raw_response_wrapper( @@ -215,8 +215,8 @@ def __init__(self, traces: AsyncTraces) -> None: ) -class TracesWithStreamingResponse: - def __init__(self, traces: Traces) -> None: +class TracesResourceWithStreamingResponse: + def __init__(self, traces: TracesResource) -> None: self._traces = traces self.create = to_streamed_response_wrapper( @@ -224,8 +224,8 @@ def __init__(self, traces: Traces) -> None: ) -class AsyncTracesWithStreamingResponse: - def __init__(self, traces: AsyncTraces) -> None: +class AsyncTracesResourceWithStreamingResponse: + def __init__(self, traces: AsyncTracesResource) -> None: self._traces = traces self.create = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/rules/__init__.py b/src/cloudflare/resources/rules/__init__.py index c69717b8e6a..93d2881aef4 100644 --- a/src/cloudflare/resources/rules/__init__.py +++ b/src/cloudflare/resources/rules/__init__.py @@ -1,33 +1,33 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from .lists import ( - Lists, - AsyncLists, - ListsWithRawResponse, - AsyncListsWithRawResponse, - ListsWithStreamingResponse, - AsyncListsWithStreamingResponse, + ListsResource, + AsyncListsResource, + ListsResourceWithRawResponse, + AsyncListsResourceWithRawResponse, + ListsResourceWithStreamingResponse, + AsyncListsResourceWithStreamingResponse, ) from .rules import ( - Rules, - AsyncRules, - RulesWithRawResponse, - AsyncRulesWithRawResponse, - RulesWithStreamingResponse, - AsyncRulesWithStreamingResponse, + RulesResource, + AsyncRulesResource, + RulesResourceWithRawResponse, + AsyncRulesResourceWithRawResponse, + RulesResourceWithStreamingResponse, + AsyncRulesResourceWithStreamingResponse, ) __all__ = [ - "Lists", - "AsyncLists", - "ListsWithRawResponse", - "AsyncListsWithRawResponse", - "ListsWithStreamingResponse", - "AsyncListsWithStreamingResponse", - "Rules", - "AsyncRules", - "RulesWithRawResponse", - "AsyncRulesWithRawResponse", - "RulesWithStreamingResponse", - "AsyncRulesWithStreamingResponse", + "ListsResource", + "AsyncListsResource", + "ListsResourceWithRawResponse", + "AsyncListsResourceWithRawResponse", + "ListsResourceWithStreamingResponse", + "AsyncListsResourceWithStreamingResponse", + "RulesResource", + "AsyncRulesResource", + "RulesResourceWithRawResponse", + "AsyncRulesResourceWithRawResponse", + "RulesResourceWithStreamingResponse", + "AsyncRulesResourceWithStreamingResponse", ] diff --git a/src/cloudflare/resources/rules/lists/__init__.py b/src/cloudflare/resources/rules/lists/__init__.py index cbe5085f32b..b26e8a39caf 100644 --- a/src/cloudflare/resources/rules/lists/__init__.py +++ b/src/cloudflare/resources/rules/lists/__init__.py @@ -1,47 +1,47 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from .items import ( - Items, - AsyncItems, - ItemsWithRawResponse, - AsyncItemsWithRawResponse, - ItemsWithStreamingResponse, - AsyncItemsWithStreamingResponse, + ItemsResource, + AsyncItemsResource, + ItemsResourceWithRawResponse, + AsyncItemsResourceWithRawResponse, + ItemsResourceWithStreamingResponse, + AsyncItemsResourceWithStreamingResponse, ) from .lists import ( - Lists, - AsyncLists, - ListsWithRawResponse, - AsyncListsWithRawResponse, - ListsWithStreamingResponse, - AsyncListsWithStreamingResponse, + ListsResource, + AsyncListsResource, + ListsResourceWithRawResponse, + AsyncListsResourceWithRawResponse, + ListsResourceWithStreamingResponse, + AsyncListsResourceWithStreamingResponse, ) from .bulk_operations import ( - BulkOperations, - AsyncBulkOperations, - BulkOperationsWithRawResponse, - AsyncBulkOperationsWithRawResponse, - BulkOperationsWithStreamingResponse, - AsyncBulkOperationsWithStreamingResponse, + BulkOperationsResource, + AsyncBulkOperationsResource, + BulkOperationsResourceWithRawResponse, + AsyncBulkOperationsResourceWithRawResponse, + BulkOperationsResourceWithStreamingResponse, + AsyncBulkOperationsResourceWithStreamingResponse, ) __all__ = [ - "BulkOperations", - "AsyncBulkOperations", - "BulkOperationsWithRawResponse", - "AsyncBulkOperationsWithRawResponse", - "BulkOperationsWithStreamingResponse", - "AsyncBulkOperationsWithStreamingResponse", - "Items", - "AsyncItems", - "ItemsWithRawResponse", - "AsyncItemsWithRawResponse", - "ItemsWithStreamingResponse", - "AsyncItemsWithStreamingResponse", - "Lists", - "AsyncLists", - "ListsWithRawResponse", - "AsyncListsWithRawResponse", - "ListsWithStreamingResponse", - "AsyncListsWithStreamingResponse", + "BulkOperationsResource", + "AsyncBulkOperationsResource", + "BulkOperationsResourceWithRawResponse", + "AsyncBulkOperationsResourceWithRawResponse", + "BulkOperationsResourceWithStreamingResponse", + "AsyncBulkOperationsResourceWithStreamingResponse", + "ItemsResource", + "AsyncItemsResource", + "ItemsResourceWithRawResponse", + "AsyncItemsResourceWithRawResponse", + "ItemsResourceWithStreamingResponse", + "AsyncItemsResourceWithStreamingResponse", + "ListsResource", + "AsyncListsResource", + "ListsResourceWithRawResponse", + "AsyncListsResourceWithRawResponse", + "ListsResourceWithStreamingResponse", + "AsyncListsResourceWithStreamingResponse", ] diff --git a/src/cloudflare/resources/rules/lists/bulk_operations.py b/src/cloudflare/resources/rules/lists/bulk_operations.py index 9a1fdd25292..b1c7f0b3399 100644 --- a/src/cloudflare/resources/rules/lists/bulk_operations.py +++ b/src/cloudflare/resources/rules/lists/bulk_operations.py @@ -21,17 +21,17 @@ ) from ....types.rules.lists.bulk_operation_get_response import BulkOperationGetResponse -__all__ = ["BulkOperations", "AsyncBulkOperations"] +__all__ = ["BulkOperationsResource", "AsyncBulkOperationsResource"] -class BulkOperations(SyncAPIResource): +class BulkOperationsResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> BulkOperationsWithRawResponse: - return BulkOperationsWithRawResponse(self) + def with_raw_response(self) -> BulkOperationsResourceWithRawResponse: + return BulkOperationsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> BulkOperationsWithStreamingResponse: - return BulkOperationsWithStreamingResponse(self) + def with_streaming_response(self) -> BulkOperationsResourceWithStreamingResponse: + return BulkOperationsResourceWithStreamingResponse(self) def get( self, @@ -82,14 +82,14 @@ def get( ) -class AsyncBulkOperations(AsyncAPIResource): +class AsyncBulkOperationsResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncBulkOperationsWithRawResponse: - return AsyncBulkOperationsWithRawResponse(self) + def with_raw_response(self) -> AsyncBulkOperationsResourceWithRawResponse: + return AsyncBulkOperationsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncBulkOperationsWithStreamingResponse: - return AsyncBulkOperationsWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncBulkOperationsResourceWithStreamingResponse: + return AsyncBulkOperationsResourceWithStreamingResponse(self) async def get( self, @@ -140,8 +140,8 @@ async def get( ) -class BulkOperationsWithRawResponse: - def __init__(self, bulk_operations: BulkOperations) -> None: +class BulkOperationsResourceWithRawResponse: + def __init__(self, bulk_operations: BulkOperationsResource) -> None: self._bulk_operations = bulk_operations self.get = to_raw_response_wrapper( @@ -149,8 +149,8 @@ def __init__(self, bulk_operations: BulkOperations) -> None: ) -class AsyncBulkOperationsWithRawResponse: - def __init__(self, bulk_operations: AsyncBulkOperations) -> None: +class AsyncBulkOperationsResourceWithRawResponse: + def __init__(self, bulk_operations: AsyncBulkOperationsResource) -> None: self._bulk_operations = bulk_operations self.get = async_to_raw_response_wrapper( @@ -158,8 +158,8 @@ def __init__(self, bulk_operations: AsyncBulkOperations) -> None: ) -class BulkOperationsWithStreamingResponse: - def __init__(self, bulk_operations: BulkOperations) -> None: +class BulkOperationsResourceWithStreamingResponse: + def __init__(self, bulk_operations: BulkOperationsResource) -> None: self._bulk_operations = bulk_operations self.get = to_streamed_response_wrapper( @@ -167,8 +167,8 @@ def __init__(self, bulk_operations: BulkOperations) -> None: ) -class AsyncBulkOperationsWithStreamingResponse: - def __init__(self, bulk_operations: AsyncBulkOperations) -> None: +class AsyncBulkOperationsResourceWithStreamingResponse: + def __init__(self, bulk_operations: AsyncBulkOperationsResource) -> None: self._bulk_operations = bulk_operations self.get = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/rules/lists/items.py b/src/cloudflare/resources/rules/lists/items.py index ba6c3acad41..40d4f5062cc 100644 --- a/src/cloudflare/resources/rules/lists/items.py +++ b/src/cloudflare/resources/rules/lists/items.py @@ -31,17 +31,17 @@ from ....types.rules.lists.item_delete_response import ItemDeleteResponse from ....types.rules.lists.item_update_response import ItemUpdateResponse -__all__ = ["Items", "AsyncItems"] +__all__ = ["ItemsResource", "AsyncItemsResource"] -class Items(SyncAPIResource): +class ItemsResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> ItemsWithRawResponse: - return ItemsWithRawResponse(self) + def with_raw_response(self) -> ItemsResourceWithRawResponse: + return ItemsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> ItemsWithStreamingResponse: - return ItemsWithStreamingResponse(self) + def with_streaming_response(self) -> ItemsResourceWithStreamingResponse: + return ItemsResourceWithStreamingResponse(self) def create( self, @@ -319,14 +319,14 @@ def get( ) -class AsyncItems(AsyncAPIResource): +class AsyncItemsResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncItemsWithRawResponse: - return AsyncItemsWithRawResponse(self) + def with_raw_response(self) -> AsyncItemsResourceWithRawResponse: + return AsyncItemsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncItemsWithStreamingResponse: - return AsyncItemsWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncItemsResourceWithStreamingResponse: + return AsyncItemsResourceWithStreamingResponse(self) async def create( self, @@ -604,8 +604,8 @@ async def get( ) -class ItemsWithRawResponse: - def __init__(self, items: Items) -> None: +class ItemsResourceWithRawResponse: + def __init__(self, items: ItemsResource) -> None: self._items = items self.create = to_raw_response_wrapper( @@ -625,8 +625,8 @@ def __init__(self, items: Items) -> None: ) -class AsyncItemsWithRawResponse: - def __init__(self, items: AsyncItems) -> None: +class AsyncItemsResourceWithRawResponse: + def __init__(self, items: AsyncItemsResource) -> None: self._items = items self.create = async_to_raw_response_wrapper( @@ -646,8 +646,8 @@ def __init__(self, items: AsyncItems) -> None: ) -class ItemsWithStreamingResponse: - def __init__(self, items: Items) -> None: +class ItemsResourceWithStreamingResponse: + def __init__(self, items: ItemsResource) -> None: self._items = items self.create = to_streamed_response_wrapper( @@ -667,8 +667,8 @@ def __init__(self, items: Items) -> None: ) -class AsyncItemsWithStreamingResponse: - def __init__(self, items: AsyncItems) -> None: +class AsyncItemsResourceWithStreamingResponse: + def __init__(self, items: AsyncItemsResource) -> None: self._items = items self.create = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/rules/lists/lists.py b/src/cloudflare/resources/rules/lists/lists.py index fdeaad2b90b..e871dfed56a 100644 --- a/src/cloudflare/resources/rules/lists/lists.py +++ b/src/cloudflare/resources/rules/lists/lists.py @@ -8,12 +8,12 @@ import httpx from .items import ( - Items, - AsyncItems, - ItemsWithRawResponse, - AsyncItemsWithRawResponse, - ItemsWithStreamingResponse, - AsyncItemsWithStreamingResponse, + ItemsResource, + AsyncItemsResource, + ItemsResourceWithRawResponse, + AsyncItemsResourceWithRawResponse, + ItemsResourceWithStreamingResponse, + AsyncItemsResourceWithStreamingResponse, ) from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven from ...._utils import ( @@ -36,35 +36,35 @@ make_request_options, ) from .bulk_operations import ( - BulkOperations, - AsyncBulkOperations, - BulkOperationsWithRawResponse, - AsyncBulkOperationsWithRawResponse, - BulkOperationsWithStreamingResponse, - AsyncBulkOperationsWithStreamingResponse, + BulkOperationsResource, + AsyncBulkOperationsResource, + BulkOperationsResourceWithRawResponse, + AsyncBulkOperationsResourceWithRawResponse, + BulkOperationsResourceWithStreamingResponse, + AsyncBulkOperationsResourceWithStreamingResponse, ) from ....types.rules.lists_list import ListsList from ....types.rules.list_delete_response import ListDeleteResponse -__all__ = ["Lists", "AsyncLists"] +__all__ = ["ListsResource", "AsyncListsResource"] -class Lists(SyncAPIResource): +class ListsResource(SyncAPIResource): @cached_property - def bulk_operations(self) -> BulkOperations: - return BulkOperations(self._client) + def bulk_operations(self) -> BulkOperationsResource: + return BulkOperationsResource(self._client) @cached_property - def items(self) -> Items: - return Items(self._client) + def items(self) -> ItemsResource: + return ItemsResource(self._client) @cached_property - def with_raw_response(self) -> ListsWithRawResponse: - return ListsWithRawResponse(self) + def with_raw_response(self) -> ListsResourceWithRawResponse: + return ListsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> ListsWithStreamingResponse: - return ListsWithStreamingResponse(self) + def with_streaming_response(self) -> ListsResourceWithStreamingResponse: + return ListsResourceWithStreamingResponse(self) def create( self, @@ -298,22 +298,22 @@ def get( ) -class AsyncLists(AsyncAPIResource): +class AsyncListsResource(AsyncAPIResource): @cached_property - def bulk_operations(self) -> AsyncBulkOperations: - return AsyncBulkOperations(self._client) + def bulk_operations(self) -> AsyncBulkOperationsResource: + return AsyncBulkOperationsResource(self._client) @cached_property - def items(self) -> AsyncItems: - return AsyncItems(self._client) + def items(self) -> AsyncItemsResource: + return AsyncItemsResource(self._client) @cached_property - def with_raw_response(self) -> AsyncListsWithRawResponse: - return AsyncListsWithRawResponse(self) + def with_raw_response(self) -> AsyncListsResourceWithRawResponse: + return AsyncListsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncListsWithStreamingResponse: - return AsyncListsWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncListsResourceWithStreamingResponse: + return AsyncListsResourceWithStreamingResponse(self) async def create( self, @@ -547,8 +547,8 @@ async def get( ) -class ListsWithRawResponse: - def __init__(self, lists: Lists) -> None: +class ListsResourceWithRawResponse: + def __init__(self, lists: ListsResource) -> None: self._lists = lists self.create = to_raw_response_wrapper( @@ -568,16 +568,16 @@ def __init__(self, lists: Lists) -> None: ) @cached_property - def bulk_operations(self) -> BulkOperationsWithRawResponse: - return BulkOperationsWithRawResponse(self._lists.bulk_operations) + def bulk_operations(self) -> BulkOperationsResourceWithRawResponse: + return BulkOperationsResourceWithRawResponse(self._lists.bulk_operations) @cached_property - def items(self) -> ItemsWithRawResponse: - return ItemsWithRawResponse(self._lists.items) + def items(self) -> ItemsResourceWithRawResponse: + return ItemsResourceWithRawResponse(self._lists.items) -class AsyncListsWithRawResponse: - def __init__(self, lists: AsyncLists) -> None: +class AsyncListsResourceWithRawResponse: + def __init__(self, lists: AsyncListsResource) -> None: self._lists = lists self.create = async_to_raw_response_wrapper( @@ -597,16 +597,16 @@ def __init__(self, lists: AsyncLists) -> None: ) @cached_property - def bulk_operations(self) -> AsyncBulkOperationsWithRawResponse: - return AsyncBulkOperationsWithRawResponse(self._lists.bulk_operations) + def bulk_operations(self) -> AsyncBulkOperationsResourceWithRawResponse: + return AsyncBulkOperationsResourceWithRawResponse(self._lists.bulk_operations) @cached_property - def items(self) -> AsyncItemsWithRawResponse: - return AsyncItemsWithRawResponse(self._lists.items) + def items(self) -> AsyncItemsResourceWithRawResponse: + return AsyncItemsResourceWithRawResponse(self._lists.items) -class ListsWithStreamingResponse: - def __init__(self, lists: Lists) -> None: +class ListsResourceWithStreamingResponse: + def __init__(self, lists: ListsResource) -> None: self._lists = lists self.create = to_streamed_response_wrapper( @@ -626,16 +626,16 @@ def __init__(self, lists: Lists) -> None: ) @cached_property - def bulk_operations(self) -> BulkOperationsWithStreamingResponse: - return BulkOperationsWithStreamingResponse(self._lists.bulk_operations) + def bulk_operations(self) -> BulkOperationsResourceWithStreamingResponse: + return BulkOperationsResourceWithStreamingResponse(self._lists.bulk_operations) @cached_property - def items(self) -> ItemsWithStreamingResponse: - return ItemsWithStreamingResponse(self._lists.items) + def items(self) -> ItemsResourceWithStreamingResponse: + return ItemsResourceWithStreamingResponse(self._lists.items) -class AsyncListsWithStreamingResponse: - def __init__(self, lists: AsyncLists) -> None: +class AsyncListsResourceWithStreamingResponse: + def __init__(self, lists: AsyncListsResource) -> None: self._lists = lists self.create = async_to_streamed_response_wrapper( @@ -655,9 +655,9 @@ def __init__(self, lists: AsyncLists) -> None: ) @cached_property - def bulk_operations(self) -> AsyncBulkOperationsWithStreamingResponse: - return AsyncBulkOperationsWithStreamingResponse(self._lists.bulk_operations) + def bulk_operations(self) -> AsyncBulkOperationsResourceWithStreamingResponse: + return AsyncBulkOperationsResourceWithStreamingResponse(self._lists.bulk_operations) @cached_property - def items(self) -> AsyncItemsWithStreamingResponse: - return AsyncItemsWithStreamingResponse(self._lists.items) + def items(self) -> AsyncItemsResourceWithStreamingResponse: + return AsyncItemsResourceWithStreamingResponse(self._lists.items) diff --git a/src/cloudflare/resources/rules/rules.py b/src/cloudflare/resources/rules/rules.py index dd2cfc16909..e4ebeb782bf 100644 --- a/src/cloudflare/resources/rules/rules.py +++ b/src/cloudflare/resources/rules/rules.py @@ -3,79 +3,79 @@ from __future__ import annotations from .lists import ( - Lists, - AsyncLists, - ListsWithRawResponse, - AsyncListsWithRawResponse, - ListsWithStreamingResponse, - AsyncListsWithStreamingResponse, + ListsResource, + AsyncListsResource, + ListsResourceWithRawResponse, + AsyncListsResourceWithRawResponse, + ListsResourceWithStreamingResponse, + AsyncListsResourceWithStreamingResponse, ) from ..._compat import cached_property from ..._resource import SyncAPIResource, AsyncAPIResource -from .lists.lists import Lists, AsyncLists +from .lists.lists import ListsResource, AsyncListsResource -__all__ = ["Rules", "AsyncRules"] +__all__ = ["RulesResource", "AsyncRulesResource"] -class Rules(SyncAPIResource): +class RulesResource(SyncAPIResource): @cached_property - def lists(self) -> Lists: - return Lists(self._client) + def lists(self) -> ListsResource: + return ListsResource(self._client) @cached_property - def with_raw_response(self) -> RulesWithRawResponse: - return RulesWithRawResponse(self) + def with_raw_response(self) -> RulesResourceWithRawResponse: + return RulesResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> RulesWithStreamingResponse: - return RulesWithStreamingResponse(self) + def with_streaming_response(self) -> RulesResourceWithStreamingResponse: + return RulesResourceWithStreamingResponse(self) -class AsyncRules(AsyncAPIResource): +class AsyncRulesResource(AsyncAPIResource): @cached_property - def lists(self) -> AsyncLists: - return AsyncLists(self._client) + def lists(self) -> AsyncListsResource: + return AsyncListsResource(self._client) @cached_property - def with_raw_response(self) -> AsyncRulesWithRawResponse: - return AsyncRulesWithRawResponse(self) + def with_raw_response(self) -> AsyncRulesResourceWithRawResponse: + return AsyncRulesResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncRulesWithStreamingResponse: - return AsyncRulesWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncRulesResourceWithStreamingResponse: + return AsyncRulesResourceWithStreamingResponse(self) -class RulesWithRawResponse: - def __init__(self, rules: Rules) -> None: +class RulesResourceWithRawResponse: + def __init__(self, rules: RulesResource) -> None: self._rules = rules @cached_property - def lists(self) -> ListsWithRawResponse: - return ListsWithRawResponse(self._rules.lists) + def lists(self) -> ListsResourceWithRawResponse: + return ListsResourceWithRawResponse(self._rules.lists) -class AsyncRulesWithRawResponse: - def __init__(self, rules: AsyncRules) -> None: +class AsyncRulesResourceWithRawResponse: + def __init__(self, rules: AsyncRulesResource) -> None: self._rules = rules @cached_property - def lists(self) -> AsyncListsWithRawResponse: - return AsyncListsWithRawResponse(self._rules.lists) + def lists(self) -> AsyncListsResourceWithRawResponse: + return AsyncListsResourceWithRawResponse(self._rules.lists) -class RulesWithStreamingResponse: - def __init__(self, rules: Rules) -> None: +class RulesResourceWithStreamingResponse: + def __init__(self, rules: RulesResource) -> None: self._rules = rules @cached_property - def lists(self) -> ListsWithStreamingResponse: - return ListsWithStreamingResponse(self._rules.lists) + def lists(self) -> ListsResourceWithStreamingResponse: + return ListsResourceWithStreamingResponse(self._rules.lists) -class AsyncRulesWithStreamingResponse: - def __init__(self, rules: AsyncRules) -> None: +class AsyncRulesResourceWithStreamingResponse: + def __init__(self, rules: AsyncRulesResource) -> None: self._rules = rules @cached_property - def lists(self) -> AsyncListsWithStreamingResponse: - return AsyncListsWithStreamingResponse(self._rules.lists) + def lists(self) -> AsyncListsResourceWithStreamingResponse: + return AsyncListsResourceWithStreamingResponse(self._rules.lists) diff --git a/src/cloudflare/resources/rulesets/__init__.py b/src/cloudflare/resources/rulesets/__init__.py index a1339ca700e..3770eeded7d 100644 --- a/src/cloudflare/resources/rulesets/__init__.py +++ b/src/cloudflare/resources/rulesets/__init__.py @@ -1,61 +1,61 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from .rules import ( - Rules, - AsyncRules, - RulesWithRawResponse, - AsyncRulesWithRawResponse, - RulesWithStreamingResponse, - AsyncRulesWithStreamingResponse, + RulesResource, + AsyncRulesResource, + RulesResourceWithRawResponse, + AsyncRulesResourceWithRawResponse, + RulesResourceWithStreamingResponse, + AsyncRulesResourceWithStreamingResponse, ) from .phases import ( - Phases, - AsyncPhases, - PhasesWithRawResponse, - AsyncPhasesWithRawResponse, - PhasesWithStreamingResponse, - AsyncPhasesWithStreamingResponse, + PhasesResource, + AsyncPhasesResource, + PhasesResourceWithRawResponse, + AsyncPhasesResourceWithRawResponse, + PhasesResourceWithStreamingResponse, + AsyncPhasesResourceWithStreamingResponse, ) from .rulesets import ( - Rulesets, - AsyncRulesets, - RulesetsWithRawResponse, - AsyncRulesetsWithRawResponse, - RulesetsWithStreamingResponse, - AsyncRulesetsWithStreamingResponse, + RulesetsResource, + AsyncRulesetsResource, + RulesetsResourceWithRawResponse, + AsyncRulesetsResourceWithRawResponse, + RulesetsResourceWithStreamingResponse, + AsyncRulesetsResourceWithStreamingResponse, ) from .versions import ( - Versions, - AsyncVersions, - VersionsWithRawResponse, - AsyncVersionsWithRawResponse, - VersionsWithStreamingResponse, - AsyncVersionsWithStreamingResponse, + VersionsResource, + AsyncVersionsResource, + VersionsResourceWithRawResponse, + AsyncVersionsResourceWithRawResponse, + VersionsResourceWithStreamingResponse, + AsyncVersionsResourceWithStreamingResponse, ) __all__ = [ - "Phases", - "AsyncPhases", - "PhasesWithRawResponse", - "AsyncPhasesWithRawResponse", - "PhasesWithStreamingResponse", - "AsyncPhasesWithStreamingResponse", - "Rules", - "AsyncRules", - "RulesWithRawResponse", - "AsyncRulesWithRawResponse", - "RulesWithStreamingResponse", - "AsyncRulesWithStreamingResponse", - "Versions", - "AsyncVersions", - "VersionsWithRawResponse", - "AsyncVersionsWithRawResponse", - "VersionsWithStreamingResponse", - "AsyncVersionsWithStreamingResponse", - "Rulesets", - "AsyncRulesets", - "RulesetsWithRawResponse", - "AsyncRulesetsWithRawResponse", - "RulesetsWithStreamingResponse", - "AsyncRulesetsWithStreamingResponse", + "PhasesResource", + "AsyncPhasesResource", + "PhasesResourceWithRawResponse", + "AsyncPhasesResourceWithRawResponse", + "PhasesResourceWithStreamingResponse", + "AsyncPhasesResourceWithStreamingResponse", + "RulesResource", + "AsyncRulesResource", + "RulesResourceWithRawResponse", + "AsyncRulesResourceWithRawResponse", + "RulesResourceWithStreamingResponse", + "AsyncRulesResourceWithStreamingResponse", + "VersionsResource", + "AsyncVersionsResource", + "VersionsResourceWithRawResponse", + "AsyncVersionsResourceWithRawResponse", + "VersionsResourceWithStreamingResponse", + "AsyncVersionsResourceWithStreamingResponse", + "RulesetsResource", + "AsyncRulesetsResource", + "RulesetsResourceWithRawResponse", + "AsyncRulesetsResourceWithRawResponse", + "RulesetsResourceWithStreamingResponse", + "AsyncRulesetsResourceWithStreamingResponse", ] diff --git a/src/cloudflare/resources/rulesets/phases/__init__.py b/src/cloudflare/resources/rulesets/phases/__init__.py index 3bcc9f1eab9..c8ad5c9ffd6 100644 --- a/src/cloudflare/resources/rulesets/phases/__init__.py +++ b/src/cloudflare/resources/rulesets/phases/__init__.py @@ -1,33 +1,33 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from .phases import ( - Phases, - AsyncPhases, - PhasesWithRawResponse, - AsyncPhasesWithRawResponse, - PhasesWithStreamingResponse, - AsyncPhasesWithStreamingResponse, + PhasesResource, + AsyncPhasesResource, + PhasesResourceWithRawResponse, + AsyncPhasesResourceWithRawResponse, + PhasesResourceWithStreamingResponse, + AsyncPhasesResourceWithStreamingResponse, ) from .versions import ( - Versions, - AsyncVersions, - VersionsWithRawResponse, - AsyncVersionsWithRawResponse, - VersionsWithStreamingResponse, - AsyncVersionsWithStreamingResponse, + VersionsResource, + AsyncVersionsResource, + VersionsResourceWithRawResponse, + AsyncVersionsResourceWithRawResponse, + VersionsResourceWithStreamingResponse, + AsyncVersionsResourceWithStreamingResponse, ) __all__ = [ - "Versions", - "AsyncVersions", - "VersionsWithRawResponse", - "AsyncVersionsWithRawResponse", - "VersionsWithStreamingResponse", - "AsyncVersionsWithStreamingResponse", - "Phases", - "AsyncPhases", - "PhasesWithRawResponse", - "AsyncPhasesWithRawResponse", - "PhasesWithStreamingResponse", - "AsyncPhasesWithStreamingResponse", + "VersionsResource", + "AsyncVersionsResource", + "VersionsResourceWithRawResponse", + "AsyncVersionsResourceWithRawResponse", + "VersionsResourceWithStreamingResponse", + "AsyncVersionsResourceWithStreamingResponse", + "PhasesResource", + "AsyncPhasesResource", + "PhasesResourceWithRawResponse", + "AsyncPhasesResourceWithRawResponse", + "PhasesResourceWithStreamingResponse", + "AsyncPhasesResourceWithStreamingResponse", ] diff --git a/src/cloudflare/resources/rulesets/phases/phases.py b/src/cloudflare/resources/rulesets/phases/phases.py index badc70c3a4d..05b1b1c7e49 100644 --- a/src/cloudflare/resources/rulesets/phases/phases.py +++ b/src/cloudflare/resources/rulesets/phases/phases.py @@ -8,12 +8,12 @@ import httpx from .versions import ( - Versions, - AsyncVersions, - VersionsWithRawResponse, - AsyncVersionsWithRawResponse, - VersionsWithStreamingResponse, - AsyncVersionsWithStreamingResponse, + VersionsResource, + AsyncVersionsResource, + VersionsResourceWithRawResponse, + AsyncVersionsResourceWithRawResponse, + VersionsResourceWithStreamingResponse, + AsyncVersionsResourceWithStreamingResponse, ) from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven from ...._utils import ( @@ -36,21 +36,21 @@ from ....types.rulesets.phase_get_response import PhaseGetResponse from ....types.rulesets.phase_update_response import PhaseUpdateResponse -__all__ = ["Phases", "AsyncPhases"] +__all__ = ["PhasesResource", "AsyncPhasesResource"] -class Phases(SyncAPIResource): +class PhasesResource(SyncAPIResource): @cached_property - def versions(self) -> Versions: - return Versions(self._client) + def versions(self) -> VersionsResource: + return VersionsResource(self._client) @cached_property - def with_raw_response(self) -> PhasesWithRawResponse: - return PhasesWithRawResponse(self) + def with_raw_response(self) -> PhasesResourceWithRawResponse: + return PhasesResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> PhasesWithStreamingResponse: - return PhasesWithStreamingResponse(self) + def with_streaming_response(self) -> PhasesResourceWithStreamingResponse: + return PhasesResourceWithStreamingResponse(self) def update( self, @@ -266,18 +266,18 @@ def get( ) -class AsyncPhases(AsyncAPIResource): +class AsyncPhasesResource(AsyncAPIResource): @cached_property - def versions(self) -> AsyncVersions: - return AsyncVersions(self._client) + def versions(self) -> AsyncVersionsResource: + return AsyncVersionsResource(self._client) @cached_property - def with_raw_response(self) -> AsyncPhasesWithRawResponse: - return AsyncPhasesWithRawResponse(self) + def with_raw_response(self) -> AsyncPhasesResourceWithRawResponse: + return AsyncPhasesResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncPhasesWithStreamingResponse: - return AsyncPhasesWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncPhasesResourceWithStreamingResponse: + return AsyncPhasesResourceWithStreamingResponse(self) async def update( self, @@ -493,8 +493,8 @@ async def get( ) -class PhasesWithRawResponse: - def __init__(self, phases: Phases) -> None: +class PhasesResourceWithRawResponse: + def __init__(self, phases: PhasesResource) -> None: self._phases = phases self.update = to_raw_response_wrapper( @@ -505,12 +505,12 @@ def __init__(self, phases: Phases) -> None: ) @cached_property - def versions(self) -> VersionsWithRawResponse: - return VersionsWithRawResponse(self._phases.versions) + def versions(self) -> VersionsResourceWithRawResponse: + return VersionsResourceWithRawResponse(self._phases.versions) -class AsyncPhasesWithRawResponse: - def __init__(self, phases: AsyncPhases) -> None: +class AsyncPhasesResourceWithRawResponse: + def __init__(self, phases: AsyncPhasesResource) -> None: self._phases = phases self.update = async_to_raw_response_wrapper( @@ -521,12 +521,12 @@ def __init__(self, phases: AsyncPhases) -> None: ) @cached_property - def versions(self) -> AsyncVersionsWithRawResponse: - return AsyncVersionsWithRawResponse(self._phases.versions) + def versions(self) -> AsyncVersionsResourceWithRawResponse: + return AsyncVersionsResourceWithRawResponse(self._phases.versions) -class PhasesWithStreamingResponse: - def __init__(self, phases: Phases) -> None: +class PhasesResourceWithStreamingResponse: + def __init__(self, phases: PhasesResource) -> None: self._phases = phases self.update = to_streamed_response_wrapper( @@ -537,12 +537,12 @@ def __init__(self, phases: Phases) -> None: ) @cached_property - def versions(self) -> VersionsWithStreamingResponse: - return VersionsWithStreamingResponse(self._phases.versions) + def versions(self) -> VersionsResourceWithStreamingResponse: + return VersionsResourceWithStreamingResponse(self._phases.versions) -class AsyncPhasesWithStreamingResponse: - def __init__(self, phases: AsyncPhases) -> None: +class AsyncPhasesResourceWithStreamingResponse: + def __init__(self, phases: AsyncPhasesResource) -> None: self._phases = phases self.update = async_to_streamed_response_wrapper( @@ -553,5 +553,5 @@ def __init__(self, phases: AsyncPhases) -> None: ) @cached_property - def versions(self) -> AsyncVersionsWithStreamingResponse: - return AsyncVersionsWithStreamingResponse(self._phases.versions) + def versions(self) -> AsyncVersionsResourceWithStreamingResponse: + return AsyncVersionsResourceWithStreamingResponse(self._phases.versions) diff --git a/src/cloudflare/resources/rulesets/phases/versions.py b/src/cloudflare/resources/rulesets/phases/versions.py index 87341b6f03b..96e68eee754 100644 --- a/src/cloudflare/resources/rulesets/phases/versions.py +++ b/src/cloudflare/resources/rulesets/phases/versions.py @@ -25,17 +25,17 @@ from ....types.rulesets.ruleset import Ruleset from ....types.rulesets.phases.version_get_response import VersionGetResponse -__all__ = ["Versions", "AsyncVersions"] +__all__ = ["VersionsResource", "AsyncVersionsResource"] -class Versions(SyncAPIResource): +class VersionsResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> VersionsWithRawResponse: - return VersionsWithRawResponse(self) + def with_raw_response(self) -> VersionsResourceWithRawResponse: + return VersionsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> VersionsWithStreamingResponse: - return VersionsWithStreamingResponse(self) + def with_streaming_response(self) -> VersionsResourceWithStreamingResponse: + return VersionsResourceWithStreamingResponse(self) def list( self, @@ -202,14 +202,14 @@ def get( ) -class AsyncVersions(AsyncAPIResource): +class AsyncVersionsResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncVersionsWithRawResponse: - return AsyncVersionsWithRawResponse(self) + def with_raw_response(self) -> AsyncVersionsResourceWithRawResponse: + return AsyncVersionsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncVersionsWithStreamingResponse: - return AsyncVersionsWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncVersionsResourceWithStreamingResponse: + return AsyncVersionsResourceWithStreamingResponse(self) def list( self, @@ -376,8 +376,8 @@ async def get( ) -class VersionsWithRawResponse: - def __init__(self, versions: Versions) -> None: +class VersionsResourceWithRawResponse: + def __init__(self, versions: VersionsResource) -> None: self._versions = versions self.list = to_raw_response_wrapper( @@ -388,8 +388,8 @@ def __init__(self, versions: Versions) -> None: ) -class AsyncVersionsWithRawResponse: - def __init__(self, versions: AsyncVersions) -> None: +class AsyncVersionsResourceWithRawResponse: + def __init__(self, versions: AsyncVersionsResource) -> None: self._versions = versions self.list = async_to_raw_response_wrapper( @@ -400,8 +400,8 @@ def __init__(self, versions: AsyncVersions) -> None: ) -class VersionsWithStreamingResponse: - def __init__(self, versions: Versions) -> None: +class VersionsResourceWithStreamingResponse: + def __init__(self, versions: VersionsResource) -> None: self._versions = versions self.list = to_streamed_response_wrapper( @@ -412,8 +412,8 @@ def __init__(self, versions: Versions) -> None: ) -class AsyncVersionsWithStreamingResponse: - def __init__(self, versions: AsyncVersions) -> None: +class AsyncVersionsResourceWithStreamingResponse: + def __init__(self, versions: AsyncVersionsResource) -> None: self._versions = versions self.list = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/rulesets/rules.py b/src/cloudflare/resources/rulesets/rules.py index e0a3deb382d..48621b0a6bf 100644 --- a/src/cloudflare/resources/rulesets/rules.py +++ b/src/cloudflare/resources/rulesets/rules.py @@ -31,17 +31,17 @@ from ...types.rulesets.rule_create_response import RuleCreateResponse from ...types.rulesets.rule_delete_response import RuleDeleteResponse -__all__ = ["Rules", "AsyncRules"] +__all__ = ["RulesResource", "AsyncRulesResource"] -class Rules(SyncAPIResource): +class RulesResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> RulesWithRawResponse: - return RulesWithRawResponse(self) + def with_raw_response(self) -> RulesResourceWithRawResponse: + return RulesResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> RulesWithStreamingResponse: - return RulesWithStreamingResponse(self) + def with_streaming_response(self) -> RulesResourceWithStreamingResponse: + return RulesResourceWithStreamingResponse(self) @overload def create( @@ -2115,14 +2115,14 @@ def edit( ) -class AsyncRules(AsyncAPIResource): +class AsyncRulesResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncRulesWithRawResponse: - return AsyncRulesWithRawResponse(self) + def with_raw_response(self) -> AsyncRulesResourceWithRawResponse: + return AsyncRulesResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncRulesWithStreamingResponse: - return AsyncRulesWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncRulesResourceWithStreamingResponse: + return AsyncRulesResourceWithStreamingResponse(self) @overload async def create( @@ -4196,8 +4196,8 @@ async def edit( ) -class RulesWithRawResponse: - def __init__(self, rules: Rules) -> None: +class RulesResourceWithRawResponse: + def __init__(self, rules: RulesResource) -> None: self._rules = rules self.create = to_raw_response_wrapper( @@ -4211,8 +4211,8 @@ def __init__(self, rules: Rules) -> None: ) -class AsyncRulesWithRawResponse: - def __init__(self, rules: AsyncRules) -> None: +class AsyncRulesResourceWithRawResponse: + def __init__(self, rules: AsyncRulesResource) -> None: self._rules = rules self.create = async_to_raw_response_wrapper( @@ -4226,8 +4226,8 @@ def __init__(self, rules: AsyncRules) -> None: ) -class RulesWithStreamingResponse: - def __init__(self, rules: Rules) -> None: +class RulesResourceWithStreamingResponse: + def __init__(self, rules: RulesResource) -> None: self._rules = rules self.create = to_streamed_response_wrapper( @@ -4241,8 +4241,8 @@ def __init__(self, rules: Rules) -> None: ) -class AsyncRulesWithStreamingResponse: - def __init__(self, rules: AsyncRules) -> None: +class AsyncRulesResourceWithStreamingResponse: + def __init__(self, rules: AsyncRulesResource) -> None: self._rules = rules self.create = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/rulesets/rulesets.py b/src/cloudflare/resources/rulesets/rulesets.py index a9a20b2ee41..5c040db3ff0 100644 --- a/src/cloudflare/resources/rulesets/rulesets.py +++ b/src/cloudflare/resources/rulesets/rulesets.py @@ -8,20 +8,20 @@ import httpx from .rules import ( - Rules, - AsyncRules, - RulesWithRawResponse, - AsyncRulesWithRawResponse, - RulesWithStreamingResponse, - AsyncRulesWithStreamingResponse, + RulesResource, + AsyncRulesResource, + RulesResourceWithRawResponse, + AsyncRulesResourceWithRawResponse, + RulesResourceWithStreamingResponse, + AsyncRulesResourceWithStreamingResponse, ) from .phases import ( - Phases, - AsyncPhases, - PhasesWithRawResponse, - AsyncPhasesWithRawResponse, - PhasesWithStreamingResponse, - AsyncPhasesWithStreamingResponse, + PhasesResource, + AsyncPhasesResource, + PhasesResourceWithRawResponse, + AsyncPhasesResourceWithRawResponse, + PhasesResourceWithStreamingResponse, + AsyncPhasesResourceWithStreamingResponse, ) from ..._types import NOT_GIVEN, Body, Query, Headers, NoneType, NotGiven from ..._utils import ( @@ -29,12 +29,12 @@ async_maybe_transform, ) from .versions import ( - Versions, - AsyncVersions, - VersionsWithRawResponse, - AsyncVersionsWithRawResponse, - VersionsWithStreamingResponse, - AsyncVersionsWithStreamingResponse, + VersionsResource, + AsyncVersionsResource, + VersionsResourceWithRawResponse, + AsyncVersionsResourceWithRawResponse, + VersionsResourceWithStreamingResponse, + AsyncVersionsResourceWithStreamingResponse, ) from ..._compat import cached_property from ..._resource import SyncAPIResource, AsyncAPIResource @@ -46,41 +46,41 @@ ) from ..._wrappers import ResultWrapper from ...pagination import SyncSinglePage, AsyncSinglePage -from .phases.phases import Phases, AsyncPhases +from .phases.phases import PhasesResource, AsyncPhasesResource from ..._base_client import ( AsyncPaginator, make_request_options, ) from ...types.rulesets import ruleset_create_params, ruleset_update_params -from .versions.versions import Versions, AsyncVersions +from .versions.versions import VersionsResource, AsyncVersionsResource from ...types.rulesets.ruleset import Ruleset from ...types.rulesets.ruleset_get_response import RulesetGetResponse from ...types.rulesets.ruleset_create_response import RulesetCreateResponse from ...types.rulesets.ruleset_update_response import RulesetUpdateResponse -__all__ = ["Rulesets", "AsyncRulesets"] +__all__ = ["RulesetsResource", "AsyncRulesetsResource"] -class Rulesets(SyncAPIResource): +class RulesetsResource(SyncAPIResource): @cached_property - def phases(self) -> Phases: - return Phases(self._client) + def phases(self) -> PhasesResource: + return PhasesResource(self._client) @cached_property - def rules(self) -> Rules: - return Rules(self._client) + def rules(self) -> RulesResource: + return RulesResource(self._client) @cached_property - def versions(self) -> Versions: - return Versions(self._client) + def versions(self) -> VersionsResource: + return VersionsResource(self._client) @cached_property - def with_raw_response(self) -> RulesetsWithRawResponse: - return RulesetsWithRawResponse(self) + def with_raw_response(self) -> RulesetsResourceWithRawResponse: + return RulesetsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> RulesetsWithStreamingResponse: - return RulesetsWithStreamingResponse(self) + def with_streaming_response(self) -> RulesetsResourceWithStreamingResponse: + return RulesetsResourceWithStreamingResponse(self) def create( self, @@ -451,26 +451,26 @@ def get( ) -class AsyncRulesets(AsyncAPIResource): +class AsyncRulesetsResource(AsyncAPIResource): @cached_property - def phases(self) -> AsyncPhases: - return AsyncPhases(self._client) + def phases(self) -> AsyncPhasesResource: + return AsyncPhasesResource(self._client) @cached_property - def rules(self) -> AsyncRules: - return AsyncRules(self._client) + def rules(self) -> AsyncRulesResource: + return AsyncRulesResource(self._client) @cached_property - def versions(self) -> AsyncVersions: - return AsyncVersions(self._client) + def versions(self) -> AsyncVersionsResource: + return AsyncVersionsResource(self._client) @cached_property - def with_raw_response(self) -> AsyncRulesetsWithRawResponse: - return AsyncRulesetsWithRawResponse(self) + def with_raw_response(self) -> AsyncRulesetsResourceWithRawResponse: + return AsyncRulesetsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncRulesetsWithStreamingResponse: - return AsyncRulesetsWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncRulesetsResourceWithStreamingResponse: + return AsyncRulesetsResourceWithStreamingResponse(self) async def create( self, @@ -841,8 +841,8 @@ async def get( ) -class RulesetsWithRawResponse: - def __init__(self, rulesets: Rulesets) -> None: +class RulesetsResourceWithRawResponse: + def __init__(self, rulesets: RulesetsResource) -> None: self._rulesets = rulesets self.create = to_raw_response_wrapper( @@ -862,20 +862,20 @@ def __init__(self, rulesets: Rulesets) -> None: ) @cached_property - def phases(self) -> PhasesWithRawResponse: - return PhasesWithRawResponse(self._rulesets.phases) + def phases(self) -> PhasesResourceWithRawResponse: + return PhasesResourceWithRawResponse(self._rulesets.phases) @cached_property - def rules(self) -> RulesWithRawResponse: - return RulesWithRawResponse(self._rulesets.rules) + def rules(self) -> RulesResourceWithRawResponse: + return RulesResourceWithRawResponse(self._rulesets.rules) @cached_property - def versions(self) -> VersionsWithRawResponse: - return VersionsWithRawResponse(self._rulesets.versions) + def versions(self) -> VersionsResourceWithRawResponse: + return VersionsResourceWithRawResponse(self._rulesets.versions) -class AsyncRulesetsWithRawResponse: - def __init__(self, rulesets: AsyncRulesets) -> None: +class AsyncRulesetsResourceWithRawResponse: + def __init__(self, rulesets: AsyncRulesetsResource) -> None: self._rulesets = rulesets self.create = async_to_raw_response_wrapper( @@ -895,20 +895,20 @@ def __init__(self, rulesets: AsyncRulesets) -> None: ) @cached_property - def phases(self) -> AsyncPhasesWithRawResponse: - return AsyncPhasesWithRawResponse(self._rulesets.phases) + def phases(self) -> AsyncPhasesResourceWithRawResponse: + return AsyncPhasesResourceWithRawResponse(self._rulesets.phases) @cached_property - def rules(self) -> AsyncRulesWithRawResponse: - return AsyncRulesWithRawResponse(self._rulesets.rules) + def rules(self) -> AsyncRulesResourceWithRawResponse: + return AsyncRulesResourceWithRawResponse(self._rulesets.rules) @cached_property - def versions(self) -> AsyncVersionsWithRawResponse: - return AsyncVersionsWithRawResponse(self._rulesets.versions) + def versions(self) -> AsyncVersionsResourceWithRawResponse: + return AsyncVersionsResourceWithRawResponse(self._rulesets.versions) -class RulesetsWithStreamingResponse: - def __init__(self, rulesets: Rulesets) -> None: +class RulesetsResourceWithStreamingResponse: + def __init__(self, rulesets: RulesetsResource) -> None: self._rulesets = rulesets self.create = to_streamed_response_wrapper( @@ -928,20 +928,20 @@ def __init__(self, rulesets: Rulesets) -> None: ) @cached_property - def phases(self) -> PhasesWithStreamingResponse: - return PhasesWithStreamingResponse(self._rulesets.phases) + def phases(self) -> PhasesResourceWithStreamingResponse: + return PhasesResourceWithStreamingResponse(self._rulesets.phases) @cached_property - def rules(self) -> RulesWithStreamingResponse: - return RulesWithStreamingResponse(self._rulesets.rules) + def rules(self) -> RulesResourceWithStreamingResponse: + return RulesResourceWithStreamingResponse(self._rulesets.rules) @cached_property - def versions(self) -> VersionsWithStreamingResponse: - return VersionsWithStreamingResponse(self._rulesets.versions) + def versions(self) -> VersionsResourceWithStreamingResponse: + return VersionsResourceWithStreamingResponse(self._rulesets.versions) -class AsyncRulesetsWithStreamingResponse: - def __init__(self, rulesets: AsyncRulesets) -> None: +class AsyncRulesetsResourceWithStreamingResponse: + def __init__(self, rulesets: AsyncRulesetsResource) -> None: self._rulesets = rulesets self.create = async_to_streamed_response_wrapper( @@ -961,13 +961,13 @@ def __init__(self, rulesets: AsyncRulesets) -> None: ) @cached_property - def phases(self) -> AsyncPhasesWithStreamingResponse: - return AsyncPhasesWithStreamingResponse(self._rulesets.phases) + def phases(self) -> AsyncPhasesResourceWithStreamingResponse: + return AsyncPhasesResourceWithStreamingResponse(self._rulesets.phases) @cached_property - def rules(self) -> AsyncRulesWithStreamingResponse: - return AsyncRulesWithStreamingResponse(self._rulesets.rules) + def rules(self) -> AsyncRulesResourceWithStreamingResponse: + return AsyncRulesResourceWithStreamingResponse(self._rulesets.rules) @cached_property - def versions(self) -> AsyncVersionsWithStreamingResponse: - return AsyncVersionsWithStreamingResponse(self._rulesets.versions) + def versions(self) -> AsyncVersionsResourceWithStreamingResponse: + return AsyncVersionsResourceWithStreamingResponse(self._rulesets.versions) diff --git a/src/cloudflare/resources/rulesets/versions/__init__.py b/src/cloudflare/resources/rulesets/versions/__init__.py index 41727f2773b..8064a2e609c 100644 --- a/src/cloudflare/resources/rulesets/versions/__init__.py +++ b/src/cloudflare/resources/rulesets/versions/__init__.py @@ -1,33 +1,33 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from .by_tag import ( - ByTag, - AsyncByTag, - ByTagWithRawResponse, - AsyncByTagWithRawResponse, - ByTagWithStreamingResponse, - AsyncByTagWithStreamingResponse, + ByTagResource, + AsyncByTagResource, + ByTagResourceWithRawResponse, + AsyncByTagResourceWithRawResponse, + ByTagResourceWithStreamingResponse, + AsyncByTagResourceWithStreamingResponse, ) from .versions import ( - Versions, - AsyncVersions, - VersionsWithRawResponse, - AsyncVersionsWithRawResponse, - VersionsWithStreamingResponse, - AsyncVersionsWithStreamingResponse, + VersionsResource, + AsyncVersionsResource, + VersionsResourceWithRawResponse, + AsyncVersionsResourceWithRawResponse, + VersionsResourceWithStreamingResponse, + AsyncVersionsResourceWithStreamingResponse, ) __all__ = [ - "ByTag", - "AsyncByTag", - "ByTagWithRawResponse", - "AsyncByTagWithRawResponse", - "ByTagWithStreamingResponse", - "AsyncByTagWithStreamingResponse", - "Versions", - "AsyncVersions", - "VersionsWithRawResponse", - "AsyncVersionsWithRawResponse", - "VersionsWithStreamingResponse", - "AsyncVersionsWithStreamingResponse", + "ByTagResource", + "AsyncByTagResource", + "ByTagResourceWithRawResponse", + "AsyncByTagResourceWithRawResponse", + "ByTagResourceWithStreamingResponse", + "AsyncByTagResourceWithStreamingResponse", + "VersionsResource", + "AsyncVersionsResource", + "VersionsResourceWithRawResponse", + "AsyncVersionsResourceWithRawResponse", + "VersionsResourceWithStreamingResponse", + "AsyncVersionsResourceWithStreamingResponse", ] diff --git a/src/cloudflare/resources/rulesets/versions/by_tag.py b/src/cloudflare/resources/rulesets/versions/by_tag.py index 450f2a96183..7bc2877a38d 100644 --- a/src/cloudflare/resources/rulesets/versions/by_tag.py +++ b/src/cloudflare/resources/rulesets/versions/by_tag.py @@ -21,17 +21,17 @@ ) from ....types.rulesets.versions.by_tag_get_response import ByTagGetResponse -__all__ = ["ByTag", "AsyncByTag"] +__all__ = ["ByTagResource", "AsyncByTagResource"] -class ByTag(SyncAPIResource): +class ByTagResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> ByTagWithRawResponse: - return ByTagWithRawResponse(self) + def with_raw_response(self) -> ByTagResourceWithRawResponse: + return ByTagResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> ByTagWithStreamingResponse: - return ByTagWithStreamingResponse(self) + def with_streaming_response(self) -> ByTagResourceWithStreamingResponse: + return ByTagResourceWithStreamingResponse(self) def get( self, @@ -88,14 +88,14 @@ def get( ) -class AsyncByTag(AsyncAPIResource): +class AsyncByTagResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncByTagWithRawResponse: - return AsyncByTagWithRawResponse(self) + def with_raw_response(self) -> AsyncByTagResourceWithRawResponse: + return AsyncByTagResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncByTagWithStreamingResponse: - return AsyncByTagWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncByTagResourceWithStreamingResponse: + return AsyncByTagResourceWithStreamingResponse(self) async def get( self, @@ -152,8 +152,8 @@ async def get( ) -class ByTagWithRawResponse: - def __init__(self, by_tag: ByTag) -> None: +class ByTagResourceWithRawResponse: + def __init__(self, by_tag: ByTagResource) -> None: self._by_tag = by_tag self.get = to_raw_response_wrapper( @@ -161,8 +161,8 @@ def __init__(self, by_tag: ByTag) -> None: ) -class AsyncByTagWithRawResponse: - def __init__(self, by_tag: AsyncByTag) -> None: +class AsyncByTagResourceWithRawResponse: + def __init__(self, by_tag: AsyncByTagResource) -> None: self._by_tag = by_tag self.get = async_to_raw_response_wrapper( @@ -170,8 +170,8 @@ def __init__(self, by_tag: AsyncByTag) -> None: ) -class ByTagWithStreamingResponse: - def __init__(self, by_tag: ByTag) -> None: +class ByTagResourceWithStreamingResponse: + def __init__(self, by_tag: ByTagResource) -> None: self._by_tag = by_tag self.get = to_streamed_response_wrapper( @@ -179,8 +179,8 @@ def __init__(self, by_tag: ByTag) -> None: ) -class AsyncByTagWithStreamingResponse: - def __init__(self, by_tag: AsyncByTag) -> None: +class AsyncByTagResourceWithStreamingResponse: + def __init__(self, by_tag: AsyncByTagResource) -> None: self._by_tag = by_tag self.get = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/rulesets/versions/versions.py b/src/cloudflare/resources/rulesets/versions/versions.py index 082e8518493..134fb1882b9 100644 --- a/src/cloudflare/resources/rulesets/versions/versions.py +++ b/src/cloudflare/resources/rulesets/versions/versions.py @@ -7,12 +7,12 @@ import httpx from .by_tag import ( - ByTag, - AsyncByTag, - ByTagWithRawResponse, - AsyncByTagWithRawResponse, - ByTagWithStreamingResponse, - AsyncByTagWithStreamingResponse, + ByTagResource, + AsyncByTagResource, + ByTagResourceWithRawResponse, + AsyncByTagResourceWithRawResponse, + ByTagResourceWithStreamingResponse, + AsyncByTagResourceWithStreamingResponse, ) from ...._types import NOT_GIVEN, Body, Query, Headers, NoneType, NotGiven from ...._compat import cached_property @@ -32,21 +32,21 @@ from ....types.rulesets.ruleset import Ruleset from ....types.rulesets.version_get_response import VersionGetResponse -__all__ = ["Versions", "AsyncVersions"] +__all__ = ["VersionsResource", "AsyncVersionsResource"] -class Versions(SyncAPIResource): +class VersionsResource(SyncAPIResource): @cached_property - def by_tag(self) -> ByTag: - return ByTag(self._client) + def by_tag(self) -> ByTagResource: + return ByTagResource(self._client) @cached_property - def with_raw_response(self) -> VersionsWithRawResponse: - return VersionsWithRawResponse(self) + def with_raw_response(self) -> VersionsResourceWithRawResponse: + return VersionsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> VersionsWithStreamingResponse: - return VersionsWithStreamingResponse(self) + def with_streaming_response(self) -> VersionsResourceWithStreamingResponse: + return VersionsResourceWithStreamingResponse(self) def list( self, @@ -224,18 +224,18 @@ def get( ) -class AsyncVersions(AsyncAPIResource): +class AsyncVersionsResource(AsyncAPIResource): @cached_property - def by_tag(self) -> AsyncByTag: - return AsyncByTag(self._client) + def by_tag(self) -> AsyncByTagResource: + return AsyncByTagResource(self._client) @cached_property - def with_raw_response(self) -> AsyncVersionsWithRawResponse: - return AsyncVersionsWithRawResponse(self) + def with_raw_response(self) -> AsyncVersionsResourceWithRawResponse: + return AsyncVersionsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncVersionsWithStreamingResponse: - return AsyncVersionsWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncVersionsResourceWithStreamingResponse: + return AsyncVersionsResourceWithStreamingResponse(self) def list( self, @@ -413,8 +413,8 @@ async def get( ) -class VersionsWithRawResponse: - def __init__(self, versions: Versions) -> None: +class VersionsResourceWithRawResponse: + def __init__(self, versions: VersionsResource) -> None: self._versions = versions self.list = to_raw_response_wrapper( @@ -428,12 +428,12 @@ def __init__(self, versions: Versions) -> None: ) @cached_property - def by_tag(self) -> ByTagWithRawResponse: - return ByTagWithRawResponse(self._versions.by_tag) + def by_tag(self) -> ByTagResourceWithRawResponse: + return ByTagResourceWithRawResponse(self._versions.by_tag) -class AsyncVersionsWithRawResponse: - def __init__(self, versions: AsyncVersions) -> None: +class AsyncVersionsResourceWithRawResponse: + def __init__(self, versions: AsyncVersionsResource) -> None: self._versions = versions self.list = async_to_raw_response_wrapper( @@ -447,12 +447,12 @@ def __init__(self, versions: AsyncVersions) -> None: ) @cached_property - def by_tag(self) -> AsyncByTagWithRawResponse: - return AsyncByTagWithRawResponse(self._versions.by_tag) + def by_tag(self) -> AsyncByTagResourceWithRawResponse: + return AsyncByTagResourceWithRawResponse(self._versions.by_tag) -class VersionsWithStreamingResponse: - def __init__(self, versions: Versions) -> None: +class VersionsResourceWithStreamingResponse: + def __init__(self, versions: VersionsResource) -> None: self._versions = versions self.list = to_streamed_response_wrapper( @@ -466,12 +466,12 @@ def __init__(self, versions: Versions) -> None: ) @cached_property - def by_tag(self) -> ByTagWithStreamingResponse: - return ByTagWithStreamingResponse(self._versions.by_tag) + def by_tag(self) -> ByTagResourceWithStreamingResponse: + return ByTagResourceWithStreamingResponse(self._versions.by_tag) -class AsyncVersionsWithStreamingResponse: - def __init__(self, versions: AsyncVersions) -> None: +class AsyncVersionsResourceWithStreamingResponse: + def __init__(self, versions: AsyncVersionsResource) -> None: self._versions = versions self.list = async_to_streamed_response_wrapper( @@ -485,5 +485,5 @@ def __init__(self, versions: AsyncVersions) -> None: ) @cached_property - def by_tag(self) -> AsyncByTagWithStreamingResponse: - return AsyncByTagWithStreamingResponse(self._versions.by_tag) + def by_tag(self) -> AsyncByTagResourceWithStreamingResponse: + return AsyncByTagResourceWithStreamingResponse(self._versions.by_tag) diff --git a/src/cloudflare/resources/rum/__init__.py b/src/cloudflare/resources/rum/__init__.py index 1d5f28e9846..4d891ef6bbb 100644 --- a/src/cloudflare/resources/rum/__init__.py +++ b/src/cloudflare/resources/rum/__init__.py @@ -1,47 +1,47 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from .rum import ( - RUM, - AsyncRUM, - RUMWithRawResponse, - AsyncRUMWithRawResponse, - RUMWithStreamingResponse, - AsyncRUMWithStreamingResponse, + RUMResource, + AsyncRUMResource, + RUMResourceWithRawResponse, + AsyncRUMResourceWithRawResponse, + RUMResourceWithStreamingResponse, + AsyncRUMResourceWithStreamingResponse, ) from .rules import ( - Rules, - AsyncRules, - RulesWithRawResponse, - AsyncRulesWithRawResponse, - RulesWithStreamingResponse, - AsyncRulesWithStreamingResponse, + RulesResource, + AsyncRulesResource, + RulesResourceWithRawResponse, + AsyncRulesResourceWithRawResponse, + RulesResourceWithStreamingResponse, + AsyncRulesResourceWithStreamingResponse, ) from .site_info import ( - SiteInfo, - AsyncSiteInfo, - SiteInfoWithRawResponse, - AsyncSiteInfoWithRawResponse, - SiteInfoWithStreamingResponse, - AsyncSiteInfoWithStreamingResponse, + SiteInfoResource, + AsyncSiteInfoResource, + SiteInfoResourceWithRawResponse, + AsyncSiteInfoResourceWithRawResponse, + SiteInfoResourceWithStreamingResponse, + AsyncSiteInfoResourceWithStreamingResponse, ) __all__ = [ - "SiteInfo", - "AsyncSiteInfo", - "SiteInfoWithRawResponse", - "AsyncSiteInfoWithRawResponse", - "SiteInfoWithStreamingResponse", - "AsyncSiteInfoWithStreamingResponse", - "Rules", - "AsyncRules", - "RulesWithRawResponse", - "AsyncRulesWithRawResponse", - "RulesWithStreamingResponse", - "AsyncRulesWithStreamingResponse", - "RUM", - "AsyncRUM", - "RUMWithRawResponse", - "AsyncRUMWithRawResponse", - "RUMWithStreamingResponse", - "AsyncRUMWithStreamingResponse", + "SiteInfoResource", + "AsyncSiteInfoResource", + "SiteInfoResourceWithRawResponse", + "AsyncSiteInfoResourceWithRawResponse", + "SiteInfoResourceWithStreamingResponse", + "AsyncSiteInfoResourceWithStreamingResponse", + "RulesResource", + "AsyncRulesResource", + "RulesResourceWithRawResponse", + "AsyncRulesResourceWithRawResponse", + "RulesResourceWithStreamingResponse", + "AsyncRulesResourceWithStreamingResponse", + "RUMResource", + "AsyncRUMResource", + "RUMResourceWithRawResponse", + "AsyncRUMResourceWithRawResponse", + "RUMResourceWithStreamingResponse", + "AsyncRUMResourceWithStreamingResponse", ] diff --git a/src/cloudflare/resources/rum/rules.py b/src/cloudflare/resources/rum/rules.py index 9b4836b741f..f78f37f35bf 100644 --- a/src/cloudflare/resources/rum/rules.py +++ b/src/cloudflare/resources/rum/rules.py @@ -28,17 +28,17 @@ from ...types.rum.rule_list_response import RuleListResponse from ...types.rum.rule_delete_response import RuleDeleteResponse -__all__ = ["Rules", "AsyncRules"] +__all__ = ["RulesResource", "AsyncRulesResource"] -class Rules(SyncAPIResource): +class RulesResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> RulesWithRawResponse: - return RulesWithRawResponse(self) + def with_raw_response(self) -> RulesResourceWithRawResponse: + return RulesResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> RulesWithStreamingResponse: - return RulesWithStreamingResponse(self) + def with_streaming_response(self) -> RulesResourceWithStreamingResponse: + return RulesResourceWithStreamingResponse(self) def create( self, @@ -261,14 +261,14 @@ def delete( ) -class AsyncRules(AsyncAPIResource): +class AsyncRulesResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncRulesWithRawResponse: - return AsyncRulesWithRawResponse(self) + def with_raw_response(self) -> AsyncRulesResourceWithRawResponse: + return AsyncRulesResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncRulesWithStreamingResponse: - return AsyncRulesWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncRulesResourceWithStreamingResponse: + return AsyncRulesResourceWithStreamingResponse(self) async def create( self, @@ -491,8 +491,8 @@ async def delete( ) -class RulesWithRawResponse: - def __init__(self, rules: Rules) -> None: +class RulesResourceWithRawResponse: + def __init__(self, rules: RulesResource) -> None: self._rules = rules self.create = to_raw_response_wrapper( @@ -509,8 +509,8 @@ def __init__(self, rules: Rules) -> None: ) -class AsyncRulesWithRawResponse: - def __init__(self, rules: AsyncRules) -> None: +class AsyncRulesResourceWithRawResponse: + def __init__(self, rules: AsyncRulesResource) -> None: self._rules = rules self.create = async_to_raw_response_wrapper( @@ -527,8 +527,8 @@ def __init__(self, rules: AsyncRules) -> None: ) -class RulesWithStreamingResponse: - def __init__(self, rules: Rules) -> None: +class RulesResourceWithStreamingResponse: + def __init__(self, rules: RulesResource) -> None: self._rules = rules self.create = to_streamed_response_wrapper( @@ -545,8 +545,8 @@ def __init__(self, rules: Rules) -> None: ) -class AsyncRulesWithStreamingResponse: - def __init__(self, rules: AsyncRules) -> None: +class AsyncRulesResourceWithStreamingResponse: + def __init__(self, rules: AsyncRulesResource) -> None: self._rules = rules self.create = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/rum/rum.py b/src/cloudflare/resources/rum/rum.py index 50eb544b0c9..038a15f3ac0 100644 --- a/src/cloudflare/resources/rum/rum.py +++ b/src/cloudflare/resources/rum/rum.py @@ -3,110 +3,110 @@ from __future__ import annotations from .rules import ( - Rules, - AsyncRules, - RulesWithRawResponse, - AsyncRulesWithRawResponse, - RulesWithStreamingResponse, - AsyncRulesWithStreamingResponse, + RulesResource, + AsyncRulesResource, + RulesResourceWithRawResponse, + AsyncRulesResourceWithRawResponse, + RulesResourceWithStreamingResponse, + AsyncRulesResourceWithStreamingResponse, ) from ..._compat import cached_property from .site_info import ( - SiteInfo, - AsyncSiteInfo, - SiteInfoWithRawResponse, - AsyncSiteInfoWithRawResponse, - SiteInfoWithStreamingResponse, - AsyncSiteInfoWithStreamingResponse, + SiteInfoResource, + AsyncSiteInfoResource, + SiteInfoResourceWithRawResponse, + AsyncSiteInfoResourceWithRawResponse, + SiteInfoResourceWithStreamingResponse, + AsyncSiteInfoResourceWithStreamingResponse, ) from ..._resource import SyncAPIResource, AsyncAPIResource -__all__ = ["RUM", "AsyncRUM"] +__all__ = ["RUMResource", "AsyncRUMResource"] -class RUM(SyncAPIResource): +class RUMResource(SyncAPIResource): @cached_property - def site_info(self) -> SiteInfo: - return SiteInfo(self._client) + def site_info(self) -> SiteInfoResource: + return SiteInfoResource(self._client) @cached_property - def rules(self) -> Rules: - return Rules(self._client) + def rules(self) -> RulesResource: + return RulesResource(self._client) @cached_property - def with_raw_response(self) -> RUMWithRawResponse: - return RUMWithRawResponse(self) + def with_raw_response(self) -> RUMResourceWithRawResponse: + return RUMResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> RUMWithStreamingResponse: - return RUMWithStreamingResponse(self) + def with_streaming_response(self) -> RUMResourceWithStreamingResponse: + return RUMResourceWithStreamingResponse(self) -class AsyncRUM(AsyncAPIResource): +class AsyncRUMResource(AsyncAPIResource): @cached_property - def site_info(self) -> AsyncSiteInfo: - return AsyncSiteInfo(self._client) + def site_info(self) -> AsyncSiteInfoResource: + return AsyncSiteInfoResource(self._client) @cached_property - def rules(self) -> AsyncRules: - return AsyncRules(self._client) + def rules(self) -> AsyncRulesResource: + return AsyncRulesResource(self._client) @cached_property - def with_raw_response(self) -> AsyncRUMWithRawResponse: - return AsyncRUMWithRawResponse(self) + def with_raw_response(self) -> AsyncRUMResourceWithRawResponse: + return AsyncRUMResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncRUMWithStreamingResponse: - return AsyncRUMWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncRUMResourceWithStreamingResponse: + return AsyncRUMResourceWithStreamingResponse(self) -class RUMWithRawResponse: - def __init__(self, rum: RUM) -> None: +class RUMResourceWithRawResponse: + def __init__(self, rum: RUMResource) -> None: self._rum = rum @cached_property - def site_info(self) -> SiteInfoWithRawResponse: - return SiteInfoWithRawResponse(self._rum.site_info) + def site_info(self) -> SiteInfoResourceWithRawResponse: + return SiteInfoResourceWithRawResponse(self._rum.site_info) @cached_property - def rules(self) -> RulesWithRawResponse: - return RulesWithRawResponse(self._rum.rules) + def rules(self) -> RulesResourceWithRawResponse: + return RulesResourceWithRawResponse(self._rum.rules) -class AsyncRUMWithRawResponse: - def __init__(self, rum: AsyncRUM) -> None: +class AsyncRUMResourceWithRawResponse: + def __init__(self, rum: AsyncRUMResource) -> None: self._rum = rum @cached_property - def site_info(self) -> AsyncSiteInfoWithRawResponse: - return AsyncSiteInfoWithRawResponse(self._rum.site_info) + def site_info(self) -> AsyncSiteInfoResourceWithRawResponse: + return AsyncSiteInfoResourceWithRawResponse(self._rum.site_info) @cached_property - def rules(self) -> AsyncRulesWithRawResponse: - return AsyncRulesWithRawResponse(self._rum.rules) + def rules(self) -> AsyncRulesResourceWithRawResponse: + return AsyncRulesResourceWithRawResponse(self._rum.rules) -class RUMWithStreamingResponse: - def __init__(self, rum: RUM) -> None: +class RUMResourceWithStreamingResponse: + def __init__(self, rum: RUMResource) -> None: self._rum = rum @cached_property - def site_info(self) -> SiteInfoWithStreamingResponse: - return SiteInfoWithStreamingResponse(self._rum.site_info) + def site_info(self) -> SiteInfoResourceWithStreamingResponse: + return SiteInfoResourceWithStreamingResponse(self._rum.site_info) @cached_property - def rules(self) -> RulesWithStreamingResponse: - return RulesWithStreamingResponse(self._rum.rules) + def rules(self) -> RulesResourceWithStreamingResponse: + return RulesResourceWithStreamingResponse(self._rum.rules) -class AsyncRUMWithStreamingResponse: - def __init__(self, rum: AsyncRUM) -> None: +class AsyncRUMResourceWithStreamingResponse: + def __init__(self, rum: AsyncRUMResource) -> None: self._rum = rum @cached_property - def site_info(self) -> AsyncSiteInfoWithStreamingResponse: - return AsyncSiteInfoWithStreamingResponse(self._rum.site_info) + def site_info(self) -> AsyncSiteInfoResourceWithStreamingResponse: + return AsyncSiteInfoResourceWithStreamingResponse(self._rum.site_info) @cached_property - def rules(self) -> AsyncRulesWithStreamingResponse: - return AsyncRulesWithStreamingResponse(self._rum.rules) + def rules(self) -> AsyncRulesResourceWithStreamingResponse: + return AsyncRulesResourceWithStreamingResponse(self._rum.rules) diff --git a/src/cloudflare/resources/rum/site_info.py b/src/cloudflare/resources/rum/site_info.py index 4934aaff9ae..c70c62d4385 100644 --- a/src/cloudflare/resources/rum/site_info.py +++ b/src/cloudflare/resources/rum/site_info.py @@ -30,17 +30,17 @@ from ...types.rum.site import Site from ...types.rum.site_info_delete_response import SiteInfoDeleteResponse -__all__ = ["SiteInfo", "AsyncSiteInfo"] +__all__ = ["SiteInfoResource", "AsyncSiteInfoResource"] -class SiteInfo(SyncAPIResource): +class SiteInfoResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> SiteInfoWithRawResponse: - return SiteInfoWithRawResponse(self) + def with_raw_response(self) -> SiteInfoResourceWithRawResponse: + return SiteInfoResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> SiteInfoWithStreamingResponse: - return SiteInfoWithStreamingResponse(self) + def with_streaming_response(self) -> SiteInfoResourceWithStreamingResponse: + return SiteInfoResourceWithStreamingResponse(self) def create( self, @@ -306,14 +306,14 @@ def get( ) -class AsyncSiteInfo(AsyncAPIResource): +class AsyncSiteInfoResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncSiteInfoWithRawResponse: - return AsyncSiteInfoWithRawResponse(self) + def with_raw_response(self) -> AsyncSiteInfoResourceWithRawResponse: + return AsyncSiteInfoResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncSiteInfoWithStreamingResponse: - return AsyncSiteInfoWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncSiteInfoResourceWithStreamingResponse: + return AsyncSiteInfoResourceWithStreamingResponse(self) async def create( self, @@ -579,8 +579,8 @@ async def get( ) -class SiteInfoWithRawResponse: - def __init__(self, site_info: SiteInfo) -> None: +class SiteInfoResourceWithRawResponse: + def __init__(self, site_info: SiteInfoResource) -> None: self._site_info = site_info self.create = to_raw_response_wrapper( @@ -600,8 +600,8 @@ def __init__(self, site_info: SiteInfo) -> None: ) -class AsyncSiteInfoWithRawResponse: - def __init__(self, site_info: AsyncSiteInfo) -> None: +class AsyncSiteInfoResourceWithRawResponse: + def __init__(self, site_info: AsyncSiteInfoResource) -> None: self._site_info = site_info self.create = async_to_raw_response_wrapper( @@ -621,8 +621,8 @@ def __init__(self, site_info: AsyncSiteInfo) -> None: ) -class SiteInfoWithStreamingResponse: - def __init__(self, site_info: SiteInfo) -> None: +class SiteInfoResourceWithStreamingResponse: + def __init__(self, site_info: SiteInfoResource) -> None: self._site_info = site_info self.create = to_streamed_response_wrapper( @@ -642,8 +642,8 @@ def __init__(self, site_info: SiteInfo) -> None: ) -class AsyncSiteInfoWithStreamingResponse: - def __init__(self, site_info: AsyncSiteInfo) -> None: +class AsyncSiteInfoResourceWithStreamingResponse: + def __init__(self, site_info: AsyncSiteInfoResource) -> None: self._site_info = site_info self.create = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/secondary_dns/__init__.py b/src/cloudflare/resources/secondary_dns/__init__.py index 749889de106..3f502a9da2f 100644 --- a/src/cloudflare/resources/secondary_dns/__init__.py +++ b/src/cloudflare/resources/secondary_dns/__init__.py @@ -1,28 +1,28 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from .acls import ( - ACLs, - AsyncACLs, - ACLsWithRawResponse, - AsyncACLsWithRawResponse, - ACLsWithStreamingResponse, - AsyncACLsWithStreamingResponse, + ACLsResource, + AsyncACLsResource, + ACLsResourceWithRawResponse, + AsyncACLsResourceWithRawResponse, + ACLsResourceWithStreamingResponse, + AsyncACLsResourceWithStreamingResponse, ) from .peers import ( - Peers, - AsyncPeers, - PeersWithRawResponse, - AsyncPeersWithRawResponse, - PeersWithStreamingResponse, - AsyncPeersWithStreamingResponse, + PeersResource, + AsyncPeersResource, + PeersResourceWithRawResponse, + AsyncPeersResourceWithRawResponse, + PeersResourceWithStreamingResponse, + AsyncPeersResourceWithStreamingResponse, ) from .tsigs import ( - TSIGs, - AsyncTSIGs, - TSIGsWithRawResponse, - AsyncTSIGsWithRawResponse, - TSIGsWithStreamingResponse, - AsyncTSIGsWithStreamingResponse, + TSIGsResource, + AsyncTSIGsResource, + TSIGsResourceWithRawResponse, + AsyncTSIGsResourceWithRawResponse, + TSIGsResourceWithStreamingResponse, + AsyncTSIGsResourceWithStreamingResponse, ) from .incoming import ( IncomingResource, @@ -49,12 +49,12 @@ AsyncForceAXFRResourceWithStreamingResponse, ) from .secondary_dns import ( - SecondaryDNS, - AsyncSecondaryDNS, - SecondaryDNSWithRawResponse, - AsyncSecondaryDNSWithRawResponse, - SecondaryDNSWithStreamingResponse, - AsyncSecondaryDNSWithStreamingResponse, + SecondaryDNSResource, + AsyncSecondaryDNSResource, + SecondaryDNSResourceWithRawResponse, + AsyncSecondaryDNSResourceWithRawResponse, + SecondaryDNSResourceWithStreamingResponse, + AsyncSecondaryDNSResourceWithStreamingResponse, ) __all__ = [ @@ -76,28 +76,28 @@ "AsyncOutgoingResourceWithRawResponse", "OutgoingResourceWithStreamingResponse", "AsyncOutgoingResourceWithStreamingResponse", - "ACLs", - "AsyncACLs", - "ACLsWithRawResponse", - "AsyncACLsWithRawResponse", - "ACLsWithStreamingResponse", - "AsyncACLsWithStreamingResponse", - "Peers", - "AsyncPeers", - "PeersWithRawResponse", - "AsyncPeersWithRawResponse", - "PeersWithStreamingResponse", - "AsyncPeersWithStreamingResponse", - "TSIGs", - "AsyncTSIGs", - "TSIGsWithRawResponse", - "AsyncTSIGsWithRawResponse", - "TSIGsWithStreamingResponse", - "AsyncTSIGsWithStreamingResponse", - "SecondaryDNS", - "AsyncSecondaryDNS", - "SecondaryDNSWithRawResponse", - "AsyncSecondaryDNSWithRawResponse", - "SecondaryDNSWithStreamingResponse", - "AsyncSecondaryDNSWithStreamingResponse", + "ACLsResource", + "AsyncACLsResource", + "ACLsResourceWithRawResponse", + "AsyncACLsResourceWithRawResponse", + "ACLsResourceWithStreamingResponse", + "AsyncACLsResourceWithStreamingResponse", + "PeersResource", + "AsyncPeersResource", + "PeersResourceWithRawResponse", + "AsyncPeersResourceWithRawResponse", + "PeersResourceWithStreamingResponse", + "AsyncPeersResourceWithStreamingResponse", + "TSIGsResource", + "AsyncTSIGsResource", + "TSIGsResourceWithRawResponse", + "AsyncTSIGsResourceWithRawResponse", + "TSIGsResourceWithStreamingResponse", + "AsyncTSIGsResourceWithStreamingResponse", + "SecondaryDNSResource", + "AsyncSecondaryDNSResource", + "SecondaryDNSResourceWithRawResponse", + "AsyncSecondaryDNSResourceWithRawResponse", + "SecondaryDNSResourceWithStreamingResponse", + "AsyncSecondaryDNSResourceWithStreamingResponse", ] diff --git a/src/cloudflare/resources/secondary_dns/acls.py b/src/cloudflare/resources/secondary_dns/acls.py index 9d8f81ebddb..8041320f105 100644 --- a/src/cloudflare/resources/secondary_dns/acls.py +++ b/src/cloudflare/resources/secondary_dns/acls.py @@ -29,17 +29,17 @@ from ...types.secondary_dns.acl import ACL from ...types.secondary_dns.acl_delete_response import ACLDeleteResponse -__all__ = ["ACLs", "AsyncACLs"] +__all__ = ["ACLsResource", "AsyncACLsResource"] -class ACLs(SyncAPIResource): +class ACLsResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> ACLsWithRawResponse: - return ACLsWithRawResponse(self) + def with_raw_response(self) -> ACLsResourceWithRawResponse: + return ACLsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> ACLsWithStreamingResponse: - return ACLsWithStreamingResponse(self) + def with_streaming_response(self) -> ACLsResourceWithStreamingResponse: + return ACLsResourceWithStreamingResponse(self) def create( self, @@ -254,14 +254,14 @@ def get( ) -class AsyncACLs(AsyncAPIResource): +class AsyncACLsResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncACLsWithRawResponse: - return AsyncACLsWithRawResponse(self) + def with_raw_response(self) -> AsyncACLsResourceWithRawResponse: + return AsyncACLsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncACLsWithStreamingResponse: - return AsyncACLsWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncACLsResourceWithStreamingResponse: + return AsyncACLsResourceWithStreamingResponse(self) async def create( self, @@ -476,8 +476,8 @@ async def get( ) -class ACLsWithRawResponse: - def __init__(self, acls: ACLs) -> None: +class ACLsResourceWithRawResponse: + def __init__(self, acls: ACLsResource) -> None: self._acls = acls self.create = to_raw_response_wrapper( @@ -497,8 +497,8 @@ def __init__(self, acls: ACLs) -> None: ) -class AsyncACLsWithRawResponse: - def __init__(self, acls: AsyncACLs) -> None: +class AsyncACLsResourceWithRawResponse: + def __init__(self, acls: AsyncACLsResource) -> None: self._acls = acls self.create = async_to_raw_response_wrapper( @@ -518,8 +518,8 @@ def __init__(self, acls: AsyncACLs) -> None: ) -class ACLsWithStreamingResponse: - def __init__(self, acls: ACLs) -> None: +class ACLsResourceWithStreamingResponse: + def __init__(self, acls: ACLsResource) -> None: self._acls = acls self.create = to_streamed_response_wrapper( @@ -539,8 +539,8 @@ def __init__(self, acls: ACLs) -> None: ) -class AsyncACLsWithStreamingResponse: - def __init__(self, acls: AsyncACLs) -> None: +class AsyncACLsResourceWithStreamingResponse: + def __init__(self, acls: AsyncACLsResource) -> None: self._acls = acls self.create = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/secondary_dns/outgoing/__init__.py b/src/cloudflare/resources/secondary_dns/outgoing/__init__.py index cbac568c040..29fd61f59d2 100644 --- a/src/cloudflare/resources/secondary_dns/outgoing/__init__.py +++ b/src/cloudflare/resources/secondary_dns/outgoing/__init__.py @@ -1,12 +1,12 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from .status import ( - Status, - AsyncStatus, - StatusWithRawResponse, - AsyncStatusWithRawResponse, - StatusWithStreamingResponse, - AsyncStatusWithStreamingResponse, + StatusResource, + AsyncStatusResource, + StatusResourceWithRawResponse, + AsyncStatusResourceWithRawResponse, + StatusResourceWithStreamingResponse, + AsyncStatusResourceWithStreamingResponse, ) from .outgoing import ( OutgoingResource, @@ -18,12 +18,12 @@ ) __all__ = [ - "Status", - "AsyncStatus", - "StatusWithRawResponse", - "AsyncStatusWithRawResponse", - "StatusWithStreamingResponse", - "AsyncStatusWithStreamingResponse", + "StatusResource", + "AsyncStatusResource", + "StatusResourceWithRawResponse", + "AsyncStatusResourceWithRawResponse", + "StatusResourceWithStreamingResponse", + "AsyncStatusResourceWithStreamingResponse", "OutgoingResource", "AsyncOutgoingResource", "OutgoingResourceWithRawResponse", diff --git a/src/cloudflare/resources/secondary_dns/outgoing/outgoing.py b/src/cloudflare/resources/secondary_dns/outgoing/outgoing.py index 0ae69fd33e0..d330c9bd0e0 100644 --- a/src/cloudflare/resources/secondary_dns/outgoing/outgoing.py +++ b/src/cloudflare/resources/secondary_dns/outgoing/outgoing.py @@ -7,12 +7,12 @@ import httpx from .status import ( - Status, - AsyncStatus, - StatusWithRawResponse, - AsyncStatusWithRawResponse, - StatusWithStreamingResponse, - AsyncStatusWithStreamingResponse, + StatusResource, + AsyncStatusResource, + StatusResourceWithRawResponse, + AsyncStatusResourceWithRawResponse, + StatusResourceWithStreamingResponse, + AsyncStatusResourceWithStreamingResponse, ) from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven from ...._utils import ( @@ -52,8 +52,8 @@ class OutgoingResource(SyncAPIResource): @cached_property - def status(self) -> Status: - return Status(self._client) + def status(self) -> StatusResource: + return StatusResource(self._client) @cached_property def with_raw_response(self) -> OutgoingResourceWithRawResponse: @@ -360,8 +360,8 @@ def get( class AsyncOutgoingResource(AsyncAPIResource): @cached_property - def status(self) -> AsyncStatus: - return AsyncStatus(self._client) + def status(self) -> AsyncStatusResource: + return AsyncStatusResource(self._client) @cached_property def with_raw_response(self) -> AsyncOutgoingResourceWithRawResponse: @@ -693,8 +693,8 @@ def __init__(self, outgoing: OutgoingResource) -> None: ) @cached_property - def status(self) -> StatusWithRawResponse: - return StatusWithRawResponse(self._outgoing.status) + def status(self) -> StatusResourceWithRawResponse: + return StatusResourceWithRawResponse(self._outgoing.status) class AsyncOutgoingResourceWithRawResponse: @@ -724,8 +724,8 @@ def __init__(self, outgoing: AsyncOutgoingResource) -> None: ) @cached_property - def status(self) -> AsyncStatusWithRawResponse: - return AsyncStatusWithRawResponse(self._outgoing.status) + def status(self) -> AsyncStatusResourceWithRawResponse: + return AsyncStatusResourceWithRawResponse(self._outgoing.status) class OutgoingResourceWithStreamingResponse: @@ -755,8 +755,8 @@ def __init__(self, outgoing: OutgoingResource) -> None: ) @cached_property - def status(self) -> StatusWithStreamingResponse: - return StatusWithStreamingResponse(self._outgoing.status) + def status(self) -> StatusResourceWithStreamingResponse: + return StatusResourceWithStreamingResponse(self._outgoing.status) class AsyncOutgoingResourceWithStreamingResponse: @@ -786,5 +786,5 @@ def __init__(self, outgoing: AsyncOutgoingResource) -> None: ) @cached_property - def status(self) -> AsyncStatusWithStreamingResponse: - return AsyncStatusWithStreamingResponse(self._outgoing.status) + def status(self) -> AsyncStatusResourceWithStreamingResponse: + return AsyncStatusResourceWithStreamingResponse(self._outgoing.status) diff --git a/src/cloudflare/resources/secondary_dns/outgoing/status.py b/src/cloudflare/resources/secondary_dns/outgoing/status.py index 73b73af6d91..6a99e783349 100644 --- a/src/cloudflare/resources/secondary_dns/outgoing/status.py +++ b/src/cloudflare/resources/secondary_dns/outgoing/status.py @@ -21,17 +21,17 @@ ) from ....types.secondary_dns.enable_transfer import EnableTransfer -__all__ = ["Status", "AsyncStatus"] +__all__ = ["StatusResource", "AsyncStatusResource"] -class Status(SyncAPIResource): +class StatusResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> StatusWithRawResponse: - return StatusWithRawResponse(self) + def with_raw_response(self) -> StatusResourceWithRawResponse: + return StatusResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> StatusWithStreamingResponse: - return StatusWithStreamingResponse(self) + def with_streaming_response(self) -> StatusResourceWithStreamingResponse: + return StatusResourceWithStreamingResponse(self) def get( self, @@ -71,14 +71,14 @@ def get( ) -class AsyncStatus(AsyncAPIResource): +class AsyncStatusResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncStatusWithRawResponse: - return AsyncStatusWithRawResponse(self) + def with_raw_response(self) -> AsyncStatusResourceWithRawResponse: + return AsyncStatusResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncStatusWithStreamingResponse: - return AsyncStatusWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncStatusResourceWithStreamingResponse: + return AsyncStatusResourceWithStreamingResponse(self) async def get( self, @@ -118,8 +118,8 @@ async def get( ) -class StatusWithRawResponse: - def __init__(self, status: Status) -> None: +class StatusResourceWithRawResponse: + def __init__(self, status: StatusResource) -> None: self._status = status self.get = to_raw_response_wrapper( @@ -127,8 +127,8 @@ def __init__(self, status: Status) -> None: ) -class AsyncStatusWithRawResponse: - def __init__(self, status: AsyncStatus) -> None: +class AsyncStatusResourceWithRawResponse: + def __init__(self, status: AsyncStatusResource) -> None: self._status = status self.get = async_to_raw_response_wrapper( @@ -136,8 +136,8 @@ def __init__(self, status: AsyncStatus) -> None: ) -class StatusWithStreamingResponse: - def __init__(self, status: Status) -> None: +class StatusResourceWithStreamingResponse: + def __init__(self, status: StatusResource) -> None: self._status = status self.get = to_streamed_response_wrapper( @@ -145,8 +145,8 @@ def __init__(self, status: Status) -> None: ) -class AsyncStatusWithStreamingResponse: - def __init__(self, status: AsyncStatus) -> None: +class AsyncStatusResourceWithStreamingResponse: + def __init__(self, status: AsyncStatusResource) -> None: self._status = status self.get = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/secondary_dns/peers.py b/src/cloudflare/resources/secondary_dns/peers.py index 10826909f0a..7e1d1344036 100644 --- a/src/cloudflare/resources/secondary_dns/peers.py +++ b/src/cloudflare/resources/secondary_dns/peers.py @@ -29,17 +29,17 @@ from ...types.secondary_dns.peer import Peer from ...types.secondary_dns.peer_delete_response import PeerDeleteResponse -__all__ = ["Peers", "AsyncPeers"] +__all__ = ["PeersResource", "AsyncPeersResource"] -class Peers(SyncAPIResource): +class PeersResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> PeersWithRawResponse: - return PeersWithRawResponse(self) + def with_raw_response(self) -> PeersResourceWithRawResponse: + return PeersResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> PeersWithStreamingResponse: - return PeersWithStreamingResponse(self) + def with_streaming_response(self) -> PeersResourceWithStreamingResponse: + return PeersResourceWithStreamingResponse(self) def create( self, @@ -268,14 +268,14 @@ def get( ) -class AsyncPeers(AsyncAPIResource): +class AsyncPeersResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncPeersWithRawResponse: - return AsyncPeersWithRawResponse(self) + def with_raw_response(self) -> AsyncPeersResourceWithRawResponse: + return AsyncPeersResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncPeersWithStreamingResponse: - return AsyncPeersWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncPeersResourceWithStreamingResponse: + return AsyncPeersResourceWithStreamingResponse(self) async def create( self, @@ -504,8 +504,8 @@ async def get( ) -class PeersWithRawResponse: - def __init__(self, peers: Peers) -> None: +class PeersResourceWithRawResponse: + def __init__(self, peers: PeersResource) -> None: self._peers = peers self.create = to_raw_response_wrapper( @@ -525,8 +525,8 @@ def __init__(self, peers: Peers) -> None: ) -class AsyncPeersWithRawResponse: - def __init__(self, peers: AsyncPeers) -> None: +class AsyncPeersResourceWithRawResponse: + def __init__(self, peers: AsyncPeersResource) -> None: self._peers = peers self.create = async_to_raw_response_wrapper( @@ -546,8 +546,8 @@ def __init__(self, peers: AsyncPeers) -> None: ) -class PeersWithStreamingResponse: - def __init__(self, peers: Peers) -> None: +class PeersResourceWithStreamingResponse: + def __init__(self, peers: PeersResource) -> None: self._peers = peers self.create = to_streamed_response_wrapper( @@ -567,8 +567,8 @@ def __init__(self, peers: Peers) -> None: ) -class AsyncPeersWithStreamingResponse: - def __init__(self, peers: AsyncPeers) -> None: +class AsyncPeersResourceWithStreamingResponse: + def __init__(self, peers: AsyncPeersResource) -> None: self._peers = peers self.create = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/secondary_dns/secondary_dns.py b/src/cloudflare/resources/secondary_dns/secondary_dns.py index 8a9dc84d216..de66545fd83 100644 --- a/src/cloudflare/resources/secondary_dns/secondary_dns.py +++ b/src/cloudflare/resources/secondary_dns/secondary_dns.py @@ -3,28 +3,28 @@ from __future__ import annotations from .acls import ( - ACLs, - AsyncACLs, - ACLsWithRawResponse, - AsyncACLsWithRawResponse, - ACLsWithStreamingResponse, - AsyncACLsWithStreamingResponse, + ACLsResource, + AsyncACLsResource, + ACLsResourceWithRawResponse, + AsyncACLsResourceWithRawResponse, + ACLsResourceWithStreamingResponse, + AsyncACLsResourceWithStreamingResponse, ) from .peers import ( - Peers, - AsyncPeers, - PeersWithRawResponse, - AsyncPeersWithRawResponse, - PeersWithStreamingResponse, - AsyncPeersWithStreamingResponse, + PeersResource, + AsyncPeersResource, + PeersResourceWithRawResponse, + AsyncPeersResourceWithRawResponse, + PeersResourceWithStreamingResponse, + AsyncPeersResourceWithStreamingResponse, ) from .tsigs import ( - TSIGs, - AsyncTSIGs, - TSIGsWithRawResponse, - AsyncTSIGsWithRawResponse, - TSIGsWithStreamingResponse, - AsyncTSIGsWithStreamingResponse, + TSIGsResource, + AsyncTSIGsResource, + TSIGsResourceWithRawResponse, + AsyncTSIGsResourceWithRawResponse, + TSIGsResourceWithStreamingResponse, + AsyncTSIGsResourceWithStreamingResponse, ) from .incoming import ( IncomingResource, @@ -54,10 +54,10 @@ from ..._resource import SyncAPIResource, AsyncAPIResource from .outgoing.outgoing import OutgoingResource, AsyncOutgoingResource -__all__ = ["SecondaryDNS", "AsyncSecondaryDNS"] +__all__ = ["SecondaryDNSResource", "AsyncSecondaryDNSResource"] -class SecondaryDNS(SyncAPIResource): +class SecondaryDNSResource(SyncAPIResource): @cached_property def force_axfr(self) -> ForceAXFRResource: return ForceAXFRResource(self._client) @@ -71,27 +71,27 @@ def outgoing(self) -> OutgoingResource: return OutgoingResource(self._client) @cached_property - def acls(self) -> ACLs: - return ACLs(self._client) + def acls(self) -> ACLsResource: + return ACLsResource(self._client) @cached_property - def peers(self) -> Peers: - return Peers(self._client) + def peers(self) -> PeersResource: + return PeersResource(self._client) @cached_property - def tsigs(self) -> TSIGs: - return TSIGs(self._client) + def tsigs(self) -> TSIGsResource: + return TSIGsResource(self._client) @cached_property - def with_raw_response(self) -> SecondaryDNSWithRawResponse: - return SecondaryDNSWithRawResponse(self) + def with_raw_response(self) -> SecondaryDNSResourceWithRawResponse: + return SecondaryDNSResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> SecondaryDNSWithStreamingResponse: - return SecondaryDNSWithStreamingResponse(self) + def with_streaming_response(self) -> SecondaryDNSResourceWithStreamingResponse: + return SecondaryDNSResourceWithStreamingResponse(self) -class AsyncSecondaryDNS(AsyncAPIResource): +class AsyncSecondaryDNSResource(AsyncAPIResource): @cached_property def force_axfr(self) -> AsyncForceAXFRResource: return AsyncForceAXFRResource(self._client) @@ -105,28 +105,28 @@ def outgoing(self) -> AsyncOutgoingResource: return AsyncOutgoingResource(self._client) @cached_property - def acls(self) -> AsyncACLs: - return AsyncACLs(self._client) + def acls(self) -> AsyncACLsResource: + return AsyncACLsResource(self._client) @cached_property - def peers(self) -> AsyncPeers: - return AsyncPeers(self._client) + def peers(self) -> AsyncPeersResource: + return AsyncPeersResource(self._client) @cached_property - def tsigs(self) -> AsyncTSIGs: - return AsyncTSIGs(self._client) + def tsigs(self) -> AsyncTSIGsResource: + return AsyncTSIGsResource(self._client) @cached_property - def with_raw_response(self) -> AsyncSecondaryDNSWithRawResponse: - return AsyncSecondaryDNSWithRawResponse(self) + def with_raw_response(self) -> AsyncSecondaryDNSResourceWithRawResponse: + return AsyncSecondaryDNSResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncSecondaryDNSWithStreamingResponse: - return AsyncSecondaryDNSWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncSecondaryDNSResourceWithStreamingResponse: + return AsyncSecondaryDNSResourceWithStreamingResponse(self) -class SecondaryDNSWithRawResponse: - def __init__(self, secondary_dns: SecondaryDNS) -> None: +class SecondaryDNSResourceWithRawResponse: + def __init__(self, secondary_dns: SecondaryDNSResource) -> None: self._secondary_dns = secondary_dns @cached_property @@ -142,20 +142,20 @@ def outgoing(self) -> OutgoingResourceWithRawResponse: return OutgoingResourceWithRawResponse(self._secondary_dns.outgoing) @cached_property - def acls(self) -> ACLsWithRawResponse: - return ACLsWithRawResponse(self._secondary_dns.acls) + def acls(self) -> ACLsResourceWithRawResponse: + return ACLsResourceWithRawResponse(self._secondary_dns.acls) @cached_property - def peers(self) -> PeersWithRawResponse: - return PeersWithRawResponse(self._secondary_dns.peers) + def peers(self) -> PeersResourceWithRawResponse: + return PeersResourceWithRawResponse(self._secondary_dns.peers) @cached_property - def tsigs(self) -> TSIGsWithRawResponse: - return TSIGsWithRawResponse(self._secondary_dns.tsigs) + def tsigs(self) -> TSIGsResourceWithRawResponse: + return TSIGsResourceWithRawResponse(self._secondary_dns.tsigs) -class AsyncSecondaryDNSWithRawResponse: - def __init__(self, secondary_dns: AsyncSecondaryDNS) -> None: +class AsyncSecondaryDNSResourceWithRawResponse: + def __init__(self, secondary_dns: AsyncSecondaryDNSResource) -> None: self._secondary_dns = secondary_dns @cached_property @@ -171,20 +171,20 @@ def outgoing(self) -> AsyncOutgoingResourceWithRawResponse: return AsyncOutgoingResourceWithRawResponse(self._secondary_dns.outgoing) @cached_property - def acls(self) -> AsyncACLsWithRawResponse: - return AsyncACLsWithRawResponse(self._secondary_dns.acls) + def acls(self) -> AsyncACLsResourceWithRawResponse: + return AsyncACLsResourceWithRawResponse(self._secondary_dns.acls) @cached_property - def peers(self) -> AsyncPeersWithRawResponse: - return AsyncPeersWithRawResponse(self._secondary_dns.peers) + def peers(self) -> AsyncPeersResourceWithRawResponse: + return AsyncPeersResourceWithRawResponse(self._secondary_dns.peers) @cached_property - def tsigs(self) -> AsyncTSIGsWithRawResponse: - return AsyncTSIGsWithRawResponse(self._secondary_dns.tsigs) + def tsigs(self) -> AsyncTSIGsResourceWithRawResponse: + return AsyncTSIGsResourceWithRawResponse(self._secondary_dns.tsigs) -class SecondaryDNSWithStreamingResponse: - def __init__(self, secondary_dns: SecondaryDNS) -> None: +class SecondaryDNSResourceWithStreamingResponse: + def __init__(self, secondary_dns: SecondaryDNSResource) -> None: self._secondary_dns = secondary_dns @cached_property @@ -200,20 +200,20 @@ def outgoing(self) -> OutgoingResourceWithStreamingResponse: return OutgoingResourceWithStreamingResponse(self._secondary_dns.outgoing) @cached_property - def acls(self) -> ACLsWithStreamingResponse: - return ACLsWithStreamingResponse(self._secondary_dns.acls) + def acls(self) -> ACLsResourceWithStreamingResponse: + return ACLsResourceWithStreamingResponse(self._secondary_dns.acls) @cached_property - def peers(self) -> PeersWithStreamingResponse: - return PeersWithStreamingResponse(self._secondary_dns.peers) + def peers(self) -> PeersResourceWithStreamingResponse: + return PeersResourceWithStreamingResponse(self._secondary_dns.peers) @cached_property - def tsigs(self) -> TSIGsWithStreamingResponse: - return TSIGsWithStreamingResponse(self._secondary_dns.tsigs) + def tsigs(self) -> TSIGsResourceWithStreamingResponse: + return TSIGsResourceWithStreamingResponse(self._secondary_dns.tsigs) -class AsyncSecondaryDNSWithStreamingResponse: - def __init__(self, secondary_dns: AsyncSecondaryDNS) -> None: +class AsyncSecondaryDNSResourceWithStreamingResponse: + def __init__(self, secondary_dns: AsyncSecondaryDNSResource) -> None: self._secondary_dns = secondary_dns @cached_property @@ -229,13 +229,13 @@ def outgoing(self) -> AsyncOutgoingResourceWithStreamingResponse: return AsyncOutgoingResourceWithStreamingResponse(self._secondary_dns.outgoing) @cached_property - def acls(self) -> AsyncACLsWithStreamingResponse: - return AsyncACLsWithStreamingResponse(self._secondary_dns.acls) + def acls(self) -> AsyncACLsResourceWithStreamingResponse: + return AsyncACLsResourceWithStreamingResponse(self._secondary_dns.acls) @cached_property - def peers(self) -> AsyncPeersWithStreamingResponse: - return AsyncPeersWithStreamingResponse(self._secondary_dns.peers) + def peers(self) -> AsyncPeersResourceWithStreamingResponse: + return AsyncPeersResourceWithStreamingResponse(self._secondary_dns.peers) @cached_property - def tsigs(self) -> AsyncTSIGsWithStreamingResponse: - return AsyncTSIGsWithStreamingResponse(self._secondary_dns.tsigs) + def tsigs(self) -> AsyncTSIGsResourceWithStreamingResponse: + return AsyncTSIGsResourceWithStreamingResponse(self._secondary_dns.tsigs) diff --git a/src/cloudflare/resources/secondary_dns/tsigs.py b/src/cloudflare/resources/secondary_dns/tsigs.py index 0deebd8b9e8..f1e73271efd 100644 --- a/src/cloudflare/resources/secondary_dns/tsigs.py +++ b/src/cloudflare/resources/secondary_dns/tsigs.py @@ -29,17 +29,17 @@ from ...types.secondary_dns.tsig import TSIG from ...types.secondary_dns.tsig_delete_response import TSIGDeleteResponse -__all__ = ["TSIGs", "AsyncTSIGs"] +__all__ = ["TSIGsResource", "AsyncTSIGsResource"] -class TSIGs(SyncAPIResource): +class TSIGsResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> TSIGsWithRawResponse: - return TSIGsWithRawResponse(self) + def with_raw_response(self) -> TSIGsResourceWithRawResponse: + return TSIGsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> TSIGsWithStreamingResponse: - return TSIGsWithStreamingResponse(self) + def with_streaming_response(self) -> TSIGsResourceWithStreamingResponse: + return TSIGsResourceWithStreamingResponse(self) def create( self, @@ -269,14 +269,14 @@ def get( ) -class AsyncTSIGs(AsyncAPIResource): +class AsyncTSIGsResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncTSIGsWithRawResponse: - return AsyncTSIGsWithRawResponse(self) + def with_raw_response(self) -> AsyncTSIGsResourceWithRawResponse: + return AsyncTSIGsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncTSIGsWithStreamingResponse: - return AsyncTSIGsWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncTSIGsResourceWithStreamingResponse: + return AsyncTSIGsResourceWithStreamingResponse(self) async def create( self, @@ -506,8 +506,8 @@ async def get( ) -class TSIGsWithRawResponse: - def __init__(self, tsigs: TSIGs) -> None: +class TSIGsResourceWithRawResponse: + def __init__(self, tsigs: TSIGsResource) -> None: self._tsigs = tsigs self.create = to_raw_response_wrapper( @@ -527,8 +527,8 @@ def __init__(self, tsigs: TSIGs) -> None: ) -class AsyncTSIGsWithRawResponse: - def __init__(self, tsigs: AsyncTSIGs) -> None: +class AsyncTSIGsResourceWithRawResponse: + def __init__(self, tsigs: AsyncTSIGsResource) -> None: self._tsigs = tsigs self.create = async_to_raw_response_wrapper( @@ -548,8 +548,8 @@ def __init__(self, tsigs: AsyncTSIGs) -> None: ) -class TSIGsWithStreamingResponse: - def __init__(self, tsigs: TSIGs) -> None: +class TSIGsResourceWithStreamingResponse: + def __init__(self, tsigs: TSIGsResource) -> None: self._tsigs = tsigs self.create = to_streamed_response_wrapper( @@ -569,8 +569,8 @@ def __init__(self, tsigs: TSIGs) -> None: ) -class AsyncTSIGsWithStreamingResponse: - def __init__(self, tsigs: AsyncTSIGs) -> None: +class AsyncTSIGsResourceWithStreamingResponse: + def __init__(self, tsigs: AsyncTSIGsResource) -> None: self._tsigs = tsigs self.create = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/snippets/__init__.py b/src/cloudflare/resources/snippets/__init__.py index bfdde3f1b19..e3270af6c0a 100644 --- a/src/cloudflare/resources/snippets/__init__.py +++ b/src/cloudflare/resources/snippets/__init__.py @@ -1,47 +1,47 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from .rules import ( - Rules, - AsyncRules, - RulesWithRawResponse, - AsyncRulesWithRawResponse, - RulesWithStreamingResponse, - AsyncRulesWithStreamingResponse, + RulesResource, + AsyncRulesResource, + RulesResourceWithRawResponse, + AsyncRulesResourceWithRawResponse, + RulesResourceWithStreamingResponse, + AsyncRulesResourceWithStreamingResponse, ) from .content import ( - Content, - AsyncContent, - ContentWithRawResponse, - AsyncContentWithRawResponse, - ContentWithStreamingResponse, - AsyncContentWithStreamingResponse, + ContentResource, + AsyncContentResource, + ContentResourceWithRawResponse, + AsyncContentResourceWithRawResponse, + ContentResourceWithStreamingResponse, + AsyncContentResourceWithStreamingResponse, ) from .snippets import ( - Snippets, - AsyncSnippets, - SnippetsWithRawResponse, - AsyncSnippetsWithRawResponse, - SnippetsWithStreamingResponse, - AsyncSnippetsWithStreamingResponse, + SnippetsResource, + AsyncSnippetsResource, + SnippetsResourceWithRawResponse, + AsyncSnippetsResourceWithRawResponse, + SnippetsResourceWithStreamingResponse, + AsyncSnippetsResourceWithStreamingResponse, ) __all__ = [ - "Content", - "AsyncContent", - "ContentWithRawResponse", - "AsyncContentWithRawResponse", - "ContentWithStreamingResponse", - "AsyncContentWithStreamingResponse", - "Rules", - "AsyncRules", - "RulesWithRawResponse", - "AsyncRulesWithRawResponse", - "RulesWithStreamingResponse", - "AsyncRulesWithStreamingResponse", - "Snippets", - "AsyncSnippets", - "SnippetsWithRawResponse", - "AsyncSnippetsWithRawResponse", - "SnippetsWithStreamingResponse", - "AsyncSnippetsWithStreamingResponse", + "ContentResource", + "AsyncContentResource", + "ContentResourceWithRawResponse", + "AsyncContentResourceWithRawResponse", + "ContentResourceWithStreamingResponse", + "AsyncContentResourceWithStreamingResponse", + "RulesResource", + "AsyncRulesResource", + "RulesResourceWithRawResponse", + "AsyncRulesResourceWithRawResponse", + "RulesResourceWithStreamingResponse", + "AsyncRulesResourceWithStreamingResponse", + "SnippetsResource", + "AsyncSnippetsResource", + "SnippetsResourceWithRawResponse", + "AsyncSnippetsResourceWithRawResponse", + "SnippetsResourceWithStreamingResponse", + "AsyncSnippetsResourceWithStreamingResponse", ] diff --git a/src/cloudflare/resources/snippets/content.py b/src/cloudflare/resources/snippets/content.py index bd36a25554f..3c010cbae16 100644 --- a/src/cloudflare/resources/snippets/content.py +++ b/src/cloudflare/resources/snippets/content.py @@ -21,17 +21,17 @@ make_request_options, ) -__all__ = ["Content", "AsyncContent"] +__all__ = ["ContentResource", "AsyncContentResource"] -class Content(SyncAPIResource): +class ContentResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> ContentWithRawResponse: - return ContentWithRawResponse(self) + def with_raw_response(self) -> ContentResourceWithRawResponse: + return ContentResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> ContentWithStreamingResponse: - return ContentWithStreamingResponse(self) + def with_streaming_response(self) -> ContentResourceWithStreamingResponse: + return ContentResourceWithStreamingResponse(self) def get( self, @@ -75,14 +75,14 @@ def get( ) -class AsyncContent(AsyncAPIResource): +class AsyncContentResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncContentWithRawResponse: - return AsyncContentWithRawResponse(self) + def with_raw_response(self) -> AsyncContentResourceWithRawResponse: + return AsyncContentResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncContentWithStreamingResponse: - return AsyncContentWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncContentResourceWithStreamingResponse: + return AsyncContentResourceWithStreamingResponse(self) async def get( self, @@ -126,8 +126,8 @@ async def get( ) -class ContentWithRawResponse: - def __init__(self, content: Content) -> None: +class ContentResourceWithRawResponse: + def __init__(self, content: ContentResource) -> None: self._content = content self.get = to_custom_raw_response_wrapper( @@ -136,8 +136,8 @@ def __init__(self, content: Content) -> None: ) -class AsyncContentWithRawResponse: - def __init__(self, content: AsyncContent) -> None: +class AsyncContentResourceWithRawResponse: + def __init__(self, content: AsyncContentResource) -> None: self._content = content self.get = async_to_custom_raw_response_wrapper( @@ -146,8 +146,8 @@ def __init__(self, content: AsyncContent) -> None: ) -class ContentWithStreamingResponse: - def __init__(self, content: Content) -> None: +class ContentResourceWithStreamingResponse: + def __init__(self, content: ContentResource) -> None: self._content = content self.get = to_custom_streamed_response_wrapper( @@ -156,8 +156,8 @@ def __init__(self, content: Content) -> None: ) -class AsyncContentWithStreamingResponse: - def __init__(self, content: AsyncContent) -> None: +class AsyncContentResourceWithStreamingResponse: + def __init__(self, content: AsyncContentResource) -> None: self._content = content self.get = async_to_custom_streamed_response_wrapper( diff --git a/src/cloudflare/resources/snippets/rules.py b/src/cloudflare/resources/snippets/rules.py index 133232589cd..29923f06348 100644 --- a/src/cloudflare/resources/snippets/rules.py +++ b/src/cloudflare/resources/snippets/rules.py @@ -29,17 +29,17 @@ from ...types.snippets.rule_list_response import RuleListResponse from ...types.snippets.rule_update_response import RuleUpdateResponse -__all__ = ["Rules", "AsyncRules"] +__all__ = ["RulesResource", "AsyncRulesResource"] -class Rules(SyncAPIResource): +class RulesResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> RulesWithRawResponse: - return RulesWithRawResponse(self) + def with_raw_response(self) -> RulesResourceWithRawResponse: + return RulesResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> RulesWithStreamingResponse: - return RulesWithStreamingResponse(self) + def with_streaming_response(self) -> RulesResourceWithStreamingResponse: + return RulesResourceWithStreamingResponse(self) def update( self, @@ -121,14 +121,14 @@ def list( ) -class AsyncRules(AsyncAPIResource): +class AsyncRulesResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncRulesWithRawResponse: - return AsyncRulesWithRawResponse(self) + def with_raw_response(self) -> AsyncRulesResourceWithRawResponse: + return AsyncRulesResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncRulesWithStreamingResponse: - return AsyncRulesWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncRulesResourceWithStreamingResponse: + return AsyncRulesResourceWithStreamingResponse(self) async def update( self, @@ -210,8 +210,8 @@ def list( ) -class RulesWithRawResponse: - def __init__(self, rules: Rules) -> None: +class RulesResourceWithRawResponse: + def __init__(self, rules: RulesResource) -> None: self._rules = rules self.update = to_raw_response_wrapper( @@ -222,8 +222,8 @@ def __init__(self, rules: Rules) -> None: ) -class AsyncRulesWithRawResponse: - def __init__(self, rules: AsyncRules) -> None: +class AsyncRulesResourceWithRawResponse: + def __init__(self, rules: AsyncRulesResource) -> None: self._rules = rules self.update = async_to_raw_response_wrapper( @@ -234,8 +234,8 @@ def __init__(self, rules: AsyncRules) -> None: ) -class RulesWithStreamingResponse: - def __init__(self, rules: Rules) -> None: +class RulesResourceWithStreamingResponse: + def __init__(self, rules: RulesResource) -> None: self._rules = rules self.update = to_streamed_response_wrapper( @@ -246,8 +246,8 @@ def __init__(self, rules: Rules) -> None: ) -class AsyncRulesWithStreamingResponse: - def __init__(self, rules: AsyncRules) -> None: +class AsyncRulesResourceWithStreamingResponse: + def __init__(self, rules: AsyncRulesResource) -> None: self._rules = rules self.update = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/snippets/snippets.py b/src/cloudflare/resources/snippets/snippets.py index 09597d8582b..15d503d6bd1 100644 --- a/src/cloudflare/resources/snippets/snippets.py +++ b/src/cloudflare/resources/snippets/snippets.py @@ -7,20 +7,20 @@ import httpx from .rules import ( - Rules, - AsyncRules, - RulesWithRawResponse, - AsyncRulesWithRawResponse, - RulesWithStreamingResponse, - AsyncRulesWithStreamingResponse, + RulesResource, + AsyncRulesResource, + RulesResourceWithRawResponse, + AsyncRulesResourceWithRawResponse, + RulesResourceWithStreamingResponse, + AsyncRulesResourceWithStreamingResponse, ) from .content import ( - Content, - AsyncContent, - ContentWithRawResponse, - AsyncContentWithRawResponse, - ContentWithStreamingResponse, - AsyncContentWithStreamingResponse, + ContentResource, + AsyncContentResource, + ContentResourceWithRawResponse, + AsyncContentResourceWithRawResponse, + ContentResourceWithStreamingResponse, + AsyncContentResourceWithStreamingResponse, ) from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven from ..._utils import ( @@ -45,25 +45,25 @@ from ...types.snippets.snippet import Snippet from ...types.snippets.snippet_delete_response import SnippetDeleteResponse -__all__ = ["Snippets", "AsyncSnippets"] +__all__ = ["SnippetsResource", "AsyncSnippetsResource"] -class Snippets(SyncAPIResource): +class SnippetsResource(SyncAPIResource): @cached_property - def content(self) -> Content: - return Content(self._client) + def content(self) -> ContentResource: + return ContentResource(self._client) @cached_property - def rules(self) -> Rules: - return Rules(self._client) + def rules(self) -> RulesResource: + return RulesResource(self._client) @cached_property - def with_raw_response(self) -> SnippetsWithRawResponse: - return SnippetsWithRawResponse(self) + def with_raw_response(self) -> SnippetsResourceWithRawResponse: + return SnippetsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> SnippetsWithStreamingResponse: - return SnippetsWithStreamingResponse(self) + def with_streaming_response(self) -> SnippetsResourceWithStreamingResponse: + return SnippetsResourceWithStreamingResponse(self) def update( self, @@ -250,22 +250,22 @@ def get( ) -class AsyncSnippets(AsyncAPIResource): +class AsyncSnippetsResource(AsyncAPIResource): @cached_property - def content(self) -> AsyncContent: - return AsyncContent(self._client) + def content(self) -> AsyncContentResource: + return AsyncContentResource(self._client) @cached_property - def rules(self) -> AsyncRules: - return AsyncRules(self._client) + def rules(self) -> AsyncRulesResource: + return AsyncRulesResource(self._client) @cached_property - def with_raw_response(self) -> AsyncSnippetsWithRawResponse: - return AsyncSnippetsWithRawResponse(self) + def with_raw_response(self) -> AsyncSnippetsResourceWithRawResponse: + return AsyncSnippetsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncSnippetsWithStreamingResponse: - return AsyncSnippetsWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncSnippetsResourceWithStreamingResponse: + return AsyncSnippetsResourceWithStreamingResponse(self) async def update( self, @@ -452,8 +452,8 @@ async def get( ) -class SnippetsWithRawResponse: - def __init__(self, snippets: Snippets) -> None: +class SnippetsResourceWithRawResponse: + def __init__(self, snippets: SnippetsResource) -> None: self._snippets = snippets self.update = to_raw_response_wrapper( @@ -470,16 +470,16 @@ def __init__(self, snippets: Snippets) -> None: ) @cached_property - def content(self) -> ContentWithRawResponse: - return ContentWithRawResponse(self._snippets.content) + def content(self) -> ContentResourceWithRawResponse: + return ContentResourceWithRawResponse(self._snippets.content) @cached_property - def rules(self) -> RulesWithRawResponse: - return RulesWithRawResponse(self._snippets.rules) + def rules(self) -> RulesResourceWithRawResponse: + return RulesResourceWithRawResponse(self._snippets.rules) -class AsyncSnippetsWithRawResponse: - def __init__(self, snippets: AsyncSnippets) -> None: +class AsyncSnippetsResourceWithRawResponse: + def __init__(self, snippets: AsyncSnippetsResource) -> None: self._snippets = snippets self.update = async_to_raw_response_wrapper( @@ -496,16 +496,16 @@ def __init__(self, snippets: AsyncSnippets) -> None: ) @cached_property - def content(self) -> AsyncContentWithRawResponse: - return AsyncContentWithRawResponse(self._snippets.content) + def content(self) -> AsyncContentResourceWithRawResponse: + return AsyncContentResourceWithRawResponse(self._snippets.content) @cached_property - def rules(self) -> AsyncRulesWithRawResponse: - return AsyncRulesWithRawResponse(self._snippets.rules) + def rules(self) -> AsyncRulesResourceWithRawResponse: + return AsyncRulesResourceWithRawResponse(self._snippets.rules) -class SnippetsWithStreamingResponse: - def __init__(self, snippets: Snippets) -> None: +class SnippetsResourceWithStreamingResponse: + def __init__(self, snippets: SnippetsResource) -> None: self._snippets = snippets self.update = to_streamed_response_wrapper( @@ -522,16 +522,16 @@ def __init__(self, snippets: Snippets) -> None: ) @cached_property - def content(self) -> ContentWithStreamingResponse: - return ContentWithStreamingResponse(self._snippets.content) + def content(self) -> ContentResourceWithStreamingResponse: + return ContentResourceWithStreamingResponse(self._snippets.content) @cached_property - def rules(self) -> RulesWithStreamingResponse: - return RulesWithStreamingResponse(self._snippets.rules) + def rules(self) -> RulesResourceWithStreamingResponse: + return RulesResourceWithStreamingResponse(self._snippets.rules) -class AsyncSnippetsWithStreamingResponse: - def __init__(self, snippets: AsyncSnippets) -> None: +class AsyncSnippetsResourceWithStreamingResponse: + def __init__(self, snippets: AsyncSnippetsResource) -> None: self._snippets = snippets self.update = async_to_streamed_response_wrapper( @@ -548,9 +548,9 @@ def __init__(self, snippets: AsyncSnippets) -> None: ) @cached_property - def content(self) -> AsyncContentWithStreamingResponse: - return AsyncContentWithStreamingResponse(self._snippets.content) + def content(self) -> AsyncContentResourceWithStreamingResponse: + return AsyncContentResourceWithStreamingResponse(self._snippets.content) @cached_property - def rules(self) -> AsyncRulesWithStreamingResponse: - return AsyncRulesWithStreamingResponse(self._snippets.rules) + def rules(self) -> AsyncRulesResourceWithStreamingResponse: + return AsyncRulesResourceWithStreamingResponse(self._snippets.rules) diff --git a/src/cloudflare/resources/spectrum/__init__.py b/src/cloudflare/resources/spectrum/__init__.py index f33bab49bdf..2b184b88652 100644 --- a/src/cloudflare/resources/spectrum/__init__.py +++ b/src/cloudflare/resources/spectrum/__init__.py @@ -1,47 +1,47 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from .apps import ( - Apps, - AsyncApps, - AppsWithRawResponse, - AsyncAppsWithRawResponse, - AppsWithStreamingResponse, - AsyncAppsWithStreamingResponse, + AppsResource, + AsyncAppsResource, + AppsResourceWithRawResponse, + AsyncAppsResourceWithRawResponse, + AppsResourceWithStreamingResponse, + AsyncAppsResourceWithStreamingResponse, ) from .spectrum import ( - Spectrum, - AsyncSpectrum, - SpectrumWithRawResponse, - AsyncSpectrumWithRawResponse, - SpectrumWithStreamingResponse, - AsyncSpectrumWithStreamingResponse, + SpectrumResource, + AsyncSpectrumResource, + SpectrumResourceWithRawResponse, + AsyncSpectrumResourceWithRawResponse, + SpectrumResourceWithStreamingResponse, + AsyncSpectrumResourceWithStreamingResponse, ) from .analytics import ( - Analytics, - AsyncAnalytics, - AnalyticsWithRawResponse, - AsyncAnalyticsWithRawResponse, - AnalyticsWithStreamingResponse, - AsyncAnalyticsWithStreamingResponse, + AnalyticsResource, + AsyncAnalyticsResource, + AnalyticsResourceWithRawResponse, + AsyncAnalyticsResourceWithRawResponse, + AnalyticsResourceWithStreamingResponse, + AsyncAnalyticsResourceWithStreamingResponse, ) __all__ = [ - "Analytics", - "AsyncAnalytics", - "AnalyticsWithRawResponse", - "AsyncAnalyticsWithRawResponse", - "AnalyticsWithStreamingResponse", - "AsyncAnalyticsWithStreamingResponse", - "Apps", - "AsyncApps", - "AppsWithRawResponse", - "AsyncAppsWithRawResponse", - "AppsWithStreamingResponse", - "AsyncAppsWithStreamingResponse", - "Spectrum", - "AsyncSpectrum", - "SpectrumWithRawResponse", - "AsyncSpectrumWithRawResponse", - "SpectrumWithStreamingResponse", - "AsyncSpectrumWithStreamingResponse", + "AnalyticsResource", + "AsyncAnalyticsResource", + "AnalyticsResourceWithRawResponse", + "AsyncAnalyticsResourceWithRawResponse", + "AnalyticsResourceWithStreamingResponse", + "AsyncAnalyticsResourceWithStreamingResponse", + "AppsResource", + "AsyncAppsResource", + "AppsResourceWithRawResponse", + "AsyncAppsResourceWithRawResponse", + "AppsResourceWithStreamingResponse", + "AsyncAppsResourceWithStreamingResponse", + "SpectrumResource", + "AsyncSpectrumResource", + "SpectrumResourceWithRawResponse", + "AsyncSpectrumResourceWithRawResponse", + "SpectrumResourceWithStreamingResponse", + "AsyncSpectrumResourceWithStreamingResponse", ] diff --git a/src/cloudflare/resources/spectrum/analytics/__init__.py b/src/cloudflare/resources/spectrum/analytics/__init__.py index 02ea2c9ab85..7ac3bc6d763 100644 --- a/src/cloudflare/resources/spectrum/analytics/__init__.py +++ b/src/cloudflare/resources/spectrum/analytics/__init__.py @@ -1,47 +1,47 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from .events import ( - Events, - AsyncEvents, - EventsWithRawResponse, - AsyncEventsWithRawResponse, - EventsWithStreamingResponse, - AsyncEventsWithStreamingResponse, + EventsResource, + AsyncEventsResource, + EventsResourceWithRawResponse, + AsyncEventsResourceWithRawResponse, + EventsResourceWithStreamingResponse, + AsyncEventsResourceWithStreamingResponse, ) from .analytics import ( - Analytics, - AsyncAnalytics, - AnalyticsWithRawResponse, - AsyncAnalyticsWithRawResponse, - AnalyticsWithStreamingResponse, - AsyncAnalyticsWithStreamingResponse, + AnalyticsResource, + AsyncAnalyticsResource, + AnalyticsResourceWithRawResponse, + AsyncAnalyticsResourceWithRawResponse, + AnalyticsResourceWithStreamingResponse, + AsyncAnalyticsResourceWithStreamingResponse, ) from .aggregates import ( - Aggregates, - AsyncAggregates, - AggregatesWithRawResponse, - AsyncAggregatesWithRawResponse, - AggregatesWithStreamingResponse, - AsyncAggregatesWithStreamingResponse, + AggregatesResource, + AsyncAggregatesResource, + AggregatesResourceWithRawResponse, + AsyncAggregatesResourceWithRawResponse, + AggregatesResourceWithStreamingResponse, + AsyncAggregatesResourceWithStreamingResponse, ) __all__ = [ - "Aggregates", - "AsyncAggregates", - "AggregatesWithRawResponse", - "AsyncAggregatesWithRawResponse", - "AggregatesWithStreamingResponse", - "AsyncAggregatesWithStreamingResponse", - "Events", - "AsyncEvents", - "EventsWithRawResponse", - "AsyncEventsWithRawResponse", - "EventsWithStreamingResponse", - "AsyncEventsWithStreamingResponse", - "Analytics", - "AsyncAnalytics", - "AnalyticsWithRawResponse", - "AsyncAnalyticsWithRawResponse", - "AnalyticsWithStreamingResponse", - "AsyncAnalyticsWithStreamingResponse", + "AggregatesResource", + "AsyncAggregatesResource", + "AggregatesResourceWithRawResponse", + "AsyncAggregatesResourceWithRawResponse", + "AggregatesResourceWithStreamingResponse", + "AsyncAggregatesResourceWithStreamingResponse", + "EventsResource", + "AsyncEventsResource", + "EventsResourceWithRawResponse", + "AsyncEventsResourceWithRawResponse", + "EventsResourceWithStreamingResponse", + "AsyncEventsResourceWithStreamingResponse", + "AnalyticsResource", + "AsyncAnalyticsResource", + "AnalyticsResourceWithRawResponse", + "AsyncAnalyticsResourceWithRawResponse", + "AnalyticsResourceWithStreamingResponse", + "AsyncAnalyticsResourceWithStreamingResponse", ] diff --git a/src/cloudflare/resources/spectrum/analytics/aggregates/__init__.py b/src/cloudflare/resources/spectrum/analytics/aggregates/__init__.py index 8d9676074e0..0976d5319bb 100644 --- a/src/cloudflare/resources/spectrum/analytics/aggregates/__init__.py +++ b/src/cloudflare/resources/spectrum/analytics/aggregates/__init__.py @@ -1,33 +1,33 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from .currents import ( - Currents, - AsyncCurrents, - CurrentsWithRawResponse, - AsyncCurrentsWithRawResponse, - CurrentsWithStreamingResponse, - AsyncCurrentsWithStreamingResponse, + CurrentsResource, + AsyncCurrentsResource, + CurrentsResourceWithRawResponse, + AsyncCurrentsResourceWithRawResponse, + CurrentsResourceWithStreamingResponse, + AsyncCurrentsResourceWithStreamingResponse, ) from .aggregates import ( - Aggregates, - AsyncAggregates, - AggregatesWithRawResponse, - AsyncAggregatesWithRawResponse, - AggregatesWithStreamingResponse, - AsyncAggregatesWithStreamingResponse, + AggregatesResource, + AsyncAggregatesResource, + AggregatesResourceWithRawResponse, + AsyncAggregatesResourceWithRawResponse, + AggregatesResourceWithStreamingResponse, + AsyncAggregatesResourceWithStreamingResponse, ) __all__ = [ - "Currents", - "AsyncCurrents", - "CurrentsWithRawResponse", - "AsyncCurrentsWithRawResponse", - "CurrentsWithStreamingResponse", - "AsyncCurrentsWithStreamingResponse", - "Aggregates", - "AsyncAggregates", - "AggregatesWithRawResponse", - "AsyncAggregatesWithRawResponse", - "AggregatesWithStreamingResponse", - "AsyncAggregatesWithStreamingResponse", + "CurrentsResource", + "AsyncCurrentsResource", + "CurrentsResourceWithRawResponse", + "AsyncCurrentsResourceWithRawResponse", + "CurrentsResourceWithStreamingResponse", + "AsyncCurrentsResourceWithStreamingResponse", + "AggregatesResource", + "AsyncAggregatesResource", + "AggregatesResourceWithRawResponse", + "AsyncAggregatesResourceWithRawResponse", + "AggregatesResourceWithStreamingResponse", + "AsyncAggregatesResourceWithStreamingResponse", ] diff --git a/src/cloudflare/resources/spectrum/analytics/aggregates/aggregates.py b/src/cloudflare/resources/spectrum/analytics/aggregates/aggregates.py index bad78b446b7..706b9766900 100644 --- a/src/cloudflare/resources/spectrum/analytics/aggregates/aggregates.py +++ b/src/cloudflare/resources/spectrum/analytics/aggregates/aggregates.py @@ -3,78 +3,78 @@ from __future__ import annotations from .currents import ( - Currents, - AsyncCurrents, - CurrentsWithRawResponse, - AsyncCurrentsWithRawResponse, - CurrentsWithStreamingResponse, - AsyncCurrentsWithStreamingResponse, + CurrentsResource, + AsyncCurrentsResource, + CurrentsResourceWithRawResponse, + AsyncCurrentsResourceWithRawResponse, + CurrentsResourceWithStreamingResponse, + AsyncCurrentsResourceWithStreamingResponse, ) from ....._compat import cached_property from ....._resource import SyncAPIResource, AsyncAPIResource -__all__ = ["Aggregates", "AsyncAggregates"] +__all__ = ["AggregatesResource", "AsyncAggregatesResource"] -class Aggregates(SyncAPIResource): +class AggregatesResource(SyncAPIResource): @cached_property - def currents(self) -> Currents: - return Currents(self._client) + def currents(self) -> CurrentsResource: + return CurrentsResource(self._client) @cached_property - def with_raw_response(self) -> AggregatesWithRawResponse: - return AggregatesWithRawResponse(self) + def with_raw_response(self) -> AggregatesResourceWithRawResponse: + return AggregatesResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AggregatesWithStreamingResponse: - return AggregatesWithStreamingResponse(self) + def with_streaming_response(self) -> AggregatesResourceWithStreamingResponse: + return AggregatesResourceWithStreamingResponse(self) -class AsyncAggregates(AsyncAPIResource): +class AsyncAggregatesResource(AsyncAPIResource): @cached_property - def currents(self) -> AsyncCurrents: - return AsyncCurrents(self._client) + def currents(self) -> AsyncCurrentsResource: + return AsyncCurrentsResource(self._client) @cached_property - def with_raw_response(self) -> AsyncAggregatesWithRawResponse: - return AsyncAggregatesWithRawResponse(self) + def with_raw_response(self) -> AsyncAggregatesResourceWithRawResponse: + return AsyncAggregatesResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncAggregatesWithStreamingResponse: - return AsyncAggregatesWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncAggregatesResourceWithStreamingResponse: + return AsyncAggregatesResourceWithStreamingResponse(self) -class AggregatesWithRawResponse: - def __init__(self, aggregates: Aggregates) -> None: +class AggregatesResourceWithRawResponse: + def __init__(self, aggregates: AggregatesResource) -> None: self._aggregates = aggregates @cached_property - def currents(self) -> CurrentsWithRawResponse: - return CurrentsWithRawResponse(self._aggregates.currents) + def currents(self) -> CurrentsResourceWithRawResponse: + return CurrentsResourceWithRawResponse(self._aggregates.currents) -class AsyncAggregatesWithRawResponse: - def __init__(self, aggregates: AsyncAggregates) -> None: +class AsyncAggregatesResourceWithRawResponse: + def __init__(self, aggregates: AsyncAggregatesResource) -> None: self._aggregates = aggregates @cached_property - def currents(self) -> AsyncCurrentsWithRawResponse: - return AsyncCurrentsWithRawResponse(self._aggregates.currents) + def currents(self) -> AsyncCurrentsResourceWithRawResponse: + return AsyncCurrentsResourceWithRawResponse(self._aggregates.currents) -class AggregatesWithStreamingResponse: - def __init__(self, aggregates: Aggregates) -> None: +class AggregatesResourceWithStreamingResponse: + def __init__(self, aggregates: AggregatesResource) -> None: self._aggregates = aggregates @cached_property - def currents(self) -> CurrentsWithStreamingResponse: - return CurrentsWithStreamingResponse(self._aggregates.currents) + def currents(self) -> CurrentsResourceWithStreamingResponse: + return CurrentsResourceWithStreamingResponse(self._aggregates.currents) -class AsyncAggregatesWithStreamingResponse: - def __init__(self, aggregates: AsyncAggregates) -> None: +class AsyncAggregatesResourceWithStreamingResponse: + def __init__(self, aggregates: AsyncAggregatesResource) -> None: self._aggregates = aggregates @cached_property - def currents(self) -> AsyncCurrentsWithStreamingResponse: - return AsyncCurrentsWithStreamingResponse(self._aggregates.currents) + def currents(self) -> AsyncCurrentsResourceWithStreamingResponse: + return AsyncCurrentsResourceWithStreamingResponse(self._aggregates.currents) diff --git a/src/cloudflare/resources/spectrum/analytics/aggregates/currents.py b/src/cloudflare/resources/spectrum/analytics/aggregates/currents.py index fe591cf6463..b8a7869260e 100644 --- a/src/cloudflare/resources/spectrum/analytics/aggregates/currents.py +++ b/src/cloudflare/resources/spectrum/analytics/aggregates/currents.py @@ -26,17 +26,17 @@ from .....types.spectrum.analytics.aggregates import current_get_params from .....types.spectrum.analytics.aggregates.current_get_response import CurrentGetResponse -__all__ = ["Currents", "AsyncCurrents"] +__all__ = ["CurrentsResource", "AsyncCurrentsResource"] -class Currents(SyncAPIResource): +class CurrentsResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> CurrentsWithRawResponse: - return CurrentsWithRawResponse(self) + def with_raw_response(self) -> CurrentsResourceWithRawResponse: + return CurrentsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> CurrentsWithStreamingResponse: - return CurrentsWithStreamingResponse(self) + def with_streaming_response(self) -> CurrentsResourceWithStreamingResponse: + return CurrentsResourceWithStreamingResponse(self) def get( self, @@ -98,14 +98,14 @@ def get( ) -class AsyncCurrents(AsyncAPIResource): +class AsyncCurrentsResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncCurrentsWithRawResponse: - return AsyncCurrentsWithRawResponse(self) + def with_raw_response(self) -> AsyncCurrentsResourceWithRawResponse: + return AsyncCurrentsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncCurrentsWithStreamingResponse: - return AsyncCurrentsWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncCurrentsResourceWithStreamingResponse: + return AsyncCurrentsResourceWithStreamingResponse(self) async def get( self, @@ -167,8 +167,8 @@ async def get( ) -class CurrentsWithRawResponse: - def __init__(self, currents: Currents) -> None: +class CurrentsResourceWithRawResponse: + def __init__(self, currents: CurrentsResource) -> None: self._currents = currents self.get = to_raw_response_wrapper( @@ -176,8 +176,8 @@ def __init__(self, currents: Currents) -> None: ) -class AsyncCurrentsWithRawResponse: - def __init__(self, currents: AsyncCurrents) -> None: +class AsyncCurrentsResourceWithRawResponse: + def __init__(self, currents: AsyncCurrentsResource) -> None: self._currents = currents self.get = async_to_raw_response_wrapper( @@ -185,8 +185,8 @@ def __init__(self, currents: AsyncCurrents) -> None: ) -class CurrentsWithStreamingResponse: - def __init__(self, currents: Currents) -> None: +class CurrentsResourceWithStreamingResponse: + def __init__(self, currents: CurrentsResource) -> None: self._currents = currents self.get = to_streamed_response_wrapper( @@ -194,8 +194,8 @@ def __init__(self, currents: Currents) -> None: ) -class AsyncCurrentsWithStreamingResponse: - def __init__(self, currents: AsyncCurrents) -> None: +class AsyncCurrentsResourceWithStreamingResponse: + def __init__(self, currents: AsyncCurrentsResource) -> None: self._currents = currents self.get = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/spectrum/analytics/analytics.py b/src/cloudflare/resources/spectrum/analytics/analytics.py index dec7750f683..57e52bea702 100644 --- a/src/cloudflare/resources/spectrum/analytics/analytics.py +++ b/src/cloudflare/resources/spectrum/analytics/analytics.py @@ -3,112 +3,112 @@ from __future__ import annotations from .events import ( - Events, - AsyncEvents, - EventsWithRawResponse, - AsyncEventsWithRawResponse, - EventsWithStreamingResponse, - AsyncEventsWithStreamingResponse, + EventsResource, + AsyncEventsResource, + EventsResourceWithRawResponse, + AsyncEventsResourceWithRawResponse, + EventsResourceWithStreamingResponse, + AsyncEventsResourceWithStreamingResponse, ) from ...._compat import cached_property from .aggregates import ( - Aggregates, - AsyncAggregates, - AggregatesWithRawResponse, - AsyncAggregatesWithRawResponse, - AggregatesWithStreamingResponse, - AsyncAggregatesWithStreamingResponse, + AggregatesResource, + AsyncAggregatesResource, + AggregatesResourceWithRawResponse, + AsyncAggregatesResourceWithRawResponse, + AggregatesResourceWithStreamingResponse, + AsyncAggregatesResourceWithStreamingResponse, ) from ...._resource import SyncAPIResource, AsyncAPIResource -from .events.events import Events, AsyncEvents -from .aggregates.aggregates import Aggregates, AsyncAggregates +from .events.events import EventsResource, AsyncEventsResource +from .aggregates.aggregates import AggregatesResource, AsyncAggregatesResource -__all__ = ["Analytics", "AsyncAnalytics"] +__all__ = ["AnalyticsResource", "AsyncAnalyticsResource"] -class Analytics(SyncAPIResource): +class AnalyticsResource(SyncAPIResource): @cached_property - def aggregates(self) -> Aggregates: - return Aggregates(self._client) + def aggregates(self) -> AggregatesResource: + return AggregatesResource(self._client) @cached_property - def events(self) -> Events: - return Events(self._client) + def events(self) -> EventsResource: + return EventsResource(self._client) @cached_property - def with_raw_response(self) -> AnalyticsWithRawResponse: - return AnalyticsWithRawResponse(self) + def with_raw_response(self) -> AnalyticsResourceWithRawResponse: + return AnalyticsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AnalyticsWithStreamingResponse: - return AnalyticsWithStreamingResponse(self) + def with_streaming_response(self) -> AnalyticsResourceWithStreamingResponse: + return AnalyticsResourceWithStreamingResponse(self) -class AsyncAnalytics(AsyncAPIResource): +class AsyncAnalyticsResource(AsyncAPIResource): @cached_property - def aggregates(self) -> AsyncAggregates: - return AsyncAggregates(self._client) + def aggregates(self) -> AsyncAggregatesResource: + return AsyncAggregatesResource(self._client) @cached_property - def events(self) -> AsyncEvents: - return AsyncEvents(self._client) + def events(self) -> AsyncEventsResource: + return AsyncEventsResource(self._client) @cached_property - def with_raw_response(self) -> AsyncAnalyticsWithRawResponse: - return AsyncAnalyticsWithRawResponse(self) + def with_raw_response(self) -> AsyncAnalyticsResourceWithRawResponse: + return AsyncAnalyticsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncAnalyticsWithStreamingResponse: - return AsyncAnalyticsWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncAnalyticsResourceWithStreamingResponse: + return AsyncAnalyticsResourceWithStreamingResponse(self) -class AnalyticsWithRawResponse: - def __init__(self, analytics: Analytics) -> None: +class AnalyticsResourceWithRawResponse: + def __init__(self, analytics: AnalyticsResource) -> None: self._analytics = analytics @cached_property - def aggregates(self) -> AggregatesWithRawResponse: - return AggregatesWithRawResponse(self._analytics.aggregates) + def aggregates(self) -> AggregatesResourceWithRawResponse: + return AggregatesResourceWithRawResponse(self._analytics.aggregates) @cached_property - def events(self) -> EventsWithRawResponse: - return EventsWithRawResponse(self._analytics.events) + def events(self) -> EventsResourceWithRawResponse: + return EventsResourceWithRawResponse(self._analytics.events) -class AsyncAnalyticsWithRawResponse: - def __init__(self, analytics: AsyncAnalytics) -> None: +class AsyncAnalyticsResourceWithRawResponse: + def __init__(self, analytics: AsyncAnalyticsResource) -> None: self._analytics = analytics @cached_property - def aggregates(self) -> AsyncAggregatesWithRawResponse: - return AsyncAggregatesWithRawResponse(self._analytics.aggregates) + def aggregates(self) -> AsyncAggregatesResourceWithRawResponse: + return AsyncAggregatesResourceWithRawResponse(self._analytics.aggregates) @cached_property - def events(self) -> AsyncEventsWithRawResponse: - return AsyncEventsWithRawResponse(self._analytics.events) + def events(self) -> AsyncEventsResourceWithRawResponse: + return AsyncEventsResourceWithRawResponse(self._analytics.events) -class AnalyticsWithStreamingResponse: - def __init__(self, analytics: Analytics) -> None: +class AnalyticsResourceWithStreamingResponse: + def __init__(self, analytics: AnalyticsResource) -> None: self._analytics = analytics @cached_property - def aggregates(self) -> AggregatesWithStreamingResponse: - return AggregatesWithStreamingResponse(self._analytics.aggregates) + def aggregates(self) -> AggregatesResourceWithStreamingResponse: + return AggregatesResourceWithStreamingResponse(self._analytics.aggregates) @cached_property - def events(self) -> EventsWithStreamingResponse: - return EventsWithStreamingResponse(self._analytics.events) + def events(self) -> EventsResourceWithStreamingResponse: + return EventsResourceWithStreamingResponse(self._analytics.events) -class AsyncAnalyticsWithStreamingResponse: - def __init__(self, analytics: AsyncAnalytics) -> None: +class AsyncAnalyticsResourceWithStreamingResponse: + def __init__(self, analytics: AsyncAnalyticsResource) -> None: self._analytics = analytics @cached_property - def aggregates(self) -> AsyncAggregatesWithStreamingResponse: - return AsyncAggregatesWithStreamingResponse(self._analytics.aggregates) + def aggregates(self) -> AsyncAggregatesResourceWithStreamingResponse: + return AsyncAggregatesResourceWithStreamingResponse(self._analytics.aggregates) @cached_property - def events(self) -> AsyncEventsWithStreamingResponse: - return AsyncEventsWithStreamingResponse(self._analytics.events) + def events(self) -> AsyncEventsResourceWithStreamingResponse: + return AsyncEventsResourceWithStreamingResponse(self._analytics.events) diff --git a/src/cloudflare/resources/spectrum/analytics/events/__init__.py b/src/cloudflare/resources/spectrum/analytics/events/__init__.py index 608d7a1c1f4..58e9283401b 100644 --- a/src/cloudflare/resources/spectrum/analytics/events/__init__.py +++ b/src/cloudflare/resources/spectrum/analytics/events/__init__.py @@ -1,47 +1,47 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from .events import ( - Events, - AsyncEvents, - EventsWithRawResponse, - AsyncEventsWithRawResponse, - EventsWithStreamingResponse, - AsyncEventsWithStreamingResponse, + EventsResource, + AsyncEventsResource, + EventsResourceWithRawResponse, + AsyncEventsResourceWithRawResponse, + EventsResourceWithStreamingResponse, + AsyncEventsResourceWithStreamingResponse, ) from .bytimes import ( - Bytimes, - AsyncBytimes, - BytimesWithRawResponse, - AsyncBytimesWithRawResponse, - BytimesWithStreamingResponse, - AsyncBytimesWithStreamingResponse, + BytimesResource, + AsyncBytimesResource, + BytimesResourceWithRawResponse, + AsyncBytimesResourceWithRawResponse, + BytimesResourceWithStreamingResponse, + AsyncBytimesResourceWithStreamingResponse, ) from .summaries import ( - Summaries, - AsyncSummaries, - SummariesWithRawResponse, - AsyncSummariesWithRawResponse, - SummariesWithStreamingResponse, - AsyncSummariesWithStreamingResponse, + SummariesResource, + AsyncSummariesResource, + SummariesResourceWithRawResponse, + AsyncSummariesResourceWithRawResponse, + SummariesResourceWithStreamingResponse, + AsyncSummariesResourceWithStreamingResponse, ) __all__ = [ - "Bytimes", - "AsyncBytimes", - "BytimesWithRawResponse", - "AsyncBytimesWithRawResponse", - "BytimesWithStreamingResponse", - "AsyncBytimesWithStreamingResponse", - "Summaries", - "AsyncSummaries", - "SummariesWithRawResponse", - "AsyncSummariesWithRawResponse", - "SummariesWithStreamingResponse", - "AsyncSummariesWithStreamingResponse", - "Events", - "AsyncEvents", - "EventsWithRawResponse", - "AsyncEventsWithRawResponse", - "EventsWithStreamingResponse", - "AsyncEventsWithStreamingResponse", + "BytimesResource", + "AsyncBytimesResource", + "BytimesResourceWithRawResponse", + "AsyncBytimesResourceWithRawResponse", + "BytimesResourceWithStreamingResponse", + "AsyncBytimesResourceWithStreamingResponse", + "SummariesResource", + "AsyncSummariesResource", + "SummariesResourceWithRawResponse", + "AsyncSummariesResourceWithRawResponse", + "SummariesResourceWithStreamingResponse", + "AsyncSummariesResourceWithStreamingResponse", + "EventsResource", + "AsyncEventsResource", + "EventsResourceWithRawResponse", + "AsyncEventsResourceWithRawResponse", + "EventsResourceWithStreamingResponse", + "AsyncEventsResourceWithStreamingResponse", ] diff --git a/src/cloudflare/resources/spectrum/analytics/events/bytimes.py b/src/cloudflare/resources/spectrum/analytics/events/bytimes.py index f6b80edfa8c..81fd0a6f738 100644 --- a/src/cloudflare/resources/spectrum/analytics/events/bytimes.py +++ b/src/cloudflare/resources/spectrum/analytics/events/bytimes.py @@ -29,17 +29,17 @@ from .....types.spectrum.analytics.dimension import Dimension from .....types.spectrum.analytics.events.bytime_get_response import BytimeGetResponse -__all__ = ["Bytimes", "AsyncBytimes"] +__all__ = ["BytimesResource", "AsyncBytimesResource"] -class Bytimes(SyncAPIResource): +class BytimesResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> BytimesWithRawResponse: - return BytimesWithRawResponse(self) + def with_raw_response(self) -> BytimesResourceWithRawResponse: + return BytimesResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> BytimesWithStreamingResponse: - return BytimesWithStreamingResponse(self) + def with_streaming_response(self) -> BytimesResourceWithStreamingResponse: + return BytimesResourceWithStreamingResponse(self) def get( self, @@ -161,14 +161,14 @@ def get( ) -class AsyncBytimes(AsyncAPIResource): +class AsyncBytimesResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncBytimesWithRawResponse: - return AsyncBytimesWithRawResponse(self) + def with_raw_response(self) -> AsyncBytimesResourceWithRawResponse: + return AsyncBytimesResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncBytimesWithStreamingResponse: - return AsyncBytimesWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncBytimesResourceWithStreamingResponse: + return AsyncBytimesResourceWithStreamingResponse(self) async def get( self, @@ -290,8 +290,8 @@ async def get( ) -class BytimesWithRawResponse: - def __init__(self, bytimes: Bytimes) -> None: +class BytimesResourceWithRawResponse: + def __init__(self, bytimes: BytimesResource) -> None: self._bytimes = bytimes self.get = to_raw_response_wrapper( @@ -299,8 +299,8 @@ def __init__(self, bytimes: Bytimes) -> None: ) -class AsyncBytimesWithRawResponse: - def __init__(self, bytimes: AsyncBytimes) -> None: +class AsyncBytimesResourceWithRawResponse: + def __init__(self, bytimes: AsyncBytimesResource) -> None: self._bytimes = bytimes self.get = async_to_raw_response_wrapper( @@ -308,8 +308,8 @@ def __init__(self, bytimes: AsyncBytimes) -> None: ) -class BytimesWithStreamingResponse: - def __init__(self, bytimes: Bytimes) -> None: +class BytimesResourceWithStreamingResponse: + def __init__(self, bytimes: BytimesResource) -> None: self._bytimes = bytimes self.get = to_streamed_response_wrapper( @@ -317,8 +317,8 @@ def __init__(self, bytimes: Bytimes) -> None: ) -class AsyncBytimesWithStreamingResponse: - def __init__(self, bytimes: AsyncBytimes) -> None: +class AsyncBytimesResourceWithStreamingResponse: + def __init__(self, bytimes: AsyncBytimesResource) -> None: self._bytimes = bytimes self.get = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/spectrum/analytics/events/events.py b/src/cloudflare/resources/spectrum/analytics/events/events.py index bdcdbc1b01d..de874362abb 100644 --- a/src/cloudflare/resources/spectrum/analytics/events/events.py +++ b/src/cloudflare/resources/spectrum/analytics/events/events.py @@ -3,110 +3,110 @@ from __future__ import annotations from .bytimes import ( - Bytimes, - AsyncBytimes, - BytimesWithRawResponse, - AsyncBytimesWithRawResponse, - BytimesWithStreamingResponse, - AsyncBytimesWithStreamingResponse, + BytimesResource, + AsyncBytimesResource, + BytimesResourceWithRawResponse, + AsyncBytimesResourceWithRawResponse, + BytimesResourceWithStreamingResponse, + AsyncBytimesResourceWithStreamingResponse, ) from .summaries import ( - Summaries, - AsyncSummaries, - SummariesWithRawResponse, - AsyncSummariesWithRawResponse, - SummariesWithStreamingResponse, - AsyncSummariesWithStreamingResponse, + SummariesResource, + AsyncSummariesResource, + SummariesResourceWithRawResponse, + AsyncSummariesResourceWithRawResponse, + SummariesResourceWithStreamingResponse, + AsyncSummariesResourceWithStreamingResponse, ) from ....._compat import cached_property from ....._resource import SyncAPIResource, AsyncAPIResource -__all__ = ["Events", "AsyncEvents"] +__all__ = ["EventsResource", "AsyncEventsResource"] -class Events(SyncAPIResource): +class EventsResource(SyncAPIResource): @cached_property - def bytimes(self) -> Bytimes: - return Bytimes(self._client) + def bytimes(self) -> BytimesResource: + return BytimesResource(self._client) @cached_property - def summaries(self) -> Summaries: - return Summaries(self._client) + def summaries(self) -> SummariesResource: + return SummariesResource(self._client) @cached_property - def with_raw_response(self) -> EventsWithRawResponse: - return EventsWithRawResponse(self) + def with_raw_response(self) -> EventsResourceWithRawResponse: + return EventsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> EventsWithStreamingResponse: - return EventsWithStreamingResponse(self) + def with_streaming_response(self) -> EventsResourceWithStreamingResponse: + return EventsResourceWithStreamingResponse(self) -class AsyncEvents(AsyncAPIResource): +class AsyncEventsResource(AsyncAPIResource): @cached_property - def bytimes(self) -> AsyncBytimes: - return AsyncBytimes(self._client) + def bytimes(self) -> AsyncBytimesResource: + return AsyncBytimesResource(self._client) @cached_property - def summaries(self) -> AsyncSummaries: - return AsyncSummaries(self._client) + def summaries(self) -> AsyncSummariesResource: + return AsyncSummariesResource(self._client) @cached_property - def with_raw_response(self) -> AsyncEventsWithRawResponse: - return AsyncEventsWithRawResponse(self) + def with_raw_response(self) -> AsyncEventsResourceWithRawResponse: + return AsyncEventsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncEventsWithStreamingResponse: - return AsyncEventsWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncEventsResourceWithStreamingResponse: + return AsyncEventsResourceWithStreamingResponse(self) -class EventsWithRawResponse: - def __init__(self, events: Events) -> None: +class EventsResourceWithRawResponse: + def __init__(self, events: EventsResource) -> None: self._events = events @cached_property - def bytimes(self) -> BytimesWithRawResponse: - return BytimesWithRawResponse(self._events.bytimes) + def bytimes(self) -> BytimesResourceWithRawResponse: + return BytimesResourceWithRawResponse(self._events.bytimes) @cached_property - def summaries(self) -> SummariesWithRawResponse: - return SummariesWithRawResponse(self._events.summaries) + def summaries(self) -> SummariesResourceWithRawResponse: + return SummariesResourceWithRawResponse(self._events.summaries) -class AsyncEventsWithRawResponse: - def __init__(self, events: AsyncEvents) -> None: +class AsyncEventsResourceWithRawResponse: + def __init__(self, events: AsyncEventsResource) -> None: self._events = events @cached_property - def bytimes(self) -> AsyncBytimesWithRawResponse: - return AsyncBytimesWithRawResponse(self._events.bytimes) + def bytimes(self) -> AsyncBytimesResourceWithRawResponse: + return AsyncBytimesResourceWithRawResponse(self._events.bytimes) @cached_property - def summaries(self) -> AsyncSummariesWithRawResponse: - return AsyncSummariesWithRawResponse(self._events.summaries) + def summaries(self) -> AsyncSummariesResourceWithRawResponse: + return AsyncSummariesResourceWithRawResponse(self._events.summaries) -class EventsWithStreamingResponse: - def __init__(self, events: Events) -> None: +class EventsResourceWithStreamingResponse: + def __init__(self, events: EventsResource) -> None: self._events = events @cached_property - def bytimes(self) -> BytimesWithStreamingResponse: - return BytimesWithStreamingResponse(self._events.bytimes) + def bytimes(self) -> BytimesResourceWithStreamingResponse: + return BytimesResourceWithStreamingResponse(self._events.bytimes) @cached_property - def summaries(self) -> SummariesWithStreamingResponse: - return SummariesWithStreamingResponse(self._events.summaries) + def summaries(self) -> SummariesResourceWithStreamingResponse: + return SummariesResourceWithStreamingResponse(self._events.summaries) -class AsyncEventsWithStreamingResponse: - def __init__(self, events: AsyncEvents) -> None: +class AsyncEventsResourceWithStreamingResponse: + def __init__(self, events: AsyncEventsResource) -> None: self._events = events @cached_property - def bytimes(self) -> AsyncBytimesWithStreamingResponse: - return AsyncBytimesWithStreamingResponse(self._events.bytimes) + def bytimes(self) -> AsyncBytimesResourceWithStreamingResponse: + return AsyncBytimesResourceWithStreamingResponse(self._events.bytimes) @cached_property - def summaries(self) -> AsyncSummariesWithStreamingResponse: - return AsyncSummariesWithStreamingResponse(self._events.summaries) + def summaries(self) -> AsyncSummariesResourceWithStreamingResponse: + return AsyncSummariesResourceWithStreamingResponse(self._events.summaries) diff --git a/src/cloudflare/resources/spectrum/analytics/events/summaries.py b/src/cloudflare/resources/spectrum/analytics/events/summaries.py index ab7f9cd19f1..23badfc934c 100644 --- a/src/cloudflare/resources/spectrum/analytics/events/summaries.py +++ b/src/cloudflare/resources/spectrum/analytics/events/summaries.py @@ -29,17 +29,17 @@ from .....types.spectrum.analytics.dimension import Dimension from .....types.spectrum.analytics.events.summary_get_response import SummaryGetResponse -__all__ = ["Summaries", "AsyncSummaries"] +__all__ = ["SummariesResource", "AsyncSummariesResource"] -class Summaries(SyncAPIResource): +class SummariesResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> SummariesWithRawResponse: - return SummariesWithRawResponse(self) + def with_raw_response(self) -> SummariesResourceWithRawResponse: + return SummariesResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> SummariesWithStreamingResponse: - return SummariesWithStreamingResponse(self) + def with_streaming_response(self) -> SummariesResourceWithStreamingResponse: + return SummariesResourceWithStreamingResponse(self) def get( self, @@ -156,14 +156,14 @@ def get( ) -class AsyncSummaries(AsyncAPIResource): +class AsyncSummariesResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncSummariesWithRawResponse: - return AsyncSummariesWithRawResponse(self) + def with_raw_response(self) -> AsyncSummariesResourceWithRawResponse: + return AsyncSummariesResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncSummariesWithStreamingResponse: - return AsyncSummariesWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncSummariesResourceWithStreamingResponse: + return AsyncSummariesResourceWithStreamingResponse(self) async def get( self, @@ -280,8 +280,8 @@ async def get( ) -class SummariesWithRawResponse: - def __init__(self, summaries: Summaries) -> None: +class SummariesResourceWithRawResponse: + def __init__(self, summaries: SummariesResource) -> None: self._summaries = summaries self.get = to_raw_response_wrapper( @@ -289,8 +289,8 @@ def __init__(self, summaries: Summaries) -> None: ) -class AsyncSummariesWithRawResponse: - def __init__(self, summaries: AsyncSummaries) -> None: +class AsyncSummariesResourceWithRawResponse: + def __init__(self, summaries: AsyncSummariesResource) -> None: self._summaries = summaries self.get = async_to_raw_response_wrapper( @@ -298,8 +298,8 @@ def __init__(self, summaries: AsyncSummaries) -> None: ) -class SummariesWithStreamingResponse: - def __init__(self, summaries: Summaries) -> None: +class SummariesResourceWithStreamingResponse: + def __init__(self, summaries: SummariesResource) -> None: self._summaries = summaries self.get = to_streamed_response_wrapper( @@ -307,8 +307,8 @@ def __init__(self, summaries: Summaries) -> None: ) -class AsyncSummariesWithStreamingResponse: - def __init__(self, summaries: AsyncSummaries) -> None: +class AsyncSummariesResourceWithStreamingResponse: + def __init__(self, summaries: AsyncSummariesResource) -> None: self._summaries = summaries self.get = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/spectrum/apps.py b/src/cloudflare/resources/spectrum/apps.py index 5339b578b31..625cbb07ce5 100644 --- a/src/cloudflare/resources/spectrum/apps.py +++ b/src/cloudflare/resources/spectrum/apps.py @@ -41,17 +41,17 @@ from ...types.spectrum.app_delete_response import AppDeleteResponse from ...types.spectrum.app_update_response import AppUpdateResponse -__all__ = ["Apps", "AsyncApps"] +__all__ = ["AppsResource", "AsyncAppsResource"] -class Apps(SyncAPIResource): +class AppsResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> AppsWithRawResponse: - return AppsWithRawResponse(self) + def with_raw_response(self) -> AppsResourceWithRawResponse: + return AppsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AppsWithStreamingResponse: - return AppsWithStreamingResponse(self) + def with_streaming_response(self) -> AppsResourceWithStreamingResponse: + return AppsResourceWithStreamingResponse(self) def create( self, @@ -414,14 +414,14 @@ def get( ) -class AsyncApps(AsyncAPIResource): +class AsyncAppsResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncAppsWithRawResponse: - return AsyncAppsWithRawResponse(self) + def with_raw_response(self) -> AsyncAppsResourceWithRawResponse: + return AsyncAppsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncAppsWithStreamingResponse: - return AsyncAppsWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncAppsResourceWithStreamingResponse: + return AsyncAppsResourceWithStreamingResponse(self) async def create( self, @@ -784,8 +784,8 @@ async def get( ) -class AppsWithRawResponse: - def __init__(self, apps: Apps) -> None: +class AppsResourceWithRawResponse: + def __init__(self, apps: AppsResource) -> None: self._apps = apps self.create = to_raw_response_wrapper( @@ -805,8 +805,8 @@ def __init__(self, apps: Apps) -> None: ) -class AsyncAppsWithRawResponse: - def __init__(self, apps: AsyncApps) -> None: +class AsyncAppsResourceWithRawResponse: + def __init__(self, apps: AsyncAppsResource) -> None: self._apps = apps self.create = async_to_raw_response_wrapper( @@ -826,8 +826,8 @@ def __init__(self, apps: AsyncApps) -> None: ) -class AppsWithStreamingResponse: - def __init__(self, apps: Apps) -> None: +class AppsResourceWithStreamingResponse: + def __init__(self, apps: AppsResource) -> None: self._apps = apps self.create = to_streamed_response_wrapper( @@ -847,8 +847,8 @@ def __init__(self, apps: Apps) -> None: ) -class AsyncAppsWithStreamingResponse: - def __init__(self, apps: AsyncApps) -> None: +class AsyncAppsResourceWithStreamingResponse: + def __init__(self, apps: AsyncAppsResource) -> None: self._apps = apps self.create = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/spectrum/spectrum.py b/src/cloudflare/resources/spectrum/spectrum.py index ccf5e37e616..78a76587802 100644 --- a/src/cloudflare/resources/spectrum/spectrum.py +++ b/src/cloudflare/resources/spectrum/spectrum.py @@ -3,111 +3,111 @@ from __future__ import annotations from .apps import ( - Apps, - AsyncApps, - AppsWithRawResponse, - AsyncAppsWithRawResponse, - AppsWithStreamingResponse, - AsyncAppsWithStreamingResponse, + AppsResource, + AsyncAppsResource, + AppsResourceWithRawResponse, + AsyncAppsResourceWithRawResponse, + AppsResourceWithStreamingResponse, + AsyncAppsResourceWithStreamingResponse, ) from ..._compat import cached_property from .analytics import ( - Analytics, - AsyncAnalytics, - AnalyticsWithRawResponse, - AsyncAnalyticsWithRawResponse, - AnalyticsWithStreamingResponse, - AsyncAnalyticsWithStreamingResponse, + AnalyticsResource, + AsyncAnalyticsResource, + AnalyticsResourceWithRawResponse, + AsyncAnalyticsResourceWithRawResponse, + AnalyticsResourceWithStreamingResponse, + AsyncAnalyticsResourceWithStreamingResponse, ) from ..._resource import SyncAPIResource, AsyncAPIResource -from .analytics.analytics import Analytics, AsyncAnalytics +from .analytics.analytics import AnalyticsResource, AsyncAnalyticsResource -__all__ = ["Spectrum", "AsyncSpectrum"] +__all__ = ["SpectrumResource", "AsyncSpectrumResource"] -class Spectrum(SyncAPIResource): +class SpectrumResource(SyncAPIResource): @cached_property - def analytics(self) -> Analytics: - return Analytics(self._client) + def analytics(self) -> AnalyticsResource: + return AnalyticsResource(self._client) @cached_property - def apps(self) -> Apps: - return Apps(self._client) + def apps(self) -> AppsResource: + return AppsResource(self._client) @cached_property - def with_raw_response(self) -> SpectrumWithRawResponse: - return SpectrumWithRawResponse(self) + def with_raw_response(self) -> SpectrumResourceWithRawResponse: + return SpectrumResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> SpectrumWithStreamingResponse: - return SpectrumWithStreamingResponse(self) + def with_streaming_response(self) -> SpectrumResourceWithStreamingResponse: + return SpectrumResourceWithStreamingResponse(self) -class AsyncSpectrum(AsyncAPIResource): +class AsyncSpectrumResource(AsyncAPIResource): @cached_property - def analytics(self) -> AsyncAnalytics: - return AsyncAnalytics(self._client) + def analytics(self) -> AsyncAnalyticsResource: + return AsyncAnalyticsResource(self._client) @cached_property - def apps(self) -> AsyncApps: - return AsyncApps(self._client) + def apps(self) -> AsyncAppsResource: + return AsyncAppsResource(self._client) @cached_property - def with_raw_response(self) -> AsyncSpectrumWithRawResponse: - return AsyncSpectrumWithRawResponse(self) + def with_raw_response(self) -> AsyncSpectrumResourceWithRawResponse: + return AsyncSpectrumResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncSpectrumWithStreamingResponse: - return AsyncSpectrumWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncSpectrumResourceWithStreamingResponse: + return AsyncSpectrumResourceWithStreamingResponse(self) -class SpectrumWithRawResponse: - def __init__(self, spectrum: Spectrum) -> None: +class SpectrumResourceWithRawResponse: + def __init__(self, spectrum: SpectrumResource) -> None: self._spectrum = spectrum @cached_property - def analytics(self) -> AnalyticsWithRawResponse: - return AnalyticsWithRawResponse(self._spectrum.analytics) + def analytics(self) -> AnalyticsResourceWithRawResponse: + return AnalyticsResourceWithRawResponse(self._spectrum.analytics) @cached_property - def apps(self) -> AppsWithRawResponse: - return AppsWithRawResponse(self._spectrum.apps) + def apps(self) -> AppsResourceWithRawResponse: + return AppsResourceWithRawResponse(self._spectrum.apps) -class AsyncSpectrumWithRawResponse: - def __init__(self, spectrum: AsyncSpectrum) -> None: +class AsyncSpectrumResourceWithRawResponse: + def __init__(self, spectrum: AsyncSpectrumResource) -> None: self._spectrum = spectrum @cached_property - def analytics(self) -> AsyncAnalyticsWithRawResponse: - return AsyncAnalyticsWithRawResponse(self._spectrum.analytics) + def analytics(self) -> AsyncAnalyticsResourceWithRawResponse: + return AsyncAnalyticsResourceWithRawResponse(self._spectrum.analytics) @cached_property - def apps(self) -> AsyncAppsWithRawResponse: - return AsyncAppsWithRawResponse(self._spectrum.apps) + def apps(self) -> AsyncAppsResourceWithRawResponse: + return AsyncAppsResourceWithRawResponse(self._spectrum.apps) -class SpectrumWithStreamingResponse: - def __init__(self, spectrum: Spectrum) -> None: +class SpectrumResourceWithStreamingResponse: + def __init__(self, spectrum: SpectrumResource) -> None: self._spectrum = spectrum @cached_property - def analytics(self) -> AnalyticsWithStreamingResponse: - return AnalyticsWithStreamingResponse(self._spectrum.analytics) + def analytics(self) -> AnalyticsResourceWithStreamingResponse: + return AnalyticsResourceWithStreamingResponse(self._spectrum.analytics) @cached_property - def apps(self) -> AppsWithStreamingResponse: - return AppsWithStreamingResponse(self._spectrum.apps) + def apps(self) -> AppsResourceWithStreamingResponse: + return AppsResourceWithStreamingResponse(self._spectrum.apps) -class AsyncSpectrumWithStreamingResponse: - def __init__(self, spectrum: AsyncSpectrum) -> None: +class AsyncSpectrumResourceWithStreamingResponse: + def __init__(self, spectrum: AsyncSpectrumResource) -> None: self._spectrum = spectrum @cached_property - def analytics(self) -> AsyncAnalyticsWithStreamingResponse: - return AsyncAnalyticsWithStreamingResponse(self._spectrum.analytics) + def analytics(self) -> AsyncAnalyticsResourceWithStreamingResponse: + return AsyncAnalyticsResourceWithStreamingResponse(self._spectrum.analytics) @cached_property - def apps(self) -> AsyncAppsWithStreamingResponse: - return AsyncAppsWithStreamingResponse(self._spectrum.apps) + def apps(self) -> AsyncAppsResourceWithStreamingResponse: + return AsyncAppsResourceWithStreamingResponse(self._spectrum.apps) diff --git a/src/cloudflare/resources/speed/__init__.py b/src/cloudflare/resources/speed/__init__.py index 1723e42b86d..c94c9837fa9 100644 --- a/src/cloudflare/resources/speed/__init__.py +++ b/src/cloudflare/resources/speed/__init__.py @@ -1,28 +1,28 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from .pages import ( - Pages, - AsyncPages, - PagesWithRawResponse, - AsyncPagesWithRawResponse, - PagesWithStreamingResponse, - AsyncPagesWithStreamingResponse, + PagesResource, + AsyncPagesResource, + PagesResourceWithRawResponse, + AsyncPagesResourceWithRawResponse, + PagesResourceWithStreamingResponse, + AsyncPagesResourceWithStreamingResponse, ) from .speed import ( - Speed, - AsyncSpeed, - SpeedWithRawResponse, - AsyncSpeedWithRawResponse, - SpeedWithStreamingResponse, - AsyncSpeedWithStreamingResponse, + SpeedResource, + AsyncSpeedResource, + SpeedResourceWithRawResponse, + AsyncSpeedResourceWithRawResponse, + SpeedResourceWithStreamingResponse, + AsyncSpeedResourceWithStreamingResponse, ) from .tests import ( - Tests, - AsyncTests, - TestsWithRawResponse, - AsyncTestsWithRawResponse, - TestsWithStreamingResponse, - AsyncTestsWithStreamingResponse, + TestsResource, + AsyncTestsResource, + TestsResourceWithRawResponse, + AsyncTestsResourceWithRawResponse, + TestsResourceWithStreamingResponse, + AsyncTestsResourceWithStreamingResponse, ) from .schedule import ( ScheduleResource, @@ -33,43 +33,43 @@ AsyncScheduleResourceWithStreamingResponse, ) from .availabilities import ( - Availabilities, - AsyncAvailabilities, - AvailabilitiesWithRawResponse, - AsyncAvailabilitiesWithRawResponse, - AvailabilitiesWithStreamingResponse, - AsyncAvailabilitiesWithStreamingResponse, + AvailabilitiesResource, + AsyncAvailabilitiesResource, + AvailabilitiesResourceWithRawResponse, + AsyncAvailabilitiesResourceWithRawResponse, + AvailabilitiesResourceWithStreamingResponse, + AsyncAvailabilitiesResourceWithStreamingResponse, ) __all__ = [ - "Tests", - "AsyncTests", - "TestsWithRawResponse", - "AsyncTestsWithRawResponse", - "TestsWithStreamingResponse", - "AsyncTestsWithStreamingResponse", + "TestsResource", + "AsyncTestsResource", + "TestsResourceWithRawResponse", + "AsyncTestsResourceWithRawResponse", + "TestsResourceWithStreamingResponse", + "AsyncTestsResourceWithStreamingResponse", "ScheduleResource", "AsyncScheduleResource", "ScheduleResourceWithRawResponse", "AsyncScheduleResourceWithRawResponse", "ScheduleResourceWithStreamingResponse", "AsyncScheduleResourceWithStreamingResponse", - "Availabilities", - "AsyncAvailabilities", - "AvailabilitiesWithRawResponse", - "AsyncAvailabilitiesWithRawResponse", - "AvailabilitiesWithStreamingResponse", - "AsyncAvailabilitiesWithStreamingResponse", - "Pages", - "AsyncPages", - "PagesWithRawResponse", - "AsyncPagesWithRawResponse", - "PagesWithStreamingResponse", - "AsyncPagesWithStreamingResponse", - "Speed", - "AsyncSpeed", - "SpeedWithRawResponse", - "AsyncSpeedWithRawResponse", - "SpeedWithStreamingResponse", - "AsyncSpeedWithStreamingResponse", + "AvailabilitiesResource", + "AsyncAvailabilitiesResource", + "AvailabilitiesResourceWithRawResponse", + "AsyncAvailabilitiesResourceWithRawResponse", + "AvailabilitiesResourceWithStreamingResponse", + "AsyncAvailabilitiesResourceWithStreamingResponse", + "PagesResource", + "AsyncPagesResource", + "PagesResourceWithRawResponse", + "AsyncPagesResourceWithRawResponse", + "PagesResourceWithStreamingResponse", + "AsyncPagesResourceWithStreamingResponse", + "SpeedResource", + "AsyncSpeedResource", + "SpeedResourceWithRawResponse", + "AsyncSpeedResourceWithRawResponse", + "SpeedResourceWithStreamingResponse", + "AsyncSpeedResourceWithStreamingResponse", ] diff --git a/src/cloudflare/resources/speed/availabilities.py b/src/cloudflare/resources/speed/availabilities.py index fadf178dfa1..930d106c8ef 100644 --- a/src/cloudflare/resources/speed/availabilities.py +++ b/src/cloudflare/resources/speed/availabilities.py @@ -21,17 +21,17 @@ ) from ...types.speed.availability import Availability -__all__ = ["Availabilities", "AsyncAvailabilities"] +__all__ = ["AvailabilitiesResource", "AsyncAvailabilitiesResource"] -class Availabilities(SyncAPIResource): +class AvailabilitiesResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> AvailabilitiesWithRawResponse: - return AvailabilitiesWithRawResponse(self) + def with_raw_response(self) -> AvailabilitiesResourceWithRawResponse: + return AvailabilitiesResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AvailabilitiesWithStreamingResponse: - return AvailabilitiesWithStreamingResponse(self) + def with_streaming_response(self) -> AvailabilitiesResourceWithStreamingResponse: + return AvailabilitiesResourceWithStreamingResponse(self) def list( self, @@ -73,14 +73,14 @@ def list( ) -class AsyncAvailabilities(AsyncAPIResource): +class AsyncAvailabilitiesResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncAvailabilitiesWithRawResponse: - return AsyncAvailabilitiesWithRawResponse(self) + def with_raw_response(self) -> AsyncAvailabilitiesResourceWithRawResponse: + return AsyncAvailabilitiesResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncAvailabilitiesWithStreamingResponse: - return AsyncAvailabilitiesWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncAvailabilitiesResourceWithStreamingResponse: + return AsyncAvailabilitiesResourceWithStreamingResponse(self) async def list( self, @@ -122,8 +122,8 @@ async def list( ) -class AvailabilitiesWithRawResponse: - def __init__(self, availabilities: Availabilities) -> None: +class AvailabilitiesResourceWithRawResponse: + def __init__(self, availabilities: AvailabilitiesResource) -> None: self._availabilities = availabilities self.list = to_raw_response_wrapper( @@ -131,8 +131,8 @@ def __init__(self, availabilities: Availabilities) -> None: ) -class AsyncAvailabilitiesWithRawResponse: - def __init__(self, availabilities: AsyncAvailabilities) -> None: +class AsyncAvailabilitiesResourceWithRawResponse: + def __init__(self, availabilities: AsyncAvailabilitiesResource) -> None: self._availabilities = availabilities self.list = async_to_raw_response_wrapper( @@ -140,8 +140,8 @@ def __init__(self, availabilities: AsyncAvailabilities) -> None: ) -class AvailabilitiesWithStreamingResponse: - def __init__(self, availabilities: Availabilities) -> None: +class AvailabilitiesResourceWithStreamingResponse: + def __init__(self, availabilities: AvailabilitiesResource) -> None: self._availabilities = availabilities self.list = to_streamed_response_wrapper( @@ -149,8 +149,8 @@ def __init__(self, availabilities: Availabilities) -> None: ) -class AsyncAvailabilitiesWithStreamingResponse: - def __init__(self, availabilities: AsyncAvailabilities) -> None: +class AsyncAvailabilitiesResourceWithStreamingResponse: + def __init__(self, availabilities: AsyncAvailabilitiesResource) -> None: self._availabilities = availabilities self.list = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/speed/pages.py b/src/cloudflare/resources/speed/pages.py index db93f74c908..b75c1c6d06b 100644 --- a/src/cloudflare/resources/speed/pages.py +++ b/src/cloudflare/resources/speed/pages.py @@ -20,17 +20,17 @@ ) from ...types.speed.page_list_response import PageListResponse -__all__ = ["Pages", "AsyncPages"] +__all__ = ["PagesResource", "AsyncPagesResource"] -class Pages(SyncAPIResource): +class PagesResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> PagesWithRawResponse: - return PagesWithRawResponse(self) + def with_raw_response(self) -> PagesResourceWithRawResponse: + return PagesResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> PagesWithStreamingResponse: - return PagesWithStreamingResponse(self) + def with_streaming_response(self) -> PagesResourceWithStreamingResponse: + return PagesResourceWithStreamingResponse(self) def list( self, @@ -69,14 +69,14 @@ def list( ) -class AsyncPages(AsyncAPIResource): +class AsyncPagesResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncPagesWithRawResponse: - return AsyncPagesWithRawResponse(self) + def with_raw_response(self) -> AsyncPagesResourceWithRawResponse: + return AsyncPagesResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncPagesWithStreamingResponse: - return AsyncPagesWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncPagesResourceWithStreamingResponse: + return AsyncPagesResourceWithStreamingResponse(self) def list( self, @@ -115,8 +115,8 @@ def list( ) -class PagesWithRawResponse: - def __init__(self, pages: Pages) -> None: +class PagesResourceWithRawResponse: + def __init__(self, pages: PagesResource) -> None: self._pages = pages self.list = to_raw_response_wrapper( @@ -124,8 +124,8 @@ def __init__(self, pages: Pages) -> None: ) -class AsyncPagesWithRawResponse: - def __init__(self, pages: AsyncPages) -> None: +class AsyncPagesResourceWithRawResponse: + def __init__(self, pages: AsyncPagesResource) -> None: self._pages = pages self.list = async_to_raw_response_wrapper( @@ -133,8 +133,8 @@ def __init__(self, pages: AsyncPages) -> None: ) -class PagesWithStreamingResponse: - def __init__(self, pages: Pages) -> None: +class PagesResourceWithStreamingResponse: + def __init__(self, pages: PagesResource) -> None: self._pages = pages self.list = to_streamed_response_wrapper( @@ -142,8 +142,8 @@ def __init__(self, pages: Pages) -> None: ) -class AsyncPagesWithStreamingResponse: - def __init__(self, pages: AsyncPages) -> None: +class AsyncPagesResourceWithStreamingResponse: + def __init__(self, pages: AsyncPagesResource) -> None: self._pages = pages self.list = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/speed/speed.py b/src/cloudflare/resources/speed/speed.py index 771f60241b2..478aad8507c 100644 --- a/src/cloudflare/resources/speed/speed.py +++ b/src/cloudflare/resources/speed/speed.py @@ -9,20 +9,20 @@ import httpx from .pages import ( - Pages, - AsyncPages, - PagesWithRawResponse, - AsyncPagesWithRawResponse, - PagesWithStreamingResponse, - AsyncPagesWithStreamingResponse, + PagesResource, + AsyncPagesResource, + PagesResourceWithRawResponse, + AsyncPagesResourceWithRawResponse, + PagesResourceWithStreamingResponse, + AsyncPagesResourceWithStreamingResponse, ) from .tests import ( - Tests, - AsyncTests, - TestsWithRawResponse, - AsyncTestsWithRawResponse, - TestsWithStreamingResponse, - AsyncTestsWithStreamingResponse, + TestsResource, + AsyncTestsResource, + TestsResourceWithRawResponse, + AsyncTestsResourceWithRawResponse, + TestsResourceWithStreamingResponse, + AsyncTestsResourceWithStreamingResponse, ) from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven from ..._utils import ( @@ -51,44 +51,44 @@ make_request_options, ) from .availabilities import ( - Availabilities, - AsyncAvailabilities, - AvailabilitiesWithRawResponse, - AsyncAvailabilitiesWithRawResponse, - AvailabilitiesWithStreamingResponse, - AsyncAvailabilitiesWithStreamingResponse, + AvailabilitiesResource, + AsyncAvailabilitiesResource, + AvailabilitiesResourceWithRawResponse, + AsyncAvailabilitiesResourceWithRawResponse, + AvailabilitiesResourceWithStreamingResponse, + AsyncAvailabilitiesResourceWithStreamingResponse, ) from ...types.speed.trend import Trend from ...types.speed.schedule import Schedule from ...types.speed.speed_delete_response import SpeedDeleteResponse -__all__ = ["Speed", "AsyncSpeed"] +__all__ = ["SpeedResource", "AsyncSpeedResource"] -class Speed(SyncAPIResource): +class SpeedResource(SyncAPIResource): @cached_property - def tests(self) -> Tests: - return Tests(self._client) + def tests(self) -> TestsResource: + return TestsResource(self._client) @cached_property def schedule(self) -> ScheduleResource: return ScheduleResource(self._client) @cached_property - def availabilities(self) -> Availabilities: - return Availabilities(self._client) + def availabilities(self) -> AvailabilitiesResource: + return AvailabilitiesResource(self._client) @cached_property - def pages(self) -> Pages: - return Pages(self._client) + def pages(self) -> PagesResource: + return PagesResource(self._client) @cached_property - def with_raw_response(self) -> SpeedWithRawResponse: - return SpeedWithRawResponse(self) + def with_raw_response(self) -> SpeedResourceWithRawResponse: + return SpeedResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> SpeedWithStreamingResponse: - return SpeedWithStreamingResponse(self) + def with_streaming_response(self) -> SpeedResourceWithStreamingResponse: + return SpeedResourceWithStreamingResponse(self) def delete( self, @@ -324,30 +324,30 @@ def trends_list( ) -class AsyncSpeed(AsyncAPIResource): +class AsyncSpeedResource(AsyncAPIResource): @cached_property - def tests(self) -> AsyncTests: - return AsyncTests(self._client) + def tests(self) -> AsyncTestsResource: + return AsyncTestsResource(self._client) @cached_property def schedule(self) -> AsyncScheduleResource: return AsyncScheduleResource(self._client) @cached_property - def availabilities(self) -> AsyncAvailabilities: - return AsyncAvailabilities(self._client) + def availabilities(self) -> AsyncAvailabilitiesResource: + return AsyncAvailabilitiesResource(self._client) @cached_property - def pages(self) -> AsyncPages: - return AsyncPages(self._client) + def pages(self) -> AsyncPagesResource: + return AsyncPagesResource(self._client) @cached_property - def with_raw_response(self) -> AsyncSpeedWithRawResponse: - return AsyncSpeedWithRawResponse(self) + def with_raw_response(self) -> AsyncSpeedResourceWithRawResponse: + return AsyncSpeedResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncSpeedWithStreamingResponse: - return AsyncSpeedWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncSpeedResourceWithStreamingResponse: + return AsyncSpeedResourceWithStreamingResponse(self) async def delete( self, @@ -583,8 +583,8 @@ async def trends_list( ) -class SpeedWithRawResponse: - def __init__(self, speed: Speed) -> None: +class SpeedResourceWithRawResponse: + def __init__(self, speed: SpeedResource) -> None: self._speed = speed self.delete = to_raw_response_wrapper( @@ -598,24 +598,24 @@ def __init__(self, speed: Speed) -> None: ) @cached_property - def tests(self) -> TestsWithRawResponse: - return TestsWithRawResponse(self._speed.tests) + def tests(self) -> TestsResourceWithRawResponse: + return TestsResourceWithRawResponse(self._speed.tests) @cached_property def schedule(self) -> ScheduleResourceWithRawResponse: return ScheduleResourceWithRawResponse(self._speed.schedule) @cached_property - def availabilities(self) -> AvailabilitiesWithRawResponse: - return AvailabilitiesWithRawResponse(self._speed.availabilities) + def availabilities(self) -> AvailabilitiesResourceWithRawResponse: + return AvailabilitiesResourceWithRawResponse(self._speed.availabilities) @cached_property - def pages(self) -> PagesWithRawResponse: - return PagesWithRawResponse(self._speed.pages) + def pages(self) -> PagesResourceWithRawResponse: + return PagesResourceWithRawResponse(self._speed.pages) -class AsyncSpeedWithRawResponse: - def __init__(self, speed: AsyncSpeed) -> None: +class AsyncSpeedResourceWithRawResponse: + def __init__(self, speed: AsyncSpeedResource) -> None: self._speed = speed self.delete = async_to_raw_response_wrapper( @@ -629,24 +629,24 @@ def __init__(self, speed: AsyncSpeed) -> None: ) @cached_property - def tests(self) -> AsyncTestsWithRawResponse: - return AsyncTestsWithRawResponse(self._speed.tests) + def tests(self) -> AsyncTestsResourceWithRawResponse: + return AsyncTestsResourceWithRawResponse(self._speed.tests) @cached_property def schedule(self) -> AsyncScheduleResourceWithRawResponse: return AsyncScheduleResourceWithRawResponse(self._speed.schedule) @cached_property - def availabilities(self) -> AsyncAvailabilitiesWithRawResponse: - return AsyncAvailabilitiesWithRawResponse(self._speed.availabilities) + def availabilities(self) -> AsyncAvailabilitiesResourceWithRawResponse: + return AsyncAvailabilitiesResourceWithRawResponse(self._speed.availabilities) @cached_property - def pages(self) -> AsyncPagesWithRawResponse: - return AsyncPagesWithRawResponse(self._speed.pages) + def pages(self) -> AsyncPagesResourceWithRawResponse: + return AsyncPagesResourceWithRawResponse(self._speed.pages) -class SpeedWithStreamingResponse: - def __init__(self, speed: Speed) -> None: +class SpeedResourceWithStreamingResponse: + def __init__(self, speed: SpeedResource) -> None: self._speed = speed self.delete = to_streamed_response_wrapper( @@ -660,24 +660,24 @@ def __init__(self, speed: Speed) -> None: ) @cached_property - def tests(self) -> TestsWithStreamingResponse: - return TestsWithStreamingResponse(self._speed.tests) + def tests(self) -> TestsResourceWithStreamingResponse: + return TestsResourceWithStreamingResponse(self._speed.tests) @cached_property def schedule(self) -> ScheduleResourceWithStreamingResponse: return ScheduleResourceWithStreamingResponse(self._speed.schedule) @cached_property - def availabilities(self) -> AvailabilitiesWithStreamingResponse: - return AvailabilitiesWithStreamingResponse(self._speed.availabilities) + def availabilities(self) -> AvailabilitiesResourceWithStreamingResponse: + return AvailabilitiesResourceWithStreamingResponse(self._speed.availabilities) @cached_property - def pages(self) -> PagesWithStreamingResponse: - return PagesWithStreamingResponse(self._speed.pages) + def pages(self) -> PagesResourceWithStreamingResponse: + return PagesResourceWithStreamingResponse(self._speed.pages) -class AsyncSpeedWithStreamingResponse: - def __init__(self, speed: AsyncSpeed) -> None: +class AsyncSpeedResourceWithStreamingResponse: + def __init__(self, speed: AsyncSpeedResource) -> None: self._speed = speed self.delete = async_to_streamed_response_wrapper( @@ -691,17 +691,17 @@ def __init__(self, speed: AsyncSpeed) -> None: ) @cached_property - def tests(self) -> AsyncTestsWithStreamingResponse: - return AsyncTestsWithStreamingResponse(self._speed.tests) + def tests(self) -> AsyncTestsResourceWithStreamingResponse: + return AsyncTestsResourceWithStreamingResponse(self._speed.tests) @cached_property def schedule(self) -> AsyncScheduleResourceWithStreamingResponse: return AsyncScheduleResourceWithStreamingResponse(self._speed.schedule) @cached_property - def availabilities(self) -> AsyncAvailabilitiesWithStreamingResponse: - return AsyncAvailabilitiesWithStreamingResponse(self._speed.availabilities) + def availabilities(self) -> AsyncAvailabilitiesResourceWithStreamingResponse: + return AsyncAvailabilitiesResourceWithStreamingResponse(self._speed.availabilities) @cached_property - def pages(self) -> AsyncPagesWithStreamingResponse: - return AsyncPagesWithStreamingResponse(self._speed.pages) + def pages(self) -> AsyncPagesResourceWithStreamingResponse: + return AsyncPagesResourceWithStreamingResponse(self._speed.pages) diff --git a/src/cloudflare/resources/speed/tests.py b/src/cloudflare/resources/speed/tests.py index c83be2d06b7..02a984f30a8 100644 --- a/src/cloudflare/resources/speed/tests.py +++ b/src/cloudflare/resources/speed/tests.py @@ -29,19 +29,19 @@ from ...types.speed.test_list_response import TestListResponse from ...types.speed.test_delete_response import TestDeleteResponse -__all__ = ["Tests", "AsyncTests"] +__all__ = ["TestsResource", "AsyncTestsResource"] -class Tests(SyncAPIResource): +class TestsResource(SyncAPIResource): __test__ = False @cached_property - def with_raw_response(self) -> TestsWithRawResponse: - return TestsWithRawResponse(self) + def with_raw_response(self) -> TestsResourceWithRawResponse: + return TestsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> TestsWithStreamingResponse: - return TestsWithStreamingResponse(self) + def with_streaming_response(self) -> TestsResourceWithStreamingResponse: + return TestsResourceWithStreamingResponse(self) def create( self, @@ -314,14 +314,14 @@ def get( ) -class AsyncTests(AsyncAPIResource): +class AsyncTestsResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncTestsWithRawResponse: - return AsyncTestsWithRawResponse(self) + def with_raw_response(self) -> AsyncTestsResourceWithRawResponse: + return AsyncTestsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncTestsWithStreamingResponse: - return AsyncTestsWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncTestsResourceWithStreamingResponse: + return AsyncTestsResourceWithStreamingResponse(self) async def create( self, @@ -594,10 +594,10 @@ async def get( ) -class TestsWithRawResponse: +class TestsResourceWithRawResponse: __test__ = False - def __init__(self, tests: Tests) -> None: + def __init__(self, tests: TestsResource) -> None: self._tests = tests self.create = to_raw_response_wrapper( @@ -614,8 +614,8 @@ def __init__(self, tests: Tests) -> None: ) -class AsyncTestsWithRawResponse: - def __init__(self, tests: AsyncTests) -> None: +class AsyncTestsResourceWithRawResponse: + def __init__(self, tests: AsyncTestsResource) -> None: self._tests = tests self.create = async_to_raw_response_wrapper( @@ -632,10 +632,10 @@ def __init__(self, tests: AsyncTests) -> None: ) -class TestsWithStreamingResponse: +class TestsResourceWithStreamingResponse: __test__ = False - def __init__(self, tests: Tests) -> None: + def __init__(self, tests: TestsResource) -> None: self._tests = tests self.create = to_streamed_response_wrapper( @@ -652,8 +652,8 @@ def __init__(self, tests: Tests) -> None: ) -class AsyncTestsWithStreamingResponse: - def __init__(self, tests: AsyncTests) -> None: +class AsyncTestsResourceWithStreamingResponse: + def __init__(self, tests: AsyncTestsResource) -> None: self._tests = tests self.create = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/ssl/__init__.py b/src/cloudflare/resources/ssl/__init__.py index e73d6cd5e4a..59245e44dfb 100644 --- a/src/cloudflare/resources/ssl/__init__.py +++ b/src/cloudflare/resources/ssl/__init__.py @@ -1,28 +1,28 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from .ssl import ( - SSL, - AsyncSSL, - SSLWithRawResponse, - AsyncSSLWithRawResponse, - SSLWithStreamingResponse, - AsyncSSLWithStreamingResponse, + SSLResource, + AsyncSSLResource, + SSLResourceWithRawResponse, + AsyncSSLResourceWithRawResponse, + SSLResourceWithStreamingResponse, + AsyncSSLResourceWithStreamingResponse, ) from .analyze import ( - Analyze, - AsyncAnalyze, - AnalyzeWithRawResponse, - AsyncAnalyzeWithRawResponse, - AnalyzeWithStreamingResponse, - AsyncAnalyzeWithStreamingResponse, + AnalyzeResource, + AsyncAnalyzeResource, + AnalyzeResourceWithRawResponse, + AsyncAnalyzeResourceWithRawResponse, + AnalyzeResourceWithStreamingResponse, + AsyncAnalyzeResourceWithStreamingResponse, ) from .universal import ( - Universal, - AsyncUniversal, - UniversalWithRawResponse, - AsyncUniversalWithRawResponse, - UniversalWithStreamingResponse, - AsyncUniversalWithStreamingResponse, + UniversalResource, + AsyncUniversalResource, + UniversalResourceWithRawResponse, + AsyncUniversalResourceWithRawResponse, + UniversalResourceWithStreamingResponse, + AsyncUniversalResourceWithStreamingResponse, ) from .verification import ( VerificationResource, @@ -33,57 +33,57 @@ AsyncVerificationResourceWithStreamingResponse, ) from .recommendations import ( - Recommendations, - AsyncRecommendations, - RecommendationsWithRawResponse, - AsyncRecommendationsWithRawResponse, - RecommendationsWithStreamingResponse, - AsyncRecommendationsWithStreamingResponse, + RecommendationsResource, + AsyncRecommendationsResource, + RecommendationsResourceWithRawResponse, + AsyncRecommendationsResourceWithRawResponse, + RecommendationsResourceWithStreamingResponse, + AsyncRecommendationsResourceWithStreamingResponse, ) from .certificate_packs import ( - CertificatePacks, - AsyncCertificatePacks, - CertificatePacksWithRawResponse, - AsyncCertificatePacksWithRawResponse, - CertificatePacksWithStreamingResponse, - AsyncCertificatePacksWithStreamingResponse, + CertificatePacksResource, + AsyncCertificatePacksResource, + CertificatePacksResourceWithRawResponse, + AsyncCertificatePacksResourceWithRawResponse, + CertificatePacksResourceWithStreamingResponse, + AsyncCertificatePacksResourceWithStreamingResponse, ) __all__ = [ - "Analyze", - "AsyncAnalyze", - "AnalyzeWithRawResponse", - "AsyncAnalyzeWithRawResponse", - "AnalyzeWithStreamingResponse", - "AsyncAnalyzeWithStreamingResponse", - "CertificatePacks", - "AsyncCertificatePacks", - "CertificatePacksWithRawResponse", - "AsyncCertificatePacksWithRawResponse", - "CertificatePacksWithStreamingResponse", - "AsyncCertificatePacksWithStreamingResponse", - "Recommendations", - "AsyncRecommendations", - "RecommendationsWithRawResponse", - "AsyncRecommendationsWithRawResponse", - "RecommendationsWithStreamingResponse", - "AsyncRecommendationsWithStreamingResponse", - "Universal", - "AsyncUniversal", - "UniversalWithRawResponse", - "AsyncUniversalWithRawResponse", - "UniversalWithStreamingResponse", - "AsyncUniversalWithStreamingResponse", + "AnalyzeResource", + "AsyncAnalyzeResource", + "AnalyzeResourceWithRawResponse", + "AsyncAnalyzeResourceWithRawResponse", + "AnalyzeResourceWithStreamingResponse", + "AsyncAnalyzeResourceWithStreamingResponse", + "CertificatePacksResource", + "AsyncCertificatePacksResource", + "CertificatePacksResourceWithRawResponse", + "AsyncCertificatePacksResourceWithRawResponse", + "CertificatePacksResourceWithStreamingResponse", + "AsyncCertificatePacksResourceWithStreamingResponse", + "RecommendationsResource", + "AsyncRecommendationsResource", + "RecommendationsResourceWithRawResponse", + "AsyncRecommendationsResourceWithRawResponse", + "RecommendationsResourceWithStreamingResponse", + "AsyncRecommendationsResourceWithStreamingResponse", + "UniversalResource", + "AsyncUniversalResource", + "UniversalResourceWithRawResponse", + "AsyncUniversalResourceWithRawResponse", + "UniversalResourceWithStreamingResponse", + "AsyncUniversalResourceWithStreamingResponse", "VerificationResource", "AsyncVerificationResource", "VerificationResourceWithRawResponse", "AsyncVerificationResourceWithRawResponse", "VerificationResourceWithStreamingResponse", "AsyncVerificationResourceWithStreamingResponse", - "SSL", - "AsyncSSL", - "SSLWithRawResponse", - "AsyncSSLWithRawResponse", - "SSLWithStreamingResponse", - "AsyncSSLWithStreamingResponse", + "SSLResource", + "AsyncSSLResource", + "SSLResourceWithRawResponse", + "AsyncSSLResourceWithRawResponse", + "SSLResourceWithStreamingResponse", + "AsyncSSLResourceWithStreamingResponse", ] diff --git a/src/cloudflare/resources/ssl/analyze.py b/src/cloudflare/resources/ssl/analyze.py index 3c48547333f..12396528143 100644 --- a/src/cloudflare/resources/ssl/analyze.py +++ b/src/cloudflare/resources/ssl/analyze.py @@ -28,17 +28,17 @@ from ...types.ssl.analyze_create_response import AnalyzeCreateResponse from ...types.custom_hostnames.bundle_method import BundleMethod -__all__ = ["Analyze", "AsyncAnalyze"] +__all__ = ["AnalyzeResource", "AsyncAnalyzeResource"] -class Analyze(SyncAPIResource): +class AnalyzeResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> AnalyzeWithRawResponse: - return AnalyzeWithRawResponse(self) + def with_raw_response(self) -> AnalyzeResourceWithRawResponse: + return AnalyzeResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AnalyzeWithStreamingResponse: - return AnalyzeWithStreamingResponse(self) + def with_streaming_response(self) -> AnalyzeResourceWithStreamingResponse: + return AnalyzeResourceWithStreamingResponse(self) def create( self, @@ -102,14 +102,14 @@ def create( ) -class AsyncAnalyze(AsyncAPIResource): +class AsyncAnalyzeResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncAnalyzeWithRawResponse: - return AsyncAnalyzeWithRawResponse(self) + def with_raw_response(self) -> AsyncAnalyzeResourceWithRawResponse: + return AsyncAnalyzeResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncAnalyzeWithStreamingResponse: - return AsyncAnalyzeWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncAnalyzeResourceWithStreamingResponse: + return AsyncAnalyzeResourceWithStreamingResponse(self) async def create( self, @@ -173,8 +173,8 @@ async def create( ) -class AnalyzeWithRawResponse: - def __init__(self, analyze: Analyze) -> None: +class AnalyzeResourceWithRawResponse: + def __init__(self, analyze: AnalyzeResource) -> None: self._analyze = analyze self.create = to_raw_response_wrapper( @@ -182,8 +182,8 @@ def __init__(self, analyze: Analyze) -> None: ) -class AsyncAnalyzeWithRawResponse: - def __init__(self, analyze: AsyncAnalyze) -> None: +class AsyncAnalyzeResourceWithRawResponse: + def __init__(self, analyze: AsyncAnalyzeResource) -> None: self._analyze = analyze self.create = async_to_raw_response_wrapper( @@ -191,8 +191,8 @@ def __init__(self, analyze: AsyncAnalyze) -> None: ) -class AnalyzeWithStreamingResponse: - def __init__(self, analyze: Analyze) -> None: +class AnalyzeResourceWithStreamingResponse: + def __init__(self, analyze: AnalyzeResource) -> None: self._analyze = analyze self.create = to_streamed_response_wrapper( @@ -200,8 +200,8 @@ def __init__(self, analyze: Analyze) -> None: ) -class AsyncAnalyzeWithStreamingResponse: - def __init__(self, analyze: AsyncAnalyze) -> None: +class AsyncAnalyzeResourceWithStreamingResponse: + def __init__(self, analyze: AsyncAnalyzeResource) -> None: self._analyze = analyze self.create = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/ssl/certificate_packs/__init__.py b/src/cloudflare/resources/ssl/certificate_packs/__init__.py index b361a636131..ebed46ba670 100644 --- a/src/cloudflare/resources/ssl/certificate_packs/__init__.py +++ b/src/cloudflare/resources/ssl/certificate_packs/__init__.py @@ -1,47 +1,47 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from .order import ( - Order, - AsyncOrder, - OrderWithRawResponse, - AsyncOrderWithRawResponse, - OrderWithStreamingResponse, - AsyncOrderWithStreamingResponse, + OrderResource, + AsyncOrderResource, + OrderResourceWithRawResponse, + AsyncOrderResourceWithRawResponse, + OrderResourceWithStreamingResponse, + AsyncOrderResourceWithStreamingResponse, ) from .quota import ( - Quota, - AsyncQuota, - QuotaWithRawResponse, - AsyncQuotaWithRawResponse, - QuotaWithStreamingResponse, - AsyncQuotaWithStreamingResponse, + QuotaResource, + AsyncQuotaResource, + QuotaResourceWithRawResponse, + AsyncQuotaResourceWithRawResponse, + QuotaResourceWithStreamingResponse, + AsyncQuotaResourceWithStreamingResponse, ) from .certificate_packs import ( - CertificatePacks, - AsyncCertificatePacks, - CertificatePacksWithRawResponse, - AsyncCertificatePacksWithRawResponse, - CertificatePacksWithStreamingResponse, - AsyncCertificatePacksWithStreamingResponse, + CertificatePacksResource, + AsyncCertificatePacksResource, + CertificatePacksResourceWithRawResponse, + AsyncCertificatePacksResourceWithRawResponse, + CertificatePacksResourceWithStreamingResponse, + AsyncCertificatePacksResourceWithStreamingResponse, ) __all__ = [ - "Order", - "AsyncOrder", - "OrderWithRawResponse", - "AsyncOrderWithRawResponse", - "OrderWithStreamingResponse", - "AsyncOrderWithStreamingResponse", - "Quota", - "AsyncQuota", - "QuotaWithRawResponse", - "AsyncQuotaWithRawResponse", - "QuotaWithStreamingResponse", - "AsyncQuotaWithStreamingResponse", - "CertificatePacks", - "AsyncCertificatePacks", - "CertificatePacksWithRawResponse", - "AsyncCertificatePacksWithRawResponse", - "CertificatePacksWithStreamingResponse", - "AsyncCertificatePacksWithStreamingResponse", + "OrderResource", + "AsyncOrderResource", + "OrderResourceWithRawResponse", + "AsyncOrderResourceWithRawResponse", + "OrderResourceWithStreamingResponse", + "AsyncOrderResourceWithStreamingResponse", + "QuotaResource", + "AsyncQuotaResource", + "QuotaResourceWithRawResponse", + "AsyncQuotaResourceWithRawResponse", + "QuotaResourceWithStreamingResponse", + "AsyncQuotaResourceWithStreamingResponse", + "CertificatePacksResource", + "AsyncCertificatePacksResource", + "CertificatePacksResourceWithRawResponse", + "AsyncCertificatePacksResourceWithRawResponse", + "CertificatePacksResourceWithStreamingResponse", + "AsyncCertificatePacksResourceWithStreamingResponse", ] diff --git a/src/cloudflare/resources/ssl/certificate_packs/certificate_packs.py b/src/cloudflare/resources/ssl/certificate_packs/certificate_packs.py index 2cd0d594e9b..895db8720e1 100644 --- a/src/cloudflare/resources/ssl/certificate_packs/certificate_packs.py +++ b/src/cloudflare/resources/ssl/certificate_packs/certificate_packs.py @@ -8,20 +8,20 @@ import httpx from .order import ( - Order, - AsyncOrder, - OrderWithRawResponse, - AsyncOrderWithRawResponse, - OrderWithStreamingResponse, - AsyncOrderWithStreamingResponse, + OrderResource, + AsyncOrderResource, + OrderResourceWithRawResponse, + AsyncOrderResourceWithRawResponse, + OrderResourceWithStreamingResponse, + AsyncOrderResourceWithStreamingResponse, ) from .quota import ( - Quota, - AsyncQuota, - QuotaWithRawResponse, - AsyncQuotaWithRawResponse, - QuotaWithStreamingResponse, - AsyncQuotaWithStreamingResponse, + QuotaResource, + AsyncQuotaResource, + QuotaResourceWithRawResponse, + AsyncQuotaResourceWithRawResponse, + QuotaResourceWithStreamingResponse, + AsyncQuotaResourceWithStreamingResponse, ) from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven from ...._utils import ( @@ -47,25 +47,25 @@ from ....types.ssl.certificate_pack_edit_response import CertificatePackEditResponse from ....types.ssl.certificate_pack_delete_response import CertificatePackDeleteResponse -__all__ = ["CertificatePacks", "AsyncCertificatePacks"] +__all__ = ["CertificatePacksResource", "AsyncCertificatePacksResource"] -class CertificatePacks(SyncAPIResource): +class CertificatePacksResource(SyncAPIResource): @cached_property - def order(self) -> Order: - return Order(self._client) + def order(self) -> OrderResource: + return OrderResource(self._client) @cached_property - def quota(self) -> Quota: - return Quota(self._client) + def quota(self) -> QuotaResource: + return QuotaResource(self._client) @cached_property - def with_raw_response(self) -> CertificatePacksWithRawResponse: - return CertificatePacksWithRawResponse(self) + def with_raw_response(self) -> CertificatePacksResourceWithRawResponse: + return CertificatePacksResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> CertificatePacksWithStreamingResponse: - return CertificatePacksWithStreamingResponse(self) + def with_streaming_response(self) -> CertificatePacksResourceWithStreamingResponse: + return CertificatePacksResourceWithStreamingResponse(self) def list( self, @@ -261,22 +261,22 @@ def get( ) -class AsyncCertificatePacks(AsyncAPIResource): +class AsyncCertificatePacksResource(AsyncAPIResource): @cached_property - def order(self) -> AsyncOrder: - return AsyncOrder(self._client) + def order(self) -> AsyncOrderResource: + return AsyncOrderResource(self._client) @cached_property - def quota(self) -> AsyncQuota: - return AsyncQuota(self._client) + def quota(self) -> AsyncQuotaResource: + return AsyncQuotaResource(self._client) @cached_property - def with_raw_response(self) -> AsyncCertificatePacksWithRawResponse: - return AsyncCertificatePacksWithRawResponse(self) + def with_raw_response(self) -> AsyncCertificatePacksResourceWithRawResponse: + return AsyncCertificatePacksResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncCertificatePacksWithStreamingResponse: - return AsyncCertificatePacksWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncCertificatePacksResourceWithStreamingResponse: + return AsyncCertificatePacksResourceWithStreamingResponse(self) def list( self, @@ -472,8 +472,8 @@ async def get( ) -class CertificatePacksWithRawResponse: - def __init__(self, certificate_packs: CertificatePacks) -> None: +class CertificatePacksResourceWithRawResponse: + def __init__(self, certificate_packs: CertificatePacksResource) -> None: self._certificate_packs = certificate_packs self.list = to_raw_response_wrapper( @@ -490,16 +490,16 @@ def __init__(self, certificate_packs: CertificatePacks) -> None: ) @cached_property - def order(self) -> OrderWithRawResponse: - return OrderWithRawResponse(self._certificate_packs.order) + def order(self) -> OrderResourceWithRawResponse: + return OrderResourceWithRawResponse(self._certificate_packs.order) @cached_property - def quota(self) -> QuotaWithRawResponse: - return QuotaWithRawResponse(self._certificate_packs.quota) + def quota(self) -> QuotaResourceWithRawResponse: + return QuotaResourceWithRawResponse(self._certificate_packs.quota) -class AsyncCertificatePacksWithRawResponse: - def __init__(self, certificate_packs: AsyncCertificatePacks) -> None: +class AsyncCertificatePacksResourceWithRawResponse: + def __init__(self, certificate_packs: AsyncCertificatePacksResource) -> None: self._certificate_packs = certificate_packs self.list = async_to_raw_response_wrapper( @@ -516,16 +516,16 @@ def __init__(self, certificate_packs: AsyncCertificatePacks) -> None: ) @cached_property - def order(self) -> AsyncOrderWithRawResponse: - return AsyncOrderWithRawResponse(self._certificate_packs.order) + def order(self) -> AsyncOrderResourceWithRawResponse: + return AsyncOrderResourceWithRawResponse(self._certificate_packs.order) @cached_property - def quota(self) -> AsyncQuotaWithRawResponse: - return AsyncQuotaWithRawResponse(self._certificate_packs.quota) + def quota(self) -> AsyncQuotaResourceWithRawResponse: + return AsyncQuotaResourceWithRawResponse(self._certificate_packs.quota) -class CertificatePacksWithStreamingResponse: - def __init__(self, certificate_packs: CertificatePacks) -> None: +class CertificatePacksResourceWithStreamingResponse: + def __init__(self, certificate_packs: CertificatePacksResource) -> None: self._certificate_packs = certificate_packs self.list = to_streamed_response_wrapper( @@ -542,16 +542,16 @@ def __init__(self, certificate_packs: CertificatePacks) -> None: ) @cached_property - def order(self) -> OrderWithStreamingResponse: - return OrderWithStreamingResponse(self._certificate_packs.order) + def order(self) -> OrderResourceWithStreamingResponse: + return OrderResourceWithStreamingResponse(self._certificate_packs.order) @cached_property - def quota(self) -> QuotaWithStreamingResponse: - return QuotaWithStreamingResponse(self._certificate_packs.quota) + def quota(self) -> QuotaResourceWithStreamingResponse: + return QuotaResourceWithStreamingResponse(self._certificate_packs.quota) -class AsyncCertificatePacksWithStreamingResponse: - def __init__(self, certificate_packs: AsyncCertificatePacks) -> None: +class AsyncCertificatePacksResourceWithStreamingResponse: + def __init__(self, certificate_packs: AsyncCertificatePacksResource) -> None: self._certificate_packs = certificate_packs self.list = async_to_streamed_response_wrapper( @@ -568,9 +568,9 @@ def __init__(self, certificate_packs: AsyncCertificatePacks) -> None: ) @cached_property - def order(self) -> AsyncOrderWithStreamingResponse: - return AsyncOrderWithStreamingResponse(self._certificate_packs.order) + def order(self) -> AsyncOrderResourceWithStreamingResponse: + return AsyncOrderResourceWithStreamingResponse(self._certificate_packs.order) @cached_property - def quota(self) -> AsyncQuotaWithStreamingResponse: - return AsyncQuotaWithStreamingResponse(self._certificate_packs.quota) + def quota(self) -> AsyncQuotaResourceWithStreamingResponse: + return AsyncQuotaResourceWithStreamingResponse(self._certificate_packs.quota) diff --git a/src/cloudflare/resources/ssl/certificate_packs/order.py b/src/cloudflare/resources/ssl/certificate_packs/order.py index c4b551a1614..05885aa8747 100644 --- a/src/cloudflare/resources/ssl/certificate_packs/order.py +++ b/src/cloudflare/resources/ssl/certificate_packs/order.py @@ -28,17 +28,17 @@ from ....types.ssl.certificate_packs import order_create_params from ....types.ssl.certificate_packs.order_create_response import OrderCreateResponse -__all__ = ["Order", "AsyncOrder"] +__all__ = ["OrderResource", "AsyncOrderResource"] -class Order(SyncAPIResource): +class OrderResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> OrderWithRawResponse: - return OrderWithRawResponse(self) + def with_raw_response(self) -> OrderResourceWithRawResponse: + return OrderResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> OrderWithStreamingResponse: - return OrderWithStreamingResponse(self) + def with_streaming_response(self) -> OrderResourceWithStreamingResponse: + return OrderResourceWithStreamingResponse(self) def create( self, @@ -113,14 +113,14 @@ def create( ) -class AsyncOrder(AsyncAPIResource): +class AsyncOrderResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncOrderWithRawResponse: - return AsyncOrderWithRawResponse(self) + def with_raw_response(self) -> AsyncOrderResourceWithRawResponse: + return AsyncOrderResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncOrderWithStreamingResponse: - return AsyncOrderWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncOrderResourceWithStreamingResponse: + return AsyncOrderResourceWithStreamingResponse(self) async def create( self, @@ -195,8 +195,8 @@ async def create( ) -class OrderWithRawResponse: - def __init__(self, order: Order) -> None: +class OrderResourceWithRawResponse: + def __init__(self, order: OrderResource) -> None: self._order = order self.create = to_raw_response_wrapper( @@ -204,8 +204,8 @@ def __init__(self, order: Order) -> None: ) -class AsyncOrderWithRawResponse: - def __init__(self, order: AsyncOrder) -> None: +class AsyncOrderResourceWithRawResponse: + def __init__(self, order: AsyncOrderResource) -> None: self._order = order self.create = async_to_raw_response_wrapper( @@ -213,8 +213,8 @@ def __init__(self, order: AsyncOrder) -> None: ) -class OrderWithStreamingResponse: - def __init__(self, order: Order) -> None: +class OrderResourceWithStreamingResponse: + def __init__(self, order: OrderResource) -> None: self._order = order self.create = to_streamed_response_wrapper( @@ -222,8 +222,8 @@ def __init__(self, order: Order) -> None: ) -class AsyncOrderWithStreamingResponse: - def __init__(self, order: AsyncOrder) -> None: +class AsyncOrderResourceWithStreamingResponse: + def __init__(self, order: AsyncOrderResource) -> None: self._order = order self.create = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/ssl/certificate_packs/quota.py b/src/cloudflare/resources/ssl/certificate_packs/quota.py index 7497b104459..33bd534e992 100644 --- a/src/cloudflare/resources/ssl/certificate_packs/quota.py +++ b/src/cloudflare/resources/ssl/certificate_packs/quota.py @@ -21,17 +21,17 @@ ) from ....types.ssl.certificate_packs.quota_get_response import QuotaGetResponse -__all__ = ["Quota", "AsyncQuota"] +__all__ = ["QuotaResource", "AsyncQuotaResource"] -class Quota(SyncAPIResource): +class QuotaResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> QuotaWithRawResponse: - return QuotaWithRawResponse(self) + def with_raw_response(self) -> QuotaResourceWithRawResponse: + return QuotaResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> QuotaWithStreamingResponse: - return QuotaWithStreamingResponse(self) + def with_streaming_response(self) -> QuotaResourceWithStreamingResponse: + return QuotaResourceWithStreamingResponse(self) def get( self, @@ -73,14 +73,14 @@ def get( ) -class AsyncQuota(AsyncAPIResource): +class AsyncQuotaResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncQuotaWithRawResponse: - return AsyncQuotaWithRawResponse(self) + def with_raw_response(self) -> AsyncQuotaResourceWithRawResponse: + return AsyncQuotaResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncQuotaWithStreamingResponse: - return AsyncQuotaWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncQuotaResourceWithStreamingResponse: + return AsyncQuotaResourceWithStreamingResponse(self) async def get( self, @@ -122,8 +122,8 @@ async def get( ) -class QuotaWithRawResponse: - def __init__(self, quota: Quota) -> None: +class QuotaResourceWithRawResponse: + def __init__(self, quota: QuotaResource) -> None: self._quota = quota self.get = to_raw_response_wrapper( @@ -131,8 +131,8 @@ def __init__(self, quota: Quota) -> None: ) -class AsyncQuotaWithRawResponse: - def __init__(self, quota: AsyncQuota) -> None: +class AsyncQuotaResourceWithRawResponse: + def __init__(self, quota: AsyncQuotaResource) -> None: self._quota = quota self.get = async_to_raw_response_wrapper( @@ -140,8 +140,8 @@ def __init__(self, quota: AsyncQuota) -> None: ) -class QuotaWithStreamingResponse: - def __init__(self, quota: Quota) -> None: +class QuotaResourceWithStreamingResponse: + def __init__(self, quota: QuotaResource) -> None: self._quota = quota self.get = to_streamed_response_wrapper( @@ -149,8 +149,8 @@ def __init__(self, quota: Quota) -> None: ) -class AsyncQuotaWithStreamingResponse: - def __init__(self, quota: AsyncQuota) -> None: +class AsyncQuotaResourceWithStreamingResponse: + def __init__(self, quota: AsyncQuotaResource) -> None: self._quota = quota self.get = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/ssl/recommendations.py b/src/cloudflare/resources/ssl/recommendations.py index 23fec507115..c94199658f6 100644 --- a/src/cloudflare/resources/ssl/recommendations.py +++ b/src/cloudflare/resources/ssl/recommendations.py @@ -21,17 +21,17 @@ ) from ...types.ssl.recommendation_get_response import RecommendationGetResponse -__all__ = ["Recommendations", "AsyncRecommendations"] +__all__ = ["RecommendationsResource", "AsyncRecommendationsResource"] -class Recommendations(SyncAPIResource): +class RecommendationsResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> RecommendationsWithRawResponse: - return RecommendationsWithRawResponse(self) + def with_raw_response(self) -> RecommendationsResourceWithRawResponse: + return RecommendationsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> RecommendationsWithStreamingResponse: - return RecommendationsWithStreamingResponse(self) + def with_streaming_response(self) -> RecommendationsResourceWithStreamingResponse: + return RecommendationsResourceWithStreamingResponse(self) def get( self, @@ -73,14 +73,14 @@ def get( ) -class AsyncRecommendations(AsyncAPIResource): +class AsyncRecommendationsResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncRecommendationsWithRawResponse: - return AsyncRecommendationsWithRawResponse(self) + def with_raw_response(self) -> AsyncRecommendationsResourceWithRawResponse: + return AsyncRecommendationsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncRecommendationsWithStreamingResponse: - return AsyncRecommendationsWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncRecommendationsResourceWithStreamingResponse: + return AsyncRecommendationsResourceWithStreamingResponse(self) async def get( self, @@ -122,8 +122,8 @@ async def get( ) -class RecommendationsWithRawResponse: - def __init__(self, recommendations: Recommendations) -> None: +class RecommendationsResourceWithRawResponse: + def __init__(self, recommendations: RecommendationsResource) -> None: self._recommendations = recommendations self.get = to_raw_response_wrapper( @@ -131,8 +131,8 @@ def __init__(self, recommendations: Recommendations) -> None: ) -class AsyncRecommendationsWithRawResponse: - def __init__(self, recommendations: AsyncRecommendations) -> None: +class AsyncRecommendationsResourceWithRawResponse: + def __init__(self, recommendations: AsyncRecommendationsResource) -> None: self._recommendations = recommendations self.get = async_to_raw_response_wrapper( @@ -140,8 +140,8 @@ def __init__(self, recommendations: AsyncRecommendations) -> None: ) -class RecommendationsWithStreamingResponse: - def __init__(self, recommendations: Recommendations) -> None: +class RecommendationsResourceWithStreamingResponse: + def __init__(self, recommendations: RecommendationsResource) -> None: self._recommendations = recommendations self.get = to_streamed_response_wrapper( @@ -149,8 +149,8 @@ def __init__(self, recommendations: Recommendations) -> None: ) -class AsyncRecommendationsWithStreamingResponse: - def __init__(self, recommendations: AsyncRecommendations) -> None: +class AsyncRecommendationsResourceWithStreamingResponse: + def __init__(self, recommendations: AsyncRecommendationsResource) -> None: self._recommendations = recommendations self.get = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/ssl/ssl.py b/src/cloudflare/resources/ssl/ssl.py index 879ca6597e4..45302ec7bf7 100644 --- a/src/cloudflare/resources/ssl/ssl.py +++ b/src/cloudflare/resources/ssl/ssl.py @@ -3,21 +3,21 @@ from __future__ import annotations from .analyze import ( - Analyze, - AsyncAnalyze, - AnalyzeWithRawResponse, - AsyncAnalyzeWithRawResponse, - AnalyzeWithStreamingResponse, - AsyncAnalyzeWithStreamingResponse, + AnalyzeResource, + AsyncAnalyzeResource, + AnalyzeResourceWithRawResponse, + AsyncAnalyzeResourceWithRawResponse, + AnalyzeResourceWithStreamingResponse, + AsyncAnalyzeResourceWithStreamingResponse, ) from ..._compat import cached_property from .universal import ( - Universal, - AsyncUniversal, - UniversalWithRawResponse, - AsyncUniversalWithRawResponse, - UniversalWithStreamingResponse, - AsyncUniversalWithStreamingResponse, + UniversalResource, + AsyncUniversalResource, + UniversalResourceWithRawResponse, + AsyncUniversalResourceWithRawResponse, + UniversalResourceWithStreamingResponse, + AsyncUniversalResourceWithStreamingResponse, ) from ..._resource import SyncAPIResource, AsyncAPIResource from .verification import ( @@ -29,181 +29,181 @@ AsyncVerificationResourceWithStreamingResponse, ) from .recommendations import ( - Recommendations, - AsyncRecommendations, - RecommendationsWithRawResponse, - AsyncRecommendationsWithRawResponse, - RecommendationsWithStreamingResponse, - AsyncRecommendationsWithStreamingResponse, + RecommendationsResource, + AsyncRecommendationsResource, + RecommendationsResourceWithRawResponse, + AsyncRecommendationsResourceWithRawResponse, + RecommendationsResourceWithStreamingResponse, + AsyncRecommendationsResourceWithStreamingResponse, ) from .certificate_packs import ( - CertificatePacks, - AsyncCertificatePacks, - CertificatePacksWithRawResponse, - AsyncCertificatePacksWithRawResponse, - CertificatePacksWithStreamingResponse, - AsyncCertificatePacksWithStreamingResponse, + CertificatePacksResource, + AsyncCertificatePacksResource, + CertificatePacksResourceWithRawResponse, + AsyncCertificatePacksResourceWithRawResponse, + CertificatePacksResourceWithStreamingResponse, + AsyncCertificatePacksResourceWithStreamingResponse, ) -from .universal.universal import Universal, AsyncUniversal -from .certificate_packs.certificate_packs import CertificatePacks, AsyncCertificatePacks +from .universal.universal import UniversalResource, AsyncUniversalResource +from .certificate_packs.certificate_packs import CertificatePacksResource, AsyncCertificatePacksResource -__all__ = ["SSL", "AsyncSSL"] +__all__ = ["SSLResource", "AsyncSSLResource"] -class SSL(SyncAPIResource): +class SSLResource(SyncAPIResource): @cached_property - def analyze(self) -> Analyze: - return Analyze(self._client) + def analyze(self) -> AnalyzeResource: + return AnalyzeResource(self._client) @cached_property - def certificate_packs(self) -> CertificatePacks: - return CertificatePacks(self._client) + def certificate_packs(self) -> CertificatePacksResource: + return CertificatePacksResource(self._client) @cached_property - def recommendations(self) -> Recommendations: - return Recommendations(self._client) + def recommendations(self) -> RecommendationsResource: + return RecommendationsResource(self._client) @cached_property - def universal(self) -> Universal: - return Universal(self._client) + def universal(self) -> UniversalResource: + return UniversalResource(self._client) @cached_property def verification(self) -> VerificationResource: return VerificationResource(self._client) @cached_property - def with_raw_response(self) -> SSLWithRawResponse: - return SSLWithRawResponse(self) + def with_raw_response(self) -> SSLResourceWithRawResponse: + return SSLResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> SSLWithStreamingResponse: - return SSLWithStreamingResponse(self) + def with_streaming_response(self) -> SSLResourceWithStreamingResponse: + return SSLResourceWithStreamingResponse(self) -class AsyncSSL(AsyncAPIResource): +class AsyncSSLResource(AsyncAPIResource): @cached_property - def analyze(self) -> AsyncAnalyze: - return AsyncAnalyze(self._client) + def analyze(self) -> AsyncAnalyzeResource: + return AsyncAnalyzeResource(self._client) @cached_property - def certificate_packs(self) -> AsyncCertificatePacks: - return AsyncCertificatePacks(self._client) + def certificate_packs(self) -> AsyncCertificatePacksResource: + return AsyncCertificatePacksResource(self._client) @cached_property - def recommendations(self) -> AsyncRecommendations: - return AsyncRecommendations(self._client) + def recommendations(self) -> AsyncRecommendationsResource: + return AsyncRecommendationsResource(self._client) @cached_property - def universal(self) -> AsyncUniversal: - return AsyncUniversal(self._client) + def universal(self) -> AsyncUniversalResource: + return AsyncUniversalResource(self._client) @cached_property def verification(self) -> AsyncVerificationResource: return AsyncVerificationResource(self._client) @cached_property - def with_raw_response(self) -> AsyncSSLWithRawResponse: - return AsyncSSLWithRawResponse(self) + def with_raw_response(self) -> AsyncSSLResourceWithRawResponse: + return AsyncSSLResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncSSLWithStreamingResponse: - return AsyncSSLWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncSSLResourceWithStreamingResponse: + return AsyncSSLResourceWithStreamingResponse(self) -class SSLWithRawResponse: - def __init__(self, ssl: SSL) -> None: +class SSLResourceWithRawResponse: + def __init__(self, ssl: SSLResource) -> None: self._ssl = ssl @cached_property - def analyze(self) -> AnalyzeWithRawResponse: - return AnalyzeWithRawResponse(self._ssl.analyze) + def analyze(self) -> AnalyzeResourceWithRawResponse: + return AnalyzeResourceWithRawResponse(self._ssl.analyze) @cached_property - def certificate_packs(self) -> CertificatePacksWithRawResponse: - return CertificatePacksWithRawResponse(self._ssl.certificate_packs) + def certificate_packs(self) -> CertificatePacksResourceWithRawResponse: + return CertificatePacksResourceWithRawResponse(self._ssl.certificate_packs) @cached_property - def recommendations(self) -> RecommendationsWithRawResponse: - return RecommendationsWithRawResponse(self._ssl.recommendations) + def recommendations(self) -> RecommendationsResourceWithRawResponse: + return RecommendationsResourceWithRawResponse(self._ssl.recommendations) @cached_property - def universal(self) -> UniversalWithRawResponse: - return UniversalWithRawResponse(self._ssl.universal) + def universal(self) -> UniversalResourceWithRawResponse: + return UniversalResourceWithRawResponse(self._ssl.universal) @cached_property def verification(self) -> VerificationResourceWithRawResponse: return VerificationResourceWithRawResponse(self._ssl.verification) -class AsyncSSLWithRawResponse: - def __init__(self, ssl: AsyncSSL) -> None: +class AsyncSSLResourceWithRawResponse: + def __init__(self, ssl: AsyncSSLResource) -> None: self._ssl = ssl @cached_property - def analyze(self) -> AsyncAnalyzeWithRawResponse: - return AsyncAnalyzeWithRawResponse(self._ssl.analyze) + def analyze(self) -> AsyncAnalyzeResourceWithRawResponse: + return AsyncAnalyzeResourceWithRawResponse(self._ssl.analyze) @cached_property - def certificate_packs(self) -> AsyncCertificatePacksWithRawResponse: - return AsyncCertificatePacksWithRawResponse(self._ssl.certificate_packs) + def certificate_packs(self) -> AsyncCertificatePacksResourceWithRawResponse: + return AsyncCertificatePacksResourceWithRawResponse(self._ssl.certificate_packs) @cached_property - def recommendations(self) -> AsyncRecommendationsWithRawResponse: - return AsyncRecommendationsWithRawResponse(self._ssl.recommendations) + def recommendations(self) -> AsyncRecommendationsResourceWithRawResponse: + return AsyncRecommendationsResourceWithRawResponse(self._ssl.recommendations) @cached_property - def universal(self) -> AsyncUniversalWithRawResponse: - return AsyncUniversalWithRawResponse(self._ssl.universal) + def universal(self) -> AsyncUniversalResourceWithRawResponse: + return AsyncUniversalResourceWithRawResponse(self._ssl.universal) @cached_property def verification(self) -> AsyncVerificationResourceWithRawResponse: return AsyncVerificationResourceWithRawResponse(self._ssl.verification) -class SSLWithStreamingResponse: - def __init__(self, ssl: SSL) -> None: +class SSLResourceWithStreamingResponse: + def __init__(self, ssl: SSLResource) -> None: self._ssl = ssl @cached_property - def analyze(self) -> AnalyzeWithStreamingResponse: - return AnalyzeWithStreamingResponse(self._ssl.analyze) + def analyze(self) -> AnalyzeResourceWithStreamingResponse: + return AnalyzeResourceWithStreamingResponse(self._ssl.analyze) @cached_property - def certificate_packs(self) -> CertificatePacksWithStreamingResponse: - return CertificatePacksWithStreamingResponse(self._ssl.certificate_packs) + def certificate_packs(self) -> CertificatePacksResourceWithStreamingResponse: + return CertificatePacksResourceWithStreamingResponse(self._ssl.certificate_packs) @cached_property - def recommendations(self) -> RecommendationsWithStreamingResponse: - return RecommendationsWithStreamingResponse(self._ssl.recommendations) + def recommendations(self) -> RecommendationsResourceWithStreamingResponse: + return RecommendationsResourceWithStreamingResponse(self._ssl.recommendations) @cached_property - def universal(self) -> UniversalWithStreamingResponse: - return UniversalWithStreamingResponse(self._ssl.universal) + def universal(self) -> UniversalResourceWithStreamingResponse: + return UniversalResourceWithStreamingResponse(self._ssl.universal) @cached_property def verification(self) -> VerificationResourceWithStreamingResponse: return VerificationResourceWithStreamingResponse(self._ssl.verification) -class AsyncSSLWithStreamingResponse: - def __init__(self, ssl: AsyncSSL) -> None: +class AsyncSSLResourceWithStreamingResponse: + def __init__(self, ssl: AsyncSSLResource) -> None: self._ssl = ssl @cached_property - def analyze(self) -> AsyncAnalyzeWithStreamingResponse: - return AsyncAnalyzeWithStreamingResponse(self._ssl.analyze) + def analyze(self) -> AsyncAnalyzeResourceWithStreamingResponse: + return AsyncAnalyzeResourceWithStreamingResponse(self._ssl.analyze) @cached_property - def certificate_packs(self) -> AsyncCertificatePacksWithStreamingResponse: - return AsyncCertificatePacksWithStreamingResponse(self._ssl.certificate_packs) + def certificate_packs(self) -> AsyncCertificatePacksResourceWithStreamingResponse: + return AsyncCertificatePacksResourceWithStreamingResponse(self._ssl.certificate_packs) @cached_property - def recommendations(self) -> AsyncRecommendationsWithStreamingResponse: - return AsyncRecommendationsWithStreamingResponse(self._ssl.recommendations) + def recommendations(self) -> AsyncRecommendationsResourceWithStreamingResponse: + return AsyncRecommendationsResourceWithStreamingResponse(self._ssl.recommendations) @cached_property - def universal(self) -> AsyncUniversalWithStreamingResponse: - return AsyncUniversalWithStreamingResponse(self._ssl.universal) + def universal(self) -> AsyncUniversalResourceWithStreamingResponse: + return AsyncUniversalResourceWithStreamingResponse(self._ssl.universal) @cached_property def verification(self) -> AsyncVerificationResourceWithStreamingResponse: diff --git a/src/cloudflare/resources/ssl/universal/__init__.py b/src/cloudflare/resources/ssl/universal/__init__.py index bf650c6ed1a..1764132375d 100644 --- a/src/cloudflare/resources/ssl/universal/__init__.py +++ b/src/cloudflare/resources/ssl/universal/__init__.py @@ -1,33 +1,33 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from .settings import ( - Settings, - AsyncSettings, - SettingsWithRawResponse, - AsyncSettingsWithRawResponse, - SettingsWithStreamingResponse, - AsyncSettingsWithStreamingResponse, + SettingsResource, + AsyncSettingsResource, + SettingsResourceWithRawResponse, + AsyncSettingsResourceWithRawResponse, + SettingsResourceWithStreamingResponse, + AsyncSettingsResourceWithStreamingResponse, ) from .universal import ( - Universal, - AsyncUniversal, - UniversalWithRawResponse, - AsyncUniversalWithRawResponse, - UniversalWithStreamingResponse, - AsyncUniversalWithStreamingResponse, + UniversalResource, + AsyncUniversalResource, + UniversalResourceWithRawResponse, + AsyncUniversalResourceWithRawResponse, + UniversalResourceWithStreamingResponse, + AsyncUniversalResourceWithStreamingResponse, ) __all__ = [ - "Settings", - "AsyncSettings", - "SettingsWithRawResponse", - "AsyncSettingsWithRawResponse", - "SettingsWithStreamingResponse", - "AsyncSettingsWithStreamingResponse", - "Universal", - "AsyncUniversal", - "UniversalWithRawResponse", - "AsyncUniversalWithRawResponse", - "UniversalWithStreamingResponse", - "AsyncUniversalWithStreamingResponse", + "SettingsResource", + "AsyncSettingsResource", + "SettingsResourceWithRawResponse", + "AsyncSettingsResourceWithRawResponse", + "SettingsResourceWithStreamingResponse", + "AsyncSettingsResourceWithStreamingResponse", + "UniversalResource", + "AsyncUniversalResource", + "UniversalResourceWithRawResponse", + "AsyncUniversalResourceWithRawResponse", + "UniversalResourceWithStreamingResponse", + "AsyncUniversalResourceWithStreamingResponse", ] diff --git a/src/cloudflare/resources/ssl/universal/settings.py b/src/cloudflare/resources/ssl/universal/settings.py index e00c363a2ea..fb5657634bd 100644 --- a/src/cloudflare/resources/ssl/universal/settings.py +++ b/src/cloudflare/resources/ssl/universal/settings.py @@ -26,17 +26,17 @@ from ....types.ssl.universal import setting_edit_params from ....types.ssl.universal.universal_ssl_settings import UniversalSSLSettings -__all__ = ["Settings", "AsyncSettings"] +__all__ = ["SettingsResource", "AsyncSettingsResource"] -class Settings(SyncAPIResource): +class SettingsResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> SettingsWithRawResponse: - return SettingsWithRawResponse(self) + def with_raw_response(self) -> SettingsResourceWithRawResponse: + return SettingsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> SettingsWithStreamingResponse: - return SettingsWithStreamingResponse(self) + def with_streaming_response(self) -> SettingsResourceWithStreamingResponse: + return SettingsResourceWithStreamingResponse(self) def edit( self, @@ -145,14 +145,14 @@ def get( ) -class AsyncSettings(AsyncAPIResource): +class AsyncSettingsResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncSettingsWithRawResponse: - return AsyncSettingsWithRawResponse(self) + def with_raw_response(self) -> AsyncSettingsResourceWithRawResponse: + return AsyncSettingsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncSettingsWithStreamingResponse: - return AsyncSettingsWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncSettingsResourceWithStreamingResponse: + return AsyncSettingsResourceWithStreamingResponse(self) async def edit( self, @@ -261,8 +261,8 @@ async def get( ) -class SettingsWithRawResponse: - def __init__(self, settings: Settings) -> None: +class SettingsResourceWithRawResponse: + def __init__(self, settings: SettingsResource) -> None: self._settings = settings self.edit = to_raw_response_wrapper( @@ -273,8 +273,8 @@ def __init__(self, settings: Settings) -> None: ) -class AsyncSettingsWithRawResponse: - def __init__(self, settings: AsyncSettings) -> None: +class AsyncSettingsResourceWithRawResponse: + def __init__(self, settings: AsyncSettingsResource) -> None: self._settings = settings self.edit = async_to_raw_response_wrapper( @@ -285,8 +285,8 @@ def __init__(self, settings: AsyncSettings) -> None: ) -class SettingsWithStreamingResponse: - def __init__(self, settings: Settings) -> None: +class SettingsResourceWithStreamingResponse: + def __init__(self, settings: SettingsResource) -> None: self._settings = settings self.edit = to_streamed_response_wrapper( @@ -297,8 +297,8 @@ def __init__(self, settings: Settings) -> None: ) -class AsyncSettingsWithStreamingResponse: - def __init__(self, settings: AsyncSettings) -> None: +class AsyncSettingsResourceWithStreamingResponse: + def __init__(self, settings: AsyncSettingsResource) -> None: self._settings = settings self.edit = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/ssl/universal/universal.py b/src/cloudflare/resources/ssl/universal/universal.py index 7a83d28ad21..7f89451e1d5 100644 --- a/src/cloudflare/resources/ssl/universal/universal.py +++ b/src/cloudflare/resources/ssl/universal/universal.py @@ -3,78 +3,78 @@ from __future__ import annotations from .settings import ( - Settings, - AsyncSettings, - SettingsWithRawResponse, - AsyncSettingsWithRawResponse, - SettingsWithStreamingResponse, - AsyncSettingsWithStreamingResponse, + SettingsResource, + AsyncSettingsResource, + SettingsResourceWithRawResponse, + AsyncSettingsResourceWithRawResponse, + SettingsResourceWithStreamingResponse, + AsyncSettingsResourceWithStreamingResponse, ) from ...._compat import cached_property from ...._resource import SyncAPIResource, AsyncAPIResource -__all__ = ["Universal", "AsyncUniversal"] +__all__ = ["UniversalResource", "AsyncUniversalResource"] -class Universal(SyncAPIResource): +class UniversalResource(SyncAPIResource): @cached_property - def settings(self) -> Settings: - return Settings(self._client) + def settings(self) -> SettingsResource: + return SettingsResource(self._client) @cached_property - def with_raw_response(self) -> UniversalWithRawResponse: - return UniversalWithRawResponse(self) + def with_raw_response(self) -> UniversalResourceWithRawResponse: + return UniversalResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> UniversalWithStreamingResponse: - return UniversalWithStreamingResponse(self) + def with_streaming_response(self) -> UniversalResourceWithStreamingResponse: + return UniversalResourceWithStreamingResponse(self) -class AsyncUniversal(AsyncAPIResource): +class AsyncUniversalResource(AsyncAPIResource): @cached_property - def settings(self) -> AsyncSettings: - return AsyncSettings(self._client) + def settings(self) -> AsyncSettingsResource: + return AsyncSettingsResource(self._client) @cached_property - def with_raw_response(self) -> AsyncUniversalWithRawResponse: - return AsyncUniversalWithRawResponse(self) + def with_raw_response(self) -> AsyncUniversalResourceWithRawResponse: + return AsyncUniversalResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncUniversalWithStreamingResponse: - return AsyncUniversalWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncUniversalResourceWithStreamingResponse: + return AsyncUniversalResourceWithStreamingResponse(self) -class UniversalWithRawResponse: - def __init__(self, universal: Universal) -> None: +class UniversalResourceWithRawResponse: + def __init__(self, universal: UniversalResource) -> None: self._universal = universal @cached_property - def settings(self) -> SettingsWithRawResponse: - return SettingsWithRawResponse(self._universal.settings) + def settings(self) -> SettingsResourceWithRawResponse: + return SettingsResourceWithRawResponse(self._universal.settings) -class AsyncUniversalWithRawResponse: - def __init__(self, universal: AsyncUniversal) -> None: +class AsyncUniversalResourceWithRawResponse: + def __init__(self, universal: AsyncUniversalResource) -> None: self._universal = universal @cached_property - def settings(self) -> AsyncSettingsWithRawResponse: - return AsyncSettingsWithRawResponse(self._universal.settings) + def settings(self) -> AsyncSettingsResourceWithRawResponse: + return AsyncSettingsResourceWithRawResponse(self._universal.settings) -class UniversalWithStreamingResponse: - def __init__(self, universal: Universal) -> None: +class UniversalResourceWithStreamingResponse: + def __init__(self, universal: UniversalResource) -> None: self._universal = universal @cached_property - def settings(self) -> SettingsWithStreamingResponse: - return SettingsWithStreamingResponse(self._universal.settings) + def settings(self) -> SettingsResourceWithStreamingResponse: + return SettingsResourceWithStreamingResponse(self._universal.settings) -class AsyncUniversalWithStreamingResponse: - def __init__(self, universal: AsyncUniversal) -> None: +class AsyncUniversalResourceWithStreamingResponse: + def __init__(self, universal: AsyncUniversalResource) -> None: self._universal = universal @cached_property - def settings(self) -> AsyncSettingsWithStreamingResponse: - return AsyncSettingsWithStreamingResponse(self._universal.settings) + def settings(self) -> AsyncSettingsResourceWithStreamingResponse: + return AsyncSettingsResourceWithStreamingResponse(self._universal.settings) diff --git a/src/cloudflare/resources/storage/__init__.py b/src/cloudflare/resources/storage/__init__.py index d9d5283925f..9c22eb0dc9e 100644 --- a/src/cloudflare/resources/storage/__init__.py +++ b/src/cloudflare/resources/storage/__init__.py @@ -1,33 +1,33 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from .storage import ( - Storage, - AsyncStorage, - StorageWithRawResponse, - AsyncStorageWithRawResponse, - StorageWithStreamingResponse, - AsyncStorageWithStreamingResponse, + StorageResource, + AsyncStorageResource, + StorageResourceWithRawResponse, + AsyncStorageResourceWithRawResponse, + StorageResourceWithStreamingResponse, + AsyncStorageResourceWithStreamingResponse, ) from .analytics import ( - Analytics, - AsyncAnalytics, - AnalyticsWithRawResponse, - AsyncAnalyticsWithRawResponse, - AnalyticsWithStreamingResponse, - AsyncAnalyticsWithStreamingResponse, + AnalyticsResource, + AsyncAnalyticsResource, + AnalyticsResourceWithRawResponse, + AsyncAnalyticsResourceWithRawResponse, + AnalyticsResourceWithStreamingResponse, + AsyncAnalyticsResourceWithStreamingResponse, ) __all__ = [ - "Analytics", - "AsyncAnalytics", - "AnalyticsWithRawResponse", - "AsyncAnalyticsWithRawResponse", - "AnalyticsWithStreamingResponse", - "AsyncAnalyticsWithStreamingResponse", - "Storage", - "AsyncStorage", - "StorageWithRawResponse", - "AsyncStorageWithRawResponse", - "StorageWithStreamingResponse", - "AsyncStorageWithStreamingResponse", + "AnalyticsResource", + "AsyncAnalyticsResource", + "AnalyticsResourceWithRawResponse", + "AsyncAnalyticsResourceWithRawResponse", + "AnalyticsResourceWithStreamingResponse", + "AsyncAnalyticsResourceWithStreamingResponse", + "StorageResource", + "AsyncStorageResource", + "StorageResourceWithRawResponse", + "AsyncStorageResourceWithRawResponse", + "StorageResourceWithStreamingResponse", + "AsyncStorageResourceWithStreamingResponse", ] diff --git a/src/cloudflare/resources/storage/analytics.py b/src/cloudflare/resources/storage/analytics.py index da6734a135d..9a0621a4f2c 100644 --- a/src/cloudflare/resources/storage/analytics.py +++ b/src/cloudflare/resources/storage/analytics.py @@ -27,17 +27,17 @@ from ...types.storage.schema import Schema from ...types.storage.components import Components -__all__ = ["Analytics", "AsyncAnalytics"] +__all__ = ["AnalyticsResource", "AsyncAnalyticsResource"] -class Analytics(SyncAPIResource): +class AnalyticsResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> AnalyticsWithRawResponse: - return AnalyticsWithRawResponse(self) + def with_raw_response(self) -> AnalyticsResourceWithRawResponse: + return AnalyticsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AnalyticsWithStreamingResponse: - return AnalyticsWithStreamingResponse(self) + def with_streaming_response(self) -> AnalyticsResourceWithStreamingResponse: + return AnalyticsResourceWithStreamingResponse(self) def list( self, @@ -126,14 +126,14 @@ def stored( ) -class AsyncAnalytics(AsyncAPIResource): +class AsyncAnalyticsResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncAnalyticsWithRawResponse: - return AsyncAnalyticsWithRawResponse(self) + def with_raw_response(self) -> AsyncAnalyticsResourceWithRawResponse: + return AsyncAnalyticsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncAnalyticsWithStreamingResponse: - return AsyncAnalyticsWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncAnalyticsResourceWithStreamingResponse: + return AsyncAnalyticsResourceWithStreamingResponse(self) async def list( self, @@ -222,8 +222,8 @@ async def stored( ) -class AnalyticsWithRawResponse: - def __init__(self, analytics: Analytics) -> None: +class AnalyticsResourceWithRawResponse: + def __init__(self, analytics: AnalyticsResource) -> None: self._analytics = analytics self.list = to_raw_response_wrapper( @@ -234,8 +234,8 @@ def __init__(self, analytics: Analytics) -> None: ) -class AsyncAnalyticsWithRawResponse: - def __init__(self, analytics: AsyncAnalytics) -> None: +class AsyncAnalyticsResourceWithRawResponse: + def __init__(self, analytics: AsyncAnalyticsResource) -> None: self._analytics = analytics self.list = async_to_raw_response_wrapper( @@ -246,8 +246,8 @@ def __init__(self, analytics: AsyncAnalytics) -> None: ) -class AnalyticsWithStreamingResponse: - def __init__(self, analytics: Analytics) -> None: +class AnalyticsResourceWithStreamingResponse: + def __init__(self, analytics: AnalyticsResource) -> None: self._analytics = analytics self.list = to_streamed_response_wrapper( @@ -258,8 +258,8 @@ def __init__(self, analytics: Analytics) -> None: ) -class AsyncAnalyticsWithStreamingResponse: - def __init__(self, analytics: AsyncAnalytics) -> None: +class AsyncAnalyticsResourceWithStreamingResponse: + def __init__(self, analytics: AsyncAnalyticsResource) -> None: self._analytics = analytics self.list = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/storage/storage.py b/src/cloudflare/resources/storage/storage.py index 7a7b4be0a33..29fac0d0f7a 100644 --- a/src/cloudflare/resources/storage/storage.py +++ b/src/cloudflare/resources/storage/storage.py @@ -4,77 +4,77 @@ from ..._compat import cached_property from .analytics import ( - Analytics, - AsyncAnalytics, - AnalyticsWithRawResponse, - AsyncAnalyticsWithRawResponse, - AnalyticsWithStreamingResponse, - AsyncAnalyticsWithStreamingResponse, + AnalyticsResource, + AsyncAnalyticsResource, + AnalyticsResourceWithRawResponse, + AsyncAnalyticsResourceWithRawResponse, + AnalyticsResourceWithStreamingResponse, + AsyncAnalyticsResourceWithStreamingResponse, ) from ..._resource import SyncAPIResource, AsyncAPIResource -__all__ = ["Storage", "AsyncStorage"] +__all__ = ["StorageResource", "AsyncStorageResource"] -class Storage(SyncAPIResource): +class StorageResource(SyncAPIResource): @cached_property - def analytics(self) -> Analytics: - return Analytics(self._client) + def analytics(self) -> AnalyticsResource: + return AnalyticsResource(self._client) @cached_property - def with_raw_response(self) -> StorageWithRawResponse: - return StorageWithRawResponse(self) + def with_raw_response(self) -> StorageResourceWithRawResponse: + return StorageResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> StorageWithStreamingResponse: - return StorageWithStreamingResponse(self) + def with_streaming_response(self) -> StorageResourceWithStreamingResponse: + return StorageResourceWithStreamingResponse(self) -class AsyncStorage(AsyncAPIResource): +class AsyncStorageResource(AsyncAPIResource): @cached_property - def analytics(self) -> AsyncAnalytics: - return AsyncAnalytics(self._client) + def analytics(self) -> AsyncAnalyticsResource: + return AsyncAnalyticsResource(self._client) @cached_property - def with_raw_response(self) -> AsyncStorageWithRawResponse: - return AsyncStorageWithRawResponse(self) + def with_raw_response(self) -> AsyncStorageResourceWithRawResponse: + return AsyncStorageResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncStorageWithStreamingResponse: - return AsyncStorageWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncStorageResourceWithStreamingResponse: + return AsyncStorageResourceWithStreamingResponse(self) -class StorageWithRawResponse: - def __init__(self, storage: Storage) -> None: +class StorageResourceWithRawResponse: + def __init__(self, storage: StorageResource) -> None: self._storage = storage @cached_property - def analytics(self) -> AnalyticsWithRawResponse: - return AnalyticsWithRawResponse(self._storage.analytics) + def analytics(self) -> AnalyticsResourceWithRawResponse: + return AnalyticsResourceWithRawResponse(self._storage.analytics) -class AsyncStorageWithRawResponse: - def __init__(self, storage: AsyncStorage) -> None: +class AsyncStorageResourceWithRawResponse: + def __init__(self, storage: AsyncStorageResource) -> None: self._storage = storage @cached_property - def analytics(self) -> AsyncAnalyticsWithRawResponse: - return AsyncAnalyticsWithRawResponse(self._storage.analytics) + def analytics(self) -> AsyncAnalyticsResourceWithRawResponse: + return AsyncAnalyticsResourceWithRawResponse(self._storage.analytics) -class StorageWithStreamingResponse: - def __init__(self, storage: Storage) -> None: +class StorageResourceWithStreamingResponse: + def __init__(self, storage: StorageResource) -> None: self._storage = storage @cached_property - def analytics(self) -> AnalyticsWithStreamingResponse: - return AnalyticsWithStreamingResponse(self._storage.analytics) + def analytics(self) -> AnalyticsResourceWithStreamingResponse: + return AnalyticsResourceWithStreamingResponse(self._storage.analytics) -class AsyncStorageWithStreamingResponse: - def __init__(self, storage: AsyncStorage) -> None: +class AsyncStorageResourceWithStreamingResponse: + def __init__(self, storage: AsyncStorageResource) -> None: self._storage = storage @cached_property - def analytics(self) -> AsyncAnalyticsWithStreamingResponse: - return AsyncAnalyticsWithStreamingResponse(self._storage.analytics) + def analytics(self) -> AsyncAnalyticsResourceWithStreamingResponse: + return AsyncAnalyticsResourceWithStreamingResponse(self._storage.analytics) diff --git a/src/cloudflare/resources/stream/__init__.py b/src/cloudflare/resources/stream/__init__.py index b2f9920ad15..372e6348d9e 100644 --- a/src/cloudflare/resources/stream/__init__.py +++ b/src/cloudflare/resources/stream/__init__.py @@ -9,193 +9,193 @@ AsyncClipResourceWithStreamingResponse, ) from .copy import ( - Copy, - AsyncCopy, - CopyWithRawResponse, - AsyncCopyWithRawResponse, - CopyWithStreamingResponse, - AsyncCopyWithStreamingResponse, + CopyResource, + AsyncCopyResource, + CopyResourceWithRawResponse, + AsyncCopyResourceWithRawResponse, + CopyResourceWithStreamingResponse, + AsyncCopyResourceWithStreamingResponse, ) from .keys import ( - Keys, - AsyncKeys, - KeysWithRawResponse, - AsyncKeysWithRawResponse, - KeysWithStreamingResponse, - AsyncKeysWithStreamingResponse, + KeysResource, + AsyncKeysResource, + KeysResourceWithRawResponse, + AsyncKeysResourceWithRawResponse, + KeysResourceWithStreamingResponse, + AsyncKeysResourceWithStreamingResponse, ) from .embed import ( - Embed, - AsyncEmbed, - EmbedWithRawResponse, - AsyncEmbedWithRawResponse, - EmbedWithStreamingResponse, - AsyncEmbedWithStreamingResponse, + EmbedResource, + AsyncEmbedResource, + EmbedResourceWithRawResponse, + AsyncEmbedResourceWithRawResponse, + EmbedResourceWithStreamingResponse, + AsyncEmbedResourceWithStreamingResponse, ) from .token import ( - Token, - AsyncToken, - TokenWithRawResponse, - AsyncTokenWithRawResponse, - TokenWithStreamingResponse, - AsyncTokenWithStreamingResponse, + TokenResource, + AsyncTokenResource, + TokenResourceWithRawResponse, + AsyncTokenResourceWithRawResponse, + TokenResourceWithStreamingResponse, + AsyncTokenResourceWithStreamingResponse, ) from .stream import ( - Stream, - AsyncStream, - StreamWithRawResponse, - AsyncStreamWithRawResponse, - StreamWithStreamingResponse, - AsyncStreamWithStreamingResponse, + StreamResource, + AsyncStreamResource, + StreamResourceWithRawResponse, + AsyncStreamResourceWithRawResponse, + StreamResourceWithStreamingResponse, + AsyncStreamResourceWithStreamingResponse, ) from .videos import ( - Videos, - AsyncVideos, - VideosWithRawResponse, - AsyncVideosWithRawResponse, - VideosWithStreamingResponse, - AsyncVideosWithStreamingResponse, + VideosResource, + AsyncVideosResource, + VideosResourceWithRawResponse, + AsyncVideosResourceWithRawResponse, + VideosResourceWithStreamingResponse, + AsyncVideosResourceWithStreamingResponse, ) from .captions import ( - Captions, - AsyncCaptions, - CaptionsWithRawResponse, - AsyncCaptionsWithRawResponse, - CaptionsWithStreamingResponse, - AsyncCaptionsWithStreamingResponse, + CaptionsResource, + AsyncCaptionsResource, + CaptionsResourceWithRawResponse, + AsyncCaptionsResourceWithRawResponse, + CaptionsResourceWithStreamingResponse, + AsyncCaptionsResourceWithStreamingResponse, ) from .webhooks import ( - Webhooks, - AsyncWebhooks, - WebhooksWithRawResponse, - AsyncWebhooksWithRawResponse, - WebhooksWithStreamingResponse, - AsyncWebhooksWithStreamingResponse, + WebhooksResource, + AsyncWebhooksResource, + WebhooksResourceWithRawResponse, + AsyncWebhooksResourceWithRawResponse, + WebhooksResourceWithStreamingResponse, + AsyncWebhooksResourceWithStreamingResponse, ) from .downloads import ( - Downloads, - AsyncDownloads, - DownloadsWithRawResponse, - AsyncDownloadsWithRawResponse, - DownloadsWithStreamingResponse, - AsyncDownloadsWithStreamingResponse, + DownloadsResource, + AsyncDownloadsResource, + DownloadsResourceWithRawResponse, + AsyncDownloadsResourceWithRawResponse, + DownloadsResourceWithStreamingResponse, + AsyncDownloadsResourceWithStreamingResponse, ) from .watermarks import ( - Watermarks, - AsyncWatermarks, - WatermarksWithRawResponse, - AsyncWatermarksWithRawResponse, - WatermarksWithStreamingResponse, - AsyncWatermarksWithStreamingResponse, + WatermarksResource, + AsyncWatermarksResource, + WatermarksResourceWithRawResponse, + AsyncWatermarksResourceWithRawResponse, + WatermarksResourceWithStreamingResponse, + AsyncWatermarksResourceWithStreamingResponse, ) from .live_inputs import ( - LiveInputs, - AsyncLiveInputs, - LiveInputsWithRawResponse, - AsyncLiveInputsWithRawResponse, - LiveInputsWithStreamingResponse, - AsyncLiveInputsWithStreamingResponse, + LiveInputsResource, + AsyncLiveInputsResource, + LiveInputsResourceWithRawResponse, + AsyncLiveInputsResourceWithRawResponse, + LiveInputsResourceWithStreamingResponse, + AsyncLiveInputsResourceWithStreamingResponse, ) from .audio_tracks import ( - AudioTracks, - AsyncAudioTracks, - AudioTracksWithRawResponse, - AsyncAudioTracksWithRawResponse, - AudioTracksWithStreamingResponse, - AsyncAudioTracksWithStreamingResponse, + AudioTracksResource, + AsyncAudioTracksResource, + AudioTracksResourceWithRawResponse, + AsyncAudioTracksResourceWithRawResponse, + AudioTracksResourceWithStreamingResponse, + AsyncAudioTracksResourceWithStreamingResponse, ) from .direct_upload import ( - DirectUpload, - AsyncDirectUpload, - DirectUploadWithRawResponse, - AsyncDirectUploadWithRawResponse, - DirectUploadWithStreamingResponse, - AsyncDirectUploadWithStreamingResponse, + DirectUploadResource, + AsyncDirectUploadResource, + DirectUploadResourceWithRawResponse, + AsyncDirectUploadResourceWithRawResponse, + DirectUploadResourceWithStreamingResponse, + AsyncDirectUploadResourceWithStreamingResponse, ) __all__ = [ - "AudioTracks", - "AsyncAudioTracks", - "AudioTracksWithRawResponse", - "AsyncAudioTracksWithRawResponse", - "AudioTracksWithStreamingResponse", - "AsyncAudioTracksWithStreamingResponse", - "Videos", - "AsyncVideos", - "VideosWithRawResponse", - "AsyncVideosWithRawResponse", - "VideosWithStreamingResponse", - "AsyncVideosWithStreamingResponse", + "AudioTracksResource", + "AsyncAudioTracksResource", + "AudioTracksResourceWithRawResponse", + "AsyncAudioTracksResourceWithRawResponse", + "AudioTracksResourceWithStreamingResponse", + "AsyncAudioTracksResourceWithStreamingResponse", + "VideosResource", + "AsyncVideosResource", + "VideosResourceWithRawResponse", + "AsyncVideosResourceWithRawResponse", + "VideosResourceWithStreamingResponse", + "AsyncVideosResourceWithStreamingResponse", "ClipResource", "AsyncClipResource", "ClipResourceWithRawResponse", "AsyncClipResourceWithRawResponse", "ClipResourceWithStreamingResponse", "AsyncClipResourceWithStreamingResponse", - "Copy", - "AsyncCopy", - "CopyWithRawResponse", - "AsyncCopyWithRawResponse", - "CopyWithStreamingResponse", - "AsyncCopyWithStreamingResponse", - "DirectUpload", - "AsyncDirectUpload", - "DirectUploadWithRawResponse", - "AsyncDirectUploadWithRawResponse", - "DirectUploadWithStreamingResponse", - "AsyncDirectUploadWithStreamingResponse", - "Keys", - "AsyncKeys", - "KeysWithRawResponse", - "AsyncKeysWithRawResponse", - "KeysWithStreamingResponse", - "AsyncKeysWithStreamingResponse", - "LiveInputs", - "AsyncLiveInputs", - "LiveInputsWithRawResponse", - "AsyncLiveInputsWithRawResponse", - "LiveInputsWithStreamingResponse", - "AsyncLiveInputsWithStreamingResponse", - "Watermarks", - "AsyncWatermarks", - "WatermarksWithRawResponse", - "AsyncWatermarksWithRawResponse", - "WatermarksWithStreamingResponse", - "AsyncWatermarksWithStreamingResponse", - "Webhooks", - "AsyncWebhooks", - "WebhooksWithRawResponse", - "AsyncWebhooksWithRawResponse", - "WebhooksWithStreamingResponse", - "AsyncWebhooksWithStreamingResponse", - "Captions", - "AsyncCaptions", - "CaptionsWithRawResponse", - "AsyncCaptionsWithRawResponse", - "CaptionsWithStreamingResponse", - "AsyncCaptionsWithStreamingResponse", - "Downloads", - "AsyncDownloads", - "DownloadsWithRawResponse", - "AsyncDownloadsWithRawResponse", - "DownloadsWithStreamingResponse", - "AsyncDownloadsWithStreamingResponse", - "Embed", - "AsyncEmbed", - "EmbedWithRawResponse", - "AsyncEmbedWithRawResponse", - "EmbedWithStreamingResponse", - "AsyncEmbedWithStreamingResponse", - "Token", - "AsyncToken", - "TokenWithRawResponse", - "AsyncTokenWithRawResponse", - "TokenWithStreamingResponse", - "AsyncTokenWithStreamingResponse", - "Stream", - "AsyncStream", - "StreamWithRawResponse", - "AsyncStreamWithRawResponse", - "StreamWithStreamingResponse", - "AsyncStreamWithStreamingResponse", + "CopyResource", + "AsyncCopyResource", + "CopyResourceWithRawResponse", + "AsyncCopyResourceWithRawResponse", + "CopyResourceWithStreamingResponse", + "AsyncCopyResourceWithStreamingResponse", + "DirectUploadResource", + "AsyncDirectUploadResource", + "DirectUploadResourceWithRawResponse", + "AsyncDirectUploadResourceWithRawResponse", + "DirectUploadResourceWithStreamingResponse", + "AsyncDirectUploadResourceWithStreamingResponse", + "KeysResource", + "AsyncKeysResource", + "KeysResourceWithRawResponse", + "AsyncKeysResourceWithRawResponse", + "KeysResourceWithStreamingResponse", + "AsyncKeysResourceWithStreamingResponse", + "LiveInputsResource", + "AsyncLiveInputsResource", + "LiveInputsResourceWithRawResponse", + "AsyncLiveInputsResourceWithRawResponse", + "LiveInputsResourceWithStreamingResponse", + "AsyncLiveInputsResourceWithStreamingResponse", + "WatermarksResource", + "AsyncWatermarksResource", + "WatermarksResourceWithRawResponse", + "AsyncWatermarksResourceWithRawResponse", + "WatermarksResourceWithStreamingResponse", + "AsyncWatermarksResourceWithStreamingResponse", + "WebhooksResource", + "AsyncWebhooksResource", + "WebhooksResourceWithRawResponse", + "AsyncWebhooksResourceWithRawResponse", + "WebhooksResourceWithStreamingResponse", + "AsyncWebhooksResourceWithStreamingResponse", + "CaptionsResource", + "AsyncCaptionsResource", + "CaptionsResourceWithRawResponse", + "AsyncCaptionsResourceWithRawResponse", + "CaptionsResourceWithStreamingResponse", + "AsyncCaptionsResourceWithStreamingResponse", + "DownloadsResource", + "AsyncDownloadsResource", + "DownloadsResourceWithRawResponse", + "AsyncDownloadsResourceWithRawResponse", + "DownloadsResourceWithStreamingResponse", + "AsyncDownloadsResourceWithStreamingResponse", + "EmbedResource", + "AsyncEmbedResource", + "EmbedResourceWithRawResponse", + "AsyncEmbedResourceWithRawResponse", + "EmbedResourceWithStreamingResponse", + "AsyncEmbedResourceWithStreamingResponse", + "TokenResource", + "AsyncTokenResource", + "TokenResourceWithRawResponse", + "AsyncTokenResourceWithRawResponse", + "TokenResourceWithStreamingResponse", + "AsyncTokenResourceWithStreamingResponse", + "StreamResource", + "AsyncStreamResource", + "StreamResourceWithRawResponse", + "AsyncStreamResourceWithRawResponse", + "StreamResourceWithStreamingResponse", + "AsyncStreamResourceWithStreamingResponse", ] diff --git a/src/cloudflare/resources/stream/audio_tracks.py b/src/cloudflare/resources/stream/audio_tracks.py index 77e48544415..5d61f6567e7 100644 --- a/src/cloudflare/resources/stream/audio_tracks.py +++ b/src/cloudflare/resources/stream/audio_tracks.py @@ -28,17 +28,17 @@ from ...types.stream.audio_track_get_response import AudioTrackGetResponse from ...types.stream.audio_track_delete_response import AudioTrackDeleteResponse -__all__ = ["AudioTracks", "AsyncAudioTracks"] +__all__ = ["AudioTracksResource", "AsyncAudioTracksResource"] -class AudioTracks(SyncAPIResource): +class AudioTracksResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> AudioTracksWithRawResponse: - return AudioTracksWithRawResponse(self) + def with_raw_response(self) -> AudioTracksResourceWithRawResponse: + return AudioTracksResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AudioTracksWithStreamingResponse: - return AudioTracksWithStreamingResponse(self) + def with_streaming_response(self) -> AudioTracksResourceWithStreamingResponse: + return AudioTracksResourceWithStreamingResponse(self) def delete( self, @@ -269,14 +269,14 @@ def get( ) -class AsyncAudioTracks(AsyncAPIResource): +class AsyncAudioTracksResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncAudioTracksWithRawResponse: - return AsyncAudioTracksWithRawResponse(self) + def with_raw_response(self) -> AsyncAudioTracksResourceWithRawResponse: + return AsyncAudioTracksResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncAudioTracksWithStreamingResponse: - return AsyncAudioTracksWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncAudioTracksResourceWithStreamingResponse: + return AsyncAudioTracksResourceWithStreamingResponse(self) async def delete( self, @@ -507,8 +507,8 @@ async def get( ) -class AudioTracksWithRawResponse: - def __init__(self, audio_tracks: AudioTracks) -> None: +class AudioTracksResourceWithRawResponse: + def __init__(self, audio_tracks: AudioTracksResource) -> None: self._audio_tracks = audio_tracks self.delete = to_raw_response_wrapper( @@ -525,8 +525,8 @@ def __init__(self, audio_tracks: AudioTracks) -> None: ) -class AsyncAudioTracksWithRawResponse: - def __init__(self, audio_tracks: AsyncAudioTracks) -> None: +class AsyncAudioTracksResourceWithRawResponse: + def __init__(self, audio_tracks: AsyncAudioTracksResource) -> None: self._audio_tracks = audio_tracks self.delete = async_to_raw_response_wrapper( @@ -543,8 +543,8 @@ def __init__(self, audio_tracks: AsyncAudioTracks) -> None: ) -class AudioTracksWithStreamingResponse: - def __init__(self, audio_tracks: AudioTracks) -> None: +class AudioTracksResourceWithStreamingResponse: + def __init__(self, audio_tracks: AudioTracksResource) -> None: self._audio_tracks = audio_tracks self.delete = to_streamed_response_wrapper( @@ -561,8 +561,8 @@ def __init__(self, audio_tracks: AudioTracks) -> None: ) -class AsyncAudioTracksWithStreamingResponse: - def __init__(self, audio_tracks: AsyncAudioTracks) -> None: +class AsyncAudioTracksResourceWithStreamingResponse: + def __init__(self, audio_tracks: AsyncAudioTracksResource) -> None: self._audio_tracks = audio_tracks self.delete = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/stream/captions/__init__.py b/src/cloudflare/resources/stream/captions/__init__.py index 837b74732bc..468a1af73d7 100644 --- a/src/cloudflare/resources/stream/captions/__init__.py +++ b/src/cloudflare/resources/stream/captions/__init__.py @@ -1,33 +1,33 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from .captions import ( - Captions, - AsyncCaptions, - CaptionsWithRawResponse, - AsyncCaptionsWithRawResponse, - CaptionsWithStreamingResponse, - AsyncCaptionsWithStreamingResponse, + CaptionsResource, + AsyncCaptionsResource, + CaptionsResourceWithRawResponse, + AsyncCaptionsResourceWithRawResponse, + CaptionsResourceWithStreamingResponse, + AsyncCaptionsResourceWithStreamingResponse, ) from .language import ( - Language, - AsyncLanguage, - LanguageWithRawResponse, - AsyncLanguageWithRawResponse, - LanguageWithStreamingResponse, - AsyncLanguageWithStreamingResponse, + LanguageResource, + AsyncLanguageResource, + LanguageResourceWithRawResponse, + AsyncLanguageResourceWithRawResponse, + LanguageResourceWithStreamingResponse, + AsyncLanguageResourceWithStreamingResponse, ) __all__ = [ - "Language", - "AsyncLanguage", - "LanguageWithRawResponse", - "AsyncLanguageWithRawResponse", - "LanguageWithStreamingResponse", - "AsyncLanguageWithStreamingResponse", - "Captions", - "AsyncCaptions", - "CaptionsWithRawResponse", - "AsyncCaptionsWithRawResponse", - "CaptionsWithStreamingResponse", - "AsyncCaptionsWithStreamingResponse", + "LanguageResource", + "AsyncLanguageResource", + "LanguageResourceWithRawResponse", + "AsyncLanguageResourceWithRawResponse", + "LanguageResourceWithStreamingResponse", + "AsyncLanguageResourceWithStreamingResponse", + "CaptionsResource", + "AsyncCaptionsResource", + "CaptionsResourceWithRawResponse", + "AsyncCaptionsResourceWithRawResponse", + "CaptionsResourceWithStreamingResponse", + "AsyncCaptionsResourceWithStreamingResponse", ] diff --git a/src/cloudflare/resources/stream/captions/captions.py b/src/cloudflare/resources/stream/captions/captions.py index 8b69f48e3e5..516845ba8d0 100644 --- a/src/cloudflare/resources/stream/captions/captions.py +++ b/src/cloudflare/resources/stream/captions/captions.py @@ -7,12 +7,12 @@ import httpx from .language import ( - Language, - AsyncLanguage, - LanguageWithRawResponse, - AsyncLanguageWithRawResponse, - LanguageWithStreamingResponse, - AsyncLanguageWithStreamingResponse, + LanguageResource, + AsyncLanguageResource, + LanguageResourceWithRawResponse, + AsyncLanguageResourceWithRawResponse, + LanguageResourceWithStreamingResponse, + AsyncLanguageResourceWithStreamingResponse, ) from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven from ...._compat import cached_property @@ -27,24 +27,24 @@ from ...._base_client import ( make_request_options, ) -from .language.language import Language, AsyncLanguage +from .language.language import LanguageResource, AsyncLanguageResource from ....types.stream.caption_get_response import CaptionGetResponse -__all__ = ["Captions", "AsyncCaptions"] +__all__ = ["CaptionsResource", "AsyncCaptionsResource"] -class Captions(SyncAPIResource): +class CaptionsResource(SyncAPIResource): @cached_property - def language(self) -> Language: - return Language(self._client) + def language(self) -> LanguageResource: + return LanguageResource(self._client) @cached_property - def with_raw_response(self) -> CaptionsWithRawResponse: - return CaptionsWithRawResponse(self) + def with_raw_response(self) -> CaptionsResourceWithRawResponse: + return CaptionsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> CaptionsWithStreamingResponse: - return CaptionsWithStreamingResponse(self) + def with_streaming_response(self) -> CaptionsResourceWithStreamingResponse: + return CaptionsResourceWithStreamingResponse(self) def get( self, @@ -91,18 +91,18 @@ def get( ) -class AsyncCaptions(AsyncAPIResource): +class AsyncCaptionsResource(AsyncAPIResource): @cached_property - def language(self) -> AsyncLanguage: - return AsyncLanguage(self._client) + def language(self) -> AsyncLanguageResource: + return AsyncLanguageResource(self._client) @cached_property - def with_raw_response(self) -> AsyncCaptionsWithRawResponse: - return AsyncCaptionsWithRawResponse(self) + def with_raw_response(self) -> AsyncCaptionsResourceWithRawResponse: + return AsyncCaptionsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncCaptionsWithStreamingResponse: - return AsyncCaptionsWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncCaptionsResourceWithStreamingResponse: + return AsyncCaptionsResourceWithStreamingResponse(self) async def get( self, @@ -149,8 +149,8 @@ async def get( ) -class CaptionsWithRawResponse: - def __init__(self, captions: Captions) -> None: +class CaptionsResourceWithRawResponse: + def __init__(self, captions: CaptionsResource) -> None: self._captions = captions self.get = to_raw_response_wrapper( @@ -158,12 +158,12 @@ def __init__(self, captions: Captions) -> None: ) @cached_property - def language(self) -> LanguageWithRawResponse: - return LanguageWithRawResponse(self._captions.language) + def language(self) -> LanguageResourceWithRawResponse: + return LanguageResourceWithRawResponse(self._captions.language) -class AsyncCaptionsWithRawResponse: - def __init__(self, captions: AsyncCaptions) -> None: +class AsyncCaptionsResourceWithRawResponse: + def __init__(self, captions: AsyncCaptionsResource) -> None: self._captions = captions self.get = async_to_raw_response_wrapper( @@ -171,12 +171,12 @@ def __init__(self, captions: AsyncCaptions) -> None: ) @cached_property - def language(self) -> AsyncLanguageWithRawResponse: - return AsyncLanguageWithRawResponse(self._captions.language) + def language(self) -> AsyncLanguageResourceWithRawResponse: + return AsyncLanguageResourceWithRawResponse(self._captions.language) -class CaptionsWithStreamingResponse: - def __init__(self, captions: Captions) -> None: +class CaptionsResourceWithStreamingResponse: + def __init__(self, captions: CaptionsResource) -> None: self._captions = captions self.get = to_streamed_response_wrapper( @@ -184,12 +184,12 @@ def __init__(self, captions: Captions) -> None: ) @cached_property - def language(self) -> LanguageWithStreamingResponse: - return LanguageWithStreamingResponse(self._captions.language) + def language(self) -> LanguageResourceWithStreamingResponse: + return LanguageResourceWithStreamingResponse(self._captions.language) -class AsyncCaptionsWithStreamingResponse: - def __init__(self, captions: AsyncCaptions) -> None: +class AsyncCaptionsResourceWithStreamingResponse: + def __init__(self, captions: AsyncCaptionsResource) -> None: self._captions = captions self.get = async_to_streamed_response_wrapper( @@ -197,5 +197,5 @@ def __init__(self, captions: AsyncCaptions) -> None: ) @cached_property - def language(self) -> AsyncLanguageWithStreamingResponse: - return AsyncLanguageWithStreamingResponse(self._captions.language) + def language(self) -> AsyncLanguageResourceWithStreamingResponse: + return AsyncLanguageResourceWithStreamingResponse(self._captions.language) diff --git a/src/cloudflare/resources/stream/captions/language/__init__.py b/src/cloudflare/resources/stream/captions/language/__init__.py index eab80923178..8780a9b70d8 100644 --- a/src/cloudflare/resources/stream/captions/language/__init__.py +++ b/src/cloudflare/resources/stream/captions/language/__init__.py @@ -1,33 +1,33 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from .vtt import ( - Vtt, - AsyncVtt, - VttWithRawResponse, - AsyncVttWithRawResponse, - VttWithStreamingResponse, - AsyncVttWithStreamingResponse, + VttResource, + AsyncVttResource, + VttResourceWithRawResponse, + AsyncVttResourceWithRawResponse, + VttResourceWithStreamingResponse, + AsyncVttResourceWithStreamingResponse, ) from .language import ( - Language, - AsyncLanguage, - LanguageWithRawResponse, - AsyncLanguageWithRawResponse, - LanguageWithStreamingResponse, - AsyncLanguageWithStreamingResponse, + LanguageResource, + AsyncLanguageResource, + LanguageResourceWithRawResponse, + AsyncLanguageResourceWithRawResponse, + LanguageResourceWithStreamingResponse, + AsyncLanguageResourceWithStreamingResponse, ) __all__ = [ - "Vtt", - "AsyncVtt", - "VttWithRawResponse", - "AsyncVttWithRawResponse", - "VttWithStreamingResponse", - "AsyncVttWithStreamingResponse", - "Language", - "AsyncLanguage", - "LanguageWithRawResponse", - "AsyncLanguageWithRawResponse", - "LanguageWithStreamingResponse", - "AsyncLanguageWithStreamingResponse", + "VttResource", + "AsyncVttResource", + "VttResourceWithRawResponse", + "AsyncVttResourceWithRawResponse", + "VttResourceWithStreamingResponse", + "AsyncVttResourceWithStreamingResponse", + "LanguageResource", + "AsyncLanguageResource", + "LanguageResourceWithRawResponse", + "AsyncLanguageResourceWithRawResponse", + "LanguageResourceWithStreamingResponse", + "AsyncLanguageResourceWithStreamingResponse", ] diff --git a/src/cloudflare/resources/stream/captions/language/language.py b/src/cloudflare/resources/stream/captions/language/language.py index 7ef38418e82..67482e4a9a7 100644 --- a/src/cloudflare/resources/stream/captions/language/language.py +++ b/src/cloudflare/resources/stream/captions/language/language.py @@ -7,12 +7,12 @@ import httpx from .vtt import ( - Vtt, - AsyncVtt, - VttWithRawResponse, - AsyncVttWithRawResponse, - VttWithStreamingResponse, - AsyncVttWithStreamingResponse, + VttResource, + AsyncVttResource, + VttResourceWithRawResponse, + AsyncVttResourceWithRawResponse, + VttResourceWithStreamingResponse, + AsyncVttResourceWithStreamingResponse, ) from ....._types import NOT_GIVEN, Body, Query, Headers, NotGiven from ....._utils import ( @@ -35,21 +35,21 @@ from .....types.stream.captions import language_delete_params, language_update_params from .....types.stream.captions.language_delete_response import LanguageDeleteResponse -__all__ = ["Language", "AsyncLanguage"] +__all__ = ["LanguageResource", "AsyncLanguageResource"] -class Language(SyncAPIResource): +class LanguageResource(SyncAPIResource): @cached_property - def vtt(self) -> Vtt: - return Vtt(self._client) + def vtt(self) -> VttResource: + return VttResource(self._client) @cached_property - def with_raw_response(self) -> LanguageWithRawResponse: - return LanguageWithRawResponse(self) + def with_raw_response(self) -> LanguageResourceWithRawResponse: + return LanguageResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> LanguageWithStreamingResponse: - return LanguageWithStreamingResponse(self) + def with_streaming_response(self) -> LanguageResourceWithStreamingResponse: + return LanguageResourceWithStreamingResponse(self) def update( self, @@ -206,18 +206,18 @@ def get( ) -class AsyncLanguage(AsyncAPIResource): +class AsyncLanguageResource(AsyncAPIResource): @cached_property - def vtt(self) -> AsyncVtt: - return AsyncVtt(self._client) + def vtt(self) -> AsyncVttResource: + return AsyncVttResource(self._client) @cached_property - def with_raw_response(self) -> AsyncLanguageWithRawResponse: - return AsyncLanguageWithRawResponse(self) + def with_raw_response(self) -> AsyncLanguageResourceWithRawResponse: + return AsyncLanguageResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncLanguageWithStreamingResponse: - return AsyncLanguageWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncLanguageResourceWithStreamingResponse: + return AsyncLanguageResourceWithStreamingResponse(self) async def update( self, @@ -374,8 +374,8 @@ async def get( ) -class LanguageWithRawResponse: - def __init__(self, language: Language) -> None: +class LanguageResourceWithRawResponse: + def __init__(self, language: LanguageResource) -> None: self._language = language self.update = to_raw_response_wrapper( @@ -389,12 +389,12 @@ def __init__(self, language: Language) -> None: ) @cached_property - def vtt(self) -> VttWithRawResponse: - return VttWithRawResponse(self._language.vtt) + def vtt(self) -> VttResourceWithRawResponse: + return VttResourceWithRawResponse(self._language.vtt) -class AsyncLanguageWithRawResponse: - def __init__(self, language: AsyncLanguage) -> None: +class AsyncLanguageResourceWithRawResponse: + def __init__(self, language: AsyncLanguageResource) -> None: self._language = language self.update = async_to_raw_response_wrapper( @@ -408,12 +408,12 @@ def __init__(self, language: AsyncLanguage) -> None: ) @cached_property - def vtt(self) -> AsyncVttWithRawResponse: - return AsyncVttWithRawResponse(self._language.vtt) + def vtt(self) -> AsyncVttResourceWithRawResponse: + return AsyncVttResourceWithRawResponse(self._language.vtt) -class LanguageWithStreamingResponse: - def __init__(self, language: Language) -> None: +class LanguageResourceWithStreamingResponse: + def __init__(self, language: LanguageResource) -> None: self._language = language self.update = to_streamed_response_wrapper( @@ -427,12 +427,12 @@ def __init__(self, language: Language) -> None: ) @cached_property - def vtt(self) -> VttWithStreamingResponse: - return VttWithStreamingResponse(self._language.vtt) + def vtt(self) -> VttResourceWithStreamingResponse: + return VttResourceWithStreamingResponse(self._language.vtt) -class AsyncLanguageWithStreamingResponse: - def __init__(self, language: AsyncLanguage) -> None: +class AsyncLanguageResourceWithStreamingResponse: + def __init__(self, language: AsyncLanguageResource) -> None: self._language = language self.update = async_to_streamed_response_wrapper( @@ -446,5 +446,5 @@ def __init__(self, language: AsyncLanguage) -> None: ) @cached_property - def vtt(self) -> AsyncVttWithStreamingResponse: - return AsyncVttWithStreamingResponse(self._language.vtt) + def vtt(self) -> AsyncVttResourceWithStreamingResponse: + return AsyncVttResourceWithStreamingResponse(self._language.vtt) diff --git a/src/cloudflare/resources/stream/captions/language/vtt.py b/src/cloudflare/resources/stream/captions/language/vtt.py index 28472ef57ef..3136e929c75 100644 --- a/src/cloudflare/resources/stream/captions/language/vtt.py +++ b/src/cloudflare/resources/stream/captions/language/vtt.py @@ -17,17 +17,17 @@ make_request_options, ) -__all__ = ["Vtt", "AsyncVtt"] +__all__ = ["VttResource", "AsyncVttResource"] -class Vtt(SyncAPIResource): +class VttResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> VttWithRawResponse: - return VttWithRawResponse(self) + def with_raw_response(self) -> VttResourceWithRawResponse: + return VttResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> VttWithStreamingResponse: - return VttWithStreamingResponse(self) + def with_streaming_response(self) -> VttResourceWithStreamingResponse: + return VttResourceWithStreamingResponse(self) def get( self, @@ -76,14 +76,14 @@ def get( ) -class AsyncVtt(AsyncAPIResource): +class AsyncVttResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncVttWithRawResponse: - return AsyncVttWithRawResponse(self) + def with_raw_response(self) -> AsyncVttResourceWithRawResponse: + return AsyncVttResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncVttWithStreamingResponse: - return AsyncVttWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncVttResourceWithStreamingResponse: + return AsyncVttResourceWithStreamingResponse(self) async def get( self, @@ -132,8 +132,8 @@ async def get( ) -class VttWithRawResponse: - def __init__(self, vtt: Vtt) -> None: +class VttResourceWithRawResponse: + def __init__(self, vtt: VttResource) -> None: self._vtt = vtt self.get = to_raw_response_wrapper( @@ -141,8 +141,8 @@ def __init__(self, vtt: Vtt) -> None: ) -class AsyncVttWithRawResponse: - def __init__(self, vtt: AsyncVtt) -> None: +class AsyncVttResourceWithRawResponse: + def __init__(self, vtt: AsyncVttResource) -> None: self._vtt = vtt self.get = async_to_raw_response_wrapper( @@ -150,8 +150,8 @@ def __init__(self, vtt: AsyncVtt) -> None: ) -class VttWithStreamingResponse: - def __init__(self, vtt: Vtt) -> None: +class VttResourceWithStreamingResponse: + def __init__(self, vtt: VttResource) -> None: self._vtt = vtt self.get = to_streamed_response_wrapper( @@ -159,8 +159,8 @@ def __init__(self, vtt: Vtt) -> None: ) -class AsyncVttWithStreamingResponse: - def __init__(self, vtt: AsyncVtt) -> None: +class AsyncVttResourceWithStreamingResponse: + def __init__(self, vtt: AsyncVttResource) -> None: self._vtt = vtt self.get = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/stream/copy.py b/src/cloudflare/resources/stream/copy.py index 16c1e796ec2..426b93d4b48 100644 --- a/src/cloudflare/resources/stream/copy.py +++ b/src/cloudflare/resources/stream/copy.py @@ -28,17 +28,17 @@ from ...types.stream.video import Video from ...types.stream.allowed_origins import AllowedOrigins -__all__ = ["Copy", "AsyncCopy"] +__all__ = ["CopyResource", "AsyncCopyResource"] -class Copy(SyncAPIResource): +class CopyResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> CopyWithRawResponse: - return CopyWithRawResponse(self) + def with_raw_response(self) -> CopyResourceWithRawResponse: + return CopyResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> CopyWithStreamingResponse: - return CopyWithStreamingResponse(self) + def with_streaming_response(self) -> CopyResourceWithStreamingResponse: + return CopyResourceWithStreamingResponse(self) def create( self, @@ -126,14 +126,14 @@ def create( ) -class AsyncCopy(AsyncAPIResource): +class AsyncCopyResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncCopyWithRawResponse: - return AsyncCopyWithRawResponse(self) + def with_raw_response(self) -> AsyncCopyResourceWithRawResponse: + return AsyncCopyResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncCopyWithStreamingResponse: - return AsyncCopyWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncCopyResourceWithStreamingResponse: + return AsyncCopyResourceWithStreamingResponse(self) async def create( self, @@ -221,8 +221,8 @@ async def create( ) -class CopyWithRawResponse: - def __init__(self, copy: Copy) -> None: +class CopyResourceWithRawResponse: + def __init__(self, copy: CopyResource) -> None: self._copy = copy self.create = to_raw_response_wrapper( @@ -230,8 +230,8 @@ def __init__(self, copy: Copy) -> None: ) -class AsyncCopyWithRawResponse: - def __init__(self, copy: AsyncCopy) -> None: +class AsyncCopyResourceWithRawResponse: + def __init__(self, copy: AsyncCopyResource) -> None: self._copy = copy self.create = async_to_raw_response_wrapper( @@ -239,8 +239,8 @@ def __init__(self, copy: AsyncCopy) -> None: ) -class CopyWithStreamingResponse: - def __init__(self, copy: Copy) -> None: +class CopyResourceWithStreamingResponse: + def __init__(self, copy: CopyResource) -> None: self._copy = copy self.create = to_streamed_response_wrapper( @@ -248,8 +248,8 @@ def __init__(self, copy: Copy) -> None: ) -class AsyncCopyWithStreamingResponse: - def __init__(self, copy: AsyncCopy) -> None: +class AsyncCopyResourceWithStreamingResponse: + def __init__(self, copy: AsyncCopyResource) -> None: self._copy = copy self.create = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/stream/direct_upload.py b/src/cloudflare/resources/stream/direct_upload.py index 1bedca2a14a..de337332a8c 100644 --- a/src/cloudflare/resources/stream/direct_upload.py +++ b/src/cloudflare/resources/stream/direct_upload.py @@ -28,17 +28,17 @@ from ...types.stream.allowed_origins import AllowedOrigins from ...types.stream.direct_upload_create_response import DirectUploadCreateResponse -__all__ = ["DirectUpload", "AsyncDirectUpload"] +__all__ = ["DirectUploadResource", "AsyncDirectUploadResource"] -class DirectUpload(SyncAPIResource): +class DirectUploadResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> DirectUploadWithRawResponse: - return DirectUploadWithRawResponse(self) + def with_raw_response(self) -> DirectUploadResourceWithRawResponse: + return DirectUploadResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> DirectUploadWithStreamingResponse: - return DirectUploadWithStreamingResponse(self) + def with_streaming_response(self) -> DirectUploadResourceWithStreamingResponse: + return DirectUploadResourceWithStreamingResponse(self) def create( self, @@ -131,14 +131,14 @@ def create( ) -class AsyncDirectUpload(AsyncAPIResource): +class AsyncDirectUploadResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncDirectUploadWithRawResponse: - return AsyncDirectUploadWithRawResponse(self) + def with_raw_response(self) -> AsyncDirectUploadResourceWithRawResponse: + return AsyncDirectUploadResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncDirectUploadWithStreamingResponse: - return AsyncDirectUploadWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncDirectUploadResourceWithStreamingResponse: + return AsyncDirectUploadResourceWithStreamingResponse(self) async def create( self, @@ -231,8 +231,8 @@ async def create( ) -class DirectUploadWithRawResponse: - def __init__(self, direct_upload: DirectUpload) -> None: +class DirectUploadResourceWithRawResponse: + def __init__(self, direct_upload: DirectUploadResource) -> None: self._direct_upload = direct_upload self.create = to_raw_response_wrapper( @@ -240,8 +240,8 @@ def __init__(self, direct_upload: DirectUpload) -> None: ) -class AsyncDirectUploadWithRawResponse: - def __init__(self, direct_upload: AsyncDirectUpload) -> None: +class AsyncDirectUploadResourceWithRawResponse: + def __init__(self, direct_upload: AsyncDirectUploadResource) -> None: self._direct_upload = direct_upload self.create = async_to_raw_response_wrapper( @@ -249,8 +249,8 @@ def __init__(self, direct_upload: AsyncDirectUpload) -> None: ) -class DirectUploadWithStreamingResponse: - def __init__(self, direct_upload: DirectUpload) -> None: +class DirectUploadResourceWithStreamingResponse: + def __init__(self, direct_upload: DirectUploadResource) -> None: self._direct_upload = direct_upload self.create = to_streamed_response_wrapper( @@ -258,8 +258,8 @@ def __init__(self, direct_upload: DirectUpload) -> None: ) -class AsyncDirectUploadWithStreamingResponse: - def __init__(self, direct_upload: AsyncDirectUpload) -> None: +class AsyncDirectUploadResourceWithStreamingResponse: + def __init__(self, direct_upload: AsyncDirectUploadResource) -> None: self._direct_upload = direct_upload self.create = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/stream/downloads.py b/src/cloudflare/resources/stream/downloads.py index 386f5695ff2..531b646b1bc 100644 --- a/src/cloudflare/resources/stream/downloads.py +++ b/src/cloudflare/resources/stream/downloads.py @@ -28,17 +28,17 @@ from ...types.stream.download_create_response import DownloadCreateResponse from ...types.stream.download_delete_response import DownloadDeleteResponse -__all__ = ["Downloads", "AsyncDownloads"] +__all__ = ["DownloadsResource", "AsyncDownloadsResource"] -class Downloads(SyncAPIResource): +class DownloadsResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> DownloadsWithRawResponse: - return DownloadsWithRawResponse(self) + def with_raw_response(self) -> DownloadsResourceWithRawResponse: + return DownloadsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> DownloadsWithStreamingResponse: - return DownloadsWithStreamingResponse(self) + def with_streaming_response(self) -> DownloadsResourceWithStreamingResponse: + return DownloadsResourceWithStreamingResponse(self) def create( self, @@ -190,14 +190,14 @@ def get( ) -class AsyncDownloads(AsyncAPIResource): +class AsyncDownloadsResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncDownloadsWithRawResponse: - return AsyncDownloadsWithRawResponse(self) + def with_raw_response(self) -> AsyncDownloadsResourceWithRawResponse: + return AsyncDownloadsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncDownloadsWithStreamingResponse: - return AsyncDownloadsWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncDownloadsResourceWithStreamingResponse: + return AsyncDownloadsResourceWithStreamingResponse(self) async def create( self, @@ -349,8 +349,8 @@ async def get( ) -class DownloadsWithRawResponse: - def __init__(self, downloads: Downloads) -> None: +class DownloadsResourceWithRawResponse: + def __init__(self, downloads: DownloadsResource) -> None: self._downloads = downloads self.create = to_raw_response_wrapper( @@ -364,8 +364,8 @@ def __init__(self, downloads: Downloads) -> None: ) -class AsyncDownloadsWithRawResponse: - def __init__(self, downloads: AsyncDownloads) -> None: +class AsyncDownloadsResourceWithRawResponse: + def __init__(self, downloads: AsyncDownloadsResource) -> None: self._downloads = downloads self.create = async_to_raw_response_wrapper( @@ -379,8 +379,8 @@ def __init__(self, downloads: AsyncDownloads) -> None: ) -class DownloadsWithStreamingResponse: - def __init__(self, downloads: Downloads) -> None: +class DownloadsResourceWithStreamingResponse: + def __init__(self, downloads: DownloadsResource) -> None: self._downloads = downloads self.create = to_streamed_response_wrapper( @@ -394,8 +394,8 @@ def __init__(self, downloads: Downloads) -> None: ) -class AsyncDownloadsWithStreamingResponse: - def __init__(self, downloads: AsyncDownloads) -> None: +class AsyncDownloadsResourceWithStreamingResponse: + def __init__(self, downloads: AsyncDownloadsResource) -> None: self._downloads = downloads self.create = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/stream/embed.py b/src/cloudflare/resources/stream/embed.py index 67d3590ca5b..4f1dc61f770 100644 --- a/src/cloudflare/resources/stream/embed.py +++ b/src/cloudflare/resources/stream/embed.py @@ -17,17 +17,17 @@ make_request_options, ) -__all__ = ["Embed", "AsyncEmbed"] +__all__ = ["EmbedResource", "AsyncEmbedResource"] -class Embed(SyncAPIResource): +class EmbedResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> EmbedWithRawResponse: - return EmbedWithRawResponse(self) + def with_raw_response(self) -> EmbedResourceWithRawResponse: + return EmbedResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> EmbedWithStreamingResponse: - return EmbedWithStreamingResponse(self) + def with_streaming_response(self) -> EmbedResourceWithStreamingResponse: + return EmbedResourceWithStreamingResponse(self) def get( self, @@ -72,14 +72,14 @@ def get( ) -class AsyncEmbed(AsyncAPIResource): +class AsyncEmbedResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncEmbedWithRawResponse: - return AsyncEmbedWithRawResponse(self) + def with_raw_response(self) -> AsyncEmbedResourceWithRawResponse: + return AsyncEmbedResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncEmbedWithStreamingResponse: - return AsyncEmbedWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncEmbedResourceWithStreamingResponse: + return AsyncEmbedResourceWithStreamingResponse(self) async def get( self, @@ -124,8 +124,8 @@ async def get( ) -class EmbedWithRawResponse: - def __init__(self, embed: Embed) -> None: +class EmbedResourceWithRawResponse: + def __init__(self, embed: EmbedResource) -> None: self._embed = embed self.get = to_raw_response_wrapper( @@ -133,8 +133,8 @@ def __init__(self, embed: Embed) -> None: ) -class AsyncEmbedWithRawResponse: - def __init__(self, embed: AsyncEmbed) -> None: +class AsyncEmbedResourceWithRawResponse: + def __init__(self, embed: AsyncEmbedResource) -> None: self._embed = embed self.get = async_to_raw_response_wrapper( @@ -142,8 +142,8 @@ def __init__(self, embed: AsyncEmbed) -> None: ) -class EmbedWithStreamingResponse: - def __init__(self, embed: Embed) -> None: +class EmbedResourceWithStreamingResponse: + def __init__(self, embed: EmbedResource) -> None: self._embed = embed self.get = to_streamed_response_wrapper( @@ -151,8 +151,8 @@ def __init__(self, embed: Embed) -> None: ) -class AsyncEmbedWithStreamingResponse: - def __init__(self, embed: AsyncEmbed) -> None: +class AsyncEmbedResourceWithStreamingResponse: + def __init__(self, embed: AsyncEmbedResource) -> None: self._embed = embed self.get = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/stream/keys.py b/src/cloudflare/resources/stream/keys.py index 50326e7ad0d..979b687da15 100644 --- a/src/cloudflare/resources/stream/keys.py +++ b/src/cloudflare/resources/stream/keys.py @@ -23,21 +23,22 @@ from ..._base_client import ( make_request_options, ) -from ...types.stream import keys, key_create_params, key_delete_params +from ...types.stream import key_create_params, key_delete_params +from ...types.stream.keys import Keys from ...types.stream.key_get_response import KeyGetResponse from ...types.stream.key_delete_response import KeyDeleteResponse -__all__ = ["Keys", "AsyncKeys"] +__all__ = ["KeysResource", "AsyncKeysResource"] -class Keys(SyncAPIResource): +class KeysResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> KeysWithRawResponse: - return KeysWithRawResponse(self) + def with_raw_response(self) -> KeysResourceWithRawResponse: + return KeysResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> KeysWithStreamingResponse: - return KeysWithStreamingResponse(self) + def with_streaming_response(self) -> KeysResourceWithStreamingResponse: + return KeysResourceWithStreamingResponse(self) def create( self, @@ -50,7 +51,7 @@ def create( extra_query: Query | None = None, extra_body: Body | None = None, timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, - ) -> Optional[keys.Keys]: + ) -> Optional[Keys]: """Creates an RSA private key in PEM and JWK formats. Key files are only displayed @@ -78,9 +79,9 @@ def create( extra_query=extra_query, extra_body=extra_body, timeout=timeout, - post_parser=ResultWrapper[Optional[keys.Keys]]._unwrapper, + post_parser=ResultWrapper[Optional[Keys]]._unwrapper, ), - cast_to=cast(Type[Optional[keys.Keys]], ResultWrapper[keys.Keys]), + cast_to=cast(Type[Optional[Keys]], ResultWrapper[Keys]), ) def delete( @@ -174,14 +175,14 @@ def get( ) -class AsyncKeys(AsyncAPIResource): +class AsyncKeysResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncKeysWithRawResponse: - return AsyncKeysWithRawResponse(self) + def with_raw_response(self) -> AsyncKeysResourceWithRawResponse: + return AsyncKeysResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncKeysWithStreamingResponse: - return AsyncKeysWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncKeysResourceWithStreamingResponse: + return AsyncKeysResourceWithStreamingResponse(self) async def create( self, @@ -194,7 +195,7 @@ async def create( extra_query: Query | None = None, extra_body: Body | None = None, timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, - ) -> Optional[keys.Keys]: + ) -> Optional[Keys]: """Creates an RSA private key in PEM and JWK formats. Key files are only displayed @@ -222,9 +223,9 @@ async def create( extra_query=extra_query, extra_body=extra_body, timeout=timeout, - post_parser=ResultWrapper[Optional[keys.Keys]]._unwrapper, + post_parser=ResultWrapper[Optional[Keys]]._unwrapper, ), - cast_to=cast(Type[Optional[keys.Keys]], ResultWrapper[keys.Keys]), + cast_to=cast(Type[Optional[Keys]], ResultWrapper[Keys]), ) async def delete( @@ -318,8 +319,8 @@ async def get( ) -class KeysWithRawResponse: - def __init__(self, keys: Keys) -> None: +class KeysResourceWithRawResponse: + def __init__(self, keys: KeysResource) -> None: self._keys = keys self.create = to_raw_response_wrapper( @@ -333,8 +334,8 @@ def __init__(self, keys: Keys) -> None: ) -class AsyncKeysWithRawResponse: - def __init__(self, keys: AsyncKeys) -> None: +class AsyncKeysResourceWithRawResponse: + def __init__(self, keys: AsyncKeysResource) -> None: self._keys = keys self.create = async_to_raw_response_wrapper( @@ -348,8 +349,8 @@ def __init__(self, keys: AsyncKeys) -> None: ) -class KeysWithStreamingResponse: - def __init__(self, keys: Keys) -> None: +class KeysResourceWithStreamingResponse: + def __init__(self, keys: KeysResource) -> None: self._keys = keys self.create = to_streamed_response_wrapper( @@ -363,8 +364,8 @@ def __init__(self, keys: Keys) -> None: ) -class AsyncKeysWithStreamingResponse: - def __init__(self, keys: AsyncKeys) -> None: +class AsyncKeysResourceWithStreamingResponse: + def __init__(self, keys: AsyncKeysResource) -> None: self._keys = keys self.create = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/stream/live_inputs/__init__.py b/src/cloudflare/resources/stream/live_inputs/__init__.py index 19fb3ff73f7..427b214e46a 100644 --- a/src/cloudflare/resources/stream/live_inputs/__init__.py +++ b/src/cloudflare/resources/stream/live_inputs/__init__.py @@ -1,33 +1,33 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from .outputs import ( - Outputs, - AsyncOutputs, - OutputsWithRawResponse, - AsyncOutputsWithRawResponse, - OutputsWithStreamingResponse, - AsyncOutputsWithStreamingResponse, + OutputsResource, + AsyncOutputsResource, + OutputsResourceWithRawResponse, + AsyncOutputsResourceWithRawResponse, + OutputsResourceWithStreamingResponse, + AsyncOutputsResourceWithStreamingResponse, ) from .live_inputs import ( - LiveInputs, - AsyncLiveInputs, - LiveInputsWithRawResponse, - AsyncLiveInputsWithRawResponse, - LiveInputsWithStreamingResponse, - AsyncLiveInputsWithStreamingResponse, + LiveInputsResource, + AsyncLiveInputsResource, + LiveInputsResourceWithRawResponse, + AsyncLiveInputsResourceWithRawResponse, + LiveInputsResourceWithStreamingResponse, + AsyncLiveInputsResourceWithStreamingResponse, ) __all__ = [ - "Outputs", - "AsyncOutputs", - "OutputsWithRawResponse", - "AsyncOutputsWithRawResponse", - "OutputsWithStreamingResponse", - "AsyncOutputsWithStreamingResponse", - "LiveInputs", - "AsyncLiveInputs", - "LiveInputsWithRawResponse", - "AsyncLiveInputsWithRawResponse", - "LiveInputsWithStreamingResponse", - "AsyncLiveInputsWithStreamingResponse", + "OutputsResource", + "AsyncOutputsResource", + "OutputsResourceWithRawResponse", + "AsyncOutputsResourceWithRawResponse", + "OutputsResourceWithStreamingResponse", + "AsyncOutputsResourceWithStreamingResponse", + "LiveInputsResource", + "AsyncLiveInputsResource", + "LiveInputsResourceWithRawResponse", + "AsyncLiveInputsResourceWithRawResponse", + "LiveInputsResourceWithStreamingResponse", + "AsyncLiveInputsResourceWithStreamingResponse", ] diff --git a/src/cloudflare/resources/stream/live_inputs/live_inputs.py b/src/cloudflare/resources/stream/live_inputs/live_inputs.py index b44746d2522..23522cf5456 100644 --- a/src/cloudflare/resources/stream/live_inputs/live_inputs.py +++ b/src/cloudflare/resources/stream/live_inputs/live_inputs.py @@ -7,12 +7,12 @@ import httpx from .outputs import ( - Outputs, - AsyncOutputs, - OutputsWithRawResponse, - AsyncOutputsWithRawResponse, - OutputsWithStreamingResponse, - AsyncOutputsWithStreamingResponse, + OutputsResource, + AsyncOutputsResource, + OutputsResourceWithRawResponse, + AsyncOutputsResourceWithRawResponse, + OutputsResourceWithStreamingResponse, + AsyncOutputsResourceWithStreamingResponse, ) from ...._types import NOT_GIVEN, Body, Query, Headers, NoneType, NotGiven from ...._utils import ( @@ -40,21 +40,21 @@ from ....types.stream.live_input import LiveInput from ....types.stream.live_input_list_response import LiveInputListResponse -__all__ = ["LiveInputs", "AsyncLiveInputs"] +__all__ = ["LiveInputsResource", "AsyncLiveInputsResource"] -class LiveInputs(SyncAPIResource): +class LiveInputsResource(SyncAPIResource): @cached_property - def outputs(self) -> Outputs: - return Outputs(self._client) + def outputs(self) -> OutputsResource: + return OutputsResource(self._client) @cached_property - def with_raw_response(self) -> LiveInputsWithRawResponse: - return LiveInputsWithRawResponse(self) + def with_raw_response(self) -> LiveInputsResourceWithRawResponse: + return LiveInputsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> LiveInputsWithStreamingResponse: - return LiveInputsWithStreamingResponse(self) + def with_streaming_response(self) -> LiveInputsResourceWithStreamingResponse: + return LiveInputsResourceWithStreamingResponse(self) def create( self, @@ -337,18 +337,18 @@ def get( ) -class AsyncLiveInputs(AsyncAPIResource): +class AsyncLiveInputsResource(AsyncAPIResource): @cached_property - def outputs(self) -> AsyncOutputs: - return AsyncOutputs(self._client) + def outputs(self) -> AsyncOutputsResource: + return AsyncOutputsResource(self._client) @cached_property - def with_raw_response(self) -> AsyncLiveInputsWithRawResponse: - return AsyncLiveInputsWithRawResponse(self) + def with_raw_response(self) -> AsyncLiveInputsResourceWithRawResponse: + return AsyncLiveInputsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncLiveInputsWithStreamingResponse: - return AsyncLiveInputsWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncLiveInputsResourceWithStreamingResponse: + return AsyncLiveInputsResourceWithStreamingResponse(self) async def create( self, @@ -633,8 +633,8 @@ async def get( ) -class LiveInputsWithRawResponse: - def __init__(self, live_inputs: LiveInputs) -> None: +class LiveInputsResourceWithRawResponse: + def __init__(self, live_inputs: LiveInputsResource) -> None: self._live_inputs = live_inputs self.create = to_raw_response_wrapper( @@ -654,12 +654,12 @@ def __init__(self, live_inputs: LiveInputs) -> None: ) @cached_property - def outputs(self) -> OutputsWithRawResponse: - return OutputsWithRawResponse(self._live_inputs.outputs) + def outputs(self) -> OutputsResourceWithRawResponse: + return OutputsResourceWithRawResponse(self._live_inputs.outputs) -class AsyncLiveInputsWithRawResponse: - def __init__(self, live_inputs: AsyncLiveInputs) -> None: +class AsyncLiveInputsResourceWithRawResponse: + def __init__(self, live_inputs: AsyncLiveInputsResource) -> None: self._live_inputs = live_inputs self.create = async_to_raw_response_wrapper( @@ -679,12 +679,12 @@ def __init__(self, live_inputs: AsyncLiveInputs) -> None: ) @cached_property - def outputs(self) -> AsyncOutputsWithRawResponse: - return AsyncOutputsWithRawResponse(self._live_inputs.outputs) + def outputs(self) -> AsyncOutputsResourceWithRawResponse: + return AsyncOutputsResourceWithRawResponse(self._live_inputs.outputs) -class LiveInputsWithStreamingResponse: - def __init__(self, live_inputs: LiveInputs) -> None: +class LiveInputsResourceWithStreamingResponse: + def __init__(self, live_inputs: LiveInputsResource) -> None: self._live_inputs = live_inputs self.create = to_streamed_response_wrapper( @@ -704,12 +704,12 @@ def __init__(self, live_inputs: LiveInputs) -> None: ) @cached_property - def outputs(self) -> OutputsWithStreamingResponse: - return OutputsWithStreamingResponse(self._live_inputs.outputs) + def outputs(self) -> OutputsResourceWithStreamingResponse: + return OutputsResourceWithStreamingResponse(self._live_inputs.outputs) -class AsyncLiveInputsWithStreamingResponse: - def __init__(self, live_inputs: AsyncLiveInputs) -> None: +class AsyncLiveInputsResourceWithStreamingResponse: + def __init__(self, live_inputs: AsyncLiveInputsResource) -> None: self._live_inputs = live_inputs self.create = async_to_streamed_response_wrapper( @@ -729,5 +729,5 @@ def __init__(self, live_inputs: AsyncLiveInputs) -> None: ) @cached_property - def outputs(self) -> AsyncOutputsWithStreamingResponse: - return AsyncOutputsWithStreamingResponse(self._live_inputs.outputs) + def outputs(self) -> AsyncOutputsResourceWithStreamingResponse: + return AsyncOutputsResourceWithStreamingResponse(self._live_inputs.outputs) diff --git a/src/cloudflare/resources/stream/live_inputs/outputs.py b/src/cloudflare/resources/stream/live_inputs/outputs.py index c587ca8a7cf..f786543bccc 100644 --- a/src/cloudflare/resources/stream/live_inputs/outputs.py +++ b/src/cloudflare/resources/stream/live_inputs/outputs.py @@ -28,17 +28,17 @@ from ....types.stream.live_inputs import output_create_params, output_delete_params, output_update_params from ....types.stream.live_inputs.output import Output -__all__ = ["Outputs", "AsyncOutputs"] +__all__ = ["OutputsResource", "AsyncOutputsResource"] -class Outputs(SyncAPIResource): +class OutputsResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> OutputsWithRawResponse: - return OutputsWithRawResponse(self) + def with_raw_response(self) -> OutputsResourceWithRawResponse: + return OutputsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> OutputsWithStreamingResponse: - return OutputsWithStreamingResponse(self) + def with_streaming_response(self) -> OutputsResourceWithStreamingResponse: + return OutputsResourceWithStreamingResponse(self) def create( self, @@ -262,14 +262,14 @@ def delete( ) -class AsyncOutputs(AsyncAPIResource): +class AsyncOutputsResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncOutputsWithRawResponse: - return AsyncOutputsWithRawResponse(self) + def with_raw_response(self) -> AsyncOutputsResourceWithRawResponse: + return AsyncOutputsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncOutputsWithStreamingResponse: - return AsyncOutputsWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncOutputsResourceWithStreamingResponse: + return AsyncOutputsResourceWithStreamingResponse(self) async def create( self, @@ -493,8 +493,8 @@ async def delete( ) -class OutputsWithRawResponse: - def __init__(self, outputs: Outputs) -> None: +class OutputsResourceWithRawResponse: + def __init__(self, outputs: OutputsResource) -> None: self._outputs = outputs self.create = to_raw_response_wrapper( @@ -511,8 +511,8 @@ def __init__(self, outputs: Outputs) -> None: ) -class AsyncOutputsWithRawResponse: - def __init__(self, outputs: AsyncOutputs) -> None: +class AsyncOutputsResourceWithRawResponse: + def __init__(self, outputs: AsyncOutputsResource) -> None: self._outputs = outputs self.create = async_to_raw_response_wrapper( @@ -529,8 +529,8 @@ def __init__(self, outputs: AsyncOutputs) -> None: ) -class OutputsWithStreamingResponse: - def __init__(self, outputs: Outputs) -> None: +class OutputsResourceWithStreamingResponse: + def __init__(self, outputs: OutputsResource) -> None: self._outputs = outputs self.create = to_streamed_response_wrapper( @@ -547,8 +547,8 @@ def __init__(self, outputs: Outputs) -> None: ) -class AsyncOutputsWithStreamingResponse: - def __init__(self, outputs: AsyncOutputs) -> None: +class AsyncOutputsResourceWithStreamingResponse: + def __init__(self, outputs: AsyncOutputsResource) -> None: self._outputs = outputs self.create = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/stream/stream.py b/src/cloudflare/resources/stream/stream.py index 373350bf8fa..8504084ea70 100644 --- a/src/cloudflare/resources/stream/stream.py +++ b/src/cloudflare/resources/stream/stream.py @@ -17,44 +17,44 @@ AsyncClipResourceWithStreamingResponse, ) from .copy import ( - Copy, - AsyncCopy, - CopyWithRawResponse, - AsyncCopyWithRawResponse, - CopyWithStreamingResponse, - AsyncCopyWithStreamingResponse, + CopyResource, + AsyncCopyResource, + CopyResourceWithRawResponse, + AsyncCopyResourceWithRawResponse, + CopyResourceWithStreamingResponse, + AsyncCopyResourceWithStreamingResponse, ) from .keys import ( - Keys, - AsyncKeys, - KeysWithRawResponse, - AsyncKeysWithRawResponse, - KeysWithStreamingResponse, - AsyncKeysWithStreamingResponse, + KeysResource, + AsyncKeysResource, + KeysResourceWithRawResponse, + AsyncKeysResourceWithRawResponse, + KeysResourceWithStreamingResponse, + AsyncKeysResourceWithStreamingResponse, ) from .embed import ( - Embed, - AsyncEmbed, - EmbedWithRawResponse, - AsyncEmbedWithRawResponse, - EmbedWithStreamingResponse, - AsyncEmbedWithStreamingResponse, + EmbedResource, + AsyncEmbedResource, + EmbedResourceWithRawResponse, + AsyncEmbedResourceWithRawResponse, + EmbedResourceWithStreamingResponse, + AsyncEmbedResourceWithStreamingResponse, ) from .token import ( - Token, - AsyncToken, - TokenWithRawResponse, - AsyncTokenWithRawResponse, - TokenWithStreamingResponse, - AsyncTokenWithStreamingResponse, + TokenResource, + AsyncTokenResource, + TokenResourceWithRawResponse, + AsyncTokenResourceWithRawResponse, + TokenResourceWithStreamingResponse, + AsyncTokenResourceWithStreamingResponse, ) from .videos import ( - Videos, - AsyncVideos, - VideosWithRawResponse, - AsyncVideosWithRawResponse, - VideosWithStreamingResponse, - AsyncVideosWithStreamingResponse, + VideosResource, + AsyncVideosResource, + VideosResourceWithRawResponse, + AsyncVideosResourceWithRawResponse, + VideosResourceWithStreamingResponse, + AsyncVideosResourceWithStreamingResponse, ) from ..._types import NOT_GIVEN, Body, Query, Headers, NoneType, NotGiven from ..._utils import ( @@ -62,37 +62,37 @@ async_maybe_transform, ) from .captions import ( - Captions, - AsyncCaptions, - CaptionsWithRawResponse, - AsyncCaptionsWithRawResponse, - CaptionsWithStreamingResponse, - AsyncCaptionsWithStreamingResponse, + CaptionsResource, + AsyncCaptionsResource, + CaptionsResourceWithRawResponse, + AsyncCaptionsResourceWithRawResponse, + CaptionsResourceWithStreamingResponse, + AsyncCaptionsResourceWithStreamingResponse, ) from .webhooks import ( - Webhooks, - AsyncWebhooks, - WebhooksWithRawResponse, - AsyncWebhooksWithRawResponse, - WebhooksWithStreamingResponse, - AsyncWebhooksWithStreamingResponse, + WebhooksResource, + AsyncWebhooksResource, + WebhooksResourceWithRawResponse, + AsyncWebhooksResourceWithRawResponse, + WebhooksResourceWithStreamingResponse, + AsyncWebhooksResourceWithStreamingResponse, ) from ..._compat import cached_property from .downloads import ( - Downloads, - AsyncDownloads, - DownloadsWithRawResponse, - AsyncDownloadsWithRawResponse, - DownloadsWithStreamingResponse, - AsyncDownloadsWithStreamingResponse, + DownloadsResource, + AsyncDownloadsResource, + DownloadsResourceWithRawResponse, + AsyncDownloadsResourceWithRawResponse, + DownloadsResourceWithStreamingResponse, + AsyncDownloadsResourceWithStreamingResponse, ) from .watermarks import ( - Watermarks, - AsyncWatermarks, - WatermarksWithRawResponse, - AsyncWatermarksWithRawResponse, - WatermarksWithStreamingResponse, - AsyncWatermarksWithStreamingResponse, + WatermarksResource, + AsyncWatermarksResource, + WatermarksResourceWithRawResponse, + AsyncWatermarksResourceWithRawResponse, + WatermarksResourceWithStreamingResponse, + AsyncWatermarksResourceWithStreamingResponse, ) from ..._resource import SyncAPIResource, AsyncAPIResource from ..._response import ( @@ -103,102 +103,102 @@ ) from ..._wrappers import ResultWrapper from .live_inputs import ( - LiveInputs, - AsyncLiveInputs, - LiveInputsWithRawResponse, - AsyncLiveInputsWithRawResponse, - LiveInputsWithStreamingResponse, - AsyncLiveInputsWithStreamingResponse, + LiveInputsResource, + AsyncLiveInputsResource, + LiveInputsResourceWithRawResponse, + AsyncLiveInputsResourceWithRawResponse, + LiveInputsResourceWithStreamingResponse, + AsyncLiveInputsResourceWithStreamingResponse, ) from ...pagination import SyncSinglePage, AsyncSinglePage from .audio_tracks import ( - AudioTracks, - AsyncAudioTracks, - AudioTracksWithRawResponse, - AsyncAudioTracksWithRawResponse, - AudioTracksWithStreamingResponse, - AsyncAudioTracksWithStreamingResponse, + AudioTracksResource, + AsyncAudioTracksResource, + AudioTracksResourceWithRawResponse, + AsyncAudioTracksResourceWithRawResponse, + AudioTracksResourceWithStreamingResponse, + AsyncAudioTracksResourceWithStreamingResponse, ) from .direct_upload import ( - DirectUpload, - AsyncDirectUpload, - DirectUploadWithRawResponse, - AsyncDirectUploadWithRawResponse, - DirectUploadWithStreamingResponse, - AsyncDirectUploadWithStreamingResponse, + DirectUploadResource, + AsyncDirectUploadResource, + DirectUploadResourceWithRawResponse, + AsyncDirectUploadResourceWithRawResponse, + DirectUploadResourceWithStreamingResponse, + AsyncDirectUploadResourceWithStreamingResponse, ) from ..._base_client import ( AsyncPaginator, make_request_options, ) from ...types.stream import stream_list_params, stream_create_params, stream_delete_params -from .captions.captions import Captions, AsyncCaptions +from .captions.captions import CaptionsResource, AsyncCaptionsResource from ...types.stream.video import Video -from .live_inputs.live_inputs import LiveInputs, AsyncLiveInputs +from .live_inputs.live_inputs import LiveInputsResource, AsyncLiveInputsResource -__all__ = ["Stream", "AsyncStream"] +__all__ = ["StreamResource", "AsyncStreamResource"] -class Stream(SyncAPIResource): +class StreamResource(SyncAPIResource): @cached_property - def audio_tracks(self) -> AudioTracks: - return AudioTracks(self._client) + def audio_tracks(self) -> AudioTracksResource: + return AudioTracksResource(self._client) @cached_property - def videos(self) -> Videos: - return Videos(self._client) + def videos(self) -> VideosResource: + return VideosResource(self._client) @cached_property def clip(self) -> ClipResource: return ClipResource(self._client) @cached_property - def copy(self) -> Copy: - return Copy(self._client) + def copy(self) -> CopyResource: + return CopyResource(self._client) @cached_property - def direct_upload(self) -> DirectUpload: - return DirectUpload(self._client) + def direct_upload(self) -> DirectUploadResource: + return DirectUploadResource(self._client) @cached_property - def keys(self) -> Keys: - return Keys(self._client) + def keys(self) -> KeysResource: + return KeysResource(self._client) @cached_property - def live_inputs(self) -> LiveInputs: - return LiveInputs(self._client) + def live_inputs(self) -> LiveInputsResource: + return LiveInputsResource(self._client) @cached_property - def watermarks(self) -> Watermarks: - return Watermarks(self._client) + def watermarks(self) -> WatermarksResource: + return WatermarksResource(self._client) @cached_property - def webhooks(self) -> Webhooks: - return Webhooks(self._client) + def webhooks(self) -> WebhooksResource: + return WebhooksResource(self._client) @cached_property - def captions(self) -> Captions: - return Captions(self._client) + def captions(self) -> CaptionsResource: + return CaptionsResource(self._client) @cached_property - def downloads(self) -> Downloads: - return Downloads(self._client) + def downloads(self) -> DownloadsResource: + return DownloadsResource(self._client) @cached_property - def embed(self) -> Embed: - return Embed(self._client) + def embed(self) -> EmbedResource: + return EmbedResource(self._client) @cached_property - def token(self) -> Token: - return Token(self._client) + def token(self) -> TokenResource: + return TokenResource(self._client) @cached_property - def with_raw_response(self) -> StreamWithRawResponse: - return StreamWithRawResponse(self) + def with_raw_response(self) -> StreamResourceWithRawResponse: + return StreamResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> StreamWithStreamingResponse: - return StreamWithStreamingResponse(self) + def with_streaming_response(self) -> StreamResourceWithStreamingResponse: + return StreamResourceWithStreamingResponse(self) def create( self, @@ -411,66 +411,66 @@ def get( ) -class AsyncStream(AsyncAPIResource): +class AsyncStreamResource(AsyncAPIResource): @cached_property - def audio_tracks(self) -> AsyncAudioTracks: - return AsyncAudioTracks(self._client) + def audio_tracks(self) -> AsyncAudioTracksResource: + return AsyncAudioTracksResource(self._client) @cached_property - def videos(self) -> AsyncVideos: - return AsyncVideos(self._client) + def videos(self) -> AsyncVideosResource: + return AsyncVideosResource(self._client) @cached_property def clip(self) -> AsyncClipResource: return AsyncClipResource(self._client) @cached_property - def copy(self) -> AsyncCopy: - return AsyncCopy(self._client) + def copy(self) -> AsyncCopyResource: + return AsyncCopyResource(self._client) @cached_property - def direct_upload(self) -> AsyncDirectUpload: - return AsyncDirectUpload(self._client) + def direct_upload(self) -> AsyncDirectUploadResource: + return AsyncDirectUploadResource(self._client) @cached_property - def keys(self) -> AsyncKeys: - return AsyncKeys(self._client) + def keys(self) -> AsyncKeysResource: + return AsyncKeysResource(self._client) @cached_property - def live_inputs(self) -> AsyncLiveInputs: - return AsyncLiveInputs(self._client) + def live_inputs(self) -> AsyncLiveInputsResource: + return AsyncLiveInputsResource(self._client) @cached_property - def watermarks(self) -> AsyncWatermarks: - return AsyncWatermarks(self._client) + def watermarks(self) -> AsyncWatermarksResource: + return AsyncWatermarksResource(self._client) @cached_property - def webhooks(self) -> AsyncWebhooks: - return AsyncWebhooks(self._client) + def webhooks(self) -> AsyncWebhooksResource: + return AsyncWebhooksResource(self._client) @cached_property - def captions(self) -> AsyncCaptions: - return AsyncCaptions(self._client) + def captions(self) -> AsyncCaptionsResource: + return AsyncCaptionsResource(self._client) @cached_property - def downloads(self) -> AsyncDownloads: - return AsyncDownloads(self._client) + def downloads(self) -> AsyncDownloadsResource: + return AsyncDownloadsResource(self._client) @cached_property - def embed(self) -> AsyncEmbed: - return AsyncEmbed(self._client) + def embed(self) -> AsyncEmbedResource: + return AsyncEmbedResource(self._client) @cached_property - def token(self) -> AsyncToken: - return AsyncToken(self._client) + def token(self) -> AsyncTokenResource: + return AsyncTokenResource(self._client) @cached_property - def with_raw_response(self) -> AsyncStreamWithRawResponse: - return AsyncStreamWithRawResponse(self) + def with_raw_response(self) -> AsyncStreamResourceWithRawResponse: + return AsyncStreamResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncStreamWithStreamingResponse: - return AsyncStreamWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncStreamResourceWithStreamingResponse: + return AsyncStreamResourceWithStreamingResponse(self) async def create( self, @@ -683,8 +683,8 @@ async def get( ) -class StreamWithRawResponse: - def __init__(self, stream: Stream) -> None: +class StreamResourceWithRawResponse: + def __init__(self, stream: StreamResource) -> None: self._stream = stream self.create = to_raw_response_wrapper( @@ -701,60 +701,60 @@ def __init__(self, stream: Stream) -> None: ) @cached_property - def audio_tracks(self) -> AudioTracksWithRawResponse: - return AudioTracksWithRawResponse(self._stream.audio_tracks) + def audio_tracks(self) -> AudioTracksResourceWithRawResponse: + return AudioTracksResourceWithRawResponse(self._stream.audio_tracks) @cached_property - def videos(self) -> VideosWithRawResponse: - return VideosWithRawResponse(self._stream.videos) + def videos(self) -> VideosResourceWithRawResponse: + return VideosResourceWithRawResponse(self._stream.videos) @cached_property def clip(self) -> ClipResourceWithRawResponse: return ClipResourceWithRawResponse(self._stream.clip) @cached_property - def copy(self) -> CopyWithRawResponse: - return CopyWithRawResponse(self._stream.copy) + def copy(self) -> CopyResourceWithRawResponse: + return CopyResourceWithRawResponse(self._stream.copy) @cached_property - def direct_upload(self) -> DirectUploadWithRawResponse: - return DirectUploadWithRawResponse(self._stream.direct_upload) + def direct_upload(self) -> DirectUploadResourceWithRawResponse: + return DirectUploadResourceWithRawResponse(self._stream.direct_upload) @cached_property - def keys(self) -> KeysWithRawResponse: - return KeysWithRawResponse(self._stream.keys) + def keys(self) -> KeysResourceWithRawResponse: + return KeysResourceWithRawResponse(self._stream.keys) @cached_property - def live_inputs(self) -> LiveInputsWithRawResponse: - return LiveInputsWithRawResponse(self._stream.live_inputs) + def live_inputs(self) -> LiveInputsResourceWithRawResponse: + return LiveInputsResourceWithRawResponse(self._stream.live_inputs) @cached_property - def watermarks(self) -> WatermarksWithRawResponse: - return WatermarksWithRawResponse(self._stream.watermarks) + def watermarks(self) -> WatermarksResourceWithRawResponse: + return WatermarksResourceWithRawResponse(self._stream.watermarks) @cached_property - def webhooks(self) -> WebhooksWithRawResponse: - return WebhooksWithRawResponse(self._stream.webhooks) + def webhooks(self) -> WebhooksResourceWithRawResponse: + return WebhooksResourceWithRawResponse(self._stream.webhooks) @cached_property - def captions(self) -> CaptionsWithRawResponse: - return CaptionsWithRawResponse(self._stream.captions) + def captions(self) -> CaptionsResourceWithRawResponse: + return CaptionsResourceWithRawResponse(self._stream.captions) @cached_property - def downloads(self) -> DownloadsWithRawResponse: - return DownloadsWithRawResponse(self._stream.downloads) + def downloads(self) -> DownloadsResourceWithRawResponse: + return DownloadsResourceWithRawResponse(self._stream.downloads) @cached_property - def embed(self) -> EmbedWithRawResponse: - return EmbedWithRawResponse(self._stream.embed) + def embed(self) -> EmbedResourceWithRawResponse: + return EmbedResourceWithRawResponse(self._stream.embed) @cached_property - def token(self) -> TokenWithRawResponse: - return TokenWithRawResponse(self._stream.token) + def token(self) -> TokenResourceWithRawResponse: + return TokenResourceWithRawResponse(self._stream.token) -class AsyncStreamWithRawResponse: - def __init__(self, stream: AsyncStream) -> None: +class AsyncStreamResourceWithRawResponse: + def __init__(self, stream: AsyncStreamResource) -> None: self._stream = stream self.create = async_to_raw_response_wrapper( @@ -771,60 +771,60 @@ def __init__(self, stream: AsyncStream) -> None: ) @cached_property - def audio_tracks(self) -> AsyncAudioTracksWithRawResponse: - return AsyncAudioTracksWithRawResponse(self._stream.audio_tracks) + def audio_tracks(self) -> AsyncAudioTracksResourceWithRawResponse: + return AsyncAudioTracksResourceWithRawResponse(self._stream.audio_tracks) @cached_property - def videos(self) -> AsyncVideosWithRawResponse: - return AsyncVideosWithRawResponse(self._stream.videos) + def videos(self) -> AsyncVideosResourceWithRawResponse: + return AsyncVideosResourceWithRawResponse(self._stream.videos) @cached_property def clip(self) -> AsyncClipResourceWithRawResponse: return AsyncClipResourceWithRawResponse(self._stream.clip) @cached_property - def copy(self) -> AsyncCopyWithRawResponse: - return AsyncCopyWithRawResponse(self._stream.copy) + def copy(self) -> AsyncCopyResourceWithRawResponse: + return AsyncCopyResourceWithRawResponse(self._stream.copy) @cached_property - def direct_upload(self) -> AsyncDirectUploadWithRawResponse: - return AsyncDirectUploadWithRawResponse(self._stream.direct_upload) + def direct_upload(self) -> AsyncDirectUploadResourceWithRawResponse: + return AsyncDirectUploadResourceWithRawResponse(self._stream.direct_upload) @cached_property - def keys(self) -> AsyncKeysWithRawResponse: - return AsyncKeysWithRawResponse(self._stream.keys) + def keys(self) -> AsyncKeysResourceWithRawResponse: + return AsyncKeysResourceWithRawResponse(self._stream.keys) @cached_property - def live_inputs(self) -> AsyncLiveInputsWithRawResponse: - return AsyncLiveInputsWithRawResponse(self._stream.live_inputs) + def live_inputs(self) -> AsyncLiveInputsResourceWithRawResponse: + return AsyncLiveInputsResourceWithRawResponse(self._stream.live_inputs) @cached_property - def watermarks(self) -> AsyncWatermarksWithRawResponse: - return AsyncWatermarksWithRawResponse(self._stream.watermarks) + def watermarks(self) -> AsyncWatermarksResourceWithRawResponse: + return AsyncWatermarksResourceWithRawResponse(self._stream.watermarks) @cached_property - def webhooks(self) -> AsyncWebhooksWithRawResponse: - return AsyncWebhooksWithRawResponse(self._stream.webhooks) + def webhooks(self) -> AsyncWebhooksResourceWithRawResponse: + return AsyncWebhooksResourceWithRawResponse(self._stream.webhooks) @cached_property - def captions(self) -> AsyncCaptionsWithRawResponse: - return AsyncCaptionsWithRawResponse(self._stream.captions) + def captions(self) -> AsyncCaptionsResourceWithRawResponse: + return AsyncCaptionsResourceWithRawResponse(self._stream.captions) @cached_property - def downloads(self) -> AsyncDownloadsWithRawResponse: - return AsyncDownloadsWithRawResponse(self._stream.downloads) + def downloads(self) -> AsyncDownloadsResourceWithRawResponse: + return AsyncDownloadsResourceWithRawResponse(self._stream.downloads) @cached_property - def embed(self) -> AsyncEmbedWithRawResponse: - return AsyncEmbedWithRawResponse(self._stream.embed) + def embed(self) -> AsyncEmbedResourceWithRawResponse: + return AsyncEmbedResourceWithRawResponse(self._stream.embed) @cached_property - def token(self) -> AsyncTokenWithRawResponse: - return AsyncTokenWithRawResponse(self._stream.token) + def token(self) -> AsyncTokenResourceWithRawResponse: + return AsyncTokenResourceWithRawResponse(self._stream.token) -class StreamWithStreamingResponse: - def __init__(self, stream: Stream) -> None: +class StreamResourceWithStreamingResponse: + def __init__(self, stream: StreamResource) -> None: self._stream = stream self.create = to_streamed_response_wrapper( @@ -841,60 +841,60 @@ def __init__(self, stream: Stream) -> None: ) @cached_property - def audio_tracks(self) -> AudioTracksWithStreamingResponse: - return AudioTracksWithStreamingResponse(self._stream.audio_tracks) + def audio_tracks(self) -> AudioTracksResourceWithStreamingResponse: + return AudioTracksResourceWithStreamingResponse(self._stream.audio_tracks) @cached_property - def videos(self) -> VideosWithStreamingResponse: - return VideosWithStreamingResponse(self._stream.videos) + def videos(self) -> VideosResourceWithStreamingResponse: + return VideosResourceWithStreamingResponse(self._stream.videos) @cached_property def clip(self) -> ClipResourceWithStreamingResponse: return ClipResourceWithStreamingResponse(self._stream.clip) @cached_property - def copy(self) -> CopyWithStreamingResponse: - return CopyWithStreamingResponse(self._stream.copy) + def copy(self) -> CopyResourceWithStreamingResponse: + return CopyResourceWithStreamingResponse(self._stream.copy) @cached_property - def direct_upload(self) -> DirectUploadWithStreamingResponse: - return DirectUploadWithStreamingResponse(self._stream.direct_upload) + def direct_upload(self) -> DirectUploadResourceWithStreamingResponse: + return DirectUploadResourceWithStreamingResponse(self._stream.direct_upload) @cached_property - def keys(self) -> KeysWithStreamingResponse: - return KeysWithStreamingResponse(self._stream.keys) + def keys(self) -> KeysResourceWithStreamingResponse: + return KeysResourceWithStreamingResponse(self._stream.keys) @cached_property - def live_inputs(self) -> LiveInputsWithStreamingResponse: - return LiveInputsWithStreamingResponse(self._stream.live_inputs) + def live_inputs(self) -> LiveInputsResourceWithStreamingResponse: + return LiveInputsResourceWithStreamingResponse(self._stream.live_inputs) @cached_property - def watermarks(self) -> WatermarksWithStreamingResponse: - return WatermarksWithStreamingResponse(self._stream.watermarks) + def watermarks(self) -> WatermarksResourceWithStreamingResponse: + return WatermarksResourceWithStreamingResponse(self._stream.watermarks) @cached_property - def webhooks(self) -> WebhooksWithStreamingResponse: - return WebhooksWithStreamingResponse(self._stream.webhooks) + def webhooks(self) -> WebhooksResourceWithStreamingResponse: + return WebhooksResourceWithStreamingResponse(self._stream.webhooks) @cached_property - def captions(self) -> CaptionsWithStreamingResponse: - return CaptionsWithStreamingResponse(self._stream.captions) + def captions(self) -> CaptionsResourceWithStreamingResponse: + return CaptionsResourceWithStreamingResponse(self._stream.captions) @cached_property - def downloads(self) -> DownloadsWithStreamingResponse: - return DownloadsWithStreamingResponse(self._stream.downloads) + def downloads(self) -> DownloadsResourceWithStreamingResponse: + return DownloadsResourceWithStreamingResponse(self._stream.downloads) @cached_property - def embed(self) -> EmbedWithStreamingResponse: - return EmbedWithStreamingResponse(self._stream.embed) + def embed(self) -> EmbedResourceWithStreamingResponse: + return EmbedResourceWithStreamingResponse(self._stream.embed) @cached_property - def token(self) -> TokenWithStreamingResponse: - return TokenWithStreamingResponse(self._stream.token) + def token(self) -> TokenResourceWithStreamingResponse: + return TokenResourceWithStreamingResponse(self._stream.token) -class AsyncStreamWithStreamingResponse: - def __init__(self, stream: AsyncStream) -> None: +class AsyncStreamResourceWithStreamingResponse: + def __init__(self, stream: AsyncStreamResource) -> None: self._stream = stream self.create = async_to_streamed_response_wrapper( @@ -911,53 +911,53 @@ def __init__(self, stream: AsyncStream) -> None: ) @cached_property - def audio_tracks(self) -> AsyncAudioTracksWithStreamingResponse: - return AsyncAudioTracksWithStreamingResponse(self._stream.audio_tracks) + def audio_tracks(self) -> AsyncAudioTracksResourceWithStreamingResponse: + return AsyncAudioTracksResourceWithStreamingResponse(self._stream.audio_tracks) @cached_property - def videos(self) -> AsyncVideosWithStreamingResponse: - return AsyncVideosWithStreamingResponse(self._stream.videos) + def videos(self) -> AsyncVideosResourceWithStreamingResponse: + return AsyncVideosResourceWithStreamingResponse(self._stream.videos) @cached_property def clip(self) -> AsyncClipResourceWithStreamingResponse: return AsyncClipResourceWithStreamingResponse(self._stream.clip) @cached_property - def copy(self) -> AsyncCopyWithStreamingResponse: - return AsyncCopyWithStreamingResponse(self._stream.copy) + def copy(self) -> AsyncCopyResourceWithStreamingResponse: + return AsyncCopyResourceWithStreamingResponse(self._stream.copy) @cached_property - def direct_upload(self) -> AsyncDirectUploadWithStreamingResponse: - return AsyncDirectUploadWithStreamingResponse(self._stream.direct_upload) + def direct_upload(self) -> AsyncDirectUploadResourceWithStreamingResponse: + return AsyncDirectUploadResourceWithStreamingResponse(self._stream.direct_upload) @cached_property - def keys(self) -> AsyncKeysWithStreamingResponse: - return AsyncKeysWithStreamingResponse(self._stream.keys) + def keys(self) -> AsyncKeysResourceWithStreamingResponse: + return AsyncKeysResourceWithStreamingResponse(self._stream.keys) @cached_property - def live_inputs(self) -> AsyncLiveInputsWithStreamingResponse: - return AsyncLiveInputsWithStreamingResponse(self._stream.live_inputs) + def live_inputs(self) -> AsyncLiveInputsResourceWithStreamingResponse: + return AsyncLiveInputsResourceWithStreamingResponse(self._stream.live_inputs) @cached_property - def watermarks(self) -> AsyncWatermarksWithStreamingResponse: - return AsyncWatermarksWithStreamingResponse(self._stream.watermarks) + def watermarks(self) -> AsyncWatermarksResourceWithStreamingResponse: + return AsyncWatermarksResourceWithStreamingResponse(self._stream.watermarks) @cached_property - def webhooks(self) -> AsyncWebhooksWithStreamingResponse: - return AsyncWebhooksWithStreamingResponse(self._stream.webhooks) + def webhooks(self) -> AsyncWebhooksResourceWithStreamingResponse: + return AsyncWebhooksResourceWithStreamingResponse(self._stream.webhooks) @cached_property - def captions(self) -> AsyncCaptionsWithStreamingResponse: - return AsyncCaptionsWithStreamingResponse(self._stream.captions) + def captions(self) -> AsyncCaptionsResourceWithStreamingResponse: + return AsyncCaptionsResourceWithStreamingResponse(self._stream.captions) @cached_property - def downloads(self) -> AsyncDownloadsWithStreamingResponse: - return AsyncDownloadsWithStreamingResponse(self._stream.downloads) + def downloads(self) -> AsyncDownloadsResourceWithStreamingResponse: + return AsyncDownloadsResourceWithStreamingResponse(self._stream.downloads) @cached_property - def embed(self) -> AsyncEmbedWithStreamingResponse: - return AsyncEmbedWithStreamingResponse(self._stream.embed) + def embed(self) -> AsyncEmbedResourceWithStreamingResponse: + return AsyncEmbedResourceWithStreamingResponse(self._stream.embed) @cached_property - def token(self) -> AsyncTokenWithStreamingResponse: - return AsyncTokenWithStreamingResponse(self._stream.token) + def token(self) -> AsyncTokenResourceWithStreamingResponse: + return AsyncTokenResourceWithStreamingResponse(self._stream.token) diff --git a/src/cloudflare/resources/stream/token.py b/src/cloudflare/resources/stream/token.py index 575f238fabb..c52d130dd39 100644 --- a/src/cloudflare/resources/stream/token.py +++ b/src/cloudflare/resources/stream/token.py @@ -26,17 +26,17 @@ from ...types.stream import token_create_params from ...types.stream.token_create_response import TokenCreateResponse -__all__ = ["Token", "AsyncToken"] +__all__ = ["TokenResource", "AsyncTokenResource"] -class Token(SyncAPIResource): +class TokenResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> TokenWithRawResponse: - return TokenWithRawResponse(self) + def with_raw_response(self) -> TokenResourceWithRawResponse: + return TokenResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> TokenWithStreamingResponse: - return TokenWithStreamingResponse(self) + def with_streaming_response(self) -> TokenResourceWithStreamingResponse: + return TokenResourceWithStreamingResponse(self) def create( self, @@ -123,14 +123,14 @@ def create( ) -class AsyncToken(AsyncAPIResource): +class AsyncTokenResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncTokenWithRawResponse: - return AsyncTokenWithRawResponse(self) + def with_raw_response(self) -> AsyncTokenResourceWithRawResponse: + return AsyncTokenResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncTokenWithStreamingResponse: - return AsyncTokenWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncTokenResourceWithStreamingResponse: + return AsyncTokenResourceWithStreamingResponse(self) async def create( self, @@ -217,8 +217,8 @@ async def create( ) -class TokenWithRawResponse: - def __init__(self, token: Token) -> None: +class TokenResourceWithRawResponse: + def __init__(self, token: TokenResource) -> None: self._token = token self.create = to_raw_response_wrapper( @@ -226,8 +226,8 @@ def __init__(self, token: Token) -> None: ) -class AsyncTokenWithRawResponse: - def __init__(self, token: AsyncToken) -> None: +class AsyncTokenResourceWithRawResponse: + def __init__(self, token: AsyncTokenResource) -> None: self._token = token self.create = async_to_raw_response_wrapper( @@ -235,8 +235,8 @@ def __init__(self, token: AsyncToken) -> None: ) -class TokenWithStreamingResponse: - def __init__(self, token: Token) -> None: +class TokenResourceWithStreamingResponse: + def __init__(self, token: TokenResource) -> None: self._token = token self.create = to_streamed_response_wrapper( @@ -244,8 +244,8 @@ def __init__(self, token: Token) -> None: ) -class AsyncTokenWithStreamingResponse: - def __init__(self, token: AsyncToken) -> None: +class AsyncTokenResourceWithStreamingResponse: + def __init__(self, token: AsyncTokenResource) -> None: self._token = token self.create = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/stream/videos.py b/src/cloudflare/resources/stream/videos.py index daa30c78b3a..f8ccd3c97a5 100644 --- a/src/cloudflare/resources/stream/videos.py +++ b/src/cloudflare/resources/stream/videos.py @@ -26,17 +26,17 @@ from ...types.stream import video_storage_usage_params from ...types.stream.video_storage_usage_response import VideoStorageUsageResponse -__all__ = ["Videos", "AsyncVideos"] +__all__ = ["VideosResource", "AsyncVideosResource"] -class Videos(SyncAPIResource): +class VideosResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> VideosWithRawResponse: - return VideosWithRawResponse(self) + def with_raw_response(self) -> VideosResourceWithRawResponse: + return VideosResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> VideosWithStreamingResponse: - return VideosWithStreamingResponse(self) + def with_streaming_response(self) -> VideosResourceWithStreamingResponse: + return VideosResourceWithStreamingResponse(self) def storage_usage( self, @@ -82,14 +82,14 @@ def storage_usage( ) -class AsyncVideos(AsyncAPIResource): +class AsyncVideosResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncVideosWithRawResponse: - return AsyncVideosWithRawResponse(self) + def with_raw_response(self) -> AsyncVideosResourceWithRawResponse: + return AsyncVideosResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncVideosWithStreamingResponse: - return AsyncVideosWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncVideosResourceWithStreamingResponse: + return AsyncVideosResourceWithStreamingResponse(self) async def storage_usage( self, @@ -137,8 +137,8 @@ async def storage_usage( ) -class VideosWithRawResponse: - def __init__(self, videos: Videos) -> None: +class VideosResourceWithRawResponse: + def __init__(self, videos: VideosResource) -> None: self._videos = videos self.storage_usage = to_raw_response_wrapper( @@ -146,8 +146,8 @@ def __init__(self, videos: Videos) -> None: ) -class AsyncVideosWithRawResponse: - def __init__(self, videos: AsyncVideos) -> None: +class AsyncVideosResourceWithRawResponse: + def __init__(self, videos: AsyncVideosResource) -> None: self._videos = videos self.storage_usage = async_to_raw_response_wrapper( @@ -155,8 +155,8 @@ def __init__(self, videos: AsyncVideos) -> None: ) -class VideosWithStreamingResponse: - def __init__(self, videos: Videos) -> None: +class VideosResourceWithStreamingResponse: + def __init__(self, videos: VideosResource) -> None: self._videos = videos self.storage_usage = to_streamed_response_wrapper( @@ -164,8 +164,8 @@ def __init__(self, videos: Videos) -> None: ) -class AsyncVideosWithStreamingResponse: - def __init__(self, videos: AsyncVideos) -> None: +class AsyncVideosResourceWithStreamingResponse: + def __init__(self, videos: AsyncVideosResource) -> None: self._videos = videos self.storage_usage = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/stream/watermarks.py b/src/cloudflare/resources/stream/watermarks.py index 7598e93943a..7eae7369bd7 100644 --- a/src/cloudflare/resources/stream/watermarks.py +++ b/src/cloudflare/resources/stream/watermarks.py @@ -29,17 +29,17 @@ from ...types.stream.watermark import Watermark from ...types.stream.watermark_delete_response import WatermarkDeleteResponse -__all__ = ["Watermarks", "AsyncWatermarks"] +__all__ = ["WatermarksResource", "AsyncWatermarksResource"] -class Watermarks(SyncAPIResource): +class WatermarksResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> WatermarksWithRawResponse: - return WatermarksWithRawResponse(self) + def with_raw_response(self) -> WatermarksResourceWithRawResponse: + return WatermarksResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> WatermarksWithStreamingResponse: - return WatermarksWithStreamingResponse(self) + def with_streaming_response(self) -> WatermarksResourceWithStreamingResponse: + return WatermarksResourceWithStreamingResponse(self) def create( self, @@ -251,14 +251,14 @@ def get( ) -class AsyncWatermarks(AsyncAPIResource): +class AsyncWatermarksResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncWatermarksWithRawResponse: - return AsyncWatermarksWithRawResponse(self) + def with_raw_response(self) -> AsyncWatermarksResourceWithRawResponse: + return AsyncWatermarksResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncWatermarksWithStreamingResponse: - return AsyncWatermarksWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncWatermarksResourceWithStreamingResponse: + return AsyncWatermarksResourceWithStreamingResponse(self) async def create( self, @@ -470,8 +470,8 @@ async def get( ) -class WatermarksWithRawResponse: - def __init__(self, watermarks: Watermarks) -> None: +class WatermarksResourceWithRawResponse: + def __init__(self, watermarks: WatermarksResource) -> None: self._watermarks = watermarks self.create = to_raw_response_wrapper( @@ -488,8 +488,8 @@ def __init__(self, watermarks: Watermarks) -> None: ) -class AsyncWatermarksWithRawResponse: - def __init__(self, watermarks: AsyncWatermarks) -> None: +class AsyncWatermarksResourceWithRawResponse: + def __init__(self, watermarks: AsyncWatermarksResource) -> None: self._watermarks = watermarks self.create = async_to_raw_response_wrapper( @@ -506,8 +506,8 @@ def __init__(self, watermarks: AsyncWatermarks) -> None: ) -class WatermarksWithStreamingResponse: - def __init__(self, watermarks: Watermarks) -> None: +class WatermarksResourceWithStreamingResponse: + def __init__(self, watermarks: WatermarksResource) -> None: self._watermarks = watermarks self.create = to_streamed_response_wrapper( @@ -524,8 +524,8 @@ def __init__(self, watermarks: Watermarks) -> None: ) -class AsyncWatermarksWithStreamingResponse: - def __init__(self, watermarks: AsyncWatermarks) -> None: +class AsyncWatermarksResourceWithStreamingResponse: + def __init__(self, watermarks: AsyncWatermarksResource) -> None: self._watermarks = watermarks self.create = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/stream/webhooks.py b/src/cloudflare/resources/stream/webhooks.py index b3ac0a6cd4e..421ef3e1355 100644 --- a/src/cloudflare/resources/stream/webhooks.py +++ b/src/cloudflare/resources/stream/webhooks.py @@ -28,17 +28,17 @@ from ...types.stream.webhook_delete_response import WebhookDeleteResponse from ...types.stream.webhook_update_response import WebhookUpdateResponse -__all__ = ["Webhooks", "AsyncWebhooks"] +__all__ = ["WebhooksResource", "AsyncWebhooksResource"] -class Webhooks(SyncAPIResource): +class WebhooksResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> WebhooksWithRawResponse: - return WebhooksWithRawResponse(self) + def with_raw_response(self) -> WebhooksResourceWithRawResponse: + return WebhooksResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> WebhooksWithStreamingResponse: - return WebhooksWithStreamingResponse(self) + def with_streaming_response(self) -> WebhooksResourceWithStreamingResponse: + return WebhooksResourceWithStreamingResponse(self) def update( self, @@ -179,14 +179,14 @@ def get( ) -class AsyncWebhooks(AsyncAPIResource): +class AsyncWebhooksResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncWebhooksWithRawResponse: - return AsyncWebhooksWithRawResponse(self) + def with_raw_response(self) -> AsyncWebhooksResourceWithRawResponse: + return AsyncWebhooksResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncWebhooksWithStreamingResponse: - return AsyncWebhooksWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncWebhooksResourceWithStreamingResponse: + return AsyncWebhooksResourceWithStreamingResponse(self) async def update( self, @@ -329,8 +329,8 @@ async def get( ) -class WebhooksWithRawResponse: - def __init__(self, webhooks: Webhooks) -> None: +class WebhooksResourceWithRawResponse: + def __init__(self, webhooks: WebhooksResource) -> None: self._webhooks = webhooks self.update = to_raw_response_wrapper( @@ -344,8 +344,8 @@ def __init__(self, webhooks: Webhooks) -> None: ) -class AsyncWebhooksWithRawResponse: - def __init__(self, webhooks: AsyncWebhooks) -> None: +class AsyncWebhooksResourceWithRawResponse: + def __init__(self, webhooks: AsyncWebhooksResource) -> None: self._webhooks = webhooks self.update = async_to_raw_response_wrapper( @@ -359,8 +359,8 @@ def __init__(self, webhooks: AsyncWebhooks) -> None: ) -class WebhooksWithStreamingResponse: - def __init__(self, webhooks: Webhooks) -> None: +class WebhooksResourceWithStreamingResponse: + def __init__(self, webhooks: WebhooksResource) -> None: self._webhooks = webhooks self.update = to_streamed_response_wrapper( @@ -374,8 +374,8 @@ def __init__(self, webhooks: Webhooks) -> None: ) -class AsyncWebhooksWithStreamingResponse: - def __init__(self, webhooks: AsyncWebhooks) -> None: +class AsyncWebhooksResourceWithStreamingResponse: + def __init__(self, webhooks: AsyncWebhooksResource) -> None: self._webhooks = webhooks self.update = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/subscriptions.py b/src/cloudflare/resources/subscriptions.py index 24eb7c40bbd..2d4496f23f8 100644 --- a/src/cloudflare/resources/subscriptions.py +++ b/src/cloudflare/resources/subscriptions.py @@ -36,17 +36,17 @@ from ..types.subscriptions.subscription_delete_response import SubscriptionDeleteResponse from ..types.subscriptions.subscription_update_response import SubscriptionUpdateResponse -__all__ = ["Subscriptions", "AsyncSubscriptions"] +__all__ = ["SubscriptionsResource", "AsyncSubscriptionsResource"] -class Subscriptions(SyncAPIResource): +class SubscriptionsResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> SubscriptionsWithRawResponse: - return SubscriptionsWithRawResponse(self) + def with_raw_response(self) -> SubscriptionsResourceWithRawResponse: + return SubscriptionsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> SubscriptionsWithStreamingResponse: - return SubscriptionsWithStreamingResponse(self) + def with_streaming_response(self) -> SubscriptionsResourceWithStreamingResponse: + return SubscriptionsResourceWithStreamingResponse(self) def create( self, @@ -318,14 +318,14 @@ def get( ) -class AsyncSubscriptions(AsyncAPIResource): +class AsyncSubscriptionsResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncSubscriptionsWithRawResponse: - return AsyncSubscriptionsWithRawResponse(self) + def with_raw_response(self) -> AsyncSubscriptionsResourceWithRawResponse: + return AsyncSubscriptionsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncSubscriptionsWithStreamingResponse: - return AsyncSubscriptionsWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncSubscriptionsResourceWithStreamingResponse: + return AsyncSubscriptionsResourceWithStreamingResponse(self) async def create( self, @@ -597,8 +597,8 @@ async def get( ) -class SubscriptionsWithRawResponse: - def __init__(self, subscriptions: Subscriptions) -> None: +class SubscriptionsResourceWithRawResponse: + def __init__(self, subscriptions: SubscriptionsResource) -> None: self._subscriptions = subscriptions self.create = to_raw_response_wrapper( @@ -618,8 +618,8 @@ def __init__(self, subscriptions: Subscriptions) -> None: ) -class AsyncSubscriptionsWithRawResponse: - def __init__(self, subscriptions: AsyncSubscriptions) -> None: +class AsyncSubscriptionsResourceWithRawResponse: + def __init__(self, subscriptions: AsyncSubscriptionsResource) -> None: self._subscriptions = subscriptions self.create = async_to_raw_response_wrapper( @@ -639,8 +639,8 @@ def __init__(self, subscriptions: AsyncSubscriptions) -> None: ) -class SubscriptionsWithStreamingResponse: - def __init__(self, subscriptions: Subscriptions) -> None: +class SubscriptionsResourceWithStreamingResponse: + def __init__(self, subscriptions: SubscriptionsResource) -> None: self._subscriptions = subscriptions self.create = to_streamed_response_wrapper( @@ -660,8 +660,8 @@ def __init__(self, subscriptions: Subscriptions) -> None: ) -class AsyncSubscriptionsWithStreamingResponse: - def __init__(self, subscriptions: AsyncSubscriptions) -> None: +class AsyncSubscriptionsResourceWithStreamingResponse: + def __init__(self, subscriptions: AsyncSubscriptionsResource) -> None: self._subscriptions = subscriptions self.create = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/url_normalization.py b/src/cloudflare/resources/url_normalization.py index 7d49849c932..3ec4291906e 100644 --- a/src/cloudflare/resources/url_normalization.py +++ b/src/cloudflare/resources/url_normalization.py @@ -24,17 +24,17 @@ from ..types.url_normalization.url_normalization_get_response import URLNormalizationGetResponse from ..types.url_normalization.url_normalization_update_response import URLNormalizationUpdateResponse -__all__ = ["URLNormalization", "AsyncURLNormalization"] +__all__ = ["URLNormalizationResource", "AsyncURLNormalizationResource"] -class URLNormalization(SyncAPIResource): +class URLNormalizationResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> URLNormalizationWithRawResponse: - return URLNormalizationWithRawResponse(self) + def with_raw_response(self) -> URLNormalizationResourceWithRawResponse: + return URLNormalizationResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> URLNormalizationWithStreamingResponse: - return URLNormalizationWithStreamingResponse(self) + def with_streaming_response(self) -> URLNormalizationResourceWithStreamingResponse: + return URLNormalizationResourceWithStreamingResponse(self) def update( self, @@ -120,14 +120,14 @@ def get( ) -class AsyncURLNormalization(AsyncAPIResource): +class AsyncURLNormalizationResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncURLNormalizationWithRawResponse: - return AsyncURLNormalizationWithRawResponse(self) + def with_raw_response(self) -> AsyncURLNormalizationResourceWithRawResponse: + return AsyncURLNormalizationResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncURLNormalizationWithStreamingResponse: - return AsyncURLNormalizationWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncURLNormalizationResourceWithStreamingResponse: + return AsyncURLNormalizationResourceWithStreamingResponse(self) async def update( self, @@ -213,8 +213,8 @@ async def get( ) -class URLNormalizationWithRawResponse: - def __init__(self, url_normalization: URLNormalization) -> None: +class URLNormalizationResourceWithRawResponse: + def __init__(self, url_normalization: URLNormalizationResource) -> None: self._url_normalization = url_normalization self.update = to_raw_response_wrapper( @@ -225,8 +225,8 @@ def __init__(self, url_normalization: URLNormalization) -> None: ) -class AsyncURLNormalizationWithRawResponse: - def __init__(self, url_normalization: AsyncURLNormalization) -> None: +class AsyncURLNormalizationResourceWithRawResponse: + def __init__(self, url_normalization: AsyncURLNormalizationResource) -> None: self._url_normalization = url_normalization self.update = async_to_raw_response_wrapper( @@ -237,8 +237,8 @@ def __init__(self, url_normalization: AsyncURLNormalization) -> None: ) -class URLNormalizationWithStreamingResponse: - def __init__(self, url_normalization: URLNormalization) -> None: +class URLNormalizationResourceWithStreamingResponse: + def __init__(self, url_normalization: URLNormalizationResource) -> None: self._url_normalization = url_normalization self.update = to_streamed_response_wrapper( @@ -249,8 +249,8 @@ def __init__(self, url_normalization: URLNormalization) -> None: ) -class AsyncURLNormalizationWithStreamingResponse: - def __init__(self, url_normalization: AsyncURLNormalization) -> None: +class AsyncURLNormalizationResourceWithStreamingResponse: + def __init__(self, url_normalization: AsyncURLNormalizationResource) -> None: self._url_normalization = url_normalization self.update = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/url_scanner/__init__.py b/src/cloudflare/resources/url_scanner/__init__.py index ef70f72a953..711e0a9410a 100644 --- a/src/cloudflare/resources/url_scanner/__init__.py +++ b/src/cloudflare/resources/url_scanner/__init__.py @@ -1,33 +1,33 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from .scans import ( - Scans, - AsyncScans, - ScansWithRawResponse, - AsyncScansWithRawResponse, - ScansWithStreamingResponse, - AsyncScansWithStreamingResponse, + ScansResource, + AsyncScansResource, + ScansResourceWithRawResponse, + AsyncScansResourceWithRawResponse, + ScansResourceWithStreamingResponse, + AsyncScansResourceWithStreamingResponse, ) from .url_scanner import ( - URLScanner, - AsyncURLScanner, - URLScannerWithRawResponse, - AsyncURLScannerWithRawResponse, - URLScannerWithStreamingResponse, - AsyncURLScannerWithStreamingResponse, + URLScannerResource, + AsyncURLScannerResource, + URLScannerResourceWithRawResponse, + AsyncURLScannerResourceWithRawResponse, + URLScannerResourceWithStreamingResponse, + AsyncURLScannerResourceWithStreamingResponse, ) __all__ = [ - "Scans", - "AsyncScans", - "ScansWithRawResponse", - "AsyncScansWithRawResponse", - "ScansWithStreamingResponse", - "AsyncScansWithStreamingResponse", - "URLScanner", - "AsyncURLScanner", - "URLScannerWithRawResponse", - "AsyncURLScannerWithRawResponse", - "URLScannerWithStreamingResponse", - "AsyncURLScannerWithStreamingResponse", + "ScansResource", + "AsyncScansResource", + "ScansResourceWithRawResponse", + "AsyncScansResourceWithRawResponse", + "ScansResourceWithStreamingResponse", + "AsyncScansResourceWithStreamingResponse", + "URLScannerResource", + "AsyncURLScannerResource", + "URLScannerResourceWithRawResponse", + "AsyncURLScannerResourceWithRawResponse", + "URLScannerResourceWithStreamingResponse", + "AsyncURLScannerResourceWithStreamingResponse", ] diff --git a/src/cloudflare/resources/url_scanner/scans.py b/src/cloudflare/resources/url_scanner/scans.py index 396e353d21b..5708cfda794 100644 --- a/src/cloudflare/resources/url_scanner/scans.py +++ b/src/cloudflare/resources/url_scanner/scans.py @@ -37,17 +37,17 @@ from ...types.url_scanner.scan_har_response import ScanHarResponse from ...types.url_scanner.scan_create_response import ScanCreateResponse -__all__ = ["Scans", "AsyncScans"] +__all__ = ["ScansResource", "AsyncScansResource"] -class Scans(SyncAPIResource): +class ScansResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> ScansWithRawResponse: - return ScansWithRawResponse(self) + def with_raw_response(self) -> ScansResourceWithRawResponse: + return ScansResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> ScansWithStreamingResponse: - return ScansWithStreamingResponse(self) + def with_streaming_response(self) -> ScansResourceWithStreamingResponse: + return ScansResourceWithStreamingResponse(self) def create( self, @@ -253,14 +253,14 @@ def screenshot( ) -class AsyncScans(AsyncAPIResource): +class AsyncScansResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncScansWithRawResponse: - return AsyncScansWithRawResponse(self) + def with_raw_response(self) -> AsyncScansResourceWithRawResponse: + return AsyncScansResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncScansWithStreamingResponse: - return AsyncScansWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncScansResourceWithStreamingResponse: + return AsyncScansResourceWithStreamingResponse(self) async def create( self, @@ -468,8 +468,8 @@ async def screenshot( ) -class ScansWithRawResponse: - def __init__(self, scans: Scans) -> None: +class ScansResourceWithRawResponse: + def __init__(self, scans: ScansResource) -> None: self._scans = scans self.create = to_raw_response_wrapper( @@ -487,8 +487,8 @@ def __init__(self, scans: Scans) -> None: ) -class AsyncScansWithRawResponse: - def __init__(self, scans: AsyncScans) -> None: +class AsyncScansResourceWithRawResponse: + def __init__(self, scans: AsyncScansResource) -> None: self._scans = scans self.create = async_to_raw_response_wrapper( @@ -506,8 +506,8 @@ def __init__(self, scans: AsyncScans) -> None: ) -class ScansWithStreamingResponse: - def __init__(self, scans: Scans) -> None: +class ScansResourceWithStreamingResponse: + def __init__(self, scans: ScansResource) -> None: self._scans = scans self.create = to_streamed_response_wrapper( @@ -525,8 +525,8 @@ def __init__(self, scans: Scans) -> None: ) -class AsyncScansWithStreamingResponse: - def __init__(self, scans: AsyncScans) -> None: +class AsyncScansResourceWithStreamingResponse: + def __init__(self, scans: AsyncScansResource) -> None: self._scans = scans self.create = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/url_scanner/url_scanner.py b/src/cloudflare/resources/url_scanner/url_scanner.py index 60dc34588e5..f1924bb49e7 100644 --- a/src/cloudflare/resources/url_scanner/url_scanner.py +++ b/src/cloudflare/resources/url_scanner/url_scanner.py @@ -8,12 +8,12 @@ import httpx from .scans import ( - Scans, - AsyncScans, - ScansWithRawResponse, - AsyncScansWithRawResponse, - ScansWithStreamingResponse, - AsyncScansWithStreamingResponse, + ScansResource, + AsyncScansResource, + ScansResourceWithRawResponse, + AsyncScansResourceWithRawResponse, + ScansResourceWithStreamingResponse, + AsyncScansResourceWithStreamingResponse, ) from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven from ..._utils import ( @@ -35,21 +35,21 @@ from ...types.url_scanner import url_scanner_scan_params from ...types.url_scanner.url_scanner_scan_response import URLScannerScanResponse -__all__ = ["URLScanner", "AsyncURLScanner"] +__all__ = ["URLScannerResource", "AsyncURLScannerResource"] -class URLScanner(SyncAPIResource): +class URLScannerResource(SyncAPIResource): @cached_property - def scans(self) -> Scans: - return Scans(self._client) + def scans(self) -> ScansResource: + return ScansResource(self._client) @cached_property - def with_raw_response(self) -> URLScannerWithRawResponse: - return URLScannerWithRawResponse(self) + def with_raw_response(self) -> URLScannerResourceWithRawResponse: + return URLScannerResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> URLScannerWithStreamingResponse: - return URLScannerWithStreamingResponse(self) + def with_streaming_response(self) -> URLScannerResourceWithStreamingResponse: + return URLScannerResourceWithStreamingResponse(self) def scan( self, @@ -170,18 +170,18 @@ def scan( ) -class AsyncURLScanner(AsyncAPIResource): +class AsyncURLScannerResource(AsyncAPIResource): @cached_property - def scans(self) -> AsyncScans: - return AsyncScans(self._client) + def scans(self) -> AsyncScansResource: + return AsyncScansResource(self._client) @cached_property - def with_raw_response(self) -> AsyncURLScannerWithRawResponse: - return AsyncURLScannerWithRawResponse(self) + def with_raw_response(self) -> AsyncURLScannerResourceWithRawResponse: + return AsyncURLScannerResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncURLScannerWithStreamingResponse: - return AsyncURLScannerWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncURLScannerResourceWithStreamingResponse: + return AsyncURLScannerResourceWithStreamingResponse(self) async def scan( self, @@ -302,8 +302,8 @@ async def scan( ) -class URLScannerWithRawResponse: - def __init__(self, url_scanner: URLScanner) -> None: +class URLScannerResourceWithRawResponse: + def __init__(self, url_scanner: URLScannerResource) -> None: self._url_scanner = url_scanner self.scan = to_raw_response_wrapper( @@ -311,12 +311,12 @@ def __init__(self, url_scanner: URLScanner) -> None: ) @cached_property - def scans(self) -> ScansWithRawResponse: - return ScansWithRawResponse(self._url_scanner.scans) + def scans(self) -> ScansResourceWithRawResponse: + return ScansResourceWithRawResponse(self._url_scanner.scans) -class AsyncURLScannerWithRawResponse: - def __init__(self, url_scanner: AsyncURLScanner) -> None: +class AsyncURLScannerResourceWithRawResponse: + def __init__(self, url_scanner: AsyncURLScannerResource) -> None: self._url_scanner = url_scanner self.scan = async_to_raw_response_wrapper( @@ -324,12 +324,12 @@ def __init__(self, url_scanner: AsyncURLScanner) -> None: ) @cached_property - def scans(self) -> AsyncScansWithRawResponse: - return AsyncScansWithRawResponse(self._url_scanner.scans) + def scans(self) -> AsyncScansResourceWithRawResponse: + return AsyncScansResourceWithRawResponse(self._url_scanner.scans) -class URLScannerWithStreamingResponse: - def __init__(self, url_scanner: URLScanner) -> None: +class URLScannerResourceWithStreamingResponse: + def __init__(self, url_scanner: URLScannerResource) -> None: self._url_scanner = url_scanner self.scan = to_streamed_response_wrapper( @@ -337,12 +337,12 @@ def __init__(self, url_scanner: URLScanner) -> None: ) @cached_property - def scans(self) -> ScansWithStreamingResponse: - return ScansWithStreamingResponse(self._url_scanner.scans) + def scans(self) -> ScansResourceWithStreamingResponse: + return ScansResourceWithStreamingResponse(self._url_scanner.scans) -class AsyncURLScannerWithStreamingResponse: - def __init__(self, url_scanner: AsyncURLScanner) -> None: +class AsyncURLScannerResourceWithStreamingResponse: + def __init__(self, url_scanner: AsyncURLScannerResource) -> None: self._url_scanner = url_scanner self.scan = async_to_streamed_response_wrapper( @@ -350,5 +350,5 @@ def __init__(self, url_scanner: AsyncURLScanner) -> None: ) @cached_property - def scans(self) -> AsyncScansWithStreamingResponse: - return AsyncScansWithStreamingResponse(self._url_scanner.scans) + def scans(self) -> AsyncScansResourceWithStreamingResponse: + return AsyncScansResourceWithStreamingResponse(self._url_scanner.scans) diff --git a/src/cloudflare/resources/user/__init__.py b/src/cloudflare/resources/user/__init__.py index ff166570765..1ae3753c27c 100644 --- a/src/cloudflare/resources/user/__init__.py +++ b/src/cloudflare/resources/user/__init__.py @@ -1,103 +1,103 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from .user import ( - User, - AsyncUser, - UserWithRawResponse, - AsyncUserWithRawResponse, - UserWithStreamingResponse, - AsyncUserWithStreamingResponse, + UserResource, + AsyncUserResource, + UserResourceWithRawResponse, + AsyncUserResourceWithRawResponse, + UserResourceWithStreamingResponse, + AsyncUserResourceWithStreamingResponse, ) from .tokens import ( - Tokens, - AsyncTokens, - TokensWithRawResponse, - AsyncTokensWithRawResponse, - TokensWithStreamingResponse, - AsyncTokensWithStreamingResponse, + TokensResource, + AsyncTokensResource, + TokensResourceWithRawResponse, + AsyncTokensResourceWithRawResponse, + TokensResourceWithStreamingResponse, + AsyncTokensResourceWithStreamingResponse, ) from .billing import ( - Billing, - AsyncBilling, - BillingWithRawResponse, - AsyncBillingWithRawResponse, - BillingWithStreamingResponse, - AsyncBillingWithStreamingResponse, + BillingResource, + AsyncBillingResource, + BillingResourceWithRawResponse, + AsyncBillingResourceWithRawResponse, + BillingResourceWithStreamingResponse, + AsyncBillingResourceWithStreamingResponse, ) from .invites import ( - Invites, - AsyncInvites, - InvitesWithRawResponse, - AsyncInvitesWithRawResponse, - InvitesWithStreamingResponse, - AsyncInvitesWithStreamingResponse, + InvitesResource, + AsyncInvitesResource, + InvitesResourceWithRawResponse, + AsyncInvitesResourceWithRawResponse, + InvitesResourceWithStreamingResponse, + AsyncInvitesResourceWithStreamingResponse, ) from .audit_logs import ( - AuditLogs, - AsyncAuditLogs, - AuditLogsWithRawResponse, - AsyncAuditLogsWithRawResponse, - AuditLogsWithStreamingResponse, - AsyncAuditLogsWithStreamingResponse, + AuditLogsResource, + AsyncAuditLogsResource, + AuditLogsResourceWithRawResponse, + AsyncAuditLogsResourceWithRawResponse, + AuditLogsResourceWithStreamingResponse, + AsyncAuditLogsResourceWithStreamingResponse, ) from .organizations import ( - Organizations, - AsyncOrganizations, - OrganizationsWithRawResponse, - AsyncOrganizationsWithRawResponse, - OrganizationsWithStreamingResponse, - AsyncOrganizationsWithStreamingResponse, + OrganizationsResource, + AsyncOrganizationsResource, + OrganizationsResourceWithRawResponse, + AsyncOrganizationsResourceWithRawResponse, + OrganizationsResourceWithStreamingResponse, + AsyncOrganizationsResourceWithStreamingResponse, ) from .subscriptions import ( - Subscriptions, - AsyncSubscriptions, - SubscriptionsWithRawResponse, - AsyncSubscriptionsWithRawResponse, - SubscriptionsWithStreamingResponse, - AsyncSubscriptionsWithStreamingResponse, + SubscriptionsResource, + AsyncSubscriptionsResource, + SubscriptionsResourceWithRawResponse, + AsyncSubscriptionsResourceWithRawResponse, + SubscriptionsResourceWithStreamingResponse, + AsyncSubscriptionsResourceWithStreamingResponse, ) __all__ = [ - "AuditLogs", - "AsyncAuditLogs", - "AuditLogsWithRawResponse", - "AsyncAuditLogsWithRawResponse", - "AuditLogsWithStreamingResponse", - "AsyncAuditLogsWithStreamingResponse", - "Billing", - "AsyncBilling", - "BillingWithRawResponse", - "AsyncBillingWithRawResponse", - "BillingWithStreamingResponse", - "AsyncBillingWithStreamingResponse", - "Invites", - "AsyncInvites", - "InvitesWithRawResponse", - "AsyncInvitesWithRawResponse", - "InvitesWithStreamingResponse", - "AsyncInvitesWithStreamingResponse", - "Organizations", - "AsyncOrganizations", - "OrganizationsWithRawResponse", - "AsyncOrganizationsWithRawResponse", - "OrganizationsWithStreamingResponse", - "AsyncOrganizationsWithStreamingResponse", - "Subscriptions", - "AsyncSubscriptions", - "SubscriptionsWithRawResponse", - "AsyncSubscriptionsWithRawResponse", - "SubscriptionsWithStreamingResponse", - "AsyncSubscriptionsWithStreamingResponse", - "Tokens", - "AsyncTokens", - "TokensWithRawResponse", - "AsyncTokensWithRawResponse", - "TokensWithStreamingResponse", - "AsyncTokensWithStreamingResponse", - "User", - "AsyncUser", - "UserWithRawResponse", - "AsyncUserWithRawResponse", - "UserWithStreamingResponse", - "AsyncUserWithStreamingResponse", + "AuditLogsResource", + "AsyncAuditLogsResource", + "AuditLogsResourceWithRawResponse", + "AsyncAuditLogsResourceWithRawResponse", + "AuditLogsResourceWithStreamingResponse", + "AsyncAuditLogsResourceWithStreamingResponse", + "BillingResource", + "AsyncBillingResource", + "BillingResourceWithRawResponse", + "AsyncBillingResourceWithRawResponse", + "BillingResourceWithStreamingResponse", + "AsyncBillingResourceWithStreamingResponse", + "InvitesResource", + "AsyncInvitesResource", + "InvitesResourceWithRawResponse", + "AsyncInvitesResourceWithRawResponse", + "InvitesResourceWithStreamingResponse", + "AsyncInvitesResourceWithStreamingResponse", + "OrganizationsResource", + "AsyncOrganizationsResource", + "OrganizationsResourceWithRawResponse", + "AsyncOrganizationsResourceWithRawResponse", + "OrganizationsResourceWithStreamingResponse", + "AsyncOrganizationsResourceWithStreamingResponse", + "SubscriptionsResource", + "AsyncSubscriptionsResource", + "SubscriptionsResourceWithRawResponse", + "AsyncSubscriptionsResourceWithRawResponse", + "SubscriptionsResourceWithStreamingResponse", + "AsyncSubscriptionsResourceWithStreamingResponse", + "TokensResource", + "AsyncTokensResource", + "TokensResourceWithRawResponse", + "AsyncTokensResourceWithRawResponse", + "TokensResourceWithStreamingResponse", + "AsyncTokensResourceWithStreamingResponse", + "UserResource", + "AsyncUserResource", + "UserResourceWithRawResponse", + "AsyncUserResourceWithRawResponse", + "UserResourceWithStreamingResponse", + "AsyncUserResourceWithStreamingResponse", ] diff --git a/src/cloudflare/resources/user/audit_logs.py b/src/cloudflare/resources/user/audit_logs.py index f6c414adf55..6699c4aef11 100644 --- a/src/cloudflare/resources/user/audit_logs.py +++ b/src/cloudflare/resources/user/audit_logs.py @@ -26,17 +26,17 @@ ) from ...types.shared.audit_log import AuditLog -__all__ = ["AuditLogs", "AsyncAuditLogs"] +__all__ = ["AuditLogsResource", "AsyncAuditLogsResource"] -class AuditLogs(SyncAPIResource): +class AuditLogsResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> AuditLogsWithRawResponse: - return AuditLogsWithRawResponse(self) + def with_raw_response(self) -> AuditLogsResourceWithRawResponse: + return AuditLogsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AuditLogsWithStreamingResponse: - return AuditLogsWithStreamingResponse(self) + def with_streaming_response(self) -> AuditLogsResourceWithStreamingResponse: + return AuditLogsResourceWithStreamingResponse(self) def list( self, @@ -120,14 +120,14 @@ def list( ) -class AsyncAuditLogs(AsyncAPIResource): +class AsyncAuditLogsResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncAuditLogsWithRawResponse: - return AsyncAuditLogsWithRawResponse(self) + def with_raw_response(self) -> AsyncAuditLogsResourceWithRawResponse: + return AsyncAuditLogsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncAuditLogsWithStreamingResponse: - return AsyncAuditLogsWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncAuditLogsResourceWithStreamingResponse: + return AsyncAuditLogsResourceWithStreamingResponse(self) def list( self, @@ -211,8 +211,8 @@ def list( ) -class AuditLogsWithRawResponse: - def __init__(self, audit_logs: AuditLogs) -> None: +class AuditLogsResourceWithRawResponse: + def __init__(self, audit_logs: AuditLogsResource) -> None: self._audit_logs = audit_logs self.list = to_raw_response_wrapper( @@ -220,8 +220,8 @@ def __init__(self, audit_logs: AuditLogs) -> None: ) -class AsyncAuditLogsWithRawResponse: - def __init__(self, audit_logs: AsyncAuditLogs) -> None: +class AsyncAuditLogsResourceWithRawResponse: + def __init__(self, audit_logs: AsyncAuditLogsResource) -> None: self._audit_logs = audit_logs self.list = async_to_raw_response_wrapper( @@ -229,8 +229,8 @@ def __init__(self, audit_logs: AsyncAuditLogs) -> None: ) -class AuditLogsWithStreamingResponse: - def __init__(self, audit_logs: AuditLogs) -> None: +class AuditLogsResourceWithStreamingResponse: + def __init__(self, audit_logs: AuditLogsResource) -> None: self._audit_logs = audit_logs self.list = to_streamed_response_wrapper( @@ -238,8 +238,8 @@ def __init__(self, audit_logs: AuditLogs) -> None: ) -class AsyncAuditLogsWithStreamingResponse: - def __init__(self, audit_logs: AsyncAuditLogs) -> None: +class AsyncAuditLogsResourceWithStreamingResponse: + def __init__(self, audit_logs: AsyncAuditLogsResource) -> None: self._audit_logs = audit_logs self.list = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/user/billing/__init__.py b/src/cloudflare/resources/user/billing/__init__.py index 304d79a21a9..060ff8f729d 100644 --- a/src/cloudflare/resources/user/billing/__init__.py +++ b/src/cloudflare/resources/user/billing/__init__.py @@ -1,47 +1,47 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from .billing import ( - Billing, - AsyncBilling, - BillingWithRawResponse, - AsyncBillingWithRawResponse, - BillingWithStreamingResponse, - AsyncBillingWithStreamingResponse, + BillingResource, + AsyncBillingResource, + BillingResourceWithRawResponse, + AsyncBillingResourceWithRawResponse, + BillingResourceWithStreamingResponse, + AsyncBillingResourceWithStreamingResponse, ) from .history import ( - History, - AsyncHistory, - HistoryWithRawResponse, - AsyncHistoryWithRawResponse, - HistoryWithStreamingResponse, - AsyncHistoryWithStreamingResponse, + HistoryResource, + AsyncHistoryResource, + HistoryResourceWithRawResponse, + AsyncHistoryResourceWithRawResponse, + HistoryResourceWithStreamingResponse, + AsyncHistoryResourceWithStreamingResponse, ) from .profile import ( - Profile, - AsyncProfile, - ProfileWithRawResponse, - AsyncProfileWithRawResponse, - ProfileWithStreamingResponse, - AsyncProfileWithStreamingResponse, + ProfileResource, + AsyncProfileResource, + ProfileResourceWithRawResponse, + AsyncProfileResourceWithRawResponse, + ProfileResourceWithStreamingResponse, + AsyncProfileResourceWithStreamingResponse, ) __all__ = [ - "History", - "AsyncHistory", - "HistoryWithRawResponse", - "AsyncHistoryWithRawResponse", - "HistoryWithStreamingResponse", - "AsyncHistoryWithStreamingResponse", - "Profile", - "AsyncProfile", - "ProfileWithRawResponse", - "AsyncProfileWithRawResponse", - "ProfileWithStreamingResponse", - "AsyncProfileWithStreamingResponse", - "Billing", - "AsyncBilling", - "BillingWithRawResponse", - "AsyncBillingWithRawResponse", - "BillingWithStreamingResponse", - "AsyncBillingWithStreamingResponse", + "HistoryResource", + "AsyncHistoryResource", + "HistoryResourceWithRawResponse", + "AsyncHistoryResourceWithRawResponse", + "HistoryResourceWithStreamingResponse", + "AsyncHistoryResourceWithStreamingResponse", + "ProfileResource", + "AsyncProfileResource", + "ProfileResourceWithRawResponse", + "AsyncProfileResourceWithRawResponse", + "ProfileResourceWithStreamingResponse", + "AsyncProfileResourceWithStreamingResponse", + "BillingResource", + "AsyncBillingResource", + "BillingResourceWithRawResponse", + "AsyncBillingResourceWithRawResponse", + "BillingResourceWithStreamingResponse", + "AsyncBillingResourceWithStreamingResponse", ] diff --git a/src/cloudflare/resources/user/billing/billing.py b/src/cloudflare/resources/user/billing/billing.py index 02eee039b1e..ceb48cdb474 100644 --- a/src/cloudflare/resources/user/billing/billing.py +++ b/src/cloudflare/resources/user/billing/billing.py @@ -3,110 +3,110 @@ from __future__ import annotations from .history import ( - History, - AsyncHistory, - HistoryWithRawResponse, - AsyncHistoryWithRawResponse, - HistoryWithStreamingResponse, - AsyncHistoryWithStreamingResponse, + HistoryResource, + AsyncHistoryResource, + HistoryResourceWithRawResponse, + AsyncHistoryResourceWithRawResponse, + HistoryResourceWithStreamingResponse, + AsyncHistoryResourceWithStreamingResponse, ) from .profile import ( - Profile, - AsyncProfile, - ProfileWithRawResponse, - AsyncProfileWithRawResponse, - ProfileWithStreamingResponse, - AsyncProfileWithStreamingResponse, + ProfileResource, + AsyncProfileResource, + ProfileResourceWithRawResponse, + AsyncProfileResourceWithRawResponse, + ProfileResourceWithStreamingResponse, + AsyncProfileResourceWithStreamingResponse, ) from ...._compat import cached_property from ...._resource import SyncAPIResource, AsyncAPIResource -__all__ = ["Billing", "AsyncBilling"] +__all__ = ["BillingResource", "AsyncBillingResource"] -class Billing(SyncAPIResource): +class BillingResource(SyncAPIResource): @cached_property - def history(self) -> History: - return History(self._client) + def history(self) -> HistoryResource: + return HistoryResource(self._client) @cached_property - def profile(self) -> Profile: - return Profile(self._client) + def profile(self) -> ProfileResource: + return ProfileResource(self._client) @cached_property - def with_raw_response(self) -> BillingWithRawResponse: - return BillingWithRawResponse(self) + def with_raw_response(self) -> BillingResourceWithRawResponse: + return BillingResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> BillingWithStreamingResponse: - return BillingWithStreamingResponse(self) + def with_streaming_response(self) -> BillingResourceWithStreamingResponse: + return BillingResourceWithStreamingResponse(self) -class AsyncBilling(AsyncAPIResource): +class AsyncBillingResource(AsyncAPIResource): @cached_property - def history(self) -> AsyncHistory: - return AsyncHistory(self._client) + def history(self) -> AsyncHistoryResource: + return AsyncHistoryResource(self._client) @cached_property - def profile(self) -> AsyncProfile: - return AsyncProfile(self._client) + def profile(self) -> AsyncProfileResource: + return AsyncProfileResource(self._client) @cached_property - def with_raw_response(self) -> AsyncBillingWithRawResponse: - return AsyncBillingWithRawResponse(self) + def with_raw_response(self) -> AsyncBillingResourceWithRawResponse: + return AsyncBillingResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncBillingWithStreamingResponse: - return AsyncBillingWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncBillingResourceWithStreamingResponse: + return AsyncBillingResourceWithStreamingResponse(self) -class BillingWithRawResponse: - def __init__(self, billing: Billing) -> None: +class BillingResourceWithRawResponse: + def __init__(self, billing: BillingResource) -> None: self._billing = billing @cached_property - def history(self) -> HistoryWithRawResponse: - return HistoryWithRawResponse(self._billing.history) + def history(self) -> HistoryResourceWithRawResponse: + return HistoryResourceWithRawResponse(self._billing.history) @cached_property - def profile(self) -> ProfileWithRawResponse: - return ProfileWithRawResponse(self._billing.profile) + def profile(self) -> ProfileResourceWithRawResponse: + return ProfileResourceWithRawResponse(self._billing.profile) -class AsyncBillingWithRawResponse: - def __init__(self, billing: AsyncBilling) -> None: +class AsyncBillingResourceWithRawResponse: + def __init__(self, billing: AsyncBillingResource) -> None: self._billing = billing @cached_property - def history(self) -> AsyncHistoryWithRawResponse: - return AsyncHistoryWithRawResponse(self._billing.history) + def history(self) -> AsyncHistoryResourceWithRawResponse: + return AsyncHistoryResourceWithRawResponse(self._billing.history) @cached_property - def profile(self) -> AsyncProfileWithRawResponse: - return AsyncProfileWithRawResponse(self._billing.profile) + def profile(self) -> AsyncProfileResourceWithRawResponse: + return AsyncProfileResourceWithRawResponse(self._billing.profile) -class BillingWithStreamingResponse: - def __init__(self, billing: Billing) -> None: +class BillingResourceWithStreamingResponse: + def __init__(self, billing: BillingResource) -> None: self._billing = billing @cached_property - def history(self) -> HistoryWithStreamingResponse: - return HistoryWithStreamingResponse(self._billing.history) + def history(self) -> HistoryResourceWithStreamingResponse: + return HistoryResourceWithStreamingResponse(self._billing.history) @cached_property - def profile(self) -> ProfileWithStreamingResponse: - return ProfileWithStreamingResponse(self._billing.profile) + def profile(self) -> ProfileResourceWithStreamingResponse: + return ProfileResourceWithStreamingResponse(self._billing.profile) -class AsyncBillingWithStreamingResponse: - def __init__(self, billing: AsyncBilling) -> None: +class AsyncBillingResourceWithStreamingResponse: + def __init__(self, billing: AsyncBillingResource) -> None: self._billing = billing @cached_property - def history(self) -> AsyncHistoryWithStreamingResponse: - return AsyncHistoryWithStreamingResponse(self._billing.history) + def history(self) -> AsyncHistoryResourceWithStreamingResponse: + return AsyncHistoryResourceWithStreamingResponse(self._billing.history) @cached_property - def profile(self) -> AsyncProfileWithStreamingResponse: - return AsyncProfileWithStreamingResponse(self._billing.profile) + def profile(self) -> AsyncProfileResourceWithStreamingResponse: + return AsyncProfileResourceWithStreamingResponse(self._billing.profile) diff --git a/src/cloudflare/resources/user/billing/history.py b/src/cloudflare/resources/user/billing/history.py index d207535c725..538d34c5186 100644 --- a/src/cloudflare/resources/user/billing/history.py +++ b/src/cloudflare/resources/user/billing/history.py @@ -26,17 +26,17 @@ from ....types.user.billing import history_list_params from ....types.user.billing.billing_history import BillingHistory -__all__ = ["History", "AsyncHistory"] +__all__ = ["HistoryResource", "AsyncHistoryResource"] -class History(SyncAPIResource): +class HistoryResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> HistoryWithRawResponse: - return HistoryWithRawResponse(self) + def with_raw_response(self) -> HistoryResourceWithRawResponse: + return HistoryResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> HistoryWithStreamingResponse: - return HistoryWithStreamingResponse(self) + def with_streaming_response(self) -> HistoryResourceWithStreamingResponse: + return HistoryResourceWithStreamingResponse(self) def list( self, @@ -106,14 +106,14 @@ def list( ) -class AsyncHistory(AsyncAPIResource): +class AsyncHistoryResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncHistoryWithRawResponse: - return AsyncHistoryWithRawResponse(self) + def with_raw_response(self) -> AsyncHistoryResourceWithRawResponse: + return AsyncHistoryResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncHistoryWithStreamingResponse: - return AsyncHistoryWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncHistoryResourceWithStreamingResponse: + return AsyncHistoryResourceWithStreamingResponse(self) def list( self, @@ -183,8 +183,8 @@ def list( ) -class HistoryWithRawResponse: - def __init__(self, history: History) -> None: +class HistoryResourceWithRawResponse: + def __init__(self, history: HistoryResource) -> None: self._history = history self.list = to_raw_response_wrapper( @@ -192,8 +192,8 @@ def __init__(self, history: History) -> None: ) -class AsyncHistoryWithRawResponse: - def __init__(self, history: AsyncHistory) -> None: +class AsyncHistoryResourceWithRawResponse: + def __init__(self, history: AsyncHistoryResource) -> None: self._history = history self.list = async_to_raw_response_wrapper( @@ -201,8 +201,8 @@ def __init__(self, history: AsyncHistory) -> None: ) -class HistoryWithStreamingResponse: - def __init__(self, history: History) -> None: +class HistoryResourceWithStreamingResponse: + def __init__(self, history: HistoryResource) -> None: self._history = history self.list = to_streamed_response_wrapper( @@ -210,8 +210,8 @@ def __init__(self, history: History) -> None: ) -class AsyncHistoryWithStreamingResponse: - def __init__(self, history: AsyncHistory) -> None: +class AsyncHistoryResourceWithStreamingResponse: + def __init__(self, history: AsyncHistoryResource) -> None: self._history = history self.list = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/user/billing/profile.py b/src/cloudflare/resources/user/billing/profile.py index c1b4bc78a77..1a12d11902a 100644 --- a/src/cloudflare/resources/user/billing/profile.py +++ b/src/cloudflare/resources/user/billing/profile.py @@ -21,17 +21,17 @@ ) from ....types.user.billing.profile_get_response import ProfileGetResponse -__all__ = ["Profile", "AsyncProfile"] +__all__ = ["ProfileResource", "AsyncProfileResource"] -class Profile(SyncAPIResource): +class ProfileResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> ProfileWithRawResponse: - return ProfileWithRawResponse(self) + def with_raw_response(self) -> ProfileResourceWithRawResponse: + return ProfileResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> ProfileWithStreamingResponse: - return ProfileWithStreamingResponse(self) + def with_streaming_response(self) -> ProfileResourceWithStreamingResponse: + return ProfileResourceWithStreamingResponse(self) def get( self, @@ -62,14 +62,14 @@ def get( ) -class AsyncProfile(AsyncAPIResource): +class AsyncProfileResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncProfileWithRawResponse: - return AsyncProfileWithRawResponse(self) + def with_raw_response(self) -> AsyncProfileResourceWithRawResponse: + return AsyncProfileResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncProfileWithStreamingResponse: - return AsyncProfileWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncProfileResourceWithStreamingResponse: + return AsyncProfileResourceWithStreamingResponse(self) async def get( self, @@ -100,8 +100,8 @@ async def get( ) -class ProfileWithRawResponse: - def __init__(self, profile: Profile) -> None: +class ProfileResourceWithRawResponse: + def __init__(self, profile: ProfileResource) -> None: self._profile = profile self.get = to_raw_response_wrapper( @@ -109,8 +109,8 @@ def __init__(self, profile: Profile) -> None: ) -class AsyncProfileWithRawResponse: - def __init__(self, profile: AsyncProfile) -> None: +class AsyncProfileResourceWithRawResponse: + def __init__(self, profile: AsyncProfileResource) -> None: self._profile = profile self.get = async_to_raw_response_wrapper( @@ -118,8 +118,8 @@ def __init__(self, profile: AsyncProfile) -> None: ) -class ProfileWithStreamingResponse: - def __init__(self, profile: Profile) -> None: +class ProfileResourceWithStreamingResponse: + def __init__(self, profile: ProfileResource) -> None: self._profile = profile self.get = to_streamed_response_wrapper( @@ -127,8 +127,8 @@ def __init__(self, profile: Profile) -> None: ) -class AsyncProfileWithStreamingResponse: - def __init__(self, profile: AsyncProfile) -> None: +class AsyncProfileResourceWithStreamingResponse: + def __init__(self, profile: AsyncProfileResource) -> None: self._profile = profile self.get = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/user/invites.py b/src/cloudflare/resources/user/invites.py index a37a37aca00..197fa07e530 100644 --- a/src/cloudflare/resources/user/invites.py +++ b/src/cloudflare/resources/user/invites.py @@ -31,17 +31,17 @@ from ...types.user.invite_get_response import InviteGetResponse from ...types.user.invite_edit_response import InviteEditResponse -__all__ = ["Invites", "AsyncInvites"] +__all__ = ["InvitesResource", "AsyncInvitesResource"] -class Invites(SyncAPIResource): +class InvitesResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> InvitesWithRawResponse: - return InvitesWithRawResponse(self) + def with_raw_response(self) -> InvitesResourceWithRawResponse: + return InvitesResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> InvitesWithStreamingResponse: - return InvitesWithStreamingResponse(self) + def with_streaming_response(self) -> InvitesResourceWithStreamingResponse: + return InvitesResourceWithStreamingResponse(self) def list( self, @@ -156,14 +156,14 @@ def get( ) -class AsyncInvites(AsyncAPIResource): +class AsyncInvitesResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncInvitesWithRawResponse: - return AsyncInvitesWithRawResponse(self) + def with_raw_response(self) -> AsyncInvitesResourceWithRawResponse: + return AsyncInvitesResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncInvitesWithStreamingResponse: - return AsyncInvitesWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncInvitesResourceWithStreamingResponse: + return AsyncInvitesResourceWithStreamingResponse(self) def list( self, @@ -278,8 +278,8 @@ async def get( ) -class InvitesWithRawResponse: - def __init__(self, invites: Invites) -> None: +class InvitesResourceWithRawResponse: + def __init__(self, invites: InvitesResource) -> None: self._invites = invites self.list = to_raw_response_wrapper( @@ -293,8 +293,8 @@ def __init__(self, invites: Invites) -> None: ) -class AsyncInvitesWithRawResponse: - def __init__(self, invites: AsyncInvites) -> None: +class AsyncInvitesResourceWithRawResponse: + def __init__(self, invites: AsyncInvitesResource) -> None: self._invites = invites self.list = async_to_raw_response_wrapper( @@ -308,8 +308,8 @@ def __init__(self, invites: AsyncInvites) -> None: ) -class InvitesWithStreamingResponse: - def __init__(self, invites: Invites) -> None: +class InvitesResourceWithStreamingResponse: + def __init__(self, invites: InvitesResource) -> None: self._invites = invites self.list = to_streamed_response_wrapper( @@ -323,8 +323,8 @@ def __init__(self, invites: Invites) -> None: ) -class AsyncInvitesWithStreamingResponse: - def __init__(self, invites: AsyncInvites) -> None: +class AsyncInvitesResourceWithStreamingResponse: + def __init__(self, invites: AsyncInvitesResource) -> None: self._invites = invites self.list = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/user/organizations.py b/src/cloudflare/resources/user/organizations.py index 9db1cf722d1..cf0010f5fd1 100644 --- a/src/cloudflare/resources/user/organizations.py +++ b/src/cloudflare/resources/user/organizations.py @@ -31,17 +31,17 @@ from ...types.user.organization_get_response import OrganizationGetResponse from ...types.user.organization_delete_response import OrganizationDeleteResponse -__all__ = ["Organizations", "AsyncOrganizations"] +__all__ = ["OrganizationsResource", "AsyncOrganizationsResource"] -class Organizations(SyncAPIResource): +class OrganizationsResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> OrganizationsWithRawResponse: - return OrganizationsWithRawResponse(self) + def with_raw_response(self) -> OrganizationsResourceWithRawResponse: + return OrganizationsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> OrganizationsWithStreamingResponse: - return OrganizationsWithStreamingResponse(self) + def with_streaming_response(self) -> OrganizationsResourceWithStreamingResponse: + return OrganizationsResourceWithStreamingResponse(self) def list( self, @@ -192,14 +192,14 @@ def get( ) -class AsyncOrganizations(AsyncAPIResource): +class AsyncOrganizationsResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncOrganizationsWithRawResponse: - return AsyncOrganizationsWithRawResponse(self) + def with_raw_response(self) -> AsyncOrganizationsResourceWithRawResponse: + return AsyncOrganizationsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncOrganizationsWithStreamingResponse: - return AsyncOrganizationsWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncOrganizationsResourceWithStreamingResponse: + return AsyncOrganizationsResourceWithStreamingResponse(self) def list( self, @@ -350,8 +350,8 @@ async def get( ) -class OrganizationsWithRawResponse: - def __init__(self, organizations: Organizations) -> None: +class OrganizationsResourceWithRawResponse: + def __init__(self, organizations: OrganizationsResource) -> None: self._organizations = organizations self.list = to_raw_response_wrapper( @@ -365,8 +365,8 @@ def __init__(self, organizations: Organizations) -> None: ) -class AsyncOrganizationsWithRawResponse: - def __init__(self, organizations: AsyncOrganizations) -> None: +class AsyncOrganizationsResourceWithRawResponse: + def __init__(self, organizations: AsyncOrganizationsResource) -> None: self._organizations = organizations self.list = async_to_raw_response_wrapper( @@ -380,8 +380,8 @@ def __init__(self, organizations: AsyncOrganizations) -> None: ) -class OrganizationsWithStreamingResponse: - def __init__(self, organizations: Organizations) -> None: +class OrganizationsResourceWithStreamingResponse: + def __init__(self, organizations: OrganizationsResource) -> None: self._organizations = organizations self.list = to_streamed_response_wrapper( @@ -395,8 +395,8 @@ def __init__(self, organizations: Organizations) -> None: ) -class AsyncOrganizationsWithStreamingResponse: - def __init__(self, organizations: AsyncOrganizations) -> None: +class AsyncOrganizationsResourceWithStreamingResponse: + def __init__(self, organizations: AsyncOrganizationsResource) -> None: self._organizations = organizations self.list = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/user/subscriptions.py b/src/cloudflare/resources/user/subscriptions.py index 91ae1d9d4ef..f91857d27e1 100644 --- a/src/cloudflare/resources/user/subscriptions.py +++ b/src/cloudflare/resources/user/subscriptions.py @@ -37,17 +37,17 @@ from ...types.user.subscription_delete_response import SubscriptionDeleteResponse from ...types.user.subscription_update_response import SubscriptionUpdateResponse -__all__ = ["Subscriptions", "AsyncSubscriptions"] +__all__ = ["SubscriptionsResource", "AsyncSubscriptionsResource"] -class Subscriptions(SyncAPIResource): +class SubscriptionsResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> SubscriptionsWithRawResponse: - return SubscriptionsWithRawResponse(self) + def with_raw_response(self) -> SubscriptionsResourceWithRawResponse: + return SubscriptionsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> SubscriptionsWithStreamingResponse: - return SubscriptionsWithStreamingResponse(self) + def with_streaming_response(self) -> SubscriptionsResourceWithStreamingResponse: + return SubscriptionsResourceWithStreamingResponse(self) def update( self, @@ -244,14 +244,14 @@ def get( ) -class AsyncSubscriptions(AsyncAPIResource): +class AsyncSubscriptionsResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncSubscriptionsWithRawResponse: - return AsyncSubscriptionsWithRawResponse(self) + def with_raw_response(self) -> AsyncSubscriptionsResourceWithRawResponse: + return AsyncSubscriptionsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncSubscriptionsWithStreamingResponse: - return AsyncSubscriptionsWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncSubscriptionsResourceWithStreamingResponse: + return AsyncSubscriptionsResourceWithStreamingResponse(self) async def update( self, @@ -448,8 +448,8 @@ async def get( ) -class SubscriptionsWithRawResponse: - def __init__(self, subscriptions: Subscriptions) -> None: +class SubscriptionsResourceWithRawResponse: + def __init__(self, subscriptions: SubscriptionsResource) -> None: self._subscriptions = subscriptions self.update = to_raw_response_wrapper( @@ -466,8 +466,8 @@ def __init__(self, subscriptions: Subscriptions) -> None: ) -class AsyncSubscriptionsWithRawResponse: - def __init__(self, subscriptions: AsyncSubscriptions) -> None: +class AsyncSubscriptionsResourceWithRawResponse: + def __init__(self, subscriptions: AsyncSubscriptionsResource) -> None: self._subscriptions = subscriptions self.update = async_to_raw_response_wrapper( @@ -484,8 +484,8 @@ def __init__(self, subscriptions: AsyncSubscriptions) -> None: ) -class SubscriptionsWithStreamingResponse: - def __init__(self, subscriptions: Subscriptions) -> None: +class SubscriptionsResourceWithStreamingResponse: + def __init__(self, subscriptions: SubscriptionsResource) -> None: self._subscriptions = subscriptions self.update = to_streamed_response_wrapper( @@ -502,8 +502,8 @@ def __init__(self, subscriptions: Subscriptions) -> None: ) -class AsyncSubscriptionsWithStreamingResponse: - def __init__(self, subscriptions: AsyncSubscriptions) -> None: +class AsyncSubscriptionsResourceWithStreamingResponse: + def __init__(self, subscriptions: AsyncSubscriptionsResource) -> None: self._subscriptions = subscriptions self.update = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/user/tokens/__init__.py b/src/cloudflare/resources/user/tokens/__init__.py index e517da3e3a7..f42f0970969 100644 --- a/src/cloudflare/resources/user/tokens/__init__.py +++ b/src/cloudflare/resources/user/tokens/__init__.py @@ -9,39 +9,39 @@ AsyncValueResourceWithStreamingResponse, ) from .tokens import ( - Tokens, - AsyncTokens, - TokensWithRawResponse, - AsyncTokensWithRawResponse, - TokensWithStreamingResponse, - AsyncTokensWithStreamingResponse, + TokensResource, + AsyncTokensResource, + TokensResourceWithRawResponse, + AsyncTokensResourceWithRawResponse, + TokensResourceWithStreamingResponse, + AsyncTokensResourceWithStreamingResponse, ) from .permission_groups import ( - PermissionGroups, - AsyncPermissionGroups, - PermissionGroupsWithRawResponse, - AsyncPermissionGroupsWithRawResponse, - PermissionGroupsWithStreamingResponse, - AsyncPermissionGroupsWithStreamingResponse, + PermissionGroupsResource, + AsyncPermissionGroupsResource, + PermissionGroupsResourceWithRawResponse, + AsyncPermissionGroupsResourceWithRawResponse, + PermissionGroupsResourceWithStreamingResponse, + AsyncPermissionGroupsResourceWithStreamingResponse, ) __all__ = [ - "PermissionGroups", - "AsyncPermissionGroups", - "PermissionGroupsWithRawResponse", - "AsyncPermissionGroupsWithRawResponse", - "PermissionGroupsWithStreamingResponse", - "AsyncPermissionGroupsWithStreamingResponse", + "PermissionGroupsResource", + "AsyncPermissionGroupsResource", + "PermissionGroupsResourceWithRawResponse", + "AsyncPermissionGroupsResourceWithRawResponse", + "PermissionGroupsResourceWithStreamingResponse", + "AsyncPermissionGroupsResourceWithStreamingResponse", "ValueResource", "AsyncValueResource", "ValueResourceWithRawResponse", "AsyncValueResourceWithRawResponse", "ValueResourceWithStreamingResponse", "AsyncValueResourceWithStreamingResponse", - "Tokens", - "AsyncTokens", - "TokensWithRawResponse", - "AsyncTokensWithRawResponse", - "TokensWithStreamingResponse", - "AsyncTokensWithStreamingResponse", + "TokensResource", + "AsyncTokensResource", + "TokensResourceWithRawResponse", + "AsyncTokensResourceWithRawResponse", + "TokensResourceWithStreamingResponse", + "AsyncTokensResourceWithStreamingResponse", ] diff --git a/src/cloudflare/resources/user/tokens/permission_groups.py b/src/cloudflare/resources/user/tokens/permission_groups.py index 56114d8047d..427b3944862 100644 --- a/src/cloudflare/resources/user/tokens/permission_groups.py +++ b/src/cloudflare/resources/user/tokens/permission_groups.py @@ -19,17 +19,17 @@ make_request_options, ) -__all__ = ["PermissionGroups", "AsyncPermissionGroups"] +__all__ = ["PermissionGroupsResource", "AsyncPermissionGroupsResource"] -class PermissionGroups(SyncAPIResource): +class PermissionGroupsResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> PermissionGroupsWithRawResponse: - return PermissionGroupsWithRawResponse(self) + def with_raw_response(self) -> PermissionGroupsResourceWithRawResponse: + return PermissionGroupsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> PermissionGroupsWithStreamingResponse: - return PermissionGroupsWithStreamingResponse(self) + def with_streaming_response(self) -> PermissionGroupsResourceWithStreamingResponse: + return PermissionGroupsResourceWithStreamingResponse(self) def list( self, @@ -52,14 +52,14 @@ def list( ) -class AsyncPermissionGroups(AsyncAPIResource): +class AsyncPermissionGroupsResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncPermissionGroupsWithRawResponse: - return AsyncPermissionGroupsWithRawResponse(self) + def with_raw_response(self) -> AsyncPermissionGroupsResourceWithRawResponse: + return AsyncPermissionGroupsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncPermissionGroupsWithStreamingResponse: - return AsyncPermissionGroupsWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncPermissionGroupsResourceWithStreamingResponse: + return AsyncPermissionGroupsResourceWithStreamingResponse(self) def list( self, @@ -82,8 +82,8 @@ def list( ) -class PermissionGroupsWithRawResponse: - def __init__(self, permission_groups: PermissionGroups) -> None: +class PermissionGroupsResourceWithRawResponse: + def __init__(self, permission_groups: PermissionGroupsResource) -> None: self._permission_groups = permission_groups self.list = to_raw_response_wrapper( @@ -91,8 +91,8 @@ def __init__(self, permission_groups: PermissionGroups) -> None: ) -class AsyncPermissionGroupsWithRawResponse: - def __init__(self, permission_groups: AsyncPermissionGroups) -> None: +class AsyncPermissionGroupsResourceWithRawResponse: + def __init__(self, permission_groups: AsyncPermissionGroupsResource) -> None: self._permission_groups = permission_groups self.list = async_to_raw_response_wrapper( @@ -100,8 +100,8 @@ def __init__(self, permission_groups: AsyncPermissionGroups) -> None: ) -class PermissionGroupsWithStreamingResponse: - def __init__(self, permission_groups: PermissionGroups) -> None: +class PermissionGroupsResourceWithStreamingResponse: + def __init__(self, permission_groups: PermissionGroupsResource) -> None: self._permission_groups = permission_groups self.list = to_streamed_response_wrapper( @@ -109,8 +109,8 @@ def __init__(self, permission_groups: PermissionGroups) -> None: ) -class AsyncPermissionGroupsWithStreamingResponse: - def __init__(self, permission_groups: AsyncPermissionGroups) -> None: +class AsyncPermissionGroupsResourceWithStreamingResponse: + def __init__(self, permission_groups: AsyncPermissionGroupsResource) -> None: self._permission_groups = permission_groups self.list = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/user/tokens/tokens.py b/src/cloudflare/resources/user/tokens/tokens.py index bd2cf1093f5..4903b12823e 100644 --- a/src/cloudflare/resources/user/tokens/tokens.py +++ b/src/cloudflare/resources/user/tokens/tokens.py @@ -37,12 +37,12 @@ make_request_options, ) from .permission_groups import ( - PermissionGroups, - AsyncPermissionGroups, - PermissionGroupsWithRawResponse, - AsyncPermissionGroupsWithRawResponse, - PermissionGroupsWithStreamingResponse, - AsyncPermissionGroupsWithStreamingResponse, + PermissionGroupsResource, + AsyncPermissionGroupsResource, + PermissionGroupsResourceWithRawResponse, + AsyncPermissionGroupsResourceWithRawResponse, + PermissionGroupsResourceWithStreamingResponse, + AsyncPermissionGroupsResourceWithStreamingResponse, ) from ....types.user.policy_param import PolicyParam from ....types.user.token_get_response import TokenGetResponse @@ -51,25 +51,25 @@ from ....types.user.token_update_response import TokenUpdateResponse from ....types.user.token_verify_response import TokenVerifyResponse -__all__ = ["Tokens", "AsyncTokens"] +__all__ = ["TokensResource", "AsyncTokensResource"] -class Tokens(SyncAPIResource): +class TokensResource(SyncAPIResource): @cached_property - def permission_groups(self) -> PermissionGroups: - return PermissionGroups(self._client) + def permission_groups(self) -> PermissionGroupsResource: + return PermissionGroupsResource(self._client) @cached_property def value(self) -> ValueResource: return ValueResource(self._client) @cached_property - def with_raw_response(self) -> TokensWithRawResponse: - return TokensWithRawResponse(self) + def with_raw_response(self) -> TokensResourceWithRawResponse: + return TokensResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> TokensWithStreamingResponse: - return TokensWithStreamingResponse(self) + def with_streaming_response(self) -> TokensResourceWithStreamingResponse: + return TokensResourceWithStreamingResponse(self) def create( self, @@ -349,22 +349,22 @@ def verify( ) -class AsyncTokens(AsyncAPIResource): +class AsyncTokensResource(AsyncAPIResource): @cached_property - def permission_groups(self) -> AsyncPermissionGroups: - return AsyncPermissionGroups(self._client) + def permission_groups(self) -> AsyncPermissionGroupsResource: + return AsyncPermissionGroupsResource(self._client) @cached_property def value(self) -> AsyncValueResource: return AsyncValueResource(self._client) @cached_property - def with_raw_response(self) -> AsyncTokensWithRawResponse: - return AsyncTokensWithRawResponse(self) + def with_raw_response(self) -> AsyncTokensResourceWithRawResponse: + return AsyncTokensResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncTokensWithStreamingResponse: - return AsyncTokensWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncTokensResourceWithStreamingResponse: + return AsyncTokensResourceWithStreamingResponse(self) async def create( self, @@ -644,8 +644,8 @@ async def verify( ) -class TokensWithRawResponse: - def __init__(self, tokens: Tokens) -> None: +class TokensResourceWithRawResponse: + def __init__(self, tokens: TokensResource) -> None: self._tokens = tokens self.create = to_raw_response_wrapper( @@ -668,16 +668,16 @@ def __init__(self, tokens: Tokens) -> None: ) @cached_property - def permission_groups(self) -> PermissionGroupsWithRawResponse: - return PermissionGroupsWithRawResponse(self._tokens.permission_groups) + def permission_groups(self) -> PermissionGroupsResourceWithRawResponse: + return PermissionGroupsResourceWithRawResponse(self._tokens.permission_groups) @cached_property def value(self) -> ValueResourceWithRawResponse: return ValueResourceWithRawResponse(self._tokens.value) -class AsyncTokensWithRawResponse: - def __init__(self, tokens: AsyncTokens) -> None: +class AsyncTokensResourceWithRawResponse: + def __init__(self, tokens: AsyncTokensResource) -> None: self._tokens = tokens self.create = async_to_raw_response_wrapper( @@ -700,16 +700,16 @@ def __init__(self, tokens: AsyncTokens) -> None: ) @cached_property - def permission_groups(self) -> AsyncPermissionGroupsWithRawResponse: - return AsyncPermissionGroupsWithRawResponse(self._tokens.permission_groups) + def permission_groups(self) -> AsyncPermissionGroupsResourceWithRawResponse: + return AsyncPermissionGroupsResourceWithRawResponse(self._tokens.permission_groups) @cached_property def value(self) -> AsyncValueResourceWithRawResponse: return AsyncValueResourceWithRawResponse(self._tokens.value) -class TokensWithStreamingResponse: - def __init__(self, tokens: Tokens) -> None: +class TokensResourceWithStreamingResponse: + def __init__(self, tokens: TokensResource) -> None: self._tokens = tokens self.create = to_streamed_response_wrapper( @@ -732,16 +732,16 @@ def __init__(self, tokens: Tokens) -> None: ) @cached_property - def permission_groups(self) -> PermissionGroupsWithStreamingResponse: - return PermissionGroupsWithStreamingResponse(self._tokens.permission_groups) + def permission_groups(self) -> PermissionGroupsResourceWithStreamingResponse: + return PermissionGroupsResourceWithStreamingResponse(self._tokens.permission_groups) @cached_property def value(self) -> ValueResourceWithStreamingResponse: return ValueResourceWithStreamingResponse(self._tokens.value) -class AsyncTokensWithStreamingResponse: - def __init__(self, tokens: AsyncTokens) -> None: +class AsyncTokensResourceWithStreamingResponse: + def __init__(self, tokens: AsyncTokensResource) -> None: self._tokens = tokens self.create = async_to_streamed_response_wrapper( @@ -764,8 +764,8 @@ def __init__(self, tokens: AsyncTokens) -> None: ) @cached_property - def permission_groups(self) -> AsyncPermissionGroupsWithStreamingResponse: - return AsyncPermissionGroupsWithStreamingResponse(self._tokens.permission_groups) + def permission_groups(self) -> AsyncPermissionGroupsResourceWithStreamingResponse: + return AsyncPermissionGroupsResourceWithStreamingResponse(self._tokens.permission_groups) @cached_property def value(self) -> AsyncValueResourceWithStreamingResponse: diff --git a/src/cloudflare/resources/user/user.py b/src/cloudflare/resources/user/user.py index 8e286c10da9..3e9117a3321 100644 --- a/src/cloudflare/resources/user/user.py +++ b/src/cloudflare/resources/user/user.py @@ -7,28 +7,28 @@ import httpx from .tokens import ( - Tokens, - AsyncTokens, - TokensWithRawResponse, - AsyncTokensWithRawResponse, - TokensWithStreamingResponse, - AsyncTokensWithStreamingResponse, + TokensResource, + AsyncTokensResource, + TokensResourceWithRawResponse, + AsyncTokensResourceWithRawResponse, + TokensResourceWithStreamingResponse, + AsyncTokensResourceWithStreamingResponse, ) from .billing import ( - Billing, - AsyncBilling, - BillingWithRawResponse, - AsyncBillingWithRawResponse, - BillingWithStreamingResponse, - AsyncBillingWithStreamingResponse, + BillingResource, + AsyncBillingResource, + BillingResourceWithRawResponse, + AsyncBillingResourceWithRawResponse, + BillingResourceWithStreamingResponse, + AsyncBillingResourceWithStreamingResponse, ) from .invites import ( - Invites, - AsyncInvites, - InvitesWithRawResponse, - AsyncInvitesWithRawResponse, - InvitesWithStreamingResponse, - AsyncInvitesWithStreamingResponse, + InvitesResource, + AsyncInvitesResource, + InvitesResourceWithRawResponse, + AsyncInvitesResourceWithRawResponse, + InvitesResourceWithStreamingResponse, + AsyncInvitesResourceWithStreamingResponse, ) from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven from ..._utils import ( @@ -37,12 +37,12 @@ ) from ..._compat import cached_property from .audit_logs import ( - AuditLogs, - AsyncAuditLogs, - AuditLogsWithRawResponse, - AsyncAuditLogsWithRawResponse, - AuditLogsWithStreamingResponse, - AsyncAuditLogsWithStreamingResponse, + AuditLogsResource, + AsyncAuditLogsResource, + AuditLogsResourceWithRawResponse, + AsyncAuditLogsResourceWithRawResponse, + AuditLogsResourceWithStreamingResponse, + AsyncAuditLogsResourceWithStreamingResponse, ) from ..._resource import SyncAPIResource, AsyncAPIResource from ..._response import ( @@ -54,64 +54,64 @@ from ..._wrappers import ResultWrapper from ...types.user import user_edit_params from .organizations import ( - Organizations, - AsyncOrganizations, - OrganizationsWithRawResponse, - AsyncOrganizationsWithRawResponse, - OrganizationsWithStreamingResponse, - AsyncOrganizationsWithStreamingResponse, + OrganizationsResource, + AsyncOrganizationsResource, + OrganizationsResourceWithRawResponse, + AsyncOrganizationsResourceWithRawResponse, + OrganizationsResourceWithStreamingResponse, + AsyncOrganizationsResourceWithStreamingResponse, ) from .subscriptions import ( - Subscriptions, - AsyncSubscriptions, - SubscriptionsWithRawResponse, - AsyncSubscriptionsWithRawResponse, - SubscriptionsWithStreamingResponse, - AsyncSubscriptionsWithStreamingResponse, + SubscriptionsResource, + AsyncSubscriptionsResource, + SubscriptionsResourceWithRawResponse, + AsyncSubscriptionsResourceWithRawResponse, + SubscriptionsResourceWithStreamingResponse, + AsyncSubscriptionsResourceWithStreamingResponse, ) -from .tokens.tokens import Tokens, AsyncTokens +from .tokens.tokens import TokensResource, AsyncTokensResource from ..._base_client import ( make_request_options, ) -from .billing.billing import Billing, AsyncBilling +from .billing.billing import BillingResource, AsyncBillingResource from ...types.user.user_get_response import UserGetResponse from ...types.user.user_edit_response import UserEditResponse -__all__ = ["User", "AsyncUser"] +__all__ = ["UserResource", "AsyncUserResource"] -class User(SyncAPIResource): +class UserResource(SyncAPIResource): @cached_property - def audit_logs(self) -> AuditLogs: - return AuditLogs(self._client) + def audit_logs(self) -> AuditLogsResource: + return AuditLogsResource(self._client) @cached_property - def billing(self) -> Billing: - return Billing(self._client) + def billing(self) -> BillingResource: + return BillingResource(self._client) @cached_property - def invites(self) -> Invites: - return Invites(self._client) + def invites(self) -> InvitesResource: + return InvitesResource(self._client) @cached_property - def organizations(self) -> Organizations: - return Organizations(self._client) + def organizations(self) -> OrganizationsResource: + return OrganizationsResource(self._client) @cached_property - def subscriptions(self) -> Subscriptions: - return Subscriptions(self._client) + def subscriptions(self) -> SubscriptionsResource: + return SubscriptionsResource(self._client) @cached_property - def tokens(self) -> Tokens: - return Tokens(self._client) + def tokens(self) -> TokensResource: + return TokensResource(self._client) @cached_property - def with_raw_response(self) -> UserWithRawResponse: - return UserWithRawResponse(self) + def with_raw_response(self) -> UserResourceWithRawResponse: + return UserResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> UserWithStreamingResponse: - return UserWithStreamingResponse(self) + def with_streaming_response(self) -> UserResourceWithStreamingResponse: + return UserResourceWithStreamingResponse(self) def edit( self, @@ -206,38 +206,38 @@ def get( ) -class AsyncUser(AsyncAPIResource): +class AsyncUserResource(AsyncAPIResource): @cached_property - def audit_logs(self) -> AsyncAuditLogs: - return AsyncAuditLogs(self._client) + def audit_logs(self) -> AsyncAuditLogsResource: + return AsyncAuditLogsResource(self._client) @cached_property - def billing(self) -> AsyncBilling: - return AsyncBilling(self._client) + def billing(self) -> AsyncBillingResource: + return AsyncBillingResource(self._client) @cached_property - def invites(self) -> AsyncInvites: - return AsyncInvites(self._client) + def invites(self) -> AsyncInvitesResource: + return AsyncInvitesResource(self._client) @cached_property - def organizations(self) -> AsyncOrganizations: - return AsyncOrganizations(self._client) + def organizations(self) -> AsyncOrganizationsResource: + return AsyncOrganizationsResource(self._client) @cached_property - def subscriptions(self) -> AsyncSubscriptions: - return AsyncSubscriptions(self._client) + def subscriptions(self) -> AsyncSubscriptionsResource: + return AsyncSubscriptionsResource(self._client) @cached_property - def tokens(self) -> AsyncTokens: - return AsyncTokens(self._client) + def tokens(self) -> AsyncTokensResource: + return AsyncTokensResource(self._client) @cached_property - def with_raw_response(self) -> AsyncUserWithRawResponse: - return AsyncUserWithRawResponse(self) + def with_raw_response(self) -> AsyncUserResourceWithRawResponse: + return AsyncUserResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncUserWithStreamingResponse: - return AsyncUserWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncUserResourceWithStreamingResponse: + return AsyncUserResourceWithStreamingResponse(self) async def edit( self, @@ -332,8 +332,8 @@ async def get( ) -class UserWithRawResponse: - def __init__(self, user: User) -> None: +class UserResourceWithRawResponse: + def __init__(self, user: UserResource) -> None: self._user = user self.edit = to_raw_response_wrapper( @@ -344,32 +344,32 @@ def __init__(self, user: User) -> None: ) @cached_property - def audit_logs(self) -> AuditLogsWithRawResponse: - return AuditLogsWithRawResponse(self._user.audit_logs) + def audit_logs(self) -> AuditLogsResourceWithRawResponse: + return AuditLogsResourceWithRawResponse(self._user.audit_logs) @cached_property - def billing(self) -> BillingWithRawResponse: - return BillingWithRawResponse(self._user.billing) + def billing(self) -> BillingResourceWithRawResponse: + return BillingResourceWithRawResponse(self._user.billing) @cached_property - def invites(self) -> InvitesWithRawResponse: - return InvitesWithRawResponse(self._user.invites) + def invites(self) -> InvitesResourceWithRawResponse: + return InvitesResourceWithRawResponse(self._user.invites) @cached_property - def organizations(self) -> OrganizationsWithRawResponse: - return OrganizationsWithRawResponse(self._user.organizations) + def organizations(self) -> OrganizationsResourceWithRawResponse: + return OrganizationsResourceWithRawResponse(self._user.organizations) @cached_property - def subscriptions(self) -> SubscriptionsWithRawResponse: - return SubscriptionsWithRawResponse(self._user.subscriptions) + def subscriptions(self) -> SubscriptionsResourceWithRawResponse: + return SubscriptionsResourceWithRawResponse(self._user.subscriptions) @cached_property - def tokens(self) -> TokensWithRawResponse: - return TokensWithRawResponse(self._user.tokens) + def tokens(self) -> TokensResourceWithRawResponse: + return TokensResourceWithRawResponse(self._user.tokens) -class AsyncUserWithRawResponse: - def __init__(self, user: AsyncUser) -> None: +class AsyncUserResourceWithRawResponse: + def __init__(self, user: AsyncUserResource) -> None: self._user = user self.edit = async_to_raw_response_wrapper( @@ -380,32 +380,32 @@ def __init__(self, user: AsyncUser) -> None: ) @cached_property - def audit_logs(self) -> AsyncAuditLogsWithRawResponse: - return AsyncAuditLogsWithRawResponse(self._user.audit_logs) + def audit_logs(self) -> AsyncAuditLogsResourceWithRawResponse: + return AsyncAuditLogsResourceWithRawResponse(self._user.audit_logs) @cached_property - def billing(self) -> AsyncBillingWithRawResponse: - return AsyncBillingWithRawResponse(self._user.billing) + def billing(self) -> AsyncBillingResourceWithRawResponse: + return AsyncBillingResourceWithRawResponse(self._user.billing) @cached_property - def invites(self) -> AsyncInvitesWithRawResponse: - return AsyncInvitesWithRawResponse(self._user.invites) + def invites(self) -> AsyncInvitesResourceWithRawResponse: + return AsyncInvitesResourceWithRawResponse(self._user.invites) @cached_property - def organizations(self) -> AsyncOrganizationsWithRawResponse: - return AsyncOrganizationsWithRawResponse(self._user.organizations) + def organizations(self) -> AsyncOrganizationsResourceWithRawResponse: + return AsyncOrganizationsResourceWithRawResponse(self._user.organizations) @cached_property - def subscriptions(self) -> AsyncSubscriptionsWithRawResponse: - return AsyncSubscriptionsWithRawResponse(self._user.subscriptions) + def subscriptions(self) -> AsyncSubscriptionsResourceWithRawResponse: + return AsyncSubscriptionsResourceWithRawResponse(self._user.subscriptions) @cached_property - def tokens(self) -> AsyncTokensWithRawResponse: - return AsyncTokensWithRawResponse(self._user.tokens) + def tokens(self) -> AsyncTokensResourceWithRawResponse: + return AsyncTokensResourceWithRawResponse(self._user.tokens) -class UserWithStreamingResponse: - def __init__(self, user: User) -> None: +class UserResourceWithStreamingResponse: + def __init__(self, user: UserResource) -> None: self._user = user self.edit = to_streamed_response_wrapper( @@ -416,32 +416,32 @@ def __init__(self, user: User) -> None: ) @cached_property - def audit_logs(self) -> AuditLogsWithStreamingResponse: - return AuditLogsWithStreamingResponse(self._user.audit_logs) + def audit_logs(self) -> AuditLogsResourceWithStreamingResponse: + return AuditLogsResourceWithStreamingResponse(self._user.audit_logs) @cached_property - def billing(self) -> BillingWithStreamingResponse: - return BillingWithStreamingResponse(self._user.billing) + def billing(self) -> BillingResourceWithStreamingResponse: + return BillingResourceWithStreamingResponse(self._user.billing) @cached_property - def invites(self) -> InvitesWithStreamingResponse: - return InvitesWithStreamingResponse(self._user.invites) + def invites(self) -> InvitesResourceWithStreamingResponse: + return InvitesResourceWithStreamingResponse(self._user.invites) @cached_property - def organizations(self) -> OrganizationsWithStreamingResponse: - return OrganizationsWithStreamingResponse(self._user.organizations) + def organizations(self) -> OrganizationsResourceWithStreamingResponse: + return OrganizationsResourceWithStreamingResponse(self._user.organizations) @cached_property - def subscriptions(self) -> SubscriptionsWithStreamingResponse: - return SubscriptionsWithStreamingResponse(self._user.subscriptions) + def subscriptions(self) -> SubscriptionsResourceWithStreamingResponse: + return SubscriptionsResourceWithStreamingResponse(self._user.subscriptions) @cached_property - def tokens(self) -> TokensWithStreamingResponse: - return TokensWithStreamingResponse(self._user.tokens) + def tokens(self) -> TokensResourceWithStreamingResponse: + return TokensResourceWithStreamingResponse(self._user.tokens) -class AsyncUserWithStreamingResponse: - def __init__(self, user: AsyncUser) -> None: +class AsyncUserResourceWithStreamingResponse: + def __init__(self, user: AsyncUserResource) -> None: self._user = user self.edit = async_to_streamed_response_wrapper( @@ -452,25 +452,25 @@ def __init__(self, user: AsyncUser) -> None: ) @cached_property - def audit_logs(self) -> AsyncAuditLogsWithStreamingResponse: - return AsyncAuditLogsWithStreamingResponse(self._user.audit_logs) + def audit_logs(self) -> AsyncAuditLogsResourceWithStreamingResponse: + return AsyncAuditLogsResourceWithStreamingResponse(self._user.audit_logs) @cached_property - def billing(self) -> AsyncBillingWithStreamingResponse: - return AsyncBillingWithStreamingResponse(self._user.billing) + def billing(self) -> AsyncBillingResourceWithStreamingResponse: + return AsyncBillingResourceWithStreamingResponse(self._user.billing) @cached_property - def invites(self) -> AsyncInvitesWithStreamingResponse: - return AsyncInvitesWithStreamingResponse(self._user.invites) + def invites(self) -> AsyncInvitesResourceWithStreamingResponse: + return AsyncInvitesResourceWithStreamingResponse(self._user.invites) @cached_property - def organizations(self) -> AsyncOrganizationsWithStreamingResponse: - return AsyncOrganizationsWithStreamingResponse(self._user.organizations) + def organizations(self) -> AsyncOrganizationsResourceWithStreamingResponse: + return AsyncOrganizationsResourceWithStreamingResponse(self._user.organizations) @cached_property - def subscriptions(self) -> AsyncSubscriptionsWithStreamingResponse: - return AsyncSubscriptionsWithStreamingResponse(self._user.subscriptions) + def subscriptions(self) -> AsyncSubscriptionsResourceWithStreamingResponse: + return AsyncSubscriptionsResourceWithStreamingResponse(self._user.subscriptions) @cached_property - def tokens(self) -> AsyncTokensWithStreamingResponse: - return AsyncTokensWithStreamingResponse(self._user.tokens) + def tokens(self) -> AsyncTokensResourceWithStreamingResponse: + return AsyncTokensResourceWithStreamingResponse(self._user.tokens) diff --git a/src/cloudflare/resources/vectorize/__init__.py b/src/cloudflare/resources/vectorize/__init__.py index ded339e9554..6ec0cbca1b6 100644 --- a/src/cloudflare/resources/vectorize/__init__.py +++ b/src/cloudflare/resources/vectorize/__init__.py @@ -1,33 +1,33 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from .indexes import ( - Indexes, - AsyncIndexes, - IndexesWithRawResponse, - AsyncIndexesWithRawResponse, - IndexesWithStreamingResponse, - AsyncIndexesWithStreamingResponse, + IndexesResource, + AsyncIndexesResource, + IndexesResourceWithRawResponse, + AsyncIndexesResourceWithRawResponse, + IndexesResourceWithStreamingResponse, + AsyncIndexesResourceWithStreamingResponse, ) from .vectorize import ( - Vectorize, - AsyncVectorize, - VectorizeWithRawResponse, - AsyncVectorizeWithRawResponse, - VectorizeWithStreamingResponse, - AsyncVectorizeWithStreamingResponse, + VectorizeResource, + AsyncVectorizeResource, + VectorizeResourceWithRawResponse, + AsyncVectorizeResourceWithRawResponse, + VectorizeResourceWithStreamingResponse, + AsyncVectorizeResourceWithStreamingResponse, ) __all__ = [ - "Indexes", - "AsyncIndexes", - "IndexesWithRawResponse", - "AsyncIndexesWithRawResponse", - "IndexesWithStreamingResponse", - "AsyncIndexesWithStreamingResponse", - "Vectorize", - "AsyncVectorize", - "VectorizeWithRawResponse", - "AsyncVectorizeWithRawResponse", - "VectorizeWithStreamingResponse", - "AsyncVectorizeWithStreamingResponse", + "IndexesResource", + "AsyncIndexesResource", + "IndexesResourceWithRawResponse", + "AsyncIndexesResourceWithRawResponse", + "IndexesResourceWithStreamingResponse", + "AsyncIndexesResourceWithStreamingResponse", + "VectorizeResource", + "AsyncVectorizeResource", + "VectorizeResourceWithRawResponse", + "AsyncVectorizeResourceWithRawResponse", + "VectorizeResourceWithStreamingResponse", + "AsyncVectorizeResourceWithStreamingResponse", ] diff --git a/src/cloudflare/resources/vectorize/indexes.py b/src/cloudflare/resources/vectorize/indexes.py index a97045f77f9..b58a753d658 100644 --- a/src/cloudflare/resources/vectorize/indexes.py +++ b/src/cloudflare/resources/vectorize/indexes.py @@ -41,17 +41,17 @@ from ...types.vectorize.index_delete_response import IndexDeleteResponse from ...types.vectorize.index_delete_vectors_by_id import IndexDeleteVectorsByID -__all__ = ["Indexes", "AsyncIndexes"] +__all__ = ["IndexesResource", "AsyncIndexesResource"] -class Indexes(SyncAPIResource): +class IndexesResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> IndexesWithRawResponse: - return IndexesWithRawResponse(self) + def with_raw_response(self) -> IndexesResourceWithRawResponse: + return IndexesResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> IndexesWithStreamingResponse: - return IndexesWithStreamingResponse(self) + def with_streaming_response(self) -> IndexesResourceWithStreamingResponse: + return IndexesResourceWithStreamingResponse(self) def create( self, @@ -528,14 +528,14 @@ def upsert( ) -class AsyncIndexes(AsyncAPIResource): +class AsyncIndexesResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncIndexesWithRawResponse: - return AsyncIndexesWithRawResponse(self) + def with_raw_response(self) -> AsyncIndexesResourceWithRawResponse: + return AsyncIndexesResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncIndexesWithStreamingResponse: - return AsyncIndexesWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncIndexesResourceWithStreamingResponse: + return AsyncIndexesResourceWithStreamingResponse(self) async def create( self, @@ -1012,8 +1012,8 @@ async def upsert( ) -class IndexesWithRawResponse: - def __init__(self, indexes: Indexes) -> None: +class IndexesResourceWithRawResponse: + def __init__(self, indexes: IndexesResource) -> None: self._indexes = indexes self.create = to_raw_response_wrapper( @@ -1048,8 +1048,8 @@ def __init__(self, indexes: Indexes) -> None: ) -class AsyncIndexesWithRawResponse: - def __init__(self, indexes: AsyncIndexes) -> None: +class AsyncIndexesResourceWithRawResponse: + def __init__(self, indexes: AsyncIndexesResource) -> None: self._indexes = indexes self.create = async_to_raw_response_wrapper( @@ -1084,8 +1084,8 @@ def __init__(self, indexes: AsyncIndexes) -> None: ) -class IndexesWithStreamingResponse: - def __init__(self, indexes: Indexes) -> None: +class IndexesResourceWithStreamingResponse: + def __init__(self, indexes: IndexesResource) -> None: self._indexes = indexes self.create = to_streamed_response_wrapper( @@ -1120,8 +1120,8 @@ def __init__(self, indexes: Indexes) -> None: ) -class AsyncIndexesWithStreamingResponse: - def __init__(self, indexes: AsyncIndexes) -> None: +class AsyncIndexesResourceWithStreamingResponse: + def __init__(self, indexes: AsyncIndexesResource) -> None: self._indexes = indexes self.create = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/vectorize/vectorize.py b/src/cloudflare/resources/vectorize/vectorize.py index bb5adf5237d..189d1279ebc 100644 --- a/src/cloudflare/resources/vectorize/vectorize.py +++ b/src/cloudflare/resources/vectorize/vectorize.py @@ -3,78 +3,78 @@ from __future__ import annotations from .indexes import ( - Indexes, - AsyncIndexes, - IndexesWithRawResponse, - AsyncIndexesWithRawResponse, - IndexesWithStreamingResponse, - AsyncIndexesWithStreamingResponse, + IndexesResource, + AsyncIndexesResource, + IndexesResourceWithRawResponse, + AsyncIndexesResourceWithRawResponse, + IndexesResourceWithStreamingResponse, + AsyncIndexesResourceWithStreamingResponse, ) from ..._compat import cached_property from ..._resource import SyncAPIResource, AsyncAPIResource -__all__ = ["Vectorize", "AsyncVectorize"] +__all__ = ["VectorizeResource", "AsyncVectorizeResource"] -class Vectorize(SyncAPIResource): +class VectorizeResource(SyncAPIResource): @cached_property - def indexes(self) -> Indexes: - return Indexes(self._client) + def indexes(self) -> IndexesResource: + return IndexesResource(self._client) @cached_property - def with_raw_response(self) -> VectorizeWithRawResponse: - return VectorizeWithRawResponse(self) + def with_raw_response(self) -> VectorizeResourceWithRawResponse: + return VectorizeResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> VectorizeWithStreamingResponse: - return VectorizeWithStreamingResponse(self) + def with_streaming_response(self) -> VectorizeResourceWithStreamingResponse: + return VectorizeResourceWithStreamingResponse(self) -class AsyncVectorize(AsyncAPIResource): +class AsyncVectorizeResource(AsyncAPIResource): @cached_property - def indexes(self) -> AsyncIndexes: - return AsyncIndexes(self._client) + def indexes(self) -> AsyncIndexesResource: + return AsyncIndexesResource(self._client) @cached_property - def with_raw_response(self) -> AsyncVectorizeWithRawResponse: - return AsyncVectorizeWithRawResponse(self) + def with_raw_response(self) -> AsyncVectorizeResourceWithRawResponse: + return AsyncVectorizeResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncVectorizeWithStreamingResponse: - return AsyncVectorizeWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncVectorizeResourceWithStreamingResponse: + return AsyncVectorizeResourceWithStreamingResponse(self) -class VectorizeWithRawResponse: - def __init__(self, vectorize: Vectorize) -> None: +class VectorizeResourceWithRawResponse: + def __init__(self, vectorize: VectorizeResource) -> None: self._vectorize = vectorize @cached_property - def indexes(self) -> IndexesWithRawResponse: - return IndexesWithRawResponse(self._vectorize.indexes) + def indexes(self) -> IndexesResourceWithRawResponse: + return IndexesResourceWithRawResponse(self._vectorize.indexes) -class AsyncVectorizeWithRawResponse: - def __init__(self, vectorize: AsyncVectorize) -> None: +class AsyncVectorizeResourceWithRawResponse: + def __init__(self, vectorize: AsyncVectorizeResource) -> None: self._vectorize = vectorize @cached_property - def indexes(self) -> AsyncIndexesWithRawResponse: - return AsyncIndexesWithRawResponse(self._vectorize.indexes) + def indexes(self) -> AsyncIndexesResourceWithRawResponse: + return AsyncIndexesResourceWithRawResponse(self._vectorize.indexes) -class VectorizeWithStreamingResponse: - def __init__(self, vectorize: Vectorize) -> None: +class VectorizeResourceWithStreamingResponse: + def __init__(self, vectorize: VectorizeResource) -> None: self._vectorize = vectorize @cached_property - def indexes(self) -> IndexesWithStreamingResponse: - return IndexesWithStreamingResponse(self._vectorize.indexes) + def indexes(self) -> IndexesResourceWithStreamingResponse: + return IndexesResourceWithStreamingResponse(self._vectorize.indexes) -class AsyncVectorizeWithStreamingResponse: - def __init__(self, vectorize: AsyncVectorize) -> None: +class AsyncVectorizeResourceWithStreamingResponse: + def __init__(self, vectorize: AsyncVectorizeResource) -> None: self._vectorize = vectorize @cached_property - def indexes(self) -> AsyncIndexesWithStreamingResponse: - return AsyncIndexesWithStreamingResponse(self._vectorize.indexes) + def indexes(self) -> AsyncIndexesResourceWithStreamingResponse: + return AsyncIndexesResourceWithStreamingResponse(self._vectorize.indexes) diff --git a/src/cloudflare/resources/waiting_rooms/__init__.py b/src/cloudflare/resources/waiting_rooms/__init__.py index 368198739b8..17c8b90fe06 100644 --- a/src/cloudflare/resources/waiting_rooms/__init__.py +++ b/src/cloudflare/resources/waiting_rooms/__init__.py @@ -1,89 +1,89 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from .page import ( - Page, - AsyncPage, - PageWithRawResponse, - AsyncPageWithRawResponse, - PageWithStreamingResponse, - AsyncPageWithStreamingResponse, + PageResource, + AsyncPageResource, + PageResourceWithRawResponse, + AsyncPageResourceWithRawResponse, + PageResourceWithStreamingResponse, + AsyncPageResourceWithStreamingResponse, ) from .rules import ( - Rules, - AsyncRules, - RulesWithRawResponse, - AsyncRulesWithRawResponse, - RulesWithStreamingResponse, - AsyncRulesWithStreamingResponse, + RulesResource, + AsyncRulesResource, + RulesResourceWithRawResponse, + AsyncRulesResourceWithRawResponse, + RulesResourceWithStreamingResponse, + AsyncRulesResourceWithStreamingResponse, ) from .events import ( - Events, - AsyncEvents, - EventsWithRawResponse, - AsyncEventsWithRawResponse, - EventsWithStreamingResponse, - AsyncEventsWithStreamingResponse, + EventsResource, + AsyncEventsResource, + EventsResourceWithRawResponse, + AsyncEventsResourceWithRawResponse, + EventsResourceWithStreamingResponse, + AsyncEventsResourceWithStreamingResponse, ) from .settings import ( - Settings, - AsyncSettings, - SettingsWithRawResponse, - AsyncSettingsWithRawResponse, - SettingsWithStreamingResponse, - AsyncSettingsWithStreamingResponse, + SettingsResource, + AsyncSettingsResource, + SettingsResourceWithRawResponse, + AsyncSettingsResourceWithRawResponse, + SettingsResourceWithStreamingResponse, + AsyncSettingsResourceWithStreamingResponse, ) from .statuses import ( - Statuses, - AsyncStatuses, - StatusesWithRawResponse, - AsyncStatusesWithRawResponse, - StatusesWithStreamingResponse, - AsyncStatusesWithStreamingResponse, + StatusesResource, + AsyncStatusesResource, + StatusesResourceWithRawResponse, + AsyncStatusesResourceWithRawResponse, + StatusesResourceWithStreamingResponse, + AsyncStatusesResourceWithStreamingResponse, ) from .waiting_rooms import ( - WaitingRooms, - AsyncWaitingRooms, - WaitingRoomsWithRawResponse, - AsyncWaitingRoomsWithRawResponse, - WaitingRoomsWithStreamingResponse, - AsyncWaitingRoomsWithStreamingResponse, + WaitingRoomsResource, + AsyncWaitingRoomsResource, + WaitingRoomsResourceWithRawResponse, + AsyncWaitingRoomsResourceWithRawResponse, + WaitingRoomsResourceWithStreamingResponse, + AsyncWaitingRoomsResourceWithStreamingResponse, ) __all__ = [ - "Page", - "AsyncPage", - "PageWithRawResponse", - "AsyncPageWithRawResponse", - "PageWithStreamingResponse", - "AsyncPageWithStreamingResponse", - "Events", - "AsyncEvents", - "EventsWithRawResponse", - "AsyncEventsWithRawResponse", - "EventsWithStreamingResponse", - "AsyncEventsWithStreamingResponse", - "Rules", - "AsyncRules", - "RulesWithRawResponse", - "AsyncRulesWithRawResponse", - "RulesWithStreamingResponse", - "AsyncRulesWithStreamingResponse", - "Statuses", - "AsyncStatuses", - "StatusesWithRawResponse", - "AsyncStatusesWithRawResponse", - "StatusesWithStreamingResponse", - "AsyncStatusesWithStreamingResponse", - "Settings", - "AsyncSettings", - "SettingsWithRawResponse", - "AsyncSettingsWithRawResponse", - "SettingsWithStreamingResponse", - "AsyncSettingsWithStreamingResponse", - "WaitingRooms", - "AsyncWaitingRooms", - "WaitingRoomsWithRawResponse", - "AsyncWaitingRoomsWithRawResponse", - "WaitingRoomsWithStreamingResponse", - "AsyncWaitingRoomsWithStreamingResponse", + "PageResource", + "AsyncPageResource", + "PageResourceWithRawResponse", + "AsyncPageResourceWithRawResponse", + "PageResourceWithStreamingResponse", + "AsyncPageResourceWithStreamingResponse", + "EventsResource", + "AsyncEventsResource", + "EventsResourceWithRawResponse", + "AsyncEventsResourceWithRawResponse", + "EventsResourceWithStreamingResponse", + "AsyncEventsResourceWithStreamingResponse", + "RulesResource", + "AsyncRulesResource", + "RulesResourceWithRawResponse", + "AsyncRulesResourceWithRawResponse", + "RulesResourceWithStreamingResponse", + "AsyncRulesResourceWithStreamingResponse", + "StatusesResource", + "AsyncStatusesResource", + "StatusesResourceWithRawResponse", + "AsyncStatusesResourceWithRawResponse", + "StatusesResourceWithStreamingResponse", + "AsyncStatusesResourceWithStreamingResponse", + "SettingsResource", + "AsyncSettingsResource", + "SettingsResourceWithRawResponse", + "AsyncSettingsResourceWithRawResponse", + "SettingsResourceWithStreamingResponse", + "AsyncSettingsResourceWithStreamingResponse", + "WaitingRoomsResource", + "AsyncWaitingRoomsResource", + "WaitingRoomsResourceWithRawResponse", + "AsyncWaitingRoomsResourceWithRawResponse", + "WaitingRoomsResourceWithStreamingResponse", + "AsyncWaitingRoomsResourceWithStreamingResponse", ] diff --git a/src/cloudflare/resources/waiting_rooms/events/__init__.py b/src/cloudflare/resources/waiting_rooms/events/__init__.py index f4fcffae591..97c5cce8704 100644 --- a/src/cloudflare/resources/waiting_rooms/events/__init__.py +++ b/src/cloudflare/resources/waiting_rooms/events/__init__.py @@ -1,33 +1,33 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from .events import ( - Events, - AsyncEvents, - EventsWithRawResponse, - AsyncEventsWithRawResponse, - EventsWithStreamingResponse, - AsyncEventsWithStreamingResponse, + EventsResource, + AsyncEventsResource, + EventsResourceWithRawResponse, + AsyncEventsResourceWithRawResponse, + EventsResourceWithStreamingResponse, + AsyncEventsResourceWithStreamingResponse, ) from .details import ( - Details, - AsyncDetails, - DetailsWithRawResponse, - AsyncDetailsWithRawResponse, - DetailsWithStreamingResponse, - AsyncDetailsWithStreamingResponse, + DetailsResource, + AsyncDetailsResource, + DetailsResourceWithRawResponse, + AsyncDetailsResourceWithRawResponse, + DetailsResourceWithStreamingResponse, + AsyncDetailsResourceWithStreamingResponse, ) __all__ = [ - "Details", - "AsyncDetails", - "DetailsWithRawResponse", - "AsyncDetailsWithRawResponse", - "DetailsWithStreamingResponse", - "AsyncDetailsWithStreamingResponse", - "Events", - "AsyncEvents", - "EventsWithRawResponse", - "AsyncEventsWithRawResponse", - "EventsWithStreamingResponse", - "AsyncEventsWithStreamingResponse", + "DetailsResource", + "AsyncDetailsResource", + "DetailsResourceWithRawResponse", + "AsyncDetailsResourceWithRawResponse", + "DetailsResourceWithStreamingResponse", + "AsyncDetailsResourceWithStreamingResponse", + "EventsResource", + "AsyncEventsResource", + "EventsResourceWithRawResponse", + "AsyncEventsResourceWithRawResponse", + "EventsResourceWithStreamingResponse", + "AsyncEventsResourceWithStreamingResponse", ] diff --git a/src/cloudflare/resources/waiting_rooms/events/details.py b/src/cloudflare/resources/waiting_rooms/events/details.py index 6553dde0b72..4e99504cb01 100644 --- a/src/cloudflare/resources/waiting_rooms/events/details.py +++ b/src/cloudflare/resources/waiting_rooms/events/details.py @@ -21,17 +21,17 @@ ) from ....types.waiting_rooms.events.detail_get_response import DetailGetResponse -__all__ = ["Details", "AsyncDetails"] +__all__ = ["DetailsResource", "AsyncDetailsResource"] -class Details(SyncAPIResource): +class DetailsResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> DetailsWithRawResponse: - return DetailsWithRawResponse(self) + def with_raw_response(self) -> DetailsResourceWithRawResponse: + return DetailsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> DetailsWithStreamingResponse: - return DetailsWithStreamingResponse(self) + def with_streaming_response(self) -> DetailsResourceWithStreamingResponse: + return DetailsResourceWithStreamingResponse(self) def get( self, @@ -81,14 +81,14 @@ def get( ) -class AsyncDetails(AsyncAPIResource): +class AsyncDetailsResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncDetailsWithRawResponse: - return AsyncDetailsWithRawResponse(self) + def with_raw_response(self) -> AsyncDetailsResourceWithRawResponse: + return AsyncDetailsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncDetailsWithStreamingResponse: - return AsyncDetailsWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncDetailsResourceWithStreamingResponse: + return AsyncDetailsResourceWithStreamingResponse(self) async def get( self, @@ -138,8 +138,8 @@ async def get( ) -class DetailsWithRawResponse: - def __init__(self, details: Details) -> None: +class DetailsResourceWithRawResponse: + def __init__(self, details: DetailsResource) -> None: self._details = details self.get = to_raw_response_wrapper( @@ -147,8 +147,8 @@ def __init__(self, details: Details) -> None: ) -class AsyncDetailsWithRawResponse: - def __init__(self, details: AsyncDetails) -> None: +class AsyncDetailsResourceWithRawResponse: + def __init__(self, details: AsyncDetailsResource) -> None: self._details = details self.get = async_to_raw_response_wrapper( @@ -156,8 +156,8 @@ def __init__(self, details: AsyncDetails) -> None: ) -class DetailsWithStreamingResponse: - def __init__(self, details: Details) -> None: +class DetailsResourceWithStreamingResponse: + def __init__(self, details: DetailsResource) -> None: self._details = details self.get = to_streamed_response_wrapper( @@ -165,8 +165,8 @@ def __init__(self, details: Details) -> None: ) -class AsyncDetailsWithStreamingResponse: - def __init__(self, details: AsyncDetails) -> None: +class AsyncDetailsResourceWithStreamingResponse: + def __init__(self, details: AsyncDetailsResource) -> None: self._details = details self.get = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/waiting_rooms/events/events.py b/src/cloudflare/resources/waiting_rooms/events/events.py index 020a6e49d0e..62dc803843d 100644 --- a/src/cloudflare/resources/waiting_rooms/events/events.py +++ b/src/cloudflare/resources/waiting_rooms/events/events.py @@ -7,12 +7,12 @@ import httpx from .details import ( - Details, - AsyncDetails, - DetailsWithRawResponse, - AsyncDetailsWithRawResponse, - DetailsWithStreamingResponse, - AsyncDetailsWithStreamingResponse, + DetailsResource, + AsyncDetailsResource, + DetailsResourceWithRawResponse, + AsyncDetailsResourceWithRawResponse, + DetailsResourceWithStreamingResponse, + AsyncDetailsResourceWithStreamingResponse, ) from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven from ...._utils import ( @@ -43,21 +43,21 @@ from ....types.waiting_rooms.event import Event from ....types.waiting_rooms.event_delete_response import EventDeleteResponse -__all__ = ["Events", "AsyncEvents"] +__all__ = ["EventsResource", "AsyncEventsResource"] -class Events(SyncAPIResource): +class EventsResource(SyncAPIResource): @cached_property - def details(self) -> Details: - return Details(self._client) + def details(self) -> DetailsResource: + return DetailsResource(self._client) @cached_property - def with_raw_response(self) -> EventsWithRawResponse: - return EventsWithRawResponse(self) + def with_raw_response(self) -> EventsResourceWithRawResponse: + return EventsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> EventsWithStreamingResponse: - return EventsWithStreamingResponse(self) + def with_streaming_response(self) -> EventsResourceWithStreamingResponse: + return EventsResourceWithStreamingResponse(self) def create( self, @@ -573,18 +573,18 @@ def get( ) -class AsyncEvents(AsyncAPIResource): +class AsyncEventsResource(AsyncAPIResource): @cached_property - def details(self) -> AsyncDetails: - return AsyncDetails(self._client) + def details(self) -> AsyncDetailsResource: + return AsyncDetailsResource(self._client) @cached_property - def with_raw_response(self) -> AsyncEventsWithRawResponse: - return AsyncEventsWithRawResponse(self) + def with_raw_response(self) -> AsyncEventsResourceWithRawResponse: + return AsyncEventsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncEventsWithStreamingResponse: - return AsyncEventsWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncEventsResourceWithStreamingResponse: + return AsyncEventsResourceWithStreamingResponse(self) async def create( self, @@ -1100,8 +1100,8 @@ async def get( ) -class EventsWithRawResponse: - def __init__(self, events: Events) -> None: +class EventsResourceWithRawResponse: + def __init__(self, events: EventsResource) -> None: self._events = events self.create = to_raw_response_wrapper( @@ -1124,12 +1124,12 @@ def __init__(self, events: Events) -> None: ) @cached_property - def details(self) -> DetailsWithRawResponse: - return DetailsWithRawResponse(self._events.details) + def details(self) -> DetailsResourceWithRawResponse: + return DetailsResourceWithRawResponse(self._events.details) -class AsyncEventsWithRawResponse: - def __init__(self, events: AsyncEvents) -> None: +class AsyncEventsResourceWithRawResponse: + def __init__(self, events: AsyncEventsResource) -> None: self._events = events self.create = async_to_raw_response_wrapper( @@ -1152,12 +1152,12 @@ def __init__(self, events: AsyncEvents) -> None: ) @cached_property - def details(self) -> AsyncDetailsWithRawResponse: - return AsyncDetailsWithRawResponse(self._events.details) + def details(self) -> AsyncDetailsResourceWithRawResponse: + return AsyncDetailsResourceWithRawResponse(self._events.details) -class EventsWithStreamingResponse: - def __init__(self, events: Events) -> None: +class EventsResourceWithStreamingResponse: + def __init__(self, events: EventsResource) -> None: self._events = events self.create = to_streamed_response_wrapper( @@ -1180,12 +1180,12 @@ def __init__(self, events: Events) -> None: ) @cached_property - def details(self) -> DetailsWithStreamingResponse: - return DetailsWithStreamingResponse(self._events.details) + def details(self) -> DetailsResourceWithStreamingResponse: + return DetailsResourceWithStreamingResponse(self._events.details) -class AsyncEventsWithStreamingResponse: - def __init__(self, events: AsyncEvents) -> None: +class AsyncEventsResourceWithStreamingResponse: + def __init__(self, events: AsyncEventsResource) -> None: self._events = events self.create = async_to_streamed_response_wrapper( @@ -1208,5 +1208,5 @@ def __init__(self, events: AsyncEvents) -> None: ) @cached_property - def details(self) -> AsyncDetailsWithStreamingResponse: - return AsyncDetailsWithStreamingResponse(self._events.details) + def details(self) -> AsyncDetailsResourceWithStreamingResponse: + return AsyncDetailsResourceWithStreamingResponse(self._events.details) diff --git a/src/cloudflare/resources/waiting_rooms/page.py b/src/cloudflare/resources/waiting_rooms/page.py index 7acae55f4d9..f8d511a8d16 100644 --- a/src/cloudflare/resources/waiting_rooms/page.py +++ b/src/cloudflare/resources/waiting_rooms/page.py @@ -26,17 +26,17 @@ from ...types.waiting_rooms import page_preview_params from ...types.waiting_rooms.page_preview_response import PagePreviewResponse -__all__ = ["Page", "AsyncPage"] +__all__ = ["PageResource", "AsyncPageResource"] -class Page(SyncAPIResource): +class PageResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> PageWithRawResponse: - return PageWithRawResponse(self) + def with_raw_response(self) -> PageResourceWithRawResponse: + return PageResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> PageWithStreamingResponse: - return PageWithStreamingResponse(self) + def with_streaming_response(self) -> PageResourceWithStreamingResponse: + return PageResourceWithStreamingResponse(self) def preview( self, @@ -138,14 +138,14 @@ def preview( ) -class AsyncPage(AsyncAPIResource): +class AsyncPageResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncPageWithRawResponse: - return AsyncPageWithRawResponse(self) + def with_raw_response(self) -> AsyncPageResourceWithRawResponse: + return AsyncPageResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncPageWithStreamingResponse: - return AsyncPageWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncPageResourceWithStreamingResponse: + return AsyncPageResourceWithStreamingResponse(self) async def preview( self, @@ -247,8 +247,8 @@ async def preview( ) -class PageWithRawResponse: - def __init__(self, page: Page) -> None: +class PageResourceWithRawResponse: + def __init__(self, page: PageResource) -> None: self._page = page self.preview = to_raw_response_wrapper( @@ -256,8 +256,8 @@ def __init__(self, page: Page) -> None: ) -class AsyncPageWithRawResponse: - def __init__(self, page: AsyncPage) -> None: +class AsyncPageResourceWithRawResponse: + def __init__(self, page: AsyncPageResource) -> None: self._page = page self.preview = async_to_raw_response_wrapper( @@ -265,8 +265,8 @@ def __init__(self, page: AsyncPage) -> None: ) -class PageWithStreamingResponse: - def __init__(self, page: Page) -> None: +class PageResourceWithStreamingResponse: + def __init__(self, page: PageResource) -> None: self._page = page self.preview = to_streamed_response_wrapper( @@ -274,8 +274,8 @@ def __init__(self, page: Page) -> None: ) -class AsyncPageWithStreamingResponse: - def __init__(self, page: AsyncPage) -> None: +class AsyncPageResourceWithStreamingResponse: + def __init__(self, page: AsyncPageResource) -> None: self._page = page self.preview = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/waiting_rooms/rules.py b/src/cloudflare/resources/waiting_rooms/rules.py index fef072ae83d..61f18ee6d83 100644 --- a/src/cloudflare/resources/waiting_rooms/rules.py +++ b/src/cloudflare/resources/waiting_rooms/rules.py @@ -33,17 +33,17 @@ from ...types.waiting_rooms.rule_delete_response import RuleDeleteResponse from ...types.waiting_rooms.rule_update_response import RuleUpdateResponse -__all__ = ["Rules", "AsyncRules"] +__all__ = ["RulesResource", "AsyncRulesResource"] -class Rules(SyncAPIResource): +class RulesResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> RulesWithRawResponse: - return RulesWithRawResponse(self) + def with_raw_response(self) -> RulesResourceWithRawResponse: + return RulesResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> RulesWithStreamingResponse: - return RulesWithStreamingResponse(self) + def with_streaming_response(self) -> RulesResourceWithStreamingResponse: + return RulesResourceWithStreamingResponse(self) def create( self, @@ -317,14 +317,14 @@ def edit( ) -class AsyncRules(AsyncAPIResource): +class AsyncRulesResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncRulesWithRawResponse: - return AsyncRulesWithRawResponse(self) + def with_raw_response(self) -> AsyncRulesResourceWithRawResponse: + return AsyncRulesResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncRulesWithStreamingResponse: - return AsyncRulesWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncRulesResourceWithStreamingResponse: + return AsyncRulesResourceWithStreamingResponse(self) async def create( self, @@ -598,8 +598,8 @@ async def edit( ) -class RulesWithRawResponse: - def __init__(self, rules: Rules) -> None: +class RulesResourceWithRawResponse: + def __init__(self, rules: RulesResource) -> None: self._rules = rules self.create = to_raw_response_wrapper( @@ -619,8 +619,8 @@ def __init__(self, rules: Rules) -> None: ) -class AsyncRulesWithRawResponse: - def __init__(self, rules: AsyncRules) -> None: +class AsyncRulesResourceWithRawResponse: + def __init__(self, rules: AsyncRulesResource) -> None: self._rules = rules self.create = async_to_raw_response_wrapper( @@ -640,8 +640,8 @@ def __init__(self, rules: AsyncRules) -> None: ) -class RulesWithStreamingResponse: - def __init__(self, rules: Rules) -> None: +class RulesResourceWithStreamingResponse: + def __init__(self, rules: RulesResource) -> None: self._rules = rules self.create = to_streamed_response_wrapper( @@ -661,8 +661,8 @@ def __init__(self, rules: Rules) -> None: ) -class AsyncRulesWithStreamingResponse: - def __init__(self, rules: AsyncRules) -> None: +class AsyncRulesResourceWithStreamingResponse: + def __init__(self, rules: AsyncRulesResource) -> None: self._rules = rules self.create = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/waiting_rooms/settings.py b/src/cloudflare/resources/waiting_rooms/settings.py index 720962bab8a..2c793777bc2 100644 --- a/src/cloudflare/resources/waiting_rooms/settings.py +++ b/src/cloudflare/resources/waiting_rooms/settings.py @@ -28,17 +28,17 @@ from ...types.waiting_rooms.setting_edit_response import SettingEditResponse from ...types.waiting_rooms.setting_update_response import SettingUpdateResponse -__all__ = ["Settings", "AsyncSettings"] +__all__ = ["SettingsResource", "AsyncSettingsResource"] -class Settings(SyncAPIResource): +class SettingsResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> SettingsWithRawResponse: - return SettingsWithRawResponse(self) + def with_raw_response(self) -> SettingsResourceWithRawResponse: + return SettingsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> SettingsWithStreamingResponse: - return SettingsWithStreamingResponse(self) + def with_streaming_response(self) -> SettingsResourceWithStreamingResponse: + return SettingsResourceWithStreamingResponse(self) def update( self, @@ -175,14 +175,14 @@ def get( ) -class AsyncSettings(AsyncAPIResource): +class AsyncSettingsResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncSettingsWithRawResponse: - return AsyncSettingsWithRawResponse(self) + def with_raw_response(self) -> AsyncSettingsResourceWithRawResponse: + return AsyncSettingsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncSettingsWithStreamingResponse: - return AsyncSettingsWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncSettingsResourceWithStreamingResponse: + return AsyncSettingsResourceWithStreamingResponse(self) async def update( self, @@ -319,8 +319,8 @@ async def get( ) -class SettingsWithRawResponse: - def __init__(self, settings: Settings) -> None: +class SettingsResourceWithRawResponse: + def __init__(self, settings: SettingsResource) -> None: self._settings = settings self.update = to_raw_response_wrapper( @@ -334,8 +334,8 @@ def __init__(self, settings: Settings) -> None: ) -class AsyncSettingsWithRawResponse: - def __init__(self, settings: AsyncSettings) -> None: +class AsyncSettingsResourceWithRawResponse: + def __init__(self, settings: AsyncSettingsResource) -> None: self._settings = settings self.update = async_to_raw_response_wrapper( @@ -349,8 +349,8 @@ def __init__(self, settings: AsyncSettings) -> None: ) -class SettingsWithStreamingResponse: - def __init__(self, settings: Settings) -> None: +class SettingsResourceWithStreamingResponse: + def __init__(self, settings: SettingsResource) -> None: self._settings = settings self.update = to_streamed_response_wrapper( @@ -364,8 +364,8 @@ def __init__(self, settings: Settings) -> None: ) -class AsyncSettingsWithStreamingResponse: - def __init__(self, settings: AsyncSettings) -> None: +class AsyncSettingsResourceWithStreamingResponse: + def __init__(self, settings: AsyncSettingsResource) -> None: self._settings = settings self.update = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/waiting_rooms/statuses.py b/src/cloudflare/resources/waiting_rooms/statuses.py index b77fbb5ac59..81dc369cb7f 100644 --- a/src/cloudflare/resources/waiting_rooms/statuses.py +++ b/src/cloudflare/resources/waiting_rooms/statuses.py @@ -21,17 +21,17 @@ ) from ...types.waiting_rooms.status_get_response import StatusGetResponse -__all__ = ["Statuses", "AsyncStatuses"] +__all__ = ["StatusesResource", "AsyncStatusesResource"] -class Statuses(SyncAPIResource): +class StatusesResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> StatusesWithRawResponse: - return StatusesWithRawResponse(self) + def with_raw_response(self) -> StatusesResourceWithRawResponse: + return StatusesResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> StatusesWithStreamingResponse: - return StatusesWithStreamingResponse(self) + def with_streaming_response(self) -> StatusesResourceWithStreamingResponse: + return StatusesResourceWithStreamingResponse(self) def get( self, @@ -94,14 +94,14 @@ def get( ) -class AsyncStatuses(AsyncAPIResource): +class AsyncStatusesResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncStatusesWithRawResponse: - return AsyncStatusesWithRawResponse(self) + def with_raw_response(self) -> AsyncStatusesResourceWithRawResponse: + return AsyncStatusesResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncStatusesWithStreamingResponse: - return AsyncStatusesWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncStatusesResourceWithStreamingResponse: + return AsyncStatusesResourceWithStreamingResponse(self) async def get( self, @@ -164,8 +164,8 @@ async def get( ) -class StatusesWithRawResponse: - def __init__(self, statuses: Statuses) -> None: +class StatusesResourceWithRawResponse: + def __init__(self, statuses: StatusesResource) -> None: self._statuses = statuses self.get = to_raw_response_wrapper( @@ -173,8 +173,8 @@ def __init__(self, statuses: Statuses) -> None: ) -class AsyncStatusesWithRawResponse: - def __init__(self, statuses: AsyncStatuses) -> None: +class AsyncStatusesResourceWithRawResponse: + def __init__(self, statuses: AsyncStatusesResource) -> None: self._statuses = statuses self.get = async_to_raw_response_wrapper( @@ -182,8 +182,8 @@ def __init__(self, statuses: AsyncStatuses) -> None: ) -class StatusesWithStreamingResponse: - def __init__(self, statuses: Statuses) -> None: +class StatusesResourceWithStreamingResponse: + def __init__(self, statuses: StatusesResource) -> None: self._statuses = statuses self.get = to_streamed_response_wrapper( @@ -191,8 +191,8 @@ def __init__(self, statuses: Statuses) -> None: ) -class AsyncStatusesWithStreamingResponse: - def __init__(self, statuses: AsyncStatuses) -> None: +class AsyncStatusesResourceWithStreamingResponse: + def __init__(self, statuses: AsyncStatusesResource) -> None: self._statuses = statuses self.get = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/waiting_rooms/waiting_rooms.py b/src/cloudflare/resources/waiting_rooms/waiting_rooms.py index 836e511dfa5..e89685b2d40 100644 --- a/src/cloudflare/resources/waiting_rooms/waiting_rooms.py +++ b/src/cloudflare/resources/waiting_rooms/waiting_rooms.py @@ -8,28 +8,28 @@ import httpx from .page import ( - Page, - AsyncPage, - PageWithRawResponse, - AsyncPageWithRawResponse, - PageWithStreamingResponse, - AsyncPageWithStreamingResponse, + PageResource, + AsyncPageResource, + PageResourceWithRawResponse, + AsyncPageResourceWithRawResponse, + PageResourceWithStreamingResponse, + AsyncPageResourceWithStreamingResponse, ) from .rules import ( - Rules, - AsyncRules, - RulesWithRawResponse, - AsyncRulesWithRawResponse, - RulesWithStreamingResponse, - AsyncRulesWithStreamingResponse, + RulesResource, + AsyncRulesResource, + RulesResourceWithRawResponse, + AsyncRulesResourceWithRawResponse, + RulesResourceWithStreamingResponse, + AsyncRulesResourceWithStreamingResponse, ) from .events import ( - Events, - AsyncEvents, - EventsWithRawResponse, - AsyncEventsWithRawResponse, - EventsWithStreamingResponse, - AsyncEventsWithStreamingResponse, + EventsResource, + AsyncEventsResource, + EventsResourceWithRawResponse, + AsyncEventsResourceWithRawResponse, + EventsResourceWithStreamingResponse, + AsyncEventsResourceWithStreamingResponse, ) from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven from ..._utils import ( @@ -37,20 +37,20 @@ async_maybe_transform, ) from .settings import ( - Settings, - AsyncSettings, - SettingsWithRawResponse, - AsyncSettingsWithRawResponse, - SettingsWithStreamingResponse, - AsyncSettingsWithStreamingResponse, + SettingsResource, + AsyncSettingsResource, + SettingsResourceWithRawResponse, + AsyncSettingsResourceWithRawResponse, + SettingsResourceWithStreamingResponse, + AsyncSettingsResourceWithStreamingResponse, ) from .statuses import ( - Statuses, - AsyncStatuses, - StatusesWithRawResponse, - AsyncStatusesWithRawResponse, - StatusesWithStreamingResponse, - AsyncStatusesWithStreamingResponse, + StatusesResource, + AsyncStatusesResource, + StatusesResourceWithRawResponse, + AsyncStatusesResourceWithRawResponse, + StatusesResourceWithStreamingResponse, + AsyncStatusesResourceWithStreamingResponse, ) from ..._compat import cached_property from ..._resource import SyncAPIResource, AsyncAPIResource @@ -62,7 +62,7 @@ ) from ..._wrappers import ResultWrapper from ...pagination import SyncSinglePage, AsyncSinglePage -from .events.events import Events, AsyncEvents +from .events.events import EventsResource, AsyncEventsResource from ..._base_client import ( AsyncPaginator, make_request_options, @@ -79,37 +79,37 @@ from ...types.waiting_rooms.cookie_attributes_param import CookieAttributesParam from ...types.waiting_rooms.waiting_room_delete_response import WaitingRoomDeleteResponse -__all__ = ["WaitingRooms", "AsyncWaitingRooms"] +__all__ = ["WaitingRoomsResource", "AsyncWaitingRoomsResource"] -class WaitingRooms(SyncAPIResource): +class WaitingRoomsResource(SyncAPIResource): @cached_property - def page(self) -> Page: - return Page(self._client) + def page(self) -> PageResource: + return PageResource(self._client) @cached_property - def events(self) -> Events: - return Events(self._client) + def events(self) -> EventsResource: + return EventsResource(self._client) @cached_property - def rules(self) -> Rules: - return Rules(self._client) + def rules(self) -> RulesResource: + return RulesResource(self._client) @cached_property - def statuses(self) -> Statuses: - return Statuses(self._client) + def statuses(self) -> StatusesResource: + return StatusesResource(self._client) @cached_property - def settings(self) -> Settings: - return Settings(self._client) + def settings(self) -> SettingsResource: + return SettingsResource(self._client) @cached_property - def with_raw_response(self) -> WaitingRoomsWithRawResponse: - return WaitingRoomsWithRawResponse(self) + def with_raw_response(self) -> WaitingRoomsResourceWithRawResponse: + return WaitingRoomsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> WaitingRoomsWithStreamingResponse: - return WaitingRoomsWithStreamingResponse(self) + def with_streaming_response(self) -> WaitingRoomsResourceWithStreamingResponse: + return WaitingRoomsResourceWithStreamingResponse(self) def create( self, @@ -1321,34 +1321,34 @@ def get( ) -class AsyncWaitingRooms(AsyncAPIResource): +class AsyncWaitingRoomsResource(AsyncAPIResource): @cached_property - def page(self) -> AsyncPage: - return AsyncPage(self._client) + def page(self) -> AsyncPageResource: + return AsyncPageResource(self._client) @cached_property - def events(self) -> AsyncEvents: - return AsyncEvents(self._client) + def events(self) -> AsyncEventsResource: + return AsyncEventsResource(self._client) @cached_property - def rules(self) -> AsyncRules: - return AsyncRules(self._client) + def rules(self) -> AsyncRulesResource: + return AsyncRulesResource(self._client) @cached_property - def statuses(self) -> AsyncStatuses: - return AsyncStatuses(self._client) + def statuses(self) -> AsyncStatusesResource: + return AsyncStatusesResource(self._client) @cached_property - def settings(self) -> AsyncSettings: - return AsyncSettings(self._client) + def settings(self) -> AsyncSettingsResource: + return AsyncSettingsResource(self._client) @cached_property - def with_raw_response(self) -> AsyncWaitingRoomsWithRawResponse: - return AsyncWaitingRoomsWithRawResponse(self) + def with_raw_response(self) -> AsyncWaitingRoomsResourceWithRawResponse: + return AsyncWaitingRoomsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncWaitingRoomsWithStreamingResponse: - return AsyncWaitingRoomsWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncWaitingRoomsResourceWithStreamingResponse: + return AsyncWaitingRoomsResourceWithStreamingResponse(self) async def create( self, @@ -2560,8 +2560,8 @@ async def get( ) -class WaitingRoomsWithRawResponse: - def __init__(self, waiting_rooms: WaitingRooms) -> None: +class WaitingRoomsResourceWithRawResponse: + def __init__(self, waiting_rooms: WaitingRoomsResource) -> None: self._waiting_rooms = waiting_rooms self.create = to_raw_response_wrapper( @@ -2584,28 +2584,28 @@ def __init__(self, waiting_rooms: WaitingRooms) -> None: ) @cached_property - def page(self) -> PageWithRawResponse: - return PageWithRawResponse(self._waiting_rooms.page) + def page(self) -> PageResourceWithRawResponse: + return PageResourceWithRawResponse(self._waiting_rooms.page) @cached_property - def events(self) -> EventsWithRawResponse: - return EventsWithRawResponse(self._waiting_rooms.events) + def events(self) -> EventsResourceWithRawResponse: + return EventsResourceWithRawResponse(self._waiting_rooms.events) @cached_property - def rules(self) -> RulesWithRawResponse: - return RulesWithRawResponse(self._waiting_rooms.rules) + def rules(self) -> RulesResourceWithRawResponse: + return RulesResourceWithRawResponse(self._waiting_rooms.rules) @cached_property - def statuses(self) -> StatusesWithRawResponse: - return StatusesWithRawResponse(self._waiting_rooms.statuses) + def statuses(self) -> StatusesResourceWithRawResponse: + return StatusesResourceWithRawResponse(self._waiting_rooms.statuses) @cached_property - def settings(self) -> SettingsWithRawResponse: - return SettingsWithRawResponse(self._waiting_rooms.settings) + def settings(self) -> SettingsResourceWithRawResponse: + return SettingsResourceWithRawResponse(self._waiting_rooms.settings) -class AsyncWaitingRoomsWithRawResponse: - def __init__(self, waiting_rooms: AsyncWaitingRooms) -> None: +class AsyncWaitingRoomsResourceWithRawResponse: + def __init__(self, waiting_rooms: AsyncWaitingRoomsResource) -> None: self._waiting_rooms = waiting_rooms self.create = async_to_raw_response_wrapper( @@ -2628,28 +2628,28 @@ def __init__(self, waiting_rooms: AsyncWaitingRooms) -> None: ) @cached_property - def page(self) -> AsyncPageWithRawResponse: - return AsyncPageWithRawResponse(self._waiting_rooms.page) + def page(self) -> AsyncPageResourceWithRawResponse: + return AsyncPageResourceWithRawResponse(self._waiting_rooms.page) @cached_property - def events(self) -> AsyncEventsWithRawResponse: - return AsyncEventsWithRawResponse(self._waiting_rooms.events) + def events(self) -> AsyncEventsResourceWithRawResponse: + return AsyncEventsResourceWithRawResponse(self._waiting_rooms.events) @cached_property - def rules(self) -> AsyncRulesWithRawResponse: - return AsyncRulesWithRawResponse(self._waiting_rooms.rules) + def rules(self) -> AsyncRulesResourceWithRawResponse: + return AsyncRulesResourceWithRawResponse(self._waiting_rooms.rules) @cached_property - def statuses(self) -> AsyncStatusesWithRawResponse: - return AsyncStatusesWithRawResponse(self._waiting_rooms.statuses) + def statuses(self) -> AsyncStatusesResourceWithRawResponse: + return AsyncStatusesResourceWithRawResponse(self._waiting_rooms.statuses) @cached_property - def settings(self) -> AsyncSettingsWithRawResponse: - return AsyncSettingsWithRawResponse(self._waiting_rooms.settings) + def settings(self) -> AsyncSettingsResourceWithRawResponse: + return AsyncSettingsResourceWithRawResponse(self._waiting_rooms.settings) -class WaitingRoomsWithStreamingResponse: - def __init__(self, waiting_rooms: WaitingRooms) -> None: +class WaitingRoomsResourceWithStreamingResponse: + def __init__(self, waiting_rooms: WaitingRoomsResource) -> None: self._waiting_rooms = waiting_rooms self.create = to_streamed_response_wrapper( @@ -2672,28 +2672,28 @@ def __init__(self, waiting_rooms: WaitingRooms) -> None: ) @cached_property - def page(self) -> PageWithStreamingResponse: - return PageWithStreamingResponse(self._waiting_rooms.page) + def page(self) -> PageResourceWithStreamingResponse: + return PageResourceWithStreamingResponse(self._waiting_rooms.page) @cached_property - def events(self) -> EventsWithStreamingResponse: - return EventsWithStreamingResponse(self._waiting_rooms.events) + def events(self) -> EventsResourceWithStreamingResponse: + return EventsResourceWithStreamingResponse(self._waiting_rooms.events) @cached_property - def rules(self) -> RulesWithStreamingResponse: - return RulesWithStreamingResponse(self._waiting_rooms.rules) + def rules(self) -> RulesResourceWithStreamingResponse: + return RulesResourceWithStreamingResponse(self._waiting_rooms.rules) @cached_property - def statuses(self) -> StatusesWithStreamingResponse: - return StatusesWithStreamingResponse(self._waiting_rooms.statuses) + def statuses(self) -> StatusesResourceWithStreamingResponse: + return StatusesResourceWithStreamingResponse(self._waiting_rooms.statuses) @cached_property - def settings(self) -> SettingsWithStreamingResponse: - return SettingsWithStreamingResponse(self._waiting_rooms.settings) + def settings(self) -> SettingsResourceWithStreamingResponse: + return SettingsResourceWithStreamingResponse(self._waiting_rooms.settings) -class AsyncWaitingRoomsWithStreamingResponse: - def __init__(self, waiting_rooms: AsyncWaitingRooms) -> None: +class AsyncWaitingRoomsResourceWithStreamingResponse: + def __init__(self, waiting_rooms: AsyncWaitingRoomsResource) -> None: self._waiting_rooms = waiting_rooms self.create = async_to_streamed_response_wrapper( @@ -2716,21 +2716,21 @@ def __init__(self, waiting_rooms: AsyncWaitingRooms) -> None: ) @cached_property - def page(self) -> AsyncPageWithStreamingResponse: - return AsyncPageWithStreamingResponse(self._waiting_rooms.page) + def page(self) -> AsyncPageResourceWithStreamingResponse: + return AsyncPageResourceWithStreamingResponse(self._waiting_rooms.page) @cached_property - def events(self) -> AsyncEventsWithStreamingResponse: - return AsyncEventsWithStreamingResponse(self._waiting_rooms.events) + def events(self) -> AsyncEventsResourceWithStreamingResponse: + return AsyncEventsResourceWithStreamingResponse(self._waiting_rooms.events) @cached_property - def rules(self) -> AsyncRulesWithStreamingResponse: - return AsyncRulesWithStreamingResponse(self._waiting_rooms.rules) + def rules(self) -> AsyncRulesResourceWithStreamingResponse: + return AsyncRulesResourceWithStreamingResponse(self._waiting_rooms.rules) @cached_property - def statuses(self) -> AsyncStatusesWithStreamingResponse: - return AsyncStatusesWithStreamingResponse(self._waiting_rooms.statuses) + def statuses(self) -> AsyncStatusesResourceWithStreamingResponse: + return AsyncStatusesResourceWithStreamingResponse(self._waiting_rooms.statuses) @cached_property - def settings(self) -> AsyncSettingsWithStreamingResponse: - return AsyncSettingsWithStreamingResponse(self._waiting_rooms.settings) + def settings(self) -> AsyncSettingsResourceWithStreamingResponse: + return AsyncSettingsResourceWithStreamingResponse(self._waiting_rooms.settings) diff --git a/src/cloudflare/resources/warp_connector.py b/src/cloudflare/resources/warp_connector.py index ac797c82219..72aa5b4b7e4 100644 --- a/src/cloudflare/resources/warp_connector.py +++ b/src/cloudflare/resources/warp_connector.py @@ -39,17 +39,17 @@ from ..types.warp_connector.warp_connector_create_response import WARPConnectorCreateResponse from ..types.warp_connector.warp_connector_delete_response import WARPConnectorDeleteResponse -__all__ = ["WARPConnector", "AsyncWARPConnector"] +__all__ = ["WARPConnectorResource", "AsyncWARPConnectorResource"] -class WARPConnector(SyncAPIResource): +class WARPConnectorResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> WARPConnectorWithRawResponse: - return WARPConnectorWithRawResponse(self) + def with_raw_response(self) -> WARPConnectorResourceWithRawResponse: + return WARPConnectorResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> WARPConnectorWithStreamingResponse: - return WARPConnectorWithStreamingResponse(self) + def with_streaming_response(self) -> WARPConnectorResourceWithStreamingResponse: + return WARPConnectorResourceWithStreamingResponse(self) def create( self, @@ -393,14 +393,14 @@ def token( ) -class AsyncWARPConnector(AsyncAPIResource): +class AsyncWARPConnectorResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncWARPConnectorWithRawResponse: - return AsyncWARPConnectorWithRawResponse(self) + def with_raw_response(self) -> AsyncWARPConnectorResourceWithRawResponse: + return AsyncWARPConnectorResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncWARPConnectorWithStreamingResponse: - return AsyncWARPConnectorWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncWARPConnectorResourceWithStreamingResponse: + return AsyncWARPConnectorResourceWithStreamingResponse(self) async def create( self, @@ -746,8 +746,8 @@ async def token( ) -class WARPConnectorWithRawResponse: - def __init__(self, warp_connector: WARPConnector) -> None: +class WARPConnectorResourceWithRawResponse: + def __init__(self, warp_connector: WARPConnectorResource) -> None: self._warp_connector = warp_connector self.create = to_raw_response_wrapper( @@ -770,8 +770,8 @@ def __init__(self, warp_connector: WARPConnector) -> None: ) -class AsyncWARPConnectorWithRawResponse: - def __init__(self, warp_connector: AsyncWARPConnector) -> None: +class AsyncWARPConnectorResourceWithRawResponse: + def __init__(self, warp_connector: AsyncWARPConnectorResource) -> None: self._warp_connector = warp_connector self.create = async_to_raw_response_wrapper( @@ -794,8 +794,8 @@ def __init__(self, warp_connector: AsyncWARPConnector) -> None: ) -class WARPConnectorWithStreamingResponse: - def __init__(self, warp_connector: WARPConnector) -> None: +class WARPConnectorResourceWithStreamingResponse: + def __init__(self, warp_connector: WARPConnectorResource) -> None: self._warp_connector = warp_connector self.create = to_streamed_response_wrapper( @@ -818,8 +818,8 @@ def __init__(self, warp_connector: WARPConnector) -> None: ) -class AsyncWARPConnectorWithStreamingResponse: - def __init__(self, warp_connector: AsyncWARPConnector) -> None: +class AsyncWARPConnectorResourceWithStreamingResponse: + def __init__(self, warp_connector: AsyncWARPConnectorResource) -> None: self._warp_connector = warp_connector self.create = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/web3/__init__.py b/src/cloudflare/resources/web3/__init__.py index c80c98c61a8..584ed0c432c 100644 --- a/src/cloudflare/resources/web3/__init__.py +++ b/src/cloudflare/resources/web3/__init__.py @@ -1,33 +1,33 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from .web3 import ( - Web3, - AsyncWeb3, - Web3WithRawResponse, - AsyncWeb3WithRawResponse, - Web3WithStreamingResponse, - AsyncWeb3WithStreamingResponse, + Web3Resource, + AsyncWeb3Resource, + Web3ResourceWithRawResponse, + AsyncWeb3ResourceWithRawResponse, + Web3ResourceWithStreamingResponse, + AsyncWeb3ResourceWithStreamingResponse, ) from .hostnames import ( - Hostnames, - AsyncHostnames, - HostnamesWithRawResponse, - AsyncHostnamesWithRawResponse, - HostnamesWithStreamingResponse, - AsyncHostnamesWithStreamingResponse, + HostnamesResource, + AsyncHostnamesResource, + HostnamesResourceWithRawResponse, + AsyncHostnamesResourceWithRawResponse, + HostnamesResourceWithStreamingResponse, + AsyncHostnamesResourceWithStreamingResponse, ) __all__ = [ - "Hostnames", - "AsyncHostnames", - "HostnamesWithRawResponse", - "AsyncHostnamesWithRawResponse", - "HostnamesWithStreamingResponse", - "AsyncHostnamesWithStreamingResponse", - "Web3", - "AsyncWeb3", - "Web3WithRawResponse", - "AsyncWeb3WithRawResponse", - "Web3WithStreamingResponse", - "AsyncWeb3WithStreamingResponse", + "HostnamesResource", + "AsyncHostnamesResource", + "HostnamesResourceWithRawResponse", + "AsyncHostnamesResourceWithRawResponse", + "HostnamesResourceWithStreamingResponse", + "AsyncHostnamesResourceWithStreamingResponse", + "Web3Resource", + "AsyncWeb3Resource", + "Web3ResourceWithRawResponse", + "AsyncWeb3ResourceWithRawResponse", + "Web3ResourceWithStreamingResponse", + "AsyncWeb3ResourceWithStreamingResponse", ] diff --git a/src/cloudflare/resources/web3/hostnames/__init__.py b/src/cloudflare/resources/web3/hostnames/__init__.py index 2f967680c54..00e23f582c9 100644 --- a/src/cloudflare/resources/web3/hostnames/__init__.py +++ b/src/cloudflare/resources/web3/hostnames/__init__.py @@ -1,33 +1,33 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from .hostnames import ( - Hostnames, - AsyncHostnames, - HostnamesWithRawResponse, - AsyncHostnamesWithRawResponse, - HostnamesWithStreamingResponse, - AsyncHostnamesWithStreamingResponse, + HostnamesResource, + AsyncHostnamesResource, + HostnamesResourceWithRawResponse, + AsyncHostnamesResourceWithRawResponse, + HostnamesResourceWithStreamingResponse, + AsyncHostnamesResourceWithStreamingResponse, ) from .ipfs_universal_paths import ( - IPFSUniversalPaths, - AsyncIPFSUniversalPaths, - IPFSUniversalPathsWithRawResponse, - AsyncIPFSUniversalPathsWithRawResponse, - IPFSUniversalPathsWithStreamingResponse, - AsyncIPFSUniversalPathsWithStreamingResponse, + IPFSUniversalPathsResource, + AsyncIPFSUniversalPathsResource, + IPFSUniversalPathsResourceWithRawResponse, + AsyncIPFSUniversalPathsResourceWithRawResponse, + IPFSUniversalPathsResourceWithStreamingResponse, + AsyncIPFSUniversalPathsResourceWithStreamingResponse, ) __all__ = [ - "IPFSUniversalPaths", - "AsyncIPFSUniversalPaths", - "IPFSUniversalPathsWithRawResponse", - "AsyncIPFSUniversalPathsWithRawResponse", - "IPFSUniversalPathsWithStreamingResponse", - "AsyncIPFSUniversalPathsWithStreamingResponse", - "Hostnames", - "AsyncHostnames", - "HostnamesWithRawResponse", - "AsyncHostnamesWithRawResponse", - "HostnamesWithStreamingResponse", - "AsyncHostnamesWithStreamingResponse", + "IPFSUniversalPathsResource", + "AsyncIPFSUniversalPathsResource", + "IPFSUniversalPathsResourceWithRawResponse", + "AsyncIPFSUniversalPathsResourceWithRawResponse", + "IPFSUniversalPathsResourceWithStreamingResponse", + "AsyncIPFSUniversalPathsResourceWithStreamingResponse", + "HostnamesResource", + "AsyncHostnamesResource", + "HostnamesResourceWithRawResponse", + "AsyncHostnamesResourceWithRawResponse", + "HostnamesResourceWithStreamingResponse", + "AsyncHostnamesResourceWithStreamingResponse", ] diff --git a/src/cloudflare/resources/web3/hostnames/hostnames.py b/src/cloudflare/resources/web3/hostnames/hostnames.py index bf43d02a2be..f4dd3aa6e91 100644 --- a/src/cloudflare/resources/web3/hostnames/hostnames.py +++ b/src/cloudflare/resources/web3/hostnames/hostnames.py @@ -28,32 +28,32 @@ make_request_options, ) from .ipfs_universal_paths import ( - IPFSUniversalPaths, - AsyncIPFSUniversalPaths, - IPFSUniversalPathsWithRawResponse, - AsyncIPFSUniversalPathsWithRawResponse, - IPFSUniversalPathsWithStreamingResponse, - AsyncIPFSUniversalPathsWithStreamingResponse, + IPFSUniversalPathsResource, + AsyncIPFSUniversalPathsResource, + IPFSUniversalPathsResourceWithRawResponse, + AsyncIPFSUniversalPathsResourceWithRawResponse, + IPFSUniversalPathsResourceWithStreamingResponse, + AsyncIPFSUniversalPathsResourceWithStreamingResponse, ) from ....types.web3.hostname import Hostname from ....types.web3.hostname_delete_response import HostnameDeleteResponse -from .ipfs_universal_paths.ipfs_universal_paths import IPFSUniversalPaths, AsyncIPFSUniversalPaths +from .ipfs_universal_paths.ipfs_universal_paths import IPFSUniversalPathsResource, AsyncIPFSUniversalPathsResource -__all__ = ["Hostnames", "AsyncHostnames"] +__all__ = ["HostnamesResource", "AsyncHostnamesResource"] -class Hostnames(SyncAPIResource): +class HostnamesResource(SyncAPIResource): @cached_property - def ipfs_universal_paths(self) -> IPFSUniversalPaths: - return IPFSUniversalPaths(self._client) + def ipfs_universal_paths(self) -> IPFSUniversalPathsResource: + return IPFSUniversalPathsResource(self._client) @cached_property - def with_raw_response(self) -> HostnamesWithRawResponse: - return HostnamesWithRawResponse(self) + def with_raw_response(self) -> HostnamesResourceWithRawResponse: + return HostnamesResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> HostnamesWithStreamingResponse: - return HostnamesWithStreamingResponse(self) + def with_streaming_response(self) -> HostnamesResourceWithStreamingResponse: + return HostnamesResourceWithStreamingResponse(self) def create( self, @@ -295,18 +295,18 @@ def get( ) -class AsyncHostnames(AsyncAPIResource): +class AsyncHostnamesResource(AsyncAPIResource): @cached_property - def ipfs_universal_paths(self) -> AsyncIPFSUniversalPaths: - return AsyncIPFSUniversalPaths(self._client) + def ipfs_universal_paths(self) -> AsyncIPFSUniversalPathsResource: + return AsyncIPFSUniversalPathsResource(self._client) @cached_property - def with_raw_response(self) -> AsyncHostnamesWithRawResponse: - return AsyncHostnamesWithRawResponse(self) + def with_raw_response(self) -> AsyncHostnamesResourceWithRawResponse: + return AsyncHostnamesResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncHostnamesWithStreamingResponse: - return AsyncHostnamesWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncHostnamesResourceWithStreamingResponse: + return AsyncHostnamesResourceWithStreamingResponse(self) async def create( self, @@ -548,8 +548,8 @@ async def get( ) -class HostnamesWithRawResponse: - def __init__(self, hostnames: Hostnames) -> None: +class HostnamesResourceWithRawResponse: + def __init__(self, hostnames: HostnamesResource) -> None: self._hostnames = hostnames self.create = to_raw_response_wrapper( @@ -569,12 +569,12 @@ def __init__(self, hostnames: Hostnames) -> None: ) @cached_property - def ipfs_universal_paths(self) -> IPFSUniversalPathsWithRawResponse: - return IPFSUniversalPathsWithRawResponse(self._hostnames.ipfs_universal_paths) + def ipfs_universal_paths(self) -> IPFSUniversalPathsResourceWithRawResponse: + return IPFSUniversalPathsResourceWithRawResponse(self._hostnames.ipfs_universal_paths) -class AsyncHostnamesWithRawResponse: - def __init__(self, hostnames: AsyncHostnames) -> None: +class AsyncHostnamesResourceWithRawResponse: + def __init__(self, hostnames: AsyncHostnamesResource) -> None: self._hostnames = hostnames self.create = async_to_raw_response_wrapper( @@ -594,12 +594,12 @@ def __init__(self, hostnames: AsyncHostnames) -> None: ) @cached_property - def ipfs_universal_paths(self) -> AsyncIPFSUniversalPathsWithRawResponse: - return AsyncIPFSUniversalPathsWithRawResponse(self._hostnames.ipfs_universal_paths) + def ipfs_universal_paths(self) -> AsyncIPFSUniversalPathsResourceWithRawResponse: + return AsyncIPFSUniversalPathsResourceWithRawResponse(self._hostnames.ipfs_universal_paths) -class HostnamesWithStreamingResponse: - def __init__(self, hostnames: Hostnames) -> None: +class HostnamesResourceWithStreamingResponse: + def __init__(self, hostnames: HostnamesResource) -> None: self._hostnames = hostnames self.create = to_streamed_response_wrapper( @@ -619,12 +619,12 @@ def __init__(self, hostnames: Hostnames) -> None: ) @cached_property - def ipfs_universal_paths(self) -> IPFSUniversalPathsWithStreamingResponse: - return IPFSUniversalPathsWithStreamingResponse(self._hostnames.ipfs_universal_paths) + def ipfs_universal_paths(self) -> IPFSUniversalPathsResourceWithStreamingResponse: + return IPFSUniversalPathsResourceWithStreamingResponse(self._hostnames.ipfs_universal_paths) -class AsyncHostnamesWithStreamingResponse: - def __init__(self, hostnames: AsyncHostnames) -> None: +class AsyncHostnamesResourceWithStreamingResponse: + def __init__(self, hostnames: AsyncHostnamesResource) -> None: self._hostnames = hostnames self.create = async_to_streamed_response_wrapper( @@ -644,5 +644,5 @@ def __init__(self, hostnames: AsyncHostnames) -> None: ) @cached_property - def ipfs_universal_paths(self) -> AsyncIPFSUniversalPathsWithStreamingResponse: - return AsyncIPFSUniversalPathsWithStreamingResponse(self._hostnames.ipfs_universal_paths) + def ipfs_universal_paths(self) -> AsyncIPFSUniversalPathsResourceWithStreamingResponse: + return AsyncIPFSUniversalPathsResourceWithStreamingResponse(self._hostnames.ipfs_universal_paths) diff --git a/src/cloudflare/resources/web3/hostnames/ipfs_universal_paths/__init__.py b/src/cloudflare/resources/web3/hostnames/ipfs_universal_paths/__init__.py index a37b8814637..7be509cf9dd 100644 --- a/src/cloudflare/resources/web3/hostnames/ipfs_universal_paths/__init__.py +++ b/src/cloudflare/resources/web3/hostnames/ipfs_universal_paths/__init__.py @@ -1,33 +1,33 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from .content_lists import ( - ContentLists, - AsyncContentLists, - ContentListsWithRawResponse, - AsyncContentListsWithRawResponse, - ContentListsWithStreamingResponse, - AsyncContentListsWithStreamingResponse, + ContentListsResource, + AsyncContentListsResource, + ContentListsResourceWithRawResponse, + AsyncContentListsResourceWithRawResponse, + ContentListsResourceWithStreamingResponse, + AsyncContentListsResourceWithStreamingResponse, ) from .ipfs_universal_paths import ( - IPFSUniversalPaths, - AsyncIPFSUniversalPaths, - IPFSUniversalPathsWithRawResponse, - AsyncIPFSUniversalPathsWithRawResponse, - IPFSUniversalPathsWithStreamingResponse, - AsyncIPFSUniversalPathsWithStreamingResponse, + IPFSUniversalPathsResource, + AsyncIPFSUniversalPathsResource, + IPFSUniversalPathsResourceWithRawResponse, + AsyncIPFSUniversalPathsResourceWithRawResponse, + IPFSUniversalPathsResourceWithStreamingResponse, + AsyncIPFSUniversalPathsResourceWithStreamingResponse, ) __all__ = [ - "ContentLists", - "AsyncContentLists", - "ContentListsWithRawResponse", - "AsyncContentListsWithRawResponse", - "ContentListsWithStreamingResponse", - "AsyncContentListsWithStreamingResponse", - "IPFSUniversalPaths", - "AsyncIPFSUniversalPaths", - "IPFSUniversalPathsWithRawResponse", - "AsyncIPFSUniversalPathsWithRawResponse", - "IPFSUniversalPathsWithStreamingResponse", - "AsyncIPFSUniversalPathsWithStreamingResponse", + "ContentListsResource", + "AsyncContentListsResource", + "ContentListsResourceWithRawResponse", + "AsyncContentListsResourceWithRawResponse", + "ContentListsResourceWithStreamingResponse", + "AsyncContentListsResourceWithStreamingResponse", + "IPFSUniversalPathsResource", + "AsyncIPFSUniversalPathsResource", + "IPFSUniversalPathsResourceWithRawResponse", + "AsyncIPFSUniversalPathsResourceWithRawResponse", + "IPFSUniversalPathsResourceWithStreamingResponse", + "AsyncIPFSUniversalPathsResourceWithStreamingResponse", ] diff --git a/src/cloudflare/resources/web3/hostnames/ipfs_universal_paths/content_lists/__init__.py b/src/cloudflare/resources/web3/hostnames/ipfs_universal_paths/content_lists/__init__.py index 48f2261cbf5..65385e07114 100644 --- a/src/cloudflare/resources/web3/hostnames/ipfs_universal_paths/content_lists/__init__.py +++ b/src/cloudflare/resources/web3/hostnames/ipfs_universal_paths/content_lists/__init__.py @@ -1,33 +1,33 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from .entries import ( - Entries, - AsyncEntries, - EntriesWithRawResponse, - AsyncEntriesWithRawResponse, - EntriesWithStreamingResponse, - AsyncEntriesWithStreamingResponse, + EntriesResource, + AsyncEntriesResource, + EntriesResourceWithRawResponse, + AsyncEntriesResourceWithRawResponse, + EntriesResourceWithStreamingResponse, + AsyncEntriesResourceWithStreamingResponse, ) from .content_lists import ( - ContentLists, - AsyncContentLists, - ContentListsWithRawResponse, - AsyncContentListsWithRawResponse, - ContentListsWithStreamingResponse, - AsyncContentListsWithStreamingResponse, + ContentListsResource, + AsyncContentListsResource, + ContentListsResourceWithRawResponse, + AsyncContentListsResourceWithRawResponse, + ContentListsResourceWithStreamingResponse, + AsyncContentListsResourceWithStreamingResponse, ) __all__ = [ - "Entries", - "AsyncEntries", - "EntriesWithRawResponse", - "AsyncEntriesWithRawResponse", - "EntriesWithStreamingResponse", - "AsyncEntriesWithStreamingResponse", - "ContentLists", - "AsyncContentLists", - "ContentListsWithRawResponse", - "AsyncContentListsWithRawResponse", - "ContentListsWithStreamingResponse", - "AsyncContentListsWithStreamingResponse", + "EntriesResource", + "AsyncEntriesResource", + "EntriesResourceWithRawResponse", + "AsyncEntriesResourceWithRawResponse", + "EntriesResourceWithStreamingResponse", + "AsyncEntriesResourceWithStreamingResponse", + "ContentListsResource", + "AsyncContentListsResource", + "ContentListsResourceWithRawResponse", + "AsyncContentListsResourceWithRawResponse", + "ContentListsResourceWithStreamingResponse", + "AsyncContentListsResourceWithStreamingResponse", ] diff --git a/src/cloudflare/resources/web3/hostnames/ipfs_universal_paths/content_lists/content_lists.py b/src/cloudflare/resources/web3/hostnames/ipfs_universal_paths/content_lists/content_lists.py index 3e93d53f434..d8c028bfc32 100644 --- a/src/cloudflare/resources/web3/hostnames/ipfs_universal_paths/content_lists/content_lists.py +++ b/src/cloudflare/resources/web3/hostnames/ipfs_universal_paths/content_lists/content_lists.py @@ -8,12 +8,12 @@ import httpx from .entries import ( - Entries, - AsyncEntries, - EntriesWithRawResponse, - AsyncEntriesWithRawResponse, - EntriesWithStreamingResponse, - AsyncEntriesWithStreamingResponse, + EntriesResource, + AsyncEntriesResource, + EntriesResourceWithRawResponse, + AsyncEntriesResourceWithRawResponse, + EntriesResourceWithStreamingResponse, + AsyncEntriesResourceWithStreamingResponse, ) from ......_types import NOT_GIVEN, Body, Query, Headers, NotGiven from ......_utils import ( @@ -35,21 +35,21 @@ from ......types.web3.hostnames.ipfs_universal_paths import content_list_update_params from ......types.web3.hostnames.ipfs_universal_paths.content_list import ContentList -__all__ = ["ContentLists", "AsyncContentLists"] +__all__ = ["ContentListsResource", "AsyncContentListsResource"] -class ContentLists(SyncAPIResource): +class ContentListsResource(SyncAPIResource): @cached_property - def entries(self) -> Entries: - return Entries(self._client) + def entries(self) -> EntriesResource: + return EntriesResource(self._client) @cached_property - def with_raw_response(self) -> ContentListsWithRawResponse: - return ContentListsWithRawResponse(self) + def with_raw_response(self) -> ContentListsResourceWithRawResponse: + return ContentListsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> ContentListsWithStreamingResponse: - return ContentListsWithStreamingResponse(self) + def with_streaming_response(self) -> ContentListsResourceWithStreamingResponse: + return ContentListsResourceWithStreamingResponse(self) def update( self, @@ -153,18 +153,18 @@ def get( ) -class AsyncContentLists(AsyncAPIResource): +class AsyncContentListsResource(AsyncAPIResource): @cached_property - def entries(self) -> AsyncEntries: - return AsyncEntries(self._client) + def entries(self) -> AsyncEntriesResource: + return AsyncEntriesResource(self._client) @cached_property - def with_raw_response(self) -> AsyncContentListsWithRawResponse: - return AsyncContentListsWithRawResponse(self) + def with_raw_response(self) -> AsyncContentListsResourceWithRawResponse: + return AsyncContentListsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncContentListsWithStreamingResponse: - return AsyncContentListsWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncContentListsResourceWithStreamingResponse: + return AsyncContentListsResourceWithStreamingResponse(self) async def update( self, @@ -268,8 +268,8 @@ async def get( ) -class ContentListsWithRawResponse: - def __init__(self, content_lists: ContentLists) -> None: +class ContentListsResourceWithRawResponse: + def __init__(self, content_lists: ContentListsResource) -> None: self._content_lists = content_lists self.update = to_raw_response_wrapper( @@ -280,12 +280,12 @@ def __init__(self, content_lists: ContentLists) -> None: ) @cached_property - def entries(self) -> EntriesWithRawResponse: - return EntriesWithRawResponse(self._content_lists.entries) + def entries(self) -> EntriesResourceWithRawResponse: + return EntriesResourceWithRawResponse(self._content_lists.entries) -class AsyncContentListsWithRawResponse: - def __init__(self, content_lists: AsyncContentLists) -> None: +class AsyncContentListsResourceWithRawResponse: + def __init__(self, content_lists: AsyncContentListsResource) -> None: self._content_lists = content_lists self.update = async_to_raw_response_wrapper( @@ -296,12 +296,12 @@ def __init__(self, content_lists: AsyncContentLists) -> None: ) @cached_property - def entries(self) -> AsyncEntriesWithRawResponse: - return AsyncEntriesWithRawResponse(self._content_lists.entries) + def entries(self) -> AsyncEntriesResourceWithRawResponse: + return AsyncEntriesResourceWithRawResponse(self._content_lists.entries) -class ContentListsWithStreamingResponse: - def __init__(self, content_lists: ContentLists) -> None: +class ContentListsResourceWithStreamingResponse: + def __init__(self, content_lists: ContentListsResource) -> None: self._content_lists = content_lists self.update = to_streamed_response_wrapper( @@ -312,12 +312,12 @@ def __init__(self, content_lists: ContentLists) -> None: ) @cached_property - def entries(self) -> EntriesWithStreamingResponse: - return EntriesWithStreamingResponse(self._content_lists.entries) + def entries(self) -> EntriesResourceWithStreamingResponse: + return EntriesResourceWithStreamingResponse(self._content_lists.entries) -class AsyncContentListsWithStreamingResponse: - def __init__(self, content_lists: AsyncContentLists) -> None: +class AsyncContentListsResourceWithStreamingResponse: + def __init__(self, content_lists: AsyncContentListsResource) -> None: self._content_lists = content_lists self.update = async_to_streamed_response_wrapper( @@ -328,5 +328,5 @@ def __init__(self, content_lists: AsyncContentLists) -> None: ) @cached_property - def entries(self) -> AsyncEntriesWithStreamingResponse: - return AsyncEntriesWithStreamingResponse(self._content_lists.entries) + def entries(self) -> AsyncEntriesResourceWithStreamingResponse: + return AsyncEntriesResourceWithStreamingResponse(self._content_lists.entries) diff --git a/src/cloudflare/resources/web3/hostnames/ipfs_universal_paths/content_lists/entries.py b/src/cloudflare/resources/web3/hostnames/ipfs_universal_paths/content_lists/entries.py index 72d9b730a85..7bb201431cd 100644 --- a/src/cloudflare/resources/web3/hostnames/ipfs_universal_paths/content_lists/entries.py +++ b/src/cloudflare/resources/web3/hostnames/ipfs_universal_paths/content_lists/entries.py @@ -35,17 +35,17 @@ from ......types.web3.hostnames.ipfs_universal_paths.content_lists.entry_delete_response import EntryDeleteResponse from ......types.web3.hostnames.ipfs_universal_paths.content_lists.entry_update_response import EntryUpdateResponse -__all__ = ["Entries", "AsyncEntries"] +__all__ = ["EntriesResource", "AsyncEntriesResource"] -class Entries(SyncAPIResource): +class EntriesResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> EntriesWithRawResponse: - return EntriesWithRawResponse(self) + def with_raw_response(self) -> EntriesResourceWithRawResponse: + return EntriesResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> EntriesWithStreamingResponse: - return EntriesWithStreamingResponse(self) + def with_streaming_response(self) -> EntriesResourceWithStreamingResponse: + return EntriesResourceWithStreamingResponse(self) def create( self, @@ -325,14 +325,14 @@ def get( ) -class AsyncEntries(AsyncAPIResource): +class AsyncEntriesResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncEntriesWithRawResponse: - return AsyncEntriesWithRawResponse(self) + def with_raw_response(self) -> AsyncEntriesResourceWithRawResponse: + return AsyncEntriesResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncEntriesWithStreamingResponse: - return AsyncEntriesWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncEntriesResourceWithStreamingResponse: + return AsyncEntriesResourceWithStreamingResponse(self) async def create( self, @@ -612,8 +612,8 @@ async def get( ) -class EntriesWithRawResponse: - def __init__(self, entries: Entries) -> None: +class EntriesResourceWithRawResponse: + def __init__(self, entries: EntriesResource) -> None: self._entries = entries self.create = to_raw_response_wrapper( @@ -633,8 +633,8 @@ def __init__(self, entries: Entries) -> None: ) -class AsyncEntriesWithRawResponse: - def __init__(self, entries: AsyncEntries) -> None: +class AsyncEntriesResourceWithRawResponse: + def __init__(self, entries: AsyncEntriesResource) -> None: self._entries = entries self.create = async_to_raw_response_wrapper( @@ -654,8 +654,8 @@ def __init__(self, entries: AsyncEntries) -> None: ) -class EntriesWithStreamingResponse: - def __init__(self, entries: Entries) -> None: +class EntriesResourceWithStreamingResponse: + def __init__(self, entries: EntriesResource) -> None: self._entries = entries self.create = to_streamed_response_wrapper( @@ -675,8 +675,8 @@ def __init__(self, entries: Entries) -> None: ) -class AsyncEntriesWithStreamingResponse: - def __init__(self, entries: AsyncEntries) -> None: +class AsyncEntriesResourceWithStreamingResponse: + def __init__(self, entries: AsyncEntriesResource) -> None: self._entries = entries self.create = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/web3/hostnames/ipfs_universal_paths/ipfs_universal_paths.py b/src/cloudflare/resources/web3/hostnames/ipfs_universal_paths/ipfs_universal_paths.py index 3530470b001..d47da398b84 100644 --- a/src/cloudflare/resources/web3/hostnames/ipfs_universal_paths/ipfs_universal_paths.py +++ b/src/cloudflare/resources/web3/hostnames/ipfs_universal_paths/ipfs_universal_paths.py @@ -5,77 +5,77 @@ from ....._compat import cached_property from ....._resource import SyncAPIResource, AsyncAPIResource from .content_lists import ( - ContentLists, - AsyncContentLists, - ContentListsWithRawResponse, - AsyncContentListsWithRawResponse, - ContentListsWithStreamingResponse, - AsyncContentListsWithStreamingResponse, + ContentListsResource, + AsyncContentListsResource, + ContentListsResourceWithRawResponse, + AsyncContentListsResourceWithRawResponse, + ContentListsResourceWithStreamingResponse, + AsyncContentListsResourceWithStreamingResponse, ) -from .content_lists.content_lists import ContentLists, AsyncContentLists +from .content_lists.content_lists import ContentListsResource, AsyncContentListsResource -__all__ = ["IPFSUniversalPaths", "AsyncIPFSUniversalPaths"] +__all__ = ["IPFSUniversalPathsResource", "AsyncIPFSUniversalPathsResource"] -class IPFSUniversalPaths(SyncAPIResource): +class IPFSUniversalPathsResource(SyncAPIResource): @cached_property - def content_lists(self) -> ContentLists: - return ContentLists(self._client) + def content_lists(self) -> ContentListsResource: + return ContentListsResource(self._client) @cached_property - def with_raw_response(self) -> IPFSUniversalPathsWithRawResponse: - return IPFSUniversalPathsWithRawResponse(self) + def with_raw_response(self) -> IPFSUniversalPathsResourceWithRawResponse: + return IPFSUniversalPathsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> IPFSUniversalPathsWithStreamingResponse: - return IPFSUniversalPathsWithStreamingResponse(self) + def with_streaming_response(self) -> IPFSUniversalPathsResourceWithStreamingResponse: + return IPFSUniversalPathsResourceWithStreamingResponse(self) -class AsyncIPFSUniversalPaths(AsyncAPIResource): +class AsyncIPFSUniversalPathsResource(AsyncAPIResource): @cached_property - def content_lists(self) -> AsyncContentLists: - return AsyncContentLists(self._client) + def content_lists(self) -> AsyncContentListsResource: + return AsyncContentListsResource(self._client) @cached_property - def with_raw_response(self) -> AsyncIPFSUniversalPathsWithRawResponse: - return AsyncIPFSUniversalPathsWithRawResponse(self) + def with_raw_response(self) -> AsyncIPFSUniversalPathsResourceWithRawResponse: + return AsyncIPFSUniversalPathsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncIPFSUniversalPathsWithStreamingResponse: - return AsyncIPFSUniversalPathsWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncIPFSUniversalPathsResourceWithStreamingResponse: + return AsyncIPFSUniversalPathsResourceWithStreamingResponse(self) -class IPFSUniversalPathsWithRawResponse: - def __init__(self, ipfs_universal_paths: IPFSUniversalPaths) -> None: +class IPFSUniversalPathsResourceWithRawResponse: + def __init__(self, ipfs_universal_paths: IPFSUniversalPathsResource) -> None: self._ipfs_universal_paths = ipfs_universal_paths @cached_property - def content_lists(self) -> ContentListsWithRawResponse: - return ContentListsWithRawResponse(self._ipfs_universal_paths.content_lists) + def content_lists(self) -> ContentListsResourceWithRawResponse: + return ContentListsResourceWithRawResponse(self._ipfs_universal_paths.content_lists) -class AsyncIPFSUniversalPathsWithRawResponse: - def __init__(self, ipfs_universal_paths: AsyncIPFSUniversalPaths) -> None: +class AsyncIPFSUniversalPathsResourceWithRawResponse: + def __init__(self, ipfs_universal_paths: AsyncIPFSUniversalPathsResource) -> None: self._ipfs_universal_paths = ipfs_universal_paths @cached_property - def content_lists(self) -> AsyncContentListsWithRawResponse: - return AsyncContentListsWithRawResponse(self._ipfs_universal_paths.content_lists) + def content_lists(self) -> AsyncContentListsResourceWithRawResponse: + return AsyncContentListsResourceWithRawResponse(self._ipfs_universal_paths.content_lists) -class IPFSUniversalPathsWithStreamingResponse: - def __init__(self, ipfs_universal_paths: IPFSUniversalPaths) -> None: +class IPFSUniversalPathsResourceWithStreamingResponse: + def __init__(self, ipfs_universal_paths: IPFSUniversalPathsResource) -> None: self._ipfs_universal_paths = ipfs_universal_paths @cached_property - def content_lists(self) -> ContentListsWithStreamingResponse: - return ContentListsWithStreamingResponse(self._ipfs_universal_paths.content_lists) + def content_lists(self) -> ContentListsResourceWithStreamingResponse: + return ContentListsResourceWithStreamingResponse(self._ipfs_universal_paths.content_lists) -class AsyncIPFSUniversalPathsWithStreamingResponse: - def __init__(self, ipfs_universal_paths: AsyncIPFSUniversalPaths) -> None: +class AsyncIPFSUniversalPathsResourceWithStreamingResponse: + def __init__(self, ipfs_universal_paths: AsyncIPFSUniversalPathsResource) -> None: self._ipfs_universal_paths = ipfs_universal_paths @cached_property - def content_lists(self) -> AsyncContentListsWithStreamingResponse: - return AsyncContentListsWithStreamingResponse(self._ipfs_universal_paths.content_lists) + def content_lists(self) -> AsyncContentListsResourceWithStreamingResponse: + return AsyncContentListsResourceWithStreamingResponse(self._ipfs_universal_paths.content_lists) diff --git a/src/cloudflare/resources/web3/web3.py b/src/cloudflare/resources/web3/web3.py index 43868c6b5d9..642a8781cd1 100644 --- a/src/cloudflare/resources/web3/web3.py +++ b/src/cloudflare/resources/web3/web3.py @@ -4,78 +4,78 @@ from ..._compat import cached_property from .hostnames import ( - Hostnames, - AsyncHostnames, - HostnamesWithRawResponse, - AsyncHostnamesWithRawResponse, - HostnamesWithStreamingResponse, - AsyncHostnamesWithStreamingResponse, + HostnamesResource, + AsyncHostnamesResource, + HostnamesResourceWithRawResponse, + AsyncHostnamesResourceWithRawResponse, + HostnamesResourceWithStreamingResponse, + AsyncHostnamesResourceWithStreamingResponse, ) from ..._resource import SyncAPIResource, AsyncAPIResource -from .hostnames.hostnames import Hostnames, AsyncHostnames +from .hostnames.hostnames import HostnamesResource, AsyncHostnamesResource -__all__ = ["Web3", "AsyncWeb3"] +__all__ = ["Web3Resource", "AsyncWeb3Resource"] -class Web3(SyncAPIResource): +class Web3Resource(SyncAPIResource): @cached_property - def hostnames(self) -> Hostnames: - return Hostnames(self._client) + def hostnames(self) -> HostnamesResource: + return HostnamesResource(self._client) @cached_property - def with_raw_response(self) -> Web3WithRawResponse: - return Web3WithRawResponse(self) + def with_raw_response(self) -> Web3ResourceWithRawResponse: + return Web3ResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> Web3WithStreamingResponse: - return Web3WithStreamingResponse(self) + def with_streaming_response(self) -> Web3ResourceWithStreamingResponse: + return Web3ResourceWithStreamingResponse(self) -class AsyncWeb3(AsyncAPIResource): +class AsyncWeb3Resource(AsyncAPIResource): @cached_property - def hostnames(self) -> AsyncHostnames: - return AsyncHostnames(self._client) + def hostnames(self) -> AsyncHostnamesResource: + return AsyncHostnamesResource(self._client) @cached_property - def with_raw_response(self) -> AsyncWeb3WithRawResponse: - return AsyncWeb3WithRawResponse(self) + def with_raw_response(self) -> AsyncWeb3ResourceWithRawResponse: + return AsyncWeb3ResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncWeb3WithStreamingResponse: - return AsyncWeb3WithStreamingResponse(self) + def with_streaming_response(self) -> AsyncWeb3ResourceWithStreamingResponse: + return AsyncWeb3ResourceWithStreamingResponse(self) -class Web3WithRawResponse: - def __init__(self, web3: Web3) -> None: +class Web3ResourceWithRawResponse: + def __init__(self, web3: Web3Resource) -> None: self._web3 = web3 @cached_property - def hostnames(self) -> HostnamesWithRawResponse: - return HostnamesWithRawResponse(self._web3.hostnames) + def hostnames(self) -> HostnamesResourceWithRawResponse: + return HostnamesResourceWithRawResponse(self._web3.hostnames) -class AsyncWeb3WithRawResponse: - def __init__(self, web3: AsyncWeb3) -> None: +class AsyncWeb3ResourceWithRawResponse: + def __init__(self, web3: AsyncWeb3Resource) -> None: self._web3 = web3 @cached_property - def hostnames(self) -> AsyncHostnamesWithRawResponse: - return AsyncHostnamesWithRawResponse(self._web3.hostnames) + def hostnames(self) -> AsyncHostnamesResourceWithRawResponse: + return AsyncHostnamesResourceWithRawResponse(self._web3.hostnames) -class Web3WithStreamingResponse: - def __init__(self, web3: Web3) -> None: +class Web3ResourceWithStreamingResponse: + def __init__(self, web3: Web3Resource) -> None: self._web3 = web3 @cached_property - def hostnames(self) -> HostnamesWithStreamingResponse: - return HostnamesWithStreamingResponse(self._web3.hostnames) + def hostnames(self) -> HostnamesResourceWithStreamingResponse: + return HostnamesResourceWithStreamingResponse(self._web3.hostnames) -class AsyncWeb3WithStreamingResponse: - def __init__(self, web3: AsyncWeb3) -> None: +class AsyncWeb3ResourceWithStreamingResponse: + def __init__(self, web3: AsyncWeb3Resource) -> None: self._web3 = web3 @cached_property - def hostnames(self) -> AsyncHostnamesWithStreamingResponse: - return AsyncHostnamesWithStreamingResponse(self._web3.hostnames) + def hostnames(self) -> AsyncHostnamesResourceWithStreamingResponse: + return AsyncHostnamesResourceWithStreamingResponse(self._web3.hostnames) diff --git a/src/cloudflare/resources/workers/__init__.py b/src/cloudflare/resources/workers/__init__.py index f8851f76e58..fd4a31df9d7 100644 --- a/src/cloudflare/resources/workers/__init__.py +++ b/src/cloudflare/resources/workers/__init__.py @@ -1,89 +1,89 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from .ai import ( - AI, - AsyncAI, - AIWithRawResponse, - AsyncAIWithRawResponse, - AIWithStreamingResponse, - AsyncAIWithStreamingResponse, + AIResource, + AsyncAIResource, + AIResourceWithRawResponse, + AsyncAIResourceWithRawResponse, + AIResourceWithStreamingResponse, + AsyncAIResourceWithStreamingResponse, ) from .domains import ( - Domains, - AsyncDomains, - DomainsWithRawResponse, - AsyncDomainsWithRawResponse, - DomainsWithStreamingResponse, - AsyncDomainsWithStreamingResponse, + DomainsResource, + AsyncDomainsResource, + DomainsResourceWithRawResponse, + AsyncDomainsResourceWithRawResponse, + DomainsResourceWithStreamingResponse, + AsyncDomainsResourceWithStreamingResponse, ) from .scripts import ( - Scripts, - AsyncScripts, - ScriptsWithRawResponse, - AsyncScriptsWithRawResponse, - ScriptsWithStreamingResponse, - AsyncScriptsWithStreamingResponse, + ScriptsResource, + AsyncScriptsResource, + ScriptsResourceWithRawResponse, + AsyncScriptsResourceWithRawResponse, + ScriptsResourceWithStreamingResponse, + AsyncScriptsResourceWithStreamingResponse, ) from .workers import ( - Workers, - AsyncWorkers, - WorkersWithRawResponse, - AsyncWorkersWithRawResponse, - WorkersWithStreamingResponse, - AsyncWorkersWithStreamingResponse, + WorkersResource, + AsyncWorkersResource, + WorkersResourceWithRawResponse, + AsyncWorkersResourceWithRawResponse, + WorkersResourceWithStreamingResponse, + AsyncWorkersResourceWithStreamingResponse, ) from .subdomains import ( - Subdomains, - AsyncSubdomains, - SubdomainsWithRawResponse, - AsyncSubdomainsWithRawResponse, - SubdomainsWithStreamingResponse, - AsyncSubdomainsWithStreamingResponse, + SubdomainsResource, + AsyncSubdomainsResource, + SubdomainsResourceWithRawResponse, + AsyncSubdomainsResourceWithRawResponse, + SubdomainsResourceWithStreamingResponse, + AsyncSubdomainsResourceWithStreamingResponse, ) from .account_settings import ( - AccountSettings, - AsyncAccountSettings, - AccountSettingsWithRawResponse, - AsyncAccountSettingsWithRawResponse, - AccountSettingsWithStreamingResponse, - AsyncAccountSettingsWithStreamingResponse, + AccountSettingsResource, + AsyncAccountSettingsResource, + AccountSettingsResourceWithRawResponse, + AsyncAccountSettingsResourceWithRawResponse, + AccountSettingsResourceWithStreamingResponse, + AsyncAccountSettingsResourceWithStreamingResponse, ) __all__ = [ - "AI", - "AsyncAI", - "AIWithRawResponse", - "AsyncAIWithRawResponse", - "AIWithStreamingResponse", - "AsyncAIWithStreamingResponse", - "Scripts", - "AsyncScripts", - "ScriptsWithRawResponse", - "AsyncScriptsWithRawResponse", - "ScriptsWithStreamingResponse", - "AsyncScriptsWithStreamingResponse", - "AccountSettings", - "AsyncAccountSettings", - "AccountSettingsWithRawResponse", - "AsyncAccountSettingsWithRawResponse", - "AccountSettingsWithStreamingResponse", - "AsyncAccountSettingsWithStreamingResponse", - "Domains", - "AsyncDomains", - "DomainsWithRawResponse", - "AsyncDomainsWithRawResponse", - "DomainsWithStreamingResponse", - "AsyncDomainsWithStreamingResponse", - "Subdomains", - "AsyncSubdomains", - "SubdomainsWithRawResponse", - "AsyncSubdomainsWithRawResponse", - "SubdomainsWithStreamingResponse", - "AsyncSubdomainsWithStreamingResponse", - "Workers", - "AsyncWorkers", - "WorkersWithRawResponse", - "AsyncWorkersWithRawResponse", - "WorkersWithStreamingResponse", - "AsyncWorkersWithStreamingResponse", + "AIResource", + "AsyncAIResource", + "AIResourceWithRawResponse", + "AsyncAIResourceWithRawResponse", + "AIResourceWithStreamingResponse", + "AsyncAIResourceWithStreamingResponse", + "ScriptsResource", + "AsyncScriptsResource", + "ScriptsResourceWithRawResponse", + "AsyncScriptsResourceWithRawResponse", + "ScriptsResourceWithStreamingResponse", + "AsyncScriptsResourceWithStreamingResponse", + "AccountSettingsResource", + "AsyncAccountSettingsResource", + "AccountSettingsResourceWithRawResponse", + "AsyncAccountSettingsResourceWithRawResponse", + "AccountSettingsResourceWithStreamingResponse", + "AsyncAccountSettingsResourceWithStreamingResponse", + "DomainsResource", + "AsyncDomainsResource", + "DomainsResourceWithRawResponse", + "AsyncDomainsResourceWithRawResponse", + "DomainsResourceWithStreamingResponse", + "AsyncDomainsResourceWithStreamingResponse", + "SubdomainsResource", + "AsyncSubdomainsResource", + "SubdomainsResourceWithRawResponse", + "AsyncSubdomainsResourceWithRawResponse", + "SubdomainsResourceWithStreamingResponse", + "AsyncSubdomainsResourceWithStreamingResponse", + "WorkersResource", + "AsyncWorkersResource", + "WorkersResourceWithRawResponse", + "AsyncWorkersResourceWithRawResponse", + "WorkersResourceWithStreamingResponse", + "AsyncWorkersResourceWithStreamingResponse", ] diff --git a/src/cloudflare/resources/workers/account_settings.py b/src/cloudflare/resources/workers/account_settings.py index 19c1c12386a..ed3dea6115c 100644 --- a/src/cloudflare/resources/workers/account_settings.py +++ b/src/cloudflare/resources/workers/account_settings.py @@ -27,17 +27,17 @@ from ...types.workers.account_setting_get_response import AccountSettingGetResponse from ...types.workers.account_setting_update_response import AccountSettingUpdateResponse -__all__ = ["AccountSettings", "AsyncAccountSettings"] +__all__ = ["AccountSettingsResource", "AsyncAccountSettingsResource"] -class AccountSettings(SyncAPIResource): +class AccountSettingsResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> AccountSettingsWithRawResponse: - return AccountSettingsWithRawResponse(self) + def with_raw_response(self) -> AccountSettingsResourceWithRawResponse: + return AccountSettingsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AccountSettingsWithStreamingResponse: - return AccountSettingsWithStreamingResponse(self) + def with_streaming_response(self) -> AccountSettingsResourceWithStreamingResponse: + return AccountSettingsResourceWithStreamingResponse(self) def update( self, @@ -120,14 +120,14 @@ def get( ) -class AsyncAccountSettings(AsyncAPIResource): +class AsyncAccountSettingsResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncAccountSettingsWithRawResponse: - return AsyncAccountSettingsWithRawResponse(self) + def with_raw_response(self) -> AsyncAccountSettingsResourceWithRawResponse: + return AsyncAccountSettingsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncAccountSettingsWithStreamingResponse: - return AsyncAccountSettingsWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncAccountSettingsResourceWithStreamingResponse: + return AsyncAccountSettingsResourceWithStreamingResponse(self) async def update( self, @@ -210,8 +210,8 @@ async def get( ) -class AccountSettingsWithRawResponse: - def __init__(self, account_settings: AccountSettings) -> None: +class AccountSettingsResourceWithRawResponse: + def __init__(self, account_settings: AccountSettingsResource) -> None: self._account_settings = account_settings self.update = to_raw_response_wrapper( @@ -222,8 +222,8 @@ def __init__(self, account_settings: AccountSettings) -> None: ) -class AsyncAccountSettingsWithRawResponse: - def __init__(self, account_settings: AsyncAccountSettings) -> None: +class AsyncAccountSettingsResourceWithRawResponse: + def __init__(self, account_settings: AsyncAccountSettingsResource) -> None: self._account_settings = account_settings self.update = async_to_raw_response_wrapper( @@ -234,8 +234,8 @@ def __init__(self, account_settings: AsyncAccountSettings) -> None: ) -class AccountSettingsWithStreamingResponse: - def __init__(self, account_settings: AccountSettings) -> None: +class AccountSettingsResourceWithStreamingResponse: + def __init__(self, account_settings: AccountSettingsResource) -> None: self._account_settings = account_settings self.update = to_streamed_response_wrapper( @@ -246,8 +246,8 @@ def __init__(self, account_settings: AccountSettings) -> None: ) -class AsyncAccountSettingsWithStreamingResponse: - def __init__(self, account_settings: AsyncAccountSettings) -> None: +class AsyncAccountSettingsResourceWithStreamingResponse: + def __init__(self, account_settings: AsyncAccountSettingsResource) -> None: self._account_settings = account_settings self.update = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/workers/ai.py b/src/cloudflare/resources/workers/ai.py index 5ac6419485b..fa587e8cf49 100644 --- a/src/cloudflare/resources/workers/ai.py +++ b/src/cloudflare/resources/workers/ai.py @@ -27,17 +27,17 @@ from ...types.workers import ai_run_params from ...types.workers.ai_run_response import AIRunResponse -__all__ = ["AI", "AsyncAI"] +__all__ = ["AIResource", "AsyncAIResource"] -class AI(SyncAPIResource): +class AIResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> AIWithRawResponse: - return AIWithRawResponse(self) + def with_raw_response(self) -> AIResourceWithRawResponse: + return AIResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AIWithStreamingResponse: - return AIWithStreamingResponse(self) + def with_streaming_response(self) -> AIResourceWithStreamingResponse: + return AIResourceWithStreamingResponse(self) @overload def run( @@ -546,14 +546,14 @@ def run( ) -class AsyncAI(AsyncAPIResource): +class AsyncAIResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncAIWithRawResponse: - return AsyncAIWithRawResponse(self) + def with_raw_response(self) -> AsyncAIResourceWithRawResponse: + return AsyncAIResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncAIWithStreamingResponse: - return AsyncAIWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncAIResourceWithStreamingResponse: + return AsyncAIResourceWithStreamingResponse(self) @overload async def run( @@ -1062,8 +1062,8 @@ async def run( ) -class AIWithRawResponse: - def __init__(self, ai: AI) -> None: +class AIResourceWithRawResponse: + def __init__(self, ai: AIResource) -> None: self._ai = ai self.run = to_raw_response_wrapper( @@ -1071,8 +1071,8 @@ def __init__(self, ai: AI) -> None: ) -class AsyncAIWithRawResponse: - def __init__(self, ai: AsyncAI) -> None: +class AsyncAIResourceWithRawResponse: + def __init__(self, ai: AsyncAIResource) -> None: self._ai = ai self.run = async_to_raw_response_wrapper( @@ -1080,8 +1080,8 @@ def __init__(self, ai: AsyncAI) -> None: ) -class AIWithStreamingResponse: - def __init__(self, ai: AI) -> None: +class AIResourceWithStreamingResponse: + def __init__(self, ai: AIResource) -> None: self._ai = ai self.run = to_streamed_response_wrapper( @@ -1089,8 +1089,8 @@ def __init__(self, ai: AI) -> None: ) -class AsyncAIWithStreamingResponse: - def __init__(self, ai: AsyncAI) -> None: +class AsyncAIResourceWithStreamingResponse: + def __init__(self, ai: AsyncAIResource) -> None: self._ai = ai self.run = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/workers/domains.py b/src/cloudflare/resources/workers/domains.py index 74c197defbf..bcf3872c03a 100644 --- a/src/cloudflare/resources/workers/domains.py +++ b/src/cloudflare/resources/workers/domains.py @@ -28,17 +28,17 @@ from ...types.workers import domain_list_params, domain_delete_params, domain_update_params from ...types.workers.domain import Domain -__all__ = ["Domains", "AsyncDomains"] +__all__ = ["DomainsResource", "AsyncDomainsResource"] -class Domains(SyncAPIResource): +class DomainsResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> DomainsWithRawResponse: - return DomainsWithRawResponse(self) + def with_raw_response(self) -> DomainsResourceWithRawResponse: + return DomainsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> DomainsWithStreamingResponse: - return DomainsWithStreamingResponse(self) + def with_streaming_response(self) -> DomainsResourceWithStreamingResponse: + return DomainsResourceWithStreamingResponse(self) def update( self, @@ -244,14 +244,14 @@ def get( ) -class AsyncDomains(AsyncAPIResource): +class AsyncDomainsResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncDomainsWithRawResponse: - return AsyncDomainsWithRawResponse(self) + def with_raw_response(self) -> AsyncDomainsResourceWithRawResponse: + return AsyncDomainsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncDomainsWithStreamingResponse: - return AsyncDomainsWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncDomainsResourceWithStreamingResponse: + return AsyncDomainsResourceWithStreamingResponse(self) async def update( self, @@ -457,8 +457,8 @@ async def get( ) -class DomainsWithRawResponse: - def __init__(self, domains: Domains) -> None: +class DomainsResourceWithRawResponse: + def __init__(self, domains: DomainsResource) -> None: self._domains = domains self.update = to_raw_response_wrapper( @@ -475,8 +475,8 @@ def __init__(self, domains: Domains) -> None: ) -class AsyncDomainsWithRawResponse: - def __init__(self, domains: AsyncDomains) -> None: +class AsyncDomainsResourceWithRawResponse: + def __init__(self, domains: AsyncDomainsResource) -> None: self._domains = domains self.update = async_to_raw_response_wrapper( @@ -493,8 +493,8 @@ def __init__(self, domains: AsyncDomains) -> None: ) -class DomainsWithStreamingResponse: - def __init__(self, domains: Domains) -> None: +class DomainsResourceWithStreamingResponse: + def __init__(self, domains: DomainsResource) -> None: self._domains = domains self.update = to_streamed_response_wrapper( @@ -511,8 +511,8 @@ def __init__(self, domains: Domains) -> None: ) -class AsyncDomainsWithStreamingResponse: - def __init__(self, domains: AsyncDomains) -> None: +class AsyncDomainsResourceWithStreamingResponse: + def __init__(self, domains: AsyncDomainsResource) -> None: self._domains = domains self.update = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/workers/scripts/__init__.py b/src/cloudflare/resources/workers/scripts/__init__.py index 03f80b90bad..8ddeb820ca6 100644 --- a/src/cloudflare/resources/workers/scripts/__init__.py +++ b/src/cloudflare/resources/workers/scripts/__init__.py @@ -1,103 +1,103 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from .tail import ( - Tail, - AsyncTail, - TailWithRawResponse, - AsyncTailWithRawResponse, - TailWithStreamingResponse, - AsyncTailWithStreamingResponse, + TailResource, + AsyncTailResource, + TailResourceWithRawResponse, + AsyncTailResourceWithRawResponse, + TailResourceWithStreamingResponse, + AsyncTailResourceWithStreamingResponse, ) from .content import ( - Content, - AsyncContent, - ContentWithRawResponse, - AsyncContentWithRawResponse, - ContentWithStreamingResponse, - AsyncContentWithStreamingResponse, + ContentResource, + AsyncContentResource, + ContentResourceWithRawResponse, + AsyncContentResourceWithRawResponse, + ContentResourceWithStreamingResponse, + AsyncContentResourceWithStreamingResponse, ) from .scripts import ( - Scripts, - AsyncScripts, - ScriptsWithRawResponse, - AsyncScriptsWithRawResponse, - ScriptsWithStreamingResponse, - AsyncScriptsWithStreamingResponse, + ScriptsResource, + AsyncScriptsResource, + ScriptsResourceWithRawResponse, + AsyncScriptsResourceWithRawResponse, + ScriptsResourceWithStreamingResponse, + AsyncScriptsResourceWithStreamingResponse, ) from .settings import ( - Settings, - AsyncSettings, - SettingsWithRawResponse, - AsyncSettingsWithRawResponse, - SettingsWithStreamingResponse, - AsyncSettingsWithStreamingResponse, + SettingsResource, + AsyncSettingsResource, + SettingsResourceWithRawResponse, + AsyncSettingsResourceWithRawResponse, + SettingsResourceWithStreamingResponse, + AsyncSettingsResourceWithStreamingResponse, ) from .versions import ( - Versions, - AsyncVersions, - VersionsWithRawResponse, - AsyncVersionsWithRawResponse, - VersionsWithStreamingResponse, - AsyncVersionsWithStreamingResponse, + VersionsResource, + AsyncVersionsResource, + VersionsResourceWithRawResponse, + AsyncVersionsResourceWithRawResponse, + VersionsResourceWithStreamingResponse, + AsyncVersionsResourceWithStreamingResponse, ) from .schedules import ( - Schedules, - AsyncSchedules, - SchedulesWithRawResponse, - AsyncSchedulesWithRawResponse, - SchedulesWithStreamingResponse, - AsyncSchedulesWithStreamingResponse, + SchedulesResource, + AsyncSchedulesResource, + SchedulesResourceWithRawResponse, + AsyncSchedulesResourceWithRawResponse, + SchedulesResourceWithStreamingResponse, + AsyncSchedulesResourceWithStreamingResponse, ) from .deployments import ( - Deployments, - AsyncDeployments, - DeploymentsWithRawResponse, - AsyncDeploymentsWithRawResponse, - DeploymentsWithStreamingResponse, - AsyncDeploymentsWithStreamingResponse, + DeploymentsResource, + AsyncDeploymentsResource, + DeploymentsResourceWithRawResponse, + AsyncDeploymentsResourceWithRawResponse, + DeploymentsResourceWithStreamingResponse, + AsyncDeploymentsResourceWithStreamingResponse, ) __all__ = [ - "Schedules", - "AsyncSchedules", - "SchedulesWithRawResponse", - "AsyncSchedulesWithRawResponse", - "SchedulesWithStreamingResponse", - "AsyncSchedulesWithStreamingResponse", - "Tail", - "AsyncTail", - "TailWithRawResponse", - "AsyncTailWithRawResponse", - "TailWithStreamingResponse", - "AsyncTailWithStreamingResponse", - "Content", - "AsyncContent", - "ContentWithRawResponse", - "AsyncContentWithRawResponse", - "ContentWithStreamingResponse", - "AsyncContentWithStreamingResponse", - "Settings", - "AsyncSettings", - "SettingsWithRawResponse", - "AsyncSettingsWithRawResponse", - "SettingsWithStreamingResponse", - "AsyncSettingsWithStreamingResponse", - "Deployments", - "AsyncDeployments", - "DeploymentsWithRawResponse", - "AsyncDeploymentsWithRawResponse", - "DeploymentsWithStreamingResponse", - "AsyncDeploymentsWithStreamingResponse", - "Versions", - "AsyncVersions", - "VersionsWithRawResponse", - "AsyncVersionsWithRawResponse", - "VersionsWithStreamingResponse", - "AsyncVersionsWithStreamingResponse", - "Scripts", - "AsyncScripts", - "ScriptsWithRawResponse", - "AsyncScriptsWithRawResponse", - "ScriptsWithStreamingResponse", - "AsyncScriptsWithStreamingResponse", + "SchedulesResource", + "AsyncSchedulesResource", + "SchedulesResourceWithRawResponse", + "AsyncSchedulesResourceWithRawResponse", + "SchedulesResourceWithStreamingResponse", + "AsyncSchedulesResourceWithStreamingResponse", + "TailResource", + "AsyncTailResource", + "TailResourceWithRawResponse", + "AsyncTailResourceWithRawResponse", + "TailResourceWithStreamingResponse", + "AsyncTailResourceWithStreamingResponse", + "ContentResource", + "AsyncContentResource", + "ContentResourceWithRawResponse", + "AsyncContentResourceWithRawResponse", + "ContentResourceWithStreamingResponse", + "AsyncContentResourceWithStreamingResponse", + "SettingsResource", + "AsyncSettingsResource", + "SettingsResourceWithRawResponse", + "AsyncSettingsResourceWithRawResponse", + "SettingsResourceWithStreamingResponse", + "AsyncSettingsResourceWithStreamingResponse", + "DeploymentsResource", + "AsyncDeploymentsResource", + "DeploymentsResourceWithRawResponse", + "AsyncDeploymentsResourceWithRawResponse", + "DeploymentsResourceWithStreamingResponse", + "AsyncDeploymentsResourceWithStreamingResponse", + "VersionsResource", + "AsyncVersionsResource", + "VersionsResourceWithRawResponse", + "AsyncVersionsResourceWithRawResponse", + "VersionsResourceWithStreamingResponse", + "AsyncVersionsResourceWithStreamingResponse", + "ScriptsResource", + "AsyncScriptsResource", + "ScriptsResourceWithRawResponse", + "AsyncScriptsResourceWithRawResponse", + "ScriptsResourceWithStreamingResponse", + "AsyncScriptsResourceWithStreamingResponse", ] diff --git a/src/cloudflare/resources/workers/scripts/content.py b/src/cloudflare/resources/workers/scripts/content.py index eb34c645769..04ea3cd8771 100644 --- a/src/cloudflare/resources/workers/scripts/content.py +++ b/src/cloudflare/resources/workers/scripts/content.py @@ -37,17 +37,17 @@ from ....types.workers.scripts import content_update_params from ....types.workers.worker_metadata_param import WorkerMetadataParam -__all__ = ["Content", "AsyncContent"] +__all__ = ["ContentResource", "AsyncContentResource"] -class Content(SyncAPIResource): +class ContentResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> ContentWithRawResponse: - return ContentWithRawResponse(self) + def with_raw_response(self) -> ContentResourceWithRawResponse: + return ContentResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> ContentWithStreamingResponse: - return ContentWithStreamingResponse(self) + def with_streaming_response(self) -> ContentResourceWithStreamingResponse: + return ContentResourceWithStreamingResponse(self) def update( self, @@ -160,14 +160,14 @@ def get( ) -class AsyncContent(AsyncAPIResource): +class AsyncContentResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncContentWithRawResponse: - return AsyncContentWithRawResponse(self) + def with_raw_response(self) -> AsyncContentResourceWithRawResponse: + return AsyncContentResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncContentWithStreamingResponse: - return AsyncContentWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncContentResourceWithStreamingResponse: + return AsyncContentResourceWithStreamingResponse(self) async def update( self, @@ -280,8 +280,8 @@ async def get( ) -class ContentWithRawResponse: - def __init__(self, content: Content) -> None: +class ContentResourceWithRawResponse: + def __init__(self, content: ContentResource) -> None: self._content = content self.update = to_raw_response_wrapper( @@ -293,8 +293,8 @@ def __init__(self, content: Content) -> None: ) -class AsyncContentWithRawResponse: - def __init__(self, content: AsyncContent) -> None: +class AsyncContentResourceWithRawResponse: + def __init__(self, content: AsyncContentResource) -> None: self._content = content self.update = async_to_raw_response_wrapper( @@ -306,8 +306,8 @@ def __init__(self, content: AsyncContent) -> None: ) -class ContentWithStreamingResponse: - def __init__(self, content: Content) -> None: +class ContentResourceWithStreamingResponse: + def __init__(self, content: ContentResource) -> None: self._content = content self.update = to_streamed_response_wrapper( @@ -319,8 +319,8 @@ def __init__(self, content: Content) -> None: ) -class AsyncContentWithStreamingResponse: - def __init__(self, content: AsyncContent) -> None: +class AsyncContentResourceWithStreamingResponse: + def __init__(self, content: AsyncContentResource) -> None: self._content = content self.update = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/workers/scripts/deployments.py b/src/cloudflare/resources/workers/scripts/deployments.py index 4868ee27f92..25a76d167d7 100644 --- a/src/cloudflare/resources/workers/scripts/deployments.py +++ b/src/cloudflare/resources/workers/scripts/deployments.py @@ -28,17 +28,17 @@ from ....types.workers.scripts.deployment_get_response import DeploymentGetResponse from ....types.workers.scripts.deployment_create_response import DeploymentCreateResponse -__all__ = ["Deployments", "AsyncDeployments"] +__all__ = ["DeploymentsResource", "AsyncDeploymentsResource"] -class Deployments(SyncAPIResource): +class DeploymentsResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> DeploymentsWithRawResponse: - return DeploymentsWithRawResponse(self) + def with_raw_response(self) -> DeploymentsResourceWithRawResponse: + return DeploymentsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> DeploymentsWithStreamingResponse: - return DeploymentsWithStreamingResponse(self) + def with_streaming_response(self) -> DeploymentsResourceWithStreamingResponse: + return DeploymentsResourceWithStreamingResponse(self) def create( self, @@ -143,14 +143,14 @@ def get( ) -class AsyncDeployments(AsyncAPIResource): +class AsyncDeploymentsResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncDeploymentsWithRawResponse: - return AsyncDeploymentsWithRawResponse(self) + def with_raw_response(self) -> AsyncDeploymentsResourceWithRawResponse: + return AsyncDeploymentsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncDeploymentsWithStreamingResponse: - return AsyncDeploymentsWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncDeploymentsResourceWithStreamingResponse: + return AsyncDeploymentsResourceWithStreamingResponse(self) async def create( self, @@ -255,8 +255,8 @@ async def get( ) -class DeploymentsWithRawResponse: - def __init__(self, deployments: Deployments) -> None: +class DeploymentsResourceWithRawResponse: + def __init__(self, deployments: DeploymentsResource) -> None: self._deployments = deployments self.create = to_raw_response_wrapper( @@ -267,8 +267,8 @@ def __init__(self, deployments: Deployments) -> None: ) -class AsyncDeploymentsWithRawResponse: - def __init__(self, deployments: AsyncDeployments) -> None: +class AsyncDeploymentsResourceWithRawResponse: + def __init__(self, deployments: AsyncDeploymentsResource) -> None: self._deployments = deployments self.create = async_to_raw_response_wrapper( @@ -279,8 +279,8 @@ def __init__(self, deployments: AsyncDeployments) -> None: ) -class DeploymentsWithStreamingResponse: - def __init__(self, deployments: Deployments) -> None: +class DeploymentsResourceWithStreamingResponse: + def __init__(self, deployments: DeploymentsResource) -> None: self._deployments = deployments self.create = to_streamed_response_wrapper( @@ -291,8 +291,8 @@ def __init__(self, deployments: Deployments) -> None: ) -class AsyncDeploymentsWithStreamingResponse: - def __init__(self, deployments: AsyncDeployments) -> None: +class AsyncDeploymentsResourceWithStreamingResponse: + def __init__(self, deployments: AsyncDeploymentsResource) -> None: self._deployments = deployments self.create = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/workers/scripts/schedules.py b/src/cloudflare/resources/workers/scripts/schedules.py index d9a67138b52..229fcc45ebc 100644 --- a/src/cloudflare/resources/workers/scripts/schedules.py +++ b/src/cloudflare/resources/workers/scripts/schedules.py @@ -27,17 +27,17 @@ from ....types.workers.scripts.schedule_get_response import ScheduleGetResponse from ....types.workers.scripts.schedule_update_response import ScheduleUpdateResponse -__all__ = ["Schedules", "AsyncSchedules"] +__all__ = ["SchedulesResource", "AsyncSchedulesResource"] -class Schedules(SyncAPIResource): +class SchedulesResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> SchedulesWithRawResponse: - return SchedulesWithRawResponse(self) + def with_raw_response(self) -> SchedulesResourceWithRawResponse: + return SchedulesResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> SchedulesWithStreamingResponse: - return SchedulesWithStreamingResponse(self) + def with_streaming_response(self) -> SchedulesResourceWithStreamingResponse: + return SchedulesResourceWithStreamingResponse(self) def update( self, @@ -130,14 +130,14 @@ def get( ) -class AsyncSchedules(AsyncAPIResource): +class AsyncSchedulesResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncSchedulesWithRawResponse: - return AsyncSchedulesWithRawResponse(self) + def with_raw_response(self) -> AsyncSchedulesResourceWithRawResponse: + return AsyncSchedulesResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncSchedulesWithStreamingResponse: - return AsyncSchedulesWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncSchedulesResourceWithStreamingResponse: + return AsyncSchedulesResourceWithStreamingResponse(self) async def update( self, @@ -230,8 +230,8 @@ async def get( ) -class SchedulesWithRawResponse: - def __init__(self, schedules: Schedules) -> None: +class SchedulesResourceWithRawResponse: + def __init__(self, schedules: SchedulesResource) -> None: self._schedules = schedules self.update = to_raw_response_wrapper( @@ -242,8 +242,8 @@ def __init__(self, schedules: Schedules) -> None: ) -class AsyncSchedulesWithRawResponse: - def __init__(self, schedules: AsyncSchedules) -> None: +class AsyncSchedulesResourceWithRawResponse: + def __init__(self, schedules: AsyncSchedulesResource) -> None: self._schedules = schedules self.update = async_to_raw_response_wrapper( @@ -254,8 +254,8 @@ def __init__(self, schedules: AsyncSchedules) -> None: ) -class SchedulesWithStreamingResponse: - def __init__(self, schedules: Schedules) -> None: +class SchedulesResourceWithStreamingResponse: + def __init__(self, schedules: SchedulesResource) -> None: self._schedules = schedules self.update = to_streamed_response_wrapper( @@ -266,8 +266,8 @@ def __init__(self, schedules: Schedules) -> None: ) -class AsyncSchedulesWithStreamingResponse: - def __init__(self, schedules: AsyncSchedules) -> None: +class AsyncSchedulesResourceWithStreamingResponse: + def __init__(self, schedules: AsyncSchedulesResource) -> None: self._schedules = schedules self.update = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/workers/scripts/scripts.py b/src/cloudflare/resources/workers/scripts/scripts.py index 41e87111417..437479de3a1 100644 --- a/src/cloudflare/resources/workers/scripts/scripts.py +++ b/src/cloudflare/resources/workers/scripts/scripts.py @@ -7,36 +7,36 @@ import httpx from .tail import ( - Tail, - AsyncTail, - TailWithRawResponse, - AsyncTailWithRawResponse, - TailWithStreamingResponse, - AsyncTailWithStreamingResponse, + TailResource, + AsyncTailResource, + TailResourceWithRawResponse, + AsyncTailResourceWithRawResponse, + TailResourceWithStreamingResponse, + AsyncTailResourceWithStreamingResponse, ) from .content import ( - Content, - AsyncContent, - ContentWithRawResponse, - AsyncContentWithRawResponse, - ContentWithStreamingResponse, - AsyncContentWithStreamingResponse, + ContentResource, + AsyncContentResource, + ContentResourceWithRawResponse, + AsyncContentResourceWithRawResponse, + ContentResourceWithStreamingResponse, + AsyncContentResourceWithStreamingResponse, ) from .settings import ( - Settings, - AsyncSettings, - SettingsWithRawResponse, - AsyncSettingsWithRawResponse, - SettingsWithStreamingResponse, - AsyncSettingsWithStreamingResponse, + SettingsResource, + AsyncSettingsResource, + SettingsResourceWithRawResponse, + AsyncSettingsResourceWithRawResponse, + SettingsResourceWithStreamingResponse, + AsyncSettingsResourceWithStreamingResponse, ) from .versions import ( - Versions, - AsyncVersions, - VersionsWithRawResponse, - AsyncVersionsWithRawResponse, - VersionsWithStreamingResponse, - AsyncVersionsWithStreamingResponse, + VersionsResource, + AsyncVersionsResource, + VersionsResourceWithRawResponse, + AsyncVersionsResourceWithRawResponse, + VersionsResourceWithStreamingResponse, + AsyncVersionsResourceWithStreamingResponse, ) from ...._types import NOT_GIVEN, Body, Query, Headers, NoneType, NotGiven, FileTypes from ...._utils import ( @@ -45,21 +45,21 @@ async_maybe_transform, ) from .schedules import ( - Schedules, - AsyncSchedules, - SchedulesWithRawResponse, - AsyncSchedulesWithRawResponse, - SchedulesWithStreamingResponse, - AsyncSchedulesWithStreamingResponse, + SchedulesResource, + AsyncSchedulesResource, + SchedulesResourceWithRawResponse, + AsyncSchedulesResourceWithRawResponse, + SchedulesResourceWithStreamingResponse, + AsyncSchedulesResourceWithStreamingResponse, ) from ...._compat import cached_property from .deployments import ( - Deployments, - AsyncDeployments, - DeploymentsWithRawResponse, - AsyncDeploymentsWithRawResponse, - DeploymentsWithStreamingResponse, - AsyncDeploymentsWithStreamingResponse, + DeploymentsResource, + AsyncDeploymentsResource, + DeploymentsResourceWithRawResponse, + AsyncDeploymentsResourceWithRawResponse, + DeploymentsResourceWithStreamingResponse, + AsyncDeploymentsResourceWithStreamingResponse, ) from ...._resource import SyncAPIResource, AsyncAPIResource from ...._response import ( @@ -85,41 +85,41 @@ from ....types.workers import script_delete_params, script_update_params from ....types.workers.script import Script -__all__ = ["Scripts", "AsyncScripts"] +__all__ = ["ScriptsResource", "AsyncScriptsResource"] -class Scripts(SyncAPIResource): +class ScriptsResource(SyncAPIResource): @cached_property - def schedules(self) -> Schedules: - return Schedules(self._client) + def schedules(self) -> SchedulesResource: + return SchedulesResource(self._client) @cached_property - def tail(self) -> Tail: - return Tail(self._client) + def tail(self) -> TailResource: + return TailResource(self._client) @cached_property - def content(self) -> Content: - return Content(self._client) + def content(self) -> ContentResource: + return ContentResource(self._client) @cached_property - def settings(self) -> Settings: - return Settings(self._client) + def settings(self) -> SettingsResource: + return SettingsResource(self._client) @cached_property - def deployments(self) -> Deployments: - return Deployments(self._client) + def deployments(self) -> DeploymentsResource: + return DeploymentsResource(self._client) @cached_property - def versions(self) -> Versions: - return Versions(self._client) + def versions(self) -> VersionsResource: + return VersionsResource(self._client) @cached_property - def with_raw_response(self) -> ScriptsWithRawResponse: - return ScriptsWithRawResponse(self) + def with_raw_response(self) -> ScriptsResourceWithRawResponse: + return ScriptsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> ScriptsWithStreamingResponse: - return ScriptsWithStreamingResponse(self) + def with_streaming_response(self) -> ScriptsResourceWithStreamingResponse: + return ScriptsResourceWithStreamingResponse(self) @overload def update( @@ -382,38 +382,38 @@ def get( ) -class AsyncScripts(AsyncAPIResource): +class AsyncScriptsResource(AsyncAPIResource): @cached_property - def schedules(self) -> AsyncSchedules: - return AsyncSchedules(self._client) + def schedules(self) -> AsyncSchedulesResource: + return AsyncSchedulesResource(self._client) @cached_property - def tail(self) -> AsyncTail: - return AsyncTail(self._client) + def tail(self) -> AsyncTailResource: + return AsyncTailResource(self._client) @cached_property - def content(self) -> AsyncContent: - return AsyncContent(self._client) + def content(self) -> AsyncContentResource: + return AsyncContentResource(self._client) @cached_property - def settings(self) -> AsyncSettings: - return AsyncSettings(self._client) + def settings(self) -> AsyncSettingsResource: + return AsyncSettingsResource(self._client) @cached_property - def deployments(self) -> AsyncDeployments: - return AsyncDeployments(self._client) + def deployments(self) -> AsyncDeploymentsResource: + return AsyncDeploymentsResource(self._client) @cached_property - def versions(self) -> AsyncVersions: - return AsyncVersions(self._client) + def versions(self) -> AsyncVersionsResource: + return AsyncVersionsResource(self._client) @cached_property - def with_raw_response(self) -> AsyncScriptsWithRawResponse: - return AsyncScriptsWithRawResponse(self) + def with_raw_response(self) -> AsyncScriptsResourceWithRawResponse: + return AsyncScriptsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncScriptsWithStreamingResponse: - return AsyncScriptsWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncScriptsResourceWithStreamingResponse: + return AsyncScriptsResourceWithStreamingResponse(self) @overload async def update( @@ -678,8 +678,8 @@ async def get( ) -class ScriptsWithRawResponse: - def __init__(self, scripts: Scripts) -> None: +class ScriptsResourceWithRawResponse: + def __init__(self, scripts: ScriptsResource) -> None: self._scripts = scripts self.update = to_raw_response_wrapper( @@ -697,32 +697,32 @@ def __init__(self, scripts: Scripts) -> None: ) @cached_property - def schedules(self) -> SchedulesWithRawResponse: - return SchedulesWithRawResponse(self._scripts.schedules) + def schedules(self) -> SchedulesResourceWithRawResponse: + return SchedulesResourceWithRawResponse(self._scripts.schedules) @cached_property - def tail(self) -> TailWithRawResponse: - return TailWithRawResponse(self._scripts.tail) + def tail(self) -> TailResourceWithRawResponse: + return TailResourceWithRawResponse(self._scripts.tail) @cached_property - def content(self) -> ContentWithRawResponse: - return ContentWithRawResponse(self._scripts.content) + def content(self) -> ContentResourceWithRawResponse: + return ContentResourceWithRawResponse(self._scripts.content) @cached_property - def settings(self) -> SettingsWithRawResponse: - return SettingsWithRawResponse(self._scripts.settings) + def settings(self) -> SettingsResourceWithRawResponse: + return SettingsResourceWithRawResponse(self._scripts.settings) @cached_property - def deployments(self) -> DeploymentsWithRawResponse: - return DeploymentsWithRawResponse(self._scripts.deployments) + def deployments(self) -> DeploymentsResourceWithRawResponse: + return DeploymentsResourceWithRawResponse(self._scripts.deployments) @cached_property - def versions(self) -> VersionsWithRawResponse: - return VersionsWithRawResponse(self._scripts.versions) + def versions(self) -> VersionsResourceWithRawResponse: + return VersionsResourceWithRawResponse(self._scripts.versions) -class AsyncScriptsWithRawResponse: - def __init__(self, scripts: AsyncScripts) -> None: +class AsyncScriptsResourceWithRawResponse: + def __init__(self, scripts: AsyncScriptsResource) -> None: self._scripts = scripts self.update = async_to_raw_response_wrapper( @@ -740,32 +740,32 @@ def __init__(self, scripts: AsyncScripts) -> None: ) @cached_property - def schedules(self) -> AsyncSchedulesWithRawResponse: - return AsyncSchedulesWithRawResponse(self._scripts.schedules) + def schedules(self) -> AsyncSchedulesResourceWithRawResponse: + return AsyncSchedulesResourceWithRawResponse(self._scripts.schedules) @cached_property - def tail(self) -> AsyncTailWithRawResponse: - return AsyncTailWithRawResponse(self._scripts.tail) + def tail(self) -> AsyncTailResourceWithRawResponse: + return AsyncTailResourceWithRawResponse(self._scripts.tail) @cached_property - def content(self) -> AsyncContentWithRawResponse: - return AsyncContentWithRawResponse(self._scripts.content) + def content(self) -> AsyncContentResourceWithRawResponse: + return AsyncContentResourceWithRawResponse(self._scripts.content) @cached_property - def settings(self) -> AsyncSettingsWithRawResponse: - return AsyncSettingsWithRawResponse(self._scripts.settings) + def settings(self) -> AsyncSettingsResourceWithRawResponse: + return AsyncSettingsResourceWithRawResponse(self._scripts.settings) @cached_property - def deployments(self) -> AsyncDeploymentsWithRawResponse: - return AsyncDeploymentsWithRawResponse(self._scripts.deployments) + def deployments(self) -> AsyncDeploymentsResourceWithRawResponse: + return AsyncDeploymentsResourceWithRawResponse(self._scripts.deployments) @cached_property - def versions(self) -> AsyncVersionsWithRawResponse: - return AsyncVersionsWithRawResponse(self._scripts.versions) + def versions(self) -> AsyncVersionsResourceWithRawResponse: + return AsyncVersionsResourceWithRawResponse(self._scripts.versions) -class ScriptsWithStreamingResponse: - def __init__(self, scripts: Scripts) -> None: +class ScriptsResourceWithStreamingResponse: + def __init__(self, scripts: ScriptsResource) -> None: self._scripts = scripts self.update = to_streamed_response_wrapper( @@ -783,32 +783,32 @@ def __init__(self, scripts: Scripts) -> None: ) @cached_property - def schedules(self) -> SchedulesWithStreamingResponse: - return SchedulesWithStreamingResponse(self._scripts.schedules) + def schedules(self) -> SchedulesResourceWithStreamingResponse: + return SchedulesResourceWithStreamingResponse(self._scripts.schedules) @cached_property - def tail(self) -> TailWithStreamingResponse: - return TailWithStreamingResponse(self._scripts.tail) + def tail(self) -> TailResourceWithStreamingResponse: + return TailResourceWithStreamingResponse(self._scripts.tail) @cached_property - def content(self) -> ContentWithStreamingResponse: - return ContentWithStreamingResponse(self._scripts.content) + def content(self) -> ContentResourceWithStreamingResponse: + return ContentResourceWithStreamingResponse(self._scripts.content) @cached_property - def settings(self) -> SettingsWithStreamingResponse: - return SettingsWithStreamingResponse(self._scripts.settings) + def settings(self) -> SettingsResourceWithStreamingResponse: + return SettingsResourceWithStreamingResponse(self._scripts.settings) @cached_property - def deployments(self) -> DeploymentsWithStreamingResponse: - return DeploymentsWithStreamingResponse(self._scripts.deployments) + def deployments(self) -> DeploymentsResourceWithStreamingResponse: + return DeploymentsResourceWithStreamingResponse(self._scripts.deployments) @cached_property - def versions(self) -> VersionsWithStreamingResponse: - return VersionsWithStreamingResponse(self._scripts.versions) + def versions(self) -> VersionsResourceWithStreamingResponse: + return VersionsResourceWithStreamingResponse(self._scripts.versions) -class AsyncScriptsWithStreamingResponse: - def __init__(self, scripts: AsyncScripts) -> None: +class AsyncScriptsResourceWithStreamingResponse: + def __init__(self, scripts: AsyncScriptsResource) -> None: self._scripts = scripts self.update = async_to_streamed_response_wrapper( @@ -826,25 +826,25 @@ def __init__(self, scripts: AsyncScripts) -> None: ) @cached_property - def schedules(self) -> AsyncSchedulesWithStreamingResponse: - return AsyncSchedulesWithStreamingResponse(self._scripts.schedules) + def schedules(self) -> AsyncSchedulesResourceWithStreamingResponse: + return AsyncSchedulesResourceWithStreamingResponse(self._scripts.schedules) @cached_property - def tail(self) -> AsyncTailWithStreamingResponse: - return AsyncTailWithStreamingResponse(self._scripts.tail) + def tail(self) -> AsyncTailResourceWithStreamingResponse: + return AsyncTailResourceWithStreamingResponse(self._scripts.tail) @cached_property - def content(self) -> AsyncContentWithStreamingResponse: - return AsyncContentWithStreamingResponse(self._scripts.content) + def content(self) -> AsyncContentResourceWithStreamingResponse: + return AsyncContentResourceWithStreamingResponse(self._scripts.content) @cached_property - def settings(self) -> AsyncSettingsWithStreamingResponse: - return AsyncSettingsWithStreamingResponse(self._scripts.settings) + def settings(self) -> AsyncSettingsResourceWithStreamingResponse: + return AsyncSettingsResourceWithStreamingResponse(self._scripts.settings) @cached_property - def deployments(self) -> AsyncDeploymentsWithStreamingResponse: - return AsyncDeploymentsWithStreamingResponse(self._scripts.deployments) + def deployments(self) -> AsyncDeploymentsResourceWithStreamingResponse: + return AsyncDeploymentsResourceWithStreamingResponse(self._scripts.deployments) @cached_property - def versions(self) -> AsyncVersionsWithStreamingResponse: - return AsyncVersionsWithStreamingResponse(self._scripts.versions) + def versions(self) -> AsyncVersionsResourceWithStreamingResponse: + return AsyncVersionsResourceWithStreamingResponse(self._scripts.versions) diff --git a/src/cloudflare/resources/workers/scripts/settings.py b/src/cloudflare/resources/workers/scripts/settings.py index b86f77ce2d3..0e094f58b04 100644 --- a/src/cloudflare/resources/workers/scripts/settings.py +++ b/src/cloudflare/resources/workers/scripts/settings.py @@ -27,17 +27,17 @@ from ....types.workers.script_setting import ScriptSetting from ....types.workers.scripts.consumer_script_param import ConsumerScriptParam -__all__ = ["Settings", "AsyncSettings"] +__all__ = ["SettingsResource", "AsyncSettingsResource"] -class Settings(SyncAPIResource): +class SettingsResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> SettingsWithRawResponse: - return SettingsWithRawResponse(self) + def with_raw_response(self) -> SettingsResourceWithRawResponse: + return SettingsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> SettingsWithStreamingResponse: - return SettingsWithStreamingResponse(self) + def with_streaming_response(self) -> SettingsResourceWithStreamingResponse: + return SettingsResourceWithStreamingResponse(self) def edit( self, @@ -145,14 +145,14 @@ def get( ) -class AsyncSettings(AsyncAPIResource): +class AsyncSettingsResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncSettingsWithRawResponse: - return AsyncSettingsWithRawResponse(self) + def with_raw_response(self) -> AsyncSettingsResourceWithRawResponse: + return AsyncSettingsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncSettingsWithStreamingResponse: - return AsyncSettingsWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncSettingsResourceWithStreamingResponse: + return AsyncSettingsResourceWithStreamingResponse(self) async def edit( self, @@ -260,8 +260,8 @@ async def get( ) -class SettingsWithRawResponse: - def __init__(self, settings: Settings) -> None: +class SettingsResourceWithRawResponse: + def __init__(self, settings: SettingsResource) -> None: self._settings = settings self.edit = to_raw_response_wrapper( @@ -272,8 +272,8 @@ def __init__(self, settings: Settings) -> None: ) -class AsyncSettingsWithRawResponse: - def __init__(self, settings: AsyncSettings) -> None: +class AsyncSettingsResourceWithRawResponse: + def __init__(self, settings: AsyncSettingsResource) -> None: self._settings = settings self.edit = async_to_raw_response_wrapper( @@ -284,8 +284,8 @@ def __init__(self, settings: AsyncSettings) -> None: ) -class SettingsWithStreamingResponse: - def __init__(self, settings: Settings) -> None: +class SettingsResourceWithStreamingResponse: + def __init__(self, settings: SettingsResource) -> None: self._settings = settings self.edit = to_streamed_response_wrapper( @@ -296,8 +296,8 @@ def __init__(self, settings: Settings) -> None: ) -class AsyncSettingsWithStreamingResponse: - def __init__(self, settings: AsyncSettings) -> None: +class AsyncSettingsResourceWithStreamingResponse: + def __init__(self, settings: AsyncSettingsResource) -> None: self._settings = settings self.edit = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/workers/scripts/tail.py b/src/cloudflare/resources/workers/scripts/tail.py index 1a066d9db0a..c0185a5b22b 100644 --- a/src/cloudflare/resources/workers/scripts/tail.py +++ b/src/cloudflare/resources/workers/scripts/tail.py @@ -28,17 +28,17 @@ from ....types.workers.scripts.tail_create_response import TailCreateResponse from ....types.workers.scripts.tail_delete_response import TailDeleteResponse -__all__ = ["Tail", "AsyncTail"] +__all__ = ["TailResource", "AsyncTailResource"] -class Tail(SyncAPIResource): +class TailResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> TailWithRawResponse: - return TailWithRawResponse(self) + def with_raw_response(self) -> TailResourceWithRawResponse: + return TailResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> TailWithStreamingResponse: - return TailWithStreamingResponse(self) + def with_streaming_response(self) -> TailResourceWithStreamingResponse: + return TailResourceWithStreamingResponse(self) def create( self, @@ -178,14 +178,14 @@ def get( ) -class AsyncTail(AsyncAPIResource): +class AsyncTailResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncTailWithRawResponse: - return AsyncTailWithRawResponse(self) + def with_raw_response(self) -> AsyncTailResourceWithRawResponse: + return AsyncTailResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncTailWithStreamingResponse: - return AsyncTailWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncTailResourceWithStreamingResponse: + return AsyncTailResourceWithStreamingResponse(self) async def create( self, @@ -325,8 +325,8 @@ async def get( ) -class TailWithRawResponse: - def __init__(self, tail: Tail) -> None: +class TailResourceWithRawResponse: + def __init__(self, tail: TailResource) -> None: self._tail = tail self.create = to_raw_response_wrapper( @@ -340,8 +340,8 @@ def __init__(self, tail: Tail) -> None: ) -class AsyncTailWithRawResponse: - def __init__(self, tail: AsyncTail) -> None: +class AsyncTailResourceWithRawResponse: + def __init__(self, tail: AsyncTailResource) -> None: self._tail = tail self.create = async_to_raw_response_wrapper( @@ -355,8 +355,8 @@ def __init__(self, tail: AsyncTail) -> None: ) -class TailWithStreamingResponse: - def __init__(self, tail: Tail) -> None: +class TailResourceWithStreamingResponse: + def __init__(self, tail: TailResource) -> None: self._tail = tail self.create = to_streamed_response_wrapper( @@ -370,8 +370,8 @@ def __init__(self, tail: Tail) -> None: ) -class AsyncTailWithStreamingResponse: - def __init__(self, tail: AsyncTail) -> None: +class AsyncTailResourceWithStreamingResponse: + def __init__(self, tail: AsyncTailResource) -> None: self._tail = tail self.create = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/workers/scripts/versions.py b/src/cloudflare/resources/workers/scripts/versions.py index 19f739b6c02..493ece2bd84 100644 --- a/src/cloudflare/resources/workers/scripts/versions.py +++ b/src/cloudflare/resources/workers/scripts/versions.py @@ -30,17 +30,17 @@ from ....types.workers.scripts.version_list_response import VersionListResponse from ....types.workers.scripts.version_create_response import VersionCreateResponse -__all__ = ["Versions", "AsyncVersions"] +__all__ = ["VersionsResource", "AsyncVersionsResource"] -class Versions(SyncAPIResource): +class VersionsResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> VersionsWithRawResponse: - return VersionsWithRawResponse(self) + def with_raw_response(self) -> VersionsResourceWithRawResponse: + return VersionsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> VersionsWithStreamingResponse: - return VersionsWithStreamingResponse(self) + def with_streaming_response(self) -> VersionsResourceWithStreamingResponse: + return VersionsResourceWithStreamingResponse(self) def create( self, @@ -201,14 +201,14 @@ def get( ) -class AsyncVersions(AsyncAPIResource): +class AsyncVersionsResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncVersionsWithRawResponse: - return AsyncVersionsWithRawResponse(self) + def with_raw_response(self) -> AsyncVersionsResourceWithRawResponse: + return AsyncVersionsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncVersionsWithStreamingResponse: - return AsyncVersionsWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncVersionsResourceWithStreamingResponse: + return AsyncVersionsResourceWithStreamingResponse(self) async def create( self, @@ -369,8 +369,8 @@ async def get( ) -class VersionsWithRawResponse: - def __init__(self, versions: Versions) -> None: +class VersionsResourceWithRawResponse: + def __init__(self, versions: VersionsResource) -> None: self._versions = versions self.create = to_raw_response_wrapper( @@ -384,8 +384,8 @@ def __init__(self, versions: Versions) -> None: ) -class AsyncVersionsWithRawResponse: - def __init__(self, versions: AsyncVersions) -> None: +class AsyncVersionsResourceWithRawResponse: + def __init__(self, versions: AsyncVersionsResource) -> None: self._versions = versions self.create = async_to_raw_response_wrapper( @@ -399,8 +399,8 @@ def __init__(self, versions: AsyncVersions) -> None: ) -class VersionsWithStreamingResponse: - def __init__(self, versions: Versions) -> None: +class VersionsResourceWithStreamingResponse: + def __init__(self, versions: VersionsResource) -> None: self._versions = versions self.create = to_streamed_response_wrapper( @@ -414,8 +414,8 @@ def __init__(self, versions: Versions) -> None: ) -class AsyncVersionsWithStreamingResponse: - def __init__(self, versions: AsyncVersions) -> None: +class AsyncVersionsResourceWithStreamingResponse: + def __init__(self, versions: AsyncVersionsResource) -> None: self._versions = versions self.create = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/workers/subdomains.py b/src/cloudflare/resources/workers/subdomains.py index 7f495bc060c..de75ee895ef 100644 --- a/src/cloudflare/resources/workers/subdomains.py +++ b/src/cloudflare/resources/workers/subdomains.py @@ -27,17 +27,17 @@ from ...types.workers.subdomain_get_response import SubdomainGetResponse from ...types.workers.subdomain_update_response import SubdomainUpdateResponse -__all__ = ["Subdomains", "AsyncSubdomains"] +__all__ = ["SubdomainsResource", "AsyncSubdomainsResource"] -class Subdomains(SyncAPIResource): +class SubdomainsResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> SubdomainsWithRawResponse: - return SubdomainsWithRawResponse(self) + def with_raw_response(self) -> SubdomainsResourceWithRawResponse: + return SubdomainsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> SubdomainsWithStreamingResponse: - return SubdomainsWithStreamingResponse(self) + def with_streaming_response(self) -> SubdomainsResourceWithStreamingResponse: + return SubdomainsResourceWithStreamingResponse(self) def update( self, @@ -120,14 +120,14 @@ def get( ) -class AsyncSubdomains(AsyncAPIResource): +class AsyncSubdomainsResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncSubdomainsWithRawResponse: - return AsyncSubdomainsWithRawResponse(self) + def with_raw_response(self) -> AsyncSubdomainsResourceWithRawResponse: + return AsyncSubdomainsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncSubdomainsWithStreamingResponse: - return AsyncSubdomainsWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncSubdomainsResourceWithStreamingResponse: + return AsyncSubdomainsResourceWithStreamingResponse(self) async def update( self, @@ -210,8 +210,8 @@ async def get( ) -class SubdomainsWithRawResponse: - def __init__(self, subdomains: Subdomains) -> None: +class SubdomainsResourceWithRawResponse: + def __init__(self, subdomains: SubdomainsResource) -> None: self._subdomains = subdomains self.update = to_raw_response_wrapper( @@ -222,8 +222,8 @@ def __init__(self, subdomains: Subdomains) -> None: ) -class AsyncSubdomainsWithRawResponse: - def __init__(self, subdomains: AsyncSubdomains) -> None: +class AsyncSubdomainsResourceWithRawResponse: + def __init__(self, subdomains: AsyncSubdomainsResource) -> None: self._subdomains = subdomains self.update = async_to_raw_response_wrapper( @@ -234,8 +234,8 @@ def __init__(self, subdomains: AsyncSubdomains) -> None: ) -class SubdomainsWithStreamingResponse: - def __init__(self, subdomains: Subdomains) -> None: +class SubdomainsResourceWithStreamingResponse: + def __init__(self, subdomains: SubdomainsResource) -> None: self._subdomains = subdomains self.update = to_streamed_response_wrapper( @@ -246,8 +246,8 @@ def __init__(self, subdomains: Subdomains) -> None: ) -class AsyncSubdomainsWithStreamingResponse: - def __init__(self, subdomains: AsyncSubdomains) -> None: +class AsyncSubdomainsResourceWithStreamingResponse: + def __init__(self, subdomains: AsyncSubdomainsResource) -> None: self._subdomains = subdomains self.update = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/workers/workers.py b/src/cloudflare/resources/workers/workers.py index 03e68dd70c9..195b4a21670 100644 --- a/src/cloudflare/resources/workers/workers.py +++ b/src/cloudflare/resources/workers/workers.py @@ -3,207 +3,207 @@ from __future__ import annotations from .ai import ( - AI, - AsyncAI, - AIWithRawResponse, - AsyncAIWithRawResponse, - AIWithStreamingResponse, - AsyncAIWithStreamingResponse, + AIResource, + AsyncAIResource, + AIResourceWithRawResponse, + AsyncAIResourceWithRawResponse, + AIResourceWithStreamingResponse, + AsyncAIResourceWithStreamingResponse, ) from .domains import ( - Domains, - AsyncDomains, - DomainsWithRawResponse, - AsyncDomainsWithRawResponse, - DomainsWithStreamingResponse, - AsyncDomainsWithStreamingResponse, + DomainsResource, + AsyncDomainsResource, + DomainsResourceWithRawResponse, + AsyncDomainsResourceWithRawResponse, + DomainsResourceWithStreamingResponse, + AsyncDomainsResourceWithStreamingResponse, ) from .scripts import ( - Scripts, - AsyncScripts, - ScriptsWithRawResponse, - AsyncScriptsWithRawResponse, - ScriptsWithStreamingResponse, - AsyncScriptsWithStreamingResponse, + ScriptsResource, + AsyncScriptsResource, + ScriptsResourceWithRawResponse, + AsyncScriptsResourceWithRawResponse, + ScriptsResourceWithStreamingResponse, + AsyncScriptsResourceWithStreamingResponse, ) from ..._compat import cached_property from .subdomains import ( - Subdomains, - AsyncSubdomains, - SubdomainsWithRawResponse, - AsyncSubdomainsWithRawResponse, - SubdomainsWithStreamingResponse, - AsyncSubdomainsWithStreamingResponse, + SubdomainsResource, + AsyncSubdomainsResource, + SubdomainsResourceWithRawResponse, + AsyncSubdomainsResourceWithRawResponse, + SubdomainsResourceWithStreamingResponse, + AsyncSubdomainsResourceWithStreamingResponse, ) from ..._resource import SyncAPIResource, AsyncAPIResource -from .scripts.scripts import Scripts, AsyncScripts +from .scripts.scripts import ScriptsResource, AsyncScriptsResource from .account_settings import ( - AccountSettings, - AsyncAccountSettings, - AccountSettingsWithRawResponse, - AsyncAccountSettingsWithRawResponse, - AccountSettingsWithStreamingResponse, - AsyncAccountSettingsWithStreamingResponse, + AccountSettingsResource, + AsyncAccountSettingsResource, + AccountSettingsResourceWithRawResponse, + AsyncAccountSettingsResourceWithRawResponse, + AccountSettingsResourceWithStreamingResponse, + AsyncAccountSettingsResourceWithStreamingResponse, ) -__all__ = ["Workers", "AsyncWorkers"] +__all__ = ["WorkersResource", "AsyncWorkersResource"] -class Workers(SyncAPIResource): +class WorkersResource(SyncAPIResource): @cached_property - def ai(self) -> AI: - return AI(self._client) + def ai(self) -> AIResource: + return AIResource(self._client) @cached_property - def scripts(self) -> Scripts: - return Scripts(self._client) + def scripts(self) -> ScriptsResource: + return ScriptsResource(self._client) @cached_property - def account_settings(self) -> AccountSettings: - return AccountSettings(self._client) + def account_settings(self) -> AccountSettingsResource: + return AccountSettingsResource(self._client) @cached_property - def domains(self) -> Domains: - return Domains(self._client) + def domains(self) -> DomainsResource: + return DomainsResource(self._client) @cached_property - def subdomains(self) -> Subdomains: - return Subdomains(self._client) + def subdomains(self) -> SubdomainsResource: + return SubdomainsResource(self._client) @cached_property - def with_raw_response(self) -> WorkersWithRawResponse: - return WorkersWithRawResponse(self) + def with_raw_response(self) -> WorkersResourceWithRawResponse: + return WorkersResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> WorkersWithStreamingResponse: - return WorkersWithStreamingResponse(self) + def with_streaming_response(self) -> WorkersResourceWithStreamingResponse: + return WorkersResourceWithStreamingResponse(self) -class AsyncWorkers(AsyncAPIResource): +class AsyncWorkersResource(AsyncAPIResource): @cached_property - def ai(self) -> AsyncAI: - return AsyncAI(self._client) + def ai(self) -> AsyncAIResource: + return AsyncAIResource(self._client) @cached_property - def scripts(self) -> AsyncScripts: - return AsyncScripts(self._client) + def scripts(self) -> AsyncScriptsResource: + return AsyncScriptsResource(self._client) @cached_property - def account_settings(self) -> AsyncAccountSettings: - return AsyncAccountSettings(self._client) + def account_settings(self) -> AsyncAccountSettingsResource: + return AsyncAccountSettingsResource(self._client) @cached_property - def domains(self) -> AsyncDomains: - return AsyncDomains(self._client) + def domains(self) -> AsyncDomainsResource: + return AsyncDomainsResource(self._client) @cached_property - def subdomains(self) -> AsyncSubdomains: - return AsyncSubdomains(self._client) + def subdomains(self) -> AsyncSubdomainsResource: + return AsyncSubdomainsResource(self._client) @cached_property - def with_raw_response(self) -> AsyncWorkersWithRawResponse: - return AsyncWorkersWithRawResponse(self) + def with_raw_response(self) -> AsyncWorkersResourceWithRawResponse: + return AsyncWorkersResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncWorkersWithStreamingResponse: - return AsyncWorkersWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncWorkersResourceWithStreamingResponse: + return AsyncWorkersResourceWithStreamingResponse(self) -class WorkersWithRawResponse: - def __init__(self, workers: Workers) -> None: +class WorkersResourceWithRawResponse: + def __init__(self, workers: WorkersResource) -> None: self._workers = workers @cached_property - def ai(self) -> AIWithRawResponse: - return AIWithRawResponse(self._workers.ai) + def ai(self) -> AIResourceWithRawResponse: + return AIResourceWithRawResponse(self._workers.ai) @cached_property - def scripts(self) -> ScriptsWithRawResponse: - return ScriptsWithRawResponse(self._workers.scripts) + def scripts(self) -> ScriptsResourceWithRawResponse: + return ScriptsResourceWithRawResponse(self._workers.scripts) @cached_property - def account_settings(self) -> AccountSettingsWithRawResponse: - return AccountSettingsWithRawResponse(self._workers.account_settings) + def account_settings(self) -> AccountSettingsResourceWithRawResponse: + return AccountSettingsResourceWithRawResponse(self._workers.account_settings) @cached_property - def domains(self) -> DomainsWithRawResponse: - return DomainsWithRawResponse(self._workers.domains) + def domains(self) -> DomainsResourceWithRawResponse: + return DomainsResourceWithRawResponse(self._workers.domains) @cached_property - def subdomains(self) -> SubdomainsWithRawResponse: - return SubdomainsWithRawResponse(self._workers.subdomains) + def subdomains(self) -> SubdomainsResourceWithRawResponse: + return SubdomainsResourceWithRawResponse(self._workers.subdomains) -class AsyncWorkersWithRawResponse: - def __init__(self, workers: AsyncWorkers) -> None: +class AsyncWorkersResourceWithRawResponse: + def __init__(self, workers: AsyncWorkersResource) -> None: self._workers = workers @cached_property - def ai(self) -> AsyncAIWithRawResponse: - return AsyncAIWithRawResponse(self._workers.ai) + def ai(self) -> AsyncAIResourceWithRawResponse: + return AsyncAIResourceWithRawResponse(self._workers.ai) @cached_property - def scripts(self) -> AsyncScriptsWithRawResponse: - return AsyncScriptsWithRawResponse(self._workers.scripts) + def scripts(self) -> AsyncScriptsResourceWithRawResponse: + return AsyncScriptsResourceWithRawResponse(self._workers.scripts) @cached_property - def account_settings(self) -> AsyncAccountSettingsWithRawResponse: - return AsyncAccountSettingsWithRawResponse(self._workers.account_settings) + def account_settings(self) -> AsyncAccountSettingsResourceWithRawResponse: + return AsyncAccountSettingsResourceWithRawResponse(self._workers.account_settings) @cached_property - def domains(self) -> AsyncDomainsWithRawResponse: - return AsyncDomainsWithRawResponse(self._workers.domains) + def domains(self) -> AsyncDomainsResourceWithRawResponse: + return AsyncDomainsResourceWithRawResponse(self._workers.domains) @cached_property - def subdomains(self) -> AsyncSubdomainsWithRawResponse: - return AsyncSubdomainsWithRawResponse(self._workers.subdomains) + def subdomains(self) -> AsyncSubdomainsResourceWithRawResponse: + return AsyncSubdomainsResourceWithRawResponse(self._workers.subdomains) -class WorkersWithStreamingResponse: - def __init__(self, workers: Workers) -> None: +class WorkersResourceWithStreamingResponse: + def __init__(self, workers: WorkersResource) -> None: self._workers = workers @cached_property - def ai(self) -> AIWithStreamingResponse: - return AIWithStreamingResponse(self._workers.ai) + def ai(self) -> AIResourceWithStreamingResponse: + return AIResourceWithStreamingResponse(self._workers.ai) @cached_property - def scripts(self) -> ScriptsWithStreamingResponse: - return ScriptsWithStreamingResponse(self._workers.scripts) + def scripts(self) -> ScriptsResourceWithStreamingResponse: + return ScriptsResourceWithStreamingResponse(self._workers.scripts) @cached_property - def account_settings(self) -> AccountSettingsWithStreamingResponse: - return AccountSettingsWithStreamingResponse(self._workers.account_settings) + def account_settings(self) -> AccountSettingsResourceWithStreamingResponse: + return AccountSettingsResourceWithStreamingResponse(self._workers.account_settings) @cached_property - def domains(self) -> DomainsWithStreamingResponse: - return DomainsWithStreamingResponse(self._workers.domains) + def domains(self) -> DomainsResourceWithStreamingResponse: + return DomainsResourceWithStreamingResponse(self._workers.domains) @cached_property - def subdomains(self) -> SubdomainsWithStreamingResponse: - return SubdomainsWithStreamingResponse(self._workers.subdomains) + def subdomains(self) -> SubdomainsResourceWithStreamingResponse: + return SubdomainsResourceWithStreamingResponse(self._workers.subdomains) -class AsyncWorkersWithStreamingResponse: - def __init__(self, workers: AsyncWorkers) -> None: +class AsyncWorkersResourceWithStreamingResponse: + def __init__(self, workers: AsyncWorkersResource) -> None: self._workers = workers @cached_property - def ai(self) -> AsyncAIWithStreamingResponse: - return AsyncAIWithStreamingResponse(self._workers.ai) + def ai(self) -> AsyncAIResourceWithStreamingResponse: + return AsyncAIResourceWithStreamingResponse(self._workers.ai) @cached_property - def scripts(self) -> AsyncScriptsWithStreamingResponse: - return AsyncScriptsWithStreamingResponse(self._workers.scripts) + def scripts(self) -> AsyncScriptsResourceWithStreamingResponse: + return AsyncScriptsResourceWithStreamingResponse(self._workers.scripts) @cached_property - def account_settings(self) -> AsyncAccountSettingsWithStreamingResponse: - return AsyncAccountSettingsWithStreamingResponse(self._workers.account_settings) + def account_settings(self) -> AsyncAccountSettingsResourceWithStreamingResponse: + return AsyncAccountSettingsResourceWithStreamingResponse(self._workers.account_settings) @cached_property - def domains(self) -> AsyncDomainsWithStreamingResponse: - return AsyncDomainsWithStreamingResponse(self._workers.domains) + def domains(self) -> AsyncDomainsResourceWithStreamingResponse: + return AsyncDomainsResourceWithStreamingResponse(self._workers.domains) @cached_property - def subdomains(self) -> AsyncSubdomainsWithStreamingResponse: - return AsyncSubdomainsWithStreamingResponse(self._workers.subdomains) + def subdomains(self) -> AsyncSubdomainsResourceWithStreamingResponse: + return AsyncSubdomainsResourceWithStreamingResponse(self._workers.subdomains) diff --git a/src/cloudflare/resources/workers_for_platforms/__init__.py b/src/cloudflare/resources/workers_for_platforms/__init__.py index 1341a8aacb0..2b1b30bdee8 100644 --- a/src/cloudflare/resources/workers_for_platforms/__init__.py +++ b/src/cloudflare/resources/workers_for_platforms/__init__.py @@ -1,33 +1,33 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from .dispatch import ( - Dispatch, - AsyncDispatch, - DispatchWithRawResponse, - AsyncDispatchWithRawResponse, - DispatchWithStreamingResponse, - AsyncDispatchWithStreamingResponse, + DispatchResource, + AsyncDispatchResource, + DispatchResourceWithRawResponse, + AsyncDispatchResourceWithRawResponse, + DispatchResourceWithStreamingResponse, + AsyncDispatchResourceWithStreamingResponse, ) from .workers_for_platforms import ( - WorkersForPlatforms, - AsyncWorkersForPlatforms, - WorkersForPlatformsWithRawResponse, - AsyncWorkersForPlatformsWithRawResponse, - WorkersForPlatformsWithStreamingResponse, - AsyncWorkersForPlatformsWithStreamingResponse, + WorkersForPlatformsResource, + AsyncWorkersForPlatformsResource, + WorkersForPlatformsResourceWithRawResponse, + AsyncWorkersForPlatformsResourceWithRawResponse, + WorkersForPlatformsResourceWithStreamingResponse, + AsyncWorkersForPlatformsResourceWithStreamingResponse, ) __all__ = [ - "Dispatch", - "AsyncDispatch", - "DispatchWithRawResponse", - "AsyncDispatchWithRawResponse", - "DispatchWithStreamingResponse", - "AsyncDispatchWithStreamingResponse", - "WorkersForPlatforms", - "AsyncWorkersForPlatforms", - "WorkersForPlatformsWithRawResponse", - "AsyncWorkersForPlatformsWithRawResponse", - "WorkersForPlatformsWithStreamingResponse", - "AsyncWorkersForPlatformsWithStreamingResponse", + "DispatchResource", + "AsyncDispatchResource", + "DispatchResourceWithRawResponse", + "AsyncDispatchResourceWithRawResponse", + "DispatchResourceWithStreamingResponse", + "AsyncDispatchResourceWithStreamingResponse", + "WorkersForPlatformsResource", + "AsyncWorkersForPlatformsResource", + "WorkersForPlatformsResourceWithRawResponse", + "AsyncWorkersForPlatformsResourceWithRawResponse", + "WorkersForPlatformsResourceWithStreamingResponse", + "AsyncWorkersForPlatformsResourceWithStreamingResponse", ] diff --git a/src/cloudflare/resources/workers_for_platforms/dispatch/__init__.py b/src/cloudflare/resources/workers_for_platforms/dispatch/__init__.py index d77d0f97119..f74ee5c8900 100644 --- a/src/cloudflare/resources/workers_for_platforms/dispatch/__init__.py +++ b/src/cloudflare/resources/workers_for_platforms/dispatch/__init__.py @@ -1,33 +1,33 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from .dispatch import ( - Dispatch, - AsyncDispatch, - DispatchWithRawResponse, - AsyncDispatchWithRawResponse, - DispatchWithStreamingResponse, - AsyncDispatchWithStreamingResponse, + DispatchResource, + AsyncDispatchResource, + DispatchResourceWithRawResponse, + AsyncDispatchResourceWithRawResponse, + DispatchResourceWithStreamingResponse, + AsyncDispatchResourceWithStreamingResponse, ) from .namespaces import ( - Namespaces, - AsyncNamespaces, - NamespacesWithRawResponse, - AsyncNamespacesWithRawResponse, - NamespacesWithStreamingResponse, - AsyncNamespacesWithStreamingResponse, + NamespacesResource, + AsyncNamespacesResource, + NamespacesResourceWithRawResponse, + AsyncNamespacesResourceWithRawResponse, + NamespacesResourceWithStreamingResponse, + AsyncNamespacesResourceWithStreamingResponse, ) __all__ = [ - "Namespaces", - "AsyncNamespaces", - "NamespacesWithRawResponse", - "AsyncNamespacesWithRawResponse", - "NamespacesWithStreamingResponse", - "AsyncNamespacesWithStreamingResponse", - "Dispatch", - "AsyncDispatch", - "DispatchWithRawResponse", - "AsyncDispatchWithRawResponse", - "DispatchWithStreamingResponse", - "AsyncDispatchWithStreamingResponse", + "NamespacesResource", + "AsyncNamespacesResource", + "NamespacesResourceWithRawResponse", + "AsyncNamespacesResourceWithRawResponse", + "NamespacesResourceWithStreamingResponse", + "AsyncNamespacesResourceWithStreamingResponse", + "DispatchResource", + "AsyncDispatchResource", + "DispatchResourceWithRawResponse", + "AsyncDispatchResourceWithRawResponse", + "DispatchResourceWithStreamingResponse", + "AsyncDispatchResourceWithStreamingResponse", ] diff --git a/src/cloudflare/resources/workers_for_platforms/dispatch/dispatch.py b/src/cloudflare/resources/workers_for_platforms/dispatch/dispatch.py index 4f8864618aa..dd56b95c0d8 100644 --- a/src/cloudflare/resources/workers_for_platforms/dispatch/dispatch.py +++ b/src/cloudflare/resources/workers_for_platforms/dispatch/dispatch.py @@ -4,78 +4,78 @@ from ...._compat import cached_property from .namespaces import ( - Namespaces, - AsyncNamespaces, - NamespacesWithRawResponse, - AsyncNamespacesWithRawResponse, - NamespacesWithStreamingResponse, - AsyncNamespacesWithStreamingResponse, + NamespacesResource, + AsyncNamespacesResource, + NamespacesResourceWithRawResponse, + AsyncNamespacesResourceWithRawResponse, + NamespacesResourceWithStreamingResponse, + AsyncNamespacesResourceWithStreamingResponse, ) from ...._resource import SyncAPIResource, AsyncAPIResource -from .namespaces.namespaces import Namespaces, AsyncNamespaces +from .namespaces.namespaces import NamespacesResource, AsyncNamespacesResource -__all__ = ["Dispatch", "AsyncDispatch"] +__all__ = ["DispatchResource", "AsyncDispatchResource"] -class Dispatch(SyncAPIResource): +class DispatchResource(SyncAPIResource): @cached_property - def namespaces(self) -> Namespaces: - return Namespaces(self._client) + def namespaces(self) -> NamespacesResource: + return NamespacesResource(self._client) @cached_property - def with_raw_response(self) -> DispatchWithRawResponse: - return DispatchWithRawResponse(self) + def with_raw_response(self) -> DispatchResourceWithRawResponse: + return DispatchResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> DispatchWithStreamingResponse: - return DispatchWithStreamingResponse(self) + def with_streaming_response(self) -> DispatchResourceWithStreamingResponse: + return DispatchResourceWithStreamingResponse(self) -class AsyncDispatch(AsyncAPIResource): +class AsyncDispatchResource(AsyncAPIResource): @cached_property - def namespaces(self) -> AsyncNamespaces: - return AsyncNamespaces(self._client) + def namespaces(self) -> AsyncNamespacesResource: + return AsyncNamespacesResource(self._client) @cached_property - def with_raw_response(self) -> AsyncDispatchWithRawResponse: - return AsyncDispatchWithRawResponse(self) + def with_raw_response(self) -> AsyncDispatchResourceWithRawResponse: + return AsyncDispatchResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncDispatchWithStreamingResponse: - return AsyncDispatchWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncDispatchResourceWithStreamingResponse: + return AsyncDispatchResourceWithStreamingResponse(self) -class DispatchWithRawResponse: - def __init__(self, dispatch: Dispatch) -> None: +class DispatchResourceWithRawResponse: + def __init__(self, dispatch: DispatchResource) -> None: self._dispatch = dispatch @cached_property - def namespaces(self) -> NamespacesWithRawResponse: - return NamespacesWithRawResponse(self._dispatch.namespaces) + def namespaces(self) -> NamespacesResourceWithRawResponse: + return NamespacesResourceWithRawResponse(self._dispatch.namespaces) -class AsyncDispatchWithRawResponse: - def __init__(self, dispatch: AsyncDispatch) -> None: +class AsyncDispatchResourceWithRawResponse: + def __init__(self, dispatch: AsyncDispatchResource) -> None: self._dispatch = dispatch @cached_property - def namespaces(self) -> AsyncNamespacesWithRawResponse: - return AsyncNamespacesWithRawResponse(self._dispatch.namespaces) + def namespaces(self) -> AsyncNamespacesResourceWithRawResponse: + return AsyncNamespacesResourceWithRawResponse(self._dispatch.namespaces) -class DispatchWithStreamingResponse: - def __init__(self, dispatch: Dispatch) -> None: +class DispatchResourceWithStreamingResponse: + def __init__(self, dispatch: DispatchResource) -> None: self._dispatch = dispatch @cached_property - def namespaces(self) -> NamespacesWithStreamingResponse: - return NamespacesWithStreamingResponse(self._dispatch.namespaces) + def namespaces(self) -> NamespacesResourceWithStreamingResponse: + return NamespacesResourceWithStreamingResponse(self._dispatch.namespaces) -class AsyncDispatchWithStreamingResponse: - def __init__(self, dispatch: AsyncDispatch) -> None: +class AsyncDispatchResourceWithStreamingResponse: + def __init__(self, dispatch: AsyncDispatchResource) -> None: self._dispatch = dispatch @cached_property - def namespaces(self) -> AsyncNamespacesWithStreamingResponse: - return AsyncNamespacesWithStreamingResponse(self._dispatch.namespaces) + def namespaces(self) -> AsyncNamespacesResourceWithStreamingResponse: + return AsyncNamespacesResourceWithStreamingResponse(self._dispatch.namespaces) diff --git a/src/cloudflare/resources/workers_for_platforms/dispatch/namespaces/__init__.py b/src/cloudflare/resources/workers_for_platforms/dispatch/namespaces/__init__.py index 055570b9064..7a4687c92c5 100644 --- a/src/cloudflare/resources/workers_for_platforms/dispatch/namespaces/__init__.py +++ b/src/cloudflare/resources/workers_for_platforms/dispatch/namespaces/__init__.py @@ -1,33 +1,33 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from .scripts import ( - Scripts, - AsyncScripts, - ScriptsWithRawResponse, - AsyncScriptsWithRawResponse, - ScriptsWithStreamingResponse, - AsyncScriptsWithStreamingResponse, + ScriptsResource, + AsyncScriptsResource, + ScriptsResourceWithRawResponse, + AsyncScriptsResourceWithRawResponse, + ScriptsResourceWithStreamingResponse, + AsyncScriptsResourceWithStreamingResponse, ) from .namespaces import ( - Namespaces, - AsyncNamespaces, - NamespacesWithRawResponse, - AsyncNamespacesWithRawResponse, - NamespacesWithStreamingResponse, - AsyncNamespacesWithStreamingResponse, + NamespacesResource, + AsyncNamespacesResource, + NamespacesResourceWithRawResponse, + AsyncNamespacesResourceWithRawResponse, + NamespacesResourceWithStreamingResponse, + AsyncNamespacesResourceWithStreamingResponse, ) __all__ = [ - "Scripts", - "AsyncScripts", - "ScriptsWithRawResponse", - "AsyncScriptsWithRawResponse", - "ScriptsWithStreamingResponse", - "AsyncScriptsWithStreamingResponse", - "Namespaces", - "AsyncNamespaces", - "NamespacesWithRawResponse", - "AsyncNamespacesWithRawResponse", - "NamespacesWithStreamingResponse", - "AsyncNamespacesWithStreamingResponse", + "ScriptsResource", + "AsyncScriptsResource", + "ScriptsResourceWithRawResponse", + "AsyncScriptsResourceWithRawResponse", + "ScriptsResourceWithStreamingResponse", + "AsyncScriptsResourceWithStreamingResponse", + "NamespacesResource", + "AsyncNamespacesResource", + "NamespacesResourceWithRawResponse", + "AsyncNamespacesResourceWithRawResponse", + "NamespacesResourceWithStreamingResponse", + "AsyncNamespacesResourceWithStreamingResponse", ] diff --git a/src/cloudflare/resources/workers_for_platforms/dispatch/namespaces/namespaces.py b/src/cloudflare/resources/workers_for_platforms/dispatch/namespaces/namespaces.py index c9f41477f4a..b986e638da3 100644 --- a/src/cloudflare/resources/workers_for_platforms/dispatch/namespaces/namespaces.py +++ b/src/cloudflare/resources/workers_for_platforms/dispatch/namespaces/namespaces.py @@ -7,12 +7,12 @@ import httpx from .scripts import ( - Scripts, - AsyncScripts, - ScriptsWithRawResponse, - AsyncScriptsWithRawResponse, - ScriptsWithStreamingResponse, - AsyncScriptsWithStreamingResponse, + ScriptsResource, + AsyncScriptsResource, + ScriptsResourceWithRawResponse, + AsyncScriptsResourceWithRawResponse, + ScriptsResourceWithStreamingResponse, + AsyncScriptsResourceWithStreamingResponse, ) from ....._types import NOT_GIVEN, Body, Query, Headers, NotGiven from ....._utils import ( @@ -29,7 +29,7 @@ ) from ....._wrappers import ResultWrapper from .....pagination import SyncSinglePage, AsyncSinglePage -from .scripts.scripts import Scripts, AsyncScripts +from .scripts.scripts import ScriptsResource, AsyncScriptsResource from ....._base_client import ( AsyncPaginator, make_request_options, @@ -39,21 +39,21 @@ from .....types.workers_for_platforms.dispatch.namespace_list_response import NamespaceListResponse from .....types.workers_for_platforms.dispatch.namespace_create_response import NamespaceCreateResponse -__all__ = ["Namespaces", "AsyncNamespaces"] +__all__ = ["NamespacesResource", "AsyncNamespacesResource"] -class Namespaces(SyncAPIResource): +class NamespacesResource(SyncAPIResource): @cached_property - def scripts(self) -> Scripts: - return Scripts(self._client) + def scripts(self) -> ScriptsResource: + return ScriptsResource(self._client) @cached_property - def with_raw_response(self) -> NamespacesWithRawResponse: - return NamespacesWithRawResponse(self) + def with_raw_response(self) -> NamespacesResourceWithRawResponse: + return NamespacesResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> NamespacesWithStreamingResponse: - return NamespacesWithStreamingResponse(self) + def with_streaming_response(self) -> NamespacesResourceWithStreamingResponse: + return NamespacesResourceWithStreamingResponse(self) def create( self, @@ -223,18 +223,18 @@ def get( ) -class AsyncNamespaces(AsyncAPIResource): +class AsyncNamespacesResource(AsyncAPIResource): @cached_property - def scripts(self) -> AsyncScripts: - return AsyncScripts(self._client) + def scripts(self) -> AsyncScriptsResource: + return AsyncScriptsResource(self._client) @cached_property - def with_raw_response(self) -> AsyncNamespacesWithRawResponse: - return AsyncNamespacesWithRawResponse(self) + def with_raw_response(self) -> AsyncNamespacesResourceWithRawResponse: + return AsyncNamespacesResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncNamespacesWithStreamingResponse: - return AsyncNamespacesWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncNamespacesResourceWithStreamingResponse: + return AsyncNamespacesResourceWithStreamingResponse(self) async def create( self, @@ -404,8 +404,8 @@ async def get( ) -class NamespacesWithRawResponse: - def __init__(self, namespaces: Namespaces) -> None: +class NamespacesResourceWithRawResponse: + def __init__(self, namespaces: NamespacesResource) -> None: self._namespaces = namespaces self.create = to_raw_response_wrapper( @@ -422,12 +422,12 @@ def __init__(self, namespaces: Namespaces) -> None: ) @cached_property - def scripts(self) -> ScriptsWithRawResponse: - return ScriptsWithRawResponse(self._namespaces.scripts) + def scripts(self) -> ScriptsResourceWithRawResponse: + return ScriptsResourceWithRawResponse(self._namespaces.scripts) -class AsyncNamespacesWithRawResponse: - def __init__(self, namespaces: AsyncNamespaces) -> None: +class AsyncNamespacesResourceWithRawResponse: + def __init__(self, namespaces: AsyncNamespacesResource) -> None: self._namespaces = namespaces self.create = async_to_raw_response_wrapper( @@ -444,12 +444,12 @@ def __init__(self, namespaces: AsyncNamespaces) -> None: ) @cached_property - def scripts(self) -> AsyncScriptsWithRawResponse: - return AsyncScriptsWithRawResponse(self._namespaces.scripts) + def scripts(self) -> AsyncScriptsResourceWithRawResponse: + return AsyncScriptsResourceWithRawResponse(self._namespaces.scripts) -class NamespacesWithStreamingResponse: - def __init__(self, namespaces: Namespaces) -> None: +class NamespacesResourceWithStreamingResponse: + def __init__(self, namespaces: NamespacesResource) -> None: self._namespaces = namespaces self.create = to_streamed_response_wrapper( @@ -466,12 +466,12 @@ def __init__(self, namespaces: Namespaces) -> None: ) @cached_property - def scripts(self) -> ScriptsWithStreamingResponse: - return ScriptsWithStreamingResponse(self._namespaces.scripts) + def scripts(self) -> ScriptsResourceWithStreamingResponse: + return ScriptsResourceWithStreamingResponse(self._namespaces.scripts) -class AsyncNamespacesWithStreamingResponse: - def __init__(self, namespaces: AsyncNamespaces) -> None: +class AsyncNamespacesResourceWithStreamingResponse: + def __init__(self, namespaces: AsyncNamespacesResource) -> None: self._namespaces = namespaces self.create = async_to_streamed_response_wrapper( @@ -488,5 +488,5 @@ def __init__(self, namespaces: AsyncNamespaces) -> None: ) @cached_property - def scripts(self) -> AsyncScriptsWithStreamingResponse: - return AsyncScriptsWithStreamingResponse(self._namespaces.scripts) + def scripts(self) -> AsyncScriptsResourceWithStreamingResponse: + return AsyncScriptsResourceWithStreamingResponse(self._namespaces.scripts) diff --git a/src/cloudflare/resources/workers_for_platforms/dispatch/namespaces/scripts/__init__.py b/src/cloudflare/resources/workers_for_platforms/dispatch/namespaces/scripts/__init__.py index 07bbce064b2..fd5a962f515 100644 --- a/src/cloudflare/resources/workers_for_platforms/dispatch/namespaces/scripts/__init__.py +++ b/src/cloudflare/resources/workers_for_platforms/dispatch/namespaces/scripts/__init__.py @@ -1,89 +1,89 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from .tags import ( - Tags, - AsyncTags, - TagsWithRawResponse, - AsyncTagsWithRawResponse, - TagsWithStreamingResponse, - AsyncTagsWithStreamingResponse, + TagsResource, + AsyncTagsResource, + TagsResourceWithRawResponse, + AsyncTagsResourceWithRawResponse, + TagsResourceWithStreamingResponse, + AsyncTagsResourceWithStreamingResponse, ) from .content import ( - Content, - AsyncContent, - ContentWithRawResponse, - AsyncContentWithRawResponse, - ContentWithStreamingResponse, - AsyncContentWithStreamingResponse, + ContentResource, + AsyncContentResource, + ContentResourceWithRawResponse, + AsyncContentResourceWithRawResponse, + ContentResourceWithStreamingResponse, + AsyncContentResourceWithStreamingResponse, ) from .scripts import ( - Scripts, - AsyncScripts, - ScriptsWithRawResponse, - AsyncScriptsWithRawResponse, - ScriptsWithStreamingResponse, - AsyncScriptsWithStreamingResponse, + ScriptsResource, + AsyncScriptsResource, + ScriptsResourceWithRawResponse, + AsyncScriptsResourceWithRawResponse, + ScriptsResourceWithStreamingResponse, + AsyncScriptsResourceWithStreamingResponse, ) from .secrets import ( - Secrets, - AsyncSecrets, - SecretsWithRawResponse, - AsyncSecretsWithRawResponse, - SecretsWithStreamingResponse, - AsyncSecretsWithStreamingResponse, + SecretsResource, + AsyncSecretsResource, + SecretsResourceWithRawResponse, + AsyncSecretsResourceWithRawResponse, + SecretsResourceWithStreamingResponse, + AsyncSecretsResourceWithStreamingResponse, ) from .bindings import ( - Bindings, - AsyncBindings, - BindingsWithRawResponse, - AsyncBindingsWithRawResponse, - BindingsWithStreamingResponse, - AsyncBindingsWithStreamingResponse, + BindingsResource, + AsyncBindingsResource, + BindingsResourceWithRawResponse, + AsyncBindingsResourceWithRawResponse, + BindingsResourceWithStreamingResponse, + AsyncBindingsResourceWithStreamingResponse, ) from .settings import ( - Settings, - AsyncSettings, - SettingsWithRawResponse, - AsyncSettingsWithRawResponse, - SettingsWithStreamingResponse, - AsyncSettingsWithStreamingResponse, + SettingsResource, + AsyncSettingsResource, + SettingsResourceWithRawResponse, + AsyncSettingsResourceWithRawResponse, + SettingsResourceWithStreamingResponse, + AsyncSettingsResourceWithStreamingResponse, ) __all__ = [ - "Content", - "AsyncContent", - "ContentWithRawResponse", - "AsyncContentWithRawResponse", - "ContentWithStreamingResponse", - "AsyncContentWithStreamingResponse", - "Settings", - "AsyncSettings", - "SettingsWithRawResponse", - "AsyncSettingsWithRawResponse", - "SettingsWithStreamingResponse", - "AsyncSettingsWithStreamingResponse", - "Bindings", - "AsyncBindings", - "BindingsWithRawResponse", - "AsyncBindingsWithRawResponse", - "BindingsWithStreamingResponse", - "AsyncBindingsWithStreamingResponse", - "Secrets", - "AsyncSecrets", - "SecretsWithRawResponse", - "AsyncSecretsWithRawResponse", - "SecretsWithStreamingResponse", - "AsyncSecretsWithStreamingResponse", - "Tags", - "AsyncTags", - "TagsWithRawResponse", - "AsyncTagsWithRawResponse", - "TagsWithStreamingResponse", - "AsyncTagsWithStreamingResponse", - "Scripts", - "AsyncScripts", - "ScriptsWithRawResponse", - "AsyncScriptsWithRawResponse", - "ScriptsWithStreamingResponse", - "AsyncScriptsWithStreamingResponse", + "ContentResource", + "AsyncContentResource", + "ContentResourceWithRawResponse", + "AsyncContentResourceWithRawResponse", + "ContentResourceWithStreamingResponse", + "AsyncContentResourceWithStreamingResponse", + "SettingsResource", + "AsyncSettingsResource", + "SettingsResourceWithRawResponse", + "AsyncSettingsResourceWithRawResponse", + "SettingsResourceWithStreamingResponse", + "AsyncSettingsResourceWithStreamingResponse", + "BindingsResource", + "AsyncBindingsResource", + "BindingsResourceWithRawResponse", + "AsyncBindingsResourceWithRawResponse", + "BindingsResourceWithStreamingResponse", + "AsyncBindingsResourceWithStreamingResponse", + "SecretsResource", + "AsyncSecretsResource", + "SecretsResourceWithRawResponse", + "AsyncSecretsResourceWithRawResponse", + "SecretsResourceWithStreamingResponse", + "AsyncSecretsResourceWithStreamingResponse", + "TagsResource", + "AsyncTagsResource", + "TagsResourceWithRawResponse", + "AsyncTagsResourceWithRawResponse", + "TagsResourceWithStreamingResponse", + "AsyncTagsResourceWithStreamingResponse", + "ScriptsResource", + "AsyncScriptsResource", + "ScriptsResourceWithRawResponse", + "AsyncScriptsResourceWithRawResponse", + "ScriptsResourceWithStreamingResponse", + "AsyncScriptsResourceWithStreamingResponse", ] diff --git a/src/cloudflare/resources/workers_for_platforms/dispatch/namespaces/scripts/bindings.py b/src/cloudflare/resources/workers_for_platforms/dispatch/namespaces/scripts/bindings.py index 4290c324d98..d2cc4084bc3 100644 --- a/src/cloudflare/resources/workers_for_platforms/dispatch/namespaces/scripts/bindings.py +++ b/src/cloudflare/resources/workers_for_platforms/dispatch/namespaces/scripts/bindings.py @@ -21,17 +21,17 @@ ) from ......types.workers_for_platforms.dispatch.namespaces.scripts.binding_get_response import BindingGetResponse -__all__ = ["Bindings", "AsyncBindings"] +__all__ = ["BindingsResource", "AsyncBindingsResource"] -class Bindings(SyncAPIResource): +class BindingsResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> BindingsWithRawResponse: - return BindingsWithRawResponse(self) + def with_raw_response(self) -> BindingsResourceWithRawResponse: + return BindingsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> BindingsWithStreamingResponse: - return BindingsWithStreamingResponse(self) + def with_streaming_response(self) -> BindingsResourceWithStreamingResponse: + return BindingsResourceWithStreamingResponse(self) def get( self, @@ -84,14 +84,14 @@ def get( ) -class AsyncBindings(AsyncAPIResource): +class AsyncBindingsResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncBindingsWithRawResponse: - return AsyncBindingsWithRawResponse(self) + def with_raw_response(self) -> AsyncBindingsResourceWithRawResponse: + return AsyncBindingsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncBindingsWithStreamingResponse: - return AsyncBindingsWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncBindingsResourceWithStreamingResponse: + return AsyncBindingsResourceWithStreamingResponse(self) async def get( self, @@ -144,8 +144,8 @@ async def get( ) -class BindingsWithRawResponse: - def __init__(self, bindings: Bindings) -> None: +class BindingsResourceWithRawResponse: + def __init__(self, bindings: BindingsResource) -> None: self._bindings = bindings self.get = to_raw_response_wrapper( @@ -153,8 +153,8 @@ def __init__(self, bindings: Bindings) -> None: ) -class AsyncBindingsWithRawResponse: - def __init__(self, bindings: AsyncBindings) -> None: +class AsyncBindingsResourceWithRawResponse: + def __init__(self, bindings: AsyncBindingsResource) -> None: self._bindings = bindings self.get = async_to_raw_response_wrapper( @@ -162,8 +162,8 @@ def __init__(self, bindings: AsyncBindings) -> None: ) -class BindingsWithStreamingResponse: - def __init__(self, bindings: Bindings) -> None: +class BindingsResourceWithStreamingResponse: + def __init__(self, bindings: BindingsResource) -> None: self._bindings = bindings self.get = to_streamed_response_wrapper( @@ -171,8 +171,8 @@ def __init__(self, bindings: Bindings) -> None: ) -class AsyncBindingsWithStreamingResponse: - def __init__(self, bindings: AsyncBindings) -> None: +class AsyncBindingsResourceWithStreamingResponse: + def __init__(self, bindings: AsyncBindingsResource) -> None: self._bindings = bindings self.get = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/workers_for_platforms/dispatch/namespaces/scripts/content.py b/src/cloudflare/resources/workers_for_platforms/dispatch/namespaces/scripts/content.py index 912a6ceadaf..66185449605 100644 --- a/src/cloudflare/resources/workers_for_platforms/dispatch/namespaces/scripts/content.py +++ b/src/cloudflare/resources/workers_for_platforms/dispatch/namespaces/scripts/content.py @@ -37,17 +37,17 @@ from ......types.workers.worker_metadata_param import WorkerMetadataParam from ......types.workers_for_platforms.dispatch.namespaces.scripts import content_update_params -__all__ = ["Content", "AsyncContent"] +__all__ = ["ContentResource", "AsyncContentResource"] -class Content(SyncAPIResource): +class ContentResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> ContentWithRawResponse: - return ContentWithRawResponse(self) + def with_raw_response(self) -> ContentResourceWithRawResponse: + return ContentResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> ContentWithStreamingResponse: - return ContentWithStreamingResponse(self) + def with_streaming_response(self) -> ContentResourceWithStreamingResponse: + return ContentResourceWithStreamingResponse(self) def update( self, @@ -171,14 +171,14 @@ def get( ) -class AsyncContent(AsyncAPIResource): +class AsyncContentResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncContentWithRawResponse: - return AsyncContentWithRawResponse(self) + def with_raw_response(self) -> AsyncContentResourceWithRawResponse: + return AsyncContentResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncContentWithStreamingResponse: - return AsyncContentWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncContentResourceWithStreamingResponse: + return AsyncContentResourceWithStreamingResponse(self) async def update( self, @@ -302,8 +302,8 @@ async def get( ) -class ContentWithRawResponse: - def __init__(self, content: Content) -> None: +class ContentResourceWithRawResponse: + def __init__(self, content: ContentResource) -> None: self._content = content self.update = to_raw_response_wrapper( @@ -315,8 +315,8 @@ def __init__(self, content: Content) -> None: ) -class AsyncContentWithRawResponse: - def __init__(self, content: AsyncContent) -> None: +class AsyncContentResourceWithRawResponse: + def __init__(self, content: AsyncContentResource) -> None: self._content = content self.update = async_to_raw_response_wrapper( @@ -328,8 +328,8 @@ def __init__(self, content: AsyncContent) -> None: ) -class ContentWithStreamingResponse: - def __init__(self, content: Content) -> None: +class ContentResourceWithStreamingResponse: + def __init__(self, content: ContentResource) -> None: self._content = content self.update = to_streamed_response_wrapper( @@ -341,8 +341,8 @@ def __init__(self, content: Content) -> None: ) -class AsyncContentWithStreamingResponse: - def __init__(self, content: AsyncContent) -> None: +class AsyncContentResourceWithStreamingResponse: + def __init__(self, content: AsyncContentResource) -> None: self._content = content self.update = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/workers_for_platforms/dispatch/namespaces/scripts/scripts.py b/src/cloudflare/resources/workers_for_platforms/dispatch/namespaces/scripts/scripts.py index 27a3e24dde8..2860f178ff6 100644 --- a/src/cloudflare/resources/workers_for_platforms/dispatch/namespaces/scripts/scripts.py +++ b/src/cloudflare/resources/workers_for_platforms/dispatch/namespaces/scripts/scripts.py @@ -7,44 +7,44 @@ import httpx from .tags import ( - Tags, - AsyncTags, - TagsWithRawResponse, - AsyncTagsWithRawResponse, - TagsWithStreamingResponse, - AsyncTagsWithStreamingResponse, + TagsResource, + AsyncTagsResource, + TagsResourceWithRawResponse, + AsyncTagsResourceWithRawResponse, + TagsResourceWithStreamingResponse, + AsyncTagsResourceWithStreamingResponse, ) from .content import ( - Content, - AsyncContent, - ContentWithRawResponse, - AsyncContentWithRawResponse, - ContentWithStreamingResponse, - AsyncContentWithStreamingResponse, + ContentResource, + AsyncContentResource, + ContentResourceWithRawResponse, + AsyncContentResourceWithRawResponse, + ContentResourceWithStreamingResponse, + AsyncContentResourceWithStreamingResponse, ) from .secrets import ( - Secrets, - AsyncSecrets, - SecretsWithRawResponse, - AsyncSecretsWithRawResponse, - SecretsWithStreamingResponse, - AsyncSecretsWithStreamingResponse, + SecretsResource, + AsyncSecretsResource, + SecretsResourceWithRawResponse, + AsyncSecretsResourceWithRawResponse, + SecretsResourceWithStreamingResponse, + AsyncSecretsResourceWithStreamingResponse, ) from .bindings import ( - Bindings, - AsyncBindings, - BindingsWithRawResponse, - AsyncBindingsWithRawResponse, - BindingsWithStreamingResponse, - AsyncBindingsWithStreamingResponse, + BindingsResource, + AsyncBindingsResource, + BindingsResourceWithRawResponse, + AsyncBindingsResourceWithRawResponse, + BindingsResourceWithStreamingResponse, + AsyncBindingsResourceWithStreamingResponse, ) from .settings import ( - Settings, - AsyncSettings, - SettingsWithRawResponse, - AsyncSettingsWithRawResponse, - SettingsWithStreamingResponse, - AsyncSettingsWithStreamingResponse, + SettingsResource, + AsyncSettingsResource, + SettingsResourceWithRawResponse, + AsyncSettingsResourceWithRawResponse, + SettingsResourceWithStreamingResponse, + AsyncSettingsResourceWithStreamingResponse, ) from ......_types import NOT_GIVEN, Body, Query, Headers, NoneType, NotGiven, FileTypes from ......_utils import ( @@ -68,37 +68,37 @@ from ......types.workers_for_platforms.dispatch.namespaces import script_delete_params, script_update_params from ......types.workers_for_platforms.dispatch.namespaces.script import Script as NamespacesScript -__all__ = ["Scripts", "AsyncScripts"] +__all__ = ["ScriptsResource", "AsyncScriptsResource"] -class Scripts(SyncAPIResource): +class ScriptsResource(SyncAPIResource): @cached_property - def content(self) -> Content: - return Content(self._client) + def content(self) -> ContentResource: + return ContentResource(self._client) @cached_property - def settings(self) -> Settings: - return Settings(self._client) + def settings(self) -> SettingsResource: + return SettingsResource(self._client) @cached_property - def bindings(self) -> Bindings: - return Bindings(self._client) + def bindings(self) -> BindingsResource: + return BindingsResource(self._client) @cached_property - def secrets(self) -> Secrets: - return Secrets(self._client) + def secrets(self) -> SecretsResource: + return SecretsResource(self._client) @cached_property - def tags(self) -> Tags: - return Tags(self._client) + def tags(self) -> TagsResource: + return TagsResource(self._client) @cached_property - def with_raw_response(self) -> ScriptsWithRawResponse: - return ScriptsWithRawResponse(self) + def with_raw_response(self) -> ScriptsResourceWithRawResponse: + return ScriptsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> ScriptsWithStreamingResponse: - return ScriptsWithStreamingResponse(self) + def with_streaming_response(self) -> ScriptsResourceWithStreamingResponse: + return ScriptsResourceWithStreamingResponse(self) @overload def update( @@ -340,34 +340,34 @@ def get( ) -class AsyncScripts(AsyncAPIResource): +class AsyncScriptsResource(AsyncAPIResource): @cached_property - def content(self) -> AsyncContent: - return AsyncContent(self._client) + def content(self) -> AsyncContentResource: + return AsyncContentResource(self._client) @cached_property - def settings(self) -> AsyncSettings: - return AsyncSettings(self._client) + def settings(self) -> AsyncSettingsResource: + return AsyncSettingsResource(self._client) @cached_property - def bindings(self) -> AsyncBindings: - return AsyncBindings(self._client) + def bindings(self) -> AsyncBindingsResource: + return AsyncBindingsResource(self._client) @cached_property - def secrets(self) -> AsyncSecrets: - return AsyncSecrets(self._client) + def secrets(self) -> AsyncSecretsResource: + return AsyncSecretsResource(self._client) @cached_property - def tags(self) -> AsyncTags: - return AsyncTags(self._client) + def tags(self) -> AsyncTagsResource: + return AsyncTagsResource(self._client) @cached_property - def with_raw_response(self) -> AsyncScriptsWithRawResponse: - return AsyncScriptsWithRawResponse(self) + def with_raw_response(self) -> AsyncScriptsResourceWithRawResponse: + return AsyncScriptsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncScriptsWithStreamingResponse: - return AsyncScriptsWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncScriptsResourceWithStreamingResponse: + return AsyncScriptsResourceWithStreamingResponse(self) @overload async def update( @@ -609,8 +609,8 @@ async def get( ) -class ScriptsWithRawResponse: - def __init__(self, scripts: Scripts) -> None: +class ScriptsResourceWithRawResponse: + def __init__(self, scripts: ScriptsResource) -> None: self._scripts = scripts self.update = to_raw_response_wrapper( @@ -624,28 +624,28 @@ def __init__(self, scripts: Scripts) -> None: ) @cached_property - def content(self) -> ContentWithRawResponse: - return ContentWithRawResponse(self._scripts.content) + def content(self) -> ContentResourceWithRawResponse: + return ContentResourceWithRawResponse(self._scripts.content) @cached_property - def settings(self) -> SettingsWithRawResponse: - return SettingsWithRawResponse(self._scripts.settings) + def settings(self) -> SettingsResourceWithRawResponse: + return SettingsResourceWithRawResponse(self._scripts.settings) @cached_property - def bindings(self) -> BindingsWithRawResponse: - return BindingsWithRawResponse(self._scripts.bindings) + def bindings(self) -> BindingsResourceWithRawResponse: + return BindingsResourceWithRawResponse(self._scripts.bindings) @cached_property - def secrets(self) -> SecretsWithRawResponse: - return SecretsWithRawResponse(self._scripts.secrets) + def secrets(self) -> SecretsResourceWithRawResponse: + return SecretsResourceWithRawResponse(self._scripts.secrets) @cached_property - def tags(self) -> TagsWithRawResponse: - return TagsWithRawResponse(self._scripts.tags) + def tags(self) -> TagsResourceWithRawResponse: + return TagsResourceWithRawResponse(self._scripts.tags) -class AsyncScriptsWithRawResponse: - def __init__(self, scripts: AsyncScripts) -> None: +class AsyncScriptsResourceWithRawResponse: + def __init__(self, scripts: AsyncScriptsResource) -> None: self._scripts = scripts self.update = async_to_raw_response_wrapper( @@ -659,28 +659,28 @@ def __init__(self, scripts: AsyncScripts) -> None: ) @cached_property - def content(self) -> AsyncContentWithRawResponse: - return AsyncContentWithRawResponse(self._scripts.content) + def content(self) -> AsyncContentResourceWithRawResponse: + return AsyncContentResourceWithRawResponse(self._scripts.content) @cached_property - def settings(self) -> AsyncSettingsWithRawResponse: - return AsyncSettingsWithRawResponse(self._scripts.settings) + def settings(self) -> AsyncSettingsResourceWithRawResponse: + return AsyncSettingsResourceWithRawResponse(self._scripts.settings) @cached_property - def bindings(self) -> AsyncBindingsWithRawResponse: - return AsyncBindingsWithRawResponse(self._scripts.bindings) + def bindings(self) -> AsyncBindingsResourceWithRawResponse: + return AsyncBindingsResourceWithRawResponse(self._scripts.bindings) @cached_property - def secrets(self) -> AsyncSecretsWithRawResponse: - return AsyncSecretsWithRawResponse(self._scripts.secrets) + def secrets(self) -> AsyncSecretsResourceWithRawResponse: + return AsyncSecretsResourceWithRawResponse(self._scripts.secrets) @cached_property - def tags(self) -> AsyncTagsWithRawResponse: - return AsyncTagsWithRawResponse(self._scripts.tags) + def tags(self) -> AsyncTagsResourceWithRawResponse: + return AsyncTagsResourceWithRawResponse(self._scripts.tags) -class ScriptsWithStreamingResponse: - def __init__(self, scripts: Scripts) -> None: +class ScriptsResourceWithStreamingResponse: + def __init__(self, scripts: ScriptsResource) -> None: self._scripts = scripts self.update = to_streamed_response_wrapper( @@ -694,28 +694,28 @@ def __init__(self, scripts: Scripts) -> None: ) @cached_property - def content(self) -> ContentWithStreamingResponse: - return ContentWithStreamingResponse(self._scripts.content) + def content(self) -> ContentResourceWithStreamingResponse: + return ContentResourceWithStreamingResponse(self._scripts.content) @cached_property - def settings(self) -> SettingsWithStreamingResponse: - return SettingsWithStreamingResponse(self._scripts.settings) + def settings(self) -> SettingsResourceWithStreamingResponse: + return SettingsResourceWithStreamingResponse(self._scripts.settings) @cached_property - def bindings(self) -> BindingsWithStreamingResponse: - return BindingsWithStreamingResponse(self._scripts.bindings) + def bindings(self) -> BindingsResourceWithStreamingResponse: + return BindingsResourceWithStreamingResponse(self._scripts.bindings) @cached_property - def secrets(self) -> SecretsWithStreamingResponse: - return SecretsWithStreamingResponse(self._scripts.secrets) + def secrets(self) -> SecretsResourceWithStreamingResponse: + return SecretsResourceWithStreamingResponse(self._scripts.secrets) @cached_property - def tags(self) -> TagsWithStreamingResponse: - return TagsWithStreamingResponse(self._scripts.tags) + def tags(self) -> TagsResourceWithStreamingResponse: + return TagsResourceWithStreamingResponse(self._scripts.tags) -class AsyncScriptsWithStreamingResponse: - def __init__(self, scripts: AsyncScripts) -> None: +class AsyncScriptsResourceWithStreamingResponse: + def __init__(self, scripts: AsyncScriptsResource) -> None: self._scripts = scripts self.update = async_to_streamed_response_wrapper( @@ -729,21 +729,21 @@ def __init__(self, scripts: AsyncScripts) -> None: ) @cached_property - def content(self) -> AsyncContentWithStreamingResponse: - return AsyncContentWithStreamingResponse(self._scripts.content) + def content(self) -> AsyncContentResourceWithStreamingResponse: + return AsyncContentResourceWithStreamingResponse(self._scripts.content) @cached_property - def settings(self) -> AsyncSettingsWithStreamingResponse: - return AsyncSettingsWithStreamingResponse(self._scripts.settings) + def settings(self) -> AsyncSettingsResourceWithStreamingResponse: + return AsyncSettingsResourceWithStreamingResponse(self._scripts.settings) @cached_property - def bindings(self) -> AsyncBindingsWithStreamingResponse: - return AsyncBindingsWithStreamingResponse(self._scripts.bindings) + def bindings(self) -> AsyncBindingsResourceWithStreamingResponse: + return AsyncBindingsResourceWithStreamingResponse(self._scripts.bindings) @cached_property - def secrets(self) -> AsyncSecretsWithStreamingResponse: - return AsyncSecretsWithStreamingResponse(self._scripts.secrets) + def secrets(self) -> AsyncSecretsResourceWithStreamingResponse: + return AsyncSecretsResourceWithStreamingResponse(self._scripts.secrets) @cached_property - def tags(self) -> AsyncTagsWithStreamingResponse: - return AsyncTagsWithStreamingResponse(self._scripts.tags) + def tags(self) -> AsyncTagsResourceWithStreamingResponse: + return AsyncTagsResourceWithStreamingResponse(self._scripts.tags) diff --git a/src/cloudflare/resources/workers_for_platforms/dispatch/namespaces/scripts/secrets.py b/src/cloudflare/resources/workers_for_platforms/dispatch/namespaces/scripts/secrets.py index 59070a205e3..ba851e673be 100644 --- a/src/cloudflare/resources/workers_for_platforms/dispatch/namespaces/scripts/secrets.py +++ b/src/cloudflare/resources/workers_for_platforms/dispatch/namespaces/scripts/secrets.py @@ -30,17 +30,17 @@ from ......types.workers_for_platforms.dispatch.namespaces.scripts.secret_list_response import SecretListResponse from ......types.workers_for_platforms.dispatch.namespaces.scripts.secret_update_response import SecretUpdateResponse -__all__ = ["Secrets", "AsyncSecrets"] +__all__ = ["SecretsResource", "AsyncSecretsResource"] -class Secrets(SyncAPIResource): +class SecretsResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> SecretsWithRawResponse: - return SecretsWithRawResponse(self) + def with_raw_response(self) -> SecretsResourceWithRawResponse: + return SecretsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> SecretsWithStreamingResponse: - return SecretsWithStreamingResponse(self) + def with_streaming_response(self) -> SecretsResourceWithStreamingResponse: + return SecretsResourceWithStreamingResponse(self) def update( self, @@ -155,14 +155,14 @@ def list( ) -class AsyncSecrets(AsyncAPIResource): +class AsyncSecretsResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncSecretsWithRawResponse: - return AsyncSecretsWithRawResponse(self) + def with_raw_response(self) -> AsyncSecretsResourceWithRawResponse: + return AsyncSecretsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncSecretsWithStreamingResponse: - return AsyncSecretsWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncSecretsResourceWithStreamingResponse: + return AsyncSecretsResourceWithStreamingResponse(self) async def update( self, @@ -277,8 +277,8 @@ def list( ) -class SecretsWithRawResponse: - def __init__(self, secrets: Secrets) -> None: +class SecretsResourceWithRawResponse: + def __init__(self, secrets: SecretsResource) -> None: self._secrets = secrets self.update = to_raw_response_wrapper( @@ -289,8 +289,8 @@ def __init__(self, secrets: Secrets) -> None: ) -class AsyncSecretsWithRawResponse: - def __init__(self, secrets: AsyncSecrets) -> None: +class AsyncSecretsResourceWithRawResponse: + def __init__(self, secrets: AsyncSecretsResource) -> None: self._secrets = secrets self.update = async_to_raw_response_wrapper( @@ -301,8 +301,8 @@ def __init__(self, secrets: AsyncSecrets) -> None: ) -class SecretsWithStreamingResponse: - def __init__(self, secrets: Secrets) -> None: +class SecretsResourceWithStreamingResponse: + def __init__(self, secrets: SecretsResource) -> None: self._secrets = secrets self.update = to_streamed_response_wrapper( @@ -313,8 +313,8 @@ def __init__(self, secrets: Secrets) -> None: ) -class AsyncSecretsWithStreamingResponse: - def __init__(self, secrets: AsyncSecrets) -> None: +class AsyncSecretsResourceWithStreamingResponse: + def __init__(self, secrets: AsyncSecretsResource) -> None: self._secrets = secrets self.update = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/workers_for_platforms/dispatch/namespaces/scripts/settings.py b/src/cloudflare/resources/workers_for_platforms/dispatch/namespaces/scripts/settings.py index 91df7dc15d8..cd5dbad7f9d 100644 --- a/src/cloudflare/resources/workers_for_platforms/dispatch/namespaces/scripts/settings.py +++ b/src/cloudflare/resources/workers_for_platforms/dispatch/namespaces/scripts/settings.py @@ -27,17 +27,17 @@ from ......types.workers_for_platforms.dispatch.namespaces.scripts.setting_get_response import SettingGetResponse from ......types.workers_for_platforms.dispatch.namespaces.scripts.setting_edit_response import SettingEditResponse -__all__ = ["Settings", "AsyncSettings"] +__all__ = ["SettingsResource", "AsyncSettingsResource"] -class Settings(SyncAPIResource): +class SettingsResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> SettingsWithRawResponse: - return SettingsWithRawResponse(self) + def with_raw_response(self) -> SettingsResourceWithRawResponse: + return SettingsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> SettingsWithStreamingResponse: - return SettingsWithStreamingResponse(self) + def with_streaming_response(self) -> SettingsResourceWithStreamingResponse: + return SettingsResourceWithStreamingResponse(self) def edit( self, @@ -140,14 +140,14 @@ def get( ) -class AsyncSettings(AsyncAPIResource): +class AsyncSettingsResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncSettingsWithRawResponse: - return AsyncSettingsWithRawResponse(self) + def with_raw_response(self) -> AsyncSettingsResourceWithRawResponse: + return AsyncSettingsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncSettingsWithStreamingResponse: - return AsyncSettingsWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncSettingsResourceWithStreamingResponse: + return AsyncSettingsResourceWithStreamingResponse(self) async def edit( self, @@ -250,8 +250,8 @@ async def get( ) -class SettingsWithRawResponse: - def __init__(self, settings: Settings) -> None: +class SettingsResourceWithRawResponse: + def __init__(self, settings: SettingsResource) -> None: self._settings = settings self.edit = to_raw_response_wrapper( @@ -262,8 +262,8 @@ def __init__(self, settings: Settings) -> None: ) -class AsyncSettingsWithRawResponse: - def __init__(self, settings: AsyncSettings) -> None: +class AsyncSettingsResourceWithRawResponse: + def __init__(self, settings: AsyncSettingsResource) -> None: self._settings = settings self.edit = async_to_raw_response_wrapper( @@ -274,8 +274,8 @@ def __init__(self, settings: AsyncSettings) -> None: ) -class SettingsWithStreamingResponse: - def __init__(self, settings: Settings) -> None: +class SettingsResourceWithStreamingResponse: + def __init__(self, settings: SettingsResource) -> None: self._settings = settings self.edit = to_streamed_response_wrapper( @@ -286,8 +286,8 @@ def __init__(self, settings: Settings) -> None: ) -class AsyncSettingsWithStreamingResponse: - def __init__(self, settings: AsyncSettings) -> None: +class AsyncSettingsResourceWithStreamingResponse: + def __init__(self, settings: AsyncSettingsResource) -> None: self._settings = settings self.edit = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/workers_for_platforms/dispatch/namespaces/scripts/tags.py b/src/cloudflare/resources/workers_for_platforms/dispatch/namespaces/scripts/tags.py index 52fb8f6123d..3576cecadb9 100644 --- a/src/cloudflare/resources/workers_for_platforms/dispatch/namespaces/scripts/tags.py +++ b/src/cloudflare/resources/workers_for_platforms/dispatch/namespaces/scripts/tags.py @@ -29,17 +29,17 @@ from ......types.workers_for_platforms.dispatch.namespaces.scripts.tag_list_response import TagListResponse from ......types.workers_for_platforms.dispatch.namespaces.scripts.tag_update_response import TagUpdateResponse -__all__ = ["Tags", "AsyncTags"] +__all__ = ["TagsResource", "AsyncTagsResource"] -class Tags(SyncAPIResource): +class TagsResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> TagsWithRawResponse: - return TagsWithRawResponse(self) + def with_raw_response(self) -> TagsResourceWithRawResponse: + return TagsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> TagsWithStreamingResponse: - return TagsWithStreamingResponse(self) + def with_streaming_response(self) -> TagsResourceWithStreamingResponse: + return TagsResourceWithStreamingResponse(self) def update( self, @@ -195,14 +195,14 @@ def delete( ) -class AsyncTags(AsyncAPIResource): +class AsyncTagsResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncTagsWithRawResponse: - return AsyncTagsWithRawResponse(self) + def with_raw_response(self) -> AsyncTagsResourceWithRawResponse: + return AsyncTagsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncTagsWithStreamingResponse: - return AsyncTagsWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncTagsResourceWithStreamingResponse: + return AsyncTagsResourceWithStreamingResponse(self) async def update( self, @@ -358,8 +358,8 @@ async def delete( ) -class TagsWithRawResponse: - def __init__(self, tags: Tags) -> None: +class TagsResourceWithRawResponse: + def __init__(self, tags: TagsResource) -> None: self._tags = tags self.update = to_raw_response_wrapper( @@ -373,8 +373,8 @@ def __init__(self, tags: Tags) -> None: ) -class AsyncTagsWithRawResponse: - def __init__(self, tags: AsyncTags) -> None: +class AsyncTagsResourceWithRawResponse: + def __init__(self, tags: AsyncTagsResource) -> None: self._tags = tags self.update = async_to_raw_response_wrapper( @@ -388,8 +388,8 @@ def __init__(self, tags: AsyncTags) -> None: ) -class TagsWithStreamingResponse: - def __init__(self, tags: Tags) -> None: +class TagsResourceWithStreamingResponse: + def __init__(self, tags: TagsResource) -> None: self._tags = tags self.update = to_streamed_response_wrapper( @@ -403,8 +403,8 @@ def __init__(self, tags: Tags) -> None: ) -class AsyncTagsWithStreamingResponse: - def __init__(self, tags: AsyncTags) -> None: +class AsyncTagsResourceWithStreamingResponse: + def __init__(self, tags: AsyncTagsResource) -> None: self._tags = tags self.update = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/workers_for_platforms/workers_for_platforms.py b/src/cloudflare/resources/workers_for_platforms/workers_for_platforms.py index 19eefb037aa..9506783f096 100644 --- a/src/cloudflare/resources/workers_for_platforms/workers_for_platforms.py +++ b/src/cloudflare/resources/workers_for_platforms/workers_for_platforms.py @@ -3,79 +3,79 @@ from __future__ import annotations from .dispatch import ( - Dispatch, - AsyncDispatch, - DispatchWithRawResponse, - AsyncDispatchWithRawResponse, - DispatchWithStreamingResponse, - AsyncDispatchWithStreamingResponse, + DispatchResource, + AsyncDispatchResource, + DispatchResourceWithRawResponse, + AsyncDispatchResourceWithRawResponse, + DispatchResourceWithStreamingResponse, + AsyncDispatchResourceWithStreamingResponse, ) from ..._compat import cached_property from ..._resource import SyncAPIResource, AsyncAPIResource -from .dispatch.dispatch import Dispatch, AsyncDispatch +from .dispatch.dispatch import DispatchResource, AsyncDispatchResource -__all__ = ["WorkersForPlatforms", "AsyncWorkersForPlatforms"] +__all__ = ["WorkersForPlatformsResource", "AsyncWorkersForPlatformsResource"] -class WorkersForPlatforms(SyncAPIResource): +class WorkersForPlatformsResource(SyncAPIResource): @cached_property - def dispatch(self) -> Dispatch: - return Dispatch(self._client) + def dispatch(self) -> DispatchResource: + return DispatchResource(self._client) @cached_property - def with_raw_response(self) -> WorkersForPlatformsWithRawResponse: - return WorkersForPlatformsWithRawResponse(self) + def with_raw_response(self) -> WorkersForPlatformsResourceWithRawResponse: + return WorkersForPlatformsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> WorkersForPlatformsWithStreamingResponse: - return WorkersForPlatformsWithStreamingResponse(self) + def with_streaming_response(self) -> WorkersForPlatformsResourceWithStreamingResponse: + return WorkersForPlatformsResourceWithStreamingResponse(self) -class AsyncWorkersForPlatforms(AsyncAPIResource): +class AsyncWorkersForPlatformsResource(AsyncAPIResource): @cached_property - def dispatch(self) -> AsyncDispatch: - return AsyncDispatch(self._client) + def dispatch(self) -> AsyncDispatchResource: + return AsyncDispatchResource(self._client) @cached_property - def with_raw_response(self) -> AsyncWorkersForPlatformsWithRawResponse: - return AsyncWorkersForPlatformsWithRawResponse(self) + def with_raw_response(self) -> AsyncWorkersForPlatformsResourceWithRawResponse: + return AsyncWorkersForPlatformsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncWorkersForPlatformsWithStreamingResponse: - return AsyncWorkersForPlatformsWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncWorkersForPlatformsResourceWithStreamingResponse: + return AsyncWorkersForPlatformsResourceWithStreamingResponse(self) -class WorkersForPlatformsWithRawResponse: - def __init__(self, workers_for_platforms: WorkersForPlatforms) -> None: +class WorkersForPlatformsResourceWithRawResponse: + def __init__(self, workers_for_platforms: WorkersForPlatformsResource) -> None: self._workers_for_platforms = workers_for_platforms @cached_property - def dispatch(self) -> DispatchWithRawResponse: - return DispatchWithRawResponse(self._workers_for_platforms.dispatch) + def dispatch(self) -> DispatchResourceWithRawResponse: + return DispatchResourceWithRawResponse(self._workers_for_platforms.dispatch) -class AsyncWorkersForPlatformsWithRawResponse: - def __init__(self, workers_for_platforms: AsyncWorkersForPlatforms) -> None: +class AsyncWorkersForPlatformsResourceWithRawResponse: + def __init__(self, workers_for_platforms: AsyncWorkersForPlatformsResource) -> None: self._workers_for_platforms = workers_for_platforms @cached_property - def dispatch(self) -> AsyncDispatchWithRawResponse: - return AsyncDispatchWithRawResponse(self._workers_for_platforms.dispatch) + def dispatch(self) -> AsyncDispatchResourceWithRawResponse: + return AsyncDispatchResourceWithRawResponse(self._workers_for_platforms.dispatch) -class WorkersForPlatformsWithStreamingResponse: - def __init__(self, workers_for_platforms: WorkersForPlatforms) -> None: +class WorkersForPlatformsResourceWithStreamingResponse: + def __init__(self, workers_for_platforms: WorkersForPlatformsResource) -> None: self._workers_for_platforms = workers_for_platforms @cached_property - def dispatch(self) -> DispatchWithStreamingResponse: - return DispatchWithStreamingResponse(self._workers_for_platforms.dispatch) + def dispatch(self) -> DispatchResourceWithStreamingResponse: + return DispatchResourceWithStreamingResponse(self._workers_for_platforms.dispatch) -class AsyncWorkersForPlatformsWithStreamingResponse: - def __init__(self, workers_for_platforms: AsyncWorkersForPlatforms) -> None: +class AsyncWorkersForPlatformsResourceWithStreamingResponse: + def __init__(self, workers_for_platforms: AsyncWorkersForPlatformsResource) -> None: self._workers_for_platforms = workers_for_platforms @cached_property - def dispatch(self) -> AsyncDispatchWithStreamingResponse: - return AsyncDispatchWithStreamingResponse(self._workers_for_platforms.dispatch) + def dispatch(self) -> AsyncDispatchResourceWithStreamingResponse: + return AsyncDispatchResourceWithStreamingResponse(self._workers_for_platforms.dispatch) diff --git a/src/cloudflare/resources/zero_trust/__init__.py b/src/cloudflare/resources/zero_trust/__init__.py index 75a0d0da0cd..7703df18c9b 100644 --- a/src/cloudflare/resources/zero_trust/__init__.py +++ b/src/cloudflare/resources/zero_trust/__init__.py @@ -1,187 +1,187 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from .dex import ( - DEX, - AsyncDEX, - DEXWithRawResponse, - AsyncDEXWithRawResponse, - DEXWithStreamingResponse, - AsyncDEXWithStreamingResponse, + DEXResource, + AsyncDEXResource, + DEXResourceWithRawResponse, + AsyncDEXResourceWithRawResponse, + DEXResourceWithStreamingResponse, + AsyncDEXResourceWithStreamingResponse, ) from .dlp import ( - DLP, - AsyncDLP, - DLPWithRawResponse, - AsyncDLPWithRawResponse, - DLPWithStreamingResponse, - AsyncDLPWithStreamingResponse, + DLPResource, + AsyncDLPResource, + DLPResourceWithRawResponse, + AsyncDLPResourceWithRawResponse, + DLPResourceWithStreamingResponse, + AsyncDLPResourceWithStreamingResponse, ) from .seats import ( - Seats, - AsyncSeats, - SeatsWithRawResponse, - AsyncSeatsWithRawResponse, - SeatsWithStreamingResponse, - AsyncSeatsWithStreamingResponse, + SeatsResource, + AsyncSeatsResource, + SeatsResourceWithRawResponse, + AsyncSeatsResourceWithRawResponse, + SeatsResourceWithStreamingResponse, + AsyncSeatsResourceWithStreamingResponse, ) from .access import ( - Access, - AsyncAccess, - AccessWithRawResponse, - AsyncAccessWithRawResponse, - AccessWithStreamingResponse, - AsyncAccessWithStreamingResponse, + AccessResource, + AsyncAccessResource, + AccessResourceWithRawResponse, + AsyncAccessResourceWithRawResponse, + AccessResourceWithStreamingResponse, + AsyncAccessResourceWithStreamingResponse, ) from .devices import ( - Devices, - AsyncDevices, - DevicesWithRawResponse, - AsyncDevicesWithRawResponse, - DevicesWithStreamingResponse, - AsyncDevicesWithStreamingResponse, + DevicesResource, + AsyncDevicesResource, + DevicesResourceWithRawResponse, + AsyncDevicesResourceWithRawResponse, + DevicesResourceWithStreamingResponse, + AsyncDevicesResourceWithStreamingResponse, ) from .gateway import ( - Gateway, - AsyncGateway, - GatewayWithRawResponse, - AsyncGatewayWithRawResponse, - GatewayWithStreamingResponse, - AsyncGatewayWithStreamingResponse, + GatewayResource, + AsyncGatewayResource, + GatewayResourceWithRawResponse, + AsyncGatewayResourceWithRawResponse, + GatewayResourceWithStreamingResponse, + AsyncGatewayResourceWithStreamingResponse, ) from .tunnels import ( - Tunnels, - AsyncTunnels, - TunnelsWithRawResponse, - AsyncTunnelsWithRawResponse, - TunnelsWithStreamingResponse, - AsyncTunnelsWithStreamingResponse, + TunnelsResource, + AsyncTunnelsResource, + TunnelsResourceWithRawResponse, + AsyncTunnelsResourceWithRawResponse, + TunnelsResourceWithStreamingResponse, + AsyncTunnelsResourceWithStreamingResponse, ) from .networks import ( - Networks, - AsyncNetworks, - NetworksWithRawResponse, - AsyncNetworksWithRawResponse, - NetworksWithStreamingResponse, - AsyncNetworksWithStreamingResponse, + NetworksResource, + AsyncNetworksResource, + NetworksResourceWithRawResponse, + AsyncNetworksResourceWithRawResponse, + NetworksResourceWithStreamingResponse, + AsyncNetworksResourceWithStreamingResponse, ) from .zero_trust import ( - ZeroTrust, - AsyncZeroTrust, - ZeroTrustWithRawResponse, - AsyncZeroTrustWithRawResponse, - ZeroTrustWithStreamingResponse, - AsyncZeroTrustWithStreamingResponse, + ZeroTrustResource, + AsyncZeroTrustResource, + ZeroTrustResourceWithRawResponse, + AsyncZeroTrustResourceWithRawResponse, + ZeroTrustResourceWithStreamingResponse, + AsyncZeroTrustResourceWithStreamingResponse, ) from .risk_scoring import ( - RiskScoring, - AsyncRiskScoring, - RiskScoringWithRawResponse, - AsyncRiskScoringWithRawResponse, - RiskScoringWithStreamingResponse, - AsyncRiskScoringWithStreamingResponse, + RiskScoringResource, + AsyncRiskScoringResource, + RiskScoringResourceWithRawResponse, + AsyncRiskScoringResourceWithRawResponse, + RiskScoringResourceWithStreamingResponse, + AsyncRiskScoringResourceWithStreamingResponse, ) from .organizations import ( - Organizations, - AsyncOrganizations, - OrganizationsWithRawResponse, - AsyncOrganizationsWithRawResponse, - OrganizationsWithStreamingResponse, - AsyncOrganizationsWithStreamingResponse, + OrganizationsResource, + AsyncOrganizationsResource, + OrganizationsResourceWithRawResponse, + AsyncOrganizationsResourceWithRawResponse, + OrganizationsResourceWithStreamingResponse, + AsyncOrganizationsResourceWithStreamingResponse, ) from .identity_providers import ( - IdentityProviders, - AsyncIdentityProviders, - IdentityProvidersWithRawResponse, - AsyncIdentityProvidersWithRawResponse, - IdentityProvidersWithStreamingResponse, - AsyncIdentityProvidersWithStreamingResponse, + IdentityProvidersResource, + AsyncIdentityProvidersResource, + IdentityProvidersResourceWithRawResponse, + AsyncIdentityProvidersResourceWithRawResponse, + IdentityProvidersResourceWithStreamingResponse, + AsyncIdentityProvidersResourceWithStreamingResponse, ) from .connectivity_settings import ( - ConnectivitySettings, - AsyncConnectivitySettings, - ConnectivitySettingsWithRawResponse, - AsyncConnectivitySettingsWithRawResponse, - ConnectivitySettingsWithStreamingResponse, - AsyncConnectivitySettingsWithStreamingResponse, + ConnectivitySettingsResource, + AsyncConnectivitySettingsResource, + ConnectivitySettingsResourceWithRawResponse, + AsyncConnectivitySettingsResourceWithRawResponse, + ConnectivitySettingsResourceWithStreamingResponse, + AsyncConnectivitySettingsResourceWithStreamingResponse, ) __all__ = [ - "Devices", - "AsyncDevices", - "DevicesWithRawResponse", - "AsyncDevicesWithRawResponse", - "DevicesWithStreamingResponse", - "AsyncDevicesWithStreamingResponse", - "IdentityProviders", - "AsyncIdentityProviders", - "IdentityProvidersWithRawResponse", - "AsyncIdentityProvidersWithRawResponse", - "IdentityProvidersWithStreamingResponse", - "AsyncIdentityProvidersWithStreamingResponse", - "Organizations", - "AsyncOrganizations", - "OrganizationsWithRawResponse", - "AsyncOrganizationsWithRawResponse", - "OrganizationsWithStreamingResponse", - "AsyncOrganizationsWithStreamingResponse", - "Seats", - "AsyncSeats", - "SeatsWithRawResponse", - "AsyncSeatsWithRawResponse", - "SeatsWithStreamingResponse", - "AsyncSeatsWithStreamingResponse", - "Access", - "AsyncAccess", - "AccessWithRawResponse", - "AsyncAccessWithRawResponse", - "AccessWithStreamingResponse", - "AsyncAccessWithStreamingResponse", - "DEX", - "AsyncDEX", - "DEXWithRawResponse", - "AsyncDEXWithRawResponse", - "DEXWithStreamingResponse", - "AsyncDEXWithStreamingResponse", - "Tunnels", - "AsyncTunnels", - "TunnelsWithRawResponse", - "AsyncTunnelsWithRawResponse", - "TunnelsWithStreamingResponse", - "AsyncTunnelsWithStreamingResponse", - "ConnectivitySettings", - "AsyncConnectivitySettings", - "ConnectivitySettingsWithRawResponse", - "AsyncConnectivitySettingsWithRawResponse", - "ConnectivitySettingsWithStreamingResponse", - "AsyncConnectivitySettingsWithStreamingResponse", - "DLP", - "AsyncDLP", - "DLPWithRawResponse", - "AsyncDLPWithRawResponse", - "DLPWithStreamingResponse", - "AsyncDLPWithStreamingResponse", - "Gateway", - "AsyncGateway", - "GatewayWithRawResponse", - "AsyncGatewayWithRawResponse", - "GatewayWithStreamingResponse", - "AsyncGatewayWithStreamingResponse", - "Networks", - "AsyncNetworks", - "NetworksWithRawResponse", - "AsyncNetworksWithRawResponse", - "NetworksWithStreamingResponse", - "AsyncNetworksWithStreamingResponse", - "RiskScoring", - "AsyncRiskScoring", - "RiskScoringWithRawResponse", - "AsyncRiskScoringWithRawResponse", - "RiskScoringWithStreamingResponse", - "AsyncRiskScoringWithStreamingResponse", - "ZeroTrust", - "AsyncZeroTrust", - "ZeroTrustWithRawResponse", - "AsyncZeroTrustWithRawResponse", - "ZeroTrustWithStreamingResponse", - "AsyncZeroTrustWithStreamingResponse", + "DevicesResource", + "AsyncDevicesResource", + "DevicesResourceWithRawResponse", + "AsyncDevicesResourceWithRawResponse", + "DevicesResourceWithStreamingResponse", + "AsyncDevicesResourceWithStreamingResponse", + "IdentityProvidersResource", + "AsyncIdentityProvidersResource", + "IdentityProvidersResourceWithRawResponse", + "AsyncIdentityProvidersResourceWithRawResponse", + "IdentityProvidersResourceWithStreamingResponse", + "AsyncIdentityProvidersResourceWithStreamingResponse", + "OrganizationsResource", + "AsyncOrganizationsResource", + "OrganizationsResourceWithRawResponse", + "AsyncOrganizationsResourceWithRawResponse", + "OrganizationsResourceWithStreamingResponse", + "AsyncOrganizationsResourceWithStreamingResponse", + "SeatsResource", + "AsyncSeatsResource", + "SeatsResourceWithRawResponse", + "AsyncSeatsResourceWithRawResponse", + "SeatsResourceWithStreamingResponse", + "AsyncSeatsResourceWithStreamingResponse", + "AccessResource", + "AsyncAccessResource", + "AccessResourceWithRawResponse", + "AsyncAccessResourceWithRawResponse", + "AccessResourceWithStreamingResponse", + "AsyncAccessResourceWithStreamingResponse", + "DEXResource", + "AsyncDEXResource", + "DEXResourceWithRawResponse", + "AsyncDEXResourceWithRawResponse", + "DEXResourceWithStreamingResponse", + "AsyncDEXResourceWithStreamingResponse", + "TunnelsResource", + "AsyncTunnelsResource", + "TunnelsResourceWithRawResponse", + "AsyncTunnelsResourceWithRawResponse", + "TunnelsResourceWithStreamingResponse", + "AsyncTunnelsResourceWithStreamingResponse", + "ConnectivitySettingsResource", + "AsyncConnectivitySettingsResource", + "ConnectivitySettingsResourceWithRawResponse", + "AsyncConnectivitySettingsResourceWithRawResponse", + "ConnectivitySettingsResourceWithStreamingResponse", + "AsyncConnectivitySettingsResourceWithStreamingResponse", + "DLPResource", + "AsyncDLPResource", + "DLPResourceWithRawResponse", + "AsyncDLPResourceWithRawResponse", + "DLPResourceWithStreamingResponse", + "AsyncDLPResourceWithStreamingResponse", + "GatewayResource", + "AsyncGatewayResource", + "GatewayResourceWithRawResponse", + "AsyncGatewayResourceWithRawResponse", + "GatewayResourceWithStreamingResponse", + "AsyncGatewayResourceWithStreamingResponse", + "NetworksResource", + "AsyncNetworksResource", + "NetworksResourceWithRawResponse", + "AsyncNetworksResourceWithRawResponse", + "NetworksResourceWithStreamingResponse", + "AsyncNetworksResourceWithStreamingResponse", + "RiskScoringResource", + "AsyncRiskScoringResource", + "RiskScoringResourceWithRawResponse", + "AsyncRiskScoringResourceWithRawResponse", + "RiskScoringResourceWithStreamingResponse", + "AsyncRiskScoringResourceWithStreamingResponse", + "ZeroTrustResource", + "AsyncZeroTrustResource", + "ZeroTrustResourceWithRawResponse", + "AsyncZeroTrustResourceWithRawResponse", + "ZeroTrustResourceWithStreamingResponse", + "AsyncZeroTrustResourceWithStreamingResponse", ] diff --git a/src/cloudflare/resources/zero_trust/access/__init__.py b/src/cloudflare/resources/zero_trust/access/__init__.py index 198f90998c4..b34af407a86 100644 --- a/src/cloudflare/resources/zero_trust/access/__init__.py +++ b/src/cloudflare/resources/zero_trust/access/__init__.py @@ -1,159 +1,159 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from .keys import ( - Keys, - AsyncKeys, - KeysWithRawResponse, - AsyncKeysWithRawResponse, - KeysWithStreamingResponse, - AsyncKeysWithStreamingResponse, + KeysResource, + AsyncKeysResource, + KeysResourceWithRawResponse, + AsyncKeysResourceWithRawResponse, + KeysResourceWithStreamingResponse, + AsyncKeysResourceWithStreamingResponse, ) from .logs import ( - Logs, - AsyncLogs, - LogsWithRawResponse, - AsyncLogsWithRawResponse, - LogsWithStreamingResponse, - AsyncLogsWithStreamingResponse, + LogsResource, + AsyncLogsResource, + LogsResourceWithRawResponse, + AsyncLogsResourceWithRawResponse, + LogsResourceWithStreamingResponse, + AsyncLogsResourceWithStreamingResponse, ) from .tags import ( - Tags, - AsyncTags, - TagsWithRawResponse, - AsyncTagsWithRawResponse, - TagsWithStreamingResponse, - AsyncTagsWithStreamingResponse, + TagsResource, + AsyncTagsResource, + TagsResourceWithRawResponse, + AsyncTagsResourceWithRawResponse, + TagsResourceWithStreamingResponse, + AsyncTagsResourceWithStreamingResponse, ) from .users import ( - Users, - AsyncUsers, - UsersWithRawResponse, - AsyncUsersWithRawResponse, - UsersWithStreamingResponse, - AsyncUsersWithStreamingResponse, + UsersResource, + AsyncUsersResource, + UsersResourceWithRawResponse, + AsyncUsersResourceWithRawResponse, + UsersResourceWithStreamingResponse, + AsyncUsersResourceWithStreamingResponse, ) from .access import ( - Access, - AsyncAccess, - AccessWithRawResponse, - AsyncAccessWithRawResponse, - AccessWithStreamingResponse, - AsyncAccessWithStreamingResponse, + AccessResource, + AsyncAccessResource, + AccessResourceWithRawResponse, + AsyncAccessResourceWithRawResponse, + AccessResourceWithStreamingResponse, + AsyncAccessResourceWithStreamingResponse, ) from .groups import ( - Groups, - AsyncGroups, - GroupsWithRawResponse, - AsyncGroupsWithRawResponse, - GroupsWithStreamingResponse, - AsyncGroupsWithStreamingResponse, + GroupsResource, + AsyncGroupsResource, + GroupsResourceWithRawResponse, + AsyncGroupsResourceWithRawResponse, + GroupsResourceWithStreamingResponse, + AsyncGroupsResourceWithStreamingResponse, ) from .bookmarks import ( - Bookmarks, - AsyncBookmarks, - BookmarksWithRawResponse, - AsyncBookmarksWithRawResponse, - BookmarksWithStreamingResponse, - AsyncBookmarksWithStreamingResponse, + BookmarksResource, + AsyncBookmarksResource, + BookmarksResourceWithRawResponse, + AsyncBookmarksResourceWithRawResponse, + BookmarksResourceWithStreamingResponse, + AsyncBookmarksResourceWithStreamingResponse, ) from .applications import ( - Applications, - AsyncApplications, - ApplicationsWithRawResponse, - AsyncApplicationsWithRawResponse, - ApplicationsWithStreamingResponse, - AsyncApplicationsWithStreamingResponse, + ApplicationsResource, + AsyncApplicationsResource, + ApplicationsResourceWithRawResponse, + AsyncApplicationsResourceWithRawResponse, + ApplicationsResourceWithStreamingResponse, + AsyncApplicationsResourceWithStreamingResponse, ) from .certificates import ( - Certificates, - AsyncCertificates, - CertificatesWithRawResponse, - AsyncCertificatesWithRawResponse, - CertificatesWithStreamingResponse, - AsyncCertificatesWithStreamingResponse, + CertificatesResource, + AsyncCertificatesResource, + CertificatesResourceWithRawResponse, + AsyncCertificatesResourceWithRawResponse, + CertificatesResourceWithStreamingResponse, + AsyncCertificatesResourceWithStreamingResponse, ) from .custom_pages import ( - CustomPages, - AsyncCustomPages, - CustomPagesWithRawResponse, - AsyncCustomPagesWithRawResponse, - CustomPagesWithStreamingResponse, - AsyncCustomPagesWithStreamingResponse, + CustomPagesResource, + AsyncCustomPagesResource, + CustomPagesResourceWithRawResponse, + AsyncCustomPagesResourceWithRawResponse, + CustomPagesResourceWithStreamingResponse, + AsyncCustomPagesResourceWithStreamingResponse, ) from .service_tokens import ( - ServiceTokens, - AsyncServiceTokens, - ServiceTokensWithRawResponse, - AsyncServiceTokensWithRawResponse, - ServiceTokensWithStreamingResponse, - AsyncServiceTokensWithStreamingResponse, + ServiceTokensResource, + AsyncServiceTokensResource, + ServiceTokensResourceWithRawResponse, + AsyncServiceTokensResourceWithRawResponse, + ServiceTokensResourceWithStreamingResponse, + AsyncServiceTokensResourceWithStreamingResponse, ) __all__ = [ - "Applications", - "AsyncApplications", - "ApplicationsWithRawResponse", - "AsyncApplicationsWithRawResponse", - "ApplicationsWithStreamingResponse", - "AsyncApplicationsWithStreamingResponse", - "Certificates", - "AsyncCertificates", - "CertificatesWithRawResponse", - "AsyncCertificatesWithRawResponse", - "CertificatesWithStreamingResponse", - "AsyncCertificatesWithStreamingResponse", - "Groups", - "AsyncGroups", - "GroupsWithRawResponse", - "AsyncGroupsWithRawResponse", - "GroupsWithStreamingResponse", - "AsyncGroupsWithStreamingResponse", - "ServiceTokens", - "AsyncServiceTokens", - "ServiceTokensWithRawResponse", - "AsyncServiceTokensWithRawResponse", - "ServiceTokensWithStreamingResponse", - "AsyncServiceTokensWithStreamingResponse", - "Bookmarks", - "AsyncBookmarks", - "BookmarksWithRawResponse", - "AsyncBookmarksWithRawResponse", - "BookmarksWithStreamingResponse", - "AsyncBookmarksWithStreamingResponse", - "Keys", - "AsyncKeys", - "KeysWithRawResponse", - "AsyncKeysWithRawResponse", - "KeysWithStreamingResponse", - "AsyncKeysWithStreamingResponse", - "Logs", - "AsyncLogs", - "LogsWithRawResponse", - "AsyncLogsWithRawResponse", - "LogsWithStreamingResponse", - "AsyncLogsWithStreamingResponse", - "Users", - "AsyncUsers", - "UsersWithRawResponse", - "AsyncUsersWithRawResponse", - "UsersWithStreamingResponse", - "AsyncUsersWithStreamingResponse", - "CustomPages", - "AsyncCustomPages", - "CustomPagesWithRawResponse", - "AsyncCustomPagesWithRawResponse", - "CustomPagesWithStreamingResponse", - "AsyncCustomPagesWithStreamingResponse", - "Tags", - "AsyncTags", - "TagsWithRawResponse", - "AsyncTagsWithRawResponse", - "TagsWithStreamingResponse", - "AsyncTagsWithStreamingResponse", - "Access", - "AsyncAccess", - "AccessWithRawResponse", - "AsyncAccessWithRawResponse", - "AccessWithStreamingResponse", - "AsyncAccessWithStreamingResponse", + "ApplicationsResource", + "AsyncApplicationsResource", + "ApplicationsResourceWithRawResponse", + "AsyncApplicationsResourceWithRawResponse", + "ApplicationsResourceWithStreamingResponse", + "AsyncApplicationsResourceWithStreamingResponse", + "CertificatesResource", + "AsyncCertificatesResource", + "CertificatesResourceWithRawResponse", + "AsyncCertificatesResourceWithRawResponse", + "CertificatesResourceWithStreamingResponse", + "AsyncCertificatesResourceWithStreamingResponse", + "GroupsResource", + "AsyncGroupsResource", + "GroupsResourceWithRawResponse", + "AsyncGroupsResourceWithRawResponse", + "GroupsResourceWithStreamingResponse", + "AsyncGroupsResourceWithStreamingResponse", + "ServiceTokensResource", + "AsyncServiceTokensResource", + "ServiceTokensResourceWithRawResponse", + "AsyncServiceTokensResourceWithRawResponse", + "ServiceTokensResourceWithStreamingResponse", + "AsyncServiceTokensResourceWithStreamingResponse", + "BookmarksResource", + "AsyncBookmarksResource", + "BookmarksResourceWithRawResponse", + "AsyncBookmarksResourceWithRawResponse", + "BookmarksResourceWithStreamingResponse", + "AsyncBookmarksResourceWithStreamingResponse", + "KeysResource", + "AsyncKeysResource", + "KeysResourceWithRawResponse", + "AsyncKeysResourceWithRawResponse", + "KeysResourceWithStreamingResponse", + "AsyncKeysResourceWithStreamingResponse", + "LogsResource", + "AsyncLogsResource", + "LogsResourceWithRawResponse", + "AsyncLogsResourceWithRawResponse", + "LogsResourceWithStreamingResponse", + "AsyncLogsResourceWithStreamingResponse", + "UsersResource", + "AsyncUsersResource", + "UsersResourceWithRawResponse", + "AsyncUsersResourceWithRawResponse", + "UsersResourceWithStreamingResponse", + "AsyncUsersResourceWithStreamingResponse", + "CustomPagesResource", + "AsyncCustomPagesResource", + "CustomPagesResourceWithRawResponse", + "AsyncCustomPagesResourceWithRawResponse", + "CustomPagesResourceWithStreamingResponse", + "AsyncCustomPagesResourceWithStreamingResponse", + "TagsResource", + "AsyncTagsResource", + "TagsResourceWithRawResponse", + "AsyncTagsResourceWithRawResponse", + "TagsResourceWithStreamingResponse", + "AsyncTagsResourceWithStreamingResponse", + "AccessResource", + "AsyncAccessResource", + "AccessResourceWithRawResponse", + "AsyncAccessResourceWithRawResponse", + "AccessResourceWithStreamingResponse", + "AsyncAccessResourceWithStreamingResponse", ] diff --git a/src/cloudflare/resources/zero_trust/access/access.py b/src/cloudflare/resources/zero_trust/access/access.py index 079457e9b97..6707c0f7745 100644 --- a/src/cloudflare/resources/zero_trust/access/access.py +++ b/src/cloudflare/resources/zero_trust/access/access.py @@ -3,370 +3,370 @@ from __future__ import annotations from .keys import ( - Keys, - AsyncKeys, - KeysWithRawResponse, - AsyncKeysWithRawResponse, - KeysWithStreamingResponse, - AsyncKeysWithStreamingResponse, + KeysResource, + AsyncKeysResource, + KeysResourceWithRawResponse, + AsyncKeysResourceWithRawResponse, + KeysResourceWithStreamingResponse, + AsyncKeysResourceWithStreamingResponse, ) from .logs import ( - Logs, - AsyncLogs, - LogsWithRawResponse, - AsyncLogsWithRawResponse, - LogsWithStreamingResponse, - AsyncLogsWithStreamingResponse, + LogsResource, + AsyncLogsResource, + LogsResourceWithRawResponse, + AsyncLogsResourceWithRawResponse, + LogsResourceWithStreamingResponse, + AsyncLogsResourceWithStreamingResponse, ) from .tags import ( - Tags, - AsyncTags, - TagsWithRawResponse, - AsyncTagsWithRawResponse, - TagsWithStreamingResponse, - AsyncTagsWithStreamingResponse, + TagsResource, + AsyncTagsResource, + TagsResourceWithRawResponse, + AsyncTagsResourceWithRawResponse, + TagsResourceWithStreamingResponse, + AsyncTagsResourceWithStreamingResponse, ) from .users import ( - Users, - AsyncUsers, - UsersWithRawResponse, - AsyncUsersWithRawResponse, - UsersWithStreamingResponse, - AsyncUsersWithStreamingResponse, + UsersResource, + AsyncUsersResource, + UsersResourceWithRawResponse, + AsyncUsersResourceWithRawResponse, + UsersResourceWithStreamingResponse, + AsyncUsersResourceWithStreamingResponse, ) from .groups import ( - Groups, - AsyncGroups, - GroupsWithRawResponse, - AsyncGroupsWithRawResponse, - GroupsWithStreamingResponse, - AsyncGroupsWithStreamingResponse, + GroupsResource, + AsyncGroupsResource, + GroupsResourceWithRawResponse, + AsyncGroupsResourceWithRawResponse, + GroupsResourceWithStreamingResponse, + AsyncGroupsResourceWithStreamingResponse, ) from .bookmarks import ( - Bookmarks, - AsyncBookmarks, - BookmarksWithRawResponse, - AsyncBookmarksWithRawResponse, - BookmarksWithStreamingResponse, - AsyncBookmarksWithStreamingResponse, + BookmarksResource, + AsyncBookmarksResource, + BookmarksResourceWithRawResponse, + AsyncBookmarksResourceWithRawResponse, + BookmarksResourceWithStreamingResponse, + AsyncBookmarksResourceWithStreamingResponse, ) -from .logs.logs import Logs, AsyncLogs +from .logs.logs import LogsResource, AsyncLogsResource from ...._compat import cached_property -from .users.users import Users, AsyncUsers +from .users.users import UsersResource, AsyncUsersResource from ...._resource import SyncAPIResource, AsyncAPIResource from .applications import ( - Applications, - AsyncApplications, - ApplicationsWithRawResponse, - AsyncApplicationsWithRawResponse, - ApplicationsWithStreamingResponse, - AsyncApplicationsWithStreamingResponse, + ApplicationsResource, + AsyncApplicationsResource, + ApplicationsResourceWithRawResponse, + AsyncApplicationsResourceWithRawResponse, + ApplicationsResourceWithStreamingResponse, + AsyncApplicationsResourceWithStreamingResponse, ) from .certificates import ( - Certificates, - AsyncCertificates, - CertificatesWithRawResponse, - AsyncCertificatesWithRawResponse, - CertificatesWithStreamingResponse, - AsyncCertificatesWithStreamingResponse, + CertificatesResource, + AsyncCertificatesResource, + CertificatesResourceWithRawResponse, + AsyncCertificatesResourceWithRawResponse, + CertificatesResourceWithStreamingResponse, + AsyncCertificatesResourceWithStreamingResponse, ) from .custom_pages import ( - CustomPages, - AsyncCustomPages, - CustomPagesWithRawResponse, - AsyncCustomPagesWithRawResponse, - CustomPagesWithStreamingResponse, - AsyncCustomPagesWithStreamingResponse, + CustomPagesResource, + AsyncCustomPagesResource, + CustomPagesResourceWithRawResponse, + AsyncCustomPagesResourceWithRawResponse, + CustomPagesResourceWithStreamingResponse, + AsyncCustomPagesResourceWithStreamingResponse, ) from .service_tokens import ( - ServiceTokens, - AsyncServiceTokens, - ServiceTokensWithRawResponse, - AsyncServiceTokensWithRawResponse, - ServiceTokensWithStreamingResponse, - AsyncServiceTokensWithStreamingResponse, + ServiceTokensResource, + AsyncServiceTokensResource, + ServiceTokensResourceWithRawResponse, + AsyncServiceTokensResourceWithRawResponse, + ServiceTokensResourceWithStreamingResponse, + AsyncServiceTokensResourceWithStreamingResponse, ) -from .applications.applications import Applications, AsyncApplications -from .certificates.certificates import Certificates, AsyncCertificates +from .applications.applications import ApplicationsResource, AsyncApplicationsResource +from .certificates.certificates import CertificatesResource, AsyncCertificatesResource -__all__ = ["Access", "AsyncAccess"] +__all__ = ["AccessResource", "AsyncAccessResource"] -class Access(SyncAPIResource): +class AccessResource(SyncAPIResource): @cached_property - def applications(self) -> Applications: - return Applications(self._client) + def applications(self) -> ApplicationsResource: + return ApplicationsResource(self._client) @cached_property - def certificates(self) -> Certificates: - return Certificates(self._client) + def certificates(self) -> CertificatesResource: + return CertificatesResource(self._client) @cached_property - def groups(self) -> Groups: - return Groups(self._client) + def groups(self) -> GroupsResource: + return GroupsResource(self._client) @cached_property - def service_tokens(self) -> ServiceTokens: - return ServiceTokens(self._client) + def service_tokens(self) -> ServiceTokensResource: + return ServiceTokensResource(self._client) @cached_property - def bookmarks(self) -> Bookmarks: - return Bookmarks(self._client) + def bookmarks(self) -> BookmarksResource: + return BookmarksResource(self._client) @cached_property - def keys(self) -> Keys: - return Keys(self._client) + def keys(self) -> KeysResource: + return KeysResource(self._client) @cached_property - def logs(self) -> Logs: - return Logs(self._client) + def logs(self) -> LogsResource: + return LogsResource(self._client) @cached_property - def users(self) -> Users: - return Users(self._client) + def users(self) -> UsersResource: + return UsersResource(self._client) @cached_property - def custom_pages(self) -> CustomPages: - return CustomPages(self._client) + def custom_pages(self) -> CustomPagesResource: + return CustomPagesResource(self._client) @cached_property - def tags(self) -> Tags: - return Tags(self._client) + def tags(self) -> TagsResource: + return TagsResource(self._client) @cached_property - def with_raw_response(self) -> AccessWithRawResponse: - return AccessWithRawResponse(self) + def with_raw_response(self) -> AccessResourceWithRawResponse: + return AccessResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AccessWithStreamingResponse: - return AccessWithStreamingResponse(self) + def with_streaming_response(self) -> AccessResourceWithStreamingResponse: + return AccessResourceWithStreamingResponse(self) -class AsyncAccess(AsyncAPIResource): +class AsyncAccessResource(AsyncAPIResource): @cached_property - def applications(self) -> AsyncApplications: - return AsyncApplications(self._client) + def applications(self) -> AsyncApplicationsResource: + return AsyncApplicationsResource(self._client) @cached_property - def certificates(self) -> AsyncCertificates: - return AsyncCertificates(self._client) + def certificates(self) -> AsyncCertificatesResource: + return AsyncCertificatesResource(self._client) @cached_property - def groups(self) -> AsyncGroups: - return AsyncGroups(self._client) + def groups(self) -> AsyncGroupsResource: + return AsyncGroupsResource(self._client) @cached_property - def service_tokens(self) -> AsyncServiceTokens: - return AsyncServiceTokens(self._client) + def service_tokens(self) -> AsyncServiceTokensResource: + return AsyncServiceTokensResource(self._client) @cached_property - def bookmarks(self) -> AsyncBookmarks: - return AsyncBookmarks(self._client) + def bookmarks(self) -> AsyncBookmarksResource: + return AsyncBookmarksResource(self._client) @cached_property - def keys(self) -> AsyncKeys: - return AsyncKeys(self._client) + def keys(self) -> AsyncKeysResource: + return AsyncKeysResource(self._client) @cached_property - def logs(self) -> AsyncLogs: - return AsyncLogs(self._client) + def logs(self) -> AsyncLogsResource: + return AsyncLogsResource(self._client) @cached_property - def users(self) -> AsyncUsers: - return AsyncUsers(self._client) + def users(self) -> AsyncUsersResource: + return AsyncUsersResource(self._client) @cached_property - def custom_pages(self) -> AsyncCustomPages: - return AsyncCustomPages(self._client) + def custom_pages(self) -> AsyncCustomPagesResource: + return AsyncCustomPagesResource(self._client) @cached_property - def tags(self) -> AsyncTags: - return AsyncTags(self._client) + def tags(self) -> AsyncTagsResource: + return AsyncTagsResource(self._client) @cached_property - def with_raw_response(self) -> AsyncAccessWithRawResponse: - return AsyncAccessWithRawResponse(self) + def with_raw_response(self) -> AsyncAccessResourceWithRawResponse: + return AsyncAccessResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncAccessWithStreamingResponse: - return AsyncAccessWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncAccessResourceWithStreamingResponse: + return AsyncAccessResourceWithStreamingResponse(self) -class AccessWithRawResponse: - def __init__(self, access: Access) -> None: +class AccessResourceWithRawResponse: + def __init__(self, access: AccessResource) -> None: self._access = access @cached_property - def applications(self) -> ApplicationsWithRawResponse: - return ApplicationsWithRawResponse(self._access.applications) + def applications(self) -> ApplicationsResourceWithRawResponse: + return ApplicationsResourceWithRawResponse(self._access.applications) @cached_property - def certificates(self) -> CertificatesWithRawResponse: - return CertificatesWithRawResponse(self._access.certificates) + def certificates(self) -> CertificatesResourceWithRawResponse: + return CertificatesResourceWithRawResponse(self._access.certificates) @cached_property - def groups(self) -> GroupsWithRawResponse: - return GroupsWithRawResponse(self._access.groups) + def groups(self) -> GroupsResourceWithRawResponse: + return GroupsResourceWithRawResponse(self._access.groups) @cached_property - def service_tokens(self) -> ServiceTokensWithRawResponse: - return ServiceTokensWithRawResponse(self._access.service_tokens) + def service_tokens(self) -> ServiceTokensResourceWithRawResponse: + return ServiceTokensResourceWithRawResponse(self._access.service_tokens) @cached_property - def bookmarks(self) -> BookmarksWithRawResponse: - return BookmarksWithRawResponse(self._access.bookmarks) + def bookmarks(self) -> BookmarksResourceWithRawResponse: + return BookmarksResourceWithRawResponse(self._access.bookmarks) @cached_property - def keys(self) -> KeysWithRawResponse: - return KeysWithRawResponse(self._access.keys) + def keys(self) -> KeysResourceWithRawResponse: + return KeysResourceWithRawResponse(self._access.keys) @cached_property - def logs(self) -> LogsWithRawResponse: - return LogsWithRawResponse(self._access.logs) + def logs(self) -> LogsResourceWithRawResponse: + return LogsResourceWithRawResponse(self._access.logs) @cached_property - def users(self) -> UsersWithRawResponse: - return UsersWithRawResponse(self._access.users) + def users(self) -> UsersResourceWithRawResponse: + return UsersResourceWithRawResponse(self._access.users) @cached_property - def custom_pages(self) -> CustomPagesWithRawResponse: - return CustomPagesWithRawResponse(self._access.custom_pages) + def custom_pages(self) -> CustomPagesResourceWithRawResponse: + return CustomPagesResourceWithRawResponse(self._access.custom_pages) @cached_property - def tags(self) -> TagsWithRawResponse: - return TagsWithRawResponse(self._access.tags) + def tags(self) -> TagsResourceWithRawResponse: + return TagsResourceWithRawResponse(self._access.tags) -class AsyncAccessWithRawResponse: - def __init__(self, access: AsyncAccess) -> None: +class AsyncAccessResourceWithRawResponse: + def __init__(self, access: AsyncAccessResource) -> None: self._access = access @cached_property - def applications(self) -> AsyncApplicationsWithRawResponse: - return AsyncApplicationsWithRawResponse(self._access.applications) + def applications(self) -> AsyncApplicationsResourceWithRawResponse: + return AsyncApplicationsResourceWithRawResponse(self._access.applications) @cached_property - def certificates(self) -> AsyncCertificatesWithRawResponse: - return AsyncCertificatesWithRawResponse(self._access.certificates) + def certificates(self) -> AsyncCertificatesResourceWithRawResponse: + return AsyncCertificatesResourceWithRawResponse(self._access.certificates) @cached_property - def groups(self) -> AsyncGroupsWithRawResponse: - return AsyncGroupsWithRawResponse(self._access.groups) + def groups(self) -> AsyncGroupsResourceWithRawResponse: + return AsyncGroupsResourceWithRawResponse(self._access.groups) @cached_property - def service_tokens(self) -> AsyncServiceTokensWithRawResponse: - return AsyncServiceTokensWithRawResponse(self._access.service_tokens) + def service_tokens(self) -> AsyncServiceTokensResourceWithRawResponse: + return AsyncServiceTokensResourceWithRawResponse(self._access.service_tokens) @cached_property - def bookmarks(self) -> AsyncBookmarksWithRawResponse: - return AsyncBookmarksWithRawResponse(self._access.bookmarks) + def bookmarks(self) -> AsyncBookmarksResourceWithRawResponse: + return AsyncBookmarksResourceWithRawResponse(self._access.bookmarks) @cached_property - def keys(self) -> AsyncKeysWithRawResponse: - return AsyncKeysWithRawResponse(self._access.keys) + def keys(self) -> AsyncKeysResourceWithRawResponse: + return AsyncKeysResourceWithRawResponse(self._access.keys) @cached_property - def logs(self) -> AsyncLogsWithRawResponse: - return AsyncLogsWithRawResponse(self._access.logs) + def logs(self) -> AsyncLogsResourceWithRawResponse: + return AsyncLogsResourceWithRawResponse(self._access.logs) @cached_property - def users(self) -> AsyncUsersWithRawResponse: - return AsyncUsersWithRawResponse(self._access.users) + def users(self) -> AsyncUsersResourceWithRawResponse: + return AsyncUsersResourceWithRawResponse(self._access.users) @cached_property - def custom_pages(self) -> AsyncCustomPagesWithRawResponse: - return AsyncCustomPagesWithRawResponse(self._access.custom_pages) + def custom_pages(self) -> AsyncCustomPagesResourceWithRawResponse: + return AsyncCustomPagesResourceWithRawResponse(self._access.custom_pages) @cached_property - def tags(self) -> AsyncTagsWithRawResponse: - return AsyncTagsWithRawResponse(self._access.tags) + def tags(self) -> AsyncTagsResourceWithRawResponse: + return AsyncTagsResourceWithRawResponse(self._access.tags) -class AccessWithStreamingResponse: - def __init__(self, access: Access) -> None: +class AccessResourceWithStreamingResponse: + def __init__(self, access: AccessResource) -> None: self._access = access @cached_property - def applications(self) -> ApplicationsWithStreamingResponse: - return ApplicationsWithStreamingResponse(self._access.applications) + def applications(self) -> ApplicationsResourceWithStreamingResponse: + return ApplicationsResourceWithStreamingResponse(self._access.applications) @cached_property - def certificates(self) -> CertificatesWithStreamingResponse: - return CertificatesWithStreamingResponse(self._access.certificates) + def certificates(self) -> CertificatesResourceWithStreamingResponse: + return CertificatesResourceWithStreamingResponse(self._access.certificates) @cached_property - def groups(self) -> GroupsWithStreamingResponse: - return GroupsWithStreamingResponse(self._access.groups) + def groups(self) -> GroupsResourceWithStreamingResponse: + return GroupsResourceWithStreamingResponse(self._access.groups) @cached_property - def service_tokens(self) -> ServiceTokensWithStreamingResponse: - return ServiceTokensWithStreamingResponse(self._access.service_tokens) + def service_tokens(self) -> ServiceTokensResourceWithStreamingResponse: + return ServiceTokensResourceWithStreamingResponse(self._access.service_tokens) @cached_property - def bookmarks(self) -> BookmarksWithStreamingResponse: - return BookmarksWithStreamingResponse(self._access.bookmarks) + def bookmarks(self) -> BookmarksResourceWithStreamingResponse: + return BookmarksResourceWithStreamingResponse(self._access.bookmarks) @cached_property - def keys(self) -> KeysWithStreamingResponse: - return KeysWithStreamingResponse(self._access.keys) + def keys(self) -> KeysResourceWithStreamingResponse: + return KeysResourceWithStreamingResponse(self._access.keys) @cached_property - def logs(self) -> LogsWithStreamingResponse: - return LogsWithStreamingResponse(self._access.logs) + def logs(self) -> LogsResourceWithStreamingResponse: + return LogsResourceWithStreamingResponse(self._access.logs) @cached_property - def users(self) -> UsersWithStreamingResponse: - return UsersWithStreamingResponse(self._access.users) + def users(self) -> UsersResourceWithStreamingResponse: + return UsersResourceWithStreamingResponse(self._access.users) @cached_property - def custom_pages(self) -> CustomPagesWithStreamingResponse: - return CustomPagesWithStreamingResponse(self._access.custom_pages) + def custom_pages(self) -> CustomPagesResourceWithStreamingResponse: + return CustomPagesResourceWithStreamingResponse(self._access.custom_pages) @cached_property - def tags(self) -> TagsWithStreamingResponse: - return TagsWithStreamingResponse(self._access.tags) + def tags(self) -> TagsResourceWithStreamingResponse: + return TagsResourceWithStreamingResponse(self._access.tags) -class AsyncAccessWithStreamingResponse: - def __init__(self, access: AsyncAccess) -> None: +class AsyncAccessResourceWithStreamingResponse: + def __init__(self, access: AsyncAccessResource) -> None: self._access = access @cached_property - def applications(self) -> AsyncApplicationsWithStreamingResponse: - return AsyncApplicationsWithStreamingResponse(self._access.applications) + def applications(self) -> AsyncApplicationsResourceWithStreamingResponse: + return AsyncApplicationsResourceWithStreamingResponse(self._access.applications) @cached_property - def certificates(self) -> AsyncCertificatesWithStreamingResponse: - return AsyncCertificatesWithStreamingResponse(self._access.certificates) + def certificates(self) -> AsyncCertificatesResourceWithStreamingResponse: + return AsyncCertificatesResourceWithStreamingResponse(self._access.certificates) @cached_property - def groups(self) -> AsyncGroupsWithStreamingResponse: - return AsyncGroupsWithStreamingResponse(self._access.groups) + def groups(self) -> AsyncGroupsResourceWithStreamingResponse: + return AsyncGroupsResourceWithStreamingResponse(self._access.groups) @cached_property - def service_tokens(self) -> AsyncServiceTokensWithStreamingResponse: - return AsyncServiceTokensWithStreamingResponse(self._access.service_tokens) + def service_tokens(self) -> AsyncServiceTokensResourceWithStreamingResponse: + return AsyncServiceTokensResourceWithStreamingResponse(self._access.service_tokens) @cached_property - def bookmarks(self) -> AsyncBookmarksWithStreamingResponse: - return AsyncBookmarksWithStreamingResponse(self._access.bookmarks) + def bookmarks(self) -> AsyncBookmarksResourceWithStreamingResponse: + return AsyncBookmarksResourceWithStreamingResponse(self._access.bookmarks) @cached_property - def keys(self) -> AsyncKeysWithStreamingResponse: - return AsyncKeysWithStreamingResponse(self._access.keys) + def keys(self) -> AsyncKeysResourceWithStreamingResponse: + return AsyncKeysResourceWithStreamingResponse(self._access.keys) @cached_property - def logs(self) -> AsyncLogsWithStreamingResponse: - return AsyncLogsWithStreamingResponse(self._access.logs) + def logs(self) -> AsyncLogsResourceWithStreamingResponse: + return AsyncLogsResourceWithStreamingResponse(self._access.logs) @cached_property - def users(self) -> AsyncUsersWithStreamingResponse: - return AsyncUsersWithStreamingResponse(self._access.users) + def users(self) -> AsyncUsersResourceWithStreamingResponse: + return AsyncUsersResourceWithStreamingResponse(self._access.users) @cached_property - def custom_pages(self) -> AsyncCustomPagesWithStreamingResponse: - return AsyncCustomPagesWithStreamingResponse(self._access.custom_pages) + def custom_pages(self) -> AsyncCustomPagesResourceWithStreamingResponse: + return AsyncCustomPagesResourceWithStreamingResponse(self._access.custom_pages) @cached_property - def tags(self) -> AsyncTagsWithStreamingResponse: - return AsyncTagsWithStreamingResponse(self._access.tags) + def tags(self) -> AsyncTagsResourceWithStreamingResponse: + return AsyncTagsResourceWithStreamingResponse(self._access.tags) diff --git a/src/cloudflare/resources/zero_trust/access/applications/__init__.py b/src/cloudflare/resources/zero_trust/access/applications/__init__.py index 5b5d92cb586..8b6f39c4dd8 100644 --- a/src/cloudflare/resources/zero_trust/access/applications/__init__.py +++ b/src/cloudflare/resources/zero_trust/access/applications/__init__.py @@ -1,61 +1,61 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from .cas import ( - CAs, - AsyncCAs, - CAsWithRawResponse, - AsyncCAsWithRawResponse, - CAsWithStreamingResponse, - AsyncCAsWithStreamingResponse, + CAsResource, + AsyncCAsResource, + CAsResourceWithRawResponse, + AsyncCAsResourceWithRawResponse, + CAsResourceWithStreamingResponse, + AsyncCAsResourceWithStreamingResponse, ) from .policies import ( - Policies, - AsyncPolicies, - PoliciesWithRawResponse, - AsyncPoliciesWithRawResponse, - PoliciesWithStreamingResponse, - AsyncPoliciesWithStreamingResponse, + PoliciesResource, + AsyncPoliciesResource, + PoliciesResourceWithRawResponse, + AsyncPoliciesResourceWithRawResponse, + PoliciesResourceWithStreamingResponse, + AsyncPoliciesResourceWithStreamingResponse, ) from .applications import ( - Applications, - AsyncApplications, - ApplicationsWithRawResponse, - AsyncApplicationsWithRawResponse, - ApplicationsWithStreamingResponse, - AsyncApplicationsWithStreamingResponse, + ApplicationsResource, + AsyncApplicationsResource, + ApplicationsResourceWithRawResponse, + AsyncApplicationsResourceWithRawResponse, + ApplicationsResourceWithStreamingResponse, + AsyncApplicationsResourceWithStreamingResponse, ) from .user_policy_checks import ( - UserPolicyChecks, - AsyncUserPolicyChecks, - UserPolicyChecksWithRawResponse, - AsyncUserPolicyChecksWithRawResponse, - UserPolicyChecksWithStreamingResponse, - AsyncUserPolicyChecksWithStreamingResponse, + UserPolicyChecksResource, + AsyncUserPolicyChecksResource, + UserPolicyChecksResourceWithRawResponse, + AsyncUserPolicyChecksResourceWithRawResponse, + UserPolicyChecksResourceWithStreamingResponse, + AsyncUserPolicyChecksResourceWithStreamingResponse, ) __all__ = [ - "CAs", - "AsyncCAs", - "CAsWithRawResponse", - "AsyncCAsWithRawResponse", - "CAsWithStreamingResponse", - "AsyncCAsWithStreamingResponse", - "UserPolicyChecks", - "AsyncUserPolicyChecks", - "UserPolicyChecksWithRawResponse", - "AsyncUserPolicyChecksWithRawResponse", - "UserPolicyChecksWithStreamingResponse", - "AsyncUserPolicyChecksWithStreamingResponse", - "Policies", - "AsyncPolicies", - "PoliciesWithRawResponse", - "AsyncPoliciesWithRawResponse", - "PoliciesWithStreamingResponse", - "AsyncPoliciesWithStreamingResponse", - "Applications", - "AsyncApplications", - "ApplicationsWithRawResponse", - "AsyncApplicationsWithRawResponse", - "ApplicationsWithStreamingResponse", - "AsyncApplicationsWithStreamingResponse", + "CAsResource", + "AsyncCAsResource", + "CAsResourceWithRawResponse", + "AsyncCAsResourceWithRawResponse", + "CAsResourceWithStreamingResponse", + "AsyncCAsResourceWithStreamingResponse", + "UserPolicyChecksResource", + "AsyncUserPolicyChecksResource", + "UserPolicyChecksResourceWithRawResponse", + "AsyncUserPolicyChecksResourceWithRawResponse", + "UserPolicyChecksResourceWithStreamingResponse", + "AsyncUserPolicyChecksResourceWithStreamingResponse", + "PoliciesResource", + "AsyncPoliciesResource", + "PoliciesResourceWithRawResponse", + "AsyncPoliciesResourceWithRawResponse", + "PoliciesResourceWithStreamingResponse", + "AsyncPoliciesResourceWithStreamingResponse", + "ApplicationsResource", + "AsyncApplicationsResource", + "ApplicationsResourceWithRawResponse", + "AsyncApplicationsResourceWithRawResponse", + "ApplicationsResourceWithStreamingResponse", + "AsyncApplicationsResourceWithStreamingResponse", ] diff --git a/src/cloudflare/resources/zero_trust/access/applications/applications.py b/src/cloudflare/resources/zero_trust/access/applications/applications.py index 6f680f5746f..784827d16fd 100644 --- a/src/cloudflare/resources/zero_trust/access/applications/applications.py +++ b/src/cloudflare/resources/zero_trust/access/applications/applications.py @@ -8,20 +8,20 @@ import httpx from .cas import ( - CAs, - AsyncCAs, - CAsWithRawResponse, - AsyncCAsWithRawResponse, - CAsWithStreamingResponse, - AsyncCAsWithStreamingResponse, + CAsResource, + AsyncCAsResource, + CAsResourceWithRawResponse, + AsyncCAsResourceWithRawResponse, + CAsResourceWithStreamingResponse, + AsyncCAsResourceWithStreamingResponse, ) from .policies import ( - Policies, - AsyncPolicies, - PoliciesWithRawResponse, - AsyncPoliciesWithRawResponse, - PoliciesWithStreamingResponse, - AsyncPoliciesWithStreamingResponse, + PoliciesResource, + AsyncPoliciesResource, + PoliciesResourceWithRawResponse, + AsyncPoliciesResourceWithRawResponse, + PoliciesResourceWithStreamingResponse, + AsyncPoliciesResourceWithStreamingResponse, ) from ....._types import NOT_GIVEN, Body, Query, Headers, NotGiven from ....._utils import ( @@ -43,12 +43,12 @@ make_request_options, ) from .user_policy_checks import ( - UserPolicyChecks, - AsyncUserPolicyChecks, - UserPolicyChecksWithRawResponse, - AsyncUserPolicyChecksWithRawResponse, - UserPolicyChecksWithStreamingResponse, - AsyncUserPolicyChecksWithStreamingResponse, + UserPolicyChecksResource, + AsyncUserPolicyChecksResource, + UserPolicyChecksResourceWithRawResponse, + AsyncUserPolicyChecksResourceWithRawResponse, + UserPolicyChecksResourceWithStreamingResponse, + AsyncUserPolicyChecksResourceWithStreamingResponse, ) from .....types.zero_trust.access import application_create_params, application_update_params from .....types.zero_trust.access.application import Application @@ -59,29 +59,29 @@ from .....types.zero_trust.access.self_hosted_domainsh import SelfHostedDomainsh from .....types.zero_trust.access.application_delete_response import ApplicationDeleteResponse -__all__ = ["Applications", "AsyncApplications"] +__all__ = ["ApplicationsResource", "AsyncApplicationsResource"] -class Applications(SyncAPIResource): +class ApplicationsResource(SyncAPIResource): @cached_property - def cas(self) -> CAs: - return CAs(self._client) + def cas(self) -> CAsResource: + return CAsResource(self._client) @cached_property - def user_policy_checks(self) -> UserPolicyChecks: - return UserPolicyChecks(self._client) + def user_policy_checks(self) -> UserPolicyChecksResource: + return UserPolicyChecksResource(self._client) @cached_property - def policies(self) -> Policies: - return Policies(self._client) + def policies(self) -> PoliciesResource: + return PoliciesResource(self._client) @cached_property - def with_raw_response(self) -> ApplicationsWithRawResponse: - return ApplicationsWithRawResponse(self) + def with_raw_response(self) -> ApplicationsResourceWithRawResponse: + return ApplicationsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> ApplicationsWithStreamingResponse: - return ApplicationsWithStreamingResponse(self) + def with_streaming_response(self) -> ApplicationsResourceWithStreamingResponse: + return ApplicationsResourceWithStreamingResponse(self) @overload def create( @@ -1710,26 +1710,26 @@ def revoke_tokens( ) -class AsyncApplications(AsyncAPIResource): +class AsyncApplicationsResource(AsyncAPIResource): @cached_property - def cas(self) -> AsyncCAs: - return AsyncCAs(self._client) + def cas(self) -> AsyncCAsResource: + return AsyncCAsResource(self._client) @cached_property - def user_policy_checks(self) -> AsyncUserPolicyChecks: - return AsyncUserPolicyChecks(self._client) + def user_policy_checks(self) -> AsyncUserPolicyChecksResource: + return AsyncUserPolicyChecksResource(self._client) @cached_property - def policies(self) -> AsyncPolicies: - return AsyncPolicies(self._client) + def policies(self) -> AsyncPoliciesResource: + return AsyncPoliciesResource(self._client) @cached_property - def with_raw_response(self) -> AsyncApplicationsWithRawResponse: - return AsyncApplicationsWithRawResponse(self) + def with_raw_response(self) -> AsyncApplicationsResourceWithRawResponse: + return AsyncApplicationsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncApplicationsWithStreamingResponse: - return AsyncApplicationsWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncApplicationsResourceWithStreamingResponse: + return AsyncApplicationsResourceWithStreamingResponse(self) @overload async def create( @@ -3358,8 +3358,8 @@ async def revoke_tokens( ) -class ApplicationsWithRawResponse: - def __init__(self, applications: Applications) -> None: +class ApplicationsResourceWithRawResponse: + def __init__(self, applications: ApplicationsResource) -> None: self._applications = applications self.create = to_raw_response_wrapper( @@ -3382,20 +3382,20 @@ def __init__(self, applications: Applications) -> None: ) @cached_property - def cas(self) -> CAsWithRawResponse: - return CAsWithRawResponse(self._applications.cas) + def cas(self) -> CAsResourceWithRawResponse: + return CAsResourceWithRawResponse(self._applications.cas) @cached_property - def user_policy_checks(self) -> UserPolicyChecksWithRawResponse: - return UserPolicyChecksWithRawResponse(self._applications.user_policy_checks) + def user_policy_checks(self) -> UserPolicyChecksResourceWithRawResponse: + return UserPolicyChecksResourceWithRawResponse(self._applications.user_policy_checks) @cached_property - def policies(self) -> PoliciesWithRawResponse: - return PoliciesWithRawResponse(self._applications.policies) + def policies(self) -> PoliciesResourceWithRawResponse: + return PoliciesResourceWithRawResponse(self._applications.policies) -class AsyncApplicationsWithRawResponse: - def __init__(self, applications: AsyncApplications) -> None: +class AsyncApplicationsResourceWithRawResponse: + def __init__(self, applications: AsyncApplicationsResource) -> None: self._applications = applications self.create = async_to_raw_response_wrapper( @@ -3418,20 +3418,20 @@ def __init__(self, applications: AsyncApplications) -> None: ) @cached_property - def cas(self) -> AsyncCAsWithRawResponse: - return AsyncCAsWithRawResponse(self._applications.cas) + def cas(self) -> AsyncCAsResourceWithRawResponse: + return AsyncCAsResourceWithRawResponse(self._applications.cas) @cached_property - def user_policy_checks(self) -> AsyncUserPolicyChecksWithRawResponse: - return AsyncUserPolicyChecksWithRawResponse(self._applications.user_policy_checks) + def user_policy_checks(self) -> AsyncUserPolicyChecksResourceWithRawResponse: + return AsyncUserPolicyChecksResourceWithRawResponse(self._applications.user_policy_checks) @cached_property - def policies(self) -> AsyncPoliciesWithRawResponse: - return AsyncPoliciesWithRawResponse(self._applications.policies) + def policies(self) -> AsyncPoliciesResourceWithRawResponse: + return AsyncPoliciesResourceWithRawResponse(self._applications.policies) -class ApplicationsWithStreamingResponse: - def __init__(self, applications: Applications) -> None: +class ApplicationsResourceWithStreamingResponse: + def __init__(self, applications: ApplicationsResource) -> None: self._applications = applications self.create = to_streamed_response_wrapper( @@ -3454,20 +3454,20 @@ def __init__(self, applications: Applications) -> None: ) @cached_property - def cas(self) -> CAsWithStreamingResponse: - return CAsWithStreamingResponse(self._applications.cas) + def cas(self) -> CAsResourceWithStreamingResponse: + return CAsResourceWithStreamingResponse(self._applications.cas) @cached_property - def user_policy_checks(self) -> UserPolicyChecksWithStreamingResponse: - return UserPolicyChecksWithStreamingResponse(self._applications.user_policy_checks) + def user_policy_checks(self) -> UserPolicyChecksResourceWithStreamingResponse: + return UserPolicyChecksResourceWithStreamingResponse(self._applications.user_policy_checks) @cached_property - def policies(self) -> PoliciesWithStreamingResponse: - return PoliciesWithStreamingResponse(self._applications.policies) + def policies(self) -> PoliciesResourceWithStreamingResponse: + return PoliciesResourceWithStreamingResponse(self._applications.policies) -class AsyncApplicationsWithStreamingResponse: - def __init__(self, applications: AsyncApplications) -> None: +class AsyncApplicationsResourceWithStreamingResponse: + def __init__(self, applications: AsyncApplicationsResource) -> None: self._applications = applications self.create = async_to_streamed_response_wrapper( @@ -3490,13 +3490,13 @@ def __init__(self, applications: AsyncApplications) -> None: ) @cached_property - def cas(self) -> AsyncCAsWithStreamingResponse: - return AsyncCAsWithStreamingResponse(self._applications.cas) + def cas(self) -> AsyncCAsResourceWithStreamingResponse: + return AsyncCAsResourceWithStreamingResponse(self._applications.cas) @cached_property - def user_policy_checks(self) -> AsyncUserPolicyChecksWithStreamingResponse: - return AsyncUserPolicyChecksWithStreamingResponse(self._applications.user_policy_checks) + def user_policy_checks(self) -> AsyncUserPolicyChecksResourceWithStreamingResponse: + return AsyncUserPolicyChecksResourceWithStreamingResponse(self._applications.user_policy_checks) @cached_property - def policies(self) -> AsyncPoliciesWithStreamingResponse: - return AsyncPoliciesWithStreamingResponse(self._applications.policies) + def policies(self) -> AsyncPoliciesResourceWithStreamingResponse: + return AsyncPoliciesResourceWithStreamingResponse(self._applications.policies) diff --git a/src/cloudflare/resources/zero_trust/access/applications/cas.py b/src/cloudflare/resources/zero_trust/access/applications/cas.py index 4a94f1f8803..36c6f5f0483 100644 --- a/src/cloudflare/resources/zero_trust/access/applications/cas.py +++ b/src/cloudflare/resources/zero_trust/access/applications/cas.py @@ -26,17 +26,17 @@ from .....types.zero_trust.access.applications.ca_create_response import CACreateResponse from .....types.zero_trust.access.applications.ca_delete_response import CADeleteResponse -__all__ = ["CAs", "AsyncCAs"] +__all__ = ["CAsResource", "AsyncCAsResource"] -class CAs(SyncAPIResource): +class CAsResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> CAsWithRawResponse: - return CAsWithRawResponse(self) + def with_raw_response(self) -> CAsResourceWithRawResponse: + return CAsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> CAsWithStreamingResponse: - return CAsWithStreamingResponse(self) + def with_streaming_response(self) -> CAsResourceWithStreamingResponse: + return CAsResourceWithStreamingResponse(self) def create( self, @@ -269,14 +269,14 @@ def get( ) -class AsyncCAs(AsyncAPIResource): +class AsyncCAsResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncCAsWithRawResponse: - return AsyncCAsWithRawResponse(self) + def with_raw_response(self) -> AsyncCAsResourceWithRawResponse: + return AsyncCAsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncCAsWithStreamingResponse: - return AsyncCAsWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncCAsResourceWithStreamingResponse: + return AsyncCAsResourceWithStreamingResponse(self) async def create( self, @@ -509,8 +509,8 @@ async def get( ) -class CAsWithRawResponse: - def __init__(self, cas: CAs) -> None: +class CAsResourceWithRawResponse: + def __init__(self, cas: CAsResource) -> None: self._cas = cas self.create = to_raw_response_wrapper( @@ -527,8 +527,8 @@ def __init__(self, cas: CAs) -> None: ) -class AsyncCAsWithRawResponse: - def __init__(self, cas: AsyncCAs) -> None: +class AsyncCAsResourceWithRawResponse: + def __init__(self, cas: AsyncCAsResource) -> None: self._cas = cas self.create = async_to_raw_response_wrapper( @@ -545,8 +545,8 @@ def __init__(self, cas: AsyncCAs) -> None: ) -class CAsWithStreamingResponse: - def __init__(self, cas: CAs) -> None: +class CAsResourceWithStreamingResponse: + def __init__(self, cas: CAsResource) -> None: self._cas = cas self.create = to_streamed_response_wrapper( @@ -563,8 +563,8 @@ def __init__(self, cas: CAs) -> None: ) -class AsyncCAsWithStreamingResponse: - def __init__(self, cas: AsyncCAs) -> None: +class AsyncCAsResourceWithStreamingResponse: + def __init__(self, cas: AsyncCAsResource) -> None: self._cas = cas self.create = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/zero_trust/access/applications/policies.py b/src/cloudflare/resources/zero_trust/access/applications/policies.py index 7c1375526a5..14423705cf1 100644 --- a/src/cloudflare/resources/zero_trust/access/applications/policies.py +++ b/src/cloudflare/resources/zero_trust/access/applications/policies.py @@ -32,17 +32,17 @@ from .....types.zero_trust.access.applications.approval_group_param import ApprovalGroupParam from .....types.zero_trust.access.applications.policy_delete_response import PolicyDeleteResponse -__all__ = ["Policies", "AsyncPolicies"] +__all__ = ["PoliciesResource", "AsyncPoliciesResource"] -class Policies(SyncAPIResource): +class PoliciesResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> PoliciesWithRawResponse: - return PoliciesWithRawResponse(self) + def with_raw_response(self) -> PoliciesResourceWithRawResponse: + return PoliciesResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> PoliciesWithStreamingResponse: - return PoliciesWithStreamingResponse(self) + def with_streaming_response(self) -> PoliciesResourceWithStreamingResponse: + return PoliciesResourceWithStreamingResponse(self) def create( self, @@ -464,14 +464,14 @@ def get( ) -class AsyncPolicies(AsyncAPIResource): +class AsyncPoliciesResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncPoliciesWithRawResponse: - return AsyncPoliciesWithRawResponse(self) + def with_raw_response(self) -> AsyncPoliciesResourceWithRawResponse: + return AsyncPoliciesResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncPoliciesWithStreamingResponse: - return AsyncPoliciesWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncPoliciesResourceWithStreamingResponse: + return AsyncPoliciesResourceWithStreamingResponse(self) async def create( self, @@ -893,8 +893,8 @@ async def get( ) -class PoliciesWithRawResponse: - def __init__(self, policies: Policies) -> None: +class PoliciesResourceWithRawResponse: + def __init__(self, policies: PoliciesResource) -> None: self._policies = policies self.create = to_raw_response_wrapper( @@ -914,8 +914,8 @@ def __init__(self, policies: Policies) -> None: ) -class AsyncPoliciesWithRawResponse: - def __init__(self, policies: AsyncPolicies) -> None: +class AsyncPoliciesResourceWithRawResponse: + def __init__(self, policies: AsyncPoliciesResource) -> None: self._policies = policies self.create = async_to_raw_response_wrapper( @@ -935,8 +935,8 @@ def __init__(self, policies: AsyncPolicies) -> None: ) -class PoliciesWithStreamingResponse: - def __init__(self, policies: Policies) -> None: +class PoliciesResourceWithStreamingResponse: + def __init__(self, policies: PoliciesResource) -> None: self._policies = policies self.create = to_streamed_response_wrapper( @@ -956,8 +956,8 @@ def __init__(self, policies: Policies) -> None: ) -class AsyncPoliciesWithStreamingResponse: - def __init__(self, policies: AsyncPolicies) -> None: +class AsyncPoliciesResourceWithStreamingResponse: + def __init__(self, policies: AsyncPoliciesResource) -> None: self._policies = policies self.create = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/zero_trust/access/applications/user_policy_checks.py b/src/cloudflare/resources/zero_trust/access/applications/user_policy_checks.py index 81a5cd0cc11..3513a7db218 100644 --- a/src/cloudflare/resources/zero_trust/access/applications/user_policy_checks.py +++ b/src/cloudflare/resources/zero_trust/access/applications/user_policy_checks.py @@ -22,17 +22,17 @@ from .....types.zero_trust.access.app_id_param import AppIDParam from .....types.zero_trust.access.applications.user_policy_check_list_response import UserPolicyCheckListResponse -__all__ = ["UserPolicyChecks", "AsyncUserPolicyChecks"] +__all__ = ["UserPolicyChecksResource", "AsyncUserPolicyChecksResource"] -class UserPolicyChecks(SyncAPIResource): +class UserPolicyChecksResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> UserPolicyChecksWithRawResponse: - return UserPolicyChecksWithRawResponse(self) + def with_raw_response(self) -> UserPolicyChecksResourceWithRawResponse: + return UserPolicyChecksResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> UserPolicyChecksWithStreamingResponse: - return UserPolicyChecksWithStreamingResponse(self) + def with_streaming_response(self) -> UserPolicyChecksResourceWithStreamingResponse: + return UserPolicyChecksResourceWithStreamingResponse(self) def list( self, @@ -90,14 +90,14 @@ def list( ) -class AsyncUserPolicyChecks(AsyncAPIResource): +class AsyncUserPolicyChecksResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncUserPolicyChecksWithRawResponse: - return AsyncUserPolicyChecksWithRawResponse(self) + def with_raw_response(self) -> AsyncUserPolicyChecksResourceWithRawResponse: + return AsyncUserPolicyChecksResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncUserPolicyChecksWithStreamingResponse: - return AsyncUserPolicyChecksWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncUserPolicyChecksResourceWithStreamingResponse: + return AsyncUserPolicyChecksResourceWithStreamingResponse(self) async def list( self, @@ -155,8 +155,8 @@ async def list( ) -class UserPolicyChecksWithRawResponse: - def __init__(self, user_policy_checks: UserPolicyChecks) -> None: +class UserPolicyChecksResourceWithRawResponse: + def __init__(self, user_policy_checks: UserPolicyChecksResource) -> None: self._user_policy_checks = user_policy_checks self.list = to_raw_response_wrapper( @@ -164,8 +164,8 @@ def __init__(self, user_policy_checks: UserPolicyChecks) -> None: ) -class AsyncUserPolicyChecksWithRawResponse: - def __init__(self, user_policy_checks: AsyncUserPolicyChecks) -> None: +class AsyncUserPolicyChecksResourceWithRawResponse: + def __init__(self, user_policy_checks: AsyncUserPolicyChecksResource) -> None: self._user_policy_checks = user_policy_checks self.list = async_to_raw_response_wrapper( @@ -173,8 +173,8 @@ def __init__(self, user_policy_checks: AsyncUserPolicyChecks) -> None: ) -class UserPolicyChecksWithStreamingResponse: - def __init__(self, user_policy_checks: UserPolicyChecks) -> None: +class UserPolicyChecksResourceWithStreamingResponse: + def __init__(self, user_policy_checks: UserPolicyChecksResource) -> None: self._user_policy_checks = user_policy_checks self.list = to_streamed_response_wrapper( @@ -182,8 +182,8 @@ def __init__(self, user_policy_checks: UserPolicyChecks) -> None: ) -class AsyncUserPolicyChecksWithStreamingResponse: - def __init__(self, user_policy_checks: AsyncUserPolicyChecks) -> None: +class AsyncUserPolicyChecksResourceWithStreamingResponse: + def __init__(self, user_policy_checks: AsyncUserPolicyChecksResource) -> None: self._user_policy_checks = user_policy_checks self.list = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/zero_trust/access/bookmarks.py b/src/cloudflare/resources/zero_trust/access/bookmarks.py index 69a89ac111d..51956d890fa 100644 --- a/src/cloudflare/resources/zero_trust/access/bookmarks.py +++ b/src/cloudflare/resources/zero_trust/access/bookmarks.py @@ -29,17 +29,17 @@ from ....types.zero_trust.access.bookmark import Bookmark from ....types.zero_trust.access.bookmark_delete_response import BookmarkDeleteResponse -__all__ = ["Bookmarks", "AsyncBookmarks"] +__all__ = ["BookmarksResource", "AsyncBookmarksResource"] -class Bookmarks(SyncAPIResource): +class BookmarksResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> BookmarksWithRawResponse: - return BookmarksWithRawResponse(self) + def with_raw_response(self) -> BookmarksResourceWithRawResponse: + return BookmarksResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> BookmarksWithStreamingResponse: - return BookmarksWithStreamingResponse(self) + def with_streaming_response(self) -> BookmarksResourceWithStreamingResponse: + return BookmarksResourceWithStreamingResponse(self) def create( self, @@ -250,14 +250,14 @@ def get( ) -class AsyncBookmarks(AsyncAPIResource): +class AsyncBookmarksResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncBookmarksWithRawResponse: - return AsyncBookmarksWithRawResponse(self) + def with_raw_response(self) -> AsyncBookmarksResourceWithRawResponse: + return AsyncBookmarksResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncBookmarksWithStreamingResponse: - return AsyncBookmarksWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncBookmarksResourceWithStreamingResponse: + return AsyncBookmarksResourceWithStreamingResponse(self) async def create( self, @@ -468,8 +468,8 @@ async def get( ) -class BookmarksWithRawResponse: - def __init__(self, bookmarks: Bookmarks) -> None: +class BookmarksResourceWithRawResponse: + def __init__(self, bookmarks: BookmarksResource) -> None: self._bookmarks = bookmarks self.create = to_raw_response_wrapper( @@ -489,8 +489,8 @@ def __init__(self, bookmarks: Bookmarks) -> None: ) -class AsyncBookmarksWithRawResponse: - def __init__(self, bookmarks: AsyncBookmarks) -> None: +class AsyncBookmarksResourceWithRawResponse: + def __init__(self, bookmarks: AsyncBookmarksResource) -> None: self._bookmarks = bookmarks self.create = async_to_raw_response_wrapper( @@ -510,8 +510,8 @@ def __init__(self, bookmarks: AsyncBookmarks) -> None: ) -class BookmarksWithStreamingResponse: - def __init__(self, bookmarks: Bookmarks) -> None: +class BookmarksResourceWithStreamingResponse: + def __init__(self, bookmarks: BookmarksResource) -> None: self._bookmarks = bookmarks self.create = to_streamed_response_wrapper( @@ -531,8 +531,8 @@ def __init__(self, bookmarks: Bookmarks) -> None: ) -class AsyncBookmarksWithStreamingResponse: - def __init__(self, bookmarks: AsyncBookmarks) -> None: +class AsyncBookmarksResourceWithStreamingResponse: + def __init__(self, bookmarks: AsyncBookmarksResource) -> None: self._bookmarks = bookmarks self.create = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/zero_trust/access/certificates/__init__.py b/src/cloudflare/resources/zero_trust/access/certificates/__init__.py index c72ae5ac0e3..41b51f15d9e 100644 --- a/src/cloudflare/resources/zero_trust/access/certificates/__init__.py +++ b/src/cloudflare/resources/zero_trust/access/certificates/__init__.py @@ -1,33 +1,33 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from .settings import ( - Settings, - AsyncSettings, - SettingsWithRawResponse, - AsyncSettingsWithRawResponse, - SettingsWithStreamingResponse, - AsyncSettingsWithStreamingResponse, + SettingsResource, + AsyncSettingsResource, + SettingsResourceWithRawResponse, + AsyncSettingsResourceWithRawResponse, + SettingsResourceWithStreamingResponse, + AsyncSettingsResourceWithStreamingResponse, ) from .certificates import ( - Certificates, - AsyncCertificates, - CertificatesWithRawResponse, - AsyncCertificatesWithRawResponse, - CertificatesWithStreamingResponse, - AsyncCertificatesWithStreamingResponse, + CertificatesResource, + AsyncCertificatesResource, + CertificatesResourceWithRawResponse, + AsyncCertificatesResourceWithRawResponse, + CertificatesResourceWithStreamingResponse, + AsyncCertificatesResourceWithStreamingResponse, ) __all__ = [ - "Settings", - "AsyncSettings", - "SettingsWithRawResponse", - "AsyncSettingsWithRawResponse", - "SettingsWithStreamingResponse", - "AsyncSettingsWithStreamingResponse", - "Certificates", - "AsyncCertificates", - "CertificatesWithRawResponse", - "AsyncCertificatesWithRawResponse", - "CertificatesWithStreamingResponse", - "AsyncCertificatesWithStreamingResponse", + "SettingsResource", + "AsyncSettingsResource", + "SettingsResourceWithRawResponse", + "AsyncSettingsResourceWithRawResponse", + "SettingsResourceWithStreamingResponse", + "AsyncSettingsResourceWithStreamingResponse", + "CertificatesResource", + "AsyncCertificatesResource", + "CertificatesResourceWithRawResponse", + "AsyncCertificatesResourceWithRawResponse", + "CertificatesResourceWithStreamingResponse", + "AsyncCertificatesResourceWithStreamingResponse", ] diff --git a/src/cloudflare/resources/zero_trust/access/certificates/certificates.py b/src/cloudflare/resources/zero_trust/access/certificates/certificates.py index 6adc91144f8..e0e729cb755 100644 --- a/src/cloudflare/resources/zero_trust/access/certificates/certificates.py +++ b/src/cloudflare/resources/zero_trust/access/certificates/certificates.py @@ -7,12 +7,12 @@ import httpx from .settings import ( - Settings, - AsyncSettings, - SettingsWithRawResponse, - AsyncSettingsWithRawResponse, - SettingsWithStreamingResponse, - AsyncSettingsWithStreamingResponse, + SettingsResource, + AsyncSettingsResource, + SettingsResourceWithRawResponse, + AsyncSettingsResourceWithRawResponse, + SettingsResourceWithStreamingResponse, + AsyncSettingsResourceWithStreamingResponse, ) from ....._types import NOT_GIVEN, Body, Query, Headers, NotGiven from ....._utils import ( @@ -38,21 +38,21 @@ from .....types.zero_trust.access.associated_hostnames import AssociatedHostnames from .....types.zero_trust.access.certificate_delete_response import CertificateDeleteResponse -__all__ = ["Certificates", "AsyncCertificates"] +__all__ = ["CertificatesResource", "AsyncCertificatesResource"] -class Certificates(SyncAPIResource): +class CertificatesResource(SyncAPIResource): @cached_property - def settings(self) -> Settings: - return Settings(self._client) + def settings(self) -> SettingsResource: + return SettingsResource(self._client) @cached_property - def with_raw_response(self) -> CertificatesWithRawResponse: - return CertificatesWithRawResponse(self) + def with_raw_response(self) -> CertificatesResourceWithRawResponse: + return CertificatesResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> CertificatesWithStreamingResponse: - return CertificatesWithStreamingResponse(self) + def with_streaming_response(self) -> CertificatesResourceWithStreamingResponse: + return CertificatesResourceWithStreamingResponse(self) def create( self, @@ -357,18 +357,18 @@ def get( ) -class AsyncCertificates(AsyncAPIResource): +class AsyncCertificatesResource(AsyncAPIResource): @cached_property - def settings(self) -> AsyncSettings: - return AsyncSettings(self._client) + def settings(self) -> AsyncSettingsResource: + return AsyncSettingsResource(self._client) @cached_property - def with_raw_response(self) -> AsyncCertificatesWithRawResponse: - return AsyncCertificatesWithRawResponse(self) + def with_raw_response(self) -> AsyncCertificatesResourceWithRawResponse: + return AsyncCertificatesResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncCertificatesWithStreamingResponse: - return AsyncCertificatesWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncCertificatesResourceWithStreamingResponse: + return AsyncCertificatesResourceWithStreamingResponse(self) async def create( self, @@ -673,8 +673,8 @@ async def get( ) -class CertificatesWithRawResponse: - def __init__(self, certificates: Certificates) -> None: +class CertificatesResourceWithRawResponse: + def __init__(self, certificates: CertificatesResource) -> None: self._certificates = certificates self.create = to_raw_response_wrapper( @@ -694,12 +694,12 @@ def __init__(self, certificates: Certificates) -> None: ) @cached_property - def settings(self) -> SettingsWithRawResponse: - return SettingsWithRawResponse(self._certificates.settings) + def settings(self) -> SettingsResourceWithRawResponse: + return SettingsResourceWithRawResponse(self._certificates.settings) -class AsyncCertificatesWithRawResponse: - def __init__(self, certificates: AsyncCertificates) -> None: +class AsyncCertificatesResourceWithRawResponse: + def __init__(self, certificates: AsyncCertificatesResource) -> None: self._certificates = certificates self.create = async_to_raw_response_wrapper( @@ -719,12 +719,12 @@ def __init__(self, certificates: AsyncCertificates) -> None: ) @cached_property - def settings(self) -> AsyncSettingsWithRawResponse: - return AsyncSettingsWithRawResponse(self._certificates.settings) + def settings(self) -> AsyncSettingsResourceWithRawResponse: + return AsyncSettingsResourceWithRawResponse(self._certificates.settings) -class CertificatesWithStreamingResponse: - def __init__(self, certificates: Certificates) -> None: +class CertificatesResourceWithStreamingResponse: + def __init__(self, certificates: CertificatesResource) -> None: self._certificates = certificates self.create = to_streamed_response_wrapper( @@ -744,12 +744,12 @@ def __init__(self, certificates: Certificates) -> None: ) @cached_property - def settings(self) -> SettingsWithStreamingResponse: - return SettingsWithStreamingResponse(self._certificates.settings) + def settings(self) -> SettingsResourceWithStreamingResponse: + return SettingsResourceWithStreamingResponse(self._certificates.settings) -class AsyncCertificatesWithStreamingResponse: - def __init__(self, certificates: AsyncCertificates) -> None: +class AsyncCertificatesResourceWithStreamingResponse: + def __init__(self, certificates: AsyncCertificatesResource) -> None: self._certificates = certificates self.create = async_to_streamed_response_wrapper( @@ -769,5 +769,5 @@ def __init__(self, certificates: AsyncCertificates) -> None: ) @cached_property - def settings(self) -> AsyncSettingsWithStreamingResponse: - return AsyncSettingsWithStreamingResponse(self._certificates.settings) + def settings(self) -> AsyncSettingsResourceWithStreamingResponse: + return AsyncSettingsResourceWithStreamingResponse(self._certificates.settings) diff --git a/src/cloudflare/resources/zero_trust/access/certificates/settings.py b/src/cloudflare/resources/zero_trust/access/certificates/settings.py index fe7b24f19a3..b4001aa3cd2 100644 --- a/src/cloudflare/resources/zero_trust/access/certificates/settings.py +++ b/src/cloudflare/resources/zero_trust/access/certificates/settings.py @@ -28,17 +28,17 @@ from .....types.zero_trust.access.certificates.setting_update_response import SettingUpdateResponse from .....types.zero_trust.access.certificates.certificate_settings_param import CertificateSettingsParam -__all__ = ["Settings", "AsyncSettings"] +__all__ = ["SettingsResource", "AsyncSettingsResource"] -class Settings(SyncAPIResource): +class SettingsResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> SettingsWithRawResponse: - return SettingsWithRawResponse(self) + def with_raw_response(self) -> SettingsResourceWithRawResponse: + return SettingsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> SettingsWithStreamingResponse: - return SettingsWithStreamingResponse(self) + def with_streaming_response(self) -> SettingsResourceWithStreamingResponse: + return SettingsResourceWithStreamingResponse(self) def update( self, @@ -147,14 +147,14 @@ def get( ) -class AsyncSettings(AsyncAPIResource): +class AsyncSettingsResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncSettingsWithRawResponse: - return AsyncSettingsWithRawResponse(self) + def with_raw_response(self) -> AsyncSettingsResourceWithRawResponse: + return AsyncSettingsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncSettingsWithStreamingResponse: - return AsyncSettingsWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncSettingsResourceWithStreamingResponse: + return AsyncSettingsResourceWithStreamingResponse(self) async def update( self, @@ -263,8 +263,8 @@ async def get( ) -class SettingsWithRawResponse: - def __init__(self, settings: Settings) -> None: +class SettingsResourceWithRawResponse: + def __init__(self, settings: SettingsResource) -> None: self._settings = settings self.update = to_raw_response_wrapper( @@ -275,8 +275,8 @@ def __init__(self, settings: Settings) -> None: ) -class AsyncSettingsWithRawResponse: - def __init__(self, settings: AsyncSettings) -> None: +class AsyncSettingsResourceWithRawResponse: + def __init__(self, settings: AsyncSettingsResource) -> None: self._settings = settings self.update = async_to_raw_response_wrapper( @@ -287,8 +287,8 @@ def __init__(self, settings: AsyncSettings) -> None: ) -class SettingsWithStreamingResponse: - def __init__(self, settings: Settings) -> None: +class SettingsResourceWithStreamingResponse: + def __init__(self, settings: SettingsResource) -> None: self._settings = settings self.update = to_streamed_response_wrapper( @@ -299,8 +299,8 @@ def __init__(self, settings: Settings) -> None: ) -class AsyncSettingsWithStreamingResponse: - def __init__(self, settings: AsyncSettings) -> None: +class AsyncSettingsResourceWithStreamingResponse: + def __init__(self, settings: AsyncSettingsResource) -> None: self._settings = settings self.update = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/zero_trust/access/custom_pages.py b/src/cloudflare/resources/zero_trust/access/custom_pages.py index 0e0cec95dcc..1314c7e01b9 100644 --- a/src/cloudflare/resources/zero_trust/access/custom_pages.py +++ b/src/cloudflare/resources/zero_trust/access/custom_pages.py @@ -31,17 +31,17 @@ from ....types.zero_trust.access.custom_page_without_html import CustomPageWithoutHTML from ....types.zero_trust.access.custom_page_delete_response import CustomPageDeleteResponse -__all__ = ["CustomPages", "AsyncCustomPages"] +__all__ = ["CustomPagesResource", "AsyncCustomPagesResource"] -class CustomPages(SyncAPIResource): +class CustomPagesResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> CustomPagesWithRawResponse: - return CustomPagesWithRawResponse(self) + def with_raw_response(self) -> CustomPagesResourceWithRawResponse: + return CustomPagesResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> CustomPagesWithStreamingResponse: - return CustomPagesWithStreamingResponse(self) + def with_streaming_response(self) -> CustomPagesResourceWithStreamingResponse: + return CustomPagesResourceWithStreamingResponse(self) def create( self, @@ -293,14 +293,14 @@ def get( ) -class AsyncCustomPages(AsyncAPIResource): +class AsyncCustomPagesResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncCustomPagesWithRawResponse: - return AsyncCustomPagesWithRawResponse(self) + def with_raw_response(self) -> AsyncCustomPagesResourceWithRawResponse: + return AsyncCustomPagesResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncCustomPagesWithStreamingResponse: - return AsyncCustomPagesWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncCustomPagesResourceWithStreamingResponse: + return AsyncCustomPagesResourceWithStreamingResponse(self) async def create( self, @@ -552,8 +552,8 @@ async def get( ) -class CustomPagesWithRawResponse: - def __init__(self, custom_pages: CustomPages) -> None: +class CustomPagesResourceWithRawResponse: + def __init__(self, custom_pages: CustomPagesResource) -> None: self._custom_pages = custom_pages self.create = to_raw_response_wrapper( @@ -573,8 +573,8 @@ def __init__(self, custom_pages: CustomPages) -> None: ) -class AsyncCustomPagesWithRawResponse: - def __init__(self, custom_pages: AsyncCustomPages) -> None: +class AsyncCustomPagesResourceWithRawResponse: + def __init__(self, custom_pages: AsyncCustomPagesResource) -> None: self._custom_pages = custom_pages self.create = async_to_raw_response_wrapper( @@ -594,8 +594,8 @@ def __init__(self, custom_pages: AsyncCustomPages) -> None: ) -class CustomPagesWithStreamingResponse: - def __init__(self, custom_pages: CustomPages) -> None: +class CustomPagesResourceWithStreamingResponse: + def __init__(self, custom_pages: CustomPagesResource) -> None: self._custom_pages = custom_pages self.create = to_streamed_response_wrapper( @@ -615,8 +615,8 @@ def __init__(self, custom_pages: CustomPages) -> None: ) -class AsyncCustomPagesWithStreamingResponse: - def __init__(self, custom_pages: AsyncCustomPages) -> None: +class AsyncCustomPagesResourceWithStreamingResponse: + def __init__(self, custom_pages: AsyncCustomPagesResource) -> None: self._custom_pages = custom_pages self.create = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/zero_trust/access/groups.py b/src/cloudflare/resources/zero_trust/access/groups.py index 7afb7c2eafa..62bde18942b 100644 --- a/src/cloudflare/resources/zero_trust/access/groups.py +++ b/src/cloudflare/resources/zero_trust/access/groups.py @@ -30,17 +30,17 @@ from ....types.zero_trust.access.zero_trust_group import ZeroTrustGroup from ....types.zero_trust.access.group_delete_response import GroupDeleteResponse -__all__ = ["Groups", "AsyncGroups"] +__all__ = ["GroupsResource", "AsyncGroupsResource"] -class Groups(SyncAPIResource): +class GroupsResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> GroupsWithRawResponse: - return GroupsWithRawResponse(self) + def with_raw_response(self) -> GroupsResourceWithRawResponse: + return GroupsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> GroupsWithStreamingResponse: - return GroupsWithStreamingResponse(self) + def with_streaming_response(self) -> GroupsResourceWithStreamingResponse: + return GroupsResourceWithStreamingResponse(self) def create( self, @@ -371,14 +371,14 @@ def get( ) -class AsyncGroups(AsyncAPIResource): +class AsyncGroupsResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncGroupsWithRawResponse: - return AsyncGroupsWithRawResponse(self) + def with_raw_response(self) -> AsyncGroupsResourceWithRawResponse: + return AsyncGroupsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncGroupsWithStreamingResponse: - return AsyncGroupsWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncGroupsResourceWithStreamingResponse: + return AsyncGroupsResourceWithStreamingResponse(self) async def create( self, @@ -709,8 +709,8 @@ async def get( ) -class GroupsWithRawResponse: - def __init__(self, groups: Groups) -> None: +class GroupsResourceWithRawResponse: + def __init__(self, groups: GroupsResource) -> None: self._groups = groups self.create = to_raw_response_wrapper( @@ -730,8 +730,8 @@ def __init__(self, groups: Groups) -> None: ) -class AsyncGroupsWithRawResponse: - def __init__(self, groups: AsyncGroups) -> None: +class AsyncGroupsResourceWithRawResponse: + def __init__(self, groups: AsyncGroupsResource) -> None: self._groups = groups self.create = async_to_raw_response_wrapper( @@ -751,8 +751,8 @@ def __init__(self, groups: AsyncGroups) -> None: ) -class GroupsWithStreamingResponse: - def __init__(self, groups: Groups) -> None: +class GroupsResourceWithStreamingResponse: + def __init__(self, groups: GroupsResource) -> None: self._groups = groups self.create = to_streamed_response_wrapper( @@ -772,8 +772,8 @@ def __init__(self, groups: Groups) -> None: ) -class AsyncGroupsWithStreamingResponse: - def __init__(self, groups: AsyncGroups) -> None: +class AsyncGroupsResourceWithStreamingResponse: + def __init__(self, groups: AsyncGroupsResource) -> None: self._groups = groups self.create = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/zero_trust/access/keys.py b/src/cloudflare/resources/zero_trust/access/keys.py index b7021a5447f..dcb6a69a3d2 100644 --- a/src/cloudflare/resources/zero_trust/access/keys.py +++ b/src/cloudflare/resources/zero_trust/access/keys.py @@ -28,17 +28,17 @@ from ....types.zero_trust.access.key_rotate_response import KeyRotateResponse from ....types.zero_trust.access.key_update_response import KeyUpdateResponse -__all__ = ["Keys", "AsyncKeys"] +__all__ = ["KeysResource", "AsyncKeysResource"] -class Keys(SyncAPIResource): +class KeysResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> KeysWithRawResponse: - return KeysWithRawResponse(self) + def with_raw_response(self) -> KeysResourceWithRawResponse: + return KeysResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> KeysWithStreamingResponse: - return KeysWithStreamingResponse(self) + def with_streaming_response(self) -> KeysResourceWithStreamingResponse: + return KeysResourceWithStreamingResponse(self) def update( self, @@ -179,14 +179,14 @@ def rotate( ) -class AsyncKeys(AsyncAPIResource): +class AsyncKeysResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncKeysWithRawResponse: - return AsyncKeysWithRawResponse(self) + def with_raw_response(self) -> AsyncKeysResourceWithRawResponse: + return AsyncKeysResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncKeysWithStreamingResponse: - return AsyncKeysWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncKeysResourceWithStreamingResponse: + return AsyncKeysResourceWithStreamingResponse(self) async def update( self, @@ -327,8 +327,8 @@ async def rotate( ) -class KeysWithRawResponse: - def __init__(self, keys: Keys) -> None: +class KeysResourceWithRawResponse: + def __init__(self, keys: KeysResource) -> None: self._keys = keys self.update = to_raw_response_wrapper( @@ -342,8 +342,8 @@ def __init__(self, keys: Keys) -> None: ) -class AsyncKeysWithRawResponse: - def __init__(self, keys: AsyncKeys) -> None: +class AsyncKeysResourceWithRawResponse: + def __init__(self, keys: AsyncKeysResource) -> None: self._keys = keys self.update = async_to_raw_response_wrapper( @@ -357,8 +357,8 @@ def __init__(self, keys: AsyncKeys) -> None: ) -class KeysWithStreamingResponse: - def __init__(self, keys: Keys) -> None: +class KeysResourceWithStreamingResponse: + def __init__(self, keys: KeysResource) -> None: self._keys = keys self.update = to_streamed_response_wrapper( @@ -372,8 +372,8 @@ def __init__(self, keys: Keys) -> None: ) -class AsyncKeysWithStreamingResponse: - def __init__(self, keys: AsyncKeys) -> None: +class AsyncKeysResourceWithStreamingResponse: + def __init__(self, keys: AsyncKeysResource) -> None: self._keys = keys self.update = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/zero_trust/access/logs/__init__.py b/src/cloudflare/resources/zero_trust/access/logs/__init__.py index 3c42da38e00..7479c1fbef8 100644 --- a/src/cloudflare/resources/zero_trust/access/logs/__init__.py +++ b/src/cloudflare/resources/zero_trust/access/logs/__init__.py @@ -1,33 +1,33 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from .logs import ( - Logs, - AsyncLogs, - LogsWithRawResponse, - AsyncLogsWithRawResponse, - LogsWithStreamingResponse, - AsyncLogsWithStreamingResponse, + LogsResource, + AsyncLogsResource, + LogsResourceWithRawResponse, + AsyncLogsResourceWithRawResponse, + LogsResourceWithStreamingResponse, + AsyncLogsResourceWithStreamingResponse, ) from .access_requests import ( - AccessRequests, - AsyncAccessRequests, - AccessRequestsWithRawResponse, - AsyncAccessRequestsWithRawResponse, - AccessRequestsWithStreamingResponse, - AsyncAccessRequestsWithStreamingResponse, + AccessRequestsResource, + AsyncAccessRequestsResource, + AccessRequestsResourceWithRawResponse, + AsyncAccessRequestsResourceWithRawResponse, + AccessRequestsResourceWithStreamingResponse, + AsyncAccessRequestsResourceWithStreamingResponse, ) __all__ = [ - "AccessRequests", - "AsyncAccessRequests", - "AccessRequestsWithRawResponse", - "AsyncAccessRequestsWithRawResponse", - "AccessRequestsWithStreamingResponse", - "AsyncAccessRequestsWithStreamingResponse", - "Logs", - "AsyncLogs", - "LogsWithRawResponse", - "AsyncLogsWithRawResponse", - "LogsWithStreamingResponse", - "AsyncLogsWithStreamingResponse", + "AccessRequestsResource", + "AsyncAccessRequestsResource", + "AccessRequestsResourceWithRawResponse", + "AsyncAccessRequestsResourceWithRawResponse", + "AccessRequestsResourceWithStreamingResponse", + "AsyncAccessRequestsResourceWithStreamingResponse", + "LogsResource", + "AsyncLogsResource", + "LogsResourceWithRawResponse", + "AsyncLogsResourceWithRawResponse", + "LogsResourceWithStreamingResponse", + "AsyncLogsResourceWithStreamingResponse", ] diff --git a/src/cloudflare/resources/zero_trust/access/logs/access_requests.py b/src/cloudflare/resources/zero_trust/access/logs/access_requests.py index 9acf391b4c4..8425be9c392 100644 --- a/src/cloudflare/resources/zero_trust/access/logs/access_requests.py +++ b/src/cloudflare/resources/zero_trust/access/logs/access_requests.py @@ -21,17 +21,17 @@ ) from .....types.zero_trust.access.logs.access_request_list_response import AccessRequestListResponse -__all__ = ["AccessRequests", "AsyncAccessRequests"] +__all__ = ["AccessRequestsResource", "AsyncAccessRequestsResource"] -class AccessRequests(SyncAPIResource): +class AccessRequestsResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> AccessRequestsWithRawResponse: - return AccessRequestsWithRawResponse(self) + def with_raw_response(self) -> AccessRequestsResourceWithRawResponse: + return AccessRequestsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AccessRequestsWithStreamingResponse: - return AccessRequestsWithStreamingResponse(self) + def with_streaming_response(self) -> AccessRequestsResourceWithStreamingResponse: + return AccessRequestsResourceWithStreamingResponse(self) def list( self, @@ -73,14 +73,14 @@ def list( ) -class AsyncAccessRequests(AsyncAPIResource): +class AsyncAccessRequestsResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncAccessRequestsWithRawResponse: - return AsyncAccessRequestsWithRawResponse(self) + def with_raw_response(self) -> AsyncAccessRequestsResourceWithRawResponse: + return AsyncAccessRequestsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncAccessRequestsWithStreamingResponse: - return AsyncAccessRequestsWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncAccessRequestsResourceWithStreamingResponse: + return AsyncAccessRequestsResourceWithStreamingResponse(self) async def list( self, @@ -122,8 +122,8 @@ async def list( ) -class AccessRequestsWithRawResponse: - def __init__(self, access_requests: AccessRequests) -> None: +class AccessRequestsResourceWithRawResponse: + def __init__(self, access_requests: AccessRequestsResource) -> None: self._access_requests = access_requests self.list = to_raw_response_wrapper( @@ -131,8 +131,8 @@ def __init__(self, access_requests: AccessRequests) -> None: ) -class AsyncAccessRequestsWithRawResponse: - def __init__(self, access_requests: AsyncAccessRequests) -> None: +class AsyncAccessRequestsResourceWithRawResponse: + def __init__(self, access_requests: AsyncAccessRequestsResource) -> None: self._access_requests = access_requests self.list = async_to_raw_response_wrapper( @@ -140,8 +140,8 @@ def __init__(self, access_requests: AsyncAccessRequests) -> None: ) -class AccessRequestsWithStreamingResponse: - def __init__(self, access_requests: AccessRequests) -> None: +class AccessRequestsResourceWithStreamingResponse: + def __init__(self, access_requests: AccessRequestsResource) -> None: self._access_requests = access_requests self.list = to_streamed_response_wrapper( @@ -149,8 +149,8 @@ def __init__(self, access_requests: AccessRequests) -> None: ) -class AsyncAccessRequestsWithStreamingResponse: - def __init__(self, access_requests: AsyncAccessRequests) -> None: +class AsyncAccessRequestsResourceWithStreamingResponse: + def __init__(self, access_requests: AsyncAccessRequestsResource) -> None: self._access_requests = access_requests self.list = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/zero_trust/access/logs/logs.py b/src/cloudflare/resources/zero_trust/access/logs/logs.py index 1d4b4855661..39226d42917 100644 --- a/src/cloudflare/resources/zero_trust/access/logs/logs.py +++ b/src/cloudflare/resources/zero_trust/access/logs/logs.py @@ -5,76 +5,76 @@ from ....._compat import cached_property from ....._resource import SyncAPIResource, AsyncAPIResource from .access_requests import ( - AccessRequests, - AsyncAccessRequests, - AccessRequestsWithRawResponse, - AsyncAccessRequestsWithRawResponse, - AccessRequestsWithStreamingResponse, - AsyncAccessRequestsWithStreamingResponse, + AccessRequestsResource, + AsyncAccessRequestsResource, + AccessRequestsResourceWithRawResponse, + AsyncAccessRequestsResourceWithRawResponse, + AccessRequestsResourceWithStreamingResponse, + AsyncAccessRequestsResourceWithStreamingResponse, ) -__all__ = ["Logs", "AsyncLogs"] +__all__ = ["LogsResource", "AsyncLogsResource"] -class Logs(SyncAPIResource): +class LogsResource(SyncAPIResource): @cached_property - def access_requests(self) -> AccessRequests: - return AccessRequests(self._client) + def access_requests(self) -> AccessRequestsResource: + return AccessRequestsResource(self._client) @cached_property - def with_raw_response(self) -> LogsWithRawResponse: - return LogsWithRawResponse(self) + def with_raw_response(self) -> LogsResourceWithRawResponse: + return LogsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> LogsWithStreamingResponse: - return LogsWithStreamingResponse(self) + def with_streaming_response(self) -> LogsResourceWithStreamingResponse: + return LogsResourceWithStreamingResponse(self) -class AsyncLogs(AsyncAPIResource): +class AsyncLogsResource(AsyncAPIResource): @cached_property - def access_requests(self) -> AsyncAccessRequests: - return AsyncAccessRequests(self._client) + def access_requests(self) -> AsyncAccessRequestsResource: + return AsyncAccessRequestsResource(self._client) @cached_property - def with_raw_response(self) -> AsyncLogsWithRawResponse: - return AsyncLogsWithRawResponse(self) + def with_raw_response(self) -> AsyncLogsResourceWithRawResponse: + return AsyncLogsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncLogsWithStreamingResponse: - return AsyncLogsWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncLogsResourceWithStreamingResponse: + return AsyncLogsResourceWithStreamingResponse(self) -class LogsWithRawResponse: - def __init__(self, logs: Logs) -> None: +class LogsResourceWithRawResponse: + def __init__(self, logs: LogsResource) -> None: self._logs = logs @cached_property - def access_requests(self) -> AccessRequestsWithRawResponse: - return AccessRequestsWithRawResponse(self._logs.access_requests) + def access_requests(self) -> AccessRequestsResourceWithRawResponse: + return AccessRequestsResourceWithRawResponse(self._logs.access_requests) -class AsyncLogsWithRawResponse: - def __init__(self, logs: AsyncLogs) -> None: +class AsyncLogsResourceWithRawResponse: + def __init__(self, logs: AsyncLogsResource) -> None: self._logs = logs @cached_property - def access_requests(self) -> AsyncAccessRequestsWithRawResponse: - return AsyncAccessRequestsWithRawResponse(self._logs.access_requests) + def access_requests(self) -> AsyncAccessRequestsResourceWithRawResponse: + return AsyncAccessRequestsResourceWithRawResponse(self._logs.access_requests) -class LogsWithStreamingResponse: - def __init__(self, logs: Logs) -> None: +class LogsResourceWithStreamingResponse: + def __init__(self, logs: LogsResource) -> None: self._logs = logs @cached_property - def access_requests(self) -> AccessRequestsWithStreamingResponse: - return AccessRequestsWithStreamingResponse(self._logs.access_requests) + def access_requests(self) -> AccessRequestsResourceWithStreamingResponse: + return AccessRequestsResourceWithStreamingResponse(self._logs.access_requests) -class AsyncLogsWithStreamingResponse: - def __init__(self, logs: AsyncLogs) -> None: +class AsyncLogsResourceWithStreamingResponse: + def __init__(self, logs: AsyncLogsResource) -> None: self._logs = logs @cached_property - def access_requests(self) -> AsyncAccessRequestsWithStreamingResponse: - return AsyncAccessRequestsWithStreamingResponse(self._logs.access_requests) + def access_requests(self) -> AsyncAccessRequestsResourceWithStreamingResponse: + return AsyncAccessRequestsResourceWithStreamingResponse(self._logs.access_requests) diff --git a/src/cloudflare/resources/zero_trust/access/service_tokens.py b/src/cloudflare/resources/zero_trust/access/service_tokens.py index ce562d6ca2a..716761647d3 100644 --- a/src/cloudflare/resources/zero_trust/access/service_tokens.py +++ b/src/cloudflare/resources/zero_trust/access/service_tokens.py @@ -30,17 +30,17 @@ from ....types.zero_trust.access.service_token_create_response import ServiceTokenCreateResponse from ....types.zero_trust.access.service_token_rotate_response import ServiceTokenRotateResponse -__all__ = ["ServiceTokens", "AsyncServiceTokens"] +__all__ = ["ServiceTokensResource", "AsyncServiceTokensResource"] -class ServiceTokens(SyncAPIResource): +class ServiceTokensResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> ServiceTokensWithRawResponse: - return ServiceTokensWithRawResponse(self) + def with_raw_response(self) -> ServiceTokensResourceWithRawResponse: + return ServiceTokensResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> ServiceTokensWithStreamingResponse: - return ServiceTokensWithStreamingResponse(self) + def with_streaming_response(self) -> ServiceTokensResourceWithStreamingResponse: + return ServiceTokensResourceWithStreamingResponse(self) def create( self, @@ -379,14 +379,14 @@ def rotate( ) -class AsyncServiceTokens(AsyncAPIResource): +class AsyncServiceTokensResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncServiceTokensWithRawResponse: - return AsyncServiceTokensWithRawResponse(self) + def with_raw_response(self) -> AsyncServiceTokensResourceWithRawResponse: + return AsyncServiceTokensResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncServiceTokensWithStreamingResponse: - return AsyncServiceTokensWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncServiceTokensResourceWithStreamingResponse: + return AsyncServiceTokensResourceWithStreamingResponse(self) async def create( self, @@ -725,8 +725,8 @@ async def rotate( ) -class ServiceTokensWithRawResponse: - def __init__(self, service_tokens: ServiceTokens) -> None: +class ServiceTokensResourceWithRawResponse: + def __init__(self, service_tokens: ServiceTokensResource) -> None: self._service_tokens = service_tokens self.create = to_raw_response_wrapper( @@ -749,8 +749,8 @@ def __init__(self, service_tokens: ServiceTokens) -> None: ) -class AsyncServiceTokensWithRawResponse: - def __init__(self, service_tokens: AsyncServiceTokens) -> None: +class AsyncServiceTokensResourceWithRawResponse: + def __init__(self, service_tokens: AsyncServiceTokensResource) -> None: self._service_tokens = service_tokens self.create = async_to_raw_response_wrapper( @@ -773,8 +773,8 @@ def __init__(self, service_tokens: AsyncServiceTokens) -> None: ) -class ServiceTokensWithStreamingResponse: - def __init__(self, service_tokens: ServiceTokens) -> None: +class ServiceTokensResourceWithStreamingResponse: + def __init__(self, service_tokens: ServiceTokensResource) -> None: self._service_tokens = service_tokens self.create = to_streamed_response_wrapper( @@ -797,8 +797,8 @@ def __init__(self, service_tokens: ServiceTokens) -> None: ) -class AsyncServiceTokensWithStreamingResponse: - def __init__(self, service_tokens: AsyncServiceTokens) -> None: +class AsyncServiceTokensResourceWithStreamingResponse: + def __init__(self, service_tokens: AsyncServiceTokensResource) -> None: self._service_tokens = service_tokens self.create = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/zero_trust/access/tags.py b/src/cloudflare/resources/zero_trust/access/tags.py index 73fa8dd1036..d7ba373faf7 100644 --- a/src/cloudflare/resources/zero_trust/access/tags.py +++ b/src/cloudflare/resources/zero_trust/access/tags.py @@ -29,17 +29,17 @@ from ....types.zero_trust.access.tag import Tag from ....types.zero_trust.access.tag_delete_response import TagDeleteResponse -__all__ = ["Tags", "AsyncTags"] +__all__ = ["TagsResource", "AsyncTagsResource"] -class Tags(SyncAPIResource): +class TagsResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> TagsWithRawResponse: - return TagsWithRawResponse(self) + def with_raw_response(self) -> TagsResourceWithRawResponse: + return TagsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> TagsWithStreamingResponse: - return TagsWithStreamingResponse(self) + def with_streaming_response(self) -> TagsResourceWithStreamingResponse: + return TagsResourceWithStreamingResponse(self) def create( self, @@ -257,14 +257,14 @@ def get( ) -class AsyncTags(AsyncAPIResource): +class AsyncTagsResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncTagsWithRawResponse: - return AsyncTagsWithRawResponse(self) + def with_raw_response(self) -> AsyncTagsResourceWithRawResponse: + return AsyncTagsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncTagsWithStreamingResponse: - return AsyncTagsWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncTagsResourceWithStreamingResponse: + return AsyncTagsResourceWithStreamingResponse(self) async def create( self, @@ -482,8 +482,8 @@ async def get( ) -class TagsWithRawResponse: - def __init__(self, tags: Tags) -> None: +class TagsResourceWithRawResponse: + def __init__(self, tags: TagsResource) -> None: self._tags = tags self.create = to_raw_response_wrapper( @@ -503,8 +503,8 @@ def __init__(self, tags: Tags) -> None: ) -class AsyncTagsWithRawResponse: - def __init__(self, tags: AsyncTags) -> None: +class AsyncTagsResourceWithRawResponse: + def __init__(self, tags: AsyncTagsResource) -> None: self._tags = tags self.create = async_to_raw_response_wrapper( @@ -524,8 +524,8 @@ def __init__(self, tags: AsyncTags) -> None: ) -class TagsWithStreamingResponse: - def __init__(self, tags: Tags) -> None: +class TagsResourceWithStreamingResponse: + def __init__(self, tags: TagsResource) -> None: self._tags = tags self.create = to_streamed_response_wrapper( @@ -545,8 +545,8 @@ def __init__(self, tags: Tags) -> None: ) -class AsyncTagsWithStreamingResponse: - def __init__(self, tags: AsyncTags) -> None: +class AsyncTagsResourceWithStreamingResponse: + def __init__(self, tags: AsyncTagsResource) -> None: self._tags = tags self.create = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/zero_trust/access/users/__init__.py b/src/cloudflare/resources/zero_trust/access/users/__init__.py index 3ffb7d57285..c5766c1427a 100644 --- a/src/cloudflare/resources/zero_trust/access/users/__init__.py +++ b/src/cloudflare/resources/zero_trust/access/users/__init__.py @@ -1,61 +1,61 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from .users import ( - Users, - AsyncUsers, - UsersWithRawResponse, - AsyncUsersWithRawResponse, - UsersWithStreamingResponse, - AsyncUsersWithStreamingResponse, + UsersResource, + AsyncUsersResource, + UsersResourceWithRawResponse, + AsyncUsersResourceWithRawResponse, + UsersResourceWithStreamingResponse, + AsyncUsersResourceWithStreamingResponse, ) from .failed_logins import ( - FailedLogins, - AsyncFailedLogins, - FailedLoginsWithRawResponse, - AsyncFailedLoginsWithRawResponse, - FailedLoginsWithStreamingResponse, - AsyncFailedLoginsWithStreamingResponse, + FailedLoginsResource, + AsyncFailedLoginsResource, + FailedLoginsResourceWithRawResponse, + AsyncFailedLoginsResourceWithRawResponse, + FailedLoginsResourceWithStreamingResponse, + AsyncFailedLoginsResourceWithStreamingResponse, ) from .active_sessions import ( - ActiveSessions, - AsyncActiveSessions, - ActiveSessionsWithRawResponse, - AsyncActiveSessionsWithRawResponse, - ActiveSessionsWithStreamingResponse, - AsyncActiveSessionsWithStreamingResponse, + ActiveSessionsResource, + AsyncActiveSessionsResource, + ActiveSessionsResourceWithRawResponse, + AsyncActiveSessionsResourceWithRawResponse, + ActiveSessionsResourceWithStreamingResponse, + AsyncActiveSessionsResourceWithStreamingResponse, ) from .last_seen_identity import ( - LastSeenIdentity, - AsyncLastSeenIdentity, - LastSeenIdentityWithRawResponse, - AsyncLastSeenIdentityWithRawResponse, - LastSeenIdentityWithStreamingResponse, - AsyncLastSeenIdentityWithStreamingResponse, + LastSeenIdentityResource, + AsyncLastSeenIdentityResource, + LastSeenIdentityResourceWithRawResponse, + AsyncLastSeenIdentityResourceWithRawResponse, + LastSeenIdentityResourceWithStreamingResponse, + AsyncLastSeenIdentityResourceWithStreamingResponse, ) __all__ = [ - "ActiveSessions", - "AsyncActiveSessions", - "ActiveSessionsWithRawResponse", - "AsyncActiveSessionsWithRawResponse", - "ActiveSessionsWithStreamingResponse", - "AsyncActiveSessionsWithStreamingResponse", - "LastSeenIdentity", - "AsyncLastSeenIdentity", - "LastSeenIdentityWithRawResponse", - "AsyncLastSeenIdentityWithRawResponse", - "LastSeenIdentityWithStreamingResponse", - "AsyncLastSeenIdentityWithStreamingResponse", - "FailedLogins", - "AsyncFailedLogins", - "FailedLoginsWithRawResponse", - "AsyncFailedLoginsWithRawResponse", - "FailedLoginsWithStreamingResponse", - "AsyncFailedLoginsWithStreamingResponse", - "Users", - "AsyncUsers", - "UsersWithRawResponse", - "AsyncUsersWithRawResponse", - "UsersWithStreamingResponse", - "AsyncUsersWithStreamingResponse", + "ActiveSessionsResource", + "AsyncActiveSessionsResource", + "ActiveSessionsResourceWithRawResponse", + "AsyncActiveSessionsResourceWithRawResponse", + "ActiveSessionsResourceWithStreamingResponse", + "AsyncActiveSessionsResourceWithStreamingResponse", + "LastSeenIdentityResource", + "AsyncLastSeenIdentityResource", + "LastSeenIdentityResourceWithRawResponse", + "AsyncLastSeenIdentityResourceWithRawResponse", + "LastSeenIdentityResourceWithStreamingResponse", + "AsyncLastSeenIdentityResourceWithStreamingResponse", + "FailedLoginsResource", + "AsyncFailedLoginsResource", + "FailedLoginsResourceWithRawResponse", + "AsyncFailedLoginsResourceWithRawResponse", + "FailedLoginsResourceWithStreamingResponse", + "AsyncFailedLoginsResourceWithStreamingResponse", + "UsersResource", + "AsyncUsersResource", + "UsersResourceWithRawResponse", + "AsyncUsersResourceWithRawResponse", + "UsersResourceWithStreamingResponse", + "AsyncUsersResourceWithStreamingResponse", ] diff --git a/src/cloudflare/resources/zero_trust/access/users/active_sessions.py b/src/cloudflare/resources/zero_trust/access/users/active_sessions.py index e6a6100c8df..0a39ccddb3d 100644 --- a/src/cloudflare/resources/zero_trust/access/users/active_sessions.py +++ b/src/cloudflare/resources/zero_trust/access/users/active_sessions.py @@ -24,17 +24,17 @@ from .....types.zero_trust.access.users.active_session_get_response import ActiveSessionGetResponse from .....types.zero_trust.access.users.active_session_list_response import ActiveSessionListResponse -__all__ = ["ActiveSessions", "AsyncActiveSessions"] +__all__ = ["ActiveSessionsResource", "AsyncActiveSessionsResource"] -class ActiveSessions(SyncAPIResource): +class ActiveSessionsResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> ActiveSessionsWithRawResponse: - return ActiveSessionsWithRawResponse(self) + def with_raw_response(self) -> ActiveSessionsResourceWithRawResponse: + return ActiveSessionsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> ActiveSessionsWithStreamingResponse: - return ActiveSessionsWithStreamingResponse(self) + def with_streaming_response(self) -> ActiveSessionsResourceWithStreamingResponse: + return ActiveSessionsResourceWithStreamingResponse(self) def list( self, @@ -125,14 +125,14 @@ def get( ) -class AsyncActiveSessions(AsyncAPIResource): +class AsyncActiveSessionsResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncActiveSessionsWithRawResponse: - return AsyncActiveSessionsWithRawResponse(self) + def with_raw_response(self) -> AsyncActiveSessionsResourceWithRawResponse: + return AsyncActiveSessionsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncActiveSessionsWithStreamingResponse: - return AsyncActiveSessionsWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncActiveSessionsResourceWithStreamingResponse: + return AsyncActiveSessionsResourceWithStreamingResponse(self) def list( self, @@ -223,8 +223,8 @@ async def get( ) -class ActiveSessionsWithRawResponse: - def __init__(self, active_sessions: ActiveSessions) -> None: +class ActiveSessionsResourceWithRawResponse: + def __init__(self, active_sessions: ActiveSessionsResource) -> None: self._active_sessions = active_sessions self.list = to_raw_response_wrapper( @@ -235,8 +235,8 @@ def __init__(self, active_sessions: ActiveSessions) -> None: ) -class AsyncActiveSessionsWithRawResponse: - def __init__(self, active_sessions: AsyncActiveSessions) -> None: +class AsyncActiveSessionsResourceWithRawResponse: + def __init__(self, active_sessions: AsyncActiveSessionsResource) -> None: self._active_sessions = active_sessions self.list = async_to_raw_response_wrapper( @@ -247,8 +247,8 @@ def __init__(self, active_sessions: AsyncActiveSessions) -> None: ) -class ActiveSessionsWithStreamingResponse: - def __init__(self, active_sessions: ActiveSessions) -> None: +class ActiveSessionsResourceWithStreamingResponse: + def __init__(self, active_sessions: ActiveSessionsResource) -> None: self._active_sessions = active_sessions self.list = to_streamed_response_wrapper( @@ -259,8 +259,8 @@ def __init__(self, active_sessions: ActiveSessions) -> None: ) -class AsyncActiveSessionsWithStreamingResponse: - def __init__(self, active_sessions: AsyncActiveSessions) -> None: +class AsyncActiveSessionsResourceWithStreamingResponse: + def __init__(self, active_sessions: AsyncActiveSessionsResource) -> None: self._active_sessions = active_sessions self.list = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/zero_trust/access/users/failed_logins.py b/src/cloudflare/resources/zero_trust/access/users/failed_logins.py index 88d5ad5f29c..6b2b7d19f57 100644 --- a/src/cloudflare/resources/zero_trust/access/users/failed_logins.py +++ b/src/cloudflare/resources/zero_trust/access/users/failed_logins.py @@ -20,17 +20,17 @@ ) from .....types.zero_trust.access.users.failed_login_list_response import FailedLoginListResponse -__all__ = ["FailedLogins", "AsyncFailedLogins"] +__all__ = ["FailedLoginsResource", "AsyncFailedLoginsResource"] -class FailedLogins(SyncAPIResource): +class FailedLoginsResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> FailedLoginsWithRawResponse: - return FailedLoginsWithRawResponse(self) + def with_raw_response(self) -> FailedLoginsResourceWithRawResponse: + return FailedLoginsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> FailedLoginsWithStreamingResponse: - return FailedLoginsWithStreamingResponse(self) + def with_streaming_response(self) -> FailedLoginsResourceWithStreamingResponse: + return FailedLoginsResourceWithStreamingResponse(self) def list( self, @@ -74,14 +74,14 @@ def list( ) -class AsyncFailedLogins(AsyncAPIResource): +class AsyncFailedLoginsResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncFailedLoginsWithRawResponse: - return AsyncFailedLoginsWithRawResponse(self) + def with_raw_response(self) -> AsyncFailedLoginsResourceWithRawResponse: + return AsyncFailedLoginsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncFailedLoginsWithStreamingResponse: - return AsyncFailedLoginsWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncFailedLoginsResourceWithStreamingResponse: + return AsyncFailedLoginsResourceWithStreamingResponse(self) def list( self, @@ -125,8 +125,8 @@ def list( ) -class FailedLoginsWithRawResponse: - def __init__(self, failed_logins: FailedLogins) -> None: +class FailedLoginsResourceWithRawResponse: + def __init__(self, failed_logins: FailedLoginsResource) -> None: self._failed_logins = failed_logins self.list = to_raw_response_wrapper( @@ -134,8 +134,8 @@ def __init__(self, failed_logins: FailedLogins) -> None: ) -class AsyncFailedLoginsWithRawResponse: - def __init__(self, failed_logins: AsyncFailedLogins) -> None: +class AsyncFailedLoginsResourceWithRawResponse: + def __init__(self, failed_logins: AsyncFailedLoginsResource) -> None: self._failed_logins = failed_logins self.list = async_to_raw_response_wrapper( @@ -143,8 +143,8 @@ def __init__(self, failed_logins: AsyncFailedLogins) -> None: ) -class FailedLoginsWithStreamingResponse: - def __init__(self, failed_logins: FailedLogins) -> None: +class FailedLoginsResourceWithStreamingResponse: + def __init__(self, failed_logins: FailedLoginsResource) -> None: self._failed_logins = failed_logins self.list = to_streamed_response_wrapper( @@ -152,8 +152,8 @@ def __init__(self, failed_logins: FailedLogins) -> None: ) -class AsyncFailedLoginsWithStreamingResponse: - def __init__(self, failed_logins: AsyncFailedLogins) -> None: +class AsyncFailedLoginsResourceWithStreamingResponse: + def __init__(self, failed_logins: AsyncFailedLoginsResource) -> None: self._failed_logins = failed_logins self.list = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/zero_trust/access/users/last_seen_identity.py b/src/cloudflare/resources/zero_trust/access/users/last_seen_identity.py index ca3f22a1623..4e913e2720c 100644 --- a/src/cloudflare/resources/zero_trust/access/users/last_seen_identity.py +++ b/src/cloudflare/resources/zero_trust/access/users/last_seen_identity.py @@ -21,17 +21,17 @@ ) from .....types.zero_trust.access.users.identity import Identity -__all__ = ["LastSeenIdentity", "AsyncLastSeenIdentity"] +__all__ = ["LastSeenIdentityResource", "AsyncLastSeenIdentityResource"] -class LastSeenIdentity(SyncAPIResource): +class LastSeenIdentityResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> LastSeenIdentityWithRawResponse: - return LastSeenIdentityWithRawResponse(self) + def with_raw_response(self) -> LastSeenIdentityResourceWithRawResponse: + return LastSeenIdentityResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> LastSeenIdentityWithStreamingResponse: - return LastSeenIdentityWithStreamingResponse(self) + def with_streaming_response(self) -> LastSeenIdentityResourceWithStreamingResponse: + return LastSeenIdentityResourceWithStreamingResponse(self) def get( self, @@ -78,14 +78,14 @@ def get( ) -class AsyncLastSeenIdentity(AsyncAPIResource): +class AsyncLastSeenIdentityResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncLastSeenIdentityWithRawResponse: - return AsyncLastSeenIdentityWithRawResponse(self) + def with_raw_response(self) -> AsyncLastSeenIdentityResourceWithRawResponse: + return AsyncLastSeenIdentityResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncLastSeenIdentityWithStreamingResponse: - return AsyncLastSeenIdentityWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncLastSeenIdentityResourceWithStreamingResponse: + return AsyncLastSeenIdentityResourceWithStreamingResponse(self) async def get( self, @@ -132,8 +132,8 @@ async def get( ) -class LastSeenIdentityWithRawResponse: - def __init__(self, last_seen_identity: LastSeenIdentity) -> None: +class LastSeenIdentityResourceWithRawResponse: + def __init__(self, last_seen_identity: LastSeenIdentityResource) -> None: self._last_seen_identity = last_seen_identity self.get = to_raw_response_wrapper( @@ -141,8 +141,8 @@ def __init__(self, last_seen_identity: LastSeenIdentity) -> None: ) -class AsyncLastSeenIdentityWithRawResponse: - def __init__(self, last_seen_identity: AsyncLastSeenIdentity) -> None: +class AsyncLastSeenIdentityResourceWithRawResponse: + def __init__(self, last_seen_identity: AsyncLastSeenIdentityResource) -> None: self._last_seen_identity = last_seen_identity self.get = async_to_raw_response_wrapper( @@ -150,8 +150,8 @@ def __init__(self, last_seen_identity: AsyncLastSeenIdentity) -> None: ) -class LastSeenIdentityWithStreamingResponse: - def __init__(self, last_seen_identity: LastSeenIdentity) -> None: +class LastSeenIdentityResourceWithStreamingResponse: + def __init__(self, last_seen_identity: LastSeenIdentityResource) -> None: self._last_seen_identity = last_seen_identity self.get = to_streamed_response_wrapper( @@ -159,8 +159,8 @@ def __init__(self, last_seen_identity: LastSeenIdentity) -> None: ) -class AsyncLastSeenIdentityWithStreamingResponse: - def __init__(self, last_seen_identity: AsyncLastSeenIdentity) -> None: +class AsyncLastSeenIdentityResourceWithStreamingResponse: + def __init__(self, last_seen_identity: AsyncLastSeenIdentityResource) -> None: self._last_seen_identity = last_seen_identity self.get = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/zero_trust/access/users/users.py b/src/cloudflare/resources/zero_trust/access/users/users.py index 7660ca5d955..97bce1fa075 100644 --- a/src/cloudflare/resources/zero_trust/access/users/users.py +++ b/src/cloudflare/resources/zero_trust/access/users/users.py @@ -14,59 +14,59 @@ async_to_streamed_response_wrapper, ) from .failed_logins import ( - FailedLogins, - AsyncFailedLogins, - FailedLoginsWithRawResponse, - AsyncFailedLoginsWithRawResponse, - FailedLoginsWithStreamingResponse, - AsyncFailedLoginsWithStreamingResponse, + FailedLoginsResource, + AsyncFailedLoginsResource, + FailedLoginsResourceWithRawResponse, + AsyncFailedLoginsResourceWithRawResponse, + FailedLoginsResourceWithStreamingResponse, + AsyncFailedLoginsResourceWithStreamingResponse, ) from .....pagination import SyncSinglePage, AsyncSinglePage from .active_sessions import ( - ActiveSessions, - AsyncActiveSessions, - ActiveSessionsWithRawResponse, - AsyncActiveSessionsWithRawResponse, - ActiveSessionsWithStreamingResponse, - AsyncActiveSessionsWithStreamingResponse, + ActiveSessionsResource, + AsyncActiveSessionsResource, + ActiveSessionsResourceWithRawResponse, + AsyncActiveSessionsResourceWithRawResponse, + ActiveSessionsResourceWithStreamingResponse, + AsyncActiveSessionsResourceWithStreamingResponse, ) from ....._base_client import ( AsyncPaginator, make_request_options, ) from .last_seen_identity import ( - LastSeenIdentity, - AsyncLastSeenIdentity, - LastSeenIdentityWithRawResponse, - AsyncLastSeenIdentityWithRawResponse, - LastSeenIdentityWithStreamingResponse, - AsyncLastSeenIdentityWithStreamingResponse, + LastSeenIdentityResource, + AsyncLastSeenIdentityResource, + LastSeenIdentityResourceWithRawResponse, + AsyncLastSeenIdentityResourceWithRawResponse, + LastSeenIdentityResourceWithStreamingResponse, + AsyncLastSeenIdentityResourceWithStreamingResponse, ) from .....types.zero_trust.access.access_user import AccessUser -__all__ = ["Users", "AsyncUsers"] +__all__ = ["UsersResource", "AsyncUsersResource"] -class Users(SyncAPIResource): +class UsersResource(SyncAPIResource): @cached_property - def active_sessions(self) -> ActiveSessions: - return ActiveSessions(self._client) + def active_sessions(self) -> ActiveSessionsResource: + return ActiveSessionsResource(self._client) @cached_property - def last_seen_identity(self) -> LastSeenIdentity: - return LastSeenIdentity(self._client) + def last_seen_identity(self) -> LastSeenIdentityResource: + return LastSeenIdentityResource(self._client) @cached_property - def failed_logins(self) -> FailedLogins: - return FailedLogins(self._client) + def failed_logins(self) -> FailedLoginsResource: + return FailedLoginsResource(self._client) @cached_property - def with_raw_response(self) -> UsersWithRawResponse: - return UsersWithRawResponse(self) + def with_raw_response(self) -> UsersResourceWithRawResponse: + return UsersResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> UsersWithStreamingResponse: - return UsersWithStreamingResponse(self) + def with_streaming_response(self) -> UsersResourceWithStreamingResponse: + return UsersResourceWithStreamingResponse(self) def list( self, @@ -105,26 +105,26 @@ def list( ) -class AsyncUsers(AsyncAPIResource): +class AsyncUsersResource(AsyncAPIResource): @cached_property - def active_sessions(self) -> AsyncActiveSessions: - return AsyncActiveSessions(self._client) + def active_sessions(self) -> AsyncActiveSessionsResource: + return AsyncActiveSessionsResource(self._client) @cached_property - def last_seen_identity(self) -> AsyncLastSeenIdentity: - return AsyncLastSeenIdentity(self._client) + def last_seen_identity(self) -> AsyncLastSeenIdentityResource: + return AsyncLastSeenIdentityResource(self._client) @cached_property - def failed_logins(self) -> AsyncFailedLogins: - return AsyncFailedLogins(self._client) + def failed_logins(self) -> AsyncFailedLoginsResource: + return AsyncFailedLoginsResource(self._client) @cached_property - def with_raw_response(self) -> AsyncUsersWithRawResponse: - return AsyncUsersWithRawResponse(self) + def with_raw_response(self) -> AsyncUsersResourceWithRawResponse: + return AsyncUsersResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncUsersWithStreamingResponse: - return AsyncUsersWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncUsersResourceWithStreamingResponse: + return AsyncUsersResourceWithStreamingResponse(self) def list( self, @@ -163,8 +163,8 @@ def list( ) -class UsersWithRawResponse: - def __init__(self, users: Users) -> None: +class UsersResourceWithRawResponse: + def __init__(self, users: UsersResource) -> None: self._users = users self.list = to_raw_response_wrapper( @@ -172,20 +172,20 @@ def __init__(self, users: Users) -> None: ) @cached_property - def active_sessions(self) -> ActiveSessionsWithRawResponse: - return ActiveSessionsWithRawResponse(self._users.active_sessions) + def active_sessions(self) -> ActiveSessionsResourceWithRawResponse: + return ActiveSessionsResourceWithRawResponse(self._users.active_sessions) @cached_property - def last_seen_identity(self) -> LastSeenIdentityWithRawResponse: - return LastSeenIdentityWithRawResponse(self._users.last_seen_identity) + def last_seen_identity(self) -> LastSeenIdentityResourceWithRawResponse: + return LastSeenIdentityResourceWithRawResponse(self._users.last_seen_identity) @cached_property - def failed_logins(self) -> FailedLoginsWithRawResponse: - return FailedLoginsWithRawResponse(self._users.failed_logins) + def failed_logins(self) -> FailedLoginsResourceWithRawResponse: + return FailedLoginsResourceWithRawResponse(self._users.failed_logins) -class AsyncUsersWithRawResponse: - def __init__(self, users: AsyncUsers) -> None: +class AsyncUsersResourceWithRawResponse: + def __init__(self, users: AsyncUsersResource) -> None: self._users = users self.list = async_to_raw_response_wrapper( @@ -193,20 +193,20 @@ def __init__(self, users: AsyncUsers) -> None: ) @cached_property - def active_sessions(self) -> AsyncActiveSessionsWithRawResponse: - return AsyncActiveSessionsWithRawResponse(self._users.active_sessions) + def active_sessions(self) -> AsyncActiveSessionsResourceWithRawResponse: + return AsyncActiveSessionsResourceWithRawResponse(self._users.active_sessions) @cached_property - def last_seen_identity(self) -> AsyncLastSeenIdentityWithRawResponse: - return AsyncLastSeenIdentityWithRawResponse(self._users.last_seen_identity) + def last_seen_identity(self) -> AsyncLastSeenIdentityResourceWithRawResponse: + return AsyncLastSeenIdentityResourceWithRawResponse(self._users.last_seen_identity) @cached_property - def failed_logins(self) -> AsyncFailedLoginsWithRawResponse: - return AsyncFailedLoginsWithRawResponse(self._users.failed_logins) + def failed_logins(self) -> AsyncFailedLoginsResourceWithRawResponse: + return AsyncFailedLoginsResourceWithRawResponse(self._users.failed_logins) -class UsersWithStreamingResponse: - def __init__(self, users: Users) -> None: +class UsersResourceWithStreamingResponse: + def __init__(self, users: UsersResource) -> None: self._users = users self.list = to_streamed_response_wrapper( @@ -214,20 +214,20 @@ def __init__(self, users: Users) -> None: ) @cached_property - def active_sessions(self) -> ActiveSessionsWithStreamingResponse: - return ActiveSessionsWithStreamingResponse(self._users.active_sessions) + def active_sessions(self) -> ActiveSessionsResourceWithStreamingResponse: + return ActiveSessionsResourceWithStreamingResponse(self._users.active_sessions) @cached_property - def last_seen_identity(self) -> LastSeenIdentityWithStreamingResponse: - return LastSeenIdentityWithStreamingResponse(self._users.last_seen_identity) + def last_seen_identity(self) -> LastSeenIdentityResourceWithStreamingResponse: + return LastSeenIdentityResourceWithStreamingResponse(self._users.last_seen_identity) @cached_property - def failed_logins(self) -> FailedLoginsWithStreamingResponse: - return FailedLoginsWithStreamingResponse(self._users.failed_logins) + def failed_logins(self) -> FailedLoginsResourceWithStreamingResponse: + return FailedLoginsResourceWithStreamingResponse(self._users.failed_logins) -class AsyncUsersWithStreamingResponse: - def __init__(self, users: AsyncUsers) -> None: +class AsyncUsersResourceWithStreamingResponse: + def __init__(self, users: AsyncUsersResource) -> None: self._users = users self.list = async_to_streamed_response_wrapper( @@ -235,13 +235,13 @@ def __init__(self, users: AsyncUsers) -> None: ) @cached_property - def active_sessions(self) -> AsyncActiveSessionsWithStreamingResponse: - return AsyncActiveSessionsWithStreamingResponse(self._users.active_sessions) + def active_sessions(self) -> AsyncActiveSessionsResourceWithStreamingResponse: + return AsyncActiveSessionsResourceWithStreamingResponse(self._users.active_sessions) @cached_property - def last_seen_identity(self) -> AsyncLastSeenIdentityWithStreamingResponse: - return AsyncLastSeenIdentityWithStreamingResponse(self._users.last_seen_identity) + def last_seen_identity(self) -> AsyncLastSeenIdentityResourceWithStreamingResponse: + return AsyncLastSeenIdentityResourceWithStreamingResponse(self._users.last_seen_identity) @cached_property - def failed_logins(self) -> AsyncFailedLoginsWithStreamingResponse: - return AsyncFailedLoginsWithStreamingResponse(self._users.failed_logins) + def failed_logins(self) -> AsyncFailedLoginsResourceWithStreamingResponse: + return AsyncFailedLoginsResourceWithStreamingResponse(self._users.failed_logins) diff --git a/src/cloudflare/resources/zero_trust/connectivity_settings.py b/src/cloudflare/resources/zero_trust/connectivity_settings.py index c6ca9d42562..6514c8d16f6 100644 --- a/src/cloudflare/resources/zero_trust/connectivity_settings.py +++ b/src/cloudflare/resources/zero_trust/connectivity_settings.py @@ -27,17 +27,17 @@ from ...types.zero_trust.connectivity_setting_get_response import ConnectivitySettingGetResponse from ...types.zero_trust.connectivity_setting_edit_response import ConnectivitySettingEditResponse -__all__ = ["ConnectivitySettings", "AsyncConnectivitySettings"] +__all__ = ["ConnectivitySettingsResource", "AsyncConnectivitySettingsResource"] -class ConnectivitySettings(SyncAPIResource): +class ConnectivitySettingsResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> ConnectivitySettingsWithRawResponse: - return ConnectivitySettingsWithRawResponse(self) + def with_raw_response(self) -> ConnectivitySettingsResourceWithRawResponse: + return ConnectivitySettingsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> ConnectivitySettingsWithStreamingResponse: - return ConnectivitySettingsWithStreamingResponse(self) + def with_streaming_response(self) -> ConnectivitySettingsResourceWithStreamingResponse: + return ConnectivitySettingsResourceWithStreamingResponse(self) def edit( self, @@ -131,14 +131,14 @@ def get( ) -class AsyncConnectivitySettings(AsyncAPIResource): +class AsyncConnectivitySettingsResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncConnectivitySettingsWithRawResponse: - return AsyncConnectivitySettingsWithRawResponse(self) + def with_raw_response(self) -> AsyncConnectivitySettingsResourceWithRawResponse: + return AsyncConnectivitySettingsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncConnectivitySettingsWithStreamingResponse: - return AsyncConnectivitySettingsWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncConnectivitySettingsResourceWithStreamingResponse: + return AsyncConnectivitySettingsResourceWithStreamingResponse(self) async def edit( self, @@ -232,8 +232,8 @@ async def get( ) -class ConnectivitySettingsWithRawResponse: - def __init__(self, connectivity_settings: ConnectivitySettings) -> None: +class ConnectivitySettingsResourceWithRawResponse: + def __init__(self, connectivity_settings: ConnectivitySettingsResource) -> None: self._connectivity_settings = connectivity_settings self.edit = to_raw_response_wrapper( @@ -244,8 +244,8 @@ def __init__(self, connectivity_settings: ConnectivitySettings) -> None: ) -class AsyncConnectivitySettingsWithRawResponse: - def __init__(self, connectivity_settings: AsyncConnectivitySettings) -> None: +class AsyncConnectivitySettingsResourceWithRawResponse: + def __init__(self, connectivity_settings: AsyncConnectivitySettingsResource) -> None: self._connectivity_settings = connectivity_settings self.edit = async_to_raw_response_wrapper( @@ -256,8 +256,8 @@ def __init__(self, connectivity_settings: AsyncConnectivitySettings) -> None: ) -class ConnectivitySettingsWithStreamingResponse: - def __init__(self, connectivity_settings: ConnectivitySettings) -> None: +class ConnectivitySettingsResourceWithStreamingResponse: + def __init__(self, connectivity_settings: ConnectivitySettingsResource) -> None: self._connectivity_settings = connectivity_settings self.edit = to_streamed_response_wrapper( @@ -268,8 +268,8 @@ def __init__(self, connectivity_settings: ConnectivitySettings) -> None: ) -class AsyncConnectivitySettingsWithStreamingResponse: - def __init__(self, connectivity_settings: AsyncConnectivitySettings) -> None: +class AsyncConnectivitySettingsResourceWithStreamingResponse: + def __init__(self, connectivity_settings: AsyncConnectivitySettingsResource) -> None: self._connectivity_settings = connectivity_settings self.edit = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/zero_trust/devices/__init__.py b/src/cloudflare/resources/zero_trust/devices/__init__.py index 719cd4c0842..3002bba6155 100644 --- a/src/cloudflare/resources/zero_trust/devices/__init__.py +++ b/src/cloudflare/resources/zero_trust/devices/__init__.py @@ -1,131 +1,131 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from .revoke import ( - Revoke, - AsyncRevoke, - RevokeWithRawResponse, - AsyncRevokeWithRawResponse, - RevokeWithStreamingResponse, - AsyncRevokeWithStreamingResponse, + RevokeResource, + AsyncRevokeResource, + RevokeResourceWithRawResponse, + AsyncRevokeResourceWithRawResponse, + RevokeResourceWithStreamingResponse, + AsyncRevokeResourceWithStreamingResponse, ) from .devices import ( - Devices, - AsyncDevices, - DevicesWithRawResponse, - AsyncDevicesWithRawResponse, - DevicesWithStreamingResponse, - AsyncDevicesWithStreamingResponse, + DevicesResource, + AsyncDevicesResource, + DevicesResourceWithRawResponse, + AsyncDevicesResourceWithRawResponse, + DevicesResourceWithStreamingResponse, + AsyncDevicesResourceWithStreamingResponse, ) from .posture import ( - Posture, - AsyncPosture, - PostureWithRawResponse, - AsyncPostureWithRawResponse, - PostureWithStreamingResponse, - AsyncPostureWithStreamingResponse, + PostureResource, + AsyncPostureResource, + PostureResourceWithRawResponse, + AsyncPostureResourceWithRawResponse, + PostureResourceWithStreamingResponse, + AsyncPostureResourceWithStreamingResponse, ) from .networks import ( - Networks, - AsyncNetworks, - NetworksWithRawResponse, - AsyncNetworksWithRawResponse, - NetworksWithStreamingResponse, - AsyncNetworksWithStreamingResponse, + NetworksResource, + AsyncNetworksResource, + NetworksResourceWithRawResponse, + AsyncNetworksResourceWithRawResponse, + NetworksResourceWithStreamingResponse, + AsyncNetworksResourceWithStreamingResponse, ) from .policies import ( - Policies, - AsyncPolicies, - PoliciesWithRawResponse, - AsyncPoliciesWithRawResponse, - PoliciesWithStreamingResponse, - AsyncPoliciesWithStreamingResponse, + PoliciesResource, + AsyncPoliciesResource, + PoliciesResourceWithRawResponse, + AsyncPoliciesResourceWithRawResponse, + PoliciesResourceWithStreamingResponse, + AsyncPoliciesResourceWithStreamingResponse, ) from .settings import ( - Settings, - AsyncSettings, - SettingsWithRawResponse, - AsyncSettingsWithRawResponse, - SettingsWithStreamingResponse, - AsyncSettingsWithStreamingResponse, + SettingsResource, + AsyncSettingsResource, + SettingsResourceWithRawResponse, + AsyncSettingsResourceWithRawResponse, + SettingsResourceWithStreamingResponse, + AsyncSettingsResourceWithStreamingResponse, ) from .unrevoke import ( - Unrevoke, - AsyncUnrevoke, - UnrevokeWithRawResponse, - AsyncUnrevokeWithRawResponse, - UnrevokeWithStreamingResponse, - AsyncUnrevokeWithStreamingResponse, + UnrevokeResource, + AsyncUnrevokeResource, + UnrevokeResourceWithRawResponse, + AsyncUnrevokeResourceWithRawResponse, + UnrevokeResourceWithStreamingResponse, + AsyncUnrevokeResourceWithStreamingResponse, ) from .dex_tests import ( - DEXTests, - AsyncDEXTests, - DEXTestsWithRawResponse, - AsyncDEXTestsWithRawResponse, - DEXTestsWithStreamingResponse, - AsyncDEXTestsWithStreamingResponse, + DEXTestsResource, + AsyncDEXTestsResource, + DEXTestsResourceWithRawResponse, + AsyncDEXTestsResourceWithRawResponse, + DEXTestsResourceWithStreamingResponse, + AsyncDEXTestsResourceWithStreamingResponse, ) from .override_codes import ( - OverrideCodes, - AsyncOverrideCodes, - OverrideCodesWithRawResponse, - AsyncOverrideCodesWithRawResponse, - OverrideCodesWithStreamingResponse, - AsyncOverrideCodesWithStreamingResponse, + OverrideCodesResource, + AsyncOverrideCodesResource, + OverrideCodesResourceWithRawResponse, + AsyncOverrideCodesResourceWithRawResponse, + OverrideCodesResourceWithStreamingResponse, + AsyncOverrideCodesResourceWithStreamingResponse, ) __all__ = [ - "DEXTests", - "AsyncDEXTests", - "DEXTestsWithRawResponse", - "AsyncDEXTestsWithRawResponse", - "DEXTestsWithStreamingResponse", - "AsyncDEXTestsWithStreamingResponse", - "Networks", - "AsyncNetworks", - "NetworksWithRawResponse", - "AsyncNetworksWithRawResponse", - "NetworksWithStreamingResponse", - "AsyncNetworksWithStreamingResponse", - "Policies", - "AsyncPolicies", - "PoliciesWithRawResponse", - "AsyncPoliciesWithRawResponse", - "PoliciesWithStreamingResponse", - "AsyncPoliciesWithStreamingResponse", - "Posture", - "AsyncPosture", - "PostureWithRawResponse", - "AsyncPostureWithRawResponse", - "PostureWithStreamingResponse", - "AsyncPostureWithStreamingResponse", - "Revoke", - "AsyncRevoke", - "RevokeWithRawResponse", - "AsyncRevokeWithRawResponse", - "RevokeWithStreamingResponse", - "AsyncRevokeWithStreamingResponse", - "Settings", - "AsyncSettings", - "SettingsWithRawResponse", - "AsyncSettingsWithRawResponse", - "SettingsWithStreamingResponse", - "AsyncSettingsWithStreamingResponse", - "Unrevoke", - "AsyncUnrevoke", - "UnrevokeWithRawResponse", - "AsyncUnrevokeWithRawResponse", - "UnrevokeWithStreamingResponse", - "AsyncUnrevokeWithStreamingResponse", - "OverrideCodes", - "AsyncOverrideCodes", - "OverrideCodesWithRawResponse", - "AsyncOverrideCodesWithRawResponse", - "OverrideCodesWithStreamingResponse", - "AsyncOverrideCodesWithStreamingResponse", - "Devices", - "AsyncDevices", - "DevicesWithRawResponse", - "AsyncDevicesWithRawResponse", - "DevicesWithStreamingResponse", - "AsyncDevicesWithStreamingResponse", + "DEXTestsResource", + "AsyncDEXTestsResource", + "DEXTestsResourceWithRawResponse", + "AsyncDEXTestsResourceWithRawResponse", + "DEXTestsResourceWithStreamingResponse", + "AsyncDEXTestsResourceWithStreamingResponse", + "NetworksResource", + "AsyncNetworksResource", + "NetworksResourceWithRawResponse", + "AsyncNetworksResourceWithRawResponse", + "NetworksResourceWithStreamingResponse", + "AsyncNetworksResourceWithStreamingResponse", + "PoliciesResource", + "AsyncPoliciesResource", + "PoliciesResourceWithRawResponse", + "AsyncPoliciesResourceWithRawResponse", + "PoliciesResourceWithStreamingResponse", + "AsyncPoliciesResourceWithStreamingResponse", + "PostureResource", + "AsyncPostureResource", + "PostureResourceWithRawResponse", + "AsyncPostureResourceWithRawResponse", + "PostureResourceWithStreamingResponse", + "AsyncPostureResourceWithStreamingResponse", + "RevokeResource", + "AsyncRevokeResource", + "RevokeResourceWithRawResponse", + "AsyncRevokeResourceWithRawResponse", + "RevokeResourceWithStreamingResponse", + "AsyncRevokeResourceWithStreamingResponse", + "SettingsResource", + "AsyncSettingsResource", + "SettingsResourceWithRawResponse", + "AsyncSettingsResourceWithRawResponse", + "SettingsResourceWithStreamingResponse", + "AsyncSettingsResourceWithStreamingResponse", + "UnrevokeResource", + "AsyncUnrevokeResource", + "UnrevokeResourceWithRawResponse", + "AsyncUnrevokeResourceWithRawResponse", + "UnrevokeResourceWithStreamingResponse", + "AsyncUnrevokeResourceWithStreamingResponse", + "OverrideCodesResource", + "AsyncOverrideCodesResource", + "OverrideCodesResourceWithRawResponse", + "AsyncOverrideCodesResourceWithRawResponse", + "OverrideCodesResourceWithStreamingResponse", + "AsyncOverrideCodesResourceWithStreamingResponse", + "DevicesResource", + "AsyncDevicesResource", + "DevicesResourceWithRawResponse", + "AsyncDevicesResourceWithRawResponse", + "DevicesResourceWithStreamingResponse", + "AsyncDevicesResourceWithStreamingResponse", ] diff --git a/src/cloudflare/resources/zero_trust/devices/devices.py b/src/cloudflare/resources/zero_trust/devices/devices.py index 1c6e0495e64..67ff8295c8d 100644 --- a/src/cloudflare/resources/zero_trust/devices/devices.py +++ b/src/cloudflare/resources/zero_trust/devices/devices.py @@ -7,61 +7,61 @@ import httpx from .revoke import ( - Revoke, - AsyncRevoke, - RevokeWithRawResponse, - AsyncRevokeWithRawResponse, - RevokeWithStreamingResponse, - AsyncRevokeWithStreamingResponse, + RevokeResource, + AsyncRevokeResource, + RevokeResourceWithRawResponse, + AsyncRevokeResourceWithRawResponse, + RevokeResourceWithStreamingResponse, + AsyncRevokeResourceWithStreamingResponse, ) from .posture import ( - Posture, - AsyncPosture, - PostureWithRawResponse, - AsyncPostureWithRawResponse, - PostureWithStreamingResponse, - AsyncPostureWithStreamingResponse, + PostureResource, + AsyncPostureResource, + PostureResourceWithRawResponse, + AsyncPostureResourceWithRawResponse, + PostureResourceWithStreamingResponse, + AsyncPostureResourceWithStreamingResponse, ) from .networks import ( - Networks, - AsyncNetworks, - NetworksWithRawResponse, - AsyncNetworksWithRawResponse, - NetworksWithStreamingResponse, - AsyncNetworksWithStreamingResponse, + NetworksResource, + AsyncNetworksResource, + NetworksResourceWithRawResponse, + AsyncNetworksResourceWithRawResponse, + NetworksResourceWithStreamingResponse, + AsyncNetworksResourceWithStreamingResponse, ) from .policies import ( - Policies, - AsyncPolicies, - PoliciesWithRawResponse, - AsyncPoliciesWithRawResponse, - PoliciesWithStreamingResponse, - AsyncPoliciesWithStreamingResponse, + PoliciesResource, + AsyncPoliciesResource, + PoliciesResourceWithRawResponse, + AsyncPoliciesResourceWithRawResponse, + PoliciesResourceWithStreamingResponse, + AsyncPoliciesResourceWithStreamingResponse, ) from .settings import ( - Settings, - AsyncSettings, - SettingsWithRawResponse, - AsyncSettingsWithRawResponse, - SettingsWithStreamingResponse, - AsyncSettingsWithStreamingResponse, + SettingsResource, + AsyncSettingsResource, + SettingsResourceWithRawResponse, + AsyncSettingsResourceWithRawResponse, + SettingsResourceWithStreamingResponse, + AsyncSettingsResourceWithStreamingResponse, ) from .unrevoke import ( - Unrevoke, - AsyncUnrevoke, - UnrevokeWithRawResponse, - AsyncUnrevokeWithRawResponse, - UnrevokeWithStreamingResponse, - AsyncUnrevokeWithStreamingResponse, + UnrevokeResource, + AsyncUnrevokeResource, + UnrevokeResourceWithRawResponse, + AsyncUnrevokeResourceWithRawResponse, + UnrevokeResourceWithStreamingResponse, + AsyncUnrevokeResourceWithStreamingResponse, ) from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven from .dex_tests import ( - DEXTests, - AsyncDEXTests, - DEXTestsWithRawResponse, - AsyncDEXTestsWithRawResponse, - DEXTestsWithStreamingResponse, - AsyncDEXTestsWithStreamingResponse, + DEXTestsResource, + AsyncDEXTestsResource, + DEXTestsResourceWithRawResponse, + AsyncDEXTestsResourceWithRawResponse, + DEXTestsResourceWithStreamingResponse, + AsyncDEXTestsResourceWithStreamingResponse, ) from ...._compat import cached_property from ...._resource import SyncAPIResource, AsyncAPIResource @@ -74,65 +74,65 @@ from ...._wrappers import ResultWrapper from ....pagination import SyncSinglePage, AsyncSinglePage from .override_codes import ( - OverrideCodes, - AsyncOverrideCodes, - OverrideCodesWithRawResponse, - AsyncOverrideCodesWithRawResponse, - OverrideCodesWithStreamingResponse, - AsyncOverrideCodesWithStreamingResponse, + OverrideCodesResource, + AsyncOverrideCodesResource, + OverrideCodesResourceWithRawResponse, + AsyncOverrideCodesResourceWithRawResponse, + OverrideCodesResourceWithStreamingResponse, + AsyncOverrideCodesResourceWithStreamingResponse, ) from ...._base_client import ( AsyncPaginator, make_request_options, ) -from .posture.posture import Posture, AsyncPosture -from .policies.policies import Policies, AsyncPolicies +from .posture.posture import PostureResource, AsyncPostureResource +from .policies.policies import PoliciesResource, AsyncPoliciesResource from ....types.zero_trust.device import Device from ....types.zero_trust.device_get_response import DeviceGetResponse -__all__ = ["Devices", "AsyncDevices"] +__all__ = ["DevicesResource", "AsyncDevicesResource"] -class Devices(SyncAPIResource): +class DevicesResource(SyncAPIResource): @cached_property - def dex_tests(self) -> DEXTests: - return DEXTests(self._client) + def dex_tests(self) -> DEXTestsResource: + return DEXTestsResource(self._client) @cached_property - def networks(self) -> Networks: - return Networks(self._client) + def networks(self) -> NetworksResource: + return NetworksResource(self._client) @cached_property - def policies(self) -> Policies: - return Policies(self._client) + def policies(self) -> PoliciesResource: + return PoliciesResource(self._client) @cached_property - def posture(self) -> Posture: - return Posture(self._client) + def posture(self) -> PostureResource: + return PostureResource(self._client) @cached_property - def revoke(self) -> Revoke: - return Revoke(self._client) + def revoke(self) -> RevokeResource: + return RevokeResource(self._client) @cached_property - def settings(self) -> Settings: - return Settings(self._client) + def settings(self) -> SettingsResource: + return SettingsResource(self._client) @cached_property - def unrevoke(self) -> Unrevoke: - return Unrevoke(self._client) + def unrevoke(self) -> UnrevokeResource: + return UnrevokeResource(self._client) @cached_property - def override_codes(self) -> OverrideCodes: - return OverrideCodes(self._client) + def override_codes(self) -> OverrideCodesResource: + return OverrideCodesResource(self._client) @cached_property - def with_raw_response(self) -> DevicesWithRawResponse: - return DevicesWithRawResponse(self) + def with_raw_response(self) -> DevicesResourceWithRawResponse: + return DevicesResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> DevicesWithStreamingResponse: - return DevicesWithStreamingResponse(self) + def with_streaming_response(self) -> DevicesResourceWithStreamingResponse: + return DevicesResourceWithStreamingResponse(self) def list( self, @@ -216,46 +216,46 @@ def get( ) -class AsyncDevices(AsyncAPIResource): +class AsyncDevicesResource(AsyncAPIResource): @cached_property - def dex_tests(self) -> AsyncDEXTests: - return AsyncDEXTests(self._client) + def dex_tests(self) -> AsyncDEXTestsResource: + return AsyncDEXTestsResource(self._client) @cached_property - def networks(self) -> AsyncNetworks: - return AsyncNetworks(self._client) + def networks(self) -> AsyncNetworksResource: + return AsyncNetworksResource(self._client) @cached_property - def policies(self) -> AsyncPolicies: - return AsyncPolicies(self._client) + def policies(self) -> AsyncPoliciesResource: + return AsyncPoliciesResource(self._client) @cached_property - def posture(self) -> AsyncPosture: - return AsyncPosture(self._client) + def posture(self) -> AsyncPostureResource: + return AsyncPostureResource(self._client) @cached_property - def revoke(self) -> AsyncRevoke: - return AsyncRevoke(self._client) + def revoke(self) -> AsyncRevokeResource: + return AsyncRevokeResource(self._client) @cached_property - def settings(self) -> AsyncSettings: - return AsyncSettings(self._client) + def settings(self) -> AsyncSettingsResource: + return AsyncSettingsResource(self._client) @cached_property - def unrevoke(self) -> AsyncUnrevoke: - return AsyncUnrevoke(self._client) + def unrevoke(self) -> AsyncUnrevokeResource: + return AsyncUnrevokeResource(self._client) @cached_property - def override_codes(self) -> AsyncOverrideCodes: - return AsyncOverrideCodes(self._client) + def override_codes(self) -> AsyncOverrideCodesResource: + return AsyncOverrideCodesResource(self._client) @cached_property - def with_raw_response(self) -> AsyncDevicesWithRawResponse: - return AsyncDevicesWithRawResponse(self) + def with_raw_response(self) -> AsyncDevicesResourceWithRawResponse: + return AsyncDevicesResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncDevicesWithStreamingResponse: - return AsyncDevicesWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncDevicesResourceWithStreamingResponse: + return AsyncDevicesResourceWithStreamingResponse(self) def list( self, @@ -339,8 +339,8 @@ async def get( ) -class DevicesWithRawResponse: - def __init__(self, devices: Devices) -> None: +class DevicesResourceWithRawResponse: + def __init__(self, devices: DevicesResource) -> None: self._devices = devices self.list = to_raw_response_wrapper( @@ -351,40 +351,40 @@ def __init__(self, devices: Devices) -> None: ) @cached_property - def dex_tests(self) -> DEXTestsWithRawResponse: - return DEXTestsWithRawResponse(self._devices.dex_tests) + def dex_tests(self) -> DEXTestsResourceWithRawResponse: + return DEXTestsResourceWithRawResponse(self._devices.dex_tests) @cached_property - def networks(self) -> NetworksWithRawResponse: - return NetworksWithRawResponse(self._devices.networks) + def networks(self) -> NetworksResourceWithRawResponse: + return NetworksResourceWithRawResponse(self._devices.networks) @cached_property - def policies(self) -> PoliciesWithRawResponse: - return PoliciesWithRawResponse(self._devices.policies) + def policies(self) -> PoliciesResourceWithRawResponse: + return PoliciesResourceWithRawResponse(self._devices.policies) @cached_property - def posture(self) -> PostureWithRawResponse: - return PostureWithRawResponse(self._devices.posture) + def posture(self) -> PostureResourceWithRawResponse: + return PostureResourceWithRawResponse(self._devices.posture) @cached_property - def revoke(self) -> RevokeWithRawResponse: - return RevokeWithRawResponse(self._devices.revoke) + def revoke(self) -> RevokeResourceWithRawResponse: + return RevokeResourceWithRawResponse(self._devices.revoke) @cached_property - def settings(self) -> SettingsWithRawResponse: - return SettingsWithRawResponse(self._devices.settings) + def settings(self) -> SettingsResourceWithRawResponse: + return SettingsResourceWithRawResponse(self._devices.settings) @cached_property - def unrevoke(self) -> UnrevokeWithRawResponse: - return UnrevokeWithRawResponse(self._devices.unrevoke) + def unrevoke(self) -> UnrevokeResourceWithRawResponse: + return UnrevokeResourceWithRawResponse(self._devices.unrevoke) @cached_property - def override_codes(self) -> OverrideCodesWithRawResponse: - return OverrideCodesWithRawResponse(self._devices.override_codes) + def override_codes(self) -> OverrideCodesResourceWithRawResponse: + return OverrideCodesResourceWithRawResponse(self._devices.override_codes) -class AsyncDevicesWithRawResponse: - def __init__(self, devices: AsyncDevices) -> None: +class AsyncDevicesResourceWithRawResponse: + def __init__(self, devices: AsyncDevicesResource) -> None: self._devices = devices self.list = async_to_raw_response_wrapper( @@ -395,40 +395,40 @@ def __init__(self, devices: AsyncDevices) -> None: ) @cached_property - def dex_tests(self) -> AsyncDEXTestsWithRawResponse: - return AsyncDEXTestsWithRawResponse(self._devices.dex_tests) + def dex_tests(self) -> AsyncDEXTestsResourceWithRawResponse: + return AsyncDEXTestsResourceWithRawResponse(self._devices.dex_tests) @cached_property - def networks(self) -> AsyncNetworksWithRawResponse: - return AsyncNetworksWithRawResponse(self._devices.networks) + def networks(self) -> AsyncNetworksResourceWithRawResponse: + return AsyncNetworksResourceWithRawResponse(self._devices.networks) @cached_property - def policies(self) -> AsyncPoliciesWithRawResponse: - return AsyncPoliciesWithRawResponse(self._devices.policies) + def policies(self) -> AsyncPoliciesResourceWithRawResponse: + return AsyncPoliciesResourceWithRawResponse(self._devices.policies) @cached_property - def posture(self) -> AsyncPostureWithRawResponse: - return AsyncPostureWithRawResponse(self._devices.posture) + def posture(self) -> AsyncPostureResourceWithRawResponse: + return AsyncPostureResourceWithRawResponse(self._devices.posture) @cached_property - def revoke(self) -> AsyncRevokeWithRawResponse: - return AsyncRevokeWithRawResponse(self._devices.revoke) + def revoke(self) -> AsyncRevokeResourceWithRawResponse: + return AsyncRevokeResourceWithRawResponse(self._devices.revoke) @cached_property - def settings(self) -> AsyncSettingsWithRawResponse: - return AsyncSettingsWithRawResponse(self._devices.settings) + def settings(self) -> AsyncSettingsResourceWithRawResponse: + return AsyncSettingsResourceWithRawResponse(self._devices.settings) @cached_property - def unrevoke(self) -> AsyncUnrevokeWithRawResponse: - return AsyncUnrevokeWithRawResponse(self._devices.unrevoke) + def unrevoke(self) -> AsyncUnrevokeResourceWithRawResponse: + return AsyncUnrevokeResourceWithRawResponse(self._devices.unrevoke) @cached_property - def override_codes(self) -> AsyncOverrideCodesWithRawResponse: - return AsyncOverrideCodesWithRawResponse(self._devices.override_codes) + def override_codes(self) -> AsyncOverrideCodesResourceWithRawResponse: + return AsyncOverrideCodesResourceWithRawResponse(self._devices.override_codes) -class DevicesWithStreamingResponse: - def __init__(self, devices: Devices) -> None: +class DevicesResourceWithStreamingResponse: + def __init__(self, devices: DevicesResource) -> None: self._devices = devices self.list = to_streamed_response_wrapper( @@ -439,40 +439,40 @@ def __init__(self, devices: Devices) -> None: ) @cached_property - def dex_tests(self) -> DEXTestsWithStreamingResponse: - return DEXTestsWithStreamingResponse(self._devices.dex_tests) + def dex_tests(self) -> DEXTestsResourceWithStreamingResponse: + return DEXTestsResourceWithStreamingResponse(self._devices.dex_tests) @cached_property - def networks(self) -> NetworksWithStreamingResponse: - return NetworksWithStreamingResponse(self._devices.networks) + def networks(self) -> NetworksResourceWithStreamingResponse: + return NetworksResourceWithStreamingResponse(self._devices.networks) @cached_property - def policies(self) -> PoliciesWithStreamingResponse: - return PoliciesWithStreamingResponse(self._devices.policies) + def policies(self) -> PoliciesResourceWithStreamingResponse: + return PoliciesResourceWithStreamingResponse(self._devices.policies) @cached_property - def posture(self) -> PostureWithStreamingResponse: - return PostureWithStreamingResponse(self._devices.posture) + def posture(self) -> PostureResourceWithStreamingResponse: + return PostureResourceWithStreamingResponse(self._devices.posture) @cached_property - def revoke(self) -> RevokeWithStreamingResponse: - return RevokeWithStreamingResponse(self._devices.revoke) + def revoke(self) -> RevokeResourceWithStreamingResponse: + return RevokeResourceWithStreamingResponse(self._devices.revoke) @cached_property - def settings(self) -> SettingsWithStreamingResponse: - return SettingsWithStreamingResponse(self._devices.settings) + def settings(self) -> SettingsResourceWithStreamingResponse: + return SettingsResourceWithStreamingResponse(self._devices.settings) @cached_property - def unrevoke(self) -> UnrevokeWithStreamingResponse: - return UnrevokeWithStreamingResponse(self._devices.unrevoke) + def unrevoke(self) -> UnrevokeResourceWithStreamingResponse: + return UnrevokeResourceWithStreamingResponse(self._devices.unrevoke) @cached_property - def override_codes(self) -> OverrideCodesWithStreamingResponse: - return OverrideCodesWithStreamingResponse(self._devices.override_codes) + def override_codes(self) -> OverrideCodesResourceWithStreamingResponse: + return OverrideCodesResourceWithStreamingResponse(self._devices.override_codes) -class AsyncDevicesWithStreamingResponse: - def __init__(self, devices: AsyncDevices) -> None: +class AsyncDevicesResourceWithStreamingResponse: + def __init__(self, devices: AsyncDevicesResource) -> None: self._devices = devices self.list = async_to_streamed_response_wrapper( @@ -483,33 +483,33 @@ def __init__(self, devices: AsyncDevices) -> None: ) @cached_property - def dex_tests(self) -> AsyncDEXTestsWithStreamingResponse: - return AsyncDEXTestsWithStreamingResponse(self._devices.dex_tests) + def dex_tests(self) -> AsyncDEXTestsResourceWithStreamingResponse: + return AsyncDEXTestsResourceWithStreamingResponse(self._devices.dex_tests) @cached_property - def networks(self) -> AsyncNetworksWithStreamingResponse: - return AsyncNetworksWithStreamingResponse(self._devices.networks) + def networks(self) -> AsyncNetworksResourceWithStreamingResponse: + return AsyncNetworksResourceWithStreamingResponse(self._devices.networks) @cached_property - def policies(self) -> AsyncPoliciesWithStreamingResponse: - return AsyncPoliciesWithStreamingResponse(self._devices.policies) + def policies(self) -> AsyncPoliciesResourceWithStreamingResponse: + return AsyncPoliciesResourceWithStreamingResponse(self._devices.policies) @cached_property - def posture(self) -> AsyncPostureWithStreamingResponse: - return AsyncPostureWithStreamingResponse(self._devices.posture) + def posture(self) -> AsyncPostureResourceWithStreamingResponse: + return AsyncPostureResourceWithStreamingResponse(self._devices.posture) @cached_property - def revoke(self) -> AsyncRevokeWithStreamingResponse: - return AsyncRevokeWithStreamingResponse(self._devices.revoke) + def revoke(self) -> AsyncRevokeResourceWithStreamingResponse: + return AsyncRevokeResourceWithStreamingResponse(self._devices.revoke) @cached_property - def settings(self) -> AsyncSettingsWithStreamingResponse: - return AsyncSettingsWithStreamingResponse(self._devices.settings) + def settings(self) -> AsyncSettingsResourceWithStreamingResponse: + return AsyncSettingsResourceWithStreamingResponse(self._devices.settings) @cached_property - def unrevoke(self) -> AsyncUnrevokeWithStreamingResponse: - return AsyncUnrevokeWithStreamingResponse(self._devices.unrevoke) + def unrevoke(self) -> AsyncUnrevokeResourceWithStreamingResponse: + return AsyncUnrevokeResourceWithStreamingResponse(self._devices.unrevoke) @cached_property - def override_codes(self) -> AsyncOverrideCodesWithStreamingResponse: - return AsyncOverrideCodesWithStreamingResponse(self._devices.override_codes) + def override_codes(self) -> AsyncOverrideCodesResourceWithStreamingResponse: + return AsyncOverrideCodesResourceWithStreamingResponse(self._devices.override_codes) diff --git a/src/cloudflare/resources/zero_trust/devices/dex_tests.py b/src/cloudflare/resources/zero_trust/devices/dex_tests.py index a708d856641..63f779e24ad 100644 --- a/src/cloudflare/resources/zero_trust/devices/dex_tests.py +++ b/src/cloudflare/resources/zero_trust/devices/dex_tests.py @@ -30,17 +30,17 @@ from ....types.zero_trust.devices.schema_data_param import SchemaDataParam from ....types.zero_trust.devices.dex_test_delete_response import DEXTestDeleteResponse -__all__ = ["DEXTests", "AsyncDEXTests"] +__all__ = ["DEXTestsResource", "AsyncDEXTestsResource"] -class DEXTests(SyncAPIResource): +class DEXTestsResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> DEXTestsWithRawResponse: - return DEXTestsWithRawResponse(self) + def with_raw_response(self) -> DEXTestsResourceWithRawResponse: + return DEXTestsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> DEXTestsWithStreamingResponse: - return DEXTestsWithStreamingResponse(self) + def with_streaming_response(self) -> DEXTestsResourceWithStreamingResponse: + return DEXTestsResourceWithStreamingResponse(self) def create( self, @@ -306,14 +306,14 @@ def get( ) -class AsyncDEXTests(AsyncAPIResource): +class AsyncDEXTestsResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncDEXTestsWithRawResponse: - return AsyncDEXTestsWithRawResponse(self) + def with_raw_response(self) -> AsyncDEXTestsResourceWithRawResponse: + return AsyncDEXTestsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncDEXTestsWithStreamingResponse: - return AsyncDEXTestsWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncDEXTestsResourceWithStreamingResponse: + return AsyncDEXTestsResourceWithStreamingResponse(self) async def create( self, @@ -579,8 +579,8 @@ async def get( ) -class DEXTestsWithRawResponse: - def __init__(self, dex_tests: DEXTests) -> None: +class DEXTestsResourceWithRawResponse: + def __init__(self, dex_tests: DEXTestsResource) -> None: self._dex_tests = dex_tests self.create = to_raw_response_wrapper( @@ -600,8 +600,8 @@ def __init__(self, dex_tests: DEXTests) -> None: ) -class AsyncDEXTestsWithRawResponse: - def __init__(self, dex_tests: AsyncDEXTests) -> None: +class AsyncDEXTestsResourceWithRawResponse: + def __init__(self, dex_tests: AsyncDEXTestsResource) -> None: self._dex_tests = dex_tests self.create = async_to_raw_response_wrapper( @@ -621,8 +621,8 @@ def __init__(self, dex_tests: AsyncDEXTests) -> None: ) -class DEXTestsWithStreamingResponse: - def __init__(self, dex_tests: DEXTests) -> None: +class DEXTestsResourceWithStreamingResponse: + def __init__(self, dex_tests: DEXTestsResource) -> None: self._dex_tests = dex_tests self.create = to_streamed_response_wrapper( @@ -642,8 +642,8 @@ def __init__(self, dex_tests: DEXTests) -> None: ) -class AsyncDEXTestsWithStreamingResponse: - def __init__(self, dex_tests: AsyncDEXTests) -> None: +class AsyncDEXTestsResourceWithStreamingResponse: + def __init__(self, dex_tests: AsyncDEXTestsResource) -> None: self._dex_tests = dex_tests self.create = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/zero_trust/devices/networks.py b/src/cloudflare/resources/zero_trust/devices/networks.py index eaf17853c3f..645114237fe 100644 --- a/src/cloudflare/resources/zero_trust/devices/networks.py +++ b/src/cloudflare/resources/zero_trust/devices/networks.py @@ -30,17 +30,17 @@ from ....types.zero_trust.devices.device_network import DeviceNetwork from ....types.zero_trust.devices.network_delete_response import NetworkDeleteResponse -__all__ = ["Networks", "AsyncNetworks"] +__all__ = ["NetworksResource", "AsyncNetworksResource"] -class Networks(SyncAPIResource): +class NetworksResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> NetworksWithRawResponse: - return NetworksWithRawResponse(self) + def with_raw_response(self) -> NetworksResourceWithRawResponse: + return NetworksResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> NetworksWithStreamingResponse: - return NetworksWithStreamingResponse(self) + def with_streaming_response(self) -> NetworksResourceWithStreamingResponse: + return NetworksResourceWithStreamingResponse(self) def create( self, @@ -279,14 +279,14 @@ def get( ) -class AsyncNetworks(AsyncAPIResource): +class AsyncNetworksResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncNetworksWithRawResponse: - return AsyncNetworksWithRawResponse(self) + def with_raw_response(self) -> AsyncNetworksResourceWithRawResponse: + return AsyncNetworksResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncNetworksWithStreamingResponse: - return AsyncNetworksWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncNetworksResourceWithStreamingResponse: + return AsyncNetworksResourceWithStreamingResponse(self) async def create( self, @@ -525,8 +525,8 @@ async def get( ) -class NetworksWithRawResponse: - def __init__(self, networks: Networks) -> None: +class NetworksResourceWithRawResponse: + def __init__(self, networks: NetworksResource) -> None: self._networks = networks self.create = to_raw_response_wrapper( @@ -546,8 +546,8 @@ def __init__(self, networks: Networks) -> None: ) -class AsyncNetworksWithRawResponse: - def __init__(self, networks: AsyncNetworks) -> None: +class AsyncNetworksResourceWithRawResponse: + def __init__(self, networks: AsyncNetworksResource) -> None: self._networks = networks self.create = async_to_raw_response_wrapper( @@ -567,8 +567,8 @@ def __init__(self, networks: AsyncNetworks) -> None: ) -class NetworksWithStreamingResponse: - def __init__(self, networks: Networks) -> None: +class NetworksResourceWithStreamingResponse: + def __init__(self, networks: NetworksResource) -> None: self._networks = networks self.create = to_streamed_response_wrapper( @@ -588,8 +588,8 @@ def __init__(self, networks: Networks) -> None: ) -class AsyncNetworksWithStreamingResponse: - def __init__(self, networks: AsyncNetworks) -> None: +class AsyncNetworksResourceWithStreamingResponse: + def __init__(self, networks: AsyncNetworksResource) -> None: self._networks = networks self.create = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/zero_trust/devices/override_codes.py b/src/cloudflare/resources/zero_trust/devices/override_codes.py index 4ff95fef905..bd6353f2f46 100644 --- a/src/cloudflare/resources/zero_trust/devices/override_codes.py +++ b/src/cloudflare/resources/zero_trust/devices/override_codes.py @@ -21,17 +21,17 @@ ) from ....types.zero_trust.devices.override_code_list_response import OverrideCodeListResponse -__all__ = ["OverrideCodes", "AsyncOverrideCodes"] +__all__ = ["OverrideCodesResource", "AsyncOverrideCodesResource"] -class OverrideCodes(SyncAPIResource): +class OverrideCodesResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> OverrideCodesWithRawResponse: - return OverrideCodesWithRawResponse(self) + def with_raw_response(self) -> OverrideCodesResourceWithRawResponse: + return OverrideCodesResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> OverrideCodesWithStreamingResponse: - return OverrideCodesWithStreamingResponse(self) + def with_streaming_response(self) -> OverrideCodesResourceWithStreamingResponse: + return OverrideCodesResourceWithStreamingResponse(self) def list( self, @@ -78,14 +78,14 @@ def list( ) -class AsyncOverrideCodes(AsyncAPIResource): +class AsyncOverrideCodesResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncOverrideCodesWithRawResponse: - return AsyncOverrideCodesWithRawResponse(self) + def with_raw_response(self) -> AsyncOverrideCodesResourceWithRawResponse: + return AsyncOverrideCodesResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncOverrideCodesWithStreamingResponse: - return AsyncOverrideCodesWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncOverrideCodesResourceWithStreamingResponse: + return AsyncOverrideCodesResourceWithStreamingResponse(self) async def list( self, @@ -132,8 +132,8 @@ async def list( ) -class OverrideCodesWithRawResponse: - def __init__(self, override_codes: OverrideCodes) -> None: +class OverrideCodesResourceWithRawResponse: + def __init__(self, override_codes: OverrideCodesResource) -> None: self._override_codes = override_codes self.list = to_raw_response_wrapper( @@ -141,8 +141,8 @@ def __init__(self, override_codes: OverrideCodes) -> None: ) -class AsyncOverrideCodesWithRawResponse: - def __init__(self, override_codes: AsyncOverrideCodes) -> None: +class AsyncOverrideCodesResourceWithRawResponse: + def __init__(self, override_codes: AsyncOverrideCodesResource) -> None: self._override_codes = override_codes self.list = async_to_raw_response_wrapper( @@ -150,8 +150,8 @@ def __init__(self, override_codes: AsyncOverrideCodes) -> None: ) -class OverrideCodesWithStreamingResponse: - def __init__(self, override_codes: OverrideCodes) -> None: +class OverrideCodesResourceWithStreamingResponse: + def __init__(self, override_codes: OverrideCodesResource) -> None: self._override_codes = override_codes self.list = to_streamed_response_wrapper( @@ -159,8 +159,8 @@ def __init__(self, override_codes: OverrideCodes) -> None: ) -class AsyncOverrideCodesWithStreamingResponse: - def __init__(self, override_codes: AsyncOverrideCodes) -> None: +class AsyncOverrideCodesResourceWithStreamingResponse: + def __init__(self, override_codes: AsyncOverrideCodesResource) -> None: self._override_codes = override_codes self.list = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/zero_trust/devices/policies/__init__.py b/src/cloudflare/resources/zero_trust/devices/policies/__init__.py index 42ddfaf9516..31e6fce91a4 100644 --- a/src/cloudflare/resources/zero_trust/devices/policies/__init__.py +++ b/src/cloudflare/resources/zero_trust/devices/policies/__init__.py @@ -1,75 +1,75 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from .excludes import ( - Excludes, - AsyncExcludes, - ExcludesWithRawResponse, - AsyncExcludesWithRawResponse, - ExcludesWithStreamingResponse, - AsyncExcludesWithStreamingResponse, + ExcludesResource, + AsyncExcludesResource, + ExcludesResourceWithRawResponse, + AsyncExcludesResourceWithRawResponse, + ExcludesResourceWithStreamingResponse, + AsyncExcludesResourceWithStreamingResponse, ) from .includes import ( - Includes, - AsyncIncludes, - IncludesWithRawResponse, - AsyncIncludesWithRawResponse, - IncludesWithStreamingResponse, - AsyncIncludesWithStreamingResponse, + IncludesResource, + AsyncIncludesResource, + IncludesResourceWithRawResponse, + AsyncIncludesResourceWithRawResponse, + IncludesResourceWithStreamingResponse, + AsyncIncludesResourceWithStreamingResponse, ) from .policies import ( - Policies, - AsyncPolicies, - PoliciesWithRawResponse, - AsyncPoliciesWithRawResponse, - PoliciesWithStreamingResponse, - AsyncPoliciesWithStreamingResponse, + PoliciesResource, + AsyncPoliciesResource, + PoliciesResourceWithRawResponse, + AsyncPoliciesResourceWithRawResponse, + PoliciesResourceWithStreamingResponse, + AsyncPoliciesResourceWithStreamingResponse, ) from .default_policy import ( - DefaultPolicy, - AsyncDefaultPolicy, - DefaultPolicyWithRawResponse, - AsyncDefaultPolicyWithRawResponse, - DefaultPolicyWithStreamingResponse, - AsyncDefaultPolicyWithStreamingResponse, + DefaultPolicyResource, + AsyncDefaultPolicyResource, + DefaultPolicyResourceWithRawResponse, + AsyncDefaultPolicyResourceWithRawResponse, + DefaultPolicyResourceWithStreamingResponse, + AsyncDefaultPolicyResourceWithStreamingResponse, ) from .fallback_domains import ( - FallbackDomains, - AsyncFallbackDomains, - FallbackDomainsWithRawResponse, - AsyncFallbackDomainsWithRawResponse, - FallbackDomainsWithStreamingResponse, - AsyncFallbackDomainsWithStreamingResponse, + FallbackDomainsResource, + AsyncFallbackDomainsResource, + FallbackDomainsResourceWithRawResponse, + AsyncFallbackDomainsResourceWithRawResponse, + FallbackDomainsResourceWithStreamingResponse, + AsyncFallbackDomainsResourceWithStreamingResponse, ) __all__ = [ - "DefaultPolicy", - "AsyncDefaultPolicy", - "DefaultPolicyWithRawResponse", - "AsyncDefaultPolicyWithRawResponse", - "DefaultPolicyWithStreamingResponse", - "AsyncDefaultPolicyWithStreamingResponse", - "Excludes", - "AsyncExcludes", - "ExcludesWithRawResponse", - "AsyncExcludesWithRawResponse", - "ExcludesWithStreamingResponse", - "AsyncExcludesWithStreamingResponse", - "FallbackDomains", - "AsyncFallbackDomains", - "FallbackDomainsWithRawResponse", - "AsyncFallbackDomainsWithRawResponse", - "FallbackDomainsWithStreamingResponse", - "AsyncFallbackDomainsWithStreamingResponse", - "Includes", - "AsyncIncludes", - "IncludesWithRawResponse", - "AsyncIncludesWithRawResponse", - "IncludesWithStreamingResponse", - "AsyncIncludesWithStreamingResponse", - "Policies", - "AsyncPolicies", - "PoliciesWithRawResponse", - "AsyncPoliciesWithRawResponse", - "PoliciesWithStreamingResponse", - "AsyncPoliciesWithStreamingResponse", + "DefaultPolicyResource", + "AsyncDefaultPolicyResource", + "DefaultPolicyResourceWithRawResponse", + "AsyncDefaultPolicyResourceWithRawResponse", + "DefaultPolicyResourceWithStreamingResponse", + "AsyncDefaultPolicyResourceWithStreamingResponse", + "ExcludesResource", + "AsyncExcludesResource", + "ExcludesResourceWithRawResponse", + "AsyncExcludesResourceWithRawResponse", + "ExcludesResourceWithStreamingResponse", + "AsyncExcludesResourceWithStreamingResponse", + "FallbackDomainsResource", + "AsyncFallbackDomainsResource", + "FallbackDomainsResourceWithRawResponse", + "AsyncFallbackDomainsResourceWithRawResponse", + "FallbackDomainsResourceWithStreamingResponse", + "AsyncFallbackDomainsResourceWithStreamingResponse", + "IncludesResource", + "AsyncIncludesResource", + "IncludesResourceWithRawResponse", + "AsyncIncludesResourceWithRawResponse", + "IncludesResourceWithStreamingResponse", + "AsyncIncludesResourceWithStreamingResponse", + "PoliciesResource", + "AsyncPoliciesResource", + "PoliciesResourceWithRawResponse", + "AsyncPoliciesResourceWithRawResponse", + "PoliciesResourceWithStreamingResponse", + "AsyncPoliciesResourceWithStreamingResponse", ] diff --git a/src/cloudflare/resources/zero_trust/devices/policies/default_policy.py b/src/cloudflare/resources/zero_trust/devices/policies/default_policy.py index d90c4b3686d..b14defafd12 100644 --- a/src/cloudflare/resources/zero_trust/devices/policies/default_policy.py +++ b/src/cloudflare/resources/zero_trust/devices/policies/default_policy.py @@ -21,17 +21,17 @@ ) from .....types.zero_trust.devices.policies.default_policy_get_response import DefaultPolicyGetResponse -__all__ = ["DefaultPolicy", "AsyncDefaultPolicy"] +__all__ = ["DefaultPolicyResource", "AsyncDefaultPolicyResource"] -class DefaultPolicy(SyncAPIResource): +class DefaultPolicyResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> DefaultPolicyWithRawResponse: - return DefaultPolicyWithRawResponse(self) + def with_raw_response(self) -> DefaultPolicyResourceWithRawResponse: + return DefaultPolicyResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> DefaultPolicyWithStreamingResponse: - return DefaultPolicyWithStreamingResponse(self) + def with_streaming_response(self) -> DefaultPolicyResourceWithStreamingResponse: + return DefaultPolicyResourceWithStreamingResponse(self) def get( self, @@ -71,14 +71,14 @@ def get( ) -class AsyncDefaultPolicy(AsyncAPIResource): +class AsyncDefaultPolicyResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncDefaultPolicyWithRawResponse: - return AsyncDefaultPolicyWithRawResponse(self) + def with_raw_response(self) -> AsyncDefaultPolicyResourceWithRawResponse: + return AsyncDefaultPolicyResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncDefaultPolicyWithStreamingResponse: - return AsyncDefaultPolicyWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncDefaultPolicyResourceWithStreamingResponse: + return AsyncDefaultPolicyResourceWithStreamingResponse(self) async def get( self, @@ -118,8 +118,8 @@ async def get( ) -class DefaultPolicyWithRawResponse: - def __init__(self, default_policy: DefaultPolicy) -> None: +class DefaultPolicyResourceWithRawResponse: + def __init__(self, default_policy: DefaultPolicyResource) -> None: self._default_policy = default_policy self.get = to_raw_response_wrapper( @@ -127,8 +127,8 @@ def __init__(self, default_policy: DefaultPolicy) -> None: ) -class AsyncDefaultPolicyWithRawResponse: - def __init__(self, default_policy: AsyncDefaultPolicy) -> None: +class AsyncDefaultPolicyResourceWithRawResponse: + def __init__(self, default_policy: AsyncDefaultPolicyResource) -> None: self._default_policy = default_policy self.get = async_to_raw_response_wrapper( @@ -136,8 +136,8 @@ def __init__(self, default_policy: AsyncDefaultPolicy) -> None: ) -class DefaultPolicyWithStreamingResponse: - def __init__(self, default_policy: DefaultPolicy) -> None: +class DefaultPolicyResourceWithStreamingResponse: + def __init__(self, default_policy: DefaultPolicyResource) -> None: self._default_policy = default_policy self.get = to_streamed_response_wrapper( @@ -145,8 +145,8 @@ def __init__(self, default_policy: DefaultPolicy) -> None: ) -class AsyncDefaultPolicyWithStreamingResponse: - def __init__(self, default_policy: AsyncDefaultPolicy) -> None: +class AsyncDefaultPolicyResourceWithStreamingResponse: + def __init__(self, default_policy: AsyncDefaultPolicyResource) -> None: self._default_policy = default_policy self.get = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/zero_trust/devices/policies/excludes.py b/src/cloudflare/resources/zero_trust/devices/policies/excludes.py index 77a8d4e0f3e..c72143a1b7c 100644 --- a/src/cloudflare/resources/zero_trust/devices/policies/excludes.py +++ b/src/cloudflare/resources/zero_trust/devices/policies/excludes.py @@ -31,17 +31,17 @@ from .....types.zero_trust.devices.policies.exclude_update_response import ExcludeUpdateResponse from .....types.zero_trust.devices.policies.split_tunnel_exclude_param import SplitTunnelExcludeParam -__all__ = ["Excludes", "AsyncExcludes"] +__all__ = ["ExcludesResource", "AsyncExcludesResource"] -class Excludes(SyncAPIResource): +class ExcludesResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> ExcludesWithRawResponse: - return ExcludesWithRawResponse(self) + def with_raw_response(self) -> ExcludesResourceWithRawResponse: + return ExcludesResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> ExcludesWithStreamingResponse: - return ExcludesWithStreamingResponse(self) + def with_streaming_response(self) -> ExcludesResourceWithStreamingResponse: + return ExcludesResourceWithStreamingResponse(self) def update( self, @@ -160,14 +160,14 @@ def get( ) -class AsyncExcludes(AsyncAPIResource): +class AsyncExcludesResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncExcludesWithRawResponse: - return AsyncExcludesWithRawResponse(self) + def with_raw_response(self) -> AsyncExcludesResourceWithRawResponse: + return AsyncExcludesResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncExcludesWithStreamingResponse: - return AsyncExcludesWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncExcludesResourceWithStreamingResponse: + return AsyncExcludesResourceWithStreamingResponse(self) async def update( self, @@ -286,8 +286,8 @@ async def get( ) -class ExcludesWithRawResponse: - def __init__(self, excludes: Excludes) -> None: +class ExcludesResourceWithRawResponse: + def __init__(self, excludes: ExcludesResource) -> None: self._excludes = excludes self.update = to_raw_response_wrapper( @@ -301,8 +301,8 @@ def __init__(self, excludes: Excludes) -> None: ) -class AsyncExcludesWithRawResponse: - def __init__(self, excludes: AsyncExcludes) -> None: +class AsyncExcludesResourceWithRawResponse: + def __init__(self, excludes: AsyncExcludesResource) -> None: self._excludes = excludes self.update = async_to_raw_response_wrapper( @@ -316,8 +316,8 @@ def __init__(self, excludes: AsyncExcludes) -> None: ) -class ExcludesWithStreamingResponse: - def __init__(self, excludes: Excludes) -> None: +class ExcludesResourceWithStreamingResponse: + def __init__(self, excludes: ExcludesResource) -> None: self._excludes = excludes self.update = to_streamed_response_wrapper( @@ -331,8 +331,8 @@ def __init__(self, excludes: Excludes) -> None: ) -class AsyncExcludesWithStreamingResponse: - def __init__(self, excludes: AsyncExcludes) -> None: +class AsyncExcludesResourceWithStreamingResponse: + def __init__(self, excludes: AsyncExcludesResource) -> None: self._excludes = excludes self.update = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/zero_trust/devices/policies/fallback_domains.py b/src/cloudflare/resources/zero_trust/devices/policies/fallback_domains.py index 6ba4acb2840..949d226d832 100644 --- a/src/cloudflare/resources/zero_trust/devices/policies/fallback_domains.py +++ b/src/cloudflare/resources/zero_trust/devices/policies/fallback_domains.py @@ -31,17 +31,17 @@ from .....types.zero_trust.devices.policies.fallback_domain_get_response import FallbackDomainGetResponse from .....types.zero_trust.devices.policies.fallback_domain_update_response import FallbackDomainUpdateResponse -__all__ = ["FallbackDomains", "AsyncFallbackDomains"] +__all__ = ["FallbackDomainsResource", "AsyncFallbackDomainsResource"] -class FallbackDomains(SyncAPIResource): +class FallbackDomainsResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> FallbackDomainsWithRawResponse: - return FallbackDomainsWithRawResponse(self) + def with_raw_response(self) -> FallbackDomainsResourceWithRawResponse: + return FallbackDomainsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> FallbackDomainsWithStreamingResponse: - return FallbackDomainsWithStreamingResponse(self) + def with_streaming_response(self) -> FallbackDomainsResourceWithStreamingResponse: + return FallbackDomainsResourceWithStreamingResponse(self) def update( self, @@ -171,14 +171,14 @@ def get( ) -class AsyncFallbackDomains(AsyncAPIResource): +class AsyncFallbackDomainsResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncFallbackDomainsWithRawResponse: - return AsyncFallbackDomainsWithRawResponse(self) + def with_raw_response(self) -> AsyncFallbackDomainsResourceWithRawResponse: + return AsyncFallbackDomainsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncFallbackDomainsWithStreamingResponse: - return AsyncFallbackDomainsWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncFallbackDomainsResourceWithStreamingResponse: + return AsyncFallbackDomainsResourceWithStreamingResponse(self) async def update( self, @@ -308,8 +308,8 @@ async def get( ) -class FallbackDomainsWithRawResponse: - def __init__(self, fallback_domains: FallbackDomains) -> None: +class FallbackDomainsResourceWithRawResponse: + def __init__(self, fallback_domains: FallbackDomainsResource) -> None: self._fallback_domains = fallback_domains self.update = to_raw_response_wrapper( @@ -323,8 +323,8 @@ def __init__(self, fallback_domains: FallbackDomains) -> None: ) -class AsyncFallbackDomainsWithRawResponse: - def __init__(self, fallback_domains: AsyncFallbackDomains) -> None: +class AsyncFallbackDomainsResourceWithRawResponse: + def __init__(self, fallback_domains: AsyncFallbackDomainsResource) -> None: self._fallback_domains = fallback_domains self.update = async_to_raw_response_wrapper( @@ -338,8 +338,8 @@ def __init__(self, fallback_domains: AsyncFallbackDomains) -> None: ) -class FallbackDomainsWithStreamingResponse: - def __init__(self, fallback_domains: FallbackDomains) -> None: +class FallbackDomainsResourceWithStreamingResponse: + def __init__(self, fallback_domains: FallbackDomainsResource) -> None: self._fallback_domains = fallback_domains self.update = to_streamed_response_wrapper( @@ -353,8 +353,8 @@ def __init__(self, fallback_domains: FallbackDomains) -> None: ) -class AsyncFallbackDomainsWithStreamingResponse: - def __init__(self, fallback_domains: AsyncFallbackDomains) -> None: +class AsyncFallbackDomainsResourceWithStreamingResponse: + def __init__(self, fallback_domains: AsyncFallbackDomainsResource) -> None: self._fallback_domains = fallback_domains self.update = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/zero_trust/devices/policies/includes.py b/src/cloudflare/resources/zero_trust/devices/policies/includes.py index 81992f2723c..ba8b35f0189 100644 --- a/src/cloudflare/resources/zero_trust/devices/policies/includes.py +++ b/src/cloudflare/resources/zero_trust/devices/policies/includes.py @@ -31,17 +31,17 @@ from .....types.zero_trust.devices.policies.include_update_response import IncludeUpdateResponse from .....types.zero_trust.devices.policies.split_tunnel_include_param import SplitTunnelIncludeParam -__all__ = ["Includes", "AsyncIncludes"] +__all__ = ["IncludesResource", "AsyncIncludesResource"] -class Includes(SyncAPIResource): +class IncludesResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> IncludesWithRawResponse: - return IncludesWithRawResponse(self) + def with_raw_response(self) -> IncludesResourceWithRawResponse: + return IncludesResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> IncludesWithStreamingResponse: - return IncludesWithStreamingResponse(self) + def with_streaming_response(self) -> IncludesResourceWithStreamingResponse: + return IncludesResourceWithStreamingResponse(self) def update( self, @@ -160,14 +160,14 @@ def get( ) -class AsyncIncludes(AsyncAPIResource): +class AsyncIncludesResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncIncludesWithRawResponse: - return AsyncIncludesWithRawResponse(self) + def with_raw_response(self) -> AsyncIncludesResourceWithRawResponse: + return AsyncIncludesResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncIncludesWithStreamingResponse: - return AsyncIncludesWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncIncludesResourceWithStreamingResponse: + return AsyncIncludesResourceWithStreamingResponse(self) async def update( self, @@ -286,8 +286,8 @@ async def get( ) -class IncludesWithRawResponse: - def __init__(self, includes: Includes) -> None: +class IncludesResourceWithRawResponse: + def __init__(self, includes: IncludesResource) -> None: self._includes = includes self.update = to_raw_response_wrapper( @@ -301,8 +301,8 @@ def __init__(self, includes: Includes) -> None: ) -class AsyncIncludesWithRawResponse: - def __init__(self, includes: AsyncIncludes) -> None: +class AsyncIncludesResourceWithRawResponse: + def __init__(self, includes: AsyncIncludesResource) -> None: self._includes = includes self.update = async_to_raw_response_wrapper( @@ -316,8 +316,8 @@ def __init__(self, includes: AsyncIncludes) -> None: ) -class IncludesWithStreamingResponse: - def __init__(self, includes: Includes) -> None: +class IncludesResourceWithStreamingResponse: + def __init__(self, includes: IncludesResource) -> None: self._includes = includes self.update = to_streamed_response_wrapper( @@ -331,8 +331,8 @@ def __init__(self, includes: Includes) -> None: ) -class AsyncIncludesWithStreamingResponse: - def __init__(self, includes: AsyncIncludes) -> None: +class AsyncIncludesResourceWithStreamingResponse: + def __init__(self, includes: AsyncIncludesResource) -> None: self._includes = includes self.update = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/zero_trust/devices/policies/policies.py b/src/cloudflare/resources/zero_trust/devices/policies/policies.py index a69d429fd9f..57b8423f9f1 100644 --- a/src/cloudflare/resources/zero_trust/devices/policies/policies.py +++ b/src/cloudflare/resources/zero_trust/devices/policies/policies.py @@ -7,20 +7,20 @@ import httpx from .excludes import ( - Excludes, - AsyncExcludes, - ExcludesWithRawResponse, - AsyncExcludesWithRawResponse, - ExcludesWithStreamingResponse, - AsyncExcludesWithStreamingResponse, + ExcludesResource, + AsyncExcludesResource, + ExcludesResourceWithRawResponse, + AsyncExcludesResourceWithRawResponse, + ExcludesResourceWithStreamingResponse, + AsyncExcludesResourceWithStreamingResponse, ) from .includes import ( - Includes, - AsyncIncludes, - IncludesWithRawResponse, - AsyncIncludesWithRawResponse, - IncludesWithStreamingResponse, - AsyncIncludesWithStreamingResponse, + IncludesResource, + AsyncIncludesResource, + IncludesResourceWithRawResponse, + AsyncIncludesResourceWithRawResponse, + IncludesResourceWithStreamingResponse, + AsyncIncludesResourceWithStreamingResponse, ) from ....._types import NOT_GIVEN, Body, Query, Headers, NotGiven from ....._utils import ( @@ -38,56 +38,56 @@ from ....._wrappers import ResultWrapper from .....pagination import SyncSinglePage, AsyncSinglePage from .default_policy import ( - DefaultPolicy, - AsyncDefaultPolicy, - DefaultPolicyWithRawResponse, - AsyncDefaultPolicyWithRawResponse, - DefaultPolicyWithStreamingResponse, - AsyncDefaultPolicyWithStreamingResponse, + DefaultPolicyResource, + AsyncDefaultPolicyResource, + DefaultPolicyResourceWithRawResponse, + AsyncDefaultPolicyResourceWithRawResponse, + DefaultPolicyResourceWithStreamingResponse, + AsyncDefaultPolicyResourceWithStreamingResponse, ) from ....._base_client import ( AsyncPaginator, make_request_options, ) from .fallback_domains import ( - FallbackDomains, - AsyncFallbackDomains, - FallbackDomainsWithRawResponse, - AsyncFallbackDomainsWithRawResponse, - FallbackDomainsWithStreamingResponse, - AsyncFallbackDomainsWithStreamingResponse, + FallbackDomainsResource, + AsyncFallbackDomainsResource, + FallbackDomainsResourceWithRawResponse, + AsyncFallbackDomainsResourceWithRawResponse, + FallbackDomainsResourceWithStreamingResponse, + AsyncFallbackDomainsResourceWithStreamingResponse, ) from .....types.zero_trust.devices import policy_edit_params, policy_create_params, policy_delete_params from .....types.zero_trust.devices.settings_policy import SettingsPolicy from .....types.zero_trust.devices.policy_delete_response import PolicyDeleteResponse -__all__ = ["Policies", "AsyncPolicies"] +__all__ = ["PoliciesResource", "AsyncPoliciesResource"] -class Policies(SyncAPIResource): +class PoliciesResource(SyncAPIResource): @cached_property - def default_policy(self) -> DefaultPolicy: - return DefaultPolicy(self._client) + def default_policy(self) -> DefaultPolicyResource: + return DefaultPolicyResource(self._client) @cached_property - def excludes(self) -> Excludes: - return Excludes(self._client) + def excludes(self) -> ExcludesResource: + return ExcludesResource(self._client) @cached_property - def fallback_domains(self) -> FallbackDomains: - return FallbackDomains(self._client) + def fallback_domains(self) -> FallbackDomainsResource: + return FallbackDomainsResource(self._client) @cached_property - def includes(self) -> Includes: - return Includes(self._client) + def includes(self) -> IncludesResource: + return IncludesResource(self._client) @cached_property - def with_raw_response(self) -> PoliciesWithRawResponse: - return PoliciesWithRawResponse(self) + def with_raw_response(self) -> PoliciesResourceWithRawResponse: + return PoliciesResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> PoliciesWithStreamingResponse: - return PoliciesWithStreamingResponse(self) + def with_streaming_response(self) -> PoliciesResourceWithStreamingResponse: + return PoliciesResourceWithStreamingResponse(self) def create( self, @@ -437,30 +437,30 @@ def get( ) -class AsyncPolicies(AsyncAPIResource): +class AsyncPoliciesResource(AsyncAPIResource): @cached_property - def default_policy(self) -> AsyncDefaultPolicy: - return AsyncDefaultPolicy(self._client) + def default_policy(self) -> AsyncDefaultPolicyResource: + return AsyncDefaultPolicyResource(self._client) @cached_property - def excludes(self) -> AsyncExcludes: - return AsyncExcludes(self._client) + def excludes(self) -> AsyncExcludesResource: + return AsyncExcludesResource(self._client) @cached_property - def fallback_domains(self) -> AsyncFallbackDomains: - return AsyncFallbackDomains(self._client) + def fallback_domains(self) -> AsyncFallbackDomainsResource: + return AsyncFallbackDomainsResource(self._client) @cached_property - def includes(self) -> AsyncIncludes: - return AsyncIncludes(self._client) + def includes(self) -> AsyncIncludesResource: + return AsyncIncludesResource(self._client) @cached_property - def with_raw_response(self) -> AsyncPoliciesWithRawResponse: - return AsyncPoliciesWithRawResponse(self) + def with_raw_response(self) -> AsyncPoliciesResourceWithRawResponse: + return AsyncPoliciesResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncPoliciesWithStreamingResponse: - return AsyncPoliciesWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncPoliciesResourceWithStreamingResponse: + return AsyncPoliciesResourceWithStreamingResponse(self) async def create( self, @@ -810,8 +810,8 @@ async def get( ) -class PoliciesWithRawResponse: - def __init__(self, policies: Policies) -> None: +class PoliciesResourceWithRawResponse: + def __init__(self, policies: PoliciesResource) -> None: self._policies = policies self.create = to_raw_response_wrapper( @@ -831,24 +831,24 @@ def __init__(self, policies: Policies) -> None: ) @cached_property - def default_policy(self) -> DefaultPolicyWithRawResponse: - return DefaultPolicyWithRawResponse(self._policies.default_policy) + def default_policy(self) -> DefaultPolicyResourceWithRawResponse: + return DefaultPolicyResourceWithRawResponse(self._policies.default_policy) @cached_property - def excludes(self) -> ExcludesWithRawResponse: - return ExcludesWithRawResponse(self._policies.excludes) + def excludes(self) -> ExcludesResourceWithRawResponse: + return ExcludesResourceWithRawResponse(self._policies.excludes) @cached_property - def fallback_domains(self) -> FallbackDomainsWithRawResponse: - return FallbackDomainsWithRawResponse(self._policies.fallback_domains) + def fallback_domains(self) -> FallbackDomainsResourceWithRawResponse: + return FallbackDomainsResourceWithRawResponse(self._policies.fallback_domains) @cached_property - def includes(self) -> IncludesWithRawResponse: - return IncludesWithRawResponse(self._policies.includes) + def includes(self) -> IncludesResourceWithRawResponse: + return IncludesResourceWithRawResponse(self._policies.includes) -class AsyncPoliciesWithRawResponse: - def __init__(self, policies: AsyncPolicies) -> None: +class AsyncPoliciesResourceWithRawResponse: + def __init__(self, policies: AsyncPoliciesResource) -> None: self._policies = policies self.create = async_to_raw_response_wrapper( @@ -868,24 +868,24 @@ def __init__(self, policies: AsyncPolicies) -> None: ) @cached_property - def default_policy(self) -> AsyncDefaultPolicyWithRawResponse: - return AsyncDefaultPolicyWithRawResponse(self._policies.default_policy) + def default_policy(self) -> AsyncDefaultPolicyResourceWithRawResponse: + return AsyncDefaultPolicyResourceWithRawResponse(self._policies.default_policy) @cached_property - def excludes(self) -> AsyncExcludesWithRawResponse: - return AsyncExcludesWithRawResponse(self._policies.excludes) + def excludes(self) -> AsyncExcludesResourceWithRawResponse: + return AsyncExcludesResourceWithRawResponse(self._policies.excludes) @cached_property - def fallback_domains(self) -> AsyncFallbackDomainsWithRawResponse: - return AsyncFallbackDomainsWithRawResponse(self._policies.fallback_domains) + def fallback_domains(self) -> AsyncFallbackDomainsResourceWithRawResponse: + return AsyncFallbackDomainsResourceWithRawResponse(self._policies.fallback_domains) @cached_property - def includes(self) -> AsyncIncludesWithRawResponse: - return AsyncIncludesWithRawResponse(self._policies.includes) + def includes(self) -> AsyncIncludesResourceWithRawResponse: + return AsyncIncludesResourceWithRawResponse(self._policies.includes) -class PoliciesWithStreamingResponse: - def __init__(self, policies: Policies) -> None: +class PoliciesResourceWithStreamingResponse: + def __init__(self, policies: PoliciesResource) -> None: self._policies = policies self.create = to_streamed_response_wrapper( @@ -905,24 +905,24 @@ def __init__(self, policies: Policies) -> None: ) @cached_property - def default_policy(self) -> DefaultPolicyWithStreamingResponse: - return DefaultPolicyWithStreamingResponse(self._policies.default_policy) + def default_policy(self) -> DefaultPolicyResourceWithStreamingResponse: + return DefaultPolicyResourceWithStreamingResponse(self._policies.default_policy) @cached_property - def excludes(self) -> ExcludesWithStreamingResponse: - return ExcludesWithStreamingResponse(self._policies.excludes) + def excludes(self) -> ExcludesResourceWithStreamingResponse: + return ExcludesResourceWithStreamingResponse(self._policies.excludes) @cached_property - def fallback_domains(self) -> FallbackDomainsWithStreamingResponse: - return FallbackDomainsWithStreamingResponse(self._policies.fallback_domains) + def fallback_domains(self) -> FallbackDomainsResourceWithStreamingResponse: + return FallbackDomainsResourceWithStreamingResponse(self._policies.fallback_domains) @cached_property - def includes(self) -> IncludesWithStreamingResponse: - return IncludesWithStreamingResponse(self._policies.includes) + def includes(self) -> IncludesResourceWithStreamingResponse: + return IncludesResourceWithStreamingResponse(self._policies.includes) -class AsyncPoliciesWithStreamingResponse: - def __init__(self, policies: AsyncPolicies) -> None: +class AsyncPoliciesResourceWithStreamingResponse: + def __init__(self, policies: AsyncPoliciesResource) -> None: self._policies = policies self.create = async_to_streamed_response_wrapper( @@ -942,17 +942,17 @@ def __init__(self, policies: AsyncPolicies) -> None: ) @cached_property - def default_policy(self) -> AsyncDefaultPolicyWithStreamingResponse: - return AsyncDefaultPolicyWithStreamingResponse(self._policies.default_policy) + def default_policy(self) -> AsyncDefaultPolicyResourceWithStreamingResponse: + return AsyncDefaultPolicyResourceWithStreamingResponse(self._policies.default_policy) @cached_property - def excludes(self) -> AsyncExcludesWithStreamingResponse: - return AsyncExcludesWithStreamingResponse(self._policies.excludes) + def excludes(self) -> AsyncExcludesResourceWithStreamingResponse: + return AsyncExcludesResourceWithStreamingResponse(self._policies.excludes) @cached_property - def fallback_domains(self) -> AsyncFallbackDomainsWithStreamingResponse: - return AsyncFallbackDomainsWithStreamingResponse(self._policies.fallback_domains) + def fallback_domains(self) -> AsyncFallbackDomainsResourceWithStreamingResponse: + return AsyncFallbackDomainsResourceWithStreamingResponse(self._policies.fallback_domains) @cached_property - def includes(self) -> AsyncIncludesWithStreamingResponse: - return AsyncIncludesWithStreamingResponse(self._policies.includes) + def includes(self) -> AsyncIncludesResourceWithStreamingResponse: + return AsyncIncludesResourceWithStreamingResponse(self._policies.includes) diff --git a/src/cloudflare/resources/zero_trust/devices/posture/__init__.py b/src/cloudflare/resources/zero_trust/devices/posture/__init__.py index 02703608e14..b43760546c3 100644 --- a/src/cloudflare/resources/zero_trust/devices/posture/__init__.py +++ b/src/cloudflare/resources/zero_trust/devices/posture/__init__.py @@ -1,33 +1,33 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from .posture import ( - Posture, - AsyncPosture, - PostureWithRawResponse, - AsyncPostureWithRawResponse, - PostureWithStreamingResponse, - AsyncPostureWithStreamingResponse, + PostureResource, + AsyncPostureResource, + PostureResourceWithRawResponse, + AsyncPostureResourceWithRawResponse, + PostureResourceWithStreamingResponse, + AsyncPostureResourceWithStreamingResponse, ) from .integrations import ( - Integrations, - AsyncIntegrations, - IntegrationsWithRawResponse, - AsyncIntegrationsWithRawResponse, - IntegrationsWithStreamingResponse, - AsyncIntegrationsWithStreamingResponse, + IntegrationsResource, + AsyncIntegrationsResource, + IntegrationsResourceWithRawResponse, + AsyncIntegrationsResourceWithRawResponse, + IntegrationsResourceWithStreamingResponse, + AsyncIntegrationsResourceWithStreamingResponse, ) __all__ = [ - "Integrations", - "AsyncIntegrations", - "IntegrationsWithRawResponse", - "AsyncIntegrationsWithRawResponse", - "IntegrationsWithStreamingResponse", - "AsyncIntegrationsWithStreamingResponse", - "Posture", - "AsyncPosture", - "PostureWithRawResponse", - "AsyncPostureWithRawResponse", - "PostureWithStreamingResponse", - "AsyncPostureWithStreamingResponse", + "IntegrationsResource", + "AsyncIntegrationsResource", + "IntegrationsResourceWithRawResponse", + "AsyncIntegrationsResourceWithRawResponse", + "IntegrationsResourceWithStreamingResponse", + "AsyncIntegrationsResourceWithStreamingResponse", + "PostureResource", + "AsyncPostureResource", + "PostureResourceWithRawResponse", + "AsyncPostureResourceWithRawResponse", + "PostureResourceWithStreamingResponse", + "AsyncPostureResourceWithStreamingResponse", ] diff --git a/src/cloudflare/resources/zero_trust/devices/posture/integrations.py b/src/cloudflare/resources/zero_trust/devices/posture/integrations.py index 5054101c7c1..160d7a87247 100644 --- a/src/cloudflare/resources/zero_trust/devices/posture/integrations.py +++ b/src/cloudflare/resources/zero_trust/devices/posture/integrations.py @@ -34,17 +34,17 @@ from .....types.zero_trust.devices.posture.integration import Integration from .....types.zero_trust.devices.posture.integration_delete_response import IntegrationDeleteResponse -__all__ = ["Integrations", "AsyncIntegrations"] +__all__ = ["IntegrationsResource", "AsyncIntegrationsResource"] -class Integrations(SyncAPIResource): +class IntegrationsResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> IntegrationsWithRawResponse: - return IntegrationsWithRawResponse(self) + def with_raw_response(self) -> IntegrationsResourceWithRawResponse: + return IntegrationsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> IntegrationsWithStreamingResponse: - return IntegrationsWithStreamingResponse(self) + def with_streaming_response(self) -> IntegrationsResourceWithStreamingResponse: + return IntegrationsResourceWithStreamingResponse(self) def create( self, @@ -296,14 +296,14 @@ def get( ) -class AsyncIntegrations(AsyncAPIResource): +class AsyncIntegrationsResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncIntegrationsWithRawResponse: - return AsyncIntegrationsWithRawResponse(self) + def with_raw_response(self) -> AsyncIntegrationsResourceWithRawResponse: + return AsyncIntegrationsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncIntegrationsWithStreamingResponse: - return AsyncIntegrationsWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncIntegrationsResourceWithStreamingResponse: + return AsyncIntegrationsResourceWithStreamingResponse(self) async def create( self, @@ -555,8 +555,8 @@ async def get( ) -class IntegrationsWithRawResponse: - def __init__(self, integrations: Integrations) -> None: +class IntegrationsResourceWithRawResponse: + def __init__(self, integrations: IntegrationsResource) -> None: self._integrations = integrations self.create = to_raw_response_wrapper( @@ -576,8 +576,8 @@ def __init__(self, integrations: Integrations) -> None: ) -class AsyncIntegrationsWithRawResponse: - def __init__(self, integrations: AsyncIntegrations) -> None: +class AsyncIntegrationsResourceWithRawResponse: + def __init__(self, integrations: AsyncIntegrationsResource) -> None: self._integrations = integrations self.create = async_to_raw_response_wrapper( @@ -597,8 +597,8 @@ def __init__(self, integrations: AsyncIntegrations) -> None: ) -class IntegrationsWithStreamingResponse: - def __init__(self, integrations: Integrations) -> None: +class IntegrationsResourceWithStreamingResponse: + def __init__(self, integrations: IntegrationsResource) -> None: self._integrations = integrations self.create = to_streamed_response_wrapper( @@ -618,8 +618,8 @@ def __init__(self, integrations: Integrations) -> None: ) -class AsyncIntegrationsWithStreamingResponse: - def __init__(self, integrations: AsyncIntegrations) -> None: +class AsyncIntegrationsResourceWithStreamingResponse: + def __init__(self, integrations: AsyncIntegrationsResource) -> None: self._integrations = integrations self.create = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/zero_trust/devices/posture/posture.py b/src/cloudflare/resources/zero_trust/devices/posture/posture.py index 4cb5a8e4342..fedb1495ce2 100644 --- a/src/cloudflare/resources/zero_trust/devices/posture/posture.py +++ b/src/cloudflare/resources/zero_trust/devices/posture/posture.py @@ -14,12 +14,12 @@ ) from ....._compat import cached_property from .integrations import ( - Integrations, - AsyncIntegrations, - IntegrationsWithRawResponse, - AsyncIntegrationsWithRawResponse, - IntegrationsWithStreamingResponse, - AsyncIntegrationsWithStreamingResponse, + IntegrationsResource, + AsyncIntegrationsResource, + IntegrationsResourceWithRawResponse, + AsyncIntegrationsResourceWithRawResponse, + IntegrationsResourceWithStreamingResponse, + AsyncIntegrationsResourceWithStreamingResponse, ) from ....._resource import SyncAPIResource, AsyncAPIResource from ....._response import ( @@ -44,21 +44,21 @@ from .....types.zero_trust.devices.device_posture_rule import DevicePostureRule from .....types.zero_trust.devices.posture_delete_response import PostureDeleteResponse -__all__ = ["Posture", "AsyncPosture"] +__all__ = ["PostureResource", "AsyncPostureResource"] -class Posture(SyncAPIResource): +class PostureResource(SyncAPIResource): @cached_property - def integrations(self) -> Integrations: - return Integrations(self._client) + def integrations(self) -> IntegrationsResource: + return IntegrationsResource(self._client) @cached_property - def with_raw_response(self) -> PostureWithRawResponse: - return PostureWithRawResponse(self) + def with_raw_response(self) -> PostureResourceWithRawResponse: + return PostureResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> PostureWithStreamingResponse: - return PostureWithStreamingResponse(self) + def with_streaming_response(self) -> PostureResourceWithStreamingResponse: + return PostureResourceWithStreamingResponse(self) def create( self, @@ -370,18 +370,18 @@ def get( ) -class AsyncPosture(AsyncAPIResource): +class AsyncPostureResource(AsyncAPIResource): @cached_property - def integrations(self) -> AsyncIntegrations: - return AsyncIntegrations(self._client) + def integrations(self) -> AsyncIntegrationsResource: + return AsyncIntegrationsResource(self._client) @cached_property - def with_raw_response(self) -> AsyncPostureWithRawResponse: - return AsyncPostureWithRawResponse(self) + def with_raw_response(self) -> AsyncPostureResourceWithRawResponse: + return AsyncPostureResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncPostureWithStreamingResponse: - return AsyncPostureWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncPostureResourceWithStreamingResponse: + return AsyncPostureResourceWithStreamingResponse(self) async def create( self, @@ -693,8 +693,8 @@ async def get( ) -class PostureWithRawResponse: - def __init__(self, posture: Posture) -> None: +class PostureResourceWithRawResponse: + def __init__(self, posture: PostureResource) -> None: self._posture = posture self.create = to_raw_response_wrapper( @@ -714,12 +714,12 @@ def __init__(self, posture: Posture) -> None: ) @cached_property - def integrations(self) -> IntegrationsWithRawResponse: - return IntegrationsWithRawResponse(self._posture.integrations) + def integrations(self) -> IntegrationsResourceWithRawResponse: + return IntegrationsResourceWithRawResponse(self._posture.integrations) -class AsyncPostureWithRawResponse: - def __init__(self, posture: AsyncPosture) -> None: +class AsyncPostureResourceWithRawResponse: + def __init__(self, posture: AsyncPostureResource) -> None: self._posture = posture self.create = async_to_raw_response_wrapper( @@ -739,12 +739,12 @@ def __init__(self, posture: AsyncPosture) -> None: ) @cached_property - def integrations(self) -> AsyncIntegrationsWithRawResponse: - return AsyncIntegrationsWithRawResponse(self._posture.integrations) + def integrations(self) -> AsyncIntegrationsResourceWithRawResponse: + return AsyncIntegrationsResourceWithRawResponse(self._posture.integrations) -class PostureWithStreamingResponse: - def __init__(self, posture: Posture) -> None: +class PostureResourceWithStreamingResponse: + def __init__(self, posture: PostureResource) -> None: self._posture = posture self.create = to_streamed_response_wrapper( @@ -764,12 +764,12 @@ def __init__(self, posture: Posture) -> None: ) @cached_property - def integrations(self) -> IntegrationsWithStreamingResponse: - return IntegrationsWithStreamingResponse(self._posture.integrations) + def integrations(self) -> IntegrationsResourceWithStreamingResponse: + return IntegrationsResourceWithStreamingResponse(self._posture.integrations) -class AsyncPostureWithStreamingResponse: - def __init__(self, posture: AsyncPosture) -> None: +class AsyncPostureResourceWithStreamingResponse: + def __init__(self, posture: AsyncPostureResource) -> None: self._posture = posture self.create = async_to_streamed_response_wrapper( @@ -789,5 +789,5 @@ def __init__(self, posture: AsyncPosture) -> None: ) @cached_property - def integrations(self) -> AsyncIntegrationsWithStreamingResponse: - return AsyncIntegrationsWithStreamingResponse(self._posture.integrations) + def integrations(self) -> AsyncIntegrationsResourceWithStreamingResponse: + return AsyncIntegrationsResourceWithStreamingResponse(self._posture.integrations) diff --git a/src/cloudflare/resources/zero_trust/devices/revoke.py b/src/cloudflare/resources/zero_trust/devices/revoke.py index f67ea790895..c9a37723494 100644 --- a/src/cloudflare/resources/zero_trust/devices/revoke.py +++ b/src/cloudflare/resources/zero_trust/devices/revoke.py @@ -26,17 +26,17 @@ from ....types.zero_trust.devices import revoke_create_params from ....types.zero_trust.devices.revoke_create_response import RevokeCreateResponse -__all__ = ["Revoke", "AsyncRevoke"] +__all__ = ["RevokeResource", "AsyncRevokeResource"] -class Revoke(SyncAPIResource): +class RevokeResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> RevokeWithRawResponse: - return RevokeWithRawResponse(self) + def with_raw_response(self) -> RevokeResourceWithRawResponse: + return RevokeResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> RevokeWithStreamingResponse: - return RevokeWithStreamingResponse(self) + def with_streaming_response(self) -> RevokeResourceWithStreamingResponse: + return RevokeResourceWithStreamingResponse(self) def create( self, @@ -85,14 +85,14 @@ def create( ) -class AsyncRevoke(AsyncAPIResource): +class AsyncRevokeResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncRevokeWithRawResponse: - return AsyncRevokeWithRawResponse(self) + def with_raw_response(self) -> AsyncRevokeResourceWithRawResponse: + return AsyncRevokeResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncRevokeWithStreamingResponse: - return AsyncRevokeWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncRevokeResourceWithStreamingResponse: + return AsyncRevokeResourceWithStreamingResponse(self) async def create( self, @@ -141,8 +141,8 @@ async def create( ) -class RevokeWithRawResponse: - def __init__(self, revoke: Revoke) -> None: +class RevokeResourceWithRawResponse: + def __init__(self, revoke: RevokeResource) -> None: self._revoke = revoke self.create = to_raw_response_wrapper( @@ -150,8 +150,8 @@ def __init__(self, revoke: Revoke) -> None: ) -class AsyncRevokeWithRawResponse: - def __init__(self, revoke: AsyncRevoke) -> None: +class AsyncRevokeResourceWithRawResponse: + def __init__(self, revoke: AsyncRevokeResource) -> None: self._revoke = revoke self.create = async_to_raw_response_wrapper( @@ -159,8 +159,8 @@ def __init__(self, revoke: AsyncRevoke) -> None: ) -class RevokeWithStreamingResponse: - def __init__(self, revoke: Revoke) -> None: +class RevokeResourceWithStreamingResponse: + def __init__(self, revoke: RevokeResource) -> None: self._revoke = revoke self.create = to_streamed_response_wrapper( @@ -168,8 +168,8 @@ def __init__(self, revoke: Revoke) -> None: ) -class AsyncRevokeWithStreamingResponse: - def __init__(self, revoke: AsyncRevoke) -> None: +class AsyncRevokeResourceWithStreamingResponse: + def __init__(self, revoke: AsyncRevokeResource) -> None: self._revoke = revoke self.create = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/zero_trust/devices/settings.py b/src/cloudflare/resources/zero_trust/devices/settings.py index 2cda06e2b4c..0b1ae97a6d8 100644 --- a/src/cloudflare/resources/zero_trust/devices/settings.py +++ b/src/cloudflare/resources/zero_trust/devices/settings.py @@ -26,17 +26,17 @@ from ....types.zero_trust.devices import setting_update_params from ....types.zero_trust.devices.device_settings import DeviceSettings -__all__ = ["Settings", "AsyncSettings"] +__all__ = ["SettingsResource", "AsyncSettingsResource"] -class Settings(SyncAPIResource): +class SettingsResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> SettingsWithRawResponse: - return SettingsWithRawResponse(self) + def with_raw_response(self) -> SettingsResourceWithRawResponse: + return SettingsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> SettingsWithStreamingResponse: - return SettingsWithStreamingResponse(self) + def with_streaming_response(self) -> SettingsResourceWithStreamingResponse: + return SettingsResourceWithStreamingResponse(self) def update( self, @@ -134,14 +134,14 @@ def list( ) -class AsyncSettings(AsyncAPIResource): +class AsyncSettingsResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncSettingsWithRawResponse: - return AsyncSettingsWithRawResponse(self) + def with_raw_response(self) -> AsyncSettingsResourceWithRawResponse: + return AsyncSettingsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncSettingsWithStreamingResponse: - return AsyncSettingsWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncSettingsResourceWithStreamingResponse: + return AsyncSettingsResourceWithStreamingResponse(self) async def update( self, @@ -239,8 +239,8 @@ async def list( ) -class SettingsWithRawResponse: - def __init__(self, settings: Settings) -> None: +class SettingsResourceWithRawResponse: + def __init__(self, settings: SettingsResource) -> None: self._settings = settings self.update = to_raw_response_wrapper( @@ -251,8 +251,8 @@ def __init__(self, settings: Settings) -> None: ) -class AsyncSettingsWithRawResponse: - def __init__(self, settings: AsyncSettings) -> None: +class AsyncSettingsResourceWithRawResponse: + def __init__(self, settings: AsyncSettingsResource) -> None: self._settings = settings self.update = async_to_raw_response_wrapper( @@ -263,8 +263,8 @@ def __init__(self, settings: AsyncSettings) -> None: ) -class SettingsWithStreamingResponse: - def __init__(self, settings: Settings) -> None: +class SettingsResourceWithStreamingResponse: + def __init__(self, settings: SettingsResource) -> None: self._settings = settings self.update = to_streamed_response_wrapper( @@ -275,8 +275,8 @@ def __init__(self, settings: Settings) -> None: ) -class AsyncSettingsWithStreamingResponse: - def __init__(self, settings: AsyncSettings) -> None: +class AsyncSettingsResourceWithStreamingResponse: + def __init__(self, settings: AsyncSettingsResource) -> None: self._settings = settings self.update = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/zero_trust/devices/unrevoke.py b/src/cloudflare/resources/zero_trust/devices/unrevoke.py index fa0e45a348a..7a35660c2ef 100644 --- a/src/cloudflare/resources/zero_trust/devices/unrevoke.py +++ b/src/cloudflare/resources/zero_trust/devices/unrevoke.py @@ -26,17 +26,17 @@ from ....types.zero_trust.devices import unrevoke_create_params from ....types.zero_trust.devices.unrevoke_create_response import UnrevokeCreateResponse -__all__ = ["Unrevoke", "AsyncUnrevoke"] +__all__ = ["UnrevokeResource", "AsyncUnrevokeResource"] -class Unrevoke(SyncAPIResource): +class UnrevokeResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> UnrevokeWithRawResponse: - return UnrevokeWithRawResponse(self) + def with_raw_response(self) -> UnrevokeResourceWithRawResponse: + return UnrevokeResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> UnrevokeWithStreamingResponse: - return UnrevokeWithStreamingResponse(self) + def with_streaming_response(self) -> UnrevokeResourceWithStreamingResponse: + return UnrevokeResourceWithStreamingResponse(self) def create( self, @@ -85,14 +85,14 @@ def create( ) -class AsyncUnrevoke(AsyncAPIResource): +class AsyncUnrevokeResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncUnrevokeWithRawResponse: - return AsyncUnrevokeWithRawResponse(self) + def with_raw_response(self) -> AsyncUnrevokeResourceWithRawResponse: + return AsyncUnrevokeResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncUnrevokeWithStreamingResponse: - return AsyncUnrevokeWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncUnrevokeResourceWithStreamingResponse: + return AsyncUnrevokeResourceWithStreamingResponse(self) async def create( self, @@ -141,8 +141,8 @@ async def create( ) -class UnrevokeWithRawResponse: - def __init__(self, unrevoke: Unrevoke) -> None: +class UnrevokeResourceWithRawResponse: + def __init__(self, unrevoke: UnrevokeResource) -> None: self._unrevoke = unrevoke self.create = to_raw_response_wrapper( @@ -150,8 +150,8 @@ def __init__(self, unrevoke: Unrevoke) -> None: ) -class AsyncUnrevokeWithRawResponse: - def __init__(self, unrevoke: AsyncUnrevoke) -> None: +class AsyncUnrevokeResourceWithRawResponse: + def __init__(self, unrevoke: AsyncUnrevokeResource) -> None: self._unrevoke = unrevoke self.create = async_to_raw_response_wrapper( @@ -159,8 +159,8 @@ def __init__(self, unrevoke: AsyncUnrevoke) -> None: ) -class UnrevokeWithStreamingResponse: - def __init__(self, unrevoke: Unrevoke) -> None: +class UnrevokeResourceWithStreamingResponse: + def __init__(self, unrevoke: UnrevokeResource) -> None: self._unrevoke = unrevoke self.create = to_streamed_response_wrapper( @@ -168,8 +168,8 @@ def __init__(self, unrevoke: Unrevoke) -> None: ) -class AsyncUnrevokeWithStreamingResponse: - def __init__(self, unrevoke: AsyncUnrevoke) -> None: +class AsyncUnrevokeResourceWithStreamingResponse: + def __init__(self, unrevoke: AsyncUnrevokeResource) -> None: self._unrevoke = unrevoke self.create = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/zero_trust/dex/__init__.py b/src/cloudflare/resources/zero_trust/dex/__init__.py index ff9474a4e7e..b79e8e9ec69 100644 --- a/src/cloudflare/resources/zero_trust/dex/__init__.py +++ b/src/cloudflare/resources/zero_trust/dex/__init__.py @@ -1,103 +1,103 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from .dex import ( - DEX, - AsyncDEX, - DEXWithRawResponse, - AsyncDEXWithRawResponse, - DEXWithStreamingResponse, - AsyncDEXWithStreamingResponse, + DEXResource, + AsyncDEXResource, + DEXResourceWithRawResponse, + AsyncDEXResourceWithRawResponse, + DEXResourceWithStreamingResponse, + AsyncDEXResourceWithStreamingResponse, ) from .colos import ( - Colos, - AsyncColos, - ColosWithRawResponse, - AsyncColosWithRawResponse, - ColosWithStreamingResponse, - AsyncColosWithStreamingResponse, + ColosResource, + AsyncColosResource, + ColosResourceWithRawResponse, + AsyncColosResourceWithRawResponse, + ColosResourceWithStreamingResponse, + AsyncColosResourceWithStreamingResponse, ) from .tests import ( - Tests, - AsyncTests, - TestsWithRawResponse, - AsyncTestsWithRawResponse, - TestsWithStreamingResponse, - AsyncTestsWithStreamingResponse, + TestsResource, + AsyncTestsResource, + TestsResourceWithRawResponse, + AsyncTestsResourceWithRawResponse, + TestsResourceWithStreamingResponse, + AsyncTestsResourceWithStreamingResponse, ) from .http_tests import ( - HTTPTests, - AsyncHTTPTests, - HTTPTestsWithRawResponse, - AsyncHTTPTestsWithRawResponse, - HTTPTestsWithStreamingResponse, - AsyncHTTPTestsWithStreamingResponse, + HTTPTestsResource, + AsyncHTTPTestsResource, + HTTPTestsResourceWithRawResponse, + AsyncHTTPTestsResourceWithRawResponse, + HTTPTestsResourceWithStreamingResponse, + AsyncHTTPTestsResourceWithStreamingResponse, ) from .fleet_status import ( - FleetStatus, - AsyncFleetStatus, - FleetStatusWithRawResponse, - AsyncFleetStatusWithRawResponse, - FleetStatusWithStreamingResponse, - AsyncFleetStatusWithStreamingResponse, + FleetStatusResource, + AsyncFleetStatusResource, + FleetStatusResourceWithRawResponse, + AsyncFleetStatusResourceWithRawResponse, + FleetStatusResourceWithStreamingResponse, + AsyncFleetStatusResourceWithStreamingResponse, ) from .traceroute_tests import ( - TracerouteTests, - AsyncTracerouteTests, - TracerouteTestsWithRawResponse, - AsyncTracerouteTestsWithRawResponse, - TracerouteTestsWithStreamingResponse, - AsyncTracerouteTestsWithStreamingResponse, + TracerouteTestsResource, + AsyncTracerouteTestsResource, + TracerouteTestsResourceWithRawResponse, + AsyncTracerouteTestsResourceWithRawResponse, + TracerouteTestsResourceWithStreamingResponse, + AsyncTracerouteTestsResourceWithStreamingResponse, ) from .traceroute_test_results import ( - TracerouteTestResults, - AsyncTracerouteTestResults, - TracerouteTestResultsWithRawResponse, - AsyncTracerouteTestResultsWithRawResponse, - TracerouteTestResultsWithStreamingResponse, - AsyncTracerouteTestResultsWithStreamingResponse, + TracerouteTestResultsResource, + AsyncTracerouteTestResultsResource, + TracerouteTestResultsResourceWithRawResponse, + AsyncTracerouteTestResultsResourceWithRawResponse, + TracerouteTestResultsResourceWithStreamingResponse, + AsyncTracerouteTestResultsResourceWithStreamingResponse, ) __all__ = [ - "Colos", - "AsyncColos", - "ColosWithRawResponse", - "AsyncColosWithRawResponse", - "ColosWithStreamingResponse", - "AsyncColosWithStreamingResponse", - "FleetStatus", - "AsyncFleetStatus", - "FleetStatusWithRawResponse", - "AsyncFleetStatusWithRawResponse", - "FleetStatusWithStreamingResponse", - "AsyncFleetStatusWithStreamingResponse", - "HTTPTests", - "AsyncHTTPTests", - "HTTPTestsWithRawResponse", - "AsyncHTTPTestsWithRawResponse", - "HTTPTestsWithStreamingResponse", - "AsyncHTTPTestsWithStreamingResponse", - "Tests", - "AsyncTests", - "TestsWithRawResponse", - "AsyncTestsWithRawResponse", - "TestsWithStreamingResponse", - "AsyncTestsWithStreamingResponse", - "TracerouteTestResults", - "AsyncTracerouteTestResults", - "TracerouteTestResultsWithRawResponse", - "AsyncTracerouteTestResultsWithRawResponse", - "TracerouteTestResultsWithStreamingResponse", - "AsyncTracerouteTestResultsWithStreamingResponse", - "TracerouteTests", - "AsyncTracerouteTests", - "TracerouteTestsWithRawResponse", - "AsyncTracerouteTestsWithRawResponse", - "TracerouteTestsWithStreamingResponse", - "AsyncTracerouteTestsWithStreamingResponse", - "DEX", - "AsyncDEX", - "DEXWithRawResponse", - "AsyncDEXWithRawResponse", - "DEXWithStreamingResponse", - "AsyncDEXWithStreamingResponse", + "ColosResource", + "AsyncColosResource", + "ColosResourceWithRawResponse", + "AsyncColosResourceWithRawResponse", + "ColosResourceWithStreamingResponse", + "AsyncColosResourceWithStreamingResponse", + "FleetStatusResource", + "AsyncFleetStatusResource", + "FleetStatusResourceWithRawResponse", + "AsyncFleetStatusResourceWithRawResponse", + "FleetStatusResourceWithStreamingResponse", + "AsyncFleetStatusResourceWithStreamingResponse", + "HTTPTestsResource", + "AsyncHTTPTestsResource", + "HTTPTestsResourceWithRawResponse", + "AsyncHTTPTestsResourceWithRawResponse", + "HTTPTestsResourceWithStreamingResponse", + "AsyncHTTPTestsResourceWithStreamingResponse", + "TestsResource", + "AsyncTestsResource", + "TestsResourceWithRawResponse", + "AsyncTestsResourceWithRawResponse", + "TestsResourceWithStreamingResponse", + "AsyncTestsResourceWithStreamingResponse", + "TracerouteTestResultsResource", + "AsyncTracerouteTestResultsResource", + "TracerouteTestResultsResourceWithRawResponse", + "AsyncTracerouteTestResultsResourceWithRawResponse", + "TracerouteTestResultsResourceWithStreamingResponse", + "AsyncTracerouteTestResultsResourceWithStreamingResponse", + "TracerouteTestsResource", + "AsyncTracerouteTestsResource", + "TracerouteTestsResourceWithRawResponse", + "AsyncTracerouteTestsResourceWithRawResponse", + "TracerouteTestsResourceWithStreamingResponse", + "AsyncTracerouteTestsResourceWithStreamingResponse", + "DEXResource", + "AsyncDEXResource", + "DEXResourceWithRawResponse", + "AsyncDEXResourceWithRawResponse", + "DEXResourceWithStreamingResponse", + "AsyncDEXResourceWithStreamingResponse", ] diff --git a/src/cloudflare/resources/zero_trust/dex/colos.py b/src/cloudflare/resources/zero_trust/dex/colos.py index 8d49fdc332a..6423b82ef5a 100644 --- a/src/cloudflare/resources/zero_trust/dex/colos.py +++ b/src/cloudflare/resources/zero_trust/dex/colos.py @@ -23,17 +23,17 @@ ) from ....types.zero_trust.dex import colo_list_params -__all__ = ["Colos", "AsyncColos"] +__all__ = ["ColosResource", "AsyncColosResource"] -class Colos(SyncAPIResource): +class ColosResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> ColosWithRawResponse: - return ColosWithRawResponse(self) + def with_raw_response(self) -> ColosResourceWithRawResponse: + return ColosResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> ColosWithStreamingResponse: - return ColosWithStreamingResponse(self) + def with_streaming_response(self) -> ColosResourceWithStreamingResponse: + return ColosResourceWithStreamingResponse(self) def list( self, @@ -93,14 +93,14 @@ def list( ) -class AsyncColos(AsyncAPIResource): +class AsyncColosResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncColosWithRawResponse: - return AsyncColosWithRawResponse(self) + def with_raw_response(self) -> AsyncColosResourceWithRawResponse: + return AsyncColosResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncColosWithStreamingResponse: - return AsyncColosWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncColosResourceWithStreamingResponse: + return AsyncColosResourceWithStreamingResponse(self) def list( self, @@ -160,8 +160,8 @@ def list( ) -class ColosWithRawResponse: - def __init__(self, colos: Colos) -> None: +class ColosResourceWithRawResponse: + def __init__(self, colos: ColosResource) -> None: self._colos = colos self.list = to_raw_response_wrapper( @@ -169,8 +169,8 @@ def __init__(self, colos: Colos) -> None: ) -class AsyncColosWithRawResponse: - def __init__(self, colos: AsyncColos) -> None: +class AsyncColosResourceWithRawResponse: + def __init__(self, colos: AsyncColosResource) -> None: self._colos = colos self.list = async_to_raw_response_wrapper( @@ -178,8 +178,8 @@ def __init__(self, colos: AsyncColos) -> None: ) -class ColosWithStreamingResponse: - def __init__(self, colos: Colos) -> None: +class ColosResourceWithStreamingResponse: + def __init__(self, colos: ColosResource) -> None: self._colos = colos self.list = to_streamed_response_wrapper( @@ -187,8 +187,8 @@ def __init__(self, colos: Colos) -> None: ) -class AsyncColosWithStreamingResponse: - def __init__(self, colos: AsyncColos) -> None: +class AsyncColosResourceWithStreamingResponse: + def __init__(self, colos: AsyncColosResource) -> None: self._colos = colos self.list = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/zero_trust/dex/dex.py b/src/cloudflare/resources/zero_trust/dex/dex.py index 20d04b7ecaa..51c3e3dadf3 100644 --- a/src/cloudflare/resources/zero_trust/dex/dex.py +++ b/src/cloudflare/resources/zero_trust/dex/dex.py @@ -3,242 +3,245 @@ from __future__ import annotations from .colos import ( - Colos, - AsyncColos, - ColosWithRawResponse, - AsyncColosWithRawResponse, - ColosWithStreamingResponse, - AsyncColosWithStreamingResponse, + ColosResource, + AsyncColosResource, + ColosResourceWithRawResponse, + AsyncColosResourceWithRawResponse, + ColosResourceWithStreamingResponse, + AsyncColosResourceWithStreamingResponse, ) from .tests import ( - Tests, - AsyncTests, - TestsWithRawResponse, - AsyncTestsWithRawResponse, - TestsWithStreamingResponse, - AsyncTestsWithStreamingResponse, + TestsResource, + AsyncTestsResource, + TestsResourceWithRawResponse, + AsyncTestsResourceWithRawResponse, + TestsResourceWithStreamingResponse, + AsyncTestsResourceWithStreamingResponse, ) from ...._compat import cached_property from .http_tests import ( - HTTPTests, - AsyncHTTPTests, - HTTPTestsWithRawResponse, - AsyncHTTPTestsWithRawResponse, - HTTPTestsWithStreamingResponse, - AsyncHTTPTestsWithStreamingResponse, + HTTPTestsResource, + AsyncHTTPTestsResource, + HTTPTestsResourceWithRawResponse, + AsyncHTTPTestsResourceWithRawResponse, + HTTPTestsResourceWithStreamingResponse, + AsyncHTTPTestsResourceWithStreamingResponse, ) -from .tests.tests import Tests, AsyncTests +from .tests.tests import TestsResource, AsyncTestsResource from ...._resource import SyncAPIResource, AsyncAPIResource from .fleet_status import ( - FleetStatus, - AsyncFleetStatus, - FleetStatusWithRawResponse, - AsyncFleetStatusWithRawResponse, - FleetStatusWithStreamingResponse, - AsyncFleetStatusWithStreamingResponse, + FleetStatusResource, + AsyncFleetStatusResource, + FleetStatusResourceWithRawResponse, + AsyncFleetStatusResourceWithRawResponse, + FleetStatusResourceWithStreamingResponse, + AsyncFleetStatusResourceWithStreamingResponse, ) from .traceroute_tests import ( - TracerouteTests, - AsyncTracerouteTests, - TracerouteTestsWithRawResponse, - AsyncTracerouteTestsWithRawResponse, - TracerouteTestsWithStreamingResponse, - AsyncTracerouteTestsWithStreamingResponse, + TracerouteTestsResource, + AsyncTracerouteTestsResource, + TracerouteTestsResourceWithRawResponse, + AsyncTracerouteTestsResourceWithRawResponse, + TracerouteTestsResourceWithStreamingResponse, + AsyncTracerouteTestsResourceWithStreamingResponse, ) -from .http_tests.http_tests import HTTPTests, AsyncHTTPTests +from .http_tests.http_tests import HTTPTestsResource, AsyncHTTPTestsResource from .traceroute_test_results import ( - TracerouteTestResults, - AsyncTracerouteTestResults, - TracerouteTestResultsWithRawResponse, - AsyncTracerouteTestResultsWithRawResponse, - TracerouteTestResultsWithStreamingResponse, - AsyncTracerouteTestResultsWithStreamingResponse, + TracerouteTestResultsResource, + AsyncTracerouteTestResultsResource, + TracerouteTestResultsResourceWithRawResponse, + AsyncTracerouteTestResultsResourceWithRawResponse, + TracerouteTestResultsResourceWithStreamingResponse, + AsyncTracerouteTestResultsResourceWithStreamingResponse, +) +from .fleet_status.fleet_status import FleetStatusResource, AsyncFleetStatusResource +from .traceroute_test_results.traceroute_test_results import ( + TracerouteTestResultsResource, + AsyncTracerouteTestResultsResource, ) -from .fleet_status.fleet_status import FleetStatus, AsyncFleetStatus -from .traceroute_test_results.traceroute_test_results import TracerouteTestResults, AsyncTracerouteTestResults -__all__ = ["DEX", "AsyncDEX"] +__all__ = ["DEXResource", "AsyncDEXResource"] -class DEX(SyncAPIResource): +class DEXResource(SyncAPIResource): @cached_property - def colos(self) -> Colos: - return Colos(self._client) + def colos(self) -> ColosResource: + return ColosResource(self._client) @cached_property - def fleet_status(self) -> FleetStatus: - return FleetStatus(self._client) + def fleet_status(self) -> FleetStatusResource: + return FleetStatusResource(self._client) @cached_property - def http_tests(self) -> HTTPTests: - return HTTPTests(self._client) + def http_tests(self) -> HTTPTestsResource: + return HTTPTestsResource(self._client) @cached_property - def tests(self) -> Tests: - return Tests(self._client) + def tests(self) -> TestsResource: + return TestsResource(self._client) @cached_property - def traceroute_test_results(self) -> TracerouteTestResults: - return TracerouteTestResults(self._client) + def traceroute_test_results(self) -> TracerouteTestResultsResource: + return TracerouteTestResultsResource(self._client) @cached_property - def traceroute_tests(self) -> TracerouteTests: - return TracerouteTests(self._client) + def traceroute_tests(self) -> TracerouteTestsResource: + return TracerouteTestsResource(self._client) @cached_property - def with_raw_response(self) -> DEXWithRawResponse: - return DEXWithRawResponse(self) + def with_raw_response(self) -> DEXResourceWithRawResponse: + return DEXResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> DEXWithStreamingResponse: - return DEXWithStreamingResponse(self) + def with_streaming_response(self) -> DEXResourceWithStreamingResponse: + return DEXResourceWithStreamingResponse(self) -class AsyncDEX(AsyncAPIResource): +class AsyncDEXResource(AsyncAPIResource): @cached_property - def colos(self) -> AsyncColos: - return AsyncColos(self._client) + def colos(self) -> AsyncColosResource: + return AsyncColosResource(self._client) @cached_property - def fleet_status(self) -> AsyncFleetStatus: - return AsyncFleetStatus(self._client) + def fleet_status(self) -> AsyncFleetStatusResource: + return AsyncFleetStatusResource(self._client) @cached_property - def http_tests(self) -> AsyncHTTPTests: - return AsyncHTTPTests(self._client) + def http_tests(self) -> AsyncHTTPTestsResource: + return AsyncHTTPTestsResource(self._client) @cached_property - def tests(self) -> AsyncTests: - return AsyncTests(self._client) + def tests(self) -> AsyncTestsResource: + return AsyncTestsResource(self._client) @cached_property - def traceroute_test_results(self) -> AsyncTracerouteTestResults: - return AsyncTracerouteTestResults(self._client) + def traceroute_test_results(self) -> AsyncTracerouteTestResultsResource: + return AsyncTracerouteTestResultsResource(self._client) @cached_property - def traceroute_tests(self) -> AsyncTracerouteTests: - return AsyncTracerouteTests(self._client) + def traceroute_tests(self) -> AsyncTracerouteTestsResource: + return AsyncTracerouteTestsResource(self._client) @cached_property - def with_raw_response(self) -> AsyncDEXWithRawResponse: - return AsyncDEXWithRawResponse(self) + def with_raw_response(self) -> AsyncDEXResourceWithRawResponse: + return AsyncDEXResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncDEXWithStreamingResponse: - return AsyncDEXWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncDEXResourceWithStreamingResponse: + return AsyncDEXResourceWithStreamingResponse(self) -class DEXWithRawResponse: - def __init__(self, dex: DEX) -> None: +class DEXResourceWithRawResponse: + def __init__(self, dex: DEXResource) -> None: self._dex = dex @cached_property - def colos(self) -> ColosWithRawResponse: - return ColosWithRawResponse(self._dex.colos) + def colos(self) -> ColosResourceWithRawResponse: + return ColosResourceWithRawResponse(self._dex.colos) @cached_property - def fleet_status(self) -> FleetStatusWithRawResponse: - return FleetStatusWithRawResponse(self._dex.fleet_status) + def fleet_status(self) -> FleetStatusResourceWithRawResponse: + return FleetStatusResourceWithRawResponse(self._dex.fleet_status) @cached_property - def http_tests(self) -> HTTPTestsWithRawResponse: - return HTTPTestsWithRawResponse(self._dex.http_tests) + def http_tests(self) -> HTTPTestsResourceWithRawResponse: + return HTTPTestsResourceWithRawResponse(self._dex.http_tests) @cached_property - def tests(self) -> TestsWithRawResponse: - return TestsWithRawResponse(self._dex.tests) + def tests(self) -> TestsResourceWithRawResponse: + return TestsResourceWithRawResponse(self._dex.tests) @cached_property - def traceroute_test_results(self) -> TracerouteTestResultsWithRawResponse: - return TracerouteTestResultsWithRawResponse(self._dex.traceroute_test_results) + def traceroute_test_results(self) -> TracerouteTestResultsResourceWithRawResponse: + return TracerouteTestResultsResourceWithRawResponse(self._dex.traceroute_test_results) @cached_property - def traceroute_tests(self) -> TracerouteTestsWithRawResponse: - return TracerouteTestsWithRawResponse(self._dex.traceroute_tests) + def traceroute_tests(self) -> TracerouteTestsResourceWithRawResponse: + return TracerouteTestsResourceWithRawResponse(self._dex.traceroute_tests) -class AsyncDEXWithRawResponse: - def __init__(self, dex: AsyncDEX) -> None: +class AsyncDEXResourceWithRawResponse: + def __init__(self, dex: AsyncDEXResource) -> None: self._dex = dex @cached_property - def colos(self) -> AsyncColosWithRawResponse: - return AsyncColosWithRawResponse(self._dex.colos) + def colos(self) -> AsyncColosResourceWithRawResponse: + return AsyncColosResourceWithRawResponse(self._dex.colos) @cached_property - def fleet_status(self) -> AsyncFleetStatusWithRawResponse: - return AsyncFleetStatusWithRawResponse(self._dex.fleet_status) + def fleet_status(self) -> AsyncFleetStatusResourceWithRawResponse: + return AsyncFleetStatusResourceWithRawResponse(self._dex.fleet_status) @cached_property - def http_tests(self) -> AsyncHTTPTestsWithRawResponse: - return AsyncHTTPTestsWithRawResponse(self._dex.http_tests) + def http_tests(self) -> AsyncHTTPTestsResourceWithRawResponse: + return AsyncHTTPTestsResourceWithRawResponse(self._dex.http_tests) @cached_property - def tests(self) -> AsyncTestsWithRawResponse: - return AsyncTestsWithRawResponse(self._dex.tests) + def tests(self) -> AsyncTestsResourceWithRawResponse: + return AsyncTestsResourceWithRawResponse(self._dex.tests) @cached_property - def traceroute_test_results(self) -> AsyncTracerouteTestResultsWithRawResponse: - return AsyncTracerouteTestResultsWithRawResponse(self._dex.traceroute_test_results) + def traceroute_test_results(self) -> AsyncTracerouteTestResultsResourceWithRawResponse: + return AsyncTracerouteTestResultsResourceWithRawResponse(self._dex.traceroute_test_results) @cached_property - def traceroute_tests(self) -> AsyncTracerouteTestsWithRawResponse: - return AsyncTracerouteTestsWithRawResponse(self._dex.traceroute_tests) + def traceroute_tests(self) -> AsyncTracerouteTestsResourceWithRawResponse: + return AsyncTracerouteTestsResourceWithRawResponse(self._dex.traceroute_tests) -class DEXWithStreamingResponse: - def __init__(self, dex: DEX) -> None: +class DEXResourceWithStreamingResponse: + def __init__(self, dex: DEXResource) -> None: self._dex = dex @cached_property - def colos(self) -> ColosWithStreamingResponse: - return ColosWithStreamingResponse(self._dex.colos) + def colos(self) -> ColosResourceWithStreamingResponse: + return ColosResourceWithStreamingResponse(self._dex.colos) @cached_property - def fleet_status(self) -> FleetStatusWithStreamingResponse: - return FleetStatusWithStreamingResponse(self._dex.fleet_status) + def fleet_status(self) -> FleetStatusResourceWithStreamingResponse: + return FleetStatusResourceWithStreamingResponse(self._dex.fleet_status) @cached_property - def http_tests(self) -> HTTPTestsWithStreamingResponse: - return HTTPTestsWithStreamingResponse(self._dex.http_tests) + def http_tests(self) -> HTTPTestsResourceWithStreamingResponse: + return HTTPTestsResourceWithStreamingResponse(self._dex.http_tests) @cached_property - def tests(self) -> TestsWithStreamingResponse: - return TestsWithStreamingResponse(self._dex.tests) + def tests(self) -> TestsResourceWithStreamingResponse: + return TestsResourceWithStreamingResponse(self._dex.tests) @cached_property - def traceroute_test_results(self) -> TracerouteTestResultsWithStreamingResponse: - return TracerouteTestResultsWithStreamingResponse(self._dex.traceroute_test_results) + def traceroute_test_results(self) -> TracerouteTestResultsResourceWithStreamingResponse: + return TracerouteTestResultsResourceWithStreamingResponse(self._dex.traceroute_test_results) @cached_property - def traceroute_tests(self) -> TracerouteTestsWithStreamingResponse: - return TracerouteTestsWithStreamingResponse(self._dex.traceroute_tests) + def traceroute_tests(self) -> TracerouteTestsResourceWithStreamingResponse: + return TracerouteTestsResourceWithStreamingResponse(self._dex.traceroute_tests) -class AsyncDEXWithStreamingResponse: - def __init__(self, dex: AsyncDEX) -> None: +class AsyncDEXResourceWithStreamingResponse: + def __init__(self, dex: AsyncDEXResource) -> None: self._dex = dex @cached_property - def colos(self) -> AsyncColosWithStreamingResponse: - return AsyncColosWithStreamingResponse(self._dex.colos) + def colos(self) -> AsyncColosResourceWithStreamingResponse: + return AsyncColosResourceWithStreamingResponse(self._dex.colos) @cached_property - def fleet_status(self) -> AsyncFleetStatusWithStreamingResponse: - return AsyncFleetStatusWithStreamingResponse(self._dex.fleet_status) + def fleet_status(self) -> AsyncFleetStatusResourceWithStreamingResponse: + return AsyncFleetStatusResourceWithStreamingResponse(self._dex.fleet_status) @cached_property - def http_tests(self) -> AsyncHTTPTestsWithStreamingResponse: - return AsyncHTTPTestsWithStreamingResponse(self._dex.http_tests) + def http_tests(self) -> AsyncHTTPTestsResourceWithStreamingResponse: + return AsyncHTTPTestsResourceWithStreamingResponse(self._dex.http_tests) @cached_property - def tests(self) -> AsyncTestsWithStreamingResponse: - return AsyncTestsWithStreamingResponse(self._dex.tests) + def tests(self) -> AsyncTestsResourceWithStreamingResponse: + return AsyncTestsResourceWithStreamingResponse(self._dex.tests) @cached_property - def traceroute_test_results(self) -> AsyncTracerouteTestResultsWithStreamingResponse: - return AsyncTracerouteTestResultsWithStreamingResponse(self._dex.traceroute_test_results) + def traceroute_test_results(self) -> AsyncTracerouteTestResultsResourceWithStreamingResponse: + return AsyncTracerouteTestResultsResourceWithStreamingResponse(self._dex.traceroute_test_results) @cached_property - def traceroute_tests(self) -> AsyncTracerouteTestsWithStreamingResponse: - return AsyncTracerouteTestsWithStreamingResponse(self._dex.traceroute_tests) + def traceroute_tests(self) -> AsyncTracerouteTestsResourceWithStreamingResponse: + return AsyncTracerouteTestsResourceWithStreamingResponse(self._dex.traceroute_tests) diff --git a/src/cloudflare/resources/zero_trust/dex/fleet_status/__init__.py b/src/cloudflare/resources/zero_trust/dex/fleet_status/__init__.py index f0d4513677d..7d9516cc125 100644 --- a/src/cloudflare/resources/zero_trust/dex/fleet_status/__init__.py +++ b/src/cloudflare/resources/zero_trust/dex/fleet_status/__init__.py @@ -1,33 +1,33 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from .devices import ( - Devices, - AsyncDevices, - DevicesWithRawResponse, - AsyncDevicesWithRawResponse, - DevicesWithStreamingResponse, - AsyncDevicesWithStreamingResponse, + DevicesResource, + AsyncDevicesResource, + DevicesResourceWithRawResponse, + AsyncDevicesResourceWithRawResponse, + DevicesResourceWithStreamingResponse, + AsyncDevicesResourceWithStreamingResponse, ) from .fleet_status import ( - FleetStatus, - AsyncFleetStatus, - FleetStatusWithRawResponse, - AsyncFleetStatusWithRawResponse, - FleetStatusWithStreamingResponse, - AsyncFleetStatusWithStreamingResponse, + FleetStatusResource, + AsyncFleetStatusResource, + FleetStatusResourceWithRawResponse, + AsyncFleetStatusResourceWithRawResponse, + FleetStatusResourceWithStreamingResponse, + AsyncFleetStatusResourceWithStreamingResponse, ) __all__ = [ - "Devices", - "AsyncDevices", - "DevicesWithRawResponse", - "AsyncDevicesWithRawResponse", - "DevicesWithStreamingResponse", - "AsyncDevicesWithStreamingResponse", - "FleetStatus", - "AsyncFleetStatus", - "FleetStatusWithRawResponse", - "AsyncFleetStatusWithRawResponse", - "FleetStatusWithStreamingResponse", - "AsyncFleetStatusWithStreamingResponse", + "DevicesResource", + "AsyncDevicesResource", + "DevicesResourceWithRawResponse", + "AsyncDevicesResourceWithRawResponse", + "DevicesResourceWithStreamingResponse", + "AsyncDevicesResourceWithStreamingResponse", + "FleetStatusResource", + "AsyncFleetStatusResource", + "FleetStatusResourceWithRawResponse", + "AsyncFleetStatusResourceWithRawResponse", + "FleetStatusResourceWithStreamingResponse", + "AsyncFleetStatusResourceWithStreamingResponse", ] diff --git a/src/cloudflare/resources/zero_trust/dex/fleet_status/devices.py b/src/cloudflare/resources/zero_trust/dex/fleet_status/devices.py index 3b8521a9720..34a786574f9 100644 --- a/src/cloudflare/resources/zero_trust/dex/fleet_status/devices.py +++ b/src/cloudflare/resources/zero_trust/dex/fleet_status/devices.py @@ -24,17 +24,17 @@ from .....types.zero_trust.dex.fleet_status import device_list_params from .....types.zero_trust.dex.fleet_status.device_list_response import DeviceListResponse -__all__ = ["Devices", "AsyncDevices"] +__all__ = ["DevicesResource", "AsyncDevicesResource"] -class Devices(SyncAPIResource): +class DevicesResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> DevicesWithRawResponse: - return DevicesWithRawResponse(self) + def with_raw_response(self) -> DevicesResourceWithRawResponse: + return DevicesResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> DevicesWithStreamingResponse: - return DevicesWithStreamingResponse(self) + def with_streaming_response(self) -> DevicesResourceWithStreamingResponse: + return DevicesResourceWithStreamingResponse(self) def list( self, @@ -124,14 +124,14 @@ def list( ) -class AsyncDevices(AsyncAPIResource): +class AsyncDevicesResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncDevicesWithRawResponse: - return AsyncDevicesWithRawResponse(self) + def with_raw_response(self) -> AsyncDevicesResourceWithRawResponse: + return AsyncDevicesResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncDevicesWithStreamingResponse: - return AsyncDevicesWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncDevicesResourceWithStreamingResponse: + return AsyncDevicesResourceWithStreamingResponse(self) def list( self, @@ -221,8 +221,8 @@ def list( ) -class DevicesWithRawResponse: - def __init__(self, devices: Devices) -> None: +class DevicesResourceWithRawResponse: + def __init__(self, devices: DevicesResource) -> None: self._devices = devices self.list = to_raw_response_wrapper( @@ -230,8 +230,8 @@ def __init__(self, devices: Devices) -> None: ) -class AsyncDevicesWithRawResponse: - def __init__(self, devices: AsyncDevices) -> None: +class AsyncDevicesResourceWithRawResponse: + def __init__(self, devices: AsyncDevicesResource) -> None: self._devices = devices self.list = async_to_raw_response_wrapper( @@ -239,8 +239,8 @@ def __init__(self, devices: AsyncDevices) -> None: ) -class DevicesWithStreamingResponse: - def __init__(self, devices: Devices) -> None: +class DevicesResourceWithStreamingResponse: + def __init__(self, devices: DevicesResource) -> None: self._devices = devices self.list = to_streamed_response_wrapper( @@ -248,8 +248,8 @@ def __init__(self, devices: Devices) -> None: ) -class AsyncDevicesWithStreamingResponse: - def __init__(self, devices: AsyncDevices) -> None: +class AsyncDevicesResourceWithStreamingResponse: + def __init__(self, devices: AsyncDevicesResource) -> None: self._devices = devices self.list = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/zero_trust/dex/fleet_status/fleet_status.py b/src/cloudflare/resources/zero_trust/dex/fleet_status/fleet_status.py index 4c18b0c394b..23033b3ea99 100644 --- a/src/cloudflare/resources/zero_trust/dex/fleet_status/fleet_status.py +++ b/src/cloudflare/resources/zero_trust/dex/fleet_status/fleet_status.py @@ -7,12 +7,12 @@ import httpx from .devices import ( - Devices, - AsyncDevices, - DevicesWithRawResponse, - AsyncDevicesWithRawResponse, - DevicesWithStreamingResponse, - AsyncDevicesWithStreamingResponse, + DevicesResource, + AsyncDevicesResource, + DevicesResourceWithRawResponse, + AsyncDevicesResourceWithRawResponse, + DevicesResourceWithStreamingResponse, + AsyncDevicesResourceWithStreamingResponse, ) from ....._types import NOT_GIVEN, Body, Query, Headers, NoneType, NotGiven from ....._utils import ( @@ -34,21 +34,21 @@ from .....types.zero_trust.dex import fleet_status_live_params, fleet_status_over_time_params from .....types.zero_trust.dex.fleet_status_live_response import FleetStatusLiveResponse -__all__ = ["FleetStatus", "AsyncFleetStatus"] +__all__ = ["FleetStatusResource", "AsyncFleetStatusResource"] -class FleetStatus(SyncAPIResource): +class FleetStatusResource(SyncAPIResource): @cached_property - def devices(self) -> Devices: - return Devices(self._client) + def devices(self) -> DevicesResource: + return DevicesResource(self._client) @cached_property - def with_raw_response(self) -> FleetStatusWithRawResponse: - return FleetStatusWithRawResponse(self) + def with_raw_response(self) -> FleetStatusResourceWithRawResponse: + return FleetStatusResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> FleetStatusWithStreamingResponse: - return FleetStatusWithStreamingResponse(self) + def with_streaming_response(self) -> FleetStatusResourceWithStreamingResponse: + return FleetStatusResourceWithStreamingResponse(self) def live( self, @@ -150,18 +150,18 @@ def over_time( ) -class AsyncFleetStatus(AsyncAPIResource): +class AsyncFleetStatusResource(AsyncAPIResource): @cached_property - def devices(self) -> AsyncDevices: - return AsyncDevices(self._client) + def devices(self) -> AsyncDevicesResource: + return AsyncDevicesResource(self._client) @cached_property - def with_raw_response(self) -> AsyncFleetStatusWithRawResponse: - return AsyncFleetStatusWithRawResponse(self) + def with_raw_response(self) -> AsyncFleetStatusResourceWithRawResponse: + return AsyncFleetStatusResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncFleetStatusWithStreamingResponse: - return AsyncFleetStatusWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncFleetStatusResourceWithStreamingResponse: + return AsyncFleetStatusResourceWithStreamingResponse(self) async def live( self, @@ -265,8 +265,8 @@ async def over_time( ) -class FleetStatusWithRawResponse: - def __init__(self, fleet_status: FleetStatus) -> None: +class FleetStatusResourceWithRawResponse: + def __init__(self, fleet_status: FleetStatusResource) -> None: self._fleet_status = fleet_status self.live = to_raw_response_wrapper( @@ -277,12 +277,12 @@ def __init__(self, fleet_status: FleetStatus) -> None: ) @cached_property - def devices(self) -> DevicesWithRawResponse: - return DevicesWithRawResponse(self._fleet_status.devices) + def devices(self) -> DevicesResourceWithRawResponse: + return DevicesResourceWithRawResponse(self._fleet_status.devices) -class AsyncFleetStatusWithRawResponse: - def __init__(self, fleet_status: AsyncFleetStatus) -> None: +class AsyncFleetStatusResourceWithRawResponse: + def __init__(self, fleet_status: AsyncFleetStatusResource) -> None: self._fleet_status = fleet_status self.live = async_to_raw_response_wrapper( @@ -293,12 +293,12 @@ def __init__(self, fleet_status: AsyncFleetStatus) -> None: ) @cached_property - def devices(self) -> AsyncDevicesWithRawResponse: - return AsyncDevicesWithRawResponse(self._fleet_status.devices) + def devices(self) -> AsyncDevicesResourceWithRawResponse: + return AsyncDevicesResourceWithRawResponse(self._fleet_status.devices) -class FleetStatusWithStreamingResponse: - def __init__(self, fleet_status: FleetStatus) -> None: +class FleetStatusResourceWithStreamingResponse: + def __init__(self, fleet_status: FleetStatusResource) -> None: self._fleet_status = fleet_status self.live = to_streamed_response_wrapper( @@ -309,12 +309,12 @@ def __init__(self, fleet_status: FleetStatus) -> None: ) @cached_property - def devices(self) -> DevicesWithStreamingResponse: - return DevicesWithStreamingResponse(self._fleet_status.devices) + def devices(self) -> DevicesResourceWithStreamingResponse: + return DevicesResourceWithStreamingResponse(self._fleet_status.devices) -class AsyncFleetStatusWithStreamingResponse: - def __init__(self, fleet_status: AsyncFleetStatus) -> None: +class AsyncFleetStatusResourceWithStreamingResponse: + def __init__(self, fleet_status: AsyncFleetStatusResource) -> None: self._fleet_status = fleet_status self.live = async_to_streamed_response_wrapper( @@ -325,5 +325,5 @@ def __init__(self, fleet_status: AsyncFleetStatus) -> None: ) @cached_property - def devices(self) -> AsyncDevicesWithStreamingResponse: - return AsyncDevicesWithStreamingResponse(self._fleet_status.devices) + def devices(self) -> AsyncDevicesResourceWithStreamingResponse: + return AsyncDevicesResourceWithStreamingResponse(self._fleet_status.devices) diff --git a/src/cloudflare/resources/zero_trust/dex/http_tests/__init__.py b/src/cloudflare/resources/zero_trust/dex/http_tests/__init__.py index 842d182cff0..f2d51e982be 100644 --- a/src/cloudflare/resources/zero_trust/dex/http_tests/__init__.py +++ b/src/cloudflare/resources/zero_trust/dex/http_tests/__init__.py @@ -1,33 +1,33 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from .http_tests import ( - HTTPTests, - AsyncHTTPTests, - HTTPTestsWithRawResponse, - AsyncHTTPTestsWithRawResponse, - HTTPTestsWithStreamingResponse, - AsyncHTTPTestsWithStreamingResponse, + HTTPTestsResource, + AsyncHTTPTestsResource, + HTTPTestsResourceWithRawResponse, + AsyncHTTPTestsResourceWithRawResponse, + HTTPTestsResourceWithStreamingResponse, + AsyncHTTPTestsResourceWithStreamingResponse, ) from .percentiles import ( - Percentiles, - AsyncPercentiles, - PercentilesWithRawResponse, - AsyncPercentilesWithRawResponse, - PercentilesWithStreamingResponse, - AsyncPercentilesWithStreamingResponse, + PercentilesResource, + AsyncPercentilesResource, + PercentilesResourceWithRawResponse, + AsyncPercentilesResourceWithRawResponse, + PercentilesResourceWithStreamingResponse, + AsyncPercentilesResourceWithStreamingResponse, ) __all__ = [ - "Percentiles", - "AsyncPercentiles", - "PercentilesWithRawResponse", - "AsyncPercentilesWithRawResponse", - "PercentilesWithStreamingResponse", - "AsyncPercentilesWithStreamingResponse", - "HTTPTests", - "AsyncHTTPTests", - "HTTPTestsWithRawResponse", - "AsyncHTTPTestsWithRawResponse", - "HTTPTestsWithStreamingResponse", - "AsyncHTTPTestsWithStreamingResponse", + "PercentilesResource", + "AsyncPercentilesResource", + "PercentilesResourceWithRawResponse", + "AsyncPercentilesResourceWithRawResponse", + "PercentilesResourceWithStreamingResponse", + "AsyncPercentilesResourceWithStreamingResponse", + "HTTPTestsResource", + "AsyncHTTPTestsResource", + "HTTPTestsResourceWithRawResponse", + "AsyncHTTPTestsResourceWithRawResponse", + "HTTPTestsResourceWithStreamingResponse", + "AsyncHTTPTestsResourceWithStreamingResponse", ] diff --git a/src/cloudflare/resources/zero_trust/dex/http_tests/http_tests.py b/src/cloudflare/resources/zero_trust/dex/http_tests/http_tests.py index 6cc79e85eea..31b71442618 100644 --- a/src/cloudflare/resources/zero_trust/dex/http_tests/http_tests.py +++ b/src/cloudflare/resources/zero_trust/dex/http_tests/http_tests.py @@ -14,12 +14,12 @@ ) from ....._compat import cached_property from .percentiles import ( - Percentiles, - AsyncPercentiles, - PercentilesWithRawResponse, - AsyncPercentilesWithRawResponse, - PercentilesWithStreamingResponse, - AsyncPercentilesWithStreamingResponse, + PercentilesResource, + AsyncPercentilesResource, + PercentilesResourceWithRawResponse, + AsyncPercentilesResourceWithRawResponse, + PercentilesResourceWithStreamingResponse, + AsyncPercentilesResourceWithStreamingResponse, ) from ....._resource import SyncAPIResource, AsyncAPIResource from ....._response import ( @@ -35,21 +35,21 @@ from .....types.zero_trust.dex import http_test_get_params from .....types.zero_trust.dex.http_details import HTTPDetails -__all__ = ["HTTPTests", "AsyncHTTPTests"] +__all__ = ["HTTPTestsResource", "AsyncHTTPTestsResource"] -class HTTPTests(SyncAPIResource): +class HTTPTestsResource(SyncAPIResource): @cached_property - def percentiles(self) -> Percentiles: - return Percentiles(self._client) + def percentiles(self) -> PercentilesResource: + return PercentilesResource(self._client) @cached_property - def with_raw_response(self) -> HTTPTestsWithRawResponse: - return HTTPTestsWithRawResponse(self) + def with_raw_response(self) -> HTTPTestsResourceWithRawResponse: + return HTTPTestsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> HTTPTestsWithStreamingResponse: - return HTTPTestsWithStreamingResponse(self) + def with_streaming_response(self) -> HTTPTestsResourceWithStreamingResponse: + return HTTPTestsResourceWithStreamingResponse(self) def get( self, @@ -122,18 +122,18 @@ def get( ) -class AsyncHTTPTests(AsyncAPIResource): +class AsyncHTTPTestsResource(AsyncAPIResource): @cached_property - def percentiles(self) -> AsyncPercentiles: - return AsyncPercentiles(self._client) + def percentiles(self) -> AsyncPercentilesResource: + return AsyncPercentilesResource(self._client) @cached_property - def with_raw_response(self) -> AsyncHTTPTestsWithRawResponse: - return AsyncHTTPTestsWithRawResponse(self) + def with_raw_response(self) -> AsyncHTTPTestsResourceWithRawResponse: + return AsyncHTTPTestsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncHTTPTestsWithStreamingResponse: - return AsyncHTTPTestsWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncHTTPTestsResourceWithStreamingResponse: + return AsyncHTTPTestsResourceWithStreamingResponse(self) async def get( self, @@ -206,8 +206,8 @@ async def get( ) -class HTTPTestsWithRawResponse: - def __init__(self, http_tests: HTTPTests) -> None: +class HTTPTestsResourceWithRawResponse: + def __init__(self, http_tests: HTTPTestsResource) -> None: self._http_tests = http_tests self.get = to_raw_response_wrapper( @@ -215,12 +215,12 @@ def __init__(self, http_tests: HTTPTests) -> None: ) @cached_property - def percentiles(self) -> PercentilesWithRawResponse: - return PercentilesWithRawResponse(self._http_tests.percentiles) + def percentiles(self) -> PercentilesResourceWithRawResponse: + return PercentilesResourceWithRawResponse(self._http_tests.percentiles) -class AsyncHTTPTestsWithRawResponse: - def __init__(self, http_tests: AsyncHTTPTests) -> None: +class AsyncHTTPTestsResourceWithRawResponse: + def __init__(self, http_tests: AsyncHTTPTestsResource) -> None: self._http_tests = http_tests self.get = async_to_raw_response_wrapper( @@ -228,12 +228,12 @@ def __init__(self, http_tests: AsyncHTTPTests) -> None: ) @cached_property - def percentiles(self) -> AsyncPercentilesWithRawResponse: - return AsyncPercentilesWithRawResponse(self._http_tests.percentiles) + def percentiles(self) -> AsyncPercentilesResourceWithRawResponse: + return AsyncPercentilesResourceWithRawResponse(self._http_tests.percentiles) -class HTTPTestsWithStreamingResponse: - def __init__(self, http_tests: HTTPTests) -> None: +class HTTPTestsResourceWithStreamingResponse: + def __init__(self, http_tests: HTTPTestsResource) -> None: self._http_tests = http_tests self.get = to_streamed_response_wrapper( @@ -241,12 +241,12 @@ def __init__(self, http_tests: HTTPTests) -> None: ) @cached_property - def percentiles(self) -> PercentilesWithStreamingResponse: - return PercentilesWithStreamingResponse(self._http_tests.percentiles) + def percentiles(self) -> PercentilesResourceWithStreamingResponse: + return PercentilesResourceWithStreamingResponse(self._http_tests.percentiles) -class AsyncHTTPTestsWithStreamingResponse: - def __init__(self, http_tests: AsyncHTTPTests) -> None: +class AsyncHTTPTestsResourceWithStreamingResponse: + def __init__(self, http_tests: AsyncHTTPTestsResource) -> None: self._http_tests = http_tests self.get = async_to_streamed_response_wrapper( @@ -254,5 +254,5 @@ def __init__(self, http_tests: AsyncHTTPTests) -> None: ) @cached_property - def percentiles(self) -> AsyncPercentilesWithStreamingResponse: - return AsyncPercentilesWithStreamingResponse(self._http_tests.percentiles) + def percentiles(self) -> AsyncPercentilesResourceWithStreamingResponse: + return AsyncPercentilesResourceWithStreamingResponse(self._http_tests.percentiles) diff --git a/src/cloudflare/resources/zero_trust/dex/http_tests/percentiles.py b/src/cloudflare/resources/zero_trust/dex/http_tests/percentiles.py index 483481657f0..b8b4330a11c 100644 --- a/src/cloudflare/resources/zero_trust/dex/http_tests/percentiles.py +++ b/src/cloudflare/resources/zero_trust/dex/http_tests/percentiles.py @@ -26,17 +26,17 @@ from .....types.zero_trust.dex.http_tests import percentile_get_params from .....types.zero_trust.dex.http_tests.http_details_percentiles import HTTPDetailsPercentiles -__all__ = ["Percentiles", "AsyncPercentiles"] +__all__ = ["PercentilesResource", "AsyncPercentilesResource"] -class Percentiles(SyncAPIResource): +class PercentilesResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> PercentilesWithRawResponse: - return PercentilesWithRawResponse(self) + def with_raw_response(self) -> PercentilesResourceWithRawResponse: + return PercentilesResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> PercentilesWithStreamingResponse: - return PercentilesWithStreamingResponse(self) + def with_streaming_response(self) -> PercentilesResourceWithStreamingResponse: + return PercentilesResourceWithStreamingResponse(self) def get( self, @@ -105,14 +105,14 @@ def get( ) -class AsyncPercentiles(AsyncAPIResource): +class AsyncPercentilesResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncPercentilesWithRawResponse: - return AsyncPercentilesWithRawResponse(self) + def with_raw_response(self) -> AsyncPercentilesResourceWithRawResponse: + return AsyncPercentilesResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncPercentilesWithStreamingResponse: - return AsyncPercentilesWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncPercentilesResourceWithStreamingResponse: + return AsyncPercentilesResourceWithStreamingResponse(self) async def get( self, @@ -181,8 +181,8 @@ async def get( ) -class PercentilesWithRawResponse: - def __init__(self, percentiles: Percentiles) -> None: +class PercentilesResourceWithRawResponse: + def __init__(self, percentiles: PercentilesResource) -> None: self._percentiles = percentiles self.get = to_raw_response_wrapper( @@ -190,8 +190,8 @@ def __init__(self, percentiles: Percentiles) -> None: ) -class AsyncPercentilesWithRawResponse: - def __init__(self, percentiles: AsyncPercentiles) -> None: +class AsyncPercentilesResourceWithRawResponse: + def __init__(self, percentiles: AsyncPercentilesResource) -> None: self._percentiles = percentiles self.get = async_to_raw_response_wrapper( @@ -199,8 +199,8 @@ def __init__(self, percentiles: AsyncPercentiles) -> None: ) -class PercentilesWithStreamingResponse: - def __init__(self, percentiles: Percentiles) -> None: +class PercentilesResourceWithStreamingResponse: + def __init__(self, percentiles: PercentilesResource) -> None: self._percentiles = percentiles self.get = to_streamed_response_wrapper( @@ -208,8 +208,8 @@ def __init__(self, percentiles: Percentiles) -> None: ) -class AsyncPercentilesWithStreamingResponse: - def __init__(self, percentiles: AsyncPercentiles) -> None: +class AsyncPercentilesResourceWithStreamingResponse: + def __init__(self, percentiles: AsyncPercentilesResource) -> None: self._percentiles = percentiles self.get = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/zero_trust/dex/tests/__init__.py b/src/cloudflare/resources/zero_trust/dex/tests/__init__.py index 693f7b88a37..ab45ccf229c 100644 --- a/src/cloudflare/resources/zero_trust/dex/tests/__init__.py +++ b/src/cloudflare/resources/zero_trust/dex/tests/__init__.py @@ -1,33 +1,33 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from .tests import ( - Tests, - AsyncTests, - TestsWithRawResponse, - AsyncTestsWithRawResponse, - TestsWithStreamingResponse, - AsyncTestsWithStreamingResponse, + TestsResource, + AsyncTestsResource, + TestsResourceWithRawResponse, + AsyncTestsResourceWithRawResponse, + TestsResourceWithStreamingResponse, + AsyncTestsResourceWithStreamingResponse, ) from .unique_devices import ( - UniqueDevices, - AsyncUniqueDevices, - UniqueDevicesWithRawResponse, - AsyncUniqueDevicesWithRawResponse, - UniqueDevicesWithStreamingResponse, - AsyncUniqueDevicesWithStreamingResponse, + UniqueDevicesResource, + AsyncUniqueDevicesResource, + UniqueDevicesResourceWithRawResponse, + AsyncUniqueDevicesResourceWithRawResponse, + UniqueDevicesResourceWithStreamingResponse, + AsyncUniqueDevicesResourceWithStreamingResponse, ) __all__ = [ - "UniqueDevices", - "AsyncUniqueDevices", - "UniqueDevicesWithRawResponse", - "AsyncUniqueDevicesWithRawResponse", - "UniqueDevicesWithStreamingResponse", - "AsyncUniqueDevicesWithStreamingResponse", - "Tests", - "AsyncTests", - "TestsWithRawResponse", - "AsyncTestsWithRawResponse", - "TestsWithStreamingResponse", - "AsyncTestsWithStreamingResponse", + "UniqueDevicesResource", + "AsyncUniqueDevicesResource", + "UniqueDevicesResourceWithRawResponse", + "AsyncUniqueDevicesResourceWithRawResponse", + "UniqueDevicesResourceWithStreamingResponse", + "AsyncUniqueDevicesResourceWithStreamingResponse", + "TestsResource", + "AsyncTestsResource", + "TestsResourceWithRawResponse", + "AsyncTestsResourceWithRawResponse", + "TestsResourceWithStreamingResponse", + "AsyncTestsResourceWithStreamingResponse", ] diff --git a/src/cloudflare/resources/zero_trust/dex/tests/tests.py b/src/cloudflare/resources/zero_trust/dex/tests/tests.py index 6aa012ccc36..b13668e0746 100644 --- a/src/cloudflare/resources/zero_trust/dex/tests/tests.py +++ b/src/cloudflare/resources/zero_trust/dex/tests/tests.py @@ -18,12 +18,12 @@ ) from .....pagination import SyncV4PagePagination, AsyncV4PagePagination from .unique_devices import ( - UniqueDevices, - AsyncUniqueDevices, - UniqueDevicesWithRawResponse, - AsyncUniqueDevicesWithRawResponse, - UniqueDevicesWithStreamingResponse, - AsyncUniqueDevicesWithStreamingResponse, + UniqueDevicesResource, + AsyncUniqueDevicesResource, + UniqueDevicesResourceWithRawResponse, + AsyncUniqueDevicesResourceWithRawResponse, + UniqueDevicesResourceWithStreamingResponse, + AsyncUniqueDevicesResourceWithStreamingResponse, ) from ....._base_client import ( AsyncPaginator, @@ -32,23 +32,23 @@ from .....types.zero_trust.dex import test_list_params from .....types.zero_trust.dex.test_list_response import TestListResponse -__all__ = ["Tests", "AsyncTests"] +__all__ = ["TestsResource", "AsyncTestsResource"] -class Tests(SyncAPIResource): +class TestsResource(SyncAPIResource): __test__ = False @cached_property - def unique_devices(self) -> UniqueDevices: - return UniqueDevices(self._client) + def unique_devices(self) -> UniqueDevicesResource: + return UniqueDevicesResource(self._client) @cached_property - def with_raw_response(self) -> TestsWithRawResponse: - return TestsWithRawResponse(self) + def with_raw_response(self) -> TestsResourceWithRawResponse: + return TestsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> TestsWithStreamingResponse: - return TestsWithStreamingResponse(self) + def with_streaming_response(self) -> TestsResourceWithStreamingResponse: + return TestsResourceWithStreamingResponse(self) def list( self, @@ -115,18 +115,18 @@ def list( ) -class AsyncTests(AsyncAPIResource): +class AsyncTestsResource(AsyncAPIResource): @cached_property - def unique_devices(self) -> AsyncUniqueDevices: - return AsyncUniqueDevices(self._client) + def unique_devices(self) -> AsyncUniqueDevicesResource: + return AsyncUniqueDevicesResource(self._client) @cached_property - def with_raw_response(self) -> AsyncTestsWithRawResponse: - return AsyncTestsWithRawResponse(self) + def with_raw_response(self) -> AsyncTestsResourceWithRawResponse: + return AsyncTestsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncTestsWithStreamingResponse: - return AsyncTestsWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncTestsResourceWithStreamingResponse: + return AsyncTestsResourceWithStreamingResponse(self) def list( self, @@ -193,10 +193,10 @@ def list( ) -class TestsWithRawResponse: +class TestsResourceWithRawResponse: __test__ = False - def __init__(self, tests: Tests) -> None: + def __init__(self, tests: TestsResource) -> None: self._tests = tests self.list = to_raw_response_wrapper( @@ -204,12 +204,12 @@ def __init__(self, tests: Tests) -> None: ) @cached_property - def unique_devices(self) -> UniqueDevicesWithRawResponse: - return UniqueDevicesWithRawResponse(self._tests.unique_devices) + def unique_devices(self) -> UniqueDevicesResourceWithRawResponse: + return UniqueDevicesResourceWithRawResponse(self._tests.unique_devices) -class AsyncTestsWithRawResponse: - def __init__(self, tests: AsyncTests) -> None: +class AsyncTestsResourceWithRawResponse: + def __init__(self, tests: AsyncTestsResource) -> None: self._tests = tests self.list = async_to_raw_response_wrapper( @@ -217,14 +217,14 @@ def __init__(self, tests: AsyncTests) -> None: ) @cached_property - def unique_devices(self) -> AsyncUniqueDevicesWithRawResponse: - return AsyncUniqueDevicesWithRawResponse(self._tests.unique_devices) + def unique_devices(self) -> AsyncUniqueDevicesResourceWithRawResponse: + return AsyncUniqueDevicesResourceWithRawResponse(self._tests.unique_devices) -class TestsWithStreamingResponse: +class TestsResourceWithStreamingResponse: __test__ = False - def __init__(self, tests: Tests) -> None: + def __init__(self, tests: TestsResource) -> None: self._tests = tests self.list = to_streamed_response_wrapper( @@ -232,12 +232,12 @@ def __init__(self, tests: Tests) -> None: ) @cached_property - def unique_devices(self) -> UniqueDevicesWithStreamingResponse: - return UniqueDevicesWithStreamingResponse(self._tests.unique_devices) + def unique_devices(self) -> UniqueDevicesResourceWithStreamingResponse: + return UniqueDevicesResourceWithStreamingResponse(self._tests.unique_devices) -class AsyncTestsWithStreamingResponse: - def __init__(self, tests: AsyncTests) -> None: +class AsyncTestsResourceWithStreamingResponse: + def __init__(self, tests: AsyncTestsResource) -> None: self._tests = tests self.list = async_to_streamed_response_wrapper( @@ -245,5 +245,5 @@ def __init__(self, tests: AsyncTests) -> None: ) @cached_property - def unique_devices(self) -> AsyncUniqueDevicesWithStreamingResponse: - return AsyncUniqueDevicesWithStreamingResponse(self._tests.unique_devices) + def unique_devices(self) -> AsyncUniqueDevicesResourceWithStreamingResponse: + return AsyncUniqueDevicesResourceWithStreamingResponse(self._tests.unique_devices) diff --git a/src/cloudflare/resources/zero_trust/dex/tests/unique_devices.py b/src/cloudflare/resources/zero_trust/dex/tests/unique_devices.py index d9e593041cc..2f42ec7c808 100644 --- a/src/cloudflare/resources/zero_trust/dex/tests/unique_devices.py +++ b/src/cloudflare/resources/zero_trust/dex/tests/unique_devices.py @@ -23,19 +23,20 @@ from ....._base_client import ( make_request_options, ) -from .....types.zero_trust.dex.tests import unique_devices, unique_device_list_params +from .....types.zero_trust.dex.tests import unique_device_list_params +from .....types.zero_trust.dex.tests.unique_devices import UniqueDevices -__all__ = ["UniqueDevices", "AsyncUniqueDevices"] +__all__ = ["UniqueDevicesResource", "AsyncUniqueDevicesResource"] -class UniqueDevices(SyncAPIResource): +class UniqueDevicesResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> UniqueDevicesWithRawResponse: - return UniqueDevicesWithRawResponse(self) + def with_raw_response(self) -> UniqueDevicesResourceWithRawResponse: + return UniqueDevicesResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> UniqueDevicesWithStreamingResponse: - return UniqueDevicesWithStreamingResponse(self) + def with_streaming_response(self) -> UniqueDevicesResourceWithStreamingResponse: + return UniqueDevicesResourceWithStreamingResponse(self) def list( self, @@ -49,7 +50,7 @@ def list( extra_query: Query | None = None, extra_body: Body | None = None, timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, - ) -> Optional[unique_devices.UniqueDevices]: + ) -> Optional[UniqueDevices]: """ Returns unique count of devices that have run synthetic application monitoring tests in the past 7 days. @@ -84,20 +85,20 @@ def list( }, unique_device_list_params.UniqueDeviceListParams, ), - post_parser=ResultWrapper[Optional[unique_devices.UniqueDevices]]._unwrapper, + post_parser=ResultWrapper[Optional[UniqueDevices]]._unwrapper, ), - cast_to=cast(Type[Optional[unique_devices.UniqueDevices]], ResultWrapper[unique_devices.UniqueDevices]), + cast_to=cast(Type[Optional[UniqueDevices]], ResultWrapper[UniqueDevices]), ) -class AsyncUniqueDevices(AsyncAPIResource): +class AsyncUniqueDevicesResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncUniqueDevicesWithRawResponse: - return AsyncUniqueDevicesWithRawResponse(self) + def with_raw_response(self) -> AsyncUniqueDevicesResourceWithRawResponse: + return AsyncUniqueDevicesResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncUniqueDevicesWithStreamingResponse: - return AsyncUniqueDevicesWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncUniqueDevicesResourceWithStreamingResponse: + return AsyncUniqueDevicesResourceWithStreamingResponse(self) async def list( self, @@ -111,7 +112,7 @@ async def list( extra_query: Query | None = None, extra_body: Body | None = None, timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, - ) -> Optional[unique_devices.UniqueDevices]: + ) -> Optional[UniqueDevices]: """ Returns unique count of devices that have run synthetic application monitoring tests in the past 7 days. @@ -146,14 +147,14 @@ async def list( }, unique_device_list_params.UniqueDeviceListParams, ), - post_parser=ResultWrapper[Optional[unique_devices.UniqueDevices]]._unwrapper, + post_parser=ResultWrapper[Optional[UniqueDevices]]._unwrapper, ), - cast_to=cast(Type[Optional[unique_devices.UniqueDevices]], ResultWrapper[unique_devices.UniqueDevices]), + cast_to=cast(Type[Optional[UniqueDevices]], ResultWrapper[UniqueDevices]), ) -class UniqueDevicesWithRawResponse: - def __init__(self, unique_devices: UniqueDevices) -> None: +class UniqueDevicesResourceWithRawResponse: + def __init__(self, unique_devices: UniqueDevicesResource) -> None: self._unique_devices = unique_devices self.list = to_raw_response_wrapper( @@ -161,8 +162,8 @@ def __init__(self, unique_devices: UniqueDevices) -> None: ) -class AsyncUniqueDevicesWithRawResponse: - def __init__(self, unique_devices: AsyncUniqueDevices) -> None: +class AsyncUniqueDevicesResourceWithRawResponse: + def __init__(self, unique_devices: AsyncUniqueDevicesResource) -> None: self._unique_devices = unique_devices self.list = async_to_raw_response_wrapper( @@ -170,8 +171,8 @@ def __init__(self, unique_devices: AsyncUniqueDevices) -> None: ) -class UniqueDevicesWithStreamingResponse: - def __init__(self, unique_devices: UniqueDevices) -> None: +class UniqueDevicesResourceWithStreamingResponse: + def __init__(self, unique_devices: UniqueDevicesResource) -> None: self._unique_devices = unique_devices self.list = to_streamed_response_wrapper( @@ -179,8 +180,8 @@ def __init__(self, unique_devices: UniqueDevices) -> None: ) -class AsyncUniqueDevicesWithStreamingResponse: - def __init__(self, unique_devices: AsyncUniqueDevices) -> None: +class AsyncUniqueDevicesResourceWithStreamingResponse: + def __init__(self, unique_devices: AsyncUniqueDevicesResource) -> None: self._unique_devices = unique_devices self.list = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/zero_trust/dex/traceroute_test_results/__init__.py b/src/cloudflare/resources/zero_trust/dex/traceroute_test_results/__init__.py index 29ddac57979..7f21e0c037c 100644 --- a/src/cloudflare/resources/zero_trust/dex/traceroute_test_results/__init__.py +++ b/src/cloudflare/resources/zero_trust/dex/traceroute_test_results/__init__.py @@ -1,33 +1,33 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from .network_path import ( - NetworkPath, - AsyncNetworkPath, - NetworkPathWithRawResponse, - AsyncNetworkPathWithRawResponse, - NetworkPathWithStreamingResponse, - AsyncNetworkPathWithStreamingResponse, + NetworkPathResource, + AsyncNetworkPathResource, + NetworkPathResourceWithRawResponse, + AsyncNetworkPathResourceWithRawResponse, + NetworkPathResourceWithStreamingResponse, + AsyncNetworkPathResourceWithStreamingResponse, ) from .traceroute_test_results import ( - TracerouteTestResults, - AsyncTracerouteTestResults, - TracerouteTestResultsWithRawResponse, - AsyncTracerouteTestResultsWithRawResponse, - TracerouteTestResultsWithStreamingResponse, - AsyncTracerouteTestResultsWithStreamingResponse, + TracerouteTestResultsResource, + AsyncTracerouteTestResultsResource, + TracerouteTestResultsResourceWithRawResponse, + AsyncTracerouteTestResultsResourceWithRawResponse, + TracerouteTestResultsResourceWithStreamingResponse, + AsyncTracerouteTestResultsResourceWithStreamingResponse, ) __all__ = [ - "NetworkPath", - "AsyncNetworkPath", - "NetworkPathWithRawResponse", - "AsyncNetworkPathWithRawResponse", - "NetworkPathWithStreamingResponse", - "AsyncNetworkPathWithStreamingResponse", - "TracerouteTestResults", - "AsyncTracerouteTestResults", - "TracerouteTestResultsWithRawResponse", - "AsyncTracerouteTestResultsWithRawResponse", - "TracerouteTestResultsWithStreamingResponse", - "AsyncTracerouteTestResultsWithStreamingResponse", + "NetworkPathResource", + "AsyncNetworkPathResource", + "NetworkPathResourceWithRawResponse", + "AsyncNetworkPathResourceWithRawResponse", + "NetworkPathResourceWithStreamingResponse", + "AsyncNetworkPathResourceWithStreamingResponse", + "TracerouteTestResultsResource", + "AsyncTracerouteTestResultsResource", + "TracerouteTestResultsResourceWithRawResponse", + "AsyncTracerouteTestResultsResourceWithRawResponse", + "TracerouteTestResultsResourceWithStreamingResponse", + "AsyncTracerouteTestResultsResourceWithStreamingResponse", ] diff --git a/src/cloudflare/resources/zero_trust/dex/traceroute_test_results/network_path.py b/src/cloudflare/resources/zero_trust/dex/traceroute_test_results/network_path.py index 6e06ce4e360..043485044c6 100644 --- a/src/cloudflare/resources/zero_trust/dex/traceroute_test_results/network_path.py +++ b/src/cloudflare/resources/zero_trust/dex/traceroute_test_results/network_path.py @@ -21,17 +21,17 @@ ) from .....types.zero_trust.dex.traceroute_test_results.network_path_get_response import NetworkPathGetResponse -__all__ = ["NetworkPath", "AsyncNetworkPath"] +__all__ = ["NetworkPathResource", "AsyncNetworkPathResource"] -class NetworkPath(SyncAPIResource): +class NetworkPathResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> NetworkPathWithRawResponse: - return NetworkPathWithRawResponse(self) + def with_raw_response(self) -> NetworkPathResourceWithRawResponse: + return NetworkPathResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> NetworkPathWithStreamingResponse: - return NetworkPathWithStreamingResponse(self) + def with_streaming_response(self) -> NetworkPathResourceWithStreamingResponse: + return NetworkPathResourceWithStreamingResponse(self) def get( self, @@ -77,14 +77,14 @@ def get( ) -class AsyncNetworkPath(AsyncAPIResource): +class AsyncNetworkPathResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncNetworkPathWithRawResponse: - return AsyncNetworkPathWithRawResponse(self) + def with_raw_response(self) -> AsyncNetworkPathResourceWithRawResponse: + return AsyncNetworkPathResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncNetworkPathWithStreamingResponse: - return AsyncNetworkPathWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncNetworkPathResourceWithStreamingResponse: + return AsyncNetworkPathResourceWithStreamingResponse(self) async def get( self, @@ -130,8 +130,8 @@ async def get( ) -class NetworkPathWithRawResponse: - def __init__(self, network_path: NetworkPath) -> None: +class NetworkPathResourceWithRawResponse: + def __init__(self, network_path: NetworkPathResource) -> None: self._network_path = network_path self.get = to_raw_response_wrapper( @@ -139,8 +139,8 @@ def __init__(self, network_path: NetworkPath) -> None: ) -class AsyncNetworkPathWithRawResponse: - def __init__(self, network_path: AsyncNetworkPath) -> None: +class AsyncNetworkPathResourceWithRawResponse: + def __init__(self, network_path: AsyncNetworkPathResource) -> None: self._network_path = network_path self.get = async_to_raw_response_wrapper( @@ -148,8 +148,8 @@ def __init__(self, network_path: AsyncNetworkPath) -> None: ) -class NetworkPathWithStreamingResponse: - def __init__(self, network_path: NetworkPath) -> None: +class NetworkPathResourceWithStreamingResponse: + def __init__(self, network_path: NetworkPathResource) -> None: self._network_path = network_path self.get = to_streamed_response_wrapper( @@ -157,8 +157,8 @@ def __init__(self, network_path: NetworkPath) -> None: ) -class AsyncNetworkPathWithStreamingResponse: - def __init__(self, network_path: AsyncNetworkPath) -> None: +class AsyncNetworkPathResourceWithStreamingResponse: + def __init__(self, network_path: AsyncNetworkPathResource) -> None: self._network_path = network_path self.get = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/zero_trust/dex/traceroute_test_results/traceroute_test_results.py b/src/cloudflare/resources/zero_trust/dex/traceroute_test_results/traceroute_test_results.py index 6b536de666a..abc3834ee8b 100644 --- a/src/cloudflare/resources/zero_trust/dex/traceroute_test_results/traceroute_test_results.py +++ b/src/cloudflare/resources/zero_trust/dex/traceroute_test_results/traceroute_test_results.py @@ -4,77 +4,77 @@ from ....._compat import cached_property from .network_path import ( - NetworkPath, - AsyncNetworkPath, - NetworkPathWithRawResponse, - AsyncNetworkPathWithRawResponse, - NetworkPathWithStreamingResponse, - AsyncNetworkPathWithStreamingResponse, + NetworkPathResource, + AsyncNetworkPathResource, + NetworkPathResourceWithRawResponse, + AsyncNetworkPathResourceWithRawResponse, + NetworkPathResourceWithStreamingResponse, + AsyncNetworkPathResourceWithStreamingResponse, ) from ....._resource import SyncAPIResource, AsyncAPIResource -__all__ = ["TracerouteTestResults", "AsyncTracerouteTestResults"] +__all__ = ["TracerouteTestResultsResource", "AsyncTracerouteTestResultsResource"] -class TracerouteTestResults(SyncAPIResource): +class TracerouteTestResultsResource(SyncAPIResource): @cached_property - def network_path(self) -> NetworkPath: - return NetworkPath(self._client) + def network_path(self) -> NetworkPathResource: + return NetworkPathResource(self._client) @cached_property - def with_raw_response(self) -> TracerouteTestResultsWithRawResponse: - return TracerouteTestResultsWithRawResponse(self) + def with_raw_response(self) -> TracerouteTestResultsResourceWithRawResponse: + return TracerouteTestResultsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> TracerouteTestResultsWithStreamingResponse: - return TracerouteTestResultsWithStreamingResponse(self) + def with_streaming_response(self) -> TracerouteTestResultsResourceWithStreamingResponse: + return TracerouteTestResultsResourceWithStreamingResponse(self) -class AsyncTracerouteTestResults(AsyncAPIResource): +class AsyncTracerouteTestResultsResource(AsyncAPIResource): @cached_property - def network_path(self) -> AsyncNetworkPath: - return AsyncNetworkPath(self._client) + def network_path(self) -> AsyncNetworkPathResource: + return AsyncNetworkPathResource(self._client) @cached_property - def with_raw_response(self) -> AsyncTracerouteTestResultsWithRawResponse: - return AsyncTracerouteTestResultsWithRawResponse(self) + def with_raw_response(self) -> AsyncTracerouteTestResultsResourceWithRawResponse: + return AsyncTracerouteTestResultsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncTracerouteTestResultsWithStreamingResponse: - return AsyncTracerouteTestResultsWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncTracerouteTestResultsResourceWithStreamingResponse: + return AsyncTracerouteTestResultsResourceWithStreamingResponse(self) -class TracerouteTestResultsWithRawResponse: - def __init__(self, traceroute_test_results: TracerouteTestResults) -> None: +class TracerouteTestResultsResourceWithRawResponse: + def __init__(self, traceroute_test_results: TracerouteTestResultsResource) -> None: self._traceroute_test_results = traceroute_test_results @cached_property - def network_path(self) -> NetworkPathWithRawResponse: - return NetworkPathWithRawResponse(self._traceroute_test_results.network_path) + def network_path(self) -> NetworkPathResourceWithRawResponse: + return NetworkPathResourceWithRawResponse(self._traceroute_test_results.network_path) -class AsyncTracerouteTestResultsWithRawResponse: - def __init__(self, traceroute_test_results: AsyncTracerouteTestResults) -> None: +class AsyncTracerouteTestResultsResourceWithRawResponse: + def __init__(self, traceroute_test_results: AsyncTracerouteTestResultsResource) -> None: self._traceroute_test_results = traceroute_test_results @cached_property - def network_path(self) -> AsyncNetworkPathWithRawResponse: - return AsyncNetworkPathWithRawResponse(self._traceroute_test_results.network_path) + def network_path(self) -> AsyncNetworkPathResourceWithRawResponse: + return AsyncNetworkPathResourceWithRawResponse(self._traceroute_test_results.network_path) -class TracerouteTestResultsWithStreamingResponse: - def __init__(self, traceroute_test_results: TracerouteTestResults) -> None: +class TracerouteTestResultsResourceWithStreamingResponse: + def __init__(self, traceroute_test_results: TracerouteTestResultsResource) -> None: self._traceroute_test_results = traceroute_test_results @cached_property - def network_path(self) -> NetworkPathWithStreamingResponse: - return NetworkPathWithStreamingResponse(self._traceroute_test_results.network_path) + def network_path(self) -> NetworkPathResourceWithStreamingResponse: + return NetworkPathResourceWithStreamingResponse(self._traceroute_test_results.network_path) -class AsyncTracerouteTestResultsWithStreamingResponse: - def __init__(self, traceroute_test_results: AsyncTracerouteTestResults) -> None: +class AsyncTracerouteTestResultsResourceWithStreamingResponse: + def __init__(self, traceroute_test_results: AsyncTracerouteTestResultsResource) -> None: self._traceroute_test_results = traceroute_test_results @cached_property - def network_path(self) -> AsyncNetworkPathWithStreamingResponse: - return AsyncNetworkPathWithStreamingResponse(self._traceroute_test_results.network_path) + def network_path(self) -> AsyncNetworkPathResourceWithStreamingResponse: + return AsyncNetworkPathResourceWithStreamingResponse(self._traceroute_test_results.network_path) diff --git a/src/cloudflare/resources/zero_trust/dex/traceroute_tests.py b/src/cloudflare/resources/zero_trust/dex/traceroute_tests.py index aca1740fa5a..ebbf05826a8 100644 --- a/src/cloudflare/resources/zero_trust/dex/traceroute_tests.py +++ b/src/cloudflare/resources/zero_trust/dex/traceroute_tests.py @@ -33,17 +33,17 @@ from ....types.zero_trust.network_path_response import NetworkPathResponse from ....types.zero_trust.dex.traceroute_test_percentiles_response import TracerouteTestPercentilesResponse -__all__ = ["TracerouteTests", "AsyncTracerouteTests"] +__all__ = ["TracerouteTestsResource", "AsyncTracerouteTestsResource"] -class TracerouteTests(SyncAPIResource): +class TracerouteTestsResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> TracerouteTestsWithRawResponse: - return TracerouteTestsWithRawResponse(self) + def with_raw_response(self) -> TracerouteTestsResourceWithRawResponse: + return TracerouteTestsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> TracerouteTestsWithStreamingResponse: - return TracerouteTestsWithStreamingResponse(self) + def with_streaming_response(self) -> TracerouteTestsResourceWithStreamingResponse: + return TracerouteTestsResourceWithStreamingResponse(self) def get( self, @@ -247,14 +247,14 @@ def percentiles( ) -class AsyncTracerouteTests(AsyncAPIResource): +class AsyncTracerouteTestsResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncTracerouteTestsWithRawResponse: - return AsyncTracerouteTestsWithRawResponse(self) + def with_raw_response(self) -> AsyncTracerouteTestsResourceWithRawResponse: + return AsyncTracerouteTestsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncTracerouteTestsWithStreamingResponse: - return AsyncTracerouteTestsWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncTracerouteTestsResourceWithStreamingResponse: + return AsyncTracerouteTestsResourceWithStreamingResponse(self) async def get( self, @@ -458,8 +458,8 @@ async def percentiles( ) -class TracerouteTestsWithRawResponse: - def __init__(self, traceroute_tests: TracerouteTests) -> None: +class TracerouteTestsResourceWithRawResponse: + def __init__(self, traceroute_tests: TracerouteTestsResource) -> None: self._traceroute_tests = traceroute_tests self.get = to_raw_response_wrapper( @@ -473,8 +473,8 @@ def __init__(self, traceroute_tests: TracerouteTests) -> None: ) -class AsyncTracerouteTestsWithRawResponse: - def __init__(self, traceroute_tests: AsyncTracerouteTests) -> None: +class AsyncTracerouteTestsResourceWithRawResponse: + def __init__(self, traceroute_tests: AsyncTracerouteTestsResource) -> None: self._traceroute_tests = traceroute_tests self.get = async_to_raw_response_wrapper( @@ -488,8 +488,8 @@ def __init__(self, traceroute_tests: AsyncTracerouteTests) -> None: ) -class TracerouteTestsWithStreamingResponse: - def __init__(self, traceroute_tests: TracerouteTests) -> None: +class TracerouteTestsResourceWithStreamingResponse: + def __init__(self, traceroute_tests: TracerouteTestsResource) -> None: self._traceroute_tests = traceroute_tests self.get = to_streamed_response_wrapper( @@ -503,8 +503,8 @@ def __init__(self, traceroute_tests: TracerouteTests) -> None: ) -class AsyncTracerouteTestsWithStreamingResponse: - def __init__(self, traceroute_tests: AsyncTracerouteTests) -> None: +class AsyncTracerouteTestsResourceWithStreamingResponse: + def __init__(self, traceroute_tests: AsyncTracerouteTestsResource) -> None: self._traceroute_tests = traceroute_tests self.get = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/zero_trust/dlp/__init__.py b/src/cloudflare/resources/zero_trust/dlp/__init__.py index e7ff958c95c..4a0820bb653 100644 --- a/src/cloudflare/resources/zero_trust/dlp/__init__.py +++ b/src/cloudflare/resources/zero_trust/dlp/__init__.py @@ -1,75 +1,75 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from .dlp import ( - DLP, - AsyncDLP, - DLPWithRawResponse, - AsyncDLPWithRawResponse, - DLPWithStreamingResponse, - AsyncDLPWithStreamingResponse, + DLPResource, + AsyncDLPResource, + DLPResourceWithRawResponse, + AsyncDLPResourceWithRawResponse, + DLPResourceWithStreamingResponse, + AsyncDLPResourceWithStreamingResponse, ) from .datasets import ( - Datasets, - AsyncDatasets, - DatasetsWithRawResponse, - AsyncDatasetsWithRawResponse, - DatasetsWithStreamingResponse, - AsyncDatasetsWithStreamingResponse, + DatasetsResource, + AsyncDatasetsResource, + DatasetsResourceWithRawResponse, + AsyncDatasetsResourceWithRawResponse, + DatasetsResourceWithStreamingResponse, + AsyncDatasetsResourceWithStreamingResponse, ) from .patterns import ( - Patterns, - AsyncPatterns, - PatternsWithRawResponse, - AsyncPatternsWithRawResponse, - PatternsWithStreamingResponse, - AsyncPatternsWithStreamingResponse, + PatternsResource, + AsyncPatternsResource, + PatternsResourceWithRawResponse, + AsyncPatternsResourceWithRawResponse, + PatternsResourceWithStreamingResponse, + AsyncPatternsResourceWithStreamingResponse, ) from .profiles import ( - Profiles, - AsyncProfiles, - ProfilesWithRawResponse, - AsyncProfilesWithRawResponse, - ProfilesWithStreamingResponse, - AsyncProfilesWithStreamingResponse, + ProfilesResource, + AsyncProfilesResource, + ProfilesResourceWithRawResponse, + AsyncProfilesResourceWithRawResponse, + ProfilesResourceWithStreamingResponse, + AsyncProfilesResourceWithStreamingResponse, ) from .payload_logs import ( - PayloadLogs, - AsyncPayloadLogs, - PayloadLogsWithRawResponse, - AsyncPayloadLogsWithRawResponse, - PayloadLogsWithStreamingResponse, - AsyncPayloadLogsWithStreamingResponse, + PayloadLogsResource, + AsyncPayloadLogsResource, + PayloadLogsResourceWithRawResponse, + AsyncPayloadLogsResourceWithRawResponse, + PayloadLogsResourceWithStreamingResponse, + AsyncPayloadLogsResourceWithStreamingResponse, ) __all__ = [ - "Datasets", - "AsyncDatasets", - "DatasetsWithRawResponse", - "AsyncDatasetsWithRawResponse", - "DatasetsWithStreamingResponse", - "AsyncDatasetsWithStreamingResponse", - "Patterns", - "AsyncPatterns", - "PatternsWithRawResponse", - "AsyncPatternsWithRawResponse", - "PatternsWithStreamingResponse", - "AsyncPatternsWithStreamingResponse", - "PayloadLogs", - "AsyncPayloadLogs", - "PayloadLogsWithRawResponse", - "AsyncPayloadLogsWithRawResponse", - "PayloadLogsWithStreamingResponse", - "AsyncPayloadLogsWithStreamingResponse", - "Profiles", - "AsyncProfiles", - "ProfilesWithRawResponse", - "AsyncProfilesWithRawResponse", - "ProfilesWithStreamingResponse", - "AsyncProfilesWithStreamingResponse", - "DLP", - "AsyncDLP", - "DLPWithRawResponse", - "AsyncDLPWithRawResponse", - "DLPWithStreamingResponse", - "AsyncDLPWithStreamingResponse", + "DatasetsResource", + "AsyncDatasetsResource", + "DatasetsResourceWithRawResponse", + "AsyncDatasetsResourceWithRawResponse", + "DatasetsResourceWithStreamingResponse", + "AsyncDatasetsResourceWithStreamingResponse", + "PatternsResource", + "AsyncPatternsResource", + "PatternsResourceWithRawResponse", + "AsyncPatternsResourceWithRawResponse", + "PatternsResourceWithStreamingResponse", + "AsyncPatternsResourceWithStreamingResponse", + "PayloadLogsResource", + "AsyncPayloadLogsResource", + "PayloadLogsResourceWithRawResponse", + "AsyncPayloadLogsResourceWithRawResponse", + "PayloadLogsResourceWithStreamingResponse", + "AsyncPayloadLogsResourceWithStreamingResponse", + "ProfilesResource", + "AsyncProfilesResource", + "ProfilesResourceWithRawResponse", + "AsyncProfilesResourceWithRawResponse", + "ProfilesResourceWithStreamingResponse", + "AsyncProfilesResourceWithStreamingResponse", + "DLPResource", + "AsyncDLPResource", + "DLPResourceWithRawResponse", + "AsyncDLPResourceWithRawResponse", + "DLPResourceWithStreamingResponse", + "AsyncDLPResourceWithStreamingResponse", ] diff --git a/src/cloudflare/resources/zero_trust/dlp/datasets/__init__.py b/src/cloudflare/resources/zero_trust/dlp/datasets/__init__.py index aa0a37a3ea8..a7431639eca 100644 --- a/src/cloudflare/resources/zero_trust/dlp/datasets/__init__.py +++ b/src/cloudflare/resources/zero_trust/dlp/datasets/__init__.py @@ -1,33 +1,33 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from .upload import ( - Upload, - AsyncUpload, - UploadWithRawResponse, - AsyncUploadWithRawResponse, - UploadWithStreamingResponse, - AsyncUploadWithStreamingResponse, + UploadResource, + AsyncUploadResource, + UploadResourceWithRawResponse, + AsyncUploadResourceWithRawResponse, + UploadResourceWithStreamingResponse, + AsyncUploadResourceWithStreamingResponse, ) from .datasets import ( - Datasets, - AsyncDatasets, - DatasetsWithRawResponse, - AsyncDatasetsWithRawResponse, - DatasetsWithStreamingResponse, - AsyncDatasetsWithStreamingResponse, + DatasetsResource, + AsyncDatasetsResource, + DatasetsResourceWithRawResponse, + AsyncDatasetsResourceWithRawResponse, + DatasetsResourceWithStreamingResponse, + AsyncDatasetsResourceWithStreamingResponse, ) __all__ = [ - "Upload", - "AsyncUpload", - "UploadWithRawResponse", - "AsyncUploadWithRawResponse", - "UploadWithStreamingResponse", - "AsyncUploadWithStreamingResponse", - "Datasets", - "AsyncDatasets", - "DatasetsWithRawResponse", - "AsyncDatasetsWithRawResponse", - "DatasetsWithStreamingResponse", - "AsyncDatasetsWithStreamingResponse", + "UploadResource", + "AsyncUploadResource", + "UploadResourceWithRawResponse", + "AsyncUploadResourceWithRawResponse", + "UploadResourceWithStreamingResponse", + "AsyncUploadResourceWithStreamingResponse", + "DatasetsResource", + "AsyncDatasetsResource", + "DatasetsResourceWithRawResponse", + "AsyncDatasetsResourceWithRawResponse", + "DatasetsResourceWithStreamingResponse", + "AsyncDatasetsResourceWithStreamingResponse", ] diff --git a/src/cloudflare/resources/zero_trust/dlp/datasets/datasets.py b/src/cloudflare/resources/zero_trust/dlp/datasets/datasets.py index 3c4b3c70f02..6cce46a91d7 100644 --- a/src/cloudflare/resources/zero_trust/dlp/datasets/datasets.py +++ b/src/cloudflare/resources/zero_trust/dlp/datasets/datasets.py @@ -7,12 +7,12 @@ import httpx from .upload import ( - Upload, - AsyncUpload, - UploadWithRawResponse, - AsyncUploadWithRawResponse, - UploadWithStreamingResponse, - AsyncUploadWithStreamingResponse, + UploadResource, + AsyncUploadResource, + UploadResourceWithRawResponse, + AsyncUploadResourceWithRawResponse, + UploadResourceWithStreamingResponse, + AsyncUploadResourceWithStreamingResponse, ) from ....._types import NOT_GIVEN, Body, Query, Headers, NoneType, NotGiven from ....._utils import ( @@ -37,21 +37,21 @@ from .....types.zero_trust.dlp.dataset import Dataset from .....types.zero_trust.dlp.dataset_creation import DatasetCreation -__all__ = ["Datasets", "AsyncDatasets"] +__all__ = ["DatasetsResource", "AsyncDatasetsResource"] -class Datasets(SyncAPIResource): +class DatasetsResource(SyncAPIResource): @cached_property - def upload(self) -> Upload: - return Upload(self._client) + def upload(self) -> UploadResource: + return UploadResource(self._client) @cached_property - def with_raw_response(self) -> DatasetsWithRawResponse: - return DatasetsWithRawResponse(self) + def with_raw_response(self) -> DatasetsResourceWithRawResponse: + return DatasetsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> DatasetsWithStreamingResponse: - return DatasetsWithStreamingResponse(self) + def with_streaming_response(self) -> DatasetsResourceWithStreamingResponse: + return DatasetsResourceWithStreamingResponse(self) def create( self, @@ -269,18 +269,18 @@ def get( ) -class AsyncDatasets(AsyncAPIResource): +class AsyncDatasetsResource(AsyncAPIResource): @cached_property - def upload(self) -> AsyncUpload: - return AsyncUpload(self._client) + def upload(self) -> AsyncUploadResource: + return AsyncUploadResource(self._client) @cached_property - def with_raw_response(self) -> AsyncDatasetsWithRawResponse: - return AsyncDatasetsWithRawResponse(self) + def with_raw_response(self) -> AsyncDatasetsResourceWithRawResponse: + return AsyncDatasetsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncDatasetsWithStreamingResponse: - return AsyncDatasetsWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncDatasetsResourceWithStreamingResponse: + return AsyncDatasetsResourceWithStreamingResponse(self) async def create( self, @@ -498,8 +498,8 @@ async def get( ) -class DatasetsWithRawResponse: - def __init__(self, datasets: Datasets) -> None: +class DatasetsResourceWithRawResponse: + def __init__(self, datasets: DatasetsResource) -> None: self._datasets = datasets self.create = to_raw_response_wrapper( @@ -519,12 +519,12 @@ def __init__(self, datasets: Datasets) -> None: ) @cached_property - def upload(self) -> UploadWithRawResponse: - return UploadWithRawResponse(self._datasets.upload) + def upload(self) -> UploadResourceWithRawResponse: + return UploadResourceWithRawResponse(self._datasets.upload) -class AsyncDatasetsWithRawResponse: - def __init__(self, datasets: AsyncDatasets) -> None: +class AsyncDatasetsResourceWithRawResponse: + def __init__(self, datasets: AsyncDatasetsResource) -> None: self._datasets = datasets self.create = async_to_raw_response_wrapper( @@ -544,12 +544,12 @@ def __init__(self, datasets: AsyncDatasets) -> None: ) @cached_property - def upload(self) -> AsyncUploadWithRawResponse: - return AsyncUploadWithRawResponse(self._datasets.upload) + def upload(self) -> AsyncUploadResourceWithRawResponse: + return AsyncUploadResourceWithRawResponse(self._datasets.upload) -class DatasetsWithStreamingResponse: - def __init__(self, datasets: Datasets) -> None: +class DatasetsResourceWithStreamingResponse: + def __init__(self, datasets: DatasetsResource) -> None: self._datasets = datasets self.create = to_streamed_response_wrapper( @@ -569,12 +569,12 @@ def __init__(self, datasets: Datasets) -> None: ) @cached_property - def upload(self) -> UploadWithStreamingResponse: - return UploadWithStreamingResponse(self._datasets.upload) + def upload(self) -> UploadResourceWithStreamingResponse: + return UploadResourceWithStreamingResponse(self._datasets.upload) -class AsyncDatasetsWithStreamingResponse: - def __init__(self, datasets: AsyncDatasets) -> None: +class AsyncDatasetsResourceWithStreamingResponse: + def __init__(self, datasets: AsyncDatasetsResource) -> None: self._datasets = datasets self.create = async_to_streamed_response_wrapper( @@ -594,5 +594,5 @@ def __init__(self, datasets: AsyncDatasets) -> None: ) @cached_property - def upload(self) -> AsyncUploadWithStreamingResponse: - return AsyncUploadWithStreamingResponse(self._datasets.upload) + def upload(self) -> AsyncUploadResourceWithStreamingResponse: + return AsyncUploadResourceWithStreamingResponse(self._datasets.upload) diff --git a/src/cloudflare/resources/zero_trust/dlp/datasets/upload.py b/src/cloudflare/resources/zero_trust/dlp/datasets/upload.py index 78dd45cc3ff..8ae70bace70 100644 --- a/src/cloudflare/resources/zero_trust/dlp/datasets/upload.py +++ b/src/cloudflare/resources/zero_trust/dlp/datasets/upload.py @@ -27,17 +27,17 @@ from .....types.zero_trust.dlp.datasets import upload_edit_params from .....types.zero_trust.dlp.datasets.new_version import NewVersion -__all__ = ["Upload", "AsyncUpload"] +__all__ = ["UploadResource", "AsyncUploadResource"] -class Upload(SyncAPIResource): +class UploadResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> UploadWithRawResponse: - return UploadWithRawResponse(self) + def with_raw_response(self) -> UploadResourceWithRawResponse: + return UploadResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> UploadWithStreamingResponse: - return UploadWithStreamingResponse(self) + def with_streaming_response(self) -> UploadResourceWithStreamingResponse: + return UploadResourceWithStreamingResponse(self) def create( self, @@ -123,14 +123,14 @@ def edit( ) -class AsyncUpload(AsyncAPIResource): +class AsyncUploadResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncUploadWithRawResponse: - return AsyncUploadWithRawResponse(self) + def with_raw_response(self) -> AsyncUploadResourceWithRawResponse: + return AsyncUploadResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncUploadWithStreamingResponse: - return AsyncUploadWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncUploadResourceWithStreamingResponse: + return AsyncUploadResourceWithStreamingResponse(self) async def create( self, @@ -216,8 +216,8 @@ async def edit( ) -class UploadWithRawResponse: - def __init__(self, upload: Upload) -> None: +class UploadResourceWithRawResponse: + def __init__(self, upload: UploadResource) -> None: self._upload = upload self.create = to_raw_response_wrapper( @@ -228,8 +228,8 @@ def __init__(self, upload: Upload) -> None: ) -class AsyncUploadWithRawResponse: - def __init__(self, upload: AsyncUpload) -> None: +class AsyncUploadResourceWithRawResponse: + def __init__(self, upload: AsyncUploadResource) -> None: self._upload = upload self.create = async_to_raw_response_wrapper( @@ -240,8 +240,8 @@ def __init__(self, upload: AsyncUpload) -> None: ) -class UploadWithStreamingResponse: - def __init__(self, upload: Upload) -> None: +class UploadResourceWithStreamingResponse: + def __init__(self, upload: UploadResource) -> None: self._upload = upload self.create = to_streamed_response_wrapper( @@ -252,8 +252,8 @@ def __init__(self, upload: Upload) -> None: ) -class AsyncUploadWithStreamingResponse: - def __init__(self, upload: AsyncUpload) -> None: +class AsyncUploadResourceWithStreamingResponse: + def __init__(self, upload: AsyncUploadResource) -> None: self._upload = upload self.create = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/zero_trust/dlp/dlp.py b/src/cloudflare/resources/zero_trust/dlp/dlp.py index 323b386fdc9..324653e2509 100644 --- a/src/cloudflare/resources/zero_trust/dlp/dlp.py +++ b/src/cloudflare/resources/zero_trust/dlp/dlp.py @@ -3,176 +3,176 @@ from __future__ import annotations from .datasets import ( - Datasets, - AsyncDatasets, - DatasetsWithRawResponse, - AsyncDatasetsWithRawResponse, - DatasetsWithStreamingResponse, - AsyncDatasetsWithStreamingResponse, + DatasetsResource, + AsyncDatasetsResource, + DatasetsResourceWithRawResponse, + AsyncDatasetsResourceWithRawResponse, + DatasetsResourceWithStreamingResponse, + AsyncDatasetsResourceWithStreamingResponse, ) from .patterns import ( - Patterns, - AsyncPatterns, - PatternsWithRawResponse, - AsyncPatternsWithRawResponse, - PatternsWithStreamingResponse, - AsyncPatternsWithStreamingResponse, + PatternsResource, + AsyncPatternsResource, + PatternsResourceWithRawResponse, + AsyncPatternsResourceWithRawResponse, + PatternsResourceWithStreamingResponse, + AsyncPatternsResourceWithStreamingResponse, ) from .profiles import ( - Profiles, - AsyncProfiles, - ProfilesWithRawResponse, - AsyncProfilesWithRawResponse, - ProfilesWithStreamingResponse, - AsyncProfilesWithStreamingResponse, + ProfilesResource, + AsyncProfilesResource, + ProfilesResourceWithRawResponse, + AsyncProfilesResourceWithRawResponse, + ProfilesResourceWithStreamingResponse, + AsyncProfilesResourceWithStreamingResponse, ) from ...._compat import cached_property from ...._resource import SyncAPIResource, AsyncAPIResource from .payload_logs import ( - PayloadLogs, - AsyncPayloadLogs, - PayloadLogsWithRawResponse, - AsyncPayloadLogsWithRawResponse, - PayloadLogsWithStreamingResponse, - AsyncPayloadLogsWithStreamingResponse, + PayloadLogsResource, + AsyncPayloadLogsResource, + PayloadLogsResourceWithRawResponse, + AsyncPayloadLogsResourceWithRawResponse, + PayloadLogsResourceWithStreamingResponse, + AsyncPayloadLogsResourceWithStreamingResponse, ) -from .datasets.datasets import Datasets, AsyncDatasets -from .profiles.profiles import Profiles, AsyncProfiles +from .datasets.datasets import DatasetsResource, AsyncDatasetsResource +from .profiles.profiles import ProfilesResource, AsyncProfilesResource -__all__ = ["DLP", "AsyncDLP"] +__all__ = ["DLPResource", "AsyncDLPResource"] -class DLP(SyncAPIResource): +class DLPResource(SyncAPIResource): @cached_property - def datasets(self) -> Datasets: - return Datasets(self._client) + def datasets(self) -> DatasetsResource: + return DatasetsResource(self._client) @cached_property - def patterns(self) -> Patterns: - return Patterns(self._client) + def patterns(self) -> PatternsResource: + return PatternsResource(self._client) @cached_property - def payload_logs(self) -> PayloadLogs: - return PayloadLogs(self._client) + def payload_logs(self) -> PayloadLogsResource: + return PayloadLogsResource(self._client) @cached_property - def profiles(self) -> Profiles: - return Profiles(self._client) + def profiles(self) -> ProfilesResource: + return ProfilesResource(self._client) @cached_property - def with_raw_response(self) -> DLPWithRawResponse: - return DLPWithRawResponse(self) + def with_raw_response(self) -> DLPResourceWithRawResponse: + return DLPResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> DLPWithStreamingResponse: - return DLPWithStreamingResponse(self) + def with_streaming_response(self) -> DLPResourceWithStreamingResponse: + return DLPResourceWithStreamingResponse(self) -class AsyncDLP(AsyncAPIResource): +class AsyncDLPResource(AsyncAPIResource): @cached_property - def datasets(self) -> AsyncDatasets: - return AsyncDatasets(self._client) + def datasets(self) -> AsyncDatasetsResource: + return AsyncDatasetsResource(self._client) @cached_property - def patterns(self) -> AsyncPatterns: - return AsyncPatterns(self._client) + def patterns(self) -> AsyncPatternsResource: + return AsyncPatternsResource(self._client) @cached_property - def payload_logs(self) -> AsyncPayloadLogs: - return AsyncPayloadLogs(self._client) + def payload_logs(self) -> AsyncPayloadLogsResource: + return AsyncPayloadLogsResource(self._client) @cached_property - def profiles(self) -> AsyncProfiles: - return AsyncProfiles(self._client) + def profiles(self) -> AsyncProfilesResource: + return AsyncProfilesResource(self._client) @cached_property - def with_raw_response(self) -> AsyncDLPWithRawResponse: - return AsyncDLPWithRawResponse(self) + def with_raw_response(self) -> AsyncDLPResourceWithRawResponse: + return AsyncDLPResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncDLPWithStreamingResponse: - return AsyncDLPWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncDLPResourceWithStreamingResponse: + return AsyncDLPResourceWithStreamingResponse(self) -class DLPWithRawResponse: - def __init__(self, dlp: DLP) -> None: +class DLPResourceWithRawResponse: + def __init__(self, dlp: DLPResource) -> None: self._dlp = dlp @cached_property - def datasets(self) -> DatasetsWithRawResponse: - return DatasetsWithRawResponse(self._dlp.datasets) + def datasets(self) -> DatasetsResourceWithRawResponse: + return DatasetsResourceWithRawResponse(self._dlp.datasets) @cached_property - def patterns(self) -> PatternsWithRawResponse: - return PatternsWithRawResponse(self._dlp.patterns) + def patterns(self) -> PatternsResourceWithRawResponse: + return PatternsResourceWithRawResponse(self._dlp.patterns) @cached_property - def payload_logs(self) -> PayloadLogsWithRawResponse: - return PayloadLogsWithRawResponse(self._dlp.payload_logs) + def payload_logs(self) -> PayloadLogsResourceWithRawResponse: + return PayloadLogsResourceWithRawResponse(self._dlp.payload_logs) @cached_property - def profiles(self) -> ProfilesWithRawResponse: - return ProfilesWithRawResponse(self._dlp.profiles) + def profiles(self) -> ProfilesResourceWithRawResponse: + return ProfilesResourceWithRawResponse(self._dlp.profiles) -class AsyncDLPWithRawResponse: - def __init__(self, dlp: AsyncDLP) -> None: +class AsyncDLPResourceWithRawResponse: + def __init__(self, dlp: AsyncDLPResource) -> None: self._dlp = dlp @cached_property - def datasets(self) -> AsyncDatasetsWithRawResponse: - return AsyncDatasetsWithRawResponse(self._dlp.datasets) + def datasets(self) -> AsyncDatasetsResourceWithRawResponse: + return AsyncDatasetsResourceWithRawResponse(self._dlp.datasets) @cached_property - def patterns(self) -> AsyncPatternsWithRawResponse: - return AsyncPatternsWithRawResponse(self._dlp.patterns) + def patterns(self) -> AsyncPatternsResourceWithRawResponse: + return AsyncPatternsResourceWithRawResponse(self._dlp.patterns) @cached_property - def payload_logs(self) -> AsyncPayloadLogsWithRawResponse: - return AsyncPayloadLogsWithRawResponse(self._dlp.payload_logs) + def payload_logs(self) -> AsyncPayloadLogsResourceWithRawResponse: + return AsyncPayloadLogsResourceWithRawResponse(self._dlp.payload_logs) @cached_property - def profiles(self) -> AsyncProfilesWithRawResponse: - return AsyncProfilesWithRawResponse(self._dlp.profiles) + def profiles(self) -> AsyncProfilesResourceWithRawResponse: + return AsyncProfilesResourceWithRawResponse(self._dlp.profiles) -class DLPWithStreamingResponse: - def __init__(self, dlp: DLP) -> None: +class DLPResourceWithStreamingResponse: + def __init__(self, dlp: DLPResource) -> None: self._dlp = dlp @cached_property - def datasets(self) -> DatasetsWithStreamingResponse: - return DatasetsWithStreamingResponse(self._dlp.datasets) + def datasets(self) -> DatasetsResourceWithStreamingResponse: + return DatasetsResourceWithStreamingResponse(self._dlp.datasets) @cached_property - def patterns(self) -> PatternsWithStreamingResponse: - return PatternsWithStreamingResponse(self._dlp.patterns) + def patterns(self) -> PatternsResourceWithStreamingResponse: + return PatternsResourceWithStreamingResponse(self._dlp.patterns) @cached_property - def payload_logs(self) -> PayloadLogsWithStreamingResponse: - return PayloadLogsWithStreamingResponse(self._dlp.payload_logs) + def payload_logs(self) -> PayloadLogsResourceWithStreamingResponse: + return PayloadLogsResourceWithStreamingResponse(self._dlp.payload_logs) @cached_property - def profiles(self) -> ProfilesWithStreamingResponse: - return ProfilesWithStreamingResponse(self._dlp.profiles) + def profiles(self) -> ProfilesResourceWithStreamingResponse: + return ProfilesResourceWithStreamingResponse(self._dlp.profiles) -class AsyncDLPWithStreamingResponse: - def __init__(self, dlp: AsyncDLP) -> None: +class AsyncDLPResourceWithStreamingResponse: + def __init__(self, dlp: AsyncDLPResource) -> None: self._dlp = dlp @cached_property - def datasets(self) -> AsyncDatasetsWithStreamingResponse: - return AsyncDatasetsWithStreamingResponse(self._dlp.datasets) + def datasets(self) -> AsyncDatasetsResourceWithStreamingResponse: + return AsyncDatasetsResourceWithStreamingResponse(self._dlp.datasets) @cached_property - def patterns(self) -> AsyncPatternsWithStreamingResponse: - return AsyncPatternsWithStreamingResponse(self._dlp.patterns) + def patterns(self) -> AsyncPatternsResourceWithStreamingResponse: + return AsyncPatternsResourceWithStreamingResponse(self._dlp.patterns) @cached_property - def payload_logs(self) -> AsyncPayloadLogsWithStreamingResponse: - return AsyncPayloadLogsWithStreamingResponse(self._dlp.payload_logs) + def payload_logs(self) -> AsyncPayloadLogsResourceWithStreamingResponse: + return AsyncPayloadLogsResourceWithStreamingResponse(self._dlp.payload_logs) @cached_property - def profiles(self) -> AsyncProfilesWithStreamingResponse: - return AsyncProfilesWithStreamingResponse(self._dlp.profiles) + def profiles(self) -> AsyncProfilesResourceWithStreamingResponse: + return AsyncProfilesResourceWithStreamingResponse(self._dlp.profiles) diff --git a/src/cloudflare/resources/zero_trust/dlp/patterns.py b/src/cloudflare/resources/zero_trust/dlp/patterns.py index 6c4c158d4a5..dbf71741b8e 100644 --- a/src/cloudflare/resources/zero_trust/dlp/patterns.py +++ b/src/cloudflare/resources/zero_trust/dlp/patterns.py @@ -26,17 +26,17 @@ from ....types.zero_trust.dlp import pattern_validate_params from ....types.logpush.ownership_validation import OwnershipValidation -__all__ = ["Patterns", "AsyncPatterns"] +__all__ = ["PatternsResource", "AsyncPatternsResource"] -class Patterns(SyncAPIResource): +class PatternsResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> PatternsWithRawResponse: - return PatternsWithRawResponse(self) + def with_raw_response(self) -> PatternsResourceWithRawResponse: + return PatternsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> PatternsWithStreamingResponse: - return PatternsWithStreamingResponse(self) + def with_streaming_response(self) -> PatternsResourceWithStreamingResponse: + return PatternsResourceWithStreamingResponse(self) def validate( self, @@ -86,14 +86,14 @@ def validate( ) -class AsyncPatterns(AsyncAPIResource): +class AsyncPatternsResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncPatternsWithRawResponse: - return AsyncPatternsWithRawResponse(self) + def with_raw_response(self) -> AsyncPatternsResourceWithRawResponse: + return AsyncPatternsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncPatternsWithStreamingResponse: - return AsyncPatternsWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncPatternsResourceWithStreamingResponse: + return AsyncPatternsResourceWithStreamingResponse(self) async def validate( self, @@ -143,8 +143,8 @@ async def validate( ) -class PatternsWithRawResponse: - def __init__(self, patterns: Patterns) -> None: +class PatternsResourceWithRawResponse: + def __init__(self, patterns: PatternsResource) -> None: self._patterns = patterns self.validate = to_raw_response_wrapper( @@ -152,8 +152,8 @@ def __init__(self, patterns: Patterns) -> None: ) -class AsyncPatternsWithRawResponse: - def __init__(self, patterns: AsyncPatterns) -> None: +class AsyncPatternsResourceWithRawResponse: + def __init__(self, patterns: AsyncPatternsResource) -> None: self._patterns = patterns self.validate = async_to_raw_response_wrapper( @@ -161,8 +161,8 @@ def __init__(self, patterns: AsyncPatterns) -> None: ) -class PatternsWithStreamingResponse: - def __init__(self, patterns: Patterns) -> None: +class PatternsResourceWithStreamingResponse: + def __init__(self, patterns: PatternsResource) -> None: self._patterns = patterns self.validate = to_streamed_response_wrapper( @@ -170,8 +170,8 @@ def __init__(self, patterns: Patterns) -> None: ) -class AsyncPatternsWithStreamingResponse: - def __init__(self, patterns: AsyncPatterns) -> None: +class AsyncPatternsResourceWithStreamingResponse: + def __init__(self, patterns: AsyncPatternsResource) -> None: self._patterns = patterns self.validate = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/zero_trust/dlp/payload_logs.py b/src/cloudflare/resources/zero_trust/dlp/payload_logs.py index 1d82f9edfda..6cb2849102c 100644 --- a/src/cloudflare/resources/zero_trust/dlp/payload_logs.py +++ b/src/cloudflare/resources/zero_trust/dlp/payload_logs.py @@ -27,17 +27,17 @@ from ....types.zero_trust.dlp.payload_log_get_response import PayloadLogGetResponse from ....types.zero_trust.dlp.payload_log_update_response import PayloadLogUpdateResponse -__all__ = ["PayloadLogs", "AsyncPayloadLogs"] +__all__ = ["PayloadLogsResource", "AsyncPayloadLogsResource"] -class PayloadLogs(SyncAPIResource): +class PayloadLogsResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> PayloadLogsWithRawResponse: - return PayloadLogsWithRawResponse(self) + def with_raw_response(self) -> PayloadLogsResourceWithRawResponse: + return PayloadLogsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> PayloadLogsWithStreamingResponse: - return PayloadLogsWithStreamingResponse(self) + def with_streaming_response(self) -> PayloadLogsResourceWithStreamingResponse: + return PayloadLogsResourceWithStreamingResponse(self) def update( self, @@ -122,14 +122,14 @@ def get( ) -class AsyncPayloadLogs(AsyncAPIResource): +class AsyncPayloadLogsResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncPayloadLogsWithRawResponse: - return AsyncPayloadLogsWithRawResponse(self) + def with_raw_response(self) -> AsyncPayloadLogsResourceWithRawResponse: + return AsyncPayloadLogsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncPayloadLogsWithStreamingResponse: - return AsyncPayloadLogsWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncPayloadLogsResourceWithStreamingResponse: + return AsyncPayloadLogsResourceWithStreamingResponse(self) async def update( self, @@ -216,8 +216,8 @@ async def get( ) -class PayloadLogsWithRawResponse: - def __init__(self, payload_logs: PayloadLogs) -> None: +class PayloadLogsResourceWithRawResponse: + def __init__(self, payload_logs: PayloadLogsResource) -> None: self._payload_logs = payload_logs self.update = to_raw_response_wrapper( @@ -228,8 +228,8 @@ def __init__(self, payload_logs: PayloadLogs) -> None: ) -class AsyncPayloadLogsWithRawResponse: - def __init__(self, payload_logs: AsyncPayloadLogs) -> None: +class AsyncPayloadLogsResourceWithRawResponse: + def __init__(self, payload_logs: AsyncPayloadLogsResource) -> None: self._payload_logs = payload_logs self.update = async_to_raw_response_wrapper( @@ -240,8 +240,8 @@ def __init__(self, payload_logs: AsyncPayloadLogs) -> None: ) -class PayloadLogsWithStreamingResponse: - def __init__(self, payload_logs: PayloadLogs) -> None: +class PayloadLogsResourceWithStreamingResponse: + def __init__(self, payload_logs: PayloadLogsResource) -> None: self._payload_logs = payload_logs self.update = to_streamed_response_wrapper( @@ -252,8 +252,8 @@ def __init__(self, payload_logs: PayloadLogs) -> None: ) -class AsyncPayloadLogsWithStreamingResponse: - def __init__(self, payload_logs: AsyncPayloadLogs) -> None: +class AsyncPayloadLogsResourceWithStreamingResponse: + def __init__(self, payload_logs: AsyncPayloadLogsResource) -> None: self._payload_logs = payload_logs self.update = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/zero_trust/dlp/profiles/__init__.py b/src/cloudflare/resources/zero_trust/dlp/profiles/__init__.py index 10f49b061a9..967f99cb142 100644 --- a/src/cloudflare/resources/zero_trust/dlp/profiles/__init__.py +++ b/src/cloudflare/resources/zero_trust/dlp/profiles/__init__.py @@ -1,47 +1,47 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from .custom import ( - Custom, - AsyncCustom, - CustomWithRawResponse, - AsyncCustomWithRawResponse, - CustomWithStreamingResponse, - AsyncCustomWithStreamingResponse, + CustomResource, + AsyncCustomResource, + CustomResourceWithRawResponse, + AsyncCustomResourceWithRawResponse, + CustomResourceWithStreamingResponse, + AsyncCustomResourceWithStreamingResponse, ) from .profiles import ( - Profiles, - AsyncProfiles, - ProfilesWithRawResponse, - AsyncProfilesWithRawResponse, - ProfilesWithStreamingResponse, - AsyncProfilesWithStreamingResponse, + ProfilesResource, + AsyncProfilesResource, + ProfilesResourceWithRawResponse, + AsyncProfilesResourceWithRawResponse, + ProfilesResourceWithStreamingResponse, + AsyncProfilesResourceWithStreamingResponse, ) from .predefined import ( - Predefined, - AsyncPredefined, - PredefinedWithRawResponse, - AsyncPredefinedWithRawResponse, - PredefinedWithStreamingResponse, - AsyncPredefinedWithStreamingResponse, + PredefinedResource, + AsyncPredefinedResource, + PredefinedResourceWithRawResponse, + AsyncPredefinedResourceWithRawResponse, + PredefinedResourceWithStreamingResponse, + AsyncPredefinedResourceWithStreamingResponse, ) __all__ = [ - "Custom", - "AsyncCustom", - "CustomWithRawResponse", - "AsyncCustomWithRawResponse", - "CustomWithStreamingResponse", - "AsyncCustomWithStreamingResponse", - "Predefined", - "AsyncPredefined", - "PredefinedWithRawResponse", - "AsyncPredefinedWithRawResponse", - "PredefinedWithStreamingResponse", - "AsyncPredefinedWithStreamingResponse", - "Profiles", - "AsyncProfiles", - "ProfilesWithRawResponse", - "AsyncProfilesWithRawResponse", - "ProfilesWithStreamingResponse", - "AsyncProfilesWithStreamingResponse", + "CustomResource", + "AsyncCustomResource", + "CustomResourceWithRawResponse", + "AsyncCustomResourceWithRawResponse", + "CustomResourceWithStreamingResponse", + "AsyncCustomResourceWithStreamingResponse", + "PredefinedResource", + "AsyncPredefinedResource", + "PredefinedResourceWithRawResponse", + "AsyncPredefinedResourceWithRawResponse", + "PredefinedResourceWithStreamingResponse", + "AsyncPredefinedResourceWithStreamingResponse", + "ProfilesResource", + "AsyncProfilesResource", + "ProfilesResourceWithRawResponse", + "AsyncProfilesResourceWithRawResponse", + "ProfilesResourceWithStreamingResponse", + "AsyncProfilesResourceWithStreamingResponse", ] diff --git a/src/cloudflare/resources/zero_trust/dlp/profiles/custom.py b/src/cloudflare/resources/zero_trust/dlp/profiles/custom.py index a6d64bacf6d..a9265d0ffc6 100644 --- a/src/cloudflare/resources/zero_trust/dlp/profiles/custom.py +++ b/src/cloudflare/resources/zero_trust/dlp/profiles/custom.py @@ -29,17 +29,17 @@ from .....types.zero_trust.dlp.profiles.custom_create_response import CustomCreateResponse from .....types.zero_trust.dlp.profiles.custom_delete_response import CustomDeleteResponse -__all__ = ["Custom", "AsyncCustom"] +__all__ = ["CustomResource", "AsyncCustomResource"] -class Custom(SyncAPIResource): +class CustomResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> CustomWithRawResponse: - return CustomWithRawResponse(self) + def with_raw_response(self) -> CustomResourceWithRawResponse: + return CustomResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> CustomWithStreamingResponse: - return CustomWithStreamingResponse(self) + def with_streaming_response(self) -> CustomResourceWithStreamingResponse: + return CustomResourceWithStreamingResponse(self) def create( self, @@ -255,14 +255,14 @@ def get( ) -class AsyncCustom(AsyncAPIResource): +class AsyncCustomResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncCustomWithRawResponse: - return AsyncCustomWithRawResponse(self) + def with_raw_response(self) -> AsyncCustomResourceWithRawResponse: + return AsyncCustomResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncCustomWithStreamingResponse: - return AsyncCustomWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncCustomResourceWithStreamingResponse: + return AsyncCustomResourceWithStreamingResponse(self) async def create( self, @@ -478,8 +478,8 @@ async def get( ) -class CustomWithRawResponse: - def __init__(self, custom: Custom) -> None: +class CustomResourceWithRawResponse: + def __init__(self, custom: CustomResource) -> None: self._custom = custom self.create = to_raw_response_wrapper( @@ -496,8 +496,8 @@ def __init__(self, custom: Custom) -> None: ) -class AsyncCustomWithRawResponse: - def __init__(self, custom: AsyncCustom) -> None: +class AsyncCustomResourceWithRawResponse: + def __init__(self, custom: AsyncCustomResource) -> None: self._custom = custom self.create = async_to_raw_response_wrapper( @@ -514,8 +514,8 @@ def __init__(self, custom: AsyncCustom) -> None: ) -class CustomWithStreamingResponse: - def __init__(self, custom: Custom) -> None: +class CustomResourceWithStreamingResponse: + def __init__(self, custom: CustomResource) -> None: self._custom = custom self.create = to_streamed_response_wrapper( @@ -532,8 +532,8 @@ def __init__(self, custom: Custom) -> None: ) -class AsyncCustomWithStreamingResponse: - def __init__(self, custom: AsyncCustom) -> None: +class AsyncCustomResourceWithStreamingResponse: + def __init__(self, custom: AsyncCustomResource) -> None: self._custom = custom self.create = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/zero_trust/dlp/profiles/predefined.py b/src/cloudflare/resources/zero_trust/dlp/profiles/predefined.py index 96f794419ed..2b8664d00c4 100644 --- a/src/cloudflare/resources/zero_trust/dlp/profiles/predefined.py +++ b/src/cloudflare/resources/zero_trust/dlp/profiles/predefined.py @@ -27,17 +27,17 @@ from .....types.zero_trust.dlp.context_awareness_param import ContextAwarenessParam from .....types.zero_trust.dlp.profiles.predefined_profile import PredefinedProfile -__all__ = ["Predefined", "AsyncPredefined"] +__all__ = ["PredefinedResource", "AsyncPredefinedResource"] -class Predefined(SyncAPIResource): +class PredefinedResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> PredefinedWithRawResponse: - return PredefinedWithRawResponse(self) + def with_raw_response(self) -> PredefinedResourceWithRawResponse: + return PredefinedResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> PredefinedWithStreamingResponse: - return PredefinedWithStreamingResponse(self) + def with_streaming_response(self) -> PredefinedResourceWithStreamingResponse: + return PredefinedResourceWithStreamingResponse(self) def update( self, @@ -147,14 +147,14 @@ def get( ) -class AsyncPredefined(AsyncAPIResource): +class AsyncPredefinedResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncPredefinedWithRawResponse: - return AsyncPredefinedWithRawResponse(self) + def with_raw_response(self) -> AsyncPredefinedResourceWithRawResponse: + return AsyncPredefinedResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncPredefinedWithStreamingResponse: - return AsyncPredefinedWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncPredefinedResourceWithStreamingResponse: + return AsyncPredefinedResourceWithStreamingResponse(self) async def update( self, @@ -264,8 +264,8 @@ async def get( ) -class PredefinedWithRawResponse: - def __init__(self, predefined: Predefined) -> None: +class PredefinedResourceWithRawResponse: + def __init__(self, predefined: PredefinedResource) -> None: self._predefined = predefined self.update = to_raw_response_wrapper( @@ -276,8 +276,8 @@ def __init__(self, predefined: Predefined) -> None: ) -class AsyncPredefinedWithRawResponse: - def __init__(self, predefined: AsyncPredefined) -> None: +class AsyncPredefinedResourceWithRawResponse: + def __init__(self, predefined: AsyncPredefinedResource) -> None: self._predefined = predefined self.update = async_to_raw_response_wrapper( @@ -288,8 +288,8 @@ def __init__(self, predefined: AsyncPredefined) -> None: ) -class PredefinedWithStreamingResponse: - def __init__(self, predefined: Predefined) -> None: +class PredefinedResourceWithStreamingResponse: + def __init__(self, predefined: PredefinedResource) -> None: self._predefined = predefined self.update = to_streamed_response_wrapper( @@ -300,8 +300,8 @@ def __init__(self, predefined: Predefined) -> None: ) -class AsyncPredefinedWithStreamingResponse: - def __init__(self, predefined: AsyncPredefined) -> None: +class AsyncPredefinedResourceWithStreamingResponse: + def __init__(self, predefined: AsyncPredefinedResource) -> None: self._predefined = predefined self.update = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/zero_trust/dlp/profiles/profiles.py b/src/cloudflare/resources/zero_trust/dlp/profiles/profiles.py index 6d701a1cd72..217be9367b3 100644 --- a/src/cloudflare/resources/zero_trust/dlp/profiles/profiles.py +++ b/src/cloudflare/resources/zero_trust/dlp/profiles/profiles.py @@ -7,21 +7,21 @@ import httpx from .custom import ( - Custom, - AsyncCustom, - CustomWithRawResponse, - AsyncCustomWithRawResponse, - CustomWithStreamingResponse, - AsyncCustomWithStreamingResponse, + CustomResource, + AsyncCustomResource, + CustomResourceWithRawResponse, + AsyncCustomResourceWithRawResponse, + CustomResourceWithStreamingResponse, + AsyncCustomResourceWithStreamingResponse, ) from ....._types import NOT_GIVEN, Body, Query, Headers, NotGiven from .predefined import ( - Predefined, - AsyncPredefined, - PredefinedWithRawResponse, - AsyncPredefinedWithRawResponse, - PredefinedWithStreamingResponse, - AsyncPredefinedWithStreamingResponse, + PredefinedResource, + AsyncPredefinedResource, + PredefinedResourceWithRawResponse, + AsyncPredefinedResourceWithRawResponse, + PredefinedResourceWithStreamingResponse, + AsyncPredefinedResourceWithStreamingResponse, ) from ....._compat import cached_property from ....._resource import SyncAPIResource, AsyncAPIResource @@ -40,25 +40,25 @@ from .....types.zero_trust.dlp.profile import Profile from .....types.zero_trust.dlp.profile_get_response import ProfileGetResponse -__all__ = ["Profiles", "AsyncProfiles"] +__all__ = ["ProfilesResource", "AsyncProfilesResource"] -class Profiles(SyncAPIResource): +class ProfilesResource(SyncAPIResource): @cached_property - def custom(self) -> Custom: - return Custom(self._client) + def custom(self) -> CustomResource: + return CustomResource(self._client) @cached_property - def predefined(self) -> Predefined: - return Predefined(self._client) + def predefined(self) -> PredefinedResource: + return PredefinedResource(self._client) @cached_property - def with_raw_response(self) -> ProfilesWithRawResponse: - return ProfilesWithRawResponse(self) + def with_raw_response(self) -> ProfilesResourceWithRawResponse: + return ProfilesResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> ProfilesWithStreamingResponse: - return ProfilesWithStreamingResponse(self) + def with_streaming_response(self) -> ProfilesResourceWithStreamingResponse: + return ProfilesResourceWithStreamingResponse(self) def list( self, @@ -147,22 +147,22 @@ def get( ) -class AsyncProfiles(AsyncAPIResource): +class AsyncProfilesResource(AsyncAPIResource): @cached_property - def custom(self) -> AsyncCustom: - return AsyncCustom(self._client) + def custom(self) -> AsyncCustomResource: + return AsyncCustomResource(self._client) @cached_property - def predefined(self) -> AsyncPredefined: - return AsyncPredefined(self._client) + def predefined(self) -> AsyncPredefinedResource: + return AsyncPredefinedResource(self._client) @cached_property - def with_raw_response(self) -> AsyncProfilesWithRawResponse: - return AsyncProfilesWithRawResponse(self) + def with_raw_response(self) -> AsyncProfilesResourceWithRawResponse: + return AsyncProfilesResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncProfilesWithStreamingResponse: - return AsyncProfilesWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncProfilesResourceWithStreamingResponse: + return AsyncProfilesResourceWithStreamingResponse(self) def list( self, @@ -251,8 +251,8 @@ async def get( ) -class ProfilesWithRawResponse: - def __init__(self, profiles: Profiles) -> None: +class ProfilesResourceWithRawResponse: + def __init__(self, profiles: ProfilesResource) -> None: self._profiles = profiles self.list = to_raw_response_wrapper( @@ -263,16 +263,16 @@ def __init__(self, profiles: Profiles) -> None: ) @cached_property - def custom(self) -> CustomWithRawResponse: - return CustomWithRawResponse(self._profiles.custom) + def custom(self) -> CustomResourceWithRawResponse: + return CustomResourceWithRawResponse(self._profiles.custom) @cached_property - def predefined(self) -> PredefinedWithRawResponse: - return PredefinedWithRawResponse(self._profiles.predefined) + def predefined(self) -> PredefinedResourceWithRawResponse: + return PredefinedResourceWithRawResponse(self._profiles.predefined) -class AsyncProfilesWithRawResponse: - def __init__(self, profiles: AsyncProfiles) -> None: +class AsyncProfilesResourceWithRawResponse: + def __init__(self, profiles: AsyncProfilesResource) -> None: self._profiles = profiles self.list = async_to_raw_response_wrapper( @@ -283,16 +283,16 @@ def __init__(self, profiles: AsyncProfiles) -> None: ) @cached_property - def custom(self) -> AsyncCustomWithRawResponse: - return AsyncCustomWithRawResponse(self._profiles.custom) + def custom(self) -> AsyncCustomResourceWithRawResponse: + return AsyncCustomResourceWithRawResponse(self._profiles.custom) @cached_property - def predefined(self) -> AsyncPredefinedWithRawResponse: - return AsyncPredefinedWithRawResponse(self._profiles.predefined) + def predefined(self) -> AsyncPredefinedResourceWithRawResponse: + return AsyncPredefinedResourceWithRawResponse(self._profiles.predefined) -class ProfilesWithStreamingResponse: - def __init__(self, profiles: Profiles) -> None: +class ProfilesResourceWithStreamingResponse: + def __init__(self, profiles: ProfilesResource) -> None: self._profiles = profiles self.list = to_streamed_response_wrapper( @@ -303,16 +303,16 @@ def __init__(self, profiles: Profiles) -> None: ) @cached_property - def custom(self) -> CustomWithStreamingResponse: - return CustomWithStreamingResponse(self._profiles.custom) + def custom(self) -> CustomResourceWithStreamingResponse: + return CustomResourceWithStreamingResponse(self._profiles.custom) @cached_property - def predefined(self) -> PredefinedWithStreamingResponse: - return PredefinedWithStreamingResponse(self._profiles.predefined) + def predefined(self) -> PredefinedResourceWithStreamingResponse: + return PredefinedResourceWithStreamingResponse(self._profiles.predefined) -class AsyncProfilesWithStreamingResponse: - def __init__(self, profiles: AsyncProfiles) -> None: +class AsyncProfilesResourceWithStreamingResponse: + def __init__(self, profiles: AsyncProfilesResource) -> None: self._profiles = profiles self.list = async_to_streamed_response_wrapper( @@ -323,9 +323,9 @@ def __init__(self, profiles: AsyncProfiles) -> None: ) @cached_property - def custom(self) -> AsyncCustomWithStreamingResponse: - return AsyncCustomWithStreamingResponse(self._profiles.custom) + def custom(self) -> AsyncCustomResourceWithStreamingResponse: + return AsyncCustomResourceWithStreamingResponse(self._profiles.custom) @cached_property - def predefined(self) -> AsyncPredefinedWithStreamingResponse: - return AsyncPredefinedWithStreamingResponse(self._profiles.predefined) + def predefined(self) -> AsyncPredefinedResourceWithStreamingResponse: + return AsyncPredefinedResourceWithStreamingResponse(self._profiles.predefined) diff --git a/src/cloudflare/resources/zero_trust/gateway/__init__.py b/src/cloudflare/resources/zero_trust/gateway/__init__.py index 38b69870994..e121dd0022f 100644 --- a/src/cloudflare/resources/zero_trust/gateway/__init__.py +++ b/src/cloudflare/resources/zero_trust/gateway/__init__.py @@ -1,145 +1,145 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from .lists import ( - Lists, - AsyncLists, - ListsWithRawResponse, - AsyncListsWithRawResponse, - ListsWithStreamingResponse, - AsyncListsWithStreamingResponse, + ListsResource, + AsyncListsResource, + ListsResourceWithRawResponse, + AsyncListsResourceWithRawResponse, + ListsResourceWithStreamingResponse, + AsyncListsResourceWithStreamingResponse, ) from .rules import ( - Rules, - AsyncRules, - RulesWithRawResponse, - AsyncRulesWithRawResponse, - RulesWithStreamingResponse, - AsyncRulesWithStreamingResponse, + RulesResource, + AsyncRulesResource, + RulesResourceWithRawResponse, + AsyncRulesResourceWithRawResponse, + RulesResourceWithStreamingResponse, + AsyncRulesResourceWithStreamingResponse, ) from .gateway import ( - Gateway, - AsyncGateway, - GatewayWithRawResponse, - AsyncGatewayWithRawResponse, - GatewayWithStreamingResponse, - AsyncGatewayWithStreamingResponse, + GatewayResource, + AsyncGatewayResource, + GatewayResourceWithRawResponse, + AsyncGatewayResourceWithRawResponse, + GatewayResourceWithStreamingResponse, + AsyncGatewayResourceWithStreamingResponse, ) from .logging import ( - Logging, - AsyncLogging, - LoggingWithRawResponse, - AsyncLoggingWithRawResponse, - LoggingWithStreamingResponse, - AsyncLoggingWithStreamingResponse, + LoggingResource, + AsyncLoggingResource, + LoggingResourceWithRawResponse, + AsyncLoggingResourceWithRawResponse, + LoggingResourceWithStreamingResponse, + AsyncLoggingResourceWithStreamingResponse, ) from .app_types import ( - AppTypes, - AsyncAppTypes, - AppTypesWithRawResponse, - AsyncAppTypesWithRawResponse, - AppTypesWithStreamingResponse, - AsyncAppTypesWithStreamingResponse, + AppTypesResource, + AsyncAppTypesResource, + AppTypesResourceWithRawResponse, + AsyncAppTypesResourceWithRawResponse, + AppTypesResourceWithStreamingResponse, + AsyncAppTypesResourceWithStreamingResponse, ) from .locations import ( - Locations, - AsyncLocations, - LocationsWithRawResponse, - AsyncLocationsWithRawResponse, - LocationsWithStreamingResponse, - AsyncLocationsWithStreamingResponse, + LocationsResource, + AsyncLocationsResource, + LocationsResourceWithRawResponse, + AsyncLocationsResourceWithRawResponse, + LocationsResourceWithStreamingResponse, + AsyncLocationsResourceWithStreamingResponse, ) from .categories import ( - Categories, - AsyncCategories, - CategoriesWithRawResponse, - AsyncCategoriesWithRawResponse, - CategoriesWithStreamingResponse, - AsyncCategoriesWithStreamingResponse, + CategoriesResource, + AsyncCategoriesResource, + CategoriesResourceWithRawResponse, + AsyncCategoriesResourceWithRawResponse, + CategoriesResourceWithStreamingResponse, + AsyncCategoriesResourceWithStreamingResponse, ) from .configurations import ( - Configurations, - AsyncConfigurations, - ConfigurationsWithRawResponse, - AsyncConfigurationsWithRawResponse, - ConfigurationsWithStreamingResponse, - AsyncConfigurationsWithStreamingResponse, + ConfigurationsResource, + AsyncConfigurationsResource, + ConfigurationsResourceWithRawResponse, + AsyncConfigurationsResourceWithRawResponse, + ConfigurationsResourceWithStreamingResponse, + AsyncConfigurationsResourceWithStreamingResponse, ) from .proxy_endpoints import ( - ProxyEndpoints, - AsyncProxyEndpoints, - ProxyEndpointsWithRawResponse, - AsyncProxyEndpointsWithRawResponse, - ProxyEndpointsWithStreamingResponse, - AsyncProxyEndpointsWithStreamingResponse, + ProxyEndpointsResource, + AsyncProxyEndpointsResource, + ProxyEndpointsResourceWithRawResponse, + AsyncProxyEndpointsResourceWithRawResponse, + ProxyEndpointsResourceWithStreamingResponse, + AsyncProxyEndpointsResourceWithStreamingResponse, ) from .audit_ssh_settings import ( - AuditSSHSettings, - AsyncAuditSSHSettings, - AuditSSHSettingsWithRawResponse, - AsyncAuditSSHSettingsWithRawResponse, - AuditSSHSettingsWithStreamingResponse, - AsyncAuditSSHSettingsWithStreamingResponse, + AuditSSHSettingsResource, + AsyncAuditSSHSettingsResource, + AuditSSHSettingsResourceWithRawResponse, + AsyncAuditSSHSettingsResourceWithRawResponse, + AuditSSHSettingsResourceWithStreamingResponse, + AsyncAuditSSHSettingsResourceWithStreamingResponse, ) __all__ = [ - "AuditSSHSettings", - "AsyncAuditSSHSettings", - "AuditSSHSettingsWithRawResponse", - "AsyncAuditSSHSettingsWithRawResponse", - "AuditSSHSettingsWithStreamingResponse", - "AsyncAuditSSHSettingsWithStreamingResponse", - "Categories", - "AsyncCategories", - "CategoriesWithRawResponse", - "AsyncCategoriesWithRawResponse", - "CategoriesWithStreamingResponse", - "AsyncCategoriesWithStreamingResponse", - "AppTypes", - "AsyncAppTypes", - "AppTypesWithRawResponse", - "AsyncAppTypesWithRawResponse", - "AppTypesWithStreamingResponse", - "AsyncAppTypesWithStreamingResponse", - "Configurations", - "AsyncConfigurations", - "ConfigurationsWithRawResponse", - "AsyncConfigurationsWithRawResponse", - "ConfigurationsWithStreamingResponse", - "AsyncConfigurationsWithStreamingResponse", - "Lists", - "AsyncLists", - "ListsWithRawResponse", - "AsyncListsWithRawResponse", - "ListsWithStreamingResponse", - "AsyncListsWithStreamingResponse", - "Locations", - "AsyncLocations", - "LocationsWithRawResponse", - "AsyncLocationsWithRawResponse", - "LocationsWithStreamingResponse", - "AsyncLocationsWithStreamingResponse", - "Logging", - "AsyncLogging", - "LoggingWithRawResponse", - "AsyncLoggingWithRawResponse", - "LoggingWithStreamingResponse", - "AsyncLoggingWithStreamingResponse", - "ProxyEndpoints", - "AsyncProxyEndpoints", - "ProxyEndpointsWithRawResponse", - "AsyncProxyEndpointsWithRawResponse", - "ProxyEndpointsWithStreamingResponse", - "AsyncProxyEndpointsWithStreamingResponse", - "Rules", - "AsyncRules", - "RulesWithRawResponse", - "AsyncRulesWithRawResponse", - "RulesWithStreamingResponse", - "AsyncRulesWithStreamingResponse", - "Gateway", - "AsyncGateway", - "GatewayWithRawResponse", - "AsyncGatewayWithRawResponse", - "GatewayWithStreamingResponse", - "AsyncGatewayWithStreamingResponse", + "AuditSSHSettingsResource", + "AsyncAuditSSHSettingsResource", + "AuditSSHSettingsResourceWithRawResponse", + "AsyncAuditSSHSettingsResourceWithRawResponse", + "AuditSSHSettingsResourceWithStreamingResponse", + "AsyncAuditSSHSettingsResourceWithStreamingResponse", + "CategoriesResource", + "AsyncCategoriesResource", + "CategoriesResourceWithRawResponse", + "AsyncCategoriesResourceWithRawResponse", + "CategoriesResourceWithStreamingResponse", + "AsyncCategoriesResourceWithStreamingResponse", + "AppTypesResource", + "AsyncAppTypesResource", + "AppTypesResourceWithRawResponse", + "AsyncAppTypesResourceWithRawResponse", + "AppTypesResourceWithStreamingResponse", + "AsyncAppTypesResourceWithStreamingResponse", + "ConfigurationsResource", + "AsyncConfigurationsResource", + "ConfigurationsResourceWithRawResponse", + "AsyncConfigurationsResourceWithRawResponse", + "ConfigurationsResourceWithStreamingResponse", + "AsyncConfigurationsResourceWithStreamingResponse", + "ListsResource", + "AsyncListsResource", + "ListsResourceWithRawResponse", + "AsyncListsResourceWithRawResponse", + "ListsResourceWithStreamingResponse", + "AsyncListsResourceWithStreamingResponse", + "LocationsResource", + "AsyncLocationsResource", + "LocationsResourceWithRawResponse", + "AsyncLocationsResourceWithRawResponse", + "LocationsResourceWithStreamingResponse", + "AsyncLocationsResourceWithStreamingResponse", + "LoggingResource", + "AsyncLoggingResource", + "LoggingResourceWithRawResponse", + "AsyncLoggingResourceWithRawResponse", + "LoggingResourceWithStreamingResponse", + "AsyncLoggingResourceWithStreamingResponse", + "ProxyEndpointsResource", + "AsyncProxyEndpointsResource", + "ProxyEndpointsResourceWithRawResponse", + "AsyncProxyEndpointsResourceWithRawResponse", + "ProxyEndpointsResourceWithStreamingResponse", + "AsyncProxyEndpointsResourceWithStreamingResponse", + "RulesResource", + "AsyncRulesResource", + "RulesResourceWithRawResponse", + "AsyncRulesResourceWithRawResponse", + "RulesResourceWithStreamingResponse", + "AsyncRulesResourceWithStreamingResponse", + "GatewayResource", + "AsyncGatewayResource", + "GatewayResourceWithRawResponse", + "AsyncGatewayResourceWithRawResponse", + "GatewayResourceWithStreamingResponse", + "AsyncGatewayResourceWithStreamingResponse", ] diff --git a/src/cloudflare/resources/zero_trust/gateway/app_types.py b/src/cloudflare/resources/zero_trust/gateway/app_types.py index e0e6e990f15..7a10d91cabd 100644 --- a/src/cloudflare/resources/zero_trust/gateway/app_types.py +++ b/src/cloudflare/resources/zero_trust/gateway/app_types.py @@ -22,17 +22,17 @@ ) from ....types.zero_trust.gateway.app_type import AppType -__all__ = ["AppTypes", "AsyncAppTypes"] +__all__ = ["AppTypesResource", "AsyncAppTypesResource"] -class AppTypes(SyncAPIResource): +class AppTypesResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> AppTypesWithRawResponse: - return AppTypesWithRawResponse(self) + def with_raw_response(self) -> AppTypesResourceWithRawResponse: + return AppTypesResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AppTypesWithStreamingResponse: - return AppTypesWithStreamingResponse(self) + def with_streaming_response(self) -> AppTypesResourceWithStreamingResponse: + return AppTypesResourceWithStreamingResponse(self) def list( self, @@ -71,14 +71,14 @@ def list( ) -class AsyncAppTypes(AsyncAPIResource): +class AsyncAppTypesResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncAppTypesWithRawResponse: - return AsyncAppTypesWithRawResponse(self) + def with_raw_response(self) -> AsyncAppTypesResourceWithRawResponse: + return AsyncAppTypesResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncAppTypesWithStreamingResponse: - return AsyncAppTypesWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncAppTypesResourceWithStreamingResponse: + return AsyncAppTypesResourceWithStreamingResponse(self) def list( self, @@ -117,8 +117,8 @@ def list( ) -class AppTypesWithRawResponse: - def __init__(self, app_types: AppTypes) -> None: +class AppTypesResourceWithRawResponse: + def __init__(self, app_types: AppTypesResource) -> None: self._app_types = app_types self.list = to_raw_response_wrapper( @@ -126,8 +126,8 @@ def __init__(self, app_types: AppTypes) -> None: ) -class AsyncAppTypesWithRawResponse: - def __init__(self, app_types: AsyncAppTypes) -> None: +class AsyncAppTypesResourceWithRawResponse: + def __init__(self, app_types: AsyncAppTypesResource) -> None: self._app_types = app_types self.list = async_to_raw_response_wrapper( @@ -135,8 +135,8 @@ def __init__(self, app_types: AsyncAppTypes) -> None: ) -class AppTypesWithStreamingResponse: - def __init__(self, app_types: AppTypes) -> None: +class AppTypesResourceWithStreamingResponse: + def __init__(self, app_types: AppTypesResource) -> None: self._app_types = app_types self.list = to_streamed_response_wrapper( @@ -144,8 +144,8 @@ def __init__(self, app_types: AppTypes) -> None: ) -class AsyncAppTypesWithStreamingResponse: - def __init__(self, app_types: AsyncAppTypes) -> None: +class AsyncAppTypesResourceWithStreamingResponse: + def __init__(self, app_types: AsyncAppTypesResource) -> None: self._app_types = app_types self.list = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/zero_trust/gateway/audit_ssh_settings.py b/src/cloudflare/resources/zero_trust/gateway/audit_ssh_settings.py index 59aa8b46ab9..6b3800f4df4 100644 --- a/src/cloudflare/resources/zero_trust/gateway/audit_ssh_settings.py +++ b/src/cloudflare/resources/zero_trust/gateway/audit_ssh_settings.py @@ -26,17 +26,17 @@ from ....types.zero_trust.gateway import audit_ssh_setting_update_params from ....types.zero_trust.gateway.gateway_settings import GatewaySettings -__all__ = ["AuditSSHSettings", "AsyncAuditSSHSettings"] +__all__ = ["AuditSSHSettingsResource", "AsyncAuditSSHSettingsResource"] -class AuditSSHSettings(SyncAPIResource): +class AuditSSHSettingsResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> AuditSSHSettingsWithRawResponse: - return AuditSSHSettingsWithRawResponse(self) + def with_raw_response(self) -> AuditSSHSettingsResourceWithRawResponse: + return AuditSSHSettingsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AuditSSHSettingsWithStreamingResponse: - return AuditSSHSettingsWithStreamingResponse(self) + def with_streaming_response(self) -> AuditSSHSettingsResourceWithStreamingResponse: + return AuditSSHSettingsResourceWithStreamingResponse(self) def update( self, @@ -126,14 +126,14 @@ def get( ) -class AsyncAuditSSHSettings(AsyncAPIResource): +class AsyncAuditSSHSettingsResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncAuditSSHSettingsWithRawResponse: - return AsyncAuditSSHSettingsWithRawResponse(self) + def with_raw_response(self) -> AsyncAuditSSHSettingsResourceWithRawResponse: + return AsyncAuditSSHSettingsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncAuditSSHSettingsWithStreamingResponse: - return AsyncAuditSSHSettingsWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncAuditSSHSettingsResourceWithStreamingResponse: + return AsyncAuditSSHSettingsResourceWithStreamingResponse(self) async def update( self, @@ -223,8 +223,8 @@ async def get( ) -class AuditSSHSettingsWithRawResponse: - def __init__(self, audit_ssh_settings: AuditSSHSettings) -> None: +class AuditSSHSettingsResourceWithRawResponse: + def __init__(self, audit_ssh_settings: AuditSSHSettingsResource) -> None: self._audit_ssh_settings = audit_ssh_settings self.update = to_raw_response_wrapper( @@ -235,8 +235,8 @@ def __init__(self, audit_ssh_settings: AuditSSHSettings) -> None: ) -class AsyncAuditSSHSettingsWithRawResponse: - def __init__(self, audit_ssh_settings: AsyncAuditSSHSettings) -> None: +class AsyncAuditSSHSettingsResourceWithRawResponse: + def __init__(self, audit_ssh_settings: AsyncAuditSSHSettingsResource) -> None: self._audit_ssh_settings = audit_ssh_settings self.update = async_to_raw_response_wrapper( @@ -247,8 +247,8 @@ def __init__(self, audit_ssh_settings: AsyncAuditSSHSettings) -> None: ) -class AuditSSHSettingsWithStreamingResponse: - def __init__(self, audit_ssh_settings: AuditSSHSettings) -> None: +class AuditSSHSettingsResourceWithStreamingResponse: + def __init__(self, audit_ssh_settings: AuditSSHSettingsResource) -> None: self._audit_ssh_settings = audit_ssh_settings self.update = to_streamed_response_wrapper( @@ -259,8 +259,8 @@ def __init__(self, audit_ssh_settings: AuditSSHSettings) -> None: ) -class AsyncAuditSSHSettingsWithStreamingResponse: - def __init__(self, audit_ssh_settings: AsyncAuditSSHSettings) -> None: +class AsyncAuditSSHSettingsResourceWithStreamingResponse: + def __init__(self, audit_ssh_settings: AsyncAuditSSHSettingsResource) -> None: self._audit_ssh_settings = audit_ssh_settings self.update = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/zero_trust/gateway/categories.py b/src/cloudflare/resources/zero_trust/gateway/categories.py index e6ddf46d11b..567a0b88a36 100644 --- a/src/cloudflare/resources/zero_trust/gateway/categories.py +++ b/src/cloudflare/resources/zero_trust/gateway/categories.py @@ -20,17 +20,17 @@ ) from ....types.zero_trust.gateway.category import Category -__all__ = ["Categories", "AsyncCategories"] +__all__ = ["CategoriesResource", "AsyncCategoriesResource"] -class Categories(SyncAPIResource): +class CategoriesResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> CategoriesWithRawResponse: - return CategoriesWithRawResponse(self) + def with_raw_response(self) -> CategoriesResourceWithRawResponse: + return CategoriesResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> CategoriesWithStreamingResponse: - return CategoriesWithStreamingResponse(self) + def with_streaming_response(self) -> CategoriesResourceWithStreamingResponse: + return CategoriesResourceWithStreamingResponse(self) def list( self, @@ -69,14 +69,14 @@ def list( ) -class AsyncCategories(AsyncAPIResource): +class AsyncCategoriesResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncCategoriesWithRawResponse: - return AsyncCategoriesWithRawResponse(self) + def with_raw_response(self) -> AsyncCategoriesResourceWithRawResponse: + return AsyncCategoriesResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncCategoriesWithStreamingResponse: - return AsyncCategoriesWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncCategoriesResourceWithStreamingResponse: + return AsyncCategoriesResourceWithStreamingResponse(self) def list( self, @@ -115,8 +115,8 @@ def list( ) -class CategoriesWithRawResponse: - def __init__(self, categories: Categories) -> None: +class CategoriesResourceWithRawResponse: + def __init__(self, categories: CategoriesResource) -> None: self._categories = categories self.list = to_raw_response_wrapper( @@ -124,8 +124,8 @@ def __init__(self, categories: Categories) -> None: ) -class AsyncCategoriesWithRawResponse: - def __init__(self, categories: AsyncCategories) -> None: +class AsyncCategoriesResourceWithRawResponse: + def __init__(self, categories: AsyncCategoriesResource) -> None: self._categories = categories self.list = async_to_raw_response_wrapper( @@ -133,8 +133,8 @@ def __init__(self, categories: AsyncCategories) -> None: ) -class CategoriesWithStreamingResponse: - def __init__(self, categories: Categories) -> None: +class CategoriesResourceWithStreamingResponse: + def __init__(self, categories: CategoriesResource) -> None: self._categories = categories self.list = to_streamed_response_wrapper( @@ -142,8 +142,8 @@ def __init__(self, categories: Categories) -> None: ) -class AsyncCategoriesWithStreamingResponse: - def __init__(self, categories: AsyncCategories) -> None: +class AsyncCategoriesResourceWithStreamingResponse: + def __init__(self, categories: AsyncCategoriesResource) -> None: self._categories = categories self.list = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/zero_trust/gateway/configurations.py b/src/cloudflare/resources/zero_trust/gateway/configurations.py index e440e974f29..ce316798e47 100644 --- a/src/cloudflare/resources/zero_trust/gateway/configurations.py +++ b/src/cloudflare/resources/zero_trust/gateway/configurations.py @@ -32,17 +32,17 @@ from ....types.zero_trust.gateway.configuration_update_response import ConfigurationUpdateResponse from ....types.zero_trust.gateway.gateway_configuration_settings_param import GatewayConfigurationSettingsParam -__all__ = ["Configurations", "AsyncConfigurations"] +__all__ = ["ConfigurationsResource", "AsyncConfigurationsResource"] -class Configurations(SyncAPIResource): +class ConfigurationsResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> ConfigurationsWithRawResponse: - return ConfigurationsWithRawResponse(self) + def with_raw_response(self) -> ConfigurationsResourceWithRawResponse: + return ConfigurationsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> ConfigurationsWithStreamingResponse: - return ConfigurationsWithStreamingResponse(self) + def with_streaming_response(self) -> ConfigurationsResourceWithStreamingResponse: + return ConfigurationsResourceWithStreamingResponse(self) def update( self, @@ -169,14 +169,14 @@ def get( ) -class AsyncConfigurations(AsyncAPIResource): +class AsyncConfigurationsResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncConfigurationsWithRawResponse: - return AsyncConfigurationsWithRawResponse(self) + def with_raw_response(self) -> AsyncConfigurationsResourceWithRawResponse: + return AsyncConfigurationsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncConfigurationsWithStreamingResponse: - return AsyncConfigurationsWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncConfigurationsResourceWithStreamingResponse: + return AsyncConfigurationsResourceWithStreamingResponse(self) async def update( self, @@ -305,8 +305,8 @@ async def get( ) -class ConfigurationsWithRawResponse: - def __init__(self, configurations: Configurations) -> None: +class ConfigurationsResourceWithRawResponse: + def __init__(self, configurations: ConfigurationsResource) -> None: self._configurations = configurations self.update = to_raw_response_wrapper( @@ -320,8 +320,8 @@ def __init__(self, configurations: Configurations) -> None: ) -class AsyncConfigurationsWithRawResponse: - def __init__(self, configurations: AsyncConfigurations) -> None: +class AsyncConfigurationsResourceWithRawResponse: + def __init__(self, configurations: AsyncConfigurationsResource) -> None: self._configurations = configurations self.update = async_to_raw_response_wrapper( @@ -335,8 +335,8 @@ def __init__(self, configurations: AsyncConfigurations) -> None: ) -class ConfigurationsWithStreamingResponse: - def __init__(self, configurations: Configurations) -> None: +class ConfigurationsResourceWithStreamingResponse: + def __init__(self, configurations: ConfigurationsResource) -> None: self._configurations = configurations self.update = to_streamed_response_wrapper( @@ -350,8 +350,8 @@ def __init__(self, configurations: Configurations) -> None: ) -class AsyncConfigurationsWithStreamingResponse: - def __init__(self, configurations: AsyncConfigurations) -> None: +class AsyncConfigurationsResourceWithStreamingResponse: + def __init__(self, configurations: AsyncConfigurationsResource) -> None: self._configurations = configurations self.update = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/zero_trust/gateway/gateway.py b/src/cloudflare/resources/zero_trust/gateway/gateway.py index 30e9a442118..a2e994272d9 100644 --- a/src/cloudflare/resources/zero_trust/gateway/gateway.py +++ b/src/cloudflare/resources/zero_trust/gateway/gateway.py @@ -7,56 +7,56 @@ import httpx from .lists import ( - Lists, - AsyncLists, - ListsWithRawResponse, - AsyncListsWithRawResponse, - ListsWithStreamingResponse, - AsyncListsWithStreamingResponse, + ListsResource, + AsyncListsResource, + ListsResourceWithRawResponse, + AsyncListsResourceWithRawResponse, + ListsResourceWithStreamingResponse, + AsyncListsResourceWithStreamingResponse, ) from .rules import ( - Rules, - AsyncRules, - RulesWithRawResponse, - AsyncRulesWithRawResponse, - RulesWithStreamingResponse, - AsyncRulesWithStreamingResponse, + RulesResource, + AsyncRulesResource, + RulesResourceWithRawResponse, + AsyncRulesResourceWithRawResponse, + RulesResourceWithStreamingResponse, + AsyncRulesResourceWithStreamingResponse, ) from .logging import ( - Logging, - AsyncLogging, - LoggingWithRawResponse, - AsyncLoggingWithRawResponse, - LoggingWithStreamingResponse, - AsyncLoggingWithStreamingResponse, + LoggingResource, + AsyncLoggingResource, + LoggingResourceWithRawResponse, + AsyncLoggingResourceWithRawResponse, + LoggingResourceWithStreamingResponse, + AsyncLoggingResourceWithStreamingResponse, ) from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven from .app_types import ( - AppTypes, - AsyncAppTypes, - AppTypesWithRawResponse, - AsyncAppTypesWithRawResponse, - AppTypesWithStreamingResponse, - AsyncAppTypesWithStreamingResponse, + AppTypesResource, + AsyncAppTypesResource, + AppTypesResourceWithRawResponse, + AsyncAppTypesResourceWithRawResponse, + AppTypesResourceWithStreamingResponse, + AsyncAppTypesResourceWithStreamingResponse, ) from .locations import ( - Locations, - AsyncLocations, - LocationsWithRawResponse, - AsyncLocationsWithRawResponse, - LocationsWithStreamingResponse, - AsyncLocationsWithStreamingResponse, + LocationsResource, + AsyncLocationsResource, + LocationsResourceWithRawResponse, + AsyncLocationsResourceWithRawResponse, + LocationsResourceWithStreamingResponse, + AsyncLocationsResourceWithStreamingResponse, ) from ...._compat import cached_property from .categories import ( - Categories, - AsyncCategories, - CategoriesWithRawResponse, - AsyncCategoriesWithRawResponse, - CategoriesWithStreamingResponse, - AsyncCategoriesWithStreamingResponse, + CategoriesResource, + AsyncCategoriesResource, + CategoriesResourceWithRawResponse, + AsyncCategoriesResourceWithRawResponse, + CategoriesResourceWithStreamingResponse, + AsyncCategoriesResourceWithStreamingResponse, ) -from .lists.lists import Lists, AsyncLists +from .lists.lists import ListsResource, AsyncListsResource from ...._resource import SyncAPIResource, AsyncAPIResource from ...._response import ( to_raw_response_wrapper, @@ -66,82 +66,82 @@ ) from ...._wrappers import ResultWrapper from .configurations import ( - Configurations, - AsyncConfigurations, - ConfigurationsWithRawResponse, - AsyncConfigurationsWithRawResponse, - ConfigurationsWithStreamingResponse, - AsyncConfigurationsWithStreamingResponse, + ConfigurationsResource, + AsyncConfigurationsResource, + ConfigurationsResourceWithRawResponse, + AsyncConfigurationsResourceWithRawResponse, + ConfigurationsResourceWithStreamingResponse, + AsyncConfigurationsResourceWithStreamingResponse, ) from ...._base_client import ( make_request_options, ) from .proxy_endpoints import ( - ProxyEndpoints, - AsyncProxyEndpoints, - ProxyEndpointsWithRawResponse, - AsyncProxyEndpointsWithRawResponse, - ProxyEndpointsWithStreamingResponse, - AsyncProxyEndpointsWithStreamingResponse, + ProxyEndpointsResource, + AsyncProxyEndpointsResource, + ProxyEndpointsResourceWithRawResponse, + AsyncProxyEndpointsResourceWithRawResponse, + ProxyEndpointsResourceWithStreamingResponse, + AsyncProxyEndpointsResourceWithStreamingResponse, ) from .audit_ssh_settings import ( - AuditSSHSettings, - AsyncAuditSSHSettings, - AuditSSHSettingsWithRawResponse, - AsyncAuditSSHSettingsWithRawResponse, - AuditSSHSettingsWithStreamingResponse, - AsyncAuditSSHSettingsWithStreamingResponse, + AuditSSHSettingsResource, + AsyncAuditSSHSettingsResource, + AuditSSHSettingsResourceWithRawResponse, + AsyncAuditSSHSettingsResourceWithRawResponse, + AuditSSHSettingsResourceWithStreamingResponse, + AsyncAuditSSHSettingsResourceWithStreamingResponse, ) from ....types.zero_trust.gateway_list_response import GatewayListResponse from ....types.zero_trust.gateway_create_response import GatewayCreateResponse -__all__ = ["Gateway", "AsyncGateway"] +__all__ = ["GatewayResource", "AsyncGatewayResource"] -class Gateway(SyncAPIResource): +class GatewayResource(SyncAPIResource): @cached_property - def audit_ssh_settings(self) -> AuditSSHSettings: - return AuditSSHSettings(self._client) + def audit_ssh_settings(self) -> AuditSSHSettingsResource: + return AuditSSHSettingsResource(self._client) @cached_property - def categories(self) -> Categories: - return Categories(self._client) + def categories(self) -> CategoriesResource: + return CategoriesResource(self._client) @cached_property - def app_types(self) -> AppTypes: - return AppTypes(self._client) + def app_types(self) -> AppTypesResource: + return AppTypesResource(self._client) @cached_property - def configurations(self) -> Configurations: - return Configurations(self._client) + def configurations(self) -> ConfigurationsResource: + return ConfigurationsResource(self._client) @cached_property - def lists(self) -> Lists: - return Lists(self._client) + def lists(self) -> ListsResource: + return ListsResource(self._client) @cached_property - def locations(self) -> Locations: - return Locations(self._client) + def locations(self) -> LocationsResource: + return LocationsResource(self._client) @cached_property - def logging(self) -> Logging: - return Logging(self._client) + def logging(self) -> LoggingResource: + return LoggingResource(self._client) @cached_property - def proxy_endpoints(self) -> ProxyEndpoints: - return ProxyEndpoints(self._client) + def proxy_endpoints(self) -> ProxyEndpointsResource: + return ProxyEndpointsResource(self._client) @cached_property - def rules(self) -> Rules: - return Rules(self._client) + def rules(self) -> RulesResource: + return RulesResource(self._client) @cached_property - def with_raw_response(self) -> GatewayWithRawResponse: - return GatewayWithRawResponse(self) + def with_raw_response(self) -> GatewayResourceWithRawResponse: + return GatewayResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> GatewayWithStreamingResponse: - return GatewayWithStreamingResponse(self) + def with_streaming_response(self) -> GatewayResourceWithStreamingResponse: + return GatewayResourceWithStreamingResponse(self) def create( self, @@ -218,50 +218,50 @@ def list( ) -class AsyncGateway(AsyncAPIResource): +class AsyncGatewayResource(AsyncAPIResource): @cached_property - def audit_ssh_settings(self) -> AsyncAuditSSHSettings: - return AsyncAuditSSHSettings(self._client) + def audit_ssh_settings(self) -> AsyncAuditSSHSettingsResource: + return AsyncAuditSSHSettingsResource(self._client) @cached_property - def categories(self) -> AsyncCategories: - return AsyncCategories(self._client) + def categories(self) -> AsyncCategoriesResource: + return AsyncCategoriesResource(self._client) @cached_property - def app_types(self) -> AsyncAppTypes: - return AsyncAppTypes(self._client) + def app_types(self) -> AsyncAppTypesResource: + return AsyncAppTypesResource(self._client) @cached_property - def configurations(self) -> AsyncConfigurations: - return AsyncConfigurations(self._client) + def configurations(self) -> AsyncConfigurationsResource: + return AsyncConfigurationsResource(self._client) @cached_property - def lists(self) -> AsyncLists: - return AsyncLists(self._client) + def lists(self) -> AsyncListsResource: + return AsyncListsResource(self._client) @cached_property - def locations(self) -> AsyncLocations: - return AsyncLocations(self._client) + def locations(self) -> AsyncLocationsResource: + return AsyncLocationsResource(self._client) @cached_property - def logging(self) -> AsyncLogging: - return AsyncLogging(self._client) + def logging(self) -> AsyncLoggingResource: + return AsyncLoggingResource(self._client) @cached_property - def proxy_endpoints(self) -> AsyncProxyEndpoints: - return AsyncProxyEndpoints(self._client) + def proxy_endpoints(self) -> AsyncProxyEndpointsResource: + return AsyncProxyEndpointsResource(self._client) @cached_property - def rules(self) -> AsyncRules: - return AsyncRules(self._client) + def rules(self) -> AsyncRulesResource: + return AsyncRulesResource(self._client) @cached_property - def with_raw_response(self) -> AsyncGatewayWithRawResponse: - return AsyncGatewayWithRawResponse(self) + def with_raw_response(self) -> AsyncGatewayResourceWithRawResponse: + return AsyncGatewayResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncGatewayWithStreamingResponse: - return AsyncGatewayWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncGatewayResourceWithStreamingResponse: + return AsyncGatewayResourceWithStreamingResponse(self) async def create( self, @@ -338,8 +338,8 @@ async def list( ) -class GatewayWithRawResponse: - def __init__(self, gateway: Gateway) -> None: +class GatewayResourceWithRawResponse: + def __init__(self, gateway: GatewayResource) -> None: self._gateway = gateway self.create = to_raw_response_wrapper( @@ -350,44 +350,44 @@ def __init__(self, gateway: Gateway) -> None: ) @cached_property - def audit_ssh_settings(self) -> AuditSSHSettingsWithRawResponse: - return AuditSSHSettingsWithRawResponse(self._gateway.audit_ssh_settings) + def audit_ssh_settings(self) -> AuditSSHSettingsResourceWithRawResponse: + return AuditSSHSettingsResourceWithRawResponse(self._gateway.audit_ssh_settings) @cached_property - def categories(self) -> CategoriesWithRawResponse: - return CategoriesWithRawResponse(self._gateway.categories) + def categories(self) -> CategoriesResourceWithRawResponse: + return CategoriesResourceWithRawResponse(self._gateway.categories) @cached_property - def app_types(self) -> AppTypesWithRawResponse: - return AppTypesWithRawResponse(self._gateway.app_types) + def app_types(self) -> AppTypesResourceWithRawResponse: + return AppTypesResourceWithRawResponse(self._gateway.app_types) @cached_property - def configurations(self) -> ConfigurationsWithRawResponse: - return ConfigurationsWithRawResponse(self._gateway.configurations) + def configurations(self) -> ConfigurationsResourceWithRawResponse: + return ConfigurationsResourceWithRawResponse(self._gateway.configurations) @cached_property - def lists(self) -> ListsWithRawResponse: - return ListsWithRawResponse(self._gateway.lists) + def lists(self) -> ListsResourceWithRawResponse: + return ListsResourceWithRawResponse(self._gateway.lists) @cached_property - def locations(self) -> LocationsWithRawResponse: - return LocationsWithRawResponse(self._gateway.locations) + def locations(self) -> LocationsResourceWithRawResponse: + return LocationsResourceWithRawResponse(self._gateway.locations) @cached_property - def logging(self) -> LoggingWithRawResponse: - return LoggingWithRawResponse(self._gateway.logging) + def logging(self) -> LoggingResourceWithRawResponse: + return LoggingResourceWithRawResponse(self._gateway.logging) @cached_property - def proxy_endpoints(self) -> ProxyEndpointsWithRawResponse: - return ProxyEndpointsWithRawResponse(self._gateway.proxy_endpoints) + def proxy_endpoints(self) -> ProxyEndpointsResourceWithRawResponse: + return ProxyEndpointsResourceWithRawResponse(self._gateway.proxy_endpoints) @cached_property - def rules(self) -> RulesWithRawResponse: - return RulesWithRawResponse(self._gateway.rules) + def rules(self) -> RulesResourceWithRawResponse: + return RulesResourceWithRawResponse(self._gateway.rules) -class AsyncGatewayWithRawResponse: - def __init__(self, gateway: AsyncGateway) -> None: +class AsyncGatewayResourceWithRawResponse: + def __init__(self, gateway: AsyncGatewayResource) -> None: self._gateway = gateway self.create = async_to_raw_response_wrapper( @@ -398,44 +398,44 @@ def __init__(self, gateway: AsyncGateway) -> None: ) @cached_property - def audit_ssh_settings(self) -> AsyncAuditSSHSettingsWithRawResponse: - return AsyncAuditSSHSettingsWithRawResponse(self._gateway.audit_ssh_settings) + def audit_ssh_settings(self) -> AsyncAuditSSHSettingsResourceWithRawResponse: + return AsyncAuditSSHSettingsResourceWithRawResponse(self._gateway.audit_ssh_settings) @cached_property - def categories(self) -> AsyncCategoriesWithRawResponse: - return AsyncCategoriesWithRawResponse(self._gateway.categories) + def categories(self) -> AsyncCategoriesResourceWithRawResponse: + return AsyncCategoriesResourceWithRawResponse(self._gateway.categories) @cached_property - def app_types(self) -> AsyncAppTypesWithRawResponse: - return AsyncAppTypesWithRawResponse(self._gateway.app_types) + def app_types(self) -> AsyncAppTypesResourceWithRawResponse: + return AsyncAppTypesResourceWithRawResponse(self._gateway.app_types) @cached_property - def configurations(self) -> AsyncConfigurationsWithRawResponse: - return AsyncConfigurationsWithRawResponse(self._gateway.configurations) + def configurations(self) -> AsyncConfigurationsResourceWithRawResponse: + return AsyncConfigurationsResourceWithRawResponse(self._gateway.configurations) @cached_property - def lists(self) -> AsyncListsWithRawResponse: - return AsyncListsWithRawResponse(self._gateway.lists) + def lists(self) -> AsyncListsResourceWithRawResponse: + return AsyncListsResourceWithRawResponse(self._gateway.lists) @cached_property - def locations(self) -> AsyncLocationsWithRawResponse: - return AsyncLocationsWithRawResponse(self._gateway.locations) + def locations(self) -> AsyncLocationsResourceWithRawResponse: + return AsyncLocationsResourceWithRawResponse(self._gateway.locations) @cached_property - def logging(self) -> AsyncLoggingWithRawResponse: - return AsyncLoggingWithRawResponse(self._gateway.logging) + def logging(self) -> AsyncLoggingResourceWithRawResponse: + return AsyncLoggingResourceWithRawResponse(self._gateway.logging) @cached_property - def proxy_endpoints(self) -> AsyncProxyEndpointsWithRawResponse: - return AsyncProxyEndpointsWithRawResponse(self._gateway.proxy_endpoints) + def proxy_endpoints(self) -> AsyncProxyEndpointsResourceWithRawResponse: + return AsyncProxyEndpointsResourceWithRawResponse(self._gateway.proxy_endpoints) @cached_property - def rules(self) -> AsyncRulesWithRawResponse: - return AsyncRulesWithRawResponse(self._gateway.rules) + def rules(self) -> AsyncRulesResourceWithRawResponse: + return AsyncRulesResourceWithRawResponse(self._gateway.rules) -class GatewayWithStreamingResponse: - def __init__(self, gateway: Gateway) -> None: +class GatewayResourceWithStreamingResponse: + def __init__(self, gateway: GatewayResource) -> None: self._gateway = gateway self.create = to_streamed_response_wrapper( @@ -446,44 +446,44 @@ def __init__(self, gateway: Gateway) -> None: ) @cached_property - def audit_ssh_settings(self) -> AuditSSHSettingsWithStreamingResponse: - return AuditSSHSettingsWithStreamingResponse(self._gateway.audit_ssh_settings) + def audit_ssh_settings(self) -> AuditSSHSettingsResourceWithStreamingResponse: + return AuditSSHSettingsResourceWithStreamingResponse(self._gateway.audit_ssh_settings) @cached_property - def categories(self) -> CategoriesWithStreamingResponse: - return CategoriesWithStreamingResponse(self._gateway.categories) + def categories(self) -> CategoriesResourceWithStreamingResponse: + return CategoriesResourceWithStreamingResponse(self._gateway.categories) @cached_property - def app_types(self) -> AppTypesWithStreamingResponse: - return AppTypesWithStreamingResponse(self._gateway.app_types) + def app_types(self) -> AppTypesResourceWithStreamingResponse: + return AppTypesResourceWithStreamingResponse(self._gateway.app_types) @cached_property - def configurations(self) -> ConfigurationsWithStreamingResponse: - return ConfigurationsWithStreamingResponse(self._gateway.configurations) + def configurations(self) -> ConfigurationsResourceWithStreamingResponse: + return ConfigurationsResourceWithStreamingResponse(self._gateway.configurations) @cached_property - def lists(self) -> ListsWithStreamingResponse: - return ListsWithStreamingResponse(self._gateway.lists) + def lists(self) -> ListsResourceWithStreamingResponse: + return ListsResourceWithStreamingResponse(self._gateway.lists) @cached_property - def locations(self) -> LocationsWithStreamingResponse: - return LocationsWithStreamingResponse(self._gateway.locations) + def locations(self) -> LocationsResourceWithStreamingResponse: + return LocationsResourceWithStreamingResponse(self._gateway.locations) @cached_property - def logging(self) -> LoggingWithStreamingResponse: - return LoggingWithStreamingResponse(self._gateway.logging) + def logging(self) -> LoggingResourceWithStreamingResponse: + return LoggingResourceWithStreamingResponse(self._gateway.logging) @cached_property - def proxy_endpoints(self) -> ProxyEndpointsWithStreamingResponse: - return ProxyEndpointsWithStreamingResponse(self._gateway.proxy_endpoints) + def proxy_endpoints(self) -> ProxyEndpointsResourceWithStreamingResponse: + return ProxyEndpointsResourceWithStreamingResponse(self._gateway.proxy_endpoints) @cached_property - def rules(self) -> RulesWithStreamingResponse: - return RulesWithStreamingResponse(self._gateway.rules) + def rules(self) -> RulesResourceWithStreamingResponse: + return RulesResourceWithStreamingResponse(self._gateway.rules) -class AsyncGatewayWithStreamingResponse: - def __init__(self, gateway: AsyncGateway) -> None: +class AsyncGatewayResourceWithStreamingResponse: + def __init__(self, gateway: AsyncGatewayResource) -> None: self._gateway = gateway self.create = async_to_streamed_response_wrapper( @@ -494,37 +494,37 @@ def __init__(self, gateway: AsyncGateway) -> None: ) @cached_property - def audit_ssh_settings(self) -> AsyncAuditSSHSettingsWithStreamingResponse: - return AsyncAuditSSHSettingsWithStreamingResponse(self._gateway.audit_ssh_settings) + def audit_ssh_settings(self) -> AsyncAuditSSHSettingsResourceWithStreamingResponse: + return AsyncAuditSSHSettingsResourceWithStreamingResponse(self._gateway.audit_ssh_settings) @cached_property - def categories(self) -> AsyncCategoriesWithStreamingResponse: - return AsyncCategoriesWithStreamingResponse(self._gateway.categories) + def categories(self) -> AsyncCategoriesResourceWithStreamingResponse: + return AsyncCategoriesResourceWithStreamingResponse(self._gateway.categories) @cached_property - def app_types(self) -> AsyncAppTypesWithStreamingResponse: - return AsyncAppTypesWithStreamingResponse(self._gateway.app_types) + def app_types(self) -> AsyncAppTypesResourceWithStreamingResponse: + return AsyncAppTypesResourceWithStreamingResponse(self._gateway.app_types) @cached_property - def configurations(self) -> AsyncConfigurationsWithStreamingResponse: - return AsyncConfigurationsWithStreamingResponse(self._gateway.configurations) + def configurations(self) -> AsyncConfigurationsResourceWithStreamingResponse: + return AsyncConfigurationsResourceWithStreamingResponse(self._gateway.configurations) @cached_property - def lists(self) -> AsyncListsWithStreamingResponse: - return AsyncListsWithStreamingResponse(self._gateway.lists) + def lists(self) -> AsyncListsResourceWithStreamingResponse: + return AsyncListsResourceWithStreamingResponse(self._gateway.lists) @cached_property - def locations(self) -> AsyncLocationsWithStreamingResponse: - return AsyncLocationsWithStreamingResponse(self._gateway.locations) + def locations(self) -> AsyncLocationsResourceWithStreamingResponse: + return AsyncLocationsResourceWithStreamingResponse(self._gateway.locations) @cached_property - def logging(self) -> AsyncLoggingWithStreamingResponse: - return AsyncLoggingWithStreamingResponse(self._gateway.logging) + def logging(self) -> AsyncLoggingResourceWithStreamingResponse: + return AsyncLoggingResourceWithStreamingResponse(self._gateway.logging) @cached_property - def proxy_endpoints(self) -> AsyncProxyEndpointsWithStreamingResponse: - return AsyncProxyEndpointsWithStreamingResponse(self._gateway.proxy_endpoints) + def proxy_endpoints(self) -> AsyncProxyEndpointsResourceWithStreamingResponse: + return AsyncProxyEndpointsResourceWithStreamingResponse(self._gateway.proxy_endpoints) @cached_property - def rules(self) -> AsyncRulesWithStreamingResponse: - return AsyncRulesWithStreamingResponse(self._gateway.rules) + def rules(self) -> AsyncRulesResourceWithStreamingResponse: + return AsyncRulesResourceWithStreamingResponse(self._gateway.rules) diff --git a/src/cloudflare/resources/zero_trust/gateway/lists/__init__.py b/src/cloudflare/resources/zero_trust/gateway/lists/__init__.py index b10351d7804..5646bb1ae63 100644 --- a/src/cloudflare/resources/zero_trust/gateway/lists/__init__.py +++ b/src/cloudflare/resources/zero_trust/gateway/lists/__init__.py @@ -1,33 +1,33 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from .items import ( - Items, - AsyncItems, - ItemsWithRawResponse, - AsyncItemsWithRawResponse, - ItemsWithStreamingResponse, - AsyncItemsWithStreamingResponse, + ItemsResource, + AsyncItemsResource, + ItemsResourceWithRawResponse, + AsyncItemsResourceWithRawResponse, + ItemsResourceWithStreamingResponse, + AsyncItemsResourceWithStreamingResponse, ) from .lists import ( - Lists, - AsyncLists, - ListsWithRawResponse, - AsyncListsWithRawResponse, - ListsWithStreamingResponse, - AsyncListsWithStreamingResponse, + ListsResource, + AsyncListsResource, + ListsResourceWithRawResponse, + AsyncListsResourceWithRawResponse, + ListsResourceWithStreamingResponse, + AsyncListsResourceWithStreamingResponse, ) __all__ = [ - "Items", - "AsyncItems", - "ItemsWithRawResponse", - "AsyncItemsWithRawResponse", - "ItemsWithStreamingResponse", - "AsyncItemsWithStreamingResponse", - "Lists", - "AsyncLists", - "ListsWithRawResponse", - "AsyncListsWithRawResponse", - "ListsWithStreamingResponse", - "AsyncListsWithStreamingResponse", + "ItemsResource", + "AsyncItemsResource", + "ItemsResourceWithRawResponse", + "AsyncItemsResourceWithRawResponse", + "ItemsResourceWithStreamingResponse", + "AsyncItemsResourceWithStreamingResponse", + "ListsResource", + "AsyncListsResource", + "ListsResourceWithRawResponse", + "AsyncListsResourceWithRawResponse", + "ListsResourceWithStreamingResponse", + "AsyncListsResourceWithStreamingResponse", ] diff --git a/src/cloudflare/resources/zero_trust/gateway/lists/items.py b/src/cloudflare/resources/zero_trust/gateway/lists/items.py index 3f53aa48895..a8aa06368d5 100644 --- a/src/cloudflare/resources/zero_trust/gateway/lists/items.py +++ b/src/cloudflare/resources/zero_trust/gateway/lists/items.py @@ -20,17 +20,17 @@ ) from .....types.zero_trust.gateway.lists.item_list_response import ItemListResponse -__all__ = ["Items", "AsyncItems"] +__all__ = ["ItemsResource", "AsyncItemsResource"] -class Items(SyncAPIResource): +class ItemsResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> ItemsWithRawResponse: - return ItemsWithRawResponse(self) + def with_raw_response(self) -> ItemsResourceWithRawResponse: + return ItemsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> ItemsWithStreamingResponse: - return ItemsWithStreamingResponse(self) + def with_streaming_response(self) -> ItemsResourceWithStreamingResponse: + return ItemsResourceWithStreamingResponse(self) def list( self, @@ -72,14 +72,14 @@ def list( ) -class AsyncItems(AsyncAPIResource): +class AsyncItemsResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncItemsWithRawResponse: - return AsyncItemsWithRawResponse(self) + def with_raw_response(self) -> AsyncItemsResourceWithRawResponse: + return AsyncItemsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncItemsWithStreamingResponse: - return AsyncItemsWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncItemsResourceWithStreamingResponse: + return AsyncItemsResourceWithStreamingResponse(self) def list( self, @@ -121,8 +121,8 @@ def list( ) -class ItemsWithRawResponse: - def __init__(self, items: Items) -> None: +class ItemsResourceWithRawResponse: + def __init__(self, items: ItemsResource) -> None: self._items = items self.list = to_raw_response_wrapper( @@ -130,8 +130,8 @@ def __init__(self, items: Items) -> None: ) -class AsyncItemsWithRawResponse: - def __init__(self, items: AsyncItems) -> None: +class AsyncItemsResourceWithRawResponse: + def __init__(self, items: AsyncItemsResource) -> None: self._items = items self.list = async_to_raw_response_wrapper( @@ -139,8 +139,8 @@ def __init__(self, items: AsyncItems) -> None: ) -class ItemsWithStreamingResponse: - def __init__(self, items: Items) -> None: +class ItemsResourceWithStreamingResponse: + def __init__(self, items: ItemsResource) -> None: self._items = items self.list = to_streamed_response_wrapper( @@ -148,8 +148,8 @@ def __init__(self, items: Items) -> None: ) -class AsyncItemsWithStreamingResponse: - def __init__(self, items: AsyncItems) -> None: +class AsyncItemsResourceWithStreamingResponse: + def __init__(self, items: AsyncItemsResource) -> None: self._items = items self.list = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/zero_trust/gateway/lists/lists.py b/src/cloudflare/resources/zero_trust/gateway/lists/lists.py index c4ebb31107b..f63c0fac6a4 100644 --- a/src/cloudflare/resources/zero_trust/gateway/lists/lists.py +++ b/src/cloudflare/resources/zero_trust/gateway/lists/lists.py @@ -8,12 +8,12 @@ import httpx from .items import ( - Items, - AsyncItems, - ItemsWithRawResponse, - AsyncItemsWithRawResponse, - ItemsWithStreamingResponse, - AsyncItemsWithStreamingResponse, + ItemsResource, + AsyncItemsResource, + ItemsResourceWithRawResponse, + AsyncItemsResourceWithRawResponse, + ItemsResourceWithStreamingResponse, + AsyncItemsResourceWithStreamingResponse, ) from ....._types import NOT_GIVEN, Body, Query, Headers, NotGiven from ....._utils import ( @@ -40,21 +40,21 @@ from .....types.zero_trust.gateway.list_create_response import ListCreateResponse from .....types.zero_trust.gateway.list_delete_response import ListDeleteResponse -__all__ = ["Lists", "AsyncLists"] +__all__ = ["ListsResource", "AsyncListsResource"] -class Lists(SyncAPIResource): +class ListsResource(SyncAPIResource): @cached_property - def items(self) -> Items: - return Items(self._client) + def items(self) -> ItemsResource: + return ItemsResource(self._client) @cached_property - def with_raw_response(self) -> ListsWithRawResponse: - return ListsWithRawResponse(self) + def with_raw_response(self) -> ListsResourceWithRawResponse: + return ListsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> ListsWithStreamingResponse: - return ListsWithStreamingResponse(self) + def with_streaming_response(self) -> ListsResourceWithStreamingResponse: + return ListsResourceWithStreamingResponse(self) def create( self, @@ -350,18 +350,18 @@ def get( ) -class AsyncLists(AsyncAPIResource): +class AsyncListsResource(AsyncAPIResource): @cached_property - def items(self) -> AsyncItems: - return AsyncItems(self._client) + def items(self) -> AsyncItemsResource: + return AsyncItemsResource(self._client) @cached_property - def with_raw_response(self) -> AsyncListsWithRawResponse: - return AsyncListsWithRawResponse(self) + def with_raw_response(self) -> AsyncListsResourceWithRawResponse: + return AsyncListsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncListsWithStreamingResponse: - return AsyncListsWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncListsResourceWithStreamingResponse: + return AsyncListsResourceWithStreamingResponse(self) async def create( self, @@ -657,8 +657,8 @@ async def get( ) -class ListsWithRawResponse: - def __init__(self, lists: Lists) -> None: +class ListsResourceWithRawResponse: + def __init__(self, lists: ListsResource) -> None: self._lists = lists self.create = to_raw_response_wrapper( @@ -681,12 +681,12 @@ def __init__(self, lists: Lists) -> None: ) @cached_property - def items(self) -> ItemsWithRawResponse: - return ItemsWithRawResponse(self._lists.items) + def items(self) -> ItemsResourceWithRawResponse: + return ItemsResourceWithRawResponse(self._lists.items) -class AsyncListsWithRawResponse: - def __init__(self, lists: AsyncLists) -> None: +class AsyncListsResourceWithRawResponse: + def __init__(self, lists: AsyncListsResource) -> None: self._lists = lists self.create = async_to_raw_response_wrapper( @@ -709,12 +709,12 @@ def __init__(self, lists: AsyncLists) -> None: ) @cached_property - def items(self) -> AsyncItemsWithRawResponse: - return AsyncItemsWithRawResponse(self._lists.items) + def items(self) -> AsyncItemsResourceWithRawResponse: + return AsyncItemsResourceWithRawResponse(self._lists.items) -class ListsWithStreamingResponse: - def __init__(self, lists: Lists) -> None: +class ListsResourceWithStreamingResponse: + def __init__(self, lists: ListsResource) -> None: self._lists = lists self.create = to_streamed_response_wrapper( @@ -737,12 +737,12 @@ def __init__(self, lists: Lists) -> None: ) @cached_property - def items(self) -> ItemsWithStreamingResponse: - return ItemsWithStreamingResponse(self._lists.items) + def items(self) -> ItemsResourceWithStreamingResponse: + return ItemsResourceWithStreamingResponse(self._lists.items) -class AsyncListsWithStreamingResponse: - def __init__(self, lists: AsyncLists) -> None: +class AsyncListsResourceWithStreamingResponse: + def __init__(self, lists: AsyncListsResource) -> None: self._lists = lists self.create = async_to_streamed_response_wrapper( @@ -765,5 +765,5 @@ def __init__(self, lists: AsyncLists) -> None: ) @cached_property - def items(self) -> AsyncItemsWithStreamingResponse: - return AsyncItemsWithStreamingResponse(self._lists.items) + def items(self) -> AsyncItemsResourceWithStreamingResponse: + return AsyncItemsResourceWithStreamingResponse(self._lists.items) diff --git a/src/cloudflare/resources/zero_trust/gateway/locations.py b/src/cloudflare/resources/zero_trust/gateway/locations.py index ea7f0d05410..8c374c6ad27 100644 --- a/src/cloudflare/resources/zero_trust/gateway/locations.py +++ b/src/cloudflare/resources/zero_trust/gateway/locations.py @@ -30,17 +30,17 @@ from ....types.zero_trust.gateway.location_network_param import LocationNetworkParam from ....types.zero_trust.gateway.location_delete_response import LocationDeleteResponse -__all__ = ["Locations", "AsyncLocations"] +__all__ = ["LocationsResource", "AsyncLocationsResource"] -class Locations(SyncAPIResource): +class LocationsResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> LocationsWithRawResponse: - return LocationsWithRawResponse(self) + def with_raw_response(self) -> LocationsResourceWithRawResponse: + return LocationsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> LocationsWithStreamingResponse: - return LocationsWithStreamingResponse(self) + def with_streaming_response(self) -> LocationsResourceWithStreamingResponse: + return LocationsResourceWithStreamingResponse(self) def create( self, @@ -283,14 +283,14 @@ def get( ) -class AsyncLocations(AsyncAPIResource): +class AsyncLocationsResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncLocationsWithRawResponse: - return AsyncLocationsWithRawResponse(self) + def with_raw_response(self) -> AsyncLocationsResourceWithRawResponse: + return AsyncLocationsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncLocationsWithStreamingResponse: - return AsyncLocationsWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncLocationsResourceWithStreamingResponse: + return AsyncLocationsResourceWithStreamingResponse(self) async def create( self, @@ -533,8 +533,8 @@ async def get( ) -class LocationsWithRawResponse: - def __init__(self, locations: Locations) -> None: +class LocationsResourceWithRawResponse: + def __init__(self, locations: LocationsResource) -> None: self._locations = locations self.create = to_raw_response_wrapper( @@ -554,8 +554,8 @@ def __init__(self, locations: Locations) -> None: ) -class AsyncLocationsWithRawResponse: - def __init__(self, locations: AsyncLocations) -> None: +class AsyncLocationsResourceWithRawResponse: + def __init__(self, locations: AsyncLocationsResource) -> None: self._locations = locations self.create = async_to_raw_response_wrapper( @@ -575,8 +575,8 @@ def __init__(self, locations: AsyncLocations) -> None: ) -class LocationsWithStreamingResponse: - def __init__(self, locations: Locations) -> None: +class LocationsResourceWithStreamingResponse: + def __init__(self, locations: LocationsResource) -> None: self._locations = locations self.create = to_streamed_response_wrapper( @@ -596,8 +596,8 @@ def __init__(self, locations: Locations) -> None: ) -class AsyncLocationsWithStreamingResponse: - def __init__(self, locations: AsyncLocations) -> None: +class AsyncLocationsResourceWithStreamingResponse: + def __init__(self, locations: AsyncLocationsResource) -> None: self._locations = locations self.create = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/zero_trust/gateway/logging.py b/src/cloudflare/resources/zero_trust/gateway/logging.py index ad08da0c500..3a150ccf4e3 100644 --- a/src/cloudflare/resources/zero_trust/gateway/logging.py +++ b/src/cloudflare/resources/zero_trust/gateway/logging.py @@ -26,17 +26,17 @@ from ....types.zero_trust.gateway import logging_update_params from ....types.zero_trust.gateway.logging_setting import LoggingSetting -__all__ = ["Logging", "AsyncLogging"] +__all__ = ["LoggingResource", "AsyncLoggingResource"] -class Logging(SyncAPIResource): +class LoggingResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> LoggingWithRawResponse: - return LoggingWithRawResponse(self) + def with_raw_response(self) -> LoggingResourceWithRawResponse: + return LoggingResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> LoggingWithStreamingResponse: - return LoggingWithStreamingResponse(self) + def with_streaming_response(self) -> LoggingResourceWithStreamingResponse: + return LoggingResourceWithStreamingResponse(self) def update( self, @@ -127,14 +127,14 @@ def get( ) -class AsyncLogging(AsyncAPIResource): +class AsyncLoggingResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncLoggingWithRawResponse: - return AsyncLoggingWithRawResponse(self) + def with_raw_response(self) -> AsyncLoggingResourceWithRawResponse: + return AsyncLoggingResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncLoggingWithStreamingResponse: - return AsyncLoggingWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncLoggingResourceWithStreamingResponse: + return AsyncLoggingResourceWithStreamingResponse(self) async def update( self, @@ -225,8 +225,8 @@ async def get( ) -class LoggingWithRawResponse: - def __init__(self, logging: Logging) -> None: +class LoggingResourceWithRawResponse: + def __init__(self, logging: LoggingResource) -> None: self._logging = logging self.update = to_raw_response_wrapper( @@ -237,8 +237,8 @@ def __init__(self, logging: Logging) -> None: ) -class AsyncLoggingWithRawResponse: - def __init__(self, logging: AsyncLogging) -> None: +class AsyncLoggingResourceWithRawResponse: + def __init__(self, logging: AsyncLoggingResource) -> None: self._logging = logging self.update = async_to_raw_response_wrapper( @@ -249,8 +249,8 @@ def __init__(self, logging: AsyncLogging) -> None: ) -class LoggingWithStreamingResponse: - def __init__(self, logging: Logging) -> None: +class LoggingResourceWithStreamingResponse: + def __init__(self, logging: LoggingResource) -> None: self._logging = logging self.update = to_streamed_response_wrapper( @@ -261,8 +261,8 @@ def __init__(self, logging: Logging) -> None: ) -class AsyncLoggingWithStreamingResponse: - def __init__(self, logging: AsyncLogging) -> None: +class AsyncLoggingResourceWithStreamingResponse: + def __init__(self, logging: AsyncLoggingResource) -> None: self._logging = logging self.update = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/zero_trust/gateway/proxy_endpoints.py b/src/cloudflare/resources/zero_trust/gateway/proxy_endpoints.py index 37954fa2e6d..1c0da998f19 100644 --- a/src/cloudflare/resources/zero_trust/gateway/proxy_endpoints.py +++ b/src/cloudflare/resources/zero_trust/gateway/proxy_endpoints.py @@ -34,17 +34,17 @@ from ....types.zero_trust.gateway.proxy_endpoint import ProxyEndpoint from ....types.zero_trust.gateway.proxy_endpoint_delete_response import ProxyEndpointDeleteResponse -__all__ = ["ProxyEndpoints", "AsyncProxyEndpoints"] +__all__ = ["ProxyEndpointsResource", "AsyncProxyEndpointsResource"] -class ProxyEndpoints(SyncAPIResource): +class ProxyEndpointsResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> ProxyEndpointsWithRawResponse: - return ProxyEndpointsWithRawResponse(self) + def with_raw_response(self) -> ProxyEndpointsResourceWithRawResponse: + return ProxyEndpointsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> ProxyEndpointsWithStreamingResponse: - return ProxyEndpointsWithStreamingResponse(self) + def with_streaming_response(self) -> ProxyEndpointsResourceWithStreamingResponse: + return ProxyEndpointsResourceWithStreamingResponse(self) def create( self, @@ -271,14 +271,14 @@ def get( ) -class AsyncProxyEndpoints(AsyncAPIResource): +class AsyncProxyEndpointsResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncProxyEndpointsWithRawResponse: - return AsyncProxyEndpointsWithRawResponse(self) + def with_raw_response(self) -> AsyncProxyEndpointsResourceWithRawResponse: + return AsyncProxyEndpointsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncProxyEndpointsWithStreamingResponse: - return AsyncProxyEndpointsWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncProxyEndpointsResourceWithStreamingResponse: + return AsyncProxyEndpointsResourceWithStreamingResponse(self) async def create( self, @@ -505,8 +505,8 @@ async def get( ) -class ProxyEndpointsWithRawResponse: - def __init__(self, proxy_endpoints: ProxyEndpoints) -> None: +class ProxyEndpointsResourceWithRawResponse: + def __init__(self, proxy_endpoints: ProxyEndpointsResource) -> None: self._proxy_endpoints = proxy_endpoints self.create = to_raw_response_wrapper( @@ -526,8 +526,8 @@ def __init__(self, proxy_endpoints: ProxyEndpoints) -> None: ) -class AsyncProxyEndpointsWithRawResponse: - def __init__(self, proxy_endpoints: AsyncProxyEndpoints) -> None: +class AsyncProxyEndpointsResourceWithRawResponse: + def __init__(self, proxy_endpoints: AsyncProxyEndpointsResource) -> None: self._proxy_endpoints = proxy_endpoints self.create = async_to_raw_response_wrapper( @@ -547,8 +547,8 @@ def __init__(self, proxy_endpoints: AsyncProxyEndpoints) -> None: ) -class ProxyEndpointsWithStreamingResponse: - def __init__(self, proxy_endpoints: ProxyEndpoints) -> None: +class ProxyEndpointsResourceWithStreamingResponse: + def __init__(self, proxy_endpoints: ProxyEndpointsResource) -> None: self._proxy_endpoints = proxy_endpoints self.create = to_streamed_response_wrapper( @@ -568,8 +568,8 @@ def __init__(self, proxy_endpoints: ProxyEndpoints) -> None: ) -class AsyncProxyEndpointsWithStreamingResponse: - def __init__(self, proxy_endpoints: AsyncProxyEndpoints) -> None: +class AsyncProxyEndpointsResourceWithStreamingResponse: + def __init__(self, proxy_endpoints: AsyncProxyEndpointsResource) -> None: self._proxy_endpoints = proxy_endpoints self.create = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/zero_trust/gateway/rules.py b/src/cloudflare/resources/zero_trust/gateway/rules.py index 5d6e506e833..d61fac4c73b 100644 --- a/src/cloudflare/resources/zero_trust/gateway/rules.py +++ b/src/cloudflare/resources/zero_trust/gateway/rules.py @@ -37,17 +37,17 @@ from ....types.zero_trust.gateway.rule_setting_param import RuleSettingParam from ....types.zero_trust.gateway.rule_delete_response import RuleDeleteResponse -__all__ = ["Rules", "AsyncRules"] +__all__ = ["RulesResource", "AsyncRulesResource"] -class Rules(SyncAPIResource): +class RulesResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> RulesWithRawResponse: - return RulesWithRawResponse(self) + def with_raw_response(self) -> RulesResourceWithRawResponse: + return RulesResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> RulesWithStreamingResponse: - return RulesWithStreamingResponse(self) + def with_streaming_response(self) -> RulesResourceWithStreamingResponse: + return RulesResourceWithStreamingResponse(self) def create( self, @@ -394,14 +394,14 @@ def get( ) -class AsyncRules(AsyncAPIResource): +class AsyncRulesResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncRulesWithRawResponse: - return AsyncRulesWithRawResponse(self) + def with_raw_response(self) -> AsyncRulesResourceWithRawResponse: + return AsyncRulesResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncRulesWithStreamingResponse: - return AsyncRulesWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncRulesResourceWithStreamingResponse: + return AsyncRulesResourceWithStreamingResponse(self) async def create( self, @@ -748,8 +748,8 @@ async def get( ) -class RulesWithRawResponse: - def __init__(self, rules: Rules) -> None: +class RulesResourceWithRawResponse: + def __init__(self, rules: RulesResource) -> None: self._rules = rules self.create = to_raw_response_wrapper( @@ -769,8 +769,8 @@ def __init__(self, rules: Rules) -> None: ) -class AsyncRulesWithRawResponse: - def __init__(self, rules: AsyncRules) -> None: +class AsyncRulesResourceWithRawResponse: + def __init__(self, rules: AsyncRulesResource) -> None: self._rules = rules self.create = async_to_raw_response_wrapper( @@ -790,8 +790,8 @@ def __init__(self, rules: AsyncRules) -> None: ) -class RulesWithStreamingResponse: - def __init__(self, rules: Rules) -> None: +class RulesResourceWithStreamingResponse: + def __init__(self, rules: RulesResource) -> None: self._rules = rules self.create = to_streamed_response_wrapper( @@ -811,8 +811,8 @@ def __init__(self, rules: Rules) -> None: ) -class AsyncRulesWithStreamingResponse: - def __init__(self, rules: AsyncRules) -> None: +class AsyncRulesResourceWithStreamingResponse: + def __init__(self, rules: AsyncRulesResource) -> None: self._rules = rules self.create = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/zero_trust/identity_providers.py b/src/cloudflare/resources/zero_trust/identity_providers.py index 4e3dbaee8b9..3e9508b349d 100644 --- a/src/cloudflare/resources/zero_trust/identity_providers.py +++ b/src/cloudflare/resources/zero_trust/identity_providers.py @@ -38,17 +38,17 @@ from ...types.zero_trust.identity_provider_list_response import IdentityProviderListResponse from ...types.zero_trust.identity_provider_delete_response import IdentityProviderDeleteResponse -__all__ = ["IdentityProviders", "AsyncIdentityProviders"] +__all__ = ["IdentityProvidersResource", "AsyncIdentityProvidersResource"] -class IdentityProviders(SyncAPIResource): +class IdentityProvidersResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> IdentityProvidersWithRawResponse: - return IdentityProvidersWithRawResponse(self) + def with_raw_response(self) -> IdentityProvidersResourceWithRawResponse: + return IdentityProvidersResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> IdentityProvidersWithStreamingResponse: - return IdentityProvidersWithStreamingResponse(self) + def with_streaming_response(self) -> IdentityProvidersResourceWithStreamingResponse: + return IdentityProvidersResourceWithStreamingResponse(self) @overload def create( @@ -1770,14 +1770,14 @@ def get( ) -class AsyncIdentityProviders(AsyncAPIResource): +class AsyncIdentityProvidersResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncIdentityProvidersWithRawResponse: - return AsyncIdentityProvidersWithRawResponse(self) + def with_raw_response(self) -> AsyncIdentityProvidersResourceWithRawResponse: + return AsyncIdentityProvidersResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncIdentityProvidersWithStreamingResponse: - return AsyncIdentityProvidersWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncIdentityProvidersResourceWithStreamingResponse: + return AsyncIdentityProvidersResourceWithStreamingResponse(self) @overload async def create( @@ -3499,8 +3499,8 @@ async def get( ) -class IdentityProvidersWithRawResponse: - def __init__(self, identity_providers: IdentityProviders) -> None: +class IdentityProvidersResourceWithRawResponse: + def __init__(self, identity_providers: IdentityProvidersResource) -> None: self._identity_providers = identity_providers self.create = to_raw_response_wrapper( @@ -3520,8 +3520,8 @@ def __init__(self, identity_providers: IdentityProviders) -> None: ) -class AsyncIdentityProvidersWithRawResponse: - def __init__(self, identity_providers: AsyncIdentityProviders) -> None: +class AsyncIdentityProvidersResourceWithRawResponse: + def __init__(self, identity_providers: AsyncIdentityProvidersResource) -> None: self._identity_providers = identity_providers self.create = async_to_raw_response_wrapper( @@ -3541,8 +3541,8 @@ def __init__(self, identity_providers: AsyncIdentityProviders) -> None: ) -class IdentityProvidersWithStreamingResponse: - def __init__(self, identity_providers: IdentityProviders) -> None: +class IdentityProvidersResourceWithStreamingResponse: + def __init__(self, identity_providers: IdentityProvidersResource) -> None: self._identity_providers = identity_providers self.create = to_streamed_response_wrapper( @@ -3562,8 +3562,8 @@ def __init__(self, identity_providers: IdentityProviders) -> None: ) -class AsyncIdentityProvidersWithStreamingResponse: - def __init__(self, identity_providers: AsyncIdentityProviders) -> None: +class AsyncIdentityProvidersResourceWithStreamingResponse: + def __init__(self, identity_providers: AsyncIdentityProvidersResource) -> None: self._identity_providers = identity_providers self.create = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/zero_trust/networks/__init__.py b/src/cloudflare/resources/zero_trust/networks/__init__.py index f07fc1e8754..0672f0849f0 100644 --- a/src/cloudflare/resources/zero_trust/networks/__init__.py +++ b/src/cloudflare/resources/zero_trust/networks/__init__.py @@ -1,47 +1,47 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from .routes import ( - Routes, - AsyncRoutes, - RoutesWithRawResponse, - AsyncRoutesWithRawResponse, - RoutesWithStreamingResponse, - AsyncRoutesWithStreamingResponse, + RoutesResource, + AsyncRoutesResource, + RoutesResourceWithRawResponse, + AsyncRoutesResourceWithRawResponse, + RoutesResourceWithStreamingResponse, + AsyncRoutesResourceWithStreamingResponse, ) from .networks import ( - Networks, - AsyncNetworks, - NetworksWithRawResponse, - AsyncNetworksWithRawResponse, - NetworksWithStreamingResponse, - AsyncNetworksWithStreamingResponse, + NetworksResource, + AsyncNetworksResource, + NetworksResourceWithRawResponse, + AsyncNetworksResourceWithRawResponse, + NetworksResourceWithStreamingResponse, + AsyncNetworksResourceWithStreamingResponse, ) from .virtual_networks import ( - VirtualNetworks, - AsyncVirtualNetworks, - VirtualNetworksWithRawResponse, - AsyncVirtualNetworksWithRawResponse, - VirtualNetworksWithStreamingResponse, - AsyncVirtualNetworksWithStreamingResponse, + VirtualNetworksResource, + AsyncVirtualNetworksResource, + VirtualNetworksResourceWithRawResponse, + AsyncVirtualNetworksResourceWithRawResponse, + VirtualNetworksResourceWithStreamingResponse, + AsyncVirtualNetworksResourceWithStreamingResponse, ) __all__ = [ - "Routes", - "AsyncRoutes", - "RoutesWithRawResponse", - "AsyncRoutesWithRawResponse", - "RoutesWithStreamingResponse", - "AsyncRoutesWithStreamingResponse", - "VirtualNetworks", - "AsyncVirtualNetworks", - "VirtualNetworksWithRawResponse", - "AsyncVirtualNetworksWithRawResponse", - "VirtualNetworksWithStreamingResponse", - "AsyncVirtualNetworksWithStreamingResponse", - "Networks", - "AsyncNetworks", - "NetworksWithRawResponse", - "AsyncNetworksWithRawResponse", - "NetworksWithStreamingResponse", - "AsyncNetworksWithStreamingResponse", + "RoutesResource", + "AsyncRoutesResource", + "RoutesResourceWithRawResponse", + "AsyncRoutesResourceWithRawResponse", + "RoutesResourceWithStreamingResponse", + "AsyncRoutesResourceWithStreamingResponse", + "VirtualNetworksResource", + "AsyncVirtualNetworksResource", + "VirtualNetworksResourceWithRawResponse", + "AsyncVirtualNetworksResourceWithRawResponse", + "VirtualNetworksResourceWithStreamingResponse", + "AsyncVirtualNetworksResourceWithStreamingResponse", + "NetworksResource", + "AsyncNetworksResource", + "NetworksResourceWithRawResponse", + "AsyncNetworksResourceWithRawResponse", + "NetworksResourceWithStreamingResponse", + "AsyncNetworksResourceWithStreamingResponse", ] diff --git a/src/cloudflare/resources/zero_trust/networks/networks.py b/src/cloudflare/resources/zero_trust/networks/networks.py index 73a095697d6..0fb746f07a6 100644 --- a/src/cloudflare/resources/zero_trust/networks/networks.py +++ b/src/cloudflare/resources/zero_trust/networks/networks.py @@ -3,111 +3,111 @@ from __future__ import annotations from .routes import ( - Routes, - AsyncRoutes, - RoutesWithRawResponse, - AsyncRoutesWithRawResponse, - RoutesWithStreamingResponse, - AsyncRoutesWithStreamingResponse, + RoutesResource, + AsyncRoutesResource, + RoutesResourceWithRawResponse, + AsyncRoutesResourceWithRawResponse, + RoutesResourceWithStreamingResponse, + AsyncRoutesResourceWithStreamingResponse, ) from ...._compat import cached_property from ...._resource import SyncAPIResource, AsyncAPIResource -from .routes.routes import Routes, AsyncRoutes +from .routes.routes import RoutesResource, AsyncRoutesResource from .virtual_networks import ( - VirtualNetworks, - AsyncVirtualNetworks, - VirtualNetworksWithRawResponse, - AsyncVirtualNetworksWithRawResponse, - VirtualNetworksWithStreamingResponse, - AsyncVirtualNetworksWithStreamingResponse, + VirtualNetworksResource, + AsyncVirtualNetworksResource, + VirtualNetworksResourceWithRawResponse, + AsyncVirtualNetworksResourceWithRawResponse, + VirtualNetworksResourceWithStreamingResponse, + AsyncVirtualNetworksResourceWithStreamingResponse, ) -__all__ = ["Networks", "AsyncNetworks"] +__all__ = ["NetworksResource", "AsyncNetworksResource"] -class Networks(SyncAPIResource): +class NetworksResource(SyncAPIResource): @cached_property - def routes(self) -> Routes: - return Routes(self._client) + def routes(self) -> RoutesResource: + return RoutesResource(self._client) @cached_property - def virtual_networks(self) -> VirtualNetworks: - return VirtualNetworks(self._client) + def virtual_networks(self) -> VirtualNetworksResource: + return VirtualNetworksResource(self._client) @cached_property - def with_raw_response(self) -> NetworksWithRawResponse: - return NetworksWithRawResponse(self) + def with_raw_response(self) -> NetworksResourceWithRawResponse: + return NetworksResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> NetworksWithStreamingResponse: - return NetworksWithStreamingResponse(self) + def with_streaming_response(self) -> NetworksResourceWithStreamingResponse: + return NetworksResourceWithStreamingResponse(self) -class AsyncNetworks(AsyncAPIResource): +class AsyncNetworksResource(AsyncAPIResource): @cached_property - def routes(self) -> AsyncRoutes: - return AsyncRoutes(self._client) + def routes(self) -> AsyncRoutesResource: + return AsyncRoutesResource(self._client) @cached_property - def virtual_networks(self) -> AsyncVirtualNetworks: - return AsyncVirtualNetworks(self._client) + def virtual_networks(self) -> AsyncVirtualNetworksResource: + return AsyncVirtualNetworksResource(self._client) @cached_property - def with_raw_response(self) -> AsyncNetworksWithRawResponse: - return AsyncNetworksWithRawResponse(self) + def with_raw_response(self) -> AsyncNetworksResourceWithRawResponse: + return AsyncNetworksResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncNetworksWithStreamingResponse: - return AsyncNetworksWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncNetworksResourceWithStreamingResponse: + return AsyncNetworksResourceWithStreamingResponse(self) -class NetworksWithRawResponse: - def __init__(self, networks: Networks) -> None: +class NetworksResourceWithRawResponse: + def __init__(self, networks: NetworksResource) -> None: self._networks = networks @cached_property - def routes(self) -> RoutesWithRawResponse: - return RoutesWithRawResponse(self._networks.routes) + def routes(self) -> RoutesResourceWithRawResponse: + return RoutesResourceWithRawResponse(self._networks.routes) @cached_property - def virtual_networks(self) -> VirtualNetworksWithRawResponse: - return VirtualNetworksWithRawResponse(self._networks.virtual_networks) + def virtual_networks(self) -> VirtualNetworksResourceWithRawResponse: + return VirtualNetworksResourceWithRawResponse(self._networks.virtual_networks) -class AsyncNetworksWithRawResponse: - def __init__(self, networks: AsyncNetworks) -> None: +class AsyncNetworksResourceWithRawResponse: + def __init__(self, networks: AsyncNetworksResource) -> None: self._networks = networks @cached_property - def routes(self) -> AsyncRoutesWithRawResponse: - return AsyncRoutesWithRawResponse(self._networks.routes) + def routes(self) -> AsyncRoutesResourceWithRawResponse: + return AsyncRoutesResourceWithRawResponse(self._networks.routes) @cached_property - def virtual_networks(self) -> AsyncVirtualNetworksWithRawResponse: - return AsyncVirtualNetworksWithRawResponse(self._networks.virtual_networks) + def virtual_networks(self) -> AsyncVirtualNetworksResourceWithRawResponse: + return AsyncVirtualNetworksResourceWithRawResponse(self._networks.virtual_networks) -class NetworksWithStreamingResponse: - def __init__(self, networks: Networks) -> None: +class NetworksResourceWithStreamingResponse: + def __init__(self, networks: NetworksResource) -> None: self._networks = networks @cached_property - def routes(self) -> RoutesWithStreamingResponse: - return RoutesWithStreamingResponse(self._networks.routes) + def routes(self) -> RoutesResourceWithStreamingResponse: + return RoutesResourceWithStreamingResponse(self._networks.routes) @cached_property - def virtual_networks(self) -> VirtualNetworksWithStreamingResponse: - return VirtualNetworksWithStreamingResponse(self._networks.virtual_networks) + def virtual_networks(self) -> VirtualNetworksResourceWithStreamingResponse: + return VirtualNetworksResourceWithStreamingResponse(self._networks.virtual_networks) -class AsyncNetworksWithStreamingResponse: - def __init__(self, networks: AsyncNetworks) -> None: +class AsyncNetworksResourceWithStreamingResponse: + def __init__(self, networks: AsyncNetworksResource) -> None: self._networks = networks @cached_property - def routes(self) -> AsyncRoutesWithStreamingResponse: - return AsyncRoutesWithStreamingResponse(self._networks.routes) + def routes(self) -> AsyncRoutesResourceWithStreamingResponse: + return AsyncRoutesResourceWithStreamingResponse(self._networks.routes) @cached_property - def virtual_networks(self) -> AsyncVirtualNetworksWithStreamingResponse: - return AsyncVirtualNetworksWithStreamingResponse(self._networks.virtual_networks) + def virtual_networks(self) -> AsyncVirtualNetworksResourceWithStreamingResponse: + return AsyncVirtualNetworksResourceWithStreamingResponse(self._networks.virtual_networks) diff --git a/src/cloudflare/resources/zero_trust/networks/routes/__init__.py b/src/cloudflare/resources/zero_trust/networks/routes/__init__.py index 4f073406ea2..ab04f3fbcac 100644 --- a/src/cloudflare/resources/zero_trust/networks/routes/__init__.py +++ b/src/cloudflare/resources/zero_trust/networks/routes/__init__.py @@ -1,47 +1,47 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from .ips import ( - IPs, - AsyncIPs, - IPsWithRawResponse, - AsyncIPsWithRawResponse, - IPsWithStreamingResponse, - AsyncIPsWithStreamingResponse, + IPsResource, + AsyncIPsResource, + IPsResourceWithRawResponse, + AsyncIPsResourceWithRawResponse, + IPsResourceWithStreamingResponse, + AsyncIPsResourceWithStreamingResponse, ) from .routes import ( - Routes, - AsyncRoutes, - RoutesWithRawResponse, - AsyncRoutesWithRawResponse, - RoutesWithStreamingResponse, - AsyncRoutesWithStreamingResponse, + RoutesResource, + AsyncRoutesResource, + RoutesResourceWithRawResponse, + AsyncRoutesResourceWithRawResponse, + RoutesResourceWithStreamingResponse, + AsyncRoutesResourceWithStreamingResponse, ) from .networks import ( - Networks, - AsyncNetworks, - NetworksWithRawResponse, - AsyncNetworksWithRawResponse, - NetworksWithStreamingResponse, - AsyncNetworksWithStreamingResponse, + NetworksResource, + AsyncNetworksResource, + NetworksResourceWithRawResponse, + AsyncNetworksResourceWithRawResponse, + NetworksResourceWithStreamingResponse, + AsyncNetworksResourceWithStreamingResponse, ) __all__ = [ - "IPs", - "AsyncIPs", - "IPsWithRawResponse", - "AsyncIPsWithRawResponse", - "IPsWithStreamingResponse", - "AsyncIPsWithStreamingResponse", - "Networks", - "AsyncNetworks", - "NetworksWithRawResponse", - "AsyncNetworksWithRawResponse", - "NetworksWithStreamingResponse", - "AsyncNetworksWithStreamingResponse", - "Routes", - "AsyncRoutes", - "RoutesWithRawResponse", - "AsyncRoutesWithRawResponse", - "RoutesWithStreamingResponse", - "AsyncRoutesWithStreamingResponse", + "IPsResource", + "AsyncIPsResource", + "IPsResourceWithRawResponse", + "AsyncIPsResourceWithRawResponse", + "IPsResourceWithStreamingResponse", + "AsyncIPsResourceWithStreamingResponse", + "NetworksResource", + "AsyncNetworksResource", + "NetworksResourceWithRawResponse", + "AsyncNetworksResourceWithRawResponse", + "NetworksResourceWithStreamingResponse", + "AsyncNetworksResourceWithStreamingResponse", + "RoutesResource", + "AsyncRoutesResource", + "RoutesResourceWithRawResponse", + "AsyncRoutesResourceWithRawResponse", + "RoutesResourceWithStreamingResponse", + "AsyncRoutesResourceWithStreamingResponse", ] diff --git a/src/cloudflare/resources/zero_trust/networks/routes/ips.py b/src/cloudflare/resources/zero_trust/networks/routes/ips.py index 79b592ff86b..a8864c8a8cb 100644 --- a/src/cloudflare/resources/zero_trust/networks/routes/ips.py +++ b/src/cloudflare/resources/zero_trust/networks/routes/ips.py @@ -26,17 +26,17 @@ from .....types.zero_trust.networks.routes import ip_get_params from .....types.zero_trust.networks.teamnet import Teamnet -__all__ = ["IPs", "AsyncIPs"] +__all__ = ["IPsResource", "AsyncIPsResource"] -class IPs(SyncAPIResource): +class IPsResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> IPsWithRawResponse: - return IPsWithRawResponse(self) + def with_raw_response(self) -> IPsResourceWithRawResponse: + return IPsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> IPsWithStreamingResponse: - return IPsWithStreamingResponse(self) + def with_streaming_response(self) -> IPsResourceWithStreamingResponse: + return IPsResourceWithStreamingResponse(self) def get( self, @@ -85,14 +85,14 @@ def get( ) -class AsyncIPs(AsyncAPIResource): +class AsyncIPsResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncIPsWithRawResponse: - return AsyncIPsWithRawResponse(self) + def with_raw_response(self) -> AsyncIPsResourceWithRawResponse: + return AsyncIPsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncIPsWithStreamingResponse: - return AsyncIPsWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncIPsResourceWithStreamingResponse: + return AsyncIPsResourceWithStreamingResponse(self) async def get( self, @@ -143,8 +143,8 @@ async def get( ) -class IPsWithRawResponse: - def __init__(self, ips: IPs) -> None: +class IPsResourceWithRawResponse: + def __init__(self, ips: IPsResource) -> None: self._ips = ips self.get = to_raw_response_wrapper( @@ -152,8 +152,8 @@ def __init__(self, ips: IPs) -> None: ) -class AsyncIPsWithRawResponse: - def __init__(self, ips: AsyncIPs) -> None: +class AsyncIPsResourceWithRawResponse: + def __init__(self, ips: AsyncIPsResource) -> None: self._ips = ips self.get = async_to_raw_response_wrapper( @@ -161,8 +161,8 @@ def __init__(self, ips: AsyncIPs) -> None: ) -class IPsWithStreamingResponse: - def __init__(self, ips: IPs) -> None: +class IPsResourceWithStreamingResponse: + def __init__(self, ips: IPsResource) -> None: self._ips = ips self.get = to_streamed_response_wrapper( @@ -170,8 +170,8 @@ def __init__(self, ips: IPs) -> None: ) -class AsyncIPsWithStreamingResponse: - def __init__(self, ips: AsyncIPs) -> None: +class AsyncIPsResourceWithStreamingResponse: + def __init__(self, ips: AsyncIPsResource) -> None: self._ips = ips self.get = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/zero_trust/networks/routes/networks.py b/src/cloudflare/resources/zero_trust/networks/routes/networks.py index 4cd3feac690..e125b34a288 100644 --- a/src/cloudflare/resources/zero_trust/networks/routes/networks.py +++ b/src/cloudflare/resources/zero_trust/networks/routes/networks.py @@ -27,17 +27,17 @@ from .....types.zero_trust.networks.route import Route from .....types.zero_trust.networks.routes import network_create_params, network_delete_params -__all__ = ["Networks", "AsyncNetworks"] +__all__ = ["NetworksResource", "AsyncNetworksResource"] -class Networks(SyncAPIResource): +class NetworksResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> NetworksWithRawResponse: - return NetworksWithRawResponse(self) + def with_raw_response(self) -> NetworksResourceWithRawResponse: + return NetworksResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> NetworksWithStreamingResponse: - return NetworksWithStreamingResponse(self) + def with_streaming_response(self) -> NetworksResourceWithStreamingResponse: + return NetworksResourceWithStreamingResponse(self) def create( self, @@ -213,14 +213,14 @@ def edit( ) -class AsyncNetworks(AsyncAPIResource): +class AsyncNetworksResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncNetworksWithRawResponse: - return AsyncNetworksWithRawResponse(self) + def with_raw_response(self) -> AsyncNetworksResourceWithRawResponse: + return AsyncNetworksResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncNetworksWithStreamingResponse: - return AsyncNetworksWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncNetworksResourceWithStreamingResponse: + return AsyncNetworksResourceWithStreamingResponse(self) async def create( self, @@ -396,8 +396,8 @@ async def edit( ) -class NetworksWithRawResponse: - def __init__(self, networks: Networks) -> None: +class NetworksResourceWithRawResponse: + def __init__(self, networks: NetworksResource) -> None: self._networks = networks self.create = to_raw_response_wrapper( @@ -411,8 +411,8 @@ def __init__(self, networks: Networks) -> None: ) -class AsyncNetworksWithRawResponse: - def __init__(self, networks: AsyncNetworks) -> None: +class AsyncNetworksResourceWithRawResponse: + def __init__(self, networks: AsyncNetworksResource) -> None: self._networks = networks self.create = async_to_raw_response_wrapper( @@ -426,8 +426,8 @@ def __init__(self, networks: AsyncNetworks) -> None: ) -class NetworksWithStreamingResponse: - def __init__(self, networks: Networks) -> None: +class NetworksResourceWithStreamingResponse: + def __init__(self, networks: NetworksResource) -> None: self._networks = networks self.create = to_streamed_response_wrapper( @@ -441,8 +441,8 @@ def __init__(self, networks: Networks) -> None: ) -class AsyncNetworksWithStreamingResponse: - def __init__(self, networks: AsyncNetworks) -> None: +class AsyncNetworksResourceWithStreamingResponse: + def __init__(self, networks: AsyncNetworksResource) -> None: self._networks = networks self.create = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/zero_trust/networks/routes/routes.py b/src/cloudflare/resources/zero_trust/networks/routes/routes.py index 0bbd100f0f3..9a6cd15ba68 100644 --- a/src/cloudflare/resources/zero_trust/networks/routes/routes.py +++ b/src/cloudflare/resources/zero_trust/networks/routes/routes.py @@ -8,20 +8,20 @@ import httpx from .ips import ( - IPs, - AsyncIPs, - IPsWithRawResponse, - AsyncIPsWithRawResponse, - IPsWithStreamingResponse, - AsyncIPsWithStreamingResponse, + IPsResource, + AsyncIPsResource, + IPsResourceWithRawResponse, + AsyncIPsResourceWithRawResponse, + IPsResourceWithStreamingResponse, + AsyncIPsResourceWithStreamingResponse, ) from .networks import ( - Networks, - AsyncNetworks, - NetworksWithRawResponse, - AsyncNetworksWithRawResponse, - NetworksWithStreamingResponse, - AsyncNetworksWithStreamingResponse, + NetworksResource, + AsyncNetworksResource, + NetworksResourceWithRawResponse, + AsyncNetworksResourceWithRawResponse, + NetworksResourceWithStreamingResponse, + AsyncNetworksResourceWithStreamingResponse, ) from ....._types import NOT_GIVEN, Body, Query, Headers, NotGiven from ....._utils import ( @@ -46,25 +46,25 @@ from .....types.zero_trust.networks.route import Route from .....types.zero_trust.networks.teamnet import Teamnet -__all__ = ["Routes", "AsyncRoutes"] +__all__ = ["RoutesResource", "AsyncRoutesResource"] -class Routes(SyncAPIResource): +class RoutesResource(SyncAPIResource): @cached_property - def ips(self) -> IPs: - return IPs(self._client) + def ips(self) -> IPsResource: + return IPsResource(self._client) @cached_property - def networks(self) -> Networks: - return Networks(self._client) + def networks(self) -> NetworksResource: + return NetworksResource(self._client) @cached_property - def with_raw_response(self) -> RoutesWithRawResponse: - return RoutesWithRawResponse(self) + def with_raw_response(self) -> RoutesResourceWithRawResponse: + return RoutesResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> RoutesWithStreamingResponse: - return RoutesWithStreamingResponse(self) + def with_streaming_response(self) -> RoutesResourceWithStreamingResponse: + return RoutesResourceWithStreamingResponse(self) def create( self, @@ -320,22 +320,22 @@ def edit( ) -class AsyncRoutes(AsyncAPIResource): +class AsyncRoutesResource(AsyncAPIResource): @cached_property - def ips(self) -> AsyncIPs: - return AsyncIPs(self._client) + def ips(self) -> AsyncIPsResource: + return AsyncIPsResource(self._client) @cached_property - def networks(self) -> AsyncNetworks: - return AsyncNetworks(self._client) + def networks(self) -> AsyncNetworksResource: + return AsyncNetworksResource(self._client) @cached_property - def with_raw_response(self) -> AsyncRoutesWithRawResponse: - return AsyncRoutesWithRawResponse(self) + def with_raw_response(self) -> AsyncRoutesResourceWithRawResponse: + return AsyncRoutesResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncRoutesWithStreamingResponse: - return AsyncRoutesWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncRoutesResourceWithStreamingResponse: + return AsyncRoutesResourceWithStreamingResponse(self) async def create( self, @@ -591,8 +591,8 @@ async def edit( ) -class RoutesWithRawResponse: - def __init__(self, routes: Routes) -> None: +class RoutesResourceWithRawResponse: + def __init__(self, routes: RoutesResource) -> None: self._routes = routes self.create = to_raw_response_wrapper( @@ -609,16 +609,16 @@ def __init__(self, routes: Routes) -> None: ) @cached_property - def ips(self) -> IPsWithRawResponse: - return IPsWithRawResponse(self._routes.ips) + def ips(self) -> IPsResourceWithRawResponse: + return IPsResourceWithRawResponse(self._routes.ips) @cached_property - def networks(self) -> NetworksWithRawResponse: - return NetworksWithRawResponse(self._routes.networks) + def networks(self) -> NetworksResourceWithRawResponse: + return NetworksResourceWithRawResponse(self._routes.networks) -class AsyncRoutesWithRawResponse: - def __init__(self, routes: AsyncRoutes) -> None: +class AsyncRoutesResourceWithRawResponse: + def __init__(self, routes: AsyncRoutesResource) -> None: self._routes = routes self.create = async_to_raw_response_wrapper( @@ -635,16 +635,16 @@ def __init__(self, routes: AsyncRoutes) -> None: ) @cached_property - def ips(self) -> AsyncIPsWithRawResponse: - return AsyncIPsWithRawResponse(self._routes.ips) + def ips(self) -> AsyncIPsResourceWithRawResponse: + return AsyncIPsResourceWithRawResponse(self._routes.ips) @cached_property - def networks(self) -> AsyncNetworksWithRawResponse: - return AsyncNetworksWithRawResponse(self._routes.networks) + def networks(self) -> AsyncNetworksResourceWithRawResponse: + return AsyncNetworksResourceWithRawResponse(self._routes.networks) -class RoutesWithStreamingResponse: - def __init__(self, routes: Routes) -> None: +class RoutesResourceWithStreamingResponse: + def __init__(self, routes: RoutesResource) -> None: self._routes = routes self.create = to_streamed_response_wrapper( @@ -661,16 +661,16 @@ def __init__(self, routes: Routes) -> None: ) @cached_property - def ips(self) -> IPsWithStreamingResponse: - return IPsWithStreamingResponse(self._routes.ips) + def ips(self) -> IPsResourceWithStreamingResponse: + return IPsResourceWithStreamingResponse(self._routes.ips) @cached_property - def networks(self) -> NetworksWithStreamingResponse: - return NetworksWithStreamingResponse(self._routes.networks) + def networks(self) -> NetworksResourceWithStreamingResponse: + return NetworksResourceWithStreamingResponse(self._routes.networks) -class AsyncRoutesWithStreamingResponse: - def __init__(self, routes: AsyncRoutes) -> None: +class AsyncRoutesResourceWithStreamingResponse: + def __init__(self, routes: AsyncRoutesResource) -> None: self._routes = routes self.create = async_to_streamed_response_wrapper( @@ -687,9 +687,9 @@ def __init__(self, routes: AsyncRoutes) -> None: ) @cached_property - def ips(self) -> AsyncIPsWithStreamingResponse: - return AsyncIPsWithStreamingResponse(self._routes.ips) + def ips(self) -> AsyncIPsResourceWithStreamingResponse: + return AsyncIPsResourceWithStreamingResponse(self._routes.ips) @cached_property - def networks(self) -> AsyncNetworksWithStreamingResponse: - return AsyncNetworksWithStreamingResponse(self._routes.networks) + def networks(self) -> AsyncNetworksResourceWithStreamingResponse: + return AsyncNetworksResourceWithStreamingResponse(self._routes.networks) diff --git a/src/cloudflare/resources/zero_trust/networks/virtual_networks.py b/src/cloudflare/resources/zero_trust/networks/virtual_networks.py index c0ef4864e64..8c7611adaee 100644 --- a/src/cloudflare/resources/zero_trust/networks/virtual_networks.py +++ b/src/cloudflare/resources/zero_trust/networks/virtual_networks.py @@ -36,17 +36,17 @@ from ....types.zero_trust.networks.virtual_network_create_response import VirtualNetworkCreateResponse from ....types.zero_trust.networks.virtual_network_delete_response import VirtualNetworkDeleteResponse -__all__ = ["VirtualNetworks", "AsyncVirtualNetworks"] +__all__ = ["VirtualNetworksResource", "AsyncVirtualNetworksResource"] -class VirtualNetworks(SyncAPIResource): +class VirtualNetworksResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> VirtualNetworksWithRawResponse: - return VirtualNetworksWithRawResponse(self) + def with_raw_response(self) -> VirtualNetworksResourceWithRawResponse: + return VirtualNetworksResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> VirtualNetworksWithStreamingResponse: - return VirtualNetworksWithStreamingResponse(self) + def with_streaming_response(self) -> VirtualNetworksResourceWithStreamingResponse: + return VirtualNetworksResourceWithStreamingResponse(self) def create( self, @@ -289,14 +289,14 @@ def edit( ) -class AsyncVirtualNetworks(AsyncAPIResource): +class AsyncVirtualNetworksResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncVirtualNetworksWithRawResponse: - return AsyncVirtualNetworksWithRawResponse(self) + def with_raw_response(self) -> AsyncVirtualNetworksResourceWithRawResponse: + return AsyncVirtualNetworksResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncVirtualNetworksWithStreamingResponse: - return AsyncVirtualNetworksWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncVirtualNetworksResourceWithStreamingResponse: + return AsyncVirtualNetworksResourceWithStreamingResponse(self) async def create( self, @@ -539,8 +539,8 @@ async def edit( ) -class VirtualNetworksWithRawResponse: - def __init__(self, virtual_networks: VirtualNetworks) -> None: +class VirtualNetworksResourceWithRawResponse: + def __init__(self, virtual_networks: VirtualNetworksResource) -> None: self._virtual_networks = virtual_networks self.create = to_raw_response_wrapper( @@ -557,8 +557,8 @@ def __init__(self, virtual_networks: VirtualNetworks) -> None: ) -class AsyncVirtualNetworksWithRawResponse: - def __init__(self, virtual_networks: AsyncVirtualNetworks) -> None: +class AsyncVirtualNetworksResourceWithRawResponse: + def __init__(self, virtual_networks: AsyncVirtualNetworksResource) -> None: self._virtual_networks = virtual_networks self.create = async_to_raw_response_wrapper( @@ -575,8 +575,8 @@ def __init__(self, virtual_networks: AsyncVirtualNetworks) -> None: ) -class VirtualNetworksWithStreamingResponse: - def __init__(self, virtual_networks: VirtualNetworks) -> None: +class VirtualNetworksResourceWithStreamingResponse: + def __init__(self, virtual_networks: VirtualNetworksResource) -> None: self._virtual_networks = virtual_networks self.create = to_streamed_response_wrapper( @@ -593,8 +593,8 @@ def __init__(self, virtual_networks: VirtualNetworks) -> None: ) -class AsyncVirtualNetworksWithStreamingResponse: - def __init__(self, virtual_networks: AsyncVirtualNetworks) -> None: +class AsyncVirtualNetworksResourceWithStreamingResponse: + def __init__(self, virtual_networks: AsyncVirtualNetworksResource) -> None: self._virtual_networks = virtual_networks self.create = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/zero_trust/organizations.py b/src/cloudflare/resources/zero_trust/organizations.py index 6dfa8917d28..57abae8cc92 100644 --- a/src/cloudflare/resources/zero_trust/organizations.py +++ b/src/cloudflare/resources/zero_trust/organizations.py @@ -32,17 +32,17 @@ from ...types.zero_trust.login_design_param import LoginDesignParam from ...types.zero_trust.organization_revoke_users_response import OrganizationRevokeUsersResponse -__all__ = ["Organizations", "AsyncOrganizations"] +__all__ = ["OrganizationsResource", "AsyncOrganizationsResource"] -class Organizations(SyncAPIResource): +class OrganizationsResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> OrganizationsWithRawResponse: - return OrganizationsWithRawResponse(self) + def with_raw_response(self) -> OrganizationsResourceWithRawResponse: + return OrganizationsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> OrganizationsWithStreamingResponse: - return OrganizationsWithStreamingResponse(self) + def with_streaming_response(self) -> OrganizationsResourceWithStreamingResponse: + return OrganizationsResourceWithStreamingResponse(self) def create( self, @@ -365,14 +365,14 @@ def revoke_users( ) -class AsyncOrganizations(AsyncAPIResource): +class AsyncOrganizationsResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncOrganizationsWithRawResponse: - return AsyncOrganizationsWithRawResponse(self) + def with_raw_response(self) -> AsyncOrganizationsResourceWithRawResponse: + return AsyncOrganizationsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncOrganizationsWithStreamingResponse: - return AsyncOrganizationsWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncOrganizationsResourceWithStreamingResponse: + return AsyncOrganizationsResourceWithStreamingResponse(self) async def create( self, @@ -697,8 +697,8 @@ async def revoke_users( ) -class OrganizationsWithRawResponse: - def __init__(self, organizations: Organizations) -> None: +class OrganizationsResourceWithRawResponse: + def __init__(self, organizations: OrganizationsResource) -> None: self._organizations = organizations self.create = to_raw_response_wrapper( @@ -715,8 +715,8 @@ def __init__(self, organizations: Organizations) -> None: ) -class AsyncOrganizationsWithRawResponse: - def __init__(self, organizations: AsyncOrganizations) -> None: +class AsyncOrganizationsResourceWithRawResponse: + def __init__(self, organizations: AsyncOrganizationsResource) -> None: self._organizations = organizations self.create = async_to_raw_response_wrapper( @@ -733,8 +733,8 @@ def __init__(self, organizations: AsyncOrganizations) -> None: ) -class OrganizationsWithStreamingResponse: - def __init__(self, organizations: Organizations) -> None: +class OrganizationsResourceWithStreamingResponse: + def __init__(self, organizations: OrganizationsResource) -> None: self._organizations = organizations self.create = to_streamed_response_wrapper( @@ -751,8 +751,8 @@ def __init__(self, organizations: Organizations) -> None: ) -class AsyncOrganizationsWithStreamingResponse: - def __init__(self, organizations: AsyncOrganizations) -> None: +class AsyncOrganizationsResourceWithStreamingResponse: + def __init__(self, organizations: AsyncOrganizationsResource) -> None: self._organizations = organizations self.create = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/zero_trust/risk_scoring/__init__.py b/src/cloudflare/resources/zero_trust/risk_scoring/__init__.py index 93432bf9f4d..786697e73dd 100644 --- a/src/cloudflare/resources/zero_trust/risk_scoring/__init__.py +++ b/src/cloudflare/resources/zero_trust/risk_scoring/__init__.py @@ -1,47 +1,47 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from .summary import ( - Summary, - AsyncSummary, - SummaryWithRawResponse, - AsyncSummaryWithRawResponse, - SummaryWithStreamingResponse, - AsyncSummaryWithStreamingResponse, + SummaryResource, + AsyncSummaryResource, + SummaryResourceWithRawResponse, + AsyncSummaryResourceWithRawResponse, + SummaryResourceWithStreamingResponse, + AsyncSummaryResourceWithStreamingResponse, ) from .behaviours import ( - Behaviours, - AsyncBehaviours, - BehavioursWithRawResponse, - AsyncBehavioursWithRawResponse, - BehavioursWithStreamingResponse, - AsyncBehavioursWithStreamingResponse, + BehavioursResource, + AsyncBehavioursResource, + BehavioursResourceWithRawResponse, + AsyncBehavioursResourceWithRawResponse, + BehavioursResourceWithStreamingResponse, + AsyncBehavioursResourceWithStreamingResponse, ) from .risk_scoring import ( - RiskScoring, - AsyncRiskScoring, - RiskScoringWithRawResponse, - AsyncRiskScoringWithRawResponse, - RiskScoringWithStreamingResponse, - AsyncRiskScoringWithStreamingResponse, + RiskScoringResource, + AsyncRiskScoringResource, + RiskScoringResourceWithRawResponse, + AsyncRiskScoringResourceWithRawResponse, + RiskScoringResourceWithStreamingResponse, + AsyncRiskScoringResourceWithStreamingResponse, ) __all__ = [ - "Behaviours", - "AsyncBehaviours", - "BehavioursWithRawResponse", - "AsyncBehavioursWithRawResponse", - "BehavioursWithStreamingResponse", - "AsyncBehavioursWithStreamingResponse", - "Summary", - "AsyncSummary", - "SummaryWithRawResponse", - "AsyncSummaryWithRawResponse", - "SummaryWithStreamingResponse", - "AsyncSummaryWithStreamingResponse", - "RiskScoring", - "AsyncRiskScoring", - "RiskScoringWithRawResponse", - "AsyncRiskScoringWithRawResponse", - "RiskScoringWithStreamingResponse", - "AsyncRiskScoringWithStreamingResponse", + "BehavioursResource", + "AsyncBehavioursResource", + "BehavioursResourceWithRawResponse", + "AsyncBehavioursResourceWithRawResponse", + "BehavioursResourceWithStreamingResponse", + "AsyncBehavioursResourceWithStreamingResponse", + "SummaryResource", + "AsyncSummaryResource", + "SummaryResourceWithRawResponse", + "AsyncSummaryResourceWithRawResponse", + "SummaryResourceWithStreamingResponse", + "AsyncSummaryResourceWithStreamingResponse", + "RiskScoringResource", + "AsyncRiskScoringResource", + "RiskScoringResourceWithRawResponse", + "AsyncRiskScoringResourceWithRawResponse", + "RiskScoringResourceWithStreamingResponse", + "AsyncRiskScoringResourceWithStreamingResponse", ] diff --git a/src/cloudflare/resources/zero_trust/risk_scoring/behaviours.py b/src/cloudflare/resources/zero_trust/risk_scoring/behaviours.py index 392eeefb291..4e294213fb7 100644 --- a/src/cloudflare/resources/zero_trust/risk_scoring/behaviours.py +++ b/src/cloudflare/resources/zero_trust/risk_scoring/behaviours.py @@ -27,17 +27,17 @@ from ....types.zero_trust.risk_scoring.behaviour_get_response import BehaviourGetResponse from ....types.zero_trust.risk_scoring.behaviour_update_response import BehaviourUpdateResponse -__all__ = ["Behaviours", "AsyncBehaviours"] +__all__ = ["BehavioursResource", "AsyncBehavioursResource"] -class Behaviours(SyncAPIResource): +class BehavioursResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> BehavioursWithRawResponse: - return BehavioursWithRawResponse(self) + def with_raw_response(self) -> BehavioursResourceWithRawResponse: + return BehavioursResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> BehavioursWithStreamingResponse: - return BehavioursWithStreamingResponse(self) + def with_streaming_response(self) -> BehavioursResourceWithStreamingResponse: + return BehavioursResourceWithStreamingResponse(self) def update( self, @@ -120,14 +120,14 @@ def get( ) -class AsyncBehaviours(AsyncAPIResource): +class AsyncBehavioursResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncBehavioursWithRawResponse: - return AsyncBehavioursWithRawResponse(self) + def with_raw_response(self) -> AsyncBehavioursResourceWithRawResponse: + return AsyncBehavioursResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncBehavioursWithStreamingResponse: - return AsyncBehavioursWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncBehavioursResourceWithStreamingResponse: + return AsyncBehavioursResourceWithStreamingResponse(self) async def update( self, @@ -210,8 +210,8 @@ async def get( ) -class BehavioursWithRawResponse: - def __init__(self, behaviours: Behaviours) -> None: +class BehavioursResourceWithRawResponse: + def __init__(self, behaviours: BehavioursResource) -> None: self._behaviours = behaviours self.update = to_raw_response_wrapper( @@ -222,8 +222,8 @@ def __init__(self, behaviours: Behaviours) -> None: ) -class AsyncBehavioursWithRawResponse: - def __init__(self, behaviours: AsyncBehaviours) -> None: +class AsyncBehavioursResourceWithRawResponse: + def __init__(self, behaviours: AsyncBehavioursResource) -> None: self._behaviours = behaviours self.update = async_to_raw_response_wrapper( @@ -234,8 +234,8 @@ def __init__(self, behaviours: AsyncBehaviours) -> None: ) -class BehavioursWithStreamingResponse: - def __init__(self, behaviours: Behaviours) -> None: +class BehavioursResourceWithStreamingResponse: + def __init__(self, behaviours: BehavioursResource) -> None: self._behaviours = behaviours self.update = to_streamed_response_wrapper( @@ -246,8 +246,8 @@ def __init__(self, behaviours: Behaviours) -> None: ) -class AsyncBehavioursWithStreamingResponse: - def __init__(self, behaviours: AsyncBehaviours) -> None: +class AsyncBehavioursResourceWithStreamingResponse: + def __init__(self, behaviours: AsyncBehavioursResource) -> None: self._behaviours = behaviours self.update = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/zero_trust/risk_scoring/risk_scoring.py b/src/cloudflare/resources/zero_trust/risk_scoring/risk_scoring.py index a42287ee76f..fcf0c234dca 100644 --- a/src/cloudflare/resources/zero_trust/risk_scoring/risk_scoring.py +++ b/src/cloudflare/resources/zero_trust/risk_scoring/risk_scoring.py @@ -8,12 +8,12 @@ import httpx from .summary import ( - Summary, - AsyncSummary, - SummaryWithRawResponse, - AsyncSummaryWithRawResponse, - SummaryWithStreamingResponse, - AsyncSummaryWithStreamingResponse, + SummaryResource, + AsyncSummaryResource, + SummaryResourceWithRawResponse, + AsyncSummaryResourceWithRawResponse, + SummaryResourceWithStreamingResponse, + AsyncSummaryResourceWithStreamingResponse, ) from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven from ...._utils import ( @@ -22,12 +22,12 @@ ) from ...._compat import cached_property from .behaviours import ( - Behaviours, - AsyncBehaviours, - BehavioursWithRawResponse, - AsyncBehavioursWithRawResponse, - BehavioursWithStreamingResponse, - AsyncBehavioursWithStreamingResponse, + BehavioursResource, + AsyncBehavioursResource, + BehavioursResourceWithRawResponse, + AsyncBehavioursResourceWithRawResponse, + BehavioursResourceWithStreamingResponse, + AsyncBehavioursResourceWithStreamingResponse, ) from ...._resource import SyncAPIResource, AsyncAPIResource from ...._response import ( @@ -44,25 +44,25 @@ from ....types.zero_trust.risk_scoring_get_response import RiskScoringGetResponse from ....types.zero_trust.risk_scoring_reset_response import RiskScoringResetResponse -__all__ = ["RiskScoring", "AsyncRiskScoring"] +__all__ = ["RiskScoringResource", "AsyncRiskScoringResource"] -class RiskScoring(SyncAPIResource): +class RiskScoringResource(SyncAPIResource): @cached_property - def behaviours(self) -> Behaviours: - return Behaviours(self._client) + def behaviours(self) -> BehavioursResource: + return BehavioursResource(self._client) @cached_property - def summary(self) -> Summary: - return Summary(self._client) + def summary(self) -> SummaryResource: + return SummaryResource(self._client) @cached_property - def with_raw_response(self) -> RiskScoringWithRawResponse: - return RiskScoringWithRawResponse(self) + def with_raw_response(self) -> RiskScoringResourceWithRawResponse: + return RiskScoringResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> RiskScoringWithStreamingResponse: - return RiskScoringWithStreamingResponse(self) + def with_streaming_response(self) -> RiskScoringResourceWithStreamingResponse: + return RiskScoringResourceWithStreamingResponse(self) def get( self, @@ -171,22 +171,22 @@ def reset( ) -class AsyncRiskScoring(AsyncAPIResource): +class AsyncRiskScoringResource(AsyncAPIResource): @cached_property - def behaviours(self) -> AsyncBehaviours: - return AsyncBehaviours(self._client) + def behaviours(self) -> AsyncBehavioursResource: + return AsyncBehavioursResource(self._client) @cached_property - def summary(self) -> AsyncSummary: - return AsyncSummary(self._client) + def summary(self) -> AsyncSummaryResource: + return AsyncSummaryResource(self._client) @cached_property - def with_raw_response(self) -> AsyncRiskScoringWithRawResponse: - return AsyncRiskScoringWithRawResponse(self) + def with_raw_response(self) -> AsyncRiskScoringResourceWithRawResponse: + return AsyncRiskScoringResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncRiskScoringWithStreamingResponse: - return AsyncRiskScoringWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncRiskScoringResourceWithStreamingResponse: + return AsyncRiskScoringResourceWithStreamingResponse(self) async def get( self, @@ -295,8 +295,8 @@ async def reset( ) -class RiskScoringWithRawResponse: - def __init__(self, risk_scoring: RiskScoring) -> None: +class RiskScoringResourceWithRawResponse: + def __init__(self, risk_scoring: RiskScoringResource) -> None: self._risk_scoring = risk_scoring self.get = to_raw_response_wrapper( @@ -307,16 +307,16 @@ def __init__(self, risk_scoring: RiskScoring) -> None: ) @cached_property - def behaviours(self) -> BehavioursWithRawResponse: - return BehavioursWithRawResponse(self._risk_scoring.behaviours) + def behaviours(self) -> BehavioursResourceWithRawResponse: + return BehavioursResourceWithRawResponse(self._risk_scoring.behaviours) @cached_property - def summary(self) -> SummaryWithRawResponse: - return SummaryWithRawResponse(self._risk_scoring.summary) + def summary(self) -> SummaryResourceWithRawResponse: + return SummaryResourceWithRawResponse(self._risk_scoring.summary) -class AsyncRiskScoringWithRawResponse: - def __init__(self, risk_scoring: AsyncRiskScoring) -> None: +class AsyncRiskScoringResourceWithRawResponse: + def __init__(self, risk_scoring: AsyncRiskScoringResource) -> None: self._risk_scoring = risk_scoring self.get = async_to_raw_response_wrapper( @@ -327,16 +327,16 @@ def __init__(self, risk_scoring: AsyncRiskScoring) -> None: ) @cached_property - def behaviours(self) -> AsyncBehavioursWithRawResponse: - return AsyncBehavioursWithRawResponse(self._risk_scoring.behaviours) + def behaviours(self) -> AsyncBehavioursResourceWithRawResponse: + return AsyncBehavioursResourceWithRawResponse(self._risk_scoring.behaviours) @cached_property - def summary(self) -> AsyncSummaryWithRawResponse: - return AsyncSummaryWithRawResponse(self._risk_scoring.summary) + def summary(self) -> AsyncSummaryResourceWithRawResponse: + return AsyncSummaryResourceWithRawResponse(self._risk_scoring.summary) -class RiskScoringWithStreamingResponse: - def __init__(self, risk_scoring: RiskScoring) -> None: +class RiskScoringResourceWithStreamingResponse: + def __init__(self, risk_scoring: RiskScoringResource) -> None: self._risk_scoring = risk_scoring self.get = to_streamed_response_wrapper( @@ -347,16 +347,16 @@ def __init__(self, risk_scoring: RiskScoring) -> None: ) @cached_property - def behaviours(self) -> BehavioursWithStreamingResponse: - return BehavioursWithStreamingResponse(self._risk_scoring.behaviours) + def behaviours(self) -> BehavioursResourceWithStreamingResponse: + return BehavioursResourceWithStreamingResponse(self._risk_scoring.behaviours) @cached_property - def summary(self) -> SummaryWithStreamingResponse: - return SummaryWithStreamingResponse(self._risk_scoring.summary) + def summary(self) -> SummaryResourceWithStreamingResponse: + return SummaryResourceWithStreamingResponse(self._risk_scoring.summary) -class AsyncRiskScoringWithStreamingResponse: - def __init__(self, risk_scoring: AsyncRiskScoring) -> None: +class AsyncRiskScoringResourceWithStreamingResponse: + def __init__(self, risk_scoring: AsyncRiskScoringResource) -> None: self._risk_scoring = risk_scoring self.get = async_to_streamed_response_wrapper( @@ -367,9 +367,9 @@ def __init__(self, risk_scoring: AsyncRiskScoring) -> None: ) @cached_property - def behaviours(self) -> AsyncBehavioursWithStreamingResponse: - return AsyncBehavioursWithStreamingResponse(self._risk_scoring.behaviours) + def behaviours(self) -> AsyncBehavioursResourceWithStreamingResponse: + return AsyncBehavioursResourceWithStreamingResponse(self._risk_scoring.behaviours) @cached_property - def summary(self) -> AsyncSummaryWithStreamingResponse: - return AsyncSummaryWithStreamingResponse(self._risk_scoring.summary) + def summary(self) -> AsyncSummaryResourceWithStreamingResponse: + return AsyncSummaryResourceWithStreamingResponse(self._risk_scoring.summary) diff --git a/src/cloudflare/resources/zero_trust/risk_scoring/summary.py b/src/cloudflare/resources/zero_trust/risk_scoring/summary.py index c0d3323d05f..cb117e9adf8 100644 --- a/src/cloudflare/resources/zero_trust/risk_scoring/summary.py +++ b/src/cloudflare/resources/zero_trust/risk_scoring/summary.py @@ -27,17 +27,17 @@ from ....types.zero_trust.risk_scoring import summary_get_params from ....types.zero_trust.risk_scoring.summary_get_response import SummaryGetResponse -__all__ = ["Summary", "AsyncSummary"] +__all__ = ["SummaryResource", "AsyncSummaryResource"] -class Summary(SyncAPIResource): +class SummaryResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> SummaryWithRawResponse: - return SummaryWithRawResponse(self) + def with_raw_response(self) -> SummaryResourceWithRawResponse: + return SummaryResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> SummaryWithStreamingResponse: - return SummaryWithStreamingResponse(self) + def with_streaming_response(self) -> SummaryResourceWithStreamingResponse: + return SummaryResourceWithStreamingResponse(self) def get( self, @@ -92,14 +92,14 @@ def get( ) -class AsyncSummary(AsyncAPIResource): +class AsyncSummaryResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncSummaryWithRawResponse: - return AsyncSummaryWithRawResponse(self) + def with_raw_response(self) -> AsyncSummaryResourceWithRawResponse: + return AsyncSummaryResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncSummaryWithStreamingResponse: - return AsyncSummaryWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncSummaryResourceWithStreamingResponse: + return AsyncSummaryResourceWithStreamingResponse(self) async def get( self, @@ -154,8 +154,8 @@ async def get( ) -class SummaryWithRawResponse: - def __init__(self, summary: Summary) -> None: +class SummaryResourceWithRawResponse: + def __init__(self, summary: SummaryResource) -> None: self._summary = summary self.get = to_raw_response_wrapper( @@ -163,8 +163,8 @@ def __init__(self, summary: Summary) -> None: ) -class AsyncSummaryWithRawResponse: - def __init__(self, summary: AsyncSummary) -> None: +class AsyncSummaryResourceWithRawResponse: + def __init__(self, summary: AsyncSummaryResource) -> None: self._summary = summary self.get = async_to_raw_response_wrapper( @@ -172,8 +172,8 @@ def __init__(self, summary: AsyncSummary) -> None: ) -class SummaryWithStreamingResponse: - def __init__(self, summary: Summary) -> None: +class SummaryResourceWithStreamingResponse: + def __init__(self, summary: SummaryResource) -> None: self._summary = summary self.get = to_streamed_response_wrapper( @@ -181,8 +181,8 @@ def __init__(self, summary: Summary) -> None: ) -class AsyncSummaryWithStreamingResponse: - def __init__(self, summary: AsyncSummary) -> None: +class AsyncSummaryResourceWithStreamingResponse: + def __init__(self, summary: AsyncSummaryResource) -> None: self._summary = summary self.get = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/zero_trust/seats.py b/src/cloudflare/resources/zero_trust/seats.py index 79fc9544c27..c1368cd0512 100644 --- a/src/cloudflare/resources/zero_trust/seats.py +++ b/src/cloudflare/resources/zero_trust/seats.py @@ -26,17 +26,17 @@ from ...types.zero_trust import seat_edit_params from ...types.zero_trust.seat_edit_response import SeatEditResponse -__all__ = ["Seats", "AsyncSeats"] +__all__ = ["SeatsResource", "AsyncSeatsResource"] -class Seats(SyncAPIResource): +class SeatsResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> SeatsWithRawResponse: - return SeatsWithRawResponse(self) + def with_raw_response(self) -> SeatsResourceWithRawResponse: + return SeatsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> SeatsWithStreamingResponse: - return SeatsWithStreamingResponse(self) + def with_streaming_response(self) -> SeatsResourceWithStreamingResponse: + return SeatsResourceWithStreamingResponse(self) def edit( self, @@ -81,14 +81,14 @@ def edit( ) -class AsyncSeats(AsyncAPIResource): +class AsyncSeatsResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncSeatsWithRawResponse: - return AsyncSeatsWithRawResponse(self) + def with_raw_response(self) -> AsyncSeatsResourceWithRawResponse: + return AsyncSeatsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncSeatsWithStreamingResponse: - return AsyncSeatsWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncSeatsResourceWithStreamingResponse: + return AsyncSeatsResourceWithStreamingResponse(self) async def edit( self, @@ -133,8 +133,8 @@ async def edit( ) -class SeatsWithRawResponse: - def __init__(self, seats: Seats) -> None: +class SeatsResourceWithRawResponse: + def __init__(self, seats: SeatsResource) -> None: self._seats = seats self.edit = to_raw_response_wrapper( @@ -142,8 +142,8 @@ def __init__(self, seats: Seats) -> None: ) -class AsyncSeatsWithRawResponse: - def __init__(self, seats: AsyncSeats) -> None: +class AsyncSeatsResourceWithRawResponse: + def __init__(self, seats: AsyncSeatsResource) -> None: self._seats = seats self.edit = async_to_raw_response_wrapper( @@ -151,8 +151,8 @@ def __init__(self, seats: AsyncSeats) -> None: ) -class SeatsWithStreamingResponse: - def __init__(self, seats: Seats) -> None: +class SeatsResourceWithStreamingResponse: + def __init__(self, seats: SeatsResource) -> None: self._seats = seats self.edit = to_streamed_response_wrapper( @@ -160,8 +160,8 @@ def __init__(self, seats: Seats) -> None: ) -class AsyncSeatsWithStreamingResponse: - def __init__(self, seats: AsyncSeats) -> None: +class AsyncSeatsResourceWithStreamingResponse: + def __init__(self, seats: AsyncSeatsResource) -> None: self._seats = seats self.edit = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/zero_trust/tunnels/__init__.py b/src/cloudflare/resources/zero_trust/tunnels/__init__.py index 87951343750..6b6b14ed647 100644 --- a/src/cloudflare/resources/zero_trust/tunnels/__init__.py +++ b/src/cloudflare/resources/zero_trust/tunnels/__init__.py @@ -1,89 +1,89 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from .token import ( - Token, - AsyncToken, - TokenWithRawResponse, - AsyncTokenWithRawResponse, - TokenWithStreamingResponse, - AsyncTokenWithStreamingResponse, + TokenResource, + AsyncTokenResource, + TokenResourceWithRawResponse, + AsyncTokenResourceWithRawResponse, + TokenResourceWithStreamingResponse, + AsyncTokenResourceWithStreamingResponse, ) from .tunnels import ( - Tunnels, - AsyncTunnels, - TunnelsWithRawResponse, - AsyncTunnelsWithRawResponse, - TunnelsWithStreamingResponse, - AsyncTunnelsWithStreamingResponse, + TunnelsResource, + AsyncTunnelsResource, + TunnelsResourceWithRawResponse, + AsyncTunnelsResourceWithRawResponse, + TunnelsResourceWithStreamingResponse, + AsyncTunnelsResourceWithStreamingResponse, ) from .connectors import ( - Connectors, - AsyncConnectors, - ConnectorsWithRawResponse, - AsyncConnectorsWithRawResponse, - ConnectorsWithStreamingResponse, - AsyncConnectorsWithStreamingResponse, + ConnectorsResource, + AsyncConnectorsResource, + ConnectorsResourceWithRawResponse, + AsyncConnectorsResourceWithRawResponse, + ConnectorsResourceWithStreamingResponse, + AsyncConnectorsResourceWithStreamingResponse, ) from .management import ( - Management, - AsyncManagement, - ManagementWithRawResponse, - AsyncManagementWithRawResponse, - ManagementWithStreamingResponse, - AsyncManagementWithStreamingResponse, + ManagementResource, + AsyncManagementResource, + ManagementResourceWithRawResponse, + AsyncManagementResourceWithRawResponse, + ManagementResourceWithStreamingResponse, + AsyncManagementResourceWithStreamingResponse, ) from .connections import ( - Connections, - AsyncConnections, - ConnectionsWithRawResponse, - AsyncConnectionsWithRawResponse, - ConnectionsWithStreamingResponse, - AsyncConnectionsWithStreamingResponse, + ConnectionsResource, + AsyncConnectionsResource, + ConnectionsResourceWithRawResponse, + AsyncConnectionsResourceWithRawResponse, + ConnectionsResourceWithStreamingResponse, + AsyncConnectionsResourceWithStreamingResponse, ) from .configurations import ( - Configurations, - AsyncConfigurations, - ConfigurationsWithRawResponse, - AsyncConfigurationsWithRawResponse, - ConfigurationsWithStreamingResponse, - AsyncConfigurationsWithStreamingResponse, + ConfigurationsResource, + AsyncConfigurationsResource, + ConfigurationsResourceWithRawResponse, + AsyncConfigurationsResourceWithRawResponse, + ConfigurationsResourceWithStreamingResponse, + AsyncConfigurationsResourceWithStreamingResponse, ) __all__ = [ - "Configurations", - "AsyncConfigurations", - "ConfigurationsWithRawResponse", - "AsyncConfigurationsWithRawResponse", - "ConfigurationsWithStreamingResponse", - "AsyncConfigurationsWithStreamingResponse", - "Connections", - "AsyncConnections", - "ConnectionsWithRawResponse", - "AsyncConnectionsWithRawResponse", - "ConnectionsWithStreamingResponse", - "AsyncConnectionsWithStreamingResponse", - "Token", - "AsyncToken", - "TokenWithRawResponse", - "AsyncTokenWithRawResponse", - "TokenWithStreamingResponse", - "AsyncTokenWithStreamingResponse", - "Connectors", - "AsyncConnectors", - "ConnectorsWithRawResponse", - "AsyncConnectorsWithRawResponse", - "ConnectorsWithStreamingResponse", - "AsyncConnectorsWithStreamingResponse", - "Management", - "AsyncManagement", - "ManagementWithRawResponse", - "AsyncManagementWithRawResponse", - "ManagementWithStreamingResponse", - "AsyncManagementWithStreamingResponse", - "Tunnels", - "AsyncTunnels", - "TunnelsWithRawResponse", - "AsyncTunnelsWithRawResponse", - "TunnelsWithStreamingResponse", - "AsyncTunnelsWithStreamingResponse", + "ConfigurationsResource", + "AsyncConfigurationsResource", + "ConfigurationsResourceWithRawResponse", + "AsyncConfigurationsResourceWithRawResponse", + "ConfigurationsResourceWithStreamingResponse", + "AsyncConfigurationsResourceWithStreamingResponse", + "ConnectionsResource", + "AsyncConnectionsResource", + "ConnectionsResourceWithRawResponse", + "AsyncConnectionsResourceWithRawResponse", + "ConnectionsResourceWithStreamingResponse", + "AsyncConnectionsResourceWithStreamingResponse", + "TokenResource", + "AsyncTokenResource", + "TokenResourceWithRawResponse", + "AsyncTokenResourceWithRawResponse", + "TokenResourceWithStreamingResponse", + "AsyncTokenResourceWithStreamingResponse", + "ConnectorsResource", + "AsyncConnectorsResource", + "ConnectorsResourceWithRawResponse", + "AsyncConnectorsResourceWithRawResponse", + "ConnectorsResourceWithStreamingResponse", + "AsyncConnectorsResourceWithStreamingResponse", + "ManagementResource", + "AsyncManagementResource", + "ManagementResourceWithRawResponse", + "AsyncManagementResourceWithRawResponse", + "ManagementResourceWithStreamingResponse", + "AsyncManagementResourceWithStreamingResponse", + "TunnelsResource", + "AsyncTunnelsResource", + "TunnelsResourceWithRawResponse", + "AsyncTunnelsResourceWithRawResponse", + "TunnelsResourceWithStreamingResponse", + "AsyncTunnelsResourceWithStreamingResponse", ] diff --git a/src/cloudflare/resources/zero_trust/tunnels/configurations.py b/src/cloudflare/resources/zero_trust/tunnels/configurations.py index f83b800a80d..c120a5e7be4 100644 --- a/src/cloudflare/resources/zero_trust/tunnels/configurations.py +++ b/src/cloudflare/resources/zero_trust/tunnels/configurations.py @@ -27,17 +27,17 @@ from ....types.zero_trust.tunnels.configuration_get_response import ConfigurationGetResponse from ....types.zero_trust.tunnels.configuration_update_response import ConfigurationUpdateResponse -__all__ = ["Configurations", "AsyncConfigurations"] +__all__ = ["ConfigurationsResource", "AsyncConfigurationsResource"] -class Configurations(SyncAPIResource): +class ConfigurationsResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> ConfigurationsWithRawResponse: - return ConfigurationsWithRawResponse(self) + def with_raw_response(self) -> ConfigurationsResourceWithRawResponse: + return ConfigurationsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> ConfigurationsWithStreamingResponse: - return ConfigurationsWithStreamingResponse(self) + def with_streaming_response(self) -> ConfigurationsResourceWithStreamingResponse: + return ConfigurationsResourceWithStreamingResponse(self) def update( self, @@ -142,14 +142,14 @@ def get( ) -class AsyncConfigurations(AsyncAPIResource): +class AsyncConfigurationsResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncConfigurationsWithRawResponse: - return AsyncConfigurationsWithRawResponse(self) + def with_raw_response(self) -> AsyncConfigurationsResourceWithRawResponse: + return AsyncConfigurationsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncConfigurationsWithStreamingResponse: - return AsyncConfigurationsWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncConfigurationsResourceWithStreamingResponse: + return AsyncConfigurationsResourceWithStreamingResponse(self) async def update( self, @@ -256,8 +256,8 @@ async def get( ) -class ConfigurationsWithRawResponse: - def __init__(self, configurations: Configurations) -> None: +class ConfigurationsResourceWithRawResponse: + def __init__(self, configurations: ConfigurationsResource) -> None: self._configurations = configurations self.update = to_raw_response_wrapper( @@ -268,8 +268,8 @@ def __init__(self, configurations: Configurations) -> None: ) -class AsyncConfigurationsWithRawResponse: - def __init__(self, configurations: AsyncConfigurations) -> None: +class AsyncConfigurationsResourceWithRawResponse: + def __init__(self, configurations: AsyncConfigurationsResource) -> None: self._configurations = configurations self.update = async_to_raw_response_wrapper( @@ -280,8 +280,8 @@ def __init__(self, configurations: AsyncConfigurations) -> None: ) -class ConfigurationsWithStreamingResponse: - def __init__(self, configurations: Configurations) -> None: +class ConfigurationsResourceWithStreamingResponse: + def __init__(self, configurations: ConfigurationsResource) -> None: self._configurations = configurations self.update = to_streamed_response_wrapper( @@ -292,8 +292,8 @@ def __init__(self, configurations: Configurations) -> None: ) -class AsyncConfigurationsWithStreamingResponse: - def __init__(self, configurations: AsyncConfigurations) -> None: +class AsyncConfigurationsResourceWithStreamingResponse: + def __init__(self, configurations: AsyncConfigurationsResource) -> None: self._configurations = configurations self.update = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/zero_trust/tunnels/connections.py b/src/cloudflare/resources/zero_trust/tunnels/connections.py index a91fdd17497..f0b505d8e83 100644 --- a/src/cloudflare/resources/zero_trust/tunnels/connections.py +++ b/src/cloudflare/resources/zero_trust/tunnels/connections.py @@ -27,17 +27,17 @@ from ....types.zero_trust.tunnels.connection_get_response import ConnectionGetResponse from ....types.zero_trust.tunnels.connection_delete_response import ConnectionDeleteResponse -__all__ = ["Connections", "AsyncConnections"] +__all__ = ["ConnectionsResource", "AsyncConnectionsResource"] -class Connections(SyncAPIResource): +class ConnectionsResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> ConnectionsWithRawResponse: - return ConnectionsWithRawResponse(self) + def with_raw_response(self) -> ConnectionsResourceWithRawResponse: + return ConnectionsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> ConnectionsWithStreamingResponse: - return ConnectionsWithStreamingResponse(self) + def with_streaming_response(self) -> ConnectionsResourceWithStreamingResponse: + return ConnectionsResourceWithStreamingResponse(self) def delete( self, @@ -137,14 +137,14 @@ def get( ) -class AsyncConnections(AsyncAPIResource): +class AsyncConnectionsResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncConnectionsWithRawResponse: - return AsyncConnectionsWithRawResponse(self) + def with_raw_response(self) -> AsyncConnectionsResourceWithRawResponse: + return AsyncConnectionsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncConnectionsWithStreamingResponse: - return AsyncConnectionsWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncConnectionsResourceWithStreamingResponse: + return AsyncConnectionsResourceWithStreamingResponse(self) async def delete( self, @@ -244,8 +244,8 @@ async def get( ) -class ConnectionsWithRawResponse: - def __init__(self, connections: Connections) -> None: +class ConnectionsResourceWithRawResponse: + def __init__(self, connections: ConnectionsResource) -> None: self._connections = connections self.delete = to_raw_response_wrapper( @@ -256,8 +256,8 @@ def __init__(self, connections: Connections) -> None: ) -class AsyncConnectionsWithRawResponse: - def __init__(self, connections: AsyncConnections) -> None: +class AsyncConnectionsResourceWithRawResponse: + def __init__(self, connections: AsyncConnectionsResource) -> None: self._connections = connections self.delete = async_to_raw_response_wrapper( @@ -268,8 +268,8 @@ def __init__(self, connections: AsyncConnections) -> None: ) -class ConnectionsWithStreamingResponse: - def __init__(self, connections: Connections) -> None: +class ConnectionsResourceWithStreamingResponse: + def __init__(self, connections: ConnectionsResource) -> None: self._connections = connections self.delete = to_streamed_response_wrapper( @@ -280,8 +280,8 @@ def __init__(self, connections: Connections) -> None: ) -class AsyncConnectionsWithStreamingResponse: - def __init__(self, connections: AsyncConnections) -> None: +class AsyncConnectionsResourceWithStreamingResponse: + def __init__(self, connections: AsyncConnectionsResource) -> None: self._connections = connections self.delete = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/zero_trust/tunnels/connectors.py b/src/cloudflare/resources/zero_trust/tunnels/connectors.py index b8af6c8d823..808e77b4305 100644 --- a/src/cloudflare/resources/zero_trust/tunnels/connectors.py +++ b/src/cloudflare/resources/zero_trust/tunnels/connectors.py @@ -21,17 +21,17 @@ ) from ....types.zero_trust.tunnels.client import Client -__all__ = ["Connectors", "AsyncConnectors"] +__all__ = ["ConnectorsResource", "AsyncConnectorsResource"] -class Connectors(SyncAPIResource): +class ConnectorsResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> ConnectorsWithRawResponse: - return ConnectorsWithRawResponse(self) + def with_raw_response(self) -> ConnectorsResourceWithRawResponse: + return ConnectorsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> ConnectorsWithStreamingResponse: - return ConnectorsWithStreamingResponse(self) + def with_streaming_response(self) -> ConnectorsResourceWithStreamingResponse: + return ConnectorsResourceWithStreamingResponse(self) def get( self, @@ -83,14 +83,14 @@ def get( ) -class AsyncConnectors(AsyncAPIResource): +class AsyncConnectorsResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncConnectorsWithRawResponse: - return AsyncConnectorsWithRawResponse(self) + def with_raw_response(self) -> AsyncConnectorsResourceWithRawResponse: + return AsyncConnectorsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncConnectorsWithStreamingResponse: - return AsyncConnectorsWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncConnectorsResourceWithStreamingResponse: + return AsyncConnectorsResourceWithStreamingResponse(self) async def get( self, @@ -142,8 +142,8 @@ async def get( ) -class ConnectorsWithRawResponse: - def __init__(self, connectors: Connectors) -> None: +class ConnectorsResourceWithRawResponse: + def __init__(self, connectors: ConnectorsResource) -> None: self._connectors = connectors self.get = to_raw_response_wrapper( @@ -151,8 +151,8 @@ def __init__(self, connectors: Connectors) -> None: ) -class AsyncConnectorsWithRawResponse: - def __init__(self, connectors: AsyncConnectors) -> None: +class AsyncConnectorsResourceWithRawResponse: + def __init__(self, connectors: AsyncConnectorsResource) -> None: self._connectors = connectors self.get = async_to_raw_response_wrapper( @@ -160,8 +160,8 @@ def __init__(self, connectors: AsyncConnectors) -> None: ) -class ConnectorsWithStreamingResponse: - def __init__(self, connectors: Connectors) -> None: +class ConnectorsResourceWithStreamingResponse: + def __init__(self, connectors: ConnectorsResource) -> None: self._connectors = connectors self.get = to_streamed_response_wrapper( @@ -169,8 +169,8 @@ def __init__(self, connectors: Connectors) -> None: ) -class AsyncConnectorsWithStreamingResponse: - def __init__(self, connectors: AsyncConnectors) -> None: +class AsyncConnectorsResourceWithStreamingResponse: + def __init__(self, connectors: AsyncConnectorsResource) -> None: self._connectors = connectors self.get = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/zero_trust/tunnels/management.py b/src/cloudflare/resources/zero_trust/tunnels/management.py index fbc186858d9..4f25c400020 100644 --- a/src/cloudflare/resources/zero_trust/tunnels/management.py +++ b/src/cloudflare/resources/zero_trust/tunnels/management.py @@ -27,17 +27,17 @@ from ....types.zero_trust.tunnels import management_create_params from ....types.zero_trust.tunnels.management_create_response import ManagementCreateResponse -__all__ = ["Management", "AsyncManagement"] +__all__ = ["ManagementResource", "AsyncManagementResource"] -class Management(SyncAPIResource): +class ManagementResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> ManagementWithRawResponse: - return ManagementWithRawResponse(self) + def with_raw_response(self) -> ManagementResourceWithRawResponse: + return ManagementResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> ManagementWithStreamingResponse: - return ManagementWithStreamingResponse(self) + def with_streaming_response(self) -> ManagementResourceWithStreamingResponse: + return ManagementResourceWithStreamingResponse(self) def create( self, @@ -93,14 +93,14 @@ def create( ) -class AsyncManagement(AsyncAPIResource): +class AsyncManagementResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncManagementWithRawResponse: - return AsyncManagementWithRawResponse(self) + def with_raw_response(self) -> AsyncManagementResourceWithRawResponse: + return AsyncManagementResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncManagementWithStreamingResponse: - return AsyncManagementWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncManagementResourceWithStreamingResponse: + return AsyncManagementResourceWithStreamingResponse(self) async def create( self, @@ -158,8 +158,8 @@ async def create( ) -class ManagementWithRawResponse: - def __init__(self, management: Management) -> None: +class ManagementResourceWithRawResponse: + def __init__(self, management: ManagementResource) -> None: self._management = management self.create = to_raw_response_wrapper( @@ -167,8 +167,8 @@ def __init__(self, management: Management) -> None: ) -class AsyncManagementWithRawResponse: - def __init__(self, management: AsyncManagement) -> None: +class AsyncManagementResourceWithRawResponse: + def __init__(self, management: AsyncManagementResource) -> None: self._management = management self.create = async_to_raw_response_wrapper( @@ -176,8 +176,8 @@ def __init__(self, management: AsyncManagement) -> None: ) -class ManagementWithStreamingResponse: - def __init__(self, management: Management) -> None: +class ManagementResourceWithStreamingResponse: + def __init__(self, management: ManagementResource) -> None: self._management = management self.create = to_streamed_response_wrapper( @@ -185,8 +185,8 @@ def __init__(self, management: Management) -> None: ) -class AsyncManagementWithStreamingResponse: - def __init__(self, management: AsyncManagement) -> None: +class AsyncManagementResourceWithStreamingResponse: + def __init__(self, management: AsyncManagementResource) -> None: self._management = management self.create = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/zero_trust/tunnels/token.py b/src/cloudflare/resources/zero_trust/tunnels/token.py index e8e21517d40..944e0d9b817 100644 --- a/src/cloudflare/resources/zero_trust/tunnels/token.py +++ b/src/cloudflare/resources/zero_trust/tunnels/token.py @@ -21,17 +21,17 @@ ) from ....types.zero_trust.tunnels.token_get_response import TokenGetResponse -__all__ = ["Token", "AsyncToken"] +__all__ = ["TokenResource", "AsyncTokenResource"] -class Token(SyncAPIResource): +class TokenResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> TokenWithRawResponse: - return TokenWithRawResponse(self) + def with_raw_response(self) -> TokenResourceWithRawResponse: + return TokenResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> TokenWithStreamingResponse: - return TokenWithStreamingResponse(self) + def with_streaming_response(self) -> TokenResourceWithStreamingResponse: + return TokenResourceWithStreamingResponse(self) def get( self, @@ -83,14 +83,14 @@ def get( ) -class AsyncToken(AsyncAPIResource): +class AsyncTokenResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncTokenWithRawResponse: - return AsyncTokenWithRawResponse(self) + def with_raw_response(self) -> AsyncTokenResourceWithRawResponse: + return AsyncTokenResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncTokenWithStreamingResponse: - return AsyncTokenWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncTokenResourceWithStreamingResponse: + return AsyncTokenResourceWithStreamingResponse(self) async def get( self, @@ -142,8 +142,8 @@ async def get( ) -class TokenWithRawResponse: - def __init__(self, token: Token) -> None: +class TokenResourceWithRawResponse: + def __init__(self, token: TokenResource) -> None: self._token = token self.get = to_raw_response_wrapper( @@ -151,8 +151,8 @@ def __init__(self, token: Token) -> None: ) -class AsyncTokenWithRawResponse: - def __init__(self, token: AsyncToken) -> None: +class AsyncTokenResourceWithRawResponse: + def __init__(self, token: AsyncTokenResource) -> None: self._token = token self.get = async_to_raw_response_wrapper( @@ -160,8 +160,8 @@ def __init__(self, token: AsyncToken) -> None: ) -class TokenWithStreamingResponse: - def __init__(self, token: Token) -> None: +class TokenResourceWithStreamingResponse: + def __init__(self, token: TokenResource) -> None: self._token = token self.get = to_streamed_response_wrapper( @@ -169,8 +169,8 @@ def __init__(self, token: Token) -> None: ) -class AsyncTokenWithStreamingResponse: - def __init__(self, token: AsyncToken) -> None: +class AsyncTokenResourceWithStreamingResponse: + def __init__(self, token: AsyncTokenResource) -> None: self._token = token self.get = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/zero_trust/tunnels/tunnels.py b/src/cloudflare/resources/zero_trust/tunnels/tunnels.py index b6e590910cb..7513cd0df48 100644 --- a/src/cloudflare/resources/zero_trust/tunnels/tunnels.py +++ b/src/cloudflare/resources/zero_trust/tunnels/tunnels.py @@ -8,12 +8,12 @@ import httpx from .token import ( - Token, - AsyncToken, - TokenWithRawResponse, - AsyncTokenWithRawResponse, - TokenWithStreamingResponse, - AsyncTokenWithStreamingResponse, + TokenResource, + AsyncTokenResource, + TokenResourceWithRawResponse, + AsyncTokenResourceWithRawResponse, + TokenResourceWithStreamingResponse, + AsyncTokenResourceWithStreamingResponse, ) from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven from ...._utils import ( @@ -22,28 +22,28 @@ ) from ...._compat import cached_property from .connectors import ( - Connectors, - AsyncConnectors, - ConnectorsWithRawResponse, - AsyncConnectorsWithRawResponse, - ConnectorsWithStreamingResponse, - AsyncConnectorsWithStreamingResponse, + ConnectorsResource, + AsyncConnectorsResource, + ConnectorsResourceWithRawResponse, + AsyncConnectorsResourceWithRawResponse, + ConnectorsResourceWithStreamingResponse, + AsyncConnectorsResourceWithStreamingResponse, ) from .management import ( - Management, - AsyncManagement, - ManagementWithRawResponse, - AsyncManagementWithRawResponse, - ManagementWithStreamingResponse, - AsyncManagementWithStreamingResponse, + ManagementResource, + AsyncManagementResource, + ManagementResourceWithRawResponse, + AsyncManagementResourceWithRawResponse, + ManagementResourceWithStreamingResponse, + AsyncManagementResourceWithStreamingResponse, ) from .connections import ( - Connections, - AsyncConnections, - ConnectionsWithRawResponse, - AsyncConnectionsWithRawResponse, - ConnectionsWithStreamingResponse, - AsyncConnectionsWithStreamingResponse, + ConnectionsResource, + AsyncConnectionsResource, + ConnectionsResourceWithRawResponse, + AsyncConnectionsResourceWithRawResponse, + ConnectionsResourceWithStreamingResponse, + AsyncConnectionsResourceWithStreamingResponse, ) from ...._resource import SyncAPIResource, AsyncAPIResource from ...._response import ( @@ -55,12 +55,12 @@ from ...._wrappers import ResultWrapper from ....pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray from .configurations import ( - Configurations, - AsyncConfigurations, - ConfigurationsWithRawResponse, - AsyncConfigurationsWithRawResponse, - ConfigurationsWithStreamingResponse, - AsyncConfigurationsWithStreamingResponse, + ConfigurationsResource, + AsyncConfigurationsResource, + ConfigurationsResourceWithRawResponse, + AsyncConfigurationsResourceWithRawResponse, + ConfigurationsResourceWithStreamingResponse, + AsyncConfigurationsResourceWithStreamingResponse, ) from ...._base_client import ( AsyncPaginator, @@ -73,37 +73,37 @@ from ....types.zero_trust.tunnel_create_response import TunnelCreateResponse from ....types.zero_trust.tunnel_delete_response import TunnelDeleteResponse -__all__ = ["Tunnels", "AsyncTunnels"] +__all__ = ["TunnelsResource", "AsyncTunnelsResource"] -class Tunnels(SyncAPIResource): +class TunnelsResource(SyncAPIResource): @cached_property - def configurations(self) -> Configurations: - return Configurations(self._client) + def configurations(self) -> ConfigurationsResource: + return ConfigurationsResource(self._client) @cached_property - def connections(self) -> Connections: - return Connections(self._client) + def connections(self) -> ConnectionsResource: + return ConnectionsResource(self._client) @cached_property - def token(self) -> Token: - return Token(self._client) + def token(self) -> TokenResource: + return TokenResource(self._client) @cached_property - def connectors(self) -> Connectors: - return Connectors(self._client) + def connectors(self) -> ConnectorsResource: + return ConnectorsResource(self._client) @cached_property - def management(self) -> Management: - return Management(self._client) + def management(self) -> ManagementResource: + return ManagementResource(self._client) @cached_property - def with_raw_response(self) -> TunnelsWithRawResponse: - return TunnelsWithRawResponse(self) + def with_raw_response(self) -> TunnelsResourceWithRawResponse: + return TunnelsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> TunnelsWithStreamingResponse: - return TunnelsWithStreamingResponse(self) + def with_streaming_response(self) -> TunnelsResourceWithStreamingResponse: + return TunnelsResourceWithStreamingResponse(self) def create( self, @@ -394,34 +394,34 @@ def get( ) -class AsyncTunnels(AsyncAPIResource): +class AsyncTunnelsResource(AsyncAPIResource): @cached_property - def configurations(self) -> AsyncConfigurations: - return AsyncConfigurations(self._client) + def configurations(self) -> AsyncConfigurationsResource: + return AsyncConfigurationsResource(self._client) @cached_property - def connections(self) -> AsyncConnections: - return AsyncConnections(self._client) + def connections(self) -> AsyncConnectionsResource: + return AsyncConnectionsResource(self._client) @cached_property - def token(self) -> AsyncToken: - return AsyncToken(self._client) + def token(self) -> AsyncTokenResource: + return AsyncTokenResource(self._client) @cached_property - def connectors(self) -> AsyncConnectors: - return AsyncConnectors(self._client) + def connectors(self) -> AsyncConnectorsResource: + return AsyncConnectorsResource(self._client) @cached_property - def management(self) -> AsyncManagement: - return AsyncManagement(self._client) + def management(self) -> AsyncManagementResource: + return AsyncManagementResource(self._client) @cached_property - def with_raw_response(self) -> AsyncTunnelsWithRawResponse: - return AsyncTunnelsWithRawResponse(self) + def with_raw_response(self) -> AsyncTunnelsResourceWithRawResponse: + return AsyncTunnelsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncTunnelsWithStreamingResponse: - return AsyncTunnelsWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncTunnelsResourceWithStreamingResponse: + return AsyncTunnelsResourceWithStreamingResponse(self) async def create( self, @@ -712,8 +712,8 @@ async def get( ) -class TunnelsWithRawResponse: - def __init__(self, tunnels: Tunnels) -> None: +class TunnelsResourceWithRawResponse: + def __init__(self, tunnels: TunnelsResource) -> None: self._tunnels = tunnels self.create = to_raw_response_wrapper( @@ -733,28 +733,28 @@ def __init__(self, tunnels: Tunnels) -> None: ) @cached_property - def configurations(self) -> ConfigurationsWithRawResponse: - return ConfigurationsWithRawResponse(self._tunnels.configurations) + def configurations(self) -> ConfigurationsResourceWithRawResponse: + return ConfigurationsResourceWithRawResponse(self._tunnels.configurations) @cached_property - def connections(self) -> ConnectionsWithRawResponse: - return ConnectionsWithRawResponse(self._tunnels.connections) + def connections(self) -> ConnectionsResourceWithRawResponse: + return ConnectionsResourceWithRawResponse(self._tunnels.connections) @cached_property - def token(self) -> TokenWithRawResponse: - return TokenWithRawResponse(self._tunnels.token) + def token(self) -> TokenResourceWithRawResponse: + return TokenResourceWithRawResponse(self._tunnels.token) @cached_property - def connectors(self) -> ConnectorsWithRawResponse: - return ConnectorsWithRawResponse(self._tunnels.connectors) + def connectors(self) -> ConnectorsResourceWithRawResponse: + return ConnectorsResourceWithRawResponse(self._tunnels.connectors) @cached_property - def management(self) -> ManagementWithRawResponse: - return ManagementWithRawResponse(self._tunnels.management) + def management(self) -> ManagementResourceWithRawResponse: + return ManagementResourceWithRawResponse(self._tunnels.management) -class AsyncTunnelsWithRawResponse: - def __init__(self, tunnels: AsyncTunnels) -> None: +class AsyncTunnelsResourceWithRawResponse: + def __init__(self, tunnels: AsyncTunnelsResource) -> None: self._tunnels = tunnels self.create = async_to_raw_response_wrapper( @@ -774,28 +774,28 @@ def __init__(self, tunnels: AsyncTunnels) -> None: ) @cached_property - def configurations(self) -> AsyncConfigurationsWithRawResponse: - return AsyncConfigurationsWithRawResponse(self._tunnels.configurations) + def configurations(self) -> AsyncConfigurationsResourceWithRawResponse: + return AsyncConfigurationsResourceWithRawResponse(self._tunnels.configurations) @cached_property - def connections(self) -> AsyncConnectionsWithRawResponse: - return AsyncConnectionsWithRawResponse(self._tunnels.connections) + def connections(self) -> AsyncConnectionsResourceWithRawResponse: + return AsyncConnectionsResourceWithRawResponse(self._tunnels.connections) @cached_property - def token(self) -> AsyncTokenWithRawResponse: - return AsyncTokenWithRawResponse(self._tunnels.token) + def token(self) -> AsyncTokenResourceWithRawResponse: + return AsyncTokenResourceWithRawResponse(self._tunnels.token) @cached_property - def connectors(self) -> AsyncConnectorsWithRawResponse: - return AsyncConnectorsWithRawResponse(self._tunnels.connectors) + def connectors(self) -> AsyncConnectorsResourceWithRawResponse: + return AsyncConnectorsResourceWithRawResponse(self._tunnels.connectors) @cached_property - def management(self) -> AsyncManagementWithRawResponse: - return AsyncManagementWithRawResponse(self._tunnels.management) + def management(self) -> AsyncManagementResourceWithRawResponse: + return AsyncManagementResourceWithRawResponse(self._tunnels.management) -class TunnelsWithStreamingResponse: - def __init__(self, tunnels: Tunnels) -> None: +class TunnelsResourceWithStreamingResponse: + def __init__(self, tunnels: TunnelsResource) -> None: self._tunnels = tunnels self.create = to_streamed_response_wrapper( @@ -815,28 +815,28 @@ def __init__(self, tunnels: Tunnels) -> None: ) @cached_property - def configurations(self) -> ConfigurationsWithStreamingResponse: - return ConfigurationsWithStreamingResponse(self._tunnels.configurations) + def configurations(self) -> ConfigurationsResourceWithStreamingResponse: + return ConfigurationsResourceWithStreamingResponse(self._tunnels.configurations) @cached_property - def connections(self) -> ConnectionsWithStreamingResponse: - return ConnectionsWithStreamingResponse(self._tunnels.connections) + def connections(self) -> ConnectionsResourceWithStreamingResponse: + return ConnectionsResourceWithStreamingResponse(self._tunnels.connections) @cached_property - def token(self) -> TokenWithStreamingResponse: - return TokenWithStreamingResponse(self._tunnels.token) + def token(self) -> TokenResourceWithStreamingResponse: + return TokenResourceWithStreamingResponse(self._tunnels.token) @cached_property - def connectors(self) -> ConnectorsWithStreamingResponse: - return ConnectorsWithStreamingResponse(self._tunnels.connectors) + def connectors(self) -> ConnectorsResourceWithStreamingResponse: + return ConnectorsResourceWithStreamingResponse(self._tunnels.connectors) @cached_property - def management(self) -> ManagementWithStreamingResponse: - return ManagementWithStreamingResponse(self._tunnels.management) + def management(self) -> ManagementResourceWithStreamingResponse: + return ManagementResourceWithStreamingResponse(self._tunnels.management) -class AsyncTunnelsWithStreamingResponse: - def __init__(self, tunnels: AsyncTunnels) -> None: +class AsyncTunnelsResourceWithStreamingResponse: + def __init__(self, tunnels: AsyncTunnelsResource) -> None: self._tunnels = tunnels self.create = async_to_streamed_response_wrapper( @@ -856,21 +856,21 @@ def __init__(self, tunnels: AsyncTunnels) -> None: ) @cached_property - def configurations(self) -> AsyncConfigurationsWithStreamingResponse: - return AsyncConfigurationsWithStreamingResponse(self._tunnels.configurations) + def configurations(self) -> AsyncConfigurationsResourceWithStreamingResponse: + return AsyncConfigurationsResourceWithStreamingResponse(self._tunnels.configurations) @cached_property - def connections(self) -> AsyncConnectionsWithStreamingResponse: - return AsyncConnectionsWithStreamingResponse(self._tunnels.connections) + def connections(self) -> AsyncConnectionsResourceWithStreamingResponse: + return AsyncConnectionsResourceWithStreamingResponse(self._tunnels.connections) @cached_property - def token(self) -> AsyncTokenWithStreamingResponse: - return AsyncTokenWithStreamingResponse(self._tunnels.token) + def token(self) -> AsyncTokenResourceWithStreamingResponse: + return AsyncTokenResourceWithStreamingResponse(self._tunnels.token) @cached_property - def connectors(self) -> AsyncConnectorsWithStreamingResponse: - return AsyncConnectorsWithStreamingResponse(self._tunnels.connectors) + def connectors(self) -> AsyncConnectorsResourceWithStreamingResponse: + return AsyncConnectorsResourceWithStreamingResponse(self._tunnels.connectors) @cached_property - def management(self) -> AsyncManagementWithStreamingResponse: - return AsyncManagementWithStreamingResponse(self._tunnels.management) + def management(self) -> AsyncManagementResourceWithStreamingResponse: + return AsyncManagementResourceWithStreamingResponse(self._tunnels.management) diff --git a/src/cloudflare/resources/zero_trust/zero_trust.py b/src/cloudflare/resources/zero_trust/zero_trust.py index c305e8c341f..63aefc65ac1 100644 --- a/src/cloudflare/resources/zero_trust/zero_trust.py +++ b/src/cloudflare/resources/zero_trust/zero_trust.py @@ -3,438 +3,438 @@ from __future__ import annotations from .dex import ( - DEX, - AsyncDEX, - DEXWithRawResponse, - AsyncDEXWithRawResponse, - DEXWithStreamingResponse, - AsyncDEXWithStreamingResponse, + DEXResource, + AsyncDEXResource, + DEXResourceWithRawResponse, + AsyncDEXResourceWithRawResponse, + DEXResourceWithStreamingResponse, + AsyncDEXResourceWithStreamingResponse, ) from .dlp import ( - DLP, - AsyncDLP, - DLPWithRawResponse, - AsyncDLPWithRawResponse, - DLPWithStreamingResponse, - AsyncDLPWithStreamingResponse, + DLPResource, + AsyncDLPResource, + DLPResourceWithRawResponse, + AsyncDLPResourceWithRawResponse, + DLPResourceWithStreamingResponse, + AsyncDLPResourceWithStreamingResponse, ) from .seats import ( - Seats, - AsyncSeats, - SeatsWithRawResponse, - AsyncSeatsWithRawResponse, - SeatsWithStreamingResponse, - AsyncSeatsWithStreamingResponse, + SeatsResource, + AsyncSeatsResource, + SeatsResourceWithRawResponse, + AsyncSeatsResourceWithRawResponse, + SeatsResourceWithStreamingResponse, + AsyncSeatsResourceWithStreamingResponse, ) from .access import ( - Access, - AsyncAccess, - AccessWithRawResponse, - AsyncAccessWithRawResponse, - AccessWithStreamingResponse, - AsyncAccessWithStreamingResponse, + AccessResource, + AsyncAccessResource, + AccessResourceWithRawResponse, + AsyncAccessResourceWithRawResponse, + AccessResourceWithStreamingResponse, + AsyncAccessResourceWithStreamingResponse, ) from .devices import ( - Devices, - AsyncDevices, - DevicesWithRawResponse, - AsyncDevicesWithRawResponse, - DevicesWithStreamingResponse, - AsyncDevicesWithStreamingResponse, + DevicesResource, + AsyncDevicesResource, + DevicesResourceWithRawResponse, + AsyncDevicesResourceWithRawResponse, + DevicesResourceWithStreamingResponse, + AsyncDevicesResourceWithStreamingResponse, ) -from .dex.dex import DEX, AsyncDEX -from .dlp.dlp import DLP, AsyncDLP +from .dex.dex import DEXResource, AsyncDEXResource +from .dlp.dlp import DLPResource, AsyncDLPResource from .gateway import ( - Gateway, - AsyncGateway, - GatewayWithRawResponse, - AsyncGatewayWithRawResponse, - GatewayWithStreamingResponse, - AsyncGatewayWithStreamingResponse, + GatewayResource, + AsyncGatewayResource, + GatewayResourceWithRawResponse, + AsyncGatewayResourceWithRawResponse, + GatewayResourceWithStreamingResponse, + AsyncGatewayResourceWithStreamingResponse, ) from .tunnels import ( - Tunnels, - AsyncTunnels, - TunnelsWithRawResponse, - AsyncTunnelsWithRawResponse, - TunnelsWithStreamingResponse, - AsyncTunnelsWithStreamingResponse, + TunnelsResource, + AsyncTunnelsResource, + TunnelsResourceWithRawResponse, + AsyncTunnelsResourceWithRawResponse, + TunnelsResourceWithStreamingResponse, + AsyncTunnelsResourceWithStreamingResponse, ) from .networks import ( - Networks, - AsyncNetworks, - NetworksWithRawResponse, - AsyncNetworksWithRawResponse, - NetworksWithStreamingResponse, - AsyncNetworksWithStreamingResponse, + NetworksResource, + AsyncNetworksResource, + NetworksResourceWithRawResponse, + AsyncNetworksResourceWithRawResponse, + NetworksResourceWithStreamingResponse, + AsyncNetworksResourceWithStreamingResponse, ) from ..._compat import cached_property from ..._resource import SyncAPIResource, AsyncAPIResource from .risk_scoring import ( - RiskScoring, - AsyncRiskScoring, - RiskScoringWithRawResponse, - AsyncRiskScoringWithRawResponse, - RiskScoringWithStreamingResponse, - AsyncRiskScoringWithStreamingResponse, + RiskScoringResource, + AsyncRiskScoringResource, + RiskScoringResourceWithRawResponse, + AsyncRiskScoringResourceWithRawResponse, + RiskScoringResourceWithStreamingResponse, + AsyncRiskScoringResourceWithStreamingResponse, ) -from .access.access import Access, AsyncAccess +from .access.access import AccessResource, AsyncAccessResource from .organizations import ( - Organizations, - AsyncOrganizations, - OrganizationsWithRawResponse, - AsyncOrganizationsWithRawResponse, - OrganizationsWithStreamingResponse, - AsyncOrganizationsWithStreamingResponse, + OrganizationsResource, + AsyncOrganizationsResource, + OrganizationsResourceWithRawResponse, + AsyncOrganizationsResourceWithRawResponse, + OrganizationsResourceWithStreamingResponse, + AsyncOrganizationsResourceWithStreamingResponse, ) -from .devices.devices import Devices, AsyncDevices -from .gateway.gateway import Gateway, AsyncGateway -from .tunnels.tunnels import Tunnels, AsyncTunnels -from .networks.networks import Networks, AsyncNetworks +from .devices.devices import DevicesResource, AsyncDevicesResource +from .gateway.gateway import GatewayResource, AsyncGatewayResource +from .tunnels.tunnels import TunnelsResource, AsyncTunnelsResource +from .networks.networks import NetworksResource, AsyncNetworksResource from .identity_providers import ( - IdentityProviders, - AsyncIdentityProviders, - IdentityProvidersWithRawResponse, - AsyncIdentityProvidersWithRawResponse, - IdentityProvidersWithStreamingResponse, - AsyncIdentityProvidersWithStreamingResponse, + IdentityProvidersResource, + AsyncIdentityProvidersResource, + IdentityProvidersResourceWithRawResponse, + AsyncIdentityProvidersResourceWithRawResponse, + IdentityProvidersResourceWithStreamingResponse, + AsyncIdentityProvidersResourceWithStreamingResponse, ) from .connectivity_settings import ( - ConnectivitySettings, - AsyncConnectivitySettings, - ConnectivitySettingsWithRawResponse, - AsyncConnectivitySettingsWithRawResponse, - ConnectivitySettingsWithStreamingResponse, - AsyncConnectivitySettingsWithStreamingResponse, + ConnectivitySettingsResource, + AsyncConnectivitySettingsResource, + ConnectivitySettingsResourceWithRawResponse, + AsyncConnectivitySettingsResourceWithRawResponse, + ConnectivitySettingsResourceWithStreamingResponse, + AsyncConnectivitySettingsResourceWithStreamingResponse, ) -from .risk_scoring.risk_scoring import RiskScoring, AsyncRiskScoring +from .risk_scoring.risk_scoring import RiskScoringResource, AsyncRiskScoringResource -__all__ = ["ZeroTrust", "AsyncZeroTrust"] +__all__ = ["ZeroTrustResource", "AsyncZeroTrustResource"] -class ZeroTrust(SyncAPIResource): +class ZeroTrustResource(SyncAPIResource): @cached_property - def devices(self) -> Devices: - return Devices(self._client) + def devices(self) -> DevicesResource: + return DevicesResource(self._client) @cached_property - def identity_providers(self) -> IdentityProviders: - return IdentityProviders(self._client) + def identity_providers(self) -> IdentityProvidersResource: + return IdentityProvidersResource(self._client) @cached_property - def organizations(self) -> Organizations: - return Organizations(self._client) + def organizations(self) -> OrganizationsResource: + return OrganizationsResource(self._client) @cached_property - def seats(self) -> Seats: - return Seats(self._client) + def seats(self) -> SeatsResource: + return SeatsResource(self._client) @cached_property - def access(self) -> Access: - return Access(self._client) + def access(self) -> AccessResource: + return AccessResource(self._client) @cached_property - def dex(self) -> DEX: - return DEX(self._client) + def dex(self) -> DEXResource: + return DEXResource(self._client) @cached_property - def tunnels(self) -> Tunnels: - return Tunnels(self._client) + def tunnels(self) -> TunnelsResource: + return TunnelsResource(self._client) @cached_property - def connectivity_settings(self) -> ConnectivitySettings: - return ConnectivitySettings(self._client) + def connectivity_settings(self) -> ConnectivitySettingsResource: + return ConnectivitySettingsResource(self._client) @cached_property - def dlp(self) -> DLP: - return DLP(self._client) + def dlp(self) -> DLPResource: + return DLPResource(self._client) @cached_property - def gateway(self) -> Gateway: - return Gateway(self._client) + def gateway(self) -> GatewayResource: + return GatewayResource(self._client) @cached_property - def networks(self) -> Networks: - return Networks(self._client) + def networks(self) -> NetworksResource: + return NetworksResource(self._client) @cached_property - def risk_scoring(self) -> RiskScoring: - return RiskScoring(self._client) + def risk_scoring(self) -> RiskScoringResource: + return RiskScoringResource(self._client) @cached_property - def with_raw_response(self) -> ZeroTrustWithRawResponse: - return ZeroTrustWithRawResponse(self) + def with_raw_response(self) -> ZeroTrustResourceWithRawResponse: + return ZeroTrustResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> ZeroTrustWithStreamingResponse: - return ZeroTrustWithStreamingResponse(self) + def with_streaming_response(self) -> ZeroTrustResourceWithStreamingResponse: + return ZeroTrustResourceWithStreamingResponse(self) -class AsyncZeroTrust(AsyncAPIResource): +class AsyncZeroTrustResource(AsyncAPIResource): @cached_property - def devices(self) -> AsyncDevices: - return AsyncDevices(self._client) + def devices(self) -> AsyncDevicesResource: + return AsyncDevicesResource(self._client) @cached_property - def identity_providers(self) -> AsyncIdentityProviders: - return AsyncIdentityProviders(self._client) + def identity_providers(self) -> AsyncIdentityProvidersResource: + return AsyncIdentityProvidersResource(self._client) @cached_property - def organizations(self) -> AsyncOrganizations: - return AsyncOrganizations(self._client) + def organizations(self) -> AsyncOrganizationsResource: + return AsyncOrganizationsResource(self._client) @cached_property - def seats(self) -> AsyncSeats: - return AsyncSeats(self._client) + def seats(self) -> AsyncSeatsResource: + return AsyncSeatsResource(self._client) @cached_property - def access(self) -> AsyncAccess: - return AsyncAccess(self._client) + def access(self) -> AsyncAccessResource: + return AsyncAccessResource(self._client) @cached_property - def dex(self) -> AsyncDEX: - return AsyncDEX(self._client) + def dex(self) -> AsyncDEXResource: + return AsyncDEXResource(self._client) @cached_property - def tunnels(self) -> AsyncTunnels: - return AsyncTunnels(self._client) + def tunnels(self) -> AsyncTunnelsResource: + return AsyncTunnelsResource(self._client) @cached_property - def connectivity_settings(self) -> AsyncConnectivitySettings: - return AsyncConnectivitySettings(self._client) + def connectivity_settings(self) -> AsyncConnectivitySettingsResource: + return AsyncConnectivitySettingsResource(self._client) @cached_property - def dlp(self) -> AsyncDLP: - return AsyncDLP(self._client) + def dlp(self) -> AsyncDLPResource: + return AsyncDLPResource(self._client) @cached_property - def gateway(self) -> AsyncGateway: - return AsyncGateway(self._client) + def gateway(self) -> AsyncGatewayResource: + return AsyncGatewayResource(self._client) @cached_property - def networks(self) -> AsyncNetworks: - return AsyncNetworks(self._client) + def networks(self) -> AsyncNetworksResource: + return AsyncNetworksResource(self._client) @cached_property - def risk_scoring(self) -> AsyncRiskScoring: - return AsyncRiskScoring(self._client) + def risk_scoring(self) -> AsyncRiskScoringResource: + return AsyncRiskScoringResource(self._client) @cached_property - def with_raw_response(self) -> AsyncZeroTrustWithRawResponse: - return AsyncZeroTrustWithRawResponse(self) + def with_raw_response(self) -> AsyncZeroTrustResourceWithRawResponse: + return AsyncZeroTrustResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncZeroTrustWithStreamingResponse: - return AsyncZeroTrustWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncZeroTrustResourceWithStreamingResponse: + return AsyncZeroTrustResourceWithStreamingResponse(self) -class ZeroTrustWithRawResponse: - def __init__(self, zero_trust: ZeroTrust) -> None: +class ZeroTrustResourceWithRawResponse: + def __init__(self, zero_trust: ZeroTrustResource) -> None: self._zero_trust = zero_trust @cached_property - def devices(self) -> DevicesWithRawResponse: - return DevicesWithRawResponse(self._zero_trust.devices) + def devices(self) -> DevicesResourceWithRawResponse: + return DevicesResourceWithRawResponse(self._zero_trust.devices) @cached_property - def identity_providers(self) -> IdentityProvidersWithRawResponse: - return IdentityProvidersWithRawResponse(self._zero_trust.identity_providers) + def identity_providers(self) -> IdentityProvidersResourceWithRawResponse: + return IdentityProvidersResourceWithRawResponse(self._zero_trust.identity_providers) @cached_property - def organizations(self) -> OrganizationsWithRawResponse: - return OrganizationsWithRawResponse(self._zero_trust.organizations) + def organizations(self) -> OrganizationsResourceWithRawResponse: + return OrganizationsResourceWithRawResponse(self._zero_trust.organizations) @cached_property - def seats(self) -> SeatsWithRawResponse: - return SeatsWithRawResponse(self._zero_trust.seats) + def seats(self) -> SeatsResourceWithRawResponse: + return SeatsResourceWithRawResponse(self._zero_trust.seats) @cached_property - def access(self) -> AccessWithRawResponse: - return AccessWithRawResponse(self._zero_trust.access) + def access(self) -> AccessResourceWithRawResponse: + return AccessResourceWithRawResponse(self._zero_trust.access) @cached_property - def dex(self) -> DEXWithRawResponse: - return DEXWithRawResponse(self._zero_trust.dex) + def dex(self) -> DEXResourceWithRawResponse: + return DEXResourceWithRawResponse(self._zero_trust.dex) @cached_property - def tunnels(self) -> TunnelsWithRawResponse: - return TunnelsWithRawResponse(self._zero_trust.tunnels) + def tunnels(self) -> TunnelsResourceWithRawResponse: + return TunnelsResourceWithRawResponse(self._zero_trust.tunnels) @cached_property - def connectivity_settings(self) -> ConnectivitySettingsWithRawResponse: - return ConnectivitySettingsWithRawResponse(self._zero_trust.connectivity_settings) + def connectivity_settings(self) -> ConnectivitySettingsResourceWithRawResponse: + return ConnectivitySettingsResourceWithRawResponse(self._zero_trust.connectivity_settings) @cached_property - def dlp(self) -> DLPWithRawResponse: - return DLPWithRawResponse(self._zero_trust.dlp) + def dlp(self) -> DLPResourceWithRawResponse: + return DLPResourceWithRawResponse(self._zero_trust.dlp) @cached_property - def gateway(self) -> GatewayWithRawResponse: - return GatewayWithRawResponse(self._zero_trust.gateway) + def gateway(self) -> GatewayResourceWithRawResponse: + return GatewayResourceWithRawResponse(self._zero_trust.gateway) @cached_property - def networks(self) -> NetworksWithRawResponse: - return NetworksWithRawResponse(self._zero_trust.networks) + def networks(self) -> NetworksResourceWithRawResponse: + return NetworksResourceWithRawResponse(self._zero_trust.networks) @cached_property - def risk_scoring(self) -> RiskScoringWithRawResponse: - return RiskScoringWithRawResponse(self._zero_trust.risk_scoring) + def risk_scoring(self) -> RiskScoringResourceWithRawResponse: + return RiskScoringResourceWithRawResponse(self._zero_trust.risk_scoring) -class AsyncZeroTrustWithRawResponse: - def __init__(self, zero_trust: AsyncZeroTrust) -> None: +class AsyncZeroTrustResourceWithRawResponse: + def __init__(self, zero_trust: AsyncZeroTrustResource) -> None: self._zero_trust = zero_trust @cached_property - def devices(self) -> AsyncDevicesWithRawResponse: - return AsyncDevicesWithRawResponse(self._zero_trust.devices) + def devices(self) -> AsyncDevicesResourceWithRawResponse: + return AsyncDevicesResourceWithRawResponse(self._zero_trust.devices) @cached_property - def identity_providers(self) -> AsyncIdentityProvidersWithRawResponse: - return AsyncIdentityProvidersWithRawResponse(self._zero_trust.identity_providers) + def identity_providers(self) -> AsyncIdentityProvidersResourceWithRawResponse: + return AsyncIdentityProvidersResourceWithRawResponse(self._zero_trust.identity_providers) @cached_property - def organizations(self) -> AsyncOrganizationsWithRawResponse: - return AsyncOrganizationsWithRawResponse(self._zero_trust.organizations) + def organizations(self) -> AsyncOrganizationsResourceWithRawResponse: + return AsyncOrganizationsResourceWithRawResponse(self._zero_trust.organizations) @cached_property - def seats(self) -> AsyncSeatsWithRawResponse: - return AsyncSeatsWithRawResponse(self._zero_trust.seats) + def seats(self) -> AsyncSeatsResourceWithRawResponse: + return AsyncSeatsResourceWithRawResponse(self._zero_trust.seats) @cached_property - def access(self) -> AsyncAccessWithRawResponse: - return AsyncAccessWithRawResponse(self._zero_trust.access) + def access(self) -> AsyncAccessResourceWithRawResponse: + return AsyncAccessResourceWithRawResponse(self._zero_trust.access) @cached_property - def dex(self) -> AsyncDEXWithRawResponse: - return AsyncDEXWithRawResponse(self._zero_trust.dex) + def dex(self) -> AsyncDEXResourceWithRawResponse: + return AsyncDEXResourceWithRawResponse(self._zero_trust.dex) @cached_property - def tunnels(self) -> AsyncTunnelsWithRawResponse: - return AsyncTunnelsWithRawResponse(self._zero_trust.tunnels) + def tunnels(self) -> AsyncTunnelsResourceWithRawResponse: + return AsyncTunnelsResourceWithRawResponse(self._zero_trust.tunnels) @cached_property - def connectivity_settings(self) -> AsyncConnectivitySettingsWithRawResponse: - return AsyncConnectivitySettingsWithRawResponse(self._zero_trust.connectivity_settings) + def connectivity_settings(self) -> AsyncConnectivitySettingsResourceWithRawResponse: + return AsyncConnectivitySettingsResourceWithRawResponse(self._zero_trust.connectivity_settings) @cached_property - def dlp(self) -> AsyncDLPWithRawResponse: - return AsyncDLPWithRawResponse(self._zero_trust.dlp) + def dlp(self) -> AsyncDLPResourceWithRawResponse: + return AsyncDLPResourceWithRawResponse(self._zero_trust.dlp) @cached_property - def gateway(self) -> AsyncGatewayWithRawResponse: - return AsyncGatewayWithRawResponse(self._zero_trust.gateway) + def gateway(self) -> AsyncGatewayResourceWithRawResponse: + return AsyncGatewayResourceWithRawResponse(self._zero_trust.gateway) @cached_property - def networks(self) -> AsyncNetworksWithRawResponse: - return AsyncNetworksWithRawResponse(self._zero_trust.networks) + def networks(self) -> AsyncNetworksResourceWithRawResponse: + return AsyncNetworksResourceWithRawResponse(self._zero_trust.networks) @cached_property - def risk_scoring(self) -> AsyncRiskScoringWithRawResponse: - return AsyncRiskScoringWithRawResponse(self._zero_trust.risk_scoring) + def risk_scoring(self) -> AsyncRiskScoringResourceWithRawResponse: + return AsyncRiskScoringResourceWithRawResponse(self._zero_trust.risk_scoring) -class ZeroTrustWithStreamingResponse: - def __init__(self, zero_trust: ZeroTrust) -> None: +class ZeroTrustResourceWithStreamingResponse: + def __init__(self, zero_trust: ZeroTrustResource) -> None: self._zero_trust = zero_trust @cached_property - def devices(self) -> DevicesWithStreamingResponse: - return DevicesWithStreamingResponse(self._zero_trust.devices) + def devices(self) -> DevicesResourceWithStreamingResponse: + return DevicesResourceWithStreamingResponse(self._zero_trust.devices) @cached_property - def identity_providers(self) -> IdentityProvidersWithStreamingResponse: - return IdentityProvidersWithStreamingResponse(self._zero_trust.identity_providers) + def identity_providers(self) -> IdentityProvidersResourceWithStreamingResponse: + return IdentityProvidersResourceWithStreamingResponse(self._zero_trust.identity_providers) @cached_property - def organizations(self) -> OrganizationsWithStreamingResponse: - return OrganizationsWithStreamingResponse(self._zero_trust.organizations) + def organizations(self) -> OrganizationsResourceWithStreamingResponse: + return OrganizationsResourceWithStreamingResponse(self._zero_trust.organizations) @cached_property - def seats(self) -> SeatsWithStreamingResponse: - return SeatsWithStreamingResponse(self._zero_trust.seats) + def seats(self) -> SeatsResourceWithStreamingResponse: + return SeatsResourceWithStreamingResponse(self._zero_trust.seats) @cached_property - def access(self) -> AccessWithStreamingResponse: - return AccessWithStreamingResponse(self._zero_trust.access) + def access(self) -> AccessResourceWithStreamingResponse: + return AccessResourceWithStreamingResponse(self._zero_trust.access) @cached_property - def dex(self) -> DEXWithStreamingResponse: - return DEXWithStreamingResponse(self._zero_trust.dex) + def dex(self) -> DEXResourceWithStreamingResponse: + return DEXResourceWithStreamingResponse(self._zero_trust.dex) @cached_property - def tunnels(self) -> TunnelsWithStreamingResponse: - return TunnelsWithStreamingResponse(self._zero_trust.tunnels) + def tunnels(self) -> TunnelsResourceWithStreamingResponse: + return TunnelsResourceWithStreamingResponse(self._zero_trust.tunnels) @cached_property - def connectivity_settings(self) -> ConnectivitySettingsWithStreamingResponse: - return ConnectivitySettingsWithStreamingResponse(self._zero_trust.connectivity_settings) + def connectivity_settings(self) -> ConnectivitySettingsResourceWithStreamingResponse: + return ConnectivitySettingsResourceWithStreamingResponse(self._zero_trust.connectivity_settings) @cached_property - def dlp(self) -> DLPWithStreamingResponse: - return DLPWithStreamingResponse(self._zero_trust.dlp) + def dlp(self) -> DLPResourceWithStreamingResponse: + return DLPResourceWithStreamingResponse(self._zero_trust.dlp) @cached_property - def gateway(self) -> GatewayWithStreamingResponse: - return GatewayWithStreamingResponse(self._zero_trust.gateway) + def gateway(self) -> GatewayResourceWithStreamingResponse: + return GatewayResourceWithStreamingResponse(self._zero_trust.gateway) @cached_property - def networks(self) -> NetworksWithStreamingResponse: - return NetworksWithStreamingResponse(self._zero_trust.networks) + def networks(self) -> NetworksResourceWithStreamingResponse: + return NetworksResourceWithStreamingResponse(self._zero_trust.networks) @cached_property - def risk_scoring(self) -> RiskScoringWithStreamingResponse: - return RiskScoringWithStreamingResponse(self._zero_trust.risk_scoring) + def risk_scoring(self) -> RiskScoringResourceWithStreamingResponse: + return RiskScoringResourceWithStreamingResponse(self._zero_trust.risk_scoring) -class AsyncZeroTrustWithStreamingResponse: - def __init__(self, zero_trust: AsyncZeroTrust) -> None: +class AsyncZeroTrustResourceWithStreamingResponse: + def __init__(self, zero_trust: AsyncZeroTrustResource) -> None: self._zero_trust = zero_trust @cached_property - def devices(self) -> AsyncDevicesWithStreamingResponse: - return AsyncDevicesWithStreamingResponse(self._zero_trust.devices) + def devices(self) -> AsyncDevicesResourceWithStreamingResponse: + return AsyncDevicesResourceWithStreamingResponse(self._zero_trust.devices) @cached_property - def identity_providers(self) -> AsyncIdentityProvidersWithStreamingResponse: - return AsyncIdentityProvidersWithStreamingResponse(self._zero_trust.identity_providers) + def identity_providers(self) -> AsyncIdentityProvidersResourceWithStreamingResponse: + return AsyncIdentityProvidersResourceWithStreamingResponse(self._zero_trust.identity_providers) @cached_property - def organizations(self) -> AsyncOrganizationsWithStreamingResponse: - return AsyncOrganizationsWithStreamingResponse(self._zero_trust.organizations) + def organizations(self) -> AsyncOrganizationsResourceWithStreamingResponse: + return AsyncOrganizationsResourceWithStreamingResponse(self._zero_trust.organizations) @cached_property - def seats(self) -> AsyncSeatsWithStreamingResponse: - return AsyncSeatsWithStreamingResponse(self._zero_trust.seats) + def seats(self) -> AsyncSeatsResourceWithStreamingResponse: + return AsyncSeatsResourceWithStreamingResponse(self._zero_trust.seats) @cached_property - def access(self) -> AsyncAccessWithStreamingResponse: - return AsyncAccessWithStreamingResponse(self._zero_trust.access) + def access(self) -> AsyncAccessResourceWithStreamingResponse: + return AsyncAccessResourceWithStreamingResponse(self._zero_trust.access) @cached_property - def dex(self) -> AsyncDEXWithStreamingResponse: - return AsyncDEXWithStreamingResponse(self._zero_trust.dex) + def dex(self) -> AsyncDEXResourceWithStreamingResponse: + return AsyncDEXResourceWithStreamingResponse(self._zero_trust.dex) @cached_property - def tunnels(self) -> AsyncTunnelsWithStreamingResponse: - return AsyncTunnelsWithStreamingResponse(self._zero_trust.tunnels) + def tunnels(self) -> AsyncTunnelsResourceWithStreamingResponse: + return AsyncTunnelsResourceWithStreamingResponse(self._zero_trust.tunnels) @cached_property - def connectivity_settings(self) -> AsyncConnectivitySettingsWithStreamingResponse: - return AsyncConnectivitySettingsWithStreamingResponse(self._zero_trust.connectivity_settings) + def connectivity_settings(self) -> AsyncConnectivitySettingsResourceWithStreamingResponse: + return AsyncConnectivitySettingsResourceWithStreamingResponse(self._zero_trust.connectivity_settings) @cached_property - def dlp(self) -> AsyncDLPWithStreamingResponse: - return AsyncDLPWithStreamingResponse(self._zero_trust.dlp) + def dlp(self) -> AsyncDLPResourceWithStreamingResponse: + return AsyncDLPResourceWithStreamingResponse(self._zero_trust.dlp) @cached_property - def gateway(self) -> AsyncGatewayWithStreamingResponse: - return AsyncGatewayWithStreamingResponse(self._zero_trust.gateway) + def gateway(self) -> AsyncGatewayResourceWithStreamingResponse: + return AsyncGatewayResourceWithStreamingResponse(self._zero_trust.gateway) @cached_property - def networks(self) -> AsyncNetworksWithStreamingResponse: - return AsyncNetworksWithStreamingResponse(self._zero_trust.networks) + def networks(self) -> AsyncNetworksResourceWithStreamingResponse: + return AsyncNetworksResourceWithStreamingResponse(self._zero_trust.networks) @cached_property - def risk_scoring(self) -> AsyncRiskScoringWithStreamingResponse: - return AsyncRiskScoringWithStreamingResponse(self._zero_trust.risk_scoring) + def risk_scoring(self) -> AsyncRiskScoringResourceWithStreamingResponse: + return AsyncRiskScoringResourceWithStreamingResponse(self._zero_trust.risk_scoring) diff --git a/src/cloudflare/resources/zones/__init__.py b/src/cloudflare/resources/zones/__init__.py index 31c426c3266..fe02e52f39d 100644 --- a/src/cloudflare/resources/zones/__init__.py +++ b/src/cloudflare/resources/zones/__init__.py @@ -1,103 +1,103 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from .holds import ( - Holds, - AsyncHolds, - HoldsWithRawResponse, - AsyncHoldsWithRawResponse, - HoldsWithStreamingResponse, - AsyncHoldsWithStreamingResponse, + HoldsResource, + AsyncHoldsResource, + HoldsResourceWithRawResponse, + AsyncHoldsResourceWithRawResponse, + HoldsResourceWithStreamingResponse, + AsyncHoldsResourceWithStreamingResponse, ) from .zones import ( - Zones, - AsyncZones, - ZonesWithRawResponse, - AsyncZonesWithRawResponse, - ZonesWithStreamingResponse, - AsyncZonesWithStreamingResponse, + ZonesResource, + AsyncZonesResource, + ZonesResourceWithRawResponse, + AsyncZonesResourceWithRawResponse, + ZonesResourceWithStreamingResponse, + AsyncZonesResourceWithStreamingResponse, ) from .settings import ( - Settings, - AsyncSettings, - SettingsWithRawResponse, - AsyncSettingsWithRawResponse, - SettingsWithStreamingResponse, - AsyncSettingsWithStreamingResponse, + SettingsResource, + AsyncSettingsResource, + SettingsResourceWithRawResponse, + AsyncSettingsResourceWithRawResponse, + SettingsResourceWithStreamingResponse, + AsyncSettingsResourceWithStreamingResponse, ) from .dns_settings import ( - DNSSettings, - AsyncDNSSettings, - DNSSettingsWithRawResponse, - AsyncDNSSettingsWithRawResponse, - DNSSettingsWithStreamingResponse, - AsyncDNSSettingsWithStreamingResponse, + DNSSettingsResource, + AsyncDNSSettingsResource, + DNSSettingsResourceWithRawResponse, + AsyncDNSSettingsResourceWithRawResponse, + DNSSettingsResourceWithStreamingResponse, + AsyncDNSSettingsResourceWithStreamingResponse, ) from .subscriptions import ( - Subscriptions, - AsyncSubscriptions, - SubscriptionsWithRawResponse, - AsyncSubscriptionsWithRawResponse, - SubscriptionsWithStreamingResponse, - AsyncSubscriptionsWithStreamingResponse, + SubscriptionsResource, + AsyncSubscriptionsResource, + SubscriptionsResourceWithRawResponse, + AsyncSubscriptionsResourceWithRawResponse, + SubscriptionsResourceWithStreamingResponse, + AsyncSubscriptionsResourceWithStreamingResponse, ) from .activation_check import ( - ActivationCheck, - AsyncActivationCheck, - ActivationCheckWithRawResponse, - AsyncActivationCheckWithRawResponse, - ActivationCheckWithStreamingResponse, - AsyncActivationCheckWithStreamingResponse, + ActivationCheckResource, + AsyncActivationCheckResource, + ActivationCheckResourceWithRawResponse, + AsyncActivationCheckResourceWithRawResponse, + ActivationCheckResourceWithStreamingResponse, + AsyncActivationCheckResourceWithStreamingResponse, ) from .custom_nameservers import ( - CustomNameservers, - AsyncCustomNameservers, - CustomNameserversWithRawResponse, - AsyncCustomNameserversWithRawResponse, - CustomNameserversWithStreamingResponse, - AsyncCustomNameserversWithStreamingResponse, + CustomNameserversResource, + AsyncCustomNameserversResource, + CustomNameserversResourceWithRawResponse, + AsyncCustomNameserversResourceWithRawResponse, + CustomNameserversResourceWithStreamingResponse, + AsyncCustomNameserversResourceWithStreamingResponse, ) __all__ = [ - "ActivationCheck", - "AsyncActivationCheck", - "ActivationCheckWithRawResponse", - "AsyncActivationCheckWithRawResponse", - "ActivationCheckWithStreamingResponse", - "AsyncActivationCheckWithStreamingResponse", - "DNSSettings", - "AsyncDNSSettings", - "DNSSettingsWithRawResponse", - "AsyncDNSSettingsWithRawResponse", - "DNSSettingsWithStreamingResponse", - "AsyncDNSSettingsWithStreamingResponse", - "Settings", - "AsyncSettings", - "SettingsWithRawResponse", - "AsyncSettingsWithRawResponse", - "SettingsWithStreamingResponse", - "AsyncSettingsWithStreamingResponse", - "CustomNameservers", - "AsyncCustomNameservers", - "CustomNameserversWithRawResponse", - "AsyncCustomNameserversWithRawResponse", - "CustomNameserversWithStreamingResponse", - "AsyncCustomNameserversWithStreamingResponse", - "Holds", - "AsyncHolds", - "HoldsWithRawResponse", - "AsyncHoldsWithRawResponse", - "HoldsWithStreamingResponse", - "AsyncHoldsWithStreamingResponse", - "Subscriptions", - "AsyncSubscriptions", - "SubscriptionsWithRawResponse", - "AsyncSubscriptionsWithRawResponse", - "SubscriptionsWithStreamingResponse", - "AsyncSubscriptionsWithStreamingResponse", - "Zones", - "AsyncZones", - "ZonesWithRawResponse", - "AsyncZonesWithRawResponse", - "ZonesWithStreamingResponse", - "AsyncZonesWithStreamingResponse", + "ActivationCheckResource", + "AsyncActivationCheckResource", + "ActivationCheckResourceWithRawResponse", + "AsyncActivationCheckResourceWithRawResponse", + "ActivationCheckResourceWithStreamingResponse", + "AsyncActivationCheckResourceWithStreamingResponse", + "DNSSettingsResource", + "AsyncDNSSettingsResource", + "DNSSettingsResourceWithRawResponse", + "AsyncDNSSettingsResourceWithRawResponse", + "DNSSettingsResourceWithStreamingResponse", + "AsyncDNSSettingsResourceWithStreamingResponse", + "SettingsResource", + "AsyncSettingsResource", + "SettingsResourceWithRawResponse", + "AsyncSettingsResourceWithRawResponse", + "SettingsResourceWithStreamingResponse", + "AsyncSettingsResourceWithStreamingResponse", + "CustomNameserversResource", + "AsyncCustomNameserversResource", + "CustomNameserversResourceWithRawResponse", + "AsyncCustomNameserversResourceWithRawResponse", + "CustomNameserversResourceWithStreamingResponse", + "AsyncCustomNameserversResourceWithStreamingResponse", + "HoldsResource", + "AsyncHoldsResource", + "HoldsResourceWithRawResponse", + "AsyncHoldsResourceWithRawResponse", + "HoldsResourceWithStreamingResponse", + "AsyncHoldsResourceWithStreamingResponse", + "SubscriptionsResource", + "AsyncSubscriptionsResource", + "SubscriptionsResourceWithRawResponse", + "AsyncSubscriptionsResourceWithRawResponse", + "SubscriptionsResourceWithStreamingResponse", + "AsyncSubscriptionsResourceWithStreamingResponse", + "ZonesResource", + "AsyncZonesResource", + "ZonesResourceWithRawResponse", + "AsyncZonesResourceWithRawResponse", + "ZonesResourceWithStreamingResponse", + "AsyncZonesResourceWithStreamingResponse", ] diff --git a/src/cloudflare/resources/zones/activation_check.py b/src/cloudflare/resources/zones/activation_check.py index 0ba1dc39d5b..6a09257b5fe 100644 --- a/src/cloudflare/resources/zones/activation_check.py +++ b/src/cloudflare/resources/zones/activation_check.py @@ -21,17 +21,17 @@ ) from ...types.zones.activation_check_trigger_response import ActivationCheckTriggerResponse -__all__ = ["ActivationCheck", "AsyncActivationCheck"] +__all__ = ["ActivationCheckResource", "AsyncActivationCheckResource"] -class ActivationCheck(SyncAPIResource): +class ActivationCheckResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> ActivationCheckWithRawResponse: - return ActivationCheckWithRawResponse(self) + def with_raw_response(self) -> ActivationCheckResourceWithRawResponse: + return ActivationCheckResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> ActivationCheckWithStreamingResponse: - return ActivationCheckWithStreamingResponse(self) + def with_streaming_response(self) -> ActivationCheckResourceWithStreamingResponse: + return ActivationCheckResourceWithStreamingResponse(self) def trigger( self, @@ -75,14 +75,14 @@ def trigger( ) -class AsyncActivationCheck(AsyncAPIResource): +class AsyncActivationCheckResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncActivationCheckWithRawResponse: - return AsyncActivationCheckWithRawResponse(self) + def with_raw_response(self) -> AsyncActivationCheckResourceWithRawResponse: + return AsyncActivationCheckResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncActivationCheckWithStreamingResponse: - return AsyncActivationCheckWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncActivationCheckResourceWithStreamingResponse: + return AsyncActivationCheckResourceWithStreamingResponse(self) async def trigger( self, @@ -126,8 +126,8 @@ async def trigger( ) -class ActivationCheckWithRawResponse: - def __init__(self, activation_check: ActivationCheck) -> None: +class ActivationCheckResourceWithRawResponse: + def __init__(self, activation_check: ActivationCheckResource) -> None: self._activation_check = activation_check self.trigger = to_raw_response_wrapper( @@ -135,8 +135,8 @@ def __init__(self, activation_check: ActivationCheck) -> None: ) -class AsyncActivationCheckWithRawResponse: - def __init__(self, activation_check: AsyncActivationCheck) -> None: +class AsyncActivationCheckResourceWithRawResponse: + def __init__(self, activation_check: AsyncActivationCheckResource) -> None: self._activation_check = activation_check self.trigger = async_to_raw_response_wrapper( @@ -144,8 +144,8 @@ def __init__(self, activation_check: AsyncActivationCheck) -> None: ) -class ActivationCheckWithStreamingResponse: - def __init__(self, activation_check: ActivationCheck) -> None: +class ActivationCheckResourceWithStreamingResponse: + def __init__(self, activation_check: ActivationCheckResource) -> None: self._activation_check = activation_check self.trigger = to_streamed_response_wrapper( @@ -153,8 +153,8 @@ def __init__(self, activation_check: ActivationCheck) -> None: ) -class AsyncActivationCheckWithStreamingResponse: - def __init__(self, activation_check: AsyncActivationCheck) -> None: +class AsyncActivationCheckResourceWithStreamingResponse: + def __init__(self, activation_check: AsyncActivationCheckResource) -> None: self._activation_check = activation_check self.trigger = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/zones/custom_nameservers.py b/src/cloudflare/resources/zones/custom_nameservers.py index 6b7a106db47..ba334b39387 100644 --- a/src/cloudflare/resources/zones/custom_nameservers.py +++ b/src/cloudflare/resources/zones/custom_nameservers.py @@ -27,17 +27,17 @@ from ...types.zones.custom_nameserver_get_response import CustomNameserverGetResponse from ...types.zones.custom_nameserver_update_response import CustomNameserverUpdateResponse -__all__ = ["CustomNameservers", "AsyncCustomNameservers"] +__all__ = ["CustomNameserversResource", "AsyncCustomNameserversResource"] -class CustomNameservers(SyncAPIResource): +class CustomNameserversResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> CustomNameserversWithRawResponse: - return CustomNameserversWithRawResponse(self) + def with_raw_response(self) -> CustomNameserversResourceWithRawResponse: + return CustomNameserversResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> CustomNameserversWithStreamingResponse: - return CustomNameserversWithStreamingResponse(self) + def with_streaming_response(self) -> CustomNameserversResourceWithStreamingResponse: + return CustomNameserversResourceWithStreamingResponse(self) def update( self, @@ -145,14 +145,14 @@ def get( ) -class AsyncCustomNameservers(AsyncAPIResource): +class AsyncCustomNameserversResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncCustomNameserversWithRawResponse: - return AsyncCustomNameserversWithRawResponse(self) + def with_raw_response(self) -> AsyncCustomNameserversResourceWithRawResponse: + return AsyncCustomNameserversResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncCustomNameserversWithStreamingResponse: - return AsyncCustomNameserversWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncCustomNameserversResourceWithStreamingResponse: + return AsyncCustomNameserversResourceWithStreamingResponse(self) async def update( self, @@ -260,8 +260,8 @@ async def get( ) -class CustomNameserversWithRawResponse: - def __init__(self, custom_nameservers: CustomNameservers) -> None: +class CustomNameserversResourceWithRawResponse: + def __init__(self, custom_nameservers: CustomNameserversResource) -> None: self._custom_nameservers = custom_nameservers self.update = to_raw_response_wrapper( @@ -272,8 +272,8 @@ def __init__(self, custom_nameservers: CustomNameservers) -> None: ) -class AsyncCustomNameserversWithRawResponse: - def __init__(self, custom_nameservers: AsyncCustomNameservers) -> None: +class AsyncCustomNameserversResourceWithRawResponse: + def __init__(self, custom_nameservers: AsyncCustomNameserversResource) -> None: self._custom_nameservers = custom_nameservers self.update = async_to_raw_response_wrapper( @@ -284,8 +284,8 @@ def __init__(self, custom_nameservers: AsyncCustomNameservers) -> None: ) -class CustomNameserversWithStreamingResponse: - def __init__(self, custom_nameservers: CustomNameservers) -> None: +class CustomNameserversResourceWithStreamingResponse: + def __init__(self, custom_nameservers: CustomNameserversResource) -> None: self._custom_nameservers = custom_nameservers self.update = to_streamed_response_wrapper( @@ -296,8 +296,8 @@ def __init__(self, custom_nameservers: CustomNameservers) -> None: ) -class AsyncCustomNameserversWithStreamingResponse: - def __init__(self, custom_nameservers: AsyncCustomNameservers) -> None: +class AsyncCustomNameserversResourceWithStreamingResponse: + def __init__(self, custom_nameservers: AsyncCustomNameserversResource) -> None: self._custom_nameservers = custom_nameservers self.update = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/zones/dns_settings.py b/src/cloudflare/resources/zones/dns_settings.py index 56fdb3a76f0..6da4a2d86ff 100644 --- a/src/cloudflare/resources/zones/dns_settings.py +++ b/src/cloudflare/resources/zones/dns_settings.py @@ -27,17 +27,17 @@ from ...types.zones.dns_setting import DNSSetting from ...types.zones.nameserver_param import NameserverParam -__all__ = ["DNSSettings", "AsyncDNSSettings"] +__all__ = ["DNSSettingsResource", "AsyncDNSSettingsResource"] -class DNSSettings(SyncAPIResource): +class DNSSettingsResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> DNSSettingsWithRawResponse: - return DNSSettingsWithRawResponse(self) + def with_raw_response(self) -> DNSSettingsResourceWithRawResponse: + return DNSSettingsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> DNSSettingsWithStreamingResponse: - return DNSSettingsWithStreamingResponse(self) + def with_streaming_response(self) -> DNSSettingsResourceWithStreamingResponse: + return DNSSettingsResourceWithStreamingResponse(self) def edit( self, @@ -142,14 +142,14 @@ def get( ) -class AsyncDNSSettings(AsyncAPIResource): +class AsyncDNSSettingsResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncDNSSettingsWithRawResponse: - return AsyncDNSSettingsWithRawResponse(self) + def with_raw_response(self) -> AsyncDNSSettingsResourceWithRawResponse: + return AsyncDNSSettingsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncDNSSettingsWithStreamingResponse: - return AsyncDNSSettingsWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncDNSSettingsResourceWithStreamingResponse: + return AsyncDNSSettingsResourceWithStreamingResponse(self) async def edit( self, @@ -254,8 +254,8 @@ async def get( ) -class DNSSettingsWithRawResponse: - def __init__(self, dns_settings: DNSSettings) -> None: +class DNSSettingsResourceWithRawResponse: + def __init__(self, dns_settings: DNSSettingsResource) -> None: self._dns_settings = dns_settings self.edit = to_raw_response_wrapper( @@ -266,8 +266,8 @@ def __init__(self, dns_settings: DNSSettings) -> None: ) -class AsyncDNSSettingsWithRawResponse: - def __init__(self, dns_settings: AsyncDNSSettings) -> None: +class AsyncDNSSettingsResourceWithRawResponse: + def __init__(self, dns_settings: AsyncDNSSettingsResource) -> None: self._dns_settings = dns_settings self.edit = async_to_raw_response_wrapper( @@ -278,8 +278,8 @@ def __init__(self, dns_settings: AsyncDNSSettings) -> None: ) -class DNSSettingsWithStreamingResponse: - def __init__(self, dns_settings: DNSSettings) -> None: +class DNSSettingsResourceWithStreamingResponse: + def __init__(self, dns_settings: DNSSettingsResource) -> None: self._dns_settings = dns_settings self.edit = to_streamed_response_wrapper( @@ -290,8 +290,8 @@ def __init__(self, dns_settings: DNSSettings) -> None: ) -class AsyncDNSSettingsWithStreamingResponse: - def __init__(self, dns_settings: AsyncDNSSettings) -> None: +class AsyncDNSSettingsResourceWithStreamingResponse: + def __init__(self, dns_settings: AsyncDNSSettingsResource) -> None: self._dns_settings = dns_settings self.edit = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/zones/holds.py b/src/cloudflare/resources/zones/holds.py index ee20c4f40b9..120d910d5cf 100644 --- a/src/cloudflare/resources/zones/holds.py +++ b/src/cloudflare/resources/zones/holds.py @@ -26,17 +26,17 @@ ) from ...types.zones.zone_hold import ZoneHold -__all__ = ["Holds", "AsyncHolds"] +__all__ = ["HoldsResource", "AsyncHoldsResource"] -class Holds(SyncAPIResource): +class HoldsResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> HoldsWithRawResponse: - return HoldsWithRawResponse(self) + def with_raw_response(self) -> HoldsResourceWithRawResponse: + return HoldsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> HoldsWithStreamingResponse: - return HoldsWithStreamingResponse(self) + def with_streaming_response(self) -> HoldsResourceWithStreamingResponse: + return HoldsResourceWithStreamingResponse(self) def create( self, @@ -172,14 +172,14 @@ def get( ) -class AsyncHolds(AsyncAPIResource): +class AsyncHoldsResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncHoldsWithRawResponse: - return AsyncHoldsWithRawResponse(self) + def with_raw_response(self) -> AsyncHoldsResourceWithRawResponse: + return AsyncHoldsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncHoldsWithStreamingResponse: - return AsyncHoldsWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncHoldsResourceWithStreamingResponse: + return AsyncHoldsResourceWithStreamingResponse(self) async def create( self, @@ -317,8 +317,8 @@ async def get( ) -class HoldsWithRawResponse: - def __init__(self, holds: Holds) -> None: +class HoldsResourceWithRawResponse: + def __init__(self, holds: HoldsResource) -> None: self._holds = holds self.create = to_raw_response_wrapper( @@ -332,8 +332,8 @@ def __init__(self, holds: Holds) -> None: ) -class AsyncHoldsWithRawResponse: - def __init__(self, holds: AsyncHolds) -> None: +class AsyncHoldsResourceWithRawResponse: + def __init__(self, holds: AsyncHoldsResource) -> None: self._holds = holds self.create = async_to_raw_response_wrapper( @@ -347,8 +347,8 @@ def __init__(self, holds: AsyncHolds) -> None: ) -class HoldsWithStreamingResponse: - def __init__(self, holds: Holds) -> None: +class HoldsResourceWithStreamingResponse: + def __init__(self, holds: HoldsResource) -> None: self._holds = holds self.create = to_streamed_response_wrapper( @@ -362,8 +362,8 @@ def __init__(self, holds: Holds) -> None: ) -class AsyncHoldsWithStreamingResponse: - def __init__(self, holds: AsyncHolds) -> None: +class AsyncHoldsResourceWithStreamingResponse: + def __init__(self, holds: AsyncHoldsResource) -> None: self._holds = holds self.create = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/zones/settings/__init__.py b/src/cloudflare/resources/zones/settings/__init__.py index 13c288a737d..1ac5af2ef0a 100644 --- a/src/cloudflare/resources/zones/settings/__init__.py +++ b/src/cloudflare/resources/zones/settings/__init__.py @@ -89,12 +89,12 @@ AsyncPolishResourceWithStreamingResponse, ) from .ciphers import ( - Ciphers, - AsyncCiphers, - CiphersWithRawResponse, - AsyncCiphersWithRawResponse, - CiphersWithStreamingResponse, - AsyncCiphersWithStreamingResponse, + CiphersResource, + AsyncCiphersResource, + CiphersResourceWithRawResponse, + AsyncCiphersResourceWithRawResponse, + CiphersResourceWithStreamingResponse, + AsyncCiphersResourceWithStreamingResponse, ) from .tls_1_3 import ( TLS1_3Resource, @@ -105,12 +105,12 @@ AsyncTLS1_3ResourceWithStreamingResponse, ) from .settings import ( - Settings, - AsyncSettings, - SettingsWithRawResponse, - AsyncSettingsWithRawResponse, - SettingsWithStreamingResponse, - AsyncSettingsWithStreamingResponse, + SettingsResource, + AsyncSettingsResource, + SettingsResourceWithRawResponse, + AsyncSettingsResourceWithRawResponse, + SettingsResourceWithStreamingResponse, + AsyncSettingsResourceWithStreamingResponse, ) from .zero_rtt import ( ZeroRTTResource, @@ -137,12 +137,12 @@ AsyncCacheLevelResourceWithStreamingResponse, ) from .early_hints import ( - EarlyHints, - AsyncEarlyHints, - EarlyHintsWithRawResponse, - AsyncEarlyHintsWithRawResponse, - EarlyHintsWithStreamingResponse, - AsyncEarlyHintsWithStreamingResponse, + EarlyHintsResource, + AsyncEarlyHintsResource, + EarlyHintsResourceWithRawResponse, + AsyncEarlyHintsResourceWithRawResponse, + EarlyHintsResourceWithStreamingResponse, + AsyncEarlyHintsResourceWithStreamingResponse, ) from .pseudo_ipv4 import ( PseudoIPV4Resource, @@ -153,12 +153,12 @@ AsyncPseudoIPV4ResourceWithStreamingResponse, ) from .advanced_ddos import ( - AdvancedDDoS, - AsyncAdvancedDDoS, - AdvancedDDoSWithRawResponse, - AsyncAdvancedDDoSWithRawResponse, - AdvancedDDoSWithStreamingResponse, - AsyncAdvancedDDoSWithStreamingResponse, + AdvancedDDoSResource, + AsyncAdvancedDDoSResource, + AdvancedDDoSResourceWithRawResponse, + AsyncAdvancedDDoSResourceWithRawResponse, + AdvancedDDoSResourceWithStreamingResponse, + AsyncAdvancedDDoSResourceWithStreamingResponse, ) from .always_online import ( AlwaysOnlineResource, @@ -185,12 +185,12 @@ AsyncChallengeTTLResourceWithStreamingResponse, ) from .font_settings import ( - FontSettings, - AsyncFontSettings, - FontSettingsWithRawResponse, - AsyncFontSettingsWithRawResponse, - FontSettingsWithStreamingResponse, - AsyncFontSettingsWithStreamingResponse, + FontSettingsResource, + AsyncFontSettingsResource, + FontSettingsResourceWithRawResponse, + AsyncFontSettingsResourceWithRawResponse, + FontSettingsResourceWithStreamingResponse, + AsyncFontSettingsResourceWithStreamingResponse, ) from .rocket_loader import ( RocketLoaderResource, @@ -257,12 +257,12 @@ AsyncTLSClientAuthResourceWithStreamingResponse, ) from .always_use_https import ( - AlwaysUseHTTPS, - AsyncAlwaysUseHTTPS, - AlwaysUseHTTPSWithRawResponse, - AsyncAlwaysUseHTTPSWithRawResponse, - AlwaysUseHTTPSWithStreamingResponse, - AsyncAlwaysUseHTTPSWithStreamingResponse, + AlwaysUseHTTPSResource, + AsyncAlwaysUseHTTPSResource, + AlwaysUseHTTPSResourceWithRawResponse, + AsyncAlwaysUseHTTPSResourceWithRawResponse, + AlwaysUseHTTPSResourceWithStreamingResponse, + AsyncAlwaysUseHTTPSResourceWithStreamingResponse, ) from .development_mode import ( DevelopmentModeResource, @@ -289,12 +289,12 @@ AsyncPrefetchPreloadResourceWithStreamingResponse, ) from .security_headers import ( - SecurityHeaders, - AsyncSecurityHeaders, - SecurityHeadersWithRawResponse, - AsyncSecurityHeadersWithRawResponse, - SecurityHeadersWithStreamingResponse, - AsyncSecurityHeadersWithStreamingResponse, + SecurityHeadersResource, + AsyncSecurityHeadersResource, + SecurityHeadersResourceWithRawResponse, + AsyncSecurityHeadersResourceWithRawResponse, + SecurityHeadersResourceWithStreamingResponse, + AsyncSecurityHeadersResourceWithStreamingResponse, ) from .browser_cache_ttl import ( BrowserCacheTTLResource, @@ -353,12 +353,12 @@ AsyncOpportunisticOnionResourceWithStreamingResponse, ) from .server_side_excludes import ( - ServerSideExcludes, - AsyncServerSideExcludes, - ServerSideExcludesWithRawResponse, - AsyncServerSideExcludesWithRawResponse, - ServerSideExcludesWithStreamingResponse, - AsyncServerSideExcludesWithStreamingResponse, + ServerSideExcludesResource, + AsyncServerSideExcludesResource, + ServerSideExcludesResourceWithRawResponse, + AsyncServerSideExcludesResourceWithRawResponse, + ServerSideExcludesResourceWithStreamingResponse, + AsyncServerSideExcludesResourceWithStreamingResponse, ) from .true_client_ip_header import ( TrueClientIPHeaderResource, @@ -377,12 +377,12 @@ AsyncOriginMaxHTTPVersionResourceWithStreamingResponse, ) from .automatic_https_rewrites import ( - AutomaticHTTPSRewrites, - AsyncAutomaticHTTPSRewrites, - AutomaticHTTPSRewritesWithRawResponse, - AsyncAutomaticHTTPSRewritesWithRawResponse, - AutomaticHTTPSRewritesWithStreamingResponse, - AsyncAutomaticHTTPSRewritesWithStreamingResponse, + AutomaticHTTPSRewritesResource, + AsyncAutomaticHTTPSRewritesResource, + AutomaticHTTPSRewritesResourceWithRawResponse, + AsyncAutomaticHTTPSRewritesResourceWithRawResponse, + AutomaticHTTPSRewritesResourceWithStreamingResponse, + AsyncAutomaticHTTPSRewritesResourceWithStreamingResponse, ) from .opportunistic_encryption import ( OpportunisticEncryptionResource, @@ -424,30 +424,30 @@ "AsyncZeroRTTResourceWithRawResponse", "ZeroRTTResourceWithStreamingResponse", "AsyncZeroRTTResourceWithStreamingResponse", - "AdvancedDDoS", - "AsyncAdvancedDDoS", - "AdvancedDDoSWithRawResponse", - "AsyncAdvancedDDoSWithRawResponse", - "AdvancedDDoSWithStreamingResponse", - "AsyncAdvancedDDoSWithStreamingResponse", + "AdvancedDDoSResource", + "AsyncAdvancedDDoSResource", + "AdvancedDDoSResourceWithRawResponse", + "AsyncAdvancedDDoSResourceWithRawResponse", + "AdvancedDDoSResourceWithStreamingResponse", + "AsyncAdvancedDDoSResourceWithStreamingResponse", "AlwaysOnlineResource", "AsyncAlwaysOnlineResource", "AlwaysOnlineResourceWithRawResponse", "AsyncAlwaysOnlineResourceWithRawResponse", "AlwaysOnlineResourceWithStreamingResponse", "AsyncAlwaysOnlineResourceWithStreamingResponse", - "AlwaysUseHTTPS", - "AsyncAlwaysUseHTTPS", - "AlwaysUseHTTPSWithRawResponse", - "AsyncAlwaysUseHTTPSWithRawResponse", - "AlwaysUseHTTPSWithStreamingResponse", - "AsyncAlwaysUseHTTPSWithStreamingResponse", - "AutomaticHTTPSRewrites", - "AsyncAutomaticHTTPSRewrites", - "AutomaticHTTPSRewritesWithRawResponse", - "AsyncAutomaticHTTPSRewritesWithRawResponse", - "AutomaticHTTPSRewritesWithStreamingResponse", - "AsyncAutomaticHTTPSRewritesWithStreamingResponse", + "AlwaysUseHTTPSResource", + "AsyncAlwaysUseHTTPSResource", + "AlwaysUseHTTPSResourceWithRawResponse", + "AsyncAlwaysUseHTTPSResourceWithRawResponse", + "AlwaysUseHTTPSResourceWithStreamingResponse", + "AsyncAlwaysUseHTTPSResourceWithStreamingResponse", + "AutomaticHTTPSRewritesResource", + "AsyncAutomaticHTTPSRewritesResource", + "AutomaticHTTPSRewritesResourceWithRawResponse", + "AsyncAutomaticHTTPSRewritesResourceWithRawResponse", + "AutomaticHTTPSRewritesResourceWithStreamingResponse", + "AsyncAutomaticHTTPSRewritesResourceWithStreamingResponse", "AutomaticPlatformOptimizationResource", "AsyncAutomaticPlatformOptimizationResource", "AutomaticPlatformOptimizationResourceWithRawResponse", @@ -484,24 +484,24 @@ "AsyncChallengeTTLResourceWithRawResponse", "ChallengeTTLResourceWithStreamingResponse", "AsyncChallengeTTLResourceWithStreamingResponse", - "Ciphers", - "AsyncCiphers", - "CiphersWithRawResponse", - "AsyncCiphersWithRawResponse", - "CiphersWithStreamingResponse", - "AsyncCiphersWithStreamingResponse", + "CiphersResource", + "AsyncCiphersResource", + "CiphersResourceWithRawResponse", + "AsyncCiphersResourceWithRawResponse", + "CiphersResourceWithStreamingResponse", + "AsyncCiphersResourceWithStreamingResponse", "DevelopmentModeResource", "AsyncDevelopmentModeResource", "DevelopmentModeResourceWithRawResponse", "AsyncDevelopmentModeResourceWithRawResponse", "DevelopmentModeResourceWithStreamingResponse", "AsyncDevelopmentModeResourceWithStreamingResponse", - "EarlyHints", - "AsyncEarlyHints", - "EarlyHintsWithRawResponse", - "AsyncEarlyHintsWithRawResponse", - "EarlyHintsWithStreamingResponse", - "AsyncEarlyHintsWithStreamingResponse", + "EarlyHintsResource", + "AsyncEarlyHintsResource", + "EarlyHintsResourceWithRawResponse", + "AsyncEarlyHintsResourceWithRawResponse", + "EarlyHintsResourceWithStreamingResponse", + "AsyncEarlyHintsResourceWithStreamingResponse", "EmailObfuscationResource", "AsyncEmailObfuscationResource", "EmailObfuscationResourceWithRawResponse", @@ -646,24 +646,24 @@ "AsyncRocketLoaderResourceWithRawResponse", "RocketLoaderResourceWithStreamingResponse", "AsyncRocketLoaderResourceWithStreamingResponse", - "SecurityHeaders", - "AsyncSecurityHeaders", - "SecurityHeadersWithRawResponse", - "AsyncSecurityHeadersWithRawResponse", - "SecurityHeadersWithStreamingResponse", - "AsyncSecurityHeadersWithStreamingResponse", + "SecurityHeadersResource", + "AsyncSecurityHeadersResource", + "SecurityHeadersResourceWithRawResponse", + "AsyncSecurityHeadersResourceWithRawResponse", + "SecurityHeadersResourceWithStreamingResponse", + "AsyncSecurityHeadersResourceWithStreamingResponse", "SecurityLevelResource", "AsyncSecurityLevelResource", "SecurityLevelResourceWithRawResponse", "AsyncSecurityLevelResourceWithRawResponse", "SecurityLevelResourceWithStreamingResponse", "AsyncSecurityLevelResourceWithStreamingResponse", - "ServerSideExcludes", - "AsyncServerSideExcludes", - "ServerSideExcludesWithRawResponse", - "AsyncServerSideExcludesWithRawResponse", - "ServerSideExcludesWithStreamingResponse", - "AsyncServerSideExcludesWithStreamingResponse", + "ServerSideExcludesResource", + "AsyncServerSideExcludesResource", + "ServerSideExcludesResourceWithRawResponse", + "AsyncServerSideExcludesResourceWithRawResponse", + "ServerSideExcludesResourceWithStreamingResponse", + "AsyncServerSideExcludesResourceWithStreamingResponse", "SortQueryStringForCacheResource", "AsyncSortQueryStringForCacheResource", "SortQueryStringForCacheResourceWithRawResponse", @@ -718,16 +718,16 @@ "AsyncWebsocketResourceWithRawResponse", "WebsocketResourceWithStreamingResponse", "AsyncWebsocketResourceWithStreamingResponse", - "FontSettings", - "AsyncFontSettings", - "FontSettingsWithRawResponse", - "AsyncFontSettingsWithRawResponse", - "FontSettingsWithStreamingResponse", - "AsyncFontSettingsWithStreamingResponse", - "Settings", - "AsyncSettings", - "SettingsWithRawResponse", - "AsyncSettingsWithRawResponse", - "SettingsWithStreamingResponse", - "AsyncSettingsWithStreamingResponse", + "FontSettingsResource", + "AsyncFontSettingsResource", + "FontSettingsResourceWithRawResponse", + "AsyncFontSettingsResourceWithRawResponse", + "FontSettingsResourceWithStreamingResponse", + "AsyncFontSettingsResourceWithStreamingResponse", + "SettingsResource", + "AsyncSettingsResource", + "SettingsResourceWithRawResponse", + "AsyncSettingsResourceWithRawResponse", + "SettingsResourceWithStreamingResponse", + "AsyncSettingsResourceWithStreamingResponse", ] diff --git a/src/cloudflare/resources/zones/settings/advanced_ddos.py b/src/cloudflare/resources/zones/settings/advanced_ddos.py index 155d9c752cc..0b862955cf6 100644 --- a/src/cloudflare/resources/zones/settings/advanced_ddos.py +++ b/src/cloudflare/resources/zones/settings/advanced_ddos.py @@ -19,19 +19,19 @@ from ...._base_client import ( make_request_options, ) -from ....types.zones.settings import advanced_ddos +from ....types.zones.settings.advanced_ddos import AdvancedDDoS -__all__ = ["AdvancedDDoS", "AsyncAdvancedDDoS"] +__all__ = ["AdvancedDDoSResource", "AsyncAdvancedDDoSResource"] -class AdvancedDDoS(SyncAPIResource): +class AdvancedDDoSResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> AdvancedDDoSWithRawResponse: - return AdvancedDDoSWithRawResponse(self) + def with_raw_response(self) -> AdvancedDDoSResourceWithRawResponse: + return AdvancedDDoSResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AdvancedDDoSWithStreamingResponse: - return AdvancedDDoSWithStreamingResponse(self) + def with_streaming_response(self) -> AdvancedDDoSResourceWithStreamingResponse: + return AdvancedDDoSResourceWithStreamingResponse(self) def get( self, @@ -43,7 +43,7 @@ def get( extra_query: Query | None = None, extra_body: Body | None = None, timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, - ) -> Optional[advanced_ddos.AdvancedDDoS]: + ) -> Optional[AdvancedDDoS]: """ Advanced protection from Distributed Denial of Service (DDoS) attacks on your website. This is an uneditable value that is 'on' in the case of Business and @@ -69,20 +69,20 @@ def get( extra_query=extra_query, extra_body=extra_body, timeout=timeout, - post_parser=ResultWrapper[Optional[advanced_ddos.AdvancedDDoS]]._unwrapper, + post_parser=ResultWrapper[Optional[AdvancedDDoS]]._unwrapper, ), - cast_to=cast(Type[Optional[advanced_ddos.AdvancedDDoS]], ResultWrapper[advanced_ddos.AdvancedDDoS]), + cast_to=cast(Type[Optional[AdvancedDDoS]], ResultWrapper[AdvancedDDoS]), ) -class AsyncAdvancedDDoS(AsyncAPIResource): +class AsyncAdvancedDDoSResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncAdvancedDDoSWithRawResponse: - return AsyncAdvancedDDoSWithRawResponse(self) + def with_raw_response(self) -> AsyncAdvancedDDoSResourceWithRawResponse: + return AsyncAdvancedDDoSResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncAdvancedDDoSWithStreamingResponse: - return AsyncAdvancedDDoSWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncAdvancedDDoSResourceWithStreamingResponse: + return AsyncAdvancedDDoSResourceWithStreamingResponse(self) async def get( self, @@ -94,7 +94,7 @@ async def get( extra_query: Query | None = None, extra_body: Body | None = None, timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, - ) -> Optional[advanced_ddos.AdvancedDDoS]: + ) -> Optional[AdvancedDDoS]: """ Advanced protection from Distributed Denial of Service (DDoS) attacks on your website. This is an uneditable value that is 'on' in the case of Business and @@ -120,14 +120,14 @@ async def get( extra_query=extra_query, extra_body=extra_body, timeout=timeout, - post_parser=ResultWrapper[Optional[advanced_ddos.AdvancedDDoS]]._unwrapper, + post_parser=ResultWrapper[Optional[AdvancedDDoS]]._unwrapper, ), - cast_to=cast(Type[Optional[advanced_ddos.AdvancedDDoS]], ResultWrapper[advanced_ddos.AdvancedDDoS]), + cast_to=cast(Type[Optional[AdvancedDDoS]], ResultWrapper[AdvancedDDoS]), ) -class AdvancedDDoSWithRawResponse: - def __init__(self, advanced_ddos: AdvancedDDoS) -> None: +class AdvancedDDoSResourceWithRawResponse: + def __init__(self, advanced_ddos: AdvancedDDoSResource) -> None: self._advanced_ddos = advanced_ddos self.get = to_raw_response_wrapper( @@ -135,8 +135,8 @@ def __init__(self, advanced_ddos: AdvancedDDoS) -> None: ) -class AsyncAdvancedDDoSWithRawResponse: - def __init__(self, advanced_ddos: AsyncAdvancedDDoS) -> None: +class AsyncAdvancedDDoSResourceWithRawResponse: + def __init__(self, advanced_ddos: AsyncAdvancedDDoSResource) -> None: self._advanced_ddos = advanced_ddos self.get = async_to_raw_response_wrapper( @@ -144,8 +144,8 @@ def __init__(self, advanced_ddos: AsyncAdvancedDDoS) -> None: ) -class AdvancedDDoSWithStreamingResponse: - def __init__(self, advanced_ddos: AdvancedDDoS) -> None: +class AdvancedDDoSResourceWithStreamingResponse: + def __init__(self, advanced_ddos: AdvancedDDoSResource) -> None: self._advanced_ddos = advanced_ddos self.get = to_streamed_response_wrapper( @@ -153,8 +153,8 @@ def __init__(self, advanced_ddos: AdvancedDDoS) -> None: ) -class AsyncAdvancedDDoSWithStreamingResponse: - def __init__(self, advanced_ddos: AsyncAdvancedDDoS) -> None: +class AsyncAdvancedDDoSResourceWithStreamingResponse: + def __init__(self, advanced_ddos: AsyncAdvancedDDoSResource) -> None: self._advanced_ddos = advanced_ddos self.get = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/zones/settings/always_use_https.py b/src/cloudflare/resources/zones/settings/always_use_https.py index b51cb5e8e58..3e9a208f93d 100644 --- a/src/cloudflare/resources/zones/settings/always_use_https.py +++ b/src/cloudflare/resources/zones/settings/always_use_https.py @@ -24,19 +24,20 @@ from ...._base_client import ( make_request_options, ) -from ....types.zones.settings import always_use_https, always_use_https_edit_params +from ....types.zones.settings import always_use_https_edit_params +from ....types.zones.settings.always_use_https import AlwaysUseHTTPS -__all__ = ["AlwaysUseHTTPS", "AsyncAlwaysUseHTTPS"] +__all__ = ["AlwaysUseHTTPSResource", "AsyncAlwaysUseHTTPSResource"] -class AlwaysUseHTTPS(SyncAPIResource): +class AlwaysUseHTTPSResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> AlwaysUseHTTPSWithRawResponse: - return AlwaysUseHTTPSWithRawResponse(self) + def with_raw_response(self) -> AlwaysUseHTTPSResourceWithRawResponse: + return AlwaysUseHTTPSResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AlwaysUseHTTPSWithStreamingResponse: - return AlwaysUseHTTPSWithStreamingResponse(self) + def with_streaming_response(self) -> AlwaysUseHTTPSResourceWithStreamingResponse: + return AlwaysUseHTTPSResourceWithStreamingResponse(self) def edit( self, @@ -49,7 +50,7 @@ def edit( extra_query: Query | None = None, extra_body: Body | None = None, timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, - ) -> Optional[always_use_https.AlwaysUseHTTPS]: + ) -> Optional[AlwaysUseHTTPS]: """ Reply to all requests for URLs that use "http" with a 301 redirect to the equivalent "https" URL. If you only want to redirect for a subset of requests, @@ -78,11 +79,9 @@ def edit( extra_query=extra_query, extra_body=extra_body, timeout=timeout, - post_parser=ResultWrapper[Optional[always_use_https.AlwaysUseHTTPS]]._unwrapper, - ), - cast_to=cast( - Type[Optional[always_use_https.AlwaysUseHTTPS]], ResultWrapper[always_use_https.AlwaysUseHTTPS] + post_parser=ResultWrapper[Optional[AlwaysUseHTTPS]]._unwrapper, ), + cast_to=cast(Type[Optional[AlwaysUseHTTPS]], ResultWrapper[AlwaysUseHTTPS]), ) def get( @@ -95,7 +94,7 @@ def get( extra_query: Query | None = None, extra_body: Body | None = None, timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, - ) -> Optional[always_use_https.AlwaysUseHTTPS]: + ) -> Optional[AlwaysUseHTTPS]: """ Reply to all requests for URLs that use "http" with a 301 redirect to the equivalent "https" URL. If you only want to redirect for a subset of requests, @@ -121,22 +120,20 @@ def get( extra_query=extra_query, extra_body=extra_body, timeout=timeout, - post_parser=ResultWrapper[Optional[always_use_https.AlwaysUseHTTPS]]._unwrapper, - ), - cast_to=cast( - Type[Optional[always_use_https.AlwaysUseHTTPS]], ResultWrapper[always_use_https.AlwaysUseHTTPS] + post_parser=ResultWrapper[Optional[AlwaysUseHTTPS]]._unwrapper, ), + cast_to=cast(Type[Optional[AlwaysUseHTTPS]], ResultWrapper[AlwaysUseHTTPS]), ) -class AsyncAlwaysUseHTTPS(AsyncAPIResource): +class AsyncAlwaysUseHTTPSResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncAlwaysUseHTTPSWithRawResponse: - return AsyncAlwaysUseHTTPSWithRawResponse(self) + def with_raw_response(self) -> AsyncAlwaysUseHTTPSResourceWithRawResponse: + return AsyncAlwaysUseHTTPSResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncAlwaysUseHTTPSWithStreamingResponse: - return AsyncAlwaysUseHTTPSWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncAlwaysUseHTTPSResourceWithStreamingResponse: + return AsyncAlwaysUseHTTPSResourceWithStreamingResponse(self) async def edit( self, @@ -149,7 +146,7 @@ async def edit( extra_query: Query | None = None, extra_body: Body | None = None, timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, - ) -> Optional[always_use_https.AlwaysUseHTTPS]: + ) -> Optional[AlwaysUseHTTPS]: """ Reply to all requests for URLs that use "http" with a 301 redirect to the equivalent "https" URL. If you only want to redirect for a subset of requests, @@ -178,11 +175,9 @@ async def edit( extra_query=extra_query, extra_body=extra_body, timeout=timeout, - post_parser=ResultWrapper[Optional[always_use_https.AlwaysUseHTTPS]]._unwrapper, - ), - cast_to=cast( - Type[Optional[always_use_https.AlwaysUseHTTPS]], ResultWrapper[always_use_https.AlwaysUseHTTPS] + post_parser=ResultWrapper[Optional[AlwaysUseHTTPS]]._unwrapper, ), + cast_to=cast(Type[Optional[AlwaysUseHTTPS]], ResultWrapper[AlwaysUseHTTPS]), ) async def get( @@ -195,7 +190,7 @@ async def get( extra_query: Query | None = None, extra_body: Body | None = None, timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, - ) -> Optional[always_use_https.AlwaysUseHTTPS]: + ) -> Optional[AlwaysUseHTTPS]: """ Reply to all requests for URLs that use "http" with a 301 redirect to the equivalent "https" URL. If you only want to redirect for a subset of requests, @@ -221,16 +216,14 @@ async def get( extra_query=extra_query, extra_body=extra_body, timeout=timeout, - post_parser=ResultWrapper[Optional[always_use_https.AlwaysUseHTTPS]]._unwrapper, - ), - cast_to=cast( - Type[Optional[always_use_https.AlwaysUseHTTPS]], ResultWrapper[always_use_https.AlwaysUseHTTPS] + post_parser=ResultWrapper[Optional[AlwaysUseHTTPS]]._unwrapper, ), + cast_to=cast(Type[Optional[AlwaysUseHTTPS]], ResultWrapper[AlwaysUseHTTPS]), ) -class AlwaysUseHTTPSWithRawResponse: - def __init__(self, always_use_https: AlwaysUseHTTPS) -> None: +class AlwaysUseHTTPSResourceWithRawResponse: + def __init__(self, always_use_https: AlwaysUseHTTPSResource) -> None: self._always_use_https = always_use_https self.edit = to_raw_response_wrapper( @@ -241,8 +234,8 @@ def __init__(self, always_use_https: AlwaysUseHTTPS) -> None: ) -class AsyncAlwaysUseHTTPSWithRawResponse: - def __init__(self, always_use_https: AsyncAlwaysUseHTTPS) -> None: +class AsyncAlwaysUseHTTPSResourceWithRawResponse: + def __init__(self, always_use_https: AsyncAlwaysUseHTTPSResource) -> None: self._always_use_https = always_use_https self.edit = async_to_raw_response_wrapper( @@ -253,8 +246,8 @@ def __init__(self, always_use_https: AsyncAlwaysUseHTTPS) -> None: ) -class AlwaysUseHTTPSWithStreamingResponse: - def __init__(self, always_use_https: AlwaysUseHTTPS) -> None: +class AlwaysUseHTTPSResourceWithStreamingResponse: + def __init__(self, always_use_https: AlwaysUseHTTPSResource) -> None: self._always_use_https = always_use_https self.edit = to_streamed_response_wrapper( @@ -265,8 +258,8 @@ def __init__(self, always_use_https: AlwaysUseHTTPS) -> None: ) -class AsyncAlwaysUseHTTPSWithStreamingResponse: - def __init__(self, always_use_https: AsyncAlwaysUseHTTPS) -> None: +class AsyncAlwaysUseHTTPSResourceWithStreamingResponse: + def __init__(self, always_use_https: AsyncAlwaysUseHTTPSResource) -> None: self._always_use_https = always_use_https self.edit = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/zones/settings/automatic_https_rewrites.py b/src/cloudflare/resources/zones/settings/automatic_https_rewrites.py index d2ff119b3ff..329edb96881 100644 --- a/src/cloudflare/resources/zones/settings/automatic_https_rewrites.py +++ b/src/cloudflare/resources/zones/settings/automatic_https_rewrites.py @@ -24,19 +24,20 @@ from ...._base_client import ( make_request_options, ) -from ....types.zones.settings import automatic_https_rewrites, automatic_https_rewrite_edit_params +from ....types.zones.settings import automatic_https_rewrite_edit_params +from ....types.zones.settings.automatic_https_rewrites import AutomaticHTTPSRewrites -__all__ = ["AutomaticHTTPSRewrites", "AsyncAutomaticHTTPSRewrites"] +__all__ = ["AutomaticHTTPSRewritesResource", "AsyncAutomaticHTTPSRewritesResource"] -class AutomaticHTTPSRewrites(SyncAPIResource): +class AutomaticHTTPSRewritesResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> AutomaticHTTPSRewritesWithRawResponse: - return AutomaticHTTPSRewritesWithRawResponse(self) + def with_raw_response(self) -> AutomaticHTTPSRewritesResourceWithRawResponse: + return AutomaticHTTPSRewritesResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AutomaticHTTPSRewritesWithStreamingResponse: - return AutomaticHTTPSRewritesWithStreamingResponse(self) + def with_streaming_response(self) -> AutomaticHTTPSRewritesResourceWithStreamingResponse: + return AutomaticHTTPSRewritesResourceWithStreamingResponse(self) def edit( self, @@ -49,7 +50,7 @@ def edit( extra_query: Query | None = None, extra_body: Body | None = None, timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, - ) -> Optional[automatic_https_rewrites.AutomaticHTTPSRewrites]: + ) -> Optional[AutomaticHTTPSRewrites]: """ Enable the Automatic HTTPS Rewrites feature for this zone. @@ -77,12 +78,9 @@ def edit( extra_query=extra_query, extra_body=extra_body, timeout=timeout, - post_parser=ResultWrapper[Optional[automatic_https_rewrites.AutomaticHTTPSRewrites]]._unwrapper, - ), - cast_to=cast( - Type[Optional[automatic_https_rewrites.AutomaticHTTPSRewrites]], - ResultWrapper[automatic_https_rewrites.AutomaticHTTPSRewrites], + post_parser=ResultWrapper[Optional[AutomaticHTTPSRewrites]]._unwrapper, ), + cast_to=cast(Type[Optional[AutomaticHTTPSRewrites]], ResultWrapper[AutomaticHTTPSRewrites]), ) def get( @@ -95,7 +93,7 @@ def get( extra_query: Query | None = None, extra_body: Body | None = None, timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, - ) -> Optional[automatic_https_rewrites.AutomaticHTTPSRewrites]: + ) -> Optional[AutomaticHTTPSRewrites]: """ Enable the Automatic HTTPS Rewrites feature for this zone. @@ -119,23 +117,20 @@ def get( extra_query=extra_query, extra_body=extra_body, timeout=timeout, - post_parser=ResultWrapper[Optional[automatic_https_rewrites.AutomaticHTTPSRewrites]]._unwrapper, - ), - cast_to=cast( - Type[Optional[automatic_https_rewrites.AutomaticHTTPSRewrites]], - ResultWrapper[automatic_https_rewrites.AutomaticHTTPSRewrites], + post_parser=ResultWrapper[Optional[AutomaticHTTPSRewrites]]._unwrapper, ), + cast_to=cast(Type[Optional[AutomaticHTTPSRewrites]], ResultWrapper[AutomaticHTTPSRewrites]), ) -class AsyncAutomaticHTTPSRewrites(AsyncAPIResource): +class AsyncAutomaticHTTPSRewritesResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncAutomaticHTTPSRewritesWithRawResponse: - return AsyncAutomaticHTTPSRewritesWithRawResponse(self) + def with_raw_response(self) -> AsyncAutomaticHTTPSRewritesResourceWithRawResponse: + return AsyncAutomaticHTTPSRewritesResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncAutomaticHTTPSRewritesWithStreamingResponse: - return AsyncAutomaticHTTPSRewritesWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncAutomaticHTTPSRewritesResourceWithStreamingResponse: + return AsyncAutomaticHTTPSRewritesResourceWithStreamingResponse(self) async def edit( self, @@ -148,7 +143,7 @@ async def edit( extra_query: Query | None = None, extra_body: Body | None = None, timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, - ) -> Optional[automatic_https_rewrites.AutomaticHTTPSRewrites]: + ) -> Optional[AutomaticHTTPSRewrites]: """ Enable the Automatic HTTPS Rewrites feature for this zone. @@ -178,12 +173,9 @@ async def edit( extra_query=extra_query, extra_body=extra_body, timeout=timeout, - post_parser=ResultWrapper[Optional[automatic_https_rewrites.AutomaticHTTPSRewrites]]._unwrapper, - ), - cast_to=cast( - Type[Optional[automatic_https_rewrites.AutomaticHTTPSRewrites]], - ResultWrapper[automatic_https_rewrites.AutomaticHTTPSRewrites], + post_parser=ResultWrapper[Optional[AutomaticHTTPSRewrites]]._unwrapper, ), + cast_to=cast(Type[Optional[AutomaticHTTPSRewrites]], ResultWrapper[AutomaticHTTPSRewrites]), ) async def get( @@ -196,7 +188,7 @@ async def get( extra_query: Query | None = None, extra_body: Body | None = None, timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, - ) -> Optional[automatic_https_rewrites.AutomaticHTTPSRewrites]: + ) -> Optional[AutomaticHTTPSRewrites]: """ Enable the Automatic HTTPS Rewrites feature for this zone. @@ -220,17 +212,14 @@ async def get( extra_query=extra_query, extra_body=extra_body, timeout=timeout, - post_parser=ResultWrapper[Optional[automatic_https_rewrites.AutomaticHTTPSRewrites]]._unwrapper, - ), - cast_to=cast( - Type[Optional[automatic_https_rewrites.AutomaticHTTPSRewrites]], - ResultWrapper[automatic_https_rewrites.AutomaticHTTPSRewrites], + post_parser=ResultWrapper[Optional[AutomaticHTTPSRewrites]]._unwrapper, ), + cast_to=cast(Type[Optional[AutomaticHTTPSRewrites]], ResultWrapper[AutomaticHTTPSRewrites]), ) -class AutomaticHTTPSRewritesWithRawResponse: - def __init__(self, automatic_https_rewrites: AutomaticHTTPSRewrites) -> None: +class AutomaticHTTPSRewritesResourceWithRawResponse: + def __init__(self, automatic_https_rewrites: AutomaticHTTPSRewritesResource) -> None: self._automatic_https_rewrites = automatic_https_rewrites self.edit = to_raw_response_wrapper( @@ -241,8 +230,8 @@ def __init__(self, automatic_https_rewrites: AutomaticHTTPSRewrites) -> None: ) -class AsyncAutomaticHTTPSRewritesWithRawResponse: - def __init__(self, automatic_https_rewrites: AsyncAutomaticHTTPSRewrites) -> None: +class AsyncAutomaticHTTPSRewritesResourceWithRawResponse: + def __init__(self, automatic_https_rewrites: AsyncAutomaticHTTPSRewritesResource) -> None: self._automatic_https_rewrites = automatic_https_rewrites self.edit = async_to_raw_response_wrapper( @@ -253,8 +242,8 @@ def __init__(self, automatic_https_rewrites: AsyncAutomaticHTTPSRewrites) -> Non ) -class AutomaticHTTPSRewritesWithStreamingResponse: - def __init__(self, automatic_https_rewrites: AutomaticHTTPSRewrites) -> None: +class AutomaticHTTPSRewritesResourceWithStreamingResponse: + def __init__(self, automatic_https_rewrites: AutomaticHTTPSRewritesResource) -> None: self._automatic_https_rewrites = automatic_https_rewrites self.edit = to_streamed_response_wrapper( @@ -265,8 +254,8 @@ def __init__(self, automatic_https_rewrites: AutomaticHTTPSRewrites) -> None: ) -class AsyncAutomaticHTTPSRewritesWithStreamingResponse: - def __init__(self, automatic_https_rewrites: AsyncAutomaticHTTPSRewrites) -> None: +class AsyncAutomaticHTTPSRewritesResourceWithStreamingResponse: + def __init__(self, automatic_https_rewrites: AsyncAutomaticHTTPSRewritesResource) -> None: self._automatic_https_rewrites = automatic_https_rewrites self.edit = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/zones/settings/ciphers.py b/src/cloudflare/resources/zones/settings/ciphers.py index 31373898f22..c17128d464a 100644 --- a/src/cloudflare/resources/zones/settings/ciphers.py +++ b/src/cloudflare/resources/zones/settings/ciphers.py @@ -23,19 +23,20 @@ from ...._base_client import ( make_request_options, ) -from ....types.zones.settings import ciphers, cipher_edit_params +from ....types.zones.settings import cipher_edit_params +from ....types.zones.settings.ciphers import Ciphers -__all__ = ["Ciphers", "AsyncCiphers"] +__all__ = ["CiphersResource", "AsyncCiphersResource"] -class Ciphers(SyncAPIResource): +class CiphersResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> CiphersWithRawResponse: - return CiphersWithRawResponse(self) + def with_raw_response(self) -> CiphersResourceWithRawResponse: + return CiphersResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> CiphersWithStreamingResponse: - return CiphersWithStreamingResponse(self) + def with_streaming_response(self) -> CiphersResourceWithStreamingResponse: + return CiphersResourceWithStreamingResponse(self) def edit( self, @@ -48,7 +49,7 @@ def edit( extra_query: Query | None = None, extra_body: Body | None = None, timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, - ) -> Optional[ciphers.Ciphers]: + ) -> Optional[Ciphers]: """ Changes ciphers setting. @@ -75,9 +76,9 @@ def edit( extra_query=extra_query, extra_body=extra_body, timeout=timeout, - post_parser=ResultWrapper[Optional[ciphers.Ciphers]]._unwrapper, + post_parser=ResultWrapper[Optional[Ciphers]]._unwrapper, ), - cast_to=cast(Type[Optional[ciphers.Ciphers]], ResultWrapper[ciphers.Ciphers]), + cast_to=cast(Type[Optional[Ciphers]], ResultWrapper[Ciphers]), ) def get( @@ -90,7 +91,7 @@ def get( extra_query: Query | None = None, extra_body: Body | None = None, timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, - ) -> Optional[ciphers.Ciphers]: + ) -> Optional[Ciphers]: """ Gets ciphers setting. @@ -114,20 +115,20 @@ def get( extra_query=extra_query, extra_body=extra_body, timeout=timeout, - post_parser=ResultWrapper[Optional[ciphers.Ciphers]]._unwrapper, + post_parser=ResultWrapper[Optional[Ciphers]]._unwrapper, ), - cast_to=cast(Type[Optional[ciphers.Ciphers]], ResultWrapper[ciphers.Ciphers]), + cast_to=cast(Type[Optional[Ciphers]], ResultWrapper[Ciphers]), ) -class AsyncCiphers(AsyncAPIResource): +class AsyncCiphersResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncCiphersWithRawResponse: - return AsyncCiphersWithRawResponse(self) + def with_raw_response(self) -> AsyncCiphersResourceWithRawResponse: + return AsyncCiphersResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncCiphersWithStreamingResponse: - return AsyncCiphersWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncCiphersResourceWithStreamingResponse: + return AsyncCiphersResourceWithStreamingResponse(self) async def edit( self, @@ -140,7 +141,7 @@ async def edit( extra_query: Query | None = None, extra_body: Body | None = None, timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, - ) -> Optional[ciphers.Ciphers]: + ) -> Optional[Ciphers]: """ Changes ciphers setting. @@ -167,9 +168,9 @@ async def edit( extra_query=extra_query, extra_body=extra_body, timeout=timeout, - post_parser=ResultWrapper[Optional[ciphers.Ciphers]]._unwrapper, + post_parser=ResultWrapper[Optional[Ciphers]]._unwrapper, ), - cast_to=cast(Type[Optional[ciphers.Ciphers]], ResultWrapper[ciphers.Ciphers]), + cast_to=cast(Type[Optional[Ciphers]], ResultWrapper[Ciphers]), ) async def get( @@ -182,7 +183,7 @@ async def get( extra_query: Query | None = None, extra_body: Body | None = None, timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, - ) -> Optional[ciphers.Ciphers]: + ) -> Optional[Ciphers]: """ Gets ciphers setting. @@ -206,14 +207,14 @@ async def get( extra_query=extra_query, extra_body=extra_body, timeout=timeout, - post_parser=ResultWrapper[Optional[ciphers.Ciphers]]._unwrapper, + post_parser=ResultWrapper[Optional[Ciphers]]._unwrapper, ), - cast_to=cast(Type[Optional[ciphers.Ciphers]], ResultWrapper[ciphers.Ciphers]), + cast_to=cast(Type[Optional[Ciphers]], ResultWrapper[Ciphers]), ) -class CiphersWithRawResponse: - def __init__(self, ciphers: Ciphers) -> None: +class CiphersResourceWithRawResponse: + def __init__(self, ciphers: CiphersResource) -> None: self._ciphers = ciphers self.edit = to_raw_response_wrapper( @@ -224,8 +225,8 @@ def __init__(self, ciphers: Ciphers) -> None: ) -class AsyncCiphersWithRawResponse: - def __init__(self, ciphers: AsyncCiphers) -> None: +class AsyncCiphersResourceWithRawResponse: + def __init__(self, ciphers: AsyncCiphersResource) -> None: self._ciphers = ciphers self.edit = async_to_raw_response_wrapper( @@ -236,8 +237,8 @@ def __init__(self, ciphers: AsyncCiphers) -> None: ) -class CiphersWithStreamingResponse: - def __init__(self, ciphers: Ciphers) -> None: +class CiphersResourceWithStreamingResponse: + def __init__(self, ciphers: CiphersResource) -> None: self._ciphers = ciphers self.edit = to_streamed_response_wrapper( @@ -248,8 +249,8 @@ def __init__(self, ciphers: Ciphers) -> None: ) -class AsyncCiphersWithStreamingResponse: - def __init__(self, ciphers: AsyncCiphers) -> None: +class AsyncCiphersResourceWithStreamingResponse: + def __init__(self, ciphers: AsyncCiphersResource) -> None: self._ciphers = ciphers self.edit = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/zones/settings/early_hints.py b/src/cloudflare/resources/zones/settings/early_hints.py index eb83911ea8b..4c751097ced 100644 --- a/src/cloudflare/resources/zones/settings/early_hints.py +++ b/src/cloudflare/resources/zones/settings/early_hints.py @@ -24,19 +24,20 @@ from ...._base_client import ( make_request_options, ) -from ....types.zones.settings import early_hints, early_hint_edit_params +from ....types.zones.settings import early_hint_edit_params +from ....types.zones.settings.early_hints import EarlyHints -__all__ = ["EarlyHints", "AsyncEarlyHints"] +__all__ = ["EarlyHintsResource", "AsyncEarlyHintsResource"] -class EarlyHints(SyncAPIResource): +class EarlyHintsResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> EarlyHintsWithRawResponse: - return EarlyHintsWithRawResponse(self) + def with_raw_response(self) -> EarlyHintsResourceWithRawResponse: + return EarlyHintsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> EarlyHintsWithStreamingResponse: - return EarlyHintsWithStreamingResponse(self) + def with_streaming_response(self) -> EarlyHintsResourceWithStreamingResponse: + return EarlyHintsResourceWithStreamingResponse(self) def edit( self, @@ -49,7 +50,7 @@ def edit( extra_query: Query | None = None, extra_body: Body | None = None, timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, - ) -> Optional[early_hints.EarlyHints]: + ) -> Optional[EarlyHints]: """ When enabled, Cloudflare will attempt to speed up overall page loads by serving `103` responses with `Link` headers from the final response. Refer to @@ -79,9 +80,9 @@ def edit( extra_query=extra_query, extra_body=extra_body, timeout=timeout, - post_parser=ResultWrapper[Optional[early_hints.EarlyHints]]._unwrapper, + post_parser=ResultWrapper[Optional[EarlyHints]]._unwrapper, ), - cast_to=cast(Type[Optional[early_hints.EarlyHints]], ResultWrapper[early_hints.EarlyHints]), + cast_to=cast(Type[Optional[EarlyHints]], ResultWrapper[EarlyHints]), ) def get( @@ -94,7 +95,7 @@ def get( extra_query: Query | None = None, extra_body: Body | None = None, timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, - ) -> Optional[early_hints.EarlyHints]: + ) -> Optional[EarlyHints]: """ When enabled, Cloudflare will attempt to speed up overall page loads by serving `103` responses with `Link` headers from the final response. Refer to @@ -121,20 +122,20 @@ def get( extra_query=extra_query, extra_body=extra_body, timeout=timeout, - post_parser=ResultWrapper[Optional[early_hints.EarlyHints]]._unwrapper, + post_parser=ResultWrapper[Optional[EarlyHints]]._unwrapper, ), - cast_to=cast(Type[Optional[early_hints.EarlyHints]], ResultWrapper[early_hints.EarlyHints]), + cast_to=cast(Type[Optional[EarlyHints]], ResultWrapper[EarlyHints]), ) -class AsyncEarlyHints(AsyncAPIResource): +class AsyncEarlyHintsResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncEarlyHintsWithRawResponse: - return AsyncEarlyHintsWithRawResponse(self) + def with_raw_response(self) -> AsyncEarlyHintsResourceWithRawResponse: + return AsyncEarlyHintsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncEarlyHintsWithStreamingResponse: - return AsyncEarlyHintsWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncEarlyHintsResourceWithStreamingResponse: + return AsyncEarlyHintsResourceWithStreamingResponse(self) async def edit( self, @@ -147,7 +148,7 @@ async def edit( extra_query: Query | None = None, extra_body: Body | None = None, timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, - ) -> Optional[early_hints.EarlyHints]: + ) -> Optional[EarlyHints]: """ When enabled, Cloudflare will attempt to speed up overall page loads by serving `103` responses with `Link` headers from the final response. Refer to @@ -177,9 +178,9 @@ async def edit( extra_query=extra_query, extra_body=extra_body, timeout=timeout, - post_parser=ResultWrapper[Optional[early_hints.EarlyHints]]._unwrapper, + post_parser=ResultWrapper[Optional[EarlyHints]]._unwrapper, ), - cast_to=cast(Type[Optional[early_hints.EarlyHints]], ResultWrapper[early_hints.EarlyHints]), + cast_to=cast(Type[Optional[EarlyHints]], ResultWrapper[EarlyHints]), ) async def get( @@ -192,7 +193,7 @@ async def get( extra_query: Query | None = None, extra_body: Body | None = None, timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, - ) -> Optional[early_hints.EarlyHints]: + ) -> Optional[EarlyHints]: """ When enabled, Cloudflare will attempt to speed up overall page loads by serving `103` responses with `Link` headers from the final response. Refer to @@ -219,14 +220,14 @@ async def get( extra_query=extra_query, extra_body=extra_body, timeout=timeout, - post_parser=ResultWrapper[Optional[early_hints.EarlyHints]]._unwrapper, + post_parser=ResultWrapper[Optional[EarlyHints]]._unwrapper, ), - cast_to=cast(Type[Optional[early_hints.EarlyHints]], ResultWrapper[early_hints.EarlyHints]), + cast_to=cast(Type[Optional[EarlyHints]], ResultWrapper[EarlyHints]), ) -class EarlyHintsWithRawResponse: - def __init__(self, early_hints: EarlyHints) -> None: +class EarlyHintsResourceWithRawResponse: + def __init__(self, early_hints: EarlyHintsResource) -> None: self._early_hints = early_hints self.edit = to_raw_response_wrapper( @@ -237,8 +238,8 @@ def __init__(self, early_hints: EarlyHints) -> None: ) -class AsyncEarlyHintsWithRawResponse: - def __init__(self, early_hints: AsyncEarlyHints) -> None: +class AsyncEarlyHintsResourceWithRawResponse: + def __init__(self, early_hints: AsyncEarlyHintsResource) -> None: self._early_hints = early_hints self.edit = async_to_raw_response_wrapper( @@ -249,8 +250,8 @@ def __init__(self, early_hints: AsyncEarlyHints) -> None: ) -class EarlyHintsWithStreamingResponse: - def __init__(self, early_hints: EarlyHints) -> None: +class EarlyHintsResourceWithStreamingResponse: + def __init__(self, early_hints: EarlyHintsResource) -> None: self._early_hints = early_hints self.edit = to_streamed_response_wrapper( @@ -261,8 +262,8 @@ def __init__(self, early_hints: EarlyHints) -> None: ) -class AsyncEarlyHintsWithStreamingResponse: - def __init__(self, early_hints: AsyncEarlyHints) -> None: +class AsyncEarlyHintsResourceWithStreamingResponse: + def __init__(self, early_hints: AsyncEarlyHintsResource) -> None: self._early_hints = early_hints self.edit = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/zones/settings/font_settings.py b/src/cloudflare/resources/zones/settings/font_settings.py index 6af09cddf6e..6749ed07faa 100644 --- a/src/cloudflare/resources/zones/settings/font_settings.py +++ b/src/cloudflare/resources/zones/settings/font_settings.py @@ -24,19 +24,20 @@ from ...._base_client import ( make_request_options, ) -from ....types.zones.settings import font_settings, font_setting_edit_params +from ....types.zones.settings import font_setting_edit_params +from ....types.zones.settings.font_settings import FontSettings -__all__ = ["FontSettings", "AsyncFontSettings"] +__all__ = ["FontSettingsResource", "AsyncFontSettingsResource"] -class FontSettings(SyncAPIResource): +class FontSettingsResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> FontSettingsWithRawResponse: - return FontSettingsWithRawResponse(self) + def with_raw_response(self) -> FontSettingsResourceWithRawResponse: + return FontSettingsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> FontSettingsWithStreamingResponse: - return FontSettingsWithStreamingResponse(self) + def with_streaming_response(self) -> FontSettingsResourceWithStreamingResponse: + return FontSettingsResourceWithStreamingResponse(self) def edit( self, @@ -49,7 +50,7 @@ def edit( extra_query: Query | None = None, extra_body: Body | None = None, timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, - ) -> Optional[font_settings.FontSettings]: + ) -> Optional[FontSettings]: """Enhance your website's font delivery with Cloudflare Fonts. Deliver Google @@ -79,9 +80,9 @@ def edit( extra_query=extra_query, extra_body=extra_body, timeout=timeout, - post_parser=ResultWrapper[Optional[font_settings.FontSettings]]._unwrapper, + post_parser=ResultWrapper[Optional[FontSettings]]._unwrapper, ), - cast_to=cast(Type[Optional[font_settings.FontSettings]], ResultWrapper[font_settings.FontSettings]), + cast_to=cast(Type[Optional[FontSettings]], ResultWrapper[FontSettings]), ) def get( @@ -94,7 +95,7 @@ def get( extra_query: Query | None = None, extra_body: Body | None = None, timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, - ) -> Optional[font_settings.FontSettings]: + ) -> Optional[FontSettings]: """Enhance your website's font delivery with Cloudflare Fonts. Deliver Google @@ -121,20 +122,20 @@ def get( extra_query=extra_query, extra_body=extra_body, timeout=timeout, - post_parser=ResultWrapper[Optional[font_settings.FontSettings]]._unwrapper, + post_parser=ResultWrapper[Optional[FontSettings]]._unwrapper, ), - cast_to=cast(Type[Optional[font_settings.FontSettings]], ResultWrapper[font_settings.FontSettings]), + cast_to=cast(Type[Optional[FontSettings]], ResultWrapper[FontSettings]), ) -class AsyncFontSettings(AsyncAPIResource): +class AsyncFontSettingsResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncFontSettingsWithRawResponse: - return AsyncFontSettingsWithRawResponse(self) + def with_raw_response(self) -> AsyncFontSettingsResourceWithRawResponse: + return AsyncFontSettingsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncFontSettingsWithStreamingResponse: - return AsyncFontSettingsWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncFontSettingsResourceWithStreamingResponse: + return AsyncFontSettingsResourceWithStreamingResponse(self) async def edit( self, @@ -147,7 +148,7 @@ async def edit( extra_query: Query | None = None, extra_body: Body | None = None, timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, - ) -> Optional[font_settings.FontSettings]: + ) -> Optional[FontSettings]: """Enhance your website's font delivery with Cloudflare Fonts. Deliver Google @@ -177,9 +178,9 @@ async def edit( extra_query=extra_query, extra_body=extra_body, timeout=timeout, - post_parser=ResultWrapper[Optional[font_settings.FontSettings]]._unwrapper, + post_parser=ResultWrapper[Optional[FontSettings]]._unwrapper, ), - cast_to=cast(Type[Optional[font_settings.FontSettings]], ResultWrapper[font_settings.FontSettings]), + cast_to=cast(Type[Optional[FontSettings]], ResultWrapper[FontSettings]), ) async def get( @@ -192,7 +193,7 @@ async def get( extra_query: Query | None = None, extra_body: Body | None = None, timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, - ) -> Optional[font_settings.FontSettings]: + ) -> Optional[FontSettings]: """Enhance your website's font delivery with Cloudflare Fonts. Deliver Google @@ -219,14 +220,14 @@ async def get( extra_query=extra_query, extra_body=extra_body, timeout=timeout, - post_parser=ResultWrapper[Optional[font_settings.FontSettings]]._unwrapper, + post_parser=ResultWrapper[Optional[FontSettings]]._unwrapper, ), - cast_to=cast(Type[Optional[font_settings.FontSettings]], ResultWrapper[font_settings.FontSettings]), + cast_to=cast(Type[Optional[FontSettings]], ResultWrapper[FontSettings]), ) -class FontSettingsWithRawResponse: - def __init__(self, font_settings: FontSettings) -> None: +class FontSettingsResourceWithRawResponse: + def __init__(self, font_settings: FontSettingsResource) -> None: self._font_settings = font_settings self.edit = to_raw_response_wrapper( @@ -237,8 +238,8 @@ def __init__(self, font_settings: FontSettings) -> None: ) -class AsyncFontSettingsWithRawResponse: - def __init__(self, font_settings: AsyncFontSettings) -> None: +class AsyncFontSettingsResourceWithRawResponse: + def __init__(self, font_settings: AsyncFontSettingsResource) -> None: self._font_settings = font_settings self.edit = async_to_raw_response_wrapper( @@ -249,8 +250,8 @@ def __init__(self, font_settings: AsyncFontSettings) -> None: ) -class FontSettingsWithStreamingResponse: - def __init__(self, font_settings: FontSettings) -> None: +class FontSettingsResourceWithStreamingResponse: + def __init__(self, font_settings: FontSettingsResource) -> None: self._font_settings = font_settings self.edit = to_streamed_response_wrapper( @@ -261,8 +262,8 @@ def __init__(self, font_settings: FontSettings) -> None: ) -class AsyncFontSettingsWithStreamingResponse: - def __init__(self, font_settings: AsyncFontSettings) -> None: +class AsyncFontSettingsResourceWithStreamingResponse: + def __init__(self, font_settings: AsyncFontSettingsResource) -> None: self._font_settings = font_settings self.edit = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/zones/settings/security_headers.py b/src/cloudflare/resources/zones/settings/security_headers.py index ab25d8de66d..5c97da0cea2 100644 --- a/src/cloudflare/resources/zones/settings/security_headers.py +++ b/src/cloudflare/resources/zones/settings/security_headers.py @@ -23,19 +23,20 @@ from ...._base_client import ( make_request_options, ) -from ....types.zones.settings import security_headers, security_header_edit_params +from ....types.zones.settings import security_header_edit_params +from ....types.zones.settings.security_headers import SecurityHeaders -__all__ = ["SecurityHeaders", "AsyncSecurityHeaders"] +__all__ = ["SecurityHeadersResource", "AsyncSecurityHeadersResource"] -class SecurityHeaders(SyncAPIResource): +class SecurityHeadersResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> SecurityHeadersWithRawResponse: - return SecurityHeadersWithRawResponse(self) + def with_raw_response(self) -> SecurityHeadersResourceWithRawResponse: + return SecurityHeadersResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> SecurityHeadersWithStreamingResponse: - return SecurityHeadersWithStreamingResponse(self) + def with_streaming_response(self) -> SecurityHeadersResourceWithStreamingResponse: + return SecurityHeadersResourceWithStreamingResponse(self) def edit( self, @@ -48,7 +49,7 @@ def edit( extra_query: Query | None = None, extra_body: Body | None = None, timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, - ) -> Optional[security_headers.SecurityHeaders]: + ) -> Optional[SecurityHeaders]: """ Cloudflare security header for a zone. @@ -73,11 +74,9 @@ def edit( extra_query=extra_query, extra_body=extra_body, timeout=timeout, - post_parser=ResultWrapper[Optional[security_headers.SecurityHeaders]]._unwrapper, - ), - cast_to=cast( - Type[Optional[security_headers.SecurityHeaders]], ResultWrapper[security_headers.SecurityHeaders] + post_parser=ResultWrapper[Optional[SecurityHeaders]]._unwrapper, ), + cast_to=cast(Type[Optional[SecurityHeaders]], ResultWrapper[SecurityHeaders]), ) def get( @@ -90,7 +89,7 @@ def get( extra_query: Query | None = None, extra_body: Body | None = None, timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, - ) -> Optional[security_headers.SecurityHeaders]: + ) -> Optional[SecurityHeaders]: """ Cloudflare security header for a zone. @@ -114,22 +113,20 @@ def get( extra_query=extra_query, extra_body=extra_body, timeout=timeout, - post_parser=ResultWrapper[Optional[security_headers.SecurityHeaders]]._unwrapper, - ), - cast_to=cast( - Type[Optional[security_headers.SecurityHeaders]], ResultWrapper[security_headers.SecurityHeaders] + post_parser=ResultWrapper[Optional[SecurityHeaders]]._unwrapper, ), + cast_to=cast(Type[Optional[SecurityHeaders]], ResultWrapper[SecurityHeaders]), ) -class AsyncSecurityHeaders(AsyncAPIResource): +class AsyncSecurityHeadersResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncSecurityHeadersWithRawResponse: - return AsyncSecurityHeadersWithRawResponse(self) + def with_raw_response(self) -> AsyncSecurityHeadersResourceWithRawResponse: + return AsyncSecurityHeadersResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncSecurityHeadersWithStreamingResponse: - return AsyncSecurityHeadersWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncSecurityHeadersResourceWithStreamingResponse: + return AsyncSecurityHeadersResourceWithStreamingResponse(self) async def edit( self, @@ -142,7 +139,7 @@ async def edit( extra_query: Query | None = None, extra_body: Body | None = None, timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, - ) -> Optional[security_headers.SecurityHeaders]: + ) -> Optional[SecurityHeaders]: """ Cloudflare security header for a zone. @@ -167,11 +164,9 @@ async def edit( extra_query=extra_query, extra_body=extra_body, timeout=timeout, - post_parser=ResultWrapper[Optional[security_headers.SecurityHeaders]]._unwrapper, - ), - cast_to=cast( - Type[Optional[security_headers.SecurityHeaders]], ResultWrapper[security_headers.SecurityHeaders] + post_parser=ResultWrapper[Optional[SecurityHeaders]]._unwrapper, ), + cast_to=cast(Type[Optional[SecurityHeaders]], ResultWrapper[SecurityHeaders]), ) async def get( @@ -184,7 +179,7 @@ async def get( extra_query: Query | None = None, extra_body: Body | None = None, timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, - ) -> Optional[security_headers.SecurityHeaders]: + ) -> Optional[SecurityHeaders]: """ Cloudflare security header for a zone. @@ -208,16 +203,14 @@ async def get( extra_query=extra_query, extra_body=extra_body, timeout=timeout, - post_parser=ResultWrapper[Optional[security_headers.SecurityHeaders]]._unwrapper, - ), - cast_to=cast( - Type[Optional[security_headers.SecurityHeaders]], ResultWrapper[security_headers.SecurityHeaders] + post_parser=ResultWrapper[Optional[SecurityHeaders]]._unwrapper, ), + cast_to=cast(Type[Optional[SecurityHeaders]], ResultWrapper[SecurityHeaders]), ) -class SecurityHeadersWithRawResponse: - def __init__(self, security_headers: SecurityHeaders) -> None: +class SecurityHeadersResourceWithRawResponse: + def __init__(self, security_headers: SecurityHeadersResource) -> None: self._security_headers = security_headers self.edit = to_raw_response_wrapper( @@ -228,8 +221,8 @@ def __init__(self, security_headers: SecurityHeaders) -> None: ) -class AsyncSecurityHeadersWithRawResponse: - def __init__(self, security_headers: AsyncSecurityHeaders) -> None: +class AsyncSecurityHeadersResourceWithRawResponse: + def __init__(self, security_headers: AsyncSecurityHeadersResource) -> None: self._security_headers = security_headers self.edit = async_to_raw_response_wrapper( @@ -240,8 +233,8 @@ def __init__(self, security_headers: AsyncSecurityHeaders) -> None: ) -class SecurityHeadersWithStreamingResponse: - def __init__(self, security_headers: SecurityHeaders) -> None: +class SecurityHeadersResourceWithStreamingResponse: + def __init__(self, security_headers: SecurityHeadersResource) -> None: self._security_headers = security_headers self.edit = to_streamed_response_wrapper( @@ -252,8 +245,8 @@ def __init__(self, security_headers: SecurityHeaders) -> None: ) -class AsyncSecurityHeadersWithStreamingResponse: - def __init__(self, security_headers: AsyncSecurityHeaders) -> None: +class AsyncSecurityHeadersResourceWithStreamingResponse: + def __init__(self, security_headers: AsyncSecurityHeadersResource) -> None: self._security_headers = security_headers self.edit = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/zones/settings/server_side_excludes.py b/src/cloudflare/resources/zones/settings/server_side_excludes.py index 6528876a225..b84f8e70b19 100644 --- a/src/cloudflare/resources/zones/settings/server_side_excludes.py +++ b/src/cloudflare/resources/zones/settings/server_side_excludes.py @@ -24,19 +24,20 @@ from ...._base_client import ( make_request_options, ) -from ....types.zones.settings import server_side_excludes, server_side_exclude_edit_params +from ....types.zones.settings import server_side_exclude_edit_params +from ....types.zones.settings.server_side_excludes import ServerSideExcludes -__all__ = ["ServerSideExcludes", "AsyncServerSideExcludes"] +__all__ = ["ServerSideExcludesResource", "AsyncServerSideExcludesResource"] -class ServerSideExcludes(SyncAPIResource): +class ServerSideExcludesResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> ServerSideExcludesWithRawResponse: - return ServerSideExcludesWithRawResponse(self) + def with_raw_response(self) -> ServerSideExcludesResourceWithRawResponse: + return ServerSideExcludesResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> ServerSideExcludesWithStreamingResponse: - return ServerSideExcludesWithStreamingResponse(self) + def with_streaming_response(self) -> ServerSideExcludesResourceWithStreamingResponse: + return ServerSideExcludesResourceWithStreamingResponse(self) def edit( self, @@ -49,7 +50,7 @@ def edit( extra_query: Query | None = None, extra_body: Body | None = None, timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, - ) -> Optional[server_side_excludes.ServerSideExcludes]: + ) -> Optional[ServerSideExcludes]: """ If there is sensitive content on your website that you want visible to real visitors, but that you want to hide from suspicious visitors, all you have to do @@ -86,12 +87,9 @@ def edit( extra_query=extra_query, extra_body=extra_body, timeout=timeout, - post_parser=ResultWrapper[Optional[server_side_excludes.ServerSideExcludes]]._unwrapper, - ), - cast_to=cast( - Type[Optional[server_side_excludes.ServerSideExcludes]], - ResultWrapper[server_side_excludes.ServerSideExcludes], + post_parser=ResultWrapper[Optional[ServerSideExcludes]]._unwrapper, ), + cast_to=cast(Type[Optional[ServerSideExcludes]], ResultWrapper[ServerSideExcludes]), ) def get( @@ -104,7 +102,7 @@ def get( extra_query: Query | None = None, extra_body: Body | None = None, timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, - ) -> Optional[server_side_excludes.ServerSideExcludes]: + ) -> Optional[ServerSideExcludes]: """ If there is sensitive content on your website that you want visible to real visitors, but that you want to hide from suspicious visitors, all you have to do @@ -138,23 +136,20 @@ def get( extra_query=extra_query, extra_body=extra_body, timeout=timeout, - post_parser=ResultWrapper[Optional[server_side_excludes.ServerSideExcludes]]._unwrapper, - ), - cast_to=cast( - Type[Optional[server_side_excludes.ServerSideExcludes]], - ResultWrapper[server_side_excludes.ServerSideExcludes], + post_parser=ResultWrapper[Optional[ServerSideExcludes]]._unwrapper, ), + cast_to=cast(Type[Optional[ServerSideExcludes]], ResultWrapper[ServerSideExcludes]), ) -class AsyncServerSideExcludes(AsyncAPIResource): +class AsyncServerSideExcludesResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncServerSideExcludesWithRawResponse: - return AsyncServerSideExcludesWithRawResponse(self) + def with_raw_response(self) -> AsyncServerSideExcludesResourceWithRawResponse: + return AsyncServerSideExcludesResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncServerSideExcludesWithStreamingResponse: - return AsyncServerSideExcludesWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncServerSideExcludesResourceWithStreamingResponse: + return AsyncServerSideExcludesResourceWithStreamingResponse(self) async def edit( self, @@ -167,7 +162,7 @@ async def edit( extra_query: Query | None = None, extra_body: Body | None = None, timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, - ) -> Optional[server_side_excludes.ServerSideExcludes]: + ) -> Optional[ServerSideExcludes]: """ If there is sensitive content on your website that you want visible to real visitors, but that you want to hide from suspicious visitors, all you have to do @@ -206,12 +201,9 @@ async def edit( extra_query=extra_query, extra_body=extra_body, timeout=timeout, - post_parser=ResultWrapper[Optional[server_side_excludes.ServerSideExcludes]]._unwrapper, - ), - cast_to=cast( - Type[Optional[server_side_excludes.ServerSideExcludes]], - ResultWrapper[server_side_excludes.ServerSideExcludes], + post_parser=ResultWrapper[Optional[ServerSideExcludes]]._unwrapper, ), + cast_to=cast(Type[Optional[ServerSideExcludes]], ResultWrapper[ServerSideExcludes]), ) async def get( @@ -224,7 +216,7 @@ async def get( extra_query: Query | None = None, extra_body: Body | None = None, timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, - ) -> Optional[server_side_excludes.ServerSideExcludes]: + ) -> Optional[ServerSideExcludes]: """ If there is sensitive content on your website that you want visible to real visitors, but that you want to hide from suspicious visitors, all you have to do @@ -258,17 +250,14 @@ async def get( extra_query=extra_query, extra_body=extra_body, timeout=timeout, - post_parser=ResultWrapper[Optional[server_side_excludes.ServerSideExcludes]]._unwrapper, - ), - cast_to=cast( - Type[Optional[server_side_excludes.ServerSideExcludes]], - ResultWrapper[server_side_excludes.ServerSideExcludes], + post_parser=ResultWrapper[Optional[ServerSideExcludes]]._unwrapper, ), + cast_to=cast(Type[Optional[ServerSideExcludes]], ResultWrapper[ServerSideExcludes]), ) -class ServerSideExcludesWithRawResponse: - def __init__(self, server_side_excludes: ServerSideExcludes) -> None: +class ServerSideExcludesResourceWithRawResponse: + def __init__(self, server_side_excludes: ServerSideExcludesResource) -> None: self._server_side_excludes = server_side_excludes self.edit = to_raw_response_wrapper( @@ -279,8 +268,8 @@ def __init__(self, server_side_excludes: ServerSideExcludes) -> None: ) -class AsyncServerSideExcludesWithRawResponse: - def __init__(self, server_side_excludes: AsyncServerSideExcludes) -> None: +class AsyncServerSideExcludesResourceWithRawResponse: + def __init__(self, server_side_excludes: AsyncServerSideExcludesResource) -> None: self._server_side_excludes = server_side_excludes self.edit = async_to_raw_response_wrapper( @@ -291,8 +280,8 @@ def __init__(self, server_side_excludes: AsyncServerSideExcludes) -> None: ) -class ServerSideExcludesWithStreamingResponse: - def __init__(self, server_side_excludes: ServerSideExcludes) -> None: +class ServerSideExcludesResourceWithStreamingResponse: + def __init__(self, server_side_excludes: ServerSideExcludesResource) -> None: self._server_side_excludes = server_side_excludes self.edit = to_streamed_response_wrapper( @@ -303,8 +292,8 @@ def __init__(self, server_side_excludes: ServerSideExcludes) -> None: ) -class AsyncServerSideExcludesWithStreamingResponse: - def __init__(self, server_side_excludes: AsyncServerSideExcludes) -> None: +class AsyncServerSideExcludesResourceWithStreamingResponse: + def __init__(self, server_side_excludes: AsyncServerSideExcludesResource) -> None: self._server_side_excludes = server_side_excludes self.edit = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/zones/settings/settings.py b/src/cloudflare/resources/zones/settings/settings.py index 4f4a0ccf34b..5202b805f12 100644 --- a/src/cloudflare/resources/zones/settings/settings.py +++ b/src/cloudflare/resources/zones/settings/settings.py @@ -91,12 +91,12 @@ AsyncPolishResourceWithStreamingResponse, ) from .ciphers import ( - Ciphers, - AsyncCiphers, - CiphersWithRawResponse, - AsyncCiphersWithRawResponse, - CiphersWithStreamingResponse, - AsyncCiphersWithStreamingResponse, + CiphersResource, + AsyncCiphersResource, + CiphersResourceWithRawResponse, + AsyncCiphersResourceWithRawResponse, + CiphersResourceWithStreamingResponse, + AsyncCiphersResourceWithStreamingResponse, ) from .tls_1_3 import ( TLS1_3Resource, @@ -132,12 +132,12 @@ AsyncCacheLevelResourceWithStreamingResponse, ) from .early_hints import ( - EarlyHints, - AsyncEarlyHints, - EarlyHintsWithRawResponse, - AsyncEarlyHintsWithRawResponse, - EarlyHintsWithStreamingResponse, - AsyncEarlyHintsWithStreamingResponse, + EarlyHintsResource, + AsyncEarlyHintsResource, + EarlyHintsResourceWithRawResponse, + AsyncEarlyHintsResourceWithRawResponse, + EarlyHintsResourceWithStreamingResponse, + AsyncEarlyHintsResourceWithStreamingResponse, ) from .pseudo_ipv4 import ( PseudoIPV4Resource, @@ -149,12 +149,12 @@ ) from ...._resource import SyncAPIResource, AsyncAPIResource from .advanced_ddos import ( - AdvancedDDoS, - AsyncAdvancedDDoS, - AdvancedDDoSWithRawResponse, - AsyncAdvancedDDoSWithRawResponse, - AdvancedDDoSWithStreamingResponse, - AsyncAdvancedDDoSWithStreamingResponse, + AdvancedDDoSResource, + AsyncAdvancedDDoSResource, + AdvancedDDoSResourceWithRawResponse, + AsyncAdvancedDDoSResourceWithRawResponse, + AdvancedDDoSResourceWithStreamingResponse, + AsyncAdvancedDDoSResourceWithStreamingResponse, ) from .always_online import ( AlwaysOnlineResource, @@ -181,12 +181,12 @@ AsyncChallengeTTLResourceWithStreamingResponse, ) from .font_settings import ( - FontSettings, - AsyncFontSettings, - FontSettingsWithRawResponse, - AsyncFontSettingsWithRawResponse, - FontSettingsWithStreamingResponse, - AsyncFontSettingsWithStreamingResponse, + FontSettingsResource, + AsyncFontSettingsResource, + FontSettingsResourceWithRawResponse, + AsyncFontSettingsResourceWithRawResponse, + FontSettingsResourceWithStreamingResponse, + AsyncFontSettingsResourceWithStreamingResponse, ) from .rocket_loader import ( RocketLoaderResource, @@ -253,12 +253,12 @@ AsyncTLSClientAuthResourceWithStreamingResponse, ) from .always_use_https import ( - AlwaysUseHTTPS, - AsyncAlwaysUseHTTPS, - AlwaysUseHTTPSWithRawResponse, - AsyncAlwaysUseHTTPSWithRawResponse, - AlwaysUseHTTPSWithStreamingResponse, - AsyncAlwaysUseHTTPSWithStreamingResponse, + AlwaysUseHTTPSResource, + AsyncAlwaysUseHTTPSResource, + AlwaysUseHTTPSResourceWithRawResponse, + AsyncAlwaysUseHTTPSResourceWithRawResponse, + AlwaysUseHTTPSResourceWithStreamingResponse, + AsyncAlwaysUseHTTPSResourceWithStreamingResponse, ) from .development_mode import ( DevelopmentModeResource, @@ -285,12 +285,12 @@ AsyncPrefetchPreloadResourceWithStreamingResponse, ) from .security_headers import ( - SecurityHeaders, - AsyncSecurityHeaders, - SecurityHeadersWithRawResponse, - AsyncSecurityHeadersWithRawResponse, - SecurityHeadersWithStreamingResponse, - AsyncSecurityHeadersWithStreamingResponse, + SecurityHeadersResource, + AsyncSecurityHeadersResource, + SecurityHeadersResourceWithRawResponse, + AsyncSecurityHeadersResourceWithRawResponse, + SecurityHeadersResourceWithStreamingResponse, + AsyncSecurityHeadersResourceWithStreamingResponse, ) from .browser_cache_ttl import ( BrowserCacheTTLResource, @@ -349,12 +349,12 @@ AsyncOpportunisticOnionResourceWithStreamingResponse, ) from .server_side_excludes import ( - ServerSideExcludes, - AsyncServerSideExcludes, - ServerSideExcludesWithRawResponse, - AsyncServerSideExcludesWithRawResponse, - ServerSideExcludesWithStreamingResponse, - AsyncServerSideExcludesWithStreamingResponse, + ServerSideExcludesResource, + AsyncServerSideExcludesResource, + ServerSideExcludesResourceWithRawResponse, + AsyncServerSideExcludesResourceWithRawResponse, + ServerSideExcludesResourceWithStreamingResponse, + AsyncServerSideExcludesResourceWithStreamingResponse, ) from .true_client_ip_header import ( TrueClientIPHeaderResource, @@ -373,12 +373,12 @@ AsyncOriginMaxHTTPVersionResourceWithStreamingResponse, ) from .automatic_https_rewrites import ( - AutomaticHTTPSRewrites, - AsyncAutomaticHTTPSRewrites, - AutomaticHTTPSRewritesWithRawResponse, - AsyncAutomaticHTTPSRewritesWithRawResponse, - AutomaticHTTPSRewritesWithStreamingResponse, - AsyncAutomaticHTTPSRewritesWithStreamingResponse, + AutomaticHTTPSRewritesResource, + AsyncAutomaticHTTPSRewritesResource, + AutomaticHTTPSRewritesResourceWithRawResponse, + AsyncAutomaticHTTPSRewritesResourceWithRawResponse, + AutomaticHTTPSRewritesResourceWithStreamingResponse, + AsyncAutomaticHTTPSRewritesResourceWithStreamingResponse, ) from .opportunistic_encryption import ( OpportunisticEncryptionResource, @@ -413,29 +413,29 @@ AsyncAutomaticPlatformOptimizationResourceWithStreamingResponse, ) -__all__ = ["Settings", "AsyncSettings"] +__all__ = ["SettingsResource", "AsyncSettingsResource"] -class Settings(SyncAPIResource): +class SettingsResource(SyncAPIResource): @cached_property def zero_rtt(self) -> ZeroRTTResource: return ZeroRTTResource(self._client) @cached_property - def advanced_ddos(self) -> AdvancedDDoS: - return AdvancedDDoS(self._client) + def advanced_ddos(self) -> AdvancedDDoSResource: + return AdvancedDDoSResource(self._client) @cached_property def always_online(self) -> AlwaysOnlineResource: return AlwaysOnlineResource(self._client) @cached_property - def always_use_https(self) -> AlwaysUseHTTPS: - return AlwaysUseHTTPS(self._client) + def always_use_https(self) -> AlwaysUseHTTPSResource: + return AlwaysUseHTTPSResource(self._client) @cached_property - def automatic_https_rewrites(self) -> AutomaticHTTPSRewrites: - return AutomaticHTTPSRewrites(self._client) + def automatic_https_rewrites(self) -> AutomaticHTTPSRewritesResource: + return AutomaticHTTPSRewritesResource(self._client) @cached_property def automatic_platform_optimization(self) -> AutomaticPlatformOptimizationResource: @@ -462,16 +462,16 @@ def challenge_ttl(self) -> ChallengeTTLResource: return ChallengeTTLResource(self._client) @cached_property - def ciphers(self) -> Ciphers: - return Ciphers(self._client) + def ciphers(self) -> CiphersResource: + return CiphersResource(self._client) @cached_property def development_mode(self) -> DevelopmentModeResource: return DevelopmentModeResource(self._client) @cached_property - def early_hints(self) -> EarlyHints: - return EarlyHints(self._client) + def early_hints(self) -> EarlyHintsResource: + return EarlyHintsResource(self._client) @cached_property def email_obfuscation(self) -> EmailObfuscationResource: @@ -570,16 +570,16 @@ def rocket_loader(self) -> RocketLoaderResource: return RocketLoaderResource(self._client) @cached_property - def security_headers(self) -> SecurityHeaders: - return SecurityHeaders(self._client) + def security_headers(self) -> SecurityHeadersResource: + return SecurityHeadersResource(self._client) @cached_property def security_level(self) -> SecurityLevelResource: return SecurityLevelResource(self._client) @cached_property - def server_side_excludes(self) -> ServerSideExcludes: - return ServerSideExcludes(self._client) + def server_side_excludes(self) -> ServerSideExcludesResource: + return ServerSideExcludesResource(self._client) @cached_property def sort_query_string_for_cache(self) -> SortQueryStringForCacheResource: @@ -618,38 +618,38 @@ def websocket(self) -> WebsocketResource: return WebsocketResource(self._client) @cached_property - def font_settings(self) -> FontSettings: - return FontSettings(self._client) + def font_settings(self) -> FontSettingsResource: + return FontSettingsResource(self._client) @cached_property - def with_raw_response(self) -> SettingsWithRawResponse: - return SettingsWithRawResponse(self) + def with_raw_response(self) -> SettingsResourceWithRawResponse: + return SettingsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> SettingsWithStreamingResponse: - return SettingsWithStreamingResponse(self) + def with_streaming_response(self) -> SettingsResourceWithStreamingResponse: + return SettingsResourceWithStreamingResponse(self) -class AsyncSettings(AsyncAPIResource): +class AsyncSettingsResource(AsyncAPIResource): @cached_property def zero_rtt(self) -> AsyncZeroRTTResource: return AsyncZeroRTTResource(self._client) @cached_property - def advanced_ddos(self) -> AsyncAdvancedDDoS: - return AsyncAdvancedDDoS(self._client) + def advanced_ddos(self) -> AsyncAdvancedDDoSResource: + return AsyncAdvancedDDoSResource(self._client) @cached_property def always_online(self) -> AsyncAlwaysOnlineResource: return AsyncAlwaysOnlineResource(self._client) @cached_property - def always_use_https(self) -> AsyncAlwaysUseHTTPS: - return AsyncAlwaysUseHTTPS(self._client) + def always_use_https(self) -> AsyncAlwaysUseHTTPSResource: + return AsyncAlwaysUseHTTPSResource(self._client) @cached_property - def automatic_https_rewrites(self) -> AsyncAutomaticHTTPSRewrites: - return AsyncAutomaticHTTPSRewrites(self._client) + def automatic_https_rewrites(self) -> AsyncAutomaticHTTPSRewritesResource: + return AsyncAutomaticHTTPSRewritesResource(self._client) @cached_property def automatic_platform_optimization(self) -> AsyncAutomaticPlatformOptimizationResource: @@ -676,16 +676,16 @@ def challenge_ttl(self) -> AsyncChallengeTTLResource: return AsyncChallengeTTLResource(self._client) @cached_property - def ciphers(self) -> AsyncCiphers: - return AsyncCiphers(self._client) + def ciphers(self) -> AsyncCiphersResource: + return AsyncCiphersResource(self._client) @cached_property def development_mode(self) -> AsyncDevelopmentModeResource: return AsyncDevelopmentModeResource(self._client) @cached_property - def early_hints(self) -> AsyncEarlyHints: - return AsyncEarlyHints(self._client) + def early_hints(self) -> AsyncEarlyHintsResource: + return AsyncEarlyHintsResource(self._client) @cached_property def email_obfuscation(self) -> AsyncEmailObfuscationResource: @@ -784,16 +784,16 @@ def rocket_loader(self) -> AsyncRocketLoaderResource: return AsyncRocketLoaderResource(self._client) @cached_property - def security_headers(self) -> AsyncSecurityHeaders: - return AsyncSecurityHeaders(self._client) + def security_headers(self) -> AsyncSecurityHeadersResource: + return AsyncSecurityHeadersResource(self._client) @cached_property def security_level(self) -> AsyncSecurityLevelResource: return AsyncSecurityLevelResource(self._client) @cached_property - def server_side_excludes(self) -> AsyncServerSideExcludes: - return AsyncServerSideExcludes(self._client) + def server_side_excludes(self) -> AsyncServerSideExcludesResource: + return AsyncServerSideExcludesResource(self._client) @cached_property def sort_query_string_for_cache(self) -> AsyncSortQueryStringForCacheResource: @@ -832,20 +832,20 @@ def websocket(self) -> AsyncWebsocketResource: return AsyncWebsocketResource(self._client) @cached_property - def font_settings(self) -> AsyncFontSettings: - return AsyncFontSettings(self._client) + def font_settings(self) -> AsyncFontSettingsResource: + return AsyncFontSettingsResource(self._client) @cached_property - def with_raw_response(self) -> AsyncSettingsWithRawResponse: - return AsyncSettingsWithRawResponse(self) + def with_raw_response(self) -> AsyncSettingsResourceWithRawResponse: + return AsyncSettingsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncSettingsWithStreamingResponse: - return AsyncSettingsWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncSettingsResourceWithStreamingResponse: + return AsyncSettingsResourceWithStreamingResponse(self) -class SettingsWithRawResponse: - def __init__(self, settings: Settings) -> None: +class SettingsResourceWithRawResponse: + def __init__(self, settings: SettingsResource) -> None: self._settings = settings @cached_property @@ -853,20 +853,20 @@ def zero_rtt(self) -> ZeroRTTResourceWithRawResponse: return ZeroRTTResourceWithRawResponse(self._settings.zero_rtt) @cached_property - def advanced_ddos(self) -> AdvancedDDoSWithRawResponse: - return AdvancedDDoSWithRawResponse(self._settings.advanced_ddos) + def advanced_ddos(self) -> AdvancedDDoSResourceWithRawResponse: + return AdvancedDDoSResourceWithRawResponse(self._settings.advanced_ddos) @cached_property def always_online(self) -> AlwaysOnlineResourceWithRawResponse: return AlwaysOnlineResourceWithRawResponse(self._settings.always_online) @cached_property - def always_use_https(self) -> AlwaysUseHTTPSWithRawResponse: - return AlwaysUseHTTPSWithRawResponse(self._settings.always_use_https) + def always_use_https(self) -> AlwaysUseHTTPSResourceWithRawResponse: + return AlwaysUseHTTPSResourceWithRawResponse(self._settings.always_use_https) @cached_property - def automatic_https_rewrites(self) -> AutomaticHTTPSRewritesWithRawResponse: - return AutomaticHTTPSRewritesWithRawResponse(self._settings.automatic_https_rewrites) + def automatic_https_rewrites(self) -> AutomaticHTTPSRewritesResourceWithRawResponse: + return AutomaticHTTPSRewritesResourceWithRawResponse(self._settings.automatic_https_rewrites) @cached_property def automatic_platform_optimization(self) -> AutomaticPlatformOptimizationResourceWithRawResponse: @@ -893,16 +893,16 @@ def challenge_ttl(self) -> ChallengeTTLResourceWithRawResponse: return ChallengeTTLResourceWithRawResponse(self._settings.challenge_ttl) @cached_property - def ciphers(self) -> CiphersWithRawResponse: - return CiphersWithRawResponse(self._settings.ciphers) + def ciphers(self) -> CiphersResourceWithRawResponse: + return CiphersResourceWithRawResponse(self._settings.ciphers) @cached_property def development_mode(self) -> DevelopmentModeResourceWithRawResponse: return DevelopmentModeResourceWithRawResponse(self._settings.development_mode) @cached_property - def early_hints(self) -> EarlyHintsWithRawResponse: - return EarlyHintsWithRawResponse(self._settings.early_hints) + def early_hints(self) -> EarlyHintsResourceWithRawResponse: + return EarlyHintsResourceWithRawResponse(self._settings.early_hints) @cached_property def email_obfuscation(self) -> EmailObfuscationResourceWithRawResponse: @@ -1001,16 +1001,16 @@ def rocket_loader(self) -> RocketLoaderResourceWithRawResponse: return RocketLoaderResourceWithRawResponse(self._settings.rocket_loader) @cached_property - def security_headers(self) -> SecurityHeadersWithRawResponse: - return SecurityHeadersWithRawResponse(self._settings.security_headers) + def security_headers(self) -> SecurityHeadersResourceWithRawResponse: + return SecurityHeadersResourceWithRawResponse(self._settings.security_headers) @cached_property def security_level(self) -> SecurityLevelResourceWithRawResponse: return SecurityLevelResourceWithRawResponse(self._settings.security_level) @cached_property - def server_side_excludes(self) -> ServerSideExcludesWithRawResponse: - return ServerSideExcludesWithRawResponse(self._settings.server_side_excludes) + def server_side_excludes(self) -> ServerSideExcludesResourceWithRawResponse: + return ServerSideExcludesResourceWithRawResponse(self._settings.server_side_excludes) @cached_property def sort_query_string_for_cache(self) -> SortQueryStringForCacheResourceWithRawResponse: @@ -1049,12 +1049,12 @@ def websocket(self) -> WebsocketResourceWithRawResponse: return WebsocketResourceWithRawResponse(self._settings.websocket) @cached_property - def font_settings(self) -> FontSettingsWithRawResponse: - return FontSettingsWithRawResponse(self._settings.font_settings) + def font_settings(self) -> FontSettingsResourceWithRawResponse: + return FontSettingsResourceWithRawResponse(self._settings.font_settings) -class AsyncSettingsWithRawResponse: - def __init__(self, settings: AsyncSettings) -> None: +class AsyncSettingsResourceWithRawResponse: + def __init__(self, settings: AsyncSettingsResource) -> None: self._settings = settings @cached_property @@ -1062,20 +1062,20 @@ def zero_rtt(self) -> AsyncZeroRTTResourceWithRawResponse: return AsyncZeroRTTResourceWithRawResponse(self._settings.zero_rtt) @cached_property - def advanced_ddos(self) -> AsyncAdvancedDDoSWithRawResponse: - return AsyncAdvancedDDoSWithRawResponse(self._settings.advanced_ddos) + def advanced_ddos(self) -> AsyncAdvancedDDoSResourceWithRawResponse: + return AsyncAdvancedDDoSResourceWithRawResponse(self._settings.advanced_ddos) @cached_property def always_online(self) -> AsyncAlwaysOnlineResourceWithRawResponse: return AsyncAlwaysOnlineResourceWithRawResponse(self._settings.always_online) @cached_property - def always_use_https(self) -> AsyncAlwaysUseHTTPSWithRawResponse: - return AsyncAlwaysUseHTTPSWithRawResponse(self._settings.always_use_https) + def always_use_https(self) -> AsyncAlwaysUseHTTPSResourceWithRawResponse: + return AsyncAlwaysUseHTTPSResourceWithRawResponse(self._settings.always_use_https) @cached_property - def automatic_https_rewrites(self) -> AsyncAutomaticHTTPSRewritesWithRawResponse: - return AsyncAutomaticHTTPSRewritesWithRawResponse(self._settings.automatic_https_rewrites) + def automatic_https_rewrites(self) -> AsyncAutomaticHTTPSRewritesResourceWithRawResponse: + return AsyncAutomaticHTTPSRewritesResourceWithRawResponse(self._settings.automatic_https_rewrites) @cached_property def automatic_platform_optimization(self) -> AsyncAutomaticPlatformOptimizationResourceWithRawResponse: @@ -1102,16 +1102,16 @@ def challenge_ttl(self) -> AsyncChallengeTTLResourceWithRawResponse: return AsyncChallengeTTLResourceWithRawResponse(self._settings.challenge_ttl) @cached_property - def ciphers(self) -> AsyncCiphersWithRawResponse: - return AsyncCiphersWithRawResponse(self._settings.ciphers) + def ciphers(self) -> AsyncCiphersResourceWithRawResponse: + return AsyncCiphersResourceWithRawResponse(self._settings.ciphers) @cached_property def development_mode(self) -> AsyncDevelopmentModeResourceWithRawResponse: return AsyncDevelopmentModeResourceWithRawResponse(self._settings.development_mode) @cached_property - def early_hints(self) -> AsyncEarlyHintsWithRawResponse: - return AsyncEarlyHintsWithRawResponse(self._settings.early_hints) + def early_hints(self) -> AsyncEarlyHintsResourceWithRawResponse: + return AsyncEarlyHintsResourceWithRawResponse(self._settings.early_hints) @cached_property def email_obfuscation(self) -> AsyncEmailObfuscationResourceWithRawResponse: @@ -1210,16 +1210,16 @@ def rocket_loader(self) -> AsyncRocketLoaderResourceWithRawResponse: return AsyncRocketLoaderResourceWithRawResponse(self._settings.rocket_loader) @cached_property - def security_headers(self) -> AsyncSecurityHeadersWithRawResponse: - return AsyncSecurityHeadersWithRawResponse(self._settings.security_headers) + def security_headers(self) -> AsyncSecurityHeadersResourceWithRawResponse: + return AsyncSecurityHeadersResourceWithRawResponse(self._settings.security_headers) @cached_property def security_level(self) -> AsyncSecurityLevelResourceWithRawResponse: return AsyncSecurityLevelResourceWithRawResponse(self._settings.security_level) @cached_property - def server_side_excludes(self) -> AsyncServerSideExcludesWithRawResponse: - return AsyncServerSideExcludesWithRawResponse(self._settings.server_side_excludes) + def server_side_excludes(self) -> AsyncServerSideExcludesResourceWithRawResponse: + return AsyncServerSideExcludesResourceWithRawResponse(self._settings.server_side_excludes) @cached_property def sort_query_string_for_cache(self) -> AsyncSortQueryStringForCacheResourceWithRawResponse: @@ -1258,12 +1258,12 @@ def websocket(self) -> AsyncWebsocketResourceWithRawResponse: return AsyncWebsocketResourceWithRawResponse(self._settings.websocket) @cached_property - def font_settings(self) -> AsyncFontSettingsWithRawResponse: - return AsyncFontSettingsWithRawResponse(self._settings.font_settings) + def font_settings(self) -> AsyncFontSettingsResourceWithRawResponse: + return AsyncFontSettingsResourceWithRawResponse(self._settings.font_settings) -class SettingsWithStreamingResponse: - def __init__(self, settings: Settings) -> None: +class SettingsResourceWithStreamingResponse: + def __init__(self, settings: SettingsResource) -> None: self._settings = settings @cached_property @@ -1271,20 +1271,20 @@ def zero_rtt(self) -> ZeroRTTResourceWithStreamingResponse: return ZeroRTTResourceWithStreamingResponse(self._settings.zero_rtt) @cached_property - def advanced_ddos(self) -> AdvancedDDoSWithStreamingResponse: - return AdvancedDDoSWithStreamingResponse(self._settings.advanced_ddos) + def advanced_ddos(self) -> AdvancedDDoSResourceWithStreamingResponse: + return AdvancedDDoSResourceWithStreamingResponse(self._settings.advanced_ddos) @cached_property def always_online(self) -> AlwaysOnlineResourceWithStreamingResponse: return AlwaysOnlineResourceWithStreamingResponse(self._settings.always_online) @cached_property - def always_use_https(self) -> AlwaysUseHTTPSWithStreamingResponse: - return AlwaysUseHTTPSWithStreamingResponse(self._settings.always_use_https) + def always_use_https(self) -> AlwaysUseHTTPSResourceWithStreamingResponse: + return AlwaysUseHTTPSResourceWithStreamingResponse(self._settings.always_use_https) @cached_property - def automatic_https_rewrites(self) -> AutomaticHTTPSRewritesWithStreamingResponse: - return AutomaticHTTPSRewritesWithStreamingResponse(self._settings.automatic_https_rewrites) + def automatic_https_rewrites(self) -> AutomaticHTTPSRewritesResourceWithStreamingResponse: + return AutomaticHTTPSRewritesResourceWithStreamingResponse(self._settings.automatic_https_rewrites) @cached_property def automatic_platform_optimization(self) -> AutomaticPlatformOptimizationResourceWithStreamingResponse: @@ -1313,16 +1313,16 @@ def challenge_ttl(self) -> ChallengeTTLResourceWithStreamingResponse: return ChallengeTTLResourceWithStreamingResponse(self._settings.challenge_ttl) @cached_property - def ciphers(self) -> CiphersWithStreamingResponse: - return CiphersWithStreamingResponse(self._settings.ciphers) + def ciphers(self) -> CiphersResourceWithStreamingResponse: + return CiphersResourceWithStreamingResponse(self._settings.ciphers) @cached_property def development_mode(self) -> DevelopmentModeResourceWithStreamingResponse: return DevelopmentModeResourceWithStreamingResponse(self._settings.development_mode) @cached_property - def early_hints(self) -> EarlyHintsWithStreamingResponse: - return EarlyHintsWithStreamingResponse(self._settings.early_hints) + def early_hints(self) -> EarlyHintsResourceWithStreamingResponse: + return EarlyHintsResourceWithStreamingResponse(self._settings.early_hints) @cached_property def email_obfuscation(self) -> EmailObfuscationResourceWithStreamingResponse: @@ -1421,16 +1421,16 @@ def rocket_loader(self) -> RocketLoaderResourceWithStreamingResponse: return RocketLoaderResourceWithStreamingResponse(self._settings.rocket_loader) @cached_property - def security_headers(self) -> SecurityHeadersWithStreamingResponse: - return SecurityHeadersWithStreamingResponse(self._settings.security_headers) + def security_headers(self) -> SecurityHeadersResourceWithStreamingResponse: + return SecurityHeadersResourceWithStreamingResponse(self._settings.security_headers) @cached_property def security_level(self) -> SecurityLevelResourceWithStreamingResponse: return SecurityLevelResourceWithStreamingResponse(self._settings.security_level) @cached_property - def server_side_excludes(self) -> ServerSideExcludesWithStreamingResponse: - return ServerSideExcludesWithStreamingResponse(self._settings.server_side_excludes) + def server_side_excludes(self) -> ServerSideExcludesResourceWithStreamingResponse: + return ServerSideExcludesResourceWithStreamingResponse(self._settings.server_side_excludes) @cached_property def sort_query_string_for_cache(self) -> SortQueryStringForCacheResourceWithStreamingResponse: @@ -1469,12 +1469,12 @@ def websocket(self) -> WebsocketResourceWithStreamingResponse: return WebsocketResourceWithStreamingResponse(self._settings.websocket) @cached_property - def font_settings(self) -> FontSettingsWithStreamingResponse: - return FontSettingsWithStreamingResponse(self._settings.font_settings) + def font_settings(self) -> FontSettingsResourceWithStreamingResponse: + return FontSettingsResourceWithStreamingResponse(self._settings.font_settings) -class AsyncSettingsWithStreamingResponse: - def __init__(self, settings: AsyncSettings) -> None: +class AsyncSettingsResourceWithStreamingResponse: + def __init__(self, settings: AsyncSettingsResource) -> None: self._settings = settings @cached_property @@ -1482,20 +1482,20 @@ def zero_rtt(self) -> AsyncZeroRTTResourceWithStreamingResponse: return AsyncZeroRTTResourceWithStreamingResponse(self._settings.zero_rtt) @cached_property - def advanced_ddos(self) -> AsyncAdvancedDDoSWithStreamingResponse: - return AsyncAdvancedDDoSWithStreamingResponse(self._settings.advanced_ddos) + def advanced_ddos(self) -> AsyncAdvancedDDoSResourceWithStreamingResponse: + return AsyncAdvancedDDoSResourceWithStreamingResponse(self._settings.advanced_ddos) @cached_property def always_online(self) -> AsyncAlwaysOnlineResourceWithStreamingResponse: return AsyncAlwaysOnlineResourceWithStreamingResponse(self._settings.always_online) @cached_property - def always_use_https(self) -> AsyncAlwaysUseHTTPSWithStreamingResponse: - return AsyncAlwaysUseHTTPSWithStreamingResponse(self._settings.always_use_https) + def always_use_https(self) -> AsyncAlwaysUseHTTPSResourceWithStreamingResponse: + return AsyncAlwaysUseHTTPSResourceWithStreamingResponse(self._settings.always_use_https) @cached_property - def automatic_https_rewrites(self) -> AsyncAutomaticHTTPSRewritesWithStreamingResponse: - return AsyncAutomaticHTTPSRewritesWithStreamingResponse(self._settings.automatic_https_rewrites) + def automatic_https_rewrites(self) -> AsyncAutomaticHTTPSRewritesResourceWithStreamingResponse: + return AsyncAutomaticHTTPSRewritesResourceWithStreamingResponse(self._settings.automatic_https_rewrites) @cached_property def automatic_platform_optimization(self) -> AsyncAutomaticPlatformOptimizationResourceWithStreamingResponse: @@ -1524,16 +1524,16 @@ def challenge_ttl(self) -> AsyncChallengeTTLResourceWithStreamingResponse: return AsyncChallengeTTLResourceWithStreamingResponse(self._settings.challenge_ttl) @cached_property - def ciphers(self) -> AsyncCiphersWithStreamingResponse: - return AsyncCiphersWithStreamingResponse(self._settings.ciphers) + def ciphers(self) -> AsyncCiphersResourceWithStreamingResponse: + return AsyncCiphersResourceWithStreamingResponse(self._settings.ciphers) @cached_property def development_mode(self) -> AsyncDevelopmentModeResourceWithStreamingResponse: return AsyncDevelopmentModeResourceWithStreamingResponse(self._settings.development_mode) @cached_property - def early_hints(self) -> AsyncEarlyHintsWithStreamingResponse: - return AsyncEarlyHintsWithStreamingResponse(self._settings.early_hints) + def early_hints(self) -> AsyncEarlyHintsResourceWithStreamingResponse: + return AsyncEarlyHintsResourceWithStreamingResponse(self._settings.early_hints) @cached_property def email_obfuscation(self) -> AsyncEmailObfuscationResourceWithStreamingResponse: @@ -1632,16 +1632,16 @@ def rocket_loader(self) -> AsyncRocketLoaderResourceWithStreamingResponse: return AsyncRocketLoaderResourceWithStreamingResponse(self._settings.rocket_loader) @cached_property - def security_headers(self) -> AsyncSecurityHeadersWithStreamingResponse: - return AsyncSecurityHeadersWithStreamingResponse(self._settings.security_headers) + def security_headers(self) -> AsyncSecurityHeadersResourceWithStreamingResponse: + return AsyncSecurityHeadersResourceWithStreamingResponse(self._settings.security_headers) @cached_property def security_level(self) -> AsyncSecurityLevelResourceWithStreamingResponse: return AsyncSecurityLevelResourceWithStreamingResponse(self._settings.security_level) @cached_property - def server_side_excludes(self) -> AsyncServerSideExcludesWithStreamingResponse: - return AsyncServerSideExcludesWithStreamingResponse(self._settings.server_side_excludes) + def server_side_excludes(self) -> AsyncServerSideExcludesResourceWithStreamingResponse: + return AsyncServerSideExcludesResourceWithStreamingResponse(self._settings.server_side_excludes) @cached_property def sort_query_string_for_cache(self) -> AsyncSortQueryStringForCacheResourceWithStreamingResponse: @@ -1680,5 +1680,5 @@ def websocket(self) -> AsyncWebsocketResourceWithStreamingResponse: return AsyncWebsocketResourceWithStreamingResponse(self._settings.websocket) @cached_property - def font_settings(self) -> AsyncFontSettingsWithStreamingResponse: - return AsyncFontSettingsWithStreamingResponse(self._settings.font_settings) + def font_settings(self) -> AsyncFontSettingsResourceWithStreamingResponse: + return AsyncFontSettingsResourceWithStreamingResponse(self._settings.font_settings) diff --git a/src/cloudflare/resources/zones/subscriptions.py b/src/cloudflare/resources/zones/subscriptions.py index 15a00d2aaef..bf49382c3a0 100644 --- a/src/cloudflare/resources/zones/subscriptions.py +++ b/src/cloudflare/resources/zones/subscriptions.py @@ -34,17 +34,17 @@ from ...types.user.subscription_component_param import SubscriptionComponentParam from ...types.zones.subscription_create_response import SubscriptionCreateResponse -__all__ = ["Subscriptions", "AsyncSubscriptions"] +__all__ = ["SubscriptionsResource", "AsyncSubscriptionsResource"] -class Subscriptions(SyncAPIResource): +class SubscriptionsResource(SyncAPIResource): @cached_property - def with_raw_response(self) -> SubscriptionsWithRawResponse: - return SubscriptionsWithRawResponse(self) + def with_raw_response(self) -> SubscriptionsResourceWithRawResponse: + return SubscriptionsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> SubscriptionsWithStreamingResponse: - return SubscriptionsWithStreamingResponse(self) + def with_streaming_response(self) -> SubscriptionsResourceWithStreamingResponse: + return SubscriptionsResourceWithStreamingResponse(self) def create( self, @@ -194,14 +194,14 @@ def get( ) -class AsyncSubscriptions(AsyncAPIResource): +class AsyncSubscriptionsResource(AsyncAPIResource): @cached_property - def with_raw_response(self) -> AsyncSubscriptionsWithRawResponse: - return AsyncSubscriptionsWithRawResponse(self) + def with_raw_response(self) -> AsyncSubscriptionsResourceWithRawResponse: + return AsyncSubscriptionsResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncSubscriptionsWithStreamingResponse: - return AsyncSubscriptionsWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncSubscriptionsResourceWithStreamingResponse: + return AsyncSubscriptionsResourceWithStreamingResponse(self) async def create( self, @@ -351,8 +351,8 @@ async def get( ) -class SubscriptionsWithRawResponse: - def __init__(self, subscriptions: Subscriptions) -> None: +class SubscriptionsResourceWithRawResponse: + def __init__(self, subscriptions: SubscriptionsResource) -> None: self._subscriptions = subscriptions self.create = to_raw_response_wrapper( @@ -366,8 +366,8 @@ def __init__(self, subscriptions: Subscriptions) -> None: ) -class AsyncSubscriptionsWithRawResponse: - def __init__(self, subscriptions: AsyncSubscriptions) -> None: +class AsyncSubscriptionsResourceWithRawResponse: + def __init__(self, subscriptions: AsyncSubscriptionsResource) -> None: self._subscriptions = subscriptions self.create = async_to_raw_response_wrapper( @@ -381,8 +381,8 @@ def __init__(self, subscriptions: AsyncSubscriptions) -> None: ) -class SubscriptionsWithStreamingResponse: - def __init__(self, subscriptions: Subscriptions) -> None: +class SubscriptionsResourceWithStreamingResponse: + def __init__(self, subscriptions: SubscriptionsResource) -> None: self._subscriptions = subscriptions self.create = to_streamed_response_wrapper( @@ -396,8 +396,8 @@ def __init__(self, subscriptions: Subscriptions) -> None: ) -class AsyncSubscriptionsWithStreamingResponse: - def __init__(self, subscriptions: AsyncSubscriptions) -> None: +class AsyncSubscriptionsResourceWithStreamingResponse: + def __init__(self, subscriptions: AsyncSubscriptionsResource) -> None: self._subscriptions = subscriptions self.create = async_to_streamed_response_wrapper( diff --git a/src/cloudflare/resources/zones/zones.py b/src/cloudflare/resources/zones/zones.py index 9b0ea116db7..2f44b6f7014 100644 --- a/src/cloudflare/resources/zones/zones.py +++ b/src/cloudflare/resources/zones/zones.py @@ -8,12 +8,12 @@ import httpx from .holds import ( - Holds, - AsyncHolds, - HoldsWithRawResponse, - AsyncHoldsWithRawResponse, - HoldsWithStreamingResponse, - AsyncHoldsWithStreamingResponse, + HoldsResource, + AsyncHoldsResource, + HoldsResourceWithRawResponse, + AsyncHoldsResourceWithRawResponse, + HoldsResourceWithStreamingResponse, + AsyncHoldsResourceWithStreamingResponse, ) from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven from ..._utils import ( @@ -21,12 +21,12 @@ async_maybe_transform, ) from .settings import ( - Settings, - AsyncSettings, - SettingsWithRawResponse, - AsyncSettingsWithRawResponse, - SettingsWithStreamingResponse, - AsyncSettingsWithStreamingResponse, + SettingsResource, + AsyncSettingsResource, + SettingsResourceWithRawResponse, + AsyncSettingsResourceWithRawResponse, + SettingsResourceWithStreamingResponse, + AsyncSettingsResourceWithStreamingResponse, ) from ..._compat import cached_property from ..._resource import SyncAPIResource, AsyncAPIResource @@ -39,81 +39,81 @@ from ..._wrappers import ResultWrapper from ...pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray from .dns_settings import ( - DNSSettings, - AsyncDNSSettings, - DNSSettingsWithRawResponse, - AsyncDNSSettingsWithRawResponse, - DNSSettingsWithStreamingResponse, - AsyncDNSSettingsWithStreamingResponse, + DNSSettingsResource, + AsyncDNSSettingsResource, + DNSSettingsResourceWithRawResponse, + AsyncDNSSettingsResourceWithRawResponse, + DNSSettingsResourceWithStreamingResponse, + AsyncDNSSettingsResourceWithStreamingResponse, ) from ...types.zones import zone_edit_params, zone_list_params, zone_create_params from .subscriptions import ( - Subscriptions, - AsyncSubscriptions, - SubscriptionsWithRawResponse, - AsyncSubscriptionsWithRawResponse, - SubscriptionsWithStreamingResponse, - AsyncSubscriptionsWithStreamingResponse, + SubscriptionsResource, + AsyncSubscriptionsResource, + SubscriptionsResourceWithRawResponse, + AsyncSubscriptionsResourceWithRawResponse, + SubscriptionsResourceWithStreamingResponse, + AsyncSubscriptionsResourceWithStreamingResponse, ) from ..._base_client import ( AsyncPaginator, make_request_options, ) from .activation_check import ( - ActivationCheck, - AsyncActivationCheck, - ActivationCheckWithRawResponse, - AsyncActivationCheckWithRawResponse, - ActivationCheckWithStreamingResponse, - AsyncActivationCheckWithStreamingResponse, + ActivationCheckResource, + AsyncActivationCheckResource, + ActivationCheckResourceWithRawResponse, + AsyncActivationCheckResourceWithRawResponse, + ActivationCheckResourceWithStreamingResponse, + AsyncActivationCheckResourceWithStreamingResponse, ) -from .settings.settings import Settings, AsyncSettings +from .settings.settings import SettingsResource, AsyncSettingsResource from ...types.zones.zone import Zone from .custom_nameservers import ( - CustomNameservers, - AsyncCustomNameservers, - CustomNameserversWithRawResponse, - AsyncCustomNameserversWithRawResponse, - CustomNameserversWithStreamingResponse, - AsyncCustomNameserversWithStreamingResponse, + CustomNameserversResource, + AsyncCustomNameserversResource, + CustomNameserversResourceWithRawResponse, + AsyncCustomNameserversResourceWithRawResponse, + CustomNameserversResourceWithStreamingResponse, + AsyncCustomNameserversResourceWithStreamingResponse, ) from ...types.zones.zone_delete_response import ZoneDeleteResponse -__all__ = ["Zones", "AsyncZones"] +__all__ = ["ZonesResource", "AsyncZonesResource"] -class Zones(SyncAPIResource): +class ZonesResource(SyncAPIResource): @cached_property - def activation_check(self) -> ActivationCheck: - return ActivationCheck(self._client) + def activation_check(self) -> ActivationCheckResource: + return ActivationCheckResource(self._client) @cached_property - def dns_settings(self) -> DNSSettings: - return DNSSettings(self._client) + def dns_settings(self) -> DNSSettingsResource: + return DNSSettingsResource(self._client) @cached_property - def settings(self) -> Settings: - return Settings(self._client) + def settings(self) -> SettingsResource: + return SettingsResource(self._client) @cached_property - def custom_nameservers(self) -> CustomNameservers: - return CustomNameservers(self._client) + def custom_nameservers(self) -> CustomNameserversResource: + return CustomNameserversResource(self._client) @cached_property - def holds(self) -> Holds: - return Holds(self._client) + def holds(self) -> HoldsResource: + return HoldsResource(self._client) @cached_property - def subscriptions(self) -> Subscriptions: - return Subscriptions(self._client) + def subscriptions(self) -> SubscriptionsResource: + return SubscriptionsResource(self._client) @cached_property - def with_raw_response(self) -> ZonesWithRawResponse: - return ZonesWithRawResponse(self) + def with_raw_response(self) -> ZonesResourceWithRawResponse: + return ZonesResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> ZonesWithStreamingResponse: - return ZonesWithStreamingResponse(self) + def with_streaming_response(self) -> ZonesResourceWithStreamingResponse: + return ZonesResourceWithStreamingResponse(self) def create( self, @@ -386,38 +386,38 @@ def get( ) -class AsyncZones(AsyncAPIResource): +class AsyncZonesResource(AsyncAPIResource): @cached_property - def activation_check(self) -> AsyncActivationCheck: - return AsyncActivationCheck(self._client) + def activation_check(self) -> AsyncActivationCheckResource: + return AsyncActivationCheckResource(self._client) @cached_property - def dns_settings(self) -> AsyncDNSSettings: - return AsyncDNSSettings(self._client) + def dns_settings(self) -> AsyncDNSSettingsResource: + return AsyncDNSSettingsResource(self._client) @cached_property - def settings(self) -> AsyncSettings: - return AsyncSettings(self._client) + def settings(self) -> AsyncSettingsResource: + return AsyncSettingsResource(self._client) @cached_property - def custom_nameservers(self) -> AsyncCustomNameservers: - return AsyncCustomNameservers(self._client) + def custom_nameservers(self) -> AsyncCustomNameserversResource: + return AsyncCustomNameserversResource(self._client) @cached_property - def holds(self) -> AsyncHolds: - return AsyncHolds(self._client) + def holds(self) -> AsyncHoldsResource: + return AsyncHoldsResource(self._client) @cached_property - def subscriptions(self) -> AsyncSubscriptions: - return AsyncSubscriptions(self._client) + def subscriptions(self) -> AsyncSubscriptionsResource: + return AsyncSubscriptionsResource(self._client) @cached_property - def with_raw_response(self) -> AsyncZonesWithRawResponse: - return AsyncZonesWithRawResponse(self) + def with_raw_response(self) -> AsyncZonesResourceWithRawResponse: + return AsyncZonesResourceWithRawResponse(self) @cached_property - def with_streaming_response(self) -> AsyncZonesWithStreamingResponse: - return AsyncZonesWithStreamingResponse(self) + def with_streaming_response(self) -> AsyncZonesResourceWithStreamingResponse: + return AsyncZonesResourceWithStreamingResponse(self) async def create( self, @@ -690,8 +690,8 @@ async def get( ) -class ZonesWithRawResponse: - def __init__(self, zones: Zones) -> None: +class ZonesResourceWithRawResponse: + def __init__(self, zones: ZonesResource) -> None: self._zones = zones self.create = to_raw_response_wrapper( @@ -711,32 +711,32 @@ def __init__(self, zones: Zones) -> None: ) @cached_property - def activation_check(self) -> ActivationCheckWithRawResponse: - return ActivationCheckWithRawResponse(self._zones.activation_check) + def activation_check(self) -> ActivationCheckResourceWithRawResponse: + return ActivationCheckResourceWithRawResponse(self._zones.activation_check) @cached_property - def dns_settings(self) -> DNSSettingsWithRawResponse: - return DNSSettingsWithRawResponse(self._zones.dns_settings) + def dns_settings(self) -> DNSSettingsResourceWithRawResponse: + return DNSSettingsResourceWithRawResponse(self._zones.dns_settings) @cached_property - def settings(self) -> SettingsWithRawResponse: - return SettingsWithRawResponse(self._zones.settings) + def settings(self) -> SettingsResourceWithRawResponse: + return SettingsResourceWithRawResponse(self._zones.settings) @cached_property - def custom_nameservers(self) -> CustomNameserversWithRawResponse: - return CustomNameserversWithRawResponse(self._zones.custom_nameservers) + def custom_nameservers(self) -> CustomNameserversResourceWithRawResponse: + return CustomNameserversResourceWithRawResponse(self._zones.custom_nameservers) @cached_property - def holds(self) -> HoldsWithRawResponse: - return HoldsWithRawResponse(self._zones.holds) + def holds(self) -> HoldsResourceWithRawResponse: + return HoldsResourceWithRawResponse(self._zones.holds) @cached_property - def subscriptions(self) -> SubscriptionsWithRawResponse: - return SubscriptionsWithRawResponse(self._zones.subscriptions) + def subscriptions(self) -> SubscriptionsResourceWithRawResponse: + return SubscriptionsResourceWithRawResponse(self._zones.subscriptions) -class AsyncZonesWithRawResponse: - def __init__(self, zones: AsyncZones) -> None: +class AsyncZonesResourceWithRawResponse: + def __init__(self, zones: AsyncZonesResource) -> None: self._zones = zones self.create = async_to_raw_response_wrapper( @@ -756,32 +756,32 @@ def __init__(self, zones: AsyncZones) -> None: ) @cached_property - def activation_check(self) -> AsyncActivationCheckWithRawResponse: - return AsyncActivationCheckWithRawResponse(self._zones.activation_check) + def activation_check(self) -> AsyncActivationCheckResourceWithRawResponse: + return AsyncActivationCheckResourceWithRawResponse(self._zones.activation_check) @cached_property - def dns_settings(self) -> AsyncDNSSettingsWithRawResponse: - return AsyncDNSSettingsWithRawResponse(self._zones.dns_settings) + def dns_settings(self) -> AsyncDNSSettingsResourceWithRawResponse: + return AsyncDNSSettingsResourceWithRawResponse(self._zones.dns_settings) @cached_property - def settings(self) -> AsyncSettingsWithRawResponse: - return AsyncSettingsWithRawResponse(self._zones.settings) + def settings(self) -> AsyncSettingsResourceWithRawResponse: + return AsyncSettingsResourceWithRawResponse(self._zones.settings) @cached_property - def custom_nameservers(self) -> AsyncCustomNameserversWithRawResponse: - return AsyncCustomNameserversWithRawResponse(self._zones.custom_nameservers) + def custom_nameservers(self) -> AsyncCustomNameserversResourceWithRawResponse: + return AsyncCustomNameserversResourceWithRawResponse(self._zones.custom_nameservers) @cached_property - def holds(self) -> AsyncHoldsWithRawResponse: - return AsyncHoldsWithRawResponse(self._zones.holds) + def holds(self) -> AsyncHoldsResourceWithRawResponse: + return AsyncHoldsResourceWithRawResponse(self._zones.holds) @cached_property - def subscriptions(self) -> AsyncSubscriptionsWithRawResponse: - return AsyncSubscriptionsWithRawResponse(self._zones.subscriptions) + def subscriptions(self) -> AsyncSubscriptionsResourceWithRawResponse: + return AsyncSubscriptionsResourceWithRawResponse(self._zones.subscriptions) -class ZonesWithStreamingResponse: - def __init__(self, zones: Zones) -> None: +class ZonesResourceWithStreamingResponse: + def __init__(self, zones: ZonesResource) -> None: self._zones = zones self.create = to_streamed_response_wrapper( @@ -801,32 +801,32 @@ def __init__(self, zones: Zones) -> None: ) @cached_property - def activation_check(self) -> ActivationCheckWithStreamingResponse: - return ActivationCheckWithStreamingResponse(self._zones.activation_check) + def activation_check(self) -> ActivationCheckResourceWithStreamingResponse: + return ActivationCheckResourceWithStreamingResponse(self._zones.activation_check) @cached_property - def dns_settings(self) -> DNSSettingsWithStreamingResponse: - return DNSSettingsWithStreamingResponse(self._zones.dns_settings) + def dns_settings(self) -> DNSSettingsResourceWithStreamingResponse: + return DNSSettingsResourceWithStreamingResponse(self._zones.dns_settings) @cached_property - def settings(self) -> SettingsWithStreamingResponse: - return SettingsWithStreamingResponse(self._zones.settings) + def settings(self) -> SettingsResourceWithStreamingResponse: + return SettingsResourceWithStreamingResponse(self._zones.settings) @cached_property - def custom_nameservers(self) -> CustomNameserversWithStreamingResponse: - return CustomNameserversWithStreamingResponse(self._zones.custom_nameservers) + def custom_nameservers(self) -> CustomNameserversResourceWithStreamingResponse: + return CustomNameserversResourceWithStreamingResponse(self._zones.custom_nameservers) @cached_property - def holds(self) -> HoldsWithStreamingResponse: - return HoldsWithStreamingResponse(self._zones.holds) + def holds(self) -> HoldsResourceWithStreamingResponse: + return HoldsResourceWithStreamingResponse(self._zones.holds) @cached_property - def subscriptions(self) -> SubscriptionsWithStreamingResponse: - return SubscriptionsWithStreamingResponse(self._zones.subscriptions) + def subscriptions(self) -> SubscriptionsResourceWithStreamingResponse: + return SubscriptionsResourceWithStreamingResponse(self._zones.subscriptions) -class AsyncZonesWithStreamingResponse: - def __init__(self, zones: AsyncZones) -> None: +class AsyncZonesResourceWithStreamingResponse: + def __init__(self, zones: AsyncZonesResource) -> None: self._zones = zones self.create = async_to_streamed_response_wrapper( @@ -846,25 +846,25 @@ def __init__(self, zones: AsyncZones) -> None: ) @cached_property - def activation_check(self) -> AsyncActivationCheckWithStreamingResponse: - return AsyncActivationCheckWithStreamingResponse(self._zones.activation_check) + def activation_check(self) -> AsyncActivationCheckResourceWithStreamingResponse: + return AsyncActivationCheckResourceWithStreamingResponse(self._zones.activation_check) @cached_property - def dns_settings(self) -> AsyncDNSSettingsWithStreamingResponse: - return AsyncDNSSettingsWithStreamingResponse(self._zones.dns_settings) + def dns_settings(self) -> AsyncDNSSettingsResourceWithStreamingResponse: + return AsyncDNSSettingsResourceWithStreamingResponse(self._zones.dns_settings) @cached_property - def settings(self) -> AsyncSettingsWithStreamingResponse: - return AsyncSettingsWithStreamingResponse(self._zones.settings) + def settings(self) -> AsyncSettingsResourceWithStreamingResponse: + return AsyncSettingsResourceWithStreamingResponse(self._zones.settings) @cached_property - def custom_nameservers(self) -> AsyncCustomNameserversWithStreamingResponse: - return AsyncCustomNameserversWithStreamingResponse(self._zones.custom_nameservers) + def custom_nameservers(self) -> AsyncCustomNameserversResourceWithStreamingResponse: + return AsyncCustomNameserversResourceWithStreamingResponse(self._zones.custom_nameservers) @cached_property - def holds(self) -> AsyncHoldsWithStreamingResponse: - return AsyncHoldsWithStreamingResponse(self._zones.holds) + def holds(self) -> AsyncHoldsResourceWithStreamingResponse: + return AsyncHoldsResourceWithStreamingResponse(self._zones.holds) @cached_property - def subscriptions(self) -> AsyncSubscriptionsWithStreamingResponse: - return AsyncSubscriptionsWithStreamingResponse(self._zones.subscriptions) + def subscriptions(self) -> AsyncSubscriptionsResourceWithStreamingResponse: + return AsyncSubscriptionsResourceWithStreamingResponse(self._zones.subscriptions)