| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 3ad8312 commit ea99bf7
599 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,3 +1,3 @@ | |||
| 1 | 1 | { | |
| 2 | - ".": "7.8.0" | ||
| 2 | + ".": "7.5.0" | ||
| 3 | 3 | } | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1 +1,4 @@ | |||
| 1 | - configured_endpoints: 2535 | ||
| 1 | + configured_endpoints: 2431 | ||
| 2 | + openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare/cloudflare-76a094c7339a3e10d15268d9a00db74f4ea9258cab6829b9dd3542bb0c887ee6.yml | ||
| 3 | + openapi_spec_hash: 85df1a77de03e8d8f5655c0ca4c8e12d | ||
| 4 | + config_hash: 87a3db059962c340822a760652737ce0 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,153 +1,5 @@ | |||
| 1 | 1 | # Changelog | |
| 2 | 2 | ||
| 3 | - ## 7.8.0 (2026-07-24) | ||
| 4 | - | ||
| 5 | - Full Changelog: [v7.7.0...v7.8.0](https://github.com/cloudflare/cloudflare-go/compare/v7.7.0...v7.8.0) | ||
| 6 | - | ||
| 7 | - ### Breaking Changes | ||
| 8 | - | ||
| 9 | - See the [v7.8.0 Migration Guide](./docs/migration-guides/v7.8.0-migration-guide.md) for before/after code examples and actions needed for each change. | ||
| 10 | - | ||
| 11 | - * **acm:** `CertificateAuthority` param and response type removed from the `acm` package. Callers referencing this type directly must update. | ||
| 12 | - * **brand_protection:** `V2.Queries.Get()` return type changed from `*[]V2QueryGetResponse` to `*V2QueryGetResponseUnion`. The `V2QueryGetResponse` type is removed; use the new union type and handle variants via `.AsUnion()`. | ||
| 13 | - * **certificate_authorities:** `HostnameAssociationParam` and `HostnameAssociation` types removed. Use `TLSHostnameAssociationParam` and the per-method response types instead. | ||
| 14 | - * **cloudforce_one:** `ThreatEvents.IndicatorTypes` sub-resource relocated to `ThreatEvents.Indicators.Types`. The endpoint path changed from `/events/indicatorTypes` to `/events/indicator-types`. The type name `ThreatEventIndicatorTypeListResponse` is unchanged. | ||
| 15 | - * **custom_certificates:** `Status` response type removed from the `custom_certificates` package. | ||
| 16 | - * **hyperdrive:** `Configs.List()` pagination type changed from `SinglePage[Hyperdrive]` to `V4PagePaginationArray[Hyperdrive]`. The second parameter name changed from `query` to `params`. | ||
| 17 | - * **moq:** `Relays.Tokens.Rotate()` method removed along with `RelayTokenRotateResponse` and `RelayTokenRotateParams`. Replaced by full CRUD: `Tokens.New()`, `Tokens.List()`, `Tokens.Delete()`. | ||
| 18 | - * **mtls_certificates:** shared `MTLSCertificate` response type removed. `List()`, `Delete()`, and `Get()` now return `MTLSCertificateListResponse`, `MTLSCertificateDeleteResponse`, and `MTLSCertificateGetResponse` respectively. | ||
| 19 | - * **ssl:** `HostParam`, `Host`, `Status`, and `ValidationMethod` types removed from the `ssl` package. | ||
| 20 | - * **zero_trust:** `Casb.Applications.SetupFlows` sub-resource renamed to `Casb.Applications.AuthMethods`. The `CasbApplicationSetupFlowListResponse` type is replaced by `CasbApplicationAuthMethodListResponse`. The path parameter on `Applications.Get()` changed from `slug` (`CasbApplicationGetParamsSlug`) to `applicationID` (`CasbApplicationGetParamsApplicationID`). | ||
| 21 | - | ||
| 22 | - ### Features | ||
| 23 | - | ||
| 24 | - * **NEW SERVICE: `registrar_sandbox`** -- test domain registration flows without buying real domains | ||
| 25 | - * `client.RegistrarSandbox.Check`, `client.RegistrarSandbox.Search` | ||
| 26 | - * `Registrations.{New,List,Edit,Get}` | ||
| 27 | - * `RegistrationStatus.Get`, `UpdateStatus.Get` | ||
| 28 | - * `Extensions.{List,Get}` | ||
| 29 | - * **NEW SERVICE: `AnalyticsQuery`** -- analytics query API at the top-level client | ||
| 30 | - * `client.AnalyticsQuery.Summary`, `client.AnalyticsQuery.Timeseries`, `client.AnalyticsQuery.TopN` | ||
| 31 | - * `DataSecurity.ContentFindings.TopN` | ||
| 32 | - * `DataSecurity.Findings.{Summary,Timeseries}` | ||
| 33 | - * **ai_audit:** add `Robots.BulkGet` and `Robots.Get` methods | ||
| 34 | - * **billing:** add `Usage.PaygoInfo` method (`GET /accounts/{account_id}/paygo-usage-info`) | ||
| 35 | - * **cloudforce_one:** major expansion of `ThreatEvents` sub-resources: | ||
| 36 | - * `Aggregate.List`, `Graphql.New`, `Graph.List` | ||
| 37 | - * `Queries.{New,List,Delete,Edit,Get}` | ||
| 38 | - * `Relationships.List` | ||
| 39 | - * `Indicators.{List,Aggregate,ByDataset,ByDataset.Tags}` | ||
| 40 | - * `Categories.Catalog.List` | ||
| 41 | - * `Datasets.{Delete,Events.Get}` | ||
| 42 | - * `Tags.{List,Delete,Edit}` + `Tags.Categories.{New,Update,List,Delete,Get}` + `Tags.Indicators`, `Tags.Indicators.ByDataset` | ||
| 43 | - * `TargetIndustries.{ByDataset.List,Catalog.List}` | ||
| 44 | - * **email_routing:** add `Update`, `Edit` methods on the root service; add `Rules.List` and `AccountRules.List` methods | ||
| 45 | - * **email_security:** add `Settings.Domains.BulkDelete` method | ||
| 46 | - * **magic_transit:** add `Connectors.Interrupts` sub-resource (`New`, `List`) | ||
| 47 | - * **moq:** add `Relays.Tokens.{New,List,Delete}` methods (replacing `Rotate`) | ||
| 48 | - * **registrar:** add `Extensions` sub-resource (`List`, `Get`) | ||
| 49 | - * **zero_trust:** add `Casb.Posture` sub-resource tree (~40 new methods): | ||
| 50 | - * `Findings.{List,Export,Get,Ignore,ResetSeverity,TuneSeverity,Unignore}` | ||
| 51 | - * `Findings.Instances.{List,Archive,Export,Get,Unarchive}` | ||
| 52 | - * `Exports.{List,Get}` | ||
| 53 | - * `FindingTypes.{List,Get}` + `FindingTypes.RemediationTypes.List` | ||
| 54 | - * `Content.{List,Export}` | ||
| 55 | - * `Remediations.Jobs.{New,List,Export}` | ||
| 56 | - * `Webhooks.{New,Update,List,Delete,Evaluate,EvaluateExisting,Get}` + `Webhooks.Jobs.New` | ||
| 57 | - * **accounts:** `Subscriptions.New` and `Subscriptions.Get` now support both account-level and zone-level paths (`/{accounts_or_zones}/{account_or_zone_id}/subscriptions`). Params accept both `AccountID` and `ZoneID` (mutually exclusive); existing `AccountID`-only callers are unaffected. | ||
| 58 | - * **load_balancers:** endpoints now support both account-level and zone-level paths (`/{accounts_or_zones}/{account_or_zone_id}/load_balancers`). Params accept both `AccountID` and `ZoneID`; existing `ZoneID`-only callers are unaffected. | ||
| 59 | - | ||
| 60 | - ## 7.7.0 (2026-07-08) | ||
| 61 | - | ||
| 62 | - Full Changelog: [v7.6.0...v7.7.0](https://github.com/cloudflare/cloudflare-go/compare/v7.6.0...v7.7.0) | ||
| 63 | - | ||
| 64 | - ### Breaking Changes | ||
| 65 | - | ||
| 66 | - See the [v7.7.0 Migration Guide](./docs/migration-guides/v7.7.0-migration-guide.md) for before/after code examples and actions needed for each change. | ||
| 67 | - | ||
| 68 | - * **ssl:** `Recommendations.Get` method and `RecommendationGetResponse` / `RecommendationGetParams` types removed. | ||
| 69 | - * **ai_gateway, workflows, zero_trust/dlpemailaccountmapping:** merged-union parent fields with same-name-different-type collisions changed from a variant-struct type to `interface{}`. Affected fields: | ||
| 70 | - * `ai_gateway.AIGateway{New,Update,List,Delete,Get}ResponseSpendLimitsRulesMetadata.Mode` (5 structs) | ||
| 71 | - * `workflows.VersionGraphResponseGraphWorkflowPayload.Type` | ||
| 72 | - * `zero_trust.DLPEmailAccountMapping{New,Get}ResponseAuthRequirements.Type` (2 structs) | ||
| 73 | - | ||
| 74 | - These fields were unreadable in the previous type (marshaling panicked with `reflect: call of reflect.Value.SetString on struct Value`). The new `interface{}` type matches the codegen pattern used by sibling merged fields on the same structs (e.g. `Values`, `Fields`, `AllowedMicrosoftOrganizations`); callers should switch on the parent union via `AsUnion()` for a strongly-typed variant. | ||
| 75 | - | ||
| 76 | - * **zero_trust:** `Devices.DEXTests.{New,Update,List,Get}` response type renamed from `DeviceDEXTest{New,Update,List,Get}Response` to the shared `SchemaHTTP`; field structure unchanged. Nested types renamed accordingly (e.g. `DeviceDEXTestNewResponseData` → `SchemaData`, `DeviceDEXTestNewResponseTargetPolicy` → `SchemaHTTPTargetPolicy`). Callers using `:=` inference and field access continue to compile; callers referencing the removed type names must update to `SchemaHTTP`. | ||
| 77 | - * **zero_trust:** `Devices.IPProfiles.List` pagination changed from `pagination.SinglePage[IPProfile]` to `pagination.V4PagePaginationArray[IPProfile]`. `.Result` field access and `ListAutoPaging()` iteration continue to work; callers referencing the pagination type by name must update. | ||
| 78 | - | ||
| 79 | - ### Features | ||
| 80 | - | ||
| 81 | - * **NEW SERVICE: `email_auth`** — DMARC reports edit/get and SPF inspect | ||
| 82 | - * `client.EmailAuth.DMARCReports.Edit` | ||
| 83 | - * `client.EmailAuth.DMARCReports.Get` | ||
| 84 | - * `client.EmailAuth.SPF.Inspect.Get` | ||
| 85 | - * **NEW SERVICE: `moq`** — Media over QUIC relay management | ||
| 86 | - * `client.MoQ.Relays.{New,Update,List,Delete,Get}` | ||
| 87 | - * `client.MoQ.Relays.Tokens.Rotate` | ||
| 88 | - * **zero_trust:** publish CASB APIs (`client.ZeroTrust.Casb.*`) | ||
| 89 | - * `Applications.{List,Get}` + `Applications.SetupFlows.List` | ||
| 90 | - * `Integrations.{New,Update,List,Delete,Get,Pause,Resume}` | ||
| 91 | - * **logs:** add `LogExplorer` sub-resource | ||
| 92 | - * `LogExplorer.Query.Sql` | ||
| 93 | - * `LogExplorer.Datasets.{New,Update,List,Get}` | ||
| 94 | - * `LogExplorer.Datasets.Available.List` | ||
| 95 | - * **browser_rendering:** add `AccessibilityTree.New` method | ||
| 96 | - * **email_routing:** add `EmailRouting.Unlock` and `EmailRouting.Addresses.Edit` methods | ||
| 97 | - * **email_routing:** add `AccountRules.List` method (`GET /accounts/{account_id}/email/routing/rules`) returning `AccountRule` with new `Zone` field; `Rules.List` gains optional `AccountID` param (mutually exclusive with `ZoneID`) so callers can list rules by account or zone | ||
| 98 | - * **email_security:** add bulk investigation APIs | ||
| 99 | - * `Investigate.Bulk.{New,List,Delete,Get}` | ||
| 100 | - * `Investigate.Bulk.Cancel.New` | ||
| 101 | - * `Investigate.Bulk.Messages.List` | ||
| 102 | - * **accounts:** add `Logs.Audit.History` and `Logs.Audit.ProductCategories` methods | ||
| 103 | - * **organizations:** add `Logs.Audit.History` method | ||
| 104 | - | ||
| 105 | - ### Bug Fixes | ||
| 106 | - | ||
| 107 | - * **ai_gateway, workflows, zero_trust/dlpemailaccountmapping:** fix panics on union-merged parent field decoding by switching same-name-different-type merged fields from a variant-struct type to `interface{}` ([3de4191](https://github.com/cloudflare/cloudflare-go/commit/3de4191de)) | ||
| 108 | - * **browser_rendering:** `AccessibilityTreeNewParamsBodyObject` now uses `URL` (matching the generated test fixture) instead of `HTML` ([0f44441](https://github.com/cloudflare/cloudflare-go/commit/0f4444190)) | ||
| 109 | - * **dns:** restore `Shadow*` query params on `RecordListParams` and `IncludeShadowMetadata` on `Record{New,Update,List,Batch,Edit,Get}Params` after a codegen regression dropped them ([f9b3f27](https://github.com/cloudflare/cloudflare-go/commit/f9b3f274a)) | ||
| 110 | - | ||
| 111 | - ### Chores | ||
| 112 | - | ||
| 113 | - * **api:** update composite API spec (20+ codegen sync commits) | ||
| 114 | - * **ci:** bump CI job timeouts to 30 minutes ([6cad6cb](https://github.com/cloudflare/cloudflare-go/commit/6cad6cb57)) | ||
| 115 | - * **ci:** unblock test job by installing nodejs/npm for prism mock server ([3de4191](https://github.com/cloudflare/cloudflare-go/commit/3de4191de)) | ||
| 116 | - * apply accumulated custom code (CI jobs, GitLab config) ([eb2bf2b](https://github.com/cloudflare/cloudflare-go/commit/eb2bf2b10)) | ||
| 117 | - | ||
| 118 | - ## 7.6.0 (2026-06-16) | ||
| 119 | - | ||
| 120 | - Full Changelog: [v7.5.0...v7.6.0](https://github.com/cloudflare/cloudflare-go/compare/v7.5.0...v7.6.0) | ||
| 121 | - | ||
| 122 | - ### Features | ||
| 123 | - | ||
| 124 | - * feat(ai_gateway): add custom_providers resource ([d7b56dc](https://github.com/cloudflare/cloudflare-go/commit/d7b56dc682ccb2a112e5c499bcdd7f8f5f16d1da)) | ||
| 125 | - * feat(api): map ipsec_tunnels/psk, sites/app_policies and cf1_sites for magic-on-ramps ([8c090a8](https://github.com/cloudflare/cloudflare-go/commit/8c090a82ce354136733d9d01ce33e750dcc11315)) | ||
| 126 | - * feat(ct_alerter): add CT alerting subscription endpoint mappings ([1fbd47d](https://github.com/cloudflare/cloudflare-go/commit/1fbd47d82e5f7ce28a00ae24189614fbf2d40bd0)) | ||
| 127 | - * feat(tenants): add tenants resource SDK mapping [PT-2567] ([8e4faec](https://github.com/cloudflare/cloudflare-go/commit/8e4faeca3d1c8aed151d1f32d0d7095192205e63)) | ||
| 128 | - | ||
| 129 | - | ||
| 130 | - ### Chores | ||
| 131 | - | ||
| 132 | - * **api:** update composite API spec ([5053a77](https://github.com/cloudflare/cloudflare-go/commit/5053a772a0ae6460954320a042ff43a983539888)) | ||
| 133 | - * **api:** update composite API spec ([6acef20](https://github.com/cloudflare/cloudflare-go/commit/6acef2064bcb82d5e20028b10f5f2e9ecd277172)) | ||
| 134 | - * **api:** update composite API spec ([109d3e8](https://github.com/cloudflare/cloudflare-go/commit/109d3e82e9fa2a86c6ccff4cea499b1cc37f209b)) | ||
| 135 | - * **api:** update composite API spec ([d1f1bea](https://github.com/cloudflare/cloudflare-go/commit/d1f1bea01dfc61ba7535a1ece7b0b7cb6caaeae6)) | ||
| 136 | - * **api:** update composite API spec ([e2e533b](https://github.com/cloudflare/cloudflare-go/commit/e2e533b3d773180e4f22a8f0f5ef783454dfb105)) | ||
| 137 | - * **api:** update composite API spec ([0ac6cd6](https://github.com/cloudflare/cloudflare-go/commit/0ac6cd641ce54837a46fc4fdffb7e0cb5327c10d)) | ||
| 138 | - * **api:** update composite API spec ([cef1247](https://github.com/cloudflare/cloudflare-go/commit/cef1247e79574337e82328f4d17f5e5f889ca21a)) | ||
| 139 | - * **api:** update composite API spec ([295c30e](https://github.com/cloudflare/cloudflare-go/commit/295c30ee385c30d4522842b425f5a172e7e120db)) | ||
| 140 | - * **api:** update composite API spec ([c362e95](https://github.com/cloudflare/cloudflare-go/commit/c362e95004dfff2cfa39ad032827c59ae4fa79de)) | ||
| 141 | - * **api:** update composite API spec ([4321a13](https://github.com/cloudflare/cloudflare-go/commit/4321a137245de5df032f2bd09a1b1e82cd450635)) | ||
| 142 | - * **api:** update composite API spec ([fae4f51](https://github.com/cloudflare/cloudflare-go/commit/fae4f5121412e3f0b537c7e014425581594616bb)) | ||
| 143 | - * **api:** update composite API spec ([47fa180](https://github.com/cloudflare/cloudflare-go/commit/47fa1808c80096ed6177f4966d200f9a6b876951)) | ||
| 144 | - * **api:** update composite API spec ([835c44d](https://github.com/cloudflare/cloudflare-go/commit/835c44dc4d403df781e1faf8b9526a804f2f4e4d)) | ||
| 145 | - | ||
| 146 | - | ||
| 147 | - ### Documentation | ||
| 148 | - | ||
| 149 | - * add v7.6.0 migration guide ([f27940b](https://github.com/cloudflare/cloudflare-go/commit/f27940b228914e7b7d924b16ad440574f356e0cc)) | ||
| 150 | - | ||
| 151 | 3 | ## 7.5.0 (2026-06-10) | |
| 152 | 4 | ||
| 153 | 5 | Full Changelog: [v7.4.0...v7.5.0](https://github.com/cloudflare/cloudflare-go/compare/v7.4.0...v7.5.0) | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -41,12 +41,12 @@ To use a local version of this library from source in another project, edit the | |||
| 41 | 41 | directive. This can be done through the CLI with the following: | |
| 42 | 42 | ||
| 43 | 43 | ```sh | |
| 44 | - $ go mod edit -replace github.com/cloudflare/cloudflare-go/v7=/path/to/cloudflare-go | ||
| 44 | + $ go mod edit -replace github.com/cloudflare/cloudflare-go/v4=/path/to/cloudflare-go | ||
| 45 | 45 | ``` | |
| 46 | 46 | ||
| 47 | 47 | ## Running tests | |
| 48 | 48 | ||
| 49 | - Most tests require you to [set up a mock server](https://github.com/stoplightio/prism) against the OpenAPI spec to run the tests. | ||
| 49 | + Most tests require you to [set up a mock server](https://github.com/dgellow/steady) against the OpenAPI spec to run the tests. | ||
| 50 | 50 | ||
| 51 | 51 | ```sh | |
| 52 | 52 | $ ./scripts/mock | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -7,20 +7,37 @@ from applications written in Go. | |||
| 7 | 7 | ||
| 8 | 8 | It is generated with [Stainless](https://www.stainless.com/). | |
| 9 | 9 | ||
| 10 | + ## MCP Server | ||
| 11 | + | ||
| 12 | + Use the Cloudflare MCP Server to enable AI assistants to interact with this API, allowing them to explore endpoints, make test requests, and use documentation to help integrate this SDK into your application. | ||
| 13 | + | ||
| 14 | + [](https://cursor.com/en-US/install-mcp?name=cloudflare-mcp&config=eyJjb21tYW5kIjoibnB4IiwiYXJncyI6WyIteSIsImNsb3VkZmxhcmUtbWNwIl0sImVudiI6eyJDTE9VREZMQVJFX0FQSV9UT0tFTiI6IlNuM2xaSlRCWDZra2c3T2RjQlVBeE9POTYzR0VJeUdRcW5GVE9GWVkiLCJDTE9VREZMQVJFX0FQSV9LRVkiOiIxNDRjOWRlZmFjMDQ5NjljN2JmYWQ4ZWZhYThlYTE5NCIsIkNMT1VERkxBUkVfRU1BSUwiOiJ1c2VyQGV4YW1wbGUuY29tIiwiQ0xPVURGTEFSRV9BUElfVVNFUl9TRVJWSUNFX0tFWSI6InYxLjAtMTQ0YzlkZWZhYzA0OTY5YzdiZmFkOGVmLTYzMWE0MWQwMDNhMzJkMjVmZTg3ODA4MWVmMzY1YzQ5NTAzZjdmYWRhNjAwZGE5MzVlMjg1MWExYzczMjYwODRiODVjYmY2NDI5YzRiODU5ZGU4NDc1NzMxZGM5MmE5YzMyOTYzMWU2ZDU5ZTZjNzNkYTdiMTk4NDk3MTcyYjRjZWZlMDcxZDkwZDBmNWQyNzE5In19) | ||
| 15 | + [](https://vscode.stainless.com/mcp/%7B%22name%22%3A%22cloudflare-mcp%22%2C%22command%22%3A%22npx%22%2C%22args%22%3A%5B%22-y%22%2C%22cloudflare-mcp%22%5D%2C%22env%22%3A%7B%22CLOUDFLARE_API_TOKEN%22%3A%22Sn3lZJTBX6kkg7OdcBUAxOO963GEIyGQqnFTOFYY%22%2C%22CLOUDFLARE_API_KEY%22%3A%22144c9defac04969c7bfad8efaa8ea194%22%2C%22CLOUDFLARE_EMAIL%22%3A%22user%40example.com%22%2C%22CLOUDFLARE_API_USER_SERVICE_KEY%22%3A%22v1.0-144c9defac04969c7bfad8ef-631a41d003a32d25fe878081ef365c49503f7fada600da935e2851a1c7326084b85cbf6429c4b859de8475731dc92a9c329631e6d59e6c73da7b198497172b4cefe071d90d0f5d2719%22%7D%7D) | ||
| 16 | + | ||
| 17 | + > Note: You may need to set environment variables in your MCP client. | ||
| 18 | + | ||
| 10 | 19 | ## Installation | |
| 11 | 20 | ||
| 21 | + <!-- x-release-please-start-version --> | ||
| 22 | + | ||
| 12 | 23 | ```go | |
| 13 | 24 | import ( | |
| 14 | 25 | "github.com/cloudflare/cloudflare-go/v7" // imported as cloudflare | |
| 15 | 26 | ) | |
| 16 | 27 | ``` | |
| 17 | 28 | ||
| 29 | + <!-- x-release-please-end --> | ||
| 30 | + | ||
| 18 | 31 | Or to pin the version: | |
| 19 | 32 | ||
| 33 | + <!-- x-release-please-start-version --> | ||
| 34 | + | ||
| 20 | 35 | ```sh | |
| 21 | - go get -u 'github.com/cloudflare/cloudflare-go/v7@v7.7.0' | ||
| 36 | + go get -u 'github.com/cloudflare/cloudflare-go/v7@v7.5.0' | ||
| 22 | 37 | ``` | |
| 23 | 38 | ||
| 39 | + <!-- x-release-please-end --> | ||
| 40 | + | ||
| 24 | 41 | ## Requirements | |
| 25 | 42 | ||
| 26 | 43 | This library requires Go 1.22+. | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -42,12 +42,7 @@ func NewAbuseReportService(opts ...option.RequestOption) (r *AbuseReportService) | |||
| 42 | 42 | return | |
| 43 | 43 | } | |
| 44 | 44 | ||
| 45 | - // Submit an abuse report of a particular type. | ||
| 46 | - // | ||
| 47 | - // Requires the abuse-reports entitlement on the account (Enterprise accounts have | ||
| 48 | - // it by default; other accounts must request access) and an API token with the | ||
| 49 | - // `Account > Abuse Reports > Edit` permission. If the account is not entitled, the | ||
| 50 | - // request is rejected with an HTTP `401` response (see below). | ||
| 45 | + // Submit the Abuse Report of a particular type | ||
| 51 | 46 | func (r *AbuseReportService) New(ctx context.Context, reportParam string, params AbuseReportNewParams, opts ...option.RequestOption) (res *string, err error) { | |
| 52 | 47 | var env AbuseReportNewResponseEnvelope | |
| 53 | 48 | opts = slices.Concat(r.Options, opts) | |
| Back | FazBrowse Home | New Git URL |
0 commit comments